hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
a9c8ecd34b3dc863a6fd76369dcf46dd316b20dd
22,516
py
Python
rolls/util/keyring_wrapper.py
strandedathome/rolls-blockchain
d9a813753188275c6528e21d18e86e0eadf9bd00
[ "MIT" ]
12
2021-11-14T10:47:31.000Z
2022-02-09T04:31:52.000Z
rolls/util/keyring_wrapper.py
strandedathome/rolls-blockchain
d9a813753188275c6528e21d18e86e0eadf9bd00
[ "MIT" ]
13
2021-11-15T14:59:39.000Z
2022-03-29T09:13:13.000Z
rolls/util/keyring_wrapper.py
strandedathome/rolls-blockchain
d9a813753188275c6528e21d18e86e0eadf9bd00
[ "MIT" ]
1
2021-11-12T20:32:49.000Z
2021-11-12T20:32:49.000Z
import asyncio import keyring as keyring_main from blspy import PrivateKey # pyright: reportMissingImports=false from rolls.util.default_root import DEFAULT_KEYS_ROOT_PATH from rolls.util.file_keyring import FileKeyring from rolls.util.misc import prompt_yes_no from keyrings.cryptfile.cryptfile import CryptFileKeyrin...
41.851301
119
0.670545
f9a671fe812ccb1d4ffa0238fda1b7225252fa46
22,140
py
Python
openprocurement/blade/tests/contracts.py
imaginal/openprocurement.blade
4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb
[ "Apache-2.0" ]
null
null
null
openprocurement/blade/tests/contracts.py
imaginal/openprocurement.blade
4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb
[ "Apache-2.0" ]
null
null
null
openprocurement/blade/tests/contracts.py
imaginal/openprocurement.blade
4ef512e3d0c1287af1faca9caa9e5349a3c5b0fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from uuid import uuid4 from copy import deepcopy from openprocurement.api.models import get_now from openprocurement.edge.tests.base import ContractBaseWebTest, test_contract_data, test_document, ROUTE_PREFIX @unittest.skipUnless(test_contract_data, "Contracts is not reachable"...
48.340611
138
0.636766
cb90fdde8ea51dfd6cf1e4052a6ce364954772be
6,268
py
Python
util/util.py
xieyulai/MSP-STTN-DENSITY
67ee725934530e579534774b6b66e44846c415b4
[ "MIT" ]
1
2022-03-10T11:23:14.000Z
2022-03-10T11:23:14.000Z
util/util.py
xieyulai/MSP-STTN
4f986b40fb0f3c292dcb6e186ed9b8aba1f7306b
[ "MIT" ]
null
null
null
util/util.py
xieyulai/MSP-STTN
4f986b40fb0f3c292dcb6e186ed9b8aba1f7306b
[ "MIT" ]
null
null
null
import time import math import yaml import torch import cv2 import pandas as pd import datetime import tqdm import pickle import random import numpy as np import torch.nn as nn import torch.nn.functional as F def timeSince(since): now = time.time() s = now - since m = math.floor(s / 60) s -= m * 60 ...
26.786325
102
0.572112
3e471f5c918b5df126f63f8703dd30f17e8711be
11,235
py
Python
tensorflow/python/estimator/canned/linear.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
5
2019-01-17T08:47:31.000Z
2020-05-06T06:10:56.000Z
tensorflow/python/estimator/canned/linear.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/estimator/canned/linear.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
3
2017-06-09T10:39:33.000Z
2021-04-08T16:13:30.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.214286
81
0.699599
662bf8fb067bfe0062dac23a3b425974a80d0f73
284
py
Python
backend/src/crawling/google_maps/google_maps/pipelines.py
daniel6omez/ds4a-practicum
c80728091df98cd397be1f1fc94fd1fe2840c933
[ "CC-BY-4.0", "MIT" ]
null
null
null
backend/src/crawling/google_maps/google_maps/pipelines.py
daniel6omez/ds4a-practicum
c80728091df98cd397be1f1fc94fd1fe2840c933
[ "CC-BY-4.0", "MIT" ]
null
null
null
backend/src/crawling/google_maps/google_maps/pipelines.py
daniel6omez/ds4a-practicum
c80728091df98cd397be1f1fc94fd1fe2840c933
[ "CC-BY-4.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class GoogleMapsPipeline: def process_item(self, item, spider): return item
23.666667
66
0.714789
76a55b2720e5aef245c1e877a4ed65d41b400293
2,309
py
Python
mocasin/tasks/calculate_platform_embedding.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
1
2022-03-13T19:27:50.000Z
2022-03-13T19:27:50.000Z
mocasin/tasks/calculate_platform_embedding.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
mocasin/tasks/calculate_platform_embedding.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
# Copyright (C) 2017 TU Dresden # Licensed under the ISC license (see LICENSE.txt) # # Authors: Christian Menard, Andres Goens import hydra import logging from mocasin.common.graph import DataflowGraph import os log = logging.getLogger(__name__) def calculate_platform_embedding(cfg): """Calculate the embedding ...
38.483333
80
0.694673
f8d2e2c85b9891228f7abe539dd7dcc249df24e6
8,141
py
Python
pyscf/mcscf/test/test_mcao2mo.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
1
2018-05-02T19:55:30.000Z
2018-05-02T19:55:30.000Z
pyscf/mcscf/test/test_mcao2mo.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
null
null
null
pyscf/mcscf/test/test_mcao2mo.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
1
2018-12-06T03:10:50.000Z
2018-12-06T03:10:50.000Z
#!/usr/bin/env python import unittest import numpy from pyscf import gto from pyscf import scf from pyscf import ao2mo from pyscf import mcscf mol = gto.Mole() mol.verbose = 7 mol.output = '/dev/null' class KnowValues(unittest.TestCase): def test_rhf(self): mol.atom = [ ['O', ( 0., 0. , 0....
47.331395
91
0.594767
73a62a5b10f6e82f4a2b8463aa1c2d6a541c823c
1,264
py
Python
saas/backend/apps/policy/migrations/0004_auto_20200402_1134.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
7
2021-08-13T03:48:16.000Z
2021-12-20T15:31:38.000Z
saas/backend/apps/policy/migrations/0004_auto_20200402_1134.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
456
2021-08-16T02:13:57.000Z
2022-03-30T10:02:49.000Z
saas/backend/apps/policy/migrations/0004_auto_20200402_1134.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
17
2021-08-10T04:08:46.000Z
2022-03-14T14:24:36.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
39.5
115
0.706487
5bf652c206a5fa93c81bdd05b2551bc1377fa361
12,618
py
Python
pandas/tests/libs/test_hashtable.py
rajat315315/pandas
2eec4f7cfa1c45671b9875062343521a53ae8b28
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/libs/test_hashtable.py
rajat315315/pandas
2eec4f7cfa1c45671b9875062343521a53ae8b28
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/libs/test_hashtable.py
rajat315315/pandas
2eec4f7cfa1c45671b9875062343521a53ae8b28
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager import tracemalloc import numpy as np import pytest from pandas._libs import hashtable as ht import pandas._testing as tm @contextmanager def activated_tracemalloc(): tracemalloc.start() try: yield finally: tracemalloc.stop() def get_allocated_kha...
33.737968
87
0.610794
73251fc1abebe7c479b24d7649f559b762d04840
2,572
py
Python
python/pyspark/pandas/spark/functions.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
9
2015-03-30T02:54:31.000Z
2020-02-23T03:28:39.000Z
python/pyspark/pandas/spark/functions.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
39
2018-09-25T21:57:04.000Z
2022-03-27T17:34:43.000Z
python/pyspark/pandas/spark/functions.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
10
2016-10-12T09:04:47.000Z
2021-04-29T19:07:20.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
32.556962
87
0.703344
5e759ad1c59c2b6928f2ac955f17410ec56f6fca
4,048
py
Python
src/quadtree.py
myumoon/py_quadtree
3ecf44de650a3d55094dd858da293e2e80e913c0
[ "MIT" ]
null
null
null
src/quadtree.py
myumoon/py_quadtree
3ecf44de650a3d55094dd858da293e2e80e913c0
[ "MIT" ]
null
null
null
src/quadtree.py
myumoon/py_quadtree
3ecf44de650a3d55094dd858da293e2e80e913c0
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import math class QuadTree(object): u"""四分木 """ def __init__(self, level, rectBeginXY, rectEndXY): """コンストラクタ @param level 空間を分割する深さ(0=空間数0, 1=空間数9, 2=空間数73 ...) @param rectBeginXY 空間開始座標 @param rectEndXY 空間終点座標 """ self.__level = le...
29.547445
76
0.64748
ca83fcd591ed3d27e406f0170f4f9b1d97b74642
9,740
py
Python
tests/python/pants_test/java/junit/test_junit_xml_parser.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
tests/python/pants_test/java/junit/test_junit_xml_parser.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2019-07-29T16:58:21.000Z
2019-07-29T16:58:21.000Z
tests/python/pants_test/java/junit/test_junit_xml_parser.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import unittest # NB: The Test -> JUnitTest import re-name above is needed to work around conflicts with pytest test # collection and a conflicting Test type in scope during tha...
41.802575
100
0.656571
4f90c200fd9f371f229c57626a42cf12b77902c5
206
py
Python
zeromq/test/t_dirmon.py
LuckierDodge/liquidhandling
56e3c325f5c3c3360dc96b4cc0013909256503b9
[ "MIT" ]
1
2021-06-29T20:24:38.000Z
2021-06-29T20:24:38.000Z
zeromq/test/t_dirmon.py
AD-SDL/hudson-liquidhandling
a9d7ba9c85062e821ba8e650f4e4ee011c80be4e
[ "MIT" ]
null
null
null
zeromq/test/t_dirmon.py
AD-SDL/hudson-liquidhandling
a9d7ba9c85062e821ba8e650f4e4ee011c80be4e
[ "MIT" ]
1
2021-03-25T13:47:42.000Z
2021-03-25T13:47:42.000Z
from dirmon import checkDir import time # check for files that were modified in the last 10 minutes t = 600 new_files = checkDir(".", last_mtime=t) for f in new_files: print("new file {}".format(f))
18.727273
59
0.713592
0a98fdcab44e5b3f634e282129a9e1f600f49fcc
11,275
py
Python
telethon/events/callbackquery.py
spankders/Telethon
2fb560624d0de34655b6ffa879f4a5020a2bf8f2
[ "MIT" ]
1
2019-07-20T08:28:10.000Z
2019-07-20T08:28:10.000Z
telethon/events/callbackquery.py
spankders/Telethon
2fb560624d0de34655b6ffa879f4a5020a2bf8f2
[ "MIT" ]
null
null
null
telethon/events/callbackquery.py
spankders/Telethon
2fb560624d0de34655b6ffa879f4a5020a2bf8f2
[ "MIT" ]
null
null
null
import re import struct from .common import EventBuilder, EventCommon, name_inner_event from .. import utils from ..tl import types, functions from ..tl.custom.sendergetter import SenderGetter @name_inner_event class CallbackQuery(EventBuilder): """ Represents a callback query event (when an inline button is...
38.091216
84
0.560355
fe35a66d9aed9485c42fb229b03b04677bb1035f
2,318
py
Python
NLP/lemmatizer.py
mtorabirad/Sentiment-Analysis-Tweets
e5afc5c1ae47eac9110996279be05ba3ee6346a5
[ "MIT" ]
1
2021-01-17T17:17:55.000Z
2021-01-17T17:17:55.000Z
NLP/lemmatizer.py
mtorabirad/Sentiment-Analysis-Tweets
e5afc5c1ae47eac9110996279be05ba3ee6346a5
[ "MIT" ]
null
null
null
NLP/lemmatizer.py
mtorabirad/Sentiment-Analysis-Tweets
e5afc5c1ae47eac9110996279be05ba3ee6346a5
[ "MIT" ]
null
null
null
import os import pandas as pd import spacy import re from joblib import Parallel, delayed from spacy.lang.en.stop_words import STOP_WORDS import en_core_web_sm nlp = en_core_web_sm.load(disable=['tagger', 'parser', 'ner']) stopwordfile = r'AfterDec28\stopwords.txt' def _get_stopwords(from_file=False): "Return a ...
32.647887
77
0.66566
48bf7c44fc415a5b85c03b432cb48353c46edf7c
2,011
py
Python
Book_Ladder/web/page/views.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
Book_Ladder/web/page/views.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
Book_Ladder/web/page/views.py
Rdjroot/BookLadder
d4e1f90572f2dda2e7c25890b99c965ded0f02c8
[ "MIT" ]
null
null
null
# -*- coding = utf-8 -*- # @Time:2021/3/713:31 # @Author:Linyu # @Software:PyCharm from . import page from flask import Flask,render_template from web.pageutils import scoreRelise from web.pageutils import BooksScore from web.pageutils import BooksCount from web.pageutils import pointsDraw from web.pageutils import me...
28.728571
107
0.674789
0b4147175743ed3aaf1892693cb05adfeed3136a
24,453
py
Python
packages/python/yap_kernel/yap_ipython/lib/demo.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
90
2015-03-09T01:24:15.000Z
2022-02-24T13:56:25.000Z
packages/python/yap_kernel/yap_ipython/lib/demo.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
52
2016-02-14T08:59:37.000Z
2022-03-14T16:39:35.000Z
packages/python/yap_kernel/yap_ipython/lib/demo.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
27
2015-11-19T02:45:49.000Z
2021-11-25T19:47:58.000Z
"""Module for interactive demos using yap_ipython. This module implements a few classes for running Python scripts interactively in IPython for demonstrations. With very simple markup (a few tags in comments), you can control points where the script stops executing and returns control to yap_ipython. Provided class...
36.606287
89
0.620333
e22af69ace2190e849f918f07293148dd773f1e8
2,088
py
Python
piwise/transform.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
piwise/transform.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
piwise/transform.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch from PIL import Image def colormap(n): cmap=np.zeros([n, 3]).astype(np.uint8) for i in np.arange(n): r, g, b = np.zeros(3) for j in np.arange(8): r = r + (1<<(7-j))*((i&(1<<(3*j))) >> (3*j)) g = g + (1<<(7-j))*((i&(1<<(3*j+1))) >> (3*j+...
26.769231
84
0.556034
a0dfb37409cb18601c6a0c5c43a29a2c29c66d5d
92
py
Python
orquestador/nyc_ccci_etl/utils/get_current_ip.py
gemathus/dpa-2020
b5d7a350b058e77a9b358fa2758632fa2265a9cb
[ "IJG" ]
1
2020-04-01T01:12:16.000Z
2020-04-01T01:12:16.000Z
orquestador/nyc_ccci_etl/utils/get_current_ip.py
gemathus/dpa-2020
b5d7a350b058e77a9b358fa2758632fa2265a9cb
[ "IJG" ]
3
2021-06-02T02:01:07.000Z
2022-03-12T00:33:16.000Z
orquestador/nyc_ccci_etl/utils/get_current_ip.py
dpa-2020-equipo-5/dpa-2020
b5d7a350b058e77a9b358fa2758632fa2265a9cb
[ "IJG" ]
3
2020-05-11T01:15:14.000Z
2021-03-12T02:34:23.000Z
from requests import get def get_current_ip(): return get('https://api.ipify.org').text
23
44
0.728261
c17f7eb7656d0186564f80afbc2a30b8486e0d7b
505
py
Python
python/XML2_FindTheMaximumDepth.py
HannoFlohr/hackerrank
9644c78ce05a6b1bc5d8f542966781d53e5366e3
[ "MIT" ]
null
null
null
python/XML2_FindTheMaximumDepth.py
HannoFlohr/hackerrank
9644c78ce05a6b1bc5d8f542966781d53e5366e3
[ "MIT" ]
null
null
null
python/XML2_FindTheMaximumDepth.py
HannoFlohr/hackerrank
9644c78ce05a6b1bc5d8f542966781d53e5366e3
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as etree maxdepth = 0 def depth(elem, level): global maxdepth level += 1 if (level > maxdepth): maxdepth = level for child in elem: depth(child, level) if __name__ == '__main__': n = int(input()) xml = "" for i in range(n): xml = xml + input() ...
25.25
74
0.629703
d3473c63c6db0d6bea8d91cf3f531e9cd83870c1
2,426
py
Python
python/tvm/__init__.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
2
2020-04-17T02:25:16.000Z
2020-11-25T11:39:43.000Z
python/tvm/__init__.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
python/tvm/__init__.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
1
2020-04-08T07:08:04.000Z
2020-04-08T07:08:04.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
27.568182
85
0.749382
ca433895877ffecec9f08c8c5595fe2fd9e46b49
902
py
Python
run_video_feature_from_clips.py
MYusha/video-classification-3d-cnn-pytorch
12e317c65df5306235da6bf2e0d872babbe5cf65
[ "MIT" ]
null
null
null
run_video_feature_from_clips.py
MYusha/video-classification-3d-cnn-pytorch
12e317c65df5306235da6bf2e0d872babbe5cf65
[ "MIT" ]
null
null
null
run_video_feature_from_clips.py
MYusha/video-classification-3d-cnn-pytorch
12e317c65df5306235da6bf2e0d872babbe5cf65
[ "MIT" ]
null
null
null
import os import sys import json import pdb import subprocess import numpy as np if __name__ == '__main__': result_json = sys.argv[1] feature_root_path = sys.argv[2] with open(os.path.join(feature_root_path,result_json), 'r') as f: data = json.load(f) n_vids = len(data) # pdb.set_trace() ...
30.066667
69
0.646341
51187c06b15c9de86c351bbf23684aa932e3405e
390
py
Python
log.py
pedro-gutierrez/opentact-demo
80a9a915973041369e23b6cd6550c66bd1f0dc39
[ "MIT" ]
null
null
null
log.py
pedro-gutierrez/opentact-demo
80a9a915973041369e23b6cd6550c66bd1f0dc39
[ "MIT" ]
null
null
null
log.py
pedro-gutierrez/opentact-demo
80a9a915973041369e23b6cd6550c66bd1f0dc39
[ "MIT" ]
null
null
null
from sanic import Sanic from sanic.config import LOGGING import logging LOGGING['loggers']={} LOGGING['handlers']={} logging_format = "[%(asctime)s] %(process)d-%(levelname)s " logging_format += "%(module)s::%(funcName)s():l%(lineno)d: " logging_format += "%(message)s" logging.basicConfig( format=logging_format,...
20.526316
60
0.7
3e47ae6971a97a9ac8fc48a88c6dd7d82e2fb4b7
52,558
py
Python
clinica/iotools/utils/data_handling.py
ravih18/clinica
07dfe5ba3bab5852a220dba2c88ab0c5132ef26e
[ "MIT" ]
null
null
null
clinica/iotools/utils/data_handling.py
ravih18/clinica
07dfe5ba3bab5852a220dba2c88ab0c5132ef26e
[ "MIT" ]
2
2020-04-10T16:53:03.000Z
2020-04-14T20:05:54.000Z
clinica/iotools/utils/data_handling.py
mdiazmel/clinica
f4d4b368a7fea5815d0c412d5f7870913b6395d7
[ "MIT" ]
null
null
null
"""Data handling scripts.""" import click def compute_default_filename(out_path): from os import path abspath = path.abspath(out_path) # If given path is a directory, append a filename if path.isdir(abspath): tsv_path = path.join(out_path, "merge.tsv") elif "." not in path.basename(abspa...
38.960712
139
0.566764
373f916e3095ce8f4c7e01e304c1b92337b022b7
2,076
py
Python
src/regiones_at.py
zara-ms/python_class
8a9529e14e84c3c2e3fd0a7c793fcb09471ea55c
[ "MIT" ]
null
null
null
src/regiones_at.py
zara-ms/python_class
8a9529e14e84c3c2e3fd0a7c793fcb09471ea55c
[ "MIT" ]
null
null
null
src/regiones_at.py
zara-ms/python_class
8a9529e14e84c3c2e3fd0a7c793fcb09471ea55c
[ "MIT" ]
3
2021-04-09T18:40:26.000Z
2021-09-07T01:15:03.000Z
""" ## NAME regiones_at.py ## VERSION [1.0] ## AUTHOR Zara Paulina Martinez Sanchez < zaram042001 @ gmail.com > ## DATE [08/06/2021] ## DESCRIPTION Programa que analiza una secuencia de DNA para buscar regiones ricas en AT las cuales contengan 5 o mas As y/o Ts. ...
22.322581
95
0.600674
b65565c8c7687e8761616c34843ff28ea97f91c4
332
py
Python
server/password_text.py
cylindricalcow/physics_hackathon
726df1bce391dc4b64c850b34fefbce71e25b4db
[ "MIT" ]
2
2018-02-24T09:20:34.000Z
2018-02-25T15:42:53.000Z
server/password_text.py
cylindricalcow/physics_hackathon
726df1bce391dc4b64c850b34fefbce71e25b4db
[ "MIT" ]
null
null
null
server/password_text.py
cylindricalcow/physics_hackathon
726df1bce391dc4b64c850b34fefbce71e25b4db
[ "MIT" ]
4
2018-02-24T23:27:51.000Z
2018-02-27T02:15:28.000Z
import hashlib from authenticator import * def hash(username, password, passwordHash): return hashlib.md5(password).hexdigest() realm = Realm() myPortal = portal.Portal(realm) checker = checkers.InMemoryUsernamePasswordDatabaseDontUse() checker.addUser("user", "pass") checker = checkers.FilePasswordDB("passwords.txt"...
33.2
61
0.795181
6d0a64632e94913c0a9eb1c215922e6fc58dc738
1,812
py
Python
src/states.py
matpalm/drivebot
2b6c30209f7a50e289fa70b68fdc93f5e2bd7e88
[ "MIT" ]
70
2016-02-20T02:59:14.000Z
2021-12-30T04:19:09.000Z
src/states.py
matpalm/drivebot
2b6c30209f7a50e289fa70b68fdc93f5e2bd7e88
[ "MIT" ]
1
2016-05-03T15:57:58.000Z
2016-05-04T13:55:53.000Z
src/states.py
matpalm/drivebot
2b6c30209f7a50e289fa70b68fdc93f5e2bd7e88
[ "MIT" ]
17
2016-02-20T03:53:46.000Z
2021-03-17T07:38:18.000Z
# utils for converting a stream of sensor data into a state suitable # for a policy to use. import copy import itertools import numpy as np # given sonar readings just trivially return index of furthest away # { F, L, R } class FurthestSonar: def state_given_new_ranges(self, ranges): return [np.argmax(ran...
27.876923
74
0.663355
6b58bf971235f9e6e74e9a88dcbbedbe85ea106e
5,341
py
Python
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.726563
140
0.671223
80d89767d8533d91581eddd1136a46d609a1c981
3,864
py
Python
hmkit/autoapi/msg_type.py
highmobility/hmkit-python
2ac06ed021b57014f5290eaece19a9399d52df48
[ "MIT" ]
1
2021-08-01T20:35:57.000Z
2021-08-01T20:35:57.000Z
hmkit/autoapi/msg_type.py
highmobility/hmkit-python
2ac06ed021b57014f5290eaece19a9399d52df48
[ "MIT" ]
null
null
null
hmkit/autoapi/msg_type.py
highmobility/hmkit-python
2ac06ed021b57014f5290eaece19a9399d52df48
[ "MIT" ]
null
null
null
""" The MIT License Copyright (c) 2014- High-Mobility GmbH (https://high-mobility.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
37.882353
176
0.680383
1a2ec4fda02beef4f3b97ff5f4100c3805bf6108
19,540
py
Python
nsq/async.py
ericb/pynsq
cbbea95872c6e4a5c8da8d7ff64ce4857d94bfb4
[ "MIT" ]
null
null
null
nsq/async.py
ericb/pynsq
cbbea95872c6e4a5c8da8d7ff64ce4857d94bfb4
[ "MIT" ]
null
null
null
nsq/async.py
ericb/pynsq
cbbea95872c6e4a5c8da8d7ff64ce4857d94bfb4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import time import socket import logging from ._compat import bytes_types, string_types from ._compat import struct_l from .version import __version__ try: import ssl except ImportError: ssl = None # pyflakes.ignore try: fro...
35.527273
97
0.620829
388c62e3f98666b8e55e8c9d80ebd20a4d1de8b1
4,219
py
Python
pyingest/parsers/default.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
pyingest/parsers/default.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
pyingest/parsers/default.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
from past.builtins import basestring import re import bs4 import xmltodict as xmltodict_parser try: from urllib.parse import urlencode except ImportError: from urllib import urlencode try: import urllib2 as url_lib except ImportError: import urllib.request as url_lib import warnings import ssl warnings...
27.575163
81
0.58758
c4124c2b2b4023fcf3a84dceee260dd9e6ddb406
4,020
py
Python
incasem/utils/scale_pyramid.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/utils/scale_pyramid.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/utils/scale_pyramid.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
import argparse import os import daisy import numpy as np import skimage.measure import zarr # monkey-patch os.mkdirs, due to bug in zarr prev_makedirs = os.makedirs def makedirs(name, mode=0o777, exist_ok=False): # always ok if exists return prev_makedirs(name, mode, exist_ok=True) os.makedirs = makedirs ...
27.724138
76
0.632836
37ede7338246715cd0bc34981d8e9081036d28e0
1,043
py
Python
src/bulk_mover/populate_paths.py
StateArchivesOfNorthCarolina/sanc-repo-manager
84e1782fd119244c58aa1401fd86a70a395ab3b7
[ "MIT" ]
null
null
null
src/bulk_mover/populate_paths.py
StateArchivesOfNorthCarolina/sanc-repo-manager
84e1782fd119244c58aa1401fd86a70a395ab3b7
[ "MIT" ]
4
2018-09-12T13:32:43.000Z
2022-03-11T23:27:49.000Z
src/bulk_mover/populate_paths.py
StateArchivesOfNorthCarolina/sanc-repo-manager
84e1782fd119244c58aa1401fd86a70a395ab3b7
[ "MIT" ]
null
null
null
import os import sys from mover_classes.PathUnique import PathUnique def file_chooser(): base_path = "L:\\Intranet\\ar\Digital_Services\\Inventory\\004_COMPLETED" files = os.listdir(base_path) for i in range(len(files)): i += 1 print("{})\t{}".format(i, files[i-1])) sel = input("Which...
23.704545
77
0.559923
ed24b0cbe02782bcb57bdea15984509d58994935
1,067
py
Python
pytest_asyncio_network_simulator/server.py
vaporyproject/pytest-asyncio-network-simulator
7a7ee136c8e47cde751c1a5af9739b1099810608
[ "MIT" ]
4
2019-06-05T23:53:04.000Z
2021-11-04T14:24:21.000Z
pytest_asyncio_network_simulator/server.py
vaporyproject/pytest-asyncio-network-simulator
7a7ee136c8e47cde751c1a5af9739b1099810608
[ "MIT" ]
5
2018-07-20T20:34:04.000Z
2019-04-26T23:02:40.000Z
pytest_asyncio_network_simulator/server.py
vaporyproject/pytest-asyncio-network-simulator
7a7ee136c8e47cde751c1a5af9739b1099810608
[ "MIT" ]
4
2018-08-23T07:43:12.000Z
2020-10-01T03:00:27.000Z
import asyncio from typing import ( List, ) from .address import ( Address, ) from .utils import ( ConnectionCallback, ) class Server(asyncio.AbstractServer): """ Mock version of `asyncio.Server` object. """ connections: List[asyncio.StreamWriter] def __init__( self, ...
24.25
67
0.619494
2d246475e2629186750b17c8f1b7e88b471e7e7f
8,313
py
Python
statsmodels/robust/scale.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
1
2021-11-04T04:57:15.000Z
2021-11-04T04:57:15.000Z
statsmodels/robust/scale.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
null
null
null
statsmodels/robust/scale.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
2
2017-05-31T21:21:33.000Z
2021-09-12T12:19:03.000Z
""" Support and standalone functions for Robust Linear Models References ---------- PJ Huber. 'Robust Statistics' John Wiley and Sons, Inc., New York, 1981. R Venables, B Ripley. 'Modern Applied Statistics in S' Springer, New York, 2002. """ from statsmodels.compat.python import callable, range import numpy as n...
34.35124
117
0.56562
01adb0ec1da45e87e33c7e699b3d497cd08b79ab
2,062
py
Python
release/stubs.min/System/__init___parts/OperationCanceledException.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/OperationCanceledException.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/OperationCanceledException.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class OperationCanceledException(SystemException, ISerializable, _Exception): """ The exception that is thrown in a thread upon cancellation of an operation that the thread was executing. OperationCanceledException() OperationCanceledException(message: str) OperationCanceledException(message: st...
29.884058
221
0.707081
b4aba398872a37900a33e44d17f8ed89e00bb701
1,855
py
Python
pli/misc/namespace.py
flynx/pli
805234daba05d21698123883fabf4a877f2af8c1
[ "BSD-3-Clause" ]
1
2016-05-08T06:29:25.000Z
2016-05-08T06:29:25.000Z
pli/misc/namespace.py
flynx/pli
805234daba05d21698123883fabf4a877f2af8c1
[ "BSD-3-Clause" ]
null
null
null
pli/misc/namespace.py
flynx/pli
805234daba05d21698123883fabf4a877f2af8c1
[ "BSD-3-Clause" ]
null
null
null
#======================================================================= __version__ = '''0.0.01''' __sub_version__ = '''20040531024624''' __copyright__ = '''(c) Alex A. Naanou 2003''' #----------------------------------------------------------------------- import sys import pli.logictypes as logictypes #-------...
25.410959
89
0.489488
07c1acb54a02e4e29a521b4a6917e6635c8b35aa
5,071
py
Python
src/fhir_types/FHIR_Person.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_Person.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_Person.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_Address import FHIR_Address from .FHIR_Attachment import FHIR_Attachment from .FHIR_boolean import FHIR_boolean from .FHIR_code import FHIR_code from .FHIR_ContactPoint import FHIR_ContactPoint from .FHIR_date import FHIR_date from .FHIR_Element import FHIR_E...
68.527027
839
0.741668
7e56ff47f62c5773840fd89342f2831fa7d1530b
2,480
py
Python
scripts/gauss/blast_ex1.py
biobureaubiotech/blast_bench
5c33d4b71dffde9176f41e1f8378d3e994a5e782
[ "BSD-3-Clause" ]
null
null
null
scripts/gauss/blast_ex1.py
biobureaubiotech/blast_bench
5c33d4b71dffde9176f41e1f8378d3e994a5e782
[ "BSD-3-Clause" ]
null
null
null
scripts/gauss/blast_ex1.py
biobureaubiotech/blast_bench
5c33d4b71dffde9176f41e1f8378d3e994a5e782
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from threading import Thread, Event import time # import threading import psutil import datetime import os import subprocess # sizes = [0.015625, 0.03125, 0.0625, 0.125, 0.25, 0.5] size = 0.015625 # command = "blastn -db nt -evalue 1e-05 -query arquivo.fasta -out arqui...
31.392405
226
0.693548
cb9930ae29d3273a2eddcbc533fe67c17c574dfc
13,128
py
Python
netbox/extras/forms.py
LambdaDriver/netbox
1ea368856bbce71a97ee2deef8e91a29f348d2f3
[ "Apache-2.0" ]
null
null
null
netbox/extras/forms.py
LambdaDriver/netbox
1ea368856bbce71a97ee2deef8e91a29f348d2f3
[ "Apache-2.0" ]
2
2021-06-08T23:01:37.000Z
2021-09-08T02:56:32.000Z
netbox/extras/forms.py
Dave-Snigier/netbox
1ea368856bbce71a97ee2deef8e91a29f348d2f3
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from mptt.forms import TreeNodeMultipleChoiceField from taggit.forms import TagField as TagField_ from dcim.models import DeviceRole, Platform, Region, Site from tenancy.models import Tenant,...
28.852747
117
0.635664
6d0fcf85354ff9b70ea5673e84b7a1261e247184
9,470
py
Python
trpg/RPGCheck.py
kwoolter/TRPGFramework
758bd497907f40b7a6ffd0b1937fb802ed3074bc
[ "CNRI-Python" ]
5
2017-04-14T11:18:58.000Z
2021-10-14T02:34:42.000Z
trpg/RPGCheck.py
kwoolter/TRPGFramework
758bd497907f40b7a6ffd0b1937fb802ed3074bc
[ "CNRI-Python" ]
null
null
null
trpg/RPGCheck.py
kwoolter/TRPGFramework
758bd497907f40b7a6ffd0b1937fb802ed3074bc
[ "CNRI-Python" ]
null
null
null
__author__ = 'KeithW' from .RPGCharacter import * import random class RPGCheck(object): # Constants for storing a player's state of a check NOT_ATTEMPTED = 0 FAILED = -1 SUCCEEDED = 1 SILENT_REWARD = "***" STAT_NOT_FOUND_DEFAULT = -19680926 # Construct a basic check # A name, option...
41.173913
130
0.593136
4df7267c74465cba56a6fc27d359812cdb5be33d
25,217
py
Python
allenact/embodiedai/models/basic_models.py
brandontrabucco/allenact
0f323ac6f67a84a9de76359f5506c44eff64e0a1
[ "MIT" ]
187
2020-08-28T16:59:41.000Z
2022-03-27T19:10:11.000Z
allenact/embodiedai/models/basic_models.py
brandontrabucco/allenact
0f323ac6f67a84a9de76359f5506c44eff64e0a1
[ "MIT" ]
120
2020-08-28T15:30:36.000Z
2022-03-13T00:38:44.000Z
allenact/embodiedai/models/basic_models.py
brandontrabucco/allenact
0f323ac6f67a84a9de76359f5506c44eff64e0a1
[ "MIT" ]
45
2020-08-28T18:30:04.000Z
2022-03-29T11:13:28.000Z
"""Basic building block torch networks that can be used across a variety of tasks.""" from typing import ( Sequence, Dict, Union, cast, List, Callable, Optional, Tuple, Any, ) import gym import numpy as np import torch from gym.spaces.dict import Dict as SpaceDict import torch.nn as...
34.031039
118
0.574057
2c97595cd63b22cbd2c65a7cf8fe0b70a8b285f6
2,065
py
Python
appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/trigger_flake_swarming_task_pipeline.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from model.flake.flake_swarming_task import FlakeSwarmingTask from waterfall import monitoring from waterfall import waterfall_config from waterfall.trigger_...
41.3
80
0.756416
92de9036cc98cc4354769f78c959bacc51cae385
14,762
py
Python
scipy/signal/__init__.py
liviofetahu/scipy
96430c5f0eb0a2724c61b189025f3ebed7fec01f
[ "BSD-3-Clause" ]
1
2021-05-03T06:55:01.000Z
2021-05-03T06:55:01.000Z
scipy/signal/__init__.py
liviofetahu/scipy
96430c5f0eb0a2724c61b189025f3ebed7fec01f
[ "BSD-3-Clause" ]
null
null
null
scipy/signal/__init__.py
liviofetahu/scipy
96430c5f0eb0a2724c61b189025f3ebed7fec01f
[ "BSD-3-Clause" ]
null
null
null
""" ======================================= Signal processing (:mod:`scipy.signal`) ======================================= Convolution =========== .. autosummary:: :toctree: generated/ convolve -- N-D convolution. correlate -- N-D correlation. fftconvolve -- N-D convolution usi...
40.00542
83
0.656076
3816235d35bd68470c789df5b9c5f123d0d874b0
8,637
py
Python
code/client/munkilib/dmgutils.py
grahamgilbert/munki
9ddc5a063a92b7f7671bddd679db3fbe7cb860b6
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/dmgutils.py
grahamgilbert/munki
9ddc5a063a92b7f7671bddd679db3fbe7cb860b6
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/dmgutils.py
grahamgilbert/munki
9ddc5a063a92b7f7671bddd679db3fbe7cb860b6
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # # Copyright 2009-2019 Greg Neagle. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
34.003937
78
0.619081
b00f513a0a62c9a2e224ae6fef181574a870c2a7
5,560
py
Python
scripts/triggers_vm_generator.py
nlamirault/click-to-deploy
c82366a184e0293e02253adadae736bb7ff28c9c
[ "Apache-2.0" ]
616
2018-07-18T16:16:02.000Z
2022-03-11T07:52:07.000Z
scripts/triggers_vm_generator.py
nlamirault/click-to-deploy
c82366a184e0293e02253adadae736bb7ff28c9c
[ "Apache-2.0" ]
965
2018-07-18T13:04:38.000Z
2022-03-31T17:20:18.000Z
scripts/triggers_vm_generator.py
nlamirault/click-to-deploy
c82366a184e0293e02253adadae736bb7ff28c9c
[ "Apache-2.0" ]
428
2018-07-20T14:35:17.000Z
2022-03-29T07:02:50.000Z
#!/usr/bin/env python # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
27.8
80
0.691187
25e4791ae93316d61cdd7ffce63179d379523966
676
py
Python
t_speech_assisstant/venv/lib/python3.7/site-packages/OSAKit/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2020-09-01T16:24:50.000Z
2020-09-01T16:24:50.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/OSAKit/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2021-01-28T20:40:19.000Z
2021-01-28T20:40:19.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/OSAKit/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
null
null
null
""" Python mapping for the OSAKit framework. This module does not contain docstrings for the wrapped code, check Apple's documentation for details on how to use these functions and classes. """ import objc import sys import Cocoa from OSAKit import _metadata sys.modules["OSAKit"] = mod = objc.ObjCLazyModule( "...
20.484848
75
0.677515
2d9528bab32c0b0fbe48f02b7812cf5bc7e16b90
2,488
py
Python
tools/local_speedy.py
7erry/iot
90ee5be1e5ba594ac202659e1cddfb755c333ea1
[ "Apache-2.0" ]
null
null
null
tools/local_speedy.py
7erry/iot
90ee5be1e5ba594ac202659e1cddfb755c333ea1
[ "Apache-2.0" ]
null
null
null
tools/local_speedy.py
7erry/iot
90ee5be1e5ba594ac202659e1cddfb755c333ea1
[ "Apache-2.0" ]
1
2021-12-16T08:44:40.000Z
2021-12-16T08:44:40.000Z
#!/usr/bin/python import sys import math import urllib import httplib import time import random id = '123456789012345' server = 'localhost:5055' period = 1 step = 0.001 device_speed = 70 driver_id = '123456' waypoints = [ (34.079401, -84.221641), (34.079396, -84.221554), (34.079539, -84.221560), (34....
31.1
125
0.590434
f2c9f41525ce59a6733bb6e5da25e4c45e17fdcf
576
py
Python
app/api/events.py
dankolbman/freets-web
d68e65df930f307adf4f00b1ad4ee602393dff93
[ "MIT" ]
2
2015-02-22T05:00:28.000Z
2015-03-17T22:41:40.000Z
app/api/events.py
dankolbman/freets-web
d68e65df930f307adf4f00b1ad4ee602393dff93
[ "MIT" ]
null
null
null
app/api/events.py
dankolbman/freets-web
d68e65df930f307adf4f00b1ad4ee602393dff93
[ "MIT" ]
2
2015-02-22T15:11:50.000Z
2015-02-24T19:36:27.000Z
from flask import jsonify, request from .. import db from ..models import Event from . import api # Get event @api.route('/event/<int:id>') def get_event(id): event = Event.query.get_or_404(id) # TODO: Implement when the model updates attendees_count = 1 json_post = event.to_json() # TODO: Change when new m...
24
46
0.730903
7b5f0972578c2eb9ea96360ea4aed13d8b89592e
3,220
py
Python
Sources/AlphaBot2/Web-Control/AlphaBot.py
maroneal/SmartC
515502d69832b5acf427715b87f0cc17d10e7987
[ "BSD-2-Clause" ]
null
null
null
Sources/AlphaBot2/Web-Control/AlphaBot.py
maroneal/SmartC
515502d69832b5acf427715b87f0cc17d10e7987
[ "BSD-2-Clause" ]
null
null
null
Sources/AlphaBot2/Web-Control/AlphaBot.py
maroneal/SmartC
515502d69832b5acf427715b87f0cc17d10e7987
[ "BSD-2-Clause" ]
2
2019-03-04T08:26:39.000Z
2019-04-15T09:40:31.000Z
import RPi.GPIO as GPIO import time class AlphaBot(object): def __init__(self,in1=13,in2=12,ena=6,in3=21,in4=20,enb=26): self.IN1 = in1 self.IN2 = in2 self.IN3 = in3 self.IN4 = in4 self.ENA = ena self.ENB = enb self.PA = 50 self.PB = 50 ...
30.666667
64
0.583851
8009305111c1e94cba8d895d553d0ba116798d8d
848
py
Python
Examples/get_worksheet_pivot_table_filers.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
3
2018-05-23T03:16:26.000Z
2020-11-07T11:42:41.000Z
Examples/get_worksheet_pivot_table_filers.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
null
null
null
Examples/get_worksheet_pivot_table_filers.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
4
2018-08-29T18:45:05.000Z
2021-03-25T07:59:56.000Z
import os import sys ABSPATH = os.path.abspath(os.path.realpath(os.path.dirname(__file__)) + "/..") sys.path.append(ABSPATH) import asposecellscloud from asposecellscloud.rest import ApiException from asposecellscloud.apis.cells_api import CellsApi import AuthUtil from asposecellscloud.models import CalculationOptions...
35.333333
127
0.779481
7af39dd9e610bc674c61b393992aa707f3804266
879
py
Python
helper_funcs/chat_base.py
Aanchal101/TG-RENAMER-BOT
af747c5c18fd7632ce201febc638605fe44bcb58
[ "Apache-2.0" ]
null
null
null
helper_funcs/chat_base.py
Aanchal101/TG-RENAMER-BOT
af747c5c18fd7632ce201febc638605fe44bcb58
[ "Apache-2.0" ]
1
2022-03-07T10:48:50.000Z
2022-03-07T10:48:50.000Z
helper_funcs/chat_base.py
Aanchal101/TG-RENAMER-BOT
af747c5c18fd7632ce201febc638605fe44bcb58
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) Anonymous # the logging things import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) import os # the secret configuration specific things if b...
24.416667
82
0.667804
ef8fb68dccd499a5dde71d7116bdb5ecaa341765
59,623
py
Python
kitsune/questions/tests/test_templates.py
mattp1488/kitsune
322287a3dd0dc52ccd54f0cb8e8016246da99a62
[ "BSD-3-Clause" ]
null
null
null
kitsune/questions/tests/test_templates.py
mattp1488/kitsune
322287a3dd0dc52ccd54f0cb8e8016246da99a62
[ "BSD-3-Clause" ]
null
null
null
kitsune/questions/tests/test_templates.py
mattp1488/kitsune
322287a3dd0dc52ccd54f0cb8e8016246da99a62
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import random from datetime import datetime, timedelta from string import letters from django.conf import settings from django.contrib.auth.models import User from django.core import mail from django.core.cache import cache import mock from nose.tools import eq_ from pyquery import...
37.428123
88
0.610033
b12785af310c77383da37aa2ffb2e993c62209d4
881
py
Python
hottbox/algorithms/classification/tests/test_ensemble_learning.py
adamurban98/hottbox
26580018ec6d38a1b08266c04ce4408c9e276130
[ "Apache-2.0" ]
167
2018-05-07T10:31:00.000Z
2022-02-24T19:20:31.000Z
hottbox/algorithms/classification/tests/test_ensemble_learning.py
adamurban98/hottbox
26580018ec6d38a1b08266c04ce4408c9e276130
[ "Apache-2.0" ]
19
2018-05-10T13:26:39.000Z
2020-01-31T12:49:27.000Z
hottbox/algorithms/classification/tests/test_ensemble_learning.py
adamurban98/hottbox
26580018ec6d38a1b08266c04ce4408c9e276130
[ "Apache-2.0" ]
24
2018-04-02T17:16:50.000Z
2021-12-07T06:21:40.000Z
from ..ensemble_learning import TelVI, TelVAC class TestTelVI: def test_init(self): pass def test_name(self): pass # # def test_set_params(self): # pass # # def test_get_params(self): # pass # # def test_fit(self): # pass # # def test_predict(self): # ...
17.62
55
0.572077
1a826d0f02df7f5f97625f90b75d0bea6687fcf9
4,613
py
Python
ansible_task_worker/worker_fsm.py
benthomasson/ansible-task-worker
33189b503e010df93adf486fde8c0eec9c436e18
[ "Apache-2.0" ]
null
null
null
ansible_task_worker/worker_fsm.py
benthomasson/ansible-task-worker
33189b503e010df93adf486fde8c0eec9c436e18
[ "Apache-2.0" ]
10
2020-01-05T19:08:49.000Z
2021-11-15T17:47:59.000Z
ansible_task_worker/worker_fsm.py
benthomasson/ansible-task-worker
33189b503e010df93adf486fde8c0eec9c436e18
[ "Apache-2.0" ]
null
null
null
from gevent_fsm.fsm import State, transitions from queue import Empty from . import messages class _RunTask(State): @transitions('ShuttingDown') def onShutdownRequested(self, controller, message_type, message): controller.changeState(ShuttingDown) @transitions('TaskComplete') def onStatus(se...
26.36
88
0.708866
2038deec948cf9fa8b0c2f612bea3e4f97c9f343
4,740
py
Python
userbot/plugins/filters.py
Blank-sama/X-tra-Telegram
549317bd99a6e4864114a9e6d3aea899984cf437
[ "Apache-2.0" ]
null
null
null
userbot/plugins/filters.py
Blank-sama/X-tra-Telegram
549317bd99a6e4864114a9e6d3aea899984cf437
[ "Apache-2.0" ]
null
null
null
userbot/plugins/filters.py
Blank-sama/X-tra-Telegram
549317bd99a6e4864114a9e6d3aea899984cf437
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """Filters Available Commands: .savefilter .listfilters .clearfilter""" import asyncio import re from telethon import eve...
37.03125
123
0.598945
cd5528d745ef8d0fe8d6a7434586d76ec4953918
4,595
py
Python
qa/rpc-tests/multi_rpc.py
GINcoinl/gincoin-core
4e45bbea153bb02f9964c863aea33ebb707e260c
[ "MIT" ]
23
2018-12-18T16:54:16.000Z
2021-05-06T19:34:50.000Z
qa/rpc-tests/multi_rpc.py
GINcoinl/gincoin-core
4e45bbea153bb02f9964c863aea33ebb707e260c
[ "MIT" ]
3
2019-01-26T08:41:46.000Z
2020-05-25T13:02:11.000Z
qa/rpc-tests/multi_rpc.py
GINcoinl/gincoin-core
4e45bbea153bb02f9964c863aea33ebb707e260c
[ "MIT" ]
15
2018-12-28T19:09:37.000Z
2020-06-13T18:19:10.000Z
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test mulitple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTestFrame...
37.663934
129
0.649619
adb5f7de0d1ba289efcc988442c49d295ca3e9d3
5,580
py
Python
configs/swin/self_t_config_100_000025.py
Daeil-Jung/swin_food_detection
76d6273f01a3695f412a915f70092afe15178e64
[ "Apache-2.0" ]
null
null
null
configs/swin/self_t_config_100_000025.py
Daeil-Jung/swin_food_detection
76d6273f01a3695f412a915f70092afe15178e64
[ "Apache-2.0" ]
null
null
null
configs/swin/self_t_config_100_000025.py
Daeil-Jung/swin_food_detection
76d6273f01a3695f412a915f70092afe15178e64
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py', '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] pretrained = 'https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_tiny_patch4_window7_224.pth' # noqa data_root = '/swi...
43.59375
123
0.5681
5f5e93ba241675f79867f525d36b46ce3f37977e
8,231
py
Python
demo_SMGP_toy.py
LiuHaiTao01/ModulatedGPs
bceac3aff0c40b2235edd72d31f49a523db0d4d0
[ "Apache-2.0" ]
1
2022-02-19T13:02:12.000Z
2022-02-19T13:02:12.000Z
demo_SMGP_toy.py
LiuHaiTao01/ModulatedGPs
bceac3aff0c40b2235edd72d31f49a523db0d4d0
[ "Apache-2.0" ]
null
null
null
demo_SMGP_toy.py
LiuHaiTao01/ModulatedGPs
bceac3aff0c40b2235edd72d31f49a523db0d4d0
[ "Apache-2.0" ]
1
2020-09-01T03:56:44.000Z
2020-09-01T03:56:44.000Z
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = '3' #os.environ["CUDA_VISIBLE_DEVICES"]="0" import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) import numpy as np from scipy.cluster.vq import kmeans2, kmeans from ModulatedGPs.likelihoods import Gaussian from ModulatedGPs.models import SMGP from Modulate...
40.546798
141
0.65472
5a40cb19f19431e00166e463c20d2266ba4069c5
112,648
py
Python
python/ccxt/base/exchange.py
MRGLabs/ccxt
9551c31b59a0a4f3bd59e5a8c79aeef7ddb7cf30
[ "MIT" ]
null
null
null
python/ccxt/base/exchange.py
MRGLabs/ccxt
9551c31b59a0a4f3bd59e5a8c79aeef7ddb7cf30
[ "MIT" ]
null
null
null
python/ccxt/base/exchange.py
MRGLabs/ccxt
9551c31b59a0a4f3bd59e5a8c79aeef7ddb7cf30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Base exchange class""" # ----------------------------------------------------------------------------- __version__ = '1.70.86' # ----------------------------------------------------------------------------- from ccxt.base.errors import ExchangeError from ccxt.base.errors import NetworkEr...
40.97781
219
0.583375
021a2bc48846118e82c81c292f3c0915764ab4e8
2,526
py
Python
CamCall.py
hammadahmad120/Camera-Calibration
7f2ef8f789696420b9670afab65020d7b5d962a5
[ "MIT" ]
null
null
null
CamCall.py
hammadahmad120/Camera-Calibration
7f2ef8f789696420b9670afab65020d7b5d962a5
[ "MIT" ]
null
null
null
CamCall.py
hammadahmad120/Camera-Calibration
7f2ef8f789696420b9670afab65020d7b5d962a5
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob # Define the chess board rows and columns rows = 7 cols = 6 # Set the termination criteria for the corner sub-pixel algorithm criteria = (cv2.TERM_CRITERIA_MAX_ITER + cv2.TERM_CRITERIA_EPS, 30, 0.001) # Prepare the object points: (0,0,0), (1,0,0), (2,0,0), ..., (6,5,0). They...
36.608696
115
0.699525
713487de41ab94dfb63082f3a6ffbe1c8da745ba
5,469
py
Python
src/pymor/la/gram_schmidt.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
src/pymor/la/gram_schmidt.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
src/pymor/la/gram_schmidt.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) # # Contributors: Andreas Buhr <andreas@andreasbuhr.de> from __future__ import absolute_import, division, print_fu...
38.514085
104
0.592064
ad1b9aefae11d381f5b45762bca73c1c5ffbd0a9
10,651
py
Python
stai/server/rate_limits.py
STATION-I/STAI-blockchain
a8ca05cbd2602eee7c2e4ce49c74c447a091ef0f
[ "Apache-2.0" ]
null
null
null
stai/server/rate_limits.py
STATION-I/STAI-blockchain
a8ca05cbd2602eee7c2e4ce49c74c447a091ef0f
[ "Apache-2.0" ]
null
null
null
stai/server/rate_limits.py
STATION-I/STAI-blockchain
a8ca05cbd2602eee7c2e4ce49c74c447a091ef0f
[ "Apache-2.0" ]
null
null
null
import dataclasses import logging import time from collections import Counter from typing import Optional from stai.protocols.protocol_message_types import ProtocolMessageTypes from stai.server.outbound_message import Message log = logging.getLogger(__name__) @dataclasses.dataclass(frozen=True) class RLSettings: ...
51.703883
118
0.729791
39a01f88b7619e2486ec6290aaa3b2dbc1d00a1c
16,050
py
Python
venv/lib/python2.7/site-packages/setuptools/config.py
Baw25/HomeSavvy
e07fb6f78e6f68fb981c92b15df5eef981e4d0ea
[ "MIT" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
venv/lib/python2.7/site-packages/setuptools/config.py
Baw25/HomeSavvy
e07fb6f78e6f68fb981c92b15df5eef981e4d0ea
[ "MIT" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
venv/lib/python2.7/site-packages/setuptools/config.py
Baw25/HomeSavvy
e07fb6f78e6f68fb981c92b15df5eef981e4d0ea
[ "MIT" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
from __future__ import absolute_import, unicode_literals import io import os import sys from collections import defaultdict from functools import partial from distutils.errors import DistutilsOptionError, DistutilsFileError from setuptools.py26compat import import_module from six import string_types def read_configu...
29.288321
79
0.614019
8771deeec67c8eb24d1026815eb25d48a01abdf4
17,387
py
Python
bin/generate_dmtn.py
lsst-dm/dmtn-158
1999ef9fbe5ee016a193131a3d096a4df447ee16
[ "CC-BY-4.0" ]
null
null
null
bin/generate_dmtn.py
lsst-dm/dmtn-158
1999ef9fbe5ee016a193131a3d096a4df447ee16
[ "CC-BY-4.0" ]
1
2020-08-18T15:59:42.000Z
2020-08-18T15:59:42.000Z
bin/generate_dmtn.py
lsst-dm/dmtn-158
1999ef9fbe5ee016a193131a3d096a4df447ee16
[ "CC-BY-4.0" ]
null
null
null
import glob import os.path import subprocess import textwrap from abc import ABC, abstractmethod from datetime import datetime from io import StringIO from contextlib import contextmanager from milestones import ( add_rst_citations, get_latest_pmcs_path, get_local_data_path, load_milestones, write...
39.87844
100
0.497613
52e6aaa0e3a08c13b1310d6fba701f49e484c490
3,113
py
Python
engram/engram.py
rgrannell1/engram.py
69ca1af7b0ddb963a611e15414aa2eda48d6c325
[ "MIT", "Unlicense" ]
null
null
null
engram/engram.py
rgrannell1/engram.py
69ca1af7b0ddb963a611e15414aa2eda48d6c325
[ "MIT", "Unlicense" ]
36
2015-01-24T23:12:10.000Z
2015-07-12T19:01:44.000Z
engram/engram.py
rgrannell1/engram.py
69ca1af7b0ddb963a611e15414aa2eda48d6c325
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import os import time import sys import sql import queue import routes import signal import threading from request_url import request_url from db import Database, WriteJob, ReadJob from result import Ok, Err, Result from flask import Flask, redirect, url_for, request ...
19.45625
76
0.66656
d2b483f81f8bcbb48ab01f315b44f5de4eb22981
9,348
py
Python
core/src/main/python/wlsdeploy/aliases/alias_constants.py
avijeetgorai/weblogic-deploy-tooling
9f7f8a7a101a6f5c8381db84cba262d90b6bff25
[ "Apache-2.0", "MIT" ]
null
null
null
core/src/main/python/wlsdeploy/aliases/alias_constants.py
avijeetgorai/weblogic-deploy-tooling
9f7f8a7a101a6f5c8381db84cba262d90b6bff25
[ "Apache-2.0", "MIT" ]
null
null
null
core/src/main/python/wlsdeploy/aliases/alias_constants.py
avijeetgorai/weblogic-deploy-tooling
9f7f8a7a101a6f5c8381db84cba262d90b6bff25
[ "Apache-2.0", "MIT" ]
1
2020-02-13T04:08:39.000Z
2020-02-13T04:08:39.000Z
""" Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. These constants are internal to the aliases module and should not be used, as they are not part of the public API. """ from wlsdeploy.ut...
40.467532
119
0.811617
788be50b3b958fa572d3e8196d9aad28a00ef003
1,789
py
Python
examples/metrics.py
autodesk-cloud/ochopod
a934aa68ed3d1b242856006052c12e95258cd8c3
[ "Apache-2.0" ]
139
2015-03-12T17:26:07.000Z
2020-10-04T15:25:48.000Z
examples/metrics.py
autodesk-cloud/ochopod
a934aa68ed3d1b242856006052c12e95258cd8c3
[ "Apache-2.0" ]
28
2015-04-01T06:12:09.000Z
2016-06-21T09:36:32.000Z
examples/metrics.py
autodesk-cloud/ochopod
a934aa68ed3d1b242856006052c12e95258cd8c3
[ "Apache-2.0" ]
31
2015-03-24T20:19:09.000Z
2021-06-13T11:00:20.000Z
# # Copyright (c) 2015 Autodesk 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 l...
28.396825
118
0.633315
9b2b7a2459d52aa35ec7f50778e22a53dee314ab
9,627
py
Python
doc/conf.py
jnothman/sphinx-gallery
b930662613a32fe05f16b39f86fafdb4c8d6f424
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
jnothman/sphinx-gallery
b930662613a32fe05f16b39f86fafdb4c8d6f424
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
jnothman/sphinx-gallery
b930662613a32fe05f16b39f86fafdb4c8d6f424
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Sphinx-Gallery documentation build configuration file, created by # sphinx-quickstart on Mon Nov 17 16:01:26 2014. # # 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.667763
79
0.716423
64b7fc08603a2bd5941862858a8836e7efeb07bd
2,646
py
Python
project_files/retention_model.py
nmlook/EDS-Project-3-Workbook-Bundle
847d0ebe1beae75148bb25aa6b16835efda05a96
[ "MIT" ]
null
null
null
project_files/retention_model.py
nmlook/EDS-Project-3-Workbook-Bundle
847d0ebe1beae75148bb25aa6b16835efda05a96
[ "MIT" ]
null
null
null
project_files/retention_model.py
nmlook/EDS-Project-3-Workbook-Bundle
847d0ebe1beae75148bb25aa6b16835efda05a96
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import pandas as pd # pd.options.mode.chained_assignment = None # default='warn' import pickle import sklearn import sys import fire class EmployeeRetentionModel: def __init__(self, model_location): with open(model_location, 'rb') as f: ...
30.068182
95
0.655707
4636b95da3ad075e55f245edd69bd8170f288aa1
897
py
Python
dimmer.py
jeffkub/led-wall-clock
12f39779e0508fab5d6fc835adbd2cf2b4014228
[ "MIT" ]
11
2016-12-05T23:34:55.000Z
2021-01-11T19:32:33.000Z
dimmer.py
jeffkub/led-wall-clock
12f39779e0508fab5d6fc835adbd2cf2b4014228
[ "MIT" ]
3
2016-03-24T02:49:12.000Z
2018-06-19T07:05:33.000Z
dimmer.py
jeffkub/led-wall-clock
12f39779e0508fab5d6fc835adbd2cf2b4014228
[ "MIT" ]
5
2016-12-06T20:43:11.000Z
2021-11-14T15:34:07.000Z
import ephem import logging class Dimmer(object): def __init__(self, scheduler): self._observer = ephem.Observer() self._observer.pressure = 0 self._observer.horizon = '-6' self._observer.lat = '38.262469' self._observer.lon = '-85.648625' self.brightness = 100 ...
27.181818
74
0.591973
b18ce25fd218201ab75f4b3c14f9c7b66f84f373
10,443
py
Python
sdk/python/arvados/api.py
basharbme/arvados
1c3c8f7fd2e1268b139e046fbd6a7093dd82222f
[ "Apache-2.0" ]
1
2019-09-08T01:49:09.000Z
2019-09-08T01:49:09.000Z
sdk/python/arvados/api.py
basharbme/arvados
1c3c8f7fd2e1268b139e046fbd6a7093dd82222f
[ "Apache-2.0" ]
null
null
null
sdk/python/arvados/api.py
basharbme/arvados
1c3c8f7fd2e1268b139e046fbd6a7093dd82222f
[ "Apache-2.0" ]
null
null
null
# Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import range import collections import http.client import httplib2 import json import logging imp...
37.564748
193
0.682754
e0137ef4822c0fcfd6e7a7c29b75c617b72e7532
297
py
Python
src/demo_tzbtc/types/tzbtc/storage.py
r4ravi2008/dipdup-py
1be3c3ac705f687af058ff51cde7970878584562
[ "MIT" ]
null
null
null
src/demo_tzbtc/types/tzbtc/storage.py
r4ravi2008/dipdup-py
1be3c3ac705f687af058ff51cde7970878584562
[ "MIT" ]
null
null
null
src/demo_tzbtc/types/tzbtc/storage.py
r4ravi2008/dipdup-py
1be3c3ac705f687af058ff51cde7970878584562
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: storage.json from __future__ import annotations from typing import Dict from pydantic import BaseModel, Field class TzbtcStorage(BaseModel): big_map: Dict[str, str] bool: bool lambda_: str = Field(..., alias='lambda') nat: str
18.5625
45
0.713805
7b9faf2d3dbef9e6e589ddeab6de0904ee532ae2
3,923
py
Python
mods/Roomba/client.py
thermalpilot/opennero
1bb1ba083cf2576e09bb7cfeac013d6940a47afe
[ "BSD-3-Clause" ]
1
2015-06-21T00:52:25.000Z
2015-06-21T00:52:25.000Z
mods/Roomba/client.py
thermalpilot/opennero
1bb1ba083cf2576e09bb7cfeac013d6940a47afe
[ "BSD-3-Clause" ]
null
null
null
mods/Roomba/client.py
thermalpilot/opennero
1bb1ba083cf2576e09bb7cfeac013d6940a47afe
[ "BSD-3-Clause" ]
null
null
null
from OpenNero import * from random import seed # add the key and mouse bindings from inputConfig import * # add network utils from common import * from module import getMod, delMod ### called from gui elements ############################ def toggle_ai_callback(pauseButton): """ pause and resume all AI age...
33.245763
109
0.685445
b6f2bfd4c53dc7736e98c551cf894305b999c9d2
2,996
py
Python
moto/cloudformation/custom_model.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/cloudformation/custom_model.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/cloudformation/custom_model.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
import json import threading from moto import settings from moto.core.models import CloudFormationModel from moto.awslambda import lambda_backends from uuid import uuid4 class CustomModel(CloudFormationModel): def __init__(self, region_name, request_id, logical_id, resource_name): self.region_name = regi...
32.923077
118
0.656876
88057af06683f764c46e3a00daa8828915518fdf
3,803
py
Python
models/subscription.py
tervay/the-blue-alliance
e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8
[ "MIT" ]
1
2016-03-19T20:29:35.000Z
2016-03-19T20:29:35.000Z
models/subscription.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
11
2020-10-10T03:05:29.000Z
2022-02-27T09:57:22.000Z
models/subscription.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
null
null
null
import json from google.appengine.ext import ndb from consts.model_type import ModelType from consts.notification_type import NotificationType class Subscription(ndb.Model): """ In order to make strongly consistent DB requests, instances of this class should be created with a parent that is the associat...
40.892473
115
0.680515
58b9871a773f70871f5f17ba35de3a54a97270a7
14,395
py
Python
code/snp_network_from_gene_network.py
chagaz/sfan
14f1b336caa80bc176ec9459019f309ccd92252d
[ "MIT" ]
12
2016-03-07T09:14:38.000Z
2020-05-18T07:45:58.000Z
code/snp_network_from_gene_network.py
chagaz/sfan
14f1b336caa80bc176ec9459019f309ccd92252d
[ "MIT" ]
12
2016-07-29T09:38:18.000Z
2016-07-29T15:22:04.000Z
code/snp_network_from_gene_network.py
chagaz/sfan
14f1b336caa80bc176ec9459019f309ccd92252d
[ "MIT" ]
3
2017-08-09T23:12:42.000Z
2020-05-16T18:12:44.000Z
# snp_network_from_gene_network.py -- Create SNPs network # # jean-daniel.granet@mines-paristech.fr from __future__ import print_function import sys import argparse import time from operator import itemgetter import numpy as np # numerical python module import scipy.sparse as sp # scientific python sparse module from...
49.637931
211
0.528378
f186bedbc11d3c1cc4a557de35fdda8237e512a0
2,399
py
Python
ai_flow/util/process_utils.py
SteNicholas/ai-flow
2c70547981f1516f0e37bbe6936a1b7cccd31822
[ "Apache-2.0" ]
null
null
null
ai_flow/util/process_utils.py
SteNicholas/ai-flow
2c70547981f1516f0e37bbe6936a1b7cccd31822
[ "Apache-2.0" ]
null
null
null
ai_flow/util/process_utils.py
SteNicholas/ai-flow
2c70547981f1516f0e37bbe6936a1b7cccd31822
[ "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...
32.418919
111
0.681951
b75c39ebf4fa897681948d3b121466d779c5da47
1,660
py
Python
source/mysql/setup_common.py
Saanidhyavats/dffml
5664a75aa7fcd5921b1a3e2da9203d94ed960286
[ "MIT" ]
3
2021-03-08T18:41:21.000Z
2021-06-05T20:15:14.000Z
source/mysql/setup_common.py
NikhilBartwal/dffml
16180144f388924d9e5840c4aa80d08970af5e60
[ "MIT" ]
1
2021-03-20T07:05:55.000Z
2021-03-20T07:05:55.000Z
source/mysql/setup_common.py
NikhilBartwal/dffml
16180144f388924d9e5840c4aa80d08970af5e60
[ "MIT" ]
1
2021-04-19T23:58:26.000Z
2021-04-19T23:58:26.000Z
import os import sys import ast from pathlib import Path from setuptools import find_packages ORG = "intel" NAME = "dffml-source-mysql" DESCRIPTION = "DFFML Source for MySQL Protocol" AUTHOR_NAME = "Sudharsana K J L" AUTHOR_EMAIL = "kjlsudharsana@gmail.com" IMPORT_NAME = ( NAME if "replace_package_name".upper...
29.122807
78
0.666867
76e8e7424ba5e355f04dcf745a49f077cf4c2a60
9,473
py
Python
Bio/PDB/Vector.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
3
2016-11-21T09:55:56.000Z
2019-04-09T17:39:43.000Z
Bio/PDB/Vector.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
32
2016-11-21T07:38:21.000Z
2017-08-16T13:00:03.000Z
Bio/PDB/Vector.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
8
2016-11-24T18:57:35.000Z
2022-01-16T08:15:25.000Z
# Copyright (C) 2004, Thomas Hamelryck (thamelry@binf.ku.dk) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Vector class, including rotation-related functions.""" from __future__ import print_fu...
27.457971
153
0.535944
124cec97617af3651e6b550dec6409d6dcc5cc86
9,288
py
Python
homeassistant/components/sensor/synologydsm.py
clementTal/home-assistant
7bc2362e33f86d41769d753d1701a53ae60224d5
[ "Apache-2.0" ]
7
2018-08-03T10:15:36.000Z
2019-03-25T13:31:55.000Z
homeassistant/components/sensor/synologydsm.py
clementTal/home-assistant
7bc2362e33f86d41769d753d1701a53ae60224d5
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensor/synologydsm.py
clementTal/home-assistant
7bc2362e33f86d41769d753d1701a53ae60224d5
[ "Apache-2.0" ]
3
2018-12-04T11:54:27.000Z
2019-08-31T14:41:32.000Z
""" Support for Synology NAS Sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.synologydsm/ """ import logging from datetime import timedelta import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant....
38.222222
79
0.640289
bb233df6e3fcae25f192b44c64ed536e77ad33f0
8,146
py
Python
util.py
Ankuraxz/Detectx-Yolo-V3
bb3dcd75741131f22fc17337e5e8fe9fe9a3bd6d
[ "MIT" ]
37
2019-08-10T05:00:33.000Z
2022-03-23T20:13:07.000Z
util.py
Ankuraxz/Detectx-Yolo-V3
bb3dcd75741131f22fc17337e5e8fe9fe9a3bd6d
[ "MIT" ]
3
2019-11-20T20:23:43.000Z
2021-04-14T18:48:17.000Z
util.py
Ankuraxz/Detectx-Yolo-V3
bb3dcd75741131f22fc17337e5e8fe9fe9a3bd6d
[ "MIT" ]
42
2019-08-10T05:00:36.000Z
2021-10-01T19:59:40.000Z
from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import cv2 import matplotlib.pyplot as plt def count_parameters(model): return sum(p.numel() for p in model.parameters()) def count_learnable_parameters(mo...
33.24898
195
0.599558
eb7e63a079b6be743c8430f9f91993305486f444
1,019
py
Python
example/aseqdump_test.py
K4zuki/EtherCAT_Master
b5e2dd2f87ee9a0c520201eb13f6516ae9adf787
[ "MIT" ]
null
null
null
example/aseqdump_test.py
K4zuki/EtherCAT_Master
b5e2dd2f87ee9a0c520201eb13f6516ae9adf787
[ "MIT" ]
null
null
null
example/aseqdump_test.py
K4zuki/EtherCAT_Master
b5e2dd2f87ee9a0c520201eb13f6516ae9adf787
[ "MIT" ]
null
null
null
import aseqdump import threading data = 0 Ch =0 def Note(): midi = aseqdump.aseqdump("24:0") while 1: onoff,key,velocity = midi.Note_get() if(onoff == ""): continue print("Note: %s , %s , %s" % (onoff,key,velocity)) def Control(): global Ch midi = aseqdump.aseqdum...
19.226415
58
0.558391
b4226dead7edb8f3846eb2f2dc9275b5a24a8359
21,771
py
Python
scripts/train_detection.py
urasakikeisuke/seamseg
2b3a6d8aaaa895df4949e263e97c2f8b83332b88
[ "BSD-3-Clause" ]
282
2019-06-07T11:37:01.000Z
2022-03-19T05:43:02.000Z
scripts/train_detection.py
urasakikeisuke/seamseg
2b3a6d8aaaa895df4949e263e97c2f8b83332b88
[ "BSD-3-Clause" ]
32
2019-07-02T10:39:03.000Z
2022-03-10T14:10:13.000Z
scripts/train_detection.py
urasakikeisuke/seamseg
2b3a6d8aaaa895df4949e263e97c2f8b83332b88
[ "BSD-3-Clause" ]
56
2019-07-24T02:31:37.000Z
2022-01-07T16:19:50.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import argparse import shutil import time from collections import OrderedDict from os import path import tensorboardX as tensorboard import torch import torch.optim as optim import torch.utils.data as data from torch import distributed import seamseg.models as model...
43.110891
119
0.617105
281d530c7ed955310f981929cc5ad6876b02d758
39,047
py
Python
openstackclient/tests/unit/identity/v3/test_role.py
alvarosimon/python-openstackclient
2ab3396f19796935ddcb281b865d37839a4f84f7
[ "Apache-2.0" ]
1
2018-04-23T20:59:31.000Z
2018-04-23T20:59:31.000Z
openstackclient/tests/unit/identity/v3/test_role.py
adgeese/python-openstackclient
06263bd5852aad9cd03a76f50140fbbb2d0751ba
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/unit/identity/v3/test_role.py
adgeese/python-openstackclient
06263bd5852aad9cd03a76f50140fbbb2d0751ba
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2013 Nebula Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.006762
79
0.583297
f1fd452f2ffba028d32d33316e91a87ae9839ced
6,672
py
Python
src/ui/timeline_label_widget.py
KumarLabJax/JABS-behavior-classifier
8c038a7510ae08d90418403a723e396344bb671c
[ "FSFAP" ]
null
null
null
src/ui/timeline_label_widget.py
KumarLabJax/JABS-behavior-classifier
8c038a7510ae08d90418403a723e396344bb671c
[ "FSFAP" ]
null
null
null
src/ui/timeline_label_widget.py
KumarLabJax/JABS-behavior-classifier
8c038a7510ae08d90418403a723e396344bb671c
[ "FSFAP" ]
null
null
null
import math import numpy as np from PySide2.QtCore import QSize, Qt from PySide2.QtGui import QPainter, QColor, QPen, QPixmap, QBrush from PySide2.QtWidgets import QWidget, QSizePolicy from src.project.track_labels import TrackLabels from .colors import (BEHAVIOR_COLOR, NOT_BEHAVIOR_COLOR, BACKGROUND_COLOR, ...
36.861878
93
0.635342
f0cd20efe717895b81c18944fabbba9d4cc3d95d
794
py
Python
advent_of_code/common_dependencies/intcode_test.py
rfrazier716/advent_of_code_2019
90a9ea4828e54ea542140536e98a5a8737a31e1e
[ "MIT" ]
null
null
null
advent_of_code/common_dependencies/intcode_test.py
rfrazier716/advent_of_code_2019
90a9ea4828e54ea542140536e98a5a8737a31e1e
[ "MIT" ]
null
null
null
advent_of_code/common_dependencies/intcode_test.py
rfrazier716/advent_of_code_2019
90a9ea4828e54ea542140536e98a5a8737a31e1e
[ "MIT" ]
null
null
null
import intcode import numpy as np from pathlib import Path import re import timeit def load_commented_program(file_path): with open(file_path) as file: int_code=re.findall("[0-9]+",",".join([line.split("#")[0] for line in file.readlines()])) #pull int code as a string return np.array([int(num) for...
28.357143
124
0.709068
b1b1bef236e681a735459d134849b44eadc9ec21
228
py
Python
configs/seesaw_loss/cascade_mask_rcnn_r101_fpn_random_seesaw_loss_normed_mask_mstrain_2x_lvis_v1.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
configs/seesaw_loss/cascade_mask_rcnn_r101_fpn_random_seesaw_loss_normed_mask_mstrain_2x_lvis_v1.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
configs/seesaw_loss/cascade_mask_rcnn_r101_fpn_random_seesaw_loss_normed_mask_mstrain_2x_lvis_v1.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
_base_ = './cascade_mask_rcnn_r101_fpn_random_seesaw_loss_mstrain_2x_lvis_v1.py' # noqa: E501 model = dict( roi_head=dict( mask_head=dict( predictor_cfg=dict(type='NormedConv2d', tempearture=20))))
38
95
0.701754
7807788df3770e555064b9a84a85f44f739d7be2
811
py
Python
py/server/tests/test_experiments.py
mattrunyon/deephaven-core
80e3567e4647ab76a81e483d0a8ab542f9aadace
[ "MIT" ]
null
null
null
py/server/tests/test_experiments.py
mattrunyon/deephaven-core
80e3567e4647ab76a81e483d0a8ab542f9aadace
[ "MIT" ]
null
null
null
py/server/tests/test_experiments.py
mattrunyon/deephaven-core
80e3567e4647ab76a81e483d0a8ab542f9aadace
[ "MIT" ]
null
null
null
# # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # import unittest from deephaven import time_table from deephaven._ugp import ugp_exclusive_lock from deephaven.experimental import time_window from tests.testbase import BaseTestCase class ExperimentalTestCase(BaseTestCase): def test_time_wind...
30.037037
89
0.711467
c928d296e91b444330a7efb9a81b69b536b6a2cf
923
py
Python
src/graphql/pyutils/path.py
closeio/graphql-core
28772a2f3529ac2772e616e24ccb76c085f1e87b
[ "MIT" ]
590
2015-10-06T18:22:49.000Z
2022-03-22T16:32:17.000Z
src/graphql/pyutils/path.py
closeio/graphql-core
28772a2f3529ac2772e616e24ccb76c085f1e87b
[ "MIT" ]
300
2015-10-06T18:58:11.000Z
2022-03-22T14:01:44.000Z
src/graphql/pyutils/path.py
closeio/graphql-core
28772a2f3529ac2772e616e24ccb76c085f1e87b
[ "MIT" ]
270
2015-10-08T19:47:38.000Z
2022-03-10T04:17:51.000Z
from typing import Any, List, NamedTuple, Optional, Union __all__ = ["Path"] class Path(NamedTuple): """A generic path of string or integer indices""" prev: Any # Optional['Path'] (python/mypy/issues/731) """path with the previous indices""" key: Union[str, int] """current index in the path (st...
31.827586
86
0.605634
d98cf6f7bc8059b4391db1a0d609ff94ffd161de
2,166
py
Python
conanfile.py
bincrafters/conan-premake_installer
dbc6ac321df648818b5bb139ae345bff01cff217
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-premake_installer
dbc6ac321df648818b5bb139ae345bff01cff217
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-premake_installer
dbc6ac321df648818b5bb139ae345bff01cff217
[ "MIT" ]
null
null
null
from conans import ConanFile, tools, AutoToolsBuildEnvironment, MSBuild import os class PremakeInstallerConan(ConanFile): name = "premake_installer" version = "5.0.0-alpha14" topics = ("conan", "premake", "build", "build-systems") description = "Describe your software project just once, using Premake'...
42.470588
143
0.644968
9c091a5e3e82528ed81a1298bc5bc6273bcf20f7
963
py
Python
minimal_example.py
shehan/flask-api-demo
129399d15d576ba85cd985eff098c9e663121b51
[ "MIT" ]
null
null
null
minimal_example.py
shehan/flask-api-demo
129399d15d576ba85cd985eff098c9e663121b51
[ "MIT" ]
null
null
null
minimal_example.py
shehan/flask-api-demo
129399d15d576ba85cd985eff098c9e663121b51
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) # The route is used to bind a function to a URL # The route maps a url to some logic (also known as "view function") @app.route("/") # A single function can be associated with multiple routes # @app.route("/home") # @app.route("/index") def home(): return "<h1>Hello ...
29.181818
96
0.593977
0989d8732dc92c53dbcfaea178165ddfd6b862b9
416
py
Python
Python/Maths/somme_chiffres.py
GeneralNZR/maths-and-javascript
8a0e638e59808b1d987269dddac0b99c96c78c4a
[ "MIT" ]
3
2021-10-01T06:11:28.000Z
2021-10-04T20:50:07.000Z
Python/Maths/somme_chiffres.py
GeneralNZR/maths-and-javascript
8a0e638e59808b1d987269dddac0b99c96c78c4a
[ "MIT" ]
null
null
null
Python/Maths/somme_chiffres.py
GeneralNZR/maths-and-javascript
8a0e638e59808b1d987269dddac0b99c96c78c4a
[ "MIT" ]
null
null
null
def somme_chiffres(n: int) -> int: """ Description: Fonction qui retourne la somme des chiffres d'un nombre. Paramètres: n: {int} -- Le nombre à traiter. Retourne: {int} -- La somme des chiffres du nombre. Exemple: >>> somme_chiffres(1010101) 4 ...
20.8
64
0.509615
20fa40ac90b9a7acec001589968305674ed42ac6
172
py
Python
aiotractive/trackable_object.py
Danielhiversen/aiotractive
20fe0be6bc63b44e3fedbc25c0e2533ca39132bf
[ "MIT" ]
null
null
null
aiotractive/trackable_object.py
Danielhiversen/aiotractive
20fe0be6bc63b44e3fedbc25c0e2533ca39132bf
[ "MIT" ]
null
null
null
aiotractive/trackable_object.py
Danielhiversen/aiotractive
20fe0be6bc63b44e3fedbc25c0e2533ca39132bf
[ "MIT" ]
null
null
null
from .data_object import DataObject class TrackableObject(DataObject): async def details(self): return await self._api.request(f"trackable_object/{self.id}")
24.571429
69
0.75
68713077c5ac2583cae4b3ba087dceec028bf5f9
954
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/detection/models/ProbeTaskEnableSpec.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/detection/models/ProbeTaskEnableSpec.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/detection/models/ProbeTaskEnableSpec.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
31.8
75
0.714885
986eb0accbbf731623c27cae67b164982e1395cf
2,023
py
Python
tests/test_model_template.py
scalarstop/scalarstop
165ec9cfe70a0cb381cccb4efd5dd98aba74d8ca
[ "MIT" ]
2
2021-04-15T00:17:15.000Z
2021-05-10T23:11:56.000Z
tests/test_model_template.py
scalarstop/scalarstop
165ec9cfe70a0cb381cccb4efd5dd98aba74d8ca
[ "MIT" ]
2
2021-07-22T11:05:19.000Z
2021-10-08T22:20:29.000Z
tests/test_model_template.py
scalarstop/scalarstop
165ec9cfe70a0cb381cccb4efd5dd98aba74d8ca
[ "MIT" ]
null
null
null
"""Unit tests for scalarstop.model_template.""" import doctest import unittest import tensorflow as tf import scalarstop as sp def load_tests(loader, tests, ignore): # pylint: disable=unused-argument """Have the unittest loader also run doctests.""" tests.addTests(doctest.DocTestSuite(sp.model_template)) ...
31.609375
88
0.651508
0c21563beba210dac4e6025c4aff6b3ed06e0187
36,527
py
Python
Blender/scripts/MOD_Opti_PSK_Dump/MOD07_Opti_PSK_Dump_armature_fail_only aniamtoin_work.py
ECToo/unrealtacticalmod
f78c77587d8a706697703be064fb854ffc31ea4c
[ "Unlicense" ]
null
null
null
Blender/scripts/MOD_Opti_PSK_Dump/MOD07_Opti_PSK_Dump_armature_fail_only aniamtoin_work.py
ECToo/unrealtacticalmod
f78c77587d8a706697703be064fb854ffc31ea4c
[ "Unlicense" ]
null
null
null
Blender/scripts/MOD_Opti_PSK_Dump/MOD07_Opti_PSK_Dump_armature_fail_only aniamtoin_work.py
ECToo/unrealtacticalmod
f78c77587d8a706697703be064fb854ffc31ea4c
[ "Unlicense" ]
null
null
null
#!BPY """ Name: 'Unreal Skeletal Mesh/Animation (.psk and .psa) MOD09' Blender: 240 Group: 'Export' Tooltip: 'Unreal Skeletal Mesh and Animation Export (*.psk, *.psa)' """ __author__ = "Optimus_P-Fat/Active_Trash" __version__ = "0.0.2" __bpydoc__ = """\ -- Unreal Skeletal Mesh and Animation Export ...
29.964725
252
0.650642
ec6a498a22c6120f1221f757f2216fa47a9aa4aa
2,526
py
Python
2017/plot_stats/sloc_runtime.py
max-f/advent-of-code
3c0ee995f7c0691418ecb86cbfa201b3d03131b8
[ "MIT" ]
null
null
null
2017/plot_stats/sloc_runtime.py
max-f/advent-of-code
3c0ee995f7c0691418ecb86cbfa201b3d03131b8
[ "MIT" ]
null
null
null
2017/plot_stats/sloc_runtime.py
max-f/advent-of-code
3c0ee995f7c0691418ecb86cbfa201b3d03131b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import os import subprocess import time from typing import List import matplotlib.pyplot as plt import seaborn as sns def create_timings() -> List[int]: cwd = os.getcwd() os.chdir('..') timings = list() for day in range(1, 26): start = time.time() ...
28.066667
86
0.591449
1b9f9bdfa3fab4b38860404ffc20a7348fc2f8d0
565
py
Python
src/minterpy/polynomials/__init__.py
karanprime/minterpy
75d8976b2ddcf79ebaa29b4cb80691ca02a6d180
[ "MIT" ]
13
2021-11-30T17:52:45.000Z
2021-12-09T10:05:20.000Z
src/minterpy/polynomials/__init__.py
karanprime/minterpy
75d8976b2ddcf79ebaa29b4cb80691ca02a6d180
[ "MIT" ]
2
2021-11-30T18:31:22.000Z
2022-02-10T10:13:37.000Z
src/minterpy/polynomials/__init__.py
karanprime/minterpy
75d8976b2ddcf79ebaa29b4cb80691ca02a6d180
[ "MIT" ]
6
2021-11-30T18:17:26.000Z
2022-02-18T17:38:27.000Z
""" The submodule `polynomials` is part of `minterpy`. It contains concrete implementations for multivariate canonical, Newton and Lagrange polynomial base, respectively. """ __all__ = [] from . import canonical_polynomial # noqa from .canonical_polynomial import * # noqa __all__ += canonical_polynomial.__all__ ...
24.565217
115
0.778761
57aa0cd3da7e1b482602b0dedc54371a1c432836
13,127
py
Python
ctapipe/core/tests/test_component.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
null
null
null
ctapipe/core/tests/test_component.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
null
null
null
ctapipe/core/tests/test_component.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
1
2020-05-16T10:23:51.000Z
2020-05-16T10:23:51.000Z
from abc import abstractmethod, ABC import pytest from traitlets import Float, TraitError, Int from traitlets.config.loader import Config import astropy.units as u import warnings from ctapipe.core import Component def test_non_abstract_children(): """ check that we can find all constructable children """ f...
29.90205
80
0.681801