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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d8a72b000f8bc7f3def9359b6f34d92b9afe70b | 1,092 | py | Python | tests/test_verilog/test_2d_array.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 167 | 2017-10-08T00:59:22.000Z | 2022-02-08T00:14:39.000Z | tests/test_verilog/test_2d_array.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 719 | 2017-08-29T17:58:28.000Z | 2022-03-31T23:39:18.000Z | tests/test_verilog/test_2d_array.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 14 | 2017-09-01T03:25:16.000Z | 2021-11-05T13:30:24.000Z | import magma as m
import magma.testing
def test_2d_array_from_verilog():
main = m.define_from_verilog(f"""
module transpose_buffer (
input logic clk,
output logic [2:0] index_inner,
output logic [2:0] index_outer,
input logic [3:0] input_data [63:0],
input logic [2:0] range_inner,
input logic [2:0] ra... | 26.634146 | 72 | 0.635531 | 166 | 1,092 | 3.915663 | 0.319277 | 0.092308 | 0.053846 | 0.110769 | 0.392308 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0.044064 | 0.251832 | 1,092 | 40 | 73 | 27.3 | 0.75153 | 0 | 0 | 0.25 | 0 | 0 | 0.732601 | 0.076923 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8d91821c11ad7de4699c796983b5fdc61cd15549 | 1,748 | py | Python | 14Django/day01/BookManager/instruction01.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 937 | 2019-05-08T08:46:25.000Z | 2022-03-31T12:56:07.000Z | 14Django/day01/BookManager/instruction01.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 47 | 2019-09-17T10:06:02.000Z | 2022-03-11T23:46:52.000Z | 14Django/day01/BookManager/instruction01.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 354 | 2019-05-10T02:15:26.000Z | 2022-03-30T05:52:57.000Z | # MVT设计模式,model-view-template
# model负责和数据库交互来获取model数据
# view相当于MVC中的Controller负责处理网络请求http response
# template相当于MVC中的View负责封装html,css,js等内置模板引擎
# 具体流程:客户端发出网页请求 --> View接受网络请求 --> 找mdel去数据库找数据 -->找回的model数据返回给view
# --> view可以直接返回无修饰的model原始数据给客户端 --> 或者找template去美化数据,添加css,html等,动态生成一个html文件返回给View
# --> View将动态生成... | 32.37037 | 86 | 0.677346 | 141 | 1,748 | 8.375887 | 0.815603 | 0.020322 | 0.023709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013343 | 0.228261 | 1,748 | 53 | 87 | 32.981132 | 0.86212 | 0.728261 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 |
8d96bf00a3acfd211648886a90fafa02fd4596d2 | 554 | py | Python | unittest/scripts/py_devapi/validation/mysqlx_constants.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | unittest/scripts/py_devapi/validation/mysqlx_constants.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | unittest/scripts/py_devapi/validation/mysqlx_constants.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | #@ mysqlx type constants
|Type.BIT: <Type.BIT>|
|Type.TINYINT: <Type.TINYINT>|
|Type.SMALLINT: <Type.SMALLINT>|
|Type.MEDIUMINT: <Type.MEDIUMINT>|
|Type.INT: <Type.INT>|
|Type.BIGINT: <Type.BIGINT>|
|Type.FLOAT: <Type.FLOAT>|
|Type.DECIMAL: <Type.DECIMAL>|
|Type.DOUBLE: <Type.DOUBLE>|
|Type.JSON: <Type.JSON>|
|Type.STR... | 26.380952 | 34 | 0.680505 | 79 | 554 | 4.772152 | 0.265823 | 0.074271 | 0.087533 | 0.074271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075812 | 554 | 20 | 35 | 27.7 | 0.736328 | 0.041516 | 0 | 0.105263 | 0 | 0 | 0 | 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 |
a5c291d3fca313e84439e62c0399577ae97984ec | 7,818 | py | Python | src/portal.py | gve-sw/GVE_DevNet_DNAC_Mass_Config_Dashboard | e7fcebc8ef72a579d6dca623524a1424d41b2be2 | [
"RSA-MD"
] | null | null | null | src/portal.py | gve-sw/GVE_DevNet_DNAC_Mass_Config_Dashboard | e7fcebc8ef72a579d6dca623524a1424d41b2be2 | [
"RSA-MD"
] | null | null | null | src/portal.py | gve-sw/GVE_DevNet_DNAC_Mass_Config_Dashboard | e7fcebc8ef72a579d6dca623524a1424d41b2be2 | [
"RSA-MD"
] | null | null | null | """
Copyright (c) 2020 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must be in accordance wit... | 36.877358 | 154 | 0.656562 | 922 | 7,818 | 5.428416 | 0.249458 | 0.052747 | 0.039161 | 0.041558 | 0.325874 | 0.244156 | 0.175425 | 0.16024 | 0.090909 | 0.075125 | 0 | 0.001817 | 0.225505 | 7,818 | 211 | 155 | 37.052133 | 0.824773 | 0.176516 | 0 | 0.313869 | 0 | 0 | 0.209251 | 0.029621 | 0 | 0 | 0 | 0.004739 | 0 | 1 | 0.043796 | false | 0.094891 | 0.065693 | 0 | 0.20438 | 0.058394 | 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 |
a5c4cd4e9602538881f661de026fb97b159515ee | 831 | py | Python | tests/test_KMeans.py | joakiti/Benchmark-SubsetSums | a875b5adf7f800d26b73516452904031c73ec29d | [
"MIT"
] | null | null | null | tests/test_KMeans.py | joakiti/Benchmark-SubsetSums | a875b5adf7f800d26b73516452904031c73ec29d | [
"MIT"
] | null | null | null | tests/test_KMeans.py | joakiti/Benchmark-SubsetSums | a875b5adf7f800d26b73516452904031c73ec29d | [
"MIT"
] | null | null | null | from unittest import TestCase
from Implementations.helpers.ComputeKMeansGrouping import ComputeKMeansGrouping
class Test(TestCase):
def test_kMeans(self):
xs = [1, 2, 3, 10, 11, 12, 20, 23]
kmeans = ComputeKMeansGrouping(xs)
kmeans.computeClusters(3)
solution = kmeans.clusters(3)... | 36.130435 | 81 | 0.640193 | 94 | 831 | 5.62766 | 0.404255 | 0.143667 | 0.204159 | 0.132325 | 0.189036 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.22503 | 831 | 23 | 82 | 36.130435 | 0.678571 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
a5c4e392378e405a1b3d0e5846d2a89a2334faa0 | 6,557 | py | Python | src/bratdb/term.py | kpwhri/bratdb | 69aa3f5099250a5cc0027e3580ab4fce03b98530 | [
"MIT"
] | null | null | null | src/bratdb/term.py | kpwhri/bratdb | 69aa3f5099250a5cc0027e3580ab4fce03b98530 | [
"MIT"
] | null | null | null | src/bratdb/term.py | kpwhri/bratdb | 69aa3f5099250a5cc0027e3580ab4fce03b98530 | [
"MIT"
] | null | null | null | import re
import string
from collections import defaultdict
from bratdb.nlp.stopwords import get_stopwords
class Segment:
STOPWORDS = get_stopwords()
def __init__(self, term, is_punct=False, ignore_stopwords=False,
add_stopwords=None):
self.term = term
add_stopwords = add_st... | 30.21659 | 95 | 0.552082 | 785 | 6,557 | 4.379618 | 0.15414 | 0.024433 | 0.017452 | 0.013089 | 0.193426 | 0.150087 | 0.047702 | 0.028505 | 0.019197 | 0 | 0 | 0.004194 | 0.345432 | 6,557 | 216 | 96 | 30.356481 | 0.796831 | 0.019826 | 0 | 0.22807 | 0 | 0 | 0.032515 | 0.006253 | 0 | 0 | 0 | 0 | 0.005848 | 1 | 0.175439 | false | 0 | 0.023392 | 0.105263 | 0.391813 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a5ca163de6a4114de3139eb33039764ba8c5fa4a | 2,010 | py | Python | saving.py | ShangxuanWu/facial_landmark_detection | de4c162c1f203bfbb64979174fa3ea7302dcaebd | [
"MIT"
] | 2 | 2017-11-19T10:59:54.000Z | 2017-12-04T20:00:15.000Z | saving.py | ShangxuanWu/facial_landmark_detection | de4c162c1f203bfbb64979174fa3ea7302dcaebd | [
"MIT"
] | null | null | null | saving.py | ShangxuanWu/facial_landmark_detection | de4c162c1f203bfbb64979174fa3ea7302dcaebd | [
"MIT"
] | null | null | null | # Author: Xinshuo Weng and Shangxuan Wu
# email: {xinshuo.weng, wushx6}@gmail.com
# this function convert a struct to string (only applied to the field which can be converted to a string) and save it to file
import toolbox.util
import pdb
def save_struct(struct_save, save_path, debug_mode):
'''if not debug_mode:
... | 30 | 125 | 0.553234 | 255 | 2,010 | 4.203922 | 0.364706 | 0.044776 | 0.030784 | 0.026119 | 0.186567 | 0.186567 | 0.186567 | 0.186567 | 0.186567 | 0.186567 | 0 | 0.006192 | 0.357214 | 2,010 | 66 | 126 | 30.454545 | 0.823529 | 0.1 | 0 | 0 | 0 | 0 | 0.037543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 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 |
a5cbf96404763089f93f0f258ef42e601998ed6b | 3,350 | py | Python | test_files/Final/simulation.py | NeelamMahapatro/Roborex_Chess | cc2666c56c09fc21a7c76879e2f19e594ddd474c | [
"MIT"
] | 3 | 2019-06-20T04:17:54.000Z | 2020-07-17T15:34:14.000Z | test_files/Final/simulation.py | NeelamMahapatro/Roborex_Chess | cc2666c56c09fc21a7c76879e2f19e594ddd474c | [
"MIT"
] | 1 | 2018-03-31T09:48:58.000Z | 2018-03-31T09:48:58.000Z | test_files/Final/simulation.py | NeelamMahapatro/Roborex_Chess | cc2666c56c09fc21a7c76879e2f19e594ddd474c | [
"MIT"
] | 6 | 2018-03-30T12:24:25.000Z | 2020-07-17T15:33:48.000Z | #!/usr/bin/env python
################################################################################
##
## MIT License
##
## Copyright (c) 2018 Team Roborex, NIT Rourkela
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "So... | 25.769231 | 81 | 0.528657 | 538 | 3,350 | 3.273234 | 0.327138 | 0.070415 | 0.102215 | 0.131743 | 0.088586 | 0.088586 | 0.088586 | 0.072686 | 0.072686 | 0.072686 | 0 | 0.07281 | 0.212836 | 3,350 | 129 | 82 | 25.968992 | 0.594994 | 0.34209 | 0 | 0.292683 | 0 | 0 | 0.029492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012195 | 0.036585 | null | null | 0.012195 | 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 |
a5cf38e8601abc18570a310e24d5328145b5c294 | 482 | py | Python | settings.py | zhangyao8/ZYFileExplorer | 8d210d501c8e10de8c99245881902ba6c2e5ba78 | [
"MIT"
] | 1 | 2017-12-06T01:18:10.000Z | 2017-12-06T01:18:10.000Z | settings.py | zhangyao8/ZYFileExplorer | 8d210d501c8e10de8c99245881902ba6c2e5ba78 | [
"MIT"
] | 1 | 2021-04-15T07:08:16.000Z | 2021-04-15T07:08:16.000Z | settings.py | zhangyao8/ZYFileExplorer | 8d210d501c8e10de8c99245881902ba6c2e5ba78 | [
"MIT"
] | 2 | 2019-04-16T09:07:11.000Z | 2020-07-23T13:41:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
# 根目录配置
# 要求将浏览的文件目录挂载到statics/mountfile目录,没有对任意位置的目录做兼容性测试,因为我准备使用docker容器运行程序,正好是挂载方式。
# 使用normpath对windows和linux的路径分隔符做兼容
baseroot = os.path.normpath(os.path.join(os.path.dirname(__file__), 'statics/mountfile'))
def root():
return baseroot
# 数据库配置
dbconf... | 19.28 | 89 | 0.678423 | 52 | 482 | 6.211538 | 0.788462 | 0.055728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.153527 | 482 | 24 | 90 | 20.083333 | 0.75 | 0.346473 | 0 | 0 | 0 | 0 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.153846 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
a5d400d7815fddca536b36117d53af550c7d4ee7 | 508 | py | Python | app/routing.py | ozzy92/JaysConnect4 | 831eee406594348b0ecfea325873bd9c47bece91 | [
"MIT"
] | null | null | null | app/routing.py | ozzy92/JaysConnect4 | 831eee406594348b0ecfea325873bd9c47bece91 | [
"MIT"
] | null | null | null | app/routing.py | ozzy92/JaysConnect4 | 831eee406594348b0ecfea325873bd9c47bece91 | [
"MIT"
] | null | null | null |
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter, ChannelNameRouter
from django.conf.urls import url
from django.urls import path, include
import connect4.routing
from connect4 import consumers
application = ProtocolTypeRouter({
"websocket" : AuthMiddlewareS... | 26.736842 | 77 | 0.728346 | 47 | 508 | 7.851064 | 0.468085 | 0.121951 | 0.119241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012136 | 0.188976 | 508 | 18 | 78 | 28.222222 | 0.883495 | 0 | 0 | 0.125 | 0 | 0 | 0.053254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
a5d8d76cc9520a5edccc30f795e23821c8728ae0 | 40,972 | py | Python | python-siren/siren/reremi/classRedProps.py | zliobaite/redescription-China | cab8ee08f21a0207bed5b48fd3493a3909d2a5ad | [
"MIT"
] | null | null | null | python-siren/siren/reremi/classRedProps.py | zliobaite/redescription-China | cab8ee08f21a0207bed5b48fd3493a3909d2a5ad | [
"MIT"
] | null | null | null | python-siren/siren/reremi/classRedProps.py | zliobaite/redescription-China | cab8ee08f21a0207bed5b48fd3493a3909d2a5ad | [
"MIT"
] | null | null | null | import re, string, numpy, codecs, itertools, os.path
from classQuery import SYM
from classSParts import SSetts, tool_ratio
import pdb
SIDE_CHARS = {0:"L", 1:"R", -1: "C"}
HAND_SIDE = {"LHS": 0, "RHS": 1, "0": 0, "1": 1, "COND": -1, "-1": -1}
NUM_CHARS = dict([(numpy.base_repr(ii, base=25), "%s" % chr(ii+ord("a"))) for... | 42.326446 | 277 | 0.514839 | 4,774 | 40,972 | 4.306871 | 0.134269 | 0.023345 | 0.012256 | 0.003648 | 0.281407 | 0.226886 | 0.165167 | 0.144691 | 0.122514 | 0.112349 | 0 | 0.010415 | 0.311042 | 40,972 | 967 | 278 | 42.370217 | 0.717975 | 0.050522 | 0 | 0.25 | 0 | 0.012255 | 0.146624 | 0.060232 | 0.003676 | 0 | 0 | 0.001034 | 0 | 0 | null | null | 0 | 0.009804 | null | null | 0.012255 | 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 |
a5de9aac3acb187f0d17c8cd34c7439cb890fe66 | 1,371 | py | Python | configuration.py | hpanwar08/rest-api-ml-model | 623c5ddc1d65a2aece7eddcbf87f8335d69d0392 | [
"MIT"
] | 6 | 2019-08-15T12:54:44.000Z | 2021-12-06T12:02:42.000Z | configuration.py | hpanwar08/rest-api-ml-model | 623c5ddc1d65a2aece7eddcbf87f8335d69d0392 | [
"MIT"
] | 1 | 2019-08-23T03:39:16.000Z | 2019-08-23T03:45:31.000Z | configuration.py | hpanwar08/rest-api-ml-model | 623c5ddc1d65a2aece7eddcbf87f8335d69d0392 | [
"MIT"
] | 2 | 2019-10-23T12:58:14.000Z | 2022-01-10T23:37:52.000Z | import os
import yaml
import logging
import logging.handlers
from constants import Constants
LOG_DIR = os.path.join('logs')
config = None
def initialize_config(env, server_config):
global config
with open(server_config) as f:
conf = yaml.full_load(f)
config = conf[env]
return config
de... | 26.882353 | 99 | 0.671772 | 167 | 1,371 | 5.371257 | 0.401198 | 0.026756 | 0.017837 | 0.031215 | 0.167224 | 0.124861 | 0.124861 | 0.124861 | 0.124861 | 0.124861 | 0 | 0.008372 | 0.215901 | 1,371 | 50 | 100 | 27.42 | 0.826047 | 0.041575 | 0 | 0.054054 | 0 | 0 | 0.10229 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 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 |
a5e67896c6068c39e63ad2d8c0cca4820b99dedd | 3,018 | py | Python | hetzner/util/http.py | tarekwiz/hetzner | 5bf801d05b1bb32dd578a2ea4fddab2bb73cff12 | [
"BSD-3-Clause"
] | 45 | 2018-01-24T09:09:37.000Z | 2022-03-10T10:39:51.000Z | hetzner/util/http.py | tarekwiz/hetzner | 5bf801d05b1bb32dd578a2ea4fddab2bb73cff12 | [
"BSD-3-Clause"
] | 24 | 2018-09-04T20:30:17.000Z | 2022-03-02T05:01:47.000Z | hetzner/util/http.py | tarekwiz/hetzner | 5bf801d05b1bb32dd578a2ea4fddab2bb73cff12 | [
"BSD-3-Clause"
] | 22 | 2017-11-23T13:01:49.000Z | 2021-11-19T22:39:43.000Z | import os
import ssl
import socket
from tempfile import NamedTemporaryFile
try:
from httplib import HTTPSConnection
except ImportError:
from http.client import HTTPSConnection
class ValidatedHTTPSConnection(HTTPSConnection):
CA_ROOT_CERT_FALLBACK = '''
DigiCert Global Root G2
-----BEGIN ... | 42.507042 | 72 | 0.694168 | 224 | 3,018 | 9.205357 | 0.544643 | 0.020369 | 0.009699 | 0.017459 | 0.020369 | 0.020369 | 0 | 0 | 0 | 0 | 0 | 0.064644 | 0.246521 | 3,018 | 70 | 73 | 43.114286 | 0.842128 | 0 | 0 | 0.03125 | 0 | 0 | 0.537111 | 0.434062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.109375 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5e92f8aa2071fb2c7f0366c981df6aae4961999 | 579 | py | Python | whitebearbake/run.py | deemarc/whitebearbake | 95b8d74f36caf5ae29b5c0202d143d3142cc86cf | [
"MIT"
] | null | null | null | whitebearbake/run.py | deemarc/whitebearbake | 95b8d74f36caf5ae29b5c0202d143d3142cc86cf | [
"MIT"
] | null | null | null | whitebearbake/run.py | deemarc/whitebearbake | 95b8d74f36caf5ae29b5c0202d143d3142cc86cf | [
"MIT"
] | null | null | null | import os
import code
from flask_script import Manager
from flask_migrate import MigrateCommand
from whitebearbake import create_app
port = int(os.environ.get('PORT', 5000))
app = create_app()
def run():
app.run(host='0.0.0.0', port=port)
def cli():
""" Interactive CLI session entrypoint """
with app.a... | 19.965517 | 46 | 0.685665 | 76 | 579 | 5.039474 | 0.486842 | 0.015666 | 0.120104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017167 | 0.195164 | 579 | 29 | 47 | 19.965517 | 0.804721 | 0.088083 | 0 | 0 | 0 | 0 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.315789 | 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 |
a5f95f94bf38dadcadced75f93d628417bf9da8b | 2,287 | py | Python | src/frr/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/check_linux_mpls.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | src/frr/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/check_linux_mpls.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | src/frr/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/check_linux_mpls.py | zhouhaifeng/vpe | 9c644ffd561988e5740021ed26e0f7739844353d | [
"Apache-2.0"
] | null | null | null | from lib.lutil import luCommand, luLast
from lib import topotest
ret = luCommand(
"r2",
"ip -M route show",
"\d*(?= via inet 10.0.2.4 dev r2-eth1)",
"wait",
"See mpls route to r4",
)
found = luLast()
if ret != False and found != None:
label4r4 = found.group(0)
luCommand("r2", "ip -M route ... | 27.22619 | 88 | 0.500656 | 335 | 2,287 | 3.41791 | 0.21791 | 0.036681 | 0.048908 | 0.083843 | 0.69869 | 0.663755 | 0.59476 | 0.530131 | 0.40786 | 0.395633 | 0 | 0.096324 | 0.310013 | 2,287 | 83 | 89 | 27.554217 | 0.629278 | 0.109314 | 0 | 0.485714 | 0 | 0 | 0.446578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.114286 | 0.028571 | 0 | 0.028571 | 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 |
a5f97e3b84871b10d04866cd95346b2e11999457 | 3,741 | py | Python | blousebrothers/friends/migrations/0003_auto_20171024_1628.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 1 | 2022-01-27T11:58:10.000Z | 2022-01-27T11:58:10.000Z | blousebrothers/friends/migrations/0003_auto_20171024_1628.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | 5 | 2021-03-19T00:01:54.000Z | 2022-03-11T23:46:21.000Z | blousebrothers/friends/migrations/0003_auto_20171024_1628.py | sladinji/blousebrothers | 461de3ba011c0aaed3f0014136c4497b6890d086 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-10-24 16:28
from __future__ import unicode_literals
import blousebrothers.friends.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import image_cropping.fields
class Migration(migrations.Migra... | 56.681818 | 234 | 0.662924 | 407 | 3,741 | 5.882064 | 0.324324 | 0.030075 | 0.046784 | 0.073517 | 0.527987 | 0.5 | 0.421053 | 0.405597 | 0.405597 | 0.405597 | 0 | 0.012133 | 0.206897 | 3,741 | 65 | 235 | 57.553846 | 0.794742 | 0.01791 | 0 | 0.465517 | 1 | 0 | 0.146554 | 0.0079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.155172 | 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 |
570c598863ba00998bb53df58f96a747df9b4362 | 7,782 | py | Python | python_libs/eval_mfs.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | 1 | 2020-09-20T09:38:05.000Z | 2020-09-20T09:38:05.000Z | python_libs/eval_mfs.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | null | null | null | python_libs/eval_mfs.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
##############################################
# Author: Ruben Izquierdo Bevia #
# VU University of Amsterdam #
# Mail: ruben.izquierdobevia@vu.nl #
# rubensanvi@gmail.com #
# Webpage: http://rubenizquierdobevia.com #
# Version: 1.... | 41.83871 | 166 | 0.576201 | 932 | 7,782 | 4.51073 | 0.20279 | 0.017127 | 0.028544 | 0.026641 | 0.294481 | 0.242626 | 0.200285 | 0.158421 | 0.144148 | 0.144148 | 0 | 0.010591 | 0.308404 | 7,782 | 186 | 167 | 41.83871 | 0.770531 | 0.100874 | 0 | 0.07619 | 0 | 0.009524 | 0.06563 | 0.009165 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.009524 | 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 |
57109d2fed934c73430d366cb6c632796308f707 | 934 | py | Python | backend/api/migrations/0004_auto_20181225_0014.py | CancerGary/sdorica-inspector | 1c5f5eb6b5f0b9dbc6c3479564b469180aac7795 | [
"MIT"
] | 11 | 2019-12-08T14:59:32.000Z | 2021-03-21T13:42:23.000Z | backend/api/migrations/0004_auto_20181225_0014.py | CancerGary/sdorica-inspector | 1c5f5eb6b5f0b9dbc6c3479564b469180aac7795 | [
"MIT"
] | 1 | 2020-02-12T00:02:21.000Z | 2020-02-12T00:02:21.000Z | backend/api/migrations/0004_auto_20181225_0014.py | CancerGary/sdorica-inspector | 1c5f5eb6b5f0b9dbc6c3479564b469180aac7795 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2018-12-24 16:14
import backend.api.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0003_imperium_md5'),
]
operations = [
migrations.AddField(
mod... | 30.129032 | 148 | 0.598501 | 99 | 934 | 5.555556 | 0.575758 | 0.043636 | 0.092727 | 0.114545 | 0.149091 | 0.149091 | 0 | 0 | 0 | 0 | 0 | 0.037572 | 0.259101 | 934 | 30 | 149 | 31.133333 | 0.757225 | 0.04818 | 0 | 0.333333 | 1 | 0 | 0.152198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 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 |
571224c52c4f2e49f29b62cf4ec36c2422e1e573 | 428 | py | Python | solutions/practice/if_twoAway.py | mrparkonline/py_conditionals | d9420ec8c9a69689d8a87b4232db288d620b22bb | [
"MIT"
] | null | null | null | solutions/practice/if_twoAway.py | mrparkonline/py_conditionals | d9420ec8c9a69689d8a87b4232db288d620b22bb | [
"MIT"
] | null | null | null | solutions/practice/if_twoAway.py | mrparkonline/py_conditionals | d9420ec8c9a69689d8a87b4232db288d620b22bb | [
"MIT"
] | null | null | null | # Create a program such that when given a non-negative number input, output whether or not if the number is 2 away from a multiple of 10.
# input
num = int(input('Enter a positive number: '))
# processing & output
if (num + 2) % 10 == 0:
print(num, 'is 2 away from a multiple of 10.')
elif (num - 2) % 10 == 0:
... | 35.666667 | 137 | 0.658879 | 79 | 428 | 3.56962 | 0.417722 | 0.070922 | 0.12766 | 0.141844 | 0.439716 | 0.439716 | 0.439716 | 0.361702 | 0.276596 | 0.276596 | 0 | 0.060606 | 0.228972 | 428 | 12 | 138 | 35.666667 | 0.793939 | 0.376168 | 0 | 0.285714 | 0 | 0 | 0.473485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 |
57162e7868082c60f1e5017f62bb149f6a7873e4 | 2,579 | py | Python | sports_manager/models/category.py | hbuyse/dj-sports-manager | 7e32cc41347b968b4ede9ea6846de14d9504c3f9 | [
"MIT"
] | null | null | null | sports_manager/models/category.py | hbuyse/dj-sports-manager | 7e32cc41347b968b4ede9ea6846de14d9504c3f9 | [
"MIT"
] | null | null | null | sports_manager/models/category.py | hbuyse/dj-sports-manager | 7e32cc41347b968b4ede9ea6846de14d9504c3f9 | [
"MIT"
] | null | null | null | """."""
# Standard library
import logging
import os
# Django
from django.contrib.auth import get_user_model
from django.db import models
from django.urls import reverse
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _
# Current django project
from markdownx.models import ... | 33.493506 | 106 | 0.697945 | 328 | 2,579 | 5.347561 | 0.432927 | 0.028506 | 0.017104 | 0.021665 | 0.025086 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00429 | 0.186506 | 2,579 | 76 | 107 | 33.934211 | 0.831745 | 0.186119 | 0 | 0 | 0 | 0 | 0.079295 | 0.014684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.255814 | 0.023256 | 0.72093 | 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 |
5717f7578a2473a43a64924a80813143b1974611 | 2,242 | py | Python | kmdice/KMDICEP/kmdrpc.py | chainmakers/chainmaker | 48190a89445a74b60f2327b41d7eebf6c25ef642 | [
"MIT"
] | 1 | 2021-04-06T04:23:49.000Z | 2021-04-06T04:23:49.000Z | kmdice/KMDICEP/kmdrpc.py | chainmakers/chainmaker | 48190a89445a74b60f2327b41d7eebf6c25ef642 | [
"MIT"
] | null | null | null | kmdice/KMDICEP/kmdrpc.py | chainmakers/chainmaker | 48190a89445a74b60f2327b41d7eebf6c25ef642 | [
"MIT"
] | 2 | 2018-11-27T15:13:40.000Z | 2019-03-11T15:57:13.000Z | #!/usr/bin/env python3
import re
import os
import requests
import json
import platform
# define function that fetchs rpc creds from .conf
def def_credentials(chain):
operating_system = platform.system()
if operating_system == 'Darwin':
ac_dir = os.environ['HOME'] + '/Library/Application Support/Komodo'... | 33.969697 | 77 | 0.597681 | 266 | 2,242 | 4.917293 | 0.406015 | 0.045872 | 0.058104 | 0.021407 | 0.146789 | 0.079511 | 0.045872 | 0 | 0 | 0 | 0 | 0.007864 | 0.262712 | 2,242 | 65 | 78 | 34.492308 | 0.783424 | 0.123996 | 0 | 0.076923 | 0 | 0 | 0.159591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.057692 | 0.096154 | 0 | 0.173077 | 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 |
571d5c3300b3c29adad0601db1ed8ce583ce2075 | 482 | py | Python | saleor/dashboard/store/special_page/urls.py | Chaoslecion123/Diver | 8c5c493701422eada49cbf95b0b0add08f1ea561 | [
"BSD-3-Clause"
] | null | null | null | saleor/dashboard/store/special_page/urls.py | Chaoslecion123/Diver | 8c5c493701422eada49cbf95b0b0add08f1ea561 | [
"BSD-3-Clause"
] | null | null | null | saleor/dashboard/store/special_page/urls.py | Chaoslecion123/Diver | 8c5c493701422eada49cbf95b0b0add08f1ea561 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^(?P<site_settings_pk>\d+)/special-page/add/$',
views.special_page_add, name='special-page-add'),
url(r'^(?P<site_settings_pk>\d+)/special-page/'
r'(?P<pk>\d+)/update/$',
views.special_page_edit, name='special-p... | 32.133333 | 62 | 0.626556 | 72 | 482 | 4.027778 | 0.291667 | 0.341379 | 0.051724 | 0.093103 | 0.355172 | 0.355172 | 0.355172 | 0.355172 | 0.355172 | 0.248276 | 0 | 0 | 0.159751 | 482 | 14 | 63 | 34.428571 | 0.716049 | 0 | 0 | 0.166667 | 0 | 0 | 0.450207 | 0.259336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
571e7893bb9675d4575c500e911976fe52ffceae | 1,137 | py | Python | sample_pipeline/sample_pipeline/tests_4_non_regression/__init__.py | CFMTech/python_pipeline_blog_post | 21938d3531653af4240b6b229cf649139abeef9d | [
"MIT"
] | 1 | 2021-12-12T14:19:10.000Z | 2021-12-12T14:19:10.000Z | sample_pipeline/sample_pipeline/tests_4_non_regression/__init__.py | mwouts/python_pipeline_blog_post | e4b0e579a568a916d37645cbfa838b21668b2c6c | [
"MIT"
] | null | null | null | sample_pipeline/sample_pipeline/tests_4_non_regression/__init__.py | mwouts/python_pipeline_blog_post | e4b0e579a568a916d37645cbfa838b21668b2c6c | [
"MIT"
] | 1 | 2021-12-12T14:19:54.000Z | 2021-12-12T14:19:54.000Z | import pickle
from functools import lru_cache
from pathlib import Path
import dask
from sample_pipeline.pipeline import get_full_pipeline
NON_REGRESSION_DATA_FILE = Path(__file__).parent / "non_regression_data.pickle"
NON_REGRESSION_TICKERS = {"AAPL", "MSFT", "AMZN", "GOOGL"}
NON_REGRESSION_START_DATE = "2021-01-04"... | 27.071429 | 79 | 0.753738 | 160 | 1,137 | 4.95625 | 0.3875 | 0.229508 | 0.128625 | 0.079445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016913 | 0.167986 | 1,137 | 41 | 80 | 27.731707 | 0.821353 | 0.109938 | 0 | 0 | 0 | 0 | 0.066534 | 0.025819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.2 | 0.04 | 0.4 | 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 |
571ebe6bdacb874c8148c77153d4a22e49d17dd7 | 1,315 | py | Python | test2.py | KwokCK/KC_Word2Vec | 715f91fd49bc5e44f53a511dd2d68ebbd5c472b5 | [
"MIT"
] | null | null | null | test2.py | KwokCK/KC_Word2Vec | 715f91fd49bc5e44f53a511dd2d68ebbd5c472b5 | [
"MIT"
] | null | null | null | test2.py | KwokCK/KC_Word2Vec | 715f91fd49bc5e44f53a511dd2d68ebbd5c472b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
import os
import gensim
SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))
MODEL_PATH = os.path.join(SCRIPT_PATH, 'model/')
if __name__ == '__main__':
# Load word2vec model
# model = gensim.models.Word2Vec.load(os.path.join(MODEL_PATH, 'word2vec.model'), mmap='r')
model = ... | 35.540541 | 111 | 0.574905 | 180 | 1,315 | 4.011111 | 0.388889 | 0.16205 | 0.055402 | 0.069252 | 0.271468 | 0.271468 | 0.216066 | 0.216066 | 0.216066 | 0.216066 | 0 | 0.025773 | 0.262357 | 1,315 | 36 | 112 | 36.527778 | 0.718557 | 0.098859 | 0 | 0.148148 | 0 | 0 | 0.130398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.296296 | 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 |
57245570319988306fde3d63e07e75ff9d32193b | 308 | py | Python | doc/source/image/sketch.py | ppawlak/pystacia | 854053a2872c9374e2c121c4af549f6bba640116 | [
"MIT"
] | 9 | 2015-02-11T21:33:33.000Z | 2021-06-14T14:55:24.000Z | doc/source/image/sketch.py | ppawlak/pystacia | 854053a2872c9374e2c121c4af549f6bba640116 | [
"MIT"
] | 1 | 2016-08-01T12:31:17.000Z | 2016-08-01T12:31:17.000Z | doc/source/image/sketch.py | ppawlak/pystacia | 854053a2872c9374e2c121c4af549f6bba640116 | [
"MIT"
] | 2 | 2015-08-21T08:23:25.000Z | 2018-10-31T02:52:50.000Z | from os.path import join, dirname
from pystacia import lena
dest = join(dirname(__file__), '../_static/generated')
image = lena(256)
image.sketch(3)
image.write(join(dest, 'lena_sketch3.jpg'))
image.close()
image = lena(256)
image.sketch(6, 0)
image.write(join(dest, 'lena_sketch6,0.jpg'))
image.close()
| 19.25 | 54 | 0.727273 | 48 | 308 | 4.520833 | 0.479167 | 0.101382 | 0.110599 | 0.156682 | 0.414747 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.103896 | 308 | 15 | 55 | 20.533333 | 0.742754 | 0 | 0 | 0.363636 | 1 | 0 | 0.175325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57266fd7b5a5492179156aeb02e0af5cfa325a54 | 8,257 | py | Python | ANN from scratch.py | 1995subhankar1995/Machine_Learning_codes | 5170f4880798184b257d7e64577dc9dd8d0e1e81 | [
"MIT"
] | null | null | null | ANN from scratch.py | 1995subhankar1995/Machine_Learning_codes | 5170f4880798184b257d7e64577dc9dd8d0e1e81 | [
"MIT"
] | null | null | null | ANN from scratch.py | 1995subhankar1995/Machine_Learning_codes | 5170f4880798184b257d7e64577dc9dd8d0e1e81 | [
"MIT"
] | null | null | null | # Package imports
import numpy as np
import matplotlib.pyplot as plt
import sklearn
import sklearn.datasets
import sklearn.linear_model
import pandas as pd
%matplotlib inline
np.random.seed(1) # set a seed so that the results are consistent
#import data
dataset = pd.read_csv('Churn_Modelling.csv')
X = dataset.iloc[:,... | 31.515267 | 126 | 0.603367 | 1,178 | 8,257 | 4.146859 | 0.186757 | 0.04913 | 0.039918 | 0.042989 | 0.234391 | 0.200819 | 0.166018 | 0.15824 | 0.086387 | 0.074923 | 0 | 0.039864 | 0.249606 | 8,257 | 261 | 127 | 31.636015 | 0.746127 | 0.315853 | 0 | 0.164286 | 0 | 0 | 0.043163 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0 | null | null | 0.007143 | 0.085714 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5727682a1a8968186fa512fe8c853271433b1800 | 503 | py | Python | 高频120_Lint/Simplify Path.py | lixiaoruiusa/Rui7272 | fbdb87104353138d3af7f3fe2cb3c0f00ff9e449 | [
"MIT"
] | null | null | null | 高频120_Lint/Simplify Path.py | lixiaoruiusa/Rui7272 | fbdb87104353138d3af7f3fe2cb3c0f00ff9e449 | [
"MIT"
] | null | null | null | 高频120_Lint/Simplify Path.py | lixiaoruiusa/Rui7272 | fbdb87104353138d3af7f3fe2cb3c0f00ff9e449 | [
"MIT"
] | null | null | null | class Solution:
"""
@param path: the original path
@return: the simplified path
@ 用 stack
['', 'a', '.', '..', '..', 'c', '']
"""
def simplifyPath(self, path):
# write your code here
path = path.split('/')
stack = []
for i in path:
if i == '..':
... | 23.952381 | 39 | 0.377734 | 47 | 503 | 4.042553 | 0.617021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.445328 | 503 | 21 | 40 | 23.952381 | 0.681004 | 0.252485 | 0 | 0 | 0 | 0 | 0.017192 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
572be5e2fe29ba978b78c8b65b116b5b54a4d01a | 393 | py | Python | crabageprediction/venv/Lib/site-packages/numpy/typing/tests/data/pass/arrayterator.py | 13rianlucero/CrabAgePrediction | 92bc7fbe1040f49e820473e33cc3902a5a7177c7 | [
"MIT"
] | 20,453 | 2015-01-02T09:00:47.000Z | 2022-03-31T23:35:56.000Z | crabageprediction/venv/Lib/site-packages/numpy/typing/tests/data/pass/arrayterator.py | 13rianlucero/CrabAgePrediction | 92bc7fbe1040f49e820473e33cc3902a5a7177c7 | [
"MIT"
] | 14,862 | 2015-01-01T01:28:34.000Z | 2022-03-31T23:48:52.000Z | crabageprediction/venv/Lib/site-packages/numpy/typing/tests/data/pass/arrayterator.py | 13rianlucero/CrabAgePrediction | 92bc7fbe1040f49e820473e33cc3902a5a7177c7 | [
"MIT"
] | 9,362 | 2015-01-01T15:49:43.000Z | 2022-03-31T21:26:51.000Z |
from __future__ import annotations
from typing import Any
import numpy as np
AR_i8: np.ndarray[Any, np.dtype[np.int_]] = np.arange(10)
ar_iter = np.lib.Arrayterator(AR_i8)
ar_iter.var
ar_iter.buf_size
ar_iter.start
ar_iter.stop
ar_iter.step
ar_iter.shape
ar_iter.flat
ar_iter.__array__()
for i in ar_iter:
pass... | 14.035714 | 57 | 0.735369 | 77 | 393 | 3.402597 | 0.428571 | 0.343511 | 0.080153 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026471 | 0.13486 | 393 | 27 | 58 | 14.555556 | 0.744118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.15 | 0 | 0.15 | 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 |
572ce4c10075e5241c74e779e3f2fab634f1d14d | 504 | py | Python | tests/test_compatibility.py | AnandJyrm/allure-pytest | 495a90d64690d200ca402a5dbffb96f6335d428b | [
"Apache-2.0"
] | 112 | 2017-01-24T21:37:49.000Z | 2022-03-25T22:32:12.000Z | tests/test_compatibility.py | AnandJyrm/allure-pytest | 495a90d64690d200ca402a5dbffb96f6335d428b | [
"Apache-2.0"
] | 56 | 2017-01-21T20:01:41.000Z | 2019-01-14T13:35:53.000Z | tests/test_compatibility.py | AnandJyrm/allure-pytest | 495a90d64690d200ca402a5dbffb96f6335d428b | [
"Apache-2.0"
] | 52 | 2017-01-23T13:40:40.000Z | 2022-03-30T00:02:31.000Z | """
This module holds tests for compatibility with other py.test plugins.
Created on Apr 15, 2014
@author: pupssman
"""
from hamcrest import assert_that, contains, has_property
def test_maxfail(report_for):
"""
Check that maxfail generates proper report
"""
report = report_for("""
def test_a():... | 20.16 | 89 | 0.660714 | 66 | 504 | 4.863636 | 0.651515 | 0.065421 | 0.11838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.210317 | 504 | 24 | 90 | 21 | 0.791457 | 0.309524 | 0 | 0 | 0 | 0 | 0.329231 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
572ce4fe34698ab79f88d56e69eefd881cc125c5 | 3,453 | py | Python | gscripts/mapping/sort_bam.py | YeoLab/gscripts | ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b | [
"MIT"
] | 12 | 2015-07-10T09:36:49.000Z | 2021-07-06T03:25:04.000Z | gscripts/mapping/sort_bam.py | YeoLab/gscripts | ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b | [
"MIT"
] | 43 | 2015-01-21T20:01:38.000Z | 2021-04-13T17:50:38.000Z | gscripts/mapping/sort_bam.py | YeoLab/gscripts | ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b | [
"MIT"
] | 19 | 2015-05-02T09:33:17.000Z | 2022-02-12T17:08:06.000Z | #!/usr/bin/env python
from glob import glob
from gscripts.qtools._Submitter import Submitter
import sys
import argparse
class CommandLine(object):
"""
Check out the argparse documentation for more awesome things you can do!
https://docs.python.org/2/library/argparse.html
"""
def __init__(self, i... | 34.53 | 78 | 0.56212 | 411 | 3,453 | 4.571776 | 0.408759 | 0.029803 | 0.036189 | 0.019159 | 0.094731 | 0.094731 | 0.032996 | 0 | 0 | 0 | 0 | 0.010912 | 0.336519 | 3,453 | 99 | 79 | 34.878788 | 0.809254 | 0.048653 | 0 | 0.033333 | 0 | 0 | 0.178959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
572e3953e76a6c637db5190168e55948aa46759f | 3,705 | py | Python | EmeraldAI/Logic/ROS/Serial/SerialLaserToLaser.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | EmeraldAI/Logic/ROS/Serial/SerialLaserToLaser.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | EmeraldAI/Logic/ROS/Serial/SerialLaserToLaser.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from EmeraldAI.Logic.Singleton import Singleton
from EmeraldAI.Logic.ROS.Helper import TFHelper
from EmeraldAI.Logic.ROS.Helper import GeometryHelper
from EmeraldAI.Config.HardwareConfig import HardwareConfig
import rospy
import os
import tf_conversions as tf_conv
from senso... | 44.107143 | 126 | 0.681781 | 378 | 3,705 | 6.449735 | 0.34127 | 0.105004 | 0.066448 | 0.093519 | 0.267842 | 0.091058 | 0.063987 | 0 | 0 | 0 | 0 | 0.014276 | 0.205938 | 3,705 | 83 | 127 | 44.638554 | 0.814412 | 0.013495 | 0 | 0.045455 | 0 | 0 | 0.125411 | 0.038061 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.030303 | 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 |
5731bf46d9ff79849fae04d81e7c2ee176d6ae86 | 245 | py | Python | multi_tenant/rest/apps.py | AnsGoo/djangoMultiTenant | 5e4eeffc70edd3a4936d1a0cadbc29388f5673f5 | [
"MIT"
] | 1 | 2022-01-26T06:52:36.000Z | 2022-01-26T06:52:36.000Z | multi_tenant/rest/apps.py | AnsGoo/djangoMultiTenant | 5e4eeffc70edd3a4936d1a0cadbc29388f5673f5 | [
"MIT"
] | null | null | null | multi_tenant/rest/apps.py | AnsGoo/djangoMultiTenant | 5e4eeffc70edd3a4936d1a0cadbc29388f5673f5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RestConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'multi_tenant.rest'
def ready(self):
from .patch import request
return super().ready()
| 22.272727 | 56 | 0.681633 | 29 | 245 | 5.655172 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 245 | 10 | 57 | 24.5 | 0.863158 | 0 | 0 | 0 | 0 | 0 | 0.187755 | 0.118367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 1 | 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 |
573adbc7a9eb84f9a34a9f068b45969cf61357fe | 1,010 | py | Python | device/palette/create-palette.py | samuel-etver/inc-vist | a64476a60fa91d1277c85b017b95300065411dbf | [
"CC0-1.0"
] | null | null | null | device/palette/create-palette.py | samuel-etver/inc-vist | a64476a60fa91d1277c85b017b95300065411dbf | [
"CC0-1.0"
] | null | null | null | device/palette/create-palette.py | samuel-etver/inc-vist | a64476a60fa91d1277c85b017b95300065411dbf | [
"CC0-1.0"
] | null | null | null | #-----------------------------------------------------------
# create-palette.py
#-----------------------------------------------------------
import StringIO
NL = '\015\012'
FILE_NAME = 'palette.dat'
#-----------------------------------------------------------
def Color8to16(color8):
r = (color8/0x04)/0x08
... | 24.047619 | 60 | 0.410891 | 104 | 1,010 | 3.932692 | 0.432692 | 0.134474 | 0.06846 | 0.09291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086118 | 0.229703 | 1,010 | 41 | 61 | 24.634146 | 0.439589 | 0.251485 | 0 | 0.068966 | 0 | 0 | 0.039947 | 0 | 0 | 0 | 0.058589 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.137931 | 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 |
5749b889fbef8ca96f39af8ed48fc1a6fa974fd6 | 1,712 | py | Python | features.py | deepanjanroy/aml3 | e70999c77a8d4d9c40cdceb1168922e5cd5ea40d | [
"MIT"
] | 1 | 2015-06-24T20:50:51.000Z | 2015-06-24T20:50:51.000Z | features.py | deepanjanroy/aml3 | e70999c77a8d4d9c40cdceb1168922e5cd5ea40d | [
"MIT"
] | null | null | null | features.py | deepanjanroy/aml3 | e70999c77a8d4d9c40cdceb1168922e5cd5ea40d | [
"MIT"
] | null | null | null | import cv2
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import MiniBatchKMeans
import os
def get_sift_features(image_file_paths, k):
''' Given a list of file paths of which to generate sift features,
return a numpy array where each line is the sift features for the
correspondin... | 38.909091 | 115 | 0.736565 | 264 | 1,712 | 4.69697 | 0.44697 | 0.048387 | 0.016935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009993 | 0.181659 | 1,712 | 43 | 116 | 39.813953 | 0.875089 | 0.241822 | 0 | 0 | 0 | 0 | 0.015099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
5754c05fb3b32210b18777bef7c0f1cd1d803341 | 33,186 | py | Python | applications/flota/models/db.py | wasuaje/web2py5 | 02f310b9526f92c4ec62ab5b0271069a1c101e9f | [
"BSD-3-Clause"
] | null | null | null | applications/flota/models/db.py | wasuaje/web2py5 | 02f310b9526f92c4ec62ab5b0271069a1c101e9f | [
"BSD-3-Clause"
] | null | null | null | applications/flota/models/db.py | wasuaje/web2py5 | 02f310b9526f92c4ec62ab5b0271069a1c101e9f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## This scaffolding model makes your app work on Google App Engine too
######################################################################... | 36.750831 | 233 | 0.671729 | 4,703 | 33,186 | 4.535828 | 0.115671 | 0.016314 | 0.04069 | 0.034737 | 0.620758 | 0.554003 | 0.493906 | 0.426402 | 0.385899 | 0.354585 | 0 | 0.003234 | 0.124269 | 33,186 | 902 | 234 | 36.791574 | 0.730782 | 0.15377 | 0 | 0.412943 | 0 | 0.004623 | 0.217953 | 0.023787 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009245 | 0.015408 | null | null | 0.020031 | 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 |
57563e26d1cd0a25bfae14a71d5a0b3bcc88010c | 3,472 | py | Python | py_adb.py | polyzer/py_adb_virustotal_checker | 51ea5485dd23009059659a56f9022e773380eb08 | [
"MIT"
] | 1 | 2022-01-31T17:12:44.000Z | 2022-01-31T17:12:44.000Z | py_adb.py | polyzer/py_adb_virustotal_checker | 51ea5485dd23009059659a56f9022e773380eb08 | [
"MIT"
] | null | null | null | py_adb.py | polyzer/py_adb_virustotal_checker | 51ea5485dd23009059659a56f9022e773380eb08 | [
"MIT"
] | null | null | null | from adb.client import Client as AdbClient
import requests, os, sqlite3, re
class Py_Adb_Program:
def __init__(self):
print("program was starting")
# Default is "127.0.0.1" and 5037
try:
client = AdbClient(host="127.0.0.1", port=5037)
devices = client.devices()
... | 34.039216 | 109 | 0.546083 | 377 | 3,472 | 4.843501 | 0.387268 | 0.024644 | 0.041621 | 0.052574 | 0.169222 | 0.146221 | 0.146221 | 0.043812 | 0 | 0 | 0 | 0.030115 | 0.349654 | 3,472 | 101 | 110 | 34.376238 | 0.778565 | 0.191532 | 0 | 0.231884 | 0 | 0 | 0.402369 | 0.04056 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028986 | null | null | 0.101449 | 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 |
5756741c8cd752cc23587ec90e0d1d240c507001 | 848 | py | Python | python/streamapp/utils/table.py | markub3327/AIGarden | d02f86aba55865a3814e9d0731459053f6c7eabb | [
"MIT"
] | null | null | null | python/streamapp/utils/table.py | markub3327/AIGarden | d02f86aba55865a3814e9d0731459053f6c7eabb | [
"MIT"
] | null | null | null | python/streamapp/utils/table.py | markub3327/AIGarden | d02f86aba55865a3814e9d0731459053f6c7eabb | [
"MIT"
] | null | null | null | class Table:
def __init__(self, table):
self._table = table
@property
def name(self):
return self._table.__name__
@property
def thead(self):
all_fields = self._table._meta.fields
return [
field.verbose_name for field in all_fields if field.verbose_name !... | 22.918919 | 84 | 0.571934 | 98 | 848 | 4.693878 | 0.326531 | 0.136957 | 0.06087 | 0.082609 | 0.413043 | 0.413043 | 0.413043 | 0.413043 | 0.413043 | 0.247826 | 0 | 0 | 0.331368 | 848 | 36 | 85 | 23.555556 | 0.811287 | 0 | 0 | 0.448276 | 0 | 0 | 0.014151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0 | 0.068966 | 0.413793 | 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 |
5757b2e771b502e33078b63368ed2179cc09b1e7 | 500 | py | Python | tests/runnable/test_support/call_runnable_method_on_running_instance.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | tests/runnable/test_support/call_runnable_method_on_running_instance.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | 13 | 2020-05-04T14:14:58.000Z | 2020-07-29T16:37:03.000Z | tests/runnable/test_support/call_runnable_method_on_running_instance.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | from typing import Any, Callable
from unittest import TestCase
from puma.runnable import Runnable
from puma.runnable.runner import ThreadRunner
def call_runnable_method_on_running_instance(test_case: TestCase, runnable_factory: Callable[[], Runnable], test_callback: Callable[[Runnable], Any]) -> None:
runnable =... | 35.714286 | 158 | 0.766 | 59 | 500 | 6.288136 | 0.474576 | 0.043127 | 0.086253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156 | 500 | 13 | 159 | 38.461538 | 0.879147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
575a448e59d6edc19f1001cda703aafe20fe048c | 1,153 | py | Python | services/backend/migrations/versions/340c59e2160c_fix_types_works.py | moxxiq/online-diary | 5949cb5631d49622a31885519a880b17a0816988 | [
"MIT"
] | null | null | null | services/backend/migrations/versions/340c59e2160c_fix_types_works.py | moxxiq/online-diary | 5949cb5631d49622a31885519a880b17a0816988 | [
"MIT"
] | null | null | null | services/backend/migrations/versions/340c59e2160c_fix_types_works.py | moxxiq/online-diary | 5949cb5631d49622a31885519a880b17a0816988 | [
"MIT"
] | null | null | null | """Fix types works
Revision ID: 340c59e2160c
Revises: 874db9c5a19d
Create Date: 2021-12-05 13:47:04.772395
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '340c59e2160c'
down_revision = '874db9c5a19d'
branch_labels = None
depends_on = None
def upgrade():
... | 26.813953 | 65 | 0.565481 | 115 | 1,153 | 5.556522 | 0.513043 | 0.043818 | 0.081377 | 0.112676 | 0.550861 | 0.469484 | 0.469484 | 0.150235 | 0.150235 | 0 | 0 | 0.065245 | 0.30876 | 1,153 | 42 | 66 | 27.452381 | 0.736512 | 0.534258 | 0 | 0.133333 | 0 | 0 | 0.107943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9385d31951fde29a235311147c89c4d81e15479a | 2,534 | py | Python | nextcloud_orm/models/group.py | donhauser/nextcloud-orm | f7fbdd07c92a1f43bfcd0ae1577d55a20e4c5a8c | [
"Apache-2.0"
] | null | null | null | nextcloud_orm/models/group.py | donhauser/nextcloud-orm | f7fbdd07c92a1f43bfcd0ae1577d55a20e4c5a8c | [
"Apache-2.0"
] | 1 | 2022-02-26T18:18:15.000Z | 2022-02-26T18:18:15.000Z | nextcloud_orm/models/group.py | donhauser/nextcloud-orm | f7fbdd07c92a1f43bfcd0ae1577d55a20e4c5a8c | [
"Apache-2.0"
] | null | null | null | from .base import BaseNextcloudObject
from ..managers import NextcloudGroupManager, related
# TODO check if groupfolders is installed!!
class NextcloudGroup(BaseNextcloudObject, manager=NextcloudGroupManager):
synced_attributes = ['name']
synced_relations = ['users', 'subadmins', 'folders']
... | 31.283951 | 99 | 0.619968 | 260 | 2,534 | 5.884615 | 0.365385 | 0.050327 | 0.036601 | 0.041176 | 0.160784 | 0.086275 | 0.086275 | 0.086275 | 0 | 0 | 0 | 0 | 0.292028 | 2,534 | 80 | 100 | 31.675 | 0.852843 | 0.1618 | 0 | 0.131579 | 0 | 0 | 0.074494 | 0.019734 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.184211 | false | 0 | 0.131579 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
93881c09c49f7103630410ffe0ffef4204b4546f | 10,492 | py | Python | views.py | andywar65/accounting | 7bd378f0cea79068cba87537085a74a18d4a3fd2 | [
"BSD-2-Clause"
] | null | null | null | views.py | andywar65/accounting | 7bd378f0cea79068cba87537085a74a18d4a3fd2 | [
"BSD-2-Clause"
] | null | null | null | views.py | andywar65/accounting | 7bd378f0cea79068cba87537085a74a18d4a3fd2 | [
"BSD-2-Clause"
] | null | null | null | from decimal import Decimal
import csv
from datetime import datetime
from imap_tools import MailBox, AND
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404
from django.views.generic import CreateView, UpdateView, FormView, TemplateView
from dja... | 39.592453 | 101 | 0.648208 | 1,173 | 10,492 | 5.633419 | 0.175618 | 0.038287 | 0.038136 | 0.016949 | 0.46701 | 0.391344 | 0.358202 | 0.340194 | 0.331416 | 0.299031 | 0 | 0.00548 | 0.23475 | 10,492 | 264 | 102 | 39.742424 | 0.817536 | 0.109989 | 0 | 0.414141 | 0 | 0 | 0.159682 | 0.074898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065657 | false | 0.060606 | 0.090909 | 0.005051 | 0.469697 | 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 |
9388f3bf7470ca7732992334855b4ec0a22b254c | 51,642 | py | Python | infrastructure-provisioning/src/general/lib/aws/actions_lib.py | yarki/DLab | 8df55ca341722ebfb1cf8a857d997f7b82701f34 | [
"Apache-2.0"
] | 1 | 2021-05-13T05:35:53.000Z | 2021-05-13T05:35:53.000Z | infrastructure-provisioning/src/general/lib/aws/actions_lib.py | yarki/DLab | 8df55ca341722ebfb1cf8a857d997f7b82701f34 | [
"Apache-2.0"
] | null | null | null | infrastructure-provisioning/src/general/lib/aws/actions_lib.py | yarki/DLab | 8df55ca341722ebfb1cf8a857d997f7b82701f34 | [
"Apache-2.0"
] | null | null | null | # *****************************************************************************
#
# Copyright (c) 2016, EPAM SYSTEMS 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.apac... | 54.474684 | 204 | 0.589927 | 5,918 | 51,642 | 4.973978 | 0.090402 | 0.052793 | 0.064105 | 0.079189 | 0.650904 | 0.60725 | 0.588463 | 0.560504 | 0.522218 | 0.486615 | 0 | 0.007766 | 0.284362 | 51,642 | 947 | 205 | 54.532207 | 0.788727 | 0.01553 | 0 | 0.4 | 0 | 0.004762 | 0.209469 | 0.020229 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016667 | null | null | 0.213095 | 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 |
938f755adabfc8f87c7a66662d37d74607072a2c | 10,679 | py | Python | writer1.py | mahongquan/ipy_rtf | 1ac68bd531e1d0f3f12b15a2b10991eb21db0305 | [
"Zlib"
] | null | null | null | writer1.py | mahongquan/ipy_rtf | 1ac68bd531e1d0f3f12b15a2b10991eb21db0305 | [
"Zlib"
] | null | null | null | writer1.py | mahongquan/ipy_rtf | 1ac68bd531e1d0f3f12b15a2b10991eb21db0305 | [
"Zlib"
] | null | null | null | /// <summary>
/// RTF文档书写器
/// </summary>
/// <remarks>
/// 本书写器对生成RTF文档提供了基础的支持
/// 编制 袁永福 http://www.xdesigner.cn
/// </remarks>
public class RTFWriter : System.IDisposable
{
#region 测试代码 ******************************************************
[System.STAThread]
static void Main()
{
TestWrit... | 25.009368 | 87 | 0.46568 | 852 | 10,679 | 5.836854 | 0.258216 | 0.054896 | 0.028956 | 0.029157 | 0.173537 | 0.113211 | 0.073195 | 0.058315 | 0.026543 | 0.026543 | 0 | 0.013664 | 0.376346 | 10,679 | 427 | 88 | 25.009368 | 0.733033 | 0.014046 | 0 | 0.286445 | 0 | 0 | 0.030119 | 0 | 0 | 0 | 0.00133 | 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 |
939424da1925dc95af1410b1eff78e5a3eb52cc3 | 1,746 | py | Python | setup.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-03-18T18:27:49.000Z | 2019-03-18T18:27:49.000Z | setup.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-17T21:33:15.000Z | 2020-12-17T21:35:41.000Z | setup.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-01-05T08:23:20.000Z | 2021-01-05T08:23:20.000Z | """
Installer for ScSF
"""
from pip.req import parse_requirements
from setuptools import setup, find_packages
# Synchronize version from code.
version = "0.1"
# Do the setup
setup(
name="scsf",
packages=find_packages(),
version=version,
extras_require={},
install_requires=[str(ir.req) for ir in
... | 37.148936 | 76 | 0.665521 | 188 | 1,746 | 6.138298 | 0.638298 | 0.098787 | 0.129983 | 0.090121 | 0.046794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.215349 | 1,746 | 47 | 77 | 37.148936 | 0.827737 | 0.036082 | 0 | 0 | 0 | 0.025641 | 0.632836 | 0.027463 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 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 |
93958c7437fa5903f3d3eade802f35c186074d66 | 1,382 | py | Python | Challenges/ZeroDays 2018/Bonus/6 OuTPost/otp.py | victorazzam/stash | c9c9a4c32e5118835d1891fef5b7f27bd3062bb3 | [
"MIT"
] | 5 | 2016-12-17T20:11:26.000Z | 2020-02-13T08:31:44.000Z | Challenges/ZeroDays 2018/Bonus/6 OuTPost/otp.py | victorazzam/stash | c9c9a4c32e5118835d1891fef5b7f27bd3062bb3 | [
"MIT"
] | null | null | null | Challenges/ZeroDays 2018/Bonus/6 OuTPost/otp.py | victorazzam/stash | c9c9a4c32e5118835d1891fef5b7f27bd3062bb3 | [
"MIT"
] | 3 | 2019-04-03T14:41:40.000Z | 2020-02-14T19:03:37.000Z | #!/usr/bin/python
#
# Straddling checkerboard implementation
# Author: Victor Azzam
from sys import stdout as s
# Used in the checkerboard, length must be 10 with 2 spaces
word = " ZERO DAYS"
word = list("{:10}".format(word.upper()))
tmp = [chr(x) for x in range(65, 91) if chr(x) not in word]
one, two = [" "] + tmp[... | 25.592593 | 96 | 0.597685 | 239 | 1,382 | 3.456067 | 0.464435 | 0.054479 | 0.012107 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139873 | 0.203329 | 1,382 | 54 | 97 | 25.592593 | 0.610354 | 0.222865 | 0 | 0.117647 | 0 | 0 | 0.17968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.117647 | 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 |
93997b1e1c930693e6ea93fdcd82649a5c136742 | 270 | py | Python | merklelib/__init__.py | pritchardn/merklelib | c9114649fcc1662d72f24b554266b0a6854d6459 | [
"MIT"
] | null | null | null | merklelib/__init__.py | pritchardn/merklelib | c9114649fcc1662d72f24b554266b0a6854d6459 | [
"MIT"
] | null | null | null | merklelib/__init__.py | pritchardn/merklelib | c9114649fcc1662d72f24b554266b0a6854d6459 | [
"MIT"
] | null | null | null | __version__ = "1.0"
__all__ = [
"MerkleTree",
"AuditProof",
"Hasher",
"verify_leaf_inclusion",
"verify_tree_consistency",
"AuditNode",
"beautify",
"jsonify",
"export",
]
from merklelib.merkle import *
from merklelib.format import *
| 15.882353 | 30 | 0.62963 | 25 | 270 | 6.32 | 0.84 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.22963 | 270 | 16 | 31 | 16.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.381481 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
939bb0263776c72c94d89268acc086c40e8a0390 | 392 | py | Python | Day 28/Day_28_Python.py | giTan7/30-Days-Of-Code | f023a2bf1b5e58e1eb5180162443b9cd4b6b2ff8 | [
"MIT"
] | 1 | 2020-10-15T14:44:08.000Z | 2020-10-15T14:44:08.000Z | Day 28/Day_28_Python.py | giTan7/30-Days-Of-Code | f023a2bf1b5e58e1eb5180162443b9cd4b6b2ff8 | [
"MIT"
] | null | null | null | Day 28/Day_28_Python.py | giTan7/30-Days-Of-Code | f023a2bf1b5e58e1eb5180162443b9cd4b6b2ff8 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
N = int(input())
name_list = []
for N_itr in range(N):
name, mail = input().split()
if re.search(r'.*@gmail\.com',mail):
name_list.append(name)
# . means 'all' in regex so we... | 19.6 | 63 | 0.596939 | 58 | 392 | 3.827586 | 0.672414 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.257653 | 392 | 19 | 64 | 20.631579 | 0.75945 | 0.181122 | 0 | 0 | 0 | 0 | 0.072327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
93a0b6db1f02f92ba27e3eedf1d93c3e02505f1c | 1,122 | py | Python | tests/python/gaia-ui-tests/gaiatest/tests/functional/emergency_call/test_does_not_dial_regular_phones.py | TheoChevalier/gaia | 803d04e3829fd4fe9261211aa0ddca6b79d4e328 | [
"Apache-2.0"
] | 3 | 2016-08-17T08:52:51.000Z | 2020-03-29T04:56:45.000Z | tests/python/gaia-ui-tests/gaiatest/tests/functional/emergency_call/test_does_not_dial_regular_phones.py | TheoChevalier/gaia | 803d04e3829fd4fe9261211aa0ddca6b79d4e328 | [
"Apache-2.0"
] | 1 | 2017-02-21T21:36:12.000Z | 2017-02-21T21:36:30.000Z | tests/python/gaia-ui-tests/gaiatest/tests/functional/emergency_call/test_does_not_dial_regular_phones.py | TheoChevalier/gaia | 803d04e3829fd4fe9261211aa0ddca6b79d4e328 | [
"Apache-2.0"
] | 3 | 2019-03-31T04:27:13.000Z | 2020-04-12T17:58:15.000Z | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
from gaiatest.apps.lockscreen.app import LockScreen
class TestEmergencyCall(GaiaTest... | 36.193548 | 85 | 0.735294 | 152 | 1,122 | 5.151316 | 0.546053 | 0.132822 | 0.048531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009761 | 0.178253 | 1,122 | 30 | 86 | 37.4 | 0.839479 | 0.213904 | 0 | 0 | 0 | 0 | 0.059579 | 0.037383 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0.1875 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
93b00b1efcd3ed91b81b80deab7ec4fd8a8951ad | 624 | py | Python | aionetworking/settings.py | primal100/aionetworking | a29cbb022cbae1a4ad1c3d44327e9d0b0c930227 | [
"MIT"
] | null | null | null | aionetworking/settings.py | primal100/aionetworking | a29cbb022cbae1a4ad1c3d44327e9d0b0c930227 | [
"MIT"
] | 1 | 2018-12-23T00:50:33.000Z | 2018-12-23T00:50:33.000Z | aionetworking/settings.py | primal100/aionetworking | a29cbb022cbae1a4ad1c3d44327e9d0b0c930227 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
import aiofiles
import tempfile
import sys
from aionetworking.compatibility import py37
APP_NAME = 'AIONetworking'
FILE_OPENER = aiofiles.open
APP_CONFIG = {}
def __getattr__(name):
path = None
if name == 'TEMPDIR':
path = Path(tempfile.gettempdir()) / sys.modules[... | 22.285714 | 92 | 0.685897 | 81 | 624 | 5 | 0.469136 | 0.051852 | 0.069136 | 0.083951 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026104 | 0.201923 | 624 | 27 | 93 | 23.111111 | 0.787149 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
93b88b2a4313187b0026a093581e769bd6b4e4c4 | 4,224 | py | Python | tests/iterators_tests/test_balanced_serial_iterator.py | delta2323/chainerchem | 364dd2b26aec2d0b25d5e2b30a9510a9d44814af | [
"MIT"
] | null | null | null | tests/iterators_tests/test_balanced_serial_iterator.py | delta2323/chainerchem | 364dd2b26aec2d0b25d5e2b30a9510a9d44814af | [
"MIT"
] | null | null | null | tests/iterators_tests/test_balanced_serial_iterator.py | delta2323/chainerchem | 364dd2b26aec2d0b25d5e2b30a9510a9d44814af | [
"MIT"
] | null | null | null | import numpy
import pytest
from chainer_chemistry.datasets.numpy_tuple_dataset import NumpyTupleDataset
from chainer_chemistry.iterators.balanced_serial_iterator import BalancedSerialIterator # NOQA
from chainer_chemistry.iterators.balanced_serial_iterator import IndexIterator # NOQA
def test_index_iterator():
... | 36.730435 | 95 | 0.674006 | 552 | 4,224 | 4.907609 | 0.181159 | 0.053156 | 0.056848 | 0.046512 | 0.702473 | 0.619417 | 0.55814 | 0.479882 | 0.4378 | 0.4378 | 0 | 0.040594 | 0.218513 | 4,224 | 114 | 96 | 37.052632 | 0.780067 | 0.133996 | 0 | 0.390244 | 0 | 0 | 0.003295 | 0 | 0 | 0 | 0 | 0 | 0.414634 | 1 | 0.073171 | false | 0 | 0.060976 | 0 | 0.134146 | 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 |
93bda0fffcdd54ee97ea62358c814bf7f57e8f16 | 787 | py | Python | setup.py | myQLM/qscore | d895c474bb190f097c3a5c4c6fcb85355472fd5f | [
"Apache-2.0"
] | 3 | 2021-04-07T12:08:24.000Z | 2022-03-09T12:30:21.000Z | setup.py | myQLM/qscore | d895c474bb190f097c3a5c4c6fcb85355472fd5f | [
"Apache-2.0"
] | null | null | null | setup.py | myQLM/qscore | d895c474bb190f097c3a5c4c6fcb85355472fd5f | [
"Apache-2.0"
] | 2 | 2021-03-10T18:09:59.000Z | 2021-05-05T08:03:54.000Z | # -*- coding: utf-8 -*-
"""
Setup for qat-qscore
"""
import importlib
from setuptools import setup, find_packages
def detect_if_qlm():
"""
Detects if this setup is run in a complete QLM environement.
If not, we will need to add myQLM to the dependencies of the package.
"""
try:
importlib.i... | 26.233333 | 86 | 0.659466 | 100 | 787 | 5.11 | 0.63 | 0.035225 | 0.043053 | 0.086106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006504 | 0.218551 | 787 | 29 | 87 | 27.137931 | 0.82439 | 0.221093 | 0 | 0 | 0 | 0 | 0.322526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | true | 0 | 0.176471 | 0 | 0.352941 | 0.117647 | 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 |
93cb102b197e5014a9938ccb63d72d80d67020bb | 2,798 | py | Python | module1/s2_sparql.py | Koloyo/Koloyo.github.io | 02b350c55da4843838cc4439d61350467020ea6f | [
"MIT"
] | null | null | null | module1/s2_sparql.py | Koloyo/Koloyo.github.io | 02b350c55da4843838cc4439d61350467020ea6f | [
"MIT"
] | null | null | null | module1/s2_sparql.py | Koloyo/Koloyo.github.io | 02b350c55da4843838cc4439d61350467020ea6f | [
"MIT"
] | null | null | null | """Query Wikidata for Belgian politicians"""
import argparse
from datetime import datetime as dt
from SPARQLWrapper import SPARQLWrapper, JSON
parser = argparse.ArgumentParser()
parser.add_argument('-f', '--filter', type=str, help='Filtering on name')
parser.add_argument('-n', '--number', type=int, help='Number of r... | 39.971429 | 162 | 0.683703 | 398 | 2,798 | 4.459799 | 0.326633 | 0.057465 | 0.143662 | 0.162817 | 0.250141 | 0.239437 | 0.239437 | 0.180845 | 0.179718 | 0.179718 | 0 | 0.016889 | 0.195854 | 2,798 | 69 | 163 | 40.550725 | 0.772 | 0.036455 | 0 | 0.035714 | 0 | 0 | 0.374627 | 0.093657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.053571 | 0 | 0.107143 | 0.071429 | 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 |
93cf1a0c52657413e9a3ad7778915685b8a62ca2 | 1,459 | py | Python | tests/conftest.py | manuphatak/cache_requests | 6fc03cbd7a47f72c03dff9407f064308b5ae58b3 | [
"MIT"
] | 6 | 2015-04-23T08:21:03.000Z | 2017-03-18T17:30:41.000Z | tests/conftest.py | manuphatak/cache_requests | 6fc03cbd7a47f72c03dff9407f064308b5ae58b3 | [
"MIT"
] | 13 | 2015-04-28T01:53:56.000Z | 2020-02-05T18:51:59.000Z | tests/conftest.py | manuphatak/cache_requests | 6fc03cbd7a47f72c03dff9407f064308b5ae58b3 | [
"MIT"
] | 6 | 2016-06-11T10:22:00.000Z | 2020-02-14T07:29:59.000Z | #!/usr/bin/env python
# coding=utf-8
from functools import partial
from mock import Mock
from pytest import fixture
@fixture(autouse=True)
def a_function_setup(tmpdir, monkeypatch):
"""
:type tmpdir: py.path.local
:type monkeypatch: _pytest.monkeypatch.monkeypatch
"""
from redislite import Stric... | 25.155172 | 94 | 0.721042 | 168 | 1,459 | 6.071429 | 0.369048 | 0.15 | 0.067647 | 0.091176 | 0.127451 | 0.127451 | 0.127451 | 0.127451 | 0 | 0 | 0 | 0.000829 | 0.172721 | 1,459 | 57 | 95 | 25.596491 | 0.844242 | 0.107608 | 0 | 0.060606 | 0 | 0 | 0.122257 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.151515 | 0.030303 | 0.424242 | 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 |
93d85fbd4fce3ec3cbb92d7ed85d89c804ab7aeb | 3,556 | py | Python | billiards/billiards/bcms.py | zxkane/billiards | 809a37b111a0fdbf7a2b1176149256b93c43045f | [
"Apache-1.1"
] | null | null | null | billiards/billiards/bcms.py | zxkane/billiards | 809a37b111a0fdbf7a2b1176149256b93c43045f | [
"Apache-1.1"
] | null | null | null | billiards/billiards/bcms.py | zxkane/billiards | 809a37b111a0fdbf7a2b1176149256b93c43045f | [
"Apache-1.1"
] | 1 | 2021-02-08T13:19:34.000Z | 2021-02-08T13:19:34.000Z | # -*- coding: utf-8 -*-
# encoding: utf-8
'''
Created on 2014年3月9日
@author: kane
'''
import time
from billiards import settings
import json
import hashlib
from django.utils.http import urlencode, urlquote_plus
import logging
import requests
from requests.exceptions import HTTPError
from django.utils import simplejson
... | 31.192982 | 138 | 0.664792 | 394 | 3,556 | 5.898477 | 0.373096 | 0.078313 | 0.080034 | 0.095525 | 0.121343 | 0.067126 | 0.067126 | 0.067126 | 0.067126 | 0.067126 | 0 | 0.041302 | 0.196569 | 3,556 | 114 | 139 | 31.192982 | 0.772139 | 0.115861 | 0 | 0.2 | 0 | 0 | 0.17205 | 0.021424 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1125 | 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 |
93f0e700436e283957c19a05270b3ec0f1cd5eb0 | 27,021 | py | Python | src/droidbox.py | xakepru/x14.12-xmobile-droidbox | 235e7b2ce99f2ee7e46daab56531743cf5ccac9e | [
"MIT"
] | 2 | 2017-12-06T18:09:17.000Z | 2018-04-02T08:52:29.000Z | src/droidbox.py | xakepru/x14.12-xmobile-droidbox | 235e7b2ce99f2ee7e46daab56531743cf5ccac9e | [
"MIT"
] | null | null | null | src/droidbox.py | xakepru/x14.12-xmobile-droidbox | 235e7b2ce99f2ee7e46daab56531743cf5ccac9e | [
"MIT"
] | 1 | 2018-04-02T08:52:49.000Z | 2018-04-02T08:52:49.000Z | # ###############################################################################
# (c) 2011, The Honeynet Project
# Author: Patrik Lantz patrik@pjlantz.com and Laurent Delosieres ldelosieres@hispasec.com
#
# This program is free software you can redistribute it and/or modify
# it under the terms of the GNU General Pub... | 35.647757 | 208 | 0.521224 | 2,692 | 27,021 | 5.152303 | 0.247028 | 0.014708 | 0.007787 | 0.010382 | 0.154001 | 0.119539 | 0.083057 | 0.068926 | 0.068926 | 0.064888 | 0 | 0.021332 | 0.344214 | 27,021 | 757 | 209 | 35.694848 | 0.7614 | 0.076607 | 0 | 0.184825 | 0 | 0.011673 | 0.141576 | 0.001116 | 0 | 0 | 0.005321 | 0 | 0 | 0 | null | null | 0.007782 | 0.035019 | null | null | 0.040856 | 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 |
93f4381c385e26d90797cc1227ec4fbf788e9c28 | 15,760 | py | Python | contrib/flotgrapher/lib/flotgrapher/grapher.py | rapidsms/rapidsms-legacy | 43c2ecd41fd1541a2538326edee3d9e816d84529 | [
"BSD-3-Clause"
] | null | null | null | contrib/flotgrapher/lib/flotgrapher/grapher.py | rapidsms/rapidsms-legacy | 43c2ecd41fd1541a2538326edee3d9e816d84529 | [
"BSD-3-Clause"
] | null | null | null | contrib/flotgrapher/lib/flotgrapher/grapher.py | rapidsms/rapidsms-legacy | 43c2ecd41fd1541a2538326edee3d9e816d84529 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T19:35:54.000Z | 2019-11-02T19:35:54.000Z | '''Generates a javascript string to display flot graphs.
Please read README_flot_grapher.txt
Eliane Stampfer: eliane.stampfer@gmail.com
April 2009'''
class FlotGraph(object):
#constructor. Accepts an array of data, a title, an array of toggle-able data, and the
#width and height of the graph. All of these valu... | 34.112554 | 143 | 0.613515 | 2,253 | 15,760 | 4.113182 | 0.121172 | 0.021798 | 0.021042 | 0.012949 | 0.335923 | 0.224452 | 0.157872 | 0.128197 | 0.104996 | 0.058919 | 0 | 0.006963 | 0.189023 | 15,760 | 461 | 144 | 34.186551 | 0.718097 | 0.075635 | 0 | 0.162602 | 1 | 0.01626 | 0.165864 | 0.0377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135501 | false | 0 | 0 | 0.054201 | 0.227642 | 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 |
93f6ed2a82ea7d868537dbfb7993bc8f952f7342 | 597 | py | Python | custom_components/react/sensor.py | gertjanstulp/ha-react | 131359cd0265d64a86aa002c56c263e5b3eaf17a | [
"Apache-2.0"
] | null | null | null | custom_components/react/sensor.py | gertjanstulp/ha-react | 131359cd0265d64a86aa002c56c263e5b3eaf17a | [
"Apache-2.0"
] | null | null | null | custom_components/react/sensor.py | gertjanstulp/ha-react | 131359cd0265d64a86aa002c56c263e5b3eaf17a | [
"Apache-2.0"
] | null | null | null | from homeassistant.core import HomeAssistant
from . import const as co
from .lib.reaction_entities import get as ReactionEntityManager
def entity_exists_in_hass(hass, entity_id):
return hass.states.get(entity_id) is not None
async def async_setup(hass, config):
return True
async def async_s... | 27.136364 | 102 | 0.762144 | 81 | 597 | 5.382716 | 0.419753 | 0.055046 | 0.08945 | 0.123853 | 0.12844 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172529 | 597 | 22 | 103 | 27.136364 | 0.882591 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 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 |
93f8273e1ef73f680f7f3d91a0ecbf4dc097c1a6 | 1,442 | py | Python | usergrid/__init__.py | cclauss/usergrid-python | 854dac7dd97334245b75b505f20e2235c0d29111 | [
"Apache-2.0"
] | 7 | 2016-11-11T02:52:00.000Z | 2021-11-10T15:37:47.000Z | usergrid/__init__.py | cclauss/usergrid-python | 854dac7dd97334245b75b505f20e2235c0d29111 | [
"Apache-2.0"
] | null | null | null | usergrid/__init__.py | cclauss/usergrid-python | 854dac7dd97334245b75b505f20e2235c0d29111 | [
"Apache-2.0"
] | 5 | 2017-08-02T21:01:24.000Z | 2021-11-10T15:37:37.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. The ASF licenses this file to You
# 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
#
# ... | 37.947368 | 75 | 0.769764 | 165 | 1,442 | 6.70303 | 0.545455 | 0.05425 | 0.023508 | 0.028933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003339 | 0.169209 | 1,442 | 37 | 76 | 38.972973 | 0.919866 | 0.554092 | 0 | 0 | 0 | 0 | 0.288 | 0.0736 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 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 |
93fbb72a439dbdc183c532476ac26f3f989545c3 | 1,645 | py | Python | test.py | luxizh/Med_image_tool | a5e34339a201a6e97b634a6ec5f6aaff6352b1b0 | [
"Apache-2.0"
] | null | null | null | test.py | luxizh/Med_image_tool | a5e34339a201a6e97b634a6ec5f6aaff6352b1b0 | [
"Apache-2.0"
] | null | null | null | test.py | luxizh/Med_image_tool | a5e34339a201a6e97b634a6ec5f6aaff6352b1b0 | [
"Apache-2.0"
] | null | null | null | '''
a='1.1'
b='1'
l1=a.partition('.')
l2=b.partition('.')
print(l1)
print(l2)
c='new'
print(c+l1[1]+l1[2])
print(c+l2[1]+l2[2])
'''
'''
while '.DS_Store' in l:
l.remove('.DS_Store')
len(l)
'''
'''
import csv
f=open('sum.csv','rt')
f_csv=csv.reader(f)
print(type(f_csv))
h=next(f_csv)
print(h)
for r in f_csv:
p... | 17.688172 | 87 | 0.620061 | 300 | 1,645 | 3.35 | 0.273333 | 0.029851 | 0.039801 | 0.035821 | 0.360199 | 0.321393 | 0.321393 | 0.232836 | 0.149254 | 0.149254 | 0 | 0.030812 | 0.131915 | 1,645 | 93 | 88 | 17.688172 | 0.672969 | 0.074772 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
93fd1f33efda6e4f738b9b17f23f11f42d18732f | 1,291 | py | Python | multilingual_orgs/tests/models_tests.py | bitlabstudio/django-multilingual-orgs | bc244d113c0e461a2f649064cce71d63da1494a4 | [
"MIT"
] | null | null | null | multilingual_orgs/tests/models_tests.py | bitlabstudio/django-multilingual-orgs | bc244d113c0e461a2f649064cce71d63da1494a4 | [
"MIT"
] | 7 | 2020-06-05T17:22:02.000Z | 2022-03-11T23:15:35.000Z | multilingual_orgs/tests/models_tests.py | bitlabstudio/django-multilingual-orgs | bc244d113c0e461a2f649064cce71d63da1494a4 | [
"MIT"
] | null | null | null | """Tests for the models of the ``multilingual_orgs`` app."""
from django.test import TestCase
from people.tests.factories import PersonFactory
from .factories import (
OrganizationFactory,
OrganizationPersonRoleFactory,
OrganizationPluginModelFactory,
)
class OrganizationTestCase(TestCase):
"""Tests... | 30.023256 | 65 | 0.691712 | 132 | 1,291 | 6.719697 | 0.401515 | 0.036077 | 0.049605 | 0.064262 | 0.349493 | 0.349493 | 0.349493 | 0.308906 | 0.22097 | 0.22097 | 0 | 0 | 0.210689 | 1,291 | 42 | 66 | 30.738095 | 0.870461 | 0.187452 | 0 | 0.461538 | 0 | 0 | 0.144942 | 0 | 0 | 0 | 0 | 0.02381 | 0.115385 | 1 | 0.115385 | false | 0 | 0.115385 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
93fda848ac4c9a71340a5c94c2d6b0e091ccd45d | 1,669 | py | Python | app/user/serializer.py | Mosh2018/my-family-api | 61168f6d80d1bb02a2764ded9ccfeb3142559e6e | [
"MIT"
] | null | null | null | app/user/serializer.py | Mosh2018/my-family-api | 61168f6d80d1bb02a2764ded9ccfeb3142559e6e | [
"MIT"
] | null | null | null | app/user/serializer.py | Mosh2018/my-family-api | 61168f6d80d1bb02a2764ded9ccfeb3142559e6e | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model, authenticate
from rest_framework import serializers
from rest_framework.serializers import ModelSerializer, Serializer
from django.utils.translation import ugettext_lazy as _
class UserSerializer(ModelSerializer):
"""Serialiser for user"""
class Meta:
m... | 29.280702 | 76 | 0.643499 | 173 | 1,669 | 6.075145 | 0.456647 | 0.061846 | 0.034253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000803 | 0.254044 | 1,669 | 56 | 77 | 29.803571 | 0.843373 | 0.075494 | 0 | 0 | 0 | 0 | 0.106439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.243243 | 0.108108 | 0 | 0.405405 | 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 |
93fe82e323812eadd433b9c919e150cbc0f3c488 | 1,758 | py | Python | postgresql_assignment.py | Lopez-John/lambdata-Lopez-John | 97f127d16a6f6304b62e9c13b5c8086ca98525bc | [
"MIT"
] | null | null | null | postgresql_assignment.py | Lopez-John/lambdata-Lopez-John | 97f127d16a6f6304b62e9c13b5c8086ca98525bc | [
"MIT"
] | null | null | null | postgresql_assignment.py | Lopez-John/lambdata-Lopez-John | 97f127d16a6f6304b62e9c13b5c8086ca98525bc | [
"MIT"
] | 1 | 2020-12-01T23:06:12.000Z | 2020-12-01T23:06:12.000Z | """Creates a new table of characters in PostGreSQL from a characters in
a table in sqlite3"""
import sqlite3
import psycopg2
DBNAME = 'ytwptqxp'
USER = 'ytwptqxp'
PASSWORD = '***'
HOST = 'suleiman.db.elephantsql.com'
#Queries
create_character_table = """
CREATE TABLE charactercreator_character (
charact... | 27.904762 | 74 | 0.677474 | 218 | 1,758 | 5.197248 | 0.302752 | 0.03707 | 0.028244 | 0.042365 | 0.153575 | 0.153575 | 0.153575 | 0.153575 | 0.153575 | 0 | 0 | 0.007391 | 0.230375 | 1,758 | 62 | 75 | 28.354839 | 0.830007 | 0.112059 | 0 | 0.042553 | 0 | 0 | 0.342139 | 0.068299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.06383 | 0.042553 | 0 | 0.148936 | 0.021277 | 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 |
93fecf6c01f27d4c257d2effd5feca0293fa8b9a | 507 | py | Python | nbsvg/components/html.py | JoaoFelipe/nbsvg | 12b2504915da12167c9abb57195683f550813e34 | [
"MIT"
] | null | null | null | nbsvg/components/html.py | JoaoFelipe/nbsvg | 12b2504915da12167c9abb57195683f550813e34 | [
"MIT"
] | null | null | null | nbsvg/components/html.py | JoaoFelipe/nbsvg | 12b2504915da12167c9abb57195683f550813e34 | [
"MIT"
] | null | null | null | from .image import Image
from .base import StylizedElement
class HTML(StylizedElement):
def __init__(self, html, **kwargs):
super().__init__(**kwargs)
self.html = html
def build(self, style):
import imgkit
res = imgkit.from_string(self.html, False)
image = Image(res).d... | 25.35 | 50 | 0.621302 | 62 | 507 | 4.854839 | 0.419355 | 0.106312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266272 | 507 | 19 | 51 | 26.684211 | 0.80914 | 0 | 0 | 0 | 0 | 0 | 0.037475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 0.533333 | 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 |
9e0a5af497c5ca7d55b423e240a1dbfe2fe09e9f | 1,807 | py | Python | datapackage_storage/resource.py | okfn/datapackage-storage-py | 379acadf49b8382c9acc6ed54b3f9a2dbf221e05 | [
"MIT"
] | 3 | 2016-01-30T17:15:10.000Z | 2016-03-11T16:46:20.000Z | datapackage_storage/resource.py | okfn/datapackage-storage-py | 379acadf49b8382c9acc6ed54b3f9a2dbf221e05 | [
"MIT"
] | 5 | 2016-01-30T18:57:45.000Z | 2016-03-28T10:19:22.000Z | datapackage_storage/resource.py | okfn/datapackage-storage-py | 379acadf49b8382c9acc6ed54b3f9a2dbf221e05 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import io
import json
import unicodecsv as csv
from tabulator import topen
from jsontableschema.model import SchemaModel
from . import helpers
... | 22.873418 | 60 | 0.639181 | 216 | 1,807 | 5.222222 | 0.305556 | 0.035461 | 0.056738 | 0.046099 | 0.251773 | 0.198582 | 0.198582 | 0.198582 | 0.198582 | 0.198582 | 0 | 0.002278 | 0.271168 | 1,807 | 78 | 61 | 23.166667 | 0.854214 | 0.275042 | 0 | 0.060606 | 0 | 0 | 0.005824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.333333 | 0 | 0.393939 | 0.030303 | 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 |
9e0e81196e8a9cbe3224f3415c217f444b297810 | 744 | py | Python | skyhook/skyhook/middlewares/retry.py | wfgydbu/skyhook | 8577d903bef90110646860fa6c59543c6a60d053 | [
"BSD-2-Clause"
] | 2 | 2020-04-20T15:36:08.000Z | 2020-07-15T00:50:04.000Z | skyhook/skyhook/middlewares/retry.py | wfgydbu/skyhook | 8577d903bef90110646860fa6c59543c6a60d053 | [
"BSD-2-Clause"
] | 1 | 2021-03-31T19:44:32.000Z | 2021-03-31T19:44:32.000Z | skyhook/skyhook/middlewares/retry.py | wfgydbu/skyhook | 8577d903bef90110646860fa6c59543c6a60d053 | [
"BSD-2-Clause"
] | 2 | 2020-04-28T01:37:20.000Z | 2020-07-02T04:47:37.000Z | from scrapy.downloadermiddlewares.retry import RetryMiddleware
from scrapy.utils.response import response_status_message
class FeedBackRetryMiddleware(RetryMiddleware):
def process_response(self, request, response, spider):
if request.meta.get('dont_retry', False):
return response
if ... | 39.157895 | 105 | 0.731183 | 85 | 744 | 6.235294 | 0.4 | 0.10566 | 0.079245 | 0.067925 | 0.128302 | 0.128302 | 0.128302 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 744 | 18 | 106 | 41.333333 | 0.883333 | 0 | 0 | 0.153846 | 0 | 0 | 0.026882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.692308 | 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 |
9e14e99f617a35f1150fa8b7e5bbfab683190db2 | 445 | py | Python | Metabolite_Sampling/HnR_Sampling/read_equilibrator_dg.py | MJanasch/KX_Kinetics | 04132e32ba607273a5481cf30d2e37354b3c7e97 | [
"MIT"
] | null | null | null | Metabolite_Sampling/HnR_Sampling/read_equilibrator_dg.py | MJanasch/KX_Kinetics | 04132e32ba607273a5481cf30d2e37354b3c7e97 | [
"MIT"
] | null | null | null | Metabolite_Sampling/HnR_Sampling/read_equilibrator_dg.py | MJanasch/KX_Kinetics | 04132e32ba607273a5481cf30d2e37354b3c7e97 | [
"MIT"
] | null | null | null | # read delta G values from equilibrator_results.tsv
infile = open('equilibrator_results.tsv', 'r')
import numpy as np
def read_dg(infile):
dg_list = []
for line in infile:
if not line.startswith("'"): # skips line with headers
pass
else:
line = line.strip("\n")
line_list = line.split("\t")
dg = lin... | 20.227273 | 56 | 0.658427 | 70 | 445 | 4.042857 | 0.557143 | 0.063604 | 0.155477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.186517 | 445 | 21 | 57 | 21.190476 | 0.776243 | 0.164045 | 0 | 0 | 0 | 0 | 0.086721 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0 | 0.133333 | 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 |
9e16bf70cd32664f7248142f57e9f210cb727df9 | 967 | py | Python | django/api/tests/ftp.py | popkinj/itvr | 42367178c58154a8f25e1d6e513a9bd832028199 | [
"Apache-2.0"
] | null | null | null | django/api/tests/ftp.py | popkinj/itvr | 42367178c58154a8f25e1d6e513a9bd832028199 | [
"Apache-2.0"
] | null | null | null | django/api/tests/ftp.py | popkinj/itvr | 42367178c58154a8f25e1d6e513a9bd832028199 | [
"Apache-2.0"
] | null | null | null | from ftplib import FTP
from io import StringIO
import re
import sys
# Connect to local ftp server
ftp = FTP(host='localhost', user='user',passwd='1234')
###################### Download ###########################
# Store output for later
old_stdout = sys.stdout
# Redirect output
result = StringIO()
sys.stdout = res... | 22.488372 | 59 | 0.557394 | 107 | 967 | 5.018692 | 0.598131 | 0.050279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010676 | 0.128232 | 967 | 43 | 60 | 22.488372 | 0.626335 | 0.228542 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.222222 | 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 |
9e24e89cf4b358d4fd0558d188c02e65a1628827 | 2,310 | py | Python | Mojitobooks/mojitobooks/models.py | Duomigo/deckslash-backend | d8ee9106d543e0d97a40a25cde2d554d9dead4b1 | [
"MIT"
] | null | null | null | Mojitobooks/mojitobooks/models.py | Duomigo/deckslash-backend | d8ee9106d543e0d97a40a25cde2d554d9dead4b1 | [
"MIT"
] | null | null | null | Mojitobooks/mojitobooks/models.py | Duomigo/deckslash-backend | d8ee9106d543e0d97a40a25cde2d554d9dead4b1 | [
"MIT"
] | null | null | null | from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from datetime import datetime
from mojitobooks import db, ma, app
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
public_id = db.Column(db.String(50), unique=True)
username = db.Column(db.String(20), unique=True, null... | 40.526316 | 101 | 0.655411 | 303 | 2,310 | 4.887789 | 0.29703 | 0.09183 | 0.114787 | 0.097232 | 0.304524 | 0.206617 | 0.167454 | 0.12424 | 0.12424 | 0.054018 | 0 | 0.015086 | 0.196537 | 2,310 | 56 | 102 | 41.25 | 0.782866 | 0 | 0 | 0.125 | 0 | 0 | 0.125541 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.020833 | 0.0625 | 0.041667 | 0.75 | 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 |
9e257d86b409341ae7f56baf6587ec04c768a09d | 340 | py | Python | file_load.py | RichardBlazek/PyImperit | 2d93e56e3c12e33098a0cda6cedd8e099ef02955 | [
"MIT"
] | null | null | null | file_load.py | RichardBlazek/PyImperit | 2d93e56e3c12e33098a0cda6cedd8e099ef02955 | [
"MIT"
] | null | null | null | file_load.py | RichardBlazek/PyImperit | 2d93e56e3c12e33098a0cda6cedd8e099ef02955 | [
"MIT"
] | null | null | null | class FileLoader:
def __init__(self, path, scope=None):
self._path=path
self._scope=scope
@property
def value(self):
with open(self._path, encoding='UTF-8') as f:
return eval(f.read(), self._scope)
@value.setter
def value(self, new_value):
with open(self._path, mode='w', encoding='UTF-8') as f:
f.wr... | 26.153846 | 57 | 0.694118 | 56 | 340 | 4.017857 | 0.464286 | 0.142222 | 0.106667 | 0.142222 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006873 | 0.144118 | 340 | 13 | 58 | 26.153846 | 0.766323 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f50b8cf6a0fd7f3e7cc512addda56435728e07cf | 12,396 | py | Python | esnet/src/main/resources/Lib/layer2/testbed/tbip.py | esnet/enos | 460ddf07dc3c78394246753166bf119a15809074 | [
"BSD-3-Clause-LBNL"
] | 10 | 2016-02-12T19:11:14.000Z | 2019-04-15T08:56:54.000Z | esnet/src/main/resources/Lib/layer2/testbed/tbip.py | esnet/enos | 460ddf07dc3c78394246753166bf119a15809074 | [
"BSD-3-Clause-LBNL"
] | 99 | 2016-04-11T15:58:20.000Z | 2016-07-25T17:22:01.000Z | esnet/src/main/resources/Lib/layer2/testbed/tbip.py | esnet/enos | 460ddf07dc3c78394246753166bf119a15809074 | [
"BSD-3-Clause-LBNL"
] | 2 | 2016-01-19T14:35:28.000Z | 2019-08-25T21:30:05.000Z | #/usr/bin/python
#
# ESnet Network Operating System (ENos) Copyright (c) 2015, The Regents
# of the University of California, through Lawrence Berkeley National
# Laboratory (subject to receipt of any required approvals from the
# U.S. Dept. of Energy). All rights reserved.
#
# If you have questions about your rights... | 33.502703 | 98 | 0.643595 | 1,376 | 12,396 | 5.680233 | 0.226744 | 0.038383 | 0.053736 | 0.017912 | 0.255502 | 0.199079 | 0.155834 | 0.1337 | 0.1337 | 0.110159 | 0 | 0.009676 | 0.274685 | 12,396 | 369 | 99 | 33.593496 | 0.859637 | 0.070426 | 0 | 0.296296 | 0 | 0.007407 | 0.133276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011111 | null | null | 0.144444 | 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 |
f50ce3706e84b00760c18857493d894db38077a2 | 4,041 | py | Python | authors/apps/authentication/tests/test_password_reset.py | andela/ah-backend-prime | 0708463d4565a4977a5a5dcb839f1dfed52fdc90 | [
"BSD-3-Clause"
] | 1 | 2019-09-19T14:30:05.000Z | 2019-09-19T14:30:05.000Z | authors/apps/authentication/tests/test_password_reset.py | e-ian/authors-haven-frontend | 05829c8088ca49ef2cf0863dc87ec55b44b13534 | [
"BSD-3-Clause"
] | 22 | 2019-03-25T16:10:53.000Z | 2022-03-11T23:44:21.000Z | authors/apps/authentication/tests/test_password_reset.py | e-ian/authors-haven-frontend | 05829c8088ca49ef2cf0863dc87ec55b44b13534 | [
"BSD-3-Clause"
] | 6 | 2019-03-25T09:39:39.000Z | 2021-03-11T23:54:12.000Z | import os
import jwt
from datetime import datetime,timedelta
from django.urls import reverse
from rest_framework import status
from authors.apps.authentication.models import User
from authors.apps.authentication.tests.base import BaseTest
from authors.settings import SECRET_KEY
from authors.apps.authentication.tests.te... | 28.0625 | 113 | 0.548627 | 400 | 4,041 | 5.3525 | 0.26 | 0.061653 | 0.06539 | 0.091546 | 0.545539 | 0.494162 | 0.494162 | 0.494162 | 0.494162 | 0.461467 | 0 | 0.023456 | 0.366988 | 4,041 | 143 | 114 | 28.258741 | 0.813526 | 0.075229 | 0 | 0.485437 | 0 | 0 | 0.111761 | 0 | 0 | 0 | 0 | 0 | 0.087379 | 1 | 0.048544 | false | 0.184466 | 0.087379 | 0 | 0.145631 | 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 |
f51254f65c6b2abe72b020b8107d1918f4fec7da | 4,419 | py | Python | browser_fingerprinting/bro_log_reader.py | dodoandbling/data_hacking | cc828b5051f935aaafdeae0bc9de06e8f2f687db | [
"MIT"
] | 475 | 2015-01-05T21:53:35.000Z | 2018-11-21T12:14:14.000Z | browser_fingerprinting/bro_log_reader.py | dodoandbling/data_hacking | cc828b5051f935aaafdeae0bc9de06e8f2f687db | [
"MIT"
] | 4 | 2019-03-05T21:52:40.000Z | 2020-07-02T20:04:52.000Z | browser_fingerprinting/bro_log_reader.py | dodoandbling/data_hacking | cc828b5051f935aaafdeae0bc9de06e8f2f687db | [
"MIT"
] | 238 | 2015-01-29T12:16:31.000Z | 2018-11-27T23:10:27.000Z | ''' This module handles the mechanics around easily pulling in Bro Log data
The read_log method is a generator (in the python sense) for rows in a Bro log,
because of this, it's memory efficient and does not read the entire file into memory.
'''
import csv
import datetime
import optparse
import itertools
cl... | 36.825 | 97 | 0.597873 | 550 | 4,419 | 4.650909 | 0.356364 | 0.02111 | 0.00821 | 0.01251 | 0.199375 | 0.199375 | 0.164973 | 0.143081 | 0.143081 | 0.143081 | 0 | 0.003406 | 0.335596 | 4,419 | 120 | 98 | 36.825 | 0.867847 | 0.092781 | 0 | 0.14 | 0 | 0 | 0.040057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f51778fd56d3d0e4291ff671e04c4018c2a3c0a1 | 441 | py | Python | 4.1/41.py | SuperFlanker2014/PADS_Spring_2019 | 73a805d1da3b71a3fc27f2515a57907f16417c14 | [
"MIT"
] | null | null | null | 4.1/41.py | SuperFlanker2014/PADS_Spring_2019 | 73a805d1da3b71a3fc27f2515a57907f16417c14 | [
"MIT"
] | null | null | null | 4.1/41.py | SuperFlanker2014/PADS_Spring_2019 | 73a805d1da3b71a3fc27f2515a57907f16417c14 | [
"MIT"
] | null | null | null | lines = []
with open('input.txt','r') as INPUT:
lines = INPUT.readlines()
M = int(lines[0])
stack = [None]*M
stack_head = -1
with open('output.txt', 'w') as OUTPUT:
for op in lines[1:]:
if op.startswith('+'):
stack_head += 1
stack[stack_head] = op[2:]
eli... | 24.5 | 44 | 0.512472 | 58 | 441 | 3.810345 | 0.448276 | 0.20362 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.324263 | 441 | 18 | 45 | 24.5 | 0.721477 | 0 | 0 | 0 | 0 | 0 | 0.054118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 |
f51bb280331da7cc3873862470992bebbfa3b612 | 236 | py | Python | apps/tag/admin.py | kkonieo/portfolio-server | 1c9524ae240dbd526a96f51cbf4d6f18291f535a | [
"MIT"
] | 4 | 2022-01-21T11:10:44.000Z | 2022-01-26T15:00:52.000Z | apps/tag/admin.py | kkonieo/portfolio-server | 1c9524ae240dbd526a96f51cbf4d6f18291f535a | [
"MIT"
] | 22 | 2022-01-21T10:32:37.000Z | 2022-03-25T14:24:10.000Z | apps/tag/admin.py | kkonieo/portfolio-server | 1c9524ae240dbd526a96f51cbf4d6f18291f535a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Position, Tech
@admin.register(Position)
@admin.register(Tech)
class TechAdmin(admin.ModelAdmin):
# List
list_display = ("name",)
# 검색 필터
search_fields = ("name",)
| 18.153846 | 34 | 0.694915 | 29 | 236 | 5.586207 | 0.655172 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182203 | 236 | 12 | 35 | 19.666667 | 0.839378 | 0.042373 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
f52d32cccede68af501adcd137af002d50887a8f | 3,841 | py | Python | tests/test_prms.py | streamengineer/cellpy | 59a83065297ce0ba370fc11181085c98f587101e | [
"MIT"
] | 38 | 2016-08-16T10:54:56.000Z | 2022-03-03T04:43:20.000Z | tests/test_prms.py | Ozzstein/cellpy | ee532905741db4cb928303d75426d2a4fa77144a | [
"MIT"
] | 88 | 2016-08-16T13:10:27.000Z | 2022-03-29T10:36:39.000Z | tests/test_prms.py | Ozzstein/cellpy | ee532905741db4cb928303d75426d2a4fa77144a | [
"MIT"
] | 13 | 2019-01-02T03:57:52.000Z | 2022-01-19T08:06:49.000Z | import pytest
import tempfile
import os
import io
import logging
from cellpy import log
from cellpy import prms
from cellpy import prmreader
from . import fdv
log.setup_logging(default_level="DEBUG")
config_file_txt = """---
Batch:
color_style_label: seaborn-deep
dpi: 300
fig_extension: png
figure_type: unlim... | 20.215789 | 78 | 0.713096 | 531 | 3,841 | 4.836158 | 0.378531 | 0.115654 | 0.025701 | 0.03972 | 0.089564 | 0.089564 | 0.060748 | 0.060748 | 0 | 0 | 0 | 0.020712 | 0.195522 | 3,841 | 189 | 79 | 20.322751 | 0.810356 | 0.028899 | 0 | 0.197674 | 0 | 0 | 0.732349 | 0.040805 | 0 | 0 | 0 | 0 | 0.005814 | 1 | 0.023256 | false | 0.005814 | 0.05814 | 0 | 0.093023 | 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 |
f53467b710f3fba3bc51e8b09141c1c5993c52fb | 257 | py | Python | appdotnet/util.py | briancline/appdotnet | 65a439f3dcd5df391f906439752f55a1a514c85b | [
"Unlicense"
] | 1 | 2015-05-12T17:48:42.000Z | 2015-05-12T17:48:42.000Z | appdotnet/util.py | briancline/appdotnet | 65a439f3dcd5df391f906439752f55a1a514c85b | [
"Unlicense"
] | null | null | null | appdotnet/util.py | briancline/appdotnet | 65a439f3dcd5df391f906439752f55a1a514c85b | [
"Unlicense"
] | null | null | null | def is_sequence(x):
""" Returns whether x is a sequence (tuple, list).
:param x: a value to check
:returns: (boolean)
"""
return (not hasattr(x, 'strip') and
hasattr(x, '__getitem__') or
hasattr(x, '__iter__'))
| 23.363636 | 54 | 0.564202 | 33 | 257 | 4.121212 | 0.666667 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29572 | 257 | 10 | 55 | 25.7 | 0.751381 | 0.365759 | 0 | 0 | 0 | 0 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f537dc3d3d41709f3e21f1378eb8c9f8301c1659 | 2,382 | py | Python | src/pairwise.py | WeixuanZ/materials-modelling | 3b08acca078b511f25241307a97a44c305369d8c | [
"MIT"
] | null | null | null | src/pairwise.py | WeixuanZ/materials-modelling | 3b08acca078b511f25241307a97a44c305369d8c | [
"MIT"
] | null | null | null | src/pairwise.py | WeixuanZ/materials-modelling | 3b08acca078b511f25241307a97a44c305369d8c | [
"MIT"
] | null | null | null | """Calculations involving a pair of Cu atoms
"""
from typing import Union, Callable
import numpy as np
from ase import Atoms
from ase.units import Ang
try:
from Morse import MorsePotential
from util import map_func
except ModuleNotFoundError:
from .Morse import MorsePotential
from .util import map_fun... | 24.060606 | 88 | 0.644416 | 326 | 2,382 | 4.588957 | 0.288344 | 0.053476 | 0.069519 | 0.05615 | 0.446524 | 0.391711 | 0.391711 | 0.304813 | 0.282086 | 0.215241 | 0 | 0.011192 | 0.24979 | 2,382 | 98 | 89 | 24.306122 | 0.825965 | 0.434509 | 0 | 0 | 0 | 0 | 0.00945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
f53b023e767ff7b141c4cbc83d68dfdfd50bbc27 | 730 | py | Python | Python/AdvancedTutorials/generators.py | ronkitay/Rons-Tutorials | c0459c57cc24b546847ec24afa94d2c1e5373bd4 | [
"MIT"
] | null | null | null | Python/AdvancedTutorials/generators.py | ronkitay/Rons-Tutorials | c0459c57cc24b546847ec24afa94d2c1e5373bd4 | [
"MIT"
] | null | null | null | Python/AdvancedTutorials/generators.py | ronkitay/Rons-Tutorials | c0459c57cc24b546847ec24afa94d2c1e5373bd4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from timer_decorator import timer
from rons_tutorial_formatting import *
print_block_separator()
# When using 'yield' python will automatically convert this function to an iterator class!
def func(start, end):
cur = start
while cur <= end:
yield cur
c... | 16.976744 | 90 | 0.645205 | 111 | 730 | 4.045045 | 0.468468 | 0.120267 | 0.03118 | 0.093541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027422 | 0.250685 | 730 | 42 | 91 | 17.380952 | 0.793419 | 0.173973 | 0 | 0.08 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.12 | 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 |
f53e104a272c98cc3e7ba19529cba485a5708376 | 2,359 | py | Python | gigantum_tests/test_file_browser.py | gigantum/gigantum-testing | 10cf3f15fa20b7be986febb8dbd1d20868061d24 | [
"MIT"
] | 5 | 2019-03-15T19:04:00.000Z | 2019-06-28T18:47:19.000Z | gigantum_tests/test_file_browser.py | gigantum/gigantum-testing | 10cf3f15fa20b7be986febb8dbd1d20868061d24 | [
"MIT"
] | 34 | 2019-03-15T17:46:35.000Z | 2021-09-08T00:55:48.000Z | gigantum_tests/test_file_browser.py | gigantum/gigantum-testing | 10cf3f15fa20b7be986febb8dbd1d20868061d24 | [
"MIT"
] | 5 | 2019-03-21T03:03:45.000Z | 2021-08-28T21:25:48.000Z | import logging
import time
import selenium
from selenium.webdriver.common.by import By
import testutils
def test_project_file_browser(driver: selenium.webdriver, *args, **kwargs):
"""
Test that a file can be dragged and dropped into code, input data,
and output data in a project.
Args:
driv... | 36.859375 | 92 | 0.735905 | 334 | 2,359 | 4.991018 | 0.239521 | 0.085783 | 0.09898 | 0.059988 | 0.676065 | 0.633473 | 0.59988 | 0.59988 | 0.561488 | 0.506299 | 0 | 0.002554 | 0.169987 | 2,359 | 63 | 93 | 37.444444 | 0.848825 | 0.116151 | 0 | 0.324324 | 0 | 0 | 0.280374 | 0 | 0 | 0 | 0 | 0.015873 | 0.081081 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.189189 | 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 |
f549dc0f892b9d0e26cf7628eacc76e0975cd739 | 610 | py | Python | chapter-12/fees/app.py | wallacei/microservices-in-action-copy | f9840464a1f9ec40622989e9e5377742246244f3 | [
"MIT"
] | 115 | 2017-11-06T08:12:07.000Z | 2022-02-25T09:56:59.000Z | chapter-12/fees/app.py | wallacei/microservices-in-action-copy | f9840464a1f9ec40622989e9e5377742246244f3 | [
"MIT"
] | 12 | 2017-08-05T14:51:35.000Z | 2020-12-01T11:05:14.000Z | chapter-12/fees/app.py | wallacei/microservices-in-action-copy | f9840464a1f9ec40622989e9e5377742246244f3 | [
"MIT"
] | 82 | 2017-08-05T09:41:12.000Z | 2022-02-18T00:57:39.000Z | import datetime
import json
from nameko.events import EventDispatcher, event_handler
from simplebank.chassis import init_logger, init_statsd
class FeesService:
name = "fees_service"
statsd = init_statsd('simplebank-demo.fees', 'statsd')
logger = init_logger()
@event_handler("market_service", "order... | 26.521739 | 81 | 0.683607 | 73 | 610 | 5.561644 | 0.534247 | 0.059113 | 0.083744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209836 | 610 | 22 | 82 | 27.727273 | 0.842324 | 0 | 0 | 0 | 0 | 0 | 0.222951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.625 | 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 |
f54c6f86f3f1801de8024f2eefd89c84a61e7bca | 3,303 | py | Python | pgoapi/protos/pogoprotos/networking/platform/requests/client_telemetry_request_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | 1 | 2017-12-12T10:05:57.000Z | 2017-12-12T10:05:57.000Z | pgoapi/protos/pogoprotos/networking/platform/requests/client_telemetry_request_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | null | null | null | pgoapi/protos/pogoprotos/networking/platform/requests/client_telemetry_request_pb2.py | SkOODaT/Pgoapi | a0021998eb75f6b1a867d7348acb4fcf1298987d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/networking/platform/requests/client_telemetry_request.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as ... | 41.2875 | 406 | 0.805631 | 401 | 3,303 | 6.289277 | 0.316708 | 0.092784 | 0.133228 | 0.128469 | 0.400872 | 0.352102 | 0.352102 | 0.237906 | 0.187946 | 0.187946 | 0 | 0.025033 | 0.092946 | 3,303 | 79 | 407 | 41.810127 | 0.816756 | 0.091432 | 0 | 0.266667 | 1 | 0 | 0.179633 | 0.148581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.116667 | 0 | 0.116667 | 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 |
f54f5bef4a1e6ed573c5e4321f1517b0dd9c0cee | 858 | py | Python | segmentation/jiebaTextSegmentation.py | yanboyang713/crossLanguageSentimentAnalysis | 2ccf3cde0d1031d083e9de26692f1764a3b066c6 | [
"MIT"
] | null | null | null | segmentation/jiebaTextSegmentation.py | yanboyang713/crossLanguageSentimentAnalysis | 2ccf3cde0d1031d083e9de26692f1764a3b066c6 | [
"MIT"
] | null | null | null | segmentation/jiebaTextSegmentation.py | yanboyang713/crossLanguageSentimentAnalysis | 2ccf3cde0d1031d083e9de26692f1764a3b066c6 | [
"MIT"
] | null | null | null | import jieba.posseg as pseg
import jieba
import jieba.analyse
words = pseg.cut("他来到了网易杭研大厦", HMM=False)
for word, flag in words:
print('%s %s' % (word, flag))
testOne = jieba.cut('丰田太省了', HMM=False)
print("Default Mode: " + "/ ".join(testOne)) # 精确模式
testTwo = jieba.cut('丰田太省了', HMM=True)
print("Default Mode: " +... | 40.857143 | 140 | 0.692308 | 114 | 858 | 5.201754 | 0.403509 | 0.067454 | 0.134907 | 0.168634 | 0.232715 | 0.232715 | 0 | 0 | 0 | 0 | 0 | 0.022636 | 0.124709 | 858 | 20 | 141 | 42.9 | 0.766977 | 0.022145 | 0 | 0 | 0 | 0.052632 | 0.314149 | 0.160671 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.368421 | 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 |
f553a3c4202ac7cb3599bffec7cd8538a462a0c0 | 1,975 | py | Python | pylox/const.py | BolunThompson/PyLox | afcdebf44ace3c032d7247d79704d60791f605ef | [
"MIT"
] | 2 | 2021-09-07T06:50:46.000Z | 2021-11-15T22:54:42.000Z | pylox/const.py | BolunThompson/PyLox | afcdebf44ace3c032d7247d79704d60791f605ef | [
"MIT"
] | null | null | null | pylox/const.py | BolunThompson/PyLox | afcdebf44ace3c032d7247d79704d60791f605ef | [
"MIT"
] | 1 | 2021-03-26T20:05:13.000Z | 2021-03-26T20:05:13.000Z | from __future__ import annotations
from typing import Dict, Final, Literal, Set, Union
import pylox.lox_types as lt
import pylox.token_classes as tc
from pylox.token_classes import TokenType as tt
import pylox.lox_class as lc
import pylox.functions as fn
import pylox.lox_builtins as lb
# TODO: Consider moving some of... | 20.360825 | 74 | 0.565063 | 261 | 1,975 | 4.180077 | 0.348659 | 0.051329 | 0.032997 | 0.051329 | 0.038497 | 0.038497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238481 | 1,975 | 96 | 75 | 20.572917 | 0.725399 | 0.025316 | 0 | 0.024096 | 0 | 0 | 0.090484 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0 | false | 0 | 0.096386 | 0 | 0.096386 | 0.012048 | 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 |
f559148e09270866fb618b9d469afe98467aad70 | 302 | py | Python | tests/dummy/equality.py | thewchan/flake8-multiline-containers | 921f48eec5ad4b6b12c150d2c0c1d6fd412539b8 | [
"MIT"
] | 10 | 2019-06-03T22:48:13.000Z | 2021-06-14T09:01:42.000Z | tests/dummy/equality.py | thewchan/flake8-multiline-containers | 921f48eec5ad4b6b12c150d2c0c1d6fd412539b8 | [
"MIT"
] | 22 | 2019-07-10T18:49:58.000Z | 2022-03-18T12:58:32.000Z | tests/dummy/equality.py | thewchan/flake8-multiline-containers | 921f48eec5ad4b6b12c150d2c0c1d6fd412539b8 | [
"MIT"
] | 3 | 2019-10-12T20:01:24.000Z | 2021-11-06T20:38:48.000Z | # Equality checks should behave the same way as assignment
# Variable equality check
bar == {'a': 1, 'b':2}
bar == {
'a': 1,
'b': 2,
}
# Function equality check
foo() == {
'a': 1,
'b': 2,
'c': 3,
}
foo(1, 2, 3) == {
'a': 1,
'b': 2,
'c': 3,
}
| 12.583333 | 59 | 0.413907 | 42 | 302 | 2.97619 | 0.47619 | 0.064 | 0.096 | 0.128 | 0.208 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0.068783 | 0.374172 | 302 | 23 | 60 | 13.130435 | 0.592593 | 0.344371 | 0 | 0.533333 | 0 | 0 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f559b5a87d4daab3c628ea41d8497c7dcf244a9e | 3,596 | py | Python | betwit/urls.py | cedlerouge/betwit | 4fe89bf2e573f1d11d9e4596de40a32036c6e9c4 | [
"Apache-2.0"
] | null | null | null | betwit/urls.py | cedlerouge/betwit | 4fe89bf2e573f1d11d9e4596de40a32036c6e9c4 | [
"Apache-2.0"
] | 7 | 2020-02-11T23:40:02.000Z | 2022-03-11T23:16:29.000Z | betwit/urls.py | cedlerouge/betwit | 4fe89bf2e573f1d11d9e4596de40a32036c6e9c4 | [
"Apache-2.0"
] | 1 | 2016-02-05T14:28:09.000Z | 2016-02-05T14:28:09.000Z | """betwit URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | 46.102564 | 173 | 0.692714 | 451 | 3,596 | 5.481153 | 0.297118 | 0.042071 | 0.032362 | 0.009709 | 0.155744 | 0.120955 | 0.103964 | 0.076456 | 0.046117 | 0.046117 | 0 | 0.016505 | 0.140712 | 3,596 | 77 | 174 | 46.701299 | 0.783495 | 0.32119 | 0 | 0 | 0 | 0 | 0.294532 | 0.114333 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0 | false | 0 | 0.292683 | 0 | 0.292683 | 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 |
f559c39559279ec029148661af45a29d547f67f0 | 578 | py | Python | type/block/function_block_type.py | abhinav-kumar-thakur/table-understanding | 5448e02dec87ea3974bfc118ebeace86e8918285 | [
"MIT"
] | null | null | null | type/block/function_block_type.py | abhinav-kumar-thakur/table-understanding | 5448e02dec87ea3974bfc118ebeace86e8918285 | [
"MIT"
] | null | null | null | type/block/function_block_type.py | abhinav-kumar-thakur/table-understanding | 5448e02dec87ea3974bfc118ebeace86e8918285 | [
"MIT"
] | null | null | null | from type.block.block_type import BlockType
class FunctionBlockType:
METADATA = BlockType("metadata", 0)
DATA = BlockType("data", 1)
HEADER = BlockType("header", 2)
ATTRIBUTE = BlockType("attributes", 3)
inverse_dict = {
"metadata": METADATA,
"data": DATA,
"header": HEADER,... | 25.130435 | 61 | 0.626298 | 60 | 578 | 5.816667 | 0.5 | 0.126075 | 0.068768 | 0.091691 | 0.126075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.242215 | 578 | 22 | 62 | 26.272727 | 0.783105 | 0 | 0 | 0 | 0 | 0 | 0.096886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.647059 | 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 |
f55c4f784cad7e2ab7edbf630b555105a90938e7 | 432 | py | Python | simplecasper/__init__.py | mzpqnxow/pysimplecasper | 64ab1b8fbc2e1b0277bf8c1cc1fe1ec6843a93e0 | [
"BSD-3-Clause"
] | null | null | null | simplecasper/__init__.py | mzpqnxow/pysimplecasper | 64ab1b8fbc2e1b0277bf8c1cc1fe1ec6843a93e0 | [
"BSD-3-Clause"
] | null | null | null | simplecasper/__init__.py | mzpqnxow/pysimplecasper | 64ab1b8fbc2e1b0277bf8c1cc1fe1ec6843a93e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
""" make Classes and functions available via a simple import
Copyright 2017, <copyright@mzpqnxow.com>
See COPYRIGHT for details
"""
# first party
from simplecasper.api import (
CasperAPI,
get_casper_credentials
)
from simplecasper.util import (
SimpleHTTPJSON,
SWVersions,
to... | 19.636364 | 60 | 0.706019 | 48 | 432 | 6.145833 | 0.708333 | 0.108475 | 0.122034 | 0.19661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014205 | 0.185185 | 432 | 21 | 61 | 20.571429 | 0.823864 | 0.368056 | 0 | 0 | 0 | 0 | 0.234848 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
f55da453d6c034db9b6a772f4fbc442e5f3bad16 | 8,351 | py | Python | src/whoosh/writing.py | soad241/whoosh | 51de8d8bbe345e2517947c3bb91d65f62b76b84e | [
"Apache-2.0"
] | 2 | 2015-01-15T17:50:43.000Z | 2015-11-04T15:03:16.000Z | src/whoosh/writing.py | soad241/whoosh | 51de8d8bbe345e2517947c3bb91d65f62b76b84e | [
"Apache-2.0"
] | null | null | null | src/whoosh/writing.py | soad241/whoosh | 51de8d8bbe345e2517947c3bb91d65f62b76b84e | [
"Apache-2.0"
] | 1 | 2020-11-15T14:23:30.000Z | 2020-11-15T14:23:30.000Z | #===============================================================================
# Copyright 2007 Matt Chaput
#
# 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/li... | 35.53617 | 86 | 0.612382 | 1,058 | 8,351 | 4.771267 | 0.283554 | 0.027734 | 0.015848 | 0.008914 | 0.215135 | 0.180666 | 0.154913 | 0.154913 | 0.14065 | 0.125594 | 0 | 0.005898 | 0.289426 | 8,351 | 234 | 87 | 35.688034 | 0.844793 | 0.529877 | 0 | 0.178571 | 0 | 0 | 0.022862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202381 | false | 0.035714 | 0.047619 | 0.011905 | 0.309524 | 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 |
f56b671272390a05b2a84ab1e27c70b6469d45d8 | 2,159 | py | Python | spoticli.py | dsoskey/spotiCLI | d13ce38015dbaf77ba24ebd49e443ccc2e32b5e5 | [
"Apache-2.0"
] | null | null | null | spoticli.py | dsoskey/spotiCLI | d13ce38015dbaf77ba24ebd49e443ccc2e32b5e5 | [
"Apache-2.0"
] | null | null | null | spoticli.py | dsoskey/spotiCLI | d13ce38015dbaf77ba24ebd49e443ccc2e32b5e5 | [
"Apache-2.0"
] | null | null | null | import sys
import time
import argparse
import pprint
import odyssey
import util
import logging as LOG
LOG.basicConfig(level=LOG.INFO)
pp = pprint.PrettyPrinter(indent=4)
def _interactive(parser):
LOG.info('Interactive Mode')
LOG.info('To be implemented!')
def _alexandria(parser):
LOG.info('Alexandria: Pl... | 39.254545 | 151 | 0.730894 | 264 | 2,159 | 5.863636 | 0.431818 | 0.036176 | 0.03876 | 0.014212 | 0.0323 | 0.0323 | 0 | 0 | 0 | 0 | 0 | 0.001085 | 0.146364 | 2,159 | 54 | 152 | 39.981481 | 0.83885 | 0 | 0 | 0.046512 | 0 | 0.023256 | 0.405743 | 0.043076 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.232558 | null | null | 0.046512 | 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 |
f56dcdf173ea668782ad8e708aae523b012338d0 | 1,716 | py | Python | mufsim/insts/timedate.py | revarbat/mufsim | ddf4f376f93b784031d0754184f9cdc25622c12f | [
"BSD-2-Clause"
] | 1 | 2019-04-24T10:00:10.000Z | 2019-04-24T10:00:10.000Z | mufsim/insts/timedate.py | revarbat/mufsim | ddf4f376f93b784031d0754184f9cdc25622c12f | [
"BSD-2-Clause"
] | null | null | null | mufsim/insts/timedate.py | revarbat/mufsim | ddf4f376f93b784031d0754184f9cdc25622c12f | [
"BSD-2-Clause"
] | 1 | 2016-05-13T04:26:53.000Z | 2016-05-13T04:26:53.000Z | import time
# from mufsim.errors import MufRuntimeError
from mufsim.insts.base import Instruction, instr
@instr("date")
class InstDate(Instruction):
def execute(self, fr):
when = time.localtime()
fr.data_push(int(when.tm_mday))
fr.data_push(int(when.tm_mon))
fr.data_push(int(when.... | 24.869565 | 60 | 0.653263 | 243 | 1,716 | 4.460905 | 0.246914 | 0.116236 | 0.166052 | 0.179889 | 0.519373 | 0.494465 | 0.432657 | 0.432657 | 0.330258 | 0.330258 | 0 | 0.003679 | 0.208042 | 1,716 | 68 | 61 | 25.235294 | 0.793966 | 0.058275 | 0 | 0.428571 | 0 | 0 | 0.034098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.040816 | 0 | 0.326531 | 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 |
f570f4bdc0b2e4c3e4c8cb8eab4e3b044c848816 | 3,255 | py | Python | test/mainApp/views.py | BoggerSancho/test_mydjango | b7c456e408e7c76881524e8c68987c1cf3ac7ea9 | [
"BSD-3-Clause"
] | null | null | null | test/mainApp/views.py | BoggerSancho/test_mydjango | b7c456e408e7c76881524e8c68987c1cf3ac7ea9 | [
"BSD-3-Clause"
] | 5 | 2020-06-05T19:40:11.000Z | 2021-06-10T21:06:08.000Z | test/mainApp/views.py | BoggerSancho/test_mydjango | b7c456e408e7c76881524e8c68987c1cf3ac7ea9 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from .models import Books, Reader
from django.shortcuts import redirect
from django.views.generic import TemplateView
from django.template.context_processors import csrf
from django.contrib.auth import authenticate, login, logout
from django.contrib import auth
from django.contrib.au... | 33.90625 | 97 | 0.604916 | 355 | 3,255 | 5.442254 | 0.174648 | 0.07971 | 0.088509 | 0.097826 | 0.468944 | 0.415114 | 0.331781 | 0.298137 | 0.248447 | 0.194617 | 0 | 0 | 0.271889 | 3,255 | 95 | 98 | 34.263158 | 0.81519 | 0.099539 | 0 | 0.432432 | 0 | 0 | 0.0939 | 0.007197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.081081 | 0.108108 | 0 | 0.364865 | 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 |
f573bd9129388b863c6445e0fcb8079f9daff6a5 | 2,353 | py | Python | log_in.py | shivijust4u/cmput291 | 58b8572864621f96a6b3bb40e1e371ab0c41f53d | [
"MIT"
] | null | null | null | log_in.py | shivijust4u/cmput291 | 58b8572864621f96a6b3bb40e1e371ab0c41f53d | [
"MIT"
] | null | null | null | log_in.py | shivijust4u/cmput291 | 58b8572864621f96a6b3bb40e1e371ab0c41f53d | [
"MIT"
] | null | null | null | from tkinter import *
import getpass # the package for getting password from user without displaying it
class LogInPage(object):
"""docstring for ClassName"""
def __init__(self, master):
frame = Frame(master, bg = "white", width = 500, height = 500)
frame.grid()
self.successor = -1
... | 29.4125 | 91 | 0.60051 | 284 | 2,353 | 4.961268 | 0.341549 | 0.034776 | 0.028389 | 0.045422 | 0.114975 | 0.083747 | 0 | 0 | 0 | 0 | 0 | 0.019332 | 0.274543 | 2,353 | 79 | 92 | 29.78481 | 0.806093 | 0.061623 | 0 | 0 | 0 | 0 | 0.044606 | 0.01411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0.09434 | 0.037736 | 0 | 0.264151 | 0.056604 | 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 |
f57fb38eac3e1f214d24fd63883310679c2b80f4 | 7,666 | py | Python | studies/jetbrains_academy/01-easy/p04-tic-tac-toe.py | alexander-colaneri/Python | fbc84a2818d8324b712014e1a5abfc01474e49ea | [
"MIT"
] | null | null | null | studies/jetbrains_academy/01-easy/p04-tic-tac-toe.py | alexander-colaneri/Python | fbc84a2818d8324b712014e1a5abfc01474e49ea | [
"MIT"
] | null | null | null | studies/jetbrains_academy/01-easy/p04-tic-tac-toe.py | alexander-colaneri/Python | fbc84a2818d8324b712014e1a5abfc01474e49ea | [
"MIT"
] | null | null | null | class TicTacToe:
def __init__(self):
self.cells = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']
self.matrix = [self.cells[0:3], self.cells[3:6], self.cells[6:9]]
# Vertical lines list, to be divided in 3 inner lists:
self.v_lines = []
# Diagonal lines:
self.d1_line = ... | 42.588889 | 79 | 0.378163 | 831 | 7,666 | 3.374248 | 0.162455 | 0.096291 | 0.043153 | 0.031384 | 0.499287 | 0.452924 | 0.386591 | 0.301712 | 0.243581 | 0.243581 | 0 | 0.041197 | 0.50287 | 7,666 | 179 | 80 | 42.826816 | 0.694568 | 0.096921 | 0 | 0.425676 | 0 | 0 | 0.059634 | 0.010012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060811 | false | 0 | 0 | 0 | 0.074324 | 0.108108 | 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 |
f585705ec2594fd33187aa8479c01510fd538e52 | 2,429 | py | Python | homedisplay/info_weather/migrations/0007_auto_20150326_1357.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 1 | 2016-11-28T04:35:06.000Z | 2016-11-28T04:35:06.000Z | homedisplay/info_weather/migrations/0007_auto_20150326_1357.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 160 | 2015-01-01T20:59:29.000Z | 2016-04-25T13:36:52.000Z | homedisplay/info_weather/migrations/0007_auto_20150326_1357.py | ojarva/home-info-display | 873d022308732baff94d0dc2381cf9dc7dce23b7 | [
"BSD-3-Clause"
] | 1 | 2015-02-25T21:24:01.000Z | 2015-02-25T21:24:01.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('info_weather', '0006_auto_20150322_2310'),
]
operations = [
migrations.CreateModel(
name='MarineDataPoint',
... | 44.163636 | 97 | 0.508851 | 208 | 2,429 | 5.735577 | 0.370192 | 0.135792 | 0.165968 | 0.196144 | 0.487008 | 0.487008 | 0.487008 | 0.487008 | 0.487008 | 0.487008 | 0 | 0.024294 | 0.372993 | 2,429 | 54 | 98 | 44.981481 | 0.759028 | 0.008646 | 0 | 0.25 | 0 | 0 | 0.114298 | 0.009559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.104167 | 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 |
f585940a4c8e6092a05ef4cbc7c1f88872e4c949 | 491 | py | Python | Code/blogs-code/ConcurrentProgramming/ConcurrentProcess/multiprocessing_process_daemon.py | huangyonghome/blog | 6f419ea6e466adac5f45aa8b9373c196d69fca31 | [
"Apache-2.0"
] | 38 | 2018-01-12T00:38:49.000Z | 2021-06-27T06:27:10.000Z | Code/blogs-code/ConcurrentProgramming/ConcurrentProcess/multiprocessing_process_daemon.py | huangyonghome/blog | 6f419ea6e466adac5f45aa8b9373c196d69fca31 | [
"Apache-2.0"
] | null | null | null | Code/blogs-code/ConcurrentProgramming/ConcurrentProcess/multiprocessing_process_daemon.py | huangyonghome/blog | 6f419ea6e466adac5f45aa8b9373c196d69fca31 | [
"Apache-2.0"
] | 24 | 2018-02-23T03:43:55.000Z | 2021-09-16T03:48:13.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Lyon
import multiprocessing
import time
def run(num):
print("I like num %d" % num)
time.sleep(2)
print("When I'm done, I'm going to keep talking...")
def main():
for i in range(1, 6):
t = multiprocessing.Process(target=run, args=(i,))
... | 22.318182 | 58 | 0.590631 | 73 | 491 | 3.863014 | 0.616438 | 0.014184 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013369 | 0.238289 | 491 | 22 | 59 | 22.318182 | 0.740642 | 0.107943 | 0 | 0 | 0 | 0 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 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 |
f58a2416f450f578a231c467814bc685579aedfa | 741 | py | Python | tests/test_plot.py | pyhf/pyhf-benchmark | bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf | [
"Apache-2.0"
] | 3 | 2020-05-22T22:50:22.000Z | 2020-06-02T16:28:37.000Z | tests/test_plot.py | pyhf/pyhf-benchmark | bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf | [
"Apache-2.0"
] | 30 | 2020-06-02T16:22:27.000Z | 2020-08-20T04:55:59.000Z | tests/test_plot.py | pyhf/pyhf-benchmark | bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf | [
"Apache-2.0"
] | 1 | 2020-07-28T02:32:58.000Z | 2020-07-28T02:32:58.000Z | import pandas as pd
import pyhf_benchmark.plot as plt
from pathlib import Path
def test_plot(mocker):
directory = Path("directory_path")
mocker.patch("pyhf_benchmark.plot.load")
mocker.patch("pyhf_benchmark.plot.subplot")
plt.plot(directory)
plt.load.assert_called_once_with(directory)
assert p... | 28.5 | 87 | 0.735493 | 103 | 741 | 5.07767 | 0.281553 | 0.124283 | 0.162524 | 0.183556 | 0.489484 | 0.378585 | 0.244742 | 0.244742 | 0.244742 | 0.244742 | 0 | 0.004762 | 0.149798 | 741 | 25 | 88 | 29.64 | 0.825397 | 0 | 0 | 0.1 | 0 | 0 | 0.187584 | 0.149798 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.25 | 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 |
f58e4700c87b03236e43488dd9ab1218b23ac41d | 604 | py | Python | run.py | EJH2/IQ-Discord | 52dfffce11fc745400f6679cef4dc19db734ae95 | [
"MIT"
] | 1 | 2018-01-27T09:06:06.000Z | 2018-01-27T09:06:06.000Z | run.py | EJH2/IQ-Discord | 52dfffce11fc745400f6679cef4dc19db734ae95 | [
"MIT"
] | 5 | 2016-12-21T13:39:09.000Z | 2017-05-23T14:16:03.000Z | run.py | EJH2/IQ-Discord | 52dfffce11fc745400f6679cef4dc19db734ae95 | [
"MIT"
] | 4 | 2018-02-01T08:05:35.000Z | 2019-10-26T13:11:52.000Z | # coding=utf-8
"""Main bot file."""
import os
import sys
from ruamel import yaml
from bot import main
from bot.utils.over import HelpFormatter
if not sys.version_info >= (3, 6):
raise RuntimeError("Python 3.6+ not detected! Please run with 3.6 or above.")
path = os.getcwd()
debug = "debug" in sys.argv
with o... | 23.230769 | 111 | 0.698675 | 94 | 604 | 4.329787 | 0.521277 | 0.051597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013592 | 0.147351 | 604 | 25 | 112 | 24.16 | 0.776699 | 0.046358 | 0 | 0 | 0 | 0 | 0.224561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f58f503019216af795ef0d771e9992544c05e80e | 4,058 | py | Python | src/arguments.py | nicklashansen/svea-vit | d7a84213d105e0cb25a90b2302ce0fcfc5061de1 | [
"MIT"
] | 8 | 2021-07-02T07:38:46.000Z | 2022-02-10T01:05:28.000Z | src/arguments.py | nicklashansen/svea-vit | d7a84213d105e0cb25a90b2302ce0fcfc5061de1 | [
"MIT"
] | null | null | null | src/arguments.py | nicklashansen/svea-vit | d7a84213d105e0cb25a90b2302ce0fcfc5061de1 | [
"MIT"
] | 1 | 2021-11-24T05:41:52.000Z | 2021-11-24T05:41:52.000Z | import argparse
import numpy as np
def parse_args():
parser = argparse.ArgumentParser()
# environment
parser.add_argument('--domain_name', default='walker')
parser.add_argument('--task_name', default='walk')
parser.add_argument('--frame_stack', default=3, type=int)
parser.add_argument('--action_repeat', defaul... | 45.595506 | 138 | 0.741252 | 605 | 4,058 | 4.771901 | 0.236364 | 0.143401 | 0.270869 | 0.083131 | 0.453758 | 0.279529 | 0.162799 | 0.069969 | 0.053343 | 0 | 0 | 0.021633 | 0.088714 | 4,058 | 88 | 139 | 46.113636 | 0.759059 | 0.021193 | 0 | 0 | 0 | 0 | 0.282938 | 0.006815 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.015873 | false | 0 | 0.031746 | 0 | 0.063492 | 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 |
f59a219861547a50fe0bf4021f756cf0cb57f2f4 | 603 | py | Python | xnat/scripts/print_dicom_header.py | KCL-BMEIS/DASHER | f94e58e138c8ef48faf63efd16863e33ed1b16ef | [
"BSD-3-Clause"
] | 2 | 2020-11-20T15:59:15.000Z | 2020-11-22T22:56:34.000Z | xnat/scripts/print_dicom_header.py | KCL-BMEIS/DASHER | f94e58e138c8ef48faf63efd16863e33ed1b16ef | [
"BSD-3-Clause"
] | null | null | null | xnat/scripts/print_dicom_header.py | KCL-BMEIS/DASHER | f94e58e138c8ef48faf63efd16863e33ed1b16ef | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
'''make-rt-struct-assessor.py
Read in an RT-STRUCT DICOM file. Write out an icr:roiCollectionData assessor.
Usage:
print_dicom_header.py FILE
Options:
FILE ID of parent subject
'''
import os
import sys
import logging
import pydicom
import datetime as dt
import subp... | 16.297297 | 77 | 0.679934 | 87 | 603 | 4.643678 | 0.632184 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.217247 | 603 | 37 | 78 | 16.297297 | 0.851695 | 0.366501 | 0 | 0 | 0 | 0 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0.117647 | 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 |
f59cd3d41686dc9060b456828fe5ca0622877ed3 | 1,035 | py | Python | ExerciciosPYTHON/NovPython/002.py | Samuel-Melo890/Python-Desafios | 2abc7734d6a6c1f5ab67421f792d6889d93bac94 | [
"MIT"
] | null | null | null | ExerciciosPYTHON/NovPython/002.py | Samuel-Melo890/Python-Desafios | 2abc7734d6a6c1f5ab67421f792d6889d93bac94 | [
"MIT"
] | 2 | 2022-03-18T16:06:07.000Z | 2022-03-18T16:55:29.000Z | ExerciciosPYTHON/NovPython/002.py | Samuel-Melo890/Python-Desafios | 2abc7734d6a6c1f5ab67421f792d6889d93bac94 | [
"MIT"
] | null | null | null | print('='*8,'Dicionário de Palavras','='*8)
d = {}
d['Fato'] = '''Acontecimento acabado; evento, ocorrência: a fiscalização das barracas \nilegais é agora um fato.
\nCoisa cuja realidade pode ser comprovada; verdade, realidade: "contra fatos não há \nargumentos".
\n[Jurídico] O que foi finalizado e não pode ser mudado... | 45 | 135 | 0.698551 | 154 | 1,035 | 4.694805 | 0.727273 | 0.016598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032902 | 0.177778 | 1,035 | 22 | 136 | 47.045455 | 0.816686 | 0 | 0 | 0 | 0 | 0.105263 | 0.784541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.157895 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.