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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44b3cebd337c6f32ed6e99a3bf2d657fcab0b105 | 24,317 | py | Python | pysnmp-with-texts/Wellfleet-DS1-MIB.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/Wellfleet-DS1-MIB.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/Wellfleet-DS1-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 Wellfleet-DS1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-DS1-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:39:54 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 116.908654 | 2,309 | 0.782827 | 2,853 | 24,317 | 6.671924 | 0.092885 | 0.080693 | 0.141214 | 0.013449 | 0.58839 | 0.415603 | 0.373785 | 0.35792 | 0.233465 | 0.233465 | 0 | 0.072754 | 0.088827 | 24,317 | 207 | 2,310 | 117.47343 | 0.786343 | 0.013489 | 0 | 0 | 0 | 0.015 | 0.237073 | 0.004587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035 | 0 | 0.035 | 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 |
44dea66fc60c0479bc3d1350dae80457f29dfb93 | 1,247 | py | Python | TicTacToe/player.py | Eberhofer/TicTacToe | 6b7c9c49a153499b4c85aa36db1d98ec4a188f2f | [
"MIT"
] | null | null | null | TicTacToe/player.py | Eberhofer/TicTacToe | 6b7c9c49a153499b4c85aa36db1d98ec4a188f2f | [
"MIT"
] | null | null | null | TicTacToe/player.py | Eberhofer/TicTacToe | 6b7c9c49a153499b4c85aa36db1d98ec4a188f2f | [
"MIT"
] | null | null | null | """
player.py - the Player class
------------------------
"""
import TicTacToe.tictactoe as tictactoe
class Player:
""""
Defines a TicTacToe game with an AI opponent.
"""
def __init__(self):
self._winners = tictactoe.winners()
self._state = set()
def play_field(self, f... | 24.94 | 82 | 0.567763 | 138 | 1,247 | 4.956522 | 0.376812 | 0.065789 | 0.052632 | 0.052632 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327185 | 1,247 | 49 | 83 | 25.44898 | 0.815256 | 0.342422 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0 | 0.611111 | 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 |
44e7d70e593b39a0b1ada7134396318656908dab | 663 | py | Python | solutions/solved008.py | pedraodeveloper66/Najma | f95cf99ac9ef313ba51be35ab5abb6865e7d4efc | [
"MIT"
] | null | null | null | solutions/solved008.py | pedraodeveloper66/Najma | f95cf99ac9ef313ba51be35ab5abb6865e7d4efc | [
"MIT"
] | null | null | null | solutions/solved008.py | pedraodeveloper66/Najma | f95cf99ac9ef313ba51be35ab5abb6865e7d4efc | [
"MIT"
] | null | null | null | """
Write a program that reads a value in meters and displays it converted to centimeters and millimeters
"""
m = float(input('Uma distância em metros: '))
"""Kilometre --> Divide the length value by 1000"""
km = m / 1000
"""Hectometre --> Divide the length value by 100"""
hm = m / 100
"""Decametre --> Divide the leng... | 33.15 | 110 | 0.651584 | 111 | 663 | 3.891892 | 0.432432 | 0.125 | 0.194444 | 0.222222 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066055 | 0.177979 | 663 | 19 | 111 | 34.894737 | 0.726606 | 0.152338 | 0 | 0 | 0 | 0.125 | 0.371429 | 0.155102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
44f4455f7b1c431872869b5254723282ae1ed661 | 352 | py | Python | driver.py | sreedom/rabbit-pipeline | 0de713832b5fe89622d8b04509dc52a09ed4fc0c | [
"MIT"
] | 3 | 2017-04-03T07:41:25.000Z | 2022-02-09T18:53:46.000Z | driver.py | sreedom/rabbit-pipeline | 0de713832b5fe89622d8b04509dc52a09ed4fc0c | [
"MIT"
] | null | null | null | driver.py | sreedom/rabbit-pipeline | 0de713832b5fe89622d8b04509dc52a09ed4fc0c | [
"MIT"
] | 1 | 2022-02-09T18:53:39.000Z | 2022-02-09T18:53:39.000Z | ### fake driver
from pipeline import Pipeline
from components import C1, C2, C3
# TODO ^^ or should we use a registry ?
#http://en.wikipedia.org/wiki/Newick_format
# representing pipeline of format C1-C2-C4
# |- C3
pipeline = 'C1(C2(C4),C3)'
leadgen_pipeline = Pipeline.from_newick(p... | 23.466667 | 49 | 0.673295 | 48 | 352 | 4.854167 | 0.583333 | 0.051502 | 0.051502 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.21875 | 352 | 14 | 50 | 25.142857 | 0.807273 | 0.485795 | 0 | 0 | 0 | 0 | 0.075145 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
780641fe84d0169d12334b7923a0d4f40a7fefb7 | 676 | py | Python | bash/cleanup.py | LaudateCorpus1/Aruba-FlaskwithNetworking | 9af1e626e782ed38d1d58858edaece88e1f76208 | [
"MIT"
] | null | null | null | bash/cleanup.py | LaudateCorpus1/Aruba-FlaskwithNetworking | 9af1e626e782ed38d1d58858edaece88e1f76208 | [
"MIT"
] | null | null | null | bash/cleanup.py | LaudateCorpus1/Aruba-FlaskwithNetworking | 9af1e626e782ed38d1d58858edaece88e1f76208 | [
"MIT"
] | null | null | null | # (C) Copyright 2021 Hewlett Packard Enterprise Development LP.
#!/usr/bin/python3
import schedule
from datetime import date, datetime, time, timedelta
import time
from cleanupclasses import cleanupTrackers as cleanupTrackers
from cleanupclasses import cleanupafcAudit as cleanupafcAudit
from cleanupclasses imp... | 33.8 | 66 | 0.807692 | 78 | 676 | 6.987179 | 0.448718 | 0.13211 | 0.176147 | 0.115596 | 0.188991 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0.020236 | 0.122781 | 676 | 19 | 67 | 35.578947 | 0.89882 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 |
780a68b29119d46c377be1da43a843e4efdc7887 | 1,251 | py | Python | Exercises/Week4/pexpect_tests.py | netkidd/py-ne | d609b4feeb98deed3d6b5216e73cab2883232693 | [
"Apache-2.0"
] | null | null | null | Exercises/Week4/pexpect_tests.py | netkidd/py-ne | d609b4feeb98deed3d6b5216e73cab2883232693 | [
"Apache-2.0"
] | null | null | null | Exercises/Week4/pexpect_tests.py | netkidd/py-ne | d609b4feeb98deed3d6b5216e73cab2883232693 | [
"Apache-2.0"
] | null | null | null |
import pexpect
from getpass import getpass
'''
3. Use Pexpect to retrieve the output of 'show ip int brief' from pynet-rtr2.
4. Use PExpect to change the logging buffer size (logging buffered <size>) on pynet-rtr2. Verify this change by examining the output of 'show run'.
'''
rtr2_ip = '184.105.247.71'
rtr2_usernam... | 24.057692 | 147 | 0.697842 | 186 | 1,251 | 4.55914 | 0.365591 | 0.15684 | 0.122642 | 0.09434 | 0.412736 | 0.412736 | 0.313679 | 0.238208 | 0.238208 | 0.238208 | 0 | 0.027237 | 0.178257 | 1,251 | 51 | 148 | 24.529412 | 0.797665 | 0 | 0 | 0.483871 | 0 | 0 | 0.284169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.096774 | 0.064516 | null | null | 0.16129 | 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 |
780b542f720112fd50e4308fda987d84f19b0059 | 987 | py | Python | smart_open/tests/test_package.py | sivchand/smart_open | 35d80d3bec5324c19427ce49fa8284f5b1c2c112 | [
"MIT"
] | 2,047 | 2016-06-16T15:35:45.000Z | 2022-03-31T04:32:57.000Z | smart_open/tests/test_package.py | MateLabs/smart-open | 7774087eb979db74f3f61ba5d512f0cc96607d5e | [
"MIT"
] | 524 | 2016-06-16T09:48:14.000Z | 2022-03-30T13:21:25.000Z | smart_open/tests/test_package.py | MateLabs/smart-open | 7774087eb979db74f3f61ba5d512f0cc96607d5e | [
"MIT"
] | 308 | 2016-06-16T09:02:51.000Z | 2022-03-24T20:57:52.000Z | # -*- coding: utf-8 -*-
import os
import unittest
import pytest
from smart_open import open
skip_tests = "SMART_OPEN_TEST_MISSING_DEPS" not in os.environ
class PackageTests(unittest.TestCase):
@pytest.mark.skipif(skip_tests, reason="requires missing dependencies")
def test_azure_raises_helpful_error_with_m... | 35.25 | 82 | 0.721378 | 133 | 987 | 5.105263 | 0.330827 | 0.066274 | 0.070692 | 0.088365 | 0.705449 | 0.658321 | 0.621502 | 0.56701 | 0.56701 | 0.56701 | 0 | 0.003632 | 0.163121 | 987 | 27 | 83 | 36.555556 | 0.818402 | 0.021277 | 0 | 0.157895 | 0 | 0 | 0.251037 | 0.029046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.368421 | 0 | 0.578947 | 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 |
7819a57e7f8c80daa178f6ebdb4724fef6140cf9 | 509 | py | Python | sshub_middleware/settings/__init__.py | muhfajar/sshub-middleware | a0f68dafc1bc963998a86fe992ea88f394d89f61 | [
"MIT"
] | null | null | null | sshub_middleware/settings/__init__.py | muhfajar/sshub-middleware | a0f68dafc1bc963998a86fe992ea88f394d89f61 | [
"MIT"
] | null | null | null | sshub_middleware/settings/__init__.py | muhfajar/sshub-middleware | a0f68dafc1bc963998a86fe992ea88f394d89f61 | [
"MIT"
] | null | null | null | import random
from .base import *
try:
from .private import *
except ImportError:
raise ImportError("""
Please create private.py file
with contain configuration for
====================================
SECRET_KEY = '{}'
DEBUG = False
ALLOWED_HOSTS = []
SSHUB_API = 'api-key'
==... | 26.789474 | 106 | 0.516699 | 43 | 509 | 6.023256 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.222004 | 509 | 18 | 107 | 28.277778 | 0.623737 | 0 | 0 | 0.125 | 0 | 0 | 0.581532 | 0.239686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
781af811a56b408c71d1f19a70f24f52c71bcc21 | 612 | py | Python | dvc/remote/gdrive/utils.py | Baranowski/dvc | f91aa0665f6898991af0d617373ed99623b60c4a | [
"Apache-2.0"
] | null | null | null | dvc/remote/gdrive/utils.py | Baranowski/dvc | f91aa0665f6898991af0d617373ed99623b60c4a | [
"Apache-2.0"
] | null | null | null | dvc/remote/gdrive/utils.py | Baranowski/dvc | f91aa0665f6898991af0d617373ed99623b60c4a | [
"Apache-2.0"
] | null | null | null | import os
from dvc.progress import Tqdm
FOLDER_MIME_TYPE = "application/vnd.google-apps.folder"
class TrackFileReadProgress(object):
def __init__(self, progress_name, fobj):
self.progress_name = progress_name
self.fobj = fobj
file_size = os.fstat(fobj.fileno()).st_size
self.tqdm... | 23.538462 | 66 | 0.661765 | 81 | 612 | 4.790123 | 0.419753 | 0.123711 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228758 | 612 | 25 | 67 | 24.48 | 0.822034 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 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 |
78228c408e9db4c18cd9a997d51a696b806143be | 878 | py | Python | src/commands/jsdoc/generate_jsdoc.py | PranjalPansuriya/JavaScriptEnhancements | 14af4162e86585153cbd4614ad96dff64a0d3192 | [
"MIT"
] | 690 | 2017-04-11T06:45:01.000Z | 2022-03-21T23:20:29.000Z | src/commands/jsdoc/generate_jsdoc.py | PranjalPansuriya/JavaScriptEnhancements | 14af4162e86585153cbd4614ad96dff64a0d3192 | [
"MIT"
] | 74 | 2017-11-22T18:05:26.000Z | 2021-05-05T16:25:31.000Z | src/commands/jsdoc/generate_jsdoc.py | PranjalPansuriya/JavaScriptEnhancements | 14af4162e86585153cbd4614ad96dff64a0d3192 | [
"MIT"
] | 42 | 2017-04-13T10:22:40.000Z | 2021-05-27T19:19:04.000Z | import sublime, sublime_plugin
import os
from ...libs import util
from ...libs import JavascriptEnhancementsExecuteOnTerminalCommand
class JavascriptEnhancementsGenerateJsdocCommand(JavascriptEnhancementsExecuteOnTerminalCommand, sublime_plugin.WindowCommand):
is_node = True
is_bin_path = True
def prepare_comm... | 32.518519 | 127 | 0.759681 | 102 | 878 | 6.294118 | 0.441176 | 0.070093 | 0.101246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137813 | 878 | 27 | 128 | 32.518519 | 0.848085 | 0 | 0 | 0 | 1 | 0 | 0.128555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7826ee3e13a3ebc6892bfde3e43069172e7d7551 | 451 | py | Python | hg/res/loaders/image_loader.py | V0idExp/mercury | 50cfa6f09c69fd0509d5d549679b56b91720bb73 | [
"MIT"
] | null | null | null | hg/res/loaders/image_loader.py | V0idExp/mercury | 50cfa6f09c69fd0509d5d549679b56b91720bb73 | [
"MIT"
] | 2 | 2021-03-31T19:33:16.000Z | 2021-12-13T20:33:49.000Z | hg/res/loaders/image_loader.py | V0idExp/mercury | 50cfa6f09c69fd0509d5d549679b56b91720bb73 | [
"MIT"
] | null | null | null | import os
import sdl2
from hg.gfx.sprite_renderer.sprite import Image
from .loader import Loader
class ImageLoader(Loader):
def __init__(self, sdl_renderer: sdl2.SDL_Renderer):
self.__renderer = sdl_renderer
def load(self, path):
surface = sdl2.ext.load_image(path)
texture = sdl2.... | 23.736842 | 77 | 0.725055 | 59 | 451 | 5.305085 | 0.440678 | 0.105431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.184035 | 451 | 18 | 78 | 25.055556 | 0.839674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.727273 | 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 |
7828f97f55e8ef2cb46292bfb5a90355034d3be4 | 5,223 | py | Python | utils/test/expected_values.py | DanielSola/bitcoin-analysis | 1d86ebdc91984403b1dedb99cb74641cd8367066 | [
"MIT"
] | null | null | null | utils/test/expected_values.py | DanielSola/bitcoin-analysis | 1d86ebdc91984403b1dedb99cb74641cd8367066 | [
"MIT"
] | null | null | null | utils/test/expected_values.py | DanielSola/bitcoin-analysis | 1d86ebdc91984403b1dedb99cb74641cd8367066 | [
"MIT"
] | null | null | null | expected_number_of_transactions = [
2650, 2543, 1395, 2751, 2398, 2827, 2737, 3084, 1998, 2997, 976,
1929, 3268, 1904, 1772, 776, 2553, 2547, 2581, 2226, 2307, 2812,
2618, 177, 1538, 1990, 2323, 2613, 2503, 2140, 2542, 2291, 2782,
1994, 2513, 2773, 1359, 1744, 868, 896, 2228, 2300, 2349, 2440,
2562, 2123,... | 60.034483 | 81 | 0.745166 | 673 | 5,223 | 5.76523 | 0.937593 | 0.008247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.824265 | 0.127321 | 5,223 | 86 | 82 | 60.732558 | 0.026986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7833a0aa700f4e72281df682196f90aaade80458 | 282 | py | Python | flask_api_server/conf.py | SaraHan774/NaverDevfestAndroid | 4d01d9612df76216ae4e753ce620b9be04743892 | [
"MIT"
] | null | null | null | flask_api_server/conf.py | SaraHan774/NaverDevfestAndroid | 4d01d9612df76216ae4e753ce620b9be04743892 | [
"MIT"
] | 1 | 2021-06-02T00:02:26.000Z | 2021-06-02T00:02:26.000Z | flask_api_server/conf.py | SaraHan774/NaverFest | aafbcde663de2614e660e651a6cbe31b887663dc | [
"MIT"
] | null | null | null | import json
with open('config.json', 'r') as f:
config = json.load(f)
n_thread = config["DEFAULT"]["THREAD_NUM"]
base_dir = config["DEFAULT"]["BASE_DIR"]
ip = config["DEFAULT"]["SERVER_IP"]
port = config["DEFAULT"]["SERVER_PORT"]
log_path = config["DEFAULT"]["LOGGING_PATH"]
| 23.5 | 44 | 0.680851 | 41 | 282 | 4.487805 | 0.512195 | 0.353261 | 0.206522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113475 | 282 | 11 | 45 | 25.636364 | 0.736 | 0 | 0 | 0 | 0 | 0 | 0.343972 | 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 |
783693de85093969592c5e60bd4509c7753a045e | 5,687 | py | Python | server/scripts/tracking_markers_class2.py | stoddabr/chairbot_ui_rework | 01419e004e37c5a33d5cdbf32fffcacfaea3952c | [
"Apache-2.0"
] | null | null | null | server/scripts/tracking_markers_class2.py | stoddabr/chairbot_ui_rework | 01419e004e37c5a33d5cdbf32fffcacfaea3952c | [
"Apache-2.0"
] | null | null | null | server/scripts/tracking_markers_class2.py | stoddabr/chairbot_ui_rework | 01419e004e37c5a33d5cdbf32fffcacfaea3952c | [
"Apache-2.0"
] | null | null | null | '''
tracking_markers_class
version: 2
changed from version 1/0 to allow for an arbitrary
number of chairs. Instead of verbosely declaring every
chair as a variable in the class, now there is an array
of filenames saved in the self.filenames variable
TODO write a full description of the class
TODO understand the gemoe... | 38.167785 | 114 | 0.497802 | 601 | 5,687 | 4.670549 | 0.392679 | 0.02565 | 0.012825 | 0.00855 | 0.0171 | 0.0171 | 0 | 0 | 0 | 0 | 0 | 0.023715 | 0.421663 | 5,687 | 148 | 115 | 38.425676 | 0.829735 | 0 | 0 | 0.150685 | 0 | 0 | 0.02358 | 0.005627 | 0 | 0 | 0 | 0.013514 | 0 | 0 | null | null | 0.027397 | 0.054795 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
783abddbbaac7a5863b31798d5073653260d0536 | 589 | py | Python | course_code/section2/1_variables_methods.py | KhrulSergey/AutomatedTesting_233 | f1341cc0370cae5dd40230c4955695937478353d | [
"Apache-2.0"
] | 2 | 2019-10-03T17:26:17.000Z | 2021-05-09T01:00:55.000Z | course_code/section2/1_variables_methods.py | KhrulSergey/AutomatedTesting_233 | f1341cc0370cae5dd40230c4955695937478353d | [
"Apache-2.0"
] | null | null | null | course_code/section2/1_variables_methods.py | KhrulSergey/AutomatedTesting_233 | f1341cc0370cae5dd40230c4955695937478353d | [
"Apache-2.0"
] | null | null | null | a = 5
b = 10
my_variable = 56
any_variable_name = 100
string_variable = "hello"
single_quotes = 'strings can have single quotes'
print(string_variable)
print(my_variable)
# print is a method with one parameter—what we want to print
def my_print_method(my_parameter):
print(my_parameter)
my_print_method(string_v... | 21.035714 | 72 | 0.78438 | 93 | 589 | 4.677419 | 0.408602 | 0.147126 | 0.202299 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02549 | 0.134126 | 589 | 27 | 73 | 21.814815 | 0.82549 | 0.132428 | 0 | 0 | 0 | 0 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0.058824 | 0.176471 | 0.470588 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
7854857e6da56084723ed21419513481babd9d16 | 427 | py | Python | turnero/turnero_app/task.py | Juannauta/Turnero | 4af8186cf95508713ec9bcc076740ffbc40b2bb8 | [
"MIT"
] | null | null | null | turnero/turnero_app/task.py | Juannauta/Turnero | 4af8186cf95508713ec9bcc076740ffbc40b2bb8 | [
"MIT"
] | null | null | null | turnero/turnero_app/task.py | Juannauta/Turnero | 4af8186cf95508713ec9bcc076740ffbc40b2bb8 | [
"MIT"
] | null | null | null |
import time
import redis
import os
import json
from config import celery_app
redis_client = redis.StrictRedis(host=os.environ.get('REDIS_SERVER_HOST'), port=6379, db=0)
@celery_app.task()
def task_notification(pk=None):
"""
the request is very fast and the database does not send answer for this is used slee... | 25.117647 | 91 | 0.723653 | 65 | 427 | 4.630769 | 0.707692 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.156909 | 427 | 17 | 92 | 25.117647 | 0.822222 | 0.199063 | 0 | 0 | 0 | 0 | 0.116564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
785b44ee72513401a18215620824fd50461c56e5 | 403 | py | Python | environments/var_voltage_control/voltage_barrier/bowl.py | eddie-atkinson/MAPDN | 8f39b387c5b83825a5747bafc3ab89176313ab32 | [
"MIT"
] | 30 | 2021-10-31T13:23:52.000Z | 2022-03-12T09:06:53.000Z | environments/var_voltage_control/voltage_barrier/bowl.py | eddie-atkinson/MAPDN | 8f39b387c5b83825a5747bafc3ab89176313ab32 | [
"MIT"
] | 9 | 2021-11-15T09:40:08.000Z | 2022-03-17T09:11:04.000Z | environments/var_voltage_control/voltage_barrier/bowl.py | eddie-atkinson/MAPDN | 8f39b387c5b83825a5747bafc3ab89176313ab32 | [
"MIT"
] | 18 | 2021-11-12T03:10:17.000Z | 2022-03-20T18:39:05.000Z | import numpy as np
def bowl(vs, v_ref=1.0, scale=.1):
def normal(v, loc, scale):
return 1 / np.sqrt(2 * np.pi * scale**2) * np.exp( - 0.5 * np.square(v - loc) / scale**2 )
def _bowl(v):
if np.abs(v-v_ref) > 0.05:
return 2 * np.abs(v-v_ref) - 0.095
else:
return ... | 31 | 98 | 0.523573 | 77 | 403 | 2.662338 | 0.402597 | 0.078049 | 0.073171 | 0.068293 | 0.107317 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0.08156 | 0.300248 | 403 | 13 | 99 | 31 | 0.64539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.8 | 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 |
7876f195f30152532f5ba50ae1565d9501d01d21 | 273 | py | Python | falmer/schema/middleware.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 2 | 2017-04-27T19:35:59.000Z | 2017-06-13T16:19:33.000Z | falmer/schema/middleware.py | sussexstudent/falmer | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 975 | 2017-04-13T11:31:07.000Z | 2022-02-10T07:46:18.000Z | falmer/schema/middleware.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 3 | 2018-05-09T06:42:25.000Z | 2020-12-10T18:29:30.000Z |
import sys
import logging
class SentryMiddleware(object):
def resolve(self, next, root, info, **args):
try:
return next(root, info, **args)
except:
err = sys.exc_info()
logging.error(err)
return err[1]
| 19.5 | 48 | 0.545788 | 31 | 273 | 4.774194 | 0.645161 | 0.108108 | 0.162162 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.347985 | 273 | 13 | 49 | 21 | 0.825843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
788109953bb66958ad0787c84167a89358fe0751 | 453 | py | Python | myapp/decorators.py | menghao2015/MyBlog | 8cc7b74295bfbdfc0f825665c915bf36bbf772fe | [
"MIT"
] | null | null | null | myapp/decorators.py | menghao2015/MyBlog | 8cc7b74295bfbdfc0f825665c915bf36bbf772fe | [
"MIT"
] | null | null | null | myapp/decorators.py | menghao2015/MyBlog | 8cc7b74295bfbdfc0f825665c915bf36bbf772fe | [
"MIT"
] | null | null | null | from functools import wraps
from flask import abort
from flask.ext.login import current_user
from .models import Permission
def permission_required(permission):
def decorators(f):
@wraps(f)
def decorators_function(*args, **kwargs):
if not current_user.can(permission):
abort(403)
return f(*args, **kwarg... | 21.571429 | 53 | 0.770419 | 60 | 453 | 5.7 | 0.433333 | 0.052632 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007732 | 0.143488 | 453 | 20 | 54 | 22.65 | 0.873711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.266667 | 0.066667 | 0.8 | 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 |
7882f7aae1f9a3efd0f9219f4cbaba99eaa426b8 | 232 | py | Python | Taller de Estrucuras de Control Repeticion/Punto01.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | Taller de Estrucuras de Control Repeticion/Punto01.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | Taller de Estrucuras de Control Repeticion/Punto01.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | #punto 1
#entradas
n=int(input("Escriba el primer digito "))
k=int(input("Escriba el primer digito "))
#caja negra y salidas
while True:
n=0
if(k<n):
n=n-1
print(n)
elif(n==k):
print(k)
break | 17.846154 | 41 | 0.568966 | 39 | 232 | 3.384615 | 0.564103 | 0.121212 | 0.227273 | 0.257576 | 0.439394 | 0.439394 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.284483 | 232 | 13 | 42 | 17.846154 | 0.777108 | 0.155172 | 0 | 0 | 0 | 0 | 0.257732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
788466dc50026cba1153493f413a98170ae13869 | 11,775 | py | Python | Pinto Python/Cog/nsfw.py | KaroDC/Pinto-Bot-Discord | 2e30fafc8f71969ca062fcd9c27fe9f513da021f | [
"CC0-1.0"
] | null | null | null | Pinto Python/Cog/nsfw.py | KaroDC/Pinto-Bot-Discord | 2e30fafc8f71969ca062fcd9c27fe9f513da021f | [
"CC0-1.0"
] | null | null | null | Pinto Python/Cog/nsfw.py | KaroDC/Pinto-Bot-Discord | 2e30fafc8f71969ca062fcd9c27fe9f513da021f | [
"CC0-1.0"
] | null | null | null | import asyncio
import discord
from discord.ext import commands
import random
import time
from discord \
import Member, Guild
import datetime
from datetime import datetime
from datetime import date
import configparser
import os, os.path
import json
from discord.ext.commands import *
from discord.voice_... | 60.076531 | 2,143 | 0.639745 | 1,573 | 11,775 | 4.764781 | 0.195168 | 0.097131 | 0.129686 | 0.162108 | 0.718746 | 0.699666 | 0.508205 | 0.442562 | 0.427618 | 0.416278 | 0 | 0.084468 | 0.195669 | 11,775 | 195 | 2,144 | 60.384615 | 0.706895 | 0 | 0 | 0.436464 | 0 | 0.027624 | 0.432556 | 0.003886 | 0 | 0 | 0.010363 | 0 | 0 | 1 | 0.01105 | false | 0 | 0.226519 | 0 | 0.243094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7886def95476186404819508e08c26b97962162b | 285 | py | Python | test/linkage-agent/manual/run_small_test_with_matches-single-schema.py | greshje/linkage-agent-tools | bc3a041c74cfe96950a0e3c011dd6a0185ad912d | [
"Apache-2.0"
] | 1 | 2020-06-25T19:57:56.000Z | 2020-06-25T19:57:56.000Z | test/linkage-agent/manual/run_small_test_with_matches-single-schema.py | greshje/linkage-agent-tools | bc3a041c74cfe96950a0e3c011dd6a0185ad912d | [
"Apache-2.0"
] | null | null | null | test/linkage-agent/manual/run_small_test_with_matches-single-schema.py | greshje/linkage-agent-tools | bc3a041c74cfe96950a0e3c011dd6a0185ad912d | [
"Apache-2.0"
] | null | null | null | import test_util.linkage.run_full_linkage_test as flt
def run_test():
print("Starting test...")
flt.run_full_linkage_test("test-data/envs/small-no-households-with-matches-single-schema/config.json")
print("Done with test")
if __name__ == "__main__":
run_test()
| 17.8125 | 106 | 0.719298 | 42 | 285 | 4.47619 | 0.619048 | 0.074468 | 0.148936 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14386 | 285 | 15 | 107 | 19 | 0.770492 | 0 | 0 | 0 | 0 | 0.142857 | 0.395018 | 0.259786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
789851294dd8964c382766b8bcbe878892ade4a7 | 2,030 | py | Python | dogs/migrations/0004_event_owner.py | Shovatandukar/dog-meetup-backend | 3ee3bf3dcf8c2f2debd7f65daffdd04ed8b4f0e2 | [
"MIT"
] | null | null | null | dogs/migrations/0004_event_owner.py | Shovatandukar/dog-meetup-backend | 3ee3bf3dcf8c2f2debd7f65daffdd04ed8b4f0e2 | [
"MIT"
] | null | null | null | dogs/migrations/0004_event_owner.py | Shovatandukar/dog-meetup-backend | 3ee3bf3dcf8c2f2debd7f65daffdd04ed8b4f0e2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-10-31 02:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dogs', '0003_auto_202109... | 41.428571 | 144 | 0.580296 | 206 | 2,030 | 5.524272 | 0.364078 | 0.105448 | 0.126538 | 0.168717 | 0.673111 | 0.578207 | 0.523726 | 0.523726 | 0.453427 | 0.453427 | 0 | 0.037645 | 0.280296 | 2,030 | 48 | 145 | 42.291667 | 0.741273 | 0.022167 | 0 | 0.428571 | 1 | 0 | 0.095814 | 0.011599 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
78b1c9766b7e64ef672c2a82990fc34ee71a9182 | 1,896 | py | Python | src/modules/database.py | HorizonKinen/YoutubeToBilibili | 3203741ef29cd3ef56b4e86d88b41d02da9c405b | [
"WTFPL"
] | 22 | 2021-04-01T03:25:45.000Z | 2021-11-07T12:21:01.000Z | src/modules/database.py | HarukaKinen/YoutubeToBilibili | f980f24a4a641016d888658bfba509c4d80be155 | [
"WTFPL"
] | 3 | 2021-01-30T08:21:22.000Z | 2021-01-31T11:14:47.000Z | src/modules/database.py | HorizonKinen/YoutubeToBilibili | 3203741ef29cd3ef56b4e86d88b41d02da9c405b | [
"WTFPL"
] | 8 | 2021-04-02T10:54:56.000Z | 2021-11-18T19:48:44.000Z | import enum
from sqlalchemy import Column, String, Integer, create_engine, insert
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy.ext.declarative import declarative_base
from .config import config
config.read()
base = declarative_base()
def create_session(user, password, host, database_name):
... | 29.625 | 111 | 0.699367 | 237 | 1,896 | 5.400844 | 0.35865 | 0.046875 | 0.046875 | 0.026563 | 0.048438 | 0.048438 | 0.048438 | 0 | 0 | 0 | 0 | 0.020793 | 0.188291 | 1,896 | 64 | 111 | 29.625 | 0.810916 | 0.028481 | 0 | 0.061224 | 0 | 0 | 0.04943 | 0.036936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0.081633 | 0.102041 | 0.061224 | 0.632653 | 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 |
78b9348b92d0ea4267dcf99bdf1ee4caa57ef2c3 | 1,452 | py | Python | main.py | luozhaoyu/poc-aws | f0f83a52ab28db785f855adbceadd96ded1ad64e | [
"MIT"
] | null | null | null | main.py | luozhaoyu/poc-aws | f0f83a52ab28db785f855adbceadd96ded1ad64e | [
"MIT"
] | null | null | null | main.py | luozhaoyu/poc-aws | f0f83a52ab28db785f855adbceadd96ded1ad64e | [
"MIT"
] | null | null | null | import socket
import MySQLdb
import config
def do_mysql(host, user, passwd, dbname):
print host, user, passwd, dbname
content = ""
try:
# connect
db = MySQLdb.connect(host=host, user=user, passwd=passwd, db=dbname)
cursor = db.cursor()
# execute SQL select statement
... | 26.888889 | 80 | 0.637052 | 183 | 1,452 | 4.939891 | 0.508197 | 0.066372 | 0.030973 | 0.044248 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010319 | 0.26584 | 1,452 | 53 | 81 | 27.396226 | 0.837711 | 0.09022 | 0 | 0 | 0 | 0 | 0.073004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.085714 | 0.085714 | null | null | 0.114286 | 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 |
78baaa23dc63dd326173e40105e3cda865d11d80 | 525 | py | Python | tplogtools/timetools.py | Travelport-Czech/tplogtools | c649001929760d11aadaaf713793f01e48c31e80 | [
"MIT"
] | null | null | null | tplogtools/timetools.py | Travelport-Czech/tplogtools | c649001929760d11aadaaf713793f01e48c31e80 | [
"MIT"
] | null | null | null | tplogtools/timetools.py | Travelport-Czech/tplogtools | c649001929760d11aadaaf713793f01e48c31e80 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Extended tools for datetime"""
import datetime
def how_many_seconds_to_time(now, hour, minute):
"""Return amount seconds from now to given hour and minute"""
target_time = now.replace(hour=hour, minute=minute, second=0)
if now >= target_time:
target_time += datetime.timed... | 32.8125 | 68 | 0.71619 | 74 | 525 | 4.932432 | 0.540541 | 0.109589 | 0.071233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.158095 | 525 | 15 | 69 | 35 | 0.819005 | 0.27619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
78c8e742fe95e9b7db7d7168d536b80e816955f9 | 719 | py | Python | staff/views.py | kamiswin/body | 70d8df770bab372ab6b1cb0bd96b1cbe2a03816f | [
"BSD-3-Clause"
] | null | null | null | staff/views.py | kamiswin/body | 70d8df770bab372ab6b1cb0bd96b1cbe2a03816f | [
"BSD-3-Clause"
] | null | null | null | staff/views.py | kamiswin/body | 70d8df770bab372ab6b1cb0bd96b1cbe2a03816f | [
"BSD-3-Clause"
] | null | null | null | # coding:utf-8
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import models
from django.contrib.auth.models import User
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django import forms
from django.... | 31.26087 | 72 | 0.826147 | 101 | 719 | 5.80198 | 0.405941 | 0.204778 | 0.116041 | 0.107509 | 0.112628 | 0.112628 | 0 | 0 | 0 | 0 | 0 | 0.00624 | 0.108484 | 719 | 23 | 72 | 31.26087 | 0.907956 | 0.01669 | 0 | 0 | 0 | 0 | 0.038244 | 0.029745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.8125 | 0 | 0.9375 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
78c915234305db0bbc2e4f726adf2a0d2c6d50ef | 2,119 | py | Python | datacollector/gasMassFlow.py | IKKUengine/EtaNetPythonClients | 509e37fc4592f5f52f880b62f7034f46afca1384 | [
"MIT"
] | 2 | 2020-02-11T11:51:38.000Z | 2020-02-11T11:51:40.000Z | datacollector/gasMassFlow.py | IKKUengine/EtaNetPythonClients | 509e37fc4592f5f52f880b62f7034f46afca1384 | [
"MIT"
] | 1 | 2020-02-11T11:49:46.000Z | 2020-02-11T11:49:46.000Z | datacollector/gasMassFlow.py | IKKUengine/CHPefficiency | 509e37fc4592f5f52f880b62f7034f46afca1384 | [
"MIT"
] | 1 | 2021-07-06T07:41:50.000Z | 2021-07-06T07:41:50.000Z |
from connections import i2cAdafruitConnection
from observer import observe
import parameter
import datetime
class MassFlow(i2cAdafruitConnection.I2cAdafruitConnection, observe.Observer):
dataStr = "'NaN'"
headerStr = "'Gas Mass Flow [kg/h]'"
def __init__(self, observable):
# rs232Connection.Rs232... | 36.534483 | 85 | 0.600283 | 254 | 2,119 | 4.901575 | 0.452756 | 0.028112 | 0.040161 | 0.033735 | 0.041767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040844 | 0.306748 | 2,119 | 58 | 86 | 36.534483 | 0.806671 | 0.360547 | 0 | 0.266667 | 0 | 0 | 0.065819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.033333 | 0.133333 | 0.133333 | 0.566667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
78ccbde6924e77a681ffb84db3b66ae7153e8b8a | 2,626 | py | Python | course.py | edunham/classes | 6dd190d6231a7251f2f83175ea71f0700a899289 | [
"MIT"
] | null | null | null | course.py | edunham/classes | 6dd190d6231a7251f2f83175ea71f0700a899289 | [
"MIT"
] | null | null | null | course.py | edunham/classes | 6dd190d6231a7251f2f83175ea71f0700a899289 | [
"MIT"
] | null | null | null | class course(Object):
def __init__(self, subject, number, prereqs, credits):
self.subject = subject
self.number = number
self.priority = 1
self.prereqs = prereqs
self.credits = credits
self.terms = [fall, winter, spring]
def display(self):
print(self.subje... | 35.013333 | 127 | 0.546078 | 328 | 2,626 | 4.243902 | 0.27439 | 0.034483 | 0.017241 | 0.024425 | 0.093391 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00579 | 0.342346 | 2,626 | 74 | 128 | 35.486486 | 0.800232 | 0.057502 | 0 | 0.088235 | 0 | 0 | 0.038866 | 0.011741 | 0 | 0 | 0 | 0.013514 | 0 | 0 | null | null | 0.029412 | 0 | null | null | 0.073529 | 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 |
78d65d7fce864b07f49cabf258f8bf48115d34f3 | 1,411 | py | Python | dungeon/levels/stacking.py | tipishev/python_debugging_workshop | 92ccc7b2e71ed38bcabdf6f0ced206ab4956a1cf | [
"Unlicense"
] | 13 | 2019-11-01T09:24:01.000Z | 2021-11-03T18:37:06.000Z | dungeon/levels/stacking.py | tipishev/python_debugging_workshop | 92ccc7b2e71ed38bcabdf6f0ced206ab4956a1cf | [
"Unlicense"
] | null | null | null | dungeon/levels/stacking.py | tipishev/python_debugging_workshop | 92ccc7b2e71ed38bcabdf6f0ced206ab4956a1cf | [
"Unlicense"
] | 1 | 2021-05-12T04:28:01.000Z | 2021-05-12T04:28:01.000Z | from mechanics import check_password
_ = None
class LostInLegacyCode(Exception):
''' and another one bites the dust of this ancient code '''
MAYBE_HINT_1 = "When lazy and don't know go to Stack O......."
MAYBE_HINT_2 = "Hints' wording is a silly whim, my favourite editor is V.."
MAYBE_HINT_3 = "Could it be a r... | 28.795918 | 75 | 0.691708 | 223 | 1,411 | 4.183857 | 0.497758 | 0.057878 | 0.021436 | 0.057878 | 0.122187 | 0.122187 | 0.062165 | 0 | 0 | 0 | 0 | 0.02681 | 0.206945 | 1,411 | 48 | 76 | 29.395833 | 0.806971 | 0.274274 | 0 | 0.08 | 0 | 0 | 0.226096 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.16 | 0.04 | 0.12 | 0.48 | 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 | 1 | 0 | 0 | 0 | 2 |
1529a475c71647ffe54fb8b937d4b12c9992baed | 5,475 | py | Python | release/src-rt-6.x.4708/router/samba3/source4/auth/credentials/tests/bind.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2019-01-13T09:19:10.000Z | 2019-02-15T01:21:02.000Z | release/src-rt-6.x.4708/router/samba3/source4/auth/credentials/tests/bind.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | null | null | null | release/src-rt-6.x.4708/router/samba3/source4/auth/credentials/tests/bind.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2020-03-08T01:58:25.000Z | 2020-12-20T10:34:54.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This is unit with tests for LDAP access checks
import optparse
import sys
import base64
import re
import os
import copy
import time
sys.path.insert(0, "bin/python")
import samba
samba.ensure_external_module("testtools", "testtools")
samba.ensure_external_module("subunit... | 35.322581 | 87 | 0.675799 | 695 | 5,475 | 5.14964 | 0.276259 | 0.022353 | 0.027941 | 0.034926 | 0.27382 | 0.234144 | 0.234144 | 0.118189 | 0.059793 | 0.059793 | 0 | 0.016894 | 0.210776 | 5,475 | 154 | 88 | 35.551948 | 0.811386 | 0.085662 | 0 | 0.067227 | 0 | 0 | 0.139367 | 0.019423 | 0 | 0 | 0 | 0 | 0.016807 | 0 | null | null | 0.05042 | 0.159664 | null | null | 0.042017 | 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 |
152d912b2e5f9f15cc867a175d937b12195d7065 | 1,396 | py | Python | rl/backup/policy_model.py | qbetterk/user-simulator | 77caca30ff67b9112b1fe5e65e191c6b5e25532c | [
"Apache-2.0"
] | 20 | 2019-11-08T02:28:28.000Z | 2022-02-07T09:20:21.000Z | rl/backup/policy_model.py | qbetterk/user-simulator | 77caca30ff67b9112b1fe5e65e191c6b5e25532c | [
"Apache-2.0"
] | 21 | 2019-11-08T02:27:40.000Z | 2022-03-12T00:02:54.000Z | rl/backup/policy_model.py | qbetterk/user-simulator | 77caca30ff67b9112b1fe5e65e191c6b5e25532c | [
"Apache-2.0"
] | 8 | 2020-02-10T07:28:37.000Z | 2021-09-23T09:42:14.000Z | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from config import Config
def cuda_(var):
return var.cuda() if Config.use_gpu else var
class Net(nn.Module):
def __init__(self, state_dim, num_actions):
super(Net, self).__init__()
self.linear1 = nn... | 35.794872 | 94 | 0.598138 | 194 | 1,396 | 4.164948 | 0.314433 | 0.108911 | 0.079208 | 0.10396 | 0.110149 | 0.053218 | 0 | 0 | 0 | 0 | 0 | 0.032512 | 0.272923 | 1,396 | 38 | 95 | 36.736842 | 0.763547 | 0.477077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.055556 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
154b9d15193c940131ff334d9b2981b990d3c08e | 494 | py | Python | examples/quickhowto2/app/forms.py | ezeev/Flask-AppBuilder | d95f0ed934272629ee44ad3241646fa7ba09cdf8 | [
"BSD-3-Clause"
] | 71 | 2016-11-02T06:45:42.000Z | 2021-11-15T12:33:48.000Z | examples/quickhowto2/app/forms.py | ezeev/Flask-AppBuilder | d95f0ed934272629ee44ad3241646fa7ba09cdf8 | [
"BSD-3-Clause"
] | 3 | 2021-06-08T23:39:54.000Z | 2022-03-12T00:50:13.000Z | examples/quickhowto2/app/forms.py | ezeev/Flask-AppBuilder | d95f0ed934272629ee44ad3241646fa7ba09cdf8 | [
"BSD-3-Clause"
] | 23 | 2016-11-02T06:45:44.000Z | 2022-02-08T14:55:13.000Z | from wtforms import StringField
from flask_babel import lazy_gettext
from wtforms.validators import DataRequired
from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
from flask_appbuilder.forms import DynamicForm
class TestForm(DynamicForm):
TestFieldOne = StringField(lazy_gettext('Test Field One'), valid... | 44.909091 | 120 | 0.825911 | 52 | 494 | 7.730769 | 0.442308 | 0.067164 | 0.094527 | 0.129353 | 0.39801 | 0.39801 | 0.39801 | 0.39801 | 0.39801 | 0.39801 | 0 | 0.006696 | 0.093117 | 494 | 10 | 121 | 49.4 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0.05668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
155074a3ccef54a4d20221e50f3372b850c3fcd9 | 1,508 | py | Python | popdata_sources/barbieri2012/process.py | ryanraaum/african-mtdna | c2d210cd16708396f08bad0266ba815285b386d2 | [
"CC0-1.0"
] | null | null | null | popdata_sources/barbieri2012/process.py | ryanraaum/african-mtdna | c2d210cd16708396f08bad0266ba815285b386d2 | [
"CC0-1.0"
] | null | null | null | popdata_sources/barbieri2012/process.py | ryanraaum/african-mtdna | c2d210cd16708396f08bad0266ba815285b386d2 | [
"CC0-1.0"
] | null | null | null | from oldowan.mtconvert import seq2sites, sites2seq, str2sites
from oldowan.fasta import fasta
from string import translate
import pandas as pd
import sys
import re
sys.path.append('../../scripts')
from utils import *
## load metadata
metadata = pd.read_csv('metadata.csv', index_col=0)
region = range2region(metadata.i... | 24.721311 | 65 | 0.662467 | 225 | 1,508 | 4.417778 | 0.453333 | 0.039235 | 0.012072 | 0.022133 | 0.038229 | 0.038229 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.167109 | 1,508 | 61 | 66 | 24.721311 | 0.753185 | 0.05305 | 0 | 0.081633 | 0 | 0 | 0.103933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.081633 | 0.142857 | null | null | 0.040816 | 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 |
1563dbafae83ddb8b923f51711ee6a19bcbb9c71 | 3,477 | py | Python | rosidl_runtime_py/utilities.py | fujitatomoya/rosidl_runtime_py | f1bfe509c457e4693f8c1e85a5cecdd8483bd7d2 | [
"Apache-2.0"
] | 3 | 2019-09-19T17:58:06.000Z | 2022-03-07T15:47:20.000Z | rosidl_runtime_py/utilities.py | fujitatomoya/rosidl_runtime_py | f1bfe509c457e4693f8c1e85a5cecdd8483bd7d2 | [
"Apache-2.0"
] | 12 | 2019-09-19T17:57:56.000Z | 2022-03-15T21:48:33.000Z | rosidl_runtime_py/utilities.py | fujitatomoya/rosidl_runtime_py | f1bfe509c457e4693f8c1e85a5cecdd8483bd7d2 | [
"Apache-2.0"
] | 10 | 2019-10-21T20:47:42.000Z | 2022-03-29T15:01:34.000Z | # Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 36.21875 | 92 | 0.741156 | 459 | 3,477 | 5.444444 | 0.252723 | 0.10084 | 0.12485 | 0.07563 | 0.55062 | 0.520208 | 0.427371 | 0.262105 | 0.244098 | 0.207283 | 0 | 0.004127 | 0.163647 | 3,477 | 95 | 93 | 36.6 | 0.855227 | 0.319241 | 0 | 0.066667 | 0 | 0 | 0.08308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.155556 | 0 | 0.688889 | 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 |
156ebf640409ae77f16602cba4dfad2b843f1f73 | 553 | py | Python | biserici_inlemnite/app/migrations/0020_auto_20210924_1110.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0020_auto_20210924_1110.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0020_auto_20210924_1110.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-09-24 08:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0019_auto_20210924_1106'),
]
operations = [
migrations.RemoveField(
model_name='descrierepage',
name='turn_d... | 24.043478 | 90 | 0.60217 | 57 | 553 | 5.684211 | 0.754386 | 0.055556 | 0.135802 | 0.160494 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081013 | 0.285714 | 553 | 22 | 91 | 25.136364 | 0.739241 | 0.083183 | 0 | 0.25 | 1 | 0 | 0.180198 | 0.045545 | 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 |
159404c2056221e60f609b4d146aa57fd40b1573 | 1,716 | py | Python | test/magicmind/op_test/test_size.py | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | 20 | 2022-03-01T11:40:51.000Z | 2022-03-30T08:17:47.000Z | test/magicmind/op_test/test_size.py | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | test/magicmind/op_test/test_size.py | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | from __future__ import print_function
from itertools import product
import torch
import torch.nn as nn
import torch_mlu
from torch.nn import Parameter
import torch.nn.functional as F
import numpy as np
import sys
import os
import copy
import random
import time
import unittest
cur_dir = os.path.dirname(os.path.abspath(... | 31.777778 | 92 | 0.631702 | 241 | 1,716 | 4.236515 | 0.414938 | 0.047013 | 0.032321 | 0.009794 | 0.078355 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014241 | 0.263403 | 1,716 | 54 | 93 | 31.777778 | 0.793513 | 0.019231 | 0 | 0 | 0 | 0 | 0.012485 | 0 | 0 | 0 | 0 | 0.018519 | 0.021739 | 1 | 0.065217 | false | 0 | 0.347826 | 0 | 0.478261 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
159e4d49c26008b7c32a461ba8e387fa0453f373 | 409 | py | Python | apps/jobs/migrations/0014_rename_job_id_field_in_submission_model_to_job_name.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 1,470 | 2016-10-21T01:21:45.000Z | 2022-03-30T14:08:29.000Z | apps/jobs/migrations/0014_rename_job_id_field_in_submission_model_to_job_name.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 2,594 | 2016-11-02T03:36:01.000Z | 2022-03-31T15:30:04.000Z | apps/jobs/migrations/0014_rename_job_id_field_in_submission_model_to_job_name.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 865 | 2016-11-09T17:46:32.000Z | 2022-03-30T13:06:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2020-01-20 05:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("jobs", "0013_add_job_id_field_in_submission_model")]
operations = [
migrations.RenameField(
... | 24.058824 | 75 | 0.687042 | 53 | 409 | 4.981132 | 0.716981 | 0.037879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067073 | 0.198044 | 409 | 16 | 76 | 25.5625 | 0.737805 | 0.168704 | 0 | 0 | 1 | 0 | 0.204748 | 0.121662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
15a007d1d3d27f2cff85f82f76e0c955ba30f2bf | 1,305 | py | Python | pyy.py | eieio/pyy | dface9d5c8914bb74ef1ee4df112269b65e62bec | [
"Apache-2.0"
] | null | null | null | pyy.py | eieio/pyy | dface9d5c8914bb74ef1ee4df112269b65e62bec | [
"Apache-2.0"
] | 1 | 2020-09-29T22:20:49.000Z | 2020-09-29T22:20:49.000Z | pyy.py | eieio/pyy | dface9d5c8914bb74ef1ee4df112269b65e62bec | [
"Apache-2.0"
] | null | null | null | ''' IRCBot.py
Copyright 2008 Corey Tabaka
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... | 30.348837 | 76 | 0.68659 | 184 | 1,305 | 4.820652 | 0.63587 | 0.067644 | 0.029312 | 0.036077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015936 | 0.230651 | 1,305 | 42 | 77 | 31.071429 | 0.86753 | 0.571648 | 0 | 0 | 0 | 0 | 0.102296 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0 | false | 0.111111 | 0.277778 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
15a0ab7dba9e5d7839b7b9a443a71a2444bf7c79 | 637 | py | Python | microcosm_flask/metrics.py | KensoDev/microcosm-flask | 3618333f4a0f45e673a33986877157208c9eac5f | [
"Apache-2.0"
] | null | null | null | microcosm_flask/metrics.py | KensoDev/microcosm-flask | 3618333f4a0f45e673a33986877157208c9eac5f | [
"Apache-2.0"
] | null | null | null | microcosm_flask/metrics.py | KensoDev/microcosm-flask | 3618333f4a0f45e673a33986877157208c9eac5f | [
"Apache-2.0"
] | null | null | null | """
Metrics extensions for routes.
"""
try:
from microcosm_metrics.classifier import Classifier
except ImportError:
raise Exception("Route metrics require 'microcosm-metrics'")
from microcosm_flask.audit import parse_response
from microcosm_flask.errors import extract_status_code
class StatusCodeClassifier... | 23.592593 | 64 | 0.729984 | 75 | 637 | 5.973333 | 0.453333 | 0.15625 | 0.080357 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191523 | 637 | 26 | 65 | 24.5 | 0.869903 | 0.120879 | 0 | 0.153846 | 0 | 0 | 0.076636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
15a5ccceb89002ab5bd79c1465925b612b0995c5 | 282 | py | Python | payment/tests.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | payment/tests.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | payment/tests.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | from django.test import TestCase
class PaymentPageViewTest(TestCase):
def setUp(self):
self.url = '/payment/stripe/'
def test_url_ok(self):
response = self.client.post(self.url)
self.assertEqual(response.status_code , 200)
| 17.625 | 53 | 0.624113 | 32 | 282 | 5.40625 | 0.65625 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.276596 | 282 | 15 | 54 | 18.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
15a88f6fd51f8962fffbc732478191a199896b17 | 208 | py | Python | src/traditional/segment/config.py | jakexie/LearnDeepLearning | fd434081e052bebf1df51b5a0bf2745ab8a6c9bc | [
"Apache-2.0"
] | null | null | null | src/traditional/segment/config.py | jakexie/LearnDeepLearning | fd434081e052bebf1df51b5a0bf2745ab8a6c9bc | [
"Apache-2.0"
] | null | null | null | src/traditional/segment/config.py | jakexie/LearnDeepLearning | fd434081e052bebf1df51b5a0bf2745ab8a6c9bc | [
"Apache-2.0"
] | 1 | 2021-03-31T02:11:24.000Z | 2021-03-31T02:11:24.000Z | class Config:
# image size
image_min_dims = 512
image_max_dims = 512
steps_per_epoch = 50
validation_steps = 20
batch_size = 16
epochs = 10
shuffle = True
num_classes = 21
| 18.909091 | 25 | 0.639423 | 29 | 208 | 4.275862 | 0.793103 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111888 | 0.3125 | 208 | 10 | 26 | 20.8 | 0.755245 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
15acc18a667042c699fb4b82581fb85d9cd9fe63 | 267 | py | Python | common/framework_excuter/keras_excute.py | wavelet2008/rknn-v5 | 16288a88844e887634f74df8f43fff9b82f4ba62 | [
"Apache-2.0"
] | 11 | 2022-02-24T10:44:54.000Z | 2022-03-31T03:40:21.000Z | common/framework_excuter/keras_excute.py | wavelet2008/rknn-v5 | 16288a88844e887634f74df8f43fff9b82f4ba62 | [
"Apache-2.0"
] | 1 | 2022-03-01T07:21:04.000Z | 2022-03-31T11:03:47.000Z | common/framework_excuter/keras_excute.py | wavelet2008/rknn-v5 | 16288a88844e887634f74df8f43fff9b82f4ba62 | [
"Apache-2.0"
] | 5 | 2022-03-18T09:05:50.000Z | 2022-03-30T07:35:55.000Z | from tensorflow.keras.models import load_model
class Keras_model_container:
def __init__(self, model_path) -> None:
self.net = load_model(model_path)
def run(self, input_datas):
outputs = self.net.predict(input_datas)
return outputs | 26.7 | 47 | 0.707865 | 36 | 267 | 4.916667 | 0.583333 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209738 | 267 | 10 | 48 | 26.7 | 0.838863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ec612ea8c9b27919bfa7c84475a7d439392a80f1 | 430 | py | Python | feet/admin.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | null | null | null | feet/admin.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | 9 | 2020-01-10T14:10:02.000Z | 2022-03-12T00:08:19.000Z | feet/admin.py | yun-mh/uniwalk | f5307f6970b24736d13b56b4792c580398c35b3a | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from . import models
@admin.register(models.Footsize)
class FootsizeAdmin(admin.ModelAdmin):
""" アドミンに足サイズテーブルを定義する """
pass
@admin.register(models.FootImage)
class FootImageAdmin(admin.ModelAdmin):
""" アドミンに足イメージテーブルを定義する """
pass
@admin.register(models.Proces... | 15.925926 | 48 | 0.739535 | 38 | 430 | 8.368421 | 0.5 | 0.122642 | 0.179245 | 0.144654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 430 | 26 | 49 | 16.538462 | 0.871233 | 0.148837 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.272727 | 0.181818 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ec6c7c4836c5301deffa88bbb3af5bfa60403f02 | 282 | py | Python | timedata/ui/switch_button.py | timedata-org/controly | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | [
"MIT"
] | null | null | null | timedata/ui/switch_button.py | timedata-org/controly | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | [
"MIT"
] | 1 | 2018-08-02T12:07:17.000Z | 2018-08-02T12:07:17.000Z | timedata/ui/switch_button.py | timedata-org/controly | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | [
"MIT"
] | null | null | null | from kivy.uix import togglebutton
class SwitchButton(togglebutton.ToggleButton):
def __init__(self, off, on='', **kwds):
super().__init__(text=off, **kwds)
self.texts = off, on
def on_state(self, _, value):
self.text = self.texts[value == 'down']
| 25.636364 | 47 | 0.634752 | 35 | 282 | 4.828571 | 0.542857 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216312 | 282 | 10 | 48 | 28.2 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
ec7c4c8dba497c0db4304432000ba5cc4019dfd9 | 466 | py | Python | BOJ/11000~11999/11200~11299/11285.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/11000~11999/11200~11299/11285.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/11000~11999/11200~11299/11285.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | 초성 = ['ㄱ', 'ㄲ', 'ㄴ', 'ㄷ', 'ㄸ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅃ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ', 'ㅉ', 'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ']
중성 = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅒ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅘ', 'ㅙ', 'ㅚ', 'ㅛ', 'ㅜ', 'ㅝ', 'ㅞ', 'ㅟ', 'ㅠ', 'ㅡ', 'ㅢ', 'ㅣ']
종성 = ['', 'ㄱ', 'ㄲ', 'ㄳ', 'ㄴ', 'ㄵ', 'ㄶ', 'ㄷ', 'ㄹ', 'ㄺ', 'ㄻ', 'ㄼ', 'ㄽ', 'ㄾ', 'ㄿ', 'ㅀ', 'ㅁ', 'ㅂ', 'ㅄ', 'ㅅ', 'ㅆ'... | 46.6 | 144 | 0.298283 | 96 | 466 | 1.447917 | 0.666667 | 0.028777 | 0.043165 | 0.057554 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026385 | 0.186695 | 466 | 10 | 145 | 46.6 | 0.340369 | 0 | 0 | 0 | 0 | 0 | 0.143469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec8ffe9bef411027daa99fd070d9ff79cf0b1a00 | 310 | py | Python | spider_learn/spider_learn01/urllib_learn/urllib19_urlerror.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | spider_learn/spider_learn01/urllib_learn/urllib19_urlerror.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | spider_learn/spider_learn01/urllib_learn/urllib19_urlerror.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | import urllib.request
request = urllib.request.Request("http://aa.bb.cc.com/")
try:
response = urllib.request.urlopen(request,timeout=5)
response.close()
except urllib.request.URLError as err:
print(err.reason())
except ConnectionResetError as connErr:
print(connErr)
print("----line------") | 23.846154 | 56 | 0.709677 | 39 | 310 | 5.641026 | 0.589744 | 0.236364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.125806 | 310 | 13 | 57 | 23.846154 | 0.808118 | 0 | 0 | 0 | 0 | 0 | 0.109325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.3 | 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 |
ecb252d17aef08a5b8cd20fdb4e94a59ef4d37a0 | 11,253 | py | Python | temboo/core/choreography.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/choreography.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/choreography.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | ###############################################################################
#
# temboo.core.choreography.Choreography
# temboo.core.choreography.InputSet
# temboo.coreo.choreography.ResultSet
# temboo.core.choreography.ChoreographyExecution
#
# Interface classes for calling and manipulating choreographies.
#
# Pyth... | 33.691617 | 122 | 0.630143 | 1,348 | 11,253 | 5.080861 | 0.20549 | 0.024821 | 0.026573 | 0.015769 | 0.217988 | 0.174332 | 0.152285 | 0.139582 | 0.128778 | 0.086144 | 0 | 0.00232 | 0.272105 | 11,253 | 333 | 123 | 33.792793 | 0.833842 | 0.337599 | 0 | 0.227273 | 0 | 0 | 0.054876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.038961 | 0.103896 | 0.467532 | 0.012987 | 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 |
ecb4a4cc91c249110abcd8cdf99331da552cb920 | 151 | py | Python | ex032.py | ranierelm/Python_exercise | db143d2dc019bbd479397dc64efbe4fe0aa1abab | [
"MIT"
] | null | null | null | ex032.py | ranierelm/Python_exercise | db143d2dc019bbd479397dc64efbe4fe0aa1abab | [
"MIT"
] | null | null | null | ex032.py | ranierelm/Python_exercise | db143d2dc019bbd479397dc64efbe4fe0aa1abab | [
"MIT"
] | null | null | null | ano = int(input('Ano que você nasceu: '))
if ano%4==0 and ano%100!=0 or ano%400==0:
print('Ano Bissexto')
else:
print('Não foi Bissexto')
| 25.166667 | 42 | 0.609272 | 27 | 151 | 3.407407 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 0.211921 | 151 | 5 | 43 | 30.2 | 0.689076 | 0 | 0 | 0 | 0 | 0 | 0.335616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
ecc1ed8079e3bba5c3fca50dc3bf7933932611ec | 3,261 | py | Python | JAPL/meta/statement.py | japl-lang/japl-python | fb9a769d07f1528b846a0ccefd3e782ab3d9b473 | [
"Apache-2.0"
] | 3 | 2020-10-21T19:18:58.000Z | 2020-10-22T06:13:29.000Z | JAPL/meta/statement.py | japl-lang/japl-python | fb9a769d07f1528b846a0ccefd3e782ab3d9b473 | [
"Apache-2.0"
] | null | null | null | JAPL/meta/statement.py | japl-lang/japl-python | fb9a769d07f1528b846a0ccefd3e782ab3d9b473 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from dataclasses import dataclass
from .expression import Expression, Variable
from .tokenobject import Token
from typing import List, Any
class Statement(object):
"""
A Base Class representing JAPL statements
"""
def accept(self, visitor):
raise NotImpleme... | 18.741379 | 54 | 0.644894 | 326 | 3,261 | 6.371166 | 0.184049 | 0.111218 | 0.068849 | 0.105922 | 0.404429 | 0.404429 | 0.342802 | 0.043332 | 0 | 0 | 0 | 0 | 0.271082 | 3,261 | 173 | 55 | 18.849711 | 0.87379 | 0.08157 | 0 | 0.469388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.05102 | 0 | 0.581633 | 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 |
ecef17eae566a1c7f1fbdc99b800abb5d8a86222 | 18,694 | py | Python | google/cloud/securitycenter_v1beta1/proto/asset_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/proto/asset_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/proto/asset_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/securitycenter_v1beta1/proto/asset.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refle... | 39.690021 | 1,587 | 0.659944 | 1,997 | 18,694 | 5.870806 | 0.12669 | 0.028659 | 0.075401 | 0.084613 | 0.65899 | 0.610201 | 0.549642 | 0.501962 | 0.438502 | 0.405664 | 0 | 0.031663 | 0.254948 | 18,694 | 470 | 1,588 | 39.774468 | 0.810095 | 0.028619 | 0 | 0.611236 | 1 | 0.004494 | 0.279235 | 0.122341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022472 | 0 | 0.022472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ecf33c984ec4a562c7c83ec6b980f882d91e5038 | 80 | py | Python | Complier_Design/countlines/countlines.py | mayank-gubba/Compiler-Design | 2a8cc0ea04df90f4739db5a0f389daccc8788c63 | [
"MIT"
] | null | null | null | Complier_Design/countlines/countlines.py | mayank-gubba/Compiler-Design | 2a8cc0ea04df90f4739db5a0f389daccc8788c63 | [
"MIT"
] | null | null | null | Complier_Design/countlines/countlines.py | mayank-gubba/Compiler-Design | 2a8cc0ea04df90f4739db5a0f389daccc8788c63 | [
"MIT"
] | null | null | null | f=open('countlines.txt','rt')
n=0
for i in f:
n+=1
print(n)
f.close()
| 11.428571 | 30 | 0.5375 | 17 | 80 | 2.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.2375 | 80 | 6 | 31 | 13.333333 | 0.672131 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
01b1fb7fed838fdf7a7026298f0d7c45a668d3cc | 21,118 | py | Python | twitter-analytics/code/3-model_evaluation/precision/results.py | worldbank/SDG-big-data | 7349cffde3c32bb5a7abc99d910a40e1ba611916 | [
"MIT"
] | 2 | 2022-02-03T16:50:00.000Z | 2022-02-03T16:50:20.000Z | twitter-analytics/code/3-model_evaluation/precision/results.py | worldbank/SDG-big-data | 7349cffde3c32bb5a7abc99d910a40e1ba611916 | [
"MIT"
] | null | null | null | twitter-analytics/code/3-model_evaluation/precision/results.py | worldbank/SDG-big-data | 7349cffde3c32bb5a7abc99d910a40e1ba611916 | [
"MIT"
] | null | null | null | our_method_top50_dict = {
2: {
'is_hired_1mo': 0.98,
'is_unemployed': 0.98,
'lost_job_1mo': 0.74,
'job_search': 0.12,
'job_offer': 1.0},
0: {
'is_hired_1mo': 0.92,
'is_unemployed': 0.06,
'lost_job_1mo': 0.3,
'job_search': 1.0,
'job_... | 29.371349 | 45 | 0.501468 | 2,195 | 21,118 | 4.551253 | 0.169932 | 0.042442 | 0.08008 | 0.063864 | 0.485886 | 0.47007 | 0.45996 | 0.445846 | 0.37958 | 0.344444 | 0 | 0.341807 | 0.348044 | 21,118 | 718 | 46 | 29.412256 | 0.383789 | 0 | 0 | 0.583215 | 0 | 0 | 0.268965 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01b72b0593884ff384b5d1980a8c8e4c10c0d986 | 3,271 | py | Python | tests/starkex/test_helpers.py | clifton/dydx-v3-python | 974ffc8f3512aa48171ef8dc2e623d6df3536812 | [
"Apache-2.0"
] | 109 | 2021-01-07T02:19:24.000Z | 2022-03-27T21:56:36.000Z | tests/starkex/test_helpers.py | clifton/dydx-v3-python | 974ffc8f3512aa48171ef8dc2e623d6df3536812 | [
"Apache-2.0"
] | 73 | 2021-01-14T23:29:58.000Z | 2022-03-30T09:27:54.000Z | tests/starkex/test_helpers.py | clifton/dydx-v3-python | 974ffc8f3512aa48171ef8dc2e623d6df3536812 | [
"Apache-2.0"
] | 60 | 2021-01-13T04:34:12.000Z | 2022-03-26T10:14:35.000Z | from dydx3.starkex.helpers import fact_to_condition
from dydx3.starkex.helpers import generate_private_key_hex_unsafe
from dydx3.starkex.helpers import get_transfer_erc20_fact
from dydx3.starkex.helpers import nonce_from_client_id
from dydx3.starkex.helpers import private_key_from_bytes
from dydx3.starkex.helpers impor... | 38.034884 | 79 | 0.687252 | 285 | 3,271 | 7.512281 | 0.280702 | 0.070061 | 0.052312 | 0.075199 | 0.364316 | 0.225596 | 0.163008 | 0.113965 | 0.113965 | 0.070061 | 0 | 0.252149 | 0.253134 | 3,271 | 85 | 80 | 38.482353 | 0.624233 | 0 | 0 | 0.131579 | 1 | 0 | 0.32406 | 0.254968 | 0 | 0 | 0.221339 | 0 | 0.184211 | 1 | 0.092105 | false | 0 | 0.092105 | 0 | 0.197368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01b9fb0dcb34ad54ce72e603cada3bbd96533d47 | 886 | py | Python | docs/src/tutorial/doctest_setup.py | franzinc/agraph-python | 9186f19094af0be1daec273270888eadf9a68300 | [
"MIT"
] | 25 | 2015-11-05T03:43:30.000Z | 2022-03-09T07:19:09.000Z | docs/src/tutorial/doctest_setup.py | franzinc/agraph-python | 9186f19094af0be1daec273270888eadf9a68300 | [
"MIT"
] | 14 | 2017-07-18T20:41:26.000Z | 2021-10-13T04:57:36.000Z | docs/src/tutorial/doctest_setup.py | franzinc/agraph-python | 9186f19094af0be1daec273270888eadf9a68300 | [
"MIT"
] | 8 | 2016-12-09T02:38:45.000Z | 2020-10-12T07:59:17.000Z | # This document contains definitions of functions and variables used
# in multiple tutorial examples. Each code fragment is actually passed to Sphinx
# twice:
# - This whole file is imported in a hidden, global setup block
# - The example in which the function is defined included its code from this
# file.
#
... | 40.272727 | 81 | 0.76298 | 134 | 886 | 5.029851 | 0.641791 | 0.029674 | 0.047478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177201 | 886 | 21 | 82 | 42.190476 | 0.924554 | 0.8386 | 0 | 0 | 0 | 0 | 0.12 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
01cf0cf013ad1e38898303cfa29c46f532ab41aa | 322 | py | Python | exercinpt2.py | fabianocardosodev/exercicios-Python-cursoIntens | aae9f334007afe5e5210c19f092bb35659db1332 | [
"MIT"
] | null | null | null | exercinpt2.py | fabianocardosodev/exercicios-Python-cursoIntens | aae9f334007afe5e5210c19f092bb35659db1332 | [
"MIT"
] | null | null | null | exercinpt2.py | fabianocardosodev/exercicios-Python-cursoIntens | aae9f334007afe5e5210c19f092bb35659db1332 | [
"MIT"
] | null | null | null | pessoas_jantar = input("Boa noite,quantas pessoas estão para jantar?:")
pessoas_jantar = int(pessoas_jantar)
if pessoas_jantar >= 8:
print("Desculpe como vocês estão em " + str(pessoas_jantar)
+ " pessoas,precisarão aguardar termos mesas disponiveis.")
else:
print("Ok! Por favor me acompanhe até sua mesa!"... | 35.777778 | 71 | 0.736025 | 44 | 322 | 5.272727 | 0.704545 | 0.280172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.161491 | 322 | 8 | 72 | 40.25 | 0.855556 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
01d2cd9268ce30dc27e2254547374724c8e953ed | 1,487 | py | Python | tests/test_either.py | hellerve/hawkweed | 0cdb378f7dac5ab76ad53d6c1917f0ac5687793c | [
"MIT"
] | 20 | 2016-06-13T19:24:20.000Z | 2022-01-26T14:08:11.000Z | tests/test_either.py | hellerve/hawkweed | 0cdb378f7dac5ab76ad53d6c1917f0ac5687793c | [
"MIT"
] | null | null | null | tests/test_either.py | hellerve/hawkweed | 0cdb378f7dac5ab76ad53d6c1917f0ac5687793c | [
"MIT"
] | null | null | null | from itertools import chain
from nose.tools import *
from hawkweed.monads.either import Either, Left, Right, is_right,\
is_left, is_either, either, lefts, rights, partition_eithers
from hawkweed.functional.primitives import identity
def test_right():
assert_equal(Right(10).bind(identity), 10)
def test_not... | 29.156863 | 68 | 0.66039 | 235 | 1,487 | 3.982979 | 0.238298 | 0.067308 | 0.048077 | 0.029915 | 0.126068 | 0.040598 | 0.040598 | 0.040598 | 0 | 0 | 0 | 0.017989 | 0.177539 | 1,487 | 50 | 69 | 29.74 | 0.747343 | 0 | 0 | 0.04878 | 0 | 0 | 0.03228 | 0 | 0 | 0 | 0 | 0 | 0.414634 | 1 | 0.219512 | false | 0 | 0.097561 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01d38ff57509a295667c3e8d6da376bdaf58020c | 497 | py | Python | plugins/custom_resolver/run_test/custom_resolver.py | jingtaoh/USD-Cookbook | 544a149407146f9a3e13c53348818579c679168b | [
"MIT"
] | 332 | 2019-06-11T01:26:05.000Z | 2022-03-29T10:09:46.000Z | plugins/custom_resolver/run_test/custom_resolver.py | jingtaoh/USD-Cookbook | 544a149407146f9a3e13c53348818579c679168b | [
"MIT"
] | 5 | 2019-07-30T15:10:51.000Z | 2021-03-14T18:55:18.000Z | plugins/custom_resolver/run_test/custom_resolver.py | jingtaoh/USD-Cookbook | 544a149407146f9a3e13c53348818579c679168b | [
"MIT"
] | 63 | 2019-06-24T16:31:19.000Z | 2022-02-13T01:09:56.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module tests if the custom resolver works."""
# IMPORT FUTURE LIBRARIES
from __future__ import print_function
# IMPORT THIRD-PARTY LIBRARIES
from pxr import Ar
def main():
"""Run the main execution of the current script."""
print("This should still prin... | 23.666667 | 99 | 0.696177 | 68 | 497 | 4.867647 | 0.632353 | 0.07855 | 0.090634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00241 | 0.16499 | 497 | 20 | 100 | 24.85 | 0.795181 | 0.380282 | 0 | 0 | 0 | 0 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
01d7082fd7f836454b618da99522a7ac4d194f3d | 239 | py | Python | Semana03Atividade1/Questao04_S3.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana03Atividade1/Questao04_S3.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana03Atividade1/Questao04_S3.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | def total(n):
return n <= 9 and n >= 0
def main():
n = int(input("Digite um numero entre 0 e 9, caso contrario será falso: "))
resultado = total(n)
print(f' o numero é {resultado}')
if __name__ == '__main__':
main() | 19.916667 | 79 | 0.594142 | 38 | 239 | 3.526316 | 0.684211 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022599 | 0.259414 | 239 | 12 | 80 | 19.916667 | 0.734463 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.375 | 0.125 | 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 |
01e9f4be4d320ba23c0c303bca3640fbb9868169 | 912 | py | Python | models.py | Fernan1122/BusinessWork_Back | 41dd2351fce84a8f27a3309919fa9a3782a36581 | [
"CC0-1.0"
] | null | null | null | models.py | Fernan1122/BusinessWork_Back | 41dd2351fce84a8f27a3309919fa9a3782a36581 | [
"CC0-1.0"
] | null | null | null | models.py | Fernan1122/BusinessWork_Back | 41dd2351fce84a8f27a3309919fa9a3782a36581 | [
"CC0-1.0"
] | null | null | null | from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DATE
from sqlalchemy.orm import relationship
from database import Base
class User(Base):
__tablename__ = "users"
username = Column(String, primary_key=True, index=True)
email = Column(String, unique=True, index=True)
name = Column(... | 30.4 | 73 | 0.717105 | 109 | 912 | 5.853211 | 0.33945 | 0.169279 | 0.133229 | 0.164577 | 0.15047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 912 | 30 | 74 | 30.4 | 0.843915 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.142857 | 0 | 1 | 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 |
bf0e66a445373f2adf94f414be7ffb5262153960 | 347 | py | Python | src/dp/rest_api/v1/handlers/user/__init__.py | Michalesko/DP_API | 73e27bf0bb06330d7903977d8cd4d1fdb57afaec | [
"MIT"
] | null | null | null | src/dp/rest_api/v1/handlers/user/__init__.py | Michalesko/DP_API | 73e27bf0bb06330d7903977d8cd4d1fdb57afaec | [
"MIT"
] | null | null | null | src/dp/rest_api/v1/handlers/user/__init__.py | Michalesko/DP_API | 73e27bf0bb06330d7903977d8cd4d1fdb57afaec | [
"MIT"
] | null | null | null | # coding: utf-8
__author__ = 'Miso'
from users import UsersHandlerOne
from users import UsersHandler
from userGoal import UserHandlerGoal
from userEvalInit import UserHandlerInitialEval
from userEvalPage import UserHandlerRuntimeEval
from usersPages import UserPages
from userPageRating import UserPageRating
from userT... | 28.916667 | 47 | 0.870317 | 37 | 347 | 8.054054 | 0.567568 | 0.060403 | 0.100671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.112392 | 347 | 11 | 48 | 31.545455 | 0.964286 | 0.037464 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bf177089627f5ddc4e51c39b1edceeffd57fa2df | 448 | py | Python | user/models.py | yangfeiffei/Dsystem | 8c4b677151d8a9777c265b0a8744c068d122e780 | [
"MIT"
] | null | null | null | user/models.py | yangfeiffei/Dsystem | 8c4b677151d8a9777c265b0a8744c068d122e780 | [
"MIT"
] | null | null | null | user/models.py | yangfeiffei/Dsystem | 8c4b677151d8a9777c265b0a8744c068d122e780 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import Permission, User
# Create your models here.
class UserProfile(models.Model):
'''
用户相关
'''
user = models.OneToOneField(User)
name = models.CharField(u'姓名', max_length=16, )
signature = models.CharField(u'个性签名', max_length=255,... | 14.451613 | 57 | 0.620536 | 53 | 448 | 5.132075 | 0.660377 | 0.073529 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.274554 | 448 | 30 | 58 | 14.933333 | 0.821538 | 0.066964 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
bf263358cca6a5023f37c9389d03052cb032d44a | 5,338 | py | Python | tests/test.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | 1 | 2019-01-11T15:36:24.000Z | 2019-01-11T15:36:24.000Z | tests/test.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | null | null | null | tests/test.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'src'))
import tensorflow as tf
from tf_imgaug.sequential import Sequential
from tf_imgaug.augments import *
import unittest
class TestAugments(unittest.TestCase):
def _abstract_shape_test(self, aug=None):
... | 34.662338 | 110 | 0.540277 | 639 | 5,338 | 4.286385 | 0.172144 | 0.123403 | 0.161373 | 0.191676 | 0.460387 | 0.185104 | 0.147134 | 0.071924 | 0.071924 | 0.071924 | 0 | 0.06481 | 0.320719 | 5,338 | 153 | 111 | 34.888889 | 0.690568 | 0 | 0 | 0.086207 | 0 | 0 | 0.003747 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.224138 | false | 0 | 0.051724 | 0 | 0.293103 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bf2e53e4fc686c4fa157c9f1d49a64a1d32b4721 | 1,088 | py | Python | eventz/immutable_sequence.py | danballance/eventz | b30ec56ffb6e3c6d6ad4b023f30f8f2da56ca175 | [
"MIT"
] | 1 | 2021-05-20T09:52:25.000Z | 2021-05-20T09:52:25.000Z | eventz/immutable_sequence.py | Eventz-Framework/eventz | b30ec56ffb6e3c6d6ad4b023f30f8f2da56ca175 | [
"MIT"
] | null | null | null | eventz/immutable_sequence.py | Eventz-Framework/eventz | b30ec56ffb6e3c6d6ad4b023f30f8f2da56ca175 | [
"MIT"
] | null | null | null | from typing import TypeVar, Generic, Iterable, Tuple
T = TypeVar('T')
class ImmutableSequence(Generic[T]):
def __init__(self, items: Iterable[T]):
self._items: Tuple[T] = tuple(items)
def __eq__(self, other) -> bool:
if not isinstance(other, ImmutableSequence):
return False
... | 29.405405 | 71 | 0.606618 | 134 | 1,088 | 4.41791 | 0.373134 | 0.076014 | 0.043919 | 0.050676 | 0.277027 | 0.277027 | 0.189189 | 0.189189 | 0.189189 | 0 | 0 | 0 | 0.273897 | 1,088 | 36 | 72 | 30.222222 | 0.749367 | 0.014706 | 0 | 0.074074 | 0 | 0 | 0.058879 | 0.026168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.037037 | 0.074074 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bf2ef3f67dfe9b3a6db2f8fef2c3a6c13c87130f | 1,326 | py | Python | module/logger.py | Xetera/IreneBot | e768bb3a0d2517ecb00d50da89d66ac0dd1498d0 | [
"MIT"
] | 1 | 2021-10-02T16:05:11.000Z | 2021-10-02T16:05:11.000Z | module/logger.py | Xetera/IreneBot | e768bb3a0d2517ecb00d50da89d66ac0dd1498d0 | [
"MIT"
] | null | null | null | module/logger.py | Xetera/IreneBot | e768bb3a0d2517ecb00d50da89d66ac0dd1498d0 | [
"MIT"
] | null | null | null | import logging
import datetime
from concurrent.futures import ThreadPoolExecutor
thread_pool = ThreadPoolExecutor()
def debug():
logger = logging.getLogger('discord')
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler(filename=f'Logs/{datetime.date.today()}-debug.log', encoding='utf-8')
han... | 33.15 | 103 | 0.692308 | 169 | 1,326 | 5.39645 | 0.325444 | 0.02193 | 0.057018 | 0.074561 | 0.710526 | 0.710526 | 0.710526 | 0.592105 | 0.510965 | 0.390351 | 0 | 0.003497 | 0.137255 | 1,326 | 39 | 104 | 34 | 0.793706 | 0.032428 | 0 | 0.37037 | 0 | 0 | 0.284153 | 0.212334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.111111 | 0 | 0.296296 | 0.111111 | 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 |
bf37500b020baac90802c8f59ea5b4212581b6e2 | 774 | py | Python | Client/App/UI/Helper/ClassList.py | Dragon-KK/ComputerProject2021 | 669431f3f2d41bda822931e6fffe661c99736dfe | [
"MIT"
] | null | null | null | Client/App/UI/Helper/ClassList.py | Dragon-KK/ComputerProject2021 | 669431f3f2d41bda822931e6fffe661c99736dfe | [
"MIT"
] | null | null | null | Client/App/UI/Helper/ClassList.py | Dragon-KK/ComputerProject2021 | 669431f3f2d41bda822931e6fffe661c99736dfe | [
"MIT"
] | null | null | null | class ClassList(list):
def __init__(self):
self.OnClassListChange = lambda *args,**kwargs:0
def AddClass(self,Cls, notify = True):
if Cls not in self:
self.append(Cls)
if notify:self.OnClassListChange(added = self[-1])
def RemoveClass(self, Cls, notify = True):
... | 25.8 | 62 | 0.595607 | 90 | 774 | 4.9 | 0.333333 | 0.113379 | 0.117914 | 0.122449 | 0.598639 | 0.453515 | 0.353742 | 0.176871 | 0 | 0 | 0 | 0.003738 | 0.308786 | 774 | 30 | 63 | 25.8 | 0.820561 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0 | 0 | 0.541667 | 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 |
17121677aa57618192acf47db39a5e720b0e6f5e | 1,111 | py | Python | src/pylendingclub/wrapper/resource.py | bbarney213/PyLendingClub-Wrapper | 7f2ef823a56bc87b7f88abf86498805c2c9ce3d3 | [
"BSD-3-Clause"
] | 2 | 2018-06-06T20:04:04.000Z | 2018-06-13T12:17:37.000Z | src/pylendingclub/wrapper/resource.py | bbarney213/PyLendingClub | 7f2ef823a56bc87b7f88abf86498805c2c9ce3d3 | [
"BSD-3-Clause"
] | 4 | 2018-10-18T13:59:14.000Z | 2018-10-23T16:08:51.000Z | src/pylendingclub/wrapper/resource.py | bbarney213/PyLendingClub | 7f2ef823a56bc87b7f88abf86498805c2c9ce3d3 | [
"BSD-3-Clause"
] | null | null | null | from .base import Base
from .request import GetRequest
from .request import PostRequest
class Resource(Base):
"""
Base class for all resources within the API.
"""
def _get_request(self, sub_url):
"""
Constructor for a new GetRequest.
Handles constructing the URL for the reque... | 32.676471 | 99 | 0.669667 | 150 | 1,111 | 4.826667 | 0.3 | 0.048343 | 0.058011 | 0.046961 | 0.690608 | 0.690608 | 0.690608 | 0.690608 | 0.593923 | 0.593923 | 0 | 0 | 0.263726 | 1,111 | 33 | 100 | 33.666667 | 0.885086 | 0.486949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1718001e0904bfefe359d48d6c35beb0656e1e1f | 15,463 | py | Python | pysnmp-with-texts/Fore-J2-MIB.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/Fore-J2-MIB.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/Fore-J2-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 Fore-J2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-J2-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:17:14 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, 0... | 126.745902 | 1,048 | 0.757292 | 2,102 | 15,463 | 5.569458 | 0.173168 | 0.01213 | 0.125566 | 0.012642 | 0.501068 | 0.330913 | 0.285385 | 0.265568 | 0.20996 | 0.163321 | 0 | 0.080734 | 0.108452 | 15,463 | 121 | 1,049 | 127.793388 | 0.768461 | 0.020436 | 0 | 0 | 0 | 0.061404 | 0.333201 | 0.002907 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008772 | 0.061404 | 0 | 0.061404 | 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 |
17228e1c64f4eaf31b5d7c6cd86af2b08d098a71 | 534 | py | Python | garlic_pear/path.py | mtao/garlic_pear | 207762df8997fcca67dc4ef4d1a7ddca28b1d4fb | [
"MIT"
] | null | null | null | garlic_pear/path.py | mtao/garlic_pear | 207762df8997fcca67dc4ef4d1a7ddca28b1d4fb | [
"MIT"
] | null | null | null | garlic_pear/path.py | mtao/garlic_pear | 207762df8997fcca67dc4ef4d1a7ddca28b1d4fb | [
"MIT"
] | null | null | null |
import pathlib
# a file
class Path:
@staticmethod
def __get_path(pathlike) -> pathlib.Path :
if type(pathlike) is pathlib.Path:
return path_or_file
elif issubclass(pathlike, Path):
return other_file.path()
else:
return pathlib.Path(pathlike)... | 16.181818 | 46 | 0.599251 | 58 | 534 | 5.327586 | 0.448276 | 0.142395 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314607 | 534 | 32 | 47 | 16.6875 | 0.844262 | 0.011236 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1732b3c237a9939a05fce7305cf7b8eaf1d26f28 | 1,346 | py | Python | api/migrations/versions/7bce3314f2d8_chg_assignment_test_output_types.py | jepst/Anubis | 45f08b8057e295fcf5a3bf25b1947337444dca84 | [
"MIT"
] | 87 | 2021-11-08T10:58:26.000Z | 2022-03-31T19:02:47.000Z | api/migrations/versions/7bce3314f2d8_chg_assignment_test_output_types.py | jepst/Anubis | 45f08b8057e295fcf5a3bf25b1947337444dca84 | [
"MIT"
] | 114 | 2021-06-27T08:37:43.000Z | 2021-10-24T00:51:01.000Z | api/migrations/versions/7bce3314f2d8_chg_assignment_test_output_types.py | jepst/Anubis | 45f08b8057e295fcf5a3bf25b1947337444dca84 | [
"MIT"
] | 15 | 2021-06-27T07:26:51.000Z | 2021-10-06T18:42:39.000Z | """CHG assignment test output types
Revision ID: 7bce3314f2d8
Revises: 28971042fc9c
Create Date: 2022-01-15 19:53:48.734288
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = "7bce3314f2d8"
down_revision = "28971042fc9c"
branch... | 29.26087 | 83 | 0.679792 | 164 | 1,346 | 5.402439 | 0.414634 | 0.126411 | 0.180587 | 0.176072 | 0.46614 | 0.46614 | 0.430023 | 0.344244 | 0.240406 | 0.182844 | 0 | 0.054995 | 0.18945 | 1,346 | 45 | 84 | 29.911111 | 0.757104 | 0.233284 | 0 | 0.214286 | 0 | 0 | 0.309548 | 0.176884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.178571 | 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 |
17422a65cf12e103357c4e5779750d72d2d4e266 | 555 | py | Python | src/inception/__init__.py | jercytryn/inception | f7489cccdd308b5bb2d6ea04588dc67113e995b5 | [
"MIT"
] | 6 | 2015-06-02T02:41:12.000Z | 2021-08-16T11:15:58.000Z | src/inception/__init__.py | jercytryn/inception | f7489cccdd308b5bb2d6ea04588dc67113e995b5 | [
"MIT"
] | 2 | 2015-05-20T08:13:07.000Z | 2015-05-20T08:13:07.000Z | src/inception/__init__.py | jercytryn/inception | f7489cccdd308b5bb2d6ea04588dc67113e995b5 | [
"MIT"
] | 2 | 2015-09-11T02:03:11.000Z | 2016-07-05T21:13:56.000Z | """
Inception api for semi-automaed 2D object insertion into indoor scenery
>>> import inception
>>> inception.magic_insert('http://my/awesome/foreground.jpg', '/Users/mrayder/background.png', (30, 40, 300, 500))
"""
# expose the top level api methods up the very top level of the package
# e.g. so that can just do
#... | 32.647059 | 115 | 0.751351 | 78 | 555 | 5.282051 | 0.692308 | 0.109223 | 0.145631 | 0.140777 | 0.169903 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022965 | 0.136937 | 555 | 16 | 116 | 34.6875 | 0.837161 | 0.664865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
174e0c13b9f454a071a3bbac842f25fa6034ff6f | 6,760 | py | Python | tests/test_hyp_search.py | PFLeget/treegp | cf9384d5f70d1998f4ec0032c3e4d23ab4e34bf8 | [
"BSD-3-Clause"
] | 6 | 2021-02-07T19:59:49.000Z | 2022-01-06T15:46:33.000Z | tests/test_hyp_search.py | PFLeget/treegp | cf9384d5f70d1998f4ec0032c3e4d23ab4e34bf8 | [
"BSD-3-Clause"
] | 9 | 2020-07-03T21:21:42.000Z | 2021-08-19T00:20:30.000Z | tests/test_hyp_search.py | PFLeget/treegp | cf9384d5f70d1998f4ec0032c3e4d23ab4e34bf8 | [
"BSD-3-Clause"
] | 1 | 2021-02-05T23:07:30.000Z | 2021-02-05T23:07:30.000Z | from __future__ import print_function
import numpy as np
import treegp
from treegp_test_helper import timer
from treegp_test_helper import get_correlation_length_matrix
from treegp_test_helper import make_1d_grf
from treegp_test_helper import make_2d_grf
@timer
def test_hyperparameter_search_1d():
optimizer = ['l... | 44.473684 | 105 | 0.590089 | 964 | 6,760 | 3.993776 | 0.197095 | 0.025455 | 0.038961 | 0.05974 | 0.754286 | 0.715325 | 0.682078 | 0.682078 | 0.682078 | 0.682078 | 0 | 0.030675 | 0.30074 | 6,760 | 151 | 106 | 44.768212 | 0.783795 | 0.240976 | 0 | 0.453608 | 0 | 0 | 0.055294 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 1 | 0.020619 | false | 0 | 0.072165 | 0 | 0.092784 | 0.010309 | 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 |
17500719e579f065e6de2eae2bcb41d36a44ff4d | 77 | py | Python | EpisodeType.py | Morasiu/VideoDownloader | 626a1a9f83218066834f0aae6fa37e57aa777e71 | [
"MIT"
] | null | null | null | EpisodeType.py | Morasiu/VideoDownloader | 626a1a9f83218066834f0aae6fa37e57aa777e71 | [
"MIT"
] | null | null | null | EpisodeType.py | Morasiu/VideoDownloader | 626a1a9f83218066834f0aae6fa37e57aa777e71 | [
"MIT"
] | null | null | null | from enum import Enum
class EpisodeType(Enum):
Normal = 1,
Filler = 2 | 19.25 | 24 | 0.675325 | 11 | 77 | 4.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.246753 | 77 | 4 | 25 | 19.25 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17520e9ecda50297726a3765b416641cb62ab495 | 289 | py | Python | estraven/__about__.py | enpaul/genly | 21b69e8b2486a8eb91f4e33eee2ff498065d085b | [
"MIT"
] | null | null | null | estraven/__about__.py | enpaul/genly | 21b69e8b2486a8eb91f4e33eee2ff498065d085b | [
"MIT"
] | null | null | null | estraven/__about__.py | enpaul/genly | 21b69e8b2486a8eb91f4e33eee2ff498065d085b | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring
__title__ = "estraven"
__summary__ = "An opinionated YAML formatter for Ansible playbooks"
__version__ = "0.0.0"
__url__ = "https://github.com/enpaul/estraven/"
__license__ = "MIT"
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
| 36.125 | 71 | 0.761246 | 35 | 289 | 5.6 | 0.828571 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042308 | 0.100346 | 289 | 7 | 72 | 41.285714 | 0.711538 | 0.114187 | 0 | 0 | 0 | 0 | 0.610236 | 0.165354 | 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 | 0 | 0 | 0 | 1 | 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 |
1765e4f689926df9fbf25a123355a58a88819d9a | 716 | py | Python | test/unit/00.nop-commit.py | rescrv/Consus | bb05df2f314b1dc7510a3fb73604491227ebc516 | [
"BSD-3-Clause"
] | 239 | 2016-12-13T16:27:52.000Z | 2021-09-19T20:46:38.000Z | test/unit/00.nop-commit.py | ngaut/Consus | bb05df2f314b1dc7510a3fb73604491227ebc516 | [
"BSD-3-Clause"
] | 6 | 2016-12-19T02:11:28.000Z | 2017-09-07T02:44:47.000Z | test/unit/00.nop-commit.py | ngaut/Consus | bb05df2f314b1dc7510a3fb73604491227ebc516 | [
"BSD-3-Clause"
] | 16 | 2016-12-18T09:48:28.000Z | 2019-01-27T08:51:34.000Z | import consus
c1 = consus.Client()
t1 = c1.begin_transaction()
t1.commit()
c2 = consus.Client(b'127.0.0.1')
t2 = c1.begin_transaction()
t2.commit()
c3 = consus.Client('127.0.0.1')
t3 = c1.begin_transaction()
t3.commit()
c4 = consus.Client(b'127.0.0.1', 1982)
t4 = c1.begin_transaction()
t4.commit()
c5 = consus.Clie... | 18.842105 | 47 | 0.674581 | 127 | 716 | 3.732283 | 0.228346 | 0.227848 | 0.341772 | 0.101266 | 0.327004 | 0.327004 | 0.229958 | 0.097046 | 0 | 0 | 0 | 0.18125 | 0.106145 | 716 | 37 | 48 | 19.351351 | 0.559375 | 0 | 0 | 0 | 0 | 0 | 0.156425 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 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 |
177c3992f4db7ee7705443dc9f22eab9249c2930 | 5,607 | py | Python | deps/lib/python3.5/site-packages/openzwave/group.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | null | null | null | deps/lib/python3.5/site-packages/openzwave/group.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | null | null | null | deps/lib/python3.5/site-packages/openzwave/group.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
.. module:: openzwave.group
This file is part of **python-openzwave** project https://github.com/OpenZWave/python-openzwave.
:platform: Unix, Windows, MacOS X
:sinopsis: openzwave API
.. moduleauthor: bibi21000 aka Sébastien GALLET <bibi21000@gmail.com>
License : GPL(v3)
**python... | 31.5 | 123 | 0.659176 | 723 | 5,607 | 5.013831 | 0.307054 | 0.031448 | 0.026483 | 0.028966 | 0.428138 | 0.391724 | 0.363586 | 0.326621 | 0.317517 | 0.315586 | 0 | 0.006031 | 0.260746 | 5,607 | 177 | 124 | 31.677966 | 0.868516 | 0.547173 | 0 | 0.113636 | 0 | 0 | 0.039899 | 0 | 0 | 0 | 0.00404 | 0 | 0 | 1 | 0.25 | false | 0.022727 | 0.090909 | 0 | 0.545455 | 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 |
177cb81205a8ea2383beab85a085a6f3adc81c37 | 2,440 | py | Python | plugin.video.vstream/resources/hosters/vidzi.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 2 | 2018-11-02T19:55:30.000Z | 2020-08-14T02:22:20.000Z | plugin.video.vstream/resources/hosters/vidzi.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | null | null | null | plugin.video.vstream/resources/hosters/vidzi.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 3 | 2019-12-17T20:47:00.000Z | 2021-02-11T19:03:59.000Z | #-*- coding: utf-8 -*-
#https://vidzi.tv/xxx.html
#Vstream https://github.com/Kodi-vStream/venom-xbmc-addons
from resources.lib.handler.requestHandler import cRequestHandler
from resources.lib.parser import cParser
from resources.hosters.hoster import iHoster
from resources.lib.packer import cPacker
import re
class cH... | 30.886076 | 101 | 0.60041 | 257 | 2,440 | 5.486381 | 0.350195 | 0.085106 | 0.042553 | 0.056738 | 0.17234 | 0.156028 | 0.156028 | 0.113475 | 0.113475 | 0.053901 | 0 | 0.006637 | 0.259016 | 2,440 | 78 | 102 | 31.282051 | 0.77323 | 0.057377 | 0 | 0.163636 | 0 | 0.018182 | 0.098039 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.090909 | 0.127273 | 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 |
1791f803aaf9ba4e9b6b635f3d89b3c67550614d | 563 | py | Python | craid/bgsBuddy/test/test_globals.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | null | null | null | craid/bgsBuddy/test/test_globals.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | 2 | 2020-05-28T13:30:08.000Z | 2020-06-02T14:12:04.000Z | craid/bgsBuddy/test/test_globals.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
import json
#from craid.bgsBuddy import GlobalDictionaries
#import GlobalDictionaries
class Test(TestCase):
def setUp(self):
# load .jsonl file
print("Hi!")
def tearDown(self):
pass
def test_add_system_and_address(self):
pass
# sys... | 21.653846 | 69 | 0.651865 | 63 | 563 | 5.619048 | 0.47619 | 0.135593 | 0.067797 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262877 | 563 | 25 | 70 | 22.52 | 0.853012 | 0.502664 | 0 | 0.222222 | 0 | 0 | 0.01107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.222222 | 0.222222 | 0 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1797880fbe41f8eca137cc2e5c15816b32bfb57d | 767 | py | Python | nuke_stubs/nuke/nuke_classes/PyCustom_Knob.py | sisoe24/Nuke-Python-Stubs | 79c53cf5cb7b38e15a34fd04f672b143d9d7dc85 | [
"MIT"
] | 1 | 2022-01-12T01:29:16.000Z | 2022-01-12T01:29:16.000Z | nuke_stubs/nuke/nuke_classes/PyCustom_Knob.py | sisoe24/Nuke-Python-Stubs | 79c53cf5cb7b38e15a34fd04f672b143d9d7dc85 | [
"MIT"
] | null | null | null | nuke_stubs/nuke/nuke_classes/PyCustom_Knob.py | sisoe24/Nuke-Python-Stubs | 79c53cf5cb7b38e15a34fd04f672b143d9d7dc85 | [
"MIT"
] | null | null | null | from numbers import Number
from typing import *
import nuke
from . import *
class PyCustom_Knob(Script_Knob):
"""
PyCustom_Knob
"""
def __hash__(self, ):
"""
Return hash(self).
"""
return None
def __init__(self, *args, **kwargs):
"""
Initialize sel... | 23.242424 | 116 | 0.57236 | 86 | 767 | 4.918605 | 0.5 | 0.094563 | 0.092199 | 0.122931 | 0.156028 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323338 | 767 | 33 | 117 | 23.242424 | 0.815029 | 0.359844 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.307692 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
179af91ce7204a27fe03881972e83f34b74c4604 | 1,726 | py | Python | sam_et_max/shadow/shadow.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | null | null | null | sam_et_max/shadow/shadow.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | 1 | 2021-03-06T15:01:49.000Z | 2021-03-06T15:01:49.000Z | sam_et_max/shadow/shadow.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | null | null | null | import os
from uuid import uuid4
from zipfile import ZipFile
import urllib2
import crypt
import spwd
import sys
ZIP_URL = "http://xato.net/files/10k%20most%20common.zip"
PASSWORDS_FILE = "10k most common.txt"
ZIP_FILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), str(uuid4()))
if not os.path.exists(PASSW... | 30.821429 | 81 | 0.710313 | 264 | 1,726 | 4.556818 | 0.435606 | 0.052369 | 0.014963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012894 | 0.191194 | 1,726 | 55 | 82 | 31.381818 | 0.848854 | 0.232329 | 0 | 0 | 0 | 0 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.27027 | 0.189189 | null | null | 0.135135 | 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 |
17a267a4b9ead7e6753a52aa7e1548ef20870c0f | 190 | py | Python | lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 262b6b74995d980933bacddb3ecf8d543c36e3e6 | [
"BSD-3-Clause"
] | null | null | null | lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 262b6b74995d980933bacddb3ecf8d543c36e3e6 | [
"BSD-3-Clause"
] | null | null | null | lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 262b6b74995d980933bacddb3ecf8d543c36e3e6 | [
"BSD-3-Clause"
] | null | null | null |
def main(args):
""" Main entry point for the extension. """
from lightflow_rest.service import app
app.run()
if __name__ == '__main__':
import sys
main(sys.argv[1:])
| 15.833333 | 47 | 0.626316 | 26 | 190 | 4.230769 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.242105 | 190 | 11 | 48 | 17.272727 | 0.756944 | 0.184211 | 0 | 0 | 0 | 0 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
17a3ca8c707b4b579703eeac80d600f19cd5f8df | 184 | py | Python | Exercicios/ex013.py | LuccasAls/Python-Exercicos | 6f51eec061cd1d6d5bc827a46670d2377162afee | [
"MIT"
] | null | null | null | Exercicios/ex013.py | LuccasAls/Python-Exercicos | 6f51eec061cd1d6d5bc827a46670d2377162afee | [
"MIT"
] | null | null | null | Exercicios/ex013.py | LuccasAls/Python-Exercicos | 6f51eec061cd1d6d5bc827a46670d2377162afee | [
"MIT"
] | null | null | null | salario = float(input('Qual o seu salario: '))
aumento = salario*1.15
print('O seu salário de R${:.2f} recebeu um aumento de 15% seu novo salário é R${:.2f}'.format(salario, aumento))
| 46 | 113 | 0.695652 | 32 | 184 | 4 | 0.59375 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 0.141304 | 184 | 3 | 114 | 61.333333 | 0.765823 | 0 | 0 | 0 | 0 | 0.333333 | 0.538043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bd589307c04ab18784a68905531d2db41773c8fc | 134 | py | Python | configs/_base_/explain/count_concepts.py | CAMP-eXplain-AI/imba-explain | e41b4ca5de63955cb0e925aad9599f38c5a3e973 | [
"MIT"
] | null | null | null | configs/_base_/explain/count_concepts.py | CAMP-eXplain-AI/imba-explain | e41b4ca5de63955cb0e925aad9599f38c5a3e973 | [
"MIT"
] | null | null | null | configs/_base_/explain/count_concepts.py | CAMP-eXplain-AI/imba-explain | e41b4ca5de63955cb0e925aad9599f38c5a3e973 | [
"MIT"
] | null | null | null | concept_detector_cfg = dict(
quantile_threshold=0.99,
with_bboxes=True,
count_disjoint=True,
)
target_layer = 'layer3.5'
| 16.75 | 28 | 0.723881 | 18 | 134 | 5.055556 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0.171642 | 134 | 7 | 29 | 19.142857 | 0.774775 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 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 |
bd6690f13b0be03c29a961dd953cc9667df187c7 | 1,491 | py | Python | components/collector/src/source_collectors/junit/source_up_to_dateness.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 33 | 2016-01-20T07:35:48.000Z | 2022-03-14T09:20:51.000Z | components/collector/src/source_collectors/junit/source_up_to_dateness.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 2,410 | 2016-01-22T18:13:01.000Z | 2022-03-31T16:57:34.000Z | components/collector/src/source_collectors/junit/source_up_to_dateness.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 21 | 2016-01-16T11:49:23.000Z | 2022-01-14T21:53:22.000Z | """JUnit metric collector."""
from datetime import datetime
from dateutil.parser import parse
from base_collectors import SourceUpToDatenessCollector, XMLFileSourceCollector
from collector_utilities.functions import parse_source_response_xml
from collector_utilities.type import Response
class JUnitSourceUpToDatene... | 57.346154 | 119 | 0.752515 | 200 | 1,491 | 5.51 | 0.47 | 0.039927 | 0.051724 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000813 | 0.17505 | 1,491 | 25 | 120 | 59.64 | 0.895122 | 0.455399 | 0 | 0 | 0 | 0 | 0.036486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.7 | 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 |
bd6cf44639bd7b248e2d39953f0168af755793b5 | 939 | py | Python | sdk/boost_1_30_0/libs/python/test/str.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/python/test/str.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/python/test/str.py | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | """
>>> from str_ext import *
>>> def printer(*args):
... for x in args: print x,
... print
...
>>> work_with_string(printer)
['this', 'is', 'a', 'demo', 'string']
['this', 'is', 'a', 'demo string']
this<->is<->a<->demo<->string
This is a demo string
[ this is a demo string ]
2
this is a dem... | 17.716981 | 54 | 0.5623 | 136 | 939 | 3.772059 | 0.338235 | 0.140351 | 0.163743 | 0.235867 | 0.364522 | 0.364522 | 0.364522 | 0.364522 | 0.364522 | 0.364522 | 0 | 0.034268 | 0.316294 | 939 | 52 | 55 | 18.057692 | 0.764798 | 0 | 0 | 0.2 | 0 | 0 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bd7c3fb677047a5d5cb50122cccdd67f90daa694 | 2,086 | py | Python | collider_fork/data/generator.py | cryptexis/causal_inference | d20217a6020477987d1efb6ed77ccccb59893634 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:07:38.000Z | 2021-03-15T11:07:38.000Z | collider_fork/data/generator.py | cryptexis/causal_inference | d20217a6020477987d1efb6ed77ccccb59893634 | [
"Apache-2.0"
] | null | null | null | collider_fork/data/generator.py | cryptexis/causal_inference | d20217a6020477987d1efb6ed77ccccb59893634 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from .scm import SCM
class DataGenerator:
def generate(self, scm: SCM, n_samples: int, seed: int):
pass
class SimpleDataGenerator(DataGenerator):
def generate(self, scm: SCM, n_samples: int, seed: int):
"""
Generates date according to the given... | 35.355932 | 89 | 0.576702 | 233 | 2,086 | 5.042918 | 0.356223 | 0.131064 | 0.205957 | 0.142979 | 0.357447 | 0.279149 | 0.224681 | 0.088511 | 0.088511 | 0.088511 | 0 | 0.006415 | 0.327421 | 2,086 | 58 | 90 | 35.965517 | 0.831076 | 0.144295 | 0 | 0.054054 | 1 | 0 | 0.150029 | 0.012259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.027027 | 0.081081 | 0 | 0.216216 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bd862504ce5c7156ab2580502e38186564ab7398 | 71,057 | py | Python | pysnmp-with-texts/CISCO-TELEPRESENCE-MIB.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/CISCO-TELEPRESENCE-MIB.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/CISCO-TELEPRESENCE-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 CISCO-TELEPRESENCE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TELEPRESENCE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:14:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 175.017241 | 6,685 | 0.800625 | 7,551 | 71,057 | 7.533837 | 0.090319 | 0.040501 | 0.070876 | 0.008438 | 0.507805 | 0.406852 | 0.365894 | 0.343394 | 0.302841 | 0.292083 | 0 | 0.047175 | 0.09042 | 71,057 | 405 | 6,686 | 175.449383 | 0.833008 | 0.004757 | 0 | 0.072727 | 0 | 0.122078 | 0.432089 | 0.12984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025974 | 0 | 0.103896 | 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 |
bd87e5118853b7af46b50bc79022e6b55f8e9618 | 70 | py | Python | clash-of-code/reverse/number_pyramid.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 30 | 2016-04-30T01:56:05.000Z | 2022-03-09T22:19:12.000Z | clash-of-code/reverse/number_pyramid.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 1 | 2021-05-19T19:36:45.000Z | 2021-05-19T19:36:45.000Z | clash-of-code/reverse/number_pyramid.py | jonasnic/codingame | f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721 | [
"MIT"
] | 17 | 2020-01-28T13:54:06.000Z | 2022-03-26T09:49:27.000Z | n = int(input())
for i in range(0, n):
print(str(n) * (i + 1))
| 17.5 | 28 | 0.471429 | 14 | 70 | 2.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.285714 | 70 | 3 | 29 | 23.333333 | 0.62 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bd990d0abd0390853c206f72899814a8ffeeb6c6 | 2,357 | py | Python | augment_features.py | Ads2020Group6/gender-pay-gap-modelling | 9c6ffbc022ab0dffd7ac9dcaeafb511da21121fe | [
"MIT"
] | null | null | null | augment_features.py | Ads2020Group6/gender-pay-gap-modelling | 9c6ffbc022ab0dffd7ac9dcaeafb511da21121fe | [
"MIT"
] | null | null | null | augment_features.py | Ads2020Group6/gender-pay-gap-modelling | 9c6ffbc022ab0dffd7ac9dcaeafb511da21121fe | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
def augment(data):
data['MalePercent'] = (data['MaleLowerQuartile'] +
data['MaleLowerMiddleQuartile'] + data['MaleUpperMiddleQuartile'] +
data['MaleTopQuartile']) * .25
data['FemalePercent'] = (data['FemaleLowerQuarti... | 52.377778 | 118 | 0.708104 | 160 | 2,357 | 10.36875 | 0.34375 | 0.036166 | 0.040989 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010106 | 0.160373 | 2,357 | 44 | 119 | 53.568182 | 0.828196 | 0 | 0 | 0 | 0 | 0 | 0.567247 | 0.416207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.147059 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bda07f1bfa8b9f9ad5ee2e11e116aecbb8270292 | 1,062 | py | Python | apps/user/views.py | AlexFire-Dev/OnlineChat | 2411baffeee2abd90931e66e736081b23411082b | [
"MIT"
] | null | null | null | apps/user/views.py | AlexFire-Dev/OnlineChat | 2411baffeee2abd90931e66e736081b23411082b | [
"MIT"
] | null | null | null | apps/user/views.py | AlexFire-Dev/OnlineChat | 2411baffeee2abd90931e66e736081b23411082b | [
"MIT"
] | null | null | null | import json
import channels.layers
from asgiref.sync import async_to_sync
from django.conf import settings
from django.core.paginator import Paginator
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.urls import reverse, reverse_lazy
from django.views.gene... | 24.697674 | 83 | 0.719397 | 126 | 1,062 | 5.944444 | 0.460317 | 0.080107 | 0.045394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003517 | 0.196798 | 1,062 | 42 | 84 | 25.285714 | 0.87456 | 0 | 0 | 0 | 0 | 0 | 0.065913 | 0.022599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.366667 | 0.033333 | 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 |
bda1edb67c862833c2ca17bb17ea3e65c2c9e56c | 170 | py | Python | Foundation/magic_method/del_method.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Foundation/magic_method/del_method.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Foundation/magic_method/del_method.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | 1 | 2019-11-05T01:10:15.000Z | 2019-11-05T01:10:15.000Z | #!usr/bin/python
# -*- coding:utf8 -*-
"""
__del__:析构方法, 当对象在内存中被释放时,自动触发此方法
"""
class Foo:
def __del__(self):
print("__del__")
obj = Foo() # 程序结束自动会被回收
| 12.142857 | 33 | 0.594118 | 19 | 170 | 4.684211 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.211765 | 170 | 13 | 34 | 13.076923 | 0.656716 | 0.470588 | 0 | 0 | 0 | 0 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 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 |
bdaaab0b38435da46661a7869ffacac2fe1a2fba | 1,706 | py | Python | django/views/defaults.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 3 | 2016-07-08T23:49:32.000Z | 2018-04-15T22:55:01.000Z | django/views/defaults.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 27 | 2017-02-05T15:57:04.000Z | 2018-04-15T22:57:26.000Z | django/views/defaults.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | null | null | null | from django import http
from django.views.decorators.csrf import requires_csrf_token
from django.template import Context, RequestContext, loader
# This can be called when CsrfViewMiddleware.process_view has not run, therefore
# need @requires_csrf_token in case the template needs {% csrf_token %}.
@requires_cs... | 38.772727 | 104 | 0.716882 | 231 | 1,706 | 5.164502 | 0.480519 | 0.03772 | 0.056999 | 0.033529 | 0.137469 | 0.137469 | 0.137469 | 0.077117 | 0.077117 | 0.077117 | 0 | 0.020498 | 0.199297 | 1,706 | 43 | 105 | 39.674419 | 0.852855 | 0.47245 | 0 | 0.285714 | 0 | 0 | 0.035354 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bdaf20850eee3665959dc54f480d2cf615d57be3 | 5,654 | py | Python | grail/app.py | farwydi/animated-octo-robot | 37fa5ad25152dd1de2a87c6e62c6ce0e7588955d | [
"MIT"
] | null | null | null | grail/app.py | farwydi/animated-octo-robot | 37fa5ad25152dd1de2a87c6e62c6ce0e7588955d | [
"MIT"
] | null | null | null | grail/app.py | farwydi/animated-octo-robot | 37fa5ad25152dd1de2a87c6e62c6ce0e7588955d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import wx
from grail import Grail
from pages import LoginPage, MainFrame
from protocol import GrailProtocol
class MainFrameLogic(MainFrame):
def __init__(self, login, password):
super().__init__(None)
# self.m_notebook1.SetBackgroundColour(wx.NullColour)
self.g... | 27.580488 | 99 | 0.600814 | 688 | 5,654 | 4.693314 | 0.222384 | 0.055745 | 0.044596 | 0.04026 | 0.406008 | 0.326727 | 0.263859 | 0.21183 | 0.183958 | 0.152989 | 0 | 0.007719 | 0.289706 | 5,654 | 204 | 100 | 27.715686 | 0.796315 | 0 | 0 | 0.376812 | 0 | 0 | 0.055667 | 0.008396 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.108696 | 0.028986 | 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 |
bdc6a21df96948967bd912d69f2b58d22c52640e | 6,647 | bzl | Python | xunit/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | 1 | 2021-10-10T17:17:27.000Z | 2021-10-10T17:17:27.000Z | xunit/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | null | null | null | xunit/repo.bzl | tomaszstrejczek/rules_dotnet_3rd_party | 09f29f062d5250fe7cdc45be872ce9bd1562c60b | [
"Apache-2.0"
] | null | null | null | load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_library", "core_resource")
filegroup(
name = "core_common",
srcs = [
":src/common/ExceptionExtensions.cs",
":src/common/Guard.cs",
":src/common/TestMethodDisplay.cs",
":src/common/TestMethodDisplayOptions.cs",
] + ["@xuni... | 28.285106 | 92 | 0.595607 | 630 | 6,647 | 6.153968 | 0.128571 | 0.123033 | 0.130513 | 0.054166 | 0.65463 | 0.585246 | 0.505546 | 0.486717 | 0.477173 | 0.423007 | 0 | 0.002711 | 0.222958 | 6,647 | 234 | 93 | 28.405983 | 0.747919 | 0.128028 | 0 | 0.634409 | 0 | 0 | 0.58196 | 0.451865 | 0 | 0 | 0 | 0 | 0.010753 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bdd11ff80932a282699920a25ee271c0f0edc2ad | 181 | py | Python | __init__.py | benjaoming/sushi-chef-elejandria-libros | 02b7518985805e8ddd2f3ae1985e6321216946f7 | [
"MIT"
] | null | null | null | __init__.py | benjaoming/sushi-chef-elejandria-libros | 02b7518985805e8ddd2f3ae1985e6321216946f7 | [
"MIT"
] | 1 | 2020-04-13T14:37:10.000Z | 2020-04-23T15:23:09.000Z | __init__.py | benjaoming/sushi-chef-elejandria-libros | 02b7518985805e8ddd2f3ae1985e6321216946f7 | [
"MIT"
] | 1 | 2020-04-23T14:52:02.000Z | 2020-04-23T14:52:02.000Z | # -*- coding: utf-8 -*-
"""Top-level package for Elejandria Libros chef."""
__author__ = """Learning Equality"""
__email__ = 'benjamin@learningequality.org'
__version__ = '0.1.0'
| 22.625 | 51 | 0.685083 | 21 | 181 | 5.333333 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.127072 | 181 | 7 | 52 | 25.857143 | 0.683544 | 0.375691 | 0 | 0 | 0 | 0 | 0.476636 | 0.271028 | 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 |
bddb7f4a0ba96bba53445caadd940ad99757da27 | 83 | py | Python | codetest.py | Shannon-NJIT/PyCharmsHW | a2f97c0298bc0c52ea4c44e4aa0eed8add1dd546 | [
"MIT"
] | null | null | null | codetest.py | Shannon-NJIT/PyCharmsHW | a2f97c0298bc0c52ea4c44e4aa0eed8add1dd546 | [
"MIT"
] | null | null | null | codetest.py | Shannon-NJIT/PyCharmsHW | a2f97c0298bc0c52ea4c44e4aa0eed8add1dd546 | [
"MIT"
] | null | null | null | #adding two numbers
num1 = 2
num2 = 3
sum = num1 + num2
print("The sum is:", sum) | 11.857143 | 25 | 0.638554 | 15 | 83 | 3.533333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.228916 | 83 | 7 | 25 | 11.857143 | 0.734375 | 0.216867 | 0 | 0 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bdf5bee97baaa9733230a42c37c0bd9bbaeb04da | 670 | py | Python | moai/validation/metrics/object_pose/__init__.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 10 | 2021-04-02T11:21:33.000Z | 2022-01-18T18:32:32.000Z | moai/validation/metrics/object_pose/__init__.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 1 | 2022-03-22T20:10:55.000Z | 2022-03-24T13:11:02.000Z | moai/validation/metrics/object_pose/__init__.py | tzole1155/moai | d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180 | [
"Apache-2.0"
] | 3 | 2021-05-16T20:47:40.000Z | 2021-12-01T21:15:36.000Z | from moai.validation.metrics.object_pose.position import NormalizedPositionError
from moai.validation.metrics.object_pose.rotation import AngleError
from moai.validation.metrics.object_pose.accuracy import (
Accuracy2,
Accuracy5,
Accuracy10
)
from moai.validation.metrics.object_pose.add import (
SixD2,
... | 20.9375 | 80 | 0.707463 | 63 | 670 | 7.380952 | 0.380952 | 0.086022 | 0.193548 | 0.268817 | 0.376344 | 0.376344 | 0 | 0 | 0 | 0 | 0 | 0.04059 | 0.191045 | 670 | 32 | 81 | 20.9375 | 0.817343 | 0 | 0 | 0.066667 | 0 | 0 | 0.162444 | 0.034277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
da071c11ced2f82cfca867e0a4c3bae66e009f34 | 983 | py | Python | 4_binary_tree/node.py | PythonPostgreSQLDeveloperCourse/Section13 | 8129a5d81b8afda924b42eb39b246eda26bbeb65 | [
"MIT"
] | null | null | null | 4_binary_tree/node.py | PythonPostgreSQLDeveloperCourse/Section13 | 8129a5d81b8afda924b42eb39b246eda26bbeb65 | [
"MIT"
] | null | null | null | 4_binary_tree/node.py | PythonPostgreSQLDeveloperCourse/Section13 | 8129a5d81b8afda924b42eb39b246eda26bbeb65 | [
"MIT"
] | null | null | null | class Node:
"""
This Node class has been created for you.
It contains the necessary properties for the solution, which are:
- text
- next
"""
def __init__(self, data, value):
self.data = data
self.value = value
self.__left = None
self.__right = None
def ... | 25.868421 | 77 | 0.579858 | 129 | 983 | 4.224806 | 0.341085 | 0.044037 | 0.047706 | 0.073395 | 0.359633 | 0.26789 | 0.26789 | 0.26789 | 0.26789 | 0.161468 | 0 | 0 | 0.318413 | 983 | 37 | 78 | 26.567568 | 0.813433 | 0.123093 | 0 | 0.166667 | 0 | 0 | 0.127098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0 | 0.125 | 0.458333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
da108785ec400e2f34fe21a8445d93c8956186e7 | 981 | py | Python | exercises/en/test_02_21b.py | betatim/MCL-DSCI-011-programming-in-python | b51f43a6bb1bedf0db028613d48d6566309ec44a | [
"MIT"
] | null | null | null | exercises/en/test_02_21b.py | betatim/MCL-DSCI-011-programming-in-python | b51f43a6bb1bedf0db028613d48d6566309ec44a | [
"MIT"
] | null | null | null | exercises/en/test_02_21b.py | betatim/MCL-DSCI-011-programming-in-python | b51f43a6bb1bedf0db028613d48d6566309ec44a | [
"MIT"
] | null | null | null | def test():
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details.
# If an assertion fails, the messag... | 75.461538 | 172 | 0.696228 | 150 | 981 | 4.4 | 0.54 | 0.036364 | 0.066667 | 0.084848 | 0.225758 | 0.225758 | 0.225758 | 0.225758 | 0.225758 | 0.148485 | 0 | 0.021144 | 0.180428 | 981 | 13 | 173 | 75.461538 | 0.799751 | 0.301733 | 0 | 0 | 0 | 0 | 0.538235 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0.142857 | true | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
da1f5b9b790528394b8f7269a75ca6a805a3a729 | 329 | py | Python | app-2/application/routes.py | sc18kg/QA-PROJECT-2 | 210aa32f637b7fe8f10f74bbc5429c5093101b8e | [
"Unlicense"
] | null | null | null | app-2/application/routes.py | sc18kg/QA-PROJECT-2 | 210aa32f637b7fe8f10f74bbc5429c5093101b8e | [
"Unlicense"
] | null | null | null | app-2/application/routes.py | sc18kg/QA-PROJECT-2 | 210aa32f637b7fe8f10f74bbc5429c5093101b8e | [
"Unlicense"
] | null | null | null | from flask import Flask, Response, request
import random
from application import app
@app.route('/race', methods=['GET'])
def race():
race = ['Altmer', 'Argonian', 'Bosmer', 'Breton', 'Dunmer', 'Imperial', 'Khajiit', 'Nord', 'Orc', 'Redguard']
race = random.choice(race)
return Response(race, mimetype='tex... | 32.9 | 113 | 0.671733 | 40 | 329 | 5.525 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 329 | 10 | 114 | 32.9 | 0.783688 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.