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
c8dab0b9b1b0e31d070abca3d1e9e7e99eaa73d9
13,005
py
Python
indico/modules/events/views.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/modules/events/views.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/modules/events/views.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import posixpath from flask import current_app, render_template, request from sqlalchemy.orm import load_...
41.81672
119
0.641446
c8dabd7965ca1c8a3cca166cce3e5965e79174de
2,245
py
Python
Data_collection_processing/zero_one_normalization.py
JustinRunyon/JustinRunyon
0c3c88555459355a64e78579141af0836b674545
[ "BSD-3-Clause" ]
67
2015-11-12T17:52:49.000Z
2021-04-08T16:07:38.000Z
Data_collection_processing/zero_one_normalization.py
shijs1982/adage
2575a60804218db7f91402b955371bb60e5b00d6
[ "BSD-3-Clause" ]
2
2016-01-12T21:25:17.000Z
2016-05-17T14:03:06.000Z
Data_collection_processing/zero_one_normalization.py
shijs1982/adage
2575a60804218db7f91402b955371bb60e5b00d6
[ "BSD-3-Clause" ]
29
2015-12-16T14:34:07.000Z
2022-02-16T21:04:31.000Z
''' Linearly scale the expression range of one gene to be between 0 and 1. If a reference dataset is provided, then the scaling of one gene in the target dataset in done using the minimun and range of that gene in the reference dataset. ''' import sys import argparse sys.path.insert(0, 'Data_collection_processing/') f...
40.818182
82
0.67706
c8dad103de46f16ab2b864d45430a57e5a2b6ec1
512
py
Python
office365/onedrive/publicationFacet.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/onedrive/publicationFacet.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/onedrive/publicationFacet.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue class PublicationFacet(ClientValue): def __init__(self, level=None, versionId=None): """ :param str level: The state of publication for this document. Either published or checkout. Read-only. :param str versionId: The unique identifi...
34.133333
117
0.697266
c8dae4d6bbd4b68467c3135bc742282e3ca34da4
34,631
py
Python
src/onevision/models/detection/yolov5_v6_1/models/common.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/models/detection/yolov5_v6_1/models/common.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/models/detection/yolov5_v6_1/models/common.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """# YOLOv5 🚀 by Ultralytics, GPL-3.0 license Common modules """ from __future__ import annotations import json import math import platform import warnings from collections import namedtuple from collections import OrderedDict from copy import copy from pathlib import P...
49.472857
144
0.580116
c8daff5aad1a08124841d02c699f77d3fc564bbe
46,141
py
Python
neutron/tests/functional/pecan_wsgi/test_controllers.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/pecan_wsgi/test_controllers.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/pecan_wsgi/test_controllers.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
44.28119
79
0.617173
c8db09bd9e7724a646f3e1a59d9407aa0d6bc796
8,420
py
Python
fsspec/implementations/tests/test_local.py
AlbertDeFusco/filesystem_spec
3622478474fb71eede3f652b027996b87806e727
[ "BSD-3-Clause" ]
null
null
null
fsspec/implementations/tests/test_local.py
AlbertDeFusco/filesystem_spec
3622478474fb71eede3f652b027996b87806e727
[ "BSD-3-Clause" ]
null
null
null
fsspec/implementations/tests/test_local.py
AlbertDeFusco/filesystem_spec
3622478474fb71eede3f652b027996b87806e727
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import import gzip import os from time import sleep import sys from contextlib import contextmanager import tempfile import pytest import fsspec from fsspec.core import open_files, get_fs_token_paths, OpenFile from fsspec.implementations.local import LocalFile...
31.654135
80
0.573159
c8db0db6d520611598a7977999c4c7fea184b372
29,085
py
Python
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/operations/_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/operations/_clusters_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/operations/_clusters_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
49.464286
214
0.661269
c8db2b6e39e46114bb88f2d1b648531e3f9fd7c0
37,090
py
Python
core/controllers/profile_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/controllers/profile_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/controllers/profile_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
# 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 required by applicable ...
41.862302
80
0.669722
c8db4d126ebe4eb23ffa4b8f72be817f2477f2c7
2,413
py
Python
salt/returners/zabbix_return.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2020-02-22T07:11:24.000Z
2020-02-22T07:11:24.000Z
salt/returners/zabbix_return.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/returners/zabbix_return.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2020-02-22T07:11:26.000Z
2020-02-22T07:11:26.000Z
# -*- coding: utf-8 -*- ''' Return salt data to Zabbix The following Type: "Zabbix trapper" with "Type of information" Text items are required Key: salt.trap.info Key: salt.trap.average Key: salt.trap.warning Key: salt.trap.high Key: salt.trap.disaster To use the Zabbix returner, append '--return zabbix' to the sal...
32.608108
126
0.646498
c8db4f5a1c733fac51c268d475ccf0f570bc19ca
2,754
py
Python
01-Lesson-Plans/03-Python-Pandas/1/Activities/10-loops-01/Unsolved/loops-01.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/03-Python-Pandas/1/Activities/10-loops-01/Unsolved/loops-01.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/03-Python-Pandas/1/Activities/10-loops-01/Unsolved/loops-01.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
# Declare an empty list named `our_list`. # Use the `append` list function to append the number 1 into `our_list`. # Append the string "hello" into `our_list`. # Append the boolean False into `our_list`. # Append the number 84 into `our_list`. # Append the string "world" into `our_list` # Print `our_list` ...
28.391753
155
0.715686
c8db6b4bb37c790785915a4bb9c968c72cd8fad9
26,931
py
Python
speech_dia_@/src/speaker_embedding/model.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
1
2022-02-23T08:46:10.000Z
2022-02-23T08:46:10.000Z
speech_dia_@/src/speaker_embedding/model.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
null
null
null
speech_dia_@/src/speaker_embedding/model.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F import torch.nn as nn from torch.nn.utils import weight_norm import math from pyannote.core import SlidingWindow from typing_extensions import Literal from warnings import warn from typing import Optional, List from speaker_embedding.task import TaskType...
34.13308
122
0.574691
c8db9cb5f5cf576e82ae02d50d1cb8cb8b707793
9,575
py
Python
qnarre.old/nn/session.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre.old/nn/session.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre.old/nn/session.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2018 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...
34.945255
79
0.589765
c8dbb60380b5baf0a5024299d0d8a50e049c2b29
3,466
py
Python
Future.py
layjain/BRD-21
6bb0957436f02fe91d9de46eae4d3171f2b42591
[ "MIT" ]
null
null
null
Future.py
layjain/BRD-21
6bb0957436f02fe91d9de46eae4d3171f2b42591
[ "MIT" ]
null
null
null
Future.py
layjain/BRD-21
6bb0957436f02fe91d9de46eae4d3171f2b42591
[ "MIT" ]
null
null
null
from CoronaVIRES_1 import CoronaVIRES_1 from SEIR_1 import SEIR_Baseline from scipy.optimize import curve_fit import pandas as pd import matplotlib.pyplot as plt import numpy as np from operator import itemgetter from utils import * TAU = 0.9 np.seterr("raise") owid_df = pd.read_csv("owid/owid-covid-data-new.csv") ...
40.302326
146
0.663878
c8dbba243f77e5f09b2083ce7800dd6a501d4612
852
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
42.6
114
0.652582
c8dbf0b4b7bd522f3dcb3e444d6bdc5bfd7ee884
1,777
py
Python
tests/test_callee.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
tests/test_callee.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
tests/test_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. def test_callee_defaults...
32.309091
73
0.658976
c8dbf9b8b6fa51a3ba16bcbf2945fc3c54416bf8
1,757
py
Python
repository.github/lib/kodi.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
repository.github/lib/kodi.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
repository.github/lib/kodi.py
ponchofcult/Turning-Japanese
d29118817c369a7f9161c72ac0cfb3b0f17f7298
[ "MIT" ]
null
null
null
import logging import sys import xbmc import xbmcaddon import xbmcgui PY3 = sys.version_info.major >= 3 ADDON = xbmcaddon.Addon() if PY3: translate = ADDON.getLocalizedString string_types = str def str_to_unicode(s): return s else: # noinspection PyUnresolvedReferences string_types = bas...
26.223881
86
0.701764
c8dc16d0e4466a36a35e3a3a1b53f63197255112
3,834
py
Python
oscar/lib/python2.7/site-packages/dns/wiredata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/wiredata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/wiredata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AN...
36.865385
79
0.592593
c8dc3b1938b7a7fd8458dcf63e8791d007d36599
8,750
py
Python
tests/test_gpt_exact_match.py
learning-at-home/clip_hivemind
4b68fefacf52e739451253800c45c486cbaf64d3
[ "MIT" ]
3
2022-02-02T06:11:11.000Z
2022-02-02T20:55:13.000Z
tests/test_gpt_exact_match.py
learning-at-home/clip_hivemind
4b68fefacf52e739451253800c45c486cbaf64d3
[ "MIT" ]
null
null
null
tests/test_gpt_exact_match.py
learning-at-home/clip_hivemind
4b68fefacf52e739451253800c45c486cbaf64d3
[ "MIT" ]
null
null
null
import json import os.path import torch from tqdm import trange from lib.models.gpt import LeanGPTConfig, LeanGPTForPreTraining HERE = os.path.abspath(os.path.dirname(__file__)) + '/' def test_gpt_forward_backward(filename: str = HERE + "gpt_test_data.pth"): """ tests the correctness model outputs, loss and...
47.043011
119
0.542971
c8dc4466910b4ec0b942829b1cbfbc7425e4153f
2,403
py
Python
src/common/sentencecount.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
21
2018-01-30T08:18:20.000Z
2020-02-18T08:15:53.000Z
src/common/sentencecount.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
3
2018-02-09T18:22:45.000Z
2018-07-10T10:31:25.000Z
src/common/sentencecount.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
10
2018-01-30T10:31:43.000Z
2021-01-26T07:54:24.000Z
import os from typing import Optional from subprocess import PIPE, Popen from .sedcommands import * from .dirhelper import traverse_dir_tree __all__ = [ 'SentCountError', 'get_sentence_count', 'get_corpus_sentence_count' ] class SentCountError(Exception): pass def get_sentence_count(corpus_path: s...
31.207792
114
0.650853
c8dc4aed739b26ce0aba96172500e0c8a5c9aff3
3,079
py
Python
rclip/model.py
yurijmikhalevich/rclip
a2d197923c9ae62db2d268bbaf084741a5937e28
[ "MIT" ]
215
2021-08-25T08:11:02.000Z
2022-03-19T20:31:18.000Z
rclip/model.py
yurijmikhalevich/rclip
a2d197923c9ae62db2d268bbaf084741a5937e28
[ "MIT" ]
15
2021-08-01T17:43:02.000Z
2022-01-08T09:07:37.000Z
rclip/model.py
yurijmikhalevich/rclip
a2d197923c9ae62db2d268bbaf084741a5937e28
[ "MIT" ]
12
2021-08-25T09:02:54.000Z
2022-03-14T02:48:11.000Z
from typing import Callable, List, Tuple, Optional, cast import clip import clip.model import numpy as np from PIL import Image from rclip import utils import torch import torch.nn class Model: VECTOR_SIZE = 512 _device = 'cpu' _model_name = 'ViT-B/32' def __init__(self): model, preprocess = cast( ...
35.390805
116
0.714518
c8dc5df802ab9e5b9e09deb102080fcb68ddc1f0
387
py
Python
tests/wsgi.py
jessielaf/django-scan-models
ec32ee49c42cb5e567cbae8b9bff2eb3cc18261a
[ "MIT" ]
29
2020-03-18T19:37:18.000Z
2021-12-07T09:36:51.000Z
tests/wsgi.py
jessielaf/django-scan-models
ec32ee49c42cb5e567cbae8b9bff2eb3cc18261a
[ "MIT" ]
null
null
null
tests/wsgi.py
jessielaf/django-scan-models
ec32ee49c42cb5e567cbae8b9bff2eb3cc18261a
[ "MIT" ]
null
null
null
""" WSGI config for tests project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTING...
22.764706
78
0.782946
c8dc778d6aea57ceca578f3b71d3e83cce2ab8e5
530
py
Python
bit_manipulation/magicnumber.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
bit_manipulation/magicnumber.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
bit_manipulation/magicnumber.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# A magic number is defined as a number which can be expressed as a power of 5 or sum of unique # powers of 5. First few magic numbers are 5, 25, 30(5 + 25), 125, 130(125 + 5), …. # Write a function to find the nth Magic number. def magicnum(n): pow = 1 ans = 0 while(n): pow *=5 #and operat...
29.444444
96
0.567925
c8dc9d5cd35b816d4f5c6cc34f4deccd28fec2ea
10,291
py
Python
tests/embed/test_node_embedding.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
25
2021-04-09T09:57:10.000Z
2022-02-09T14:26:55.000Z
tests/embed/test_node_embedding.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
39
2021-04-09T08:23:28.000Z
2021-11-10T08:35:59.000Z
tests/embed/test_node_embedding.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
3
2021-07-30T19:00:24.000Z
2022-03-16T21:01:48.000Z
# BlueGraph: unifying Python framework for graph analytics and co-occurrence analysis. # Copyright 2020-2021 Blue Brain Project / EPFL # 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 a...
36.363958
87
0.682441
c8dcab9a894a2a38684b053eb906b6f32798515a
1,360
py
Python
build/realsense2_camera/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/realsense2_camera/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/realsense2_camera/catkin_generated/generate_cached_setup.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys....
43.870968
104
0.741912
c8dccc01d2b24494b8028c9ee33fc3d5aea334ea
2,093
py
Python
office365/sharepoint/attachments/attachmentfile.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/attachments/attachmentfile.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/attachments/attachmentfile.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.resource_path import ResourcePath from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation from office365.sharepoint.actions.download_file import DownloadFileQuery from office365.sharepoint.actions.upload_file import UploadFileQuery from office365.sharepoint.file...
32.703125
99
0.677019
c8dce2c3a58f37347c89a61cc1e54559a0820887
1,970
py
Python
alipay/aop/api/response/AnttechBlockchainFinanceAssetIssueQueryResponse.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/AnttechBlockchainFinanceAssetIssueQueryResponse.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/AnttechBlockchainFinanceAssetIssueQueryResponse.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 from alipay.aop.api.domain.FinanceReceivableResultInfo import FinanceReceivableResultInfo class AnttechBlockchainFinanceAssetIssueQueryResponse(AlipayResponse): def __init__(self): ...
32.833333
120
0.704569
c8dd091cb2898f7df3a248be4a022054db5ae1b4
40,259
py
Python
train/src/test_obstacle_env2.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
train/src/test_obstacle_env2.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
train/src/test_obstacle_env2.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """classic Acrobot task""" import sys sys.path.insert(1, "/home/yue/.local/lib/python3.5/site-packages/") sys.path.insert(2, "/home/yue/yuetin/collision_surrouding/catkin_workspace/install/lib/python3/dist-packages") # sys.path.insert(1, "/home/yue/.local/lib/python3.5/site-packages/") # sys.pat...
41.546956
142
0.532775
c8dd46cb8c5706d52d17ffff5a423c8ecf9c4009
3,075
py
Python
image_loader.py
geometrikal/IIC-1
6b337670d58fcb5c34b6ec34236ea2ed472e1d92
[ "MIT" ]
null
null
null
image_loader.py
geometrikal/IIC-1
6b337670d58fcb5c34b6ec34236ea2ed472e1d92
[ "MIT" ]
null
null
null
image_loader.py
geometrikal/IIC-1
6b337670d58fcb5c34b6ec34236ea2ed472e1d92
[ "MIT" ]
null
null
null
from multiprocessing import Process, cpu_count, JoinableQueue import skimage.io as skio import numpy as np from tqdm import tqdm def produce(producer_queue, data, workers): for datum in data: producer_queue.put(datum) [producer_queue.put(None) for i in range(workers)] def work(producer_queue, consum...
33.423913
160
0.657561
c8dd58fc7f1a58a93260e0c515c7e51c004e6fef
10,054
py
Python
lib/codegen/meta/cdsl/formats.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
lib/codegen/meta/cdsl/formats.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
lib/codegen/meta/cdsl/formats.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
"""Classes for describing instruction formats.""" from __future__ import absolute_import from .operands import OperandKind, VALUE, VARIABLE_ARGS from .operands import Operand # noqa # The typing module is only required by mypy, and we don't use these imports # outside type comments. try: from typing import Dict, ...
37.375465
106
0.63895
c8dd5f36debe04ffb548b2701a97ff2b2765f6e3
10,487
py
Python
nmrglue/analysis/analysisbase.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
nmrglue/analysis/analysisbase.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
nmrglue/analysis/analysisbase.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
""" analysisbase provides general purpose analysis functions and classes used by several nmrglue.analysis modules """ import numpy as np pi = np.pi # helper functions def neighbors(pt, shape, structure): """ Generate a list of all neighbors to a point. Parameters ---------- pt : tuple of ints ...
27.028351
78
0.583008
c8dd730ee033133533b997503a9dcecabda39f17
2,389
py
Python
tests/fields/test_properties.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
tests/fields/test_properties.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
tests/fields/test_properties.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
""" A pytest module to test various Galois field properties. """ import random import pytest import numpy as np import galois def test_properties(properties): GF = properties["GF"] assert GF.characteristic == properties["characteristic"] assert GF.degree == properties["degree"] assert GF.order == pr...
28.783133
85
0.651737
c8dd98eedd6cd3015abbef2b1fe596f3076765f8
6,713
py
Python
src/Attendance.py
Vamshi399/Attendance_Automation_System
e91f86503621eb54e664af9e84bfd49ca7059c52
[ "Apache-2.0" ]
null
null
null
src/Attendance.py
Vamshi399/Attendance_Automation_System
e91f86503621eb54e664af9e84bfd49ca7059c52
[ "Apache-2.0" ]
null
null
null
src/Attendance.py
Vamshi399/Attendance_Automation_System
e91f86503621eb54e664af9e84bfd49ca7059c52
[ "Apache-2.0" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets from Camera1 import CaptureImage from DBConnection import DBConnection from Predict_KNN import face_recognition,predict,show_prediction_labels_on_image,train import sys import os import datetime class Ui_TakeAttendance(object): def __init__(self, Dialog, unm): se...
39.25731
118
0.593773
c8dd9f5940a1973e75ac2ddbe52a6f6591c6af98
1,132
py
Python
iosxr_eznc/facts/personality.py
mirceaulinic/iosxr-eznc
4e88d3a60518f068a34457448a355c0c4a7c3b71
[ "Apache-2.0", "BSD-3-Clause" ]
4
2016-08-05T14:57:26.000Z
2017-05-26T22:02:35.000Z
iosxr_eznc/facts/personality.py
mirceaulinic/iosxr-eznc
4e88d3a60518f068a34457448a355c0c4a7c3b71
[ "Apache-2.0", "BSD-3-Clause" ]
3
2017-03-01T02:51:39.000Z
2019-10-04T20:51:50.000Z
iosxr_eznc/facts/personality.py
mirceaulinic/iosxr-eznc
4e88d3a60518f068a34457448a355c0c4a7c3b71
[ "Apache-2.0", "BSD-3-Clause" ]
4
2016-08-20T17:12:49.000Z
2019-07-25T03:59:15.000Z
# -*- coding: utf-8 -*- # Copyright 2016 CloudFlare, Inc. All rights reserved. # # The contents of this file are 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...
30.594595
79
0.684629
c8ddb7fc95fd37e6d3fd7ee9339e22b7da62e97b
4,384
py
Python
utest/model/test_control.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/model/test_control.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/model/test_control.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest import warnings from robot.model import For, If, Tags from robot.utils import PY2, unicode from robot.utils.asserts import assert_equal, assert_false, assert_true class TestFor(unittest.TestCase): def test_string_reprs(self): for for_, exp_str, exp_repr in [ (For(), ...
40.592593
91
0.566378
c8ddb897b499d2da3484e4f8c17a686c2d87d74b
4,827
py
Python
launchpad/nodes/courier/node.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
264
2021-04-22T12:55:07.000Z
2022-03-26T05:55:13.000Z
launchpad/nodes/courier/node.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
22
2021-04-22T18:00:13.000Z
2022-03-30T01:45:08.000Z
launchpad/nodes/courier/node.py
qstanczyk/launchpad
32888acfcc8da86a31bf799db19832ccd4573e73
[ "Apache-2.0" ]
21
2021-04-22T19:20:28.000Z
2022-03-16T05:36:27.000Z
# Copyright 2020 DeepMind Technologies Limited. 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 ...
35.233577
84
0.710586
c8ddc217c109ee906b4b254b7f9aeec0652e9fd0
1,434
py
Python
lib/CliPrinter.py
cynay/CynCrypto
4ba920532588c9164f62b28f3f198c67b2ca374b
[ "WTFPL" ]
null
null
null
lib/CliPrinter.py
cynay/CynCrypto
4ba920532588c9164f62b28f3f198c67b2ca374b
[ "WTFPL" ]
null
null
null
lib/CliPrinter.py
cynay/CynCrypto
4ba920532588c9164f62b28f3f198c67b2ca374b
[ "WTFPL" ]
null
null
null
""" Module Docstring Docstrings: http://www.python.org/dev/peps/pep-0257/ """ __author__ = 'Yannic Schneider (v@vendetta.ch)' __copyright__ = 'Copyright (c) 20xx Yannic Schneider' __license__ = 'WTFPL' __vcs_id__ = '$Id$' __version__ = '0.1' #Versioning: http://www.python.org/dev/peps/pep-0386/ # ## Code goes here. #...
28.117647
86
0.569038
c8ddeafbb26fca9b58d2eabff1d27bc0acaa75bd
13,000
py
Python
glue/core/tests/test_state.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
glue/core/tests/test_state.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
glue/core/tests/test_state.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import numpy as np import json import pytest from ..state import (GlueSerializer, GlueUnSerializer, saver, loader, VersionedDict) from ...external import six from ... import core from ...qt.glue_application import GlueApplication f...
28.32244
87
0.592769
c8ddfed86c34f05c89df9b8219383727063272cd
14,602
py
Python
AFLW/fddb_gen_feature.py
kli-nlpr/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
AFLW/fddb_gen_feature.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
AFLW/fddb_gen_feature.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
import numpy as np from PIL import Image import cv2 import mxnet as mx import fddb_symbol_vgg16 import fddb_symbol_gen from fddb_init_vgg16 import init_from_vgg16 import logging from PIL import Image import numpy as np # 0 LeftEyeLeftCorner # 1 RightEyeRightCorner # 2 LeftEar # 3 NoseLeft # 4 NoseRight # 5 RightEar #...
37.441026
117
0.581222
c8de01b0c90f2b8ae7dbeda18d9062046213f584
1,929
py
Python
src/scene.py
leoconst/3d-rendering
367edff151513a3ccbc0a2b9e6e44d5cc72413bd
[ "MIT" ]
1
2021-03-09T15:53:52.000Z
2021-03-09T15:53:52.000Z
src/scene.py
leoconst/3d-rendering
367edff151513a3ccbc0a2b9e6e44d5cc72413bd
[ "MIT" ]
null
null
null
src/scene.py
leoconst/3d-rendering
367edff151513a3ccbc0a2b9e6e44d5cc72413bd
[ "MIT" ]
null
null
null
import itertools import numpy as np from enum import Enum import shapes from common import special_string class Node(object): def __init__(self): self.children = set() class Scene(object): def __init__(self, *meshes): chain = itertools.chain.from_iterable points ...
28.791045
79
0.610161
c8de06873ef1d66e79fe520b4bda4095a53c2327
11,015
py
Python
bert_qqp_train.py
spallas/quora-qp
bd491d92d2d2204bcb72180750d12661313c49e7
[ "MIT" ]
5
2019-09-17T08:40:33.000Z
2021-12-29T02:41:43.000Z
bert_qqp_train.py
spallas/quora-qp
bd491d92d2d2204bcb72180750d12661313c49e7
[ "MIT" ]
null
null
null
bert_qqp_train.py
spallas/quora-qp
bd491d92d2d2204bcb72180750d12661313c49e7
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import torch from pytorch_transformers import BertTokenizer, BertForSequenceClassification from sklearn.metrics import classification_report, f1_score, accuracy_score from sklearn.utils.extmath import softmax from torch import optim, nn from torch.utils.tensorboard impo...
38.246528
103
0.567136
c8de1f2f0b50917b578f3c8b2e34c7c1758c0368
2,308
py
Python
seqlib/seq.py
kepbod/seqlib
33616516260c4b595fe441b94a3382a9410396eb
[ "MIT" ]
2
2016-10-20T01:33:41.000Z
2021-02-24T03:08:09.000Z
seqlib/seq.py
kepbod/seqlib
33616516260c4b595fe441b94a3382a9410396eb
[ "MIT" ]
null
null
null
seqlib/seq.py
kepbod/seqlib
33616516260c4b595fe441b94a3382a9410396eb
[ "MIT" ]
2
2019-11-08T08:41:07.000Z
2020-07-03T12:36:58.000Z
import sys import os try: from string import maketrans except ImportError: maketrans = str.maketrans try: from itertools import izip_longest as zip_longest except ImportError: from itertools import zip_longest as zip_longest __author__ = 'Xiao-Ou Zhang <kepbod@gmail.com>' __all__ = ['dna_to_rna', 'cod...
26.837209
68
0.581456
c8de4cdfa60888398e621842fab1af44e6a7c109
25,931
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_applications_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/v2019_07_01/aio/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_applications_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.492674
224
0.682272
c8de79e965fb270b4bb46911d4e59d8f09c9a35f
3,991
py
Python
alipay/aop/api/request/AlipayEbppInstserviceDeductQueryRequest.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/request/AlipayEbppInstserviceDeductQueryRequest.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/request/AlipayEbppInstserviceDeductQueryRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayEbppInstserviceDeductQueryModel import AlipayEbppInstserviceDeductQueryModel class AlipayEbppInstserviceDeductQueryRequest(obj...
27.524138
148
0.646455
c8de7abed350414cc8d96fe60f4d70e5faaf41b4
144
py
Python
midterm1/split_teams.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
midterm1/split_teams.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
midterm1/split_teams.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
def split_teams(people): return [people[i] for i in range(len(people)) if i % 2 == 0], [people[i] for i in range(len(people)) if i % 2 == 1]
72
119
0.625
c8de7d695164975a3b7b54449d5d8a83f8c08721
1,665
py
Python
src/htrun/htrun.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
37
2015-09-10T13:52:40.000Z
2021-11-17T11:53:30.000Z
src/htrun/htrun.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
270
2015-09-09T13:00:53.000Z
2021-12-16T17:39:05.000Z
src/htrun/htrun.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
51
2015-09-04T13:16:47.000Z
2021-11-18T15:40:03.000Z
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """Greentea Host Tests Runner.""" from multiprocessing import freeze_support from htrun import init_host_test_cli_params from htrun.host_tests_runner.host_test_default import DefaultTestSelector from htrun...
32.647059
83
0.67027
c8de8c31b6850d39e7a15fe82892ff2c5087000a
684
py
Python
phr/ciudadano/migrations/0028_auto_20170314_1814.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0028_auto_20170314_1814.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0028_auto_20170314_1814.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-14 18:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ciudadano', '0027_auto_20170310_1635'), ] operations = [ migrations.AlterFie...
31.090909
114
0.524854
c8dea84c2a873f11ce9b335f4712e213301738c3
1,596
py
Python
quest/utils/preprocess_text_word_vectors.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/utils/preprocess_text_word_vectors.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/utils/preprocess_text_word_vectors.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
import numpy as np # Preprocess pretrained text vectors # and stores them in a suitable format (.npy) # Parameters ROOT_PATH = '/media/HDD_2TB/DATASETS/' # Data root path base_path = ROOT_PATH + 'cnn_polarity/DATA/' # Binary vectors path vectors_basename = 'word2vec.' # Name of the vectors file language = 'fr' # ...
31.92
75
0.64411
c8dead56a7d23059f2d2d33f3135ec1981be0597
1,172
py
Python
tests/test_ldap.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
tests/test_ldap.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
tests/test_ldap.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
""" run with nosetests -v --nocapture or nosetests -v """ from __future__ import print_function import sys import getpass from cloudmesh.user.cm_userLDAP import cm_userLDAP from cloudmesh_base.util import HEADING from cloudmesh_base.ConfigDict import ConfigDict from cloudmesh_base.util import path_expand from ppr...
21.703704
78
0.667235
c8deed27cbfad93d16558b8788a9f2b8430505f6
11,841
py
Python
blousebrothers/users/migrations/0013_auto_20170628_0946.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/users/migrations/0013_auto_20170628_0946.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/users/migrations/0013_auto_20170628_0946.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-06-28 09:46 from __future__ import unicode_literals from decimal import Decimal from django.conf import settings from django.db import migrations, models import django.db.models.deletion import djmoney.models.fields class Migration(migrations.Migration): ...
303.615385
5,151
0.589477
c8df26f4ef365420883ce9741bfa6c69b78f246b
1,396
py
Python
setup.py
stt/eve-peewee
84ff6061dec7234ae1f8cc82a0afa4d03f7242aa
[ "BSD-2-Clause" ]
2
2016-04-26T03:45:38.000Z
2016-09-02T03:10:54.000Z
setup.py
stt/eve-peewee
84ff6061dec7234ae1f8cc82a0afa4d03f7242aa
[ "BSD-2-Clause" ]
null
null
null
setup.py
stt/eve-peewee
84ff6061dec7234ae1f8cc82a0afa4d03f7242aa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import os try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() setup( name='eve-peewee', version='0.0.6', description="Da...
31.022222
59
0.606734
c8df38cef2a8a271825b43320b56e32fca77b06c
3,227
py
Python
shor/algorithms/shor.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
shor/algorithms/shor.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
shor/algorithms/shor.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
import math import random from typing import List, Tuple from shor.gates import X, CNOT, CSWAP, H, Rx, QFT from shor.layers import Qubits from shor.operations import Measure from shor.quantum import Circuit def factor(N: int) -> Tuple[int, int]: """ WIP not currently functioning. The classical part seems to...
25.611111
96
0.557794
c8df732a430271a975fda7d4e86eb8663d3fbf07
2,108
py
Python
preprocessing/JSONProcessor.py
johnantonn/cord-19
4694e274883b90c85f7fc0ec90d178ba34bd4a57
[ "Apache-2.0" ]
null
null
null
preprocessing/JSONProcessor.py
johnantonn/cord-19
4694e274883b90c85f7fc0ec90d178ba34bd4a57
[ "Apache-2.0" ]
null
null
null
preprocessing/JSONProcessor.py
johnantonn/cord-19
4694e274883b90c85f7fc0ec90d178ba34bd4a57
[ "Apache-2.0" ]
null
null
null
""" This module contains classes that preprocess the data. """ class JSONProcessor: """ Class that contains methods to process json data. """ def convert_dictionaries_to_list(self, json_input, dictionaries_to_convert): """ Function that converts dictionaries inside the given json to list of dictionar...
36.982456
99
0.62334
c8df79fdd4dee146a27e694359b39dc66a55a5dd
10,611
py
Python
cryptopaste/views.py
NyanKiyoshi/CryptoPaste
103fab82fcf9b8f1abea9f7492f2f8571c3354df
[ "MIT" ]
1
2017-01-09T20:00:29.000Z
2017-01-09T20:00:29.000Z
cryptopaste/views.py
NyanKiyoshi/CryptoPaste
103fab82fcf9b8f1abea9f7492f2f8571c3354df
[ "MIT" ]
null
null
null
cryptopaste/views.py
NyanKiyoshi/CryptoPaste
103fab82fcf9b8f1abea9f7492f2f8571c3354df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ==== CryptoPaste # AUTHOR: NyanKiyoshi # COPYRIGHT: 2015 - NyanKiyoshi # URL: https://github.com/NyanKiyoshi/CryptoPaste/ # LICENSE: https://github.com/NyanKiyoshi/CryptoPaste/master/LICENSE # # This file is part of CryptoPaste under the MIT license. Please take awareness about this latest bef...
40.193182
120
0.539157
c8df8007ec4734b071f38e95fdb6bd1cdad15888
361
py
Python
cv-lab11/affine.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
1
2021-08-31T18:57:26.000Z
2021-08-31T18:57:26.000Z
cv-lab11/affine.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
1
2021-08-25T09:44:15.000Z
2021-08-25T09:44:15.000Z
cv-lab11/affine.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
null
null
null
import cv2 import numpy as np I = cv2.imread('karimi.jpg') t = np.array([[30], [160]], dtype=np.float32) A = np.array([[.7, 0.8], [-0.3, .6]], dtype=np.float32) M = np.hstack([A,t]) output_size = (I.shape[1], I.shape[0]) J = cv2.warpAffine(I,M, output_size) cv2.imshow('I',I) cv2.wai...
15.695652
44
0.567867
c8df93044171422a6c2a3fb1c108219d042a16d1
1,927
py
Python
graph_db/extractor.py
msk-mind/graph-db
4272057eb0d30d7c4b6b4429acd21ec90404ff6c
[ "Apache-2.0" ]
null
null
null
graph_db/extractor.py
msk-mind/graph-db
4272057eb0d30d7c4b6b4429acd21ec90404ff6c
[ "Apache-2.0" ]
null
null
null
graph_db/extractor.py
msk-mind/graph-db
4272057eb0d30d7c4b6b4429acd21ec90404ff6c
[ "Apache-2.0" ]
null
null
null
''' Created on April 22, 2021 @author: pashaa@mskcc.org ''' import glob import os import shutil from graph_db.common.config import APP_CFG, ConfigSet, DATA_CFG from graph_db.common.custom_logger import init_logger from graph_db.common.spark_session import SparkConfig logger = init_logger() def get_df(delta_path): ...
28.761194
83
0.679294
c8dfa343cf01f02c41011edd85e5b5d56829b7ff
712
py
Python
src/olympia/amo/tests/test_locales.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/amo/tests/test_locales.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/amo/tests/test_locales.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
from django.utils.translation import activate, trans_real import pytest pytestmark = pytest.mark.django_db def test_amo_locale_not_in_django(): """ We load gettext catalogs in this order: django/locale/django.po amo/locale/django.po If Django doesn't have a locale, it returns the en-us...
27.384615
76
0.699438
c8dfca793732a78380522c88c4d5c58be8882b87
964
py
Python
LC/166.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/166.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/166.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def fractionToDecimal(self, numerator, denominator): """ :type numerator: int :type denominator: int :rtype: str """ # deal with negative nums sign='-' if (numerator*denominator<0) else '' numerator=abs(numerator) ...
37.076923
154
0.505187
c8dfda2244165aad6bc32ecccdfc84f474438840
821
py
Python
httpscan/porting.py
hostinfodev/httpscan
bd3f58c4c4b2803fa3ab77022c2d486989e7ba6d
[ "MIT" ]
11
2022-02-09T23:33:54.000Z
2022-03-28T03:28:35.000Z
httpscan/porting.py
hostinfodev/httpscan
bd3f58c4c4b2803fa3ab77022c2d486989e7ba6d
[ "MIT" ]
null
null
null
httpscan/porting.py
hostinfodev/httpscan
bd3f58c4c4b2803fa3ab77022c2d486989e7ba6d
[ "MIT" ]
2
2022-02-10T12:04:39.000Z
2022-03-28T03:33:24.000Z
from httpparser import parse_http_response from httprequest import format_http class ResponseObject(object): def __init__(self, content): content = content.decode() if type(content) is bytes else content self.parsed = parse_http_response(content) self.status_code = self.parsed['status_...
45.611111
131
0.671133
c8e016db1b564f2c80dcc8f9f93e2815a9194d96
3,351
py
Python
tests/errors/test_exceptions.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
tests/errors/test_exceptions.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
tests/errors/test_exceptions.py
ygversil/jenkins_job_builder
58a69e51ee51edc8eebe0db86eef93f032d231da
[ "Apache-2.0" ]
null
null
null
from testtools import ExpectedException from testtools import TestCase from jenkins_jobs import errors from tests.base import LoggingFixture def dispatch(exc, *args): component_type = "type" # noqa name = "name" for value in [component_type, name]: # prevent pep8 F841 "Unused Variable" ...
39.892857
79
0.659803
c8e023814738634cdf705a2dc23c4ca4d1237254
520
py
Python
master/Challenges-master/Challenges-master/level-1/readMore/read_more.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/Challenges-master/Challenges-master/level-1/readMore/read_more.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/Challenges-master/Challenges-master/level-1/readMore/read_more.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import sys def main(input_file): output = [] with open(input_file, 'r') as data: for line in data: print read_more(line.strip()) def read_more(line): output = line if len(line) > 55: output = output[:output[:40].rfind(' ')] + '... <Read ...
24.761905
73
0.525
c8e03098297efc6f3e3d7884499dee7aaf1863e5
1,415
py
Python
algorithms_for_engineering/test/test_matrix.py
ricdezen/random-algo-stuff
ef32fc786dca911b0f3f79e787967e462e863fcb
[ "MIT" ]
null
null
null
algorithms_for_engineering/test/test_matrix.py
ricdezen/random-algo-stuff
ef32fc786dca911b0f3f79e787967e462e863fcb
[ "MIT" ]
null
null
null
algorithms_for_engineering/test/test_matrix.py
ricdezen/random-algo-stuff
ef32fc786dca911b0f3f79e787967e462e863fcb
[ "MIT" ]
null
null
null
__author__ = "Riccardo De Zen <riccardodezen98@gmail.com>" import unittest import numpy.testing from parameterized import parameterized from algorithms_for_engineering.matrix import Matrix, matrix_sum, matrix_product_naive, matrix_fractal_product class TestMatrix(unittest.TestCase): @parameterized.expand([[Mat...
37.236842
110
0.657951
c8e084e0c687e6cb720605d69b5a02ed5dc14a4f
2,856
py
Python
dialogflow_v2beta1/gapic/environments_client_config.py
gertventer1970/dialogflow-python-client-v2
e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2
[ "Apache-2.0" ]
1
2020-10-14T07:43:19.000Z
2020-10-14T07:43:19.000Z
dialogflow_v2beta1/gapic/environments_client_config.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
dialogflow_v2beta1/gapic/environments_client_config.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
config = { "interfaces": { "google.cloud.dialogflow.v2beta1.Environments": { "retry_codes": { "retry_policy_1_codes": ["UNAVAILABLE"], "no_retry_codes": [], "retry_policy_3_codes": ["UNAVAILABLE"], "retry_policy_2_codes": ["UNAVAILA...
42
65
0.466737
c8e088ca41e5424785fd28c24cab1f4f02295435
16,469
py
Python
experiments/2020-10-07-complexity/analysis/aggregate.py
amlalejini/plastic-evolvability-avida
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2021-09-16T14:47:43.000Z
2021-10-31T04:55:16.000Z
experiments/2020-10-07-complexity/analysis/aggregate.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
null
null
null
experiments/2020-10-07-complexity/analysis/aggregate.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2020-08-19T20:01:14.000Z
2020-12-21T21:24:12.000Z
''' Aggregate data ''' import argparse, os, sys, errno, subprocess, csv run_identifier = "RUN_" primary_traits = ["not","nand","and","ornot","or","andnot"] even_traits = {"not", "and", "or"} odd_traits = {"nand", "ornot", "andnot"} even_profile = "101010" odd_profile = "010101" all_profile = "111111" max_pop_size =...
47.189112
850
0.597304
c8e0c6126e15de04b65835d1fc2e0e3b894bf6f6
4,110
py
Python
google-cloud-sdk/lib/surface/container/clusters/delete.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/surface/container/clusters/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/container/clusters/delete.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. 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...
35.431034
80
0.673723
c8e0c67d45797ef3abc65f74da873c45e0c7a8d8
1,428
py
Python
cg_version.py
gmnicke2/GISolve-API-Util
74d10d2ae60c1f000ef151a394ef9276b284867a
[ "MIT" ]
null
null
null
cg_version.py
gmnicke2/GISolve-API-Util
74d10d2ae60c1f000ef151a394ef9276b284867a
[ "MIT" ]
null
null
null
cg_version.py
gmnicke2/GISolve-API-Util
74d10d2ae60c1f000ef151a394ef9276b284867a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Utility to print the current API version for GISolve Print Version: ./cg_version.py """ from cg_token import CGException, cg_rest, logger_initialize import json import requests import argparse import os, sys, logging # This is used sed to disable InsecureRequestWarning. requests.packages....
21.969231
73
0.678571
c8e0c69dfbb250553329d8f90447f6f1b0eabf97
4,507
py
Python
gto/eval_gto.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
gto/eval_gto.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
gto/eval_gto.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # import numpy import ctypes import pyscf.lib BLKSIZE = 96 # needs to be the same to lib/gto/grid_ao_drv.c ANG_OF = 1 NPRIM_OF = 2 NCTR_OF = 3 KAPPA_OF = 4 PTR_EXP = 5 PTR_COEFF = 6 BAS_SLOTS = 8 libcgto = pyscf.lib.load_library('lib...
35.210938
90
0.561571
c8e0db57c2808323e8b5bf9ca35297d34f923d22
3,966
py
Python
alipay/aop/api/request/ZhimaCustomerFulfillmentSyncRequest.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/request/ZhimaCustomerFulfillmentSyncRequest.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/request/ZhimaCustomerFulfillmentSyncRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ZhimaCustomerFulfillmentSyncModel import ZhimaCustomerFulfillmentSyncModel class ZhimaCustomerFulfillmentSyncRequest(object): d...
27.351724
148
0.644478
c8e0e6c5fd8ebe085771dae67aac26a06852860a
8,861
py
Python
st2common/st2common/stream/listener.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/stream/listener.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/stream/listener.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
34.212355
99
0.61923
c8e10119c683afbeb36088c42d44df995cf35e7a
6,741
py
Python
neuropype/nodes/Addition.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/nodes/Addition.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/nodes/Addition.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
from neuropype import node #from neuropype.datatypes import Sweep from numpy import logical_and, vstack from neuropype import tag as tagModule class Addition(node.Node): '''Add trace1 to trace0 (out = trace0 + trace1) if self.in_sweep_index is None (default): out[i] = trace0[i] + trace1[1] e...
38.965318
81
0.504821
c8e11f68665f9e26f5582f41eeaea7f43da02b60
648
py
Python
leo/external/rope/rope/__init__.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/external/rope/rope/__init__.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/external/rope/rope/__init__.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
"""rope, a python refactoring library""" INFO = __doc__ VERSION = '0.10.2' COPYRIGHT = """\ Copyright (C) 2006-2012 Ali Gholami Rudi Copyright (C) 2009-2012 Anton Gritsay This program is free software; you can redistribute it and/or modify it under the terms of GNU General Public License as published by the Free Soft...
36
71
0.776235
c8e12275cbbc98ed33004aec97ac8189aaa1bf75
1,800
py
Python
deal/_decorators/offline.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
1
2020-09-05T13:54:16.000Z
2020-09-05T13:54:16.000Z
deal/_decorators/offline.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
7
2020-09-05T13:54:28.000Z
2020-11-27T05:59:19.000Z
deal/_decorators/offline.py
Smirenost/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
null
null
null
# built-in import socket from typing import Callable, TypeVar # app from .._exceptions import OfflineContractError from .._types import ExceptionType from .base import Base _CallableType = TypeVar('_CallableType', bound=Callable) class Offline(Base[_CallableType]): exception: ExceptionType = OfflineContractErr...
25
101
0.561667
c8e12f5e5fa542f6cdd52991c67d35b86b388e88
2,454
py
Python
deploy/city-scrapers-status/scrapers_status.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
deploy/city-scrapers-status/scrapers_status.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
deploy/city-scrapers-status/scrapers_status.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
import os import boto3 from datetime import datetime, timedelta STATUS_BUCKET = os.getenv('STATUS_BUCKET') STATUS_COLOR_MAP = { 'running': '#44cc11', 'failing': '#cb2431', 'unclear': '#dfb317' } STATUS_ICON = ''' <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14...
33.616438
108
0.59128
c8e18324d710b9844062dcf2235668b7b2023a39
5,807
py
Python
controller/project_controller/projects/credit_card_default/prediction_model_credit_defaulter.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/project_controller/projects/credit_card_default/prediction_model_credit_defaulter.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/project_controller/projects/credit_card_default/prediction_model_credit_defaulter.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
import numpy as np import pandas from controller.project_controller.projects.WaferFaultDetection_new.file_operations import file_methods from controller.project_controller.projects.WaferFaultDetection_new.data_preprocessing import preprocessing from controller.project_controller.projects.WaferFaultDetection_new.data_...
55.836538
132
0.66351
c8e190ffe84674b054aa1ad538c7ad079a7edd6e
23,534
py
Python
test/functional/test_runner.py
wagerrdeveloper/WagerrTestOLD
5e31a7b1b677b7f2da3c38fef40883cfb087d620
[ "MIT" ]
null
null
null
test/functional/test_runner.py
wagerrdeveloper/WagerrTestOLD
5e31a7b1b677b7f2da3c38fef40883cfb087d620
[ "MIT" ]
null
null
null
test/functional/test_runner.py
wagerrdeveloper/WagerrTestOLD
5e31a7b1b677b7f2da3c38fef40883cfb087d620
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
42.711434
195
0.634061
c8e1aab7bc618630e0d59f8ffbc8c797ff32f5b3
2,989
py
Python
homecontrol/modules/socialblade/module.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
homecontrol/modules/socialblade/module.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
homecontrol/modules/socialblade/module.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
"""Support for statistics from socialblade.com""" import logging import requests from bs4 import BeautifulSoup from homecontrol.dependencies.entity_types import Item LOGGER = logging.getLogger(__name__) LOOKUP_URL = "https://bastet.socialblade.com/{platform}/lookup" NAME_PATH = '//*[@id="rawUser"]/text()' NAME_U...
29.594059
74
0.616929
c8e1ed61bc0995cadf5548c468f54072176aebfd
159
py
Python
crab/utils/__init__.py
larsmans/crab
92947092aa64a72de960782f64d2f526693c0ad3
[ "BSD-3-Clause" ]
null
null
null
crab/utils/__init__.py
larsmans/crab
92947092aa64a72de960782f64d2f526693c0ad3
[ "BSD-3-Clause" ]
null
null
null
crab/utils/__init__.py
larsmans/crab
92947092aa64a72de960782f64d2f526693c0ad3
[ "BSD-3-Clause" ]
1
2019-12-02T03:20:43.000Z
2019-12-02T03:20:43.000Z
""" The :mod:`crab.utils` module includes various utilities. """ from .validation import * from .extmath import * from .fixes import * from .format import *
15.9
56
0.710692
c8e1f819ff261942a8aaed62f66487ee035d8bcb
25,250
py
Python
impacket/testcases/SMB_RPC/test_rrp.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/SMB_RPC/test_rrp.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/SMB_RPC/test_rrp.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
############################################################################### # Tested so far: # # OpenClassesRoot # OpenCurrentUser # OpenLocalMachine # OpenPerformanceData # OpenUsers # BaseRegCloseKey # BaseRegCreateKey # BaseRegDeleteKey # BaseRegFlushKey # BaseRegGetKeySecurity # BaseRegOpenKey # BaseRegQueryIn...
33.938172
109
0.61798
c8e1fd97abc09bb693a7eed5ccca0d09b32e8d0a
3,621
py
Python
esp/ds3231.py
FrNecas/sunrise-alarmclock
5c908e8053ab69cc2fd73352ab4685f4c0886be6
[ "MIT" ]
null
null
null
esp/ds3231.py
FrNecas/sunrise-alarmclock
5c908e8053ab69cc2fd73352ab4685f4c0886be6
[ "MIT" ]
null
null
null
esp/ds3231.py
FrNecas/sunrise-alarmclock
5c908e8053ab69cc2fd73352ab4685f4c0886be6
[ "MIT" ]
null
null
null
""" DS3231 RTC driver Inspired and adapted from: https://github.com/micropython-Chinese-Community/mpy-lib/tree/master/misc/DS3231 """ DS3231_I2C_ADDR = 0x68 DS3231_REG_SEC = 0x00 DS3231_REG_MIN = 0x01 DS3231_REG_HOUR = 0x02 DS3231_REG_WEEKDAY = 0x03 DS3231_REG_DAY = 0x04 DS3231_REG_MONTH = 0x05 DS3231_REG...
31.215517
81
0.57995
c8e1fdab4d92c070edb85488de9256c034929413
599
py
Python
init_db.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
1
2020-12-24T10:49:02.000Z
2020-12-24T10:49:02.000Z
init_db.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
init_db.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
import os import pymongo from dotenv import load_dotenv from app.singletons.db_service import DBServiceSingleton from init.init_cases import create_default_cases from init.init_history import create_default_history from init.init_pipelines import create_default_pipelines if __name__ == "__main__": load_dotenv("m...
28.52381
56
0.78798
c8e206882c9ed7004f824a8c1d7df585708306a4
863
py
Python
atom/proton/python/test/test_opt_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/test/test_opt_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/test/test_opt_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import...
21.04878
79
0.692932
c8e22a0c1de8fd436a2f4b6bce000cd9534d208f
3,273
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/_configuration.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.434783
125
0.69722
c8e2330f75b0b560b0ee96c307fb7ed428f5cf6b
5,471
py
Python
sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/operations/_notebook_operation_result_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/operations/_notebook_operation_result_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/operations/_notebook_operation_result_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...
39.078571
133
0.661122
c8e253773a86a29a58c19ab443c7b9f40693f41c
427
py
Python
src/olympia/addons/migrations/0011_auto_20200610_0553.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/addons/migrations/0011_auto_20200610_0553.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/addons/migrations/0011_auto_20200610_0553.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.13 on 2020-06-10 05:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('addons', '0010_auto_20200604_1319'), ] operations = [ migrations.AlterField( model_name='addon', name='view_source'...
22.473684
87
0.618267
c8e28be0676a1b850f7c4c2fa346f0d1f67c39f1
718
py
Python
src/olympia/blocklist/migrations/0012_auto_20200318_0442.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/blocklist/migrations/0012_auto_20200318_0442.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/blocklist/migrations/0012_auto_20200318_0442.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.9 on 2020-03-18 04:42 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blocklist', '0011_blocksubmission_submission_type'), ] o...
25.642857
66
0.630919
c8e2921cb66a06d885d500dc74ccb3d38fcf95da
1,254
py
Python
maths/rabin_miller.py
murilocamargos/algorithms
8a51db21efec6c67cabe0666cb36cc8317012aea
[ "MIT" ]
null
null
null
maths/rabin_miller.py
murilocamargos/algorithms
8a51db21efec6c67cabe0666cb36cc8317012aea
[ "MIT" ]
null
null
null
maths/rabin_miller.py
murilocamargos/algorithms
8a51db21efec6c67cabe0666cb36cc8317012aea
[ "MIT" ]
null
null
null
import random,sys # factor n into a power of 2 times an odd number def pow2_factor(n): power = 0 while n % 2 == 0: n /= 2 power += 1 return power, n def pow_3(a, b, c): """ helper function for a, b and c integers. """ return a**b % c """ Rabin-Miller primality test r...
23.222222
56
0.526316
c8e2956d39b3ec3fd2a92006e6de2f52b633fe63
238
py
Python
tests/test_demo.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
tests/test_demo.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
1
2018-09-20T04:39:02.000Z
2018-09-21T04:19:15.000Z
tests/test_demo.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import mock from aerial import demo demo.print = mock.Mock() demo.time.sleep = mock.Mock() def test_spinner(): demo.trick() assert 30 == demo.print.call_count == demo.time.sleep.call_count
19.833333
68
0.739496
c8e2a3f8d1524fcc6efb93afc74fa20ef2432c75
2,049
py
Python
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
24
2020-04-22T16:55:09.000Z
2022-03-30T20:44:39.000Z
gemd/entity/template/has_property_templates.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
3
2020-05-08T00:50:02.000Z
2020-12-19T00:48:56.000Z
"""For entities that have a property template.""" from gemd.entity.link_by_uid import LinkByUID from gemd.entity.setters import validate_list from gemd.entity.template.base_template import BaseTemplate from gemd.entity.template.property_template import PropertyTemplate from gemd.entity.bounds.base_bounds import BaseBou...
32.52381
84
0.625671
c8e2b8f1c0d3d28827456f9925c1e8c5d22714ff
6,129
py
Python
frappe/desk/doctype/number_card/number_card.py
diptigandhi24/frappe
cdbc3191f95464949ac033e65cc267d8af3be2a2
[ "MIT" ]
3
2021-03-01T08:52:59.000Z
2021-12-15T10:17:59.000Z
frappe/desk/doctype/number_card/number_card.py
diptigandhi24/frappe
cdbc3191f95464949ac033e65cc267d8af3be2a2
[ "MIT" ]
212
2017-08-16T13:03:18.000Z
2020-10-06T12:26:21.000Z
frappe/desk/doctype/number_card/number_card.py
diptigandhi24/frappe
cdbc3191f95464949ac033e65cc267d8af3be2a2
[ "MIT" ]
14
2020-11-04T11:22:44.000Z
2022-02-01T20:59:37.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.utils import cint from frappe.model.naming import append_number_if_name_exist...
27.859091
123
0.745309
c8e2b974904f931d0731c156ffbbe10f0e170d2f
508
py
Python
tests/resources/__init__.py
michaelcredera/fullcontact-python-client
482970b00b134409e6c9f303e7c2a7a6fc4a4685
[ "Apache-2.0" ]
8
2020-04-13T15:53:43.000Z
2022-02-04T07:37:17.000Z
tests/resources/__init__.py
michaelcredera/fullcontact-python-client
482970b00b134409e6c9f303e7c2a7a6fc4a4685
[ "Apache-2.0" ]
9
2020-06-04T15:30:50.000Z
2022-02-04T07:36:39.000Z
tests/resources/__init__.py
michaelcredera/fullcontact-python-client
482970b00b134409e6c9f303e7c2a7a6fc4a4685
[ "Apache-2.0" ]
7
2020-09-18T16:02:43.000Z
2022-02-17T09:22:54.000Z
import inspect import json import os def get_resource_json(json_type, request_type, request_method, test_scenario): dirpath = "%s/api_%ss/" % (os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))), json_type) filename = "%s_%s_%s.json" % (request_type, request_method, test_scenario) fi...
33.866667
116
0.706693
c8e2efa1af2e090d7128861133dc4ba83f3aefe0
8,060
py
Python
tensorx/activation.py
TensorX/tensorx
11d7727b055fbee29e122ffbfc7a39057aeeae40
[ "Apache-2.0" ]
5
2017-09-21T22:12:19.000Z
2021-02-22T10:42:28.000Z
tensorx/activation.py
TensorX/tensorx
11d7727b055fbee29e122ffbfc7a39057aeeae40
[ "Apache-2.0" ]
null
null
null
tensorx/activation.py
TensorX/tensorx
11d7727b055fbee29e122ffbfc7a39057aeeae40
[ "Apache-2.0" ]
2
2018-04-02T09:26:41.000Z
2022-01-06T15:41:06.000Z
import tensorflow as tf import math from tensorx.utils import as_tensor def identity(x, name: str = None) -> tf.Tensor: """ Identity function Returns a tensor with the same content as the input tensor. Args: x (`Tensor`): The input tensor. name (`str`): name for this op Returns: ...
28.480565
150
0.588089
c8e3139c050ed291e65ffbd674ba9f2b2996f8a3
2,728
py
Python
Homework/Refactoring-Pep8/docstrings_blank_lines.py
caocmai/SPD-2.31-Testing-and-Architecture
5e9a86849dff795cc06c7a41af49c030df91eaa8
[ "MIT" ]
null
null
null
Homework/Refactoring-Pep8/docstrings_blank_lines.py
caocmai/SPD-2.31-Testing-and-Architecture
5e9a86849dff795cc06c7a41af49c030df91eaa8
[ "MIT" ]
null
null
null
Homework/Refactoring-Pep8/docstrings_blank_lines.py
caocmai/SPD-2.31-Testing-and-Architecture
5e9a86849dff795cc06c7a41af49c030df91eaa8
[ "MIT" ]
null
null
null
# by Kami Bigdely # Docstrings and blank lines class OnBoardTemperatureSensor: """Get the onboard temperature .""" VOLTAGE_TO_TEMP_FACTOR = 5.6 def __init__(self): pass def read_voltage(self): """Read the voltage.""" return 2.7 def get_temperature(self): """...
32.86747
120
0.640396
c8e32bab125fa14bd1268005fe695475ee64a48e
1,222
py
Python
husky_ws/src/scripts/husky_move_to_point.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
null
null
null
husky_ws/src/scripts/husky_move_to_point.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
4
2020-05-07T13:31:11.000Z
2020-06-09T00:14:08.000Z
husky_ws/src/scripts/husky_move_to_point.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
1
2021-03-06T07:02:51.000Z
2021-03-06T07:02:51.000Z
#!/usr/bin/env python import argparse import roslib import rospy import actionlib #move_base_msgs from move_base_msgs.msg import * def simple_move(coords): rospy.init_node('simple_move') #Simple Action Client sac = actionlib.SimpleActionClient('move_base', MoveBaseAction ) #create goal goal =...
23.5
80
0.671849
c8e34bd791b31dba853ba3371820b5e68f214461
3,025
py
Python
mkdoc.py
j2l/rivescript-js
24288c651064237d4195aa9920eba13f5a690fac
[ "MIT" ]
389
2015-02-13T17:23:46.000Z
2022-03-26T17:14:43.000Z
mkdoc.py
j2l/rivescript-js
24288c651064237d4195aa9920eba13f5a690fac
[ "MIT" ]
315
2015-01-30T07:29:28.000Z
2022-01-15T05:47:12.000Z
mkdoc.py
j2l/rivescript-js
24288c651064237d4195aa9920eba13f5a690fac
[ "MIT" ]
164
2015-04-01T05:27:40.000Z
2021-12-23T20:19:27.000Z
#!/usr/bin/env python3 """Generate documentation from the RiveScript source files.""" import os import os.path import markdown def main(): # Scan for JavaScript modules. modules = [] for path, dirs, files in os.walk("src"): for f in files: module = os.path.join(path, f) \ ...
24.593496
75
0.497851
c8e358476348e7be29d215dcef802fc16455d004
371
py
Python
pagai/app.py
arkhn/nlp-engine
1a5dac49e21181f0302ff99cfc2575aefaa3986c
[ "Apache-2.0" ]
12
2018-11-20T10:34:14.000Z
2019-10-16T17:07:33.000Z
pagai/app.py
arkhn/pagai
1a5dac49e21181f0302ff99cfc2575aefaa3986c
[ "Apache-2.0" ]
32
2019-11-06T10:31:39.000Z
2021-02-17T15:43:58.000Z
pagai/app.py
arkhn/pagai
1a5dac49e21181f0302ff99cfc2575aefaa3986c
[ "Apache-2.0" ]
1
2018-11-07T17:01:13.000Z
2018-11-07T17:01:13.000Z
from flask import Flask from pagai.views import api from pagai.json_encoder import MyJSONEncoder def create_app(): app = Flask(__name__) app.register_blueprint(api) app.json_encoder = MyJSONEncoder return app app = create_app() if __name__ == "__main__": # Start application app.run(debug=...
18.55
68
0.716981
c8e3760a176d1c4ad7d9f3907d20e2fb80618774
2,146
py
Python
mitmproxy/addons/modifybody.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/addons/modifybody.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/addons/modifybody.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
import re from collections.abc import Sequence from mitmproxy import ctx, exceptions from mitmproxy.addons.modifyheaders import parse_modify_spec, ModifySpec class ModifyBody: def __init__(self): self.replacements: list[ModifySpec] = [] def load(self, loader): loader.add_option( ...
32.515152
88
0.512582
c8e39138b20539c82c478a1ec26db6bf3d85bb83
3,244
py
Python
backend/type/type.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
backend/type/type.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
backend/type/type.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
# Describe type property of variables class Type (object): size_unknown = -1 @staticmethod def type_factory(t, obj): if t == "INT32": return IntegerType(4, False, obj) def size(self): raise Exception ("Method not instantiated") def alloc_size (self): return se...
20.149068
82
0.589704
c8e3b33c25175f7093cc1322a215dbf11b99d15d
19,710
py
Python
mmaction/models/backbones/x3d.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/models/backbones/x3d.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/models/backbones/x3d.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import math import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.cnn import (ConvModule, Swish, build_activation_layer, constant_init, kaiming_init) from mmcv.runner import load_checkpoint from mmcv.utils import _BatchNorm from ...ut...
36.703911
108
0.554439
c8e3bd4d85a7c49727649bf774098dcb3c63f670
1,743
py
Python
src/metrics.py
dancj/Btcie
2036aa5783010aa0101937c5bfed6d5cdda36b63
[ "MIT" ]
null
null
null
src/metrics.py
dancj/Btcie
2036aa5783010aa0101937c5bfed6d5cdda36b63
[ "MIT" ]
null
null
null
src/metrics.py
dancj/Btcie
2036aa5783010aa0101937c5bfed6d5cdda36b63
[ "MIT" ]
null
null
null
""" Dan Thayer - playing with python and indicators in pursuit of profit Oct 2021 """ import pandas as pd import numpy as np import datetime as dt class Metrics: @staticmethod def daily_returns(df): """ Compute returns for each day of the timeseries price data :param df: price data...
31.125
108
0.633964
c8e3c88c04ed316fc9ba8cf388f802219a0202b9
12,163
py
Python
docs/conf.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
69
2019-11-30T06:47:06.000Z
2022-02-03T22:00:37.000Z
docs/conf.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
46
2019-11-23T20:37:26.000Z
2021-11-20T15:50:44.000Z
docs/conf.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
21
2019-12-07T08:18:53.000Z
2021-12-22T01:02:05.000Z
# -*- coding: utf-8 -*- # # CyBorgBackup documentation build configuration file, created by # sphinx-quickstart on Fri Nov 14 00:05:47 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. ...
31.75718
91
0.714873
c8e3f00edcce25a53bf24911752082f9913b882c
1,855
py
Python
data/tracking/methods/SiamFC/pseudo_data.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/tracking/methods/SiamFC/pseudo_data.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/tracking/methods/SiamFC/pseudo_data.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
import torch class SiamFCPseudoDataGenerator: def __init__(self, template_size, search_size, template_feat_map_size, hidden_dim): self.template_size = template_size self.search_size = search_size self.template_feat_map_size = template_feat_map_size self.device = torch.device('cpu')...
42.159091
208
0.712668