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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ae67efece9e4214a187f1e8f735cbc2765b41fb | 596 | py | Python | profile_fitter/fitting_with_bias/plot_parameters.py | tmcclintock/exclusion_profile_fitting | 2ff85f6255f2838addc85f83848d23145e67e078 | [
"MIT"
] | null | null | null | profile_fitter/fitting_with_bias/plot_parameters.py | tmcclintock/exclusion_profile_fitting | 2ff85f6255f2838addc85f83848d23145e67e078 | [
"MIT"
] | null | null | null | profile_fitter/fitting_with_bias/plot_parameters.py | tmcclintock/exclusion_profile_fitting | 2ff85f6255f2838addc85f83848d23145e67e078 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
box = 0
snapshot = 9
names = ["c", "alpha", "rt", "beta", "r_eff", "beta_eff", "r_A", "r_B", "beta_ex", "bias"]
masses = np.load("../datafiles/masses_Box%d_Z%d.npy"%(box, snapshot))
bfoutpath = "bestfit_values_Box%d_Z%d.npy"%(box, snapshot)
bfs = np.load(bfoutpath)
... | 25.913043 | 90 | 0.672819 | 103 | 596 | 3.76699 | 0.601942 | 0.030928 | 0.025773 | 0.030928 | 0.103093 | 0.103093 | 0.103093 | 0 | 0 | 0 | 0 | 0.015094 | 0.110738 | 596 | 22 | 91 | 27.090909 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0.281879 | 0.102349 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 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 | 0 | 0 | 1 |
4aea937dff6579a274ab3e5141b6597364152f66 | 6,598 | py | Python | python/speech/python-client/swagger_client/models/test_definition.py | harvinchou/cognitive-services-test | 51a342bf4e05871e0d04bc5e1cdf714c7c2701ac | [
"MIT"
] | null | null | null | python/speech/python-client/swagger_client/models/test_definition.py | harvinchou/cognitive-services-test | 51a342bf4e05871e0d04bc5e1cdf714c7c2701ac | [
"MIT"
] | null | null | null | python/speech/python-client/swagger_client/models/test_definition.py | harvinchou/cognitive-services-test | 51a342bf4e05871e0d04bc5e1cdf714c7c2701ac | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Speech Services API v2.0
Speech Services API v2.0. # noqa: E501
OpenAPI spec version: v2.0
Contact: crservice@microsoft.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class TestDefinition(object):... | 28.439655 | 110 | 0.579418 | 738 | 6,598 | 5.105691 | 0.170732 | 0.063694 | 0.106157 | 0.095541 | 0.412686 | 0.368896 | 0.348461 | 0.153928 | 0.099257 | 0.074841 | 0 | 0.023235 | 0.32813 | 6,598 | 231 | 111 | 28.562771 | 0.826754 | 0.37375 | 0 | 0.07 | 1 | 0 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.03 | 0 | 0.33 | 0.02 | 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 | 0 | 0 | 0 | 1 |
4aebd8449bedc01d7ff7301e397761e6bab91ca8 | 4,329 | py | Python | amqp_transport/frame.py | christianfitzpatrick/amqp_client | 9d80f522d856f640ce58fd29791cef0aa47e4eac | [
"MIT"
] | null | null | null | amqp_transport/frame.py | christianfitzpatrick/amqp_client | 9d80f522d856f640ce58fd29791cef0aa47e4eac | [
"MIT"
] | null | null | null | amqp_transport/frame.py | christianfitzpatrick/amqp_client | 9d80f522d856f640ce58fd29791cef0aa47e4eac | [
"MIT"
] | null | null | null | """
AMQP frames and related marshaling/unmarshaling utilities
Christian Fitzpatrick
"""
import enum
import abc
import struct
from amqp_transport.amqp_method import AMQPMethod
# For AMQP version 0-9-1, ONLY
PROTOCOL_HEADER_FRAME = b"AMQP" + struct.pack("BBBB", 0, 0, 9, 1)
# AMQP defined end-byte marker for frames
... | 29.053691 | 93 | 0.633865 | 541 | 4,329 | 4.890943 | 0.268022 | 0.054044 | 0.027211 | 0.015117 | 0.04384 | 0.024187 | 0 | 0 | 0 | 0 | 0 | 0.009372 | 0.260568 | 4,329 | 148 | 94 | 29.25 | 0.817245 | 0.417186 | 0 | 0.089286 | 0 | 0 | 0.013108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160714 | false | 0.053571 | 0.071429 | 0.017857 | 0.482143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4aebfc53a07619ae4b198e822547692a791adcca | 796 | py | Python | src/shardmaster/tester.py | kevinychen/6824-project | 536475178d9d433152963efbc41ef2f6847031b4 | [
"MIT"
] | null | null | null | src/shardmaster/tester.py | kevinychen/6824-project | 536475178d9d433152963efbc41ef2f6847031b4 | [
"MIT"
] | null | null | null | src/shardmaster/tester.py | kevinychen/6824-project | 536475178d9d433152963efbc41ef2f6847031b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import subprocess
f = open('results.txt', 'w')
numFailures = 0
for i in range(1000):
p = subprocess.Popen("go test | egrep -v 'EOF|connection|broken'", stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = True)
# p = subprocess.Popen("go test -test.run TestUnreliable | egrep -v 'EOF|c... | 26.533333 | 160 | 0.59799 | 108 | 796 | 4.407407 | 0.509259 | 0.117647 | 0.067227 | 0.07563 | 0.403361 | 0.310924 | 0.310924 | 0.310924 | 0.310924 | 0.310924 | 0 | 0.009346 | 0.193467 | 796 | 29 | 161 | 27.448276 | 0.732087 | 0.224874 | 0 | 0 | 0 | 0 | 0.292683 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.05 | null | null | 0.3 | 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 | 0 | 0 | 1 |
4af1be03e7b01729e2d9ff008837e77bda1598e5 | 5,459 | py | Python | hsbc2ofx.py | evanj/hsbc2ofx | 0acec90e52d18e1e8ac721c032222eab738da69e | [
"BSD-3-Clause"
] | 2 | 2015-06-13T21:05:40.000Z | 2022-03-20T23:27:33.000Z | hsbc2ofx.py | evanj/hsbc2ofx | 0acec90e52d18e1e8ac721c032222eab738da69e | [
"BSD-3-Clause"
] | null | null | null | hsbc2ofx.py | evanj/hsbc2ofx | 0acec90e52d18e1e8ac721c032222eab738da69e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Takes a CSV from HSBCnet's Excel output and transforms it into OFX
# TODO: spec says account info is required: FID, INTU.BID, INTU.USERID
# SEE SPEC:
# https://fi.intuit.com/ofximplementation/dl/wc_spec.pdf
import csv
import math
import sys
import time
# Substitute your bank ID and account ID ... | 28.883598 | 198 | 0.62026 | 678 | 5,459 | 4.879056 | 0.39233 | 0.021161 | 0.015719 | 0.009069 | 0.145707 | 0.110641 | 0.110641 | 0.110641 | 0.057437 | 0.057437 | 0 | 0.021803 | 0.252244 | 5,459 | 188 | 199 | 29.037234 | 0.788584 | 0.224034 | 0 | 0.059259 | 0 | 0 | 0.440114 | 0.066065 | 0 | 0 | 0 | 0.005319 | 0.022222 | 0 | null | null | 0 | 0.02963 | null | null | 0.074074 | 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 | 0 | 0 | 1 |
4af2d5585f54e6580685c724e5e7160566da23df | 654 | py | Python | openslides_backend/action/actions/projection/update.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | openslides_backend/action/actions/projection/update.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | openslides_backend/action/actions/projection/update.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | from ....models.models import Projection
from ...generics.update import UpdateAction
from ...util.action_type import ActionType
from ...util.default_schema import DefaultSchema
from ...util.register import register_action
@register_action("projection.update", action_type=ActionType.BACKEND_INTERNAL)
class ProjectionU... | 28.434783 | 78 | 0.692661 | 65 | 654 | 6.738462 | 0.476923 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206422 | 654 | 22 | 79 | 29.727273 | 0.843931 | 0.045872 | 0 | 0 | 0 | 0 | 0.136513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4af59c9e6fa6b2729f5c78eddfba5e1289ca947a | 2,621 | py | Python | PlayArea/shifters/shift16.py | JetStarBlues/Nand-2-Tetris | c27b5c2ac659f1edb63d36d89bf87e226bc5672c | [
"MIT"
] | null | null | null | PlayArea/shifters/shift16.py | JetStarBlues/Nand-2-Tetris | c27b5c2ac659f1edb63d36d89bf87e226bc5672c | [
"MIT"
] | null | null | null | PlayArea/shifters/shift16.py | JetStarBlues/Nand-2-Tetris | c27b5c2ac659f1edb63d36d89bf87e226bc5672c | [
"MIT"
] | null | null | null | '''
As is can shift max '1111' -> 15 on one command...
So a call like shift(20) would need to be split up...
Thinking the user should do this when coding... or
could be stdlib fx that does this...
If want to do shift(16) in one cycle, can add s4 support
(and correspoinding 16muxes) to hardware... revisit as ... | 21.841667 | 78 | 0.441816 | 553 | 2,621 | 2.0217 | 0.162749 | 0.107335 | 0.085868 | 0.078712 | 0.402504 | 0.391771 | 0.341682 | 0.266547 | 0.266547 | 0.266547 | 0 | 0.152102 | 0.310187 | 2,621 | 120 | 79 | 21.841667 | 0.466261 | 0.193056 | 0 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0 | 0.064516 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4af6d096cc43d31c538001fefb970a4ec03925ec | 1,723 | py | Python | scraperwiki_test.py | PaolaSocorro/hb-project | 618496481f95abdd52c40aa9de5ed441c7f95fb9 | [
"MIT"
] | 13 | 2015-09-12T10:02:38.000Z | 2021-06-24T14:09:07.000Z | scraperwiki_test.py | PaolaSocorro/ComicShelf | 618496481f95abdd52c40aa9de5ed441c7f95fb9 | [
"MIT"
] | null | null | null | scraperwiki_test.py | PaolaSocorro/ComicShelf | 618496481f95abdd52c40aa9de5ed441c7f95fb9 | [
"MIT"
] | 3 | 2019-04-17T16:55:17.000Z | 2020-09-01T18:51:37.000Z | # import requests,bs4
"""
just playing with BeautifulSoup and scraping wikipedia
"""
# title = "Batman_Eternal"
# url = 'http://en.wikipedia.org/wiki/' + title
# response = requests.get(url, params={'action':'raw'})
# page = response.text
# response.raise_for_status()
# soup = bs4.BeautifulSoup(response.text,'h... | 20.511905 | 90 | 0.705746 | 232 | 1,723 | 5.133621 | 0.362069 | 0.041982 | 0.047019 | 0.060453 | 0.22838 | 0.209068 | 0.152813 | 0.152813 | 0.09068 | 0.09068 | 0 | 0.008119 | 0.142194 | 1,723 | 83 | 91 | 20.759036 | 0.7977 | 0.710389 | 0 | 0 | 0 | 0 | 0.196335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4af908bec95e246aae7ecff4fb623b1d86f3acd9 | 914 | py | Python | gemini/pass_manager/passes/plugin_gather_pass.py | codes1gn/gemini | 4b173ea583f2578244d1d0fb482ccb77818f7558 | [
"MIT"
] | null | null | null | gemini/pass_manager/passes/plugin_gather_pass.py | codes1gn/gemini | 4b173ea583f2578244d1d0fb482ccb77818f7558 | [
"MIT"
] | null | null | null | gemini/pass_manager/passes/plugin_gather_pass.py | codes1gn/gemini | 4b173ea583f2578244d1d0fb482ccb77818f7558 | [
"MIT"
] | null | null | null |
import ast
from gemini.utils import *
from ..transformer.plugin_gather_transformer import PluginGatherTransformer
from .pass_base import PassBase
__all__ = [
'PluginGatherPass',
]
class PluginGatherPass(PassBase):
__slots__ = [
'_solvers',
]
def __init__(self):
# type: (None) -> ... | 23.435897 | 75 | 0.655361 | 100 | 914 | 5.48 | 0.45 | 0.087591 | 0.060219 | 0.072993 | 0.109489 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0.005822 | 0.248359 | 914 | 38 | 76 | 24.052632 | 0.791849 | 0.021882 | 0 | 0 | 0 | 0 | 0.046016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.24 | 0.16 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4afafe665ec12a0e1e0b45f211566140df8fa8d5 | 8,115 | py | Python | Store/Store/settings/dev.py | BreezeDawn/DjangoStore | b1e9aee53f77c1a63ff0650f6dd464926c8cb939 | [
"MIT"
] | null | null | null | Store/Store/settings/dev.py | BreezeDawn/DjangoStore | b1e9aee53f77c1a63ff0650f6dd464926c8cb939 | [
"MIT"
] | null | null | null | Store/Store/settings/dev.py | BreezeDawn/DjangoStore | b1e9aee53f77c1a63ff0650f6dd464926c8cb939 | [
"MIT"
] | null | null | null | """
Django settings for Store project.
Generated by 'django-admin startproject' using Django 1.11.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import date... | 25.123839 | 93 | 0.638571 | 819 | 8,115 | 6.19536 | 0.423687 | 0.040993 | 0.030351 | 0.03449 | 0.199054 | 0.186047 | 0.155302 | 0.146236 | 0.073118 | 0.048877 | 0 | 0.035381 | 0.21984 | 8,115 | 323 | 94 | 25.123839 | 0.766072 | 0.211583 | 0 | 0.078125 | 1 | 0 | 0.52335 | 0.359189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.036458 | 0.015625 | 0 | 0.015625 | 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 | 0 | 0 | 0 | 1 |
4afbbeda94e1302f1e286c8ecb2e88a3ae68ec7d | 3,427 | py | Python | tagsinput/tagsinput.py | martinRenou/tagsinput | 2617715792a65455d26d2599b40ef4c0c15c3fb8 | [
"BSD-3-Clause"
] | null | null | null | tagsinput/tagsinput.py | martinRenou/tagsinput | 2617715792a65455d26d2599b40ef4c0c15c3fb8 | [
"BSD-3-Clause"
] | 1 | 2019-11-05T08:55:28.000Z | 2019-11-05T10:08:49.000Z | tagsinput/tagsinput.py | martinRenou/tagsinput | 2617715792a65455d26d2599b40ef4c0c15c3fb8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) QuantStack.
# Distributed under the terms of the Modified BSD License.
"""TagsInput class.
Represents a list of tags.
"""
from traitlets import (
Bool, CaselessStrEnum, CFloat, CInt, List, TraitError, Unicode, validate
)
from ipywidgets import Color, DOMWid... | 32.028037 | 121 | 0.670266 | 439 | 3,427 | 5.095672 | 0.243736 | 0.081359 | 0.12785 | 0.040232 | 0.408583 | 0.34734 | 0.271346 | 0.194457 | 0.126956 | 0.126956 | 0 | 0.001449 | 0.194631 | 3,427 | 106 | 122 | 32.330189 | 0.809058 | 0.069157 | 0 | 0.122807 | 0 | 0 | 0.149359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.052632 | 0 | 0.701754 | 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 | 0 | 1 | 0 | 0 | 1 |
4aff164893d2a86563a51c3d3caf42b21218048e | 2,262 | py | Python | multiproc_wrapper.py | GBTAmmoniaSurvey/LineFitting | ec5e59e6e8d11923638840aeffee1a3d65a573ee | [
"MIT"
] | null | null | null | multiproc_wrapper.py | GBTAmmoniaSurvey/LineFitting | ec5e59e6e8d11923638840aeffee1a3d65a573ee | [
"MIT"
] | 13 | 2019-01-26T12:03:06.000Z | 2019-09-06T22:15:47.000Z | multiproc_wrapper.py | GBTAmmoniaSurvey/LineFitting | ec5e59e6e8d11923638840aeffee1a3d65a573ee | [
"MIT"
] | 3 | 2019-01-26T11:44:39.000Z | 2019-02-27T18:16:40.000Z | #=======================================================================================================================
# a multiprocessing wrapper for nh3_testcubes.py
#=======================================================================================================================
import os
import numpy as n... | 39 | 120 | 0.607427 | 294 | 2,262 | 4.55102 | 0.435374 | 0.040359 | 0.008969 | 0.011958 | 0.074738 | 0.074738 | 0.074738 | 0.055306 | 0.055306 | 0.055306 | 0 | 0.008653 | 0.182582 | 2,262 | 57 | 121 | 39.684211 | 0.714981 | 0.29443 | 0 | 0 | 0 | 0 | 0.059283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.3 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4affa3cd79b8124507107d62b7e539dda2f1c0a0 | 323 | py | Python | projects/migrations/0002_auto_20210211_2353.py | plaf2000/webspec | 487ccccff088ddbda0e5e475aaad167a01f4aab2 | [
"MIT"
] | null | null | null | projects/migrations/0002_auto_20210211_2353.py | plaf2000/webspec | 487ccccff088ddbda0e5e475aaad167a01f4aab2 | [
"MIT"
] | null | null | null | projects/migrations/0002_auto_20210211_2353.py | plaf2000/webspec | 487ccccff088ddbda0e5e475aaad167a01f4aab2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2021-02-11 23:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Projects',
new_name='Project',
),
... | 17.944444 | 47 | 0.585139 | 34 | 323 | 5.470588 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084071 | 0.30031 | 323 | 17 | 48 | 19 | 0.738938 | 0.139319 | 0 | 0 | 1 | 0 | 0.126812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab0447d70f3f3b2fb0cf84b0eaab69ebe4cecad2 | 9,078 | py | Python | toontown/building/DistributedDoorAI.py | ksmit799/Toontown-Source | aee8032089f60b528ca9571c0d7cc774d414c085 | [
"MIT"
] | 8 | 2017-10-10T11:41:01.000Z | 2021-02-23T12:55:47.000Z | toontown/building/DistributedDoorAI.py | ksmit799/Toontown-Source | aee8032089f60b528ca9571c0d7cc774d414c085 | [
"MIT"
] | null | null | null | toontown/building/DistributedDoorAI.py | ksmit799/Toontown-Source | aee8032089f60b528ca9571c0d7cc774d414c085 | [
"MIT"
] | 2 | 2019-04-06T16:18:23.000Z | 2021-02-25T06:25:01.000Z | from otp.ai.AIBaseGlobal import *
from direct.task.Task import Task
from direct.distributed.ClockDelta import *
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM, State
from direct.distributed import DistributedObjectAI
from direct.fsm import State
class DistributedDoorAI(Distributed... | 34.648855 | 151 | 0.662371 | 860 | 9,078 | 6.944186 | 0.163953 | 0.061621 | 0.037006 | 0.027127 | 0.392498 | 0.282485 | 0.173476 | 0.16008 | 0.122907 | 0.105827 | 0 | 0.001859 | 0.229676 | 9,078 | 261 | 152 | 34.781609 | 0.852138 | 0 | 0 | 0.30622 | 0 | 0 | 0.074906 | 0.017405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244019 | false | 0.023923 | 0.033493 | 0.033493 | 0.401914 | 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 | 0 | 0 | 0 | 1 |
ab062a24b24696f60e988e4456e38a2ac55e14fc | 1,079 | py | Python | Examples/segments.py | pmartel/CircuitPyDisk | 4bcd71850dab9da84829126dfbd0e09948c3324f | [
"MIT"
] | null | null | null | Examples/segments.py | pmartel/CircuitPyDisk | 4bcd71850dab9da84829126dfbd0e09948c3324f | [
"MIT"
] | null | null | null | Examples/segments.py | pmartel/CircuitPyDisk | 4bcd71850dab9da84829126dfbd0e09948c3324f | [
"MIT"
] | null | null | null | # Basic example of setting digits on a LED segment display.
# This example and library is meant to work with Adafruit CircuitPython API.
# Author: Tony DiCola
# License: Public Domain
import time
# Import all board pins.
import board
import busio
# Import the HT16K33 LED segment module.
from adafruit_ht16k33 import ... | 25.093023 | 78 | 0.741427 | 169 | 1,079 | 4.727811 | 0.47929 | 0.030038 | 0.030038 | 0.060075 | 0.0801 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051339 | 0.169601 | 1,079 | 42 | 79 | 25.690476 | 0.840402 | 0.71177 | 0 | 0 | 0 | 0 | 0.013793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 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 | 0 | 0 | 0 | 1 |
ab142dcf889d4eba22e8b468a1935ad0babdbf54 | 17,074 | py | Python | application/cli.py | mvidalgarcia/3cli | 5b8136ef80abf4f72baefb5913b2e43a951a764b | [
"MIT"
] | null | null | null | application/cli.py | mvidalgarcia/3cli | 5b8136ef80abf4f72baefb5913b2e43a951a764b | [
"MIT"
] | null | null | null | application/cli.py | mvidalgarcia/3cli | 5b8136ef80abf4f72baefb5913b2e43a951a764b | [
"MIT"
] | null | null | null | import os # for clearing console
import re # regexp for validation
from application.aws.Connections import AWSConnection # AWS global connections
from application.aws.EC2 import EC2Instance # AWS EC2
from application.aws.Volumes import Volumes # AWS EC2 Volumes
from application.aws.S3 import S3Instance # AWS S... | 34.011952 | 108 | 0.597282 | 2,036 | 17,074 | 4.843811 | 0.131139 | 0.036504 | 0.058 | 0.034476 | 0.390489 | 0.351856 | 0.333807 | 0.315555 | 0.291422 | 0.270026 | 0 | 0.016454 | 0.305904 | 17,074 | 501 | 109 | 34.07984 | 0.815712 | 0.16733 | 0 | 0.416382 | 0 | 0 | 0.212381 | 0.002124 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006826 | 0.044369 | null | null | 0.180887 | 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 | 0 | 0 | 1 |
ab15d6c9b267285015b1503e98eddc053fa37240 | 509 | py | Python | openprompt/utils/reproduciblity.py | puraminy/OpenPrompt | 49f0ed9719bb6285e94c746de4511991c848492c | [
"Apache-2.0"
] | 979 | 2021-09-30T15:32:58.000Z | 2022-03-31T11:23:03.000Z | openprompt/utils/reproduciblity.py | Spritebai/OpenPrompt | bd9ea544ab144d94af32d245101ba35c9d5a5a65 | [
"Apache-2.0"
] | 104 | 2021-10-01T07:56:33.000Z | 2022-03-31T14:39:09.000Z | openprompt/utils/reproduciblity.py | Spritebai/OpenPrompt | bd9ea544ab144d94af32d245101ba35c9d5a5a65 | [
"Apache-2.0"
] | 121 | 2021-09-30T16:09:53.000Z | 2022-03-31T09:39:34.000Z |
import random
import numpy as np
import torch
from openprompt.utils.logging import logger
from typing import *
def set_seed(seed:Optional[int] = None):
"""set seed for reproducibility
Args:
seed (:obj:`int`): the seed to seed everything for reproducibility. if None, do nothing.
"""
if seed:
... | 21.208333 | 96 | 0.650295 | 70 | 509 | 4.671429 | 0.485714 | 0.097859 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253438 | 509 | 24 | 97 | 21.208333 | 0.860526 | 0.251473 | 0 | 0 | 0 | 0 | 0.069061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ab1bccd6a42bd13f4b33fa601aa347e234f54e97 | 12,988 | py | Python | TONIC-master/tags/2.0_alpha/HighPerformanceComputing/TNC_HPC_ExtractFeatures.py | jup36/MatlabNeuralDataPipeline | 0c0a2be201cf382eef8d41858df2f9d9b8456351 | [
"BSD-2-Clause"
] | null | null | null | TONIC-master/tags/2.0_alpha/HighPerformanceComputing/TNC_HPC_ExtractFeatures.py | jup36/MatlabNeuralDataPipeline | 0c0a2be201cf382eef8d41858df2f9d9b8456351 | [
"BSD-2-Clause"
] | null | null | null | TONIC-master/tags/2.0_alpha/HighPerformanceComputing/TNC_HPC_ExtractFeatures.py | jup36/MatlabNeuralDataPipeline | 0c0a2be201cf382eef8d41858df2f9d9b8456351 | [
"BSD-2-Clause"
] | 1 | 2021-01-03T16:54:26.000Z | 2021-01-03T16:54:26.000Z | #! /usr/bin/python
#
# Copyright (C) 2013 by Howard Hughes Medical Institute.
#
# Purpose: submit Matlab feature extraction job(s) to cluster
# ------------------------- imports -------------------------
import os, glob, gc
import shutil, commands
import sys, re, optparse
tonic_home = "/grou... | 45.57193 | 158 | 0.563212 | 1,492 | 12,988 | 4.674263 | 0.182306 | 0.038715 | 0.032263 | 0.02581 | 0.39002 | 0.321336 | 0.267565 | 0.22971 | 0.194006 | 0.155148 | 0 | 0.006955 | 0.258238 | 12,988 | 284 | 159 | 45.732394 | 0.71694 | 0.108793 | 0 | 0.299559 | 0 | 0 | 0.181645 | 0.034805 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013216 | null | null | 0.048458 | 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 | 0 | 0 | 1 |
ab28452bfd2bcab1a60389892a54878f7c64551c | 4,208 | py | Python | deepinterpolation/generic.py | mitchclough/deepinterpolation | 9f89780a073f51189fee37873c595ae37ff8ca8a | [
"Unlicense"
] | 1 | 2021-05-25T14:47:44.000Z | 2021-05-25T14:47:44.000Z | deepinterpolation/generic.py | mitchclough/deepinterpolation | 9f89780a073f51189fee37873c595ae37ff8ca8a | [
"Unlicense"
] | null | null | null | deepinterpolation/generic.py | mitchclough/deepinterpolation | 9f89780a073f51189fee37873c595ae37ff8ca8a | [
"Unlicense"
] | 2 | 2021-05-24T18:01:01.000Z | 2021-06-24T18:56:56.000Z | import json
import os
class JsonLoader:
"""
JsonLoader is used to load the data from all structured json files associated with the DeepInterpolation package.
"""
def __init__(self, path):
self.path = path
self.load_json()
def load_json(self):
"""
This function lo... | 29.633803 | 131 | 0.644249 | 528 | 4,208 | 4.996212 | 0.257576 | 0.034117 | 0.025019 | 0.033359 | 0.128506 | 0.113343 | 0.113343 | 0.09818 | 0.064822 | 0.064822 | 0 | 0.001349 | 0.295152 | 4,208 | 141 | 132 | 29.843972 | 0.888065 | 0.427757 | 0 | 0.085106 | 0 | 0 | 0.023785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.12766 | 0 | 0.510638 | 0.021277 | 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 | 0 | 1 | 0 | 0 | 1 |
ab3499c8db481c0eb24d70f2b12f810abb710bab | 506 | py | Python | nipype/tests/test_nipype.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2019-03-25T14:11:18.000Z | 2019-03-25T14:11:18.000Z | nipype/tests/test_nipype.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2017-01-05T01:24:33.000Z | 2017-01-05T01:24:33.000Z | nipype/tests/test_nipype.py | wtriplett/nipype | 388f140fceaf55438a987e9cdfa2a8e995428afd | [
"Apache-2.0"
] | null | null | null | from .. import get_info
from ..info import get_nipype_gitversion
import pytest
def test_nipype_info():
exception_not_raised = True
try:
get_info()
except Exception:
exception_not_raised = False
assert exception_not_raised
@pytest.mark.skipif(
not get_nipype_gitversion(),
reas... | 23 | 64 | 0.717391 | 68 | 506 | 5.014706 | 0.455882 | 0.105572 | 0.222874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002457 | 0.195652 | 506 | 21 | 65 | 24.095238 | 0.835381 | 0.075099 | 0 | 0 | 0 | 0 | 0.130901 | 0.045064 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 |
ab353e091572104b39d727140be851189c66aa5f | 1,596 | py | Python | testing/python3/_test_helpers.py | deepio/DCGM | d10273f18fb3d425da752ab6bb7e07af3d18caec | [
"Apache-2.0"
] | 85 | 2021-02-03T19:58:50.000Z | 2022-03-21T08:00:11.000Z | testing/python3/_test_helpers.py | deepio/DCGM | d10273f18fb3d425da752ab6bb7e07af3d18caec | [
"Apache-2.0"
] | 19 | 2021-03-19T08:13:58.000Z | 2022-03-17T02:50:41.000Z | testing/python3/_test_helpers.py | deepio/DCGM | d10273f18fb3d425da752ab6bb7e07af3d18caec | [
"Apache-2.0"
] | 17 | 2021-02-04T06:47:30.000Z | 2022-03-21T22:14:03.000Z | # Copyright (c) 2020, NVIDIA CORPORATION. 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 required by appli... | 29.555556 | 74 | 0.688596 | 220 | 1,596 | 4.868182 | 0.518182 | 0.056022 | 0.024276 | 0.029879 | 0.029879 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006557 | 0.235589 | 1,596 | 53 | 75 | 30.113208 | 0.871311 | 0.47807 | 0 | 0 | 0 | 0 | 0.04005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.178571 | 0.035714 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
ab3a586e0fe10eee8969f9172692883d71cb4ee2 | 2,264 | py | Python | lte/gateway/python/magma/enodebd/data_models/transform_for_magma.py | ilyacodesFB/magma | 42552da902d0cef71beea19e5e5153cb9cf9ab8f | [
"BSD-3-Clause"
] | 3 | 2019-08-16T17:03:09.000Z | 2019-08-23T21:57:48.000Z | lte/gateway/python/magma/enodebd/data_models/transform_for_magma.py | irsols-devops/magma | 1f01a86e0515ffeef689e863db6daa7b31a57e0b | [
"BSD-3-Clause"
] | null | null | null | lte/gateway/python/magma/enodebd/data_models/transform_for_magma.py | irsols-devops/magma | 1f01a86e0515ffeef689e863db6daa7b31a57e0b | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
import logging
import textwr... | 26.952381 | 75 | 0.651943 | 313 | 2,264 | 4.597444 | 0.434505 | 0.141765 | 0.022238 | 0.035441 | 0.126477 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038101 | 0.246466 | 2,264 | 83 | 76 | 27.277108 | 0.805393 | 0.34364 | 0 | 0 | 0 | 0 | 0.071174 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0.047619 | 0.357143 | 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 | 0 | 0 | 0 | 1 |
ab3e50b16b5810307d7d9adec97a9c70c9e96aa1 | 370 | py | Python | 30-Days-of-Code/30-sorting.py | lakshika1064/Hackerrank_Solutions-Python | 50ca205c5a3a9a4f294dcda077c390209eb57ecc | [
"MIT"
] | 1 | 2020-08-18T08:14:41.000Z | 2020-08-18T08:14:41.000Z | 30-Days-of-Code/30-sorting.py | lakshika1064/Hackerrank_Solutions-Python | 50ca205c5a3a9a4f294dcda077c390209eb57ecc | [
"MIT"
] | null | null | null | 30-Days-of-Code/30-sorting.py | lakshika1064/Hackerrank_Solutions-Python | 50ca205c5a3a9a4f294dcda077c390209eb57ecc | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
n = int(input().strip())
a = list(map(int, input().strip().split(' ')))
# Write Your Code Here
swa = 0
for i in range(n):
for j in range(i+1,n):
if a[i]>a[j]:
a[i],a[j]=a[j],a[i]
swa+= 1
print("Array is sorted in "+str(swa)+" swaps.")
print("First Element:... | 21.764706 | 47 | 0.537838 | 69 | 370 | 2.884058 | 0.492754 | 0.030151 | 0.045226 | 0.040201 | 0.045226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.221622 | 370 | 16 | 48 | 23.125 | 0.670139 | 0.091892 | 0 | 0 | 0 | 0 | 0.167665 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.25 | 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 | 0 | 0 | 0 | 1 |
ab42012d53956cf344bcc66fe77aa3bc8c186006 | 9,627 | py | Python | genomic_data_service/searches/types.py | ENCODE-DCC/genomic-data-service | 954017a5bcc5f448fbe2867768186df5e066c67c | [
"MIT"
] | 3 | 2020-10-26T02:15:55.000Z | 2022-01-26T18:39:09.000Z | genomic_data_service/searches/types.py | ENCODE-DCC/genomic-data-service | 954017a5bcc5f448fbe2867768186df5e066c67c | [
"MIT"
] | 3 | 2021-08-17T02:01:54.000Z | 2022-03-30T17:14:02.000Z | genomic_data_service/searches/types.py | ENCODE-DCC/genomic-data-service | 954017a5bcc5f448fbe2867768186df5e066c67c | [
"MIT"
] | 1 | 2022-03-24T21:15:34.000Z | 2022-03-24T21:15:34.000Z | types = [
{
'name': 'RNAExpression',
'item_type': 'rna-expression',
'schema': {
'title': 'RNAExpression',
'description': 'Schema for RNA-seq expression',
'properties': {
'uuid': {
'title': 'UUID',
... | 38.354582 | 88 | 0.216578 | 358 | 9,627 | 5.72067 | 0.170391 | 0.136719 | 0.097656 | 0.03418 | 0.376465 | 0.352539 | 0.261719 | 0.186523 | 0.121094 | 0.071289 | 0 | 0 | 0.683494 | 9,627 | 250 | 89 | 38.508 | 0.672137 | 0 | 0 | 0.329317 | 0 | 0 | 0.22198 | 0.045497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab421a9d3c96709ab4ad27cf3a2f82299e56d228 | 1,103 | py | Python | Machine_Learning/Decision_Trees/treeds.py | estradjm/Class_Work | dc32f5d15ea53b3cace0a3bd873eab385bfb680d | [
"Apache-2.0"
] | 7 | 2018-10-31T08:22:17.000Z | 2021-11-19T00:41:35.000Z | Machine_Learning/Decision_Trees/treeds.py | estradjm/Class_Work | dc32f5d15ea53b3cace0a3bd873eab385bfb680d | [
"Apache-2.0"
] | null | null | null | Machine_Learning/Decision_Trees/treeds.py | estradjm/Class_Work | dc32f5d15ea53b3cace0a3bd873eab385bfb680d | [
"Apache-2.0"
] | 1 | 2020-03-23T01:19:59.000Z | 2020-03-23T01:19:59.000Z | #!/bin/python
''
treeds.py for tree data structure, taken from StackOverflow at https://stackoverflow.com/questions/2358045/how-can-i-implement-a-tree-in-python-are-there-any-built-in-data-structures-in
''
class Node:
"""
Class Node
"""
def __init__(self, value):
self.left = None
self.... | 26.261905 | 185 | 0.592022 | 145 | 1,103 | 4.475862 | 0.434483 | 0.049307 | 0.03698 | 0.049307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009162 | 0.307344 | 1,103 | 41 | 186 | 26.902439 | 0.840314 | 0.097008 | 0 | 0.105263 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab4a706a92eba4ba92c8811053fc3c76ef9e600e | 1,321 | py | Python | experiment_utils/utils/jupyter_utils.py | ayasyrev/experiment_utils | 4079a2b38a379e1e05dedf6127995f58334ef66f | [
"Apache-2.0"
] | null | null | null | experiment_utils/utils/jupyter_utils.py | ayasyrev/experiment_utils | 4079a2b38a379e1e05dedf6127995f58334ef66f | [
"Apache-2.0"
] | 14 | 2021-09-24T12:14:15.000Z | 2021-11-22T07:04:08.000Z | experiment_utils/utils/jupyter_utils.py | ayasyrev/experiment_utils | 4079a2b38a379e1e05dedf6127995f58334ef66f | [
"Apache-2.0"
] | null | null | null | from pathlib import Path, PosixPath
from typing import List, Union
from hydra import compose, initialize_config_dir
from omegaconf import DictConfig
from experiment_utils import __path__ as experiment_utils_path
experiment_utils_path = experiment_utils_path[0]
def initialize_config(overrides: List[str] = [],
... | 36.694444 | 83 | 0.675246 | 160 | 1,321 | 5.35625 | 0.31875 | 0.073512 | 0.088681 | 0.080513 | 0.138856 | 0.138856 | 0 | 0 | 0 | 0 | 0 | 0.001011 | 0.251325 | 1,321 | 35 | 84 | 37.742857 | 0.865521 | 0.3838 | 0 | 0 | 0 | 0 | 0.013038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ab5783bb5779e81ccad418850d10598811ce9d1d | 2,871 | py | Python | babynames/babynames.py | ubicu/google-python-exercises | b81b34caec0868d36511810df27c71d11cd9afd2 | [
"Apache-2.0"
] | null | null | null | babynames/babynames.py | ubicu/google-python-exercises | b81b34caec0868d36511810df27c71d11cd9afd2 | [
"Apache-2.0"
] | null | null | null | babynames/babynames.py | ubicu/google-python-exercises | b81b34caec0868d36511810df27c71d11cd9afd2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import sys
import re
"""Baby Names exercise
Define the extract_names() function below and c... | 24.330508 | 79 | 0.642982 | 454 | 2,871 | 4.039648 | 0.396476 | 0.017448 | 0.019629 | 0.022901 | 0.017448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018893 | 0.207245 | 2,871 | 117 | 80 | 24.538462 | 0.786907 | 0.245907 | 0 | 0.152174 | 0 | 0 | 0.11805 | 0.035928 | 0 | 0 | 0 | 0.008547 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.043478 | 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 | 0 | 0 | 1 |
ab5a75d232248b826833fe057714f9ecbc2d32a1 | 863 | py | Python | armulator/armv6/opcodes/abstract_opcodes/pkhbt.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/abstract_opcodes/pkhbt.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/abstract_opcodes/pkhbt.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode
from armulator.armv6.shift import shift
class Pkhbt(AbstractOpcode):
def __init__(self, tb_form, m, d, n, shift_t, shift_n):
super(Pkhbt, self).__init__()
self.tb_form = tb_form
self.m = m
self.d = d
self.n ... | 39.227273 | 98 | 0.639629 | 124 | 863 | 4.233871 | 0.306452 | 0.057143 | 0.07619 | 0.142857 | 0.220952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.251448 | 863 | 21 | 99 | 41.095238 | 0.783282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ab5de3638555125456d0b18a38a943420e30c47f | 1,286 | py | Python | Dj_Learn_start/models.py | Daneev/Django_test | 7c0cf5ab28b3faba3cd8dfad60a3194a3eff11d6 | [
"Apache-2.0"
] | null | null | null | Dj_Learn_start/models.py | Daneev/Django_test | 7c0cf5ab28b3faba3cd8dfad60a3194a3eff11d6 | [
"Apache-2.0"
] | null | null | null | Dj_Learn_start/models.py | Daneev/Django_test | 7c0cf5ab28b3faba3cd8dfad60a3194a3eff11d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
# Create your models here.
from Apteki.models import Lekarstv
class Post(models.Model):
title = models.CharField(u"Заголовок", max_length=150)
text = models.TextField(u"Текст")
date_create = models.DateTimeField(u"Дата создания", auto_now_add=True)
... | 30.619048 | 83 | 0.696734 | 156 | 1,286 | 5.551282 | 0.442308 | 0.088915 | 0.038106 | 0.032333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012405 | 0.18507 | 1,286 | 42 | 84 | 30.619048 | 0.813931 | 0.146967 | 0 | 0.166667 | 0 | 0 | 0.163453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.041667 | 0.791667 | 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 | 0 | 1 | 0 | 0 | 1 |
ab5eedec47f48d9252743f656cce6a39ea0f168c | 2,190 | py | Python | Lib/test/test_new.py | SaadBazaz/ChinesePython | 800955539dda912d4a1621bcf5a700aaaddc012f | [
"CNRI-Python-GPL-Compatible"
] | 3 | 2022-01-30T20:08:24.000Z | 2022-02-12T08:51:12.000Z | Lib/test/test_new.py | SaadBazaz/ChinesePython | 800955539dda912d4a1621bcf5a700aaaddc012f | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/test/test_new.py | SaadBazaz/ChinesePython | 800955539dda912d4a1621bcf5a700aaaddc012f | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | from test_support import verbose, verify
import sys
import new
class Eggs:
def get_yolks(self):
return self.yolks
print 'new.module()'
m = new.module('Spam')
if verbose:
print m
m.Eggs = Eggs
sys.modules['Spam'] = m
import Spam
def get_more_yolks(self):
return self.yolks + 3
print 'new.classobj(... | 25.764706 | 75 | 0.638813 | 340 | 2,190 | 3.973529 | 0.35 | 0.035529 | 0.062176 | 0.028127 | 0.214656 | 0.096225 | 0.096225 | 0.096225 | 0.096225 | 0.096225 | 0 | 0.012181 | 0.212785 | 2,190 | 84 | 76 | 26.071429 | 0.771462 | 0.230594 | 0 | 0.212121 | 0 | 0 | 0.231045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075758 | null | null | 0.181818 | 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 | 0 | 0 | 1 |
db42a58820a4df37109ae6c32bb9257445f23ec9 | 1,621 | py | Python | sdl2/sdl2_framerate.py | vaiorabbit/waypoint-route-planning | 50dc9cc4da6172739497567f627ec31c215be031 | [
"Zlib"
] | null | null | null | sdl2/sdl2_framerate.py | vaiorabbit/waypoint-route-planning | 50dc9cc4da6172739497567f627ec31c215be031 | [
"Zlib"
] | null | null | null | sdl2/sdl2_framerate.py | vaiorabbit/waypoint-route-planning | 50dc9cc4da6172739497567f627ec31c215be031 | [
"Zlib"
] | null | null | null | # Python-SDL2 : Yet another SDL2 wrapper for Python
#
# * https://github.com/vaiorabbit/python-sdl2
#
# [NOTICE] This is an automatically generated file.
import ctypes
from .api import SDL2_API_NAMES, SDL2_API_ARGS_MAP, SDL2_API_RETVAL_MAP
from .api import SDL2_GFX_API_NAMES, SDL2_GFX_API_ARGS_MAP, SDL2_GFX_AP... | 31.784314 | 84 | 0.727329 | 229 | 1,621 | 4.659389 | 0.253275 | 0.118088 | 0.168697 | 0.084349 | 0.524836 | 0.382381 | 0.223055 | 0.223055 | 0.223055 | 0.12746 | 0 | 0.017778 | 0.167181 | 1,621 | 50 | 85 | 32.42 | 0.772593 | 0.114127 | 0 | 0 | 1 | 0 | 0.213401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 1 |
db4bfe0636380bd018379cadefe176280b00e5fb | 1,706 | py | Python | apps/basic_channel/dialog_battery_level/scripts/stk/logging.py | Cognitive-Robotics-UOS/open-pepper-project | 7a878e69751c9e477cc622cd423c4baf056082c2 | [
"MIT"
] | 7 | 2018-09-27T12:57:17.000Z | 2021-11-05T16:45:46.000Z | apps/basic_channel/dialog_adjust_volume/scripts/stk/logging.py | Cognitive-Robotics-UOS/open-pepper-project | 7a878e69751c9e477cc622cd423c4baf056082c2 | [
"MIT"
] | 1 | 2021-06-18T17:45:55.000Z | 2021-06-18T17:45:55.000Z | app/scripts/dxhomefinder/stk/logging.py | softbankrobotics-labs/pepper-proactive-mobility | a9f6132ee5afd9bb6583741d9d4c481bd9597c65 | [
"BSD-3-Clause"
] | 1 | 2018-11-29T18:00:35.000Z | 2018-11-29T18:00:35.000Z | """
stk.logging.py
Utility library for logging with qi.
"""
__version__ = "0.1.2"
__copyright__ = "Copyright 2015, Aldebaran Robotics"
__author__ = 'ekroeger'
__email__ = 'ekroeger@aldebaran.com'
import functools
import traceback
import qi
def get_logger(session, app_id):
"""Returns a qi logger object."""
... | 26.65625 | 68 | 0.644197 | 205 | 1,706 | 5.209756 | 0.473171 | 0.029963 | 0.050562 | 0.041199 | 0.28839 | 0.28839 | 0.226592 | 0.226592 | 0.226592 | 0.226592 | 0 | 0.005604 | 0.267878 | 1,706 | 63 | 69 | 27.079365 | 0.84948 | 0.259672 | 0 | 0.384615 | 0 | 0 | 0.078624 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.051282 | 0.076923 | 0 | 0.410256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db4de86853d97976ad700944b0be73e788145111 | 2,424 | py | Python | sps/sps/doctype/attendance_sheet/attendance_sheet.py | tushar7724/SPS | 4a32b740830117327b3597d4e16127ac0a90a3ef | [
"MIT"
] | null | null | null | sps/sps/doctype/attendance_sheet/attendance_sheet.py | tushar7724/SPS | 4a32b740830117327b3597d4e16127ac0a90a3ef | [
"MIT"
] | null | null | null | sps/sps/doctype/attendance_sheet/attendance_sheet.py | tushar7724/SPS | 4a32b740830117327b3597d4e16127ac0a90a3ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, TUSHAR TAJNE and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import cint, flt, add_months, today, date_diff, getdate, add_days, cstr, nowdate
from frappe.model.document import Docume... | 45.735849 | 179 | 0.684818 | 367 | 2,424 | 4.359673 | 0.321526 | 0.04875 | 0.0375 | 0.031875 | 0.10875 | 0.0775 | 0 | 0 | 0 | 0 | 0 | 0.008915 | 0.167079 | 2,424 | 52 | 180 | 46.615385 | 0.783556 | 0.125825 | 0 | 0 | 0 | 0.022222 | 0.291963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.022222 | 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 | 0 | 0 | 1 |
db59bfc21ba12fbb6a96a367734dab63e7c94fb6 | 4,485 | py | Python | ensography/settings/__init__.py | makiwara/ensography | 37a6762b5016657a83d57d0f73e42859874d765e | [
"MIT"
] | null | null | null | ensography/settings/__init__.py | makiwara/ensography | 37a6762b5016657a83d57d0f73e42859874d765e | [
"MIT"
] | null | null | null | ensography/settings/__init__.py | makiwara/ensography | 37a6762b5016657a83d57d0f73e42859874d765e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# from trash import *
# вот так можно добавлять template helpers
# INSTALLED_APPS.append('your_helpers')
# для выкладки стенда на какой-то сервер необходимо сделать там файл host_settings.py согласно hosts.py
"""
Django settings for testadmin project.
For more information on this file, see
... | 27.685185 | 103 | 0.727536 | 541 | 4,485 | 5.863216 | 0.426987 | 0.040984 | 0.041614 | 0.047289 | 0.172762 | 0.094262 | 0.071564 | 0.071564 | 0.025221 | 0 | 0 | 0.021609 | 0.14359 | 4,485 | 161 | 104 | 27.857143 | 0.804218 | 0.279376 | 0 | 0 | 0 | 0.010526 | 0.515776 | 0.43955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021053 | 0 | 0.021053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db5babc74d639d0c5932b35f22103aa81c550a26 | 2,334 | py | Python | 2020/day_18/day_18.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | null | null | null | 2020/day_18/day_18.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | null | null | null | 2020/day_18/day_18.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | 1 | 2020-12-01T16:49:12.000Z | 2020-12-01T16:49:12.000Z | with open('in') as f:
data = list(map(lambda l: list(l.strip().replace(' ', '')), f.readlines()))
def evaluate(e):
value = None
operation = None
i = 0
while i < len(e):
c = e[i]
if c in '+*':
operation = c
elif c in '0123456789':
c = int(c)
... | 22.228571 | 81 | 0.328192 | 253 | 2,334 | 2.960474 | 0.217391 | 0.021362 | 0.037383 | 0.042724 | 0.344459 | 0.267023 | 0.200267 | 0.200267 | 0.200267 | 0.200267 | 0 | 0.036212 | 0.53856 | 2,334 | 104 | 82 | 22.442308 | 0.659239 | 0 | 0 | 0.419753 | 0 | 0 | 0.037275 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.049383 | false | 0 | 0 | 0.024691 | 0.098765 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db5befcb9416bcf59f1c4b5f25995f9df0da29f2 | 314 | py | Python | mayan/apps/mime_types/apps.py | bonitobonita24/Mayan-EDMS | 7845fe0e1e83c81f5d227a16116397a3d3883b85 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/mime_types/apps.py | bonitobonita24/Mayan-EDMS | 7845fe0e1e83c81f5d227a16116397a3d3883b85 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/mime_types/apps.py | bonitobonita24/Mayan-EDMS | 7845fe0e1e83c81f5d227a16116397a3d3883b85 | [
"Apache-2.0"
] | 114 | 2015-01-08T20:21:05.000Z | 2018-12-10T19:07:53.000Z | from django.utils.translation import ugettext_lazy as _
from mayan.apps.common.apps import MayanAppConfig
class MIMETypesApp(MayanAppConfig):
name = 'mayan.apps.mime_types'
has_tests = True
verbose_name = _('MIME types')
def ready(self, *args, **kwargs):
super().ready(*args, **kwargs)
| 24.153846 | 55 | 0.707006 | 39 | 314 | 5.538462 | 0.692308 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178344 | 314 | 12 | 56 | 26.166667 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.098726 | 0.066879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
db5d2ec67554f943e52273c664c72c06292cc7df | 2,470 | py | Python | app/migrations/0003_auto_20220109_1947.py | derrickmacharia/The-Hood | be1da72b3a562594a02484ba01f6e4965f2d099a | [
"MIT"
] | 1 | 2022-01-10T15:14:12.000Z | 2022-01-10T15:14:12.000Z | app/migrations/0003_auto_20220109_1947.py | derrickmacharia/The-Hood | be1da72b3a562594a02484ba01f6e4965f2d099a | [
"MIT"
] | null | null | null | app/migrations/0003_auto_20220109_1947.py | derrickmacharia/The-Hood | be1da72b3a562594a02484ba01f6e4965f2d099a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-09 16:47
import cloudinary.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
(... | 49.4 | 152 | 0.633603 | 269 | 2,470 | 5.635688 | 0.327138 | 0.036939 | 0.055409 | 0.087071 | 0.588391 | 0.55277 | 0.459103 | 0.459103 | 0.378628 | 0.348945 | 0 | 0.027368 | 0.230769 | 2,470 | 49 | 153 | 50.408163 | 0.770526 | 0.018219 | 0 | 0.302326 | 1 | 0 | 0.114321 | 0.009492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.093023 | 0 | 0.162791 | 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 | 0 | 0 | 0 | 1 |
db5ee766265714c1e5bfeb90d2abd966eeece1c7 | 879 | py | Python | SimpleSymbols.py | JunoJunho/coderbyte_challenge | c272116b6b64e4cfb91ded7a614e7e072c77bb8c | [
"MIT"
] | null | null | null | SimpleSymbols.py | JunoJunho/coderbyte_challenge | c272116b6b64e4cfb91ded7a614e7e072c77bb8c | [
"MIT"
] | null | null | null | SimpleSymbols.py | JunoJunho/coderbyte_challenge | c272116b6b64e4cfb91ded7a614e7e072c77bb8c | [
"MIT"
] | null | null | null | # SimpleSymbols.py
# Using the Python language, have the function SimpleSymbols(str) take the str parameter being passed and determine if it is an acceptable sequence by either returning the string true or false. The str parameter will be composed of + and = symbols with several letters between them (ie. ++d+===+c++==a... | 48.833333 | 485 | 0.65529 | 137 | 879 | 4.153285 | 0.554745 | 0.063269 | 0.052724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.25256 | 879 | 17 | 486 | 51.705882 | 0.861492 | 0.618885 | 0 | 0.2 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db626bdfed64de906d201eba01fa63b64d5e84da | 2,324 | py | Python | spackl/db/base.py | aaronbiller/spackl | 71906a3da6470f67bff19c42bd0f1f8748c5056f | [
"MIT"
] | null | null | null | spackl/db/base.py | aaronbiller/spackl | 71906a3da6470f67bff19c42bd0f1f8748c5056f | [
"MIT"
] | null | null | null | spackl/db/base.py | aaronbiller/spackl | 71906a3da6470f67bff19c42bd0f1f8748c5056f | [
"MIT"
] | null | null | null | import os
from spackl.util import ABC, abstractmethod
def get_default_db_conn_kwargs():
"""
Generate dummy kwargs for a default connection
"""
uname = os.uname()[1]
return {
'database': uname,
'username': uname,
'password': None,
'host': 'localhost',
'p... | 23.24 | 92 | 0.555077 | 233 | 2,324 | 5.424893 | 0.330472 | 0.067247 | 0.053797 | 0.033228 | 0.439873 | 0.439873 | 0.439873 | 0.386076 | 0.322785 | 0.322785 | 0 | 0.003425 | 0.371773 | 2,324 | 99 | 93 | 23.474747 | 0.862329 | 0.362737 | 0 | 0.243902 | 1 | 0 | 0.036028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0.02439 | 0.04878 | 0.02439 | 0.414634 | 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 | 0 | 0 | 0 | 1 |
db64943bf899969630fa87c3a4700e4fc9272e6c | 4,776 | py | Python | python/py_basic_ide/pyBASIC/runner.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | 3 | 2015-11-24T17:06:58.000Z | 2018-05-01T14:03:57.000Z | python/py_basic_ide/pyBASIC/runner.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | python/py_basic_ide/pyBASIC/runner.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | import time
debug = False
def error_fx(text):
'''The default error handling, print the text to the console.
replace with your own function if you want, have it print to your
wx application or whatever.'''
sys.stderr.write(text)
def output_fx(text):
'''The default output handling, print text to... | 25.816216 | 71 | 0.64175 | 726 | 4,776 | 4.095041 | 0.232782 | 0.070636 | 0.018836 | 0.024218 | 0.291961 | 0.257652 | 0.257652 | 0.205853 | 0.17188 | 0.138581 | 0 | 0.010565 | 0.207286 | 4,776 | 184 | 72 | 25.956522 | 0.774696 | 0.114112 | 0 | 0.289256 | 0 | 0 | 0.087578 | 0.009532 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008264 | null | null | 0.016529 | 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 | 0 | 0 | 1 |
db657cc19a0a68abd98f055f8180a8ee30ce9e93 | 368 | py | Python | Ecommerece/ecommerce/user/signup.py | JGabriel-AbreuM/Ecommerce | e9dbf6b5f58f540891ab46834b25926f5f4d4f9a | [
"MIT"
] | null | null | null | Ecommerece/ecommerce/user/signup.py | JGabriel-AbreuM/Ecommerce | e9dbf6b5f58f540891ab46834b25926f5f4d4f9a | [
"MIT"
] | null | null | null | Ecommerece/ecommerce/user/signup.py | JGabriel-AbreuM/Ecommerce | e9dbf6b5f58f540891ab46834b25926f5f4d4f9a | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import get_user_model
class SignupForm(forms.Form):
CHOICES = (
("VD", ("Vendedor")),
("CP", ("Comprador"))
)
type = forms.ChoiceField(choices=CHOICES, label="Tipo")
def signup(self, request, user):
user.type = se... | 23 | 62 | 0.589674 | 41 | 368 | 5.219512 | 0.682927 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269022 | 368 | 15 | 63 | 24.533333 | 0.795539 | 0 | 0 | 0 | 0 | 0 | 0.082386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
db693e9379360a739ea4478810a38b2955c64914 | 3,241 | py | Python | web/app/models.py | aqd14/delter-airlines-reservation | ae2844b5d07541ea822765e7aebccf9911a10abd | [
"MIT"
] | 1 | 2019-09-11T13:24:58.000Z | 2019-09-11T13:24:58.000Z | web/app/models.py | aqd14/delter-airlines-reservation | ae2844b5d07541ea822765e7aebccf9911a10abd | [
"MIT"
] | null | null | null | web/app/models.py | aqd14/delter-airlines-reservation | ae2844b5d07541ea822765e7aebccf9911a10abd | [
"MIT"
] | null | null | null | # models.py
from app import db
class Passenger(db.Model):
__tablename__ = "passengers"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(30), nullable=False)
dob = db.Column(db.Date, nullable=False)
email = db.Column(db.String(30), unique=True, nullable=False)
address = ... | 32.41 | 124 | 0.652268 | 391 | 3,241 | 5.222506 | 0.161125 | 0.094025 | 0.117532 | 0.083252 | 0.31048 | 0.284525 | 0.284525 | 0.141038 | 0.060235 | 0 | 0 | 0.007433 | 0.211355 | 3,241 | 99 | 125 | 32.737374 | 0.791471 | 0.002777 | 0 | 0.134615 | 0 | 0 | 0.107587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.076923 | 0.019231 | 0.057692 | 0.865385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db69573160af8881ebfbaf6388cf6dba8267b53d | 2,120 | py | Python | python/paddle_fl/mpc/tests/unittests/privc/test_sigmoid_op.py | barrierye/PaddleFL | eff6ef28491fa2011686ca3daa4f680e5ef83deb | [
"Apache-2.0"
] | 379 | 2019-09-27T14:26:42.000Z | 2022-03-29T14:28:12.000Z | python/paddle_fl/mpc/tests/unittests/privc/test_sigmoid_op.py | Sprate/PaddleFL | 583691acd5db0a7ca331cc9a72415017b18669b8 | [
"Apache-2.0"
] | 132 | 2019-10-16T03:22:03.000Z | 2022-03-23T08:54:29.000Z | python/paddle_fl/mpc/tests/unittests/privc/test_sigmoid_op.py | Sprate/PaddleFL | 583691acd5db0a7ca331cc9a72415017b18669b8 | [
"Apache-2.0"
] | 106 | 2019-09-27T12:47:18.000Z | 2022-03-29T09:07:25.000Z | # Copyright (c) 2020 PaddlePaddle Authors. 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 required by appli... | 32.121212 | 95 | 0.67217 | 306 | 2,120 | 4.503268 | 0.470588 | 0.043541 | 0.010885 | 0.03701 | 0.007257 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023128 | 0.225 | 2,120 | 65 | 96 | 32.615385 | 0.815581 | 0.382075 | 0 | 0.060606 | 0 | 0 | 0.050702 | 0.028861 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.121212 | false | 0 | 0.242424 | 0 | 0.393939 | 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 | 0 | 0 | 0 | 1 |
db6a9f6855b86464a1aca628437c090868675c21 | 33,502 | py | Python | TDMS/MvImport/MvCameraControl_header.py | GW-Wang-thu/ORB-based-displacement-monitoring-system | 6dfc12487dbc27af5eb5a0ef72aa3958891c192e | [
"MIT"
] | 1 | 2022-03-01T14:48:24.000Z | 2022-03-01T14:48:24.000Z | TDMS/MvImport/MvCameraControl_header.py | GW-Wang-thu/ORB-based-displacement-monitoring-system | 6dfc12487dbc27af5eb5a0ef72aa3958891c192e | [
"MIT"
] | 1 | 2021-03-03T02:34:07.000Z | 2021-03-05T03:28:25.000Z | TDMS/MvImport/MvCameraControl_header.py | GW-Wang-thu/ORB-based-displacement-monitoring-system | 6dfc12487dbc27af5eb5a0ef72aa3958891c192e | [
"MIT"
] | null | null | null | # generated by 'xml2py'
# flags '-c -d -v C:\test_h\MvCameraControl.xml -o MvCameraControl_header.py'
from ctypes import *
STRING = c_char_p
PixelType_Gvsp_BayerBG12 = 17825811
MV_TRIGGER_SOURCE_LINE1 = 1
PixelType_Gvsp_Mono8_Signed = 17301506
MV_BALANCEWHITE_AUTO_ONCE = 2
PixelType_Gvsp_BayerGB8 = 173015... | 34.861602 | 78 | 0.699481 | 4,194 | 33,502 | 4.967573 | 0.130424 | 0.093597 | 0.043775 | 0.011424 | 0.413651 | 0.263176 | 0.19305 | 0.155131 | 0.117884 | 0.11102 | 0 | 0.062022 | 0.195332 | 33,502 | 960 | 79 | 34.897917 | 0.710809 | 0.070981 | 0 | 0.243787 | 1 | 0 | 0.297494 | 0.139995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.048521 | 0.001183 | 0 | 0.049704 | 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 | 0 | 0 | 0 | 1 |
db7b2cae9a93bbe501b1daf5d26835b3db670a7c | 397 | py | Python | dthm4kaiako/dtta/migrations/0007_relatedlink_order_number.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2018-12-10T07:03:02.000Z | 2021-04-12T02:18:30.000Z | dthm4kaiako/dtta/migrations/0007_relatedlink_order_number.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 566 | 2018-09-30T02:54:28.000Z | 2022-03-28T01:20:01.000Z | dthm4kaiako/dtta/migrations/0007_relatedlink_order_number.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2019-04-04T19:53:39.000Z | 2021-05-16T02:04:46.000Z | # Generated by Django 2.1.5 on 2019-01-28 23:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dtta', '0006_relatedlink'),
]
operations = [
migrations.AddField(
model_name='relatedlink',
name='order_number',
... | 20.894737 | 62 | 0.609572 | 40 | 397 | 5.975 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0.279597 | 397 | 18 | 63 | 22.055556 | 0.765734 | 0.11335 | 0 | 0 | 1 | 0 | 0.122857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db82c5c21903c432f872c14fa6a38e2b56fa78b1 | 242 | py | Python | db/forms/online_project.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 1 | 2022-03-03T09:55:57.000Z | 2022-03-03T09:55:57.000Z | db/forms/online_project.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 7 | 2022-02-09T10:44:53.000Z | 2022-03-28T03:29:43.000Z | db/forms/online_project.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | null | null | null | from django import forms
from db.models import OnlineProject
class OnlineProjectForm(forms.ModelForm):
class Meta:
model = OnlineProject
fields = (
'id',
'url',
'student',
)
| 16.133333 | 41 | 0.549587 | 21 | 242 | 6.333333 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.371901 | 242 | 14 | 42 | 17.285714 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db850384b36dba8ff95826e7a8a74c5943c69a2a | 4,590 | py | Python | spider/sis.py | dannywxh/mypy | 5036c32de8d6c9e77126ef4189976b6938ac9186 | [
"Apache-2.0"
] | null | null | null | spider/sis.py | dannywxh/mypy | 5036c32de8d6c9e77126ef4189976b6938ac9186 | [
"Apache-2.0"
] | null | null | null | spider/sis.py | dannywxh/mypy | 5036c32de8d6c9e77126ef4189976b6938ac9186 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
import unittest
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from bs4 import BeautifulSoup
import requests
def phantomjs():
dcap = dict(DesiredCapabilities.PHANTOMJS)
dcap["phantomjs.page.settings.userAgent"] = (
... | 28.867925 | 150 | 0.604793 | 611 | 4,590 | 4.425532 | 0.289689 | 0.051775 | 0.08284 | 0.069896 | 0.54068 | 0.54068 | 0.51997 | 0.51997 | 0.493713 | 0.493713 | 0 | 0.054108 | 0.238998 | 4,590 | 158 | 151 | 29.050633 | 0.720011 | 0.192375 | 0 | 0.455696 | 0 | 0.050633 | 0.262571 | 0.045121 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063291 | null | null | 0.139241 | 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 | 0 | 0 | 1 |
db8c3f5b966349f94d9eb6fa33f6421a5d482137 | 4,117 | py | Python | azure-iot-device/azure/iot/device/provisioning/internal/request_response_provider.py | necoh/azure-iot-sdk-python-preview | c17eccee9041d197e21c2f2df28b99014133960b | [
"MIT"
] | 35 | 2018-12-01T05:42:30.000Z | 2021-03-10T12:23:41.000Z | azure-iot-device/azure/iot/device/provisioning/internal/request_response_provider.py | necoh/azure-iot-sdk-python-preview | c17eccee9041d197e21c2f2df28b99014133960b | [
"MIT"
] | 81 | 2018-11-20T20:01:43.000Z | 2019-09-06T23:57:17.000Z | azure-iot-device/azure/iot/device/provisioning/internal/request_response_provider.py | necoh/azure-iot-sdk-python-preview | c17eccee9041d197e21c2f2df28b99014133960b | [
"MIT"
] | 18 | 2019-03-19T18:53:43.000Z | 2021-01-10T09:47:24.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import lo... | 40.362745 | 120 | 0.678407 | 480 | 4,117 | 5.552083 | 0.302083 | 0.040525 | 0.072045 | 0.027017 | 0.261914 | 0.174109 | 0.174109 | 0.14409 | 0.14409 | 0.109568 | 0 | 0.020795 | 0.217391 | 4,117 | 101 | 121 | 40.762376 | 0.806331 | 0.342725 | 0 | 0.12 | 0 | 0 | 0.075088 | 0.009386 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.22 | false | 0 | 0.02 | 0 | 0.26 | 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 | 0 | 0 | 0 | 1 |
db8c6d56387dc5fb2527d9340ac0385996d2437e | 3,239 | py | Python | uv/fs/util.py | hartikainen/uv-metrics | 7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-06-17T17:33:05.000Z | 2022-03-30T17:32:05.000Z | uv/fs/util.py | hartikainen/uv-metrics | 7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21 | [
"ECL-2.0",
"Apache-2.0"
] | 28 | 2020-06-16T18:32:08.000Z | 2020-11-12T17:51:20.000Z | uv/fs/util.py | hartikainen/uv-metrics | 7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-08-07T20:05:49.000Z | 2021-10-21T01:43:00.000Z | #!/usr/bin/python
#
# 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 ag... | 25.304688 | 80 | 0.699907 | 500 | 3,239 | 4.45 | 0.402 | 0.026966 | 0.018876 | 0.014382 | 0.018876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003863 | 0.200679 | 3,239 | 127 | 81 | 25.503937 | 0.855543 | 0.493362 | 0 | 0 | 0 | 0 | 0.025457 | 0 | 0 | 0 | 0 | 0.007874 | 0 | 1 | 0.2 | false | 0 | 0.18 | 0 | 0.56 | 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 | 0 | 1 | 0 | 0 | 1 |
db905c0a34bfaf1efc8f9db8b6f39e3abc815e77 | 1,609 | py | Python | catalog/migrations/0005_auto_20220324_0011.py | extroot/yandexLyceumPlus | 5c5105559741b2728a16ef45d07a971bb0990034 | [
"MIT"
] | 5 | 2022-03-06T10:43:17.000Z | 2022-03-06T10:48:04.000Z | catalog/migrations/0005_auto_20220324_0011.py | extroot/yandexLyceumPlus | 5c5105559741b2728a16ef45d07a971bb0990034 | [
"MIT"
] | 2 | 2022-03-16T19:52:34.000Z | 2022-03-25T20:44:18.000Z | catalog/migrations/0005_auto_20220324_0011.py | extroot/yandexLyceumPlus | 5c5105559741b2728a16ef45d07a971bb0990034 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-23 21:11
import catalog.validators
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 35.755556 | 200 | 0.633934 | 168 | 1,609 | 5.910714 | 0.488095 | 0.045317 | 0.065458 | 0.085599 | 0.299094 | 0.264854 | 0 | 0 | 0 | 0 | 0 | 0.032205 | 0.247359 | 1,609 | 44 | 201 | 36.568182 | 0.787779 | 0.028589 | 0 | 0.394737 | 1 | 0 | 0.162716 | 0.014734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.184211 | 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 | 0 | 0 | 0 | 1 |
db99c8fcff71f0dcbca090ae9ab47ede6bfb3c2b | 1,442 | py | Python | BeginningZeros.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | 4 | 2020-08-18T05:29:38.000Z | 2021-03-13T19:01:10.000Z | BeginningZeros.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | null | null | null | BeginningZeros.py | simplymanas/python-learning | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | [
"Apache-2.0"
] | 1 | 2020-08-29T12:57:17.000Z | 2020-08-29T12:57:17.000Z | # you have a string that consist only of digits. You need to find how many zero digits ("0") are at the beginning of the given string.
# Input: A string, that consist of digits.
# Output: An Int.
# Example:
# beginning_zeros('100') == 0
# beginning_zeros('001') == 2
# beginning_zeros('100100') == 0
# beginning_zeros('0... | 28.84 | 134 | 0.630374 | 214 | 1,442 | 4.14486 | 0.383178 | 0.22097 | 0.135287 | 0.040586 | 0.057497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083259 | 0.225381 | 1,442 | 49 | 135 | 29.428571 | 0.710833 | 0.584605 | 0 | 0 | 0 | 0 | 0.090278 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0.111111 | 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 | 0 | 0 | 1 |
db9f8c38aada5720b66f02636ada1f841c10776a | 2,158 | py | Python | Structural/proxy.py | lpdswing/DesignPatternsPython | 6f4b8416b0624ecda0cca3dadd306f938da9a118 | [
"Apache-2.0"
] | 3 | 2020-07-21T11:43:22.000Z | 2020-07-21T11:56:50.000Z | Structural/proxy.py | lpdswing/DesignPatternsPython | 6f4b8416b0624ecda0cca3dadd306f938da9a118 | [
"Apache-2.0"
] | null | null | null | Structural/proxy.py | lpdswing/DesignPatternsPython | 6f4b8416b0624ecda0cca3dadd306f938da9a118 | [
"Apache-2.0"
] | null | null | null | # 代理模式
# 虚拟代理
class LazyProperty:
def __init__(self, method):
self.method = method
self.method_name = method.__name__
def __get__(self, instance, owner):
if not instance:
return None
value = self.method(instance)
setattr(instance, self.method_name, value)
... | 23.714286 | 77 | 0.57924 | 251 | 2,158 | 4.7251 | 0.306773 | 0.047218 | 0.046374 | 0.037943 | 0.038786 | 0.038786 | 0 | 0 | 0 | 0 | 0 | 0.006057 | 0.311399 | 2,158 | 90 | 78 | 23.977778 | 0.792059 | 0.025023 | 0 | 0.174603 | 0 | 0 | 0.124881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.063492 | 0 | 0 | 0.333333 | 0.126984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbaf1f976b9df9bc5cc445ba120563fe04fa8a5a | 956 | py | Python | Programinhas_python/sort/ordem_alfabetica.py | xDanielz/python_exercicios_pessoais | 5e4dc701e191c2a0605543f1a37eaf9a3fffd785 | [
"MIT"
] | null | null | null | Programinhas_python/sort/ordem_alfabetica.py | xDanielz/python_exercicios_pessoais | 5e4dc701e191c2a0605543f1a37eaf9a3fffd785 | [
"MIT"
] | null | null | null | Programinhas_python/sort/ordem_alfabetica.py | xDanielz/python_exercicios_pessoais | 5e4dc701e191c2a0605543f1a37eaf9a3fffd785 | [
"MIT"
] | null | null | null | _iterable = ['danilo', 'daniel', 'lucas', 'matheus', 'luana', 'claudiane', 'luan']
alfa = [chr(l) for l in range(ord('a'), ord('z')+1]
for name1 in range(len(_iterable)):
for name2 in range(name1+1, len(_iterable)):
c = 0
while True:
if alfa.index(_iterable[name1][c]) != alfa.index(_ite... | 39.833333 | 85 | 0.51569 | 106 | 956 | 4.490566 | 0.349057 | 0.092437 | 0.142857 | 0.079832 | 0.201681 | 0.201681 | 0.201681 | 0.201681 | 0.201681 | 0.201681 | 0 | 0.033228 | 0.338912 | 956 | 23 | 86 | 41.565217 | 0.719937 | 0 | 0 | 0.090909 | 0 | 0 | 0.046025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 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 | 0 | 0 | 1 |
dbb05dc561d5f37412200e8f577a73b086578737 | 2,740 | py | Python | testpruned.py | EchizenG/network-slimming | ffeff76293ad7fee68eab716734f3df62f2ba4cb | [
"MIT"
] | null | null | null | testpruned.py | EchizenG/network-slimming | ffeff76293ad7fee68eab716734f3df62f2ba4cb | [
"MIT"
] | null | null | null | testpruned.py | EchizenG/network-slimming | ffeff76293ad7fee68eab716734f3df62f2ba4cb | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import torch
import torch.nn as nn
import time
from torch.autograd import Variable
from torchvision import datasets, transforms
from models import *
# Prune settings
parser = argparse.ArgumentParser(description='PyTorch Slimming CIFAR prune')
parser.add_argument('--test-bat... | 40.895522 | 107 | 0.641971 | 356 | 2,740 | 4.865169 | 0.398876 | 0.025982 | 0.049076 | 0.034642 | 0.031178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02881 | 0.214599 | 2,740 | 66 | 108 | 41.515152 | 0.776022 | 0.030657 | 0 | 0.067797 | 0 | 0 | 0.167484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152542 | null | null | 0.084746 | 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 | 0 | 0 | 1 |
dbb1d4a1c0d3fd696df773c59b42fd8113816d33 | 2,358 | py | Python | app/exceptions/base.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 11 | 2015-04-23T21:57:56.000Z | 2019-04-28T12:48:58.000Z | app/exceptions/base.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 1 | 2016-10-05T14:10:58.000Z | 2016-10-05T14:12:23.000Z | app/exceptions/base.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 3 | 2016-10-05T14:00:42.000Z | 2019-01-16T14:33:43.000Z | """
This module contains a set of basic application errors.
Any custom extensions of the exceptions should be a subclass of any of these
classes.
"""
from marshmallow import Schema, fields
class ApplicationException(Exception):
"""Base exception for the application."""
class ErrorSchema(Schema):
"""... | 29.111111 | 76 | 0.692112 | 236 | 2,358 | 6.690678 | 0.394068 | 0.026599 | 0.041799 | 0.034199 | 0.234326 | 0.200127 | 0.143129 | 0.081064 | 0.081064 | 0.081064 | 0 | 0.009657 | 0.2095 | 2,358 | 80 | 77 | 29.475 | 0.837446 | 0.087786 | 0 | 0.142857 | 0 | 0 | 0.203938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.020408 | 0.020408 | 0.734694 | 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 | 0 | 1 | 0 | 0 | 1 |
dbb5b845c8f549bf960bd039e0fd37f4b0cfa255 | 616 | py | Python | nusa/lib.py | Bartman00/nusa | 472180c350d8940bf025f54b5b362e6dab280417 | [
"MIT"
] | 2 | 2019-12-03T08:32:07.000Z | 2021-04-01T01:23:39.000Z | nusa/lib.py | Bartman00/nusa | 472180c350d8940bf025f54b5b362e6dab280417 | [
"MIT"
] | null | null | null | nusa/lib.py | Bartman00/nusa | 472180c350d8940bf025f54b5b362e6dab280417 | [
"MIT"
] | null | null | null | # ***********************************
# Author: Pedro Jorge De Los Santos
# E-mail: delossantosmfq@gmail.com
# Blog: numython.github.io
# License: MIT License
# ***********************************
"""
Defining some common materials and other "things"
"""
from ._lib import *
## ================== Materials ==... | 24.64 | 66 | 0.527597 | 73 | 616 | 4.30137 | 0.69863 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079523 | 0.183442 | 616 | 24 | 67 | 25.666667 | 0.544732 | 0.399351 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 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 | 0 | 0 | 1 |
dbba2fa03ebdf30522c74e33d743aae0d2c948f9 | 3,182 | py | Python | tests/ui_tests/app/page/login/page.py | AKhodus/adcm | 98dbf22af3f1c6afa94505e9acaff0ac4088a602 | [
"Apache-2.0"
] | null | null | null | tests/ui_tests/app/page/login/page.py | AKhodus/adcm | 98dbf22af3f1c6afa94505e9acaff0ac4088a602 | [
"Apache-2.0"
] | null | null | null | tests/ui_tests/app/page/login/page.py | AKhodus/adcm | 98dbf22af3f1c6afa94505e9acaff0ac4088a602 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 43 | 107 | 0.724701 | 402 | 3,182 | 5.507463 | 0.345771 | 0.109304 | 0.028907 | 0.01897 | 0.250678 | 0.19196 | 0.086721 | 0 | 0 | 0 | 0 | 0.001933 | 0.186989 | 3,182 | 73 | 108 | 43.589041 | 0.853885 | 0.164048 | 0 | 0 | 0 | 0 | 0.112538 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 1 | 0.156863 | false | 0.156863 | 0.078431 | 0 | 0.27451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbbdc0ef077ac64644fa74ee736630bfa9897528 | 4,834 | py | Python | code/tmp_rtrip/curses/has_key.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/tmp_rtrip/curses/has_key.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/tmp_rtrip/curses/has_key.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | import _curses
_capability_names = {_curses.KEY_A1: 'ka1', _curses.KEY_A3: 'ka3', _curses.
KEY_B2: 'kb2', _curses.KEY_BACKSPACE: 'kbs', _curses.KEY_BEG: 'kbeg',
_curses.KEY_BTAB: 'kcbt', _curses.KEY_C1: 'kc1', _curses.KEY_C3: 'kc3',
_curses.KEY_CANCEL: 'kcan', _curses.KEY_CATAB: 'ktbc', _curses.
KEY_CLE... | 55.563218 | 76 | 0.665288 | 683 | 4,834 | 4.234261 | 0.459736 | 0.463693 | 0.00899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062934 | 0.165081 | 4,834 | 86 | 77 | 56.209302 | 0.653617 | 0 | 0 | 0.02439 | 0 | 0 | 0.13012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.012195 | 0 | 0.060976 | 0.012195 | 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 | 0 | 0 | 1 |
dbbfaf30ddae1e1146277c5d8bc8b1a8cf81ae34 | 508 | py | Python | property/migrations/0019_auto_20200505_1909.py | danceandfight/real_estate_agency | 45444f3786b99f7e80163ba36fc1f1f7b09ffc04 | [
"MIT"
] | null | null | null | property/migrations/0019_auto_20200505_1909.py | danceandfight/real_estate_agency | 45444f3786b99f7e80163ba36fc1f1f7b09ffc04 | [
"MIT"
] | 4 | 2020-06-06T01:38:52.000Z | 2021-06-04T23:34:14.000Z | property/migrations/0019_auto_20200505_1909.py | danceandfight/real_estate_agency | 45444f3786b99f7e80163ba36fc1f1f7b09ffc04 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2020-05-05 16:09
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('property', '0018_auto_20200505_1853'),
]
operations = [
migrations.AlterField(
model_name='flat... | 25.4 | 138 | 0.655512 | 60 | 508 | 5.383333 | 0.716667 | 0.06192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079692 | 0.234252 | 508 | 19 | 139 | 26.736842 | 0.750643 | 0.088583 | 0 | 0 | 1 | 0 | 0.140998 | 0.049892 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbc1ea718579c775ea08d838fcfbd81d0120e23f | 16,263 | py | Python | server/model_serving/server/bert_server.py | muzhi1991/model-as-service | 7d03b98f0d0769a714b5e96767883973d4b659c9 | [
"MIT"
] | null | null | null | server/model_serving/server/bert_server.py | muzhi1991/model-as-service | 7d03b98f0d0769a714b5e96767883973d4b659c9 | [
"MIT"
] | null | null | null | server/model_serving/server/bert_server.py | muzhi1991/model-as-service | 7d03b98f0d0769a714b5e96767883973d4b659c9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Han Xiao <artex.xh@gmail.com> <https://hanxiao.github.io>
import multiprocessing
import os
import random
import sys
import threading
import time
from collections import defaultdict
from datetime import datetime
from itertools import chain
from multiprocessing import Proce... | 43.83558 | 119 | 0.592818 | 2,029 | 16,263 | 4.429768 | 0.183834 | 0.013351 | 0.012016 | 0.008011 | 0.322096 | 0.246551 | 0.229528 | 0.209947 | 0.209947 | 0.192813 | 0 | 0.006967 | 0.302773 | 16,263 | 370 | 120 | 43.954054 | 0.785695 | 0.652155 | 0 | 0 | 0 | 0 | 0.034914 | 0 | 0 | 0 | 0 | 0.002703 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.054945 | 0.56044 | 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 | 0 | 1 | 0 | 0 | 1 |
dbc8ec3224079ea251ccc5c179bb3090ab69ceb8 | 1,165 | py | Python | test/models/test_task_from_json.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | 3 | 2020-11-03T22:27:18.000Z | 2021-12-11T23:13:55.000Z | test/models/test_task_from_json.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | 1 | 2021-09-12T13:28:13.000Z | 2021-09-12T13:28:13.000Z | test/models/test_task_from_json.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | null | null | null | import unittest
from src.core.models import Task
class TestTaskFromJson(unittest.TestCase):
def test_with_valid_task(self):
task_data = {
"id": 15,
"token": "gvuUs17f",
"name": "Task Name",
"notes": "Here are some task notes",
"status": 1,
... | 30.657895 | 70 | 0.563948 | 135 | 1,165 | 4.651852 | 0.437037 | 0.167197 | 0.211783 | 0.047771 | 0.140127 | 0.076433 | 0.076433 | 0 | 0 | 0 | 0 | 0.099509 | 0.301288 | 1,165 | 37 | 71 | 31.486486 | 0.67199 | 0 | 0 | 0 | 0 | 0 | 0.260086 | 0.069528 | 0 | 0 | 0 | 0 | 0.225806 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.129032 | 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 | 0 | 0 | 0 | 1 |
dbd0bfbbdfea66bbd7b5250f90d3480ea69ad7b1 | 1,690 | py | Python | Python/NeonOcean.S4.Main/NeonOcean/S4/Main/Interactions/Support/Dependent.py | NeonOcean/Main | 2d85e6d4428f01294d2d34f1807287b753f7490c | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:44.000Z | 2021-05-20T19:33:44.000Z | Python/NeonOcean.S4.Main/NeonOcean/S4/Main/Interactions/Support/Dependent.py | NeonOcean/Main | 2d85e6d4428f01294d2d34f1807287b753f7490c | [
"CC-BY-4.0"
] | 1 | 2020-06-24T22:50:05.000Z | 2020-06-24T22:50:05.000Z | Python/NeonOcean.S4.Main/NeonOcean/S4/Main/Interactions/Support/Dependent.py | NeonOcean/S4.Main | 2d85e6d4428f01294d2d34f1807287b753f7490c | [
"CC-BY-4.0"
] | null | null | null | from __future__ import annotations
import interactions
from NeonOcean.S4.Main import Language, Mods, This
from event_testing import results, test_base
from sims4.tuning import tunable
DisabledTooltip = Language.String(This.Mod.Namespace + ".Interactions.Support.Dependent.Disabled_Tooltip", fallbackText = "Disabled_To... | 32.5 | 164 | 0.77929 | 188 | 1,690 | 6.808511 | 0.441489 | 0.040625 | 0.071875 | 0.04375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001369 | 0.135503 | 1,690 | 51 | 165 | 33.137255 | 0.874743 | 0.052071 | 0 | 0.055556 | 0 | 0 | 0.123279 | 0.030038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0.027778 | 0.527778 | 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 | 0 | 1 | 0 | 0 | 1 |
dbd29c5e63268231b40af2fe78f91db908187a0d | 4,749 | py | Python | Lab_Code/Python3/table-no-ragged.py | alexgraehl/timeforscience | 09609cd99c10f85165f12fc89ffd7e39288b9e8e | [
"MIT"
] | null | null | null | Lab_Code/Python3/table-no-ragged.py | alexgraehl/timeforscience | 09609cd99c10f85165f12fc89ffd7e39288b9e8e | [
"MIT"
] | null | null | null | Lab_Code/Python3/table-no-ragged.py | alexgraehl/timeforscience | 09609cd99c10f85165f12fc89ffd7e39288b9e8e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import optparse
import os
# import pdb
# pdb.set_trace() ## Python Debugger! See: http://aymanh.com/python-debugging-techniques
# import time # we just want "sleep"
# import os.path
USAGE = """%prog [options] <infile.txt> > table.tab
%prog takes a possibly-ragged-edged input f... | 33.20979 | 307 | 0.640977 | 633 | 4,749 | 4.772512 | 0.387046 | 0.017875 | 0.026481 | 0.021185 | 0.110559 | 0.04568 | 0.04568 | 0.04568 | 0.04568 | 0.04568 | 0 | 0.004002 | 0.263424 | 4,749 | 142 | 308 | 33.443662 | 0.859634 | 0.195199 | 0 | 0.30303 | 0 | 0.060606 | 0.428045 | 0.036306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0.10101 | 0.030303 | 0 | 0.050505 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbd78b074ba971978eef49f041904ad75b39639f | 2,605 | py | Python | Toolkits/Discovery/meta/searx/searx/engines/duckduckgo_images.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/Discovery/meta/searx/searx/engines/duckduckgo_images.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/Discovery/meta/searx/searx/engines/duckduckgo_images.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | """
DuckDuckGo (Images)
@website https://duckduckgo.com/
@provide-api yes (https://duckduckgo.com/api),
but images are not supported
@using-api no
@results JSON (site requires js to get images)
@stable no (JSON can change)
@parse url, title, img_src
@todo avoid extra... | 28.315217 | 107 | 0.629175 | 326 | 2,605 | 4.935583 | 0.368098 | 0.031075 | 0.044748 | 0.042884 | 0.11995 | 0.11995 | 0.054692 | 0.054692 | 0.054692 | 0 | 0 | 0.005629 | 0.249904 | 2,605 | 91 | 108 | 28.626374 | 0.81781 | 0.245681 | 0 | 0.078431 | 0 | 0.019608 | 0.142784 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 1 | 0.058824 | false | 0 | 0.098039 | 0 | 0.235294 | 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 | 0 | 0 | 0 | 1 |
dbdbdfebbfc735fc210467f763157e2510ada1bf | 7,625 | py | Python | hmm.py | c4723/hmm | 6936be8517851d53c018792c85ca03acec35edf9 | [
"MIT"
] | null | null | null | hmm.py | c4723/hmm | 6936be8517851d53c018792c85ca03acec35edf9 | [
"MIT"
] | null | null | null | hmm.py | c4723/hmm | 6936be8517851d53c018792c85ca03acec35edf9 | [
"MIT"
] | null | null | null | """
Exhaustive search of an HMM model
"""
import argparse
import itertools
import logging
import logging.handlers
import textwrap
class ProbMatrix(object):
def get(self, observation, state):
if self.probabilities.has_key(observation) and self.probabilities[observation].has_key(state):
... | 39.102564 | 135 | 0.603934 | 769 | 7,625 | 5.915475 | 0.247074 | 0.021983 | 0.01319 | 0.01231 | 0.144867 | 0.114311 | 0.030336 | 0.030336 | 0.030336 | 0.01275 | 0 | 0.005726 | 0.312918 | 7,625 | 194 | 136 | 39.304124 | 0.862569 | 0.072656 | 0 | 0.148936 | 0 | 0 | 0.175308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035461 | null | null | 0.014184 | 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 | 0 | 0 | 1 |
9157a9951a50d67d64f9f769564322d4bdb80b10 | 587 | py | Python | var/spack/repos/builtin/packages/imake/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/imake/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/imake/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Imake(AutotoolsPackage, XorgPackage):
"""The imake build system."""
homepage = "http:... | 30.894737 | 95 | 0.735945 | 74 | 587 | 5.783784 | 0.797297 | 0.009346 | 0.014019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116371 | 0.136286 | 587 | 18 | 96 | 32.611111 | 0.727811 | 0.362862 | 0 | 0 | 0 | 0 | 0.435616 | 0.238356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
9162d52a1b683a5de954efcb0554d92e5faa07af | 1,918 | py | Python | Regression/RidgeRegression.py | nonlining/SimpleML | b042444144ab86627f5c9cb42eb85b13cbd7c008 | [
"MIT"
] | null | null | null | Regression/RidgeRegression.py | nonlining/SimpleML | b042444144ab86627f5c9cb42eb85b13cbd7c008 | [
"MIT"
] | null | null | null | Regression/RidgeRegression.py | nonlining/SimpleML | b042444144ab86627f5c9cb42eb85b13cbd7c008 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: Ridge Regression
# Purpose:
#
# Author: Nonlining
#
# Created: 17/01/2017
# Copyright: (c) Nonlining 2017
# Licence: <your licence>
#----------------------------------------------------------------------------... | 33.068966 | 127 | 0.612617 | 209 | 1,918 | 5.464115 | 0.363636 | 0.068301 | 0.057793 | 0.029772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0237 | 0.208029 | 1,918 | 58 | 128 | 33.068966 | 0.728111 | 0.158498 | 0 | 0 | 0 | 0 | 0.039875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.081081 | 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 | 0 | 0 | 1 |
91675efdc8e075e69c6d3aaaf173b45750562945 | 438 | py | Python | mundo-1/ex-027.py | guilhermesm28/python-curso-em-video | 50ab4e76b1903e62d4daa579699c5908329b26c8 | [
"MIT"
] | null | null | null | mundo-1/ex-027.py | guilhermesm28/python-curso-em-video | 50ab4e76b1903e62d4daa579699c5908329b26c8 | [
"MIT"
] | null | null | null | mundo-1/ex-027.py | guilhermesm28/python-curso-em-video | 50ab4e76b1903e62d4daa579699c5908329b26c8 | [
"MIT"
] | null | null | null | # Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome separadamente.
print('-' * 100)
print('{: ^100}'.format('EXERCÍCIO 027 - PRIMEIRO E ÚLTIMO NOME DE UMA PESSOA'))
print('-' * 100)
nome = str(input('Digite seu nome completo: ')).title().strip().split()
print(f'... | 29.2 | 121 | 0.675799 | 66 | 438 | 4.484848 | 0.560606 | 0.108108 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.146119 | 438 | 14 | 122 | 31.285714 | 0.745989 | 0.27169 | 0 | 0.375 | 0 | 0 | 0.51735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 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 | 0 | 0 | 1 | 0 | 1 |
916d5b0cad3c476c21738fac09924abcea1e0511 | 996 | py | Python | plugins/polio/migrations/0042_auto_20220121_1434.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | null | null | null | plugins/polio/migrations/0042_auto_20220121_1434.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | null | null | null | plugins/polio/migrations/0042_auto_20220121_1434.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 1 | 2022-03-23T16:44:12.000Z | 2022-03-23T16:44:12.000Z | # Generated by Django 3.1.14 on 2022-01-21 14:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("polio", "0041_move_preparedness_polio"),
]
operations = [
migrations.AlterField(
model_name="c... | 26.918919 | 60 | 0.531124 | 94 | 996 | 5.468085 | 0.43617 | 0.062257 | 0.081712 | 0.128405 | 0.575875 | 0.575875 | 0.575875 | 0.396887 | 0.396887 | 0.396887 | 0 | 0.031746 | 0.36747 | 996 | 36 | 61 | 27.666667 | 0.784127 | 0.046185 | 0 | 0.6 | 1 | 0 | 0.131857 | 0.029536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
916d8c5750a8a8659ca50d8ce311dd78199f0e2e | 7,933 | py | Python | tests/SMB_RPC/test_smbserver.py | wuerror/impacket | 142cacb649b8c6441df9330ac22fe4d15a0d1bbc | [
"Apache-1.1"
] | 23 | 2020-02-21T02:44:21.000Z | 2022-03-03T23:40:32.000Z | tests/SMB_RPC/test_smbserver.py | cipher9rat/impacket | 142cacb649b8c6441df9330ac22fe4d15a0d1bbc | [
"Apache-1.1"
] | null | null | null | tests/SMB_RPC/test_smbserver.py | cipher9rat/impacket | 142cacb649b8c6441df9330ac22fe4d15a0d1bbc | [
"Apache-1.1"
] | 21 | 2021-06-29T23:14:54.000Z | 2022-03-24T13:13:58.000Z | #!/usr/bin/env python
# SECUREAUTH LABS. Copyright 2021 SecureAuth Corporation. All rights reserved.
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Basic unit tests for the SMB Server.
#
# Author:
# M... | 37.77619 | 108 | 0.676415 | 940 | 7,933 | 5.57234 | 0.207447 | 0.065292 | 0.032264 | 0.045819 | 0.521573 | 0.453036 | 0.419244 | 0.419244 | 0.377625 | 0.347461 | 0 | 0.004674 | 0.21795 | 7,933 | 209 | 109 | 37.956938 | 0.83962 | 0.166015 | 0 | 0.336 | 0 | 0 | 0.040607 | 0.003218 | 0 | 0 | 0 | 0 | 0.136 | 1 | 0.08 | false | 0.064 | 0.064 | 0.008 | 0.272 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
917029d8c8e0652471aa43a81657b6d10e5ef1fd | 2,001 | py | Python | src/sagemaker_training/__init__.py | unoebauer/sagemaker-training-toolkit | 0c785b6a0fa4ebc57990417138f537d377366312 | [
"Apache-2.0"
] | 248 | 2020-04-21T09:25:03.000Z | 2022-03-24T22:24:26.000Z | src/sagemaker_training/__init__.py | unoebauer/sagemaker-training-toolkit | 0c785b6a0fa4ebc57990417138f537d377366312 | [
"Apache-2.0"
] | 68 | 2020-04-22T09:31:18.000Z | 2022-03-19T06:44:36.000Z | src/sagemaker_training/__init__.py | unoebauer/sagemaker-training-toolkit | 0c785b6a0fa4ebc57990417138f537d377366312 | [
"Apache-2.0"
] | 60 | 2020-06-02T20:52:24.000Z | 2022-03-16T18:20:41.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | 27.791667 | 76 | 0.690155 | 184 | 2,001 | 7.434783 | 0.75 | 0.04386 | 0.01462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005006 | 0.201399 | 2,001 | 71 | 77 | 28.183099 | 0.851064 | 0.364818 | 0 | 0 | 0 | 0 | 0.60623 | 0.069489 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.036364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91703bc7dfcb041452ea4d469fbeabd5881b9355 | 77,783 | py | Python | components/elm/tools/clm4_5/OLMT/runcase.py | jbeisman/E3SM | 7ae716b83eb7bd9f237dcb66c9ae45c168ea17db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | 1 | 2020-04-08T03:05:51.000Z | 2020-04-08T03:05:51.000Z | components/elm/tools/clm4_5/OLMT/runcase.py | jbeisman/E3SM | 7ae716b83eb7bd9f237dcb66c9ae45c168ea17db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/elm/tools/clm4_5/OLMT/runcase.py | jbeisman/E3SM | 7ae716b83eb7bd9f237dcb66c9ae45c168ea17db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | 3 | 2018-10-05T18:36:00.000Z | 2021-07-27T18:28:04.000Z | #!/usr/bin/env python3
import netcdf4_functions as nffun
import socket, os, sys, csv, time, math, numpy
import re, subprocess
from optparse import OptionParser
#from Numeric import *
#runcase.py does the following:
#
# 1. Call routines to create surface and domain data (makepointdata.py)
# 2. Use create_newcase to... | 47.428659 | 145 | 0.592906 | 9,449 | 77,783 | 4.728754 | 0.120965 | 0.027998 | 0.038942 | 0.014033 | 0.434067 | 0.356989 | 0.27172 | 0.231458 | 0.195716 | 0.174477 | 0 | 0.02438 | 0.246455 | 77,783 | 1,639 | 146 | 47.457596 | 0.737942 | 0.059229 | 0 | 0.259759 | 0 | 0.002129 | 0.319973 | 0.053085 | 0 | 0 | 0 | 0.00061 | 0 | 0 | null | null | 0.02555 | 0.002839 | null | null | 0.039745 | 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 | 0 | 0 | 1 |
9177f11a6b2cda0a66b8f275e5c3a6c3e749b445 | 795 | py | Python | aldryn_people/migrations/0038_add_name_fields.py | compoundpartners/js-people | a3744c3880f6626e677034a693f337c927baf886 | [
"BSD-3-Clause"
] | null | null | null | aldryn_people/migrations/0038_add_name_fields.py | compoundpartners/js-people | a3744c3880f6626e677034a693f337c927baf886 | [
"BSD-3-Clause"
] | 1 | 2019-01-15T16:06:44.000Z | 2019-01-15T16:06:44.000Z | aldryn_people/migrations/0038_add_name_fields.py | compoundpartners/js-people | a3744c3880f6626e677034a693f337c927baf886 | [
"BSD-3-Clause"
] | 1 | 2019-01-09T11:53:59.000Z | 2019-01-09T11:53:59.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-28 16:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aldryn_people', '0037_rename_names_out_of_the_way'),
]
operations = [
migr... | 30.576923 | 137 | 0.632704 | 95 | 795 | 5.063158 | 0.568421 | 0.056133 | 0.095634 | 0.112266 | 0.503119 | 0.503119 | 0.237006 | 0.237006 | 0.237006 | 0.237006 | 0 | 0.046512 | 0.242767 | 795 | 25 | 138 | 31.8 | 0.752492 | 0.086792 | 0 | 0.333333 | 1 | 0 | 0.2213 | 0.04426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
917b43b1415b231cfcbb330e46325724bcd36526 | 5,347 | py | Python | testPyAtmo.py | mr3188/PyAtmo | 8c800d4f3aff2f3b3c5fbfb63d5089349c09de02 | [
"MIT"
] | 1 | 2018-10-22T19:31:13.000Z | 2018-10-22T19:31:13.000Z | testPyAtmo.py | mr3188/PyAtmo | 8c800d4f3aff2f3b3c5fbfb63d5089349c09de02 | [
"MIT"
] | 1 | 2019-01-25T12:02:24.000Z | 2019-01-27T09:17:19.000Z | testPyAtmo.py | mr3188/PyAtmo | 8c800d4f3aff2f3b3c5fbfb63d5089349c09de02 | [
"MIT"
] | 1 | 2018-10-22T19:31:17.000Z | 2018-10-22T19:31:17.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Test Netatmo class
#
import logging
import Netatmo
import time, json
import pprint
from colored import fg, bg, attr # sudo pip3 install colored
import paho.mqtt.publish as publish # sudo pip3 install paho-mqtt
def main():
pp = pprint.PrettyPrinter(indent=4)
... | 36.128378 | 117 | 0.55807 | 572 | 5,347 | 5.076923 | 0.253497 | 0.046488 | 0.053719 | 0.016529 | 0.112948 | 0.064738 | 0.056474 | 0.056474 | 0.030992 | 0.030992 | 0 | 0.004881 | 0.271928 | 5,347 | 147 | 118 | 36.37415 | 0.741074 | 0.088461 | 0 | 0.130435 | 0 | 0 | 0.30848 | 0.087421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.065217 | 0 | 0.076087 | 0.423913 | 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 | 0 | 0 | 1 | 0 | 1 |
917f7436da90d8e3cd443eed36e51a2c954a814c | 3,152 | py | Python | pgmpy/factors/base.py | Stoffle/pgmpy | 9bd2da10737e8425f6e18713680f5c0e4bf2da37 | [
"MIT"
] | null | null | null | pgmpy/factors/base.py | Stoffle/pgmpy | 9bd2da10737e8425f6e18713680f5c0e4bf2da37 | [
"MIT"
] | null | null | null | pgmpy/factors/base.py | Stoffle/pgmpy | 9bd2da10737e8425f6e18713680f5c0e4bf2da37 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from pgmpy.extern.six.moves import reduce
class BaseFactor(object):
"""
Base class for Factors. Any Factor implementation should inherit this class.
"""
def __init__(self, *args, **kwargs):
pass
@abstractmethod
def is_valid_cpd(self):
pass
de... | 26.266667 | 101 | 0.527284 | 354 | 3,152 | 4.661017 | 0.30791 | 0.033939 | 0.038788 | 0.029091 | 0.404242 | 0.404242 | 0.357576 | 0.326061 | 0.326061 | 0.326061 | 0 | 0.066977 | 0.317893 | 3,152 | 119 | 102 | 26.487395 | 0.700465 | 0.592322 | 0 | 0.166667 | 0 | 0 | 0.197813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91801b422972985811918050ae1a9ce277a9fd9a | 153 | py | Python | 11 Break&Continue/Break_Continue_Demo.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | 3 | 2021-05-08T13:11:41.000Z | 2021-05-14T02:43:20.000Z | 11 Break&Continue/Break_Continue_Demo.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | 11 Break&Continue/Break_Continue_Demo.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null |
i = 0
while(True):
if i+1<5:
i = i + 1
continue
print(i+1, end=" ")
if(i==50):
break #stop the loop
i = i+ 1 | 12.75 | 30 | 0.398693 | 26 | 153 | 2.346154 | 0.576923 | 0.131148 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0.444444 | 153 | 12 | 31 | 12.75 | 0.623529 | 0.084967 | 0 | 0.222222 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91898d1caf7bbae5a1b1f22b7ef72402d0b8872e | 8,986 | py | Python | sourcetracker/_q2/tests/test_method.py | kant/sourcetracker2 | 05da62a1d617702ff67949ffec3c1f14ef360854 | [
"BSD-3-Clause"
] | 40 | 2016-03-23T21:18:39.000Z | 2022-02-17T09:16:00.000Z | sourcetracker/_q2/tests/test_method.py | kant/sourcetracker2 | 05da62a1d617702ff67949ffec3c1f14ef360854 | [
"BSD-3-Clause"
] | 126 | 2016-03-22T21:17:43.000Z | 2022-02-17T09:51:37.000Z | sourcetracker/_q2/tests/test_method.py | kant/sourcetracker2 | 05da62a1d617702ff67949ffec3c1f14ef360854 | [
"BSD-3-Clause"
] | 38 | 2016-03-22T00:10:31.000Z | 2022-03-24T08:36:09.000Z | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (c) 2016--, Biota Technology.
# www.biota.com
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ---------------------... | 50.768362 | 78 | 0.399955 | 704 | 8,986 | 4.840909 | 0.298295 | 0.04108 | 0.051643 | 0.022007 | 0.378228 | 0.378228 | 0.344777 | 0.327171 | 0.3125 | 0.285211 | 0 | 0.021258 | 0.502671 | 8,986 | 176 | 79 | 51.056818 | 0.741329 | 0.095259 | 0 | 0.398601 | 0 | 0 | 0.171821 | 0.062964 | 0 | 0 | 0 | 0 | 0.027972 | 1 | 0.013986 | false | 0 | 0.076923 | 0 | 0.097902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
918a42d7c22bb0c3d13641d7ae7944a6f66329b6 | 15,551 | py | Python | plugin/core/protocol.py | litezzzout/LSP | 27be3cbb9c0c16fd37c422441bff987da2e5b8d0 | [
"MIT"
] | 1 | 2021-06-14T21:11:06.000Z | 2021-06-14T21:11:06.000Z | plugin/core/protocol.py | litezzzout/LSP | 27be3cbb9c0c16fd37c422441bff987da2e5b8d0 | [
"MIT"
] | 1 | 2021-06-16T03:54:11.000Z | 2021-06-16T04:45:09.000Z | plugin/core/protocol.py | litezzzout/LSP | 27be3cbb9c0c16fd37c422441bff987da2e5b8d0 | [
"MIT"
] | null | null | null | from .typing import Any, Dict, Iterable, List, Mapping, Optional, TypedDict, Union
from .url import filename_to_uri
import os
import sublime
TextDocumentSyncKindNone = 0
TextDocumentSyncKindFull = 1
TextDocumentSyncKindIncremental = 2
class DiagnosticSeverity:
Error = 1
Warning = 2
Information = 3
H... | 27.045217 | 112 | 0.642917 | 1,561 | 15,551 | 6.318386 | 0.185138 | 0.039745 | 0.018453 | 0.02119 | 0.234716 | 0.216263 | 0.199229 | 0.116597 | 0.116597 | 0.116597 | 0 | 0.007438 | 0.221915 | 15,551 | 574 | 113 | 27.092334 | 0.807686 | 0.028294 | 0 | 0.315166 | 0 | 0 | 0.157923 | 0.044694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137441 | false | 0 | 0.009479 | 0.106635 | 0.386256 | 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 | 0 | 0 | 0 | 1 |
9198078d209a32ce275cb1537735de85c9f1e20a | 5,780 | py | Python | Script/iokit_sniffer.py | vvun91e0n/xosxfuzz | b0a9744aaa014825679a6d04e5107160185c92d6 | [
"MIT"
] | 1 | 2019-03-25T14:45:52.000Z | 2019-03-25T14:45:52.000Z | Script/iokit_sniffer.py | vvun91e0n/xosxfuzz | b0a9744aaa014825679a6d04e5107160185c92d6 | [
"MIT"
] | null | null | null | Script/iokit_sniffer.py | vvun91e0n/xosxfuzz | b0a9744aaa014825679a6d04e5107160185c92d6 | [
"MIT"
] | null | null | null | import frida
import sys
import time
def on_message(message, data):
print("[*]message:", message, "data:", data)
def on_detached():
print("[*]detached!")
sys.exit(1)
def main():
if len(sys.argv) < 2:
print('Usage: %s <process name or PID>' % sys.argv[0])
sys.exit(1)
try:
t... | 39.054054 | 157 | 0.556747 | 546 | 5,780 | 5.723443 | 0.283883 | 0.0352 | 0.0368 | 0.0624 | 0.15808 | 0.05152 | 0.0352 | 0 | 0 | 0 | 0 | 0.01626 | 0.319031 | 5,780 | 147 | 158 | 39.319728 | 0.777693 | 0.028028 | 0 | 0.17094 | 0 | 0.025641 | 0.870053 | 0.219608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.025641 | 0 | 0.051282 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91997bcc62102a0b3ebc7dbdab2e6fce1ce107da | 3,624 | py | Python | lookupy/dunderkey.py | jpic/lookupy | a26bde00f3b0a48efda2a8477fe5c0094195c8f3 | [
"MIT"
] | 2 | 2018-11-19T11:06:30.000Z | 2020-03-06T21:43:09.000Z | lookupy/dunderkey.py | jpic/lookupy | a26bde00f3b0a48efda2a8477fe5c0094195c8f3 | [
"MIT"
] | null | null | null | lookupy/dunderkey.py | jpic/lookupy | a26bde00f3b0a48efda2a8477fe5c0094195c8f3 | [
"MIT"
] | 1 | 2022-02-17T18:14:45.000Z | 2022-02-17T18:14:45.000Z | ## This module deals with code regarding handling the double
## underscore separated keys
def dunderkey(*args):
"""Produces a nested key from multiple args separated by double
underscore
>>> dunderkey('a', 'b', 'c')
>>> 'a__b__c'
:param *args : *String
:rtype : String
"""
... | 24.821918 | 80 | 0.575607 | 485 | 3,624 | 4.136082 | 0.28866 | 0.00997 | 0.008973 | 0.005982 | 0.142572 | 0.095713 | 0.062812 | 0.051844 | 0.051844 | 0 | 0 | 0.007806 | 0.293046 | 3,624 | 145 | 81 | 24.993103 | 0.775176 | 0.536424 | 0 | 0.093023 | 0 | 0 | 0.005614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0 | 0 | 0.465116 | 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 | 0 | 0 | 0 | 1 |
919c12755e4c20b57eb99d99e7db1590d63bf02b | 2,475 | py | Python | setup.py | Yubico/yubico-bitcoin-python | 3a6f96d666175a2b0c0d5922df339c89da506635 | [
"BSD-2-Clause"
] | 8 | 2018-02-01T17:58:53.000Z | 2021-11-16T22:12:05.000Z | setup.py | DalavanCloud/yubico-bitcoin-python | 3a6f96d666175a2b0c0d5922df339c89da506635 | [
"BSD-2-Clause"
] | 1 | 2016-02-10T10:26:56.000Z | 2016-02-10T10:30:37.000Z | setup.py | DalavanCloud/yubico-bitcoin-python | 3a6f96d666175a2b0c0d5922df339c89da506635 | [
"BSD-2-Clause"
] | 4 | 2017-05-18T17:37:59.000Z | 2021-11-16T21:27:02.000Z | # Copyright (c) 2013 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | 40.57377 | 71 | 0.708283 | 307 | 2,475 | 5.680782 | 0.579805 | 0.020642 | 0.019495 | 0.026376 | 0.105505 | 0.077982 | 0.077982 | 0.077982 | 0.077982 | 0.077982 | 0 | 0.006566 | 0.2 | 2,475 | 60 | 72 | 41.25 | 0.874242 | 0.532525 | 0 | 0 | 0 | 0 | 0.499115 | 0.022124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 | 0 | 0 | 0 | 1 |
919f532aad31b895e5c043398637135e5279b9e6 | 835 | py | Python | backend/api/urls.py | landdafku11/mobile-backend | 3f3328afd81f85f90170a57689af72f8f705b8a3 | [
"MIT"
] | null | null | null | backend/api/urls.py | landdafku11/mobile-backend | 3f3328afd81f85f90170a57689af72f8f705b8a3 | [
"MIT"
] | null | null | null | backend/api/urls.py | landdafku11/mobile-backend | 3f3328afd81f85f90170a57689af72f8f705b8a3 | [
"MIT"
] | null | null | null | from django.urls import path, re_path, include
from .views import UserLoginView, UserRegistrationView, UserLogoutView, SocialLoginView, ForgotPasswordView, \
ConfirmTokenView, ResetPasswordView, ChangePasswordView
app_name = 'api'
urlpatterns = [
path('login/', UserLoginView.as_view()),
path('register/',... | 39.761905 | 110 | 0.712575 | 89 | 835 | 6.539326 | 0.404494 | 0.082474 | 0.120275 | 0.037801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117365 | 835 | 20 | 111 | 41.75 | 0.789688 | 0 | 0 | 0 | 0 | 0 | 0.179641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.294118 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91a0c48599915da9dafecc66d0d70e1aa6205a8b | 279 | py | Python | tests/basic_test.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | tests/basic_test.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | tests/basic_test.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | from tkinter import *
def hello():
print("Hello from master Interactor")
def open_user_interface():
window = Tk()
window.geometry("500x500")
start_button = Button(window, text='Start', command=hello)
start_button.place(x=250, y=250)
window.mainloop()
| 19.928571 | 62 | 0.681004 | 36 | 279 | 5.166667 | 0.666667 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052863 | 0.18638 | 279 | 13 | 63 | 21.461538 | 0.76652 | 0 | 0 | 0 | 0 | 0 | 0.143369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 |
91a78c8e2343816d8ddb4d2ac341cfebbeb58800 | 4,142 | py | Python | zebr0_aws_old/iam.py | zebr0/zebr0-aws | 25f4751967ed1eb296b511d91ef31fa538922f24 | [
"MIT"
] | 1 | 2018-10-25T08:15:26.000Z | 2018-10-25T08:15:26.000Z | zebr0_aws_old/iam.py | zebr0/zebr0 | 25f4751967ed1eb296b511d91ef31fa538922f24 | [
"MIT"
] | 5 | 2018-07-12T05:09:33.000Z | 2022-01-16T15:32:40.000Z | zebr0_aws_old/iam.py | zebr0/zebr0 | 25f4751967ed1eb296b511d91ef31fa538922f24 | [
"MIT"
] | null | null | null | import json
import logging
import boto3
import botocore.exceptions
import zebr0
import zebr0_aws.sts
logger = logging.getLogger("zebr0-aws.iam")
logger.info("creating iam client")
class Client:
def __init__(self, zebr0_client: zebr0.Client, sts_client: zebr0_aws.sts.Client) -> None:
self.zebr0_client =... | 44.06383 | 113 | 0.571463 | 456 | 4,142 | 4.947368 | 0.190789 | 0.055851 | 0.069149 | 0.070922 | 0.446365 | 0.24734 | 0.203014 | 0.181738 | 0.181738 | 0.181738 | 0 | 0.009657 | 0.324964 | 4,142 | 93 | 114 | 44.537634 | 0.79721 | 0.00338 | 0 | 0.181818 | 0 | 0 | 0.127061 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.116883 | false | 0 | 0.077922 | 0 | 0.246753 | 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 | 0 | 0 | 0 | 1 |
91a8d9392fd30e1ec8e8cac0cfe4a552cacf6f82 | 330 | py | Python | ADAKING.py | satyam720/hello-world | 3c3dc1a80621c1e012524198e0f92ed39fc0d2bb | [
"MIT"
] | 8 | 2020-10-03T15:07:19.000Z | 2021-10-03T07:59:32.000Z | ADAKING.py | satyam720/hello-world | 3c3dc1a80621c1e012524198e0f92ed39fc0d2bb | [
"MIT"
] | 52 | 2020-10-01T19:19:50.000Z | 2021-10-30T16:56:02.000Z | ADAKING.py | satyam720/hello-world | 3c3dc1a80621c1e012524198e0f92ed39fc0d2bb | [
"MIT"
] | 40 | 2020-10-01T19:16:31.000Z | 2021-10-31T14:19:44.000Z | def insert_newlines(string, every=64):
return '\n'.join(string[i:i+every] for i in range(0, len(string), every))
for __ in range(int(input())):
n = int(input())
o = "O"
x = "X"
a = ["X" for i in range(64)]
for i in range(n):
a[i] = "."
a[0]=o
print(insert_newlines("".join(a),8))... | 23.571429 | 77 | 0.521212 | 56 | 330 | 3 | 0.392857 | 0.166667 | 0.107143 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029167 | 0.272727 | 330 | 13 | 78 | 25.384615 | 0.670833 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0.090909 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
91ab5c73aaba0afcc0b14306a9cc3bed5d7b43e5 | 623 | py | Python | musterloesungen/4.4/hypotenuse.py | giu/appe6-uzh-hs2018 | 204dea36be1e53594124b606cdfa044368e54726 | [
"MIT"
] | null | null | null | musterloesungen/4.4/hypotenuse.py | giu/appe6-uzh-hs2018 | 204dea36be1e53594124b606cdfa044368e54726 | [
"MIT"
] | null | null | null | musterloesungen/4.4/hypotenuse.py | giu/appe6-uzh-hs2018 | 204dea36be1e53594124b606cdfa044368e54726 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Kurs: Python: Grundlagen der Programmierung für Nicht-Informatiker
# Semester: Herbstsemester 2018
# Homepage: http://accaputo.ch/kurs/python-uzh-hs-2018/
# Author: Giuseppe Accaputo
# Aufgabe: 4.4
import math
def hypotenuse(a,b):
if a < 0 or b < 0:
ret... | 24.92 | 76 | 0.680578 | 83 | 623 | 5.012048 | 0.626506 | 0.048077 | 0.105769 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042339 | 0.203852 | 623 | 25 | 77 | 24.92 | 0.796371 | 0.382022 | 0 | 0 | 0 | 0 | 0.129288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91adbd98278306af67778372ce60e67dfb9cfb21 | 3,624 | py | Python | coalition/vcard/utility.py | thee-engineer/coalition | e4f5d12498540e5816b5d605081d9be61d89df0e | [
"BSD-4-Clause"
] | 1 | 2017-12-19T09:32:22.000Z | 2017-12-19T09:32:22.000Z | coalition/vcard/utility.py | thee-engineer/coalition | e4f5d12498540e5816b5d605081d9be61d89df0e | [
"BSD-4-Clause"
] | null | null | null | coalition/vcard/utility.py | thee-engineer/coalition | e4f5d12498540e5816b5d605081d9be61d89df0e | [
"BSD-4-Clause"
] | null | null | null | """A set of helper classes."""
import re
class Address(object):
"""A representation of a common address."""
def __init__(self, street=None, city=None, region=None, postcode=None,
country=None, extra=None, category=None):
"""Construct an address."""
self._category = category
... | 29.950413 | 78 | 0.609272 | 433 | 3,624 | 4.854503 | 0.251732 | 0.045671 | 0.031399 | 0.032826 | 0.191246 | 0.156993 | 0.156993 | 0.156993 | 0.156993 | 0.139867 | 0 | 0.001142 | 0.274834 | 3,624 | 120 | 79 | 30.2 | 0.798706 | 0.234272 | 0 | 0.242424 | 0 | 0 | 0.072312 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 1 | 0.212121 | false | 0.045455 | 0.015152 | 0 | 0.424242 | 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 | 0 | 0 | 0 | 1 |
91aea3ac0a49ddd38fb183b33ae3c78add6ec0a9 | 331 | py | Python | Class Work/flask-forms/grocery_app/config.py | Pondorasti/BEW-2.2 | 9db93fabfa8b9415e00a9adfe59ba45c34ab6c0d | [
"MIT"
] | null | null | null | Class Work/flask-forms/grocery_app/config.py | Pondorasti/BEW-2.2 | 9db93fabfa8b9415e00a9adfe59ba45c34ab6c0d | [
"MIT"
] | null | null | null | Class Work/flask-forms/grocery_app/config.py | Pondorasti/BEW-2.2 | 9db93fabfa8b9415e00a9adfe59ba45c34ab6c0d | [
"MIT"
] | null | null | null | """Initialize Config class to access environment variables."""
from dotenv import load_dotenv
import os
load_dotenv()
class Config(object):
"""Set environment variables."""
SQLALCHEMY_DATABASE_URI = os.getenv('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = os.getenv('SE... | 25.461538 | 66 | 0.761329 | 40 | 331 | 6.05 | 0.575 | 0.165289 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141994 | 331 | 12 | 67 | 27.583333 | 0.852113 | 0.250755 | 0 | 0 | 0 | 0 | 0.139241 | 0.097046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 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 | 0 | 1 | 0 | 0 | 1 |
91b04d04c0eedb7fb4c704a39928f5bae01d0f78 | 1,176 | py | Python | bin/setup_transactionlogs.py | rpatil524/peregrine | 8f99fbb230edbfc8f6ed8f5d96fb4519ac12248b | [
"Apache-2.0"
] | 9 | 2018-06-13T17:51:49.000Z | 2021-12-16T06:55:55.000Z | bin/setup_transactionlogs.py | rpatil524/peregrine | 8f99fbb230edbfc8f6ed8f5d96fb4519ac12248b | [
"Apache-2.0"
] | 114 | 2017-11-17T19:27:12.000Z | 2022-01-25T21:12:24.000Z | bin/setup_transactionlogs.py | rpatil524/peregrine | 8f99fbb230edbfc8f6ed8f5d96fb4519ac12248b | [
"Apache-2.0"
] | 10 | 2019-08-01T02:33:52.000Z | 2021-11-28T15:37:59.000Z | #!/usr/bin/env python
"""
Script to set up report database
"""
import argparse
from sqlalchemy import create_engine
from gdcdatamodel.models.submission import Base
def setup(host, user, password, database):
engine = create_engine(
"postgres://{user}:{password}@{host}/{database}".format(
user=... | 25.021277 | 88 | 0.62415 | 132 | 1,176 | 5.424242 | 0.378788 | 0.050279 | 0.094972 | 0.100559 | 0.184358 | 0.114525 | 0.114525 | 0.114525 | 0.114525 | 0 | 0 | 0 | 0.235544 | 1,176 | 46 | 89 | 25.565217 | 0.79644 | 0.045068 | 0 | 0.228571 | 0 | 0 | 0.182063 | 0.041256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.171429 | 0.085714 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91b29c7dc27807e33d6119ae680bfc89b36dd1cd | 3,015 | py | Python | Stock_prediction.py | sridhar9800/Stock-Wiz | 86a523da13cceaccf8aa77432f80eb9d8252cffd | [
"MIT"
] | 1 | 2019-03-07T07:20:48.000Z | 2019-03-07T07:20:48.000Z | Stock_prediction.py | sridhar9800/Stock-Wiz | 86a523da13cceaccf8aa77432f80eb9d8252cffd | [
"MIT"
] | null | null | null | Stock_prediction.py | sridhar9800/Stock-Wiz | 86a523da13cceaccf8aa77432f80eb9d8252cffd | [
"MIT"
] | 1 | 2019-03-07T07:27:16.000Z | 2019-03-07T07:27:16.000Z | import os
import sys
import tweepy
import requests
import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from textblob import TextBlob
# First we login into twitter
consumer_key=
consumer_secret=
access_token=
access_token_secret=
auth = tweepy.OAuthHandler(consumer_key, consumer_se... | 27.409091 | 91 | 0.673632 | 444 | 3,015 | 4.47973 | 0.412162 | 0.030166 | 0.025641 | 0.033183 | 0.048265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015021 | 0.227197 | 3,015 | 109 | 92 | 27.66055 | 0.838627 | 0.188723 | 0 | 0.061538 | 0 | 0 | 0.138683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.123077 | null | null | 0.061538 | 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 | 0 | 0 | 1 |
91c41e7471def4b8585e0753da3398201a6ceecd | 5,004 | py | Python | influx_scraping/scrap.py | AtilioA/web-scraping-python | ec03b9cb3efb0ad19a99b90660db1ba22b4d396d | [
"Unlicense"
] | 5 | 2020-09-07T20:40:06.000Z | 2022-01-13T04:55:39.000Z | influx_scraping/scrap.py | AtilioA/web-scraping-python | ec03b9cb3efb0ad19a99b90660db1ba22b4d396d | [
"Unlicense"
] | 1 | 2021-06-15T06:15:20.000Z | 2021-12-17T02:47:40.000Z | influx_scraping/scrap.py | AtilioA/web-scraping-python | ec03b9cb3efb0ad19a99b90660db1ba22b4d396d | [
"Unlicense"
] | null | null | null | import re
import requests
from bs4 import BeautifulSoup
import shutil
def download_file(url):
""" Download file from URL """
local_filename = url.split("/")[-1]
with requests.get(url, stream=True) as r:
with open(f"audios/{local_filename}", "wb") as f:
shutil.copyfileobj(r.raw, f)
... | 34.75 | 142 | 0.564349 | 561 | 5,004 | 4.98574 | 0.340463 | 0.042903 | 0.055774 | 0.060064 | 0.182338 | 0.154451 | 0.129424 | 0.129424 | 0.129424 | 0.129424 | 0 | 0.013525 | 0.290767 | 5,004 | 143 | 143 | 34.993007 | 0.774584 | 0.163269 | 0 | 0.120482 | 0 | 0.036145 | 0.198885 | 0.051938 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048193 | null | null | 0.048193 | 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 | 0 | 0 | 1 |
91c72279c31f90f43556270d935421fa203e5872 | 318 | py | Python | Python/Tarefas/195216_CaioPardal_Tarefa_9.py | caiopardal/MC346 | 4ae664e5af97175d1677e0757d35657d1d7ef712 | [
"MIT"
] | null | null | null | Python/Tarefas/195216_CaioPardal_Tarefa_9.py | caiopardal/MC346 | 4ae664e5af97175d1677e0757d35657d1d7ef712 | [
"MIT"
] | null | null | null | Python/Tarefas/195216_CaioPardal_Tarefa_9.py | caiopardal/MC346 | 4ae664e5af97175d1677e0757d35657d1d7ef712 | [
"MIT"
] | null | null | null | /*
Nome: Caio Henrique Pardal
RA: 195216
Tarefa 9 - MC346
*/
def theLengthOfMatchingSubstrings(string1, string2):
for i in range(0, len(string1)):
fim = string1[i:]
if (len(fim)+1 < len(string2)):
comeco = string2[:len(fim)]
if (fim == comeco):
print(len(fim))
return
return 0
| 19.875 | 52 | 0.610063 | 42 | 318 | 4.619048 | 0.595238 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079498 | 0.248428 | 318 | 15 | 53 | 21.2 | 0.732218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91d075460e1c9328b8632731d44c8fb49a2a147f | 245 | py | Python | tests/unittest/learningRate.py | mshafiei/cvutils | 5805229d8822a9ee4a3c63e060358aca96fe5338 | [
"MIT"
] | 2 | 2021-07-19T12:38:14.000Z | 2021-11-01T21:30:36.000Z | tests/unittest/learningRate.py | mshafiei/cvgutils | ea93b3cb70a969c3b814f5a9f7672c6e00de5c61 | [
"MIT"
] | null | null | null | tests/unittest/learningRate.py | mshafiei/cvgutils | ea93b3cb70a969c3b814f5a9f7672c6e00de5c61 | [
"MIT"
] | null | null | null | import cvgutils.nn.Utils as Utils
import cvgutils.Viz as viz
import cv2
import numpy as np
x = np.arange(0,100)
x0 = 10
x1 = 30
y0 = 0.1
y1 = 1e-7
interp = Utils.linearLR(x,x0,x1,y0,y1)
im = viz.plot(x,interp)
cv2.imwrite('renderout/im.png',im) | 18.846154 | 38 | 0.710204 | 51 | 245 | 3.411765 | 0.568627 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.146939 | 245 | 13 | 39 | 18.846154 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
91d1701be32020267e80b459d6649fd7096f1a7e | 3,730 | py | Python | ThreeBotPackages/radicaleserver/radicale/auth/__init__.py | jimbertools/jumpscaleX_threebot | 9909aa270a1f5d04350c440ad787d755b905c456 | [
"Apache-2.0"
] | null | null | null | ThreeBotPackages/radicaleserver/radicale/auth/__init__.py | jimbertools/jumpscaleX_threebot | 9909aa270a1f5d04350c440ad787d755b905c456 | [
"Apache-2.0"
] | null | null | null | ThreeBotPackages/radicaleserver/radicale/auth/__init__.py | jimbertools/jumpscaleX_threebot | 9909aa270a1f5d04350c440ad787d755b905c456 | [
"Apache-2.0"
] | null | null | null | # This file is part of Radicale Server - Calendar Server
# Copyright © 2008 Nicolas Kandel
# Copyright © 2008 Pascal Halter
# Copyright © 2008-2017 Guillaume Ayoub
# Copyright © 2017-2018 Unrud <unrud@outlook.com>
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU G... | 35.52381 | 99 | 0.72118 | 506 | 3,730 | 5.27668 | 0.444664 | 0.017978 | 0.01573 | 0.014232 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01499 | 0.195174 | 3,730 | 104 | 100 | 35.865385 | 0.873085 | 0.722252 | 0 | 0 | 0 | 0 | 0.144408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.086957 | 0.173913 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91d353e8a26a741419e1b045db05ebaa5299897d | 925 | py | Python | apps/wagtail/flex/migrations/0018_auto_20210422_1131.py | aadrm/breakoutwagtail | cf4ce09153adf2b5e14f15ffbc82bda754d427b3 | [
"MIT"
] | null | null | null | apps/wagtail/flex/migrations/0018_auto_20210422_1131.py | aadrm/breakoutwagtail | cf4ce09153adf2b5e14f15ffbc82bda754d427b3 | [
"MIT"
] | null | null | null | apps/wagtail/flex/migrations/0018_auto_20210422_1131.py | aadrm/breakoutwagtail | cf4ce09153adf2b5e14f15ffbc82bda754d427b3 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-04-22 11:31
from django.db import migrations
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('menus', '0009_wagtaillanguage'),
('flex', '0017_auto_20210328_2141'),
]
operations = [
migrations.AddField(
... | 29.83871 | 102 | 0.627027 | 82 | 925 | 6.987805 | 0.512195 | 0.125654 | 0.120419 | 0.141361 | 0.581152 | 0.581152 | 0.581152 | 0.581152 | 0.581152 | 0.581152 | 0 | 0.05102 | 0.258378 | 925 | 30 | 103 | 30.833333 | 0.784257 | 0.048649 | 0 | 0.5 | 1 | 0 | 0.199317 | 0.09795 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 | 0 | 0 | 0 | 1 |
91d49a9b3eb9dcae85750b959c3fd25497a9ed03 | 399 | py | Python | accounts/migrations/0003_alter_account_is_active.py | kashaudhan/ecommerce-django-app | a69236a7f44374766bed666fd3e72217134cc582 | [
"MIT"
] | null | null | null | accounts/migrations/0003_alter_account_is_active.py | kashaudhan/ecommerce-django-app | a69236a7f44374766bed666fd3e72217134cc582 | [
"MIT"
] | 1 | 2022-03-12T01:00:24.000Z | 2022-03-12T01:00:24.000Z | accounts/migrations/0003_alter_account_is_active.py | kashaudhan/ecommerce-django-app | a69236a7f44374766bed666fd3e72217134cc582 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-24 11:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_alter_account_is_active'),
]
operations = [
migrations.AlterField(
model_name='account',
name='is_a... | 21 | 53 | 0.611529 | 43 | 399 | 5.534884 | 0.790698 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065972 | 0.278195 | 399 | 18 | 54 | 22.166667 | 0.760417 | 0.112782 | 0 | 0 | 1 | 0 | 0.147727 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91d6578242e47b68e28ee4123da5b183d2f505ff | 7,258 | py | Python | testing-legacy/gigantum_tests/test_merge_conflict_projects.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | testing-legacy/gigantum_tests/test_merge_conflict_projects.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | testing-legacy/gigantum_tests/test_merge_conflict_projects.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | import os
import logging
import time
from subprocess import Popen, PIPE
import selenium
import testutils
def test_use_mine_merge_conflict_project(driver: selenium.webdriver, *args, **kwargs):
"""
Test that a merge conflict is properly resolved when the user decides to "use mine."
Args:
driver
... | 46.229299 | 114 | 0.739184 | 954 | 7,258 | 5.324948 | 0.179245 | 0.115157 | 0.059843 | 0.047244 | 0.769291 | 0.716339 | 0.658465 | 0.637008 | 0.601378 | 0.570866 | 0 | 0.005799 | 0.168366 | 7,258 | 156 | 115 | 46.525641 | 0.835818 | 0.130201 | 0 | 0.443299 | 0 | 0 | 0.17413 | 0.052835 | 0 | 0 | 0 | 0 | 0.030928 | 1 | 0.041237 | false | 0 | 0.072165 | 0 | 0.123711 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91de1e7f7a70d234d700f7308e5b376197ce697e | 7,336 | py | Python | RoleBot.py | RamiNaji/DiscordBots | 6d423bb05df619fc4808a83c5066a4dcdbb29ce4 | [
"MIT"
] | null | null | null | RoleBot.py | RamiNaji/DiscordBots | 6d423bb05df619fc4808a83c5066a4dcdbb29ce4 | [
"MIT"
] | null | null | null | RoleBot.py | RamiNaji/DiscordBots | 6d423bb05df619fc4808a83c5066a4dcdbb29ce4 | [
"MIT"
] | null | null | null | import discord
from discord.utils import get
from discord.ext import tasks
intents = discord.Intents().all()
client = discord.Client(intents=intents)
embed = discord.Embed(title="Role Manager", description="React with a certain color to gain a role", colour=0x000FF)
embed.set_author(name="censored")
embed.add_field(na... | 35.960784 | 154 | 0.659896 | 976 | 7,336 | 4.932377 | 0.170082 | 0.031159 | 0.057125 | 0.083091 | 0.496053 | 0.4086 | 0.394059 | 0.394059 | 0.332779 | 0.332779 | 0 | 0.026778 | 0.231325 | 7,336 | 203 | 155 | 36.137931 | 0.821245 | 0 | 0 | 0.358025 | 0 | 0.030864 | 0.088059 | 0 | 0 | 0 | 0.008588 | 0 | 0 | 0 | null | null | 0 | 0.018519 | null | null | 0.006173 | 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 | 0 | 0 | 1 |
91e74047180c5760c7077bf7dad77df07b17d1c3 | 6,140 | py | Python | python-news_aggregator/jarr/api/auth.py | hanakhry/Crime_Admin | 17f96a81b80fb1302fb7b00f57bc88412d131675 | [
"MIT"
] | null | null | null | python-news_aggregator/jarr/api/auth.py | hanakhry/Crime_Admin | 17f96a81b80fb1302fb7b00f57bc88412d131675 | [
"MIT"
] | null | null | null | python-news_aggregator/jarr/api/auth.py | hanakhry/Crime_Admin | 17f96a81b80fb1302fb7b00f57bc88412d131675 | [
"MIT"
] | null | null | null | import random
from flask import current_app, render_template
from flask_jwt import current_identity, jwt_required
from flask_restx import Namespace, Resource, fields
from werkzeug.exceptions import BadRequest, Forbidden
from jarr.api.common import get_ui_url
from jarr.bootstrap import conf
from jarr.controllers impor... | 44.817518 | 79 | 0.596417 | 685 | 6,140 | 5.164964 | 0.240876 | 0.033917 | 0.03957 | 0.039005 | 0.467496 | 0.423686 | 0.32589 | 0.266535 | 0.206331 | 0.206331 | 0 | 0.01337 | 0.28127 | 6,140 | 136 | 80 | 45.147059 | 0.788353 | 0.0443 | 0 | 0.278261 | 0 | 0 | 0.127444 | 0.008233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034783 | false | 0.121739 | 0.095652 | 0 | 0.191304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91e9d0a71d6745f63d1b319ba8f43d51cd379522 | 3,695 | py | Python | tests/conformance/conftest.py | rebecca-pete/python-storage | 4fbbf02d3d2fb7e16c3db32eee0474655247c3bc | [
"Apache-2.0"
] | null | null | null | tests/conformance/conftest.py | rebecca-pete/python-storage | 4fbbf02d3d2fb7e16c3db32eee0474655247c3bc | [
"Apache-2.0"
] | null | null | null | tests/conformance/conftest.py | rebecca-pete/python-storage | 4fbbf02d3d2fb7e16c3db32eee0474655247c3bc | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 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 agreed to in writing, s... | 29.56 | 136 | 0.649256 | 442 | 3,695 | 5.264706 | 0.361991 | 0.041255 | 0.041255 | 0.045122 | 0.250107 | 0.19596 | 0.168457 | 0.168457 | 0.168457 | 0.107434 | 0 | 0.012859 | 0.179161 | 3,695 | 124 | 137 | 29.798387 | 0.754369 | 0.236536 | 0 | 0.316456 | 0 | 0 | 0.073504 | 0.033891 | 0.012658 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0.063291 | 0.075949 | 0 | 0.189873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.