hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
5861890f40c195d9d9cd8464fdd3da892466f679
8,080
py
Python
python/mxnet/context.py
feevos/incubator-mxnet
275378a49a6035fd5bdead4a74ac36b6070295a7
[ "Apache-2.0" ]
null
null
null
python/mxnet/context.py
feevos/incubator-mxnet
275378a49a6035fd5bdead4a74ac36b6070295a7
[ "Apache-2.0" ]
null
null
null
python/mxnet/context.py
feevos/incubator-mxnet
275378a49a6035fd5bdead4a74ac36b6070295a7
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.490566
91
0.627104
58618a4465a15f955aaa88fd0bac8fbce9ce5c48
3,422
py
Python
theory/model/tconfig.py
ralfonso/theory
41684969313cfc545d74b306e409fd5bf21387b3
[ "MIT" ]
4
2015-07-03T19:53:59.000Z
2016-04-25T03:03:56.000Z
theory/model/tconfig.py
ralfonso/theory
41684969313cfc545d74b306e409fd5bf21387b3
[ "MIT" ]
null
null
null
theory/model/tconfig.py
ralfonso/theory
41684969313cfc545d74b306e409fd5bf21387b3
[ "MIT" ]
2
2020-03-29T22:02:29.000Z
2021-07-13T07:17:19.000Z
# theory MPD client # Copyright (C) 2008 Ryan Roemmich <ralfonso@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
34.918367
108
0.630333
5861aaa87e16980cf7f95fd4b748950ec3d44176
5,055
py
Python
tests/test_error.py
iotanbo/iotanbo_py_utils
96a2728e051b5e5ee601459b4c449b5495768ba8
[ "MIT" ]
null
null
null
tests/test_error.py
iotanbo/iotanbo_py_utils
96a2728e051b5e5ee601459b4c449b5495768ba8
[ "MIT" ]
14
2021-06-07T17:36:02.000Z
2021-06-07T18:02:37.000Z
tests/test_error.py
iotanbo/iotanbo_py_utils
96a2728e051b5e5ee601459b4c449b5495768ba8
[ "MIT" ]
null
null
null
"""Test `iotanbo_py_utils.error.py`.""" from iotanbo_py_utils.error import Error from iotanbo_py_utils.error import ErrorKind
28.240223
76
0.669041
58641c0b89af2618e34db3686e77a3a4237fbad3
651
py
Python
setup.py
wontonst/orvibo
72722b16caa929ae3f07b0a6789a0f18cd3ebad3
[ "MIT" ]
null
null
null
setup.py
wontonst/orvibo
72722b16caa929ae3f07b0a6789a0f18cd3ebad3
[ "MIT" ]
null
null
null
setup.py
wontonst/orvibo
72722b16caa929ae3f07b0a6789a0f18cd3ebad3
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='orvibo', version='1.5.0...
27.125
108
0.725038
58652e385a1acfda94718bdec15c5a91dde6b8c7
3,053
py
Python
autograder-master/autograder/test_runner.py
Diana1320622/AILabs
315a6f4b8f8dd60e4f53d348e06e23b4d827d179
[ "MIT" ]
null
null
null
autograder-master/autograder/test_runner.py
Diana1320622/AILabs
315a6f4b8f8dd60e4f53d348e06e23b4d827d179
[ "MIT" ]
null
null
null
autograder-master/autograder/test_runner.py
Diana1320622/AILabs
315a6f4b8f8dd60e4f53d348e06e23b4d827d179
[ "MIT" ]
null
null
null
import glob, os import subprocess from difflib import context_diff
33.184783
83
0.556174
5865c20624359a297b3a450c2e37573f88fc2710
245
py
Python
amazon/model/admin.py
Lakshmivijaykrishnan/mini-amazon
89ce7c5e2af127a2e8e027c87cb245fa82d184d6
[ "Unlicense" ]
null
null
null
amazon/model/admin.py
Lakshmivijaykrishnan/mini-amazon
89ce7c5e2af127a2e8e027c87cb245fa82d184d6
[ "Unlicense" ]
null
null
null
amazon/model/admin.py
Lakshmivijaykrishnan/mini-amazon
89ce7c5e2af127a2e8e027c87cb245fa82d184d6
[ "Unlicense" ]
null
null
null
from amazon.model import db
22.272727
43
0.669388
58672ac219aa158da24cd5ab42129bffccff6013
2,429
py
Python
tests/fixtures/test_abstracts/content_03_expected.py
elifesciences/elife-tools
ee345bf0e6703ef0f7e718355e85730abbdfd117
[ "MIT" ]
9
2015-04-16T08:13:31.000Z
2020-05-18T14:03:06.000Z
tests/fixtures/test_abstracts/content_03_expected.py
elifesciences/elife-tools
ee345bf0e6703ef0f7e718355e85730abbdfd117
[ "MIT" ]
310
2015-02-11T00:30:09.000Z
2021-07-14T23:58:50.000Z
tests/fixtures/test_abstracts/content_03_expected.py
elifesciences/elife-tools
ee345bf0e6703ef0f7e718355e85730abbdfd117
[ "MIT" ]
9
2015-02-04T01:21:28.000Z
2021-06-15T12:50:47.000Z
expected = [ { "abstract_type": None, "content": "RET can be activated in cis or trans by its co-receptors and ligands in vitro, but the physiological roles of trans signaling are unclear. Rapidly adapting (RA) mechanoreceptors in dorsal root ganglia (DRGs) express Ret and the co-receptor Gfr\u03b12...
303.625
1,326
0.792096
5868165c78c75470f0c193bcf63d0eb76394d605
5,059
py
Python
NER-BiLSTM-CRF-PyTorch-main/src/eval.py
OscarChang46/de-identify-sensitive-data-for-cybersecurity-use-cases-e.g.-PII-and-PHI-data-in-unstructured-text-an
e77ca0d5c19206a349ecc94fc71febdc10824482
[ "MIT" ]
22
2021-04-28T04:19:04.000Z
2022-03-20T17:17:57.000Z
NER-BiLSTM-CRF-PyTorch-main/src/eval.py
OscarChang46/de-identify-sensitive-data-for-cybersecurity-use-cases-e.g.-PII-and-PHI-data-in-unstructured-text-an
e77ca0d5c19206a349ecc94fc71febdc10824482
[ "MIT" ]
3
2021-09-03T12:14:36.000Z
2022-03-07T10:43:51.000Z
NER-BiLSTM-CRF-PyTorch-main/src/eval.py
OscarChang46/de-identify-sensitive-data-for-cybersecurity-use-cases-e.g.-PII-and-PHI-data-in-unstructured-text-an
e77ca0d5c19206a349ecc94fc71febdc10824482
[ "MIT" ]
9
2021-03-25T13:44:51.000Z
2022-02-19T03:56:38.000Z
# coding=utf-8 import optparse import torch import time import pickle from torch.autograd import Variable from loader import * from utils import * # python -m visdom.server optparser = optparse.OptionParser() optparser.add_option( "-t", "--test", default="data/eng.testb", help="Test set location" ) optparse...
32.22293
94
0.613758
586904d063488a1bde40ac6c380144e572f09389
789
py
Python
src/openbiolink/graph_creation/metadata_db_file/edge/dbMetaEdgeSiderInd.py
cthoyt/OpenBioLink
c5f85b99f9104f70493136c343e4554261e990a5
[ "MIT" ]
null
null
null
src/openbiolink/graph_creation/metadata_db_file/edge/dbMetaEdgeSiderInd.py
cthoyt/OpenBioLink
c5f85b99f9104f70493136c343e4554261e990a5
[ "MIT" ]
null
null
null
src/openbiolink/graph_creation/metadata_db_file/edge/dbMetaEdgeSiderInd.py
cthoyt/OpenBioLink
c5f85b99f9104f70493136c343e4554261e990a5
[ "MIT" ]
null
null
null
from openbiolink.graph_creation.metadata_db_file.edge.dbMetadataEdge import DbMetadataEdge from openbiolink.graph_creation.types.dbType import DbType
43.833333
90
0.69455
586a480b0504292a0e113f2a2851c35d28765f0b
377
py
Python
rename_files.py
ssinhaleite/util
b65a6e0d7ff270cc2bbdbc09b7894ffc77edaf8d
[ "MIT" ]
1
2018-10-10T11:37:45.000Z
2018-10-10T11:37:45.000Z
rename_files.py
ssinhaleite/util
b65a6e0d7ff270cc2bbdbc09b7894ffc77edaf8d
[ "MIT" ]
null
null
null
rename_files.py
ssinhaleite/util
b65a6e0d7ff270cc2bbdbc09b7894ffc77edaf8d
[ "MIT" ]
null
null
null
import mahotas as mh import glob import os # rename files from 0 to number of files. files = glob.glob("/path/*") files.sort() if not os.path.isdir("/path/renamed/"): os.mkdir("/path/renamed/") for i in range(len(files)): print("Processing " + files[i]) renamedFile = mh.imread(files[i]) mh.imsave("...
20.944444
71
0.649867
586b210947d0b950e98da84e776f0d34d976b0d2
1,749
py
Python
scripts/download_lookml.py
orf/lkml
2175a22e0fe8a894ef9312c73c6a062df2447795
[ "MIT" ]
110
2019-06-25T14:26:41.000Z
2022-02-01T13:27:19.000Z
scripts/download_lookml.py
orf/lkml
2175a22e0fe8a894ef9312c73c6a062df2447795
[ "MIT" ]
56
2019-06-26T22:11:43.000Z
2022-03-15T20:37:30.000Z
scripts/download_lookml.py
orf/lkml
2175a22e0fe8a894ef9312c73c6a062df2447795
[ "MIT" ]
28
2019-07-08T17:34:49.000Z
2022-03-25T14:36:00.000Z
import os import re from base64 import b64decode from pathlib import Path import requests username = os.environ["GITHUB_USERNAME"] password = os.environ["GITHUB_PERSONAL_ACCESS_TOKEN"] auth = requests.auth.HTTPBasicAuth(username, password) directory = Path(__file__).resolve().parent.parent / "github" directory.mkdir...
26.5
71
0.573471
586cd0144d170eb0711f6999768b768351ab3215
579
py
Python
docs/conf.py
RTBHOUSE/carreralib
1daa959ef411b29601c92f86c0f6876fe8367837
[ "MIT" ]
null
null
null
docs/conf.py
RTBHOUSE/carreralib
1daa959ef411b29601c92f86c0f6876fe8367837
[ "MIT" ]
null
null
null
docs/conf.py
RTBHOUSE/carreralib
1daa959ef411b29601c92f86c0f6876fe8367837
[ "MIT" ]
1
2020-02-25T20:40:50.000Z
2020-02-25T20:40:50.000Z
import os import sys sys.path.insert(0, os.path.abspath('..')) project = 'carreralib' copyright = '2015-2017 Thomas Kemmer' version = get_version(b'../carreralib/__init__.py') release = version extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.todo' ] exc...
20.678571
71
0.658031
586d9bd962737e276a73a87798d6fdc63e31cd16
503
py
Python
algos/lcs.py
asaini/algo-py
e9d18ef82d14e6304430bbd8b065430e76aa7eb8
[ "MIT" ]
1
2015-10-01T21:17:10.000Z
2015-10-01T21:17:10.000Z
algos/lcs.py
asaini/algo-py
e9d18ef82d14e6304430bbd8b065430e76aa7eb8
[ "MIT" ]
null
null
null
algos/lcs.py
asaini/algo-py
e9d18ef82d14e6304430bbd8b065430e76aa7eb8
[ "MIT" ]
null
null
null
def lcs(x, y): """ Longest Common Subsequence """ n = len(x) + 1 m = len(y) + 1 table = [ [0]*m for i in range(n) ] for i in range(n): for j in range(m): # If either string is empty, then lcs = 0 if i == 0 or j == 0: table[i][j] = 0 elif x[i - 1] == y[j - 1]: table[i][j] = 1 + table[i-1]...
16.225806
51
0.499006
586f8df02b72779b1db755aeb20b5f85e4d788d2
350
py
Python
app/models/methods/set_device_info_method.py
luisalvesmartins/TAPO-P100
02bc929a87bbe4681739b14a716f6cef2b159fd1
[ "MIT" ]
null
null
null
app/models/methods/set_device_info_method.py
luisalvesmartins/TAPO-P100
02bc929a87bbe4681739b14a716f6cef2b159fd1
[ "MIT" ]
1
2021-06-23T09:21:40.000Z
2021-07-02T17:21:12.000Z
app/models/methods/set_device_info_method.py
luisalvesmartins/TAPO-P100
02bc929a87bbe4681739b14a716f6cef2b159fd1
[ "MIT" ]
null
null
null
from models.methods import method from typing import Any
25
51
0.708571
586fa3eca62dcbd41023f2732e592c80e6a5d80c
3,077
py
Python
projects/InterpretationReID/train_net.py
SheldongChen/AMD.github.io
5f3018f239127949b2d3995162ffe033dcf8051a
[ "Apache-2.0" ]
17
2021-11-01T01:14:06.000Z
2022-03-02T14:59:39.000Z
projects/InterpretationReID/train_net.py
SheldongChen/AMD.github.io
5f3018f239127949b2d3995162ffe033dcf8051a
[ "Apache-2.0" ]
2
2021-12-22T07:56:13.000Z
2022-03-18T10:26:21.000Z
projects/InterpretationReID/train_net.py
SheldongChen/AMD.github.io
5f3018f239127949b2d3995162ffe033dcf8051a
[ "Apache-2.0" ]
2
2022-02-18T07:42:38.000Z
2022-02-18T10:16:26.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: sherlock @contact: sherlockliao01@gmail.com """ import logging import os import sys sys.path.append('.') from fastreid.config import get_cfg from projects.InterpretationReID.interpretationreid.engine import DefaultTrainer, default_argument_parser, default_setup, ...
26.756522
128
0.677283
586fc6bf6803a3f84dbc2e58fa7867211fee503b
826
py
Python
asynciomeasures/collectors.py
Poogles/aiomeasures
d62482e8de56a00bce310e7c422d1a1e7a114ef7
[ "MIT" ]
2
2018-12-27T22:01:41.000Z
2019-04-29T11:51:15.000Z
asynciomeasures/collectors.py
Poogles/aiomeasures
d62482e8de56a00bce310e7c422d1a1e7a114ef7
[ "MIT" ]
null
null
null
asynciomeasures/collectors.py
Poogles/aiomeasures
d62482e8de56a00bce310e7c422d1a1e7a114ef7
[ "MIT" ]
null
null
null
from collections import deque from asynciomeasures.events import Event
28.482759
63
0.457627
58708500568a55067da2b5aa34b23852b3efa570
1,576
py
Python
hardware/testbenches/common/drivers/state/driver.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/state/driver.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/state/driver.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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...
37.52381
74
0.692259
5870b28965fe63f49e7e9e53bb51b1566ea6452e
1,463
py
Python
python/primsAlgo.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
python/primsAlgo.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
python/primsAlgo.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
# Prim's Algorithm in Python INF = 9999999 # number of vertices in graph V = 5 # create a 2d array of size 5x5 # for adjacency matrix to represent graph G = [ [0, 9, 75, 0, 0], [9, 0, 95, 19, 42], [75, 95, 0, 51, 66], [0, 19, 51, 0, 31], [0, 42, 66, 31, 0], ] # create a array to track...
31.12766
68
0.546822
5870fd20f646ac17e765716a8a7674f3e6c452db
13,449
py
Python
tests/test_likelihood.py
sa2c/care-home-fit
58a2639c74b53e24f062d0dfc3e21df6d53b3077
[ "MIT" ]
null
null
null
tests/test_likelihood.py
sa2c/care-home-fit
58a2639c74b53e24f062d0dfc3e21df6d53b3077
[ "MIT" ]
null
null
null
tests/test_likelihood.py
sa2c/care-home-fit
58a2639c74b53e24f062d0dfc3e21df6d53b3077
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Tests for the likelihood.py module''' from time import perf_counter_ns import pytest import numpy as np from numpy.testing import assert_array_equal, assert_almost_equal from scipy.stats import gamma import likelihood SMALL_FIT_PARAMS = { 'baseline_intensities': np.asarray([1, 2, np.na...
32.485507
79
0.693509
5871c92a8c31f58780367e72dd645d194490519d
266
py
Python
HalleyComet/bit/models.py
ryanduan/Halley_Comet
bd3263e4575c820dd14c265c2c0d4b6b44197682
[ "Apache-2.0" ]
null
null
null
HalleyComet/bit/models.py
ryanduan/Halley_Comet
bd3263e4575c820dd14c265c2c0d4b6b44197682
[ "Apache-2.0" ]
null
null
null
HalleyComet/bit/models.py
ryanduan/Halley_Comet
bd3263e4575c820dd14c265c2c0d4b6b44197682
[ "Apache-2.0" ]
null
null
null
from django.db import models
26.6
56
0.740602
587220b8fa00eda9456728bff03e4461bf290254
2,411
py
Python
data-structure/queue.py
66chenbiao/sleepace_verification_tool
6271312d9d78ee50703e27a75787510cab4c7f4d
[ "Apache-2.0" ]
null
null
null
data-structure/queue.py
66chenbiao/sleepace_verification_tool
6271312d9d78ee50703e27a75787510cab4c7f4d
[ "Apache-2.0" ]
null
null
null
data-structure/queue.py
66chenbiao/sleepace_verification_tool
6271312d9d78ee50703e27a75787510cab4c7f4d
[ "Apache-2.0" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
27.397727
84
0.561178
58731f101956f7789a536c381812a3703830d466
262
py
Python
m2-modified/ims/common/agentless-system-crawler/crawler/plugins/emitters/http_emitter.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/plugins/emitters/http_emitter.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/plugins/emitters/http_emitter.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import logging from iemit_plugin import IEmitter from plugins.emitters.base_http_emitter import BaseHttpEmitter logger = logging.getLogger('crawlutils')
20.153846
62
0.793893
58733d23c2ee586468a2e3bd18d3eae0569b7613
1,946
py
Python
frequency_domain/dwt.py
StephenTaylor1998/Research
193dc88d368caf5a458be24456c4f6d5045d341f
[ "Apache-2.0" ]
null
null
null
frequency_domain/dwt.py
StephenTaylor1998/Research
193dc88d368caf5a458be24456c4f6d5045d341f
[ "Apache-2.0" ]
null
null
null
frequency_domain/dwt.py
StephenTaylor1998/Research
193dc88d368caf5a458be24456c4f6d5045d341f
[ "Apache-2.0" ]
1
2022-03-27T14:04:46.000Z
2022-03-27T14:04:46.000Z
import torch import torch.nn as nn import numpy as np import torch.nn.functional as F import pywt
38.156863
81
0.571429
58747a38ec4c868ae85caa7d4f7a021b2a655030
7,973
py
Python
facebook_messenger_conversation.py
davidkrantz/FacebookChatStatistics
01fc2a022d45ed695fa7f4ad53d6532a160379db
[ "MIT" ]
35
2018-02-22T09:04:21.000Z
2022-03-21T18:28:21.000Z
facebook_messenger_conversation.py
davidkrantz/FacebookChatStatistics
01fc2a022d45ed695fa7f4ad53d6532a160379db
[ "MIT" ]
5
2018-05-03T17:56:35.000Z
2022-02-24T08:19:58.000Z
facebook_messenger_conversation.py
davidkrantz/FacebookChatStatistics
01fc2a022d45ed695fa7f4ad53d6532a160379db
[ "MIT" ]
12
2018-05-15T19:15:25.000Z
2022-02-24T08:20:15.000Z
import sys import numpy as np import json import matplotlib.pyplot as plt from matplotlib.dates import DateFormatter from matplotlib.backends.backend_pdf import PdfPages from datetime import datetime, timedelta import matplotlib.dates as mdates import emoji
34.07265
82
0.56014
5876eec474b4c0410b6e104f6c352d08e47e01ce
1,758
py
Python
setup.py
stevearc/pyramid_duh
af14b185533d00b69dfdb8ab1cab6f1d1d8d4647
[ "MIT" ]
5
2015-12-15T09:27:16.000Z
2017-12-12T12:56:04.000Z
setup.py
stevearc/pyramid_duh
af14b185533d00b69dfdb8ab1cab6f1d1d8d4647
[ "MIT" ]
null
null
null
setup.py
stevearc/pyramid_duh
af14b185533d00b69dfdb8ab1cab6f1d1d8d4647
[ "MIT" ]
null
null
null
""" Setup file """ import os import sys from setuptools import setup, find_packages HERE = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(HERE, 'README.rst')).read() CHANGES = open(os.path.join(HERE, 'CHANGES.rst')).read() REQUIREMENTS = [ 'pyramid', 'six', ] TEST_REQUIREMENTS = [ ...
30.310345
61
0.580205
5877683380ccf730fab956e05f9d48490796920d
555
py
Python
telegramhelpers.py
olgamirete/log-public-ip
0e53c27e62f0709a9d0adf52c860b407a841a252
[ "MIT" ]
null
null
null
telegramhelpers.py
olgamirete/log-public-ip
0e53c27e62f0709a9d0adf52c860b407a841a252
[ "MIT" ]
null
null
null
telegramhelpers.py
olgamirete/log-public-ip
0e53c27e62f0709a9d0adf52c860b407a841a252
[ "MIT" ]
null
null
null
import requests, os from dotenv import load_dotenv load_dotenv() API_TOKEN = os.getenv('API_TOKEN')
24.130435
64
0.572973
58793e76d3fcb25dfcdd3339f4cd5621aa988f33
1,880
py
Python
datawinners/questionnaire/tests/test_questionnaire_template.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/questionnaire/tests/test_questionnaire_template.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/questionnaire/tests/test_questionnaire_template.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from mock import patch, MagicMock from mangrove.datastore.database import DatabaseManager from datawinners.questionnaire.library import QuestionnaireLibrary
47
100
0.643617
58795121905bb3b21c3853525b46782e8fe333ee
2,826
py
Python
chainer_chemistry/links/update/ggnn_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
184
2019-11-27T12:59:01.000Z
2022-03-29T19:18:54.000Z
chainer_chemistry/links/update/ggnn_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
21
2019-12-08T01:53:33.000Z
2020-10-23T01:19:56.000Z
chainer_chemistry/links/update/ggnn_update.py
pfnet/chainerchem
efe323aa21f63a815130d673781e7cca1ccb72d2
[ "MIT" ]
45
2019-11-28T09:59:54.000Z
2022-02-07T02:42:46.000Z
import chainer from chainer import functions from chainer import links import chainer_chemistry from chainer_chemistry.links.connection.graph_linear import GraphLinear from chainer_chemistry.utils import is_sparse
36.230769
79
0.624204
587a404ecb9909eff07171e4499fcb5702d3abd5
78
py
Python
samples/ast/test.py
Ryoich/python_zero
fe4a5fd8b11c8c059d82b797cd1668f96d54e541
[ "CC-BY-4.0" ]
203
2018-12-14T10:16:33.000Z
2022-03-10T07:23:34.000Z
samples/ast/test.py
Ryoich/python_zero
fe4a5fd8b11c8c059d82b797cd1668f96d54e541
[ "CC-BY-4.0" ]
39
2019-06-21T12:28:03.000Z
2022-01-17T10:41:53.000Z
samples/ast/test.py
Ryoich/python_zero
fe4a5fd8b11c8c059d82b797cd1668f96d54e541
[ "CC-BY-4.0" ]
29
2018-12-30T06:48:59.000Z
2022-03-10T07:43:42.000Z
print("Hello")
8.666667
16
0.538462
587a892ea698fcb43f251688aa0bd017aec53e6b
1,621
py
Python
badboids/test/test_simulation_parameters.py
RiannaK/Coursework2
471589593fd09c61fae39cb5975cc88fee36971c
[ "MIT" ]
null
null
null
badboids/test/test_simulation_parameters.py
RiannaK/Coursework2
471589593fd09c61fae39cb5975cc88fee36971c
[ "MIT" ]
2
2017-01-02T11:11:31.000Z
2017-01-02T22:09:15.000Z
badboids/test/test_simulation_parameters.py
RiannaK/Coursework2
471589593fd09c61fae39cb5975cc88fee36971c
[ "MIT" ]
null
null
null
from numpy.testing import assert_array_almost_equal as array_assert from badboids.boids import SimulationParameters def test_simulation_parameters_init(): """Tests Simulation Parameters constructor""" # Arrange formation_flying_distance = 800 formation_flying_strength = 0.10 alert_distance = 8 ...
33.770833
100
0.779766
587e704ad57d09ab05a6f91557e90faddd8fb439
3,247
py
Python
django_town/oauth2/models.py
uptown/django-town
4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50
[ "MIT" ]
null
null
null
django_town/oauth2/models.py
uptown/django-town
4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50
[ "MIT" ]
null
null
null
django_town/oauth2/models.py
uptown/django-town
4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from django_town.core.settings import OAUTH2_SETTINGS try: if not OAUTH2_SETTINGS.ACCESS_TOKEN_SECRET_KEY: raise ImportError except KeyError: # import traceback # traceback.print_exc() raise ImportError from django.db import models from django.conf import settings from ...
33.132653
92
0.73206
587e7271e86565dcf7c4f99ca8d0228de3d2839e
265
py
Python
util_list_files.py
jhu-alistair/image_utilities
07fcf2fb78b57b3e8ac798daffa9f4d7b05d9063
[ "Apache-2.0" ]
null
null
null
util_list_files.py
jhu-alistair/image_utilities
07fcf2fb78b57b3e8ac798daffa9f4d7b05d9063
[ "Apache-2.0" ]
null
null
null
util_list_files.py
jhu-alistair/image_utilities
07fcf2fb78b57b3e8ac798daffa9f4d7b05d9063
[ "Apache-2.0" ]
null
null
null
# List files in a directory. Useful for testing the path from local_tools import * from image_renamer import ImageRenamer if confirm_config('path'): img_path = get_config('path') fl = ImageRenamer(img_path) for ff in fl.image_files(): print(ff)
29.444444
56
0.720755
587f22d6d391706fced03d26fcfcf342a5722cf3
1,394
py
Python
deepmedic_config.py
farrokhkarimi/deepmedic_project
b0c916171673ce3259d2458146f2db941f0bf270
[ "MIT" ]
2
2021-07-15T18:40:18.000Z
2021-08-03T17:10:12.000Z
deepmedic_config.py
farrokhkarimi/deepmedic_project
b0c916171673ce3259d2458146f2db941f0bf270
[ "MIT" ]
null
null
null
deepmedic_config.py
farrokhkarimi/deepmedic_project
b0c916171673ce3259d2458146f2db941f0bf270
[ "MIT" ]
1
2022-01-17T12:11:51.000Z
2022-01-17T12:11:51.000Z
import os
48.068966
137
0.636298
587fce66d43c23ddc2eed105e1033650f3ef5080
174
py
Python
configs/models/aott.py
yoxu515/aot-benchmark
5a7665fc8e0f0e64bc8ba6028b15d9ab32f4c56a
[ "BSD-3-Clause" ]
105
2021-11-16T12:43:59.000Z
2022-03-31T08:05:11.000Z
configs/models/aott.py
lingyunwu14/aot-benchmark
99f74f051c91ac221e44f3edab3534ae4dd233f7
[ "BSD-3-Clause" ]
14
2021-11-18T09:52:36.000Z
2022-03-31T16:26:32.000Z
configs/models/aott.py
lingyunwu14/aot-benchmark
99f74f051c91ac221e44f3edab3534ae4dd233f7
[ "BSD-3-Clause" ]
17
2021-11-16T13:28:29.000Z
2022-03-29T02:14:48.000Z
import os from .default import DefaultModelConfig
21.75
39
0.706897
58803dca4ce3bbdf62d3eb2aca41861e7c2239d8
1,125
py
Python
main.py
philipperemy/tensorflow-fifo-queue-example
1e38e6e907b7856e954caeeb01d52f7d66e54de0
[ "MIT" ]
42
2017-03-17T07:22:30.000Z
2022-03-31T16:11:50.000Z
main.py
afcarl/tensorflow-fifo-queue-example
885bcfe417f6d3a9beb4180922cd221d95abc1ef
[ "MIT" ]
2
2017-08-15T19:23:26.000Z
2017-08-18T02:49:11.000Z
main.py
afcarl/tensorflow-fifo-queue-example
885bcfe417f6d3a9beb4180922cd221d95abc1ef
[ "MIT" ]
15
2017-05-04T07:27:24.000Z
2022-03-31T16:26:28.000Z
from __future__ import print_function import time import tensorflow as tf from data import DataGenerator if __name__ == '__main__': main()
25
95
0.683556
58803eeb0ae16d220e9ed2f74395fa7c80ff5afa
1,285
py
Python
Chapter_3/OO_DimmerSwitch_Model1.py
zjwillie/Object-Oriented-Python-Code
017b07084c7937c870926b96a856f60b9d7077aa
[ "BSD-2-Clause" ]
38
2021-11-16T03:04:42.000Z
2022-03-27T05:57:50.000Z
Chapter_3/OO_DimmerSwitch_Model1.py
zjwillie/Object-Oriented-Python-Code
017b07084c7937c870926b96a856f60b9d7077aa
[ "BSD-2-Clause" ]
null
null
null
Chapter_3/OO_DimmerSwitch_Model1.py
zjwillie/Object-Oriented-Python-Code
017b07084c7937c870926b96a856f60b9d7077aa
[ "BSD-2-Clause" ]
22
2021-11-11T15:57:58.000Z
2022-03-18T12:58:07.000Z
# Dimmer Switch class # Main code # Create first DimmerSwitch, turn on and raise level twice oDimmer1 = DimmerSwitch('Dimmer1') oDimmer1.turnOn() oDimmer1.raiseLevel() oDimmer1.raiseLevel() # Create second DimmerSwitch, turn on and raise level 3 times oDimmer2 = DimmerSwitch('Dimmer2') oDimmer2.turnOn() oDimmer...
23.363636
61
0.654475
5881480162c7fded411cf84766484caa36fe07ea
2,101
py
Python
python/vosk/transcriber/cli.py
madkote/vosk-api
8cf64ee93e5cc21a6d53595c6a80fc638a45b1d7
[ "Apache-2.0" ]
33
2019-09-03T23:21:14.000Z
2020-01-02T10:18:15.000Z
python/vosk/transcriber/cli.py
madkote/vosk-api
8cf64ee93e5cc21a6d53595c6a80fc638a45b1d7
[ "Apache-2.0" ]
7
2019-09-11T09:40:03.000Z
2019-12-31T10:04:21.000Z
python/vosk/transcriber/cli.py
madkote/vosk-api
8cf64ee93e5cc21a6d53595c6a80fc638a45b1d7
[ "Apache-2.0" ]
10
2019-09-05T05:30:16.000Z
2020-01-02T10:18:17.000Z
#!/usr/bin/env python3 import logging import argparse from pathlib import Path from vosk import list_models, list_languages from vosk.transcriber.transcriber import Transcriber parser = argparse.ArgumentParser( description = 'Transcribe audio file and save result in selected format') parser.add_argument( ...
28.013333
113
0.634936
58816407aff8c18d528cadd21c391b1d398c40c2
2,923
py
Python
OCR-Flask-app-master/tesseract.py
ChungNPH/OCR
06a78fa5f2c8f5891db1969ac2076ef8d20b74a8
[ "MIT" ]
null
null
null
OCR-Flask-app-master/tesseract.py
ChungNPH/OCR
06a78fa5f2c8f5891db1969ac2076ef8d20b74a8
[ "MIT" ]
null
null
null
OCR-Flask-app-master/tesseract.py
ChungNPH/OCR
06a78fa5f2c8f5891db1969ac2076ef8d20b74a8
[ "MIT" ]
null
null
null
import numpy as np import cv2 from imutils.object_detection import non_max_suppression import pytesseract from matplotlib import pyplot as plt print(ocr(["./images/car_wash.png"]))
30.134021
109
0.485118
5882bcb6d8e741c3012ffb7ce72cd027f9aee6d9
727
py
Python
Scripts/autotest/bug/migrations/0003_auto_20180128_2144.py
ludechu/DJevn
ee97447da3f6f55c92bfa1b6a20436a4f3098150
[ "bzip2-1.0.6" ]
null
null
null
Scripts/autotest/bug/migrations/0003_auto_20180128_2144.py
ludechu/DJevn
ee97447da3f6f55c92bfa1b6a20436a4f3098150
[ "bzip2-1.0.6" ]
null
null
null
Scripts/autotest/bug/migrations/0003_auto_20180128_2144.py
ludechu/DJevn
ee97447da3f6f55c92bfa1b6a20436a4f3098150
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0 on 2018-01-28 21:44 from django.db import migrations, models
30.291667
153
0.558459
5882ce3c784a4517fd7838c8665ee9d1be914598
17,439
py
Python
tests/test_validators.py
STYLER-Inc/styler-validation
73e6e3ac241cf26ca3ccee070f2736778d3d4849
[ "MIT" ]
null
null
null
tests/test_validators.py
STYLER-Inc/styler-validation
73e6e3ac241cf26ca3ccee070f2736778d3d4849
[ "MIT" ]
null
null
null
tests/test_validators.py
STYLER-Inc/styler-validation
73e6e3ac241cf26ca3ccee070f2736778d3d4849
[ "MIT" ]
null
null
null
""" Tests for validators """ from decimal import Decimal from unittest.mock import Mock import random import string from styler_validation import validators as va from styler_validation import messages as msg
23.159363
68
0.565113
5883b253d513cb80bd2362de5b0a8311d18ca8c7
3,305
py
Python
blog/models.py
Libor03/django-final
e29dc3237252c7b0fcfea13d948ed54ffe6d0339
[ "CC0-1.0" ]
null
null
null
blog/models.py
Libor03/django-final
e29dc3237252c7b0fcfea13d948ed54ffe6d0339
[ "CC0-1.0" ]
null
null
null
blog/models.py
Libor03/django-final
e29dc3237252c7b0fcfea13d948ed54ffe6d0339
[ "CC0-1.0" ]
null
null
null
from django.core.files.storage import FileSystemStorage from django.db import models # Create your models here. from datetime import date from django.urls import reverse #Used to generate URLs by reversing the URL patterns from django.contrib.auth.models import User #Blog author or commenter """ Metoda vrac cestu k...
36.722222
135
0.698033
5884a5b1746cc453a881292d3b4f5da9a92c1838
369
py
Python
1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 11/E1.py
codeclubbentleigh/Python
94d6a937aa3520b201ee1641c2009bd90566d52a
[ "MIT" ]
12
2018-11-14T03:55:58.000Z
2021-12-12T01:13:05.000Z
1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 11/E1.py
codeclubbentleigh/Python
94d6a937aa3520b201ee1641c2009bd90566d52a
[ "MIT" ]
null
null
null
1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 11/E1.py
codeclubbentleigh/Python
94d6a937aa3520b201ee1641c2009bd90566d52a
[ "MIT" ]
7
2019-10-10T06:28:58.000Z
2022-02-15T07:18:12.000Z
print(list(range(10, 0, -2))) # if start > end and step > 0: # a list generated from start to no more than end with step as constant increment # if start > end and step < 0: # an empty list generated # if start < end and step > 0: # an empty list generated # if start < end and step < 0 # a list generated from start to ...
36.9
81
0.704607
588580ba517b618b5770a81ab628f3858c9ed41b
3,141
py
Python
DeepModels/KerasConvNetMNIST.py
amingolnari/Deep-Learning-Course
00d4fe10db8d1dde3d9b2a94fe93531e8f836cbc
[ "MIT" ]
17
2018-12-05T06:50:34.000Z
2021-05-26T04:03:18.000Z
DeepModels/KerasConvNetMNIST.py
amingolnari/Deep-Learning-Course
00d4fe10db8d1dde3d9b2a94fe93531e8f836cbc
[ "MIT" ]
null
null
null
DeepModels/KerasConvNetMNIST.py
amingolnari/Deep-Learning-Course
00d4fe10db8d1dde3d9b2a94fe93531e8f836cbc
[ "MIT" ]
3
2018-12-08T14:59:47.000Z
2019-12-26T17:52:09.000Z
""" github : https://github.com/amingolnari/Deep-Learning-Course Author : Amin Golnari Keras Version : 2.2.4 Date : 4/12/2018 Keras CNN Classification on MNIST Data Code 301 """ ## If your GPU is AMD , you can use PlaidML Backend # import os # os.environ["KERAS_BACKEND"] = "plaidml.keras.backend" from keras.models i...
32.381443
97
0.61127
588a0eb119fc13cdd266d6e4d090c38c400126a9
526
py
Python
armstrong.py
Sanchr-sys/Letsupgrade_python7
f130cb1dff259878193fb65dd414fc936a7c760d
[ "Apache-2.0" ]
null
null
null
armstrong.py
Sanchr-sys/Letsupgrade_python7
f130cb1dff259878193fb65dd414fc936a7c760d
[ "Apache-2.0" ]
null
null
null
armstrong.py
Sanchr-sys/Letsupgrade_python7
f130cb1dff259878193fb65dd414fc936a7c760d
[ "Apache-2.0" ]
null
null
null
start = 104200 end = 702648265 for arm1 in range(start, end + 1): exp = len(str(arm1)) num_sum = 0 c = arm1 while c > 0: num = c % 10 num_sum += num ** exp c //= 10 if arm1 != num_sum: continue else: if arm1 == num_sum: ...
17.533333
70
0.503802
588a5c56f6208237e504aa5b6fa4afab73e5300c
787
py
Python
neji.py
NejiViraj/Viraj
d5bfc60e29100e00a87596b5e16961ab97a3dc4c
[ "BSD-2-Clause" ]
null
null
null
neji.py
NejiViraj/Viraj
d5bfc60e29100e00a87596b5e16961ab97a3dc4c
[ "BSD-2-Clause" ]
null
null
null
neji.py
NejiViraj/Viraj
d5bfc60e29100e00a87596b5e16961ab97a3dc4c
[ "BSD-2-Clause" ]
null
null
null
import requests import json
24.59375
125
0.645489
588aa8a3b88a98a9d49032a085a9b2d4f04e667f
9,731
py
Python
xmaintnote/ticketing.py
0xmc/maint-notification
bdf27f7b863a45d2191068c46f729db3c94386d1
[ "BSD-2-Clause" ]
null
null
null
xmaintnote/ticketing.py
0xmc/maint-notification
bdf27f7b863a45d2191068c46f729db3c94386d1
[ "BSD-2-Clause" ]
null
null
null
xmaintnote/ticketing.py
0xmc/maint-notification
bdf27f7b863a45d2191068c46f729db3c94386d1
[ "BSD-2-Clause" ]
null
null
null
#!/bin/env python3 """Handling events as tickets The goal here is, provided a maintenance event, create an event if not a duplicate. To determine if not duplicate, use some combination of values to form a key. Methods to delete, update, and otherwise transform the ticket should be available A base class, Ticket, is ...
33.439863
79
0.582468
588c8d695d5770a68e19da667343fb316670eec3
195
py
Python
tests/commands/types/test_flag_param.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
8
2020-08-10T20:57:24.000Z
2021-08-08T10:46:20.000Z
tests/commands/types/test_flag_param.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
null
null
null
tests/commands/types/test_flag_param.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
1
2020-08-10T20:42:09.000Z
2020-08-10T20:42:09.000Z
from cicdctl.commands.types.flag import FlagParamType
24.375
72
0.702564
588fc576880c0f000634f775d5b9b45b44869222
7,957
py
Python
tools/merge_messages.py
cclauss/personfinder
62417192e79c9711d0c6c7cfc042f6d6b0dc2dc2
[ "Apache-2.0" ]
1
2021-11-18T20:09:09.000Z
2021-11-18T20:09:09.000Z
tools/merge_messages.py
ZhengC1/personfinder
7e40f2783ac89b91efd1d8497f1acc5b006361fa
[ "Apache-2.0" ]
null
null
null
tools/merge_messages.py
ZhengC1/personfinder
7e40f2783ac89b91efd1d8497f1acc5b006361fa
[ "Apache-2.0" ]
1
2022-01-05T07:06:43.000Z
2022-01-05T07:06:43.000Z
#!/usr/bin/env python # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
39.004902
80
0.662184
5890360ab5457f3e208d3176b19465a1fa0b29ad
621
py
Python
misc/derwin.py
ssebs/nccsv
f5e94dab833a5f0822308299e154f13fd68d88f6
[ "MIT" ]
null
null
null
misc/derwin.py
ssebs/nccsv
f5e94dab833a5f0822308299e154f13fd68d88f6
[ "MIT" ]
null
null
null
misc/derwin.py
ssebs/nccsv
f5e94dab833a5f0822308299e154f13fd68d88f6
[ "MIT" ]
null
null
null
# derwin.py - testing a window within a window import curses # main if __name__ == "__main__": curses.wrapper(main)
20.7
52
0.653784
589099f22121deb7215ea93a44c6ab088a52a57b
1,110
py
Python
test/z_emulator_autoload.py
DXCyber409/AndroidNativeEmulator
11a0360a947114375757724eecd9bd9dbca43a56
[ "Apache-2.0" ]
3
2020-05-21T09:15:11.000Z
2022-01-12T13:52:20.000Z
test/z_emulator_autoload.py
DXCyber409/AndroidNativeEmulator
11a0360a947114375757724eecd9bd9dbca43a56
[ "Apache-2.0" ]
null
null
null
test/z_emulator_autoload.py
DXCyber409/AndroidNativeEmulator
11a0360a947114375757724eecd9bd9dbca43a56
[ "Apache-2.0" ]
null
null
null
import sys import logging from unicorn import * from unicorn.arm_const import * from androidemu.emulator import Emulator from UnicornTraceDebugger import udbg logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(asctime)s %(levelname)7s %(name)34s | %(message)s") logger = logging.getLogger(__n...
29.210526
72
0.73964
58919030577b20ce04be8ee22121a25618dfdeb8
816
py
Python
community_ext/__init__.py
altsoph/community_loglike
ea8800217097575558f8bfb97f7737d12cad2339
[ "BSD-3-Clause" ]
16
2018-02-14T23:14:32.000Z
2021-09-15T09:38:47.000Z
community_ext/__init__.py
altsoph/community_loglike
ea8800217097575558f8bfb97f7737d12cad2339
[ "BSD-3-Clause" ]
null
null
null
community_ext/__init__.py
altsoph/community_loglike
ea8800217097575558f8bfb97f7737d12cad2339
[ "BSD-3-Clause" ]
7
2019-05-09T10:25:24.000Z
2020-06-06T09:37:18.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ This package implements several community detection. Originally based on community aka python-louvain library from Thomas Aynaud (https://github.com/taynaud/python-louvain) """ from .community_ext import ( partition_at_level, modularity, best_partition, ge...
24.727273
83
0.72549
589531a8cfe2795a9b90146b7a85879eaadf036f
895
py
Python
youbot_gazebo_publisher/src/listener.py
ingjavierpinilla/youBot-Gazebo-Publisher
9314f5c471cde91127d76ba205ce6259e595145a
[ "MIT" ]
null
null
null
youbot_gazebo_publisher/src/listener.py
ingjavierpinilla/youBot-Gazebo-Publisher
9314f5c471cde91127d76ba205ce6259e595145a
[ "MIT" ]
null
null
null
youbot_gazebo_publisher/src/listener.py
ingjavierpinilla/youBot-Gazebo-Publisher
9314f5c471cde91127d76ba205ce6259e595145a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String from nav_msgs.msg import Odometry from trajectory_msgs.msg import JointTrajectory from control_msgs.msg import JointTrajectoryControllerState if __name__ == "__main__": listener()
24.861111
102
0.746369
5895c3e0dafc21f11b778b930d6d27f00014cab8
75,699
py
Python
main.py
hustleer/Discord-Encouragement-Bot
4105d1e81fa0e76ade7cfd293dd82ea610064f58
[ "Apache-2.0" ]
null
null
null
main.py
hustleer/Discord-Encouragement-Bot
4105d1e81fa0e76ade7cfd293dd82ea610064f58
[ "Apache-2.0" ]
null
null
null
main.py
hustleer/Discord-Encouragement-Bot
4105d1e81fa0e76ade7cfd293dd82ea610064f58
[ "Apache-2.0" ]
null
null
null
#Botpic:https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/Red_Rose_Photography.jpg/800px-Red_Rose_Photography.jpg #Botpic:https://commons.wikimedia.org/wiki/File:Red_Rose_Photography.jpg #reference:https://www.youtube.com/watch?v=SPTfmiYiuok import discord import os import requests import json import math, ra...
34.03732
253
0.588462
589634be0915da002b383091ea3d6a080249430a
9,862
py
Python
mwp_solver/module/Layer/transformer_layer.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/module/Layer/transformer_layer.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/module/Layer/transformer_layer.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
# Code Taken from https://github.com/LYH-YF/MWPToolkit # -*- encoding: utf-8 -*- # @Author: Yihuai Lan # @Time: 2021/08/29 22:05:03 # @File: transformer_layer.py import torch import math from torch import nn from torch.nn import functional as F from transformers.activations import gelu_new as gelu_bert from module...
43.831111
205
0.688806
5897a699b6d877a1d06ab69aa68b4566e5a0268c
6,564
py
Python
tests/4_ckks_basics.py
TimTam725/SEAL-true
87c3f3f345b7dc5f49380556c55a85a7efa45bb6
[ "MIT" ]
null
null
null
tests/4_ckks_basics.py
TimTam725/SEAL-true
87c3f3f345b7dc5f49380556c55a85a7efa45bb6
[ "MIT" ]
null
null
null
tests/4_ckks_basics.py
TimTam725/SEAL-true
87c3f3f345b7dc5f49380556c55a85a7efa45bb6
[ "MIT" ]
null
null
null
import math from seal import * from seal_helper import * if __name__ == '__main__': example_ckks_basics()
35.673913
84
0.655088
5899ee9d789144345b8642bab6672fe498055f42
2,422
py
Python
FigureTable/NeuroPathRegions/barplots.py
vkola-lab/multi-task
6a61db4223e1812744f13028747b07e2f840cc0b
[ "MIT" ]
1
2021-12-19T01:45:01.000Z
2021-12-19T01:45:01.000Z
FigureTable/NeuroPathRegions/barplots.py
vkola-lab/multi-task
6a61db4223e1812744f13028747b07e2f840cc0b
[ "MIT" ]
null
null
null
FigureTable/NeuroPathRegions/barplots.py
vkola-lab/multi-task
6a61db4223e1812744f13028747b07e2f840cc0b
[ "MIT" ]
1
2022-03-14T18:30:23.000Z
2022-03-14T18:30:23.000Z
from correlate import * import matplotlib import matplotlib.pyplot as plt import seaborn as sns from matplotlib import rc, rcParams rc('axes', linewidth=1) rc('font', weight='bold', size=10) if __name__ == "__main__": years = 2 layername = 'block2BN' time_threshold, type = 365*years, 'COG' folder = ty...
36.69697
143
0.627168
589a8463ce8f13fdbedded623d8ccbad3c17d953
4,549
py
Python
examples/distributed_autofaiss_n_indices.py
Rexiome/autofaiss
79d7c396819ffd6859edde17c6958c1c3338b29b
[ "Apache-2.0" ]
null
null
null
examples/distributed_autofaiss_n_indices.py
Rexiome/autofaiss
79d7c396819ffd6859edde17c6958c1c3338b29b
[ "Apache-2.0" ]
null
null
null
examples/distributed_autofaiss_n_indices.py
Rexiome/autofaiss
79d7c396819ffd6859edde17c6958c1c3338b29b
[ "Apache-2.0" ]
null
null
null
""" An example of running autofaiss by pyspark to produce N indices. You need to install pyspark before using the following example. """ from typing import Dict import faiss import numpy as np from autofaiss import build_index # You'd better create a spark session before calling build_index, # otherwise, a spark se...
34.992308
135
0.675533
589dcbc08792dc79d40776858af24dca67ad7bfe
4,170
py
Python
rbkcli/core/handlers/callback.py
rubrikinc/rbkcli
62bbb20d15c78d2554d7258bdae655452ac826c7
[ "MIT" ]
10
2019-07-23T13:13:16.000Z
2022-03-04T17:48:10.000Z
rbkcli/core/handlers/callback.py
rubrikinc/rbkcli
62bbb20d15c78d2554d7258bdae655452ac826c7
[ "MIT" ]
19
2019-08-22T06:23:09.000Z
2021-12-28T04:04:52.000Z
rbkcli/core/handlers/callback.py
rubrikinc/rbkcli
62bbb20d15c78d2554d7258bdae655452ac826c7
[ "MIT" ]
5
2019-08-06T14:29:35.000Z
2021-06-17T20:35:17.000Z
"""Callback module for rbkcli.""" import json from rbkcli.core.handlers.inputs import InputHandler from rbkcli.base.essentials import DotDict, RbkcliException from rbkcli.core.handlers import ApiTargetTools from rbkcli.core.handlers.outputs import OutputHandler
37.232143
90
0.591367
589e413db07bdd7cf6dcd6e3ab66ffc0b716eb5c
1,001
py
Python
portrait/webapp/migrations/0001_initial.py
andela-sjames/Portrait
83074e3d16d8009a71b674b6859f7c276b8d6537
[ "MIT" ]
null
null
null
portrait/webapp/migrations/0001_initial.py
andela-sjames/Portrait
83074e3d16d8009a71b674b6859f7c276b8d6537
[ "MIT" ]
null
null
null
portrait/webapp/migrations/0001_initial.py
andela-sjames/Portrait
83074e3d16d8009a71b674b6859f7c276b8d6537
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-16 23:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
34.517241
152
0.631369
589e51c361515efc2c983bdbd855621e6ab93aac
9,950
py
Python
src/greenbudget/app/group/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/group/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/group/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
from rest_framework import serializers, exceptions from greenbudget.lib.rest_framework_utils.serializers import ( EnhancedModelSerializer) from greenbudget.app.account.models import BudgetAccount, TemplateAccount from greenbudget.app.tagging.serializers import ColorField from greenbudget.app.subaccount.models imp...
37.689394
80
0.63206
58a0bffac08dce61ed79b44c63defce1adefa9d1
12,103
py
Python
objects/CSCG/_2d/mesh/domain/inputs/base.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
1
2020-10-14T12:48:35.000Z
2020-10-14T12:48:35.000Z
objects/CSCG/_2d/mesh/domain/inputs/base.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
objects/CSCG/_2d/mesh/domain/inputs/base.py
mathischeap/mifem
3242e253fb01ca205a76568eaac7bbdb99e3f059
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ INTRO @author: Yi Zhang. Created on Tue May 21 11:57:52 2019 Department of Aerodynamics Faculty of Aerospace Engineering TU Delft, Delft, the Netherlands """ import inspect from screws.freeze.main import FrozenOnly from typing import Dict, Union import ...
36.345345
125
0.629513
58a1f761a8b86a42b461b76e20b0ebb5fa21fa7a
4,098
py
Python
src/sage/modules/vector_symbolic_dense.py
sloebrich/sage
b8f53f72e817e78722ad1b40d70aa9071426700b
[ "BSL-1.0" ]
1
2020-05-19T22:34:03.000Z
2020-05-19T22:34:03.000Z
src/sage/modules/vector_symbolic_dense.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
src/sage/modules/vector_symbolic_dense.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
3
2020-03-29T17:13:36.000Z
2021-05-03T18:11:28.000Z
""" Vectors over the symbolic ring. Implements vectors over the symbolic ring. AUTHORS: - Robert Bradshaw (2011-05-25): Added more element-wise simplification methods - Joris Vankerschaver (2011-05-15): Initial version EXAMPLES:: sage: x, y = var('x, y') sage: u = vector([sin(x)^2 + cos(x)^2, log(2*y) + l...
34.728814
108
0.59346
58a347a92a051b6eeb3be14043e523039fd31e40
784
py
Python
backend/app/models/weather.py
francoiscolombo/webnews
2f4c3fa5343919e6c658d97aebec4997d4d7ea48
[ "MIT" ]
null
null
null
backend/app/models/weather.py
francoiscolombo/webnews
2f4c3fa5343919e6c658d97aebec4997d4d7ea48
[ "MIT" ]
4
2021-03-10T12:26:29.000Z
2022-02-27T02:00:32.000Z
backend/app/models/weather.py
francoiscolombo/webnews
2f4c3fa5343919e6c658d97aebec4997d4d7ea48
[ "MIT" ]
null
null
null
from app import db from app.models.serializer import Serializer
32.666667
70
0.672194
58a3ad8eacd907942afee36829131b2e139101c4
894
py
Python
conu/backend/nspawn/constants.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
95
2018-05-19T14:35:08.000Z
2022-01-08T23:31:40.000Z
conu/backend/nspawn/constants.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
179
2017-09-12T11:14:30.000Z
2018-04-26T05:36:13.000Z
conu/backend/nspawn/constants.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
16
2018-05-09T14:15:32.000Z
2021-08-02T21:11:33.000Z
# -*- coding: utf-8 -*- # # Copyright Contributors to the Conu project. # SPDX-License-Identifier: MIT # # TODO: move this line to some generic constants, instead of same in # docker and nspawn CONU_ARTIFACT_TAG = 'CONU.' CONU_IMAGES_STORE = "/opt/conu-nspawn-images/" CONU_NSPAWN_BASEPACKAGES = [ "dnf", "ipro...
22.35
68
0.587248
58a653052f6df764ec062ee02680225f5a15d5ec
805
py
Python
onnxruntime/python/tools/quantization/operators/qdq_base_operator.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
669
2018-12-03T22:00:31.000Z
2019-05-06T19:42:49.000Z
onnxruntime/python/tools/quantization/operators/qdq_base_operator.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
440
2018-12-03T21:09:56.000Z
2019-05-06T20:47:23.000Z
onnxruntime/python/tools/quantization/operators/qdq_base_operator.py
mszhanyi/onnxruntime
6f85d3e5c81c919022ac4a77e5a051da8518b15d
[ "MIT" ]
140
2018-12-03T21:15:28.000Z
2019-05-06T18:02:36.000Z
import itertools from ..quant_utils import QuantizedValue, QuantizedValueType, attribute_to_kwarg, quantize_nparray from .base_operator import QuantOperatorBase
32.2
106
0.719255
58a66b1c1e9cbe9103fe7260fec4a45f53280f13
495
py
Python
baya/tests/models.py
hrichards/baya
f319cef5e95cd6a166265d51ae0ea236b6f65be3
[ "MIT" ]
null
null
null
baya/tests/models.py
hrichards/baya
f319cef5e95cd6a166265d51ae0ea236b6f65be3
[ "MIT" ]
1
2018-12-28T16:53:42.000Z
2018-12-28T16:53:42.000Z
baya/tests/models.py
hrichards/baya
f319cef5e95cd6a166265d51ae0ea236b6f65be3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
21.521739
47
0.711111
58a67e64a1b78dbe199317a20cf65d4984a16e33
7,598
py
Python
code/rec_eval.py
dawenl/content_wmf
b3e0a8eeb1b28836f280997c47444786afe91d3f
[ "MIT" ]
24
2016-09-18T10:28:07.000Z
2021-08-21T14:48:01.000Z
code/rec_eval.py
dawenl/content_wmf
b3e0a8eeb1b28836f280997c47444786afe91d3f
[ "MIT" ]
null
null
null
code/rec_eval.py
dawenl/content_wmf
b3e0a8eeb1b28836f280997c47444786afe91d3f
[ "MIT" ]
15
2015-10-29T14:46:03.000Z
2020-03-12T09:35:55.000Z
import bottleneck as bn import numpy as np from scipy import sparse """ All the data should be in the shape of (n_users, n_items) All the latent factors should in the shape of (n_users/n_items, n_components) 1. train_data refers to the data that was used to train the model 2. heldout_data refers to the data that wa...
37.613861
79
0.633325
58a6b4335eac35be6ee8f5597bc84e5d66427621
1,295
py
Python
pgdrive/tests/vis_block/vis_std_t_intersection.py
decisionforce/pgdrive
19af5d09a40a68a2a5f8b3ac8b40f109e71c26ee
[ "Apache-2.0" ]
97
2020-12-25T06:02:17.000Z
2022-01-16T06:58:39.000Z
pgdrive/tests/vis_block/vis_std_t_intersection.py
decisionforce/pgdrive
19af5d09a40a68a2a5f8b3ac8b40f109e71c26ee
[ "Apache-2.0" ]
192
2020-12-25T07:58:17.000Z
2021-08-28T10:13:59.000Z
pgdrive/tests/vis_block/vis_std_t_intersection.py
decisionforce/pgdrive
19af5d09a40a68a2a5f8b3ac8b40f109e71c26ee
[ "Apache-2.0" ]
11
2020-12-29T11:23:44.000Z
2021-12-06T23:25:49.000Z
from pgdrive.component.blocks.curve import Curve from pgdrive.component.blocks.first_block import FirstPGBlock from pgdrive.component.blocks.std_t_intersection import StdTInterSection from pgdrive.component.blocks.straight import Straight from pgdrive.component.road.road_network import RoadNetwork from pgdrive.tests.vi...
40.46875
86
0.766023
58a742e0b8ad8aa4381262e4194d124ffb86733b
6,241
py
Python
version/v 4.0/spider/config.py
zhong-yan/neteasenews
4dda8ef13d44f08e90e3869f4a7d972fb4b9feed
[ "Apache-2.0" ]
null
null
null
version/v 4.0/spider/config.py
zhong-yan/neteasenews
4dda8ef13d44f08e90e3869f4a7d972fb4b9feed
[ "Apache-2.0" ]
null
null
null
version/v 4.0/spider/config.py
zhong-yan/neteasenews
4dda8ef13d44f08e90e3869f4a7d972fb4b9feed
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver BASE_URL = 'http://news.163.com/' # ajax,ajax,?callback=data_callback' # json?..json JSON_INDEX_URLS = [ 'http://temp.163.com/special/00804KVA/cm_yaowen.js?callback=data_callback', 'http://house.163.com/special/00078GU7/guangzhou_xw_news_v1.js?callback=data_callback', 'http:/...
54.745614
92
0.737863
58a7437e24bf8faeb840154530f279b8c6eee778
2,044
py
Python
assignments/10_conserved/conserved.py
brianUA/be434-fall-2021
bf0bb3f1c8129599818b98b7ee25b39aa926fd1f
[ "MIT" ]
null
null
null
assignments/10_conserved/conserved.py
brianUA/be434-fall-2021
bf0bb3f1c8129599818b98b7ee25b39aa926fd1f
[ "MIT" ]
null
null
null
assignments/10_conserved/conserved.py
brianUA/be434-fall-2021
bf0bb3f1c8129599818b98b7ee25b39aa926fd1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Brian Scott <brianscott@email.arizona.edu> Date : 2021-11-09 Purpose: FInd the similarities between sequences. """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( ...
27.621622
73
0.54501
58a9853e032d70b843b4faffe8df15e8491bea40
13,999
py
Python
ldss_spec/tools/spec_red.py
dsanmartim/ldss_specred
8274ce0cf0eddfc7649106d7b9d0ce733e69c722
[ "MIT" ]
null
null
null
ldss_spec/tools/spec_red.py
dsanmartim/ldss_specred
8274ce0cf0eddfc7649106d7b9d0ce733e69c722
[ "MIT" ]
null
null
null
ldss_spec/tools/spec_red.py
dsanmartim/ldss_specred
8274ce0cf0eddfc7649106d7b9d0ce733e69c722
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # Loading a few python packages import os import glob import warnings from astropy import log from astropy.io import fits as pyfits import json # Loading iraf packages from pyraf import iraf from pyraf.iraf import onedspec from pyraf.iraf import twodspec, apextract d...
37.733154
129
0.572541
58a9c2475f1d862dde62daacb24c84dc06c0e208
1,667
py
Python
lookupService/helpers/job_scheduler.py
selfjell/MirMachine
b61b555e7d0942f6fdcc53634469fffea2b92f4c
[ "MIT" ]
1
2021-11-11T12:47:20.000Z
2021-11-11T12:47:20.000Z
lookupService/helpers/job_scheduler.py
selfjell/MirMachine
b61b555e7d0942f6fdcc53634469fffea2b92f4c
[ "MIT" ]
null
null
null
lookupService/helpers/job_scheduler.py
selfjell/MirMachine
b61b555e7d0942f6fdcc53634469fffea2b92f4c
[ "MIT" ]
null
null
null
from ..models import Job from engine.scripts.mirmachine_args import run_mirmachine from .socket_helper import announce_status_change, announce_queue_position, announce_initiation, announce_completed from .maintainer import clean_up_temporary_files from django.utils import timezone from MirMachineWebapp import user_conf...
30.309091
115
0.718056
542d0bbb398d02e9717cfe574c3d52048a5a205b
836
py
Python
Exercicios Colecoes Python/exercicio 33 - secao 7 - p1.py
cristinamais/exercicios_python
8a09b0b68ffaa62d13afb952998e890a79667c7e
[ "MIT" ]
null
null
null
Exercicios Colecoes Python/exercicio 33 - secao 7 - p1.py
cristinamais/exercicios_python
8a09b0b68ffaa62d13afb952998e890a79667c7e
[ "MIT" ]
null
null
null
Exercicios Colecoes Python/exercicio 33 - secao 7 - p1.py
cristinamais/exercicios_python
8a09b0b68ffaa62d13afb952998e890a79667c7e
[ "MIT" ]
null
null
null
""" 33 - Faca um programa que leia um vetor de 15 posicoes e o compacte, ou seja, elimine as posicoes com valor zero. Para isso, todos os elementos a frente do valor zero, devem ser movidos uma posicao para tras no vetor. """ """ vetor = [] count = 0 for x in range(1, 16): vetor.append(int(input(f'Digite o {x}/15...
22
113
0.626794
542d7e740031b1e39b6ee826c5f6675358cb832c
533
py
Python
multimedia/Pygame/02-plot_pixels.py
vicente-gonzalez-ruiz/python-tutorial
e6a79510a0b3663786d6476a40e79fc8e8726f61
[ "CC0-1.0" ]
4
2017-03-06T09:49:11.000Z
2019-10-16T00:09:38.000Z
multimedia/Pygame/02-plot_pixels.py
vicente-gonzalez-ruiz/python-tutorial
e6a79510a0b3663786d6476a40e79fc8e8726f61
[ "CC0-1.0" ]
null
null
null
multimedia/Pygame/02-plot_pixels.py
vicente-gonzalez-ruiz/python-tutorial
e6a79510a0b3663786d6476a40e79fc8e8726f61
[ "CC0-1.0" ]
7
2017-11-02T11:00:30.000Z
2020-01-31T22:41:27.000Z
import pygame import my_colors as color pygame.init() screen_width = 800 screen_height = 600 screen_size = (screen_width, screen_height) screen = pygame.display.set_mode(screen_size) pygame.display.set_caption("Search the green pixel at the coordinates (x=10, y=100)") running = True while running: screen.set_at((...
24.227273
85
0.718574
542ed8915929d9082655f10271231d6e8237f5b5
2,848
py
Python
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
alexcorm/emg-viral-pipeline
f367002f0e1e375840e5696323bde65f7accb31f
[ "Apache-2.0" ]
30
2020-05-18T14:02:34.000Z
2022-03-16T20:04:25.000Z
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
lynceuslq/emg-viral-pipeline
53a99b84ed93428ee88d61e529bcf6799f5eec94
[ "Apache-2.0" ]
45
2020-04-30T09:45:03.000Z
2022-03-21T09:10:21.000Z
bin/models_vs_uniprot_check/ViPhOG_chunks_rank_summ.py
lynceuslq/emg-viral-pipeline
53a99b84ed93428ee88d61e529bcf6799f5eec94
[ "Apache-2.0" ]
12
2020-06-02T12:43:49.000Z
2022-02-22T13:09:13.000Z
#!/usr/bin/env python3 import os import re import glob import sys import operator import ast import argparse ############################################################################################### # This script was written as part of the analysis conducted on the output generated by # # hmmsearch, when...
45.935484
293
0.652388
54318f46c52690013bfe7cc4791a2d7dcc84bf04
6,349
py
Python
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/permissions.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
""" All permissions are defined here. They are also defined in permissions.zcml. The two files must be kept in sync. bika.lims.__init__ imports * from this file, so bika.lims.PermName or bika.lims.permissions.PermName are both valid. """ from Products.CMFCore.permissions import AddPortalContent #...
34.505435
79
0.695228
5431f5aaf571f8d48be62c018da65e8a8b984c28
5,140
py
Python
python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
36.978417
75
0.637743
54324dc90f9df188cfe21f89b7c0b9336f381fe0
7,645
py
Python
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
data_convert/convert_text_to_tree.py
wlof-2/Text2Relation
a1321e3627fee4714d2c39c964d93d12d0802467
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import json from collections import Counter, defaultdict from data_convert.format.text2tree import Entity_Type, Text2Tree from data_convert.task_format.event_extraction import Event, DyIEPP, Conll04 from data_convert.utils import read_file, check_output, data_count...
45.778443
138
0.597515
5432a871244c2f1064853af01dd1344e9304f2e3
1,246
py
Python
arachnado/utils/spiders.py
wigginzz/arachnado
8de92625262958e886263b4ccb189f4fc62d7400
[ "MIT" ]
2
2017-12-26T14:50:14.000Z
2018-06-12T07:04:08.000Z
arachnado/utils/spiders.py
wigginzz/arachnado
8de92625262958e886263b4ccb189f4fc62d7400
[ "MIT" ]
null
null
null
arachnado/utils/spiders.py
wigginzz/arachnado
8de92625262958e886263b4ccb189f4fc62d7400
[ "MIT" ]
null
null
null
from scrapy.utils.misc import walk_modules from scrapy.utils.spider import iter_spider_classes def get_spider_cls(url, spider_packages, default): """ Return spider class based on provided url. :param url: if it looks like `spider://spidername` it tries to load spider named `spidername`, otherwise...
35.6
78
0.690209
543307112090d54acedcff9238e2cea7185b6c19
1,165
py
Python
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
Social_Encoders.py
Haroon96/GraphRec-WWW19
fc28eee70fad927d761c15cab97de52f5955dcfd
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import init import torch.nn.functional as F
32.361111
103
0.654936
5433996009680b5160e896f44a3bff1c9d65a2bb
3,280
py
Python
deephub/utils/__main__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
8
2019-10-17T12:46:13.000Z
2020-03-12T08:09:40.000Z
deephub/utils/__main__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
12
2019-10-22T13:11:56.000Z
2022-02-10T00:23:30.000Z
deephub/utils/__main__.py
deeplab-ai/deephub
b1d271436fab69cdfad14f19fa2e29c5338f18d6
[ "Apache-2.0" ]
1
2019-10-17T13:21:27.000Z
2019-10-17T13:21:27.000Z
import click import time from deephub.common.io import resolve_glob_pattern from deephub.models.feeders.tfrecords.meta import generate_fileinfo, get_fileinfo, TFRecordValidationError, \ TFRecordInfoMissingError
33.814433
115
0.633232
543471083e8ed6e6fd0d08082e7de83061292ab1
10,072
py
Python
utils_mit_im.py
putama/visualcomposition
ada3d8e71b79a5f3e239718f3cdac58eca5e1327
[ "MIT" ]
null
null
null
utils_mit_im.py
putama/visualcomposition
ada3d8e71b79a5f3e239718f3cdac58eca5e1327
[ "MIT" ]
null
null
null
utils_mit_im.py
putama/visualcomposition
ada3d8e71b79a5f3e239718f3cdac58eca5e1327
[ "MIT" ]
null
null
null
import numpy as np import cPickle import os from scipy.io import loadmat import time import h5py import json import copy import bz2 #extension with "." e.g. .jpg def mkdir_if_missing(output_dir): """ def mkdir_if_missing(output_dir) """ if not os.path.exists(output_dir): try: os.makedirs(output_dir...
32.807818
141
0.652502
5435607e763096b9e0e81fbf68d44b9c31b6852e
1,085
py
Python
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
1
2020-07-27T14:18:08.000Z
2020-07-27T14:18:08.000Z
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
python_teste/python_aulas/aula_94.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
dict = {} lista = [] soma = 0 while True: dict['nome'] = str(input('Nome: ')).capitalize() dict['sexo'] = str(input('Sexo: ')).strip().upper()[0] while dict['sexo'] not in 'MF': print('ERRO! Por favor, digite apenas M ou F') dict['sexo'] = str(input('Sexo: ')).strip().upper()[0] dict['id...
33.90625
65
0.562212
543805ee596eba6c41f93710a63dc5eaf28196da
7,894
py
Python
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
4
2021-11-10T03:49:28.000Z
2022-03-24T02:18:44.000Z
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
null
null
null
nlp/layers/linears.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
1
2021-11-14T18:01:18.000Z
2021-11-14T18:01:18.000Z
# -*- coding: utf8 -*- """ ====================================== Project Name: NLP File Name: linears Author: czh Create Date: 2021/11/15 -------------------------------------- Change Activity: ====================================== """ import math import torch import torch.nn as nn import torch....
38.8867
117
0.673676
5438824c4ced393aa643d5e74bfabb01555d5d5c
2,037
py
Python
components/siren.py
TalaoDAO/ecole42
2236f24527966195c953f222f9715ee967348b0f
[ "Apache-2.0" ]
1
2021-09-22T16:30:57.000Z
2021-09-22T16:30:57.000Z
components/siren.py
TalaoDAO/credential-repository
d36c694d9e90ead8a35bd8cc5be47c6d951474ba
[ "Apache-2.0" ]
null
null
null
components/siren.py
TalaoDAO/credential-repository
d36c694d9e90ead8a35bd8cc5be47c6d951474ba
[ "Apache-2.0" ]
null
null
null
import requests
55.054054
370
0.571919
5438db8d908a649df431fff16b0d49559bcdf6d6
2,036
py
Python
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
Week 2/medt_opdracht_9.py
zowie93/ISCRIPT
fa3e5122be8ef47b23c23554ec9e1c04b37da562
[ "MIT" ]
null
null
null
""" Opdracht 9 - Loonbrief https://dodona.ugent.be/nl/exercises/990750894/ """ # functie voor start amount # functie voor salaris # functie voor gemiddeld salaris if __name__ == '__main__': main()
24.238095
71
0.651768
543993f4662d66952cafe8284d07a22ac01ccee7
1,845
py
Python
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
2
2020-04-05T13:44:13.000Z
2020-07-06T08:53:58.000Z
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
null
null
null
4.1.1-simple-object-tracking-video.py
CleverYh/opencv_py
20b28e8ef20fa3015f4f7c20ed69fed954c16805
[ "MIT" ]
null
null
null
# coding: utf-8 from cv2 import cv2 import numpy as np cap = cv2.VideoCapture(0) while(1): # Take each frame _, frame = cap.read() # Convert BGR to HSV hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # define range of blue color in HSV lower_blue = np.array([110,50,50]) upper_blue = np.arr...
37.653061
256
0.701897
5439f19ce894429f825edd092b433b960bae49d4
9,411
py
Python
src/peering/azext_peering/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/peering/azext_peering/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-02-10T22:04:59.000Z
2021-02-10T22:04:59.000Z
src/peering/azext_peering/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.013393
154
0.604824
543ac48e108696b4125575c0e8b5fa9098b4ddb3
830
py
Python
votes/migrations/0004_team.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
null
null
null
votes/migrations/0004_team.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
1
2021-06-10T19:59:07.000Z
2021-06-10T19:59:07.000Z
votes/migrations/0004_team.py
aiventimptner/horizon
6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-30 00:27 from django.conf import settings from django.db import migrations, models
31.923077
114
0.609639
543ac83c6ae50796c548f885ed09b3775131b174
576
py
Python
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
Python/Day 21/score.py
Aswinpkrishnan94/Fabulous-Python
bafba6d5b3889008299c012625b4a9e1b63b1d44
[ "MIT" ]
null
null
null
from turtle import Turtle FONT = ("Arial", 10, "normal") ALIGN = "center"
23.04
67
0.553819
543c4f51f177e890cbcf4f4101beb26f2ee15486
81
py
Python
tests/integration/testdata/buildcmd/PyLayerMake/layer.py
renanmontebelo/aws-sam-cli
b5cfc46aa9726b5cd006df8ecc08d1b4eedeb9ea
[ "BSD-2-Clause", "Apache-2.0" ]
2,959
2018-05-08T21:48:56.000Z
2020-08-24T14:35:39.000Z
tests/integration/testdata/buildcmd/PyLayerMake/layer.py
renanmontebelo/aws-sam-cli
b5cfc46aa9726b5cd006df8ecc08d1b4eedeb9ea
[ "BSD-2-Clause", "Apache-2.0" ]
1,469
2018-05-08T22:44:28.000Z
2020-08-24T20:19:24.000Z
tests/integration/testdata/buildcmd/PyLayerMake/layer.py
renanmontebelo/aws-sam-cli
b5cfc46aa9726b5cd006df8ecc08d1b4eedeb9ea
[ "BSD-2-Clause", "Apache-2.0" ]
642
2018-05-08T22:09:19.000Z
2020-08-17T09:04:37.000Z
import numpy
13.5
45
0.617284
543cd354a10448d8c328281db21e317c63dd0072
5,520
py
Python
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
bcbio/qc/coverage.py
markdunning/bcbio-nextgen
37b69efcc5b2b3713b8d5cd207cece4cb343380d
[ "MIT" ]
null
null
null
"""Coverage based QC calculations. """ import glob import os import subprocess from bcbio.bam import ref, readstats, utils from bcbio.distributed import transaction from bcbio.heterogeneity import chromhacks import bcbio.pipeline.datadict as dd from bcbio.provenance import do from bcbio.variation import coverage as co...
46.386555
115
0.664312
543cef330851534694d86f1be5bca5d7e8614e34
1,210
py
Python
shrike-examples/contoso/utils/arg_utils.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
3
2021-07-27T16:28:51.000Z
2021-11-15T18:29:02.000Z
shrike-examples/contoso/utils/arg_utils.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
null
null
null
shrike-examples/contoso/utils/arg_utils.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
7
2021-08-09T15:04:03.000Z
2022-03-09T05:48:56.000Z
""" Utility functions for argument parsing """ import argparse def str2bool(val): """ Resolving boolean arguments if they are not given in the standard format Arguments: val (bool or string): boolean argument type Returns: bool: the desired value {True, False} """ if isinstan...
25.744681
100
0.638017
543dd03030508ee683df7a6d3985dc5051235db5
277
py
Python
tests/test_learner.py
luksurious/faster-teaching
1493311d5b723ca3f216f537bda8db5907196443
[ "MIT" ]
2
2020-08-06T13:21:51.000Z
2021-04-15T04:29:03.000Z
tests/test_learner.py
luksurious/faster-teaching
1493311d5b723ca3f216f537bda8db5907196443
[ "MIT" ]
null
null
null
tests/test_learner.py
luksurious/faster-teaching
1493311d5b723ca3f216f537bda8db5907196443
[ "MIT" ]
null
null
null
from concepts.letter_addition import LetterAddition from learners.sim_memoryless_learner import SimMemorylessLearner
27.7
64
0.776173
543dded51722ade60b4b464e9cde6ba374678fe4
2,536
py
Python
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
24
2021-02-03T17:06:13.000Z
2021-04-02T13:09:13.000Z
piper/jde.py
miketarpey/piper
d1620727889228d61fbe448f4747cef9351ede59
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging import pandas as pd from datetime import datetime from typing import ( Any, Callable, Dict, Hashable, Iterable, List, NamedTuple, Optional, Pattern, Set, Tuple, Union, ) logger = logging.getLogger(__name__) # add_jde_batch() {{{1...
27.868132
109
0.542587
543e07ad4f4ef4e280a96b2a4575d3e61db5448a
2,159
py
Python
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
7
2021-06-22T03:12:15.000Z
2022-01-06T16:11:14.000Z
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
null
null
null
codes/utils.py
epfml/byzantine-robust-noniid-optimizer
0e27349ac99235251110d54dd102fda0091bf274
[ "MIT" ]
2
2021-12-12T13:28:02.000Z
2022-02-18T13:22:20.000Z
import os import shutil import logging def accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target.view(1, -1).expand_a...
25.104651
64
0.642427
543e913c7932efd8a58e4692b8be276e0e6a692e
2,090
py
Python
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
setup.py
robertjanes/drawbot
5a0a2ce55cda3f87624ae8c028d9d59aceee3897
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from setuptools import setup import os import re import shutil _versionRE = re.compile(r'__version__\s*=\s*\"([^\"]+)\"') # read the version number for the settings file with open('drawBot/drawBotSettings.py', "r") as settings: ...
32.65625
247
0.688517
543fd7e53080b049a8ec4e7ace7dac2f370068e8
38,634
py
Python
pysnmp-with-texts/ZHONE-COM-IP-FILTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZHONE-COM-IP-FILTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZHONE-COM-IP-FILTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZHONE-COM-IP-FILTER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZHONE-COM-IP-FILTER-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:47:04 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
168.707424
2,566
0.786354
5442d7409922b392e57d7544f376052f8505514b
11,160
py
Python
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
4
2021-11-06T01:13:22.000Z
2022-02-08T21:16:38.000Z
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
233
2021-10-13T12:53:44.000Z
2022-03-31T21:59:50.000Z
watertap/examples/flowsheets/case_studies/municipal_treatment/municipal_treatment.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
12
2021-11-01T19:11:03.000Z
2022-03-08T22:20:58.000Z
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
32.631579
88
0.66819
54439c9a0c52b928b7dce1ab1fcc8ffac580ad8b
2,680
py
Python
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/instances/delete.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. """Deletes a Cloud SQL instance.""" from googlecloudapis.apitools.base import py as apitools_base from googlecloudsdk.calliope import base from googlecloudsdk.calliope import exceptions from googlecloudsdk.core import log from googlecloudsdk.core.util import console_io...
31.904762
79
0.701493