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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aeb4e027894850c0655d23c7ce721ab31bed5d19 | 73 | py | Python | clib/utils/boolian.py | Swall0w/clib | 46f659783d5a0a6ec5994c3c707c1cc8a7934385 | [
"MIT"
] | 1 | 2017-08-27T00:01:27.000Z | 2017-08-27T00:01:27.000Z | clib/utils/boolian.py | Swall0w/clib | 46f659783d5a0a6ec5994c3c707c1cc8a7934385 | [
"MIT"
] | 49 | 2017-08-20T02:09:26.000Z | 2017-12-31T11:58:27.000Z | clib/utils/boolian.py | Swall0w/clib | 46f659783d5a0a6ec5994c3c707c1cc8a7934385 | [
"MIT"
] | 1 | 2017-12-08T08:31:38.000Z | 2017-12-08T08:31:38.000Z | import random
def randombool():
return bool(random.getrandbits(1))
| 12.166667 | 38 | 0.726027 | 9 | 73 | 5.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.164384 | 73 | 5 | 39 | 14.6 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
4e27fbd3b1752dd502e2cfd605221c65efcf931b | 25,799 | py | Python | py4sos/transactional.py | manuGil/py4sos | ffd9d59847ba99e93dcdff883df18dac6d209bbe | [
"Apache-2.0"
] | null | null | null | py4sos/transactional.py | manuGil/py4sos | ffd9d59847ba99e93dcdff883df18dac6d209bbe | [
"Apache-2.0"
] | null | null | null | py4sos/transactional.py | manuGil/py4sos | ffd9d59847ba99e93dcdff883df18dac6d209bbe | [
"Apache-2.0"
] | null | null | null | """
Function for the SOS Transactional profile.
This set of function format requests to publish and handle data in a SOS using a RESTful API.
Requests need to be passed as the body of a HTTP request to the SOS server.
When more than one syntax is allowed, requests as passed using XML version 2.0
Author: Manuel G. ... | 49.328872 | 2,433 | 0.609791 | 2,869 | 25,799 | 5.440223 | 0.146741 | 0.021976 | 0.024218 | 0.029408 | 0.79818 | 0.781266 | 0.770695 | 0.750769 | 0.738852 | 0.723539 | 0 | 0.01031 | 0.25939 | 25,799 | 523 | 2,434 | 49.328872 | 0.806563 | 0.279972 | 0 | 0.761589 | 0 | 0.099338 | 0.458152 | 0.217237 | 0.013245 | 0 | 0 | 0.007648 | 0 | 1 | 0.02649 | false | 0.006623 | 0.006623 | 0 | 0.05298 | 0.003311 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9d685e065711912d2e67c37062c3662880251d5d | 3,333 | py | Python | 030_ClassificationWebsite/apps/coherence/titles.py | cogeorg/RegulatoryComplexity_Public | c9578ce012ba1e84dbebb029e30d98eff3430fd6 | [
"Apache-2.0"
] | null | null | null | 030_ClassificationWebsite/apps/coherence/titles.py | cogeorg/RegulatoryComplexity_Public | c9578ce012ba1e84dbebb029e30d98eff3430fd6 | [
"Apache-2.0"
] | null | null | null | 030_ClassificationWebsite/apps/coherence/titles.py | cogeorg/RegulatoryComplexity_Public | c9578ce012ba1e84dbebb029e30d98eff3430fd6 | [
"Apache-2.0"
] | null | null | null | from flask import request, jsonify, redirect, url_for,flash, render_template, request, session, abort
from views import app
@app.route('/title_0_Y')
def title_0_Y():
return render_template('PreClass/title_0.html')
@app.route('/title_1_Y')
def title_1_Y():
return render_template('PreClass/title_1.html')
@ap... | 23.307692 | 102 | 0.726373 | 528 | 3,333 | 4.25947 | 0.075758 | 0.217875 | 0.196532 | 0.249444 | 0.78835 | 0.574478 | 0.353046 | 0 | 0 | 0 | 0 | 0.048436 | 0.108011 | 3,333 | 142 | 103 | 23.471831 | 0.708039 | 0 | 0 | 0 | 0 | 0 | 0.314431 | 0.218422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.326923 | true | 0 | 0.019231 | 0.326923 | 0.673077 | 0 | 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 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
d1979045dfbbbcac8d34e125d8ef7f411c44573e | 7,164 | py | Python | hoft/core/decorators.py | sys-git/hoft | a59bd3f38a258eb6d7f56a9a79034159b18fd6a4 | [
"MIT"
] | null | null | null | hoft/core/decorators.py | sys-git/hoft | a59bd3f38a258eb6d7f56a9a79034159b18fd6a4 | [
"MIT"
] | 323 | 2017-09-13T07:20:51.000Z | 2022-03-31T12:30:24.000Z | hoft/core/decorators.py | sys-git/hoft | a59bd3f38a258eb6d7f56a9a79034159b18fd6a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Brief description
# @module hoft.core.decorators
# @version 0.1
# @copyright (c) 2017-present Francis Horsman.
from inspect import getargspec, getcallargs
import six
from hoft.core.parsers_in import parse_all_in_args
from hoft.core.parsers_sig import parse_all_sig_... | 36.365482 | 99 | 0.624511 | 952 | 7,164 | 4.526261 | 0.183824 | 0.04595 | 0.019494 | 0.023207 | 0.826642 | 0.826642 | 0.826642 | 0.826642 | 0.807612 | 0.807612 | 0 | 0.003019 | 0.306533 | 7,164 | 196 | 100 | 36.55102 | 0.864332 | 0.622278 | 0 | 0.716418 | 0 | 0 | 0.024832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.074627 | 0 | 0.253731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d1be549f263eaa4aaec76257a75137f8dbc15af2 | 7,015 | py | Python | lessons/Chapter1/gallery_section_08.py | ratnania/IGA-Python | a9d7aa9bd14d4b3f1b12cdfbc2f9bf3c0a68fff4 | [
"MIT"
] | 6 | 2018-04-27T15:40:17.000Z | 2020-08-13T08:45:35.000Z | lessons/Chapter1/gallery_section_08.py | GabrielJie/IGA-Python | a9d7aa9bd14d4b3f1b12cdfbc2f9bf3c0a68fff4 | [
"MIT"
] | 4 | 2021-06-08T22:59:19.000Z | 2022-01-17T20:36:56.000Z | lessons/Chapter1/gallery_section_08.py | GabrielJie/IGA-Python | a9d7aa9bd14d4b3f1b12cdfbc2f9bf3c0a68fff4 | [
"MIT"
] | 4 | 2018-10-06T01:30:20.000Z | 2021-12-31T02:42:05.000Z | __all__ = ['assemble_matrix_ex01',
'assemble_vector_ex01'
'assemble_norm_ex01'
]
#==============================================================================
def assemble_matrix_ex01(ne1: 'int', ne2: 'int',
p1: 'int', p2: 'int',
spans_1: ... | 38.543956 | 247 | 0.376907 | 938 | 7,015 | 2.608742 | 0.073561 | 0.074377 | 0.085002 | 0.031467 | 0.826727 | 0.804659 | 0.771966 | 0.765836 | 0.725787 | 0.695954 | 0 | 0.125 | 0.438917 | 7,015 | 181 | 248 | 38.756906 | 0.496697 | 0.087812 | 0 | 0.717742 | 0 | 0 | 0.062676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024194 | false | 0 | 0.064516 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ae47ad57e68c567abdc36e216a69e568666109a7 | 123,535 | py | Python | Account/app/mod_authorization/view_api.py | TamSzaGot/mydata-sdk | 9c8afb75077f0b993819aa534b904501a8112f76 | [
"MIT"
] | 4 | 2018-04-21T00:46:40.000Z | 2019-12-03T13:52:03.000Z | Account/app/mod_authorization/view_api.py | TamSzaGot/mydata-sdk | 9c8afb75077f0b993819aa534b904501a8112f76 | [
"MIT"
] | 1 | 2019-01-09T10:45:23.000Z | 2019-01-09T10:45:23.000Z | Account/app/mod_authorization/view_api.py | TamSzaGot/mydata-sdk | 9c8afb75077f0b993819aa534b904501a8112f76 | [
"MIT"
] | 4 | 2018-04-21T01:12:12.000Z | 2020-09-24T06:19:29.000Z | # -*- coding: utf-8 -*-
"""
__author__ = "Jani Yli-Kantola"
__copyright__ = ""
__credits__ = ["Harri Hirvonsalo", "Aleksi Palomäki"]
__license__ = "MIT"
__version__ = "1.3.0"
__maintainer__ = "Jani Yli-Kantola"
__contact__ = "https://github.com/HIIT/mydata-stack"
__status__ = "Development"
"""
# Import dependencies
f... | 44.84029 | 184 | 0.636629 | 14,844 | 123,535 | 5.034694 | 0.017785 | 0.0566 | 0.039125 | 0.038804 | 0.938449 | 0.901733 | 0.884686 | 0.870971 | 0.857015 | 0.835526 | 0 | 0.006517 | 0.272158 | 123,535 | 2,754 | 185 | 44.856572 | 0.824666 | 0.044635 | 0 | 0.805326 | 0 | 0.00551 | 0.199926 | 0.037287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009183 | false | 0 | 0.004132 | 0 | 0.03168 | 0.000918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8815a5f2290988f0f3bece29932f81cb57fb371a | 11,658 | py | Python | decora_wifi/models/app.py | balloob/python-decora_wifi | 47900ad67002f3655fc4c799518bc4e73293ceb4 | [
"MIT"
] | 33 | 2017-09-02T16:37:15.000Z | 2021-12-28T15:24:39.000Z | decora_wifi/models/app.py | balloob/python-decora_wifi | 47900ad67002f3655fc4c799518bc4e73293ceb4 | [
"MIT"
] | 17 | 2017-09-12T04:53:07.000Z | 2022-01-25T03:31:45.000Z | decora_wifi/models/app.py | balloob/python-decora_wifi | 47900ad67002f3655fc4c799518bc4e73293ceb4 | [
"MIT"
] | 21 | 2018-01-29T22:50:06.000Z | 2022-01-06T02:30:47.000Z | # Leviton Cloud Services API model App.
# Auto-generated by api_scraper.py.
#
# Copyright 2017 Tim Lyakhovetskiy <tlyakhov@gmail.com>
#
# This code is released under the terms of the MIT license. See the LICENSE
# file for more details.
from decora_wifi.base_model import BaseModel
class App(BaseModel):
def __init... | 34.389381 | 86 | 0.598559 | 1,408 | 11,658 | 4.790483 | 0.067472 | 0.044626 | 0.089251 | 0.108377 | 0.90126 | 0.898147 | 0.887176 | 0.882135 | 0.854707 | 0.840474 | 0 | 0.005955 | 0.279722 | 11,658 | 338 | 87 | 34.491124 | 0.797309 | 0.019043 | 0 | 0.763636 | 1 | 0 | 0.09075 | 0.059421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.025455 | 0 | 0.345455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ee00ff0d3a1853116d339444a46027ed144a160a | 189 | py | Python | drosoph_vae/models/__init__.py | samuelsmal/drosophVAE | 4b1887e55a5eed1d26c07b6c43de59ffab5fc7c7 | [
"MIT"
] | null | null | null | drosoph_vae/models/__init__.py | samuelsmal/drosophVAE | 4b1887e55a5eed1d26c07b6c43de59ffab5fc7c7 | [
"MIT"
] | null | null | null | drosoph_vae/models/__init__.py | samuelsmal/drosophVAE | 4b1887e55a5eed1d26c07b6c43de59ffab5fc7c7 | [
"MIT"
] | null | null | null | from drosoph_vae.models.drosoph_vae import DrosophVAE
from drosoph_vae.models.drosoph_vae_conv import DrosophVAEConv
from drosoph_vae.models.drosoph_vae_skip_conv import DrosophVAESkipConv
| 47.25 | 71 | 0.904762 | 27 | 189 | 6 | 0.37037 | 0.37037 | 0.259259 | 0.37037 | 0.555556 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 189 | 3 | 72 | 63 | 0.915254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
ee5506aa5cb3a711bd0bc045e3564ce1cc11f342 | 5,683 | py | Python | tests/api/utils/schema/analytics.py | satroutr/poppy | 27417f86854d9e0a04726acc263ef0a2ce9f8f6e | [
"Apache-2.0"
] | 3 | 2017-07-05T20:09:59.000Z | 2018-11-27T22:02:57.000Z | tests/api/utils/schema/analytics.py | satroutr/poppy | 27417f86854d9e0a04726acc263ef0a2ce9f8f6e | [
"Apache-2.0"
] | 24 | 2017-04-18T15:14:04.000Z | 2019-03-20T19:09:07.000Z | tests/api/utils/schema/analytics.py | satroutr/poppy | 27417f86854d9e0a04726acc263ef0a2ce9f8f6e | [
"Apache-2.0"
] | 8 | 2017-04-03T13:24:27.000Z | 2021-11-08T20:28:10.000Z | # Copyright (c) 2016 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 40.304965 | 72 | 0.431286 | 472 | 5,683 | 5.161017 | 0.201271 | 0.26601 | 0.206897 | 0.26601 | 0.797619 | 0.787767 | 0.787767 | 0.787767 | 0.750821 | 0.650657 | 0 | 0.004209 | 0.331163 | 5,683 | 140 | 73 | 40.592857 | 0.636675 | 0.09766 | 0 | 0.8 | 0 | 0 | 0.370037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ee899548a1b84acae0039602bbb116ac8072d89e | 1,283 | py | Python | Binary Search/875. Koko Eating Bananas.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Binary Search/875. Koko Eating Bananas.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Binary Search/875. Koko Eating Bananas.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | class Solution:
def minEatingSpeed(self, piles: List[int], h: int) -> int:
def isok(k):
count = 0
for p in piles:
count += (p - 1) // k + 1
return count <= h
l = 1
r = max(piles)
while l < r:
mid = (l + r)//2
... | 26.183673 | 62 | 0.342167 | 155 | 1,283 | 2.832258 | 0.180645 | 0.031891 | 0.109339 | 0.205011 | 0.822323 | 0.788155 | 0.788155 | 0.788155 | 0.788155 | 0.788155 | 0 | 0.031142 | 0.549493 | 1,283 | 49 | 63 | 26.183673 | 0.728374 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.288889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a0076ae00e8829a9db3e282b210ec8ef4da2b341 | 98 | py | Python | models/__init__.py | ZenithClown/DQNProjects | 3a9f022166022509fce0f4306ed5612854d5539f | [
"Apache-2.0"
] | null | null | null | models/__init__.py | ZenithClown/DQNProjects | 3a9f022166022509fce0f4306ed5612854d5539f | [
"Apache-2.0"
] | null | null | null | models/__init__.py | ZenithClown/DQNProjects | 3a9f022166022509fce0f4306ed5612854d5539f | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
from .linear import * # noqa: F403
from .trainer import * # noqa: F403
| 19.6 | 35 | 0.622449 | 13 | 98 | 4.692308 | 0.692308 | 0.327869 | 0.459016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0.204082 | 98 | 4 | 36 | 24.5 | 0.692308 | 0.459184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4e548632bbb90189b06d8f7cdd841f8da639a602 | 9,729 | py | Python | tests/em/static/test_IP_jvecjtvecadj.py | kimjaed/simpeg | b8d716f86a4ea07ba3085fabb24c2bc974788040 | [
"MIT"
] | 3 | 2020-11-27T03:18:28.000Z | 2022-03-18T01:29:58.000Z | tests/em/static/test_IP_jvecjtvecadj.py | kimjaed/simpeg | b8d716f86a4ea07ba3085fabb24c2bc974788040 | [
"MIT"
] | null | null | null | tests/em/static/test_IP_jvecjtvecadj.py | kimjaed/simpeg | b8d716f86a4ea07ba3085fabb24c2bc974788040 | [
"MIT"
] | 1 | 2021-01-14T08:33:45.000Z | 2021-01-14T08:33:45.000Z | from __future__ import print_function
import unittest
from SimPEG import Mesh
from SimPEG import Maps
from SimPEG import DataMisfit
from SimPEG import Regularization
from SimPEG import Optimization
from SimPEG import Inversion
from SimPEG import InvProblem
from SimPEG import Tests
import numpy as np
import SimPEG.EM.St... | 30.498433 | 73 | 0.551239 | 1,200 | 9,729 | 4.44 | 0.105833 | 0.027027 | 0.015015 | 0.036036 | 0.928866 | 0.928866 | 0.928866 | 0.928866 | 0.928866 | 0.928866 | 0 | 0.032253 | 0.324391 | 9,729 | 318 | 74 | 30.59434 | 0.778336 | 0.055813 | 0 | 0.859375 | 0 | 0 | 0.00698 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 1 | 0.0625 | false | 0.109375 | 0.050781 | 0 | 0.128906 | 0.019531 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
4e8c5f5d2a77cbd104979bcf7a6e4e29d8276b9a | 3,070 | py | Python | spaceplanner/migrations/0002_auto_20200724_1236.py | prznoc/osplanner | c58ff129fde3f1513738cf27f9d3692fb7d549ea | [
"MIT"
] | null | null | null | spaceplanner/migrations/0002_auto_20200724_1236.py | prznoc/osplanner | c58ff129fde3f1513738cf27f9d3692fb7d549ea | [
"MIT"
] | null | null | null | spaceplanner/migrations/0002_auto_20200724_1236.py | prznoc/osplanner | c58ff129fde3f1513738cf27f9d3692fb7d549ea | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-07-24 10:36
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spaceplanner', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='employeeprefer... | 40.933333 | 190 | 0.636156 | 272 | 3,070 | 7.044118 | 0.176471 | 0.125261 | 0.156576 | 0.181628 | 0.897182 | 0.893006 | 0.831942 | 0.724426 | 0.641962 | 0.641962 | 0 | 0.013449 | 0.249186 | 3,070 | 74 | 191 | 41.486486 | 0.817787 | 0.014658 | 0 | 0.735294 | 1 | 0 | 0.168376 | 0.036718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.073529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
4eabf2a813ce16099ad8420bfba6309ff1b07a0c | 10,467 | py | Python | listshuffler-be/tests/integration/test_shuffle.py | csiztom/listshuffler | d4fea7da3d506e93cca4a8e79c6f0ba98aebbac5 | [
"MIT"
] | null | null | null | listshuffler-be/tests/integration/test_shuffle.py | csiztom/listshuffler | d4fea7da3d506e93cca4a8e79c6f0ba98aebbac5 | [
"MIT"
] | null | null | null | listshuffler-be/tests/integration/test_shuffle.py | csiztom/listshuffler | d4fea7da3d506e93cca4a8e79c6f0ba98aebbac5 | [
"MIT"
] | null | null | null | from lambda_client import lambda_client
import hashlib
import json
from unittest import TestCase
def convert_to_hash(val, mul=0):
return str(int(hashlib.sha384((val + str(mul)).encode()).hexdigest(), 16))
class TestShuffle(TestCase):
def test_simple(self):
client = lambda_client()
response =... | 58.803371 | 160 | 0.60256 | 961 | 10,467 | 6.484912 | 0.074922 | 0.098845 | 0.089859 | 0.143774 | 0.938864 | 0.937901 | 0.933087 | 0.933087 | 0.926508 | 0.926508 | 0 | 0.016951 | 0.239133 | 10,467 | 177 | 161 | 59.135593 | 0.76557 | 0 | 0 | 0.844156 | 0 | 0 | 0.219452 | 0.058278 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.025974 | false | 0 | 0.025974 | 0.006494 | 0.064935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
14cd7ecbaab70810f90e489e39b3d631799af049 | 211 | py | Python | students/K33401/Goncharov_Vladimir/Lr2/django_project_goncharov/project_first_app/admin.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/K33401/Goncharov_Vladimir/Lr2/django_project_goncharov/project_first_app/admin.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/K33401/Goncharov_Vladimir/Lr2/django_project_goncharov/project_first_app/admin.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | from django.contrib import admin
from .models import Driver, Car, DriverLicense, Ownership
admin.site.register(Driver)
admin.site.register(Car)
admin.site.register(Ownership)
admin.site.register(DriverLicense) | 26.375 | 57 | 0.824645 | 28 | 211 | 6.214286 | 0.428571 | 0.206897 | 0.390805 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075829 | 211 | 8 | 58 | 26.375 | 0.892308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
14cec6b306f93521b43a1b811aa009b3c7256ba7 | 37 | py | Python | biovis_report/version.py | go-choppy/choppy-report | f233ba3b2eaaa9af8936b736ede25233a043dde5 | [
"MIT"
] | 1 | 2019-07-02T08:37:30.000Z | 2019-07-02T08:37:30.000Z | biovis_report/version.py | go-choppy/choppy-report | f233ba3b2eaaa9af8936b736ede25233a043dde5 | [
"MIT"
] | null | null | null | biovis_report/version.py | go-choppy/choppy-report | f233ba3b2eaaa9af8936b736ede25233a043dde5 | [
"MIT"
] | null | null | null | def get_version():
return '0.5.6' | 18.5 | 18 | 0.621622 | 7 | 37 | 3.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.189189 | 37 | 2 | 19 | 18.5 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
0912f1de15ea2d8b956ad089f1cafac5ddc22063 | 91,026 | py | Python | declaraciones/declaracion/migrations/0001_initial.py | gob-cdmx/declaraciones | 90347c1572fa5b8137c5e0d23e6a7c6b2a0b2311 | [
"MIT"
] | 2 | 2019-10-17T02:40:12.000Z | 2019-10-17T22:51:36.000Z | declaraciones/declaracion/migrations/0001_initial.py | gob-cdmx/declaraciones | 90347c1572fa5b8137c5e0d23e6a7c6b2a0b2311 | [
"MIT"
] | 1 | 2019-10-02T20:23:12.000Z | 2019-10-02T20:23:12.000Z | declaraciones/declaracion/migrations/0001_initial.py | gob-cdmx/declaraciones | 90347c1572fa5b8137c5e0d23e6a7c6b2a0b2311 | [
"MIT"
] | 4 | 2019-08-20T21:16:04.000Z | 2021-07-01T03:08:10.000Z | # Generated by Django 2.2 on 2019-04-01 19:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 72.588517 | 199 | 0.632292 | 9,430 | 91,026 | 5.910817 | 0.047084 | 0.061519 | 0.067816 | 0.081379 | 0.905237 | 0.900196 | 0.893073 | 0.870575 | 0.83272 | 0.817166 | 0 | 0.012215 | 0.226507 | 91,026 | 1,253 | 200 | 72.646449 | 0.779443 | 0.000472 | 0 | 0.724719 | 1 | 0 | 0.179323 | 0.083182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004013 | 0 | 0.007223 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
094c9db42885daf882fc54d0e8e0f1ed9e2f35a8 | 8,698 | py | Python | tests/unit/confidant/routes/certificates_test.py | chadwhitacre/confidant | dd788147b355f760767cf3b9487671c67948ade3 | [
"Apache-2.0"
] | 1,820 | 2015-11-04T17:57:16.000Z | 2022-03-31T16:47:24.000Z | tests/unit/confidant/routes/certificates_test.py | chadwhitacre/confidant | dd788147b355f760767cf3b9487671c67948ade3 | [
"Apache-2.0"
] | 186 | 2015-11-04T18:21:52.000Z | 2022-01-14T20:31:31.000Z | tests/unit/confidant/routes/certificates_test.py | isabella232/confidant | 3dac318c3e1f29bae5771084ad29a4bc121f1771 | [
"Apache-2.0"
] | 136 | 2015-11-04T19:23:14.000Z | 2022-02-25T01:51:29.000Z | import json
from confidant.app import create_app
from confidant.services import certificatemanager
def test_get_certificate(mocker):
app = create_app()
mocker.patch('confidant.settings.USE_AUTH', False)
mocker.patch(
'confidant.authnz.get_logged_in_user',
return_value='badservice',
)... | 29.993103 | 78 | 0.634399 | 921 | 8,698 | 5.731813 | 0.090119 | 0.064596 | 0.117446 | 0.113279 | 0.915135 | 0.894298 | 0.894298 | 0.879144 | 0.866263 | 0.866263 | 0 | 0.009248 | 0.241665 | 8,698 | 289 | 79 | 30.096886 | 0.791086 | 0 | 0 | 0.710526 | 0 | 0 | 0.328581 | 0.224994 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.015038 | false | 0 | 0.011278 | 0 | 0.026316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
11add8fa249fc071d577de895f07d82a7bf6c611 | 82 | py | Python | main.py | donno2048/qruine | 7ec170fb7984de70e4a6765ef2dbb6624d54cd41 | [
"MIT"
] | null | null | null | main.py | donno2048/qruine | 7ec170fb7984de70e4a6765ef2dbb6624d54cd41 | [
"MIT"
] | null | null | null | main.py | donno2048/qruine | 7ec170fb7984de70e4a6765ef2dbb6624d54cd41 | [
"MIT"
] | null | null | null | exec(s:='import qrcode;qrcode.make("exec(s:=%r)"%s).save(open("main.png", "wb"))') | 82 | 82 | 0.621951 | 15 | 82 | 3.4 | 0.733333 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 82 | 1 | 82 | 82 | 0.6375 | 0 | 0 | 0 | 0 | 1 | 0.855422 | 0.686747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
11e9822f551972428279d54e90255955921bdc6d | 163 | py | Python | src/__init__.py | paulwarkentin/tf-ssd-vgg | f48e3ccbb8eb092d3cb82a9d90164c7328880477 | [
"MIT"
] | 5 | 2021-09-26T07:19:42.000Z | 2022-03-11T23:25:36.000Z | ssd/training/__init__.py | bharatmahaur/ComparativeStudy | 2e3b6de882acc2a465e1b7c8bcd23cc9c8181d3d | [
"Apache-2.0"
] | null | null | null | ssd/training/__init__.py | bharatmahaur/ComparativeStudy | 2e3b6de882acc2a465e1b7c8bcd23cc9c8181d3d | [
"Apache-2.0"
] | null | null | null | ##
## /src/__init__.py
##
## Created by Paul Warkentin <paul@warkentin.email> on 22/06/2018.
## Updated by Paul Warkentin <paul@warkentin.email> on 22/06/2018.
##
| 23.285714 | 66 | 0.693252 | 25 | 163 | 4.36 | 0.52 | 0.477064 | 0.275229 | 0.348624 | 0.788991 | 0.788991 | 0.788991 | 0.788991 | 0.788991 | 0.788991 | 0 | 0.112676 | 0.128834 | 163 | 6 | 67 | 27.166667 | 0.65493 | 0.883436 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 12 |
ee966251920b7bf5fee84508474b0ce744609e6f | 33,994 | py | Python | FreeFaucet.io_Bot.py | snoowl26/Crypto-Faucet-Bot | 736695ce318e8f86846824d7c705a535e42650ef | [
"MIT"
] | 7 | 2021-03-04T05:08:12.000Z | 2022-03-25T09:04:13.000Z | FreeFaucet.io_Bot.py | snoowl26/Crypto-Faucet-Bot | 736695ce318e8f86846824d7c705a535e42650ef | [
"MIT"
] | null | null | null | FreeFaucet.io_Bot.py | snoowl26/Crypto-Faucet-Bot | 736695ce318e8f86846824d7c705a535e42650ef | [
"MIT"
] | 10 | 2021-03-05T06:08:57.000Z | 2022-03-28T13:11:24.000Z | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import ElementNotInteractableException
from selenium.common.exceptions import... | 37.897436 | 120 | 0.512355 | 3,396 | 33,994 | 4.989988 | 0.066254 | 0.026201 | 0.02921 | 0.027617 | 0.807683 | 0.794819 | 0.781246 | 0.74401 | 0.729022 | 0.726838 | 0 | 0.016897 | 0.369771 | 33,994 | 896 | 121 | 37.939732 | 0.774085 | 0.009766 | 0 | 0.753968 | 0 | 0.021164 | 0.197295 | 0.028808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001323 | false | 0.019841 | 0.019841 | 0 | 0.021164 | 0.183862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ee98d613512a9bfbd81eafea10bc7efbfd5e750e | 39,917 | py | Python | tests/test_systems.py | jbradberry/universe | 109261f75c49435d118cf9c5238124466a03d2d3 | [
"MIT"
] | null | null | null | tests/test_systems.py | jbradberry/universe | 109261f75c49435d118cf9c5238124466a03d2d3 | [
"MIT"
] | 24 | 2020-04-14T20:32:21.000Z | 2021-08-03T13:29:45.000Z | tests/test_systems.py | jbradberry/universe | 109261f75c49435d118cf9c5238124466a03d2d3 | [
"MIT"
] | 3 | 2016-10-28T19:20:30.000Z | 2021-02-28T03:19:49.000Z | import unittest
from universe import engine, systems
class UpdateTestCase(unittest.TestCase):
def test_create(self):
state = {
'turn': 2500, 'width': 1000, 'seq': 2,
'entities': [
{
'pk': 0,
'type': 'species',
... | 36.222323 | 112 | 0.40003 | 3,509 | 39,917 | 4.318894 | 0.048447 | 0.05226 | 0.038007 | 0.023227 | 0.946156 | 0.94609 | 0.939492 | 0.922732 | 0.918905 | 0.918905 | 0 | 0.073678 | 0.465491 | 39,917 | 1,101 | 113 | 36.255223 | 0.636624 | 0.006564 | 0 | 0.783546 | 0 | 0 | 0.234401 | 0.002774 | 0 | 0 | 0 | 0 | 0.064643 | 1 | 0.022527 | false | 0 | 0.001959 | 0 | 0.027424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
01326a75e13cb645516eee9df670c6535d0e309d | 178 | py | Python | src/bee_psd/exector.py | awenhaowenchao/bee-psd | 945875b47beb877daf2383979deb388f5d686c9f | [
"MIT"
] | 4 | 2019-11-12T05:01:42.000Z | 2022-02-23T01:52:11.000Z | src/bee_psd/exector.py | awenhaowenchao/bee-psd | 945875b47beb877daf2383979deb388f5d686c9f | [
"MIT"
] | 6 | 2021-03-19T08:13:39.000Z | 2022-03-02T15:00:19.000Z | src/bee_psd/exector.py | awenhaowenchao/bee-psd | 945875b47beb877daf2383979deb388f5d686c9f | [
"MIT"
] | null | null | null | class IExecutor():
def exec(self, query, args=[]):
pass
def find_one(self, query, args=[]):
pass
def find_list(self, query, args=[]):
pass
| 16.181818 | 40 | 0.533708 | 22 | 178 | 4.227273 | 0.5 | 0.290323 | 0.419355 | 0.548387 | 0.516129 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314607 | 178 | 10 | 41 | 17.8 | 0.762295 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0 | 0 | 0.571429 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
018e039ae96410a014b4e4ac5ea6b38b97fdfb32 | 255 | py | Python | energyuse/apps/eusers/templatetags/decarbonet_user_extras.py | evhart/energyuse | be76bac535bfea33d30867e232c2dcb35e1c7740 | [
"MIT"
] | null | null | null | energyuse/apps/eusers/templatetags/decarbonet_user_extras.py | evhart/energyuse | be76bac535bfea33d30867e232c2dcb35e1c7740 | [
"MIT"
] | 14 | 2019-12-26T17:01:14.000Z | 2022-03-21T22:16:52.000Z | energyuse/apps/eusers/templatetags/decarbonet_user_extras.py | evhart/energyuse | be76bac535bfea33d30867e232c2dcb35e1c7740 | [
"MIT"
] | null | null | null | from django import template
from energyuse.apps.eusers.models import EnergyConsumption
register = template.Library()
@register.assignment_tag
def average_consumption(email,concept='all'):
return EnergyConsumption.average_consumption(email, concept)
| 28.333333 | 64 | 0.831373 | 29 | 255 | 7.206897 | 0.689655 | 0.172249 | 0.220096 | 0.287081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090196 | 255 | 8 | 65 | 31.875 | 0.900862 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 1 | 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 | 1 | 1 | 1 | 0 | 0 | 7 |
6d7475c34df128adc75dfc9b4a0dd800eb21cf77 | 120 | py | Python | DSToolkit/searching/__init__.py | AndreaFerrante/DSToolkit | 6f527cb4c19127cecd74bb682330236aa4e41839 | [
"MIT"
] | null | null | null | DSToolkit/searching/__init__.py | AndreaFerrante/DSToolkit | 6f527cb4c19127cecd74bb682330236aa4e41839 | [
"MIT"
] | null | null | null | DSToolkit/searching/__init__.py | AndreaFerrante/DSToolkit | 6f527cb4c19127cecd74bb682330236aa4e41839 | [
"MIT"
] | null | null | null | from .binary_search import *
from .linear_search import *
from .jump_search import *
from .interpolation_search import * | 30 | 35 | 0.808333 | 16 | 120 | 5.8125 | 0.4375 | 0.516129 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 120 | 4 | 35 | 30 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6d9bba99d7fc42db759459e5882a59894332b98e | 45 | py | Python | tests/test_files/tuple.py | Procrat/typy | 668cedb7f929256a09f565af9ee43c02889bec3f | [
"MIT"
] | 3 | 2016-03-08T09:55:20.000Z | 2016-09-09T12:54:12.000Z | tests/test_files/tuple.py | Procrat/typy | 668cedb7f929256a09f565af9ee43c02889bec3f | [
"MIT"
] | null | null | null | tests/test_files/tuple.py | Procrat/typy | 668cedb7f929256a09f565af9ee43c02889bec3f | [
"MIT"
] | null | null | null | x = (5, 6)
def f():
return (7, 8)
f()
| 5.625 | 17 | 0.355556 | 9 | 45 | 1.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.377778 | 45 | 7 | 18 | 6.428571 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
6db505101c11af2b04fb26ef5b5a53648a221fe0 | 34 | py | Python | __init__.py | kalliope-project/kalliope_neuron_rss_reader | 1437e61ebd6f4d4d6926f15daef5fe036e4a5fdf | [
"MIT"
] | null | null | null | __init__.py | kalliope-project/kalliope_neuron_rss_reader | 1437e61ebd6f4d4d6926f15daef5fe036e4a5fdf | [
"MIT"
] | 6 | 2017-07-25T21:12:25.000Z | 2020-05-06T12:01:59.000Z | __init__.py | kalliope-project/kalliope_neuron_rss_reader | 1437e61ebd6f4d4d6926f15daef5fe036e4a5fdf | [
"MIT"
] | 5 | 2017-08-10T00:22:22.000Z | 2021-09-05T16:08:16.000Z | from rss_reader import Rss_reader
| 17 | 33 | 0.882353 | 6 | 34 | 4.666667 | 0.666667 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
09c34dd1625f3d016f8a41a7ed770933513ee1b6 | 550 | py | Python | eval_covid19china_timm-regnetx_002_RandomSnow.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | eval_covid19china_timm-regnetx_002_RandomSnow.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | eval_covid19china_timm-regnetx_002_RandomSnow.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | import os
ls=["python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_0_RandomSnow.yml",
"python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_1_RandomSnow.yml",
"python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_2_RandomSnow.yml",
"p... | 50 | 104 | 0.849091 | 80 | 550 | 5.4625 | 0.3 | 0.114416 | 0.1373 | 0.217391 | 0.897025 | 0.897025 | 0.897025 | 0.897025 | 0.897025 | 0.897025 | 0 | 0.057803 | 0.056364 | 550 | 11 | 105 | 50 | 0.7842 | 0 | 0 | 0 | 0 | 0 | 0.880218 | 0.653358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
113c559e22b764a25326e63dc53542fd0b3bfa21 | 144,154 | py | Python | GM2AUTOSAR_MM/GM2AUTOSAR_MM_MM.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | GM2AUTOSAR_MM/GM2AUTOSAR_MM_MM.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | GM2AUTOSAR_MM/GM2AUTOSAR_MM_MM.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z | """
__GM2AUTOSAR_MM_MM.py______________________________________________________
Automatically generated AToM3 MetaModel (DO NOT MODIFY DIRECTLY)
Author: levi
Modified: Sun Aug 9 23:43:00 2015
___________________________________________________________________________
"""
from ASG_GM2AUTOSAR_MM import *
from graph_ASG... | 44.355077 | 721 | 0.626046 | 12,813 | 144,154 | 6.812534 | 0.016234 | 0.048643 | 0.061909 | 0.065827 | 0.934413 | 0.917286 | 0.908098 | 0.905131 | 0.895577 | 0.887363 | 0 | 0.004665 | 0.220785 | 144,154 | 3,249 | 722 | 44.368729 | 0.772432 | 0.014519 | 0 | 0.874717 | 1 | 0 | 0.239569 | 0.013798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011007 | false | 0 | 0.011654 | 0.000324 | 0.060861 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
fed6aab404f176c01045ce8b086097e38c2bb092 | 728 | py | Python | calculate_anything/calculation/__init__.py | friday/ulauncher-albert-calculate-anything | 65e34ded08a4d88a66ec9fcd29bec41e57b32967 | [
"MIT"
] | null | null | null | calculate_anything/calculation/__init__.py | friday/ulauncher-albert-calculate-anything | 65e34ded08a4d88a66ec9fcd29bec41e57b32967 | [
"MIT"
] | null | null | null | calculate_anything/calculation/__init__.py | friday/ulauncher-albert-calculate-anything | 65e34ded08a4d88a66ec9fcd29bec41e57b32967 | [
"MIT"
] | null | null | null | from calculate_anything.calculation.calculation import Calculation, BooleanCalculation
from calculate_anything.calculation.currency import CurrencyCalculation
from calculate_anything.calculation.time import TimeCalculation, LocationTimeCalculation, TimedeltaCalculation
from calculate_anything.calculation.percentage imp... | 72.8 | 134 | 0.898352 | 56 | 728 | 11.553571 | 0.517857 | 0.120556 | 0.194745 | 0.296754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014684 | 0.06456 | 728 | 9 | 135 | 80.888889 | 0.935389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
fefffa50e146f4e2ffe2d459462dcc854252978f | 100 | py | Python | swarm_tasks/envs/__init__.py | rmvanarse/swarm_tasks | 3335297ba8fcdbff756ae519002bcce919d54a84 | [
"MIT"
] | 6 | 2021-03-13T12:54:18.000Z | 2022-01-29T12:12:28.000Z | swarm_tasks/envs/__init__.py | rmvanarse/swarm_tasks | 3335297ba8fcdbff756ae519002bcce919d54a84 | [
"MIT"
] | null | null | null | swarm_tasks/envs/__init__.py | rmvanarse/swarm_tasks | 3335297ba8fcdbff756ae519002bcce919d54a84 | [
"MIT"
] | 2 | 2021-08-06T15:02:15.000Z | 2022-02-08T12:11:30.000Z | import shapely
import swarm_tasks.envs.world
import swarm_tasks.envs.items
import swarm_tasks.utils
| 20 | 29 | 0.87 | 16 | 100 | 5.25 | 0.5 | 0.392857 | 0.571429 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 100 | 4 | 30 | 25 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
28ab36634a7614fc0c7220e8ed2e264d51db0162 | 50,130 | py | Python | src/larksuiteoapi/service/contact/v3/api.py | VXenomac/oapi-sdk-python | 156b789b3d20653802f64842c9a26229dd9252d7 | [
"Apache-2.0"
] | 50 | 2021-04-11T05:24:10.000Z | 2022-03-29T10:14:13.000Z | src/larksuiteoapi/service/contact/v3/api.py | larksuite/oapi-sdk-python | 70fda5b1ccf765938bf207dff0117c0c03a93605 | [
"Apache-2.0"
] | 20 | 2021-04-07T15:17:44.000Z | 2022-03-23T06:27:12.000Z | src/larksuiteoapi/service/contact/v3/api.py | VXenomac/oapi-sdk-python | 156b789b3d20653802f64842c9a26229dd9252d7 | [
"Apache-2.0"
] | 8 | 2021-04-25T15:02:17.000Z | 2022-03-13T15:00:59.000Z | # -*- coding: UTF-8 -*-
# Code generated by lark suite oapi sdk gen
from typing import *
from ....api import Request as APIRequest, Response as APIResponse, set_timeout, set_tenant_key, set_user_access_token, set_path_params, \
set_query_params, set_response_stream, set_is_response_stream, FormData, FormDataFile
... | 34.265208 | 138 | 0.635548 | 5,814 | 50,130 | 5.205366 | 0.027692 | 0.132302 | 0.063442 | 0.031721 | 0.86099 | 0.852465 | 0.837298 | 0.827419 | 0.793121 | 0.775542 | 0 | 0.000754 | 0.259106 | 50,130 | 1,462 | 139 | 34.288646 | 0.814087 | 0.176581 | 0 | 0.843159 | 1 | 0 | 0.048306 | 0.026371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173526 | false | 0 | 0.005562 | 0 | 0.352614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
28cd62e820c61fd82d543321b1b497990059f4fd | 27,906 | py | Python | lepidoptera/migrations/0001_initial.py | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-11-17T18:02:44.000Z | 2021-02-02T04:00:21.000Z | lepidoptera/migrations/0001_initial.py | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2020-06-05T19:00:59.000Z | 2022-01-13T00:52:30.000Z | lepidoptera/migrations/0001_initial.py | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # Generated by Django 2.0.6 on 2018-07-12 07:27
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import lepidoptera.models
import markdownx.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | 60.930131 | 281 | 0.603956 | 2,831 | 27,906 | 5.786648 | 0.077711 | 0.074167 | 0.060798 | 0.092296 | 0.839031 | 0.808265 | 0.757295 | 0.719509 | 0.714504 | 0.696069 | 0 | 0.013662 | 0.252455 | 27,906 | 457 | 282 | 61.063457 | 0.771631 | 0.001613 | 0 | 0.688889 | 1 | 0 | 0.172763 | 0.019599 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011111 | 0 | 0.02 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3ab06d8a1499273e326cfed4b283af32449959f7 | 5,387 | py | Python | plotting/visualise_viability.py | PFMassiani/vibly | 5e552cb2ed375d5cd378b92de2f2473485211f2f | [
"MIT"
] | 5 | 2020-06-08T09:44:44.000Z | 2022-03-12T06:13:10.000Z | plotting/visualise_viability.py | PFMassiani/vibly | 5e552cb2ed375d5cd378b92de2f2473485211f2f | [
"MIT"
] | 7 | 2019-09-27T07:05:34.000Z | 2020-04-27T14:15:07.000Z | plotting/visualise_viability.py | PFMassiani/vibly | 5e552cb2ed375d5cd378b92de2f2473485211f2f | [
"MIT"
] | 6 | 2019-10-02T09:55:10.000Z | 2021-03-08T13:55:21.000Z | import numpy as np
import matplotlib.pyplot as plt
state_colormap = 'viridis' # other sequential colormaps: 'plasma', 'gray'
change_colormap = 'coolwarm' # other diverging colormaps: 'bwr', 'RdBu'
def visualise(data, initial_conditions = [], include_end_state = False,
state_colormap = state_colormap, change... | 33.66875 | 145 | 0.682198 | 927 | 5,387 | 3.703344 | 0.114347 | 0.043694 | 0.013108 | 0.027964 | 0.922225 | 0.903 | 0.88931 | 0.88028 | 0.88028 | 0.88028 | 0 | 0.021408 | 0.158901 | 5,387 | 159 | 146 | 33.880503 | 0.736261 | 0.062744 | 0 | 0.828125 | 0 | 0 | 0.057994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023438 | false | 0 | 0.015625 | 0 | 0.039063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3ad601c320633a1634d7e7ad8913defa2352f198 | 209 | py | Python | tf_model_zoo/__init__.py | zhang-can/ECO-pytorch | 355c3866b35cdaa5d451263c1f3291c150e22eeb | [
"BSD-2-Clause"
] | 192 | 2018-06-13T06:42:03.000Z | 2022-02-22T11:26:41.000Z | tf_model_zoo/__init__.py | aimeng100/ECO-pytorch | f1ea392eea8d651c123fff3b876e233ec51bc2cb | [
"BSD-2-Clause"
] | 64 | 2018-06-20T10:14:17.000Z | 2021-09-08T05:58:25.000Z | tf_model_zoo/__init__.py | aimeng100/ECO-pytorch | f1ea392eea8d651c123fff3b876e233ec51bc2cb | [
"BSD-2-Clause"
] | 43 | 2018-06-30T00:59:43.000Z | 2021-08-25T02:21:23.000Z | from .inceptionresnetv2.pytorch_load import inceptionresnetv2
from .inceptionv4.pytorch_load import inceptionv4
from .bninception.pytorch_load import BNInception, InceptionV3
from .ECO.pytorch_load import ECO
| 41.8 | 62 | 0.875598 | 25 | 209 | 7.16 | 0.36 | 0.24581 | 0.379888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026042 | 0.08134 | 209 | 4 | 63 | 52.25 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3ae583d3b140fe58b0655a068f01aefe20ec56b2 | 6,965 | py | Python | auxiliary/generate_figures.py | mchandra12/replication_gonzalez_2013 | ff8c342e1cd9af225ccb9a4e63069fef1e49431d | [
"MIT"
] | null | null | null | auxiliary/generate_figures.py | mchandra12/replication_gonzalez_2013 | ff8c342e1cd9af225ccb9a4e63069fef1e49431d | [
"MIT"
] | null | null | null | auxiliary/generate_figures.py | mchandra12/replication_gonzalez_2013 | ff8c342e1cd9af225ccb9a4e63069fef1e49431d | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import statsmodels.formula.api as smf
from auxiliary.generate_tables import *
from auxiliary.pre_process_datasets import *
from auxiliary.run_regressions import *
# import pandas as pd
def create_fig_hh_expenditure():
df3_avg = df3.groupby(["month"]).mean()
... | 29.764957 | 88 | 0.634027 | 1,050 | 6,965 | 3.977143 | 0.132381 | 0.069444 | 0.0625 | 0.034483 | 0.824713 | 0.793582 | 0.779454 | 0.744971 | 0.726533 | 0.711207 | 0 | 0.050136 | 0.20962 | 6,965 | 233 | 89 | 29.892704 | 0.708447 | 0.051113 | 0 | 0.553672 | 1 | 0 | 0.203636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.033898 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
aaeeec2348acda5a46d054130f43125e1fffb71a | 3,499 | py | Python | tests/test_class_oelint_vars_srcurireqopt.py | skycaptain/oelint-adv | ff67d3149cf8b1de2b0b2d158a68f4e2cf5e9e46 | [
"BSD-2-Clause"
] | null | null | null | tests/test_class_oelint_vars_srcurireqopt.py | skycaptain/oelint-adv | ff67d3149cf8b1de2b0b2d158a68f4e2cf5e9e46 | [
"BSD-2-Clause"
] | null | null | null | tests/test_class_oelint_vars_srcurireqopt.py | skycaptain/oelint-adv | ff67d3149cf8b1de2b0b2d158a68f4e2cf5e9e46 | [
"BSD-2-Clause"
] | null | null | null | import pytest
from .base import TestBaseClass
class TestClassOelintVarsSRCURIReqOpt(TestBaseClass):
@pytest.mark.parametrize('id', ['oelint.vars.srcurioptions'])
@pytest.mark.parametrize('occurrence', [1])
@pytest.mark.parametrize('input',
[
... | 47.283784 | 110 | 0.356959 | 263 | 3,499 | 4.574144 | 0.1673 | 0.074813 | 0.108063 | 0.124688 | 0.898587 | 0.898587 | 0.898587 | 0.898587 | 0.898587 | 0.898587 | 0 | 0.003041 | 0.530151 | 3,499 | 73 | 111 | 47.931507 | 0.72871 | 0 | 0 | 0.328358 | 0 | 0.119403 | 0.256645 | 0.159188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.029851 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c90d96e1e22f9db6bb7aa0c259d156bcfe3819e2 | 2,482 | py | Python | morepath/tests/test_view_directive.py | DuncanBetts/morepath | acad10489b051df9c512f6735a9338854745a599 | [
"BSD-3-Clause"
] | null | null | null | morepath/tests/test_view_directive.py | DuncanBetts/morepath | acad10489b051df9c512f6735a9338854745a599 | [
"BSD-3-Clause"
] | null | null | null | morepath/tests/test_view_directive.py | DuncanBetts/morepath | acad10489b051df9c512f6735a9338854745a599 | [
"BSD-3-Clause"
] | null | null | null | import morepath
from dectate import ConflictError
from webtest import TestApp as Client
from reg import ClassIndex, KeyIndex
import pytest
from morepath.core import request_method_predicate
def test_view_get_only():
class App(morepath.App):
pass
@App.path(path='')
class Model(object):
def... | 22.160714 | 75 | 0.611604 | 294 | 2,482 | 5.003401 | 0.207483 | 0.079538 | 0.057104 | 0.080897 | 0.709041 | 0.702243 | 0.702243 | 0.64242 | 0.64242 | 0.64242 | 0 | 0.00441 | 0.269138 | 2,482 | 111 | 76 | 22.36036 | 0.806505 | 0 | 0 | 0.703704 | 0 | 0 | 0.040693 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 1 | 0.209877 | false | 0.123457 | 0.074074 | 0.111111 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 7 |
c95714ed2d73b92d1af2c3285210b7418503710e | 15,087 | py | Python | tests/persistence/test_progress.py | pawelkopka/kopf | 51a3a70e09a17cf3baec2946b64b125a90595cf4 | [
"MIT"
] | null | null | null | tests/persistence/test_progress.py | pawelkopka/kopf | 51a3a70e09a17cf3baec2946b64b125a90595cf4 | [
"MIT"
] | null | null | null | tests/persistence/test_progress.py | pawelkopka/kopf | 51a3a70e09a17cf3baec2946b64b125a90595cf4 | [
"MIT"
] | null | null | null | import copy
import datetime
from unittest.mock import Mock
import freezegun
import pytest
from kopf.reactor.states import HandlerOutcome, State, deliver_results
# Timestamps: time zero (0), before (B), after (A), and time zero+1s (1).
TSB = datetime.datetime(2020, 12, 31, 23, 59, 59, 000000)
TS0 = datetime.datetime(... | 46.854037 | 100 | 0.602837 | 1,779 | 15,087 | 5.012367 | 0.074761 | 0.10766 | 0.185713 | 0.212179 | 0.845576 | 0.829539 | 0.79511 | 0.756645 | 0.69261 | 0.640686 | 0 | 0.019169 | 0.1494 | 15,087 | 321 | 101 | 47 | 0.67568 | 0.047789 | 0 | 0.472119 | 0 | 0 | 0.24261 | 0.00725 | 0 | 0 | 0 | 0 | 0.144981 | 1 | 0.063197 | false | 0 | 0.022305 | 0.003717 | 0.089219 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
c979b90c8ac7db83b2a97f3715cb17a9cd239cc2 | 349 | py | Python | test/test_beams.py | ebisim/ebisim | 7197767a4d69fa1f7d5f0582eaf8f35c30f0b1f3 | [
"MIT"
] | 2 | 2021-03-11T11:01:18.000Z | 2021-03-12T11:58:20.000Z | test/test_beams.py | ebisim/ebisim | 7197767a4d69fa1f7d5f0582eaf8f35c30f0b1f3 | [
"MIT"
] | 14 | 2019-06-03T14:56:55.000Z | 2021-07-21T20:01:27.000Z | test/test_beams.py | HPLegion/EBISSimulation | 7197767a4d69fa1f7d5f0582eaf8f35c30f0b1f3 | [
"MIT"
] | 1 | 2019-03-13T13:13:05.000Z | 2019-03-13T13:13:05.000Z | """
Tests for ebisim.beams
"""
#TODO: extend test suite
import ebisim.beams
import pytest
def test_electron_velocity():
assert ebisim.beams.electron_velocity(3e3) == pytest.approx(3.234302e7)
assert ebisim.beams.electron_velocity(3e4) == pytest.approx(9.84447e7)
assert ebisim.beams.electron_velocity(3e5) ... | 26.846154 | 75 | 0.759312 | 47 | 349 | 5.531915 | 0.510638 | 0.211538 | 0.196154 | 0.288462 | 0.380769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094156 | 0.117479 | 349 | 12 | 76 | 29.083333 | 0.75 | 0.131805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.5 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
a34cd1ef8e8d3ce6e617e18be26b8678e5e15f39 | 1,813 | py | Python | llorens/day06/Day06Solver.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | 8 | 2017-12-11T18:22:52.000Z | 2017-12-13T00:50:24.000Z | llorens/day06/Day06Solver.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | 8 | 2017-12-01T14:31:29.000Z | 2017-12-07T21:43:43.000Z | llorens/day06/Day06Solver.py | CloudCoders/AdventOfCode2017 | 5a52d1e89076eccb55686e4af5848de289309813 | [
"MIT"
] | null | null | null | def solve_part_1(sequence):
sequence = sequence.split("\t")
historic = [sequence[:]]
block_redistribution = 0
sequence_size = len(sequence)
for i in range(sequence_size):
sequence[i] = int(sequence[i])
while True:
maximum = -1
index = -1
for i in range(seque... | 24.835616 | 69 | 0.53668 | 199 | 1,813 | 4.778894 | 0.145729 | 0.201893 | 0.037855 | 0.069401 | 0.895899 | 0.895899 | 0.895899 | 0.895899 | 0.895899 | 0.895899 | 0 | 0.013805 | 0.360728 | 1,813 | 73 | 70 | 24.835616 | 0.80673 | 0 | 0 | 0.923077 | 0 | 0 | 0.002205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a3562139dc764ad1b891a07cb37a974ee0ca4b21 | 4,576 | py | Python | apps/strategy/testcases/integration/tests_outerstrategy.py | ycheng-aa/gated_launch_backend | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | [
"MIT"
] | null | null | null | apps/strategy/testcases/integration/tests_outerstrategy.py | ycheng-aa/gated_launch_backend | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | [
"MIT"
] | null | null | null | apps/strategy/testcases/integration/tests_outerstrategy.py | ycheng-aa/gated_launch_backend | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | [
"MIT"
] | null | null | null | from rest_framework import status
from apps.common.tests import BaseTestCase
from apps.auth.models import User
from apps.app.models import App
class OuterStrategyTestCase(BaseTestCase):
'''
外灰策略单元测试
'''
def setUp(self):
self.normal_user = User.objects.get(username='normal_user')
self.... | 47.175258 | 168 | 0.693837 | 599 | 4,576 | 4.884808 | 0.138564 | 0.055366 | 0.114833 | 0.125769 | 0.810663 | 0.781613 | 0.753589 | 0.753589 | 0.71907 | 0.677375 | 0 | 0.020293 | 0.22465 | 4,576 | 96 | 169 | 47.666667 | 0.804397 | 0.027972 | 0 | 0.118644 | 0 | 0 | 0.107571 | 0.004972 | 0 | 0 | 0 | 0 | 0.067797 | 1 | 0.288136 | false | 0 | 0.067797 | 0 | 0.372881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a3819414b1c70303bff9c1ad2c2738e09382cf24 | 2,170 | py | Python | reo/migrations/0144_auto_20211210_2306.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 7 | 2022-01-29T12:10:10.000Z | 2022-03-28T13:45:20.000Z | reo/migrations/0144_auto_20211210_2306.py | NREL/reopt_api | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 12 | 2022-02-01T18:23:18.000Z | 2022-03-31T17:22:17.000Z | reo/migrations/0144_auto_20211210_2306.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 3 | 2022-02-08T19:44:40.000Z | 2022-03-12T11:05:36.000Z | # Generated by Django 3.1.13 on 2021-12-10 23:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reo', '0143_auto_20211209_1922'),
]
operations = [
migrations.RenameField(
model_name='sitemodel',
old_name='year_one_renew... | 31.911765 | 62 | 0.607373 | 211 | 2,170 | 5.763033 | 0.21327 | 0.088816 | 0.177632 | 0.131579 | 0.881579 | 0.879112 | 0.758224 | 0.70148 | 0.70148 | 0.694079 | 0 | 0.021178 | 0.303687 | 2,170 | 67 | 63 | 32.38806 | 0.783587 | 0.021198 | 0 | 0.590164 | 1 | 0 | 0.333648 | 0.281338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016393 | 0 | 0.065574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6e62d838d0f01262da3f452262892e0938627cc4 | 40,852 | py | Python | test_sort.py | imacube/sorting-pictures | 0dad1b5c6ed43a2adb1e7be88f399d207ef95e4d | [
"MIT"
] | null | null | null | test_sort.py | imacube/sorting-pictures | 0dad1b5c6ed43a2adb1e7be88f399d207ef95e4d | [
"MIT"
] | null | null | null | test_sort.py | imacube/sorting-pictures | 0dad1b5c6ed43a2adb1e7be88f399d207ef95e4d | [
"MIT"
] | null | null | null | """Tests for sort.py."""
import shutil
from argparse import Namespace
from datetime import datetime
from pathlib import PosixPath, Path
from unittest.mock import patch, call
import pytest
from sort import SortingPictures
@pytest.fixture
def sorting_pictures():
return SortingPictures()
@pytest.fixture
def name... | 45.644693 | 120 | 0.60024 | 4,735 | 40,852 | 4.941711 | 0.044139 | 0.094876 | 0.036326 | 0.03342 | 0.905039 | 0.874952 | 0.843455 | 0.83666 | 0.831916 | 0.802299 | 0 | 0.068918 | 0.279325 | 40,852 | 894 | 121 | 45.695749 | 0.725859 | 0.000441 | 0 | 0.722455 | 0 | 0 | 0.213652 | 0.138336 | 0 | 0 | 0 | 0 | 0.124128 | 1 | 0.076709 | false | 0 | 0.009763 | 0.002789 | 0.101813 | 0.016736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6e710270fe6fbd8b5352fb19cfcf491ba400103d | 11,681 | py | Python | models/nn.py | AlejandroCatalina/lstm_wind_energy | 6107502fb478040c5942b4ac5bc03c86b0cd1776 | [
"MIT"
] | 1 | 2020-08-16T06:45:54.000Z | 2020-08-16T06:45:54.000Z | models/nn.py | AlejandroCatalina/lstm_wind_energy | 6107502fb478040c5942b4ac5bc03c86b0cd1776 | [
"MIT"
] | null | null | null | models/nn.py | AlejandroCatalina/lstm_wind_energy | 6107502fb478040c5942b4ac5bc03c86b0cd1776 | [
"MIT"
] | null | null | null | import numpy as np
import pyro
import pyro.distributions as dist
import pyro.infer
import pyro.optim
import torch
import torch.nn as nn
from torch.distributions import LogNormal, Normal
class LSTM(nn.Module):
def __init__(self,
input_dim,
hidden_dim,
batch_size,
... | 38.298361 | 94 | 0.568016 | 1,506 | 11,681 | 4.146746 | 0.088977 | 0.077822 | 0.06245 | 0.028183 | 0.877022 | 0.855244 | 0.804644 | 0.782226 | 0.742354 | 0.722178 | 0 | 0.022481 | 0.345005 | 11,681 | 304 | 95 | 38.424342 | 0.793752 | 0.217105 | 0 | 0.748768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039409 | false | 0 | 0.039409 | 0.009852 | 0.118227 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ea0672855b4e30adc8a5e2e8c518de05c0e64ef | 68,685 | py | Python | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC/cmp_GemsFDTD/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC/cmp_GemsFDTD/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC/cmp_GemsFDTD/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.147702 | 124 | 0.682245 | 8,095 | 68,685 | 5.782829 | 0.067696 | 0.123387 | 0.112792 | 0.093309 | 0.937751 | 0.92989 | 0.917521 | 0.886311 | 0.862108 | 0.842519 | 0 | 0.132698 | 0.224081 | 68,685 | 914 | 125 | 75.147702 | 0.745675 | 0 | 0 | 0.642232 | 0 | 0 | 0.656684 | 0.048045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ec9b1c071ae2ec2294afd58051789021b6fded2 | 23,810 | py | Python | user_service_sdk/api/user_admin/user_admin_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | user_service_sdk/api/user_admin/user_admin_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | user_service_sdk/api/user_admin/user_admin_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import user_service_sdk.api.user_admin.alter_password_pb2
import google.protobuf.empty_pb2
import user_service_sdk.api.user_admin.alter_self_password_pb2
import user_service_sdk.api.user_admin.forgot_password_pb2
import user_service_sdk.api.user_admin.get_password_conf... | 38.341385 | 204 | 0.625661 | 2,727 | 23,810 | 5.120645 | 0.064173 | 0.069321 | 0.074191 | 0.054784 | 0.87389 | 0.867588 | 0.862504 | 0.860284 | 0.837726 | 0.813807 | 0 | 0.006899 | 0.281604 | 23,810 | 620 | 205 | 38.403226 | 0.809471 | 0.207518 | 0 | 0.765152 | 0 | 0 | 0.087347 | 0.075292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037879 | false | 0.05303 | 0.050505 | 0 | 0.126263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
6edaad3ab088b634a88f433402a343d534c73f70 | 12,955 | py | Python | app/mock/products.py | algorithm-ssau/coursework | 9bc463ea2f096fda0a891e1cb26bbe34ae73da50 | [
"MIT"
] | 4 | 2020-04-03T05:16:54.000Z | 2020-06-04T18:39:40.000Z | app/mock/products.py | algorithm-ssau/coursework | 9bc463ea2f096fda0a891e1cb26bbe34ae73da50 | [
"MIT"
] | 16 | 2020-04-14T21:50:04.000Z | 2021-06-14T01:16:41.000Z | app/mock/products.py | algorithm-ssau/coursework | 9bc463ea2f096fda0a891e1cb26bbe34ae73da50 | [
"MIT"
] | 1 | 2020-05-26T11:27:55.000Z | 2020-05-26T11:27:55.000Z | MOCK_SALE = [{
"id": 1,
"title": "Demix Magus M",
"description": "Lightweight and flexible Demix Magus training sneakers. Special grooves on the sole, located in places of the anatomical fold of the foot, allow you to move naturally. Ultra-lightweight knitwear with a special weave provides air circulation a... | 58.886364 | 473 | 0.683057 | 1,725 | 12,955 | 5.128696 | 0.183188 | 0.035266 | 0.046117 | 0.054256 | 0.948231 | 0.942579 | 0.942579 | 0.941675 | 0.941675 | 0.941675 | 0 | 0.026017 | 0.210807 | 12,955 | 219 | 474 | 59.155251 | 0.8393 | 0.0555 | 0 | 0.788991 | 0 | 0.110092 | 0.771026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6eedb184ddd6055943755d14318941e72f227ab0 | 75 | py | Python | vindinium/bots/__init__.py | IntelliAgent/vindinium-python-bot | 0f101740ecaabf300d1f3768e236dfe9cae966b7 | [
"WTFPL"
] | null | null | null | vindinium/bots/__init__.py | IntelliAgent/vindinium-python-bot | 0f101740ecaabf300d1f3768e236dfe9cae966b7 | [
"WTFPL"
] | null | null | null | vindinium/bots/__init__.py | IntelliAgent/vindinium-python-bot | 0f101740ecaabf300d1f3768e236dfe9cae966b7 | [
"WTFPL"
] | null | null | null | from .raw_bot import *
from .base_bot import *
from .russelbot import *
| 10.714286 | 24 | 0.72 | 11 | 75 | 4.727273 | 0.545455 | 0.346154 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 75 | 6 | 25 | 12.5 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
42bca4acad9cf3382fe8460504bd0db5203ae581 | 31,527 | py | Python | market_data/test/test_replayed_market_data.py | alphamatic/amp | 5018137097159415c10eaa659a2e0de8c4e403d4 | [
"BSD-3-Clause"
] | 5 | 2021-08-10T23:16:44.000Z | 2022-03-17T17:27:00.000Z | market_data/test/test_replayed_market_data.py | alphamatic/amp | 5018137097159415c10eaa659a2e0de8c4e403d4 | [
"BSD-3-Clause"
] | 330 | 2021-06-10T17:28:22.000Z | 2022-03-31T00:55:48.000Z | market_data/test/test_replayed_market_data.py | alphamatic/amp | 5018137097159415c10eaa659a2e0de8c4e403d4 | [
"BSD-3-Clause"
] | 6 | 2021-06-10T17:20:32.000Z | 2022-03-28T08:08:03.000Z | import logging
from typing import Any, Callable, Tuple
import pandas as pd
import helpers.hasyncio as hasynci
import helpers.hprint as hprint
import helpers.hunit_test as hunitest
import market_data.market_data_example as mdmadaex
import market_data.replayed_market_data as mdremada
_LOG = logging.getLogger(__name__)... | 41.868526 | 114 | 0.59089 | 4,735 | 31,527 | 3.714044 | 0.056177 | 0.076083 | 0.07506 | 0.113158 | 0.883771 | 0.86802 | 0.848573 | 0.844194 | 0.824008 | 0.810759 | 0 | 0.226585 | 0.297269 | 31,527 | 752 | 115 | 41.924202 | 0.567186 | 0.104038 | 0 | 0.635674 | 0 | 0.129032 | 0.42619 | 0.028229 | 0 | 0 | 0 | 0.00266 | 0.026565 | 1 | 0.045541 | false | 0 | 0.01518 | 0 | 0.074004 | 0.003795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
42f4718a6a3a59e8c1149cda9f0208f8c5e802fd | 2,877 | py | Python | axelrod/tests/test_averagecopier.py | DumisaniZA/Axelrod | e59fc40ebb705afe05cea6f30e282d1e9c621259 | [
"MIT"
] | 33 | 2015-02-20T11:36:48.000Z | 2022-02-16T17:02:06.000Z | axelrod/tests/test_averagecopier.py | DumisaniZA/Axelrod | e59fc40ebb705afe05cea6f30e282d1e9c621259 | [
"MIT"
] | 108 | 2015-02-18T14:15:44.000Z | 2020-05-08T10:39:58.000Z | axelrod/tests/test_averagecopier.py | DumisaniZA/Axelrod | e59fc40ebb705afe05cea6f30e282d1e9c621259 | [
"MIT"
] | 41 | 2015-02-18T13:40:04.000Z | 2021-05-31T06:08:10.000Z | """Test for the average_copier strategy."""
import random
import axelrod
from test_player import TestPlayer
class TestAverageCopier(TestPlayer):
name = "Average Copier"
player = axelrod.AverageCopier
stochastic = True
def test_strategy(self):
"""Test that the first strategy is picked rand... | 31.615385 | 69 | 0.593674 | 350 | 2,877 | 4.822857 | 0.142857 | 0.204384 | 0.231635 | 0.34064 | 0.831754 | 0.831754 | 0.803318 | 0.803318 | 0.803318 | 0.785545 | 0 | 0.031619 | 0.263469 | 2,877 | 91 | 70 | 31.615385 | 0.764983 | 0.131734 | 0 | 0.836066 | 0 | 0 | 0.030113 | 0 | 0 | 0 | 0 | 0 | 0.377049 | 1 | 0.098361 | false | 0 | 0.04918 | 0 | 0.278689 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
42f83643dd846e8d8625b1943918528e7274693e | 97 | py | Python | tests/test_version.py | DjaPy/fastapi-asyncapi | 8a99f29bd1bf9041859c662d9b5dba612e0d60ec | [
"MIT"
] | 10 | 2021-02-20T00:21:24.000Z | 2022-03-18T14:56:19.000Z | tests/test_version.py | DjaPy/fastapi-asyncapi | 8a99f29bd1bf9041859c662d9b5dba612e0d60ec | [
"MIT"
] | 2 | 2022-02-04T12:54:33.000Z | 2022-02-10T06:08:59.000Z | tests/test_version.py | DjaPy/fastapi-asyncapi | 8a99f29bd1bf9041859c662d9b5dba612e0d60ec | [
"MIT"
] | 1 | 2022-02-06T12:04:21.000Z | 2022-02-06T12:04:21.000Z | import fastapi_asyncapi
def test_version():
assert fastapi_asyncapi.__version__ == "0.1.0"
| 16.166667 | 50 | 0.752577 | 13 | 97 | 5.076923 | 0.692308 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.14433 | 97 | 5 | 51 | 19.4 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6e4a5de4cb4fa30529430cb38122dca73bb8673e | 123 | py | Python | deepchem/models/tensorgraph/__init__.py | n3011/deepchem | c316d998c462ce01032f0dae883856b400ea4765 | [
"MIT"
] | 14 | 2017-10-12T23:47:23.000Z | 2022-02-09T13:13:51.000Z | deepchem/models/tensorgraph/__init__.py | n3011/deepchem | c316d998c462ce01032f0dae883856b400ea4765 | [
"MIT"
] | 2 | 2017-08-02T20:35:13.000Z | 2017-08-10T21:17:31.000Z | deepchem/models/tensorgraph/__init__.py | n3011/deepchem | c316d998c462ce01032f0dae883856b400ea4765 | [
"MIT"
] | 5 | 2017-03-19T01:48:13.000Z | 2019-02-22T01:12:03.000Z | from deepchem.models.tensorgraph.tensor_graph import TensorGraph, TFWrapper
from deepchem.models.tensorgraph import models
| 123 | 123 | 0.878049 | 15 | 123 | 7.133333 | 0.533333 | 0.224299 | 0.336449 | 0.542056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 123 | 1 | 123 | 123 | 0.938596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
285d7f777578a794d7c4b0291a04c15070a301fc | 7,158 | py | Python | tests/unit/test_visit_flowers.py | man-group/hiveminder | 0ec31d7abce11dde7cce99fe262781d254df2eb7 | [
"BSD-2-Clause"
] | 5 | 2022-01-27T16:38:53.000Z | 2022-02-09T22:43:15.000Z | tests/unit/test_visit_flowers.py | man-group/hiveminder | 0ec31d7abce11dde7cce99fe262781d254df2eb7 | [
"BSD-2-Clause"
] | null | null | null | tests/unit/test_visit_flowers.py | man-group/hiveminder | 0ec31d7abce11dde7cce99fe262781d254df2eb7 | [
"BSD-2-Clause"
] | 2 | 2020-11-04T19:51:15.000Z | 2022-02-09T22:50:54.000Z | from __future__ import absolute_import
from hiveminder.game import GameState, make_flowers
from hiveminder.bee import Bee
from hiveminder.seed import Seed
from hiveminder.flower import Flower
from hiveminder.game_params import DEFAULT_GAME_PARAMETERS
from mock import sentinel, patch, Mock, ANY
import pytest
@patch.di... | 51.128571 | 161 | 0.649623 | 904 | 7,158 | 4.811947 | 0.102876 | 0.128966 | 0.246207 | 0.069885 | 0.832184 | 0.832184 | 0.787816 | 0.741609 | 0.716092 | 0.705517 | 0 | 0.039941 | 0.247974 | 7,158 | 139 | 162 | 51.496403 | 0.768159 | 0 | 0 | 0.587156 | 0 | 0 | 0.020536 | 0.01397 | 0 | 0 | 0 | 0 | 0.073395 | 1 | 0.06422 | false | 0 | 0.073395 | 0 | 0.137615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
955fb0cfe9ee87a23163bda978fc46cf5781c5ae | 529 | py | Python | flaskr/populate_db.py | johnsliao/D3.js-flask | 6785ecdd48e5d12eefd539681c9fe54b370723e3 | [
"MIT"
] | 21 | 2016-05-14T15:53:39.000Z | 2022-02-16T07:21:16.000Z | flaskr/populate_db.py | johnsliao/D3.js-flask | 6785ecdd48e5d12eefd539681c9fe54b370723e3 | [
"MIT"
] | 1 | 2017-12-28T17:02:44.000Z | 2017-12-28T17:02:44.000Z | flaskr/populate_db.py | johnsliao/D3.js-flask | 6785ecdd48e5d12eefd539681c9fe54b370723e3 | [
"MIT"
] | 6 | 2017-10-23T20:54:12.000Z | 2020-12-26T14:48:31.000Z | import sqlite3
conn = sqlite3.connect('flaskr.db')
c = conn.cursor()
c.execute('insert into entries (week, data1, data2) values (1, 5, 2)')
c.execute('insert into entries (week, data1, data2) values (2, 2, 4)')
c.execute('insert into entries (week, data1, data2) values (3, 9, 6)')
c.execute('insert into entries (week... | 37.785714 | 72 | 0.68431 | 86 | 529 | 4.209302 | 0.348837 | 0.132597 | 0.232044 | 0.298343 | 0.745856 | 0.745856 | 0.745856 | 0.745856 | 0.745856 | 0 | 0 | 0.080963 | 0.136106 | 529 | 14 | 73 | 37.785714 | 0.71116 | 0 | 0 | 0 | 0 | 0 | 0.671698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95614786765fb1eee5461063b13bad26899e9bd9 | 22,348 | py | Python | tests/compiler/compose/compose_push/test_push_compose_agg.py | CCD-HRI/congregation | a552856b03a64a4295792184107c4e529ca3f4ae | [
"MIT"
] | 3 | 2020-10-05T16:30:15.000Z | 2021-01-22T13:38:02.000Z | tests/compiler/compose/compose_push/test_push_compose_agg.py | CCD-HRI/congregation | a552856b03a64a4295792184107c4e529ca3f4ae | [
"MIT"
] | null | null | null | tests/compiler/compose/compose_push/test_push_compose_agg.py | CCD-HRI/congregation | a552856b03a64a4295792184107c4e529ca3f4ae | [
"MIT"
] | 1 | 2021-02-19T12:40:57.000Z | 2021-02-19T12:40:57.000Z | from congregation.lang import *
from congregation.dag import Dag
from congregation.dag.nodes.internal import *
from congregation.comp import PushDown, PushUp
from tests.utils import create_cols, compare_to_expected
import pytest
@pytest.mark.parametrize("party_data, expected", [
(
[
{
... | 36.220421 | 116 | 0.309513 | 1,727 | 22,348 | 3.75275 | 0.041112 | 0.053078 | 0.156457 | 0.041969 | 0.952631 | 0.952631 | 0.952631 | 0.939978 | 0.939978 | 0.939978 | 0 | 0.054743 | 0.522642 | 22,348 | 616 | 117 | 36.279221 | 0.552775 | 0 | 0 | 0.651163 | 0 | 0 | 0.170933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003322 | false | 0 | 0.009967 | 0 | 0.013289 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
957f629c9ce69bd746322a15fc799c745d495052 | 154 | py | Python | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_1/_pkg0_1_1_1/_pkg0_1_1_1_1/__init__.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_1/_pkg0_1_1_1/_pkg0_1_1_1_1/__init__.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_1/_pkg0_1_1_1/_pkg0_1_1_1_1/__init__.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from ._mod0_1_1_1_1_0 import *
from ._mod0_1_1_1_1_1 import *
from ._mod0_1_1_1_1_2 import *
from ._mod0_1_1_1_1_3 import *
from ._mod0_1_1_1_1_4 import * | 30.8 | 30 | 0.811688 | 40 | 154 | 2.375 | 0.2 | 0.336842 | 0.347368 | 0.252632 | 0.884211 | 0.884211 | 0.757895 | 0 | 0 | 0 | 0 | 0.222222 | 0.123377 | 154 | 5 | 31 | 30.8 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 12 |
95fef0908bea31cda36642ddae6f5df42f10b474 | 26,044 | py | Python | watcherclient/tests/unit/v1/test_audit_shell.py | openstack/python-watcherclient | 765701da39030df367f27c9c1b8b95b743fb1279 | [
"Apache-2.0"
] | 17 | 2015-10-18T02:56:38.000Z | 2019-03-12T11:18:50.000Z | watcherclient/tests/unit/v1/test_audit_shell.py | stackforge/python-watcherclient | 765701da39030df367f27c9c1b8b95b743fb1279 | [
"Apache-2.0"
] | null | null | null | watcherclient/tests/unit/v1/test_audit_shell.py | stackforge/python-watcherclient | 765701da39030df367f27c9c1b8b95b743fb1279 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2013 IBM Corp
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 37.152639 | 79 | 0.631777 | 3,180 | 26,044 | 4.894025 | 0.072327 | 0.025702 | 0.046264 | 0.052625 | 0.891216 | 0.850993 | 0.817773 | 0.798561 | 0.780055 | 0.768425 | 0 | 0.08092 | 0.258831 | 26,044 | 700 | 80 | 37.205714 | 0.725328 | 0.022846 | 0 | 0.71831 | 0 | 0 | 0.187252 | 0.092014 | 0 | 0 | 0 | 0 | 0.15493 | 1 | 0.056338 | false | 0 | 0.010563 | 0 | 0.084507 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
254160d1dd7cb4e489aa976a263004ee68c0094f | 576 | py | Python | src/tensor/op/functor/conversion.py | jedhsu/tensor | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | [
"Apache-2.0"
] | null | null | null | src/tensor/op/functor/conversion.py | jedhsu/tensor | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | [
"Apache-2.0"
] | null | null | null | src/tensor/op/functor/conversion.py | jedhsu/tensor | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | [
"Apache-2.0"
] | null | null | null | """
Type casting operators.
"""
import jax.numpy as jnp
from .base import ArrayOperator
class CastingOperator(ArrayOperator):
"""
Type promotion and demotion.
"""
Promote = jnp.promote_types
BitIntoU8 = jnp.packbits # [TODO] clarify
U8IntoBit = jnp.unpackbits
"""
Type conversion / c... | 13.090909 | 50 | 0.677083 | 61 | 576 | 6.344262 | 0.459016 | 0.082687 | 0.113695 | 0.129199 | 0.728682 | 0.728682 | 0.728682 | 0.728682 | 0.728682 | 0.728682 | 0 | 0.004494 | 0.227431 | 576 | 43 | 51 | 13.395349 | 0.865169 | 0.194444 | 0 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
2566aa339f399ad9acbc15ed6fc483193462238c | 11,513 | py | Python | liveodds/processing.py | nik849/LiveOdds | 678b447529ab2367459f7937b02048d3eba7ce79 | [
"MIT"
] | null | null | null | liveodds/processing.py | nik849/LiveOdds | 678b447529ab2367459f7937b02048d3eba7ce79 | [
"MIT"
] | null | null | null | liveodds/processing.py | nik849/LiveOdds | 678b447529ab2367459f7937b02048d3eba7ce79 | [
"MIT"
] | null | null | null | from numpy import where
def process(data, tc_data, leagues):
"""
Processing method for returning liveodds from totalcorner request
"""
overall_results = []
overall_preds = []
results_preds = {}
league_dict = {}
results = {}
teams = []
for match in tc_data:
teams.append(... | 51.168889 | 117 | 0.448797 | 1,249 | 11,513 | 4.072058 | 0.115292 | 0.064491 | 0.051121 | 0.047188 | 0.825403 | 0.809674 | 0.803775 | 0.803775 | 0.803775 | 0.790405 | 0 | 0.02161 | 0.328759 | 11,513 | 224 | 118 | 51.397321 | 0.636517 | 0.010423 | 0 | 0.725888 | 0 | 0 | 0.155327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005076 | false | 0.010152 | 0.005076 | 0 | 0.015228 | 0.010152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c2665b3172487a86291cbc5a2e9228c5346150ca | 7,747 | py | Python | bindings/python/ensmallen_graph/datasets/linqs/citeseer.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | null | null | null | bindings/python/ensmallen_graph/datasets/linqs/citeseer.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | null | null | null | bindings/python/ensmallen_graph/datasets/linqs/citeseer.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | null | null | null | """
This file offers the methods to automatically retrieve the graph CiteSeer.
The graph is automatically retrieved from the LINQS repository.
The CiteSeer dataset consists of 3312 scientific publications classified
into one of six classes. The citation network consists of 4732 links. Each
publication in the dataset... | 33.97807 | 128 | 0.70324 | 1,063 | 7,747 | 5.068674 | 0.267168 | 0.025241 | 0.019488 | 0.005939 | 0.821826 | 0.809577 | 0.809577 | 0.809577 | 0.809577 | 0.809577 | 0 | 0.049322 | 0.20963 | 7,747 | 227 | 129 | 34.127753 | 0.830639 | 0.898541 | 0 | 0 | 0 | 0 | 0.212249 | 0.133052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c2e3994a67949e9860b543ab0474157d7323beca | 34 | py | Python | bar/bar.py | PawelBogdan/AdditionalLibrary | ea7dfd69b998c57af7f7bc7490dbe26b649b4679 | [
"MIT"
] | null | null | null | bar/bar.py | PawelBogdan/AdditionalLibrary | ea7dfd69b998c57af7f7bc7490dbe26b649b4679 | [
"MIT"
] | null | null | null | bar/bar.py | PawelBogdan/AdditionalLibrary | ea7dfd69b998c57af7f7bc7490dbe26b649b4679 | [
"MIT"
] | null | null | null |
def f():
return "FOO BAR!!!"
| 8.5 | 23 | 0.470588 | 5 | 34 | 3.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 34 | 3 | 24 | 11.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
6c058c2e51b5e7ae0172dc1a97021a132586c837 | 289 | py | Python | src/vigorish/cli/components/__init__.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 2 | 2021-07-15T13:53:33.000Z | 2021-07-25T17:03:29.000Z | src/vigorish/cli/components/__init__.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 650 | 2019-05-18T07:00:12.000Z | 2022-01-21T19:38:55.000Z | src/vigorish/cli/components/__init__.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 2 | 2020-03-28T21:01:31.000Z | 2022-01-06T05:16:11.000Z | # flake8: noqa
from vigorish.cli.components.data_set_check import DataSetCheck
from vigorish.cli.components.date_input import DateInput
from vigorish.cli.components.job_name_input import JobNameInput
from vigorish.cli.components.prompts import *
from vigorish.cli.components.util import *
| 41.285714 | 63 | 0.854671 | 40 | 289 | 6.05 | 0.475 | 0.247934 | 0.309917 | 0.516529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.079585 | 289 | 6 | 64 | 48.166667 | 0.906015 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6c32570603acb4e88589377c1bd8936afe15b718 | 38 | py | Python | __init__.py | Mateil04/bcg_analysis | 0eb1582439e00ff77634389e26c40ef573e09930 | [
"MIT"
] | 1 | 2020-11-04T09:56:46.000Z | 2020-11-04T09:56:46.000Z | __init__.py | Mateil04/bcg_analysis | 0eb1582439e00ff77634389e26c40ef573e09930 | [
"MIT"
] | null | null | null | __init__.py | Mateil04/bcg_analysis | 0eb1582439e00ff77634389e26c40ef573e09930 | [
"MIT"
] | null | null | null | from .bcg_analysis import Generate_BCG | 38 | 38 | 0.894737 | 6 | 38 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.914286 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6c3d551ae0543efbea2ecb4b38db0c7bdca4dbd2 | 268 | py | Python | checkov/common/checks_infra/solvers/__init__.py | niradler/checkov | 2628c6f28a5604efe3877d6eacc3044d2b66b7b1 | [
"Apache-2.0"
] | 4,013 | 2019-12-09T13:16:54.000Z | 2022-03-31T14:31:01.000Z | checkov/common/checks_infra/solvers/__init__.py | niradler/checkov | 2628c6f28a5604efe3877d6eacc3044d2b66b7b1 | [
"Apache-2.0"
] | 1,258 | 2019-12-17T09:55:51.000Z | 2022-03-31T19:17:17.000Z | checkov/common/checks_infra/solvers/__init__.py | niradler/checkov | 2628c6f28a5604efe3877d6eacc3044d2b66b7b1 | [
"Apache-2.0"
] | 638 | 2019-12-19T08:57:38.000Z | 2022-03-30T21:38:37.000Z | from checkov.common.checks_infra.solvers.attribute_solvers import *
from checkov.common.checks_infra.solvers.complex_solvers import *
from checkov.common.checks_infra.solvers.connections_solvers import *
from checkov.common.checks_infra.solvers.filter_solvers import * | 67 | 69 | 0.869403 | 36 | 268 | 6.25 | 0.305556 | 0.195556 | 0.302222 | 0.408889 | 0.795556 | 0.795556 | 0.64 | 0.64 | 0 | 0 | 0 | 0 | 0.05597 | 268 | 4 | 70 | 67 | 0.889328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6c77ce4dcb86308954ea80a4967b669b0d08eae0 | 217 | py | Python | backend/streams_explorer/api/dependencies/dataflow_graph.py | twiechert/streams-explorer | 7b5840f1efa0f7e352aef05ef8648188ee188f7a | [
"MIT"
] | 24 | 2021-02-17T16:29:07.000Z | 2022-01-03T05:13:31.000Z | backend/streams_explorer/api/dependencies/dataflow_graph.py | twiechert/streams-explorer | 7b5840f1efa0f7e352aef05ef8648188ee188f7a | [
"MIT"
] | 116 | 2021-02-03T08:44:27.000Z | 2022-03-22T09:50:03.000Z | backend/streams_explorer/api/dependencies/dataflow_graph.py | twiechert/streams-explorer | 7b5840f1efa0f7e352aef05ef8648188ee188f7a | [
"MIT"
] | 2 | 2021-04-06T15:34:37.000Z | 2021-05-14T16:52:44.000Z | from starlette.requests import Request
from streams_explorer.core.services.dataflow_graph import DataFlowGraph
def get_dataflow_graph(request: Request) -> DataFlowGraph:
return request.app.state.dataflow_graph
| 27.125 | 71 | 0.83871 | 27 | 217 | 6.555556 | 0.62963 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101382 | 217 | 7 | 72 | 31 | 0.907692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
6c7e35dda1131aaa45a4045dd283e7ac40f11d9f | 84 | py | Python | day1/test_d1.py | agnul/AdventOfCode2019 | 422a8cc11889473e9a046f25131163fe0b67d6b5 | [
"Unlicense"
] | null | null | null | day1/test_d1.py | agnul/AdventOfCode2019 | 422a8cc11889473e9a046f25131163fe0b67d6b5 | [
"Unlicense"
] | null | null | null | day1/test_d1.py | agnul/AdventOfCode2019 | 422a8cc11889473e9a046f25131163fe0b67d6b5 | [
"Unlicense"
] | null | null | null | from day1 import fuel_for_mass
def test_fuel():
assert fuel_for_mass(2) == -2
| 14 | 33 | 0.714286 | 15 | 84 | 3.666667 | 0.666667 | 0.254545 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.190476 | 84 | 5 | 34 | 16.8 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
dd172ed876c103df3eb96c53ea9bf82cc0d4d109 | 54,411 | py | Python | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/global_/timers/max_metric/state/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 64 | 2016-10-20T15:47:18.000Z | 2021-11-11T11:57:32.000Z | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/global_/timers/max_metric/state/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 126 | 2016-10-05T10:36:14.000Z | 2019-05-15T08:43:23.000Z | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/global_/timers/max_metric/state/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 63 | 2016-11-07T15:23:08.000Z | 2021-09-22T14:41:16.000Z | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | 46.465414 | 1,256 | 0.556285 | 5,346 | 54,411 | 5.454545 | 0.047138 | 0.051852 | 0.08203 | 0.09273 | 0.98714 | 0.979698 | 0.979698 | 0.979698 | 0.979698 | 0.979698 | 0 | 0.007796 | 0.339913 | 54,411 | 1,170 | 1,257 | 46.505128 | 0.804098 | 0.189576 | 0 | 0.832244 | 0 | 0.008715 | 0.345171 | 0.15442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030501 | false | 0 | 0.01634 | 0 | 0.079521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dd4bfe6ab18e48a9f82bec85bbc8b4e548b7d05d | 101 | py | Python | veros/setups/global_flexible/__init__.py | AkasDutta/veros | 9f530596a0148a398829050017de3e01a71261a0 | [
"MIT"
] | 115 | 2019-11-23T02:31:30.000Z | 2022-03-29T12:58:30.000Z | veros/setups/global_flexible/__init__.py | AkasDutta/veros | 9f530596a0148a398829050017de3e01a71261a0 | [
"MIT"
] | 207 | 2019-11-21T13:21:22.000Z | 2022-03-31T23:36:09.000Z | veros/setups/global_flexible/__init__.py | AkasDutta/veros | 9f530596a0148a398829050017de3e01a71261a0 | [
"MIT"
] | 21 | 2020-01-28T13:13:39.000Z | 2022-02-02T13:46:33.000Z | from veros.setups.global_flexible.global_flexible import GlobalFlexibleResolutionSetup # noqa: F401
| 50.5 | 100 | 0.871287 | 11 | 101 | 7.818182 | 0.818182 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.079208 | 101 | 1 | 101 | 101 | 0.892473 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
660af869b370530ef30d6c8acfd09ec07324f139 | 2,022 | py | Python | predict-py.py | kristinepetrosyan/spamemailclassify | a0998958a7069b301e337cf1982cbac618420eba | [
"MIT"
] | null | null | null | predict-py.py | kristinepetrosyan/spamemailclassify | a0998958a7069b301e337cf1982cbac618420eba | [
"MIT"
] | null | null | null | predict-py.py | kristinepetrosyan/spamemailclassify | a0998958a7069b301e337cf1982cbac618420eba | [
"MIT"
] | null | null | null | {"cells":[{"metadata":{"_uuid":"9675078f-2f01-4e9e-8d52-4f1bf7e90718","_cell_guid":"2b3a4220-20af-4ba3-89bd-7a1f7fffd9aa","trusted":true},"cell_type":"code","source":"from joblib import load\nfrom preprocess import prep_data\nimport time\nimport os\n\n\n##################################################################... | 2,022 | 2,022 | 0.541543 | 236 | 2,022 | 4.5 | 0.550847 | 0.026365 | 0.011299 | 0.007533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028655 | 0.154303 | 2,022 | 1 | 2,022 | 2,022 | 0.592398 | 0 | 0 | 0 | 0 | 2 | 0.693524 | 0.242709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 9 |
66148a4106865da76f6dea65d4ecc0762716bb5e | 17,047 | py | Python | python_code/tiny_tile_server/python_wmts.py | jharpster/WMTS | 59768683ea96cdf3e5520e3209f2edd2644d1bd4 | [
"Unlicense"
] | 4 | 2016-07-29T08:00:44.000Z | 2019-11-29T16:08:20.000Z | python_code/tiny_tile_server/python_wmts.py | carmencampos/WMTS | 59768683ea96cdf3e5520e3209f2edd2644d1bd4 | [
"Unlicense"
] | null | null | null | python_code/tiny_tile_server/python_wmts.py | carmencampos/WMTS | 59768683ea96cdf3e5520e3209f2edd2644d1bd4 | [
"Unlicense"
] | null | null | null |
import bottle
import python_server
from python_server import *
python_wmts = bottle.Bottle()
def get_tile_wmts(mylayer, x, y, z, ext):
mercator = GlobalMercator()
layer = mylayer
mytitle = title
config = config_url[0]
TileMatrix = z
TileCol = x
TileRow = y
global mymaps
mymaps = maps()
m = mymaps[0]
b... | 36.270213 | 373 | 0.720185 | 1,628 | 17,047 | 7.536241 | 0.152948 | 0.086886 | 0.069362 | 0.102535 | 0.755481 | 0.746271 | 0.744233 | 0.740484 | 0.715951 | 0.706659 | 0 | 0.156439 | 0.126298 | 17,047 | 470 | 374 | 36.270213 | 0.667316 | 0.008271 | 0 | 0.731868 | 0 | 0.013187 | 0.931369 | 0.656964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002198 | false | 0 | 0.006593 | 0 | 0.010989 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b07bf14d29a94269f7b6cba71bb6d34bcd7884cb | 525,118 | py | Python | src/test/resources/nsgConvertedModel/main_script.py | openworm/org.geppetto.simulator.external | 97313038fba475bedc80fe8e52c4db3c9994d417 | [
"MIT"
] | 2 | 2016-12-12T12:33:56.000Z | 2021-03-06T16:30:24.000Z | src/test/resources/nsgConvertedModel/main_script.py | openworm/org.geppetto.simulator.external | 97313038fba475bedc80fe8e52c4db3c9994d417 | [
"MIT"
] | 17 | 2015-02-25T19:33:10.000Z | 2021-03-24T17:31:52.000Z | src/test/resources/nsgConvertedModel/main_script.py | openworm/org.geppetto.simulator.external | 97313038fba475bedc80fe8e52c4db3c9994d417 | [
"MIT"
] | null | null | null | '''
Neuron simulator export for:
Components:
network_ACnet2 (Type: networkWithTemperature: temperature=279.45 (SI temperature))
sim1 (Type: Simulation: length=0.3 (SI time) step=1.0E-5 (SI time))
This NEURON file has been generated by org.neuroml.export (see https://github.com/NeuroML/org.neuroml.expor... | 71.019475 | 451 | 0.738704 | 100,014 | 525,118 | 3.441928 | 0.037115 | 0.02324 | 0.091843 | 0.053805 | 0.858547 | 0.83886 | 0.821811 | 0.767401 | 0.739255 | 0.696503 | 0 | 0.159656 | 0.095451 | 525,118 | 7,393 | 452 | 71.029082 | 0.565069 | 0.205428 | 0 | 0.01014 | 0 | 0.213376 | 0.710498 | 0.512987 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000432 | 0 | 0.000432 | 0.01165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b0bf807fb007754900ae316059c2c6a8e9ea7e6e | 386 | py | Python | Sums.py | Taekkjin/Taekk | e1479c14ccb778c5690c1f93f364fad5395cbf41 | [
"MIT"
] | null | null | null | Sums.py | Taekkjin/Taekk | e1479c14ccb778c5690c1f93f364fad5395cbf41 | [
"MIT"
] | null | null | null | Sums.py | Taekkjin/Taekk | e1479c14ccb778c5690c1f93f364fad5395cbf41 | [
"MIT"
] | null | null | null | n = 0
for i in range(1,6):
n = n + 1
print(n)
print('\n')
n = 0
for i in range(1,11):
n = n + 1
print(n)
print('\n')
n = 0
for i in range(0,6):
n = n+i**2
print(n)
print('\n')
n = 0
for i in range(0,6):
n = n+i**3
print(n)
print('\n')
n = 0
for i in range(0,6):
n = n + (i - 1)**2
print(n)
print('\n')... | 9.414634 | 21 | 0.484456 | 96 | 386 | 1.947917 | 0.125 | 0.385027 | 0.192513 | 0.352941 | 0.962567 | 0.962567 | 0.802139 | 0.647059 | 0.647059 | 0.647059 | 0 | 0.09507 | 0.264249 | 386 | 41 | 22 | 9.414634 | 0.56338 | 0 | 0 | 0.766667 | 0 | 0 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b0c8494c7a1d2a3f44e2e174f489619d55c35da6 | 1,571 | py | Python | colour/appearance/__init__.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 2 | 2020-05-03T20:15:42.000Z | 2021-04-09T18:19:06.000Z | colour/appearance/__init__.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | null | null | null | colour/appearance/__init__.py | BPearlstine/colour | 40f0281295496774d2a19eee017d50fd0c265bd8 | [
"Cube",
"BSD-3-Clause"
] | 1 | 2019-12-11T19:48:27.000Z | 2019-12-11T19:48:27.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from .hunt import (Hunt_InductionFactors, HUNT_VIEWING_CONDITIONS,
Hunt_Specification, XYZ_to_Hunt)
from .atd95 import ATD95_Specification, XYZ_to_ATD95
from .ciecam02 import (CIECAM02_InductionFactors, CIECAM02_VIEWING_CONDITIONS,
... | 38.317073 | 78 | 0.735837 | 170 | 1,571 | 6.123529 | 0.135294 | 0.215178 | 0.242075 | 0.059558 | 0.835735 | 0.708934 | 0.708934 | 0.708934 | 0.708934 | 0.708934 | 0 | 0.050038 | 0.173138 | 1,571 | 40 | 79 | 39.275 | 0.751347 | 0.013367 | 0 | 0.111111 | 0 | 0 | 0.307494 | 0.164729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
b0d64d3f3dbb7eff9cf0c3b7454cf36632aa09be | 14,547 | py | Python | src/bibim/expr_func.py | rishubil/pybibim | 3f29207feab250e87b00a97306deb562f8ca3e46 | [
"MIT"
] | 1 | 2015-08-24T10:51:07.000Z | 2015-08-24T10:51:07.000Z | src/bibim/expr_func.py | rishubil/pybibim | 3f29207feab250e87b00a97306deb562f8ca3e46 | [
"MIT"
] | 9 | 2016-07-19T17:21:13.000Z | 2017-01-22T05:43:00.000Z | src/bibim/expr_func.py | bibim-lang/pybibim | 3f29207feab250e87b00a97306deb562f8ca3e46 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import datatype
from .utils import safe_get_value, safe_get_evaled_expr
class Func:
""" Expr이 평가될 때 실행된 함수를 정의하는 class입니다.
세부적인 동작은 해당 class를 상속받은 class에서 정의합니다.
"""
def call(self):
""" Expr이 평가될 때 실행되는 method입니다.
... | 30.180498 | 118 | 0.616141 | 1,941 | 14,547 | 4.365791 | 0.068006 | 0.08178 | 0.058414 | 0.070097 | 0.850248 | 0.837031 | 0.829596 | 0.826174 | 0.826174 | 0.822634 | 0 | 0.000095 | 0.274421 | 14,547 | 481 | 119 | 30.243243 | 0.802748 | 0.23235 | 0 | 0.691244 | 0 | 0 | 0.02862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253456 | false | 0 | 0.013825 | 0.129032 | 0.640553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
b01e456fa2d32b2af6b0389a9e071f79e4dc144d | 30,797 | py | Python | routes/api/merchantApi.py | chojh04/BackOffice | d6a9d9be3689abfcb3e0a47b09b1589e74334ddc | [
"MIT"
] | null | null | null | routes/api/merchantApi.py | chojh04/BackOffice | d6a9d9be3689abfcb3e0a47b09b1589e74334ddc | [
"MIT"
] | null | null | null | routes/api/merchantApi.py | chojh04/BackOffice | d6a9d9be3689abfcb3e0a47b09b1589e74334ddc | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import json
from flask import Blueprint, request
from flask.globals import session
from util.common import paramEscape, getApiData, postApiData, getApiSingleData, \
strToLong, getParameter, getData, setStringToNumber, postData
from util.common import putApiData, deleteApiData, setNoneToBlan... | 47.526235 | 134 | 0.613858 | 2,555 | 30,797 | 7.27045 | 0.092759 | 0.107666 | 0.249785 | 0.061746 | 0.832257 | 0.754576 | 0.730728 | 0.708064 | 0.687285 | 0.676895 | 0 | 0.001039 | 0.24983 | 30,797 | 647 | 135 | 47.599691 | 0.803013 | 0.018346 | 0 | 0.696915 | 0 | 0 | 0.239756 | 0.05567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010889 | null | null | 0.016334 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 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 | 7 |
b02554099459f6c2823d52b5a6cc2a14661ed080 | 49 | py | Python | main_app/mixins/__init__.py | radekska/django-network-controller | 6bcb847cbe1efa7dee118974de5e49b4f411e5da | [
"MIT"
] | null | null | null | main_app/mixins/__init__.py | radekska/django-network-controller | 6bcb847cbe1efa7dee118974de5e49b4f411e5da | [
"MIT"
] | null | null | null | main_app/mixins/__init__.py | radekska/django-network-controller | 6bcb847cbe1efa7dee118974de5e49b4f411e5da | [
"MIT"
] | null | null | null | from .JSONResponseMixin import JSONResponseMixin
| 24.5 | 48 | 0.897959 | 4 | 49 | 11 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.977778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b03c4a6bd1a98a40d31456e0f4e980da597487e7 | 5,927 | py | Python | ivy_tests/test_ivy/test_functional/test_nn/test_activations.py | VedPatwardhan/ivy | 7b2105fa8cf38879444a1029bfaa7f0b2f27717a | [
"Apache-2.0"
] | 1 | 2022-02-13T19:35:02.000Z | 2022-02-13T19:35:02.000Z | ivy_tests/test_ivy/test_functional/test_nn/test_activations.py | Arijit1000/ivy | de193946a580ca0f54d78fe7fc4031a6ff66d2bb | [
"Apache-2.0"
] | null | null | null | ivy_tests/test_ivy/test_functional/test_nn/test_activations.py | Arijit1000/ivy | de193946a580ca0f54d78fe7fc4031a6ff66d2bb | [
"Apache-2.0"
] | null | null | null | """Collection of tests for unified neural network activation functions."""
# global
import numpy as np
from hypothesis import given, strategies as st
# local
import ivy
import ivy_tests.test_ivy.helpers as helpers
import ivy.functional.backends.numpy as ivy_np
# relu
@given(
dtype_and_x=helpers.dtype_and_value... | 21.474638 | 87 | 0.622069 | 729 | 5,927 | 4.762689 | 0.102881 | 0.086406 | 0.054435 | 0.104839 | 0.842742 | 0.834677 | 0.783986 | 0.766705 | 0.766705 | 0.740495 | 0 | 0.007184 | 0.271976 | 5,927 | 275 | 88 | 21.552727 | 0.797451 | 0.02244 | 0 | 0.814516 | 0 | 0 | 0.022145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028226 | false | 0 | 0.020161 | 0 | 0.08871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c669c5cdd4dc02426d167e8a759e2bed9e514cde | 49 | py | Python | desktop/core/ext-py/nose-1.3.7/functional_tests/support/coverage/tests/test_covered.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/nose-1.3.7/functional_tests/support/coverage/tests/test_covered.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/nose-1.3.7/functional_tests/support/coverage/tests/test_covered.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | import blah
def test_blah():
blah.dostuff()
| 9.8 | 18 | 0.673469 | 7 | 49 | 4.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 49 | 4 | 19 | 12.25 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c6e43ecd17c505d382b35069c6e5684ed1a499ef | 5,922 | py | Python | torchocr/datasets/txt_reader.py | hua1024/OpenOCR | 13ecfd18d103d5e70a87922cebe89077e8f0eb9c | [
"Apache-2.0"
] | 3 | 2021-02-02T06:10:50.000Z | 2021-05-10T01:27:31.000Z | torchocr/datasets/txt_reader.py | hua1024/OpenOCR | 13ecfd18d103d5e70a87922cebe89077e8f0eb9c | [
"Apache-2.0"
] | null | null | null | torchocr/datasets/txt_reader.py | hua1024/OpenOCR | 13ecfd18d103d5e70a87922cebe89077e8f0eb9c | [
"Apache-2.0"
] | 2 | 2021-02-02T06:11:25.000Z | 2021-02-09T16:27:48.000Z | # coding=utf-8
# @Time : 2020/12/25 10:45
# @Auto : zzf-jeff
from torchocr.datasets.builder import DATASET
from torchocr.datasets.base import BaseDataset
from abc import ABCMeta, abstractmethod
import numpy as np
import cv2
import os
from tqdm import tqdm
@DATASET.register_module()
class DetTextI... | 34.430233 | 90 | 0.560621 | 731 | 5,922 | 4.331053 | 0.164159 | 0.065382 | 0.045167 | 0.036008 | 0.834176 | 0.825963 | 0.825963 | 0.805749 | 0.779848 | 0.769109 | 0 | 0.009933 | 0.319993 | 5,922 | 171 | 91 | 34.631579 | 0.77626 | 0.092536 | 0 | 0.769912 | 0 | 0 | 0.037396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115044 | false | 0 | 0.061947 | 0 | 0.309735 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
05aa60420d3d669b985e50aab2eac45a7cb3c914 | 3,188 | py | Python | tests/test_diff_positions.py | jacebrowning/beefore | 76a43cfa3fb83cfa3b3301277636f1beca35aee7 | [
"BSD-3-Clause"
] | 24 | 2016-07-14T04:25:31.000Z | 2019-02-12T19:37:01.000Z | tests/test_diff_positions.py | jacebrowning/beefore | 76a43cfa3fb83cfa3b3301277636f1beca35aee7 | [
"BSD-3-Clause"
] | 17 | 2016-07-17T10:51:56.000Z | 2019-02-02T20:20:43.000Z | tests/test_diff_positions.py | jacebrowning/beefore | 76a43cfa3fb83cfa3b3301277636f1beca35aee7 | [
"BSD-3-Clause"
] | 19 | 2016-07-15T01:05:00.000Z | 2018-06-03T17:35:40.000Z | import unittest
from beefore import diff
class TestDiff(unittest.TestCase):
def test_add_lines(self):
diff_content = [
"diff --git a/tests/path/to/testfile b/tests/path/to/testfile",
"@@ -1,4 +1,6 @@",
" 1",
"+2",
"+3",
" 4",
... | 25.102362 | 86 | 0.354141 | 331 | 3,188 | 3.350453 | 0.148036 | 0.113616 | 0.158702 | 0.205591 | 0.829576 | 0.829576 | 0.823264 | 0.823264 | 0.800721 | 0.800721 | 0 | 0.123669 | 0.469887 | 3,188 | 126 | 87 | 25.301587 | 0.532544 | 0 | 0 | 0.610619 | 0 | 0.044248 | 0.276976 | 0.122961 | 0 | 0 | 0 | 0 | 0.044248 | 1 | 0.044248 | false | 0 | 0.017699 | 0 | 0.070796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
af3aad7524058c7c4fd2dde5a01f2e180e00eaf4 | 5,736 | py | Python | tests/test_auth.py | cailholm/django-saml2-pro-auth | 7da92ad814111726cddea0c4a39f29324a5ab2b4 | [
"MIT"
] | 24 | 2017-11-06T14:08:15.000Z | 2020-01-27T14:26:57.000Z | tests/test_auth.py | cailholm/django-saml2-pro-auth | 7da92ad814111726cddea0c4a39f29324a5ab2b4 | [
"MIT"
] | 29 | 2017-11-01T14:31:00.000Z | 2020-02-06T08:33:14.000Z | tests/test_auth.py | cailholm/django-saml2-pro-auth | 7da92ad814111726cddea0c4a39f29324a5ab2b4 | [
"MIT"
] | 24 | 2017-11-01T15:17:49.000Z | 2020-01-10T17:06:28.000Z | from django.test import TestCase
from django.test.utils import override_settings
from saml2_pro_auth.auth import get_clean_map
from saml2_pro_auth.utils import SAMLSettingsError
class TestAuth(TestCase):
def test_mapping_users_with_index_values(self):
user_map = {
"email": {"index": 0, "key":... | 35.407407 | 79 | 0.560669 | 564 | 5,736 | 5.427305 | 0.111702 | 0.082326 | 0.123489 | 0.14113 | 0.862463 | 0.843515 | 0.843515 | 0.834368 | 0.834368 | 0.834368 | 0 | 0.002656 | 0.278068 | 5,736 | 161 | 80 | 35.627329 | 0.736537 | 0 | 0 | 0.703704 | 0 | 0 | 0.251743 | 0.060146 | 0 | 0 | 0 | 0 | 0.162963 | 1 | 0.059259 | false | 0 | 0.02963 | 0 | 0.096296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
af44c51d8d646cae14ec97ee96416d490d3971b3 | 2,687 | py | Python | test/regex.py | jesopo/scpl | 1fa5acfb468ab212276781fa1760bb5eda438c23 | [
"MIT"
] | null | null | null | test/regex.py | jesopo/scpl | 1fa5acfb468ab212276781fa1760bb5eda438c23 | [
"MIT"
] | 2 | 2021-11-15T11:12:14.000Z | 2021-11-15T17:35:27.000Z | test/regex.py | jesopo/scpl | 1fa5acfb468ab212276781fa1760bb5eda438c23 | [
"MIT"
] | null | null | null | import re, unittest
from ipaddress import ip_network
from scpl.regex import lexer
class RegexTestLexer(unittest.TestCase):
def test_literal(self):
tokens = lexer.tokenise("abc")
self.assertEqual(len(tokens), 3)
self.assertIsInstance(tokens[0], lexer.RegexTokenLiteral)
self.assertEq... | 43.33871 | 66 | 0.662449 | 293 | 2,687 | 6.047782 | 0.139932 | 0.194695 | 0.264108 | 0.167043 | 0.850451 | 0.73307 | 0.73307 | 0.73307 | 0.73307 | 0.693002 | 0 | 0.018868 | 0.191291 | 2,687 | 61 | 67 | 44.04918 | 0.796595 | 0 | 0 | 0.472727 | 0 | 0 | 0.015631 | 0 | 0 | 0 | 0 | 0 | 0.745455 | 1 | 0.090909 | false | 0 | 0.054545 | 0 | 0.163636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
af521633408b711dd587da7205a1395231e2ce0e | 47 | py | Python | test/__init__.py | stanford-policylab/mathbot | f41febffaaa78e6e1d09994cd9c34df5185ce251 | [
"MIT"
] | 1 | 2020-10-15T03:14:21.000Z | 2020-10-15T03:14:21.000Z | test/__init__.py | stanford-policylab/mathbot | f41febffaaa78e6e1d09994cd9c34df5185ce251 | [
"MIT"
] | null | null | null | test/__init__.py | stanford-policylab/mathbot | f41febffaaa78e6e1d09994cd9c34df5185ce251 | [
"MIT"
] | null | null | null | from .test_db import *
from .test_app import *
| 15.666667 | 23 | 0.744681 | 8 | 47 | 4.125 | 0.625 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 2 | 24 | 23.5 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
afb21a7501bcb684aadefc9c664f65fad3e69973 | 13,858 | py | Python | tests/test_oblique_shock_relations.py | Rigel09/CompAero | 79a2902880c5bf6030794d585a48fbbf0c7df344 | [
"MIT"
] | 1 | 2022-03-29T23:59:16.000Z | 2022-03-29T23:59:16.000Z | tests/test_oblique_shock_relations.py | Rigel09/CompAero | 79a2902880c5bf6030794d585a48fbbf0c7df344 | [
"MIT"
] | 7 | 2022-01-15T15:38:45.000Z | 2022-01-22T16:32:16.000Z | tests/test_oblique_shock_relations.py | Rigel09/CompAero | 79a2902880c5bf6030794d585a48fbbf0c7df344 | [
"MIT"
] | null | null | null | from math import radians
from pytest import approx
import pytest
from CompAero.ObliqueShockRelations import ObliqueShockRelations as osr
from CompAero.internal import InvalidOptionCombinationError, ShockType
class TestObliqueShockClassFuncs:
gamma = 1.4
#######################################################... | 50.392727 | 109 | 0.628374 | 2,080 | 13,858 | 4.053846 | 0.076442 | 0.085389 | 0.083966 | 0.155123 | 0.856499 | 0.823529 | 0.775735 | 0.745256 | 0.719521 | 0.681807 | 0 | 0.13207 | 0.203926 | 13,858 | 274 | 110 | 50.576642 | 0.632252 | 0.032977 | 0 | 0.660793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.687225 | 1 | 0.118943 | false | 0 | 0.022026 | 0 | 0.15859 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bb638509ed8243e8ff6ac5a079efd46e74da6470 | 22,215 | py | Python | tests/test_dump_to_ckan.py | OriHoch/datapackage-pipelines-ckan | 7783eed00ce1bb2e8f5e689df5232a72f9e6a1c1 | [
"MIT"
] | null | null | null | tests/test_dump_to_ckan.py | OriHoch/datapackage-pipelines-ckan | 7783eed00ce1bb2e8f5e689df5232a72f9e6a1c1 | [
"MIT"
] | 9 | 2017-10-04T10:09:13.000Z | 2019-04-15T12:47:12.000Z | tests/test_dump_to_ckan.py | OriHoch/datapackage-pipelines-ckan | 7783eed00ce1bb2e8f5e689df5232a72f9e6a1c1 | [
"MIT"
] | 1 | 2018-09-13T13:16:06.000Z | 2018-09-13T13:16:06.000Z | import importlib
import io
import json
import os
import unittest
import requests_mock
import mock
from datapackage_pipelines.wrapper.input_processor import ResourceIterator
import datapackage_pipelines_ckan.processors
import logging
log = logging.getLogger(__name__)
@mock.patch('datapackage_pipelines.lib.dump.dum... | 40.317604 | 199 | 0.509115 | 2,158 | 22,215 | 5.000927 | 0.101946 | 0.030856 | 0.029652 | 0.023721 | 0.827557 | 0.805967 | 0.795775 | 0.789474 | 0.761583 | 0.752873 | 0 | 0.016651 | 0.375512 | 22,215 | 550 | 200 | 40.390909 | 0.761263 | 0.096061 | 0 | 0.761574 | 0 | 0.00463 | 0.214425 | 0.036314 | 0 | 0 | 0 | 0 | 0.06713 | 1 | 0.020833 | false | 0 | 0.027778 | 0 | 0.053241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bb9fb99aed99ebb3c17de317761d0f1013b4385c | 4,543 | py | Python | pyaz/billing/profile/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/billing/profile/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/billing/profile/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage billing profile of billing account
'''
from ... pyaz_utils import _call_az
def list(account_name, expand=None):
'''
List the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
... | 48.849462 | 185 | 0.74048 | 615 | 4,543 | 5.360976 | 0.206504 | 0.093418 | 0.038217 | 0.043676 | 0.762511 | 0.762511 | 0.754019 | 0.754019 | 0.754019 | 0.741583 | 0 | 0 | 0.188642 | 4,543 | 92 | 186 | 49.380435 | 0.894466 | 0.738059 | 0 | 0 | 0 | 0 | 0.127409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
bbbf6c41bb7fb4ae28bc9212c9f92225f27f15ff | 105,489 | py | Python | kuaizi/fitting.py | AstroJacobLi/kuaizi | 065fc45223bcf497e90b38f25c186654daf3c29d | [
"MIT"
] | 5 | 2021-06-03T06:45:57.000Z | 2022-03-30T18:50:29.000Z | kuaizi/fitting.py | AstroJacobLi/kuaizi | 065fc45223bcf497e90b38f25c186654daf3c29d | [
"MIT"
] | 4 | 2021-03-19T08:05:39.000Z | 2022-03-23T18:04:16.000Z | kuaizi/fitting.py | AstroJacobLi/kuaizi | 065fc45223bcf497e90b38f25c186654daf3c29d | [
"MIT"
] | 1 | 2021-06-03T06:45:59.000Z | 2021-06-03T06:45:59.000Z | # Import packages
import os
import sys
import pickle
import dill
import time
import copy
import astropy.units as u
import matplotlib.pyplot as plt
import numpy as np
import scarlet
import sep
from astropy import wcs
from astropy.convolution import Box2DKernel, Gaussian2DKernel, convolve
from astropy.coordinates import... | 39.942825 | 152 | 0.545934 | 13,103 | 105,489 | 4.214226 | 0.045028 | 0.01782 | 0.016226 | 0.008113 | 0.896358 | 0.883174 | 0.871982 | 0.861171 | 0.850559 | 0.847317 | 0 | 0.024075 | 0.338898 | 105,489 | 2,640 | 153 | 39.957955 | 0.76772 | 0.135881 | 0 | 0.874765 | 0 | 0.008912 | 0.088096 | 0.030823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004221 | false | 0 | 0.020638 | 0 | 0.031895 | 0.038931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bbd71fd8582cff0a1d89fb5a83fc1bf80dc26d79 | 1,007 | py | Python | src/datasets/__init__.py | agnes-yang/DeepADoTS | 4a52caf4e49bad8e057649ca05ea9522c77518fb | [
"MIT"
] | null | null | null | src/datasets/__init__.py | agnes-yang/DeepADoTS | 4a52caf4e49bad8e057649ca05ea9522c77518fb | [
"MIT"
] | null | null | null | src/datasets/__init__.py | agnes-yang/DeepADoTS | 4a52caf4e49bad8e057649ca05ea9522c77518fb | [
"MIT"
] | null | null | null | <<<<<<< HEAD
from .dataset import Dataset
from .kdd_cup import KDDCup
from .multivariate_anomaly_function import MultivariateAnomalyFunction
from .real_datasets import RealDataset, RealPickledDataset
from .synthetic_data_generator import SyntheticDataGenerator
from .synthetic_dataset import SyntheticDataset
__a... | 27.972222 | 71 | 0.76862 | 83 | 1,007 | 9.060241 | 0.277108 | 0.069149 | 0.045213 | 0.06383 | 0.976064 | 0.976064 | 0.976064 | 0.976064 | 0.976064 | 0.976064 | 0 | 0 | 0.14995 | 1,007 | 35 | 72 | 28.771429 | 0.878505 | 0 | 0 | 0.848485 | 0 | 0 | 0.215943 | 0.09889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.363636 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
bbf8432ec4cb1c805e68fd560036b02c73f22b72 | 139 | py | Python | code/chapter-1/exercise1_14.py | Kevin-Oudai/python-solutions | d67f6b14723b000fec0011c3e8156b805eb288f7 | [
"MIT"
] | null | null | null | code/chapter-1/exercise1_14.py | Kevin-Oudai/python-solutions | d67f6b14723b000fec0011c3e8156b805eb288f7 | [
"MIT"
] | null | null | null | code/chapter-1/exercise1_14.py | Kevin-Oudai/python-solutions | d67f6b14723b000fec0011c3e8156b805eb288f7 | [
"MIT"
] | null | null | null | import turtle
turtle.right(60)
turtle.forward(50)
turtle.right(120)
turtle.forward(50)
turtle.right(120)
turtle.forward(50)
turtle.done()
| 13.9 | 18 | 0.776978 | 22 | 139 | 4.909091 | 0.363636 | 0.305556 | 0.416667 | 0.583333 | 0.731481 | 0.731481 | 0.731481 | 0.731481 | 0.731481 | 0.731481 | 0 | 0.108527 | 0.071942 | 139 | 9 | 19 | 15.444444 | 0.728682 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 11 |
bbfa830a348927b577d555d8a1d35b262a61598d | 942 | py | Python | optimus/engines/base/io/save.py | liRONCO11/optimus | 0ca0567267300397c7ba711483c46f94ac265e55 | [
"Apache-2.0"
] | null | null | null | optimus/engines/base/io/save.py | liRONCO11/optimus | 0ca0567267300397c7ba711483c46f94ac265e55 | [
"Apache-2.0"
] | null | null | null | optimus/engines/base/io/save.py | liRONCO11/optimus | 0ca0567267300397c7ba711483c46f94ac265e55 | [
"Apache-2.0"
] | null | null | null | class BaseSave:
def file(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def csv(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented yet")
def xml(self, path, *args, **kwargs):
raise NotImplementedError("Not implemented y... | 32.482759 | 56 | 0.645435 | 101 | 942 | 6.019802 | 0.207921 | 0.118421 | 0.177632 | 0.266447 | 0.912829 | 0.912829 | 0.912829 | 0.912829 | 0.912829 | 0.815789 | 0 | 0.001377 | 0.229299 | 942 | 28 | 57 | 33.642857 | 0.836088 | 0 | 0 | 0.473684 | 0 | 0 | 0.181529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 9 |
a56eab4367070594e81c1811b76ddfb4ded2f278 | 118 | py | Python | Warmup-1/front_back.py | VivekM27/Coding-Bat-Python-Solutions | 14d5c6ccaa2129e56a5898374dec60740fe6761b | [
"Apache-2.0"
] | null | null | null | Warmup-1/front_back.py | VivekM27/Coding-Bat-Python-Solutions | 14d5c6ccaa2129e56a5898374dec60740fe6761b | [
"Apache-2.0"
] | null | null | null | Warmup-1/front_back.py | VivekM27/Coding-Bat-Python-Solutions | 14d5c6ccaa2129e56a5898374dec60740fe6761b | [
"Apache-2.0"
] | null | null | null | # FRONT_BACK
def front_back(str):
return str if(len(str) <= 1) else (str[len(str)-1] + str[1:len(str)-1] + str[0]) | 39.333333 | 82 | 0.618644 | 24 | 118 | 2.958333 | 0.416667 | 0.225352 | 0.295775 | 0.28169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.152542 | 118 | 3 | 82 | 39.333333 | 0.66 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
a59d06e07eab023d56ce56ccb8eebd856ed9cf82 | 116 | py | Python | tests/input/unused-import/smoke.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | 37 | 2020-06-04T16:34:39.000Z | 2022-02-27T13:00:22.000Z | tests/input/unused-import/smoke.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | 26 | 2020-07-10T15:53:19.000Z | 2022-03-28T23:56:03.000Z | tests/input/unused-import/smoke.py | DKorytkin/pylint-pytest | 097b7767e5f33ad512d421bea9ebb74a251f47bd | [
"MIT"
] | 6 | 2020-06-29T17:45:38.000Z | 2022-02-19T01:09:57.000Z | from conftest import conftest_fixture_attr
def test_conftest_fixture_attr(conftest_fixture_attr):
assert True
| 19.333333 | 54 | 0.853448 | 16 | 116 | 5.75 | 0.5625 | 0.48913 | 0.619565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 116 | 5 | 55 | 23.2 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3c069f9610fbff661103c7e4de11c54530b94ec1 | 37,785 | py | Python | venv/lib/python3.8/site-packages/azure/mgmt/security/operations/_alerts_operations.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azure/mgmt/security/operations/_alerts_operations.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azure/mgmt/security/operations/_alerts_operations.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 49.848285 | 227 | 0.660685 | 4,310 | 37,785 | 5.58051 | 0.048028 | 0.038666 | 0.023948 | 0.008981 | 0.958423 | 0.957176 | 0.951231 | 0.941211 | 0.929943 | 0.922834 | 0 | 0.007607 | 0.231071 | 37,785 | 757 | 228 | 49.914135 | 0.820231 | 0.24343 | 0 | 0.847291 | 0 | 0.039409 | 0.183749 | 0.116718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.009852 | 0 | 0.12069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3c0c54bee76e5ed8f9221f47356913657ebf8287 | 30,760 | py | Python | assets/py/fonts/robotol.py | hkdickyko/hkdickyko.github.io | bbee50cc1002071c100e9109952fa58966f78a6c | [
"MIT"
] | 1 | 2021-01-07T14:48:03.000Z | 2021-01-07T14:48:03.000Z | assets/py/fonts/robotol.py | hkdickyko/hkdickyko.github.io | bbee50cc1002071c100e9109952fa58966f78a6c | [
"MIT"
] | null | null | null | assets/py/fonts/robotol.py | hkdickyko/hkdickyko.github.io | bbee50cc1002071c100e9109952fa58966f78a6c | [
"MIT"
] | null | null | null | # Code generated by font_to_py.py.
# Font: Robotol.ttf
# Cmd: ./font_to_py.py -x Robotol.ttf 30 myfont.py
version = '0.33'
def height():
return 31
def baseline():
return 24
def max_width():
return 26
def hmap():
return True
def reverse():
return False
def monospaced():
return False
def mi... | 63.6853 | 68 | 0.707315 | 7,514 | 30,760 | 2.893 | 0.024488 | 0.667403 | 0.825145 | 0.946729 | 0.758349 | 0.706735 | 0.65374 | 0.617812 | 0.583402 | 0.562379 | 0 | 0.426386 | 0.020481 | 30,760 | 482 | 69 | 63.817427 | 0.295088 | 0.003218 | 0 | 0.152688 | 1 | 0.935484 | 0.907982 | 0.90759 | 0 | 1 | 0 | 0 | 0 | 1 | 0.019355 | false | 0 | 0 | 0.017204 | 0.03871 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
3c30821a09ac765ea4d55bdc1822d2aca5787924 | 23,845 | py | Python | test/test_fixes_ref.py | psg-mit/latexpp | 0b7b523c9ce147c2d34cc430b1abd39972e33fa9 | [
"MIT"
] | 4 | 2020-08-28T18:41:48.000Z | 2021-11-11T11:23:58.000Z | test/test_fixes_ref.py | psg-mit/latexpp | 0b7b523c9ce147c2d34cc430b1abd39972e33fa9 | [
"MIT"
] | 4 | 2020-07-31T07:34:38.000Z | 2021-11-23T19:05:00.000Z | test/test_fixes_ref.py | psg-mit/latexpp | 0b7b523c9ce147c2d34cc430b1abd39972e33fa9 | [
"MIT"
] | 1 | 2020-07-22T02:44:48.000Z | 2020-07-22T02:44:48.000Z | import os
import os.path
import unittest
import helpers
from latexpp.fixes import ref
hyperref_aux_preamble = r"""\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsl... | 24.48152 | 238 | 0.667813 | 3,143 | 23,845 | 4.977728 | 0.068406 | 0.035794 | 0.030681 | 0.040908 | 0.892937 | 0.880857 | 0.855545 | 0.83752 | 0.820262 | 0.813423 | 0 | 0.017051 | 0.173579 | 23,845 | 973 | 239 | 24.50668 | 0.77687 | 0.052296 | 0 | 0.782779 | 0 | 0.007828 | 0.554314 | 0.291093 | 0 | 0 | 0 | 0 | 0.033268 | 1 | 0.031311 | false | 0 | 0.011742 | 0 | 0.046967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3cb89a3f4819a09d0342fdb6ab6b754f1add08ac | 235 | py | Python | src/sage/manifolds/all.py | vbraun/sage | 07d6c37d18811e2b377a9689790a7c5e24da16ba | [
"BSL-1.0"
] | 3 | 2016-06-19T14:48:31.000Z | 2022-01-28T08:46:01.000Z | src/sage/manifolds/all.py | rwst/sage | a9d274b9338e6ee24bf35ea8d25875507e51e455 | [
"BSL-1.0"
] | null | null | null | src/sage/manifolds/all.py | rwst/sage | a9d274b9338e6ee24bf35ea8d25875507e51e455 | [
"BSL-1.0"
] | 7 | 2021-11-08T10:01:59.000Z | 2022-03-03T11:25:52.000Z | from sage.misc.lazy_import import lazy_import
lazy_import('sage.manifolds.manifold', 'Manifold')
lazy_import('sage.manifolds.differentiable.real_line', 'OpenInterval')
lazy_import('sage.manifolds.differentiable.real_line', 'RealLine')
| 47 | 70 | 0.825532 | 30 | 235 | 6.233333 | 0.4 | 0.26738 | 0.224599 | 0.368984 | 0.481283 | 0.481283 | 0.481283 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 235 | 4 | 71 | 58.75 | 0.831111 | 0 | 0 | 0 | 0 | 0 | 0.548936 | 0.429787 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
3ce07b2f87bc6d5d7c203c92287977d5512103cc | 13,195 | py | Python | miwell-flask-app/tests/functional_tests/page_objects/main_page_objects/psychiatrist_register_page_object.py | joshuahigginson1/DevOps-Assessment-1 | d617522ada565b8b587e2ff7525e1138d1559a75 | [
"MIT"
] | 1 | 2020-08-09T20:52:42.000Z | 2020-08-09T20:52:42.000Z | miwell-flask-app/tests/functional_tests/page_objects/main_page_objects/psychiatrist_register_page_object.py | joshuahigginson1/DevOps-Assessment-1 | d617522ada565b8b587e2ff7525e1138d1559a75 | [
"MIT"
] | null | null | null | miwell-flask-app/tests/functional_tests/page_objects/main_page_objects/psychiatrist_register_page_object.py | joshuahigginson1/DevOps-Assessment-1 | d617522ada565b8b587e2ff7525e1138d1559a75 | [
"MIT"
] | 1 | 2020-08-08T11:47:27.000Z | 2020-08-08T11:47:27.000Z | # Contains the objects found on our psychiatrist register page.
# Imports -------------------------------------------------------------------------------------------------
from tests.functional_tests.page_objects.common_page_objects import CommonPageObject, PsychiatristNavBar
# Page Objects -------------------------... | 41.234375 | 125 | 0.703069 | 1,659 | 13,195 | 5.205546 | 0.062688 | 0.082446 | 0.076424 | 0.071793 | 0.864173 | 0.817508 | 0.772696 | 0.755558 | 0.747221 | 0.712019 | 0 | 0.004633 | 0.198484 | 13,195 | 319 | 126 | 41.363636 | 0.811933 | 0.134824 | 0 | 0.40107 | 0 | 0 | 0.199437 | 0.038252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149733 | false | 0.096257 | 0.005348 | 0 | 0.26738 | 0.048128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
5980b4f3a66a83c5baba23cd1485a7d4e9f5a238 | 52,137 | py | Python | dlkit/abstract_osid/locale/sessions.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | dlkit/abstract_osid/locale/sessions.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | dlkit/abstract_osid/locale/sessions.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | """Implementations of locale abstract base class sessions."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and include n... | 33.378361 | 163 | 0.641195 | 5,677 | 52,137 | 5.772239 | 0.046503 | 0.045134 | 0.053099 | 0.076994 | 0.841863 | 0.788489 | 0.732247 | 0.700082 | 0.651652 | 0.633739 | 0 | 0 | 0.253467 | 52,137 | 1,561 | 164 | 33.399744 | 0.841915 | 0.670445 | 0 | 0.669782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271028 | false | 0.006231 | 0.003115 | 0 | 0.722741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
59b892e37e1d12878b7b8161a04f2b439ac0e758 | 12,319 | py | Python | src/game/AI/test_ai.py | insoPL/QtDraughts | 62368e6523bf3dd50752ae5dffc65e946775f58d | [
"MIT"
] | null | null | null | src/game/AI/test_ai.py | insoPL/QtDraughts | 62368e6523bf3dd50752ae5dffc65e946775f58d | [
"MIT"
] | null | null | null | src/game/AI/test_ai.py | insoPL/QtDraughts | 62368e6523bf3dd50752ae5dffc65e946775f58d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from game.AI import ai_test
from game.AI import _ai_rek_another_attack_in_a_row
from tools import *
from settings import Settings
class TestAi:
def test_no_possible_movement_empty_board(self):
default_settings = Settings(default=True)
tested_board = ListOfPieces([], [])
... | 44.31295 | 104 | 0.340125 | 854 | 12,319 | 4.540984 | 0.077283 | 0.235431 | 0.093089 | 0.117586 | 0.909489 | 0.866426 | 0.849407 | 0.84296 | 0.834709 | 0.823363 | 0 | 0.018502 | 0.451579 | 12,319 | 277 | 105 | 44.472924 | 0.555506 | 0.001705 | 0 | 0.809129 | 0 | 0 | 0.501627 | 0 | 0 | 0 | 0 | 0 | 0.149378 | 1 | 0.041494 | false | 0 | 0.016598 | 0 | 0.062241 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.