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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dafca5aa0e02af36068ede8a86136584cfafa7e0 | 2,975 | py | Python | app/models.py | haeju98/team2_miniton | b4559c73a695093c96dab78e664acc98f616aac2 | [
"MIT"
] | null | null | null | app/models.py | haeju98/team2_miniton | b4559c73a695093c96dab78e664acc98f616aac2 | [
"MIT"
] | 5 | 2021-03-30T13:49:13.000Z | 2021-06-11T01:44:48.000Z | app/models.py | haeju98/team2_miniton | b4559c73a695093c96dab78e664acc98f616aac2 | [
"MIT"
] | 2 | 2021-01-22T05:24:07.000Z | 2021-05-10T12:04:11.000Z | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
name = models.CharField(max_length=50)
pNumber = models.CharField(max_length=50)
location = models.CharField(max_length=50)
website = models.CharField(max_length=150)
categ... | 34.195402 | 102 | 0.733445 | 395 | 2,975 | 5.281013 | 0.189873 | 0.158198 | 0.189837 | 0.253116 | 0.722435 | 0.633749 | 0.478428 | 0.427613 | 0.361937 | 0.267018 | 0 | 0.024361 | 0.158319 | 2,975 | 86 | 103 | 34.593023 | 0.808706 | 0.047731 | 0 | 0.323077 | 0 | 0 | 0.040679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.030769 | 0.076923 | 0.907692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
971726f56391eb5007f01def7684bf55598f3eb7 | 1,074 | py | Python | pyclopedia/p02_ref/p03_objective_oriented/p03_magic_attribute/p02__name__.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p02_ref/p03_objective_oriented/p03_magic_attribute/p02__name__.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p02_ref/p03_objective_oriented/p03_magic_attribute/p02__name__.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
``__name__`` 变量对于 package, module, function, class, method 都是作为一个默认
属性, 储存着它们的本名(不包含父子关系)
- 对于package: 是package name
- 对于module: 是module name
- 对于function: 是function name
- 对于class: 是class name
- 对于method: 是method name
对于module脚本而言, 变量 ``__name__`` 的值在脚本内是: ``__main_... | 17.9 | 67 | 0.646182 | 109 | 1,074 | 5.889908 | 0.522936 | 0.077882 | 0.031153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001208 | 0.22905 | 1,074 | 59 | 68 | 18.20339 | 0.774155 | 0.622905 | 0 | 0.166667 | 0 | 0 | 0.103723 | 0 | 0 | 0 | 0 | 0.016949 | 0.416667 | 1 | 0.166667 | false | 0.166667 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9726b7582f718268e2da9d74b0057c77c86cdfe5 | 2,020 | py | Python | Algorithm.Python/stubs/QuantConnect/Securities/Interfaces.py | gaoxiaojun/Lean | 9dca43bccb720d0df91e4bfc1d363b71e3a36cb5 | [
"Apache-2.0"
] | 2 | 2020-12-08T11:27:20.000Z | 2021-04-06T13:21:15.000Z | Algorithm.Python/stubs/QuantConnect/Securities/Interfaces.py | gaoxiaojun/Lean | 9dca43bccb720d0df91e4bfc1d363b71e3a36cb5 | [
"Apache-2.0"
] | null | null | null | Algorithm.Python/stubs/QuantConnect/Securities/Interfaces.py | gaoxiaojun/Lean | 9dca43bccb720d0df91e4bfc1d363b71e3a36cb5 | [
"Apache-2.0"
] | 1 | 2020-12-08T11:27:21.000Z | 2020-12-08T11:27:21.000Z | # encoding: utf-8
# module QuantConnect.Securities.Interfaces calls itself Interfaces
# from QuantConnect.Common, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null
# by generator 1.145
# no doc
# imports
import datetime
import QuantConnect
import QuantConnect.Data
import QuantConnect.Securities
import QuantConnect... | 34.237288 | 131 | 0.759901 | 210 | 2,020 | 7.3 | 0.485714 | 0.071755 | 0.062622 | 0.068493 | 0.076973 | 0.076973 | 0.076973 | 0 | 0 | 0 | 0 | 0.006555 | 0.169307 | 2,020 | 58 | 132 | 34.827586 | 0.907032 | 0.425248 | 0 | 0.166667 | 0 | 0 | 0.025571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
972919cbeff7d67d30d0b01433f79a459428442e | 244 | py | Python | joeutils/package_management/__init__.py | joeflack4/joefuncs | 937107bb8b47d6ba4c1fb4ec598bda1211deb5c4 | [
"MIT"
] | null | null | null | joeutils/package_management/__init__.py | joeflack4/joefuncs | 937107bb8b47d6ba4c1fb4ec598bda1211deb5c4 | [
"MIT"
] | 1 | 2021-06-01T22:45:31.000Z | 2021-06-01T22:45:31.000Z | joeutils/package_management/__init__.py | joeflack4/joefuncs | 937107bb8b47d6ba4c1fb4ec598bda1211deb5c4 | [
"MIT"
] | 1 | 2022-01-04T14:37:29.000Z | 2022-01-04T14:37:29.000Z | """Package management"""
# Copy paste this at the top of a file to have it work with with both modulare
# imports and running as a direct script
# import os
# import sys
#
# sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/../') | 30.5 | 78 | 0.713115 | 40 | 244 | 4.25 | 0.775 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159836 | 244 | 8 | 79 | 30.5 | 0.829268 | 0.92623 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
973a7cde907aab0976e54febc15f5076c1e32aa4 | 93 | py | Python | ToolsStudy/TuShareAPI/t.py | nickliqian/ralph_doc_to_chinese | be120ce2bb94a8e8395630218985f5e51ae087d9 | [
"MIT"
] | 8 | 2018-05-22T01:11:33.000Z | 2020-03-19T01:44:55.000Z | ToolsStudy/TuShareAPI/t.py | yangliangguang/keep_learning | 47ab39c726cb28713ad22bf4cf39d6b146715910 | [
"MIT"
] | null | null | null | ToolsStudy/TuShareAPI/t.py | yangliangguang/keep_learning | 47ab39c726cb28713ad22bf4cf39d6b146715910 | [
"MIT"
] | 3 | 2018-07-25T09:31:53.000Z | 2019-09-14T14:05:31.000Z | import tushare as ts
a = ts.get_hist_data('600848') #一次性获取全部日k线数据
# print(a)
print(type(a)) | 15.5 | 44 | 0.72043 | 16 | 93 | 4.0625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.129032 | 93 | 6 | 45 | 15.5 | 0.728395 | 0.225806 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
973d73791182c7cb80d356e1a43fa55d6641c066 | 78 | py | Python | centralms/__init__.py | changhoonhahn/centralMS | 39b4509ea99e47ab5cf1f9be8775d53eee6de80f | [
"MIT"
] | 1 | 2018-05-30T23:43:52.000Z | 2018-05-30T23:43:52.000Z | centralms/__init__.py | changhoonhahn/centralMS | 39b4509ea99e47ab5cf1f9be8775d53eee6de80f | [
"MIT"
] | 2 | 2017-04-24T22:58:40.000Z | 2017-04-24T22:59:28.000Z | centralms/__init__.py | changhoonhahn/centralMS | 39b4509ea99e47ab5cf1f9be8775d53eee6de80f | [
"MIT"
] | null | null | null | __all__ = ['catalog', 'evolver']
from . import util as UT
UT.check_env()
| 13 | 32 | 0.641026 | 11 | 78 | 4.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 78 | 5 | 33 | 15.6 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
9765b26197c10c21f2153e062a9d691710a35027 | 270 | py | Python | chap4/4-10.py | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | [
"MIT"
] | 1 | 2022-02-21T07:05:48.000Z | 2022-02-21T07:05:48.000Z | chap4/4-10.py | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | [
"MIT"
] | null | null | null | chap4/4-10.py | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | [
"MIT"
] | null | null | null | #choose 4-9.py
cubes=[value**3 for value in range(1,11)]
print(cubes)
print("The first three items in the list are: "+str(cubes[:3]))
print("Three items from the middle of the list are: "+str(cubes[4:7]))
print("The last three items in the list are: "+str(cubes[-3:]))
| 33.75 | 70 | 0.688889 | 53 | 270 | 3.509434 | 0.471698 | 0.16129 | 0.16129 | 0.209677 | 0.430108 | 0.333333 | 0.333333 | 0.333333 | 0.333333 | 0 | 0 | 0.042918 | 0.137037 | 270 | 7 | 71 | 38.571429 | 0.755365 | 0.048148 | 0 | 0 | 0 | 0 | 0.478431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
9780f05093675e8526538845e6cb83cbc835648e | 2,960 | py | Python | locan/tests/analysis/test_ripley.py | super-resolution/Locan | 94ed7759f7d7ceddee7c7feaabff80010cfedf30 | [
"BSD-3-Clause"
] | 8 | 2021-11-25T20:05:49.000Z | 2022-03-27T17:45:00.000Z | locan/tests/analysis/test_ripley.py | super-resolution/Locan | 94ed7759f7d7ceddee7c7feaabff80010cfedf30 | [
"BSD-3-Clause"
] | 4 | 2021-12-15T22:39:20.000Z | 2022-03-11T17:35:34.000Z | locan/tests/analysis/test_ripley.py | super-resolution/Locan | 94ed7759f7d7ceddee7c7feaabff80010cfedf30 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T19:53:13.000Z | 2022-03-22T19:53:13.000Z | import matplotlib.pyplot as plt # needed for visualization
import numpy as np
import pytest
from locan import LocData
from locan.analysis import RipleysHFunction, RipleysKFunction, RipleysLFunction
def test_Ripleys_k_function_empty(caplog):
rhf = RipleysKFunction().compute(LocData())
rhf.plot()
assert c... | 30.515464 | 87 | 0.697297 | 409 | 2,960 | 4.875306 | 0.151589 | 0.085256 | 0.06319 | 0.07673 | 0.778335 | 0.753761 | 0.712136 | 0.698094 | 0.645436 | 0.645436 | 0 | 0.026262 | 0.176689 | 2,960 | 96 | 88 | 30.833333 | 0.791957 | 0.029392 | 0 | 0.58209 | 0 | 0 | 0.017446 | 0.007327 | 0 | 0 | 0 | 0 | 0.328358 | 1 | 0.074627 | false | 0 | 0.074627 | 0 | 0.149254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
978415cb7fbcd2b6b2c88b1f876c500ee5363b44 | 107 | py | Python | python-dbg/handler.py | ericstoekl/misc-functions | 9da89b9d643f642dd85b0b783a043991db7ccf4c | [
"Unlicense"
] | 1 | 2017-10-02T07:15:06.000Z | 2017-10-02T07:15:06.000Z | python-dbg/handler.py | ericstoekl/misc-functions | 9da89b9d643f642dd85b0b783a043991db7ccf4c | [
"Unlicense"
] | null | null | null | python-dbg/handler.py | ericstoekl/misc-functions | 9da89b9d643f642dd85b0b783a043991db7ccf4c | [
"Unlicense"
] | null | null | null | from remote_pdb import RemotePdb
def handle(st):
RemotePdb('0.0.0.0', 4444).set_trace()
print(st)
| 17.833333 | 42 | 0.682243 | 18 | 107 | 3.944444 | 0.722222 | 0.084507 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0.168224 | 107 | 5 | 43 | 21.4 | 0.707865 | 0 | 0 | 0 | 0 | 0 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
979a66e03ab1fe8a57b3ada78be87b1b5c579e3b | 500 | py | Python | com/blueberr/python/study/day1/sys_module.py | CoderHongKong/python-study | 4e13359e3546b67d555a79adee63422cac7968c2 | [
"Apache-2.0"
] | null | null | null | com/blueberr/python/study/day1/sys_module.py | CoderHongKong/python-study | 4e13359e3546b67d555a79adee63422cac7968c2 | [
"Apache-2.0"
] | null | null | null | com/blueberr/python/study/day1/sys_module.py | CoderHongKong/python-study | 4e13359e3546b67d555a79adee63422cac7968c2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
#-------------------------------------------------------------------------------
# Name:
# Purpose:
#
# Author: hekai
#-------------------------------------------------------------------------------
import sys
import os
print(sys.path)
cmd_res = os.popen("dir... | 18.518519 | 80 | 0.416 | 51 | 500 | 4.019608 | 0.54902 | 0.078049 | 0.17561 | 0.214634 | 0.253659 | 0.253659 | 0 | 0 | 0 | 0 | 0 | 0.008989 | 0.11 | 500 | 26 | 81 | 19.230769 | 0.451685 | 0.52 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
97a2e32dc80fc5dceaccd2ca7cb54dd723d9b8dd | 37,730 | py | Python | software/netchop/allele_info/tests/allele_info_tests.py | bm2-lab/pTuneos | 1865c09728e339e74de5ecd6f119043449833c10 | [
"MIT"
] | 24 | 2019-10-17T12:03:34.000Z | 2021-12-18T08:30:56.000Z | software/netchop/allele_info/tests/allele_info_tests.py | jianguozhouzunyimedicaluniversity/PREP | e1c5c5bd49137a2b689ab4de0ac31bc30422390b | [
"Apache-2.0"
] | 7 | 2020-01-20T09:14:18.000Z | 2021-01-20T13:31:46.000Z | software/netchop/allele_info/tests/allele_info_tests.py | jianguozhouzunyimedicaluniversity/PREP | e1c5c5bd49137a2b689ab4de0ac31bc30422390b | [
"Apache-2.0"
] | 6 | 2019-11-01T07:24:27.000Z | 2021-01-18T19:13:35.000Z | '''
Created on Sep 30, 2015
@author: jivan
'''
import os, json
from unittest import TestCase
import unittest
from allele_info import MHCIAlleleData, MHCIIAlleleData, MHCNPAlleleData, NetCTLpanAlleleData, is_user_defined_allele
class MHCIAlleleDataTests(TestCase):
def get_allele_names_for_method_no_length_tests(... | 105.686275 | 1,940 | 0.603525 | 6,956 | 37,730 | 3.187464 | 0.072168 | 0.047447 | 0.029226 | 0.007893 | 0.674815 | 0.627954 | 0.576087 | 0.538382 | 0.517545 | 0.486109 | 0 | 0.196372 | 0.136602 | 37,730 | 356 | 1,941 | 105.983146 | 0.484252 | 0.026292 | 0 | 0.37594 | 0 | 0 | 0.474609 | 0.019915 | 0 | 0 | 0 | 0 | 0.169173 | 1 | 0.105263 | false | 0 | 0.015038 | 0 | 0.139098 | 0.003759 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97aff7378c040c35a76887ba09768e0aa0070338 | 77 | py | Python | dev_files/sample.py | ainehanta/micropython-uieee1888 | 566a973d806f2e67d485193ac1c39434e46c1799 | [
"MIT"
] | null | null | null | dev_files/sample.py | ainehanta/micropython-uieee1888 | 566a973d806f2e67d485193ac1c39434e46c1799 | [
"MIT"
] | null | null | null | dev_files/sample.py | ainehanta/micropython-uieee1888 | 566a973d806f2e67d485193ac1c39434e46c1799 | [
"MIT"
] | null | null | null |
import xmltok
for i in xmltok.tokenize(open("./sample.xml")):
print(i)
| 12.833333 | 47 | 0.662338 | 12 | 77 | 4.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 5 | 48 | 15.4 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
97bfa8440c9e9a68f60780a6de3664ff48d9d6b2 | 338 | py | Python | django_unicorn/components/__init__.py | nerdoc/django-unicorn | e512b8f64f5c276a78127db9a05d9d5c042232d5 | [
"MIT"
] | 1 | 2021-12-21T16:20:49.000Z | 2021-12-21T16:20:49.000Z | django_unicorn/components/__init__.py | teury/django-unicorn | 5e9142b8a7e13b862ece419d567e805cc783b517 | [
"MIT"
] | null | null | null | django_unicorn/components/__init__.py | teury/django-unicorn | 5e9142b8a7e13b862ece419d567e805cc783b517 | [
"MIT"
] | 1 | 2022-02-10T07:47:01.000Z | 2022-02-10T07:47:01.000Z | from .mixins import ModelValueMixin
from .typing import QuerySetType
from .unicorn_view import UnicornField, UnicornView
from .updaters import HashUpdate, LocationUpdate, PollUpdate
__all__ = [
"QuerySetType",
"UnicornField",
"UnicornView",
"HashUpdate",
"LocationUpdate",
"PollUpdate",
"Mo... | 21.125 | 60 | 0.730769 | 28 | 338 | 8.642857 | 0.535714 | 0.190083 | 0.280992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177515 | 338 | 15 | 61 | 22.533333 | 0.870504 | 0 | 0 | 0 | 0 | 0 | 0.248521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
97c2915c85508dd74df94196ead884530ac0c2f8 | 450 | py | Python | vip/models.py | jhihwei/eshop | e9861e9a2ee084201ecd36bed628cf50e9dbeb7e | [
"Apache-2.0"
] | null | null | null | vip/models.py | jhihwei/eshop | e9861e9a2ee084201ecd36bed628cf50e9dbeb7e | [
"Apache-2.0"
] | null | null | null | vip/models.py | jhihwei/eshop | e9861e9a2ee084201ecd36bed628cf50e9dbeb7e | [
"Apache-2.0"
] | null | null | null | from django.db import models
class VIP_User(models.Model):
name = models.CharField(max_length=10, verbose_name='名稱', default='')
line_id = models.CharField(max_length=60, verbose_name='line_id', default='')
actived = models.BooleanField(verbose_name='啟用', default=False)
class Meta:
ordering = ... | 30 | 81 | 0.677778 | 58 | 450 | 4.982759 | 0.551724 | 0.228374 | 0.124567 | 0.16609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.2 | 450 | 14 | 82 | 32.142857 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.037778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
97c80561b2c59d86eefc859a55d6851a35c2ad06 | 16 | py | Python | app/src/main/python/package1/package12/python.py | Tanita2529/chaquopy | 24b8fbcdceb8070ab31205e67d87ead02124c794 | [
"MIT"
] | 336 | 2017-07-28T11:20:19.000Z | 2022-03-28T16:00:17.000Z | app/src/main/python/package1/package12/python.py | Tanita2529/chaquopy | 24b8fbcdceb8070ab31205e67d87ead02124c794 | [
"MIT"
] | 592 | 2017-10-08T12:08:07.000Z | 2022-03-30T12:28:15.000Z | app/src/main/python/package1/package12/python.py | Tanita2529/chaquopy | 24b8fbcdceb8070ab31205e67d87ead02124c794 | [
"MIT"
] | 69 | 2017-12-29T18:57:48.000Z | 2022-03-15T08:41:09.000Z | x = "python 12"
| 8 | 15 | 0.5625 | 3 | 16 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.25 | 16 | 1 | 16 | 16 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
8adacca507f726fdb31141b0fa018a441409746a | 171 | py | Python | problem0238.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0238.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0238.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #238 Infinite string tour - Project Euler
# https://projecteuler.net/problem=238
#
# Code by Kevin Marciniak
#
###########################
| 19 | 43 | 0.48538 | 15 | 171 | 5.533333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.116959 | 171 | 8 | 44 | 21.375 | 0.509934 | 0.590643 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8afcbc21b19ff32f9325f960ab055b2d1bf2a09b | 825 | py | Python | project531/bbb/migrations/0001_initial.py | xydinesh/531 | f62c662e381115415df3230fcf00c0487a7c6088 | [
"BSD-3-Clause"
] | null | null | null | project531/bbb/migrations/0001_initial.py | xydinesh/531 | f62c662e381115415df3230fcf00c0487a7c6088 | [
"BSD-3-Clause"
] | null | null | null | project531/bbb/migrations/0001_initial.py | xydinesh/531 | f62c662e381115415df3230fcf00c0487a7c6088 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-19 18:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TrainingMax',
fields=[
('id', models.BigAut... | 31.730769 | 117 | 0.6 | 87 | 825 | 5.528736 | 0.563218 | 0.149688 | 0.2079 | 0.257796 | 0.370062 | 0.370062 | 0.370062 | 0.370062 | 0.195426 | 0 | 0 | 0.03827 | 0.271515 | 825 | 25 | 118 | 33 | 0.762063 | 0.054545 | 0 | 0 | 1 | 0 | 0.082262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c10edce694fb98322c74bb4000082113bf7060b6 | 222 | py | Python | Code/Python/WebSiteGrab/old/tempCodeRunnerFile.py | dks1018/CoffeeShopCoding | 13ac1700673c86c601eb2758570920620a956e4c | [
"ADSL"
] | null | null | null | Code/Python/WebSiteGrab/old/tempCodeRunnerFile.py | dks1018/CoffeeShopCoding | 13ac1700673c86c601eb2758570920620a956e4c | [
"ADSL"
] | null | null | null | Code/Python/WebSiteGrab/old/tempCodeRunnerFile.py | dks1018/CoffeeShopCoding | 13ac1700673c86c601eb2758570920620a956e4c | [
"ADSL"
] | null | null | null | import urllib.request
uf = urllib.request.urlopen("https://qpublic.schneidercorp.com/Application.aspx?AppID=936&LayerID=18251&PageTypeID=4&PageID=8156&Q=2124870374&KeyValue=09F101000520172")
html = uf.read()
print(html)
| 31.714286 | 168 | 0.801802 | 30 | 222 | 5.933333 | 0.866667 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175355 | 0.04955 | 222 | 6 | 169 | 37 | 0.668246 | 0 | 0 | 0 | 0 | 0.25 | 0.617117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c122bce88c2047a7ba1310fd38786a2d46075f0f | 469 | py | Python | src/guid/db/__init__.py | nwcell/guid_tracker | b8599d53748554870875b9477cd6b229c88915ac | [
"MIT"
] | 3 | 2019-06-04T01:36:17.000Z | 2021-05-16T18:52:21.000Z | src/guid/db/__init__.py | nwcell/guid_tracker | b8599d53748554870875b9477cd6b229c88915ac | [
"MIT"
] | null | null | null | src/guid/db/__init__.py | nwcell/guid_tracker | b8599d53748554870875b9477cd6b229c88915ac | [
"MIT"
] | null | null | null | """The DB module deals w/ anything db related."""
from guid.db.models import metadata, guid_tracker
from guid.db.pool import (database,
open_database_connection_pool,
close_database_connection_pool)
from guid.db.transactions import (create_guid_record,
... | 46.9 | 57 | 0.565032 | 47 | 469 | 5.319149 | 0.510638 | 0.16 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.383795 | 469 | 9 | 58 | 52.111111 | 0.865052 | 0.091684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 3 |
c139b30ab280b271489bc68f1292b06eb27fd9e6 | 21 | py | Python | easysound/__init__.py | Fitswc/Easy_Sound | c49b07b8a851993cf2e49174109ba1557730f4c0 | [
"MIT"
] | null | null | null | easysound/__init__.py | Fitswc/Easy_Sound | c49b07b8a851993cf2e49174109ba1557730f4c0 | [
"MIT"
] | null | null | null | easysound/__init__.py | Fitswc/Easy_Sound | c49b07b8a851993cf2e49174109ba1557730f4c0 | [
"MIT"
] | null | null | null | __all__ = ['pyaudio'] | 21 | 21 | 0.666667 | 2 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 21 | 1 | 21 | 21 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
c13b567fef0d4fad758dbbb345ab4d0e5f22ec55 | 464 | py | Python | shmaplib/__init__.py | JetBrains/ShortcutMapper | 558a4ce03996131c500137e088c7635799a4f6a2 | [
"MIT"
] | null | null | null | shmaplib/__init__.py | JetBrains/ShortcutMapper | 558a4ce03996131c500137e088c7635799a4f6a2 | [
"MIT"
] | 1 | 2022-03-18T19:46:57.000Z | 2022-03-18T19:46:57.000Z | shmaplib/__init__.py | isabella232/ShortcutMapper | 558a4ce03996131c500137e088c7635799a4f6a2 | [
"MIT"
] | 4 | 2018-01-17T11:58:19.000Z | 2022-03-18T17:13:31.000Z | # Why the hell do I need to do this for python3??
import sys
import os
sys.path.append(os.path.dirname(__file__))
from appdata import Shortcut, ShortcutContext, ApplicationConfig
from keynames import get_all_valid_keynames, get_valid_keynames, is_valid_keyname
from logger import getlog, setuplog
from constants import ... | 42.181818 | 89 | 0.855603 | 64 | 464 | 5.9375 | 0.640625 | 0.068421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002398 | 0.101293 | 464 | 10 | 90 | 46.4 | 0.908873 | 0.101293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
c17a94f1fde3b5040b02a38b88fef32bcf92e90b | 88 | py | Python | mtw/fl_user/apps.py | subhasrim2001/medical-transcription-website | b8dd823384a9b9381497c319f379c84e6e2c8516 | [
"MIT"
] | 2 | 2021-05-24T06:08:41.000Z | 2021-05-26T19:21:01.000Z | mtw/fl_user/apps.py | subhasrim2001/medical-transcription-website | b8dd823384a9b9381497c319f379c84e6e2c8516 | [
"MIT"
] | null | null | null | mtw/fl_user/apps.py | subhasrim2001/medical-transcription-website | b8dd823384a9b9381497c319f379c84e6e2c8516 | [
"MIT"
] | 3 | 2021-05-22T11:37:30.000Z | 2021-06-01T08:34:01.000Z | from django.apps import AppConfig
class FlUserConfig(AppConfig):
name = 'fl_user'
| 14.666667 | 33 | 0.75 | 11 | 88 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 5 | 34 | 17.6 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 |
c18ae1dbdec383f1fef1f9fb8be2fd1a732e56f2 | 244 | py | Python | mine/fizz_buzz.py | NigrumAquila/py_checkio | df437c2c3ad325d84714665000e3299a70e91f32 | [
"MIT"
] | null | null | null | mine/fizz_buzz.py | NigrumAquila/py_checkio | df437c2c3ad325d84714665000e3299a70e91f32 | [
"MIT"
] | null | null | null | mine/fizz_buzz.py | NigrumAquila/py_checkio | df437c2c3ad325d84714665000e3299a70e91f32 | [
"MIT"
] | null | null | null | def checkio(number: int) -> str:
res = str(number);
if(number % 5 == 0 and number % 3 == 0):
return "Fizz Buzz";
elif(number % 3 == 0):
return "Fizz";
elif(number % 5 == 0):
return "Buzz";
return res; | 27.111111 | 44 | 0.5 | 33 | 244 | 3.69697 | 0.454545 | 0.172131 | 0.131148 | 0.229508 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04908 | 0.331967 | 244 | 9 | 45 | 27.111111 | 0.699387 | 0 | 0 | 0 | 0 | 0 | 0.069388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
c1938c9be495165db8b1277f65d7a4576cfcf5c7 | 394 | py | Python | python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/mentalray/invokeImfDisp.py | CountZer0/PipelineConstructionSet | 0aa73a8a63c72989b2d1c677efd78dad4388d335 | [
"BSD-3-Clause"
] | 21 | 2015-04-27T05:01:36.000Z | 2021-11-22T13:45:14.000Z | python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/mentalray/invokeImfDisp.py | 0xb1dd1e/PipelineConstructionSet | 621349da1b6d1437e95d0c9e48ee9f36d59f19fd | [
"BSD-3-Clause"
] | null | null | null | python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/mentalray/invokeImfDisp.py | 0xb1dd1e/PipelineConstructionSet | 621349da1b6d1437e95d0c9e48ee9f36d59f19fd | [
"BSD-3-Clause"
] | 7 | 2015-04-11T11:37:19.000Z | 2020-05-22T09:49:04.000Z | import maya.cmds as cmds
import maya
import maya.mel as mel
import os
import subprocess
import sys
def invokeImfDisp(fileName, channel):
"""
Display given image file using imf_disp that is packaged with Maya.
If the image is an OpenEXR and a channel is defined then that channel
will be displayed, ... | 21.888889 | 77 | 0.720812 | 63 | 394 | 4.492063 | 0.666667 | 0.106007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228426 | 394 | 17 | 78 | 23.176471 | 0.930921 | 0.538071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.75 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c1f89dfff438f3b3dba67304a338dccecdf0ad56 | 936 | py | Python | src/visions/core/implementations/types/visions_count.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | src/visions/core/implementations/types/visions_count.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | src/visions/core/implementations/types/visions_count.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | import pandas.api.types as pdt
import pandas as pd
from typing import Sequence
from visions.core.model.relations import IdentityRelation, InferenceRelation
from visions.core.model import TypeRelation
from visions.core.model.type import VisionsBaseType
def _get_relations(cls) -> Sequence[TypeRelation]:
from visio... | 28.363636 | 103 | 0.727564 | 111 | 936 | 6.018018 | 0.423423 | 0.082335 | 0.08982 | 0.08982 | 0.113772 | 0.113772 | 0 | 0 | 0 | 0 | 0 | 0.007792 | 0.17735 | 936 | 32 | 104 | 29.25 | 0.85974 | 0.193376 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.411765 | 0.117647 | 0.823529 | 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 | 1 | 1 | 0 | 0 | 3 |
a9b83e68140728944c9aadb88f47a4027fcf8cbe | 297 | py | Python | google_reminder_api_wrapper/api_credentials.py | jannisko/gc_bd_reminder | 1f1211d088ab3deace0140728c12ccc15c36b01e | [
"MIT"
] | 31 | 2018-12-31T11:07:23.000Z | 2022-03-06T08:24:21.000Z | google_reminder_api_wrapper/api_credentials.py | jannisko/gc_bd_reminder | 1f1211d088ab3deace0140728c12ccc15c36b01e | [
"MIT"
] | 3 | 2018-12-31T14:53:09.000Z | 2020-07-21T23:11:17.000Z | google_reminder_api_wrapper/api_credentials.py | jannisko/gc_bd_reminder | 1f1211d088ab3deace0140728c12ccc15c36b01e | [
"MIT"
] | 2 | 2019-03-31T14:48:17.000Z | 2019-09-07T09:42:52.000Z | import os
class ApiCredentials:
SID = os.environ.get('SID')
HSID = os.environ.get('HSID')
SSID = os.environ.get('SSID')
APISID = os.environ.get('APISID')
SAPISID = os.environ.get('SAPISID')
key = os.environ.get('key')
authorization = os.environ.get('authorization')
| 22.846154 | 51 | 0.643098 | 39 | 297 | 4.897436 | 0.333333 | 0.329843 | 0.439791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188552 | 297 | 12 | 52 | 24.75 | 0.792531 | 0 | 0 | 0 | 0 | 0 | 0.13468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
a9b86ef2a3d3874313d98c931195e22b0f56e9e8 | 572 | py | Python | redset/serializers.py | indatalabs/redset | 3ff84935b9a2974a78ddc996007c3da1bc9b3757 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2015-02-08T09:21:42.000Z | 2021-10-21T23:17:20.000Z | redset/serializers.py | indatalabs/redset | 3ff84935b9a2974a78ddc996007c3da1bc9b3757 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2015-04-01T14:05:18.000Z | 2021-01-06T20:19:02.000Z | redset/serializers.py | indatalabs/redset | 3ff84935b9a2974a78ddc996007c3da1bc9b3757 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2015-12-03T10:14:45.000Z | 2021-01-30T12:00:46.000Z | """
Builtin serializers.
"""
import json
from redset.interfaces import Serializer
class NamedtupleSerializer(Serializer):
"""
Serialize namedtuple classes.
"""
def __init__(self, NTClass):
"""
:param NTClass: the namedtuple class that you'd like to marshal to and
from.
... | 19.066667 | 78 | 0.632867 | 64 | 572 | 5.484375 | 0.546875 | 0.094017 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265734 | 572 | 29 | 79 | 19.724138 | 0.835714 | 0.263986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 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 |
a9d7e3d788d3745ff260af47ec739827e5959ede | 23 | py | Python | torchlambda/_version.py | medric49/torchlambda | 3122c4366fe629c911d67b2ec4fc22e50fd2f981 | [
"MIT"
] | 104 | 2020-03-16T21:40:55.000Z | 2022-02-03T19:09:43.000Z | torchlambda/_version.py | medric49/torchlambda | 3122c4366fe629c911d67b2ec4fc22e50fd2f981 | [
"MIT"
] | 16 | 2020-04-06T20:59:57.000Z | 2021-07-15T04:30:55.000Z | torchlambda/_version.py | medric49/torchlambda | 3122c4366fe629c911d67b2ec4fc22e50fd2f981 | [
"MIT"
] | 5 | 2020-04-06T06:24:35.000Z | 2021-03-17T15:21:34.000Z | __version__ = "NON-CI"
| 11.5 | 22 | 0.695652 | 3 | 23 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
a9db558a263e40b521af615f5996b2758197571b | 881 | py | Python | tests/test_migrate/models.py | agilentia/django-salesforce | cb71f30452aee7d1f990eb7184085d87376fb36e | [
"MIT"
] | 251 | 2015-01-15T11:39:21.000Z | 2022-03-28T10:52:10.000Z | tests/test_migrate/models.py | agilentia/django-salesforce | cb71f30452aee7d1f990eb7184085d87376fb36e | [
"MIT"
] | 196 | 2015-01-09T01:29:37.000Z | 2022-03-19T19:35:09.000Z | tests/test_migrate/models.py | agilentia/django-salesforce | cb71f30452aee7d1f990eb7184085d87376fb36e | [
"MIT"
] | 68 | 2015-01-12T18:13:13.000Z | 2022-03-23T11:16:14.000Z | """Backward compatible behaviour with primary key 'Id' and upper-case field names"""
from salesforce import models
from salesforce.models import SalesforceModel
class User(SalesforceModel):
username = models.CharField(max_length=80)
email = models.CharField(max_length=100)
last_name = models.CharField(ma... | 29.366667 | 104 | 0.738933 | 111 | 881 | 5.720721 | 0.477477 | 0.165354 | 0.198425 | 0.264567 | 0.245669 | 0.16063 | 0.16063 | 0 | 0 | 0 | 0 | 0.021769 | 0.165721 | 881 | 29 | 105 | 30.37931 | 0.842177 | 0.088536 | 0 | 0.263158 | 0 | 0 | 0.013802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
e722cac3dc804dfb1a8a97ea2649ae341bb65620 | 2,529 | py | Python | src/awkward/_v2/forms/emptyform.py | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | null | null | null | src/awkward/_v2/forms/emptyform.py | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | null | null | null | src/awkward/_v2/forms/emptyform.py | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
import awkward as ak
from awkward._v2.contents.content import NestedIndexError
from awkward._v2.forms.form import Form, _parameters_equal
class EmptyForm(Form):
def __init__(self, has_i... | 27.193548 | 87 | 0.635429 | 289 | 2,529 | 5.269896 | 0.32526 | 0.068286 | 0.044649 | 0.03677 | 0.202232 | 0.202232 | 0.202232 | 0.202232 | 0.202232 | 0.202232 | 0 | 0.007065 | 0.27244 | 2,529 | 92 | 88 | 27.48913 | 0.820652 | 0.03361 | 0 | 0.318841 | 0 | 0 | 0.029075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246377 | false | 0 | 0.057971 | 0.15942 | 0.565217 | 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 |
e729cc7536cbd8618a5edbdcd21049533c431844 | 264 | py | Python | backend/apps/users/migrations/0006_merge_20210312_1745.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 3 | 2021-11-18T09:29:14.000Z | 2022-01-13T20:12:11.000Z | backend/apps/users/migrations/0006_merge_20210312_1745.py | rubberdok/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 277 | 2022-01-17T18:16:44.000Z | 2022-03-31T19:44:04.000Z | backend/apps/users/migrations/0006_merge_20210312_1745.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-12 16:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("users", "0004_auto_20210308_1940"),
("users", "0005_auto_20210310_2022"),
]
operations = []
| 18.857143 | 47 | 0.655303 | 33 | 264 | 5.060606 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228155 | 0.219697 | 264 | 13 | 48 | 20.307692 | 0.582524 | 0.170455 | 0 | 0 | 1 | 0 | 0.258065 | 0.211982 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e72c3a6038cf7a73333c7c2bd0e5237dccdf80b8 | 1,718 | py | Python | ome_seadragon_cache/cache_interface.py | lucalianas/ome_seadragon_cache | f6034cd9eb410a2a4d10a87a4f53d07cda4ae783 | [
"MIT"
] | 2 | 2019-12-03T13:47:10.000Z | 2020-05-12T12:31:29.000Z | ome_seadragon_cache/cache_interface.py | lucalianas/ome_seadragon_cache | f6034cd9eb410a2a4d10a87a4f53d07cda4ae783 | [
"MIT"
] | null | null | null | ome_seadragon_cache/cache_interface.py | lucalianas/ome_seadragon_cache | f6034cd9eb410a2a4d10a87a4f53d07cda4ae783 | [
"MIT"
] | 2 | 2016-08-29T14:55:12.000Z | 2021-02-10T12:55:23.000Z | from abc import ABCMeta, abstractmethod
class CacheInterface(object):
__metaclass__ = ABCMeta
@abstractmethod
def _get_tile_key(self, image_id, level, column, row, tile_size, image_format,
image_quality=None, rendering_engine='UNKNOWN'):
if image_quality:
image_... | 40.904762 | 101 | 0.576834 | 184 | 1,718 | 5.005435 | 0.233696 | 0.119435 | 0.130293 | 0.078176 | 0.774159 | 0.754615 | 0.744843 | 0.65038 | 0.495114 | 0.424539 | 0 | 0 | 0.337602 | 1,718 | 41 | 102 | 41.902439 | 0.809315 | 0 | 0 | 0.53125 | 0 | 0.03125 | 0.069849 | 0.043073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.03125 | 0.03125 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 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 | 3 |
e7378fec016aa187e8bf2ac192bc82e8d557637f | 221 | py | Python | LearnRegularExpressions.py | xiuwenli/midterm | 9c86953d895d39bf97e56161f53a215eb122cf4c | [
"MIT"
] | null | null | null | LearnRegularExpressions.py | xiuwenli/midterm | 9c86953d895d39bf97e56161f53a215eb122cf4c | [
"MIT"
] | null | null | null | LearnRegularExpressions.py | xiuwenli/midterm | 9c86953d895d39bf97e56161f53a215eb122cf4c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import fileinput
import re
for line in fileinput.input (['/home/xiuwenli/midterm/Homo_sapiens.GRCh37.75.gtf']):
geneline = re.findall(r'^([0-9A-Z])\s+', line)
if geneline:
print geneline
| 24.555556 | 84 | 0.678733 | 33 | 221 | 4.515152 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032086 | 0.153846 | 221 | 8 | 85 | 27.625 | 0.764706 | 0.072398 | 0 | 0 | 0 | 0 | 0.308824 | 0.240196 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e73e5cfe736283ab152205867b8f9e661a200c3b | 224 | py | Python | __init__.py | Server-Knight/antifreeloader | 7cbc62eceaed6e4f55e10107fccc53eb3e3c485d | [
"MIT"
] | null | null | null | __init__.py | Server-Knight/antifreeloader | 7cbc62eceaed6e4f55e10107fccc53eb3e3c485d | [
"MIT"
] | null | null | null | __init__.py | Server-Knight/antifreeloader | 7cbc62eceaed6e4f55e10107fccc53eb3e3c485d | [
"MIT"
] | null | null | null | from redbot.core.bot import Red
from .antifreeloader import AntiFreeloader
async def setup(bot: Red) -> None:
antifreeloader = AntiFreeloader(bot)
await antifreeloader.initialize()
bot.add_cog(antifreeloader)
| 22.4 | 42 | 0.763393 | 26 | 224 | 6.538462 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 224 | 9 | 43 | 24.888889 | 0.899471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
e76da5b64b3cc8346b1d33894152ec4476b238e1 | 7,561 | py | Python | stalkbroker/errors/_classes.py | peake100/stalkbroker-py | 95bed6e6d89dc00b183b71d5d3fce7908c554ed9 | [
"MIT"
] | null | null | null | stalkbroker/errors/_classes.py | peake100/stalkbroker-py | 95bed6e6d89dc00b183b71d5d3fce7908c554ed9 | [
"MIT"
] | 12 | 2020-04-25T22:13:57.000Z | 2020-05-24T16:24:59.000Z | stalkbroker/errors/_classes.py | peake100/stalkbroker-py | 95bed6e6d89dc00b183b71d5d3fce7908c554ed9 | [
"MIT"
] | null | null | null | import discord.ext.commands
import grpclib.exceptions
from typing import Any, Iterable
from stalkbroker import messages
class AbstractResponseError(Exception):
"""
Implementing this class (through subclassing) results in an error type that can
be raised during the processing of a command to communicate ... | 30.611336 | 88 | 0.656659 | 927 | 7,561 | 5.24164 | 0.22438 | 0.021609 | 0.01667 | 0.020375 | 0.455238 | 0.449681 | 0.403375 | 0.383618 | 0.320642 | 0.320642 | 0 | 0 | 0.261606 | 7,561 | 246 | 89 | 30.735772 | 0.870321 | 0.373496 | 0 | 0.555556 | 0 | 0 | 0.020681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268519 | false | 0 | 0.037037 | 0.157407 | 0.592593 | 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 |
e770d3d3a15099f777ae670949e434147eab165e | 61 | py | Python | list.py | IanKerschenFerrari/MyHelloWorld | d675e2c5c38f0b9ae3928b33db6ea0a47538e18c | [
"MIT"
] | null | null | null | list.py | IanKerschenFerrari/MyHelloWorld | d675e2c5c38f0b9ae3928b33db6ea0a47538e18c | [
"MIT"
] | null | null | null | list.py | IanKerschenFerrari/MyHelloWorld | d675e2c5c38f0b9ae3928b33db6ea0a47538e18c | [
"MIT"
] | null | null | null | my_list = [1, 2, 3]
my_list = ['string', 2, 3]
len(my_list) | 20.333333 | 27 | 0.57377 | 13 | 61 | 2.461538 | 0.538462 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0.196721 | 61 | 3 | 28 | 20.333333 | 0.55102 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e775d2d9fea4529e7976fdebf7a722a5fb9ba6a0 | 145 | py | Python | models.py | munisisazade/create-japronto-app | b2b9face8560a71c3cd0732a268d3cfa7fc6b290 | [
"MIT"
] | 1 | 2019-11-21T01:39:36.000Z | 2019-11-21T01:39:36.000Z | models.py | munisisazade/create-japronto-app | b2b9face8560a71c3cd0732a268d3cfa7fc6b290 | [
"MIT"
] | 1 | 2021-04-30T20:34:55.000Z | 2021-04-30T20:34:55.000Z | models.py | munisisazade/create-japronto-app | b2b9face8560a71c3cd0732a268d3cfa7fc6b290 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
class models:
@staticmethod
def CharField(max_length=255,null=False,blank=False):
pass | 16.111111 | 57 | 0.731034 | 18 | 145 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.2 | 145 | 9 | 58 | 16.111111 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e77bfeba93ef1c26927d2b3ddb758a09dd5b1cdd | 407 | py | Python | scraper/scraper/spiders/__init__.py | lufte/festejen | 75ddfcd596d24de08c9076b00ea9094a0fb10385 | [
"WTFPL"
] | 3 | 2019-09-26T17:45:23.000Z | 2019-10-08T11:20:46.000Z | scraper/scraper/spiders/__init__.py | lufte/festejen | 75ddfcd596d24de08c9076b00ea9094a0fb10385 | [
"WTFPL"
] | 1 | 2019-09-26T17:45:54.000Z | 2019-09-26T17:45:54.000Z | scraper/scraper/spiders/__init__.py | lufte/festejen | 75ddfcd596d24de08c9076b00ea9094a0fb10385 | [
"WTFPL"
] | null | null | null | # Copyright © 2019 Javier Ayres
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the LICENSE file for more details.
# This package will contain the spiders of your Scrapy project
#
# Please ... | 40.7 | 79 | 0.769042 | 70 | 407 | 4.485714 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015198 | 0.191646 | 407 | 9 | 80 | 45.222222 | 0.93617 | 0.955774 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
e784b431676a0af1c1dbfaa422fdd3954fd084cb | 426 | py | Python | problem_91.py | renxiaoyi/project_euler | 2566482209cd225fce39887fe869f839cf88330e | [
"Unlicense"
] | null | null | null | problem_91.py | renxiaoyi/project_euler | 2566482209cd225fce39887fe869f839cf88330e | [
"Unlicense"
] | null | null | null | problem_91.py | renxiaoyi/project_euler | 2566482209cd225fce39887fe869f839cf88330e | [
"Unlicense"
] | null | null | null | import itertools
ans = 0
max_coord = 51
for p1 in itertools.product(range(max_coord), range(max_coord)):
x1, y1 = p1
if x1 == y1 == 0:
continue
for p2 in itertools.product(range(max_coord), range(max_coord)):
x2, y2 = p2
if (x2 == y2 == 0) or (x1 == x2 and y1 == y2):
continue
x3, y3 = x2-x1... | 25.058824 | 70 | 0.575117 | 80 | 426 | 3 | 0.325 | 0.166667 | 0.216667 | 0.191667 | 0.366667 | 0.366667 | 0.366667 | 0.366667 | 0.366667 | 0 | 0 | 0.141479 | 0.269953 | 426 | 16 | 71 | 26.625 | 0.630225 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7b638b06e3d002cc9d4b1d4fbe89ec0670dc0d6 | 407 | py | Python | order/admin.py | oereo/Hackton_8th_test | 786bc804f07d9b3b3c1e7785e70b83c570f37450 | [
"MIT"
] | 3 | 2020-09-22T00:24:17.000Z | 2020-10-11T03:44:57.000Z | order/admin.py | oereo/Hackton_8th_test | 786bc804f07d9b3b3c1e7785e70b83c570f37450 | [
"MIT"
] | 11 | 2020-09-21T19:04:39.000Z | 2020-10-19T18:08:14.000Z | order/admin.py | oereo/Hackton_8th_test | 786bc804f07d9b3b3c1e7785e70b83c570f37450 | [
"MIT"
] | 1 | 2020-09-22T00:24:23.000Z | 2020-09-22T00:24:23.000Z | from django.contrib import admin
from .models import Order, OrderItem
from . import models
@admin.register(models.Order)
class OrderAdmin(admin.ModelAdmin):
list_display = ['user', 'created', 'updated']
@admin.register(models.OrderItem)
class OrderItemAdminn(admin.ModelAdmin):
list_display = ['order', 'produ... | 22.611111 | 82 | 0.732187 | 46 | 407 | 6.434783 | 0.478261 | 0.087838 | 0.128378 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125307 | 407 | 17 | 83 | 23.941176 | 0.831461 | 0.07371 | 0 | 0 | 0 | 0 | 0.152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
e7c5e984aab15e3d95c61c397d0733af89db6c86 | 184 | py | Python | difference_of_volumes_of_cuboids.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | difference_of_volumes_of_cuboids.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | difference_of_volumes_of_cuboids.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | #Kunal Gautam
#Codewars : @Kunalpod
#Problem name: Difference of Volumes of Cuboids
#Problem level: 8 kyu
def find_difference(a, b):
return abs((a[0]*a[1]*a[2])-(b[0]*b[1]*b[2]))
| 23 | 49 | 0.668478 | 34 | 184 | 3.588235 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 0.141304 | 184 | 7 | 50 | 26.285714 | 0.727848 | 0.532609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e7c7ed5b6388a1782d56a6014deb5eeef35a448f | 373 | py | Python | 22/00/6.py | pylangstudy/201711 | be6222dde61373f67d25a2c926868b602463c5cc | [
"CC0-1.0"
] | null | null | null | 22/00/6.py | pylangstudy/201711 | be6222dde61373f67d25a2c926868b602463c5cc | [
"CC0-1.0"
] | 2 | 2017-10-31T23:37:36.000Z | 2017-11-02T23:31:07.000Z | 22/00/6.py | pylangstudy/201711 | be6222dde61373f67d25a2c926868b602463c5cc | [
"CC0-1.0"
] | null | null | null | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--raw', type=argparse.FileType('wb', 0))
parser.add_argument('out', type=argparse.FileType('w', encoding='UTF-8'))
print(parser.parse_args(['--raw', 'raw.dat', 'file.txt']))
parser = argparse.ArgumentParser()
parser.add_argument('infile', type=arg... | 37.3 | 73 | 0.726542 | 49 | 373 | 5.428571 | 0.489796 | 0.101504 | 0.191729 | 0.255639 | 0.338346 | 0.338346 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.0563 | 373 | 9 | 74 | 41.444444 | 0.75 | 0 | 0 | 0.25 | 0 | 0 | 0.117962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e7cbd21cd3f4426d353dad1d1ff45b93c16d9b17 | 166 | py | Python | setup.py | ldocao/sompy | 62a1325383ccb27b2acc32b22c26208f625fbf57 | [
"MIT"
] | null | null | null | setup.py | ldocao/sompy | 62a1325383ccb27b2acc32b22c26208f625fbf57 | [
"MIT"
] | null | null | null | setup.py | ldocao/sompy | 62a1325383ccb27b2acc32b22c26208f625fbf57 | [
"MIT"
] | 1 | 2018-08-23T22:39:59.000Z | 2018-08-23T22:39:59.000Z | from distutils.core import setup
setup(
name="sompy",
version="2.0",
description="Self Organizing Maps Package",
author="",
packages=["SOMPY"]
)
| 16.6 | 47 | 0.638554 | 19 | 166 | 5.578947 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.210843 | 166 | 9 | 48 | 18.444444 | 0.793893 | 0 | 0 | 0 | 0 | 0 | 0.246988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99ad06757aaf9cf316ac7ccde11fc9465eed284d | 2,248 | py | Python | tests/test_img_path_utils.py | weblucas/mseg-semantic | ec3d179003bb26dd0f1336853b719319721757a4 | [
"MIT"
] | 391 | 2020-06-05T17:30:44.000Z | 2022-03-31T12:01:30.000Z | tests/test_img_path_utils.py | weblucas/mseg-semantic | ec3d179003bb26dd0f1336853b719319721757a4 | [
"MIT"
] | 27 | 2020-06-06T15:08:37.000Z | 2022-02-28T07:57:57.000Z | tests/test_img_path_utils.py | weblucas/mseg-semantic | ec3d179003bb26dd0f1336853b719319721757a4 | [
"MIT"
] | 57 | 2020-06-09T06:05:30.000Z | 2022-03-28T15:49:36.000Z | #!/usr/bin/python3
from pathlib import Path
from mseg_semantic.utils.img_path_utils import (
dump_relpath_txt,
get_unique_stem_from_last_k_strs
)
_ROOT = Path(__file__).resolve().parent
def test_dump_relpath_txt():
""" """
jpg_dir = f'{_ROOT}/test_data/test_imgs_relpaths'
txt_output_dir = f'{_ROOT}/test_data/te... | 29.973333 | 89 | 0.801157 | 386 | 2,248 | 4.046632 | 0.199482 | 0.09219 | 0.133163 | 0.174136 | 0.746479 | 0.702305 | 0.702305 | 0.685659 | 0.680538 | 0.519846 | 0 | 0.083169 | 0.096085 | 2,248 | 74 | 90 | 30.378378 | 0.685532 | 0.007562 | 0 | 0.204082 | 0 | 0 | 0.323853 | 0.312844 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.122449 | false | 0 | 0.040816 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 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 | 3 |
99b44642fe52b9c7919c46abab8e6a73f9aebfa1 | 13,718 | py | Python | tests/dbobject/test_index.py | andreypopp/Pyrseas | 5fadc91bfd1e3e430e8f53d434df18b9abea3cb0 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T09:10:47.000Z | 2015-03-16T09:10:47.000Z | tests/dbobject/test_index.py | andreypopp/Pyrseas | 5fadc91bfd1e3e430e8f53d434df18b9abea3cb0 | [
"BSD-3-Clause"
] | null | null | null | tests/dbobject/test_index.py | andreypopp/Pyrseas | 5fadc91bfd1e3e430e8f53d434df18b9abea3cb0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test indexes"""
import unittest
from pyrseas.testutils import DatabaseToMapTestCase
from pyrseas.testutils import InputMapToSqlTestCase, fix_indent
CREATE_TABLE_STMT = "CREATE TABLE t1 (c1 integer, c2 text)"
CREATE_STMT = "CREATE INDEX t1_idx ON t1 (c1)"
COMMENT_STMT = "COMMENT ON INDEX t1... | 48.473498 | 78 | 0.460125 | 1,378 | 13,718 | 4.441219 | 0.095791 | 0.035131 | 0.037582 | 0.047222 | 0.776634 | 0.743791 | 0.730719 | 0.687582 | 0.668791 | 0.647712 | 0 | 0.027179 | 0.377752 | 13,718 | 282 | 79 | 48.64539 | 0.689784 | 0.067721 | 0 | 0.562249 | 0 | 0 | 0.322006 | 0 | 0 | 0 | 0 | 0 | 0.080321 | 1 | 0.080321 | false | 0 | 0.012048 | 0 | 0.104418 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99b9bb08e1259b0628efe3185fc833f4c221c910 | 340 | py | Python | insta/migrations/0001_initial.py | Marionjames-ally/Instagram | 8d1f17df6f9d37e28885b523ffcc0fad6f6fe6e0 | [
"MIT"
] | null | null | null | insta/migrations/0001_initial.py | Marionjames-ally/Instagram | 8d1f17df6f9d37e28885b523ffcc0fad6f6fe6e0 | [
"MIT"
] | 5 | 2021-03-19T00:33:03.000Z | 2021-09-22T18:41:05.000Z | insta/migrations/0001_initial.py | Marionjames-ally/Instagram | 8d1f17df6f9d37e28885b523ffcc0fad6f6fe6e0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-08 17:42
import cloudinary.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_US... | 20 | 66 | 0.75 | 45 | 340 | 5.6 | 0.688889 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053381 | 0.173529 | 340 | 17 | 67 | 20 | 0.843416 | 0.132353 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.777778 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
99db97c57667f1e29e09100f6c35877021888a88 | 503 | py | Python | release/stubs.min/Tekla/Structures/ModelInternal_parts/ModelObjectFactory.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/ModelObjectFactory.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Tekla/Structures/ModelInternal_parts/ModelObjectFactory.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class ModelObjectFactory(object):
# no doc
@staticmethod
def GetCorrectInstance(
model, identifier, modelObjectType=None, modelObjectSubType=None
):
"""
GetCorrectInstance(model: Model,identifier: Identifier,modelObjectType: ModelObjectEnum,modelObjectSubType: int) -> ModelObjec... | 27.944444 | 130 | 0.664016 | 35 | 503 | 9.285714 | 0.571429 | 0.212308 | 0.172308 | 0.233846 | 0.295385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244533 | 503 | 17 | 131 | 29.588235 | 0.855263 | 0.411531 | 0 | 0 | 0 | 0 | 0.116981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
99df5f571ca4c160faca128ab0ec264717308cf3 | 547 | py | Python | qespresso/xsdtypes/__init__.py | QEF/qexsd | 2abe9d979023f802bf9551ee96097b01a5739074 | [
"MIT"
] | 4 | 2017-01-20T20:07:56.000Z | 2018-10-20T16:11:50.000Z | qespresso/xsdtypes/__init__.py | QEF/qexsd | 2abe9d979023f802bf9551ee96097b01a5739074 | [
"MIT"
] | 8 | 2017-03-23T08:03:43.000Z | 2018-03-05T21:22:09.000Z | qespresso/xsdtypes/__init__.py | QEF/qexsd | 2abe9d979023f802bf9551ee96097b01a5739074 | [
"MIT"
] | 3 | 2017-03-22T19:30:06.000Z | 2019-11-04T08:02:19.000Z | #!/usr/bin/env python
#
# Copyright (c), 2015-2016, Quantum Espresso Foundation and SISSA (Scuola
# Internazionale Superiore di Studi Avanzati). All rights reserved.
# This file is distributed under the terms of the MIT License. See the
# file 'LICENSE' in the root directory of the present distribution, or
# http://ope... | 36.466667 | 73 | 0.784278 | 78 | 547 | 5.435897 | 0.717949 | 0.023585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016985 | 0.13894 | 547 | 14 | 74 | 39.071429 | 0.883227 | 0.650823 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
99f097e979ef5957aa04e6adaf415c276aae1057 | 51,012 | py | Python | trade.py | foxwhite25/hades | 5e8e1e222b63055dfdbdba72d9ccb6b81e11c143 | [
"MIT"
] | null | null | null | trade.py | foxwhite25/hades | 5e8e1e222b63055dfdbdba72d9ccb6b81e11c143 | [
"MIT"
] | null | null | null | trade.py | foxwhite25/hades | 5e8e1e222b63055dfdbdba72d9ccb6b81e11c143 | [
"MIT"
] | null | null | null | import datetime
import hoshino
import sqlite3
import os
from hoshino import Service, priv, util, R, HoshinoBot
import math
sv = Service('hades', enable_on_default=True, help_="无")
DB_PATH = os.path.expanduser("~/.hoshino/rate.db")
debug_mode = False
base64 = '''iVBORw0KGgoAAAANSUhEUgAAAjEAAAERCAIAAAAFSWEIAAAgAElEQVR... | 53.640379 | 22,511 | 0.673351 | 4,327 | 51,012 | 7.906402 | 0.263 | 0.011692 | 0.017538 | 0.020461 | 0.194762 | 0.181901 | 0.170355 | 0.157552 | 0.136243 | 0.126772 | 0 | 0.106095 | 0.235788 | 51,012 | 950 | 22,512 | 53.696842 | 0.771291 | 0.00051 | 0 | 0.498884 | 0 | 0.007813 | 0.525479 | 0.46087 | 0 | 1 | 0 | 0 | 0 | 1 | 0.039063 | false | 0.002232 | 0.006696 | 0.002232 | 0.142857 | 0.00558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99f0f0d6ecd15d223bd71852d0e67704a6655044 | 144 | py | Python | achievements/settings.py | kaduuuken/achievementsystem | 40ae93193c5f4b6968161d94eeda56455ec700e4 | [
"BSD-2-Clause"
] | 1 | 2017-01-30T13:38:48.000Z | 2017-01-30T13:38:48.000Z | achievements/settings.py | kaduuuken/achievementsystem | 40ae93193c5f4b6968161d94eeda56455ec700e4 | [
"BSD-2-Clause"
] | null | null | null | achievements/settings.py | kaduuuken/achievementsystem | 40ae93193c5f4b6968161d94eeda56455ec700e4 | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
# Defines the number of available trophy slots
TROPHY_COUNT = getattr(settings, 'ACHIEVEMENT_TROPHY_COUNT', 5) | 36 | 63 | 0.819444 | 20 | 144 | 5.75 | 0.8 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.118056 | 144 | 4 | 63 | 36 | 0.897638 | 0.305556 | 0 | 0 | 0 | 0 | 0.242424 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
820d13b71145ebe2e0379bcd4d9cffcbe043b72a | 386 | pyw | Python | main.pyw | javi20gu/search_devices | 38d562687aa61e423f939a29d02a0cb10184fed2 | [
"Apache-2.0"
] | 1 | 2019-04-02T11:33:54.000Z | 2019-04-02T11:33:54.000Z | main.pyw | javi20gu/search_devices | 38d562687aa61e423f939a29d02a0cb10184fed2 | [
"Apache-2.0"
] | null | null | null | main.pyw | javi20gu/search_devices | 38d562687aa61e423f939a29d02a0cb10184fed2 | [
"Apache-2.0"
] | null | null | null | from PySide2.QtWidgets import QApplication, QMainWindow
from sys import argv, exit
from ui.ventana_principal.ventana_principal_ui import VentanaPrincipal
from db.db import Db
if __name__ == "__main__":
Db().create_table()
run_app: QApplication = QApplication(argv)
ventana_principal: QMainWindow = VentanaP... | 29.692308 | 70 | 0.774611 | 47 | 386 | 6 | 0.489362 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.142487 | 386 | 12 | 71 | 32.166667 | 0.848943 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8217e92d4be37135bc4bda4c680fa4ec1a51ee5d | 195 | py | Python | PortManager.py | sujaytalesara/Distributed-File-Server | 91097b35ba418cfca473449bc85584cfe455a8fc | [
"MIT"
] | 2 | 2018-11-12T20:19:08.000Z | 2021-04-25T17:26:19.000Z | PortManager.py | sujaytalesara/Distributed-File-Server | 91097b35ba418cfca473449bc85584cfe455a8fc | [
"MIT"
] | 1 | 2021-03-08T02:31:16.000Z | 2021-04-26T01:01:56.000Z | PortManager.py | sujaytalesara/Distributed-File-System | 91097b35ba418cfca473449bc85584cfe455a8fc | [
"MIT"
] | null | null | null | import web
class changePort(web.application):
def run(self,port=8080,*middleware):
func = self.wsgifunc(*middleware)
return web.httpserver.runsimple(func, ('0.0.0.0',port))
| 24.375 | 63 | 0.676923 | 26 | 195 | 5.076923 | 0.653846 | 0.045455 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049689 | 0.174359 | 195 | 7 | 64 | 27.857143 | 0.770186 | 0 | 0 | 0 | 0 | 0 | 0.035897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
82185ded074d60b59040ef49c138e75a0b41e468 | 390 | py | Python | frontend/src/gbuilder/Wireless/ClientAPI.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | null | null | null | frontend/src/gbuilder/Wireless/ClientAPI.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | null | null | null | frontend/src/gbuilder/Wireless/ClientAPI.py | anrl/gini4 | d26649c8c02a1737159e48732cf1ee15ba2a604d | [
"MIT"
] | null | null | null | import xmlrpclib
class WGINI_Client:
def __init__(self, ServerIP, ServerPort, ClientIP):
self.conn = xmlrpclib.ServerProxy("http://" + ServerIP + ":" + str(ServerPort))
self.ClientIP = ClientIP
def Check(self):
return self.conn.Check()
def Create(self, XMLstring):
return self.conn.Create(XMLstring, self.C... | 24.375 | 81 | 0.730769 | 49 | 390 | 5.714286 | 0.408163 | 0.114286 | 0.15 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135897 | 390 | 15 | 82 | 26 | 0.830861 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.818182 | 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 |
821c5e4b2879fdf68fee3b3beb29ace61c893ca4 | 106 | py | Python | Leetcode Biweekly 29/D.py | Louis-Navarro/CP | 95c66354f272502612f3926afeb4020273b379b6 | [
"MIT"
] | null | null | null | Leetcode Biweekly 29/D.py | Louis-Navarro/CP | 95c66354f272502612f3926afeb4020273b379b6 | [
"MIT"
] | null | null | null | Leetcode Biweekly 29/D.py | Louis-Navarro/CP | 95c66354f272502612f3926afeb4020273b379b6 | [
"MIT"
] | null | null | null | class Solution:
def minNumberOfSemesters(self, n: int, dependencies: List[List[int]], k: int) -> int:
| 35.333333 | 89 | 0.698113 | 14 | 106 | 5.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 106 | 2 | 90 | 53 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
823fc98f1c8627b378028301f4c4a1ff9be67ec7 | 264 | py | Python | packages/structural_dhcp_rst2pdf-aquavitae/structural_dhcp_rst2pdf/extensions/__init__.py | amakropoulos/structural-pipeline-measures | 70e22f9ad94cc57e72e510576cfc3129da83f7fc | [
"Apache-2.0"
] | 2 | 2017-09-11T15:25:14.000Z | 2019-09-27T17:08:31.000Z | packages/structural_dhcp_rst2pdf-aquavitae/structural_dhcp_rst2pdf/extensions/__init__.py | amakropoulos/structural-pipeline-measures | 70e22f9ad94cc57e72e510576cfc3129da83f7fc | [
"Apache-2.0"
] | 6 | 2019-08-22T06:29:45.000Z | 2021-09-19T18:59:46.000Z | packages/structural_dhcp_rst2pdf-aquavitae/structural_dhcp_rst2pdf/extensions/__init__.py | amakropoulos/structural-pipeline-measures | 70e22f9ad94cc57e72e510576cfc3129da83f7fc | [
"Apache-2.0"
] | 1 | 2018-02-12T14:38:33.000Z | 2018-02-12T14:38:33.000Z | '''
This place-holder module makes the extensions directory
into a Python "package", so that external user-specific
modules can act as umbrella modules, and, for example:
import structural_dhcp_rst2pdf.extensions.vectorpdf_r2p
to bring in the PDF extension.
'''
| 26.4 | 55 | 0.799242 | 39 | 264 | 5.333333 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.136364 | 264 | 9 | 56 | 29.333333 | 0.903509 | 0.965909 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
824051b1d1a271b0fecba72d5c8994b408493980 | 207 | py | Python | core/constants.py | anonipro999/roblox-claimable-group-finder | 725485f08b2d45474c14e023696db44d8b2cd2bb | [
"MIT"
] | null | null | null | core/constants.py | anonipro999/roblox-claimable-group-finder | 725485f08b2d45474c14e023696db44d8b2cd2bb | [
"MIT"
] | null | null | null | core/constants.py | anonipro999/roblox-claimable-group-finder | 725485f08b2d45474c14e023696db44d8b2cd2bb | [
"MIT"
] | null | null | null | EMBED_FOOTER_TEXT = "Create by Fらんdy#6057"
DEFAULT_ID_SLACK = 100000
DEFAULT_RANGES = (
(1, 1250000),
(2520000, 7960000),
(8000000, 9930000),
(9960000, 10760000),
(10790000, 12340000)
)
| 18.818182 | 42 | 0.661836 | 23 | 207 | 5.73913 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.469512 | 0.207729 | 207 | 10 | 43 | 20.7 | 0.335366 | 0 | 0 | 0 | 0 | 0 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82433406e0196cc3e3b22bec106bf6eec83f08c8 | 166 | py | Python | v2.0/app.py | ashwindasr/Anime-Tracker | 6ca47dd1b271bd25563dee80ee088feef690eab4 | [
"MIT"
] | 3 | 2020-05-22T06:27:41.000Z | 2021-02-28T14:54:05.000Z | v2.0/app.py | ashwindasr/Anime-Tracker | 6ca47dd1b271bd25563dee80ee088feef690eab4 | [
"MIT"
] | null | null | null | v2.0/app.py | ashwindasr/Anime-Tracker | 6ca47dd1b271bd25563dee80ee088feef690eab4 | [
"MIT"
] | 1 | 2020-05-25T12:32:09.000Z | 2020-05-25T12:32:09.000Z | from flask import Flask
app = Flask(__name__)
app.config['SECRET_KEY'] = "your-secret-key"
from routes import *
if __name__ == '__main__':
app.run(debug=True)
| 16.6 | 44 | 0.704819 | 24 | 166 | 4.333333 | 0.625 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 166 | 9 | 45 | 18.444444 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.198795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
4164e11dc4ea4ffd84a3dd087dfb4f62c166332a | 73 | py | Python | domain/Player.py | alvarobasia/jogo-do-lobo-e-das-ovelhas-minimax | 589ebc6f83832cb3e82446680cc61ae852311b60 | [
"MIT"
] | null | null | null | domain/Player.py | alvarobasia/jogo-do-lobo-e-das-ovelhas-minimax | 589ebc6f83832cb3e82446680cc61ae852311b60 | [
"MIT"
] | null | null | null | domain/Player.py | alvarobasia/jogo-do-lobo-e-das-ovelhas-minimax | 589ebc6f83832cb3e82446680cc61ae852311b60 | [
"MIT"
] | null | null | null | from enum import Enum
class Player(Enum):
SHEEP = 0,
WOLF = 1,
| 10.428571 | 21 | 0.60274 | 11 | 73 | 4 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.30137 | 73 | 6 | 22 | 12.166667 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
4177e234344ea4299aec906c8400d6757776cb71 | 314 | py | Python | live.py | sixhobbits/nix.dev | 0bd8a0b02f0e509392f019613b88d1674817c6b7 | [
"CC0-1.0"
] | null | null | null | live.py | sixhobbits/nix.dev | 0bd8a0b02f0e509392f019613b88d1674817c6b7 | [
"CC0-1.0"
] | 44 | 2020-06-14T08:06:45.000Z | 2022-03-28T00:01:39.000Z | live.py | sixhobbits/nix.dev | 0bd8a0b02f0e509392f019613b88d1674817c6b7 | [
"CC0-1.0"
] | null | null | null | from livereload import Server, shell
server = Server()
build_docs = shell("make html")
print("Doing an initial build of the docs...")
build_docs()
server.watch("source/*.rst", build_docs)
server.watch("_templates/*.html", build_docs)
server.watch("source/**/*.rst", build_docs)
server.serve(root="build/html")
| 22.428571 | 46 | 0.726115 | 45 | 314 | 4.933333 | 0.466667 | 0.202703 | 0.27027 | 0.27027 | 0.396396 | 0.396396 | 0.396396 | 0.396396 | 0.396396 | 0 | 0 | 0 | 0.098726 | 314 | 13 | 47 | 24.153846 | 0.784452 | 0 | 0 | 0 | 0 | 0 | 0.318471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
418c9362b0ef0981b11f077b4ac4a0e5046f44ce | 250 | py | Python | BFAIR/pathways/__init__.py | biosustain/AnalyticsTools | 11eca81f0a504766cb68d4f77b688b41bd258650 | [
"MIT"
] | 1 | 2021-01-18T17:23:23.000Z | 2021-01-18T17:23:23.000Z | BFAIR/pathways/__init__.py | biosustain/AnalyticsTools | 11eca81f0a504766cb68d4f77b688b41bd258650 | [
"MIT"
] | 2 | 2021-03-17T03:23:14.000Z | 2021-04-09T14:04:29.000Z | BFAIR/pathways/__init__.py | biosustain/AnalyticsTools | 11eca81f0a504766cb68d4f77b688b41bd258650 | [
"MIT"
] | 17 | 2021-01-05T23:46:59.000Z | 2021-09-16T08:26:13.000Z | """Pathways.
The pathways module offers tools to assess off-target enzymatic activity in heterologous pathways.
"""
__all__ = ["RuleLibrary", "plot_pathway"]
from BFAIR.pathways.rules import RuleLibrary
from BFAIR.pathways.viz import plot_pathway
| 25 | 98 | 0.796 | 32 | 250 | 6.03125 | 0.6875 | 0.11399 | 0.176166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 250 | 9 | 99 | 27.777778 | 0.877273 | 0.436 | 0 | 0 | 0 | 0 | 0.171642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
41a08045548738e789818bfe1e3bebf9b8805bd6 | 2,768 | py | Python | pypad/dungeon/floor_modifier/__init__.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/dungeon/floor_modifier/__init__.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/dungeon/floor_modifier/__init__.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | from collections import defaultdict
from ...dev import Dev
class FloorModifier:
@classmethod
def handles(cls, name):
return False
def __init__(self, name, value):
self.name = name
self.value = value
self.parse_value()
def parse_value(self):
pass
def to_jso... | 33.349398 | 98 | 0.718569 | 346 | 2,768 | 5.473988 | 0.352601 | 0.088701 | 0.036431 | 0.047518 | 0.085533 | 0.030623 | 0.030623 | 0 | 0 | 0 | 0 | 0.001379 | 0.213873 | 2,768 | 82 | 99 | 33.756098 | 0.869026 | 0.028179 | 0 | 0.102941 | 0 | 0 | 0.067336 | 0.010045 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.132353 | false | 0.014706 | 0.338235 | 0.058824 | 0.661765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
41b8e898035d91ec18d4bb965226a73a5c586d98 | 1,237 | py | Python | tests/test_add_images.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 64 | 2020-03-18T12:11:22.000Z | 2022-03-31T08:19:18.000Z | tests/test_add_images.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 148 | 2020-05-14T06:14:11.000Z | 2022-03-26T15:02:31.000Z | tests/test_add_images.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 16 | 2020-05-31T00:53:44.000Z | 2022-03-23T13:20:57.000Z | import pyclesperanto_prototype as cle
import numpy as np
input1 = np.asarray([[1, 2, 3]])
input2 = np.asarray([[4, 5, 6]])
def test_add_images_weighted_missing_params():
reference = np.asarray([[5, 7, 9]])
output = cle.add_images_weighted(input1, input2)
result = cle.pull(output)
assert np.array_eq... | 28.767442 | 80 | 0.731609 | 179 | 1,237 | 4.804469 | 0.223464 | 0.104651 | 0.197674 | 0.093023 | 0.847674 | 0.740698 | 0.687209 | 0.598837 | 0.45 | 0.45 | 0 | 0.042816 | 0.150364 | 1,237 | 42 | 81 | 29.452381 | 0.775452 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.185185 | false | 0 | 0.074074 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41b98f467c0b617eb306d35cfa175ad647e02e01 | 1,629 | py | Python | Aula1a17/Aula_12.py | paiva-rodrigo/PythonScripts | 6c867630878f6832dce38cd86cd1c51dcdc09889 | [
"MIT"
] | null | null | null | Aula1a17/Aula_12.py | paiva-rodrigo/PythonScripts | 6c867630878f6832dce38cd86cd1c51dcdc09889 | [
"MIT"
] | null | null | null | Aula1a17/Aula_12.py | paiva-rodrigo/PythonScripts | 6c867630878f6832dce38cd86cd1c51dcdc09889 | [
"MIT"
] | null | null | null | #se pode declarar uma lista de tres formas diferentes sendo elas as seguintes
import random
#()dupla []lista {}dicionario
#lista=('hamburguer', 'suco', 'pizza','batata frita')
#voce so consegue somente atribuir valores as truplas na sua declaração
#print(lista[:3])
#for comida in lista:
# print(comida)
#print('com... | 30.166667 | 122 | 0.645181 | 277 | 1,629 | 3.794224 | 0.454874 | 0.023787 | 0.066603 | 0.080875 | 0.160799 | 0.130352 | 0.130352 | 0.080875 | 0.080875 | 0.080875 | 0 | 0.038433 | 0.169429 | 1,629 | 53 | 123 | 30.735849 | 0.738359 | 0.930018 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
41be73bd1d3e4c29bc793c5ae80b2f326f8b31d1 | 474 | py | Python | Django/data/serializers.py | MCDeu/EMB | fe73199d32d0f4e8c8840aaa938e039b98927419 | [
"CC-BY-4.0"
] | null | null | null | Django/data/serializers.py | MCDeu/EMB | fe73199d32d0f4e8c8840aaa938e039b98927419 | [
"CC-BY-4.0"
] | null | null | null | Django/data/serializers.py | MCDeu/EMB | fe73199d32d0f4e8c8840aaa938e039b98927419 | [
"CC-BY-4.0"
] | null | null | null | from rest_framework import serializers
from .models import Data, Arduino
class ArduinoSerializer(serializers.ModelSerializer):
class Meta:
fields = ('id_station', 'model_arduino', 'country', 'region', 'owner', 'coordinates')
model = Arduino
class DataSerializer(serializers.ModelSerializer):
... | 31.6 | 119 | 0.689873 | 48 | 474 | 6.666667 | 0.625 | 0.075 | 0.19375 | 0.21875 | 0.3125 | 0.3125 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0.183544 | 474 | 14 | 120 | 33.857143 | 0.826873 | 0 | 0 | 0.2 | 0 | 0 | 0.255274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
68bf801f2576a94332a054722545ac2a7054c0d3 | 269 | py | Python | Professional/95/forms.py | Matthew1906/100DaysOfPython | 94ffff8f5535ce5d574f49c0d7971d64a4575aad | [
"MIT"
] | 1 | 2021-12-25T02:19:18.000Z | 2021-12-25T02:19:18.000Z | Professional/95/forms.py | Matthew1906/100DaysOfPython | 94ffff8f5535ce5d574f49c0d7971d64a4575aad | [
"MIT"
] | null | null | null | Professional/95/forms.py | Matthew1906/100DaysOfPython | 94ffff8f5535ce5d574f49c0d7971d64a4575aad | [
"MIT"
] | 1 | 2021-11-25T10:31:47.000Z | 2021-11-25T10:31:47.000Z | from flask_wtf import FlaskForm
from wtforms.fields import StringField, SubmitField
from wtforms.validators import DataRequired
class WordSearchForm(FlaskForm):
keyword = StringField('Word to Search', validators=[DataRequired()])
submit = SubmitField('Search') | 38.428571 | 72 | 0.799257 | 29 | 269 | 7.37931 | 0.62069 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118959 | 269 | 7 | 73 | 38.428571 | 0.902954 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 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 |
68d9aaa1135990a81694d9466f0990350e4993cc | 614 | py | Python | localhttps/keychain/macos.py | Tarik02/localhttps | 5c0e375b379a9ed2ec6129b7fd7930a5f2404c0e | [
"MIT"
] | 2 | 2022-01-20T15:35:37.000Z | 2022-02-04T09:05:20.000Z | localhttps/keychain/macos.py | Tarik02/localhttps | 5c0e375b379a9ed2ec6129b7fd7930a5f2404c0e | [
"MIT"
] | null | null | null | localhttps/keychain/macos.py | Tarik02/localhttps | 5c0e375b379a9ed2ec6129b7fd7930a5f2404c0e | [
"MIT"
] | null | null | null | from typing import AsyncIterable, List
from localhttps.cert.ca import CertificationAuthority
from localhttps.keychain.abc import AbstractKeychain
from localhttps.cmd import Cmd
from localhttps.utils.cli import ask_to_run_command
class MacOSKeychain(AbstractKeychain):
async def databases(self) -> AsyncIterable[st... | 40.933333 | 154 | 0.785016 | 80 | 614 | 5.925 | 0.5625 | 0.118143 | 0.033755 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127036 | 614 | 14 | 155 | 43.857143 | 0.884328 | 0 | 0 | 0 | 0 | 0.1 | 0.245928 | 0.149837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ec0b0d09cf9e0b8f8d7a750c5a782c72119bb311 | 76 | py | Python | po_localization/__init__.py | movermeyer/po-localization | 0e17052d955d9a7eb304465dad8b2566feaf019e | [
"MIT"
] | 1 | 2019-11-10T19:34:27.000Z | 2019-11-10T19:34:27.000Z | po_localization/__init__.py | movermeyer/po-localization | 0e17052d955d9a7eb304465dad8b2566feaf019e | [
"MIT"
] | null | null | null | po_localization/__init__.py | movermeyer/po-localization | 0e17052d955d9a7eb304465dad8b2566feaf019e | [
"MIT"
] | 1 | 2018-03-05T01:08:54.000Z | 2018-03-05T01:08:54.000Z | # coding=utf-8
from .version import __version__
__all__ = ["__version__"]
| 12.666667 | 32 | 0.736842 | 9 | 76 | 4.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.144737 | 76 | 5 | 33 | 15.2 | 0.661538 | 0.157895 | 0 | 0 | 0 | 0 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
ec1577cf4e479d61ad8f186dd42e3017100361e2 | 467 | py | Python | data_sets/models.py | label-quest/backend | ff2ae40abeee3d85c2379fea71056cb857c0197b | [
"MIT"
] | null | null | null | data_sets/models.py | label-quest/backend | ff2ae40abeee3d85c2379fea71056cb857c0197b | [
"MIT"
] | 11 | 2018-11-22T12:03:55.000Z | 2019-01-24T13:30:38.000Z | data_sets/models.py | label-quest/backend | ff2ae40abeee3d85c2379fea71056cb857c0197b | [
"MIT"
] | null | null | null | import sys
sys.path.append("..")
from django.db import models
from customers.models import Customer
from rest_framework import serializers
class DataSet(models.Model):
name = models.CharField(max_length=256)
description = models.CharField(max_length=4096)
folder_path = models.CharField(max_length=4096)
... | 27.470588 | 68 | 0.751606 | 60 | 467 | 5.683333 | 0.566667 | 0.131965 | 0.158358 | 0.211144 | 0.164223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027848 | 0.154176 | 467 | 16 | 69 | 29.1875 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.004283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0.076923 | 0.923077 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
ec41d20330812920d7fc066b13825ceaf4884683 | 343 | py | Python | Basic Question Bank/a005/a005.py | michael21910/zerojudge | 6f4375413619ad2f5e2bb492d6d6f2024921e0d7 | [
"MIT"
] | 2 | 2021-09-20T05:59:18.000Z | 2021-12-04T05:22:22.000Z | Basic Question Bank/a005/a005.py | michael21910/zerojudge | 6f4375413619ad2f5e2bb492d6d6f2024921e0d7 | [
"MIT"
] | null | null | null | Basic Question Bank/a005/a005.py | michael21910/zerojudge | 6f4375413619ad2f5e2bb492d6d6f2024921e0d7 | [
"MIT"
] | null | null | null | cases = int(input())
for i in range(0, cases):
num_list = [eval(x) for x in input().split(' ')]
for num in num_list:
print(num, end=" ")
if(num_list[2] + num_list[1] - num_list[0] == num_list[3]):
print(num_list[3] + num_list[1] - num_list[0])
else:
print(int(num_list[3] * (num_l... | 38.111111 | 63 | 0.568513 | 61 | 343 | 3 | 0.327869 | 0.459016 | 0.131148 | 0.180328 | 0.349727 | 0.349727 | 0.262295 | 0.262295 | 0.262295 | 0 | 0 | 0.041825 | 0.233236 | 343 | 9 | 64 | 38.111111 | 0.653992 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
ec4a9189473d0997b2d753d9b462807a6269988e | 3,228 | py | Python | ebl/transliteration/domain/signs_transformer.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 4 | 2020-04-12T14:24:51.000Z | 2020-10-15T15:48:15.000Z | ebl/transliteration/domain/signs_transformer.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 200 | 2019-12-04T09:53:20.000Z | 2022-03-30T20:11:31.000Z | ebl/transliteration/domain/signs_transformer.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 1 | 2021-09-06T16:22:39.000Z | 2021-09-06T16:22:39.000Z | from lark.visitors import Transformer, v_args
from ebl.transliteration.domain import atf
from ebl.transliteration.domain.atf import sub_index_to_int
from ebl.transliteration.domain.egyptian_metrical_feet_separator_token import (
EgyptianMetricalFeetSeparator,
)
from ebl.transliteration.domain.sign_tokens import (
... | 34.709677 | 88 | 0.73575 | 431 | 3,228 | 5.171694 | 0.150812 | 0.048452 | 0.072678 | 0.10498 | 0.536115 | 0.479139 | 0.419919 | 0.419919 | 0.40646 | 0.264244 | 0 | 0 | 0.169455 | 3,228 | 92 | 89 | 35.086957 | 0.831406 | 0 | 0 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.111111 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec5065e2a43672fef3c99a05e0f56dbf9b05d8b2 | 34 | py | Python | addons/owncloud/settings/defaults.py | listinc/osf.io | b9a0357f3e9b6e905b732e750a16e9452c459d78 | [
"Apache-2.0"
] | 1 | 2019-12-23T04:30:20.000Z | 2019-12-23T04:30:20.000Z | addons/owncloud/settings/defaults.py | listinc/osf.io | b9a0357f3e9b6e905b732e750a16e9452c459d78 | [
"Apache-2.0"
] | 20 | 2020-03-24T16:48:03.000Z | 2022-03-08T22:38:38.000Z | addons/owncloud/settings/defaults.py | listinc/osf.io | b9a0357f3e9b6e905b732e750a16e9452c459d78 | [
"Apache-2.0"
] | 1 | 2021-10-04T21:16:56.000Z | 2021-10-04T21:16:56.000Z | DEFAULT_HOSTS = []
USE_SSL = True
| 11.333333 | 18 | 0.705882 | 5 | 34 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 34 | 2 | 19 | 17 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
6b607e16c7eaa1f2f246e26335f67bacfbe3cea4 | 78 | py | Python | scannet_kekas/callbacks/__init__.py | roma-goodok/scannet_experiments | 8039fade13f9bd5664633f6a567f6785a5f9e3d2 | [
"MIT"
] | 49 | 2019-03-31T21:20:27.000Z | 2021-06-30T18:46:58.000Z | scannet_kekas/callbacks/__init__.py | roma-goodok/scannet_experiments | 8039fade13f9bd5664633f6a567f6785a5f9e3d2 | [
"MIT"
] | 6 | 2019-04-17T16:01:05.000Z | 2020-11-10T09:22:10.000Z | scannet_kekas/callbacks/__init__.py | roma-goodok/scannet_experiments | 8039fade13f9bd5664633f6a567f6785a5f9e3d2 | [
"MIT"
] | 5 | 2019-04-01T10:46:29.000Z | 2021-01-03T05:18:08.000Z | from .csv_logger import CSVLoggerIouByClass
__all__ = ['CSVLoggerIouByClass']
| 26 | 43 | 0.833333 | 7 | 78 | 8.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 78 | 2 | 44 | 39 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
6b7f2537d647a233df0c83c8b2fe4fd823e7f7c7 | 113 | py | Python | physicspy/quantum/__init__.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | physicspy/quantum/__init__.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | physicspy/quantum/__init__.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | #
# Quantum mechanics functions
#
from atomic import *
__all__ = filter(lambda s:not s.startswith('_'),dir())
| 14.125 | 54 | 0.699115 | 14 | 113 | 5.285714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159292 | 113 | 7 | 55 | 16.142857 | 0.778947 | 0.238938 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
6b9f2589caef43b08c37ab30cbf6c53595624266 | 212 | py | Python | DST/datasets/tests/test_CleanData.py | DunZhang/DomainSpecificThesaurus | 539dcdbe618ade1864e56423667f28afb800e1e1 | [
"MIT"
] | 13 | 2019-02-21T23:16:55.000Z | 2022-03-03T16:27:24.000Z | DST/datasets/tests/test_CleanData.py | DunZhang/DomainSpecificThesaurus | 539dcdbe618ade1864e56423667f28afb800e1e1 | [
"MIT"
] | 3 | 2021-04-28T11:49:20.000Z | 2022-02-25T17:31:06.000Z | build/lib/DST/datasets/tests/test_CleanData.py | DunZhang/DomainSpecificThesaurus | 539dcdbe618ade1864e56423667f28afb800e1e1 | [
"MIT"
] | 6 | 2019-02-23T16:01:36.000Z | 2021-09-05T10:27:54.000Z | import pytest
from os.path import dirname
import sys
sys.path.append(dirname(dirname(__file__)))
from CleanData import CleanDataWiki
def test_wrong_wiki_path():
cdw = CleanDataWiki("","")
cdw.tranform() | 21.2 | 43 | 0.759434 | 28 | 212 | 5.5 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 212 | 10 | 44 | 21.2 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6bf329920ac918bddb8e916fa6783a39fc64dfde | 2,018 | py | Python | test/test_grid.py | revesansparole/oacontainer | 066a15b8b1b22f857bf25ed443c5f39f4cbefb3e | [
"MIT"
] | null | null | null | test/test_grid.py | revesansparole/oacontainer | 066a15b8b1b22f857bf25ed443c5f39f4cbefb3e | [
"MIT"
] | null | null | null | test/test_grid.py | revesansparole/oacontainer | 066a15b8b1b22f857bf25ed443c5f39f4cbefb3e | [
"MIT"
] | null | null | null | from nose.tools import assert_raises
from openalea.container.grid import Grid
def test_grid_can_be_empty():
g = Grid(())
assert len(g) == 0
assert g.dim() == 0
assert tuple(g.shape()) == ()
def test_grid_can_have_a_single_cell():
shape = ()
for i in range(10):
shape = shape + (1,)
... | 28.027778 | 65 | 0.611992 | 329 | 2,018 | 3.56535 | 0.182371 | 0.122762 | 0.206309 | 0.262575 | 0.554135 | 0.453538 | 0.314578 | 0.189258 | 0 | 0 | 0 | 0.046865 | 0.217542 | 2,018 | 71 | 66 | 28.422535 | 0.69601 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.566038 | 1 | 0.150943 | false | 0 | 0.037736 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d412a903b9429b86794a0059f3611145f0b89c04 | 91 | py | Python | khatynka/apps.py | Dsibe/abtco | 7a1782303aedd77a0ecc50347a5d141945e3dd2f | [
"MIT"
] | null | null | null | khatynka/apps.py | Dsibe/abtco | 7a1782303aedd77a0ecc50347a5d141945e3dd2f | [
"MIT"
] | 17 | 2019-11-19T12:23:57.000Z | 2021-11-05T20:56:09.000Z | khatynka/apps.py | Dsibe/abtco | 7a1782303aedd77a0ecc50347a5d141945e3dd2f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class KhatynkaConfig(AppConfig):
name = 'khatynka'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 |
d450ed226727e675138fe82414fb279f5d2918a8 | 319 | py | Python | cpdb/popup/models/popup.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/popup/models/popup.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/popup/models/popup.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.db import models
from data.models.common import TimeStampsModel
class Popup(TimeStampsModel):
name = models.CharField(max_length=64)
page = models.CharField(max_length=32)
title = models.CharField(max_length=255)
text = models.TextField()
def __str__(self):
return self.name
| 22.785714 | 46 | 0.727273 | 41 | 319 | 5.487805 | 0.609756 | 0.2 | 0.24 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02682 | 0.181818 | 319 | 13 | 47 | 24.538462 | 0.835249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
d471c804af4721d3787a8b888752cd4fb874662d | 466 | py | Python | unsigned_bot/utility/price_util.py | marsmanXmachina/unsigned-bot | afd53bb12e932a1e867b2034831ab6b07875bed4 | [
"Apache-2.0"
] | null | null | null | unsigned_bot/utility/price_util.py | marsmanXmachina/unsigned-bot | afd53bb12e932a1e867b2034831ab6b07875bed4 | [
"Apache-2.0"
] | null | null | null | unsigned_bot/utility/price_util.py | marsmanXmachina/unsigned-bot | afd53bb12e932a1e867b2034831ab6b07875bed4 | [
"Apache-2.0"
] | null | null | null | """
Utility functions for handling price data
"""
def get_min_prices(assets: list) -> list:
min_price = min([asset.get("price") for asset in assets])
return [asset for asset in assets if asset.get("price") == min_price]
def get_average_price(assets: list) -> float:
num_assets = len(assets)
return sum... | 33.285714 | 73 | 0.703863 | 72 | 466 | 4.402778 | 0.319444 | 0.113565 | 0.123028 | 0.15142 | 0.182965 | 0.182965 | 0.182965 | 0 | 0 | 0 | 0 | 0.002591 | 0.171674 | 466 | 14 | 74 | 33.285714 | 0.818653 | 0.087983 | 0 | 0 | 0 | 0 | 0.035885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d48b585e373a32b711e2313e4581b000b4b42ad3 | 151 | py | Python | ancap_bot/exceptions.py | Erogue-Lord/ancap-bot | cb2424627e27225a8e2396eaa465236d4e7b24bb | [
"MIT"
] | 1 | 2020-08-17T17:09:05.000Z | 2020-08-17T17:09:05.000Z | ancap_bot/exceptions.py | Erogue-Lord/ancap-bot | cb2424627e27225a8e2396eaa465236d4e7b24bb | [
"MIT"
] | null | null | null | ancap_bot/exceptions.py | Erogue-Lord/ancap-bot | cb2424627e27225a8e2396eaa465236d4e7b24bb | [
"MIT"
] | null | null | null | class AncapBotError(Exception):
pass
class InsufficientFundsError(AncapBotError):
pass
class NonexistentUserError(AncapBotError):
pass
| 13.727273 | 44 | 0.774834 | 12 | 151 | 9.75 | 0.5 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165563 | 151 | 10 | 45 | 15.1 | 0.928571 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2e34b31b6c7c9f5dc71f13e0ff40646a131b2d27 | 225 | py | Python | maintenance_calendar/parser/json/json_calendar_collection_parser.py | Fiware/ops.Maintenance-calendar | 636244f70e03ba45c943b68b847cad16ce3b66c8 | [
"Apache-2.0"
] | null | null | null | maintenance_calendar/parser/json/json_calendar_collection_parser.py | Fiware/ops.Maintenance-calendar | 636244f70e03ba45c943b68b847cad16ce3b66c8 | [
"Apache-2.0"
] | null | null | null | maintenance_calendar/parser/json/json_calendar_collection_parser.py | Fiware/ops.Maintenance-calendar | 636244f70e03ba45c943b68b847cad16ce3b66c8 | [
"Apache-2.0"
] | null | null | null | from flask import json
from maintenance_calendar.parser.json.json_parser import JSONParser
class JSONCalendarCollectionParser(JSONParser):
def __init__(self):
super(JSONCalendarCollectionParser, self).__init__() | 32.142857 | 67 | 0.813333 | 23 | 225 | 7.521739 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 225 | 7 | 68 | 32.142857 | 0.873737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
2e6dfbdaf62d9ebcd404ad7ec4c89b45de6f013b | 614 | py | Python | apps/users/views.py | Codeidea/budget-tracker | e07e8d6bb49b0a3de428942a57f090912c191d3e | [
"MIT"
] | null | null | null | apps/users/views.py | Codeidea/budget-tracker | e07e8d6bb49b0a3de428942a57f090912c191d3e | [
"MIT"
] | null | null | null | apps/users/views.py | Codeidea/budget-tracker | e07e8d6bb49b0a3de428942a57f090912c191d3e | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.views import login
from django.shortcuts import render
from django.views.generic.base import View
class LoginView(View):
def get(self, request):
return login(request, authentication_form=AuthenticationForm)
def post(sel... | 36.117647 | 69 | 0.723127 | 76 | 614 | 5.776316 | 0.565789 | 0.091116 | 0.077449 | 0.095672 | 0.246014 | 0.246014 | 0 | 0 | 0 | 0 | 0 | 0.018256 | 0.197068 | 614 | 17 | 70 | 36.117647 | 0.872211 | 0.060261 | 0 | 0.153846 | 0 | 0 | 0.019064 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5cfaaffe36ce63dd26b868784a9bc4f6b498b281 | 84 | py | Python | ui/apps.py | ludek77/gow | f3609e7a70c953d83d2a56d871101d118b534bf5 | [
"CC0-1.0"
] | null | null | null | ui/apps.py | ludek77/gow | f3609e7a70c953d83d2a56d871101d118b534bf5 | [
"CC0-1.0"
] | 1 | 2020-06-05T23:35:40.000Z | 2020-06-05T23:35:40.000Z | ui/apps.py | ludek77/gow | f3609e7a70c953d83d2a56d871101d118b534bf5 | [
"CC0-1.0"
] | null | null | null | from django.apps import AppConfig
class UiConfig(AppConfig):
name = 'ui'
| 14 | 34 | 0.678571 | 10 | 84 | 5.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 84 | 5 | 35 | 16.8 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 |
cf0000985301daeb20e9cef32184d0c15c758fdc | 310 | py | Python | indv.py | ShveczovaKS/6lab2k | 05fa91088ea2a3d92e07569851b0324337785a51 | [
"MIT"
] | null | null | null | indv.py | ShveczovaKS/6lab2k | 05fa91088ea2a3d92e07569851b0324337785a51 | [
"MIT"
] | null | null | null | indv.py | ShveczovaKS/6lab2k | 05fa91088ea2a3d92e07569851b0324337785a51 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def list_sort(func):
def inner(s):
return sorted(func(s))
return inner
@list_sort
def get_list(s):
return [int(i) for i in s.split()]
if __name__ == '__main__':
print(get_list(input('Введите числа через пробел: ')))
| 17.222222 | 59 | 0.583871 | 45 | 310 | 3.755556 | 0.666667 | 0.12426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.258065 | 310 | 17 | 60 | 18.235294 | 0.726087 | 0.13871 | 0 | 0 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cf060314b0f651d6bf60dd7b59fecca57183178c | 165 | py | Python | Laelia/apps/core/urls.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | Laelia/apps/core/urls.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | Laelia/apps/core/urls.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from . import views
app_name = 'core'
urlpatterns = [
path('', views.index_view, name='index'),
] | 18.333333 | 45 | 0.715152 | 23 | 165 | 5.043478 | 0.608696 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 165 | 9 | 46 | 18.333333 | 0.84058 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
cf1e97638b9762a745b2a1f63f9a943758b099be | 17,238 | py | Python | core/column_headings.py | mariob0y/spoonbill-web | ec82547998a7ea7f319e934c8aa441a935433259 | [
"BSD-3-Clause"
] | 1 | 2022-01-12T07:56:08.000Z | 2022-01-12T07:56:08.000Z | core/column_headings.py | mariob0y/spoonbill-web | ec82547998a7ea7f319e934c8aa441a935433259 | [
"BSD-3-Clause"
] | 110 | 2021-03-04T16:40:34.000Z | 2022-02-23T02:13:19.000Z | core/column_headings.py | mariob0y/spoonbill-web | ec82547998a7ea7f319e934c8aa441a935433259 | [
"BSD-3-Clause"
] | 3 | 2021-04-19T15:03:30.000Z | 2021-07-05T09:26:52.000Z | from django.utils.translation import gettext_lazy as _
headings = {
"/amendments/amendsReleaseID": _("Amendment Amended Release (identifier)"),
"/amendments/date": _("Amendment Date"),
"/amendments/description": _("Amendment Description"),
"/amendments/id": _("Amendment Id"),
"/amendments/rationale... | 63.375 | 98 | 0.696543 | 1,558 | 17,238 | 7.534018 | 0.102054 | 0.027603 | 0.059635 | 0.020617 | 0.674817 | 0.65863 | 0.617226 | 0.604106 | 0.604106 | 0.604106 | 0 | 0 | 0.117763 | 17,238 | 271 | 99 | 63.608856 | 0.771831 | 0 | 0 | 0 | 0 | 0 | 0.763546 | 0.424179 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003704 | 0 | 0.003704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf20769e48fac167dd997b8a58af16b1bded6bba | 2,169 | py | Python | noderesponse/http.py | SolarLiner/django-node | 0d094301c57fdcd9369dfe40a87566c7092a25d9 | [
"MIT"
] | null | null | null | noderesponse/http.py | SolarLiner/django-node | 0d094301c57fdcd9369dfe40a87566c7092a25d9 | [
"MIT"
] | null | null | null | noderesponse/http.py | SolarLiner/django-node | 0d094301c57fdcd9369dfe40a87566c7092a25d9 | [
"MIT"
] | null | null | null | import json
from json.encoder import JSONEncoder
from typing import Optional
import zmq
from django.db.models import QuerySet
from django.db.models.base import ModelBase
from django.forms import model_to_dict
from django.http.response import HttpResponseBase
class DataEncoder(JSONEncoder):
def default(self, o):
... | 26.45122 | 105 | 0.658829 | 270 | 2,169 | 5.062963 | 0.340741 | 0.051207 | 0.046818 | 0.026335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0.241586 | 2,169 | 81 | 106 | 26.777778 | 0.827964 | 0 | 0 | 0 | 0 | 0 | 0.055325 | 0.039189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220339 | false | 0 | 0.135593 | 0.118644 | 0.694915 | 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 |
cf263aa2c1f3260ccfaa23eb43839f7cde231d43 | 171 | py | Python | tests/test_logs.py | pymetrics/elb-log-tools | dd18efae74cfea1f211c60a857c1c95a7b489736 | [
"Apache-2.0"
] | null | null | null | tests/test_logs.py | pymetrics/elb-log-tools | dd18efae74cfea1f211c60a857c1c95a7b489736 | [
"Apache-2.0"
] | 5 | 2020-03-24T17:50:37.000Z | 2021-04-27T13:54:24.000Z | tests/test_logs.py | pymetrics/elb-log-tools | dd18efae74cfea1f211c60a857c1c95a7b489736 | [
"Apache-2.0"
] | 1 | 2020-11-22T13:51:02.000Z | 2020-11-22T13:51:02.000Z | from datetime import date
from elb_log_tools import logs
def test_emit_dates():
d = date.today()
dates = list(logs.emit_dates(d, 2))
assert len(dates) == 2
| 17.1 | 39 | 0.684211 | 28 | 171 | 4 | 0.642857 | 0.160714 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.210526 | 171 | 9 | 40 | 19 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | 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 |
cf2c1cfeec1f7746a4173af3bdb9e95ee6fc7ccc | 633 | py | Python | froide_food/migrations/0005_auto_20180607_1628.py | okfde/froide-food | 677e133ff564f918f81ca410967d46bebe7761c1 | [
"MIT"
] | 5 | 2018-04-16T16:16:47.000Z | 2021-05-10T10:18:35.000Z | froide_food/migrations/0005_auto_20180607_1628.py | okfde/froide-food | 677e133ff564f918f81ca410967d46bebe7761c1 | [
"MIT"
] | 16 | 2018-05-12T09:26:38.000Z | 2021-05-08T14:15:56.000Z | froide_food/migrations/0005_auto_20180607_1628.py | okfde/froide-food | 677e133ff564f918f81ca410967d46bebe7761c1 | [
"MIT"
] | 2 | 2019-01-30T16:34:23.000Z | 2019-07-30T14:53:06.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-07 14:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('froide_food', '0004_auto_20180607_1618'),
]
operations = [
migrations.RemoveField(... | 22.607143 | 51 | 0.582938 | 58 | 633 | 6.155172 | 0.672414 | 0.176471 | 0.218487 | 0.252101 | 0.386555 | 0.386555 | 0 | 0 | 0 | 0 | 0 | 0.077449 | 0.306477 | 633 | 27 | 52 | 23.444444 | 0.735763 | 0.109005 | 0 | 0.45 | 1 | 0 | 0.176471 | 0.040998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf3e4ba26d9fb8819255d2c79692c10f3a7aace9 | 530 | py | Python | server/src/weaverbird/pipeline/steps/top.py | ToucanToco/vue-query-builder | e09e9b76c72628041dc82ab82145420738869a20 | [
"BSD-3-Clause"
] | 4 | 2019-03-01T11:26:12.000Z | 2019-04-23T16:48:52.000Z | server/src/weaverbird/pipeline/steps/top.py | ToucanToco/vue-query-builder | e09e9b76c72628041dc82ab82145420738869a20 | [
"BSD-3-Clause"
] | 279 | 2019-02-15T10:54:22.000Z | 2019-10-19T19:41:48.000Z | server/src/weaverbird/pipeline/steps/top.py | ToucanToco/vue-query-builder | e09e9b76c72628041dc82ab82145420738869a20 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T18:44:15.000Z | 2019-05-28T18:44:15.000Z | from typing import List, Literal
from weaverbird.pipeline.steps.utils.base import BaseStep
from weaverbird.pipeline.steps.utils.render_variables import StepWithVariablesMixin
from weaverbird.pipeline.types import ColumnName, TemplatedVariable
class TopStep(BaseStep):
name: Literal['top'] = 'top'
groups: List... | 27.894737 | 83 | 0.773585 | 56 | 530 | 7.285714 | 0.535714 | 0.102941 | 0.161765 | 0.132353 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 530 | 18 | 84 | 29.444444 | 0.896703 | 0 | 0 | 0 | 0 | 0 | 0.024528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.307692 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cf4881363fc194961bdab6a8bff2db5dfc7afb59 | 448 | py | Python | backpack/extensions/curvmatprod/ggnmp/pooling.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 395 | 2019-10-04T09:37:52.000Z | 2022-03-29T18:00:56.000Z | backpack/extensions/curvmatprod/ggnmp/pooling.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 78 | 2019-10-11T18:56:43.000Z | 2022-03-23T01:49:54.000Z | backpack/extensions/curvmatprod/ggnmp/pooling.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 50 | 2019-10-03T16:31:10.000Z | 2022-03-15T19:36:14.000Z | from backpack.core.derivatives.avgpool2d import AvgPool2DDerivatives
from backpack.core.derivatives.maxpool2d import MaxPool2DDerivatives
from backpack.extensions.curvmatprod.ggnmp.ggnmpbase import GGNMPBase
class GGNMPAvgPool2d(GGNMPBase):
def __init__(self):
super().__init__(derivatives=AvgPool2DDerivat... | 32 | 69 | 0.803571 | 42 | 448 | 8.190476 | 0.47619 | 0.104651 | 0.093023 | 0.156977 | 0.232558 | 0.232558 | 0.232558 | 0 | 0 | 0 | 0 | 0.020101 | 0.111607 | 448 | 13 | 70 | 34.461538 | 0.844221 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
cf59fa555227b93332196cb6374f21bfe9c297e0 | 2,651 | py | Python | nuts/data/test_suite.py | DAvidMeister89/Nuts | ccb20adaaca71ffafd8e2884171e2c998a79b5f2 | [
"MIT"
] | null | null | null | nuts/data/test_suite.py | DAvidMeister89/Nuts | ccb20adaaca71ffafd8e2884171e2c998a79b5f2 | [
"MIT"
] | null | null | null | nuts/data/test_suite.py | DAvidMeister89/Nuts | ccb20adaaca71ffafd8e2884171e2c998a79b5f2 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
import logging
from colorama import Fore
from .test_case import TestCase
class TestSuite(object):
def __init__(self, name):
self.name = name
self.test_cases_async = []
self.test_cases_sync = []
self.t... | 36.819444 | 94 | 0.629197 | 337 | 2,651 | 4.620178 | 0.204748 | 0.174695 | 0.183687 | 0.128452 | 0.491329 | 0.424534 | 0.22736 | 0.215157 | 0.197816 | 0.062942 | 0 | 0.00051 | 0.259902 | 2,651 | 71 | 95 | 37.338028 | 0.793068 | 0 | 0 | 0.172414 | 0 | 0 | 0.088646 | 0.018861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.12069 | 0.086207 | null | null | 0.034483 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cf806dc3d38d9f94157a8f5b15dbfc6a1d722924 | 34 | py | Python | ec2media/flask/instance/sensitive.py | aws-samples/aws-ec2-mediaconvert | b9d7d187b94bc67401d87503d37aa3fbca2bcb84 | [
"MIT-0"
] | 5 | 2021-11-02T21:36:23.000Z | 2022-01-31T12:31:58.000Z | ec2media/flask/instance/sensitive.py | aws-samples/aws-ec2-mediaconvert | b9d7d187b94bc67401d87503d37aa3fbca2bcb84 | [
"MIT-0"
] | null | null | null | ec2media/flask/instance/sensitive.py | aws-samples/aws-ec2-mediaconvert | b9d7d187b94bc67401d87503d37aa3fbca2bcb84 | [
"MIT-0"
] | 1 | 2021-11-02T21:36:13.000Z | 2021-11-02T21:36:13.000Z | DEVELOPMENT_STAGE = "development"
| 17 | 33 | 0.823529 | 3 | 34 | 9 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
d8691166d305943ffaef70ac3670b5edf9c13fb4 | 678 | py | Python | python/plots/latex.py | meurissemax/autonomous-drone | e6b4288af18be7dcf136121e73454e08f3277c88 | [
"MIT"
] | 3 | 2022-01-13T15:24:48.000Z | 2022-03-08T16:51:12.000Z | python/plots/latex.py | meurissemax/autonomous-drone | e6b4288af18be7dcf136121e73454e08f3277c88 | [
"MIT"
] | null | null | null | python/plots/latex.py | meurissemax/autonomous-drone | e6b4288af18be7dcf136121e73454e08f3277c88 | [
"MIT"
] | null | null | null | """
Settings used to generate plots with LaTeX style.
"""
###########
# Imports #
###########
import matplotlib as mpl
import matplotlib.pyplot as plt
############
# Settings #
############
# Tool bar
mpl.rcParams['toolbar'] = 'None'
# Axes
plt.rcParams['axes.grid'] = True
plt.rcParams['axes.linewidth'] = 0.5
# ... | 18.324324 | 52 | 0.640118 | 83 | 678 | 5.216867 | 0.53012 | 0.228637 | 0.103926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006861 | 0.140118 | 678 | 36 | 53 | 18.833333 | 0.735849 | 0.165192 | 0 | 0 | 1 | 0 | 0.299603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d86b009bdbde16224ee21c74440dfe551b1058cb | 1,445 | py | Python | Python/five_kyu/first_non_repeating_letter.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | 1 | 2019-12-20T04:09:56.000Z | 2019-12-20T04:09:56.000Z | Python/five_kyu/first_non_repeating_letter.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | null | null | null | Python/five_kyu/first_non_repeating_letter.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | null | null | null | # Python solution for 'First non-repeating character' codewars question.
# Level: 5 kyu
# Tags: ALGORITHMS, STRINGS, and SEARCH.
# Author: Jack Brokenshire
# Date: 26/05/2020
import unittest
def first_non_repeating_letter(string):
"""
Finds and returns the first non repeating character inside a string.
:... | 39.054054 | 99 | 0.703806 | 181 | 1,445 | 5.353591 | 0.41989 | 0.123839 | 0.263158 | 0.308566 | 0.47678 | 0.416925 | 0.336429 | 0.336429 | 0.336429 | 0.336429 | 0 | 0.008285 | 0.164706 | 1,445 | 36 | 100 | 40.138889 | 0.794532 | 0.270588 | 0 | 0 | 0 | 0 | 0.084231 | 0 | 0 | 0 | 0 | 0 | 0.588235 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8780fdbdf854f666fd6231b729cd41c38c54896 | 309 | py | Python | idt_oauth2/urls.py | idonethis/idt_oauth2 | 1df13ff424a86e855663bd0d30a9a2679597db88 | [
"MIT"
] | null | null | null | idt_oauth2/urls.py | idonethis/idt_oauth2 | 1df13ff424a86e855663bd0d30a9a2679597db88 | [
"MIT"
] | null | null | null | idt_oauth2/urls.py | idonethis/idt_oauth2 | 1df13ff424a86e855663bd0d30a9a2679597db88 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^oauth2/callback/$',
'idt_oauth2.views.oauth2_callback', name='oauth2_callback'),
url(r'^oauth2/authorize/(?P<service_name>(\w+))/$',
'idt_oauth2.views.oauth2_authorize', name='oauth2_authorize'),
)
| 34.333333 | 70 | 0.686084 | 38 | 309 | 5.394737 | 0.5 | 0.204878 | 0.097561 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.132686 | 309 | 8 | 71 | 38.625 | 0.735075 | 0 | 0 | 0 | 0 | 0 | 0.508091 | 0.349515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
d87a3b93c402f1f6f7005b9a397c708ced9b89e4 | 108 | py | Python | scripts/python/infra-swarm-info.py | joericearchitect/infra-common | b8f50a466f8bb0297e46d8ebf4c9b91f5725a4e8 | [
"Apache-2.0"
] | 6 | 2017-06-12T17:07:58.000Z | 2021-02-01T15:00:27.000Z | scripts/python/infra-swarm-info.py | joericearchitect/infra-common | b8f50a466f8bb0297e46d8ebf4c9b91f5725a4e8 | [
"Apache-2.0"
] | null | null | null | scripts/python/infra-swarm-info.py | joericearchitect/infra-common | b8f50a466f8bb0297e46d8ebf4c9b91f5725a4e8 | [
"Apache-2.0"
] | 2 | 2017-11-26T08:49:02.000Z | 2019-08-20T23:15:23.000Z | import json
with open('strings.json') as json_data:
d = json.load(json_data)
print(d)
pprint(data) | 15.428571 | 39 | 0.685185 | 18 | 108 | 4 | 0.611111 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 108 | 7 | 40 | 15.428571 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d882ddd3645f232915a9cd93404d16305d30c21d | 183 | py | Python | demo/test26.py | pearpai/MachineLearnAction | d23def83e50bf53b7cfcdb52d362d88eb52d9115 | [
"Apache-2.0"
] | null | null | null | demo/test26.py | pearpai/MachineLearnAction | d23def83e50bf53b7cfcdb52d362d88eb52d9115 | [
"Apache-2.0"
] | null | null | null | demo/test26.py | pearpai/MachineLearnAction | d23def83e50bf53b7cfcdb52d362d88eb52d9115 | [
"Apache-2.0"
] | null | null | null | import kNN
if __name__ == '__main__':
datingDataMat, datingLabels = kNN.file2matrix('datingTestSet.txt')
norMat, ranges, minVal = kNN.autoNorm(datingDataMat)
print norMat | 30.5 | 70 | 0.737705 | 19 | 183 | 6.684211 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.15847 | 183 | 6 | 71 | 30.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.13587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8f4a76d1ec68955bbfe367ca46e8f006aa075a5 | 550 | py | Python | dev/debug_sp_class.py | fabian-sp/ncOPT | 742c126da755558900837c868de77ba0083d41ad | [
"BSD-3-Clause"
] | 4 | 2021-11-19T03:32:05.000Z | 2022-01-25T05:35:16.000Z | dev/debug_sp_class.py | fabian-sp/ncOPT | 742c126da755558900837c868de77ba0083d41ad | [
"BSD-3-Clause"
] | null | null | null | dev/debug_sp_class.py | fabian-sp/ncOPT | 742c126da755558900837c868de77ba0083d41ad | [
"BSD-3-Clause"
] | null | null | null | # test Subproblem class
#%%
# dim = 10
# nI = 3
# nE = 2
# p0 = 4
# pI = 5*np.ones(nI, dtype = int)
# pE = 2*np.ones(nE, dtype = int)
# H = np.eye(dim)
# rho = 0.1
# D_f = np.random.rand(p0+1, dim)
# D_gI = [np.random.rand(pI[j]+1, dim) for j in range(nI)]
# D_gE = [np.random.rand(pE[j]+1, dim) for j in range(nE)]
... | 16.176471 | 58 | 0.563636 | 119 | 550 | 2.495798 | 0.319328 | 0.161616 | 0.242424 | 0.131313 | 0.107744 | 0.107744 | 0.107744 | 0 | 0 | 0 | 0 | 0.037209 | 0.218182 | 550 | 33 | 59 | 16.666667 | 0.653488 | 0.9 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8fe39898b986454ccc4092eac3015c35bd6465c | 3,149 | py | Python | cfs/cfs_file.py | adamharder/constant-file-system | 31e78488e152cbdb83bb155fa2dd733ae46be2ad | [
"MIT"
] | null | null | null | cfs/cfs_file.py | adamharder/constant-file-system | 31e78488e152cbdb83bb155fa2dd733ae46be2ad | [
"MIT"
] | null | null | null | cfs/cfs_file.py | adamharder/constant-file-system | 31e78488e152cbdb83bb155fa2dd733ae46be2ad | [
"MIT"
] | null | null | null |
# from util_content_hash import content_hash
from datetime import datetime
import hashlib
import json
import struct
import binascii
from pathlib import Path
from cfs.cfs_base import CFS_Base
#from schemas.schema_aligned_cfs import metadata
# this is an interface for the constant file system. it can be backed by a fi... | 27.867257 | 151 | 0.643061 | 414 | 3,149 | 4.671498 | 0.258454 | 0.041365 | 0.050672 | 0.02637 | 0.099793 | 0.071872 | 0.049121 | 0.049121 | 0.034126 | 0 | 0 | 0.0102 | 0.252779 | 3,149 | 112 | 152 | 28.116071 | 0.81173 | 0.172436 | 0 | 0.140845 | 0 | 0 | 0.020463 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 1 | 0.211268 | false | 0 | 0.098592 | 0.183099 | 0.521127 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b100b6dd7621819b53029005c6b3c87fc325e04 | 675 | py | Python | apps/profile/models.py | jamesj0918/sejongapi-v1 | 5945b959f7d4a97ec64ee40a28a797b30067421b | [
"MIT"
] | null | null | null | apps/profile/models.py | jamesj0918/sejongapi-v1 | 5945b959f7d4a97ec64ee40a28a797b30067421b | [
"MIT"
] | 2 | 2020-02-11T23:35:52.000Z | 2020-06-05T19:55:32.000Z | apps/profile/models.py | jamesj0918/sejongapi-v1 | 5945b959f7d4a97ec64ee40a28a797b30067421b | [
"MIT"
] | null | null | null | from django.db import models
from apps.utils.models import TimestampedModel
class Profile(TimestampedModel):
user = models.OneToOneField('authentication.User', on_delete=models.CASCADE)
bio = models.TextField(blank=True)
avatar = models.URLField(blank=True)
followers = models.ManyToManyField('profile... | 27 | 80 | 0.714074 | 78 | 675 | 6.076923 | 0.423077 | 0.137131 | 0.120253 | 0.092827 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194074 | 675 | 24 | 81 | 28.125 | 0.871324 | 0 | 0 | 0.176471 | 0 | 0 | 0.05037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.117647 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.