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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
157f0119cc32c7479dcaa1bf73091cbff4ad0c19 | 149 | py | Python | main_server/__init__.py | yehan-xiao/SUCS | 4110a9d858c9e484d35c08198d951c6ba734460f | [
"MIT"
] | null | null | null | main_server/__init__.py | yehan-xiao/SUCS | 4110a9d858c9e484d35c08198d951c6ba734460f | [
"MIT"
] | null | null | null | main_server/__init__.py | yehan-xiao/SUCS | 4110a9d858c9e484d35c08198d951c6ba734460f | [
"MIT"
] | null | null | null | #Written by Shitao Tang
# --------------------------------------------------------
import logging.config
logging.config.fileConfig("logging.config")
| 29.8 | 58 | 0.496644 | 12 | 149 | 6.166667 | 0.666667 | 0.527027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 149 | 4 | 59 | 37.25 | 0.528571 | 0.530201 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
157f7bac2f471946f836b8c5ee08c6cfd3a2fe43 | 2,324 | py | Python | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | 1 | 2021-07-10T22:07:16.000Z | 2021-07-10T22:07:16.000Z | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import boto3
import utils
from botocore.exceptions import ClientError
import logger
import os
from aws_lambda_powertools import Tracer
tracer = Tracer()
tenant_stack_mapping_table_name = os.environ['TENAN... | 29.794872 | 108 | 0.660069 | 241 | 2,324 | 6.124481 | 0.406639 | 0.047425 | 0.073171 | 0.062331 | 0.310976 | 0.191057 | 0.138211 | 0.088076 | 0.088076 | 0.088076 | 0 | 0.003507 | 0.263769 | 2,324 | 77 | 109 | 30.181818 | 0.859147 | 0.08778 | 0 | 0.267857 | 0 | 0 | 0.130907 | 0.025992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.125 | 0 | 0.196429 | 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 | 0 | 0 | 1 | 0 |
157fa5c40b8382a262791d36d2b4de815c319516 | 643 | py | Python | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 1 | 2019-09-11T23:24:58.000Z | 2019-09-11T23:24:58.000Z | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | null | null | null | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 5 | 2019-09-11T06:33:34.000Z | 2020-02-17T12:52:31.000Z | #!/usr/bin/env python
# encoding:utf-8
# file: homework1.py
# 1、请将 "1,2,3",变成 ["1","2","3"]
# 方法1
a = '1,2,3'
print(a.split(','))
# 方法2 遍历一下
a = '1,2,3'
sep = ','
result = []
for i in range(len(a)):
if a[i] == sep:
continue
result.append(a[i])
print(result)
"""
第一种方法比较简单,略过。
第二种方法,遍历的思路是对的,但是只针对本题给出... | 15.309524 | 47 | 0.541213 | 107 | 643 | 3.205607 | 0.504673 | 0.087464 | 0.034985 | 0.023324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074534 | 0.248834 | 643 | 41 | 48 | 15.682927 | 0.635611 | 0.178849 | 0 | 0.454545 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
158093f827c44fb31f9d2b1f817125c9d5ad8bef | 575 | py | Python | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | 6 | 2021-09-19T11:01:27.000Z | 2021-11-11T08:53:31.000Z | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | null | null | null | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | 1 | 2021-12-20T13:25:12.000Z | 2021-12-20T13:25:12.000Z | """
Selection sort algorithm implementation.
Time Complexity:
Best O(n^2)
Worst O(n^2)
Average O(n^2)
Space Complexity: O(1)
"""
def selection_sort(array):
for i in range(len(array)):
min_index = i
for j in range(i + 1, len(array)):
if array[j] < array[min_index]:
... | 23 | 63 | 0.606957 | 85 | 575 | 3.882353 | 0.435294 | 0.121212 | 0.157576 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033097 | 0.264348 | 575 | 24 | 64 | 23.958333 | 0.747045 | 0.229565 | 0 | 0 | 0 | 0 | 0.018391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15846f7192fcdc591856fb8955166b95b74770b7 | 154 | py | Python | order.py | alexsandrox/designpattern-strategy-python | 69b4cdb1cf88a340f2bde38e387a3c9c6560806a | [
"MIT"
] | null | null | null | order.py | alexsandrox/designpattern-strategy-python | 69b4cdb1cf88a340f2bde38e387a3c9c6560806a | [
"MIT"
] | null | null | null | order.py | alexsandrox/designpattern-strategy-python | 69b4cdb1cf88a340f2bde38e387a3c9c6560806a | [
"MIT"
] | null | null | null | class Order(object):
def __init__(self, value):
self.__value = value
@property
def value(self):
return self.__value
| 17.111111 | 30 | 0.577922 | 17 | 154 | 4.764706 | 0.529412 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331169 | 154 | 9 | 31 | 17.111111 | 0.786408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
158547efcb33f290119505b7dad81583331db6a6 | 885 | py | Python | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 159 | 2020-12-13T19:38:32.000Z | 2022-03-30T23:12:49.000Z | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 4 | 2021-01-10T16:31:10.000Z | 2022-02-15T17:38:51.000Z | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 50 | 2020-12-13T22:35:34.000Z | 2022-03-30T01:29:28.000Z | import argparse
from .pycritty import subparsers, formatter
install_parser = subparsers.add_parser(
'install',
formatter_class=formatter(),
help="Install a config file or theme from a url",
argument_default=argparse.SUPPRESS,
)
install_parser.add_argument(
'url',
help='URL where the config is... | 20.581395 | 70 | 0.680226 | 110 | 885 | 5.3 | 0.418182 | 0.111492 | 0.109777 | 0.123499 | 0.096055 | 0.096055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183051 | 885 | 42 | 71 | 21.071429 | 0.806362 | 0 | 0 | 0.235294 | 0 | 0 | 0.329944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15855175c606cca38de789368d87a49ec8fe0b51 | 1,209 | py | Python | setup.py | twdb/sonde3 | 5d6c9672870f9186c22db1a88fc5a143e8fd887c | [
"BSD-3-Clause"
] | 1 | 2017-08-11T18:50:08.000Z | 2017-08-11T18:50:08.000Z | setup.py | twdb/sonde3 | 5d6c9672870f9186c22db1a88fc5a143e8fd887c | [
"BSD-3-Clause"
] | 11 | 2018-03-06T14:31:13.000Z | 2018-07-27T14:14:19.000Z | setup.py | twdb/sonde3 | 5d6c9672870f9186c22db1a88fc5a143e8fd887c | [
"BSD-3-Clause"
] | 1 | 2017-08-21T22:45:16.000Z | 2017-08-21T22:45:16.000Z | """
sonde3
-------
PySonde is a module for reading water quality data from various sensor
formats.
"""
from setuptools import Command, setup, find_packages
# note: the minimum version numbers are just what I know will work,
# but they could probably be a few versions lower
setup(
name='sonde3',
version='0.2',
... | 31 | 82 | 0.652605 | 139 | 1,209 | 5.589928 | 0.76259 | 0.046332 | 0.041184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011803 | 0.229115 | 1,209 | 38 | 83 | 31.815789 | 0.821888 | 0.17287 | 0 | 0.068966 | 0 | 0 | 0.50555 | 0.050454 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 |
158778c93cc9dac58b6a4fb948f20e547d063f46 | 442 | py | Python | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | def divide_elementos_en_lista(lista, divisor):
# Utilizando la programación defensiva para evitar que el usuario ingrese un 0 como divisor.
try:
return [i / divisor for i in lista]
except ZeroDivisionError as e:
print(e)
return 'No se puede dividir entre 0'
lista = range(10)
if __n... | 34 | 96 | 0.69457 | 61 | 442 | 4.803279 | 0.688525 | 0.102389 | 0.116041 | 0.150171 | 0.232082 | 0.232082 | 0 | 0 | 0 | 0 | 0 | 0.011662 | 0.223982 | 442 | 13 | 97 | 34 | 0.842566 | 0.20362 | 0 | 0 | 0 | 0 | 0.156695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1588ca5cc544c21212b83dbab38deb4721020810 | 5,259 | py | Python | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 12 | 2021-01-14T19:33:48.000Z | 2022-01-06T16:13:03.000Z | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 13 | 2020-12-31T20:38:11.000Z | 2021-11-24T06:21:12.000Z | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 7 | 2021-02-08T13:42:01.000Z | 2021-10-21T21:37:14.000Z | import dash_core_components as dcc
import dash_html_components as html
import dash_table as dt
from openomics_web.utils.str_utils import longest_common_prefix
def DataTableColumnSelect(columns):
"""
Args:
columns:
"""
longest_common_prefixes = longest_common_prefix(columns)
return html.D... | 30.398844 | 86 | 0.424415 | 431 | 5,259 | 5.025522 | 0.403712 | 0.033241 | 0.018006 | 0.014774 | 0.048938 | 0.028624 | 0.028624 | 0.028624 | 0 | 0 | 0 | 0.025782 | 0.446853 | 5,259 | 172 | 87 | 30.575581 | 0.718804 | 0.043925 | 0 | 0.142857 | 0 | 0 | 0.186543 | 0.01672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030075 | false | 0 | 0.037594 | 0.007519 | 0.105263 | 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 | 0 | 0 | 1 | 0 |
158af3b9c1b0eba24baf15a53f726d6ea44ae733 | 1,982 | py | Python | pipeline/visual_main.py | ElfatihZiad/realtime-market-data-pipeline | bc92f89c310d6b654141fe79c14f962d35899320 | [
"Apache-2.0"
] | 4 | 2021-12-14T23:54:14.000Z | 2022-01-01T21:09:24.000Z | pipeline/visual_main.py | ElfatihZiad/realtime-market-data-pipeline | bc92f89c310d6b654141fe79c14f962d35899320 | [
"Apache-2.0"
] | 1 | 2022-01-07T20:26:49.000Z | 2022-01-07T20:26:49.000Z | pipeline/visual_main.py | ElfatihZiad/realtime-market-data-pipeline | bc92f89c310d6b654141fe79c14f962d35899320 | [
"Apache-2.0"
] | 1 | 2022-01-20T20:00:58.000Z | 2022-01-20T20:00:58.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import datetime
import pandas as pd
from bokeh.models.widgets import Tabs
from warehouse import CassandraStorage
import util.util as util
from util.util import pandas_factory,symbol_list
from bokeh.models import ColumnDataSource, Panel
from bokeh.layouts impor... | 34.172414 | 97 | 0.754793 | 270 | 1,982 | 5.403704 | 0.396296 | 0.04318 | 0.041124 | 0.04318 | 0.070596 | 0.070596 | 0.047978 | 0 | 0 | 0 | 0 | 0.034443 | 0.12109 | 1,982 | 57 | 98 | 34.77193 | 0.8031 | 0.025227 | 0 | 0 | 0 | 0 | 0.058667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 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 |
158ca93802eb9dccc421c636270c924dd054fd75 | 1,650 | py | Python | src/graph_transpiler/webdnn/util/flags/optimize.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | src/graph_transpiler/webdnn/util/flags/optimize.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/util/flags/optimize.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | import os
OPTIMIZE = os.environ.get("OPTIMIZE", "1") == "1"
# basic (non-accuracy loss) optimization
REMOVE_REDUNDANT_OPERATOR = os.environ.get("REMOVE_REDUNDANT_OPERATOR", "1") == "1"
SIMPLIFY_ELEMENTWISE = os.environ.get("SIMPLIFY_ELEMENTWISE", "1") == "1"
REPLACE_SCALAR_OPERATOR = os.environ.get("REPLACE_SCALAR_OP... | 55 | 95 | 0.753333 | 221 | 1,650 | 5.280543 | 0.239819 | 0.14653 | 0.195373 | 0.08569 | 0.191945 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025066 | 0.081212 | 1,650 | 29 | 96 | 56.896552 | 0.744723 | 0.049697 | 0 | 0 | 0 | 0 | 0.31158 | 0.234165 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
158cad16a3a956c3d72457100289dace28f8f3ee | 994 | py | Python | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | 12 | 2019-04-12T07:13:56.000Z | 2022-03-07T06:21:18.000Z | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | null | null | null | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | 4 | 2021-01-29T19:28:04.000Z | 2021-12-09T01:52:12.000Z | import sys
from src import Bot, Client, Collector, \
Predictor, PredictorLearnThread, Scribe, \
Trader, TraderThreadCleaner, GarbageCleanerThread
if __name__ == '__main__':
use_proxy = len(sys.argv) > 1 and sys.argv[1] == '-p'
pool = {
'client': Client(use_proxy),
'bot': Bot(use_proxy)... | 31.0625 | 97 | 0.678068 | 105 | 994 | 6.12381 | 0.352381 | 0.037325 | 0.097978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002491 | 0.192153 | 994 | 31 | 98 | 32.064516 | 0.798257 | 0 | 0 | 0 | 0 | 0 | 0.079477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 | 0 | 0 | 1 | 0 |
158cb011887f3c76cab1428a5f9f814fdc90be6c | 11,800 | py | Python | google/ads/google_ads/v6/proto/resources/campaign_draft_pb2.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/resources/campaign_draft_pb2.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/resources/campaign_draft_pb2.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v6/resources/campaign_draft.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refl... | 64.480874 | 1,689 | 0.79678 | 1,591 | 11,800 | 5.54494 | 0.13325 | 0.046248 | 0.053956 | 0.068012 | 0.752097 | 0.711517 | 0.615053 | 0.478463 | 0.441963 | 0.422467 | 0 | 0.04272 | 0.081525 | 11,800 | 182 | 1,690 | 64.835165 | 0.771268 | 0.02822 | 0 | 0.376543 | 1 | 0.018519 | 0.354487 | 0.313897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.049383 | 0 | 0.049383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
158cb87ad35efa016b99c8fb5b1cdbee7b0b7b73 | 81 | py | Python | coca/coco_caption/pycocoevalcap/tokenizer/__init__.py | CISiPLab/cisip-GreenCap | 74c3f8461772016eec49840822f1407db4abe2b2 | [
"BSD-3-Clause"
] | 12 | 2021-03-06T13:33:51.000Z | 2022-03-09T06:38:14.000Z | caption_vae/coco_caption/pycocoevalcap/tokenizer/__init__.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | null | null | null | caption_vae/coco_caption/pycocoevalcap/tokenizer/__init__.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | 4 | 2021-12-05T07:26:22.000Z | 2022-03-31T08:36:31.000Z | # -*- coding: utf-8 -*-
"""
Created on 09 Jul 2020 23:36:50
@author: jiahuei
"""
| 13.5 | 31 | 0.580247 | 13 | 81 | 3.615385 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 0.185185 | 81 | 5 | 32 | 16.2 | 0.515152 | 0.876543 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
158d3ba98e41c3cfa0005f23668ccbdb8759e04a | 5,733 | py | Python | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | null | null | null | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | 34 | 2021-03-20T22:42:16.000Z | 2021-09-29T15:50:31.000Z | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Dict, Union
from discord import Guild, TextChannel
import traceback
from .. import botState, lib
from ..baseClasses import serializable
from ..cfg import cfg
from ..game import sdbGame, sdbDeck
from ..reactionMenus import SDBSignupMenu
class BasedGuild(serializa... | 50.289474 | 217 | 0.664922 | 621 | 5,733 | 6.095008 | 0.280193 | 0.022193 | 0.015852 | 0.009511 | 0.233554 | 0.215059 | 0.201849 | 0.180185 | 0.163804 | 0.132629 | 0 | 0.002549 | 0.24734 | 5,733 | 113 | 218 | 50.734513 | 0.874623 | 0.171115 | 0 | 0.057971 | 0 | 0.014493 | 0.163774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.231884 | 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 | 0 | 0 | 1 | 0 |
158daa9a2fa7c45f9dc4c8cd8863b5ada982780f | 8,720 | py | Python | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | 3 | 2019-09-19T15:46:49.000Z | 2019-09-30T18:09:57.000Z | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | null | null | null | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | 3 | 2019-09-19T15:52:07.000Z | 2019-10-08T08:15:32.000Z | from dataspot.config.configurators.network_configurators.plot_height_configurator import PlotHeightConfigurator
from dataspot.config.configurators.network_configurators.plot_width_configurator import PlotWidthConfigurator
from dataspot.config.configurators.network_configurators.xrange_configurator import XRangeConfigur... | 43.819095 | 125 | 0.686927 | 1,061 | 8,720 | 5.441093 | 0.116871 | 0.022519 | 0.016629 | 0.03118 | 0.5815 | 0.558289 | 0.523991 | 0.498008 | 0.484843 | 0.468561 | 0 | 0 | 0.254243 | 8,720 | 198 | 126 | 44.040404 | 0.887744 | 0.39094 | 0 | 0.211765 | 0 | 0 | 0.11609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188235 | false | 0 | 0.070588 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1590abe2fcf4885ac2f64c9cfcad25ae46f3b4fb | 3,842 | py | Python | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | 2 | 2022-01-19T22:24:29.000Z | 2022-01-28T07:50:49.000Z | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | null | null | null | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | null | null | null | import sys
from subdomain_takeover_tools.confirm_agile_crm import is_valid as agile_crm_is_valid
from subdomain_takeover_tools.confirm_azure_app_service import is_valid as azure_app_service_is_valid
from subdomain_takeover_tools.confirm_azure_edge_cdn import is_valid as azure_edge_cdn_is_valid
from subdomain_takeover_... | 37.300971 | 109 | 0.726184 | 511 | 3,842 | 5.136986 | 0.172211 | 0.122667 | 0.079238 | 0.11581 | 0.545143 | 0.462857 | 0.334857 | 0.139048 | 0.048 | 0.048 | 0 | 0.002597 | 0.198074 | 3,842 | 102 | 110 | 37.666667 | 0.8494 | 0.011973 | 0 | 0.109756 | 0 | 0 | 0.069338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.195122 | 0 | 0.487805 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1591d3f76921a6a6ee9967b46e2b782a59eb50ee | 449 | py | Python | marathon/models/__init__.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | 202 | 2015-01-07T06:55:14.000Z | 2021-11-30T12:05:50.000Z | marathon/models/__init__.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | 213 | 2015-03-04T12:54:09.000Z | 2022-02-28T11:36:28.000Z | marathon/models/__init__.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | 169 | 2015-02-06T16:48:05.000Z | 2022-01-18T16:20:56.000Z | from .app import MarathonApp, MarathonHealthCheck
from .base import MarathonResource, MarathonObject
from .constraint import MarathonConstraint
from .deployment import MarathonDeployment, MarathonDeploymentAction, MarathonDeploymentStep
from .endpoint import MarathonEndpoint
from .group import MarathonGroup
from .info ... | 44.9 | 92 | 0.873051 | 42 | 449 | 9.333333 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093541 | 449 | 9 | 93 | 49.888889 | 0.963145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1591fa0cac2c7d80e07b73ac86f219bf9123ba87 | 1,953 | py | Python | client/jsonrpc/_tests/test_proxy.py | bmwiedemann/bitcoin | d956a409451ae38b0135f74774929e25ded16936 | [
"MIT"
] | 45 | 2015-03-16T00:51:40.000Z | 2022-01-16T23:03:35.000Z | client/jsonrpc/_tests/test_proxy.py | bmwiedemann/bitcoin | d956a409451ae38b0135f74774929e25ded16936 | [
"MIT"
] | 87 | 2018-01-06T10:18:31.000Z | 2022-03-11T23:32:30.000Z | client/jsonrpc/_tests/test_proxy.py | bmwiedemann/bitcoin | d956a409451ae38b0135f74774929e25ded16936 | [
"MIT"
] | 14 | 2017-02-18T02:55:13.000Z | 2021-03-29T09:58:16.000Z |
"""
Copyright (c) 2007 Jan-Klaas Kollhof
This file is part of jsonrpc.
jsonrpc is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later... | 32.016393 | 111 | 0.673323 | 248 | 1,953 | 5.282258 | 0.512097 | 0.027481 | 0.027481 | 0.043511 | 0.138931 | 0.138931 | 0.114504 | 0 | 0 | 0 | 0 | 0.013245 | 0.226831 | 1,953 | 61 | 112 | 32.016393 | 0.854305 | 0 | 0 | 0.071429 | 0 | 0 | 0.160173 | 0.07619 | 0 | 0 | 0 | 0 | 0.142857 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
15932452db9b9061ffd7215580037a3f59475126 | 650 | py | Python | deployments/migrations/0029_auto_20200625_1019.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | deployments/migrations/0029_auto_20200625_1019.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | deployments/migrations/0029_auto_20200625_1019.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2020-06-25 10:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deployments', '0028_auto_20200618_0904'),
]
operations = [
migrations.AddField(
model_name='project',
name='actual_... | 27.083333 | 96 | 0.618462 | 67 | 650 | 5.865672 | 0.597015 | 0.045802 | 0.081425 | 0.101781 | 0.259542 | 0.259542 | 0.259542 | 0.259542 | 0.259542 | 0 | 0 | 0.067227 | 0.267692 | 650 | 23 | 97 | 28.26087 | 0.758403 | 0.070769 | 0 | 0.235294 | 1 | 0 | 0.182724 | 0.038206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
1594a5de479d5d5f7a36a36430ba31ef5bbf7529 | 1,047 | py | Python | CoinbaseConnector/coinbaseconnector/utils.py | ospragg/CoinbaseConnector | febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5 | [
"MIT"
] | null | null | null | CoinbaseConnector/coinbaseconnector/utils.py | ospragg/CoinbaseConnector | febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5 | [
"MIT"
] | null | null | null | CoinbaseConnector/coinbaseconnector/utils.py | ospragg/CoinbaseConnector | febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import base64
import hmac
import hashlib
from requests.auth import AuthBase
def generate_auth_headers(message, api_key, secret_key, passphrase):
timestamp = str(time.time())
message = timestamp + message
hmac_key = base64.b64decode(secret_key)
signature = ... | 27.552632 | 68 | 0.698185 | 137 | 1,047 | 5.094891 | 0.379562 | 0.070201 | 0.04298 | 0.074499 | 0.116046 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021226 | 0.190067 | 1,047 | 37 | 69 | 28.297297 | 0.801887 | 0.040115 | 0 | 0 | 1 | 0 | 0.093812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.166667 | 0.166667 | 0 | 0.366667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
15975c5c1d59b3336b3cbfe96936dc3ab25cc893 | 5,606 | py | Python | custom_nn.py | penpy/neural-network | 5bc71577c6c13d937c036f3c7babb31f24e1cd6d | [
"MIT"
] | null | null | null | custom_nn.py | penpy/neural-network | 5bc71577c6c13d937c036f3c7babb31f24e1cd6d | [
"MIT"
] | null | null | null | custom_nn.py | penpy/neural-network | 5bc71577c6c13d937c036f3c7babb31f24e1cd6d | [
"MIT"
] | null | null | null | import numpy as np
def softmax(x):
exp_x = np.exp(x)
return exp_x / np.sum(exp_x, axis=0)
def sigmoid(x):
return 1 / (1+np.exp(-x))
def deriv_sigmoid(s):
"""Derivative of the sigmoid given the output s of the sigmoid"""
return s * (1 - s)
def relu(x):
return x * (x > 0)
def heaviside_step(... | 33.171598 | 77 | 0.587585 | 823 | 5,606 | 3.831106 | 0.18955 | 0.020932 | 0.011418 | 0.020932 | 0.23882 | 0.16746 | 0.142087 | 0.100222 | 0.053917 | 0.045036 | 0 | 0.017048 | 0.26757 | 5,606 | 169 | 78 | 33.171598 | 0.750852 | 0.071531 | 0 | 0.080645 | 0 | 0 | 0.041215 | 0.009288 | 0 | 0 | 0 | 0 | 0.008065 | 1 | 0.112903 | false | 0 | 0.008065 | 0.024194 | 0.233871 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15976fcea0f40cbc07e06c9cc6783d32da92191e | 5,123 | py | Python | src/tuplenet/lcp/middle_table.py | qwjhq/TupleNet | c0f2c2e876c8425c503385bfebc3d6c1b5d4e50f | [
"Apache-2.0"
] | 2 | 2020-02-10T16:06:34.000Z | 2020-02-12T14:55:19.000Z | src/tuplenet/lcp/middle_table.py | rockmenjack/TupleNet | b740f4c25b15e72616495bfcb12f2e6d9b7091ad | [
"Apache-2.0"
] | null | null | null | src/tuplenet/lcp/middle_table.py | rockmenjack/TupleNet | b740f4c25b15e72616495bfcb12f2e6d9b7091ad | [
"Apache-2.0"
] | null | null | null | from pyDatalog import pyDatalog
import action
import match
from reg import *
from logicalview import *
from flow_common import TABLE_LSP_EGRESS_FIRST, TABLE_LRP_INGRESS_IP_ROUTE, \
TABLE_EMBED2_METADATA, TABLE_DROP_PACKET, TABLE_OUTPUT_PKT
pyDatalog.create_terms('Table, Priority, Match, Action')... | 39.10687 | 82 | 0.663869 | 704 | 5,123 | 4.521307 | 0.197443 | 0.03393 | 0.028275 | 0.040214 | 0.562363 | 0.520892 | 0.437637 | 0.361609 | 0.309142 | 0.309142 | 0 | 0.035096 | 0.199102 | 5,123 | 130 | 83 | 39.407692 | 0.740678 | 0.086863 | 0 | 0.363636 | 0 | 0 | 0.071107 | 0.00921 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.054545 | 0 | 0.054545 | 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 |
1598b7dee19781329e09f02bed28f00c924a7fb7 | 850 | py | Python | Max/Max_0075_20200318.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | 1 | 2020-01-08T14:10:24.000Z | 2020-01-08T14:10:24.000Z | Max/Max_0075_20200318.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | null | null | null | Max/Max_0075_20200318.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | null | null | null | """
75. Sort Colors
https://leetcode.com/problems/sort-colors/
Time complexity: O()
Space complexity: O()
"""
from typing import List
class Solution:
def sortColors(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
p0 = curr... | 24.285714 | 62 | 0.445882 | 103 | 850 | 3.679612 | 0.456311 | 0.126649 | 0.126649 | 0.084433 | 0.105541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062124 | 0.412941 | 850 | 34 | 63 | 25 | 0.697395 | 0.216471 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15998ca5e704d0ce300f88ec9f63d2edf52a1311 | 469 | py | Python | tbx/people/migrations/0011_auto_20190216_1748.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 103 | 2015-02-24T17:58:21.000Z | 2022-03-23T08:08:58.000Z | tbx/people/migrations/0011_auto_20190216_1748.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 145 | 2015-01-13T17:13:43.000Z | 2022-03-29T12:56:20.000Z | tbx/people/migrations/0011_auto_20190216_1748.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 57 | 2015-01-03T12:00:37.000Z | 2022-02-09T13:11:30.000Z | # Generated by Django 2.1.5 on 2019-02-16 17:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("people", "0010_contact_default_contact"),
]
operations = [
migrations.AlterField(
model_name="contact",
name="defaul... | 22.333333 | 65 | 0.586354 | 48 | 469 | 5.625 | 0.729167 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058462 | 0.307036 | 469 | 20 | 66 | 23.45 | 0.772308 | 0.095949 | 0 | 0.142857 | 1 | 0 | 0.132701 | 0.066351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.285714 | 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 |
159b88e9ded1306f1bbc757eafe9af1af8292c32 | 5,590 | py | Python | dane/document.py | CLARIAH/DANE-util | 8a3edec69be18ac3bdee476b65059409af05c1bb | [
"Apache-2.0"
] | null | null | null | dane/document.py | CLARIAH/DANE-util | 8a3edec69be18ac3bdee476b65059409af05c1bb | [
"Apache-2.0"
] | 1 | 2019-12-11T19:46:20.000Z | 2019-12-11T21:30:38.000Z | dane/document.py | CLARIAH/DANE-util | 8a3edec69be18ac3bdee476b65059409af05c1bb | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-present, Netherlands Institute for Sound and Vision (Nanne van Noord)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 34.9375 | 86 | 0.615742 | 705 | 5,590 | 4.797163 | 0.283688 | 0.018628 | 0.018924 | 0.023655 | 0.215849 | 0.205204 | 0.19929 | 0.133057 | 0.086931 | 0.086931 | 0 | 0.002232 | 0.278712 | 5,590 | 159 | 87 | 35.157233 | 0.836558 | 0.404651 | 0 | 0.147059 | 0 | 0 | 0.150556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.073529 | 0.014706 | 0.338235 | 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 | 0 | 0 | 1 | 0 |
159bcd51706f2fb03b79fd055eadc60487e05f9b | 189 | py | Python | steps/step01.py | teijeong/deeplearning-from-scratch | d2d237cc592c4454e4a3cc08987b64fb5823fe9e | [
"MIT"
] | null | null | null | steps/step01.py | teijeong/deeplearning-from-scratch | d2d237cc592c4454e4a3cc08987b64fb5823fe9e | [
"MIT"
] | null | null | null | steps/step01.py | teijeong/deeplearning-from-scratch | d2d237cc592c4454e4a3cc08987b64fb5823fe9e | [
"MIT"
] | null | null | null | import numpy as np
class Variable:
def __init__(self, data: np.ndarray) -> None:
self.data = data
if __name__ == '__main__':
x = Variable(np.array(1.0))
print(x.data)
| 18.9 | 49 | 0.624339 | 28 | 189 | 3.785714 | 0.714286 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.238095 | 189 | 9 | 50 | 21 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
159d44799a9c56a805e0bf7bdc7f5ca0be5ac255 | 3,551 | py | Python | pterygium_inference.py | SERI-EPI-DS/pterygium_detection | 5d56896cec4f154bd5e10ddf4db079b1e8d8564d | [
"MIT"
] | null | null | null | pterygium_inference.py | SERI-EPI-DS/pterygium_detection | 5d56896cec4f154bd5e10ddf4db079b1e8d8564d | [
"MIT"
] | null | null | null | pterygium_inference.py | SERI-EPI-DS/pterygium_detection | 5d56896cec4f154bd5e10ddf4db079b1e8d8564d | [
"MIT"
] | null | null | null | import argparse
import numpy as np
import pandas as pd
from tqdm import tqdm
from PIL import Image
import torch, torchvision
from torchvision import transforms
from torch.nn import functional as F
from torchvision.models.utils import load_state_dict_from_url
SEED = 123
torch.manual_seed(SEED)
torch.backends.cudnn.det... | 30.350427 | 130 | 0.62405 | 424 | 3,551 | 5.023585 | 0.367925 | 0.028169 | 0.035211 | 0.015962 | 0.034742 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009619 | 0.268093 | 3,551 | 116 | 131 | 30.612069 | 0.809927 | 0.004506 | 0 | 0 | 0 | 0.012821 | 0.140957 | 0.006227 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.064103 | false | 0 | 0.115385 | 0 | 0.25641 | 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 | 0 | 0 | 1 | 0 |
159e0993e20c2d1a01b6aa2da9021b6c99e89aa2 | 4,417 | py | Python | xndtools/kernel_generator/tests/test_test_array.py | xnd-project/xndtools | 9478f31954091d861ce538ba278f7f888e23d19b | [
"BSD-3-Clause"
] | 3 | 2019-11-12T16:01:26.000Z | 2020-06-27T19:27:27.000Z | xndtools/kernel_generator/tests/test_test_array.py | xnd-project/xndtools | 9478f31954091d861ce538ba278f7f888e23d19b | [
"BSD-3-Clause"
] | 4 | 2018-04-25T17:12:43.000Z | 2018-08-23T18:17:24.000Z | xndtools/kernel_generator/tests/test_test_array.py | xnd-project/xndtools | 9478f31954091d861ce538ba278f7f888e23d19b | [
"BSD-3-Clause"
] | 6 | 2018-05-04T08:10:40.000Z | 2019-03-19T10:00:21.000Z | import pytest
from xndtools.kernel_generator.utils import NormalizedTypeMap
from xnd import xnd
import test_array as m
long_t = NormalizedTypeMap()('long')
def assert_equal(x, y):
assert x == y and x.dtype == y.dtype
def test_array_range_input():
# C kernel
a = xnd([1, 2, 3], dtype=long_t)
r = m.t... | 26.769697 | 77 | 0.600634 | 811 | 4,417 | 3.066584 | 0.077682 | 0.104544 | 0.148774 | 0.128669 | 0.894652 | 0.864897 | 0.821874 | 0.821874 | 0.758745 | 0.746683 | 0 | 0.053582 | 0.235228 | 4,417 | 164 | 78 | 26.932927 | 0.682652 | 0.103917 | 0 | 0.609195 | 0 | 0 | 0.0143 | 0 | 0 | 0 | 0 | 0.006098 | 0.448276 | 1 | 0.103448 | false | 0 | 0.045977 | 0 | 0.149425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
159eb6f3bd3db35874296877ff6439ebc3a807ba | 137 | py | Python | pycwr/io/BaseDataProtocol/__init__.py | aliny2003/pycwr | 3186125bdd2f551b9c59639dca567a1c06b50e96 | [
"MIT"
] | 144 | 2019-11-27T14:36:41.000Z | 2022-02-23T08:21:17.000Z | pycwr/io/BaseDataProtocol/__init__.py | zhaopingsun/pycwr | 7459371588e6d0d6d0737e249afa3921fe073151 | [
"MIT"
] | 32 | 2019-11-29T10:11:53.000Z | 2022-03-14T07:46:44.000Z | pycwr/io/BaseDataProtocol/__init__.py | zhaopingsun/pycwr | 7459371588e6d0d6d0737e249afa3921fe073151 | [
"MIT"
] | 57 | 2019-11-27T12:51:44.000Z | 2022-01-29T14:50:05.000Z | from . import CCProtocol, SABProtocol, SCProtocol, WSR98DProtocol
__all__ = ["CCProtocol", "SABProtocol", "SCProtocol", "WSR98DProtocol"] | 68.5 | 71 | 0.781022 | 11 | 137 | 9.363636 | 0.636364 | 0.407767 | 0.601942 | 0.873786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.087591 | 137 | 2 | 71 | 68.5 | 0.792 | 0 | 0 | 0 | 0 | 0 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
159ed2ae1919b29a27330c6655a49f89f57d7ede | 158 | py | Python | zplconvert/__init__.py | Karimerto/zplconvert | 5b953acc098261f711a65c50480ee1b00bded40d | [
"MIT"
] | 4 | 2020-03-21T05:50:55.000Z | 2022-01-22T20:06:58.000Z | zplconvert/__init__.py | Karimerto/zplconvert | 5b953acc098261f711a65c50480ee1b00bded40d | [
"MIT"
] | null | null | null | zplconvert/__init__.py | Karimerto/zplconvert | 5b953acc098261f711a65c50480ee1b00bded40d | [
"MIT"
] | 1 | 2022-03-03T11:04:41.000Z | 2022-03-03T11:04:41.000Z | #!/usr/bin/env python
from .zplconvert import ZPLConvert
from .zplparser import zpl_parse
from .zpltools import Printer, PrinterError
__version__ = '0.0.4'
| 19.75 | 43 | 0.78481 | 22 | 158 | 5.409091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.126582 | 158 | 7 | 44 | 22.571429 | 0.84058 | 0.126582 | 0 | 0 | 0 | 0 | 0.036496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
15a23a52ff14d809f1cafc15020c2e60fa07129d | 6,578 | py | Python | db/executions_tab.py | Jaleyhd/Krama | 5f29096828fe659eccf8525ff31bc4d7a273c049 | [
"MIT"
] | null | null | null | db/executions_tab.py | Jaleyhd/Krama | 5f29096828fe659eccf8525ff31bc4d7a273c049 | [
"MIT"
] | null | null | null | db/executions_tab.py | Jaleyhd/Krama | 5f29096828fe659eccf8525ff31bc4d7a273c049 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from . import db_util
from ..proto import krama_pb2
from ..conf import common
import MySQLdb
import os
from google.protobuf import text_format
import simplejson
from ..protobufjson.protobuf_json import *
# CREATE TABLE executions_tab
# (
# exec_id INT NOT NULL AUTO_INCREMENT,
# j... | 37.375 | 113 | 0.633475 | 888 | 6,578 | 4.35473 | 0.149775 | 0.088699 | 0.039824 | 0.032583 | 0.416861 | 0.162141 | 0.15128 | 0.134213 | 0.125162 | 0.108094 | 0 | 0.009881 | 0.230769 | 6,578 | 176 | 114 | 37.375 | 0.754348 | 0.09927 | 0 | 0.12381 | 0 | 0 | 0.128231 | 0.017976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.247619 | 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 | 0 | 0 | 1 | 0 |
15a28217185f3fc51e4f3d7f262c875ed36e6017 | 764 | py | Python | bot_components/bot_classes.py | sghill/hubcommander | 3f39735506d07d1167e42e9346cffe39d6b8c3db | [
"Apache-2.0"
] | 1,286 | 2017-02-07T17:20:36.000Z | 2022-03-29T16:20:19.000Z | bot_components/bot_classes.py | sghill/hubcommander | 3f39735506d07d1167e42e9346cffe39d6b8c3db | [
"Apache-2.0"
] | 62 | 2017-02-07T04:08:23.000Z | 2022-01-13T21:53:56.000Z | bot_components/bot_classes.py | sghill/hubcommander | 3f39735506d07d1167e42e9346cffe39d6b8c3db | [
"Apache-2.0"
] | 190 | 2017-02-07T18:51:11.000Z | 2022-03-27T10:16:30.000Z | """
.. module: hubcommander.bot_components.bot_classes
:platform: Unix
:copyright: (c) 2017 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Mike Grima <mgrima@netflix.com>
"""
class BotPlugin:
def __init__(self):
pass
def setup(self... | 20.648649 | 62 | 0.636126 | 81 | 764 | 5.728395 | 0.518519 | 0.068966 | 0.103448 | 0.12931 | 0.303879 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.240838 | 764 | 36 | 63 | 21.222222 | 0.793103 | 0.308901 | 0 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.166667 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
15a285c25f5f655b57f5a6de7f026ed992a0785f | 23,320 | py | Python | api_test/models.py | RockyLiys/api_auto_test_platform | 7e6aec23b6f54d20c534b77a2679daf37b65c960 | [
"MIT"
] | null | null | null | api_test/models.py | RockyLiys/api_auto_test_platform | 7e6aec23b6f54d20c534b77a2679daf37b65c960 | [
"MIT"
] | 10 | 2019-12-04T23:30:37.000Z | 2022-02-10T12:05:45.000Z | api_test/models.py | RockyLiys/api_auto_test_platform | 7e6aec23b6f54d20c534b77a2679daf37b65c960 | [
"MIT"
] | 3 | 2019-07-01T10:18:40.000Z | 2019-07-06T00:59:19.000Z | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
HTTP_CHOICE = (
('HTTP', 'HTTP'),
('HTTPS',... | 36.551724 | 133 | 0.683962 | 2,756 | 23,320 | 5.55479 | 0.135704 | 0.148018 | 0.096414 | 0.128552 | 0.707166 | 0.685544 | 0.651055 | 0.60435 | 0.53805 | 0.520413 | 0 | 0.016469 | 0.187607 | 23,320 | 637 | 134 | 36.609105 | 0.791607 | 0.018611 | 0 | 0.392694 | 0 | 0 | 0.064252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086758 | false | 0.004566 | 0.013699 | 0.084475 | 0.721461 | 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 |
15a40abfd2080856f8b0424f55c6b76f48786a86 | 511 | py | Python | src/server.py | themis-project/themis-finals-devenv-master | b004a12af8c98fb0286642ca0becd69e146bc6f3 | [
"MIT"
] | null | null | null | src/server.py | themis-project/themis-finals-devenv-master | b004a12af8c98fb0286642ca0becd69e146bc6f3 | [
"MIT"
] | null | null | null | src/server.py | themis-project/themis-finals-devenv-master | b004a12af8c98fb0286642ca0becd69e146bc6f3 | [
"MIT"
] | null | null | null | from gevent import monkey
monkey.patch_all()
from gevent.pywsgi import WSGIServer
from werkzeug.serving import run_with_reloader
import os
from app import app
SERVER_HOST = os.getenv('SERVER_HOST', '0.0.0.0')
SERVER_PORT = int(os.getenv('SERVER_PORT', '80'))
SERVER_RELOAD = os.getenv('SERVER_RELOAD', 'no') == 'yes'
... | 23.227273 | 61 | 0.747554 | 77 | 511 | 4.701299 | 0.402597 | 0.082873 | 0.116022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.131115 | 511 | 21 | 62 | 24.333333 | 0.801802 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 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 |
15a5974f19858186082ef01ae0c5530964542d3d | 3,533 | py | Python | Downloader.py | PriyanshuG13/AnimeDownloader | cb5893339c8789fbedcebc73e8c1d91e8632846d | [
"MIT"
] | null | null | null | Downloader.py | PriyanshuG13/AnimeDownloader | cb5893339c8789fbedcebc73e8c1d91e8632846d | [
"MIT"
] | null | null | null | Downloader.py | PriyanshuG13/AnimeDownloader | cb5893339c8789fbedcebc73e8c1d91e8632846d | [
"MIT"
] | null | null | null | import os
import subprocess
import webbrowser
import clipboard
import requests
from bs4 import BeautifulSoup
from pyfiglet import Figlet
from Database.DatabaseManager import DatabaseManager as Animedb
class Downloader(Animedb):
def __init__(self, delay=60):
self._COLS = os.get_terminal_size().columns
... | 31.544643 | 108 | 0.546844 | 407 | 3,533 | 4.636364 | 0.346437 | 0.081611 | 0.030207 | 0.046105 | 0.18601 | 0.104928 | 0.068892 | 0.068892 | 0.068892 | 0.068892 | 0 | 0.011208 | 0.318143 | 3,533 | 111 | 109 | 31.828829 | 0.772105 | 0 | 0 | 0.237113 | 0 | 0 | 0.171243 | 0.005944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103093 | false | 0 | 0.082474 | 0 | 0.257732 | 0.051546 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15a7b6d2d29c51ea6c81fd90e9bae8cfd595d7fd | 924 | py | Python | figures/scripts/studentst.py | mattpitkin/GraWIToNStatisticsLectures | 09175a3a8cb3c9f0f15535d64deaef1275eac870 | [
"MIT"
] | 1 | 2018-02-09T21:01:54.000Z | 2018-02-09T21:01:54.000Z | figures/scripts/studentst.py | mattpitkin/GraWIToNStatisticsLectures | 09175a3a8cb3c9f0f15535d64deaef1275eac870 | [
"MIT"
] | null | null | null | figures/scripts/studentst.py | mattpitkin/GraWIToNStatisticsLectures | 09175a3a8cb3c9f0f15535d64deaef1275eac870 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Make plots of the Student's t-distribution for different degrees of freedom
"""
import matplotlib.pyplot as pl
from scipy.stats import norm
from scipy.stats import t
import numpy as np
mu = 0. # the mean, mu
nus = [1., 2., 5, 10, 100] # standard deviations, sigma
markers = ['b-', 'r-', 'm-'... | 22 | 75 | 0.645022 | 166 | 924 | 3.572289 | 0.60241 | 0.020236 | 0.047218 | 0.067454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.142857 | 924 | 41 | 76 | 22.536585 | 0.708333 | 0.234848 | 0 | 0 | 0 | 0 | 0.109827 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15a91f68e5ff17be773436d601a24af7798d38aa | 9,248 | py | Python | usr/local/lib/python3.6/dist-packages/html2text/cli.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | usr/local/lib/python3.6/dist-packages/html2text/cli.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | usr/local/lib/python3.6/dist-packages/html2text/cli.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | import argparse
import sys
from html2text import HTML2Text, __version__, config
def main():
baseurl = ""
class bcolors:
HEADER = "\033[95m"
OKBLUE = "\033[94m"
OKGREEN = "\033[92m"
WARNING = "\033[93m"
FAIL = "\033[91m"
ENDC = "\033[0m"
BOLD = "\033[1m... | 30.123779 | 87 | 0.596453 | 1,105 | 9,248 | 4.78733 | 0.2181 | 0.024953 | 0.074858 | 0.039509 | 0.126465 | 0.086389 | 0.01758 | 0 | 0 | 0 | 0 | 0.006511 | 0.2859 | 9,248 | 306 | 88 | 30.222222 | 0.794518 | 0.001514 | 0 | 0.244068 | 0 | 0 | 0.312717 | 0.007257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00339 | false | 0.013559 | 0.010169 | 0 | 0.044068 | 0.00339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15aa3d879d1c430956af982477b50e91fe1a8bdc | 2,848 | py | Python | handybeam/solver.py | ultraleap/HandyBeam | 9f80b97742cde4b75d3478d554dc9bc2cd9dfd96 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-20T09:15:46.000Z | 2020-12-03T00:31:23.000Z | handybeam/solver.py | ultraleap/HandyBeam | 9f80b97742cde4b75d3478d554dc9bc2cd9dfd96 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-04-04T18:36:54.000Z | 2021-10-12T22:57:34.000Z | handybeam/solver.py | ultraleap/HandyBeam | 9f80b97742cde4b75d3478d554dc9bc2cd9dfd96 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-11-29T16:05:26.000Z | 2021-07-01T22:56:39.000Z | """
.. the following is a link to enable linking to this file:
.. solver_:
Contains excitation solvers.
A basic single-point-focus excitation solver is :meth:`handybeam.solver.Solver.single_focus_solver`
"""
# Imports
import warnings
warnings.warn('solver.py is obsolete - use beamformer.py instead')
import handybea... | 33.505882 | 122 | 0.589537 | 318 | 2,848 | 5.113208 | 0.305031 | 0.04059 | 0.062731 | 0.027675 | 0.252153 | 0.252153 | 0.207872 | 0.130381 | 0.130381 | 0.092251 | 0 | 0.001621 | 0.35007 | 2,848 | 84 | 123 | 33.904762 | 0.876823 | 0.505618 | 0 | 0 | 0 | 0 | 0.043401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15aaa43978d8eaa0042bd4ae9f02f92ad679604f | 36,550 | py | Python | rest-service/manager_rest/deployment_update/manager.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 124 | 2015-01-22T22:28:37.000Z | 2022-02-26T23:12:06.000Z | rest-service/manager_rest/deployment_update/manager.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 345 | 2015-01-08T15:49:40.000Z | 2022-03-29T08:33:00.000Z | rest-service/manager_rest/deployment_update/manager.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 77 | 2015-01-07T14:04:35.000Z | 2022-03-07T22:46:00.000Z | ########
# Copyright (c) 2017-2019 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 46.090794 | 79 | 0.601532 | 3,728 | 36,550 | 5.580204 | 0.125 | 0.03288 | 0.019997 | 0.014373 | 0.281209 | 0.2142 | 0.153199 | 0.127289 | 0.099649 | 0.087439 | 0 | 0.001124 | 0.342627 | 36,550 | 792 | 80 | 46.14899 | 0.864694 | 0.147305 | 0 | 0.153716 | 0 | 0 | 0.050104 | 0.009364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04223 | false | 0 | 0.030405 | 0.006757 | 0.113176 | 0.033784 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15ab520350fbf5d2df3da6de772dd557ce6bea6a | 595 | py | Python | kmeans.py | Tilmanator/Stock-Predictor | c67efa24d8c9ab65aba33280e7fc56a12ded7261 | [
"MIT"
] | null | null | null | kmeans.py | Tilmanator/Stock-Predictor | c67efa24d8c9ab65aba33280e7fc56a12ded7261 | [
"MIT"
] | null | null | null | kmeans.py | Tilmanator/Stock-Predictor | c67efa24d8c9ab65aba33280e7fc56a12ded7261 | [
"MIT"
] | null | null | null | from sklearn.cluster import KMeans
import numpy as np
import matplotlib.pyplot as plt
x = np.array([1,2,3,7,8,9])
y = np.array([7,6,7,3,2,2])
plt.scatter(x, y)
plt.show()
X = np.array(zip(x,y))
kmeans = KMeans(n_clusters=2)
kmeans.fit(X)
centroids = kmeans.cluster_centers_
labels = kmeans.labels_
colours = ['g.'... | 22.037037 | 78 | 0.635294 | 108 | 595 | 3.462963 | 0.5 | 0.05615 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044834 | 0.137815 | 595 | 27 | 79 | 22.037037 | 0.684211 | 0.042017 | 0 | 0.111111 | 0 | 0 | 0.033392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15b0920b82c1636984d52cd2a1a47d2d9c032561 | 14,288 | py | Python | dataproxy/implementations.py | peerplays-network/bos-dataproxy | ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc | [
"MIT"
] | 6 | 2019-12-05T18:37:33.000Z | 2019-12-20T17:58:32.000Z | dataproxy/implementations.py | peerplays-network/bos-dataproxy | ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc | [
"MIT"
] | 2 | 2019-08-06T10:40:45.000Z | 2020-02-21T14:14:12.000Z | dataproxy/implementations.py | peerplays-network/bos-dataproxy | ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc | [
"MIT"
] | 1 | 2019-07-01T13:25:15.000Z | 2019-07-01T13:25:15.000Z | import logging
from .processors import JsonProcessor
from . import Config
from .stores import IncidentFileStore, RawStore, ProcessedFileStore
from .routes.push import PushReceiver
import json
from bos_incidents.exceptions import DuplicateIncidentException
import threading
import time
from strict_rfc3339 import Inval... | 42.778443 | 206 | 0.569219 | 1,439 | 14,288 | 5.366921 | 0.166782 | 0.049722 | 0.062152 | 0.039881 | 0.300401 | 0.240839 | 0.213 | 0.200181 | 0.160171 | 0.135181 | 0 | 0.012278 | 0.338746 | 14,288 | 333 | 207 | 42.906907 | 0.805144 | 0.068239 | 0 | 0.241509 | 0 | 0 | 0.114557 | 0.004591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.018868 | 0.060377 | 0 | 0.101887 | 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 | 0 | 0 | 1 | 0 |
15b3103b6182bc5b254439b61e878924238c7af3 | 212 | py | Python | contrib/examples/actions/print_config.py | padamel/files4coding | 3a0479cc9244efd632d14a48c8dc6fd1367edf3e | [
"Apache-2.0"
] | null | null | null | contrib/examples/actions/print_config.py | padamel/files4coding | 3a0479cc9244efd632d14a48c8dc6fd1367edf3e | [
"Apache-2.0"
] | 2 | 2021-09-19T19:48:15.000Z | 2021-09-19T19:48:16.000Z | contrib/examples/actions/print_config.py | padamel/files4coding | 3a0479cc9244efd632d14a48c8dc6fd1367edf3e | [
"Apache-2.0"
] | null | null | null | from pprint import pprint
from st2common.runners.base_action import Action
class PrintConfigAction(Action):
def run(self):
print("=========")
pprint(self.config)
print("=========")
| 19.272727 | 48 | 0.608491 | 22 | 212 | 5.818182 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.216981 | 212 | 10 | 49 | 21.2 | 0.76506 | 0 | 0 | 0.285714 | 0 | 0 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.571429 | 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 | 1 | 1 | 0 | 3 |
15b528691ced37fef4bc2f524d86160eed2c75df | 7,525 | py | Python | visualization/panda/rpc/rviz_pb2.py | takuya-ki/wrs | f6e1009b94332504042fbde9b39323410394ecde | [
"MIT"
] | 23 | 2021-04-02T09:02:04.000Z | 2022-03-22T05:31:03.000Z | visualization/panda/rpc/rviz_pb2.py | takuya-ki/wrs | f6e1009b94332504042fbde9b39323410394ecde | [
"MIT"
] | 35 | 2021-04-12T09:41:05.000Z | 2022-03-26T13:32:46.000Z | visualization/panda/rpc/rviz_pb2.py | takuya-ki/wrs | f6e1009b94332504042fbde9b39323410394ecde | [
"MIT"
] | 16 | 2021-03-30T11:55:45.000Z | 2022-03-30T07:10:59.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: rviz.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf i... | 29.509804 | 557 | 0.749635 | 879 | 7,525 | 6.056883 | 0.183163 | 0.050714 | 0.064237 | 0.076071 | 0.482908 | 0.441773 | 0.441773 | 0.439895 | 0.396694 | 0.386551 | 0 | 0.031688 | 0.127708 | 7,525 | 254 | 558 | 29.625984 | 0.779403 | 0.053422 | 0 | 0.59633 | 1 | 0.004587 | 0.151217 | 0.094247 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018349 | 0 | 0.018349 | 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 |
15b670262fd9d1d5bb5bbf2c9ec8c0581b614760 | 4,418 | py | Python | main.py | kantegory/accreditation_system | d5595b265788cf9b63431650d2911695ad737038 | [
"MIT"
] | null | null | null | main.py | kantegory/accreditation_system | d5595b265788cf9b63431650d2911695ad737038 | [
"MIT"
] | 4 | 2020-04-16T17:52:37.000Z | 2021-12-13T20:35:51.000Z | main.py | kantegory/accreditation_system | d5595b265788cf9b63431650d2911695ad737038 | [
"MIT"
] | 1 | 2020-04-07T06:18:40.000Z | 2020-04-07T06:18:40.000Z | import bottle
from bottle import request, route, template, auth_basic, redirect
from utils.db_helper import create_blank
from utils.db_manage import get_all_blanks, get_all_questions_by_token, \
get_blank_id_by_token, add_new_users_answers, \
get_blank_info_by_token, get_report_by_token, get_all_standards_by_to... | 29.851351 | 154 | 0.717972 | 613 | 4,418 | 4.805873 | 0.158238 | 0.052274 | 0.052953 | 0.028853 | 0.391718 | 0.251527 | 0.14664 | 0.075356 | 0.032587 | 0 | 0 | 0.001617 | 0.160254 | 4,418 | 147 | 155 | 30.054422 | 0.792453 | 0 | 0 | 0.106796 | 0 | 0 | 0.102082 | 0.026483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097087 | false | 0.019417 | 0.087379 | 0.009709 | 0.23301 | 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 | 0 | 0 | 1 | 0 |
15b6b79e99c48019821e5f8d99db6cad406b8146 | 362 | py | Python | ajax_forms/tests/forms.py | chrisspen/django-ajax-forms | da5031192a46aaa2fe3de5d6984b376755c9e429 | [
"BSD-3-Clause"
] | null | null | null | ajax_forms/tests/forms.py | chrisspen/django-ajax-forms | da5031192a46aaa2fe3de5d6984b376755c9e429 | [
"BSD-3-Clause"
] | 29 | 2017-09-30T09:45:56.000Z | 2021-03-01T14:40:23.000Z | ajax_forms/tests/forms.py | chrisspen/django-ajax-forms | da5031192a46aaa2fe3de5d6984b376755c9e429 | [
"BSD-3-Clause"
] | 9 | 2017-05-12T11:48:47.000Z | 2018-07-13T12:07:58.000Z | from django import forms
from .models import Contact
#class ContactForm(forms.Form):
#name = forms.CharField(max_length=50)
class ContactForm(forms.Form):
name = forms.CharField()
email = forms.EmailField()
age = forms.IntegerField()
class ContactModelForm(forms.ModelForm):
class Meta:
m... | 21.294118 | 42 | 0.69337 | 41 | 362 | 6 | 0.585366 | 0.130081 | 0.170732 | 0.203252 | 0.349594 | 0.349594 | 0.349594 | 0 | 0 | 0 | 0 | 0.006944 | 0.20442 | 362 | 16 | 43 | 22.625 | 0.847222 | 0.185083 | 0 | 0 | 0 | 0 | 0.023891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 2 |
15b7a264d607ff095bc9d427c0c9c5d6ae9bc122 | 1,063 | py | Python | ImageProcessing-Python/blog12-warpAffine/blog12-image03.py | Songner/image_classfication | c1f15b2b96544e859e14a92373eb57c6a2644a93 | [
"MIT"
] | null | null | null | ImageProcessing-Python/blog12-warpAffine/blog12-image03.py | Songner/image_classfication | c1f15b2b96544e859e14a92373eb57c6a2644a93 | [
"MIT"
] | null | null | null | ImageProcessing-Python/blog12-warpAffine/blog12-image03.py | Songner/image_classfication | c1f15b2b96544e859e14a92373eb57c6a2644a93 | [
"MIT"
] | null | null | null | #encoding:utf-8
import cv2
import numpy as np
import matplotlib.pyplot as plt
#读取图片
src = cv2.imread('test01.jpg')
#获取图像大小
rows, cols = src.shape[:2]
#将源图像高斯模糊
img = cv2.GaussianBlur(src, (3,3), 0)
#进行灰度化处理
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
#边缘检测(检测出图像的边缘信息)
edges = cv2.Canny(gray,50,250,... | 21.693878 | 77 | 0.650988 | 169 | 1,063 | 4.088757 | 0.508876 | 0.034732 | 0.052098 | 0.069465 | 0.118669 | 0.081042 | 0.081042 | 0.054993 | 0 | 0 | 0 | 0.140607 | 0.163688 | 1,063 | 48 | 78 | 22.145833 | 0.63667 | 0.110066 | 0 | 0.166667 | 0 | 0 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15b7b434f546b16436f33e7ab0369ff24dbf0a48 | 846 | py | Python | v2e/run_v2e.py | ibugueno/UOH-EventCameras | 1941e90499955e199be33c706547b25ba6856eb4 | [
"MIT"
] | 1 | 2021-07-06T08:53:26.000Z | 2021-07-06T08:53:26.000Z | v2e/run_v2e.py | ibugueno/UOH-EventCameras | 1941e90499955e199be33c706547b25ba6856eb4 | [
"MIT"
] | null | null | null | v2e/run_v2e.py | ibugueno/UOH-EventCameras | 1941e90499955e199be33c706547b25ba6856eb4 | [
"MIT"
] | 1 | 2021-07-06T08:53:26.000Z | 2021-07-06T08:53:26.000Z | from os import listdir
from os.path import isfile, join
from videoprops import get_video_properties
import math
import subprocess
import time
input_path = 'input/Test_Set/'
output_path = 'output/Test_Set/'
files = [f for f in listdir(input_path) if isfile(join(input_path, f))]
for file in files:
input_full_path ... | 24.171429 | 126 | 0.689125 | 132 | 846 | 4.189394 | 0.363636 | 0.072333 | 0.070524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006906 | 0.144208 | 846 | 34 | 127 | 24.882353 | 0.754144 | 0 | 0 | 0 | 0 | 0 | 0.183432 | 0.040237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
15b9e21e51e269288bc47d66331e512cd62e6c38 | 610 | py | Python | simulated_experiments/create_config.py | elerson/NetworkedRobotsProject | d2b9d0a121c5421a40e806a93e6a8f1315f24441 | [
"MIT"
] | null | null | null | simulated_experiments/create_config.py | elerson/NetworkedRobotsProject | d2b9d0a121c5421a40e806a93e6a8f1315f24441 | [
"MIT"
] | null | null | null | simulated_experiments/create_config.py | elerson/NetworkedRobotsProject | d2b9d0a121c5421a40e806a93e6a8f1315f24441 | [
"MIT"
] | null | null | null | #!/usr/bin/python
config_exp = '''
robots:
1:
id: 1
ip: 192.168.0.1
macaddress: ec:08:6b:0d:68:ef
cable_ip: 150.164.212.43
configs:
map: DIR_/map/ambiente.png
treefile: DIR_/steinerData1.dat
resolution: 0.05
exit: 1
simulation: 1
broadcast_address: 127.255.255.255
algorithm_port: 3998... | 16.052632 | 47 | 0.659016 | 95 | 610 | 4 | 0.694737 | 0.047368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114519 | 0.198361 | 610 | 37 | 48 | 16.486486 | 0.662577 | 0.02623 | 0 | 0 | 0 | 0 | 0.576729 | 0.070826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 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 | 0 | 0 | 1 | 0 |
15ba07a2ed799dc5d1afcacd9adc7e0a124b0fc0 | 2,309 | py | Python | tests/relay/test_node_permissions.py | Dagurmart/graphene-django-plus | c8bc3c1179a02f51ff97bb8ba9dd187737a28b68 | [
"MIT"
] | null | null | null | tests/relay/test_node_permissions.py | Dagurmart/graphene-django-plus | c8bc3c1179a02f51ff97bb8ba9dd187737a28b68 | [
"MIT"
] | null | null | null | tests/relay/test_node_permissions.py | Dagurmart/graphene-django-plus | c8bc3c1179a02f51ff97bb8ba9dd187737a28b68 | [
"MIT"
] | 1 | 2020-06-11T19:15:51.000Z | 2020-06-11T19:15:51.000Z | import pytest
from graphql_relay import to_global_id
from rest_framework.utils import json
@pytest.mark.django_db()
def test_node_permission_classes_without_authentication(book_factory, graphql_client):
book = book_factory()
response = graphql_client.execute(
"""
query BookAsAdmin($id: ID!) {... | 26.54023 | 86 | 0.563014 | 233 | 2,309 | 5.347639 | 0.266094 | 0.028892 | 0.072231 | 0.096308 | 0.88443 | 0.88443 | 0.88443 | 0.863563 | 0.863563 | 0.863563 | 0 | 0.009323 | 0.303162 | 2,309 | 86 | 87 | 26.848837 | 0.765071 | 0 | 0 | 0.62069 | 0 | 0 | 0.14315 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.051724 | false | 0 | 0.051724 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
15bb3cbfcfa07f95701ecd2783316238c64ed5b5 | 3,960 | py | Python | firebirdsql/tests/test_proc.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 31 | 2015-03-28T09:43:53.000Z | 2022-02-27T18:20:06.000Z | firebirdsql/tests/test_proc.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 24 | 2015-01-16T03:00:33.000Z | 2022-02-08T00:06:05.000Z | firebirdsql/tests/test_proc.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 21 | 2015-01-15T23:00:26.000Z | 2020-11-04T08:30:13.000Z | from __future__ import with_statement
import datetime
import firebirdsql
from firebirdsql.tests.base import * # noqa
from firebirdsql.consts import * # noqa
class TestProc(TestBase):
def setUp(self):
TestBase.setUp(self)
cur = self.connection.cursor()
cur.execute('''
... | 33.277311 | 82 | 0.49798 | 469 | 3,960 | 4.127932 | 0.270789 | 0.056818 | 0.061467 | 0.083161 | 0.47469 | 0.420455 | 0.344008 | 0.192665 | 0.157541 | 0.098141 | 0 | 0.059015 | 0.379545 | 3,960 | 118 | 83 | 33.559322 | 0.728938 | 0.027778 | 0 | 0.443396 | 0 | 0.018868 | 0.50026 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 1 | 0.037736 | false | 0.028302 | 0.04717 | 0 | 0.09434 | 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 | 0 | 0 | 1 | 0 |
15bc79247061ea3640331e03d1630dd3daa07ec0 | 3,149 | py | Python | log_in.py | ultirian/SQLAlchemyMySQLTest | 1e605dafa3af638d9b8034d11dc8eafd78feef1a | [
"Unlicense"
] | null | null | null | log_in.py | ultirian/SQLAlchemyMySQLTest | 1e605dafa3af638d9b8034d11dc8eafd78feef1a | [
"Unlicense"
] | null | null | null | log_in.py | ultirian/SQLAlchemyMySQLTest | 1e605dafa3af638d9b8034d11dc8eafd78feef1a | [
"Unlicense"
] | null | null | null | """
Name: Christopher Weaver
Date: 11/07/2021
Project: USW Coursework 2 Remake with Python and MySQL
Additional lib Used: black, pylint, sqlacodegen.
Description: Log in methods associated with log in class.
"""
# coding=utf-8
# Libraries
import pyinputplus as pyin
from log_in_class import LogInObject
from user import... | 25.601626 | 85 | 0.638298 | 401 | 3,149 | 4.785536 | 0.266833 | 0.08025 | 0.03752 | 0.02814 | 0.146952 | 0.137572 | 0.107348 | 0.107348 | 0.107348 | 0.05211 | 0 | 0.004346 | 0.269292 | 3,149 | 122 | 86 | 25.811475 | 0.829639 | 0.134963 | 0 | 0.268293 | 0 | 0 | 0.098706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0.085366 | 0.060976 | 0 | 0.243902 | 0.256098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
15bcb236ed8a4476a796d56e5b8eb69e73ae26a3 | 2,630 | py | Python | backend/assignment/views/student.py | skku-npc/SKKU_Coding_Platform | 1d972e8922484cf94f6735fd08b2565e5d3517d0 | [
"MIT"
] | 1 | 2022-03-30T14:03:23.000Z | 2022-03-30T14:03:23.000Z | backend/assignment/views/student.py | skku-npc/SKKU_Coding_Platform | 1d972e8922484cf94f6735fd08b2565e5d3517d0 | [
"MIT"
] | 56 | 2022-02-19T08:13:48.000Z | 2022-03-25T10:17:07.000Z | backend/assignment/views/student.py | skku-npc/SKKU_Coding_Platform | 1d972e8922484cf94f6735fd08b2565e5d3517d0 | [
"MIT"
] | 1 | 2022-03-25T15:02:46.000Z | 2022-03-25T15:02:46.000Z | from utils.api import APIView
from utils.decorators import login_required
from course.models import Course, Registration
from ..models import Assignment
from ..serializers import AssignmentSerializer
from drf_yasg.utils import swagger_auto_schema
from drf_yasg import openapi
class AssignmentAPI(APIView):
@swagg... | 36.027397 | 104 | 0.605323 | 270 | 2,630 | 5.744444 | 0.288889 | 0.061896 | 0.045132 | 0.041264 | 0.246293 | 0.162476 | 0.162476 | 0.108317 | 0.108317 | 0.05158 | 0 | 0.003326 | 0.314068 | 2,630 | 72 | 105 | 36.527778 | 0.85643 | 0 | 0 | 0.285714 | 0 | 0 | 0.123954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.111111 | 0 | 0.238095 | 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 | 0 | 0 | 1 | 0 |
15bcf087df1b9bd27e662d12fa08d7dfa12a8608 | 14,380 | py | Python | scielo_migration/isisdb/base_h_record.py | scieloorg/scielo_migration | 320de42e48e873990a561058e8731ae3c477421a | [
"BSD-2-Clause"
] | null | null | null | scielo_migration/isisdb/base_h_record.py | scieloorg/scielo_migration | 320de42e48e873990a561058e8731ae3c477421a | [
"BSD-2-Clause"
] | null | null | null | scielo_migration/isisdb/base_h_record.py | scieloorg/scielo_migration | 320de42e48e873990a561058e8731ae3c477421a | [
"BSD-2-Clause"
] | 1 | 2021-11-03T18:24:08.000Z | 2021-11-03T18:24:08.000Z | # generated by ModelBuilder
from scielo_migration.iid2json.meta_record import MetaRecord
# generated by ModelBuilder
class BaseArticleRecord(MetaRecord):
def __init__(
self, record, multi_val_tags=None,
data_dictionary=None):
super().__init__(
record, multi_val_tags, d... | 26.385321 | 208 | 0.571419 | 1,462 | 14,380 | 5.4829 | 0.123803 | 0.083708 | 0.175025 | 0.228169 | 0.75499 | 0.666916 | 0.664421 | 0.66018 | 0.634606 | 0.599676 | 0 | 0.037111 | 0.301043 | 14,380 | 544 | 209 | 26.433824 | 0.760422 | 0.223366 | 0 | 0.483696 | 1 | 0 | 0.048723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.326087 | false | 0 | 0.005435 | 0 | 0.657609 | 0.005435 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
15beb740c74dbae31445d5c0271c8943a849e3b1 | 913 | py | Python | task_1_su.py | cicadina1/python_edu | 7d5ce26050b16b8dca09ec54f3544abf02f46eac | [
"MIT"
] | null | null | null | task_1_su.py | cicadina1/python_edu | 7d5ce26050b16b8dca09ec54f3544abf02f46eac | [
"MIT"
] | null | null | null | task_1_su.py | cicadina1/python_edu | 7d5ce26050b16b8dca09ec54f3544abf02f46eac | [
"MIT"
] | null | null | null | seq = "AACTGAGAC"
def split(sequence):
return [char for char in seq]
word = 'sequence'
seqlist=(split(word))
print("Task 1: разделена секвенция\n",seqlist)
def revetring (sequence):
reversed_seq = seqlist[::-1]
#reversed_seq = ''.join(reversed_seq)
return reversed_seq
print("Task 2: обратна секвенция... | 30.433333 | 65 | 0.696605 | 116 | 913 | 5.37931 | 0.344828 | 0.057692 | 0.070513 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006527 | 0.161008 | 913 | 29 | 66 | 31.482759 | 0.808094 | 0.079956 | 0 | 0 | 0 | 0 | 0.186158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0.045455 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
15bf4e05af114e135643b6c92d1d2ce23c9e64a4 | 521 | py | Python | hassio/custom_components/funiki/FunikiEntitiesView.py | funiki-io/addons | 1b8253e40648f270a014b1277ff81fe5e9cb56a9 | [
"Apache-2.0"
] | null | null | null | hassio/custom_components/funiki/FunikiEntitiesView.py | funiki-io/addons | 1b8253e40648f270a014b1277ff81fe5e9cb56a9 | [
"Apache-2.0"
] | null | null | null | hassio/custom_components/funiki/FunikiEntitiesView.py | funiki-io/addons | 1b8253e40648f270a014b1277ff81fe5e9cb56a9 | [
"Apache-2.0"
] | null | null | null |
from .cutom_serializers import HassIoSerializers
from homeassistant.components.http import HomeAssistantView
import homeassistant.core as ha
class FunikiEntitiesView(HomeAssistantView):
url = "/api/funikientites"
name = "api:funiki-entites-list"
requires_auth = False
@ha.callback
def get(self, req... | 32.5625 | 101 | 0.756238 | 55 | 521 | 7.054545 | 0.709091 | 0.108247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15739 | 521 | 15 | 102 | 34.733333 | 0.883827 | 0 | 0 | 0 | 0 | 0 | 0.115607 | 0.044316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 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 |
15c0b4a7aa18f44f069e90d242770b8b30f3462c | 751 | py | Python | isee/pip_utils.py | i2mint/isee | cb38a734420af1ab4489b9938cea48f443e66b13 | [
"MIT"
] | null | null | null | isee/pip_utils.py | i2mint/isee | cb38a734420af1ab4489b9938cea48f443e66b13 | [
"MIT"
] | 15 | 2021-02-01T20:13:28.000Z | 2021-12-15T20:38:18.000Z | isee/pip_utils.py | i2mint/isee | cb38a734420af1ab4489b9938cea48f443e66b13 | [
"MIT"
] | null | null | null | import configparser
import pip
from isee.common import get_env_var, get_file_path
def install_requires(project_dir=None):
if not project_dir:
project_dir = get_env_var('GITHUB_WORKSPACE')
path = get_file_path('setup.cfg', project_dir)
config = configparser.ConfigParser()
config.read(path)
... | 32.652174 | 84 | 0.712383 | 96 | 751 | 5.34375 | 0.489583 | 0.077973 | 0.035088 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154461 | 751 | 22 | 85 | 34.136364 | 0.807874 | 0 | 0 | 0 | 0 | 0 | 0.143808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.294118 | 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 | 0 | 0 | 1 | 0 |
ec59e713b0d0d17ceb783b3e53bc5213783303f5 | 208 | py | Python | homeassistant/components/wemo/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/wemo/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/wemo/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for the Belkin Wemo component."""
DOMAIN = "wemo"
SERVICE_SET_HUMIDITY = "set_humidity"
SERVICE_RESET_FILTER_LIFE = "reset_filter_life"
WEMO_SUBSCRIPTION_EVENT = f"{DOMAIN}_subscription_event"
| 26 | 56 | 0.802885 | 27 | 208 | 5.740741 | 0.592593 | 0.141935 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 208 | 7 | 57 | 29.714286 | 0.824468 | 0.192308 | 0 | 0 | 0 | 0 | 0.37037 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec5b49ba0abac25c31f44e3e9a02624c74d597d4 | 244 | py | Python | episode_7/Jack.py | ChucklesJM/Three-Hundred-Lines | 9c0d59eeeffcb5565175fe24d95952fb1b34ffa1 | [
"MIT"
] | 1 | 2020-08-16T05:04:41.000Z | 2020-08-16T05:04:41.000Z | episode_7/Jack.py | jackmitcheltree/Three-Hundred-Lines | 9c0d59eeeffcb5565175fe24d95952fb1b34ffa1 | [
"MIT"
] | null | null | null | episode_7/Jack.py | jackmitcheltree/Three-Hundred-Lines | 9c0d59eeeffcb5565175fe24d95952fb1b34ffa1 | [
"MIT"
] | 1 | 2020-08-16T05:05:28.000Z | 2020-08-16T05:05:28.000Z | import time as t
s = t.time()
set = [a**b for a in range(2,101) for b in range(2,101)] ; set.sort()
for i in set:
if set.count(i)>1:
for j in range(set.count(i)-1): set.remove(i)
print(len(set))
e = t.time()
print(e-s)
| 20.333333 | 70 | 0.561475 | 53 | 244 | 2.584906 | 0.433962 | 0.153285 | 0.116788 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054645 | 0.25 | 244 | 11 | 71 | 22.181818 | 0.693989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 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 |
ec5c5a3367b8409735b414d000ae6d691a2e9b7a | 829 | py | Python | debug.py | FrancoisData/BigGAN-pytorch | 5fee762b83ff1de24876547d1cb1b2d9e99834e3 | [
"Apache-2.0"
] | 458 | 2018-11-15T00:20:38.000Z | 2020-04-11T11:05:17.000Z | debug.py | FrancoisData/BigGAN-pytorch | 5fee762b83ff1de24876547d1cb1b2d9e99834e3 | [
"Apache-2.0"
] | 18 | 2018-11-27T06:34:05.000Z | 2020-03-26T05:33:28.000Z | debug.py | FrancoisData/BigGAN-pytorch | 5fee762b83ff1de24876547d1cb1b2d9e99834e3 | [
"Apache-2.0"
] | 84 | 2018-11-17T07:36:50.000Z | 2020-04-20T02:57:51.000Z | from model_resnet import *
from demo import *
from utils import *
dim_z = 120
vocab_size = 1000
num_samples = 12 #@param {type:"slider", min:1, max:20, step:1}
truncation = 0.32 #@param {type:"slider", min:0.02, max:1, step:0.02}
noise_seed = 0 #@param {type:"slider", min:0, max:100, step:1}
category = "951"
z = t... | 21.815789 | 69 | 0.694813 | 138 | 829 | 4.007246 | 0.471014 | 0.057866 | 0.081374 | 0.097649 | 0.166365 | 0.097649 | 0 | 0 | 0 | 0 | 0 | 0.064649 | 0.12304 | 829 | 37 | 70 | 22.405405 | 0.696011 | 0.500603 | 0 | 0 | 0 | 0 | 0.0275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec5db73a5e8c1e84b7771da0358c010b16de6f7f | 3,350 | py | Python | venv/lib/python3.8/site-packages/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/vsts/member_entitlement_management/v4_1/models/extension_summary_data.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | 54.032258 | 272 | 0.645373 | 352 | 3,350 | 5.889205 | 0.295455 | 0.040521 | 0.074288 | 0.027979 | 0.042451 | 0.042451 | 0 | 0 | 0 | 0 | 0 | 0.00145 | 0.176418 | 3,350 | 61 | 273 | 54.918033 | 0.749909 | 0.443582 | 0 | 0 | 0 | 0 | 0.26384 | 0.060071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec5fb3f3115f92782ad4a5cdee350a82801348f1 | 3,816 | py | Python | src/CreeDictionary/CreeDictionary/urls.py | aarppe/cree-intelligent-dictionary | 79717a08f95827a024061a5a27000bbd3d684363 | [
"Apache-2.0"
] | null | null | null | src/CreeDictionary/CreeDictionary/urls.py | aarppe/cree-intelligent-dictionary | 79717a08f95827a024061a5a27000bbd3d684363 | [
"Apache-2.0"
] | null | null | null | src/CreeDictionary/CreeDictionary/urls.py | aarppe/cree-intelligent-dictionary | 79717a08f95827a024061a5a27000bbd3d684363 | [
"Apache-2.0"
] | null | null | null | """
Definition of urls for CreeDictionary.
"""
from django.conf import settings
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path
from django_js_reverse.views import urls_js
impor... | 37.048544 | 84 | 0.628407 | 425 | 3,816 | 5.517647 | 0.282353 | 0.089552 | 0.099787 | 0.024307 | 0.128785 | 0.063966 | 0.03838 | 0.03838 | 0.03838 | 0.03838 | 0 | 0.000638 | 0.178197 | 3,816 | 102 | 85 | 37.411765 | 0.74713 | 0.195755 | 0 | 0.22973 | 0 | 0 | 0.304475 | 0.24358 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0 | false | 0 | 0.135135 | 0 | 0.135135 | 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 | 0 | 0 | 1 | 0 |
ec60e845881e6051f208432552c3af2afd7ffeee | 679 | py | Python | lib/models/sii_token.py | Daia-Systems-SPA/sii-dte-py | a1030f4abf3d4004fdede88072cc8621214158bf | [
"MIT"
] | null | null | null | lib/models/sii_token.py | Daia-Systems-SPA/sii-dte-py | a1030f4abf3d4004fdede88072cc8621214158bf | [
"MIT"
] | null | null | null | lib/models/sii_token.py | Daia-Systems-SPA/sii-dte-py | a1030f4abf3d4004fdede88072cc8621214158bf | [
"MIT"
] | 1 | 2020-10-04T00:37:48.000Z | 2020-10-04T00:37:48.000Z | import datetime
class Token():
_token_string = ''
_expiry_date = None
def __init__(self, token_string):
self._token_string = token_string
""" Expire after 10 min """
self._expiry_date = datetime.datetime.now() + datetime.timedelta(0,60*10)
def __str__(self):
return _token_string
def get_token(self):
... | 23.413793 | 92 | 0.706922 | 88 | 679 | 5.068182 | 0.397727 | 0.172646 | 0.134529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.154639 | 679 | 28 | 93 | 24.25 | 0.764808 | 0.038292 | 0 | 0 | 0 | 0 | 0.040453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.157895 | 0.736842 | 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 | 1 | 1 | 0 | 0 | 3 |
ec61d6c1fe6b3a50c2ba90b0d04d3cc374029153 | 5,406 | py | Python | setup.py | reecechimento/python-project-template | fc4e34343cc6cbee9b887dda1961c2d5d1fa3c3a | [
"MIT"
] | null | null | null | setup.py | reecechimento/python-project-template | fc4e34343cc6cbee9b887dda1961c2d5d1fa3c3a | [
"MIT"
] | null | null | null | setup.py | reecechimento/python-project-template | fc4e34343cc6cbee9b887dda1961c2d5d1fa3c3a | [
"MIT"
] | null | null | null | """A setuptools based setup module.
See:
https://github.com/reecechimento/python-acelerate
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (h... | 53 | 155 | 0.544395 | 554 | 5,406 | 5.216607 | 0.458484 | 0.025952 | 0.015917 | 0.018685 | 0.026298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003555 | 0.375509 | 5,406 | 101 | 156 | 53.524752 | 0.852488 | 0.508694 | 0 | 0.069767 | 0 | 0 | 0.184699 | 0.051777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 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 | 0 | 0 | 1 | 0 |
ec622574ab25ad2863f97094f86d89e745408253 | 3,812 | py | Python | models/conv_to_fc_net.py | Silent-Zebra/sequential_social_dilemma_games | 8cf8faebf7de727bac55bd8020be7cd9cc243ccc | [
"MIT"
] | null | null | null | models/conv_to_fc_net.py | Silent-Zebra/sequential_social_dilemma_games | 8cf8faebf7de727bac55bd8020be7cd9cc243ccc | [
"MIT"
] | null | null | null | models/conv_to_fc_net.py | Silent-Zebra/sequential_social_dilemma_games | 8cf8faebf7de727bac55bd8020be7cd9cc243ccc | [
"MIT"
] | null | null | null | # Model taken from https://arxiv.org/pdf/1810.08647.pdf,
# INTRINSIC SOCIAL MOTIVATION VIA CAUSAL
# INFLUENCE IN MULTI-AGENT RL
# model is a single convolutional layer with a kernel of size 3, stride of size 1, and 6 output
# channels. This is connected to two fully connected layers of size 32 each
import tensorflow... | 28.447761 | 95 | 0.509444 | 404 | 3,812 | 4.653465 | 0.272277 | 0.062234 | 0.029787 | 0.034043 | 0.656915 | 0.61383 | 0.579787 | 0.579787 | 0.579787 | 0.579787 | 0 | 0.024902 | 0.399528 | 3,812 | 133 | 96 | 28.661654 | 0.796418 | 0.187041 | 0 | 0.868421 | 0 | 0 | 0.01759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec62eab66396e7e93ed3e02a393356b10591dc52 | 2,348 | py | Python | pmtg-synthetic-control/utils/loader.py | codyly/pmtg | 2b37200b3d6e38c8d70f25ec6fef19ed18b81496 | [
"MIT"
] | 1 | 2022-02-15T13:40:09.000Z | 2022-02-15T13:40:09.000Z | pmtg-synthetic-control/utils/loader.py | codyly/pmtg | 2b37200b3d6e38c8d70f25ec6fef19ed18b81496 | [
"MIT"
] | null | null | null | pmtg-synthetic-control/utils/loader.py | codyly/pmtg | 2b37200b3d6e38c8d70f25ec6fef19ed18b81496 | [
"MIT"
] | null | null | null | import numpy as np
from utils.visualize import view_trajectory
DEFAULT_SCALE = 1.0
def load_trajectory(file_name: str, num_steps: int, save_results: bool = True) -> np.ndarray:
"""Load paited trajectory and pre-processing
Args:
file_name (string): [description]
num_steps (int): [description... | 33.542857 | 101 | 0.633731 | 326 | 2,348 | 4.41411 | 0.291411 | 0.061154 | 0.031272 | 0.027797 | 0.262682 | 0.262682 | 0.120917 | 0.120917 | 0.045865 | 0 | 0 | 0.031956 | 0.227002 | 2,348 | 69 | 102 | 34.028986 | 0.760882 | 0.192078 | 0 | 0.054054 | 0 | 0 | 0.019355 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.108108 | 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 | 0 | 0 | 1 | 0 |
ec63fe14fa9e569e0e9db8ad89909f7212dee7c0 | 193 | py | Python | backend/app/api/api_v1/endpoints/job_classes.py | yangyuchi/ml-job-scheduler | bdafbf7fd266751a974d716e8d3ba64d3187fdcd | [
"MIT"
] | null | null | null | backend/app/api/api_v1/endpoints/job_classes.py | yangyuchi/ml-job-scheduler | bdafbf7fd266751a974d716e8d3ba64d3187fdcd | [
"MIT"
] | null | null | null | backend/app/api/api_v1/endpoints/job_classes.py | yangyuchi/ml-job-scheduler | bdafbf7fd266751a974d716e8d3ba64d3187fdcd | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from ....core.jobs import JobBase
router = APIRouter()
@router.get("")
async def get_job_classes():
return [j.meta_info() for j in JobBase.__subclasses__()]
| 21.444444 | 60 | 0.73057 | 27 | 193 | 4.962963 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139896 | 193 | 8 | 61 | 24.125 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ec644d6a76b9ebec8b12e7c2b679fb791dbf5fcc | 1,110 | py | Python | problems/115.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | problems/115.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | problems/115.py | mengshun/Leetcode | 8bb676f2fff093e1417a4bed13d9ad708149be78 | [
"MIT"
] | null | null | null | """
115. 不同的子序列
https://leetcode-cn.com/problems/distinct-subsequences/
"""
def numDistinct(s: str, t: str):
m, n = len(s), len(t)
if n > m:
return 0
dp = [[0] * (n+1) for _ in range(m+1)]
for i in range(m+1):
dp[i][n] = 1
for i in range(m-1, -1, -1):
for j in range(n-1, -1... | 21.346154 | 65 | 0.454955 | 191 | 1,110 | 2.633508 | 0.198953 | 0.063618 | 0.079523 | 0.089463 | 0.417495 | 0.345924 | 0.345924 | 0.246521 | 0.246521 | 0.246521 | 0 | 0.053548 | 0.327027 | 1,110 | 52 | 66 | 21.346154 | 0.619813 | 0.066667 | 0 | 0.387097 | 0 | 0 | 0.068588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0 | 0 | 0.193548 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec650fc6ff3b5afb81c5df1579003ac556987f4e | 360 | py | Python | hub/backends.py | ekaputra07/lokerhub | c6974cc67c3be440ea5dd26fa32f95a5e67d77e8 | [
"MIT"
] | null | null | null | hub/backends.py | ekaputra07/lokerhub | c6974cc67c3be440ea5dd26fa32f95a5e67d77e8 | [
"MIT"
] | null | null | null | hub/backends.py | ekaputra07/lokerhub | c6974cc67c3be440ea5dd26fa32f95a5e67d77e8 | [
"MIT"
] | null | null | null | from django.contrib.auth.backends import ModelBackend
from hub.models import OneallToken
class OneallBackend(ModelBackend):
def authenticate(self, oneall_token=None):
try:
token = OneallToken.objects.get(token=oneall_token)
except OneallToken.DoesNotExist:
return None
... | 25.714286 | 63 | 0.683333 | 38 | 360 | 6.421053 | 0.684211 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252778 | 360 | 13 | 64 | 27.692308 | 0.907063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec6513c05b81af621f85dc42a34ad6180c6b7cdd | 3,902 | py | Python | scripts/update_dreqs/update_dreqs_0183.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | null | null | null | scripts/update_dreqs/update_dreqs_0183.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 49 | 2018-11-14T17:00:03.000Z | 2021-12-20T11:04:22.000Z | scripts/update_dreqs/update_dreqs_0183.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 2 | 2018-07-04T10:58:43.000Z | 2018-09-29T14:55:08.000Z | #!/usr/bin/env python
"""
update_dreqs_0183.py
ESGF AttributeUpdate
Called from a Rose suite to update the checksums in MPI AMIP files that have
already been updated with the first version that didn't preserve checksums.
"""
from __future__ import (unicode_literals, division, absolute_import,
p... | 28.481752 | 80 | 0.604049 | 457 | 3,902 | 4.919037 | 0.404814 | 0.049822 | 0.022687 | 0.012456 | 0.088078 | 0.032918 | 0.032918 | 0 | 0 | 0 | 0 | 0.008636 | 0.287801 | 3,902 | 136 | 81 | 28.691176 | 0.800288 | 0.11225 | 0 | 0.073684 | 0 | 0 | 0.160573 | 0.013162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0 | 0.084211 | 0 | 0.115789 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec651b25d70a03441a32b1472067abddb009977d | 2,709 | py | Python | GearBot/Util/Permissioncheckers.py | TheMelvin/Gearbot | 2fd0d6a1fb6750a1cb6c49828c4b9d35acaa544a | [
"MIT"
] | null | null | null | GearBot/Util/Permissioncheckers.py | TheMelvin/Gearbot | 2fd0d6a1fb6750a1cb6c49828c4b9d35acaa544a | [
"MIT"
] | null | null | null | GearBot/Util/Permissioncheckers.py | TheMelvin/Gearbot | 2fd0d6a1fb6750a1cb6c49828c4b9d35acaa544a | [
"MIT"
] | null | null | null | from discord.ext import commands
from Util import Configuration
def is_owner():
async def predicate(ctx):
return ctx.bot.is_owner(ctx.author)
return commands.check(predicate)
def is_trusted(ctx):
return is_user("TRUSTED", ctx) or is_mod(ctx)
def is_mod(ctx:commands.Context):
return is_user... | 26.821782 | 137 | 0.689553 | 384 | 2,709 | 4.708333 | 0.182292 | 0.054757 | 0.047013 | 0.05531 | 0.502765 | 0.400996 | 0.240044 | 0.134956 | 0.102876 | 0.068584 | 0 | 0.017757 | 0.210041 | 2,709 | 100 | 138 | 27.09 | 0.827103 | 0 | 0 | 0.320513 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.025641 | 0.102564 | 0.602564 | 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 | 1 | 1 | 0 | 0 | 3 |
ec66e4ff2212655f50190f485778b9d0bb5f89f4 | 2,149 | py | Python | main.py | 0x437968/overexposure-correction-dise | 08bedbc1b418a23b1ab6e849c3c7d4fdef04e472 | [
"MIT"
] | 4 | 2020-09-30T03:00:57.000Z | 2021-06-28T04:51:47.000Z | main.py | 0x437968/overexposure-correction-dise | 08bedbc1b418a23b1ab6e849c3c7d4fdef04e472 | [
"MIT"
] | 1 | 2021-11-05T00:50:56.000Z | 2022-03-03T13:17:17.000Z | main.py | 0x437968/overexposure-correction-dise | 08bedbc1b418a23b1ab6e849c3c7d4fdef04e472 | [
"MIT"
] | 1 | 2022-03-03T13:15:07.000Z | 2022-03-03T13:15:07.000Z | from data_cfg import project_dataset
from tensorboardX import SummaryWriter
from utils import init_folder
from options import ProjectOptions
from model import create_model
import time
import os
import torch
if __name__ == '__main__':
opt=ProjectOptions().get_opt()
ProjectOptions.print_options(opt)... | 35.229508 | 97 | 0.579339 | 273 | 2,149 | 4.377289 | 0.307692 | 0.033473 | 0.016736 | 0.025105 | 0.203347 | 0.174059 | 0.132218 | 0.132218 | 0.082008 | 0 | 0 | 0.012574 | 0.296882 | 2,149 | 60 | 98 | 35.816667 | 0.778293 | 0 | 0 | 0.142857 | 0 | 0 | 0.077144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.232143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec680a486a8b041372298819a8d2017978d1f0dd | 752 | py | Python | mult.py | jonathanbell/using-python-with-excel | 2a3355d060216e9911159bed9b3c4f9f11b944ae | [
"WTFPL"
] | null | null | null | mult.py | jonathanbell/using-python-with-excel | 2a3355d060216e9911159bed9b3c4f9f11b944ae | [
"WTFPL"
] | null | null | null | mult.py | jonathanbell/using-python-with-excel | 2a3355d060216e9911159bed9b3c4f9f11b944ae | [
"WTFPL"
] | null | null | null | import pandas
from openpyxl import load_workbook
from openpyxl.styles import Font
df1 = pandas.read_excel('data/shifts.xlsx', sheet_name='Sheet')
df2 = pandas.read_excel('data/shifts.xlsx', sheet_name='Sheet1')
df3 = pandas.read_excel('data/shift_3.xlsx')
df_all = pandas.concat([df1, df2, df3], sort=False)
to_excel ... | 26.857143 | 64 | 0.718085 | 128 | 752 | 4.023438 | 0.429688 | 0.058252 | 0.087379 | 0.11068 | 0.147573 | 0.147573 | 0.147573 | 0.147573 | 0 | 0 | 0 | 0.019637 | 0.119681 | 752 | 27 | 65 | 27.851852 | 0.758308 | 0 | 0 | 0 | 0 | 0 | 0.178191 | 0.055851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 | 0 | 0 | 1 | 0 |
ec684c29cec63e05fe5c271d79cdf0cf8195b34d | 530 | py | Python | ibis/clickhouse/tests/test_types.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | null | null | null | ibis/clickhouse/tests/test_types.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | null | null | null | ibis/clickhouse/tests/test_types.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | null | null | null | import pytest
import pandas as pd
pytest.importorskip('clickhouse_driver')
pytestmark = pytest.mark.clickhouse
def test_column_types(alltypes):
df = alltypes.execute()
assert df.tinyint_col.dtype.name == 'int8'
assert df.smallint_col.dtype.name == 'int16'
assert df.int_col.dtype.name == 'int32'
... | 29.444444 | 69 | 0.733962 | 75 | 530 | 5.026667 | 0.506667 | 0.148541 | 0.190981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028698 | 0.145283 | 530 | 17 | 70 | 31.176471 | 0.803532 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec69ff59cf02e6fc2fd5b3c7379eb1801389f065 | 6,141 | py | Python | functions.py | traian-d/fractals | a8666c9b6eb446beef0fe71d6d1e6ccfa9f2108e | [
"MIT"
] | null | null | null | functions.py | traian-d/fractals | a8666c9b6eb446beef0fe71d6d1e6ccfa9f2108e | [
"MIT"
] | null | null | null | functions.py | traian-d/fractals | a8666c9b6eb446beef0fe71d6d1e6ccfa9f2108e | [
"MIT"
] | null | null | null | import fractal
class Mandelbrot(fractal.Fractal):
__slots__ = ('__w', '__h', '__max_iter', '__grid')
def __init__(self, re_start, re_end, im_start, im_end, max_iter=100, w=600, h=400):
self.__max_iter = max_iter
self.__w = w
self.__h = h
self.__grid = self.make_grid(re_start, ... | 34.5 | 123 | 0.579873 | 876 | 6,141 | 3.718037 | 0.216895 | 0.02794 | 0.019343 | 0.018422 | 0.244704 | 0.178385 | 0.166104 | 0.134173 | 0.126804 | 0.126804 | 0 | 0.039348 | 0.300603 | 6,141 | 177 | 124 | 34.694915 | 0.718976 | 0.141996 | 0 | 0.277778 | 0 | 0 | 0.065439 | 0.004606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134921 | false | 0 | 0.047619 | 0.055556 | 0.333333 | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec6a0fc301cf85afc5c914d15d835f6315fb62d6 | 2,204 | py | Python | 101-150/142_linked_list_cycle_ii.py | ChenhaoJiang/LeetCode-Solution | b2119ad938c18f75948d0f5cf4ae3773820dcc93 | [
"MIT"
] | 16 | 2019-03-30T07:25:27.000Z | 2020-07-28T15:34:53.000Z | 101-150/142_linked_list_cycle_ii.py | ChenhaoJiang/LeetCode-Solution | b2119ad938c18f75948d0f5cf4ae3773820dcc93 | [
"MIT"
] | null | null | null | 101-150/142_linked_list_cycle_ii.py | ChenhaoJiang/LeetCode-Solution | b2119ad938c18f75948d0f5cf4ae3773820dcc93 | [
"MIT"
] | 2 | 2020-06-26T13:02:14.000Z | 2020-07-28T04:59:15.000Z | """
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where tail connects to.
If pos is -1, then there is no cycle in the linked list.
Note: Do... | 35.548387 | 154 | 0.651543 | 296 | 2,204 | 4.841216 | 0.402027 | 0.062805 | 0.054431 | 0.052338 | 0.365666 | 0.276343 | 0.235869 | 0.235869 | 0.171668 | 0.171668 | 0 | 0.012262 | 0.259982 | 2,204 | 61 | 155 | 36.131148 | 0.865727 | 0.57441 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec6c02a550bff95ca8a0b04da83c54cb712ce0cf | 1,161 | py | Python | tests/test_settings.py | martimarkov/django-ajax-datatable | d132504a199cb2afe2cfd74a2e6d5d5f2969c4a4 | [
"MIT"
] | 1 | 2021-11-19T13:36:30.000Z | 2021-11-19T13:36:30.000Z | tests/test_settings.py | martimarkov/django-ajax-datatable | d132504a199cb2afe2cfd74a2e6d5d5f2969c4a4 | [
"MIT"
] | null | null | null | tests/test_settings.py | martimarkov/django-ajax-datatable | d132504a199cb2afe2cfd74a2e6d5d5f2969c4a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from __future__ import unicode_literals, absolute_import
DEBUG = True
USE_TZ = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "77777777777777777777777777777777777777777777777777"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql'... | 25.23913 | 89 | 0.643411 | 127 | 1,161 | 5.755906 | 0.629921 | 0.038304 | 0.060192 | 0.098495 | 0.123119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070078 | 0.225668 | 1,161 | 45 | 90 | 25.8 | 0.743048 | 0.332472 | 0 | 0 | 0 | 0 | 0.413072 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032258 | 0.032258 | 0 | 0.032258 | 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 | 0 | 0 | 1 | 0 |
ec6cd0510d28ae1936e2680c37f9c33430331487 | 117 | py | Python | abc/abc201/abc201a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc201/abc201a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc201/abc201a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | A = list(map(int, input().split()))
A.sort()
if A[2] - A[1] == A[1] - A[0]:
print('Yes')
else:
print('No')
| 13 | 35 | 0.470085 | 22 | 117 | 2.5 | 0.681818 | 0.072727 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.222222 | 117 | 8 | 36 | 14.625 | 0.56044 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec6de7bbb85c5d6dd0a3ddc51579d47f873de627 | 2,213 | py | Python | generate_areacode_lookup_data.py | EricSchles/investigator | 88b4215667b24483efbd9aba690e7c3a231539f6 | [
"MIT"
] | 17 | 2016-06-17T23:42:42.000Z | 2020-06-29T19:17:09.000Z | generate_areacode_lookup_data.py | EricSchles/investigator | 88b4215667b24483efbd9aba690e7c3a231539f6 | [
"MIT"
] | 6 | 2016-06-16T18:46:45.000Z | 2017-07-02T16:41:45.000Z | generate_areacode_lookup_data.py | EricSchles/investigator | 88b4215667b24483efbd9aba690e7c3a231539f6 | [
"MIT"
] | 11 | 2016-06-21T21:17:46.000Z | 2020-06-30T05:25:36.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from app.models import AreaCodeLookup
from pyzipcode import ZipCodeDatabase
from app import db
import us
from geopy.geocoders import Nominatim
from easydict import EasyDict as edict
print("starting webdriver")
driver = webdriver.Firefox()
print... | 32.072464 | 92 | 0.553999 | 257 | 2,213 | 4.673152 | 0.396887 | 0.053289 | 0.036636 | 0.037469 | 0.167361 | 0.120733 | 0.120733 | 0.05995 | 0.05995 | 0 | 0 | 0.031373 | 0.308631 | 2,213 | 68 | 93 | 32.544118 | 0.753595 | 0 | 0 | 0.109375 | 0 | 0 | 0.096249 | 0.010393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.140625 | 0 | 0.140625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec6dfd9168cb83b20497e11b47d3f3850c1eba7d | 1,493 | py | Python | backend/chuckwagon/models.py | kwkelly/chuckwagon | f6d3ee564b9d895195df223025ac05ef56f78e52 | [
"MIT"
] | null | null | null | backend/chuckwagon/models.py | kwkelly/chuckwagon | f6d3ee564b9d895195df223025ac05ef56f78e52 | [
"MIT"
] | null | null | null | backend/chuckwagon/models.py | kwkelly/chuckwagon | f6d3ee564b9d895195df223025ac05ef56f78e52 | [
"MIT"
] | null | null | null | from django.contrib.gis.db import models
from django.utils.timezone import now # timezone depends on value of USE_TZ env variable
from django.utils import timezone
class Brand(models.Model):
name = models.CharField(max_length=128, blank=False)
twitter_handle = models.CharField(max_length=100, blank=True)
... | 30.469388 | 88 | 0.705961 | 191 | 1,493 | 5.350785 | 0.34555 | 0.073386 | 0.088063 | 0.117417 | 0.375734 | 0.375734 | 0.334638 | 0.205479 | 0.101761 | 0.101761 | 0 | 0.012225 | 0.178165 | 1,493 | 48 | 89 | 31.104167 | 0.820701 | 0.03215 | 0 | 0.363636 | 0 | 0 | 0.074844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0.121212 | 0.878788 | 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 | 1 | 0 | 0 | 2 |
ec71f4c0538be0f19f562102f9375c395809b744 | 3,471 | py | Python | pybargain_protocol/bargaining_cancellation.py | LaurentMT/pybargain_protocol | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | [
"MIT"
] | 1 | 2015-06-30T15:34:41.000Z | 2015-06-30T15:34:41.000Z | pybargain_protocol/bargaining_cancellation.py | LaurentMT/pybargain_protocol | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | [
"MIT"
] | null | null | null | pybargain_protocol/bargaining_cancellation.py | LaurentMT/pybargain_protocol | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Version: 0.0.1
Python library for the bargaining protocol
'''
from pybargain_protocol import bargaining_pb2
from pybargain_protocol.constants import MAINNET
from pybargain_protocol.exceptions import SerializationError, DeserializationError
from pybargain_protocol.protocol_rules import check_ti... | 32.745283 | 164 | 0.60098 | 347 | 3,471 | 5.907781 | 0.308357 | 0.039512 | 0.040976 | 0.040976 | 0.27122 | 0.27122 | 0.219512 | 0.181463 | 0.181463 | 0.181463 | 0 | 0.003918 | 0.338231 | 3,471 | 106 | 165 | 32.745283 | 0.88855 | 0.221262 | 0 | 0.153846 | 0 | 0 | 0.115497 | 0.028265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.102564 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec7214eeeb62991a6453d69509efc08658687c8c | 37,375 | py | Python | geodesic.py | aconz2/blender-addon-geodesic | 8b5d48fcaaa42524cba43d2b0d9c328974e9ccd7 | [
"Unlicense"
] | null | null | null | geodesic.py | aconz2/blender-addon-geodesic | 8b5d48fcaaa42524cba43d2b0d9c328974e9ccd7 | [
"Unlicense"
] | null | null | null | geodesic.py | aconz2/blender-addon-geodesic | 8b5d48fcaaa42524cba43d2b0d9c328974e9ccd7 | [
"Unlicense"
] | null | null | null |
bl_info = {
'name': 'Geodesic',
'description': 'Geodesic like things; weighted shortest path and walking along a mesh',
'blender': (2, 92, 0),
'category': 'Object',
}
import itertools
import random
from functools import partial
from itertools import starmap
import math
import logging
import networkx ... | 34.415285 | 169 | 0.632241 | 5,136 | 37,375 | 4.454634 | 0.12169 | 0.017308 | 0.012238 | 0.012238 | 0.443201 | 0.374536 | 0.319026 | 0.290441 | 0.251453 | 0.226321 | 0 | 0.012166 | 0.254448 | 37,375 | 1,085 | 170 | 34.447005 | 0.8089 | 0.112615 | 0 | 0.401022 | 0 | 0.003831 | 0.097735 | 0.012387 | 0 | 0 | 0 | 0.001843 | 0.014049 | 1 | 0.079183 | false | 0.003831 | 0.015326 | 0.016603 | 0.240102 | 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 | 0 | 0 | 1 | 0 |
ec722b1aeed5106b395d1dfc9f31482926f0f34e | 352 | py | Python | ex3.py | Oliviaha/python-the-hardway | 680ed0594878507b368ece0e58f87a6126746dcf | [
"MIT"
] | null | null | null | ex3.py | Oliviaha/python-the-hardway | 680ed0594878507b368ece0e58f87a6126746dcf | [
"MIT"
] | 1 | 2019-11-10T17:37:00.000Z | 2019-11-10T17:37:26.000Z | ex3.py | Oliviaha/python-the-hardway | 680ed0594878507b368ece0e58f87a6126746dcf | [
"MIT"
] | null | null | null | # -*-coding: utf-8 -*-
print "닭을 세어 봅시다."
print "암탉", 25+30 / 6
print "수탉", 100-25 * 3 % 4
print "이제 달걀도 세어 봅시다."
print 3+2+1-5+4%2-1 / 4+6
print "3+2 < 5-7 는 참인가요?"
print 3+2 <5-7
print "3+2 는 얼마죠?", 3+2
print "5-7은 얼마죠?", 5-7
print "아하 이게 False인 이유네요"
print "더 해볼까요."
print "더 큰가요??", 5 > -2
print "더 크거나 같나요?", 5... | 17.6 | 26 | 0.551136 | 83 | 352 | 2.337349 | 0.421687 | 0.051546 | 0.14433 | 0.082474 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0.21875 | 352 | 20 | 27 | 17.6 | 0.545455 | 0.056818 | 0 | 0 | 0 | 0 | 0.347432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ec725505572b3e19d982ccd45eb293ff94defa41 | 1,603 | py | Python | code/src/system/controller/python/messaging/messages/hello.py | mcelhennyi/NXP-HoverGames-2 | 7826d153b870ff46952e7b2d3b6822960fed9c23 | [
"BSD-3-Clause"
] | 1 | 2020-08-30T16:25:53.000Z | 2020-08-30T16:25:53.000Z | code/src/system/controller/python/messaging/messages/hello.py | mcelhennyi/NXP-HoverGames-2 | 7826d153b870ff46952e7b2d3b6822960fed9c23 | [
"BSD-3-Clause"
] | 1 | 2021-02-02T00:36:07.000Z | 2021-02-02T00:36:07.000Z | code/src/system/controller/python/messaging/messages/hello.py | mcelhennyi/NXP-HoverGames-2 | 7826d153b870ff46952e7b2d3b6822960fed9c23 | [
"BSD-3-Clause"
] | null | null | null | import struct
from src.system.controller.python.messaging.messages import Message, hello, header, NODE_TYPE_CONTROLLER, MESSAGE_HELLO, ip_address
class HelloMessage(Message):
def __init__(self,
raw_bytes=None,
# OR
source_id=None, target_id=None, listening_port=... | 38.166667 | 174 | 0.539613 | 179 | 1,603 | 4.441341 | 0.284916 | 0.158491 | 0.158491 | 0.171069 | 0.181132 | 0.181132 | 0.181132 | 0.181132 | 0.181132 | 0.181132 | 0 | 0.013875 | 0.370555 | 1,603 | 41 | 175 | 39.097561 | 0.774034 | 0.227074 | 0 | 0 | 0 | 0 | 0.000815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.045455 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec74193abc892521102cb21f200e6fc43face9bf | 937 | py | Python | birch/paths.py | shaypal5/birch | f3d1b7b9701f8a13fb62c9d606aa0a99697ae5b4 | [
"MIT"
] | 14 | 2018-02-11T13:56:02.000Z | 2022-02-17T14:29:45.000Z | birch/paths.py | shaypal5/birch | f3d1b7b9701f8a13fb62c9d606aa0a99697ae5b4 | [
"MIT"
] | 2 | 2018-04-19T14:35:48.000Z | 2020-07-22T14:58:11.000Z | birch/paths.py | shaypal5/birch | f3d1b7b9701f8a13fb62c9d606aa0a99697ae5b4 | [
"MIT"
] | 11 | 2018-04-10T19:41:22.000Z | 2022-02-17T13:18:32.000Z | """Path-related functions for birch."""
import os
def _legacy_cfg_dpath(namespace):
return os.path.join(
os.path.expanduser('~'),
'.{}'.format(namespace),
)
XDG_CONFIG_HOME_VARNAME = 'XDG_CONFIG_HOME'
def _xdg_cfg_dpath(namespace):
if XDG_CONFIG_HOME_VARNAME in os.environ: # pragma: ... | 21.790698 | 65 | 0.607257 | 113 | 937 | 4.761062 | 0.238938 | 0.089219 | 0.111524 | 0.148699 | 0.526022 | 0.475836 | 0.475836 | 0.475836 | 0.475836 | 0.475836 | 0 | 0 | 0.277481 | 937 | 42 | 66 | 22.309524 | 0.794682 | 0.108858 | 0 | 0.4 | 0 | 0 | 0.058111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.033333 | 0.033333 | 0.3 | 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 | 0 | 0 | 1 | 0 |
ec74a4fd26f6d6f3e84eb0b32f9f306a3310afb5 | 228 | py | Python | src/test/unit_tests/test_right_shift.py | ambertide/SASVM | ee699ec9b585ad0fccb0b70e11dde1b225ac56c1 | [
"MIT"
] | null | null | null | src/test/unit_tests/test_right_shift.py | ambertide/SASVM | ee699ec9b585ad0fccb0b70e11dde1b225ac56c1 | [
"MIT"
] | 7 | 2019-12-27T20:59:12.000Z | 2020-01-08T22:53:42.000Z | src/test/unit_tests/test_right_shift.py | ambertide/SASVM | ee699ec9b585ad0fccb0b70e11dde1b225ac56c1 | [
"MIT"
] | null | null | null | from unittest import TestCase
from spacecat.common_utils import right_shift
class TestRight_shift(TestCase):
def test_right_shift(self):
to_shift = "1111"
self.assertEqual("0011", right_shift(to_shift, 2))
| 25.333333 | 58 | 0.741228 | 31 | 228 | 5.193548 | 0.612903 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047872 | 0.175439 | 228 | 8 | 59 | 28.5 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ec75d8f9432b77a66901b060a53c5ffc3d0850ee | 1,085 | py | Python | 2015/day18.py | kyz/adventofcode | b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d | [
"MIT"
] | null | null | null | 2015/day18.py | kyz/adventofcode | b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d | [
"MIT"
] | null | null | null | 2015/day18.py | kyz/adventofcode | b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d | [
"MIT"
] | null | null | null | def read_state(lines):
out = dict()
for y, row in enumerate(lines):
for x, char in enumerate(row):
out[x,y] = 1 if char == '#' else 0
return out, len(lines[0]), len(lines)
def simulate(state, w, h, corners):
neighbours = {(x,y): [(i,j) for i in range(x-1,x+2) for j in range(y-1,y+2... | 38.75 | 79 | 0.527189 | 202 | 1,085 | 2.821782 | 0.277228 | 0.084211 | 0.049123 | 0.078947 | 0.291228 | 0.147368 | 0.147368 | 0.147368 | 0.147368 | 0.147368 | 0 | 0.065274 | 0.294009 | 1,085 | 27 | 80 | 40.185185 | 0.678851 | 0 | 0 | 0.16 | 0 | 0 | 0.04977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.16 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec76a5ad52a10a7333ca973d639bf92204a67540 | 1,149 | py | Python | schedule/ScheduleData.py | unkSonert/Vk-Bot-Uni-Dubna | e229a0200d2033693442fa22d02dcedd171e5510 | [
"MIT"
] | null | null | null | schedule/ScheduleData.py | unkSonert/Vk-Bot-Uni-Dubna | e229a0200d2033693442fa22d02dcedd171e5510 | [
"MIT"
] | null | null | null | schedule/ScheduleData.py | unkSonert/Vk-Bot-Uni-Dubna | e229a0200d2033693442fa22d02dcedd171e5510 | [
"MIT"
] | 2 | 2019-03-20T19:04:20.000Z | 2019-03-20T21:32:19.000Z | import pickle
from os.path import isfile
from schedule.Week import Week
from schedule.default import list_of_week_days_names, list_of_lesson_names
class ScheduleData(object):
homework = None
week = None
@staticmethod
def get_day_number(name):
return next(i for i, x in enumerate(list_of_week_... | 28.02439 | 90 | 0.671889 | 149 | 1,149 | 5.006711 | 0.362416 | 0.085791 | 0.112601 | 0.128686 | 0.290885 | 0.254692 | 0.254692 | 0.254692 | 0.115282 | 0.115282 | 0 | 0.002275 | 0.234987 | 1,149 | 40 | 91 | 28.725 | 0.846416 | 0 | 0 | 0.166667 | 0 | 0 | 0.040035 | 0.038294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec77c8bf9c27a03f5c191007f8bb35cba9a7948b | 1,373 | py | Python | examples/quick_start/nested.py | timdavis3991/do-py | 921d3b3bdeb108f3e6379dcacab6ed6ffaaa0776 | [
"MIT"
] | 7 | 2020-07-07T02:53:44.000Z | 2022-03-28T00:56:36.000Z | examples/quick_start/nested.py | timdavis3991/do-py | 921d3b3bdeb108f3e6379dcacab6ed6ffaaa0776 | [
"MIT"
] | 31 | 2020-03-24T17:55:05.000Z | 2022-03-31T04:27:14.000Z | examples/quick_start/nested.py | timdavis3991/do-py | 921d3b3bdeb108f3e6379dcacab6ed6ffaaa0776 | [
"MIT"
] | null | null | null | """
Nest a DataObject in another DataObject.
"""
from do_py import DataObject, R
class Contact(DataObject):
_restrictions = {
'phone_number': R.STR
}
class Author(DataObject):
"""
This DataObject is nested under `VideoGame` and nests `Contact`.
:restriction id:
:restriction name:... | 24.963636 | 137 | 0.593591 | 151 | 1,373 | 5.344371 | 0.397351 | 0.040892 | 0.05948 | 0.064436 | 0.391574 | 0.218092 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.271668 | 1,373 | 54 | 138 | 25.425926 | 0.777 | 0.477058 | 0 | 0.172414 | 0 | 0 | 0.155725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec7a60e0223bfa6c234ce32e60a39aef58669955 | 6,297 | py | Python | tests/k8s_worker_mock_api_responses.py | hpe-container-platform-community/hpecp-client | 947589ae30647fa40822b25b44027904355b6294 | [
"MIT"
] | 19 | 2020-05-03T23:50:38.000Z | 2021-10-04T15:08:39.000Z | tests/k8s_worker_mock_api_responses.py | prakashmirji/hpecp-python-library | 72eba918f2619f37783d25cd5a35dc73cff4dca9 | [
"MIT"
] | 100 | 2020-04-28T21:09:52.000Z | 2022-03-14T17:15:27.000Z | tests/k8s_worker_mock_api_responses.py | prakashmirji/hpecp-python-library | 72eba918f2619f37783d25cd5a35dc73cff4dca9 | [
"MIT"
] | 9 | 2020-05-22T16:47:08.000Z | 2022-03-05T12:55:03.000Z | # (C) Copyright [2020] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy,... | 39.111801 | 76 | 0.419724 | 533 | 6,297 | 4.851782 | 0.369606 | 0.019335 | 0.042537 | 0.069606 | 0.485305 | 0.472931 | 0.452823 | 0.440835 | 0.440835 | 0.440835 | 0 | 0.074184 | 0.464825 | 6,297 | 160 | 77 | 39.35625 | 0.693175 | 0.172145 | 0 | 0.534351 | 0 | 0.030534 | 0.255729 | 0.092625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007634 | true | 0 | 0.007634 | 0 | 0.015267 | 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 |
ec7e1bffe71b9322d7ff66eba5d5fa007dda8dd4 | 498 | py | Python | molecule/centos-6/tests/test_default.py | MatrixCrawler/ansible-consul | 408c4c5fb59213ec49fbb10e680ba3540305c504 | [
"BSD-2-Clause"
] | null | null | null | molecule/centos-6/tests/test_default.py | MatrixCrawler/ansible-consul | 408c4c5fb59213ec49fbb10e680ba3540305c504 | [
"BSD-2-Clause"
] | null | null | null | molecule/centos-6/tests/test_default.py | MatrixCrawler/ansible-consul | 408c4c5fb59213ec49fbb10e680ba3540305c504 | [
"BSD-2-Clause"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_init_script_reload(host):
cmd = host.run("/etc/init.d/consul reload")
assert cmd.succeeded
def test_init_script_stop(host):
... | 22.636364 | 63 | 0.742972 | 73 | 498 | 4.863014 | 0.39726 | 0.059155 | 0.092958 | 0.143662 | 0.433803 | 0.433803 | 0.433803 | 0.23662 | 0 | 0 | 0 | 0 | 0.136546 | 498 | 21 | 64 | 23.714286 | 0.825581 | 0 | 0 | 0.230769 | 0 | 0 | 0.196787 | 0.046185 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec7e716c12e1ea7abf3037994eb6b405105174c5 | 3,168 | py | Python | templates/scrape_mars.py | eilishlboyd/web-scraping-challenge | 9159d1fb3a8b1f2c9cbf6b82827e0eb5c6394992 | [
"ADSL"
] | null | null | null | templates/scrape_mars.py | eilishlboyd/web-scraping-challenge | 9159d1fb3a8b1f2c9cbf6b82827e0eb5c6394992 | [
"ADSL"
] | null | null | null | templates/scrape_mars.py | eilishlboyd/web-scraping-challenge | 9159d1fb3a8b1f2c9cbf6b82827e0eb5c6394992 | [
"ADSL"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[97]:
#Imports & Dependencies
get_ipython().system('pip install selenium')
get_ipython().system('pip install splinter')
from splinter import Browser
from bs4 import BeautifulSoup
executable_path = {"executable_path": "/usr/local/bin/chromedriver"}
browser = Browser("chrome",... | 20.307692 | 93 | 0.708018 | 460 | 3,168 | 4.717391 | 0.369565 | 0.02212 | 0.02765 | 0.035023 | 0.17788 | 0.111521 | 0.084793 | 0.084793 | 0 | 0 | 0 | 0.018519 | 0.147727 | 3,168 | 155 | 94 | 20.43871 | 0.785185 | 0.145833 | 0 | 0.112676 | 0 | 0.014085 | 0.203807 | 0.010078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.126761 | 0 | 0.126761 | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec833209ab8559535355c5b3e5bd05cbca63d6cd | 3,281 | py | Python | grama.py | xyzdev/grama | f9ef5ccea28a5ca10aedfde21fbce613ce78092e | [
"MIT"
] | 3 | 2017-08-23T02:01:58.000Z | 2019-06-05T11:55:24.000Z | grama.py | xyzdev/grama | f9ef5ccea28a5ca10aedfde21fbce613ce78092e | [
"MIT"
] | null | null | null | grama.py | xyzdev/grama | f9ef5ccea28a5ca10aedfde21fbce613ce78092e | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2017 xyzdev
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pub... | 40.506173 | 120 | 0.681804 | 432 | 3,281 | 5.138889 | 0.414352 | 0.03964 | 0.045045 | 0.02973 | 0.114414 | 0.10045 | 0.031532 | 0 | 0 | 0 | 0 | 0.002354 | 0.223103 | 3,281 | 80 | 121 | 41.0125 | 0.868576 | 0.323987 | 0 | 0.085106 | 0 | 0 | 0.174249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec83603dc2f5de5383a2e5ca4b3ee0943e8df88f | 1,270 | py | Python | hall-of-fame/round-03/05_ArfiTech/team.py | sihumji00/cau-osp2020-game | bf832c576e3ec6b7b6fd86f4a6945943de0b0a3c | [
"Apache-2.0"
] | 17 | 2020-12-08T14:33:01.000Z | 2020-12-17T15:50:59.000Z | hall-of-fame/round-03/05_ArfiTech/team.py | sihumji00/cau-osp2020-game | bf832c576e3ec6b7b6fd86f4a6945943de0b0a3c | [
"Apache-2.0"
] | 2 | 2020-11-26T12:21:53.000Z | 2020-12-02T07:07:24.000Z | hall-of-fame/round-03/05_ArfiTech/team.py | sihumji00/cau-osp2020-game | bf832c576e3ec6b7b6fd86f4a6945943de0b0a3c | [
"Apache-2.0"
] | 79 | 2020-11-26T00:43:18.000Z | 2020-12-18T14:18:37.000Z | from loa.team import Team
def get_team():
return LittleLyrical("LittleLyrical")
class LittleLyrical(Team):
def arrange(self, enemy: Team):
first_unit = self.units[0]
for i in range(self.num_positions - 1):
j = i + 1
self.units[i] = self.units[j]
... | 28.863636 | 55 | 0.462205 | 161 | 1,270 | 3.596273 | 0.21118 | 0.326425 | 0.241796 | 0.124352 | 0.625216 | 0.569948 | 0.518135 | 0.518135 | 0.469775 | 0.369603 | 0 | 0.022973 | 0.417323 | 1,270 | 43 | 56 | 29.534884 | 0.759459 | 0.007874 | 0 | 0.4 | 0 | 0 | 0.010334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0.033333 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
ec863bf797d4f68a78c20b0aaf1e7087f38bcc26 | 13,679 | py | Python | scripts/download-data.py | tamslo/koala | 9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c | [
"MIT"
] | null | null | null | scripts/download-data.py | tamslo/koala | 9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c | [
"MIT"
] | null | null | null | scripts/download-data.py | tamslo/koala | 9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys, os, shutil, json, yaml
from time import localtime
ONLY_SIMULATED = False
ONLY_GIAB = True
# Make import from parent directory possible
sys.path.append(
os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))
import modules.file_utils as file_utils
with open(... | 32.882212 | 86 | 0.605892 | 1,531 | 13,679 | 5.135859 | 0.154148 | 0.034592 | 0.036627 | 0.045784 | 0.329009 | 0.236805 | 0.110136 | 0.092077 | 0.092077 | 0.072491 | 0 | 0.017796 | 0.248264 | 13,679 | 415 | 87 | 32.961446 | 0.746864 | 0.155421 | 0 | 0.16129 | 0 | 0 | 0.179752 | 0.020266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053763 | false | 0 | 0.010753 | 0.003584 | 0.075269 | 0.057348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec8773e1ce2f98e8ecbc0c5250f556cebd0b01d5 | 500 | py | Python | test/TestPasswordHash.py | yangguichun/SimpleBlogWithFlask | 1b6bb04605a580f6c7b47dddd1ba734eb464fabd | [
"Apache-2.0"
] | null | null | null | test/TestPasswordHash.py | yangguichun/SimpleBlogWithFlask | 1b6bb04605a580f6c7b47dddd1ba734eb464fabd | [
"Apache-2.0"
] | null | null | null | test/TestPasswordHash.py | yangguichun/SimpleBlogWithFlask | 1b6bb04605a580f6c7b47dddd1ba734eb464fabd | [
"Apache-2.0"
] | null | null | null | import unittest
from werkzeug.security import generate_password_hash, check_password_hash
class TestPasswordHash(unittest.TestCase):
def test_generate_password_hash(self):
hash = generate_password_hash('mima')
print('mima的hash是:', hash)
def test_check_password_hash(self):
password = 'm... | 35.714286 | 73 | 0.74 | 58 | 500 | 6.068966 | 0.362069 | 0.272727 | 0.227273 | 0.136364 | 0.164773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.172 | 500 | 13 | 74 | 38.461538 | 0.847826 | 0 | 0 | 0 | 1 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0.818182 | 0.181818 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ec87b2a8d66b90a05ef4708e84704798ddc9d79f | 3,512 | py | Python | src/loadgen/locustfile.py | vlesierse/awsdemo-abshop | a0390e88c0bbb5a9f2da950c9bfed88986826911 | [
"MIT-0"
] | null | null | null | src/loadgen/locustfile.py | vlesierse/awsdemo-abshop | a0390e88c0bbb5a9f2da950c9bfed88986826911 | [
"MIT-0"
] | null | null | null | src/loadgen/locustfile.py | vlesierse/awsdemo-abshop | a0390e88c0bbb5a9f2da950c9bfed88986826911 | [
"MIT-0"
] | null | null | null | #
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to u... | 32.220183 | 180 | 0.628986 | 428 | 3,512 | 5.11215 | 0.507009 | 0.045704 | 0.035649 | 0.023309 | 0.081353 | 0.030165 | 0 | 0 | 0 | 0 | 0 | 0.069589 | 0.259396 | 3,512 | 108 | 181 | 32.518519 | 0.771626 | 0.281891 | 0 | 0.069444 | 0 | 0.013889 | 0.211746 | 0.00839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.041667 | 0 | 0.236111 | 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 | 0 | 0 | 1 | 0 |
ec88372c8535e15168d52d6a53fd1a5e9d041265 | 7,918 | py | Python | tests/test_templatetags.py | mixxorz/slippers | af8b8b168653b379efe78654f6801b3af317c44e | [
"MIT"
] | 175 | 2021-07-11T12:12:43.000Z | 2022-03-21T16:18:54.000Z | tests/test_templatetags.py | mixxorz/slippers | af8b8b168653b379efe78654f6801b3af317c44e | [
"MIT"
] | 6 | 2021-08-17T19:54:13.000Z | 2022-01-25T13:02:29.000Z | tests/test_templatetags.py | mixxorz/slippers | af8b8b168653b379efe78654f6801b3af317c44e | [
"MIT"
] | 6 | 2021-09-14T15:25:57.000Z | 2022-01-07T06:35:13.000Z | from django.template import Context, Template, TemplateSyntaxError
from django.test import TestCase, override_settings
class ComponentTest(TestCase):
def test_render_inline_component(self):
template = """
{% avatar user="mixxorz" %}
"""
expected = """
<div>I am ava... | 27.397924 | 113 | 0.50581 | 715 | 7,918 | 5.503497 | 0.144056 | 0.03202 | 0.100635 | 0.132656 | 0.734689 | 0.687421 | 0.646506 | 0.559339 | 0.542058 | 0.536468 | 0 | 0 | 0.345037 | 7,918 | 288 | 114 | 27.493056 | 0.758774 | 0 | 0 | 0.669725 | 0 | 0.022936 | 0.509725 | 0.051528 | 0 | 0 | 0 | 0 | 0.082569 | 1 | 0.082569 | false | 0.004587 | 0.009174 | 0 | 0.114679 | 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 | 0 | 0 | 1 | 0 |
ec8a2f8960c6c38997c2788b7d41e2a8915b8efa | 5,599 | py | Python | Application/index.py | mohammadn/Monte_Carlo | d490e5ae82eb134bec59953c697d3fe36ff28d8f | [
"MIT"
] | null | null | null | Application/index.py | mohammadn/Monte_Carlo | d490e5ae82eb134bec59953c697d3fe36ff28d8f | [
"MIT"
] | null | null | null | Application/index.py | mohammadn/Monte_Carlo | d490e5ae82eb134bec59953c697d3fe36ff28d8f | [
"MIT"
] | null | null | null | import os
import logging
from flask import Flask, request, render_template
app = Flask(__name__)
def doRender(tname, values={}):
if not os.path.isfile( os.path.join(os.getcwd(), 'templates/'+tname) ):
return render_template('index.htm')
return render_template(tname, **values)
@app.route('/', defaults={'path': ... | 28.277778 | 380 | 0.663333 | 709 | 5,599 | 5.179126 | 0.299013 | 0.022876 | 0.026144 | 0.026961 | 0.180828 | 0.150327 | 0.133987 | 0.099673 | 0.099673 | 0.080065 | 0 | 0.026464 | 0.176639 | 5,599 | 197 | 381 | 28.42132 | 0.770065 | 0.053938 | 0 | 0.101351 | 0 | 0 | 0.124267 | 0.022886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0.006757 | 0.195946 | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ec8a928b68d92d2f7dcc179f2b1ab2b3f9085dbb | 170 | py | Python | tests/parameterize_test.py | PhamTDuc/HelloPackage | 78b8fa00f932ba97f8afdf639ac4a66234e196dd | [
"MIT"
] | null | null | null | tests/parameterize_test.py | PhamTDuc/HelloPackage | 78b8fa00f932ba97f8afdf639ac4a66234e196dd | [
"MIT"
] | null | null | null | tests/parameterize_test.py | PhamTDuc/HelloPackage | 78b8fa00f932ba97f8afdf639ac4a66234e196dd | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.parametrize("val1, val2, result", ((5, 5, 10), (3, 5, 9)))
def test_addition(val1, val2, result):
assert val1 + val2 == result, "Failed"
| 24.285714 | 71 | 0.647059 | 25 | 170 | 4.36 | 0.64 | 0.220183 | 0.385321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091549 | 0.164706 | 170 | 6 | 72 | 28.333333 | 0.676056 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |