hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
fc7fb355e0004487d0ead15c251476f2cd39193b
2,658
py
Python
datasets/imagenet.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
datasets/imagenet.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
datasets/imagenet.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import concurrent.futures import numpy as np import os from PIL import Image import torchvision from datasets import base from platforms.platf...
33.225
115
0.677201
2,016
0.758465
0
0
1,054
0.396539
0
0
229
0.086155
fc80bac77478aab3a7595a594bb0b4822d3d20bb
8,746
py
Python
sm4.py
ZelKnow/sm4
2bb232f46a5033b2d89ce097e004e53eb13d90d8
[ "MIT" ]
null
null
null
sm4.py
ZelKnow/sm4
2bb232f46a5033b2d89ce097e004e53eb13d90d8
[ "MIT" ]
null
null
null
sm4.py
ZelKnow/sm4
2bb232f46a5033b2d89ce097e004e53eb13d90d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : sm4.py @Description : sm4加密算法的实现 @Date : 2021/10/28 15:59:51 @Author : ZelKnow @Github : https://github.com/ZelKnow """ __author__ = "ZelKnow" from argparse import ArgumentParser, ArgumentError from binascii import hexlify, u...
27.677215
81
0.511091
6,705
0.700042
0
0
0
0
0
0
3,615
0.377427
fc80de56a04c7ef4be7293dbeb997c760a19a788
1,750
py
Python
sendotp/sendotp.py
saadmk11/sendotp-python
b0cd5c3da969d00a753d9614c5bea0e2978859c9
[ "MIT" ]
5
2017-05-15T07:21:29.000Z
2022-03-02T01:01:47.000Z
sendotp/sendotp.py
saadmk11/sendotp-python
b0cd5c3da969d00a753d9614c5bea0e2978859c9
[ "MIT" ]
2
2017-05-15T07:57:36.000Z
2021-09-23T06:22:34.000Z
sendotp/sendotp.py
saadmk11/sendotp-python
b0cd5c3da969d00a753d9614c5bea0e2978859c9
[ "MIT" ]
10
2017-05-29T06:53:42.000Z
2020-05-22T10:29:00.000Z
import json import requests from random import randint class sendotp: def __init__(self, key, msg): self.baseUrl = "http://control.msg91.com" self.authkey = key try: msg except NameError: self.msg = "Your otp is {{otp}}. Please do not share it with anybod...
26.515152
81
0.552
1,692
0.966857
0
0
0
0
0
0
291
0.166286
fc8179bb642e9880741040dd5588b31584a47da9
528
py
Python
leetcode/1021-remove-outermost-parentheses.py
tjeubaoit/algorithm
a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a
[ "MIT" ]
null
null
null
leetcode/1021-remove-outermost-parentheses.py
tjeubaoit/algorithm
a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a
[ "MIT" ]
null
null
null
leetcode/1021-remove-outermost-parentheses.py
tjeubaoit/algorithm
a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a
[ "MIT" ]
null
null
null
class Solution: def removeOuterParentheses(self, s: str) -> str: ans = [] ct = 0 for ch in s: if ch == '(': ct += 1 if ct != 1: ans.append(ch) else: ct -= 1 if ct != 0: ...
22.956522
52
0.350379
367
0.695076
0
0
0
0
0
0
65
0.123106
fc8204c97c600cb469a44cb790b0f13a27763c8c
115
py
Python
venv/Scripts/ex049.py
SamuelNunesDev/starting_point_in_python
9a9e39cabb5f3526ee0037012e3943898c1d9dfa
[ "MIT" ]
null
null
null
venv/Scripts/ex049.py
SamuelNunesDev/starting_point_in_python
9a9e39cabb5f3526ee0037012e3943898c1d9dfa
[ "MIT" ]
null
null
null
venv/Scripts/ex049.py
SamuelNunesDev/starting_point_in_python
9a9e39cabb5f3526ee0037012e3943898c1d9dfa
[ "MIT" ]
null
null
null
n = int(input('Digite um número para ver sua tabuada: ')) for c in range(0, 11): print(f'{n} * {c} = {n * c}')
28.75
57
0.556522
0
0
0
0
0
0
0
0
64
0.551724
fc821cb035c84e746a53eb83ce1e63b3b5c31ae6
9,911
py
Python
js2py/evaljs.py
inprod/Js2Py
0af8cb100b7840e23358d220c685507163f2344e
[ "MIT" ]
null
null
null
js2py/evaljs.py
inprod/Js2Py
0af8cb100b7840e23358d220c685507163f2344e
[ "MIT" ]
null
null
null
js2py/evaljs.py
inprod/Js2Py
0af8cb100b7840e23358d220c685507163f2344e
[ "MIT" ]
null
null
null
# coding=utf-8 from .translators import translate_js, DEFAULT_HEADER from .es6 import js6_to_js5 import sys import time import json import six import os import hashlib import codecs __all__ = [ 'EvalJs', 'translate_js', 'import_js', 'eval_js', 'translate_file', 'eval_js6', 'translate_js6', 'run_file', 'disable...
34.058419
117
0.613258
5,940
0.599334
0
0
61
0.006155
0
0
4,545
0.458581
fc82e467705d5e2af949a070febf617a72de9774
152
py
Python
setup.py
mvduin/py-uio
1ad5eb6e1cfeae722535fd6ed7e485a0afd84683
[ "MIT" ]
38
2016-04-23T06:43:00.000Z
2022-03-17T17:06:59.000Z
setup.py
mvduin/py-uio
1ad5eb6e1cfeae722535fd6ed7e485a0afd84683
[ "MIT" ]
6
2016-05-13T04:42:38.000Z
2020-10-16T13:16:02.000Z
setup.py
mvduin/py-uio
1ad5eb6e1cfeae722535fd6ed7e485a0afd84683
[ "MIT" ]
8
2016-05-11T16:56:07.000Z
2019-09-11T09:54:22.000Z
#!/usr/bin/python3 from setuptools import setup, find_packages setup( package_dir = { '': 'src' }, packages = find_packages( where='src' ), )
16.888889
44
0.651316
0
0
0
0
0
0
0
0
30
0.197368
fc836898d52446a26166934c5d0c314e5b3ac86f
24,883
py
Python
tools/verity_utils.py
FabriSC/Alioth-SC
bbe9723401b351c2a34b09a30978373d456d20a2
[ "MIT" ]
3
2022-03-16T12:31:10.000Z
2022-03-23T04:20:20.000Z
bin/verity_utils.py
affggh/NH4RomTool
84b06f9cc5f268c14c7af25e91c8b242188c70f7
[ "Apache-2.0" ]
null
null
null
bin/verity_utils.py
affggh/NH4RomTool
84b06f9cc5f268c14c7af25e91c8b242188c70f7
[ "Apache-2.0" ]
1
2022-03-30T04:47:35.000Z
2022-03-30T04:47:35.000Z
#!/usr/bin/env python # # Copyright (C) 2018 The Android Open Source Project # # 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 req...
34.704324
80
0.710405
17,357
0.697545
0
0
0
0
0
0
8,720
0.35044
fc840d0dac6246e96ea6db4d9f0daf705ae65cf7
4,091
py
Python
orgviz/dones.py
tkf/orgviz
81a436265daa1fb8294a0186f50df76d9599ae38
[ "MIT" ]
8
2015-02-04T23:03:36.000Z
2021-05-02T10:56:24.000Z
orgviz/dones.py
tkf/orgviz
81a436265daa1fb8294a0186f50df76d9599ae38
[ "MIT" ]
null
null
null
orgviz/dones.py
tkf/orgviz
81a436265daa1fb8294a0186f50df76d9599ae38
[ "MIT" ]
3
2018-04-23T08:18:13.000Z
2019-10-12T17:32:54.000Z
#!/usr/bin/env python """org archive to html table converter""" import os import datetime import itertools from .utils.date import minutestr, total_minutes def rootname_from_archive_olpath(node): """ Find rootname from ARCHIVE_OLPATH property. Return None if not found. """ olpath = node.get_prop...
29.014184
75
0.60792
0
0
0
0
0
0
0
0
1,064
0.260083
fc884ea5bc9215fa52b9d78882591e5166747f7f
2,927
py
Python
tests/python/unittest/test_lang_tag.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
3
2021-02-23T22:06:01.000Z
2021-09-30T09:59:17.000Z
tests/python/unittest/test_lang_tag.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
4
2021-03-30T11:59:59.000Z
2022-03-12T00:40:23.000Z
tests/python/unittest/test_lang_tag.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
3
2021-07-20T07:40:15.000Z
2021-08-03T08:39:17.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...
31.138298
80
0.60164
0
0
0
0
462
0.157841
0
0
981
0.335155
fc8877ba165d31590d2a4b69afb04a74049c312a
2,374
py
Python
doepy/case_studies/discrete_time/MSFB2014.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
1
2020-04-23T13:43:35.000Z
2020-04-23T13:43:35.000Z
doepy/case_studies/discrete_time/MSFB2014.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
null
null
null
doepy/case_studies/discrete_time/MSFB2014.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
1
2021-06-13T14:38:32.000Z
2021-06-13T14:38:32.000Z
""" MIT License Copyright (c) 2019 Simon Olofsson 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 to use, copy, modify, merge, publish...
27.287356
79
0.717776
951
0.40059
0
0
0
0
0
0
1,392
0.586352
fc88c81b50b3710bc62276602ff44a775a8cb6eb
11,840
py
Python
house_code/tutorials_altered/3D_positioning_and_orientation.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
1
2020-06-12T07:21:56.000Z
2020-06-12T07:21:56.000Z
house_code/tutorials_altered/3D_positioning_and_orientation.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
null
null
null
house_code/tutorials_altered/3D_positioning_and_orientation.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ The pozyx ranging demo (c) Pozyx Labs please check out https://www.pozyx.io/Documentation/Tutorials/getting_started/Python This demo requires one (or two) pozyx shields. It demonstrates the 3D orientation and the functionality to remotely read register data from a pozyx device. Connect one of...
44.179104
164
0.661064
6,924
0.584797
0
0
0
0
0
0
3,006
0.253885
fc8903dace15225a2f4484e8807d8da8761b6a96
2,761
py
Python
hdfs_kernel/exceptions.py
Jasper912/jupyter-hdfs-kernel
4b933cab675cb908a1d2332f040c7fce697fce61
[ "MIT" ]
3
2019-10-28T02:52:46.000Z
2019-12-24T09:11:48.000Z
hdfs_kernel/exceptions.py
Jasper912/jupyter-hdfs-kernel
4b933cab675cb908a1d2332f040c7fce697fce61
[ "MIT" ]
null
null
null
hdfs_kernel/exceptions.py
Jasper912/jupyter-hdfs-kernel
4b933cab675cb908a1d2332f040c7fce697fce61
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- # # Author: huangnj # Time: 2019/09/27 import traceback from functools import wraps from hdfs_kernel.constants import EXPECTED_ERROR_MSG, INTERNAL_ERROR_MSG from hdfs.util import HdfsError # == EXCEPTIONS == class SessionManagementException(Exception): pass class Comm...
32.482353
119
0.694314
329
0.11916
0
0
779
0.282144
0
0
1,206
0.436798
fc898bad2efa60cee2c4ef24696c39c99d84411b
8,634
py
Python
dashboard/tests/test_inventory.py
vishalvvr/transtats
ec71f40b338cab36eb907f6faba262dfeb858b80
[ "Apache-2.0" ]
null
null
null
dashboard/tests/test_inventory.py
vishalvvr/transtats
ec71f40b338cab36eb907f6faba262dfeb858b80
[ "Apache-2.0" ]
null
null
null
dashboard/tests/test_inventory.py
vishalvvr/transtats
ec71f40b338cab36eb907f6faba262dfeb858b80
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.717489
101
0.67848
7,609
0.881283
0
0
0
0
0
0
2,181
0.252606
fc8994bb32a375675e5f3f534446419ae71a9b08
9,221
py
Python
web_console_v2/api/fedlearner_webconsole/rpc/server.py
nolanliou/fedlearner
54127c465b3b5d77ae41b823e42efbc1b707e826
[ "Apache-2.0" ]
null
null
null
web_console_v2/api/fedlearner_webconsole/rpc/server.py
nolanliou/fedlearner
54127c465b3b5d77ae41b823e42efbc1b707e826
[ "Apache-2.0" ]
null
null
null
web_console_v2/api/fedlearner_webconsole/rpc/server.py
nolanliou/fedlearner
54127c465b3b5d77ae41b823e42efbc1b707e826
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The FedLearner 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...
39.74569
78
0.615335
8,075
0.875718
0
0
0
0
0
0
1,184
0.128403
fc8d8f892ae337d196878475837e1f9cc4ae1047
956
py
Python
chapter15/async_aiohttp.py
haru-256/ExpertPython3_Source
5ef412ef217c6078248ff9546e23ed9b69aadcff
[ "MIT" ]
9
2021-07-30T07:57:55.000Z
2021-12-30T12:38:21.000Z
chapter15/async_aiohttp.py
haru-256/ExpertPython3_Source
5ef412ef217c6078248ff9546e23ed9b69aadcff
[ "MIT" ]
null
null
null
chapter15/async_aiohttp.py
haru-256/ExpertPython3_Source
5ef412ef217c6078248ff9546e23ed9b69aadcff
[ "MIT" ]
2
2021-09-05T11:39:50.000Z
2021-09-17T05:27:37.000Z
""" 「非同期プログラミング」の節で登場するサンプルコード aiohttpを使って非同期にHTTPのリクエストを送信する方法 """ import asyncio import time import aiohttp from asyncrates import get_rates SYMBOLS = ('USD', 'EUR', 'PLN', 'NOK', 'CZK') BASES = ('USD', 'EUR', 'PLN', 'NOK', 'CZK') async def fetch_rates(session, place): return await get_rates(session, place)...
20.782609
75
0.641213
0
0
0
0
0
0
499
0.471645
315
0.297732
fc8f2034e17191e49d05923f9d20c0bfa677c7bb
4,433
py
Python
experiments/nginx/run.py
OleksiiOleksenko/intel_mpx_explained
dd6da57e0fcf22df358d1a742079b414620a7c88
[ "MIT" ]
15
2017-02-08T04:02:50.000Z
2021-02-20T16:47:25.000Z
experiments/nginx/run.py
OleksiiOleksenko/intel_mpx_explained
dd6da57e0fcf22df358d1a742079b414620a7c88
[ "MIT" ]
1
2020-02-01T00:29:32.000Z
2020-02-04T14:25:57.000Z
experiments/nginx/run.py
OleksiiOleksenko/intel_mpx_explained
dd6da57e0fcf22df358d1a742079b414620a7c88
[ "MIT" ]
3
2017-02-08T04:02:51.000Z
2018-03-30T07:58:45.000Z
#!/usr/bin/env python from __future__ import print_function import logging import os import signal from time import sleep from subprocess import Popen, PIPE import socket from core.common_functions import * from core.run import Runner class NginxPerf(Runner): """ Runs Nginx """ name = "nginx" e...
36.336066
268
0.551771
4,117
0.928716
0
0
0
0
0
0
1,055
0.237988
fc9015f57ef9e7d95a77ff43b17dddea2b3da5aa
698
py
Python
tavi/test/unit/base/document_no_fields_test.py
verdammelt/tavi
3bb39a6e6ab936f6e9511a4058817697e3df098b
[ "MIT" ]
null
null
null
tavi/test/unit/base/document_no_fields_test.py
verdammelt/tavi
3bb39a6e6ab936f6e9511a4058817697e3df098b
[ "MIT" ]
null
null
null
tavi/test/unit/base/document_no_fields_test.py
verdammelt/tavi
3bb39a6e6ab936f6e9511a4058817697e3df098b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from tavi.base.documents import BaseDocument class BaseDocumentNoFieldsTest(unittest.TestCase): class NoFieldsSample(BaseDocument): pass def setUp(self): super(BaseDocumentNoFieldsTest, self).setUp() self.no_fields_sample = self.NoFieldsSample()...
27.92
64
0.7149
610
0.873926
0
0
0
0
0
0
23
0.032951
fc9074fa7981c7335753a01097902625525ccf9a
17,367
py
Python
seqparse/test/test_seqparse.py
hoafaloaf/seqparse
1d2446070c5627a5cb880d00ef327b892b4dedef
[ "MIT" ]
1
2021-06-08T17:24:41.000Z
2021-06-08T17:24:41.000Z
seqparse/test/test_seqparse.py
hoafaloaf/seqparse
1d2446070c5627a5cb880d00ef327b892b4dedef
[ "MIT" ]
null
null
null
seqparse/test/test_seqparse.py
hoafaloaf/seqparse
1d2446070c5627a5cb880d00ef327b892b4dedef
[ "MIT" ]
1
2021-10-05T15:44:07.000Z
2021-10-05T15:44:07.000Z
"""Test file sequence discovery on disk.""" # "Future" Libraries from __future__ import print_function # Standard Libraries import os import unittest # Third Party Libraries import mock from builtins import range from future.utils import lrange from . import (DirEntry, generate_entries, initialise_mock_scandir_data...
35.442857
79
0.604653
16,718
0.96263
0
0
12,407
0.714401
0
0
3,307
0.190419
fc918b97de90432887a40a5ee37a55b41149a19b
12,666
py
Python
deliveroo_scraping.py
ragreener1/deliveroo-scraping
c8e3de2503a6198734904fb937a77dd38ef05581
[ "MIT" ]
null
null
null
deliveroo_scraping.py
ragreener1/deliveroo-scraping
c8e3de2503a6198734904fb937a77dd38ef05581
[ "MIT" ]
null
null
null
deliveroo_scraping.py
ragreener1/deliveroo-scraping
c8e3de2503a6198734904fb937a77dd38ef05581
[ "MIT" ]
1
2021-03-16T16:43:34.000Z
2021-03-16T16:43:34.000Z
import urllib.request import pandas as pd import sqlite3 import re from bs4 import BeautifulSoup # Parameters postcodes_list = ["W1F7EY"] db_name = "scraped.db" # This is so that Deliveroo think the scraper is Google Chrome # as opposed to a web scraper hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWeb...
41.527869
107
0.614243
0
0
0
0
0
0
0
0
5,083
0.401279
fc91ef07b59bde91306bd73bcec484e360b1298a
108
py
Python
wouso/core/security/admin.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
117
2015-01-02T18:07:33.000Z
2021-01-06T22:36:25.000Z
wouso/core/security/admin.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
229
2015-01-12T07:07:58.000Z
2019-10-12T08:27:01.000Z
wouso/core/security/admin.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
96
2015-01-07T05:26:09.000Z
2020-06-25T07:28:51.000Z
from django.contrib import admin from wouso.core.security.models import Report admin.site.register(Report)
21.6
45
0.833333
0
0
0
0
0
0
0
0
0
0
fc91ff3844434233ea3b10e4ec6bd4eb042adfbd
2,455
py
Python
DataWrangling/TTNData2Gsheet_Auto.py
diliprk/SmartCityVisualization
618cd433c2f6bb55042c643ccaef12b5814ccb77
[ "MIT" ]
null
null
null
DataWrangling/TTNData2Gsheet_Auto.py
diliprk/SmartCityVisualization
618cd433c2f6bb55042c643ccaef12b5814ccb77
[ "MIT" ]
null
null
null
DataWrangling/TTNData2Gsheet_Auto.py
diliprk/SmartCityVisualization
618cd433c2f6bb55042c643ccaef12b5814ccb77
[ "MIT" ]
null
null
null
#### Reading Data from The Things Network Data and Automatically Storing it to a Google Spreadsheet # Author: Dilip Rajkumar # Email: d.rajkumar@hbksaar.de # Date: 19/01/2018 # Revision: version#1 # License: MIT License import pandas as pd import requests from df2gspread import df2gspread as d2g import time ## Set I...
41.610169
140
0.714053
0
0
0
0
0
0
0
0
1,438
0.585743
fc92382e8eb5b5b2b839d82c3970e59959dd78f5
5,870
py
Python
tests/share/normalize/test_xml.py
felliott/SHARE
8fd60ff4749349c9b867f6188650d71f4f0a1a56
[ "Apache-2.0" ]
87
2015-01-06T18:24:45.000Z
2021-08-08T07:59:40.000Z
tests/share/normalize/test_xml.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
442
2015-01-01T19:16:01.000Z
2022-03-30T21:10:26.000Z
tests/share/normalize/test_xml.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
67
2015-03-10T16:32:58.000Z
2021-11-12T16:33:41.000Z
import xmltodict from share.transform.chain import * # noqa EXAMPLE = ''' <entry> <id>http://arxiv.org/abs/cond-mat/0102536v1</id> <updated>2001-02-28T20:12:09Z</updated> <published>2001-02-28T20:12:09Z</published> <title>Impact of Electron-Electron Cusp on Configuration Interaction Energies</t...
52.410714
1,152
0.729131
2,619
0.446167
0
0
0
0
0
0
4,656
0.793186
fc92c4f874ac07a82bec9855ab06be0ea305a134
4,323
py
Python
alleycat/reactive/property.py
mysticfall/alleycat-reactive
69ff2f283627a6c613b084677be707234b29164c
[ "MIT" ]
14
2020-07-13T08:15:27.000Z
2021-02-17T21:22:22.000Z
alleycat/reactive/property.py
mysticfall/alleycat-reactive
69ff2f283627a6c613b084677be707234b29164c
[ "MIT" ]
4
2020-08-18T18:50:00.000Z
2021-12-04T07:09:12.000Z
alleycat/reactive/property.py
mysticfall/alleycat-reactive
69ff2f283627a6c613b084677be707234b29164c
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TypeVar, Generic, Callable, Optional, Any, cast, Tuple import rx from returns import pipeline from returns.functions import identity from returns.maybe import Maybe, Nothing from rx import Observable from rx.subject import BehaviorSubject from . import ReactiveVa...
30.443662
115
0.609762
3,936
0.910479
0
0
796
0.184131
0
0
239
0.055286
fc933a1a213897fe8cf98ce98bd1c72358bf800c
16,945
py
Python
sdks/python/client/openapi_client/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_dedupe.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
null
null
null
sdks/python/client/openapi_client/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_dedupe.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
3
2022-02-22T19:39:40.000Z
2022-02-28T14:34:19.000Z
sdks/python/client/openapi_client/model/github_com_argoproj_labs_argo_dataflow_api_v1alpha1_dedupe.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
null
null
null
""" Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
62.759259
2,465
0.618353
15,917
0.939333
0
0
14,171
0.836294
0
0
12,615
0.744467
fc9452d9c2ee3ebb7757e04a3373872166150cb1
3,700
py
Python
utils/mask/converter.py
csgcmai/cvat
074500de7bf638fdf66f3874b80df9e87d58a746
[ "MIT" ]
4
2019-01-12T07:32:48.000Z
2019-08-01T12:11:33.000Z
utils/mask/converter.py
csgcmai/cvat
074500de7bf638fdf66f3874b80df9e87d58a746
[ "MIT" ]
12
2019-08-06T02:45:31.000Z
2022-02-10T00:16:32.000Z
utils/mask/converter.py
csgcmai/cvat
074500de7bf638fdf66f3874b80df9e87d58a746
[ "MIT" ]
11
2018-11-04T19:04:59.000Z
2018-12-02T13:30:22.000Z
#!/usr/bin/env python # # Copyright (C) 2018 Intel Corporation # # SPDX-License-Identifier: MIT from __future__ import absolute_import, division, print_function import argparse import os import glog as log import numpy as np import cv2 from lxml import etree from tqdm import tqdm def parse_args(): """Parse argu...
31.355932
94
0.603784
0
0
0
0
0
0
0
0
807
0.218108
fc95ea517dd66fa33c7319705ecac90ffc97a9fe
2,099
py
Python
examples/plot_afq_callosal.py
gkiar/pyAFQ
fb6985c2a9715a378e1ca94dc89f6bc966c60ab5
[ "BSD-2-Clause" ]
null
null
null
examples/plot_afq_callosal.py
gkiar/pyAFQ
fb6985c2a9715a378e1ca94dc89f6bc966c60ab5
[ "BSD-2-Clause" ]
null
null
null
examples/plot_afq_callosal.py
gkiar/pyAFQ
fb6985c2a9715a378e1ca94dc89f6bc966c60ab5
[ "BSD-2-Clause" ]
null
null
null
""" ========================== Callosal bundles using AFQ API ========================== An example using the AFQ API to find callosal bundles using the templates from: http://hdl.handle.net/1773/34926 """ import os.path as op import plotly from AFQ import api from AFQ.mask import RoiMask import AFQ.data as afd ####...
34.409836
79
0.552644
0
0
0
0
0
0
0
0
1,429
0.6808
fc97538b8a2ee01ca9533565fe27426b9b8b241a
7,170
py
Python
latest/probe.py
Soldie/Nscan-scanner-ip
4a507ca97a9f8b7f3fa4766c835f108671dbbcd6
[ "Apache-2.0" ]
574
2015-01-30T13:02:42.000Z
2022-03-13T17:12:12.000Z
latest/probe.py
DiamondLink/Nscan
21a8986358107e5b86952cf9276510d14afc5ab6
[ "Apache-2.0" ]
10
2015-01-31T15:36:21.000Z
2021-11-17T10:46:33.000Z
latest/probe.py
DiamondLink/Nscan
21a8986358107e5b86952cf9276510d14afc5ab6
[ "Apache-2.0" ]
173
2015-01-30T13:05:36.000Z
2022-01-22T10:18:10.000Z
import time import Queue import random import socket import struct import logging import threading from convert import * from protocol import ethernet, ip, tcp, udp ETH_P_IP = 0x0800 # IP protocol ETH_P_ALL = 0x0003 # Every packet NSCRIPT_PATH = 'nscript' # NSCRIPT PATH PAYLOAD = { 53:('\x5d\x0d\x01\x00\x00\x01\x00...
28.228346
103
0.64728
6,039
0.842259
0
0
0
0
0
0
953
0.132915
fc991b843e076978c3f0a3ec13e52528bd5dcb1e
2,157
py
Python
parsy-backend/flaskApp/assignment/views.py
dstambler17/Parsy.io
14c4905809f79f191efbbbdfbd0e8d9e838478e7
[ "MIT" ]
null
null
null
parsy-backend/flaskApp/assignment/views.py
dstambler17/Parsy.io
14c4905809f79f191efbbbdfbd0e8d9e838478e7
[ "MIT" ]
null
null
null
parsy-backend/flaskApp/assignment/views.py
dstambler17/Parsy.io
14c4905809f79f191efbbbdfbd0e8d9e838478e7
[ "MIT" ]
null
null
null
import sys from flask import Blueprint, request, jsonify from flaskApp import db from flaskApp.assignment.utils import * from flaskApp.error.error_handlers import * import json from flaskApp.helpers import getAssignmentData assignment = Blueprint('assignment', __name__) @assignment.route('/restoreAssignment/<calID>/<...
39.944444
88
0.72369
0
0
0
0
1,708
0.791841
0
0
417
0.193324
fc992600a7f421e186b8dbe2ed6b420847313d4c
1,473
py
Python
python/patterns/slidingwindow/longest_substring_no_repeating_char.py
dharmik-thakkar/dsapatterns
fc5890a86c5d49097b73b6afd14e1a4e81cff7a0
[ "Apache-2.0" ]
null
null
null
python/patterns/slidingwindow/longest_substring_no_repeating_char.py
dharmik-thakkar/dsapatterns
fc5890a86c5d49097b73b6afd14e1a4e81cff7a0
[ "Apache-2.0" ]
null
null
null
python/patterns/slidingwindow/longest_substring_no_repeating_char.py
dharmik-thakkar/dsapatterns
fc5890a86c5d49097b73b6afd14e1a4e81cff7a0
[ "Apache-2.0" ]
null
null
null
####################################################################################################################### # Given a string, find the length of the longest substring which has no repeating characters. # # Input: String="aabccbb" # Output: 3 # Explanation: The longest substring without any repeating charact...
40.916667
119
0.620502
0
0
0
0
0
0
0
0
730
0.495587
fc998d9236fe5233cce504679e6058e6b30ca879
1,411
py
Python
Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/filter/AirportsNotInUsa.py
jrderek/Big_Data_Engineering_Portfolio
bf7a5efb24f2c6e860e5ead544dadc08f791814e
[ "MIT" ]
null
null
null
Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/filter/AirportsNotInUsa.py
jrderek/Big_Data_Engineering_Portfolio
bf7a5efb24f2c6e860e5ead544dadc08f791814e
[ "MIT" ]
null
null
null
Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/filter/AirportsNotInUsa.py
jrderek/Big_Data_Engineering_Portfolio
bf7a5efb24f2c6e860e5ead544dadc08f791814e
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '.') from pyspark import SparkContext, SparkConf from commons.Utils import Utils if __name__ == "__main__": ''' Create a Spark program to read the airport data from in/airports.text; generate a pair RDD with airport name being the key and country name being the v...
35.275
133
0.659816
0
0
0
0
0
0
0
0
798
0.565556
fc99f86b822d06474cc1888107ef3e865f27a1cd
16,668
py
Python
linux/keyman-config/keyman_config/keyboard_details.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
linux/keyman-config/keyman_config/keyboard_details.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
linux/keyman-config/keyman_config/keyboard_details.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Keyboard details window import logging import json from os import path import qrcode import tempfile import gi from gi.repository import Gtk from keyman_config import KeymanComUrl, _, secure_lookup from keyman_config.accelerators import init_accel from keyman_config.kmpmetadata import parsemeta...
45.917355
146
0.567075
15,960
0.957523
0
0
0
0
0
0
3,705
0.222282
fc9cde2fe4aa2f639814b61454d79983712258b4
918
py
Python
build_osx/copy_runtime.py
ozsolarwind/SAM
0967b0a4be8f8924ec1ad915a14575ac22c4ec3c
[ "MIT" ]
null
null
null
build_osx/copy_runtime.py
ozsolarwind/SAM
0967b0a4be8f8924ec1ad915a14575ac22c4ec3c
[ "MIT" ]
null
null
null
build_osx/copy_runtime.py
ozsolarwind/SAM
0967b0a4be8f8924ec1ad915a14575ac22c4ec3c
[ "MIT" ]
1
2019-05-21T23:16:17.000Z
2019-05-21T23:16:17.000Z
import os import shutil SOURCE_DIR = '../deploy/runtime' TARGET_DIR = 'SAM.app/Contents/runtime' if os.path.exists(TARGET_DIR): shutil.rmtree(TARGET_DIR) shutil.copytree(SOURCE_DIR, TARGET_DIR, ignore=shutil.ignore_patterns('.git')) SOURCE_DIR = '../deploy/solar_resource' TARGET_DIR = 'SAM.app/Contents/solar_re...
26.228571
78
0.769063
0
0
0
0
0
0
0
0
234
0.254902
fc9e17c4eb3df368c94743c5840b9e4da127a474
11,837
py
Python
codalab/lib/path_util.py
kl-chou/codalab-worksheets
101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7
[ "Apache-2.0" ]
236
2015-12-29T22:50:03.000Z
2022-03-28T21:12:34.000Z
codalab/lib/path_util.py
kl-chou/codalab-worksheets
101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7
[ "Apache-2.0" ]
2,628
2015-12-27T09:45:13.000Z
2022-03-30T16:18:25.000Z
codalab/lib/path_util.py
kl-chou/codalab-worksheets
101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7
[ "Apache-2.0" ]
87
2015-12-30T01:36:46.000Z
2022-03-08T15:21:30.000Z
""" path_util contains helpers for working with local filesystem paths. There are a few classes of methods provided here: Functions to normalize paths and check that they are in normal form: normalize, check_isvalid, check_isdir, check_isfile, path_is_url Functions to list directories and to deal with subpath...
35.334328
103
0.630396
0
0
0
0
0
0
0
0
5,557
0.46946
fc9e3eb40f996353595bada2ec265eba3f86bf6f
25,948
py
Python
statsmodels/regression/tests/test_glsar_gretl.py
aliavni/statsmodels
ef5d57a8d45de76a895e9401705280d558d688ad
[ "BSD-3-Clause" ]
1
2022-01-24T15:17:37.000Z
2022-01-24T15:17:37.000Z
statsmodels/regression/tests/test_glsar_gretl.py
aliavni/statsmodels
ef5d57a8d45de76a895e9401705280d558d688ad
[ "BSD-3-Clause" ]
null
null
null
statsmodels/regression/tests/test_glsar_gretl.py
aliavni/statsmodels
ef5d57a8d45de76a895e9401705280d558d688ad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Tests of GLSAR and diagnostics against Gretl Created on Thu Feb 02 21:15:47 2012 Author: Josef Perktold License: BSD-3 """ import os import numpy as np from numpy.testing import (assert_almost_equal, assert_equal, assert_allclose, assert_array_less) from stats...
40.1051
100
0.581509
16,257
0.626522
0
0
0
0
0
0
16,051
0.618583
fc9e5fe1655adc75064f69de338759361c073b11
2,563
py
Python
core/views.py
tweeprint/api.tweeprint.com
248525f2cffffb20765e7eca1e7a63f359adfc1b
[ "MIT" ]
1
2021-03-15T07:24:10.000Z
2021-03-15T07:24:10.000Z
core/views.py
tweeprint/api.tweeprint.com
248525f2cffffb20765e7eca1e7a63f359adfc1b
[ "MIT" ]
1
2021-04-11T01:22:24.000Z
2021-04-11T01:22:24.000Z
core/views.py
tweeprint/api.tweeprint.com
248525f2cffffb20765e7eca1e7a63f359adfc1b
[ "MIT" ]
null
null
null
import requests import django.contrib.auth as auth from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, JsonResponse, Http404 from django.contrib.auth.decorators import login_required from django.core.serializers import serialize from core.serializers import * from core...
46.6
188
0.717909
0
0
0
0
397
0.154897
0
0
511
0.199376
fc9e61eaa32db4519807b4a581c10259cbb744fa
342
py
Python
src/framed/bioreactor/__init__.py
cdanielmachado/framed
36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345
[ "Apache-2.0" ]
25
2015-01-07T16:17:03.000Z
2022-01-24T09:11:50.000Z
src/framed/bioreactor/__init__.py
cdanielmachado/framed
36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345
[ "Apache-2.0" ]
12
2016-02-18T12:50:09.000Z
2020-12-18T08:56:44.000Z
src/framed/bioreactor/__init__.py
cdanielmachado/framed
36d56437685cbf5c7c3c8ee4f6d85b8f05f4d345
[ "Apache-2.0" ]
14
2015-02-17T14:55:27.000Z
2021-08-09T17:57:57.000Z
from __future__ import absolute_import __author__ = 'kaizhuang' """ Package implementing features for simulating bioreactor operation. """ from .base import Organism, Bioreactor from .bioreactors import ANAEROBIC, AEROBIC, MICROAEROBIC from .bioreactors import Bioreactor_ox, IdealBatch, IdealFedbatch from framed.biore...
26.307692
66
0.821637
0
0
0
0
0
0
0
0
85
0.248538
fc9f46c8893676c05776e06d3412234d7de6b4e4
311
py
Python
shared/templates/coreos_kernel_option/template.py
deperrone/content
caaff27f01a1d6c15da461f9fafe26090e8fdd18
[ "BSD-3-Clause" ]
1,138
2018-09-05T06:31:44.000Z
2022-03-31T03:38:24.000Z
shared/templates/coreos_kernel_option/template.py
deperrone/content
caaff27f01a1d6c15da461f9fafe26090e8fdd18
[ "BSD-3-Clause" ]
4,743
2018-09-04T15:14:04.000Z
2022-03-31T23:17:57.000Z
shared/templates/coreos_kernel_option/template.py
deperrone/content
caaff27f01a1d6c15da461f9fafe26090e8fdd18
[ "BSD-3-Clause" ]
400
2018-09-08T20:08:49.000Z
2022-03-30T20:54:32.000Z
from ssg.utils import parse_template_boolean_value def preprocess(data, lang): data["arg_negate"] = parse_template_boolean_value(data, parameter="arg_negate", default_value=False) data["arg_is_regex"] = parse_template_boolean_value(data, parameter="arg_is_regex", default_value=False) return data
38.875
108
0.794212
0
0
0
0
0
0
0
0
52
0.167203
fc9fa91745bf91e0ba0d83de869daec634544f40
377
py
Python
pondus/backends/__init__.py
enicklas/pondus
c94edce0351697c96f2ad046e8f602448d2e0df0
[ "MIT" ]
1
2021-12-20T18:18:52.000Z
2021-12-20T18:18:52.000Z
pondus/backends/__init__.py
enicklas/pondus
c94edce0351697c96f2ad046e8f602448d2e0df0
[ "MIT" ]
null
null
null
pondus/backends/__init__.py
enicklas/pondus
c94edce0351697c96f2ad046e8f602448d2e0df0
[ "MIT" ]
2
2021-12-20T18:18:57.000Z
2022-01-11T10:28:22.000Z
# -*- coding: UTF-8 -*- """ This file is part of Pondus, a personal weight manager. Copyright (C) 2011 Eike Nicklas <eike@ephys.de> This program is free software licensed under the MIT license. For details see LICENSE or http://www.opensource.org/licenses/mit-license.php """ __all__ = ['csv_backend', 'sportstracker...
29
73
0.713528
0
0
0
0
0
0
0
0
342
0.907162
fca036e2b91d7c4599177ff08add5e2065d64d53
1,053
py
Python
setup.py
specialprocedures/chpy
3bbe66da96abe95653722682754b4d48f9c8eba1
[ "MIT" ]
null
null
null
setup.py
specialprocedures/chpy
3bbe66da96abe95653722682754b4d48f9c8eba1
[ "MIT" ]
null
null
null
setup.py
specialprocedures/chpy
3bbe66da96abe95653722682754b4d48f9c8eba1
[ "MIT" ]
null
null
null
import pathlib from setuptools import find_packages, setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # This call to setup() does all the work setup( name="chpy", version="0.1.1", descripti...
31.909091
81
0.633428
0
0
0
0
0
0
0
0
589
0.559354
fca03cd82b40377a907a5c97cfd27492d8e5ee1d
2,275
py
Python
src/sentry/eventtypes/error.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
null
null
null
src/sentry/eventtypes/error.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
null
null
null
src/sentry/eventtypes/error.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from sentry.utils.safe import get_path, trim from sentry.utils.strings import truncatechars from .base import BaseEvent def get_crash_location(exception, platform=None): default = None for frame in reversed(get_path(exception, 'stacktrace', 'frames', filter...
31.597222
90
0.586813
1,475
0.648352
0
0
0
0
0
0
420
0.184615
fca090b48edd697b40f1657878d06ed9d6efca81
909
py
Python
keras_en_parser_and_analyzer/library/tests/test_detect_date.py
Sultan91/keras-english-resume-parser-and-analyzer
221407cb0231e4c21f8edc61a2b19b74f9585d6a
[ "MIT" ]
null
null
null
keras_en_parser_and_analyzer/library/tests/test_detect_date.py
Sultan91/keras-english-resume-parser-and-analyzer
221407cb0231e4c21f8edc61a2b19b74f9585d6a
[ "MIT" ]
null
null
null
keras_en_parser_and_analyzer/library/tests/test_detect_date.py
Sultan91/keras-english-resume-parser-and-analyzer
221407cb0231e4c21f8edc61a2b19b74f9585d6a
[ "MIT" ]
null
null
null
from unittest import TestCase from datetime import date from keras_en_parser_and_analyzer.library.pipmp_my_cv_classify import detect_date class DetectDate(TestCase): def test_detect_date(self): dates_to_test = ['10-1990', '09/12/2020', 'jan 1990', 'feb 2012', '9-12-2020'] res = detect_date(dates_t...
36.36
86
0.669967
767
0.843784
0
0
0
0
0
0
52
0.057206
fca0ce34b50df500e879e8841c0ceca83a278655
8,333
py
Python
capirca/lib/ipset.py
google-admin/capirca
8c9e66456fedb3c0fc1c641dbefc41793e5c68d5
[ "Apache-2.0" ]
604
2015-08-08T22:44:25.000Z
2022-03-30T11:51:23.000Z
capirca/lib/ipset.py
google-admin/capirca
8c9e66456fedb3c0fc1c641dbefc41793e5c68d5
[ "Apache-2.0" ]
213
2015-08-04T20:11:22.000Z
2022-03-30T18:08:15.000Z
capirca/lib/ipset.py
google-admin/capirca
8c9e66456fedb3c0fc1c641dbefc41793e5c68d5
[ "Apache-2.0" ]
207
2015-08-07T10:55:00.000Z
2022-03-02T17:07:34.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # unless required by applicable law or a...
36.709251
80
0.657626
7,381
0.885755
0
0
0
0
0
0
4,333
0.519981
fca0fd3742b37f4cd3594891d70e849a0cb23d56
5,580
py
Python
straxen/analyses/records_matrix.py
zhut19/straxen
20dea986790ef168ba7052d652a7aa19ab836943
[ "BSD-3-Clause" ]
14
2019-06-06T21:38:05.000Z
2022-02-16T16:35:16.000Z
straxen/analyses/records_matrix.py
zhut19/straxen
20dea986790ef168ba7052d652a7aa19ab836943
[ "BSD-3-Clause" ]
613
2018-10-04T09:15:55.000Z
2022-03-31T10:48:04.000Z
straxen/analyses/records_matrix.py
ahiguera-mx/straxen
25b92dd4f18b51700e6df83b230e58ec3bbb7163
[ "BSD-3-Clause" ]
48
2019-02-01T12:40:25.000Z
2022-02-28T16:59:18.000Z
import warnings import numba import numpy as np import strax import straxen DEFAULT_MAX_SAMPLES = 20_000 @straxen.mini_analysis(requires=('records',), warn_beyond_sec=10, default_time_selection='touching') def records_matrix(records, time_range, seconds_range, config, ...
37.702703
86
0.577061
0
0
0
0
5,463
0.979032
0
0
1,993
0.357168
fca1f7c596dc848fb292eeb62a44200456a36f90
596
py
Python
bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py
entropyx/fiduchain-blockchain-interface
07336a5eebfaa9cddb148edb94461a8fd57562b1
[ "MIT" ]
null
null
null
bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py
entropyx/fiduchain-blockchain-interface
07336a5eebfaa9cddb148edb94461a8fd57562b1
[ "MIT" ]
null
null
null
bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py
entropyx/fiduchain-blockchain-interface
07336a5eebfaa9cddb148edb94461a8fd57562b1
[ "MIT" ]
null
null
null
from collections import namedtuple from cryptoconditions import crypto CryptoKeypair = namedtuple('CryptoKeypair', ('signing_key', 'verifying_key')) def generate_keypair(): """Generates a cryptographic key pair. Returns: :class:`~bigchaindb_driver.crypto.CryptoKeypair`: A :obj:`collections...
28.380952
77
0.721477
0
0
0
0
0
0
0
0
363
0.60906
fca3b5ff0625e2c4785f87d64f205243acd800d3
4,311
py
Python
reviewboard/webapi/resources/change.py
mnoorenberghe/reviewboard
b8ba9d662c250cb5ec704a50f619adbf3be8cbf0
[ "MIT" ]
null
null
null
reviewboard/webapi/resources/change.py
mnoorenberghe/reviewboard
b8ba9d662c250cb5ec704a50f619adbf3be8cbf0
[ "MIT" ]
null
null
null
reviewboard/webapi/resources/change.py
mnoorenberghe/reviewboard
b8ba9d662c250cb5ec704a50f619adbf3be8cbf0
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.utils import six from djblets.util.decorators import augment_method_from from reviewboard.changedescs.models import ChangeDescription from reviewboard.reviews.fields import get_review_request_field from reviewboard.webapi.base import WebAPIResource from reviewboard....
33.944882
78
0.64579
3,793
0.879842
0
0
370
0.085827
0
0
2,030
0.470888
fca4787d63d5c744297f12e8eaf44573826eecbb
1,990
py
Python
controllers/notes/NewNote.py
heminsatya/free_notes
88272a34c48e60d1a82e28b0b2d56883fa724bb3
[ "MIT" ]
null
null
null
controllers/notes/NewNote.py
heminsatya/free_notes
88272a34c48e60d1a82e28b0b2d56883fa724bb3
[ "MIT" ]
null
null
null
controllers/notes/NewNote.py
heminsatya/free_notes
88272a34c48e60d1a82e28b0b2d56883fa724bb3
[ "MIT" ]
null
null
null
# Dependencies from aurora import Controller, View, Forms from models import Users, Notes from aurora.security import login_required, get_session from flask import request from datetime import datetime # The controller class class NewNote(Controller): # POST Method @login_required(app='users') def post(se...
29.264706
105
0.529648
1,762
0.885427
0
0
1,688
0.848241
0
0
692
0.347739
fca52f1665be31c3ef3732af8d77d4f70b20bc49
2,762
py
Python
EDA-&-Data-Preprocessing/code.py
udayraj-gupta/ga-learner-dsmp-repo
90b16345fb3fd4f6f4f201012995eea7ff1e73e9
[ "MIT" ]
null
null
null
EDA-&-Data-Preprocessing/code.py
udayraj-gupta/ga-learner-dsmp-repo
90b16345fb3fd4f6f4f201012995eea7ff1e73e9
[ "MIT" ]
null
null
null
EDA-&-Data-Preprocessing/code.py
udayraj-gupta/ga-learner-dsmp-repo
90b16345fb3fd4f6f4f201012995eea7ff1e73e9
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #Code starts here data = pd.read_csv(path) data['Rating'].hist() data = data[data['Rating']<=5] data['Rating'].hist() #Code ends here # -------------- # code starts here total_null = data.isnull().sum...
24.442478
107
0.685373
0
0
0
0
0
0
0
0
1,162
0.42071
fca54a750bbd17151c5163b01b4d00722314de04
4,008
py
Python
openpnm/algorithms/ChargeConservation.py
rguan-uoft/OpenPNM
b3873d35270b0acaad019264368d0055c677d159
[ "MIT" ]
1
2020-02-06T19:21:20.000Z
2020-02-06T19:21:20.000Z
openpnm/algorithms/ChargeConservation.py
ChahatAggarwal/OpenPNM
b3873d35270b0acaad019264368d0055c677d159
[ "MIT" ]
null
null
null
openpnm/algorithms/ChargeConservation.py
ChahatAggarwal/OpenPNM
b3873d35270b0acaad019264368d0055c677d159
[ "MIT" ]
null
null
null
import numpy as np from openpnm.algorithms import ReactiveTransport from openpnm.models.physics import generic_source_term as gst from openpnm.utils import logging logger = logging.getLogger(__name__) class ChargeConservation(ReactiveTransport): r""" A class to enforce charge conservation in ionic transport s...
39.683168
79
0.560629
3,804
0.949102
0
0
0
0
0
0
1,998
0.498503
fca7c37bc274f186e6ec2be9680fe84ac2ca179f
2,318
py
Python
jno/commands/upload.py
Kosinkadink/jno
773806dd737c1ef0b0a89a7e4086da9c2c1260c1
[ "MIT" ]
1
2017-03-07T20:15:44.000Z
2017-03-07T20:15:44.000Z
jno/commands/upload.py
Kosinkadink/jno
773806dd737c1ef0b0a89a7e4086da9c2c1260c1
[ "MIT" ]
null
null
null
jno/commands/upload.py
Kosinkadink/jno
773806dd737c1ef0b0a89a7e4086da9c2c1260c1
[ "MIT" ]
null
null
null
from jno.util import interpret_configs from jno.util import run_arduino_process from jno.util import create_build_directory from jno.util import get_common_parameters from jno.util import verify_arduino_dir from jno.util import verify_and_get_port from jno.util import JnoException from jno.commands.command import Comma...
34.597015
118
0.718723
1,952
0.842105
0
0
0
0
0
0
830
0.358067
fca94cd64ba4f1d65d89141aae52e93be1d8a3f6
11,440
py
Python
modelling/inference_multi_attribute.py
rizwan09/hydra-sum
42088dde4e2b109fdb222ad4c329ca7bbfe9db2f
[ "BSD-3-Clause" ]
5
2021-11-12T12:03:47.000Z
2022-02-09T11:07:23.000Z
modelling/inference_multi_attribute.py
rizwan09/hydra-sum
42088dde4e2b109fdb222ad4c329ca7bbfe9db2f
[ "BSD-3-Clause" ]
null
null
null
modelling/inference_multi_attribute.py
rizwan09/hydra-sum
42088dde4e2b109fdb222ad4c329ca7bbfe9db2f
[ "BSD-3-Clause" ]
1
2021-10-22T04:20:34.000Z
2021-10-22T04:20:34.000Z
import argparse import json import logging import os import torch from transformers.file_utils import ModelOutput from typing import Dict, Optional, Tuple from torch.utils.data import DataLoader, SequentialSampler from transformers.modeling_outputs import Seq2SeqLMOutput import train_seq2seq_utils import single_head_ut...
34.878049
118
0.600699
4,418
0.386189
0
0
0
0
0
0
2,292
0.20035
fca96624113002ffa1bf51ca5fff111307a9a56b
2,199
py
Python
stp_core/common/logging/handlers.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
148
2017-07-11T19:05:25.000Z
2022-03-16T21:31:20.000Z
stp_core/common/logging/handlers.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
561
2017-06-29T17:59:56.000Z
2022-03-09T15:47:14.000Z
stp_core/common/logging/handlers.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
378
2017-06-29T17:45:27.000Z
2022-03-26T07:27:59.000Z
import logging class CallbackHandler(logging.Handler): def __init__(self, typestr, default_tags, callback, override_tags): """ Initialize the handler. """ super().__init__() self.callback = callback self.tags = default_tags self.update_tags(override_tags or ...
28.558442
71
0.530241
2,172
0.987722
0
0
0
0
0
0
254
0.115507
5d75f5d30780e5997d5df3ca87b964d9add7b705
47
py
Python
blog/migrations/__init__.py
Amohammadi2/django-SPA-blog
5dc10894ba360569b4849cfda0c3340ea5a15fb8
[ "MIT" ]
2
2020-12-14T08:46:35.000Z
2021-06-03T17:26:45.000Z
blog/migrations/__init__.py
Amohammadi2/django-SPA-blog
5dc10894ba360569b4849cfda0c3340ea5a15fb8
[ "MIT" ]
null
null
null
blog/migrations/__init__.py
Amohammadi2/django-SPA-blog
5dc10894ba360569b4849cfda0c3340ea5a15fb8
[ "MIT" ]
null
null
null
# you just need to add some informations here
23.5
46
0.765957
0
0
0
0
0
0
0
0
46
0.978723
5d77f5c8748dabbe0cc911d4482f70143a174f14
43
py
Python
amocrm_asterisk_ng/crm/amocrm/kernel/calls/call_records/file_converters/core/__init__.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/crm/amocrm/kernel/calls/call_records/file_converters/core/__init__.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/crm/amocrm/kernel/calls/call_records/file_converters/core/__init__.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
from .IFileConverter import IFileConverter
21.5
42
0.883721
0
0
0
0
0
0
0
0
0
0
5d78b08ed15d1550fa9397049ff76029d3869bce
555
py
Python
tests/blueprint/test_decorators.py
cuenca-mx/agave
d4719bdbab8e200c98d206475df6adb275e9fdcc
[ "MIT" ]
3
2020-12-11T16:48:44.000Z
2021-03-29T00:05:57.000Z
tests/blueprint/test_decorators.py
cuenca-mx/agave
d4719bdbab8e200c98d206475df6adb275e9fdcc
[ "MIT" ]
115
2020-08-26T13:26:07.000Z
2022-03-31T23:58:22.000Z
tests/blueprint/test_decorators.py
cuenca-mx/agave
d4719bdbab8e200c98d206475df6adb275e9fdcc
[ "MIT" ]
null
null
null
from functools import wraps from agave.blueprints.decorators import copy_attributes def i_am_test(func): @wraps(func) def wrapper(*args, **kwargs): return func(*args, **kwargs) wrapper.i_am_test = True return wrapper class TestResource: @i_am_test def retrieve(self) -> str: ...
19.821429
55
0.677477
88
0.158559
0
0
147
0.264865
0
0
29
0.052252
5d78de49bd48a1e6e3f364af456fa6175d8f4166
10,534
py
Python
tools/python/utils/config_parser.py
hanhan9449/mace
63feaf5055bab6a081d36edfab8f963a624899aa
[ "Apache-2.0" ]
1
2020-09-07T02:40:28.000Z
2020-09-07T02:40:28.000Z
tools/python/utils/config_parser.py
hanhan9449/mace
63feaf5055bab6a081d36edfab8f963a624899aa
[ "Apache-2.0" ]
null
null
null
tools/python/utils/config_parser.py
hanhan9449/mace
63feaf5055bab6a081d36edfab8f963a624899aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The MACE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.424837
78
0.638599
1,516
0.143915
0
0
0
0
0
0
2,924
0.277577
5d7980863ca4f07807819ec6305da79cbf107a53
14,852
py
Python
main_cross_testing_iseg.py
sami-ets/DeepNormalize
5ed53280d98a201d45bb9973e79736136273eaea
[ "MIT" ]
1
2020-05-21T20:52:48.000Z
2020-05-21T20:52:48.000Z
main_cross_testing_iseg.py
sami-ets/DeepNormalize
5ed53280d98a201d45bb9973e79736136273eaea
[ "MIT" ]
null
null
null
main_cross_testing_iseg.py
sami-ets/DeepNormalize
5ed53280d98a201d45bb9973e79736136273eaea
[ "MIT" ]
1
2020-05-21T20:52:54.000Z
2020-05-21T20:52:54.000Z
# -*- coding: utf-8 -*- # Copyright 2019 Pierre-Luc Delisle. All Rights Reserved. # # Licensed under the MIT License; # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/MIT # # Unless required by applicable law or agreed t...
52.295775
133
0.637961
0
0
0
0
0
0
0
0
1,568
0.105575
5d799babef8aac803fb3da8b5588e54e7c3ffd6d
10,137
py
Python
docs/10.level3_demo_streaming/pc_server/server.py
FaBoPlatform/RobotCarAI
c89d3330a2beda0f253733d3252b2b035b153b6b
[ "Apache-2.0" ]
10
2017-12-27T20:51:26.000Z
2020-05-27T05:29:13.000Z
docs/10.level3_demo_streaming/pc_server/server.py
FaBoPlatform/RobotCarAI
c89d3330a2beda0f253733d3252b2b035b153b6b
[ "Apache-2.0" ]
null
null
null
docs/10.level3_demo_streaming/pc_server/server.py
FaBoPlatform/RobotCarAI
c89d3330a2beda0f253733d3252b2b035b153b6b
[ "Apache-2.0" ]
3
2017-12-27T20:51:30.000Z
2019-03-15T02:49:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ClientからOpenCV画像データを受け取り、ライン検出して制御命令を送る # Server: Jetson TX2 # Client: Jetson TX2/Raspberry Pi3 Docker # 1. FFMPEG UDP StreamingをClientで実行する。AWS向け10FPS,Jetson TX2向け1FPS # 2. Serverを起動する # 3. Clientを起動する # コード修正 # lib/camera.py: vid = cv2.VideoCapture()を環境に合わせて修正する必要がある # ...
32.594855
169
0.487126
0
0
0
0
0
0
0
0
3,758
0.334252
5d79ef8df5146da3723b7ca2139e31f87b3fe948
5,498
py
Python
client.py
zackorndorff/revsync
17255aebd281edffb3f3330c21cda00039bc51a3
[ "MIT" ]
94
2017-05-13T05:39:06.000Z
2022-01-11T18:14:54.000Z
client.py
zackorndorff/revsync
17255aebd281edffb3f3330c21cda00039bc51a3
[ "MIT" ]
5
2020-06-11T19:09:43.000Z
2021-05-01T05:01:55.000Z
client.py
zackorndorff/revsync
17255aebd281edffb3f3330c21cda00039bc51a3
[ "MIT" ]
25
2017-05-13T18:15:23.000Z
2022-02-03T22:32:41.000Z
from collections import defaultdict import json import re import redis import threading import time import traceback import uuid import base64 import binascii TTL = 2 hash_keys = ('cmd', 'user') cmd_hash_keys = { 'comment': ('addr',), 'extra_comment': ('addr',), 'area_comment': ('addr',), 'rename': ('...
34.797468
101
0.483812
4,188
0.761732
0
0
0
0
0
0
761
0.138414
5d7c0c4ed976d906f1c11a70f28b08240f91a61e
1,109
py
Python
ontask/condition/urls.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/condition/urls.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/condition/urls.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# -*- coding: utf-8 -*- """URLs to manipulate columns.""" from django.urls import path from ontask.condition import views app_name = 'condition' urlpatterns = [ # # FILTERS # path( '<int:pk>/create_filter/', views.FilterCreateView.as_view(), name='create_filter'), path('<...
23.595745
79
0.598738
0
0
0
0
0
0
0
0
467
0.4211
5d7c6de5b4a074a83b3f637a428933b749ec22a8
13,437
py
Python
VideoClassification/SegmentLevelClassifier/model.py
googleinterns/via-content-understanding
ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09
[ "Apache-2.0" ]
1
2020-05-22T14:51:28.000Z
2020-05-22T14:51:28.000Z
VideoClassification/SegmentLevelClassifier/model.py
googleinterns/via-content-understanding
ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09
[ "Apache-2.0" ]
4
2020-05-31T21:57:44.000Z
2020-07-23T23:32:52.000Z
VideoClassification/SegmentLevelClassifier/model.py
googleinterns/via-content-understanding
ca12ebe6aa4da16224a8ca86dc45aaaaa7cfda09
[ "Apache-2.0" ]
1
2020-05-19T17:28:10.000Z
2020-05-19T17:28:10.000Z
"""Copyright 2020 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
39.520588
172
0.723599
12,784
0.951403
0
0
0
0
0
0
5,219
0.388405
5d7cd2c4d715d5bc952ad3e374f1d2268aa25788
310
py
Python
ivy/functional/backends/jax/old/math.py
faruq2021/ivy
1b24beadbd673d6a9dd504e037c68547e5640627
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/jax/old/math.py
faruq2021/ivy
1b24beadbd673d6a9dd504e037c68547e5640627
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/jax/old/math.py
faruq2021/ivy
1b24beadbd673d6a9dd504e037c68547e5640627
[ "Apache-2.0" ]
null
null
null
""" Collection of Jax math functions, wrapped to fit Ivy syntax and signature. """ # global import jax as _jax import jax.numpy as _jnp tan = _jnp.tan acos = _jnp.arccos atan = _jnp.arctan atan2 = _jnp.arctan2 cosh = _jnp.cosh atanh = _jnp.arctanh log = _jnp.log exp = _jnp.exp erf = _jax.scipy.special.erf
16.315789
74
0.729032
0
0
0
0
0
0
0
0
90
0.290323
5d7ce8af330d95b04a5584c878164fe2af01973b
8,279
py
Python
neaten_db.py
Adoni/ZhihuCrawler
c275192ced3a344d7b93b7cfd3ebf87ed179400d
[ "MIT" ]
null
null
null
neaten_db.py
Adoni/ZhihuCrawler
c275192ced3a344d7b93b7cfd3ebf87ed179400d
[ "MIT" ]
null
null
null
neaten_db.py
Adoni/ZhihuCrawler
c275192ced3a344d7b93b7cfd3ebf87ed179400d
[ "MIT" ]
null
null
null
from pymongo import MongoClient from pyltp import Segmentor def insert_questions_from_answered_question(): in_db = MongoClient().zhihu.user_answered_questions out_db = MongoClient().zhihu_network.questions existed_question_id = set(map(lambda q: q['_id'], out_db.find())) segmentor = Segmentor() se...
39.42381
77
0.595603
0
0
0
0
0
0
0
0
1,564
0.188912
5d7d4f2cec08d8e71851176546c2923392d1f51a
7,675
py
Python
test/tst_vlen.py
timgates42/netcdf4-python
d8b1cb11454f9beec674a29904c91f48db608c2c
[ "MIT" ]
574
2015-01-16T02:21:19.000Z
2022-03-27T14:05:55.000Z
test/tst_vlen.py
timgates42/netcdf4-python
d8b1cb11454f9beec674a29904c91f48db608c2c
[ "MIT" ]
681
2015-01-02T20:26:17.000Z
2022-03-24T00:59:15.000Z
test/tst_vlen.py
timgates42/netcdf4-python
d8b1cb11454f9beec674a29904c91f48db608c2c
[ "MIT" ]
257
2015-01-20T16:42:17.000Z
2022-03-29T03:49:37.000Z
import sys import unittest import os import tempfile from netCDF4 import Dataset import numpy as np from numpy.testing import assert_array_equal FILE_NAME = tempfile.NamedTemporaryFile(suffix='.nc', delete=False).name VL_NAME = 'vlen_type' VL_BASETYPE = np.int16 DIM1_NAME = 'lon' DIM2_NAME = 'lat' nlons = 5; nlats = 5...
33.515284
86
0.580456
6,858
0.89355
0
0
0
0
0
0
1,252
0.163127
5d7e286fce65b02bbb505a551034d0638886042d
2,764
py
Python
sonnet/src/once.py
ScriptBox99/deepmind-sonnet
5cbfdc356962d9b6198d5b63f0826a80acfdf35b
[ "Apache-2.0" ]
10,287
2017-04-07T12:33:37.000Z
2022-03-30T03:32:16.000Z
sonnet/src/once.py
ScriptBox99/deepmind-sonnet
5cbfdc356962d9b6198d5b63f0826a80acfdf35b
[ "Apache-2.0" ]
209
2017-04-07T15:57:11.000Z
2022-03-27T10:43:03.000Z
sonnet/src/once.py
ScriptBox99/deepmind-sonnet
5cbfdc356962d9b6198d5b63f0826a80acfdf35b
[ "Apache-2.0" ]
1,563
2017-04-07T13:15:06.000Z
2022-03-29T15:26:04.000Z
# Copyright 2019 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
28.494845
87
0.634949
0
0
0
0
650
0.235166
0
0
1,968
0.712012
5d7e5adfacc7c05430120bb4ddda519a5d8edcca
9,774
py
Python
env.py
DGarciaMedina/PiArmDiego
cb4664796aa99b0717145f9e4889bfba5190059f
[ "MIT" ]
null
null
null
env.py
DGarciaMedina/PiArmDiego
cb4664796aa99b0717145f9e4889bfba5190059f
[ "MIT" ]
null
null
null
env.py
DGarciaMedina/PiArmDiego
cb4664796aa99b0717145f9e4889bfba5190059f
[ "MIT" ]
null
null
null
import piarm import time import numpy as np import cv2 import random class MyArm2D: def __init__(self, move_robot = False): self.move_robot = move_robot if self.move_robot: self.robot = piarm.PiArm() self.open_connection() self.DEFAULT = [500, 500, 500, 500, 5...
32.151316
137
0.563024
9,693
0.99151
0
0
0
0
0
0
1,140
0.116612
5d7e67724340bd64fb013a94027277d42f8215af
10,105
py
Python
src/python/src/grpc/_adapter/_links_test.py
jonywtf/grpc
124f3c5a4b65bb88f13be7c68482eb83d945ad02
[ "BSD-3-Clause" ]
1
2022-01-14T04:25:01.000Z
2022-01-14T04:25:01.000Z
src/python/src/grpc/_adapter/_links_test.py
jonywtf/grpc
124f3c5a4b65bb88f13be7c68482eb83d945ad02
[ "BSD-3-Clause" ]
null
null
null
src/python/src/grpc/_adapter/_links_test.py
jonywtf/grpc
124f3c5a4b65bb88f13be7c68482eb83d945ad02
[ "BSD-3-Clause" ]
1
2022-01-14T04:25:02.000Z
2022-01-14T04:25:02.000Z
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
40.42
80
0.740129
8,104
0.801979
0
0
0
0
0
0
1,635
0.161801
5d7f67f5f4955fd254f6885d027ea817e96c1e91
620
py
Python
tests/_test_progress_board.py
stjordanis/Hyperactive
5acf247d8023ff6761593b9d0954bdd912d20aed
[ "MIT" ]
382
2019-07-16T13:30:15.000Z
2022-03-30T22:29:07.000Z
tests/_test_progress_board.py
stjordanis/Hyperactive
5acf247d8023ff6761593b9d0954bdd912d20aed
[ "MIT" ]
46
2019-08-27T18:07:47.000Z
2022-03-16T16:28:10.000Z
tests/_test_progress_board.py
stjordanis/Hyperactive
5acf247d8023ff6761593b9d0954bdd912d20aed
[ "MIT" ]
35
2019-08-03T00:51:09.000Z
2021-12-03T19:06:07.000Z
import os, glob import subprocess from subprocess import DEVNULL, STDOUT abspath = os.path.abspath(__file__) dir_ = os.path.dirname(abspath) files = glob.glob(dir_ + "/_progress_board_tests/_test_progress_board_*.py") for file_path in files: file_name = str(file_path.rsplit("/", maxsplit=1)[1]) try: ...
29.52381
83
0.68871
0
0
0
0
0
0
0
0
142
0.229032
5d7f92bfcfd4bf66faaae6ec55c26244db6de591
8,695
py
Python
pages/forest_pages.py
jhalljhall/beiwe-backend
06d28926a2830c7ad53c32ec41ff49320932aeed
[ "BSD-3-Clause" ]
1
2022-03-09T03:20:37.000Z
2022-03-09T03:20:37.000Z
pages/forest_pages.py
jhalljhall/beiwe-backend
06d28926a2830c7ad53c32ec41ff49320932aeed
[ "BSD-3-Clause" ]
null
null
null
pages/forest_pages.py
jhalljhall/beiwe-backend
06d28926a2830c7ad53c32ec41ff49320932aeed
[ "BSD-3-Clause" ]
null
null
null
import csv import datetime from collections import defaultdict from django.contrib import messages from django.http.response import FileResponse from django.shortcuts import redirect, render from django.utils import timezone from django.views.decorators.http import require_GET, require_http_methods, require_POST from...
36.533613
105
0.702588
137
0.015756
340
0.039103
6,078
0.699022
0
0
1,222
0.140541
5d7fb293f532babd1479825528080b1664689540
6,138
py
Python
data_scout/transformations/math_custom.py
janthiemen/data_scout
6366eedfb20ed429bc96100de4dd2c7409e5dd88
[ "MIT" ]
null
null
null
data_scout/transformations/math_custom.py
janthiemen/data_scout
6366eedfb20ed429bc96100de4dd2c7409e5dd88
[ "MIT" ]
null
null
null
data_scout/transformations/math_custom.py
janthiemen/data_scout
6366eedfb20ed429bc96100de4dd2c7409e5dd88
[ "MIT" ]
null
null
null
from __future__ import division from .transformation import Transformation from pyparsing import (Literal, CaselessLiteral, Word, Combine, Group, Optional, ZeroOrMore, Forward, nums, alphas, oneOf) import math import re import operator __author__ = 'Paul McGuire' __version__ = '$Revision: 0.0 $...
37.2
144
0.515477
5,524
0.899967
0
0
0
0
0
0
2,036
0.331704
5d8266dee4d58a4d6dfa39e78c02bb8ed2be2717
6,261
py
Python
project/cloudmesh-storage/cloudmesh/vdir/api/manager.py
cybertraining-dsc/fa19-516-171
1dba8cde09f7b05c80557ea7ae462161c590568b
[ "Apache-2.0" ]
null
null
null
project/cloudmesh-storage/cloudmesh/vdir/api/manager.py
cybertraining-dsc/fa19-516-171
1dba8cde09f7b05c80557ea7ae462161c590568b
[ "Apache-2.0" ]
2
2019-12-02T03:11:42.000Z
2021-02-08T20:37:15.000Z
project/cloudmesh-storage/cloudmesh/vdir/api/manager.py
cybertraining-dsc/fa19-516-171
1dba8cde09f7b05c80557ea7ae462161c590568b
[ "Apache-2.0" ]
2
2019-09-10T00:56:11.000Z
2020-05-05T02:54:31.000Z
# # this manager stores directly into the db wit Database update from cloudmesh.mongo.DataBaseDecorator import DatabaseUpdate from cloudmesh.mongo.CmDatabase import CmDatabase from cloudmesh.common.console import Console from cloudmesh.storage.Provider import Provider import os from datetime import datetime class Vd...
40.921569
119
0.50008
5,948
0.950008
0
0
2,283
0.364638
0
0
1,113
0.177767
5d830daa46eeb8bf91aea2f52e4b5f3c2d74b15e
2,605
py
Python
redash/query_runner/influx_db.py
cjpit/redash
27aafdb07e3a427da8f88d55a0c0d7cc64379da2
[ "BSD-2-Clause" ]
1
2018-09-13T13:50:17.000Z
2018-09-13T13:50:17.000Z
redash/query_runner/influx_db.py
cjpit/redash
27aafdb07e3a427da8f88d55a0c0d7cc64379da2
[ "BSD-2-Clause" ]
null
null
null
redash/query_runner/influx_db.py
cjpit/redash
27aafdb07e3a427da8f88d55a0c0d7cc64379da2
[ "BSD-2-Clause" ]
1
2018-10-25T12:09:32.000Z
2018-10-25T12:09:32.000Z
import json import logging from redash.query_runner import * from redash.utils import JSONEncoder logger = logging.getLogger(__name__) try: from influxdb import InfluxDBClusterClient enabled = True except ImportError: enabled = False def _transform_result(results): result_columns = [] result_r...
26.313131
74
0.542035
1,113
0.427255
0
0
435
0.166987
0
0
233
0.089443
5d83ad6cff3db1b6e4ae4b1be6ce413b57641a09
9,537
py
Python
ics/mergeGatingSets.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
5
2015-12-16T01:23:07.000Z
2020-04-27T11:41:43.000Z
ics/mergeGatingSets.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
1
2021-05-06T23:47:20.000Z
2021-05-06T23:48:33.000Z
ics/mergeGatingSets.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
6
2016-04-29T14:04:22.000Z
2021-05-06T23:49:34.000Z
#!/usr/bin/env python """ Usage examples: python /home/agartlan/gitrepo/utils/ics/mergeGatingSets.py --function functions --ncpus 4 --out functions_extract.csv sbatch -n 1 -t 3-0 -c 4 -o functions_slurm.txt --wrap="python /home/agartlan/gitrepo/utils/ics/mergeGatingSets.py --function functions --ncpus 4 --out functio...
52.401099
284
0.554996
0
0
0
0
0
0
0
0
3,452
0.361959
5d84d543ecd3e19e8c3f8af82dd1e6cc5ea16443
88
py
Python
meeting.py
zoni/ulauncher-meet
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
[ "MIT" ]
4
2021-04-30T21:39:03.000Z
2021-08-30T11:38:21.000Z
meeting.py
zoni/ulauncher-meet
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
[ "MIT" ]
1
2021-05-31T11:05:37.000Z
2021-05-31T11:05:37.000Z
meeting.py
zoni/ulauncher-meet
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
[ "MIT" ]
2
2021-05-07T09:47:20.000Z
2021-08-25T16:27:24.000Z
from dataclasses import dataclass @dataclass class Meeting: name: str id: str
11
33
0.715909
40
0.454545
0
0
51
0.579545
0
0
0
0
5d85c596f37801463f956fbf7ef5af170636decb
1,000
py
Python
setup.py
uuosio/uuosio.gscdk
a2e364d4499c1372567aa5933e2d8e02340a8385
[ "BSD-3-Clause" ]
6
2021-09-03T09:02:39.000Z
2022-01-12T06:31:09.000Z
setup.py
uuosio/uuosio.gscdk
a2e364d4499c1372567aa5933e2d8e02340a8385
[ "BSD-3-Clause" ]
1
2021-11-01T16:46:09.000Z
2021-11-04T12:51:45.000Z
setup.py
uuosio/uuosio.gscdk
a2e364d4499c1372567aa5933e2d8e02340a8385
[ "BSD-3-Clause" ]
2
2021-11-10T01:56:15.000Z
2022-01-13T14:27:31.000Z
import os import shutil import setuptools # from skbuild import setup from distutils.core import setup from distutils.sysconfig import get_python_lib import glob # if os.path.exists('pysrc/tinygo'): # shutil.rmtree('pysrc/tinygo') # shutil.copytree('tinygo/build/release/tinygo', 'pysrc/tinygo') release_files = ...
24.390244
77
0.658
0
0
0
0
0
0
0
0
490
0.49
5d861ae24ab41a343997586ea4f68f7cd661d4d3
301
py
Python
tests/data_creator_action.py
michalurbanski/bkgames
69b1d16ae27d3118dd78449ce7deecbd6e1b95e7
[ "MIT" ]
null
null
null
tests/data_creator_action.py
michalurbanski/bkgames
69b1d16ae27d3118dd78449ce7deecbd6e1b95e7
[ "MIT" ]
null
null
null
tests/data_creator_action.py
michalurbanski/bkgames
69b1d16ae27d3118dd78449ce7deecbd6e1b95e7
[ "MIT" ]
null
null
null
from typing import Callable class DataCreatorAction: def __init__(self, func: Callable, priority_for_creation: int = 99, priority_for_removal: int = 99): self.func = func self.priority_for_creation = priority_for_creation self.priority_for_removal = priority_for_removal
33.444444
104
0.750831
270
0.89701
0
0
0
0
0
0
0
0
5d8772d2443bc37d077b4e1088b8652b560de433
387
py
Python
Python/Numpy/Min and Max/min_and_max.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
2
2020-05-28T07:15:00.000Z
2020-07-21T08:34:06.000Z
Python/Numpy/Min and Max/min_and_max.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
Python/Numpy/Min and Max/min_and_max.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
import numpy as np if __name__ == '__main__': h, w = map( int, input().split() ) row_list = [] for i in range(h): single_row = list( map(int, input().split() ) ) np_row = np.array( single_row ) row_list.append( np_row ) min_of_each_row = np.min( row_list, axis = 1) ...
15.48
56
0.573643
0
0
0
0
0
0
0
0
10
0.02584
5d87b775f0d8dfc2c8f2bb9538693bb8aa0d1ec6
22,757
py
Python
allure/pytest_plugin.py
allure-framework/allure-pytest
d55180aaeb21233e7ca577ffc6f67a07837c63f2
[ "Apache-2.0" ]
112
2017-01-24T21:37:49.000Z
2022-03-25T22:32:12.000Z
venv/Lib/site-packages/allure/pytest_plugin.py
Arthii01052/conduit
3427d76d0fa364cb5d19bdd6da4aeb0a22fe9660
[ "MIT" ]
56
2017-01-21T20:01:41.000Z
2019-01-14T13:35:53.000Z
venv/Lib/site-packages/allure/pytest_plugin.py
Arthii01052/conduit
3427d76d0fa364cb5d19bdd6da4aeb0a22fe9660
[ "MIT" ]
52
2017-01-23T13:40:40.000Z
2022-03-30T00:02:31.000Z
import uuid import pickle import pytest import argparse from collections import namedtuple from six import text_type from allure.common import AllureImpl, StepContext from allure.constants import Status, AttachmentType, Severity, \ FAILED_STATUSES, Label, SKIPPED_STATUSES from allure.utils import parent_module, p...
39.168675
183
0.572483
17,816
0.78288
4,311
0.189436
4,792
0.210573
0
0
8,792
0.386343
5d88a4a57aa7fe412e25b74cc37254832f74121b
1,113
py
Python
treenode/debug.py
domlysi/django-treenode
86e7c76e2b2d60c071cfce6ad1493b2b51f2d304
[ "MIT" ]
null
null
null
treenode/debug.py
domlysi/django-treenode
86e7c76e2b2d60c071cfce6ad1493b2b51f2d304
[ "MIT" ]
null
null
null
treenode/debug.py
domlysi/django-treenode
86e7c76e2b2d60c071cfce6ad1493b2b51f2d304
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.db import connection import logging import timeit logger = logging.getLogger(__name__) class debug_performance(object): def __init__(self, message_prefix=''): super(debug_performance, self).__init__() self.__message_prefix =...
26.5
74
0.637017
950
0.853549
0
0
149
0.133872
0
0
69
0.061995
5d8a580c6383e0fa95c751c549eb6cc5184e491f
3,705
py
Python
String_tool.py
vibhorvk/BlendString
3bf62083716b3b1f4976abeb3528771eeb79e2cf
[ "MIT" ]
null
null
null
String_tool.py
vibhorvk/BlendString
3bf62083716b3b1f4976abeb3528771eeb79e2cf
[ "MIT" ]
null
null
null
String_tool.py
vibhorvk/BlendString
3bf62083716b3b1f4976abeb3528771eeb79e2cf
[ "MIT" ]
null
null
null
bl_info = { "name": "STRING", "blender": (2, 80, 0), "category": "Object", 'Author' : 'Vibhor Gupta' } import bpy import bmesh class STRING(bpy.types.Operator): """My Object Moving Script""" # Use this as a tooltip for menu items and buttons. bl_idname = "object.stringtool_o...
29.879032
107
0.515789
3,208
0.865857
0
0
0
0
0
0
963
0.259919
5d8b272fb8d2699d2cf3ea1fd7de71c67f398d16
1,130
py
Python
Code/DataHandlers/__init__.py
aricsanders/pyMez3
13e2b9900af2287db0cc42a0190d31da165ce174
[ "Unlicense" ]
2
2017-01-29T00:46:01.000Z
2017-07-25T17:23:04.000Z
Code/DataHandlers/__init__.py
aricsanders/pyMez3
13e2b9900af2287db0cc42a0190d31da165ce174
[ "Unlicense" ]
1
2019-08-02T03:59:41.000Z
2019-08-02T03:59:41.000Z
Code/DataHandlers/__init__.py
aricsanders/pyMez3
13e2b9900af2287db0cc42a0190d31da165ce174
[ "Unlicense" ]
null
null
null
""" The DataHandlers subpackage is designed to manipulate data, by allowing different data types to be opened, created, saved and updated. The subpackage is further divided into modules grouped by a common theme. Classes for data that are already on disk normally follows the following pattern: `instance=ClassName(file_...
25.681818
118
0.70531
0
0
0
0
0
0
0
0
1,125
0.995575
5d8ca67bf97053442519e2fbb8cf359ecbb33654
228
py
Python
djangomail/backends/dummy.py
somenzz/djangomail
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
[ "MIT" ]
1
2021-06-01T07:51:18.000Z
2021-06-01T07:51:18.000Z
djangomail/backends/dummy.py
somenzz/djangomail
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
[ "MIT" ]
null
null
null
djangomail/backends/dummy.py
somenzz/djangomail
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
[ "MIT" ]
1
2022-01-24T13:38:14.000Z
2022-01-24T13:38:14.000Z
""" Dummy email backend that does nothing. """ from djangomail.backends.base import BaseEmailBackend class EmailBackend(BaseEmailBackend): def send_messages(self, email_messages): return len(list(email_messages))
20.727273
53
0.763158
123
0.539474
0
0
0
0
0
0
46
0.201754
5d8ccdbb74a4a8ff8a56e579b885b0bbd0743a4f
7,666
py
Python
awx/plugins/library/scan_services.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
17
2021-04-03T01:40:17.000Z
2022-03-03T11:45:20.000Z
awx/plugins/library/scan_services.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
24
2021-05-18T21:13:35.000Z
2022-03-29T10:23:52.000Z
awx/plugins/library/scan_services.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
14
2021-04-06T20:05:41.000Z
2022-03-24T14:16:03.000Z
#!/usr/bin/env python import re from ansible.module_utils.basic import * # noqa DOCUMENTATION = ''' --- module: scan_services short_description: Return service state information as fact data description: - Return service state information as fact data for various service management utilities version_added: "1.9"...
40.136126
155
0.530655
5,913
0.771328
0
0
0
0
0
0
2,295
0.299374
5d8cdce66649554dda1ee6deb1afd812b2f3ebbf
2,146
py
Python
app.py
duckm8795/runscope-circleci
2fd42e64bddb4b8f34c437c2d834b92369c9a2bf
[ "Apache-2.0" ]
null
null
null
app.py
duckm8795/runscope-circleci
2fd42e64bddb4b8f34c437c2d834b92369c9a2bf
[ "Apache-2.0" ]
null
null
null
app.py
duckm8795/runscope-circleci
2fd42e64bddb4b8f34c437c2d834b92369c9a2bf
[ "Apache-2.0" ]
null
null
null
import requests import sys import time import os def main(): trigger_url = sys.argv[1] trigger_resp = requests.get(trigger_url) if trigger_resp.ok: trigger_json = trigger_resp.json().get("data", {}) test_runs = trigger_json.get("runs", []) print ("Started {} test runs.".format(l...
31.101449
154
0.605312
0
0
0
0
0
0
0
0
691
0.321994
5d8dbbff6df38e6773044260538db7a759525964
16,585
py
Python
spyse/client.py
fabaff/spyse-python
f286514ac052ebe6fa98f877d251d8f3cd4db1c4
[ "MIT" ]
9
2021-07-28T11:59:07.000Z
2022-02-17T02:25:06.000Z
spyse/client.py
fabaff/spyse-python
f286514ac052ebe6fa98f877d251d8f3cd4db1c4
[ "MIT" ]
2
2021-11-27T02:03:03.000Z
2022-02-02T11:33:34.000Z
spyse/client.py
fabaff/spyse-python
f286514ac052ebe6fa98f877d251d8f3cd4db1c4
[ "MIT" ]
7
2021-08-05T04:02:09.000Z
2022-03-04T14:11:04.000Z
import requests from typing import List, Optional from .models import AS, Domain, IP, CVE, Account, Certificate, Email, DNSHistoricalRecord, WHOISHistoricalRecord from .response import Response from .search_query import SearchQuery from limiter import get_limiter, limit class DomainsSearchResults: def __init__(s...
42.308673
117
0.662466
16,286
0.981972
0
0
0
0
0
0
3,546
0.213808
5d8e72c2a2b92c4afc6d55b1c762592baf4c02a2
147
py
Python
talleres_inov_docente/figures/plot_helpers.py
jfcaballero/Tutorial-sobre-scikit-learn-abreviado
1e2aa1f9132c277162135a5463068801edab8d15
[ "CC0-1.0" ]
576
2016-03-20T10:05:58.000Z
2022-03-20T05:58:32.000Z
talleres_inov_docente/figures/plot_helpers.py
jfcaballero/Tutorial-sobre-scikit-learn-abreviado
1e2aa1f9132c277162135a5463068801edab8d15
[ "CC0-1.0" ]
64
2016-03-20T08:56:49.000Z
2019-03-13T15:37:55.000Z
talleres_inov_docente/figures/plot_helpers.py
jfcaballero/Tutorial-sobre-scikit-learn-abreviado
1e2aa1f9132c277162135a5463068801edab8d15
[ "CC0-1.0" ]
570
2016-03-20T19:23:07.000Z
2021-12-12T12:22:14.000Z
from matplotlib.colors import ListedColormap cm3 = ListedColormap(['#0000aa', '#ff2020', '#50ff50']) cm2 = ListedColormap(['#0000aa', '#ff2020'])
29.4
55
0.707483
0
0
0
0
0
0
0
0
45
0.306122
5d8e73966f8c10521ed6c383e9307e6cc3d33a3d
612
py
Python
Applications/FlaskApp/errorpages.py
cemac-ccs/FlaskMWE
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
[ "MIT" ]
null
null
null
Applications/FlaskApp/errorpages.py
cemac-ccs/FlaskMWE
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
[ "MIT" ]
null
null
null
Applications/FlaskApp/errorpages.py
cemac-ccs/FlaskMWE
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
[ "MIT" ]
null
null
null
from flask import render_template # Error Pages ---------------------------------------------------------------- def page_not_found(e): # note that we set the 404 status explicitly return render_template('404.html.j2'), 404 def page_not_allowed(e): # note that we set the 403 status explicitly return ...
27.818182
78
0.637255
0
0
0
0
0
0
0
0
261
0.426471
5d8e9f525045331a16efdc9df5a7b8042480b89c
1,118
py
Python
cppgym/ToyText/BlackJack.py
anhydrous99/cppgym
0b1009a74faebfe5a31bcfd6a86c74cf13464d56
[ "MIT" ]
null
null
null
cppgym/ToyText/BlackJack.py
anhydrous99/cppgym
0b1009a74faebfe5a31bcfd6a86c74cf13464d56
[ "MIT" ]
1
2021-01-03T10:21:36.000Z
2021-01-26T03:59:07.000Z
cppgym/ToyText/BlackJack.py
anhydrous99/cppgym
0b1009a74faebfe5a31bcfd6a86c74cf13464d56
[ "MIT" ]
null
null
null
from .._BlackJack import BlackJackCPP import gym import ctypes import numpy as np from gym import spaces class BlackJack(gym.Env): def __init__(self, natural=False): self.env = BlackJackCPP(natural) self.action_space = spaces.Discrete(2) self.observation_space = spaces.Tuple(( ...
26.619048
53
0.593918
1,009
0.902504
0
0
0
0
0
0
7
0.006261
5d8f21c23f88e0ce2aa150c385f666597b203749
5,827
py
Python
sdks/python/apache_beam/runners/direct/consumer_tracking_pipeline_visitor_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-07-27T11:54:33.000Z
2021-06-06T11:53:36.000Z
sdks/python/apache_beam/runners/direct/consumer_tracking_pipeline_visitor_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
12
2019-04-15T15:27:23.000Z
2019-07-01T18:13:10.000Z
sdks/python/apache_beam/runners/direct/consumer_tracking_pipeline_visitor_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-06-03T19:54:48.000Z
2021-06-03T19:54:48.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...
35.530488
105
0.727476
4,129
0.708598
1,337
0.229449
0
0
0
0
1,365
0.234254
5d8fd5fa2bcd3f5669762aabbd18717b761f3d16
30,184
py
Python
gluon/main.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
21
2018-02-16T17:43:59.000Z
2021-12-29T12:08:28.000Z
gluon/main.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
12
2017-11-01T14:54:29.000Z
2018-02-01T22:02:12.000Z
gluon/main.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
8
2018-10-08T03:48:00.000Z
2022-03-31T12:13:01.000Z
#!/bin/env python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) The gluon wsgi application --------------------------- """ from __future__ import print_function if Fals...
37.919598
117
0.52286
6,043
0.200205
0
0
289
0.009575
0
0
10,218
0.338524
5d90667a56cb7c978d1072b2a27a14dbab5c4dfc
3,798
py
Python
agents/EWPublisherAgent.py
marc4gov/tokenspice2
1993383674f35b20e11e54606b3dac8e4c05c0f9
[ "Apache-2.0" ]
1
2021-01-12T08:06:21.000Z
2021-01-12T08:06:21.000Z
agents/EWPublisherAgent.py
marc4gov/tokenspice2
1993383674f35b20e11e54606b3dac8e4c05c0f9
[ "Apache-2.0" ]
null
null
null
agents/EWPublisherAgent.py
marc4gov/tokenspice2
1993383674f35b20e11e54606b3dac8e4c05c0f9
[ "Apache-2.0" ]
null
null
null
import logging log = logging.getLogger('marketagents') from enforce_typing import enforce_types # type: ignore[import] import random from agents.PublisherAgent import PublisherAgent from agents.PoolAgent import PoolAgent from util import constants from util.constants import POOL_WEIGHT_DT, POOL_WEIGHT_OCEAN from web3...
37.98
80
0.662191
3,347
0.881253
0
0
3,362
0.885203
0
0
398
0.104792
5d922c20991f9207f7464898983a068c11cac2a8
1,625
py
Python
lcls_orbit/__init__.py
slaclab/lcls-orbit
e2b8738c4af2dfed40fce4b898bf9b2a820d5f56
[ "BSD-3-Clause-LBNL" ]
null
null
null
lcls_orbit/__init__.py
slaclab/lcls-orbit
e2b8738c4af2dfed40fce4b898bf9b2a820d5f56
[ "BSD-3-Clause-LBNL" ]
null
null
null
lcls_orbit/__init__.py
slaclab/lcls-orbit
e2b8738c4af2dfed40fce4b898bf9b2a820d5f56
[ "BSD-3-Clause-LBNL" ]
1
2021-11-16T01:03:53.000Z
2021-11-16T01:03:53.000Z
import numpy as np from . import _version __version__ = _version.get_versions()['version'] HXR_COLORS = ("#000000", "#02004a", "#030069", "#04008f", "#0500b3", "#0700ff") SXR_COLORS = ("#000000", "#330000", "#520000", "#850000", "#ad0000", "#ff0000") HXR_AREAS = { "GUN" : [2017.911, 2018.712], "L0" : [2018....
30.660377
79
0.563077
0
0
0
0
0
0
0
0
331
0.203692
5d930df4a535163668fcaae7a75a25d2de903db1
13,123
py
Python
tests/test_optimizers_v2/test_optimizers_v2.py
OverLordGoldDragon/dummy
5192b91c57721f37b906f670ad954a46f98bf5b5
[ "MIT" ]
null
null
null
tests/test_optimizers_v2/test_optimizers_v2.py
OverLordGoldDragon/dummy
5192b91c57721f37b906f670ad954a46f98bf5b5
[ "MIT" ]
null
null
null
tests/test_optimizers_v2/test_optimizers_v2.py
OverLordGoldDragon/dummy
5192b91c57721f37b906f670ad954a46f98bf5b5
[ "MIT" ]
null
null
null
import os import tempfile import numpy as np import tensorflow as tf from time import time from termcolor import cprint from unittest import TestCase from .. import K from .. import Input, Dense, GRU, Bidirectional, Embedding from .. import Model, load_model from .. import l2 from .. import maxnorm from .. import Ada...
44.334459
83
0.586375
12,452
0.948868
0
0
3,467
0.264193
0
0
1,277
0.09731
5d93683480faf496a5e564f3b162607a289a4f92
21,601
py
Python
koku/reporting/migrations/0099_ocp_performance.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
2
2022-01-12T03:42:39.000Z
2022-01-12T03:42:40.000Z
koku/reporting/migrations/0099_ocp_performance.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
null
null
null
koku/reporting/migrations/0099_ocp_performance.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
1
2021-07-21T09:33:59.000Z
2021-07-21T09:33:59.000Z
# Generated by Django 2.2.10 on 2020-02-18 12:51 import django.contrib.postgres.indexes from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [("reporting", "0098_auto_20200221_2034")] operations = [ migrations.RunSQL( """ dro...
51.800959
173
0.734781
21,448
0.992917
0
0
0
0
0
0
16,651
0.770844
5d942ae26a14855b18361770889fe0b68867154b
1,433
py
Python
sympy/tensor/tests/test_functions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/tensor/tests/test_functions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/tensor/tests/test_functions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy.tensor.functions import TensorProduct from sympy import MatrixSymbol, Matrix, Array from sympy.abc import x, y, z from sympy.abc import i, j, k, l A = MatrixSymbol("A", 3, 3) B = MatrixSymbol("B", 3, 3) C = MatrixSymbol("C", 3, 3) def test_TensorProduct_construction(): assert TensorProduct(3, 4) == 1...
25.589286
74
0.567341
0
0
0
0
0
0
0
0
9
0.006281
5d94582a86f1cb5da7910dcf3af0df5fef4be108
898
py
Python
app/views.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
app/views.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
app/views.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here. class MultipleProxyMiddleware: FORWARDED_FOR_FIELDS = [ 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED_HOST', 'HTTP_X_FORWARDED_SERVER', ] def __init__(self, get_response): self.get_response = get_response def __...
26.411765
59
0.604677
684
0.761693
0
0
0
0
0
0
225
0.250557
5d9653a594b04879fa4c04919b21be2e555546ba
1,033
py
Python
webcrawler/crawler/spiders/baselensspider.py
HansZimmer5000/LensComparison
e4d9b68211604c4569c4ca9b1e1b4fce2a8c1ea8
[ "Apache-2.0" ]
null
null
null
webcrawler/crawler/spiders/baselensspider.py
HansZimmer5000/LensComparison
e4d9b68211604c4569c4ca9b1e1b4fce2a8c1ea8
[ "Apache-2.0" ]
null
null
null
webcrawler/crawler/spiders/baselensspider.py
HansZimmer5000/LensComparison
e4d9b68211604c4569c4ca9b1e1b4fce2a8c1ea8
[ "Apache-2.0" ]
null
null
null
# This module is about my webcrawler with the use of scrapy. # Its a generell web crawler, but the import and use of GhAdapter makes it usefull for geizhals.de sites. from abc import ABC, abstractmethod import scrapy class BaseLensSpider(scrapy.Spider, ABC): @property @abstractmethod def adapter(self): raise No...
27.184211
105
0.804453
813
0.787028
243
0.235237
347
0.335915
0
0
254
0.245886
5d968294f2b19ad9cf4d5cc885fbe7be0f0e3330
15,289
py
Python
byol_train.py
fjbriones/deep-text-recognition-benchmark
c85d12aa56495fe221656bac4c8cb159a28456b1
[ "Apache-2.0" ]
null
null
null
byol_train.py
fjbriones/deep-text-recognition-benchmark
c85d12aa56495fe221656bac4c8cb159a28456b1
[ "Apache-2.0" ]
null
null
null
byol_train.py
fjbriones/deep-text-recognition-benchmark
c85d12aa56495fe221656bac4c8cb159a28456b1
[ "Apache-2.0" ]
null
null
null
import os import sys import time import random import string import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np from utils import CTCLabelConverter, CTCLabelConverterForBaiduWarpctc, AttnLabelConverter, ...
45.502976
152
0.636013
0
0
0
0
0
0
0
0
4,998
0.326902
5d96fee6a1d130e8653363f3a24275073276610b
1,496
py
Python
app/__init__.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/__init__.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/__init__.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- mode: python -*- import aiopg import psycopg2 import tornado.locks from tornado.options import define, options from tornado.web import Application from app.application import Application define('port', default=8080, help="listening port") define('bind_address', def...
32.521739
81
0.675802
0
0
0
0
0
0
836
0.558824
369
0.246658
5d9879f28b9c13e35ac740f4cb5632764b5c35dd
2,426
py
Python
pipescaler/core/stage.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
1
2022-02-07T03:47:53.000Z
2022-02-07T03:47:53.000Z
pipescaler/core/stage.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
49
2022-01-17T15:16:22.000Z
2022-03-28T03:00:39.000Z
pipescaler/core/stage.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # pipescaler/core/stage.py # # Copyright (C) 2020-2021 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. from __future__ import annotations from abc import ABC, abstractmethod from importlib.util import module_fr...
27.568182
83
0.633965
1,021
0.420857
0
0
201
0.082852
0
0
619
0.255153