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
c537c0d9b2156872fb4bde973350ec623c843c65
715
py
Python
matplotlib/gallery_python/lines_bars_and_markers/barh.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
matplotlib/gallery_python/lines_bars_and_markers/barh.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
5
2021-11-06T10:59:26.000Z
2022-03-11T14:26:38.000Z
matplotlib/examples/barh.py
yy0931/vscode-mplstyle
cd338874402a7128844d26850569e3e14eb18c08
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
""" ==================== Horizontal bar chart ==================== This example showcases a simple horizontal bar chart. """ import matplotlib.pyplot as plt import numpy as np # Fixing random state for reproducibility np.random.seed(19680801) plt.rcdefaults() fig, ax = plt.subplots() # Example data people = ('Tom'...
22.34375
55
0.686713
88b4f0a2574fdbb618c4134f69c7514b4ce8f6e2
68
py
Python
Courses/HSEPython/7 week/4.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
Courses/HSEPython/7 week/4.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
Courses/HSEPython/7 week/4.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
import sys f = sys.stdin.read() f = f.split() print(len(set(f)))
8.5
20
0.602941
01435d12e3280bd92e18551139797e58f3d38bfe
2,240
py
Python
rl/environment/mdp/MDPGrid.py
AliKhalili/girdword
3f31a961847599b84a11f76846d2d361caeb7e5b
[ "MIT" ]
null
null
null
rl/environment/mdp/MDPGrid.py
AliKhalili/girdword
3f31a961847599b84a11f76846d2d361caeb7e5b
[ "MIT" ]
null
null
null
rl/environment/mdp/MDPGrid.py
AliKhalili/girdword
3f31a961847599b84a11f76846d2d361caeb7e5b
[ "MIT" ]
null
null
null
import json import numpy as np from rl.environment.mdp.State import State, states_parser from rl.environment.mdp.MDP import MDP from rl.environment.mdp.Frame import Frame import rl.common.Constant as CNSTNT from rl.environment.mdp.Trajectory import Trajectory class MDPGrid(MDP, Frame, Trajectory): def __init__(s...
40
140
0.674107
3821914a163a1a6ee668e1290cb02e488819feb6
3,429
py
Python
azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# 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 ...
42.333333
140
0.647127
61217b64eb7bde1b13d5b9d7d10a2652108aae50
14,031
py
Python
pythran/tests/test_itertools.py
PierreBlancfat/pythran2
37869bc73aae1054253c2b1643aee5c63f11b7e8
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_itertools.py
PierreBlancfat/pythran2
37869bc73aae1054253c2b1643aee5c63f11b7e8
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_itertools.py
PierreBlancfat/pythran2
37869bc73aae1054253c2b1643aee5c63f11b7e8
[ "BSD-3-Clause" ]
null
null
null
from pythran.tests import TestEnv import sys import unittest from pythran.typing import List @TestEnv.module class TestItertools(TestEnv): @unittest.skipIf(sys.version_info.major == 3, "not supported in pythran3") def test_imap(self): self.run_test("def imap_(l0,v): from itertools import imap; retu...
49.40493
278
0.606514
75f0b53d07346ca530abf1309953748a5dd36458
1,377
py
Python
lightbus/utilities/frozendict.py
gcollard/lightbus
d04deeda8ccef5a582b79255725ca2025a085c02
[ "Apache-2.0" ]
178
2017-07-22T12:35:00.000Z
2022-03-28T07:53:13.000Z
lightbus/utilities/frozendict.py
adamcharnock/warren
5e7069da06cd37a8131e8c592ee957ccb73603d5
[ "Apache-2.0" ]
26
2017-08-03T12:09:29.000Z
2021-10-19T16:47:18.000Z
lightbus/utilities/frozendict.py
adamcharnock/warren
5e7069da06cd37a8131e8c592ee957ccb73603d5
[ "Apache-2.0" ]
19
2017-09-15T17:51:24.000Z
2022-02-28T13:00:16.000Z
""" An immutable dictionary This has been vendored from [python-frozendict](https://github.com/slezica/python-frozendict) and subsequently modified. """ import collections.abc class frozendict(collections.abc.Mapping): """ An immutable wrapper around dictionaries that implements the complete :py:class:`colle...
25.5
105
0.644154
57a3bb280cf55551a02585208691b5c895c36573
3,241
py
Python
aws_xray_sdk/core/sampling/default_sampler.py
lukaasp/libs
2865fcfa6a13bae5ce16d2df4a119d96e7b4d514
[ "Unlicense" ]
null
null
null
aws_xray_sdk/core/sampling/default_sampler.py
lukaasp/libs
2865fcfa6a13bae5ce16d2df4a119d96e7b4d514
[ "Unlicense" ]
null
null
null
aws_xray_sdk/core/sampling/default_sampler.py
lukaasp/libs
2865fcfa6a13bae5ce16d2df4a119d96e7b4d514
[ "Unlicense" ]
null
null
null
import os import json from random import Random from .sampling_rule import SamplingRule from ..exceptions.exceptions import InvalidSamplingManifestError __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) with open(os.path.join(__location__, 'default_sampling_rule.json')) as f:...
36.011111
97
0.603209
db4d2c169c687d1a419a9cb9f6a2d305ee66b986
2,980
py
Python
esmvalcore/preprocessor/_derive/__init__.py
ssmithClimate/ESMValCore
36b625400768493e593d38298e825c84625e1a59
[ "Apache-2.0" ]
null
null
null
esmvalcore/preprocessor/_derive/__init__.py
ssmithClimate/ESMValCore
36b625400768493e593d38298e825c84625e1a59
[ "Apache-2.0" ]
null
null
null
esmvalcore/preprocessor/_derive/__init__.py
ssmithClimate/ESMValCore
36b625400768493e593d38298e825c84625e1a59
[ "Apache-2.0" ]
null
null
null
"""Automatically derive variables.""" import importlib import logging from copy import deepcopy from pathlib import Path import iris logger = logging.getLogger(__name__) def _get_all_derived_variables(): """Get all possible derived variables. Returns ------- dict All derived variables with...
26.607143
77
0.658389
18a5be70d3e273f4b8bd774b8f292e3b67df41d0
7,536
py
Python
Prototype/python/biopredyn/algorithm.py
Cosmo-Tech/biopredyn
0f5bcd4cb1f723bfdea07d4973e46e676f4175e8
[ "BSD-3-Clause" ]
null
null
null
Prototype/python/biopredyn/algorithm.py
Cosmo-Tech/biopredyn
0f5bcd4cb1f723bfdea07d4973e46e676f4175e8
[ "BSD-3-Clause" ]
95
2015-03-06T12:14:06.000Z
2015-03-20T11:15:54.000Z
Prototype/python/biopredyn/algorithm.py
Cosmo-Tech/biopredyn
0f5bcd4cb1f723bfdea07d4973e46e676f4175e8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ## @package biopredyn ## Copyright: [2012-2019] Cosmo Tech, All Rights Reserved ## License: BSD 3-Clause import sys import libsedml ## Representation of an algorithm in SED-ML workflows; an algorithm is defined ## using a KiSAO id along with several optional algorithm parameters....
32.482759
80
0.680732
eb5dbb8de2b39e12506e8dc4fc72853ba7053c60
35,690
py
Python
python/pyspark/cloudpickle.py
kalpit/spark
b2ebf429e24566c29850c570f8d76943151ad78c
[ "Apache-2.0" ]
24
2015-01-14T10:55:42.000Z
2020-01-14T20:42:45.000Z
python/pyspark/cloudpickle.py
kalpit/spark
b2ebf429e24566c29850c570f8d76943151ad78c
[ "Apache-2.0" ]
8
2021-04-14T14:44:23.000Z
2021-04-18T02:44:19.000Z
python/pyspark/cloudpickle.py
kalpit/spark
b2ebf429e24566c29850c570f8d76943151ad78c
[ "Apache-2.0" ]
22
2015-01-05T04:51:57.000Z
2020-06-08T12:01:25.000Z
""" This class is defined to override standard pickle functionality The goals of it follow: -Serialize lambdas and nested functions to compiled byte code -Deal with main module correctly -Deal with other non-serializable objects It does not include an unpickler, as standard python unpickling suffices. This module wa...
36.605128
144
0.614934
0d382c25e9f1d99c7e735f65c9d5a0b9b34361fe
590
py
Python
grayskull/cli/parser.py
BastianZim/grayskull
96eb516d1d87217de01a13a4993d1d85e97e8151
[ "Apache-2.0" ]
86
2020-10-14T10:42:12.000Z
2022-03-27T08:01:53.000Z
grayskull/cli/parser.py
BastianZim/grayskull
96eb516d1d87217de01a13a4993d1d85e97e8151
[ "Apache-2.0" ]
118
2020-10-14T13:35:52.000Z
2022-03-28T07:40:16.000Z
grayskull/cli/parser.py
BastianZim/grayskull
96eb516d1d87217de01a13a4993d1d85e97e8151
[ "Apache-2.0" ]
19
2020-10-15T10:02:36.000Z
2022-03-27T21:17:59.000Z
import re from typing import Optional, Tuple from grayskull.utils import origin_is_github def parse_pkg_name_version(pkg_name: str) -> Tuple[str, Optional[str]]: origin = "" if origin_is_github(pkg_name): origin, pkg_name = pkg_name.rsplit("/", 1) origin += "/" if pkg_name.endswith("....
29.5
73
0.608475
4af0bac5c5dc76498c6acd9693607ba1d0246fee
359
py
Python
services/connectors/fronius_solar_api_connector/source/connector/tests/test_main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
4
2021-09-10T09:46:18.000Z
2021-12-05T17:55:14.000Z
services/connectors/fronius_solar_api_connector/source/connector/tests/test_main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
services/connectors/fronius_solar_api_connector/source/connector/tests/test_main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Place tests for the connector specific methods here. """ import unittest import pytest from ..main import Connector class TestReceiveRawMsg(unittest.TestCase): def test_dumy(self): pass class TestParseRawMsg(unittest.TestCase): pass class TestSe...
14.958333
52
0.715877
e7f3418fb110b65ed7149dbba541754e5441bf77
722
py
Python
python/lib/Lib/site-packages/django/conf/locale/is/formats.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
django/conf/locale/is/formats.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
django/conf/locale/is/formats.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'H:i:s' # DATETIME_FORMAT = YEAR_MONTH_FORMAT = 'F...
30.083333
77
0.742382
9d3682a49f2d80511e50c5f1d407a1da6fbd1b09
627
py
Python
influxdb_metrics/tasks.py
realdanurbano/django-influxdb-metrics
ec30609394b81b80ad95025dac84419a0110f8df
[ "MIT" ]
54
2016-11-25T10:00:23.000Z
2022-03-17T09:27:49.000Z
influxdb_metrics/tasks.py
realdanurbano/django-influxdb-metrics
ec30609394b81b80ad95025dac84419a0110f8df
[ "MIT" ]
27
2016-12-01T17:35:37.000Z
2021-03-30T16:37:49.000Z
influxdb_metrics/tasks.py
realdanurbano/django-influxdb-metrics
ec30609394b81b80ad95025dac84419a0110f8df
[ "MIT" ]
23
2016-11-22T09:26:28.000Z
2022-03-14T11:34:33.000Z
"""Celery tasks for the influxdb_metrics app.""" from __future__ import absolute_import try: from celery import shared_task except ImportError: def shared_task(func): def wrapper(*args, **kwargs): return func(*args, **kwargs) return wrapper from .utils import write_points as write_...
26.125
70
0.722488
8b3a7f77ca65767ce6ab8803e219796695a413ed
382
py
Python
view.py
Jerohlee/OOP-1-2
541bd7279b98013352e7b1c02ed0f86e7591669f
[ "Apache-2.0" ]
null
null
null
view.py
Jerohlee/OOP-1-2
541bd7279b98013352e7b1c02ed0f86e7591669f
[ "Apache-2.0" ]
null
null
null
view.py
Jerohlee/OOP-1-2
541bd7279b98013352e7b1c02ed0f86e7591669f
[ "Apache-2.0" ]
null
null
null
import pyodbc try: connect = pyodbc.connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\Users\lee\Documents\Database01.accdb;') print("Database is Connected") database = connect.cursor() database.execute('SELECT * FROM Table1') for x in database.fetchall(): print(x)...
25.466667
128
0.65445
6e0009e2a01e21e02a39b922aab0a23389fddb3c
7,700
py
Python
test/terra/extensions/test_snapshot_expectation_value.py
jakelishman/qiskit-aer
7512ecede820e0d2bc7ad7b6704bcf06a861ca3a
[ "Apache-2.0" ]
null
null
null
test/terra/extensions/test_snapshot_expectation_value.py
jakelishman/qiskit-aer
7512ecede820e0d2bc7ad7b6704bcf06a861ca3a
[ "Apache-2.0" ]
null
null
null
test/terra/extensions/test_snapshot_expectation_value.py
jakelishman/qiskit-aer
7512ecede820e0d2bc7ad7b6704bcf06a861ca3a
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
44.252874
98
0.512078
8ddaea067c2b82e63db129584819412e882af2c2
2,954
py
Python
tests/libs/embeds/test_display.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
11
2019-03-22T12:02:11.000Z
2021-01-21T04:57:18.000Z
tests/libs/embeds/test_display.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
5
2019-03-02T08:28:25.000Z
2021-02-02T22:06:37.000Z
tests/libs/embeds/test_display.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
3
2019-07-20T06:55:09.000Z
2019-12-04T05:05:00.000Z
import pytest from ...utils import assert_finished, assert_obniz, assert_send, receive_json class TestDisplay: def test_clear(self, obniz): obniz.display.clear() assert_obniz(obniz) assert_send(obniz, [{ "display": { "clear": True } }]) ...
27.100917
77
0.423155
98cebbfa6d729d6f2e6af6f65a7b69c75f2e5429
2,740
py
Python
examples/plot_offline_tracks.py
KM3NeT/km3io
4a4b1fbcb3eb3368e1b839f6f83c6335fbeae7f9
[ "MIT" ]
2
2021-01-06T08:08:23.000Z
2022-02-28T09:12:25.000Z
examples/plot_offline_tracks.py
KM3NeT/km3io
4a4b1fbcb3eb3368e1b839f6f83c6335fbeae7f9
[ "MIT" ]
null
null
null
examples/plot_offline_tracks.py
KM3NeT/km3io
4a4b1fbcb3eb3368e1b839f6f83c6335fbeae7f9
[ "MIT" ]
null
null
null
""" Reading Offline tracks ====================== The following example shows how to access tracks data in an offline ROOT file. Note: the offline files used here were intentionaly reduced to 10 events. """ import km3io as ki from km3net_testdata import data_path #####################################################...
24.909091
81
0.471898
f767e6b18a5cc361d2c359165e458599d83bc8e4
64
py
Python
ytmdl/__version__.py
jrejaud/ytmdl
39af7c6565795da2a8cc9ab969b38a3b384d4e58
[ "MIT" ]
null
null
null
ytmdl/__version__.py
jrejaud/ytmdl
39af7c6565795da2a8cc9ab969b38a3b384d4e58
[ "MIT" ]
null
null
null
ytmdl/__version__.py
jrejaud/ytmdl
39af7c6565795da2a8cc9ab969b38a3b384d4e58
[ "MIT" ]
null
null
null
# Store the version of the package __version__ = "2020.11.20-1"
21.333333
34
0.734375
0ab7e047fa7f3a6dcd867e5cbe10a32011765653
12,870
py
Python
klasses/models.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
2
2018-06-20T19:37:03.000Z
2021-01-06T09:51:40.000Z
klasses/models.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
1,226
2017-02-23T14:52:28.000Z
2022-03-29T13:19:54.000Z
klasses/models.py
mitodl/bootcamp-ecommerce
ba7d6aefe56c6481ae2a5afc84cdd644538b6d50
[ "BSD-3-Clause" ]
3
2017-03-20T03:51:27.000Z
2021-03-19T15:54:31.000Z
"""Models for bootcamps""" import datetime import uuid from functools import partial import pytz from django.conf import settings from django.contrib.auth.models import User from django.db import models from mitol.common.models import TimestampedModel from mitol.common.utils import now_in_utc from main.models import ...
31.699507
115
0.643901
d6c7d332acfccb65688d98e5779f06fa79e0a51d
2,621
py
Python
nipype/interfaces/camino/tests/test_auto_TrackBallStick.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/camino/tests/test_auto_TrackBallStick.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
2
2018-04-17T19:18:16.000Z
2020-03-04T22:05:02.000Z
nipype/interfaces/camino/tests/test_auto_TrackBallStick.py
oesteban/nipype
c14f24eba1da08711bbb894e049ee858ed740096
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..dti import TrackBallStick def test_TrackBallStick_inputs(): input_map = dict( anisfile=dict( argstr='-anisfile %s', extensions=None, ), anisthresh=dict(argstr='-anis...
29.122222
67
0.516215
cf4928816bd77b5c178c618b452f4f9aadd75900
8,268
py
Python
tests/transitfeed/testfrequency.py
aalekhpatel07/transitfeed
490c2342c53885da23bdd18f428073e60f4d8728
[ "Apache-2.0" ]
null
null
null
tests/transitfeed/testfrequency.py
aalekhpatel07/transitfeed
490c2342c53885da23bdd18f428073e60f4d8728
[ "Apache-2.0" ]
null
null
null
tests/transitfeed/testfrequency.py
aalekhpatel07/transitfeed
490c2342c53885da23bdd18f428073e60f4d8728
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
35.333333
74
0.542332
685ae8716aa078d50a5901127973d6f3ad6bab6a
1,795
py
Python
rsna_heme/process.py
johncolby/rsna_heme
14e3ecafa0587ebdce2a04b239edecb32dbaa6d0
[ "MIT" ]
1
2020-05-30T13:59:47.000Z
2020-05-30T13:59:47.000Z
rsna_heme/process.py
johncolby/rsna_heme
14e3ecafa0587ebdce2a04b239edecb32dbaa6d0
[ "MIT" ]
null
null
null
rsna_heme/process.py
johncolby/rsna_heme
14e3ecafa0587ebdce2a04b239edecb32dbaa6d0
[ "MIT" ]
null
null
null
import argparse import logging import mxnet as mx import os import pandas as pd import pickle import re import requests from radstudy import RadStudy from . import dicom from . import labels from . import transforms class HemeStudy(RadStudy): def __init__(self, wl=[(40, 80), (80, 200), (40, 380)], **kwargs): ...
34.519231
110
0.612256
4f55ad28c493dc1409bfcbb245ab077e4495edb1
10,387
py
Python
pybind/slxos/v16r_1_00b/interface/ethernet/interface_eth_isis_conf/intf_isis/interface_isis/interface_auth_mode/interface_md5/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/interface/ethernet/interface_eth_isis_conf/intf_isis/interface_isis/interface_auth_mode/interface_md5/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/interface/ethernet/interface_eth_isis_conf/intf_isis/interface_isis/interface_auth_mode/interface_md5/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
65.740506
526
0.744392
42d767d06a80921088239dc5f77edd0244dfffc7
6,928
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_profile_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_profile_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_profile_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
65.358491
251
0.701357
9ac5d9cbcc916929792c876305dba4cb772a0cba
2,045
py
Python
readinputfiles.py
virtualsociety/simulation-py
89ba16cfcb0743aedc4eb669ed9853989aeebee1
[ "MIT" ]
null
null
null
readinputfiles.py
virtualsociety/simulation-py
89ba16cfcb0743aedc4eb669ed9853989aeebee1
[ "MIT" ]
null
null
null
readinputfiles.py
virtualsociety/simulation-py
89ba16cfcb0743aedc4eb669ed9853989aeebee1
[ "MIT" ]
null
null
null
''' Function to read the required inputfiles By Dr. Raymond Hoogendoorn Copyright 2020 ''' import pandas as pd def readInputFiles(): df_gender = pd.read_csv('./Input/Bevolking__kerncijfers_07122020_100024.csv', delimiter = ';') df_age = pd.read_csv('./Input/Bevolking__kerncijfers_07122020_112736.csv', delimi...
85.208333
202
0.80978
6d5dd353eab0a1172f28a56e281829c2ea204da1
4,361
py
Python
exercises/chapter15/tracks.py
SravaniDash/Coursera-Python-For-Everyone
17849538bf052f38c33fb630f161bf20a9a3ca46
[ "CC0-1.0" ]
null
null
null
exercises/chapter15/tracks.py
SravaniDash/Coursera-Python-For-Everyone
17849538bf052f38c33fb630f161bf20a9a3ca46
[ "CC0-1.0" ]
null
null
null
exercises/chapter15/tracks.py
SravaniDash/Coursera-Python-For-Everyone
17849538bf052f38c33fb630f161bf20a9a3ca46
[ "CC0-1.0" ]
null
null
null
# This application will read an iTunes export file in XML and produce a properly normalized database with this structure: # CREATE TABLE Artist ( # id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, # name TEXT UNIQUE # ); # CREATE TABLE Genre ( # id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,...
32.544776
351
0.671406
aab4f541c902ba3d99a6fe5be18324949c4a6be0
458
py
Python
Week_3 (Communications Systems)- 3b Robotic Operating System (ROS)/electronics/Scripts/Question 2/s2.py
offjangir/Kratos-QSTP-Course
6c883f17867362305212171851b40db7b9f238f1
[ "MIT" ]
2
2021-09-10T06:24:33.000Z
2021-09-10T06:25:02.000Z
Week_3 (Communications Systems)- 3b Robotic Operating System (ROS)/electronics/Scripts/Question 2/s2.py
offjangir/Kratos_QSTP-Work
6c883f17867362305212171851b40db7b9f238f1
[ "MIT" ]
null
null
null
Week_3 (Communications Systems)- 3b Robotic Operating System (ROS)/electronics/Scripts/Question 2/s2.py
offjangir/Kratos_QSTP-Work
6c883f17867362305212171851b40db7b9f238f1
[ "MIT" ]
null
null
null
#SUBSCRIBES TO THE TOPIC AND ALTENATE PUBLISHES ON THE OTHER TOPIC #!/usr/bin/env python import rospy from std_msgs.msg import String def callback(msg): signal = String() if msg.data == "green": signal = "red" else: signal = "green" pub.publish(signal) if __name__ == '__main__': rospy.init_node('s2') sub = r...
28.625
67
0.707424
6ac3ca747d68e48518a8f2d54d749ff9529ebf06
443
py
Python
workflow/migrations/0011_auto_20190527_2331.py
tanmayagarwal/Activity-CE
a49c47053b191ffa5aee9a06e66a7c9644804434
[ "Apache-2.0" ]
1
2021-07-07T14:39:23.000Z
2021-07-07T14:39:23.000Z
workflow/migrations/0011_auto_20190527_2331.py
michaelbukachi/Activity
f3d4f4da88ae9539c341ca73cc559b850693d669
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0011_auto_20190527_2331.py
michaelbukachi/Activity
f3d4f4da88ae9539c341ca73cc559b850693d669
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-28 06:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workflow', '0010_auto_20190527_2330'), ] operations = [ migrations.AlterField( model_name='program', name='name', ...
23.315789
107
0.620767
7cb831c219629a869711a6ffdedd4271976cd1a0
3,422
py
Python
test/functional/wallet_keypool.py
fujicoin/fujicoin-v0.16.3
015eeb9c7a50f3dabfad8905d75468893cc90e22
[ "MIT" ]
1
2018-09-23T23:54:15.000Z
2018-09-23T23:54:15.000Z
test/functional/wallet_keypool.py
david30000/fujicoin
7d8eacd96cc6da30cf6a2deaaec4a97eeecbbfb2
[ "MIT" ]
null
null
null
test/functional/wallet_keypool.py
david30000/fujicoin
7d8eacd96cc6da30cf6a2deaaec4a97eeecbbfb2
[ "MIT" ]
1
2021-07-18T11:22:27.000Z
2021-07-18T11:22:27.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Fujicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet keypool and interaction with wallet encryption/locking.""" from test_framework.test_f...
40.258824
119
0.662186
a23e88493f6bd4b5351a2449a4a7b88bc6a02b66
1,549
py
Python
days_28-30_regex/test_regex.py
vkoprivica/100_Days_of_Python
736b8a41a03673db44cdbd095433254e60d3316b
[ "MIT" ]
null
null
null
days_28-30_regex/test_regex.py
vkoprivica/100_Days_of_Python
736b8a41a03673db44cdbd095433254e60d3316b
[ "MIT" ]
null
null
null
days_28-30_regex/test_regex.py
vkoprivica/100_Days_of_Python
736b8a41a03673db44cdbd095433254e60d3316b
[ "MIT" ]
null
null
null
from regex import (extract_course_times, split_on_multiple_chars, get_all_hashtags_and_links, match_first_paragraph, find_double_words, match_ip_v4_address) def test_extract_course_times(): expected = ['01:47', '32:03', '41:51', '27:48', '05:02'] assert extract_course_...
31.612245
74
0.662363
79e2fa126f96009a480076fbed9e9842f92cbb28
17,792
py
Python
dx_refresh_vdb.py
arunskurian/delphixpy-examples
c4716edbd22fb238ceed23e989b6e6abd82ac8fc
[ "Apache-2.0" ]
null
null
null
dx_refresh_vdb.py
arunskurian/delphixpy-examples
c4716edbd22fb238ceed23e989b6e6abd82ac8fc
[ "Apache-2.0" ]
null
null
null
dx_refresh_vdb.py
arunskurian/delphixpy-examples
c4716edbd22fb238ceed23e989b6e6abd82ac8fc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Adam Bowen - Apr 2016 # This script refreshes a vdb # Updated by Corey Brune Oct 2016 # requirements # pip install --upgrade setuptools pip docopt delphixpy.v1_8_0 # The below doc follows the POSIX compliant standards and allows us to use # this doc to also define our arguments for the script. ...
36.684536
141
0.58279
0240ecbdb6c78392b7cb492cb094cbd723c8d4eb
8,519
py
Python
raven/contrib/django/models.py
mgedmin/raven-python
6d487a8298dd5340c701b7195eb65ce4ed113f1f
[ "BSD-3-Clause" ]
null
null
null
raven/contrib/django/models.py
mgedmin/raven-python
6d487a8298dd5340c701b7195eb65ce4ed113f1f
[ "BSD-3-Clause" ]
null
null
null
raven/contrib/django/models.py
mgedmin/raven-python
6d487a8298dd5340c701b7195eb65ce4ed113f1f
[ "BSD-3-Clause" ]
null
null
null
""" raven.contrib.django.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Acts as an implicit hook for Django installs. :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from __future__ import unicode_literals from h...
36.562232
140
0.647846
a87896e5386c70170acd94b3e982528373860900
8,293
py
Python
synapse/groups/attestations.py
dsonck92/synapse
2560b1b6b2f74b5724253396c0e3665fa1f7968c
[ "Apache-2.0" ]
9,945
2015-01-02T07:41:06.000Z
2022-03-31T23:22:42.000Z
synapse/groups/attestations.py
t2bot/synapse
62ca554ef09330cb88d46fca8296a859d0adc143
[ "Apache-2.0" ]
9,320
2015-01-08T14:09:03.000Z
2022-03-31T21:11:24.000Z
synapse/groups/attestations.py
t2bot/synapse
62ca554ef09330cb88d46fca8296a859d0adc143
[ "Apache-2.0" ]
2,299
2015-01-31T22:16:29.000Z
2022-03-31T06:08:26.000Z
# Copyright 2017 Vector Creations 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 in ...
37.86758
88
0.656819
c47739874e06f42c7eb96ea82d6382fed8af2e9d
2,035
py
Python
Z_ALL_FILE/Py/code_qry.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
null
null
null
Z_ALL_FILE/Py/code_qry.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
null
null
null
Z_ALL_FILE/Py/code_qry.py
omikabir/omEngin
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
[ "Apache-2.0" ]
1
2021-04-29T21:46:02.000Z
2021-04-29T21:46:02.000Z
import pandas as pd import os #opt = itertools.islice(ls, len(ls)) #st = map(lambda x : ) def parsecode(txt): df = pd.read_csv(os.getcwd() + '\\OMDB.csv') ls = df['Code'].to_list() code = [] q = 0 for i in range(len(ls)): text = txt if ls[i] in text: n = text.find(ls[...
28.263889
200
0.456511
cbd96f198a524ce01faafc3d077cf8b422a701d4
6,784
py
Python
booking/views.py
eedf/becours
95ac62b3d102ddbb16b01fe27fc32c98d1c40410
[ "MIT" ]
null
null
null
booking/views.py
eedf/becours
95ac62b3d102ddbb16b01fe27fc32c98d1c40410
[ "MIT" ]
null
null
null
booking/views.py
eedf/becours
95ac62b3d102ddbb16b01fe27fc32c98d1c40410
[ "MIT" ]
null
null
null
from datetime import date, timedelta from django.contrib.auth.mixins import LoginRequiredMixin from django.core.files import File from django.db.models import Min, Sum from django.http import HttpResponseRedirect from django.urls import reverse from django.utils.text import slugify from django.utils.timezone import now...
53.417323
135
0.666421
873ee428b52cc951b4b3557ece31a5d13dd69a75
4,277
py
Python
lale/lib/aif360/eq_odds_postprocessing.py
szymonkucharczyk/lale
bc956e56f9e23c78049699faf428c2f7fdd4565d
[ "Apache-2.0" ]
1
2021-07-24T20:35:18.000Z
2021-07-24T20:35:18.000Z
lale/lib/aif360/eq_odds_postprocessing.py
szymonkucharczyk/lale
bc956e56f9e23c78049699faf428c2f7fdd4565d
[ "Apache-2.0" ]
null
null
null
lale/lib/aif360/eq_odds_postprocessing.py
szymonkucharczyk/lale
bc956e56f9e23c78049699faf428c2f7fdd4565d
[ "Apache-2.0" ]
1
2021-03-16T08:20:30.000Z
2021-03-16T08:20:30.000Z
# Copyright 2019 IBM Corporation # # 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, ...
36.245763
153
0.644611
488431213c954037571d4c4549039ad9bf245ecc
31,233
py
Python
kubernetes/test/test_core_v1_api.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_core_v1_api.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_core_v1_api.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
19.267736
105
0.581596
b4a08069b9de44bf7978fba19bdf918708a73d9e
758
py
Python
core/src/zeit/cms/generation/evolve5.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/cms/generation/evolve5.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/cms/generation/evolve5.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
import zope.component import zeit.cms.generation import zeit.cms.generation.install import zeit.cms.syndication.interfaces import zeit.cms.workingcopy.interfaces def update(root): # Change the storage type of hidden containers from zc.set to TreeSet # We don't migtrate the user preferences here but just remo...
31.583333
73
0.751979
0fd80aeb25884597254565adbe75d33f64de3b82
507
py
Python
kontranto_igra/migrations/0003_auto_20210105_2257.py
zd-mioc/Kontranto
928f8e6ca1c8c136878d0dd036321053ab461049
[ "MIT" ]
1
2020-07-19T11:11:08.000Z
2020-07-19T11:11:08.000Z
kontranto_igra/migrations/0003_auto_20210105_2257.py
zd-mioc/Kontranto
928f8e6ca1c8c136878d0dd036321053ab461049
[ "MIT" ]
null
null
null
kontranto_igra/migrations/0003_auto_20210105_2257.py
zd-mioc/Kontranto
928f8e6ca1c8c136878d0dd036321053ab461049
[ "MIT" ]
1
2021-03-01T08:39:41.000Z
2021-03-01T08:39:41.000Z
# Generated by Django 3.1.4 on 2021-01-05 21:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('kontranto_igra', '0002_auto_20210105_2249'), ] operations = [ migrations.AlterField( model_name...
25.35
132
0.654832
ad3d8a7153d80f73860ee80ad0fb9b8822dde3d1
5,137
py
Python
charge_density_methods_VASP/lib.py
benwmcdowell/charge_density_methods_VASP
c1d965b62e638e4509c8b2b94fc797568aa46919
[ "MIT" ]
4
2021-04-13T13:57:48.000Z
2021-04-15T03:37:52.000Z
charge_density_methods_VASP/lib.py
benwmcdowell/charge_density_methods_VASP
c1d965b62e638e4509c8b2b94fc797568aa46919
[ "MIT" ]
null
null
null
charge_density_methods_VASP/lib.py
benwmcdowell/charge_density_methods_VASP
c1d965b62e638e4509c8b2b94fc797568aa46919
[ "MIT" ]
null
null
null
from numpy import zeros, dot, cross, shape from numpy.linalg import inv #reads the total charge density from a CHGCAR file def parse_CHGCAR(ifile, **args): if 'scale' in args: rescale=False else: rescale=True #reads atomic positions and lattice vectors lv=zeros((3,3)) wit...
31.133333
80
0.406658
d4efd0584dc3796b74adb818ce29953c0b6c512a
52,943
py
Python
aicsimage/io/omexml.py
HelmholtzAI-Consultants-Munich/pytorch_fnet
879784bd0f8e76ab8f0ed8de4235180a316e12d8
[ "Unlicense" ]
16
2021-03-12T01:37:36.000Z
2022-02-07T22:02:15.000Z
aicsimage/io/omexml.py
HelmholtzAI-Consultants-Munich/pytorch_fnet
879784bd0f8e76ab8f0ed8de4235180a316e12d8
[ "Unlicense" ]
2
2021-03-26T04:12:15.000Z
2022-03-30T07:34:34.000Z
aicsimage/io/omexml.py
HelmholtzAI-Consultants-Munich/pytorch_fnet
879784bd0f8e76ab8f0ed8de4235180a316e12d8
[ "Unlicense" ]
3
2020-07-08T09:03:00.000Z
2021-11-29T07:17:13.000Z
# Python-bioformats is distributed under the GNU General Public # License, but this file is licensed under the more permissive BSD # license. See the accompanying file LICENSE for details. # # Copyright (c) 2009-2014 Broad Institute # All rights reserved. """omexml.py read and write OME xml """ from __fu...
37.152982
302
0.573655
fd626201c898afed834e028b4188d0f4108591c5
404
py
Python
tests/test_sqlalchemy/tables.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
null
null
null
tests/test_sqlalchemy/tables.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
6
2022-03-30T16:19:01.000Z
2022-03-30T16:32:08.000Z
tests/test_sqlalchemy/tables.py
cedar-team/snapshot-queries
e033d7f8cc221617e1922e913cae2f32b409faf6
[ "MIT" ]
1
2022-03-31T19:22:22.000Z
2022-03-31T19:22:22.000Z
from sqlalchemy import Column, Date, Integer, MetaData, String, Table tables = MetaData() students = Table( "students", tables, Column("id", Integer, primary_key=True), Column("first_name", String), Column("last_name", String), ) classes = Table( "classes", tables, Column("id", Intege...
20.2
69
0.64604
21a1df12b6a8331435fd0ce41aae9c5c7e4ca73e
4,265
py
Python
backend/webserver/db.py
Kevinwochan/Ultracast
0d32bd176f4423d6cc7346e9864b020dbdd0cbb4
[ "BSD-3-Clause" ]
null
null
null
backend/webserver/db.py
Kevinwochan/Ultracast
0d32bd176f4423d6cc7346e9864b020dbdd0cbb4
[ "BSD-3-Clause" ]
null
null
null
backend/webserver/db.py
Kevinwochan/Ultracast
0d32bd176f4423d6cc7346e9864b020dbdd0cbb4
[ "BSD-3-Clause" ]
null
null
null
from . import models from . import schema import re import magic import mimetypes import boto3 from botocore.client import Config from mongoengine import connect from pydub import AudioSegment import io import hashlib from base64 import urlsafe_b64encode #MONGO_URI = f'mongodb://{MONGO_USERNAME}:{MONGO_PASSWORD}@{MON...
27.875817
108
0.668699
fde4b29837510262b82f5e0eac3e8a6f9d153cdf
22,519
py
Python
assign-random-peer-reviewer-by-section.py
gqmaguirejr/Canvas-tools
f58db8be12470353ce296b2833839c95a78808fa
[ "MIT" ]
26
2019-01-08T16:34:57.000Z
2021-09-13T20:53:40.000Z
assign-random-peer-reviewer-by-section.py
gqmaguirejr/Canvas-tools
f58db8be12470353ce296b2833839c95a78808fa
[ "MIT" ]
1
2020-09-10T19:32:19.000Z
2020-09-10T20:03:35.000Z
assign-random-peer-reviewer-by-section.py
gqmaguirejr/Canvas-tools
f58db8be12470353ce296b2833839c95a78808fa
[ "MIT" ]
7
2019-09-28T23:10:47.000Z
2022-03-15T12:57:18.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # -*- mode: python; python-indent-offset: 4 -*- # # ./assign-random-peer-reviewer-by-section.py course_id new_assignment_id [old_assignment_id ] # # This program assigns each user in a course (course_id) with a randomly assigned peer reviewer from within their section for a gi...
39.437828
171
0.646876
5ae41e24f7f5e283c535c54343519735c3c42f63
1,826
py
Python
res/res/biz/flavors_get.py
onap/vfc-gvnfm-vnfres
2ff32469650ac5b6dc6b65d99cc27f3f7aab4161
[ "Apache-2.0" ]
1
2021-10-15T15:26:31.000Z
2021-10-15T15:26:31.000Z
res/res/biz/flavors_get.py
onap/vfc-gvnfm-vnfres
2ff32469650ac5b6dc6b65d99cc27f3f7aab4161
[ "Apache-2.0" ]
null
null
null
res/res/biz/flavors_get.py
onap/vfc-gvnfm-vnfres
2ff32469650ac5b6dc6b65d99cc27f3f7aab4161
[ "Apache-2.0" ]
null
null
null
# Copyright @ 2020 China Mobile (SuZhou) Software Technology 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...
35.115385
75
0.653888
695d4678e10e770448bf0fe7b30e5e71bc94adc2
428
py
Python
dskc/io/util.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/io/util.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
dskc/io/util.py
NovaSBE-DSKC/predict-campaing-sucess-rate
fec339aee7c883f55d64130eb69e490f765ee27d
[ "MIT" ]
null
null
null
import os def get_root_path(): ''' :return: root path of the project ''' path = os.getcwd() MAX_ITERATIONS = 10 i = 0 while True: # check inside folders for x in os.walk(path): if x[0].endswith("dskc"): return path # go to father directory path = os.path.normpath(path +...
15.851852
54
0.591121
41b9a683c60f42fc7d4a6077118d1fd8ef04a105
280,301
py
Python
python/jsbeautifier/tests/generated/tests.py
Abd-Ur-Rehman/js-beautify
f47d361887a33fbd998975dac0abe33c9b70019c
[ "MIT" ]
56
2015-02-12T16:19:16.000Z
2022-01-29T12:12:51.000Z
python/jsbeautifier/tests/generated/tests.py
Abd-Ur-Rehman/js-beautify
f47d361887a33fbd998975dac0abe33c9b70019c
[ "MIT" ]
2
2016-04-20T20:29:43.000Z
2020-06-11T09:12:04.000Z
python/jsbeautifier/tests/generated/tests.py
Abd-Ur-Rehman/js-beautify
f47d361887a33fbd998975dac0abe33c9b70019c
[ "MIT" ]
9
2015-07-14T19:23:21.000Z
2022-03-01T04:15:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' AUTO-GENERATED. DO NOT MODIFY. Script: test/generate-tests.js Template: test/data/javascript/python.mustache Data: test/data/javascript/tests.js The MIT License (MIT) Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors. Permi...
32.408487
276
0.296488
133dd0c034293665e363659fecf8f02a16af5ed7
2,506
py
Python
analysis/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter1/course-project-solo_322
ce8e5b4e59c5ef14b3bcf479dbb30a2c19604472
[ "MIT" ]
null
null
null
analysis/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter1/course-project-solo_322
ce8e5b4e59c5ef14b3bcf479dbb30a2c19604472
[ "MIT" ]
1
2020-12-06T10:14:15.000Z
2020-12-06T10:14:15.000Z
analysis/scripts/project_functions.py
data301-2020-winter1/course-project-solo_322
ce8e5b4e59c5ef14b3bcf479dbb30a2c19604472
[ "MIT" ]
null
null
null
#script that return a section of the complete database based on the input integer #filters data accordingly import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas_profiling def load_and_process(url_path_csv, i): df = pd.read_csv(url_path_csv) if i == 0...
35.295775
184
0.538707
cc53eb0fe1b9de93345a76024f8f3961dfcc3f89
3,454
py
Python
twitter/updater.py
jammie080/Twitter-Bot
0c53bd667db92991ce1f0d0a14985265d505078f
[ "BSD-2-Clause" ]
null
null
null
twitter/updater.py
jammie080/Twitter-Bot
0c53bd667db92991ce1f0d0a14985265d505078f
[ "BSD-2-Clause" ]
null
null
null
twitter/updater.py
jammie080/Twitter-Bot
0c53bd667db92991ce1f0d0a14985265d505078f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- from settings import config import version import time,os,requests from os import rmdir, listdir from os.path import join from bs4 import BeautifulSoup import re import zipfile from shutil import move import shutil class updater: def __init__(self): self.versi...
34.888889
92
0.564273
6bc68ff52929721adbb7ee0f77f293700165604e
400
py
Python
oceanpy/forces/coriolis.py
profxj/oceanpy
fb6324adf783cee40b47af6894465df00a6f6d09
[ "BSD-3-Clause" ]
1
2020-07-01T14:53:45.000Z
2020-07-01T14:53:45.000Z
oceanpy/forces/coriolis.py
profxj/oceanpy
fb6324adf783cee40b47af6894465df00a6f6d09
[ "BSD-3-Clause" ]
2
2020-04-04T18:44:08.000Z
2020-07-11T13:29:00.000Z
oceanpy/forces/coriolis.py
profxj/oceanpy
fb6324adf783cee40b47af6894465df00a6f6d09
[ "BSD-3-Clause" ]
2
2020-07-01T14:53:59.000Z
2020-07-07T21:11:28.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Coriolis forces """ import numpy as np import unyt def coriolis_parameter(latitude): f = 2 * unyt.Omega_earth * np.sin(latitude) # Return return f def meridional_derivative(latitude): beta = (2*unyt.Omega_ea...
18.181818
63
0.67
ea30c069ed4c10d6f852bbe81e935bae1db01564
90
py
Python
server/apps.py
nathandarnell/sal
464414a2666e39bdf5b4b0033a84d5129c93c053
[ "Apache-2.0" ]
215
2015-05-04T16:57:56.000Z
2022-03-07T12:58:12.000Z
server/apps.py
nathandarnell/sal
464414a2666e39bdf5b4b0033a84d5129c93c053
[ "Apache-2.0" ]
243
2015-07-04T18:10:56.000Z
2022-02-27T18:52:40.000Z
server/apps.py
nathandarnell/sal
464414a2666e39bdf5b4b0033a84d5129c93c053
[ "Apache-2.0" ]
90
2015-06-29T19:26:58.000Z
2022-02-17T19:03:00.000Z
from django.apps import AppConfig class ServerAppConfig(AppConfig): name = "server"
15
33
0.755556
84d8775b5e77c58cdab44fd7c101178ed2205754
1,581
py
Python
Sort/14_ten_replaced_numbers_in_array.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Sort/14_ten_replaced_numbers_in_array.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Sort/14_ten_replaced_numbers_in_array.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# We are given an array with n (n >= 11) natural numbers in the range [0, k]. 10 numbers from this array # were replaced with random numbers outside this range (e.g. much greater or negative numbers). Find # algorithm that sorts the array in the O(n) time. from math import inf def insertion_sort(T): for i in rang...
26.79661
110
0.522454
c723ff7de45b63d5b8fce6cd150cbc308804788c
12,631
py
Python
CV_computer_vision_files/lambda_function.py
lineality/tensorflow_lite_in_aws_lambda_function
004d63a6e307c1bb6070b33bcf5472713febf7cc
[ "MIT" ]
null
null
null
CV_computer_vision_files/lambda_function.py
lineality/tensorflow_lite_in_aws_lambda_function
004d63a6e307c1bb6070b33bcf5472713febf7cc
[ "MIT" ]
null
null
null
CV_computer_vision_files/lambda_function.py
lineality/tensorflow_lite_in_aws_lambda_function
004d63a6e307c1bb6070b33bcf5472713febf7cc
[ "MIT" ]
null
null
null
# code for AWS-Lambda-function to deploy model.tflite in AWS # for CV computer vision, using PIL/Pillow for preprocessing """ # See: https://github.com/lineality/deploy_TFlite_tensorflow_lite_in_aws_lambda_function # To install the tensorflow lite runtime package follow official tensorfow docs: https://www.tensorflo...
25.312625
116
0.578339
eabde14f14acdeddea982d4718e13c3db8acd2a6
16,630
py
Python
huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/create_image_request_body.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class CreateImageRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the v...
29.226714
317
0.623391
2e20a54ed54873a3ba24825b4ee55f674661fdec
38,217
py
Python
Python/Structure/Building/BuildingGeneratorV_0_4/add_door.py
Perregrinne/Blend-of-things
b2bb1c122a21324d50a8b5337c142844739717c1
[ "MIT" ]
null
null
null
Python/Structure/Building/BuildingGeneratorV_0_4/add_door.py
Perregrinne/Blend-of-things
b2bb1c122a21324d50a8b5337c142844739717c1
[ "MIT" ]
null
null
null
Python/Structure/Building/BuildingGeneratorV_0_4/add_door.py
Perregrinne/Blend-of-things
b2bb1c122a21324d50a8b5337c142844739717c1
[ "MIT" ]
null
null
null
bl_info = { "name": "Door Generator", "description": "Generate doors and a boolean cutout", "author": "Austin Jacob", "version": (1, 0, 0), "blender": (2, 79, 0), "location": "View3D > Add > Mesh", "warning": "", # used for warning icon and text in addons panel "wiki_url": "", "track...
44.855634
153
0.3752
9ffd3248224554e4fcdbde46b76b6f8866c94e5e
6,726
py
Python
testCases/200325-smFinals/smAGCbase2.ltd.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
testCases/200325-smFinals/smAGCbase2.ltd.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
testCases/200325-smFinals/smAGCbase2.ltd.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
# LTD simulation models / perturbances # Attribute name case sensitive. # Commented and empty lines are ignored during parsing. # Double quoted variable names in model parameters also ignored CTRLtimeScale = 60*60 # ninutes # Perturbances mirror.sysPerturbances = [ # AGC steps #'gen 2 2 : step Pm 2 -150 rel',...
33.133005
75
0.462385
3e918677d155a868d64c61b537bedcb78bcce47a
43,757
py
Python
mlflow/projects/__init__.py
cestum/mlflow
c1b95a9c0021b1512a429bfe4bc75183bb0df9ef
[ "Apache-2.0" ]
null
null
null
mlflow/projects/__init__.py
cestum/mlflow
c1b95a9c0021b1512a429bfe4bc75183bb0df9ef
[ "Apache-2.0" ]
null
null
null
mlflow/projects/__init__.py
cestum/mlflow
c1b95a9c0021b1512a429bfe4bc75183bb0df9ef
[ "Apache-2.0" ]
null
null
null
""" The ``mlflow.projects`` module provides an API for running MLflow projects locally or remotely. """ from __future__ import print_function from distutils import dir_util import hashlib import json import yaml import os import sys import re import shutil from six.moves import urllib import subprocess import tempfil...
45.297101
100
0.678589
c1a73811329626b6966f9908741ec5b7a3e1e790
15,662
py
Python
cirq-google/cirq_google/serialization/op_deserializer_test.py
dabacon/Cirq
54286063f679d67501ff1b905cd16b879feaae27
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
cirq-google/cirq_google/serialization/op_deserializer_test.py
bradyb/Cirq
610b0d4ea3a7862169610797266734c844ddcc1f
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
cirq-google/cirq_google/serialization/op_deserializer_test.py
bradyb/Cirq
610b0d4ea3a7862169610797266734c844ddcc1f
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.292784
99
0.60452
57c69f3ec04ec723d218635d045965b273833a7f
8,961
py
Python
cinder/tests/unit/api/contrib/test_volume_manage.py
HybridF5/cinder
dbbe27f850b7a5ec8e614401442a28ee67bdad0c
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/api/contrib/test_volume_manage.py
HybridF5/cinder
dbbe27f850b7a5ec8e614401442a28ee67bdad0c
[ "Apache-2.0" ]
1
2021-03-21T11:38:29.000Z
2021-03-21T11:38:29.000Z
cinder/tests/unit/api/contrib/test_volume_manage.py
HybridF5/cinder
dbbe27f850b7a5ec8e614401442a28ee67bdad0c
[ "Apache-2.0" ]
1
2021-03-21T11:37:47.000Z
2021-03-21T11:37:47.000Z
# Copyright 2014 IBM Corp. # # 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...
39.650442
79
0.659971
9bd003f3b68839d1cdcf3e2e6f690745e2a11efb
2,334
py
Python
QAMAS/_build/jupyter_execute/Abstract.py
ebenjaminrandall/QAMAS_book
8a6b78fbf3564ce313380619900f2de5fcbe9035
[ "MIT" ]
1
2021-05-18T00:57:56.000Z
2021-05-18T00:57:56.000Z
QAMAS/_build/jupyter_execute/Abstract.py
ebenjaminrandall/QAMAS_book
8a6b78fbf3564ce313380619900f2de5fcbe9035
[ "MIT" ]
null
null
null
QAMAS/_build/jupyter_execute/Abstract.py
ebenjaminrandall/QAMAS_book
8a6b78fbf3564ce313380619900f2de5fcbe9035
[ "MIT" ]
1
2021-02-05T21:07:49.000Z
2021-02-05T21:07:49.000Z
#!/usr/bin/env python # coding: utf-8 # # Title Page # # ## Authors # # E. Benjamin Randall$^{1}$, Marcus Hock$^{2}$, Rachel Lopez$^{1}$, Bahador Marzban$^{1}$, Collin Marshall$^{1}$, Daniel A. Beard$^{1*}$ # # $^{1}$ *Department of Molecular and Integrative Physiology, University of Michigan, Ann Arbor, MI* # # $...
39.559322
1,046
0.74593
e1ef4888014a5e621f0436d3c0ac387b0d4df652
3,417
py
Python
scripts/costmap.py
JMU-CS354/move_base_354
bcbfe38c6aaa235d88b4a1483db84592362b9311
[ "BSD-2-Clause" ]
1
2021-12-14T15:42:31.000Z
2021-12-14T15:42:31.000Z
scripts/costmap.py
JMU-CS354/move_base_354
bcbfe38c6aaa235d88b4a1483db84592362b9311
[ "BSD-2-Clause" ]
null
null
null
scripts/costmap.py
JMU-CS354/move_base_354
bcbfe38c6aaa235d88b4a1483db84592362b9311
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """Node for generating a costmap for global planning. Subscribed Topics: map - (nav_msgs/OccupancyGrid) Standard ROS occupancy grid Published Topics: costmap - (nav_msgs/OccupancyGrid) Costmap cell values may be: -1 - unknown 100 - blocked 1-99 - cost to ...
32.855769
78
0.617793
74b7642069d3d964caaf90503651baf03cd404d8
7,058
py
Python
src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2017_10_01/models/_models_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2017_10_01/models/_models_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
src/application-insights/azext_applicationinsights/vendored_sdks/mgmt_applicationinsights/v2017_10_01/models/_models_py3.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.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 ...
36.760417
213
0.652026
4391d333c1f54ab5eb24c2e37b21dedd39be1947
4,997
py
Python
BaseTools/Source/Python/GenFds/DataSection.py
kokweich/slimbootloader
6fd1141c75a33894e3a7937dbc55859e4a6dacae
[ "BSD-2-Clause-NetBSD", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "MIT", "BSD-2-Clause-Patent" ]
9
2021-07-26T17:02:51.000Z
2021-12-30T10:49:46.000Z
BaseTools/Source/Python/GenFds/DataSection.py
kokweich/slimbootloader
6fd1141c75a33894e3a7937dbc55859e4a6dacae
[ "BSD-2-Clause-NetBSD", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "MIT", "BSD-2-Clause-Patent" ]
null
null
null
BaseTools/Source/Python/GenFds/DataSection.py
kokweich/slimbootloader
6fd1141c75a33894e3a7937dbc55859e4a6dacae
[ "BSD-2-Clause-NetBSD", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "MIT", "BSD-2-Clause-Patent" ]
null
null
null
## @file # process data section generation # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import from . import Section from .GenFdsGlobalVariable import GenFdsGlobalVariable import sub...
42.347458
149
0.638583
9d71d438b9ca1d48c2d321ace5be6b017ac88641
5,467
py
Python
lazyxml/parser.py
druagoon/lazyxml
b4cc363c565fe800219ebdf03cdfc47ae3cc16d7
[ "MIT" ]
7
2015-06-14T12:25:13.000Z
2020-04-23T23:12:02.000Z
lazyxml/parser.py
druagoon/lazyxml
b4cc363c565fe800219ebdf03cdfc47ae3cc16d7
[ "MIT" ]
1
2019-05-17T14:37:13.000Z
2020-11-18T17:26:55.000Z
lazyxml/parser.py
druagoon/lazyxml
b4cc363c565fe800219ebdf03cdfc47ae3cc16d7
[ "MIT" ]
11
2017-10-07T00:39:42.000Z
2021-02-25T09:04:53.000Z
# -*- coding: utf-8 -*- import collections try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET from . import utils from .consts import Default, Regex class Parser(object): """Simple xml parser """ def __init__(self, encoding=None, unescape=False, str...
32.349112
110
0.582404
12b9ce8fe2aac5d1dfd0383555bd3a87a347b91f
281
py
Python
example_package/logger/read_content.py
shadhini/py_pckg_tut
37f0dd9f093c4f088590adf64899f231f16dfc77
[ "MIT" ]
null
null
null
example_package/logger/read_content.py
shadhini/py_pckg_tut
37f0dd9f093c4f088590adf64899f231f16dfc77
[ "MIT" ]
null
null
null
example_package/logger/read_content.py
shadhini/py_pckg_tut
37f0dd9f093c4f088590adf64899f231f16dfc77
[ "MIT" ]
null
null
null
import logging import logging.config import yaml import pkgutil def read_content(): data = pkgutil.get_data(__name__, "logger_config.yaml") print("data:", repr(data)) text = pkgutil.get_data(__name__, "logger_config.yaml").decode() print("text:", repr(text))
17.5625
68
0.704626
ed021f9d38a5e5aca4e7819e52e90e75d7d6bcd9
4,365
py
Python
contrib/seeds/generate-seeds.py
UFO-ETL/ufo
e85dde0c8b12c1bf3357003afb77ea85b1476d6b
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
UFO-ETL/ufo
e85dde0c8b12c1bf3357003afb77ea85b1476d6b
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
UFO-ETL/ufo
e85dde0c8b12c1bf3357003afb77ea85b1476d6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.402878
99
0.582131
5e892ecc0aa86d3638f6129dca48b0af2b282daa
6,202
py
Python
simple_history/registry_tests/tests.py
YuriFarias741/django-simple-history
eb25a378927e01454f423776e01184593a7b0647
[ "BSD-3-Clause" ]
null
null
null
simple_history/registry_tests/tests.py
YuriFarias741/django-simple-history
eb25a378927e01454f423776e01184593a7b0647
[ "BSD-3-Clause" ]
null
null
null
simple_history/registry_tests/tests.py
YuriFarias741/django-simple-history
eb25a378927e01454f423776e01184593a7b0647
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import unittest import uuid from datetime import datetime, timedelta from django.apps import apps from django.contrib.auth import get_user_model from django.core import management from django.test import TestCase from io import StringIO from simple_history import exceptions, r...
35.849711
77
0.6406
2215c96973d198eb0af7ef9887326436aadc95c6
3,251
py
Python
optimade/client/cli.py
materialsproject/optimade
638f3fc9b203603141032a814e42bc23bec1bd87
[ "MIT" ]
null
null
null
optimade/client/cli.py
materialsproject/optimade
638f3fc9b203603141032a814e42bc23bec1bd87
[ "MIT" ]
null
null
null
optimade/client/cli.py
materialsproject/optimade
638f3fc9b203603141032a814e42bc23bec1bd87
[ "MIT" ]
null
null
null
import sys import json import pathlib import click import rich from optimade.client.client import OptimadeClient __all__ = ("_get",) @click.command("optimade-get") @click.option( "--filter", default=[""], help="Filter to apply to OPTIMADE API. Default is an empty filter.", multiple=True, ) @click.o...
23.388489
125
0.613657
3ddbe3da18760df9ba6ecaf3962eba18e92664a0
908
py
Python
Space_Invaders/classes/Game/Sprites/BaseObject.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
4
2020-05-15T11:17:09.000Z
2020-06-30T01:11:41.000Z
Space_Invaders/classes/Game/Sprites/BaseObject.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
10
2020-05-16T10:45:32.000Z
2020-07-27T07:17:02.000Z
Space_Invaders/classes/Game/Sprites/BaseObject.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
null
null
null
import pygame class BaseObject(pygame.sprite.Sprite): def __init__(self, initial_x: int, initial_y: int, debug: bool = False): """Constructor for the object class in the game""" # Store the coordinates self.x = initial_x self.y = initial_y self.initial_x = initial_x ...
25.942857
76
0.579295
0783139068be470d97d9688bc20052609d80cc8c
5,681
py
Python
sanic/static.py
cmcaine/sanic
076cf51fb295e7624968db766fd613aa3948289d
[ "MIT" ]
1
2018-08-30T06:30:11.000Z
2018-08-30T06:30:11.000Z
sanic/static.py
cmcaine/sanic
076cf51fb295e7624968db766fd613aa3948289d
[ "MIT" ]
1
2018-10-07T15:15:28.000Z
2018-10-07T15:15:28.000Z
sanic/static.py
cmcaine/sanic
076cf51fb295e7624968db766fd613aa3948289d
[ "MIT" ]
null
null
null
from mimetypes import guess_type from os import path from re import sub from time import strftime, gmtime from urllib.parse import unquote from aiofiles.os import stat from sanic.exceptions import ( ContentRangeError, FileNotFound, HeaderNotFound, InvalidUsage, ) from sanic.handlers import ContentRang...
44.03876
79
0.574195
3c90bf0520d823ac69c32754657e6046fc474a2e
3,684
py
Python
pychron/pipeline/editors/script_editor.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
null
null
null
pychron/pipeline/editors/script_editor.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/pipeline/editors/script_editor.py
UManPychron/pychron
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2019 ross # # 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/LICE...
36.84
108
0.595005
4a7088566e44fec7883be2e0f762dea7302a437d
2,168
py
Python
services/workshop/crapi/shop/tests.py
mathew-jose/crAPI
7b4b0a9ab32df65e2c11fb1cb1741845ef1fa882
[ "Apache-2.0" ]
null
null
null
services/workshop/crapi/shop/tests.py
mathew-jose/crAPI
7b4b0a9ab32df65e2c11fb1cb1741845ef1fa882
[ "Apache-2.0" ]
null
null
null
services/workshop/crapi/shop/tests.py
mathew-jose/crAPI
7b4b0a9ab32df65e2c11fb1cb1741845ef1fa882
[ "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 un...
36.133333
103
0.680812
b8c0333f4bfad8843030ee47e6c3570b0e7f1a36
3,975
py
Python
mmdnn/conversion/_script/extractModel.py
kmader/MMdnn
f62a33a7d6834680537693c7fdc7e90e1b2382ef
[ "MIT" ]
3,442
2017-11-20T08:39:51.000Z
2019-05-06T10:51:19.000Z
mmdnn/conversion/_script/extractModel.py
ocjosen/MMdnn
aa7e5bbce58afcd925781d56cab76ce1b8f6f6a3
[ "MIT" ]
430
2017-11-29T04:21:48.000Z
2019-05-06T05:37:37.000Z
mmdnn/conversion/_script/extractModel.py
ocjosen/MMdnn
aa7e5bbce58afcd925781d56cab76ce1b8f6f6a3
[ "MIT" ]
683
2017-11-20T08:50:34.000Z
2019-05-04T04:25:14.000Z
#---------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. #------------------------------------------------------------------...
31.299213
104
0.589937
d957b7a3ee5017257ab48e877537efe17e83c25c
2,224
py
Python
tests/test_distance.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
1
2020-02-29T17:05:06.000Z
2020-02-29T17:05:06.000Z
tests/test_distance.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
null
null
null
tests/test_distance.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
null
null
null
from repacolors.distance import * import random def eq(rgb1, rgb2): h1 = rgb2hex(rgb1, True) h2 = rgb2hex(rgb2, True) return h1 == h2 def test_distance_same(): for _ in range(100): c = RGBTuple(random.random(), random.random(), random.random()) assert distance(c, c) == 0 def test_...
32.231884
88
0.593076
4e5a27ce62156889e0e07c8f37e5eab32230fd24
26
py
Python
windmill/utils/__init__.py
bhavaniravi/windmill
0bae5c34652d8366f6fff08ff7879d24a76c91b5
[ "Apache-2.0" ]
1
2020-05-06T18:53:40.000Z
2020-05-06T18:53:40.000Z
windmill/utils/__init__.py
bhavaniravi/windmill
0bae5c34652d8366f6fff08ff7879d24a76c91b5
[ "Apache-2.0" ]
null
null
null
windmill/utils/__init__.py
bhavaniravi/windmill
0bae5c34652d8366f6fff08ff7879d24a76c91b5
[ "Apache-2.0" ]
null
null
null
from . import class_parser
26
26
0.846154
6a3eb176fa43002bdd9aec3a52d1c29b3d809f51
44,126
py
Python
src/MatchingProcessor_old.py
Charamba/Cross-Ratio-Arrays-Shape-Descriptor
b252814f54bb11c2519a1bd4d0be3f524faba901
[ "Unlicense" ]
2
2021-09-05T15:50:02.000Z
2022-01-05T03:10:50.000Z
src/MatchingProcessor_old.py
Charamba/Cross-Ratio-Arrays-Shape-Descriptor
b252814f54bb11c2519a1bd4d0be3f524faba901
[ "Unlicense" ]
null
null
null
src/MatchingProcessor_old.py
Charamba/Cross-Ratio-Arrays-Shape-Descriptor
b252814f54bb11c2519a1bd4d0be3f524faba901
[ "Unlicense" ]
null
null
null
from ShapeDescriptor import * from CrossFeature import * from DTW import * from DistanceMatchingMatrix import * from Pearson import * import itertools PEARSON_THRESHOLD = 0.0 CR5_DISTANCE_PERCENTUAL_TOL = 0.1 CR5_MATCHING_TOL = 0.65 def removeDuplicityVerticesMatching(verticesPairs, distances): verticesPairsDict = {...
35.471061
223
0.722567
927dc85c0a971df3dd42578929f8e613388cbab9
24,577
py
Python
tabnet/tabnet.py
zhenglinghan/tf-TabNet
185455b1eb4810f5c98f7712eaca7c93cb769e9d
[ "MIT" ]
2
2020-08-08T14:39:14.000Z
2020-09-12T11:08:56.000Z
tabnet/tabnet.py
zhenglinghan/tf-TabNet
185455b1eb4810f5c98f7712eaca7c93cb769e9d
[ "MIT" ]
null
null
null
tabnet/tabnet.py
zhenglinghan/tf-TabNet
185455b1eb4810f5c98f7712eaca7c93cb769e9d
[ "MIT" ]
null
null
null
import tensorflow as tf from tabnet.custom_objects import glu, sparsemax, GroupNormalization class TransformBlock(tf.keras.Model): def __init__(self, features, norm_type, momentum=0.9, groups=2, virtual_batch_size=None, **kwargs...
49.450704
125
0.629776
bf8bd542a57b3b4d3f225ceab81bad1a36daef8e
3,557
py
Python
qualifier/deploy/cohorte-home/repo/herald/transports/xmpp/directory.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
1
2017-03-04T14:37:15.000Z
2017-03-04T14:37:15.000Z
qualifier/deploy/cohorte-home/repo/herald/transports/xmpp/directory.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
4
2017-08-21T08:17:14.000Z
2018-03-02T13:51:43.000Z
qualifier/deploy/cohorte-home/repo/herald/transports/xmpp/directory.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -- Content-Encoding: UTF-8 -- """ Herald XMPP transport directory :author: Thomas Calmant :copyright: Copyright 2014, isandlaTech :license: Apache License 2.0 :version: 1.0.1 :status: Alpha .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); ...
26.744361
80
0.603317
1522ca25cfce2926cdc72c63a03561bf0cb63994
42,003
py
Python
include/scons/src/engine/SCons/Taskmaster.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
include/scons/src/engine/SCons/Taskmaster.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
include/scons/src/engine/SCons/Taskmaster.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
1
2019-06-12T20:30:04.000Z
2019-06-12T20:30:04.000Z
# # __COPYRIGHT__ # # 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, publish, # distribute, sublicen...
38.855689
115
0.587982
3828f70b7f5ae05655f477d9ebe2dd6dff1c08ee
1,315
py
Python
accounts/templatetags/avatar.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
accounts/templatetags/avatar.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
accounts/templatetags/avatar.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import hashlib from django.conf import settings from django.utils.html import escape from django_jinja import library from accounts.utils import generated_avatar from autoimagefield.utils import thumbnail GRAVATAR_URL_PREFIX = getattr(settings, "GRAVA...
27.978723
151
0.772624
d4b8178d1543edaf5fb9cd0a68ea5b917c93d09e
1,691
py
Python
fae2/abouts/urls.py
opena11y/oaa-fae2
3c5a54552e219f9c210b73b4ae6c6d71daf70605
[ "Apache-2.0" ]
39
2016-01-08T23:54:42.000Z
2021-11-03T17:35:54.000Z
fae2/abouts/urls.py
opena11y/oaa-fae2
3c5a54552e219f9c210b73b4ae6c6d71daf70605
[ "Apache-2.0" ]
66
2016-01-08T23:50:29.000Z
2021-06-10T17:28:07.000Z
fae2/abouts/urls.py
opena11y/oaa-fae2
3c5a54552e219f9c210b73b4ae6c6d71daf70605
[ "Apache-2.0" ]
19
2015-12-10T22:21:12.000Z
2020-05-01T06:39:34.000Z
""" Copyright 2014-2016 University of Illinois 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 writ...
35.978723
79
0.702543
3c075633d0c838fdb466244862fb59d2b5eaef5f
10,912
py
Python
general/mutils.py
achinta/CategoricalNF
d8717a037e8f13641e9d9a89abf66fba38e23f91
[ "MIT" ]
47
2020-06-20T10:00:39.000Z
2022-03-08T13:41:45.000Z
general/mutils.py
achinta/CategoricalNF
d8717a037e8f13641e9d9a89abf66fba38e23f91
[ "MIT" ]
1
2020-07-05T20:58:19.000Z
2020-09-08T12:45:29.000Z
general/mutils.py
achinta/CategoricalNF
d8717a037e8f13641e9d9a89abf66fba38e23f91
[ "MIT" ]
10
2020-07-05T17:18:40.000Z
2022-01-07T03:17:40.000Z
import torch import torch.nn as nn import argparse import random import numpy as np import datetime import os import sys import pickle from glob import glob sys.path.append("../") from general.radam import RAdam, AdamW PARAM_CONFIG_FILE = "param_config.pik" #################### ## OUTPUT CONTROL ## ##############...
35.894737
184
0.726815
09cc5dd62c7c8b77d3a708404e071797f9a82def
873
py
Python
iqfeed/__init__.py
dangerzone/iqfeed
296a35c0df97ccd97829425028178d04ba12259b
[ "Apache-2.0" ]
26
2016-07-06T07:16:15.000Z
2021-02-28T22:34:24.000Z
iqfeed/__init__.py
dangerzone/iqfeed
296a35c0df97ccd97829425028178d04ba12259b
[ "Apache-2.0" ]
2
2016-11-07T21:29:05.000Z
2020-01-18T05:36:21.000Z
iqfeed/__init__.py
dangerzone/iqfeed
296a35c0df97ccd97829425028178d04ba12259b
[ "Apache-2.0" ]
16
2016-07-13T04:13:05.000Z
2020-10-03T18:12:22.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.956522
62
0.767468
d972fcbaf3cac98c49e5d09857f1ec6ee7b0afd6
571
py
Python
Python/PythonCrashCourse2ndEdition/6-9_favoriteplaces.py
awakun/LearningPython
578f9290c8065df37ade49abe4b0ab4e6b35a1bd
[ "MIT" ]
null
null
null
Python/PythonCrashCourse2ndEdition/6-9_favoriteplaces.py
awakun/LearningPython
578f9290c8065df37ade49abe4b0ab4e6b35a1bd
[ "MIT" ]
null
null
null
Python/PythonCrashCourse2ndEdition/6-9_favoriteplaces.py
awakun/LearningPython
578f9290c8065df37ade49abe4b0ab4e6b35a1bd
[ "MIT" ]
null
null
null
favorite_places = { 'Dave': ['Seattle', 'Crystal Mountain'], 'Lizzy': 'Baltimore', 'Taylor': ['Philadelphia', 'Tokyo', 'San Francisco'] } for name, places in favorite_places.items(): # isinstance checks whether or not an object is of a certain type # doing this to see if places is a single string ...
38.066667
98
0.642732
ea979e89d228da33a6eb1ec60177f6d9a26d57ce
1,090
py
Python
01_Data Structures and Algorithms/15_filtering_sequence_elements.py
raghukrishnamoorthy/Python-Cookbook
d4547c05b8f0d21ebbcc06b3833d226156f993f0
[ "MIT" ]
null
null
null
01_Data Structures and Algorithms/15_filtering_sequence_elements.py
raghukrishnamoorthy/Python-Cookbook
d4547c05b8f0d21ebbcc06b3833d226156f993f0
[ "MIT" ]
null
null
null
01_Data Structures and Algorithms/15_filtering_sequence_elements.py
raghukrishnamoorthy/Python-Cookbook
d4547c05b8f0d21ebbcc06b3833d226156f993f0
[ "MIT" ]
null
null
null
# Filter a sequence using some criteria mylist = [1, 4, -5, 10, -7, 2, 3, -1] print([n for n in mylist if n < 2]) # If original sequence is large pos = (n for n in mylist if n < 2) for x in pos: print(x) # Use separate function when filter logic is complicated values = ['1', '2', '-3', '-', '4', 'N/A', '5'] ...
16.515152
56
0.62844
5afb329039665b806dab3851d99eb17c49c9f5fe
1,822
py
Python
tutorials/KNIX-General-Tutorial/resize/resize.py
JoshTDN03/knix
def52081509526529f9d772775ba6848cc022aea
[ "Apache-2.0" ]
167
2020-04-20T22:16:29.000Z
2022-03-15T22:53:43.000Z
tutorials/KNIX-General-Tutorial/resize/resize.py
JoshTDN03/knix
def52081509526529f9d772775ba6848cc022aea
[ "Apache-2.0" ]
98
2020-05-07T03:34:44.000Z
2022-01-04T21:30:49.000Z
tutorials/KNIX-General-Tutorial/resize/resize.py
JoshTDN03/knix
def52081509526529f9d772775ba6848cc022aea
[ "Apache-2.0" ]
20
2020-04-29T14:45:29.000Z
2021-09-26T09:51:04.000Z
# Copyright 2020 The KNIX 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 agree...
39.608696
114
0.67124
807d66d239467aaeed76b87a8b02b80fc0db4eca
1,578
py
Python
app/modules/notice_content/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
16
2020-03-26T13:21:15.000Z
2021-07-25T18:49:05.000Z
app/modules/notice_content/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
13
2020-03-24T18:19:48.000Z
2022-03-12T00:18:59.000Z
app/modules/notice_content/model.py
DsCodeStudio98m0f/DTia-Nugrahab
218ef140727849206fe76f42f43a5a231cfda9d9
[ "Apache-2.0" ]
14
2020-03-31T01:02:38.000Z
2021-09-17T01:10:36.000Z
""" Notice Content database models PROJECT: BaoAI Backend AUTHOR: henry <703264459@qq.com> WEBSITE: http://www.baoai.co COPYRIGHT: Copyright © 2016-2020 广州源宝网络有限公司 Guangzhou Yuanbao Network Co., Ltd. ( http://www.ybao.org ) LICENSE: Apache-2.0 CREATEDATE: 2019-11-30 02:22:26 """ from app import db from sqlalchemy.sch...
35.863636
104
0.65526
5dea14955655da3660d9ef8ba7b6e7ff22532ff0
598
py
Python
speechclas/data_utils.py
deephdc/speech-to-text-tf
e4269aad722efafa2cfa3174e335da6ecd36c4e5
[ "Apache-2.0" ]
1
2020-02-03T16:55:25.000Z
2020-02-03T16:55:25.000Z
speechclas/data_utils.py
deephdc/speech-to-text-tf
e4269aad722efafa2cfa3174e335da6ecd36c4e5
[ "Apache-2.0" ]
null
null
null
speechclas/data_utils.py
deephdc/speech-to-text-tf
e4269aad722efafa2cfa3174e335da6ecd36c4e5
[ "Apache-2.0" ]
1
2019-07-31T12:51:25.000Z
2019-07-31T12:51:25.000Z
""" Miscellaneous functions manage data. Date: September 2018 Author: Ignacio Heredia Email: iheredia@ifca.unican.es Github: ignacioheredia """ import subprocess import warnings def mount_nextcloud(frompath, topath): """ Mount a NextCloud folder in your local machine or viceversa. """ command = (['r...
23
86
0.714047
bcbb3b7498ce310675eca04be0dd27fc40521a23
4,305
py
Python
model.py
neilsonxia/chineseocr
269360773e8100a84bbbcc6f773d2a00a540a691
[ "MIT" ]
null
null
null
model.py
neilsonxia/chineseocr
269360773e8100a84bbbcc6f773d2a00a540a691
[ "MIT" ]
null
null
null
model.py
neilsonxia/chineseocr
269360773e8100a84bbbcc6f773d2a00a540a691
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import cv2 import numpy as np from PIL import Image from glob import glob from crnn.crnn import crnnOcr as crnnOcr from text.detector.detectors import TextDetector from apphelper.image import get_boxes,letterbox_image from config import opencvFlag,GPU,IMGSIZE from text.opencv_dnn_de...
30.531915
114
0.601626
f10e0fc75d7e3b8f9112326e72881f81b392c614
14,559
py
Python
homeassistant/components/recorder/__init__.py
spacesuitdiver/home-assistant
9ce4755f8ae18309dd28910ee7ff519fc90d46f1
[ "Apache-2.0" ]
2
2019-02-22T06:44:24.000Z
2019-02-22T10:58:16.000Z
homeassistant/components/recorder/__init__.py
spacesuitdiver/home-assistant
9ce4755f8ae18309dd28910ee7ff519fc90d46f1
[ "Apache-2.0" ]
null
null
null
homeassistant/components/recorder/__init__.py
spacesuitdiver/home-assistant
9ce4755f8ae18309dd28910ee7ff519fc90d46f1
[ "Apache-2.0" ]
1
2019-02-07T11:50:04.000Z
2019-02-07T11:50:04.000Z
""" Support for recording details. Component that records all events and state changes. Allows other components to query this database. For more details about this component, please refer to the documentation at https://home-assistant.io/components/recorder/ """ import asyncio from collections import namedtuple impor...
34.913669
79
0.611168
f01098d0ef900733c6c7fa7b4d2f54b2946d03a5
1,227
py
Python
stubs/micropython-v1_18-esp32/onewire.py
open-lv/air-pilot
6e5a5f1abf4cd230812665ea0353425a439bbbd6
[ "MIT" ]
5
2021-09-23T14:10:06.000Z
2022-02-14T12:36:23.000Z
stubs/micropython-v1_18-esp32/onewire.py
open-lv/air-pilot
6e5a5f1abf4cd230812665ea0353425a439bbbd6
[ "MIT" ]
25
2021-09-23T12:08:55.000Z
2022-03-20T14:51:03.000Z
stubs/micropython-v1_18-esp32/onewire.py
open-lv/air-pilot
6e5a5f1abf4cd230812665ea0353425a439bbbd6
[ "MIT" ]
2
2021-09-23T11:40:26.000Z
2021-12-20T21:01:03.000Z
""" Module: 'onewire' on micropython-v1.18-esp32 """ # MCU: {'ver': 'v1.18', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.18.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.18.0', 'machine': 'ESP32 module (spiram) with ESP32', 'build': '', 'nodename': 'esp32', 'platform': 'esp32', 'fam...
23.150943
287
0.509372
1f23ddc532e0a1b8394c1e3bd9927a92d06cba5f
40,116
py
Python
federatedml/tree/hetero/hetero_decision_tree_guest.py
chenwanqq/FATE
d7aafe6ce5faba0e70ba6bffc2d1fcfe22ba1329
[ "Apache-2.0" ]
1
2021-06-14T02:13:50.000Z
2021-06-14T02:13:50.000Z
federatedml/tree/hetero/hetero_decision_tree_guest.py
chenwanqq/FATE
d7aafe6ce5faba0e70ba6bffc2d1fcfe22ba1329
[ "Apache-2.0" ]
9
2020-11-13T18:59:35.000Z
2022-02-10T02:13:58.000Z
federatedml/tree/hetero/hetero_decision_tree_guest.py
UnreliableBuilder/Fate
10fca2e0aad8d29efa5302be77841d2f155b3185
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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.or...
48.449275
122
0.56541
45ffca98fc0060786042051e93f5594abba7b8a7
2,234
py
Python
gym-foo/test_agent.py
hieunq95/keras-rl
d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5
[ "MIT" ]
null
null
null
gym-foo/test_agent.py
hieunq95/keras-rl
d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5
[ "MIT" ]
null
null
null
gym-foo/test_agent.py
hieunq95/keras-rl
d965ea951220b5ede5ea1e11fab7d7eb45a8c2c5
[ "MIT" ]
null
null
null
# From dqn_cartpole.py import numpy as np import gym import pylab import xlsxwriter from keras.models import Sequential from keras.layers import Dense, Activation, Flatten from keras.optimizers import Adam from rl.agents.dqn import DQNAgent from rl.policy import BoltzmannQPolicy, GreedyQPolicy, EpsGreedyQPolicy from...
32.852941
101
0.772605
71a78c76ae5b0dfb53ce28929bd83664fdb1e6d3
2,554
py
Python
twitch_project/facebook_users/views.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
twitch_project/facebook_users/views.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
twitch_project/facebook_users/views.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from .tasks import fetch_members_from_group, fetch_facebook_page_fans import urllib2 import json # Create your views here. APP_ID = '818991478245556' APP_SECRET = '2579d3f1a38b7f0ab5ea9d8c8c4bdfa5' VERSION = '2.6' REDIRECT_U...
34.513514
182
0.727878
382a9aa33000f6cd741ca16ad8c61716b72e3a18
2,414
py
Python
pushservice/src/Controller/ListDir.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
1
2020-01-27T22:53:56.000Z
2020-01-27T22:53:56.000Z
pushservice/src/Controller/ListDir.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
pushservice/src/Controller/ListDir.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
####################################################################### # # Push Service for Enigma-2 # Coded by betonme (c) 2012 <glaserfrank(at)gmail.com> # Support: http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=167779 # # This program is free software; you can redistribute it and/or # modi...
36.029851
140
0.594035
af159253f4d4e9b8392e7ff0619cad59a7effa21
28,482
py
Python
parcels/grid.py
CKehl/parcels
6e4d6a10157a9d1a7935b08f35808b874a1cdf58
[ "MIT" ]
1
2020-03-20T10:22:21.000Z
2020-03-20T10:22:21.000Z
parcels/grid.py
CKehl/parcels
6e4d6a10157a9d1a7935b08f35808b874a1cdf58
[ "MIT" ]
null
null
null
parcels/grid.py
CKehl/parcels
6e4d6a10157a9d1a7935b08f35808b874a1cdf58
[ "MIT" ]
null
null
null
import functools import sys from ctypes import c_double from ctypes import c_float from ctypes import c_int from ctypes import c_void_p from ctypes import cast from ctypes import POINTER from ctypes import pointer from ctypes import Structure from enum import IntEnum import numpy as np import dask.array as da #from me...
56.964
307
0.606699
44b0be72012ad69af3148f6dd108e863d031a465
1,209
py
Python
portia_server/portia_server/models.py
hackrush01/portia
c7414034361fecada76e1693666674c274b0421a
[ "BSD-3-Clause" ]
223
2018-01-22T07:43:58.000Z
2022-03-25T12:52:30.000Z
portia_server/portia_server/models.py
hackrush01/portia
c7414034361fecada76e1693666674c274b0421a
[ "BSD-3-Clause" ]
9
2018-03-17T15:16:26.000Z
2019-11-11T09:35:04.000Z
portia_server/portia_server/models.py
hackrush01/portia
c7414034361fecada76e1693666674c274b0421a
[ "BSD-3-Clause" ]
76
2018-01-22T04:20:00.000Z
2021-11-13T09:53:26.000Z
from __future__ import unicode_literals import getpass import socket from django.db.models.fields import CharField from django.contrib.auth.models import AnonymousUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class LocalUser(AnonymousUser): is_active = True ...
24.673469
76
0.674938
af77c1ced92284bcf3a87356613dbdf0f30ab59d
160
py
Python
backend/auth0login/apps.py
webclinic017/WallStreetBots
f4f73539b080ce7667b52ee8195919ec4e7b79b8
[ "MIT" ]
4
2021-11-12T02:04:30.000Z
2022-01-03T22:56:41.000Z
backend/auth0login/apps.py
webclinic017/WallStreetBots
f4f73539b080ce7667b52ee8195919ec4e7b79b8
[ "MIT" ]
5
2021-11-11T20:48:34.000Z
2022-03-12T18:08:40.000Z
backend/auth0login/apps.py
webclinic017/WallStreetBots
f4f73539b080ce7667b52ee8195919ec4e7b79b8
[ "MIT" ]
2
2021-11-15T14:23:36.000Z
2021-11-27T19:44:38.000Z
from django.apps import AppConfig class Auth0LoginConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'backend.auth0login'
22.857143
56
0.775
2cace4a8f9bcb7c4f5c5716dd16b609fb8396337
5,375
py
Python
simsapa/layouts/memo_dialog.py
ilius/simsapa
b6c46cb6cba39557f665c0aaf63b84659dd983b8
[ "MIT" ]
null
null
null
simsapa/layouts/memo_dialog.py
ilius/simsapa
b6c46cb6cba39557f665c0aaf63b84659dd983b8
[ "MIT" ]
null
null
null
simsapa/layouts/memo_dialog.py
ilius/simsapa
b6c46cb6cba39557f665c0aaf63b84659dd983b8
[ "MIT" ]
null
null
null
import logging as _logging import json from PyQt5.QtCore import pyqtSignal, QItemSelectionModel from PyQt5.QtWidgets import (QHBoxLayout, QDialog, QPushButton, QPlainTextEdit, QFormLayout) from sqlalchemy.sql import func # from ..app.db import appdata_models as Am from ..app.db import userdata_models as Um logger =...
28.590426
92
0.589395