hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1277841e08fd645ad660098a4ab6d569cb37a919
2,638
py
Python
third_party/retdec-3.2/scripts/retdec-fileinfo.py
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
third_party/retdec-3.2/scripts/retdec-fileinfo.py
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
third_party/retdec-3.2/scripts/retdec-fileinfo.py
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
#!/usr/bin/env python3 """A wrapper for fileinfo that: - uses also external YARA patterns, - is able to analyze archives (.a/.lib files). """ import argparse import subprocess import sys import importlib config = importlib.import_module('retdec-config') utils = importlib.import_module('retdec-utils') retdec_archive_...
29.640449
90
0.674375
1f766fb2fa0946c33e73a72f8e681c6605060b1b
4,631
py
Python
rest_api/run_keras_server.py
mmstevenson/CritterCounter
ecf75292c5e2a7b6f1e1862320e50d0de53965a2
[ "MIT" ]
null
null
null
rest_api/run_keras_server.py
mmstevenson/CritterCounter
ecf75292c5e2a7b6f1e1862320e50d0de53965a2
[ "MIT" ]
null
null
null
rest_api/run_keras_server.py
mmstevenson/CritterCounter
ecf75292c5e2a7b6f1e1862320e50d0de53965a2
[ "MIT" ]
null
null
null
# USAGE # Start the server: # python run_keras_server.py # Submit a request via cURL: # curl -X POST -F image=@dog.jpg 'http://localhost:5000/predict' # Submita a request via Python: # python simple_request.py # import the necessary packages from keras.applications import ResNet50, MobileNetV2 from keras.preprocessi...
33.078571
68
0.638523
80679119a8a98dc03eb0e9fecaaf0f130ef0225e
6,842
py
Python
test/functional/wallet_labels.py
fujicoin/fujicoin-0.20.0
2bed6d064ce44ada8bf3263fc2138029b78a8011
[ "MIT" ]
null
null
null
test/functional/wallet_labels.py
fujicoin/fujicoin-0.20.0
2bed6d064ce44ada8bf3263fc2138029b78a8011
[ "MIT" ]
null
null
null
test/functional/wallet_labels.py
fujicoin/fujicoin-0.20.0
2bed6d064ce44ada8bf3263fc2138029b78a8011
[ "MIT" ]
1
2021-07-18T11:40:12.000Z
2021-07-18T11:40:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Fujicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test label RPCs. RPCs tested are: - getaddressesbylabel - listaddressgroupings - setlabel...
38.875
97
0.652587
80ae5d7f6ac2d638e44677cadfdb307ba58f13f8
4,018
py
Python
homeassistant/components/bond/fan.py
alexciurea/core
bbff9ff6a0903cfcd1316b19db4d822b29e74884
[ "Apache-2.0" ]
2
2020-09-10T15:36:55.000Z
2021-02-26T21:09:56.000Z
homeassistant/components/bond/fan.py
frnktrgr/core
650d61e4f3007d1f7d456713d43fbc30b7396ce6
[ "Apache-2.0" ]
40
2020-08-05T17:00:26.000Z
2022-03-04T06:01:46.000Z
homeassistant/components/bond/fan.py
DubhAd/home-assistant
30a7d6233924532775ceb2166d3675380bb3776a
[ "Apache-2.0" ]
2
2021-01-11T22:51:43.000Z
2021-08-29T01:25:04.000Z
"""Support for Bond fans.""" import math from typing import Any, Callable, List, Optional from bond import DeviceTypes, Directions from homeassistant.components.fan import ( DIRECTION_FORWARD, DIRECTION_REVERSE, SPEED_HIGH, SPEED_LOW, SPEED_MEDIUM, SPEED_OFF, SUPPORT_DIRECTION, SUPPORT...
31.147287
88
0.640866
34708babd5e99e05f7c0d50d9810ccd54ba8451c
153
py
Python
python-solutions/problem001.py
omermikhailk/project-euler
04f71bcd6b7b664245e01b814138bea9ff0caf5e
[ "MIT" ]
null
null
null
python-solutions/problem001.py
omermikhailk/project-euler
04f71bcd6b7b664245e01b814138bea9ff0caf5e
[ "MIT" ]
1
2020-06-04T08:40:49.000Z
2020-06-04T08:40:49.000Z
python-solutions/problem001.py
omermikhailk/project-euler
04f71bcd6b7b664245e01b814138bea9ff0caf5e
[ "MIT" ]
null
null
null
def sum_of_multiples(): return sum([i for i in range(1, 1000) if not i % 3 or not i % 5]) if __name__ == "__main__": print(sum_of_multiples())
21.857143
69
0.640523
ed451df2f815a12510ebfe53cd427b39912f745f
359
py
Python
codes/2018-02-26-final.py
israelem/aceptaelreto.github.io
91ac0586ef504cf4b1dd05eda32def6c39fbb34c
[ "MIT" ]
4
2018-05-10T08:51:04.000Z
2021-01-13T12:46:15.000Z
codes/2018-02-26-final.py
israelem/aceptaelreto.github.io
91ac0586ef504cf4b1dd05eda32def6c39fbb34c
[ "MIT" ]
null
null
null
codes/2018-02-26-final.py
israelem/aceptaelreto.github.io
91ac0586ef504cf4b1dd05eda32def6c39fbb34c
[ "MIT" ]
5
2018-05-10T08:51:06.000Z
2021-12-07T18:04:27.000Z
from functools import reduce if __name__ == '__main__': numero = int(reduce(lambda x, y: x + y, [x for x in input().split('.')])) + 1 cadena = '' for x in range(len(str(numero)) - 1, -1, -3): if x - 3 >= 0: cadena += str(numero)[x:x - 3:-1] + '.' else: cadena += str(...
29.916667
81
0.487465
1f7807fcab40e5a50f6d056a45a136aea7336d95
4,491
py
Python
data/nces/cleanser.py
mtna/data-public
aeeee98d60e545440bab18356120fb4493d0a35b
[ "Apache-2.0", "CC-BY-4.0" ]
2
2020-08-28T21:36:11.000Z
2021-05-05T16:34:52.000Z
data/nces/cleanser.py
mtna/data-public
aeeee98d60e545440bab18356120fb4493d0a35b
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
data/nces/cleanser.py
mtna/data-public
aeeee98d60e545440bab18356120fb4493d0a35b
[ "Apache-2.0", "CC-BY-4.0" ]
2
2020-10-20T00:45:11.000Z
2020-10-20T00:47:16.000Z
import addfips import pandas as pd import numpy as np variables = { 'NCES School ID': 'school_id_nces', 'State School ID': 'school_id_state', 'NCES District ID': 'district_id_nces', 'State District ID': 'district_id_state', 'Low Grade*': 'grade_low', 'High Grade*': 'grade_high', 'School Nam...
41.201835
237
0.613894
fa680ab3bea477ad27223105a1c355b8afaed08e
1,415
py
Python
test/actions/gyptest-generated-header.py
luguocfw/GYP-Tools
41414159d032530acbf5e426954e1020ea1aa740
[ "BSD-3-Clause" ]
34
2015-01-14T03:21:08.000Z
2020-04-26T10:06:56.000Z
core/deps/gyp/test/actions/gyptest-generated-header.py
K-Constantine/Amaraki
e8736e4754af62a8510c3a5db8a72df48f7681a7
[ "MIT" ]
1
2019-03-08T08:07:14.000Z
2019-03-08T08:07:14.000Z
core/deps/gyp/test/actions/gyptest-generated-header.py
K-Constantine/Amaraki
e8736e4754af62a8510c3a5db8a72df48f7681a7
[ "MIT" ]
29
2015-02-13T00:18:53.000Z
2021-02-10T23:38:58.000Z
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that dependencies on generated headers work, even if the header has a mixed-case file name. """ import TestGyp test = TestGyp...
31.444444
78
0.734982
3521b64f50fb1f0e17f66c0e376ffd101dae3211
663
py
Python
service-workers/service-worker/navigation-preload/resources/chunked-encoding-scope.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
service-workers/service-worker/navigation-preload/resources/chunked-encoding-scope.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
service-workers/service-worker/navigation-preload/resources/chunked-encoding-scope.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
import time def main(request, response): use_broken_body = 'use_broken_body' in request.GET response.add_required_headers = False response.writer.write_status(200) response.writer.write_header("Content-type", "text/html; charset=UTF-8") response.writer.write_header("Transfer-encoding", "chunked") ...
31.571429
76
0.648567
4caad8ffc7c876764f557a7dbddaddd2c135a358
44,081
py
Python
python/pyspark/sql/readwriter.py
leen0304/Spark2.2.0-source-code
8b50aa40c70654579ff298814ac917b48654f207
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
675
2016-12-21T00:15:05.000Z
2022-03-31T07:15:59.000Z
python/pyspark/sql/readwriter.py
leen0304/Spark2.2.0-source-code
8b50aa40c70654579ff298814ac917b48654f207
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
607
2016-12-12T21:56:43.000Z
2019-11-14T22:21:06.000Z
python/pyspark/sql/readwriter.py
leen0304/Spark2.2.0-source-code
8b50aa40c70654579ff298814ac917b48654f207
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
168
2017-01-12T00:47:04.000Z
2021-12-02T08:08:10.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...
51.496495
100
0.615685
6bf3e7adb6861c0e45c4fb4baded969d29c021ca
1,024
py
Python
whitfield/gen/__init__.py
npmccallum/whitfield
fdbc0c6444cb3b3b48351224525543171d0c60a4
[ "Apache-2.0" ]
null
null
null
whitfield/gen/__init__.py
npmccallum/whitfield
fdbc0c6444cb3b3b48351224525543171d0c60a4
[ "Apache-2.0" ]
null
null
null
whitfield/gen/__init__.py
npmccallum/whitfield
fdbc0c6444cb3b3b48351224525543171d0c60a4
[ "Apache-2.0" ]
null
null
null
# # Copyright: 2017 Red Hat, Inc. # Author: Nathaniel McCallum <npmccallum@redhat.com> # # 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 ...
34.133333
62
0.75293
9926e36731cae6a20951ddc04fe23f008aefdad6
1,560
py
Python
revoltCommands/help.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
null
null
null
revoltCommands/help.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
11
2022-01-27T08:02:41.000Z
2022-02-10T23:32:29.000Z
revoltCommands/help.py
asoji/Yiski
8c64a04bb4e3b3f72a70de28203be2c3618c5f9c
[ "MIT" ]
1
2022-01-27T06:11:48.000Z
2022-01-27T06:11:48.000Z
import defectio from defectio import ext from defectio.ext import commands from loguru import logger from mainRevolt import botPrefix class HelpRevolt(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def help(self, ctx): await ctx.reply( "| Com...
50.322581
158
0.444872
5e7829faace32049e6eb23d942b397979a177100
12,029
py
Python
theano/d3viz/formatting.py
michaelosthege/aesara
55c88832ba71f87c9612d573ede74a4c042ef570
[ "BSD-3-Clause" ]
null
null
null
theano/d3viz/formatting.py
michaelosthege/aesara
55c88832ba71f87c9612d573ede74a4c042ef570
[ "BSD-3-Clause" ]
null
null
null
theano/d3viz/formatting.py
michaelosthege/aesara
55c88832ba71f87c9612d573ede74a4c042ef570
[ "BSD-3-Clause" ]
null
null
null
"""Functions for formatting Theano compute graphs. Author: Christof Angermueller <cangermueller@gmail.com> """ import os from functools import reduce import numpy as np import theano from theano.compile import Function, builders from theano.gof.fg import FunctionGraph from theano.gof.graph import Apply, Constant, Va...
32.336022
87
0.521157
94c6bdae97eb959bd08af7c11f91fa2aca3ce388
10,530
py
Python
python-ca/bjorn/models.py
AS207960/bjorn
8293b453df544822011b34b1a72bb41e941417dd
[ "MIT" ]
4
2021-09-21T08:13:52.000Z
2022-02-17T20:29:20.000Z
python-ca/bjorn/models.py
AS207960/bjorn
8293b453df544822011b34b1a72bb41e941417dd
[ "MIT" ]
null
null
null
python-ca/bjorn/models.py
AS207960/bjorn
8293b453df544822011b34b1a72bb41e941417dd
[ "MIT" ]
1
2021-09-24T15:30:36.000Z
2021-09-24T15:30:36.000Z
from django.db import models from django.contrib import admin from django.utils import timezone import secrets import base64 import uuid import cryptography.x509 import google.protobuf.json_format from . import order_pb2 class Account(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, ed...
35.454545
126
0.683761
073de9b6ddaf1493b757625b72c109f5457e525c
6,857
py
Python
cognitive/settings.py
poldracklab/cogat
9eeaa2925c4bd65962e75ccb66baba0617e595cd
[ "MIT" ]
2
2017-09-20T04:07:50.000Z
2018-05-02T16:19:35.000Z
cognitive/settings.py
poldracklab/cogat
9eeaa2925c4bd65962e75ccb66baba0617e595cd
[ "MIT" ]
119
2017-03-10T19:00:45.000Z
2020-06-22T14:03:16.000Z
cognitive/settings.py
poldracklab/cogat
9eeaa2925c4bd65962e75ccb66baba0617e595cd
[ "MIT" ]
2
2017-03-13T20:02:06.000Z
2018-05-02T16:19:40.000Z
""" Django settings for cognitive atlas project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import...
29.943231
91
0.710661
1274adb4b892c5ae2abf74b3b013d523a16f9bea
917
py
Python
src/Modules/Families/UPB/test/xml_upb.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Families/UPB/test/xml_upb.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Families/UPB/test/xml_upb.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" @name: PyHouse/src/Modules/Families/UPB/test/xml_upb.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2014-2015 by D. Brian Kimmel @license: MIT License @note: Created on Nov 9, 2014 @Summary: """ TESTING_UPB_ADDRESS = '255' TESTING_UPB_NETWORK = '6' TESTING_UPB_PASSW...
27.787879
78
0.649945
99b928d14cd3334a98584fd38ed58dfe30c26bab
3,367
py
Python
statistic_tools.py
shokah/pytorch-deeplab-xception
eda759b6935f048c80ba00981686eaf08c4366ae
[ "MIT" ]
null
null
null
statistic_tools.py
shokah/pytorch-deeplab-xception
eda759b6935f048c80ba00981686eaf08c4366ae
[ "MIT" ]
null
null
null
statistic_tools.py
shokah/pytorch-deeplab-xception
eda759b6935f048c80ba00981686eaf08c4366ae
[ "MIT" ]
null
null
null
import os from PIL import Image import numpy as np import matplotlib.pyplot as plt def recursive_glob(rootdir='.', suffix=''): """Performs recursive glob with given suffix and rootdir :param rootdir is the root directory :param suffix is the suffix to be searched """ return [os.path.join(l...
40.083333
165
0.683398
27ed983ed5ce0cb0266666de73afcdc61d688cb9
505
py
Python
env/lib/python3.8/site-packages/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="value", parent_name="layout.polar.radialaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_na...
28.055556
67
0.615842
23e07c80c98a181a4aad799819c15071fb06f82b
1,971
py
Python
pb_string.py
raskitoma/crawler_bot
5376904f1c92997b7284fbf44fc2e020f275ed61
[ "MIT" ]
null
null
null
pb_string.py
raskitoma/crawler_bot
5376904f1c92997b7284fbf44fc2e020f275ed61
[ "MIT" ]
null
null
null
pb_string.py
raskitoma/crawler_bot
5376904f1c92997b7284fbf44fc2e020f275ed61
[ "MIT" ]
null
null
null
############################################# # Plazabot - pb_string.py # (c)2021, Doubtfull Productions #-------------------------------------------- # Common strings #-------------------------------------------- # TODO #-------------------------------------------- LOG_ALL = 'ALL' LOG_ERROR = 'ERROR' LOG_ALERT = 'A...
33.982759
112
0.647387
5d1c315bcaf7205ccaecbb592f650b466f7318a8
3,057
py
Python
utils/traceroute_struct.py
wikicensorship/tracevis
63bc2df04c02b6eb489aaaa3e31c8f07ec40e57e
[ "Unlicense" ]
78
2021-11-27T11:59:53.000Z
2022-03-29T10:00:39.000Z
utils/traceroute_struct.py
wikicensorship/tracevis
63bc2df04c02b6eb489aaaa3e31c8f07ec40e57e
[ "Unlicense" ]
18
2021-11-28T00:48:48.000Z
2022-03-23T23:03:39.000Z
utils/traceroute_struct.py
wikicensorship/tracevis
63bc2df04c02b6eb489aaaa3e31c8f07ec40e57e
[ "Unlicense" ]
12
2021-11-26T19:36:43.000Z
2021-12-21T20:23:38.000Z
#!/usr/bin/env python3 import json import utils.convert_packetlist class traceroute_data: def __init__( self, dst_addr: str, annotation: str, proto: str, port: int, timestamp: int, src_addr: str = "127.0.0.2", from_ip: str = "127.0.0.1", prb_id: int = -1, msm_id: int = -1, msm_name: str =...
33.966667
90
0.508669
03225d11262b9167086fea3076a17ef00906963b
36,519
py
Python
lib/oauthlib/oauth2/rfc6749/request_validator.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/oauthlib/oauth2/rfc6749/request_validator.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/oauthlib/oauth2/rfc6749/request_validator.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# -*- coding: utf-8 -*- """ oauthlib.oauth2.rfc6749.request_validator ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from __future__ import absolute_import, unicode_literals import logging log = logging.getLogger(__name__) class RequestValidator(object): def client_authentication_required(self, re...
44.05187
135
0.645281
0bb07bb1877afbdee2fbdf56c131b28bd34e27e8
1,007
py
Python
main.py
sycomix/aio-bot
7efe30e392985913a4f6fb3913b285abc68ea694
[ "CC0-1.0" ]
18
2019-10-08T10:15:27.000Z
2022-02-21T06:36:57.000Z
main.py
sycomix/aio-bot
7efe30e392985913a4f6fb3913b285abc68ea694
[ "CC0-1.0" ]
3
2020-04-17T20:43:58.000Z
2022-02-10T00:21:01.000Z
main.py
sycomix/aio-bot
7efe30e392985913a4f6fb3913b285abc68ea694
[ "CC0-1.0" ]
8
2020-03-07T10:17:11.000Z
2021-07-05T05:22:04.000Z
from utils import * def chat(): nam = "Unknown" # call = multiFunctionCall({"whoIs":whoIs,"emo":emo, "identifyu":identifyu, "whathappen":whathappen, "learnq":learnq, "learna":learna}) firstQuestion="Hi, I am chatbot." template = "Unknown.template" #print(template) decryp(template) Chat(...
31.46875
139
0.532274
9224fec6cc3a8536d7ccff2981c130e0c793fadb
4,572
py
Python
simscale_sdk/models/dimensional_partial_vector_function_angle.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/dimensional_partial_vector_function_angle.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/dimensional_partial_vector_function_angle.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class DimensionalPartialVectorFunctionAngle(object): """NOTE: This cl...
30.078947
109
0.595582
5ebbc51a5a6a914afcb30882d51e18fcc83fdefc
9,887
py
Python
sel4/core/helpers__/translator.py
daniv/sel4
0a4f8f0c86c672d9eb2582669ee1c70f41043316
[ "MIT" ]
null
null
null
sel4/core/helpers__/translator.py
daniv/sel4
0a4f8f0c86c672d9eb2582669ee1c70f41043316
[ "MIT" ]
null
null
null
sel4/core/helpers__/translator.py
daniv/sel4
0a4f8f0c86c672d9eb2582669ee1c70f41043316
[ "MIT" ]
null
null
null
import re from cssselect import GenericTranslator from loguru import logger from sel4.utils.functional import lazy, keep_lazy from sel4.utils.regex_helper import _lazy_re_compile class XpathException(Exception): pass _sub_regexes = { "tag": r"([a-zA-Z][a-zA-Z0-9]{0,10}|\*)", "attribute": r"[.a-zA-Z_:]...
33.177852
79
0.518762
771b2a4d230f41ff304860cd50cc35b479fc4819
13,611
py
Python
lib/googlecloudsdk/api_lib/compute/image_utils.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/compute/image_utils.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/compute/image_utils.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2014 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 requir...
36.490617
79
0.647197
208cb684e4122d9c479e1636fdb903d4f52a0821
9,823
py
Python
syfertext/span.py
shashank-m/SyferText
9e9a5206a6a65cfe1facc1d64b92451b94267ae1
[ "Apache-2.0" ]
null
null
null
syfertext/span.py
shashank-m/SyferText
9e9a5206a6a65cfe1facc1d64b92451b94267ae1
[ "Apache-2.0" ]
null
null
null
syfertext/span.py
shashank-m/SyferText
9e9a5206a6a65cfe1facc1d64b92451b94267ae1
[ "Apache-2.0" ]
null
null
null
import syft import torch hook = syft.TorchHook(torch) from syft.generic.object import AbstractObject from syft.workers.base import BaseWorker from syfertext.token import Token from typing import List from typing import Dict from typing import Set from typing import Union from .underscore import Underscore from .uti...
32.634551
118
0.597475
df4b64898f9d884f32ee8a4301fdb50bd1ad33d0
2,891
py
Python
solvcon/parcel/gas/case.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
16
2015-12-09T02:54:42.000Z
2021-04-20T11:26:39.000Z
solvcon/parcel/gas/case.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
95
2015-12-09T00:49:40.000Z
2022-02-14T13:34:55.000Z
solvcon/parcel/gas/case.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
13
2015-05-08T04:16:42.000Z
2021-01-15T09:28:06.000Z
# -*- coding: UTF-8 -*- # # Copyright (c) 2014, Yung-Yu Chen <yyc@solvcon.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyrigh...
37.545455
79
0.682809
361fe3a95aef2fc417c0d772f200082abbd7f713
3,095
py
Python
src/sqlparser/internalparser.py
pysparkling/python-sql-parser
b728995ce66e1feba1c0b1b8310edce8f3fa9d83
[ "Apache-2.0" ]
2
2021-07-02T13:06:36.000Z
2021-07-22T12:19:53.000Z
src/sqlparser/internalparser.py
pysparkling/python-sql-parser
b728995ce66e1feba1c0b1b8310edce8f3fa9d83
[ "Apache-2.0" ]
null
null
null
src/sqlparser/internalparser.py
pysparkling/python-sql-parser
b728995ce66e1feba1c0b1b8310edce8f3fa9d83
[ "Apache-2.0" ]
1
2021-07-02T13:06:40.000Z
2021-07-02T13:06:40.000Z
import antlr4 from antlr4 import RecognitionException from antlr4.error.ErrorListener import ErrorListener from antlr4.error.ErrorStrategy import BailErrorStrategy from antlr4.error.Errors import ParseCancellationException from sqlparser.generated.SqlBaseLexer import SqlBaseLexer from sqlparser.generated.SqlBaseParse...
29.47619
82
0.710501
ab93de25995d3ad9754eb1643106442f26abf1bb
115,560
py
Python
uproot/write/streamers.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
1
2021-03-18T23:33:35.000Z
2021-03-18T23:33:35.000Z
uproot/write/streamers.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
17
2020-01-28T22:33:27.000Z
2021-06-10T21:05:49.000Z
sparse/repos/chnzhangrui/SgTopWorkshop/binder/uproot/write/streamers.py
yuvipanda/mybinder.org-analytics
7b654e3e21dea790505c626d688aa15640ea5808
[ "BSD-3-Clause" ]
1
2021-07-17T12:55:22.000Z
2021-07-17T12:55:22.000Z
#!/usr/bin/env python # Copyright (c) 2017, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of...
3,301.714286
112,866
0.753496
183820dab2ad545bf5eb8fa9a33051bfb4c7bde0
3,384
py
Python
basecls/solver/optimizer/sgd.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
23
2021-12-08T02:35:01.000Z
2022-03-16T02:23:19.000Z
basecls/solver/optimizer/sgd.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
4
2021-12-23T11:31:17.000Z
2022-02-28T01:35:31.000Z
basecls/solver/optimizer/sgd.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import os from typing import Iterable, Union from megengine import Parameter, tensor from megengine.functional.inplace import _inplace_add_ from megengine.optimizer import Optimizer class SGD(Optimizer): r"""Implements stochastic g...
34.530612
86
0.577423
5add3cdbc9a8f36b3ef4743317dd198ed05cf5a5
8,552
py
Python
registry/http/spec/plugins/docstring.py
rmb938/tf-registry
bce809ae52e65549b05b836d3f70e8a1de2f2cec
[ "MIT" ]
3
2019-02-25T05:15:39.000Z
2020-11-26T02:56:10.000Z
registry/http/spec/plugins/docstring.py
rmb938/tf-registry
bce809ae52e65549b05b836d3f70e8a1de2f2cec
[ "MIT" ]
null
null
null
registry/http/spec/plugins/docstring.py
rmb938/tf-registry
bce809ae52e65549b05b836d3f70e8a1de2f2cec
[ "MIT" ]
null
null
null
from apispec import BasePlugin from apispec.exceptions import DuplicateComponentNameError from apispec.yaml_utils import load_operations_from_docstring from schematics.contrib.enum_type import EnumType from schematics.models import FieldDescriptor from schematics.types import ModelType, DictType, ListType, BooleanType,...
43.632653
120
0.450889
dfcd27f0e3f17eee342ca1d024f5c9c1933d8cf6
4,251
py
Python
test/api/test_consent_type.py
ryomahan/read-tracardi-api
d0a012fb097ca81daf046b314000301eb54bfad8
[ "MIT" ]
3
2021-11-27T18:03:31.000Z
2022-02-06T21:47:59.000Z
test/api/test_consent_type.py
ryomahan/read-tracardi-api
d0a012fb097ca81daf046b314000301eb54bfad8
[ "MIT" ]
13
2021-11-03T18:15:06.000Z
2022-03-27T22:28:38.000Z
test/api/test_consent_type.py
ryomahan/read-tracardi-api
d0a012fb097ca81daf046b314000301eb54bfad8
[ "MIT" ]
8
2021-11-16T04:07:41.000Z
2022-03-14T14:51:34.000Z
from ..utils import Endpoint from fastapi import HTTPException endpoint = Endpoint() def test_post_consent_type(): data = { "name": "test-name", "description": "test-description", "revokable": True, "default_value": "grant", "enabled": True, "tags": ["tag1", "tag2"...
25.153846
77
0.549988
306cc8d72a07e27308ba73c963f7379c9513c672
4,809
py
Python
cargo/flatpages/models.py
dalou/django-cargo
633d051ca8647623adbab746c9da9153f46e1e8f
[ "BSD-3-Clause" ]
null
null
null
cargo/flatpages/models.py
dalou/django-cargo
633d051ca8647623adbab746c9da9153f46e1e8f
[ "BSD-3-Clause" ]
null
null
null
cargo/flatpages/models.py
dalou/django-cargo
633d051ca8647623adbab746c9da9153f46e1e8f
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 from django.db import models from django.utils.html import strip_tags from django.core.urlresolvers import reverse from django.utils.text import slugify from cargo.fields import HTMLField # from taggit_autosuggest.managers import TaggableManager as AutosuggestTaggableManager class FlatPagePosition(...
36.709924
176
0.653358
1172ec2ad7a3db87a8ebe3c1d5d53c5c778aec71
375
py
Python
_test.py
Politraf/politraf
d6b04fa7f2a3e88861ef38a6e8ff0cb4ae4e67b7
[ "MIT" ]
6
2017-07-31T09:03:41.000Z
2019-03-30T18:50:04.000Z
_test.py
Politraf/politraf
d6b04fa7f2a3e88861ef38a6e8ff0cb4ae4e67b7
[ "MIT" ]
84
2018-06-07T15:43:13.000Z
2022-01-26T16:48:46.000Z
_test.py
Politraf/politraf
d6b04fa7f2a3e88861ef38a6e8ff0cb4ae4e67b7
[ "MIT" ]
2
2018-03-07T12:38:30.000Z
2020-01-13T00:30:48.000Z
import pytest import socket as s @pytest.fixture def socket(request): _socket = s.socket(s.AF_INET, s.SOCK_STREAM) def socket_teardown(): _socket.close() request.addfinalizer(socket_teardown) return _socket def test_server_connect(socket): socket.connect(('127.0.0.1',8123)) assert so...
19.736842
48
0.693333
e9611b542dceed66be0e4e38695d19efa982940c
645
py
Python
app/migrations/versions/d73af147c118_create_tokens_table.py
Basselbi/hikma-health-backend
0f891821a04aa103fff62097443bd585bc342dbc
[ "MIT" ]
null
null
null
app/migrations/versions/d73af147c118_create_tokens_table.py
Basselbi/hikma-health-backend
0f891821a04aa103fff62097443bd585bc342dbc
[ "MIT" ]
null
null
null
app/migrations/versions/d73af147c118_create_tokens_table.py
Basselbi/hikma-health-backend
0f891821a04aa103fff62097443bd585bc342dbc
[ "MIT" ]
null
null
null
"""create_tokens_table Revision ID: d73af147c118 Revises: fc3a6a2ca002 Create Date: 2020-04-29 11:05:20.619408 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd73af147c118' down_revision = 'fc3a6a2ca002' branch_labels = None depends_on = None def upgrade(): ...
18.970588
71
0.677519
d3f0ecd29f4757f51cc048a87cf2c664fdd66807
4,358
py
Python
Flictionary-Flask/app.py
datascisteven/Flictionary
54cd31df185b7ea7fdfefebe5e211abde143319d
[ "MIT" ]
null
null
null
Flictionary-Flask/app.py
datascisteven/Flictionary
54cd31df185b7ea7fdfefebe5e211abde143319d
[ "MIT" ]
null
null
null
Flictionary-Flask/app.py
datascisteven/Flictionary
54cd31df185b7ea7fdfefebe5e211abde143319d
[ "MIT" ]
null
null
null
from flask import Flask, render_template import numpy as np import tensorflow as tf from PIL import Image import base64 from io import BytesIO import cv2 import os import json import random import matplotlib matplotlib.use('Agg') import plotly import plotly.graph_objs as go from tensorflow.keras.preprocessing.image i...
34.314961
98
0.637907
dd0ed1e9ddc6fdf8569494a1124bc591d5ca68cf
14,653
py
Python
flash/core/data/batch.py
LoopGlitch26/lightning-flash
a1bece4361a7cb5449715bef9975696e96c5f9ae
[ "Apache-2.0" ]
null
null
null
flash/core/data/batch.py
LoopGlitch26/lightning-flash
a1bece4361a7cb5449715bef9975696e96c5f9ae
[ "Apache-2.0" ]
null
null
null
flash/core/data/batch.py
LoopGlitch26/lightning-flash
a1bece4361a7cb5449715bef9975696e96c5f9ae
[ "Apache-2.0" ]
1
2021-07-14T09:17:46.000Z
2021-07-14T09:17:46.000Z
# Copyright The PyTorch Lightning 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 law or agreed to i...
41.044818
114
0.663823
c8114c99003e10df7e3dc4ce84927e81f94dda8e
50
py
Python
dscript/models/__init__.py
Jin0331/D-SCRIPT
4e3ba637b786e80a27c7a67383ebe6989a5bb8f3
[ "MIT" ]
null
null
null
dscript/models/__init__.py
Jin0331/D-SCRIPT
4e3ba637b786e80a27c7a67383ebe6989a5bb8f3
[ "MIT" ]
null
null
null
dscript/models/__init__.py
Jin0331/D-SCRIPT
4e3ba637b786e80a27c7a67383ebe6989a5bb8f3
[ "MIT" ]
null
null
null
__all__ = ["contact", "embedding", "interaction"]
25
49
0.68
9787b7d17665c97e575c82f2b711b773edf2a517
32,769
py
Python
bayes/explanations.py
dylan-slack/Modeling-Uncertainty-Local-Explainability
a0a9eac08ec987ee3e394676e84e5bd8697c6404
[ "MIT" ]
15
2021-10-30T08:28:58.000Z
2022-02-25T01:22:37.000Z
bayes/explanations.py
dylan-slack/Modeling-Uncertainty-Local-Explainability
a0a9eac08ec987ee3e394676e84e5bd8697c6404
[ "MIT" ]
2
2021-11-01T19:54:06.000Z
2022-01-14T18:02:17.000Z
bayes/explanations.py
dylan-slack/Modeling-Uncertainty-Local-Explainability
a0a9eac08ec987ee3e394676e84e5bd8697c6404
[ "MIT" ]
3
2021-10-19T20:32:41.000Z
2022-02-19T15:45:26.000Z
"""Bayesian Local Explanations. This code implements bayesian local explanations. The code supports the LIME & SHAP kernels. Along with the LIME & SHAP feature importances, bayesian local explanations also support uncertainty expression over the feature importances. """ import logging from copy import deepcopy from ...
46.679487
149
0.552534
9725f01c84e8e91867f491b3ee192d682eaa79e8
4,153
py
Python
benchmark/startQiskit_Class974.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class974.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class974.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=43 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
30.992537
80
0.603419
61011d5080e6c3b2ac3ef75ee603735d39ddfa02
16,621
py
Python
xmlschema/validators/globals_.py
jhermann/xmlschema
4251afc21b9ce254edcb75d0b11fe936b206a7d0
[ "MIT" ]
null
null
null
xmlschema/validators/globals_.py
jhermann/xmlschema
4251afc21b9ce254edcb75d0b11fe936b206a7d0
[ "MIT" ]
null
null
null
xmlschema/validators/globals_.py
jhermann/xmlschema
4251afc21b9ce254edcb75d0b11fe936b206a7d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c), 2016-2018, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author ...
39.763158
110
0.623248
f447193318e57cff7fedcdd94df2bd45b6e41805
3,229
py
Python
abroca/utils.py
VaibhavKaushik3220/abroca
6dd11e83c089798738cfe2532716ba8585d1292a
[ "MIT" ]
null
null
null
abroca/utils.py
VaibhavKaushik3220/abroca
6dd11e83c089798738cfe2532716ba8585d1292a
[ "MIT" ]
null
null
null
abroca/utils.py
VaibhavKaushik3220/abroca
6dd11e83c089798738cfe2532716ba8585d1292a
[ "MIT" ]
2
2020-10-27T00:54:34.000Z
2021-08-16T17:37:39.000Z
import numpy as np import sklearn.metrics as metrics from scipy import interpolate import matplotlib.pyplot as plt def compute_roc(y_scores, y_true): """ Function to compute the Receiver Operating Characteristic (ROC) curve for a set of predicted probabilities and the true class labels. y_scores - vector ...
35.877778
153
0.697739
7ce14303119b354dc73b4af2b1bf742cb03d8d78
13,873
py
Python
f3dasm/abaqus/geometry/shapes.py
bessagroup/F3DASM
916f706f4f206c59cb53b9116660d3a194755c33
[ "BSD-3-Clause" ]
26
2020-11-26T14:35:25.000Z
2022-02-24T14:00:27.000Z
f3dasm/abaqus/geometry/shapes.py
yuanquan010/F3DASM
1919caf53338534963fb25f76c417fd10ab7628f
[ "BSD-3-Clause" ]
19
2021-02-28T16:06:30.000Z
2022-03-12T01:02:29.000Z
f3dasm/abaqus/geometry/shapes.py
yuanquan010/F3DASM
1919caf53338534963fb25f76c417fd10ab7628f
[ "BSD-3-Clause" ]
8
2020-10-09T19:10:13.000Z
2022-03-10T16:26:50.000Z
''' Created on 2020-10-15 09:36:46 Last modified on 2020-11-26 12:49:39 @author: L. F. Pereira (lfpereira@fe.up.pt)) ''' # imports # abaqus from caeModules import * # allow noGui from abaqusConstants import (DEFORMABLE_BODY, THREE_D, ON, COUNTERCLOCKWISE, CLOCKWISE, YZPLANE, XYPLANE, XZ...
32.187935
166
0.545664
e07d5183b3541b3b52780f3901f00453b2744bb9
1,027
py
Python
pyparsing-2.0.1/examples/tagCapture.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
1
2018-05-30T22:21:30.000Z
2018-05-30T22:21:30.000Z
pyparsing-2.0.1/examples/tagCapture.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
pyparsing-2.0.1/examples/tagCapture.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
# # tagCapture.py # # Simple demo showing how to match HTML tags # from pyparsing import * src = "this is test <b> bold <i>text</i> </b> normal text " def matchingCloseTag(other): ret = Forward() ret << anyCloseTag.copy() def setupMatchingClose(tokens): opentag = tokens[0] ...
28.527778
86
0.525803
e0c11f2c1d45cab855f0407252cbaccae045d935
124
py
Python
utils/test.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
utils/test.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
utils/test.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
while True: try: s = input() # s = 'haha' print(s) except : # print(e) break
15.5
20
0.370968
2128ea84c292055709931dd8ef57230bb9214ca9
1,269
py
Python
packages/django_weixin/setup.py
tolerious/django-weixin
18f3f2d5d8377c7dde8700afc5977861c8488b68
[ "MIT" ]
null
null
null
packages/django_weixin/setup.py
tolerious/django-weixin
18f3f2d5d8377c7dde8700afc5977861c8488b68
[ "MIT" ]
null
null
null
packages/django_weixin/setup.py
tolerious/django-weixin
18f3f2d5d8377c7dde8700afc5977861c8488b68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 04 11, 2016 @author: tolerious ''' import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__...
29.511628
78
0.639874
2940ef0d442b48b0431ab0435a056931cd3c447c
316
py
Python
testing/code/odf_tarball/examples/quick_write_gzip.py
ageller/iceCubeTest
1cf74f0f225c8ab60820835cc5eee49cad586277
[ "MIT" ]
null
null
null
testing/code/odf_tarball/examples/quick_write_gzip.py
ageller/iceCubeTest
1cf74f0f225c8ab60820835cc5eee49cad586277
[ "MIT" ]
null
null
null
testing/code/odf_tarball/examples/quick_write_gzip.py
ageller/iceCubeTest
1cf74f0f225c8ab60820835cc5eee49cad586277
[ "MIT" ]
null
null
null
#!/usr/bin/env python from event import Event from fileio import write import gzip f = gzip.open("test.odf.gz","wb") ev = Event() ev.runID = 1009322 ev.year = 2007 ev.startTime = long(10908290809370) ev.eventLength = 100000. ev.triggers = [(10000.00,"BLEH")] ev.hits = [(1.0,1000.4,100.,-100.,255.)] write(f,ev)
17.555556
40
0.683544
ad0d0e8d19e6b022f1145654275f95354cf0f04d
816
py
Python
handlers/groups/report.py
jtprog/gendalf_bot
aebdaf52f9af3b1307eb1962b16d2e9fd04dd51f
[ "WTFPL" ]
null
null
null
handlers/groups/report.py
jtprog/gendalf_bot
aebdaf52f9af3b1307eb1962b16d2e9fd04dd51f
[ "WTFPL" ]
1
2021-09-12T17:38:29.000Z
2021-09-12T17:38:29.000Z
handlers/groups/report.py
jtprog/gendalf_bot
aebdaf52f9af3b1307eb1962b16d2e9fd04dd51f
[ "WTFPL" ]
null
null
null
from aiogram import types from aiogram.dispatcher.filters.builtin import Command from loader import dp from data.config import MASTER_ADMIN_ID @dp.message_handler(Command(["report"])) async def user_bot_help(message: types.Message): """ Отправка сообщения в чат и админу в личку о том, что кто-то мудак ""...
35.478261
86
0.702206
0af4a2b0f2f22747eef69233c80007ff63782781
20,411
py
Python
var/spack/repos/builtin/packages/llvm-doe/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
var/spack/repos/builtin/packages/llvm-doe/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
var/spack/repos/builtin/packages/llvm-doe/package.py
klevzoff/spack
396936d24173254ecf4148bc460702185e4c99e5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os.path import re import sys import llnl.util.tty as tty import spack.util.executable class LlvmDoe(CMakePackage,...
36.318505
120
0.571261
2cc826d445f4791051e41c58f178f84cc8bfc30b
189
py
Python
fmriprep/data/__init__.py
hstojic/fmriprep
c92bf833fecf645a2fbf3943486c665a9ebc54f7
[ "BSD-3-Clause" ]
36
2019-04-07T18:53:15.000Z
2021-04-04T10:35:54.000Z
fmriprep/data/__init__.py
hstojic/fmriprep
c92bf833fecf645a2fbf3943486c665a9ebc54f7
[ "BSD-3-Clause" ]
178
2019-02-27T16:36:06.000Z
2021-04-06T12:48:38.000Z
fmriprep/data/__init__.py
hstojic/fmriprep
c92bf833fecf645a2fbf3943486c665a9ebc54f7
[ "BSD-3-Clause" ]
20
2019-04-05T19:17:26.000Z
2021-03-25T14:47:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Data fetchers module """
31.5
73
0.608466
985cf9dd32260537971ea0cfa769ceaafdd3fb93
4,521
py
Python
sdk/python/pulumi_azure_native/network/v20180101/get_network_watcher.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180101/get_network_watcher.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180101/get_network_watcher.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
32.06383
143
0.63017
94c687b16303c76f881119ee92688a85081714b2
548
py
Python
sleep/komand_sleep/actions/sleep/action.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
null
null
null
sleep/komand_sleep/actions/sleep/action.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
null
null
null
sleep/komand_sleep/actions/sleep/action.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
null
null
null
import komand import time from .schema import SleepInput, SleepOutput class Sleep(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='sleep', description='Suspend execution for an interval of time', input=SleepInput(), ...
24.909091
72
0.569343
7896027dd412ab6f75451c615bb3df46cb7d3b43
6,986
py
Python
sdks/python/apache_beam/examples/cookbook/multiple_output_pardo.py
dexterchan/beam
01e500c2dd0d699aea0434154b69fd59d824700f
[ "Apache-2.0" ]
2
2019-12-14T04:24:33.000Z
2020-02-21T07:17:40.000Z
sdks/python/apache_beam/examples/cookbook/multiple_output_pardo.py
dexterchan/beam
01e500c2dd0d699aea0434154b69fd59d824700f
[ "Apache-2.0" ]
14
2020-02-12T22:20:41.000Z
2021-11-09T19:41:23.000Z
sdks/python/apache_beam/examples/cookbook/multiple_output_pardo.py
dexterchan/beam
01e500c2dd0d699aea0434154b69fd59d824700f
[ "Apache-2.0" ]
1
2020-02-09T02:51:50.000Z
2020-02-09T02:51:50.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...
36.385417
80
0.703979
307d685d2df6b51fa52c6f7deb5b17d9fd5124ef
7,034
py
Python
modals.py
devMoxie/MyKivyWidgets
5e0ddcef272eb53443e8fb89a02cb3a8cc517548
[ "MIT" ]
null
null
null
modals.py
devMoxie/MyKivyWidgets
5e0ddcef272eb53443e8fb89a02cb3a8cc517548
[ "MIT" ]
null
null
null
modals.py
devMoxie/MyKivyWidgets
5e0ddcef272eb53443e8fb89a02cb3a8cc517548
[ "MIT" ]
null
null
null
from kivy.uix.modalview import ModalView from kivy.uix.popup import Popup from kivy.uix.label import Label from kivy.properties import ObjectProperty from kivy.lang import Builder from icons.iconfonts import register from typography import Li from extend_button_behavior import ExtendedButtonBehavior """ modals ...
29.679325
196
0.586011
740d6f2954d1ca11471964a4e8de98cc030ef4ea
5,715
py
Python
utils/tensor_old.py
pengyuan/markov2tensor
4bcdcba6273dc7b671d81953da934188135dbca3
[ "MIT" ]
1
2018-03-20T08:28:25.000Z
2018-03-20T08:28:25.000Z
utils/tensor_old.py
pengyuan/markov2tensor
4bcdcba6273dc7b671d81953da934188135dbca3
[ "MIT" ]
null
null
null
utils/tensor_old.py
pengyuan/markov2tensor
4bcdcba6273dc7b671d81953da934188135dbca3
[ "MIT" ]
2
2015-12-16T07:21:15.000Z
2018-03-20T08:28:27.000Z
#!/usr/bin/env python # coding: UTF-8 from numpy.linalg import LinAlgError from scipy.linalg import svd, pinv import numpy as np def flatten(T, n): """D = FLATTEN(T, N) makes a matrix out of a tensor. Such that the fibers along dimension N are aligned along the columms of D. SYNOPSIS: T - a ...
29.307692
106
0.549256
f1644033ce063188c7fc737957fc2a09d10c467a
1,256
py
Python
tensorflow_examples/lite/model_customization/core/task/model_spec.py
rrtaylor/examples
2f1e9cb83f49f4678bbfcf9abbc677551ed557c4
[ "Apache-2.0" ]
2
2019-11-26T09:52:53.000Z
2020-11-05T02:55:35.000Z
tensorflow_examples/lite/model_customization/core/task/model_spec.py
Mahesh-Bauri/examples
2f1e9cb83f49f4678bbfcf9abbc677551ed557c4
[ "Apache-2.0" ]
7
2021-03-19T15:39:52.000Z
2022-03-12T00:52:01.000Z
tensorflow_examples/lite/model_customization/core/task/model_spec.py
Mahesh-Bauri/examples
2f1e9cb83f49f4678bbfcf9abbc677551ed557c4
[ "Apache-2.0" ]
3
2019-12-11T18:56:32.000Z
2019-12-12T15:39:07.000Z
# Copyright 2019 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...
32.205128
77
0.746815
2788b89eba53972310e1a74edb5d62f32b604c72
2,507
py
Python
data/p4VQE/R4/benchmark/startQiskit_QC201.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_QC201.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_QC201.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.25
118
0.634224
18ba53fcf2aabfb90186f575a24ec182cff55d92
19,856
py
Python
compiler/verify/magic.py
mudassiruddin/OpenRAM
0589a35f7315fc075eaca38c0abd477703e70bf7
[ "BSD-3-Clause" ]
null
null
null
compiler/verify/magic.py
mudassiruddin/OpenRAM
0589a35f7315fc075eaca38c0abd477703e70bf7
[ "BSD-3-Clause" ]
null
null
null
compiler/verify/magic.py
mudassiruddin/OpenRAM
0589a35f7315fc075eaca38c0abd477703e70bf7
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2016-2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # """ This is a DRC/LVS/PEX interface file for mag...
34.532174
120
0.639303
e84065fa0f7f4c372c96bad796c87e7519ec6604
3,291
py
Python
setup.py
ba-robo/ruckig
5dcdaa654a5d19ef9d7fd745e38294f5a19605d1
[ "MIT" ]
null
null
null
setup.py
ba-robo/ruckig
5dcdaa654a5d19ef9d7fd745e38294f5a19605d1
[ "MIT" ]
null
null
null
setup.py
ba-robo/ruckig
5dcdaa654a5d19ef9d7fd745e38294f5a19605d1
[ "MIT" ]
null
null
null
import os import re import subprocess import sys from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion with open('README.md', 'r') as readme_file: long_description = readme_file.read() class CMakeExtension(Extension)...
35.010638
100
0.639623
921b7e09b07ba1824e4e275c23ae044321319a4c
1,196
py
Python
workon/forms/info.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/forms/info.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/forms/info.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import re import os import logging import locale import datetime, time from django import forms from django.conf import settings from django.db.models import CharField from django.core.exceptions import ValidationError from django.utils.encoding import force_unicode from django.forms.utils import fl...
26.577778
56
0.600334
2493337ebc51aabe861c2cb13697be06ff98df3a
9,846
py
Python
tfx/examples/chicago_taxi_pipeline/taxi_pipeline_beam.py
RossKohler/tfx
ce2fd6fbde9845cd837c47089c3d6db2f87007b9
[ "Apache-2.0" ]
null
null
null
tfx/examples/chicago_taxi_pipeline/taxi_pipeline_beam.py
RossKohler/tfx
ce2fd6fbde9845cd837c47089c3d6db2f87007b9
[ "Apache-2.0" ]
null
null
null
tfx/examples/chicago_taxi_pipeline/taxi_pipeline_beam.py
RossKohler/tfx
ce2fd6fbde9845cd837c47089c3d6db2f87007b9
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
39.227092
80
0.719582
db88f8f5eef5e7b446bbdd942fb55061b6854e8a
466
py
Python
scripts/test/script.py
grapheo12/teuthology
f69547410d113fea9811e5a002cc7a4689cffdbb
[ "MIT" ]
null
null
null
scripts/test/script.py
grapheo12/teuthology
f69547410d113fea9811e5a002cc7a4689cffdbb
[ "MIT" ]
null
null
null
scripts/test/script.py
grapheo12/teuthology
f69547410d113fea9811e5a002cc7a4689cffdbb
[ "MIT" ]
null
null
null
import subprocess from pytest import raises from six import ensure_str class Script(object): script_name = 'teuthology' def test_help(self): args = (self.script_name, '--help') out = ensure_str(subprocess.check_output(args)) assert out.startswith('usage') def test_invalid(self): ...
25.888889
55
0.67382
ffaf8ac9b1bfc643b2af209136c94f46987c706a
26
py
Python
python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSimpleTuple_after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSimpleTuple_after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSimpleTuple_after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
f'{"foo"} {42:d} {2.5:f}'
13
25
0.384615
02637f26123cec7f323a52af26eb92195fc0fe31
1,986
py
Python
pybytom/config.py
meherett/btmhdw
6929750edb7747a9937806272127c98db86e4c98
[ "MIT" ]
3
2019-06-02T06:31:06.000Z
2019-06-16T20:46:38.000Z
pybytom/config.py
meherett/btmhdw
6929750edb7747a9937806272127c98db86e4c98
[ "MIT" ]
3
2020-09-10T04:40:58.000Z
2021-06-25T15:38:35.000Z
pybytom/config.py
meherett/btmhdw
6929750edb7747a9937806272127c98db86e4c98
[ "MIT" ]
1
2020-08-11T07:48:19.000Z
2020-08-11T07:48:19.000Z
#!/usr/bin/env python3 from .assets import BTM as ASSET # Bytom mainchain & sidechain configuration config: dict = { "mainchain": { "mainnet": { "bytom-core": "http://localhost:9888", "blockmeta": "https://blockmeta.com/api/v3", "blockcenter": "https://bcapi.bystack.co...
28.371429
76
0.484894
a2f6fa32ca1a3f678b9591c6ba489729ebfbc30e
1,529
py
Python
src/blockmatching/__init__.py
duducosmos/blockmatching
c37949cce79b58ae658d5814ba3cff906dc4ab4e
[ "Apache-2.0" ]
1
2021-05-17T09:20:05.000Z
2021-05-17T09:20:05.000Z
src/blockmatching/__init__.py
duducosmos/blockmatching
c37949cce79b58ae658d5814ba3cff906dc4ab4e
[ "Apache-2.0" ]
null
null
null
src/blockmatching/__init__.py
duducosmos/blockmatching
c37949cce79b58ae658d5814ba3cff906dc4ab4e
[ "Apache-2.0" ]
3
2020-11-25T04:06:16.000Z
2022-01-21T16:36:16.000Z
#!/usr/bin/env python3.6 # -*- Coding: UTF-8 -*- """ Block Matching Algorithm to estimate optical flux and detection of moving objects. According to [cuevs2013]_ in a block matching (BM) approach: '''...image frames in a video sequence are divided into blocks. For each block in the current frame, the best ma...
30.58
78
0.730543
b5089621313b8bff9504de6e3c5dbb30a9b0954c
21,383
py
Python
pandas/core/indexes/category.py
gancho-ivanov/pandas
3cbbb96f0514f872bbf154f1ed418c7aa7300e9e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/category.py
gancho-ivanov/pandas
3cbbb96f0514f872bbf154f1ed418c7aa7300e9e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/category.py
gancho-ivanov/pandas
3cbbb96f0514f872bbf154f1ed418c7aa7300e9e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from typing import ( Any, Hashable, ) import warnings import numpy as np from pandas._config import get_option from pandas._libs import index as libindex from pandas._libs.lib import no_default from pandas._typing import ( ArrayLike, Dtype, DtypeObj, ) from pan...
32.84639
95
0.583454
51c1bc127a4c49546336b970148e389031dc5f1c
3,020
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_pybadger/pewpewm4.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_pybadger/pewpewm4.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_pybadger/pewpewm4.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2020 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_pybadger.clue` ================================================================================ Badge-focused CircuitPython helper library for Pew Pew M4. * Author(s): Kattni Rembor Implementation No...
28.224299
85
0.614901
5e407c76203f0d695751560db53312f94d4dd1e3
494
py
Python
update_ratings.py
ClumsyLee/metanime
3534b3c7a980b7a879497d9b1de7040b16b5c439
[ "MIT" ]
2
2019-02-07T07:24:11.000Z
2019-04-22T17:21:25.000Z
update_ratings.py
ClumsyLee/metanime
3534b3c7a980b7a879497d9b1de7040b16b5c439
[ "MIT" ]
null
null
null
update_ratings.py
ClumsyLee/metanime
3534b3c7a980b7a879497d9b1de7040b16b5c439
[ "MIT" ]
null
null
null
import logging import sys from metanime import Anime def update_ratings(season, slug=None): filename = f'seasons/{season}.yml' animes = Anime.load(filename) for anime in animes: if slug is not None and anime.slug != slug: continue logging.info('Updating %s...', anime.slug) ...
21.478261
51
0.65587
d0b066e02b094a5648470beb6139ec10a833c5fe
409
py
Python
djangorestapidrf/wsgi.py
arabindamahato/DjangoREST_API_DRF
5292f47c4f29e64de4b5c15dc254a892b2661639
[ "MIT" ]
null
null
null
djangorestapidrf/wsgi.py
arabindamahato/DjangoREST_API_DRF
5292f47c4f29e64de4b5c15dc254a892b2661639
[ "MIT" ]
4
2021-03-19T01:51:07.000Z
2021-09-22T18:52:10.000Z
djangorestapidrf/wsgi.py
arabindamahato/DjangoREST_API_DRF
5292f47c4f29e64de4b5c15dc254a892b2661639
[ "MIT" ]
null
null
null
""" WSGI config for djangorestapidrf project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621
d23428e7fca4006b30d88e7b81ae7e475f12135d
1,861
py
Python
lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestRuntimeTypes.py
dan-zheng/llvm-project
6b792850da0345274758c9260fda5df5e57ab486
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestRuntimeTypes.py
dan-zheng/llvm-project
6b792850da0345274758c9260fda5df5e57ab486
[ "Apache-2.0" ]
1,815
2015-12-11T23:56:05.000Z
2020-01-10T19:28:43.000Z
lldb/packages/Python/lldbsuite/test/lang/objc/foundation/TestRuntimeTypes.py
dan-zheng/llvm-project
6b792850da0345274758c9260fda5df5e57ab486
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
""" Test that Objective-C methods from the runtime work correctly. """ from __future__ import print_function import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil @skipUnlessDarwin class RuntimeTypesTestCase(TestBase): mydir = TestBase.co...
30.508197
87
0.616873
4c73449076922c3ac71c5850c2b4e34b5e98f480
674
py
Python
notebooks/Exploration.py
N4v1ds0n/king_county_EDA
e4245bcb65faae1e4f89bd71301f351ab473743b
[ "MIT" ]
null
null
null
notebooks/Exploration.py
N4v1ds0n/king_county_EDA
e4245bcb65faae1e4f89bd71301f351ab473743b
[ "MIT" ]
null
null
null
notebooks/Exploration.py
N4v1ds0n/king_county_EDA
e4245bcb65faae1e4f89bd71301f351ab473743b
[ "MIT" ]
null
null
null
#This is where the code hits import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy import stats import os import csv #%matplotlib inline data = pd.read_csv("../data/King_County_House_prices_dataset.csv") file = open("../data/King_County_House_prices_dataset.csv") reader = csv.reader(file, ...
32.095238
116
0.673591
c1d1d3d6604e9d7a7b540a66352830f02403966c
2,352
py
Python
tests/models/symbol/pit_consistency_group_deletion_descriptor_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
tests/models/symbol/pit_consistency_group_deletion_descriptor_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
tests/models/symbol/pit_consistency_group_deletion_descriptor_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
#!/usr/bin/env python # coding: utf-8 """ The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions...
61.894737
845
0.789966
3223fd10a9346402503ec80ebd2f713e01872aaf
1,140
py
Python
check_line_length.py
EdgeKing810/openwisp2-docs
4a7c06ddb6dcad1a66cfe2e1ba6b087a4a83277b
[ "BSD-3-Clause" ]
null
null
null
check_line_length.py
EdgeKing810/openwisp2-docs
4a7c06ddb6dcad1a66cfe2e1ba6b087a4a83277b
[ "BSD-3-Clause" ]
null
null
null
check_line_length.py
EdgeKing810/openwisp2-docs
4a7c06ddb6dcad1a66cfe2e1ba6b087a4a83277b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import glob import os import re import sys LIMIT = 75 def check_url(line): """ Check if there is a url present in the given line """ pattern = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\), ]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' url = re.findall(pattern, lin...
24.782609
95
0.588596
706f670cccb0e997ff749dc96938bcfa63a5196b
2,669
py
Python
utils/gmm_utils.py
omegafragger/TransGAN
ed2590026c4534fe778f11da614e4f22e15ff1d9
[ "MIT" ]
null
null
null
utils/gmm_utils.py
omegafragger/TransGAN
ed2590026c4534fe778f11da614e4f22e15ff1d9
[ "MIT" ]
null
null
null
utils/gmm_utils.py
omegafragger/TransGAN
ed2590026c4534fe778f11da614e4f22e15ff1d9
[ "MIT" ]
null
null
null
import torch from torch import nn from tqdm import tqdm DOUBLE_INFO = torch.finfo(torch.double) JITTERS = [0, DOUBLE_INFO.tiny] + [10 ** exp for exp in range(-50, 0, 5)] def centered_cov_torch(x): n = x.shape[0] res = 1 / (n - 1) * x.t().mm(x) return res def get_embeddings( net, loader: torch.utils...
32.54878
119
0.606594
ac423549915f6011e161f05f4a60b8705c03009b
88,625
py
Python
mi/dataset/parser/test/test_glider.py
krosburg/mi-instrument
aa962fd1869a582aa3f712b7ae8c6ce2d7d3785a
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/test/test_glider.py
krosburg/mi-instrument
aa962fd1869a582aa3f712b7ae8c6ce2d7d3785a
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/test/test_glider.py
krosburg/mi-instrument
aa962fd1869a582aa3f712b7ae8c6ce2d7d3785a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_glider Base dataset parser test code @file mi/dataset/parser/test/test_glider.py @author Chris Wingard, Stuart Pearce, Nick Almonte @brief Test code for a Glider data parser. """ import os from StringIO import StringIO from nose.plugins.attrib import attr...
87.48766
6,480
0.768248
a3dc9f62bbc97d1482035de5b44417efbe36d86a
7,746
py
Python
src/utils/ts_utils.py
PacktPublishing/Modern-Time-Series-Forecasting-with-Python-
391ae9c8c8c5b2fba20a8ada8e48e68eb46f118a
[ "MIT" ]
10
2021-08-09T11:06:28.000Z
2022-03-07T14:47:36.000Z
src/utils/ts_utils.py
PacktPublishing/Modern-Time-Series-Forecasting-with-Python-
391ae9c8c8c5b2fba20a8ada8e48e68eb46f118a
[ "MIT" ]
null
null
null
src/utils/ts_utils.py
PacktPublishing/Modern-Time-Series-Forecasting-with-Python-
391ae9c8c8c5b2fba20a8ada8e48e68eb46f118a
[ "MIT" ]
null
null
null
import numpy as np from functools import partial from src.decomposition.seasonal import _detrend def make_stationary(x: np.ndarray, method: str="detrend", detrend_kwargs:dict={}): """Utility to make time series stationary Args: x (np.ndarray): The time series array to be made stationary method...
49.974194
211
0.700878
3f15549f6cf9e0e54483db709e920bbf00009aa4
438
py
Python
brain_training/programming_challenges/leetcode/easy/T415_Add_Strings.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
brain_training/programming_challenges/leetcode/easy/T415_Add_Strings.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
brain_training/programming_challenges/leetcode/easy/T415_Add_Strings.py
kuzxnia/algoritms
eda3185f39d79a2657b7ef0da869fcc6b825889d
[ "MIT" ]
null
null
null
class Solution: def addStrings(self, num1, num2): if len(num1) == 0: return num2 if len(num2) == 0: return num1 digit_sum = int(num1[-1]) + int(num2[-1]) if digit_sum > 9: return self.addStrings(self.addStrings(num1[:-1], str(digit_sum // 10)), nu...
36.5
117
0.531963
2a9dc97cf8f5358ac44d46150f0a9caf8501094e
115,605
py
Python
sdf/filter_info.py
drgmk/sdf
a44e66a82f876dda079686b32c767370276c38a1
[ "MIT" ]
1
2020-07-01T15:55:16.000Z
2020-07-01T15:55:16.000Z
sdf/filter_info.py
drgmk/sdf
a44e66a82f876dda079686b32c767370276c38a1
[ "MIT" ]
4
2017-03-28T19:18:09.000Z
2021-09-21T08:17:45.000Z
sdf/filter_info.py
drgmk/sdf
a44e66a82f876dda079686b32c767370276c38a1
[ "MIT" ]
1
2020-07-13T19:39:15.000Z
2020-07-13T19:39:15.000Z
"""Filter bandpassses, zero points, and offsets. Overview -------- Bandpasses ^^^^^^^^^^ Many bandpasses are from Mann & von Braun (2015, MvB, 2015PASP..127..102M), which sought a self-consistent set of bandpasses and zero points, mainly for "heritage" photometric systems that include observations of bright stars. T...
68.20354
7,828
0.613364
38e6aa47de618d25463d747676e024d7387f4e53
4,520
py
Python
tsne-cluster.py
eszabo12/clusterGAN
e91d1fe5c5a46512d55890902b51aab4ae8c98b1
[ "MIT" ]
null
null
null
tsne-cluster.py
eszabo12/clusterGAN
e91d1fe5c5a46512d55890902b51aab4ae8c98b1
[ "MIT" ]
null
null
null
tsne-cluster.py
eszabo12/clusterGAN
e91d1fe5c5a46512d55890902b51aab4ae8c98b1
[ "MIT" ]
null
null
null
from __future__ import print_function try: import argparse import os import numpy as np import sys np.set_printoptions(threshold=sys.maxsize) import matplotlib import matplotlib.pyplot as plt import matplotlib.cm as cm import pandas as pd from torch.autograd import Variab...
33.731343
116
0.67146
d7a7d0cc208fba6cc0acdc238e1b2db91abb7b42
658
py
Python
core/src/main/python/python_runner/algo/prophet/impl.py
zhangjun0x01/Alink
c1cd3380bed29a4be4eb058a7462213869c02387
[ "Apache-2.0" ]
3,301
2018-10-01T16:30:44.000Z
2022-03-30T08:07:16.000Z
core/src/main/python/python_runner/algo/prophet/impl.py
zhangjun0x01/Alink
c1cd3380bed29a4be4eb058a7462213869c02387
[ "Apache-2.0" ]
206
2019-11-27T14:04:42.000Z
2022-03-28T08:02:05.000Z
core/src/main/python/python_runner/algo/prophet/impl.py
zhangjun0x01/Alink
c1cd3380bed29a4be4eb058a7462213869c02387
[ "Apache-2.0" ]
765
2018-10-09T02:02:19.000Z
2022-03-31T12:06:21.000Z
import pandas as pd from prophet import Prophet from prophet.serialize import model_to_json class PyProphetCalc: def setCollector(self, collector): self._collector = collector def calc(self, arg): ds_array = [] y_array = [] for row in arg: ds_array.append(row[0]) ...
26.32
75
0.62614
1803bc72674f2a9f648af9141f1ff78837b4b8fe
1,387
py
Python
shells/generic_terraform_service/tests/integration_tests/helper_services/service_attributes_factory.py
oleksandr-r-q/CloudShell-Terraform-Shell
8d331cf8eebeae794e4e73a3c70af8064bafa434
[ "Apache-2.0" ]
4
2021-11-26T05:41:05.000Z
2022-03-11T20:01:40.000Z
shells/generic_terraform_service/tests/integration_tests/helper_services/service_attributes_factory.py
oleksandr-r-q/CloudShell-Terraform-Shell
8d331cf8eebeae794e4e73a3c70af8064bafa434
[ "Apache-2.0" ]
10
2021-07-14T05:19:54.000Z
2021-11-02T05:37:48.000Z
shells/generic_terraform_service/tests/integration_tests/helper_services/service_attributes_factory.py
oleksandr-r-q/CloudShell-Terraform-Shell
8d331cf8eebeae794e4e73a3c70af8064bafa434
[ "Apache-2.0" ]
1
2021-11-01T07:46:59.000Z
2021-11-01T07:46:59.000Z
from cloudshell.api.cloudshell_api import NameValuePair from tests.integration_tests.constants import SHELL_NAME, ATTRIBUTE_NAMES class ServiceAttributesFactory: @staticmethod def create_empty_attributes() -> list[dict]: attributes = [ NameValuePair(Name=f"{SHELL_NAME}.{ATTRIBUTE_NAMES.RE...
57.791667
104
0.687815
d21696b5a1d5b049e2a2165e902d9c669ed430b2
2,034
py
Python
orquesta/tests/unit/conducting/native/test_workflow_error_handling.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
orquesta/tests/unit/conducting/native/test_workflow_error_handling.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
orquesta/tests/unit/conducting/native/test_workflow_error_handling.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
27.863014
78
0.613078
06b5a158be61fb81917af52864f225e1f64dfb05
421
py
Python
notebooks/Ex3-Neural-Networks/ex3-py/lrCostFunction.py
jesussantana/Machine-Learning-Stanford-University
7ee8527d8a2df43c674757e060d1c7ccad2926a4
[ "MIT" ]
1
2021-06-02T15:27:58.000Z
2021-06-02T15:27:58.000Z
notebooks/Ex3-Neural-Networks/ex3-py/lrCostFunction.py
jesussantana/Machine-Learning-Stanford-University
7ee8527d8a2df43c674757e060d1c7ccad2926a4
[ "MIT" ]
null
null
null
notebooks/Ex3-Neural-Networks/ex3-py/lrCostFunction.py
jesussantana/Machine-Learning-Stanford-University
7ee8527d8a2df43c674757e060d1c7ccad2926a4
[ "MIT" ]
null
null
null
import numpy as np from sigmoid import sigmoid def lrCostFunction(theta, X, y, lamda): theta = theta.reshape((theta.size, 1)) m = y.size h = sigmoid(X.dot(theta)) J = np.mean(-y * np.log(h) - (1 - y) * np.log(1 - h)) J += np.square(theta[1:]).sum() * lamda / 2 / m grad = X....
21.05
58
0.513064
7f5d0758ce5e2e3109c2a53edfd6feaa0316cec0
154
py
Python
2019/08/03/The Basics of Django ListView/listviewexample/listviewexample/example/views.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
492
2019-06-25T12:54:31.000Z
2022-03-30T12:38:28.000Z
2019/08/03/The Basics of Django ListView/listviewexample/listviewexample/example/views.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
23
2019-10-01T01:36:08.000Z
2022-02-10T12:46:16.000Z
2019/08/03/The Basics of Django ListView/listviewexample/listviewexample/example/views.py
kenjitagawa/youtube_video_code
ef3c48b9e136b3745d10395d94be64cb0a1f1c97
[ "Unlicense" ]
1,734
2019-06-03T06:25:13.000Z
2022-03-31T23:57:53.000Z
from django.shortcuts import render from django.views.generic import ListView from .models import Member class MemberList(ListView): model = Member
19.25
41
0.798701
b82b4bc841a56c1d63cf16cc78312f6e64430412
3,639
py
Python
tests/engine/training/test_hooks.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
8
2020-09-16T17:22:13.000Z
2022-02-01T00:11:30.000Z
tests/engine/training/test_hooks.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
216
2020-09-20T13:05:58.000Z
2022-03-28T12:10:24.000Z
tests/engine/training/test_hooks.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
1
2022-02-01T18:23:23.000Z
2022-02-01T18:23:23.000Z
from rasa.engine.caching import TrainingCache from rasa.engine.graph import ExecutionContext, GraphNode, GraphSchema, SchemaNode from rasa.engine.storage.storage import ModelStorage from rasa.engine.training import fingerprinting from rasa.engine.training.components import PrecomputedValueProvider from rasa.engine.trai...
31.643478
86
0.646057
f3d24b8fb4d8bc05bb6392f1c03891faa2043558
33,508
py
Python
scielomanager/journalmanager/migrations/0016_fix_nulls_in_init_num.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/journalmanager/migrations/0016_fix_nulls_in_init_num.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/journalmanager/migrations/0016_fix_nulls_in_init_num.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Don't use "from appname.models imp...
88.880637
256
0.571983
ae18a1f888b60037cc5b11716a684473da3ed392
9,831
py
Python
RE/initial.py
xueshang-liulp/diaKG-code
5dd3e5f5060bec94c7508efb76aa25672c685b8c
[ "Apache-2.0" ]
10
2021-06-07T10:45:24.000Z
2022-03-01T13:22:29.000Z
RE/initial.py
xueshang-liulp/diaKG-code
5dd3e5f5060bec94c7508efb76aa25672c685b8c
[ "Apache-2.0" ]
2
2021-12-03T07:31:30.000Z
2022-03-01T07:46:53.000Z
RE/initial.py
xueshang-liulp/diaKG-code
5dd3e5f5060bec94c7508efb76aa25672c685b8c
[ "Apache-2.0" ]
8
2021-06-04T05:25:18.000Z
2022-02-10T05:59:24.000Z
import numpy as np import os # embedding the position def pos_embed(x): if x < -60: return 0 if -60 <= x <= 60: return x + 61 if x > 60: return 122 # find the index of x in y, if x not in y, return -1 def find_index(x, y): flag = -1 for i in range(len(y)): if x !=...
27.460894
126
0.516835
2c2efbec9c5720efe8a0870898cbd55c5584d614
27,502
py
Python
config/jupyter_notebook_config.py
nickmancol/python_data_pipeline
f3f70b5efa146c58cc0359512dc1309170bafa22
[ "MIT" ]
6
2020-07-08T04:10:39.000Z
2021-04-30T11:16:19.000Z
config/jupyter_notebook_config.py
Bnp20592/python_data_pipeline
f3f70b5efa146c58cc0359512dc1309170bafa22
[ "MIT" ]
null
null
null
config/jupyter_notebook_config.py
Bnp20592/python_data_pipeline
f3f70b5efa146c58cc0359512dc1309170bafa22
[ "MIT" ]
5
2020-11-08T12:58:06.000Z
2022-01-21T04:06:45.000Z
# Configuration file for jupyter-notebook. #------------------------------------------------------------------------------ # Application(SingletonConfigurable) config #------------------------------------------------------------------------------ ## This is an application. ## The date format used by logging formatt...
37.366848
103
0.698749
4ce04f69fd10c192edb2cb166d7fa47335b25558
3,452
py
Python
airflow/contrib/hooks/jira_hook.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
3
2019-10-03T21:38:59.000Z
2019-10-04T00:39:03.000Z
airflow/contrib/hooks/jira_hook.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
7
2019-03-27T07:58:14.000Z
2020-02-12T17:42:33.000Z
airflow/contrib/hooks/jira_hook.py
upjohnc/airflow-upjohn-k8s
caadbc1618d73e054de99138b0892cea3a9327c4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.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 #...
39.678161
89
0.563731
68f7e758bfc86f1e75721484f5ab66b6d7a45f57
42,995
py
Python
classmark/core/experiment.py
windionleaf/ClassMark
e6019f9abeb99e9a6b72365a508d5a6dac13c3c7
[ "Unlicense" ]
null
null
null
classmark/core/experiment.py
windionleaf/ClassMark
e6019f9abeb99e9a6b72365a508d5a6dac13c3c7
[ "Unlicense" ]
2
2020-09-26T00:56:27.000Z
2020-11-13T18:47:16.000Z
classmark/core/experiment.py
windionleaf/ClassMark
e6019f9abeb99e9a6b72365a508d5a6dac13c3c7
[ "Unlicense" ]
null
null
null
""" Created on 18. 2. 2019 Module for experiment representation and actions. :author: Martin Dočekal :contact: xdocek09@stud.fit.vubtr.cz """ from ..data.data_set import DataSet from enum import Enum, auto import time from _collections import OrderedDict from ..core.plugins import Plugin, CLASSIFIERS, FEATURE_...
32.820611
120
0.588627
74e480be8e85798accbb27173976341c3e1382fe
1,933
py
Python
msemu/server.py
sgherbst/msemu
a99f1380c707d34ddc4554b09db50c6d24605838
[ "MIT" ]
2
2020-03-19T20:58:12.000Z
2020-07-08T09:20:41.000Z
msemu/server.py
sgherbst/msemu
a99f1380c707d34ddc4554b09db50c6d24605838
[ "MIT" ]
null
null
null
msemu/server.py
sgherbst/msemu
a99f1380c707d34ddc4554b09db50c6d24605838
[ "MIT" ]
1
2021-12-27T19:23:40.000Z
2021-12-27T19:23:40.000Z
SERVER_PORT = 57937 def get_client(): import xmlrpc.client return xmlrpc.client.ServerProxy(f'http://localhost:{SERVER_PORT}') def main(): # modified from https://docs.python.org/3.7/library/xmlrpc.server.html?highlight=xmlrpc print('Launching Vivado TCL server...') import pexpect from xmlrp...
31.688525
91
0.639421
81e2134eca351705f341558a006f2aa1493061eb
4,029
py
Python
salt/_compat.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2016-07-07T18:43:05.000Z
2016-07-07T18:43:05.000Z
salt/_compat.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/_compat.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Salt compatibility code ''' # Import python libs import sys import types try: import cPickle as pickle except ImportError: import pickle # True if we are running on Python 3. PY3 = sys.version_info[0] == 3 if PY3: MAX_SIZE = sys.maxsize else: MAX_SIZE = sys.maxint # pylint: disable-msg=C0103 if...
26.86
79
0.647059
02ad4e06ffe649fa4288ddd9b44762967115cb9a
8,095
py
Python
exp/exp13_full_batch_monitoring/eval.py
jbzrE7bp/vivit
69e45ed82265d1abe18acbc17507756f686884d9
[ "MIT" ]
null
null
null
exp/exp13_full_batch_monitoring/eval.py
jbzrE7bp/vivit
69e45ed82265d1abe18acbc17507756f686884d9
[ "MIT" ]
null
null
null
exp/exp13_full_batch_monitoring/eval.py
jbzrE7bp/vivit
69e45ed82265d1abe18acbc17507756f686884d9
[ "MIT" ]
null
null
null
"""This script performs the evaluation for the configuration and checkpoint specified by the two command line arguments `config_str` and `checkpoint`. An example call looks like this: `python ./eval.py --config_str cifar10_resnet32_sgd --checkpoint 0 0`. The evaluation includes the following computations: 1) full-bat...
35.04329
88
0.643854
b883fb7445a0299e878f0b6403af3db3196813a3
1,559
py
Python
hadoop_resourcemanager_metrics/hadoop_resourcemanager_metrics.py
sasank1/plugins
f12dcb207dcd53819f2f23eeaab3b60a40885d4b
[ "BSD-2-Clause" ]
1
2019-12-10T06:44:19.000Z
2019-12-10T06:44:19.000Z
hadoop_resourcemanager_metrics/hadoop_resourcemanager_metrics.py
sasank1/plugins
f12dcb207dcd53819f2f23eeaab3b60a40885d4b
[ "BSD-2-Clause" ]
null
null
null
hadoop_resourcemanager_metrics/hadoop_resourcemanager_metrics.py
sasank1/plugins
f12dcb207dcd53819f2f23eeaab3b60a40885d4b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 ### Author: Vinoth Manoharan, Zoho Corp ### Language : Python ### Tested in Ubuntu import urllib.request, json # if any impacting changes to this plugin kindly increment the plugin # version here. PLUGIN_VERSION = "1" # Setting this to true will alert you when there is a communication # problem w...
28.87037
74
0.600385
8e317bdeab1950aed4b0adb3bc24fe5adf4f1412
1,423
py
Python
streamlit_app.py
drprajapati/streamlit-deolidfy
05f644c012c05df8d84e89ffae10714885182022
[ "MIT" ]
1
2021-07-26T04:12:03.000Z
2021-07-26T04:12:03.000Z
streamlit_app.py
drprajapati/streamlit-deolidfy
05f644c012c05df8d84e89ffae10714885182022
[ "MIT" ]
null
null
null
streamlit_app.py
drprajapati/streamlit-deolidfy
05f644c012c05df8d84e89ffae10714885182022
[ "MIT" ]
1
2021-05-24T06:42:30.000Z
2021-05-24T06:42:30.000Z
import uuid from deoldify.visualize import * from app_utils import download from app_utils import generate_random_filename from app_utils import clean_me from app_utils import clean_all from app_utils import create_directory from app_utils import get_model_bin from app_utils import convertToJPG import fastai import tor...
34.707317
179
0.762474
7ab024b8bf8a278f9e79ccbce7f7879c9371c0ce
49
py
Python
test/output/031.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
test/output/031.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
test/output/031.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
class Foo(): def __init__(self): self.bar = 0
12.25
20
0.632653
ab384369df092236be9c84869834cdca9708c544
3,285
py
Python
docs/conf.py
gregjhogan/openpilo
9d753eb29c4a106f78db23f693cd788f8f861cc8
[ "MIT" ]
37,508
2016-11-30T18:18:49.000Z
2022-03-31T23:52:00.000Z
docs/conf.py
gregjhogan/openpilo
9d753eb29c4a106f78db23f693cd788f8f861cc8
[ "MIT" ]
3,719
2016-11-30T19:25:03.000Z
2022-03-31T22:03:56.000Z
docs/conf.py
gregjhogan/openpilo
9d753eb29c4a106f78db23f693cd788f8f861cc8
[ "MIT" ]
7,859
2016-11-30T19:03:05.000Z
2022-03-31T22:56:37.000Z
# type: ignore # pylint: skip-file # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -----------------------------------...
36.5
79
0.666971
727f898028275f4be5d5335c22552bfc88bfd1cd
2,003
py
Python
atom/event.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
atom/event.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
atom/event.py
Tillsten/atom
19b6291f7d3c9b3828dcd73e900b8dcbc2ddf92d
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
32.836066
79
0.574638
17fb802e395f33ebeddf9212b8bedb630a02e608
6,750
py
Python
tests/conftest.py
alextford11/morpheus
74cd3482e06b66316847587dcdd124ac989f809d
[ "MIT" ]
null
null
null
tests/conftest.py
alextford11/morpheus
74cd3482e06b66316847587dcdd124ac989f809d
[ "MIT" ]
null
null
null
tests/conftest.py
alextford11/morpheus
74cd3482e06b66316847587dcdd124ac989f809d
[ "MIT" ]
null
null
null
import asyncio import pytest import re import uuid from aiohttp.test_utils import teardown_test_loop from aioredis import create_redis from arq import ArqRedis, Worker from atoolbox.db import prepare_database from atoolbox.db.helpers import DummyPgPool from atoolbox.test_utils import DummyServer, create_dummy_server fr...
33.415842
118
0.668741
6dcf71ca6f4aa56b617d6b6305be37dec4959b5a
5,553
py
Python
src/python/pants/core/util_rules/archive_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/core/util_rules/archive_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/core/util_rules/archive_test.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import gzip import tarfile import zipfile from io import BytesIO import pytest from pants.core.util_rules.archive import ArchiveFormat, CreateArchive, ExtractedArchive from pants.core.ut...
41.75188
99
0.726994