hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
0184348ba0c172bce71500036c4f9c8c8e4b28b8
449
py
Python
src/leagues/migrations/0015_rotomultileagues_domain.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
src/leagues/migrations/0015_rotomultileagues_domain.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
6
2020-03-15T03:32:06.000Z
2022-01-13T03:46:05.000Z
src/leagues/migrations/0015_rotomultileagues_domain.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2021-05-07 01:58 from django.db import migrations, models
23.631579
97
0.63029
01858b30db6e28ba009ea21f05772bc48958908b
7,329
py
Python
ThingiBrowser/api/AbstractApiClient.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
1
2019-11-15T20:06:16.000Z
2019-11-15T20:06:16.000Z
ThingiBrowser/api/AbstractApiClient.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
null
null
null
ThingiBrowser/api/AbstractApiClient.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Chris ter Beke. # Thingiverse plugin is released under the terms of the LGPLv3 or higher. import logging from typing import List, Callable, Any, Tuple, Optional from abc import ABC, abstractmethod from PyQt5.QtCore import QUrl from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply, QNetw...
41.88
116
0.669532
0186c6f9ccb6910901110026b5550d4363a11f93
110
py
Python
tests/collagen/utils/__init__.py
newskylabs/newskylabs-collagen
3e2e331605745e6709f57dce8730ceb9ceaa002c
[ "Apache-2.0" ]
null
null
null
tests/collagen/utils/__init__.py
newskylabs/newskylabs-collagen
3e2e331605745e6709f57dce8730ceb9ceaa002c
[ "Apache-2.0" ]
null
null
null
tests/collagen/utils/__init__.py
newskylabs/newskylabs-collagen
3e2e331605745e6709f57dce8730ceb9ceaa002c
[ "Apache-2.0" ]
null
null
null
from . import test_conversion from . import test_generic from . import test_idxgz from . import test_settings
22
29
0.818182
01886702340a7e2614a1ba8467c3b9e447627ac9
2,545
py
Python
test/prettifier.py
ZachJHansen/Dist_Mem_GAPBS
4c7d702c641e860e6a28f2957cec1509ce5f9893
[ "BSD-3-Clause" ]
null
null
null
test/prettifier.py
ZachJHansen/Dist_Mem_GAPBS
4c7d702c641e860e6a28f2957cec1509ce5f9893
[ "BSD-3-Clause" ]
3
2021-08-15T18:49:36.000Z
2021-08-15T18:56:21.000Z
test/prettifier.py
ZachJHansen/Dist_Mem_GAPBS
4c7d702c641e860e6a28f2957cec1509ce5f9893
[ "BSD-3-Clause" ]
null
null
null
import subprocess import time import os import sys commands = generate_synthetic_commands(kernel) commands = commands + generate_real_commands(kernel) commands = commands + generate_el_commands(kernel) prettify(commands)
34.863014
127
0.502554
01886934cd30258f1bbd5bc214cc5822c242b7c6
504
py
Python
general/kneeOsteoarthritisDataset/KneeDataset_utility.py
duennbart/masterthesis_VAE
1a161bc5c234acc0a021d84cde8cd69e784174e1
[ "BSD-3-Clause" ]
14
2020-06-28T15:38:48.000Z
2021-12-05T01:49:50.000Z
general/kneeOsteoarthritisDataset/KneeDataset_utility.py
duennbart/masterthesis_VAE
1a161bc5c234acc0a021d84cde8cd69e784174e1
[ "BSD-3-Clause" ]
null
null
null
general/kneeOsteoarthritisDataset/KneeDataset_utility.py
duennbart/masterthesis_VAE
1a161bc5c234acc0a021d84cde8cd69e784174e1
[ "BSD-3-Clause" ]
3
2020-06-28T15:38:49.000Z
2022-02-13T22:04:34.000Z
import numpy as np from kneeOsteoarthritisDataset.KneeOsteoarthritsDataset import KneeOsteoarthritsDataset data_path = '/home/biomech/Documents/OsteoData/KneeXrayData/ClsKLData/kneeKL299' kneeosteo = KneeOsteoarthritsDataset(data_path = data_path) imgs, labels = kneeosteo.load_imgs() rand_idx = np.random.randint(lo...
26.526316
87
0.781746
018a6d7e60dff23b8dbdde473c02f7669ed70154
1,551
py
Python
src/main.py
ubirch/pycom-bootloader
6510eb34ec198ef74e15bb757bb67e88aaf15b74
[ "Apache-2.0" ]
null
null
null
src/main.py
ubirch/pycom-bootloader
6510eb34ec198ef74e15bb757bb67e88aaf15b74
[ "Apache-2.0" ]
null
null
null
src/main.py
ubirch/pycom-bootloader
6510eb34ec198ef74e15bb757bb67e88aaf15b74
[ "Apache-2.0" ]
null
null
null
print("SD bootloader") import pycom import time import machine import sys import uos #paths for the code/lib/mount locations SD_MOUNTPOINT = '/sd' CODE_PATH = '/sd/src' LIB_PATH = '/sd/src/lib' #LED colors #for errors (full brightness) C_YELLOW = 0xffff00 C_RED = 0xff0000 C_PURPLE = 0xff00ff C_BLUE = 0x0000ff #for n...
20.142857
49
0.654417
018d436c5de06e246b9aa736124eb44597086ab1
122,321
py
Python
gui.py
michael11892/picoscopeDataLogger
f50d26f33b5a42731e52261e52c6fe8574ca2bbc
[ "MIT" ]
3
2021-07-02T10:34:16.000Z
2021-07-03T10:27:22.000Z
gui.py
michael11892/picoscopeDataLogger
f50d26f33b5a42731e52261e52c6fe8574ca2bbc
[ "MIT" ]
null
null
null
gui.py
michael11892/picoscopeDataLogger
f50d26f33b5a42731e52261e52c6fe8574ca2bbc
[ "MIT" ]
null
null
null
import os import sys import copy from math import gcd from driver_config_macros import * from data_capture_macros import * from signal_generator_macros import * from power_operation_macros import * from capture_config_macros import * from trig_config_macros import * from data_processing_macros import * from PyQt5 impor...
65.412299
357
0.692931
018d64e411b9a079532721baad7937f619846f0d
187
py
Python
tests/test_main.py
ZhuYuJin/cgroup-parser
7132791c496dc87af04d0458ad1f820eac8a8f0f
[ "Apache-2.0" ]
null
null
null
tests/test_main.py
ZhuYuJin/cgroup-parser
7132791c496dc87af04d0458ad1f820eac8a8f0f
[ "Apache-2.0" ]
null
null
null
tests/test_main.py
ZhuYuJin/cgroup-parser
7132791c496dc87af04d0458ad1f820eac8a8f0f
[ "Apache-2.0" ]
null
null
null
import cgroup_parser
20.777778
36
0.780749
018e37a3271bbe0ac811dfe2f2b0248dd13424ad
5,123
py
Python
tests/ut/python/dataset_deprecated/test_map.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
tests/ut/python/dataset_deprecated/test_map.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset_deprecated/test_map.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Huawei Technologies Co., Ltd # # 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...
40.65873
115
0.68007
018ea4db5dccbf0d3e4ad515400df46535657771
1,295
py
Python
tests/test_structural/test_proxy.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
2
2021-09-23T16:41:42.000Z
2021-11-20T11:54:42.000Z
tests/test_structural/test_proxy.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
null
null
null
tests/test_structural/test_proxy.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ******************************************************** # Author and developer: Aleksandr Suvorov # -------------------------------------------------------- # Licensed: BSD 3-Clause License (see LICENSE for details) # -------------------------------------------------------- # Url: https://git...
38.088235
62
0.467954
018eb361eddd592309fff69045cb98d9066ea2e0
39,647
py
Python
hallo/test/modules/channel_control/test_de_operator.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/channel_control/test_de_operator.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/channel_control/test_de_operator.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from hallo.events import EventMessage, EventMode from hallo.server import Server from hallo.test.server_mock import ServerMock
41.042443
90
0.70762
018ecde16201a4f4c059f4251f120ee69a80438a
7,685
py
Python
overlays/holo-nixpkgs/hpos-admin/hpos-admin.py
samrose/holo-nixpkgs
057c92fcef9934d1ba2310e77579b78e61271a59
[ "MIT" ]
null
null
null
overlays/holo-nixpkgs/hpos-admin/hpos-admin.py
samrose/holo-nixpkgs
057c92fcef9934d1ba2310e77579b78e61271a59
[ "MIT" ]
null
null
null
overlays/holo-nixpkgs/hpos-admin/hpos-admin.py
samrose/holo-nixpkgs
057c92fcef9934d1ba2310e77579b78e61271a59
[ "MIT" ]
null
null
null
from base64 import b64encode from flask import Flask, jsonify, request from functools import reduce from gevent import subprocess, pywsgi, queue, socket, spawn, lock from gevent.subprocess import CalledProcessError from hashlib import sha512 from pathlib import Path from tempfile import mkstemp import json import os im...
28.462963
180
0.645413
019038b5e29201ae48ff890d61729392b8611ea1
1,050
py
Python
Backend/clother/admin/utils.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
21
2021-04-21T10:36:12.000Z
2021-10-18T10:23:38.000Z
Backend/clother/admin/utils.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
1
2021-06-04T15:19:35.000Z
2021-06-04T15:19:35.000Z
Backend/clother/admin/utils.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
1
2022-03-03T02:50:37.000Z
2022-03-03T02:50:37.000Z
import datetime import math import random import time from ..users.models import User
26.25
81
0.662857
01949a8453b27509b378298375545c88dd880612
525
py
Python
vkmodels/objects/addresses.py
deknowny/vk-api-py-models
6760c9395b39efd2a987251893b418a61eefbdca
[ "MIT" ]
null
null
null
vkmodels/objects/addresses.py
deknowny/vk-api-py-models
6760c9395b39efd2a987251893b418a61eefbdca
[ "MIT" ]
null
null
null
vkmodels/objects/addresses.py
deknowny/vk-api-py-models
6760c9395b39efd2a987251893b418a61eefbdca
[ "MIT" ]
null
null
null
import dataclasses import enum import typing from vkmodels.bases.object import ObjectBase
22.826087
45
0.689524
0196af5b9fce69fa6d92fe89461a5b8fdf7588ed
3,413
py
Python
test/test_caching.py
ORNL/curifactory
f8be235b7fa7b91cc86f61d610d7093075b89d1f
[ "BSD-3-Clause" ]
4
2022-01-25T18:27:49.000Z
2022-03-30T22:57:04.000Z
test/test_caching.py
ORNL/curifactory
f8be235b7fa7b91cc86f61d610d7093075b89d1f
[ "BSD-3-Clause" ]
1
2022-03-05T19:10:42.000Z
2022-03-07T18:00:49.000Z
test/test_caching.py
ORNL/curifactory
f8be235b7fa7b91cc86f61d610d7093075b89d1f
[ "BSD-3-Clause" ]
null
null
null
import curifactory as cf import json import os import pytest from stages.cache_stages import filerefcacher_stage, filerefcacher_stage_multifile # TODO: necessary? configured_test_manager already does this def test_filerefcacher_stores_multiple_paths(configured_test_manager, clear_stage_run): """FileReferenceCa...
32.504762
105
0.714914
0196ed4e4760ab9bf312a9416801f8b71d0a5124
2,471
py
Python
downloader/download.py
inverthermit/sec_edgar_analysis
ffdf43b30ab53b0a024790757c8ef0c989acf67a
[ "MIT" ]
1
2018-02-03T00:28:53.000Z
2018-02-03T00:28:53.000Z
downloader/download.py
inverthermit/sec_edgar_analysis
ffdf43b30ab53b0a024790757c8ef0c989acf67a
[ "MIT" ]
null
null
null
downloader/download.py
inverthermit/sec_edgar_analysis
ffdf43b30ab53b0a024790757c8ef0c989acf67a
[ "MIT" ]
null
null
null
import urllib import time from multiprocessing.dummy import Pool as ThreadPool excelFolder = 'F://SecExcelDownload2/' compListUrl = 'C://Users/l1111/Desktop/AlphaCapture/downloadFileUrl.txt' successFile = excelFolder+'/success.txt' failFile = excelFolder+'/fail.txt' logFile = excelFolder+'/log.txt' downloadedList =...
28.402299
108
0.583974
0197d01c354f66f49415a9ef3d542eb61ea7a772
20,495
py
Python
HOST/py/tc_TcpEcho.py
cloudFPGA/cFp_HelloKale
949f8c3005d2824b8bc65345b77ea97bd0b6e692
[ "Apache-2.0" ]
null
null
null
HOST/py/tc_TcpEcho.py
cloudFPGA/cFp_HelloKale
949f8c3005d2824b8bc65345b77ea97bd0b6e692
[ "Apache-2.0" ]
6
2022-01-22T10:04:18.000Z
2022-02-01T21:28:19.000Z
HOST/py/tc_TcpEcho.py
cloudFPGA/cFp_HelloKale
949f8c3005d2824b8bc65345b77ea97bd0b6e692
[ "Apache-2.0" ]
null
null
null
#/* # * Copyright 2016 -- 2021 IBM Corporation # * # * Licensed under the Apache License, Version 2.0 (the "License"); # * you may not use this file except in compliance with the License. # * You may obtain a copy of the License at # * # * http://www.apache.org/licenses/LICENSE-2.0 # * # * Unless required by applic...
40.99
128
0.528178
0199b3ed945c2771be748d98e1dc7b130caca848
2,961
py
Python
ngram.py
lojikil/lojifacts
88e2318e0b6c6cb5eb270002abc4b4195e5b85b1
[ "0BSD" ]
null
null
null
ngram.py
lojikil/lojifacts
88e2318e0b6c6cb5eb270002abc4b4195e5b85b1
[ "0BSD" ]
null
null
null
ngram.py
lojikil/lojifacts
88e2318e0b6c6cb5eb270002abc4b4195e5b85b1
[ "0BSD" ]
null
null
null
import json import re import random if __name__ == "__main__": data, gramindex = {}, NGram() gramind3x = NGram(size=3) gram1ndex = NGram(size=1) with open('dump', 'r') as f: data = json.load(f) for tweet in data['tweet']: gramindex.index(tweet) gramind3x.index(tweet) ...
25.09322
73
0.549814
019ba56645c86cd5f76a825624bb4c712e44806d
967
py
Python
ymir/command/mir/scm/__init__.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
64
2021-11-15T03:48:00.000Z
2022-03-25T07:08:46.000Z
ymir/command/mir/scm/__init__.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
35
2021-11-23T04:14:35.000Z
2022-03-26T09:03:43.000Z
ymir/command/mir/scm/__init__.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
57
2021-11-11T10:15:40.000Z
2022-03-29T07:27:54.000Z
import os from mir.scm.cmd import CmdScm from mir.tools.code import MirCode from mir.tools.errors import MirRuntimeError def Scm(root_dir: str, scm_executable: str = None) -> CmdScm: """Returns SCM instance that corresponds to a repo at the specified path. Args: root_dir (str): path t...
35.814815
94
0.646329
6d67721cacf03f0b19c2edfa7d94b286095c3b16
724
py
Python
readability_transformers/features/lf/utils.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
1
2022-01-26T10:55:59.000Z
2022-01-26T10:55:59.000Z
readability_transformers/features/lf/utils.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
null
null
null
readability_transformers/features/lf/utils.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
2
2021-10-14T22:53:57.000Z
2022-01-26T10:53:32.000Z
""" Software: LingFeat - Comprehensive Linguistic Features for Readability Assessment Page: utils.py License: CC-BY-SA 4.0 Original Author: Bruce W. Lee () @brucewlee Affiliation 1: LXPER AI, Seoul, South Korea Affiliation 2: University of Pennsylvania, PA, USA Contributing Author: - Affiliation : - """ import re impo...
22.625
81
0.638122
6d6893d2b301e5ade9e14d6da20a25931ea35482
416
py
Python
pretix_eventparts/migrations/0007_alter_eventpart_category.py
bockstaller/pretix-eventparts
b5cb8f89cb86677facc0509f9a36cf9359c94534
[ "Apache-2.0" ]
null
null
null
pretix_eventparts/migrations/0007_alter_eventpart_category.py
bockstaller/pretix-eventparts
b5cb8f89cb86677facc0509f9a36cf9359c94534
[ "Apache-2.0" ]
null
null
null
pretix_eventparts/migrations/0007_alter_eventpart_category.py
bockstaller/pretix-eventparts
b5cb8f89cb86677facc0509f9a36cf9359c94534
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-31 23:57 from django.db import migrations, models
21.894737
63
0.615385
6d69e794272f0966fc5025bf7ae39b7bd8cdeaea
1,173
py
Python
src/ex05/bwfilter.py
satvik007/Scanner_OP
c146f67e3851cd537d62989842abfee7d34de2c0
[ "MIT" ]
null
null
null
src/ex05/bwfilter.py
satvik007/Scanner_OP
c146f67e3851cd537d62989842abfee7d34de2c0
[ "MIT" ]
null
null
null
src/ex05/bwfilter.py
satvik007/Scanner_OP
c146f67e3851cd537d62989842abfee7d34de2c0
[ "MIT" ]
1
2021-05-10T10:14:27.000Z
2021-05-10T10:14:27.000Z
# Usage: # python bwfilter.py --input=./data/test1.jpg import cv2 import numpy as np import argparse if __name__=='__main__': args = parse_args() img = cv2.imread(args.input, 0) bwimg = bwfilter(img) show_img(bwimg) cv2.imwrite('bwimg.png', bwimg)
26.066667
105
0.6948
6d6f7df41b42997a8642b881e20683971aa08d5d
1,065
py
Python
resotolib/test/test_graph_extensions.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
126
2022-01-13T18:22:03.000Z
2022-03-31T11:03:14.000Z
resotolib/test/test_graph_extensions.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
110
2022-01-13T22:27:55.000Z
2022-03-30T22:26:50.000Z
resotolib/test/test_graph_extensions.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
8
2022-01-15T10:28:16.000Z
2022-03-30T16:38:21.000Z
from networkx import DiGraph from pytest import fixture from resotolib.graph.graph_extensions import dependent_node_iterator
26.625
68
0.605634
6d70bb0cad490e48129e211fe47c97af4f46b256
693
py
Python
django/user/models.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-10-29T09:37:47.000Z
2019-11-28T14:11:12.000Z
django/user/models.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
null
null
null
django/user/models.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-09-18T14:09:46.000Z
2019-11-28T14:11:14.000Z
from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse
23.1
58
0.613276
6d72243ededbe77bc217b7d87bcc872254da5cff
3,806
py
Python
cross_sums.py
minddrive/random_math
b5dececaf48ec80d8250d0f5fde0485e1b9e73c2
[ "MIT" ]
null
null
null
cross_sums.py
minddrive/random_math
b5dececaf48ec80d8250d0f5fde0485e1b9e73c2
[ "MIT" ]
null
null
null
cross_sums.py
minddrive/random_math
b5dececaf48ec80d8250d0f5fde0485e1b9e73c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.4 import functools if __name__ == '__main__': doz_sums = CrossSums('0123456789XE') print('Sums totalling 15:') for ds in doz_sums.filter(total='15'): print(' ', ds) print('\nSums containing addends 3-X inclusive:') for ds in doz_sums.filter(addends='3456789X'...
27.781022
77
0.607725
6d7355fa775ea3bb8dea2a5a98443123ea1e47bf
1,177
py
Python
functions.py
XomaDev/asteroid-bot
2e0743fc3c51027b54b8f2e9aedf632395fdbc31
[ "Apache-2.0" ]
null
null
null
functions.py
XomaDev/asteroid-bot
2e0743fc3c51027b54b8f2e9aedf632395fdbc31
[ "Apache-2.0" ]
2
2021-05-12T05:37:24.000Z
2021-06-02T05:39:21.000Z
functions.py
XomaDev/asteroid-bot
2e0743fc3c51027b54b8f2e9aedf632395fdbc31
[ "Apache-2.0" ]
5
2021-05-12T11:39:09.000Z
2021-10-06T06:49:05.000Z
import base64 import re
25.586957
197
0.514019
6d739c512a7425dd3bf1c30daa1d7ca1dc743fab
377
py
Python
slidingWindow/maximumSubarrayOfSizeK.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
11
2019-05-02T22:27:01.000Z
2020-10-30T08:43:02.000Z
slidingWindow/maximumSubarrayOfSizeK.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
null
null
null
slidingWindow/maximumSubarrayOfSizeK.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
3
2019-11-01T01:35:01.000Z
2020-01-11T18:00:39.000Z
# may 30 20
23.5625
46
0.657825
6d768c2ea44a94e626129ce1ad7462b5def358ad
1,697
py
Python
docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py
whoopnip/fin-model-course
e6c5ae313bba601c4aca0f334818b61cc0393118
[ "MIT" ]
5
2020-08-29T15:28:39.000Z
2021-12-01T16:53:25.000Z
docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py
whoopnip/fin-model-course
e6c5ae313bba601c4aca0f334818b61cc0393118
[ "MIT" ]
16
2020-02-26T16:03:47.000Z
2021-06-15T15:17:37.000Z
docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py
whoopnip/fin-model-course
e6c5ae313bba601c4aca0f334818b61cc0393118
[ "MIT" ]
3
2021-01-22T19:38:36.000Z
2021-09-28T08:14:00.000Z
import xlwings as xw import random import pandas as pd def capm(risk_free, beta, market_ret, epsilon): return risk_free + beta * (market_ret - risk_free) + epsilon def capm_auto_epsilon(risk_free, beta, market_ret, epsilon_stdev): epsilon = random.normalvariate(0, epsilon_stdev) return ca...
27.819672
112
0.659988
6d769b7ba35986193281813c7384ebbac51f27b4
1,547
py
Python
src/config.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
src/config.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
src/config.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import ConfigParser import os import inspect
27.625
108
0.550743
6d7de936a991106b4fb0cef936e0e2db3b670915
192
py
Python
visionlib/face/__init__.py
sumeshmn/Visionlib
c543ee038d6d1dcf9d88a8d7a782addd998e6036
[ "MIT" ]
null
null
null
visionlib/face/__init__.py
sumeshmn/Visionlib
c543ee038d6d1dcf9d88a8d7a782addd998e6036
[ "MIT" ]
null
null
null
visionlib/face/__init__.py
sumeshmn/Visionlib
c543ee038d6d1dcf9d88a8d7a782addd998e6036
[ "MIT" ]
null
null
null
from .detection import FDetector from .haar_detector import HaarDetector from .hog_detector import Hog_detector from .mtcnn_detector import MTCNNDetector from .dnn_detector import DnnDetector
32
41
0.869792
6d7f27d4b21a33d924da32d2c0841520bdc52d0d
4,635
py
Python
shapey/utils/customdataset.py
njw0709/ShapeY
f2272f799fe779c3e4b3d0d06e88ecde9e4b039c
[ "MIT" ]
1
2022-03-22T17:19:57.000Z
2022-03-22T17:19:57.000Z
shapey/utils/customdataset.py
njw0709/ShapeY
f2272f799fe779c3e4b3d0d06e88ecde9e4b039c
[ "MIT" ]
null
null
null
shapey/utils/customdataset.py
njw0709/ShapeY
f2272f799fe779c3e4b3d0d06e88ecde9e4b039c
[ "MIT" ]
null
null
null
import torchvision.datasets as datasets from torch.utils.data import Dataset from itertools import combinations import math import psutil
32.1875
82
0.63754
6d810ebbec71bcab0af3dd833414d6e1bddc9b62
2,160
py
Python
iaga/utils.py
bbengfort/solar-tempest
c21b5bf2716f752cb823bac2f01b6531f248dc66
[ "MIT" ]
1
2018-08-07T21:25:48.000Z
2018-08-07T21:25:48.000Z
iaga/utils.py
bbengfort/solar-tempest
c21b5bf2716f752cb823bac2f01b6531f248dc66
[ "MIT" ]
null
null
null
iaga/utils.py
bbengfort/solar-tempest
c21b5bf2716f752cb823bac2f01b6531f248dc66
[ "MIT" ]
1
2019-06-23T14:22:04.000Z
2019-06-23T14:22:04.000Z
# iaga.utils # Utility functions and helpers # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Wed Aug 08 12:00:44 2018 -0400 # # ID: utils.py [] benjamin@bengfort.com $ """ Utility functions and helpers """ ########################################################################## ## Imports ########...
26.341463
92
0.498611
6d816723bee564519a5e4db1c3f8cf7df4142b1b
760
py
Python
Scripts5/Script38.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
1
2020-09-05T22:25:36.000Z
2020-09-05T22:25:36.000Z
Scripts5/Script38.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
Scripts5/Script38.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
'''Faa um programa que receba dois nmeros, compare e diga quem maior. Mostrando a msn qual valor maior ou menor. OU diga que os valores so iguais.''' print('=+=+=+=+=+=+=+=+='*3) titulo = 'COMPARANDO NMEROS MAIOR, MENOR E IGUAL' print('{:^51}'.format(titulo)) print('-----------------'*3) num1 = float(input('Digite o ...
44.705882
156
0.626316
6d82b1a75112fd7c369738ca11d64f3111ccd886
234
py
Python
Ch3/same_name3.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
Ch3/same_name3.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
Ch3/same_name3.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
eggs = 42 # this is the global var spam() print(eggs)
16.714286
42
0.619658
6d82b1b31f8d0b6b84847768e733ad87e9b8137d
19,761
py
Python
ehlit/writer/dump.py
lefta/reflex-prototype
9d9a34e222d9782815da529a8e2daa575c7c3eba
[ "MIT" ]
1
2019-03-29T14:06:00.000Z
2019-03-29T14:06:00.000Z
ehlit/writer/dump.py
lefta/ehlit-prototype
9d9a34e222d9782815da529a8e2daa575c7c3eba
[ "MIT" ]
null
null
null
ehlit/writer/dump.py
lefta/ehlit-prototype
9d9a34e222d9782815da529a8e2daa575c7c3eba
[ "MIT" ]
null
null
null
# Copyright 2017-2019 Cedric Legrand # # 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, di...
36.730483
100
0.621325
6d833ac6a830a6bbcae3005bb5acb8b96a7801b5
1,859
py
Python
tutorials/04_Tutorial_Boolean.py
lmidolo/samplemaker
8211af0e4cea60aea8f5720d5ff0ee532c442123
[ "BSD-3-Clause" ]
null
null
null
tutorials/04_Tutorial_Boolean.py
lmidolo/samplemaker
8211af0e4cea60aea8f5720d5ff0ee532c442123
[ "BSD-3-Clause" ]
null
null
null
tutorials/04_Tutorial_Boolean.py
lmidolo/samplemaker
8211af0e4cea60aea8f5720d5ff0ee532c442123
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ 04_Tutorial_Boolean """ # In this tutorial we learn how to do boolean operations between groups of # polygons # Let's import basic stuff import samplemaker.layout as smlay # used for layout import samplemaker.makers as sm # used for drawing # Create a simple mask layout themask = smlay...
26.557143
109
0.743948
6d86c4391d19b15cd170a51c7f4c70bd4a42f337
265
py
Python
app/table.py
aamnv/fred-cli
86810e93242a90dd8ed1fbbd8999275dbd1da1cc
[ "MIT" ]
8
2020-08-28T15:15:14.000Z
2021-02-02T07:54:02.000Z
app/table.py
aamnv/fred-cli
86810e93242a90dd8ed1fbbd8999275dbd1da1cc
[ "MIT" ]
null
null
null
app/table.py
aamnv/fred-cli
86810e93242a90dd8ed1fbbd8999275dbd1da1cc
[ "MIT" ]
1
2021-03-05T10:27:32.000Z
2021-03-05T10:27:32.000Z
from tabulate import tabulate
22.083333
68
0.754717
6d890c163247c06d98f4d952e4bc7e2fd20b6485
2,472
py
Python
tests/test_version.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
8
2019-09-25T14:45:28.000Z
2021-11-08T10:30:03.000Z
tests/test_version.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
113
2018-07-10T12:58:16.000Z
2020-12-09T22:33:15.000Z
tests/test_version.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
12
2018-07-10T11:00:02.000Z
2021-01-27T12:19:56.000Z
"""Test cvejob.version.BenevolentVersion.""" from cvejob.version import BenevolentVersion def test_version_basic(): """Test basic behavior.""" assert BenevolentVersion('1') == BenevolentVersion('1') assert BenevolentVersion('1') != BenevolentVersion('2') assert BenevolentVersion('1') < BenevolentVersi...
36.352941
83
0.677184
6d8a66fbf9d684f0b5b7c285749ed54196898dec
1,211
py
Python
day6.py
aslttml/30days-of-code
be6c894f8df4913413b7e6d9a6b0585e5884d35d
[ "MIT" ]
null
null
null
day6.py
aslttml/30days-of-code
be6c894f8df4913413b7e6d9a6b0585e5884d35d
[ "MIT" ]
null
null
null
day6.py
aslttml/30days-of-code
be6c894f8df4913413b7e6d9a6b0585e5884d35d
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys import string if __name__ == '__main__': try: t = int(input().strip()) except: print('Invalid input.') if t>=1 and t<=10: for a0 in range(t): s = input().strip() index = 0 ...
31.051282
102
0.456647
6d8cd75b30233cb95ea2e1005dd56109d735bde6
2,377
py
Python
FindAndReplaceByProjectWithExclusions.py
Zlatov/FindAndReplaceByProjectWithExclusions
f1209696d960bd1471420ed18f4e71e03b3df1b5
[ "MIT" ]
null
null
null
FindAndReplaceByProjectWithExclusions.py
Zlatov/FindAndReplaceByProjectWithExclusions
f1209696d960bd1471420ed18f4e71e03b3df1b5
[ "MIT" ]
null
null
null
FindAndReplaceByProjectWithExclusions.py
Zlatov/FindAndReplaceByProjectWithExclusions
f1209696d960bd1471420ed18f4e71e03b3df1b5
[ "MIT" ]
null
null
null
import sublime, sublime_plugin import os import json
34.449275
120
0.715187
6d8df2d3b1dcbda991e01aea09990e08fc942cf3
1,566
py
Python
schnell-nautilus.py
umangrajpara99/OpenInSchnell
5d48be8741f130471c892f1e77f19b9dad70a882
[ "MIT" ]
null
null
null
schnell-nautilus.py
umangrajpara99/OpenInSchnell
5d48be8741f130471c892f1e77f19b9dad70a882
[ "MIT" ]
null
null
null
schnell-nautilus.py
umangrajpara99/OpenInSchnell
5d48be8741f130471c892f1e77f19b9dad70a882
[ "MIT" ]
null
null
null
# Schnell Nautilus Extension # # Place me in ~/.local/share/nautilus-python/extensions/, # ensure you have python-nautilus package, restrart Nautilus, and enjoy :) from gi import require_version require_version('Gtk', '3.0') require_version('Nautilus', '3.0') from gi.repository import Nautilus, GObject from subprocess...
27.473684
74
0.637292
6d8fdc15326338e43a53a51f9d3225823820ab40
74,548
py
Python
appengine/components/components/prpc/discovery/service_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/prpc/discovery/service_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/prpc/discovery/service_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: service.proto import base64 from google.protobuf import descriptor_pb2 # Includes description of the service.proto and all of its transitive # dependencies. Includes source code info. FILE_DESCRIPTOR_SET = descriptor_pb2.FileDescriptorS...
79.47548
80
0.911493
6d9062da7cb5be608d72b13c37aef7c0131a8035
1,891
py
Python
Cogs/StaticMethods.py
pajratbej/hetman
1da634cdb94221bb81ceb0c29467cccce640bbb6
[ "MIT" ]
2
2019-12-19T17:11:29.000Z
2020-02-22T17:55:13.000Z
Cogs/StaticMethods.py
pajratbej/hetman
1da634cdb94221bb81ceb0c29467cccce640bbb6
[ "MIT" ]
5
2019-12-08T21:42:12.000Z
2022-03-11T23:58:29.000Z
Cogs/StaticMethods.py
pajratbej/hetman
1da634cdb94221bb81ceb0c29467cccce640bbb6
[ "MIT" ]
null
null
null
from pymongo import MongoClient import random as r import os client = MongoClient(os.environ["MONGO_LAB"]) db = client.get_database("hetmanbot") collection = db['data_base']
31.516667
100
0.589635
6d9276de4eb719b6800f06060463d545ce0e50b7
702
py
Python
article/admin.py
SeddonShen/TimePill
8b2c4dc2c129f440d67e1dba1ab16591057b65f7
[ "Apache-2.0" ]
4
2021-12-26T04:39:06.000Z
2021-12-29T16:57:36.000Z
article/admin.py
SeddonShen/TimePill
8b2c4dc2c129f440d67e1dba1ab16591057b65f7
[ "Apache-2.0" ]
null
null
null
article/admin.py
SeddonShen/TimePill
8b2c4dc2c129f440d67e1dba1ab16591057b65f7
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from . import models from .models import Article, Comment # title = title, # content = content, # square_open = square_open, # expire_time = expire_time, # status = status, # author_id_id = user_id, # diary_type = diary_type, # admin.site.register(Articl...
25.071429
108
0.668091
6d961a7fca3206cd16ef0e5d9d5a6b6cd7a06634
32,545
py
Python
neurokit2/ecg/ecg_findpeaks.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
neurokit2/ecg/ecg_findpeaks.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
neurokit2/ecg/ecg_findpeaks.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
# - * - coding: utf-8 - * - import numpy as np import pandas as pd import matplotlib.pyplot as plt import scipy.signal from ..signal import signal_smooth from ..signal import signal_zerocrossings def ecg_findpeaks(ecg_cleaned, sampling_rate=1000, method="neurokit", show=False): """Find R-peaks in an ECG signal...
32.940283
262
0.540636
6d96c1cfb476a1c31417724d0d6d9bf4095e9439
1,157
py
Python
tinynn/converter/operators/base.py
www516717402/TinyNeuralNetwork
23e7931b4377462fad94a9ab0651b6d9a346252d
[ "MIT" ]
1
2022-01-11T06:40:13.000Z
2022-01-11T06:40:13.000Z
tinynn/converter/operators/base.py
kingkie/TinyNeuralNetwork
9b4313bbe6fb46d602681b69799e4725eef4d71b
[ "MIT" ]
null
null
null
tinynn/converter/operators/base.py
kingkie/TinyNeuralNetwork
9b4313bbe6fb46d602681b69799e4725eef4d71b
[ "MIT" ]
1
2021-12-20T07:21:37.000Z
2021-12-20T07:21:37.000Z
import inspect import sys from enum import IntEnum from tflite.ActivationFunctionType import ActivationFunctionType from tflite.BuiltinOperator import BuiltinOperator # In Python 3.6, we cannot make ExtendedOperator derive from IntEnum if sys.version_info >= (3, 7): bases = (IntEnum, ) else: bases = () # ...
28.925
96
0.713915
6d976cc81d6b3b0e0fa28444c6bbd2374d9c01bb
169
py
Python
mkdocs_markmap/__meta__.py
neatc0der/mkdocs-markmap
dff5d6ace8813ef433b54d34e4f7127d04792b89
[ "MIT" ]
14
2021-01-25T19:46:25.000Z
2022-02-12T03:35:51.000Z
mkdocs_markmap/__meta__.py
neatc0der/mkdocs-markmap
dff5d6ace8813ef433b54d34e4f7127d04792b89
[ "MIT" ]
14
2021-01-24T22:01:52.000Z
2022-02-16T00:56:33.000Z
mkdocs_markmap/__meta__.py
neatc0der/mkdocs-markmap
dff5d6ace8813ef433b54d34e4f7127d04792b89
[ "MIT" ]
1
2021-11-30T14:39:10.000Z
2021-11-30T14:39:10.000Z
PACKAGE_NAME = 'mkdocs_markmap' PROJECT_NAME = PACKAGE_NAME.replace('_', '-') PROJECT_VERSION = '2.1.3' OWNER = 'neatc0der' REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}'
24.142857
45
0.727811
6d986eb3521f1a36cc7b07b20157b53df24adc51
852
py
Python
ihome/apps/homes/urls.py
Noah-Smith-wgp/rentinghouse
22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3
[ "MIT" ]
null
null
null
ihome/apps/homes/urls.py
Noah-Smith-wgp/rentinghouse
22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3
[ "MIT" ]
null
null
null
ihome/apps/homes/urls.py
Noah-Smith-wgp/rentinghouse
22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3
[ "MIT" ]
null
null
null
from django.conf.urls import url from rest_framework.routers import DefaultRouter from apps.homes import views urlpatterns = [ url(r'^areas/$', views.AreaAPIView.as_view()), # url(r'^houses/$', views.HouseAPIView.as_view()), # url(r'^user/houses/$', views.HouseListView.as_view()), # url(r'^h...
29.37931
92
0.70892
6d9999a24bad3d878ecc89ba34c9037a6d5b672e
646
py
Python
encryption/validation/ssl_client.py
TheConner/intl-iot
e7f0d7e96392acec900f29eb95cbbf5cb8d8db66
[ "Apache-2.0" ]
46
2019-09-19T05:03:56.000Z
2022-03-07T05:55:12.000Z
encryption/validation/ssl_client.py
dng24/intl-iot
84d46012afce5c7473d0cc9b82dc9e3aef069bbf
[ "Apache-2.0" ]
null
null
null
encryption/validation/ssl_client.py
dng24/intl-iot
84d46012afce5c7473d0cc9b82dc9e3aef069bbf
[ "Apache-2.0" ]
23
2019-09-18T02:04:59.000Z
2022-03-07T05:55:13.000Z
import socket import ssl import sys hostname = '127.0.0.1' if len(sys.argv) < 2: exit(0) inputfile = sys.argv[1] print('\tRead file %s' % inputfile) # msg = b"HEAD / HTTP /1.0\r\nHost: linuxfr.org\r\n\r\n" msg = open(inputfile).read() msg = bytes(msg.encode()) context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) con...
26.916667
70
0.676471
6da20244b70564cb32df8f9c1bb63836cc6e87c9
345
py
Python
src/game/items.py
pikulet/sandfox
ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825
[ "MIT" ]
null
null
null
src/game/items.py
pikulet/sandfox
ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825
[ "MIT" ]
null
null
null
src/game/items.py
pikulet/sandfox
ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825
[ "MIT" ]
null
null
null
from typing import Callable
23
65
0.657971
6da36de83dd56e3ca84e1de8b7ae22701073bf6d
528
py
Python
parte2/alternativeq2.py
ronaldbrito/PDS
58c8f9737e4cc5872a27e7b778a43def5e3e11f4
[ "MIT" ]
1
2019-03-16T01:49:11.000Z
2019-03-16T01:49:11.000Z
parte2/alternativeq2.py
heliomeiralins/pds
58c8f9737e4cc5872a27e7b778a43def5e3e11f4
[ "MIT" ]
null
null
null
parte2/alternativeq2.py
heliomeiralins/pds
58c8f9737e4cc5872a27e7b778a43def5e3e11f4
[ "MIT" ]
null
null
null
import numpy as np from scipy.misc import imread, imsave from scipy import ndimage img = imread('doc1.bmp') F = np.vectorize(f) treated_img = F(img) imsave('treated_doc.bmp', treated_img) mask = treated_img < treated_img.mean() label_im, nb_labels = ndimage.label(mask) sizes = ndimage.sum(mask, label_im, range(n...
17.6
57
0.676136
6da7a648349b63e6ebd5bddae98e78d24000ce56
2,617
py
Python
module2-sql-for-analysis/insert_rpg_thief.py
KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases
4a690cd8e651161296d7aec2af86a56c499d6801
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_rpg_thief.py
KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases
4a690cd8e651161296d7aec2af86a56c499d6801
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_rpg_thief.py
KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases
4a690cd8e651161296d7aec2af86a56c499d6801
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv import sqlite3 import psycopg2 from psycopg2.extras import execute_values load_dotenv() # looks inside the .env file for some env vars # passes env var values to python var DB_HOST = os.getenv("DB_HOST", default="OOPS") DB_NAME = os.getenv("DB_NAME", default="OOPS") DB_USER = ...
42.209677
244
0.708445
6da810a7e416553569ccec2032142f91db2446a4
4,161
py
Python
xoa_driver/internals/core/commands/px_commands.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
1
2022-03-18T17:17:59.000Z
2022-03-18T17:17:59.000Z
xoa_driver/internals/core/commands/px_commands.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
null
null
null
xoa_driver/internals/core/commands/px_commands.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
null
null
null
#: L23 Port Transceiver Commands from dataclasses import dataclass import typing from ..protocol.command_builders import ( build_get_request, build_set_request ) from .. import interfaces from ..transporter.token import Token from ..protocol.fields.data_types import * from ..protocol.fields.field import XmpFi...
33.02381
168
0.700072
6dab7808e0549ea0483294aef2b69179d291af86
12,991
py
Python
nvidia_clara/grpc/metrics_pb2.py
KavinKrishnan/clara-platform-python-client
05c873b93022de15902adc656cf9735639d57a73
[ "Apache-2.0" ]
8
2020-10-30T22:45:07.000Z
2021-09-23T18:22:30.000Z
nvidia_clara/grpc/metrics_pb2.py
KavinKrishnan/clara-platform-python-client
05c873b93022de15902adc656cf9735639d57a73
[ "Apache-2.0" ]
1
2020-12-29T23:42:27.000Z
2020-12-29T23:42:27.000Z
nvidia_clara/grpc/metrics_pb2.py
KavinKrishnan/clara-platform-python-client
05c873b93022de15902adc656cf9735639d57a73
[ "Apache-2.0" ]
4
2020-11-03T18:31:49.000Z
2021-11-09T17:47:12.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. 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 ...
44.489726
1,331
0.760065
6dabb24069dd7d2e7f87b22364bf8f6f48e24574
964
py
Python
chapter17/yunqiCrawl/yunqiCrawl/items.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
1
2019-02-08T03:14:17.000Z
2019-02-08T03:14:17.000Z
chapter17/yunqiCrawl/yunqiCrawl/items.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
chapter17/yunqiCrawl/yunqiCrawl/items.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy
28.352941
52
0.695021
6dabb2d9a3beda1b3745a3582f1367443e6ae076
4,626
py
Python
src/data_prep_uci.py
akumesi48/hyper-genetic
6e1ec16b31bb2259d4a325e08779d5668750a635
[ "MIT" ]
null
null
null
src/data_prep_uci.py
akumesi48/hyper-genetic
6e1ec16b31bb2259d4a325e08779d5668750a635
[ "MIT" ]
null
null
null
src/data_prep_uci.py
akumesi48/hyper-genetic
6e1ec16b31bb2259d4a325e08779d5668750a635
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.model_selection import StratifiedKFold, KFold no_of_folds = 3 # Dataset cmc data_cmc = pd.read_csv("data/cmc.data", header=None) data_cmc[9] = np.where(data_cmc[9] == 1, 0, 1) data_cmc_label = data_cmc.pop(9) x...
47.690722
97
0.61284
6dace628e580ac178333748655d75c5708c2a7c6
502
py
Python
main/views/admin/dashboard/dashboard_controller.py
tiberiucorbu/av-website
f26f44a367d718316442506b130a7034697670b8
[ "MIT" ]
null
null
null
main/views/admin/dashboard/dashboard_controller.py
tiberiucorbu/av-website
f26f44a367d718316442506b130a7034697670b8
[ "MIT" ]
null
null
null
main/views/admin/dashboard/dashboard_controller.py
tiberiucorbu/av-website
f26f44a367d718316442506b130a7034697670b8
[ "MIT" ]
null
null
null
# coding: utf-8 from flask.ext import wtf import flask import wtforms import auth import config import model import util from main import app ############################################################################### # Admin Stuff ###############################################################################...
19.307692
79
0.482072
6dacede88291ab910c867a7b6ae2bd99b6b5522e
1,564
py
Python
scrape/views.py
naydeenmonzon/Maritime_Web_Tool
bc8203b9e62b19eaa93bc018f719004269b2eaee
[ "CC0-1.0" ]
null
null
null
scrape/views.py
naydeenmonzon/Maritime_Web_Tool
bc8203b9e62b19eaa93bc018f719004269b2eaee
[ "CC0-1.0" ]
null
null
null
scrape/views.py
naydeenmonzon/Maritime_Web_Tool
bc8203b9e62b19eaa93bc018f719004269b2eaee
[ "CC0-1.0" ]
null
null
null
from datetime import datetime from django.views.generic.base import TemplateView from django.shortcuts import get_object_or_404, render from django.urls import reverse from .models import MONTH_DICT, MONTH_LIST, YEARS,CARRIER_LIST from .forms import BSfilterForm from .main import _init_SCRAPER def index(request)...
22.028169
65
0.680307
6dad2a388f6001f81a7db3ec98fd61ac8d241fec
935
py
Python
ncdoublescrape/__main__.py
hancush/ncdoublescrape
ea64277514ddff04e634bb464dd5ea6bf05226ae
[ "BSD-3-Clause" ]
null
null
null
ncdoublescrape/__main__.py
hancush/ncdoublescrape
ea64277514ddff04e634bb464dd5ea6bf05226ae
[ "BSD-3-Clause" ]
null
null
null
ncdoublescrape/__main__.py
hancush/ncdoublescrape
ea64277514ddff04e634bb464dd5ea6bf05226ae
[ "BSD-3-Clause" ]
null
null
null
import argparse import importlib import logging import sys logger = logging.getLogger() COMMAND_MODULES = ( 'ncdoublescrape.scrape', ) if __name__ == '__main__': main()
23.375
84
0.637433
6dae00c3441df190db00ecff9c3e1288ac41b72a
2,971
py
Python
deleteAllJobs.py
prelert/engine-python
7a8721fcf718a641acd945300ad9ba95d7cb8e52
[ "Apache-2.0" ]
36
2015-01-31T22:01:52.000Z
2019-04-15T14:29:30.000Z
deleteAllJobs.py
prelert/engine-python
7a8721fcf718a641acd945300ad9ba95d7cb8e52
[ "Apache-2.0" ]
2
2016-01-13T01:00:58.000Z
2016-01-13T01:05:44.000Z
deleteAllJobs.py
prelert/engine-python
7a8721fcf718a641acd945300ad9ba95d7cb8e52
[ "Apache-2.0" ]
18
2015-03-19T18:43:46.000Z
2020-05-05T12:28:02.000Z
#!/usr/bin/env python ############################################################################ # # # Copyright 2014 Prelert Ltd # # ...
34.546512
81
0.492763
6dae65a4786c8a90f1445e3fa12402bbb4864e31
614
py
Python
Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3 from solution1 import twoTeams as f qa = [ ([1, 11, 13, 6, 14], 11), ([3, 4], -1), ([16, 14, 79, 8, 71, 72, 71, 10, 80, 76, 83, 70, 57, 29, 31], 209), ([23, 72, 54, 4, 88, 91, 8, 44], -38), ([23, 74, 57, 33, 61, 99, 19, 12, 19, 38, 77, 70, 20], -50) ] for *q, a ...
20.466667
65
0.415309
6daefd5d0ce54a9298c815543a7ce9308e437d8f
5,037
py
Python
src/lambda_function.py
sd11/react-aws-s3-rekognition
f37ea4ef0242f8c650380ab0c060e0bddb4ff432
[ "Unlicense" ]
null
null
null
src/lambda_function.py
sd11/react-aws-s3-rekognition
f37ea4ef0242f8c650380ab0c060e0bddb4ff432
[ "Unlicense" ]
null
null
null
src/lambda_function.py
sd11/react-aws-s3-rekognition
f37ea4ef0242f8c650380ab0c060e0bddb4ff432
[ "Unlicense" ]
null
null
null
from __future__ import print_function import boto3 from decimal import Decimal import json import urllib from botocore.vendored import requests print('Loading function') rekognition = boto3.client('rekognition') s3 = boto3.resource("s3") # --------------- Helper Functions to call Rekognition APIs -----------------...
37.036765
153
0.596188
6dafe2f9f75624f4e6bac8d36ece57fee0f45bc2
3,836
py
Python
main_server.py
tenzindayoe/example
edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89
[ "MIT" ]
null
null
null
main_server.py
tenzindayoe/example
edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89
[ "MIT" ]
null
null
null
main_server.py
tenzindayoe/example
edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89
[ "MIT" ]
null
null
null
import socket import sqlite3 if __name__ == "__main__": Main().run()
29.282443
142
0.489572
6db079b8869b4ec33596b58ada4916db98ed1a2a
759
py
Python
data_structures/stacks/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
1
2022-01-07T18:04:26.000Z
2022-01-07T18:04:26.000Z
data_structures/stacks/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
null
null
null
data_structures/stacks/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
null
null
null
from typing import Any # There is no point implementing a stack with a linkedlist # since we'd majorly be interacting with the topmost item # in the stakc -- this is what arrays are optimized for
21.685714
59
0.59025
6db2c1ba2f0973e1c395b6375ee992a3997ea0f6
2,967
py
Python
mlib/boot/lang.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
1
2020-06-16T17:26:45.000Z
2020-06-16T17:26:45.000Z
mlib/boot/lang.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
mlib/boot/lang.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
import collections import os from pathlib import Path enum = enumerate HOME = str(Path.home()) DESKTOP = os.path.join(HOME, 'Desktop') DEBUG = True NORMAL = False
20.894366
107
0.664307
6db40aaa8cd6b1e406d9fcd14ef25634a3d1ada0
2,274
py
Python
db/division.py
leaffan/pynhldb
a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1
[ "MIT" ]
3
2017-02-01T15:37:23.000Z
2017-08-31T20:41:46.000Z
db/division.py
leaffan/pynhldb
a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1
[ "MIT" ]
41
2017-09-13T02:13:21.000Z
2018-11-07T03:29:39.000Z
db/division.py
leaffan/pynhldb
a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1
[ "MIT" ]
1
2017-03-09T14:58:39.000Z
2017-03-09T14:58:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from .common import Base, session_scope from .team import Team
30.32
78
0.575198
6db421aa4d6562b0233d7c1b87bdca893ef23405
1,338
py
Python
tests/test_config.py
regro/runthis-server
26d6551560bd6ddabdb9b360ecd327460dfd779a
[ "BSD-3-Clause" ]
2
2019-11-13T23:19:13.000Z
2019-11-15T21:01:51.000Z
tests/test_config.py
regro/runthis-server
26d6551560bd6ddabdb9b360ecd327460dfd779a
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
regro/runthis-server
26d6551560bd6ddabdb9b360ecd327460dfd779a
[ "BSD-3-Clause" ]
null
null
null
import pytest from ruamel import yaml from runthis.server.config import Config, get_config_from_yaml DICT_CONFIG_CONTENT = dict( tty_server="tty-server", command="myshell", docker=True, docker_image="img", host="8.8.8.8", certfile="/path/to/cert.pem", )
26.76
77
0.684604
6db4535a87906f105783cb4e0f22471fe703aef0
290
py
Python
src/constants.py
halilyaman/UlasimdaYapayZekaYarismasi
e9f024454470ad6f40653583f3d7f24cdd4f4fd9
[ "MIT" ]
1
2021-09-23T22:34:12.000Z
2021-09-23T22:34:12.000Z
src/constants.py
halilyaman/UlasimdaYapayZekaYarismasi
e9f024454470ad6f40653583f3d7f24cdd4f4fd9
[ "MIT" ]
null
null
null
src/constants.py
halilyaman/UlasimdaYapayZekaYarismasi
e9f024454470ad6f40653583f3d7f24cdd4f4fd9
[ "MIT" ]
null
null
null
# DISCLAIMER TO CONTEST TEAMS : DO NOT MAKE CHANGES IN THIS FILE. classes = { "Tasit": 0, "Insan": 1, "UAP": 2, "UAI": 3, } landing_statuses = { "Inilebilir": "1", "Inilemez": "0", "Inis Alani Degil": "-1" } base_url = "http://192.168.1.10:3000"
19.333333
67
0.527586
6db5c79371243a32af183f73744db734c3cd20b9
1,380
py
Python
ETL/Data_Operations/data_operations.py
rohanharode/DRAW-Drug-Review-Analysis-Work
89d8df82e1f0b67129727f16c32c038d64af35e2
[ "MIT" ]
null
null
null
ETL/Data_Operations/data_operations.py
rohanharode/DRAW-Drug-Review-Analysis-Work
89d8df82e1f0b67129727f16c32c038d64af35e2
[ "MIT" ]
2
2020-11-08T22:03:32.000Z
2021-06-27T09:22:31.000Z
ETL/Data_Operations/data_operations.py
rohanharode/Drug-Review-Analysis-Work
89d8df82e1f0b67129727f16c32c038d64af35e2
[ "MIT" ]
1
2021-07-08T10:50:36.000Z
2021-07-08T10:50:36.000Z
from ETL.Data_Preprocessing.data_cleaning_and_filtering import cleaning_and_filtering from ETL.Data_Transformation.drug_conditions_grouped import group_conditions from ETL.Data_Transformation.jaccard_similarity import apply_jaccard_similarity from ETL.Data_Transformation.drug_conditions_fuzzy_matching import fuzzy_matc...
37.297297
87
0.826087
6db6887534c339671321ea2ad6c3cae9fe067123
2,345
py
Python
setup.py
Ezbob/dgDynamic
394de1c138c1517c4cdfead879c43db189752d92
[ "MIT" ]
null
null
null
setup.py
Ezbob/dgDynamic
394de1c138c1517c4cdfead879c43db189752d92
[ "MIT" ]
null
null
null
setup.py
Ezbob/dgDynamic
394de1c138c1517c4cdfead879c43db189752d92
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools.command.install import install import os import sys import atexit if __name__ == '__main__': package_name = 'dgdynamic' excludes = [ '__pycache__', 'StochKit' ] extras = [ 'default_config.ini', 'spim.ocaml', 'stochkit...
33.028169
99
0.612367
6db73ff6f5328cc7f6a179960f5ceb876377c833
5,543
py
Python
Robotics/src/otonomsesli.py
ahmetakif/Voice-Controlled-Raspberry-Pi-Robot
00dcc15dfbb7441d6403fb0467b2144e8750cc0c
[ "Apache-2.0" ]
5
2019-08-21T08:08:27.000Z
2021-06-14T06:56:50.000Z
Robotics/src/otonomsesli.py
ahmetakif/Voice-Controlled-Raspberry-Pi-Robot
00dcc15dfbb7441d6403fb0467b2144e8750cc0c
[ "Apache-2.0" ]
null
null
null
Robotics/src/otonomsesli.py
ahmetakif/Voice-Controlled-Raspberry-Pi-Robot
00dcc15dfbb7441d6403fb0467b2144e8750cc0c
[ "Apache-2.0" ]
2
2019-08-21T08:16:58.000Z
2021-04-07T11:56:11.000Z
import os import RPi.GPIO as gpio import time from mesafe import distance motorhizi = 1 aci2 = aci3 = aci4 = 6 aci = 5.5 in4 = 26 in3 = 4 in2 = 12 in1 = 8 solled = 9 sagled = 11 gpio.setwarnings(False) print (" ") print ("otonomgorev yazilimi google speech api sesli komutlari ile robotun otonom hareket e...
20.378676
115
0.541043
6db755c6b9c7ae3c58a95da2aa5e9301523ca9e8
632
py
Python
src/models/discord_users.py
KirtusJ/BirdBot
4440364caefa6ec9acf1bc7cf38605b1d90de20e
[ "MIT" ]
null
null
null
src/models/discord_users.py
KirtusJ/BirdBot
4440364caefa6ec9acf1bc7cf38605b1d90de20e
[ "MIT" ]
null
null
null
src/models/discord_users.py
KirtusJ/BirdBot
4440364caefa6ec9acf1bc7cf38605b1d90de20e
[ "MIT" ]
null
null
null
from sqlalchemy.sql import func from sqlalchemy import Column, BigInteger, String, DateTime, Boolean from .model import database
39.5
92
0.783228
6db800ff348f905ec48118d311341bb879f2f4fd
2,036
py
Python
algorithms/timer.py
terratenff/vrp-gen-alg
3910ff7977a84b03e14c4f500909bcb86e6dd608
[ "MIT" ]
null
null
null
algorithms/timer.py
terratenff/vrp-gen-alg
3910ff7977a84b03e14c4f500909bcb86e6dd608
[ "MIT" ]
null
null
null
algorithms/timer.py
terratenff/vrp-gen-alg
3910ff7977a84b03e14c4f500909bcb86e6dd608
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ timer.py: Implementation of a CPU timer that is used as a part of stopping criteria. """ import time def _time(): """ Convenience function that returns current process time as milliseconds. """ return time.process_time() * 1000
22.130435
81
0.562868
6db82d6e06cc11fb7b83d45d0342ef4c6c52a44f
6,093
py
Python
experiments/livecell/validate_model.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
13
2021-03-09T21:31:09.000Z
2022-03-21T05:24:26.000Z
experiments/livecell/validate_model.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
16
2021-03-02T23:19:34.000Z
2022-03-25T19:43:41.000Z
experiments/livecell/validate_model.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
4
2021-05-18T08:29:33.000Z
2022-02-11T12:16:20.000Z
import argparse import os from glob import glob from pathlib import Path import imageio import h5py import pandas as pd from bioimageio.core import load_resource_description from bioimageio.core.prediction import predict_with_padding from bioimageio.core.prediction_pipeline import create_prediction_pipeline from elf....
42.02069
115
0.683243
6dba80a9622a3df8b603c41e7552e6d4c8ed3c02
23
py
Python
tests/res/foo.py
lepture/werkzeug
627ac8370bc5aa3a04ba365b4ebcd32b6a859863
[ "BSD-3-Clause" ]
1
2019-04-14T19:58:21.000Z
2019-04-14T19:58:21.000Z
tests/res/foo.py
lepture/werkzeug
627ac8370bc5aa3a04ba365b4ebcd32b6a859863
[ "BSD-3-Clause" ]
null
null
null
tests/res/foo.py
lepture/werkzeug
627ac8370bc5aa3a04ba365b4ebcd32b6a859863
[ "BSD-3-Clause" ]
null
null
null
from .bar import value
11.5
22
0.782609
6dbe230462ef91543db856cb4ff084f41755ca26
1,320
py
Python
src/wa_kat/db/downloader.py
WebArchivCZ/WA-KAT
719f7607222f5a4d917c535b2da6371184222101
[ "MIT" ]
3
2017-03-23T12:59:21.000Z
2017-11-22T08:23:14.000Z
src/wa_kat/db/downloader.py
WebArchivCZ/WA-KAT
719f7607222f5a4d917c535b2da6371184222101
[ "MIT" ]
89
2015-06-28T22:10:28.000Z
2017-01-30T16:06:05.000Z
src/wa_kat/db/downloader.py
WebarchivCZ/WA-KAT
719f7607222f5a4d917c535b2da6371184222101
[ "MIT" ]
1
2015-12-17T02:56:59.000Z
2015-12-17T02:56:59.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== import requests from ..settings import USER_AGENT from ..settings import REQUEST_TIMEOUT # Functions & classes =========================================...
25.882353
79
0.537879
6dbfcff192ece7ab414ec98a8d97692a952d7bdd
7,506
py
Python
main.py
qmn/pershing
ec3cc87d9bfb7ca0cf1da1449d695c36df548309
[ "BSD-2-Clause" ]
16
2017-05-20T05:30:59.000Z
2022-02-08T05:41:52.000Z
main.py
qmn/pershing
ec3cc87d9bfb7ca0cf1da1449d695c36df548309
[ "BSD-2-Clause" ]
null
null
null
main.py
qmn/pershing
ec3cc87d9bfb7ca0cf1da1449d695c36df548309
[ "BSD-2-Clause" ]
3
2016-09-18T15:55:37.000Z
2020-12-27T15:36:09.000Z
#!/usr/bin/env python2.7 from __future__ import print_function import json import sys import numpy as np import os.path import time from math import ceil import argparse import nbt from util import blif, cell, cell_library from placer import placer from router import router, extractor, minetime from vis import png ...
37.158416
214
0.641886
6dc096d4b45dd4acd7b5d28912a696afdc093628
296
py
Python
logtest.py
jonathanstrong/log-viewer
83374de21ce807709217e3fffa87b75265b3edd6
[ "MIT" ]
1
2017-03-09T01:18:06.000Z
2017-03-09T01:18:06.000Z
logtest.py
jonathanstrong/log-viewer
83374de21ce807709217e3fffa87b75265b3edd6
[ "MIT" ]
null
null
null
logtest.py
jonathanstrong/log-viewer
83374de21ce807709217e3fffa87b75265b3edd6
[ "MIT" ]
null
null
null
import logging import logging.handlers import time logger = logging.getLogger(__name__) handler = logging.handlers.SocketHandler('localhost', 9033) stream = logging.StreamHandler() logger.addHandler(handler) logger.addHandler(stream) while True: logger.warning('ping') time.sleep(.001)
22.769231
59
0.780405
6dc161a661b51dac6f78e1e2949123e1dfec52e8
5,032
py
Python
text-builder.py
guskma/text-builder
e9de6178ef5ce71a6f022b7932d40a906200578e
[ "MIT" ]
null
null
null
text-builder.py
guskma/text-builder
e9de6178ef5ce71a6f022b7932d40a906200578e
[ "MIT" ]
null
null
null
text-builder.py
guskma/text-builder
e9de6178ef5ce71a6f022b7932d40a906200578e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from argparse import ArgumentParser from collections import OrderedDict import jinja2 import csv import sys import os.path import re if __name__ == "__main__": args = cmd_options() build_templates(args)
29.775148
103
0.584261
6dc1f2e93753dd6196949aaa91494539baeb31b1
2,077
py
Python
hard_grasp.py
bionicdl-sustech/AmphibiousManipulation
397c7dfef6b4dda178a567c36aabfe0f4b05b821
[ "MIT" ]
null
null
null
hard_grasp.py
bionicdl-sustech/AmphibiousManipulation
397c7dfef6b4dda178a567c36aabfe0f4b05b821
[ "MIT" ]
null
null
null
hard_grasp.py
bionicdl-sustech/AmphibiousManipulation
397c7dfef6b4dda178a567c36aabfe0f4b05b821
[ "MIT" ]
null
null
null
import yaml import os import sys import time import numpy as np import cv2 as cv from franka.FrankaController import FrankaController if __name__ == '__main__': ROOT = os.path.dirname(os.path.abspath(__file__)) sys.path.append(ROOT) cfg = read_cfg(ROOT + '/config/grasping _colorseg.yaml') arm = Fr...
25.9625
132
0.629273
6dc61ebe0b329b523bc43f68e083bb96cc389b67
2,913
py
Python
src/server/api.py
Irsutoro/sesame
142959a6e4c814c72f480b0252a028d8586b77da
[ "MIT" ]
null
null
null
src/server/api.py
Irsutoro/sesame
142959a6e4c814c72f480b0252a028d8586b77da
[ "MIT" ]
null
null
null
src/server/api.py
Irsutoro/sesame
142959a6e4c814c72f480b0252a028d8586b77da
[ "MIT" ]
null
null
null
import cherrypy import sesame from database import create_database DATABASE = create_database({'System':'sqlite', 'Database':'testy.db'}) SERVER = None CHERRYPY_CONFIG = { 'server.socket_host': '127.0.0.1', 'server.socket_port': 8080, 'tools.auth_basic.on': True, 'tools.auth_basic.realm': '127.0.0.1',...
30.663158
124
0.6701
6dc710027aba9309fc1e58e6facfd13ec0253ff6
731
py
Python
Domain_Knowledge_based/stanfordNER.py
Mount428/Hate-Speech-Detection
f8644844dda954ebd169aeec54cb4c7361d88a09
[ "MIT" ]
null
null
null
Domain_Knowledge_based/stanfordNER.py
Mount428/Hate-Speech-Detection
f8644844dda954ebd169aeec54cb4c7361d88a09
[ "MIT" ]
null
null
null
Domain_Knowledge_based/stanfordNER.py
Mount428/Hate-Speech-Detection
f8644844dda954ebd169aeec54cb4c7361d88a09
[ "MIT" ]
null
null
null
from nltk.tag import StanfordNERTagger import pandas as pd from sklearn.metrics import f1_score, confusion_matrix from loader import Load train, test = Load('c') ner = StanfordNERTagger('./stanford-ner-2018-10-16/classifiers/english.all.3class.distsim.crf.ser.gz', './stanford-ner-2018-10-16/stanford-ner.jar') data ...
22.84375
148
0.641587
6dc79c5bcc11f79748762758e10ea27d0fe9f70f
41,355
py
Python
pyrif/FuXi/Rete/Network.py
mpetyx/pyrif
2f7ba863030d7337bb39ad502d1e09e26ac950d2
[ "MIT" ]
null
null
null
pyrif/FuXi/Rete/Network.py
mpetyx/pyrif
2f7ba863030d7337bb39ad502d1e09e26ac950d2
[ "MIT" ]
null
null
null
pyrif/FuXi/Rete/Network.py
mpetyx/pyrif
2f7ba863030d7337bb39ad502d1e09e26ac950d2
[ "MIT" ]
null
null
null
""" ==================================================================================== A Rete Network Building and 'Evaluation' Implementation for RDFLib Graphs of Notation 3 rules. The DLP implementation uses this network to automatically building RETE decision trees for OWL forms of DLP Uses Python hashing mechan...
44.182692
132
0.58363
6dc7ac77f93802122ddb1e47bec4538126c006a2
500
py
Python
gcpy/functions/HTTPFunction.py
MaximBazarov/gcpy
92c1d31a8133e19a5d2b27dc8f2e0b7e8fe1d609
[ "MIT" ]
1
2020-07-29T11:20:35.000Z
2020-07-29T11:20:35.000Z
gcpy/functions/HTTPFunction.py
MaximBazarov/gcpy
92c1d31a8133e19a5d2b27dc8f2e0b7e8fe1d609
[ "MIT" ]
null
null
null
gcpy/functions/HTTPFunction.py
MaximBazarov/gcpy
92c1d31a8133e19a5d2b27dc8f2e0b7e8fe1d609
[ "MIT" ]
null
null
null
from gcpy.functions.CloudFunction import CloudFunctionTrigger, CloudFunction from gcpy.utils.binary import binary_decode
22.727273
76
0.7
6dcbed133eb3a7b3cdb7874d0063d3eca6ce4f69
792
py
Python
flask_sqlalchemy/app.py
andreeaionescu/graphql-example
ceeff3888ea87312d4df138093d7f6fcaa1ae973
[ "MIT" ]
null
null
null
flask_sqlalchemy/app.py
andreeaionescu/graphql-example
ceeff3888ea87312d4df138093d7f6fcaa1ae973
[ "MIT" ]
null
null
null
flask_sqlalchemy/app.py
andreeaionescu/graphql-example
ceeff3888ea87312d4df138093d7f6fcaa1ae973
[ "MIT" ]
null
null
null
''' Unlike a RESTful API, there is only a single URL from which GraphQL is accessed. We are going to use Flask to create a server that expose the GraphQL schema under /graphql and a interface for querying it easily: GraphiQL (also under /graphql when accessed by a browser). ''' from flask import Flask from flask_graph...
26.4
119
0.744949
6dcd1f0147fa6de6eaa3f0bce8b1c9dccea62eb4
1,305
py
Python
The HackerRank Interview Preparation Kit/6 - Greedy Algorithms/Reverse Shuffle Merge.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
The HackerRank Interview Preparation Kit/6 - Greedy Algorithms/Reverse Shuffle Merge.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
The HackerRank Interview Preparation Kit/6 - Greedy Algorithms/Reverse Shuffle Merge.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
# # Complete the 'reverseShuffleMerge' function below. # # The function is expected to return a STRING. # The function accepts STRING s as parameter. # import os from collections import defaultdict if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result...
24.166667
73
0.596169
6dcf6d8a2796f5c3d07f258930f33ef3e7528467
4,021
py
Python
src/skansensor/datacollector.py
fadykuzman/Rodeo-App
2972b371ed38fad4f93e6afcb699b51cec865510
[ "BSD-3-Clause" ]
null
null
null
src/skansensor/datacollector.py
fadykuzman/Rodeo-App
2972b371ed38fad4f93e6afcb699b51cec865510
[ "BSD-3-Clause" ]
null
null
null
src/skansensor/datacollector.py
fadykuzman/Rodeo-App
2972b371ed38fad4f93e6afcb699b51cec865510
[ "BSD-3-Clause" ]
null
null
null
""" This class searches for data in a hierarchy of folders and sorts them in a list. Attributes to the data are: path: path to the raw data file type: whether from Picarro, DropSense sensors. data: the data set after reading with the modules: read_dropsense ...
36.225225
92
0.437453
6dd2944b2ee1fbe92298d2147e16828378aa049e
2,794
py
Python
sonypyapi.py
Johannes-Vitt/sonypiapi
74c347d8bdb05fe8955dd4478ecfdc19cfd4ec03
[ "MIT" ]
2
2017-05-12T11:23:48.000Z
2021-06-12T09:38:24.000Z
sonypyapi.py
Johannes-Vitt/sonypiapi
74c347d8bdb05fe8955dd4478ecfdc19cfd4ec03
[ "MIT" ]
null
null
null
sonypyapi.py
Johannes-Vitt/sonypiapi
74c347d8bdb05fe8955dd4478ecfdc19cfd4ec03
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import json import urllib2 import collections url = "http://192.168.122.1:8080/sony/" camera_url = url+"camera" avContent_url = url+"avContent" command_line_call()
29.410526
89
0.586256
6dd2c58e17cfa913515f063e288c4ff6d601590c
875
py
Python
pybuildtool/core/context.py
dozymoe/PyBuildTool
d938a8d6335b801e102159e82a6e0002dfaa1b1a
[ "MIT" ]
5
2017-02-10T07:54:49.000Z
2017-07-11T09:14:26.000Z
pybuildtool/core/context.py
dozymoe/PyBuildTool
d938a8d6335b801e102159e82a6e0002dfaa1b1a
[ "MIT" ]
null
null
null
pybuildtool/core/context.py
dozymoe/PyBuildTool
d938a8d6335b801e102159e82a6e0002dfaa1b1a
[ "MIT" ]
1
2017-05-21T20:35:10.000Z
2017-05-21T20:35:10.000Z
import os from waflib import Context, Errors # pylint:disable=import-error
31.25
76
0.637714
6dd3236b3617415b5e5c4905e33da2de283601a4
3,151
py
Python
FindJenkins.py
realsanjay/DomainRecon_old
936f66404c1a4163b119afc06dca03e588c0756e
[ "MIT" ]
100
2018-04-06T13:50:57.000Z
2018-10-01T14:33:46.000Z
FindJenkins.py
realsanjay/DomainRecon_old
936f66404c1a4163b119afc06dca03e588c0756e
[ "MIT" ]
3
2018-12-06T04:54:24.000Z
2021-02-25T14:59:21.000Z
FindJenkins.py
realsanjay/DomainRecon_old
936f66404c1a4163b119afc06dca03e588c0756e
[ "MIT" ]
16
2018-10-09T13:50:14.000Z
2021-09-01T06:53:34.000Z
import sys import re import requests import requests.cookies from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from time import sleep from GlobalVariables import *
53.40678
369
0.679467
6dd35f03ff9bc671f79e8585b1d7db025e32de94
115
py
Python
tests/conftest.py
techjacker/sitemapgenerator
512d6ea6f36ac661d3e0b1275a055c381b0ce455
[ "MIT" ]
null
null
null
tests/conftest.py
techjacker/sitemapgenerator
512d6ea6f36ac661d3e0b1275a055c381b0ce455
[ "MIT" ]
null
null
null
tests/conftest.py
techjacker/sitemapgenerator
512d6ea6f36ac661d3e0b1275a055c381b0ce455
[ "MIT" ]
null
null
null
import pytest from pytest_httpbin.plugin import httpbin_ca_bundle pytest.fixture(autouse=True)(httpbin_ca_bundle)
23
51
0.869565
6dd36722d7bc153d838406ca8e22b682264cbef0
187
py
Python
freedom/tests/post_test.py
smbdsbrain/wind_of_freedom
b1b19205175db8c824ab5f4b2e8a8e4e2c5d6873
[ "WTFPL" ]
null
null
null
freedom/tests/post_test.py
smbdsbrain/wind_of_freedom
b1b19205175db8c824ab5f4b2e8a8e4e2c5d6873
[ "WTFPL" ]
null
null
null
freedom/tests/post_test.py
smbdsbrain/wind_of_freedom
b1b19205175db8c824ab5f4b2e8a8e4e2c5d6873
[ "WTFPL" ]
null
null
null
from unittest import mock
23.375
43
0.695187
6dd57794c6789b5f5554c5238dd5b5fff9f2b1a6
138
py
Python
Exercise 10/exercise_code/util/__init__.py
CornellLenard/Deep-Learning-Course-Exercises
db32f2b9ab93a50580e93e9dd83be1db7c4c4a19
[ "MIT" ]
null
null
null
Exercise 10/exercise_code/util/__init__.py
CornellLenard/Deep-Learning-Course-Exercises
db32f2b9ab93a50580e93e9dd83be1db7c4c4a19
[ "MIT" ]
null
null
null
Exercise 10/exercise_code/util/__init__.py
CornellLenard/Deep-Learning-Course-Exercises
db32f2b9ab93a50580e93e9dd83be1db7c4c4a19
[ "MIT" ]
null
null
null
"""Util functions""" from .vis_utils import visualizer from .save_model import save_model from .Util import checkParams, checkSize, test
23
46
0.797101
6dd5f7a4941e24796fe51eb9276d1b79188a16ea
15,499
py
Python
au/fixtures/dataset.py
pwais/au2018
edd224e5fb649b9f0095ffad39b94f72f73e4853
[ "Apache-2.0" ]
null
null
null
au/fixtures/dataset.py
pwais/au2018
edd224e5fb649b9f0095ffad39b94f72f73e4853
[ "Apache-2.0" ]
3
2019-01-05T22:43:37.000Z
2019-01-26T05:45:01.000Z
au/fixtures/dataset.py
pwais/au2018
edd224e5fb649b9f0095ffad39b94f72f73e4853
[ "Apache-2.0" ]
1
2020-05-03T21:10:03.000Z
2020-05-03T21:10:03.000Z
import io import os from collections import OrderedDict import imageio import numpy as np from au import conf from au.util import create_log from au import util ## ## Images ## # @property # def label_bytes(self): # if self._label_bytes is '': # # Read lazily # if self._cached_label_arr is not '...
28.595941
160
0.623653
6dd85933e9edf9c201a35fe12dd563f0c97ddb8b
417
py
Python
Python Fundamentals/Regular Expressions/More Exercises/Task05.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Fundamentals/Regular Expressions/More Exercise/Task05.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Fundamentals/Regular Expressions/More Exercise/Task05.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
import re title_regex = r'<title>([^<>]*)<\/title>' info = input() title = re.findall(title_regex, info) title = ''.join(title) print(f"Title: {title}") body_regex = r'<body>.*<\/body>' body = re.findall(body_regex, info) body = ''.join(body) content_regex = r">([^><]*)<" content = re.findall(content_regex, bod...
17.375
41
0.630695
6dda593a7a7bdfb7cf3bae36d8a8315e4135dc5a
230
py
Python
OMS/helpers/idgenerator.py
RumaisaHabib/orphan-management-system
4671f40fb2a979e54dec4d12cc522829c2aa739e
[ "MIT" ]
1
2021-12-24T18:14:35.000Z
2021-12-24T18:14:35.000Z
OMS/helpers/idgenerator.py
RumaisaHabib/orphan-management-system
4671f40fb2a979e54dec4d12cc522829c2aa739e
[ "MIT" ]
null
null
null
OMS/helpers/idgenerator.py
RumaisaHabib/orphan-management-system
4671f40fb2a979e54dec4d12cc522829c2aa739e
[ "MIT" ]
null
null
null
import random
19.166667
63
0.521739
6ddb9acc38ebe942d14b28143c5d4ded77045159
320
py
Python
code_references/graph.py
nathanShepherd/Intelligent-Interface
4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593
[ "MIT" ]
3
2018-03-26T21:08:45.000Z
2018-11-16T21:16:57.000Z
code_references/graph.py
nathanShepherd/Intelligent-Interface
4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593
[ "MIT" ]
null
null
null
code_references/graph.py
nathanShepherd/Intelligent-Interface
4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593
[ "MIT" ]
2
2018-03-26T21:08:51.000Z
2020-05-06T09:22:52.000Z
# Testing various methods to graph with matplotlib # Developed by Nathan Shepherd import numpy as np import matplotlib.pyplot as plt n = 100 y = [round(np.random.normal(scale=n/10)) for _ in range(n)] x = [i for i in range(-n, n)] _y = [] for i in range(-n, n): _y.append(y.count(i)) plt.plot(x, _y) plt.show()
18.823529
59
0.671875
6ddc0994a3a96b2f0830b2f0c227911b21552e3f
1,741
py
Python
scripts/taxonomy_frequency.py
STRIDES-Codes/Exploring-the-Microbiome-
bd29c8c74d8f40a58b63db28815acb4081f20d6b
[ "MIT" ]
null
null
null
scripts/taxonomy_frequency.py
STRIDES-Codes/Exploring-the-Microbiome-
bd29c8c74d8f40a58b63db28815acb4081f20d6b
[ "MIT" ]
null
null
null
scripts/taxonomy_frequency.py
STRIDES-Codes/Exploring-the-Microbiome-
bd29c8c74d8f40a58b63db28815acb4081f20d6b
[ "MIT" ]
2
2021-06-05T07:40:20.000Z
2021-06-05T08:02:58.000Z
import sys from Bio import Entrez from collections import Counter import pandas as pd ########################################### ############################################### ###############################################
31.654545
118
0.564618
6dddd5e456a7ccaaa8659db73eee87ff70f0dccb
91
py
Python
02-array-seq/2_13.py
393562632/example-code
4a5da5726408284aed9e01f93a25a0d8dd348fb5
[ "MIT" ]
null
null
null
02-array-seq/2_13.py
393562632/example-code
4a5da5726408284aed9e01f93a25a0d8dd348fb5
[ "MIT" ]
null
null
null
02-array-seq/2_13.py
393562632/example-code
4a5da5726408284aed9e01f93a25a0d8dd348fb5
[ "MIT" ]
null
null
null
weird_board = [['_'] * 3] *3 print(weird_board) weird_board[0][2] = 'X' print(weird_board)
18.2
28
0.659341
6dddfed29dba919369dee25697fc63339866499f
12,754
py
Python
gipf/GipfLogic.py
callix2/alphaZero-gipf
fd8dac7606611126d2d14beca0333b53bd5ee995
[ "MIT" ]
null
null
null
gipf/GipfLogic.py
callix2/alphaZero-gipf
fd8dac7606611126d2d14beca0333b53bd5ee995
[ "MIT" ]
null
null
null
gipf/GipfLogic.py
callix2/alphaZero-gipf
fd8dac7606611126d2d14beca0333b53bd5ee995
[ "MIT" ]
null
null
null
''' Author: Eric P. Nichols Date: Feb 8, 2008. Board class. Board data: 1=white, -1=black, 0=empty first dim is column , 2nd is row: pieces[1][7] is the square in column 2, at the opposite end of the board in row 8. Squares are stored and manipulated as (x,y) tuples. x is the column, y is the row. ''' imp...
36.130312
148
0.509644