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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4cce4bafae12df2f9cd0de33c4400a34df1c45ca | 1,858 | py | Python | conftest.py | ultrafive/riscv-pvp | 843e38422c3d545352b955764927d5e7847e5453 | [
"Unlicense"
] | 5 | 2021-05-10T09:57:00.000Z | 2021-10-05T14:39:20.000Z | conftest.py | ultrafive/riscv-pvp | 843e38422c3d545352b955764927d5e7847e5453 | [
"Unlicense"
] | null | null | null | conftest.py | ultrafive/riscv-pvp | 843e38422c3d545352b955764927d5e7847e5453 | [
"Unlicense"
] | 1 | 2021-05-14T20:24:11.000Z | 2021-05-14T20:24:11.000Z | option = None
def pytest_addoption(parser):
parser.addoption('--nproc', help='run tests on n processes', type=int, default=1)
parser.addoption('--lsf', help='run tests on with lsf clusters', action="store_true")
parser.addoption('--specs', help='test specs')
parser.addoption('--cases', help='test case ... | 71.461538 | 127 | 0.703983 | 254 | 1,858 | 5.125984 | 0.354331 | 0.218894 | 0.059908 | 0.101382 | 0.348694 | 0.179724 | 0.179724 | 0.179724 | 0.179724 | 0.082949 | 0 | 0.039531 | 0.128633 | 1,858 | 25 | 128 | 74.32 | 0.76467 | 0 | 0 | 0 | 0 | 0 | 0.411733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.047619 | 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 |
4cd187d930ba31304eeb01003f731ae546691487 | 1,312 | py | Python | preprocess.py | sarathp20/easy-vqa-revolvers | 71bff70441d20f75114e3d9356457d5edab330a8 | [
"MIT"
] | null | null | null | preprocess.py | sarathp20/easy-vqa-revolvers | 71bff70441d20f75114e3d9356457d5edab330a8 | [
"MIT"
] | null | null | null | preprocess.py | sarathp20/easy-vqa-revolvers | 71bff70441d20f75114e3d9356457d5edab330a8 | [
"MIT"
] | null | null | null | import json
import argparse
from prepare_data import setup
# Support command-line options
parser = argparse.ArgumentParser()
parser.add_argument('--big-model', action='store_true', help='Use the bigger model with more conv layers')
parser.add_argument('--use-data-dir', action='store_true', help='Use custom data direct... | 33.641026 | 238 | 0.741616 | 227 | 1,312 | 3.933921 | 0.303965 | 0.067189 | 0.050392 | 0.06271 | 0.282195 | 0.219485 | 0.117581 | 0 | 0 | 0 | 0 | 0 | 0.127287 | 1,312 | 38 | 239 | 34.526316 | 0.779913 | 0.330793 | 0 | 0 | 0 | 0 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4cd86a823d387c58cf1d78bd8cb2eca736e3b454 | 6,629 | py | Python | test/test_service.py | truemped/supercell | bf4bb042a8a66884f5757767f7725c5edce13684 | [
"Apache-2.0"
] | 6 | 2015-05-04T13:01:20.000Z | 2017-04-11T15:21:43.000Z | test/test_service.py | truemped/supercell | bf4bb042a8a66884f5757767f7725c5edce13684 | [
"Apache-2.0"
] | 4 | 2015-08-24T09:17:21.000Z | 2017-06-26T13:07:10.000Z | test/test_service.py | truemped/supercell | bf4bb042a8a66884f5757767f7725c5edce13684 | [
"Apache-2.0"
] | 5 | 2015-05-04T13:01:29.000Z | 2018-08-14T12:14:54.000Z | # vim: set fileencoding=utf-8 :
#
# Copyright (c) 2013 Daniel Truemper <truemped at googlemail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 33.649746 | 79 | 0.628903 | 738 | 6,629 | 5.50813 | 0.291328 | 0.055105 | 0.046002 | 0.043296 | 0.453383 | 0.386224 | 0.376138 | 0.34957 | 0.299385 | 0.299385 | 0 | 0.006513 | 0.258863 | 6,629 | 196 | 80 | 33.821429 | 0.820883 | 0.092472 | 0 | 0.424242 | 0 | 0 | 0.057519 | 0.020007 | 0 | 0 | 0 | 0 | 0.106061 | 0 | null | null | 0 | 0.106061 | null | null | 0.007576 | 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 |
4cdacf560dedcfb1369cb043e649a5a60e2d4000 | 4,010 | py | Python | feed.py | olanderofc/tinyIDS | fbcfc2e33b95f1688f478e37f560cf5dc1db58e5 | [
"MIT"
] | null | null | null | feed.py | olanderofc/tinyIDS | fbcfc2e33b95f1688f478e37f560cf5dc1db58e5 | [
"MIT"
] | null | null | null | feed.py | olanderofc/tinyIDS | fbcfc2e33b95f1688f478e37f560cf5dc1db58e5 | [
"MIT"
] | null | null | null | from IPy import IP
from config import config
import glob
import logging
import urllib2
import re
import traceback
class feed:
def __init__(self, thedir):
self.feeddir = thedir
self.iplist = []
self.known = []
self.lists = []
self.initfeedupdates()
self.iplistcache = ... | 30.150376 | 118 | 0.509975 | 440 | 4,010 | 4.625 | 0.329545 | 0.054054 | 0.029484 | 0.029484 | 0.13317 | 0.086486 | 0.04914 | 0.022604 | 0.005897 | 0 | 0 | 0.008896 | 0.383292 | 4,010 | 132 | 119 | 30.378788 | 0.813991 | 0.01596 | 0 | 0.216981 | 0 | 0.009434 | 0.182095 | 0.009637 | 0 | 0 | 0 | 0.007576 | 0 | 0 | null | null | 0.018868 | 0.066038 | null | null | 0.113208 | 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 |
4cdb6c9f10637eb4d74b19a309fa71e8626273ee | 440 | py | Python | pythonProject1/chap2/demo7.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | pythonProject1/chap2/demo7.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | pythonProject1/chap2/demo7.py | zhudi7/pythonAK | d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c | [
"Apache-2.0"
] | null | null | null | # 公众号:MarkerJava
# 开发时间:2020/10/5 17:25
# scores = {'kobe': 100, 'lebron': 99, 'AD': 88}
# 第一种方式使用[]
# print(scores['kobe'])
# 第二种方式使用get()方法
# print(scores.get('lebron'))
# print(scores.get('ab'))
scores1 = {'kobe': 100, 'lebron': 99, 'AD': 88}
print('kobe' in scores1)
print('kobe' not in scores1)
# 删除指定的key-value... | 16.296296 | 48 | 0.638636 | 64 | 440 | 4.390625 | 0.5 | 0.117438 | 0.092527 | 0.106762 | 0.135231 | 0.135231 | 0 | 0 | 0 | 0 | 0 | 0.100529 | 0.140909 | 440 | 26 | 49 | 16.923077 | 0.642857 | 0.468182 | 0 | 0.333333 | 0 | 0 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 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 |
4cdd62ed9ca0f6d5cfc03b39b4f498f0c13dba5a | 10,485 | py | Python | models/evaluate_gaze.py | yj-yu/Recurrent_Gaze_Prediction | cf366095f19cd8c9ce271930d194db12a7d45018 | [
"MIT"
] | 9 | 2019-06-06T14:55:56.000Z | 2022-01-27T09:35:17.000Z | models/evaluate_gaze.py | yj-yu/Recurrent_Gaze_Prediction | cf366095f19cd8c9ce271930d194db12a7d45018 | [
"MIT"
] | 1 | 2021-06-01T22:34:37.000Z | 2021-06-01T22:34:37.000Z | models/evaluate_gaze.py | yj-yu/Recurrent_Gaze_Prediction | cf366095f19cd8c9ce271930d194db12a7d45018 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import os
import sys
import time
from PIL import Image
import scipy.misc
import tensorflow as tf
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import random
from collections import OrderedDict
from collections import defaultdict
import cPickle... | 34.264706 | 93 | 0.648259 | 1,360 | 10,485 | 4.792647 | 0.250735 | 0.019331 | 0.021479 | 0.015342 | 0.220773 | 0.154495 | 0.100951 | 0.065357 | 0.044492 | 0.027002 | 0 | 0.009091 | 0.244635 | 10,485 | 305 | 94 | 34.377049 | 0.813889 | 0.078684 | 0 | 0.063927 | 0 | 0 | 0.089927 | 0.004777 | 0 | 0 | 0 | 0 | 0.013699 | 0 | null | null | 0.004566 | 0.173516 | null | null | 0.013699 | 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 |
4cdeab0a6efdb2afb8a4675e791dd4d7ee772a73 | 1,467 | py | Python | bin/gftools-ots.py | nyshadhr9/gftools | fe399074994a3d9cada25c37196d13707cdb53e0 | [
"Apache-2.0"
] | null | null | null | bin/gftools-ots.py | nyshadhr9/gftools | fe399074994a3d9cada25c37196d13707cdb53e0 | [
"Apache-2.0"
] | null | null | null | bin/gftools-ots.py | nyshadhr9/gftools | fe399074994a3d9cada25c37196d13707cdb53e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# coding: utf-8
# Copyright 2017 The Font Bakery Authors.
# Copyright 2017 The Google Font Tools Authors
#
# 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://... | 32.6 | 89 | 0.625085 | 209 | 1,467 | 4.325359 | 0.564593 | 0.066372 | 0.009956 | 0.013274 | 0.022124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014829 | 0.264485 | 1,467 | 44 | 90 | 33.340909 | 0.822984 | 0.437628 | 0 | 0 | 0 | 0 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.130435 | 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 |
4ce27760dc4133b3800d1880c950d1acb04dc609 | 1,191 | py | Python | src/scilab_commsmod/comms_ifTTT.py | mlanser/sciLab-commsMod | 1c97ffa5e28d1e900764f3d93c6dc327fadf614c | [
"MIT"
] | null | null | null | src/scilab_commsmod/comms_ifTTT.py | mlanser/sciLab-commsMod | 1c97ffa5e28d1e900764f3d93c6dc327fadf614c | [
"MIT"
] | null | null | null | src/scilab_commsmod/comms_ifTTT.py | mlanser/sciLab-commsMod | 1c97ffa5e28d1e900764f3d93c6dc327fadf614c | [
"MIT"
] | null | null | null | """ifTTT class for sciLab Communications Module"""
from typing import Any
import requests
from .comms_base import _Base
# =========================================================
# G L O B A L S
# =========================================================
# Misc. defaults
_DEFAULT_HOLD_TIME_: int... | 32.189189 | 121 | 0.517212 | 125 | 1,191 | 4.664 | 0.648 | 0.082333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008593 | 0.218304 | 1,191 | 37 | 122 | 32.189189 | 0.617615 | 0.376154 | 0 | 0 | 0 | 0 | 0.171703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4ce2d6e9c972424c472fe6b41572d8ee58453f46 | 551 | py | Python | trychapter/books/migrations/0002_book_category.py | szymanskirafal/trychapter | 092c2d88533fc3305dd769a972dc94c7fa290d2a | [
"MIT"
] | null | null | null | trychapter/books/migrations/0002_book_category.py | szymanskirafal/trychapter | 092c2d88533fc3305dd769a972dc94c7fa290d2a | [
"MIT"
] | null | null | null | trychapter/books/migrations/0002_book_category.py | szymanskirafal/trychapter | 092c2d88533fc3305dd769a972dc94c7fa290d2a | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-21 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='book',
name='category',
field... | 29 | 230 | 0.558984 | 59 | 551 | 5.169492 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047281 | 0.232305 | 551 | 18 | 231 | 30.611111 | 0.673759 | 0.08167 | 0 | 0 | 1 | 0 | 0.214286 | 0 | 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 |
4ce32d3ecae72c54629b8bae8075330c010aaec6 | 2,875 | py | Python | qs_backend/qs_backend/decorators/stock_publish_payload_to_dict.py | Praneesh/quickstocks | 2ad4f985b7cc11721209cc81c36937e9cf25fb60 | [
"MIT"
] | 2 | 2016-12-28T18:08:23.000Z | 2017-04-01T18:09:55.000Z | qs_backend/qs_backend/decorators/stock_publish_payload_to_dict.py | Praneesh/quickstocks | 2ad4f985b7cc11721209cc81c36937e9cf25fb60 | [
"MIT"
] | null | null | null | qs_backend/qs_backend/decorators/stock_publish_payload_to_dict.py | Praneesh/quickstocks | 2ad4f985b7cc11721209cc81c36937e9cf25fb60 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# __author__ = "Praneesh Kataru"
# __credits__ = []
# __version__ = "0.1.1"
# __maintainer__ = "Praneesh Kataru"
# __email__ = "pranuvitmsse05@gmail.com"
# __status__ = "Prototype"
from qs_backend.models.stock_model import StockModel
from qs_backend.dal.user_stock_pref_dal i... | 49.568966 | 120 | 0.703304 | 366 | 2,875 | 4.989071 | 0.29235 | 0.093647 | 0.128149 | 0.147864 | 0.240416 | 0.069003 | 0.033954 | 0 | 0 | 0 | 0 | 0.006361 | 0.234435 | 2,875 | 57 | 121 | 50.438596 | 0.823262 | 0.150609 | 0 | 0.054054 | 0 | 0 | 0.078157 | 0.0181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.054054 | 0.081081 | 0 | 0.243243 | 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 |
4cea6d5bce857dde1c29db9821176f6c3dbc1555 | 1,942 | py | Python | server/packet.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | 1 | 2020-09-24T02:41:23.000Z | 2020-09-24T02:41:23.000Z | server/packet.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | null | null | null | server/packet.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#redis protocols parser using python
#author: BohuTANG
class cmd:
UNKNOW = 0
SET = 1
GET = 2
INFO = 3
PING = 4
MSET = 5
MGET = 6
EXISTS = 7
SHUTDOWN = 8
DEL = 9
class packet:
def __init__(self):
self.cmd = cmd.UNKNOW
self.cmds = {'SET':cmd.... | 24.897436 | 72 | 0.452111 | 255 | 1,942 | 3.411765 | 0.329412 | 0.018391 | 0.031034 | 0.041379 | 0.126437 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0.036973 | 0.401133 | 1,942 | 77 | 73 | 25.220779 | 0.711092 | 0.034501 | 0 | 0.096774 | 0 | 0 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.048387 | 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 |
4cef66729647a6de3b30fee1d1175bf97c8c2ec6 | 871 | py | Python | models.py | shoytov/django-dblog | 0fdc1a695605ed2fccea3f19b6293c1dfb37ca14 | [
"MIT"
] | 2 | 2020-07-07T10:03:07.000Z | 2020-09-04T21:32:26.000Z | models.py | shoytov/django-dblog | 0fdc1a695605ed2fccea3f19b6293c1dfb37ca14 | [
"MIT"
] | null | null | null | models.py | shoytov/django-dblog | 0fdc1a695605ed2fccea3f19b6293c1dfb37ca14 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.timezone import now
# Create your models here.
class ErrorLog(models.Model):
""" возникшие ошибки с полным описанием """
url = models.CharField(max_length=250, verbose_name='Url, где произошла ошибка')
exception_name = models.CharField(max_length=250, verbose... | 41.47619 | 93 | 0.717566 | 110 | 871 | 5.5 | 0.490909 | 0.145455 | 0.089256 | 0.119008 | 0.18843 | 0.18843 | 0.18843 | 0 | 0 | 0 | 0 | 0.012397 | 0.166475 | 871 | 20 | 94 | 43.55 | 0.820937 | 0.071183 | 0 | 0 | 0 | 0 | 0.150873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 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 |
4cf3331aa6364009cbbc3929f4ca3843e207a5f7 | 977 | py | Python | Code/Label_Data/python_code/test_cluster.py | volmen3/Bachelors_Thesis | 4b5e7f1d79a3533e4b6e9efb27f931e2f541992f | [
"MIT"
] | null | null | null | Code/Label_Data/python_code/test_cluster.py | volmen3/Bachelors_Thesis | 4b5e7f1d79a3533e4b6e9efb27f931e2f541992f | [
"MIT"
] | null | null | null | Code/Label_Data/python_code/test_cluster.py | volmen3/Bachelors_Thesis | 4b5e7f1d79a3533e4b6e9efb27f931e2f541992f | [
"MIT"
] | null | null | null | """
Last change: 16.05.2018
"""
import numpy as np
# Import input_data in a shape of csv file where each column represents a vector
input_data_matrix = np.loadtxt(open("input_data.csv", "rb"), delimiter=",")
# Transpose input_data_matrix to get a matrix where each row represents a vector
input_data_matrix ... | 34.892857 | 81 | 0.683726 | 149 | 977 | 4.221477 | 0.375839 | 0.157393 | 0.214626 | 0.076312 | 0.241653 | 0.18124 | 0 | 0 | 0 | 0 | 0 | 0.018158 | 0.21085 | 977 | 27 | 82 | 36.185185 | 0.797665 | 0.311157 | 0 | 0 | 0 | 0 | 0.126382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.285714 | 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 |
4cf3a6fbe2fbe9c4f64babcfa753407c4bf62432 | 1,634 | py | Python | test/pythonml/test_regression_flavors.py | Exabyte-io/exabyte-application-flavors | cf52bb426d022d269daf81e0c6399b6c5faaddbe | [
"Apache-2.0"
] | null | null | null | test/pythonml/test_regression_flavors.py | Exabyte-io/exabyte-application-flavors | cf52bb426d022d269daf81e0c6399b6c5faaddbe | [
"Apache-2.0"
] | 9 | 2021-04-07T01:11:12.000Z | 2022-02-17T18:43:52.000Z | test/pythonml/test_regression_flavors.py | Exabyte-io/exabyte-application-flavors | cf52bb426d022d269daf81e0c6399b6c5faaddbe | [
"Apache-2.0"
] | 2 | 2021-05-20T01:00:05.000Z | 2021-06-04T12:30:33.000Z | #!/usr/bin/env python
from parameterized import parameterized
from flavor import BaseFlavorTest
class TestRegressionFlavors(BaseFlavorTest):
category = "regression"
plot_unit = "POS_plotParity"
plot_name = "my_parity_plot.png"
@parameterized.expand(
BaseFlavorTest.get_workflow_flavors(catego... | 38 | 94 | 0.697674 | 183 | 1,634 | 5.95082 | 0.344262 | 0.089991 | 0.15427 | 0.157025 | 0.560147 | 0.359963 | 0.235078 | 0.152433 | 0.078972 | 0 | 0 | 0 | 0.170135 | 1,634 | 42 | 95 | 38.904762 | 0.803097 | 0.01224 | 0 | 0.114286 | 0 | 0 | 0.480471 | 0.440794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.257143 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cf75c11827e0a4a7e1d9cefd1f56714b1c95175 | 2,608 | py | Python | Frequency_framework.py | Muir-UCSB/AE_ML_Benchmarking | 9b2b7ee6f5ca23a7988adeef01f0734a48a4e20a | [
"MIT"
] | null | null | null | Frequency_framework.py | Muir-UCSB/AE_ML_Benchmarking | 9b2b7ee6f5ca23a7988adeef01f0734a48a4e20a | [
"MIT"
] | null | null | null | Frequency_framework.py | Muir-UCSB/AE_ML_Benchmarking | 9b2b7ee6f5ca23a7988adeef01f0734a48a4e20a | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib
import pylab as pl
import pandas
from ae_measure2 import *
from feature_extraction import *
import glob
import os
import pandas as pd
from sklearn.decomposition import PCA
from sklearn.cluster import KMeans
from sklearn.metrics import davies_bouldin_score
from sklearn.pr... | 25.320388 | 107 | 0.656058 | 333 | 2,608 | 4.918919 | 0.399399 | 0.040293 | 0.051282 | 0.042125 | 0.165446 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0.01007 | 0.238497 | 2,608 | 102 | 108 | 25.568627 | 0.814703 | 0.167945 | 0 | 0 | 0 | 0 | 0.064225 | 0.029859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.044444 | 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 |
98066eda04daf1008356b61b1543be73d5613d9d | 4,248 | py | Python | OSMTagFinder/taginfo/taginfostats.py | geometalab/OSMTagFinder | 9ffe854a2bebbd7f96facd7e236434e761fee884 | [
"MIT"
] | 20 | 2015-01-18T19:57:40.000Z | 2020-06-15T22:06:42.000Z | OSMTagFinder/taginfo/taginfostats.py | geometalab/OSMTagFinder | 9ffe854a2bebbd7f96facd7e236434e761fee884 | [
"MIT"
] | 4 | 2015-01-18T22:16:15.000Z | 2021-03-31T18:32:22.000Z | OSMTagFinder/taginfo/taginfostats.py | geometalab/OSMTagFinder | 9ffe854a2bebbd7f96facd7e236434e761fee884 | [
"MIT"
] | 2 | 2019-01-16T15:43:41.000Z | 2020-06-15T22:03:31.000Z | # -*- coding: utf-8 -*-
'''
Created on 30.10.2014
@author: Simon Gwerder
'''
class TagInfoStats:
tagInfo = None
statsData = []
wikiPageJson = []
def __init__(self, tagInfo, key, value=None, wikiPageJson=None):
if tagInfo is None or key is None: return
self.tagInfo = tagInfo
... | 32.930233 | 89 | 0.595339 | 471 | 4,248 | 5.329087 | 0.203822 | 0.048207 | 0.031873 | 0.038247 | 0.507968 | 0.507968 | 0.444223 | 0.40996 | 0.40996 | 0.395618 | 0 | 0.004355 | 0.297316 | 4,248 | 128 | 90 | 33.1875 | 0.836516 | 0.004944 | 0 | 0.420455 | 0 | 0 | 0.063848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011364 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98069138449bcb981ae0e71c8fdcdae436ed2fec | 2,322 | py | Python | agent/utils.py | MFALHI/cargo | 9215b513c795e31a92b3e542293e3c92e9e3cc7c | [
"Apache-2.0"
] | 41 | 2015-12-16T08:58:53.000Z | 2022-01-18T06:05:05.000Z | agent/utils.py | MFALHI/cargo | 9215b513c795e31a92b3e542293e3c92e9e3cc7c | [
"Apache-2.0"
] | 4 | 2016-04-20T05:30:15.000Z | 2019-03-07T03:36:33.000Z | agent/utils.py | nadgowdas/cargo | 9215b513c795e31a92b3e542293e3c92e9e3cc7c | [
"Apache-2.0"
] | 12 | 2015-12-18T15:21:40.000Z | 2022-03-21T06:47:35.000Z | #
#Copyright IBM Corporation 2015.
#LICENSE: Apache License 2.0 http://opensource.org/licenses/Apache-2.0
import os
import fileinput
import shutil
import commands
import sys
CONFIG_DIR = "/var/lib/cargo"
SVC_TEMPLATE = "replicator_svc.conf"
ETC_INIT_DIR = "/etc/init/"
def getDir(service, container, volcnt):
fm... | 31.378378 | 119 | 0.708441 | 283 | 2,322 | 5.720848 | 0.335689 | 0.083385 | 0.03706 | 0.051884 | 0.175417 | 0.140828 | 0.140828 | 0.114886 | 0.114886 | 0.114886 | 0 | 0.005708 | 0.170112 | 2,322 | 73 | 120 | 31.808219 | 0.834458 | 0.043066 | 0 | 0.074074 | 0 | 0 | 0.119874 | 0.077062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.092593 | 0.074074 | 0.481481 | 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 |
980df3332caaecf097d0e1bbb96ed2b90f2fd8f5 | 886 | py | Python | leetcode-pay/0009/answer2.py | weihuchao/algorithm | 5a44eff323e09fd57d3f2f2f38b4762de0dc8dda | [
"MIT"
] | null | null | null | leetcode-pay/0009/answer2.py | weihuchao/algorithm | 5a44eff323e09fd57d3f2f2f38b4762de0dc8dda | [
"MIT"
] | null | null | null | leetcode-pay/0009/answer2.py | weihuchao/algorithm | 5a44eff323e09fd57d3f2f2f38b4762de0dc8dda | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/12/6 12:17
# @Author : weihuchao
import collections
class CQueue(object):
def __init__(self):
self.left = collections.deque()
self.right = collections.deque()
def appendTail(self, value):
"""
:type value: int
... | 20.604651 | 53 | 0.558691 | 105 | 886 | 4.6 | 0.428571 | 0.130435 | 0.165631 | 0.130435 | 0.165631 | 0.165631 | 0 | 0 | 0 | 0 | 0 | 0.025765 | 0.299097 | 886 | 42 | 54 | 21.095238 | 0.752013 | 0.10158 | 0 | 0.217391 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.217391 | 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 |
98117b4800dd8864dae31d63e58473016412370d | 926 | py | Python | bauh/gems/arch/__init__.py | Brorean/bauh | 365b5ad41e62c7c632d2a06fe3eb2459af5ccfeb | [
"Zlib"
] | null | null | null | bauh/gems/arch/__init__.py | Brorean/bauh | 365b5ad41e62c7c632d2a06fe3eb2459af5ccfeb | [
"Zlib"
] | null | null | null | bauh/gems/arch/__init__.py | Brorean/bauh | 365b5ad41e62c7c632d2a06fe3eb2459af5ccfeb | [
"Zlib"
] | null | null | null | import os
from pathlib import Path
from bauh.api.constants import CACHE_PATH, CONFIG_PATH, TEMP_DIR
from bauh.commons import resource
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_DIR = '{}/arch'.format(TEMP_DIR)
ARCH_CACHE_PATH = CACHE_PATH + '/arch'
CATEGORIES_FILE_PATH = ARCH_CACHE_PATH + '/categorie... | 37.04 | 106 | 0.769978 | 139 | 926 | 4.848921 | 0.33813 | 0.053412 | 0.038576 | 0.086053 | 0.278932 | 0.278932 | 0.278932 | 0.278932 | 0.175074 | 0.175074 | 0 | 0 | 0.084233 | 926 | 24 | 107 | 38.583333 | 0.794811 | 0 | 0 | 0 | 0 | 0.111111 | 0.294816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
e219ca8928cf9d228062715777257e1b1692a110 | 1,067 | py | Python | app.py | joshuagato/arithmetic-app-flask-api | 7db18ce6bd3e246d4ba06e73cfb87bdbcd66e27b | [
"MIT"
] | null | null | null | app.py | joshuagato/arithmetic-app-flask-api | 7db18ce6bd3e246d4ba06e73cfb87bdbcd66e27b | [
"MIT"
] | null | null | null | app.py | joshuagato/arithmetic-app-flask-api | 7db18ce6bd3e246d4ba06e73cfb87bdbcd66e27b | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
def checkPostedData(postedData, functionName):
if ("x" not in postedData or "y" not in postedData):
return 301
else:
return 200
class Add(Resource):
def post(self):
postedData = r... | 18.084746 | 79 | 0.635426 | 142 | 1,067 | 4.647887 | 0.485915 | 0.075758 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024752 | 0.242737 | 1,067 | 58 | 80 | 18.396552 | 0.792079 | 0.143393 | 0 | 0.081081 | 0 | 0 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.081081 | 0.054054 | 0 | 0.297297 | 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 |
e21e641cc21fe0a0735308f92ba1833d1ca575f0 | 766 | py | Python | courses/views.py | matthewgan/xsteam | 64bc33a15902d15df910c42d82e708b75787c4f0 | [
"MIT"
] | null | null | null | courses/views.py | matthewgan/xsteam | 64bc33a15902d15df910c42d82e708b75787c4f0 | [
"MIT"
] | null | null | null | courses/views.py | matthewgan/xsteam | 64bc33a15902d15df910c42d82e708b75787c4f0 | [
"MIT"
] | null | null | null | from rest_framework import generics
from .serializers import CourseSerializer, CourseDetailShowSerializer
from rest_framework.views import APIView
from .models import Course
from rest_framework.response import Response
from rest_framework import status
class CourseListView(generics.ListAPIView):
queryset = Cours... | 29.461538 | 69 | 0.792428 | 80 | 766 | 7.4875 | 0.4375 | 0.053422 | 0.113523 | 0.076795 | 0.200334 | 0.200334 | 0.200334 | 0.200334 | 0 | 0 | 0 | 0.004552 | 0.139687 | 766 | 25 | 70 | 30.64 | 0.904401 | 0 | 0 | 0.235294 | 0 | 0 | 0.005222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.882353 | 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 |
e22106f63a8246cc49507e44d92ed4208a714152 | 3,475 | py | Python | port/boards/labplus_1956/modules/k210/kpu.py | diskman88/labplus-robot | 07557e1d708449a86f3e3844bb1855e5930d5ae7 | [
"MIT"
] | 53 | 2018-10-15T12:01:24.000Z | 2019-11-22T09:31:02.000Z | port/boards/labplus_1956/modules/k210/kpu.py | diskman88/labplus-robot | 07557e1d708449a86f3e3844bb1855e5930d5ae7 | [
"MIT"
] | 10 | 2018-10-17T13:42:19.000Z | 2019-11-25T06:42:40.000Z | port/boards/labplus_1956/modules/k210/kpu.py | diskman88/labplus-robot | 07557e1d708449a86f3e3844bb1855e5930d5ae7 | [
"MIT"
] | 26 | 2018-12-04T03:53:39.000Z | 2019-11-22T03:40:05.000Z |
from k210.image import Image
class KPU_net:
""" kpu_net 类"""
def __init__(self, repl, ref=None):
self.repl = repl
if ref is None:
self.name = 'kpu_net_{}'.format(hex(id(self)))
else:
self.name = ref
def __del__(self):
"""销毁kpu_net对象"""
sel... | 30.482456 | 120 | 0.549928 | 459 | 3,475 | 3.958606 | 0.169935 | 0.079252 | 0.04623 | 0.033021 | 0.467254 | 0.408365 | 0.373143 | 0.325261 | 0.290039 | 0.257017 | 0 | 0.013333 | 0.28777 | 3,475 | 113 | 121 | 30.752212 | 0.720808 | 0.01554 | 0 | 0.277108 | 0 | 0 | 0.145643 | 0.025406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216867 | false | 0 | 0.012048 | 0.084337 | 0.445783 | 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 |
e22672645fb15cda7a1bd26e8f4bc3e4c504757e | 635 | py | Python | _25_EXERCISE_DICTIONARIES/_7_Student_Academy.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | _25_EXERCISE_DICTIONARIES/_7_Student_Academy.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | _25_EXERCISE_DICTIONARIES/_7_Student_Academy.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | students = int(input())
students_dict = {}
top_students = {}
for _ in range(students):
name = input()
grade = float(input())
if name in students_dict:
students_dict[name].append(grade)
else:
students_dict[name] = [grade]
# for key, item in students_dict.items():
# if sum(item) / le... | 30.238095 | 96 | 0.625197 | 97 | 635 | 3.958763 | 0.309278 | 0.21875 | 0.109375 | 0.098958 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.015717 | 0.198425 | 635 | 20 | 97 | 31.75 | 0.738703 | 0.2 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 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 |
e22c3afb74537d6c76d212ce5c7c6036d1dd01f2 | 13,299 | py | Python | osm_pla/placement/mznplacement.py | mbj417/PLA | 717e0a568c95e31d29c546d4441b308000369e21 | [
"Apache-2.0"
] | null | null | null | osm_pla/placement/mznplacement.py | mbj417/PLA | 717e0a568c95e31d29c546d4441b308000369e21 | [
"Apache-2.0"
] | null | null | null | osm_pla/placement/mznplacement.py | mbj417/PLA | 717e0a568c95e31d29c546d4441b308000369e21 | [
"Apache-2.0"
] | null | null | null | '''
Created on 30 aug. 2019
@author: LG
'''
from jinja2 import Environment
from jinja2.loaders import FileSystemLoader
import yaml
from pathlib import Path
import pymzn
import re
import platform
from _collections import OrderedDict
import pkg_resources
import os
import json
dummy_model = '''
... | 39.346154 | 150 | 0.587037 | 1,596 | 13,299 | 4.577068 | 0.204261 | 0.035044 | 0.04271 | 0.045996 | 0.261191 | 0.199452 | 0.157563 | 0.077481 | 0.064339 | 0.031075 | 0 | 0.009513 | 0.32025 | 13,299 | 337 | 151 | 39.462908 | 0.798562 | 0.185803 | 0 | 0.067308 | 0 | 0 | 0.102615 | 0.015392 | 0 | 0 | 0 | 0.017804 | 0 | 1 | 0.110577 | false | 0 | 0.052885 | 0 | 0.254808 | 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 |
e232994d76491ca60ddbbe56280854150c12caa9 | 740 | py | Python | evernode/classes/middleware.py | AtomHash/evernode | f70d82e78cf9f6d58208438e26485e9565abd875 | [
"MIT"
] | 1 | 2017-09-23T16:44:10.000Z | 2017-09-23T16:44:10.000Z | evernode/classes/middleware.py | AtomHash/evernode | f70d82e78cf9f6d58208438e26485e9565abd875 | [
"MIT"
] | 9 | 2017-09-25T14:44:17.000Z | 2020-09-16T01:47:43.000Z | evernode/classes/middleware.py | AtomHash/evernode | f70d82e78cf9f6d58208438e26485e9565abd875 | [
"MIT"
] | 1 | 2020-10-05T20:36:24.000Z | 2020-10-05T20:36:24.000Z | """
Middleware to help handle route.py conditions
"""
from flask import current_app, Flask, Response
from .json_response import JsonResponse
class Middleware:
""" Provides useful defaults for creating fast middleware """
status = False
response = Response
app = Flask
def __init__... | 27.407407 | 68 | 0.631081 | 83 | 740 | 5.518072 | 0.493976 | 0.043668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.286486 | 740 | 26 | 69 | 28.461538 | 0.861742 | 0.272973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.666667 | 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 |
e23723d308a01f1931cf7125498bbe81383115b6 | 5,955 | py | Python | src/utils/FastClassAI_cnn_models.py | PawelRosikiewicz/SkinDiagnosticAI | 7cc7b7a9ccd4103095a7548e7b99de4988858356 | [
"MIT"
] | 1 | 2021-05-15T09:57:25.000Z | 2021-05-15T09:57:25.000Z | src/utils/FastClassAI_cnn_models.py | PawelRosikiewicz/SkinDiagnosticAI | 7cc7b7a9ccd4103095a7548e7b99de4988858356 | [
"MIT"
] | null | null | null | src/utils/FastClassAI_cnn_models.py | PawelRosikiewicz/SkinDiagnosticAI | 7cc7b7a9ccd4103095a7548e7b99de4988858356 | [
"MIT"
] | null | null | null | # ********************************************************************************** #
# #
# Project: FastClassAI workbecnch #
# ... | 36.533742 | 136 | 0.564064 | 580 | 5,955 | 5.724138 | 0.424138 | 0.063253 | 0.068675 | 0.067771 | 0.256928 | 0.217169 | 0.161145 | 0.123494 | 0.076506 | 0.076506 | 0 | 0.012012 | 0.328967 | 5,955 | 162 | 137 | 36.759259 | 0.818819 | 0.412594 | 0 | 0.326316 | 0 | 0 | 0.054497 | 0.007147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0.010526 | 0.431579 | 0 | 0.463158 | 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 |
e238bd5052f643964df2321d1b76ad9c366c395a | 3,674 | py | Python | code/scripts/runBatchOfStaticReflexRecordings.py | neurorestore/neuraldynamicplatform | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | [
"MIT"
] | 2 | 2020-12-27T03:46:03.000Z | 2021-05-01T10:29:45.000Z | code/scripts/runBatchOfStaticReflexRecordings.py | neurorestore/neuraldynamicplatform | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | [
"MIT"
] | null | null | null | code/scripts/runBatchOfStaticReflexRecordings.py | neurorestore/neuraldynamicplatform | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | [
"MIT"
] | null | null | null | import argparse
import sys
sys.path.append('../code')
import subprocess
import matplotlib.pyplot as plt
import numpy as np
import os
import fnmatch
import time
import pickle
from tools import general_tools as gt
pathToResults = "../../results"
def main():
""" This program launches several static reflex recordings wi... | 40.373626 | 180 | 0.743604 | 505 | 3,674 | 5.291089 | 0.358416 | 0.008982 | 0.038174 | 0.04491 | 0.153069 | 0.101048 | 0.078593 | 0.078593 | 0.078593 | 0 | 0 | 0.016949 | 0.100708 | 3,674 | 90 | 181 | 40.822222 | 0.791768 | 0.048449 | 0 | 0 | 0 | 0 | 0.20483 | 0.027132 | 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 |
e23b068549b93f4f3d2b76625a066810081ed57b | 529 | py | Python | htdfsdk/web3/_utils/txpool.py | youngqqcn/htdfsdk | c22f213a967c8233bb6ccfb01bf148112efd44db | [
"MIT"
] | 2 | 2021-01-21T01:46:29.000Z | 2021-03-12T05:59:19.000Z | htdfsdk/web3/_utils/txpool.py | youngqqcn/htdfsdk | c22f213a967c8233bb6ccfb01bf148112efd44db | [
"MIT"
] | null | null | null | htdfsdk/web3/_utils/txpool.py | youngqqcn/htdfsdk | c22f213a967c8233bb6ccfb01bf148112efd44db | [
"MIT"
] | null | null | null | from typing import (
Callable,
)
from htdfsdk.web3._utils.rpc_abi import (
RPC,
)
from htdfsdk.web3.method import (
Method,
)
from htdfsdk.web3.types import (
TxPoolContent,
TxPoolInspect,
TxPoolStatus,
)
content: Method[Callable[[], TxPoolContent]] = Method(
RPC.txpool_content,
munger... | 16.030303 | 54 | 0.678639 | 56 | 529 | 6.321429 | 0.357143 | 0.09322 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007059 | 0.196597 | 529 | 32 | 55 | 16.53125 | 0.825882 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 |
e23b10932432c32facf6e6d1f68b7a39db825a8c | 1,037 | py | Python | oTree/trust/models.py | leliel12/otree_bogota2018 | f2af65f5ea9e0096f31ee1e34e79fb0e198b342e | [
"BSD-3-Clause"
] | null | null | null | oTree/trust/models.py | leliel12/otree_bogota2018 | f2af65f5ea9e0096f31ee1e34e79fb0e198b342e | [
"BSD-3-Clause"
] | null | null | null | oTree/trust/models.py | leliel12/otree_bogota2018 | f2af65f5ea9e0096f31ee1e34e79fb0e198b342e | [
"BSD-3-Clause"
] | null | null | null | from otree.api import (
models, widgets, BaseConstants,
BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range
)
author = 'Your name here'
doc = """
Your app description
"""
class Constants(BaseConstants):
name_in_url = 'trust'
players_per_group = 2
num_rounds = 1
endowme... | 23.568182 | 94 | 0.703954 | 130 | 1,037 | 5.376923 | 0.453846 | 0.06867 | 0.100143 | 0.077253 | 0.11731 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018138 | 0.202507 | 1,037 | 43 | 95 | 24.116279 | 0.827086 | 0 | 0 | 0.066667 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.033333 | 0 | 0.433333 | 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 |
e242b72ab7d1fa62626462e48386fdeaccd3bd99 | 33,099 | py | Python | FulcrumRecordToSalesforceRecord.py | damienheiser/FulcrumToSalesforce | 6d9b660d820cca78dc6b53c7c395210136025af6 | [
"MIT"
] | 3 | 2019-06-26T19:55:49.000Z | 2019-11-06T21:49:25.000Z | FulcrumRecordToSalesforceRecord.py | damienheiser/FulcrumToSalesforce | 6d9b660d820cca78dc6b53c7c395210136025af6 | [
"MIT"
] | null | null | null | FulcrumRecordToSalesforceRecord.py | damienheiser/FulcrumToSalesforce | 6d9b660d820cca78dc6b53c7c395210136025af6 | [
"MIT"
] | null | null | null | import json
import SalesforceMetadataModule as smm
import dicttoxml
from xml.dom.minidom import parseString
from fulcrum import Fulcrum
import re
import collections
import time
import datetime
import requests
import base64
import string
import random
from simple_salesforce import Salesforce
from simple_salesforce impo... | 45.780083 | 290 | 0.72978 | 3,655 | 33,099 | 6.408208 | 0.116005 | 0.029118 | 0.046964 | 0.055333 | 0.593929 | 0.552344 | 0.509692 | 0.478994 | 0.452267 | 0.417812 | 0 | 0.005349 | 0.135805 | 33,099 | 722 | 291 | 45.84349 | 0.813488 | 0.054745 | 0 | 0.290135 | 0 | 0.001934 | 0.197214 | 0.014992 | 0.001934 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003868 | 0.030948 | null | null | 0.059961 | 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 |
e24317b37d11d550c237eb96d88da4e951a54257 | 2,191 | py | Python | test/test_extraction.py | tim-tx/microtaspy | 86e4129f51b09562c91d49a55ccb9ba278fa910d | [
"CC-BY-3.0"
] | null | null | null | test/test_extraction.py | tim-tx/microtaspy | 86e4129f51b09562c91d49a55ccb9ba278fa910d | [
"CC-BY-3.0"
] | null | null | null | test/test_extraction.py | tim-tx/microtaspy | 86e4129f51b09562c91d49a55ccb9ba278fa910d | [
"CC-BY-3.0"
] | null | null | null | import unittest
import time
import logging
import microtaspy.segmentation as mseg
import skimage.io as skio
import numpy as np
import pandas as pd
from glob import glob
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
class TestExtraction(unittest.TestCase):
# def test_extraction_time... | 34.777778 | 124 | 0.575993 | 289 | 2,191 | 4.245675 | 0.397924 | 0.03912 | 0.03423 | 0.03912 | 0.173594 | 0.03423 | 0 | 0 | 0 | 0 | 0 | 0.037748 | 0.262437 | 2,191 | 62 | 125 | 35.33871 | 0.721535 | 0.483341 | 0 | 0.08 | 0 | 0 | 0.076993 | 0.022645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.36 | 0 | 0.44 | 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 |
e247785e62e8de0c7af0c44ef892d1572d43d5e3 | 9,109 | py | Python | torch_ecg/_preprocessors/base.py | DeepPSP/torch_ecg | 6db5ffb063d0e8fb4ce97029a0d184a658f43a37 | [
"MIT"
] | 9 | 2021-06-26T03:00:55.000Z | 2022-03-03T13:43:00.000Z | torch_ecg/_preprocessors/base.py | wenh06/torch_ecg | a260bac0b4be8cd84c411874af3337358f135442 | [
"MIT"
] | 1 | 2021-10-01T09:29:30.000Z | 2021-10-02T03:41:55.000Z | torch_ecg/_preprocessors/base.py | wenh06/torch_ecg | a260bac0b4be8cd84c411874af3337358f135442 | [
"MIT"
] | 2 | 2021-04-28T03:13:11.000Z | 2021-05-15T14:15:34.000Z | """
"""
from itertools import repeat
import multiprocessing as mp
from abc import ABC, abstractmethod
from numbers import Real
from typing import Optional, List, NoReturn, Tuple, List
import numpy as np
np.set_printoptions(precision=5, suppress=True)
from scipy.ndimage.filters import median_filter
from scipy.signal.s... | 34.900383 | 97 | 0.585465 | 1,167 | 9,109 | 4.422451 | 0.167952 | 0.032552 | 0.013563 | 0.02267 | 0.6646 | 0.654912 | 0.631273 | 0.615772 | 0.58477 | 0.578958 | 0 | 0.01708 | 0.318696 | 9,109 | 260 | 98 | 35.034615 | 0.814534 | 0.367549 | 0 | 0.491935 | 0 | 0.008065 | 0.10352 | 0.010847 | 0 | 0 | 0 | 0 | 0.024194 | 1 | 0.056452 | false | 0.064516 | 0.08871 | 0.008065 | 0.209677 | 0.008065 | 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 |
e248fc3cdc4ece826d64da2ca983dd717f04a5cb | 311 | py | Python | home/migrations/0006_remove_banner_site.py | renannoronha/iasd | 2fd94af8c08cf16ae028f587e35431b99a64ec57 | [
"MIT"
] | null | null | null | home/migrations/0006_remove_banner_site.py | renannoronha/iasd | 2fd94af8c08cf16ae028f587e35431b99a64ec57 | [
"MIT"
] | null | null | null | home/migrations/0006_remove_banner_site.py | renannoronha/iasd | 2fd94af8c08cf16ae028f587e35431b99a64ec57 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2022-02-28 18:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0005_banner'),
]
operations = [
migrations.RemoveField(
model_name='banner',
name='site',
),
]
| 17.277778 | 47 | 0.569132 | 33 | 311 | 5.30303 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088785 | 0.311897 | 311 | 17 | 48 | 18.294118 | 0.728972 | 0.144695 | 0 | 0 | 1 | 0 | 0.094697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
e24b0ac483028071c183a1c458c32d291f586e00 | 921 | py | Python | homeworkpal_project/project_admin/excel.py | luiscberrocal/homeworkpal | 342acf876264fade818b107f4af13cac067f1ace | [
"MIT"
] | null | null | null | homeworkpal_project/project_admin/excel.py | luiscberrocal/homeworkpal | 342acf876264fade818b107f4af13cac067f1ace | [
"MIT"
] | null | null | null | homeworkpal_project/project_admin/excel.py | luiscberrocal/homeworkpal | 342acf876264fade818b107f4af13cac067f1ace | [
"MIT"
] | null | null | null | from openpyxl import Workbook
__author__ = 'LBerrocal'
class ProjectAdminExcel(object):
def export_supports(self, filename, supports):
wb = Workbook()
sheet = wb.create_sheet(title='Supports')
row = 1
headers = ['Project', 'Group', 'Date', 'Description']
column = 1
... | 34.111111 | 80 | 0.590662 | 105 | 921 | 5.095238 | 0.361905 | 0.078505 | 0.140187 | 0.196262 | 0.405607 | 0.405607 | 0.405607 | 0.345794 | 0.345794 | 0.272897 | 0 | 0.012403 | 0.299674 | 921 | 27 | 81 | 34.111111 | 0.817054 | 0 | 0 | 0.26087 | 0 | 0 | 0.047722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 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 |
e2514860773ea7f5ce64256878fb071498eb7cd9 | 2,188 | py | Python | movie_recomendation/apps/movie/migrations/0001_initial.py | fernandogfleite/movies-recommendation | bd4cf9d64a3783feed95714d02526f8adcd52368 | [
"MIT"
] | null | null | null | movie_recomendation/apps/movie/migrations/0001_initial.py | fernandogfleite/movies-recommendation | bd4cf9d64a3783feed95714d02526f8adcd52368 | [
"MIT"
] | null | null | null | movie_recomendation/apps/movie/migrations/0001_initial.py | fernandogfleite/movies-recommendation | bd4cf9d64a3783feed95714d02526f8adcd52368 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-04 00:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
... | 37.084746 | 117 | 0.541133 | 205 | 2,188 | 5.668293 | 0.321951 | 0.034423 | 0.048193 | 0.075732 | 0.629948 | 0.583477 | 0.528399 | 0.528399 | 0.454389 | 0.454389 | 0 | 0.017976 | 0.313528 | 2,188 | 58 | 118 | 37.724138 | 0.755659 | 0.020567 | 0 | 0.490196 | 1 | 0 | 0.081738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.117647 | 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 |
e25189271ae6857638072e82485d731d957a7a8b | 2,283 | py | Python | regel/parser.py | heijp06/regel | ca8b97c46ed909832d6d8b50612d6192f58284ca | [
"MIT"
] | null | null | null | regel/parser.py | heijp06/regel | ca8b97c46ed909832d6d8b50612d6192f58284ca | [
"MIT"
] | null | null | null | regel/parser.py | heijp06/regel | ca8b97c46ed909832d6d8b50612d6192f58284ca | [
"MIT"
] | null | null | null | import re
from parsec import ParseError, digit, generate, letter, many, none_of, string
from .converter import Converter
from .field import Field
from .rule import Rule
def parse(pattern, globals, locals):
try:
regex, fields = _regel.parse_strict(pattern)
except ParseError as err:
raise ValueE... | 21.537736 | 89 | 0.635567 | 267 | 2,283 | 5.254682 | 0.284644 | 0.094084 | 0.060584 | 0.053457 | 0.172488 | 0.15253 | 0.105488 | 0.059872 | 0 | 0 | 0 | 0.000566 | 0.226456 | 2,283 | 105 | 90 | 21.742857 | 0.793884 | 0.022339 | 0 | 0.186667 | 1 | 0 | 0.06278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173333 | false | 0 | 0.066667 | 0.013333 | 0.413333 | 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 |
e252721aaa0baa333a3ca737b13959a1b51cbe10 | 2,374 | py | Python | custom/opening_quote.py | Tequila-Sunrise/Wordle-Solver | 0de5c666544d76445c6e2339336ffad4d0c42e47 | [
"MIT"
] | 5 | 2021-03-18T02:28:07.000Z | 2021-04-10T03:40:24.000Z | custom/opening_quote.py | Tequila-Sunrise/Wordle-Solver | 0de5c666544d76445c6e2339336ffad4d0c42e47 | [
"MIT"
] | null | null | null | custom/opening_quote.py | Tequila-Sunrise/Wordle-Solver | 0de5c666544d76445c6e2339336ffad4d0c42e47 | [
"MIT"
] | 1 | 2022-02-16T03:22:47.000Z | 2022-02-16T03:22:47.000Z | from manimlib.animation.creation import Write
from manimlib.animation.fading import FadeIn
from manimlib.constants import *
from manimlib.mobject.svg.tex_mobject import TexText
from manimlib.scene.scene import Scene
from manimlib.utils.rate_functions import linear
class OpeningQuote(Scene):
CONFIG = {
"qu... | 34.405797 | 78 | 0.55813 | 273 | 2,374 | 4.637363 | 0.315018 | 0.078199 | 0.053712 | 0.028436 | 0.159558 | 0.123223 | 0.123223 | 0.075829 | 0.075829 | 0.075829 | 0 | 0.009907 | 0.319714 | 2,374 | 68 | 79 | 34.911765 | 0.773994 | 0.008846 | 0 | 0.114754 | 0 | 0 | 0.079541 | 0.009783 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.04918 | false | 0 | 0.098361 | 0 | 0.213115 | 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 |
e2595a469f2d9cbf1b0bd887f2e67ef85ba77bae | 1,704 | py | Python | auth.py | Anindya-tnt/access_control | cd93f0b2d5c766a8b272f809fe86f4c3126b259d | [
"MIT"
] | null | null | null | auth.py | Anindya-tnt/access_control | cd93f0b2d5c766a8b272f809fe86f4c3126b259d | [
"MIT"
] | null | null | null | auth.py | Anindya-tnt/access_control | cd93f0b2d5c766a8b272f809fe86f4c3126b259d | [
"MIT"
] | null | null | null | from db import DatabaseConnection
from hashlib import sha256
class AuthManager:
queries = {
"CREATE_PASSWORD_ENTRY": "INSERT INTO AUTH(USER_ID,PASSWORD) VALUES('{}','{}') ",
"RETRIEVE_USER_HASH": "SELECT PASSWORD FROM AUTH WHERE USER_ID = '{}' "
}
def __init__(self, db=None):
self... | 32.769231 | 98 | 0.584507 | 198 | 1,704 | 4.828283 | 0.373737 | 0.050209 | 0.043933 | 0.054393 | 0.169456 | 0.077406 | 0 | 0 | 0 | 0 | 0 | 0.010292 | 0.315728 | 1,704 | 51 | 99 | 33.411765 | 0.809605 | 0.063967 | 0 | 0.25641 | 0 | 0 | 0.187657 | 0.040302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.179487 | 0.051282 | 0 | 0.384615 | 0.128205 | 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 |
e259e522428b8d7a70b32c1b20b54d0375a3cfc2 | 7,473 | py | Python | tests/unit/util/test_config.py | pastly/sbws | 3d9f5ad0b5880be0b6ff8c767accef67b62f7e21 | [
"CC0-1.0"
] | null | null | null | tests/unit/util/test_config.py | pastly/sbws | 3d9f5ad0b5880be0b6ff8c767accef67b62f7e21 | [
"CC0-1.0"
] | null | null | null | tests/unit/util/test_config.py | pastly/sbws | 3d9f5ad0b5880be0b6ff8c767accef67b62f7e21 | [
"CC0-1.0"
] | null | null | null | import sbws.util.config as con
from configparser import ConfigParser
class PseudoSection:
def __init__(self, key, value, mini=None, maxi=None):
self.key = key
self.value = value
self.mini = mini
self.maxi = maxi
def getfloat(self, key):
assert key == self.key, 'But in ... | 32.072961 | 75 | 0.531647 | 900 | 7,473 | 4.324444 | 0.115556 | 0.082734 | 0.071942 | 0.113052 | 0.770812 | 0.736382 | 0.678314 | 0.671891 | 0.63001 | 0.557811 | 0 | 0.031641 | 0.293724 | 7,473 | 232 | 76 | 32.211207 | 0.70576 | 0 | 0 | 0.514423 | 0 | 0 | 0.165797 | 0.003345 | 0 | 0 | 0 | 0 | 0.105769 | 1 | 0.0625 | false | 0.009615 | 0.009615 | 0 | 0.086538 | 0.024038 | 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 |
e25a231c85257d656a8ae8643025dfe0d3afd221 | 1,293 | py | Python | app/cfdi/views.py | ferxohn/xml_api | 9c65ac7a88d7258e95b7dee028ff75ba9ca5aed3 | [
"MIT"
] | null | null | null | app/cfdi/views.py | ferxohn/xml_api | 9c65ac7a88d7258e95b7dee028ff75ba9ca5aed3 | [
"MIT"
] | null | null | null | app/cfdi/views.py | ferxohn/xml_api | 9c65ac7a88d7258e95b7dee028ff75ba9ca5aed3 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import CFDIIssued, CFDIReceived
from cfdi import serializers
class BaseCFDIAttrViewSet(viewsets.ModelViewSet):
"""Base viewset for CFDI attribu... | 34.026316 | 64 | 0.740913 | 141 | 1,293 | 6.631206 | 0.453901 | 0.025668 | 0.054545 | 0.038503 | 0.13262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185615 | 1,293 | 37 | 65 | 34.945946 | 0.887939 | 0.149265 | 0 | 0 | 0 | 0 | 0.068221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.72 | 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 |
e25ad82b4efc59809bf25118e8883415c9fac2ee | 377 | py | Python | scripts/getFromIPCam.py | markmac99/allsky | b5b2935f7ca6217365bf1ae10a5bb7267d4b8232 | [
"MIT"
] | null | null | null | scripts/getFromIPCam.py | markmac99/allsky | b5b2935f7ca6217365bf1ae10a5bb7267d4b8232 | [
"MIT"
] | null | null | null | scripts/getFromIPCam.py | markmac99/allsky | b5b2935f7ca6217365bf1ae10a5bb7267d4b8232 | [
"MIT"
] | null | null | null | import cv2
cap = cv2.VideoCapture('rtsp://192.168.1.11:554/user=admin&password=&channel=1&stream=0.sdp')
#while True:
for i in range(25):
ret, frame = cap.read()
fnam='c:/temp/capture/frame'+str(i)+'.jpg'
cv2.imwrite(fnam, frame)
#cv2.imshow("Capturing",frame)
# if cv2.waitKey(1) & 0xFF == ord('q... | 22.176471 | 93 | 0.639257 | 58 | 377 | 4.155172 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07571 | 0.159151 | 377 | 17 | 94 | 22.176471 | 0.684543 | 0.249337 | 0 | 0 | 0 | 0.125 | 0.328571 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 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 |
e25c413117fc53c042acec2d04530decbe30e1e3 | 1,599 | py | Python | dataviz/flagsfictional.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 119 | 2017-07-22T15:02:30.000Z | 2021-08-02T10:42:59.000Z | dataviz/flagsfictional.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | null | null | null | dataviz/flagsfictional.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 28 | 2017-08-04T14:28:41.000Z | 2019-11-27T23:46:14.000Z | from pudzu.charts import *
from pudzu.sandbox.bamboo import *
df = pd.read_csv("datasets/flagsfictional.csv")
data = pd.DataFrame(list(generate_batches([dict(row) for _,row in df.iterrows()], 3)))
fg, bg="black", "#EEEEEE"
default_img = "https://s-media-cache-ak0.pinimg.com/736x/0d/36/e7/0d36e7a476b06333d9fe9960... | 57.107143 | 161 | 0.685428 | 260 | 1,599 | 4.061538 | 0.434615 | 0.09375 | 0.056818 | 0.075758 | 0.267992 | 0.216856 | 0.163826 | 0.163826 | 0.163826 | 0 | 0 | 0.075714 | 0.124453 | 1,599 | 27 | 162 | 59.222222 | 0.678571 | 0 | 0 | 0 | 1 | 0.045455 | 0.168575 | 0.033079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0.045455 | 0.181818 | 0.045455 | 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 |
e26769f1c216b7ccd0a2317d1aaa8f4f9260d961 | 3,664 | py | Python | a10sdk/core/rba/rba_user_partition.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 16 | 2015-05-20T07:26:30.000Z | 2021-01-23T11:56:57.000Z | a10sdk/core/rba/rba_user_partition.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 6 | 2015-03-24T22:07:11.000Z | 2017-03-28T21:31:18.000Z | a10sdk/core/rba/rba_user_partition.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 RoleList(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param role: {"description": "Role in a given partition", "format": "string", "minLength": 1, "maxLength": 32, "type": "string", "$ref": "/axapi/v3/rba/role... | 41.168539 | 465 | 0.619814 | 427 | 3,664 | 5.24356 | 0.238876 | 0.03573 | 0.037517 | 0.039303 | 0.664582 | 0.65565 | 0.65565 | 0.65565 | 0.605181 | 0.605181 | 0 | 0.015835 | 0.207151 | 3,664 | 88 | 466 | 41.636364 | 0.754905 | 0.654476 | 0 | 0.483871 | 0 | 0 | 0.082083 | 0.045896 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.032258 | 0 | 0.225806 | 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 |
e26794e6a3ae38e155ea78055c149860c6e3bb9a | 1,052 | py | Python | twistedchecker/functionaltests/attributename.py | twisted/twistedchecker | 4a69f3f7d80f2f42d915bc128d4257a2e15804e4 | [
"MIT"
] | 10 | 2015-01-06T14:59:50.000Z | 2021-01-10T19:06:16.000Z | twistedchecker/functionaltests/attributename.py | twisted/twistedchecker | 4a69f3f7d80f2f42d915bc128d4257a2e15804e4 | [
"MIT"
] | 76 | 2015-02-07T13:00:22.000Z | 2020-04-14T02:10:37.000Z | twistedchecker/functionaltests/attributename.py | twisted/twistedchecker | 4a69f3f7d80f2f42d915bc128d4257a2e15804e4 | [
"MIT"
] | 11 | 2015-05-24T15:55:49.000Z | 2017-10-15T11:34:35.000Z | # enable: C0103
class FooClass:
"""
Attribute names should be in mixed case,
with the first letter lower case,
each word separated by having its first letter capitalized
just like method names.
And all private names should begin with an underscore.
"""
def __init__(self):
"""
... | 26.974359 | 75 | 0.585551 | 119 | 1,052 | 4.722689 | 0.529412 | 0.170819 | 0.149466 | 0.160142 | 0.234875 | 0.145907 | 0.145907 | 0.088968 | 0 | 0 | 0 | 0.005806 | 0.345057 | 1,052 | 38 | 76 | 27.684211 | 0.809869 | 0.346958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 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 |
e2680fae95ce08a0f02cc1712890564697696eb6 | 5,782 | py | Python | src/accounts/tests/test_views.py | Bounty1993/my-blog | 973ed2046fbb37489fea7caeeebcea5f88cf3fa6 | [
"MIT"
] | null | null | null | src/accounts/tests/test_views.py | Bounty1993/my-blog | 973ed2046fbb37489fea7caeeebcea5f88cf3fa6 | [
"MIT"
] | null | null | null | src/accounts/tests/test_views.py | Bounty1993/my-blog | 973ed2046fbb37489fea7caeeebcea5f88cf3fa6 | [
"MIT"
] | null | null | null | import datetime
import re
from django.contrib.auth import get_user_model
from django.core import mail
from django.test import TestCase
from django.urls import resolve, reverse
from django.forms.models import model_to_dict
from src.accounts.forms import ProfileForm
User = get_user_model()
class SignUpViewTest(TestC... | 35.256098 | 104 | 0.641301 | 697 | 5,782 | 5.163558 | 0.209469 | 0.04668 | 0.065018 | 0.088636 | 0.425396 | 0.359544 | 0.300361 | 0.219783 | 0.219783 | 0.219783 | 0 | 0.020829 | 0.236077 | 5,782 | 163 | 105 | 35.472393 | 0.793978 | 0.037011 | 0 | 0.364341 | 0 | 0 | 0.12013 | 0.044573 | 0 | 0 | 0 | 0 | 0.178295 | 1 | 0.124031 | false | 0.147287 | 0.062016 | 0 | 0.224806 | 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 |
e268c5acf5d482c587554df64e91a435a87003bf | 2,091 | py | Python | simple_mortgage_calculator/loan.py | geea-develop/simple-mortgage-calculator | 7cf907827b1d30df5b64f1c586759045fa7bbf77 | [
"MIT"
] | null | null | null | simple_mortgage_calculator/loan.py | geea-develop/simple-mortgage-calculator | 7cf907827b1d30df5b64f1c586759045fa7bbf77 | [
"MIT"
] | null | null | null | simple_mortgage_calculator/loan.py | geea-develop/simple-mortgage-calculator | 7cf907827b1d30df5b64f1c586759045fa7bbf77 | [
"MIT"
] | null | null | null | from .payment import Payment
class Loan(object):
"""
Loan.
"""
# rate - intrest rate per month
# nper - number of payments for loan.
# pv - loan amount
# fv - future value after the full loan is repaid
# type -
# 0 means payments are due at the end of the period.
# 1 me... | 30.75 | 136 | 0.519369 | 276 | 2,091 | 3.905797 | 0.210145 | 0.059369 | 0.023191 | 0.041744 | 0.258813 | 0.217996 | 0.173469 | 0.173469 | 0.128015 | 0.128015 | 0 | 0.020893 | 0.336203 | 2,091 | 67 | 137 | 31.208955 | 0.755764 | 0.38594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0 | 0.357143 | 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 |
e26a479609dd0c5a4a170890735de18567a36d28 | 870 | py | Python | tests/test_blog.py | barackmaund1/flaskblog | 3b6c40612b3483b37b60eaeb807c5f33e6d00505 | [
"MIT"
] | null | null | null | tests/test_blog.py | barackmaund1/flaskblog | 3b6c40612b3483b37b60eaeb807c5f33e6d00505 | [
"MIT"
] | 2 | 2021-06-08T21:32:02.000Z | 2022-03-12T00:29:24.000Z | tests/test_blog.py | barackmaund1/flaskblog | 3b6c40612b3483b37b60eaeb807c5f33e6d00505 | [
"MIT"
] | null | null | null | import unittest
from app.models import User,Post
from app import db
class PostModelTest(unittest.TestCase):
def setUp(self):
self.user_albert = User(username="albert",pass_secure="albert",email="albert@yahoo.com")
self.new_post = Post(id="1",title="testing",content="testing blog",user_id=self.1)
... | 34.8 | 96 | 0.673563 | 124 | 870 | 4.556452 | 0.362903 | 0.074336 | 0.116814 | 0.122124 | 0.224779 | 0.081416 | 0 | 0 | 0 | 0 | 0 | 0.007174 | 0.198851 | 870 | 25 | 97 | 34.8 | 0.803443 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | null | null | 0.047619 | 0.142857 | 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 |
e26de68b2e304a04b7ff59d4aa61814fc5fd2284 | 73,536 | py | Python | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Plots/Performance/Mission_Plots.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Plots/Performance/Mission_Plots.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Plots/Performance/Mission_Plots.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | ## @ingroup Plots
# Mission_Plots.py
#
# Created: Mar 2020, M. Clarke
# Apr 2020, M. Clarke
# Sep 2020, M. Clarke
# Apr 2021, M. Clarke
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------... | 37.885626 | 168 | 0.551648 | 9,009 | 73,536 | 4.257409 | 0.060495 | 0.055143 | 0.034728 | 0.029331 | 0.7623 | 0.70395 | 0.650372 | 0.599635 | 0.574084 | 0.497093 | 0 | 0.020069 | 0.290538 | 73,536 | 1,940 | 169 | 37.905155 | 0.71511 | 0.163158 | 0 | 0.532735 | 0 | 0 | 0.053129 | 0.003443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020628 | false | 0.001794 | 0.005381 | 0.001794 | 0.04574 | 0 | 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 |
e26f297e4d727e0f2bd8cc8722dca48e86919b16 | 243 | py | Python | 16_Standard_Library/A_Modules/_pprint.py | Oscar-Oliveira/Python3 | fa791225a6810b75890d24407b73c5e1b514acbe | [
"MIT"
] | null | null | null | 16_Standard_Library/A_Modules/_pprint.py | Oscar-Oliveira/Python3 | fa791225a6810b75890d24407b73c5e1b514acbe | [
"MIT"
] | null | null | null | 16_Standard_Library/A_Modules/_pprint.py | Oscar-Oliveira/Python3 | fa791225a6810b75890d24407b73c5e1b514acbe | [
"MIT"
] | null | null | null | """
pprint (Pretty Print)
"""
import pprint
grades = {
"student1" : [10, 11, 12],
"student2" : [15, 14, 14],
"student3" : [10, 10, 12],
"student4" : [14, 14, 10]
}
print(grades)
print()
pprint.pprint(grades)
| 14.294118 | 31 | 0.514403 | 28 | 243 | 4.464286 | 0.5 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 0.283951 | 243 | 16 | 32 | 15.1875 | 0.557471 | 0.08642 | 0 | 0 | 0 | 0 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.4 | 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 |
e26f87a6c7bb288c78dbc650a7a2f9d67c1b82b2 | 4,561 | py | Python | pdsmodulos/signals/windows.py | NicolasFerragamo/pdstestbench | e87f1a0000f7a0b9593dccd4b0f6fa256ca67438 | [
"MIT"
] | null | null | null | pdsmodulos/signals/windows.py | NicolasFerragamo/pdstestbench | e87f1a0000f7a0b9593dccd4b0f6fa256ca67438 | [
"MIT"
] | null | null | null | pdsmodulos/signals/windows.py | NicolasFerragamo/pdstestbench | e87f1a0000f7a0b9593dccd4b0f6fa256ca67438 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 21 18:59:11 2019
@author: nico
"""
import numpy as np
#%% Ventana trinagunlar
# N tamaño de la ventana
# nventanas numero de ventanas
# esta funcion genera una matriz de ventanas triangulares
def triang (N, nventanas=1):
triangular = np.zero... | 27.981595 | 177 | 0.562596 | 652 | 4,561 | 3.935583 | 0.145706 | 0.020265 | 0.023383 | 0.038192 | 0.673811 | 0.651988 | 0.651988 | 0.646921 | 0.631723 | 0.631723 | 0 | 0.074953 | 0.306731 | 4,561 | 162 | 178 | 28.154321 | 0.736559 | 0.247314 | 0 | 0.391753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082474 | false | 0 | 0.010309 | 0 | 0.257732 | 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 |
e27acb19da5045f95096a8d269e1456bb1e2c59a | 1,281 | py | Python | frontends/pytorch/test/ivalue_import/annotations/export-error.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | frontends/pytorch/test/ivalue_import/annotations/export-error.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | frontends/pytorch/test/ivalue_import/annotations/export-error.py | raikonenfnu/mlir-npcomp | 29e1b2fe89848d58c9bc07e7df7ce651850a5244 | [
"Apache-2.0"
] | null | null | null | # -*- Python -*-
# This file is licensed under a pytorch-style license
# See frontends/pytorch/LICENSE for license information.
import typing
import torch
import torch_mlir
# RUN: %PYTHON %s | FileCheck %s
mb = torch_mlir.ModuleBuilder()
class TestModule(torch.nn.Module):
def __init__(self):
super().__... | 27.255319 | 109 | 0.728337 | 165 | 1,281 | 5.478788 | 0.509091 | 0.039823 | 0.073009 | 0.089602 | 0.169248 | 0.118363 | 0.081858 | 0 | 0 | 0 | 0 | 0 | 0.168618 | 1,281 | 46 | 110 | 27.847826 | 0.848826 | 0.412178 | 0 | 0.333333 | 0 | 0 | 0.004043 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0.037037 | 0.296296 | 0.148148 | 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 |
e27ffc5195a5c3981a4d6544c0dc7356ec549a3a | 754 | py | Python | data/modules/graphic/two_D/player_gui/gui_abstract_object.py | Sheidaas/gamee | 434db4648e1719a648b8784f201b03b4c8e243c3 | [
"CC-BY-3.0"
] | null | null | null | data/modules/graphic/two_D/player_gui/gui_abstract_object.py | Sheidaas/gamee | 434db4648e1719a648b8784f201b03b4c8e243c3 | [
"CC-BY-3.0"
] | null | null | null | data/modules/graphic/two_D/player_gui/gui_abstract_object.py | Sheidaas/gamee | 434db4648e1719a648b8784f201b03b4c8e243c3 | [
"CC-BY-3.0"
] | null | null | null | class GuiAbstractObject:
def is_clicked(self, mouse):
area = (self.position[0] * self.screen.engine.settings.graphic['screen']['resolution_scale'][0],
self.position[1] * self.screen.engine.settings.graphic['screen']['resolution_scale'][1],
(self.position[0] + self.position[2... | 47.125 | 126 | 0.600796 | 96 | 754 | 4.666667 | 0.260417 | 0.160714 | 0.142857 | 0.214286 | 0.602679 | 0.540179 | 0.540179 | 0.540179 | 0.540179 | 0.3125 | 0 | 0.037288 | 0.217507 | 754 | 15 | 127 | 50.266667 | 0.722034 | 0 | 0 | 0 | 0 | 0 | 0.125995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.416667 | 0.083333 | 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 |
e287aeb9c77dd67f10ca68c4e15606268eb009ed | 2,368 | py | Python | tests/parallel/conftest.py | dtpryce/MLServer | 02744b3c770141b0b1d9dad2a0256d243051de61 | [
"Apache-2.0"
] | null | null | null | tests/parallel/conftest.py | dtpryce/MLServer | 02744b3c770141b0b1d9dad2a0256d243051de61 | [
"Apache-2.0"
] | null | null | null | tests/parallel/conftest.py | dtpryce/MLServer | 02744b3c770141b0b1d9dad2a0256d243051de61 | [
"Apache-2.0"
] | null | null | null | import asyncio
import pytest
from multiprocessing import Queue
from mlserver.settings import ModelSettings
from mlserver.types import InferenceRequest
from mlserver.utils import generate_uuid
from mlserver.model import MLModel
from mlserver.parallel.pool import InferencePool
from mlserver.parallel.worker import Worke... | 24.666667 | 79 | 0.753801 | 277 | 2,368 | 6.256318 | 0.306859 | 0.046163 | 0.064628 | 0.048471 | 0.242354 | 0.221581 | 0.221581 | 0.221581 | 0.169648 | 0.169648 | 0 | 0 | 0.176098 | 2,368 | 95 | 80 | 24.926316 | 0.888262 | 0.095017 | 0 | 0.223881 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.164179 | 0.044776 | 0.253731 | 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 |
e2897ac09c4f30d9539a694f408dc6262132cc92 | 8,760 | py | Python | comparison/compare.py | TIBHannover/orkg-similarity | 5c3f0d9bfc37fa7986e6ea1aa71cdd8c9be53dd9 | [
"MIT"
] | 1 | 2020-02-14T11:49:18.000Z | 2020-02-14T11:49:18.000Z | comparison/compare.py | TIBHannover/orkg-similarity | 5c3f0d9bfc37fa7986e6ea1aa71cdd8c9be53dd9 | [
"MIT"
] | 1 | 2021-07-26T13:40:23.000Z | 2021-07-26T13:40:23.000Z | comparison/compare.py | TIBHannover/orkg-similarity | 5c3f0d9bfc37fa7986e6ea1aa71cdd8c9be53dd9 | [
"MIT"
] | null | null | null | import numpy as np
import itertools
from connection.neo4j import Neo4J
from time import time
from fuzzywuzzy import fuzz as model
pred_sim_matrix = None
pred_label_index = None
pred_index_id = None
pred_id_index = None
__SIMILARITY_THRESHOLD__ = 0.90
neo4j = Neo4J.getInstance()
stopwords = ['ourselves', 'hers', 'betw... | 49.491525 | 1,015 | 0.610046 | 1,197 | 8,760 | 4.283208 | 0.230576 | 0.016384 | 0.017164 | 0.019895 | 0.198167 | 0.135947 | 0.126585 | 0.119173 | 0.10747 | 0.094987 | 0 | 0.016929 | 0.238014 | 8,760 | 176 | 1,016 | 49.772727 | 0.751161 | 0.043721 | 0 | 0.047945 | 0 | 0 | 0.084877 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 1 | 0.061644 | false | 0 | 0.034247 | 0 | 0.184932 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2954ebbadb151e154d0e1126feffe35cd2ea997 | 1,624 | py | Python | resources/remediator/auditors/sqs.py | flatironhealth/aws-remediation-framework | 7b3e4016a891f25b7bee6d00ea003ca53d068f59 | [
"BSD-3-Clause"
] | 22 | 2020-08-09T18:55:31.000Z | 2022-02-28T16:45:40.000Z | resources/remediator/auditors/sqs.py | flatironhealth/aws-remediation-framework | 7b3e4016a891f25b7bee6d00ea003ca53d068f59 | [
"BSD-3-Clause"
] | null | null | null | resources/remediator/auditors/sqs.py | flatironhealth/aws-remediation-framework | 7b3e4016a891f25b7bee6d00ea003ca53d068f59 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T18:55:32.000Z | 2022-02-06T01:22:27.000Z | import json
from shared import get_session_for_account, send_notification
from policyuniverse.policy import Policy
def audit(resource, remediate=False):
is_compliant = True
if resource["type"] != "sqs":
raise Exception(
"Mismatched type. Expected {} but received {}".format(
... | 31.230769 | 81 | 0.654557 | 187 | 1,624 | 5.524064 | 0.385027 | 0.081317 | 0.049371 | 0.038722 | 0.127783 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00081 | 0.240148 | 1,624 | 51 | 82 | 31.843137 | 0.836305 | 0.105911 | 0 | 0.085714 | 0 | 0 | 0.124481 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.257143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e296b8a138c6904e40bf83e5eccd0c8d2850c80f | 1,456 | py | Python | weblogic/server/set_server_datasource.py | codejsha/infrastructure | 01ff58fea0a7980fce30e37cb02a7c1217c46d9f | [
"Apache-2.0"
] | 4 | 2021-02-13T03:39:38.000Z | 2022-01-30T19:41:43.000Z | weblogic/server/set_server_datasource.py | codejsha/infrastructure | 01ff58fea0a7980fce30e37cb02a7c1217c46d9f | [
"Apache-2.0"
] | null | null | null | weblogic/server/set_server_datasource.py | codejsha/infrastructure | 01ff58fea0a7980fce30e37cb02a7c1217c46d9f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
log_dir = os.environ['LOG_DIR']
admin_server_listen_address = os.environ['ADMIN_SERVER_LISTEN_ADDRESS']
admin_server_listen_port = os.environ['ADMIN_SERVER_LISTEN_PORT']
admin_username = os.environ['ADMIN_USERNAME']
admin_password = os.environ['ADMIN_PASSWORD']
managed_server_name = os.environ[... | 32.355556 | 105 | 0.659341 | 158 | 1,456 | 5.651899 | 0.367089 | 0.12318 | 0.114222 | 0.080627 | 0.337066 | 0.264278 | 0.264278 | 0.100784 | 0 | 0 | 0 | 0.006966 | 0.112637 | 1,456 | 44 | 106 | 33.090909 | 0.684211 | 0.033654 | 0 | 0 | 0 | 0 | 0.2 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0 | 0 | 0.037037 | 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 |
e29880ec1efc95ca4e89e2106e4bacc5bd3b0b56 | 6,812 | py | Python | tools/plot_tests.py | line/ns3-rmcat | b9f59f3c3eebe018e3f80c81c34b052625e75d26 | [
"Apache-2.0"
] | 1 | 2019-05-03T06:45:37.000Z | 2019-05-03T06:45:37.000Z | tools/plot_tests.py | line/ns3-rmcat | b9f59f3c3eebe018e3f80c81c34b052625e75d26 | [
"Apache-2.0"
] | 1 | 2019-09-27T05:49:45.000Z | 2019-09-27T05:49:45.000Z | tools/plot_tests.py | line/ns3-rmcat | b9f59f3c3eebe018e3f80c81c34b052625e75d26 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
###############################################################################
# Copyright 2016-2017 Cisco Systems, Inc. #
# #
# Licensed under the Apache License, Version 2.0 (the "Licen... | 40.790419 | 96 | 0.504551 | 914 | 6,812 | 3.678337 | 0.306346 | 0.033314 | 0.024985 | 0.039262 | 0.3953 | 0.387269 | 0.340869 | 0.328971 | 0.320048 | 0.262939 | 0 | 0.06541 | 0.322225 | 6,812 | 166 | 97 | 41.036145 | 0.662768 | 0.279507 | 0 | 0.151261 | 0 | 0 | 0.075043 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0 | null | null | 0 | 0.033613 | null | null | 0.016807 | 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 |
e29e7ecb712990ee6aef21fed7f31d73c2ea3c7b | 2,129 | py | Python | test/test_SchemaGenerator.py | elyashiv3839/openapi-schema-generator | 2bb05f88529c9d1f269896d254222ae2bf871b3c | [
"MIT"
] | null | null | null | test/test_SchemaGenerator.py | elyashiv3839/openapi-schema-generator | 2bb05f88529c9d1f269896d254222ae2bf871b3c | [
"MIT"
] | null | null | null | test/test_SchemaGenerator.py | elyashiv3839/openapi-schema-generator | 2bb05f88529c9d1f269896d254222ae2bf871b3c | [
"MIT"
] | null | null | null | from openapi_schema_generator import OpenApiSchemaGenerator
from compare_objects import compare_objects
import json
import yaml
# **************** Globals ***************** #
base_path = "test/Examples"
def get_expected_and_gen(file_name, file_type='json'):
src_path = f"{base_path}/src/{file_name}.{file_type}"
... | 31.776119 | 120 | 0.686238 | 255 | 2,129 | 5.313725 | 0.203922 | 0.134317 | 0.206642 | 0.100369 | 0.642066 | 0.62583 | 0.584502 | 0.487085 | 0.409594 | 0.409594 | 0 | 0 | 0.136684 | 2,129 | 66 | 121 | 32.257576 | 0.737214 | 0.387506 | 0 | 0.153846 | 0 | 0 | 0.118153 | 0.06964 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.192308 | false | 0 | 0.153846 | 0 | 0.423077 | 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 |
e29eb8e139d143cf0c7be5f25c4de89cb6f09795 | 3,656 | py | Python | twitter_virtual/utils.py | juuuuuulian/twitter-virtual | 2a5eece80f6f832aa8a8d2355ed61eabd41d5126 | [
"MIT"
] | null | null | null | twitter_virtual/utils.py | juuuuuulian/twitter-virtual | 2a5eece80f6f832aa8a8d2355ed61eabd41d5126 | [
"MIT"
] | null | null | null | twitter_virtual/utils.py | juuuuuulian/twitter-virtual | 2a5eece80f6f832aa8a8d2355ed61eabd41d5126 | [
"MIT"
] | null | null | null | """Utility functions used in various views."""
import datetime
from .database import db
from .models import AppUse
from flask import current_app, request, session, render_template, make_response
from .twitter import TwitterClient
from .recaptcha import RecaptchaClient
from pytz import UTC
import re
twitter_username_re... | 32.353982 | 111 | 0.727024 | 547 | 3,656 | 4.599634 | 0.254113 | 0.066773 | 0.09539 | 0.020668 | 0.257154 | 0.227345 | 0.158188 | 0.073927 | 0.052464 | 0.052464 | 0 | 0.009667 | 0.179431 | 3,656 | 112 | 112 | 32.642857 | 0.829 | 0.285832 | 0 | 0.15873 | 0 | 0 | 0.039858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.126984 | 0 | 0.587302 | 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 |
e2a282fc629bff207443cfa34af4a68243c97ac7 | 1,215 | py | Python | datawriters/sqlitewriter.py | jamesmarlowe/Python-Data-Writers | dc437b8ba4fe9ff4ac2ac7561051665cd15bd238 | [
"BSD-2-Clause"
] | 4 | 2016-06-06T19:27:16.000Z | 2021-10-05T06:51:48.000Z | datawriters/sqlitewriter.py | jamesmarlowe/Python-Data-Writers | dc437b8ba4fe9ff4ac2ac7561051665cd15bd238 | [
"BSD-2-Clause"
] | null | null | null | datawriters/sqlitewriter.py | jamesmarlowe/Python-Data-Writers | dc437b8ba4fe9ff4ac2ac7561051665cd15bd238 | [
"BSD-2-Clause"
] | null | null | null | import sqlite3
class SqliteWriter:
def __init__(self, *args, **kwargs):
if 'database' in kwargs:
self.db_sqlite3 = kwargs['database']
else:
print 'missing database argument, using data.sqlite'
self.db_sqlite3 = 'data.sqlite'
if 'table' in kwargs:
... | 35.735294 | 97 | 0.547325 | 144 | 1,215 | 4.451389 | 0.368056 | 0.065523 | 0.068643 | 0.043682 | 0.106084 | 0.071763 | 0.071763 | 0.071763 | 0 | 0 | 0 | 0.006002 | 0.314403 | 1,215 | 33 | 98 | 36.818182 | 0.763505 | 0 | 0 | 0.074074 | 0 | 0 | 0.209054 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.074074 | 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 |
e2a5d249276a9e02273110ac17dd1e8714428663 | 4,106 | py | Python | tests/test_canifier.py | M-Shadow/robotpy-ctre | 050cc6ad2f7cf622da88671cefeabf84e3a08745 | [
"Apache-2.0"
] | null | null | null | tests/test_canifier.py | M-Shadow/robotpy-ctre | 050cc6ad2f7cf622da88671cefeabf84e3a08745 | [
"Apache-2.0"
] | null | null | null | tests/test_canifier.py | M-Shadow/robotpy-ctre | 050cc6ad2f7cf622da88671cefeabf84e3a08745 | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest.mock import MagicMock
@pytest.fixture(scope="function")
def canifier(ctre):
return ctre.CANifier(1)
@pytest.fixture(scope="function")
def cdata(canifier, hal_data):
return hal_data["CAN"][1]
def test_canifier_init(ctre, hal_data):
assert 1 not in hal_data["CAN"]
ctre.CA... | 29.970803 | 87 | 0.767414 | 476 | 4,106 | 6.453782 | 0.210084 | 0.05013 | 0.107422 | 0.054688 | 0.287435 | 0.213216 | 0.194336 | 0.194336 | 0.06901 | 0 | 0 | 0.023405 | 0.125913 | 4,106 | 136 | 88 | 30.191176 | 0.832544 | 0.049683 | 0 | 0.182927 | 0 | 0 | 0.044159 | 0.010783 | 0 | 0 | 0.004108 | 0.007353 | 0.243902 | 1 | 0.292683 | false | 0 | 0.02439 | 0.02439 | 0.341463 | 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 |
e2a652139ee7ecf346edebaf161c51932b06c618 | 539 | py | Python | temparature.py | Shrijan21/hacktoberfest2021-2 | fc51f782999ba7aeaed7382b054ce08ea21795f0 | [
"CC0-1.0"
] | null | null | null | temparature.py | Shrijan21/hacktoberfest2021-2 | fc51f782999ba7aeaed7382b054ce08ea21795f0 | [
"CC0-1.0"
] | null | null | null | temparature.py | Shrijan21/hacktoberfest2021-2 | fc51f782999ba7aeaed7382b054ce08ea21795f0 | [
"CC0-1.0"
] | null | null | null | print("Choose from below options:")
print("1.Celsius to Fahrenheit.")
print("2.Fahrenheit to Celsius.")
o=int(input("option(1/2):"))
if(o==1):
c=float(input("Temperature in Celsius:"))
f=1.8*(c)+32.0
f=round(f,1) #temperature in fahrenheit precise to 1 decimal place
print("Temperature in Fahrenheit:",f)... | 33.6875 | 70 | 0.666048 | 90 | 539 | 3.988889 | 0.333333 | 0.21727 | 0.167131 | 0.128134 | 0.222841 | 0.222841 | 0.222841 | 0.222841 | 0 | 0 | 0 | 0.046256 | 0.157699 | 539 | 16 | 71 | 33.6875 | 0.744493 | 0.187384 | 0 | 0 | 0 | 0 | 0.453089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
e2a8d6fb58c5b8b7405b88cfe67dbafb715488d9 | 2,183 | py | Python | quantum_teleportation.py | RafeyIqbalRahman/Quantum-Teleportation | 666bce949c5a87f6f150000a19cdcbb75322eec9 | [
"MIT"
] | 1 | 2020-04-14T18:40:51.000Z | 2020-04-14T18:40:51.000Z | quantum_teleportation.py | RafeyIqbalRahman/Quantum-Teleportation | 666bce949c5a87f6f150000a19cdcbb75322eec9 | [
"MIT"
] | null | null | null | quantum_teleportation.py | RafeyIqbalRahman/Quantum-Teleportation | 666bce949c5a87f6f150000a19cdcbb75322eec9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""quantum_teleportation
"""
# Commented out IPython magic to ensure Python compatibility.
import numpy as np
!pip install qiskit
from qiskit import *
# %matplotlib inline
# Create a Quantum Circuit acting on a quantum register of five qubits
circ = QuantumCircuit(5)
# Add an H gate on qubit ... | 25.383721 | 70 | 0.756757 | 355 | 2,183 | 4.588732 | 0.315493 | 0.022099 | 0.025783 | 0.018416 | 0.357274 | 0.316759 | 0.22345 | 0.123389 | 0.1062 | 0.077348 | 0 | 0.019011 | 0.156665 | 2,183 | 85 | 71 | 25.682353 | 0.865834 | 0.520385 | 0 | 0.171429 | 0 | 0 | 0.052525 | 0.021212 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.085714 | 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 |
e2a905c5da2955b4271663f4ddbf33fa04656918 | 2,059 | py | Python | python/grid_search.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 114 | 2017-06-14T07:05:31.000Z | 2021-06-13T05:30:49.000Z | python/grid_search.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 7 | 2017-11-17T08:16:55.000Z | 2019-10-05T00:09:20.000Z | python/grid_search.py | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 40 | 2017-06-15T03:21:10.000Z | 2021-10-31T15:03:30.000Z | import sys
import os
import json
import copy
import multiprocessing
if len(sys.argv) < 5:
print "Usage: python grid_search.py [model_template_file] [parameters_config] [process_number] [run_dir]"
model_tpl_file = sys.argv[1]
param_conf_file = sys.argv[2]
proc_num = int(sys.argv[3])
run_dir = sys.argv[4]
if not o... | 28.597222 | 109 | 0.660029 | 326 | 2,059 | 3.944785 | 0.303681 | 0.032659 | 0.037325 | 0.049767 | 0.099533 | 0.085537 | 0.085537 | 0.043546 | 0 | 0 | 0 | 0.011398 | 0.190384 | 2,059 | 71 | 110 | 29 | 0.760048 | 0.003885 | 0 | 0 | 0 | 0 | 0.120235 | 0.036657 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.118644 | 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 |
e2ad1dc1acb8bcb1ae01592bb3b6455aac3b0358 | 435 | py | Python | src/exams/migrations/0014_examuserrelations_useranswer.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | null | null | null | src/exams/migrations/0014_examuserrelations_useranswer.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | 8 | 2020-06-25T22:16:20.000Z | 2022-03-12T00:39:27.000Z | src/exams/migrations/0014_examuserrelations_useranswer.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-13 12:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exams', '0013_auto_20200612_1959'),
]
operations = [
migrations.AddField(
model_name='examuserrelations',
name='user... | 22.894737 | 88 | 0.622989 | 48 | 435 | 5.541667 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105919 | 0.262069 | 435 | 18 | 89 | 24.166667 | 0.722741 | 0.103448 | 0 | 0 | 1 | 0 | 0.141753 | 0.059278 | 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 |
e2b0987063f652e3d12d27f42e0dee22f1ee394f | 3,965 | py | Python | tools/c7n_azure/tests/test_app_service_plan.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 2 | 2020-01-20T19:46:28.000Z | 2020-08-19T14:20:27.000Z | tools/c7n_azure/tests/test_app_service_plan.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 1 | 2018-06-05T20:40:02.000Z | 2018-06-05T21:15:51.000Z | tools/c7n_azure/tests/test_app_service_plan.py | anastasiia-zolochevska/cloud-custodian | f25315a01bec808c16ab0e2d433d6151cf5769e4 | [
"Apache-2.0"
] | 1 | 2021-06-09T21:22:02.000Z | 2021-06-09T21:22:02.000Z | # Copyright 2015-2018 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 33.888889 | 82 | 0.505675 | 391 | 3,965 | 5.015345 | 0.386189 | 0.030597 | 0.022947 | 0.038246 | 0.54921 | 0.54921 | 0.477817 | 0.477817 | 0.477817 | 0.477817 | 0 | 0.01868 | 0.365448 | 3,965 | 116 | 83 | 34.181034 | 0.760731 | 0.141992 | 0 | 0.752809 | 0 | 0 | 0.199823 | 0.034534 | 0 | 0 | 0 | 0 | 0.05618 | 1 | 0.05618 | false | 0 | 0.05618 | 0 | 0.123596 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c36d8453977924cf9f0193e3e95baf45bc705e1 | 490 | py | Python | extutils/url.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 5 | 2020-08-26T20:12:00.000Z | 2020-12-11T16:39:22.000Z | extutils/url.py | RaenonX/Jelly-Bot | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 234 | 2019-12-14T03:45:19.000Z | 2020-08-26T18:55:19.000Z | extutils/url.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 2 | 2019-10-23T15:21:15.000Z | 2020-05-22T09:35:55.000Z | """Utilities related to URL strings."""
from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
__all__ = ("is_valid_url",)
def is_valid_url(url: str) -> bool:
"""
Check if ``url`` is a valid URL.
This calls the Django validator to validate the URL.
:param... | 21.304348 | 56 | 0.669388 | 65 | 490 | 4.923077 | 0.538462 | 0.065625 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238776 | 490 | 22 | 57 | 22.272727 | 0.857909 | 0.371429 | 0 | 0 | 0 | 0 | 0.043636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 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 |
2c3e781c75df9933e569b62ab56149157403d813 | 227 | py | Python | exercises/sorteando numeros.py | ropoko/exercises-python | 524c569f9fd8088e6860f8e1ad87e4998dbb1226 | [
"MIT"
] | null | null | null | exercises/sorteando numeros.py | ropoko/exercises-python | 524c569f9fd8088e6860f8e1ad87e4998dbb1226 | [
"MIT"
] | null | null | null | exercises/sorteando numeros.py | ropoko/exercises-python | 524c569f9fd8088e6860f8e1ad87e4998dbb1226 | [
"MIT"
] | null | null | null | #sorteando numeros
import random
user = input('Number: ')
x = random.randrange(0, 1000)
y = str(x)
print('You: ' + user)
print('Machine: ' + y)
if x > int(user):
print('machine wins! :D')
else:
print('You wins! :D')
| 15.133333 | 29 | 0.60793 | 34 | 227 | 4.058824 | 0.617647 | 0.115942 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027473 | 0.198238 | 227 | 14 | 30 | 16.214286 | 0.730769 | 0.07489 | 0 | 0 | 0 | 0 | 0.239234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.4 | 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 |
2c3f94d93d48d89746f3bd4beedd3da8efc2a943 | 1,088 | py | Python | tunobase/mailer/models.py | unomena/tunobase-core | fd24e378c87407131805fa56ade8669fceec8dfa | [
"BSD-3-Clause"
] | null | null | null | tunobase/mailer/models.py | unomena/tunobase-core | fd24e378c87407131805fa56ade8669fceec8dfa | [
"BSD-3-Clause"
] | null | null | null | tunobase/mailer/models.py | unomena/tunobase-core | fd24e378c87407131805fa56ade8669fceec8dfa | [
"BSD-3-Clause"
] | null | null | null | """
MAILER APP
This module describes the data layout for the mailer app.
Classes:
OutboundEmail
Functions:
n/a
Created on 22 Oct 2013
@author: michael
"""
from django.db import models
from django.conf import settings
from django.contrib.sites.models import Site
from redactor.fields import RedactorTextFie... | 22.204082 | 63 | 0.688419 | 134 | 1,088 | 5.470149 | 0.574627 | 0.070941 | 0.035471 | 0.046385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010539 | 0.215074 | 1,088 | 48 | 64 | 22.666667 | 0.847775 | 0.252757 | 0 | 0 | 0 | 0 | 0.046895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.714286 | 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 |
2c438ae27d3f17a72b4ec7506a3d47b6510e5e1a | 544 | py | Python | scripts/perf.py | Lanph3re/nonogram-solver | 07dee17f8ff9e8bc36b763e1565a479cdef3d61c | [
"MIT"
] | null | null | null | scripts/perf.py | Lanph3re/nonogram-solver | 07dee17f8ff9e8bc36b763e1565a479cdef3d61c | [
"MIT"
] | null | null | null | scripts/perf.py | Lanph3re/nonogram-solver | 07dee17f8ff9e8bc36b763e1565a479cdef3d61c | [
"MIT"
] | null | null | null | from os import path
import sys
from pstats import Stats
import cProfile
import json
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
from src import genetic_algorithm_solver
def perf_test():
puzzle = json.loads(open('../puzzles/qr.json').read())
solver = genetic_algorithm_solver.GeneticAl... | 20.923077 | 72 | 0.772059 | 72 | 544 | 5.638889 | 0.541667 | 0.054187 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004158 | 0.115809 | 544 | 25 | 73 | 21.76 | 0.839917 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2c45cc84a878b86c53b1754ad6d9c114ba16bf0f | 459 | py | Python | tfword2vec/test_word2Vec.py | oktopac/tfword2vec | 8b1bbeb36747a0f7d458906804bca2af95e2773e | [
"Apache-2.0"
] | null | null | null | tfword2vec/test_word2Vec.py | oktopac/tfword2vec | 8b1bbeb36747a0f7d458906804bca2af95e2773e | [
"Apache-2.0"
] | null | null | null | tfword2vec/test_word2Vec.py | oktopac/tfword2vec | 8b1bbeb36747a0f7d458906804bca2af95e2773e | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
import word2vec
import tensorflow as tf
class TestWord2Vec(TestCase):
def __init__(self, *args, **kwargs):
super(TestWord2Vec, self).__init__(*args, **kwargs)
self.LEN_TRAINING = 100
self.vocab = [str(i) for i in range(self.LEN_TRAINING)]
def test_create_... | 25.5 | 63 | 0.673203 | 59 | 459 | 5.016949 | 0.542373 | 0.067568 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027701 | 0.213508 | 459 | 17 | 64 | 27 | 0.792244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | 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 |
2c55befa47902d2bc5c8026390ddc7ff339f1dda | 936 | py | Python | api/main.py | Honeson/deploy_ml_fastApi | a9b9f4a18e7e76a9e503b2c1c8195d0e398bffb4 | [
"MIT"
] | null | null | null | api/main.py | Honeson/deploy_ml_fastApi | a9b9f4a18e7e76a9e503b2c1c8195d0e398bffb4 | [
"MIT"
] | null | null | null | api/main.py | Honeson/deploy_ml_fastApi | a9b9f4a18e7e76a9e503b2c1c8195d0e398bffb4 | [
"MIT"
] | null | null | null | from typing import List
from fastapi import Depends, FastAPI
import numpy as np
from pydantic import BaseModel, ValidationError, validator
from .ml.model import get_model, Model, n_features
app = FastAPI()
class Predictrequest(BaseModel):
data: List[List[float]]
@validator('data')
def check_dimentiona... | 29.25 | 142 | 0.726496 | 128 | 936 | 5.132813 | 0.429688 | 0.063927 | 0.060883 | 0.039574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182692 | 936 | 32 | 143 | 29.25 | 0.858824 | 0 | 0 | 0 | 0 | 0.045455 | 0.125934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2c57f2a0d17ba16596ad6214927d25cc9d2a4615 | 932 | py | Python | config/init.py | takashabe/isucon3-qual | 9b35f0299b76f38960d3594fd05c8467dab8dbe9 | [
"MIT"
] | null | null | null | config/init.py | takashabe/isucon3-qual | 9b35f0299b76f38960d3594fd05c8467dab8dbe9 | [
"MIT"
] | 1 | 2015-09-14T01:25:22.000Z | 2015-09-14T01:25:22.000Z | config/init.py | takashabe/isucon3-qual | 9b35f0299b76f38960d3594fd05c8467dab8dbe9 | [
"MIT"
] | null | null | null | #!/home/isucon/local/python-3.3/bin/python
try:
import MySQLdb
from MySQLdb.cursors import DictCursor
except ImportError:
import pymysql as MySQLdb
from pymysql.cursors import DictCursor
def connect_db():
host = 'localhost'
port = 3306
username = 'isucon'
password = ''
dbname = 'isucon'
db = MyS... | 27.411765 | 133 | 0.69206 | 129 | 932 | 4.968992 | 0.472868 | 0.062403 | 0.074883 | 0.062403 | 0.078003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014323 | 0.175966 | 932 | 33 | 134 | 28.242424 | 0.820313 | 0.043991 | 0 | 0 | 0 | 0 | 0.250562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.074074 | 0.185185 | 0 | 0.296296 | 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 |
2c5f1ffaf85738e5c58699c7ad0bdd375b3999bb | 364 | py | Python | radical/utils/logger/filehandler.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 13 | 2015-02-19T17:17:10.000Z | 2021-12-22T06:48:02.000Z | radical/utils/logger/filehandler.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 85 | 2015-01-06T15:01:51.000Z | 2018-11-29T09:03:35.000Z | radical/utils/logger/filehandler.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 22 | 2015-06-09T12:08:29.000Z | 2018-11-20T10:07:01.000Z |
__author__ = "Radical.Utils Development Team (Andre Merzky, Ole Weidner)"
__copyright__ = "Copyright 2013, RADICAL@Rutgers"
__license__ = "MIT"
''' Provides a file handler for the logging system.
'''
from logging import DEBUG, getLogger, Filter, FileHandler as LFileHandler
class FileHandler(LFileHandler):
... | 20.222222 | 76 | 0.722527 | 40 | 364 | 6.275 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.181319 | 364 | 17 | 77 | 21.411765 | 0.828859 | 0.057692 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2c688f666e47700c46c16cb9d63bb465e4ae8ff0 | 1,587 | py | Python | ch7fe1.py | jemcghee3/60001 | 7e2e085f88c5254987e6e69b3c42fcb10b9d25fe | [
"MIT"
] | null | null | null | ch7fe1.py | jemcghee3/60001 | 7e2e085f88c5254987e6e69b3c42fcb10b9d25fe | [
"MIT"
] | null | null | null | ch7fe1.py | jemcghee3/60001 | 7e2e085f88c5254987e6e69b3c42fcb10b9d25fe | [
"MIT"
] | null | null | null | # Introduction to Computation and Programming Using Python (2021)
# Chapter 7, Finger Exercise 1
"""Finger exercise: Write a function that meets the specification
"""
import calendar
def shopping_days(year):
"""year a number >= 1941
returns the number of days between U.S. Thanksgiving
and Christmas in yea... | 33.765957 | 105 | 0.722117 | 219 | 1,587 | 5.109589 | 0.39726 | 0.096515 | 0.02681 | 0.02681 | 0.161752 | 0.161752 | 0.062556 | 0.062556 | 0.062556 | 0.062556 | 0 | 0.033019 | 0.198488 | 1,587 | 47 | 106 | 33.765957 | 0.846698 | 0.410838 | 0 | 0.090909 | 0 | 0 | 0.164414 | 0.024775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.409091 | 0.090909 | 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 |
2c6a18b246ee8c03adf27d38fbac11ed958418b8 | 452 | py | Python | corehq/warehouse/migrations/0014_batch_dag_slug.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | corehq/warehouse/migrations/0014_batch_dag_slug.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | corehq/warehouse/migrations/0014_batch_dag_slug.py | dborowiecki/commcare-hq | f2f4fa67faec09040a98502f5657444075b63f2e | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 1.11.8 on 2018-01-09 11:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('warehouse', '0013_auto_incrementing_batch_id'),
]
operations = [
migrations.AddField(
model_name='batch',
name='dag... | 22.6 | 70 | 0.612832 | 50 | 452 | 5.36 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070336 | 0.276549 | 452 | 19 | 71 | 23.789474 | 0.749235 | 0.10177 | 0 | 0 | 1 | 0 | 0.148515 | 0.076733 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
2c709f319e8a3dd51ab77f442c5e8d6fb71d8764 | 1,899 | py | Python | ComplexCAS/NumberTypes.py | SymmetricChaos/FiniteFields | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | [
"MIT"
] | 1 | 2021-08-22T15:03:59.000Z | 2021-08-22T15:03:59.000Z | ComplexCAS/NumberTypes.py | SymmetricChaos/NumberTheory | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | [
"MIT"
] | null | null | null | ComplexCAS/NumberTypes.py | SymmetricChaos/NumberTheory | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | [
"MIT"
] | null | null | null | class Symbol:
def __init__(self,S,sign=1):
if type(S) != str:
raise TypeError("Symbols must be strings")
if S not in "abcdefghijklmnopqrstuvwxyz":
raise ValueError("Symbols must be lowercase letters")
self.S = S
self.sign = sign
def __str__(self):
... | 16.230769 | 65 | 0.45287 | 221 | 1,899 | 3.656109 | 0.235294 | 0.037129 | 0.068069 | 0.094059 | 0.386139 | 0.386139 | 0.386139 | 0.386139 | 0.386139 | 0.386139 | 0 | 0.003552 | 0.407056 | 1,899 | 117 | 66 | 16.230769 | 0.714032 | 0.195893 | 0 | 0.428571 | 0 | 0 | 0.095498 | 0.017735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0.040816 | 0 | 0.020408 | 0.469388 | 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 |
2c78e2c00b0d5c0323fd933d3af310fe9233cc5c | 7,105 | py | Python | src/python/Problem084.py | mchrzanowski/ProjectEuler | 06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5 | [
"MIT"
] | null | null | null | src/python/Problem084.py | mchrzanowski/ProjectEuler | 06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5 | [
"MIT"
] | null | null | null | src/python/Problem084.py | mchrzanowski/ProjectEuler | 06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5 | [
"MIT"
] | null | null | null | '''
Created on Apr 12, 2012
@author: mchrzanowski
* USE PYPY ONLY*
'''
from collections import deque
from random import shuffle, uniform
from time import time
def roll(sides):
''' return an integer of [0, sides - 1] + 1 '''
return int(uniform(0, sides)) + 1
def getClosestNextLocation(currentPosition, locat... | 33.200935 | 124 | 0.621534 | 712 | 7,105 | 6.154494 | 0.297753 | 0.068462 | 0.059562 | 0.008215 | 0.204016 | 0.145596 | 0.145596 | 0.130078 | 0.11958 | 0.11958 | 0 | 0.02578 | 0.273892 | 7,105 | 214 | 125 | 33.200935 | 0.823609 | 0.076707 | 0 | 0.244755 | 0 | 0 | 0.038662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034965 | null | null | 0.020979 | 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 |
2c7abc547e84804974d7c5f93ba720d2c7e3aefd | 9,533 | py | Python | gorden_crawler/settings.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 2 | 2019-02-22T13:51:08.000Z | 2020-08-03T14:01:30.000Z | gorden_crawler/settings.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | null | null | null | gorden_crawler/settings.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 1 | 2020-08-03T14:01:32.000Z | 2020-08-03T14:01:32.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
import os
from os.path import join, dirname
from dotenv import load_dotenv
from redis.sentinel import Sentinel
dotenv_path = join(dirname(__file__), '.projectenv')
if os.path.isfile(dotenv_path):
load_dotenv(dotenv_path)
else:
dote... | 41.811404 | 132 | 0.780657 | 1,201 | 9,533 | 5.954205 | 0.304746 | 0.032723 | 0.04363 | 0.023773 | 0.30709 | 0.250175 | 0.20165 | 0.155782 | 0.087261 | 0.078311 | 0 | 0.02213 | 0.113605 | 9,533 | 227 | 133 | 41.995595 | 0.824142 | 0.485472 | 0 | 0.076923 | 0 | 0 | 0.382277 | 0.244718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064103 | 0.076923 | 0 | 0.076923 | 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 |
2c7cdfb80b65f4656a7225ae6fde6a2c540e33f5 | 3,963 | py | Python | resumablebottle/resumable.py | ashwoods/resumable-bottle | 4badec063365edc2543a53561b8dbcb59fac126f | [
"Unlicense"
] | 1 | 2015-04-22T21:21:10.000Z | 2015-04-22T21:21:10.000Z | resumablebottle/resumable.py | ashwoods/resumable-bottle | 4badec063365edc2543a53561b8dbcb59fac126f | [
"Unlicense"
] | null | null | null | resumablebottle/resumable.py | ashwoods/resumable-bottle | 4badec063365edc2543a53561b8dbcb59fac126f | [
"Unlicense"
] | null | null | null | from gevent import monkey; monkey.patch_all()
from bottle import Bottle, run, template, response, get, post, request, route, debug, static_file
from file import ResumableFile
from json import dumps
app = Bottle()
@app.get('/upload')
def check_chunk():
"""Handles the resumable.js GET request. In the form of:
... | 32.219512 | 106 | 0.571032 | 408 | 3,963 | 5.406863 | 0.316176 | 0.05893 | 0.016319 | 0.031278 | 0.508613 | 0.407072 | 0.407072 | 0.388033 | 0.337715 | 0.250227 | 0 | 0.081541 | 0.272773 | 3,963 | 122 | 107 | 32.483607 | 0.6839 | 0.017159 | 0 | 0.473118 | 0 | 0 | 0.299717 | 0.11728 | 0 | 0 | 0 | 0.008197 | 0 | 0 | null | null | 0.010753 | 0.043011 | null | null | 0.010753 | 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 |
2c7d326847581da7b8be96ae0a7fc0bd8f11a35e | 2,723 | py | Python | NintendoOne/sales/models.py | Hkakashi/nintendo-one | cceaa52672a1805d9410765cee7c4696c5ade9df | [
"MIT"
] | 2 | 2021-04-16T05:28:10.000Z | 2021-04-16T05:28:16.000Z | NintendoOne/sales/models.py | Hkakashi/nintendo-one | cceaa52672a1805d9410765cee7c4696c5ade9df | [
"MIT"
] | null | null | null | NintendoOne/sales/models.py | Hkakashi/nintendo-one | cceaa52672a1805d9410765cee7c4696c5ade9df | [
"MIT"
] | null | null | null | from django.db import models
from djmoney.models.fields import MoneyField
import urllib, os
from urllib.parse import urlparse
# Create your models here.
class Game(models.Model):
'''
Stores game information such as name, description, release date, image etc...
'''
name = models.CharField(max_length=40... | 37.30137 | 93 | 0.674991 | 338 | 2,723 | 5.307692 | 0.328402 | 0.044593 | 0.053512 | 0.06689 | 0.527871 | 0.498885 | 0.498885 | 0.498885 | 0.414716 | 0.361204 | 0 | 0.008866 | 0.213 | 2,723 | 72 | 94 | 37.819444 | 0.828278 | 0.139552 | 0 | 0.363636 | 0 | 0 | 0.054246 | 0.034682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 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 |
2c8aa874d52b7a9ba3f43224dd775e9fa2fc151b | 588 | py | Python | setup.py | JohnCHarrington/valohai-cli | 8703538d43331b97f5dd8339047a6b84b97aed79 | [
"MIT"
] | null | null | null | setup.py | JohnCHarrington/valohai-cli | 8703538d43331b97f5dd8339047a6b84b97aed79 | [
"MIT"
] | null | null | null | setup.py | JohnCHarrington/valohai-cli | 8703538d43331b97f5dd8339047a6b84b97aed79 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
from valohai_cli import __version__
setup(
name='valohai-cli',
version=__version__,
entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']},
author='Valohai',
author_email='hait@valohai.com',
license='MIT',
install_requires=[
'click>... | 25.565217 | 65 | 0.620748 | 73 | 588 | 4.753425 | 0.547945 | 0.115274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03617 | 0.20068 | 588 | 22 | 66 | 26.727273 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0.355442 | 0.158163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 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 |
2c8f9a0e146624e5fa52f23ebb3d6a6f39251617 | 1,098 | py | Python | Students/migrations/0001_initial.py | Benjamin-yang/Django_001 | 8b28b837f7a29a268e2492b3f69597c0cb6fb9b6 | [
"Apache-2.0"
] | null | null | null | Students/migrations/0001_initial.py | Benjamin-yang/Django_001 | 8b28b837f7a29a268e2492b3f69597c0cb6fb9b6 | [
"Apache-2.0"
] | null | null | null | Students/migrations/0001_initial.py | Benjamin-yang/Django_001 | 8b28b837f7a29a268e2492b3f69597c0cb6fb9b6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-21 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Class',
fields=[
('id', models.AutoField(au... | 32.294118 | 114 | 0.555556 | 111 | 1,098 | 5.351351 | 0.477477 | 0.090909 | 0.126263 | 0.077441 | 0.363636 | 0.265993 | 0.265993 | 0.265993 | 0.265993 | 0.265993 | 0 | 0.034076 | 0.3051 | 1,098 | 33 | 115 | 33.272727 | 0.74443 | 0.040984 | 0 | 0.384615 | 1 | 0 | 0.070409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.192308 | 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 |
2c9165ba004fecb6ad68d9f203ddda4835eede52 | 4,469 | py | Python | report.py | gamesbook/gamereporter | 938340fa5ffacf3040ea8c0fd022c27af8fea87d | [
"MIT"
] | 2 | 2016-06-20T18:23:18.000Z | 2016-07-13T12:39:13.000Z | report.py | gamesbook/gamereporter | 938340fa5ffacf3040ea8c0fd022c27af8fea87d | [
"MIT"
] | 1 | 2016-06-20T18:24:42.000Z | 2016-06-21T18:26:40.000Z | report.py | gamesbook/gamereporter | 938340fa5ffacf3040ea8c0fd022c27af8fea87d | [
"MIT"
] | 2 | 2021-12-22T08:29:31.000Z | 2022-01-10T09:43:52.000Z | #!/usr/bin/env python
"""
Author: Derek Hohls
Date: June 2016
Purpose:
Demonstrate use of GameReportBuilder module
"""
import argparse
import sys
from bgg import bgg_games
from boardgamegeek.exceptions import BoardGameGeekAPIError
from report_builder import GameReportBuilder
from dummy.game import get_games # dumm... | 34.643411 | 81 | 0.554934 | 528 | 4,469 | 4.617424 | 0.361742 | 0.036916 | 0.069729 | 0.02338 | 0.068499 | 0.055783 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.334303 | 4,469 | 128 | 82 | 34.914063 | 0.808067 | 0.056165 | 0 | 0.222222 | 0 | 0 | 0.244908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.064815 | 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 |
2c924805d0695512470895bcdf1a176042dbb4f5 | 94,961 | py | Python | test/gen_casadi_test.py | PeterRabbit95/pymoca | e10d7b14538062a144026be2c6fa3e0d1a8cfad3 | [
"BSD-3-Clause"
] | null | null | null | test/gen_casadi_test.py | PeterRabbit95/pymoca | e10d7b14538062a144026be2c6fa3e0d1a8cfad3 | [
"BSD-3-Clause"
] | null | null | null | test/gen_casadi_test.py | PeterRabbit95/pymoca | e10d7b14538062a144026be2c6fa3e0d1a8cfad3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Modelica parse Tree to AST tree.
"""
from __future__ import print_function, absolute_import, division, unicode_literals
import os
import glob
import unittest
import itertools
import casadi as ca
import numpy as np
import pymoca.backends.casadi.generator as gen_casadi
from pymoca.backends.ca... | 37.638129 | 220 | 0.543634 | 13,080 | 94,961 | 3.713609 | 0.047706 | 0.082513 | 0.05505 | 0.03891 | 0.750566 | 0.701775 | 0.657265 | 0.62412 | 0.589801 | 0.565282 | 0 | 0.034752 | 0.319721 | 94,961 | 2,522 | 221 | 37.653053 | 0.717167 | 0.025137 | 0 | 0.555501 | 0 | 0.001982 | 0.139665 | 0.019232 | 0 | 0 | 0 | 0.000397 | 0.082755 | 1 | 0.043112 | false | 0.001982 | 0.005946 | 0.001487 | 0.054014 | 0.017344 | 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 |
2c931674851fd1119cf1dfada9664c784f8b2f8b | 999 | py | Python | tests/test_scores/test_bge_score.py | jcai117/causaldag | 94933db7086d21dad1f9d0ea64d538b0365c8add | [
"BSD-3-Clause"
] | 86 | 2019-02-17T18:23:36.000Z | 2022-03-24T14:28:35.000Z | tests/test_scores/test_bge_score.py | jcai117/causaldag | 94933db7086d21dad1f9d0ea64d538b0365c8add | [
"BSD-3-Clause"
] | 11 | 2019-11-22T05:35:27.000Z | 2022-02-26T07:28:05.000Z | tests/test_scores/test_bge_score.py | jcai117/causaldag | 94933db7086d21dad1f9d0ea64d538b0365c8add | [
"BSD-3-Clause"
] | 17 | 2019-03-28T16:46:00.000Z | 2022-01-31T19:22:12.000Z | from unittest import TestCase
import sys
sys.path.insert(1, "C:/Users/skarn/OneDrive/Documents/MIT/year_3/SuperUROP/causaldag")
import unittest
import numpy as np
import subprocess
import causaldag as cd
from causaldag.utils.scores import local_gaussian_bge_score, MemoizedDecomposableScore
from causaldag.utils.ci_tests... | 34.448276 | 86 | 0.731732 | 137 | 999 | 5.094891 | 0.437956 | 0.025788 | 0.047278 | 0.06447 | 0.094556 | 0.094556 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.163163 | 999 | 28 | 87 | 35.678571 | 0.830144 | 0.011011 | 0 | 0 | 0 | 0 | 0.172414 | 0.158215 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.434783 | 0.086957 | 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 |
2c960b610b0032e803bebc2b6f24b1eedaf589a1 | 2,289 | py | Python | util/util.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | 3 | 2016-03-27T00:21:46.000Z | 2018-06-01T09:20:57.000Z | util/util.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | util/util.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null |
from datetime import datetime
import time
import sys
#from callCount import FunctionCallCount
#@FunctionCallCount
def any(iterable):
"""
any()
Purpose: Returns true if any element in the iterable evaluates to true otherwise, return false
Parameters: iterable [type=list,tuple]
A... | 26.011364 | 101 | 0.619048 | 274 | 2,289 | 5.138686 | 0.350365 | 0.035511 | 0.036932 | 0.028409 | 0.12358 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0.003123 | 0.300568 | 2,289 | 87 | 102 | 26.310345 | 0.876327 | 0.048493 | 0 | 0 | 0 | 0 | 0.02451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.09375 | 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 |
2c9738b8362c8131acb8baedd8db3f2d72f9f7cc | 9,263 | py | Python | code/shared/analysis/centroid.py | amarallab/waldo | e38d23d9474a0bcb7a94e685545edb0115b12af4 | [
"MIT"
] | null | null | null | code/shared/analysis/centroid.py | amarallab/waldo | e38d23d9474a0bcb7a94e685545edb0115b12af4 | [
"MIT"
] | null | null | null | code/shared/analysis/centroid.py | amarallab/waldo | e38d23d9474a0bcb7a94e685545edb0115b12af4 | [
"MIT"
] | null | null | null | '''
Date:
Description:
'''
__author__ = 'peterwinter'
# standard imports
import os
import sys
import numpy as np
import scipy.interpolate as interpolate
import pandas as pd
# Path definitions
HERE = os.path.dirname(os.path.realpath(__file__))
SHARED_DIR = os.path.abspath(HERE + '/../shared/')
PROJECT_DIR = os.path.a... | 33.683636 | 142 | 0.64288 | 1,329 | 9,263 | 4.282919 | 0.208427 | 0.006676 | 0.014055 | 0.019677 | 0.29234 | 0.259663 | 0.237526 | 0.196065 | 0.159522 | 0.159522 | 0 | 0.020082 | 0.23664 | 9,263 | 274 | 143 | 33.806569 | 0.784896 | 0.088632 | 0 | 0.186207 | 0 | 0 | 0.043257 | 0.010973 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096552 | null | null | 0.027586 | 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 |
2ca86b3d6485799e711687cc000d240122eed0ec | 1,173 | py | Python | src/tools/searches.py | cowboysmall/rosalind | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | [
"MIT"
] | null | null | null | src/tools/searches.py | cowboysmall/rosalind | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | [
"MIT"
] | null | null | null | src/tools/searches.py | cowboysmall/rosalind | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | [
"MIT"
] | null | null | null |
'''
some other implementations:
recursive:
def binary_search(array, key, start, end):
if end < start:
return -1
else:
midpoint = start + (end - start) // 2
if key < array[midpoint]:
return binary_search(array, key, start, midpoint - 1... | 20.578947 | 69 | 0.486786 | 121 | 1,173 | 4.677686 | 0.173554 | 0.127208 | 0.150177 | 0.176678 | 0.597173 | 0.588339 | 0.514134 | 0.459364 | 0.339223 | 0.240283 | 0 | 0.016176 | 0.42029 | 1,173 | 56 | 70 | 20.946429 | 0.816176 | 0.632566 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
2ca8887ec168f1d2588e9b1fe9894e94ddd2fad1 | 5,112 | py | Python | sem/features/arityfeatures.py | YoannDupont/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 22 | 2016-11-13T21:08:58.000Z | 2021-04-26T07:04:54.000Z | sem/features/arityfeatures.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 15 | 2016-11-15T10:21:07.000Z | 2021-11-08T10:08:05.000Z | sem/features/arityfeatures.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 8 | 2016-11-15T10:21:41.000Z | 2022-03-04T21:28:05.000Z | # -*- coding: utf-8 -*-
"""
file: arityfeatures.py
Description: features that could not be categorized and are thus defined
by the number of arguments they take (their arity).
author: Yoann Dupont
MIT License
Copyright (c) 2018 Yoann Dupont
Permission is hereby granted, free of charge, to any person obtaining a c... | 35.5 | 111 | 0.681142 | 618 | 5,112 | 5.343042 | 0.305825 | 0.112053 | 0.055118 | 0.04361 | 0.229861 | 0.183222 | 0.159297 | 0.081163 | 0.081163 | 0.081163 | 0 | 0.006677 | 0.20892 | 5,112 | 143 | 112 | 35.748252 | 0.809842 | 0.259194 | 0 | 0.2125 | 0 | 0 | 0.014558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2375 | false | 0 | 0.0375 | 0.0625 | 0.525 | 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 |
2cb06c05159a7f2304053d942dcfdb2d1d730acb | 2,864 | py | Python | mymedia/admin.py | hdknr/django-mymedia | 1987c02a6ccd1bad83b2d4e6f51d4ed9f9d45e8f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | mymedia/admin.py | hdknr/django-mymedia | 1987c02a6ccd1bad83b2d4e6f51d4ed9f9d45e8f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | mymedia/admin.py | hdknr/django-mymedia | 1987c02a6ccd1bad83b2d4e6f51d4ed9f9d45e8f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # coding: utf-8
from django.contrib import admin
from django.utils.safestring import SafeString as _S
from django.utils.html import format_html
from ordered_model.admin import OrderedModelAdmin
from ordered_model.admin import OrderedTabularInline
from mptt.admin import MPTTModelAdmin
from mptt.forms import TreeNodeChoi... | 30.147368 | 93 | 0.670042 | 332 | 2,864 | 5.623494 | 0.295181 | 0.042849 | 0.071237 | 0.024103 | 0.345474 | 0.286556 | 0.275844 | 0.114087 | 0.114087 | 0.114087 | 0 | 0.005177 | 0.190642 | 2,864 | 94 | 94 | 30.468085 | 0.800259 | 0.004539 | 0 | 0.246377 | 0 | 0 | 0.131625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0.014493 | 0.115942 | 0.014493 | 0.695652 | 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 |
2cb176a75a9d45bf615f1f167aa8d3cc9191262f | 1,978 | py | Python | src/utils/send_email.py | HaoJiangGuo/fp-server | 9c00b8f0ee64049eb9f214c3efe1fdee977542a6 | [
"MIT"
] | 173 | 2018-06-10T14:21:05.000Z | 2022-03-24T09:24:35.000Z | src/utils/send_email.py | HaoJiangGuo/fp-server | 9c00b8f0ee64049eb9f214c3efe1fdee977542a6 | [
"MIT"
] | 19 | 2018-06-17T08:33:04.000Z | 2021-02-09T07:10:41.000Z | src/utils/send_email.py | HaoJiangGuo/fp-server | 9c00b8f0ee64049eb9f214c3efe1fdee977542a6 | [
"MIT"
] | 45 | 2018-06-10T14:49:12.000Z | 2022-03-24T09:24:38.000Z | # -*- coding:utf-8 -*-
"""
发送邮件
"""
import email
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
class MailSender(object):
def __init__(self, host, username, password, to_emails, subject, content):
""" 初始化
@param host 邮件服务端host
... | 27.472222 | 78 | 0.600607 | 215 | 1,978 | 5.413953 | 0.395349 | 0.054983 | 0.030928 | 0.037801 | 0.109966 | 0.072165 | 0.072165 | 0 | 0 | 0 | 0 | 0.013371 | 0.281598 | 1,978 | 71 | 79 | 27.859155 | 0.805771 | 0.16178 | 0 | 0 | 0 | 0 | 0.111604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.121951 | 0.097561 | 0 | 0.195122 | 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 |
2cb61007ae48c4a47c5441b35a5c016e2644b158 | 250 | py | Python | Python/09.Numpy/011.Mean, Var, and Std.py | kimchangkyu/HackerrankPractice | 84c8a7a73c06f608ba845b35eeb34ce7879abb07 | [
"MIT"
] | null | null | null | Python/09.Numpy/011.Mean, Var, and Std.py | kimchangkyu/HackerrankPractice | 84c8a7a73c06f608ba845b35eeb34ce7879abb07 | [
"MIT"
] | null | null | null | Python/09.Numpy/011.Mean, Var, and Std.py | kimchangkyu/HackerrankPractice | 84c8a7a73c06f608ba845b35eeb34ce7879abb07 | [
"MIT"
] | null | null | null | import numpy
N, M = map(int, input().split())
array = numpy.array([input().split() for _ in range(N)], int)
numpy.set_printoptions(sign = ' ')
print(numpy.mean(array, axis = 1))
print(numpy.var(array, axis = 0))
print(round(numpy.std(array), 12)) | 22.727273 | 61 | 0.664 | 40 | 250 | 4.1 | 0.6 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.128 | 250 | 11 | 62 | 22.727273 | 0.733945 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 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 |
2cb679fea69eab04c2bae50a6f65a968afddad93 | 243 | py | Python | primeirocodigo.py | vitorc/webinar-git-basico | 8fcf1075b2eedbe39452acdcfeb4721a029f0ee2 | [
"MIT"
] | 4 | 2020-06-18T17:40:13.000Z | 2020-07-15T19:48:30.000Z | primeirocodigo.py | vitorc/webinar-git-basico | 8fcf1075b2eedbe39452acdcfeb4721a029f0ee2 | [
"MIT"
] | null | null | null | primeirocodigo.py | vitorc/webinar-git-basico | 8fcf1075b2eedbe39452acdcfeb4721a029f0ee2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def codigobasico():
valor1 = 800
valor2 = 100
soma = valor1+valor2
print("O valor 1 é: " + str(valor1) + ", O valor 2 é: " + str(valor2) + ", Aqui está o retorno da soma: " + str(soma))
codigobasico()
| 27 | 123 | 0.572016 | 34 | 243 | 4.088235 | 0.617647 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082873 | 0.255144 | 243 | 8 | 124 | 30.375 | 0.685083 | 0.08642 | 0 | 0 | 0 | 0 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 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 |
2cc4e45a4a86624ad0f555aea6e562fabea76918 | 17,432 | py | Python | regret/tests/test_api.py | altendky/regret | d862fba0923bb23b5088c5378a7639653177b00c | [
"MIT"
] | null | null | null | regret/tests/test_api.py | altendky/regret | d862fba0923bb23b5088c5378a7639653177b00c | [
"MIT"
] | null | null | null | regret/tests/test_api.py | altendky/regret | d862fba0923bb23b5088c5378a7639653177b00c | [
"MIT"
] | null | null | null | import inspect
from datetime import date
from textwrap import dedent
from unittest import TestCase
import regret
from regret import Deprecator
from regret.emitted import Callable, Deprecation, Inheritance
from regret.testing import Recorder
class Adder(object):
"""
Add things.
"""
def __init__(self,... | 28.252836 | 79 | 0.518414 | 1,558 | 17,432 | 5.548139 | 0.107189 | 0.059 | 0.068024 | 0.078089 | 0.734151 | 0.705692 | 0.658029 | 0.605969 | 0.585261 | 0.548473 | 0 | 0.022088 | 0.381884 | 17,432 | 616 | 80 | 28.298701 | 0.780139 | 0.057308 | 0 | 0.553531 | 0 | 0 | 0.046921 | 0 | 0 | 0 | 0 | 0 | 0.091116 | 1 | 0.120729 | false | 0.025057 | 0.020501 | 0.018223 | 0.218679 | 0 | 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 |
2cc88d5d482416295c469f6af9011bd99614ed74 | 3,056 | py | Python | Python/BasicTutorials/files_and_directories.py | ronkitay/Rons-Tutorials | c0459c57cc24b546847ec24afa94d2c1e5373bd4 | [
"MIT"
] | null | null | null | Python/BasicTutorials/files_and_directories.py | ronkitay/Rons-Tutorials | c0459c57cc24b546847ec24afa94d2c1e5373bd4 | [
"MIT"
] | null | null | null | Python/BasicTutorials/files_and_directories.py | ronkitay/Rons-Tutorials | c0459c57cc24b546847ec24afa94d2c1e5373bd4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import io
from rons_tutorial_formatting import *
# Writing the data
with open('/tmp/temp_file_1', 'w') as some_file: # Rewrites the file if exists
some_file.write('1st line\n')
some_file.writelines(['2nd line\n', '3rd line\n'])
with open('/tmp/temp_file_1', 'a') ... | 25.680672 | 122 | 0.667212 | 512 | 3,056 | 3.773438 | 0.183594 | 0.161491 | 0.086957 | 0.100932 | 0.654762 | 0.609213 | 0.544513 | 0.544513 | 0.513975 | 0.496377 | 0 | 0.017325 | 0.187827 | 3,056 | 118 | 123 | 25.898305 | 0.76108 | 0.256217 | 0 | 0.578125 | 0 | 0 | 0.235268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.1875 | 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 |
e2bab0ab4df294f3cdeaee978d2b092dcfffd504 | 5,055 | py | Python | adv/models.py | muddy-minds/back-end | b4f05dd19cbf442ac020dd38b922cf1c1156cb82 | [
"MIT"
] | null | null | null | adv/models.py | muddy-minds/back-end | b4f05dd19cbf442ac020dd38b922cf1c1156cb82 | [
"MIT"
] | 6 | 2019-12-04T23:58:17.000Z | 2022-02-10T08:13:01.000Z | adv/models.py | muddy-minds/back-end | b4f05dd19cbf442ac020dd38b922cf1c1156cb82 | [
"MIT"
] | null | null | null | from django.contrib.postgres.fields import ArrayField
from django.contrib.postgres.fields import JSONField
# from jsonfield import JSONField
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.au... | 36.89781 | 108 | 0.620376 | 601 | 5,055 | 5.071547 | 0.224626 | 0.029528 | 0.059055 | 0.07874 | 0.51706 | 0.472113 | 0.421916 | 0.303478 | 0.239501 | 0.16273 | 0 | 0.011475 | 0.275964 | 5,055 | 137 | 109 | 36.89781 | 0.821311 | 0.098714 | 0 | 0.348214 | 0 | 0 | 0.036768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116071 | false | 0 | 0.080357 | 0.071429 | 0.5625 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e2be8d6c9d2cb7f3ec816faa0bcce5647c9260a0 | 344 | py | Python | python2.7/site-packages/twisted/web/trp.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 19 | 2015-05-01T19:59:03.000Z | 2021-12-09T08:03:16.000Z | python2.7/site-packages/twisted/web/trp.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 1 | 2018-01-03T15:26:49.000Z | 2018-01-03T15:26:49.000Z | python2.7/site-packages/twisted/web/trp.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z |
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
I contain ResourceUnpickler, which will unpickle any python object
named with the file extension .trp.
"""
from pickle import Unpickler
def ResourceUnpickler(path, registry = None):
fl = open(path)
result = Unpickler(fl).l... | 21.5 | 66 | 0.732558 | 44 | 344 | 5.727273 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028369 | 0.180233 | 344 | 15 | 67 | 22.933333 | 0.865248 | 0.526163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
e2c88b99584bb0530e18ffd8b34f85af6ca90754 | 410 | py | Python | pymodel/observation_queue.py | jproudlo/PyModel | 2ab0e2cf821807206725adaa425409b0c28929b7 | [
"BSD-3-Clause"
] | 61 | 2015-01-29T16:18:51.000Z | 2021-09-28T10:14:02.000Z | pymodel/observation_queue.py | vikstr/PyModel | 4fff616fe0fd8342c91a42d9db5d4097a179dff8 | [
"BSD-3-Clause"
] | 2 | 2015-02-04T11:57:53.000Z | 2021-07-18T20:59:55.000Z | pymodel/observation_queue.py | vikstr/PyModel | 4fff616fe0fd8342c91a42d9db5d4097a179dff8 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T12:00:29.000Z | 2022-03-14T07:41:25.000Z | """
observation queue used by steppers that return observable actions.
Put this in its own module so it can be imported by pmt
and can also be optionally imported by steppers.
"""
import collections
import threading
# stepper sets asynch = True to make pmt wait for asynch observable actions
asynch = False # defaul... | 27.333333 | 75 | 0.77561 | 61 | 410 | 5.213115 | 0.688525 | 0.160377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178049 | 410 | 14 | 76 | 29.285714 | 0.94362 | 0.763415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e2c95ad27a48800f15d1e8470abd8097aa4ad729 | 1,306 | py | Python | lib/driver/to_bytes_mixin.py | MaZderMind/sweet-sixteen-scheduler | 3c9dc14cf9af8ae00cf8e5a6abd2c47074a3b0ce | [
"BSD-2-Clause"
] | null | null | null | lib/driver/to_bytes_mixin.py | MaZderMind/sweet-sixteen-scheduler | 3c9dc14cf9af8ae00cf8e5a6abd2c47074a3b0ce | [
"BSD-2-Clause"
] | null | null | null | lib/driver/to_bytes_mixin.py | MaZderMind/sweet-sixteen-scheduler | 3c9dc14cf9af8ae00cf8e5a6abd2c47074a3b0ce | [
"BSD-2-Clause"
] | null | null | null | import logging
log = logging.getLogger("ToBytesMixin")
def batch(iterable, n=1):
l = len(iterable)
for ndx in range(0, l, n):
yield iterable[ndx:min(ndx + n, l)]
def segment_8_tuple_to_byte(segment_8_tuple):
return \
(0x1 << 0) * (1 if segment_8_tuple[0] else 0) + \
(0x1 << 1) *... | 27.787234 | 73 | 0.558959 | 191 | 1,306 | 3.633508 | 0.287958 | 0.149856 | 0.243516 | 0.126801 | 0.276657 | 0.092219 | 0.092219 | 0.092219 | 0 | 0 | 0 | 0.072767 | 0.305513 | 1,306 | 46 | 74 | 28.391304 | 0.692393 | 0.091118 | 0 | 0 | 0 | 0 | 0.013873 | 0 | 0 | 0 | 0.027746 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.047619 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.