hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19608cf01cdd7215aba623ff5451674a80899335 | 824 | py | Python | gui/handlers.py | tkerwin/pydre | a100779801ffdc9855f09328bd28bf79ab6e679b | [
"Apache-2.0"
] | null | null | null | gui/handlers.py | tkerwin/pydre | a100779801ffdc9855f09328bd28bf79ab6e679b | [
"Apache-2.0"
] | null | null | null | gui/handlers.py | tkerwin/pydre | a100779801ffdc9855f09328bd28bf79ab6e679b | [
"Apache-2.0"
] | null | null | null | '''
Created by: Craig Fouts
Created on: 9/17/2020
'''
import inspect
import logging
import os
import pydre
from pydre.project import Project
logger = logging.getLogger('PydreLogger')
class Pydre:
'''PyDre handler that mediates all pydre functionality accessed by the GUI.
'''
@staticmethod
def run(... | 25.75 | 79 | 0.695388 | 112 | 824 | 4.982143 | 0.5 | 0.107527 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010703 | 0.206311 | 824 | 31 | 80 | 26.580645 | 0.842508 | 0.234223 | 0 | 0 | 0 | 0 | 0.039152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1961a85ab7defd6a22daa5da5b170e09656483e8 | 5,233 | py | Python | clifford/main.py | jserver/clifford | 7f0ffbd6ad7e0ed19e2c02e8f27ee60b720cf022 | [
"Apache-2.0"
] | null | null | null | clifford/main.py | jserver/clifford | 7f0ffbd6ad7e0ed19e2c02e8f27ee60b720cf022 | [
"Apache-2.0"
] | null | null | null | clifford/main.py | jserver/clifford | 7f0ffbd6ad7e0ed19e2c02e8f27ee60b720cf022 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import os
import sys
from collections import OrderedDict
import boto
from cliff.app import App
from cliff.commandmanager import CommandManager
DEFAULT_CONFIG_FILE = os.path.expanduser('~/.clifford/config.json')
class CliffordApp(App):
log = logging.getLogger(__name__)
def __ini... | 28.440217 | 88 | 0.608446 | 612 | 5,233 | 5.01634 | 0.246732 | 0.061889 | 0.01759 | 0.025407 | 0.103257 | 0.086319 | 0.059935 | 0 | 0 | 0 | 0 | 0.003871 | 0.259507 | 5,233 | 183 | 89 | 28.595628 | 0.788387 | 0.018727 | 0 | 0.159722 | 0 | 0 | 0.152962 | 0.022019 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.069444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
197b699cc8369db8f9683133ebb30ba081348f65 | 950 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/DejaVu/rotationMatrices.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/DejaVu/rotationMatrices.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/DejaVu/rotationMatrices.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | ## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by
#
# collection of standard 4x4 rotation matrices
# about the X, Y and Z axis of 10, 30, 45, 90, 180 degrees
#
rotations = {
}
import math, numpy.oldnumeric as Numeric
from mglutil.math.rotax import rotax
orig = Numeric.array( (0,0,0), 'f')
X = Numeric.... | 32.758621 | 69 | 0.623158 | 166 | 950 | 3.566265 | 0.277108 | 0.106419 | 0.131757 | 0.172297 | 0.560811 | 0.54223 | 0.54223 | 0.54223 | 0.54223 | 0.54223 | 0 | 0.112102 | 0.173684 | 950 | 28 | 70 | 33.928571 | 0.642038 | 0.171579 | 0 | 0.176471 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
197de07581c2dcf9b12f44a0df673f3b646d845c | 687 | py | Python | hxl_proxy/__init__.py | teodorescuserban/hxl-proxy | 5bd535edf0ca84fc76adeb000f366a4cf16bce5e | [
"Unlicense"
] | null | null | null | hxl_proxy/__init__.py | teodorescuserban/hxl-proxy | 5bd535edf0ca84fc76adeb000f366a4cf16bce5e | [
"Unlicense"
] | null | null | null | hxl_proxy/__init__.py | teodorescuserban/hxl-proxy | 5bd535edf0ca84fc76adeb000f366a4cf16bce5e | [
"Unlicense"
] | null | null | null | """
Top-level Flask application for HXL Proxy
David Megginson
January 2015
License: Public Domain
Documentation: http://hxlstandard.org
"""
import os
from flask import Flask, g, request
from flask.ext.cache import Cache
import werkzeug.datastructures
# Main application object
app = Flask(__name__)
app.config.from_... | 19.628571 | 50 | 0.77147 | 98 | 687 | 5.204082 | 0.561224 | 0.078431 | 0.05098 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013378 | 0.129549 | 687 | 34 | 51 | 20.205882 | 0.839465 | 0.298399 | 0 | 0 | 0 | 0 | 0.197452 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
198328acfb9bad3f5cc1672feede1025a5596929 | 1,070 | py | Python | setup.py | ryjmacdonell/customcolour | e82b06110ef01316c7c620f6f5055c1447afb947 | [
"MIT"
] | null | null | null | setup.py | ryjmacdonell/customcolour | e82b06110ef01316c7c620f6f5055c1447afb947 | [
"MIT"
] | 1 | 2019-07-08T21:19:00.000Z | 2019-07-08T21:19:00.000Z | setup.py | ryjmacdonell/customcolour | e82b06110ef01316c7c620f6f5055c1447afb947 | [
"MIT"
] | null | null | null | """
Setup script for the customcolour package
"""
from setuptools import setup
from setuptools import find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='customcolour',
version='0.1',
description=('A library of tools for transforming and creating' +
... | 29.722222 | 69 | 0.627103 | 113 | 1,070 | 5.893805 | 0.663717 | 0.114114 | 0.15015 | 0.156156 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023313 | 0.238318 | 1,070 | 35 | 70 | 30.571429 | 0.793865 | 0.038318 | 0 | 0 | 0 | 0 | 0.496572 | 0.021548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19832f19290dc83807b0914ee6d5176591e05315 | 723 | py | Python | src/treepath/path/exceptions/nested_match_not_found_error.py | monkeydevtools/treepath-python | 56f6cbf662f8a4c13f0c9e753a839fc9f6323dba | [
"Apache-2.0"
] | 2 | 2021-05-26T08:26:25.000Z | 2021-09-24T21:26:01.000Z | src/treepath/path/exceptions/nested_match_not_found_error.py | monkeydevtools/treepath-python | 56f6cbf662f8a4c13f0c9e753a839fc9f6323dba | [
"Apache-2.0"
] | null | null | null | src/treepath/path/exceptions/nested_match_not_found_error.py | monkeydevtools/treepath-python | 56f6cbf662f8a4c13f0c9e753a839fc9f6323dba | [
"Apache-2.0"
] | null | null | null | from treepath.path.exceptions.match_not_found_error import MatchNotFoundError
from treepath.path.traverser.match import Match
from treepath.path.vertex.vertex import Vertex
class NestedMatchNotFoundError(MatchNotFoundError, LookupError):
"""
NestedMatchNotFoundError is raised when nested_get_match query fails... | 38.052632 | 117 | 0.75657 | 89 | 723 | 5.898876 | 0.460674 | 0.08381 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171508 | 723 | 18 | 118 | 40.166667 | 0.876461 | 0.156293 | 0 | 0 | 0 | 0 | 0.146465 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
199849bcca6d1d70febfd1b6a8c9b2e1b85ac5cf | 530 | py | Python | ex47_tests.py | phyuzinzaw/python-exercises | 3c311d77832205c576aa873e43178dc551ba95ae | [
"MIT"
] | null | null | null | ex47_tests.py | phyuzinzaw/python-exercises | 3c311d77832205c576aa873e43178dc551ba95ae | [
"MIT"
] | null | null | null | ex47_tests.py | phyuzinzaw/python-exercises | 3c311d77832205c576aa873e43178dc551ba95ae | [
"MIT"
] | null | null | null | from nose.tools import *
from ex47.game import Room
def test_room():
gold = Room("GoldRoom",
"""This room has gold in it you can grab. There's a
door to the north.""")
assert_equal(gold.name, "GoldRoom")
assert_equal(gold.paths, {})
def test_room_paths():
center = Room("C... | 29.444444 | 63 | 0.603774 | 75 | 530 | 4.186667 | 0.426667 | 0.127389 | 0.095541 | 0.124204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005063 | 0.254717 | 530 | 17 | 64 | 31.176471 | 0.789873 | 0 | 0 | 0 | 0 | 0 | 0.251685 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | null | null | 0 | 0.166667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a0213e2c667a83cdeb87f419d2a5d73aa1baae | 2,760 | py | Python | hello.py | rmacgill/cgi-lab | dbe9bc6db6015c499bfbbfd28b5061e89af05d5d | [
"Apache-2.0"
] | null | null | null | hello.py | rmacgill/cgi-lab | dbe9bc6db6015c499bfbbfd28b5061e89af05d5d | [
"Apache-2.0"
] | null | null | null | hello.py | rmacgill/cgi-lab | dbe9bc6db6015c499bfbbfd28b5061e89af05d5d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import json
import secret
import requests
import sys
from cgi import escape
# From templates.py
def login_page():
return """
<h1> Welcome! </h1>
<form method="POST" action="hello.py">
<label> <span>Username:</span> <input autofocus type="text" name="username"></label>... | 23.389831 | 95 | 0.627536 | 344 | 2,760 | 5 | 0.348837 | 0.02093 | 0.019186 | 0.02093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002765 | 0.213768 | 2,760 | 117 | 96 | 23.589744 | 0.789862 | 0.098551 | 0 | 0.236842 | 0 | 0.026316 | 0.327393 | 0.05719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.25 | 0.078947 | 0.013158 | 0.131579 | 0.171053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19a33982e7c6d76c199dde85cd4c4fa131249a05 | 915 | py | Python | repos/serving/lambdas/functions/datafreshness-check/lambda_function.py | melanie531/amazon-sagemaker-mlops-with-featurestore-and-datawrangler | f356665c8f12da18f13339cf7f9b6d0cf8d2d108 | [
"MIT-0"
] | 8 | 2021-11-04T06:31:04.000Z | 2022-02-28T11:06:37.000Z | repos/serving/lambdas/functions/datafreshness-check/lambda_function.py | melanie531/amazon-sagemaker-mlops-with-featurestore-and-datawrangler | f356665c8f12da18f13339cf7f9b6d0cf8d2d108 | [
"MIT-0"
] | 2 | 2021-10-15T05:15:04.000Z | 2021-12-14T02:57:11.000Z | repos/serving/lambdas/functions/datafreshness-check/lambda_function.py | melanie531/amazon-sagemaker-mlops-with-featurestore-and-datawrangler | f356665c8f12da18f13339cf7f9b6d0cf8d2d108 | [
"MIT-0"
] | 11 | 2021-11-03T03:37:22.000Z | 2022-03-23T22:53:13.000Z | import json
import logging
import os
import boto3
s3_client = boto3.client("s3")
topic_arn = os.getenv("TOPIC_ARN")
def lambda_handler(event, context):
""" """
logging.info(event)
# The name of the model created in the Pipeline CreateModelStep
bucket_name = event["bucket_name"]
key_name = event... | 24.078947 | 74 | 0.653552 | 118 | 915 | 4.932203 | 0.516949 | 0.041237 | 0.058419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014065 | 0.222951 | 915 | 37 | 75 | 24.72973 | 0.804501 | 0.16612 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a3f2c45e49db149036bd9bdc99b01585d66091 | 10,077 | py | Python | segrete.py | blargony/Segrete | 8ed85a6b39d934a730c61c465124f24a629f5b7b | [
"MIT"
] | null | null | null | segrete.py | blargony/Segrete | 8ed85a6b39d934a730c61c465124f24a629f5b7b | [
"MIT"
] | null | null | null | segrete.py | blargony/Segrete | 8ed85a6b39d934a730c61c465124f24a629f5b7b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Pull together the NCES data and the Segregation calculator to produce
general reports on segregation in the USA.
"""
import sys
import argparse
import operator
from segcalc import SegCalc
from nces_parser import NCESParser
from fips import fips_to_st
from xlwt import Workbook
# ============... | 39.210117 | 121 | 0.579339 | 1,197 | 10,077 | 4.730994 | 0.235589 | 0.02119 | 0.029666 | 0.019424 | 0.197245 | 0.171111 | 0.1448 | 0.105245 | 0.080876 | 0.063571 | 0 | 0.008254 | 0.266647 | 10,077 | 256 | 122 | 39.363281 | 0.758051 | 0.097946 | 0 | 0.115789 | 0 | 0 | 0.21921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005263 | 0.036842 | null | null | 0.136842 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a6111084afcc03cf43292844e878aa93a3e246 | 2,961 | py | Python | stanford-augmented-image-classification/i_commandline_arguments.py | meghanaravikumar/sigopt-examples | e2d938928384f340d77efb52b226f678b6008fb9 | [
"MIT"
] | 213 | 2015-02-24T22:26:46.000Z | 2021-11-29T14:17:52.000Z | stanford-augmented-image-classification/i_commandline_arguments.py | meghanaravikumar/sigopt-examples | e2d938928384f340d77efb52b226f678b6008fb9 | [
"MIT"
] | 73 | 2015-11-12T03:11:55.000Z | 2022-03-11T23:43:18.000Z | stanford-augmented-image-classification/i_commandline_arguments.py | meghanaravikumar/sigopt-examples | e2d938928384f340d77efb52b226f678b6008fb9 | [
"MIT"
] | 66 | 2016-01-01T18:25:11.000Z | 2020-10-27T03:07:07.000Z | from a_resnet_training_common_cli import Hyperparameters
from stanford_cars_augmentation_cli import AugmentHyperparameters, AugmentCLI
def generate_cli_hpo(parser):
"""Adding Hyperparameters to CLI arguments"""
parser.add_argument("--" + Hyperparameters.SCEDULER_RATE.value, dest=Hyperparameters.SCEDULER_RATE.... | 67.295455 | 120 | 0.658561 | 304 | 2,961 | 6.289474 | 0.253289 | 0.056485 | 0.106695 | 0.084728 | 0.357741 | 0.287134 | 0.287134 | 0.287134 | 0.074268 | 0 | 0 | 0.015957 | 0.238095 | 2,961 | 43 | 121 | 68.860465 | 0.83156 | 0.013171 | 0 | 0.210526 | 1 | 0 | 0.146091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19aaecc919dfd3096bf5ac3715732a0786c3ccc5 | 1,348 | py | Python | tests/providers/checkpoint/helpers/checkpoint_provider.py | inmanta/terraform | d60855493e75d4eb570c4a357e79584153e51833 | [
"Apache-2.0"
] | 1 | 2021-12-23T13:51:39.000Z | 2021-12-23T13:51:39.000Z | tests/providers/checkpoint/helpers/checkpoint_provider.py | inmanta/terraform | d60855493e75d4eb570c4a357e79584153e51833 | [
"Apache-2.0"
] | 11 | 2022-01-04T14:03:10.000Z | 2022-03-16T14:50:11.000Z | tests/providers/checkpoint/helpers/checkpoint_provider.py | inmanta/terraform | d60855493e75d4eb570c4a357e79584153e51833 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Inmanta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 35.473684 | 85 | 0.695104 | 158 | 1,348 | 5.860759 | 0.632911 | 0.064795 | 0.028078 | 0.034557 | 0.053996 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013321 | 0.220326 | 1,348 | 37 | 86 | 36.432432 | 0.867745 | 0.481454 | 0 | 0 | 0 | 0 | 0.100962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.142857 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19ac5dbe8a3f9358efd67eb77ce081c65b3bdaef | 6,212 | py | Python | specprep/processing.py | ogtelford/ProcessSpectra | 24f9d23a3c470681f06ec3495d45a883c8381144 | [
"BSD-3-Clause"
] | null | null | null | specprep/processing.py | ogtelford/ProcessSpectra | 24f9d23a3c470681f06ec3495d45a883c8381144 | [
"BSD-3-Clause"
] | null | null | null | specprep/processing.py | ogtelford/ProcessSpectra | 24f9d23a3c470681f06ec3495d45a883c8381144 | [
"BSD-3-Clause"
] | null | null | null | """
Tools to process galaxy spectra .fits files from SDSS-II Legacy survey.
Authored by Grace Telford 02/13/16
"""
# TODO: add parameter descriptions to SpecProcessor, normalize, and process_fits
from __future__ import absolute_import, print_function, division
import numpy as np
from scipy import interp
import time... | 31.532995 | 111 | 0.57067 | 748 | 6,212 | 4.65107 | 0.314171 | 0.031618 | 0.024145 | 0.017246 | 0.110089 | 0.089968 | 0.060937 | 0.041966 | 0.041966 | 0.041966 | 0 | 0.044166 | 0.318416 | 6,212 | 196 | 112 | 31.693878 | 0.777515 | 0.321314 | 0 | 0.065789 | 0 | 0 | 0.030479 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.065789 | false | 0 | 0.078947 | 0 | 0.223684 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19acc6e61d55f6e2ffc9d55d845d2a82f19f77e6 | 2,808 | py | Python | copypaste/data.py | Jake-Jay/copypaste | f07e21734197271f878eb2935f74c33fcac70147 | [
"MIT"
] | null | null | null | copypaste/data.py | Jake-Jay/copypaste | f07e21734197271f878eb2935f74c33fcac70147 | [
"MIT"
] | null | null | null | copypaste/data.py | Jake-Jay/copypaste | f07e21734197271f878eb2935f74c33fcac70147 | [
"MIT"
] | null | null | null | import torch
import numpy as np
from pathlib import Path
from skimage import io
from typing import Callable, Sequence
from copypaste.transforms import CopyPaste
class MVTecDataset:
"""MVTec [1] anomoly detection dataset with optional copy-paste.
Parameters
----------
path_to_dataset : str
... | 29.25 | 75 | 0.577991 | 333 | 2,808 | 4.738739 | 0.414414 | 0.055767 | 0.032953 | 0.020279 | 0.027883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00418 | 0.318376 | 2,808 | 96 | 76 | 29.25 | 0.820272 | 0.315527 | 0 | 0.088889 | 0 | 0 | 0.145424 | 0.039865 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.088889 | false | 0 | 0.133333 | 0.044444 | 0.333333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fd81d5c860303e7f206711aabc86dd4a2cc345e | 440 | py | Python | app/display_modules/virulence_factors/tests/factory.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/display_modules/virulence_factors/tests/factory.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/display_modules/virulence_factors/tests/factory.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring,too-few-public-methods
"""Factory for generating Microbe Directory models for testing."""
from app.display_modules.generic_gene_set.tests.factory import GeneSetFactory
from app.display_modules.virulence_factors import VFDBResult
class VFDBFactory(GeneSetFactory):
"""Factory f... | 27.5 | 77 | 0.761364 | 51 | 440 | 6.470588 | 0.705882 | 0.060606 | 0.084848 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 440 | 15 | 78 | 29.333333 | 0.87766 | 0.420455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5fdb63539cb3b015ff76b33dfbc5107163bab78b | 300 | py | Python | Tokens/TokenType.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | Tokens/TokenType.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | Tokens/TokenType.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | # TokenType -- Enumeration constants for identifying tokens
from enum import Enum
class TokenType(Enum):
QUOTE = 1
LPAREN = 2
RPAREN = 3
DOT = 4
TRUE = 5
FALSE = 6
INT = 7
STR = 8
IDENT = 9
if __name__ == "__main__":
print(TokenType.IDENT)
| 16.666667 | 60 | 0.57 | 37 | 300 | 4.405405 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046392 | 0.353333 | 300 | 17 | 61 | 17.647059 | 0.793814 | 0.19 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.846154 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5fdc021c482e14fa063710a0d2f88a6b38fccece | 7,417 | py | Python | boto3_exceptions/redshift.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/redshift.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/redshift.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('redshift').exceptions
AccessToSnapshotDeniedFault = exceptions.AccessToSnapshotDeniedFault
AuthorizationAlreadyExistsFault = exceptions.AuthorizationAlreadyExistsFault
AuthorizationNotFoundFault = exceptions.AuthorizationNotFoundFault
AuthorizationQuotaExceededFault = exception... | 71.317308 | 104 | 0.931374 | 304 | 7,417 | 22.723684 | 0.342105 | 0.010712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001125 | 0.040987 | 7,417 | 103 | 105 | 72.009709 | 0.970055 | 0 | 0 | 0 | 0 | 0 | 0.001079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009901 | 0 | 0.009901 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fdd15455666606346a8b2dd73effaee4c98aca8 | 7,461 | py | Python | spark_fhir_schemas/stu3/complex_types/structuremap_group.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | 2 | 2020-10-31T23:25:01.000Z | 2021-06-09T14:12:42.000Z | spark_fhir_schemas/stu3/complex_types/structuremap_group.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | spark_fhir_schemas/stu3/complex_types/structuremap_group.py | icanbwell/SparkFhirSchemas | 8c828313c39850b65f8676e67f526ee92b7d624e | [
"Apache-2.0"
] | null | null | null | from typing import Union, List, Optional
from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType
# This file is auto-generated by generate_schema so do not edit manually
# noinspection PyPep8Naming
class StructureMap_GroupSchema:
"""
A Map of relationships between 2 structures ... | 44.147929 | 101 | 0.560113 | 744 | 7,461 | 5.459677 | 0.231183 | 0.050222 | 0.033235 | 0.035451 | 0.653127 | 0.640571 | 0.625308 | 0.616445 | 0.575086 | 0.575086 | 0 | 0.003067 | 0.388152 | 7,461 | 168 | 102 | 44.410714 | 0.886747 | 0.323147 | 0 | 0.367925 | 1 | 0 | 0.052664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.04717 | 0 | 0.084906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fe5cf8a300d421d055924e1cef7a94edfe99e42 | 518 | py | Python | bin/update.py | alissonrubim/assistant-relay-docker | 67aa59fa52b206de0016e360b5d9f7c7a796f279 | [
"Apache-2.0"
] | null | null | null | bin/update.py | alissonrubim/assistant-relay-docker | 67aa59fa52b206de0016e360b5d9f7c7a796f279 | [
"Apache-2.0"
] | null | null | null | bin/update.py | alissonrubim/assistant-relay-docker | 67aa59fa52b206de0016e360b5d9f7c7a796f279 | [
"Apache-2.0"
] | null | null | null | import zipfile
import io
import os
import requests
url = 'https://github.com/greghesp/assistant-relay/releases/latest/download/release.zip'
def download_extract_zip(url):
response = requests.get(url)
with zipfile.ZipFile(io.BytesIO(response.content)) as zip:
# zip.printdir()
... | 23.545455 | 95 | 0.635135 | 61 | 518 | 5.262295 | 0.590164 | 0.056075 | 0.11215 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239382 | 518 | 21 | 96 | 24.666667 | 0.814721 | 0.183398 | 0 | 0 | 0 | 0.090909 | 0.250627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5fe8bc4dd6641bec7ec887d36fda538f27c48402 | 1,078 | py | Python | tensorflowpractice/MNIST_data/progressbar.py | nifannn/MachineLearningNotes | de38b2072a52a22483168fb10ac2cb896826c7e5 | [
"MIT"
] | 1 | 2021-11-11T14:52:11.000Z | 2021-11-11T14:52:11.000Z | tensorflowpractice/MNIST_data/progressbar.py | nifannn/MachineLearningNotes | de38b2072a52a22483168fb10ac2cb896826c7e5 | [
"MIT"
] | null | null | null | tensorflowpractice/MNIST_data/progressbar.py | nifannn/MachineLearningNotes | de38b2072a52a22483168fb10ac2cb896826c7e5 | [
"MIT"
] | null | null | null | import sys
import time
class ProgressBar(object):
"""ProgressBar"""
def __init__(self, progressname = 'Progress',total = 100, current = 0, flushfreq = 0.001):
self.total = total
self.current = current
self.progressname = progressname
self.flushfreq = flushfreq
@property
def percentage(self):
return int(... | 22.93617 | 121 | 0.671614 | 135 | 1,078 | 5.303704 | 0.311111 | 0.107542 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017978 | 0.174397 | 1,078 | 46 | 122 | 23.434783 | 0.786517 | 0.010204 | 0 | 0.228571 | 0 | 0 | 0.021678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.057143 | 0.085714 | 0.457143 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fee7ce795de72eedbd972c60070d02989bbeedb | 1,458 | py | Python | vision/datasets/coco_test.py | tensorturtle/pytorch-ssd | 04920f9376e2fd5ffb28bf609becbaa6b427c4dc | [
"MIT"
] | 1 | 2022-01-18T17:40:21.000Z | 2022-01-18T17:40:21.000Z | vision/datasets/coco_test.py | tensorturtle/mobilenet-ssd-training | bee140d34015aaf056af3704288c18b728d84eff | [
"MIT"
] | 2 | 2021-07-21T08:06:02.000Z | 2021-07-21T08:06:29.000Z | vision/datasets/coco_test.py | tensorturtle/pytorch-ssd | 04920f9376e2fd5ffb28bf609becbaa6b427c4dc | [
"MIT"
] | 2 | 2022-01-18T17:40:22.000Z | 2022-03-25T11:42:05.000Z | import numpy as np
import pathlib
import cv2
import pandas as pd
import copy
import os
import logging
import json
class COCOTest:
'''
Minimal pytorch dataset class for loading COCO test dataset,
which has only images and no annotations.
'''
def __init__(self, root):
self.root = os.path.ab... | 28.038462 | 95 | 0.631687 | 195 | 1,458 | 4.492308 | 0.379487 | 0.068493 | 0.047945 | 0.03653 | 0.06621 | 0.06621 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.265432 | 1,458 | 51 | 96 | 28.588235 | 0.80112 | 0.085048 | 0 | 0.054054 | 0 | 0 | 0.092846 | 0.037291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.216216 | 0.054054 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ff4745996e7abd3de3e063249efae0c56b98a4b | 288 | py | Python | src/sportsdata/nba/teams/phoenix_suns.py | OrangeCardinal/sportsdata | e6e182e89c8f8a12ffe18b218a37b8bdb8971e03 | [
"Apache-2.0"
] | null | null | null | src/sportsdata/nba/teams/phoenix_suns.py | OrangeCardinal/sportsdata | e6e182e89c8f8a12ffe18b218a37b8bdb8971e03 | [
"Apache-2.0"
] | null | null | null | src/sportsdata/nba/teams/phoenix_suns.py | OrangeCardinal/sportsdata | e6e182e89c8f8a12ffe18b218a37b8bdb8971e03 | [
"Apache-2.0"
] | null | null | null | from sports.nba.nba_team import NBA_Team
class PhoenixSuns(NBA_Team):
"""
NBA Golden State Warriors Static Information
"""
full_name = "Phoenix Suns"
name = "Suns"
team_id = 1610612756
def __init__(self):
"""
"""
super().__init__()
| 16.941176 | 48 | 0.59375 | 32 | 288 | 4.9375 | 0.6875 | 0.132911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049261 | 0.295139 | 288 | 16 | 49 | 18 | 0.729064 | 0.152778 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ffec18b0f35ac24f2bd735129997f21ef1b21e3 | 885 | py | Python | application/widgets/window.py | BlackDragonN001/BZCLauncher | 73fd61699ee0b1f8172a51c7d3bcb5208020dbc5 | [
"MIT"
] | null | null | null | application/widgets/window.py | BlackDragonN001/BZCLauncher | 73fd61699ee0b1f8172a51c7d3bcb5208020dbc5 | [
"MIT"
] | 11 | 2015-06-30T15:32:31.000Z | 2015-07-22T03:41:18.000Z | application/widgets/window.py | BlackDragonN001/BZCLauncher | 73fd61699ee0b1f8172a51c7d3bcb5208020dbc5 | [
"MIT"
] | null | null | null |
import cairo
import vector
from .widget import Widget
class Window(Widget):
clickable = False
mousable = False
scale = None
image_resolution = None
_image = None
def __init__(self, resource_manager):
Widget.__init__(self, resource_manager)
self._image = resource_ma... | 27.65625 | 100 | 0.642938 | 107 | 885 | 5.084112 | 0.392523 | 0.082721 | 0.058824 | 0.084559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004559 | 0.256497 | 885 | 32 | 101 | 27.65625 | 0.822188 | 0.015819 | 0 | 0 | 0 | 0 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2704fa4d9ef28e24a6a578f3482082526395446a | 1,650 | py | Python | organisations/migrations/0005_organisationproposal.py | City-of-Helsinki/palvelutarjotin | 4ad67cbf4062832aba8080cb96ac785bdbbe9aa8 | [
"MIT"
] | 2 | 2020-11-10T16:31:26.000Z | 2021-02-19T10:33:27.000Z | organisations/migrations/0005_organisationproposal.py | City-of-Helsinki/palvelutarjotin | 4ad67cbf4062832aba8080cb96ac785bdbbe9aa8 | [
"MIT"
] | 239 | 2020-04-23T07:36:17.000Z | 2022-03-15T08:38:38.000Z | organisations/migrations/0005_organisationproposal.py | City-of-Helsinki/palvelutarjotin | 4ad67cbf4062832aba8080cb96ac785bdbbe9aa8 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2021-06-30 12:29
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("organisations", "0004_person_language"),
]
operations = [
migrations.CreateModel(
name="Organi... | 30.555556 | 80 | 0.415758 | 111 | 1,650 | 6.027027 | 0.522523 | 0.115097 | 0.041854 | 0.06577 | 0.153961 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0.033493 | 0.493333 | 1,650 | 53 | 81 | 31.132075 | 0.766746 | 0.027879 | 0 | 0.234043 | 1 | 0 | 0.139201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2707699f33018d5cc0cb7d09c49aebbd6b7dd707 | 1,203 | py | Python | webair/routers/api.py | NetEaseGame/airinput | 7a52318164874a1f9c1ef476f553f26c2b394dae | [
"MIT"
] | 28 | 2017-03-14T18:01:03.000Z | 2022-01-04T06:45:29.000Z | webair/routers/api.py | weechatfly/airinput | 7a52318164874a1f9c1ef476f553f26c2b394dae | [
"MIT"
] | null | null | null | webair/routers/api.py | weechatfly/airinput | 7a52318164874a1f9c1ef476f553f26c2b394dae | [
"MIT"
] | 10 | 2016-09-26T07:45:20.000Z | 2021-11-28T06:28:17.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import flask
from flask import request
import requests
import proto
app = None #airtest.connect(monitor=False)
bp = flask.Blueprint('api', __name__)
@bp.route('/')
def home():
return 'API documentation'
def runjs(ip, fn, *args):
argstr = ', '.join... | 24.06 | 87 | 0.615129 | 168 | 1,203 | 4.375 | 0.458333 | 0.038095 | 0.040816 | 0.057143 | 0.22585 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0.014199 | 0.180382 | 1,203 | 49 | 88 | 24.55102 | 0.731237 | 0.05985 | 0 | 0.111111 | 0 | 0 | 0.118794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138889 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
270c8173dbb64c9219888739806b59815152daaa | 409 | py | Python | quiz/migrations/0003_auto_20200825_1748.py | vlajna95/crazy_app | ffcda00e6247e01273be443a723ea4538d683420 | [
"CC0-1.0"
] | null | null | null | quiz/migrations/0003_auto_20200825_1748.py | vlajna95/crazy_app | ffcda00e6247e01273be443a723ea4538d683420 | [
"CC0-1.0"
] | null | null | null | quiz/migrations/0003_auto_20200825_1748.py | vlajna95/crazy_app | ffcda00e6247e01273be443a723ea4538d683420 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1 on 2020-08-25 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quiz', '0002_answer_questions'),
]
operations = [
migrations.AlterField(
model_name='answer',
name='text... | 21.526316 | 65 | 0.572127 | 42 | 409 | 5.47619 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075269 | 0.317848 | 409 | 18 | 66 | 22.722222 | 0.749104 | 0.105134 | 0 | 0 | 1 | 0 | 0.101156 | 0.060694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27103f4f6880364754ef68acac3b858abc900a57 | 5,084 | py | Python | pendant/aws/s3.py | clintval/reticle | 9be96e270970573ca981aa95ba0db1a1f7f46e39 | [
"MIT"
] | 1 | 2020-07-04T17:38:36.000Z | 2020-07-04T17:38:36.000Z | pendant/aws/s3.py | clintval/pendant | 9be96e270970573ca981aa95ba0db1a1f7f46e39 | [
"MIT"
] | 8 | 2018-12-03T18:59:14.000Z | 2018-12-10T19:33:53.000Z | pendant/aws/s3.py | clintval/reticle | 9be96e270970573ca981aa95ba0db1a1f7f46e39 | [
"MIT"
] | null | null | null | import re
from ast import literal_eval
from typing import Dict, Union
import boto3
import botocore
from pendant import aws
__all__ = ['S3Uri', 's3api_head_object', 's3api_object_exists', 's3_object_exists']
class S3Uri(object):
"""An S3 URI which conforms to RFC 3986 formatting.
Args:
path: The S... | 27.333333 | 97 | 0.56668 | 615 | 5,084 | 4.569106 | 0.196748 | 0.037011 | 0.048043 | 0.057295 | 0.490391 | 0.420285 | 0.397153 | 0.336299 | 0.336299 | 0.315658 | 0 | 0.02239 | 0.297207 | 5,084 | 185 | 98 | 27.481081 | 0.764064 | 0.347758 | 0 | 0.386667 | 0 | 0 | 0.096213 | 0.016377 | 0 | 0 | 0 | 0 | 0.013333 | 1 | 0.186667 | false | 0 | 0.08 | 0.026667 | 0.626667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
27194b3d0c6c2b9b193d90713bff4901c24595e8 | 408 | py | Python | src/api/views/bp_api_v1.py | LeslieLeung/2c | 6b3a17cd614833e536b90ee130427d4cc538c1db | [
"Apache-2.0"
] | 236 | 2021-04-08T02:41:41.000Z | 2021-12-28T13:59:05.000Z | src/api/views/bp_api_v1.py | LeslieLeung/2c | 6b3a17cd614833e536b90ee130427d4cc538c1db | [
"Apache-2.0"
] | 25 | 2021-04-08T04:10:47.000Z | 2021-12-29T01:14:01.000Z | src/api/views/bp_api_v1.py | LeslieLeung/2c | 6b3a17cd614833e536b90ee130427d4cc538c1db | [
"Apache-2.0"
] | 37 | 2021-04-08T03:13:41.000Z | 2021-12-28T12:51:38.000Z | #!/usr/bin/env python
"""
Created by howie.hu at 2021/4/10.
Description:v1 接口函数
Changelog: all notable changes to this file will be documented
"""
from flask import Blueprint, current_app, request
bp_api = Blueprint("v1", __name__, url_prefix="/v1")
@bp_api.route("/ping", methods=["GET"], strict_slashes=... | 20.4 | 66 | 0.64951 | 56 | 408 | 4.571429 | 0.875 | 0.039063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030864 | 0.205882 | 408 | 19 | 67 | 21.473684 | 0.759259 | 0.387255 | 0 | 0 | 0 | 0 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
271b06e4a56e548ef5ffd4102602db15bc38e303 | 300 | py | Python | main.py | E-chess/page | e0e118bc1c7c1dd67577f7c845f18da57596da96 | [
"MIT"
] | null | null | null | main.py | E-chess/page | e0e118bc1c7c1dd67577f7c845f18da57596da96 | [
"MIT"
] | null | null | null | main.py | E-chess/page | e0e118bc1c7c1dd67577f7c845f18da57596da96 | [
"MIT"
] | null | null | null | from market import app
from tools import cls
def page():
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=8080)
def run():
page()
# thread = threading.Thread(target=page)
# thread.start()
# code
try:
run()
except ImportError:
run()
cls()
| 13.043478 | 54 | 0.593333 | 41 | 300 | 4.146341 | 0.634146 | 0.035294 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0.256667 | 300 | 22 | 55 | 13.636364 | 0.726457 | 0.193333 | 0 | 0.166667 | 0 | 0 | 0.063025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
271bcdb8bf766baaf56d2c5ce00fc6fa7917a51f | 442 | py | Python | setup.py | ababino/abyss2pano | 20a31d4f2d8880b5d917a72b0d101969fe3a0152 | [
"MIT"
] | null | null | null | setup.py | ababino/abyss2pano | 20a31d4f2d8880b5d917a72b0d101969fe3a0152 | [
"MIT"
] | null | null | null | setup.py | ababino/abyss2pano | 20a31d4f2d8880b5d917a72b0d101969fe3a0152 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='abyss2pano',
version='0.1',
description='Command line tool to stitch recordings from the abyss rig',
url='',
author='Andres Babino',
author_email='ababino@gmail.com',
license='MIT',
packages=['abyss2pano'],
zip_safe=False,
scripts=['bin... | 21.047619 | 76 | 0.60181 | 48 | 442 | 5.479167 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015198 | 0.255656 | 442 | 20 | 77 | 22.1 | 0.784195 | 0 | 0 | 0 | 0 | 0 | 0.359729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2720aabc9f9f35e003ca36e22c4f48b6063238c8 | 1,435 | py | Python | Experiment-Results/4-Device/Static/Single-Hop/Test-5/readtext-into-file-mesh-devices.py | jsteersCoding/mesh-network-research | d71e6b1a90b7c662248c14a6aea8aaa84ee30cd0 | [
"MIT"
] | null | null | null | Experiment-Results/4-Device/Static/Single-Hop/Test-5/readtext-into-file-mesh-devices.py | jsteersCoding/mesh-network-research | d71e6b1a90b7c662248c14a6aea8aaa84ee30cd0 | [
"MIT"
] | null | null | null | Experiment-Results/4-Device/Static/Single-Hop/Test-5/readtext-into-file-mesh-devices.py | jsteersCoding/mesh-network-research | d71e6b1a90b7c662248c14a6aea8aaa84ee30cd0 | [
"MIT"
] | null | null | null | #!/bin/python
import os
import glob
#This file reads in timestamps from previously recorded data files and converts the recorded 24 hour times into an elapsed time - this model was required for the later experiments
def nonblank_lines(f):
for l in f:
line = l.rstrip()
if line:
yield lin... | 35 | 179 | 0.615331 | 182 | 1,435 | 4.708791 | 0.43956 | 0.077013 | 0.070012 | 0.102684 | 0.166861 | 0.166861 | 0.166861 | 0.166861 | 0.103851 | 0.103851 | 0 | 0.007634 | 0.269686 | 1,435 | 40 | 180 | 35.875 | 0.810115 | 0.132404 | 0 | 0.057143 | 0 | 0 | 0.123894 | 0.094127 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2724f7aaebcd82695e30dbece8006e0a2bdcfda0 | 318 | py | Python | intro/donguler.py | dilekyayli/intro | d25d9bfc8434959c41d035b84def01ae9c19ae47 | [
"MIT"
] | null | null | null | intro/donguler.py | dilekyayli/intro | d25d9bfc8434959c41d035b84def01ae9c19ae47 | [
"MIT"
] | null | null | null | intro/donguler.py | dilekyayli/intro | d25d9bfc8434959c41d035b84def01ae9c19ae47 | [
"MIT"
] | null | null | null | krediler = ["Hızlı Kredi", "Maaşını Halkbank'tan alanlara özel", "Mutlu emekli ihtiyaç kredisi"]
for kredi in krediler:
print(kredi)
for i in range(len(krediler)):
print(krediler[i])
for i in range(3,10): #3 dahil 10 dahil değil
print(i)
for i in range(0,11,2): #0'dan başla 2'şer 2'şer arttır
print(i) | 19.875 | 96 | 0.688679 | 57 | 318 | 3.842105 | 0.508772 | 0.054795 | 0.082192 | 0.150685 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049808 | 0.179245 | 318 | 16 | 97 | 19.875 | 0.789272 | 0.163522 | 0 | 0.222222 | 0 | 0 | 0.276515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2729dd462b1dea559d2306f9a0657b748fd55bc3 | 694 | py | Python | omoide/migration_engine/classes/class_sql.py | TaXeH/Omoide | 8ccc9d47e802433bb2de21ff930e6630658cd5e3 | [
"MIT"
] | null | null | null | omoide/migration_engine/classes/class_sql.py | TaXeH/Omoide | 8ccc9d47e802433bb2de21ff930e6630658cd5e3 | [
"MIT"
] | null | null | null | omoide/migration_engine/classes/class_sql.py | TaXeH/Omoide | 8ccc9d47e802433bb2de21ff930e6630658cd5e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Helper type for a single SQL command representation.
"""
from typing import Optional
__all__ = [
'SQL',
]
class SQL:
"""Helper type for a single SQL command representation.
"""
def __init__(self, statement):
"""Initialize instance."""
self.statement = state... | 24.785714 | 59 | 0.60951 | 73 | 694 | 5.493151 | 0.493151 | 0.099751 | 0.189526 | 0.069825 | 0.219451 | 0.219451 | 0.219451 | 0.219451 | 0 | 0 | 0 | 0.001996 | 0.278098 | 694 | 27 | 60 | 25.703704 | 0.798403 | 0.266571 | 0 | 0 | 0 | 0 | 0.032854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2736e436d1a3f7bf45120cd44c1ad6d601725d26 | 727 | py | Python | backup3.py | davidcleary67/ictnwk40x1 | 1ab7a08f4b087f1939e89fa26521ca2b37dad45a | [
"Apache-2.0"
] | null | null | null | backup3.py | davidcleary67/ictnwk40x1 | 1ab7a08f4b087f1939e89fa26521ca2b37dad45a | [
"Apache-2.0"
] | null | null | null | backup3.py | davidcleary67/ictnwk40x1 | 1ab7a08f4b087f1939e89fa26521ca2b37dad45a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# import modules
import sys
from backupcfg import jobs, usage_msg, job_msg
# global variables
errors = 0
# main program
# check correct number of command line arguments
if len(sys.argv) != 2:
print(usage_msg)
else:
# get and check job name
job = sys.argv[1]
if job... | 17.731707 | 60 | 0.6011 | 99 | 727 | 4.343434 | 0.59596 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010246 | 0.328748 | 727 | 41 | 61 | 17.731707 | 0.870902 | 0.470426 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.133333 | 0 | 0.133333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
273775071ed85884e47bc99d5693600d729c085e | 8,262 | py | Python | api_endpoint.py | 1Strategy/security-fairy | 597b8e8a6cb7c513a24c2c0b0e4d4b8352fcde85 | [
"Apache-2.0"
] | 4 | 2018-11-16T18:15:16.000Z | 2020-11-18T11:20:55.000Z | api_endpoint.py | 1Strategy/security-fairy | 597b8e8a6cb7c513a24c2c0b0e4d4b8352fcde85 | [
"Apache-2.0"
] | 3 | 2017-09-08T16:54:46.000Z | 2021-04-30T20:44:35.000Z | api_endpoint.py | 1Strategy/security-fairy | 597b8e8a6cb7c513a24c2c0b0e4d4b8352fcde85 | [
"Apache-2.0"
] | 1 | 2017-06-13T16:55:51.000Z | 2017-06-13T16:55:51.000Z | """API Endpoint
Validates inputs to the Security Fairy tool,
then creates and executes the State Machine
which orchestrates the Security Fairy
Lambda functions.
"""
import json
import re
import os
import string
import boto3
from botocore.exceptions import ProfileNotFound
from aws_entity import AWSEntity
try:
S... | 31.414449 | 212 | 0.602033 | 922 | 8,262 | 5.273319 | 0.291757 | 0.037022 | 0.029617 | 0.02139 | 0.287947 | 0.195804 | 0.160016 | 0.160016 | 0.146442 | 0.126285 | 0 | 0.021732 | 0.264827 | 8,262 | 262 | 213 | 31.534351 | 0.778729 | 0.066449 | 0 | 0.202247 | 0 | 0.033708 | 0.495727 | 0.106975 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039326 | null | null | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
273db67ee30fcfc0be32e6ac0d805a1363bb9ade | 1,760 | py | Python | tests/lop/test_matrix.py | carnot-shailesh/cr-sparse | 989ebead8a8ac37ade643093e1caa31ae2a3eda1 | [
"Apache-2.0"
] | 42 | 2021-06-11T17:11:29.000Z | 2022-03-29T11:51:44.000Z | tests/lop/test_matrix.py | carnot-shailesh/cr-sparse | 989ebead8a8ac37ade643093e1caa31ae2a3eda1 | [
"Apache-2.0"
] | 19 | 2021-06-04T11:36:11.000Z | 2022-01-22T20:13:39.000Z | tests/lop/test_matrix.py | carnot-shailesh/cr-sparse | 989ebead8a8ac37ade643093e1caa31ae2a3eda1 | [
"Apache-2.0"
] | 5 | 2021-11-21T21:01:11.000Z | 2022-02-28T07:20:03.000Z | from .lop_setup import *
def test_matrix_1():
A = jnp.ones([4, 4])
op = lop.matrix(A)
x = jnp.ones(4)
assert_allclose(op.times(x), A @ x)
assert_allclose(op.trans(x), A.T @ x)
def test_matrix_2():
A = jnp.reshape(jnp.arange(20), (4,5))
op = lop.matrix(A)
x = jnp.ones(4)
y = jnp.o... | 26.666667 | 66 | 0.567614 | 324 | 1,760 | 3.012346 | 0.17284 | 0.172131 | 0.13832 | 0.175205 | 0.614754 | 0.489754 | 0.454918 | 0.362705 | 0.268443 | 0.268443 | 0 | 0.03118 | 0.234659 | 1,760 | 65 | 67 | 27.076923 | 0.693393 | 0.069318 | 0 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 1 | 0.085106 | false | 0 | 0.021277 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2740b7772828812c9f1d6baafde72b68cb7fbf32 | 1,740 | py | Python | chapter08/attr_desc.py | ScorpioDoctor/AdvancePythonMy | 417eb67da5b47009d0c5c87b785c24b2f7b61657 | [
"Apache-2.0"
] | null | null | null | chapter08/attr_desc.py | ScorpioDoctor/AdvancePythonMy | 417eb67da5b47009d0c5c87b785c24b2f7b61657 | [
"Apache-2.0"
] | null | null | null | chapter08/attr_desc.py | ScorpioDoctor/AdvancePythonMy | 417eb67da5b47009d0c5c87b785c24b2f7b61657 | [
"Apache-2.0"
] | null | null | null | import numbers
class IntegralField(object):
"""data descriptor:数据描述符"""
def __init__(self):
self.valuexx = 0
def __get__(self, instance, owner):
print("__get__",instance)
return self.valuexx
def __set__(self, instance, value):
# print("__set__",instance,value)
if... | 28.064516 | 77 | 0.66954 | 207 | 1,740 | 5.086957 | 0.386473 | 0.034188 | 0.031339 | 0.02849 | 0.191833 | 0.150047 | 0.150047 | 0.150047 | 0.150047 | 0.150047 | 0 | 0.014461 | 0.205172 | 1,740 | 62 | 78 | 28.064516 | 0.746927 | 0.117816 | 0 | 0.387097 | 0 | 0 | 0.060127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0 | 0.451613 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2746924a570f7912ce5b298a9a00a94e92f18699 | 267 | py | Python | setup.py | PierreKieffer/pubsub-pytoolbox | ed620784d0ce8471e75433ac07c5c88c5fb47a70 | [
"BSD-2-Clause"
] | null | null | null | setup.py | PierreKieffer/pubsub-pytoolbox | ed620784d0ce8471e75433ac07c5c88c5fb47a70 | [
"BSD-2-Clause"
] | null | null | null | setup.py | PierreKieffer/pubsub-pytoolbox | ed620784d0ce8471e75433ac07c5c88c5fb47a70 | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup
with open("requirements.txt") as f :
requirements = f.read().splitlines()
setup(
name="pubsub-pytoolbox",
version="0.0.1",
packages=["pubsub", "pubsub.op"],
install_requires=requirements
)
| 20.538462 | 41 | 0.606742 | 29 | 267 | 5.551724 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.254682 | 267 | 12 | 42 | 22.25 | 0.79397 | 0 | 0 | 0 | 0 | 0 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
274786d91387904c5ab992f81bccb80913c249e6 | 484 | py | Python | tests/test_linalg.py | tanlin2013/TNpy | bc450825f79b6a95ad724ed05c61fda8e0545975 | [
"Apache-2.0"
] | 1 | 2020-09-07T21:35:34.000Z | 2020-09-07T21:35:34.000Z | tests/test_linalg.py | tanlin2013/TNpy | bc450825f79b6a95ad724ed05c61fda8e0545975 | [
"Apache-2.0"
] | null | null | null | tests/test_linalg.py | tanlin2013/TNpy | bc450825f79b6a95ad724ed05c61fda8e0545975 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
from tnpy.linalg import KrylovExpm
class TestLinAlg(unittest.TestCase):
def test_eigshmv(self):
# self.assertEqual(True, False)
pass
class TestKrylovExpm(unittest.TestCase):
def test_construct_krylov_space(self):
mat = np.random.random((50, 50))
... | 19.36 | 42 | 0.671488 | 60 | 484 | 5.183333 | 0.566667 | 0.102894 | 0.122187 | 0.14791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.225207 | 484 | 24 | 43 | 20.166667 | 0.802667 | 0.059917 | 0 | 0 | 0 | 0 | 0.01766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2748c99fd0f5a28c30ce684288019252edf41c14 | 5,783 | py | Python | kreveik/network/generators.py | kreveik/Kreveik | 5144c555c526f68560d891e39c401053c5286359 | [
"Apache-2.0"
] | null | null | null | kreveik/network/generators.py | kreveik/Kreveik | 5144c555c526f68560d891e39c401053c5286359 | [
"Apache-2.0"
] | null | null | null | kreveik/network/generators.py | kreveik/Kreveik | 5144c555c526f68560d891e39c401053c5286359 | [
"Apache-2.0"
] | 1 | 2020-01-21T05:32:02.000Z | 2020-01-21T05:32:02.000Z |
# Copyright 2012 Mehmet Ali ANIL
#
# 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 applicabl... | 34.628743 | 103 | 0.635483 | 741 | 5,783 | 4.846154 | 0.246964 | 0.083542 | 0.031189 | 0.024506 | 0.370092 | 0.306043 | 0.287942 | 0.287942 | 0.275411 | 0.275411 | 0 | 0.010997 | 0.276673 | 5,783 | 166 | 104 | 34.837349 | 0.847478 | 0.105309 | 0 | 0.594937 | 0 | 0 | 0.055398 | 0 | 0 | 0 | 0 | 0.006024 | 0 | 0 | null | null | 0 | 0.139241 | null | null | 0.037975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2757fc0210ec2e807ace7270e67e23a0624c1d33 | 2,963 | py | Python | posts/models.py | devmedtz/sogea | 54cf257856cae451ad87e2396b8e44a34c0c6daf | [
"MIT"
] | 3 | 2021-04-08T12:50:40.000Z | 2021-05-09T07:36:52.000Z | posts/models.py | devmedtz/sogea | 54cf257856cae451ad87e2396b8e44a34c0c6daf | [
"MIT"
] | 5 | 2021-06-05T00:07:57.000Z | 2022-03-12T01:00:20.000Z | posts/models.py | devmedtz/sogea | 54cf257856cae451ad87e2396b8e44a34c0c6daf | [
"MIT"
] | 2 | 2021-04-07T15:17:46.000Z | 2021-05-09T06:29:57.000Z | import uuid
import readtime
from uuid import uuid4
from django.utils import timezone
from datetime import datetime
from django.shortcuts import reverse
from django.utils.text import slugify
from django.db import models
from django.contrib.auth import get_user_model
from django_countries.fields import CountryField
from ... | 32.56044 | 90 | 0.721566 | 373 | 2,963 | 5.58445 | 0.335121 | 0.033605 | 0.033605 | 0.048008 | 0.220835 | 0.220835 | 0.165146 | 0.12578 | 0.12578 | 0.089294 | 0 | 0.004503 | 0.175498 | 2,963 | 90 | 91 | 32.922222 | 0.848138 | 0.011137 | 0 | 0.117647 | 0 | 0 | 0.042706 | 0.018791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.25 | 0.073529 | 0.808824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
276951544e11db83f6f8469b343a125965e539b8 | 1,196 | py | Python | src/105.py | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | 4 | 2015-05-02T09:15:54.000Z | 2018-06-28T16:18:20.000Z | src/105.py | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | null | null | null | src/105.py | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | 1 | 2017-10-29T06:35:59.000Z | 2017-10-29T06:35:59.000Z | import os
import time
# time cost: about 6 s
def countBinOnes(x):
cnt = 0
while x != 0:
cnt += 1
x &= x - 1
return cnt
def isSpecialSumSet(A):
N = ( 1 << len(A) ) - 1
subset = N * [None]
for i in range(1, N):
subset[i] = 0
for j in range(len(A)):
if (... | 27.813953 | 73 | 0.476589 | 168 | 1,196 | 3.380952 | 0.339286 | 0.049296 | 0.084507 | 0.038732 | 0.271127 | 0.214789 | 0.169014 | 0.169014 | 0.169014 | 0 | 0 | 0.028807 | 0.390468 | 1,196 | 43 | 74 | 27.813953 | 0.750343 | 0.065217 | 0 | 0.131579 | 0 | 0 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
276dcf547cfe00ccda3fe6e1bb75e322db31b7f3 | 1,752 | py | Python | syntax_types_variables_comments.py | sumon-dey/PythonConcepts | a014656232ff97161f995bf0124f6ce9daf42496 | [
"Apache-2.0"
] | 6 | 2019-07-21T13:07:31.000Z | 2021-02-24T10:36:06.000Z | syntax_types_variables_comments.py | sumon-dey/PythonConcepts | a014656232ff97161f995bf0124f6ce9daf42496 | [
"Apache-2.0"
] | null | null | null | syntax_types_variables_comments.py | sumon-dey/PythonConcepts | a014656232ff97161f995bf0124f6ce9daf42496 | [
"Apache-2.0"
] | 3 | 2021-02-20T11:01:27.000Z | 2021-07-22T10:58:34.000Z | # Following are the basic concepts to get started with Python 3.7
"""This is a sample Python
multiline docstring"""
# Display
print("Let's get started with Python")
print("Let's understand", end=" ")
print("The Basic Concepts first")
print("**********************************************************")
# Variables
# I... | 34.352941 | 113 | 0.651256 | 224 | 1,752 | 5.089286 | 0.5 | 0.031579 | 0.034211 | 0.047368 | 0.040351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022368 | 0.13242 | 1,752 | 50 | 114 | 35.04 | 0.727632 | 0.458333 | 0 | 0.142857 | 0 | 0 | 0.383208 | 0.249731 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.678571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
277255e91268741237a611547dd072edd4d9d237 | 5,638 | py | Python | elasticai/creator/vhdl/number_representations.py | es-ude/elastic-ai.creator | 329f779e97bcb9e175409564b733f7a756996143 | [
"MIT"
] | 1 | 2022-02-02T14:11:26.000Z | 2022-02-02T14:11:26.000Z | elasticai/creator/vhdl/number_representations.py | es-ude/elastic-ai.creator | 329f779e97bcb9e175409564b733f7a756996143 | [
"MIT"
] | 50 | 2021-12-16T15:57:28.000Z | 2022-03-28T13:29:46.000Z | elasticai/creator/vhdl/number_representations.py | es-ude/elastic-ai.creator | 329f779e97bcb9e175409564b733f7a756996143 | [
"MIT"
] | 1 | 2021-12-17T11:55:53.000Z | 2021-12-17T11:55:53.000Z | import math
from typing import Iterable, Iterator, Union
class FloatToSignedFixedPointConverter:
"""
Create a fixed point representation as an unsigned int data type using two complements.
We might want to have this create its own type `FixedPointNumber` in
the future. That way we could make sure tha... | 37.586667 | 133 | 0.699007 | 771 | 5,638 | 4.817121 | 0.252918 | 0.040388 | 0.051696 | 0.038772 | 0.325256 | 0.301562 | 0.271944 | 0.271944 | 0.246634 | 0.246634 | 0 | 0.004096 | 0.220468 | 5,638 | 149 | 134 | 37.838926 | 0.840956 | 0.197056 | 0 | 0.323232 | 0 | 0 | 0.078924 | 0.017713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232323 | false | 0 | 0.020202 | 0.060606 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
277527e8230d342762439d23cf06d258ce38a4aa | 8,563 | py | Python | src/opswrapper/element.py | otaithleigh/opswrapper | b3273a3e76d4b07f990fb6949f3a51d0ce6670f0 | [
"MIT"
] | 3 | 2020-04-07T06:43:42.000Z | 2021-12-13T16:45:03.000Z | src/opswrapper/element.py | otaithleigh/opswrapper | b3273a3e76d4b07f990fb6949f3a51d0ce6670f0 | [
"MIT"
] | null | null | null | src/opswrapper/element.py | otaithleigh/opswrapper | b3273a3e76d4b07f990fb6949f3a51d0ce6670f0 | [
"MIT"
] | null | null | null | import dataclasses
from . import base
from . import integration
@dataclasses.dataclass
class ElasticBeamColumn2D(base.OpenSeesObject):
"""Elastic beam column element for 2D analysis.
Does not include shear deformations.
Parameters
----------
tag : int
Unique integer tag for the element.... | 29.836237 | 93 | 0.604227 | 1,052 | 8,563 | 4.898289 | 0.136882 | 0.023287 | 0.02484 | 0.03202 | 0.664661 | 0.650495 | 0.641956 | 0.614399 | 0.600621 | 0.555599 | 0 | 0.002829 | 0.298143 | 8,563 | 286 | 94 | 29.940559 | 0.854576 | 0.379657 | 0 | 0.666667 | 0 | 0 | 0.067175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.020408 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
278fc15e5a77e1755ba977073e144a39b9dddf02 | 11,809 | py | Python | petridish/data/openml.py | Bhaskers-Blu-Org2/petridishnn | bf800c695a7f0774106968a0fadc5150074269ad | [
"MIT"
] | 121 | 2019-06-04T08:30:53.000Z | 2021-12-17T13:27:54.000Z | petridish/data/openml.py | arita37/petridishnn | bf800c695a7f0774106968a0fadc5150074269ad | [
"MIT"
] | 1 | 2019-11-21T04:29:09.000Z | 2019-11-21T04:29:09.000Z | petridish/data/openml.py | arita37/petridishnn | bf800c695a7f0774106968a0fadc5150074269ad | [
"MIT"
] | 22 | 2019-10-10T15:35:47.000Z | 2021-09-13T12:46:09.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import numpy as np
import scipy.io.arff as arff
import bisect
import json
import os, sys
import subprocess
import tensorflow as tf
from tensorpack.dataflow import RNGDataFlow, BatchData, PrefetchData
from tensorpack.callbacks import Inferencer
... | 42.326165 | 109 | 0.611906 | 1,774 | 11,809 | 3.921646 | 0.437993 | 0.025873 | 0.008624 | 0.009487 | 0.185281 | 0.172344 | 0.119448 | 0.102199 | 0.102199 | 0.097025 | 0 | 0.2144 | 0.256669 | 11,809 | 278 | 110 | 42.478417 | 0.57815 | 0.04776 | 0 | 0.11588 | 0 | 0 | 0.057965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034335 | false | 0.004292 | 0.072961 | 0.008584 | 0.141631 | 0.04721 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2790b1be77a8d63d6903fbc67dacd496ffc37a9c | 1,301 | py | Python | McAllister_SunCatcher/match-barcode.py | petervangalen/BarcodeSimilarity | 258601e1bae53e09cc0c580151aee7c5b81dea98 | [
"MIT"
] | 1 | 2022-02-06T02:54:01.000Z | 2022-02-06T02:54:01.000Z | McAllister_SunCatcher/match-barcode.py | petervangalen/BarcodeSimilarity | 258601e1bae53e09cc0c580151aee7c5b81dea98 | [
"MIT"
] | null | null | null | McAllister_SunCatcher/match-barcode.py | petervangalen/BarcodeSimilarity | 258601e1bae53e09cc0c580151aee7c5b81dea98 | [
"MIT"
] | null | null | null | """
this script it to pull out barcodes for Jessica's experiment
from the McAllister lab
"""
from argparse import ArgumentParser
import regex as re
import numpy as np
import toolz as tz
def stream_fastq(file_handler):
""""
Generator which gives all four lines if a fastq read as one string
(snagged from htt... | 31.731707 | 79 | 0.617986 | 178 | 1,301 | 4.393258 | 0.522472 | 0.057545 | 0.01023 | 0.066496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01119 | 0.244427 | 1,301 | 40 | 80 | 32.525 | 0.784334 | 0 | 0 | 0 | 0 | 0 | 0.115028 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27925d5ba27bee85fd40e8204460079cd7916810 | 1,897 | py | Python | legacy/2020/bbbot.py | Ciciliottss/BBBot | 0c4def1a7d01f11568ae1bba5de05ca03b8bfa98 | [
"MIT"
] | 11 | 2020-03-16T04:57:05.000Z | 2022-02-09T03:30:13.000Z | legacy/2020/bbbot.py | Ciciliottss/BBBot | 0c4def1a7d01f11568ae1bba5de05ca03b8bfa98 | [
"MIT"
] | 1 | 2022-02-28T02:04:00.000Z | 2022-02-28T02:04:00.000Z | legacy/2020/bbbot.py | Ciciliottss/BBBot | 0c4def1a7d01f11568ae1bba5de05ca03b8bfa98 | [
"MIT"
] | 2 | 2021-02-22T03:46:56.000Z | 2021-05-01T19:28:56.000Z | from tkinter import *
import vote_bot
from functools import partial
import threading
from utils import loadCredentials
def start(mail,password,option,delay,url):
#print(mail.get(),password.get(),url.get())
process = threading.Thread(target=vote_bot.start_bot,args=(int(option.get()),mail.get(),password.get(),ur... | 30.111111 | 136 | 0.685293 | 270 | 1,897 | 4.77037 | 0.411111 | 0.055901 | 0.049689 | 0.055901 | 0.037267 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0.051746 | 0.154454 | 1,897 | 62 | 137 | 30.596774 | 0.751247 | 0.02214 | 0 | 0 | 0 | 0 | 0.097627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.173913 | 0.108696 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2794c085f9168fac5934c0cf0299c00f6319e487 | 4,571 | py | Python | server/edd/utilities.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 13 | 2016-11-15T07:33:40.000Z | 2021-09-22T12:19:13.000Z | server/edd/utilities.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 40 | 2017-04-04T15:20:14.000Z | 2022-03-31T04:34:37.000Z | server/edd/utilities.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 10 | 2017-09-21T07:27:01.000Z | 2022-03-10T17:02:19.000Z | """General utility code for EDD."""
import json
import mimetypes
import re
from datetime import date, datetime
from decimal import Decimal
from uuid import UUID
from dateutil import parser as date_parser
from django.conf import settings
from django.contrib.staticfiles import storage
from django.core.exceptions import... | 29.490323 | 89 | 0.658937 | 544 | 4,571 | 5.461397 | 0.365809 | 0.020195 | 0.020195 | 0.016156 | 0.172333 | 0.151464 | 0.078088 | 0.078088 | 0.044429 | 0 | 0 | 0.011953 | 0.249617 | 4,571 | 154 | 90 | 29.681818 | 0.854227 | 0.22949 | 0 | 0.068182 | 0 | 0 | 0.12819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0.113636 | 0.159091 | 0.034091 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2795c7ecfb1f83a489e726bba82ddcc58c6c6e0f | 7,857 | py | Python | src/rrt/rrt_star_bid_lstm_2d.py | kctoayo88/lstm_birrt | 347e365ada664e5e1b3cdeedbc1299f4ebd24848 | [
"MIT"
] | 1 | 2020-06-19T11:22:45.000Z | 2020-06-19T11:22:45.000Z | src/rrt/rrt_star_bid_lstm_2d.py | Higgs666/lstm_birrt | 347e365ada664e5e1b3cdeedbc1299f4ebd24848 | [
"MIT"
] | null | null | null | src/rrt/rrt_star_bid_lstm_2d.py | Higgs666/lstm_birrt | 347e365ada664e5e1b3cdeedbc1299f4ebd24848 | [
"MIT"
] | 1 | 2022-02-19T19:35:36.000Z | 2022-02-19T19:35:36.000Z | import sys
sys.path.append('./src')
import random
import numpy as np
import torch
from torch.autograd import Variable
from nn.ws2D.model import LSTM
from rrt.heuristics import path_cost
from rrt.rrt_star import RRTStar
from utilities.geometry import steer
class RRTStarBidirectional_LSTM(RRTStar):
def __init__(... | 39.482412 | 128 | 0.577956 | 1,087 | 7,857 | 3.987121 | 0.185833 | 0.028842 | 0.029995 | 0.008306 | 0.205814 | 0.156207 | 0.150669 | 0.121366 | 0.113982 | 0.113982 | 0 | 0.009846 | 0.340715 | 7,857 | 198 | 129 | 39.681818 | 0.826834 | 0.098384 | 0 | 0.127451 | 0 | 0 | 0.000955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
279a6a989e5522d3a0710cc1ffb6f48f93d918a2 | 3,767 | py | Python | api/movie_database/movies/migrations/0001_initial.py | cocorocho/movie_database | a1fbcb432612c00cf8bd43952442714b5f2bdb35 | [
"MIT"
] | null | null | null | api/movie_database/movies/migrations/0001_initial.py | cocorocho/movie_database | a1fbcb432612c00cf8bd43952442714b5f2bdb35 | [
"MIT"
] | null | null | null | api/movie_database/movies/migrations/0001_initial.py | cocorocho/movie_database | a1fbcb432612c00cf8bd43952442714b5f2bdb35 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2022-02-04 13:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Director',
fields=[
... | 41.855556 | 126 | 0.551367 | 352 | 3,767 | 5.721591 | 0.241477 | 0.059583 | 0.080437 | 0.107249 | 0.50993 | 0.494538 | 0.494538 | 0.415094 | 0.415094 | 0.370407 | 0 | 0.01807 | 0.30953 | 3,767 | 89 | 127 | 42.325843 | 0.756248 | 0.011946 | 0 | 0.45122 | 1 | 0 | 0.138172 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27a55987e1e6e862320ac72b9b91bfa7dc47e061 | 3,944 | py | Python | unsec/email_collection.py | Fougere87/unsec | 25a17a755a41eaa29bbc5dcebcf1a3e0993c0895 | [
"Unlicense"
] | null | null | null | unsec/email_collection.py | Fougere87/unsec | 25a17a755a41eaa29bbc5dcebcf1a3e0993c0895 | [
"Unlicense"
] | 5 | 2015-10-19T14:48:50.000Z | 2016-09-19T14:25:22.000Z | unsec/email_collection.py | Fougere87/unsec | 25a17a755a41eaa29bbc5dcebcf1a3e0993c0895 | [
"Unlicense"
] | null | null | null | # coding: utf8
"""email_collection.py: EmailCollection is a container for Email class """
__author__ = "Sacha Schutz - Hugo Mayer"
__copyright__ = "Copyright 2015, labsquare"
__license__ = "GPL3"
__email__ = "sacha@labsquare.org"
import re
import glob
from unsec import Email, tools
import logging
c... | 22.797688 | 91 | 0.575811 | 445 | 3,944 | 4.937079 | 0.235955 | 0.045517 | 0.036413 | 0.050979 | 0.262176 | 0.262176 | 0.235321 | 0.221666 | 0.162949 | 0.086482 | 0 | 0.003023 | 0.329108 | 3,944 | 172 | 92 | 22.930233 | 0.827286 | 0.172414 | 0 | 0.113924 | 0 | 0 | 0.047138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265823 | false | 0 | 0.050633 | 0.075949 | 0.468354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27b55879516217acf9a4621fbf3f5d1a69130234 | 3,653 | py | Python | TL/Params.py | uyplayer/Sentiment-Analysis | 24edf6253fbc7c90de6890370dc4eebfdf3c5c1a | [
"MIT"
] | null | null | null | TL/Params.py | uyplayer/Sentiment-Analysis | 24edf6253fbc7c90de6890370dc4eebfdf3c5c1a | [
"MIT"
] | null | null | null | TL/Params.py | uyplayer/Sentiment-Analysis | 24edf6253fbc7c90de6890370dc4eebfdf3c5c1a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
@Time : 2/14/21 7:20 PM
@Author : uyplayer
@Site : uyplayer.pw
@contact : uyplayer@qq.com
@File : Params.py
@Software : PyCharm
"""
# dependency library
from __future__ import print_function
# system
import argparse
# model PARAMS
parser = argparse.Argument... | 62.982759 | 123 | 0.724062 | 532 | 3,653 | 4.785714 | 0.283835 | 0.113119 | 0.213669 | 0.040063 | 0.326787 | 0.187745 | 0.130401 | 0.076984 | 0.076984 | 0.040063 | 0 | 0.027397 | 0.100739 | 3,653 | 57 | 124 | 64.087719 | 0.747641 | 0.067068 | 0 | 0 | 0 | 0 | 0.396343 | 0.009142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.054054 | 0.027027 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27bc30ef797b736ab5425afa57b07aa86ab24611 | 334 | py | Python | {{cookiecutter.project_slug}}/backend/backend/urls.py | Afrowave/cookiecutter-react-django | 751467a6ebd16fcad604a736e4d113bd32522630 | [
"MIT"
] | 93 | 2020-02-10T13:42:48.000Z | 2022-03-19T12:43:33.000Z | {{cookiecutter.project_slug}}/backend/backend/urls.py | Afrowave/cookiecutter-react-django | 751467a6ebd16fcad604a736e4d113bd32522630 | [
"MIT"
] | 93 | 2020-01-15T12:32:38.000Z | 2022-03-28T04:22:18.000Z | {{cookiecutter.project_slug}}/backend/backend/urls.py | Afrowave/cookiecutter-react-django | 751467a6ebd16fcad604a736e4d113bd32522630 | [
"MIT"
] | 20 | 2020-03-07T13:00:35.000Z | 2022-01-06T16:16:27.000Z | from contrib.views import char_count
from django.contrib import admin
from django.urls import path, re_path
from django.views.generic import TemplateView
urlpatterns = [
path("admin/", admin.site.urls),
path("char_count", char_count, name="char_count"),
re_path(".*", TemplateView.as_view(template_name="ind... | 30.363636 | 68 | 0.748503 | 47 | 334 | 5.148936 | 0.446809 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122754 | 334 | 10 | 69 | 33.4 | 0.825939 | 0 | 0 | 0 | 0 | 0 | 0.113772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
27bd0855f8b6b96e61e3a979a2ef02601f437cea | 1,844 | py | Python | trading_alert/crypto/tasks.py | Mohammadrezafah/trading-alert | 4c54e20d2b653e743ab745265bcbcf74efad20b8 | [
"MIT"
] | 1 | 2022-02-03T05:02:25.000Z | 2022-02-03T05:02:25.000Z | trading_alert/crypto/tasks.py | Mohammadrezafah/trading-alert | 4c54e20d2b653e743ab745265bcbcf74efad20b8 | [
"MIT"
] | null | null | null | trading_alert/crypto/tasks.py | Mohammadrezafah/trading-alert | 4c54e20d2b653e743ab745265bcbcf74efad20b8 | [
"MIT"
] | null | null | null | import logging
import cryptocompare
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.exceptions import ImproperlyConfigured
from django.core.mail import EmailMessage
from config import celery_app
from trading_alert.crypto.models import CriptoAlert
User = get_user_model... | 34.792453 | 109 | 0.706074 | 237 | 1,844 | 5.240506 | 0.35865 | 0.221417 | 0.07649 | 0.055556 | 0.208535 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0.00206 | 0.210412 | 1,844 | 52 | 110 | 35.461538 | 0.850962 | 0.014642 | 0 | 0 | 0 | 0 | 0.14876 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.177778 | 0 | 0.311111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c0766c4289a41a4a1c601d3414360b1ffde867 | 1,270 | py | Python | recipes/jumscale/service_jumpscale_base.py | threefoldtech/digital_me_recipes | 3a67e2c6683cae32294fddc292244a50a4745781 | [
"Apache-2.0"
] | null | null | null | recipes/jumscale/service_jumpscale_base.py | threefoldtech/digital_me_recipes | 3a67e2c6683cae32294fddc292244a50a4745781 | [
"Apache-2.0"
] | null | null | null | recipes/jumscale/service_jumpscale_base.py | threefoldtech/digital_me_recipes | 3a67e2c6683cae32294fddc292244a50a4745781 | [
"Apache-2.0"
] | null | null | null | from jumpscale import j
import gevent
JSBASE = j.servers.digitalme.community.service_class_get()
class Service(JSBASE):
def init(self):
#TODO, check min version is 9.5 of jumpscale
self.data.state = "init"
self.data_register()
def action_start(self):
if self.data.state in ... | 24.901961 | 60 | 0.524409 | 145 | 1,270 | 4.510345 | 0.372414 | 0.159021 | 0.139144 | 0.087156 | 0.243119 | 0.108563 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.36063 | 1,270 | 50 | 61 | 25.4 | 0.796798 | 0.044094 | 0 | 0.111111 | 0 | 0 | 0.077622 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.222222 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c4404ec6a02c4f8f831a91ae157fab292c5e4c | 1,567 | py | Python | test/operators/test_func.py | Algy/pipex | 02b958f67b32cad4a492d098a2ed73f971c6ac5f | [
"MIT"
] | 3 | 2018-12-24T03:48:40.000Z | 2018-12-24T04:07:36.000Z | test/operators/test_func.py | Algy/pipex | 02b958f67b32cad4a492d098a2ed73f971c6ac5f | [
"MIT"
] | 2 | 2021-03-18T21:56:12.000Z | 2021-09-08T00:47:14.000Z | test/operators/test_func.py | Algy/pipex | 02b958f67b32cad4a492d098a2ed73f971c6ac5f | [
"MIT"
] | null | null | null | import pytest
import numpy as np
from pipex.operators import (
done,
tap,
channel,
preload,
dup,
batch,
select_channels,
unbatch,
map,
filter,
slice,
grep,
take,
drop
)
from pipex.pdatastructures import PRecord
def test_done():
([1,2,3] >> done).do()
def t... | 21.763889 | 88 | 0.557754 | 237 | 1,567 | 3.607595 | 0.236287 | 0.02807 | 0.038596 | 0.05731 | 0.292398 | 0.280702 | 0.245614 | 0.245614 | 0.070175 | 0 | 0 | 0.057983 | 0.240587 | 1,567 | 71 | 89 | 22.070423 | 0.660504 | 0 | 0 | 0.075472 | 0 | 0 | 0.002554 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 1 | 0.207547 | false | 0 | 0.075472 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c56b129db65e83fece37c4dc7350605ee1b493 | 798 | py | Python | setup.py | danbradham/bands | c8bdca1bafe223bbc5e0e6cedafaec9ac1fa180b | [
"MIT"
] | 1 | 2020-02-13T23:03:23.000Z | 2020-02-13T23:03:23.000Z | setup.py | danbradham/bands | c8bdca1bafe223bbc5e0e6cedafaec9ac1fa180b | [
"MIT"
] | null | null | null | setup.py | danbradham/bands | c8bdca1bafe223bbc5e0e6cedafaec9ac1fa180b | [
"MIT"
] | null | null | null | from setuptools import setup
import bands
setup(
name=bands.__title__,
version=bands.__version__,
description=bands.__description__,
long_description=open('README.rst', 'r').read(),
author=bands.__author__,
author_email=bands.__email__,
url=bands.__url__,
license=bands.__license__,
... | 29.555556 | 71 | 0.636591 | 76 | 798 | 6.276316 | 0.592105 | 0.119497 | 0.157233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.236842 | 798 | 26 | 72 | 30.692308 | 0.778325 | 0 | 0 | 0 | 0 | 0 | 0.422306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27ce8e762b053ff21be44017e4f3e7beaea7fd16 | 2,616 | py | Python | apiser/08/src/views/login.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | null | null | null | apiser/08/src/views/login.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | 2 | 2022-02-10T12:00:22.000Z | 2022-03-02T02:31:40.000Z | apiser/08/src/views/login.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
import datetime
import asyncio
from jinja2 import Environment, PackageLoader, select_autoescape
from urllib.parse import parse_qs, unquote
from sanic import Blueprint
from sanic.response import html, json, text
from sanic.views import HTTPMethodView
from pymongo import MongoClient
try:... | 29.393258 | 82 | 0.637232 | 321 | 2,616 | 5.065421 | 0.367601 | 0.04428 | 0.039975 | 0.0492 | 0.071341 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004548 | 0.243502 | 2,616 | 88 | 83 | 29.727273 | 0.817079 | 0.020642 | 0 | 0.033333 | 0 | 0 | 0.065488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.233333 | 0 | 0.466667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27d3d12ec406bb2ca068a1de0bc3769a6504e3f2 | 2,049 | py | Python | fast_world_creator/utils/minecraft_utils.py | pizzaspren/FastWorldCreator | f8b4917f650d264b0f1ddaa7a68adb18beb912ca | [
"MIT"
] | 4 | 2020-05-20T02:40:34.000Z | 2021-12-22T22:35:29.000Z | fast_world_creator/utils/minecraft_utils.py | pizzaspren/FastWorldCreator | f8b4917f650d264b0f1ddaa7a68adb18beb912ca | [
"MIT"
] | 1 | 2020-05-20T02:40:30.000Z | 2020-05-20T20:59:44.000Z | fast_world_creator/utils/minecraft_utils.py | pizzaspren/FastWorldCreator | f8b4917f650d264b0f1ddaa7a68adb18beb912ca | [
"MIT"
] | null | null | null | import enum
import logging
from typing import List, Dict
class Difficulties(enum.IntEnum):
""" Representation of the difficulties in Minecraft. """
PEACEFUL = 0
EASY = 1
NORMAL = 2
HARD = 3
HARDCORE = 4
def is_hardcore(self) -> bool:
""" Whether the selected difficulty is equal to... | 28.859155 | 76 | 0.648609 | 273 | 2,049 | 4.783883 | 0.494505 | 0.011485 | 0.043645 | 0.041348 | 0.098009 | 0.052067 | 0 | 0 | 0 | 0 | 0 | 0.059925 | 0.218155 | 2,049 | 70 | 77 | 29.271429 | 0.755306 | 0.352855 | 0 | 0 | 0 | 0 | 0.262866 | 0.051465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.025641 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
27de3dab4c57ebc0ba9e8bd80bb353c40a6aee79 | 2,323 | py | Python | Scripts/Scanning/SearchNewOperators/preparingScanCountry.py | tchax95/DarkCometTracker | af7f435bbe7941b1ce2b706e12fc8630921aef3c | [
"MIT"
] | 1 | 2020-12-25T11:52:21.000Z | 2020-12-25T11:52:21.000Z | Scripts/Scanning/SearchNewOperators/preparingScanCountry.py | tchax95/DarkCometTracker | af7f435bbe7941b1ce2b706e12fc8630921aef3c | [
"MIT"
] | null | null | null | Scripts/Scanning/SearchNewOperators/preparingScanCountry.py | tchax95/DarkCometTracker | af7f435bbe7941b1ce2b706e12fc8630921aef3c | [
"MIT"
] | 1 | 2021-04-22T20:17:31.000Z | 2021-04-22T20:17:31.000Z | import os
import sys, getopt
import re
import json
from pprint import pprint
import binascii
import operator
import time
import csv
import subprocess
import re
from more_itertools import unique_everseen
import datetime
def removeDuplicates(filename):
print 'Remove duplicates'
tempFile = 'temp_dupl.csv'
w... | 27.654762 | 147 | 0.671545 | 276 | 2,323 | 5.478261 | 0.431159 | 0.023148 | 0.029762 | 0.055556 | 0.031746 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0.007096 | 0.211365 | 2,323 | 83 | 148 | 27.987952 | 0.818231 | 0.066294 | 0 | 0.071429 | 0 | 0 | 0.154596 | 0.044568 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.232143 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27e16ebf2f3796902e6019f67aa4d824ee1a3f9b | 35,867 | py | Python | src/cloudlight/algorithms/privacy.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | 3 | 2020-08-21T00:18:50.000Z | 2020-10-21T17:40:47.000Z | src/cloudlight/algorithms/privacy.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | src/cloudlight/algorithms/privacy.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on May 10, 2010
@author: jose
'''
import random
import time
import math
class LinkPrivacyModelException(Exception):
'''
classdocs
'''
pass
class SetMem:
def __init__(self, list=[]):
self.__rep = set(list)
... | 37.1294 | 284 | 0.575961 | 4,595 | 35,867 | 4.203917 | 0.091839 | 0.04333 | 0.026091 | 0.045659 | 0.578868 | 0.481597 | 0.413832 | 0.358078 | 0.312678 | 0.272351 | 0 | 0.011825 | 0.337441 | 35,867 | 965 | 285 | 37.167876 | 0.799318 | 0.168372 | 0 | 0.328194 | 0 | 0 | 0.052749 | 0.013361 | 0 | 0 | 0 | 0.001036 | 0 | 0 | null | null | 0.008811 | 0.006608 | null | null | 0.044053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27f442a745ea34008fa06d0bd9ae1e009d3fec5b | 25,595 | py | Python | display_stats.py | rionbr/ddi-blumenau | 394e3cb983f90079c9bc3b5a96dd7cbd86b1b524 | [
"MIT"
] | 1 | 2019-07-28T19:28:12.000Z | 2019-07-28T19:28:12.000Z | display_stats.py | rionbr/ddi-blumenau | 394e3cb983f90079c9bc3b5a96dd7cbd86b1b524 | [
"MIT"
] | null | null | null | display_stats.py | rionbr/ddi-blumenau | 394e3cb983f90079c9bc3b5a96dd7cbd86b1b524 | [
"MIT"
] | null | null | null | # coding=utf-8
# Author: Rion B Correia
# Date: Nov 16, 2014
#
# Description: Plot DDI Statistics
#
#
# coding=utf-8
from __future__ import division
import numpy as np
import pandas as pd
import scipy.stats
from scipy import stats
slice = pd.IndexSlice
pd.set_option('display.max_rows', 24)
pd.set_option('display.max_co... | 47.574349 | 308 | 0.657589 | 4,504 | 25,595 | 3.480684 | 0.078153 | 0.034764 | 0.015692 | 0.022326 | 0.663073 | 0.588569 | 0.501371 | 0.426357 | 0.369458 | 0.332589 | 0 | 0.019041 | 0.088963 | 25,595 | 537 | 309 | 47.662942 | 0.653272 | 0.066263 | 0 | 0.172507 | 0 | 0.016173 | 0.272158 | 0.008279 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021563 | null | null | 0.264151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e07756450dbb0273c2c24ef7b4796e153e4f6dd | 3,474 | py | Python | flats_scraper/alembic/versions/8ab59819cade_.py | eredzik/flats_scraper | 767d2b7ccf31319fc0827e0b9e16e0be8685f1f9 | [
"MIT"
] | 1 | 2020-08-29T14:55:21.000Z | 2020-08-29T14:55:21.000Z | flats_scraper/alembic/versions/8ab59819cade_.py | eredzik/flats_scraper | 767d2b7ccf31319fc0827e0b9e16e0be8685f1f9 | [
"MIT"
] | 12 | 2020-04-06T09:31:04.000Z | 2022-01-21T19:46:57.000Z | flats_scraper/alembic/versions/8ab59819cade_.py | eredzik/flats_scraper | 767d2b7ccf31319fc0827e0b9e16e0be8685f1f9 | [
"MIT"
] | null | null | null | """empty message
Revision ID: 8ab59819cade
Revises:
Create Date: 2020-10-10 01:08:26.803140
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '8ab59819cade'
down_revision = None
branch_labels = None
depends_on = None
d... | 40.870588 | 95 | 0.678756 | 459 | 3,474 | 5.043573 | 0.244009 | 0.127862 | 0.151188 | 0.198704 | 0.491577 | 0.475162 | 0.329158 | 0.259611 | 0.162851 | 0.121382 | 0 | 0.023349 | 0.137018 | 3,474 | 84 | 96 | 41.357143 | 0.748833 | 0.081462 | 0 | 0.074627 | 0 | 0 | 0.131896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.044776 | 0 | 0.074627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd6d4e5a85e3a849bf1818323e6f538d77636a2d | 3,267 | py | Python | fun/bingoCreator.py | jdede/tools | 18f09a2115f2beafe905dc5eab5635d46febb643 | [
"MIT"
] | 1 | 2015-12-21T19:07:28.000Z | 2015-12-21T19:07:28.000Z | fun/bingoCreator.py | jdede/tools | 18f09a2115f2beafe905dc5eab5635d46febb643 | [
"MIT"
] | null | null | null | fun/bingoCreator.py | jdede/tools | 18f09a2115f2beafe905dc5eab5635d46febb643 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Bingo creator version 0.2
Jens Dede, mail@jdede.de
Bingo is a famous game - especially for (boring) meetings. Collect some typical
words wich are used in (more or less) every meeting. Place them in a textfile
(one word per line) and start this script. It will create s... | 34.755319 | 141 | 0.690542 | 482 | 3,267 | 4.645228 | 0.427386 | 0.03439 | 0.045556 | 0.020098 | 0.126396 | 0.074587 | 0.074587 | 0.03841 | 0 | 0 | 0 | 0.020104 | 0.177839 | 3,267 | 93 | 142 | 35.129032 | 0.813477 | 0.274564 | 0 | 0 | 0 | 0 | 0.180426 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd6ecf02101e9c426dfb46c2bd74cb191399e5f3 | 383 | py | Python | 09-mock-challenge/my_library/module.py | haneyr/pytest-examples | f3a3419dfc2ad0777177640f637eeb206cf590c8 | [
"MIT"
] | null | null | null | 09-mock-challenge/my_library/module.py | haneyr/pytest-examples | f3a3419dfc2ad0777177640f637eeb206cf590c8 | [
"MIT"
] | null | null | null | 09-mock-challenge/my_library/module.py | haneyr/pytest-examples | f3a3419dfc2ad0777177640f637eeb206cf590c8 | [
"MIT"
] | null | null | null | import pandas as pd
def is_sum_of_series_big(series):
# Lets check if this dataframe has over a thousand rows
if series.sum() > 1000:
return True
else:
return False
if __name__ == "__main__":
s1 = pd.Series([1000, 1000])
print(s1)
print(is_sum_of_series_big(s1))
s2 = pd.Se... | 21.277778 | 59 | 0.639687 | 61 | 383 | 3.688525 | 0.508197 | 0.066667 | 0.093333 | 0.173333 | 0.257778 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0.253264 | 383 | 17 | 60 | 22.529412 | 0.716783 | 0.138381 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.307692 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd700c77fbac68ea2b6a47522fe29f2b0181887f | 693 | py | Python | eon/eon/src/simulator/solarmodel.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | 1 | 2020-02-28T20:35:09.000Z | 2020-02-28T20:35:09.000Z | eon/eon/src/simulator/solarmodel.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | eon/eon/src/simulator/solarmodel.py | tinyos-io/tinyos-3.x-contrib | 3aaf036722a2afc0c0aad588459a5c3e00bd3c01 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
import sys;
if (len(sys.argv) != 5):
print "usage: solarmodel.py <filename> <outfilename> <panel size m^2> <eff>"
sys.exit(1);
fname = sys.argv[1];
outfname = sys.argv[2];
psize = sys.argv[3];
peff = sys.argv[4];
f = file(fname,"r");
outf = file(outfname,"w");
hour = 0;
for line in ... | 18.236842 | 80 | 0.565657 | 105 | 693 | 3.733333 | 0.561905 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0.220779 | 693 | 37 | 81 | 18.72973 | 0.666667 | 0.080808 | 0 | 0 | 0 | 0.047619 | 0.116719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd71ba542a0d839ca15e7f7f74dbad76b50ec5ba | 601 | py | Python | nicos_mlz/kws1/setups/notifiers.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/kws1/setups/notifiers.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/kws1/setups/notifiers.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'Email and SMS notifiers'
group = 'lowlevel'
devices = dict(
email = device('nicos.devices.notifiers.Mailer',
mailserver = 'mailhost.frm2.tum.de',
sender = 'kws1@frm2.tum.de',
copies = [
('g.brandl@fz-juelich.de', 'all'),
('a.feoktystov@fz-juelich.de',... | 27.318182 | 52 | 0.530782 | 64 | 601 | 4.984375 | 0.609375 | 0.112853 | 0.137931 | 0.175549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011601 | 0.282862 | 601 | 21 | 53 | 28.619048 | 0.728538 | 0 | 0 | 0.105263 | 0 | 0 | 0.43594 | 0.264559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd7508ef75f6bedc29ad738364641d8c6fc92482 | 333 | py | Python | scene_packager/python/scene_packager/app.py | evil-g/scene_packager | 4bd55a4c47e09870b5a112e8ec534196f3e631a8 | [
"MIT"
] | null | null | null | scene_packager/python/scene_packager/app.py | evil-g/scene_packager | 4bd55a4c47e09870b5a112e8ec534196f3e631a8 | [
"MIT"
] | null | null | null | scene_packager/python/scene_packager/app.py | evil-g/scene_packager | 4bd55a4c47e09870b5a112e8ec534196f3e631a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Standard
import sys
# Third party
from Qt import QtWidgets
def main():
"""
Standalone QApplication app launch
"""
app = QtWidgets.QApplication.instance() or QtWidgets.QApplication(sys.argv)
win = ui.show(parent=None)
sys.exit(app.exec_())
if __name__ == "__main__"... | 15.857143 | 79 | 0.642643 | 40 | 333 | 5.125 | 0.725 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.216216 | 333 | 20 | 80 | 16.65 | 0.781609 | 0.234234 | 0 | 0 | 0 | 0 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd7558ed37dcc930adbc499a8e71b9bfe9b65c72 | 2,681 | py | Python | ryu/app/ryu_restapi_operation/operate_restapi_topo.py | Yang-Jianlin/ryu | 9aa3e13d8abb5c71e3d8bfa35959653b62ab7b81 | [
"Apache-2.0"
] | 7 | 2021-07-26T13:54:28.000Z | 2022-03-12T13:29:59.000Z | ryu/app/ryu_restapi_operation/operate_restapi_topo.py | Yang-Jianlin/ryu | 9aa3e13d8abb5c71e3d8bfa35959653b62ab7b81 | [
"Apache-2.0"
] | null | null | null | ryu/app/ryu_restapi_operation/operate_restapi_topo.py | Yang-Jianlin/ryu | 9aa3e13d8abb5c71e3d8bfa35959653b62ab7b81 | [
"Apache-2.0"
] | 6 | 2021-06-02T08:46:08.000Z | 2022-03-26T00:43:10.000Z | #!/usr/bin/env python
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSController
from mininet.node import CPULimitedHost, Host, Node
from mininet.node import OVSKernelSwitch, UserSwitch
from mininet.node import IVSSwitch
from mininet.cli import CLI
from mininet.log import setL... | 33.936709 | 82 | 0.606117 | 385 | 2,681 | 4.194805 | 0.238961 | 0.06192 | 0.009288 | 0.034056 | 0.203715 | 0.139319 | 0.094118 | 0.033437 | 0 | 0 | 0 | 0.103896 | 0.224543 | 2,681 | 78 | 83 | 34.371795 | 0.67292 | 0.00746 | 0 | 0.09375 | 0 | 0 | 0.184211 | 0.015789 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140625 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd75af79616427936b96a1c63fec25369fc86c17 | 1,153 | py | Python | MininetGenerator/unused.py | asgokhale/DistributedSystemsCourse | 9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f | [
"Apache-2.0"
] | 4 | 2022-01-16T17:36:49.000Z | 2022-02-07T16:57:33.000Z | MininetGenerator/unused.py | asgokhale/DistributedSystemsCourse | 9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f | [
"Apache-2.0"
] | null | null | null | MininetGenerator/unused.py | asgokhale/DistributedSystemsCourse | 9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f | [
"Apache-2.0"
] | 1 | 2022-01-25T23:51:51.000Z | 2022-01-25T23:51:51.000Z | # set the routes for each router
for i in range (topo.numNetworks):
rID = "r"+str (i)
router = net.get (rID)
for j in range (topo.numNetworks):
neighborID = "r"+str (j)
neighbor = net.get (neighborID)
# do only for distinct router ... | 46.12 | 139 | 0.477016 | 135 | 1,153 | 4.074074 | 0.488889 | 0.025455 | 0.04 | 0.08 | 0.065455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.414571 | 1,153 | 24 | 140 | 48.041667 | 0.792593 | 0.220295 | 0 | 0 | 0 | 0 | 0.109573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd77e527f187d01cf29e27a46dfa2a78e84ea0ed | 307 | py | Python | forkbuntu/steps/merge_initrd.py | jamrizzi/forkbuntu | 3e097d69e72cdca191686614f66521cc93253719 | [
"MIT"
] | 5 | 2018-10-16T02:03:31.000Z | 2019-12-26T18:49:46.000Z | forkbuntu/steps/merge_initrd.py | jamrizzi/forkbuntu | 3e097d69e72cdca191686614f66521cc93253719 | [
"MIT"
] | 1 | 2018-06-13T07:57:44.000Z | 2018-10-16T18:28:06.000Z | forkbuntu/steps/merge_initrd.py | jamrizzi/forkbuntu | 3e097d69e72cdca191686614f66521cc93253719 | [
"MIT"
] | 3 | 2018-06-18T10:38:31.000Z | 2020-10-15T06:25:12.000Z | from ..step import Step
from munch import munchify
from os import path
class MergeInitrd(Step):
messages = munchify({
'past': 'merged initrd',
'present': 'merging initrd'
})
requires = ['unpack_initrd']
def run(self):
s = self.app.services
s.initrd.merge()
| 20.466667 | 35 | 0.612378 | 36 | 307 | 5.194444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270358 | 307 | 14 | 36 | 21.928571 | 0.834821 | 0 | 0 | 0 | 0 | 0 | 0.166124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fd80cd57d714682370439e86beba0965910a2c86 | 2,812 | py | Python | dev/githook/pre_commit_hook.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | 1 | 2021-09-07T08:52:21.000Z | 2021-09-07T08:52:21.000Z | dev/githook/pre_commit_hook.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | dev/githook/pre_commit_hook.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# --------------------------------------------------------------
# Script used to write commit time for each file
# --------------------------------------------------------------
import os, sys
path_sct = os.environ.get("SCT_DIR", os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
sys.... | 30.901099 | 97 | 0.568279 | 358 | 2,812 | 4.243017 | 0.298883 | 0.046083 | 0.025675 | 0.029625 | 0.115207 | 0.025675 | 0 | 0 | 0 | 0 | 0 | 0.000978 | 0.27276 | 2,812 | 90 | 98 | 31.244444 | 0.741809 | 0.127312 | 0 | 0.095238 | 0 | 0 | 0.069967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.079365 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd81d701848ea22215ca8ed64ec5e6428e5ffe99 | 287 | py | Python | blog/migrations/0014_delete_link.py | timptner/farafmb.de | 2b154278d8b44ea3adecafcb8554c1b0b0055e01 | [
"MIT"
] | null | null | null | blog/migrations/0014_delete_link.py | timptner/farafmb.de | 2b154278d8b44ea3adecafcb8554c1b0b0055e01 | [
"MIT"
] | 1 | 2022-02-17T20:28:19.000Z | 2022-02-17T20:28:19.000Z | blog/migrations/0014_delete_link.py | timptner/farafmb.de | 2b154278d8b44ea3adecafcb8554c1b0b0055e01 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-21 09:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0013_delete_protocol'),
]
operations = [
migrations.DeleteModel(
name='Link',
),
]
| 16.882353 | 47 | 0.592334 | 31 | 287 | 5.419355 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093596 | 0.292683 | 287 | 16 | 48 | 17.9375 | 0.73399 | 0.156794 | 0 | 0 | 1 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd881f69a765f42cb00a32e643b3ef5b9647f66a | 2,435 | py | Python | d7a/alp/operands/lorawan_interface_configuration_abp.py | L-I-Am/pyd7a | 7e3dd6ff71c92df72570d6b852ca74cc5af50707 | [
"Apache-2.0"
] | 9 | 2016-05-12T20:11:30.000Z | 2020-08-18T05:46:15.000Z | d7a/alp/operands/lorawan_interface_configuration_abp.py | L-I-Am/pyd7a | 7e3dd6ff71c92df72570d6b852ca74cc5af50707 | [
"Apache-2.0"
] | 2 | 2018-01-14T12:39:06.000Z | 2019-11-25T09:11:08.000Z | d7a/alp/operands/lorawan_interface_configuration_abp.py | L-I-Am/pyd7a | 7e3dd6ff71c92df72570d6b852ca74cc5af50707 | [
"Apache-2.0"
] | 7 | 2016-09-06T11:08:15.000Z | 2020-10-27T10:29:24.000Z | #
# Copyright (c) 2015-2021 University of Antwerp, Aloxy NV.
#
# This file is part of pyd7a.
# See https://github.com/Sub-IoT/pyd7a for further info.
#
# 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 Lice... | 27.055556 | 87 | 0.676797 | 350 | 2,435 | 4.505714 | 0.382857 | 0.050729 | 0.022828 | 0.020292 | 0.041852 | 0.041852 | 0.041852 | 0.041852 | 0 | 0 | 0 | 0.014523 | 0.208214 | 2,435 | 89 | 88 | 27.359551 | 0.803423 | 0.393018 | 0 | 0.065217 | 0 | 0 | 0.034578 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.021739 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fda72df4cbe408496b996dcc8e66168a29f359f0 | 475 | py | Python | formatting/forms.py | simple-coder25/django-analysis | 9213bcb85cccfd7340c96ef87c9a10f36b7367ed | [
"MIT"
] | null | null | null | formatting/forms.py | simple-coder25/django-analysis | 9213bcb85cccfd7340c96ef87c9a10f36b7367ed | [
"MIT"
] | 5 | 2020-06-05T23:29:03.000Z | 2022-02-10T08:41:14.000Z | formatting/forms.py | simple-coder25/django-analysis | 9213bcb85cccfd7340c96ef87c9a10f36b7367ed | [
"MIT"
] | null | null | null | from django import forms
from dashboard.models import FileColumnModel
from formatting.models import ValidationModel
class ValidationForm(forms.ModelForm):
class Meta:
model = ValidationModel
exclude = ['file']
def __init__(self, file=None, *args, **kwargs):
super(ValidationForm, self... | 29.6875 | 109 | 0.698947 | 51 | 475 | 6.352941 | 0.607843 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191579 | 475 | 15 | 110 | 31.666667 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.035789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fdac74066ae9c7bc11e9b651295f8c7df4eaee2e | 322 | py | Python | flawsleuth/ai.py | c0c0n3/kitt4sme.flaw-sleuth | d07ff1ef22fb511d967873fe71032cedb8d657a1 | [
"MIT"
] | null | null | null | flawsleuth/ai.py | c0c0n3/kitt4sme.flaw-sleuth | d07ff1ef22fb511d967873fe71032cedb8d657a1 | [
"MIT"
] | 1 | 2022-03-31T00:06:14.000Z | 2022-03-31T00:06:14.000Z | flawsleuth/ai.py | c0c0n3/kitt4sme.flaw-sleuth | d07ff1ef22fb511d967873fe71032cedb8d657a1 | [
"MIT"
] | null | null | null | import numpy as np
import pickle
ANOMALY_MODEL_PATH_FROM_ROOT = 'data/anomaly_detection.pkl'
def predict(joules: float) -> bool:
with open(ANOMALY_MODEL_PATH_FROM_ROOT, 'rb') as open_file:
model = pickle.load(open_file)
label = model.predict(np.array(joules).reshape(-1,1))[0]
return labe... | 24.769231 | 64 | 0.708075 | 48 | 322 | 4.520833 | 0.604167 | 0.110599 | 0.147465 | 0.184332 | 0.221198 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011407 | 0.18323 | 322 | 12 | 65 | 26.833333 | 0.813688 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.080745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdaca3a64e9dcadfe1131ec1e5bf946e018dba73 | 5,802 | py | Python | zentral/contrib/inventory/utils.py | mikemcdonald/zentral | 4aa03937abfbcea6480aa04bd99f4da7b8dfc923 | [
"Apache-2.0"
] | null | null | null | zentral/contrib/inventory/utils.py | mikemcdonald/zentral | 4aa03937abfbcea6480aa04bd99f4da7b8dfc923 | [
"Apache-2.0"
] | null | null | null | zentral/contrib/inventory/utils.py | mikemcdonald/zentral | 4aa03937abfbcea6480aa04bd99f4da7b8dfc923 | [
"Apache-2.0"
] | 1 | 2020-09-09T19:26:04.000Z | 2020-09-09T19:26:04.000Z | import logging
from django.db import connection
from prometheus_client import (CollectorRegistry, Gauge, # NOQA
generate_latest, CONTENT_TYPE_LATEST as prometheus_metrics_content_type)
from zentral.contrib.inventory.models import MachineSnapshotCommit
from zentral.contrib.inventory.event... | 41.442857 | 116 | 0.60393 | 692 | 5,802 | 4.823699 | 0.212428 | 0.089874 | 0.069203 | 0.033553 | 0.3574 | 0.311264 | 0.267525 | 0.251947 | 0.251947 | 0.215398 | 0 | 0.001455 | 0.289383 | 5,802 | 139 | 117 | 41.741007 | 0.808149 | 0.000689 | 0 | 0.296875 | 1 | 0.015625 | 0.318323 | 0.085921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039063 | false | 0 | 0.046875 | 0 | 0.109375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdae9b083dcc30e7f5dde46dbca9b2c3f59a5879 | 35,978 | py | Python | test/unit_tests.py | dykesk/gaussian-wake | d06509af9740a25e9e5be459fdc3a3644fdf609d | [
"Apache-2.0"
] | 3 | 2017-10-21T15:32:17.000Z | 2021-11-23T04:44:11.000Z | test/unit_tests.py | dykesk/gaussian-wake | d06509af9740a25e9e5be459fdc3a3644fdf609d | [
"Apache-2.0"
] | 3 | 2017-08-01T20:04:06.000Z | 2019-06-24T18:21:38.000Z | test/unit_tests.py | dykesk/gaussian-wake | d06509af9740a25e9e5be459fdc3a3644fdf609d | [
"Apache-2.0"
] | 3 | 2019-07-01T19:03:06.000Z | 2020-02-23T10:40:17.000Z | """
Created by Jared J. Thomas, Sep. 2018.
FLOW Lab
Brigham Young University
"""
import unittest
import numpy as np
from _porteagel_fortran import porteagel_analyze, x0_func, theta_c_0_func, sigmay_func, sigma_spread_func
from _porteagel_fortran import sigmaz_func, wake_offset_func, deltav_func, deltav_near_wake_lin_... | 34.660886 | 145 | 0.603007 | 4,892 | 35,978 | 4.180499 | 0.088307 | 0.007237 | 0.044008 | 0.045181 | 0.756002 | 0.704024 | 0.668623 | 0.645983 | 0.599482 | 0.579336 | 0 | 0.105307 | 0.291317 | 35,978 | 1,038 | 146 | 34.660886 | 0.696788 | 0.069654 | 0 | 0.617852 | 0 | 0 | 0.028596 | 0.015197 | 0 | 0 | 0 | 0.000963 | 0.086471 | 1 | 0.099024 | false | 0 | 0.019526 | 0 | 0.132497 | 0.004184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdb31b987feeb2f17f23d8334d30fb77771fae78 | 502 | py | Python | main/migrations/0028_auto_20200610_2248.py | alecstein/mataroa-personal | 4c1b88dc9a113e3de392dd0ce676a6e2dd8589d0 | [
"MIT"
] | 30 | 2020-06-09T12:46:18.000Z | 2022-02-28T23:50:22.000Z | main/migrations/0028_auto_20200610_2248.py | alecstein/mataroa-personal | 4c1b88dc9a113e3de392dd0ce676a6e2dd8589d0 | [
"MIT"
] | 9 | 2020-06-11T15:59:00.000Z | 2022-03-03T00:39:54.000Z | main/migrations/0028_auto_20200610_2248.py | alecstein/mataroa-personal | 4c1b88dc9a113e3de392dd0ce676a6e2dd8589d0 | [
"MIT"
] | 5 | 2020-06-01T00:15:42.000Z | 2021-07-02T12:46:43.000Z | # Generated by Django 3.0.7 on 2020-06-10 22:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("main", "0027_auto_20200610_1904"),
]
operations = [
migrations.AlterField(
model_name="page",
name="is_hidden",
... | 22.818182 | 83 | 0.565737 | 54 | 502 | 5.148148 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092537 | 0.332669 | 502 | 21 | 84 | 23.904762 | 0.737313 | 0.089641 | 0 | 0.133333 | 1 | 0 | 0.206593 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdb67439004cc32ae3a2831467e7e5990539ffe4 | 716 | py | Python | tests/scipy/solve_triangular.py | RoboticExplorationLab/micropython-ulab | b0679e6d16d87f5acb09dee690a71a54d4c2892b | [
"MIT"
] | 232 | 2019-10-30T02:47:59.000Z | 2022-03-29T13:35:42.000Z | tests/scipy/solve_triangular.py | RoboticExplorationLab/micropython-ulab | b0679e6d16d87f5acb09dee690a71a54d4c2892b | [
"MIT"
] | 325 | 2019-10-25T00:27:29.000Z | 2022-03-16T19:47:45.000Z | tests/scipy/solve_triangular.py | RoboticExplorationLab/micropython-ulab | b0679e6d16d87f5acb09dee690a71a54d4c2892b | [
"MIT"
] | 73 | 2019-11-04T19:31:22.000Z | 2022-03-10T03:11:41.000Z | import math
try:
from ulab import scipy, numpy as np
except ImportError:
import scipy
import numpy as np
A = np.array([[3, 0, 2, 6], [2, 1, 0, 1], [1, 0, 1, 4], [1, 2, 1, 8]])
b = np.array([4, 2, 4, 2])
# forward substitution
result = scipy.linalg.solve_triangular(A, b, lower=True)
ref_result = np.array(... | 31.130435 | 81 | 0.659218 | 132 | 716 | 3.5 | 0.363636 | 0.060606 | 0.051948 | 0.125541 | 0.5671 | 0.493506 | 0.493506 | 0.493506 | 0.493506 | 0.272727 | 0 | 0.147157 | 0.164804 | 716 | 22 | 82 | 32.545455 | 0.625418 | 0.058659 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fdba0762e6e8d1e6d0a248a4eeb4d4f6f4d422c4 | 8,234 | py | Python | setup.py | bogiebro/imacropy | d659527cf5af391c07de09484c7163f92fb92aed | [
"BSD-2-Clause"
] | null | null | null | setup.py | bogiebro/imacropy | d659527cf5af391c07de09484c7163f92fb92aed | [
"BSD-2-Clause"
] | null | null | null | setup.py | bogiebro/imacropy | d659527cf5af391c07de09484c7163f92fb92aed | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""setuptools-based setup.py for imacropy.
Tested on Python 3.6.
Usage as usual with setuptools:
python3 setup.py build
python3 setup.py sdist
python3 setup.py bdist_wheel --universal
python3 setup.py install
For details, see
http://setuptools.readthedocs.io/en/latest/setu... | 34.889831 | 141 | 0.65181 | 1,060 | 8,234 | 4.99434 | 0.385849 | 0.017189 | 0.018512 | 0.0102 | 0.058557 | 0.031356 | 0.031356 | 0.031356 | 0.019645 | 0 | 0 | 0.009588 | 0.201967 | 8,234 | 235 | 142 | 35.038298 | 0.796074 | 0.322079 | 0 | 0 | 0 | 0 | 0.668469 | 0.028191 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdc8b743f686463f9f840d24c81020e0bcee0226 | 2,879 | py | Python | a10sdk/core/cgnv6/cgnv6_dns64.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 16 | 2015-05-20T07:26:30.000Z | 2021-01-23T11:56:57.000Z | a10sdk/core/cgnv6/cgnv6_dns64.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 6 | 2015-03-24T22:07:11.000Z | 2017-03-28T21:31:18.000Z | a10sdk/core/cgnv6/cgnv6_dns64.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 23 | 2015-03-29T15:43:01.000Z | 2021-06-02T17:12:01.000Z | from a10sdk.common.A10BaseClass import A10BaseClass
class SamplingEnable(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param counters1: {"enum": ["all", "query", "query-bad-pkt", "query-chg", "query-parallel", "query-passive", "resp", "resp-bad-pkt", "resp-bad-qr", "r... | 49.637931 | 863 | 0.642237 | 357 | 2,879 | 5.131653 | 0.263305 | 0.026201 | 0.058952 | 0.034935 | 0.691048 | 0.691048 | 0.691048 | 0.691048 | 0.655022 | 0.655022 | 0 | 0.014395 | 0.179576 | 2,879 | 57 | 864 | 50.508772 | 0.761219 | 0.743661 | 0 | 0.526316 | 0 | 0 | 0.058908 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdc9ab9dd53398d9fbbe8d5638e85311d7f32218 | 10,424 | py | Python | msgsender_sdk/api/custom_sender/list_support_infom_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | msgsender_sdk/api/custom_sender/list_support_infom_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | msgsender_sdk/api/custom_sender/list_support_infom_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: list_support_infom.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.p... | 44.357447 | 892 | 0.759785 | 1,268 | 10,424 | 5.956625 | 0.131703 | 0.050841 | 0.052827 | 0.047663 | 0.695353 | 0.600953 | 0.530915 | 0.517146 | 0.482987 | 0.482987 | 0 | 0.037643 | 0.120779 | 10,424 | 234 | 893 | 44.547009 | 0.78647 | 0.041251 | 0 | 0.642512 | 1 | 0.004831 | 0.230446 | 0.201903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024155 | 0 | 0.024155 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdcd3ae266afe09f5e9afa6b3894fe875af575e5 | 1,351 | py | Python | ___Rev2_CodeBase/BB_LED_tests.py | MikeFlanigan/Kroova_SBE | 7f68986d4f13503c9febff08def47f9feca78e47 | [
"Unlicense"
] | null | null | null | ___Rev2_CodeBase/BB_LED_tests.py | MikeFlanigan/Kroova_SBE | 7f68986d4f13503c9febff08def47f9feca78e47 | [
"Unlicense"
] | null | null | null | ___Rev2_CodeBase/BB_LED_tests.py | MikeFlanigan/Kroova_SBE | 7f68986d4f13503c9febff08def47f9feca78e47 | [
"Unlicense"
] | null | null | null | import Adafruit_BBIO.GPIO as GPIO
import time
BB_LED1_Pin = "P8_14"
BB_LED2_Pin = "P8_16"
BB_LED3_Pin = "P8_18"
BB_LED1 = False
BB_LED2 = False
BB_LED3 = False
GPIO.setup(BB_LED1_Pin, GPIO.OUT)
GPIO.setup(BB_LED2_Pin, GPIO.OUT)
GPIO.setup(BB_LED3_Pin, GPIO.OUT)
BB_DO1_Pin = "P9_25"
BB_DO2_Pin = "P9_27"
BB_DO1 = Fa... | 24.563636 | 59 | 0.663212 | 228 | 1,351 | 3.653509 | 0.171053 | 0.176471 | 0.230492 | 0.078031 | 0.606243 | 0.606243 | 0.429772 | 0.253301 | 0.253301 | 0.117647 | 0 | 0.050992 | 0.216136 | 1,351 | 54 | 60 | 25.018519 | 0.7356 | 0.024426 | 0 | 0.348837 | 0 | 0 | 0.039514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 0.069767 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdce17761245b54e1cd591911c176d4e4cbfea9b | 394 | py | Python | setup/tools/diff.py | peteyus/tModLoader | 7d4616581d34b9b3e0eafc66e3b26f814129621c | [
"MIT"
] | 1 | 2021-07-29T19:32:04.000Z | 2021-07-29T19:32:04.000Z | setup/tools/diff.py | peteyus/tModLoader | 7d4616581d34b9b3e0eafc66e3b26f814129621c | [
"MIT"
] | null | null | null | setup/tools/diff.py | peteyus/tModLoader | 7d4616581d34b9b3e0eafc66e3b26f814129621c | [
"MIT"
] | null | null | null | import sys
import difflib
baselines = open(sys.argv[1], 'U').readlines()
srclines = open(sys.argv[2], 'U').readlines()
#strip unicode BOM
if baselines[0].startswith('\xef\xbb\xbf'):
baselines[0] = baselines[0][3:]
if srclines[0].startswith('\xef\xbb\xbf'):
srclines[0] = srclines[0][3:]
print ''.join(difflib.... | 28.142857 | 95 | 0.664975 | 60 | 394 | 4.35 | 0.45 | 0.10728 | 0.084291 | 0.130268 | 0.153257 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037143 | 0.111675 | 394 | 13 | 96 | 30.307692 | 0.708571 | 0.043147 | 0 | 0 | 0 | 0 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdcfaeaf4b86130f772b5ba9682e874192eb5b94 | 3,248 | py | Python | ModelUtils/actionlist.py | tema-tut/tema-tg | 9c3f119c8bf5cc565e6a3e8e9e6205037e326d89 | [
"MIT"
] | null | null | null | ModelUtils/actionlist.py | tema-tut/tema-tg | 9c3f119c8bf5cc565e6a3e8e9e6205037e326d89 | [
"MIT"
] | null | null | null | ModelUtils/actionlist.py | tema-tut/tema-tg | 9c3f119c8bf5cc565e6a3e8e9e6205037e326d89 | [
"MIT"
] | 1 | 2021-03-27T21:27:32.000Z | 2021-03-27T21:27:32.000Z | #!/usr/bin/env python
# Copyright (c) 2006-2010 Tampere University of Technology
#
# 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 rig... | 32.48 | 132 | 0.648399 | 439 | 3,248 | 4.681093 | 0.421412 | 0.056934 | 0.031144 | 0.029197 | 0.112409 | 0.087591 | 0.03309 | 0 | 0 | 0 | 0 | 0.005707 | 0.244766 | 3,248 | 99 | 133 | 32.808081 | 0.832042 | 0.338978 | 0 | 0.15625 | 0 | 0.015625 | 0.160395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015625 | 0.0625 | null | null | 0.140625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdd12eaaf44cf19e4522b6075f633b5fe9660fb7 | 209 | py | Python | archives/vocalSeparation/hyperparams.py | ShichengChen/Audio-Source-Separation | 1693a9736fc08c53935aba7218ad82a271b42525 | [
"MIT"
] | 46 | 2018-09-18T07:08:06.000Z | 2022-03-01T11:10:26.000Z | archives/vocalSeparation/hyperparams.py | ShichengChen/WaveNetSeparateAudio | 1693a9736fc08c53935aba7218ad82a271b42525 | [
"MIT"
] | 1 | 2019-08-15T05:34:11.000Z | 2019-08-16T09:39:55.000Z | archives/vocalSeparation/hyperparams.py | ShichengChen/WaveNetSeparateAudio | 1693a9736fc08c53935aba7218ad82a271b42525 | [
"MIT"
] | 7 | 2018-08-17T18:57:32.000Z | 2021-06-12T22:07:03.000Z | hidden_dim = 128
dilation = [1,2,4,8,16,32,64,128,256,512]
sample_rate = 16000
timestep = 6080
is_training = True
use_mulaw = True
batch_size = 1
num_epochs = 10000
save_dir = './logdir'
test_data = 'test.wav' | 20.9 | 41 | 0.727273 | 38 | 209 | 3.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205556 | 0.138756 | 209 | 10 | 42 | 20.9 | 0.594444 | 0 | 0 | 0 | 0 | 0 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdd87fbf9e843eee7329d6483212cb08aed23f6a | 346 | py | Python | setup.py | akshmi/data-analysis | 2fb41b5cfb38f3e0d30fbb1f218ad5d68fcf9fb7 | [
"BSD-3-Clause"
] | null | null | null | setup.py | akshmi/data-analysis | 2fb41b5cfb38f3e0d30fbb1f218ad5d68fcf9fb7 | [
"BSD-3-Clause"
] | null | null | null | setup.py | akshmi/data-analysis | 2fb41b5cfb38f3e0d30fbb1f218ad5d68fcf9fb7 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find packages
setup(
name='data_analysis',
version='0.0.1',
url='https://github.com/akshmi/data-analysis',
author='Akash'
license='BSD'
packages=find_packages(),
install_requires=['Pyqt5',
'pandas',
'sqlalchemy',
'nltk',
'numpy',
'jupyter',
'python-twitter'],
entry_points={},
extras_requi... | 17.3 | 46 | 0.710983 | 44 | 346 | 5.477273 | 0.840909 | 0.099585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.072254 | 346 | 19 | 47 | 18.210526 | 0.738318 | 0 | 0 | 0 | 0 | 0 | 0.35942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdd8fc16673971e369248d5b5dc8673df880852e | 319 | py | Python | test_org/test_package_b/__init__.py | dotsdl/test_package_b | 8013cb9a875a624834f64e71570cc9fc4256723f | [
"MIT"
] | null | null | null | test_org/test_package_b/__init__.py | dotsdl/test_package_b | 8013cb9a875a624834f64e71570cc9fc4256723f | [
"MIT"
] | null | null | null | test_org/test_package_b/__init__.py | dotsdl/test_package_b | 8013cb9a875a624834f64e71570cc9fc4256723f | [
"MIT"
] | null | null | null | """
test_package_b
The second of two packages to test implicit namespaces.
"""
# Add imports here
from .test_package_b import *
# Handle versioneer
from ._version import get_versions
versions = get_versions()
__version__ = versions['version']
__git_revision__ = versions['full-revisionid']
del get_versions, versions
| 21.266667 | 55 | 0.786834 | 42 | 319 | 5.571429 | 0.619048 | 0.141026 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128527 | 319 | 14 | 56 | 22.785714 | 0.841727 | 0.332288 | 0 | 0 | 0 | 0 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fdde2b896c28aba6b33422446a57ff7b3e219991 | 172 | py | Python | 07_flow_control/02_control.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 07_flow_control/02_control.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 07_flow_control/02_control.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | #! /root/anaconda3/bin/python
score = 88
result = '及格了' if score >= 60 else '没及格了'
print(result)
a = 7
b = 1
print('a > b' if a > b else ('a < b' if a < b else 'a == b'))
| 19.111111 | 61 | 0.563953 | 34 | 172 | 2.852941 | 0.5 | 0.103093 | 0.082474 | 0.103093 | 0.226804 | 0.226804 | 0.226804 | 0.226804 | 0 | 0 | 0 | 0.053435 | 0.238372 | 172 | 8 | 62 | 21.5 | 0.687023 | 0.162791 | 0 | 0 | 0 | 0 | 0.160839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fde4079cb0a35905344ac4262dcf7ff88975b3eb | 2,089 | py | Python | main/blogs/models.py | CodeFanatic23/blogger | 8077e0ddae480d5ca1034e688ee3f52f3151e77b | [
"MIT"
] | null | null | null | main/blogs/models.py | CodeFanatic23/blogger | 8077e0ddae480d5ca1034e688ee3f52f3151e77b | [
"MIT"
] | null | null | null | main/blogs/models.py | CodeFanatic23/blogger | 8077e0ddae480d5ca1034e688ee3f52f3151e77b | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from django.db.models import signals
from ckeditor_uploader.fields import RichTextUploadingField
from django.contrib.sites.models import Site
from datetime import datetime
from django.template.defaultfilters import slugify
# Create your models here.
def up... | 38.685185 | 173 | 0.784586 | 290 | 2,089 | 5.513793 | 0.372414 | 0.030019 | 0.056285 | 0.075047 | 0.072545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.083772 | 2,089 | 54 | 174 | 38.685185 | 0.829154 | 0.011489 | 0 | 0 | 0 | 0 | 0.038275 | 0.010659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.023256 | 0.162791 | 0.046512 | 0.674419 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fdf57d68a9183dc14b32a5c34535110149d77db4 | 594 | py | Python | paper/pypi/get_average_depednency_tree_size.py | mt3443/typosquatting | 7c127bf613cb1f5044c6574bad43563d4000f3b7 | [
"MIT"
] | null | null | null | paper/pypi/get_average_depednency_tree_size.py | mt3443/typosquatting | 7c127bf613cb1f5044c6574bad43563d4000f3b7 | [
"MIT"
] | null | null | null | paper/pypi/get_average_depednency_tree_size.py | mt3443/typosquatting | 7c127bf613cb1f5044c6574bad43563d4000f3b7 | [
"MIT"
] | null | null | null | # Gets transitive dependency statistics for PyPI
from statistics import mean, median, mode
import pickle
dls = pickle.load(open('../pickle/pypi_dl_count_dict.p', 'rb'))
packages = open('../data/pypi_dependencies').read().splitlines()
depednency_tree_sizes = []
for p in packages:
if ',' not in p or ... | 29.7 | 65 | 0.691919 | 78 | 594 | 5.089744 | 0.525641 | 0.176322 | 0.239295 | 0.120907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00998 | 0.156566 | 594 | 20 | 66 | 29.7 | 0.782435 | 0.077441 | 0 | 0 | 0 | 0 | 0.140152 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.230769 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdfafec8c8cbd18a2bc4860a94bd0b93d7da6d67 | 953 | py | Python | src/i2c/airQuality.py | mazsbc03/MA-Z | f91df671f81cdfaf29dfe1df59d731b0c55e859b | [
"Apache-2.0"
] | null | null | null | src/i2c/airQuality.py | mazsbc03/MA-Z | f91df671f81cdfaf29dfe1df59d731b0c55e859b | [
"Apache-2.0"
] | null | null | null | src/i2c/airQuality.py | mazsbc03/MA-Z | f91df671f81cdfaf29dfe1df59d731b0c55e859b | [
"Apache-2.0"
] | 1 | 2020-03-04T08:07:00.000Z | 2020-03-04T08:07:00.000Z | class airQuality:
def __init__(self, bus):
self.iaq = 0
self.bus = bus
self.address = 0x5A
self.datablock = 9
self.data = 0
def read(self):
data = self.bus.read_i2c_block_data(self.address, 0x00, self.datablock)
#WIP
# Convert the data
#if... | 36.653846 | 132 | 0.520462 | 130 | 953 | 3.707692 | 0.515385 | 0.058091 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070661 | 0.316894 | 953 | 25 | 133 | 38.12 | 0.669739 | 0.552991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdfc09ba87c7968f5784d7d4c6b7c2927b1bca3e | 1,548 | py | Python | DESAFIO-063.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | DESAFIO-063.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | DESAFIO-063.py | Lukones/Evolution-Projetos-Python | d979f3702f0e22ab5256b19fd957dba587c44f85 | [
"MIT"
] | null | null | null | from random import choice
from random import randint
cont = 0
x = 0
while x != 'PERDER':
regra = [('I'), ('P')]
regra1 = randint(0, 10)
v = int(input('Digite um valor: '))
j = str(input('Escolha entre Impar ou Par: ')).strip().upper()[0]
comp = choice(regra)
compnum = regra1
l = v + compnum
... | 37.756098 | 135 | 0.499354 | 217 | 1,548 | 3.562212 | 0.285714 | 0.054334 | 0.07762 | 0.139715 | 0.683053 | 0.683053 | 0.683053 | 0.683053 | 0.683053 | 0.644243 | 0 | 0.018072 | 0.356589 | 1,548 | 41 | 136 | 37.756098 | 0.758032 | 0 | 0 | 0.585366 | 0 | 0.073171 | 0.408005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 0.268293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdfc880f6054d5abdc9b36e7ed405600da8c97c6 | 2,727 | py | Python | server/payment/serializers.py | Taycode/jumga | 77b9a8735da11aaf2b21c92ad6750b9e98aae267 | [
"MIT"
] | 5 | 2021-01-20T00:14:54.000Z | 2021-11-16T23:46:40.000Z | server/payment/serializers.py | Taycode/jumga | 77b9a8735da11aaf2b21c92ad6750b9e98aae267 | [
"MIT"
] | null | null | null | server/payment/serializers.py | Taycode/jumga | 77b9a8735da11aaf2b21c92ad6750b9e98aae267 | [
"MIT"
] | 2 | 2021-01-19T23:11:16.000Z | 2021-01-21T10:34:45.000Z | """Payment Serializers"""
import random
import string
from rest_framework import serializers
from .flutterwave import Flutterwave
from .models import Transaction
class ChargeCardSerializer(serializers.Serializer):
"""Serializer for collecting card details"""
card_number = serializers.CharField(write_only=True)
c... | 29.967033 | 72 | 0.746975 | 334 | 2,727 | 5.904192 | 0.248503 | 0.098884 | 0.112069 | 0.111562 | 0.406187 | 0.296146 | 0.227181 | 0.227181 | 0.184584 | 0.133874 | 0 | 0.000837 | 0.123579 | 2,727 | 90 | 73 | 30.3 | 0.824268 | 0.072974 | 0 | 0.3125 | 0 | 0 | 0.084376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0.0625 | 0.078125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8bef0bccdfa6a18af7d8e8533565629887c83c89 | 7,181 | py | Python | repo/migrations/0001_initial.py | giantas/elibrary | b1abe74dcae036051764d5ad8bdf74673c8a2861 | [
"MIT"
] | null | null | null | repo/migrations/0001_initial.py | giantas/elibrary | b1abe74dcae036051764d5ad8bdf74673c8a2861 | [
"MIT"
] | null | null | null | repo/migrations/0001_initial.py | giantas/elibrary | b1abe74dcae036051764d5ad8bdf74673c8a2861 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-08-06 17:25
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | 49.524138 | 178 | 0.583345 | 710 | 7,181 | 5.726761 | 0.209859 | 0.095917 | 0.075258 | 0.100344 | 0.593212 | 0.510084 | 0.460895 | 0.460895 | 0.441712 | 0.441712 | 0 | 0.015008 | 0.266954 | 7,181 | 144 | 179 | 49.868056 | 0.757409 | 0.00933 | 0 | 0.492647 | 1 | 0 | 0.135846 | 0.002953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007353 | 0.029412 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bf039e55532122689a687064c75c78a7ef098f5 | 2,180 | py | Python | detection_spam_project/clustering/form.py | Altraya/detection_spam | 92404ab9fad5398ac17df885d559a6d96630db1d | [
"MIT"
] | null | null | null | detection_spam_project/clustering/form.py | Altraya/detection_spam | 92404ab9fad5398ac17df885d559a6d96630db1d | [
"MIT"
] | null | null | null | detection_spam_project/clustering/form.py | Altraya/detection_spam | 92404ab9fad5398ac17df885d559a6d96630db1d | [
"MIT"
] | null | null | null | from django import forms
class ScreenOneForm(forms.Form):
fichierData = forms.FileField(required=True)
n = forms.CharField(label="Choose n observations",
required = True,
widget=forms.TextInput(attrs={'class': 'input-control text', 'placeholder': 'Choose n observations'}))
k = forms.CharField(label="Choose k... | 30.277778 | 183 | 0.660092 | 300 | 2,180 | 4.406667 | 0.5 | 0.290469 | 0.034039 | 0.049924 | 0.104387 | 0.104387 | 0.104387 | 0.104387 | 0.104387 | 0.104387 | 0 | 0.067553 | 0.137615 | 2,180 | 72 | 183 | 30.277778 | 0.635638 | 0 | 0 | 0 | 0 | 0 | 0.481889 | 0.034846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.104478 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bf8b222c27b3dbd1b02cb93d3bd47f962eb1f11 | 3,324 | py | Python | huffman-python/huffman_main.py | johnymachine/kas | 4f22b0c85c762c5d56101fd94b900c08e91e4366 | [
"MIT"
] | null | null | null | huffman-python/huffman_main.py | johnymachine/kas | 4f22b0c85c762c5d56101fd94b900c08e91e4366 | [
"MIT"
] | null | null | null | huffman-python/huffman_main.py | johnymachine/kas | 4f22b0c85c762c5d56101fd94b900c08e91e4366 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module for personal huffman coder."""
import argparse
import time
import os
import huffcoder
import binpacker
def setup_parser():
'''
Basic parser setup for simple huffman command line input.
'''
parser = argparse.ArgumentParser(description='Command line huffman coder')
... | 36.527473 | 79 | 0.570096 | 349 | 3,324 | 5.34957 | 0.352436 | 0.03428 | 0.02571 | 0.023567 | 0.450991 | 0.427424 | 0.367434 | 0.367434 | 0.367434 | 0.317086 | 0 | 0.014118 | 0.232852 | 3,324 | 91 | 80 | 36.527473 | 0.718039 | 0.027978 | 0 | 0.352113 | 0 | 0 | 0.278752 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070423 | null | null | 0.211268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bfe24ae7dce5ac6efb7d4ed7c5ab4208e122c83 | 1,625 | py | Python | app/master/build_store.py | rsennewald/ClusterRunner | 6cb351982462798d4e11ac1a80f8fef048503758 | [
"Apache-2.0"
] | 164 | 2015-01-06T05:54:46.000Z | 2021-11-13T12:28:28.000Z | app/master/build_store.py | rsennewald/ClusterRunner | 6cb351982462798d4e11ac1a80f8fef048503758 | [
"Apache-2.0"
] | 393 | 2015-01-05T17:26:07.000Z | 2022-03-21T10:42:06.000Z | app/master/build_store.py | rsennewald/ClusterRunner | 6cb351982462798d4e11ac1a80f8fef048503758 | [
"Apache-2.0"
] | 44 | 2015-01-23T22:06:03.000Z | 2022-03-01T09:33:36.000Z | from collections import OrderedDict
from itertools import islice
from typing import List
from app.master.build import Build
from app.util.exceptions import ItemNotFoundError
class BuildStore:
"""
Build storage service that stores and handles all builds.
"""
_all_builds_by_id = OrderedDict()
@cla... | 31.25 | 114 | 0.64 | 220 | 1,625 | 4.581818 | 0.368182 | 0.071429 | 0.065476 | 0.077381 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00086 | 0.284308 | 1,625 | 51 | 115 | 31.862745 | 0.865864 | 0.340308 | 0 | 0.173913 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.