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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6004eed2e1c2c6d3dd16ff04ead53384598be124 | 776 | py | Python | adversarialAE/__init__.py | sb1705/AdversarialAutoencoder | 7e030da0e1986380b2a7f9d18f146b66be5861d3 | [
"MIT"
] | null | null | null | adversarialAE/__init__.py | sb1705/AdversarialAutoencoder | 7e030da0e1986380b2a7f9d18f146b66be5861d3 | [
"MIT"
] | null | null | null | adversarialAE/__init__.py | sb1705/AdversarialAutoencoder | 7e030da0e1986380b2a7f9d18f146b66be5861d3 | [
"MIT"
] | null | null | null | from . import aae_celeba
from . import nets
from . import utils
AAE = aae_celeba.AAE
#model_generator = nets.model_generator
#model_encoder = nets.model_encoder
#model_discriminator = nets.model_discriminator
retrieve_data = utils.data_utils.retrieve_data
data_process = utils.data_utils.data_process
dim_ordering_fi... | 32.333333 | 61 | 0.859536 | 114 | 776 | 5.421053 | 0.22807 | 0.213592 | 0.169903 | 0.174757 | 0.338188 | 0.169903 | 0.169903 | 0.169903 | 0.169903 | 0.169903 | 0 | 0 | 0.079897 | 776 | 23 | 62 | 33.73913 | 0.865546 | 0.152062 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
600f5b7d23689c020516f58097e84aab084e320b | 795 | py | Python | pyopenproject/business/services/command/user_preferences/find.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/user_preferences/find.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/user_preferences/find.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.get_request import GetRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.user_preferences.user_preferences_command imp... | 41.842105 | 116 | 0.786164 | 84 | 795 | 7.214286 | 0.47619 | 0.140264 | 0.066007 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148428 | 795 | 18 | 117 | 44.166667 | 0.895126 | 0 | 0 | 0 | 0 | 0 | 0.055346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.642857 | 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 |
6013d9408adc25915892cb13c3f6ed9bff7cbb9f | 5,574 | py | Python | plugins/countdown_timer_2.1s.py | longpdo/bitbar-plugins-custom | 58cff1571ae4a939f7edac9c42fcd1156e3c8661 | [
"MIT"
] | 4 | 2020-07-08T23:47:51.000Z | 2021-04-15T12:03:08.000Z | plugins/countdown_timer_2.1s.py | longpdo/bitbar-plugins-custom | 58cff1571ae4a939f7edac9c42fcd1156e3c8661 | [
"MIT"
] | null | null | null | plugins/countdown_timer_2.1s.py | longpdo/bitbar-plugins-custom | 58cff1571ae4a939f7edac9c42fcd1156e3c8661 | [
"MIT"
] | 3 | 2020-07-08T23:48:29.000Z | 2021-03-17T07:37:02.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# <bitbar.title>Countdown Timer 2</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Federico Ferri</bitbar.author>
# <bitbar.author.github>fferri</bitbar.author.github>
# <bitbar.desc>Simple countdown timer.</bitbar.desc>
# <bitbar.dependencies>python<... | 50.216216 | 1,661 | 0.705418 | 562 | 5,574 | 6.923488 | 0.371886 | 0.026728 | 0.00771 | 0.012336 | 0.039579 | 0.024672 | 0.013364 | 0.013364 | 0.013364 | 0 | 0 | 0.060059 | 0.154647 | 5,574 | 110 | 1,662 | 50.672727 | 0.765705 | 0.094187 | 0 | 0.075 | 0 | 0.0125 | 0.480849 | 0.355229 | 0 | 1 | 0 | 0 | 0 | 1 | 0.0875 | false | 0.0125 | 0.0625 | 0 | 0.2 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
601c02305bed9be7ed433237734693be81237d7a | 53,881 | py | Python | pysnmp-with-texts/EFDATA-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/EFDATA-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/EFDATA-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 EFDATA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EFDATA-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:59:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:... | 127.983373 | 4,910 | 0.765892 | 6,783 | 53,881 | 6.083886 | 0.097007 | 0.073279 | 0.128238 | 0.014927 | 0.559164 | 0.409819 | 0.362348 | 0.310539 | 0.295466 | 0.262122 | 0 | 0.064364 | 0.09688 | 53,881 | 420 | 4,911 | 128.288095 | 0.783687 | 0.005828 | 0 | 0 | 0 | 0.079903 | 0.26209 | 0.009989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014528 | 0 | 0.014528 | 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 |
603057ad2039ff4930eee3907257562856f71ff3 | 115 | py | Python | custom_components/ziggonext/const.py | BioGeekJoey/Home-Assistant-config | 1ccafc77cf8059924b272fc81b511a3418785f64 | [
"MIT"
] | 1 | 2019-07-01T21:57:06.000Z | 2019-07-01T21:57:06.000Z | custom_components/ziggonext/const.py | BioGeekJoey/Home-Assistant-config | 1ccafc77cf8059924b272fc81b511a3418785f64 | [
"MIT"
] | 3 | 2019-10-21T02:21:37.000Z | 2019-10-21T02:31:43.000Z | custom_components/ziggonext/const.py | BioGeekJoey/hassio-config | 1ccafc77cf8059924b272fc81b511a3418785f64 | [
"MIT"
] | null | null | null | """Constants for the Ziggo Mediabox Next integration."""
ZIGGO_API = "ziggo_api"
CONF_COUNTRY_CODE = "country_code" | 38.333333 | 56 | 0.782609 | 16 | 115 | 5.3125 | 0.6875 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104348 | 115 | 3 | 57 | 38.333333 | 0.825243 | 0.434783 | 0 | 0 | 0 | 0 | 0.35 | 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 |
603db25de26b4acf2345e32fb7dda4e46c9d48a8 | 9,620 | py | Python | configs/rl.py | jozhang97/Side-tuning | dea345691fb7ee0230150fe56ddd644efdffa6ac | [
"MIT"
] | 56 | 2020-01-12T05:45:59.000Z | 2022-03-17T15:04:15.000Z | configs/rl.py | jozhang97/Side-tuning | dea345691fb7ee0230150fe56ddd644efdffa6ac | [
"MIT"
] | 7 | 2020-01-28T23:14:45.000Z | 2022-02-10T01:56:48.000Z | configs/rl.py | jozhang97/Side-tuning | dea345691fb7ee0230150fe56ddd644efdffa6ac | [
"MIT"
] | 2 | 2020-02-29T14:51:23.000Z | 2020-03-07T03:23:27.000Z | # Habitat configs
# This should be sourced by the training script,
# which must save a sacred experiment in the variable "ex"
# For descriptions of all fields, see configs/core.py
####################################
# Standard methods
####################################
@ex.named_config
def taskonomy_features... | 33.402778 | 145 | 0.523805 | 846 | 9,620 | 5.638298 | 0.235225 | 0.089099 | 0.029979 | 0.036897 | 0.733333 | 0.721174 | 0.652201 | 0.620755 | 0.612788 | 0.612788 | 0 | 0.014036 | 0.340852 | 9,620 | 287 | 146 | 33.519164 | 0.738212 | 0.156029 | 0 | 0.609244 | 0 | 0 | 0.425048 | 0.18343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046218 | false | 0 | 0 | 0 | 0.046218 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
603de51b39d0171cbf957c04d7c5752dd23eec22 | 7,104 | py | Python | src/platform_vision/scripts/platform_vision/featureMatching.py | ahmohamed1/activeStereoVisionPlatform | 6c928ca242e4de68c7b15a8748bff1d9f7fa1382 | [
"MIT"
] | null | null | null | src/platform_vision/scripts/platform_vision/featureMatching.py | ahmohamed1/activeStereoVisionPlatform | 6c928ca242e4de68c7b15a8748bff1d9f7fa1382 | [
"MIT"
] | null | null | null | src/platform_vision/scripts/platform_vision/featureMatching.py | ahmohamed1/activeStereoVisionPlatform | 6c928ca242e4de68c7b15a8748bff1d9f7fa1382 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import cv2
def findCenterOfTarget(dst):
return np.mean(dst, axis=0)
# def kaze_match(im1_path, im2_path):
def kaze_match(img1, img2):
if img1.shape[2] == 1:
gray1 = cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY)
gray2 = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY)
... | 34.153846 | 84 | 0.615428 | 990 | 7,104 | 4.353535 | 0.179798 | 0.005568 | 0.027146 | 0.020882 | 0.697448 | 0.658933 | 0.653828 | 0.640371 | 0.632715 | 0.625058 | 0 | 0.066254 | 0.25 | 7,104 | 207 | 85 | 34.318841 | 0.74268 | 0.132461 | 0 | 0.638298 | 0 | 0 | 0.037659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014184 | null | null | 0.035461 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
604ed9aaf3bf9d0149bbba59bfa4c33c93c49c2e | 1,419 | py | Python | mango/oraclefactory.py | mschneider/mango-explorer | ed50880ef80b31b679c9c89fa9bf0579391d71c9 | [
"MIT"
] | null | null | null | mango/oraclefactory.py | mschneider/mango-explorer | ed50880ef80b31b679c9c89fa9bf0579391d71c9 | [
"MIT"
] | null | null | null | mango/oraclefactory.py | mschneider/mango-explorer | ed50880ef80b31b679c9c89fa9bf0579391d71c9 | [
"MIT"
] | 1 | 2021-09-02T17:06:09.000Z | 2021-09-02T17:06:09.000Z | # # ⚠ Warning
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
# LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA... | 40.542857 | 104 | 0.744186 | 187 | 1,419 | 5.625668 | 0.561497 | 0.068441 | 0.041825 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001675 | 0.158562 | 1,419 | 34 | 105 | 41.735294 | 0.876884 | 0.613108 | 0 | 0 | 0 | 0 | 0.102467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
604f3cb983198b95e07de3e871d91347e79aa951 | 4,234 | py | Python | experiments/tuning/50units_1.py | samuilstoychev/research_project | 897bde82471ef92ded396aa31d91ec19826d4ce2 | [
"MIT"
] | null | null | null | experiments/tuning/50units_1.py | samuilstoychev/research_project | 897bde82471ef92ded396aa31d91ec19826d4ce2 | [
"MIT"
] | null | null | null | experiments/tuning/50units_1.py | samuilstoychev/research_project | 897bde82471ef92ded396aa31d91ec19826d4ce2 | [
"MIT"
] | null | null | null | RAM AT BEGINNING: 0.22328948974609375
Latent replay turned on
CUDA is used
RAM BEFORE LOADING DATA: 0.2279205322265625
Preparing the data...
SPLIT RATIO: [50000, 10000]
--> mnist: 'train'-dataset consisting of 60000 samples
--> mnist: 'test'-dataset consisting of 10000 samples
RAM AFTER LOADING DATA: 0.2888832092285... | 34.704918 | 112 | 0.559518 | 475 | 4,234 | 4.907368 | 0.355789 | 0.06006 | 0.041184 | 0.05148 | 0.366795 | 0.314457 | 0.28743 | 0.2574 | 0.19305 | 0.169884 | 0 | 0.149001 | 0.148795 | 4,234 | 121 | 113 | 34.991736 | 0.49778 | 0 | 0 | 0.209091 | 0 | 0 | 0.002126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6057e75355f41f7bc701d058fd81e53c05c436f2 | 561 | py | Python | tests/test_run/example_conf.py | nizaevka/pycnfg | f3bf307982ba830c8b35393614be153bbfdc7da1 | [
"Apache-2.0"
] | null | null | null | tests/test_run/example_conf.py | nizaevka/pycnfg | f3bf307982ba830c8b35393614be153bbfdc7da1 | [
"Apache-2.0"
] | null | null | null | tests/test_run/example_conf.py | nizaevka/pycnfg | f3bf307982ba830c8b35393614be153bbfdc7da1 | [
"Apache-2.0"
] | null | null | null | """Conf as separate file."""
import logging
import pycnfg
CNFG = {
'path': {
'default': {
'init': pycnfg.utils.find_path,
'producer': pycnfg.Producer,
'global': {},
'patch': {},
'priority': 1,
'steps': [],
},
},
'logge... | 20.035714 | 49 | 0.385027 | 38 | 561 | 5.657895 | 0.552632 | 0.102326 | 0.204651 | 0.260465 | 0.437209 | 0.437209 | 0.437209 | 0.437209 | 0 | 0 | 0 | 0.00627 | 0.431373 | 561 | 27 | 50 | 20.777778 | 0.667712 | 0.039216 | 0 | 0.5 | 0 | 0 | 0.193246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
6058cf2da87af8cee9cbfd02c17903e120351b07 | 2,758 | py | Python | weightnet_pytorch.py | khy0809/WeightNet | cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e | [
"MIT"
] | null | null | null | weightnet_pytorch.py | khy0809/WeightNet | cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e | [
"MIT"
] | null | null | null | weightnet_pytorch.py | khy0809/WeightNet | cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e | [
"MIT"
] | null | null | null | import torch.nn.functional as F
import torch.nn as nn
class WeightNet(nn.Module):
r"""Applies WeightNet to a standard convolution.
The grouped fc layer directly generates the convolutional kernel,
this layer has M*inp inputs, G*oup groups and oup*inp*ksize*ksize outputs.
M/G control the amount of par... | 34.049383 | 126 | 0.595722 | 460 | 2,758 | 3.454348 | 0.184783 | 0.026432 | 0.022656 | 0.012587 | 0.707363 | 0.690371 | 0.690371 | 0.662681 | 0.636249 | 0.636249 | 0 | 0.032689 | 0.267948 | 2,758 | 80 | 127 | 34.475 | 0.754334 | 0.252719 | 0 | 0.653061 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.040816 | 0 | 0.204082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
605e0a5917bf48fc636e03ec8e849fb23b2ee34d | 580 | py | Python | 2020/Day6.py | vypxl/aoc | 4187837ecd8bf7464efa4953588b8c53d5675cfb | [
"WTFPL"
] | 1 | 2022-01-08T23:39:52.000Z | 2022-01-08T23:39:52.000Z | 2020/Day6.py | vypxl/aoc | 4187837ecd8bf7464efa4953588b8c53d5675cfb | [
"WTFPL"
] | null | null | null | 2020/Day6.py | vypxl/aoc | 4187837ecd8bf7464efa4953588b8c53d5675cfb | [
"WTFPL"
] | 2 | 2020-12-19T16:44:54.000Z | 2020-12-19T19:00:55.000Z | #! /usr/bin/env python
# pylint: disable=unused-wildcard-import
from util import *
def parse(inp):
return compose(list, map(compose(list, map(set), str.splitlines)))(inp.split('\n\n'))
def p1(inp):
return compose(sum, map(compose(count, reduce(set.union))))(inp)
def p2(inp):
return compose(sum, map(compo... | 24.166667 | 89 | 0.660345 | 90 | 580 | 4.166667 | 0.477778 | 0.072 | 0.128 | 0.101333 | 0.341333 | 0.229333 | 0.229333 | 0.229333 | 0.229333 | 0 | 0 | 0.03272 | 0.156897 | 580 | 23 | 90 | 25.217391 | 0.734151 | 0.17931 | 0 | 0 | 0 | 0 | 0.15678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.615385 | 0.153846 | 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 |
6063b0fdb80a92b41934535bd05f1e61acf89996 | 2,015 | py | Python | SecurityController.py | juanmafn/control-horario-iti | 8446eb52faaf977fbdad05558f70d9e02439aa43 | [
"Apache-2.0"
] | null | null | null | SecurityController.py | juanmafn/control-horario-iti | 8446eb52faaf977fbdad05558f70d9e02439aa43 | [
"Apache-2.0"
] | null | null | null | SecurityController.py | juanmafn/control-horario-iti | 8446eb52faaf977fbdad05558f70d9e02439aa43 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# coding: utf8
__author__ = "Juan Manuel Fernández Nácher"
from requests.auth import HTTPBasicAuth
import requests
class SecurityController:
__instance = None
@staticmethod
def getInstance():
if SecurityController.__instance is None:
SecurityController()
... | 33.032787 | 105 | 0.656576 | 206 | 2,015 | 6.330097 | 0.296117 | 0.172546 | 0.161043 | 0.172546 | 0.367331 | 0.280675 | 0.113497 | 0.113497 | 0.113497 | 0.113497 | 0 | 0.003313 | 0.251117 | 2,015 | 60 | 106 | 33.583333 | 0.860835 | 0.016873 | 0 | 0.130435 | 0 | 0 | 0.039414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0.173913 | 0.043478 | 0.021739 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6068f8b9c76144cdba6cbb25cb059560f20c7950 | 66 | py | Python | couchbase_readme/__init__.py | thejcfactor/couchbase-python-readme | 7412b250cd62cbc1c7b74cd348df3259142511fd | [
"Apache-2.0"
] | null | null | null | couchbase_readme/__init__.py | thejcfactor/couchbase-python-readme | 7412b250cd62cbc1c7b74cd348df3259142511fd | [
"Apache-2.0"
] | null | null | null | couchbase_readme/__init__.py | thejcfactor/couchbase-python-readme | 7412b250cd62cbc1c7b74cd348df3259142511fd | [
"Apache-2.0"
] | null | null | null | # Version of couchbase-python-readme package
__version__ = "0.1.1" | 33 | 44 | 0.772727 | 10 | 66 | 4.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.106061 | 66 | 2 | 45 | 33 | 0.745763 | 0.636364 | 0 | 0 | 0 | 0 | 0.217391 | 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 |
6069dbae583241be0be12516491bd2fb326af732 | 2,476 | py | Python | tools/generate_praat_samples.py | MichaelGoodale/opensauce-python | cafad071fa1ed675b4e7177b37ed41af94b39c5f | [
"Apache-2.0"
] | 38 | 2015-02-10T08:35:50.000Z | 2022-03-15T10:56:40.000Z | tools/generate_praat_samples.py | MichaelGoodale/opensauce-python | cafad071fa1ed675b4e7177b37ed41af94b39c5f | [
"Apache-2.0"
] | 37 | 2015-09-23T00:17:07.000Z | 2022-02-24T17:52:56.000Z | tools/generate_praat_samples.py | CobiELF/opensauce-python | 03c278ca92b150188821dadfc9702ff9f939aa4e | [
"Apache-2.0"
] | 11 | 2018-08-28T06:41:41.000Z | 2022-01-21T05:07:40.000Z | # Script to generate raw Praat samples from test wav files
# The data is used for comparison in unit tests
# Licensed under Apache v2 (see LICENSE)
import sys
import os
import glob
import numpy as np
from opensauce.praat import praat_raw_pitch, praat_raw_formants
def save_samples(data, fn, col_name, sample, out_di... | 39.301587 | 79 | 0.571082 | 321 | 2,476 | 4.190031 | 0.367601 | 0.041636 | 0.035688 | 0.022305 | 0.102602 | 0.102602 | 0.040149 | 0 | 0 | 0 | 0 | 0.027812 | 0.346527 | 2,476 | 62 | 80 | 39.935484 | 0.803461 | 0.200323 | 0 | 0 | 1 | 0 | 0.041622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6074ff76122c2643f5b1555e4010168e6ecae260 | 694 | py | Python | party/autocomplete_light_registry.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | party/autocomplete_light_registry.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | 8 | 2020-03-24T17:11:49.000Z | 2022-01-13T01:18:11.000Z | party/autocomplete_light_registry.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | import autocomplete_light
from party.functions import portfolio_render_reference
from party.models import Portfolio
class PortfolioAutocomplete(autocomplete_light.AutocompleteModelBase):
choices = Portfolio.objects.filter().order_by('-ordering')
search_fields = ['title']
display_edit_link = True
fie... | 26.692308 | 90 | 0.753602 | 77 | 694 | 6.519481 | 0.493506 | 0.099602 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167147 | 694 | 25 | 91 | 27.76 | 0.868512 | 0 | 0 | 0 | 0 | 0 | 0.034632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.133333 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
607af487208ebf2b12c8a0b606ed1c87d1bd52b2 | 735 | py | Python | rocketgram/api/input_venue_message_content.py | rocketgram/rocketgram | b94d8f83e577c0618a650c113d688ef8689ac3f5 | [
"MIT"
] | 35 | 2019-09-19T22:56:22.000Z | 2022-03-12T10:49:47.000Z | rocketgram/api/input_venue_message_content.py | rocketgram/rocketgram | b94d8f83e577c0618a650c113d688ef8689ac3f5 | [
"MIT"
] | 2 | 2020-10-20T05:24:25.000Z | 2021-03-27T18:21:23.000Z | rocketgram/api/input_venue_message_content.py | rocketgram/rocketgram | b94d8f83e577c0618a650c113d688ef8689ac3f5 | [
"MIT"
] | 4 | 2020-06-26T01:12:30.000Z | 2022-01-16T13:55:47.000Z | # Copyright (C) 2015-2021 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import Optional
from .input_message_content import InputMessageContent
@dataclass(frozen=True)
class Inp... | 27.222222 | 69 | 0.75102 | 86 | 735 | 6.325581 | 0.639535 | 0.080882 | 0.110294 | 0.0625 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.172789 | 735 | 26 | 70 | 28.269231 | 0.881579 | 0.357823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
607bbe26dd68fd9d15e8491b0b0ca819b9a877a8 | 3,688 | py | Python | test/python/topology/test_types.py | markheger/streamsx.topology | 8118513146399fa6a9490a1debd8037615d7acd1 | [
"Apache-2.0"
] | 31 | 2015-06-24T06:21:14.000Z | 2020-08-28T21:45:50.000Z | test/python/topology/test_types.py | markheger/streamsx.topology | 8118513146399fa6a9490a1debd8037615d7acd1 | [
"Apache-2.0"
] | 1,203 | 2015-06-15T02:11:49.000Z | 2021-03-22T09:47:54.000Z | test/python/topology/test_types.py | markheger/streamsx.topology | 8118513146399fa6a9490a1debd8037615d7acd1 | [
"Apache-2.0"
] | 53 | 2015-05-28T21:14:16.000Z | 2021-12-23T12:58:59.000Z | # Licensed Materials - Property of IBM
# Copyright IBM Corp. 2016
import unittest
import sys
import dill
import pickle
import datetime
import time
import random
from streamsx.spl.types import Timestamp
from streamsx.topology import schema
class TestTypes(unittest.TestCase):
def test_Timestamp(self):
s = rand... | 30.479339 | 65 | 0.663232 | 483 | 3,688 | 5.020704 | 0.217391 | 0.247423 | 0.077113 | 0.057732 | 0.282887 | 0.181443 | 0.171546 | 0.136907 | 0.136907 | 0.101443 | 0 | 0.075335 | 0.211768 | 3,688 | 120 | 66 | 30.733333 | 0.758858 | 0.035792 | 0 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.531915 | 1 | 0.074468 | false | 0 | 0.095745 | 0 | 0.180851 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
607dcd9a637122c323880d5537bfbc376d5285a2 | 1,568 | py | Python | antipetros_discordbot/utility/enums.py | Preen1/Antipetros_Discord_Bot | 25143f09faf7abede35dee5672a7402595680e9b | [
"MIT"
] | null | null | null | antipetros_discordbot/utility/enums.py | Preen1/Antipetros_Discord_Bot | 25143f09faf7abede35dee5672a7402595680e9b | [
"MIT"
] | null | null | null | antipetros_discordbot/utility/enums.py | Preen1/Antipetros_Discord_Bot | 25143f09faf7abede35dee5672a7402595680e9b | [
"MIT"
] | null | null | null | # region [Imports]
# * Standard Library Imports -->
from enum import Enum, Flag, auto
# endregion[Imports]
class RequestStatus(Enum):
Ok = 200
NotFound = 404
NotAuthorized = 401
class WatermarkPosition(Flag):
Top = auto()
Bottom = auto()
Left = auto()
Right = auto()
Center = auto()... | 30.153846 | 78 | 0.607781 | 143 | 1,568 | 6.594406 | 0.41958 | 0.146341 | 0.212089 | 0.097561 | 0.133616 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032997 | 0.304209 | 1,568 | 51 | 79 | 30.745098 | 0.831347 | 0.042092 | 0 | 0 | 0 | 0 | 0.00534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0 | 0.638889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
607ed6b49fd5faa8b880535cd9e2296fedcaefcb | 3,564 | py | Python | scripts/models.py | SkewedAspect/precursors-server | 0a15c5d14faa59a57082cdcd5639429cc56c082c | [
"MIT"
] | 5 | 2015-04-17T07:43:23.000Z | 2020-09-24T21:44:47.000Z | scripts/models.py | SkewedAspect/precursors-server | 0a15c5d14faa59a57082cdcd5639429cc56c082c | [
"MIT"
] | null | null | null | scripts/models.py | SkewedAspect/precursors-server | 0a15c5d14faa59a57082cdcd5639429cc56c082c | [
"MIT"
] | null | null | null | import rkit
from rkit import models
#TODO: Move out into some other file. Settings?
#rkit.connect("localhost", 8081)
class Game(models.Model):
name = models.StringField(required=True)
class Entity(models.Model):
type = models.StringField(choices=["ship", "other"], default="other")
name = models.StringFi... | 37.914894 | 144 | 0.739899 | 418 | 3,564 | 6.212919 | 0.217703 | 0.138621 | 0.084713 | 0.103966 | 0.525606 | 0.446284 | 0.386985 | 0.282249 | 0.168656 | 0.149403 | 0 | 0.005825 | 0.132997 | 3,564 | 93 | 145 | 38.322581 | 0.834628 | 0.036195 | 0 | 0.067797 | 0 | 0 | 0.072595 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.016949 | false | 0 | 0.033898 | 0.016949 | 0.983051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6088160b88a564267f30076f46a3a0bfc40e702b | 4,687 | py | Python | ldap_peoples/hash_functions.py | fx74/django-ldap-academia-ou-manager | c5bffa963e389f970e1a8e257fe107ebbc201b54 | [
"BSD-2-Clause"
] | 16 | 2019-01-13T10:37:20.000Z | 2021-11-25T09:51:19.000Z | ldap_peoples/hash_functions.py | fx74/django-ldap-academia-ou-manager | c5bffa963e389f970e1a8e257fe107ebbc201b54 | [
"BSD-2-Clause"
] | 1 | 2019-04-02T14:26:35.000Z | 2019-04-02T14:26:35.000Z | ldap_peoples/hash_functions.py | fx74/django-ldap-academia-ou-manager | c5bffa963e389f970e1a8e257fe107ebbc201b54 | [
"BSD-2-Clause"
] | 4 | 2019-01-17T14:50:33.000Z | 2020-12-03T11:47:05.000Z | import crypt
from base64 import encodestring
try:
from django.conf import settings
_CHARSET = settings.DEFAULT_CHARSET
_LDAP_SALT_LENGHT = settings.LDAP_PASSWORD_SALT_SIZE
except:
_CHARSET = 'utf-8'
_LDAP_SALT_LENGHT = 8
from hashlib import (sha1,
sha256,
s... | 40.756522 | 97 | 0.614892 | 539 | 4,687 | 5.059369 | 0.19295 | 0.225523 | 0.051338 | 0.077008 | 0.599927 | 0.56399 | 0.518885 | 0.507151 | 0.46388 | 0.448478 | 0 | 0.028746 | 0.265202 | 4,687 | 114 | 98 | 41.114035 | 0.763066 | 0.047152 | 0 | 0.316832 | 0 | 0 | 0.047941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019802 | false | 0.326733 | 0.059406 | 0 | 0.09901 | 0.019802 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
608ac2dc8c32bbc12b8f0330342bb38d8fdc4366 | 849 | py | Python | tests/fixtures/defxmlschema/chapter13/example13101.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/fixtures/defxmlschema/chapter13/example13101.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/fixtures/defxmlschema/chapter13/example13101.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
@dataclass
class ItemType:
"""
:ivar id:
:ivar lang:
"""
id: Optional[str] = field(
default=None,
metadata=dict(
type="Attribute",
required=True
)
)
lang: Optional[str] = fi... | 18.456522 | 60 | 0.51119 | 78 | 849 | 5.538462 | 0.423077 | 0.101852 | 0.148148 | 0.212963 | 0.469907 | 0.469907 | 0.469907 | 0.37963 | 0.37963 | 0.259259 | 0 | 0.009346 | 0.369847 | 849 | 45 | 61 | 18.866667 | 0.798131 | 0.057715 | 0 | 0.484848 | 0 | 0 | 0.103811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.060606 | 0 | 0.242424 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
608d5db7720f1303afc78cb89898768d67a2329d | 398 | py | Python | colour_segmentation/base/exceptions/FuzzyPaletteInvalidRepresentation.py | mmunar97/colour-segmentation | 3a7f19e043bd3a8aebb67ae3a181d19011678986 | [
"MIT"
] | null | null | null | colour_segmentation/base/exceptions/FuzzyPaletteInvalidRepresentation.py | mmunar97/colour-segmentation | 3a7f19e043bd3a8aebb67ae3a181d19011678986 | [
"MIT"
] | null | null | null | colour_segmentation/base/exceptions/FuzzyPaletteInvalidRepresentation.py | mmunar97/colour-segmentation | 3a7f19e043bd3a8aebb67ae3a181d19011678986 | [
"MIT"
] | null | null | null | class FuzzyPaletteInvalidRepresentation(Exception):
"""
An Exception indicating that not enough classes have been provided to represent the fuzzy sets.
"""
def __init__(self, provided_labels: int, needed_labels: int):
super().__init__(f"{needed_labels} labels are needed to represent the selecte... | 44.222222 | 99 | 0.69598 | 46 | 398 | 5.76087 | 0.630435 | 0.083019 | 0.10566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223618 | 398 | 8 | 100 | 49.75 | 0.857605 | 0.238693 | 0 | 0 | 0 | 0 | 0.362369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60945bf5058fc7295019e4204cd54021208f43f2 | 217 | py | Python | telegram_rss/feed/__init__.py | pentatester/telegram-rss | de96efde83fa62abb112e9a37945f6e065e541d3 | [
"MIT"
] | 8 | 2021-02-01T15:19:31.000Z | 2021-05-30T17:11:14.000Z | telegram_rss/feed/__init__.py | pentatester/telegram-rss | de96efde83fa62abb112e9a37945f6e065e541d3 | [
"MIT"
] | 5 | 2021-02-01T09:28:33.000Z | 2022-03-07T23:24:03.000Z | telegram_rss/feed/__init__.py | pentatester/telegram-rss | de96efde83fa62abb112e9a37945f6e065e541d3 | [
"MIT"
] | 3 | 2021-02-10T17:45:39.000Z | 2021-04-18T14:22:31.000Z | from .img import Img
from .entry import Entry
from .channel import Channel
from .feed import Feed
from .updater import FeedUpdater
__all__ = [
"Img",
"Entry",
"Channel",
"Feed",
"FeedUpdater",
]
| 14.466667 | 32 | 0.658986 | 26 | 217 | 5.346154 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235023 | 217 | 14 | 33 | 15.5 | 0.837349 | 0 | 0 | 0 | 0 | 0 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 |
60b71cbb9f7d313edc1ee22cd6095a825651a318 | 1,484 | py | Python | claripy/claripy/frontend_mixins/constraint_deduplicator_mixin.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | claripy/claripy/frontend_mixins/constraint_deduplicator_mixin.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | claripy/claripy/frontend_mixins/constraint_deduplicator_mixin.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | class ConstraintDeduplicatorMixin(object):
def __init__(self, *args, **kwargs):
super(ConstraintDeduplicatorMixin, self).__init__(*args, **kwargs)
self._constraint_hashes = set()
def _blank_copy(self, c):
super(ConstraintDeduplicatorMixin, self)._blank_copy(c)
c._constraint_hash... | 36.195122 | 96 | 0.679919 | 162 | 1,484 | 5.969136 | 0.314815 | 0.16546 | 0.2606 | 0.053775 | 0.246122 | 0.246122 | 0.101344 | 0.101344 | 0.101344 | 0 | 0 | 0.000867 | 0.223046 | 1,484 | 40 | 97 | 37.1 | 0.837814 | 0.09097 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0 | 0.038462 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60b851b9b6fa0eb880f99cdeb1425c8de32d8d3f | 4,756 | py | Python | a10_neutron_lbaas/neutron_ext/services/a10_certificate/plugin.py | hthompson6/a10-neutron-lbaas | f1639758cd3abcc6c86c8e6b64dcb0397c359621 | [
"Apache-2.0"
] | 10 | 2015-09-15T05:16:15.000Z | 2020-03-18T02:34:39.000Z | a10_neutron_lbaas/neutron_ext/services/a10_certificate/plugin.py | hthompson6/a10-neutron-lbaas | f1639758cd3abcc6c86c8e6b64dcb0397c359621 | [
"Apache-2.0"
] | 334 | 2015-02-11T23:45:00.000Z | 2020-02-28T08:58:51.000Z | a10_neutron_lbaas/neutron_ext/services/a10_certificate/plugin.py | hthompson6/a10-neutron-lbaas | f1639758cd3abcc6c86c8e6b64dcb0397c359621 | [
"Apache-2.0"
] | 24 | 2015-01-13T21:14:45.000Z | 2021-06-02T17:22:14.000Z | # Copyright (C) 2016, A10 Networks Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 46.627451 | 97 | 0.679563 | 528 | 4,756 | 5.869318 | 0.278409 | 0.144563 | 0.115198 | 0.090352 | 0.41949 | 0.367215 | 0.273314 | 0.126815 | 0.126815 | 0.123266 | 0 | 0.031347 | 0.255467 | 4,756 | 101 | 98 | 47.089109 | 0.843829 | 0.210892 | 0 | 0.068966 | 0 | 0 | 0.010724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.017241 | 0.086207 | 0.12069 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
60bf09100b125ccbd42a5784558b7bae64d7eb73 | 208 | py | Python | daily/5.py | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | daily/5.py | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | daily/5.py | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | def cons(a, b):
def pair(f):
return f(a, b)
return pair
def car(p):
return p(lambda x, y: x)
def cdr(p):
return p(lambda x, y: y)
print car(cons("a", "b"))
print cdr(cons("a", "b")) | 16 | 28 | 0.528846 | 41 | 208 | 2.682927 | 0.341463 | 0.072727 | 0.163636 | 0.254545 | 0.290909 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 208 | 13 | 29 | 16 | 0.723684 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 |
60ddc2f5f174092b010d05830fdc98fca8db5fec | 1,081 | py | Python | termtris/interface.py | BobWhitelock/termtris | a9cb5c9c34a8280c68a0ebbf3f273ad83ee7345d | [
"MIT"
] | null | null | null | termtris/interface.py | BobWhitelock/termtris | a9cb5c9c34a8280c68a0ebbf3f273ad83ee7345d | [
"MIT"
] | null | null | null | termtris/interface.py | BobWhitelock/termtris | a9cb5c9c34a8280c68a0ebbf3f273ad83ee7345d | [
"MIT"
] | null | null | null | import curses
import config
from debug import debug
class CursesGraphics:
def __init__(self, stdscr):
curses.curs_set(0) # make cursor invisible
stdscr.nodelay(1) # make reading input with getch() non-blocking
self.stdscr = stdscr
def set_point(self, x, y, symbol):
self.stdsc... | 25.139535 | 83 | 0.563367 | 136 | 1,081 | 4.382353 | 0.382353 | 0.100671 | 0.040268 | 0.050336 | 0.154362 | 0.077181 | 0.077181 | 0 | 0 | 0 | 0 | 0.013441 | 0.311748 | 1,081 | 43 | 84 | 25.139535 | 0.787634 | 0.164662 | 0 | 0.266667 | 0 | 0 | 0.057906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.066667 | 0.1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
60eb6500f0b7e9a2d1164714dcb28cd25ee65da9 | 196 | py | Python | const.py | bluevariant/alphazero-caro | 7694d316a2f8b3878633662c1da98942b2d1dea0 | [
"MIT"
] | null | null | null | const.py | bluevariant/alphazero-caro | 7694d316a2f8b3878633662c1da98942b2d1dea0 | [
"MIT"
] | null | null | null | const.py | bluevariant/alphazero-caro | 7694d316a2f8b3878633662c1da98942b2d1dea0 | [
"MIT"
] | null | null | null | class Const:
board_width = 19
board_height = 19
n_in_row = 5 # n to win!
train_core = "keras"
check_freq = 10 # auto save current model
check_freq_best = 500 # auto save best model
| 24.5 | 47 | 0.683673 | 33 | 196 | 3.818182 | 0.727273 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068027 | 0.25 | 196 | 7 | 48 | 28 | 0.789116 | 0.27551 | 0 | 0 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
60f21c14e00020e97015428650c5a214569c2622 | 3,333 | py | Python | cloudmesh/management/test_user.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | cloudmesh/management/test_user.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | 4 | 2021-06-08T20:20:08.000Z | 2022-03-11T23:30:22.000Z | cloudmesh/management/test_user.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | from user import User, Users
import mongoengine
from cloudmeshobject import order, make_form_list
def main():
# users = Users()
# users.clear()
gregor = User(
title="",
firstname="Hallo",
lastname="von Laszewski",
email="laszewski@gmail.com",
username="gregvon",
... | 24.688889 | 77 | 0.580858 | 344 | 3,333 | 5.511628 | 0.299419 | 0.033228 | 0.044304 | 0.035865 | 0.459388 | 0.378692 | 0.378692 | 0.317511 | 0.317511 | 0.317511 | 0 | 0.020903 | 0.282328 | 3,333 | 134 | 78 | 24.873134 | 0.771739 | 0.008701 | 0 | 0.12 | 0 | 0 | 0.169437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.1 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
60fe124e21c115050b0cc11cdd75370b7d21e73e | 847 | py | Python | lib/codegen/meta-python/build.py | froydnj/cretonne | 3cfe087f6b31144471b6ee2bb2a287bc258cea5b | [
"Apache-2.0"
] | null | null | null | lib/codegen/meta-python/build.py | froydnj/cretonne | 3cfe087f6b31144471b6ee2bb2a287bc258cea5b | [
"Apache-2.0"
] | null | null | null | lib/codegen/meta-python/build.py | froydnj/cretonne | 3cfe087f6b31144471b6ee2bb2a287bc258cea5b | [
"Apache-2.0"
] | null | null | null | # Second-level build script.
#
# This script is run from lib/codegen/build.rs to generate Rust files.
from __future__ import absolute_import
import argparse
import isa
import gen_instr
import gen_settings
import gen_build_deps
import gen_encoding
import gen_legalizer
import gen_binemit
def main():
# type: () -> ... | 22.891892 | 70 | 0.729634 | 117 | 847 | 4.965812 | 0.435897 | 0.082616 | 0.129088 | 0.154905 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178276 | 847 | 36 | 71 | 23.527778 | 0.83477 | 0.132231 | 0 | 0 | 1 | 0 | 0.093151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
880bf5f0d30bd7ff61ee959d4a62c873b9f47190 | 3,685 | py | Python | OracleSOASuite/kubernetes/monitoring-service/scripts/deploy-weblogic-monitoring-exporter.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | 20 | 2020-09-18T08:28:06.000Z | 2021-11-04T11:48:53.000Z | OracleSOASuite/kubernetes/monitoring-service/scripts/deploy-weblogic-monitoring-exporter.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | 17 | 2020-10-29T03:52:52.000Z | 2022-03-29T06:47:05.000Z | OracleSOASuite/kubernetes/monitoring-service/scripts/deploy-weblogic-monitoring-exporter.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | 27 | 2020-04-30T09:06:37.000Z | 2022-03-29T06:49:06.000Z | # Copyright (c) 2021, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
import sys
#=======================================================
# Function for fresh plain deployment
#=====================================================... | 35.095238 | 139 | 0.662144 | 376 | 3,685 | 6.489362 | 0.284574 | 0.063115 | 0.062295 | 0.051639 | 0.205328 | 0.205328 | 0.20082 | 0.07541 | 0.07541 | 0.07541 | 0 | 0.012068 | 0.167978 | 3,685 | 104 | 140 | 35.432692 | 0.783757 | 0.318046 | 0 | 0.164179 | 0 | 0.014925 | 0.307785 | 0.115169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.074627 | 0.014925 | null | null | 0.059701 | 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 |
881115cf6f920728f37f04947fb9ce5c2895fb31 | 321 | py | Python | startup/20-diagon.py | mrakitin/profile_collection-six | 20e41632b9898ac83a8e60fcca9b8aeaaa91f0ad | [
"BSD-3-Clause"
] | null | null | null | startup/20-diagon.py | mrakitin/profile_collection-six | 20e41632b9898ac83a8e60fcca9b8aeaaa91f0ad | [
"BSD-3-Clause"
] | 30 | 2017-05-18T19:11:24.000Z | 2021-06-23T16:59:26.000Z | startup/20-diagon.py | mrakitin/profile_collection-six | 20e41632b9898ac83a8e60fcca9b8aeaaa91f0ad | [
"BSD-3-Clause"
] | 3 | 2018-01-10T17:16:47.000Z | 2020-03-12T14:51:36.000Z | from ophyd import Device, EpicsMotor
from ophyd import Component as Cpt
class DIAGON(Device):
hml = Cpt(EpicsMotor, '_HLPM}Mtr')
hyag = Cpt(EpicsMotor, '_HLPF}Mtr')
vml = Cpt(EpicsMotor, '_VLPM}Mtr')
vyag = Cpt(EpicsMotor, '_VLPF}Mtr')
diagon = DIAGON('XF:02IDA-OP{Diag:1-Ax:3', name='diagon')... | 26.75 | 57 | 0.666667 | 45 | 321 | 4.666667 | 0.6 | 0.247619 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015326 | 0.186916 | 321 | 11 | 58 | 29.181818 | 0.789272 | 0 | 0 | 0 | 0 | 0 | 0.202492 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
714a038d78b5811f19d121e3701fb114835756fb | 4,663 | py | Python | yokome/language/_lang.py | julianbetz/Yokome | 4e2f077cc6835a7719940e760cc351f47159bc36 | [
"Apache-2.0"
] | 1 | 2020-08-07T03:32:15.000Z | 2020-08-07T03:32:15.000Z | yokome/language/_lang.py | julianbetz/Yokome | 4e2f077cc6835a7719940e760cc351f47159bc36 | [
"Apache-2.0"
] | 11 | 2020-01-28T22:15:01.000Z | 2022-02-10T00:29:58.000Z | yokome/language/_lang.py | julianbetz/Yokome | 4e2f077cc6835a7719940e760cc351f47159bc36 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Julian Betz
#
# 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 l... | 31.295302 | 88 | 0.62063 | 563 | 4,663 | 5.062167 | 0.362345 | 0.021053 | 0.025263 | 0.025263 | 0.178246 | 0.178246 | 0.178246 | 0.151579 | 0.151579 | 0.151579 | 0 | 0.003991 | 0.301523 | 4,663 | 148 | 89 | 31.506757 | 0.871047 | 0.651297 | 0 | 0.147059 | 0 | 0 | 0.032314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0 | 0.058824 | 0.558824 | 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 |
7163305b37436586d6c129690e6e4f65719501d3 | 283 | py | Python | backend/app/plugin/__init__.py | MU-Software/dodoco | c81d3a31b8024a734097fd8ac395747d5a721bc8 | [
"MIT"
] | null | null | null | backend/app/plugin/__init__.py | MU-Software/dodoco | c81d3a31b8024a734097fd8ac395747d5a721bc8 | [
"MIT"
] | null | null | null | backend/app/plugin/__init__.py | MU-Software/dodoco | c81d3a31b8024a734097fd8ac395747d5a721bc8 | [
"MIT"
] | null | null | null | # Add custom plugins here.
# If you want to make git not to track this file anymore,
# use `git update-index --skip-worktree app/plugin/__init__.py`
import flask
import app.plugin.ddc_docker as ddc_plugin_docker
def init_app(app: flask.Flask):
ddc_plugin_docker.init_app(app)
| 25.727273 | 63 | 0.770318 | 49 | 283 | 4.22449 | 0.612245 | 0.086957 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144876 | 283 | 10 | 64 | 28.3 | 0.855372 | 0.501767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
7168374a85f91dff7306e54c08e6cfc79fd0daaa | 3,403 | py | Python | scripts/utils.py | wnstlr/influence-release | a305c4b9b63f641aeabb5a208667c01c15571e6b | [
"MIT"
] | 63 | 2019-02-26T20:15:58.000Z | 2022-03-24T15:59:02.000Z | scripts/utils.py | wnstlr/influence-release | a305c4b9b63f641aeabb5a208667c01c15571e6b | [
"MIT"
] | 4 | 2019-04-25T18:30:58.000Z | 2021-09-09T22:05:42.000Z | scripts/utils.py | wnstlr/influence-release | a305c4b9b63f641aeabb5a208667c01c15571e6b | [
"MIT"
] | 17 | 2019-04-15T06:39:32.000Z | 2021-05-20T03:25:30.000Z |
import cv2
import numpy as np
from keras.datasets import cifar10
from keras import backend as K
from keras.utils import np_utils
nb_train_samples = 50000 # 3000 training samples
nb_valid_samples = 10000 # 100 validation samples
num_classes = 10
def load_cifar10_data(img_rows, img_cols, start=None, end=None, what_da... | 53.171875 | 152 | 0.650015 | 543 | 3,403 | 3.81768 | 0.13628 | 0.050651 | 0.072359 | 0.101302 | 0.743367 | 0.726001 | 0.688374 | 0.680656 | 0.616015 | 0.616015 | 0 | 0.03125 | 0.200705 | 3,403 | 63 | 153 | 54.015873 | 0.730882 | 0.083162 | 0 | 0.534884 | 0 | 0 | 0.009977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0.023256 | 0.209302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71715df2a271b5e1a44230a34f1cd4606557381e | 1,909 | py | Python | recipes/Python/578637_Wigle_wifi/recipe-578637.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/578637_Wigle_wifi/recipe-578637.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/578637_Wigle_wifi/recipe-578637.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from uuid import getnode
import re
import requests
class WigleAgent():
def __init__(self, username, password):
self.agent(username, password)
self.mac_address()
def get_lat_lng(self, mac_address=None):
if mac_address == None:
mac_address = self.mac_address
... | 32.355932 | 83 | 0.565741 | 225 | 1,909 | 4.586667 | 0.351111 | 0.125969 | 0.067829 | 0.046512 | 0.162791 | 0.071705 | 0.071705 | 0 | 0 | 0 | 0 | 0.018045 | 0.3033 | 1,909 | 58 | 84 | 32.913793 | 0.757895 | 0 | 0 | 0 | 0 | 0 | 0.13934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.086957 | 0.065217 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
717353cd8baeeca7f83f887e8d10d4926736df0d | 599 | py | Python | ws/createWrktFromSheet.py | mbromberek/ProcessWorkout | 76b33154d06ef4db04b38a2d3276de9f70954724 | [
"BSD-3-Clause"
] | 1 | 2019-12-03T11:41:02.000Z | 2019-12-03T11:41:02.000Z | ws/createWrktFromSheet.py | mbromberek/ProcessWorkout | 76b33154d06ef4db04b38a2d3276de9f70954724 | [
"BSD-3-Clause"
] | 5 | 2019-11-26T11:58:36.000Z | 2021-08-19T12:24:56.000Z | ws/createWrktFromSheet.py | mbromberek/ProcessWorkout | 76b33154d06ef4db04b38a2d3276de9f70954724 | [
"BSD-3-Clause"
] | null | null | null | #! /Users/mikeyb/Applications/python3
# -*- coding: utf-8 -*-
'''
BSD 3-Clause License
Copyright (c) 2020, Mike Bromberek
All rights reserved.
'''
# First party classes
import os, sys
import logging
import logging.config
import requests
import configparser
# Custom classes
from ExerciseInfo_Class import ExerciseInf... | 18.151515 | 76 | 0.691152 | 75 | 599 | 5.493333 | 0.706667 | 0.063107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.185309 | 599 | 32 | 77 | 18.71875 | 0.827869 | 0.310518 | 0 | 0 | 0 | 0 | 0.092269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7186400dda9e358adbae443386aa0a831796176c | 1,096 | py | Python | users/migrations/0017_auto_20200712_1559.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 496 | 2020-04-24T04:20:32.000Z | 2022-03-31T21:55:57.000Z | users/migrations/0017_auto_20200712_1559.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 642 | 2020-04-24T11:54:13.000Z | 2022-03-26T15:41:06.000Z | users/migrations/0017_auto_20200712_1559.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 243 | 2020-04-24T11:49:11.000Z | 2022-03-24T18:38:48.000Z | # Generated by Django 3.0.4 on 2020-07-12 15:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0016_auto_20200712_1557'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
... | 29.621622 | 103 | 0.531022 | 97 | 1,096 | 5.835052 | 0.690722 | 0.084806 | 0.095406 | 0.091873 | 0.102474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071629 | 0.350365 | 1,096 | 36 | 104 | 30.444444 | 0.723315 | 0.041058 | 0 | 0.2 | 1 | 0 | 0.602479 | 0.173499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.133333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
718baa53359eacf1a188c7841ce8073230054316 | 159 | py | Python | pyqmc/__init__.py | maximegodin/pyqmc | 890faac8a8157fa568bbbdee76b2c856d8bd5b5f | [
"MIT"
] | null | null | null | pyqmc/__init__.py | maximegodin/pyqmc | 890faac8a8157fa568bbbdee76b2c856d8bd5b5f | [
"MIT"
] | null | null | null | pyqmc/__init__.py | maximegodin/pyqmc | 890faac8a8157fa568bbbdee76b2c856d8bd5b5f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for pyqmc."""
__author__ = """Maxime Godin"""
__email__ = 'maximegodin@polytechnique.org'
__version__ = '0.1.0'
| 19.875 | 43 | 0.654088 | 19 | 159 | 4.842105 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.132075 | 159 | 7 | 44 | 22.714286 | 0.637681 | 0.320755 | 0 | 0 | 0 | 0 | 0.45098 | 0.284314 | 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 |
718f2c063abb5fa04909fcd13c4b852f585c6817 | 283 | py | Python | computer_science/algorithms/recursion/fibonacci/fibonacci.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | computer_science/algorithms/recursion/fibonacci/fibonacci.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | computer_science/algorithms/recursion/fibonacci/fibonacci.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | # Fibonacci Sequence: 0 1 1 2 3 5 8 13 ...
def fibonacci(num):
if num == 1:
return 0
if num == 2:
return 1
return fibonacci(num-1) + fibonacci(num-2)
print(fibonacci(1))
print(fibonacci(2))
print(fibonacci(3))
print(fibonacci(4))
print(fibonacci(5))
| 15.722222 | 46 | 0.614841 | 45 | 283 | 3.866667 | 0.333333 | 0.402299 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.240283 | 283 | 17 | 47 | 16.647059 | 0.716279 | 0.141343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0.454545 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
71a97c88305660ddf201d243233628affc769e98 | 6,633 | py | Python | fastai/distributed.py | thepooons/fastai | a790b37d1695ca0b1b2e027ad839d9f53af07bb4 | [
"Apache-2.0"
] | null | null | null | fastai/distributed.py | thepooons/fastai | a790b37d1695ca0b1b2e027ad839d9f53af07bb4 | [
"Apache-2.0"
] | null | null | null | fastai/distributed.py | thepooons/fastai | a790b37d1695ca0b1b2e027ad839d9f53af07bb4 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/20a_distributed.ipynb (unless otherwise specified).
__all__ = ['ParallelTrainer', 'setup_distrib', 'teardown_distrib', 'DistributedDL', 'DistributedTrainer', 'rank0_first']
# Cell
from .basics import *
from .callback.progress import ProgressCallback
from torch.nn.parall... | 37.055866 | 129 | 0.700437 | 948 | 6,633 | 4.71097 | 0.226793 | 0.028213 | 0.021944 | 0.015674 | 0.225705 | 0.143977 | 0.09785 | 0.075459 | 0.075459 | 0.056202 | 0 | 0.003528 | 0.187999 | 6,633 | 179 | 130 | 37.055866 | 0.825659 | 0.115785 | 0 | 0.19697 | 1 | 0 | 0.088278 | 0.003557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.030303 | 0.007576 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71adfc7c042e1fc62090f74221b948cc0b44e5dc | 164 | py | Python | week06/lecture/examples/12_agree.py | uldash/CS50x | c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1 | [
"MIT"
] | null | null | null | week06/lecture/examples/12_agree.py | uldash/CS50x | c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1 | [
"MIT"
] | null | null | null | week06/lecture/examples/12_agree.py | uldash/CS50x | c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1 | [
"MIT"
] | null | null | null | from cs50 import get_string
s = get_string("Do you agree? ")
if s.lower() in {"y", "yes"}:
print("Agreed.")
elif s == "N" or s == "n":
print("Not agreed") | 20.5 | 32 | 0.573171 | 28 | 164 | 3.285714 | 0.714286 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.213415 | 164 | 8 | 33 | 20.5 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0.224242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
71b304d7ca0bd0f43b7da6d2eeea6319b38d50cc | 229 | py | Python | Back-End/Python/Basics/Part -1 - Functional/07 - Tuples as Data Records/07_NT_docstring.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 25 | 2021-04-28T02:51:26.000Z | 2022-03-24T13:58:04.000Z | Back-End/Python/Basics/Part -1 - Functional/07 - Tuples as Data Records/07_NT_docstring.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 1 | 2022-03-03T23:33:41.000Z | 2022-03-03T23:35:41.000Z | Back-End/Python/Basics/Part -1 - Functional/07 - Tuples as Data Records/07_NT_docstring.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 15 | 2021-05-30T01:35:20.000Z | 2022-03-25T12:38:25.000Z | from collections import namedtuple
Point2D = namedtuple('Point2D', 'x y')
Point2D.__doc__ = 'Represents a 2D Cartesian coordinate'
Point2D.x.__doc__ = 'x-coordinate'
Point2D.y.__doc__ = 'y-coordinate'
print(help(help(Point2D))) | 28.625 | 56 | 0.764192 | 30 | 229 | 5.433333 | 0.5 | 0.208589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034146 | 0.104803 | 229 | 8 | 57 | 28.625 | 0.760976 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
71b4db37e0764e3779a29a918e6d996626c05199 | 1,611 | py | Python | py_reportit/shared/model/crawl.py | fedus/py_reportit | 46422cabb652571d8cce6c8e91a229009dcca141 | [
"MIT"
] | 1 | 2021-12-05T19:16:16.000Z | 2021-12-05T19:16:16.000Z | py_reportit/shared/model/crawl.py | fedus/py_reportit | 46422cabb652571d8cce6c8e91a229009dcca141 | [
"MIT"
] | null | null | null | py_reportit/shared/model/crawl.py | fedus/py_reportit | 46422cabb652571d8cce6c8e91a229009dcca141 | [
"MIT"
] | null | null | null | from sqlalchemy.orm import relationship
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy import Column, Integer, Numeric, Unicode, select, not_, exists
from py_reportit.shared.model.orm_base import Base
from py_reportit.shared.model.crawl_item import CrawlItem, CrawlItemState
from py_reportit.shared.u... | 44.75 | 151 | 0.751086 | 207 | 1,611 | 5.690821 | 0.362319 | 0.080645 | 0.110357 | 0.050934 | 0.171477 | 0.129032 | 0.129032 | 0.129032 | 0.129032 | 0.129032 | 0 | 0.004326 | 0.139044 | 1,611 | 36 | 151 | 44.75 | 0.844989 | 0.05959 | 0 | 0.076923 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.846154 | 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 |
71bb470f1612faec7acff60fde8aa95ccec44422 | 307 | py | Python | day2/fizzbuzz.py | 3th3l/bootcamp-8-nbo | 2cd167a40abb4bdac439fe215e1139ff7975ea62 | [
"MIT"
] | null | null | null | day2/fizzbuzz.py | 3th3l/bootcamp-8-nbo | 2cd167a40abb4bdac439fe215e1139ff7975ea62 | [
"MIT"
] | null | null | null | day2/fizzbuzz.py | 3th3l/bootcamp-8-nbo | 2cd167a40abb4bdac439fe215e1139ff7975ea62 | [
"MIT"
] | null | null | null | def fizz_buzz(n):
""" return fizz when divisible by 3
return buzz when n is divisible by 5
return fizzbuzz when n is divisible by both 3 and 5
"""
if n % 15 == 0:
return 'FizzBuzz'
elif n % 3 == 0:
return 'Fizz'
elif n % 5 == 0:
return 'Buzz'
else:
return n
| 19.1875 | 52 | 0.566775 | 50 | 307 | 3.46 | 0.38 | 0.190751 | 0.080925 | 0.184971 | 0.208092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054455 | 0.34202 | 307 | 15 | 53 | 20.466667 | 0.80198 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71c32c04a8def2d3db9f534eb035872e3fcea078 | 2,192 | py | Python | PeopleApp/migrations/0018_auto_20170714_1526.py | kshitij1234/Chemisty-Department-Website | 44848fe213aa47e8c02ca612f81c2b49a28b09d1 | [
"MIT"
] | null | null | null | PeopleApp/migrations/0018_auto_20170714_1526.py | kshitij1234/Chemisty-Department-Website | 44848fe213aa47e8c02ca612f81c2b49a28b09d1 | [
"MIT"
] | null | null | null | PeopleApp/migrations/0018_auto_20170714_1526.py | kshitij1234/Chemisty-Department-Website | 44848fe213aa47e8c02ca612f81c2b49a28b09d1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-14 15:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('PeopleApp', '0017_faculty_list_position'),
]
operations = [
migrations.AddF... | 30.873239 | 74 | 0.559763 | 205 | 2,192 | 5.839024 | 0.317073 | 0.082707 | 0.147034 | 0.183793 | 0.666667 | 0.666667 | 0.603175 | 0.508772 | 0.392648 | 0.392648 | 0 | 0.019476 | 0.320712 | 2,192 | 70 | 75 | 31.314286 | 0.784419 | 0.031022 | 0 | 0.634921 | 1 | 0 | 0.126827 | 0.034418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.079365 | 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 |
71c5343c544a90313ad7d9c5999119a95a48096e | 1,453 | py | Python | critiquebrainz/frontend/forms/rate.py | code-master5/critiquebrainz | a231ef27923f54f8c3abb0c368e871215423546e | [
"Apache-2.0"
] | 70 | 2015-03-10T00:08:21.000Z | 2022-02-20T05:36:53.000Z | critiquebrainz/frontend/forms/rate.py | code-master5/critiquebrainz | a231ef27923f54f8c3abb0c368e871215423546e | [
"Apache-2.0"
] | 279 | 2015-12-08T14:10:45.000Z | 2022-03-29T13:54:23.000Z | critiquebrainz/frontend/forms/rate.py | code-master5/critiquebrainz | a231ef27923f54f8c3abb0c368e871215423546e | [
"Apache-2.0"
] | 95 | 2015-03-12T21:39:42.000Z | 2022-03-10T00:51:04.000Z | # critiquebrainz - Repository for Creative Commons licensed reviews
#
# Copyright (C) 2018 MetaBrainz Foundation Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | 42.735294 | 120 | 0.764625 | 201 | 1,453 | 5.422886 | 0.562189 | 0.029358 | 0.03578 | 0.052294 | 0.075229 | 0.051376 | 0 | 0 | 0 | 0 | 0 | 0.013126 | 0.161046 | 1,453 | 33 | 121 | 44.030303 | 0.88105 | 0.543014 | 0 | 0 | 0 | 0 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
71cd34e67952ead5e1d22a2354c37df720d8143f | 511 | py | Python | basic/demo_time.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 485 | 2019-03-18T10:53:59.000Z | 2022-03-27T09:02:08.000Z | basic/demo_time.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 110 | 2019-04-04T09:07:39.000Z | 2022-03-03T08:08:19.000Z | basic/demo_time.py | 708yamaguchi/MaixPy_scripts | 5f1774e739fb7eecab344d619c0cd63a71ff3d4f | [
"MIT"
] | 379 | 2019-03-18T04:48:46.000Z | 2022-03-30T00:29:29.000Z | import time
import machine
print(time.time())
t1 = time.localtime(546450051)
print('t1', t1)
t2 = time.mktime(t1)
print('t2', t2)
print(time.time())
time.set_time(t1)
print(time.time())
time.sleep(1)
print(time.localtime(time.time()))
'''
raw REPL; CTRL-B to exit
>OK
74
t1 (2017, 4, 25, 15, 40, 51, 1, 115)
t2 5464500... | 17.033333 | 83 | 0.682975 | 89 | 511 | 3.898876 | 0.550562 | 0.138329 | 0.112392 | 0.097983 | 0.063401 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240991 | 0.131115 | 511 | 29 | 84 | 17.62069 | 0.540541 | 0 | 0 | 0.25 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
71d6d14b656730a8b5943eeafaf9a3bbc263bcaf | 523 | bzl | Python | java_test_repositories.bzl | simonhorlick/base | dffa9a4316fd80cc8e867704cca45269dd8a734a | [
"Apache-2.0"
] | null | null | null | java_test_repositories.bzl | simonhorlick/base | dffa9a4316fd80cc8e867704cca45269dd8a734a | [
"Apache-2.0"
] | null | null | null | java_test_repositories.bzl | simonhorlick/base | dffa9a4316fd80cc8e867704cca45269dd8a734a | [
"Apache-2.0"
] | null | null | null | # Commonly used java test dependencies
def java_test_repositories():
native.maven_jar(
name = "junit",
artifact = "junit:junit:4.12",
sha1 = "2973d150c0dc1fefe998f834810d68f278ea58ec",
)
native.maven_jar(
name = "hamcrest_core",
artifact = "org.hamcrest:hamcrest-core:1.3",
sha1 = "42a25dc... | 27.526316 | 54 | 0.707457 | 53 | 523 | 6.830189 | 0.528302 | 0.09116 | 0.116022 | 0.149171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207852 | 0.172084 | 523 | 19 | 55 | 27.526316 | 0.628176 | 0.068834 | 0 | 0.1875 | 0 | 0 | 0.481481 | 0.372428 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | true | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71d8019fb0e4f44131b16816f887c66ae197e46c | 235 | py | Python | Webshop_app/db.py | Immortalits/Szakdolgozat | b5d29b41c0c7f45de1386a8607bfc2efe8756b37 | [
"MIT"
] | null | null | null | Webshop_app/db.py | Immortalits/Szakdolgozat | b5d29b41c0c7f45de1386a8607bfc2efe8756b37 | [
"MIT"
] | null | null | null | Webshop_app/db.py | Immortalits/Szakdolgozat | b5d29b41c0c7f45de1386a8607bfc2efe8756b37 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from typing import TYPE_CHECKING
db = SQLAlchemy()
if TYPE_CHECKING:
from flask_sqlalchemy.model import Model
BaseModel = db.make_declarative_base(Model)
else:
BaseModel = db.Model
| 21.363636 | 47 | 0.787234 | 31 | 235 | 5.774194 | 0.483871 | 0.100559 | 0.212291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161702 | 235 | 10 | 48 | 23.5 | 0.908629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e0819dacbb91ca08c775b55a7b379edfa26822a6 | 3,183 | py | Python | src/sentry/projectoptions/manager.py | vaniot-s/sentry | 5c1accadebfaf8baf6863251c05b38ea979ee1c7 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/projectoptions/manager.py | vaniot-s/sentry | 5c1accadebfaf8baf6863251c05b38ea979ee1c7 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/projectoptions/manager.py | vaniot-s/sentry | 5c1accadebfaf8baf6863251c05b38ea979ee1c7 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import six
import uuid
import bisect
from datetime import datetime
from pytz import utc
class WellKnownProjectOption(object):
def __init__(self, key, default=None, epoch_defaults=None):
self.key = key
self.default = default
self.epoch_defaults = epo... | 34.225806 | 89 | 0.675778 | 399 | 3,183 | 5.238095 | 0.283208 | 0.055981 | 0.026794 | 0.042105 | 0.274163 | 0.233493 | 0.170335 | 0.170335 | 0.086124 | 0.086124 | 0 | 0.002084 | 0.246309 | 3,183 | 92 | 90 | 34.597826 | 0.869112 | 0.161797 | 0 | 0.105263 | 0 | 0 | 0.03827 | 0.010333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.192982 | 0.035088 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e0891447ac069209bcdd7751ebfc4dbcb2993e75 | 1,740 | py | Python | CoordenacaoFacil/models/Student.py | vieiraeduardos/easy-management | 88d124da4fc20455da2ce28ffacc62b691959387 | [
"MIT"
] | null | null | null | CoordenacaoFacil/models/Student.py | vieiraeduardos/easy-management | 88d124da4fc20455da2ce28ffacc62b691959387 | [
"MIT"
] | 7 | 2018-11-23T23:12:51.000Z | 2018-11-23T23:37:08.000Z | CoordenacaoFacil/models/Student.py | vieiraeduardos/coordenacao-facil | 88d124da4fc20455da2ce28ffacc62b691959387 | [
"MIT"
] | null | null | null | from werkzeug.security import generate_password_hash, check_password_hash
from CoordenacaoFacil import db
class Student():
def __init__(self, code="", name="", email="", password="", course=None, university=None, createdAt=""):
self.code = code
self.name = name
self.email = email
s... | 29.491525 | 108 | 0.526437 | 162 | 1,740 | 5.567901 | 0.296296 | 0.053215 | 0.053215 | 0.059867 | 0.170732 | 0.170732 | 0.077605 | 0.077605 | 0 | 0 | 0 | 0 | 0.375862 | 1,740 | 58 | 109 | 30 | 0.830571 | 0 | 0 | 0.387755 | 1 | 0 | 0.113218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0.122449 | 0.040816 | 0 | 0.285714 | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e094a85d71e167583235630d1b52cda4841bb976 | 231 | py | Python | recorrer.py | napodevesa/python_master | 9e0253fb8cd29c8228d27e8a8f39db4fb93d3edc | [
"MIT"
] | null | null | null | recorrer.py | napodevesa/python_master | 9e0253fb8cd29c8228d27e8a8f39db4fb93d3edc | [
"MIT"
] | null | null | null | recorrer.py | napodevesa/python_master | 9e0253fb8cd29c8228d27e8a8f39db4fb93d3edc | [
"MIT"
] | null | null | null | def run():
# nombre = input('Escribe tu nombre: ')
# for letra in nombre:
# print(letra)
frase = input('Escribe una frase: ')
for c in frase:
print(c.upper())
if __name__ == '__main__':
run()
| 17.769231 | 43 | 0.545455 | 29 | 231 | 4.068966 | 0.586207 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307359 | 231 | 12 | 44 | 19.25 | 0.7375 | 0.324675 | 0 | 0 | 0 | 0 | 0.177632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0b125609aa1a6ddf57d765fa4dd78c2f8f5f41b | 434 | py | Python | python/ray/dataframe/__init__.py | suryaabhi/ray | 112ef075632c0815beb9838b91a83331fe649f0b | [
"Apache-2.0"
] | 1 | 2020-06-25T18:17:10.000Z | 2020-06-25T18:17:10.000Z | python/ray/dataframe/__init__.py | rickyHong/Ray-Population-Based-Training-repl | 195a42f2fa4ab39d1e2260e6860d88c529023655 | [
"Apache-2.0"
] | null | null | null | python/ray/dataframe/__init__.py | rickyHong/Ray-Population-Based-Training-repl | 195a42f2fa4ab39d1e2260e6860d88c529023655 | [
"Apache-2.0"
] | 1 | 2021-09-22T14:46:19.000Z | 2021-09-22T14:46:19.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .dataframe import DataFrame
from .dataframe import from_pandas
from .dataframe import to_pandas
import ray
import pandas as pd
__all__ = ["DataFrame", "from_pandas", "to_pandas"]
ray.register_custom_seri... | 28.933333 | 75 | 0.836406 | 61 | 434 | 5.491803 | 0.393443 | 0.089552 | 0.143284 | 0.161194 | 0.173134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 434 | 14 | 76 | 31 | 0.854592 | 0 | 0 | 0 | 0 | 0 | 0.06682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.727273 | 0 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e0b34a961622cf5d2b408ce1e25a2f6a04ba68d7 | 5,100 | py | Python | ProcessPlot/classes/pen.py | testtech-solutions/ProcessPlot | eea51a406b539c5a9b0510d4ff8a06e0be3e98fa | [
"MIT"
] | null | null | null | ProcessPlot/classes/pen.py | testtech-solutions/ProcessPlot | eea51a406b539c5a9b0510d4ff8a06e0be3e98fa | [
"MIT"
] | null | null | null | ProcessPlot/classes/pen.py | testtech-solutions/ProcessPlot | eea51a406b539c5a9b0510d4ff8a06e0be3e98fa | [
"MIT"
] | null | null | null | """
Copyright (c) 2021 Adam Solchenberger asolchenberger@gmail.com, Jason Engman engmanj@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation... | 34.459459 | 94 | 0.730392 | 705 | 5,100 | 5.12766 | 0.262411 | 0.049793 | 0.057815 | 0.060028 | 0.22296 | 0.219917 | 0.215768 | 0.203596 | 0.203596 | 0.172614 | 0 | 0.001425 | 0.174314 | 5,100 | 148 | 95 | 34.459459 | 0.857041 | 0.280196 | 0 | 0.093458 | 0 | 0 | 0.031912 | 0.006327 | 0 | 0 | 0.001926 | 0 | 0 | 1 | 0.224299 | false | 0.009346 | 0.037383 | 0.102804 | 0.401869 | 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 |
e0bd0884a5858e7d43ce286a9a512dc6cfd6ad75 | 327 | py | Python | monitor/urls.py | sweetchipsw/Sweetmon_legacy | 27b0d9ab00d66b634852d7ad93e54b3a5cc457a4 | [
"MIT"
] | 2 | 2019-11-06T02:18:16.000Z | 2020-04-26T04:13:23.000Z | monitor/urls.py | sweetchipsw/Sweetmon_legacy | 27b0d9ab00d66b634852d7ad93e54b3a5cc457a4 | [
"MIT"
] | 2 | 2020-02-11T23:38:55.000Z | 2020-06-05T17:36:42.000Z | monitor/urls.py | sweetchipsw/Sweetmon_legacy | 27b0d9ab00d66b634852d7ad93e54b3a5cc457a4 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
# views.py
url(r'^$', views.fuzzer_list, name='fuzzers'),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.STATIC_... | 23.357143 | 82 | 0.721713 | 44 | 327 | 5.272727 | 0.477273 | 0.12931 | 0.181034 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171254 | 327 | 13 | 83 | 25.153846 | 0.856089 | 0.024465 | 0 | 0 | 0 | 0 | 0.029605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e0c47f2613fb5fe08e0117facd79234cc27fcb29 | 623 | py | Python | archiv/migrations/0018_auto_20210520_1616.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 2 | 2021-06-02T11:27:54.000Z | 2021-08-25T10:29:04.000Z | archiv/migrations/0018_auto_20210520_1616.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 86 | 2021-01-29T12:31:34.000Z | 2022-03-28T11:41:04.000Z | archiv/migrations/0018_auto_20210520_1616.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-20 16:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('archiv', '0017_event'),
]
operations = [
migrations.AlterField(
model_name='event',
name='end_date',
field... | 25.958333 | 98 | 0.59069 | 68 | 623 | 5.279412 | 0.558824 | 0.111421 | 0.139276 | 0.16156 | 0.456825 | 0.456825 | 0.245125 | 0.245125 | 0 | 0 | 0 | 0.040089 | 0.279294 | 623 | 23 | 99 | 27.086957 | 0.759465 | 0.069021 | 0 | 0.352941 | 1 | 0 | 0.096886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
e0c90ed189d8d30542644ea8f37d2564b4a63a76 | 231 | py | Python | tests/strings_tests.py | bulljustin/magic_python | 43281b4b3820f046692d983b394ef95b9ee7c810 | [
"Apache-2.0"
] | null | null | null | tests/strings_tests.py | bulljustin/magic_python | 43281b4b3820f046692d983b394ef95b9ee7c810 | [
"Apache-2.0"
] | null | null | null | tests/strings_tests.py | bulljustin/magic_python | 43281b4b3820f046692d983b394ef95b9ee7c810 | [
"Apache-2.0"
] | null | null | null | from nose.tools import *
from magic_python.strings import *
def setup():
print("setup")
def teardown():
print("teardown")
def test_file():
assert(file.WRITE == 'w')
assert(file.READ_ONLY == 'r')
assert(file.APPEND == 'a')
| 15.4 | 34 | 0.670996 | 33 | 231 | 4.606061 | 0.636364 | 0.197368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147186 | 231 | 14 | 35 | 16.5 | 0.771574 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | true | 0 | 0.2 | 0 | 0.5 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0c9e4cea246c4df15da36cb76f5062e2c2cee5e | 392 | py | Python | dev_tools/urls.py | uktrade/contractor-approval | 316ba7b2321f5aeea6dc83dcdaaadda887275f4d | [
"MIT"
] | null | null | null | dev_tools/urls.py | uktrade/contractor-approval | 316ba7b2321f5aeea6dc83dcdaaadda887275f4d | [
"MIT"
] | 1 | 2022-02-18T09:17:41.000Z | 2022-02-18T09:17:41.000Z | dev_tools/urls.py | uktrade/resourcing-approval | 316ba7b2321f5aeea6dc83dcdaaadda887275f4d | [
"MIT"
] | null | null | null | from django.urls import path
from dev_tools.views import change_user, create_test_resourcing_request, index
app_name = "dev_tools"
urlpatterns = [
path("", index, name="index"),
path("change-user", change_user, name="change-user"),
path(
"create-test-resourcing-request",
create_test_reso... | 23.058824 | 78 | 0.691327 | 48 | 392 | 5.416667 | 0.375 | 0.153846 | 0.307692 | 0.415385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 392 | 16 | 79 | 24.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 0.153061 | 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 |
e0d16e9fd314898ed2b07a67f71f6c1c8e97da43 | 542 | py | Python | cpu_ver/hypergrad/slurm_job_watcher.py | bigaidream-projects/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 119 | 2016-02-24T17:20:50.000Z | 2021-05-28T21:35:16.000Z | cpu_ver/hypergrad/slurm_job_watcher.py | LinZichuan/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 8 | 2016-02-25T03:13:38.000Z | 2017-09-15T00:54:52.000Z | cpu_ver/hypergrad/slurm_job_watcher.py | LinZichuan/drmad | a4bb6010595d956f29c5a42a095bab76a60b29eb | [
"MIT"
] | 31 | 2016-03-10T04:57:11.000Z | 2021-05-02T01:00:04.000Z | import time
from glob import glob
import subprocess
import os
from odyssey import run_signal_stem, slurm_fname, temp_dir, jobdir
if __name__ == "__main__":
print "Monitoring slurm jobs in {0}".format(os.getcwd())
while True:
for fname in glob(run_signal_stem + "*"):
jobname = fname[len(run_... | 30.111111 | 66 | 0.638376 | 70 | 542 | 4.685714 | 0.542857 | 0.082317 | 0.118902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007426 | 0.254613 | 542 | 17 | 67 | 31.882353 | 0.804455 | 0 | 0 | 0 | 0 | 0 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e0d92edd39effcb99f517c64c3798e2b82d6596b | 485 | py | Python | src/django_jsonfield_backport/apps.py | lociii/django-jsonfield-backport | ddd892f6954dab06ff5a3d08fcde759db86e576c | [
"BSD-3-Clause"
] | null | null | null | src/django_jsonfield_backport/apps.py | lociii/django-jsonfield-backport | ddd892f6954dab06ff5a3d08fcde759db86e576c | [
"BSD-3-Clause"
] | null | null | null | src/django_jsonfield_backport/apps.py | lociii/django-jsonfield-backport | ddd892f6954dab06ff5a3d08fcde759db86e576c | [
"BSD-3-Clause"
] | null | null | null | import django
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
from django_jsonfield_backport import features, forms, models
class JSONFieldConfig(AppConfig):
name = "django_jsonfield_backport"
verbose_name = _("JSONField backport from Django 3.1")
def ready(self... | 26.944444 | 61 | 0.717526 | 57 | 485 | 5.894737 | 0.596491 | 0.119048 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.208247 | 485 | 17 | 62 | 28.529412 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0.121649 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | 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 |
e0dfc90ae8c4a5fcd43cbf3b01dea17271f04864 | 518 | py | Python | models/notifications/update_favorites.py | Ewpratten/the-blue-alliance | 702932612ab9e2839108107779e2323675b227a3 | [
"MIT"
] | null | null | null | models/notifications/update_favorites.py | Ewpratten/the-blue-alliance | 702932612ab9e2839108107779e2323675b227a3 | [
"MIT"
] | null | null | null | models/notifications/update_favorites.py | Ewpratten/the-blue-alliance | 702932612ab9e2839108107779e2323675b227a3 | [
"MIT"
] | null | null | null | from models.notifications.notification import Notification
class UpdateFavoritesNotification(Notification):
def __init__(self, user_id):
self.user_id = user_id
@classmethod
def _type(cls):
from consts.notification_type import NotificationType
return NotificationType.UPDATE_FAVORI... | 28.777778 | 85 | 0.750965 | 55 | 518 | 6.781818 | 0.527273 | 0.064343 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183398 | 518 | 17 | 86 | 30.470588 | 0.881797 | 0 | 0 | 0 | 0 | 0 | 0.034749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e0e45392eff3b05e5126d719e4073dd4c304ceda | 150 | py | Python | src/home/urls.py | Vitaldocz/blog | 91997b542def86eee6ad58e25c4dab1ad6e68e99 | [
"MIT"
] | null | null | null | src/home/urls.py | Vitaldocz/blog | 91997b542def86eee6ad58e25c4dab1ad6e68e99 | [
"MIT"
] | null | null | null | src/home/urls.py | Vitaldocz/blog | 91997b542def86eee6ad58e25c4dab1ad6e68e99 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import IndexView
app_name = 'home'
urlpatterns = [
path('', IndexView.as_view(), name='indexView')
]
| 13.636364 | 51 | 0.693333 | 19 | 150 | 5.368421 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 150 | 10 | 52 | 15 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e0f46bfc7a20783d0f7dda9d9c3184ebb52a8080 | 6,752 | py | Python | pyecobee/objects/security_settings.py | gleblanc1783/Pyecobee | c8d1aa016f2e5f8e0c59163d34d8ca57844ae713 | [
"MIT"
] | 29 | 2017-07-05T20:32:27.000Z | 2022-03-16T02:33:52.000Z | pyecobee/objects/security_settings.py | gleblanc1783/Pyecobee | c8d1aa016f2e5f8e0c59163d34d8ca57844ae713 | [
"MIT"
] | 24 | 2018-03-02T19:26:49.000Z | 2022-02-16T18:43:31.000Z | pyecobee/objects/security_settings.py | gleblanc1783/Pyecobee | c8d1aa016f2e5f8e0c59163d34d8ca57844ae713 | [
"MIT"
] | 17 | 2017-05-22T18:20:32.000Z | 2022-01-13T18:14:22.000Z | """
This module is home to the SecuritySettings class
"""
from pyecobee.ecobee_object import EcobeeObject
class SecuritySettings(EcobeeObject):
"""
This class has been auto generated by scraping
https://www.ecobee.com/home/developer/api/documentation/v1/objects/SecuritySettings.shtml
Attribute names ... | 28.854701 | 93 | 0.655806 | 756 | 6,752 | 5.554233 | 0.117725 | 0.095261 | 0.085735 | 0.177185 | 0.654203 | 0.524649 | 0.48583 | 0.396047 | 0.336509 | 0.16623 | 0 | 0.000206 | 0.279917 | 6,752 | 233 | 94 | 28.978541 | 0.863431 | 0.441499 | 0 | 0.216867 | 1 | 0 | 0.188435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156627 | false | 0 | 0.012048 | 0 | 0.289157 | 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 |
e0f5e64f08d01f8156b7cf7869463654a3743b45 | 857 | py | Python | test_op_detect.py | nogumbi/LISP-Interpreter | ac4489456e91e1328fbde05d106df4caa8f5af08 | [
"MIT"
] | null | null | null | test_op_detect.py | nogumbi/LISP-Interpreter | ac4489456e91e1328fbde05d106df4caa8f5af08 | [
"MIT"
] | null | null | null | test_op_detect.py | nogumbi/LISP-Interpreter | ac4489456e91e1328fbde05d106df4caa8f5af08 | [
"MIT"
] | null | null | null | import unittest
import operation_detection
class TestOpDetect(unittest.TestCase):
def testIsListTrue(self):
test_string = "(a b)"
ret_val = operation_detection.isList(test_string)
self.assertTrue(ret_val)
def testIsListFalse(self):
test_string = "(+ a b)"
ret_val =... | 29.551724 | 57 | 0.663944 | 98 | 857 | 5.540816 | 0.255102 | 0.184162 | 0.128913 | 0.220994 | 0.664825 | 0.664825 | 0.60221 | 0.567219 | 0.567219 | 0.541436 | 0 | 0 | 0.24154 | 857 | 29 | 58 | 29.551724 | 0.835385 | 0 | 0 | 0.521739 | 0 | 0 | 0.036131 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.347826 | 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 |
e0f8d8f758c7040fd8fea3be28df1a7422352bb3 | 2,247 | py | Python | ExamPrep/Shit Comp/Python Code/RootsOther/WS6ROOTFINDING.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Shit Comp/Python Code/RootsOther/WS6ROOTFINDING.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Shit Comp/Python Code/RootsOther/WS6ROOTFINDING.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | # module imports
from math import sqrt
# *****IMPORTANT*****
#The function must equal 0.
#IMPORTANT
#These methods (excluding in-build fsolve) require a bracket in which each root is found. These brackets can be found by looking at a plot.
# For example, on a plot of (y = x^2 - 1) there are two roots. An estimate f... | 33.537313 | 232 | 0.58834 | 305 | 2,247 | 4.334426 | 0.377049 | 0.030257 | 0.027231 | 0.034039 | 0.266263 | 0.205749 | 0.186838 | 0.05295 | 0.05295 | 0.05295 | 0 | 0.017526 | 0.136627 | 2,247 | 66 | 233 | 34.045455 | 0.663918 | 0.582109 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3125 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e0fa260c5b84533dd5d730db1100068f59e1e9bb | 338 | py | Python | test.py | lytex/Orgnode | e8aab2ea93261937d668f2068eba661568a85214 | [
"MIT"
] | 2 | 2019-03-31T20:45:05.000Z | 2021-05-10T19:10:32.000Z | test.py | lytex/Orgnode | e8aab2ea93261937d668f2068eba661568a85214 | [
"MIT"
] | null | null | null | test.py | lytex/Orgnode | e8aab2ea93261937d668f2068eba661568a85214 | [
"MIT"
] | 1 | 2020-08-06T21:09:51.000Z | 2020-08-06T21:09:51.000Z | from Orgnode import myorgnode
import json
filename = "1.org"
nodetree = myorgnode.maketree(filename)
nodelist = myorgnode.makelist(filename)
json_data_list = myorgnode.toJSON(nodelist)
print "list\n"
print json_data_list
print "======================="
json_data_tree = myorgnode.toJSON(nodetree)
print "tree\n"
print... | 18.777778 | 43 | 0.742604 | 44 | 338 | 5.522727 | 0.409091 | 0.131687 | 0.160494 | 0.115226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.106509 | 338 | 17 | 44 | 19.882353 | 0.801325 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.068452 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
e0fb180b64dd3c4d4c5bf223a7b55e55b702aa98 | 8,558 | py | Python | setup.py | peekxc/tallem | 949af20c1f50f9b6784ee32463e59123cd64294b | [
"Apache-2.0"
] | null | null | null | setup.py | peekxc/tallem | 949af20c1f50f9b6784ee32463e59123cd64294b | [
"Apache-2.0"
] | null | null | null | setup.py | peekxc/tallem | 949af20c1f50f9b6784ee32463e59123cd64294b | [
"Apache-2.0"
] | 1 | 2021-07-25T04:58:58.000Z | 2021-07-25T04:58:58.000Z | # -*- coding: utf-8 -*-
import os
import sys
import pathlib
import importlib
import glob
import shutil
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext
from pathlib import Path
import mesonbuild
import platform
suffix = importlib.machinery.EXTENSION_SUFFIXES[0... | 61.128571 | 3,951 | 0.728441 | 1,255 | 8,558 | 4.890837 | 0.356972 | 0.007494 | 0.003421 | 0.013034 | 0.12219 | 0.095797 | 0.067286 | 0.036494 | 0.036494 | 0.021831 | 0 | 0.016339 | 0.120355 | 8,558 | 139 | 3,952 | 61.568345 | 0.799017 | 0.092194 | 0 | 0 | 0 | 0.050505 | 0.629003 | 0.076188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0 | 0.141414 | 0 | 0.232323 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0fc4019d5d5033be976e395e6d4f473188dca4b | 579 | py | Python | mayan/apps/permissions/permissions.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 2 | 2021-09-12T19:41:19.000Z | 2021-09-12T19:41:20.000Z | mayan/apps/permissions/permissions.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 37 | 2021-09-13T01:00:12.000Z | 2021-10-02T03:54:30.000Z | mayan/apps/permissions/permissions.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:17:30.000Z | 2021-09-22T13:17:30.000Z | from django.utils.translation import ugettext_lazy as _
from . import PermissionNamespace
namespace = PermissionNamespace(label=_('Permissions'), name='permissions')
permission_role_create = namespace.add_permission(
label=_('Create roles'), name='role_create'
)
permission_role_delete = namespace.add_pe... | 30.473684 | 76 | 0.747841 | 65 | 579 | 6.307692 | 0.323077 | 0.136585 | 0.214634 | 0.263415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136442 | 579 | 18 | 77 | 32.166667 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.188948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
e0fff4047565a604105958950e9f90c2b8888b6f | 909 | py | Python | reviews/feeds.py | ftrain/django-ftrain | af535fda8e113e9dcdac31216852e35a01d3b950 | [
"BSD-3-Clause"
] | 1 | 2019-11-01T00:37:36.000Z | 2019-11-01T00:37:36.000Z | reviews/feeds.py | ftrain/django-ftrain | af535fda8e113e9dcdac31216852e35a01d3b950 | [
"BSD-3-Clause"
] | null | null | null | reviews/feeds.py | ftrain/django-ftrain | af535fda8e113e9dcdac31216852e35a01d3b950 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.syndication.feeds import Feed
from django.utils import feedgenerator
from models import Event
class LilliputEventsFeed(Feed):
title = "The Lilliput Review, by Paul Ford"
link = "http://www.lilliputreview.com"
subtitle = "Big fella, little reviews."
author_name = "Paul Ford"
item... | 34.961538 | 128 | 0.687569 | 122 | 909 | 5.008197 | 0.47541 | 0.052373 | 0.055646 | 0.07856 | 0.081833 | 0.081833 | 0 | 0 | 0 | 0 | 0 | 0.003995 | 0.173817 | 909 | 25 | 129 | 36.36 | 0.809587 | 0 | 0 | 0 | 0 | 0 | 0.305831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.15 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
460b53491e154df1abb3a089e77996ef0878d637 | 224 | py | Python | portals/wwits/groups/__init__.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | portals/wwits/groups/__init__.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | portals/wwits/groups/__init__.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | """This module consist of API Groups.
All the REST APIs are divided into several groups
1) Access
2) General
3) Organization
4) Service
5) Service Action
Each group has a set of APIs with their own models and schemas.
"""
| 18.666667 | 63 | 0.754464 | 39 | 224 | 4.333333 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027473 | 0.1875 | 224 | 11 | 64 | 20.363636 | 0.901099 | 0.964286 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46141df3fc631ad4b880c855f157b57fbc92da7c | 1,109 | py | Python | laundry/models.py | proxim/laundry-app | f8fe5bc5e1229e5ca28a33387079d64cc97fa49b | [
"MIT"
] | null | null | null | laundry/models.py | proxim/laundry-app | f8fe5bc5e1229e5ca28a33387079d64cc97fa49b | [
"MIT"
] | null | null | null | laundry/models.py | proxim/laundry-app | f8fe5bc5e1229e5ca28a33387079d64cc97fa49b | [
"MIT"
] | null | null | null | from django.db import models
class User(models.Model):
name = models.CharField(max_length=100)
phone = models.CharField(max_length=20)
def __str__(self):
return f'{self.name} at {self.phone}'
class Load(models.Model):
user = models.ForeignKey(User, on_delete=models.SET_NULL)
class Washer(mod... | 27.725 | 84 | 0.677187 | 143 | 1,109 | 5.13986 | 0.307692 | 0.097959 | 0.07619 | 0.092517 | 0.714286 | 0.685714 | 0.685714 | 0.685714 | 0.620408 | 0.620408 | 0 | 0.014925 | 0.214608 | 1,109 | 39 | 85 | 28.435897 | 0.828932 | 0 | 0 | 0.571429 | 0 | 0 | 0.024346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0.035714 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c9d6eb0017622168c53fe04928985d82d4dbdd6 | 1,273 | py | Python | functions.py | cristianosch/Python | b3ae5444aa009a3a6cbe6db61b8583f8be5c2fe8 | [
"MIT"
] | null | null | null | functions.py | cristianosch/Python | b3ae5444aa009a3a6cbe6db61b8583f8be5c2fe8 | [
"MIT"
] | null | null | null | functions.py | cristianosch/Python | b3ae5444aa009a3a6cbe6db61b8583f8be5c2fe8 | [
"MIT"
] | null | null | null | # Functions (Funções)
# DRY - Don't repeat yourself
# Parametro --> Argumento
# Default = Aquele que você define o valor no parametro
# Non-Default = Aquele que você não define o valor do parametro
'''
No exemplo abaixo NOME é o Non-Default, pq o valor dele ainda
será atribuido posteriormente podendo ser trocado a atr... | 21.948276 | 67 | 0.723488 | 197 | 1,273 | 4.664975 | 0.568528 | 0.026115 | 0.026115 | 0.043526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005769 | 0.183032 | 1,273 | 57 | 68 | 22.333333 | 0.877885 | 0.663001 | 0 | 0 | 0 | 0 | 0.338235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.375 | 0.375 | 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 |
1ca2008c84a24e475d44aec485a4698505fff8e1 | 5,316 | py | Python | example/simple_functions/simple_function.py | HowardHu97/ZOOpt | 01568e8e6b0e65ac310d362af2da5245ac375e53 | [
"MIT"
] | 1 | 2018-11-03T12:05:00.000Z | 2018-11-03T12:05:00.000Z | example/simple_functions/simple_function.py | HowardHu97/ZOOpt | 01568e8e6b0e65ac310d362af2da5245ac375e53 | [
"MIT"
] | null | null | null | example/simple_functions/simple_function.py | HowardHu97/ZOOpt | 01568e8e6b0e65ac310d362af2da5245ac375e53 | [
"MIT"
] | null | null | null | """
Objective functions can be implemented in this file.
Author:
Yu-Ren Liu
"""
from random import Random
from zoopt.dimension import Dimension
import numpy as np
class SetCover:
"""
set cover problem for discrete optimization
this problem has some extra initialization tasks, thus we define this pro... | 37.174825 | 120 | 0.48307 | 1,062 | 5,316 | 2.335217 | 0.113936 | 0.120161 | 0.097984 | 0.067742 | 0.518548 | 0.504839 | 0.497581 | 0.456452 | 0.324194 | 0.276613 | 0 | 0.200772 | 0.317908 | 5,316 | 142 | 121 | 37.43662 | 0.483177 | 0.105154 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098765 | false | 0 | 0.037037 | 0 | 0.259259 | 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 |
1cbe7fa082b50a738ff3911e60c8a30f595ce123 | 3,460 | py | Python | google/cloud/secretmanager/__init__.py | LaudateCorpus1/python-secret-manager | 4056e97028a638934de9deea68d29e523fa45a1f | [
"Apache-2.0"
] | 57 | 2019-12-27T23:43:30.000Z | 2022-03-22T21:22:36.000Z | google/cloud/secretmanager/__init__.py | LaudateCorpus1/python-secret-manager | 4056e97028a638934de9deea68d29e523fa45a1f | [
"Apache-2.0"
] | 114 | 2019-12-20T00:50:24.000Z | 2022-03-31T22:55:16.000Z | google/cloud/secretmanager/__init__.py | LaudateCorpus1/python-secret-manager | 4056e97028a638934de9deea68d29e523fa45a1f | [
"Apache-2.0"
] | 20 | 2019-12-19T21:18:58.000Z | 2022-01-29T08:13:25.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 43.797468 | 88 | 0.824566 | 361 | 3,460 | 7.806094 | 0.290859 | 0.092264 | 0.138396 | 0.258339 | 0.456352 | 0.456352 | 0.456352 | 0.456352 | 0.041164 | 0 | 0 | 0.011305 | 0.105202 | 3,460 | 78 | 89 | 44.358974 | 0.898902 | 0.164451 | 0 | 0 | 0 | 0 | 0.182957 | 0.119304 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.433333 | 0 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1cbecf5a55e84a58915ab4eab2d828a3b9809763 | 516 | py | Python | find-array-intersection.py | caipre/epigrams | 4de7f8cda4cad1361cf69421beeda27d5bf48fa6 | [
"MIT"
] | null | null | null | find-array-intersection.py | caipre/epigrams | 4de7f8cda4cad1361cf69421beeda27d5bf48fa6 | [
"MIT"
] | null | null | null | find-array-intersection.py | caipre/epigrams | 4de7f8cda4cad1361cf69421beeda27d5bf48fa6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def find_array_intersection(A, B):
ai = 0
bi = 0
ret = []
while ai < len(A) and bi < len(B):
if A[ai] < B[bi]:
ai += 1
elif A[ai] > B[bi]:
bi += 1
else:
ret.append(A[ai])
v = A[ai]
while ai < len(... | 22.434783 | 53 | 0.424419 | 91 | 516 | 2.362637 | 0.373626 | 0.069767 | 0.195349 | 0.204651 | 0.344186 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083871 | 0.399225 | 516 | 22 | 54 | 23.454545 | 0.609677 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0.055556 | 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 |
1ccc655b28022f1d53e191a5b6c11afa7af8a242 | 3,367 | py | Python | tests/test_execution.py | pyxiis/boxscript-py | bf7f055b02b20ff686c5c224199025aaa548c7d9 | [
"MIT"
] | 1 | 2021-07-18T03:45:13.000Z | 2021-07-18T03:45:13.000Z | tests/test_execution.py | pyxiis/boxscript-py | bf7f055b02b20ff686c5c224199025aaa548c7d9 | [
"MIT"
] | 7 | 2021-07-17T23:40:06.000Z | 2021-07-18T21:45:31.000Z | tests/test_execution.py | pyxiis/boxscript-py | bf7f055b02b20ff686c5c224199025aaa548c7d9 | [
"MIT"
] | 1 | 2021-07-17T17:24:09.000Z | 2021-07-17T17:24:09.000Z | import io
import unittest
from contextlib import redirect_stdout
from textwrap import dedent
from boxscript.interpreter import Interpreter
def run_code(code: str) -> str:
"""Test helper method to run provided boxscript."""
stdout = io.StringIO()
with redirect_stdout(stdout):
Interpreter().run(cod... | 28.294118 | 59 | 0.217701 | 278 | 3,367 | 6.23741 | 0.406475 | 0.010381 | 0.018454 | 0.022491 | 0.2203 | 0.2203 | 0.2203 | 0.171857 | 0.125721 | 0 | 0 | 0.036979 | 0.429759 | 3,367 | 118 | 60 | 28.533898 | 0.336979 | 0.050193 | 0 | 0.405941 | 0 | 0 | 0.711399 | 0.02905 | 0 | 0 | 0 | 0 | 0.039604 | 1 | 0.049505 | false | 0 | 0.049505 | 0 | 0.118812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cccdf00c028dbb0bcca672923690a45524d4c8d | 798 | py | Python | backend/api/migrations/0015_auto_20190821_0857.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | null | null | null | backend/api/migrations/0015_auto_20190821_0857.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | 6 | 2020-06-05T22:43:22.000Z | 2022-02-10T12:32:19.000Z | backend/api/migrations/0015_auto_20190821_0857.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2019-08-21 00:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0014_auto_20190821_0852'),
]
operations = [
migrations.AlterField(
model_name='loan',
name='cbu',
... | 27.517241 | 94 | 0.591479 | 86 | 798 | 5.337209 | 0.511628 | 0.130719 | 0.163399 | 0.189542 | 0.540305 | 0.540305 | 0.239651 | 0.239651 | 0.239651 | 0.239651 | 0 | 0.070671 | 0.290727 | 798 | 28 | 95 | 28.5 | 0.740283 | 0.056391 | 0 | 0.409091 | 1 | 0 | 0.083888 | 0.030626 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
1cef36925814e72624cdc980e7e8e137d27f1303 | 5,081 | py | Python | Preliminaries/Mathematics For ML - ICL/1. Linear Algebra/readonly/bearNecessities.py | MarcosSalib/Cocktail_MOOC | 46279c2ec642554537c639702ed8e540ea49afdf | [
"MIT"
] | null | null | null | Preliminaries/Mathematics For ML - ICL/1. Linear Algebra/readonly/bearNecessities.py | MarcosSalib/Cocktail_MOOC | 46279c2ec642554537c639702ed8e540ea49afdf | [
"MIT"
] | null | null | null | Preliminaries/Mathematics For ML - ICL/1. Linear Algebra/readonly/bearNecessities.py | MarcosSalib/Cocktail_MOOC | 46279c2ec642554537c639702ed8e540ea49afdf | [
"MIT"
] | null | null | null | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import numpy.linalg as la
bear_black = (0.141, 0.11, 0.11)
bear_white = (0.89, 0.856, 0.856)
magenta = (0xfc / 255, 0x75 / 255, 0xdb / 255) # Brighter magenta
orange = (218 / 255, 171 / 255, 115 / 255)
green = (175 / 255, 219 ... | 46.190909 | 102 | 0.592403 | 873 | 5,081 | 3.424971 | 0.302406 | 0.033445 | 0.013378 | 0.010033 | 0.189632 | 0.161873 | 0.143478 | 0.143144 | 0.143144 | 0.140468 | 0 | 0.530622 | 0.196615 | 5,081 | 109 | 103 | 46.614679 | 0.201862 | 0.008463 | 0 | 0 | 0 | 0 | 0.000596 | 0 | 0 | 0 | 0.002383 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.041237 | 0 | 0.082474 | 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 |
1cf22fa983a2781779d558d59f790cb1dd8d6c81 | 19,081 | py | Python | src/isanlp_rst/td_rst_parser/src/modules/treecrf.py | tchewik/isanlp_rst | 459864b3daeeb702acf5e65543181068439ce12c | [
"MIT"
] | 6 | 2020-05-09T01:13:10.000Z | 2021-02-05T01:02:40.000Z | src/isanlp_rst/td_rst_parser/src/modules/treecrf.py | tchewik/isanlp_rst | 459864b3daeeb702acf5e65543181068439ce12c | [
"MIT"
] | 2 | 2019-09-26T11:32:46.000Z | 2020-07-24T13:44:46.000Z | src/isanlp_rst/td_rst_parser/src/modules/treecrf.py | tchewik/isanlp_rst | 459864b3daeeb702acf5e65543181068439ce12c | [
"MIT"
] | 3 | 2019-09-26T13:39:26.000Z | 2021-04-12T14:34:50.000Z | # -*- coding: utf-8 -*-
import torch
import torch.autograd as autograd
import torch.nn as nn
from src.utils.fn import stripe
class MatrixTree(nn.Module):
"""
MatrixTree for calculating partition functions and marginals in O(N^3) for directed spanning trees
(a.k.a. non-projective trees) by an adaptation o... | 46.539024 | 121 | 0.566585 | 2,728 | 19,081 | 3.851906 | 0.116935 | 0.029121 | 0.026266 | 0.032832 | 0.751998 | 0.727351 | 0.694709 | 0.676627 | 0.64094 | 0.625238 | 0 | 0.017883 | 0.3025 | 19,081 | 409 | 122 | 46.652812 | 0.771658 | 0.446308 | 0 | 0.475676 | 0 | 0 | 0.004923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048649 | false | 0 | 0.021622 | 0 | 0.156757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cf92d4fea209ec94d5d4c9e14b8d7703cdade59 | 2,157 | py | Python | jim/registrations.py | markzz/jim | 0944c9a35e1adfa51519cbe488ee1f8976d490ba | [
"0BSD"
] | 1 | 2018-03-22T23:40:17.000Z | 2018-03-22T23:40:17.000Z | jim/registrations.py | FUN-GINEERS/jim | 0944c9a35e1adfa51519cbe488ee1f8976d490ba | [
"0BSD"
] | 4 | 2018-03-20T15:55:34.000Z | 2019-12-17T17:58:09.000Z | jim/registrations.py | markzz/jim | 0944c9a35e1adfa51519cbe488ee1f8976d490ba | [
"0BSD"
] | 2 | 2018-03-21T02:48:42.000Z | 2019-10-22T14:16:53.000Z | from jim import cmd_funcs
from jim.util.util import register_cmd, register_pattern, ADMINISTRATOR_PERM, MODERATOR_PERM
def register_cmds():
register_cmd("8ball", "Ask the magic 8 ball.", None, 2, cmd_funcs.eight_ball, False)
register_cmd("addcom", "Adds a custom command.", ADMINISTRATOR_PERM|MODERATOR_PERM, 3... | 74.37931 | 140 | 0.743162 | 311 | 2,157 | 4.96463 | 0.302251 | 0.103627 | 0.15544 | 0.042098 | 0.203368 | 0.15285 | 0.056995 | 0 | 0 | 0 | 0 | 0.010193 | 0.135837 | 2,157 | 28 | 141 | 77.035714 | 0.818133 | 0.081595 | 0 | 0 | 0 | 0 | 0.310258 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.090909 | true | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cfe3cd1eeec50fb0008c13bccefe11726789a5b | 160 | py | Python | src/constants.py | chatforia/chatforia | 39b471cf5118fffbd2a5f31e4628337d890526d0 | [
"MIT"
] | null | null | null | src/constants.py | chatforia/chatforia | 39b471cf5118fffbd2a5f31e4628337d890526d0 | [
"MIT"
] | null | null | null | src/constants.py | chatforia/chatforia | 39b471cf5118fffbd2a5f31e4628337d890526d0 | [
"MIT"
] | null | null | null | import socket
# import threading
HOST = socket.gethostbyname(socket.gethostname())
PORT = 8000
ADDR = (HOST, PORT)
FORMAT = 'utf-8'
HEADER = 64
DISC = "!DISC"
| 16 | 49 | 0.70625 | 21 | 160 | 5.380952 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051852 | 0.15625 | 160 | 9 | 50 | 17.777778 | 0.785185 | 0.1 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
e8001af1a78e40f5c371e55967d849152858188d | 332 | py | Python | data/migrations/0088_merge_20190404_1819.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | null | null | null | data/migrations/0088_merge_20190404_1819.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | 137 | 2016-12-09T18:59:45.000Z | 2021-06-10T18:55:47.000Z | data/migrations/0088_merge_20190404_1819.py | Duke-GCB/bespin-api | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | [
"MIT"
] | 3 | 2017-11-14T16:05:58.000Z | 2018-12-28T18:07:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2019-04-04 18:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('data', '0087_auto_20190329_2001'),
('data', '0087_auto_20190402_1722'),
]
operation... | 19.529412 | 48 | 0.656627 | 41 | 332 | 5.04878 | 0.756098 | 0.077295 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188462 | 0.216867 | 332 | 16 | 49 | 20.75 | 0.607692 | 0.204819 | 0 | 0 | 1 | 0 | 0.206897 | 0.176245 | 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 |
e80665cc4fb94898d7e91c94f14bb3bb1253f866 | 1,271 | py | Python | lib/device.py | keke185321/webcam-pulse-detector | d6162901bc169de1266e9da00d73f7e943713a64 | [
"Apache-2.0"
] | 1,411 | 2015-01-03T00:06:06.000Z | 2022-03-27T20:03:51.000Z | lib/device.py | keke185321/webcam-pulse-detector | d6162901bc169de1266e9da00d73f7e943713a64 | [
"Apache-2.0"
] | 36 | 2015-02-17T23:11:30.000Z | 2021-05-31T18:31:47.000Z | lib/device.py | keke185321/webcam-pulse-detector | d6162901bc169de1266e9da00d73f7e943713a64 | [
"Apache-2.0"
] | 419 | 2015-01-01T17:03:17.000Z | 2022-03-11T22:02:48.000Z | import cv2, time
#TODO: fix ipcam
#import urllib2, base64
import numpy as np
class ipCamera(object):
def __init__(self,url, user = None, password = None):
self.url = url
auth_encoded = base64.encodestring('%s:%s' % (user, password))[:-1]
self.req = urllib2.Request(self.url)
self.r... | 28.886364 | 75 | 0.571204 | 159 | 1,271 | 4.45283 | 0.471698 | 0.039548 | 0.036723 | 0.048023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042889 | 0.302911 | 1,271 | 44 | 76 | 28.886364 | 0.756208 | 0.029111 | 0 | 0.117647 | 0 | 0 | 0.045418 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.147059 | false | 0.058824 | 0.058824 | 0 | 0.323529 | 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 |
e810763b045bb8c295c0e5fd74e31d96d380a402 | 738 | py | Python | src/quo/__main__.py | chouette254/quo | 8979afd118e77d3d0f93f9fbe8711efada7158c5 | [
"MIT"
] | 1 | 2021-02-15T03:56:00.000Z | 2021-02-15T03:56:00.000Z | src/quo/__main__.py | chouette254/quo | 8979afd118e77d3d0f93f9fbe8711efada7158c5 | [
"MIT"
] | 3 | 2021-02-22T11:49:23.000Z | 2021-02-28T06:47:41.000Z | src/quo/__main__.py | viewerdiscretion/quo | fec78ae3b4a6d70501e2119868336c28c590fa50 | [
"MIT"
] | null | null | null | from quo.i_o import echo
from quo.color.rgb import *
from quo.shortcuts import container
from quo.widgets import Frame, TextArea
container(Frame(TextArea(text=" FEATURES"), title="Quo"))
echo(f"* ", fg="red", nl=False)
echo(f"Support for ANSI and RGB color models")
echo(f"* ", fg="blue", nl=False)
echo(f"Sup... | 28.384615 | 65 | 0.696477 | 119 | 738 | 4.310924 | 0.411765 | 0.155945 | 0.109162 | 0.187135 | 0.08577 | 0.08577 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 738 | 25 | 66 | 29.52 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.339213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.190476 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e833d0845dd8386f55a129abd2f97e426b1f1af2 | 271 | py | Python | Meeting Notes/2020/2020-10-03/cayley_2020_20.py | agryman/sean | 11baf69c6eb9308266126bf9c8b1c67c6fd33afc | [
"MIT"
] | 1 | 2020-03-28T18:17:52.000Z | 2020-03-28T18:17:52.000Z | Meeting Notes/2020/2020-10-03/cayley_2020_20.py | agryman/sean | 11baf69c6eb9308266126bf9c8b1c67c6fd33afc | [
"MIT"
] | 1 | 2022-01-21T21:33:00.000Z | 2022-01-21T21:33:00.000Z | Meeting Notes/2020/2020-10-03/cayley_2020_20.py | agryman/sean | 11baf69c6eb9308266126bf9c8b1c67c6fd33afc | [
"MIT"
] | null | null | null | """Cayley 2020, Problem 20"""
def is_divisible(n, d):
return (n % d) == 0
def solutions():
a = range(1, 101)
b = range(101, 206)
return [(m, n) for m in a for n in b if is_divisible(3**m + 7**n, 10)]
s = solutions()
a = len(s)
print(f'Answer = {a}') | 16.9375 | 74 | 0.549815 | 51 | 271 | 2.882353 | 0.588235 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10396 | 0.254613 | 271 | 16 | 75 | 16.9375 | 0.623762 | 0.084871 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e8343e7613b5659d1d2eecdb69c73cc951be1b32 | 258 | py | Python | src/7sem/intersect.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | 2 | 2019-10-19T22:29:50.000Z | 2019-10-19T22:29:52.000Z | src/7sem/intersect.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | null | null | null | src/7sem/intersect.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | null | null | null | a = [1, 4, 5, 7, 19, 24]
b = [4, 6, 7, 18, 24, 134]
i = 0
j = 0
ans = []
while i < len(a) and j < len(b):
if a[i] == b[j]:
ans.append(a[i])
i += 1
j += 1
elif a[i] < b[j]:
i += 1
else:
j += 1
print(*ans)
| 14.333333 | 32 | 0.348837 | 52 | 258 | 1.730769 | 0.442308 | 0.066667 | 0.066667 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.426357 | 258 | 17 | 33 | 15.176471 | 0.445946 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 |
08fa85535ca6db73c40ba084c39495bbf98698ab | 271 | py | Python | src/ball.py | IamFoka/py_pong | 0942223f2e76de04a9f3c49316140a5f7be9a914 | [
"MIT"
] | 1 | 2019-08-13T22:41:31.000Z | 2019-08-13T22:41:31.000Z | src/ball.py | IamFoka/py_pong | 0942223f2e76de04a9f3c49316140a5f7be9a914 | [
"MIT"
] | null | null | null | src/ball.py | IamFoka/py_pong | 0942223f2e76de04a9f3c49316140a5f7be9a914 | [
"MIT"
] | null | null | null | import pygame
class Ball(pygame.Rect):
def __init__(self, velocity, *args, **kwargs):
self.velocity = velocity
self.angle = 0
super().__init__(*args, **kwargs)
def move(self):
self.x += self.velocity
self.y += self.angle
| 22.583333 | 50 | 0.586716 | 33 | 271 | 4.575758 | 0.515152 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.276753 | 271 | 11 | 51 | 24.636364 | 0.765306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c002d2805935f0f76727d9aeb477442c979fc89 | 597 | py | Python | mlab_api/data/raw_data.py | m-lab/mlab-vis-api | 2368d88223148bf73d83c62d285fb458558619e0 | [
"MIT"
] | 1 | 2017-09-05T14:52:11.000Z | 2017-09-05T14:52:11.000Z | mlab_api/data/raw_data.py | m-lab/mlab-vis-api | 2368d88223148bf73d83c62d285fb458558619e0 | [
"MIT"
] | 9 | 2017-09-14T15:30:02.000Z | 2019-03-05T18:35:20.000Z | mlab_api/data/raw_data.py | m-lab/mlab-vis-api | 2368d88223148bf73d83c62d285fb458558619e0 | [
"MIT"
] | 3 | 2017-06-01T16:01:37.000Z | 2017-10-24T22:44:47.000Z | # -*- coding: utf-8 -*-
'''
Data class for accessing data for raw data
'''
from mlab_api.data.table_config import get_table_config
from mlab_api.data.base_data import Data
import mlab_api.data.bigtable_utils as bt
class RawData(Data):
'''
Pull out some raw data
'''
def get_raw_test_results(self):
... | 25.956522 | 77 | 0.666667 | 84 | 597 | 4.488095 | 0.452381 | 0.145889 | 0.087533 | 0.079576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010823 | 0.226131 | 597 | 22 | 78 | 27.136364 | 0.805195 | 0.18928 | 0 | 0 | 0 | 0 | 0.038813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c0ad9fa65e84e87558ca8cc77074cb1df1a954a | 1,057 | py | Python | solutions/blockedbillboard.py | 24TangC/USACO-Bronze | 80f0986cb04998b039ba23c7349d25431b4e876b | [
"MIT"
] | null | null | null | solutions/blockedbillboard.py | 24TangC/USACO-Bronze | 80f0986cb04998b039ba23c7349d25431b4e876b | [
"MIT"
] | null | null | null | solutions/blockedbillboard.py | 24TangC/USACO-Bronze | 80f0986cb04998b039ba23c7349d25431b4e876b | [
"MIT"
] | null | null | null | bill_board = list(map(int, input().split()))
tarp = list(map(int, input().split()))
xOverlap = max(min(bill_board[2], tarp[2]) - max(bill_board[0], tarp[0]), 0)
yOverlap = max(min(bill_board[3], tarp[3]) - max(bill_board[1], tarp[1]), 0)
if xOverlap == 0 or yOverlap == 0:
print((bill_board[2] - bill_boar... | 48.045455 | 93 | 0.653737 | 175 | 1,057 | 3.737143 | 0.131429 | 0.509174 | 0.137615 | 0.171254 | 0.718654 | 0.657492 | 0.59633 | 0.510703 | 0.510703 | 0.510703 | 0 | 0.050448 | 0.156102 | 1,057 | 22 | 94 | 48.045455 | 0.682735 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c10a155f7a78b3cf10c543d702dda7f8847a03b | 876 | py | Python | src/testers/unittests/test_doc.py | werew/Triton | 3f95e54f076308d6885071a21ae71eb2123771d2 | [
"Apache-2.0"
] | 15 | 2021-12-08T09:53:35.000Z | 2022-03-07T10:13:37.000Z | src/testers/unittests/test_doc.py | igogo-x86/Triton | 3225658a138f0beead593bf17103c0cf34500d68 | [
"Apache-2.0"
] | null | null | null | src/testers/unittests/test_doc.py | igogo-x86/Triton | 3225658a138f0beead593bf17103c0cf34500d68 | [
"Apache-2.0"
] | 3 | 2018-03-04T04:34:39.000Z | 2019-08-27T16:10:15.000Z | #!/usr/bin/env python2
# coding: utf-8
"""Tester for documentation."""
import unittest
import doctest
import os
import glob
SNIPPET_DIR = os.path.join(os.path.dirname(__file__), "..", "..", "libtriton", "bindings", "python", "objects")
class TestDoc(unittest.TestCase):
"""Holder to run examples as tests."""
fo... | 32.444444 | 111 | 0.694064 | 122 | 876 | 4.852459 | 0.647541 | 0.040541 | 0.033784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004138 | 0.172374 | 876 | 26 | 112 | 33.692308 | 0.812414 | 0.335616 | 0 | 0 | 0 | 0 | 0.080071 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1c10f71a6243b87586311b075f6a12f8f2c0e470 | 4,585 | py | Python | LP2/Exercicio Banco/banco.py | luisxfelipe/Faculdade_Impacta_2semestre | ad6e0bcc22496bb96f56c5ca3d930554dd5302a4 | [
"Apache-2.0"
] | null | null | null | LP2/Exercicio Banco/banco.py | luisxfelipe/Faculdade_Impacta_2semestre | ad6e0bcc22496bb96f56c5ca3d930554dd5302a4 | [
"Apache-2.0"
] | 6 | 2020-06-05T20:57:34.000Z | 2022-03-11T23:47:43.000Z | LP2/Exercicio Banco/banco.py | luisxfelipe/Faculdade_Impacta_2semestre | ad6e0bcc22496bb96f56c5ca3d930554dd5302a4 | [
"Apache-2.0"
] | null | null | null | from typing import List, Union
Number = Union[int, float]
"""
1) Termine os métodos calcula_juros() e saque(valor) da
classe ContaPoupanca
2) Termine o método calcula_juros() da classe ContaCorrente
3) Adicione um atributo à classe Conta chamado _operacoes:
self._operacoes = []
Ele servirá para guar... | 24.918478 | 77 | 0.592366 | 539 | 4,585 | 4.823748 | 0.243043 | 0.055385 | 0.021154 | 0.019615 | 0.216538 | 0.156154 | 0.137692 | 0.112308 | 0.085385 | 0.047692 | 0 | 0.009755 | 0.30687 | 4,585 | 183 | 78 | 25.054645 | 0.80837 | 0.110142 | 0 | 0.164557 | 0 | 0 | 0.015748 | 0.008858 | 0 | 0 | 0 | 0.021858 | 0 | 1 | 0.291139 | false | 0.025316 | 0.012658 | 0 | 0.443038 | 0.012658 | 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 |
1c1895717aec592be120c250b74a97740aaf2d31 | 539 | py | Python | tests/test_state.py | xiaoxianma/bitccl | 26d59b8a369a5ef8786d56d1f1d06fddf7c91d64 | [
"MIT"
] | 1 | 2020-08-02T15:16:05.000Z | 2020-08-02T15:16:05.000Z | tests/test_state.py | xiaoxianma/bitccl | 26d59b8a369a5ef8786d56d1f1d06fddf7c91d64 | [
"MIT"
] | 2 | 2020-07-31T10:54:04.000Z | 2020-08-14T11:44:44.000Z | tests/test_state.py | xiaoxianma/bitccl | 26d59b8a369a5ef8786d56d1f1d06fddf7c91d64 | [
"MIT"
] | 1 | 2020-07-26T17:14:50.000Z | 2020-07-26T17:14:50.000Z | from bitccl import run
from bitccl.state import config, event_listeners
def test_config_singleton():
assert config.get() == {}
config.set({"test": 1})
assert config.get() == config.get() == {"test": 1} # consistent
assert config.get().test == 1
config.set({})
assert config.get() == {}
def t... | 28.368421 | 78 | 0.675325 | 71 | 539 | 4.971831 | 0.394366 | 0.1983 | 0.169972 | 0.11898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006881 | 0.191095 | 539 | 18 | 79 | 29.944444 | 0.802752 | 0.070501 | 0 | 0.285714 | 0 | 0 | 0.094567 | 0.052314 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c1ec8fc4dece49d5d8a9ce1b4aa1e737787006c | 351 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/SGIX/async.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/SGIX/async.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/SGIX/async.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | '''OpenGL extension SGIX.async
This module customises the behaviour of the
OpenGL.raw.GL.SGIX.async to provide a more
Python-friendly API
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.SGIX.async import ... | 29.25 | 56 | 0.797721 | 52 | 351 | 5.384615 | 0.615385 | 0.142857 | 0.078571 | 0.107143 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131054 | 351 | 12 | 57 | 29.25 | 0.918033 | 0.071225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1c230791a959c93702e5277226b537668e9d6a50 | 313 | py | Python | project euler/q33.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q33.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q33.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | def c(m,z):
z10=z/10
z1=z%10
m10=m/10
m1=m%10
if m1==0:
return False
if z1==m10:
if float(z)/float(m)==float(z10)/float(m1):
return True
return False
for x in range(10,100):
for y in range(10,100):
if c(x,y):
print x,y | 20.866667 | 52 | 0.463259 | 56 | 313 | 2.589286 | 0.392857 | 0.041379 | 0.124138 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169312 | 0.396166 | 313 | 15 | 53 | 20.866667 | 0.597884 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 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 |
1c31346b9eb7cd50c1cd878990e61732e87c10f5 | 343 | py | Python | wandbox/commands/__init__.py | v1nam/wandbox-cli | 8ff88944ad3358dc99dd9bf4ac5c0cac2b98179b | [
"MIT"
] | 7 | 2021-01-21T18:45:29.000Z | 2021-01-27T06:54:17.000Z | wandbox/commands/__init__.py | v1nam/wandbox-cli | 8ff88944ad3358dc99dd9bf4ac5c0cac2b98179b | [
"MIT"
] | null | null | null | wandbox/commands/__init__.py | v1nam/wandbox-cli | 8ff88944ad3358dc99dd9bf4ac5c0cac2b98179b | [
"MIT"
] | null | null | null | from wandbox.commands.frominput import FromInput
from wandbox.commands.fromfile import FromFile
from wandbox.commands.frombuffer import FromBuffer
from wandbox.commands.base import Base
commands_dict = {
"fromfile": FromFile.runfile,
"frominput": FromInput.askinp,
"frombuffer": FromBuffer.create_buffer,
... | 26.384615 | 50 | 0.77551 | 39 | 343 | 6.769231 | 0.358974 | 0.166667 | 0.287879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134111 | 343 | 12 | 51 | 28.583333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.090379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1c33cd7567a86a3efce192828b9c73c1ad9e3605 | 1,008 | py | Python | src/kid/core/kglobals.py | KidKaboom/Kid-Maya-2022 | 0daec301a63438d681cc4c3a5df6d4efdc70daef | [
"MIT"
] | null | null | null | src/kid/core/kglobals.py | KidKaboom/Kid-Maya-2022 | 0daec301a63438d681cc4c3a5df6d4efdc70daef | [
"MIT"
] | null | null | null | src/kid/core/kglobals.py | KidKaboom/Kid-Maya-2022 | 0daec301a63438d681cc4c3a5df6d4efdc70daef | [
"MIT"
] | null | null | null | # :coding: utf-8
# Python Modules
import os
import sys
# Platforms
PLATFORM = sys.platform
WINDOWS = "win32"
OSX = "darwin"
LINUX = "linux"
# Paths
GLOBALS_PATH = os.path.abspath(__file__)
SCRIPTS_PATH = os.path.dirname(os.path.dirname(os.path.dirname(GLOBALS_PATH)))
PROJECT_PATH = os.path.dirname(SCRIPTS_PATH)
PLU... | 24.585366 | 78 | 0.738095 | 161 | 1,008 | 4.310559 | 0.26087 | 0.146974 | 0.216138 | 0.221902 | 0.430836 | 0.381844 | 0 | 0 | 0 | 0 | 0 | 0.012277 | 0.111111 | 1,008 | 40 | 79 | 25.2 | 0.762277 | 0.054563 | 0 | 0 | 0 | 0 | 0.087924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.08 | 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 |
1c40b967e9798ce772656204f94ecfee89c38b0e | 2,947 | py | Python | djangosaml2/cache.py | chander/djangosaml2 | edeef7e529769e5f7f99801a6a78c53ea7067198 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | djangosaml2/cache.py | chander/djangosaml2 | edeef7e529769e5f7f99801a6a78c53ea7067198 | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | djangosaml2/cache.py | chander/djangosaml2 | edeef7e529769e5f7f99801a6a78c53ea7067198 | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # Copyright (C) 2011-2012 Yaco Sistemas (http://www.yaco.es)
# Copyright (C) 2010 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com>
#
# 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
#
# ... | 32.744444 | 93 | 0.695283 | 387 | 2,947 | 5.105943 | 0.434109 | 0.065789 | 0.035425 | 0.034413 | 0.131579 | 0.097166 | 0.097166 | 0.068826 | 0.068826 | 0.068826 | 0 | 0.010908 | 0.22226 | 2,947 | 89 | 94 | 33.11236 | 0.851222 | 0.456057 | 0 | 0.147059 | 0 | 0 | 0.028197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.029412 | 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 |
1c5832d0289e7c0ad53dc88c255ac0823cc4a6c6 | 610 | py | Python | ia_mri_tools/utils.py | snydek1/ia_mri_tools | 525bdcc7f4c03e26d3114abf7da4932685b1e2e0 | [
"BSD-3-Clause"
] | 1 | 2019-02-15T16:03:08.000Z | 2019-02-15T16:03:08.000Z | ia_mri_tools/utils.py | snydek1/ia_mri_tools | 525bdcc7f4c03e26d3114abf7da4932685b1e2e0 | [
"BSD-3-Clause"
] | 11 | 2017-11-24T14:53:08.000Z | 2018-12-18T16:25:03.000Z | ia_mri_tools/utils.py | snydek1/ia_mri_tools | 525bdcc7f4c03e26d3114abf7da4932685b1e2e0 | [
"BSD-3-Clause"
] | 3 | 2017-11-24T14:53:47.000Z | 2018-03-14T18:36:33.000Z | # Utility functions
import numpy as np
def select(data, mask=None):
if isinstance(data, list):
h = []
for dsub in data:
h.append(select(dsub, mask))
return np.hstack(h)
else:
if mask is not None:
if len(data.shape) == 3:
return data.resha... | 27.727273 | 74 | 0.490164 | 76 | 610 | 3.934211 | 0.394737 | 0.120401 | 0.227425 | 0.240803 | 0.441472 | 0.441472 | 0.441472 | 0.441472 | 0.227425 | 0.227425 | 0 | 0.026247 | 0.37541 | 610 | 21 | 75 | 29.047619 | 0.75853 | 0.027869 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.388889 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.