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
9e1bab75b880400d031efdd9610cb8ab7d1f53a8
821
py
Python
src/provisioning/factories.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/provisioning/factories.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/provisioning/factories.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
31.576923
74
0.742996
9e1bb2bcdf7f5989f574a141815fc715e1623995
6,337
py
Python
utils/evaluator.py
kaist-dmlab/Time-CAD
efb97db45b31161d85acf4cdca531a416cea260b
[ "Apache-2.0" ]
null
null
null
utils/evaluator.py
kaist-dmlab/Time-CAD
efb97db45b31161d85acf4cdca531a416cea260b
[ "Apache-2.0" ]
null
null
null
utils/evaluator.py
kaist-dmlab/Time-CAD
efb97db45b31161d85acf4cdca531a416cea260b
[ "Apache-2.0" ]
1
2022-01-13T07:57:04.000Z
2022-01-13T07:57:04.000Z
import numpy as np from sklearn.metrics import auc def _enumerate_thresholds(rec_errors, n=1000): # maximum value of the anomaly score for all time steps in the validation data thresholds, step_size = [], abs(np.max(rec_errors) - np.min(rec_errors)) / n th = np.min(rec_errors) thresholds.append(th) ...
41.418301
119
0.594288
9e1bed677eb9899f5f5c8a6f5509c5bc731f5fd7
23,047
py
Python
examples/inceptionv3/inception.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
examples/inceptionv3/inception.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
examples/inceptionv3/inception.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
#!/usr/bin/env python # ****************************************************************************** # Copyright 2014-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at ...
56.626536
98
0.426954
9e1c06b9da426ddecea152090798794dea281b41
3,267
py
Python
nodebook/ipython/nodebookext.py
lunaticare/nodebook
4439d857c9c4af79f1963b4065cc7d38e54ed392
[ "Apache-2.0" ]
264
2017-07-27T20:50:51.000Z
2021-12-24T04:38:45.000Z
nodebook/ipython/nodebookext.py
lunaticare/nodebook
4439d857c9c4af79f1963b4065cc7d38e54ed392
[ "Apache-2.0" ]
15
2017-08-16T18:18:24.000Z
2021-11-07T22:40:55.000Z
nodebook/ipython/nodebookext.py
lunaticare/nodebook
4439d857c9c4af79f1963b4065cc7d38e54ed392
[ "Apache-2.0" ]
22
2017-09-15T01:53:05.000Z
2022-02-04T06:56:21.000Z
from __future__ import absolute_import import six.moves.cPickle as pickle import os import sys import errno from nodebook.nodebookcore import Node, Nodebook, ReferenceFinder from nodebook.pickledict import PickleDict NODEBOOK_STATE = { "cache_dir": None, "nodebook": None, } MODE_DISK = "disk" MODE_MEMORY = "...
32.346535
115
0.673707
9e1c3ca55f50b1da2518ff090b1eb739fe4155e5
10,272
py
Python
harmonicmodel/secundal_chord_template.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
harmonicmodel/secundal_chord_template.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
harmonicmodel/secundal_chord_template.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
""" File: secundal_chord_template.py Purpose: Class that defines a secundal chord in all its variations. """ from harmonicmodel.chord_template import ChordTemplate from tonalmodel.diatonic_tone import DiatonicTone from tonalmodel.interval import Interval, IntervalType from harmonicmodel.secundal_chord import Secunda...
39.813953
121
0.607574
9e1c43d79230870ba9e2ae514ac7437229761527
4,451
py
Python
code/homophones.py
seanyeh/talon_configs
142e402bb18f532d6f65c622174a6bbbf99aad91
[ "Unlicense" ]
1
2021-03-20T14:47:01.000Z
2021-03-20T14:47:01.000Z
code/homophones.py
seanyeh/talon_configs
142e402bb18f532d6f65c622174a6bbbf99aad91
[ "Unlicense" ]
null
null
null
code/homophones.py
seanyeh/talon_configs
142e402bb18f532d6f65c622174a6bbbf99aad91
[ "Unlicense" ]
null
null
null
from talon import Context, Module, app, clip, cron, imgui, actions, ui, fs import os ######################################################################## # global settings ######################################################################## # a list of homophones where each line is a comma separated list # e....
26.337278
79
0.606156
9e1c54888fcdc95a6d79def2b17b522e5fa058da
873
py
Python
app/core/admin.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
1
2019-06-01T10:14:02.000Z
2019-06-01T10:14:02.000Z
app/core/admin.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
null
null
null
app/core/admin.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email', ...
27.28125
65
0.594502
9e1c7ac1697ddd339772aa517f31f3440bd014c2
4,542
py
Python
test/core/test_component.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
2
2019-09-05T05:39:03.000Z
2020-11-08T17:07:04.000Z
test/core/test_component.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
test/core/test_component.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
# Standard library imports import random from textwrap import dedent from typing import Dict, List # First-party imports from gluonts.core.component import validated from gluonts.core.serde import dump_code, dump_json, load_code, load_json class Complex: @validated() def __init__(self, x: float, y: float) ->...
25.374302
76
0.568912
9e1ca441932450aef4a5a3f7b9da564347352a1a
2,007
py
Python
qnarre.old/feeds/prep/records.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre.old/feeds/prep/records.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre.old/feeds/prep/records.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix 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 l...
26.407895
79
0.670653
9e1ccdb2b8dcb6ebb9817ff9bcda95e0ccfb4501
9,081
py
Python
releasenotes/source/conf.py
ISCAS-VDI/gnocchi-base
c5ed96a6fb8d925702f410c1382eb36bd991443b
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
ISCAS-VDI/gnocchi-base
c5ed96a6fb8d925702f410c1382eb36bd991443b
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
ISCAS-VDI/gnocchi-base
c5ed96a6fb8d925702f410c1382eb36bd991443b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
33.021818
79
0.718313
9e1cd10788e9cf9411f4a0a75d0715fc7914b2bf
57,609
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_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...
43.544218
246
0.665087
9e1ce91bd644b786a049dd7deaa1677ce906b4f3
1,197
py
Python
annomathtex/annomathtex/parsing/html_parser.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
3
2021-04-14T13:31:12.000Z
2022-02-13T00:33:37.000Z
annomathtex/annomathtex/parsing/html_parser.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
10
2019-07-26T08:10:07.000Z
2021-06-10T17:53:43.000Z
annomathtex/annomathtex/parsing/html_parser.py
philsMINT/AnnoMathTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
2
2020-02-21T10:35:31.000Z
2020-05-27T06:13:35.000Z
################################################################################### ################################################################################### ################################################################################### #################################### NOT USED ######################...
38.612903
99
0.345865
9e1d031f1bdb8a3cac9a6b513404f280a6e80297
2,640
py
Python
multicurrency/oro.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/oro.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/oro.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Oro currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class CordobaOro(Curren...
34.285714
77
0.606061
9e1d09a1673ef01287f9fee2d9e74470f5899a01
116,567
py
Python
pygfunction/pipes.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
null
null
null
pygfunction/pipes.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
null
null
null
pygfunction/pipes.py
wouterpeere/pygfunction
6ac885b8b8a9532ed4aa2a748a0561a55ee515c2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np from scipy.constants import pi from scipy.special import binom import warnings from .utilities import _initialize_figure, _format_axes class _BasePipe(object): """ Template for pipe classes. Pipe classes inherit from this class. ...
37.349247
121
0.57699
9e1d1a2a11a34dd268a45ad8d8bc4edcbd01edbd
4,351
py
Python
acceptance_tests/tests/tests/test_health_check.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
acceptance_tests/tests/tests/test_health_check.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
acceptance_tests/tests/tests/test_health_check.py
jhutchings1/c2cwsgiutils
733f3eace5393539a170455038a27d42682bf4f5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import json def _remove_timings(response): for status in ("successes", "failures"): assert status in response for key, value in response[status].items(): assert "timing" in value del value["timing"] return response def test_ok(app_connection): response = app_conne...
37.188034
108
0.54838
9e1d3ffa5c7fc909d04e2fe95042a9edb5c2a36c
2,982
py
Python
python/IO_operations/matlab_file.py
delunapaolo/Code-snippets-and-utilities
3766bb4adcf197ed088f68482758d022fae18515
[ "MIT" ]
null
null
null
python/IO_operations/matlab_file.py
delunapaolo/Code-snippets-and-utilities
3766bb4adcf197ed088f68482758d022fae18515
[ "MIT" ]
null
null
null
python/IO_operations/matlab_file.py
delunapaolo/Code-snippets-and-utilities
3766bb4adcf197ed088f68482758d022fae18515
[ "MIT" ]
null
null
null
import h5py import scipy.io as spio def load(filename, force_dictionary=False, return_metadata=False, **kwargs): """ This function should be called instead of direct spio.load as it cures the problem of not properly recovering python dictionaries from mat files. It calls the function check keys to cur...
33.886364
105
0.654594
9e1d6bca8226f27b555ada72ce22ac8d9d97b750
3,624
py
Python
intersight/models/hyperflex_hx_link_dt_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_hx_link_dt_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_hx_link_dt_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexHxLinkDtRef(object): """ NOTE: This ...
24.16
77
0.543322
9e1d74e7b2f9a581b787b8e6be84a351d096c655
2,056
py
Python
var/spack/repos/builtin/packages/pcre/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/pcre/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/pcre/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Pcre(AutotoolsPackage): """The PCRE package contains Perl Compatible Regular Expression ...
38.792453
97
0.70428
9e1d8523a1e51a3544d4695cda1b28a6b550dd46
3,277
py
Python
1_basic_models/1_linear_regression/train_mul.py
eubchain/tfdistributedtestcase
a81f99e051537fcd860de28587f0ab2bd9b1b5d4
[ "MIT" ]
6
2018-07-30T08:47:25.000Z
2019-01-13T16:17:31.000Z
1_basic_models/1_linear_regression/train_mul.py
eubchain/tfdistributedtestcase
a81f99e051537fcd860de28587f0ab2bd9b1b5d4
[ "MIT" ]
null
null
null
1_basic_models/1_linear_regression/train_mul.py
eubchain/tfdistributedtestcase
a81f99e051537fcd860de28587f0ab2bd9b1b5d4
[ "MIT" ]
2
2018-11-28T09:37:26.000Z
2018-11-29T02:51:20.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jun 5 12:17:49 2018 @author: eub_hmy """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os.path import sys import time import tensorflow as tf import numpy as np def main(_): ps_hosts =...
25.403101
125
0.631065
9e1daa782a969669512b99ddd515757414437c8b
2,518
py
Python
b_mark.py
simeonf/decorators
8c67684ca20388c94bfdf2db7b1b15c7444ebc9e
[ "Apache-2.0" ]
5
2019-06-20T02:40:06.000Z
2021-11-16T06:27:15.000Z
b_mark.py
simeonf/decorators
8c67684ca20388c94bfdf2db7b1b15c7444ebc9e
[ "Apache-2.0" ]
null
null
null
b_mark.py
simeonf/decorators
8c67684ca20388c94bfdf2db7b1b15c7444ebc9e
[ "Apache-2.0" ]
1
2019-06-20T02:34:24.000Z
2019-06-20T02:34:24.000Z
""" Concepts: identity decorators are a way to have side effects at function definition time. Here's the same exercise with an argparse CLI addded. The idea is that we should see a subcommand for each endpoint supported. It should work like: $ python b_mark.py --help usage: b_mark.py [-h] {events,sessions} ....
29.623529
89
0.689833
9e1dbe835c9164f76c2d1c8c0c5fe072d7dae6e4
2,314
py
Python
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_start_group_call.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/channel_admin_log_event_action_start_group_call.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_start_group_call.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.536232
106
0.646932
9e1dc74b8537d311e154ced5293a883fdc8c5e02
804
py
Python
tests/test_cli.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
tests/test_cli.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
1
2021-08-22T07:35:13.000Z
2021-08-22T07:35:13.000Z
tests/test_cli.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
"""Test for showroom_podcast.py.""" import logging from click.testing import CliRunner from showroompodcast.cli import showroom_podcast class TestShowroomPodcast: """Test for ShowroomPodcast.""" @staticmethod # Reason: pytest fixture. pylint: disable=unused-argument def test( mock_requrst_r...
27.724138
101
0.670398
9e1dcb61a58a1e3c35e23cd70fc5fc61edb04797
1,604
py
Python
tests/test_query_dbpedia.py
KnowledgeCaptureAndDiscovery/OBA_sparql
9c1c28902ab3d6561b3b6a0f8a7d284688d86326
[ "Apache-2.0" ]
5
2020-05-12T22:00:16.000Z
2021-11-08T22:16:11.000Z
tests/test_query_dbpedia.py
KnowledgeCaptureAndDiscovery/OBA_sparql
9c1c28902ab3d6561b3b6a0f8a7d284688d86326
[ "Apache-2.0" ]
24
2019-09-26T23:20:11.000Z
2022-01-14T14:19:14.000Z
tests/test_query_dbpedia.py
KnowledgeCaptureAndDiscovery/OBA_sparql
9c1c28902ab3d6561b3b6a0f8a7d284688d86326
[ "Apache-2.0" ]
1
2021-12-01T14:56:09.000Z
2021-12-01T14:56:09.000Z
# from typing import Dict # # import unittest # # from obasparql import QueryManager # from obasparql.static import QUERY_TYPE_GET_ONE_USER, QUERIES_TYPES, QUERY_TYPE_GET_ONE # from tests.settings import dbpedia_queries, dbpedia_context, dbpedia_endpoint, dbpedia_prefix # # # class TestQuery(unittest.TestCase): # # ...
38.190476
95
0.5399
9e1dd1903d37bbd129bd60be155b85ae63fa398d
10,997
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/splom/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/splom/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/splom/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000'...
34.365625
82
0.56379
9e1de8a3e5aa17d5ddd11c33887d9ef35b210a32
1,509
py
Python
scripts/resolveConflicts.py
jakelever/biowordlists
e0b86c7afed4cf17145003da05bffe3530a820c9
[ "MIT" ]
9
2019-02-07T11:17:00.000Z
2021-12-24T22:51:49.000Z
scripts/resolveConflicts.py
jakelever/biowordlists
e0b86c7afed4cf17145003da05bffe3530a820c9
[ "MIT" ]
1
2019-08-15T02:56:45.000Z
2019-08-16T01:54:37.000Z
scripts/resolveConflicts.py
jakelever/biowordlists
e0b86c7afed4cf17145003da05bffe3530a820c9
[ "MIT" ]
5
2018-12-21T04:20:51.000Z
2021-12-24T22:53:21.000Z
import argparse from collections import defaultdict def main(): parser = argparse.ArgumentParser(description='') parser.add_argument('--wordlist',required=True,type=str,help='Wordlist to help resolve conflicts') parser.add_argument('--conflicts',required=True,type=str,help='File with conflicting terms (separated by...
35.093023
120
0.71173
9e1e1ed703844bbe4f74e116e9951a1043ec21f3
1,089
py
Python
python/ConstantVelocityMotionModel.py
cheesinglee/cuda-PHDSLAM
e3844904a3dae8e1bcfe1d7f3898beccd67178b5
[ "Apache-2.0" ]
14
2015-02-11T18:08:18.000Z
2022-02-22T07:27:45.000Z
python/ConstantVelocityMotionModel.py
cheesinglee/cuda-PHDSLAM
e3844904a3dae8e1bcfe1d7f3898beccd67178b5
[ "Apache-2.0" ]
null
null
null
python/ConstantVelocityMotionModel.py
cheesinglee/cuda-PHDSLAM
e3844904a3dae8e1bcfe1d7f3898beccd67178b5
[ "Apache-2.0" ]
6
2015-11-19T09:57:19.000Z
2021-03-26T15:21:41.000Z
# -*- coding: utf-8 -*- class ConstantVelocityMotionModel: def __init__(self,params): # check that all the sensor parameters are present required_keys = ['std_x','std_y','std_z','std_yaw','std_pitch'] if not all(k in params for k in required_keys): raise RuntimeError('missing se...
32.029412
79
0.538108
9e1e2153f330cff744f545e862e8cb869b4bb69e
1,980
py
Python
dear_petition/petition/etl/paginator.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
4
2020-04-01T14:42:45.000Z
2021-12-12T21:11:11.000Z
dear_petition/petition/etl/paginator.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
142
2019-08-12T19:08:34.000Z
2022-03-29T23:05:35.000Z
dear_petition/petition/etl/paginator.py
robert-w-gries/dear-petition
35244afc8e967b41ae5265ae31fd13b26e4e835a
[ "MIT" ]
8
2020-02-04T20:37:00.000Z
2021-03-28T13:28:32.000Z
from dear_petition.petition.constants import DISMISSED, ATTACHMENT INITIAL_PAGE_SIZE = 10 ATTACHMENT_PAGE_SIZE = 20 class OffenseRecordPaginator: """ Class to manage dividing up offense records across petition and petition attachments. A petition has attachments if the number of offense records exceeds t...
36
89
0.674747
9e1e38d9b3b04c4222a75aa7910a214aa1ce16e6
4,901
py
Python
tests/test_units.py
Harmonicahappy/MASTER-TF
27e4306d827d50ee53ecbeeebba2259d2d37ecbe
[ "MIT" ]
128
2020-07-06T06:59:17.000Z
2022-03-29T21:28:48.000Z
tests/test_units.py
Harmonicahappy/MASTER-TF
27e4306d827d50ee53ecbeeebba2259d2d37ecbe
[ "MIT" ]
19
2020-07-23T07:16:49.000Z
2022-02-09T23:49:28.000Z
tests/test_units.py
Harmonicahappy/MASTER-TF
27e4306d827d50ee53ecbeeebba2259d2d37ecbe
[ "MIT" ]
39
2020-07-20T01:15:25.000Z
2021-09-18T13:04:18.000Z
# ______ __ # / \ / | # /$$$$$$ | __ __ __ ______ _______ $$ | __ __ # $$ | $$ |/ | / | / | / \ / \ $$ | / | / | # $$ | $$ |$$ | $$ | $$ |/$...
36.574627
155
0.592328
9e1e554e8006951ab8535b29ba95545de5ff3a30
3,301
py
Python
tofu/imas2tofu/__init__.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
56
2017-07-09T10:29:45.000Z
2022-03-31T02:44:50.000Z
tofu/imas2tofu/__init__.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
522
2017-07-02T21:06:07.000Z
2022-03-02T08:07:57.000Z
tofu/imas2tofu/__init__.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
9
2017-07-02T20:38:53.000Z
2021-12-04T00:12:30.000Z
# -*- coding: utf-8 -*- #! /usr/bin/python """ The imas-compatibility module of tofu """ import warnings import traceback import itertools as itt try: try: from tofu.imas2tofu._core import * from tofu.imas2tofu._mat2ids2calc import * except Exception: from ._core import * from ...
32.362745
83
0.594062
9e1e57928e03eba0e838a7d12cc465656a30fab9
4,651
py
Python
tests/services/test_alert_rules.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/services/test_alert_rules.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/services/test_alert_rules.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
import json import pytest from requests import Response from py42.exceptions import Py42InvalidRuleError from py42.exceptions import Py42NotFoundError from py42.services.alertrules import AlertRulesService from py42.services.detectionlists.user_profile import DetectionListUserService MOCK_DETECTION_LIST_GET_RESPONS...
39.752137
98
0.71705
9e1e67ac97c16a538ced4b03e09b472105cf81c3
27,461
py
Python
tools/installer/installer.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
tools/installer/installer.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
tools/installer/installer.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
import re import sys sys.path.append('deps') import glob import serial import subprocess import time import os import zipfile from collections import namedtuple from os import listdir from os.path import isfile, join import platform # Defaults DEFAULT_VERSION = 'v1.1.0' DEFAULT_CHOOSE_OPERATION = False DEFAUL...
35.296915
219
0.537999
9e1e6aa745fef48f89f315f145b976e14f20274f
4,340
py
Python
tests/common/dualtor/tor_failure_utils.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
null
null
null
tests/common/dualtor/tor_failure_utils.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
null
null
null
tests/common/dualtor/tor_failure_utils.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
null
null
null
""" Tor Failure utilities to test switchover and MUX handling during: Shutdown all BGP sessions on a ToR Shutdown the LinkProber on a ToR Blackhole all traffic on a ToR Reboot a ToR """ from tests.common.reboot import reboot, SONIC_SSH_PORT, SONIC_SSH_REGEX, \ REBOOT_TYPE_COLD import ipa...
30.780142
103
0.599539
9e1e6fb487b7c56894e4590d3f124354beafa404
4,833
py
Python
AS2/fprop.py
ivanbgd/Coursera-Neural-Networks-for-Machine-Learning
95b4583b1dbb53784fb8ba0381ca5ca87849ae14
[ "MIT" ]
null
null
null
AS2/fprop.py
ivanbgd/Coursera-Neural-Networks-for-Machine-Learning
95b4583b1dbb53784fb8ba0381ca5ca87849ae14
[ "MIT" ]
null
null
null
AS2/fprop.py
ivanbgd/Coursera-Neural-Networks-for-Machine-Learning
95b4583b1dbb53784fb8ba0381ca5ca87849ae14
[ "MIT" ]
null
null
null
import numpy as np def fprop(input_batch, word_embedding_weights, embed_to_hid_weights, hid_to_output_weights, hid_bias, output_bias): """ This method forward propagates through a neural network. Inputs: input_batch: The input data as a matrix of size numwords X batchsize where numwords is th...
50.873684
168
0.703911
9e1e7aa8d21ec534496e1f6fe5c7d50817a7281d
4,637
py
Python
lm_eval/tasks/race.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
4
2021-10-14T15:55:39.000Z
2021-12-15T14:44:08.000Z
lm_eval/tasks/race.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
lm_eval/tasks/race.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
import collections import datasets import numpy as np from lm_eval.base import rf from ..metrics import mean from . common import HFTask class each: def __init__(self, f): self.f = f def __rrshift__(self, other): return list(map(self.f, other)) class RACE(HFTask): DATASET_PATH = "race" ...
30.913333
95
0.582489
9e1ebb6b2da397946ddbf643bf416e9dc59fb5c2
1,224
py
Python
exorad/utils/ascii_art.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
2
2020-12-14T20:32:16.000Z
2021-11-23T11:41:04.000Z
exorad/utils/ascii_art.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
exorad/utils/ascii_art.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
1
2020-12-17T19:55:34.000Z
2020-12-17T19:55:34.000Z
import exorad.__version__ as version # ascii_art =" .-. _______ . ' * . . \n\ # {}``; |==|_______D . * * -+- \n\ # ( / | / | \ * . ' . \n\ # \(_)_]] / | ...
47.076923
85
0.234477
9e1ed008737329993f51b5e9c52834ff8e76ec1f
24,323
py
Python
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_4.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_4.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/02_Deep_ChoTH/deep_learning_4.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
# CHAPTER 4 신경망 학습 # 데이터 주도학습 # 특징을 추출하고 그 특징의 패턴을 기계학습으로 학습하는 방법 # 신경망은 이미지를 있는 그대로 학습한다. 즉, 특징을 사람이 설계하지 않는다. # 신경망(딥러닝)은 종단간(end-to-end) 기계학습이라고 한다. 여기서 종단간은 처음부터 끝까지라는 의미이다. # 신경망의 이점은 모든 문제를 같은 맥락에서 풀 수 있다는 점에 있다. # 예를 들어 숫자를 인식하든, 개를 인식하든, 사람 얼굴을 인식하든 세부사항에 관계없이 주어진 데이터를 온전히 학습하고, # 주어진 문제의 패턴을 발견하려고 시도한다. # 훈련데...
33.548966
162
0.586276
9e1f0c8032314263c8c290682633909d64f094ab
388
py
Python
papermerge/core/migrations/0028_auto_20201018_0834.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
null
null
null
papermerge/core/migrations/0028_auto_20201018_0834.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1
2021-02-12T02:28:00.000Z
2021-02-24T04:08:34.000Z
papermerge/core/migrations/0028_auto_20201018_0834.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
2
2021-02-11T23:10:29.000Z
2021-02-13T09:06:49.000Z
# Generated by Django 3.0.10 on 2020-10-18 08:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0027_remove_document_file_orig'), ] operations = [ migrations.AlterField( model_name='document', name='text...
20.421053
51
0.600515
9e1f15b1bc508d8be0a2c0190d07eb1c2bed95c4
2,995
py
Python
tensorflow/python/keras/layers/advanced_activations_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/keras/layers/advanced_activations_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/keras/layers/advanced_activations_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.52439
80
0.588314
9e1f199632ffc06de53eae978a0daa8dc99332f5
1,029
py
Python
python/samweb_client/exceptions.py
illingwo/sam-web-client
0947120a7be74f42ae68bbbe39e64022c410effe
[ "BSD-3-Clause" ]
null
null
null
python/samweb_client/exceptions.py
illingwo/sam-web-client
0947120a7be74f42ae68bbbe39e64022c410effe
[ "BSD-3-Clause" ]
null
null
null
python/samweb_client/exceptions.py
illingwo/sam-web-client
0947120a7be74f42ae68bbbe39e64022c410effe
[ "BSD-3-Clause" ]
null
null
null
""" Exception classes. The specific exception classes like "FileNotFound" are dynamically generated from the server response This has the consequence that from samweb_client.exceptions import * won't import these names because they aren't created until the server has been contacted. Instead you have to do catch sa...
31.181818
123
0.809524
9e1f2081fa60a5c99fc189d0fbe9487386ebfc40
930
py
Python
crowdastro/elais_labels.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
13
2015-11-07T15:24:44.000Z
2020-04-20T05:29:58.000Z
crowdastro/elais_labels.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
234
2016-02-21T23:53:16.000Z
2019-06-27T00:26:08.000Z
crowdastro/elais_labels.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
3
2015-11-07T00:20:09.000Z
2018-10-03T13:37:15.000Z
"""Finds labels for ELAIS-S1 objects. The Australian National University 2016 """ import argparse import h5py import sklearn.externals.joblib import sklearn.linear_model def main(training_h5_path, classifier_path, output_h5_path): with h5py.File(training_h5_path, 'r') as f_h5: features = f_h5['features...
30
76
0.723656
9e1f22a2c74078a263c36099851bd52946e466db
6,166
py
Python
custom_components/hahm/climate.py
Lemocin/custom_homematic
1b6bc2da270bcbb58b52806c50f4d7dbdcff4e37
[ "MIT" ]
45
2021-07-28T07:37:52.000Z
2022-03-31T11:05:53.000Z
custom_components/hahm/climate.py
Lemocin/custom_homematic
1b6bc2da270bcbb58b52806c50f4d7dbdcff4e37
[ "MIT" ]
14
2021-11-24T09:26:21.000Z
2022-03-20T16:17:57.000Z
custom_components/hahm/climate.py
Lemocin/custom_homematic
1b6bc2da270bcbb58b52806c50f4d7dbdcff4e37
[ "MIT" ]
12
2021-10-10T06:15:17.000Z
2022-03-30T08:36:12.000Z
"""climate for Homematic(IP) Local.""" from __future__ import annotations from datetime import datetime, timedelta import logging from typing import Any from hahomematic.const import HmPlatform from hahomematic.devices.climate import BaseClimateEntity import voluptuous as vol from homeassistant.components.climate im...
34.446927
85
0.700292
9e1f2c0d8d0dbfa8abc137591a2a636dc5afd671
9,173
py
Python
experiments/imdb.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
17
2021-11-04T02:15:30.000Z
2021-12-26T16:31:27.000Z
experiments/imdb.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
null
null
null
experiments/imdb.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
1
2021-11-04T10:45:25.000Z
2021-11-04T10:45:25.000Z
import argparse import json import os import os.path as path import shutil import tempfile import torch import pytorch_lightning as pl from pytorch_lightning.loggers import TensorBoardLogger from pytorch_lightning.callbacks import ModelCheckpoint from nlproar.dataset import IMDBDataset, ROARDataset from nlproar.model...
43.889952
140
0.581489
9e1f325c1de1ecae106f21d748c6b8024e755e61
2,094
py
Python
assemblyline/odm/models/user_settings.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/odm/models/user_settings.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/odm/models/user_settings.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
from assemblyline import odm from assemblyline.common import forge from assemblyline.odm.models.submission import ServiceSelection Classification = forge.get_classification() ENCODINGS = {"cart", "raw"} VIEWS = {"report", "details"} @odm.model(index=False, store=False) class UserSettings(odm.Model): ...
69.8
120
0.625597
9e1f4829e37a5b318a96b0c451afd7f714bd835b
677
py
Python
toontown/pets/PetBase.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/pets/PetBase.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/pets/PetBase.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.pets.PetConstants import AnimMoods from toontown.pets import PetMood class PetBase: def getSetterName(self, valueName, prefix = 'set'): return '%s%s%s' % (prefix, valueName[0].upper(), valueName[1:]) def getAnimMood(self): if self.mood.getDominantMood() in PetMood.PetMood.Excite...
30.772727
73
0.667651
9e1f4b9740d9856268b0ae6c3383af82e4716c2c
1,312
py
Python
AzusaBot/Azusa/modules/chat/__init__.py
ethpch/AzusaBot_old
067e4985d4b8d60c98db758f3e103a4f409c9599
[ "MIT" ]
2
2021-09-23T14:43:00.000Z
2021-09-26T12:01:07.000Z
AzusaBot/Azusa/modules/chat/__init__.py
ethpch/AzusaBot_old
067e4985d4b8d60c98db758f3e103a4f409c9599
[ "MIT" ]
null
null
null
AzusaBot/Azusa/modules/chat/__init__.py
ethpch/AzusaBot_old
067e4985d4b8d60c98db758f3e103a4f409c9599
[ "MIT" ]
null
null
null
import logging from nonebot import permission as perm from nonebot import Message as M from Azusa.data import groupdict from Azusa.middleware import on_command logger = logging.getLogger('Azusa.chat') @on_command('disable_chat', logger=logger, checkfunc=lambda session: session.event['message_...
38.588235
85
0.684451
9e1f565da008ad18aab31c431a7f43b1e9bdf032
99
py
Python
src/main/python/cobra/mit/__init__.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
null
null
null
src/main/python/cobra/mit/__init__.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
null
null
null
src/main/python/cobra/mit/__init__.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
null
null
null
from ._loader import ClassLoader from ._mit import Mit __all__ = [ 'ClassLoader', 'Mit' ]
12.375
32
0.666667
9e1f70760f9f0c542fad5c293710a156abafa239
400
py
Python
cluster_kmeans_10.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
cluster_kmeans_10.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
cluster_kmeans_10.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
#cluster tica data into clusters import pyemma.coordinates as coor import numpy as np sys = 'fdis' tica_data = coor.load('tica_data_05/fdis_tica_data.h5') n_clusters = 100 cl = coor.cluster_kmeans(tica_data, k=n_clusters, max_iter=50) #cl.save(f'cluster_data/{sys}_{n_clusters}_mini_cluster_object.h5', overwrite=Tru...
26.666667
83
0.795
9e1f8260a8dc61ce405cb174bfc2e748616e7921
9,602
py
Python
Pset4 - Scrabble/ps4a.py
RoguedBear/EdX-MIT-6.00.1x
6ec2cb971f277bf2b67f0f0303e8bf11810c4b26
[ "MIT" ]
null
null
null
Pset4 - Scrabble/ps4a.py
RoguedBear/EdX-MIT-6.00.1x
6ec2cb971f277bf2b67f0f0303e8bf11810c4b26
[ "MIT" ]
null
null
null
Pset4 - Scrabble/ps4a.py
RoguedBear/EdX-MIT-6.00.1x
6ec2cb971f277bf2b67f0f0303e8bf11810c4b26
[ "MIT" ]
null
null
null
# The 6.00 Word Game import random import string VOWELS = 'aeiou' CONSONANTS = 'bcdfghjklmnpqrstvwxyz' HAND_SIZE = 7 SCRABBLE_LETTER_VALUES = { 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, ...
30.100313
212
0.600292
9e1f8fbe6346060a4f88df2ce2f097743c059505
4,428
py
Python
src/sentry/web/frontend/organization_members.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/web/frontend/organization_members.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/organization_members.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.db.models import Q from sentry import roles from sentry.models import ( AuthProvider, OrganizationAccessRequest, OrganizationMember, Team, OrganizationMemberTeam ) from sentry.web.frontend.base import OrganizationView, TeamView from django...
41.383178
148
0.608175
9e1fa42c9eeff5cc17a47ffb9834d33fd39689ce
6,033
py
Python
src/frameworks/Keras/designs/dense_layer_ui.py
AliOsm/Talzeeq
66a1bb95689f9ba2dc4759bf71f5ef82cf983f64
[ "MIT" ]
4
2021-01-01T13:27:08.000Z
2022-02-03T02:02:46.000Z
src/frameworks/Keras/designs/dense_layer_ui.py
AliOsm/Talzeeq
66a1bb95689f9ba2dc4759bf71f5ef82cf983f64
[ "MIT" ]
null
null
null
src/frameworks/Keras/designs/dense_layer_ui.py
AliOsm/Talzeeq
66a1bb95689f9ba2dc4759bf71f5ef82cf983f64
[ "MIT" ]
1
2022-01-09T19:43:05.000Z
2022-01-09T19:43:05.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'src/frameworks/Keras/designs/dense_layer.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing....
57.457143
111
0.736118
9e1fa472133f2117a43cf2031f02c4a046286387
2,437
py
Python
crowdastro/experiment/experiment_labeller_accuracy.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
13
2015-11-07T15:24:44.000Z
2020-04-20T05:29:58.000Z
crowdastro/experiment/experiment_labeller_accuracy.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
234
2016-02-21T23:53:16.000Z
2019-06-27T00:26:08.000Z
crowdastro/experiment/experiment_labeller_accuracy.py
chengsoonong/crowdastro
ce14432c36de0574b73d813304365b74446a61f8
[ "MIT" ]
3
2015-11-07T00:20:09.000Z
2018-10-03T13:37:15.000Z
"""Plots the accuracies of RGZ volunteers. Matthew Alger The Australian National University 2016 """ import argparse import crowdastro.crowd.util import h5py import matplotlib import matplotlib.pyplot as plt import numpy import sklearn.metrics def main(crowdastro_h5_path): with h5py.File(crowdastro_h5_path, 'r...
32.932432
78
0.595404
9e1fcf1b1e42e1f32d7f296ca3682454d77da60d
2,326
py
Python
venv/Lib/site-packages/pyrogram/raw/types/messages/history_import.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/messages/history_import.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/messages/history_import.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...
30.207792
103
0.613929
9e1fdc313ae03e8b667fb83abaf25fae539e8e7e
2,044
py
Python
MachineLearning/K-Means/k-means.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
MachineLearning/K-Means/k-means.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
MachineLearning/K-Means/k-means.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:UTF-8 # 2018-10-15 # k-means # python 机器学习算法 import numpy as np def loadData(file_path): '''导入数据 input: file_path(string):文件的存储位置 output: data(mat):数据 ''' f = open(file_path) data = [] for line in f.readlines(): row = [] # 记录每一行 lines = line.strip().split("\t") ...
20.857143
84
0.571918
9e2033021d7add25df8b6e451da7f91ab0636935
7,492
py
Python
tests/unit/mdp/test_mdp_base.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
null
null
null
tests/unit/mdp/test_mdp_base.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
null
null
null
tests/unit/mdp/test_mdp_base.py
CubeSkyy/ILU-RL
676d88587e1d8638487de1b5a3f8785a7375ad1a
[ "MIT" ]
2
2021-03-13T15:38:05.000Z
2021-05-08T22:25:36.000Z
import unittest from ilurl.rewards import build_rewards from ilurl.state.state import State from ilurl.envs.elements import build_vehicles from ilurl.params import MDPParams from ilurl.utils.properties import lazy_property from tests.unit.network.test_grid import (TestGridSetUp, ...
34.846512
79
0.634544
9e206a7149db4b60fb0ebaed58533b8b9f7c9eb3
7,632
py
Python
v3.py
dr-yali/Bone-MRI
54c50b2da26190575ad0913f715bc15a7dbd857f
[ "MIT" ]
null
null
null
v3.py
dr-yali/Bone-MRI
54c50b2da26190575ad0913f715bc15a7dbd857f
[ "MIT" ]
null
null
null
v3.py
dr-yali/Bone-MRI
54c50b2da26190575ad0913f715bc15a7dbd857f
[ "MIT" ]
null
null
null
import os import numpy as np import math from keras import applications from keras import optimizers from keras.models import Sequential, Model from keras.layers import Dropout, Flatten, Dense, Input, concatenate from keras import backend as k from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBo...
35.830986
146
0.659198
9e206a84e9657633da20848df1d17b2d2082b68e
2,800
py
Python
test/testframework/generator/generator.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
test/testframework/generator/generator.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
test/testframework/generator/generator.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
# Copyright 2017 Balazs Nemeth # # 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, s...
41.791045
77
0.522143
9e20bd5bb8e05c86a4a006fffc90d750412721ac
5,067
py
Python
bento/client/api.py
rajKarra69420/bento
1324189e26acfe3a372882519bd78e037d93997c
[ "BSD-3-Clause" ]
3
2021-12-01T02:11:15.000Z
2022-02-03T22:45:00.000Z
bento/client/api.py
rajKarra69420/bento
1324189e26acfe3a372882519bd78e037d93997c
[ "BSD-3-Clause" ]
4
2021-11-27T11:04:36.000Z
2022-02-17T02:53:21.000Z
bento/client/api.py
rajKarra69420/bento
1324189e26acfe3a372882519bd78e037d93997c
[ "BSD-3-Clause" ]
5
2021-07-01T20:23:43.000Z
2022-03-12T18:10:34.000Z
""" Api to interface with a bento server """ import socket from bento.common.protocol import * class ClientConnection: """ represents a connection with a Bento server in order to allow exchanging requests/responses with a Bento server as well as data with an executing function """ def __in...
33.335526
102
0.614565
9e20ed0df312cfc7138e9d465a75bc02b9febeb0
15,256
py
Python
applications/diario_obra/languages/pl.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
applications/diario_obra/languages/pl.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
applications/diario_obra/languages/pl.py
DayvsonWellerson/gotochurchWeb
7e2cb05d208191b04c93f110e6bef7fad3cd9f88
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- { '!langcode!': 'pl', '!langname!': 'Polska', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postaci "pole1=\'nowawartość\'". Nie możesz uaktualnić lub usunąć wyników z JOIN:', '%s %%{ro...
52.246575
280
0.665705
9e20f00ce9e61d4625eac08cb362a57ba5cc2566
998
py
Python
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/forums.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/forums.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/forums.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from utilities import db, moocdb_utils from common import * def GetForums(vars): # DB connections # -------------- s = vars['source'] forum_db_selector = db.Selector(s['host'], s['user'], s['password'], s['port'], s['forum_db']) output_items = [] resource_type_id = moocdb_utils.GetResource...
36.962963
126
0.62024
9e21369521692bbf05521efcc6ffe2a627820a84
108,534
py
Python
google/appengine/tools/devappserver2/module_test.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/module_test.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/module_test.py
thejeshgn/google_appengine
c226e7587ce80bdb7e243a1d4a19bc77535cf557
[ "Apache-2.0" ]
2
2019-01-13T07:58:35.000Z
2020-11-04T04:55:35.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.728934
90
0.673568
9e213adaadf8613d7faea1c7115f5176be5e71e1
1,366
py
Python
continuum/datasets/LSUN.py
TLESORT/Continual_Learning_Data_Former
51b43d770d97e441bb6e63e0a568c2f3d5bc8866
[ "MIT" ]
34
2019-07-25T13:22:29.000Z
2021-04-25T02:12:04.000Z
continuum/datasets/LSUN.py
TLESORT/Continual_Learning_Data_Former
51b43d770d97e441bb6e63e0a568c2f3d5bc8866
[ "MIT" ]
null
null
null
continuum/datasets/LSUN.py
TLESORT/Continual_Learning_Data_Former
51b43d770d97e441bb6e63e0a568c2f3d5bc8866
[ "MIT" ]
4
2019-07-26T03:24:27.000Z
2020-06-13T08:01:37.000Z
import torch from torchvision import datasets, transforms def load_LSUN(): transform = transforms.Compose([ transforms.Resize((64, 64)), transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)), ]) dataset_train = datasets.LSUN(root='/slowdata/LSUN', ...
35.025641
101
0.596633
9e213c49b4b955527a8b9733c22a73a9488622da
2,179
py
Python
tests/test_signal_handler.py
aubreystarktoller/django-babik-shadow-accounts
c321534a3673bf6c3bdd0092d6ef15d5e88ed6f6
[ "BSD-3-Clause" ]
null
null
null
tests/test_signal_handler.py
aubreystarktoller/django-babik-shadow-accounts
c321534a3673bf6c3bdd0092d6ef15d5e88ed6f6
[ "BSD-3-Clause" ]
null
null
null
tests/test_signal_handler.py
aubreystarktoller/django-babik-shadow-accounts
c321534a3673bf6c3bdd0092d6ef15d5e88ed6f6
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase, override_settings from babik_shadow_accounts import get_shadow_account_model class BabikAccountsTestCase(TestCase): def test_account_created_on_user_save(self): UserModel = get_user_model() user = UserModel.objects.cr...
31.57971
71
0.648922
9e2145533bca92a7cd2a7ca02657dcd78361ec68
5,253
py
Python
ytmp3.py
ciex/ytmp3
7607ed3dd0dc4d185a9a7becbed3a822d8682b2e
[ "MIT" ]
2
2018-03-02T18:17:45.000Z
2020-04-13T16:15:05.000Z
ytmp3.py
ciex/ytmp3
7607ed3dd0dc4d185a9a7becbed3a822d8682b2e
[ "MIT" ]
null
null
null
ytmp3.py
ciex/ytmp3
7607ed3dd0dc4d185a9a7becbed3a822d8682b2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Download YouTube links from a chrome bookmark folder and save as MP3s.""" import json import re import youtube_dl import click from os import path, walk from datetime import datetime from time import sleep from pathlib import Path from firefox import FirefoxScanner # # brew install youtub...
28.548913
103
0.609176
9e21757db3ef70af6dbdc37aba1abc19adb0363f
9,462
py
Python
demo/xmlproc/dtd2schema.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
demo/xmlproc/dtd2schema.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
demo/xmlproc/dtd2schema.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
#!/usr/bin/python """ This script converts DTDs to XML Schemas, according to the 20000407 WD. It can do simple reverse-engineering of attribute groups. """ # Todo # - make better names for attrgroups? # - make a SchemaWriter class (to hold common references) # - start doing reverse engineering to create modelGroups? ...
28.5
80
0.579687
9e218fdf7d6e86fd024b973af09a557762f7a1cc
5,847
py
Python
working/main_analysis/process_visapy_mea.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
working/main_analysis/process_visapy_mea.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
working/main_analysis/process_visapy_mea.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import spikeforest_analysis as sa from cairio import client as ca import spikeextractors as se import os import shutil import spikeforest as sf import numpy as np import pytest def main(): ca.autoConfig(collection='spikeforest', key='spikeforest2-readwrite', ...
27.842857
103
0.618095
9e21989ba6e8f827d818e83d69b811345ff396d3
3,284
py
Python
examples/hacker_news/hacker_news/ops/id_range_for_time.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/hacker_news/hacker_news/ops/id_range_for_time.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/hacker_news/hacker_news/ops/id_range_for_time.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
1
2019-09-11T03:02:27.000Z
2019-09-11T03:02:27.000Z
from datetime import datetime, timezone from typing import Tuple from dagster import MetadataEntry, Out, Output, check, op def binary_search_nearest_left(get_value, start, end, min_target): mid = (start + end) // 2 while start <= end: mid = (start + end) // 2 mid_timestamp = get_value(mid) ...
30.407407
109
0.661389
9e21bcd767d7af8a887fa1af1b4e7c84c915ade2
793
py
Python
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/person2_run_robot_code.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/person2_run_robot_code.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/person2_run_robot_code.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Use this module to run code that should run on your ROBOT. ALWAYS run THIS module for robot code, NOT the ones in any of the SUB-FOLDERS. """ import project2_individual.run_this_on_ROBOT as run_on_robot def main(): """ Runs the ROBOT main function. """ run_on_robot.main() # ----------------------------...
28.321429
79
0.564943
9e21c9f551f305c3a9ee0b6885b39251cfaeb7c3
1,629
py
Python
tests/cryptography/test_diffie_hellman.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/cryptography/test_diffie_hellman.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/cryptography/test_diffie_hellman.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from cryptography.diffie_hellman import private_key, secret, public_key class DiffieHellmanTest(unittest.TestCase): def test_private_key_is_in_range(self): primes = [5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47] for i in primes: self.assertTrue(1 < private_key(i) ...
29.618182
71
0.645795
9e21d0aa18a134f7849273d80d5d71370118f692
11,136
py
Python
dis_snek/models/discord/embed.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/models/discord/embed.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/models/discord/embed.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any, Dict, List, Optional, Union import attr from attr import setters from attr.validators import instance_of from attr.validators import optional as v_optional from dis_snek.client.const import ( EMBED_MAX_NAME_LENGTH, EMBED_MAX_FIELDS, EMBED_MAX_DESC_LENG...
32.372093
122
0.645384
9e21d907b0e9df219dc135930d1a16868d5bbfc1
1,563
py
Python
tests/test_logs.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
3
2020-10-21T11:11:28.000Z
2022-02-11T18:00:48.000Z
tests/test_logs.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
35
2020-10-21T16:36:47.000Z
2021-11-04T12:45:39.000Z
tests/test_logs.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
2
2020-10-13T10:48:48.000Z
2022-02-11T16:30:35.000Z
from robo_bot_cli.main import cli from click.testing import CliRunner from os import chdir, getcwd cwd = None def setup_module(module): global cwd cwd = getcwd() runner = CliRunner() result = runner.invoke(cli, ['environment', 'activate', 'integration']) assert result.exit_code == 0 assert...
24.809524
105
0.692898
9e21deb6ffc1b67ade7908a75ba7e647e45520a6
348
py
Python
foresight/pytest_integration/constants.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
15
2021-07-28T08:03:50.000Z
2021-11-08T08:36:06.000Z
foresight/pytest_integration/constants.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
1
2021-08-08T07:45:45.000Z
2021-08-08T12:41:36.000Z
foresight/pytest_integration/constants.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
THUNDRA_MARKED_AS_SKIPPED = "thundra_marked_as_skipped" THUNDRA_TEST_ALREADY_FINISHED = "thundra_test_already_finished" THUNDRA_TEST_STARTED = "thundra_test_started" THUNDRA_TEST_RESULTED = "thundra_test_resulted" THUNDRA_TEST_FINISH_IN_HELPER = "thundra_test_finish_in_helper" THUNDRA_FIXTURE_PREFIX = "x_thundra" THUND...
49.714286
63
0.876437
9e21f1f9b7f12cd1d352c90e5ecae7e1a944ac38
1,102
py
Python
src/test/python/testGraphJson.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
src/test/python/testGraphJson.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
src/test/python/testGraphJson.py
shuangshuangwang/SMV
021faece3f0fefca6051df8415789b14bc9a60ed
[ "Apache-2.0" ]
null
null
null
# # This file is 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 # distr...
33.393939
74
0.699637
9e21fcd7a4a6ae65bcfe28c8844477869653aa3e
2,910
py
Python
userbot/_core.py
sethgld/userbotseth
2994aa84be57aed8ab036ed6f59342d9ca2f3cb2
[ "MIT" ]
null
null
null
userbot/_core.py
sethgld/userbotseth
2994aa84be57aed8ab036ed6f59342d9ca2f3cb2
[ "MIT" ]
null
null
null
userbot/_core.py
sethgld/userbotseth
2994aa84be57aed8ab036ed6f59342d9ca2f3cb2
[ "MIT" ]
null
null
null
from userbot import bot from telethon import events from userbot.utils import command, remove_plugin, load_module from var import Var import importlib from pathlib import Path from userbot import LOAD_PLUG import sys import asyncio import traceback import os import userbot.utils from datetime import datetime DELETE_TI...
33.448276
103
0.653608
9e221a83a7878d3f8edfe1f0149837871c4205f5
6,187
py
Python
aiotdlib/api/types/search_messages_filter.py
pylakey/pytdlib
a390a298a24a7123f3f3aec9f995dee6d51a478e
[ "MIT" ]
37
2021-05-04T10:41:41.000Z
2022-03-30T13:48:05.000Z
aiotdlib/api/types/search_messages_filter.py
pylakey/pytdlib
a390a298a24a7123f3f3aec9f995dee6d51a478e
[ "MIT" ]
13
2021-07-17T19:54:51.000Z
2022-02-26T06:50:00.000Z
aiotdlib/api/types/search_messages_filter.py
pylakey/pytdlib
a390a298a24a7123f3f3aec9f995dee6d51a478e
[ "MIT" ]
7
2021-09-22T21:27:11.000Z
2022-02-20T02:33:19.000Z
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
27.135965
233
0.673024
9e2241530c77fbea168d68267e0f514401405581
7,931
py
Python
test/algo/nas/test_space_hub_oneshot.py
Microsoft/nni
b99e26833287c901f6d808d07ea6882014b05f58
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
test/algo/nas/test_space_hub_oneshot.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
test/algo/nas/test_space_hub_oneshot.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
import logging import pytest import numpy as np import torch import nni import nni.retiarii.hub.pytorch as ss import nni.retiarii.evaluator.pytorch as pl import nni.retiarii.strategy as stg from nni.retiarii.experiment.pytorch import RetiariiExperiment, RetiariiExeConfig from nni.retiarii.hub.pytorch.nasnet import ND...
32.63786
130
0.655151
9e2247835c90418ac3f1bd0b45e00228423dafbd
2,596
py
Python
src/multiplayer/server/lobby.py
MayD524/May-s-2D-Adventure
4038b1f2fcbddca9ae526fc7ba5e3e3a98d65a7a
[ "MIT" ]
null
null
null
src/multiplayer/server/lobby.py
MayD524/May-s-2D-Adventure
4038b1f2fcbddca9ae526fc7ba5e3e3a98d65a7a
[ "MIT" ]
null
null
null
src/multiplayer/server/lobby.py
MayD524/May-s-2D-Adventure
4038b1f2fcbddca9ae526fc7ba5e3e3a98d65a7a
[ "MIT" ]
null
null
null
from ...game_files.projectile import mayProjectile from ...game_files.gameHandler import GameHandler from ...game_files.collectables import * from ...game_files.gameConsts import * from ...game_files.floor import mayFloor from ...game_files.player import player from ...game_files.npc import mayNPC import json class g...
37.085714
88
0.51926
9e2262d4219bc10dea281a7459b8e83a56c15dd3
14,992
py
Python
salt/states/cloud.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/states/cloud.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/states/cloud.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Using states instead of maps to deploy clouds ============================================= .. versionadded:: 2014.1.0 Use this minion to spin up a cloud instance: .. code-block:: yaml my-ec2-instance: cloud.profile: my-ec2-config ''' from __future__ import absolute_imp...
31.168399
79
0.575574
9e2287dba036ad4a5a82fe604faa6e9362d2409d
7,093
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
53.734848
168
0.684337
9e22c59d14dfaa696847ea1b2392dd6d9377a5da
27,314
py
Python
src/main/python/future/standard_library/__init__.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
src/main/python/future/standard_library/__init__.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
src/main/python/future/standard_library/__init__.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
""" Python 3 reorganized the standard library (PEP 3108). This module exposes several standard library modules to Python 2 under their new Python 3 names. It is designed to be used as follows:: from future import standard_library standard_library.install_aliases() And then these normal Py3 imports work on bo...
33.637931
99
0.61452
9e22e923fcb6102ac35801bdf0b64dd71e1dfaaf
260
py
Python
ebml/schema/matroska.py
yomguy/python-ebml
5981ca259e9c586411fd3cbce472ba741dc5dd0d
[ "0BSD" ]
1
2019-10-17T18:21:31.000Z
2019-10-17T18:21:31.000Z
ebml/schema/matroska.py
yomguy/python-ebml
5981ca259e9c586411fd3cbce472ba741dc5dd0d
[ "0BSD" ]
null
null
null
ebml/schema/matroska.py
yomguy/python-ebml
5981ca259e9c586411fd3cbce472ba741dc5dd0d
[ "0BSD" ]
null
null
null
import os.path from .specs import parse_specdata _Elements, MatroskaDocument = parse_specdata(os.path.join(os.path.dirname(__file__), 'matroska.xml'), 'MatroskaDocument', 'matroska', 1) for name, element in _Elements.iteritems(): globals()[name] = element
28.888889
136
0.765385
9e22f8cf943780ee8b3ff75aba2a2b23348d1c82
1,027
py
Python
cloudify_nsx/cfy_stub.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
2
2017-03-08T21:44:54.000Z
2019-01-16T06:00:16.000Z
cloudify_nsx/cfy_stub.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
3
2017-01-26T13:26:31.000Z
2017-02-03T14:51:45.000Z
cloudify_nsx/cfy_stub.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
5
2016-12-28T15:26:02.000Z
2017-01-30T08:46:10.000Z
######## # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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...
30.205882
79
0.723466
9e230c08fad962ff122ed91f3bc64e5bd9f32f3c
852
py
Python
conan_package_dep_map/src/db_serializer_if.py
cafesun/expython
fae2db6f343577c3008a533e8adab3ec35ffa313
[ "MIT" ]
null
null
null
conan_package_dep_map/src/db_serializer_if.py
cafesun/expython
fae2db6f343577c3008a533e8adab3ec35ffa313
[ "MIT" ]
null
null
null
conan_package_dep_map/src/db_serializer_if.py
cafesun/expython
fae2db6f343577c3008a533e8adab3ec35ffa313
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf8 -*- from abc import ABC, abstractmethod class DBSerializerIf(object): '''数据库抽象接口''' @abstractmethod def open(self): pass @abstractmethod def close(self): pass @abstractmethod def set(self): pass @abstractmethod def set...
16.705882
47
0.59507
9e2358a8392a30bbd50348ab0aa54e71f24da496
1,187
py
Python
testplan/common/exporters/__init__.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
testplan/common/exporters/__init__.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
64
2019-04-15T20:56:40.000Z
2021-03-23T01:00:30.000Z
testplan/common/exporters/__init__.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
"""TODO.""" import inspect from testplan.common.config import Config, Configurable from testplan.common.utils.exceptions import format_trace class ExporterResult(object): def __init__(self, exporter, type): self.exporter = exporter self.type = type self.traceback = None @property ...
22.396226
67
0.648694
9e239a931e3c80690ce2970489ecc9e5dd85b3c5
195
py
Python
netconfig/configurator/queues.py
abheyogy/netconfigurator
5865c9ceba014bcc3adc1742cf9ee1edaac1eff3
[ "MIT" ]
null
null
null
netconfig/configurator/queues.py
abheyogy/netconfigurator
5865c9ceba014bcc3adc1742cf9ee1edaac1eff3
[ "MIT" ]
null
null
null
netconfig/configurator/queues.py
abheyogy/netconfigurator
5865c9ceba014bcc3adc1742cf9ee1edaac1eff3
[ "MIT" ]
null
null
null
"""Fetch configuration variables from a message queue.""" class Queues(): """Decide which message queue to fetch the data from and parse the data into a python friendly format.""" pass
27.857143
109
0.717949
9e23bf5db34735debfee965b9d4ddf543b468488
2,500
py
Python
scripts/extract_diagnostic_set_results.py
EMBEDDIA/jiant_slovene
2f4d79470143af51603dc7257f0c5aeba2e91ac9
[ "MIT" ]
null
null
null
scripts/extract_diagnostic_set_results.py
EMBEDDIA/jiant_slovene
2f4d79470143af51603dc7257f0c5aeba2e91ac9
[ "MIT" ]
null
null
null
scripts/extract_diagnostic_set_results.py
EMBEDDIA/jiant_slovene
2f4d79470143af51603dc7257f0c5aeba2e91ac9
[ "MIT" ]
null
null
null
from collections import defaultdict import argparse # Pro tip: To copy the results of this script from the terminal in Mac OS, # use command-alt-shift-c. That'll copy the tabs as tabs, not spaces. def get_strings(path, row_filter=None): ''' Extract tab-delimited results in a fixed order for each run in a results...
33.333333
100
0.5404
9e23c6048e5db4e2cdd4b499f694d78cd74c65aa
5,666
py
Python
missioncontrol/v0/passes.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
7
2019-03-29T06:05:08.000Z
2021-07-29T07:49:49.000Z
missioncontrol/v0/passes.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
18
2019-02-19T05:59:34.000Z
2021-05-18T03:05:30.000Z
missioncontrol/v0/passes.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
3
2019-01-31T02:07:38.000Z
2019-08-04T14:52:02.000Z
import json import datetime from base64 import b64encode, b64decode from collections import namedtuple from connexion.exceptions import ProblemException from itertools import product from skyfield.api import Loader, Topos, EarthSatellite from home.leaf import LeafPassFile from flask import request, Response from home...
28.761421
86
0.664666
9e23ce8e6defcac246c1a1169334a04a0d0c9cdf
14,566
py
Python
src/cogs/run.py
Kev-in123/piston-bot
92f2d065c0d05c9fcb7247a44b5d69009240dcc0
[ "MIT" ]
null
null
null
src/cogs/run.py
Kev-in123/piston-bot
92f2d065c0d05c9fcb7247a44b5d69009240dcc0
[ "MIT" ]
null
null
null
src/cogs/run.py
Kev-in123/piston-bot
92f2d065c0d05c9fcb7247a44b5d69009240dcc0
[ "MIT" ]
null
null
null
"""This is a cog for a discord.py bot. It will add the run command for everyone to use Commands: run Run code using the Piston API """ # pylint: disable=E0402 import json import re from dataclasses import dataclass from discord import Embed, Message, errors as discord_errors from discord.ext import com...
37.253197
105
0.584718
9e23d57790f6671a6d8e2331813f88896fece341
5,079
py
Python
thenewboston_node/business_logic/models/mixins/compactable.py
led76marx/thenewboston-node
527a19615ae57f6b2940e583b5dc1a9da3b468f5
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/models/mixins/compactable.py
led76marx/thenewboston-node
527a19615ae57f6b2940e583b5dc1a9da3b468f5
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/models/mixins/compactable.py
led76marx/thenewboston-node
527a19615ae57f6b2940e583b5dc1a9da3b468f5
[ "MIT" ]
null
null
null
import logging import typing import msgpack from thenewboston_node.core.utils.collections import replace_keys from thenewboston_node.core.utils.types import hexstr from thenewboston_node.core.utils.typing import unwrap_optional from .serializable import SerializableMixin COMPACT_KEY_MAP = { # account root file ...
30.596386
104
0.687734
9e2408677835fe3195450bb3f0a707dfaf282cbb
1,690
py
Python
tests/petstore-full/petstore_full/service/pet/by_pet_id/post.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
6
2021-01-16T21:36:43.000Z
2022-01-24T10:21:14.000Z
tests/petstore-full/petstore_full/service/pet/by_pet_id/post.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
11
2021-01-17T00:05:44.000Z
2022-01-23T16:13:56.000Z
tests/petstore-full/petstore_full/service/pet/by_pet_id/post.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
2
2021-11-06T00:07:34.000Z
2022-01-14T01:35:06.000Z
""" Auto-generated by openapi-client-generator https://github.com/avanov/openapi-client-generator """ from enum import Enum from typing import NamedTuple, Callable, Optional, Type, Mapping, Union from petstore_full.common import http from petstore_full.common.types import * __all__ = ( "call", "Params", ...
19.425287
73
0.694675
9e244ec4cffaab7a6d72da7be848c69d17c798f5
7,075
py
Python
classification/slim/compress.py
SunAhong1993/sz-demo
bc5e301f7d235c00ce21d4ad64f2af038b27478a
[ "Apache-2.0" ]
1
2019-09-25T03:42:57.000Z
2019-09-25T03:42:57.000Z
classification/slim/compress.py
SunAhong1993/sz-demo
bc5e301f7d235c00ce21d4ad64f2af038b27478a
[ "Apache-2.0" ]
null
null
null
classification/slim/compress.py
SunAhong1993/sz-demo
bc5e301f7d235c00ce21d4ad64f2af038b27478a
[ "Apache-2.0" ]
2
2019-09-16T02:03:49.000Z
2019-09-16T12:21:47.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import sys import logging import paddle import models import argparse import functools import paddle.fluid as fluid import reader from utility import add_arguments, print_arguments from pa...
45.352564
127
0.65583
9e247915e0479b0151a10c211f370e172e7bda26
6,102
py
Python
profiler/profiler/profiler.py
CMofjeld/Edge-Intelligence
5ed3eec4d559b29673c936e53d0653408bedf9f4
[ "MIT" ]
null
null
null
profiler/profiler/profiler.py
CMofjeld/Edge-Intelligence
5ed3eec4d559b29673c936e53d0653408bedf9f4
[ "MIT" ]
null
null
null
profiler/profiler/profiler.py
CMofjeld/Edge-Intelligence
5ed3eec4d559b29673c936e53d0653408bedf9f4
[ "MIT" ]
null
null
null
"""Measure and analyze inference time for a tensorflow model with different batch sizes.""" import argparse import csv import json import time from typing import List, Tuple import numpy as np import sklearn.linear_model import tensorflow as tf def record_model_inference_times( model, batch_params: Tuple[int...
32.285714
105
0.651426
9e248f7636c032f0a1072e8f3bbbc32d7d776283
9,894
py
Python
models/AlexNetConverter.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
models/AlexNetConverter.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
models/AlexNetConverter.py
SimuJenni/Correspondences
384c0272e438ad3e7c936f5ae78fe6154b188c54
[ "MIT" ]
null
null
null
import pickle import os import tensorflow as tf import numpy as np slim = tf.contrib.slim class AlexNetConverter: def __init__(self, model_dir, model, sess, remove_bn=False, ckpt=None, net_id='discriminator', scale=1.0, bgr=False, exclude=None, with_fc=False, im_size=(227, 227), use_classifier=...
43.585903
120
0.611482
9e24de66d5ee58caee11160150894383d0ed7d1f
41,671
py
Python
test/test_pickled_data.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
null
null
null
test/test_pickled_data.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
null
null
null
test/test_pickled_data.py
Matuiss2/python-sc2
dd93215d8b09b7ddacfd5c3cc4e9f43641d3f953
[ "MIT" ]
null
null
null
import sys, os sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from sc2.game_data import GameData from sc2.game_info import GameInfo from sc2.game_info import Ramp from sc2.game_state import GameState from sc2.bot_ai import BotAI from sc2.units import Units from sc2.unit import Unit from sc2.position i...
41.629371
286
0.735404
9e24f9db4a2cf95de8f83ca4f010b3de364904dd
7,125
py
Python
devito/finite_differences/differentiable.py
cc-a/devito
24ede9131473f69c1e44ba3b852f8654d3fd953e
[ "MIT" ]
null
null
null
devito/finite_differences/differentiable.py
cc-a/devito
24ede9131473f69c1e44ba3b852f8654d3fd953e
[ "MIT" ]
null
null
null
devito/finite_differences/differentiable.py
cc-a/devito
24ede9131473f69c1e44ba3b852f8654d3fd953e
[ "MIT" ]
1
2020-01-13T01:17:24.000Z
2020-01-13T01:17:24.000Z
from collections import ChainMap import sympy from sympy.functions.elementary.integers import floor from sympy.core.evalf import evalf_table from cached_property import cached_property from devito.tools import Evaluable, filter_ordered, flatten __all__ = ['Differentiable'] class Differentiable(sympy.Expr, Evaluab...
31.526549
87
0.654175
9e25018aefff179efac701891a5dfbb5ab52e419
298
py
Python
src/ggrc/settings/testing_api_search_db.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/settings/testing_api_search_db.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/settings/testing_api_search_db.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Api search test settings.""" import os SQLALCHEMY_DATABASE_URI = 'mysql+mysqldb://root:root@{}/ggrcdevtest_apisearch'\ .format(os.environ.get('GGRC_DATABASE_HOST', 'localhost'))
37.25
79
0.741611
9e2506b0ac255b6cbb904173f3253e8fb5b19953
1,533
py
Python
attitude/error/__init__.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
8
2015-03-24T09:08:32.000Z
2021-05-17T03:32:01.000Z
attitude/error/__init__.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
3
2018-03-16T07:38:26.000Z
2022-02-15T06:07:54.000Z
attitude/error/__init__.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
null
null
null
from __future__ import division import numpy as N from ..geom.util import dot, augment_tensor from ..geom.util import vector, plane, angle def error_bounds(hyp_errors): nominal, width = hyp_errors return nominal-width, nominal+width def asymptotes(hyp, n=1000): """ Gets a cone of asymptotes for hype...
26.431034
68
0.679061
9e2510efa84adf20ec51d639fb402d40af295ae9
39
py
Python
vmg30/tools/__init__.py
ikalevatykh/vmg30
2d36e488942a7d2075cd829252b72721a35da19d
[ "MIT" ]
1
2020-07-08T09:52:42.000Z
2020-07-08T09:52:42.000Z
vmg30/tools/__init__.py
ikalevatykh/vmg30
2d36e488942a7d2075cd829252b72721a35da19d
[ "MIT" ]
null
null
null
vmg30/tools/__init__.py
ikalevatykh/vmg30
2d36e488942a7d2075cd829252b72721a35da19d
[ "MIT" ]
null
null
null
"""Help scripts to manage VR glove."""
19.5
38
0.666667
9e2521b67546d559f0c25fb37c3b421f3b5710be
1,425
py
Python
ufora/scripts/rebuildAxiomSearchFunction.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/scripts/rebuildAxiomSearchFunction.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/scripts/rebuildAxiomSearchFunction.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
#!/usr/bin/env python # Copyright 2015 Ufora 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 applic...
30.978261
86
0.73614
9e253bd0a7264207b37ac12c87bcf3e7e517eddb
1,819
py
Python
src/crawl/unicrawl/spiders/hel_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
4
2021-09-24T16:17:57.000Z
2022-01-31T17:32:16.000Z
src/crawl/unicrawl/spiders/hel_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
23
2021-08-02T07:38:47.000Z
2022-02-11T14:16:56.000Z
src/crawl/unicrawl/spiders/hel_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
3
2021-11-20T06:06:44.000Z
2022-03-11T07:44:43.000Z
# -*- coding: utf-8 -*- from abc import ABC from pathlib import Path import scrapy from settings import YEAR, CRAWLING_OUTPUT_FOLDER # BASE_URL = f"http://p4580.phpnet.org/{YEAR}-{YEAR+1}/" -> worked for 2020-21 BASE_URL = "https://helue.azurewebsites.net/ListingPub" class HELProgramSpider(scrapy.Spider, ABC): ...
34.980769
120
0.542056
9e253fcfc740acf39589ead3247556330534eee7
6,213
py
Python
stable_baselines/gail/adversary.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/gail/adversary.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/gail/adversary.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
1
2019-12-25T16:45:54.000Z
2019-12-25T16:45:54.000Z
""" Reference: https://github.com/openai/imitation I follow the architecture from the official repository """ import tensorflow as tf import numpy as np from stable_baselines.common.mpi_running_mean_std import RunningMeanStd from stable_baselines.common import tf_util as tf_util def logsigmoid(input_tensor): """...
44.697842
119
0.647835