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
44f47fa7be7161ab737b4f9c294931c50761dff9
1,710
py
Python
python/sorting/quick_sort.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
null
null
null
python/sorting/quick_sort.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
11
2020-01-09T06:53:45.000Z
2022-02-11T01:34:44.000Z
python/sorting/quick_sort.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
1
2017-03-18T17:19:43.000Z
2017-03-18T17:19:43.000Z
def solution(A): # O(NlogN) """ Sort numbers in list A using quick sort. >>> solution([5, 2, 2, 4, 1, 3, 7, 9]) [1, 2, 2, 3, 4, 5, 7, 9] >>> solution([2, 4, 6, 2, 0, 8]) [0, 2, 2, 4, 6, 8] >>> solution([1, 3, 5, 7, 3, 9, 1, 5]) [1, 1,...
42.75
78
0.261988
44f538f3949e70e9287024559503410db3c272af
1,691
py
Python
setup.py
syncrypt/trio-inspector
386167e09e056fd27fbed8738891dedc72578ee4
[ "Apache-2.0", "MIT" ]
8
2019-04-17T22:29:14.000Z
2021-05-27T23:34:40.000Z
setup.py
syncrypt/trio-inspector
386167e09e056fd27fbed8738891dedc72578ee4
[ "Apache-2.0", "MIT" ]
3
2019-08-13T13:32:13.000Z
2021-05-08T07:18:38.000Z
setup.py
syncrypt/trio-inspector
386167e09e056fd27fbed8738891dedc72578ee4
[ "Apache-2.0", "MIT" ]
2
2020-01-03T08:11:11.000Z
2021-05-07T07:02:12.000Z
from setuptools import setup, find_packages exec(open("trio_inspector/_version.py", encoding="utf-8").read()) LONG_DESC = open("README.md", encoding="utf-8").read() setup( name="trio-inspector", version=__version__, description="A browser-based monitor for Trio", url="https://github.com/syncrypt/trio...
31.90566
70
0.581904
44f73375d6020d1969aa41be0a796b01b2e269b6
143
py
Python
nipy/algorithms/statistics/formula/__init__.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
236
2015-01-09T21:28:37.000Z
2022-03-27T11:51:58.000Z
nipy/algorithms/statistics/formula/__init__.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
171
2015-03-23T00:31:43.000Z
2021-11-22T12:43:00.000Z
nipy/algorithms/statistics/formula/__init__.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
94
2015-02-01T12:39:47.000Z
2022-01-27T06:38:19.000Z
""" Formula and related objects """ from .formulae import (Formula, Term, terms, Factor, make_recarray, natural_spline)
35.75
67
0.636364
44f7b040ae5a720fbeb66ef4b27631b354791099
1,119
py
Python
Python/95.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/95.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/95.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None
26.642857
54
0.422699
44f8c313abc197a6cbaf4a7a0e766b03137619a3
3,922
py
Python
faps/make_offspring.py
ellisztamas/faps
fdf5ba990eaf85bfcf05b5eb757285ef40e8f918
[ "MIT" ]
null
null
null
faps/make_offspring.py
ellisztamas/faps
fdf5ba990eaf85bfcf05b5eb757285ef40e8f918
[ "MIT" ]
9
2018-02-15T11:19:04.000Z
2020-05-22T17:54:07.000Z
faps/make_offspring.py
ellisztamas/faps
fdf5ba990eaf85bfcf05b5eb757285ef40e8f918
[ "MIT" ]
null
null
null
import numpy as np from faps.genotypeArray import genotypeArray from faps.calculate_geno_probs import calculate_geno_probs def make_offspring(parents, noffs=None, dam_list=None, sire_list=None, mu=1e-12, family_name='offs'): """ Mate individuals in a base population to create simulated offspring. Lists of ...
46.141176
121
0.694544
44f8c47600b789d5dd92cdc562549d532583231e
2,362
py
Python
tests/functional/api/test_user_api.py
PhilipWafula/faulu-apis-demo
082735ce8b2bfd010d5b4be9491a5c94a8f745d6
[ "MIT" ]
2
2020-05-29T03:43:28.000Z
2020-06-11T16:03:36.000Z
tests/functional/api/test_user_api.py
PhilipWafula/Flask-Server-Side
082735ce8b2bfd010d5b4be9491a5c94a8f745d6
[ "MIT" ]
15
2020-04-06T10:27:06.000Z
2020-08-16T09:25:20.000Z
tests/functional/api/test_user_api.py
PhilipWafula/faulu-apis-demo
082735ce8b2bfd010d5b4be9491a5c94a8f745d6
[ "MIT" ]
1
2020-06-07T14:09:05.000Z
2020-06-07T14:09:05.000Z
from app.server.models.user import User def test_get_all_users(test_client, activated_admin_user): """ GIVEN a flask application WHEN a GET request sent to '/api/v1/user/' with a valid auth token THEN check all users are returned. """ authentication_token = activated_admin_user.encode_auth_tok...
35.787879
90
0.647756
44f956a849a6c4d35aee25d62b6bcf916bf88c50
7,576
py
Python
iprir/tests.py
account-login/iprir
6b268bfff3f5af68f1cbf812f01104d4db238e68
[ "MIT" ]
2
2017-03-01T09:27:18.000Z
2019-10-03T06:36:18.000Z
iprir/tests.py
account-login/iprir
6b268bfff3f5af68f1cbf812f01104d4db238e68
[ "MIT" ]
null
null
null
iprir/tests.py
account-login/iprir
6b268bfff3f5af68f1cbf812f01104d4db238e68
[ "MIT" ]
null
null
null
from ipaddress import IPv4Address, IPv6Address, IPv6Network from contextlib import contextmanager import tempfile import os import random import unittest import requests import iprir from iprir.record import RIRRecord, ip_to_int from iprir.parser import parse_file, parse_string from iprir.database import DB from ipri...
29.59375
93
0.606389
44fa7ab080f682a67685d77fc4c1632e1036494b
820
py
Python
Aron/Day10/answer.py
coolafabbe/AdventOfCode2021
97a2e4c7d887ef6f1ae477becb25cc1d97114781
[ "MIT" ]
null
null
null
Aron/Day10/answer.py
coolafabbe/AdventOfCode2021
97a2e4c7d887ef6f1ae477becb25cc1d97114781
[ "MIT" ]
null
null
null
Aron/Day10/answer.py
coolafabbe/AdventOfCode2021
97a2e4c7d887ef6f1ae477becb25cc1d97114781
[ "MIT" ]
null
null
null
import sys with open(sys.argv[1], "r") as file: entries = file.read().splitlines() open_chars = ['(', '[', '{', '<'] close_chars = [')', ']', '}', '>'] char_map = {o:c for o, c in zip(open_chars, close_chars)} points = {')': 3, ']':57, '}':1197, '>': 25137} syntax_score = 0 acp_scores = [] for line in entries...
21.578947
57
0.536585
44fc2f7950308d857850a4bf2b09c5e329cf743e
1,207
py
Python
bin/compute_stats.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
28
2018-08-08T11:57:31.000Z
2022-01-12T23:06:18.000Z
bin/compute_stats.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
108
2018-08-08T12:35:06.000Z
2019-07-19T22:57:19.000Z
bin/compute_stats.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
16
2018-08-03T18:48:00.000Z
2021-11-09T00:35:35.000Z
#!/usr/bin/env python3 import sys import argparse import os import os.path import re regex = re.compile(r'^(\d+):(\d\d):(\d\d)\.(\d+)$') alt_regex = re.compile(r'^(\d+):(\d\d):(\d\d)$') count = 0 total = 0.0 _max = 0.0 _min = 100000 minimum_considered = 1.0 excluded = 0 for line in sys.stdin: if count == 100000...
24.632653
129
0.574979
44fcb92ee46b65e1d813631b2192b3e9c704fc0b
2,622
py
Python
tetris/tetris.py
janmaltel/pytetris
a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa
[ "MIT" ]
2
2019-11-19T12:54:17.000Z
2020-08-19T13:25:35.000Z
tetris/tetris.py
janmaltel/pytetris
a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa
[ "MIT" ]
null
null
null
tetris/tetris.py
janmaltel/pytetris
a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa
[ "MIT" ]
null
null
null
from tetris.board import generate_empty_board from tetris import board, tetromino import numba from numba import jitclass, bool_, int64 from tetris.utils import print_tetromino, print_board_to_string # Needed for numba.@jitclass specTetris = [ ('num_columns', int64), ('num_rows', int64), ('feature_type', ...
35.432432
112
0.690694
44fcd428acfed83c3b1b8317f6fe3c4d1cb8bb2f
1,752
py
Python
endtoend_tests/forseti/notifier/inventory_summary_export_test.py
VGerris/forseti-security
59dc7607b14709e7da4db2751889b4fc757816b6
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
endtoend_tests/forseti/notifier/inventory_summary_export_test.py
VGerris/forseti-security
59dc7607b14709e7da4db2751889b4fc757816b6
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
endtoend_tests/forseti/notifier/inventory_summary_export_test.py
VGerris/forseti-security
59dc7607b14709e7da4db2751889b4fc757816b6
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2020 The Forseti Security 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 ap...
35.04
77
0.687215
44fcf97e01a85045813ffdd909c930123aef9a7d
2,084
py
Python
telemetry/roles/slurm_telemetry/files/monster/process.py
Lakshmi-Patneedi/omnia
40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3
[ "Apache-2.0" ]
1
2021-10-13T21:48:15.000Z
2021-10-13T21:48:15.000Z
telemetry/roles/slurm_telemetry/files/monster/process.py
Lakshmi-Patneedi/omnia
40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3
[ "Apache-2.0" ]
null
null
null
telemetry/roles/slurm_telemetry/files/monster/process.py
Lakshmi-Patneedi/omnia
40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3
[ "Apache-2.0" ]
null
null
null
""" MIT License Copyright (c) 2022 Texas Tech University 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, pu...
33.079365
79
0.702015
44fd0f9e7f12ff8da71ca85c28bc5c71ce7aba00
2,289
py
Python
ParamSklearn/components/__init__.py
automl/paramsklearn
0466802aad28bfc6df945f874b4b81a3f337009d
[ "BSD-3-Clause" ]
8
2015-10-09T08:23:51.000Z
2020-07-06T01:49:37.000Z
ParamSklearn/components/__init__.py
automl/paramsklearn
0466802aad28bfc6df945f874b4b81a3f337009d
[ "BSD-3-Clause" ]
2
2015-10-31T12:57:23.000Z
2015-11-24T12:54:04.000Z
ParamSklearn/components/__init__.py
automl/paramsklearn
0466802aad28bfc6df945f874b4b81a3f337009d
[ "BSD-3-Clause" ]
8
2015-12-03T17:28:35.000Z
2021-06-26T17:32:29.000Z
"""ParamSklearn can be easily extended with new classification and preprocessing methods. At import time, ParamSklearn checks the directory ``ParamSklearn/components/classification`` for classification algorithms and ``ParamSklearn/components/preprocessing`` for preprocessing algorithms. To be found, the algorithm must...
49.76087
155
0.811271
44fdd039c46ad6223ab5a5bf2364e61f4d9c428e
658
py
Python
adv/yuya.py
qwewqa/dl
d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0
[ "Apache-2.0" ]
null
null
null
adv/yuya.py
qwewqa/dl
d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0
[ "Apache-2.0" ]
null
null
null
adv/yuya.py
qwewqa/dl
d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0
[ "Apache-2.0" ]
null
null
null
import adv.adv_test from core.advbase import * from slot.d import Dreadking_Rathalos if __name__ == '__main__': conf = {} adv.adv_test.test(module(), conf)
21.225806
55
0.542553
44fed48b903a45718e278b7bbb853329b5ff3a78
669
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Analyzers. """ from elasticsearch_dsl import analyzer from elasticsearch_dsl.analysis import token_filter __title__ = 'django_elasticsearch_dsl_drf.analyzers' __author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' __copyright__ = '2017-2019 Artur Barseghyan' __license__ = 'GPL 2.0/LGPL 2.1' __all__ = ( '...
23.068966
60
0.762332
44fef0a3b086e649cd8bbdf5e4629c04e482ccb9
2,594
py
Python
data/main.py
danielxiangzl/hotstuff
e701f5556102aae99dd1e3a654c15b2cda15579f
[ "Apache-2.0" ]
null
null
null
data/main.py
danielxiangzl/hotstuff
e701f5556102aae99dd1e3a654c15b2cda15579f
[ "Apache-2.0" ]
null
null
null
data/main.py
danielxiangzl/hotstuff
e701f5556102aae99dd1e3a654c15b2cda15579f
[ "Apache-2.0" ]
1
2021-08-08T05:08:49.000Z
2021-08-08T05:08:49.000Z
from glob import glob from os.path import join import os from matplotlib.pyplot import hexbin from parse import LogAggregator from plot import Ploter if __name__ == '__main__': max_latencies = [2_000, 5_000] # For TPS graphs. # Parse the results. for system in ['3-chain', '2-chain', 'ditto-async', 'di...
33.688312
78
0.581727
78000ffb092a4de142fe1f75fa2e53b2d742b53a
43,347
py
Python
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-05T10:13:36.000Z
2021-03-05T10:13:36.000Z
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-17T07:23:39.000Z
2021-09-20T12:34:51.000Z
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
32.93845
162
0.63054
7803a8c8d00022860aa2c1e297b0776b9bac5e6f
4,437
py
Python
LGTV/__init__.py
Maccraft123/LGWebOSRemote
52c481c83e78d06457b58cc68a87fefbfb80c7ef
[ "MIT" ]
null
null
null
LGTV/__init__.py
Maccraft123/LGWebOSRemote
52c481c83e78d06457b58cc68a87fefbfb80c7ef
[ "MIT" ]
null
null
null
LGTV/__init__.py
Maccraft123/LGWebOSRemote
52c481c83e78d06457b58cc68a87fefbfb80c7ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from inspect import getargspec import json import os import sys from time import sleep import logging from .scan import LGTVScan from .remote import LGTVRemote from .auth import LGTVAuth search_config = [ "/etc/lgtv/config.json", "~/.lgtv/config.j...
25.5
106
0.497634
7804747b1e4973dfb20f21c2d72f6ee3df3427ee
508
py
Python
tests/test_django_cms_templates.py
judy2k/epcon
0a033f915bd79c1e93e6408069e33655990fbf07
[ "BSD-2-Clause" ]
null
null
null
tests/test_django_cms_templates.py
judy2k/epcon
0a033f915bd79c1e93e6408069e33655990fbf07
[ "BSD-2-Clause" ]
null
null
null
tests/test_django_cms_templates.py
judy2k/epcon
0a033f915bd79c1e93e6408069e33655990fbf07
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, absolute_import from pytest import mark from tests.common_tools import template_used # , template_paths # needs to be marked because Django CMS will interfere
29.882353
69
0.777559
7804b1932916d494a0caef5d17c396d3ce3feb1f
5,809
py
Python
data/master_cycle_gan_dataset.py
RegentLee/master_research
ee8e45abc890c7103c1c9917954c5958b48782f6
[ "BSD-3-Clause" ]
null
null
null
data/master_cycle_gan_dataset.py
RegentLee/master_research
ee8e45abc890c7103c1c9917954c5958b48782f6
[ "BSD-3-Clause" ]
null
null
null
data/master_cycle_gan_dataset.py
RegentLee/master_research
ee8e45abc890c7103c1c9917954c5958b48782f6
[ "BSD-3-Clause" ]
null
null
null
"""Dataset class template This module provides a template for users to implement custom datasets. You can specify '--dataset_mode template' to use this dataset. The class name should be consistent with both the filename and its dataset_mode option. The filename should be <dataset_mode>_dataset.py The class name should...
41.791367
158
0.632123
78053273af9c507537b21f75edef0b6e3855dd00
317
py
Python
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
11
2021-02-25T23:27:14.000Z
2021-08-18T10:04:18.000Z
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
1
2021-07-17T15:49:43.000Z
2021-08-03T06:56:04.000Z
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
null
null
null
# GRAYSCALE WHITE = (255, 255, 255) L_GRAY = (190, 190, 190) GRAY = (127, 127, 127) D_GRAY = (63, 63, 63 ) BLACK = (0, 0, 0 ) # RGB RED = (255, 0, 0 ) YELLOW = (255, 255, 0 ) GREEN = (0, 255, 0 ) INDIGO = (0, 255, 255) BLUE = (0, 0, 255) MAGENTA = (255, 0, 255)
22.642857
26
0.444795
7807f36da3c8917bfeb72b16ca3098a963e923cd
134
py
Python
gateway/api_manager/urls.py
BitingCat/superm
f358d325bc8b087df508592d986a2d1e60d03959
[ "Apache-2.0" ]
null
null
null
gateway/api_manager/urls.py
BitingCat/superm
f358d325bc8b087df508592d986a2d1e60d03959
[ "Apache-2.0" ]
null
null
null
gateway/api_manager/urls.py
BitingCat/superm
f358d325bc8b087df508592d986a2d1e60d03959
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url import os from gateway.api_manager import views urlpatterns = [ url(r'^superm$', views.superm) ]
13.4
37
0.746269
7809b78f24ddb2cbb5d91e66401e349e1a70f060
332
py
Python
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
23
2016-12-16T09:03:18.000Z
2022-02-25T19:19:23.000Z
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
30
2016-12-20T11:11:42.000Z
2019-11-19T15:23:59.000Z
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
4
2016-12-11T18:29:11.000Z
2018-04-22T07:51:28.000Z
#!/usr/bin/env python import sys from powerline.bindings.wm import DEFAULT_UPDATE_INTERVAL from powerline.bindings.wm.awesome import run if __name__ == '__main__': main()
18.444444
57
0.704819
780aa1d44fdf013fa8158b9597ec531da2bacc1c
882
py
Python
zero_to_one_hundred/processors/refresh_map_processor.py
fossabot/0to100
37faa1340b2ec8b87e5d4c268c8caf521ea164cb
[ "Apache-2.0" ]
null
null
null
zero_to_one_hundred/processors/refresh_map_processor.py
fossabot/0to100
37faa1340b2ec8b87e5d4c268c8caf521ea164cb
[ "Apache-2.0" ]
null
null
null
zero_to_one_hundred/processors/refresh_map_processor.py
fossabot/0to100
37faa1340b2ec8b87e5d4c268c8caf521ea164cb
[ "Apache-2.0" ]
null
null
null
"""RefreshMapProcessor: refresh sections in map """ # pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203 from configs.config import ConfigMap from models.map import Map
32.666667
137
0.689342
780b6383b9441cbbb52f13931df26519c2613bf3
14,047
py
Python
sharkdata_core/dataset_utils.py
sharkdata/sharkdata
67793fd1771c9c2e599e62d57fcef432be5a8340
[ "MIT" ]
2
2016-07-20T07:09:51.000Z
2016-08-12T12:20:20.000Z
sharkdata_core/dataset_utils.py
sharkdata/sharkdata
67793fd1771c9c2e599e62d57fcef432be5a8340
[ "MIT" ]
1
2016-01-21T12:18:17.000Z
2016-01-21T12:20:50.000Z
sharkdata_core/dataset_utils.py
sharkdata/sharkdata
67793fd1771c9c2e599e62d57fcef432be5a8340
[ "MIT" ]
2
2016-07-20T07:13:35.000Z
2016-08-12T11:40:15.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Copyright (c) 2013-present SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import pathlib from django.conf import settings import app_datasets.models as datasets_models import app_c...
40.134286
152
0.484587
780c8d67ab8158a6c2a0fc0dac2bd5c621680885
1,660
py
Python
python_scripts/load_script/helper.py
Tutkovics/Scaling_MSc
66ffda5df7acc6b310c55905a147d812193b4be4
[ "Apache-2.0" ]
null
null
null
python_scripts/load_script/helper.py
Tutkovics/Scaling_MSc
66ffda5df7acc6b310c55905a147d812193b4be4
[ "Apache-2.0" ]
null
null
null
python_scripts/load_script/helper.py
Tutkovics/Scaling_MSc
66ffda5df7acc6b310c55905a147d812193b4be4
[ "Apache-2.0" ]
null
null
null
import time import yaml def read_config_file(file_name): """Setup config parameters Read and store configuration parameters from given config file """ with open(file_name) as config_file: config_values = {} config = yaml.safe_load(config_file) # get values from yaml ...
36.086957
71
0.633133
780cec5f5edff01a3292dabe0c19af13755eed4a
8,789
py
Python
tiddlyweb/web/wsgi.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
tiddlyweb/web/wsgi.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
tiddlyweb/web/wsgi.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
""" WSGI Middleware apps that haven't gotten around to being extracted to their own modules. """ import logging import time import urllib from tiddlyweb.model.policy import UserRequiredError, ForbiddenError from tiddlyweb.store import Store from tiddlyweb.web.http import HTTP403, HTTP302 from tiddlyweb.web.util impor...
30.730769
78
0.596882
780d135009c65b71e679ad98d281b418ce5f55fe
1,534
py
Python
tests/test_parent_data_param.py
robhowley/treetl
fef395edb077fc73ca7621f1e5099c04bb781d68
[ "MIT" ]
8
2016-07-16T19:24:31.000Z
2019-05-28T06:34:47.000Z
tests/test_parent_data_param.py
robhowley/treetl
fef395edb077fc73ca7621f1e5099c04bb781d68
[ "MIT" ]
null
null
null
tests/test_parent_data_param.py
robhowley/treetl
fef395edb077fc73ca7621f1e5099c04bb781d68
[ "MIT" ]
2
2017-09-16T20:25:20.000Z
2019-10-27T13:44:33.000Z
import unittest if __name__ == '__main__': unittest.main()
28.943396
102
0.591917
780fadebf915440001592a011c8b065de65bb374
1,243
py
Python
ml_recommend/cos_demo.py
jarvisqi/machine_learning
cba3f2fed87a3de2c6b707903d37f936e5f0cd5b
[ "MIT" ]
2
2018-09-25T07:54:31.000Z
2021-01-12T08:57:23.000Z
ml_recommend/cos_demo.py
jarvisqi/nlp_learn
53c5b4087dbfc30e47451fd3f5261ba44f523f39
[ "MIT" ]
null
null
null
ml_recommend/cos_demo.py
jarvisqi/nlp_learn
53c5b4087dbfc30e47451fd3f5261ba44f523f39
[ "MIT" ]
1
2019-06-25T07:28:27.000Z
2019-06-25T07:28:27.000Z
# -*- coding: utf-8 -*- # Python from math import sqrt users3 = { "David": {"": 4, "": 5,"2": 4, "": 1}, "Matt": {"": 3, "": 4,"2": 4, "": 1}, "Ben": {"3": 4, "": 3,"2": 3, "": 1}, "Chris": {"3": 3, "": 4,"": 4, "2": 3}, "Tori": {"3": 5, "": 4,"": 5, "": 3} ...
36.558824
81
0.5358
780fb3b531fe4dbaf617a0a6b5ace4197ef2ce42
355
py
Python
cv2/__init__.py
goodclass/OpenCV_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
6
2019-08-13T21:56:47.000Z
2021-03-23T19:52:55.000Z
cv2/__init__.py
goodclass/opencv_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
null
null
null
cv2/__init__.py
goodclass/opencv_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
null
null
null
import importlib from .cv2 import * from .data import * # wildcard import above does not import "private" variables like __version__ # this makes them available globals().update(importlib.import_module('cv2.cv2').__dict__) imshow = imshow_image
20.882353
76
0.752113
7810d779e5150a8da080692129dd8ba323975421
70,466
py
Python
RayTracing/gui/gui.py
TEM-Gemini-Centre/RayTracing
fa4b6057c9a7307f75e52f0bd7a4a13751f832ec
[ "MIT" ]
null
null
null
RayTracing/gui/gui.py
TEM-Gemini-Centre/RayTracing
fa4b6057c9a7307f75e52f0bd7a4a13751f832ec
[ "MIT" ]
null
null
null
RayTracing/gui/gui.py
TEM-Gemini-Centre/RayTracing
fa4b6057c9a7307f75e52f0bd7a4a13751f832ec
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtGui, QtCore, Qt, uic from PyQt5.QtCore import pyqtSignal, pyqtSlot from RayTracing.gui.mplwidget import * from RayTracing.RayTracing import * from tabulate import tabulate from pathlib import Path from matplotlib.lines import lineStyles from matplotlib.colors import to_hex, to_rgb import ...
38.909994
335
0.652059
7810ed6a751d4492d7c42bf9fe88d5e9684d0272
532
py
Python
app.py
lilbillybiscuit/tensorflow_chessbot
7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45
[ "MIT" ]
null
null
null
app.py
lilbillybiscuit/tensorflow_chessbot
7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45
[ "MIT" ]
null
null
null
app.py
lilbillybiscuit/tensorflow_chessbot
7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45
[ "MIT" ]
null
null
null
import json import base64 import os
22.166667
65
0.631579
7811235be67bd4477bed0dde9c6d06a0d0935165
976
py
Python
plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import DoProxiedDatasourceCallInput, DoProxiedDatasourceCallOutput # Custom imports below
34.857143
115
0.646516
78115951a587f10b8a500670a6eababb14671283
7,220
py
Python
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
import random,math import numpy as np import jittor as jt from jittor.nn import Sequential,LeakyReLU
40.111111
317
0.608033
7812b8f4ff19f85ceff7a725ced6fd5ca666d547
2,748
py
Python
3/deck_handler.py
diblaze/TDP002
41c9c2155e2ad8cc4047ea912edd463042d95362
[ "MIT" ]
null
null
null
3/deck_handler.py
diblaze/TDP002
41c9c2155e2ad8cc4047ea912edd463042d95362
[ "MIT" ]
null
null
null
3/deck_handler.py
diblaze/TDP002
41c9c2155e2ad8cc4047ea912edd463042d95362
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import random # acc. to assignment we only need two suits (half of deck) #spades = 1..13 #hearts = 1..13 * 2 suits = {"spades": 1, "hearts": 2} values = {"one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, "ten": 10, "elseven": 11, "twelv...
28.040816
128
0.664483
7812d67db7a500259addfa44401133c4cd5059de
403
py
Python
iapcompython/prog_4_2.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
iapcompython/prog_4_2.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
iapcompython/prog_4_2.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
# Programa: Carro Velho ou Carro Novo (usando apenas if 2 vezes)? idade = int(input('Digite a idade do seu carro: ')) if idade <= 3: print('O seu carro novo!') if idade > 3: print('O seu carro velho!') #Se observarmos de perto no h um s numero que torne ambas as condies verdadeiras ao mesmo tempo. A segund...
44.777778
186
0.722084
7813c500e651edf48e529ef83919155389e7b77e
3,069
py
Python
nixie_clock/nixie_clock.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
nixie_clock/nixie_clock.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
2
2017-08-24T18:55:37.000Z
2017-08-24T18:59:06.000Z
nixie_clock/nixie_clock.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
import RPi.GPIO as GPIO from socket import AF_INET, SOCK_DGRAM import socket import struct, time GPIO.setmode(GPIO.BOARD) __author__ = 'Sergey' nc = NixieClock() nc.run()
33
116
0.614532
78150c3f14d3b4c2aff18129bfca862c94bb1aec
2,106
py
Python
django_db_views/tests/tests.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
django_db_views/tests/tests.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
django_db_views/tests/tests.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
import django import os from unittest.mock import patch from django.apps import apps from django.conf import settings from django.db.migrations.loader import MigrationLoader from django.db.migrations.state import ProjectState from django.db.migrations.recorder import MigrationRecorder from django.db import connections...
35.694915
116
0.716049
7816f05b04eda6b9f559f45e46216ae5a6fecedf
609
py
Python
code/util/create_dir.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
14
2021-09-09T11:22:17.000Z
2022-03-14T10:06:36.000Z
code/util/create_dir.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
1
2021-11-24T10:30:36.000Z
2021-11-24T10:30:36.000Z
code/util/create_dir.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
5
2021-11-02T09:29:49.000Z
2022-03-25T09:44:25.000Z
""" Helper function for create directories """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os def create_dirs(dirs): """ Utility function for creating directories Args: dirs (list of string): A list of direct...
22.555556
71
0.678161
7819128754038c5b686dca37e3fccc203c4ae962
7,751
py
Python
reman/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
reman/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
reman/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-22 07:34 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion
63.532787
183
0.633338
781955390893d95f18fcf3689df89dc587380e35
4,236
py
Python
iotsim/controls.py
mmamaev/iotsim
d47587dea106f312ff4ee407a3d693a96fc46799
[ "BSD-3-Clause" ]
null
null
null
iotsim/controls.py
mmamaev/iotsim
d47587dea106f312ff4ee407a3d693a96fc46799
[ "BSD-3-Clause" ]
null
null
null
iotsim/controls.py
mmamaev/iotsim
d47587dea106f312ff4ee407a3d693a96fc46799
[ "BSD-3-Clause" ]
null
null
null
from .core import Control, AssemblyContext, Trigger from .utils import to_name import numpy as np from typing import List, Callable
36.205128
84
0.598206
781c36222d396a1f95b5c079f6b6cc5e00a4eb34
1,172
py
Python
pinax/wiki/conf.py
pinax/pinax-wiki
8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e
[ "MIT" ]
29
2015-04-07T11:51:22.000Z
2022-02-16T06:41:34.000Z
pinax/wiki/conf.py
pinax/pinax-wiki
8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e
[ "MIT" ]
20
2015-03-26T00:33:49.000Z
2020-08-30T21:55:05.000Z
pinax/wiki/conf.py
pinax/pinax-wiki
8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e
[ "MIT" ]
6
2015-04-15T02:48:45.000Z
2019-05-06T21:03:13.000Z
import importlib from django.conf import settings # noqa from django.core.exceptions import ImproperlyConfigured from appconf import AppConf
25.478261
83
0.662116
781e0a0704d2f7732109db9bb6f242cbca4737e9
2,471
py
Python
kathisattic/apps/product/views.py
ninapavlich/kathisattic
0585e63f43da6841f7fc0d69f090d7ab556dcec0
[ "MIT" ]
null
null
null
kathisattic/apps/product/views.py
ninapavlich/kathisattic
0585e63f43da6841f7fc0d69f090d7ab556dcec0
[ "MIT" ]
null
null
null
kathisattic/apps/product/views.py
ninapavlich/kathisattic
0585e63f43da6841f7fc0d69f090d7ab556dcec0
[ "MIT" ]
null
null
null
from django.db.models import Q from django.views.generic.edit import CreateView from django.views.generic.list import ListView from carbon.compounds.page.views import PageDetail as BasePageDetail from carbon.compounds.page.views import PageTagView as BasePageTagView from carbon.compounds.page.views import PageBlockVi...
27.764045
154
0.68879
781e80e46d0d877cb49f27c6269ade3d9039f890
174
py
Python
examples/python/simple/datastruct_print_tuple.py
airgiser/ucb
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
1
2022-01-08T14:59:44.000Z
2022-01-08T14:59:44.000Z
examples/python/simple/datastruct_print_tuple.py
airgiser/just-for-fun
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
null
null
null
examples/python/simple/datastruct_print_tuple.py
airgiser/just-for-fun
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
null
null
null
#!/usr/bin/python # Filename: datastruct_print_tuple.py age = 25 name = 'Airgis' print '%s is %d years old.' %(name, age) print 'Why is %s playing with the python?' % name
19.333333
49
0.678161
781f4fc5078b64546c321f926c3e524d78132cf7
5,124
py
Python
snowCore_dailyMeanProfiles_2017-2019.py
michaeltown-phd/snowisoDataMunging
dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39
[ "MIT" ]
null
null
null
snowCore_dailyMeanProfiles_2017-2019.py
michaeltown-phd/snowisoDataMunging
dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39
[ "MIT" ]
11
2022-03-25T22:46:57.000Z
2022-03-30T22:48:59.000Z
snowCore_dailyMeanProfiles_2017-2019.py
michaeltown-phd/snowisoDataMunging
dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 18 09:08:20 2022 A script to plot mean daily cores for intercomparison of features as a function of time through a season. @author: michaeltown """ #libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import...
46.162162
127
0.680523
7820dee9a037495f3b5046586b45f8279d2ed452
3,147
py
Python
fpn/test.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
null
null
null
fpn/test.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
1
2020-12-01T07:11:08.000Z
2020-12-01T09:28:55.000Z
fpn/test.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 17 23:2 7:28 2019 @author: Winham """ import os import numpy as np from keras.models import load_model from keras.utils import to_categorical from data_preprocess import * import mit_utils as utils import time import matplotlib.pyplot as plt import ten...
27.605263
68
0.575151
78229ade32d0366ad4b3eef09f67c6320b26c881
235
py
Python
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
1
2021-01-23T23:49:50.000Z
2021-01-23T23:49:50.000Z
# content of ./test_smtpsimple.py import pytest
19.583333
57
0.693617
7822ce08c98bbae4ad9b61ae8abb7997cf1d7c6e
902
py
Python
solutions/codeforces/158B.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
1
2021-01-02T04:31:34.000Z
2021-01-02T04:31:34.000Z
solutions/codeforces/158B.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
null
null
null
solutions/codeforces/158B.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
null
null
null
''' check ''' groups = [0, 0, 0, 0] n = int(input()) data = input() carsnum = 0 for i in range(4): groups[i] = data.count(str(i+1)) # deal with 4 people group carsnum += groups[3] groups[3] = 0 # deal with 2 people group carsnum += groups[1] // 2 groups[1] %= 2 # deal with 1 and 3 people group if groups[0] <= gro...
19.608696
39
0.531042
78242ab3f8e265a2bb01183be9d47df6398aa178
4,113
py
Python
mppsolar/devices/device.py
BarkinSpider/mpp-solar
071ca0cd9feea458b1e36dc020aa704b2000e431
[ "MIT" ]
1
2021-03-02T22:44:04.000Z
2021-03-02T22:44:04.000Z
mppsolar/devices/device.py
BarkinSpider/mpp-solar
071ca0cd9feea458b1e36dc020aa704b2000e431
[ "MIT" ]
null
null
null
mppsolar/devices/device.py
BarkinSpider/mpp-solar
071ca0cd9feea458b1e36dc020aa704b2000e431
[ "MIT" ]
null
null
null
import abc import importlib import logging log = logging.getLogger("MPP-Solar") SERIAL_TYPE_TEST = 1 SERIAL_TYPE_USB = 2 SERIAL_TYPE_ESP32 = 4 SERIAL_TYPE_SERIAL = 8
31.883721
82
0.624605
7824f64ce3bb3cc3961afdec7e3c6fa3721e5452
2,539
py
Python
autism/views.py
jenith-hue/Lung_Cancer
69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5
[ "MIT" ]
null
null
null
autism/views.py
jenith-hue/Lung_Cancer
69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5
[ "MIT" ]
null
null
null
autism/views.py
jenith-hue/Lung_Cancer
69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseRedirect from .forms import Predict from .ML_ALGORITHM import you import numpy
29.523256
64
0.554943
78251293e5c3da715709caaa79f7051c05a25145
724
py
Python
tests/util/test_immutabledict.py
SelfHacked/django-model-wrappers
2aa0bb773d61c6b5c794126b1dc4f06d622ff079
[ "MIT" ]
null
null
null
tests/util/test_immutabledict.py
SelfHacked/django-model-wrappers
2aa0bb773d61c6b5c794126b1dc4f06d622ff079
[ "MIT" ]
null
null
null
tests/util/test_immutabledict.py
SelfHacked/django-model-wrappers
2aa0bb773d61c6b5c794126b1dc4f06d622ff079
[ "MIT" ]
1
2021-06-03T12:04:22.000Z
2021-06-03T12:04:22.000Z
import pytest from model_wrappers.util.datatypes import ImmutableDict d = { 'a': 0, 'b': 'x', } im = ImmutableDict(d)
17.238095
55
0.537293
78267247f1ad73db4ca30cdb83a52c4d8988159a
1,708
py
Python
Program.py
evanxia1018/CSE539_Project_LLE
881ea2278c39c16716e5de83dd8abbd267806a35
[ "MIT" ]
2
2019-11-10T02:04:52.000Z
2020-04-19T03:51:51.000Z
Program.py
SarahLynnePu/CSE539_Project_LLE
881ea2278c39c16716e5de83dd8abbd267806a35
[ "MIT" ]
null
null
null
Program.py
SarahLynnePu/CSE539_Project_LLE
881ea2278c39c16716e5de83dd8abbd267806a35
[ "MIT" ]
3
2017-12-28T14:09:24.000Z
2020-04-19T04:25:03.000Z
import time import Generation_Stage import Evaluate_lle import Evaluate_pca import Evaluation_Stage print("**********************************************************************") print("Hello. This is CSE569 Project Demo, produced by Haisi Yi and Zheng Xia") print("*****************************************************...
32.846154
137
0.566745
7828bc8cfbb067ddc1a2bb084a724e2b6671e88f
3,868
py
Python
medical_peek_api/controller/exception_handler_controller.py
WillCallahan/medical_peek
e27e547ea7c8bc1deea8668090ff582020d7d6b2
[ "MIT" ]
null
null
null
medical_peek_api/controller/exception_handler_controller.py
WillCallahan/medical_peek
e27e547ea7c8bc1deea8668090ff582020d7d6b2
[ "MIT" ]
12
2021-04-06T18:25:47.000Z
2022-03-12T00:52:42.000Z
medical_peek_api/controller/exception_handler_controller.py
WillCallahan/medical_peek
e27e547ea7c8bc1deea8668090ff582020d7d6b2
[ "MIT" ]
null
null
null
import logging from django.core.handlers.wsgi import WSGIRequest from django.http import JsonResponse from django.views.defaults import server_error, page_not_found from rest_framework import status from medical_peek_core.model.j_send import JSend, JSendSerializer from medical_peek_core.utility.exception_utility impo...
44.45977
117
0.735264
78297729387284e49b1f84299398b83a0dc26f20
66,793
py
Python
interface/Python/smg2s/smg2s.py
SMG2S/SMG2S
4e61cf36951289c8deeb74e312131430c1ac12f8
[ "MIT" ]
2
2019-03-22T10:36:01.000Z
2019-11-17T20:24:53.000Z
interface/Python/smg2s/smg2s.py
SMG2S/SMG2S
4e61cf36951289c8deeb74e312131430c1ac12f8
[ "MIT" ]
1
2020-04-07T07:55:29.000Z
2020-04-10T09:07:36.000Z
interface/Python/smg2s/smg2s.py
SMG2S/SMG2S
4e61cf36951289c8deeb74e312131430c1ac12f8
[ "MIT" ]
2
2018-08-22T21:34:21.000Z
2020-03-24T09:41:57.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): _smg2s = sw...
42.926093
153
0.771099
782a6e70bb1c62e99b1c75451a5570b2a5aaefd1
1,545
py
Python
tests/regressiontests/admin_util/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_util/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_util/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.contrib.admin.util import NestedObjects from models import Count
26.186441
74
0.603236
782abecf863cb582e8ab49f243f14f653cba734a
1,188
py
Python
00 UNICEF/03 Data New/aedes-main/best_aedes_model.py
Cirrolytix/aedes_unicef_2022
23a26d57d5316ba44d573b4c1dcefcad4e10b157
[ "MIT" ]
null
null
null
00 UNICEF/03 Data New/aedes-main/best_aedes_model.py
Cirrolytix/aedes_unicef_2022
23a26d57d5316ba44d573b4c1dcefcad4e10b157
[ "MIT" ]
null
null
null
00 UNICEF/03 Data New/aedes-main/best_aedes_model.py
Cirrolytix/aedes_unicef_2022
23a26d57d5316ba44d573b4c1dcefcad4e10b157
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from xgboost import XGBClassifier from sklearn.impute import SimpleImputer # NOTE: Make sure that the outcome column is labeled 'target' in the data file tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtyp...
45.692308
157
0.81229
782c3b76e7c1eaa2f8d3ae8a4ab9167a73ffb9ea
3,379
py
Python
espressodb/base/tests/views/urls.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
8
2019-12-10T04:30:01.000Z
2020-10-30T09:40:22.000Z
espressodb/base/tests/views/urls.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
41
2019-10-23T00:26:25.000Z
2021-10-21T07:55:57.000Z
espressodb/base/tests/views/urls.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
3
2020-01-09T21:29:09.000Z
2021-03-14T22:20:52.000Z
"""Unittest for all present urls """ from django.test import TestCase from django.contrib.auth.models import User from espressodb.base.utilities.apps import get_apps_slug_map import espressodb.base.utilities.blackmagicsorcery as re URLS = ["/", "/populate/", "/populate-result/"] LOGGED_IN_URLS = [ "/notificatio...
31.877358
89
0.586268
782d89dac1dfccbb2a0576e3f87a042fe314d75a
167
py
Python
problem0616.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0616.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0616.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #616 Creative numbers - Project Euler # https://projecteuler.net/problem=616 # # Code by Kevin Marciniak # ###########################
18.555556
39
0.479042
782dc6f49c603eca2fa962e30fbfc31a6e32254b
1,723
py
Python
python/datagraph/graphviz/dmo/digraph_text_cleanser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datagraph/graphviz/dmo/digraph_text_cleanser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datagraph/graphviz/dmo/digraph_text_cleanser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- from base import BaseObject
29.20339
103
0.572838
782ed811b859ad654cfa2961ac4c649ce8d9f83b
7,550
py
Python
sqlglot/optimizer/qualify_columns.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
sqlglot/optimizer/qualify_columns.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
sqlglot/optimizer/qualify_columns.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
import itertools import sqlglot.expressions as exp from sqlglot.errors import OptimizeError from sqlglot.optimizer.schema import ensure_schema from sqlglot.optimizer.scope import traverse_scope def qualify_columns(expression, schema): """ Rewrite sqlglot AST to have fully qualified columns. Example: ...
33.114035
86
0.649669
782f027acd854915903862b95967abf5208d8465
5,314
py
Python
model_zoo/cifar10_subclass/cifar10_subclass.py
sorrycc/elasticdl
01439e0bf7bba6ebfffe265916fd41370a59c29d
[ "MIT" ]
2
2021-07-07T16:31:50.000Z
2021-11-08T09:23:01.000Z
model_zoo/cifar10_subclass/cifar10_subclass.py
sorrycc/elasticdl
01439e0bf7bba6ebfffe265916fd41370a59c29d
[ "MIT" ]
null
null
null
model_zoo/cifar10_subclass/cifar10_subclass.py
sorrycc/elasticdl
01439e0bf7bba6ebfffe265916fd41370a59c29d
[ "MIT" ]
1
2021-08-18T18:14:38.000Z
2021-08-18T18:14:38.000Z
import tensorflow as tf from elasticdl.python.common.constants import Mode
30.022599
75
0.547234
78323ad51e27c4fa0767acc4613f077ad4236011
2,686
py
Python
XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py
QwaddleMan/XNATSlicer
5aa06e4f2a578898d34cf0ea703963b9556f2da3
[ "BSD-3-Clause" ]
4
2016-03-03T08:56:52.000Z
2021-12-10T21:14:58.000Z
XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py
keithcallenberg/XNATSlicer
4a8462b2e81984cc114d25fb2b1c981457a11878
[ "BSD-3-Clause" ]
null
null
null
XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py
keithcallenberg/XNATSlicer
4a8462b2e81984cc114d25fb2b1c981457a11878
[ "BSD-3-Clause" ]
5
2015-04-22T01:53:40.000Z
2021-03-29T12:14:32.000Z
__author__ = "Sunil Kumar (kumar.sunil.p@gmail.com)" __copyright__ = "Copyright 2014, Washington University in St. Louis" __credits__ = ["Sunil Kumar", "Steve Pieper", "Dan Marcus"] __license__ = "XNAT Software License Agreement " + \ "(see: http://xnat.org/about/license.php)" __version__ = "2.1.1" __main...
22.762712
68
0.546165
783363529819816ac2b465db1a4d67cdbd93edcd
481
py
Python
keephistory/keephistory/signals.py
ivangeorgiev/django-bootcamp
53d5d06cb3414419bbd99ff6f0e1b751cbe02a06
[ "CC0-1.0" ]
null
null
null
keephistory/keephistory/signals.py
ivangeorgiev/django-bootcamp
53d5d06cb3414419bbd99ff6f0e1b751cbe02a06
[ "CC0-1.0" ]
null
null
null
keephistory/keephistory/signals.py
ivangeorgiev/django-bootcamp
53d5d06cb3414419bbd99ff6f0e1b751cbe02a06
[ "CC0-1.0" ]
null
null
null
from django.db.models.signals import pre_delete from django.dispatch import receiver from django.utils.timezone import now from .models import Task, TaskUpdate # post_save.connect(close_task_updates, sender=Task)
34.357143
84
0.75052
7833a508141379ddb62d6f7c97d3b1f4b1653b14
2,904
py
Python
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
from unittest import TestCase import os from musicscore.musicstream.streamvoice import SimpleFormat from musicscore.musictree.treebeat import TreeBeat from musicscore.musictree.treechordflags1 import PizzFlag1, PercussionFlag1 from musicscore.musictree.treemeasure import TreeMeasure from musicscore.musictree.treepart ...
42.086957
79
0.513774
7834c30ab8619ffee86e60107eaa29650d251c74
3,239
py
Python
lib/jsonprocesser(old).py
wmizzi/tn2capstone
e9855ba6b49e2d05293df74846c64fa0c220a25d
[ "BSD-2-Clause" ]
null
null
null
lib/jsonprocesser(old).py
wmizzi/tn2capstone
e9855ba6b49e2d05293df74846c64fa0c220a25d
[ "BSD-2-Clause" ]
null
null
null
lib/jsonprocesser(old).py
wmizzi/tn2capstone
e9855ba6b49e2d05293df74846c64fa0c220a25d
[ "BSD-2-Clause" ]
null
null
null
import json import uuid import datetime import os import socket
32.39
137
0.521766
7835dd4b0a54930acba1f3445b9513092882a896
24,101
py
Python
fst2/processers.py
superjcd/fst2
da4bd97bc9e028af55e1099940bd0b1e5bb34ded
[ "MIT" ]
2
2020-03-15T07:44:46.000Z
2021-05-17T04:32:46.000Z
fst2/processers.py
superjcd/fst2
da4bd97bc9e028af55e1099940bd0b1e5bb34ded
[ "MIT" ]
null
null
null
fst2/processers.py
superjcd/fst2
da4bd97bc9e028af55e1099940bd0b1e5bb34ded
[ "MIT" ]
1
2020-05-13T08:56:25.000Z
2020-05-13T08:56:25.000Z
import copy import os import csv import json import torch import logging from transformers.file_utils import is_tf_available, is_torch_available from functools import wraps from .utils import CACHE_PARAMS logger = logging.getLogger(__name__) def add_examples( self, texts_or_text_and_labels, labels=No...
42.506173
249
0.604788
783c54535432ca817e5091aa60095976f7a9378c
180
py
Python
bitcoinscript/debugger/__init__.py
fungibit/bitcoinscript
ced6fb37dfa40eac7341826c758842e0ed7e7475
[ "MIT" ]
1
2017-10-25T17:11:44.000Z
2017-10-25T17:11:44.000Z
bitcoinscript/debugger/__init__.py
fungibit/bitcoinscript
ced6fb37dfa40eac7341826c758842e0ed7e7475
[ "MIT" ]
3
2017-03-10T05:27:29.000Z
2017-04-07T16:06:28.000Z
bitcoinscript/debugger/__init__.py
fungibit/bitcoinscript
ced6fb37dfa40eac7341826c758842e0ed7e7475
[ "MIT" ]
null
null
null
from .dbg import run_in_debugger, start_debugger from .utils import debug_sample # suppress pyflakes "imported but unused" warnings: run_in_debugger, start_debugger debug_sample
22.5
51
0.838889
783cc0ae7ce9094203cd5255e4827fee654d5210
530
py
Python
jupyter_cache/cli/utils.py
ExecutableBookProject/sandbox
e72c2121b460c8558f9e6257b3b53353b9e7f35c
[ "MIT" ]
2
2020-03-11T23:14:00.000Z
2020-04-07T14:58:51.000Z
jupyter_cache/cli/utils.py
ExecutableBookProject/sandbox
e72c2121b460c8558f9e6257b3b53353b9e7f35c
[ "MIT" ]
41
2020-02-19T20:18:56.000Z
2020-04-20T01:25:55.000Z
jupyter_cache/cli/utils.py
ExecutableBookProject/sandbox
e72c2121b460c8558f9e6257b3b53353b9e7f35c
[ "MIT" ]
1
2020-03-15T05:45:15.000Z
2020-03-15T05:45:15.000Z
import logging import click def setup_logger(logger: logging.Logger) -> None: """Add handler to log to click.""" try: import click_log except ImportError: logger.addHandler(ClickLogHandler()) else: click_log.basic_config(logger)
21.2
49
0.632075
783e84924972e61c147a0b1b3dc18448354ffac3
4,401
py
Python
Samples/codes/matopt_review/add_optimizer.py
wilsongis/3DP_Experiments
da9bd3b4ba1d82bac7dcfa27d86634add59db087
[ "MIT", "Unlicense" ]
null
null
null
Samples/codes/matopt_review/add_optimizer.py
wilsongis/3DP_Experiments
da9bd3b4ba1d82bac7dcfa27d86634add59db087
[ "MIT", "Unlicense" ]
null
null
null
Samples/codes/matopt_review/add_optimizer.py
wilsongis/3DP_Experiments
da9bd3b4ba1d82bac7dcfa27d86634add59db087
[ "MIT", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2021 Showa Denko Materials co., Ltd. All rights reserved. This software is for non-profit use only. THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTIC...
46.326316
205
0.709839
783f73ab72792697849c2074b2a97ea34ea37f7c
1,354
py
Python
eos_db/test/test_credits.py
cedadev/eos-db
b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6
[ "BSD-3-Clause" ]
null
null
null
eos_db/test/test_credits.py
cedadev/eos-db
b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6
[ "BSD-3-Clause" ]
null
null
null
eos_db/test/test_credits.py
cedadev/eos-db
b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6
[ "BSD-3-Clause" ]
null
null
null
"""Tests for credit addition, subtraction and querying. See also tests in test_user_api """ import unittest import requests from eos_db.server import choose_engine, create_user, touch_to_add_credit from eos_db.server import check_credit, check_actor_id if __name__ == '__main__': unittest.main()
28.808511
84
0.654357
783f8c5198e30e4f05f207b05946f413e6a68383
5,727
py
Python
Euler 13.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Euler 13.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Euler 13.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
#ce stevilko zapisemo kot string je problem super enostaven stevilka = "37107287533902102798797998220837590246510135740250 \n\ 46376937677490009712648124896970078050417018260538 \n\ 74324986199524741059474233309513058123726617309629 \n\ 91942213363574161572522430563301811072406154908250 \n\ 230675882075393461711719803...
49.37069
66
0.91706
783fc3228d1bb98e46b23e9c61a33784429ce728
2,733
py
Python
visualization/data_plot.py
Jingyu6/forl_2021
8679b41ece66551d14cfb31fa42a467eb4c1fb0b
[ "MIT" ]
null
null
null
visualization/data_plot.py
Jingyu6/forl_2021
8679b41ece66551d14cfb31fa42a467eb4c1fb0b
[ "MIT" ]
null
null
null
visualization/data_plot.py
Jingyu6/forl_2021
8679b41ece66551d14cfb31fa42a467eb4c1fb0b
[ "MIT" ]
null
null
null
import gym # type: ignore import matplotlib # type: ignore import matplotlib.pyplot as plt # type: ignore import numpy as np from pathlib import Path # type: ignore from typing import List, Union, Literal, Dict, Any from visualization.data_parser import Records, D3rlpyCSVDataParser def plot_records_list( axes: matp...
35.038462
105
0.750823
7840eb695f4d59312dcc4726ecededb6274d25a1
2,947
py
Python
game_matrix.py
GeorgiaLu/game-2048
f256974ad65d869943630564d9eac697c4e8dc04
[ "MIT" ]
1
2019-01-08T04:10:22.000Z
2019-01-08T04:10:22.000Z
game_matrix.py
GeorgiaLu/game-2048
f256974ad65d869943630564d9eac697c4e8dc04
[ "MIT" ]
null
null
null
game_matrix.py
GeorgiaLu/game-2048
f256974ad65d869943630564d9eac697c4e8dc04
[ "MIT" ]
null
null
null
import numpy import random from enum import Enum
33.488636
89
0.490329
7842f6c64be0b6e9300407e9d61cb1d099892c8f
372
py
Python
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import re import json
20.666667
116
0.674731
7843611d198318d6de99e455666135c54010d9a9
2,509
py
Python
packages/w3af/w3af/core/controllers/profiling/pytracemalloc.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/controllers/profiling/pytracemalloc.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/controllers/profiling/pytracemalloc.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" pytracemalloc.py Copyright 2015 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope th...
25.09
81
0.723794
78442b33bc9640a1fb48adf69170375475735e0f
5,581
py
Python
cognite/model_hosting/schedules/schedules.py
cognitedata/cognite-model-hosting
89f58e25f0e3c3a37006e60f52246da0b00a0066
[ "Apache-2.0" ]
4
2019-05-27T12:51:45.000Z
2020-02-26T08:16:30.000Z
cognite/model_hosting/schedules/schedules.py
cognitedata/cognite-model-hosting
89f58e25f0e3c3a37006e60f52246da0b00a0066
[ "Apache-2.0" ]
26
2019-03-18T15:10:20.000Z
2021-06-21T05:47:24.000Z
cognite/model_hosting/schedules/schedules.py
cognitedata/cognite-model-hosting
89f58e25f0e3c3a37006e60f52246da0b00a0066
[ "Apache-2.0" ]
null
null
null
import json from collections import defaultdict from typing import Dict, List, Union import numpy as np import pandas as pd from marshmallow import EXCLUDE, Schema, ValidationError, fields, validate from cognite.model_hosting._cognite_model_hosting_common.utils import timestamp_to_ms from cognite.model_hosting.schedu...
39.302817
118
0.656334
78458e44258fabd7ac71356828e9e387c8902634
3,262
py
Python
utils/watcher.py
OliRafa/SRFR-GAN
b7995421f5a965d35dd83f3107e095d83446868b
[ "Unlicense" ]
null
null
null
utils/watcher.py
OliRafa/SRFR-GAN
b7995421f5a965d35dd83f3107e095d83446868b
[ "Unlicense" ]
3
2021-04-30T21:14:05.000Z
2022-02-10T01:29:47.000Z
utils/watcher.py
OliRafa/SRFR-GAN
b7995421f5a965d35dd83f3107e095d83446868b
[ "Unlicense" ]
1
2020-07-11T18:43:48.000Z
2020-07-11T18:43:48.000Z
import os import psutil import multiprocessing as mp from mtcnn import MTCNN class MtcnnDetectFaces(): if __name__ == '__main__': mp.set_start_method('spawn')
30.203704
81
0.64347
78480e99cab78715400c1a2ba08f71032a31b6fe
578
py
Python
src/matplot.py
AutuanLiu/PyCon
ba0e2005d1e0301d77bb8111ff67b663dc234784
[ "MIT" ]
1
2018-03-18T11:07:15.000Z
2018-03-18T11:07:15.000Z
src/matplot.py
AutuanLiu/PyCon
ba0e2005d1e0301d77bb8111ff67b663dc234784
[ "MIT" ]
null
null
null
src/matplot.py
AutuanLiu/PyCon
ba0e2005d1e0301d77bb8111ff67b663dc234784
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jun 4 14:56:00 2017 @author: AutuanLiu """ import numpy as np import matplotlib.pyplot as plt # test so so plt.plot([3, 1, 4, -5, 6]) plt.ylabel("grade") plt.savefig("test", dpi = 600) plt.show() a = np.arange(0, 5, .02) plt.subplot(2, 1, 1) plt.plot(a, f(a)) plt.subplot...
17
62
0.586505
7848a09465a19c587425eb6807accc3751bd0e0a
1,439
py
Python
lib.py
Zenahr/ALUB
cc9161d6e30a7f5278761954333fcdcee9598259
[ "MIT" ]
null
null
null
lib.py
Zenahr/ALUB
cc9161d6e30a7f5278761954333fcdcee9598259
[ "MIT" ]
null
null
null
lib.py
Zenahr/ALUB
cc9161d6e30a7f5278761954333fcdcee9598259
[ "MIT" ]
null
null
null
import random import autopy import pyautogui import time import json from threading import Timer import cv2 import pytesseract if __name__ == '__main__': print( should_click() )
27.150943
81
0.62057
784be104b596367c04897f8c45fd427758c904d4
10,993
py
Python
games/bocce/frame.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
null
null
null
games/bocce/frame.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
1
2022-02-19T20:40:44.000Z
2022-02-19T20:40:44.000Z
games/bocce/frame.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
null
null
null
# imports from .ball import Pallino from .throw import Throw from .cv.ballfinder import BallFinder from scipy.spatial import distance as dist # for now, these are "pixels" (not "inches" or "cm") TOO_CLOSE_MARGIN = 5
35.009554
105
0.615665
784d108b6268f8877b4e86d9af933400fa7c6a6e
341
py
Python
dataent/patches/v4_2/print_with_letterhead.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
dataent/patches/v4_2/print_with_letterhead.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
6
2020-03-24T17:15:56.000Z
2022-02-10T18:41:31.000Z
dataent/patches/v4_2/print_with_letterhead.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import dataent
28.416667
69
0.782991
784d88dfa8270065fc4ec2b2539f03dba716b534
2,738
py
Python
timer.py
mrozowski/TaskTimer
66b069c14a7117502bb657738869f3ae33870c04
[ "MIT" ]
1
2021-07-10T17:51:01.000Z
2021-07-10T17:51:01.000Z
timer.py
mrozowski/TaskTimer
66b069c14a7117502bb657738869f3ae33870c04
[ "MIT" ]
null
null
null
timer.py
mrozowski/TaskTimer
66b069c14a7117502bb657738869f3ae33870c04
[ "MIT" ]
null
null
null
import threading, time, signal from datetime import timedelta from PyQt5 import QtWidgets from playsound import playsound import win10toast from view import Dial isActive = False # global variable that says if timer is set
31.471264
139
0.565741
784e5bf0a0b8655d9a0a603fb8012750676dd86a
1,450
py
Python
trafficgen/benignGenerator/DataGen/wordpressautonew/LoginWordPressData.py
cyberdeception/deepdig
482061bc5039181a95631fcb8515d990eb2e16a9
[ "Apache-2.0" ]
5
2020-03-07T21:28:51.000Z
2022-03-11T06:03:46.000Z
trafficgen/benignGenerator/DataGen/wordpressautonew/LoginWordPressData.py
cyberdeception/deepdig
482061bc5039181a95631fcb8515d990eb2e16a9
[ "Apache-2.0" ]
null
null
null
trafficgen/benignGenerator/DataGen/wordpressautonew/LoginWordPressData.py
cyberdeception/deepdig
482061bc5039181a95631fcb8515d990eb2e16a9
[ "Apache-2.0" ]
4
2019-10-18T18:32:35.000Z
2021-07-16T11:52:38.000Z
import unittest from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait import time from BaseWordpressData import BaseWordPressData
28.431373
78
0.671034
78505ac1a273f3c03ae2bd2074823ab5e86e19af
4,688
py
Python
src/utils/options.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
src/utils/options.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
src/utils/options.py
JiachengLi1995/FastRec
88174f8beb822c6b5b348c888de184d48d9d013c
[ "MIT" ]
null
null
null
from src.datasets import DATASETS from src.dataloaders import DATALOADERS from src.models import MODELS from src.trainers import TRAINERS import argparse parser = argparse.ArgumentParser(description='SASRec') ################ # Test ################ parser.add_argument('--load_pretrained_weights', type=str, default=...
50.956522
132
0.706485
7850cdbf5aa5b5cdc836f3b7b8695fc3dc13997b
124
py
Python
mainapp/StaffView.py
Facele55/E-Commerce
20103ee09a3c349eb3a0fffeb16b7fc86c5cabbc
[ "Apache-2.0" ]
null
null
null
mainapp/StaffView.py
Facele55/E-Commerce
20103ee09a3c349eb3a0fffeb16b7fc86c5cabbc
[ "Apache-2.0" ]
null
null
null
mainapp/StaffView.py
Facele55/E-Commerce
20103ee09a3c349eb3a0fffeb16b7fc86c5cabbc
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render
20.666667
60
0.790323
7852009b941cee12bd32debb6b11c9f5ed52309b
3,416
py
Python
progress_job_iterator.py
Ariel96cs/SimpleMapReduceFramework
7cf482f94b1ed1e6436a7b229dfe09c3c0906d56
[ "MIT" ]
null
null
null
progress_job_iterator.py
Ariel96cs/SimpleMapReduceFramework
7cf482f94b1ed1e6436a7b229dfe09c3c0906d56
[ "MIT" ]
null
null
null
progress_job_iterator.py
Ariel96cs/SimpleMapReduceFramework
7cf482f94b1ed1e6436a7b229dfe09c3c0906d56
[ "MIT" ]
null
null
null
import message_tools as mt import time
40.188235
116
0.602459
7852458867e37b272e2b2586e35216cc3c5811b9
137
py
Python
module.py
supperhappie/web_scraper
334cc877d06fe0083f52fca84de7fb906a0ff5f7
[ "MIT" ]
null
null
null
module.py
supperhappie/web_scraper
334cc877d06fe0083f52fca84de7fb906a0ff5f7
[ "MIT" ]
null
null
null
module.py
supperhappie/web_scraper
334cc877d06fe0083f52fca84de7fb906a0ff5f7
[ "MIT" ]
null
null
null
from math import * print(ceil(4.2)) print(sum([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1])) print(fsum([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1]))
27.4
50
0.569343
7853fc867b9268e27df1fa9c7f6378f0521175e4
7,310
py
Python
untitled.py
czyczyyzc/MyMaskRCNN
e5a451fd05c593ae05d6e596813fc63aad7af2de
[ "MIT" ]
1
2020-10-16T08:10:12.000Z
2020-10-16T08:10:12.000Z
untitled.py
czyczyyzc/MyMaskRCNN
e5a451fd05c593ae05d6e596813fc63aad7af2de
[ "MIT" ]
null
null
null
untitled.py
czyczyyzc/MyMaskRCNN
e5a451fd05c593ae05d6e596813fc63aad7af2de
[ "MIT" ]
null
null
null
BACKBONE = "resnet101" BACKBONE_STRIDES = [4, 8, 16, 32, 64] POST_NMS_ROIS_TRAINING = 2000 POST_NMS_ROIS_INFERENCE = 1000 RPN_NMS_THRESHOLD = 0.7 POOL_SIZE = 7 MASK_POOL_SIZE = 14 TRAIN_BN = False # Defaulting to False since bat...
41.067416
126
0.583174
7854206db388f69d88e15202d41b4806273c060f
6,198
py
Python
skm_tea/engine/trainer.py
StanfordMIMI/skm-tea
5678bfcebad4fdc30de62b319d96ec1775e1671c
[ "MIT" ]
26
2021-08-28T06:57:50.000Z
2022-02-17T06:33:41.000Z
skm_tea/engine/trainer.py
StanfordMIMI/skm-tea
5678bfcebad4fdc30de62b319d96ec1775e1671c
[ "MIT" ]
6
2021-10-20T16:04:12.000Z
2022-03-15T20:16:52.000Z
skm_tea/engine/trainer.py
StanfordMIMI/skm-tea
5678bfcebad4fdc30de62b319d96ec1775e1671c
[ "MIT" ]
4
2021-11-15T08:32:41.000Z
2022-02-23T18:54:30.000Z
import logging import os import pytorch_lightning as pl from meddlr.config.config import CfgNode from meddlr.engine.trainer import convert_cfg_time_to_iter as _convert_cfg_time_to_iter from meddlr.engine.trainer import format_as_iter from meddlr.utils import env from meddlr.utils.env import supports_wandb from pytorch...
38.02454
99
0.666989
78542c8e023300ee416e5d670aa78aae94c4eae7
1,189
py
Python
uw_canvas/tests/test_quizzes.py
uw-it-aca/uw-restclients-canvas
2c54d7676649ec18129817992890878ace1ec6c6
[ "Apache-2.0" ]
1
2019-11-26T21:38:50.000Z
2019-11-26T21:38:50.000Z
uw_canvas/tests/test_quizzes.py
uw-it-aca/uw-restclients-canvas
2c54d7676649ec18129817992890878ace1ec6c6
[ "Apache-2.0" ]
135
2017-04-04T23:11:26.000Z
2021-05-28T17:00:20.000Z
uw_canvas/tests/test_quizzes.py
uw-it-aca/uw-restclients-canvas
2c54d7676649ec18129817992890878ace1ec6c6
[ "Apache-2.0" ]
2
2020-05-20T20:36:55.000Z
2022-03-05T00:23:44.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from unittest import TestCase from uw_canvas.utilities import fdao_canvas_override from uw_canvas.quizzes import Quizzes from uw_canvas.models import Quiz
32.135135
76
0.660219
78556b4b51cbe376c3830238e0401b6707b4b355
87
py
Python
decision_record/record/apps.py
scotthsieh0503/decision-record
a868f5c8b94d621453b330eefad1045b7afb55d4
[ "MIT" ]
3
2020-02-05T06:42:15.000Z
2020-02-17T14:39:58.000Z
yet-another-timelogger/record/apps.py
MarkWh1te/yet-another-timelogger
b3518db9b85ee45a547bc2556e3700f7aab695c6
[ "MIT" ]
17
2020-03-24T17:30:33.000Z
2022-03-11T23:58:34.000Z
record/apps.py
souper-streetwise/charity_data
6d91d4b3d635dad868a5eabab94bbb20eea3d082
[ "MIT" ]
1
2020-06-13T02:25:42.000Z
2020-06-13T02:25:42.000Z
from django.apps import AppConfig
14.5
33
0.747126
785857077b4350d54dda9d398a5eaff19132e288
820
py
Python
tabular/tests/unittests/models/test_tabular_nn_fastai.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
4,462
2019-12-09T17:41:07.000Z
2022-03-31T22:00:41.000Z
tabular/tests/unittests/models/test_tabular_nn_fastai.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
1,408
2019-12-09T17:48:59.000Z
2022-03-31T20:24:12.000Z
tabular/tests/unittests/models/test_tabular_nn_fastai.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
623
2019-12-10T02:04:18.000Z
2022-03-20T17:11:01.000Z
from autogluon.tabular.models.fastainn.tabular_nn_fastai import NNFastAiTabularModel
30.37037
85
0.765854
785958f309382a011e6f540a7d611fcf8a976c4a
2,082
py
Python
kernel/Settings.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
null
null
null
kernel/Settings.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
6
2018-09-04T08:49:29.000Z
2018-09-05T10:31:32.000Z
kernel/Settings.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
null
null
null
import os from xml.etree import ElementTree as ET from datetime import datetime from collections import namedtuple __author__ = "Manuel Escriche < mev@tid.es>" settings = Settings() if __name__ == "__main__": pass
33.047619
112
0.628242
7859d6c0896c5f80478ef39ac42a3fbaba78584d
4,554
py
Python
diofant/solvers/utils.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/solvers/utils.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/solvers/utils.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
"""General utility functions for solvers.""" import warnings from ..core import (expand_mul, expand_multinomial, nan, oo, preorder_traversal, zoo) from ..core.sympify import sympify from ..simplify.simplify import posify, simplify __all__ = 'checksol', def checksol(f, sol, **flags): r"""Ch...
32.070423
85
0.538428
786031bca4e4c25f1b895df6dc07e93096ae9dfe
148
py
Python
Python/read/read.py
BackEndTea/Learning
ccbf8fdbb8fb23643898d73e64fe7442ab46b791
[ "MIT" ]
1
2018-10-31T10:36:34.000Z
2018-10-31T10:36:34.000Z
Python/read/read.py
BackEndTea/Learning
ccbf8fdbb8fb23643898d73e64fe7442ab46b791
[ "MIT" ]
null
null
null
Python/read/read.py
BackEndTea/Learning
ccbf8fdbb8fb23643898d73e64fe7442ab46b791
[ "MIT" ]
2
2021-05-06T11:18:25.000Z
2021-12-04T07:56:29.000Z
with open('file.csv', 'r') as f: a = [i for i in f] print(a) with open('file.csv', 'r') as f: a = [i[1: -2] for i in f] print(a)
14.8
32
0.472973
78607ee463c1efbeda346568d754d388788b0a46
16,798
py
Python
client/admin.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
client/admin.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
client/admin.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
import os from django.template.response import TemplateResponse from _helpers.common import make_list_of_lists from app_user.models import ClosingPeriod from datetime import datetime from django.utils import timezone from django.core.paginator import Paginator from django.db.models.query import QuerySet from django.te...
35.816631
238
0.589177
7862362c2a685a044c14e4b97a8f43d0e7baa1f5
1,352
py
Python
hackerearth/Algorithms/Largest Windmill/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Largest Windmill/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Largest Windmill/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here from collections import defaultdict, deque ...
23.719298
94
0.517751
786303dad3d68e212f04a894e451f0bed72ebf96
949
py
Python
mountainproject/util/util.py
calebwang/mountainproject
6a986d33a1e44710308e66eea77b66167a0ef2a7
[ "MIT" ]
null
null
null
mountainproject/util/util.py
calebwang/mountainproject
6a986d33a1e44710308e66eea77b66167a0ef2a7
[ "MIT" ]
null
null
null
mountainproject/util/util.py
calebwang/mountainproject
6a986d33a1e44710308e66eea77b66167a0ef2a7
[ "MIT" ]
null
null
null
import itertools def map_chunk(iterable, n, f_chunk): """ Map over iterable in chunks of size n, applying f_chunk to each chunk, and then flattening the result back into the original shape of iterable """ cls = iterable.__class__ it_result = itertools.chain.from_iterable( f_chunk(c) for c in chunk(i...
24.333333
83
0.700738
78634d639d85d08c0ec70e8b376d62a31e283863
6,622
py
Python
code/release/normalize_to_vcd.py
williamgibb/la-data-graphing
dba49e4dcc65256566474f9c8ff407c164d188c2
[ "ECL-1.0" ]
null
null
null
code/release/normalize_to_vcd.py
williamgibb/la-data-graphing
dba49e4dcc65256566474f9c8ff407c164d188c2
[ "ECL-1.0" ]
null
null
null
code/release/normalize_to_vcd.py
williamgibb/la-data-graphing
dba49e4dcc65256566474f9c8ff407c164d188c2
[ "ECL-1.0" ]
null
null
null
# # This script is Copyrighted (c) 2012 by William Gibb and # licensed under the OSI Educational Community License version 1.0 # # Please see the LICENSE.txt file for a full reading of the appopriate # license. # import sys import os import csv import optparse import string import logging import re imp...
31.235849
114
0.614467
78652027358f752a4fa3b5d361b4256d3dc48763
5,372
py
Python
src/psypose/MEVA/scripts/eval_vae.py
scraplab/psypose
81753e29b78023b8a7c48356ec54c67b7182c183
[ "MIT" ]
null
null
null
src/psypose/MEVA/scripts/eval_vae.py
scraplab/psypose
81753e29b78023b8a7c48356ec54c67b7182c183
[ "MIT" ]
1
2021-10-13T16:27:34.000Z
2021-10-13T16:27:34.000Z
src/psypose/MEVA/scripts/eval_vae.py
scraplab/psypose
81753e29b78023b8a7c48356ec54c67b7182c183
[ "MIT" ]
null
null
null
import glob import os import sys import pdb import os.path as osp sys.path.append(os.getcwd()) import math import pickle as pk import argparse import time from torch import optim from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm import joblib from khrylib.utils import * from meva.utils.config im...
36.794521
136
0.648734