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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f62a14574cc556934eed8c1ce8015c71a08b307 | 7,644 | py | Python | apps/AMR/asplos_plot.py | lightsighter/LegionOrigins | 0180bb3a8ee6efd0d2efdb743f75d3fba86f18f7 | [
"Apache-2.0"
] | 2 | 2021-11-10T06:29:39.000Z | 2021-11-14T20:56:13.000Z | apps/AMR/asplos_plot.py | lightsighter/LegionOrigins | 0180bb3a8ee6efd0d2efdb743f75d3fba86f18f7 | [
"Apache-2.0"
] | null | null | null | apps/AMR/asplos_plot.py | lightsighter/LegionOrigins | 0180bb3a8ee6efd0d2efdb743f75d3fba86f18f7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import subprocess
import sys, os, shutil
import string, re
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
home_dir="./"
expr_name="heat"
legion_name="legion"
number_nodes=[1,2,4,8,16]
boxlib_pat = re.compile(expr_name+"_(?P<size>[0-9]+)_(?P<d... | 40.020942 | 115 | 0.607535 | 1,116 | 7,644 | 4.023297 | 0.235663 | 0.0098 | 0.037416 | 0.026058 | 0.321158 | 0.23029 | 0.203341 | 0.054788 | 0.016927 | 0.016927 | 0 | 0.094359 | 0.22776 | 7,644 | 190 | 116 | 40.231579 | 0.666271 | 0.018315 | 0 | 0.153846 | 0 | 0.023669 | 0.1804 | 0.072533 | 0 | 0 | 0 | 0 | 0.005917 | 0 | null | null | 0 | 0.035503 | null | null | 0.112426 | 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 |
6f66e6e168deae73def02b35a6cfeec1bce58799 | 10,707 | py | Python | temscript/null_microscope.py | niermann/temscript | fb1982b57a3fdbd21225eb8b6340b2c5b22ed7cb | [
"BSD-3-Clause"
] | 26 | 2017-03-29T05:52:04.000Z | 2022-03-28T07:11:17.000Z | temscript/null_microscope.py | niermann/temscript | fb1982b57a3fdbd21225eb8b6340b2c5b22ed7cb | [
"BSD-3-Clause"
] | 8 | 2017-06-28T11:36:05.000Z | 2022-03-31T10:02:53.000Z | temscript/null_microscope.py | niermann/temscript | fb1982b57a3fdbd21225eb8b6340b2c5b22ed7cb | [
"BSD-3-Clause"
] | 8 | 2018-09-19T12:50:30.000Z | 2022-03-27T20:20:55.000Z | from enum import Enum
import numpy as np
from math import pi
from .enums import *
from .base_microscope import BaseMicroscope, parse_enum
def try_update(dest, source, key, cast=None, min_value=None, max_value=None, ignore_errors=False):
try:
value = source.pop(key)
except KeyError:
return Fa... | 32.445455 | 136 | 0.620529 | 1,311 | 10,707 | 4.790999 | 0.174676 | 0.029613 | 0.019105 | 0.026747 | 0.374622 | 0.257125 | 0.206973 | 0.175131 | 0.139468 | 0.102531 | 0 | 0.011406 | 0.279443 | 10,707 | 329 | 137 | 32.544073 | 0.802722 | 0.039787 | 0 | 0.208661 | 0 | 0 | 0.06774 | 0.00449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204724 | false | 0 | 0.031496 | 0.098425 | 0.417323 | 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 |
6f6798fc6191b659d24780552f9e9db29904becf | 673 | py | Python | test/box-py/print.test.py | gridgentoo/Tarantool.Lua.Net | 14b413c27d78a84cd419d6038666bf0a7ab6a6b0 | [
"BSD-2-Clause"
] | 2 | 2015-12-08T21:37:42.000Z | 2015-12-08T22:11:02.000Z | test/box-py/print.test.py | ocelot-inc/tarantool | 47fdd0edf29d79b8a0d33a8d0716146e31bac644 | [
"BSD-2-Clause"
] | null | null | null | test/box-py/print.test.py | ocelot-inc/tarantool | 47fdd0edf29d79b8a0d33a8d0716146e31bac644 | [
"BSD-2-Clause"
] | 1 | 2020-01-29T15:33:33.000Z | 2020-01-29T15:33:33.000Z | import tarantool
import sys
import os
import re
log = server.get_log()
admin('print("Hello, world")')
admin("io = require('io')")
admin("""local f = require('fiber').create(
function()
print('Ehllo, world')
io.flush()
end
)""")
admin("require('fiber').sleep(0.1)")
print("Check log line (Hel... | 19.228571 | 49 | 0.597325 | 87 | 673 | 4.586207 | 0.413793 | 0.120301 | 0.065163 | 0.085213 | 0.240602 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.170877 | 673 | 34 | 50 | 19.794118 | 0.707885 | 0 | 0 | 0.214286 | 0 | 0 | 0.549777 | 0.07578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6f68ce53406406d4826946eab3818e57d537304f | 1,538 | py | Python | 2018/07_the_sum_of_its_parts_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | 2018/07_the_sum_of_its_parts_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | 2018/07_the_sum_of_its_parts_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | import importlib
module = importlib.import_module("07_the_sum_of_its_parts")
find_steps_order = module.find_steps_order
parse_instructions = module.parse_instructions
instructions = [
"Step C must be finished before step A can begin.",
"Step C must be finished before step F can begin.",
"Step A must be fi... | 29.576923 | 80 | 0.648244 | 225 | 1,538 | 4.271111 | 0.204444 | 0.171696 | 0.101977 | 0.145682 | 0.463059 | 0.304891 | 0.248699 | 0.188345 | 0.154006 | 0 | 0 | 0.008885 | 0.195059 | 1,538 | 51 | 81 | 30.156863 | 0.767367 | 0 | 0 | 0 | 0 | 0 | 0.262029 | 0.014954 | 0 | 0 | 0 | 0 | 0.472222 | 1 | 0.083333 | false | 0 | 0.055556 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f6ca7129e7f2df32d16f8d97f60782c825a7c74 | 674 | py | Python | cdp_backend/database/__init__.py | liamphmurphy/cdp-backend | f77ca6d02099dcea71da8378ddf742951a4665a7 | [
"MIT"
] | 9 | 2020-10-08T03:15:16.000Z | 2022-03-18T01:06:20.000Z | cdp_backend/database/__init__.py | liamphmurphy/cdp-backend | f77ca6d02099dcea71da8378ddf742951a4665a7 | [
"MIT"
] | 165 | 2020-10-08T03:18:24.000Z | 2022-03-25T16:15:48.000Z | cdp_backend/database/__init__.py | liamphmurphy/cdp-backend | f77ca6d02099dcea71da8378ddf742951a4665a7 | [
"MIT"
] | 12 | 2020-11-24T08:27:32.000Z | 2022-03-19T20:34:29.000Z | # -*- coding: utf-8 -*-
"""Database package for cdp_backend."""
import inspect
import fireo
from . import models
###############################################################################
DATABASE_MODELS = []
for _, model_cls in inspect.getmembers(models, inspect.isclass):
if isinstance(model_cls, fireo... | 28.083333 | 87 | 0.676558 | 84 | 674 | 5.285714 | 0.571429 | 0.157658 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001704 | 0.12908 | 674 | 23 | 88 | 29.304348 | 0.754685 | 0.307122 | 0 | 0 | 0 | 0 | 0 | 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 |
6f6ecf8d32128d7a9342192814d9a38ac80a0386 | 17,577 | py | Python | example/RunModel/Abaqus_Example/abaqus_input.py | marrov/UQpy | b04a267b3080e3d4d38e876547ba0d3b979734f3 | [
"MIT"
] | 132 | 2018-03-13T13:56:33.000Z | 2022-03-21T13:59:17.000Z | example/RunModel/Abaqus_Example/abaqus_input.py | marrov/UQpy | b04a267b3080e3d4d38e876547ba0d3b979734f3 | [
"MIT"
] | 140 | 2018-05-21T13:40:01.000Z | 2022-03-29T14:18:01.000Z | example/RunModel/Abaqus_Example/abaqus_input.py | marrov/UQpy | b04a267b3080e3d4d38e876547ba0d3b979734f3 | [
"MIT"
] | 61 | 2018-05-02T13:40:05.000Z | 2022-03-06T11:31:21.000Z | # -*- coding: mbcs -*-
# Do not delete the following import lines
from abaqus import *
from abaqusConstants import *
import __main__
import numpy as np
def time_temperature_curve(qtd=None):
# Define the other parameters of the curve
O = 0.14
b = 1500
typ = 'medium'
# Heating phase
t_lim = 20 /... | 50.800578 | 122 | 0.592479 | 1,841 | 17,577 | 5.557306 | 0.232482 | 0.046623 | 0.113967 | 0.089727 | 0.488418 | 0.408855 | 0.334278 | 0.251295 | 0.203695 | 0.184146 | 0 | 0.03289 | 0.28213 | 17,577 | 345 | 123 | 50.947826 | 0.777936 | 0.107982 | 0 | 0.216418 | 0 | 0 | 0.103647 | 0 | 0 | 0 | 0 | 0.002899 | 0 | 0 | null | null | 0 | 0.078358 | 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 |
6f6f266f2fb0d0a023c43c2359ba5eb976ffaee9 | 4,552 | py | Python | routingslip/models.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 16 | 2016-08-17T21:39:10.000Z | 2021-11-24T12:14:28.000Z | routingslip/models.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 55 | 2017-04-23T18:12:04.000Z | 2021-08-08T08:25:18.000Z | routingslip/models.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 8 | 2017-08-11T02:11:46.000Z | 2021-07-06T22:58:42.000Z | #(C) Copyright Syd Logan 2017-2020
#(C) Copyright Thousand Smiles Foundation 2017-2020
#
#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 req... | 39.582609 | 79 | 0.688269 | 594 | 4,552 | 5.244108 | 0.392256 | 0.02825 | 0.036918 | 0.041734 | 0.138042 | 0.128411 | 0.076404 | 0.056501 | 0.056501 | 0.056501 | 0 | 0.006651 | 0.240334 | 4,552 | 114 | 80 | 39.929825 | 0.894158 | 0.190466 | 0 | 0.129032 | 0 | 0 | 0.053665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112903 | 0 | 0.677419 | 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 |
6f7073b7e3164254cb8de313bf7b2d0375c3b7dd | 1,907 | py | Python | ngrams/complex.py | KaviMD/stretch-study | edf4ffa160d21c2fb5b155ad6f0b8f3e6d1a1741 | [
"MIT"
] | null | null | null | ngrams/complex.py | KaviMD/stretch-study | edf4ffa160d21c2fb5b155ad6f0b8f3e6d1a1741 | [
"MIT"
] | null | null | null | ngrams/complex.py | KaviMD/stretch-study | edf4ffa160d21c2fb5b155ad6f0b8f3e6d1a1741 | [
"MIT"
] | null | null | null | from ngrams import generate_ngrams, cdf, pick_ngram, filter_dict_keys
### Complex text generation (predict next n using last m grams)
# basically ngrams help you pick the next n words with the highest probility given the previous n words
# We could have the previous n be an anction list and the next n be on of... | 45.404762 | 137 | 0.721028 | 307 | 1,907 | 4.28013 | 0.397394 | 0.053272 | 0.054795 | 0.033486 | 0.170472 | 0.109589 | 0.060883 | 0.060883 | 0.060883 | 0.060883 | 0 | 0.005921 | 0.202937 | 1,907 | 42 | 138 | 45.404762 | 0.858553 | 0.334033 | 0 | 0.076923 | 1 | 0.076923 | 0.170111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.192308 | 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 |
6f731997951fb0b2296f457cd32a41fc6ec5fa96 | 8,005 | py | Python | srflow/models/modules/RRDBNet_arch.py | yandex-research/distill-nf | b804289b88e9bf1736f29b7e8b0b25614b08a924 | [
"Apache-2.0"
] | 7 | 2021-06-23T08:21:50.000Z | 2021-11-18T17:32:58.000Z | srflow/models/modules/RRDBNet_arch.py | yandex-research/distill-nf | b804289b88e9bf1736f29b7e8b0b25614b08a924 | [
"Apache-2.0"
] | 1 | 2021-12-09T05:19:40.000Z | 2021-12-10T06:23:25.000Z | srflow/models/modules/RRDBNet_arch.py | yandex-research/distill-nf | b804289b88e9bf1736f29b7e8b0b25614b08a924 | [
"Apache-2.0"
] | null | null | null | import functools
import torch
import torch.nn as nn
import torch.nn.functional as F
import models.modules.module_util as mutil
from utils.util import opt_get
class ResidualDenseBlock_3C(nn.Module):
def __init__(self, nf=64, gc=32, bias=True):
super(ResidualDenseBlock_3C, self).__init__()
# gc: gro... | 37.759434 | 145 | 0.589007 | 1,190 | 8,005 | 3.79916 | 0.117647 | 0.042468 | 0.015926 | 0.03716 | 0.749392 | 0.70073 | 0.694094 | 0.680823 | 0.648971 | 0.575979 | 0 | 0.052775 | 0.268582 | 8,005 | 212 | 146 | 37.759434 | 0.719385 | 0.030606 | 0 | 0.427673 | 0 | 0 | 0.028704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08805 | false | 0 | 0.037736 | 0 | 0.220126 | 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 |
6f7634e0af1020acebd815c30010d38ae5431323 | 1,531 | py | Python | roles/terraform/files/configure_nodes.py | arturobayo/cdh-ansible | 274c031f60db0ef1648074ce8f8829a203c2b27e | [
"MIT"
] | null | null | null | roles/terraform/files/configure_nodes.py | arturobayo/cdh-ansible | 274c031f60db0ef1648074ce8f8829a203c2b27e | [
"MIT"
] | null | null | null | roles/terraform/files/configure_nodes.py | arturobayo/cdh-ansible | 274c031f60db0ef1648074ce8f8829a203c2b27e | [
"MIT"
] | null | null | null | import yaml
import sys
import commands
from itertools import groupby
from operator import itemgetter
if (len(sys.argv) != 3):
print "Invalid number of arguments"
sys.exit(0)
wd = str(sys.argv[1])
env = str(sys.argv[2])
hosts_file = wd + '/hosts/' + env
env_path = wd + '/group_vars/' + env
tf_path = wd + '/roles/ter... | 26.859649 | 148 | 0.644024 | 222 | 1,531 | 4.288288 | 0.315315 | 0.063025 | 0.058824 | 0.029412 | 0.281513 | 0.210084 | 0.210084 | 0.210084 | 0.12605 | 0.12605 | 0 | 0.003017 | 0.133899 | 1,531 | 57 | 149 | 26.859649 | 0.714932 | 0.032658 | 0 | 0.139535 | 0 | 0 | 0.196078 | 0.014875 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.023256 | 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 |
488ab0c812b40ed31de1dfcf9da736d6040601c2 | 3,473 | py | Python | resource/login_ui.py | JiangNanMax/qp12306 | 9161d6129f67003cc4e3557a1e0a3a066a7dfa76 | [
"MIT"
] | 2 | 2019-02-25T02:02:24.000Z | 2020-02-22T09:35:33.000Z | resource/login_ui.py | JiangNanMax/qp12306 | 9161d6129f67003cc4e3557a1e0a3a066a7dfa76 | [
"MIT"
] | null | null | null | resource/login_ui.py | JiangNanMax/qp12306 | 9161d6129f67003cc4e3557a1e0a3a066a7dfa76 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'login.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Fo... | 47.575342 | 82 | 0.695364 | 413 | 3,473 | 5.723971 | 0.263923 | 0.050761 | 0.030457 | 0.057107 | 0.224196 | 0.170897 | 0.094755 | 0.041455 | 0.041455 | 0 | 0 | 0.036607 | 0.181975 | 3,473 | 72 | 83 | 48.236111 | 0.795495 | 0.05154 | 0 | 0 | 1 | 0 | 0.061758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.016667 | 0.033333 | 0 | 0.083333 | 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 |
488becbcd049c693b5bb4d983466e5b0e31ef663 | 5,914 | py | Python | autolens/model/inversion/inversions.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | autolens/model/inversion/inversions.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | autolens/model/inversion/inversions.py | AshKelly/PyAutoLens | 043795966338a655339e61782253ad67cc3c14e6 | [
"MIT"
] | null | null | null | import numpy as np
from autolens import exc
from autolens.model.inversion.util import inversion_util
# TODO : Unit test this properly, using a cleverly made mock hyper-set
def inversion_from_image_mapper_and_regularization(image_1d, noise_map_1d, convolver, mapper, regularization):
return Inversion(image_1d=imag... | 50.118644 | 118 | 0.715252 | 734 | 5,914 | 5.551771 | 0.262943 | 0.044663 | 0.04908 | 0.020614 | 0.204417 | 0.179632 | 0.12908 | 0.06773 | 0.045153 | 0.045153 | 0 | 0.008311 | 0.226919 | 5,914 | 118 | 119 | 50.118644 | 0.882983 | 0.495604 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.190476 | false | 0 | 0.071429 | 0.119048 | 0.452381 | 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 |
489143b6d0775a19b81df4a26b481880f1c923fa | 6,922 | py | Python | config.py | dupengcheng/woniu-cmdb | 0ae875dea445d31ffd9eac8e0f7ae12c04329773 | [
"MIT"
] | null | null | null | config.py | dupengcheng/woniu-cmdb | 0ae875dea445d31ffd9eac8e0f7ae12c04329773 | [
"MIT"
] | null | null | null | config.py | dupengcheng/woniu-cmdb | 0ae875dea445d31ffd9eac8e0f7ae12c04329773 | [
"MIT"
] | null | null | null | # coding=utf-8
# 数据库配置
db_config = {
'db': 'cmdb'
}
page_config = {
"brand_name": '51Reboot',
'title': 'hello reboot',
"favicon": 'https://pic1.zhimg.com/6d660dd4156c64bfad13ff97d79c2f98_l.jpg',
"menu": [
{
# user配置最好不要修改,是和登陆认证相关的,直接在下面加配置即可
"name": 'user',
... | 27.468254 | 81 | 0.273476 | 389 | 6,922 | 4.724936 | 0.272494 | 0.068553 | 0.052231 | 0.065288 | 0.509249 | 0.509249 | 0.483134 | 0.46518 | 0.46518 | 0.441785 | 0 | 0.018176 | 0.562843 | 6,922 | 251 | 82 | 27.577689 | 0.589227 | 0.406674 | 0 | 0.483333 | 0 | 0 | 0.229151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008333 | false | 0.008333 | 0 | 0 | 0.008333 | 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 |
4895acf941e0b71da4712bb5951d7e5f05125457 | 802 | py | Python | configurations/qtile/config.py | hexbioc/archiac | 44c3fba1d70179e53d453226f0cc516bc8e88212 | [
"MIT"
] | 2 | 2022-03-21T18:06:04.000Z | 2022-03-25T10:27:07.000Z | configurations/qtile/config.py | hexbioc/archiac | 44c3fba1d70179e53d453226f0cc516bc8e88212 | [
"MIT"
] | null | null | null | configurations/qtile/config.py | hexbioc/archiac | 44c3fba1d70179e53d453226f0cc516bc8e88212 | [
"MIT"
] | null | null | null | from custom.screens import screens
from custom.groups import groups
from custom.bindings import keys, mouse
from custom.layouts import layouts, floating_layout
from custom.widgets import widget_defaults, extension_defaults
dgroups_key_binder = None
dgroups_app_rules = [] # type: list
follow_mouse_focus = True
bring_... | 28.642857 | 78 | 0.806733 | 119 | 802 | 5.268908 | 0.672269 | 0.079745 | 0.051037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001462 | 0.147132 | 802 | 27 | 79 | 29.703704 | 0.915205 | 0.36409 | 0 | 0 | 0 | 0 | 0.017893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4897debd7ef388b4640f00c850cd832dd2193795 | 240 | py | Python | KarmaxerwithCSV/CSV.py | MishraAvi25/KarmaxerwithCSV | 6b62c3e25253325774b5f2a2b0a4476add6ba73e | [
"MIT"
] | null | null | null | KarmaxerwithCSV/CSV.py | MishraAvi25/KarmaxerwithCSV | 6b62c3e25253325774b5f2a2b0a4476add6ba73e | [
"MIT"
] | null | null | null | KarmaxerwithCSV/CSV.py | MishraAvi25/KarmaxerwithCSV | 6b62c3e25253325774b5f2a2b0a4476add6ba73e | [
"MIT"
] | null | null | null | import csv
from Title_Counter import all_titles
from Hour_Cutter import all_hours
myData = [[all_titles()],[all_hours()]]
myFile = open('TheData.csv', 'w')
with myFile:
writer = csv.writer(myFile)
writer.writerows(myData) | 24 | 40 | 0.708333 | 33 | 240 | 4.969697 | 0.545455 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170833 | 240 | 10 | 41 | 24 | 0.824121 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
489927c5b93cd3af5775c84cf3386a3bc416f50f | 633 | py | Python | test/_test_partition.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | test/_test_partition.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | test/_test_partition.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | `Foo(int a:0..100, int b).
Foo(a,b) :- a=$range(0, 100), b=42.`
`Bar(int a:0..200, (int b)).
Bar(a,b) :- Foo(a,b).`
count = 0
for a,b in `Bar(a,b)`:
count += 1
assert count == 100
print "count:", count
`Foo2(int a:0..100, int b).
Foo2(a,b) :- a=$range(0,100), b=42.`
`Bar2(int a:0..200, int b).
Bar2(a,b) :- ... | 21.827586 | 48 | 0.529226 | 142 | 633 | 2.352113 | 0.211268 | 0.05988 | 0.07485 | 0.071856 | 0.488024 | 0.461078 | 0.08982 | 0.08982 | 0 | 0 | 0 | 0.142308 | 0.178515 | 633 | 28 | 49 | 22.607143 | 0.5 | 0 | 0 | 0.26087 | 0 | 0 | 0.018957 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0 | 0 | null | null | 0.086957 | 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 |
489941c7b364826133dd0425176c60f3ea3556f5 | 797 | py | Python | pydis_site/apps/api/migrations/0056_allow_blank_user_roles.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 700 | 2018-11-17T15:56:51.000Z | 2022-03-30T22:53:17.000Z | pydis_site/apps/api/migrations/0056_allow_blank_user_roles.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 542 | 2018-11-17T13:39:42.000Z | 2022-03-31T11:24:00.000Z | pydis_site/apps/api/migrations/0056_allow_blank_user_roles.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 178 | 2018-11-21T09:06:56.000Z | 2022-03-31T07:43:28.000Z | # Generated by Django 3.0.8 on 2020-07-14 20:35
import django.contrib.postgres.fields
import django.core.validators
from django.db import migrations, models
import pydis_site.apps.api.models.bot.user
class Migration(migrations.Migration):
dependencies = [
('api', '0055_merge_20200714_2027'),
]
... | 36.227273 | 356 | 0.716437 | 104 | 797 | 5.375 | 0.644231 | 0.042934 | 0.075134 | 0.096601 | 0.103757 | 0.103757 | 0.103757 | 0 | 0 | 0 | 0 | 0.048338 | 0.169385 | 797 | 21 | 357 | 37.952381 | 0.796073 | 0.056462 | 0 | 0 | 1 | 0 | 0.137333 | 0.032 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.466667 | 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 |
489d3ccfc9e3fb6e214d4a51835e642a601c3f94 | 3,201 | py | Python | server/msh/module/xml_reader.py | VanMenoz92/msh | b2a1b71083065ec3ebb097c05f58e79073578ecf | [
"Apache-2.0"
] | 1 | 2021-11-29T07:46:29.000Z | 2021-11-29T07:46:29.000Z | server/msh/module/xml_reader.py | VanMenoz92/msh | b2a1b71083065ec3ebb097c05f58e79073578ecf | [
"Apache-2.0"
] | null | null | null | server/msh/module/xml_reader.py | VanMenoz92/msh | b2a1b71083065ec3ebb097c05f58e79073578ecf | [
"Apache-2.0"
] | 1 | 2019-05-07T22:37:26.000Z | 2019-05-07T22:37:26.000Z | from xml.dom import minidom
from logging import DEBUG, INFO, WARNING, ERROR, CRITICAL
class XmlReader:
settings = {}
log_mapping = {
'debug': DEBUG,
'info': INFO,
'warning': WARNING,
'error': ERROR,
'critical': CRITICAL
}
servizi_dns = ['serveo', 'pagekite']
... | 51.629032 | 164 | 0.650734 | 311 | 3,201 | 6.514469 | 0.199357 | 0.204344 | 0.133268 | 0.066634 | 0.358835 | 0.25074 | 0.196446 | 0.196446 | 0.083909 | 0 | 0 | 0.013116 | 0.213996 | 3,201 | 61 | 165 | 52.47541 | 0.79213 | 0 | 0 | 0 | 0 | 0 | 0.150266 | 0.01562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.017241 | 0.034483 | 0 | 0.137931 | 0.017241 | 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 |
489e7bd03c68cc4d9c8f80b7cdcd59bb7c02bb3b | 376 | py | Python | src/triggers/tests/record_feedback_trigger/conftest.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | null | null | null | src/triggers/tests/record_feedback_trigger/conftest.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 1 | 2022-02-10T12:08:02.000Z | 2022-02-10T12:08:02.000Z | src/triggers/tests/record_feedback_trigger/conftest.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | null | null | null | from datetime import datetime
import pytest
from triggers.record_feedback import RecordFeedbackTrigger
pytestmark = [pytest.mark.django_db]
@pytest.fixture
def order(order, record):
order.set_item(record)
order.setattr_and_save('paid', datetime(2032, 12, 1, 15, 13))
return order
@pytest.fixture
def ... | 17.904762 | 65 | 0.763298 | 48 | 376 | 5.875 | 0.583333 | 0.099291 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034268 | 0.146277 | 376 | 20 | 66 | 18.8 | 0.844237 | 0 | 0 | 0.166667 | 0 | 0 | 0.010638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
48aceb77351af7e40aa79643774f0ca2cb4b6c1c | 643 | py | Python | GDKPAssistant.py | integgroll/GDKPAssistant | 43ffd447022b6e3791dce2fa749c38a73a6b2726 | [
"CC0-1.0"
] | null | null | null | GDKPAssistant.py | integgroll/GDKPAssistant | 43ffd447022b6e3791dce2fa749c38a73a6b2726 | [
"CC0-1.0"
] | null | null | null | GDKPAssistant.py | integgroll/GDKPAssistant | 43ffd447022b6e3791dce2fa749c38a73a6b2726 | [
"CC0-1.0"
] | null | null | null | import discord
import importlib
import discordbot.cogs.account
from loguru import logger
from dynaconf import settings as dyna_settings
from discord.ext.commands import Bot
from discordbot.gdpk_assistant import GDKPABot
logger.info("Starting GDKP Assistant")
discord_bot_handle = GDKPABot()
logger.info(discord_bot_h... | 32.15 | 107 | 0.830482 | 94 | 643 | 5.468085 | 0.393617 | 0.097276 | 0.155642 | 0.085603 | 0.264591 | 0.264591 | 0.264591 | 0.264591 | 0.264591 | 0.264591 | 0 | 0 | 0.079316 | 643 | 19 | 108 | 33.842105 | 0.868243 | 0 | 0 | 0 | 0 | 0 | 0.107477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48b6404bb69dd44a90fe71407116790c33dbef6e | 10,745 | py | Python | lbrynet/tests/unit/core/test_Wallet.py | Akshay-Gupta/lbry | 3b5978992c6e03269564c9bb69ebb7102e501469 | [
"MIT"
] | null | null | null | lbrynet/tests/unit/core/test_Wallet.py | Akshay-Gupta/lbry | 3b5978992c6e03269564c9bb69ebb7102e501469 | [
"MIT"
] | null | null | null | lbrynet/tests/unit/core/test_Wallet.py | Akshay-Gupta/lbry | 3b5978992c6e03269564c9bb69ebb7102e501469 | [
"MIT"
] | null | null | null | import os
import shutil
import tempfile
import lbryum.wallet
from decimal import Decimal
from collections import defaultdict
from twisted.trial import unittest
from twisted.internet import threads, defer
from lbrynet.core.Error import InsufficientFundsError
from lbrynet.core.Wallet import Wallet, LBRYumWallet, Reserv... | 41.01145 | 94 | 0.678548 | 1,175 | 10,745 | 5.933617 | 0.174468 | 0.037866 | 0.054217 | 0.018072 | 0.583764 | 0.51047 | 0.490103 | 0.459983 | 0.394578 | 0.368187 | 0 | 0.049047 | 0.223918 | 10,745 | 261 | 95 | 41.168582 | 0.787025 | 0.032852 | 0 | 0.408451 | 0 | 0 | 0.114621 | 0.050857 | 0 | 0 | 0 | 0 | 0.13615 | 1 | 0.14554 | false | 0.051643 | 0.051643 | 0.042254 | 0.309859 | 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 |
48b7b3790db20ff9f103dfc73b1c9dbfb9677f14 | 265 | py | Python | selfdrive/mapd/config.py | Sdaddy11/openpilotsg | a9d8a734df72586189945838dc817fedfdd01e90 | [
"MIT"
] | null | null | null | selfdrive/mapd/config.py | Sdaddy11/openpilotsg | a9d8a734df72586189945838dc817fedfdd01e90 | [
"MIT"
] | null | null | null | selfdrive/mapd/config.py | Sdaddy11/openpilotsg | a9d8a734df72586189945838dc817fedfdd01e90 | [
"MIT"
] | null | null | null | # Map query config
QUERY_RADIUS = 3000 # mts. Radius to use on OSM data queries.
MIN_DISTANCE_FOR_NEW_QUERY = 1000 # mts. Minimum distance to query area edge before issuing a new query.
FULL_STOP_MAX_SPEED = 1.39 # m/s Max speed for considering car is stopped.
| 44.166667 | 105 | 0.766038 | 47 | 265 | 4.148936 | 0.744681 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050691 | 0.181132 | 265 | 5 | 106 | 53 | 0.847926 | 0.645283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ba88cdbe636a831d1b19bd34d2250e349f383c | 575 | py | Python | build/util/lib/results/result_types.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | build/util/lib/results/result_types.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 250 | 2018-02-02T23:16:57.000Z | 2022-03-21T06:09:53.000Z | build/util/lib/results/result_types.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Module containing base test results classes."""
# The test passed.
PASS = 'SUCCESS'
# The test was intentionally skipped.
SKIP = 'SKIPPED'
# The test fa... | 22.115385 | 72 | 0.723478 | 86 | 575 | 4.837209 | 0.72093 | 0.117788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008565 | 0.187826 | 575 | 25 | 73 | 23 | 0.882227 | 0.725217 | 0 | 0 | 0 | 0 | 0.321678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
48c2d85472386a6f47ddb0531fe5504da4323b8f | 2,352 | py | Python | library/test/smoke_test.py | hugoleeney/liquidnet_library | cbf848953dd44fdc3f761ff60f942784b33abb20 | [
"MIT"
] | null | null | null | library/test/smoke_test.py | hugoleeney/liquidnet_library | cbf848953dd44fdc3f761ff60f942784b33abb20 | [
"MIT"
] | null | null | null | library/test/smoke_test.py | hugoleeney/liquidnet_library | cbf848953dd44fdc3f761ff60f942784b33abb20 | [
"MIT"
] | null | null | null | import requests
# post a request with no json body
from library.test.test_help import post_subset, get
r = requests.post('http://localhost:5000/request')
assert r.status_code == requests.codes.bad
# post a request with bad json
r = requests.post('http://localhost:5000/request', data='{"data":"notgood}"')
assert r.... | 34.588235 | 97 | 0.712585 | 364 | 2,352 | 4.535714 | 0.236264 | 0.102362 | 0.133858 | 0.188976 | 0.669897 | 0.569958 | 0.508177 | 0.391278 | 0.391278 | 0.327075 | 0 | 0.042178 | 0.133078 | 2,352 | 67 | 98 | 35.104478 | 0.767533 | 0.185374 | 0 | 0.21875 | 0 | 0 | 0.315292 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48c40e1d530664c5fd05b53bb22b7c8607de7211 | 624 | py | Python | napari/layers/_labels_layer/view/properties.py | donovanr/napari | 580b5eab8cc40af53aef780a65adb9216d968a32 | [
"BSD-3-Clause"
] | null | null | null | napari/layers/_labels_layer/view/properties.py | donovanr/napari | 580b5eab8cc40af53aef780a65adb9216d968a32 | [
"BSD-3-Clause"
] | null | null | null | napari/layers/_labels_layer/view/properties.py | donovanr/napari | 580b5eab8cc40af53aef780a65adb9216d968a32 | [
"BSD-3-Clause"
] | null | null | null | from PyQt5.QtWidgets import QPushButton
from ..._base_layer import QtLayer
class QtLabelsLayer(QtLayer):
def __init__(self, layer):
super().__init__(layer)
self.layer.events.colormap.connect(self._on_colormap_change)
self.colormap_update = QPushButton('shuffle colors')
self.color... | 28.363636 | 68 | 0.708333 | 76 | 624 | 5.526316 | 0.486842 | 0.107143 | 0.128571 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009881 | 0.189103 | 624 | 21 | 69 | 29.714286 | 0.820158 | 0 | 0 | 0 | 0 | 0 | 0.022436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
48c7d0529fd77832a388faa9339edaa6c1f97799 | 264 | py | Python | modelTest.py | Middle-High-German-Conceptual-Database/Spacy-Model-for-Middle-High-German | 1c266ac3b69066981efb22454e9a2c81a3939dd3 | [
"MIT"
] | 2 | 2021-09-16T10:23:22.000Z | 2021-12-03T09:17:42.000Z | modelTest.py | Middle-High-German-Conceptual-Database/Spacy-Model-for-Middle-High-German | 1c266ac3b69066981efb22454e9a2c81a3939dd3 | [
"MIT"
] | null | null | null | modelTest.py | Middle-High-German-Conceptual-Database/Spacy-Model-for-Middle-High-German | 1c266ac3b69066981efb22454e9a2c81a3939dd3 | [
"MIT"
] | 1 | 2021-09-16T10:24:35.000Z | 2021-09-16T10:24:35.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import spacy
nlp = spacy.load('./models/model-best')
doc = nlp('sô solte ime ouch di burc wesen vile tiure ne hæte si mit den viure unde mit den mangen niet bestân')
for w in doc:
print(f'{w.text} – {w.tag_}')
| 24 | 112 | 0.659091 | 49 | 264 | 3.55102 | 0.857143 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.185606 | 264 | 10 | 113 | 26.4 | 0.795349 | 0.162879 | 0 | 0 | 0 | 0.2 | 0.625571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48cc8ddeb2c0b8ea6ee4c47fdc0de6c5cca675f6 | 616 | py | Python | python/Intermediate-Algorithm-Scripting/argumentsOptional.py | stricoff92/freecodecamp-challenges | 5f0012fc27edfe7d4855269e18c1b9bb82fe1f4a | [
"MIT"
] | null | null | null | python/Intermediate-Algorithm-Scripting/argumentsOptional.py | stricoff92/freecodecamp-challenges | 5f0012fc27edfe7d4855269e18c1b9bb82fe1f4a | [
"MIT"
] | 1 | 2018-09-28T01:34:46.000Z | 2018-09-28T01:34:46.000Z | python/Intermediate-Algorithm-Scripting/argumentsOptional.py | stricoff92/freecodecamp-challenges | 5f0012fc27edfe7d4855269e18c1b9bb82fe1f4a | [
"MIT"
] | null | null | null |
'''
Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum.
For example, addTogether(2, 3) should return 5, and addTogether(2) should return a function.
Calling this returned function with a single argument will the... | 23.692308 | 155 | 0.712662 | 95 | 616 | 4.621053 | 0.526316 | 0.109339 | 0.059226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02449 | 0.204545 | 616 | 26 | 156 | 23.692308 | 0.871429 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48d63776b298fbb27a0684a9d6af2603dc6bc067 | 1,377 | py | Python | python/arrays/reverse_without_special_characters.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | null | null | null | python/arrays/reverse_without_special_characters.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 11 | 2020-01-09T06:53:45.000Z | 2022-02-11T01:34:44.000Z | python/arrays/reverse_without_special_characters.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 1 | 2017-03-18T17:19:43.000Z | 2017-03-18T17:19:43.000Z | def solution(A): # O(N/2)
"""
Write a function to reverse a list without affecting special characters and
without using the built-in function.
>>> solution(['a', ',', 'b', '$', 'c'])
['c', ',', 'b', '$', 'a']
>>> solution(['A', 'b', ',', 'c', '... | 45.9 | 79 | 0.217865 | 119 | 1,377 | 2.453782 | 0.327731 | 0.075342 | 0.05137 | 0.075342 | 0.143836 | 0.075342 | 0 | 0 | 0 | 0 | 0 | 0.036609 | 0.623094 | 1,377 | 29 | 80 | 47.482759 | 0.526012 | 0.257807 | 0 | 0.25 | 0 | 0 | 0.008214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
48da292e2f8ce3d78ec8f4dfc3a6e7359192c40a | 1,216 | py | Python | ledger/payments/bpay/migrations/0009_auto_20170203_1429.py | jawaidm/ledger | 7094f3320d6a409a2a0080e70fa7c2b9dba4a715 | [
"Apache-2.0"
] | 5 | 2018-02-12T03:16:36.000Z | 2019-09-07T20:36:37.000Z | ledger/payments/bpay/migrations/0009_auto_20170203_1429.py | jawaidm/ledger | 7094f3320d6a409a2a0080e70fa7c2b9dba4a715 | [
"Apache-2.0"
] | 162 | 2018-02-16T05:13:03.000Z | 2021-05-14T02:47:37.000Z | ledger/payments/bpay/migrations/0009_auto_20170203_1429.py | jawaidm/ledger | 7094f3320d6a409a2a0080e70fa7c2b9dba4a715 | [
"Apache-2.0"
] | 14 | 2018-02-15T05:22:36.000Z | 2022-02-15T08:24:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-03 06:29
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bpay', '0008_auto_20170203_1045'),
]
operations = ... | 32.864865 | 114 | 0.596217 | 121 | 1,216 | 5.826446 | 0.545455 | 0.034043 | 0.039716 | 0.062411 | 0.224113 | 0.224113 | 0.224113 | 0.224113 | 0.224113 | 0.224113 | 0 | 0.046485 | 0.274671 | 1,216 | 36 | 115 | 33.777778 | 0.752834 | 0.055921 | 0 | 0.37931 | 1 | 0 | 0.117904 | 0.038428 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 |
48db7e18329d605eaf2cdc51ca1bd95c5a141748 | 11,710 | py | Python | scripts/prepare-final-summary-table.py | gruber-sciencelab/MAPP | 81563f676b284c5b283a193a698ce618c044d3b5 | [
"Apache-2.0"
] | null | null | null | scripts/prepare-final-summary-table.py | gruber-sciencelab/MAPP | 81563f676b284c5b283a193a698ce618c044d3b5 | [
"Apache-2.0"
] | null | null | null | scripts/prepare-final-summary-table.py | gruber-sciencelab/MAPP | 81563f676b284c5b283a193a698ce618c044d3b5 | [
"Apache-2.0"
] | 1 | 2022-01-15T04:39:30.000Z | 2022-01-15T04:39:30.000Z | """
##############################################################################
#
# Generate table with motifs' scores for the final HTML report.
#
# AUTHOR: Maciej_Bak
# AFFILIATION: University_of_Basel
# AFFILIATION: Swiss_Institute_of_Bioinformatics
# CONTACT: maciej.bak@unibas.ch
# CREATED: 03-06-202... | 35.70122 | 108 | 0.584799 | 1,422 | 11,710 | 4.66315 | 0.24121 | 0.05429 | 0.01493 | 0.023073 | 0.343236 | 0.337958 | 0.295129 | 0.281858 | 0.208113 | 0.172825 | 0 | 0.011975 | 0.272588 | 11,710 | 327 | 109 | 35.810398 | 0.766494 | 0.180786 | 0 | 0.284519 | 1 | 0 | 0.165244 | 0.008214 | 0 | 0 | 0 | 0 | 0.008368 | 1 | 0.020921 | false | 0 | 0.033473 | 0 | 0.075314 | 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 |
48e0a9287001162f0db8c2c5ba322350bd58fb96 | 2,800 | py | Python | koepsell-phase-coupling-estimation-271441c/python/phasemodel/tests/test_phasemodel.py | arengela/AngelaUCSFCodeAll | aeacf478bae7fbddfe6903c963fb9a08b0f0aecc | [
"BSD-3-Clause"
] | 1 | 2021-09-21T09:22:02.000Z | 2021-09-21T09:22:02.000Z | koepsell-phase-coupling-estimation-271441c/python/phasemodel/tests/test_phasemodel.py | arengela/AngelaUCSFCodeAll | aeacf478bae7fbddfe6903c963fb9a08b0f0aecc | [
"BSD-3-Clause"
] | null | null | null | koepsell-phase-coupling-estimation-271441c/python/phasemodel/tests/test_phasemodel.py | arengela/AngelaUCSFCodeAll | aeacf478bae7fbddfe6903c963fb9a08b0f0aecc | [
"BSD-3-Clause"
] | 1 | 2021-09-21T09:40:34.000Z | 2021-09-21T09:40:34.000Z | """
Tests the accuracy of the algorithm and the code implementation.
:Authors: Charles Cadieu <cadieu@berkeley.edu> and
Kilian Koepsell <kilian@berkeley.edu>
:Reference: Cadieu CF, Koepsell K (2010) Phase coupling estimation from
multivariate phase statistics. Neural Computation (in press).
:Co... | 28.282828 | 86 | 0.691429 | 402 | 2,800 | 4.584577 | 0.298507 | 0.039067 | 0.037982 | 0.043407 | 0.400977 | 0.400977 | 0.338036 | 0.338036 | 0.297884 | 0.297884 | 0 | 0.024923 | 0.183214 | 2,800 | 98 | 87 | 28.571429 | 0.780936 | 0.054286 | 0 | 0.37037 | 0 | 0 | 0.133392 | 0.021201 | 0 | 0 | 0 | 0 | 0.111111 | 0 | null | null | 0 | 0.12963 | null | null | 0.148148 | 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 |
48ea5eafcbbc8c3317f65fff7af45bcfdd2844cc | 3,131 | py | Python | boost.py | simsicon/AdaBoostTrees | d576901a6b66c79dcfdf0edf06c4f93076580484 | [
"MIT"
] | 15 | 2016-08-05T05:55:59.000Z | 2021-06-28T02:09:52.000Z | boost.py | simsicon/AdaBoostTrees | d576901a6b66c79dcfdf0edf06c4f93076580484 | [
"MIT"
] | null | null | null | boost.py | simsicon/AdaBoostTrees | d576901a6b66c79dcfdf0edf06c4f93076580484 | [
"MIT"
] | 7 | 2016-08-10T09:05:05.000Z | 2020-02-19T16:51:50.000Z | from __future__ import division
import random
import time
import numpy as np
from collections import Counter
from tree import Tree
class Boosting:
def __init__(self, X, y, n_estimators=10, n_samples=1024):
self.X = X
self.y = y
self.n_estimators = n_estimators
self.n_samples = n_... | 31.94898 | 99 | 0.545513 | 411 | 3,131 | 4.029197 | 0.211679 | 0.024155 | 0.014493 | 0.012681 | 0.035024 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01661 | 0.346215 | 3,131 | 97 | 100 | 32.278351 | 0.792379 | 0 | 0 | 0.077922 | 0 | 0 | 0.026828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | null | null | 0.077922 | 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 |
48eda92df5e622d8692182ea35977178a855c299 | 158,365 | py | Python | cisco-ios-xe/ydk/models/cisco_ios_xe/DIFFSERV_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/DIFFSERV_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/DIFFSERV_MIB.py | bopopescu/ACI | dd717bc74739eeed4747b3ea9e36b239580df5e1 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-22T04:04:44.000Z | 2020-07-22T04:04:44.000Z | """ DIFFSERV_MIB
This MIB defines the objects necessary to manage a device that
uses the Differentiated Services Architecture described in RFC
2475. The Conceptual Model of a Differentiated Services Router
provides supporting information on how such a router is modeled.
"""
from collections import OrderedDict
from ... | 55.256455 | 1,870 | 0.654545 | 15,826 | 158,365 | 6.42784 | 0.060976 | 0.023681 | 0.011059 | 0.011698 | 0.589952 | 0.562653 | 0.540564 | 0.532002 | 0.51478 | 0.495355 | 0 | 0.014933 | 0.265071 | 158,365 | 2,865 | 1,871 | 55.275742 | 0.859108 | 0.470944 | 0 | 0.417603 | 0 | 0 | 0.236048 | 0.149963 | 0.002809 | 0 | 0 | 0 | 0 | 1 | 0.080524 | false | 0 | 0.004682 | 0 | 0.155431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48ef053f312b29c1d2be41ed4cf94a9a47864beb | 1,478 | py | Python | research/adversarial_text/pretrain.py | SimiaCryptus/models | c652a23a650070b71e286f1ded93726670161940 | [
"Apache-2.0"
] | null | null | null | research/adversarial_text/pretrain.py | SimiaCryptus/models | c652a23a650070b71e286f1ded93726670161940 | [
"Apache-2.0"
] | null | null | null | research/adversarial_text/pretrain.py | SimiaCryptus/models | c652a23a650070b71e286f1ded93726670161940 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.130435 | 80 | 0.721922 | 209 | 1,478 | 4.92823 | 0.617225 | 0.058252 | 0.046602 | 0.031068 | 0.040777 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023923 | 0.151556 | 1,478 | 45 | 81 | 32.844444 | 0.797448 | 0.617727 | 0 | 0 | 0 | 0 | 0.014842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48ef630a437ca3462eb88d1e7195e381c545eb91 | 253 | py | Python | src/iaqualink/const.py | ozrex75/iaqualink-py | 2e2bd5922fab2b6793be6188a63b2acf6b4e9bfe | [
"BSD-3-Clause"
] | null | null | null | src/iaqualink/const.py | ozrex75/iaqualink-py | 2e2bd5922fab2b6793be6188a63b2acf6b4e9bfe | [
"BSD-3-Clause"
] | null | null | null | src/iaqualink/const.py | ozrex75/iaqualink-py | 2e2bd5922fab2b6793be6188a63b2acf6b4e9bfe | [
"BSD-3-Clause"
] | 2 | 2021-08-20T01:51:17.000Z | 2021-09-08T11:24:12.000Z | from __future__ import annotations
AQUALINK_API_KEY = "EOOEMOW4YR6QNB07"
AQUALINK_LOGIN_URL = "https://prod.zodiac-io.com/users/v1/login"
AQUALINK_DEVICES_URL = "https://r-api.iaqualink.net/devices.json"
KEEPALIVE_EXPIRY = 30
MIN_SECS_TO_REFRESH = 5
| 25.3 | 65 | 0.802372 | 37 | 253 | 5.108108 | 0.810811 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034632 | 0.086957 | 253 | 9 | 66 | 28.111111 | 0.78355 | 0 | 0 | 0 | 0 | 0 | 0.383399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48f13acee22948cef43db7d807462c4aac3a21da | 480 | py | Python | probvis/distributions/exponential.py | psanch21/prob-visualize | c0a2fdf3ad334e1178d1aada069ea93c796ac355 | [
"MIT"
] | 3 | 2020-06-24T13:31:41.000Z | 2021-04-01T08:23:37.000Z | probvis/distributions/exponential.py | psanch21/prob-visualize | c0a2fdf3ad334e1178d1aada069ea93c796ac355 | [
"MIT"
] | null | null | null | probvis/distributions/exponential.py | psanch21/prob-visualize | c0a2fdf3ad334e1178d1aada069ea93c796ac355 | [
"MIT"
] | null | null | null | import os
import matplotlib.pyplot as plt
import numpy as np
from probvis.aux import save_fig
def plot_params(params, save_dir, name, title='', close='all'):
f = plt.figure(figsize=Cte.FIGSIZE)
x = np.arange(len(params))
ax = plt.subplot(1, 1, 1)
# ax.plot(params)
ax.stem(x, params, use_line_col... | 22.857143 | 69 | 0.672917 | 79 | 480 | 3.962025 | 0.544304 | 0.044728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01023 | 0.185417 | 480 | 20 | 70 | 24 | 0.790281 | 0.03125 | 0 | 0 | 0 | 0 | 0.034557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 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 |
48f1d37f501d9000c777ced99de7b7fe7726a892 | 3,075 | py | Python | src_gpu/predicting/ims/main.py | rogov-dvp/medical-imaging-matching | ab5dd4c4f4422c170adb2a3228fcb88fb2a5ffe4 | [
"MIT"
] | 1 | 2021-12-15T06:36:25.000Z | 2021-12-15T06:36:25.000Z | src_gpu/predicting/ims/main.py | rogov-dvp/medical-imaging-matching | ab5dd4c4f4422c170adb2a3228fcb88fb2a5ffe4 | [
"MIT"
] | 179 | 2021-09-29T15:33:24.000Z | 2022-03-31T23:22:31.000Z | src_gpu/predicting/ims/main.py | rogov-dvp/medical-imaging-matching | ab5dd4c4f4422c170adb2a3228fcb88fb2a5ffe4 | [
"MIT"
] | null | null | null | # input of file paths to unprocessed mammorgrams
# by alex rogov
#
# I am assuming that user's unprocessed path to images are placed in unprocessed_path.txt.
#
# A few options here for input:
# 1. Query for preprossing files
# 2. Accept files from preprocessing component
#
# TODO: get the functions for these two
# imp... | 27.212389 | 106 | 0.679675 | 411 | 3,075 | 4.990268 | 0.367397 | 0.026329 | 0.012677 | 0.017552 | 0.021453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004645 | 0.229919 | 3,075 | 112 | 107 | 27.455357 | 0.861486 | 0.460813 | 0 | 0.130435 | 0 | 0 | 0.132446 | 0.080482 | 0 | 0 | 0 | 0.026786 | 0 | 1 | 0.065217 | false | 0 | 0.086957 | 0 | 0.217391 | 0.108696 | 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 |
48f2b0477a1af549a94c21e3b98cc82fca0298ce | 225 | py | Python | NatualLangageProcessing/solution/2_1.py | vavalm/AI-Frameworks | 5121e10d8c577b0e7b773c9c6133ce9a22788f55 | [
"MIT"
] | null | null | null | NatualLangageProcessing/solution/2_1.py | vavalm/AI-Frameworks | 5121e10d8c577b0e7b773c9c6133ce9a22788f55 | [
"MIT"
] | null | null | null | NatualLangageProcessing/solution/2_1.py | vavalm/AI-Frameworks | 5121e10d8c577b0e7b773c9c6133ce9a22788f55 | [
"MIT"
] | null | null | null | ir = 0
print("Liste des tokens racinisé de la première ligne : " + train_array[0])
rw = data_train_OHE.getrow(ir)
pd.DataFrame([(v, vocabulary[v], k) for k,v in zip(rw.data,rw.indices)], columns=["indices","token","weight"]) | 56.25 | 111 | 0.697778 | 39 | 225 | 3.948718 | 0.74359 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.115556 | 225 | 4 | 111 | 56.25 | 0.763819 | 0 | 0 | 0 | 0 | 0 | 0.29646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b0095a9552c888725d30ef60b7a738ea8c0c125 | 2,152 | py | Python | kolibri/core/content/management/commands/scanforcontent.py | rrobinson-SIUMEDICINE/kolibri | 4a33ac3ca4435dc524a9aba86eae1d3334930d1a | [
"MIT"
] | null | null | null | kolibri/core/content/management/commands/scanforcontent.py | rrobinson-SIUMEDICINE/kolibri | 4a33ac3ca4435dc524a9aba86eae1d3334930d1a | [
"MIT"
] | null | null | null | kolibri/core/content/management/commands/scanforcontent.py | rrobinson-SIUMEDICINE/kolibri | 4a33ac3ca4435dc524a9aba86eae1d3334930d1a | [
"MIT"
] | null | null | null | import logging
from django.core.management.base import BaseCommand
from sqlalchemy.exc import DatabaseError
from ...utils.annotation import annotate_content
from ...utils.channel_import import FutureSchemaError
from ...utils.channel_import import import_channel_from_local_db
from ...utils.channel_import import Invali... | 40.603774 | 106 | 0.653346 | 239 | 2,152 | 5.615063 | 0.364017 | 0.07377 | 0.053651 | 0.04918 | 0.311475 | 0.140089 | 0.140089 | 0.089419 | 0.089419 | 0.089419 | 0 | 0 | 0.289963 | 2,152 | 52 | 107 | 41.384615 | 0.878272 | 0.078067 | 0 | 0.15 | 0 | 0 | 0.119388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.325 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5b0985dbd1b7c6abf3c8df603fbab125f36b21b5 | 9,341 | py | Python | elfstatsd/storage/storage.py | dzzh/elfstatsd | 097ee1873f172cbcb398febbdfd6d72865c42226 | [
"MIT",
"Unlicense"
] | 2 | 2016-09-11T22:48:01.000Z | 2019-03-08T03:48:02.000Z | elfstatsd/storage/storage.py | dzzh/elfstatsd | 097ee1873f172cbcb398febbdfd6d72865c42226 | [
"MIT",
"Unlicense"
] | null | null | null | elfstatsd/storage/storage.py | dzzh/elfstatsd | 097ee1873f172cbcb398febbdfd6d72865c42226 | [
"MIT",
"Unlicense"
] | null | null | null | from abc import ABCMeta, abstractmethod
from collections import defaultdict
from counter_backport import Counter
from elfstatsd import utils, settings
class Storage():
"""Abstract class used as a parent for statistics storages"""
__metaclass__ = ABCMeta
def __init__(self, name):
self.name = name... | 43.85446 | 116 | 0.686222 | 1,199 | 9,341 | 5.17598 | 0.149291 | 0.106349 | 0.052208 | 0.060909 | 0.535611 | 0.472768 | 0.38914 | 0.357557 | 0.3466 | 0.3466 | 0 | 0.001256 | 0.232844 | 9,341 | 212 | 117 | 44.061321 | 0.864778 | 0.418799 | 0 | 0.344086 | 0 | 0 | 0.039327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247312 | false | 0 | 0.043011 | 0 | 0.376344 | 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 |
5b0a13575450be03829e8840521a51532c128709 | 4,454 | py | Python | wavepal/percentile_3_moments.py | metegenez/WAVEPAL | fa2bb91e2c7e63681ae4592929215c96bc523597 | [
"MIT"
] | 22 | 2017-03-09T20:46:31.000Z | 2022-02-16T08:18:30.000Z | wavepal/percentile_3_moments.py | metegenez/WAVEPAL | fa2bb91e2c7e63681ae4592929215c96bc523597 | [
"MIT"
] | 6 | 2017-03-19T20:22:33.000Z | 2021-01-05T11:41:31.000Z | wavepal/percentile_3_moments.py | metegenez/WAVEPAL | fa2bb91e2c7e63681ae4592929215c96bc523597 | [
"MIT"
] | 9 | 2017-11-06T18:00:31.000Z | 2021-07-21T19:20:09.000Z | import numpy as np
from scipy.optimize import least_squares
from scipy.special import gamma
from scipy.stats import gengamma
from percentile_3_moments_first_guess import percentile_3_moments_first_guess
from tqdm import trange
import sys
def percentile_3_moments(trA,trAsq,trAcub,proba,MaxFunEvals):
""" percentile_3... | 57.844156 | 583 | 0.725415 | 769 | 4,454 | 4.16645 | 0.306892 | 0.024969 | 0.029963 | 0.044944 | 0.212859 | 0.118914 | 0.095818 | 0.068664 | 0.068664 | 0.068664 | 0 | 0.028943 | 0.154468 | 4,454 | 76 | 584 | 58.605263 | 0.821827 | 0.087786 | 0 | 0 | 0 | 0 | 0.078225 | 0.013427 | 0 | 0 | 0 | 0 | 0.041667 | 0 | null | null | 0 | 0.145833 | null | null | 0.041667 | 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 |
5b0b37898aa6c140aa9d30f881a2777d55eea0df | 414 | py | Python | web/core/migrations/0075_lotvalidationerror_details.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-03-22T18:13:12.000Z | 2021-01-25T10:33:31.000Z | web/core/migrations/0075_lotvalidationerror_details.py | MTES-MCT/carbure | 2876756b760ab4866fa783bb40e61a046eebb1ab | [
"MIT"
] | 20 | 2020-07-06T14:33:14.000Z | 2022-03-15T16:54:17.000Z | web/core/migrations/0075_lotvalidationerror_details.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-04-03T12:19:12.000Z | 2021-06-15T12:20:57.000Z | # Generated by Django 3.0.7 on 2020-09-18 11:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0074_auto_20200916_1413'),
]
operations = [
migrations.AddField(
model_name='lotvalidationerror',
name='deta... | 21.789474 | 70 | 0.60628 | 44 | 414 | 5.613636 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10299 | 0.272947 | 414 | 18 | 71 | 23 | 0.717608 | 0.108696 | 0 | 0 | 1 | 0 | 0.141689 | 0.06267 | 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 |
5b13d4a146e86e140087a01d307be9153db5cfbc | 4,417 | py | Python | src/oci/service_mesh/models/access_policy_rule.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/service_mesh/models/access_policy_rule.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/service_mesh/models/access_policy_rule.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 32.240876 | 245 | 0.648177 | 502 | 4,417 | 5.549801 | 0.262948 | 0.034458 | 0.118449 | 0.043073 | 0.454774 | 0.308327 | 0.249103 | 0.249103 | 0.249103 | 0.249103 | 0 | 0.005614 | 0.274168 | 4,417 | 136 | 246 | 32.477941 | 0.863381 | 0.536337 | 0 | 0.0625 | 0 | 0 | 0.082876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.041667 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b13d6d9d31fdd8a481380ea5bd4be5e0639e7ca | 8,071 | py | Python | modules/scales.py | IISH/dpi | 6509b06aa03242f450766d4cb5d8984f14146b11 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | modules/scales.py | IISH/dpi | 6509b06aa03242f450766d4cb5d8984f14146b11 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | modules/scales.py | IISH/dpi | 6509b06aa03242f450766d4cb5d8984f14146b11 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | #!/usr/bin/python
import math
import pandas as pd
import random
from random import randint
import numpy as np
import brewer2mpl
from config import webmapper_geocoder
import math
import re
def value2scale(value, logscale, original):
convertedvalue = 0
if logscale:
origvalue = value
rvalue = "%.... | 29.137184 | 378 | 0.516541 | 797 | 8,071 | 5.218319 | 0.284818 | 0.006732 | 0.010099 | 0.013224 | 0.063958 | 0.050974 | 0.010099 | 0 | 0 | 0 | 0 | 0.048995 | 0.365258 | 8,071 | 276 | 379 | 29.242754 | 0.762834 | 0.06257 | 0 | 0.265487 | 0 | 0 | 0.073465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039823 | 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 |
5b19723ec852f1c12e03ed5cb7221309c7672e8b | 534 | py | Python | ex064.py | cristianoandrad/ExerciciosPythonCursoEmVideo | 362603436b71c8ef8386d7a9ab3c5fed0b8d63f7 | [
"MIT"
] | null | null | null | ex064.py | cristianoandrad/ExerciciosPythonCursoEmVideo | 362603436b71c8ef8386d7a9ab3c5fed0b8d63f7 | [
"MIT"
] | null | null | null | ex064.py | cristianoandrad/ExerciciosPythonCursoEmVideo | 362603436b71c8ef8386d7a9ab3c5fed0b8d63f7 | [
"MIT"
] | null | null | null | # Crie um programa que leia vários números inteiros pelo teclado. O programa só vai parar quando o usuário digitar o valor 999, que é a condição de parada. No final, mostre quantos números foram digitados e qual foi a soma entre eles (desconsiderando o flag).
n = c = soma = 0
n = int(input('Digite os numeros para obte... | 53.4 | 259 | 0.698502 | 92 | 534 | 4.054348 | 0.619565 | 0.040214 | 0.048257 | 0.080429 | 0.262735 | 0.262735 | 0.262735 | 0.262735 | 0.262735 | 0.262735 | 0 | 0.033097 | 0.207865 | 534 | 9 | 260 | 59.333333 | 0.8487 | 0.481273 | 0 | 0.285714 | 0 | 0 | 0.534545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b1ebf4a4432c3030b1f93b37b41147ab2b522af | 295 | py | Python | src/model/model.py | dawsonbooth/predictive-text | 85262f7f2602a8ea81e2d09f94624d6b84ed6613 | [
"MIT"
] | null | null | null | src/model/model.py | dawsonbooth/predictive-text | 85262f7f2602a8ea81e2d09f94624d6b84ed6613 | [
"MIT"
] | null | null | null | src/model/model.py | dawsonbooth/predictive-text | 85262f7f2602a8ea81e2d09f94624d6b84ed6613 | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Dict
class Model(ABC):
@abstractmethod
def fit(self, text: str) -> None:
...
@abstractmethod
def predict(self, text: str) -> Dict[str, float]:
...
__all__ = ["Model"]
| 16.388889 | 53 | 0.637288 | 34 | 295 | 5.294118 | 0.558824 | 0.188889 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247458 | 295 | 17 | 54 | 17.352941 | 0.810811 | 0 | 0 | 0.363636 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 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 |
5b20751b1ebd0084371453df4b9e87cdc94f210f | 8,669 | py | Python | polymorphic/polymorphic_model.py | fusionbox/django_polymorphic | ef1feab7094ec061ef75fecec78dd18438542b57 | [
"BSD-3-Clause"
] | null | null | null | polymorphic/polymorphic_model.py | fusionbox/django_polymorphic | ef1feab7094ec061ef75fecec78dd18438542b57 | [
"BSD-3-Clause"
] | null | null | null | polymorphic/polymorphic_model.py | fusionbox/django_polymorphic | ef1feab7094ec061ef75fecec78dd18438542b57 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Seamless Polymorphic Inheritance for Django Models
==================================================
Please see README.rst and DOCS.rst for further information.
Or on the Web:
http://chrisglass.github.com/django_polymorphic/
http://github.com/chrisglass/django_polymorphic
Copyright:
This... | 42.915842 | 119 | 0.688545 | 1,074 | 8,669 | 5.324953 | 0.284916 | 0.017311 | 0.013114 | 0.016786 | 0.207379 | 0.156671 | 0.107711 | 0.079035 | 0.079035 | 0.079035 | 0 | 0.000752 | 0.233245 | 8,669 | 201 | 120 | 43.129353 | 0.859636 | 0.437882 | 0 | 0.082353 | 0 | 0 | 0.013535 | 0.008798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.094118 | 0.011765 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5b224a2a22a0dffa5b88a99655c196a0a2f314c5 | 12,097 | py | Python | examples/debugging2/osgreflect.py | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | examples/debugging2/osgreflect.py | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | examples/debugging2/osgreflect.py | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | #!/usr/bin/env python
#
# This source file is part of the osgBoostPython library
#
# Copyright (C) 2009-2010 Jean-Sebastien Guay
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free Software
# Foundation; either... | 35.789941 | 124 | 0.720509 | 1,582 | 12,097 | 5.482933 | 0.288875 | 0.005995 | 0.005534 | 0.019599 | 0.285105 | 0.246945 | 0.216624 | 0.197026 | 0.155868 | 0.149988 | 0 | 0.022503 | 0.169794 | 12,097 | 337 | 125 | 35.896142 | 0.841183 | 0.358932 | 0 | 0.159091 | 0 | 0 | 0.022034 | 0 | 0 | 0 | 0 | 0.002967 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.011364 | 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 |
d2875046797b5f741a2dc3b0bbd67cfacdc085e4 | 7,501 | py | Python | examples/migrations/0001_initial.py | sayanjap/DynamicForms | 071707de36d109fe3a17ae5df239240ea5ba707f | [
"BSD-3-Clause"
] | 42 | 2018-01-18T14:50:05.000Z | 2022-03-24T18:34:19.000Z | examples/migrations/0001_initial.py | sayanjap/DynamicForms | 071707de36d109fe3a17ae5df239240ea5ba707f | [
"BSD-3-Clause"
] | 14 | 2018-12-05T21:39:23.000Z | 2022-02-27T06:43:48.000Z | examples/migrations/0001_initial.py | sayanjap/DynamicForms | 071707de36d109fe3a17ae5df239240ea5ba707f | [
"BSD-3-Clause"
] | 5 | 2018-01-18T16:32:20.000Z | 2021-06-07T10:15:18.000Z | # Generated by Django 2.1.1 on 2019-03-13 12:41
import django.core.validators
import django.db.models.deletion
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMode... | 58.147287 | 240 | 0.602053 | 791 | 7,501 | 5.560051 | 0.238938 | 0.077535 | 0.045475 | 0.041837 | 0.451114 | 0.367895 | 0.337426 | 0.307185 | 0.289905 | 0.24693 | 0 | 0.012907 | 0.245967 | 7,501 | 128 | 241 | 58.601563 | 0.764675 | 0.005999 | 0 | 0.446281 | 1 | 0 | 0.195063 | 0.010196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033058 | 0 | 0.066116 | 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 |
d2876377ff30ce373c6e4d9bb7c2a7141a8c51ef | 889 | py | Python | restful.py | mclaudio76/LearnPython | 0778d9f03e9de2491d5c885cd9ee70789d691649 | [
"MIT"
] | null | null | null | restful.py | mclaudio76/LearnPython | 0778d9f03e9de2491d5c885cd9ee70789d691649 | [
"MIT"
] | null | null | null | restful.py | mclaudio76/LearnPython | 0778d9f03e9de2491d5c885cd9ee70789d691649 | [
"MIT"
] | null | null | null | from flask import Flask, Request, request, json
app = Flask(__name__)
class Person:
def __init__(self):
self.firstName = ""
self.lastName = ""
self.age = 0
def load(self, json):
jsonAttr = list(json.keys())
for attr in vars(self):
if attr in jsonAttr... | 23.394737 | 100 | 0.583802 | 105 | 889 | 4.714286 | 0.47619 | 0.052525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009288 | 0.273341 | 889 | 38 | 101 | 23.394737 | 0.756966 | 0 | 0 | 0 | 0 | 0 | 0.075281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0.034483 | 0.413793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d28d24b54b6b8d9d9609c793df3c2611c43e65f2 | 295 | py | Python | setup.py | t-hanya/xreco | b004d6892a49018d8684d02fda88640e07ca0b26 | [
"MIT"
] | 2 | 2018-03-24T18:29:22.000Z | 2018-12-30T06:56:32.000Z | setup.py | t-hanya/xreco | b004d6892a49018d8684d02fda88640e07ca0b26 | [
"MIT"
] | null | null | null | setup.py | t-hanya/xreco | b004d6892a49018d8684d02fda88640e07ca0b26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='xreco',
version='0.1.0',
description='Utility to record experiment information',
author='Toshinori Hanya',
url='https://github.com/t-hanya/xreco',
license='MIT',
packages=['xreco'],
)
| 22.692308 | 61 | 0.627119 | 36 | 295 | 5.138889 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.213559 | 295 | 12 | 62 | 24.583333 | 0.784483 | 0.067797 | 0 | 0 | 0 | 0 | 0.383212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
d2925b43624dc6cf756bfa5e0f8aa32dbea8778b | 2,444 | py | Python | converter/codecs/subtitle.py | UbiCastTeam/python-video-converter | a8b5d5e8cf4c2b537a91ddb3e01b565e1f52571f | [
"CNRI-Python"
] | 10 | 2015-07-03T18:48:51.000Z | 2021-07-20T13:44:12.000Z | converter/codecs/subtitle.py | UbiCastTeam/python-video-converter | a8b5d5e8cf4c2b537a91ddb3e01b565e1f52571f | [
"CNRI-Python"
] | null | null | null | converter/codecs/subtitle.py | UbiCastTeam/python-video-converter | a8b5d5e8cf4c2b537a91ddb3e01b565e1f52571f | [
"CNRI-Python"
] | 3 | 2016-11-23T18:11:37.000Z | 2018-07-09T14:55:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from . import BaseCodec
class SubtitleCodec(BaseCodec):
"""
Base subtitle codec class handles general subtitle options. Possible
parameters are:
* codec (string) - subtitle codec name (mov_text, subrib, ssa only supported currently)
* language (s... | 20.711864 | 93 | 0.598609 | 270 | 2,444 | 5.27037 | 0.325926 | 0.088545 | 0.063247 | 0.033732 | 0.082923 | 0.039353 | 0 | 0 | 0 | 0 | 0 | 0.006271 | 0.282324 | 2,444 | 117 | 94 | 20.888889 | 0.805017 | 0.259411 | 0 | 0.0625 | 0 | 0 | 0.115986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.020833 | 0.041667 | 0.604167 | 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 |
d29c38a7a587a2886b0dae63bcbaeb1b3026d94e | 921 | py | Python | repo/admin.py | reven-tang/ITMP | 8d6686edb19fcc26c9cf1f7e14037f9d38a6e702 | [
"BSD-2-Clause"
] | null | null | null | repo/admin.py | reven-tang/ITMP | 8d6686edb19fcc26c9cf1f7e14037f9d38a6e702 | [
"BSD-2-Clause"
] | 11 | 2020-06-05T19:40:52.000Z | 2022-03-11T23:38:17.000Z | repo/admin.py | reven-tang/ITMP | 8d6686edb19fcc26c9cf1f7e14037f9d38a6e702 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from .models import Post, Category, Tag
from mdeditor.widgets import MDEditorWidget
from django.db import models
# Register your models here.
# 在Admin界面注册展示
class PostAdmin(admin.ModelAdmin):
list_display = ['title', 'category', 'created_time', 'modified_time', 'author']
# cl... | 27.909091 | 83 | 0.676439 | 111 | 921 | 5.558559 | 0.477477 | 0.072934 | 0.092383 | 0.126418 | 0.213938 | 0.116694 | 0.116694 | 0 | 0 | 0 | 0 | 0.016064 | 0.188925 | 921 | 33 | 84 | 27.909091 | 0.809906 | 0.282302 | 0 | 0 | 0 | 0 | 0.096626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.6875 | 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 |
d29c4b60dc5a260f1882a5b465b2fc9b479ad97f | 5,948 | py | Python | app/app/settings.py | spbso/so_rest | 2ede1ee849fa3e4ba9fc76a64a522b9aaa34e27f | [
"MIT"
] | null | null | null | app/app/settings.py | spbso/so_rest | 2ede1ee849fa3e4ba9fc76a64a522b9aaa34e27f | [
"MIT"
] | 1 | 2022-03-11T14:25:08.000Z | 2022-03-11T14:25:08.000Z | app/app/settings.py | spbso/so_rest | 2ede1ee849fa3e4ba9fc76a64a522b9aaa34e27f | [
"MIT"
] | null | null | null | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
from typing import List
BASE_DIR = os.p... | 27.537037 | 93 | 0.664593 | 651 | 5,948 | 5.917051 | 0.402458 | 0.053998 | 0.030893 | 0.038941 | 0.186137 | 0.169003 | 0.128505 | 0.120976 | 0.087747 | 0.056594 | 0 | 0.021005 | 0.183591 | 5,948 | 215 | 94 | 27.665116 | 0.771623 | 0.247983 | 0 | 0.097902 | 1 | 0 | 0.545126 | 0.360785 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.006993 | 0.013986 | 0 | 0.013986 | 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 |
d29d1dea121d7fdb19fdfe080a86766df44d0459 | 1,248 | py | Python | basicbot.py | FRC4564/BasicPiBot | de0b045acdc3b8bd5927cd4b0b2a103fe887b1b1 | [
"MIT"
] | 7 | 2018-07-15T21:01:12.000Z | 2022-03-13T20:49:33.000Z | basicbot.py | FRC4564/BasicPiBot | de0b045acdc3b8bd5927cd4b0b2a103fe887b1b1 | [
"MIT"
] | null | null | null | basicbot.py | FRC4564/BasicPiBot | de0b045acdc3b8bd5927cd4b0b2a103fe887b1b1 | [
"MIT"
] | 1 | 2020-01-29T22:04:29.000Z | 2020-01-29T22:04:29.000Z | # Here's a basic robot loop to drive a robot using the left analog stick of
# an Xbox controller. The robot left and right drive motors are assumed
# to be connected to channels 0 and 1 of a Maestro controller.
import maestro
import xbox
import drive
import time
m = maestro.Controller()
dt = drive.DriveTrain(m, 0, 1... | 36.705882 | 90 | 0.672276 | 189 | 1,248 | 4.439153 | 0.486772 | 0.064362 | 0.042908 | 0.030989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012075 | 0.270032 | 1,248 | 34 | 91 | 36.705882 | 0.908891 | 0.585737 | 0 | 0.095238 | 0 | 0 | 0.063366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.095238 | 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 |
d29f5ac16e9114a8ed7827a85d67425e0047185a | 1,958 | py | Python | PC/connect_arduino.py | jphacks/E_2002 | 46d66f0c1cc479b70111754e2b49ad601e7be108 | [
"MIT"
] | null | null | null | PC/connect_arduino.py | jphacks/E_2002 | 46d66f0c1cc479b70111754e2b49ad601e7be108 | [
"MIT"
] | null | null | null | PC/connect_arduino.py | jphacks/E_2002 | 46d66f0c1cc479b70111754e2b49ad601e7be108 | [
"MIT"
] | 1 | 2020-11-05T17:56:25.000Z | 2020-11-05T17:56:25.000Z | import serial
import time
import requests
# ポートの指定
def initialize(port, bps):
port = serial.Serial(port, bps)
#print('圧力センサとの接続を開始しました')
time.sleep(1)
return port
# arduinoへのデータ送信
def send_command(port, byte):
write = port.write(byte)
data = wait_response(port)
#pass
... | 24.475 | 75 | 0.61287 | 251 | 1,958 | 4.689243 | 0.354582 | 0.061172 | 0.081563 | 0.096856 | 0.270178 | 0.270178 | 0.270178 | 0.181818 | 0.127443 | 0.127443 | 0 | 0.052076 | 0.22523 | 1,958 | 79 | 76 | 24.78481 | 0.723797 | 0.200715 | 0 | 0.108696 | 0 | 0 | 0.175427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.021739 | 0.065217 | 0 | 0.413043 | 0.108696 | 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 |
d2a5d3809ea3419c63d84889e5251db8835a2eda | 8,416 | py | Python | chroma-manager/tests/framework/test_reporting/aggregate_test_results.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/framework/test_reporting/aggregate_test_results.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | chroma-manager/tests/framework/test_reporting/aggregate_test_results.py | GarimaVishvakarma/intel-chroma | fdf68ed00b13643c62eb7480754d3216d9295e0b | [
"MIT"
] | null | null | null | #
# Simple script to accept the jenkins json api output of $BUILD_URL/api/json?tree=runs[fingerprint[usage[name,ranges[ranges[end]]]]]
# and return the name and build number for each job triggered downstream of the original build in BUILD_URL.
#
# Usage: ./aggregate_test_results.py jenkins_url build_job_name build_job_... | 40.854369 | 154 | 0.673954 | 1,248 | 8,416 | 4.391827 | 0.233173 | 0.024266 | 0.011859 | 0.013136 | 0.07973 | 0.029192 | 0.023353 | 0.013501 | 0.013501 | 0 | 0 | 0.002039 | 0.242514 | 8,416 | 205 | 155 | 41.053659 | 0.857725 | 0.211145 | 0 | 0.087719 | 0 | 0.008772 | 0.137458 | 0.025195 | 0 | 0 | 0 | 0 | 0.008772 | 0 | null | null | 0.035088 | 0.078947 | null | null | 0.061404 | 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 |
d2bc5684c783a02e68f41cfb8955e2527a820bc3 | 767 | py | Python | setup.py | dipeshc/photo-organizer | 3a9fb6b9fec5e8686d3583df5cc74ef79c6119e5 | [
"MIT"
] | null | null | null | setup.py | dipeshc/photo-organizer | 3a9fb6b9fec5e8686d3583df5cc74ef79c6119e5 | [
"MIT"
] | 2 | 2021-09-08T05:16:58.000Z | 2022-03-12T00:43:33.000Z | setup.py | dipeshc/photo-organizer | 3a9fb6b9fec5e8686d3583df5cc74ef79c6119e5 | [
"MIT"
] | 1 | 2020-10-19T12:58:23.000Z | 2020-10-19T12:58:23.000Z | import setuptools
setuptools.setup(
name="photo-organizer",
description="A quick and dirty script/application designed to allow my wife to quickly pre-process 10s of gigabytes of photos she found on some old hard drives. These drives had different organization patterns and many drives contained duplicates.",
... | 29.5 | 253 | 0.585398 | 100 | 767 | 4.45 | 0.71 | 0.008989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071301 | 0.268579 | 767 | 25 | 254 | 30.68 | 0.721925 | 0 | 0 | 0 | 0 | 0.041667 | 0.535854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2bc7b118b995c18730918911711d384c00c8f0d | 3,085 | py | Python | observable/magnetization_x.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | 4 | 2021-07-29T17:52:54.000Z | 2022-02-15T06:32:15.000Z | observable/magnetization_x.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | observable/magnetization_x.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | import numpy as np
from observable import Observable
class MagnetizationX(Observable):
"""
this class used to define the magnetization observable along the x-axis defined as:
$<sigma_x> = \sum_{x,x'} \psi^*(x') <x'|\sigma_x|x>\psi(x) $
$ = \sum_{x} p(x) \sum_{x'} \psi(x)/\psi(x') <x'|\sigma_... | 33.532609 | 88 | 0.533874 | 389 | 3,085 | 4.115681 | 0.313625 | 0.022486 | 0.049969 | 0.007495 | 0.27233 | 0.23985 | 0.20862 | 0.19238 | 0.19238 | 0.19238 | 0 | 0.013768 | 0.364344 | 3,085 | 91 | 89 | 33.901099 | 0.802652 | 0.384117 | 0 | 0.242424 | 0 | 0 | 0.003715 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.151515 | false | 0 | 0.060606 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2bebf7068ca291e82396aa795655d79172b109b | 2,482 | py | Python | etsySalesTracker.py | smottera/UAV | cdfe88310ed4187aaa2c51ed9a72ba9e5c529b02 | [
"Apache-2.0"
] | null | null | null | etsySalesTracker.py | smottera/UAV | cdfe88310ed4187aaa2c51ed9a72ba9e5c529b02 | [
"Apache-2.0"
] | null | null | null | etsySalesTracker.py | smottera/UAV | cdfe88310ed4187aaa2c51ed9a72ba9e5c529b02 | [
"Apache-2.0"
] | null | null | null | """
PROGRAM TO GET SCARP VIEW COUNT OF ss AND sl
"""
import re
import time
import datetime
import requests
from bs4 import BeautifulSoup
import pandas as pd
scrapeList = [
"https://www.etsy.com/shop/SSweddings",
"https://www.etsy.com/shop/SelineLounge",
"https://www.etsy.com/shop/LeRoseGifts",
"https://www.etsy.com/sh... | 29.547619 | 111 | 0.679694 | 349 | 2,482 | 4.833811 | 0.326648 | 0.090101 | 0.135151 | 0.168939 | 0.390041 | 0.102549 | 0.03853 | 0.03853 | 0.03853 | 0.03853 | 0 | 0.015837 | 0.109589 | 2,482 | 83 | 112 | 29.903614 | 0.747511 | 0.029815 | 0 | 0 | 0 | 0 | 0.449729 | 0.050897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.101695 | 0 | 0.118644 | 0.050847 | 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 |
d2bf9234310e4b137362689183e0b24a548a6e21 | 5,762 | py | Python | tools/push-to-trunk/auto_tag.py | andrewlow/v8 | dccd6d388b9aad54a75f4c6e8336f4d29528e0cd | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 1 | 2017-09-01T09:49:21.000Z | 2017-09-01T09:49:21.000Z | tools/push-to-trunk/auto_tag.py | andrewlow/v8 | dccd6d388b9aad54a75f4c6e8336f4d29528e0cd | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | tools/push-to-trunk/auto_tag.py | andrewlow/v8 | dccd6d388b9aad54a75f4c6e8336f4d29528e0cd | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import sys
from common_includes import *
CONFIG = {
BRANCHNAME: "auto-tag-v8",
PERSISTFILE_BASENAME: "/tmp/v8-a... | 28.666667 | 79 | 0.650469 | 744 | 5,762 | 4.928763 | 0.34543 | 0.049632 | 0.026725 | 0.036815 | 0.067903 | 0.057813 | 0 | 0 | 0 | 0 | 0 | 0.005226 | 0.236203 | 5,762 | 200 | 80 | 28.81 | 0.827994 | 0.147171 | 0 | 0.167939 | 0 | 0 | 0.20254 | 0.005204 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022901 | null | null | 0.061069 | 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 |
d2ce5ea0f1aaf561beed42d019d0332a2c215f9d | 3,808 | py | Python | live_recorder/__main__.py | h-nakashima/LiveRecorder | 6cbb463978d2ca7d4f3577b92cb734a4389ea923 | [
"MIT"
] | null | null | null | live_recorder/__main__.py | h-nakashima/LiveRecorder | 6cbb463978d2ca7d4f3577b92cb734a4389ea923 | [
"MIT"
] | 7 | 2020-12-07T16:39:52.000Z | 2020-12-07T17:00:55.000Z | live_recorder/__main__.py | h-nakashima/LiveRecorder | 6cbb463978d2ca7d4f3577b92cb734a4389ea923 | [
"MIT"
] | null | null | null | import argparse
import time
import random
import logging
from live_recorder import you_live
from live_recorder import version
args = None
def arg_parser():
parser = argparse.ArgumentParser(prog='you-live', description="version %s : %s"%(version.__version__, version.__descriptrion__))
parser.add_arg... | 40.084211 | 133 | 0.59979 | 419 | 3,808 | 5.27685 | 0.343675 | 0.048847 | 0.092266 | 0.043419 | 0.151967 | 0.132972 | 0.132972 | 0.077341 | 0.077341 | 0.077341 | 0 | 0.002496 | 0.263655 | 3,808 | 95 | 134 | 40.084211 | 0.78602 | 0.08771 | 0 | 0.056338 | 0 | 0 | 0.1739 | 0.016647 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.028169 | false | 0 | 0.084507 | 0 | 0.112676 | 0.112676 | 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 |
d2d1adc55b031bf21cf91ee6b85a64b97155a28f | 1,795 | py | Python | codes/experiment_kernels.py | drogaar/ba_MultimodalCNN | e4545e0298251d7cc1788c8019bbd607960175cd | [
"MIT"
] | null | null | null | codes/experiment_kernels.py | drogaar/ba_MultimodalCNN | e4545e0298251d7cc1788c8019bbd607960175cd | [
"MIT"
] | null | null | null | codes/experiment_kernels.py | drogaar/ba_MultimodalCNN | e4545e0298251d7cc1788c8019bbd607960175cd | [
"MIT"
] | null | null | null | import keras
import keras.backend as K
from sclera250 import Sclera
from sklearn.cross_validation import StratifiedKFold
from nn_lib import CNNLIB
nn_lib = CNNLIB()
#load data
new_shape = (80,120)
sclera250 = Sclera()
(data_x, data_y) = sclera250.load_train_cross(re_shape = new_shape)
print "Defining labels"
(label2i... | 35.9 | 160 | 0.711421 | 259 | 1,795 | 4.65251 | 0.420849 | 0.037344 | 0.019917 | 0.018257 | 0.036515 | 0.036515 | 0.036515 | 0.036515 | 0 | 0 | 0 | 0.029216 | 0.161003 | 1,795 | 49 | 161 | 36.632653 | 0.770916 | 0.029526 | 0 | 0 | 0 | 0 | 0.10842 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.117647 | 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 |
d2d358c4b190b54d530f3ace32e5610e9982facb | 1,590 | py | Python | integration_tests/flip_coin_example.py | pagliaccl/couler | 9e177e97b5338f034f8b99e90e65a511af37a721 | [
"Apache-2.0"
] | null | null | null | integration_tests/flip_coin_example.py | pagliaccl/couler | 9e177e97b5338f034f8b99e90e65a511af37a721 | [
"Apache-2.0"
] | null | null | null | integration_tests/flip_coin_example.py | pagliaccl/couler | 9e177e97b5338f034f8b99e90e65a511af37a721 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The Couler 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 applicable law or... | 30.576923 | 75 | 0.703145 | 229 | 1,590 | 4.790393 | 0.532751 | 0.054695 | 0.041021 | 0.02917 | 0.151322 | 0.102097 | 0.102097 | 0.102097 | 0.102097 | 0.102097 | 0 | 0.020658 | 0.177987 | 1,590 | 51 | 76 | 31.176471 | 0.818669 | 0.360377 | 0 | 0.08 | 0 | 0 | 0.177291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.12 | 0.12 | 0.4 | 0.08 | 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 |
d2d59f861ed2505f9f470ba1ba32caeb44fff22f | 420 | py | Python | deploy_flow1.py | cwerner/saqc-playground | b89e08ecc62b2d721a3b710dea4705119e4b9ef9 | [
"MIT"
] | null | null | null | deploy_flow1.py | cwerner/saqc-playground | b89e08ecc62b2d721a3b710dea4705119e4b9ef9 | [
"MIT"
] | null | null | null | deploy_flow1.py | cwerner/saqc-playground | b89e08ecc62b2d721a3b710dea4705119e4b9ef9 | [
"MIT"
] | null | null | null | from prefect.deployments import DeploymentSpec
from prefect.orion.schemas.schedules import CronSchedule
DeploymentSpec(
name="flow1-deployment",
flow_location="./flows/flow1_lvl0-check.py",
tags=['demoflows','test'],
parameters={
'src_path': '/netapp/rawdata/fendt/micromet/raw/slow_response',
... | 28 | 71 | 0.654762 | 44 | 420 | 6.159091 | 0.863636 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029326 | 0.188095 | 420 | 14 | 72 | 30 | 0.765396 | 0 | 0 | 0 | 0 | 0 | 0.309524 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 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 |
d2d70d7c19c99f47fac548a195f28463e5e683a7 | 678 | py | Python | setup.py | appointlet/span | 6d4f2920e45df827890ebe55b1c41b1f3414c0c9 | [
"MIT"
] | 1 | 2018-01-11T13:43:35.000Z | 2018-01-11T13:43:35.000Z | setup.py | appointlet/span | 6d4f2920e45df827890ebe55b1c41b1f3414c0c9 | [
"MIT"
] | null | null | null | setup.py | appointlet/span | 6d4f2920e45df827890ebe55b1c41b1f3414c0c9 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="span",
version="0.0.1",
description="Helper for determining basic relationships between datetime ranges",
long_description="Helper for determining basic relationships between datetime ranges",
keywords="span, datetime",
author="Jared Morse <jared@appoin... | 30.818182 | 90 | 0.685841 | 73 | 678 | 6.287671 | 0.684932 | 0.074074 | 0.087146 | 0.135076 | 0.305011 | 0.305011 | 0.305011 | 0.305011 | 0.305011 | 0 | 0 | 0.005455 | 0.188791 | 678 | 21 | 91 | 32.285714 | 0.829091 | 0 | 0 | 0 | 0 | 0 | 0.501475 | 0.032448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
d2db1df1d6a735ad19075701aa9809e3d62e2f93 | 1,899 | py | Python | src/words.py | dcbriccetti/letter-boxed-game-solver | 02103085bea448a38e00fb1753c7280ba9ab85f6 | [
"Unlicense"
] | null | null | null | src/words.py | dcbriccetti/letter-boxed-game-solver | 02103085bea448a38e00fb1753c7280ba9ab85f6 | [
"Unlicense"
] | null | null | null | src/words.py | dcbriccetti/letter-boxed-game-solver | 02103085bea448a38e00fb1753c7280ba9ab85f6 | [
"Unlicense"
] | null | null | null | import pathlib
from typing import Dict
from app_types import WordSeq
from word import Word
class Words:
words: list[Word]
def __init__(self, letter_groups: str) -> None:
def find_paths(letters: str) -> Dict[str, str]:
'Build dictionary of valid letter-to-letter transitions'
d... | 41.282609 | 103 | 0.632965 | 252 | 1,899 | 4.547619 | 0.313492 | 0.09075 | 0.069808 | 0.049738 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002163 | 0.269616 | 1,899 | 45 | 104 | 42.2 | 0.824081 | 0.028436 | 0 | 0.055556 | 0 | 0 | 0.084255 | 0.012638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.527778 | 0.027778 | 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 |
d2dce5d5eb0a04c490a44c2e0d04fdfe18218ab8 | 368 | py | Python | setup.py | toolskit/k8skit | c7fd07af1d54e7f0c1b8113402b19e7b48297d0f | [
"MIT"
] | 14 | 2021-10-16T03:38:14.000Z | 2021-11-25T11:49:07.000Z | setup.py | toolskit/k8skit | c7fd07af1d54e7f0c1b8113402b19e7b48297d0f | [
"MIT"
] | null | null | null | setup.py | toolskit/k8skit | c7fd07af1d54e7f0c1b8113402b19e7b48297d0f | [
"MIT"
] | null | null | null | import sys
import os
from setuptools import setup, find_packages, Extension
setup (
name = 'k8skit',
version = '1.0',
author = 'moonhak',
author_email = 'moonhak@**.com',
maintainer = 'moonhak',
maintainer_email = 'moonhak@**.com',
description = "k8skit",
packages = ['k8... | 21.647059 | 54 | 0.581522 | 36 | 368 | 5.833333 | 0.611111 | 0.114286 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.266304 | 368 | 16 | 55 | 23 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0.188011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.214286 | 0 | 0.214286 | 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 |
d2de4e79c1ee4c26318b4a579a8d5af262de222c | 533 | py | Python | app/__init__.py | FinaceInfo/Chinese-box-office-info | 44d123785496dd9801894a85159e3b5864bc32ca | [
"MIT"
] | null | null | null | app/__init__.py | FinaceInfo/Chinese-box-office-info | 44d123785496dd9801894a85159e3b5864bc32ca | [
"MIT"
] | null | null | null | app/__init__.py | FinaceInfo/Chinese-box-office-info | 44d123785496dd9801894a85159e3b5864bc32ca | [
"MIT"
] | null | null | null | from flask import Flask
from flask_socketio import SocketIO
from .boxoffice import *
app = Flask(__name__)
if not app.debug:
import os
base_dir = os.path.split(os.path.realpath(__file__))[0]
import logging
from logging.handlers import RotatingFileHandler
file_handler = RotatingFileHandler(base_dir... | 29.611111 | 103 | 0.769231 | 70 | 533 | 5.642857 | 0.514286 | 0.083544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025918 | 0.131332 | 533 | 17 | 104 | 31.352941 | 0.827214 | 0 | 0 | 0 | 0 | 0 | 0.046904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
d2e0ee224b8db3c580777f00b30e08009f441e71 | 2,709 | py | Python | bidhive/bidhive_tendersearch/tender/serializers.py | bidhive/kingfisher-collect | 100d91e9f388ab9eab62217ff2b1a86a8e81c3f7 | [
"BSD-3-Clause"
] | null | null | null | bidhive/bidhive_tendersearch/tender/serializers.py | bidhive/kingfisher-collect | 100d91e9f388ab9eab62217ff2b1a86a8e81c3f7 | [
"BSD-3-Clause"
] | null | null | null | bidhive/bidhive_tendersearch/tender/serializers.py | bidhive/kingfisher-collect | 100d91e9f388ab9eab62217ff2b1a86a8e81c3f7 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import serializers
from .models import Tender, TenderRelease
class DisableCreateUpdateSerializer(serializers.ModelSerializer):
def create(self):
raise ValueError(
f"Cannot create serialised instances of {self.__class__.__name__}"
)
def update(self):
ra... | 26.821782 | 78 | 0.574382 | 190 | 2,709 | 8.021053 | 0.373684 | 0.23622 | 0.049213 | 0.057087 | 0.308399 | 0.251969 | 0.207349 | 0.207349 | 0.144357 | 0.144357 | 0 | 0 | 0.328904 | 2,709 | 100 | 79 | 27.09 | 0.838284 | 0 | 0 | 0.360465 | 0 | 0 | 0.181248 | 0.045035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034884 | false | 0 | 0.023256 | 0.011628 | 0.372093 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2e39725bf000b4a4a6570fb3801625527b27db4 | 1,401 | py | Python | twenty47/__init__.py | gary-dalton/Twenty47 | 437c8be30c33d4171b47552c6a8121f0a9ddc4ec | [
"MIT"
] | null | null | null | twenty47/__init__.py | gary-dalton/Twenty47 | 437c8be30c33d4171b47552c6a8121f0a9ddc4ec | [
"MIT"
] | 3 | 2017-01-05T14:27:38.000Z | 2017-01-05T14:30:24.000Z | twenty47/__init__.py | gary-dalton/Twenty47 | 437c8be30c33d4171b47552c6a8121f0a9ddc4ec | [
"MIT"
] | null | null | null | from flask import Flask, flash
from flask.ext.mongoengine import MongoEngine
from flask_wtf.csrf import CsrfProtect
from flask_mail import Mail
import blinker
app = Flask(__name__)
#app.config.from_object(__name__)
# Load the config
app.config.from_pyfile('local.config.py')
#app.config.from_envvar('config', silent=Tr... | 24.155172 | 70 | 0.759458 | 176 | 1,401 | 5.795455 | 0.318182 | 0.053922 | 0.082353 | 0.064706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01505 | 0.146324 | 1,401 | 57 | 71 | 24.578947 | 0.837793 | 0.094218 | 0 | 0.108108 | 0 | 0 | 0.075182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.054054 | 0.27027 | 0 | 0.378378 | 0.162162 | 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 |
d2e42af14042cc31f0f4be3f87688235298e48b6 | 212 | py | Python | is_6oz_led_lit.py | CAES-Python/Coffee_maker_analog | d0f0d3cf3b82a29e59975b5b839f9d8543a059ad | [
"MIT"
] | null | null | null | is_6oz_led_lit.py | CAES-Python/Coffee_maker_analog | d0f0d3cf3b82a29e59975b5b839f9d8543a059ad | [
"MIT"
] | null | null | null | is_6oz_led_lit.py | CAES-Python/Coffee_maker_analog | d0f0d3cf3b82a29e59975b5b839f9d8543a059ad | [
"MIT"
] | null | null | null | #!/usr/bin/python
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(2, GPIO.IN, pull_up_down=GPIO.PUD_UP)
if(GPIO.input(2) ==1):
print('NO')
else:
print('YES')
GPIO.cleanup()
| 15.142857 | 48 | 0.707547 | 38 | 212 | 3.868421 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.099057 | 212 | 13 | 49 | 16.307692 | 0.753927 | 0.075472 | 0 | 0 | 0 | 0 | 0.025773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 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 |
d2e722b1bf002d5dcf051a9840d7218f1527b5c0 | 283 | py | Python | test/test_distance.py | krishna-patel98/knnFeat | 257cd43c28ed4c933ef28b41492d263e19cc27db | [
"MIT"
] | 65 | 2018-06-23T07:36:49.000Z | 2022-03-13T17:30:19.000Z | test/test_distance.py | krishna-patel98/knnFeat | 257cd43c28ed4c933ef28b41492d263e19cc27db | [
"MIT"
] | 3 | 2018-06-24T14:55:08.000Z | 2022-03-04T12:28:32.000Z | test/test_distance.py | krishna-patel98/knnFeat | 257cd43c28ed4c933ef28b41492d263e19cc27db | [
"MIT"
] | 11 | 2018-06-23T07:37:04.000Z | 2021-04-22T16:28:23.000Z | import numpy as np
import sys
import os
import pytest
from knnFeat import _distance
sys.path.append(os.getcwd())
@pytest.mark.success
def test_distance():
a = np.array([0, 0])
b = np.array([3, 4])
expected = _distance(a, b)
actual = 5
assert expected == actual
| 17.6875 | 30 | 0.671378 | 44 | 283 | 4.25 | 0.613636 | 0.096257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.208481 | 283 | 15 | 31 | 18.866667 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 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 |
d2ec55f521a1d7319fb731f1cd4b90de141d45a0 | 1,674 | py | Python | chatbot/chatbot.py | edupro2000/Microdust_Kakao_Chatbot | 35dffd3c87558a7128f8bb8c98b82369b1d5f626 | [
"MIT"
] | 1 | 2018-08-19T15:54:46.000Z | 2018-08-19T15:54:46.000Z | chatbot/chatbot.py | edupro2000/Microdust_Kakao_Chatbot | 35dffd3c87558a7128f8bb8c98b82369b1d5f626 | [
"MIT"
] | null | null | null | chatbot/chatbot.py | edupro2000/Microdust_Kakao_Chatbot | 35dffd3c87558a7128f8bb8c98b82369b1d5f626 | [
"MIT"
] | 1 | 2021-07-17T16:56:48.000Z | 2021-07-17T16:56:48.000Z | # -*- coding: utf-8 -*-
import os
from flask import Flask, request, jsonify
from Total_Functions import *
from save_error_message import save_messages
app = Flask(__name__)
@app.route('/keyboard')
def Keyboard():
dataSend = {
"type" : "buttons",
"buttons" : ["미세먼지를 알려줘"]
}
return js... | 22.32 | 67 | 0.453405 | 152 | 1,674 | 4.809211 | 0.513158 | 0.082079 | 0.103967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.42951 | 1,674 | 74 | 68 | 22.621622 | 0.753927 | 0.012545 | 0 | 0.263158 | 0 | 0 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070175 | 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 |
d2f4fd01bcef2bff595a852030a7217d16ddac87 | 261 | py | Python | BuildingBlocks/Engine/HumanPlayer.py | alkashef/pic_pac_poe | a23a923f7d8e294eecb9ce75e474aa787c97d836 | [
"MIT"
] | null | null | null | BuildingBlocks/Engine/HumanPlayer.py | alkashef/pic_pac_poe | a23a923f7d8e294eecb9ce75e474aa787c97d836 | [
"MIT"
] | null | null | null | BuildingBlocks/Engine/HumanPlayer.py | alkashef/pic_pac_poe | a23a923f7d8e294eecb9ce75e474aa787c97d836 | [
"MIT"
] | null | null | null | import random
from Player import Player
class HumanPlayer(Player):
@staticmethod
def play(board):
empty_slots_tuple = board.empty_slots()
print(empty_slots_tuple)
chosen_location = eval(input())
return chosen_location
| 20.076923 | 47 | 0.689655 | 30 | 261 | 5.766667 | 0.633333 | 0.17341 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 261 | 12 | 48 | 21.75 | 0.873737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d2f5af265cd65e67f2cb6f9fbb262f86fa6a681c | 6,950 | py | Python | set_paths_and_vars.py | rjhd2/HadISD_v3 | 420ebb3c965b61ad394f15b0f71a37b73985a97d | [
"BSD-3-Clause"
] | 3 | 2020-05-27T10:54:15.000Z | 2021-01-13T08:40:27.000Z | set_paths_and_vars.py | rjhd2/HadISD_v3 | 420ebb3c965b61ad394f15b0f71a37b73985a97d | [
"BSD-3-Clause"
] | null | null | null | set_paths_and_vars.py | rjhd2/HadISD_v3 | 420ebb3c965b61ad394f15b0f71a37b73985a97d | [
"BSD-3-Clause"
] | 1 | 2021-01-13T08:40:34.000Z | 2021-01-13T08:40:34.000Z | #!/usr/local/sci/bin/python2.7
#------------------------------------------------------------
# SVN Info
#$Rev:: 84 $: Revision of last commit
#$Author:: rdunn $: Author of last commit
#$Date:: 2015-12-18 16:35:07 +0000 ... | 39.714286 | 139 | 0.62 | 901 | 6,950 | 4.600444 | 0.27525 | 0.028951 | 0.050181 | 0.034499 | 0.263691 | 0.206996 | 0.156574 | 0.156574 | 0.132207 | 0.091194 | 0 | 0.008127 | 0.132518 | 6,950 | 174 | 140 | 39.942529 | 0.679383 | 0.351511 | 0 | 0 | 0 | 0 | 0.170457 | 0.029926 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097222 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2f9a18fa3d8a76dc764711dbbb981596d72f344 | 2,244 | py | Python | other_challenges/codility_challenge.py | rcbop/hacker-rank-challenges | c9f0a604891e67215c59d205a3b80d0350abb2f6 | [
"MIT"
] | null | null | null | other_challenges/codility_challenge.py | rcbop/hacker-rank-challenges | c9f0a604891e67215c59d205a3b80d0350abb2f6 | [
"MIT"
] | null | null | null | other_challenges/codility_challenge.py | rcbop/hacker-rank-challenges | c9f0a604891e67215c59d205a3b80d0350abb2f6 | [
"MIT"
] | null | null | null | #
# Task description
# This is a demo task. You can read about this task and its solutions in this blog post.
#
# A zero-indexed array A consisting of N integers is given. An equilibrium index of this array is any integer P such that 0 ≤ P < N and the sum of elements of lower indices is equal to the sum of elements of ... | 33 | 228 | 0.619875 | 433 | 2,244 | 3.210162 | 0.293303 | 0.011511 | 0.064748 | 0.038849 | 0.248201 | 0.205036 | 0.148201 | 0.13813 | 0.13813 | 0.073381 | 0 | 0.05503 | 0.246881 | 2,244 | 67 | 229 | 33.492537 | 0.761538 | 0.826649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d2fb63d87a152cf037f684eb9ff84dda594b14e9 | 1,998 | py | Python | sound-device-selection.py | mohannadhussain/misc-scripts | c1bed6530bc4f78cf1a7af34ddc602f2bdbe1ab1 | [
"MIT"
] | null | null | null | sound-device-selection.py | mohannadhussain/misc-scripts | c1bed6530bc4f78cf1a7af34ddc602f2bdbe1ab1 | [
"MIT"
] | null | null | null | sound-device-selection.py | mohannadhussain/misc-scripts | c1bed6530bc4f78cf1a7af34ddc602f2bdbe1ab1 | [
"MIT"
] | null | null | null | """
Ubuntu 20.04 might not always do a good job of picking audio devices as they are plugged in/out (bluetooth headset,
external speakers/mic conected through a docking station, etc). So this script can automate the selection based on the
rules configuration up above (list of preferred output/input devices in order).
... | 33.864407 | 118 | 0.662162 | 264 | 1,998 | 4.931818 | 0.55303 | 0.036866 | 0.019969 | 0.024578 | 0.072197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006609 | 0.242743 | 1,998 | 58 | 119 | 34.448276 | 0.853933 | 0.32983 | 0 | 0.052632 | 0 | 0 | 0.281085 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.105263 | 0.052632 | 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 |
960000b8ed289e98c39fa7048dead14b096cb366 | 3,152 | py | Python | shake/skeletons/project/bundles/users/models.py | lucuma/Shake | b54082c9d217059ef02317aa043c3690d2e601d7 | [
"MIT"
] | 4 | 2015-02-15T17:35:12.000Z | 2016-07-21T06:35:12.000Z | shake/skeletons/project/bundles/users/models.py | lucuma/Shake | b54082c9d217059ef02317aa043c3690d2e601d7 | [
"MIT"
] | null | null | null | shake/skeletons/project/bundles/users/models.py | lucuma/Shake | b54082c9d217059ef02317aa043c3690d2e601d7 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Users models
-------------------------------
"""
from datetime import datetime
import shake
from shake import to_unicode
from main import app, db
from bundles.common.models import AuditableMixin
ACTIVE_USER = 'A'
SUSPENDED_USER = 'S'
class Role(db.Model):
__tablename__ = 'roles'
... | 25.216 | 78 | 0.607234 | 421 | 3,152 | 4.368171 | 0.247031 | 0.047852 | 0.04894 | 0.027732 | 0.25068 | 0.225666 | 0.113105 | 0.113105 | 0.036977 | 0.036977 | 0 | 0.00796 | 0.242703 | 3,152 | 124 | 79 | 25.419355 | 0.761207 | 0.003807 | 0 | 0.205128 | 0 | 0 | 0.062932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.089744 | null | null | 0.012821 | 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 |
96075fa4413fc118aa5a1aa1b42e6d49cf5e1f90 | 5,169 | py | Python | francis/time_integrated_scripts/steady_alert_unblind.py | apizzuto/v2_alert_stacking_FRA | 6b5bd3f6cd1b5e472797a81a389a30198c64cd9f | [
"MIT"
] | null | null | null | francis/time_integrated_scripts/steady_alert_unblind.py | apizzuto/v2_alert_stacking_FRA | 6b5bd3f6cd1b5e472797a81a389a30198c64cd9f | [
"MIT"
] | 4 | 2021-01-08T20:14:23.000Z | 2021-03-25T21:05:15.000Z | francis/time_integrated_scripts/steady_alert_unblind.py | apizzuto/v2_alert_stacking_FRA | 6b5bd3f6cd1b5e472797a81a389a30198c64cd9f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Script to generate ntrials number of background only test statistics and save
information about each trial to outfile
@options:
--i index: alert event index
--ntrials: number of trials to perform
'''
import time, pickle, argparse, os
import numpy as np
import pandas as pd
from fr... | 35.895833 | 110 | 0.605533 | 650 | 5,169 | 4.630769 | 0.304615 | 0.0299 | 0.043189 | 0.039867 | 0.239867 | 0.195349 | 0.151495 | 0.151495 | 0.141528 | 0.058472 | 0 | 0.009088 | 0.276262 | 5,169 | 143 | 111 | 36.146853 | 0.795509 | 0.150513 | 0 | 0.17757 | 1 | 0 | 0.185048 | 0.029765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009346 | false | 0 | 0.046729 | 0 | 0.056075 | 0.056075 | 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 |
960cc3f57044fc459f2c68c8117b291576e57271 | 1,372 | py | Python | setup.py | ramielrowe/idmapshift | 572cd543048519a916a668b3d2ca0369a615c00b | [
"Apache-2.0"
] | 2 | 2015-12-08T17:16:05.000Z | 2015-12-08T17:24:01.000Z | setup.py | ramielrowe/idmapshift | 572cd543048519a916a668b3d2ca0369a615c00b | [
"Apache-2.0"
] | null | null | null | setup.py | ramielrowe/idmapshift | 572cd543048519a916a668b3d2ca0369a615c00b | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Rackspace, Andrew Melton
#
# 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... | 30.488889 | 74 | 0.670554 | 164 | 1,372 | 5.585366 | 0.664634 | 0.065502 | 0.028384 | 0.034935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.227405 | 1,372 | 44 | 75 | 31.181818 | 0.85283 | 0.408892 | 0 | 0.074074 | 0 | 0 | 0.496863 | 0.033877 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 |
960da545625ef1ffaeaf1ec246bab1407a2b0cc7 | 556 | py | Python | app/models/dbmodel.py | hashtrip/api | 1a968f47dbd5c9d24fb45f3a6360505009f6c4d8 | [
"MIT"
] | 1 | 2021-01-30T08:38:15.000Z | 2021-01-30T08:38:15.000Z | app/models/dbmodel.py | hashtrip/backend | 1a968f47dbd5c9d24fb45f3a6360505009f6c4d8 | [
"MIT"
] | null | null | null | app/models/dbmodel.py | hashtrip/backend | 1a968f47dbd5c9d24fb45f3a6360505009f6c4d8 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Optional
from pydantic import BaseModel, Field
from bson import ObjectId
from .util import ObjID
class DateTimeModelMixin(BaseModel):
created_at: Optional[datetime] = Field(None, alias="createdAt")
updated_at: Optional[datetime] = Field(None, alias="updatedAt"... | 25.272727 | 67 | 0.714029 | 65 | 556 | 5.984615 | 0.523077 | 0.069409 | 0.107969 | 0.118252 | 0.164524 | 0.164524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19964 | 556 | 21 | 68 | 26.47619 | 0.874157 | 0 | 0 | 0 | 0 | 0 | 0.03777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
960ff9799af921386cb03980e766ebcd1c305f49 | 293 | py | Python | 2_data.py | devnag/tf_intro | af7c1a4721b86e296d3b18c43eab5d1e5647fd75 | [
"Apache-2.0"
] | 1 | 2018-08-12T06:01:26.000Z | 2018-08-12T06:01:26.000Z | 2_data.py | devnag/tf_intro | af7c1a4721b86e296d3b18c43eab5d1e5647fd75 | [
"Apache-2.0"
] | null | null | null | 2_data.py | devnag/tf_intro | af7c1a4721b86e296d3b18c43eab5d1e5647fd75 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import tensorflow as tf
import numpy as np
x = [[1.0,2.0], [3.0,4.0]]
y = np.array(x)
z = tf.constant(y)
print(type(x), type(y), type(z))
print(x, y, z)
print()
sess = tf.Session()
y_ = sess.run(z)
x_ = y_.tolist()
print(type(x_), type(y_), type(z))
print(x_, y_, z)
| 15.421053 | 34 | 0.607509 | 62 | 293 | 2.758065 | 0.419355 | 0.105263 | 0.116959 | 0.163743 | 0.327485 | 0.327485 | 0.327485 | 0.327485 | 0.327485 | 0.327485 | 0 | 0.032389 | 0.156997 | 293 | 18 | 35 | 16.277778 | 0.659919 | 0.068259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.384615 | 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 |
9610b4a4082a23f50ba580a69ce2abfdfe74776a | 494 | py | Python | picture/migrations/0003_auto_20201219_1216.py | tharcissie/Garelly | fc5d333c953ad4a7478a0e114c14b8a9b60f8fe4 | [
"Unlicense"
] | null | null | null | picture/migrations/0003_auto_20201219_1216.py | tharcissie/Garelly | fc5d333c953ad4a7478a0e114c14b8a9b60f8fe4 | [
"Unlicense"
] | null | null | null | picture/migrations/0003_auto_20201219_1216.py | tharcissie/Garelly | fc5d333c953ad4a7478a0e114c14b8a9b60f8fe4 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-19 12:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('picture', '0002_image_link'),
]
operations = [
migrations.RemoveField(
model_name='image',
name='link',
),
... | 21.478261 | 70 | 0.560729 | 50 | 494 | 5.44 | 0.7 | 0.099265 | 0.102941 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056213 | 0.315789 | 494 | 22 | 71 | 22.454545 | 0.748521 | 0.091093 | 0 | 0.25 | 1 | 0 | 0.111857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 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 |
9614573f71537e50626d5dad38fe12e42c286be9 | 779 | py | Python | Desafios/Mundo 2/ex041.py | lucasllimati/CursoEmVideo | 01d75626baf8b82f141d62f681e55a9bda0099fd | [
"MIT"
] | null | null | null | Desafios/Mundo 2/ex041.py | lucasllimati/CursoEmVideo | 01d75626baf8b82f141d62f681e55a9bda0099fd | [
"MIT"
] | null | null | null | Desafios/Mundo 2/ex041.py | lucasllimati/CursoEmVideo | 01d75626baf8b82f141d62f681e55a9bda0099fd | [
"MIT"
] | null | null | null | # EXERCÍCIO 41
# A Confederação Nacional de Natação precisa de um programa que leia o ano de nascimento de um atleta e mostre sua categoria, de acordo com a idade:
# Até 9 anos: MIRIM
# Até 14 anos: INFANTIL
# Até 19 anos: JÚNIOR
# Até 25 anos: SÊNIOR
# Acima de 25 anos: MASTER
from datetime import date
anonasc = int... | 28.851852 | 148 | 0.698331 | 119 | 779 | 4.571429 | 0.504202 | 0.165441 | 0.183824 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074303 | 0.170732 | 779 | 26 | 149 | 29.961538 | 0.767802 | 0.338896 | 0 | 0 | 0 | 0 | 0.434783 | 0.041502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.4 | 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 |
96166c2e0cc92e21a7485e0d1ad7cb58e07b5f82 | 1,807 | py | Python | asr_tools/sentence_util.py | belambert/asr-tools | f65ba15890542db8a6c0b2024e500e895cee33d5 | [
"Apache-2.0"
] | 5 | 2016-08-03T14:45:53.000Z | 2018-07-03T15:55:25.000Z | asr_tools/sentence_util.py | afcarl/asr-tools | 06e352a43e4dadcbeff14e350d3f8b297d74c7b2 | [
"Apache-2.0"
] | 1 | 2021-03-30T04:13:43.000Z | 2021-03-30T04:13:43.000Z | asr_tools/sentence_util.py | afcarl/asr-tools | 06e352a43e4dadcbeff14e350d3f8b297d74c7b2 | [
"Apache-2.0"
] | 3 | 2017-05-05T00:27:11.000Z | 2020-08-18T06:10:52.000Z | # Copyright 2012-2018 Ben Lambert
# 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... | 37.645833 | 100 | 0.674599 | 254 | 1,807 | 4.748032 | 0.492126 | 0.063847 | 0.056385 | 0.082919 | 0.162521 | 0.127695 | 0.074627 | 0.074627 | 0.074627 | 0 | 0 | 0.015972 | 0.203099 | 1,807 | 47 | 101 | 38.446809 | 0.821528 | 0.42446 | 0 | 0 | 0 | 0 | 0.027532 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 0.041667 | 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 |
9618c1a6a581fbf1c617702aa0aa6043bb98c065 | 7,648 | py | Python | Lib/site-packages/win32/Demos/cerapi.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/win32/Demos/cerapi.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/win32/Demos/cerapi.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | # A demo of the Windows CE Remote API
#
# This connects to a CE device, and interacts with it.
import wincerapi
import win32event
import win32api
import win32con
import os
import sys
import getopt
from repr import repr
def DumpPythonRegistry():
try:
h = wincerapi.CeRegOpenKeyEx(win32con.H... | 35.906103 | 183 | 0.604995 | 828 | 7,648 | 5.548309 | 0.332126 | 0.013931 | 0.028951 | 0.015237 | 0.078145 | 0.060949 | 0.038311 | 0.017414 | 0.017414 | 0 | 0 | 0.020226 | 0.295371 | 7,648 | 212 | 184 | 36.075472 | 0.832251 | 0.08329 | 0 | 0.183432 | 0 | 0 | 0.206871 | 0.006488 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005917 | 0.047337 | null | null | 0.230769 | 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 |
961e0cc87b1bf577e322f7550a6b57ed73645f39 | 303 | py | Python | submit/base_submission.py | ABCDa102030/GoBigger-Challenge-2021 | e2765ea316274a12e30fd747cb2260796e272e37 | [
"Apache-2.0"
] | 121 | 2021-11-01T01:24:31.000Z | 2022-03-31T10:53:47.000Z | submit/base_submission.py | ABCDa102030/GoBigger-Challenge-2021 | e2765ea316274a12e30fd747cb2260796e272e37 | [
"Apache-2.0"
] | 2 | 2021-11-06T14:13:00.000Z | 2022-01-25T09:19:41.000Z | submit/base_submission.py | ABCDa102030/GoBigger-Challenge-2021 | e2765ea316274a12e30fd747cb2260796e272e37 | [
"Apache-2.0"
] | 39 | 2021-11-01T12:48:19.000Z | 2022-03-01T11:23:38.000Z | class BaseSubmission:
def __init__(self, team_name, player_names):
self.team_name = team_name
self.player_names = player_names
def get_actions(self, obs):
'''
Overview:
You must implement this function.
'''
raise NotImplementedError
| 23.307692 | 48 | 0.613861 | 32 | 303 | 5.46875 | 0.625 | 0.137143 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313531 | 303 | 12 | 49 | 25.25 | 0.841346 | 0.155116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9624ee9b92682f6efa1159929511bc1558bd5250 | 12,258 | py | Python | aggrep/models.py | dkrichards86/aggrep-api | b5238406c43711e462b278b0a31c879fb63d9da8 | [
"MIT"
] | null | null | null | aggrep/models.py | dkrichards86/aggrep-api | b5238406c43711e462b278b0a31c879fb63d9da8 | [
"MIT"
] | 2 | 2021-03-31T19:25:23.000Z | 2021-12-13T20:27:54.000Z | aggrep/models.py | dkrichards86/aggrep-api | b5238406c43711e462b278b0a31c879fb63d9da8 | [
"MIT"
] | null | null | null | """Database models."""
import short_url
from flask import current_app, url_for
from flask_sqlalchemy import BaseQuery
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy_searchable import SearchQueryMixin, make_searchable
from sqlalchemy_utils.types import TSVectorType
from werkzeug.security import check_... | 29.680387 | 97 | 0.647822 | 1,480 | 12,258 | 5.197973 | 0.161486 | 0.048876 | 0.054595 | 0.041986 | 0.399974 | 0.387885 | 0.355128 | 0.291954 | 0.279995 | 0.238399 | 0 | 0.005196 | 0.214962 | 12,258 | 412 | 98 | 29.752427 | 0.794243 | 0.107032 | 0 | 0.247059 | 0 | 0 | 0.091572 | 0.014016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105882 | false | 0.043137 | 0.035294 | 0 | 0.627451 | 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 |
96258e0b7aad0c0352592b38cbcc33db186fa873 | 3,789 | py | Python | drivers/anritsu.py | imrehg/labhardware | 44e9cb120b20627cecbdd3ce01e07e3a282b7eb1 | [
"MIT"
] | 2 | 2016-07-13T09:56:38.000Z | 2019-04-02T12:09:38.000Z | drivers/anritsu.py | imrehg/labhardware | 44e9cb120b20627cecbdd3ce01e07e3a282b7eb1 | [
"MIT"
] | null | null | null | drivers/anritsu.py | imrehg/labhardware | 44e9cb120b20627cecbdd3ce01e07e3a282b7eb1 | [
"MIT"
] | null | null | null | """
Drivers for Anritsu products
"""
import visa
from re import match
from numpy import array, append, linspace, zeros, sqrt
import struct
class MS2601:
""" Spectrum analyzer, old instrument.
Please plug in GPIB before turning the instrument on
"""
units = {"UNT 0": "dBm",
"UNT 1": "dBuV... | 29.146154 | 105 | 0.536289 | 474 | 3,789 | 4.227848 | 0.375527 | 0.06986 | 0.04491 | 0.01497 | 0.112774 | 0.048902 | 0.027944 | 0.027944 | 0 | 0 | 0 | 0.027342 | 0.343626 | 3,789 | 129 | 106 | 29.372093 | 0.778448 | 0.04038 | 0 | 0.115385 | 0 | 0 | 0.092829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.038462 | 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 |
824b49393a6234f537c59cc4c9a150266e8c2538 | 3,192 | py | Python | nicos/devices/datasinks/tiff.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos/devices/datasinks/tiff.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos/devices/datasinks/tiff.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
# *****************************************************************************
# NICOS, the Networked Instrument Control System of the MLZ
# Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS)
#
# This program is free software; you can redistribute it and/or modify it under
# the te... | 33.957447 | 79 | 0.625627 | 376 | 3,192 | 5.279255 | 0.526596 | 0.012594 | 0.019647 | 0.028715 | 0.129975 | 0.116877 | 0.088665 | 0.088665 | 0.088665 | 0.088665 | 0 | 0.012033 | 0.244987 | 3,192 | 93 | 80 | 34.322581 | 0.811618 | 0.391604 | 0 | 0.085106 | 0 | 0 | 0.190326 | 0.012093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.191489 | 0.021277 | 0.531915 | 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 |
82530a654800185127c58cad99775262ea769c47 | 5,054 | py | Python | scripts/summarize_dmp_files.py | Dennis-xyHuang/PhyloPlus | 8a7320d9a9cdc6fc58f0893bbf8737a1fc180afb | [
"MIT"
] | null | null | null | scripts/summarize_dmp_files.py | Dennis-xyHuang/PhyloPlus | 8a7320d9a9cdc6fc58f0893bbf8737a1fc180afb | [
"MIT"
] | null | null | null | scripts/summarize_dmp_files.py | Dennis-xyHuang/PhyloPlus | 8a7320d9a9cdc6fc58f0893bbf8737a1fc180afb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pandas as pd
import sys
import os
import gc
def build_lineage(taxid_list, mapping):
"""Given a list of taxIDs, generate a NCBI LineageEx-like list."""
temp_list = []
for taxid in taxid_list:
temp_dict = {}
if taxid == "":
pass
else:
... | 53.2 | 115 | 0.728334 | 734 | 5,054 | 4.697548 | 0.186649 | 0.078886 | 0.026102 | 0.036543 | 0.290603 | 0.241299 | 0.197796 | 0.197796 | 0.142111 | 0.058585 | 0 | 0.007165 | 0.116343 | 5,054 | 94 | 116 | 53.765957 | 0.76489 | 0.016027 | 0 | 0.096386 | 1 | 0 | 0.198712 | 0.015301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0.012048 | 0.048193 | 0 | 0.072289 | 0.096386 | 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 |
825363f6a790d4651023878fa5a18485e5cae60b | 401 | py | Python | greeter.py | harshitbudhraja/Python-for-fun | 3cafc4a9611eebcf0bceb09b16c97afa6e7d2512 | [
"MIT"
] | null | null | null | greeter.py | harshitbudhraja/Python-for-fun | 3cafc4a9611eebcf0bceb09b16c97afa6e7d2512 | [
"MIT"
] | null | null | null | greeter.py | harshitbudhraja/Python-for-fun | 3cafc4a9611eebcf0bceb09b16c97afa6e7d2512 | [
"MIT"
] | null | null | null | # Author: Harshit Budhraja
# Greets you according to the time of the day.
import time
name = "YOUR_NAME"
now = time.strftime("%H")
now = int(now)
if now > 0 and now < 12:
greet = "Good Morning, " + name
elif now > 12 and now < 16:
greet = "Good Afternoon, " + name
elif now > 16 and now < 20:
greet = "Good Evening, ... | 22.277778 | 46 | 0.645885 | 66 | 401 | 3.909091 | 0.5 | 0.093023 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048701 | 0.23192 | 401 | 17 | 47 | 23.588235 | 0.788961 | 0.17207 | 0 | 0 | 0 | 0 | 0.203647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
825af9b055c4082758ae4d87f764f64182fbd293 | 2,594 | py | Python | nep/urls.py | neuromat/portal | 78c1f8c9e20c46d283b693d54d009bd19bda90de | [
"CC-BY-4.0"
] | 3 | 2017-12-14T12:09:28.000Z | 2021-07-02T02:26:55.000Z | nep/urls.py | neuromat/portal | 78c1f8c9e20c46d283b693d54d009bd19bda90de | [
"CC-BY-4.0"
] | null | null | null | nep/urls.py | neuromat/portal | 78c1f8c9e20c46d283b693d54d009bd19bda90de | [
"CC-BY-4.0"
] | 1 | 2018-06-13T19:55:33.000Z | 2018-06-13T19:55:33.000Z | from django.conf import settings
from django.conf.urls import url, include
from django.contrib import admin
from django.views.static import serve
from django.views.i18n import javascript_catalog
from rest_framework.documentation import include_docs_urls
from experiments import views
from experiments import api_urls
f... | 36.535211 | 95 | 0.66384 | 332 | 2,594 | 5.036145 | 0.271084 | 0.050239 | 0.035885 | 0.043062 | 0.106459 | 0.043062 | 0.043062 | 0.043062 | 0.043062 | 0 | 0 | 0.014155 | 0.155744 | 2,594 | 70 | 96 | 37.057143 | 0.749315 | 0.06515 | 0 | 0.089286 | 0 | 0.017857 | 0.338156 | 0.198843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.178571 | 0 | 0.178571 | 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 |
825affa4d4607e26b17cddd97fbef4d2bbd7bee4 | 442 | py | Python | pyEX/timeseries/__init__.py | brandonhawi/pyEX | 5a4d694b9a85c191cd285e2b66215d26ef372674 | [
"Apache-2.0"
] | 335 | 2017-11-06T00:45:41.000Z | 2022-03-14T10:17:36.000Z | pyEX/timeseries/__init__.py | brandonhawi/pyEX | 5a4d694b9a85c191cd285e2b66215d26ef372674 | [
"Apache-2.0"
] | 193 | 2018-02-11T21:39:35.000Z | 2022-02-25T15:46:38.000Z | pyEX/timeseries/__init__.py | brandonhawi/pyEX | 5a4d694b9a85c191cd285e2b66215d26ef372674 | [
"Apache-2.0"
] | 92 | 2017-11-10T08:09:35.000Z | 2022-02-16T19:27:46.000Z | # *****************************************************************************
#
# Copyright (c) 2021, the pyEX authors.
#
# This file is part of the pyEX library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .timeseries import (
timeSeries,
... | 26 | 79 | 0.595023 | 43 | 442 | 6.116279 | 0.744186 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.176471 | 442 | 16 | 80 | 27.625 | 0.706044 | 0.590498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
825d798405f43a84a44b1ac52c82d427f59d682b | 463 | py | Python | setup.py | goyeahia/GraphMySerial | 4dc0cd89b2a80531c8fe24c10f203c3e7e423bd0 | [
"MIT"
] | 2 | 2019-07-14T08:22:59.000Z | 2019-07-14T16:03:59.000Z | setup.py | goyeahia/GraphMySerial | 4dc0cd89b2a80531c8fe24c10f203c3e7e423bd0 | [
"MIT"
] | null | null | null | setup.py | goyeahia/GraphMySerial | 4dc0cd89b2a80531c8fe24c10f203c3e7e423bd0 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='ardugraph',
version='0.1',
install_requires=['pyserial','matplotlib'],
description = "A Python module that provides a serial communication with \
Arduino microcontroller boards in order to plot, write, visualize of data ",
author='Tristan Hearn',
... | 35.615385 | 82 | 0.678186 | 53 | 463 | 5.886792 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.198704 | 463 | 13 | 83 | 35.615385 | 0.83558 | 0 | 0 | 0 | 0 | 0 | 0.237069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
8267117fd84ac052cf1d402e90129c36cbe3d8a2 | 1,493 | py | Python | Proyecto1/Proyecto1/urls.py | kilordgosth/Proyecto_vanguard | 04dd0797ac7e33943d42ade4ff6f7e91e8847695 | [
"MIT"
] | null | null | null | Proyecto1/Proyecto1/urls.py | kilordgosth/Proyecto_vanguard | 04dd0797ac7e33943d42ade4ff6f7e91e8847695 | [
"MIT"
] | null | null | null | Proyecto1/Proyecto1/urls.py | kilordgosth/Proyecto_vanguard | 04dd0797ac7e33943d42ade4ff6f7e91e8847695 | [
"MIT"
] | null | null | null | """Proyecto1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | 39.289474 | 99 | 0.728734 | 205 | 1,493 | 5.273171 | 0.468293 | 0.040703 | 0.013876 | 0.022202 | 0.108233 | 0.108233 | 0.06938 | 0 | 0 | 0 | 0 | 0.011085 | 0.154052 | 1,493 | 37 | 100 | 40.351351 | 0.844814 | 0.565975 | 0 | 0 | 0 | 0 | 0.22135 | 0.058085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
826c58d04b0109006d99d16205952d5f65f34eea | 626 | py | Python | bookit_django/scheduling/migrations/0009_auto_20160128_1211.py | mutaku/bookit | a2714ceaf587c8f094201a22dc3e4948d58f736e | [
"BSD-2-Clause"
] | null | null | null | bookit_django/scheduling/migrations/0009_auto_20160128_1211.py | mutaku/bookit | a2714ceaf587c8f094201a22dc3e4948d58f736e | [
"BSD-2-Clause"
] | 18 | 2016-05-25T00:50:29.000Z | 2016-06-20T13:59:10.000Z | bookit_django/scheduling/migrations/0009_auto_20160128_1211.py | mutaku/bookit | a2714ceaf587c8f094201a22dc3e4948d58f736e | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9b1 on 2016-01-28 17:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scheduling', '0008_auto_20160126_1343'),
]
operations = [
migrations.AlterMo... | 25.04 | 84 | 0.616613 | 61 | 626 | 6.131148 | 0.754098 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069717 | 0.266773 | 626 | 24 | 85 | 26.083333 | 0.745098 | 0.107029 | 0 | 0.117647 | 1 | 0 | 0.181655 | 0.041367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
826e32d5238ac13180cff901c0912d58f00682ca | 46,024 | py | Python | opds_import.py | datalogics-cgreen/server_core | 4459314cd2cdb92b7cabeed8fd1125d8c5cb7941 | [
"Apache-2.0"
] | null | null | null | opds_import.py | datalogics-cgreen/server_core | 4459314cd2cdb92b7cabeed8fd1125d8c5cb7941 | [
"Apache-2.0"
] | 1 | 2017-05-12T22:14:16.000Z | 2017-05-12T22:14:16.000Z | opds_import.py | datalogics-cgreen/server_core | 4459314cd2cdb92b7cabeed8fd1125d8c5cb7941 | [
"Apache-2.0"
] | 2 | 2017-05-12T21:27:53.000Z | 2021-08-04T12:27:25.000Z | from nose.tools import set_trace
from StringIO import StringIO
from collections import (
defaultdict,
Counter,
)
import datetime
import feedparser
import logging
import traceback
import urllib
from urlparse import urlparse, urljoin
from sqlalchemy.orm.session import Session
from lxml import builder, etree
fro... | 38.513808 | 119 | 0.605249 | 5,296 | 46,024 | 5.089502 | 0.138218 | 0.028567 | 0.007791 | 0.004155 | 0.220487 | 0.169882 | 0.138458 | 0.113675 | 0.105884 | 0.087557 | 0 | 0.002851 | 0.321745 | 46,024 | 1,194 | 120 | 38.546064 | 0.860616 | 0.143599 | 0 | 0.20882 | 0 | 0.001297 | 0.0644 | 0.0079 | 0 | 0 | 0 | 0.002513 | 0 | 0 | null | null | 0.001297 | 0.071336 | 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 |
8274e6156d9f657200d4fa63776607a42c249bf2 | 7,731 | py | Python | pseudoword.py | frickiericker/pseudoword | 1d232db4121a924a47decf124f8c3f8bdb2ab457 | [
"CC0-1.0"
] | 1 | 2022-03-04T23:13:57.000Z | 2022-03-04T23:13:57.000Z | pseudoword.py | frickiericker/pseudoword | 1d232db4121a924a47decf124f8c3f8bdb2ab457 | [
"CC0-1.0"
] | null | null | null | pseudoword.py | frickiericker/pseudoword | 1d232db4121a924a47decf124f8c3f8bdb2ab457 | [
"CC0-1.0"
] | null | null | null | """
Program to generate random pseudowords based on an n-gram model learnt from
a dictionary file.
Examples
--------
Generate four random pseudowords:
% python pseudoword.py -n 4
spheatable
soregia
gaded
shiosoprilin
Generate fourty random pseudowords packed in 60 columns:
% python pseudowo... | 28.527675 | 79 | 0.584918 | 881 | 7,731 | 5.060159 | 0.332577 | 0.007851 | 0.02288 | 0.017048 | 0.043966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005574 | 0.257405 | 7,731 | 270 | 80 | 28.633333 | 0.770946 | 0.436683 | 0 | 0.11215 | 1 | 0 | 0.098205 | 0.005234 | 0 | 0 | 0 | 0 | 0.037383 | 1 | 0.074766 | false | 0 | 0.056075 | 0 | 0.186916 | 0.018692 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.