hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9efc1957f0fc7da7a5b8a6514e6a3952d897b553
102,328
py
Python
biosteam/_system.py
yoelcortes/biosteam
8d90788f87efb3b23428387d79097817962cad97
[ "MIT" ]
29
2019-03-01T04:47:43.000Z
2020-02-23T01:34:40.000Z
biosteam/_system.py
yoelcortes/biosteam
8d90788f87efb3b23428387d79097817962cad97
[ "MIT" ]
15
2019-11-01T13:57:50.000Z
2020-02-28T06:40:46.000Z
biosteam/_system.py
yoelcortes/biosteam
8d90788f87efb3b23428387d79097817962cad97
[ "MIT" ]
4
2019-06-05T15:39:04.000Z
2020-01-08T20:42:04.000Z
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020-2022, Yoel Cortes-Pena <yoelcortes@gmail.com>, # Joy Zhang <joycheung1994@gmail.com>, # Yalin Li <mailto.yalin.li@gmail.com> # ...
38.167848
161
0.595604
9efc255fbbdca2dbc245bb2cdd17f62699bce40f
17,039
py
Python
NBA Project/venv/Lib/site-packages/plotly/figure_factory/_trisurf.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2019-11-08T07:01:11.000Z
2019-11-17T10:10:49.000Z
NBA Project/venv/Lib/site-packages/plotly/figure_factory/_trisurf.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
NBA Project/venv/Lib/site-packages/plotly/figure_factory/_trisurf.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from __future__ import absolute_import from plotly import exceptions, optional_imports import plotly.colors as clrs from plotly.graph_objs import graph_objs np = optional_imports.get_module("numpy") def map_face2color(face, colormap, scale, vmin, vmax): """ Normalize facecolor values by vmin/vmax and return...
32.028195
82
0.602031
9efc3f309561f832a843dbf9389576ee4f9579c5
25,540
py
Python
src/ralph_scrooge/plugins/cost/pricing_service.py
kula1922/ralph_pricing
3887ff7a900f10a7630f451dd39f86da829ce3da
[ "Apache-2.0" ]
null
null
null
src/ralph_scrooge/plugins/cost/pricing_service.py
kula1922/ralph_pricing
3887ff7a900f10a7630f451dd39f86da829ce3da
[ "Apache-2.0" ]
null
null
null
src/ralph_scrooge/plugins/cost/pricing_service.py
kula1922/ralph_pricing
3887ff7a900f10a7630f451dd39f86da829ce3da
[ "Apache-2.0" ]
1
2021-11-15T21:21:17.000Z
2021-11-15T21:21:17.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import itertools from collections import defaultdict from decimal import Decimal as D from django.conf import settings from djang...
36.433666
79
0.550979
9efc67713d348351f06c2b943ce4d88e4410a9c7
2,561
py
Python
src/day_19.py
vonas/adventofcode
0c9e4920243c37c4b143e01fe5bd4f78834b4e51
[ "MIT" ]
null
null
null
src/day_19.py
vonas/adventofcode
0c9e4920243c37c4b143e01fe5bd4f78834b4e51
[ "MIT" ]
null
null
null
src/day_19.py
vonas/adventofcode
0c9e4920243c37c4b143e01fe5bd4f78834b4e51
[ "MIT" ]
1
2020-12-12T01:11:08.000Z
2020-12-12T01:11:08.000Z
from collections import defaultdict, deque from copy import copy, deepcopy import re from lib.input import read_lines input = read_lines(19) FRULE = '#{}_' FIRST_RULE = 0 def parse_rules(lines): rules = {} for line in lines: if not line: break rule, replace = line.split(':') involved = re...
21.165289
62
0.657946
9efc6db88623d698a8855258e30cd7d45185ab3d
3,016
py
Python
1_code/skill_card/card_funcs.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/skill_card/card_funcs.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/skill_card/card_funcs.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
"""/** * @author [Jai Miles] * @email [jaimiles23@gmail.com] * @create date 2020-05-04 16:26:07 * @modify date 2020-05-04 16:26:07 * @desc [ Card Funcs to clean simple card: - get card title - clean card text - format prompt to the user. ] */ """ ########## # Imports ########## import re from as...
26
78
0.605106
9efcd06ce8a13e81048cf0b48bb36f9bb83490b7
1,829
py
Python
tests/test_flask/test_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
86
2017-08-17T12:41:52.000Z
2022-02-24T12:17:47.000Z
tests/test_flask/test_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
10
2020-03-30T03:24:46.000Z
2022-02-23T01:34:53.000Z
tests/test_flask/test_filter.py
Eastwu5788/pre-request
6e51076ef9260d5fcf56dc513ad0240f04ce4938
[ "MIT" ]
7
2017-08-18T03:40:35.000Z
2020-05-19T04:09:10.000Z
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2020 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-04-09 15:31' # 3p from flask import Flask from pre_request import pre, Rule from pre_request import BaseFilter from pre_request import ParamsValueError class CustomF...
22.304878
89
0.605796
9efceba1c085a4d3d3dc2824002a5e67a5ded626
1,693
py
Python
python_modules/dagster/dagster/core/definitions/target.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/target.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/target.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from typing import List, NamedTuple, Optional, Union from dagster import check from .graph_definition import GraphDefinition from .pipeline_definition import PipelineDefinition class RepoRelativeTarget(NamedTuple): """ The thing to be executed by a schedule or sensor, selecting by name a pipeline in the sam...
28.216667
106
0.661548
9efcf22f590b58e2703533a27648b9cee221b2ee
1,112
py
Python
src/smjsindustry/finance/__init__.py
jsspric/sagemaker-jumpstart-industry-pack
1cbaeb859d109022c94c2fd60531b5a32efc52bf
[ "Apache-2.0" ]
4
2021-09-29T00:39:38.000Z
2022-02-03T01:27:03.000Z
src/smjsindustry/finance/__init__.py
jsspric/sagemaker-jumpstart-industry-pack
1cbaeb859d109022c94c2fd60531b5a32efc52bf
[ "Apache-2.0" ]
6
2021-09-29T00:07:38.000Z
2022-02-16T21:45:33.000Z
src/smjsindustry/finance/__init__.py
jsspric/sagemaker-jumpstart-industry-pack
1cbaeb859d109022c94c2fd60531b5a32efc52bf
[ "Apache-2.0" ]
4
2021-09-29T21:00:33.000Z
2022-03-16T18:34:39.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
35.870968
97
0.767986
9efd03f6d6a68ab4839f0f9c68d37707a25eccc9
592
py
Python
webpage/forms.py
gfranzini/dig_ed_cat
5f1a64109010e5366d28d0639f088a2e895c3488
[ "MIT" ]
null
null
null
webpage/forms.py
gfranzini/dig_ed_cat
5f1a64109010e5366d28d0639f088a2e895c3488
[ "MIT" ]
10
2021-02-02T23:12:07.000Z
2021-12-13T20:50:47.000Z
webpage/forms.py
gfranzini/dig_ed_cat
5f1a64109010e5366d28d0639f088a2e895c3488
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from django.urls import reverse from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, Div class form_user_login(forms.Form): username = forms.CharField(label='Username'...
37
75
0.775338
9efd11c5ff0b8fa845214f37447092d34392a312
3,355
py
Python
v0.90/dc/utils/folders.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.90/dc/utils/folders.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.90/dc/utils/folders.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import os from dc.utils.commun import Commun class Folders: """Creation/manipulation of folders for this app""" cwd = os.getcwd() com = Commun() def create_needed_dirs(self): """Create the working directories if doesn't exist""" root_path = os.path.join(self.cwd, 'DC BA...
40.421687
190
0.54307
9efd1b77397dc3ebb39b24f19aea8c0be22918ce
8,871
py
Python
astronomaly/anomaly_detection/human_loop_learning.py
nmcardoso/astronomaly
28c6a7ced2e1553de463a74fc3a19635e45ae548
[ "BSD-3-Clause" ]
48
2019-11-22T14:41:59.000Z
2022-03-23T01:48:59.000Z
astronomaly/anomaly_detection/human_loop_learning.py
nmcardoso/astronomaly
28c6a7ced2e1553de463a74fc3a19635e45ae548
[ "BSD-3-Clause" ]
12
2021-02-23T15:35:29.000Z
2022-01-26T09:48:35.000Z
astronomaly/anomaly_detection/human_loop_learning.py
nmcardoso/astronomaly
28c6a7ced2e1553de463a74fc3a19635e45ae548
[ "BSD-3-Clause" ]
6
2019-11-27T10:02:43.000Z
2021-10-11T02:18:06.000Z
from astronomaly.base.base_pipeline import PipelineStage from astronomaly.base import logging_tools from sklearn.ensemble import RandomForestRegressor import numpy as np import pandas as pd from scipy.spatial import cKDTree class ScoreConverter(PipelineStage): def __init__(self, lower_is_weirder=True, new_min=0, ...
37.748936
80
0.6147
9efd1ce9f3546eb6b6abdf38293d01e1910f597e
5,562
py
Python
tests/common/test_run/ascend/strided_slice_grad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/strided_slice_grad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/strided_slice_grad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 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...
57.340206
127
0.650485
9efd4b89404774e35eb8311acb7ee760ce3cc258
918
py
Python
formish/tests/testish/testish/lib/test_func.py
zvoase/formish
6eb47ea310d1c2137d0717be61c000618f3d112d
[ "BSD-3-Clause" ]
1
2016-05-08T22:54:48.000Z
2016-05-08T22:54:48.000Z
formish/tests/testish/testish/lib/test_func.py
zvoase/formish
6eb47ea310d1c2137d0717be61c000618f3d112d
[ "BSD-3-Clause" ]
null
null
null
formish/tests/testish/testish/lib/test_func.py
zvoase/formish
6eb47ea310d1c2137d0717be61c000618f3d112d
[ "BSD-3-Clause" ]
null
null
null
from testish.lib.base import TestCase from testish.lib import forms class TestTogether(TestCase): """ Run all tests in a single browser session. """ def test_func(self): sel = self.selenium for attr in dir(forms): if attr.startswith('functest_'): getattr(fo...
25.5
79
0.66122
9efd5d3c8d469bcd3cc938f9ddbe0836d7effd90
814
py
Python
avwx_api/views.py
lucasbstn/avwx-api
1f638dde328e57f80a11466034c6e027d0f25557
[ "MIT" ]
null
null
null
avwx_api/views.py
lucasbstn/avwx-api
1f638dde328e57f80a11466034c6e027d0f25557
[ "MIT" ]
null
null
null
avwx_api/views.py
lucasbstn/avwx-api
1f638dde328e57f80a11466034c6e027d0f25557
[ "MIT" ]
null
null
null
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the Quart application """ # pylint: disable=W0702 # library from quart import Response, jsonify, request # module from avwx_api import app # Static Web Pages @app.route("/weather/") @app.route("/weather/home") async def home() -> Respo...
18.5
59
0.660934
9efd63976d6b90983df673195753943abbc83346
630
py
Python
examples/plot_read_noise_covariance_matrix.py
mluessi/mne-python
aef0cd79b0543c6d121de236098bd7865feff39e
[ "BSD-3-Clause" ]
1
2022-03-23T22:26:50.000Z
2022-03-23T22:26:50.000Z
examples/plot_read_noise_covariance_matrix.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
examples/plot_read_noise_covariance_matrix.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
""" ========================================= Reading/Writing a noise covariance matrix ========================================= """ # Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # # License: BSD (3-clause) print __doc__ import mne from mne.datasets import sample data_path = sample.data_path('.') fnam...
23.333333
79
0.546032
9efd953f8a063ba6b81b8ab431e84c223d768fea
448
py
Python
WQFM/scripts/various-feature-computers/script.py
sharmin-mim/wQFM-2020
92cbab0a6f4876fb30758991aacc686b2c54058c
[ "Apache-2.0" ]
10
2020-09-12T19:50:47.000Z
2022-03-21T15:04:28.000Z
WQFM/scripts/various-feature-computers/script.py
sharmin-mim/wQFM-2020
92cbab0a6f4876fb30758991aacc686b2c54058c
[ "Apache-2.0" ]
2
2021-06-11T15:14:13.000Z
2022-03-29T12:19:00.000Z
WQFM/scripts/various-feature-computers/script.py
sharmin-mim/wQFM-2020
92cbab0a6f4876fb30758991aacc686b2c54058c
[ "Apache-2.0" ]
2
2021-06-06T13:46:03.000Z
2021-11-12T20:58:15.000Z
# def create_bins(lower_bound, upper_bound, num_values): def create_bins(lower_bound=0.5, upper_bound=1.0, step_size=0.05): bins = [] val = lower_bound while val < upper_bound: val_lower_3dp = '%.3f'%(val) val += step_size val_higher_3dp = '%.3f'%(val) _bin = (val_lower_3dp,...
24.888889
66
0.633929
9efda9a384ef89059147ba18a31d0846ebb4f1c7
3,471
py
Python
st2api/tests/unit/controllers/exp/test_action_alias.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2api/tests/unit/controllers/exp/test_action_alias.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2api/tests/unit/controllers/exp/test_action_alias.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
39.896552
99
0.679631
9efde73fc626dc28adebf1f3be2e0e0853446393
1,523
py
Python
oftalmosonline/events/management/commands/create_events.py
yupeekiyay/ofta365
1a48620fe6455eb80e673d15406950c8fa26755c
[ "MIT" ]
null
null
null
oftalmosonline/events/management/commands/create_events.py
yupeekiyay/ofta365
1a48620fe6455eb80e673d15406950c8fa26755c
[ "MIT" ]
null
null
null
oftalmosonline/events/management/commands/create_events.py
yupeekiyay/ofta365
1a48620fe6455eb80e673d15406950c8fa26755c
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from csv import DictReader from oftalmosonline.events.models import Event from oftalmosonline.users.models import User class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('file_name', type=str) parser.add_argument('aut...
37.146341
53
0.533158
9efdf3283de2c5a0ba369d0ba6af3b5d7f8d8978
4,909
py
Python
test/acceptance/integration/e2e/test_chef_puppet_on_base_images/terrain.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/integration/e2e/test_chef_puppet_on_base_images/terrain.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/integration/e2e/test_chef_puppet_on_base_images/terrain.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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: # # h...
40.570248
106
0.661031
9efdff6085bf80264e045c958790fae3921d2608
1,435
py
Python
cms/plugins/snippet/models.py
pbs/django-cms
f230e63f98fafb75beb3956328021f8976564c96
[ "BSD-3-Clause" ]
null
null
null
cms/plugins/snippet/models.py
pbs/django-cms
f230e63f98fafb75beb3956328021f8976564c96
[ "BSD-3-Clause" ]
9
2015-06-25T10:31:12.000Z
2022-03-12T00:41:22.000Z
cms/plugins/snippet/models.py
pbs/django-cms
f230e63f98fafb75beb3956328021f8976564c96
[ "BSD-3-Clause" ]
1
2017-08-22T07:00:30.000Z
2017-08-22T07:00:30.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models import CMSPlugin from cms.utils.helpers import reversion_register # Stores the actual data class Snippet(models.Model): """ A snippet of HTML or a Django template """ name = models.CharField(_("name"),...
31.888889
131
0.680139
9efe2d47c4de9afe075f9a7b74146be50ae70ccc
37,822
py
Python
custodian/custodian.py
acrutt/custodian
4d7cfecef0957bc8c2a6ec0cd24dd5855a6e7408
[ "MIT" ]
null
null
null
custodian/custodian.py
acrutt/custodian
4d7cfecef0957bc8c2a6ec0cd24dd5855a6e7408
[ "MIT" ]
null
null
null
custodian/custodian.py
acrutt/custodian
4d7cfecef0957bc8c2a6ec0cd24dd5855a6e7408
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, division import logging import subprocess import sys import datetime import time from glob import glob import tarfile import os from abc import ABCMeta, abstractmethod from itertools import islice import warnings from ast import literal_eval from .utils import...
39.275182
103
0.576437
9efe61967e3745d15ec70a8705e89afd76094a17
9,756
py
Python
eval_ofa_net_sr.py
twice154/ofa-pytorch
cc3b4e129c7e92f7a16eb669db24aac120be1431
[ "Apache-2.0" ]
9
2021-07-27T06:20:37.000Z
2022-03-02T11:47:14.000Z
eval_ofa_net_sr.py
twice154/ofa-pytorch
cc3b4e129c7e92f7a16eb669db24aac120be1431
[ "Apache-2.0" ]
2
2021-07-27T06:21:24.000Z
2021-09-22T19:23:07.000Z
eval_ofa_net_sr.py
twice154/ofa-pytorch
cc3b4e129c7e92f7a16eb669db24aac120be1431
[ "Apache-2.0" ]
4
2021-07-27T06:20:29.000Z
2022-03-08T09:55:47.000Z
# Once for All: Train One Network and Specialize it for Efficient Deployment # Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song Han # International Conference on Learning Representations (ICLR), 2020. import argparse import numpy as np import os import random # import horovod.torch as hvd import torch from ofa....
38.868526
146
0.673022
9efe78df9e5886c6225e7f75b28d757c3a278bf9
28,829
py
Python
lingua_franca/lang/parse_sv.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
lingua_franca/lang/parse_sv.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
lingua_franca/lang/parse_sv.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Mycroft AI 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...
37.10296
79
0.410732
9efe830ee0bf134ec127793df9c833745f716cc6
1,490
py
Python
physiossl/backbone/mlp.py
larryshaw0079/PhysioLearn
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
2
2021-12-11T15:17:47.000Z
2021-12-27T07:39:31.000Z
physiossl/backbone/mlp.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
physiossl/backbone/mlp.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
""" @Time : 2021/10/8 11:05 @File : mlp.py @Software: PyCharm @Desc : """ from typing import Union, List import torch.nn as nn class MLP(nn.Module): def __init__(self, feature_dim: int, num_class: int, hidden_dim: Union[int, List[int]] = None, num_layers: int = 2, norm: bool = False, d...
28.113208
119
0.518792
9efe9abd4a59343f2e2d47cea350efbecbcfbbbe
44,360
py
Python
tests/tests_py/test_global_module.py
linkedin/forthic
e2df9f925e1d1d66e3d85a54af941af8f490064e
[ "BSD-2-Clause" ]
6
2021-08-18T19:14:09.000Z
2022-02-20T05:43:46.000Z
tests/tests_py/test_global_module.py
linkedin/forthic
e2df9f925e1d1d66e3d85a54af941af8f490064e
[ "BSD-2-Clause" ]
1
2021-11-25T05:08:28.000Z
2021-12-01T15:41:21.000Z
tests/tests_py/test_global_module.py
linkedin/forthic
e2df9f925e1d1d66e3d85a54af941af8f490064e
[ "BSD-2-Clause" ]
1
2021-11-25T05:03:53.000Z
2021-11-25T05:03:53.000Z
import unittest import datetime import pytz from forthic.interpreter import Interpreter from forthic.tokenizer import DLE from forthic.global_module import GlobalModuleError class TestGlobalModule(unittest.TestCase): def test_literal(self): interp = Interpreter() interp.run("TRUE FALSE 2 3.14 2020...
29.416446
110
0.511452
9efeaf9c5fd64f2fe278c1bbd30a2189ae7ae6ab
1,444
py
Python
moody/bridge/common.py
tokenchain/moodyeth
e5a40ffe411fc4dc767ba8a279c1fd7c002dc975
[ "MIT" ]
null
null
null
moody/bridge/common.py
tokenchain/moodyeth
e5a40ffe411fc4dc767ba8a279c1fd7c002dc975
[ "MIT" ]
null
null
null
moody/bridge/common.py
tokenchain/moodyeth
e5a40ffe411fc4dc767ba8a279c1fd7c002dc975
[ "MIT" ]
null
null
null
import sys from collections import namedtuple from contextlib import contextmanager from dataclasses import dataclass from os import remove from pathlib import Path from tempfile import NamedTemporaryFile from typing import List, Generator swap_retry_address = '0x00000000000000000000000000000000deadbeef' @contextman...
22.920635
85
0.689058
9efecb3609b363c9312b0892a24aede68a60d421
426
py
Python
examples/nD_surface.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
1
2022-03-01T19:38:06.000Z
2022-03-01T19:38:06.000Z
examples/nD_surface.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
17
2020-06-11T21:02:03.000Z
2021-02-02T19:10:19.000Z
examples/nD_surface.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
1
2020-07-19T18:03:35.000Z
2020-07-19T18:03:35.000Z
""" Display a 3D surface """ import numpy as np from skimage import data import napari with napari.gui_qt(): # create the viewer and window viewer = napari.Viewer(ndisplay=3) data = np.array([[0, 0, 0], [0, 20, 10], [10, 0, -10], [10, 10, -10]]) faces = np.array([[0, 1, 2], [1, 2, 3]]) values = ...
21.3
74
0.598592
9efece5cf3abf90b1dc80c402b9723068318767d
1,838
py
Python
datawinners/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/urls.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enablSubscribe Nowe the admin: # from django.contrib import admin # admin.autodiscover() import settings from django.contrib import admin js_info_dict = { 'packages': ('dataw...
49.675676
118
0.529924
9efed945f1182100ad2cfd687a15e25c6c4fba99
38,816
py
Python
nova/tests/test_utils.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/test_utils.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/test_utils.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Justin Santa Barbara # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
39.608163
79
0.570435
9efefe4d427b9486662a2bcb3bb9fe5156cfe879
939
py
Python
py/cidoc_crm_types/properties/p59_has_section.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p59_has_section.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p59_has_section.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p157i_provides_reference_space_for import P157iProvidesReferenceSpaceFor from dataclasses import dataclass @dataclass class P59HasSection(P157iProvidesReferenceSpaceFor): """ Scope note: This property links an area, i.e., an instance of E53 Place to the instance of E18 Physical Thing upon which it is found....
36.115385
106
0.762513
9eff191a886eb08a05b05ef38e34dae8bac3215d
3,759
py
Python
tests/test_numba_integration.py
fossabot/fletcher
00080c8cddfccaf395d2127a877bbceed5348d13
[ "MIT" ]
null
null
null
tests/test_numba_integration.py
fossabot/fletcher
00080c8cddfccaf395d2127a877bbceed5348d13
[ "MIT" ]
null
null
null
tests/test_numba_integration.py
fossabot/fletcher
00080c8cddfccaf395d2127a877bbceed5348d13
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import numba import numpy as np import pyarrow as pa import pytest # TODO: remove internal import from fletcher._numba_compat import ( NumbaStringArray, NumbaStringArrayBuilder, buffers_as_arrays, )...
27.043165
86
0.60016
9eff2f460eb7a1cecf179a178c86df9a8a86f6f4
15,344
py
Python
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_set_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2017-12-05T15:35:47.000Z
2017-12-05T15:35:47.000Z
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_set_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_set_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections from google.protobuf import text_format as _text_format from tensorflow.core.framework import op_def_pb2 as _op_def_pb2 # Needed to trigger the call to _set_call_cpp_shape_fn. from tensorfl...
32.716418
128
0.642205
9eff36ea58c744118c18f8a437f66bf4d3b33c6e
10,509
py
Python
nova/tests/functional/test_boot_from_volume.py
xin3liang/nova
5b79ec8670619ece92ac8bb43d84d2412778a182
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/tests/functional/test_boot_from_volume.py
BelieveInFuture/nova
e077c6d8f79250a75e091dc25b6688d2ddebe08f
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/test_boot_from_volume.py
BelieveInFuture/nova
e077c6d8f79250a75e091dc25b6688d2ddebe08f
[ "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 # d...
46.5
79
0.683509
9eff41b67232fe98fc9731eee21aaaa082ba6d7a
1,130
py
Python
tests/impaired_network.py
pokerman9527/eos
59626f1e6361df3b715e926ee13a9a8e84d177af
[ "MIT" ]
13,162
2017-05-29T22:08:27.000Z
2022-03-29T19:25:05.000Z
tests/impaired_network.py
pokerman9527/eos
59626f1e6361df3b715e926ee13a9a8e84d177af
[ "MIT" ]
6,450
2017-05-30T14:41:50.000Z
2022-03-30T11:30:04.000Z
tests/impaired_network.py
pokerman9527/eos
59626f1e6361df3b715e926ee13a9a8e84d177af
[ "MIT" ]
4,491
2017-05-29T22:08:32.000Z
2022-03-29T07:09:52.000Z
import testUtils import p2p_test_peers import random RemoteCmd = p2p_test_peers.P2PTestPeers class ImpairedNetwork: cmd="tc qdisc add dev {dev} root tbf limit 65536 burst 65536 rate" args=["1mbps","500kbps","100kbps","10kbps","1kbps"] #,"1bps"] resetcmd="tc qdisc del dev {dev} root" def maxIndex(sel...
34.242424
97
0.623009
9eff54e79de7c3634d2f456a5ac38978813580d6
5,083
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_02_01/aio/operations/_resolve_private_link_service_id_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_02_01/aio/operations/_resolve_private_link_service_id_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_02_01/aio/operations/_resolve_private_link_service_id_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
45.383929
209
0.700571
9eff6fe279de834622b70a5321ffc2e287869203
1,397
py
Python
django_redis_prometheus/models.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
null
null
null
django_redis_prometheus/models.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
null
null
null
django_redis_prometheus/models.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
1
2021-12-27T09:56:59.000Z
2021-12-27T09:56:59.000Z
from prometheus_redis_client import Counter model_inserts = Counter( 'django_model_inserts_total', 'Number of insert operations by model.', ['model']) model_updates = Counter( 'django_model_updates_total', 'Number of update operations by model.', ['model']) model_deletes = Counter( 'djang...
31.044444
78
0.668576
9effcd4e4de9f1d043b20b3eb6c2a0258d47cb4c
1,841
py
Python
src/pretraining.py
SpirinEgor/gnn_pretraining
116017cfad3548a1f36d1c2ffd1e1881c99d4768
[ "MIT" ]
2
2021-06-11T09:22:18.000Z
2021-07-14T03:16:54.000Z
src/pretraining.py
SpirinEgor/gnn_pretraining
116017cfad3548a1f36d1c2ffd1e1881c99d4768
[ "MIT" ]
null
null
null
src/pretraining.py
SpirinEgor/gnn_pretraining
116017cfad3548a1f36d1c2ffd1e1881c99d4768
[ "MIT" ]
1
2021-07-30T04:02:55.000Z
2021-07-30T04:02:55.000Z
from argparse import ArgumentParser from os.path import join from typing import cast from commode_utils.common import print_config from omegaconf import OmegaConf, DictConfig from pytorch_lightning import seed_everything from tokenizers import Tokenizer from src.data.datamodule import GraphDataModule from src.models....
33.472727
95
0.75774
9effd23d4d78491af7cf9e09155deeaad964c651
15,694
py
Python
salt/utils/event.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/utils/event.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/utils/event.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' Manage events ''' # Events are all fired off via a zeromq pub socket, and listened to with # local subscribers. The event messages are comprised of two parts delimited # at the 20 char point. The first 20 characters are used for the zeromq # subscriber to match publications and 20 characters were chosen because it...
33.04
80
0.549063
7300395bc0b65c465252be28a4413df3e380bf79
1,999
py
Python
src/dynpric/demand/ferreira2018.py
denismaciel/dynpric
4b932050b9bbbf659d29bf2917a1f0d649d276ac
[ "MIT" ]
null
null
null
src/dynpric/demand/ferreira2018.py
denismaciel/dynpric
4b932050b9bbbf659d29bf2917a1f0d649d276ac
[ "MIT" ]
null
null
null
src/dynpric/demand/ferreira2018.py
denismaciel/dynpric
4b932050b9bbbf659d29bf2917a1f0d649d276ac
[ "MIT" ]
null
null
null
import random import numpy as np from dynpric.types import Firm from dynpric.types import Price from dynpric.types import PriceLevel from dynpric.types import PricesSet from dynpric.types import Quantity class PoissonDemand: """ Poisson demand for a single firm. """ def __init__(self) -> None: ...
30.287879
98
0.602301
730085dae603dfea684dcbb1d264eff3118d779d
1,133
py
Python
spoffy/modules/apimodule.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
1
2019-04-24T19:50:03.000Z
2019-04-24T19:50:03.000Z
spoffy/modules/apimodule.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
3
2019-10-11T20:31:57.000Z
2020-04-13T16:06:43.000Z
spoffy/modules/apimodule.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
null
null
null
from abc import abstractmethod from typing import TypeVar, Awaitable, Any from spoffy.sansio import Request from spoffy.client.base import AsyncClient, SyncClient TLoaded = TypeVar("TLoaded") class AsyncApiModule: def __init__(self, client: AsyncClient): self.client = client self.b = self.__bui...
26.348837
72
0.703442
7300b864383dc0ade2c48d2ac79365ff382ca55f
3,757
py
Python
emLam/corpus/gate_preprocessor.py
DavidNemeskey/emLam
89359e7eee5b7b9c596dec8ab6654591d4039e3e
[ "MIT" ]
2
2018-03-31T10:00:11.000Z
2018-09-15T19:38:19.000Z
emLam/corpus/gate_preprocessor.py
DavidNemeskey/emLam
89359e7eee5b7b9c596dec8ab6654591d4039e3e
[ "MIT" ]
16
2017-02-28T13:58:28.000Z
2018-03-14T11:42:01.000Z
emLam/corpus/gate_preprocessor.py
dlt-rilmta/emLam
2b7274dcda4080445698e10b34a3db2e2eed5112
[ "MIT" ]
1
2017-01-30T15:06:37.000Z
2017-01-30T15:06:37.000Z
#!/usr/bin/env python3 """A preprocessor that invokes a GATE server for analysis.""" from __future__ import absolute_import, division, print_function from emLam.gate import Gate from emLam.corpus.preprocessor_base import Preprocessor class GATEPreprocessor(Preprocessor): """A preprocessor that invokes a GATE se...
38.731959
83
0.57333
7300be9f66fcda9fd32c038963f7229ecc0b277f
18,571
py
Python
tests/pgm/test_ccmod.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
217
2016-06-13T16:41:26.000Z
2022-03-22T06:31:05.000Z
tests/pgm/test_ccmod.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
21
2016-06-13T23:28:35.000Z
2022-02-17T23:20:01.000Z
tests/pgm/test_ccmod.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
47
2016-12-14T13:08:33.000Z
2021-12-12T01:59:49.000Z
from builtins import object import numpy as np from sporco.pgm import ccmod from sporco.fft import complex_dtype, fftn, ifftn from sporco.linalg import rrs import sporco.cnvrep as cr from sporco.pgm.momentum import MomentumLinear, MomentumGenLinear from sporco.pgm.stepsize import StepSizePolicyBB, StepSizePolicyCauc...
30.594728
77
0.45178
7300d25678853ed58f348f10cbb141eefc398239
1,474
py
Python
setup.py
cpflat/LogCausalAnalysis
f475f53cb683ab6ad55851c69129758e4ac89fc6
[ "BSD-3-Clause" ]
20
2016-11-22T03:21:20.000Z
2021-06-16T02:44:58.000Z
setup.py
arita37/LogCausalAnalysis
f475f53cb683ab6ad55851c69129758e4ac89fc6
[ "BSD-3-Clause" ]
1
2019-10-23T05:45:34.000Z
2019-11-01T04:56:01.000Z
setup.py
arita37/LogCausalAnalysis
f475f53cb683ab6ad55851c69129758e4ac89fc6
[ "BSD-3-Clause" ]
8
2015-11-13T03:33:04.000Z
2021-09-10T09:29:23.000Z
#!/usr/bin/env python from __future__ import print_function import os import re from setuptools import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print('pandoc is not installed.') read_md = lambda f: open(f, 'r').read() package_name = 'logcausal...
32.043478
78
0.63772
7300fc16313e3864fca7baa2d2938c8a36335c28
1,389
py
Python
nova/policies/networks.py
xin3liang/nova
5b79ec8670619ece92ac8bb43d84d2412778a182
[ "Apache-2.0" ]
1
2020-08-14T02:20:59.000Z
2020-08-14T02:20:59.000Z
nova/policies/networks.py
BelieveInFuture/nova
e077c6d8f79250a75e091dc25b6688d2ddebe08f
[ "Apache-2.0" ]
null
null
null
nova/policies/networks.py
BelieveInFuture/nova
e077c6d8f79250a75e091dc25b6688d2ddebe08f
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Cloudbase Solutions Srl # 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 r...
28.9375
78
0.645068
73011d511e159f5fd35d98d6379e2474bf76995c
8,451
py
Python
ucsc_apis/admin/locale.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
1
2018-08-15T15:13:43.000Z
2018-08-15T15:13:43.000Z
ucsc_apis/admin/locale.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
8
2017-02-13T09:09:02.000Z
2017-12-27T04:05:26.000Z
ucsc_apis/admin/locale.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
3
2016-11-22T09:49:01.000Z
2020-10-14T01:23:40.000Z
# Copyright 2017 Cisco Systems, 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 writing...
27.527687
79
0.619927
730126dc99d730ba4b28dddddd794a661ec74ae0
5,109
py
Python
catalyst/dl/runner/supervised.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/dl/runner/supervised.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/dl/runner/supervised.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
from typing import Any, Callable, List, Mapping, Tuple, Union import logging import torch from catalyst.dl import State, SupervisedExperiment from catalyst.utils.tools.typing import Device, Model from .core import Runner logger = logging.getLogger(__name__) class SupervisedRunner(Runner): """Runner for experi...
33.834437
79
0.618516
73018d24ad920778360ecb1fc8e1c7e3dd693944
8,260
py
Python
jp2utils.py
tbr/codestream-parser
9c296f00bb830a9935f6b8eaa519b085b15026dd
[ "BSD-3-Clause" ]
null
null
null
jp2utils.py
tbr/codestream-parser
9c296f00bb830a9935f6b8eaa519b085b15026dd
[ "BSD-3-Clause" ]
null
null
null
jp2utils.py
tbr/codestream-parser
9c296f00bb830a9935f6b8eaa519b085b15026dd
[ "BSD-3-Clause" ]
1
2021-03-22T13:13:22.000Z
2021-03-22T13:13:22.000Z
# -*- coding: utf-8 -*- """ JPEG codestream-parser (All-JPEG Codestream/File Format Parser Tools) See LICENCE.txt for copyright and licensing conditions. """ from __future__ import print_function import struct import sys class JP2Error(Exception): def __init__(self, reason): super(JP2Error, self).__init__...
25.106383
108
0.552663
730191a0f0590d1f69d2d6f86c565d0c365b5091
2,795
py
Python
loom/schema.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
2
2019-10-25T17:57:22.000Z
2020-07-14T02:37:34.000Z
loom/schema.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2019-12-13T03:08:05.000Z
2019-12-13T03:08:05.000Z
loom/schema.py
probcomp/loom
825188eae76e7106a6959f6a18312b0aa3338f83
[ "BSD-3-Clause" ]
1
2020-06-22T11:23:43.000Z
2020-06-22T11:23:43.000Z
# Copyright (c) 2014, Salesforce.com, Inc. All rights reserved. # Copyright (c) 2015, Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # - Redistributions of source code must retain the above copyright ...
37.77027
74
0.733095
7301a278fcadb3bfe28048f30e759f9a3c61bb51
5,723
py
Python
controller/project_controller/projects/forest_cover_classification/prediction_validation_insertion.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/project_controller/projects/forest_cover_classification/prediction_validation_insertion.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/project_controller/projects/forest_cover_classification/prediction_validation_insertion.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
from datetime import datetime from controller.project_controller.projects.WaferFaultDetection_new.Prediction_Raw_Data_Validation.predictionDataValidation import PredictionDataValidation from controller.project_controller.projects.WaferFaultDetection_new.DataTypeValidation_Insertion_Prediction.DataTypeValidationPredicti...
61.537634
162
0.712039
7301ea628de845dd192ec8073af6fdc7c6c7f7c3
15,207
py
Python
tests/test_apply_lints_and_build_docs.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
tests/test_apply_lints_and_build_docs.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
tests/test_apply_lints_and_build_docs.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
import os import shutil import subprocess as sp import time from random import randint from typing import List from retrying import retry import scripts.apply_lints_and_build_docs as apply_lints_and_build_docs from apysc._file import file_util from apysc._lint_and_doc.lint_and_doc_hash_util import HashType...
41.663014
78
0.719537
73020dda0a2f35dd1248c9e6bb2209c22eec12d8
2,192
py
Python
2021/13/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2021/13/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2021/13/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List, Tuple import config DOTS = Dict[Tuple[int, int], int] def fold_axis(dots: DOTS, axis: str, position: int) -> DOTS: """Fold the paper along the given axis and return the new paper. Args: dots (DOTS): the dots on the paper ax...
25.488372
72
0.556113
73021974e69f43f2c49bb9f62d2c68794c85453d
427
py
Python
onmt/inputters/tokenizer_load.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
null
null
null
onmt/inputters/tokenizer_load.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
null
null
null
onmt/inputters/tokenizer_load.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
null
null
null
import sentencepiece as spm from .tokenizer import Korean_tokenizer, English_tokenizer def Korean_tokenizer_load(x): sp = spm.SentencePieceProcessor() sp.Load('/home/team012/LJH/NMT-GPU/data/korean_tok.model') return sp.EncodeAsPieces(x) def English_tokenizer_load(x): sp = spm.SentencePiecePr...
22.473684
63
0.744731
73023e9f1f56136cc981df9873bc9cc381a547ca
1,021
py
Python
scripts/test_wofost.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
scripts/test_wofost.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
scripts/test_wofost.py
Xyzic/yggdrasil
44369514ffdf01960bfcce418c172dc6dc564051
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from yggdrasil import units from yggdrasil.tests import assert_equal from yggdrasil.communication.NetCDFFileComm import NetCDFFileComm from yggdrasil.serialize.WOFOSTParamSerialize import WOFOSTParamSerialize fname_param = 'cropfile_example.cab' # fname_netcdf = 'simple.nc' fname_netcdf = 'test.nc' ...
29.171429
80
0.733595
73024922fe1f8b3cf4c9442ecd406617448e23db
3,725
py
Python
aiotoolz/tests/test_curried.py
eabrouwer3/aiotoolz
10790c9c5a8413502d8f35ce157966290492dbab
[ "BSD-3-Clause" ]
null
null
null
aiotoolz/tests/test_curried.py
eabrouwer3/aiotoolz
10790c9c5a8413502d8f35ce157966290492dbab
[ "BSD-3-Clause" ]
null
null
null
aiotoolz/tests/test_curried.py
eabrouwer3/aiotoolz
10790c9c5a8413502d8f35ce157966290492dbab
[ "BSD-3-Clause" ]
null
null
null
import aiotoolz import aiotoolz.curried from aiotoolz.curried import (take, first, second, sorted, merge_with, reduce, merge, operator as cop) from collections import defaultdict from importlib import import_module from operator import add def test_take(): assert list(take(2)([1, 2, 3])...
32.675439
91
0.590067
730255fd64085a3a08e07a966ba86993ac5de95a
171
py
Python
python_datastructures/__init__.py
scottwedge/Python-Datastructures
3ea489ac54c64d57fe25d974250bf19fa5f8898d
[ "MIT" ]
null
null
null
python_datastructures/__init__.py
scottwedge/Python-Datastructures
3ea489ac54c64d57fe25d974250bf19fa5f8898d
[ "MIT" ]
null
null
null
python_datastructures/__init__.py
scottwedge/Python-Datastructures
3ea489ac54c64d57fe25d974250bf19fa5f8898d
[ "MIT" ]
null
null
null
__version__ = '0.1.0' from .heap import MaxHeap, MinHeap from .trie import Trie from .stack import Stack from .queue import Queue from .linkedlist import SinglyLinkedList
24.428571
40
0.795322
73026f103f71ca99780ad260996db75b655c5acd
3,772
py
Python
flexget/plugins/urlrewrite/google_cse.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/urlrewrite/google_cse.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/urlrewrite/google_cse.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import parse_qs, urlparse import re import logging from flexget import plugin from flexget.event import event from flexget.plugins.plugin_urlrewr...
38.489796
89
0.60684
730278d3842436068613405c580f86fcef80146e
3,118
py
Python
language-modeling/fast_transformers/attention_registry/.ipynb_checkpoints/spec-checkpoint.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
5
2021-11-06T16:10:31.000Z
2021-12-25T19:47:42.000Z
language-modeling/fast_transformers/attention_registry/.ipynb_checkpoints/spec-checkpoint.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
null
null
null
language-modeling/fast_transformers/attention_registry/.ipynb_checkpoints/spec-checkpoint.py
minhtannguyen/transformer-mgk
304ebf3781b1eb4aeef93f2757319775d2fcdbc4
[ "CC0-1.0" ]
2
2021-11-30T03:36:54.000Z
2021-12-25T19:49:58.000Z
"""Spec instances allow to describe and check the type and value of parameters.""" from ..events import EventDispatcher class Spec(object): """Describe and validate a parameter type. Arguments --------- predicate: A callable that checks if the value is acceptable and returns i...
25.557377
77
0.600706
7302ac8c6075c3a43dca6c7260fd0b093f83a2f3
6,739
py
Python
keystoneclient/openstack/common/jsonutils.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/openstack/common/jsonutils.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/openstack/common/jsonutils.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
36.037433
79
0.656626
7302ee34e5ce7326930371a3c96f3434fbbdde9f
2,302
py
Python
experimental/Delaunay3D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
experimental/Delaunay3D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
experimental/Delaunay3D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
from numpy import random import vtk # The points to be triangulated are generated randomly in the unit # cube located at the origin. The points are then associated with a # vtkPolyData. math = vtk.vtkMath() points = vtk.vtkPoints() i = 0 maxHeight = 0.2 width = 150 depth = 50 for x in range(width): for y in range...
26.159091
147
0.7298
7303027b895d8a3a9c19db5eaee2a838b465f278
412
py
Python
bonneville/utils/dictupdate.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/utils/dictupdate.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/utils/dictupdate.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Alex Martelli's soulution for recursive dict update from http://stackoverflow.com/a/3233356 ''' # Import python libs import collections def update(dest, upd): for key, val in upd.items(): if isinstance(val, collections.Mapping): ret = update(dest.get(key, {}), val)...
21.684211
56
0.597087
730314f646f35b3fc8c76446ac7da2eedb194db8
20,276
py
Python
src/btk_pipeline/lib/generate_config.py
blobtoolkit/blobtools-add
88717a92b81170b6244b5693eca03689464d2cea
[ "MIT" ]
2
2022-03-11T16:30:17.000Z
2022-03-23T15:18:55.000Z
src/btk_pipeline/lib/generate_config.py
blobtoolkit/blobtools-add
88717a92b81170b6244b5693eca03689464d2cea
[ "MIT" ]
9
2022-03-04T14:58:28.000Z
2022-03-30T20:32:05.000Z
src/btk_pipeline/lib/generate_config.py
blobtoolkit/blobtools-add
88717a92b81170b6244b5693eca03689464d2cea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Generate config files for BlobToolKit pipeline. Usage: btk pipeline generate-config <ACCESSION> [--coverage 30] [--download] [--out /path/to/output/directory] [--db /path/to/database/directory] [--db-suffix STRING] [--reads STRING...] [--read-runs INT] [--api-key STRING] [--pl...
33.625207
193
0.576889
73032c4df732b833fb18479d05128bd56b9291fd
5,363
py
Python
src/core/config_loader.py
general-ai-challenge/Round1
6f3b20dfdc1777859fa4c39e2e90c6d0095b231c
[ "BSD-3-Clause" ]
107
2017-02-15T15:09:31.000Z
2021-12-09T10:40:17.000Z
src/core/config_loader.py
general-ai-challenge/Round1
6f3b20dfdc1777859fa4c39e2e90c6d0095b231c
[ "BSD-3-Clause" ]
21
2017-02-15T18:21:25.000Z
2019-11-08T12:39:47.000Z
src/core/config_loader.py
general-ai-challenge/Round1
6f3b20dfdc1777859fa4c39e2e90c6d0095b231c
[ "BSD-3-Clause" ]
43
2017-02-15T09:57:48.000Z
2019-07-18T17:04:29.000Z
# Copyright (c) 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import a...
36.482993
78
0.572441
7303b150a3b88a3a70fa847e45fa87f4a67cf859
373
py
Python
cursoemvideoPy/Mundo2/ex053.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex053.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex053.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
frase = str(input('Digite uma frase: ')).strip().upper() palavras = frase.split() juntar = ''.join(palavras) inverso = '' for letra in range(len(juntar) - 1, -1, -1): inverso = inverso + juntar[letra] print('O inverso de {} é {}'.format(juntar, inverso)) if inverso == juntar: print('Temos um palíndromo!') else:...
28.692308
56
0.651475
7303fbb4c108a26894c7c1d79f12b5437d0894d1
17,887
py
Python
S2SRL/libbots/data.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
9
2020-04-29T00:49:59.000Z
2022-01-15T08:56:28.000Z
S2SRL/libbots/data.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
1
2020-07-19T09:04:47.000Z
2020-10-08T12:23:03.000Z
S2SRL/libbots/data.py
DevinJake/MARL
cafbc0411ab70f68652029832cd65127d4be5f94
[ "MIT" ]
6
2020-07-19T09:01:05.000Z
2021-11-11T07:58:07.000Z
import collections import os import sys import logging import itertools import pickle import json import torch from . import cornell UNKNOWN_TOKEN = '#UNK' BEGIN_TOKEN = "#BEG" END_TOKEN = "#END" MAX_TOKENS = 30 MIN_TOKEN_FEQ = 1 SHUFFLE_SEED = 1987 LINE_SIZE = 50000 EMB_DICT_NAME = "emb_dict.dat" EMB_NAME = "emb.np...
36.429735
233
0.606418
7303ff684b3b1ea224fca4939782d3624b67b652
1,795
py
Python
tests/python/pants_test/targets/test_sort_targets.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/targets/test_sort_targets.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/targets/test_sort_targets.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.build_graph.build_graph import CycleException, sort_targets from pants_test.te...
33.240741
82
0.65961
73043589a2cb3a0140c27699fb708f89192e9232
1,049
py
Python
src/knarrow/main.py
InCogNiTo124/knarrow
b0a19273a27e68899d982bcc0bf0938c60d3ec26
[ "Apache-2.0" ]
2
2021-10-10T11:12:53.000Z
2021-12-14T13:55:30.000Z
src/knarrow/main.py
InCogNiTo124/knarrow
b0a19273a27e68899d982bcc0bf0938c60d3ec26
[ "Apache-2.0" ]
17
2021-09-30T21:51:28.000Z
2022-03-27T23:33:17.000Z
src/knarrow/main.py
InCogNiTo124/knarrow
b0a19273a27e68899d982bcc0bf0938c60d3ec26
[ "Apache-2.0" ]
null
null
null
from .angle_method import angle # noqa from .c_method import c_method # noqa from .distance_method import distance, distance_adjacent # noqa from .kneedle import kneedle # noqa from .menger import menger_anchored, menger_successive # noqa from .ols import ols_swiping # noqa from .util import prepare @prepare de...
29.971429
81
0.65205
73044c91f001dced128c98d4841d2ae978e3b4ed
8,002
py
Python
mslib/mscolab/mscolab.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/mscolab/mscolab.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/mscolab/mscolab.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib.mscolab.server ~~~~~~~~~~~~~~~~~~~~ Server for mscolab module This file is part of mss. :copyright: Copyright 2019 Shivashis Padhi :license: APACHE-2.0, see LICENSE for details. Licensed under the Apache License, Version 2.0 (the "License"); you may...
41.46114
118
0.625594
73045b54610448c6821c7ef7dd4a00eb4d2bf516
4,124
py
Python
locking/admin.py
jumpjam/django-locking
27d278b44dbcc0743177e5b975f6118c18dfd652
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
locking/admin.py
jumpjam/django-locking
27d278b44dbcc0743177e5b975f6118c18dfd652
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
locking/admin.py
jumpjam/django-locking
27d278b44dbcc0743177e5b975f6118c18dfd652
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# encoding: utf-8 from datetime import datetime from django.contrib import admin from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django import forms from django.contrib.contenttypes.models import ContentType from locking import LOCK_TIMEOUT, views from locking.mod...
38.542056
85
0.554801
730479fc553c2739ee572a39a95f303cfc8c24c1
5,424
py
Python
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/operations/_operations_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/operations/_operations_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/operations/_operations_status_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
40.177778
155
0.688975
73048806629d4d9043b13fafe24c24ac5649f617
414
py
Python
aula3/Aula3-2-OperacoesMatematicas2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula3/Aula3-2-OperacoesMatematicas2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula3/Aula3-2-OperacoesMatematicas2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
#--- Aula 3-3 18-11-2019 #--- Operações matemáticas #--- Declaração de variáveis do tipo inteiro numero1 = 10 numero2 = 3 resultado = numero1 // numero2 #--- resto da divisão resultado2 = numero1 % numero2 resultado3 = 3**3 resultado4 = 9**0.5 inss_maykon = 1000*0.08 IRRF_abioluz = 10000 * 0.275 print(resultado)...
17.25
45
0.729469
73048ceefbbaf503c18ae2ba074fb5f4d69709c4
8,541
py
Python
spvm/metautils.py
WIN32GG/spvm
e290eb4b7c8d334311944452980785f075fc6a0d
[ "ISC" ]
1
2019-10-06T21:58:28.000Z
2019-10-06T21:58:28.000Z
spvm/metautils.py
WIN32GG/spvm
e290eb4b7c8d334311944452980785f075fc6a0d
[ "ISC" ]
2
2019-10-06T21:57:37.000Z
2019-10-06T21:58:13.000Z
spvm/metautils.py
WIN32GG/spvm
e290eb4b7c8d334311944452980785f075fc6a0d
[ "ISC" ]
null
null
null
import splogger as log from .config import metaFileName, NoFailReadOnlyDict, metaFileLocation from .ioutils import input_with_default, call_git from colorama import Fore import getpass import os import json from os.path import join def get_default_template(): """ Get the default metaFile to be used """ ...
40.866029
187
0.648636
7304cd8613da8117ac7cac237b5b8cd62694eb98
5,692
py
Python
example/socketserver/myprotocol.py
hubo1016/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
252
2015-11-17T14:21:50.000Z
2022-03-11T10:19:47.000Z
example/socketserver/myprotocol.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
23
2018-01-09T13:28:52.000Z
2019-12-12T06:11:44.000Z
example/socketserver/myprotocol.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
37
2016-08-03T04:42:22.000Z
2021-12-30T16:57:10.000Z
from vlcp.protocol import Protocol from vlcp.config import defaultconfig from vlcp.event import Event, withIndices, ConnectionWriteEvent import logging import protocoldef as d from vlcp.event.event import M_ @withIndices('state', 'connection', 'connmark', 'createby') class MyProtocolConnectionStateEvent(Event): UP...
38.986301
104
0.559557
7304de08c973183fe41e858c305c4e7bad758a53
13,934
py
Python
tensorflow/contrib/tensor_forest/python/kernel_tests/count_extremely_random_stats_op_test.py
smarthi/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
2
2019-10-09T08:06:48.000Z
2021-01-07T03:16:09.000Z
tensorflow/contrib/tensor_forest/python/kernel_tests/count_extremely_random_stats_op_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
1
2017-02-06T08:12:22.000Z
2017-02-06T08:12:22.000Z
tensorflow/contrib/tensor_forest/python/kernel_tests/count_extremely_random_stats_op_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
null
null
null
# 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 applica...
38.81337
80
0.56947
7304e9c183d6939a935f8b92c123ec19d8b04ad8
2,919
py
Python
mplStyle/types/property/MplColor.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/types/property/MplColor.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/types/property/MplColor.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
42.304348
78
0.601918
730564453f0bd36d2f8f0081925567f3a1fbfebc
298
py
Python
uploader/models/__init__.py
cedadev/arrivals-uploader
c4281eef3a332a535ade5438331d9c3668e6f9be
[ "BSD-3-Clause" ]
null
null
null
uploader/models/__init__.py
cedadev/arrivals-uploader
c4281eef3a332a535ade5438331d9c3668e6f9be
[ "BSD-3-Clause" ]
null
null
null
uploader/models/__init__.py
cedadev/arrivals-uploader
c4281eef3a332a535ade5438331d9c3668e6f9be
[ "BSD-3-Clause" ]
null
null
null
""" Package containing app models. """ __author__ = "William Tucker" __date__ = "2017-08-10" __copyright__ = "Copyright 2019 United Kingdom Research and Innovation" __license__ = "BSD - see LICENSE file in top-level package directory" from uploader.models.uploader_profile import UploaderProfile
33.111111
71
0.785235
7305871f74e85aca59c6981f73074e26307c6884
1,146
py
Python
NAIP/filter_poly.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
NAIP/filter_poly.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
NAIP/filter_poly.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map collection = ee.ImageCollection('USDA/NAIP/DOQQ') polys = ee.Geometry.Polygon( [[[-99.29615020751953, 46.725459351792374], [-99.2116928100586, 46.72404725733022], [-99.21443939208984, 46.772037733479884], [-99.30267333984375, 46.77321343419932]...
28.65
98
0.664921
7305a5b51a62a1514de7d9ac69843035980ba4c3
10,226
py
Python
sqlsense/postgres/postgres_parser.py
beingPeeDi/sqlsense
bc03c046f809951c54675bc11ee41b76c0d91a1d
[ "MIT" ]
6
2020-05-11T13:08:52.000Z
2022-02-17T19:30:15.000Z
sqlsense/postgres/postgres_parser.py
beingPeeDi/sqlsense
bc03c046f809951c54675bc11ee41b76c0d91a1d
[ "MIT" ]
9
2020-05-12T05:15:06.000Z
2020-08-26T20:19:06.000Z
sqlsense/postgres/postgres_parser.py
beingPeeDi/sqlsense
bc03c046f809951c54675bc11ee41b76c0d91a1d
[ "MIT" ]
null
null
null
from pygments import token as T from pygments.lexers.sql import PostgresLexer import sqlsense.postgres.postgres_tokens as PT import sqlsense.tokens as ST from sqlsense.filter import float_to_integer_token, float_to_punctuation_token from sqlsense.parser import SqlParser from sqlsense.postgres.postgres_sql import Postg...
58.102273
149
0.654508
7305c6423f88a3a42b4c486d8ef6555ffb2e8f38
2,932
py
Python
tests/test_serialization.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
tests/test_serialization.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
tests/test_serialization.py
eighttails/kraken
6e3b7d6e86d673acf5633e6e23292cb82f1a114e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import unittest import json import os from lxml import etree from io import StringIO from hocr_spec import HocrValidator from kraken import rpred from kraken import serialization thisfile = os.path.abspath(os.path.dirname(__fi...
33.701149
122
0.658254
7305d2d8ac2ddc6b1e7bcde034c491da546c64e8
15,753
py
Python
astarte/device/device.py
bettio/astarte-device-sdk-python
835e0250e437067518f5c820f5e72507071c6295
[ "Apache-2.0" ]
null
null
null
astarte/device/device.py
bettio/astarte-device-sdk-python
835e0250e437067518f5c820f5e72507071c6295
[ "Apache-2.0" ]
null
null
null
astarte/device/device.py
bettio/astarte-device-sdk-python
835e0250e437067518f5c820f5e72507071c6295
[ "Apache-2.0" ]
null
null
null
import asyncio import os import bson import paho.mqtt.client as mqtt import ssl from urllib.parse import urlparse from . import crypto, pairing_handler class Device: """ Basic class to define an Astarte Device. Device represents an Astarte Device. It is the base class used for managing the Device lifecyc...
42.008
138
0.633911
7305d50b467bc1238c1d6bc740a37f75a9ef788f
1,739
py
Python
src/features/admin.py
sjdines/bullet-train-api
1d5f0dd905025901bc085d7d49982d2ebb2b89c6
[ "BSD-3-Clause" ]
1
2022-03-26T08:27:55.000Z
2022-03-26T08:27:55.000Z
src/features/admin.py
sjdines/bullet-train-api
1d5f0dd905025901bc085d7d49982d2ebb2b89c6
[ "BSD-3-Clause" ]
null
null
null
src/features/admin.py
sjdines/bullet-train-api
1d5f0dd905025901bc085d7d49982d2ebb2b89c6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Feature, FeatureState, FeatureStateValue class FeatureStateValueInline(admin.StackedInline): model = FeatureStateValue extra = 0 show_change_link = True @admin.register(Feature) class F...
29.474576
96
0.676826
7305e19314a3b19ebff16425ba57372e4840164e
3,808
py
Python
oauth.py
isabella232/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
15
2015-02-21T13:56:25.000Z
2019-08-14T21:19:09.000Z
oauth.py
nprapps/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
444
2015-01-06T16:54:13.000Z
2021-09-22T11:46:33.000Z
oauth.py
isabella232/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
13
2015-01-05T14:33:15.000Z
2021-02-23T10:45:32.000Z
import app_config import imp import os from app_config import authomatic from authomatic.adapters import WerkzeugAdapter from exceptions import KeyError from flask import Blueprint, make_response, redirect, render_template, url_for from functools import wraps from render_utils import make_context SPREADSHEET_URL_TEMP...
30.464
112
0.66229
730601171409826a47f5d16b4e353a0b74cb27ba
9,875
py
Python
qtim_tools/qtim_features/morphology.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
12
2017-03-29T18:17:24.000Z
2020-03-19T05:28:56.000Z
qtim_tools/qtim_features/morphology.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
7
2017-03-08T21:06:01.000Z
2017-06-21T19:01:58.000Z
qtim_tools/qtim_features/morphology.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
5
2017-03-02T09:08:21.000Z
2019-10-26T05:37:39.000Z
""" All features as of yet have been copied from the "shape-based features" list in the HeterogeneityCad module in Slicer. All of these will need to be tested against ground-truth soon. """ from __future__ import division import numpy as np from collections import namedtuple from scipy import signal from sci...
33.703072
267
0.643241
730605a11b77f8699238c09f98487cf6e868ef03
556
py
Python
Python-code-snippets-101-200/166-Merge Two or more PDFS into one.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-101-200/166-Merge Two or more PDFS into one.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-101-200/166-Merge Two or more PDFS into one.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
""" Python code snippets vol 34: 166-Merge Two or more PDFS into one stevepython.wordpress.com pip3 install PyPDF2 Tested on: Win 7\Linux Mint 19.1 Source: https://snipplr.com/view/328728/merge-multiple-pdf-documents/ """ import time import os from PyPDF2 import PdfFileMerger # Any .pdf files found in current dir...
19.172414
71
0.728417
730630b078a775ef53fc7597d7e1a41aeaed14a0
4,843
py
Python
libs/algo/odc/algo/pixel.py
tahvane1/odc-tools
1f11133dc243d8e47060add1c95a3719135895c3
[ "Apache-2.0" ]
1
2021-04-15T23:06:10.000Z
2021-04-15T23:06:10.000Z
libs/algo/odc/algo/pixel.py
tahvane1/odc-tools
1f11133dc243d8e47060add1c95a3719135895c3
[ "Apache-2.0" ]
null
null
null
libs/algo/odc/algo/pixel.py
tahvane1/odc-tools
1f11133dc243d8e47060add1c95a3719135895c3
[ "Apache-2.0" ]
null
null
null
"""Helper methods for accessing single pixel from a rasterio file object. """ import rasterio import rasterio.warp import rasterio.crs from typing import Union, Iterable, Optional, List, Tuple RowCol = Tuple[int, int] XY = Tuple[float, float] LonLat = Tuple[float, float] SomeCoord = Union[RowCol, XY, LonLat] PixelVa...
28.656805
96
0.637208
730635419924b48d26bf4f6dba44168b76c8e4ca
1,105
py
Python
arjuna-samples/arjex_old_scripts/s01_config_and_selenium_wrapper/y28_elem_state_check.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex_old_scripts/s01_config_and_selenium_wrapper/y28_elem_state_check.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna-samples/arjex_old_scripts/s01_config_and_selenium_wrapper/y28_elem_state_check.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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.864865
74
0.764706
7306383ebbdff41b83112dd4a688f682fcc13f05
484
py
Python
src/test/tinc/tincmmgr/test/logtests/test_sample2.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
src/test/tinc/tincmmgr/test/logtests/test_sample2.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
src/test/tinc/tincmmgr/test/logtests/test_sample2.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
import time from tinctest .case import TINCTestCase class SampleTINCTestCase1 (TINCTestCase ): def test_sleep1 (self ): time .sleep (0.5 ) def test_sleep2 (self ): time .sleep (1.0 ) def test_sleep3 (self ): time .sleep (1.5 ) class SampleTINCTestCase2 (TINCTestCase ): def...
19.36
42
0.599174
7306a5c3b64ff626ab3814125cd63fd9a05edb3c
8,817
py
Python
luna/gateware/platform/luna_r0_2.py
asaioe99/luna_JP
276c9d86d2c964c7c4be149d721156d869c9489b
[ "BSD-3-Clause" ]
1
2021-02-25T01:43:12.000Z
2021-02-25T01:43:12.000Z
luna/gateware/platform/luna_r0_2.py
kbeckmann/luna
befb33620d1c4267607a45f331b84bc196c7a8bf
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/platform/luna_r0_2.py
kbeckmann/luna
befb33620d1c4267607a45f331b84bc196c7a8bf
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of LUNA. # import os from nmigen.build import Resource, Subsignal, Pins, PinsN, Attrs, Clock, DiffPairs, Connector from nmigen.vendor.lattice_ecp5 import LatticeECP5Platform from ..architecture.car import LunaECP5DomainGenerator __all__ = ["LUNAPlatformR02"] # # Note that r0.2+ have D+/D- swa...
36.891213
97
0.596915
7306ace8b2d8121bf7f063177204212a719bdc2d
2,784
py
Python
venv/Lib/site-packages/pyrogram/raw/types/help/terms_of_service_update.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/help/terms_of_service_update.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/help/terms_of_service_update.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
33.542169
105
0.639368
7306c8af00147ad5c21d35488140bfc119320082
1,832
py
Python
userbot/plugins/_helper.py
Ahmad99Ahmad/PaYtHoNMeMbEr
fc2b97e9a0826123b938d56d9ce405bef3560d55
[ "MIT" ]
null
null
null
userbot/plugins/_helper.py
Ahmad99Ahmad/PaYtHoNMeMbEr
fc2b97e9a0826123b938d56d9ce405bef3560d55
[ "MIT" ]
null
null
null
userbot/plugins/_helper.py
Ahmad99Ahmad/PaYtHoNMeMbEr
fc2b97e9a0826123b938d56d9ce405bef3560d55
[ "MIT" ]
null
null
null
from userbot import CMD_LIST @command(pattern="^.help ?(.*)") async def cmd_list(event): if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"): tgbotusername = Var.TG_BOT_USER_NAME_BF_HER input_str = event.pattern_match.group(1) if tgbotusername is None or inpu...
42.604651
135
0.495633
7306d970e2dcccb6ccb092377f64e47ec50ae75b
2,082
py
Python
quilt/cli/delete.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
4
2016-12-28T23:28:02.000Z
2022-03-15T02:46:10.000Z
quilt/cli/delete.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
17
2017-02-24T09:16:14.000Z
2019-04-08T08:37:17.000Z
quilt/cli/delete.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
2
2017-01-03T00:55:59.000Z
2019-03-28T15:42:12.000Z
# vim: fileencoding=utf-8 et sw=4 ts=4 tw=80: # python-quilt - A Python implementation of the quilt patch system # # Copyright (C) 2012 - 2017 Björn Ricks <bjoern.ricks@gmail.com> # # See LICENSE comming with the source of python-quilt for details. from quilt.cli.meta import Command from quilt.cli.parser import Argum...
38.555556
79
0.603746
73070eb179ea6a7ec61f8eed39ad156bf92ea0a5
3,271
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/_auto_rest_swagger_bat_header_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/_auto_rest_swagger_bat_header_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/_auto_rest_swagger_bat_header_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
37.597701
102
0.656986
73071b54b472c02818c5686756d9adb49d502355
1,666
py
Python
services/user_app/user_api/flaskapi.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
services/user_app/user_api/flaskapi.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
services/user_app/user_api/flaskapi.py
Forcepoint/fp-bd-okta-fba
7c9ee682cdc9d227296df0dee54846e533aa2600
[ "Apache-2.0" ]
null
null
null
# # Author: Dlo Bagari # created Date: 12-10-2019 from flask import Flask, request, jsonify from flask import jsonify from user_api.userapi import UserAPI from user_api.group_api import GroupApi from lib_user.logger import Logger from lib_user.config import Config from lib_user.entity import Entity import json config...
26.870968
92
0.722689
73073a4876a06e0769f973751871b1217e241849
880
py
Python
migrations/versions/0180_another_letter_org.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0180_another_letter_org.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0180_another_letter_org.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
"""empty message Revision ID: 0180_another_letter_org Revises: 0179_billing_primary_const Create Date: 2017-06-29 12:44:16.815039 """ # revision identifiers, used by Alembic. revision = "0180_another_letter_org" down_revision = "0179_billing_primary_const" from alembic import op NEW_ORGANISATIONS = [ ("504", "...
20
46
0.547727
73077a416238d548834639138eb29887f8029431
17,641
py
Python
msticpy/common/utility.py
aw350m33d/msticpy
e099a09a600dee3740b10d9ccf4ac836e2cbd3a8
[ "MIT" ]
null
null
null
msticpy/common/utility.py
aw350m33d/msticpy
e099a09a600dee3740b10d9ccf4ac836e2cbd3a8
[ "MIT" ]
null
null
null
msticpy/common/utility.py
aw350m33d/msticpy
e099a09a600dee3740b10d9ccf4ac836e2cbd3a8
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Miscell...
27.912975
88
0.620997
73078b26a334dc0d93819b13afdea8c3ca917279
1,964
py
Python
tests/common/test_op/ascend/square_difference_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/square_difference_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/square_difference_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 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 agre...
40.081633
89
0.687882
730799d8641ad7aba586112af8f0e94c3705c22a
2,392
py
Python
room3.py
GerhardKling/SimplePyGame
acbfaf827384cee6b9658dfd2d66a04593ae3965
[ "MIT" ]
1
2020-09-06T21:39:53.000Z
2020-09-06T21:39:53.000Z
room3.py
GerhardKling/SimplePyGame
acbfaf827384cee6b9658dfd2d66a04593ae3965
[ "MIT" ]
null
null
null
room3.py
GerhardKling/SimplePyGame
acbfaf827384cee6b9658dfd2d66a04593ae3965
[ "MIT" ]
null
null
null
"""Creates third room; inherits from Room superclass""" import pygame as py import copy from room import Room from wall import Wall from bullet import Bullet class Room3(Room): """This creates all the walls in room 1""" def __init__(self): super().__init__() # Make walls (x, y, wid...
34.666667
110
0.485368
73079a2aafe6fc2c063b076ded230c91493d3b3e
5,250
py
Python
doc/conf.py
stefanhoelzl/amp-fuse
1ba23dc75499d1b6b8cb66401948a98dd3b35763
[ "MIT" ]
2
2017-12-06T14:14:06.000Z
2022-02-16T14:03:31.000Z
doc/conf.py
stefanhoelzl/mpy-fuse
1ba23dc75499d1b6b8cb66401948a98dd3b35763
[ "MIT" ]
null
null
null
doc/conf.py
stefanhoelzl/mpy-fuse
1ba23dc75499d1b6b8cb66401948a98dd3b35763
[ "MIT" ]
1
2018-04-08T11:57:39.000Z
2018-04-08T11:57:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # mpy-dev-tools documentation build configuration file, created by # sphinx-quickstart on Sun Sep 17 16:58:03 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in thi...
30.346821
79
0.678667
73079bbc45fca17b93321a2db9c0142962a935d1
586
py
Python
tests/calc_possible_locations_in_area.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
tests/calc_possible_locations_in_area.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
tests/calc_possible_locations_in_area.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
from src.process_es_area_bld import calc_possible_locations_in_area from src.shape import Shape if __name__ == '__main__': polygon = Shape.create([[{'lat': 53.24903770374274, 'lng': 6.07997256161518}, {'lat': 53.00200032254604, 'lng': 6.036034118922504}, ...
48.833333
86
0.607509
7307b166074372d1ec9a3727951f9c44b443d8e7
1,533
py
Python
tests/test_fade_transition.py
gottadiveintopython/asynckivy
0672310d6a44034bb2916590f1a90dae0b5807c7
[ "MIT" ]
49
2019-09-11T16:17:44.000Z
2022-03-22T20:40:26.000Z
tests/test_fade_transition.py
gottadiveintopython/asynckivy
0672310d6a44034bb2916590f1a90dae0b5807c7
[ "MIT" ]
9
2020-03-30T03:05:51.000Z
2022-03-14T07:03:25.000Z
tests/test_fade_transition.py
gottadiveintopython/asynckivy
0672310d6a44034bb2916590f1a90dae0b5807c7
[ "MIT" ]
6
2020-10-08T00:36:23.000Z
2022-01-24T11:32:14.000Z
import pytest def test_invalid_argument(): import asynckivy as ak async def job(): async with ak.fade_transition(unknown=True): pass with pytest.raises(ValueError): ak.start(job()) def test_run_normally(ready_to_sleep): from functools import partial from kivy.uix.widg...
24.333333
52
0.620352
7307ebc98f37d464d7d7175c8b188f151a92cf55
521
py
Python
wargame/designpatterns/traditional_wizard.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
1
2020-12-01T20:30:27.000Z
2020-12-01T20:30:27.000Z
wargame/designpatterns/traditional_wizard.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
wargame/designpatterns/traditional_wizard.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
"""traditional_wizard This is one of the different GameUnits that are used in the desing patterns examples. :copyright: 2020, Jean Tardelli :license: The MIT license (MIT). See LICENSE file for further details. """ from traditional_abstractgameunit import AbstractGameUnit class Wizard(AbstractGameUnit): """Crea...
32.5625
85
0.740883