hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
7a78b78c22263eab470569217d86de72f128ec9b
8,534
py
Python
Supplement/comparison_tools/plots_1sample.py
douglascoenen/latools
d7fa4cfc70d480a1f079d4d209b0c8f33ac78c6d
[ "MIT" ]
null
null
null
Supplement/comparison_tools/plots_1sample.py
douglascoenen/latools
d7fa4cfc70d480a1f079d4d209b0c8f33ac78c6d
[ "MIT" ]
null
null
null
Supplement/comparison_tools/plots_1sample.py
douglascoenen/latools
d7fa4cfc70d480a1f079d4d209b0c8f33ac78c6d
[ "MIT" ]
null
null
null
import re import numpy as np import matplotlib.pyplot as plt from scipy import stats from .stats import fmt_RSS from .plots import element_colour, rangecalc, rangecalcx, bland_altman, get_panel_bounds def fmt_el(el): e = re.match('.*?([A-z]+).*?', el).groups()[0] m = re.match('.*?([0-9]+).*?', el).groups()[0] ...
30.808664
106
0.505742
d92018cee15c116339daf9eb96f55bf497a7313e
3,942
py
Python
nipyapi/registry/models/deprecation_notice.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/registry/models/deprecation_notice.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/registry/models/deprecation_notice.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ Apache NiFi Registry REST API The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components. OpenAPI spec version: 1.15.0 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git ...
25.597403
127
0.560375
ca5539edf04212c42278676476282b17e3a53146
3,588
py
Python
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_server_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_server_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_server_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ResizeServerRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ke...
25.81295
79
0.552954
799f88c6f5a96808ffa257916705db69ce31e8b0
1,576
py
Python
setup.py
wj-Mcat/python-wechaty-puppet
b60ace8c193b743f08ad6ee503e0b35edc38cd6d
[ "Apache-2.0" ]
7
2020-05-02T07:58:32.000Z
2021-12-20T13:41:41.000Z
setup.py
wj-Mcat/python-wechaty-puppet
b60ace8c193b743f08ad6ee503e0b35edc38cd6d
[ "Apache-2.0" ]
20
2020-03-09T17:22:28.000Z
2021-11-14T10:12:35.000Z
setup.py
wj-Mcat/python-wechaty-puppet
b60ace8c193b743f08ad6ee503e0b35edc38cd6d
[ "Apache-2.0" ]
12
2020-05-04T10:49:43.000Z
2021-09-14T13:22:59.000Z
""" setup """ import semver import setuptools def versioning(version: str) -> str: """version to specification""" sem_ver = semver.parse(version) major = sem_ver['major'] minor = sem_ver['minor'] patch = str(sem_ver['patch']) if minor % 2: patch = 'dev' + patch fin_ver = '%d.%d....
23.878788
85
0.591371
6fe88234638e36629812deb360d006ce73a544b8
9,048
py
Python
tests/family_tests.py
xZise/pywikibot-core
f0c07086de53fdb90446f938adf2331128412480
[ "MIT" ]
null
null
null
tests/family_tests.py
xZise/pywikibot-core
f0c07086de53fdb90446f938adf2331128412480
[ "MIT" ]
null
null
null
tests/family_tests.py
xZise/pywikibot-core
f0c07086de53fdb90446f938adf2331128412480
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the family module.""" # # (C) Pywikibot team, 2014 # # Distributed under the terms of the MIT license. # from __future__ import unicode_literals __version__ = '$Id: 6fe88234638e36629812deb360d006ce73a544b8 $' from pywikibot.family import Family from pywikibot.exceptions import Un...
39.33913
95
0.639147
3cb07f34e15f48072b447a940ba586caef853425
258
py
Python
Class 1/Chap01/hello-version.py
gratienceacademy/python_basics
102a740d9c9fae45a3947b14a204f7bae33af813
[ "Apache-2.0" ]
null
null
null
Class 1/Chap01/hello-version.py
gratienceacademy/python_basics
102a740d9c9fae45a3947b14a204f7bae33af813
[ "Apache-2.0" ]
null
null
null
Class 1/Chap01/hello-version.py
gratienceacademy/python_basics
102a740d9c9fae45a3947b14a204f7bae33af813
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2009-2017 BHG http://bw.org/ import platform print('This is python version {}'.format(platform.python_version())) print('This is python version ' + str(platform.python_version())) x = 10 print({x}) print("{}".format(x))
21.5
68
0.70155
6e8e74e2e676c4db5bfb0a86fea0bce0d1e71751
7,683
py
Python
main.py
2657753129/Epidemic
17829c1563f57560b16ef79a7e683e7ded14e513
[ "MIT" ]
4
2021-04-26T02:34:15.000Z
2021-04-26T02:40:27.000Z
main.py
2657753129/Epidemic
17829c1563f57560b16ef79a7e683e7ded14e513
[ "MIT" ]
null
null
null
main.py
2657753129/Epidemic
17829c1563f57560b16ef79a7e683e7ded14e513
[ "MIT" ]
null
null
null
import requests, json, time, datetime from lxml import etree def Epidemic(_username, _password, _useragent, _notify, _token): url = 'http://xg.kmmu.edu.cn/SPCP/Web/' session = requests.session() user_agent = _useragent headers = { 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9...
57.766917
860
0.546141
719515a4187a9503286bd2cfaad587c5ae446894
3,200
py
Python
plot_scripts/plot_single.py
tom-pelsmaeker/vae-lagging-encoder
b190239019a94c85858d188a0853886eb48ce4be
[ "MIT" ]
173
2018-12-21T16:34:04.000Z
2022-02-22T08:47:28.000Z
plot_scripts/plot_single.py
tom-pelsmaeker/vae-lagging-encoder
b190239019a94c85858d188a0853886eb48ce4be
[ "MIT" ]
11
2019-01-12T22:15:20.000Z
2020-09-21T03:34:42.000Z
plot_scripts/plot_single.py
tom-pelsmaeker/vae-lagging-encoder
b190239019a94c85858d188a0853886eb48ce4be
[ "MIT" ]
28
2019-01-03T16:11:41.000Z
2021-02-17T20:28:04.000Z
import os import argparse import matplotlib import matplotlib.pyplot as plt import numpy as np import pickle plt.rcParams.update({'font.size': 20}) plt.tight_layout() def plot_line(x, y, fname='', scale=None, xmin=-1.5, xmax=1.5, ymin=-0.002, ymax=0.002): line_opt=dict(marker='o', markersize=15, mec='red', mfc='r...
34.042553
118
0.630938
2ac4139cab0757d9992f219c51fba540fee98fc9
1,510
py
Python
apps/external_apps/dbtemplates/admin.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
3
2015-12-25T14:45:36.000Z
2016-11-28T09:58:03.000Z
apps/external_apps/dbtemplates/admin.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
null
null
null
apps/external_apps/dbtemplates/admin.py
indro/t2c
56482ad4aed150f29353e054db2c97b567243bf8
[ "MIT" ]
1
2019-06-10T16:52:41.000Z
2019-06-10T16:52:41.000Z
from django import forms from django.contrib import admin from django.db.models import get_app from django.utils.translation import gettext_lazy as _ from django.core.exceptions import ImproperlyConfigured from dbtemplates.models import Template # Check if django-reversion is installed and use reversions' VersionAdmi...
32.12766
78
0.669536
4dc57df76a82ead28d8d714fa308d60a369c73bb
2,745
py
Python
board/api.py
essar/statusboard
751aef730b2c5ddf2470692d80d43a2d152ed48c
[ "MIT" ]
null
null
null
board/api.py
essar/statusboard
751aef730b2c5ddf2470692d80d43a2d152ed48c
[ "MIT" ]
null
null
null
board/api.py
essar/statusboard
751aef730b2c5ddf2470692d80d43a2d152ed48c
[ "MIT" ]
null
null
null
from board.config import config import board.statusboard as sb import flask app = flask.Flask(__name__) # Define routes # Static status endpoint for testing the server is up @app.route('/status', methods=['GET']) def status(): return {'status': 'API running', 'config': config} # Run board self-test @app.route...
22.68595
81
0.621494
38058fb821f271d9df18538fbe2ac4275ec25fcf
2,018
py
Python
skeleton/pixelwars/models.py
GenchoBG/HackTues3
1457d44d6f6aeef158e49f91ce4a40246afe9c62
[ "MIT" ]
null
null
null
skeleton/pixelwars/models.py
GenchoBG/HackTues3
1457d44d6f6aeef158e49f91ce4a40246afe9c62
[ "MIT" ]
null
null
null
skeleton/pixelwars/models.py
GenchoBG/HackTues3
1457d44d6f6aeef158e49f91ce4a40246afe9c62
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class Player(models.Model): user = models.OneToOneField(User, null=True, unique=True) name = models.CharField(max_length=250, null=True) wins = models.IntegerField(default=0) hasDrawed = models.Boole...
42.041667
93
0.733895
3ac188222b3c22c4777d440acf73bb73ed0fe82c
1,483
py
Python
pgbouncer/tests/conftest.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
pgbouncer/tests/conftest.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
pgbouncer/tests/conftest.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2010-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import os from copy import deepcopy import psycopg2 import pytest from packaging import version from datadog_checks.dev import WaitFor, docker_run from . import common HERE = os.path.dirname(os.path.abspath...
25.135593
114
0.697235
419f75f1d04d87ad366dff881100de81a1b31723
1,002
py
Python
tests/test_collector.py
mkdocstrings/python-legacy
9c5c653733fc55d638b831ec6845c1eea9491d38
[ "ISC" ]
1
2022-02-13T13:50:37.000Z
2022-02-13T13:50:37.000Z
tests/test_collector.py
mkdocstrings/python-legacy
9c5c653733fc55d638b831ec6845c1eea9491d38
[ "ISC" ]
1
2022-02-19T12:38:08.000Z
2022-02-19T15:44:19.000Z
tests/test_collector.py
mkdocstrings/python-legacy
9c5c653733fc55d638b831ec6845c1eea9491d38
[ "ISC" ]
2
2022-02-19T07:41:02.000Z
2022-02-21T20:56:09.000Z
# -*- coding: utf-8 -*- """Tests for the `collector` module.""" from unittest import mock import pytest from mkdocstrings.handlers.base import CollectionError from mkdocstrings_handlers.python import get_handler @pytest.mark.parametrize( ("retval", "exp_res"), [ ({"error": "error1", "traceback": "he...
31.3125
82
0.635729
ed5141a2da6d49628364f1fcd7333e758dc7e82c
15,564
py
Python
Main_App.py
frankcj6/ML_Web_App
a1cbcd064c0fe6f0db31f7f794cea54d95771743
[ "Apache-2.0" ]
2
2021-01-03T16:56:21.000Z
2021-01-08T04:10:00.000Z
Main_App.py
frankcj6/ML_Web_App
a1cbcd064c0fe6f0db31f7f794cea54d95771743
[ "Apache-2.0" ]
null
null
null
Main_App.py
frankcj6/ML_Web_App
a1cbcd064c0fe6f0db31f7f794cea54d95771743
[ "Apache-2.0" ]
null
null
null
import streamlit as st import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.svm import SVC from sklearn.neighbors import KNeighborsClassifier from sklearn.ensemble import RandomForestClassifier from xgboost import XGBClassifier import lightgbm as lgb from ...
41.83871
120
0.622848
8523afca49acd4dca223a3af17502497004466bc
2,735
py
Python
01204512-algorithm/hw-1/6.py
AyumiizZ/Grad_school_work
a9f9f304b644cf72377801e93d5f2026262e683c
[ "MIT" ]
null
null
null
01204512-algorithm/hw-1/6.py
AyumiizZ/Grad_school_work
a9f9f304b644cf72377801e93d5f2026262e683c
[ "MIT" ]
null
null
null
01204512-algorithm/hw-1/6.py
AyumiizZ/Grad_school_work
a9f9f304b644cf72377801e93d5f2026262e683c
[ "MIT" ]
null
null
null
""" File name: 6.py Author: AyumiizZ Date created: 2020/10/04 Python Version: 3.8.5 About: Merge k sorted arrays, each with n elements problem """ from random import randint import numpy as np import pprint DEBUG = False def generate_data(k: int, n: int, min_data: int = 1, max_data: int = 100): ...
23.577586
78
0.543327
1b146c2a7b4ba869794604ec1bdf969ddac1b0c3
1,163
py
Python
tests/tools/test_constants.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
tests/tools/test_constants.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
tests/tools/test_constants.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
""" Unit tests for symupy.utils.constants Tests here are just to verify that solution of the platform is the right one and verify the existance of the platform in the system Important: Define SYMUVIALIB as a an environment variable """ # ==============================================================...
29.820513
135
0.447979
ef02f341a087c255d4b479e706478d3236e7d57d
4,446
py
Python
src/piscola/pisco_utils.py
temuller/PISCoLA
e380603155991c267c26c4c93dfd650b9777b6b9
[ "MIT" ]
1
2019-09-18T11:30:46.000Z
2019-09-18T11:30:46.000Z
src/piscola/pisco_utils.py
temuller/PISCoLA
e380603155991c267c26c4c93dfd650b9777b6b9
[ "MIT" ]
1
2020-12-05T21:04:40.000Z
2021-03-25T11:10:57.000Z
src/piscola/pisco_utils.py
temuller/PISCoLA
e380603155991c267c26c4c93dfd650b9777b6b9
[ "MIT" ]
2
2020-11-21T20:21:02.000Z
2021-07-22T16:10:18.000Z
import numpy as np def flux2mag(flux, zp, flux_err=0.0): """Converts fluxes to magnitudes, propagating errors if given. Note: if there are negative or zero fluxes, these are converted to NaN values. Parameters ---------- flux : array Array of fluxes. zp : float or array Zero p...
24.977528
107
0.579622
89ae5346ff23df9902048f281d73eb916b60dd98
8,049
py
Python
src/oci/core/models/app_catalog_listing_resource_version_agreements.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/core/models/app_catalog_listing_resource_version_agreements.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/core/models/app_catalog_listing_resource_version_agreements.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.693966
245
0.692881
2c027e1b848e3a2705826802f69d64f1f5f866d6
4,707
py
Python
mopidy/core/listener.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
1
2018-05-12T21:28:49.000Z
2018-05-12T21:28:49.000Z
mopidy/core/listener.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
null
null
null
mopidy/core/listener.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals from mopidy import listener class CoreListener(listener.Listener): """ Marker interface for recipients of events sent by the core actor. Any Pykka actor that mixes in this class will receive calls to the methods defined here when the correspon...
28.355422
79
0.625239
2d702241b04dc33ff1be3a694bd7bf61e610e81a
2,732
py
Python
_assignments/basics/sequences/sequence_getitem_e.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_assignments/basics/sequences/sequence_getitem_e.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_assignments/basics/sequences/sequence_getitem_e.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
""" * Assignment: Sequence GetItem Header/Data * Required: yes * Complexity: easy * Lines of code: 11 lines * Time: 5 min English: 1. Separate header (first line) from data: a. Define `header: tuple[str]` with header b. Define `data: list[tuple]` with other data without header 2. Non-functional r...
33.728395
78
0.583821
b65fdfd1f1fadd4e7607670e9f7888fb82340446
816
py
Python
LeetCode/distributeCandiy.py
Jaidev810/Competitive-Questions
5d5b28be69e8572e9b4353e9790ee39b56769fc3
[ "MIT" ]
1
2021-02-27T06:12:55.000Z
2021-02-27T06:12:55.000Z
LeetCode/distributeCandiy.py
Jaidev810/Competitive-Questions
5d5b28be69e8572e9b4353e9790ee39b56769fc3
[ "MIT" ]
1
2021-02-02T08:52:17.000Z
2021-02-03T08:19:12.000Z
LeetCode/distributeCandiy.py
Jaidev810/Competitive-Questions
5d5b28be69e8572e9b4353e9790ee39b56769fc3
[ "MIT" ]
null
null
null
def distributeCandies(candies, num): arr = [0 for i in range(num)] count = 1 i = 0 while candies > 0: if candies - count >= 0: if i < len(arr): arr[i] += count candies = candies - count count += 1 elif i == len(arr): ...
20.923077
47
0.411765
187677e7be50dffc628a7106adf0fe030ba1ed08
1,545
py
Python
reach_metrics/reach_metrics/network_container.py
OpenSidewalks/PLoS-cities-complex-systems
4f65e22b19576375b2b031b035631a20806da48e
[ "MIT" ]
null
null
null
reach_metrics/reach_metrics/network_container.py
OpenSidewalks/PLoS-cities-complex-systems
4f65e22b19576375b2b031b035631a20806da48e
[ "MIT" ]
null
null
null
reach_metrics/reach_metrics/network_container.py
OpenSidewalks/PLoS-cities-complex-systems
4f65e22b19576375b2b031b035631a20806da48e
[ "MIT" ]
null
null
null
import unweaver class RoutingContext: def __init__(self, G, profiles): self.G = G self.profiles = profiles class NetworkContainer: def __init__( self, pedestrian_graph, street_graph, pedestrian_profiles, street_profiles, ): self.pedestrian ...
32.87234
79
0.65178
c42b974535c8f1c81dea81a9df8baabddc11247f
2,308
py
Python
schemas/parquet_output_cluster_info.py
onmete/insights-data-schemas
0fb9f3b62492b285de6614dc6e2e53356de8ed02
[ "Apache-2.0" ]
null
null
null
schemas/parquet_output_cluster_info.py
onmete/insights-data-schemas
0fb9f3b62492b285de6614dc6e2e53356de8ed02
[ "Apache-2.0" ]
null
null
null
schemas/parquet_output_cluster_info.py
onmete/insights-data-schemas
0fb9f3b62492b285de6614dc6e2e53356de8ed02
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # vim: set fileencoding=utf-8 # Copyright © 2021 Pavel Tisnovsky # # 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 # #...
29.974026
95
0.704073
31bde1ba8a4992ce659da49bc92c8c16e87b22b6
1,620
py
Python
setup.py
copperlight/spectator-py
836db3158fa2f22c6f63d2e216aa343838ea65f9
[ "Apache-2.0" ]
null
null
null
setup.py
copperlight/spectator-py
836db3158fa2f22c6f63d2e216aa343838ea65f9
[ "Apache-2.0" ]
null
null
null
setup.py
copperlight/spectator-py
836db3158fa2f22c6f63d2e216aa343838ea65f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os from setuptools import setup # Utility function to read the README file. # https://pythonhosted.org/an_example_pypi_project/setuptools.html#setting-up-setup-py def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='netflix-spectator-...
33.75
86
0.65
0aae6ff48e1c43ae333a9307735a6d38c5bb5d02
4,271
py
Python
niftynet/engine/windows_aggregator_resize.py
usb-radiology/NiftyNet
1815041fde3ccdd822c34eb83344cc36f4b308ee
[ "Apache-2.0" ]
3
2019-10-31T07:18:33.000Z
2020-10-02T18:59:16.000Z
niftynet/engine/windows_aggregator_resize.py
usb-radiology/NiftyNet
1815041fde3ccdd822c34eb83344cc36f4b308ee
[ "Apache-2.0" ]
9
2020-11-13T19:08:08.000Z
2022-02-10T02:25:56.000Z
niftynet/engine/windows_aggregator_resize.py
usb-radiology/NiftyNet
1815041fde3ccdd822c34eb83344cc36f4b308ee
[ "Apache-2.0" ]
1
2019-03-21T18:12:38.000Z
2019-03-21T18:12:38.000Z
# -*- coding: utf-8 -*- """ Windows aggregator resize each item in a batch output and save as an image. """ from __future__ import absolute_import, print_function, division import os import numpy as np import niftynet.io.misc_io as misc_io from niftynet.engine.sampler_resize_v2 import zoom_3d from niftynet.engine.wi...
41.067308
80
0.627722
c4a180f50c14421d039ae8d800d0d3f114bc996f
1,250
py
Python
mylibrary/migrations/0001_initial.py
Rovine1999/School-Library-System
f654fa0d1a743e4b1b9edcc1e7a4c836d93e5d0c
[ "MIT", "Unlicense" ]
null
null
null
mylibrary/migrations/0001_initial.py
Rovine1999/School-Library-System
f654fa0d1a743e4b1b9edcc1e7a4c836d93e5d0c
[ "MIT", "Unlicense" ]
null
null
null
mylibrary/migrations/0001_initial.py
Rovine1999/School-Library-System
f654fa0d1a743e4b1b9edcc1e7a4c836d93e5d0c
[ "MIT", "Unlicense" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-01 20:34 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_US...
39.0625
163
0.6416
34b4e8c9ad5b20c2c064aa2b3549436480943e8f
8,457
py
Python
test/functional/talan_searchlog_restart_node.py
talanproject/talan
83bd4549703efc1cdb68511f3432520cf07b5d52
[ "MIT" ]
null
null
null
test/functional/talan_searchlog_restart_node.py
talanproject/talan
83bd4549703efc1cdb68511f3432520cf07b5d52
[ "MIT" ]
null
null
null
test/functional/talan_searchlog_restart_node.py
talanproject/talan
83bd4549703efc1cdb68511f3432520cf07b5d52
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from tes...
57.924658
1,470
0.774743
afd5a7f36ea9bde8cb0d9e6b41f20437e55fb7e8
100
py
Python
test/self/__init__.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
19
2019-03-05T01:59:05.000Z
2022-01-11T15:31:49.000Z
test/self/__init__.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
213
2019-01-29T18:44:05.000Z
2022-03-30T05:57:04.000Z
test/self/__init__.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
26
2019-01-29T05:21:22.000Z
2022-02-09T00:57:35.000Z
### ### Copyright (C) 2018-2020 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ###
16.666667
45
0.65
7b38b1d2c5b0ddba08a345297c5be15681feba41
1,855
py
Python
esphome/components/st7789v/display.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/st7789v/display.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/st7789v/display.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome import pins from esphome.components import display, spi from esphome.const import ( CONF_BACKLIGHT_PIN, CONF_BRIGHTNESS, CONF_CS_PIN, CONF_DC_PIN, CONF_ID, CONF_LAMBDA, CONF_RESET_PIN, ) from . import st7789v_ns...
29.444444
88
0.702965
4cc24d9238dbe22abe5a520339180912105d7de3
48
py
Python
Scripts/codewars 25.1.py
mateusvarelo/Codewars
00398f31c207268cc6b03ab4c8179486f1426563
[ "MIT" ]
null
null
null
Scripts/codewars 25.1.py
mateusvarelo/Codewars
00398f31c207268cc6b03ab4c8179486f1426563
[ "MIT" ]
null
null
null
Scripts/codewars 25.1.py
mateusvarelo/Codewars
00398f31c207268cc6b03ab4c8179486f1426563
[ "MIT" ]
null
null
null
def min_max(lst): return [min(lst), max(lst)]
16
29
0.645833
c29fe499c392c70fa0beaa91448df15afad72ed5
49,595
py
Python
voronoi/events/computers.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
voronoi/events/computers.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
voronoi/events/computers.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
from copy import copy from math import sqrt from voronoi.big_int import ( BigInt, robust_sum_of_products_with_sqrt_pairs as pairs_sum_expression, robust_sum_of_products_with_sqrt_quadruplets as quadruplets_sum_expression, robust_sum_of_products_with_sqrt_triplets as triplets_sum_expression, to_seco...
55.913191
79
0.537655
cdf3c2a34392b687f72de9a6cc58ca29a95175fd
3,526
py
Python
data_v2/sampler.py
bradduy/LightMBN
a56445ce3fe993e87cbb904bedae695d4dfce367
[ "MIT" ]
null
null
null
data_v2/sampler.py
bradduy/LightMBN
a56445ce3fe993e87cbb904bedae695d4dfce367
[ "MIT" ]
null
null
null
data_v2/sampler.py
bradduy/LightMBN
a56445ce3fe993e87cbb904bedae695d4dfce367
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from collections import defaultdict import numpy as np import copy import random import torch from torch.utils.data.sampler import Sampler, RandomSampler class RandomIdentitySampler(Sampler): """Randomly samples N identities eac...
36.729167
95
0.609756
8f12088e4748703d27ef7c602b79e98c7aec826d
8,925
py
Python
src/cowrie/commands/netstat.py
eeload/cowrie
39a235fc881eb853434f6ef17990d7e3051bc8a8
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/commands/netstat.py
eeload/cowrie
39a235fc881eb853434f6ef17990d7e3051bc8a8
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/commands/netstat.py
eeload/cowrie
39a235fc881eb853434f6ef17990d7e3051bc8a8
[ "BSD-3-Clause" ]
null
null
null
# Based on work by Peter Reuteras (https://bitbucket.org/reuteras/kippo/) import socket from cowrie.shell.command import HoneyPotCommand commands = {} class command_netstat(HoneyPotCommand): def show_version(self): self.write("net-tools 1.60\n") self.write("netstat 1.42 (2001-04-15)\n") ...
43.536585
99
0.47888
e1769e1652be54609ed120478dd0f28e3a13f168
7,670
py
Python
source/Mlos.Python/mlos/Optimizers/RegressionModels/Prediction.py
curino/MLOS
7141870500f672201d49776df078c96e7ee40d73
[ "MIT" ]
null
null
null
source/Mlos.Python/mlos/Optimizers/RegressionModels/Prediction.py
curino/MLOS
7141870500f672201d49776df078c96e7ee40d73
[ "MIT" ]
null
null
null
source/Mlos.Python/mlos/Optimizers/RegressionModels/Prediction.py
curino/MLOS
7141870500f672201d49776df078c96e7ee40d73
[ "MIT" ]
null
null
null
# # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # from enum import Enum from typing import List import pandas as pd class Prediction: """ General Prediction class used to capture output from surrogate model .predict() methods PredictionSchema defines the known universe of...
46.204819
146
0.694915
59c86cd1d43c8ff363c2c493a754e0859e150eea
9,802
py
Python
community-content/tf_agents_bandits_movie_recommendation_with_kfp_and_vertex_sdk/mlops_pipeline_tf_agents_bandits_movie_recommendation/src/trainer/trainer_component.py
gogasca/vertex-ai-samples
85984f117300768061c03a64e3982fae27c64126
[ "Apache-2.0" ]
213
2021-06-10T20:05:20.000Z
2022-03-31T16:09:29.000Z
community-content/tf_agents_bandits_movie_recommendation_with_kfp_and_vertex_sdk/mlops_pipeline_tf_agents_bandits_movie_recommendation/src/trainer/trainer_component.py
gogasca/vertex-ai-samples
85984f117300768061c03a64e3982fae27c64126
[ "Apache-2.0" ]
343
2021-07-25T22:55:25.000Z
2022-03-31T23:58:47.000Z
community-content/tf_agents_bandits_movie_recommendation_with_kfp_and_vertex_sdk/mlops_pipeline_tf_agents_bandits_movie_recommendation/src/trainer/trainer_component.py
gogasca/vertex-ai-samples
85984f117300768061c03a64e3982fae27c64126
[ "Apache-2.0" ]
143
2021-07-21T17:27:47.000Z
2022-03-29T01:20:43.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.128788
94
0.700367
244838d7bd8e346c7ac4808fdc51ed385e668bdc
9,911
py
Python
kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V2beta1Hor...
38.414729
182
0.674604
84dcbcf526362d54c5b64a3304e3936fb4c974bf
3,267
py
Python
sdk/python/pulumi_aws_native/iot/get_dimension.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/iot/get_dimension.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/iot/get_dimension.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# 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, overload from .. import _utilities from...
32.67
117
0.660239
30f5e8dafbc1b1da2a533395963d44245d25fc09
37,677
py
Python
readthedocs/builds/models.py
luciopileggi/readthedocs.org
70477b27dfd90c47e0b8a11d89267027574feb5a
[ "MIT" ]
null
null
null
readthedocs/builds/models.py
luciopileggi/readthedocs.org
70477b27dfd90c47e0b8a11d89267027574feb5a
[ "MIT" ]
null
null
null
readthedocs/builds/models.py
luciopileggi/readthedocs.org
70477b27dfd90c47e0b8a11d89267027574feb5a
[ "MIT" ]
null
null
null
"""Models for the builds app.""" import datetime import logging import os.path import re from shutil import rmtree import regex from django.conf import settings from django.core.files.storage import get_storage_class from django.db import models from django.db.models import F from django.urls import reverse from djan...
31.794937
91
0.58975
287d2aa5226278043f89f040268bf6e40862e008
905
py
Python
A7/test1.py
mortarsynth/Audio-Signal-Processing-for-Music-Applications
4674d9e15885401d69d4a468e3ad756ea2600523
[ "MIT" ]
null
null
null
A7/test1.py
mortarsynth/Audio-Signal-Processing-for-Music-Applications
4674d9e15885401d69d4a468e3ad756ea2600523
[ "MIT" ]
null
null
null
A7/test1.py
mortarsynth/Audio-Signal-Processing-for-Music-Applications
4674d9e15885401d69d4a468e3ad756ea2600523
[ "MIT" ]
null
null
null
import numpy as np from scipy.signal import get_window, resample import math import sys, os, time from scipy.fftpack import fft, ifft sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../software/models/')) import utilFunctions as UF import matplotlib.pyplot as plt (fs, x) = UF.wavread('260...
28.28125
100
0.668508
eb9b4ce7c5a3115ce9c1baf9c6b52294cfd95f61
2,835
py
Python
youtube_dl/extractor/moevideo.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/moevideo.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/moevideo.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( clean_html, int_or_none, ) class MoeVideoIE(InfoExtractor): IE_DESC = 'LetitBit video services: moevideo.net, playreplay.net and videochart.net' _VALID_URL = r'''(?x) htt...
35.4375
89
0.53545
5050e77ef8006f7cd967ebb955cb1e8aad3ea35d
5,605
py
Python
utilities/database/db_connector.py
Jwuthri/gtfstools
d0db0c89588f936f02d4e6cccb70034ec1e4b9b1
[ "MIT" ]
2
2017-02-24T20:39:22.000Z
2017-02-24T21:10:43.000Z
utilities/database/db_connector.py
Jwuthri/GtfsTools
d0db0c89588f936f02d4e6cccb70034ec1e4b9b1
[ "MIT" ]
1
2017-02-24T20:50:10.000Z
2017-02-24T22:40:33.000Z
utilities/database/db_connector.py
Jwuthri/GtfsTools
d0db0c89588f936f02d4e6cccb70034ec1e4b9b1
[ "MIT" ]
null
null
null
"""Tools to create a conneciton with a db, and insert or update data.""" from collections import namedtuple import datetime import pymssql from tqdm import tqdm import pandas as pd class DBConnector(object): def __init__(self, db_name, db_settings={}): self.db_settings = db_settings ...
27.747525
73
0.538269
406cfa978ed639b28b4c89776c77641f24dc23a6
3,565
py
Python
blogproject/blogproject/settings.py
coolesthandsome/MyBlog
67c7f07a6b9438fd18c940b900baaa8331fb532b
[ "MIT" ]
null
null
null
blogproject/blogproject/settings.py
coolesthandsome/MyBlog
67c7f07a6b9438fd18c940b900baaa8331fb532b
[ "MIT" ]
null
null
null
blogproject/blogproject/settings.py
coolesthandsome/MyBlog
67c7f07a6b9438fd18c940b900baaa8331fb532b
[ "MIT" ]
null
null
null
""" Django settings for blogproject project. Generated by 'django-admin startproject' using Django 2.0.1. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import o...
26.604478
91
0.699018
2b31444b408cbbbcf52629247bdbf690ffed3782
153
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/admin.py
piyushka17/azure-intelligent-edge-patterns
0d088899afb0022daa2ac434226824dba2c997c1
[ "MIT" ]
null
null
null
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/admin.py
piyushka17/azure-intelligent-edge-patterns
0d088899afb0022daa2ac434226824dba2c997c1
[ "MIT" ]
null
null
null
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/admin.py
piyushka17/azure-intelligent-edge-patterns
0d088899afb0022daa2ac434226824dba2c997c1
[ "MIT" ]
null
null
null
"""App admin.""" from django.contrib import admin from .models import TrainingStatus # Register your models here. admin.site.register(TrainingStatus)
17
35
0.777778
c1f212813e98ba3137ec6c29119b3e4395428121
1,758
py
Python
nipype/interfaces/camino/tests/test_auto_ModelFit.py
grlee77/nipype
73f3a733ac1b7d9b09ec32a387905a9302423b87
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/camino/tests/test_auto_ModelFit.py
grlee77/nipype
73f3a733ac1b7d9b09ec32a387905a9302423b87
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/camino/tests/test_auto_ModelFit.py
grlee77/nipype
73f3a733ac1b7d9b09ec32a387905a9302423b87
[ "BSD-3-Clause" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from nipype.testing import assert_equal from nipype.interfaces.camino.dti import ModelFit def test_ModelFit_inputs(): input_map = dict(args=dict(argstr='%s', ), bgmask=dict(argstr='-bgmask %s', ), bgthresh=dict(argstr='-bgthresh %G', ), ...
25.478261
78
0.623436
da3dc37981d61871403912e11d8384fcd8fcf3a9
4,074
py
Python
forcast_1year.py
cloud322/ML_stock
b84453d11e392c71d5236be7ce4bc8cdfe686155
[ "Apache-2.0" ]
null
null
null
forcast_1year.py
cloud322/ML_stock
b84453d11e392c71d5236be7ce4bc8cdfe686155
[ "Apache-2.0" ]
null
null
null
forcast_1year.py
cloud322/ML_stock
b84453d11e392c71d5236be7ce4bc8cdfe686155
[ "Apache-2.0" ]
null
null
null
import sys import tensorflow as tf import pandas as pd import numpy as np import os import matplotlib import matplotlib.pyplot as plt import random from matplotlib import font_manager, rc font_name = font_manager.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name() rc('font', family=font_name) # ...
32.592
109
0.618802
b3f19fb12f6ef009f889d424bf9125d3ac23276d
755
py
Python
code/tours_on_a_4_x_n_playing_board/sol_237.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/tours_on_a_4_x_n_playing_board/sol_237.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/tours_on_a_4_x_n_playing_board/sol_237.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\tours_on_a_4_x_n_playing_board\sol_237.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #237 :: Tours on a 4 x n playing board # # For more information see: # https://projecteuler.net/problem=237...
21.571429
74
0.695364
32a909bd4719c85a00c06e73ee87439de80069d6
1,015
gyp
Python
gyp/pathops_skpclip.gyp
MIPS/external-chromium_org-third_party-skia
4d54ce897cc8ad20f597acfd594438a3be98753f
[ "BSD-3-Clause" ]
null
null
null
gyp/pathops_skpclip.gyp
MIPS/external-chromium_org-third_party-skia
4d54ce897cc8ad20f597acfd594438a3be98753f
[ "BSD-3-Clause" ]
null
null
null
gyp/pathops_skpclip.gyp
MIPS/external-chromium_org-third_party-skia
4d54ce897cc8ad20f597acfd594438a3be98753f
[ "BSD-3-Clause" ]
null
null
null
# GYP file to build pathops skp clip test. { 'includes': [ 'apptype_console.gypi', ], 'targets': [ { 'target_name': 'pathops_skpclip', 'type': 'executable', 'include_dirs': [ '../src/core', '../src/effects', '../src/lazy', '../src/pathops', '../src...
21.145833
42
0.411823
a89739e1b2ce5ea242edb46bfe42391dbf8af0f0
280
py
Python
my_blog/conftest.py
Tanishk-Sharma/my_blog
c6b24897b4d3745426749f5e6599e41f3f479d38
[ "MIT" ]
null
null
null
my_blog/conftest.py
Tanishk-Sharma/my_blog
c6b24897b4d3745426749f5e6599e41f3f479d38
[ "MIT" ]
null
null
null
my_blog/conftest.py
Tanishk-Sharma/my_blog
c6b24897b4d3745426749f5e6599e41f3f479d38
[ "MIT" ]
null
null
null
import pytest from my_blog.users.models import User from my_blog.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> User: return UserFactory()
18.666667
53
0.775
bae4ccfd0d02b6f911f22817c1f7f95d2da23eb7
840
py
Python
atest/testresources/testlibs/libswithargs.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
9
2020-04-22T08:30:52.000Z
2020-12-07T08:25:09.000Z
atest/testresources/testlibs/libswithargs.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
63
2020-03-04T17:31:39.000Z
2022-03-01T09:12:16.000Z
atest/testresources/testlibs/libswithargs.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
4
2016-02-29T15:42:22.000Z
2018-05-08T08:58:18.000Z
class Mandatory: def __init__(self, mandatory1, mandatory2): self.mandatory1 = mandatory1 self.mandatory2 = mandatory2 def get_args(self): return self.mandatory1, self.mandatory2 class Defaults(object): def __init__(self, mandatory, default1='value', default2=None): self...
25.454545
78
0.652381
86ffbdcf091f38d73065a9f92b9143e59686e6ec
1,651
py
Python
apps/commons/views.py
yosmarlobo/new-repo
f9f544263d39fc73c6e9b246a7660f15532d1ee0
[ "FTL", "Xnet", "X11" ]
null
null
null
apps/commons/views.py
yosmarlobo/new-repo
f9f544263d39fc73c6e9b246a7660f15532d1ee0
[ "FTL", "Xnet", "X11" ]
null
null
null
apps/commons/views.py
yosmarlobo/new-repo
f9f544263d39fc73c6e9b246a7660f15532d1ee0
[ "FTL", "Xnet", "X11" ]
null
null
null
# Create your views here. from rest_framework.response import Response from rest_framework.views import APIView from apps.commons.models import Gender, DocumentType, Country, Region, SubRegion, District from apps.commons.serializers import GenderSerializer, DocumentTypeSerializer, CountrySerializer, RegionSerializer, ...
27.516667
117
0.748031
29d8429805aeb51e7d6f5687be2b91e7d766e655
303
py
Python
simple/simple1/KeygenMe.py
pjx206/pjx_ctf_reverse
31e191cfe53274ad5693f7efd4d1dce44e1c0868
[ "MIT" ]
2
2019-08-15T07:21:50.000Z
2019-11-25T13:18:46.000Z
simple/simple1/KeygenMe.py
pjx206/pjx_ctf_reverse
31e191cfe53274ad5693f7efd4d1dce44e1c0868
[ "MIT" ]
null
null
null
simple/simple1/KeygenMe.py
pjx206/pjx_ctf_reverse
31e191cfe53274ad5693f7efd4d1dce44e1c0868
[ "MIT" ]
null
null
null
# ReversingKr KeygenMe # Find the Name when the Serial is 5B134977135E7D13 ciphertext = [0x5B, 0x13, 0x49, 0x77, 0x13, 0x5E, 0x7D, 0x13] key = [0x10, 0x20, 0x30] message = '' for i in range(len(ciphertext)): message += chr(ciphertext[i] ^ key[i % 3]) # 3 is the length of the key print(message)
25.25
76
0.683168
fde0b738451ff0069c7a02ae1952b34ef9a7c961
453
py
Python
authorize/email_auth.py
PiusLucky/joint-access-programmer-Pro-
b0cd70cf8271b4688462c42409858e43ca0236af
[ "MIT" ]
null
null
null
authorize/email_auth.py
PiusLucky/joint-access-programmer-Pro-
b0cd70cf8271b4688462c42409858e43ca0236af
[ "MIT" ]
8
2021-04-08T21:52:59.000Z
2021-09-22T01:21:42.000Z
authorize/email_auth.py
PiusLucky/joint-access-programmer-Pro-
b0cd70cf8271b4688462c42409858e43ca0236af
[ "MIT" ]
null
null
null
""" Authenticate using e-mail account. """ from django.contrib.auth.models import User class EmailAuthBackend(object): def authenticate(self, username=None, password=None): try: user = User.objects.get(email=username) if user.check_password(password): return user return None except User.DoesNotExist: ...
25.166667
54
0.741722
dc125bd8d98c5f2c288f5f34adae0638f7c724c0
4,721
py
Python
muk_utils/models/ir_attachment.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
muk_utils/models/ir_attachment.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
muk_utils/models/ir_attachment.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
########################################################################## # # Copyright (C) 2018 MuK IT GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version ...
33.721429
88
0.504342
635bae713464b788ab3cdd222b7da9da07bfece4
6,335
py
Python
doc/source/conf.py
jamespharaoh/python-cffi
bc8ba4a059cfabea4c05f0d6d1300d2e118b9785
[ "MIT" ]
null
null
null
doc/source/conf.py
jamespharaoh/python-cffi
bc8ba4a059cfabea4c05f0d6d1300d2e118b9785
[ "MIT" ]
null
null
null
doc/source/conf.py
jamespharaoh/python-cffi
bc8ba4a059cfabea4c05f0d6d1300d2e118b9785
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # CFFI documentation build configuration file, created by # sphinx-quickstart on Thu Jun 14 16:37:47 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
32.487179
80
0.72281
ed66e4d6ebebd29a9cfcbc994afb851ed2c10d01
815
py
Python
manage.py
MichaelLeachim/____problem4interview
9f4405777f58cc2a1972ee04b4a6bbd2d8b83fc3
[ "MIT" ]
null
null
null
manage.py
MichaelLeachim/____problem4interview
9f4405777f58cc2a1972ee04b4a6bbd2d8b83fc3
[ "MIT" ]
null
null
null
manage.py
MichaelLeachim/____problem4interview
9f4405777f58cc2a1972ee04b4a6bbd2d8b83fc3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "problem4interview.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure...
35.434783
81
0.646626
5ec22be80b306b9c2b167f503985d87b0de726ed
3,088
py
Python
frameworks/shared/caller.py
aligapaul/automlbenchmark
97c1ef8f7529f9814c5228ae0ff91d4055223d50
[ "MIT" ]
null
null
null
frameworks/shared/caller.py
aligapaul/automlbenchmark
97c1ef8f7529f9814c5228ae0ff91d4055223d50
[ "MIT" ]
null
null
null
frameworks/shared/caller.py
aligapaul/automlbenchmark
97c1ef8f7529f9814c5228ae0ff91d4055223d50
[ "MIT" ]
null
null
null
import io import logging import os import re from typing import Union import uuid import numpy as np from amlb.benchmark import TaskConfig from amlb.data import Dataset from amlb.resources import config as rconfig from amlb.results import NoResultError, save_predictions_to_file from amlb.utils import Namespace as ns,...
37.204819
117
0.590026
719f2bc3181976722325c9e56c8c2dc3df60f47c
554
py
Python
Common Python Code/Number_Divide_4_8_Btw_Range.py
vibwipro/Machine-Learning-Python
a5e2ef30db0c7825ab910d802795e82b4b5fc49c
[ "MIT" ]
3
2019-10-02T12:10:28.000Z
2019-10-09T12:55:32.000Z
Common Python Code/Number_Divide_4_8_Btw_Range.py
vibwipro/Machine-Learning-Python
a5e2ef30db0c7825ab910d802795e82b4b5fc49c
[ "MIT" ]
null
null
null
Common Python Code/Number_Divide_4_8_Btw_Range.py
vibwipro/Machine-Learning-Python
a5e2ef30db0c7825ab910d802795e82b4b5fc49c
[ "MIT" ]
1
2019-10-04T14:12:47.000Z
2019-10-04T14:12:47.000Z
''' Python program with the given range between 4000 and 9000, validate that each digit in the range is divisible by 4 and 8. ''' div_by_4_8 = [] for d in range(4000, 9000): x = str(d) if (int(x[0]) % 4 == 0) and (int(x[1]) % 4 == 0) and (int(x[2]) % 4 == 0) and (int(x[3]) % 8 == 0): if (int...
36.933333
108
0.543321
2cbab69d60ea53f703baee688f473c6896a3579e
1,202
py
Python
Scripts/Extensions.py
Fabio-A-Sa/MoveFiles
832ff7442205c95ff48721c5d857a0b73633e421
[ "MIT" ]
1
2022-01-27T02:02:33.000Z
2022-01-27T02:02:33.000Z
Scripts/Extensions.py
Fabio-A-Sa/MoveFiles
832ff7442205c95ff48721c5d857a0b73633e421
[ "MIT" ]
null
null
null
Scripts/Extensions.py
Fabio-A-Sa/MoveFiles
832ff7442205c95ff48721c5d857a0b73633e421
[ "MIT" ]
null
null
null
# Add extensions or modify extensions status if you need from Files import display respective_extension = { "photos": ['png', 'jpg', 'jpeg'] , "text" : ['txt'] , "web" : ['html', 'css', 'js'] , "code" : ['html', 'css', '...
29.317073
91
0.427621
e649fff61347268f520d6749a6e618d31538900e
2,590
py
Python
tests/mappers/test_pointtopoint.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
38
2017-06-30T17:10:53.000Z
2022-01-05T07:38:03.000Z
tests/mappers/test_pointtopoint.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
96
2017-04-04T18:52:41.000Z
2021-11-01T21:30:48.000Z
tests/mappers/test_pointtopoint.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
15
2017-05-23T15:40:16.000Z
2021-06-14T21:30:28.000Z
#! /usr/bin/env python import numpy as np import pytest from numpy.testing import assert_array_almost_equal from pymt.grids.map import RectilinearMap as Rectilinear from pymt.mappers import NearestVal, find_mapper def test_all_good(): src = Rectilinear([0, 1, 2], [0, 2]) dst = Rectilinear([0.5, 1.5, 2.5], [0...
26.979167
82
0.637838
e0bd7538a3dc44d8224383f0020f5977ae275a68
6,293
py
Python
mindspore/nn/metrics/recall.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
mindspore/nn/metrics/recall.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
mindspore/nn/metrics/recall.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
42.809524
119
0.609884
e270980fc943b60e86f595b92bb4f475b77547a8
1,309
py
Python
senlin_tempest_plugin/api/profile_types/test_profile_type_show_negative.py
ghanshyammann/senlin-tempest-plugin
9f33bbe723eb381f93c2248a6a277efef3d92ec3
[ "Apache-2.0" ]
null
null
null
senlin_tempest_plugin/api/profile_types/test_profile_type_show_negative.py
ghanshyammann/senlin-tempest-plugin
9f33bbe723eb381f93c2248a6a277efef3d92ec3
[ "Apache-2.0" ]
null
null
null
senlin_tempest_plugin/api/profile_types/test_profile_type_show_negative.py
ghanshyammann/senlin-tempest-plugin
9f33bbe723eb381f93c2248a6a277efef3d92ec3
[ "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 t...
39.666667
75
0.694423
19118457dc7064a6c8b2f5dbdd21edb6e69806ae
2,951
py
Python
python/LikelihoodState.py
fermi-lat/pyLikelihood
7dec59151e452c702b05b65498adb36c4831b86f
[ "BSD-3-Clause" ]
4
2017-11-20T14:14:54.000Z
2019-04-05T20:05:17.000Z
python/LikelihoodState.py
fermi-lat/pyLikelihood
7dec59151e452c702b05b65498adb36c4831b86f
[ "BSD-3-Clause" ]
3
2020-05-29T10:25:30.000Z
2020-08-28T08:40:10.000Z
python/LikelihoodState.py
fermi-lat/pyLikelihood
7dec59151e452c702b05b65498adb36c4831b86f
[ "BSD-3-Clause" ]
3
2018-08-18T01:04:09.000Z
2020-12-22T16:49:58.000Z
""" @brief Classes to save the state of fit parameters. @author J. Chiang <jchiang@slac.stanford.edu> """ # # $Header: /nfs/slac/g/glast/ground/cvs/ScienceTools-scons/pyLikelihood/python/LikelihoodState.py,v 1.5 2012/11/20 16:49:52 jchiang Exp $ # import pyLikelihood #class _Parameter(object): # "Shadow class of t...
39.346667
137
0.636733
e76bd6073271db24967c213d93318581abadb727
3,190
py
Python
adet/layers/gcn.py
abhishreeshetty/IDL-CrossViz
729baabd146980839544e274387bd5adb4640d03
[ "BSD-2-Clause" ]
null
null
null
adet/layers/gcn.py
abhishreeshetty/IDL-CrossViz
729baabd146980839544e274387bd5adb4640d03
[ "BSD-2-Clause" ]
null
null
null
adet/layers/gcn.py
abhishreeshetty/IDL-CrossViz
729baabd146980839544e274387bd5adb4640d03
[ "BSD-2-Clause" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class Conv2D(nn.Module): def __init__(self, in_channels, out_channels, kernel_size, padding='same', stride=1, dilation=1, groups=1): ...
31.9
79
0.482132
939a4dcaf77c4c4142dc512f14ed57709087efb6
1,818
py
Python
py/test/pytests/interrupt.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/test/pytests/interrupt.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/test/pytests/interrupt.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
# Copyright 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests if an interrupt's count is larger than expected. dargs: interrupt: interrupt number or name. reload_module: Kernel module name. If set, rmmo...
32.464286
78
0.694169
4062eeafd0f94057e32dae234fbefac672e2d35a
2,152
gyp
Python
chrome/browser/resources/settings/about_page/compiled_resources2.gyp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/resources/settings/about_page/compiled_resources2.gyp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/resources/settings/about_page/compiled_resources2.gyp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "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. { 'targets': [ { 'target_name': 'about_page', 'dependencies': [ 'about_page_browser_proxy', '<(DEPTH)/ui/webui/resources/js/...
42.196078
110
0.65474
d58e7c52d68d8b7d511937e707731415ff0d54df
489
py
Python
sdk/python/tests/conftest.py
flet-dev/flet
8415d59f2ff0521ee648d93048554ee147644c23
[ "Apache-2.0" ]
null
null
null
sdk/python/tests/conftest.py
flet-dev/flet
8415d59f2ff0521ee648d93048554ee147644c23
[ "Apache-2.0" ]
1
2022-03-24T15:45:14.000Z
2022-03-24T15:45:14.000Z
sdk/python/tests/conftest.py
flet-dev/flet
8415d59f2ff0521ee648d93048554ee147644c23
[ "Apache-2.0" ]
null
null
null
import flet import pytest from flet import Control from flet import Text @pytest.fixture def page(): return flet.page("test_update", no_window=True) @pytest.fixture def control_type_tree(): def func(control: Control): if getattr(control, "controls", None): return {type(control): [func(ch...
22.227273
79
0.658487
f9d00286df25ff1174a638e0a43026ab1a47aee1
308
py
Python
week5/primo.py
jotavev/usp-computer-science-python
82aaa410f245e339c25e4a2b1a61e410259d0f8c
[ "MIT" ]
1
2020-06-10T03:39:07.000Z
2020-06-10T03:39:07.000Z
week5/primo.py
jotavev/usp-computer-science-python
82aaa410f245e339c25e4a2b1a61e410259d0f8c
[ "MIT" ]
null
null
null
week5/primo.py
jotavev/usp-computer-science-python
82aaa410f245e339c25e4a2b1a61e410259d0f8c
[ "MIT" ]
null
null
null
def ehprimo(numero): if numero == 2 or numero == 3 or numero == 5 or numero == 7: return True elif numero == 1: return False else: if numero % 2 == 0 or numero % 3 == 0 or numero % 5 == 0 or numero % 7 == 0: return False else: return True
25.666667
84
0.496753
710ded4148b43b77ac8f9894d245f5bbdf61facf
12,757
py
Python
sdk/lusid_workflows/rest.py
finbourne/workflows-sdk-generated-preview
41201c402e8d006740d278339cb80283000e4ce6
[ "MIT" ]
null
null
null
sdk/lusid_workflows/rest.py
finbourne/workflows-sdk-generated-preview
41201c402e8d006740d278339cb80283000e4ce6
[ "MIT" ]
null
null
null
sdk/lusid_workflows/rest.py
finbourne/workflows-sdk-generated-preview
41201c402e8d006740d278339cb80283000e4ce6
[ "MIT" ]
null
null
null
# coding: utf-8 """ FINBOURNE Workflows API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.1.25 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import io import json import logging import re import s...
42.38206
134
0.54135
ef578329bf9477e65a4bb9527230a28c23284d75
6,319
py
Python
Data Processing/nii2png.py
TaoseefIshtiak/biomedicalImageSegmentationNSU
6820cc3e4e3d28f413bcfba014fc882f53572199
[ "MIT" ]
1
2020-06-24T17:58:10.000Z
2020-06-24T17:58:10.000Z
python/nii2png.py
saumiko/NIfTI-Image-Converter
1703f08e6ffa3315f13ad8498895c5d002b25ed6
[ "MIT" ]
1
2020-06-24T18:06:06.000Z
2020-06-24T18:06:06.000Z
python/nii2png.py
saumiko/NIfTI-Image-Converter
1703f08e6ffa3315f13ad8498895c5d002b25ed6
[ "MIT" ]
null
null
null
#!/usr/bin/env python ######################################### # nii2png for Python 3.7 # # NIfTI Image Converter # # v0.2.9 # # # # Written by Alexander Laurence # # http://Celestial.Tokyo/~AlexLaurence/ # # ...
39.993671
150
0.503561
aae6d7a9979fcb46f32d3777bdd076f20dc7b0b5
3,327
py
Python
nnunet/dataset_conversion/Task062_NIHPancreas.py
gasperpodobnik/nnUNet
f11906b13344db9f54e303378748a0defdea8331
[ "Apache-2.0" ]
null
null
null
nnunet/dataset_conversion/Task062_NIHPancreas.py
gasperpodobnik/nnUNet
f11906b13344db9f54e303378748a0defdea8331
[ "Apache-2.0" ]
null
null
null
nnunet/dataset_conversion/Task062_NIHPancreas.py
gasperpodobnik/nnUNet
f11906b13344db9f54e303378748a0defdea8331
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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 # # ht...
36.966667
143
0.645326
0f9c176f61f7df6a86e9ef7ccce5af97f76bd1ca
37,246
py
Python
image_resizer.py
yashs662/batch_image_processor
6e6e1081385af111c028dab17ec52425b726eb8b
[ "MIT" ]
null
null
null
image_resizer.py
yashs662/batch_image_processor
6e6e1081385af111c028dab17ec52425b726eb8b
[ "MIT" ]
null
null
null
image_resizer.py
yashs662/batch_image_processor
6e6e1081385af111c028dab17ec52425b726eb8b
[ "MIT" ]
null
null
null
# how to build python -m nuitka --mingw64 --windows-disable-console --windows-icon-from-ico=balkae.ico .\image_resizer.py # Required Libraries import os import subprocess from PIL import Image, ImageTk import errno import time import tkinter as tk from tkinter import filedialog, PhotoImage import random fro...
53.05698
205
0.553536
b53427086625fa25a17ea8b475c154baca25bcfd
3,058
py
Python
src/ai_biopsy_src/Model1_Cancer_Benign/slim/datasets/MRI.py
ih-lab/AI-biopsy
2f07a1c147feeb0b066db58f0294bfc1f451f079
[ "MIT" ]
3
2021-02-12T21:41:53.000Z
2022-01-31T14:35:15.000Z
src/ai_biopsy_src/Model1_Cancer_Benign/slim/datasets/MRI.py
alexsigaras/ai-biopsy
ead4306fa15c32bef7c2982309e215af6fc84b9f
[ "MIT" ]
5
2021-05-21T16:45:08.000Z
2022-01-12T18:11:04.000Z
src/ai_biopsy_src/Model1_Cancer_Benign/slim/datasets/MRI.py
alexsigaras/ai-biopsy
ead4306fa15c32bef7c2982309e215af6fc84b9f
[ "MIT" ]
5
2021-05-10T03:12:37.000Z
2022-03-08T12:45:19.000Z
# Copyright 2016 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 applicable ...
32.189474
80
0.717789
1c834171ef043481caebb38c2aa8690b6c689fb7
2,239
py
Python
docs/conf.py
sparkfun/Qwiic_Micro_OLED_Py
d174b2f271dfd68714f67a77425c2c223735e156
[ "MIT" ]
1
2021-11-25T05:52:50.000Z
2021-11-25T05:52:50.000Z
docs/conf.py
sparkfun/Qwiic_Micro_OLED_Py
d174b2f271dfd68714f67a77425c2c223735e156
[ "MIT" ]
2
2021-02-19T20:01:13.000Z
2021-10-07T04:49:29.000Z
docs/conf.py
sparkfun/Qwiic_Micro_OLED_Py
d174b2f271dfd68714f67a77425c2c223735e156
[ "MIT" ]
2
2020-01-28T13:40:41.000Z
2021-06-18T22:01:39.000Z
# 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: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
31.985714
79
0.677981
945c2e67a370f62fdadbbc81da519c43ee35eeeb
1,475
py
Python
quantized_mesh_encoder/constants.py
kylebarron/quantized-mesh-py
98e9246ee14738a6665d7c87ce0883b6fe4b941e
[ "MIT" ]
38
2020-05-11T19:47:20.000Z
2022-03-28T02:41:35.000Z
quantized_mesh_encoder/constants.py
kylebarron/quantized-mesh-py
98e9246ee14738a6665d7c87ce0883b6fe4b941e
[ "MIT" ]
31
2020-04-27T06:07:46.000Z
2021-08-08T19:10:12.000Z
quantized_mesh_encoder/constants.py
kylebarron/quantized-mesh-py
98e9246ee14738a6665d7c87ce0883b6fe4b941e
[ "MIT" ]
4
2020-06-02T02:29:59.000Z
2021-03-10T22:37:31.000Z
import numpy as np from .ellipsoid import Ellipsoid WGS84 = Ellipsoid(a=6378137.0, b=6356752.3142451793) NP_STRUCT_TYPES = {np.float32: '<f', np.float64: '<d', np.uint16: '<H', np.uint32: '<I'} HEADER = { 'centerX': '<d', # 8bytes 'centerY': '<d', 'centerZ': '<d', 'minimumHeight': '<f', # 4bytes ...
25
88
0.586441
8b6934e4a3aa31e658fbc21469f273903d6976cb
2,736
py
Python
atlas/info/migrations/0001_initial.py
briansok/Atlas
01320e6c1f2d41e41a93890de6ef6c92bfbbb7e6
[ "MIT" ]
5
2018-06-04T08:12:50.000Z
2020-11-30T20:57:48.000Z
atlas/info/migrations/0001_initial.py
briansok/Atlas
01320e6c1f2d41e41a93890de6ef6c92bfbbb7e6
[ "MIT" ]
null
null
null
atlas/info/migrations/0001_initial.py
briansok/Atlas
01320e6c1f2d41e41a93890de6ef6c92bfbbb7e6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-21 13:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('asset', '0003_asset_user'), migrations.swappable_dependency(set...
39.652174
201
0.572368
2b0b94cb6f77a0a28e7ebd3de4462a2a548f0d84
3,618
py
Python
app/app/settings.py
simontt/recipe-app-api
13ed3dcc0c50744c4ce2f4ca22e9fbc7104b0cfc
[ "MIT" ]
null
null
null
app/app/settings.py
simontt/recipe-app-api
13ed3dcc0c50744c4ce2f4ca22e9fbc7104b0cfc
[ "MIT" ]
null
null
null
app/app/settings.py
simontt/recipe-app-api
13ed3dcc0c50744c4ce2f4ca22e9fbc7104b0cfc
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
26.408759
99
0.69016
de69eb94b3985c00e0de5f6de75651320e613b4e
965
py
Python
auth.py
davidaik/item-catalog
69e914f75fdfd186023705a96a6b36cc3c10418b
[ "Unlicense" ]
null
null
null
auth.py
davidaik/item-catalog
69e914f75fdfd186023705a96a6b36cc3c10418b
[ "Unlicense" ]
null
null
null
auth.py
davidaik/item-catalog
69e914f75fdfd186023705a96a6b36cc3c10418b
[ "Unlicense" ]
null
null
null
#!/system/bin/env python3 from flask import session as login_session import random import string import db_utils def get_signin_request_token(): signin_request_token = ''.join( random.choice( string.ascii_uppercase + string.digits ...
22.44186
74
0.612435
df796631c099453c7f6052f1e4730f19e467deea
733
py
Python
src/commands/token.py
SCProjectsLKOrg/TorrentSeedr
cf1a38f2470c02a0b6554ff6f936ca1153ee0d08
[ "MIT" ]
null
null
null
src/commands/token.py
SCProjectsLKOrg/TorrentSeedr
cf1a38f2470c02a0b6554ff6f936ca1153ee0d08
[ "MIT" ]
null
null
null
src/commands/token.py
SCProjectsLKOrg/TorrentSeedr
cf1a38f2470c02a0b6554ff6f936ca1153ee0d08
[ "MIT" ]
null
null
null
from src.objs import * from src.functions.floodControl import floodControl from src.functions.exceptions import exceptions, noAccount #: View account profile, add new accounts and remove existing accounts @bot.message_handler(commands=['token']) def token(message, userLanguage=None): userId = message.from_user.i...
31.869565
113
0.698499
a24c1839303fbef850cc4674cfcf77e2b6b3f196
468
py
Python
examples/create_data.py
PreibischLab/VersionedStorage
858d6c31bfd30470d82a4361299298f3d630c2f9
[ "BSD-3-Clause" ]
null
null
null
examples/create_data.py
PreibischLab/VersionedStorage
858d6c31bfd30470d82a4361299298f3d630c2f9
[ "BSD-3-Clause" ]
null
null
null
examples/create_data.py
PreibischLab/VersionedStorage
858d6c31bfd30470d82a4361299298f3d630c2f9
[ "BSD-3-Clause" ]
null
null
null
import sys sys.path.append('../') from versionedzarrlib import VersionedDataStore import numpy as np import zarr root_path = "/Users/zouinkhim/Desktop/versioned_data" dims = (600, 600, 600) chunk_size = (128, 128, 128) data = VersionedDataStore(path=root_path, shape=dims, raw_chunk_size=chunk_size) data.create(over...
20.347826
80
0.735043
1e96bbaea23fbafd08ec65b752f0f1960f5a20ff
1,012
py
Python
api/model/endpoints.py
katyafervent/model_manager
fd913d2785697b232a068d4750f4ca155c986b02
[ "Apache-2.0" ]
null
null
null
api/model/endpoints.py
katyafervent/model_manager
fd913d2785697b232a068d4750f4ca155c986b02
[ "Apache-2.0" ]
null
null
null
api/model/endpoints.py
katyafervent/model_manager
fd913d2785697b232a068d4750f4ca155c986b02
[ "Apache-2.0" ]
null
null
null
import logging from flask import request from flask_restplus import Resource from api.model.serializers import model from api.directory.operations import create_model from api.restplus import api from database.models import User log = logging.getLogger(__name__) ns = api.namespace('models', description='Reclass temp...
22
79
0.642292
f83e7160eccfe2dc31bbd4c76b3e4c867645cd1d
402
py
Python
rlberry/agents/tests/test_optql.py
antoine-moulin/rlberry
676af9d1bb9094a6790a9aa3ff7e67b13584a183
[ "MIT" ]
null
null
null
rlberry/agents/tests/test_optql.py
antoine-moulin/rlberry
676af9d1bb9094a6790a9aa3ff7e67b13584a183
[ "MIT" ]
null
null
null
rlberry/agents/tests/test_optql.py
antoine-moulin/rlberry
676af9d1bb9094a6790a9aa3ff7e67b13584a183
[ "MIT" ]
null
null
null
from rlberry.agents.optql import OptQLAgent from rlberry.envs.finite import GridWorld def test_optql(): env = GridWorld(walls=(), nrows=5, ncols=5) agent = OptQLAgent(env, n_episodes=50, horizon=11, gamma=0.99, bonus_s...
28.714286
48
0.567164
4df503c2439250cda7f7f3c8f57d8addfd1a72a3
80,494
py
Python
pandas/tests/plotting/frame/test_frame.py
bwozniak27/pandas
4cf6867f6bb836a958e3aca6832d50800a8040ed
[ "BSD-3-Clause" ]
1
2022-03-29T01:38:03.000Z
2022-03-29T01:38:03.000Z
pandas/tests/plotting/frame/test_frame.py
bwozniak27/pandas
4cf6867f6bb836a958e3aca6832d50800a8040ed
[ "BSD-3-Clause" ]
1
2022-03-18T01:26:58.000Z
2022-03-18T01:26:58.000Z
pandas/tests/plotting/frame/test_frame.py
bwozniak27/pandas
4cf6867f6bb836a958e3aca6832d50800a8040ed
[ "BSD-3-Clause" ]
null
null
null
""" Test cases for DataFrame.plot """ from datetime import ( date, datetime, ) import itertools import re import string import warnings import numpy as np import pytest import pandas.util._test_decorators as td from pandas.core.dtypes.api import is_list_like import pandas as pd from pandas import ( Data...
37.755159
88
0.556675
e0951cc1be14b2a429d0983555d16c7b8824e964
21,712
py
Python
test/functional/rpc_psbt.py
proteanx/Bitcorn-Test
87e0245c1cbbb1a662ae0f3a3a9411bbe308ab0f
[ "MIT" ]
25
2019-01-05T05:00:11.000Z
2021-05-03T03:54:07.000Z
test/functional/rpc_psbt.py
Mattras007/BITCORN-1
47a5cdf7fa559aeeacf23f7d0191ba832561260b
[ "MIT" ]
17
2019-07-12T22:10:09.000Z
2021-04-07T17:15:26.000Z
test/functional/rpc_psbt.py
Mattras007/BITCORN-1
47a5cdf7fa559aeeacf23f7d0191ba832561260b
[ "MIT" ]
17
2019-06-09T20:46:37.000Z
2021-12-31T08:44:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the Partially Signed Transaction RPCs. """ from decimal import Decimal from test_framework.test_f...
54.41604
282
0.657332
2aef250e6337f81c35d343c9c3c7fa1bc1ce8e81
670
py
Python
src/sponsors/migrations/0003_sponsortier_camp.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/sponsors/migrations/0003_sponsortier_camp.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/sponsors/migrations/0003_sponsortier_camp.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-07-11 21:45 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('camps', '0021_auto_20170711_2247'), ('sponsors', '000...
29.130435
190
0.665672
8e8ba19e85c168b8587f25848ffa7f4748858d55
264
py
Python
hale_hub/entry_points.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/entry_points.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/entry_points.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
from hale_hub import create_app from hale_hub.extensions import db def hale_hub_run(): app = create_app() app.run(host='0.0.0.0') def hale_hub_setup(): app = create_app() with app.app_context(): db.init_app(app) db.create_all()
17.6
34
0.655303
be867783fb9bad784e5173975f55a7a299f7d4d7
28,017
py
Python
nova/tests/unit/pci/test_stats.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
2
2021-10-11T04:56:25.000Z
2022-02-16T08:49:29.000Z
nova/tests/unit/pci/test_stats.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/tests/unit/pci/test_stats.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# Copyright (c) 2012 OpenStack Foundation # 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 ...
44.051887
79
0.616233
98750c41696616ba50269bc279770eeeb055048f
613
py
Python
discord_bot_eternal_dice/discord_bot_eternal_dice/model/discord_embed.py
lesteenman/discord-bot-eternal-dice
717d7ac10b8dbc3bef5d96dec417fd74154241e3
[ "MIT" ]
null
null
null
discord_bot_eternal_dice/discord_bot_eternal_dice/model/discord_embed.py
lesteenman/discord-bot-eternal-dice
717d7ac10b8dbc3bef5d96dec417fd74154241e3
[ "MIT" ]
null
null
null
discord_bot_eternal_dice/discord_bot_eternal_dice/model/discord_embed.py
lesteenman/discord-bot-eternal-dice
717d7ac10b8dbc3bef5d96dec417fd74154241e3
[ "MIT" ]
null
null
null
import typing class DiscordEmbed: def __init__(self, title: str, description: str = "", footer: str = "", color: int = None): self.title = title self.description = description self.footer = footer self.color = color def to_dict(self) -> typing.Dict: converted = { ...
24.52
95
0.515498
feaae6406fee336e04251ed7b5022e46a17e3feb
12,933
py
Python
ona/cogs/fun.py
k4g4/ona.py
1c6f2b4dd3d85c267302d507db5f73680034428c
[ "MIT" ]
1
2019-05-12T18:58:32.000Z
2019-05-12T18:58:32.000Z
ona/cogs/fun.py
k4g4/ona.py
1c6f2b4dd3d85c267302d507db5f73680034428c
[ "MIT" ]
5
2021-03-18T23:01:01.000Z
2022-03-11T23:49:11.000Z
ona/cogs/fun.py
k4g4/ona.py
1c6f2b4dd3d85c267302d507db5f73680034428c
[ "MIT" ]
1
2019-08-05T02:05:10.000Z
2019-08-05T02:05:10.000Z
import random import discord from io import BytesIO from typing import Optional from discord.ext import commands from PIL import Image, ImageFilter, ImageDraw, ImageFont, ImageSequence, ImageOps class Fun(commands.Cog): '''Interesting and fun commands to play with.''' def __init__(self, ona): self.on...
53.222222
119
0.61664
ffb83f384ea1e8828f722419bff73f6209792533
658
py
Python
rssht_controller_lib/util.py
guallo/remote-ssh-tunnel-controller-lib
b41b28dcb234bcf865dac205d7debda40e139dcb
[ "MIT" ]
null
null
null
rssht_controller_lib/util.py
guallo/remote-ssh-tunnel-controller-lib
b41b28dcb234bcf865dac205d7debda40e139dcb
[ "MIT" ]
null
null
null
rssht_controller_lib/util.py
guallo/remote-ssh-tunnel-controller-lib
b41b28dcb234bcf865dac205d7debda40e139dcb
[ "MIT" ]
1
2020-11-18T14:48:19.000Z
2020-11-18T14:48:19.000Z
import time def retry_on_exception(exceptions, max_retries=1, sleep_secs=0.0): assert tuple(exceptions) assert max_retries >= 1 def decorate(func): def decorator(*args, **kwargs): retries_count = -1 while True: try: retu...
25.307692
66
0.474164
ac016f66b04b1d179847bd59a0e0038d624154bd
2,219
py
Python
test_pagehinkley_detector.py
stworekAsiorek/CRDiS
bb95860bbe75f84d7bac0b7ff982855ebaddf287
[ "MIT" ]
1
2021-09-07T11:17:38.000Z
2021-09-07T11:17:38.000Z
test_pagehinkley_detector.py
KayJay624/SequenceGenerator
bb95860bbe75f84d7bac0b7ff982855ebaddf287
[ "MIT" ]
null
null
null
test_pagehinkley_detector.py
KayJay624/SequenceGenerator
bb95860bbe75f84d7bac0b7ff982855ebaddf287
[ "MIT" ]
1
2019-01-17T18:32:45.000Z
2019-01-17T18:32:45.000Z
# The MIT License # Copyright (c) 2018 Kamil Jurek # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge...
41.867925
79
0.744479
f0410e8a80e2bc80386fde7e69f3fab7c5c5ba49
607
py
Python
scripts/ler_chaves_pilha.py
netlabufjf/Geo-Twitter-Scripts
2ae1efed73df2e2b3678a4254883c34605bf738f
[ "MIT" ]
null
null
null
scripts/ler_chaves_pilha.py
netlabufjf/Geo-Twitter-Scripts
2ae1efed73df2e2b3678a4254883c34605bf738f
[ "MIT" ]
null
null
null
scripts/ler_chaves_pilha.py
netlabufjf/Geo-Twitter-Scripts
2ae1efed73df2e2b3678a4254883c34605bf738f
[ "MIT" ]
1
2018-03-08T17:43:02.000Z
2018-03-08T17:43:02.000Z
import pandas as pd import os # dir_base = os.path.abspath(os.path.dirname(__file__)) dir_base = os.path.abspath(os.getcwd()) df = pd.read_csv("{}/scripts/keys_twitter.csv".format(dir_base)) consumer_key_list = df.consumer_key.tolist() consumer_secret_list = df.consumer_secret.tolist() acess_token_list = df.acess_tok...
21.678571
64
0.76112
c76af0c1deb14d9cfab0bc4ad46fb5494fe2bb9e
3,262
py
Python
ssl_hsic/kernels_test.py
deepmind/ssl_hsic
d7ea38d263f7438fe41ae5c2e2c38c63a9fc36c0
[ "Apache-2.0" ]
23
2021-12-02T21:49:13.000Z
2022-03-04T20:28:46.000Z
ssl_hsic/kernels_test.py
deepmind/ssl_hsic
d7ea38d263f7438fe41ae5c2e2c38c63a9fc36c0
[ "Apache-2.0" ]
null
null
null
ssl_hsic/kernels_test.py
deepmind/ssl_hsic
d7ea38d263f7438fe41ae5c2e2c38c63a9fc36c0
[ "Apache-2.0" ]
1
2022-02-07T18:54:55.000Z
2022-02-07T18:54:55.000Z
#!/usr/bin/python # # Copyright 2021 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
37.068182
79
0.639178
ed00f4603eb9b1863844a1b116afc42db9b1b61e
7,282
py
Python
src/main.py
jamestkelly/card-game-war
6aa28736e19bd9c5788623480037e5711db95bc5
[ "MIT" ]
null
null
null
src/main.py
jamestkelly/card-game-war
6aa28736e19bd9c5788623480037e5711db95bc5
[ "MIT" ]
null
null
null
src/main.py
jamestkelly/card-game-war
6aa28736e19bd9c5788623480037e5711db95bc5
[ "MIT" ]
null
null
null
''' ------------------------------------------------------------------------ Card Game War Scenario by: Patrick, R. Solution by: Jim, K. ------------------------------------------------------------------------ Game Rules & To Do ------------------------------------------------------------------------ Base Game Rules - ...
35.178744
91
0.5195
9eebf1439104b024e359d5e9f3d31da689363f84
4,808
py
Python
Project Source/rehe_lat_surgery.py
lrzpellegrini/latent-replay
a791c602f13a658695dc246261f1ecd7df81d9f7
[ "BSD-3-Clause-Clear" ]
11
2019-12-18T08:57:43.000Z
2021-11-21T16:35:05.000Z
Project Source/rehe_lat_surgery.py
lrzpellegrini/latent-replay
a791c602f13a658695dc246261f1ecd7df81d9f7
[ "BSD-3-Clause-Clear" ]
1
2020-06-16T08:06:29.000Z
2020-06-16T08:06:29.000Z
Project Source/rehe_lat_surgery.py
lrzpellegrini/latent-replay
a791c602f13a658695dc246261f1ecd7df81d9f7
[ "BSD-3-Clause-Clear" ]
2
2019-12-18T08:57:50.000Z
2020-08-29T11:14:50.000Z
#################################################################################################### # Copyright (c) 2019. Lorenzo Pellegrini, Gabriele Graffieti, Vincenzo Lomonaco, Davide Maltoni # # # # Use of this sou...
40.066667
118
0.585275
78c50bf7b89d755ed710b2d4005e612a0a4f13a1
5,866
py
Python
hummingbot/connector/exchange/coinzoom/coinzoom_order_book_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
hummingbot/connector/exchange/coinzoom/coinzoom_order_book_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
hummingbot/connector/exchange/coinzoom/coinzoom_order_book_tracker.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
#!/usr/bin/env python import asyncio import bisect import logging from hummingbot.connector.exchange.coinzoom.coinzoom_constants import Constants import time from collections import defaultdict, deque from typing import Optional, Dict, List, Deque from hummingbot.core.api_throttler.async_throttler import AsyncThrottl...
51.45614
119
0.683771
7eb94b716b4333b62e8959e1c72aa59a756f2210
18,546
py
Python
cinder/volume/volume_types.py
Boye-Z/cinder
2a959e6645379842880373dd9aad4d5ff3b6fd02
[ "Apache-2.0" ]
1
2021-07-25T18:11:41.000Z
2021-07-25T18:11:41.000Z
cinder/volume/volume_types.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
null
null
null
cinder/volume/volume_types.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 Zadara Storage Inc. # Copyright (c) 2011 OpenStack Foundation # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2011 Ken Pepple # # Licensed under the Apache ...
38.6375
78
0.604659
1424343b48616f10032ea9c234ae30d8a6e8026c
4,170
py
Python
case_postgresql_func_and_proc2.py
grishenkovp/postgresql
20e7e712c1a5ba554736c9edceffb4250ff59606
[ "MIT" ]
null
null
null
case_postgresql_func_and_proc2.py
grishenkovp/postgresql
20e7e712c1a5ba554736c9edceffb4250ff59606
[ "MIT" ]
null
null
null
case_postgresql_func_and_proc2.py
grishenkovp/postgresql
20e7e712c1a5ba554736c9edceffb4250ff59606
[ "MIT" ]
null
null
null
import psycopg2 from psycopg2 import Error import pandas as pd user = 'postgres' password = 'admin' host = 'localhost' post = 5432 name = 'test' point = 'postgresql://{}:{}@{}:{}/{}'.format(user, password, host, post, name) def create_tables() -> None: """Создать таблицы в БД """ try: ...
33.36
96
0.519424
7a73401ae9ef30c797b3dbfcef123f38ce31af88
743
py
Python
auctions/migrations/0010_requestorcategory_alter_requesting_price.py
kimpucky/blackwings-2022
0c022b3d77e2945ec97fc01915dfd3722fe15d38
[ "MIT" ]
null
null
null
auctions/migrations/0010_requestorcategory_alter_requesting_price.py
kimpucky/blackwings-2022
0c022b3d77e2945ec97fc01915dfd3722fe15d38
[ "MIT" ]
null
null
null
auctions/migrations/0010_requestorcategory_alter_requesting_price.py
kimpucky/blackwings-2022
0c022b3d77e2945ec97fc01915dfd3722fe15d38
[ "MIT" ]
2
2022-02-04T23:51:05.000Z
2022-02-05T10:54:59.000Z
# Generated by Django 4.0.2 on 2022-02-06 05:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctions', '0009_profile_username'), ] operations = [ migrations.CreateModel( name='RequestorCategory', fields=[ ...
28.576923
114
0.589502
31ebfd322c59f7b4be2c3000611aea2567ef5015
4,026
py
Python
graphviz.py
aint/octopus
e704f56bb96166c7a2b4cd3108705bb30ff6f463
[ "Apache-2.0" ]
10
2019-08-05T07:06:37.000Z
2021-12-09T00:52:30.000Z
graphviz.py
aint/octopus
e704f56bb96166c7a2b4cd3108705bb30ff6f463
[ "Apache-2.0" ]
null
null
null
graphviz.py
aint/octopus
e704f56bb96166c7a2b4cd3108705bb30ff6f463
[ "Apache-2.0" ]
2
2020-06-05T06:51:16.000Z
2020-09-21T23:34:44.000Z
#!/usr/bin/env python3 from typing import List import pydot import os record_table = """<<table border='0' cellspacing='0'> <tr><td port='port1' border='1' bgcolor='{3}'>{0}</td></tr> <tr><td port='port2' border='1' bgcolor='{4}'>{1}</td></tr> <tr><td port='...
32.731707
85
0.599106
28d9b178e9885caf5e83ba373b447590bc949880
414
py
Python
experiments/fdtd-2d/tmp_files/1696.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/1696.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/1696.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/1696.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
23
116
0.722222