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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df81e1d9539d033063a2a56dbeb862075f49347e | 798 | py | Python | weighmail/observers/__init__.py | gremmie/weighmail | d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d | [
"BSD-3-Clause"
] | null | null | null | weighmail/observers/__init__.py | gremmie/weighmail | d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d | [
"BSD-3-Clause"
] | null | null | null | weighmail/observers/__init__.py | gremmie/weighmail | d20b5ab3ef9556a3e7a4a06875c4ca69c22fe31d | [
"BSD-3-Clause"
] | null | null | null | """Base observer class for weighmail operations.
"""
class BaseObserver(object):
"""Base observer class; does nothing."""
def searching(self, label):
"""Called when the search process has started for a label"""
pass
def labeling(self, label, count):
"""Called when the labelling p... | 24.181818 | 74 | 0.601504 | 96 | 798 | 4.989583 | 0.427083 | 0.083507 | 0.070981 | 0.083507 | 0.45929 | 0.379958 | 0.121086 | 0.121086 | 0 | 0 | 0 | 0 | 0.319549 | 798 | 32 | 75 | 24.9375 | 0.882136 | 0.547619 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.444444 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
10c58e27a9810f57838afb1a0c1697fd854c3b9b | 239 | py | Python | pz/installer.py | pyramidzero/pzinstaller | 43058b0a681fbea6e2173f1192aea720483d861c | [
"MIT"
] | null | null | null | pz/installer.py | pyramidzero/pzinstaller | 43058b0a681fbea6e2173f1192aea720483d861c | [
"MIT"
] | null | null | null | pz/installer.py | pyramidzero/pzinstaller | 43058b0a681fbea6e2173f1192aea720483d861c | [
"MIT"
] | null | null | null | from subprocess import run
# configuration defaults tools
update = ['brew', 'update']
install = ['brew', 'install', 'git']
class Installer:
def func_update(self):
run(update)
def func_install(self):
run(install)
| 18.384615 | 36 | 0.65272 | 28 | 239 | 5.5 | 0.571429 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217573 | 239 | 12 | 37 | 19.916667 | 0.823529 | 0.117155 | 0 | 0 | 0 | 0 | 0.114833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10c7a36a4680a6d2f0e301e67846d4b75e77d776 | 15,796 | py | Python | pysnmp/FUNI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/FUNI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/FUNI-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module FUNI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FUNI-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:03:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | 118.766917 | 2,273 | 0.746961 | 1,795 | 15,796 | 6.572145 | 0.10585 | 0.01814 | 0.013987 | 0.018649 | 0.400865 | 0.36628 | 0.342545 | 0.33695 | 0.239129 | 0.213783 | 0 | 0.075875 | 0.089706 | 15,796 | 132 | 2,274 | 119.666667 | 0.744558 | 0.019625 | 0 | 0.04918 | 0 | 0 | 0.154035 | 0.019707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057377 | 0 | 0.106557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10c9be2f6f73cff7dec3ae3bf47fff1f91431efb | 508 | py | Python | tests/r/test_us_pop.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_us_pop.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_us_pop.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.us_pop import us_pop
def test_us_pop():
"""Test module us_pop.py by downloading
us_pop.csv and testing shape of
extracted data has 22 rows... | 21.166667 | 43 | 0.75 | 78 | 508 | 4.551282 | 0.538462 | 0.084507 | 0.135211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014458 | 0.183071 | 508 | 23 | 44 | 22.086957 | 0.840964 | 0.214567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
10cf86523f7b53b3cbe34ca1abb35ccfd600860e | 3,633 | py | Python | src/automotive/application/actions/serial_actions.py | philosophy912/automotive | de918611652b789a83545f346c1569c2c2c955a6 | [
"Apache-2.0"
] | null | null | null | src/automotive/application/actions/serial_actions.py | philosophy912/automotive | de918611652b789a83545f346c1569c2c2c955a6 | [
"Apache-2.0"
] | null | null | null | src/automotive/application/actions/serial_actions.py | philosophy912/automotive | de918611652b789a83545f346c1569c2c2c955a6 | [
"Apache-2.0"
] | 1 | 2022-02-28T07:23:28.000Z | 2022-02-28T07:23:28.000Z | # -*- coding:utf-8 -*-
# --------------------------------------------------------
# Copyright (C), 2016-2020, lizhe, All rights reserved
# --------------------------------------------------------
# @Name: serial_actions.py
# @Author: lizhe
# @Created: 2021/5/2 - 0:02
# ----------------------------------... | 25.95 | 115 | 0.548582 | 374 | 3,633 | 5.122995 | 0.368984 | 0.057411 | 0.028706 | 0.022965 | 0.02714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011637 | 0.290394 | 3,633 | 139 | 116 | 26.136691 | 0.731575 | 0.237545 | 0 | 0 | 0 | 0 | 0.084429 | 0.050912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.06 | 0.1 | 0.02 | 0.46 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
10de22358037cf8ccf5fee7e45edea840e4276ac | 159 | py | Python | run.py | radish2012/flask-restful-example | 972c720cee9819d030f9889a8535a444277b874e | [
"MIT"
] | 650 | 2019-07-08T09:09:25.000Z | 2022-03-31T08:01:43.000Z | run.py | radish2012/flask-restful-example | 972c720cee9819d030f9889a8535a444277b874e | [
"MIT"
] | 5 | 2020-01-14T05:35:37.000Z | 2022-03-11T23:46:39.000Z | run.py | radish2012/flask-restful-example | 972c720cee9819d030f9889a8535a444277b874e | [
"MIT"
] | 222 | 2019-07-15T01:52:03.000Z | 2022-03-28T05:32:21.000Z | from app.factory import create_app, celery_app
app = create_app(config_name="DEVELOPMENT")
app.app_context().push()
if __name__ == "__main__":
app.run()
| 19.875 | 46 | 0.735849 | 23 | 159 | 4.521739 | 0.608696 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125786 | 159 | 7 | 47 | 22.714286 | 0.748201 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10e350fdeb74a09ba92056d3e0417d107ac47a47 | 50 | py | Python | {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py | cav71/cav71-python-package-cookiecutter | 697a830560ee5e3072e28a0021e227a7d0ef5b66 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py | cav71/cav71-python-package-cookiecutter | 697a830560ee5e3072e28a0021e227a7d0ef5b66 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_name}}/src/{{cookiecutter.package_name}}/__init__.py | cav71/cav71-python-package-cookiecutter | 697a830560ee5e3072e28a0021e227a7d0ef5b66 | [
"BSD-3-Clause"
] | null | null | null | __version__ = "0.0.0"
__hash__ = "<invalid-hash>"
| 16.666667 | 27 | 0.66 | 7 | 50 | 3.571429 | 0.571429 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.12 | 50 | 2 | 28 | 25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.38 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10e78d87cc82a459f5caa7a1a6341f84faedc2e2 | 7,358 | py | Python | tests/test_setuptools_build_subpackage.py | ashb/setuptools-build-subpackage | 6169baaea0020aaecf71e0441e1c44120c88b4ff | [
"Apache-2.0"
] | 2 | 2020-11-30T12:41:13.000Z | 2021-07-14T14:43:42.000Z | tests/test_setuptools_build_subpackage.py | ashb/setuptools-build-subpackage | 6169baaea0020aaecf71e0441e1c44120c88b4ff | [
"Apache-2.0"
] | null | null | null | tests/test_setuptools_build_subpackage.py | ashb/setuptools-build-subpackage | 6169baaea0020aaecf71e0441e1c44120c88b4ff | [
"Apache-2.0"
] | null | null | null | import os
import tarfile
import textwrap
from pathlib import Path
import setuptools
from wheel.wheelfile import WheelFile
from setuptools_build_subpackage import Distribution
ROOT = Path(__file__).parent.parent
def build_dist(folder, command, output, *args):
args = [
'--subpackage-folder',
fold... | 41.806818 | 119 | 0.647323 | 1,138 | 7,358 | 3.864675 | 0.137083 | 0.049113 | 0.240109 | 0.131423 | 0.69668 | 0.690769 | 0.663256 | 0.657344 | 0.59186 | 0.480218 | 0 | 0.030802 | 0.22343 | 7,358 | 175 | 120 | 42.045714 | 0.738887 | 0.010465 | 0 | 0.081967 | 0 | 0 | 0.508493 | 0.427926 | 0 | 0 | 0 | 0 | 0.131148 | 1 | 0.032787 | false | 0 | 0.057377 | 0 | 0.090164 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10fb0f98c0db7ba3d5ed61bdb4bc78ad51efafdc | 13,380 | py | Python | azext_csvmware/_help.py | ctaggart/az-csvmware-cli | 6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74 | [
"MIT"
] | 2 | 2020-05-20T13:33:33.000Z | 2020-09-12T03:48:15.000Z | azext_csvmware/_help.py | ctaggart/az-csvmware-cli | 6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74 | [
"MIT"
] | null | null | null | azext_csvmware/_help.py | ctaggart/az-csvmware-cli | 6f6f7cd5cb9ae0e34e4d81b499337c3a5ca9fc74 | [
"MIT"
] | 2 | 2020-05-11T17:10:27.000Z | 2021-01-02T16:15:35.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.
# -----------------------------------------------------... | 41.169231 | 268 | 0.652242 | 1,779 | 13,380 | 4.905003 | 0.125351 | 0.055008 | 0.052945 | 0.049507 | 0.757277 | 0.695966 | 0.611277 | 0.521659 | 0.437658 | 0.347926 | 0 | 0.011778 | 0.257549 | 13,380 | 324 | 269 | 41.296296 | 0.86662 | 0.035725 | 0 | 0.444444 | 0 | 0.077778 | 0.948483 | 0.022655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.003704 | 0 | 0.003704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
800e44a4c6050f23f945f1f76634a4002f79fc45 | 1,157 | py | Python | gen_art/graphics/Context.py | shnupta/SeeMyFeels | 0a37acc3e628d69f96197907db1c2ebd30b78469 | [
"MIT"
] | 3 | 2021-04-01T21:16:35.000Z | 2022-03-12T21:17:51.000Z | gen_art/graphics/Context.py | shnupta/SeeMyFeels | 0a37acc3e628d69f96197907db1c2ebd30b78469 | [
"MIT"
] | null | null | null | gen_art/graphics/Context.py | shnupta/SeeMyFeels | 0a37acc3e628d69f96197907db1c2ebd30b78469 | [
"MIT"
] | null | null | null | import cairo
from uuid import uuid4
from gen_art.graphics.Helpers import does_path_exist, open_file
from os import path
from datetime import datetime
class DrawContext:
def __init__(self, width, height, output_path, open_bool):
self.open_bool = open_bool
self.width = width
self.height = he... | 26.906977 | 87 | 0.666379 | 153 | 1,157 | 4.830065 | 0.287582 | 0.121786 | 0.113667 | 0.048714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0.242869 | 1,157 | 42 | 88 | 27.547619 | 0.840183 | 0 | 0 | 0 | 0 | 0 | 0.038029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.151515 | 0.060606 | 0.515152 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8022f771c37a2c17506b1b5ad623309f807eb9bd | 1,552 | py | Python | setup.py | FoxNerdSaysMoo/HomeAssistantAPI | 69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a | [
"MIT"
] | null | null | null | setup.py | FoxNerdSaysMoo/HomeAssistantAPI | 69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a | [
"MIT"
] | null | null | null | setup.py | FoxNerdSaysMoo/HomeAssistantAPI | 69b175141fa4aaed3a0c0d33a8bc9e8cc56caf6a | [
"MIT"
] | null | null | null | from setuptools import setup
from homeassistant_api import __version__
with open("README.md", "r") as f:
read = f.read()
setup(
name="HomeAssistant API",
url="https://github.com/GrandMoff100/HomeassistantAPI",
description="Python Wrapper for Homeassistant's REST API",
version=__version__,
keyw... | 34.488889 | 71 | 0.631443 | 152 | 1,552 | 6.289474 | 0.532895 | 0.133891 | 0.183054 | 0.16318 | 0.056485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021685 | 0.227448 | 1,552 | 44 | 72 | 35.272727 | 0.775646 | 0 | 0 | 0 | 0 | 0 | 0.552191 | 0.068299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8025e5f72fc9d4b3c01001445187f2773b458389 | 15,270 | py | Python | pysnmp-with-texts/CISCOSB-RMON.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCOSB-RMON.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCOSB-RMON.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCOSB-RMON (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-RMON
# Produced by pysmi-0.3.4 at Wed May 1 12:23:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 171.573034 | 1,487 | 0.806418 | 1,883 | 15,270 | 6.538502 | 0.192246 | 0.045809 | 0.080166 | 0.007148 | 0.367365 | 0.24269 | 0.22742 | 0.223197 | 0.208739 | 0.195988 | 0 | 0.044011 | 0.10275 | 15,270 | 88 | 1,488 | 173.522727 | 0.854609 | 0.020825 | 0 | 0 | 0 | 0.175 | 0.438667 | 0.036137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1125 | 0 | 0.1125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
802b03d8a8f74e07591150e943daaff1c7cc2c3e | 826 | py | Python | adet/modeling/DTInst/DTE/__init__.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | adet/modeling/DTInst/DTE/__init__.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | adet/modeling/DTInst/DTE/__init__.py | shuaiqi361/AdelaiDet | 35d944033a8d2f7aa623ad607b57bd8a1fe88b43 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .MaskLoader import MaskLoader
from .utils import IOUMetric, fast_ista, prepare_distance_transform_from_mask, \
prepare_overlay_DTMs_from_mask, prepare_extended_DTMs_from_mask, prepare_augmented_distance_transform_from_mask, \
prepare_di... | 68.833333 | 130 | 0.825666 | 103 | 826 | 5.941748 | 0.300971 | 0.156863 | 0.27451 | 0.326797 | 0.72549 | 0.620915 | 0.620915 | 0.620915 | 0.447712 | 0.447712 | 0 | 0 | 0.113801 | 826 | 11 | 131 | 75.090909 | 0.836066 | 0.082324 | 0 | 0 | 0 | 0 | 0.387566 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
803f3e78ea2014f7c662ee3a5d6517f238a79624 | 4,339 | py | Python | tests/bugs/core_3365_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_3365_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_3365_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_3365
# title: Extend syntax for ALTER USER CURRENT_USER
# decription:
# Replaced old code: removed EDS from here as it is not needed at all:
# we can use here trivial "connect '$(DSN)' ..." instead.
# Non-privileg... | 33.898438 | 108 | 0.567181 | 546 | 4,339 | 4.377289 | 0.340659 | 0.050209 | 0.046862 | 0.03682 | 0.339749 | 0.288703 | 0.192887 | 0.157322 | 0.157322 | 0.079498 | 0 | 0.05111 | 0.314589 | 4,339 | 127 | 109 | 34.165354 | 0.752522 | 0.168933 | 0 | 0.282353 | 0 | 0.011765 | 0.858896 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.011765 | false | 0.058824 | 0.023529 | 0 | 0.035294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8043c3df7727468e10027ab3c916c11597ab2643 | 19,038 | py | Python | User/User.py | howiemac/evoke4 | 5d7af36c9fb23d94766d54c9c63436343959d3a8 | [
"BSD-3-Clause"
] | null | null | null | User/User.py | howiemac/evoke4 | 5d7af36c9fb23d94766d54c9c63436343959d3a8 | [
"BSD-3-Clause"
] | null | null | null | User/User.py | howiemac/evoke4 | 5d7af36c9fb23d94766d54c9c63436343959d3a8 | [
"BSD-3-Clause"
] | null | null | null | """ evoke base User object
IHM 2/2/2006 and thereafter
CJH 2012 and therafter
gives session-based user validation
The database users table must have an entry with uid==1 and id==guest.
This is used to indicate no valid login.
The database users table must have an entry with uid==2 . This is the
sys admin user.
R... | 35.718574 | 193 | 0.643082 | 2,751 | 19,038 | 4.395856 | 0.169756 | 0.020673 | 0.007525 | 0.008683 | 0.238568 | 0.202431 | 0.149012 | 0.119325 | 0.10841 | 0.095841 | 0 | 0.005533 | 0.221609 | 19,038 | 532 | 194 | 35.785714 | 0.810514 | 0.168348 | 0 | 0.298913 | 0 | 0.008152 | 0.263015 | 0.012997 | 0 | 0 | 0 | 0.00188 | 0 | 0 | null | null | 0.076087 | 0.024457 | null | null | 0.005435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
805782c90511b1092705178abcf7d9ba97014167 | 669 | py | Python | src/thenewboston/factories/network_validator.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 122 | 2020-07-12T23:08:49.000Z | 2021-12-18T16:14:10.000Z | src/thenewboston/factories/network_validator.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 47 | 2020-07-15T02:18:09.000Z | 2021-09-22T19:51:59.000Z | src/thenewboston/factories/network_validator.py | achalpatel/thenewboston-python | 4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9 | [
"MIT"
] | 52 | 2020-07-13T10:49:52.000Z | 2021-10-30T03:34:55.000Z | from factory import Faker
from .network_node import NetworkNodeFactory
from ..constants.network import ACCOUNT_FILE_HASH_LENGTH, BLOCK_IDENTIFIER_LENGTH, MAX_POINT_VALUE, MIN_POINT_VALUE
from ..models.network_validator import NetworkValidator
class NetworkValidatorFactory(NetworkNodeFactory):
daily_confirmation_... | 39.352941 | 115 | 0.807175 | 85 | 669 | 5.941176 | 0.435294 | 0.087129 | 0.089109 | 0.083168 | 0.075248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127055 | 669 | 16 | 116 | 41.8125 | 0.864726 | 0 | 0 | 0 | 0 | 0 | 0.023916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3376cbd09166d238ee459563762207df8c790db5 | 194 | py | Python | contentcuration/contentcuration/test_settings.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | contentcuration/contentcuration/test_settings.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | contentcuration/contentcuration/test_settings.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | from .not_production_settings import * # noqa
DEBUG = True
WEBPACK_LOADER["DEFAULT"][ # noqa
"LOADER_CLASS"
] = "contentcuration.tests.webpack_loader.TestWebpackLoader"
TEST_ENV = True
| 19.4 | 60 | 0.752577 | 22 | 194 | 6.363636 | 0.772727 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 194 | 9 | 61 | 21.555556 | 0.843373 | 0.046392 | 0 | 0 | 0 | 0 | 0.401099 | 0.296703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
337dd50916fb840e7091ed51530bebf7c3ed34d3 | 188 | py | Python | tests/test.py | ZhenningLang/py-proj-init | f6e0da044c4e3140537ac6c4240124c071e89261 | [
"MIT"
] | null | null | null | tests/test.py | ZhenningLang/py-proj-init | f6e0da044c4e3140537ac6c4240124c071e89261 | [
"MIT"
] | null | null | null | tests/test.py | ZhenningLang/py-proj-init | f6e0da044c4e3140537ac6c4240124c071e89261 | [
"MIT"
] | null | null | null | import os
import sys
CURRENT_PATH = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(os.path.join(CURRENT_PATH, '..'))
from py_proj_init.__main__ import main # noqa
main()
| 18.8 | 59 | 0.744681 | 31 | 188 | 4.129032 | 0.548387 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.106383 | 188 | 9 | 60 | 20.888889 | 0.755952 | 0.021277 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3393b84012cd8093cec6722d84c146ceb9736287 | 6,692 | py | Python | lightconfig/lightconfig.py | daassh/LightConfig | e7d962bafae47e635b8a14abe8f6f98cb3ea16a9 | [
"MIT"
] | 2 | 2018-07-24T02:16:41.000Z | 2018-08-06T06:52:15.000Z | lightconfig/lightconfig.py | daassh/LightConfig | e7d962bafae47e635b8a14abe8f6f98cb3ea16a9 | [
"MIT"
] | null | null | null | lightconfig/lightconfig.py | daassh/LightConfig | e7d962bafae47e635b8a14abe8f6f98cb3ea16a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# get a easy way to edit config file
"""
>>> from lightconfig import LightConfig
>>> cfg = LightConfig("config.ini")
>>> cfg.section1.option1 = "value1"
>>> print(cfg.section1.option1)
value1
>>> "section1" in cfg
True
>>> "option1" in cfg.section1
True
"""
import os
import codecs
i... | 36.568306 | 139 | 0.609534 | 711 | 6,692 | 4.991561 | 0.180028 | 0.108199 | 0.050719 | 0.040575 | 0.472246 | 0.364328 | 0.206819 | 0.19104 | 0.145957 | 0.072133 | 0 | 0.002453 | 0.268978 | 6,692 | 182 | 140 | 36.769231 | 0.723017 | 0.047071 | 0 | 0.335878 | 0 | 0 | 0.097292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206107 | false | 0.007634 | 0.045802 | 0.10687 | 0.450382 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
3399c4cddcb4d17b9d9aef1da6a020e45290b8d3 | 15,780 | py | Python | kaggle_tutorial_mod.py | DistrictDataLabs/02-seefish | e39189b37f0e925a2c7e9c34be608cbd8243733e | [
"Apache-2.0"
] | null | null | null | kaggle_tutorial_mod.py | DistrictDataLabs/02-seefish | e39189b37f0e925a2c7e9c34be608cbd8243733e | [
"Apache-2.0"
] | null | null | null | kaggle_tutorial_mod.py | DistrictDataLabs/02-seefish | e39189b37f0e925a2c7e9c34be608cbd8243733e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 16 17:31:42 2015
This is adapted from the kaggle tutorial for the National Data Science Bowl at
https://www.kaggle.com/c/datasciencebowl/details/tutorial
Any code section lifted from the tutorial will start with # In tutorial [n].
My adaption will start with # Adapted
2/2... | 36.443418 | 80 | 0.721229 | 2,429 | 15,780 | 4.638123 | 0.277069 | 0.008432 | 0.003728 | 0.008876 | 0.102343 | 0.084857 | 0.054056 | 0.04518 | 0.033375 | 0.033375 | 0 | 0.025982 | 0.20488 | 15,780 | 432 | 81 | 36.527778 | 0.871922 | 0.171103 | 0 | 0.176056 | 0 | 0 | 0.027395 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 0 | null | null | 0 | 0.140845 | null | null | 0.049296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
33b8da2d72ef09ad6eef64de8e3cb74d42aa9d37 | 414 | py | Python | src/uwds3_core/estimation/dense_optical_flow_estimator.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | 1 | 2021-06-08T02:55:15.000Z | 2021-06-08T02:55:15.000Z | src/uwds3_core/estimation/dense_optical_flow_estimator.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | src/uwds3_core/estimation/dense_optical_flow_estimator.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | import cv2
class DenseOpticalFlowEstimator(object):
def __init__(self):
self.previous_frame = None
def estimate(self, frame):
if first_frame is None:
return None
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
flow = cv2.calcOpticalFlowFarneback(self.previous_frame,... | 27.6 | 102 | 0.644928 | 53 | 414 | 4.867925 | 0.509434 | 0.139535 | 0.197674 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049342 | 0.2657 | 414 | 14 | 103 | 29.571429 | 0.799342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
33bea67e17e2e48816f3acbadb4afec665fa95a1 | 142 | py | Python | Code/hypers.py | taoqi98/KIM | dc897026d5a639a9a554d06ac036b121fcbcf6a0 | [
"MIT"
] | 7 | 2021-08-13T12:43:17.000Z | 2022-03-24T11:25:52.000Z | Code/hypers.py | JulySinceAndrew/KIM-SIGIR-2021 | 87b1c21f79a5389cc4a0d122e7ded5f63a63da28 | [
"MIT"
] | 5 | 2021-07-20T07:27:05.000Z | 2022-02-25T07:28:39.000Z | Code/hypers.py | JulySinceAndrew/KIM-SIGIR-2021 | 87b1c21f79a5389cc4a0d122e7ded5f63a63da28 | [
"MIT"
] | null | null | null | MAX_SENTENCE = 30
MAX_ALL = 50
MAX_SENT_LENGTH=MAX_SENTENCE
MAX_SENTS=MAX_ALL
max_entity_num = 10
num = 100
num1 = 200
num2 = 100
npratio=4
| 11.833333 | 28 | 0.774648 | 27 | 142 | 3.740741 | 0.62963 | 0.217822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151261 | 0.161972 | 142 | 11 | 29 | 12.909091 | 0.697479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
33d1491d6a521c55fdf5d9796d0dc3453bde5f3c | 5,522 | py | Python | coalaip/plugin.py | bigchaindb/pycoalaip | cecc8f6ff4733f0525fafcee63647753e832f0be | [
"Apache-2.0"
] | 20 | 2016-08-13T15:01:20.000Z | 2018-10-09T21:18:11.000Z | coalaip/plugin.py | imbi7py/pycoalaip | cecc8f6ff4733f0525fafcee63647753e832f0be | [
"Apache-2.0"
] | 57 | 2016-08-04T16:02:05.000Z | 2017-09-15T08:20:06.000Z | coalaip/plugin.py | imbi7py/pycoalaip | cecc8f6ff4733f0525fafcee63647753e832f0be | [
"Apache-2.0"
] | 8 | 2018-11-15T16:34:59.000Z | 2021-07-09T00:20:37.000Z | from abc import ABC, abstractmethod, abstractproperty
class AbstractPlugin(ABC):
"""Abstract interface for all persistence layer plugins.
Expects the following to be defined by the subclass:
- :attr:`type` (as a read-only property)
- :func:`generate_user`
- :func:`get_status`
... | 34.72956 | 91 | 0.588555 | 652 | 5,522 | 4.935583 | 0.222393 | 0.104413 | 0.118086 | 0.110938 | 0.484462 | 0.446551 | 0.380671 | 0.380671 | 0.380671 | 0.380671 | 0 | 0 | 0.343716 | 5,522 | 158 | 92 | 34.949367 | 0.887969 | 0.732343 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
33d9116df66190b4bcd4b6335837886228590452 | 466 | py | Python | Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py | Aakash10399/simple-health-glucheck | 1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2 | [
"bzip2-1.0.6"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py | Aakash10399/simple-health-glucheck | 1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2 | [
"bzip2-1.0.6"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | Lib/site-packages/py2exe/samples/pywin32/com_typelib/pre_gen/wscript/show_info.py | Aakash10399/simple-health-glucheck | 1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2 | [
"bzip2-1.0.6"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | # Print some simple information using the WScript.Network object.
import sys
from win32com.client.gencache import EnsureDispatch
ob = EnsureDispatch('WScript.Network')
# For the sake of ensuring the correct module is used...
mod = sys.modules[ob.__module__]
print "The module hosting the object is", mod
# Now use the... | 25.888889 | 65 | 0.761803 | 66 | 466 | 5.318182 | 0.590909 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.145923 | 466 | 17 | 66 | 27.411765 | 0.876884 | 0.296137 | 0 | 0 | 0 | 0 | 0.313665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
33f87e0f533a0c640931bd3fd8c3d5fa7efb74b8 | 1,291 | py | Python | devconf/ast/mixins/expression.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | devconf/ast/mixins/expression.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | 5 | 2019-03-04T16:17:30.000Z | 2019-05-04T08:34:19.000Z | devconf/ast/mixins/expression.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | import ast.value
import ast.qualifier
import ast.mixins.node
import ast.mixins.typed
import ast.mixins.qualified
class LValueExpression(ast.mixins.node.Node, ast.mixins.typed.Typed, ast.mixins.qualified.Qualified):
def __init__(self):
super().__init__()
self.__value: ast.value.Value or None = No... | 23.907407 | 101 | 0.642912 | 158 | 1,291 | 5.012658 | 0.21519 | 0.126263 | 0.131313 | 0.136364 | 0.342172 | 0.270202 | 0.09596 | 0 | 0 | 0 | 0 | 0 | 0.252517 | 1,291 | 53 | 102 | 24.358491 | 0.820725 | 0 | 0 | 0.176471 | 0 | 0 | 0.006971 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.205882 | false | 0.029412 | 0.147059 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
33feaaef9c20723000c009c977b27fc9c05c9b4d | 4,478 | py | Python | projects/imsend/imsend.py | ZJM6658/PythonProject | 8ca51a1551b20ccd696358941727188838e0e236 | [
"MIT"
] | 1 | 2021-06-09T02:06:17.000Z | 2021-06-09T02:06:17.000Z | projects/imsend/imsend.py | ZJM6658/PythonProject | 8ca51a1551b20ccd696358941727188838e0e236 | [
"MIT"
] | null | null | null | projects/imsend/imsend.py | ZJM6658/PythonProject | 8ca51a1551b20ccd696358941727188838e0e236 | [
"MIT"
] | null | null | null | #!usr/bin/python
# -*- coding: utf-8 -*-
' an im_send project '
# __author__ 'ZHU JIAMIN'
import sys
import mysql.connector #python3不支持
import requests
import json
from os import path, access, R_OK # W_OK for write permission.
#python2默认编码ascii 使用此方法改为utf8
reload(sys)
sys.setdefaultencoding('utf8')
# 流程
# 1.... | 23.202073 | 151 | 0.684457 | 575 | 4,478 | 5.210435 | 0.398261 | 0.04773 | 0.017023 | 0.010013 | 0.100801 | 0.078772 | 0.078772 | 0.058077 | 0.028705 | 0 | 0 | 0.02227 | 0.167709 | 4,478 | 192 | 152 | 23.322917 | 0.781594 | 0.163243 | 0 | 0.165414 | 0 | 0 | 0.199892 | 0.022899 | 0 | 0 | 0 | 0.005208 | 0 | 0 | null | null | 0.052632 | 0.037594 | null | null | 0.067669 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1d3ea69b3e4a276b5c416f98c802081047762711 | 2,826 | py | Python | src/api2db/install/make_lab.py | TristenHarr/api2db | 8c8b14280441f5153ff146c23359a0eb91022ddb | [
"MIT"
] | 45 | 2021-05-05T01:34:20.000Z | 2021-11-02T08:41:34.000Z | src/api2db/install/make_lab.py | TristenHarr/api2db | 8c8b14280441f5153ff146c23359a0eb91022ddb | [
"MIT"
] | 1 | 2021-06-02T11:43:33.000Z | 2021-06-02T20:32:29.000Z | src/api2db/install/make_lab.py | TristenHarr/api2db | 8c8b14280441f5153ff146c23359a0eb91022ddb | [
"MIT"
] | 3 | 2021-05-08T21:49:24.000Z | 2021-05-13T23:14:09.000Z | import os
_lab_components = """from api2db.ingest import *
CACHE=True # Caches API data so that only a single API call is made if True
def import_target():
return None
def pre_process():
return None
def data_features():
return None
def post_process():
return None
if __name__ == "__main__":
... | 28.836735 | 100 | 0.381812 | 227 | 2,826 | 4.506608 | 0.409692 | 0.070381 | 0.093842 | 0.035191 | 0.250244 | 0.250244 | 0.250244 | 0.250244 | 0.250244 | 0.250244 | 0 | 0.000756 | 0.531847 | 2,826 | 97 | 101 | 29.134021 | 0.772487 | 0.572895 | 0 | 0.137931 | 0 | 0 | 0.644711 | 0.108782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.310345 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d4187041cb8f8754084b1a0b8f675142f96aee6 | 2,348 | py | Python | docs/examples/use_cases/video_superres/common/loss_scaler.py | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 3,967 | 2018-06-19T04:39:09.000Z | 2022-03-31T10:57:53.000Z | docs/examples/use_cases/video_superres/common/loss_scaler.py | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 3,494 | 2018-06-21T07:09:58.000Z | 2022-03-31T19:44:51.000Z | docs/examples/use_cases/video_superres/common/loss_scaler.py | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 531 | 2018-06-19T23:53:10.000Z | 2022-03-30T08:35:59.000Z | import torch
class LossScaler:
def __init__(self, scale=1):
self.cur_scale = scale
# `params` is a list / generator of torch.Variable
def has_overflow(self, params):
return False
# `x` is a torch.Tensor
def _has_inf_or_nan(x):
return False
# `overflow` is boolean ind... | 28.634146 | 85 | 0.617121 | 319 | 2,348 | 4.30094 | 0.210031 | 0.066327 | 0.078717 | 0.024052 | 0.653061 | 0.618076 | 0.598397 | 0.598397 | 0.598397 | 0.541545 | 0 | 0.010328 | 0.298978 | 2,348 | 81 | 86 | 28.987654 | 0.823208 | 0.151618 | 0 | 0.490909 | 0 | 0 | 0.001514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254545 | false | 0.018182 | 0.018182 | 0.109091 | 0.490909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1d41b1db26751bf84729eea34f1bc555d8b62d08 | 591 | py | Python | backend/tests/access/test_access_user_remove.py | fjacob21/mididecweb | b65f28eb6fdeafa265796b6190a4264a5eac54ce | [
"MIT"
] | null | null | null | backend/tests/access/test_access_user_remove.py | fjacob21/mididecweb | b65f28eb6fdeafa265796b6190a4264a5eac54ce | [
"MIT"
] | 88 | 2016-11-12T14:54:38.000Z | 2018-08-02T00:25:07.000Z | backend/tests/access/test_access_user_remove.py | mididecouverte/mididecweb | b65f28eb6fdeafa265796b6190a4264a5eac54ce | [
"MIT"
] | null | null | null | from src.access import UserRemoveAccess
from generate_access_data import generate_access_data
def test_remove_user_access():
sessions = generate_access_data()
user = sessions['user'].users.get('user')
useraccess = UserRemoveAccess(sessions['user'], user)
manageraccess = UserRemoveAccess(sessions['mana... | 36.9375 | 63 | 0.752961 | 62 | 591 | 7.032258 | 0.387097 | 0.220183 | 0.123853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142132 | 591 | 15 | 64 | 39.4 | 0.859961 | 0 | 0 | 0 | 1 | 0 | 0.047377 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d479001ca8c194710be9daccfb27ed5e279b01d | 532 | py | Python | b0012_integer_to_roman.py | savarin/algorithms | 4d1f8f2361de12a02f376883f648697562d177ae | [
"MIT"
] | 1 | 2020-06-16T23:22:54.000Z | 2020-06-16T23:22:54.000Z | b0012_integer_to_roman.py | savarin/algorithms | 4d1f8f2361de12a02f376883f648697562d177ae | [
"MIT"
] | null | null | null | b0012_integer_to_roman.py | savarin/algorithms | 4d1f8f2361de12a02f376883f648697562d177ae | [
"MIT"
] | null | null | null |
lookup = [
(10, "x"),
(9, "ix"),
(5, "v"),
(4, "iv"),
(1, "i"),
]
def to_roman(integer):
#
"""
"""
for decimal, roman in lookup:
if decimal <= integer:
return roman + to_roman(integer - decimal)
return ""
def main():
print(to_roman(1))
print(to_ro... | 15.2 | 54 | 0.513158 | 72 | 532 | 3.527778 | 0.375 | 0.30315 | 0.425197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048257 | 0.298872 | 532 | 34 | 55 | 15.647059 | 0.632708 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.375 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d4e1390d738eb0ddc1e3c14bffd7c96ac769e6a | 1,011 | py | Python | P20-Stack Abstract Data Type/Stack - Base Converter.py | necrospiritus/Python-Working-Examples | 075d410673e470fc7c4ffc262e92109a3032132f | [
"MIT"
] | null | null | null | P20-Stack Abstract Data Type/Stack - Base Converter.py | necrospiritus/Python-Working-Examples | 075d410673e470fc7c4ffc262e92109a3032132f | [
"MIT"
] | null | null | null | P20-Stack Abstract Data Type/Stack - Base Converter.py | necrospiritus/Python-Working-Examples | 075d410673e470fc7c4ffc262e92109a3032132f | [
"MIT"
] | null | null | null | class Stack:
def __init__(self):
self.items = []
def is_empty(self): # test to see whether the stack is empty.
return self.items == []
def push(self, item): # adds a new item to the top of the stack.
self.items.append(item)
def pop(self): # removes the top item from the sta... | 25.923077 | 69 | 0.635015 | 148 | 1,011 | 4.182432 | 0.331081 | 0.101777 | 0.058158 | 0.045234 | 0.119548 | 0.119548 | 0.119548 | 0.119548 | 0.119548 | 0 | 0 | 0.030749 | 0.260138 | 1,011 | 39 | 70 | 25.923077 | 0.796791 | 0.192878 | 0 | 0 | 0 | 0 | 0.019729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0.148148 | 0.481481 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1d6e65b0e5d6c4ee6ad11a44b07d0b7c7fe3d49f | 360 | py | Python | SimpleSign.py | wanzhiguo/mininero | 7dd71b02a4613478b59b2670ccf7c74a22cc2ffd | [
"BSD-3-Clause"
] | 182 | 2016-02-05T18:33:09.000Z | 2022-03-23T12:31:54.000Z | SimpleSign.py | wanzhiguo/mininero | 7dd71b02a4613478b59b2670ccf7c74a22cc2ffd | [
"BSD-3-Clause"
] | 81 | 2016-09-04T14:00:24.000Z | 2022-03-28T17:22:52.000Z | SimpleSign.py | wanzhiguo/mininero | 7dd71b02a4613478b59b2670ccf7c74a22cc2ffd | [
"BSD-3-Clause"
] | 63 | 2016-02-05T19:38:06.000Z | 2022-03-07T06:07:46.000Z | import MiniNero
import ed25519
import binascii
import PaperWallet
import cherrypy
import os
import time
import bitmonerod
import SimpleXMR2
import SimpleServer
message = "send0d000114545737471em2WCg9QKxRxbo6S3xKF2K4UDvdu6hMc"
message = "send0d0114545747771em2WCg9QKxRxbo6S3xKF2K4UDvdu6hMc"
sec = raw_input("sec?")
print... | 21.176471 | 65 | 0.858333 | 33 | 360 | 9.333333 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152905 | 0.091667 | 360 | 16 | 66 | 22.5 | 0.788991 | 0 | 0 | 0 | 0 | 0 | 0.300836 | 0.289694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1d8a630a7af7286dcfe25ff650a3b9fddf8961f0 | 1,294 | py | Python | tools/python/boutiques/tests/test_bids.py | shots47s/boutiques | 831f937a6b1491af63a800786967e4d9bca1e262 | [
"MIT"
] | 54 | 2016-07-21T19:14:13.000Z | 2021-11-16T11:49:15.000Z | tools/python/boutiques/tests/test_bids.py | shots47s/boutiques | 831f937a6b1491af63a800786967e4d9bca1e262 | [
"MIT"
] | 539 | 2016-07-20T20:09:38.000Z | 2022-03-17T00:45:26.000Z | tools/python/boutiques/tests/test_bids.py | shots47s/boutiques | 831f937a6b1491af63a800786967e4d9bca1e262 | [
"MIT"
] | 52 | 2016-07-22T18:09:59.000Z | 2021-02-03T15:22:55.000Z | #!/usr/bin/env python
from unittest import TestCase
from boutiques.bosh import bosh
from boutiques.bids import validate_bids
from boutiques import __file__ as bofile
from jsonschema.exceptions import ValidationError
from boutiques.validator import DescriptorValidationError
import os.path as op
import simplejson as jso... | 36.971429 | 76 | 0.641422 | 149 | 1,294 | 5.449664 | 0.315436 | 0.064039 | 0.054187 | 0.064039 | 0.447044 | 0.447044 | 0.447044 | 0.413793 | 0.413793 | 0.413793 | 0 | 0.009288 | 0.251159 | 1,294 | 34 | 77 | 38.058824 | 0.828689 | 0.015456 | 0 | 0.230769 | 0 | 0 | 0.117832 | 0.094266 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.346154 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1d950e325ef85dc98b69ae74e351c6705f81fa42 | 20,121 | py | Python | web/openerp/addons/base/tests/test_ir_actions.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | 1 | 2019-12-29T11:53:56.000Z | 2019-12-29T11:53:56.000Z | odoo/openerp/addons/base/tests/test_ir_actions.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | null | null | null | odoo/openerp/addons/base/tests/test_ir_actions.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | 3 | 2020-10-08T14:42:10.000Z | 2022-01-28T14:12:29.000Z | import unittest2
from openerp.osv.orm import except_orm
import openerp.tests.common as common
from openerp.tools import mute_logger
class TestServerActionsBase(common.TransactionCase):
def setUp(self):
super(TestServerActionsBase, self).setUp()
cr, uid = self.cr, self.uid
# Models
... | 49.195599 | 163 | 0.610705 | 2,544 | 20,121 | 4.576258 | 0.087264 | 0.039942 | 0.103075 | 0.068545 | 0.75889 | 0.72436 | 0.680725 | 0.657275 | 0.634599 | 0.600756 | 0 | 0.008093 | 0.24462 | 20,121 | 408 | 164 | 49.316176 | 0.757879 | 0.068734 | 0 | 0.525836 | 0 | 0.00304 | 0.249853 | 0.008182 | 0 | 0 | 0 | 0 | 0.109422 | 1 | 0.024316 | false | 0 | 0.015198 | 0 | 0.045593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d95852843689e3fd89ad1bab5143b8e92c83354 | 3,564 | py | Python | memory.py | Bl41r/gb-emulator-python | 04917fa0cdd09eb522e1409fc992e41df34fbf9a | [
"MIT"
] | null | null | null | memory.py | Bl41r/gb-emulator-python | 04917fa0cdd09eb522e1409fc992e41df34fbf9a | [
"MIT"
] | null | null | null | memory.py | Bl41r/gb-emulator-python | 04917fa0cdd09eb522e1409fc992e41df34fbf9a | [
"MIT"
] | null | null | null | """Gameboy memory.
Cartridge
---------
[0000-3FFF] Cartridge ROM, bank 0: The first 16,384 bytes of the cartridge program are always available at this point in the memory map. Special circumstances apply:
[0000-00FF] BIOS: When the CPU starts up, PC starts at 0000h, which is the start of the 256-byte GameBoy BIOS code... | 59.4 | 332 | 0.720819 | 582 | 3,564 | 4.376289 | 0.395189 | 0.023557 | 0.021987 | 0.01649 | 0.038477 | 0.021201 | 0.021201 | 0.021201 | 0.021201 | 0 | 0 | 0.031963 | 0.201178 | 3,564 | 59 | 333 | 60.40678 | 0.862662 | 0.763468 | 0 | 0.105263 | 0 | 0 | 0.001248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1da36580d402ceaa2d29765e76d1412b05300439 | 285 | py | Python | diofant/tests/utilities/test_misc.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | 57 | 2016-09-13T23:16:26.000Z | 2022-03-29T06:45:51.000Z | diofant/tests/utilities/test_misc.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | 402 | 2016-05-11T11:11:47.000Z | 2022-03-31T14:27:02.000Z | diofant/tests/utilities/test_misc.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | 20 | 2016-05-11T08:17:37.000Z | 2021-09-10T09:15:51.000Z | from diofant.utilities.decorator import no_attrs_in_subclass
__all__ = ()
def test_no_attrs_in_subclass():
class A:
x = 'test'
A.x = no_attrs_in_subclass(A, A.x)
class B(A):
pass
assert hasattr(A, 'x') is True
assert hasattr(B, 'x') is False
| 15.833333 | 60 | 0.631579 | 45 | 285 | 3.688889 | 0.488889 | 0.048193 | 0.162651 | 0.307229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259649 | 285 | 17 | 61 | 16.764706 | 0.78673 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d53f500a66c4a9814996ed105b5158ad59abc0ad | 1,910 | py | Python | phantomapp/migrations/0009_order_orderproduct.py | t7hm1/My-django-project | cf1a86a5134a86af510f9392a748f129954d1c76 | [
"MIT"
] | 5 | 2018-09-21T13:56:19.000Z | 2019-10-23T23:48:20.000Z | phantomapp/migrations/0009_order_orderproduct.py | mach1el/My-django-project | cf1a86a5134a86af510f9392a748f129954d1c76 | [
"MIT"
] | null | null | null | phantomapp/migrations/0009_order_orderproduct.py | mach1el/My-django-project | cf1a86a5134a86af510f9392a748f129954d1c76 | [
"MIT"
] | 1 | 2019-01-11T10:41:55.000Z | 2019-01-11T10:41:55.000Z | # Generated by Django 2.1 on 2018-09-06 02:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('phantomapp', '0008_auto_20180904_2102'),
]
operations = [
migrations.CreateModel(
name='Order',
... | 42.444444 | 146 | 0.575916 | 184 | 1,910 | 5.836957 | 0.396739 | 0.125698 | 0.100559 | 0.178771 | 0.56797 | 0.361266 | 0.303538 | 0.303538 | 0.303538 | 0.303538 | 0 | 0.041334 | 0.27801 | 1,910 | 44 | 147 | 43.409091 | 0.737491 | 0.022513 | 0 | 0.263158 | 1 | 0 | 0.124933 | 0.024129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d5434f4d2e70af5a0a1a114b544845f6ac8dde26 | 387 | py | Python | lib/mcapi.py | RalphORama/MCPerms | 099d9169b1c7992b7d1c9b72003b846366eb78f7 | [
"MIT"
] | 3 | 2017-12-01T09:39:36.000Z | 2021-07-27T23:52:11.000Z | lib/mcapi.py | RalphORama/MCPerms | 099d9169b1c7992b7d1c9b72003b846366eb78f7 | [
"MIT"
] | null | null | null | lib/mcapi.py | RalphORama/MCPerms | 099d9169b1c7992b7d1c9b72003b846366eb78f7 | [
"MIT"
] | 2 | 2019-02-25T19:05:05.000Z | 2020-02-12T13:17:01.000Z | from requests import get
from json import loads
from time import time
from uuid import UUID
def username_to_uuid(username, when=int(time())):
url = 'https://api.mojang.com/users/profiles/minecraft/{}?at={}'
r = get(url.format(username, when))
if r.status_code == 200:
data = loads(r.text)
... | 21.5 | 68 | 0.648579 | 57 | 387 | 4.350877 | 0.596491 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0.219638 | 387 | 17 | 69 | 22.764706 | 0.811258 | 0 | 0 | 0 | 0 | 0 | 0.149871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d55558bb3f6a8ea15ddbd66ee162839cfc0d523b | 516 | py | Python | backend/mp/apps/questionnarie/migrations/0002_auto_20200327_1422.py | shidashui/mymp | 75d81906908395ece1c8d12249d6afc4bd2d0704 | [
"MIT"
] | 1 | 2020-03-14T12:33:24.000Z | 2020-03-14T12:33:24.000Z | backend/mp/apps/questionnarie/migrations/0002_auto_20200327_1422.py | shidashui/mymp | 75d81906908395ece1c8d12249d6afc4bd2d0704 | [
"MIT"
] | 8 | 2021-03-19T00:59:11.000Z | 2022-03-12T00:19:38.000Z | backend/mp/apps/questionnarie/migrations/0002_auto_20200327_1422.py | shidashui/mymp | 75d81906908395ece1c8d12249d6afc4bd2d0704 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-27 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questionnarie', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='questionnaire',
name='email',
... | 22.434783 | 70 | 0.581395 | 50 | 516 | 5.9 | 0.74 | 0.061017 | 0.149153 | 0.176271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.302326 | 516 | 22 | 71 | 23.454545 | 0.763889 | 0.087209 | 0 | 0.25 | 1 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d55ba82230322a219b1f4cd74baae15cd90185fa | 13,815 | py | Python | newscout_web/news_site/migrations/0002_auto_20190819_1230.py | rsqwerty/newscout_web | 8be095cc3e1a95d6ccf5cd8c43d3f13746b263f2 | [
"Apache-2.0"
] | 3 | 2019-10-30T07:15:59.000Z | 2021-12-26T20:59:05.000Z | newscout_web/news_site/migrations/0002_auto_20190819_1230.py | rsqwerty/newscout_web | 8be095cc3e1a95d6ccf5cd8c43d3f13746b263f2 | [
"Apache-2.0"
] | 322 | 2019-10-30T07:12:36.000Z | 2022-02-10T10:55:32.000Z | newscout_web/news_site/migrations/0002_auto_20190819_1230.py | rsqwerty/newscout_web | 8be095cc3e1a95d6ccf5cd8c43d3f13746b263f2 | [
"Apache-2.0"
] | 7 | 2019-10-30T13:34:54.000Z | 2021-12-27T12:08:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-08-19 12:30
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.auth.validators
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
... | 44.708738 | 317 | 0.573941 | 1,314 | 13,815 | 5.866819 | 0.144597 | 0.042807 | 0.024647 | 0.048515 | 0.744325 | 0.704631 | 0.596186 | 0.582696 | 0.582696 | 0.555195 | 0 | 0.006734 | 0.290554 | 13,815 | 308 | 318 | 44.853896 | 0.779818 | 0.004922 | 0 | 0.664452 | 1 | 0 | 0.137151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003322 | 0.023256 | 0 | 0.033223 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d56289df74f4674cf5abeb1309158e1e0a013342 | 457 | py | Python | class1/class_1_yaml.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class1/class_1_yaml.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class1/class_1_yaml.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | import yaml
import json
yaml_list = range(5)
yaml_list.append('string1')
yaml_list.append('string2')
yaml_list.append({})
yaml_list[-1]
{}
yaml_list[-1]['critter1'] = 'hedgehog'
yaml_list[-1]['critter2'] = 'bunny'
yaml_list[-1]['dungeon_levels'] = range(5)
yaml_list.append('list_end')
with open("class1_list.yml", "w"... | 21.761905 | 57 | 0.706783 | 75 | 457 | 4.08 | 0.4 | 0.287582 | 0.183007 | 0.091503 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.100656 | 457 | 20 | 58 | 22.85 | 0.715328 | 0 | 0 | 0 | 0 | 0 | 0.214912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d56fd836050b26c8b6384555a79574597fcc5e6a | 197 | py | Python | pyCLI/main.py | tillstud/spotirss | 407dbdcc1e625527fec041bd07a19bf4ac456817 | [
"MIT"
] | null | null | null | pyCLI/main.py | tillstud/spotirss | 407dbdcc1e625527fec041bd07a19bf4ac456817 | [
"MIT"
] | null | null | null | pyCLI/main.py | tillstud/spotirss | 407dbdcc1e625527fec041bd07a19bf4ac456817 | [
"MIT"
] | null | null | null | from pyCLI.config import Config
from pyCLI.logging import logger
def main(config: Config):
print(config.pycli_message)
logger.debug("If you enter 'pyCLI -v', you will see this message!")
| 24.625 | 71 | 0.741117 | 30 | 197 | 4.833333 | 0.6 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162437 | 197 | 7 | 72 | 28.142857 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.258883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d582ca9816237ee2b7fbc9eac1fc86001c97f980 | 290 | py | Python | basecam/__init__.py | sdss/baseCam | d5222f2c93df8e5b6ef894f32eca28b1cd3b3616 | [
"BSD-3-Clause"
] | null | null | null | basecam/__init__.py | sdss/baseCam | d5222f2c93df8e5b6ef894f32eca28b1cd3b3616 | [
"BSD-3-Clause"
] | 18 | 2020-01-13T20:57:48.000Z | 2021-06-22T14:43:16.000Z | basecam/__init__.py | sdss/basecam | 526f8be1b7c83e087e8f78484e63ba18531dce87 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
# flake8: noqa
from sdsstools import get_package_version
NAME = "sdss-basecam"
__version__ = get_package_version(__file__, "sdss-basecam") or "dev"
from .camera import *
from .events import *
from .exceptions import *
from .exposure import *
from .notifier import *
| 17.058824 | 68 | 0.748276 | 38 | 290 | 5.394737 | 0.578947 | 0.195122 | 0.165854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.155172 | 290 | 16 | 69 | 18.125 | 0.828571 | 0.096552 | 0 | 0 | 0 | 0 | 0.104247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d588539983a2e180d430faf9156fe49f7c14386f | 372 | py | Python | server/tests/test_env.py | amiralis1365/cards-game | db44eaefd0c10c7876be52e97534f7e4201c9581 | [
"CNRI-Python"
] | null | null | null | server/tests/test_env.py | amiralis1365/cards-game | db44eaefd0c10c7876be52e97534f7e4201c9581 | [
"CNRI-Python"
] | null | null | null | server/tests/test_env.py | amiralis1365/cards-game | db44eaefd0c10c7876be52e97534f7e4201c9581 | [
"CNRI-Python"
] | null | null | null | """Sanity test environment setup."""
import os.path
from django.conf import settings
from django.test import TestCase
class EnvTestCase(TestCase):
"""Environment test cases."""
def test_env_file_exists(self):
"""Test environment file exists."""
env_file = os.path.join(settings.DEFAULT_ENV_PA... | 24.8 | 66 | 0.701613 | 49 | 372 | 5.183673 | 0.469388 | 0.070866 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180108 | 372 | 14 | 67 | 26.571429 | 0.832787 | 0.225806 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d5ab5835f2e337b522ce060307e167093634b260 | 1,056 | py | Python | multiuploader/management/commands/clean_uploads.py | SharmaVinayKumar/django-multiuploader | 58e545307014830b00101129a297b6d465b87583 | [
"MIT"
] | 5 | 2017-02-25T21:12:37.000Z | 2017-03-12T15:05:55.000Z | multiuploader/management/commands/clean_uploads.py | SharmaVinayKumar/django-multiuploader | 58e545307014830b00101129a297b6d465b87583 | [
"MIT"
] | 4 | 2017-02-25T19:08:23.000Z | 2017-03-12T15:53:54.000Z | multiuploader/management/commands/clean_uploads.py | vinaypost/multiuploader | 58e545307014830b00101129a297b6d465b87583 | [
"MIT"
] | null | null | null | from __future__ import print_function, unicode_literals
import os
from datetime import timedelta
import multiuploader.default_settings as DEFAULTS
from django.conf import settings
from django.core.management.base import BaseCommand
from django.utils.timezone import now
from multiuploader.models import MultiuploaderFi... | 35.2 | 87 | 0.730114 | 117 | 1,056 | 6.384615 | 0.555556 | 0.074967 | 0.072289 | 0.082999 | 0.147256 | 0.147256 | 0.147256 | 0.147256 | 0 | 0 | 0 | 0 | 0.208333 | 1,056 | 29 | 88 | 36.413793 | 0.893541 | 0 | 0 | 0 | 0 | 0 | 0.131629 | 0.032197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.52381 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d5ab995005d2f182743e6f37ffa3d88f794d55fe | 540 | py | Python | tests/test_source.py | Koech-code/News-App | 07688d64df5d0512a8d59613d403f7d6a7377360 | [
"MIT"
] | null | null | null | tests/test_source.py | Koech-code/News-App | 07688d64df5d0512a8d59613d403f7d6a7377360 | [
"MIT"
] | null | null | null | tests/test_source.py | Koech-code/News-App | 07688d64df5d0512a8d59613d403f7d6a7377360 | [
"MIT"
] | null | null | null | import unittest
from app.models import Source
class testSource(unittest.TestCase):
"""
SourcesTest class to test the behavior of the Sources class
"""
def setUp(self):
"""
Method that runs before each other test runs
"""
self.new_source = Source('abc-news','ABC news','Yo... | 30 | 140 | 0.661111 | 69 | 540 | 5.014493 | 0.652174 | 0.040462 | 0.075145 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212963 | 540 | 18 | 141 | 30 | 0.814118 | 0.192593 | 0 | 0 | 0 | 0 | 0.236181 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d5acd000db9d4a9b597057b8dfc5cb47789972b8 | 432 | py | Python | python_backend/custom_types/forvo_api_types.py | BenLeong0/japanese_vocab_fetcher | c441eaf46c7330f9319216a6321ce8ec8d3de6cc | [
"MIT"
] | null | null | null | python_backend/custom_types/forvo_api_types.py | BenLeong0/japanese_vocab_fetcher | c441eaf46c7330f9319216a6321ce8ec8d3de6cc | [
"MIT"
] | 2 | 2021-12-26T23:34:02.000Z | 2021-12-26T23:34:11.000Z | python_backend/custom_types/forvo_api_types.py | BenLeong0/japanese_vocab_fetcher | c441eaf46c7330f9319216a6321ce8ec8d3de6cc | [
"MIT"
] | null | null | null | from typing import Literal, TypedDict
class ForvoAPIItem(TypedDict):
id: int
word: str
original: str
addtime: str
hits: int
username: str
sex: str
country: str
code: str
langname: str
pathmp3: str
pathogg: str
rate: int
num_votes: int
num_positive_votes: int... | 17.28 | 43 | 0.655093 | 52 | 432 | 5.384615 | 0.596154 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.268519 | 432 | 24 | 44 | 18 | 0.882911 | 0 | 0 | 0 | 0 | 0 | 0.011574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6344c1a546dfde9307cede5f7a6e9805a1f7479b | 385 | py | Python | roles/lib_openshift/src/lib/import.py | ramkrsna/openshift-ansible | fc96d8d22f6c277b599e6e2fa4e9cc06814a9460 | [
"Apache-2.0"
] | null | null | null | roles/lib_openshift/src/lib/import.py | ramkrsna/openshift-ansible | fc96d8d22f6c277b599e6e2fa4e9cc06814a9460 | [
"Apache-2.0"
] | null | null | null | roles/lib_openshift/src/lib/import.py | ramkrsna/openshift-ansible | fc96d8d22f6c277b599e6e2fa4e9cc06814a9460 | [
"Apache-2.0"
] | null | null | null | # pylint: skip-file
# flake8: noqa
'''
OpenShiftCLI class that wraps the oc commands in a subprocess
'''
# pylint: disable=too-many-lines
from __future__ import print_function
import atexit
import json
import os
import re
import shutil
import subprocess
import tempfile
# pylint: disable=import-error
import ruamel.y... | 20.263158 | 64 | 0.8 | 55 | 385 | 5.490909 | 0.709091 | 0.086093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.14026 | 385 | 18 | 65 | 21.388889 | 0.909366 | 0.397403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
63468acc0ac6a4997496eeb95bb3c0c24a04aa45 | 2,746 | py | Python | formain.py | GenBill/Maple_2K | e82df2c2d549d91a1d53cc8b8b688949a5280792 | [
"MIT"
] | null | null | null | formain.py | GenBill/Maple_2K | e82df2c2d549d91a1d53cc8b8b688949a5280792 | [
"MIT"
] | null | null | null | formain.py | GenBill/Maple_2K | e82df2c2d549d91a1d53cc8b8b688949a5280792 | [
"MIT"
] | null | null | null | from fim_mission import *
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torch.optim as optim
from torch.optim import lr_scheduler
import torchvision.transforms as transforms
from torchvision import datasets, models
import matplo... | 32.305882 | 84 | 0.633285 | 398 | 2,746 | 4.148241 | 0.271357 | 0.072683 | 0.042399 | 0.04361 | 0.185342 | 0.185342 | 0.185342 | 0.185342 | 0.149001 | 0.149001 | 0 | 0.012518 | 0.243627 | 2,746 | 85 | 85 | 32.305882 | 0.782378 | 0.028405 | 0 | 0 | 0 | 0 | 0.060948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.62069 | 0 | 0.62069 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6346c2addc2cf35274df3428a19c76028b86eba4 | 252 | py | Python | Sprachanalyse/versuch.py | DemonicStorm/LitBlogRepo | 0fe436071840f3b9af59f4363967cfc6eb397865 | [
"MIT"
] | 2 | 2022-02-15T19:18:12.000Z | 2022-02-16T08:06:20.000Z | Sprachanalyse/versuch.py | DemonicStorm/LitBlogRepo | 0fe436071840f3b9af59f4363967cfc6eb397865 | [
"MIT"
] | null | null | null | Sprachanalyse/versuch.py | DemonicStorm/LitBlogRepo | 0fe436071840f3b9af59f4363967cfc6eb397865 | [
"MIT"
] | null | null | null | import spacy
from spacy_langdetect import LanguageDetector
import en_core_web_sm
from glob import glob
nlp = en_core_web_sm.load()
#nlp = spacy.load('en')
nlp.add_pipe(LanguageDetector(), name='language_detector', last=True)
print(LanguageDetector) | 21 | 69 | 0.805556 | 37 | 252 | 5.243243 | 0.540541 | 0.061856 | 0.092784 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099206 | 252 | 12 | 70 | 21 | 0.854626 | 0.087302 | 0 | 0 | 0 | 0 | 0.073913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
635a1b194d242f8ac83aa8d4f19dfd8d49c42b24 | 573 | py | Python | app/routes.py | valtemirprocopio/forms | 05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e | [
"MIT"
] | null | null | null | app/routes.py | valtemirprocopio/forms | 05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e | [
"MIT"
] | null | null | null | app/routes.py | valtemirprocopio/forms | 05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e | [
"MIT"
] | null | null | null | from app import app
from flask import render_template, flash, redirect, url_for
from app.forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
return render_template('index.html')
@app.route('/contato', methods=['GET','POST'])
def contato():
form = LoginForm()
if form.validate_on_submit... | 22.92 | 63 | 0.678883 | 73 | 573 | 5.232877 | 0.452055 | 0.146597 | 0.157068 | 0.13089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172775 | 573 | 24 | 64 | 23.875 | 0.805907 | 0 | 0 | 0 | 0 | 0 | 0.187719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
637cdb4f017832b717342e2928773f70e1670584 | 316 | py | Python | 000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | '''
Напишите программу, которая объявляет переменную: "name" и присваивает ей значение "Python".
Программа должна напечатать в одну строку, разделяя пробелами:
Строку "name"
Значение переменной "name"
Число 3
Число 8.5
Sample Input:
Sample Output:
name Python 3 8.5
'''
name = 'Python'
print('name', name, 3, 8.5)
| 19.75 | 92 | 0.743671 | 46 | 316 | 5.108696 | 0.608696 | 0.025532 | 0.025532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033457 | 0.148734 | 316 | 15 | 93 | 21.066667 | 0.840149 | 0.832278 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
63819767d87fb2523fcafd5031ccca5b56c6122d | 4,149 | py | Python | chrome/tools/extract_actions.py | zachlatta/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2021-09-24T22:49:10.000Z | 2021-09-24T22:49:10.000Z | chrome/tools/extract_actions.py | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | chrome/tools/extract_actions.py | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright 2007 Google Inc. All rights reserved.
"""Extract UserMetrics "actions" strings from the Chrome source.
This program generates the list of known actions we expect to see in the
user behavior logs. It walks the Chrome source, looking for calls to
UserMetrics functions, extracting actions... | 33.192 | 78 | 0.699446 | 578 | 4,149 | 4.906574 | 0.33564 | 0.031735 | 0.021157 | 0.023977 | 0.297955 | 0.238717 | 0.187588 | 0.12835 | 0.112835 | 0.112835 | 0 | 0.004417 | 0.18149 | 4,149 | 124 | 79 | 33.459677 | 0.830683 | 0.174018 | 0 | 0.09375 | 1 | 0 | 0.196588 | 0.059708 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
638271269c493149415ea03cdea0dc60c36a233d | 2,898 | py | Python | src/nerb/named_entities.py | johnnygreco/nerb | 1ea395bade7d58b176c965d062987284a2d6f590 | [
"MIT"
] | null | null | null | src/nerb/named_entities.py | johnnygreco/nerb | 1ea395bade7d58b176c965d062987284a2d6f590 | [
"MIT"
] | null | null | null | src/nerb/named_entities.py | johnnygreco/nerb | 1ea395bade7d58b176c965d062987284a2d6f590 | [
"MIT"
] | null | null | null | from __future__ import annotations
# Standard library
import re
from copy import deepcopy
from dataclasses import dataclass
from typing import Callable, Optional
__all__ = ['NamedEntity', 'NamedEntityList']
@dataclass(frozen=True)
class NamedEntity:
name: str
entity: str
string: str
span: tuple[int... | 32.561798 | 111 | 0.622498 | 364 | 2,898 | 4.700549 | 0.337912 | 0.042081 | 0.022794 | 0.024547 | 0.026885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000939 | 0.265355 | 2,898 | 88 | 112 | 32.931818 | 0.802724 | 0.201518 | 0 | 0.037736 | 0 | 0.018868 | 0.11908 | 0.036536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.09434 | 0.056604 | 0.584906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
638b620923dedf797dae35ba43746969775844b6 | 3,935 | py | Python | cd2h_repo_project/modules/doi/schemas.py | galterlibrary/InvenioRDM-at-NU | 5aff6ac7c428c9a61bdf221627bfc05f2280d1a3 | [
"MIT"
] | 6 | 2019-09-02T00:01:50.000Z | 2021-11-04T08:23:40.000Z | cd2h_repo_project/modules/doi/schemas.py | galterlibrary/InvenioRDM-at-NU | 5aff6ac7c428c9a61bdf221627bfc05f2280d1a3 | [
"MIT"
] | 72 | 2019-09-04T18:52:35.000Z | 2020-07-21T19:58:15.000Z | cd2h_repo_project/modules/doi/schemas.py | galterlibrary/InvenioRDM-at-NU | 5aff6ac7c428c9a61bdf221627bfc05f2280d1a3 | [
"MIT"
] | null | null | null | """JSON Schemas."""
import csv
from collections import defaultdict
from datetime import date
from os.path import dirname, join, realpath
from flask import current_app
from marshmallow import Schema, fields
from cd2h_repo_project.modules.records.resource_type import ResourceType
class DataCiteResourceTypeMap(object)... | 30.503876 | 78 | 0.653621 | 429 | 3,935 | 5.869464 | 0.393939 | 0.090548 | 0.028594 | 0.021446 | 0.027006 | 0.027006 | 0 | 0 | 0 | 0 | 0 | 0.004005 | 0.238628 | 3,935 | 128 | 79 | 30.742188 | 0.836449 | 0.276239 | 0 | 0.047619 | 0 | 0 | 0.10855 | 0.036431 | 0 | 0 | 0 | 0.023438 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.587302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
639138968935973bda9f7100f85f9fc9166454f1 | 399 | py | Python | zip/unzip_print.py | juarezhenriquelisboa/Python | 5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf | [
"MIT"
] | 1 | 2021-01-01T14:46:28.000Z | 2021-01-01T14:46:28.000Z | zip/unzip_print.py | juarezhenriquelisboa/Python | 5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf | [
"MIT"
] | null | null | null | zip/unzip_print.py | juarezhenriquelisboa/Python | 5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf | [
"MIT"
] | null | null | null | import zipfile
import sys
for arg in sys.argv[1:]:
senha = str(arg)
z = zipfile.ZipFile("protegido.zip")
files = z.namelist()
z.setpassword(senha)
z.extractall()
z.close()
for extracted_file in files:
print "Nome do arquivo: "+extracted_file+"\n\nConteudo: "
with open(extracted_file) as f:
... | 16.625 | 61 | 0.639098 | 56 | 399 | 4.5 | 0.589286 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.223058 | 399 | 23 | 62 | 17.347826 | 0.809677 | 0 | 0 | 0 | 0 | 0 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.066667 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6392f325bfe2c22484f1ffe055193199e29b8c30 | 948 | py | Python | awards/forms.py | JKimani77/awards | 8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e | [
"MIT"
] | null | null | null | awards/forms.py | JKimani77/awards | 8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e | [
"MIT"
] | null | null | null | awards/forms.py | JKimani77/awards | 8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm,AuthenticationForm
from django.contrib.auth.models import User
from .models import Profile,Project,Review
class RegForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ('usernam... | 26.333333 | 75 | 0.681435 | 98 | 948 | 6.55102 | 0.44898 | 0.056075 | 0.087227 | 0.107477 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006649 | 0.206751 | 948 | 36 | 76 | 26.333333 | 0.847074 | 0 | 0 | 0.166667 | 0 | 0 | 0.128556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
63c00642ff2e4d391cdfd97b2502db83f3e78004 | 276 | py | Python | al_helper/__init__.py | Taehun/al_helper | 8e304a69359e3807564bb15954df2994e0bb8897 | [
"Apache-2.0"
] | null | null | null | al_helper/__init__.py | Taehun/al_helper | 8e304a69359e3807564bb15954df2994e0bb8897 | [
"Apache-2.0"
] | null | null | null | al_helper/__init__.py | Taehun/al_helper | 8e304a69359e3807564bb15954df2994e0bb8897 | [
"Apache-2.0"
] | null | null | null | """Let's score the unlabeled data for the active learning"""
from al_helper.apis import build
from al_helper.helpers import ALHelper, ALHelperFactory, ALHelperObjectDetection
__version__ = "0.1.0"
__all__ = ["build", "ALHelper", "ALHelperFactory", "ALHelperObjectDetection"]
| 39.428571 | 80 | 0.786232 | 33 | 276 | 6.272727 | 0.69697 | 0.057971 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012146 | 0.105072 | 276 | 6 | 81 | 46 | 0.825911 | 0.195652 | 0 | 0 | 0 | 0 | 0.259259 | 0.106481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
63c1e56c492a20f0ed2af22f56c19c8afeb33a3d | 568 | py | Python | flocka/extensions.py | sleekslush/flocka | 3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68 | [
"BSD-2-Clause"
] | 1 | 2018-10-09T14:09:12.000Z | 2018-10-09T14:09:12.000Z | flocka/extensions.py | sleekslush/flocka | 3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68 | [
"BSD-2-Clause"
] | 11 | 2017-03-22T15:26:05.000Z | 2017-06-01T20:17:52.000Z | flocka/extensions.py | sleekslush/flocka | 3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68 | [
"BSD-2-Clause"
] | null | null | null | from flask_cache import Cache
from flask_debugtoolbar import DebugToolbarExtension
from flask_login import LoginManager
from flask_assets import Environment
from flask_migrate import Migrate
from flocka.models import User
# Setup flask cache
cache = Cache()
# Init flask assets
assets_env = Environment()
# Debug Too... | 19.586207 | 52 | 0.806338 | 73 | 568 | 6.09589 | 0.410959 | 0.101124 | 0.076404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132042 | 568 | 28 | 53 | 20.285714 | 0.902637 | 0.121479 | 0 | 0 | 0 | 0 | 0.020284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0.066667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
891d65158f17bd525585b5367fe4ef83f22f5f0b | 416 | py | Python | 1122.py | wilbertgeng/LeetCode_exercise | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | [
"MIT"
] | null | null | null | 1122.py | wilbertgeng/LeetCode_exercise | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | [
"MIT"
] | null | null | null | 1122.py | wilbertgeng/LeetCode_exercise | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | [
"MIT"
] | null | null | null | """1122. Relative Sort Array"""
class Solution(object):
def relativeSortArray(self, arr1, arr2):
"""
:type arr1: List[int]
:type arr2: List[int]
:rtype: List[int]
"""
####
pos = {num:i for i, num in enumerate(arr2)}
return sorted(arr1, key=lambda x: p... | 26 | 62 | 0.526442 | 51 | 416 | 4.294118 | 0.588235 | 0.09589 | 0.146119 | 0.173516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059233 | 0.310096 | 416 | 15 | 63 | 27.733333 | 0.703833 | 0.209135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
89352fbdd1b631cd689cfa66c662c5a6306871c6 | 6,687 | py | Python | beartype/_decor/conf.py | posita/beartype | e56399686e1f2ffd5128a4030b19314504e32450 | [
"MIT"
] | null | null | null | beartype/_decor/conf.py | posita/beartype | e56399686e1f2ffd5128a4030b19314504e32450 | [
"MIT"
] | null | null | null | beartype/_decor/conf.py | posita/beartype | e56399686e1f2ffd5128a4030b19314504e32450 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2021 Beartype authors.
# See "LICENSE" for further details.
'''
**Beartype decorator configuration API** (i.e., enumerations, classes,
singletons, and other attributes enabling external callers t... | 46.117241 | 79 | 0.686257 | 829 | 6,687 | 5.420989 | 0.38842 | 0.015576 | 0.015576 | 0.021139 | 0.080329 | 0.080329 | 0.05385 | 0.05385 | 0.05385 | 0.05385 | 0 | 0.005645 | 0.205324 | 6,687 | 144 | 80 | 46.4375 | 0.839857 | 0.82638 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8942f14789d57a93ee819d488c307294d017124c | 108 | py | Python | examples/blogprj/urls.py | pimentech/django-mongoforms | 6220e91e05d73a26e495460f98667e23dc16c5f6 | [
"BSD-3-Clause"
] | 1 | 2017-07-27T05:44:47.000Z | 2017-07-27T05:44:47.000Z | examples/blogprj/urls.py | pimentech/django-mongoforms | 6220e91e05d73a26e495460f98667e23dc16c5f6 | [
"BSD-3-Clause"
] | null | null | null | examples/blogprj/urls.py | pimentech/django-mongoforms | 6220e91e05d73a26e495460f98667e23dc16c5f6 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^', include('apps.blog.urls')),
) | 21.6 | 39 | 0.657407 | 13 | 108 | 5.461538 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 108 | 5 | 40 | 21.6 | 0.755319 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89738170301569f699c91bba33c6010b3ec65d70 | 430 | py | Python | misago/misago/core/tests/test_frontendcontext_middleware.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/core/tests/test_frontendcontext_middleware.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/core/tests/test_frontendcontext_middleware.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from django.test import TestCase
from ..middleware import FrontendContextMiddleware
class MockRequest:
pass
class FrontendContextMiddlewareTests(TestCase):
def test_middleware_frontend_context_dict(self):
"""Middleware sets frontend_context dict on request"""
request = MockRequest()
... | 25.294118 | 62 | 0.75814 | 40 | 430 | 7.975 | 0.525 | 0.141066 | 0.119122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169767 | 430 | 16 | 63 | 26.875 | 0.893557 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
897a56ea0416972cc519745819a41aaa3ab7c3b3 | 2,017 | py | Python | src/hyperloop/geometry/inlet.py | uwhl/Hyperloop | b00a1a6570e1c3d94b3e0ce95bad75892eb6caec | [
"Apache-2.0"
] | 1 | 2016-09-03T09:46:04.000Z | 2016-09-03T09:46:04.000Z | src/hyperloop/geometry/inlet.py | uwhl/Hyperloop | b00a1a6570e1c3d94b3e0ce95bad75892eb6caec | [
"Apache-2.0"
] | null | null | null | src/hyperloop/geometry/inlet.py | uwhl/Hyperloop | b00a1a6570e1c3d94b3e0ce95bad75892eb6caec | [
"Apache-2.0"
] | null | null | null | from math import pi, sqrt
from openmdao.core.component import Component
class InletGeom(Component):
'''Calculates the dimensions for the inlet and compressor entrance'''
def __init__(self):
super(InletGeom, self).__init__()
self.add_param('wall_thickness', 0.05, desc='thickness of inlet wall',... | 53.078947 | 125 | 0.655429 | 308 | 2,017 | 4.081169 | 0.272727 | 0.055688 | 0.057279 | 0.043755 | 0.209228 | 0.198091 | 0.140016 | 0.10183 | 0.060461 | 0.060461 | 0 | 0.020482 | 0.176996 | 2,017 | 37 | 126 | 54.513514 | 0.736747 | 0.044125 | 0 | 0 | 0 | 0 | 0.33027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.142857 | 0.142857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8986e74c9d5d0f3e83c77fa1bbe488f8b8c7d861 | 1,163 | py | Python | convert.py | 9Knight9n/crawler-legislation-uk | 6f91ccf8323933a1926245a6dd0de747658ec6dd | [
"MIT"
] | null | null | null | convert.py | 9Knight9n/crawler-legislation-uk | 6f91ccf8323933a1926245a6dd0de747658ec6dd | [
"MIT"
] | null | null | null | convert.py | 9Knight9n/crawler-legislation-uk | 6f91ccf8323933a1926245a6dd0de747658ec6dd | [
"MIT"
] | null | null | null | # from os import listdir
# from os.path import isfile, join
#
# from save import xht_files_dir, txt_files_dir_converted
# from utils import convert_xht_to_txt,convert_xht_to_txt_2
# only_files = [f for f in listdir(xht_files_dir) if isfile(join(xht_files_dir, f))]
# for index,file_ in enumerate(only_files):
# pri... | 30.605263 | 145 | 0.656062 | 181 | 1,163 | 3.994475 | 0.337017 | 0.08852 | 0.076072 | 0.082988 | 0.528354 | 0.461964 | 0.392808 | 0.392808 | 0.392808 | 0.392808 | 0 | 0.015674 | 0.177128 | 1,163 | 38 | 146 | 30.605263 | 0.739812 | 0.934652 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89ac931b692c43514c36ae03212d4c0af12bbef1 | 4,877 | py | Python | clld/lib/wordpress.py | Woseseltops/clld | 5ba065f35b7e6f68b8638d86550e6f0f597ff02d | [
"MIT"
] | 1 | 2019-08-12T15:43:56.000Z | 2019-08-12T15:43:56.000Z | clld/lib/wordpress.py | Woseseltops/clld | 5ba065f35b7e6f68b8638d86550e6f0f597ff02d | [
"MIT"
] | null | null | null | clld/lib/wordpress.py | Woseseltops/clld | 5ba065f35b7e6f68b8638d86550e6f0f597ff02d | [
"MIT"
] | null | null | null | """
Client for the xmlrpc API of a wordpress blog.
.. note::
we ignore blog_id altogether, see
http://joseph.randomnetworks.com/archives/2008/06/10/\
blog-id-in-wordpress-and-xml-rpc-blog-apis/
thus, rely on identifying the appropriate blog by xmlrpc endpoint.
"""
import re
import xmlrpclib
import re... | 34.34507 | 90 | 0.541726 | 576 | 4,877 | 4.484375 | 0.291667 | 0.024777 | 0.049555 | 0.054201 | 0.125048 | 0.061556 | 0.030197 | 0 | 0 | 0 | 0 | 0.005493 | 0.328071 | 4,877 | 141 | 91 | 34.588652 | 0.782728 | 0.010252 | 0 | 0.067308 | 0 | 0.019231 | 0.077682 | 0.024531 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.086538 | 0.028846 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
98243878adcb6218f1936ee177c9f2cd4bab733f | 81 | py | Python | models/env.py | claranet/cloud-deploy | a1277f5a1173efffbaeb298c9d22ec0aa39c62e7 | [
"Apache-2.0"
] | 25 | 2018-03-27T13:26:17.000Z | 2022-02-02T09:24:25.000Z | models/env.py | claranet/cloud-deploy | a1277f5a1173efffbaeb298c9d22ec0aa39c62e7 | [
"Apache-2.0"
] | null | null | null | models/env.py | claranet/cloud-deploy | a1277f5a1173efffbaeb298c9d22ec0aa39c62e7 | [
"Apache-2.0"
] | 5 | 2018-05-08T16:09:57.000Z | 2021-08-04T13:12:36.000Z | env = ['prod', 'preprod', 'dev', 'staging', 'test', 'demo', 'int', 'uat', 'oat']
| 40.5 | 80 | 0.506173 | 10 | 81 | 4.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 81 | 1 | 81 | 81 | 0.585714 | 0 | 0 | 0 | 0 | 0 | 0.469136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9832e3a03c7ed0e8cda3d657951d2ea2db2a6ab7 | 1,254 | py | Python | nlpr/utils/nL_nr_assay_check.py | jgrembi/nL-qPCR_PathogenChip | 89a319a6039d8bd8ebc3164046dd8789d422551e | [
"CC0-1.0"
] | null | null | null | nlpr/utils/nL_nr_assay_check.py | jgrembi/nL-qPCR_PathogenChip | 89a319a6039d8bd8ebc3164046dd8789d422551e | [
"CC0-1.0"
] | null | null | null | nlpr/utils/nL_nr_assay_check.py | jgrembi/nL-qPCR_PathogenChip | 89a319a6039d8bd8ebc3164046dd8789d422551e | [
"CC0-1.0"
] | null | null | null | # THE PURPOSE OF THIS SCRIPT IS TO SELECT ASSAYS FROM A LIST OF PRIMER COMBINATIONS, SUCH THAT NO MORE THAN TWO OF THE ASSAYS TARGET EXACTLY APROXIMATELY THE SAME POSITIONS .
import sys
fn = sys.argv[1]
fh = open(fn, 'r')
def plus_or_minus(x,h):
L = []
for i in range(h):
L.append(int(x-i))
L.append(int(x+i))
re... | 25.08 | 174 | 0.729665 | 210 | 1,254 | 4.104762 | 0.366667 | 0.324826 | 0.092807 | 0.025522 | 0.218097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020522 | 0.145136 | 1,254 | 49 | 175 | 25.591837 | 0.783582 | 0.202552 | 0 | 0.108108 | 0 | 0 | 0.001017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.027027 | null | null | 0.054054 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98371d3c3294fca73ee9c19cdbb1162098c454b0 | 1,205 | bzl | Python | csharp/private/sdk.bzl | j3parker/rules_csharp | f5fbbd545b1f18efad5e4ce3d06bfabe6b48eeb4 | [
"Apache-2.0"
] | null | null | null | csharp/private/sdk.bzl | j3parker/rules_csharp | f5fbbd545b1f18efad5e4ce3d06bfabe6b48eeb4 | [
"Apache-2.0"
] | null | null | null | csharp/private/sdk.bzl | j3parker/rules_csharp | f5fbbd545b1f18efad5e4ce3d06bfabe6b48eeb4 | [
"Apache-2.0"
] | null | null | null | """
Declarations for the .NET SDK Downloads URLs and version
These are the URLs to download the .NET SDKs for each of the supported operating systems. These URLs are accessible from: https://dotnet.microsoft.com/download/dotnet-core.
"""
DOTNET_SDK_VERSION = "3.1.100"
DOTNET_SDK = {
"windows": {
"url": "ht... | 50.208333 | 179 | 0.751867 | 132 | 1,205 | 6.818182 | 0.507576 | 0.05 | 0.088889 | 0.093333 | 0.213333 | 0.166667 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0.261278 | 0.117012 | 1,205 | 23 | 180 | 52.391304 | 0.584586 | 0.190871 | 0 | 0 | 0 | 0.176471 | 0.753878 | 0.198552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
987b85fcc75895ef8fd5e121355ef5a571c2a852 | 586 | py | Python | gpytorch/priors/__init__.py | bdecost/gpytorch | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | [
"MIT"
] | null | null | null | gpytorch/priors/__init__.py | bdecost/gpytorch | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | [
"MIT"
] | null | null | null | gpytorch/priors/__init__.py | bdecost/gpytorch | a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a | [
"MIT"
] | 1 | 2018-11-15T10:03:40.000Z | 2018-11-15T10:03:40.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .gamma_prior import GammaPrior
from .multivariate_normal_prior import MultivariateNormalPrior
from .normal_prior import NormalPrior
from .smoothed_box_prior import S... | 36.625 | 81 | 0.863481 | 60 | 586 | 7.916667 | 0.416667 | 0.138947 | 0.134737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109215 | 586 | 15 | 82 | 39.066667 | 0.909962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
98821ed78144f8e01e3dd237b4ed382e65a64488 | 797 | py | Python | setup.py | poliquin/pyfixwidth | a41f25b788f5bd78465f51b42258922709dce9bc | [
"MIT"
] | 6 | 2020-02-13T22:20:15.000Z | 2021-10-12T02:30:51.000Z | setup.py | poliquin/pyfixwidth | a41f25b788f5bd78465f51b42258922709dce9bc | [
"MIT"
] | null | null | null | setup.py | poliquin/pyfixwidth | a41f25b788f5bd78465f51b42258922709dce9bc | [
"MIT"
] | 1 | 2021-06-16T21:21:38.000Z | 2021-06-16T21:21:38.000Z | # -*- coding: utf8 -*-
from distutils.core import setup
setup(
name='pyfixwidth',
packages=['fixwidth'],
version='0.1.1',
description="Read fixed width data files",
author='Chris Poliquin',
author_email='chrispoliquin@gmail.com',
url='https://github.com/poliquin/pyfixwidth',
keywords=[... | 28.464286 | 75 | 0.624843 | 85 | 797 | 5.835294 | 0.741176 | 0.080645 | 0.084677 | 0.114919 | 0.137097 | 0.137097 | 0 | 0 | 0 | 0 | 0 | 0.011094 | 0.208281 | 797 | 27 | 76 | 29.518519 | 0.77496 | 0.025094 | 0 | 0 | 0 | 0 | 0.607742 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98907675d26bfe65790edfc2bde7b8179aee4ad8 | 5,793 | py | Python | tests/test_losses/test_mesh_losses.py | nightfuryyy/mmpose | 910d9e31dd9d46e3329be1b7567e6309d70ab64c | [
"Apache-2.0"
] | 1,775 | 2020-07-10T01:20:01.000Z | 2022-03-31T16:31:50.000Z | tests/test_losses/test_mesh_losses.py | KHB1698/mmpose | 93c3a742c540dfb4ca515ad545cef705a07d90b4 | [
"Apache-2.0"
] | 1,021 | 2020-07-11T11:40:24.000Z | 2022-03-31T14:32:26.000Z | tests/test_losses/test_mesh_losses.py | KHB1698/mmpose | 93c3a742c540dfb4ca515ad545cef705a07d90b4 | [
"Apache-2.0"
] | 477 | 2020-07-11T11:27:51.000Z | 2022-03-31T09:42:25.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch
from numpy.testing import assert_almost_equal
from mmpose.models import build_loss
from mmpose.models.utils.geometry import batch_rodrigues
def test_mesh_loss():
"""test mesh loss."""
loss_cfg = dict(
type='MeshLoss',
... | 35.323171 | 78 | 0.655619 | 887 | 5,793 | 3.990981 | 0.110485 | 0.043503 | 0.081638 | 0.072316 | 0.775989 | 0.744915 | 0.720904 | 0.662429 | 0.622599 | 0.531921 | 0 | 0.053247 | 0.202486 | 5,793 | 163 | 79 | 35.539877 | 0.712987 | 0.017607 | 0 | 0.478261 | 0 | 0 | 0.073291 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 1 | 0.014493 | false | 0 | 0.036232 | 0 | 0.050725 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
989d14ba8bad9846c10db51fb0c7bf4b880dcf12 | 1,422 | py | Python | test/test_add_contact_to_group.py | havrylyshyn/python_training | 2b1e1a3dd3a2b86ce1068fe52e233dee42b07580 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_to_group.py | havrylyshyn/python_training | 2b1e1a3dd3a2b86ce1068fe52e233dee42b07580 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_to_group.py | havrylyshyn/python_training | 2b1e1a3dd3a2b86ce1068fe52e233dee42b07580 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
from model.group import Group
import random
def test_add_contact_to_group(app, db):
if len(db.get_contact_list()) == 0:
app.contact.create(Contact(firstname="contact", lastname="forGroup", address="UA, Kyiv, KPI", homephone="0123456789", email="test@mail.com"))
if len... | 41.823529 | 149 | 0.716596 | 206 | 1,422 | 4.713592 | 0.228155 | 0.051493 | 0.049434 | 0.070031 | 0.774459 | 0.774459 | 0.669413 | 0.669413 | 0.669413 | 0.669413 | 0 | 0.020525 | 0.14346 | 1,422 | 33 | 150 | 43.090909 | 0.776683 | 0.043601 | 0 | 0.538462 | 0 | 0 | 0.115129 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98a2ca2296e875523ce2f68c78e6507e53f436a6 | 721 | py | Python | Chapter10/fabfile_operations.py | frankethp/Hands-On-Enterprise-Automation-with-Python | 4d20dc5fda2265a2c3666770b8ad53e63c7ae07c | [
"MIT"
] | 51 | 2018-07-02T04:03:07.000Z | 2022-03-08T07:20:29.000Z | Chapter10/fabfile_operations.py | MindaugasVaitkus2/Hands-On-Enterprise-Automation-with-Python | 39471804525701e634bd35046d8db3c0bca51dd6 | [
"MIT"
] | 1 | 2018-08-06T10:13:15.000Z | 2020-10-08T12:27:17.000Z | Chapter10/fabfile_operations.py | MindaugasVaitkus2/Hands-On-Enterprise-Automation-with-Python | 39471804525701e634bd35046d8db3c0bca51dd6 | [
"MIT"
] | 43 | 2018-07-24T08:50:41.000Z | 2022-03-18T21:45:40.000Z | #!/usr/bin/python
__author__ = "Bassim Aly"
__EMAIL__ = "basim.alyy@gmail.com"
from fabric.api import *
env.hosts = [
'10.10.10.140', # ubuntu machine
'10.10.10.193', # CentOS machine
]
env.user = "root"
env.password = "access123"
def run_ops():
output = run("hostname")
def get_ops():
try:
... | 16.386364 | 78 | 0.614424 | 100 | 721 | 4.28 | 0.67 | 0.037383 | 0.028037 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052158 | 0.228849 | 721 | 43 | 79 | 16.767442 | 0.717626 | 0.142857 | 0 | 0.222222 | 0 | 0 | 0.278502 | 0.043974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.074074 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7f2f313dd457f2204002811c97661a2ad5ef1b2a | 633 | py | Python | Project Pattern/pattern_26.py | AMARTYA2020/nppy | 7f750534bb5faa4e661447ca132077de0ce0a0ed | [
"MIT"
] | 4 | 2020-12-07T10:15:08.000Z | 2021-11-17T11:21:07.000Z | Project Pattern/pattern_26.py | AMARTYA2020/nppy | 7f750534bb5faa4e661447ca132077de0ce0a0ed | [
"MIT"
] | null | null | null | Project Pattern/pattern_26.py | AMARTYA2020/nppy | 7f750534bb5faa4e661447ca132077de0ce0a0ed | [
"MIT"
] | 1 | 2021-02-17T07:53:13.000Z | 2021-02-17T07:53:13.000Z | class Pattern_Twenty_Six:
'''Pattern twenty_six
***
* *
*
* ***
* *
* *
***
'''
def __init__(self, strings='*'):
if not isinstance(strings, str):
strings = str(strings)
for i in range(7):
if i i... | 19.181818 | 49 | 0.388626 | 60 | 633 | 3.816667 | 0.483333 | 0.170306 | 0.209607 | 0.174672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026946 | 0.472354 | 633 | 32 | 50 | 19.78125 | 0.658683 | 0.086888 | 0 | 0 | 0 | 0 | 0.132937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0.266667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f2fcabb83cbf0cb2f3a253ecff31e49e9b71e6b | 1,069 | py | Python | SVD.py | divi9626/RANSAC | c109e41bc9a476b64572d82c92a8aa20504df41a | [
"MIT"
] | null | null | null | SVD.py | divi9626/RANSAC | c109e41bc9a476b64572d82c92a8aa20504df41a | [
"MIT"
] | null | null | null | SVD.py | divi9626/RANSAC | c109e41bc9a476b64572d82c92a8aa20504df41a | [
"MIT"
] | null | null | null | import numpy as np
A = np.asarray([[-5, -5, -1, 0, 0, 0, 500, 500, 100],
[0, 0, 0, -5, -5, -1, 500, 500, 100],
[-150, -5, -1, 0, 0, 0, 30000, 1000, 200],
[0, 0, 0, -150, -5, -1, 12000, 400, 80],
[-150, -150, -1, 0,... | 26.725 | 70 | 0.424696 | 182 | 1,069 | 2.467033 | 0.258242 | 0.071269 | 0.053452 | 0.035635 | 0.256125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230216 | 0.34986 | 1,069 | 40 | 71 | 26.725 | 0.415827 | 0.097287 | 0 | 0 | 0 | 0 | 0.061111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f2fea8781d091be4e8f7a425ea94d6e86e56885 | 911 | py | Python | apps/university/api/serializers.py | ilyukevich/university-schedule | 305e568b00a847a8d2d10217568e7f87833fb5b3 | [
"MIT"
] | null | null | null | apps/university/api/serializers.py | ilyukevich/university-schedule | 305e568b00a847a8d2d10217568e7f87833fb5b3 | [
"MIT"
] | null | null | null | apps/university/api/serializers.py | ilyukevich/university-schedule | 305e568b00a847a8d2d10217568e7f87833fb5b3 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ..models import Faculties, Departaments, StudyGroups, Auditories, Disciplines
class FacultiesSerializers(serializers.ModelSerializer):
"""Faculties API"""
class Meta:
fields = '__all__'
model = Faculties
class DepartamentsSerializers(serializers.M... | 21.186047 | 82 | 0.683864 | 73 | 911 | 8.246575 | 0.315068 | 0.215947 | 0.099668 | 0.149502 | 0.215947 | 0.215947 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227223 | 911 | 42 | 83 | 21.690476 | 0.855114 | 0.084523 | 0 | 0.454545 | 0 | 0 | 0.043317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7f3f0bcb734c5067a788e80bda49721133fbbbe5 | 4,247 | py | Python | oo/carro.py | RafaelLJC/pythonbirds | 43d401c6ef2b539ec45e19a218d0032de0435162 | [
"MIT"
] | null | null | null | oo/carro.py | RafaelLJC/pythonbirds | 43d401c6ef2b539ec45e19a218d0032de0435162 | [
"MIT"
] | null | null | null | oo/carro.py | RafaelLJC/pythonbirds | 43d401c6ef2b539ec45e19a218d0032de0435162 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 21 16:41:09 2020
@author: rafae
Exercício
Você deve criar uma classe carro que vai possuir dois atributos
compostos por outras duas classes:
1) motor;
2) Direção.
O motor terá a responsabilidade de controlar a velocidade.
Ele oferece os seguintes atributos:
1) Atribu... | 23.859551 | 77 | 0.586296 | 471 | 4,247 | 5.125265 | 0.191083 | 0.054681 | 0.070008 | 0.060895 | 0.41135 | 0.288732 | 0.049296 | 0 | 0 | 0 | 0 | 0.011765 | 0.299506 | 4,247 | 177 | 78 | 23.99435 | 0.799664 | 0.622086 | 0 | 0.388889 | 0 | 0 | 0.011285 | 0 | 0 | 0 | 0 | 0.022599 | 0 | 1 | 0.240741 | false | 0 | 0 | 0.037037 | 0.333333 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f60669d9c8f83bdc7550f5d0401483d476b3958 | 1,565 | py | Python | setup.py | charlesthomas/testrail_reporter | bc522ed3a66aee38c21cc45e2d3b9a786df45e02 | [
"MIT"
] | null | null | null | setup.py | charlesthomas/testrail_reporter | bc522ed3a66aee38c21cc45e2d3b9a786df45e02 | [
"MIT"
] | null | null | null | setup.py | charlesthomas/testrail_reporter | bc522ed3a66aee38c21cc45e2d3b9a786df45e02 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
NAME = 'testrail_reporter'
DESCRIPTION = 'Nosetests Plugin to Report Test Results to TestRail.'
VERSION = open('VERSION').read().strip()
LONG_DESC = open('README.rst').read()
LICENSE = open('LICENSE').read()
setup(
name=NAME,
version=VERSION,
author='Char... | 36.395349 | 98 | 0.645367 | 167 | 1,565 | 5.976048 | 0.520958 | 0.152305 | 0.200401 | 0.104208 | 0.054108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017572 | 0.2 | 1,565 | 42 | 99 | 37.261905 | 0.779553 | 0.025559 | 0 | 0 | 0 | 0 | 0.601445 | 0.034143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f6a2ed067f756a98844a26933435661e374cbc1 | 991 | py | Python | mushroom_rl/utils/eligibility_trace.py | PuzeLiu/mushroom-rl | 99942b425e66b4ddcc26009d7105dde23841e95d | [
"MIT"
] | 344 | 2020-01-10T09:45:02.000Z | 2022-03-30T09:48:28.000Z | mushroom_rl/utils/eligibility_trace.py | AmmarFahmy/mushroom-rl | 2625ee7f64d5613b3b9fba00f0b7a39fece88ca5 | [
"MIT"
] | 44 | 2020-01-23T03:00:56.000Z | 2022-03-25T17:14:22.000Z | mushroom_rl/utils/eligibility_trace.py | AmmarFahmy/mushroom-rl | 2625ee7f64d5613b3b9fba00f0b7a39fece88ca5 | [
"MIT"
] | 93 | 2020-01-10T21:17:58.000Z | 2022-03-31T17:58:52.000Z | from mushroom_rl.utils.table import Table
def EligibilityTrace(shape, name='replacing'):
"""
Factory method to create an eligibility trace of the provided type.
Args:
shape (list): shape of the eligibility trace table;
name (str, 'replacing'): type of the eligibility trace.
Returns:
... | 21.543478 | 71 | 0.616549 | 112 | 991 | 5.446429 | 0.401786 | 0.104918 | 0.093443 | 0.068852 | 0.236066 | 0.236066 | 0.236066 | 0.236066 | 0.236066 | 0.236066 | 0 | 0.00554 | 0.271443 | 991 | 45 | 72 | 22.022222 | 0.839335 | 0.303734 | 0 | 0.333333 | 0 | 0 | 0.083736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7f71ee99f2565a596f85f7576a116d55d2f91fcd | 6,927 | py | Python | pyoperant/reinf.py | arouse01/pyoperant | e61de84862096720cca7dbecf517ee11c5d504d4 | [
"BSD-3-Clause"
] | 1 | 2019-01-26T17:19:47.000Z | 2019-01-26T17:19:47.000Z | pyoperant/reinf.py | arouse01/pyoperant | e61de84862096720cca7dbecf517ee11c5d504d4 | [
"BSD-3-Clause"
] | null | null | null | pyoperant/reinf.py | arouse01/pyoperant | e61de84862096720cca7dbecf517ee11c5d504d4 | [
"BSD-3-Clause"
] | null | null | null | from numpy import random
class BaseSchedule(object):
"""Maintains logic for deciding whether to consequate trials.
This base class provides the most basic reinforcent schedule: every
response is consequated.
Methods:
consequate(trial) -- returns a boolean value based on whether the trial
... | 31.06278 | 91 | 0.664501 | 814 | 6,927 | 5.55774 | 0.184275 | 0.045093 | 0.015915 | 0.038683 | 0.727675 | 0.673077 | 0.638373 | 0.59107 | 0.59107 | 0.577365 | 0 | 0.006099 | 0.266205 | 6,927 | 222 | 92 | 31.202703 | 0.883927 | 0.483326 | 0 | 0.725275 | 0 | 0 | 0.02568 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 1 | 0.197802 | false | 0 | 0.010989 | 0.032967 | 0.516484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7f794d62fc3c675ead0a023096a5c67f9a7ede0f | 195 | py | Python | 1-iniciante/1038.py | marcobarone-dev/uri | 82bf0b244d3966673b10a42948dcdeabcde07e76 | [
"MIT"
] | 1 | 2018-07-04T02:42:29.000Z | 2018-07-04T02:42:29.000Z | 1-iniciante/1038.py | marcobarone-dev/uri-python | 82bf0b244d3966673b10a42948dcdeabcde07e76 | [
"MIT"
] | null | null | null | 1-iniciante/1038.py | marcobarone-dev/uri-python | 82bf0b244d3966673b10a42948dcdeabcde07e76 | [
"MIT"
] | null | null | null | produtos = {1: 4.0, 2: 4.5, 3: 5.0, 4: 2.0, 5: 1.5}
produto, quantidade = [int(num) for num in input().split()]
total = produtos[produto] * quantidade
print('Total: R$ {:.2f}'.format(total))
| 39 | 60 | 0.605128 | 35 | 195 | 3.371429 | 0.571429 | 0.288136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09816 | 0.164103 | 195 | 4 | 61 | 48.75 | 0.625767 | 0 | 0 | 0 | 0 | 0 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f94ad38bbb98e281664244307b46754d21960c0 | 2,859 | py | Python | tests/unit/test_handler_marker.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | 4 | 2020-08-24T13:31:46.000Z | 2022-01-25T08:03:19.000Z | tests/unit/test_handler_marker.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | null | null | null | tests/unit/test_handler_marker.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | null | null | null | import pytest
from bigxml.handler_marker import _ATTR_MARKER, xml_handle_element, xml_handle_text
from bigxml.nodes import XMLText
def test_one_maker_element():
@xml_handle_element("abc", "def")
def fct(arg):
return arg * 6
assert getattr(fct, _ATTR_MARKER, None) == (("abc", "def"),)
assert ... | 23.628099 | 83 | 0.593214 | 363 | 2,859 | 4.391185 | 0.15427 | 0.090339 | 0.110414 | 0.065245 | 0.705772 | 0.685696 | 0.659348 | 0.542033 | 0.523212 | 0.483061 | 0 | 0.017561 | 0.263029 | 2,859 | 120 | 84 | 23.825 | 0.738965 | 0.010843 | 0 | 0.568182 | 0 | 0 | 0.046709 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 1 | 0.238636 | false | 0 | 0.034091 | 0.113636 | 0.420455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7f971a249f5ab865830322c937e8dd39d7142ad5 | 149 | py | Python | Codeforces Problems/Soldier and bananas/Soldier and Bananas.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | null | null | null | Codeforces Problems/Soldier and bananas/Soldier and Bananas.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | 1 | 2020-10-13T20:57:34.000Z | 2020-10-13T20:57:34.000Z | Codeforces Problems/Soldier and bananas/Soldier and Bananas.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | null | null | null | arr=[int(x) for x in input().split()]
sum=0
for i in range(1,(arr[2]+1)):
sum+=arr[0]*i
if sum<=arr[1]:
print(0)
else:
print(sum-arr[1])
| 16.555556 | 37 | 0.557047 | 33 | 149 | 2.515152 | 0.484848 | 0.216867 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0.187919 | 149 | 8 | 38 | 18.625 | 0.619835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7fb391590f55d21149c4442ca20b07a2041ace3f | 6,835 | py | Python | experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py | BranPap/gender_ideology | 2b2b87e13cb7a8abd0403828fbc235768a774aaa | [
"MIT"
] | 1 | 2021-03-30T03:12:05.000Z | 2021-03-30T03:12:05.000Z | experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py | BranPap/gender_ideology | 2b2b87e13cb7a8abd0403828fbc235768a774aaa | [
"MIT"
] | null | null | null | experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py | BranPap/gender_ideology | 2b2b87e13cb7a8abd0403828fbc235768a774aaa | [
"MIT"
] | 1 | 2021-03-30T03:41:32.000Z | 2021-03-30T03:41:32.000Z | import json
import pandas as pd
import random
df = pd.read_csv("experiment\stimuli_creation\maze_lexemes.csv")
states = ["California","Alabama","Alaska","Arizona","Arkansas","Connecticut","Colorado","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Ma... | 42.71875 | 582 | 0.574689 | 799 | 6,835 | 4.750939 | 0.188986 | 0.213383 | 0.32824 | 0.053741 | 0.670179 | 0.644889 | 0.635406 | 0.629347 | 0.615121 | 0.577977 | 0 | 0.004764 | 0.232187 | 6,835 | 159 | 583 | 42.987421 | 0.718559 | 0 | 0 | 0.687075 | 0 | 0.006803 | 0.245208 | 0.0297 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7fb79206ce5753b6ec8f399db4b0f99941b1fce3 | 1,243 | py | Python | Hash PWs for Cisco/setupPW.py | NetworkNick-US/PythonScripts | b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b | [
"MIT"
] | null | null | null | Hash PWs for Cisco/setupPW.py | NetworkNick-US/PythonScripts | b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b | [
"MIT"
] | null | null | null | Hash PWs for Cisco/setupPW.py | NetworkNick-US/PythonScripts | b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b | [
"MIT"
] | null | null | null | import getpass
import os
import platform
import subprocess
class Style:
BLACK = '\033[30m'
RED = '\033[31m'
GREEN = '\033[32m'
YELLOW = '\033[33m'
BLUE = '\033[34m'
MAGENTA = '\033[35m'
CYAN = '\033[36m'
WHITE = '\033[37m'
UNDERLINE = '\033[4m'
RESET = '\033[0m'
BLUEBACKGRO... | 29.595238 | 120 | 0.65889 | 168 | 1,243 | 4.809524 | 0.613095 | 0.019802 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055724 | 0.205953 | 1,243 | 41 | 121 | 30.317073 | 0.762918 | 0 | 0 | 0 | 0 | 0.032258 | 0.394208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.258065 | 0.129032 | 0.032258 | 0.645161 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
7fbb3e0a262f49733f933fde19767b6609edf780 | 16,513 | py | Python | learning_experiments/src3/eval_trained_model.py | TommasoBendinelli/spatial_relations_experiments | cd165437835a37c947ccf13a77531a5a42d4c925 | [
"MIT"
] | null | null | null | learning_experiments/src3/eval_trained_model.py | TommasoBendinelli/spatial_relations_experiments | cd165437835a37c947ccf13a77531a5a42d4c925 | [
"MIT"
] | null | null | null | learning_experiments/src3/eval_trained_model.py | TommasoBendinelli/spatial_relations_experiments | cd165437835a37c947ccf13a77531a5a42d4c925 | [
"MIT"
] | null | null | null | import argparse
import os
import os.path as osp
import cv2
import numpy as np
from scipy.stats import multivariate_normal
from scipy.stats import norm
import matplotlib
# matplotlib.use('agg')
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import subprocess
import shutil
import chainer
from ch... | 36.452539 | 146 | 0.664507 | 2,824 | 16,513 | 3.6767 | 0.082861 | 0.050082 | 0.031783 | 0.034672 | 0.737455 | 0.718482 | 0.662525 | 0.65405 | 0.633728 | 0.607339 | 0 | 0.047245 | 0.137346 | 16,513 | 453 | 147 | 36.452539 | 0.681643 | 0.101738 | 0 | 0.472603 | 0 | 0 | 0.087571 | 0.011898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017123 | false | 0 | 0.078767 | 0 | 0.09589 | 0.109589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6862c3a762adb42778672f66157ed1731e5cdfe | 1,079 | py | Python | Most Asked DSA By Companies/Meta/3-973.py | neelaadityakumar/leetcode | e78e0b8dc0113bdc1721bf7d025a463bea04847f | [
"MIT"
] | null | null | null | Most Asked DSA By Companies/Meta/3-973.py | neelaadityakumar/leetcode | e78e0b8dc0113bdc1721bf7d025a463bea04847f | [
"MIT"
] | null | null | null | Most Asked DSA By Companies/Meta/3-973.py | neelaadityakumar/leetcode | e78e0b8dc0113bdc1721bf7d025a463bea04847f | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/k-closest-points-to-origin/
# 973. K Closest Points to Origin
# Medium
# Share
# Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0).
# The distance between two points on the X-Y plane... | 34.806452 | 157 | 0.644115 | 199 | 1,079 | 3.497487 | 0.41206 | 0.064655 | 0.060345 | 0.068966 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068886 | 0.192771 | 1,079 | 30 | 158 | 35.966667 | 0.729047 | 0.95088 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6866a52596fe4972475bf119793b740f2d4ea78 | 1,232 | py | Python | src/huaytools/pytorch/modules/loss/cosine_similarity.py | imhuay/studies-gitbook | 69a31c20c91d131d0fafce0622f4035b9b95e93a | [
"MIT"
] | 100 | 2021-10-13T01:22:27.000Z | 2022-03-31T09:52:49.000Z | src/huaytools/pytorch/modules/loss/cosine_similarity.py | imhuay/studies-gitbook | 69a31c20c91d131d0fafce0622f4035b9b95e93a | [
"MIT"
] | null | null | null | src/huaytools/pytorch/modules/loss/cosine_similarity.py | imhuay/studies-gitbook | 69a31c20c91d131d0fafce0622f4035b9b95e93a | [
"MIT"
] | 27 | 2021-11-01T01:05:09.000Z | 2022-03-31T03:32:01.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Time: 2021-10-13 8:30 下午
Author: huayang
Subject:
"""
import os
import sys
import json
import doctest
from typing import *
from collections import defaultdict
from torch.nn import functional as F # noqa
from huaytools.pytorch.modules.loss.mean_squared_error import... | 21.614035 | 95 | 0.624188 | 160 | 1,232 | 4.58125 | 0.5625 | 0.04502 | 0.065484 | 0.05457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027748 | 0.239448 | 1,232 | 56 | 96 | 22 | 0.754536 | 0.521916 | 0 | 0 | 0 | 0 | 0.016227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.533333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f68d9b8db5553fd496f890e0ba612aaca3bab81b | 26,309 | py | Python | Gather_Data.py | batumoglu/Home_Credit | bf3f918bafdc0e9be1c24809068fac1242fff881 | [
"Apache-2.0"
] | 1 | 2019-11-04T08:49:34.000Z | 2019-11-04T08:49:34.000Z | Gather_Data.py | batumoglu/Home_Credit | bf3f918bafdc0e9be1c24809068fac1242fff881 | [
"Apache-2.0"
] | null | null | null | Gather_Data.py | batumoglu/Home_Credit | bf3f918bafdc0e9be1c24809068fac1242fff881 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 28 19:51:12 2018
@author: ozkan
"""
import pandas as pd
import numpy as np
#from sklearn.preprocessing import MinMaxScaler, LabelEncoder
from scipy import stats
import gc
import GatherTables
def one_hot_encoder(df):
original_columns = list(df.... | 47.661232 | 130 | 0.656505 | 3,634 | 26,309 | 4.441387 | 0.072647 | 0.035688 | 0.053036 | 0.021128 | 0.793556 | 0.753284 | 0.689653 | 0.654089 | 0.640211 | 0.63798 | 0 | 0.006963 | 0.20301 | 26,309 | 552 | 131 | 47.661232 | 0.762781 | 0.028317 | 0 | 0.580189 | 0 | 0 | 0.225486 | 0.03407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04717 | false | 0 | 0.011792 | 0.011792 | 0.084906 | 0.04717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f68df4f6b83e61acb9a971c85b9efef84578fc72 | 216 | py | Python | ois/data_request.py | pandincus/ois-service | 7ed45ea5a758f5b529d823aeda60b73a89da66e2 | [
"MIT"
] | 3 | 2018-07-09T04:02:01.000Z | 2018-08-29T09:57:36.000Z | ois/data_request.py | pandincus/ois-service | 7ed45ea5a758f5b529d823aeda60b73a89da66e2 | [
"MIT"
] | null | null | null | ois/data_request.py | pandincus/ois-service | 7ed45ea5a758f5b529d823aeda60b73a89da66e2 | [
"MIT"
] | null | null | null | from .data_request_type import DataRequestType
class DataRequest():
def __init__(self, fieldName, requestType):
self.fieldName = fieldName
self.requestType = requestType
self.value = 0
| 21.6 | 47 | 0.699074 | 22 | 216 | 6.590909 | 0.681818 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.231481 | 216 | 9 | 48 | 24 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f69101537e1714c27d7b564d92d8f58ca2160bfc | 4,001 | py | Python | lawerWeb/settings.py | xia-deng/lawerWeb | 6d2fe3642b2b7fbdda568e3af240bbcf6fda6c48 | [
"Apache-2.0"
] | null | null | null | lawerWeb/settings.py | xia-deng/lawerWeb | 6d2fe3642b2b7fbdda568e3af240bbcf6fda6c48 | [
"Apache-2.0"
] | null | null | null | lawerWeb/settings.py | xia-deng/lawerWeb | 6d2fe3642b2b7fbdda568e3af240bbcf6fda6c48 | [
"Apache-2.0"
] | null | null | null | """
Django settings for lawerWeb project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | 27.784722 | 121 | 0.699075 | 466 | 4,001 | 5.847639 | 0.448498 | 0.07156 | 0.056514 | 0.06422 | 0.204771 | 0.18055 | 0.097982 | 0.097982 | 0.044037 | 0 | 0 | 0.01221 | 0.16071 | 4,001 | 143 | 122 | 27.979021 | 0.799285 | 0.290927 | 0 | 0 | 1 | 0 | 0.522436 | 0.364672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.011765 | 0 | 0.011765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f6996c46ab316655cd0bf4a158ff83417ba37b8e | 3,900 | py | Python | construction/markdown.py | rik/mesconseilscovid | ff4b365a677da6bb73284ca5bba73651cde570e9 | [
"MIT"
] | null | null | null | construction/markdown.py | rik/mesconseilscovid | ff4b365a677da6bb73284ca5bba73651cde570e9 | [
"MIT"
] | null | null | null | construction/markdown.py | rik/mesconseilscovid | ff4b365a677da6bb73284ca5bba73651cde570e9 | [
"MIT"
] | null | null | null | import re
from textwrap import indent
import mistune
from jinja2 import Template
from .directives.injection import InjectionDirective
from .directives.renvoi import RenvoiDirective
from .directives.section import SectionDirective
from .directives.question import QuestionDirective
from .directives.toc import Directive... | 27.857143 | 92 | 0.647436 | 445 | 3,900 | 5.51236 | 0.28764 | 0.026091 | 0.022829 | 0.017122 | 0.064411 | 0.041582 | 0.020383 | 0 | 0 | 0 | 0 | 0.00033 | 0.223077 | 3,900 | 139 | 93 | 28.057554 | 0.809241 | 0.045641 | 0 | 0.022222 | 0 | 0.011111 | 0.089607 | 0.045787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.011111 | 0.122222 | 0.144444 | 0.577778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
f699d90b4f3cca23aac7e6c012ba4fdf6a39d432 | 5,404 | py | Python | HMS/Hospital/models.py | Arshad360/Hospital-Management-System-Cse327-Projectr | 707ab80d021f8a2d10e28b25dd8df5aea512787a | [
"MIT"
] | 2 | 2021-02-10T18:10:30.000Z | 2021-04-27T18:07:51.000Z | HMS/Hospital/models.py | Arshad360/Hospital-Management-System-Cse327-Projectr | 707ab80d021f8a2d10e28b25dd8df5aea512787a | [
"MIT"
] | 1 | 2020-09-23T19:00:54.000Z | 2020-09-23T19:04:22.000Z | HMS/Hospital/models.py | Arshad360/Hospital-Management-System-Cse327-Projectr | 707ab80d021f8a2d10e28b25dd8df5aea512787a | [
"MIT"
] | 1 | 2021-05-02T17:11:33.000Z | 2021-05-02T17:11:33.000Z | from django.db import models
from django.contrib.auth.models import User
# Create your models here
# All the departments
departments = [('Cardiologist', 'Cardiologist'),
('Dermatologists', 'Dermatologists'),
('Emergency Medicine Specialists', 'Emergency Medicine Specialists'),
... | 29.210811 | 98 | 0.675611 | 576 | 5,404 | 6.237847 | 0.189236 | 0.062622 | 0.115224 | 0.153632 | 0.708043 | 0.669079 | 0.646257 | 0.646257 | 0.646257 | 0.623434 | 0 | 0.012441 | 0.211695 | 5,404 | 184 | 99 | 29.369565 | 0.830986 | 0.053294 | 0 | 0.632479 | 0 | 0 | 0.106611 | 0.024816 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017094 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6ad70965cd923a8fabd51c9477be6519ca96f2f | 281 | py | Python | tests/test.py | J35P312/vcf2cytosure | e2867afc1a697c09a1f2f400e1a5ac3365499234 | [
"MIT"
] | 1 | 2019-01-21T11:37:43.000Z | 2019-01-21T11:37:43.000Z | tests/test.py | J35P312/vcf2cytosure | e2867afc1a697c09a1f2f400e1a5ac3365499234 | [
"MIT"
] | 39 | 2017-04-06T09:30:09.000Z | 2022-02-06T10:32:09.000Z | tests/test.py | J35P312/vcf2cytosure | e2867afc1a697c09a1f2f400e1a5ac3365499234 | [
"MIT"
] | 3 | 2017-04-06T09:28:24.000Z | 2020-06-25T09:30:26.000Z | import pytest
from unittest.mock import patch
import vcf2cytosure
def test_version_argument():
with patch('sys.argv', ['vcf2cytosure.py','--version']):
with pytest.raises(SystemExit) as excinfo:
vcf2cytosure.main()
assert excinfo.value.code == 0
| 23.416667 | 60 | 0.683274 | 33 | 281 | 5.757576 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.202847 | 281 | 11 | 61 | 25.545455 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.113879 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | true | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f6af847c4409dc5698048181b6fa67b8dcf6d55a | 1,808 | py | Python | playback/db.py | Nierot/Spotify | 11dfe064cbd281c86473ef025d41f7eef293e81b | [
"MIT"
] | null | null | null | playback/db.py | Nierot/Spotify | 11dfe064cbd281c86473ef025d41f7eef293e81b | [
"MIT"
] | null | null | null | playback/db.py | Nierot/Spotify | 11dfe064cbd281c86473ef025d41f7eef293e81b | [
"MIT"
] | null | null | null | from . import models
def new_user(name, date, token):
existing_users = models.User.objects.filter(token=token)
if (len(models.User.objects.filter(token=token)) > 0):
return False
else:
user = models.User(name=name,created_at=date,token=token)
user.save()
return True
def new... | 27.393939 | 81 | 0.690819 | 272 | 1,808 | 4.444853 | 0.161765 | 0.046319 | 0.042184 | 0.029777 | 0.275434 | 0.258065 | 0.163772 | 0.163772 | 0.163772 | 0.163772 | 0 | 0.006892 | 0.197456 | 1,808 | 66 | 82 | 27.393939 | 0.826327 | 0.128319 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.022222 | 0.088889 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f6b1308798ea655f67ea118514f86ed5643a557d | 665 | py | Python | tests/test_csvtodb.py | rv816/csvtodb | 020ef50e44e458cddeec84f42d3d6e372aa678df | [
"0BSD"
] | null | null | null | tests/test_csvtodb.py | rv816/csvtodb | 020ef50e44e458cddeec84f42d3d6e372aa678df | [
"0BSD"
] | null | null | null | tests/test_csvtodb.py | rv816/csvtodb | 020ef50e44e458cddeec84f42d3d6e372aa678df | [
"0BSD"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_csvtodb
----------------------------------
Tests for `csvtodb` module.
"""
import unittest
from csvtodb.csvtodb import *
class TestCsvtodb(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_000_somethin... | 19 | 86 | 0.593985 | 80 | 665 | 4.7625 | 0.6375 | 0.062992 | 0.057743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018727 | 0.196992 | 665 | 34 | 87 | 19.558824 | 0.694757 | 0.178947 | 0 | 0.1875 | 0 | 0 | 0.136194 | 0.039179 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.25 | false | 0.1875 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f6b528db6aa41bb01a751fc5e92895bd172d0c13 | 681 | py | Python | src/main/python/proc/expression/let.py | cjblink1/lang | 245b8d002341dce4fa5905b1f274770e34867c7e | [
"MIT"
] | null | null | null | src/main/python/proc/expression/let.py | cjblink1/lang | 245b8d002341dce4fa5905b1f274770e34867c7e | [
"MIT"
] | null | null | null | src/main/python/proc/expression/let.py | cjblink1/lang | 245b8d002341dce4fa5905b1f274770e34867c7e | [
"MIT"
] | null | null | null |
from proc.expression.expression import Expression
from proc.environment import Environment
class LetExpression(Expression):
def __init__(self, variable: str, bound_expression: Expression, body: Expression):
self.variable = variable
self.bound_expression = bound_expression
self.body = body... | 40.058824 | 123 | 0.735683 | 77 | 681 | 6.350649 | 0.311688 | 0.184049 | 0.116564 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0053 | 0.168869 | 681 | 17 | 124 | 40.058824 | 0.858657 | 0 | 0 | 0 | 0 | 0 | 0.073421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
101a8bad1d0114bbb79e68c96eb4371364f2ff83 | 771 | py | Python | examples/python/numpy_functions.py | benedicteb/FYS2140-Resources | 31b572e455c3ac8dff868db903f18687e363f1bf | [
"MIT"
] | null | null | null | examples/python/numpy_functions.py | benedicteb/FYS2140-Resources | 31b572e455c3ac8dff868db903f18687e363f1bf | [
"MIT"
] | null | null | null | examples/python/numpy_functions.py | benedicteb/FYS2140-Resources | 31b572e455c3ac8dff868db903f18687e363f1bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Created on Mon 2 Dec 2013
Script viser import av funksjoner fra numpy og bruk av noen.
@author Benedicte Emilie Braekken
"""
from numpy import *
print 'e^1 =', exp( 1 ) # Eksponentialfunksjonen
print 'cos(pi) =', cos( pi ) # Cosinus
print 'sqrt(4) =', sqrt... | 28.555556 | 72 | 0.553826 | 124 | 771 | 3.435484 | 0.475806 | 0.018779 | 0.070423 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 0.286641 | 771 | 26 | 73 | 29.653846 | 0.656364 | 0.169909 | 0 | 0 | 0 | 0 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.857143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
63d8ff7291ec00834c06722d6f791ed6401a8d77 | 158 | py | Python | Desafios/desafio053.py | josivantarcio/Desafios-em-Python | c747eed785b9640e15c498262fc5f8f5afd4337e | [
"MIT"
] | null | null | null | Desafios/desafio053.py | josivantarcio/Desafios-em-Python | c747eed785b9640e15c498262fc5f8f5afd4337e | [
"MIT"
] | 1 | 2021-04-23T15:11:11.000Z | 2021-05-21T22:36:56.000Z | Desafios/desafio053.py | josivantarcio/Desafios-em-Python | c747eed785b9640e15c498262fc5f8f5afd4337e | [
"MIT"
] | null | null | null | frase = str(input('Digite a frase: ')).strip().upper()
palavras = frase.split()
juntarPalavras = ''.join(palavras)
trocar = juntarPalavras[::-1]
print(trocar) | 31.6 | 54 | 0.702532 | 19 | 158 | 5.842105 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.094937 | 158 | 5 | 55 | 31.6 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.