hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7491bd400ac8546980f4e40861f7942cfd5786e5
3,369
py
Python
src/python/grpcio_health_checking/setup.py
tomerv/grpc
27662173e750107a4520d5d6972544d67a6a0203
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
src/python/grpcio_health_checking/setup.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
src/python/grpcio_health_checking/setup.py
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
32.708738
78
0.661324
7491c19177049d4adcf3b6c397da5b20c568eb17
6,264
py
Python
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/_azure_bot_service.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/_azure_bot_service.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/_azure_bot_service.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.538462
239
0.741699
7491c473553306ebc8c50299f1a0e9ef6ba9121f
7,063
py
Python
atomic_reactor/plugins/post_generate_maven_metadata.py
hjmodi/atomic-reactor
547f3edd28628dc59a98c4928a0ecf280f5983cb
[ "BSD-3-Clause" ]
null
null
null
atomic_reactor/plugins/post_generate_maven_metadata.py
hjmodi/atomic-reactor
547f3edd28628dc59a98c4928a0ecf280f5983cb
[ "BSD-3-Clause" ]
null
null
null
atomic_reactor/plugins/post_generate_maven_metadata.py
hjmodi/atomic-reactor
547f3edd28628dc59a98c4928a0ecf280f5983cb
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2021 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ import hashlib import os import re from collections import namedtuple import koji from atomic_reactor import util from atomic_reactor.consta...
38.595628
85
0.598612
7491ccc6ef66954d9c611db5838fa68eda579d55
6,274
py
Python
modules/s3db/sit.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/s3db/sit.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/s3db/sit.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Situation Model Copyright: 2009-2022 (c) Sahana Software Foundation 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 t...
37.345238
80
0.439273
7492044307615125afbae7dd39dfe6c0a6ae6b5d
2,178
py
Python
examples/realtime.py
toolforger/curtsies
7f86c07d95aa22b004db9acf8f787e1abf49b581
[ "MIT" ]
93
2018-02-18T03:13:32.000Z
2022-03-22T22:09:15.000Z
examples/realtime.py
toolforger/curtsies
7f86c07d95aa22b004db9acf8f787e1abf49b581
[ "MIT" ]
48
2018-02-13T19:16:36.000Z
2021-12-01T14:18:38.000Z
examples/realtime.py
toolforger/curtsies
7f86c07d95aa22b004db9acf8f787e1abf49b581
[ "MIT" ]
19
2018-02-13T20:36:29.000Z
2021-01-02T20:22:43.000Z
import itertools import random import time from curtsies import FullscreenWindow, Input, FSArray from curtsies.fmtfuncs import red, bold, green, on_blue, yellow, on_red MAX_FPS = 1000 time_per_frame = 1. / MAX_FPS class FrameCounter: def __init__(self): self.render_times = [] self.dt = .5 def...
33
114
0.501377
74921eaf991b441e71b85e5f383b73e50f7f4515
2,254
py
Python
misc/python/materialize/git.py
vijaykiran/materialize
df2fc66f9acc7aa62809eaff52cb56bcc2f5301e
[ "MIT" ]
null
null
null
misc/python/materialize/git.py
vijaykiran/materialize
df2fc66f9acc7aa62809eaff52cb56bcc2f5301e
[ "MIT" ]
null
null
null
misc/python/materialize/git.py
vijaykiran/materialize
df2fc66f9acc7aa62809eaff52cb56bcc2f5301e
[ "MIT" ]
null
null
null
# Copyright Materialize, Inc. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed ...
35.21875
87
0.668146
7492282012c2fc763a22f3052d1674cf83d8d1ee
330
py
Python
testes/python/old/mongodb01.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
1
2021-02-13T07:42:04.000Z
2021-02-13T07:42:04.000Z
testes/python/old/mongodb01.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
testes/python/old/mongodb01.py
nidiascampos/smartgreen
d574d90918702ac3bd383ed77d673f871576c5b0
[ "Apache-2.0" ]
null
null
null
def get_db(): from pymongo import MongoClient client = MongoClient('localhost:27017') db = client.myFirstMB return db def add_country(db): db.countries.insert({"name": "Canada"}) def get_country(db): return db.countries.find_one() if __name__ == "__main__": db = get_db() add_country(db) print get_c...
20.625
41
0.709091
7492320a1262b0c6dc15ff958aede4dff1cd41d8
5,644
py
Python
main_video.py
timeanddoctor/3d-face-box
7053ab511c94c10e01d9d21f6de5749266bdba53
[ "MIT" ]
2
2020-05-13T07:06:56.000Z
2020-05-23T14:39:00.000Z
main_video.py
timeanddoctor/3d-face-box
7053ab511c94c10e01d9d21f6de5749266bdba53
[ "MIT" ]
null
null
null
main_video.py
timeanddoctor/3d-face-box
7053ab511c94c10e01d9d21f6de5749266bdba53
[ "MIT" ]
1
2020-05-18T07:14:17.000Z
2020-05-18T07:14:17.000Z
from face_detector import FaceDetector from mark_detector import MarkDetector import numpy as np import cv2 import imutils from imutils.video import VideoStream , FileVideoStream import time def get_headpose(h, w, landmarks_2d, landmarks_3d, lm_2d_index): f = w # column size = x axis length (focal length) u0,...
34.839506
139
0.549079
74928ec0933eeb172b3b1ee9a181a16939e4233b
38
py
Python
data_postp/__init__.py
jonasrothfuss/DeepEpisodicMemory
1095315a5d75a4840ef4017af70432e2dd535e4c
[ "MIT" ]
13
2017-02-03T17:17:04.000Z
2021-01-27T09:29:53.000Z
data_postp/__init__.py
jonasrothfuss/DeepEpisodicMemory
1095315a5d75a4840ef4017af70432e2dd535e4c
[ "MIT" ]
1
2019-01-07T23:53:51.000Z
2019-01-07T23:53:51.000Z
data_postp/__init__.py
jonasrothfuss/DeepEpisodicMemory
1095315a5d75a4840ef4017af70432e2dd535e4c
[ "MIT" ]
8
2017-02-03T17:17:41.000Z
2021-01-13T10:53:39.000Z
from .similarity_computations import *
38
38
0.868421
7492f4d9b349856fe9e4a8933eaf063827dcbe73
21,550
py
Python
espnet/bin/asrtts_train.py
creatorscan/espnet-asrtts
e516601bd550aeb5d75ee819749c743fc4777eee
[ "Apache-2.0" ]
5
2021-04-17T13:12:20.000Z
2022-02-22T09:36:45.000Z
espnet/bin/asrtts_train.py
creatorscan/espnet-asrtts
e516601bd550aeb5d75ee819749c743fc4777eee
[ "Apache-2.0" ]
null
null
null
espnet/bin/asrtts_train.py
creatorscan/espnet-asrtts
e516601bd550aeb5d75ee819749c743fc4777eee
[ "Apache-2.0" ]
5
2020-02-24T08:13:54.000Z
2022-02-22T09:03:09.000Z
#!/usr/bin/env python3 # encoding: utf-8 # Copyright 2017 Tomoki Hayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import configargparse import logging import os import random import subprocess import sys import numpy as np from espnet.utils.cli_utils import strtobool from espn...
54.145729
116
0.578794
74930db71a298fd23c6a2134fd4ae4158a5d365a
7,562
py
Python
FlaskWebAPI/securityImpl.py
ninadkan/SecureWebApp
a60ccda8339682ccc54ce97e5a431e4376c692be
[ "MIT" ]
1
2019-04-23T18:24:55.000Z
2019-04-23T18:24:55.000Z
FlaskWebAPI/securityImpl.py
ninadkan/SecureWebApp
a60ccda8339682ccc54ce97e5a431e4376c692be
[ "MIT" ]
null
null
null
FlaskWebAPI/securityImpl.py
ninadkan/SecureWebApp
a60ccda8339682ccc54ce97e5a431e4376c692be
[ "MIT" ]
null
null
null
from validateJWT import InvalidAuthorizationToken, validateJWT #from flask import Flask, jsonify, abort, make_response from flask import request, Response from expiringdict import ExpiringDict import json import storageBlobService import appSecrets MX_NUM_USER=1000 MX_TOKEN_AGE=300 # seconds, 5 minutes class security...
44.745562
149
0.603676
7493294b138d36c86923861048d2edab0bfb7cf4
2,131
py
Python
Python3/Books/Douson/chapter07/trivia_challenge.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter07/trivia_challenge.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter07/trivia_challenge.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Trivia Challenge # Trivia game that reads a plain text file import sys def open_file(file_name, mode): """Open a file.""" try: the_file = open(file_name, mode) except IOError as e: print("Unable to open the file", file_name, "Ending program.\n", e) input("\n\nPress the enter key ...
25.674699
83
0.59221
7493401dae61f3aa8277553d3c9f135c705de110
1,153
py
Python
gainful2/urls.py
rgscherf/gainful2
6742ff8294261b5d658dfbba374a78e9e4caec8f
[ "MIT" ]
5
2016-11-02T21:50:48.000Z
2018-12-15T16:43:00.000Z
gainful2/urls.py
rgscherf/gainful2
6742ff8294261b5d658dfbba374a78e9e4caec8f
[ "MIT" ]
1
2016-11-24T22:04:50.000Z
2016-11-24T22:04:50.000Z
gainful2/urls.py
rgscherf/gainful2
6742ff8294261b5d658dfbba374a78e9e4caec8f
[ "MIT" ]
null
null
null
"""gainful2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
37.193548
125
0.711188
74936a64fe21e419d2b68f4dff2b282ddf2b8acb
3,225
py
Python
python/webapp-userreg-flask-mysql/app/auth/views.py
parijatmishra/learn
e69e3e866d7a35940f405e94e00cb90059413dab
[ "Apache-2.0" ]
null
null
null
python/webapp-userreg-flask-mysql/app/auth/views.py
parijatmishra/learn
e69e3e866d7a35940f405e94e00cb90059413dab
[ "Apache-2.0" ]
8
2020-09-04T20:14:10.000Z
2022-03-08T22:43:37.000Z
python/webapp-userreg-flask-mysql/app/auth/views.py
parijatmishra/learn
e69e3e866d7a35940f405e94e00cb90059413dab
[ "Apache-2.0" ]
null
null
null
from flask import render_template, flash, redirect, request, url_for from flask.ext.login import login_user, logout_user, current_user, login_required from . import auth_blueprint from forms import LoginForm, RegistrationForm from app.models import User from app import db from app.email import send_email @auth_bluepri...
37.5
82
0.687132
7493ab8b83cc7fd48314104901f3a845ee92fa0e
11,885
py
Python
src/snowflake/connector/chunk_downloader.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
null
null
null
src/snowflake/connector/chunk_downloader.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
14
2021-01-26T06:53:10.000Z
2022-03-14T11:16:54.000Z
src/snowflake/connector/chunk_downloader.py
666Chao666/snowflake-connector-python
81a10e522fcf19d45580c79bc066b7a4eab25485
[ "Apache-2.0" ]
2
2021-03-16T12:41:29.000Z
2021-03-16T14:50:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import json import time from collections import namedtuple from concurrent.futures.thread import ThreadPoolExecutor from gzip import GzipFile from logging import getLogger from threading import Cond...
37.492114
112
0.596214
7493b0488a462627aa1ef3562b5cb6dd9cfd1fe5
2,229
py
Python
appengine/monorail/testing/test/testing_helpers_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/testing/test/testing_helpers_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/testing/test/testing_helpers_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Tests for the testing_helpers module.""" from __future__ import print_function from __future...
29.72
70
0.70166
7493df56e2c23043ddf0eb16a1ee01f43548402b
601
py
Python
scripts/examples/tools/xorsearch.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
scripts/examples/tools/xorsearch.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
scripts/examples/tools/xorsearch.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
# Tool imports from bph.tools.windows.xorsearch import BphXorSearch as XorSearch # Core Imports from bph.core.server.template import BphTemplateServer as TemplateServer from bph.core.session import BphSession as Session from bph.core.sample import BphLabFile as LabFile session = Session(project_name='blackhat...
28.619048
73
0.801997
7493dfdc1614b919e70c008a9c28ae6e93131bc7
1,931
py
Python
python/v2.6/get_creative_fields.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
103
2015-01-11T12:23:46.000Z
2022-03-31T02:06:12.000Z
python/v2.6/get_creative_fields.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
32
2015-03-03T13:39:35.000Z
2021-07-16T01:31:06.000Z
python/v2.6/get_creative_fields.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
194
2015-01-05T22:02:16.000Z
2022-03-01T17:01:39.000Z
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
29.707692
78
0.719834
7493e8b3963b106e53d735f9e80905a5601b8526
1,042
py
Python
src/config.py
RodrigoSantosRodrigues/api-jogo-da-velha-python
e03e9e2a8ea825afe2e4d82ae01fb11cf871792b
[ "MIT" ]
null
null
null
src/config.py
RodrigoSantosRodrigues/api-jogo-da-velha-python
e03e9e2a8ea825afe2e4d82ae01fb11cf871792b
[ "MIT" ]
null
null
null
src/config.py
RodrigoSantosRodrigues/api-jogo-da-velha-python
e03e9e2a8ea825afe2e4d82ae01fb11cf871792b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # /src/config.py """ Config ------------------------------------------------------------------------ Flask Environment Configuration ------------------------------------------------------------------------ """ import os from ...
26.05
77
0.513436
7493f949a36633de4944c0e60ba44f2a1b3eee8c
8,181
py
Python
cinder/scheduler/filters/capacity_filter.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/scheduler/filters/capacity_filter.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/scheduler/filters/capacity_filter.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 Intel # Copyright (c) 2012 OpenStack Foundation # Copyright (c) 2015 EMC 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 # #...
45.960674
79
0.589903
74941ef1249e15291bdafd0d8b62ff19464c0351
12,658
py
Python
python/mxboard/utils.py
liben2018/mxboard
0e23d9dfa5449d36f14e8783a0e095817ee58359
[ "Apache-2.0" ]
1
2018-06-23T20:38:59.000Z
2018-06-23T20:38:59.000Z
python/mxboard/utils.py
minhto2802/mxboard
061701acb83ff0d1d05f07c39153dbf080cbc50f
[ "Apache-2.0" ]
null
null
null
python/mxboard/utils.py
minhto2802/mxboard
061701acb83ff0d1d05f07c39153dbf080cbc50f
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
42.619529
120
0.6234
749424d6116f63ba52d82260e85e2ffa3bf89366
12,823
py
Python
tests/gis/tests/http.py
pexip/os-django-tastypie
f67d6e9e3b1667a2469bf6476d1948cbf2b52141
[ "BSD-3-Clause" ]
null
null
null
tests/gis/tests/http.py
pexip/os-django-tastypie
f67d6e9e3b1667a2469bf6476d1948cbf2b52141
[ "BSD-3-Clause" ]
5
2015-12-01T17:39:25.000Z
2017-07-13T06:27:15.000Z
tests/gis/tests/http.py
RevelSystems/django-tastypie
931617785b5bfda9fdbcc99e3fdba611f72dca77
[ "BSD-3-Clause" ]
null
null
null
import json try: from http.client import HTTPConnection except ImportError: from httplib import HTTPConnection try: from urllib.parse import quote except ImportError: from urllib import quote from testcases import TestServerTestCase from .utils import skipIfSpatialite golden_gate_park_query = quote...
55.271552
605
0.647664
74942a85db153b418c44c3324ed3b67874ca91d6
16,973
py
Python
portal/apps/core/templatetags/core_tags.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/core/templatetags/core_tags.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/core/templatetags/core_tags.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import re import random from datetime import date, datetime, timedelta from django.conf import settings from django.core.urlresolvers import reverse from django.template import Library, Node, TemplateSyntaxError, Variable, loader from django.template.defaultfilters import stringfilter...
36.036093
119
0.650032
74943cbe5a4389473a87af7952da570251765cb4
387
py
Python
papermerge/core/storage.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1
2020-09-28T06:04:38.000Z
2020-09-28T06:04:38.000Z
papermerge/core/storage.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
null
null
null
papermerge/core/storage.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1
2021-04-30T09:43:41.000Z
2021-04-30T09:43:41.000Z
import logging from django.conf import settings from django.utils.module_loading import import_string logger = logging.getLogger(__name__) def get_storage_class(import_path=None): return import_string( import_path or settings.PAPERMERGE_DEFAULT_FILE_STORAGE ) storage_class = get_storage_class() d...
19.35
63
0.79845
749465780feccc8c7925eab25d3e048d259d3c28
2,989
py
Python
goal_prox/envs/holdout_sampler.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
goal_prox/envs/holdout_sampler.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
goal_prox/envs/holdout_sampler.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import numpy as np from collections import defaultdict from itertools import combinations class HoldoutSampler: def __init__(self, low, high, n_bins, rnd_gen): low = np.array(low) high = np.array(high) step = (high - low) / n_bins self.n_bins = n_bins all_start_x = np.arang...
31.797872
74
0.522583
74947289029f83acb175590bd10e71aea3ec7d60
7,481
py
Python
falkon/mmv_ops/kernel_trsm.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
130
2020-06-18T08:30:30.000Z
2022-03-21T15:43:17.000Z
falkon/mmv_ops/kernel_trsm.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
32
2020-06-26T09:24:45.000Z
2022-03-20T10:37:36.000Z
falkon/mmv_ops/kernel_trsm.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
17
2020-07-13T17:28:02.000Z
2022-02-15T19:55:40.000Z
import dataclasses from contextlib import ExitStack from dataclasses import dataclass from typing import Tuple, Optional import numpy as np import torch import torch.cuda as tcd from falkon.mmv_ops.utils import ( _get_gpu_info, _call_direct, _start_wait_processes, _dev_from_id, _is_incore ) from falkon.options im...
42.265537
125
0.645769
749488ab63717f53ee585d1dbf8f665051e4b44e
18,318
py
Python
ics/timespan.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
ics/timespan.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
ics/timespan.py
tomschr/ics.py
f6cb12281bf78e210d51c6ff5bd324d8f2c01aef
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta, tzinfo as TZInfo from typing import Any, NamedTuple, Optional, TypeVar, Union, cast, overload import attr from attr.validators import instance_of, optional as v_optional from dateutil.tz import tzlocal from ics.types import DatetimeLike from ics.utils import TIMEDELTA_CACHE, ...
42.013761
132
0.616661
7494c7b61925789a2972393868345497ef84efe1
19,777
py
Python
test/core_tests/config_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/core_tests/config_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/core_tests/config_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for Configuration logic.""" import asyncio import unittest from unittest.mock import patch from xknx import XKNX from xknx.core import Config from xknx.devices import ( Action, BinarySensor, Climate, ClimateMode, Cover, DateTime, DateTimeBroadcastType, ExposeSensor, Fan, Light, Notification, Scene...
40.526639
110
0.554078
7494c7f97feb36c2640b266869e193681c253a25
5,829
py
Python
Testing/publications/books/literature/section.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/publications/books/literature/section.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/publications/books/literature/section.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # ----------------------------------------------------------------------------- # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # # P A G E B O T # # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyxy...
39.120805
141
0.655172
7494d0bb9de8afce7d887754c05b18c6aab44c99
7,757
py
Python
sopel/plugins/__init__.py
FahimFBA/sopel
ea1600a38c55c499e24ca45cccc55509b39aa355
[ "EFL-2.0" ]
1
2019-05-20T20:44:11.000Z
2019-05-20T20:44:11.000Z
sopel/plugins/__init__.py
half-duplex/sopel
f6147399436284dd4e28598fffa0f7263061071a
[ "EFL-2.0" ]
null
null
null
sopel/plugins/__init__.py
half-duplex/sopel
f6147399436284dd4e28598fffa0f7263061071a
[ "EFL-2.0" ]
null
null
null
"""Sopel's plugins interface. .. versionadded:: 7.0 Sopel uses what are called Plugin Handlers as an interface between the bot and its plugins (formerly called "modules"). This interface is defined by the :class:`~.handlers.AbstractPluginHandler` abstract class. Plugins that can be used by Sopel are provided by :fun...
34.02193
79
0.692149
7494e0938298fc300d8f5677125332efbfbe84ce
5,932
py
Python
tests/nwchem_tests/test_eom_ccsd_h2o.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
tests/nwchem_tests/test_eom_ccsd_h2o.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
tests/nwchem_tests/test_eom_ccsd_h2o.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
#EOM CCSD import os import sys from ..addons import * from ..utils import * import qcdb h2o = qcdb.set_molecule(''' O 0.000000000000 0.000000000000 -0.123909374404 H 0.000000000000 1.429936611037 0.983265845431 H 0.000000000000 -1.429936611037 0.983265845431...
62.442105
145
0.660823
7495092a0b867cb02b00fc1926a5ee29895f2ec5
2,914
py
Python
Apps/Engines/Nuke/NukeTools_1.01/Python/saveTheScript.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
17
2017-06-27T04:14:42.000Z
2022-03-07T03:37:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/saveTheScript.py
geoffroygivry/Cyclops-VFX
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2017-06-14T04:17:51.000Z
2018-08-23T20:12:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/saveTheScript.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2019-03-18T06:18:33.000Z
2019-08-14T21:07:53.000Z
# The MIT License (MIT) # # Copyright (c) 2015 Geoffroy Givry # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, c...
36.425
98
0.682224
74951509736de3ed705b49cab6679f2443271b7f
6,561
py
Python
oscar/lib/python2.7/site-packages/sorl/thumbnail/images.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/sorl/thumbnail/images.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/sorl/thumbnail/images.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# encoding=utf-8 from __future__ import unicode_literals, division import os import re from django.core.files.base import File, ContentFile from django.core.files.storage import Storage, default_storage from django.utils.functional import LazyObject, empty from sorl.thumbnail import default from sorl.thumbn...
27.567227
88
0.575065
74951ea016b13838f5f2c3a53cb0aa96f2e2cf5f
1,499
py
Python
tests/python/pants_test/option/test_optionable.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/option/test_optionable.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/option/test_optionable.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import unittest from pants.option.optionable import Optionable class OptionableTest(un...
26.298246
82
0.723816
7495281499e05d0d2e35215357c042a9ea23af29
19,721
py
Python
nautobot_device_onboarding/nautobot_keeper.py
jathanism/nautobot-plugin-device-onboarding
39427f4c0fbdf46cfcbfc853590981287d550e66
[ "Apache-2.0" ]
null
null
null
nautobot_device_onboarding/nautobot_keeper.py
jathanism/nautobot-plugin-device-onboarding
39427f4c0fbdf46cfcbfc853590981287d550e66
[ "Apache-2.0" ]
null
null
null
nautobot_device_onboarding/nautobot_keeper.py
jathanism/nautobot-plugin-device-onboarding
39427f4c0fbdf46cfcbfc853590981287d550e66
[ "Apache-2.0" ]
null
null
null
"""Nautobot Keeper. (c) 2020-2021 Network To Code Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
43.247807
121
0.634958
7495598bab0812080cd7713c2e172d1f0570f61e
18,752
py
Python
wc_model_gen/prokaryote/initalize_model.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
6
2018-12-24T16:20:11.000Z
2022-01-26T23:38:25.000Z
wc_model_gen/prokaryote/initalize_model.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
15
2018-08-08T20:34:40.000Z
2021-10-31T20:08:40.000Z
wc_model_gen/prokaryote/initalize_model.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
2
2019-04-05T16:11:57.000Z
2020-04-29T14:14:30.000Z
""" Initalize the construction of wc_lang-encoded models from wc_kb-encoded knowledge base. :Author: Balazs Szigeti <balazs.szigeti@mssm.edu> :Date: 2018-01-21 :Copyright: 2018, Karr Lab :License: MIT TODO: - read cytosol volume from DB; currently there is only fractional volume?! """ from wc_utils.util.chem import ...
43.710956
133
0.645691
749566bbba234fc137be162218d8d6d92b3127f7
1,654
py
Python
venv/Lib/site-packages/pyrogram/raw/base/account/__init__.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/account/__init__.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/account/__init__.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
42.410256
75
0.725514
74958fb2c70d45b994d8d4cad08227bd8629f03e
11,290
py
Python
machin/frame/noise/param_space_noise.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
machin/frame/noise/param_space_noise.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
machin/frame/noise/param_space_noise.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from typing import Callable, Tuple, Any, Dict import torch as t import torch.nn as nn from machin.utils.logging import default_logger as logger from machin.utils.helper_classes import Switch from .generator import NormalNoiseGen class AdaptiveParamNoise: def __init__( self, initial_stddev: float ...
38.401361
88
0.615943
7495bc393e4aeb1bdff7ce78ee9ebd673a64538f
1,541
py
Python
src/radical/ensemblemd/tests/test_execution_context_api.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/tests/test_execution_context_api.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/tests/test_execution_context_api.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
""" Tests cases """ import os import sys import glob import unittest from radical.ensemblemd.exceptions import TypeError from radical.ensemblemd.tests.helpers import _exception_test_helper #----------------------------------------------------------------------------- # class ExecutionContextAPITestCases(unittest.Test...
29.075472
78
0.538611
7495be96bd8330fc4535442737af9f9ab1fe1acd
2,693
py
Python
commands/slash_commands/pmconfig.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/slash_commands/pmconfig.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/slash_commands/pmconfig.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
from discord import app_commands, Interaction from discord.ext import commands from commands.command_functionality import pmconfig from commands.interractions.pmconfig.pmswarm import swarmpokemonautocomplete, swarmlocationautocomplete from commands.interractions.pmconfig.pmtournament import tournamenttypeautocomplete, ...
44.883333
115
0.734868
7495cba2acb586625bfe5a6157a07cd2576b9a91
16,002
py
Python
atom/proton/python/proton_api/models/card_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/proton_api/models/card_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/proton_api/models/card_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from proton_...
32.13253
399
0.646794
749606420966c46925655cee32226c68be83ee4a
3,209
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.191176
130
0.698348
749656939b29d798c427c1075817af3406a38dcb
4,357
py
Python
TrainingExtensions/common/src/python/aimet_common/polyslice.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/common/src/python/aimet_common/polyslice.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/common/src/python/aimet_common/polyslice.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
#!/usr/bin/env python # ============================================================================= # # @@-COPYRIGHT-START-@@ # # Copyright (c) 2018, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provide...
41.495238
99
0.654579
7496676858313e39d5fc376e397ff8f11e1bae7f
3,192
py
Python
okcupyd/util/misc.py
IvanMalison/okcupyd
46f4eaa9419098f6c299738ce148af55c64deb64
[ "MIT" ]
89
2015-01-09T19:58:07.000Z
2022-03-03T21:56:50.000Z
okcupyd/util/misc.py
doc22940/okcupyd
46f4eaa9419098f6c299738ce148af55c64deb64
[ "MIT" ]
51
2015-01-18T23:09:35.000Z
2017-04-24T03:16:03.000Z
okcupyd/util/misc.py
doc22940/okcupyd
46f4eaa9419098f6c299738ce148af55c64deb64
[ "MIT" ]
24
2015-01-16T17:43:21.000Z
2020-09-18T12:19:15.000Z
import getpass import logging import shutil import sys from coloredlogs import ColoredFormatter, HostNameFilter from okcupyd import settings DOMAIN = 'www.okcupid.com' headers = { 'accept': 'text/javascript, text/html, application/xml, ' 'text/xml, */*', 'accept-encoding': 'gzip,deflate', 'accept-l...
30.4
76
0.659148
74969f1bb81ba829219e65d3f505e16c8d55ad7e
464
py
Python
taps/test/factories.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
taps/test/factories.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
taps/test/factories.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
import factory import factory.fuzzy from taps.models import Tap from venues.test.factories import VenueFactory GAS_CHOICES = [x[0] for x in Tap.GAS_CHOICES] class TapFactory(factory.django.DjangoModelFactory): class Meta: model = Tap venue = factory.SubFactory(VenueFactory) tap_number = factory...
25.777778
66
0.760776
7496a501081b48c6422af7dafb218ce1876759ef
28
py
Python
Computer-Science/4-Cybersecurity/2-PicoCTF/4-Stonks/script.py
Chasmiccoder/Algos-for-Amigos
17a0d89c4d2b5833eb3f68994f4c40d7d09a9b91
[ "MIT" ]
2
2021-11-09T11:23:53.000Z
2021-12-22T18:09:03.000Z
Computer-Science/4-Cybersecurity/2-PicoCTF/4-Stonks/script.py
Chasmiccoder/Algos-for-Amigos
17a0d89c4d2b5833eb3f68994f4c40d7d09a9b91
[ "MIT" ]
8
2021-10-17T15:35:25.000Z
2021-12-02T05:29:07.000Z
Computer-Science/4-Cybersecurity/2-PicoCTF/4-Stonks/script.py
Chasmiccoder/Algos-for-Amigos
17a0d89c4d2b5833eb3f68994f4c40d7d09a9b91
[ "MIT" ]
null
null
null
print("%x" + "-%x" * 40)
5.6
24
0.321429
7496a89836e66011b2ebce8ddc9a185c2ebe4b9f
511
py
Python
core/argo/core/DeepLearningModel.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
core/argo/core/DeepLearningModel.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
core/argo/core/DeepLearningModel.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
from abc import abstractmethod #import numpy as np from .Launchable import Launchable #TODO-ARGO2 this class does not seem very useful class DeepLearningModel(Launchable): def __init__(self, opts, dirName, seed=0): super().__init__(opts, dirName, seed) @abstractmethod def train(self...
18.25
48
0.630137
7496b5e6233216724b8ec20979c7958659ae6267
4,660
py
Python
zcore/processor/taskflow_service.py
razaibi/autocode
765fa947d9c6a1b559fc8b7e2e40e1914455fbd4
[ "Apache-2.0" ]
null
null
null
zcore/processor/taskflow_service.py
razaibi/autocode
765fa947d9c6a1b559fc8b7e2e40e1914455fbd4
[ "Apache-2.0" ]
1
2021-09-20T22:14:03.000Z
2021-09-20T22:14:03.000Z
zcore/processor/taskflow_service.py
razaibi/zaunic
765fa947d9c6a1b559fc8b7e2e40e1914455fbd4
[ "Apache-2.0" ]
null
null
null
import os from pathlib import Path from zcore.common import FileManager import CONFIGS from zcore.node import Manager as NodeManager from zcore.processor.node_service import NodeProcessorService from zcore.secret.orchestrator_service import OrchestratorService from zcore.processor.service import ProcessorService from z...
33.52518
140
0.613519
7496bfa0163ca531a9c2b4fb8fe073df9e85c849
1,001
py
Python
portals/wwits/groups/communication/autopage_qry/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/communication/autopage_qry/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/communication/autopage_qry/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from dataclasses import dataclass from typing import List @dataclass class ParmModel: Version: str Env: str UserID: str Session: int Source: str RC: int ResultMsg: str Type: str CustCode: str Branch: str Site: str Contract: str @dataclass class AutoPageModel: Type...
15.640625
33
0.626374
7496ced974b28bce29fd8b3dc4049f95b0792201
5,920
py
Python
projects/coda/probing/_src/result_util.py
nala-cub/coda
581608cfc4d9b485182c6f5f40dd2ab7540cec66
[ "Apache-2.0" ]
1
2021-11-13T06:19:22.000Z
2021-11-13T06:19:22.000Z
projects/coda/probing/_src/result_util.py
nala-cub/coda
581608cfc4d9b485182c6f5f40dd2ab7540cec66
[ "Apache-2.0" ]
1
2021-12-21T17:56:58.000Z
2021-12-21T18:16:27.000Z
projects/coda/probing/_src/result_util.py
nala-cub/coda
581608cfc4d9b485182c6f5f40dd2ab7540cec66
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Cory Paik. 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 law or ag...
31.827957
80
0.623818
7496ed08acbc4cda242eb5d3f1bebc5a361591a6
2,051
py
Python
scout/commands/download/hpo.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/commands/download/hpo.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/commands/download/hpo.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
"""Code for handling downloading of HPO files used by scout from CLI""" import logging import pathlib import click from scout.utils.scout_requests import (fetch_hpo_genes, fetch_hpo_phenotype_to_terms, fetch_hpo_terms, fetch_hpo_to_genes)...
35.362069
85
0.672843
7496fa56b0b3b043c758127c7219a4e5e640cabc
633
py
Python
dvc/repo/pull.py
drorata/dvc
b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0
[ "Apache-2.0" ]
2
2019-06-23T14:24:48.000Z
2019-07-08T12:22:53.000Z
dvc/repo/pull.py
aliseramirez/dvc
92cc9f7e6f19f3b92f43e28131fe50c20b297214
[ "Apache-2.0" ]
null
null
null
dvc/repo/pull.py
aliseramirez/dvc
92cc9f7e6f19f3b92f43e28131fe50c20b297214
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals def pull( self, target=None, jobs=1, remote=None, all_branches=False, show_checksums=False, with_deps=False, all_tags=False, force=False, recursive=False, ): processed_files_count = self.fetch( target, jobs, re...
21.1
76
0.650869
7496fe2924f0d7ad98f0e17423ce7162c19d8058
1,963
py
Python
tests/unit/modules/blockdev_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
tests/unit/modules/blockdev_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/blockdev_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- # Import Salt Testing Libs from salttesting.unit import skipIf, TestCase from salttesting.helpers import ensure_in_syspath from salttesting.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch ensure_in_syspath('../../') # Import Salt Libs import salt.modules.blockdev as blockdev blockdev.__...
37.037736
110
0.623535
74973c0d38b19b5d2da54a8b6ac00a3754e7c232
3,523
py
Python
alipay/aop/api/domain/AlipayCommerceIotVendingmachineProfileQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayCommerceIotVendingmachineProfileQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayCommerceIotVendingmachineProfileQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceIotVendingmachineProfileQueryModel(object): def __init__(self): self._biz_tid = None self._goods_code = None self._pid = None self._search_data_list ...
30.37069
83
0.602044
7497854580b0c968ad0a2c0ecd7d204f6b69cfce
2,036
py
Python
mozillians/common/tests/__init__.py
Sheeri/mozillians
b8c48d205fcd203214a4949b2ad6cb790545d8a6
[ "BSD-3-Clause" ]
null
null
null
mozillians/common/tests/__init__.py
Sheeri/mozillians
b8c48d205fcd203214a4949b2ad6cb790545d8a6
[ "BSD-3-Clause" ]
null
null
null
mozillians/common/tests/__init__.py
Sheeri/mozillians
b8c48d205fcd203214a4949b2ad6cb790545d8a6
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager, nested from django.contrib.auth.decorators import login_required from django.shortcuts import redirect from django.test.client import Client from django.test.utils import override_settings from mock import patch from nose.tools import make_decorator, ok_ from test_utils import T...
34.508475
80
0.657171
74979af3d4773060a0de998ca2f6df3171678522
53,138
py
Python
raiden/api/rest.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
raiden/api/rest.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
raiden/api/rest.py
BOR4/raiden
d72e32806fe3b73e5fa6a00843f3f5e41be4448b
[ "MIT" ]
null
null
null
import errno import logging import socket from hashlib import sha256 from http import HTTPStatus import gevent import gevent.pool import structlog from eth_utils import encode_hex from flask import Flask, Response, request, send_from_directory, url_for from flask.json import jsonify from flask_cors import CORS from fl...
38.673945
99
0.640935
7497b165014f350f9a1a7265f202626a84107890
1,301
py
Python
openapi_python_client/schema/openapi_schema_pydantic/encoding.py
JamesHinshelwood/openapi-python-client
08bc2acf91d50d4fcdd7f0e50a8b0d3f00a187d9
[ "MIT" ]
1
2022-02-17T11:45:13.000Z
2022-02-17T11:45:13.000Z
openapi_python_client/schema/openapi_schema_pydantic/encoding.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
openapi_python_client/schema/openapi_schema_pydantic/encoding.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Dict, Optional, Union from pydantic import BaseModel, Extra from .reference import Reference if TYPE_CHECKING: # pragma: no cover from .header import Header else: Header = "Header" # pylint: disable=invalid-name class Encoding(BaseModel): """A single encoding definit...
30.97619
98
0.568025
74980c320474b0ba822901577c01249775bf8bc6
2,734
py
Python
test/blackbox/rmq_2_sysmon/blackbox_test3.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/blackbox/rmq_2_sysmon/blackbox_test3.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/blackbox/rmq_2_sysmon/blackbox_test3.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: blackbox_test.py Description: Blackbox testing of rmq_2_sysmon.py program. Usage: test/blackbox/rmq_2_sysmon/blackbox_test.py Arguments: """ # Libraries and Global Variables # Standard import os import sys import time # Third-party import ...
25.082569
76
0.649963
749811c15a5fdce6833d1253e13b3b9de5319fbc
4,657
py
Python
leetcode/1-easy/1-array/8-movezero/move_zero.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/1-easy/1-array/8-movezero/move_zero.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/1-easy/1-array/8-movezero/move_zero.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
# https://leetcode.com/explore/interview/card/top-interview-questions-easy/92/array/567/ # https://leetcode.com/problems/move-zeroes/description/ # Move Zeroes # # Given an array nums, write a function to move all 0's to the end of # it while maintaining the relative order of the non-zero elements. import unittest ...
31.466216
89
0.551213
74982a2896c82d496bcfbdd5d4ac949572b464f8
44,793
py
Python
SCRAPE/Lib/site-packages/twisted/conch/test/test_session.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/conch/test/test_session.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/conch/test/test_session.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for the 'session' channel implementation in twisted.conch.ssh.session. See also RFC 4254. """ import os import signal import struct import sys from unittest import skipIf from zope.interface import implementer from twisted.internet ...
34.5625
88
0.623178
749854be5a16bebbc68df92b43aa74053c26c49c
4,242
py
Python
pretix_eth/signals.py
lassejaco/pretix-eth-payment-plugin
be514a7387de8399cb11c9dd8971f286ccc9a72c
[ "Apache-2.0" ]
null
null
null
pretix_eth/signals.py
lassejaco/pretix-eth-payment-plugin
be514a7387de8399cb11c9dd8971f286ccc9a72c
[ "Apache-2.0" ]
null
null
null
pretix_eth/signals.py
lassejaco/pretix-eth-payment-plugin
be514a7387de8399cb11c9dd8971f286ccc9a72c
[ "Apache-2.0" ]
null
null
null
from django.dispatch import receiver from django.urls import resolve, reverse from django.utils.translation import gettext_lazy as _ from django.template.loader import get_template from django import forms from pretix.base.middleware import _parse_csp, _merge_csp, _render_csp from pretix.presale.signals import ( h...
34.487805
91
0.704149
749877e6f4ff231daa6e94a937a764a010cfb789
4,828
py
Python
src/buildstream/testing/__init__.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/testing/__init__.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/testing/__init__.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Codethink Limited # Copyright (C) 2019 Bloomberg Finance LP # # 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 # #...
35.762963
114
0.71251
7498aab51901ab0ba3079bf95bc249608746a25d
3,565
py
Python
cloudservers/client.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
1
2021-04-08T10:13:32.000Z
2021-04-08T10:13:32.000Z
cloudservers/client.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
null
null
null
cloudservers/client.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
null
null
null
import time import urlparse import urllib import httplib2 try: import json except ImportError: import simplejson as json # Python 2.5 compat fix if not hasattr(urlparse, 'parse_qsl'): import cgi urlparse.parse_qsl = cgi.parse_qsl import cloudservers from cloudservers import exceptions class CloudServ...
34.278846
86
0.609537
7498c5845f85d6d5938bc86b5e9e44179c0566e5
9,741
py
Python
ez_setup.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
ez_setup.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
ez_setup.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
#!python """Bootstrap setuptools installation If you want to use setuptools in your package's setup.py, just include this file in the same directory with it, and add this to the top of your setup.py:: from ez_setup import use_setuptools use_setuptools() If you want to require a specific version of setuptools...
35.293478
97
0.658557
7498dfecd71b9343dd7d340d3e7f466d2a8fa8f1
3,374
py
Python
meter/b_route.py
FraserTooth/echonet_interface
e009a6371543a65ac8c5ed895e7258fb072612f8
[ "MIT" ]
1
2021-09-22T10:25:32.000Z
2021-09-22T10:25:32.000Z
meter/b_route.py
FraserTooth/echonet_interface
e009a6371543a65ac8c5ed895e7258fb072612f8
[ "MIT" ]
null
null
null
meter/b_route.py
FraserTooth/echonet_interface
e009a6371543a65ac8c5ed895e7258fb072612f8
[ "MIT" ]
null
null
null
import serial import logging.handlers from . import config, common import sys logger = logging.getLogger("b-route") fmt = "%(asctime)s %(levelname)s %(name)s :%(message)s" logging.basicConfig(level=10, format=fmt) def connect_to_broute(ser: serial.Serial) -> str: # Send B-Route Password set_password_comman...
33.078431
69
0.601363
7498f3898e770fb1b242f42eaaf72b6754e17033
1,343
py
Python
ctic/1.7.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
ctic/1.7.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
ctic/1.7.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" 1.7 - Rotate an image matrix of size NXN by 90 degree Do rotation in-place """ from typing import List # in-place rotation # assuming clockwise 90 degree rotation def rotate(image: List[List[int]]) -> List[List[int]]: N = len(matrix) C = len(matrix[0]) if N != C: raise Except...
20.044776
57
0.423678
74990b2401bf12e6b1f45190796f577b72fef8ff
13,445
py
Python
rlalgos/deprecated/sac/sac.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
281
2021-01-13T14:20:23.000Z
2022-03-23T08:46:56.000Z
rlalgos/deprecated/sac/sac.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
2
2021-01-22T23:28:34.000Z
2021-04-29T22:05:42.000Z
rlalgos/deprecated/sac/sac.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
13
2021-01-15T14:53:32.000Z
2022-03-22T11:12:54.000Z
# # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from rlalgos import BaseExperiment from rlstructures.logger import Logger, TFLogger from rlstructures import DictTensor, TemporalDictTens...
35.949198
94
0.573968
74990e723a9c3568333f2de9e132d9430c831fc7
1,608
py
Python
igibson/examples/behavior/behavior_robot_related_states_demo.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/examples/behavior/behavior_robot_related_states_demo.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/examples/behavior/behavior_robot_related_states_demo.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import os import bddl import igibson from igibson import object_states from igibson.examples.behavior import behavior_demo_replay bddl.set_backend("iGibson") def robot_states_callback(igbhvr_act_inst, _): window1 = (igbhvr_act_inst.object_scope["window.n.01_1"], "kitchen") window2 = (igbhvr_act_inst.object...
30.923077
116
0.660448
7499656349867831b10582263d954993ab391b47
13,564
py
Python
theto/bokeh_utils.py
Valassis-Digital-Media/geoplotter
debd1bac4cfbac6d90693585661a88ef61d420d3
[ "BSD-3-Clause" ]
5
2019-05-01T23:29:21.000Z
2020-02-16T16:47:31.000Z
theto/bokeh_utils.py
Valassis-Digital-Media/geoplotter
debd1bac4cfbac6d90693585661a88ef61d420d3
[ "BSD-3-Clause" ]
23
2019-05-06T18:35:47.000Z
2020-05-11T13:57:58.000Z
theto/bokeh_utils.py
Valassis-Digital-Media/geoplotter
debd1bac4cfbac6d90693585661a88ef61d420d3
[ "BSD-3-Clause" ]
2
2020-04-15T10:52:25.000Z
2020-11-23T23:22:08.000Z
from bokeh.models import CheckboxGroup, CheckboxButtonGroup, RangeSlider, Slider, Dropdown, RadioButtonGroup, Button from bokeh.models import CustomJS from bokeh.events import ButtonClick from bokeh.models import markers, WMTSTileSource from bokeh.models.glyphs import MultiPolygons, Text from bokeh.models import Plot, ...
34.252525
142
0.563256
749965673914bb89099405893968145403d65c91
7,199
py
Python
toontown/coghq/CashbotMintStomperAlley_Action01.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/CashbotMintStomperAlley_Action01.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/CashbotMintStomperAlley_Action01.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_10/models/cashbotHQ/ZONE17a', 'wantDoors': 1}, 1001: {'type...
29.383673
61
0.435616
749995fba00245a3e58af5b76421b5992c023a93
451
py
Python
code/readfile.py
JonTheWong/pySnippets
dd59bd151280945bb590a59da0eaa7cd706194ce
[ "Linux-OpenIB" ]
null
null
null
code/readfile.py
JonTheWong/pySnippets
dd59bd151280945bb590a59da0eaa7cd706194ce
[ "Linux-OpenIB" ]
null
null
null
code/readfile.py
JonTheWong/pySnippets
dd59bd151280945bb590a59da0eaa7cd706194ce
[ "Linux-OpenIB" ]
null
null
null
import glob # Documentation # https://docs.python.org/3.7/library/glob.html def readfile(filepath): ''' Read file in filepath, return all lines as a list type. Call function: ```readfile('data/file0.txt')``` ''' for line in glob.iglob(filepath, recursive=True): with open(line) as data: ...
23.736842
74
0.631929
749998bf3ac6e01db0a7383387ebb78c792de5c9
3,004
py
Python
source/testing/test_kernels.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
source/testing/test_kernels.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
source/testing/test_kernels.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
''' Some routines to test our kernel-handling routines. @authors: James Robert Lloyd (jrl44@cam.ac.uk) Roger Grosse (rgrosse@mit.edu) David Duvenaud (dkd23@cam.ac.uk) ''' import os import scipy.io import flexiblekernel as fk import gpml import grammar def test_kernel_eval(): '''Te...
63.914894
1,228
0.738682
74999914f43d65125b7fab9e365e2b0dd86e8ca3
1,936
py
Python
2020/day_18/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
2020/day_18/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
2020/day_18/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
import re import networkx as nx from parse import * import copy from collections import defaultdict import itertools import numpy as np from math import cos, sin, pi import contextlib from unittest import TestCase import lark def read_input(filename="input.txt"): with open(filename) as f: lines = [line.st...
26.520548
89
0.572314
749999706fa4cdc37c24a295c77993e8f09c2984
1,648
py
Python
scripts/practice/FB-reRun/FindSingleNonDuplicateNumber.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/FindSingleNonDuplicateNumber.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/FindSingleNonDuplicateNumber.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Single Number Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only constant extra space. Example 1: Input: nums = [2,2,1] Output: 1 Example 2: Input: nums = [4,1,2,1,2] Output: 4 ...
21.402597
107
0.56432
7499abab6d4e51a3776db9632a6f1e2fb8be3acf
411
py
Python
Week 3/day 18 - Py Turtle GUI/project.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
1
2021-07-26T05:31:57.000Z
2021-07-26T05:31:57.000Z
Week 3/day 18 - Py Turtle GUI/project.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
Week 3/day 18 - Py Turtle GUI/project.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
from turtle import Turtle, Screen import random from colors import colors_list timmy = Turtle() screen = Screen() screen.colormode(255) timmy.speed('fastest') timmy.penup() timmy.setposition(-300, -300) timmy.hideturtle() for row in range(10): for col in range (10): timmy.dot(20, random.choice(colors_list)) ...
20.55
49
0.73236
7499b0ca0b7204921f5b320d9c7045d151f4c163
3,020
py
Python
graphite_datadog/finder.py
iksaif/graphite-datadog
64a43aaae5dedc7d2a5c646b7e7a2d09b3ed23d0
[ "Apache-2.0" ]
null
null
null
graphite_datadog/finder.py
iksaif/graphite-datadog
64a43aaae5dedc7d2a5c646b7e7a2d09b3ed23d0
[ "Apache-2.0" ]
null
null
null
graphite_datadog/finder.py
iksaif/graphite-datadog
64a43aaae5dedc7d2a5c646b7e7a2d09b3ed23d0
[ "Apache-2.0" ]
null
null
null
import threading import datetime import time import datadog from graphite import node from graphite.finders import utils from graphite_datadog import errors from graphite_datadog import glob_utils def init_api(settings): """Initialize the datadog API. Args: settings: Django settings or None. ...
27.706422
98
0.631788
7499b2f61dee7a31a26c8adaeda7a0f18ae00996
5,686
py
Python
tests/test_tag_components.py
spsandiford/scte35-python
c325b170b87164da9cd08802d4861149596cd231
[ "MIT" ]
2
2020-01-16T09:55:52.000Z
2020-05-14T09:10:47.000Z
tests/test_tag_components.py
spsandiford/scte35-python
c325b170b87164da9cd08802d4861149596cd231
[ "MIT" ]
null
null
null
tests/test_tag_components.py
spsandiford/scte35-python
c325b170b87164da9cd08802d4861149596cd231
[ "MIT" ]
null
null
null
import pytest from scte35 import HlsCueTag, NotAnHLSCueTag, MissingCueException example_good_tags = [ { 'tag': '#EXT-X-SCTE35:TYPE=0x34,CUE=/DBfAACfwEAM///wBQb/8ZPsgQBJAhxDVUVJOeVyXX//AAD4J5cICAAFH4I55XJdNAIDAilDVUVJAAAAAH+/DBpWTU5VAUB2w2S4qhHoiztw3y+Gas4B+olIUQEAAJOLlf8=,ELAPSED=0.000', 'componen...
45.488
241
0.673233
7499d501df2d44fde3f7ffecc2e7e84f50909d30
559
py
Python
examples/run_gsa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
202
2018-02-06T12:13:42.000Z
2022-03-18T16:33:20.000Z
examples/run_gsa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
262
2018-02-06T14:49:15.000Z
2022-03-25T19:49:46.000Z
examples/run_gsa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
136
2018-02-06T16:55:32.000Z
2022-03-05T17:49:52.000Z
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.algorithms.basic import GravitationalSearchAlgorithm from niapy.task import Task from niapy.problems import Sphere # we will run...
29.421053
67
0.769231
7499db36bdbca43387c3375745b48b299f72a75b
1,110
py
Python
tests/test_community.py
Dih5/comod
2403d104903171a20cc730c04ecf88f4aab28ac9
[ "MIT" ]
1
2021-12-17T11:51:17.000Z
2021-12-17T11:51:17.000Z
tests/test_community.py
Dih5/comod
2403d104903171a20cc730c04ecf88f4aab28ac9
[ "MIT" ]
null
null
null
tests/test_community.py
Dih5/comod
2403d104903171a20cc730c04ecf88f4aab28ac9
[ "MIT" ]
null
null
null
import comod def test_community(): """Test the generation of community models""" sir = comod.Model("SIR", # States "bg", # Coefficients [ # Rules in the form (origin, destination, coefficient) ("S", "I", "b I / N"), ...
44.4
79
0.358559
749a06b367ff4cbffab394ed30c310655cc9e57e
3,130
py
Python
src/casymda/visualization/web_server/flatbuffers/Text.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
19
2020-04-18T14:47:37.000Z
2022-03-26T14:18:21.000Z
src/casymda/visualization/web_server/flatbuffers/Text.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-03-17T21:01:58.000Z
2021-09-24T21:07:25.000Z
src/casymda/visualization/web_server/flatbuffers/Text.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-05-09T16:31:57.000Z
2022-01-23T09:11:19.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: flatbuffers import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class Text(object): __slots__ = ["_tab"] @classmethod def GetRootAsText(cls, buf, offset): n = flatbuffers.encode.Get...
26.083333
88
0.641534
749a33af2a5cc6bb276e260dc890132e72ed442b
85,010
py
Python
follow/migrations/0006_auto__del_field_follow_target_course__add_field_follow_site.py
affan2/django-follow
d1c11ad5937f748f0b9fa6083354be5e133c3ed4
[ "MIT" ]
null
null
null
follow/migrations/0006_auto__del_field_follow_target_course__add_field_follow_site.py
affan2/django-follow
d1c11ad5937f748f0b9fa6083354be5e133c3ed4
[ "MIT" ]
null
null
null
follow/migrations/0006_auto__del_field_follow_target_course__add_field_follow_site.py
affan2/django-follow
d1c11ad5937f748f0b9fa6083354be5e133c3ed4
[ "MIT" ]
1
2020-01-08T09:07:24.000Z
2020-01-08T09:07:24.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Follow.site' db.add_column(u'follow_follow', 'site', ...
104.821208
274
0.582814
749a48f524f749405d41cafb846c7f58e4f7e710
1,290
py
Python
examples/http/quick.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
5
2021-03-25T20:33:55.000Z
2021-12-21T05:03:23.000Z
examples/http/quick.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
5
2021-03-31T05:54:07.000Z
2021-07-01T01:21:39.000Z
examples/http/quick.py
ermiry-com/py-cerver
b2db27a7e41a2dd2511882290a2d0de4b7ee82db
[ "MIT" ]
7
2021-03-25T20:33:58.000Z
2021-12-29T05:28:56.000Z
import os, signal, sys import ctypes from cerver import * from cerver.http import * web_service = None def end (signum, frame): http_cerver_all_stats_print (http_cerver_get (web_service)) cerver_teardown (web_service) cerver_end () sys.exit ("Done!") # GET /test @ctypes.CFUNCTYPE (None, ctypes.c_void_p, ctypes....
22.241379
75
0.775969
749a49f04cf9667f9409c145941395b192739a46
4,403
py
Python
script/feature_extraction/extract_features.py
yesidc/MLinPractice
519b17ed4f988b752f4f033444d0aa4d0ccd13a4
[ "MIT" ]
1
2021-12-13T16:50:09.000Z
2021-12-13T16:50:09.000Z
script/feature_extraction/extract_features.py
yesidc/MLinPractice
519b17ed4f988b752f4f033444d0aa4d0ccd13a4
[ "MIT" ]
null
null
null
script/feature_extraction/extract_features.py
yesidc/MLinPractice
519b17ed4f988b752f4f033444d0aa4d0ccd13a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Runs the specified collection of feature extractors. Created on Wed Sep 29 11:00:24 2021 @author: lbechberger """ import argparse, csv, pickle import pandas as pd import numpy as np from script.feature_extraction.character_length import CharacterLength from script...
41.149533
135
0.754031
749a8ed08bfd6c5ab13ac037067fad641bb0b61d
6,813
py
Python
prescryptchain/prescryptchain/settings.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
3
2018-05-03T18:40:48.000Z
2019-06-09T19:04:44.000Z
prescryptchain/prescryptchain/settings.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
6
2018-06-27T00:14:46.000Z
2018-10-29T20:51:45.000Z
prescryptchain/prescryptchain/settings.py
genobank-io/CryptoVault
7c2f6c4c55df7d9e172058aad334a26786ea839f
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ Django settings for prescryptchain project. Generated by 'django-admin startproject' using Django 1.11.3. """ import os import ast # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) import dj_d...
27.922131
91
0.663291
749aef5a6bec4eade4d0aa77906e8e82d0868dd2
3,727
py
Python
empower/apps/handlers/ncqmstatshandler.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
2
2020-02-28T15:54:01.000Z
2020-11-24T08:45:11.000Z
empower/apps/handlers/ncqmstatshandler.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
null
null
null
empower/apps/handlers/ncqmstatshandler.py
imec-idlab/empower-runtime
eda52649f855722fdec1d02e25a28c61a8fbda06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Pedro Heleno Isolani # # 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 app...
35.160377
111
0.618192
749af869e295020dc230f31267a3a40694cef607
56,495
py
Python
pwnlib/rop/rop.py
rhythmize/pwntools
0c72e3a923c8f6367762c79355232bf0d20601b8
[ "MIT" ]
1
2021-07-14T15:11:46.000Z
2021-07-14T15:11:46.000Z
pwnlib/rop/rop.py
rhythmize/pwntools
0c72e3a923c8f6367762c79355232bf0d20601b8
[ "MIT" ]
null
null
null
pwnlib/rop/rop.py
rhythmize/pwntools
0c72e3a923c8f6367762c79355232bf0d20601b8
[ "MIT" ]
null
null
null
r""" Return Oriented Programming Manual ROP ------------------- The ROP tool can be used to build stacks pretty trivially. Let's create a fake binary which has some symbols which might have been useful. >>> context.clear(arch='i386') >>> binary = ELF.from_assembly('add esp, 0x10; ret; pop eax; ret; pop ecx; ...
34.680786
138
0.540667
749b0ea7162757af51025b4d675856bc75b0208c
1,043
py
Python
models/cite/data/prep.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
34
2019-02-04T14:57:08.000Z
2022-02-07T13:32:35.000Z
models/cite/data/prep.py
syyunn/DeepWTO
0e9f206ec2ce24b1afdf895bc81509dd84235b82
[ "Apache-2.0" ]
3
2020-03-02T05:06:24.000Z
2020-03-06T08:39:18.000Z
models/cite/data/prep.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
4
2020-02-17T04:17:12.000Z
2022-02-07T14:27:01.000Z
""" This Codes is to tokenize the given strings into feed-able shapes of input. """ import spacy from utils.tokenize import tokenize from utils.misc.json import write_json_one_line def do_tokenize(factual, id=0, label=[0]): """ Perform Tokenize to make input data dict. In case you perform test, just set ...
24.833333
77
0.656759
749b1b871fb5cc5699e2f1f1db84202e7df315fd
16,782
py
Python
sources/openslide/large_image_source_openslide/__init__.py
ds2268/large_image
edab179aabdca31e0852866e66b34adbab410f5b
[ "Apache-2.0" ]
null
null
null
sources/openslide/large_image_source_openslide/__init__.py
ds2268/large_image
edab179aabdca31e0852866e66b34adbab410f5b
[ "Apache-2.0" ]
null
null
null
sources/openslide/large_image_source_openslide/__init__.py
ds2268/large_image
edab179aabdca31e0852866e66b34adbab410f5b
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
42.593909
92
0.594327
749b381ff9e69508955e283876b2384b186c60a2
4,402
py
Python
unit_test/test_mipfeature_miplib2017-39.py
pandat8/LocalBranchingML
82c8f25736ee066b6ff3d72b1ee50c12b1982622
[ "MIT" ]
1
2021-06-17T00:35:51.000Z
2021-06-17T00:35:51.000Z
unit_test/test_mipfeature_miplib2017-39.py
pandat8/LocalBranchingML
82c8f25736ee066b6ff3d72b1ee50c12b1982622
[ "MIT" ]
null
null
null
unit_test/test_mipfeature_miplib2017-39.py
pandat8/LocalBranchingML
82c8f25736ee066b6ff3d72b1ee50c12b1982622
[ "MIT" ]
null
null
null
import ecole import numpy import pyscipopt import pathlib import gzip import pickle from utility import generator_switcher, instancetypes, modes from geco.mips.miplib.base import Loader env = ecole.environment.Configuring( # set up a few SCIP parameters scip_params={ "presolving/maxrounds": 0, # deac...
31.442857
115
0.630168
749b3d8c80e7ac23811918d4739b82a8d07f7033
4,820
py
Python
appengine/swarming/tools/android/setup_udev.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/swarming/tools/android/setup_udev.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/tools/android/setup_udev.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Generates the file /etc/udev/rules.d/android_swarming_bot.rules to enable automatic Swarming bot to be fired up when an A...
31.710526
80
0.686307
749b45a6bcde5764da6cf5fa6dd3097e320ef91e
15,052
py
Python
salt/states/cloud.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/states/cloud.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/states/cloud.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Using states instead of maps to deploy clouds ============================================= .. versionadded:: 2014.1.0 (Hydrogen) Use this minion to spin up a cloud instance: .. code-block:: yaml my-ec2-instance: cloud.profile: my-ec2-config ''' import pprint from salt...
31.957537
79
0.570954
749b4a6d5d51c5b73804f730c76560689475d8c8
2,232
py
Python
leetcode_python/String/valid-anagram.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/String/valid-anagram.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/String/valid-anagram.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 242. Valid Anagram Easy Given two strings s and t, return true if t is an anagram of s, and false otherwise. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Example 1: Input: s = "anagram", t = "nagaram" O...
22.77551
150
0.620968
749b81a857aab70b961cc4bd67f1ab859a81bcc2
10,020
py
Python
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
import json import logging from django.conf import settings from django.template.defaultfilters import filesizeformat from django.utils.text import normalize_newlines from django.utils.translation import ugettext_lazy as _ from django.views.decorators.debug import sensitive_variables from horizon import forms from ho...
38.244275
87
0.552595
749b9a16d3b1b0c68e2270bf713b4e7032bf8d9a
8,847
py
Python
appengine/findit/findit_v2/model/compile_failure.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/findit_v2/model/compile_failure.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
appengine/findit/findit_v2/model/compile_failure.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from collections import defaultdict import hashlib from google.appengine.ext import ndb from findit_v2.model.atomic_failure import AtomicFailure from findi...
37.487288
80
0.735956
749bc505c4cb1033395dfcb04536e1d12115335e
1,723
py
Python
tests/test_compose.py
emthanh/svg_utils
1ebd8e5a8cae067ed3f1d40939997eeed0a2d4fb
[ "MIT" ]
195
2015-01-08T16:57:14.000Z
2022-03-08T10:08:01.000Z
tests/test_compose.py
emthanh/svg_utils
1ebd8e5a8cae067ed3f1d40939997eeed0a2d4fb
[ "MIT" ]
61
2015-12-16T17:22:11.000Z
2022-03-07T02:03:30.000Z
tests/test_compose.py
emthanh/svg_utils
1ebd8e5a8cae067ed3f1d40939997eeed0a2d4fb
[ "MIT" ]
58
2015-04-08T17:00:51.000Z
2022-02-27T20:06:13.000Z
import svgutils.compose as sc from svgutils.compose import * from nose.tools import ok_, assert_almost_equal from svgutils.transform import SVG, XLINK import codecs import hashlib def test_embedded_svg(): svg = sc.SVG("examples/files/svg_logo.svg") fig = sc.Figure("5cm", "5cm", svg) poly = fig.root.find("...
23.930556
82
0.648288
749be6ca328672ac19127473bce0a6bc497c0eec
1,047
py
Python
torchio/transforms/__init__.py
NunoEdgarGFlowHub/torchio
656e96c8863ecff0bb29bf880af054675bbb30fd
[ "MIT" ]
1
2020-03-19T08:30:18.000Z
2020-03-19T08:30:18.000Z
torchio/transforms/__init__.py
NunoEdgarGFlowHub/torchio
656e96c8863ecff0bb29bf880af054675bbb30fd
[ "MIT" ]
null
null
null
torchio/transforms/__init__.py
NunoEdgarGFlowHub/torchio
656e96c8863ecff0bb29bf880af054675bbb30fd
[ "MIT" ]
null
null
null
from .transform import Transform from .interpolation import Interpolation # Generic from .lambda_transform import Lambda # Augmentation from .augmentation.spatial import RandomFlip from .augmentation.spatial import RandomAffine from .augmentation.spatial import RandomElasticDeformation from .augmentation.intensity i...
34.9
87
0.86915
749c076cdaa1478e769796071423d58d7be351d1
315
py
Python
Models/unet/train.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
Models/unet/train.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
Models/unet/train.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
import os import pathlib import argparse import ArgumentParser import pytorch_lightning as pl from fastmri.data.mri_data import fetch_dir from fastmri.data.subsample import create_mask_for_mask_type from fastmri.data.transforms import UnetDataTransform from fastmri.pl_modules import FastMriDataModule, UnetModule
31.5
60
0.879365
749c0c9aadd64235c672fbc845f9fa3f8a700420
19,460
py
Python
napari/layers/image/_tests/test_image.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/layers/image/_tests/test_image.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/layers/image/_tests/test_image.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
import dask.array as da import numpy as np import pytest import xarray as xr from napari._tests.utils import check_layer_world_data_extent from napari.layers import Image from napari.utils import Colormap def test_random_image(): """Test instantiating Image layer with random 2D data.""" shape = (10, 15) ...
29.984592
79
0.652364
749c2b25b0006ca5d6ea43086ab03745a7ec3bb0
3,102
py
Python
musages.py
arenadata/arenadata_methods_counter
392e7447625e7c63035dd1ff7b6604c8c4b77acb
[ "Apache-2.0" ]
null
null
null
musages.py
arenadata/arenadata_methods_counter
392e7447625e7c63035dd1ff7b6604c8c4b77acb
[ "Apache-2.0" ]
null
null
null
musages.py
arenadata/arenadata_methods_counter
392e7447625e7c63035dd1ff7b6604c8c4b77acb
[ "Apache-2.0" ]
null
null
null
"""Main module""" import argparse import ast import csv import os import pprint from dataclasses import dataclass from pathlib import Path from typing import Counter, List, Mapping, Optional, Sequence @dataclass class Import: """Helper class for organising tracking methods usage""" module: str name: str...
28.722222
98
0.648936
749c3a12d348e2bbfeed20d2a4a30a43d26e7ea2
15,160
py
Python
xskillscore/core/comparative.py
aaronspring/xskillscore
a3fe8230ecaf83e2a8c7fa3cf2c2b448600d5331
[ "Apache-2.0" ]
81
2018-07-03T06:58:28.000Z
2021-12-15T17:24:45.000Z
xskillscore/core/comparative.py
aaronspring/xskillscore
a3fe8230ecaf83e2a8c7fa3cf2c2b448600d5331
[ "Apache-2.0" ]
200
2020-09-28T16:00:43.000Z
2022-03-28T18:41:01.000Z
xskillscore/core/comparative.py
aaronspring/xskillscore
a3fe8230ecaf83e2a8c7fa3cf2c2b448600d5331
[ "Apache-2.0" ]
36
2020-10-07T22:46:20.000Z
2021-11-25T11:34:56.000Z
import inspect import warnings from typing import List, Mapping, Optional, Tuple, Union import numpy as np import scipy.stats as st import xarray as xr from . import deterministic as dm XArray = Union[xr.Dataset, xr.DataArray] def sign_test( forecasts1, forecasts2, observations=None, time_dim="time...
40.534759
102
0.620515