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
1d52a60e4eac1dd1b166f51d91b1ae1f1c815e80
10,682
py
Python
dash_charts/utils_static.py
KyleKing/Dash-HelloWorld
b74c399197f0207dfe5dd9e3a1b453b97d4c66b0
[ "Unlicense" ]
16
2020-02-22T00:51:54.000Z
2022-03-03T21:45:51.000Z
dash_charts/utils_static.py
KyleKing/Dash-HelloWorld
b74c399197f0207dfe5dd9e3a1b453b97d4c66b0
[ "Unlicense" ]
29
2020-06-29T22:14:00.000Z
2022-03-22T02:10:00.000Z
dash_charts/utils_static.py
KyleKing/Dash-HelloWorld
b74c399197f0207dfe5dd9e3a1b453b97d4c66b0
[ "Unlicense" ]
1
2022-02-03T09:07:07.000Z
2022-02-03T09:07:07.000Z
"""Utilities for generating static HTML reports.""" import io from base64 import b64encode import dash_bootstrap_components as dbc import dominate import markdown import pandas as pd import plotly.io from bs4 import BeautifulSoup from dominate import tags, util def write_div(figure, path_or_file_object, is_div=True...
34.681818
114
0.671878
1d52c084567cdcd87262c1b58fb59d6a41196e42
1,375
py
Python
tensorlayer/layers/padding.py
lllcho/tensorlayer
87591b4945a6a67dfb4ea797a575efae997fd9d2
[ "Apache-2.0" ]
14
2021-02-24T07:01:53.000Z
2022-03-20T23:32:36.000Z
tensorlayer/layers/padding.py
lllcho/tensorlayer
87591b4945a6a67dfb4ea797a575efae997fd9d2
[ "Apache-2.0" ]
1
2021-10-02T19:36:17.000Z
2021-11-24T14:31:29.000Z
tensorlayer/layers/padding.py
lllcho/tensorlayer
87591b4945a6a67dfb4ea797a575efae997fd9d2
[ "Apache-2.0" ]
5
2020-12-27T09:03:23.000Z
2021-12-03T20:36:18.000Z
# -*- coding: utf-8 -*- from .core import * from .. import _logging as logging import tensorflow as tf __all__ = [ 'PadLayer', ] class PadLayer(Layer): """ The :class:`PadLayer` class is a padding layer for any mode and dimension. Please see `tf.pad <https://www.tensorflow.org/api_docs/python/tf/pad...
28.645833
135
0.613091
1d52ca01d4041e849201478afbdbdd604daf29e9
1,122
py
Python
planet/vendor/html5lib/treewalkers/soup.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
1
2016-05-09T10:18:18.000Z
2016-05-09T10:18:18.000Z
planet/vendor/html5lib/treewalkers/soup.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
4
2015-09-04T06:26:22.000Z
2021-09-04T12:33:32.000Z
planet/vendor/html5lib/treewalkers/soup.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
3
2015-09-04T05:44:12.000Z
2018-05-11T13:06:03.000Z
import gettext _ = gettext.gettext from BeautifulSoup import BeautifulSoup, Declaration, Comment, Tag import _base class TreeWalker(_base.NonRecursiveTreeWalker): def getNodeDetails(self, node): if isinstance(node, BeautifulSoup): # Document or DocumentFragment return (_base.DOCUMENT,) ...
30.324324
74
0.657754
1d52fb5ba28cfd380a18330a3c6fef11a6bd9cd2
18,168
py
Python
tests/test_xml_file.py
rcasteran/jarvis4se
17a276c7c2b831ca6efdb279d38624b54c0246e8
[ "MIT" ]
4
2022-02-17T15:41:40.000Z
2022-03-25T09:00:08.000Z
tests/test_xml_file.py
rcasteran/jarvis4se
17a276c7c2b831ca6efdb279d38624b54c0246e8
[ "MIT" ]
13
2022-02-17T10:54:13.000Z
2022-03-28T08:05:06.000Z
tests/test_xml_file.py
rcasteran/jarvis4se
17a276c7c2b831ca6efdb279d38624b54c0246e8
[ "MIT" ]
1
2022-03-03T16:42:33.000Z
2022-03-03T16:42:33.000Z
"""Module that contains tests to check that xml file has been written""" import os from pathlib import Path from conftest import get_jarvis4se, remove_xml_file from xml_adapter import XmlParser3SE jarvis4se = get_jarvis4se() xml_parser = XmlParser3SE() def test_generate_xml_file_template(): """Notebook equivale...
36.263473
96
0.626541
1d530a4598d41a49480474888f6d10a94048b3e6
2,944
py
Python
object_status/admin.py
zachtylr21/django-object-status
d52f5c05826e2a3b4aad3e758c00fa6c695f2168
[ "BSD-2-Clause" ]
1
2020-07-03T21:40:54.000Z
2020-07-03T21:40:54.000Z
object_status/admin.py
zachtylr21/django-object-status
d52f5c05826e2a3b4aad3e758c00fa6c695f2168
[ "BSD-2-Clause" ]
null
null
null
object_status/admin.py
zachtylr21/django-object-status
d52f5c05826e2a3b4aad3e758c00fa6c695f2168
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from .models import IN_PROGRESS, IN_PRODUCTION, NEEDS_REVIEW from .utils import StatusPermissions, StatusEmail class StatusBaseView: def has_change_permission(self, request, obj=None): """Returns true if the current user has permission to change the requested object."...
43.940299
97
0.724185
1d5326581295c5a53eb5b9354ed556f287959487
34,348
py
Python
airflow/models/dagrun.py
nguyenmphu/airflow
c14aed3acbaa9699331722ffc6ae458f9b31ba6e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-07-30T16:28:47.000Z
2021-08-03T13:52:32.000Z
airflow/models/dagrun.py
nguyenmphu/airflow
c14aed3acbaa9699331722ffc6ae458f9b31ba6e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2022-02-14T19:44:01.000Z
2022-02-27T20:28:04.000Z
airflow/models/dagrun.py
nguyenmphu/airflow
c14aed3acbaa9699331722ffc6ae458f9b31ba6e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.571429
109
0.613427
1d5368e6ca2dbf8e675e999b2a318a4d3b3cb144
8,199
py
Python
python/hsml/resources.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
8
2021-09-14T08:40:34.000Z
2022-03-23T23:18:56.000Z
python/hsml/resources.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
46
2021-11-03T13:17:13.000Z
2022-03-28T09:44:38.000Z
python/hsml/resources.py
logicalclocks/machine-learning-api
26cc2df6a998d53ed2726d4ee6bc43310e64c124
[ "Apache-2.0" ]
2
2021-09-13T15:27:35.000Z
2021-12-16T21:11:32.000Z
# # Copyright 2022 Logical Clocks AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.027344
156
0.66191
1d53774f7ee081363d538170d299c7f58bf7f8fa
1,557
py
Python
examples/directory_player.py
devdave/PyBASS3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
2
2022-01-10T12:05:23.000Z
2022-01-19T18:39:51.000Z
examples/directory_player.py
devdave/pybass3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
null
null
null
examples/directory_player.py
devdave/pybass3
d8fbb665f3956d35ecfef57ef5e21263678e1739
[ "MIT" ]
null
null
null
import pathlib import time import argparse import msvcrt from pybass3 import Song from pybass3.playlist import Playlist def kbfunc(): x = msvcrt.kbhit() if x: ret = ord(msvcrt.getch()) else: ret = 0 return ret def main(dir_path): dir_path = pathlib.Path(dir_path) playlist ...
22.897059
50
0.501606
1d53ca2d3f8898a09d287470f79682c42d6612f6
1,364
py
Python
omh_nbi/handlers/onu_mib_reset.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/onu_mib_reset.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/onu_mib_reset.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Broadband Forum # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.1
101
0.763196
1d54074dc43ddaf6cb5240721e529dae52de25b1
18,096
py
Python
mindspore/ops/operations/__init__.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
1
2021-11-19T14:21:45.000Z
2021-11-19T14:21:45.000Z
mindspore/ops/operations/__init__.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/__init__.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
# Copyright 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 agreed to...
32.085106
127
0.631079
1d542dcc0df3361456ac4abc2617c6aa02e49e58
2,383
py
Python
doc/sphinx/makeplots.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
doc/sphinx/makeplots.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
doc/sphinx/makeplots.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Create plots corresponding to each sample setplot function. Search for all files of the form setplot_*.py and loop over them. Also create .rst files for each example. The doc string for each setplot file should start with at title underlined with ===, followed by a brief description. These are used in the rst ...
36.661538
124
0.636593
1d543add3d5dee6dd574a264d0ce410eb27d5e76
4,185
py
Python
docs/examples/code/effective_area.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
6
2018-06-19T16:01:35.000Z
2020-05-21T20:02:53.000Z
docs/examples/code/effective_area.py
bhokansonfasig/pyrex
8b2abc954f2cf4945424042f33847b783c72dcfa
[ "MIT" ]
4
2018-01-19T14:52:33.000Z
2021-09-02T17:20:07.000Z
examples/effective_area.py
abigailbishop/pyrex
10ba2e9f4c8820f4fcf5f00bd866927dacb0b2b5
[ "MIT" ]
5
2018-01-19T14:49:16.000Z
2021-01-21T12:34:59.000Z
import numpy as np import matplotlib.pyplot as plt import pyrex import pyrex.custom.ara as ara # First let's set the number of events that we will be throwing at each energy, # and the energies we will be using. As stated in the warning, the number of # events is set low to speed up the example, but that means the res...
42.704082
80
0.704898
1d5486b57eeed90d2b189f1b3f20aad10e139e1e
292
py
Python
timed_links/admin.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
2
2020-07-29T17:35:31.000Z
2021-06-06T11:37:49.000Z
timed_links/admin.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
4
2020-10-28T19:06:02.000Z
2021-01-11T16:06:46.000Z
timed_links/admin.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
null
null
null
from django.contrib import admin # for TimedLinks class TimedLinkAdmin(admin.ModelAdmin): list_display = ['path', 'redirect_url', 'open_time', 'close_time', 'number_of_requests'] ordering = ['-modified_at'] readonly_fields = ('created_at', 'modified_at', 'number_of_requests',)
32.444444
92
0.729452
1d548fa71e67b0a06d42c4d37d28087d6f620b77
914
py
Python
tests/conftest.py
butsuri43/hepdata_maker
b241e9fc89bd79ac762d3a123be33a2bdd2a8b02
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
butsuri43/hepdata_maker
b241e9fc89bd79ac762d3a123be33a2bdd2a8b02
[ "Apache-2.0" ]
9
2021-09-07T07:11:17.000Z
2021-09-07T18:33:34.000Z
tests/conftest.py
butsuri43/hepdata_maker
b241e9fc89bd79ac762d3a123be33a2bdd2a8b02
[ "Apache-2.0" ]
null
null
null
import pytest import os import pathlib import distutils.dir_util # fixture 'datadir' copied directly from: # https://github.com/scikit-hep/pyhf/blob/master/tests/test_export.py @pytest.fixture(scope='function') def datadir(tmpdir, request): """ Fixture responsible for searching a folder with the same name of ...
35.153846
95
0.722101
1d549c37c105074391be4da6afd247563a8676fb
2,677
py
Python
privacy/ldiversity.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
privacy/ldiversity.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
privacy/ldiversity.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
import pandas as pd from utils import GEN_DELIMITER def div(ci): return ci.nunique() # np.unique(ci).size def concat_label(l1: any, l2: any) -> tuple: def get_values(g): if g.startswith("{"): return set(g[1:-1].split(GEN_DELIMITER)) else: return {g} new = [] ...
25.990291
93
0.587598
1d54c39680ef7fd485f9633cc2d24ddd9bc5a23f
20,495
py
Python
weasyl/controllers/profile.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
weasyl/controllers/profile.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
weasyl/controllers/profile.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
from pyramid import httpexceptions from pyramid.response import Response from libweasyl import staff from weasyl import ( character, collection, commishinfo, define, favorite, folder, followuser, frienduser, journal, macro, media, profile, shout, submission, pagination) from weasyl.controllers.decorators ...
38.38015
132
0.672213
1d54d36342af95d3b9b2634f971cf9a5d66daa7d
15,153
py
Python
pyointillism_pop50_selection__mutation_crossover_random - not gaus.py
kashiy/optimized_pyointillism
61755ecb26951f0131c9a73524e44b0c302d46b8
[ "MIT" ]
null
null
null
pyointillism_pop50_selection__mutation_crossover_random - not gaus.py
kashiy/optimized_pyointillism
61755ecb26951f0131c9a73524e44b0c302d46b8
[ "MIT" ]
null
null
null
pyointillism_pop50_selection__mutation_crossover_random - not gaus.py
kashiy/optimized_pyointillism
61755ecb26951f0131c9a73524e44b0c302d46b8
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------- # MIT License # If you use this in something awesome, credit would be nice but isn't required # Written by Keilan # Website: www.scholtek.com # Github: https://github.com/Keilan # ----------------------------------...
36.251196
117
0.537055
1d55229e8c3160452efb49e21368b945fbac46b9
1,130
py
Python
Projects/P0/Task4.py
akhopkar01/Data-structures-and-Algorithms
bf8681179d3443d62f8a26332ce06106fb2dfdf6
[ "MIT" ]
1
2020-09-10T15:48:16.000Z
2020-09-10T15:48:16.000Z
Projects/P0/Task4.py
akhopkar01/Data-structures-and-Algorithms
bf8681179d3443d62f8a26332ce06106fb2dfdf6
[ "MIT" ]
null
null
null
Projects/P0/Task4.py
akhopkar01/Data-structures-and-Algorithms
bf8681179d3443d62f8a26332ce06106fb2dfdf6
[ "MIT" ]
null
null
null
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 4: The telephone company want to i...
24.565217
95
0.721239
1d554799be1d02b75d53e529102d13ed26d1ccac
1,505
py
Python
recipes/recipe_modules/support_3pp/build.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/support_3pp/build.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/support_3pp/build.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from . import run_script def run_installation(api, workdir, spec): """Actually runs build phase of the given `spec` within the provided `workdir`. Th...
39.605263
80
0.733555
1d554d0e61ad706bf0a95e85840afe3e5945b199
2,486
py
Python
HW2/dbsys-hw2/Query/Operators/TableScan.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW2/dbsys-hw2/Query/Operators/TableScan.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW2/dbsys-hw2/Query/Operators/TableScan.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
from Query.Operator import Operator class TableScan(Operator): def __init__(self, relId, schema, **kwargs): if relId and schema: super().__init__(**kwargs) self.relId = relId self.relSchema = schema else: raise ValueError("Invalid relation name or schema for a table scan") #...
29.247059
89
0.71078
1d557c148f305116933a141536b928c8ffe912b4
6,853
py
Python
libapparmor/utils/pyronia/rule/ptrace.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
libapparmor/utils/pyronia/rule/ptrace.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
libapparmor/utils/pyronia/rule/ptrace.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
# ---------------------------------------------------------------------- # Copyright (C) 2015 Christian Boltz <apparmor@cboltz.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License as published by the Free Software ...
38.284916
180
0.597403
1d558cac72bb61c2d279e52f7cacccc571c5496b
4,617
py
Python
sdks/python/appcenter_sdk/models/UserInteractionMetricsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/UserInteractionMetricsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/UserInteractionMetricsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class UserInteractio...
33.215827
121
0.635261
1d5593c494aa1be5798e0e4490904e1d47c1e110
10,565
py
Python
neutron/tests/unit/plugins/ml2/_test_mech_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/plugins/ml2/_test_mech_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/plugins/ml2/_test_mech_agent.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
34.301948
78
0.613914
1d559dbb7ba613719b1355564ab81769c7f002c3
7,089
py
Python
tests/components/canary/test_sensor.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
2
2022-01-24T18:59:56.000Z
2022-02-04T22:12:48.000Z
tests/components/canary/test_sensor.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/canary/test_sensor.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""The tests for the Canary sensor platform.""" import copy import unittest from unittest.mock import Mock from homeassistant.components.canary import DATA_CANARY, sensor as canary from homeassistant.components.canary.sensor import ( ATTR_AIR_QUALITY, SENSOR_TYPES, STATE_AIR_QUALITY_ABNORMAL, STATE_AIR...
34.246377
85
0.655946
1d55a08fed6f3b134edaf8a866be0202c0464455
162
py
Python
practice/6.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
1
2020-01-15T11:04:16.000Z
2020-01-15T11:04:16.000Z
practice/6.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
2
2021-03-31T19:36:19.000Z
2021-06-10T22:29:26.000Z
practice/6.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
null
null
null
#Complete the script so that it prints out a list containing letters d, e, f. letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] print(letters[3:6])
40.5
78
0.555556
1d55ac253ee29d8210bd04becd5ff5f12cf0c1ca
26,892
py
Python
sdk/translation/azure-ai-translation-document/azure/ai/translation/document/_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/translation/azure-ai-translation-document/azure/ai/translation/document/_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/translation/azure-ai-translation-document/azure/ai/translation/document/_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import json import datetime from typing import Any, List, Union, TYPE_CHECKING, overload, Optional from azure.core.tracing.decorator import distributed_trace from azure...
50.078212
118
0.683921
1d55b7caba8ba79809ca9cc2ff651048dae2ab01
19,147
py
Python
projects/TextDet/textdetection/modeling/roi_heads/box_head_others.py
AzeroGYH/detectron2_crpn
617d6a67a95945915e36e0fad4a7739331881bbe
[ "Apache-2.0" ]
null
null
null
projects/TextDet/textdetection/modeling/roi_heads/box_head_others.py
AzeroGYH/detectron2_crpn
617d6a67a95945915e36e0fad4a7739331881bbe
[ "Apache-2.0" ]
null
null
null
projects/TextDet/textdetection/modeling/roi_heads/box_head_others.py
AzeroGYH/detectron2_crpn
617d6a67a95945915e36e0fad4a7739331881bbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import numpy as np from typing import List import fvcore.nn.weight_init as weight_init import torch from torch import nn, cat from torch.nn import functional as F from detectron2.config import configurable from detectron2.layers import Conv2d, Conv...
36.332068
105
0.595811
1d55bcdd2a2ec0d8f1e2380ccbd211a186aeee04
494
py
Python
alipay/aop/api/response/AlipayOpenMiniAliminiabilityprodJsapiCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenMiniAliminiabilityprodJsapiCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenMiniAliminiabilityprodJsapiCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenMiniAliminiabilityprodJsapiCreateResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniAliminiabilityprodJsapiCreateResponse, self).__init__() def...
30.875
124
0.803644
1d55cef5d9097683d9ec9255a88654883cc19b43
9,787
py
Python
test/test_ip4_irb.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
1
2019-04-04T06:16:55.000Z
2019-04-04T06:16:55.000Z
test/test_ip4_irb.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
null
null
null
test/test_ip4_irb.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """IRB Test Case HLD: **config** - L2 MAC learning enabled in l2bd - 2 routed interfaces untagged, bvi (Bridge Virtual Interface) - 2 bridged interfaces in l2bd with bvi **test** - sending ip4 eth pkts between routed interfaces - 2 routed interfaces - 2 bridged in...
35.33213
79
0.617247
1d55d535734c7207c38b97d0d14c52038eadbfe2
8,118
py
Python
model/NeuralNetwork.py
drixlerangelo/multilayer-perceptron
64c0fa5007c44d2bee158d17edd973bdc34aa1fc
[ "MIT" ]
null
null
null
model/NeuralNetwork.py
drixlerangelo/multilayer-perceptron
64c0fa5007c44d2bee158d17edd973bdc34aa1fc
[ "MIT" ]
null
null
null
model/NeuralNetwork.py
drixlerangelo/multilayer-perceptron
64c0fa5007c44d2bee158d17edd973bdc34aa1fc
[ "MIT" ]
null
null
null
import numpy as np from tools import JsonProcessor from model.Activation import Activation from model.Loss import Loss from model.Optimizer import Optimizer class NeuralNetwork: """Neural Network model """ def __init__( self, input_size, output_size, output...
34.253165
114
0.629589
1d55e6e732ab0f605f1b441005216a7ddd035e2f
10,977
py
Python
tests/components/light/test_rfxtrx.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
tests/components/light/test_rfxtrx.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
tests/components/light/test_rfxtrx.py
SKarthick5121995/karthickmaduraai
d5498dfb83e9bb57fff16db854ae3e15c1e15425
[ "MIT" ]
null
null
null
"""The tests for the Rfxtrx light platform.""" import unittest from homeassistant.components import rfxtrx as rfxtrx_core from homeassistant.components.light import rfxtrx from unittest.mock import patch from tests.common import get_test_home_assistant class TestLightRfxtrx(unittest.TestCase): """Test the Rfxtr...
41.737643
77
0.594425
1d564f8aa696b253f21ada1994c982ef3741e9ef
15,744
py
Python
utils.py
NingMiao/mfcvae
6c6b83bd05fdc618db3976da5faf54838af7e334
[ "MIT" ]
20
2021-06-10T00:26:26.000Z
2022-03-30T01:28:01.000Z
utils.py
NingMiao/mfcvae
6c6b83bd05fdc618db3976da5faf54838af7e334
[ "MIT" ]
1
2022-03-03T16:40:30.000Z
2022-03-04T14:49:46.000Z
utils.py
NingMiao/mfcvae
6c6b83bd05fdc618db3976da5faf54838af7e334
[ "MIT" ]
8
2021-06-13T08:53:33.000Z
2022-03-14T06:22:00.000Z
from scipy.optimize import linear_sum_assignment as linear_assignment import numpy as np # import collections import torch import torch.nn as nn import torch.nn.utils.weight_norm as wn import yaml import argparse def cluster_acc_old(y_true, y_pred): """ Compute clustering accuracy via the Kuhn-Munkres algori...
37.308057
149
0.654535
1d5670d7c01b23915073c5334b42c41ad24b18ac
6,123
py
Python
tests/chainer_tests/optimizers_tests/test_optimizers_by_linear_model.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
tests/chainer_tests/optimizers_tests/test_optimizers_by_linear_model.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
tests/chainer_tests/optimizers_tests/test_optimizers_by_linear_model.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
import unittest import numpy import six import chainer from chainer import cuda import chainer.functions as F import chainer.links as L from chainer import optimizers from chainer import testing from chainer.testing import attr from chainer.testing import condition class LinearModel(object): UNIT_NUM = 10 ...
29.157143
79
0.646252
1d568c5c7da906bb93db2af6de2ca13e2edc1d10
1,502
py
Python
alipay/aop/api/domain/AlipayBossFncGfsettleprodPoamountQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayBossFncGfsettleprodPoamountQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayBossFncGfsettleprodPoamountQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayBossFncGfsettleprodPoamountQueryModel(object): def __init__(self): self._arrangement_no = None self._ip_role_id = None @property def arrangement_no(self): r...
26.821429
79
0.620506
1d5702f71405004544a70e2c8782412e37a8d988
12,526
py
Python
supriya/enums.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/enums.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/enums.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from uqbar.enums import IntEnumeration, StrictEnumeration class AddAction(IntEnumeration): """ An enumeration of scsynth node add actions. """ ### CLASS VARIABLES ### ADD_TO_HEAD = 0 ADD_TO_TAIL = 1 ADD_BEFORE = 2 ADD_AFTER = 3 REPLACE = 4 class BinaryOperat...
21.746528
87
0.604024
1d570eb68d08a7cd235c02652910e9563d5990cf
327
py
Python
src/pandas_profiling_study/report/presentation/flavours/widget/variable_info.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/flavours/widget/variable_info.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
null
null
null
src/pandas_profiling_study/report/presentation/flavours/widget/variable_info.py
lucasiscoviciMoon/pandas-profiling-study
142d3b0f5e3139cdb531819f637a407682fa5684
[ "MIT" ]
1
2020-04-25T15:20:39.000Z
2020-04-25T15:20:39.000Z
from ipywidgets import widgets from .....report.presentation.core import VariableInfo from .....report.presentation.flavours.html import templates class WidgetVariableInfo(VariableInfo): def render(self): return widgets.HTML( templates.template("variable_info.html").render(**self.content) ...
27.25
75
0.721713
1d5715f0837f9134b6d634c0d3a3ae49fa8f8cf1
1,542
py
Python
Scripts/ass_editor.py
seamile/Weeds
8b05174ca26b8aa7cc79653ccb7d483bc58f0ed1
[ "MIT" ]
9
2017-11-18T06:44:43.000Z
2018-08-25T11:14:53.000Z
Scripts/ass_editor.py
seamile/Weeds
8b05174ca26b8aa7cc79653ccb7d483bc58f0ed1
[ "MIT" ]
null
null
null
Scripts/ass_editor.py
seamile/Weeds
8b05174ca26b8aa7cc79653ccb7d483bc58f0ed1
[ "MIT" ]
3
2017-11-18T06:45:53.000Z
2017-12-26T14:53:26.000Z
#!/usr/bin/env python # coding: utf8 import re stime = re.compile('\d{1,2}\:\d\d\:\d\d[,.]\d\d') def stime_add(strtime, seconds): strtime = strtime.replace(',', '.') h, m, s = [float(i) for i in strtime.split(':')] total = h * 3600 + m * 60 + s + seconds s = total % 60 total -= s m = total % ...
23.723077
59
0.549935
1d571ccf3c6cc16881917655ca5f20846bd83222
17,487
py
Python
zerver/lib/test_helpers.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/lib/test_helpers.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/lib/test_helpers.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
from contextlib import contextmanager from typing import ( cast, Any, Callable, Dict, Generator, Iterable, Iterator, List, Mapping, Optional, Set, Sized, Tuple, Union, IO, Text, TypeVar ) from django.core import signing from django.urls.resolvers import LocaleRegexURLResolver from django.conf import settings f...
37.768898
206
0.63836
1d574e88ca311487aa55614eeea22e5a50f19582
1,785
py
Python
portal/forms.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
3
2017-11-20T23:03:20.000Z
2020-02-15T19:32:23.000Z
portal/forms.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
3
2019-12-12T09:26:55.000Z
2021-06-10T19:24:19.000Z
portal/forms.py
asntech/jaspar
ae86731e8f197d6830e6d778835f218d4eb1b9e8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ## Author: Aziz Khan ## License: GPL v3 ## Copyright © 2017 Aziz Khan <azez.khan__AT__gmail.com> from django import forms from .models import Matrix, MatrixAnnotation class ContactForm(forms.Form): ''' Form for contact us page ''' #from_name = forms.CharField(label='Your name', re...
31.875
111
0.709244
1d577c89318ba0219148cf3b2a5d470e72e32395
1,790
py
Python
mtgjson5/classes/mtgjson_prices.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
mtgjson5/classes/mtgjson_prices.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
mtgjson5/classes/mtgjson_prices.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
""" MTGJSON Singular Prices.Card Object """ from typing import Any, Dict, Optional class MtgjsonPricesObject: """ MTGJSON Singular Prices.Card Object """ source: str provider: str date: str buy_normal: Optional[float] buy_foil: Optional[float] sell_normal: Optional[float] sell...
32.545455
87
0.594413
1d577f4c6d72c18f87171ee18abb0ff143698e6c
15,149
py
Python
nova/virt/block_device.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/virt/block_device.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/virt/block_device.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.644706
79
0.615354
1d579145c1bc0c9fb86395825213c8ae41c4895a
73
py
Python
carla/recourse_methods/autoencoder/losses/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/autoencoder/losses/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/autoencoder/losses/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .losses import binary_crossentropy, csvae_loss, mse
18.25
56
0.794521
1d57a5e12526f7a12bbc4db637cbc50916af78c7
5,482
py
Python
tfx/components/trainer/component.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
2
2019-07-08T20:56:13.000Z
2020-08-04T17:07:26.000Z
tfx/components/trainer/component.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
null
null
null
tfx/components/trainer/component.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.910448
78
0.716527
1d57f0030dc66a3824172500b88505cbff1e6bc3
533
py
Python
by-subject/mathematics/trigonometric.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-subject/mathematics/trigonometric.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-subject/mathematics/trigonometric.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
import math def sin(rad, precision): ''' rad is angle in radians precision is a floating point number which defines the maximum precision returns the value of sin(rad) ''' rad = rad % math.pi i = 1 res = rad tmp = rad while 1: tmp = tmp * (-1.0) * rad * rad / (4 * i * i...
26.65
76
0.58349
1d5807c4698a65211a0b7397d5a2e6bf8411e95c
4,768
py
Python
scanning_bigger_than_frame.py
GemHunt/RealTimeCoinID
26449a1cc79f0698f7d4fd5b8dbb000a6c25f7c8
[ "MIT" ]
null
null
null
scanning_bigger_than_frame.py
GemHunt/RealTimeCoinID
26449a1cc79f0698f7d4fd5b8dbb000a6c25f7c8
[ "MIT" ]
null
null
null
scanning_bigger_than_frame.py
GemHunt/RealTimeCoinID
26449a1cc79f0698f7d4fd5b8dbb000a6c25f7c8
[ "MIT" ]
null
null
null
import numpy as np import serial import time import cv2 import cv2.cv as cv def deskew(src, pixel_shift): src_tri = np.zeros((3, 2), dtype=np.float32) dst_tri = np.zeros((3, 2), dtype=np.float32) rows, cols, ch = src.shape # Set your 3 points to calculate the Affine Transform src_tri[1] = [col...
33.577465
120
0.606544
1d58093a567352d111adee71ba97b7a967e49909
3,874
py
Python
product_analysis/utilities/clustering.py
STNichols/product_analysis
cba20f17d7f30da534ccd2c3fc14bdeb9564d25b
[ "BSD-2-Clause" ]
null
null
null
product_analysis/utilities/clustering.py
STNichols/product_analysis
cba20f17d7f30da534ccd2c3fc14bdeb9564d25b
[ "BSD-2-Clause" ]
1
2020-06-13T23:39:27.000Z
2020-06-13T23:39:27.000Z
product_analysis/utilities/clustering.py
STNichols/product_analysis
cba20f17d7f30da534ccd2c3fc14bdeb9564d25b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import pairwise_distances from sklearn.cluster import KMeans def cluster_score(data, cluster_assigns): """ Evaluate the score of the cluster assignments for n clusters using the pairwise distance of each point ...
36.54717
78
0.596799
1d581818e5319cb9db16907f514c4890eb40ac02
413
py
Python
src/DP/fib.py
bkpathak/Algorithms-collections
2f4f54709e6b6607473cfe07eb62a411c07b4f20
[ "Apache-2.0" ]
null
null
null
src/DP/fib.py
bkpathak/Algorithms-collections
2f4f54709e6b6607473cfe07eb62a411c07b4f20
[ "Apache-2.0" ]
null
null
null
src/DP/fib.py
bkpathak/Algorithms-collections
2f4f54709e6b6607473cfe07eb62a411c07b4f20
[ "Apache-2.0" ]
null
null
null
def fib(n, memo={}): # print(memo) if n in memo: return memo[n] if n <= 2: return 1 memo[n] = fib(n-1, memo) + fib(n-2, memo) return memo[n] def fib_tab(n): tab = [0 for i in range(n + 1)] tab[1] = 1 for i in range(2, n + 1): tab[i] = tab[i - 1] + tab[i - 2] ...
15.884615
45
0.486683
1d582fd9be5e61eed9b2d659cbc7fbabff275a4f
15,141
py
Python
python/simplejson_209/decoder.py
illingwo/sam-web-client
0947120a7be74f42ae68bbbe39e64022c410effe
[ "BSD-3-Clause" ]
null
null
null
python/simplejson_209/decoder.py
illingwo/sam-web-client
0947120a7be74f42ae68bbbe39e64022c410effe
[ "BSD-3-Clause" ]
null
null
null
python/simplejson_209/decoder.py
illingwo/sam-web-client
0947120a7be74f42ae68bbbe39e64022c410effe
[ "BSD-3-Clause" ]
null
null
null
"""Implementation of JSONDecoder """ import re import sys import struct from scanner import make_scanner def _import_c_scanstring(): try: from simplejson._speedups import scanstring return scanstring except ImportError: return None c_scanstring = _import_c_scanstring() __all__ = ['JSON...
35.879147
78
0.55353
1d583d0bae29306b0ee64b9d6810d92d7da55d37
73,962
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.049618
580
0.675577
1d586b2b956f0495641fdac4a2baccaa2e2fd7f9
1,560
py
Python
src/flower_examples/tf_cifar/download.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower_examples/tf_cifar/download.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower_examples/tf_cifar/download.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
1
2020-06-01T11:06:18.000Z
2020-06-01T11:06:18.000Z
# Copyright 2020 Adap GmbH. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
28.888889
86
0.650641
1d587c42c02bd86797387d32a0bcf5ca3ae0b95d
881
py
Python
botx/clients/methods/v3/chats/add_admin_role.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/v3/chats/add_admin_role.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/v3/chats/add_admin_role.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Method for promoting users to admins.""" from http import HTTPStatus from typing import List from uuid import UUID from botx.clients.methods.base import AuthorizedBotXMethod from botx.clients.methods.errors import ( bot_is_not_admin, chat_is_not_modifiable, chat_not_found, ) class AddAdminRole(Authori...
26.69697
61
0.706016
1d58ad51679c5a42cb413e0300ea892304b4c1c0
7,912
py
Python
drforest/dimension_reduction/save.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
2
2021-09-22T12:15:43.000Z
2022-01-04T12:59:50.000Z
drforest/dimension_reduction/save.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
drforest/dimension_reduction/save.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
import warnings import numpy as np import scipy.linalg as linalg from scipy import sparse from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import normalize from sklearn.utils import check_array, check_X_y from sklearn.utils.validation import check_is_fitted from .slices import slic...
36.62963
79
0.630056
1d58bac05baef3f246d56b1aadd03469d44fe0c1
2,160
py
Python
kusanagi/sdk/callee.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
kusanagi/sdk/callee.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
kusanagi/sdk/callee.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2021-05-16T17:40:21.000Z
2021-05-16T17:40:21.000Z
# Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) # Copyright (c) 2016-2021 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. from __future__ import ann...
27
93
0.652315
1d590421b335f97f932e63945ae763e082d3d8a0
862
py
Python
partnerclient/hfppnetwork/partner/appliance/partner_database_appliance_exception.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
7
2015-07-15T06:47:16.000Z
2020-10-17T20:51:09.000Z
partnerclient/hfppnetwork/partner/appliance/partner_database_appliance_exception.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
null
null
null
partnerclient/hfppnetwork/partner/appliance/partner_database_appliance_exception.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
8
2017-01-30T02:27:01.000Z
2021-04-21T04:15:48.000Z
""" Copyright (C) 2010 - 2013 TopCoder Inc., All Rights Reserved. This file defines the appliance exceptions. @version 1.0 (Healthcare Fraud Prevention - Partner Database Appliance - Assembly) @author: zeadom """ class PartnerDatabaseApplianceException(Exception): """It is used by all service methods to signal a...
34.48
100
0.771462
1d591a0f5940a301431ad331626c0a64ecfbee24
1,544
py
Python
lib/recorder.py
boranzhao/autonomous-driving-TOR-RL
b59f09a9e6393ddfbdf73509c2c0b433e21193bc
[ "MIT" ]
3
2021-05-11T21:48:56.000Z
2022-01-31T02:57:49.000Z
lib/recorder.py
boranzhao/autonomous-driving-TOR-RL
b59f09a9e6393ddfbdf73509c2c0b433e21193bc
[ "MIT" ]
null
null
null
lib/recorder.py
boranzhao/autonomous-driving-TOR-RL
b59f09a9e6393ddfbdf73509c2c0b433e21193bc
[ "MIT" ]
1
2021-05-08T05:28:40.000Z
2021-05-08T05:28:40.000Z
from gym.wrappers import Monitor class Recorder(Monitor): def __init__(self,env,directory,video_callable=None, force=False, resume=False, write_upon_reset=False, uid=None, mode=None): super().__init__(env,directory,video_callable=video_callable, force=force, resume=resume, ...
30.27451
116
0.642487
1d59324872f9787df364165469838b79d49caaf9
542
py
Python
workflows/20200508/original-request/make_scenario_csv.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
3
2020-04-02T23:38:02.000Z
2020-04-08T18:57:16.000Z
workflows/20200508/original-request/make_scenario_csv.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
24
2020-04-03T13:58:28.000Z
2021-04-27T02:12:07.000Z
workflows/20200508/original-request/make_scenario_csv.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
null
null
null
import pandas as pd if __name__ == '__main__': xlsx = pd.ExcelFile('scenarios.xlsx') print(xlsx.sheet_names) n_skip = 2 col_map = { "Day":"timestep", "Present for Test":"num_Presenting", "Admit to ICU":"num_OffVentInICU", } for ss, sheet in enumerate(xlsx.sheet_na...
24.636364
65
0.601476
1d5933740efca0ceccade7c697c804d4a690ee86
7,135
py
Python
start-project-django.py
tdsymonds/start-project-django
747cdf52e97c39eeba9d4d0264594ac170bf8f0a
[ "MIT" ]
null
null
null
start-project-django.py
tdsymonds/start-project-django
747cdf52e97c39eeba9d4d0264594ac170bf8f0a
[ "MIT" ]
null
null
null
start-project-django.py
tdsymonds/start-project-django
747cdf52e97c39eeba9d4d0264594ac170bf8f0a
[ "MIT" ]
null
null
null
# start-project-django.py# # https://github.com/tdsymonds/start-project-django # A python script to create a new Django project on a Debian/Ubuntu os. # Nginx, Gunicorn & Django stack using Supervisor with a MySQL DB # version 1.0, Dec. 2015 # by Tom Symonds import os import pwd import grp import getpass im...
25.573477
123
0.646111
1d593d46da614128be4313ee1bac442a15ffcae4
1,571
py
Python
cuor/organizations/tasks.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
cuor/organizations/tasks.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
cuor/organizations/tasks.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 UPR. # # CuOR is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Tasks for CuOR.""" from __future__ import absolute_import, print_function import sqlalchemy from celery import shared_tas...
35.704545
75
0.707193
1d595e8ea1e2e38fc63148e4e43ce176f4381ca6
7,697
py
Python
luna/gateware/interface/uart.py
asaioe99/luna_JP
276c9d86d2c964c7c4be149d721156d869c9489b
[ "BSD-3-Clause" ]
1
2021-02-25T01:43:12.000Z
2021-02-25T01:43:12.000Z
luna/gateware/interface/uart.py
kbeckmann/luna
befb33620d1c4267607a45f331b84bc196c7a8bf
[ "BSD-3-Clause" ]
null
null
null
luna/gateware/interface/uart.py
kbeckmann/luna
befb33620d1c4267607a45f331b84bc196c7a8bf
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of LUNA. # """ UART interface gateware.""" import unittest from nmigen import Elaboratable, Module, Signal, Cat from nmigen_soc import wishbone, memory from ..test import LunaGatewareTestCase, sync_test_case class UARTTransmitter(Elaboratable): """ Simple UART transitter. ...
31.416327
93
0.545667
1d5972d1f2f887479805f643a498305e18f95365
3,865
py
Python
lost_ds/functional/validation.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
1
2022-03-30T11:29:57.000Z
2022-03-30T11:29:57.000Z
lost_ds/functional/validation.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
lost_ds/functional/validation.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from lost_ds.functional.filter import is_multilabel from lost_ds.functional.split import split_by_empty from lost_ds.util import get_fs from lost_ds.geometry.api import LOSTGeometries def validate_empty_images(df): '''Remove empty entries for images where non-empty entries ...
34.81982
77
0.640362
1d59c87e5d51e358cb6d615646724b121690d000
2,802
py
Python
src/utils/all_utils.py
abhishekvarma12345/oneNeuron_pypi
054e6ffe5c75aa53f2eb390233e1b0987a65b942
[ "MIT" ]
null
null
null
src/utils/all_utils.py
abhishekvarma12345/oneNeuron_pypi
054e6ffe5c75aa53f2eb390233e1b0987a65b942
[ "MIT" ]
null
null
null
src/utils/all_utils.py
abhishekvarma12345/oneNeuron_pypi
054e6ffe5c75aa53f2eb390233e1b0987a65b942
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np import joblib # used for saving model as binary file from matplotlib.colors import ListedColormap import logging plt.style.use("fivethirtyeight") #style for the graphs def prepare_data(df): """It is used to seperate dependent and Independent features ...
35.025
103
0.680585
1d59f151b78918f74e11636cb338701d42ccb2c1
10,922
py
Python
mmselfsup/core/hooks/optimizer_hook.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
mmselfsup/core/hooks/optimizer_hook.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
mmselfsup/core/hooks/optimizer_hook.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
# Copyright (c) OpenMMLab. All rights reserved. from mmcv.runner import (HOOKS, Fp16OptimizerHook, OptimizerHook, allreduce_grads) from mmcv.utils import TORCH_VERSION, _BatchNorm, digit_version @HOOKS.register_module() class DistOptimizerHook(OptimizerHook): """Optimizer hook for distrib...
41.846743
79
0.571965
1d5a346a442e3c463d121a3ff8e9bb916c1e75a0
1,318
py
Python
tests/test_pow.py
jrhunter3/Basic_Dockerized_PoW
af0f80f7373ed0a3878aadcb79ff54c37dbf3fa6
[ "MIT" ]
null
null
null
tests/test_pow.py
jrhunter3/Basic_Dockerized_PoW
af0f80f7373ed0a3878aadcb79ff54c37dbf3fa6
[ "MIT" ]
null
null
null
tests/test_pow.py
jrhunter3/Basic_Dockerized_PoW
af0f80f7373ed0a3878aadcb79ff54c37dbf3fa6
[ "MIT" ]
null
null
null
# # Pow Default Tests # # # runtest script. # runs test with respect to some paramters # currently only os import sys import pytest import time # possible sys.platform results: # http://stackoverflow.com/questions/446209/possible-values-from-sys-platform @pytest.mark.notonosx @pytest.mark.run(order=1) @pytest.mar...
22.724138
129
0.626707
1d5a4ba2663ccc2b89f151d849224fe1172e87fd
762
py
Python
shader.py
cgmckay/CharacterCreator
421f94c8113954805a5268e1b19123cc194b2cc2
[ "MIT" ]
1
2019-12-02T17:32:28.000Z
2019-12-02T17:32:28.000Z
shader.py
cgmckay/CharacterCreator
421f94c8113954805a5268e1b19123cc194b2cc2
[ "MIT" ]
null
null
null
shader.py
cgmckay/CharacterCreator
421f94c8113954805a5268e1b19123cc194b2cc2
[ "MIT" ]
null
null
null
from OpenGL.GL import * import ctypes class Shader(): def __init__(self, filepaths): self.filepaths = filepaths self.shaderIDs = {} for shader_type in filepaths.keys(): shader_id = glCreateShader(shader_type) self.shaderIDs[shader_type] = shader_id path ...
34.636364
77
0.599738
1d5a5410e0fbbc5f959941664d837917dad3bf33
423
py
Python
tests/test.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
4
2015-01-21T20:57:09.000Z
2015-01-27T14:43:12.000Z
tests/test.py
tsalmon/WikiMD
de94df73b46b274096ea2e3fb52d69fdea26db2f
[ "MIT" ]
5
2015-01-07T07:42:06.000Z
2021-03-23T09:20:55.000Z
tests/test.py
tsalmon/WikiMD
de94df73b46b274096ea2e3fb52d69fdea26db2f
[ "MIT" ]
1
2017-05-21T12:59:36.000Z
2017-05-21T12:59:36.000Z
# -*- coding: UTF-8 -*- import sys import platform if platform.python_version() < '2.7': import unittest2 as unittest else: import unittest from os.path import dirname if __name__ == '__main__': here = dirname(__file__) sys.path.insert(0, '%s/..' % here) suite = unittest.defaultTestLoader.discove...
22.263158
53
0.664303
1d5a58d5bdf24a99dc2a0430c07592f71b753af6
2,704
py
Python
scripts/fiber.py
edwardoughton/open-rigbi
c861bbc469c9dbab7a2214a0cedcca68d96ef1c6
[ "MIT" ]
null
null
null
scripts/fiber.py
edwardoughton/open-rigbi
c861bbc469c9dbab7a2214a0cedcca68d96ef1c6
[ "MIT" ]
null
null
null
scripts/fiber.py
edwardoughton/open-rigbi
c861bbc469c9dbab7a2214a0cedcca68d96ef1c6
[ "MIT" ]
null
null
null
""" Process fiber. """ import os import configparser import pandas as pd import geopandas as gpd from shapely.geometry import mapping, MultiLineString import fiona from misc import get_countries CONFIG = configparser.ConfigParser() CONFIG.read(os.path.join(os.path.dirname(__file__), 'script_config.ini')) BASE_PATH =...
29.075269
93
0.526997
1d5aa3153ca4fd697f26010d08020bbc9efd2b28
16,523
py
Python
context_exploration/train_model.py
EmbodiedVision/explorethecontext
d4bd0d4af980de16ede642c987878a55e089f736
[ "MIT" ]
null
null
null
context_exploration/train_model.py
EmbodiedVision/explorethecontext
d4bd0d4af980de16ede642c987878a55e089f736
[ "MIT" ]
null
null
null
context_exploration/train_model.py
EmbodiedVision/explorethecontext
d4bd0d4af980de16ede642c987878a55e089f736
[ "MIT" ]
null
null
null
""" Copyright 2021 Max-Planck-Gesellschaft Code author: Jan Achterhold, jan.achterhold@tuebingen.mpg.de Embodied Vision Group, Max Planck Institute for Intelligent Systems, Tübingen This source code is licensed under the MIT license found in the LICENSE.md file in the root directory of this source tree or at https://o...
31.472381
88
0.641167
1d5ac596c8935afd7650d77865992568146a871a
143,807
py
Python
core/domain/exp_domain.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/domain/exp_domain.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/domain/exp_domain.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
41.075978
101
0.620936
1d5ac7f4173a793d6d6548914aeb8bf24fd8bd30
1,373
py
Python
StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_stream_operator_stateful.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_stream_operator_stateful.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/OLD_EXAMPLES/example_stream_operator_stateful.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of the stateless single stream source """ if __name__ == '__main__': if __package__ is None: import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) from Agent import * from ListOperators import stream_func #...
26.403846
81
0.653314
1d5ac8d4ff08a8d7c67d199239c37c5c3a80e9ac
1,209
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_template_specs_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_template_specs_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2019_06_01_preview/models/_template_specs_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.558824
94
0.66005
1d5acae9ced4c4291aec66fd493a200ac1d4a5ea
6,031
py
Python
mytrain.py
iDXM/Point-GNN.pytorch
42f89853150fb544fca054eeb4a6a6726b735f9c
[ "MIT" ]
33
2020-10-15T14:37:51.000Z
2022-03-25T09:19:53.000Z
mytrain.py
iDXM/Point-GNN.pytorch
42f89853150fb544fca054eeb4a6a6726b735f9c
[ "MIT" ]
10
2020-10-15T06:32:56.000Z
2021-04-06T12:29:15.000Z
mytrain.py
iDXM/Point-GNN.pytorch
42f89853150fb544fca054eeb4a6a6726b735f9c
[ "MIT" ]
14
2020-10-19T06:41:54.000Z
2022-01-17T08:42:40.000Z
import torch from util.config_util import save_config, save_train_config, \ load_train_config, load_config from models.box_encoding import get_box_decoding_fn, get_box_encoding_fn, get_encoding_len import os from dataset.kitti_dataset import KittiDataset from kitty_dataset import DataProvider from model import * im...
41.881944
174
0.64782
1d5ae34ccf31dd94fb3094350d5873de610ed9bc
8,852
py
Python
python_modules/dagster/dagster_tests/core_tests/storage_tests/test_assets.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/storage_tests/test_assets.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/storage_tests/test_assets.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import tempfile import time from contextlib import contextmanager import pytest from dagster import ( AssetKey, AssetMaterialization, AssetObservation, DagsterEventType, EventRecordsFilter, Field, Output, execute_pipeline, job, op, pipeline, solid, ) from dagster.core.d...
37.991416
100
0.684252
1d5b1964b3ecd42deecb3ead6ba65442fcfbe87c
3,658
py
Python
setup.py
thomashopf/EVcouplings-1
d3e4947d29b62537bd79215ce72b6eea18134850
[ "MIT" ]
1
2020-06-23T16:03:16.000Z
2020-06-23T16:03:16.000Z
setup.py
aggreen/EVcouplings
a3780dec6570ebec4facd62e9f968423f68c971d
[ "MIT" ]
null
null
null
setup.py
aggreen/EVcouplings
a3780dec6570ebec4facd62e9f968423f68c971d
[ "MIT" ]
2
2021-04-03T14:19:12.000Z
2021-04-05T17:34:32.000Z
from setuptools import setup, find_packages # Always prefer setuptools over distutils from codecs import open # To use a consistent encoding from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.md'), encoding='utf-8') as ...
35.514563
103
0.67988
1d5b506fabe75d3e252e82644fe23727a2d7caaf
1,020
py
Python
python/tvm/node.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/tvm/node.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/tvm/node.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.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...
39.230769
62
0.772549
1d5b6dd0a45460f2a9a7be64e59c00766d321507
5,031
py
Python
src/text.py
luzpaz/floor-planner
971334bb7054232035411419910bc860d5da9206
[ "MIT" ]
null
null
null
src/text.py
luzpaz/floor-planner
971334bb7054232035411419910bc860d5da9206
[ "MIT" ]
null
null
null
src/text.py
luzpaz/floor-planner
971334bb7054232035411419910bc860d5da9206
[ "MIT" ]
null
null
null
import sdl2 from view import FontSize class Text: """Wrapper class around text to be displayed. Contains the relative position and size to the application screen size (%), the font, and the text color.""" def __init__(self, relative_x = 0, relative_y = 0, font = FontSize.SMALL, color...
33.765101
80
0.631286
1d5bf98d237a112b17f6c8bfe8df6f3818bb529b
14,264
py
Python
src/benchsuite/core/controller.py
benchmarking-suite/benchmarking-common
97a075cc353e5237d0f1507d339a49e8c8afe9ac
[ "Apache-2.0" ]
1
2018-07-05T09:15:54.000Z
2018-07-05T09:15:54.000Z
src/benchsuite/core/controller.py
benchmarking-suite/benchmarking-common
97a075cc353e5237d0f1507d339a49e8c8afe9ac
[ "Apache-2.0" ]
1
2018-06-06T09:00:17.000Z
2018-06-06T09:00:17.000Z
src/benchsuite/core/controller.py
benchmarking-suite/benchsuite-core
97a075cc353e5237d0f1507d339a49e8c8afe9ac
[ "Apache-2.0" ]
null
null
null
# Benchmarking Suite # Copyright 2014-2017 Engineering Ingegneria Informatica S.p.A. # # 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 ...
43.093656
136
0.650729
1d5c7ae8967d237b10db9c49ce6673236161ad5a
1,077
py
Python
example/public/directory/__init__.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
null
null
null
example/public/directory/__init__.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
null
null
null
example/public/directory/__init__.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pyxer.base import * import os import os.path @controller def index(): c.dir = req.params.get("dir", os.path.dirname(__file__)) if os.path.isdir(c.dir): c.parent = os.path.split(c.dir)[0] c.files = [(name, os.path.join(c.dir, name), os.path.isdir(os.path.join(c.dir...
31.676471
125
0.63324
1d5ca0c076e12360745887ecf6be68e5e12d9839
13,091
py
Python
sockser/socks_receiver.py
blogresponder/socks2file
024d14fa7dc0cb2c6840bf4d50d6cbb6e7b85fba
[ "Apache-2.0" ]
2
2019-11-07T10:38:35.000Z
2019-11-07T12:13:37.000Z
sockser/socks_receiver.py
blogresponder/socks2file
024d14fa7dc0cb2c6840bf4d50d6cbb6e7b85fba
[ "Apache-2.0" ]
null
null
null
sockser/socks_receiver.py
blogresponder/socks2file
024d14fa7dc0cb2c6840bf4d50d6cbb6e7b85fba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import threading import sys import time from filesocket import filesocket '''path to temporary directory used for file sockets''' SOCKSER_DIR ='' '''SOCKS5 RFC described connection methods''' CONNECT = 1 BIND = 2 UDP_ASSOCIATE = 3 '''SOCKS5 RFC described...
35.57337
149
0.593385
1d5cc9e2041c14babdc4bbf83425f22703096d44
364
py
Python
pdbdb/migrations/0002_pdb_header.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
pdbdb/migrations/0002_pdb_header.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
2
2021-03-10T17:08:59.000Z
2021-09-29T17:40:48.000Z
pdbdb/migrations/0002_pdb_header.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-22 00:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pdbdb', '0001_initial'), ] operations = [ migrations.AddField( model_name='pdb', name='header', field=mo...
19.157895
47
0.574176
1d5ccd2b2f24686c1ed6f791b635cb8aff13c185
742
py
Python
BuildingDepot-v3.2.8/buildingdepot/DataService/config.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
BuildingDepot-v3.2.8/buildingdepot/DataService/config.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
BuildingDepot-v3.2.8/buildingdepot/DataService/config.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
""" DataService.config ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Contains the configuration definitions needed for the Dataservice. This sample config file for example requires that a DataService be registered in the CentralService with the name "ds1". @copyright: (c) 2016 SynergyLabs @license: UCSD License. See License file for ...
21.2
66
0.687332
1d5cef16c419558caef3dec8a282f34918bd137f
1,610
py
Python
virgil_crypto/tests/__init__.py
VirgilSecurity/crypto-python
dce0a816c76201631917777fd11a841a27b484ba
[ "BSD-3-Clause" ]
9
2016-11-07T07:01:04.000Z
2021-08-31T06:58:43.000Z
virgil_crypto/tests/__init__.py
VirgilSecurity/crypto-python
dce0a816c76201631917777fd11a841a27b484ba
[ "BSD-3-Clause" ]
2
2020-04-10T08:14:05.000Z
2021-03-24T02:49:08.000Z
virgil_crypto/tests/__init__.py
VirgilSecurity/crypto-python
dce0a816c76201631917777fd11a841a27b484ba
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2016-2018 Virgil Security Inc. # # Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # (1) Redistribution...
47.352941
75
0.763354
1d5cf88a0531364df2836f6a775ea39be9c8da8d
3,605
py
Python
influxdb_client/domain/integer_literal.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/integer_literal.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/integer_literal.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Inte...
25.567376
124
0.547295
1d5d118aa3d65206d9bf79675d4947735213b175
2,694
py
Python
tests/models/validators/v2_1_2/jsd_0fa00adf48698287.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_0fa00adf48698287.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_0fa00adf48698287.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Update NFV Profile data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, incl...
32.457831
78
0.596882
1d5d15eb4d6e740e6718b061f5387fd8b7c0372b
1,527
py
Python
datacube_stats/statistics/external.py
opendatacube/datacube-stats
14054f8820ddf2b79691996af8ac7d41e200fe49
[ "Apache-2.0" ]
10
2018-11-25T13:31:10.000Z
2021-04-13T13:08:45.000Z
datacube_stats/statistics/external.py
GeoscienceAustralia/datacube-stats
14054f8820ddf2b79691996af8ac7d41e200fe49
[ "Apache-2.0" ]
67
2018-02-26T05:53:35.000Z
2018-11-14T06:20:48.000Z
datacube_stats/statistics/external.py
opendatacube/datacube-stats
14054f8820ddf2b79691996af8ac7d41e200fe49
[ "Apache-2.0" ]
4
2019-08-26T00:57:34.000Z
2020-09-17T22:39:40.000Z
import os import sys import logging from pydoc import locate from typing import Iterable import xarray from datacube.model import Measurement from datacube_stats.statistics.core import Statistic, StatsProcessingError LOG = logging.getLogger(__name__) class ExternalPlugin(Statistic): """ Run externally def...
28.277778
95
0.674525
1d5d1ed48b61b084350acb489aea7a32f5aef3bd
3,272
py
Python
ws/resources/space.py
hyunghunny/efficientnet-pytorch
738dc06847eac40d443cfb7bd97c6b6957a23a66
[ "MIT" ]
null
null
null
ws/resources/space.py
hyunghunny/efficientnet-pytorch
738dc06847eac40d443cfb7bd97c6b6957a23a66
[ "MIT" ]
null
null
null
ws/resources/space.py
hyunghunny/efficientnet-pytorch
738dc06847eac40d443cfb7bd97c6b6957a23a66
[ "MIT" ]
null
null
null
import os import time import json from ws.shared.logger import * from flask import jsonify, request from flask_restful import Resource, reqparse class Space(Resource): def __init__(self, **kwargs): self.sm = kwargs['space_manager'] super(Space, self).__init__() def get(self, space_...
35.565217
91
0.577628
1d5d2483c933143ced4c37a8616a646ec7bf148a
5,316
py
Python
tests/test_EightDotThree.py
abrasive/pyfatfs
a35586bfa2b1d3f8d4638142407db68f9318b86d
[ "MIT" ]
5
2019-07-19T10:57:00.000Z
2020-11-10T03:17:41.000Z
tests/test_EightDotThree.py
abrasive/pyfatfs
a35586bfa2b1d3f8d4638142407db68f9318b86d
[ "MIT" ]
3
2020-04-15T22:06:10.000Z
2020-12-16T18:46:18.000Z
tests/test_EightDotThree.py
abrasive/pyfatfs
a35586bfa2b1d3f8d4638142407db68f9318b86d
[ "MIT" ]
5
2019-10-13T20:39:42.000Z
2020-12-15T17:52:37.000Z
# -*- coding: utf-8 -*- """Tests the 8DOT3 short name module.""" import string import random from unittest import mock import pytest from pyfatfs.EightDotThree import EightDotThree def test_bytename_set_invalid_length(): """Test that a byte name can only be set with the correct length.""" sfn = EightDotThr...
33.225
79
0.667983
1d5d7fb8bfbe74ead615bf4da476ffc570d6f7e9
140
py
Python
riberry_web/gql/__init__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
1
2020-09-01T15:34:52.000Z
2020-09-01T15:34:52.000Z
riberry_web/gql/__init__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
riberry_web/gql/__init__.py
srafehi/riberry_web
d4d57a5e54f10b725c55f6518fa74e24bd5b50ac
[ "MIT" ]
null
null
null
import riberry from autogqla.base import BaseModel from . import model, query, schema BaseModel.session_func = lambda: riberry.model.conn
20
51
0.807143
1d5da26ce5da2fb29031930f2d93f9fce74a973a
12,139
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_rootwrap/filters.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_rootwrap/filters.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_rootwrap/filters.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
34.782235
79
0.593377
1d5dbc072c3037c28c132a5059b635f0d0217dc5
4,320
py
Python
tests/h/presenters/annotation_html_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/presenters/annotation_html_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/presenters/annotation_html_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from unittest import mock import pytest import jinja2 from h.presenters.annotation_html import AnnotationHTMLPresenter class TestAnnotationHTMLPresenter: def _annotation(self, annotation=None, **kwargs): """Return an Annot...
32.238806
82
0.648611
1d5dc6a4ad14519e4f76f6af13af083a00174b4d
36,972
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/clouddebugger/v2/clouddebugger_v2_messages.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/clouddebugger/v2/clouddebugger_v2_messages.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/clouddebugger/v2/clouddebugger_v2_messages.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
"""Generated message classes for clouddebugger version v2. Examines the call stack and variables of a running application without stopping or slowing it down. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py imp...
39.373802
92
0.723412
1d5dd5f9242e3afb4fbc7ace64cab89370b92184
1,719
py
Python
test/runtime/frontend_test/keras_test/layers_test/convolutional_test/conv2d_test.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
test/runtime/frontend_test/keras_test/layers_test/convolutional_test/conv2d_test.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
test/runtime/frontend_test/keras_test/layers_test/convolutional_test/conv2d_test.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
import numpy as np from test.runtime.frontend_test.keras_test.util import keras, KerasConverter from test.util import generate_kernel_test_case, wrap_template from webdnn.graph.order import OrderNHWC, OrderNCHW @wrap_template def template(filters=5, kernel_size=3, strides=(1, 1), padding='valid', data_format="channe...
27.725806
139
0.695172
1d5ddada49921a82f25f30dd10e4501bbcf74483
2,527
py
Python
linux/rest/usefules/setupthingthunderbird.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/rest/usefules/setupthingthunderbird.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/rest/usefules/setupthingthunderbird.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import urllib.request, urllib.parse import pprint import json import sys import time from pathlib import Path #for ignoring invalid certs #https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error import ssl gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1) # Only for ...
28.077778
280
0.70835
1d5dee4a2c8163de38a9bd3e9327a94756484daa
2,796
py
Python
timetable_app/timetable.py
kmazi/Timetable
eb320a0ca3726bfdbb5d8c49b97a09da097207f5
[ "MIT" ]
null
null
null
timetable_app/timetable.py
kmazi/Timetable
eb320a0ca3726bfdbb5d8c49b97a09da097207f5
[ "MIT" ]
3
2020-02-11T23:07:35.000Z
2021-06-10T18:18:12.000Z
timetable_app/timetable.py
kmazi/Timetable
eb320a0ca3726bfdbb5d8c49b97a09da097207f5
[ "MIT" ]
null
null
null
from datetime import timedelta from .models import TimeSlot class Timetable(object): """ Generates the timetable for lecturers, levels and department """ def __init__(self, timetable_for=None, lecturer=None, level=None, department=None): self.type = timetable_for self.lecturer = lectur...
42.363636
91
0.559013
1d5e137adb4b02d32f0509f3a675e00e436afea5
22,978
py
Python
lulu_c.py
andrei91ro/lulu_c
4aa05762de5854007c4f0d3959ffad6b6dfaef60
[ "MIT" ]
null
null
null
lulu_c.py
andrei91ro/lulu_c
4aa05762de5854007c4f0d3959ffad6b6dfaef60
[ "MIT" ]
null
null
null
lulu_c.py
andrei91ro/lulu_c
4aa05762de5854007c4f0d3959ffad6b6dfaef60
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import logging from lulu_pcol_sim import sim import sys # for argv import time # for strftime() import natsort # for natural sorting of alphabet (needed because the order of objects has to be B_0, B_1, B_2, B_10, B_11 and not B_0, B_1, B_10, B_11, ...) def createInstanceHeader(pcol, path, originalFi...
45.232283
374
0.591696
1d5e32bb9cf9e074f761cf956e997bd99354d1a3
2,050
py
Python
passrotate/providers/amazon.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/amazon.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/amazon.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
from passrotate.provider import Provider, ProviderOption, register_provider from passrotate.forms import get_form from bs4 import BeautifulSoup from urllib.parse import urlparse, urlencode import requests class Amazon(Provider): """ [amazon.com] username=Your Amazon.com username """ name = "Amazon...
39.423077
331
0.652683
1d5e3cf68e828f92db85d2cf65e82f4c8117db07
2,134
py
Python
train/tasks/segmented/modules/Discriminator.py
TiagoCortinhal/TITAN-NET
3ddf29061edd8977c76d5ee5bbb542f6511f5928
[ "MIT" ]
11
2021-06-29T10:53:56.000Z
2022-03-25T07:33:20.000Z
train/tasks/segmented/modules/Discriminator.py
TiagoCortinhal/TITAN-NET
3ddf29061edd8977c76d5ee5bbb542f6511f5928
[ "MIT" ]
null
null
null
train/tasks/segmented/modules/Discriminator.py
TiagoCortinhal/TITAN-NET
3ddf29061edd8977c76d5ee5bbb542f6511f5928
[ "MIT" ]
1
2021-07-21T08:23:29.000Z
2021-07-21T08:23:29.000Z
import torch import torch.nn as nn class PixelDiscriminator(nn.Module): def __init__(self, in_channels=49, out_channels=1): super(PixelDiscriminator, self).__init__() def discriminator_block(in_filters, out_filters, normalization=False, dropout=0.0): """Returns downsampling layers of ...
43.55102
116
0.588566
1d5e4ea0725770d66423a199d2e2e2536c86b38e
6,967
py
Python
brdnet/eval.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
brdnet/eval.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
brdnet/eval.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 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 agreed to...
40.04023
119
0.643749
1d5e618dcd7fdd7fc4bbbf4c8026598e7cc00b6b
45,484
py
Python
core/domain/suggestion_registry.py
prasanna08/oppia
f93ec9bfebb9756c99c71a0166b192fb961efb13
[ "Apache-2.0" ]
null
null
null
core/domain/suggestion_registry.py
prasanna08/oppia
f93ec9bfebb9756c99c71a0166b192fb961efb13
[ "Apache-2.0" ]
null
null
null
core/domain/suggestion_registry.py
prasanna08/oppia
f93ec9bfebb9756c99c71a0166b192fb961efb13
[ "Apache-2.0" ]
1
2020-11-05T12:26:10.000Z
2020-11-05T12:26:10.000Z
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
41.424408
80
0.646755
1d5e687482644da9f7153540cb7b71a991a5359a
37
py
Python
nicedjango/graph/__init__.py
movermeyer/nicedjango
c38ada1e50efb5ef0874ef063074b621579c2954
[ "MIT" ]
1
2016-10-18T18:40:45.000Z
2016-10-18T18:40:45.000Z
nicedjango/graph/__init__.py
movermeyer/nicedjango
c38ada1e50efb5ef0874ef063074b621579c2954
[ "MIT" ]
null
null
null
nicedjango/graph/__init__.py
movermeyer/nicedjango
c38ada1e50efb5ef0874ef063074b621579c2954
[ "MIT" ]
1
2018-03-05T01:21:23.000Z
2018-03-05T01:21:23.000Z
from nicedjango.graph.graph import *
18.5
36
0.810811
1d5e6ac5d98bfbf1318e0cb64c3489ea8e7869cd
5,257
py
Python
backend/ocr_service/image_processing.py
merialdo/research.matrices
147983bafc3b1257eca0871aca99f7eb91ce6457
[ "Apache-2.0" ]
2
2021-11-29T19:22:17.000Z
2022-01-11T21:40:14.000Z
backend/ocr_service/image_processing.py
merialdo/research.matrices
147983bafc3b1257eca0871aca99f7eb91ce6457
[ "Apache-2.0" ]
null
null
null
backend/ocr_service/image_processing.py
merialdo/research.matrices
147983bafc3b1257eca0871aca99f7eb91ce6457
[ "Apache-2.0" ]
3
2021-11-30T18:24:51.000Z
2022-02-17T15:23:05.000Z
""" Image processing functions: adjust_to_see: adjust an image to better visualize it (rotate and transpose) augmentation: apply variations to a list of images normalization: apply normalization and variations on images (if required) preprocess: main function for image preprocessing before text_stan...
36.762238
111
0.662926