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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4fa75237dd91b8b5c00a4d9a9f93edc0482962ef | 8,057 | py | Python | src/utils.py | AlbertoMoretto/mondrianforest | 6456729cdab652d4d04ffa107c91eab404826b99 | [
"MIT"
] | 214 | 2015-01-12T06:25:35.000Z | 2021-11-26T22:19:56.000Z | src/utils.py | afcarl/mondrianforest | eac11fe085160daf56f4e8c6226d0400b78c3908 | [
"MIT"
] | 4 | 2015-12-29T18:08:48.000Z | 2017-05-16T16:55:04.000Z | src/utils.py | afcarl/mondrianforest | eac11fe085160daf56f4e8c6226d0400b78c3908 | [
"MIT"
] | 81 | 2015-02-08T20:17:30.000Z | 2022-01-15T19:47:55.000Z | #!/usr/bin/env python
import numpy as np
import math
def compute_kl(mean_1, log_prec_1, mean_2, log_prec_2):
"""
compute KL between two Gaussian distributions
"""
mean_1 = np.asarray(mean_1)
log_prec_1 = np.asarray(log_prec_1)
mean_2 = np.asarray(mean_2)
log_prec_2 = np.asarray(log_prec_2... | 31.108108 | 114 | 0.622316 | 1,371 | 8,057 | 3.432531 | 0.157549 | 0.080323 | 0.049299 | 0.042074 | 0.432639 | 0.369316 | 0.270506 | 0.237144 | 0.224819 | 0.21292 | 0 | 0.032466 | 0.250714 | 8,057 | 258 | 115 | 31.228682 | 0.74706 | 0.057341 | 0 | 0.227027 | 0 | 0 | 0.058004 | 0.009442 | 0 | 0 | 0 | 0 | 0.07027 | 0 | null | null | 0.005405 | 0.010811 | null | null | 0.086486 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96c422af80c7f08f1d0adf4b401c8860467e4573 | 2,182 | py | Python | awx/main/tests/functional/models/test_job_launch_config.py | bhyunki/awx | ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c | [
"Apache-2.0"
] | 11,396 | 2017-09-07T04:56:02.000Z | 2022-03-31T13:56:17.000Z | awx/main/tests/functional/models/test_job_launch_config.py | bhyunki/awx | ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c | [
"Apache-2.0"
] | 11,046 | 2017-09-07T09:30:46.000Z | 2022-03-31T20:28:01.000Z | awx/main/tests/functional/models/test_job_launch_config.py | bhyunki/awx | ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c | [
"Apache-2.0"
] | 3,592 | 2017-09-07T04:14:31.000Z | 2022-03-31T23:53:09.000Z | import pytest
# AWX
from awx.main.models import JobTemplate, JobLaunchConfig
@pytest.fixture
def full_jt(inventory, project, machine_credential):
jt = JobTemplate.objects.create(name='my-jt', inventory=inventory, project=project, playbook='helloworld.yml')
jt.credentials.add(machine_credential)
return jt... | 32.088235 | 114 | 0.695234 | 264 | 2,182 | 5.522727 | 0.325758 | 0.037037 | 0.05487 | 0.041152 | 0.150892 | 0.082305 | 0.048011 | 0.048011 | 0.048011 | 0 | 0 | 0 | 0.199817 | 2,182 | 67 | 115 | 32.567164 | 0.835052 | 0.089368 | 0 | 0.142857 | 0 | 0 | 0.055955 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.214286 | false | 0.047619 | 0.047619 | 0 | 0.404762 | 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 |
96c56d865dc8a3488dee45006792ccd7242dac60 | 2,137 | py | Python | finviz/helper_functions/error_handling.py | yplsydnr/finviz | fec10a29157f36d8d41cca7067bb6762497f81fe | [
"MIT"
] | 746 | 2018-12-10T04:19:14.000Z | 2022-03-30T14:51:05.000Z | finviz/helper_functions/error_handling.py | yplsydnr/finviz | fec10a29157f36d8d41cca7067bb6762497f81fe | [
"MIT"
] | 90 | 2019-01-12T19:35:37.000Z | 2022-03-27T17:41:45.000Z | finviz/helper_functions/error_handling.py | yplsydnr/finviz | fec10a29157f36d8d41cca7067bb6762497f81fe | [
"MIT"
] | 220 | 2018-12-10T20:57:23.000Z | 2022-03-30T19:00:14.000Z | from finviz.config import connection_settings
class NoResults(Exception):
""" Raise when there are no results found. """
def __init__(self, query):
super(NoResults, self).__init__(f"No results found for query: {query}")
class InvalidTableType(Exception):
""" Raise when the given table type is i... | 30.971014 | 122 | 0.674778 | 251 | 2,137 | 5.454183 | 0.350598 | 0.046749 | 0.092038 | 0.076698 | 0.116874 | 0.051132 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226486 | 2,137 | 68 | 123 | 31.426471 | 0.828191 | 0.216659 | 0 | 0.055556 | 0 | 0 | 0.273399 | 0.026478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0 | 0.472222 | 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 |
96cba788931a0b83d4bf3b22013046ad54b71fe1 | 2,695 | py | Python | scripts/compute_metrics.py | yarny/gbdt | c99d90d7de57705c30b05d520a32e458985fd834 | [
"Apache-2.0"
] | 335 | 2016-09-18T07:49:25.000Z | 2022-03-19T15:24:38.000Z | scripts/compute_metrics.py | yarny/gbdt | c99d90d7de57705c30b05d520a32e458985fd834 | [
"Apache-2.0"
] | 16 | 2016-05-08T02:14:46.000Z | 2020-10-13T16:14:45.000Z | scripts/compute_metrics.py | yarny/gbdt | c99d90d7de57705c30b05d520a32e458985fd834 | [
"Apache-2.0"
] | 59 | 2016-08-05T22:22:16.000Z | 2022-01-07T23:57:45.000Z | #!/usr/bin/python
import collections
import math
import re
import sys
import operator
from optparse import make_option
from optparse import OptionParser
option_list = [
make_option('--group_file', action='store', type='string', dest='group_file',
help='[REQUIRED] The group flatfile.'),
make_op... | 30.280899 | 91 | 0.646011 | 332 | 2,695 | 5.084337 | 0.319277 | 0.031991 | 0.026659 | 0.033768 | 0.097749 | 0.097749 | 0 | 0 | 0 | 0 | 0 | 0.00717 | 0.223748 | 2,695 | 88 | 92 | 30.625 | 0.799713 | 0.005937 | 0 | 0.085714 | 0 | 0 | 0.105676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96d37a4c3a58d72d808bd8890fbe88913f499b2f | 1,020 | py | Python | eBPFArch.py | tryke/ebpf | 1c3133c6590d3b9a4df0a76a38302363e7a666dd | [
"MIT"
] | null | null | null | eBPFArch.py | tryke/ebpf | 1c3133c6590d3b9a4df0a76a38302363e7a666dd | [
"MIT"
] | null | null | null | eBPFArch.py | tryke/ebpf | 1c3133c6590d3b9a4df0a76a38302363e7a666dd | [
"MIT"
] | null | null | null | from binaryninja.architecture import *
from binaryninja.binaryview import *
from .eBPFInstruction import eBPFInstruction
class eBPFArch(Architecture):
name = 'eBPF'
address_size = 8
instr_alignment = 8
max_instr_length = 8
regs = {"r%d" % n : RegisterInfo('r%d' % n, 8) for n in range(0,11)}
st... | 35.172414 | 118 | 0.7 | 120 | 1,020 | 5.791667 | 0.425 | 0.069065 | 0.073381 | 0.155396 | 0.276259 | 0.14964 | 0.14964 | 0.14964 | 0 | 0 | 0 | 0.011111 | 0.205882 | 1,020 | 28 | 119 | 36.428571 | 0.846914 | 0 | 0 | 0.130435 | 0 | 0 | 0.041176 | 0.028431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.695652 | 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 |
96d7e6c7358c508bc9807dc2c71a116e961adb9f | 2,924 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/APPLE/fence.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/APPLE/fence.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/APPLE/fence.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension APPLE.fence
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_APPLE_fence'
_DEPRECATED = False
GL_DRAW_PIXELS_APPLE = constan... | 30.14433 | 77 | 0.795828 | 293 | 2,924 | 7.829352 | 0.21843 | 0.05667 | 0.045336 | 0.076722 | 0.472537 | 0.439407 | 0.439407 | 0.397559 | 0.343505 | 0.343505 | 0 | 0.002206 | 0.069767 | 2,924 | 96 | 78 | 30.458333 | 0.841176 | 0.055062 | 0 | 0.463415 | 1 | 0 | 0.241367 | 0.090876 | 0 | 0 | 0.004362 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.04878 | 0 | 0.073171 | 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 |
96e7e6dce92f29a565ded5b584ec3023bfbe393f | 5,372 | py | Python | sensor_blue/btnsnooz.py | chripell/mytools | 74d866f3dfa9c75f04014d61c770ba4267a8f2b6 | [
"Apache-2.0"
] | 2 | 2016-05-03T15:25:15.000Z | 2021-03-07T22:12:14.000Z | sensor_blue/btnsnooz.py | chripell/mytools | 74d866f3dfa9c75f04014d61c770ba4267a8f2b6 | [
"Apache-2.0"
] | null | null | null | sensor_blue/btnsnooz.py | chripell/mytools | 74d866f3dfa9c75f04014d61c770ba4267a8f2b6 | [
"Apache-2.0"
] | 4 | 2016-05-02T18:21:14.000Z | 2021-02-07T21:12:55.000Z | #!/usr/bin/env python
"""
This script extracts btsnooz content from bugreports and generates
a valid btsnoop log file which can be viewed using standard tools
like Wireshark.
btsnooz is a custom format designed to be included in bugreports.
It can be described as:
base64 {
file_header
deflate {
repeated {
... | 34.883117 | 108 | 0.6707 | 765 | 5,372 | 4.517647 | 0.261438 | 0.04456 | 0.046296 | 0.032986 | 0.467014 | 0.445023 | 0.391782 | 0.391782 | 0.391782 | 0.372685 | 0 | 0.032359 | 0.229151 | 5,372 | 153 | 109 | 35.111111 | 0.802222 | 0.253723 | 0 | 0.244898 | 1 | 0 | 0.07884 | 0.023143 | 0 | 0 | 0.02238 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.05102 | 0 | 0.183673 | 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 |
96e965fd88679f701269787eac2417d771f6bda2 | 4,902 | py | Python | libs/filesystem/base.py | jaycode/Arthur.workspace | 7a581104141ee5f556e058b1276b4087a2921dfc | [
"Apache-2.0"
] | null | null | null | libs/filesystem/base.py | jaycode/Arthur.workspace | 7a581104141ee5f556e058b1276b4087a2921dfc | [
"Apache-2.0"
] | null | null | null | libs/filesystem/base.py | jaycode/Arthur.workspace | 7a581104141ee5f556e058b1276b4087a2921dfc | [
"Apache-2.0"
] | null | null | null | """
This module contains Filesystem class, which functions as an
adapter to either connect to 3rd party storage servers like Amazon S3
or use local filesystem.
"""
from contextlib import contextmanager
import boto3
import io
import os, errno
import ConfigParser
from zipfile import ZipFile
import mimetypes
class Filesy... | 39.532258 | 114 | 0.580783 | 599 | 4,902 | 4.662771 | 0.320534 | 0.021482 | 0.017902 | 0.010025 | 0.05299 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006695 | 0.329661 | 4,902 | 124 | 115 | 39.532258 | 0.843275 | 0.007752 | 0 | 0 | 0 | 0 | 0.039112 | 0.013037 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.169492 | 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 |
96f55a28a1a2ebc829eee0bc603bd74d99c25402 | 1,932 | py | Python | src/Test.py | Horacehxw/traffic_simulation | 6967e81f29bc4be97265f26c246541469a1b6b49 | [
"MIT"
] | 32 | 2018-02-06T03:39:37.000Z | 2022-01-19T14:05:06.000Z | src/Test.py | enginBozkurt/traffic_simulation | 6967e81f29bc4be97265f26c246541469a1b6b49 | [
"MIT"
] | 5 | 2019-05-27T07:04:45.000Z | 2021-02-02T08:34:03.000Z | src/Test.py | enginBozkurt/traffic_simulation | 6967e81f29bc4be97265f26c246541469a1b6b49 | [
"MIT"
] | 9 | 2019-03-23T06:23:34.000Z | 2022-03-29T18:26:24.000Z | import unittest
from IDM import IDM, IDMAuto
from Constants import *
from LaneChange import LaneChange
from Cars import *
from copy import copy, deepcopy
from CarFactory import *
from Street import *
class MyTestCase(unittest.TestCase):
def test_IDM(self):
# using the initial value of Cars
... | 30.1875 | 81 | 0.565735 | 275 | 1,932 | 3.883636 | 0.305455 | 0.018727 | 0.022472 | 0.025281 | 0.371723 | 0.281835 | 0.281835 | 0.225655 | 0.153558 | 0.153558 | 0 | 0.133384 | 0.313147 | 1,932 | 63 | 82 | 30.666667 | 0.671439 | 0.072464 | 0 | 0.306122 | 0 | 0 | 0.006961 | 0 | 0 | 0 | 0 | 0.015873 | 0.102041 | 1 | 0.163265 | false | 0 | 0.163265 | 0 | 0.346939 | 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 |
96f74b77f9b13f06c954bda54945dc5182de34fb | 1,706 | py | Python | examples/file/boxplot_multi.py | zjffdu/bkcharts | 759a12436be4bec54b305115b79fa3e869a26164 | [
"BSD-3-Clause"
] | 25 | 2017-04-07T02:02:55.000Z | 2020-05-12T06:08:22.000Z | examples/file/boxplot_multi.py | zjffdu/bkcharts | 759a12436be4bec54b305115b79fa3e869a26164 | [
"BSD-3-Clause"
] | 78 | 2017-04-19T19:30:05.000Z | 2018-05-14T20:50:14.000Z | examples/file/boxplot_multi.py | zjffdu/bkcharts | 759a12436be4bec54b305115b79fa3e869a26164 | [
"BSD-3-Clause"
] | 14 | 2017-05-19T12:30:38.000Z | 2021-05-31T18:41:02.000Z | from bkcharts import BoxPlot, output_file, show, defaults
from bokeh.layouts import gridplot
from bokeh.sampledata.autompg import autompg as df
defaults.plot_width = 400
defaults.plot_height = 400
box_plot = BoxPlot(df, label='cyl', values='mpg',
title="label='cyl', values='mpg'")
box_plot2 = BoxP... | 37.911111 | 85 | 0.612544 | 215 | 1,706 | 4.748837 | 0.293023 | 0.125367 | 0.150833 | 0.166503 | 0.450539 | 0.387855 | 0.196866 | 0.099902 | 0.099902 | 0.099902 | 0 | 0.016006 | 0.23095 | 1,706 | 44 | 86 | 38.772727 | 0.762195 | 0.088511 | 0 | 0 | 0 | 0 | 0.264687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 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 |
8c02fbb869822b07500b8b2c7a67459d5cbd45e5 | 1,006 | py | Python | fafnir/depth_filter_pass.py | Kupoman/Fafnir | 4f6c5f76270ce16fd92e67672db5a7e599b83143 | [
"Apache-2.0"
] | 3 | 2018-04-03T02:50:07.000Z | 2019-02-28T13:43:49.000Z | fafnir/depth_filter_pass.py | Kupoman/fafnir | 4f6c5f76270ce16fd92e67672db5a7e599b83143 | [
"Apache-2.0"
] | null | null | null | fafnir/depth_filter_pass.py | Kupoman/fafnir | 4f6c5f76270ce16fd92e67672db5a7e599b83143 | [
"Apache-2.0"
] | null | null | null | import os
import panda3d.core as p3d
from panda3d_render_pass import RenderPass
SHADER_DIR = os.path.join(os.path.dirname(__file__), 'shaders', '')
class DepthFilterPass(RenderPass):
def __init__(self, name, graphics_context, texture_intersections):
fb_props = p3d.FrameBufferProperties()
fb_pro... | 33.533333 | 83 | 0.644135 | 125 | 1,006 | 4.816 | 0.464 | 0.036545 | 0.039867 | 0.039867 | 0.013289 | 0.013289 | 0.013289 | 0 | 0 | 0 | 0 | 0.033245 | 0.252485 | 1,006 | 29 | 84 | 34.689655 | 0.767287 | 0 | 0 | 0 | 0 | 0 | 0.06163 | 0.020875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.083333 | 0.125 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8c151fa654bc8d6f15456533abb57af05183735b | 4,817 | py | Python | client/verta/tests/operations/monitoring/test_summaries.py | houqp/modeldb | 32837d9c1446f42882ae2a7729df1a08e33ac155 | [
"Apache-2.0"
] | null | null | null | client/verta/tests/operations/monitoring/test_summaries.py | houqp/modeldb | 32837d9c1446f42882ae2a7729df1a08e33ac155 | [
"Apache-2.0"
] | null | null | null | client/verta/tests/operations/monitoring/test_summaries.py | houqp/modeldb | 32837d9c1446f42882ae2a7729df1a08e33ac155 | [
"Apache-2.0"
] | 1 | 2021-05-04T13:52:09.000Z | 2021-05-04T13:52:09.000Z | # -*- coding: utf-8 -*-
import datetime
from datetime import timedelta
import pytest
from verta._internal_utils._utils import generate_default_name
from verta.operations.monitoring.summaries import (
Summary,
SummaryQuery,
SummarySample,
SummarySampleQuery,
)
from verta._internal_utils import time_ut... | 40.478992 | 113 | 0.707079 | 555 | 4,817 | 5.735135 | 0.205405 | 0.081684 | 0.061263 | 0.04524 | 0.486962 | 0.436381 | 0.398366 | 0.347471 | 0.322337 | 0.263274 | 0 | 0.010077 | 0.217148 | 4,817 | 118 | 114 | 40.822034 | 0.833996 | 0.008927 | 0 | 0.152174 | 1 | 0 | 0.01761 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 1 | 0.032609 | false | 0 | 0.086957 | 0 | 0.141304 | 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 |
8c15464e8748157e52c315efe058ba6366dff55f | 492 | py | Python | backend/tradersplatform/event/models.py | ybedirhanpak/bounswe2019group1 | 9572fd307345b3f842c2c2ff4426857086484ed5 | [
"MIT"
] | 10 | 2019-02-14T14:53:49.000Z | 2019-10-23T08:03:39.000Z | backend/tradersplatform/event/models.py | ybedirhanpak/bounswe2019group1 | 9572fd307345b3f842c2c2ff4426857086484ed5 | [
"MIT"
] | 364 | 2019-02-14T14:50:12.000Z | 2022-02-10T13:43:09.000Z | backend/tradersplatform/event/models.py | bounswe/bounswe2019group1 | 9572fd307345b3f842c2c2ff4426857086484ed5 | [
"MIT"
] | 8 | 2019-05-05T20:04:31.000Z | 2020-12-24T16:44:54.000Z | from django.db import models
# Create your models here.
from myuser.models import TemplateUser
class Event(models.Model):
description = models.CharField(max_length=300, blank=True,null=True, unique=False)
title = models.CharField(max_length=300, blank=False, null=False, unique=False)
enabled = models.Boo... | 41 | 86 | 0.778455 | 65 | 492 | 5.846154 | 0.507692 | 0.071053 | 0.094737 | 0.126316 | 0.302632 | 0.302632 | 0 | 0 | 0 | 0 | 0 | 0.016092 | 0.115854 | 492 | 12 | 87 | 41 | 0.857471 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8c1f17b6df8076315978d50f11019611b14fb346 | 920 | py | Python | blog/admin.py | rsHalford/xhalford-blog | 7f7181c40601a5ad57d3fc8062a9a15660b8751b | [
"MIT"
] | null | null | null | blog/admin.py | rsHalford/xhalford-blog | 7f7181c40601a5ad57d3fc8062a9a15660b8751b | [
"MIT"
] | null | null | null | blog/admin.py | rsHalford/xhalford-blog | 7f7181c40601a5ad57d3fc8062a9a15660b8751b | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Post, Comment
from django.utils import timezone
from markdownx.widgets import AdminMarkdownxWidget
from markdownx.models import MarkdownxField
class PostAdmin(admin.ModelAdmin):
list_display = ("title", "slug", "status", "created_on")
list_filter = ("statu... | 30.666667 | 66 | 0.703261 | 95 | 920 | 6.652632 | 0.452632 | 0.047468 | 0.060127 | 0.082278 | 0.183544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158696 | 920 | 29 | 67 | 31.724138 | 0.816537 | 0 | 0 | 0.181818 | 0 | 0 | 0.167391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8c231487b3eaa95cdfcd804882a5be0a1865d422 | 507 | py | Python | apps/almoxarifado/apps/lista_saida/migrate_backup/0005_auto_20200408_0754.py | mequetrefe-do-subtroco/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | 1 | 2020-06-18T09:03:53.000Z | 2020-06-18T09:03:53.000Z | apps/almoxarifado/apps/lista_saida/migrate_backup/0005_auto_20200408_0754.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | 33 | 2020-06-16T18:59:33.000Z | 2021-08-12T21:33:17.000Z | apps/almoxarifado/apps/lista_saida/migrate_backup/0005_auto_20200408_0754.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-04-08 07:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('lista_saida', '0004_ontitem_ontlista'),
]
operations = [
migrations.AlterField(
model_name='ont... | 25.35 | 133 | 0.654832 | 59 | 507 | 5.491525 | 0.661017 | 0.074074 | 0.08642 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048469 | 0.226824 | 507 | 19 | 134 | 26.684211 | 0.778061 | 0.088757 | 0 | 0 | 1 | 0 | 0.163043 | 0.045652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c2816f186f9d561bea43ed4f5b7411d0181228a | 12,661 | py | Python | mvpa_itab/script/perceptual_learning/plot.py | robbisg/mvpa_itab_wu | e3cdb198a21349672f601cd34381e0895fa6484c | [
"MIT"
] | 1 | 2022-01-12T08:59:22.000Z | 2022-01-12T08:59:22.000Z | mvpa_itab/script/perceptual_learning/plot.py | robbisg/mvpa_itab_wu | e3cdb198a21349672f601cd34381e0895fa6484c | [
"MIT"
] | 46 | 2016-08-04T14:49:37.000Z | 2022-03-09T08:47:48.000Z | mvpa_itab/script/perceptual_learning/plot.py | robbisg/mvpa_itab_wu | e3cdb198a21349672f601cd34381e0895fa6484c | [
"MIT"
] | null | null | null | #######################################################
# Copyright (c) 2013 Roberto Guidotti
#
# See the file license.txt for copying permission.
########################################################
# pylint: disable=maybe-no-member, method-hidden, no-member
import os
import cPickle as pickle
import numpy ... | 32.971354 | 96 | 0.522944 | 1,505 | 12,661 | 4.247841 | 0.213953 | 0.016268 | 0.015642 | 0.021899 | 0.311747 | 0.272173 | 0.22947 | 0.186454 | 0.151728 | 0.138276 | 0 | 0.020519 | 0.330227 | 12,661 | 383 | 97 | 33.057441 | 0.733373 | 0.048653 | 0 | 0.257813 | 0 | 0 | 0.071486 | 0.011189 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.011719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8c2a619dbf34e1d7695828fe0aed11d93c622cb8 | 6,593 | py | Python | evaluation/filters.py | tmolitor-stud-tu/AnonPubSub | c671d813618cfdb7b9327cb7d3329a1ef153220e | [
"MIT"
] | null | null | null | evaluation/filters.py | tmolitor-stud-tu/AnonPubSub | c671d813618cfdb7b9327cb7d3329a1ef153220e | [
"MIT"
] | null | null | null | evaluation/filters.py | tmolitor-stud-tu/AnonPubSub | c671d813618cfdb7b9327cb7d3329a1ef153220e | [
"MIT"
] | null | null | null |
# *** these filters do NOT see ping messages, nor do routers see them ***
# *** global imports are NOT accessible, do imports in __init__ and bind them to an attribute ***
class Filters(Base):
def __init__(self, logger):
# init parent class
super().__init__(logger)
# some... | 54.040984 | 155 | 0.59275 | 731 | 6,593 | 5.103967 | 0.23119 | 0.064326 | 0.030019 | 0.056285 | 0.456714 | 0.355401 | 0.342804 | 0.276333 | 0.233181 | 0.224605 | 0 | 0.005907 | 0.281056 | 6,593 | 121 | 156 | 54.487603 | 0.781224 | 0.143789 | 0 | 0.311828 | 0 | 0 | 0.191357 | 0.091944 | 0 | 0 | 0 | 0.008264 | 0 | 1 | 0.107527 | false | 0.064516 | 0.043011 | 0 | 0.172043 | 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 |
8c3d292b893036ec49cbcc626978a207a2584667 | 452 | py | Python | python_modules/libraries/dagster-twilio/dagster_twilio/resources.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 1 | 2021-04-27T19:49:59.000Z | 2021-04-27T19:49:59.000Z | python_modules/libraries/dagster-twilio/dagster_twilio/resources.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 7 | 2022-03-16T06:55:04.000Z | 2022-03-18T07:03:25.000Z | python_modules/libraries/dagster-twilio/dagster_twilio/resources.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | null | null | null | from twilio.rest import Client
from dagster import Field, StringSource, resource
@resource(
{
"account_sid": Field(StringSource, description="Twilio Account SID"),
"auth_token": Field(StringSource, description="Twilio Auth Token"),
},
description="This resource is for connecting to Twilio... | 30.133333 | 96 | 0.734513 | 52 | 452 | 6.25 | 0.442308 | 0.156923 | 0.172308 | 0.209231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15708 | 452 | 14 | 97 | 32.285714 | 0.853018 | 0 | 0 | 0 | 0 | 0 | 0.261062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 0.363636 | 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 |
8c4394e29ef3476e4d50a87586c9076e6253a2ab | 499 | py | Python | Books/GodOfPython/P00_OriginalSource/ch14/gui_07_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/GodOfPython/P00_OriginalSource/ch14/gui_07_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/GodOfPython/P00_OriginalSource/ch14/gui_07_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | # gui_07_2.py
import tkinter
SMILE = """
#define smileywe_width 16
#define smiley_height 16
static unsigned char smiley_bits[] = {
0xc0, 0x07, 0x30, 0x18, 0x08, 0x20, 0x04, 0x40, 0x44, 0x44, 0x02, 0x80,
0x02, 0x80, 0x02, 0x80, 0x22, 0x88, 0x62, 0x8c, 0xc4, 0x47, 0x04, 0x40,
0x08, 0x20, 0x30, 0x18, 0xc0, 0x07, 0x00, 0x... | 26.263158 | 71 | 0.705411 | 79 | 499 | 4.379747 | 0.632911 | 0.069364 | 0.069364 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249417 | 0.140281 | 499 | 18 | 72 | 27.722222 | 0.55711 | 0.022044 | 0 | 0 | 0 | 0.133333 | 0.584362 | 0 | 0 | 0 | 0.263374 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c46ac29aa2a544b47d8edb3a25fc2c01d553f49 | 5,288 | py | Python | scripts/taxonomy_blast_parser.py | EnvGen/toolbox | a644560d989316fffd72c696e60c95ed713f6236 | [
"MIT"
] | 5 | 2018-07-02T06:34:09.000Z | 2021-06-09T00:32:45.000Z | scripts/taxonomy_blast_parser.py | EnvGen/toolbox | a644560d989316fffd72c696e60c95ed713f6236 | [
"MIT"
] | 5 | 2016-09-23T08:52:53.000Z | 2019-12-19T08:49:11.000Z | scripts/taxonomy_blast_parser.py | EnvGen/toolbox | a644560d989316fffd72c696e60c95ed713f6236 | [
"MIT"
] | 1 | 2020-04-28T18:45:56.000Z | 2020-04-28T18:45:56.000Z | #!/usr/bin/env python
"""Taxonomy_blast_parser.py: finds the best taxonomic classification from 2 blast files.
From tab-separated blast files corresponding to fwd and rev reads,
the 5% top HSP making cutoffs for evalue, coverage and identity
in both files are used for LCA determination"""
from __future__ import div... | 37.503546 | 184 | 0.726362 | 744 | 5,288 | 5.107527 | 0.346774 | 0.016579 | 0.031316 | 0.011842 | 0.078158 | 0.078158 | 0.062368 | 0.062368 | 0.052105 | 0.028947 | 0 | 0.018843 | 0.156959 | 5,288 | 140 | 185 | 37.771429 | 0.833558 | 0.210477 | 0 | 0.105263 | 0 | 0.010526 | 0.189357 | 0.0155 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073684 | null | null | 0.042105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8c4b3eb802a6b23c345d0a7b6a4a72141e8774c1 | 5,438 | py | Python | volatility/volatility/plugins/addrspaces/standard.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/volatility/plugins/addrspaces/standard.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/volatility/plugins/addrspaces/standard.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
# Copyright (C) 2004,2005,2006 4tphi Research
#
# Authors:
# {npetroni,awalters}@4tphi.net (Nick Petroni and AAron Walters)
# Michael Cohen <scudette@users.sourceforge.net>
# Mike Auty <mike.auty@gmail.com>
#
# This file is part of Volatility.
#
# Volatility ... | 36.743243 | 134 | 0.644722 | 724 | 5,438 | 4.769337 | 0.389503 | 0.028671 | 0.011295 | 0.016507 | 0.03649 | 0.016218 | 0 | 0 | 0 | 0 | 0 | 0.01275 | 0.264435 | 5,438 | 147 | 135 | 36.993197 | 0.8505 | 0.236116 | 0 | 0.13253 | 0 | 0 | 0.082989 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0 | null | null | 0 | 0.060241 | null | null | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8c52e737b8a21257c7e12b06697170569e5ff334 | 461 | py | Python | Number Guessing Game with Python/number-gussing.py | manish1822510059/Advance-Python-Projects | d80b68ce880065597318733efdf3840e65b9f0db | [
"Apache-2.0"
] | 1 | 2021-03-07T09:16:29.000Z | 2021-03-07T09:16:29.000Z | Number Guessing Game with Python/number-gussing.py | manish1822510059/Advance-Python-Projects | d80b68ce880065597318733efdf3840e65b9f0db | [
"Apache-2.0"
] | null | null | null | Number Guessing Game with Python/number-gussing.py | manish1822510059/Advance-Python-Projects | d80b68ce880065597318733efdf3840e65b9f0db | [
"Apache-2.0"
] | null | null | null | import random as r
#create a range of random number between 1-100
n = r.randrange(1,100)
#to take input to enter a number
guess = int(input("Enter any number : "))
print(guess)
while n!=guess:
if guess <n:
print("Too low")
guess = int(input("Enter number again: "))
elif guess > n:
... | 24.263158 | 51 | 0.585683 | 67 | 461 | 4.029851 | 0.522388 | 0.088889 | 0.144444 | 0.2 | 0.214815 | 0.214815 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.29718 | 461 | 18 | 52 | 25.611111 | 0.808642 | 0.164859 | 0 | 0.142857 | 0 | 0 | 0.258242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c5dcef5622cff7580645a53b02b412c677dede6 | 467 | py | Python | term4/OOP/library_site/urls.py | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | null | null | null | term4/OOP/library_site/urls.py | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | null | null | null | term4/OOP/library_site/urls.py | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | 1 | 2021-10-11T08:30:48.000Z | 2021-10-11T08:30:48.000Z | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('user/', include('users.urls')),
path('api/', include('api.urls')),
path('sales/', include('dashboard... | 29.1875 | 80 | 0.704497 | 61 | 467 | 5.344262 | 0.409836 | 0.122699 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134904 | 467 | 16 | 80 | 29.1875 | 0.806931 | 0 | 0 | 0 | 0 | 0 | 0.132479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
8c5edcf60fe7d2789481f4403f0a6aac83c41698 | 542 | py | Python | setup.py | GJena/CIS-700-7_HelloAlexa | f698acda5ab3b62b0934d0ef40c13d000b86ef12 | [
"MIT"
] | null | null | null | setup.py | GJena/CIS-700-7_HelloAlexa | f698acda5ab3b62b0934d0ef40c13d000b86ef12 | [
"MIT"
] | null | null | null | setup.py | GJena/CIS-700-7_HelloAlexa | f698acda5ab3b62b0934d0ef40c13d000b86ef12 | [
"MIT"
] | 1 | 2019-10-20T03:25:03.000Z | 2019-10-20T03:25:03.000Z | from distutils.core import setup
setup(name='ask-alexa-pykit',
version='0.5.6',
description="Minimalist SDK for developing skills for Amazon's Alexa Skills Kit for Amazon Echo Dot Tap FireTV etc",
author='Anjishnu Kumar',
author_email='anjishnu.kr@gmail.com',
url='https://github.co... | 38.714286 | 123 | 0.629151 | 70 | 542 | 4.842857 | 0.642857 | 0.070796 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.197417 | 542 | 13 | 124 | 41.692308 | 0.772414 | 0 | 0 | 0 | 0 | 0 | 0.516068 | 0.039698 | 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 |
8c6437fce472b0696de83c8e1230706d24a43960 | 7,268 | py | Python | disease_spread_model/others/valid_function_calls.py | BartoszBiernacki/ABM | 6c993356aab86ce3d456e228c0a3aa41b2efa10c | [
"MIT"
] | null | null | null | disease_spread_model/others/valid_function_calls.py | BartoszBiernacki/ABM | 6c993356aab86ce3d456e228c0a3aa41b2efa10c | [
"MIT"
] | null | null | null | disease_spread_model/others/valid_function_calls.py | BartoszBiernacki/ABM | 6c993356aab86ce3d456e228c0a3aa41b2efa10c | [
"MIT"
] | null | null | null | from disease_spread_model.data_processing.visualisation import *
from disease_spread_model.config import RealDataOptions
# [1] ******************************************************
RealVisualisation.show_real_death_toll(voivodeships=['all'],
last_day=100,
... | 36.34 | 106 | 0.400798 | 504 | 7,268 | 5.329365 | 0.295635 | 0.063663 | 0.055845 | 0.067014 | 0.376024 | 0.284066 | 0.211467 | 0.172748 | 0.157856 | 0.139985 | 0 | 0.021756 | 0.120941 | 7,268 | 199 | 107 | 36.522613 | 0.398654 | 0.453908 | 0 | 0.423423 | 0 | 0 | 0.037065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018018 | 0 | 0.018018 | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fb21544823e339fefc33dfc15715776d9a921ff | 3,095 | py | Python | videos/models.py | ZacharyWuzh/VDU | a7e632204cdf18cc23f29f8ca1a4f98773c0d59b | [
"Apache-1.1"
] | 1 | 2018-07-13T06:13:53.000Z | 2018-07-13T06:13:53.000Z | videos/models.py | ZacharyWuzh/VDU | a7e632204cdf18cc23f29f8ca1a4f98773c0d59b | [
"Apache-1.1"
] | null | null | null | videos/models.py | ZacharyWuzh/VDU | a7e632204cdf18cc23f29f8ca1a4f98773c0d59b | [
"Apache-1.1"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils.text import slugify
from django.db.models.signals import pre_save
from django.core.mail import send_mail
from django.core.urlresolvers import reverse
from comments.models import Comment
from django.contrib.contenttypes.models imp... | 31.907216 | 80 | 0.731179 | 394 | 3,095 | 5.560914 | 0.312183 | 0.031949 | 0.032862 | 0.043816 | 0.229576 | 0.086262 | 0.0712 | 0.0712 | 0.044728 | 0.044728 | 0 | 0.004252 | 0.164136 | 3,095 | 96 | 81 | 32.239583 | 0.842675 | 0.007754 | 0 | 0.126761 | 0 | 0 | 0.02678 | 0.007185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15493 | false | 0 | 0.112676 | 0.056338 | 0.774648 | 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 |
4fb3d4343d49636aa910cb8951fff55dd3a66f2e | 1,720 | py | Python | bbs_viewer/modules/campaigns/models.py | yoophi/bbs_viewer | bda8604c02214738c55b6130450d0bff15ee9a0d | [
"MIT"
] | null | null | null | bbs_viewer/modules/campaigns/models.py | yoophi/bbs_viewer | bda8604c02214738c55b6130450d0bff15ee9a0d | [
"MIT"
] | null | null | null | bbs_viewer/modules/campaigns/models.py | yoophi/bbs_viewer | bda8604c02214738c55b6130450d0bff15ee9a0d | [
"MIT"
] | null | null | null | import json
from sqlalchemy import ForeignKey
from sqlalchemy.orm import relationship
from flask_api_app.database import BaseMixin
from instashare.database import db
class Campaign(db.Model, BaseMixin):
name = db.Column(db.Unicode(255))
user_id = db.Column(db.Integer, ForeignKey('users.id'), nullable=False,... | 24.927536 | 80 | 0.634884 | 218 | 1,720 | 4.889908 | 0.330275 | 0.120075 | 0.150094 | 0.095685 | 0.219512 | 0.054409 | 0 | 0 | 0 | 0 | 0 | 0.003065 | 0.241279 | 1,720 | 68 | 81 | 25.294118 | 0.813793 | 0 | 0 | 0.2 | 0 | 0 | 0.063953 | 0.021512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.02 | 0.76 | 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 |
4fb415a53e743d4d02a137b168163237aab850f1 | 1,253 | py | Python | tests/restserver/polls/migrations/0002_auto_20160911_1457.py | danicarrion/pyrestcli | 319a0d9574f47a2ff23cbce197bf412f5000d6fa | [
"MIT"
] | 5 | 2018-03-13T13:29:12.000Z | 2021-02-12T11:34:59.000Z | tests/restserver/polls/migrations/0002_auto_20160911_1457.py | danicarrion/pyrestcli | 319a0d9574f47a2ff23cbce197bf412f5000d6fa | [
"MIT"
] | 21 | 2016-09-04T20:16:07.000Z | 2021-06-10T19:30:44.000Z | tests/restserver/polls/migrations/0002_auto_20160911_1457.py | danicarrion/pyrestcli | 319a0d9574f47a2ff23cbce197bf412f5000d6fa | [
"MIT"
] | 5 | 2017-03-17T19:51:47.000Z | 2021-03-18T07:40:12.000Z | from __future__ import unicode_literals
from django.db import migrations
from django.contrib.auth.hashers import make_password
from django.utils import timezone
def create_test_models(apps, schema_editor):
User = apps.get_model("auth", "User")
Question = apps.get_model("polls", "Question")
Choice = apps.... | 29.139535 | 90 | 0.705507 | 173 | 1,253 | 4.83237 | 0.32948 | 0.114833 | 0.105263 | 0.064593 | 0.308612 | 0.246411 | 0.098086 | 0.098086 | 0 | 0 | 0 | 0.030622 | 0.166002 | 1,253 | 42 | 91 | 29.833333 | 0.769378 | 0 | 0 | 0 | 0 | 0 | 0.099761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.133333 | 0 | 0.266667 | 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 |
4fbc3c53c61ff0d1a807fdf8e9325d2325b71619 | 13,888 | py | Python | onadata/apps/fsforms/forms.py | awemulya/fieldsight-kobocat | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 38 | 2017-02-28T05:39:40.000Z | 2019-01-16T04:39:04.000Z | onadata/apps/fsforms/forms.py | awemulya/fieldsightt | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 20 | 2017-04-27T09:14:27.000Z | 2019-01-17T06:35:52.000Z | onadata/apps/fsforms/forms.py | awemulya/fieldsightt | f302d084e30fb637d43ec638c701e01a3dddc721 | [
"BSD-2-Clause"
] | 5 | 2017-02-22T12:25:19.000Z | 2019-01-15T11:16:40.000Z | from django.db.models import Q
from django.forms.extras.widgets import SelectDateWidget
from django import forms
from django.utils.translation import ugettext_lazy as _
from onadata.apps.fieldsight.models import Site
from onadata.apps.fieldsight.utils.forms import HTML5BootstrapModelForm, KOModelForm, HRBSFormField
fro... | 40.727273 | 138 | 0.635729 | 1,499 | 13,888 | 5.714476 | 0.108072 | 0.084754 | 0.064441 | 0.048331 | 0.679781 | 0.650479 | 0.633668 | 0.633668 | 0.602848 | 0.602848 | 0 | 0.00283 | 0.236607 | 13,888 | 340 | 139 | 40.847059 | 0.805131 | 0.046875 | 0 | 0.604 | 0 | 0 | 0.080296 | 0.00378 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044 | false | 0 | 0.032 | 0 | 0.268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fbdc9fbb5bb03f61a9e6aafe18f6b485762f036 | 354 | py | Python | backend/api/serializers.py | fernand0aguilar/effective-enigma | 92a5424bea445b67b02fa23496d06ec4310ceb97 | [
"MIT"
] | null | null | null | backend/api/serializers.py | fernand0aguilar/effective-enigma | 92a5424bea445b67b02fa23496d06ec4310ceb97 | [
"MIT"
] | 4 | 2020-09-06T10:42:08.000Z | 2021-10-06T00:22:55.000Z | backend/api/serializers.py | fernand0aguilar/effective-enigma | 92a5424bea445b67b02fa23496d06ec4310ceb97 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Movie
class MovieSerializer(serializers.ModelSerializer):
class Meta:
fields = (
"name",
"plot",
"year",
"director",
"actors",
"image",
"ratings",
"url... | 19.666667 | 51 | 0.474576 | 26 | 354 | 6.423077 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.432203 | 354 | 17 | 52 | 20.823529 | 0.830846 | 0 | 0 | 0 | 0 | 0 | 0.115819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fbfd96b30b966efc1a38e529abcf24c38e12c07 | 5,473 | py | Python | src/C3STEM/Middleware/c3stemtraci/polygon.py | doc-vu/c2sumo | 6fb952b6078f7404b08037b42a2541c9f20e72d0 | [
"MIT"
] | 1 | 2017-09-30T05:15:49.000Z | 2017-09-30T05:15:49.000Z | src/C3STEM/Middleware/c3stemtraci/polygon.py | shekharshank/c2sumo | 6fb952b6078f7404b08037b42a2541c9f20e72d0 | [
"MIT"
] | null | null | null | src/C3STEM/Middleware/c3stemtraci/polygon.py | shekharshank/c2sumo | 6fb952b6078f7404b08037b42a2541c9f20e72d0 | [
"MIT"
] | 4 | 2016-03-24T15:20:46.000Z | 2018-07-08T19:48:51.000Z | # -*- coding: utf-8 -*-
"""
@file polygon.py
@author Michael Behrisch
@date 2011-03-16
@version $Id: polygon.py 15031 2013-11-05 19:52:41Z behrisch $
Python implementation of the TraCI interface.
SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
Copyright (C) 2011-2013 DLR (http://www.dlr.de/) and c... | 39.092857 | 146 | 0.695231 | 744 | 5,473 | 4.99328 | 0.258065 | 0.006999 | 0.058143 | 0.077524 | 0.386272 | 0.360431 | 0.338358 | 0.320323 | 0.287214 | 0.270256 | 0 | 0.019938 | 0.175224 | 5,473 | 139 | 147 | 39.374101 | 0.803057 | 0.332907 | 0 | 0.258621 | 0 | 0 | 0.013651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258621 | false | 0 | 0.034483 | 0.017241 | 0.431034 | 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 |
4fc316ea5cc191c0365a636fec976d5a10eab5e5 | 2,215 | py | Python | zoom/model/zoom/zoom_effect.py | PedalController/PluginsManager-Zoom | 13569fa3d74db9c91aac723df503a20e6f281bde | [
"Apache-1.1"
] | 1 | 2020-04-24T05:59:16.000Z | 2020-04-24T05:59:16.000Z | zoom/model/zoom/zoom_effect.py | PedalController/PluginsManager-Zoom | 13569fa3d74db9c91aac723df503a20e6f281bde | [
"Apache-1.1"
] | 5 | 2019-12-07T02:07:29.000Z | 2021-02-15T18:49:15.000Z | zoom/model/zoom/zoom_effect.py | PedalPi/PluginsManager-Zoom | 13569fa3d74db9c91aac723df503a20e6f281bde | [
"Apache-1.1"
] | null | null | null | # Copyright 2017 SrMouraSilva
#
# 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,... | 31.197183 | 119 | 0.663657 | 271 | 2,215 | 5.273063 | 0.431734 | 0.041987 | 0.020994 | 0.050385 | 0.093772 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005956 | 0.241986 | 2,215 | 70 | 120 | 31.642857 | 0.845146 | 0.340858 | 0 | 0.0625 | 0 | 0.03125 | 0.122857 | 0.015 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.0625 | 0.34375 | 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 |
4fc3f5a8bba3010bb9fe6752dcfb165f6c5e71e6 | 900 | py | Python | backend/ql_library/books/schema/types.py | radekwlsk/ql-library | 04ce66d983917a187d97583f2f917ac2cf0257c0 | [
"MIT"
] | 1 | 2020-04-17T10:27:42.000Z | 2020-04-17T10:27:42.000Z | backend/ql_library/books/schema/types.py | radekwlsk/ql-library | 04ce66d983917a187d97583f2f917ac2cf0257c0 | [
"MIT"
] | 14 | 2021-04-08T21:38:01.000Z | 2022-01-14T11:43:38.000Z | backend/ql_library/books/schema/types.py | radekwlsk/ql-library | 04ce66d983917a187d97583f2f917ac2cf0257c0 | [
"MIT"
] | null | null | null | import graphene
from graphene import ObjectType
from graphene_django.types import DjangoObjectType
from ..models import Author, Book
class CountryType(ObjectType):
name = graphene.String()
class BookType(DjangoObjectType):
class Meta:
model = Book
class AuthorType(DjangoObjectType):
country ... | 23.076923 | 64 | 0.674444 | 93 | 900 | 6.494624 | 0.397849 | 0.069536 | 0.046358 | 0.089404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236667 | 900 | 38 | 65 | 23.684211 | 0.879185 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0.037037 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4fca9886a9c51d6be0aceb760de4a27342ef7ea0 | 1,722 | py | Python | slowfast/utils/misc.py | tridivb/SlowFast | 3726f30681a870fd0d8435782a91b0e2a4162fa3 | [
"Apache-2.0"
] | 1 | 2019-10-28T18:15:02.000Z | 2019-10-28T18:15:02.000Z | slowfast/utils/misc.py | tridivb/SlowFast | 3726f30681a870fd0d8435782a91b0e2a4162fa3 | [
"Apache-2.0"
] | null | null | null | slowfast/utils/misc.py | tridivb/SlowFast | 3726f30681a870fd0d8435782a91b0e2a4162fa3 | [
"Apache-2.0"
] | 1 | 2020-03-12T12:55:53.000Z | 2020-03-12T12:55:53.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import logging
import math
import numpy as np
import os
from datetime import datetime
import torch
import slowfast.utils.logging as logging
logger = logging.get_logger(__name__)
def check_nan_losses(loss):
"""
De... | 25.701493 | 77 | 0.652729 | 239 | 1,722 | 4.58159 | 0.451883 | 0.03653 | 0.049315 | 0.038356 | 0.038356 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.226481 | 1,722 | 66 | 78 | 26.090909 | 0.813063 | 0.379791 | 0 | 0 | 0 | 0 | 0.082019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.269231 | 0 | 0.576923 | 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 |
4fd0cd28f23104db13865e120e5240382320db3f | 808 | py | Python | indices/readers/pdo.py | tomescaff/patagonia | 4bcb1ad38e87a58db6ea60bf36bc01a76ed930a1 | [
"MIT"
] | null | null | null | indices/readers/pdo.py | tomescaff/patagonia | 4bcb1ad38e87a58db6ea60bf36bc01a76ed930a1 | [
"MIT"
] | null | null | null | indices/readers/pdo.py | tomescaff/patagonia | 4bcb1ad38e87a58db6ea60bf36bc01a76ed930a1 | [
"MIT"
] | null | null | null | import pandas as pd
import xarray as xr
import numpy as np
from os.path import abspath, dirname, join
# path to the indices directory
INDICES_ROOT = dirname(dirname(abspath(__file__)))
# path to the folder with large scale indices
DATA_ROOT = join(INDICES_ROOT, 'data')
# useful for the majority of ENSO indices
def p... | 27.862069 | 70 | 0.674505 | 125 | 808 | 4.248 | 0.584 | 0.022599 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028213 | 0.210396 | 808 | 29 | 71 | 27.862069 | 0.804075 | 0.310644 | 0 | 0 | 0 | 0 | 0.111314 | 0.047445 | 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 |
4fd16c0cd2524a1fa137904d5eda9c9ad1d689e6 | 1,078 | py | Python | saleor/product/migrations/0008_auto_20160114_0733.py | dedhio/bellastore | 03cad4d11c039c6c33291021def812570c09fe36 | [
"BSD-3-Clause"
] | 3 | 2019-06-09T18:00:54.000Z | 2019-06-18T10:07:39.000Z | saleor/product/migrations/0008_auto_20160114_0733.py | dedhio/bellastore | 03cad4d11c039c6c33291021def812570c09fe36 | [
"BSD-3-Clause"
] | 2 | 2019-07-02T13:39:49.000Z | 2019-07-07T09:38:27.000Z | saleor/product/migrations/0008_auto_20160114_0733.py | dedhio/bellastore | 03cad4d11c039c6c33291021def812570c09fe36 | [
"BSD-3-Clause"
] | 1 | 2019-05-02T17:30:49.000Z | 2019-05-02T17:30:49.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-14 13:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("product", "0007_auto_20160112_1025")]
operations = [
migrations.RemoveField(model_name="d... | 29.135135 | 110 | 0.525046 | 102 | 1,078 | 5.401961 | 0.647059 | 0.087114 | 0.092559 | 0.114338 | 0.141561 | 0.141561 | 0 | 0 | 0 | 0 | 0 | 0.061493 | 0.366419 | 1,078 | 36 | 111 | 29.944444 | 0.745242 | 0.062152 | 0 | 0.275862 | 1 | 0 | 0.201389 | 0.022817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.172414 | 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 |
4fd2db22f0713a559a6e0eeae17188a72d76b7ca | 768 | py | Python | basics/basics.py | augustoscher/python-excercises | 502fb3c15597033ba19e32f871be12d347a9aa2a | [
"MIT"
] | null | null | null | basics/basics.py | augustoscher/python-excercises | 502fb3c15597033ba19e32f871be12d347a9aa2a | [
"MIT"
] | null | null | null | basics/basics.py | augustoscher/python-excercises | 502fb3c15597033ba19e32f871be12d347a9aa2a | [
"MIT"
] | null | null | null | print("-- Strings -- ")
print()
mystring = "hello"
myfloat = 10.0
myint = 20
if mystring == "hello":
print("String: %s" % mystring)
if isinstance(myfloat, float) and myfloat == 10.0:
print("Float: %f" % myfloat)
if isinstance(myint, int) and myint == 20:
print("Integer: %d" % myint)
print()
nome = 'Teste... | 19.692308 | 73 | 0.597656 | 116 | 768 | 3.922414 | 0.413793 | 0.013187 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021812 | 0.223958 | 768 | 39 | 74 | 19.692308 | 0.741611 | 0.046875 | 0 | 0.071429 | 0 | 0 | 0.206849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.035714 | 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 |
4fd6110e596e6cf30b68dc87b0f5805095545839 | 755 | py | Python | posts/urls_posts.py | zhpeng811/social.distance | d7a15cae817fc1aed31c460577de22a37bdfb6d3 | [
"W3C-20150513"
] | 6 | 2021-12-01T01:29:22.000Z | 2021-12-07T02:13:33.000Z | posts/urls_posts.py | zhpeng811/social.distance | d7a15cae817fc1aed31c460577de22a37bdfb6d3 | [
"W3C-20150513"
] | 7 | 2021-09-26T22:17:58.000Z | 2021-11-19T04:03:16.000Z | posts/urls_posts.py | CMPUT404Fall2021-6803d618/social.distance | d7a15cae817fc1aed31c460577de22a37bdfb6d3 | [
"W3C-20150513"
] | null | null | null | from django.urls import path
from .views import *
urlpatterns = [
path('', PostList.as_view(), name="post-list"),
path('<str:post_id>/', PostDetail.as_view(), name="post-detail"),
path('<str:post_id>/likes/', LikesPostList.as_view(), name="like-post-list"),
path('<str:post_id>/share/followers/', share... | 50.333333 | 113 | 0.69404 | 105 | 755 | 4.809524 | 0.266667 | 0.09703 | 0.152475 | 0.180198 | 0.358416 | 0.213861 | 0.130693 | 0.130693 | 0 | 0 | 0 | 0 | 0.092715 | 755 | 14 | 114 | 53.928571 | 0.737226 | 0 | 0 | 0 | 0 | 0 | 0.418543 | 0.221192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
4fd7b3a1485765a4ce25a91af30e7aeeacf6a1ae | 9,699 | py | Python | train_kd.py | Turing311/TFKD | 238676a15dc6107972718a8d60eac3edfed7436f | [
"MIT"
] | null | null | null | train_kd.py | Turing311/TFKD | 238676a15dc6107972718a8d60eac3edfed7436f | [
"MIT"
] | null | null | null | train_kd.py | Turing311/TFKD | 238676a15dc6107972718a8d60eac3edfed7436f | [
"MIT"
] | null | null | null | import os
import time
import math
import utils
from tqdm import tqdm
import logging
from torch.autograd import Variable
from evaluate import evaluate, evaluate_kd
from tensorboardX import SummaryWriter
from torch.optim.lr_scheduler import StepLR, MultiStepLR
# KD train and evaluate
def train_and_evaluate_kd(model, tea... | 38.035294 | 142 | 0.638519 | 1,229 | 9,699 | 4.809601 | 0.156225 | 0.031636 | 0.018271 | 0.014211 | 0.720859 | 0.681441 | 0.65302 | 0.621553 | 0.591101 | 0.574184 | 0 | 0.009771 | 0.261367 | 9,699 | 254 | 143 | 38.185039 | 0.815327 | 0.148572 | 0 | 0.706667 | 0 | 0 | 0.084652 | 0.01325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.066667 | 0 | 0.106667 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fd836a7271b7019c1fa6e6154158f2391df9695 | 1,613 | py | Python | snake_OOP/snake.py | M4rkopolo/turtle_OOP_inheritance | a4a8240bd23a760737c4eaf3e9b1a5c7f0203682 | [
"MIT"
] | null | null | null | snake_OOP/snake.py | M4rkopolo/turtle_OOP_inheritance | a4a8240bd23a760737c4eaf3e9b1a5c7f0203682 | [
"MIT"
] | null | null | null | snake_OOP/snake.py | M4rkopolo/turtle_OOP_inheritance | a4a8240bd23a760737c4eaf3e9b1a5c7f0203682 | [
"MIT"
] | null | null | null | #GLOBAL VARIABLES
STARTING_POSITION = [(0, 0), (-20, 0), (-40, 0)]
N = 0
MOVE_DISTANCE = 20
UP = 90
DOWN = 270
LEFT = 180
RIGHT = 0
from turtle import Turtle
from food import Food
class Snake(Turtle): #inheritance parent is a Turtle
def __init__(self):
super().__init__()
self.segments = []
... | 26.442623 | 60 | 0.611903 | 216 | 1,613 | 4.375 | 0.305556 | 0.152381 | 0.096296 | 0.071958 | 0.247619 | 0.093122 | 0.093122 | 0.093122 | 0.093122 | 0.093122 | 0 | 0.033051 | 0.268444 | 1,613 | 60 | 61 | 26.883333 | 0.767797 | 0.028518 | 0 | 0.081633 | 0 | 0 | 0.007029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.040816 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fd9879a58f86551a80ae91eb843d90da5553344 | 3,805 | py | Python | scripts/contract_abi.py | henrygong/bio2bio | ca7e27d162984c114209c4adf23d91ce07f91bdd | [
"Apache-2.0"
] | null | null | null | scripts/contract_abi.py | henrygong/bio2bio | ca7e27d162984c114209c4adf23d91ce07f91bdd | [
"Apache-2.0"
] | null | null | null | scripts/contract_abi.py | henrygong/bio2bio | ca7e27d162984c114209c4adf23d91ce07f91bdd | [
"Apache-2.0"
] | null | null | null | abi = """[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_hashSender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_hashId",
"type": "uint256"
},
{
"indexed": false,
... | 17.06278 | 35 | 0.455979 | 248 | 3,805 | 6.947581 | 0.169355 | 0.095763 | 0.133488 | 0.089959 | 0.755078 | 0.652931 | 0.452699 | 0.399304 | 0.364481 | 0.364481 | 0 | 0.023166 | 0.319317 | 3,805 | 222 | 36 | 17.13964 | 0.642085 | 0 | 0 | 0.572072 | 0 | 0 | 0.996372 | 0.006419 | 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 | 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 |
4fdcefb14bfb5c4f7e15cb7197a7437a77950430 | 493 | py | Python | debug_misc.py | PopGalacticHistory/imagewalker | dd151d0698472aebdde0487a364c56fed048bb61 | [
"MIT"
] | 2 | 2021-04-28T13:33:45.000Z | 2021-11-09T14:31:09.000Z | debug_misc.py | PopGalacticHistory/imagewalker | dd151d0698472aebdde0487a364c56fed048bb61 | [
"MIT"
] | null | null | null | debug_misc.py | PopGalacticHistory/imagewalker | dd151d0698472aebdde0487a364c56fed048bb61 | [
"MIT"
] | 1 | 2021-03-07T13:25:59.000Z | 2021-03-07T13:25:59.000Z | def debug_policy_plot():
qq_right = []
x_vec = np.arange(vagent.max_q[0])
for xx in x_vec:
vagent.q[0] = xx
vsensor.update(vscene,vagent)
vobservation = local_observer(vsensor,vagent) #todo: generalize
qq_right.append(RL.compute_q_eval(vobservation.reshape([1... | 37.923077 | 76 | 0.59432 | 75 | 493 | 3.706667 | 0.453333 | 0.176259 | 0.118705 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.225152 | 493 | 13 | 77 | 37.923077 | 0.696335 | 0.032454 | 0 | 0 | 0 | 0 | 0.008386 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 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 |
4fde69fc7f13669aaac3ac9a18589053dbd7a176 | 254 | py | Python | app/views/gateway/employee_gateway.py | iu5team/rms | 179bba96fd72eacb89e01f8d75d9ab6a4e4a875a | [
"MIT"
] | null | null | null | app/views/gateway/employee_gateway.py | iu5team/rms | 179bba96fd72eacb89e01f8d75d9ab6a4e4a875a | [
"MIT"
] | 38 | 2016-04-06T10:29:45.000Z | 2016-05-18T19:50:20.000Z | app/views/gateway/employee_gateway.py | iu5team/rms | 179bba96fd72eacb89e01f8d75d9ab6a4e4a875a | [
"MIT"
] | null | null | null | import datetime
from app.views.gateway.gateway import Gateway, Connection
class EmployeeGateway(Gateway):
TABLE_NAME = 'app_employee'
FIELDS = {
'id',
'name',
'position_id',
'salary',
'manager_id'
}
| 16.933333 | 57 | 0.594488 | 25 | 254 | 5.88 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299213 | 254 | 14 | 58 | 18.142857 | 0.825843 | 0 | 0 | 0 | 0 | 0 | 0.177165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fe008d6adabeae1b5df86ec9004e7a5af1dc22f | 1,053 | py | Python | extract_projects_from_posts.py | itielshwartz/planet-python-history | ff7522b06e755d853d2c89d3dd069c85e24065b1 | [
"MIT"
] | 4 | 2017-09-07T10:15:03.000Z | 2020-05-23T10:28:43.000Z | extract_projects_from_posts.py | itielshwartz/python-station-backend | ff7522b06e755d853d2c89d3dd069c85e24065b1 | [
"MIT"
] | null | null | null | extract_projects_from_posts.py | itielshwartz/python-station-backend | ff7522b06e755d853d2c89d3dd069c85e24065b1 | [
"MIT"
] | null | null | null | import json
def extract_github_projects_from_posts(input_file, output_file):
with open(input_file) as f:
data = json.load(f)
extracted_github_projects = {}
for post in data:
for project_url, project_data in post.get("out_urls").items(): # get all links on page
project_aggregat... | 55.421053 | 125 | 0.613485 | 127 | 1,053 | 4.779528 | 0.456693 | 0.16804 | 0.207578 | 0.069193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001355 | 0.299145 | 1,053 | 18 | 126 | 58.5 | 0.821138 | 0.103514 | 0 | 0 | 0 | 0 | 0.066028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4fe37c3edafd7686be923b0c6f4f9007e84cc0fe | 233 | py | Python | Chapters/02.Unconstrained/figure_btls.py | MichielStock/SelectedTopicsOptimization | 20f6b37566d23cdde0ac6b765ffcc5ed72a11172 | [
"MIT"
] | 22 | 2017-03-21T14:01:10.000Z | 2022-03-02T18:51:40.000Z | Chapters/02.Unconstrained/figure_btls.py | ntienvu/SelectedTopicsOptimization | 069659ca9754cc7fd884b654a06157cc7da6f963 | [
"MIT"
] | 2 | 2018-03-22T09:54:01.000Z | 2018-05-30T16:16:53.000Z | Chapters/02.Unconstrained/figure_btls.py | ntienvu/SelectedTopicsOptimization | 069659ca9754cc7fd884b654a06157cc7da6f963 | [
"MIT"
] | 18 | 2018-01-21T15:23:51.000Z | 2022-02-05T20:12:03.000Z | """
Created on Tuesday 13 February 2019
Last update: -
@author: Michiel Stock
michielfmstock@gmail.com
Figure BTLS
"""
from teachingtools import *
fig = show_inexact_ls(alpha=0.4, beta=0.9, Dx=10)
fig.savefig('Figures/btls.png')
| 15.533333 | 49 | 0.738197 | 36 | 233 | 4.722222 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059406 | 0.133047 | 233 | 14 | 50 | 16.642857 | 0.782178 | 0.480687 | 0 | 0 | 0 | 0 | 0.141593 | 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 |
4fe85dc52a07ec913879d6fa1c34d379acb85a90 | 8,004 | py | Python | netparse/table.py | syedur-rahman/netparse | 0ccc80fbc9fe53355f3a8280964ca97a7d1cddc1 | [
"Apache-2.0"
] | null | null | null | netparse/table.py | syedur-rahman/netparse | 0ccc80fbc9fe53355f3a8280964ca97a7d1cddc1 | [
"Apache-2.0"
] | null | null | null | netparse/table.py | syedur-rahman/netparse | 0ccc80fbc9fe53355f3a8280964ca97a7d1cddc1 | [
"Apache-2.0"
] | null | null | null | """
netparse.table
This module provides the necessary abstraction to take a TABLE pattern
output and generate an accurate datastructure based off it.
For further reading, please check out this article:
https://pyability.com/the-curse-of-the-cli/
"""
class ParseTable:
def __init__(self, unstructured_data, patte... | 42.126316 | 90 | 0.551224 | 896 | 8,004 | 4.763393 | 0.188616 | 0.042174 | 0.033505 | 0.02671 | 0.373243 | 0.324742 | 0.205483 | 0.175492 | 0.156279 | 0.135192 | 0 | 0.004704 | 0.38918 | 8,004 | 190 | 91 | 42.126316 | 0.868276 | 0.346327 | 0 | 0.15 | 1 | 0 | 0.02921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4feffefbbf32f80a88fc978a691d7535fef48c0c | 2,309 | py | Python | .leetcode/389.find-the-difference.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/389.find-the-difference.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/389.find-the-difference.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=389 lang=python3
#
# [389] Find the Difference
#
# https://leetcode.com/problems/find-the-difference/description/
#
# algorithms
# Easy (58.39%)
# Likes: 1466
# Dislikes: 325
# Total Accepted: 278.3K
# Total Submissions: 475.9K
# Testcase Example: '"abcd"\n"abcde"'
#
# You are given two str... | 17.103704 | 74 | 0.550455 | 304 | 2,309 | 4.154605 | 0.384868 | 0.019002 | 0.047506 | 0.050673 | 0.204276 | 0.171021 | 0.101346 | 0.101346 | 0.101346 | 0.101346 | 0 | 0.025 | 0.255089 | 2,309 | 135 | 75 | 17.103704 | 0.709302 | 0.428757 | 0 | 0.444444 | 0 | 0 | 0.209003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.044444 | 0.022222 | 0 | 0.088889 | 0.711111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ff49a4ad8edfa10cacba83d0665c618287a14c4 | 1,280 | py | Python | src/batch/views.py | The-New-Fork/api-import | f268bae06da27fe30270778db1f098b26e0b9336 | [
"Apache-2.0"
] | null | null | null | src/batch/views.py | The-New-Fork/api-import | f268bae06da27fe30270778db1f098b26e0b9336 | [
"Apache-2.0"
] | null | null | null | src/batch/views.py | The-New-Fork/api-import | f268bae06da27fe30270778db1f098b26e0b9336 | [
"Apache-2.0"
] | null | null | null | from rest_framework import viewsets
from .models import Batch, BatchIntegrity, TimestampTransaction
from .serializers import BatchSerializer, BatchIntegritySerializer, TimestampTransactionSerializer
# from rest_framework.views import APIView
# from rest_framework.mixins import ListModelMixin, RetrieveModelMixin
from re... | 37.647059 | 98 | 0.785156 | 128 | 1,280 | 7.734375 | 0.5 | 0.078788 | 0.085859 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007279 | 0.141406 | 1,280 | 33 | 99 | 38.787879 | 0.89354 | 0.200781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.761905 | 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 |
4ff5815693bb5ca978a349787367746b538b5775 | 414 | py | Python | sparse/tests/test_dask_interop.py | simonthor/sparse | 4a5ba984c94e264b97232a3f06924ca79d5be2dd | [
"BSD-3-Clause"
] | 391 | 2018-01-26T18:59:47.000Z | 2022-03-31T05:22:23.000Z | sparse/tests/test_dask_interop.py | simonthor/sparse | 4a5ba984c94e264b97232a3f06924ca79d5be2dd | [
"BSD-3-Clause"
] | 432 | 2018-01-26T13:50:42.000Z | 2022-03-27T20:52:47.000Z | sparse/tests/test_dask_interop.py | simonthor/sparse | 4a5ba984c94e264b97232a3f06924ca79d5be2dd | [
"BSD-3-Clause"
] | 81 | 2018-01-26T16:54:03.000Z | 2022-03-27T17:34:20.000Z | from dask.base import tokenize
import sparse
def test_deterministic_token():
a = sparse.COO(data=[1, 2, 3], coords=[10, 20, 30], shape=(40,))
b = sparse.COO(data=[1, 2, 3], coords=[10, 20, 30], shape=(40,))
assert tokenize(a) == tokenize(b)
# One of these things is not like the other....
c = spars... | 34.5 | 68 | 0.613527 | 69 | 414 | 3.652174 | 0.507246 | 0.107143 | 0.154762 | 0.166667 | 0.595238 | 0.535714 | 0.535714 | 0.535714 | 0.535714 | 0.535714 | 0 | 0.098507 | 0.190821 | 414 | 11 | 69 | 37.636364 | 0.653731 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
4ff9b93ff7d1e81a97da268faedf6dafd1349f23 | 5,742 | py | Python | src/scipp/core/arithmetic.py | mlund/scipp | 26648fdcda49b21a7aacdafd58625fab7ee3403b | [
"BSD-3-Clause"
] | null | null | null | src/scipp/core/arithmetic.py | mlund/scipp | 26648fdcda49b21a7aacdafd58625fab7ee3403b | [
"BSD-3-Clause"
] | null | null | null | src/scipp/core/arithmetic.py | mlund/scipp | 26648fdcda49b21a7aacdafd58625fab7ee3403b | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022 Scipp contributors (https://github.com/scipp)
# @author Jan-Lukas Wynen
from __future__ import annotations
from .._scipp import core as _cpp
from ._cpp_wrapper_util import call_func as _call_cpp_func
from ..typing import VariableLike
def add(a: VariableLi... | 21.75 | 80 | 0.578544 | 693 | 5,742 | 4.715729 | 0.219336 | 0.007344 | 0.024786 | 0.036414 | 0.536108 | 0.502754 | 0.48929 | 0.46481 | 0.412791 | 0.410955 | 0 | 0.025278 | 0.2628 | 5,742 | 263 | 81 | 21.8327 | 0.746752 | 0.692964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ffd3f5d2fbe31c389e6570b3ef8702d13f54f73 | 803 | py | Python | setup.py | porterjamesj/iou | 78523091500064a12122030f96a375fabef0a505 | [
"MIT"
] | null | null | null | setup.py | porterjamesj/iou | 78523091500064a12122030f96a375fabef0a505 | [
"MIT"
] | 1 | 2015-06-14T05:51:33.000Z | 2015-06-14T05:51:33.000Z | setup.py | porterjamesj/iou | 78523091500064a12122030f96a375fabef0a505 | [
"MIT"
] | null | null | null | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "iou",
version = "0.1",
author = "James J. Porter",
author_email = "porterjamesj@gmail.com",
description = "personal debt management for you and your friends... | 28.678571 | 70 | 0.606476 | 88 | 803 | 5.465909 | 0.738636 | 0.118503 | 0.155925 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013115 | 0.240349 | 803 | 27 | 71 | 29.740741 | 0.77541 | 0 | 0 | 0 | 0 | 0 | 0.43462 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0.04 | 0.16 | 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 |
8b08577e020a42c3cf0488f89b8e98bdb59346da | 2,330 | py | Python | camunda/variables/tests/test_variables.py | yogesh-selfscore/camunda-external-task-client-python3 | ce339909a02d4e229bcb193666240598cdd0a8e5 | [
"Apache-2.0"
] | 25 | 2020-07-02T13:15:37.000Z | 2022-02-01T16:48:01.000Z | camunda/variables/tests/test_variables.py | yogesh-selfscore/camunda-external-task-client-python3 | ce339909a02d4e229bcb193666240598cdd0a8e5 | [
"Apache-2.0"
] | 23 | 2021-07-29T03:49:58.000Z | 2022-03-07T05:14:16.000Z | camunda/variables/tests/test_variables.py | yogesh-selfscore/camunda-external-task-client-python3 | ce339909a02d4e229bcb193666240598cdd0a8e5 | [
"Apache-2.0"
] | 14 | 2021-08-19T07:26:01.000Z | 2022-02-24T14:08:17.000Z | from unittest import TestCase
from camunda.variables.variables import Variables
class VariablesTest(TestCase):
def test_get_variable_returns_none_when_variable_absent(self):
variables = Variables({})
self.assertIsNone(variables.get_variable("var1"))
def test_get_variable_returns_value_when_... | 43.148148 | 94 | 0.617597 | 245 | 2,330 | 5.57551 | 0.183673 | 0.04612 | 0.029283 | 0.052709 | 0.699122 | 0.662518 | 0.540996 | 0.477306 | 0.424597 | 0.232796 | 0 | 0.025612 | 0.245923 | 2,330 | 53 | 95 | 43.962264 | 0.75185 | 0 | 0 | 0.317073 | 0 | 0 | 0.091845 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.219512 | false | 0.02439 | 0.04878 | 0 | 0.292683 | 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 |
8b0f1bd4cba097ca24efe5e9afcf4cfaf1be5e0b | 1,970 | py | Python | app/db/db_connect.py | vnappmob/vapi | ab7e8ecdb459227084c8f1dd65e18f5d668b1c43 | [
"MIT"
] | null | null | null | app/db/db_connect.py | vnappmob/vapi | ab7e8ecdb459227084c8f1dd65e18f5d668b1c43 | [
"MIT"
] | null | null | null | app/db/db_connect.py | vnappmob/vapi | ab7e8ecdb459227084c8f1dd65e18f5d668b1c43 | [
"MIT"
] | null | null | null | """app/db/db_connect.py"""
import MySQLdb
from flask import current_app
class VDBConnect:
"""@VDBConnect"""
def __init__(self, db='vapi_db'):
try:
self.conn = MySQLdb.connect(
host=current_app.config['DATABASE_CONFIG']['db_host'],
user=current_app.config['D... | 29.848485 | 76 | 0.577157 | 203 | 1,970 | 5.458128 | 0.320197 | 0.099278 | 0.076715 | 0.121841 | 0.281588 | 0.17148 | 0.084838 | 0.084838 | 0 | 0 | 0 | 0.001425 | 0.28731 | 1,970 | 65 | 77 | 30.307692 | 0.787749 | 0.068528 | 0 | 0.136364 | 0 | 0 | 0.081278 | 0.012892 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.022727 | 0.045455 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b223b3ffa32fccb44b32cf61af47282ebd57baa | 2,713 | py | Python | blast/src/app/winmasker/windowmasker_counts_adapter.py | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/app/winmasker/windowmasker_counts_adapter.py | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/app/winmasker/windowmasker_counts_adapter.py | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Run this program to convert new style counts files containing version, parameters, and
# version data inforamtion into the old format.
#
import sys
HELP_STR = """
------------------------------------------------------------------------------
WINDOWMASKER COUNTS FILE CONVERTER
------------------... | 29.48913 | 88 | 0.530409 | 358 | 2,713 | 3.918994 | 0.324022 | 0.039914 | 0.035638 | 0.053457 | 0.101212 | 0.101212 | 0.04134 | 0 | 0 | 0 | 0 | 0.021489 | 0.26244 | 2,713 | 91 | 89 | 29.813187 | 0.67966 | 0.054921 | 0 | 0.178082 | 0 | 0 | 0.386239 | 0.103206 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013699 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8b24b978f3ff716733d6634e1fe6d3d0c9c27545 | 2,964 | py | Python | deep-learning-for-image-processing-master/tensorflow_classification/Test2_alexnet/read_pth.py | zpwithme/zzzzpppp | 0f5df647f1e9d6cb8c01b3fc7df25ee543714af3 | [
"MIT"
] | null | null | null | deep-learning-for-image-processing-master/tensorflow_classification/Test2_alexnet/read_pth.py | zpwithme/zzzzpppp | 0f5df647f1e9d6cb8c01b3fc7df25ee543714af3 | [
"MIT"
] | null | null | null | deep-learning-for-image-processing-master/tensorflow_classification/Test2_alexnet/read_pth.py | zpwithme/zzzzpppp | 0f5df647f1e9d6cb8c01b3fc7df25ee543714af3 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import tensorflow as tf
def rename_var(pth_path, new_ckpt_path, num_classes):
pytorch_dict = torch.load(pth_path)
with tf.Graph().as_default(), tf.compat.v1.Session().as_default() as sess:
new_var_list = []
for key, value in pytorch_dict.items():
i... | 42.342857 | 108 | 0.626518 | 413 | 2,964 | 4.251816 | 0.210654 | 0.155467 | 0.125285 | 0.167426 | 0.455581 | 0.432802 | 0.420843 | 0.268793 | 0.268793 | 0.072893 | 0 | 0.032575 | 0.243927 | 2,964 | 70 | 109 | 42.342857 | 0.751004 | 0.020243 | 0 | 0.058824 | 0 | 0 | 0.212194 | 0.016879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.058824 | 0 | 0.078431 | 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 |
8b28813fe0a1a659c071f70caf86e3fc565c9fc2 | 347 | py | Python | day20/test_yield.py | lukasHD/adventOfCode2020 | fa171f3ad8232a0542d544d3de9b2b9d8fdf8ccd | [
"MIT"
] | null | null | null | day20/test_yield.py | lukasHD/adventOfCode2020 | fa171f3ad8232a0542d544d3de9b2b9d8fdf8ccd | [
"MIT"
] | null | null | null | day20/test_yield.py | lukasHD/adventOfCode2020 | fa171f3ad8232a0542d544d3de9b2b9d8fdf8ccd | [
"MIT"
] | null | null | null | def rotflip():
yield "rot1"
yield "rot2"
yield "rot3"
yield "rot4"
yield "flip"
yield "rot1"
yield "rot2"
yield "rot3"
yield "rot4"
raise ValueError("aaaaa")
i = 0
#for i,a in enumerate(rotflip()):
a_gen = rotflip()
while True:
a = a_gen.__next__()
print(a)
i += 1
... | 15.772727 | 33 | 0.541787 | 48 | 347 | 3.791667 | 0.541667 | 0.098901 | 0.153846 | 0.197802 | 0.395604 | 0.395604 | 0.395604 | 0.395604 | 0 | 0 | 0 | 0.04661 | 0.319885 | 347 | 21 | 34 | 16.52381 | 0.724576 | 0.092219 | 0 | 0.421053 | 0 | 0 | 0.130573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0.052632 | 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 |
8b2a6ffd922ab65fedc16b767205080512d86fb5 | 6,252 | py | Python | test/test_loader.py | Lothiraldan/pytf | 78165288d11b5eb16878ab035e83ece2c8afe0b2 | [
"MIT"
] | null | null | null | test/test_loader.py | Lothiraldan/pytf | 78165288d11b5eb16878ab035e83ece2c8afe0b2 | [
"MIT"
] | 1 | 2015-01-25T16:37:09.000Z | 2015-01-25T16:37:09.000Z | test/test_loader.py | Lothiraldan/pytf | 78165288d11b5eb16878ab035e83ece2c8afe0b2 | [
"MIT"
] | null | null | null | import unittest
try:
from unittest.mock import Mock
except ImportError:
from mock import Mock
from pytf import TestLoader
from pytf.core import Test
from utils import (FunctionMock, MockTest, MockMultipleTests, FakeModule,
sample_test_generator)
class DefaultTestLoaderTestCase(unittest.TestCase):
d... | 33.433155 | 92 | 0.683941 | 766 | 6,252 | 5.220627 | 0.117493 | 0.062016 | 0.093023 | 0.03801 | 0.757689 | 0.709927 | 0.666167 | 0.629907 | 0.583896 | 0.51938 | 0 | 0.007389 | 0.220729 | 6,252 | 186 | 93 | 33.612903 | 0.813424 | 0.038548 | 0 | 0.540984 | 0 | 0 | 0.017836 | 0 | 0 | 0 | 0 | 0 | 0.270492 | 1 | 0.065574 | false | 0 | 0.057377 | 0 | 0.139344 | 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 |
8b3007f8d39e9564ffeaf128144c3acb7ceeefb6 | 1,179 | py | Python | alipay/aop/api/response/AlipayInsDataAuthorizationQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayInsDataAuthorizationQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayInsDataAuthorizationQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayInsDataAuthorizationQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayInsDataAuthorizationQueryResponse, self).__init__()
self._auth_agreement_url ... | 32.75 | 112 | 0.736217 | 133 | 1,179 | 6.105263 | 0.270677 | 0.144089 | 0.17734 | 0.098522 | 0.115764 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001045 | 0.188295 | 1,179 | 35 | 113 | 33.685714 | 0.84744 | 0.035623 | 0 | 0.08 | 0 | 0 | 0.065198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.08 | 0.44 | 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 |
8b31a532f2bda24e7da9541d0cf2d965faf586cb | 2,829 | py | Python | python/phylip/create-distance-matrix.py | lotharwissler/bioinformatics | 83a53771222ecb0759e3b4bfa2018d2cd7647643 | [
"MIT"
] | 10 | 2016-01-13T00:39:30.000Z | 2020-11-30T05:56:19.000Z | python/phylip/create-distance-matrix.py | lotharwissler/bioinformatics | 83a53771222ecb0759e3b4bfa2018d2cd7647643 | [
"MIT"
] | 1 | 2017-02-09T22:46:49.000Z | 2017-02-09T22:46:49.000Z | python/phylip/create-distance-matrix.py | lotharwissler/bioinformatics | 83a53771222ecb0759e3b4bfa2018d2cd7647643 | [
"MIT"
] | 10 | 2015-10-09T00:29:16.000Z | 2019-06-09T05:32:15.000Z | #!/usr/bin/python
import os, sys # low level handling, such as command line stuff
import string # string methods available
import re # regular expressions
import getopt # comand line argument handling
from low import * # custom functions, written by myself
from goterm import GOTerm
from collect... | 31.087912 | 88 | 0.4924 | 300 | 2,829 | 4.606667 | 0.423333 | 0.028944 | 0.011577 | 0.036179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016822 | 0.201485 | 2,829 | 90 | 89 | 31.433333 | 0.594954 | 0.265818 | 0 | 0.090909 | 0 | 0 | 0.143006 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106061 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8b3b181a2e2aabf195cb970d39329789696c64ba | 5,461 | py | Python | test/acceptance/src/e2e/web_management/endpoint_modification_from_web/steps.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | test/acceptance/src/e2e/web_management/endpoint_modification_from_web/steps.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | test/acceptance/src/e2e/web_management/endpoint_modification_from_web/steps.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
(c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights
Reserved.
The copyright to the software program(s) is property of Telefonica I+D.
The program(s) may be used and or copied only with the express written
consent of Telefonica I+D or in accordance with the terms and co... | 35.00641 | 111 | 0.735213 | 813 | 5,461 | 4.637146 | 0.148831 | 0.022546 | 0.06366 | 0.076393 | 0.597082 | 0.539788 | 0.424138 | 0.322281 | 0.227586 | 0.1687 | 0 | 0.001064 | 0.139169 | 5,461 | 155 | 112 | 35.232258 | 0.800893 | 0.080571 | 0 | 0.030303 | 0 | 0 | 0.216135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.060606 | 0 | 0.272727 | 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 |
8b3d1f27cc67729c02b6cb090f8aadd613fdfe84 | 771 | py | Python | 02 Recursion/greatest_common_divisor.py | tcbucher/PythonDSA | b601a7acf4a83d41f986cfe197c9545924b9f286 | [
"Unlicense"
] | null | null | null | 02 Recursion/greatest_common_divisor.py | tcbucher/PythonDSA | b601a7acf4a83d41f986cfe197c9545924b9f286 | [
"Unlicense"
] | null | null | null | 02 Recursion/greatest_common_divisor.py | tcbucher/PythonDSA | b601a7acf4a83d41f986cfe197c9545924b9f286 | [
"Unlicense"
] | null | null | null | # A script to recursively find the greatest common divisor of two numbers
def greatest_divisor(first, second):
assert first == int(first) and second == int(second) and first != 0 and second != 0, 'Numbers provided must be nonzero integers'
if first < 0:
first = -first
if second < 0:
secon... | 25.7 | 132 | 0.67834 | 108 | 771 | 4.75 | 0.388889 | 0.175439 | 0.194932 | 0.077973 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.216602 | 771 | 30 | 133 | 25.7 | 0.816225 | 0.115435 | 0 | 0 | 0 | 0 | 0.060294 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.315789 | 0.263158 | 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 |
8b3fe051d9a7baac5f4a67227e4af24a83415b1f | 1,525 | py | Python | credit.py | LUVBAY/LUVBAY | 3ceaf2712624d38f7aa13d69e8cb58aa6775835f | [
"MIT"
] | null | null | null | credit.py | LUVBAY/LUVBAY | 3ceaf2712624d38f7aa13d69e8cb58aa6775835f | [
"MIT"
] | null | null | null | credit.py | LUVBAY/LUVBAY | 3ceaf2712624d38f7aa13d69e8cb58aa6775835f | [
"MIT"
] | null | null | null | def main():
card_number = input("Enter credit card number: ")
print_card_value(card_number)
def print_card_value(card_number):
if check_for_sum(card_number) == False:
print("INVALID")
elif check_for_amex(card_number) == True:
print("AMEX")
elif check_for_master(card_number) == T... | 22.761194 | 84 | 0.64 | 227 | 1,525 | 3.947137 | 0.259912 | 0.234375 | 0.120536 | 0.15625 | 0.645089 | 0.329241 | 0.191964 | 0.120536 | 0 | 0 | 0 | 0.038394 | 0.248525 | 1,525 | 66 | 85 | 23.106061 | 0.743456 | 0 | 0 | 0.309524 | 0 | 0 | 0.047869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.309524 | 0.166667 | 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 |
8b40bb6161fb4994440981169b39dac282d4ee5a | 1,912 | py | Python | events/migrations/0011_auto_20180227_0210.py | albjeremias/GetTogether | 93dc62c322d93c4cb7d6fbd3a7ca1abf467005dc | [
"BSD-2-Clause"
] | 13 | 2017-12-26T17:05:06.000Z | 2018-01-02T15:09:31.000Z | events/migrations/0011_auto_20180227_0210.py | albjeremias/GetTogether | 93dc62c322d93c4cb7d6fbd3a7ca1abf467005dc | [
"BSD-2-Clause"
] | 9 | 2017-12-27T15:51:37.000Z | 2018-01-02T14:49:32.000Z | events/migrations/0011_auto_20180227_0210.py | albjeremias/GetTogether | 93dc62c322d93c4cb7d6fbd3a7ca1abf467005dc | [
"BSD-2-Clause"
] | 3 | 2017-12-26T21:27:38.000Z | 2018-01-03T15:01:49.000Z | # Generated by Django 2.0 on 2018-02-27 02:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('events', '0010_userprofile_send_notifications'),
]
operations = [
migrations.CreateModel(
name='C... | 36.075472 | 145 | 0.570607 | 187 | 1,912 | 5.716578 | 0.390374 | 0.029935 | 0.039289 | 0.06174 | 0.480823 | 0.480823 | 0.362956 | 0.362956 | 0.362956 | 0.362956 | 0 | 0.019985 | 0.29341 | 1,912 | 52 | 146 | 36.769231 | 0.771281 | 0.02249 | 0 | 0.630435 | 1 | 0 | 0.130155 | 0.018747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.108696 | 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 |
8c68c64a81558ee9dd7ac8dd6fb3832802151bc2 | 9,602 | py | Python | pybind/slxos/v16r_1_00b/overlay_gateway/attach/vlan/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/overlay_gateway/attach/vlan/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/overlay_gateway/attach/vlan/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 55.183908 | 557 | 0.707769 | 1,317 | 9,602 | 4.941534 | 0.150342 | 0.046097 | 0.043024 | 0.038107 | 0.733405 | 0.69453 | 0.677935 | 0.659496 | 0.659496 | 0.649662 | 0 | 0.015065 | 0.156634 | 9,602 | 173 | 558 | 55.50289 | 0.78859 | 0.135805 | 0 | 0.431034 | 0 | 0.043103 | 0.303628 | 0.119187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077586 | false | 0 | 0.068966 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c6a985d3cf53f3c91b0f8379352bbb808d2b143 | 6,829 | py | Python | app/utils/class_schedule/class_schedule.py | Hansybx/guohe3 | 53990b92f5d45bac1c2b903fd8df9cb97283697e | [
"Apache-2.0"
] | 1 | 2019-08-18T13:16:14.000Z | 2019-08-18T13:16:14.000Z | app/utils/class_schedule/class_schedule.py | Hansybx/guohe3 | 53990b92f5d45bac1c2b903fd8df9cb97283697e | [
"Apache-2.0"
] | 1 | 2019-08-19T02:05:32.000Z | 2022-02-11T07:27:37.000Z | app/utils/class_schedule/class_schedule.py | Hansybx/guohe3 | 53990b92f5d45bac1c2b903fd8df9cb97283697e | [
"Apache-2.0"
] | 1 | 2019-08-18T09:08:25.000Z | 2019-08-18T09:08:25.000Z | """
-*- coding: utf-8 -*-
Time : 2019/7/15 21:49
Author : Hansybx
"""
import re
from bs4 import BeautifulSoup
from flask import jsonify
from app.models import db
from app.models.class_schedule import ClassSchedule
from app.models.error import AuthFailed, PasswordFailed
from app.utils.common_utils import sql_to... | 30.900452 | 248 | 0.58808 | 839 | 6,829 | 4.556615 | 0.185936 | 0.051792 | 0.058593 | 0.006278 | 0.515564 | 0.352864 | 0.278315 | 0.200366 | 0.139942 | 0.139942 | 0 | 0.021157 | 0.273246 | 6,829 | 220 | 249 | 31.040909 | 0.749144 | 0.227413 | 0 | 0.121951 | 0 | 0 | 0.09293 | 0.02146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.073171 | 0.065041 | 0 | 0.203252 | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8c6d507a4b1496505eb0b320a43aa716ec745604 | 4,287 | py | Python | tests/test_value.py | amorygalili/pynetworktables | 59b5d1328274e78393202fe2a7e09845f5ff63a5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_value.py | amorygalili/pynetworktables | 59b5d1328274e78393202fe2a7e09845f5ff63a5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_value.py | amorygalili/pynetworktables | 59b5d1328274e78393202fe2a7e09845f5ff63a5 | [
"BSD-3-Clause"
] | null | null | null | """----------------------------------------------------------------------------"""
""" Copyright (c) FIRST 2017. All Rights Reserved. """
""" Open Source Software - may be modified and shared by FRC teams. The code """
""" must be accompanied by the FIRST BSD license file in the root direc... | 23.949721 | 82 | 0.597154 | 547 | 4,287 | 4.605119 | 0.182815 | 0.052402 | 0.067487 | 0.036125 | 0.488686 | 0.302501 | 0.179833 | 0.036919 | 0.026201 | 0 | 0 | 0.04907 | 0.234663 | 4,287 | 178 | 83 | 24.08427 | 0.718683 | 0.080709 | 0 | 0.25 | 0 | 0 | 0.066971 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 1 | 0.148148 | false | 0 | 0.018519 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c719d28213f50d5cd88cc925cb10beb47383c02 | 1,507 | py | Python | setup.py | jeremyschulman/netcad-demo-clabs1 | cb9dd5f3487edc7f07497d8cddd7b7c7f3cbdc6c | [
"MIT"
] | 4 | 2021-12-28T22:16:42.000Z | 2021-12-30T03:18:16.000Z | setup.py | jeremyschulman/netcad-demo-clabs1 | cb9dd5f3487edc7f07497d8cddd7b7c7f3cbdc6c | [
"MIT"
] | null | null | null | setup.py | jeremyschulman/netcad-demo-clabs1 | cb9dd5f3487edc7f07497d8cddd7b7c7f3cbdc6c | [
"MIT"
] | 1 | 2022-01-04T19:54:09.000Z | 2022-01-04T19:54:09.000Z | # -*- coding: utf-8 -*-
from setuptools import setup
packages = [
"netcad_demo_clabs1",
"netcad_demo_clabs1.designs",
"netcad_demo_clabs1.device_roles",
"netcad_demo_clabs1.plugins",
"netcad_demo_clabs1.plugins.containerlabs",
"netcad_demo_clabs1.profiles",
]
package_data = {"": ["*"]}
setup_... | 47.09375 | 798 | 0.727273 | 201 | 1,507 | 5.343284 | 0.502488 | 0.065177 | 0.104283 | 0.036313 | 0.124767 | 0.124767 | 0 | 0 | 0 | 0 | 0 | 0.011914 | 0.164565 | 1,507 | 31 | 799 | 48.612903 | 0.841144 | 0.013935 | 0 | 0 | 0 | 0.04 | 0.775606 | 0.101078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c752c0289288e417d0259f95f0bb7c439bc8bfa | 9,645 | py | Python | src/tasks.py | billtr0n/pytaskmanager | 9c67fec78e54896149866004975bf37240db2db9 | [
"Unlicense"
] | 1 | 2016-06-28T19:45:18.000Z | 2016-06-28T19:45:18.000Z | src/tasks.py | billtr0n/pytaskmanager | 9c67fec78e54896149866004975bf37240db2db9 | [
"Unlicense"
] | null | null | null | src/tasks.py | billtr0n/pytaskmanager | 9c67fec78e54896149866004975bf37240db2db9 | [
"Unlicense"
] | null | null | null | import os
import subprocess
"""
Define tasks here.
"""
def process_gmpe( params = None ):
if self.__prepare_parameters( self.params['cwd'] ):
if calc_gmpe( params = params ):
try:
plot_gmpe( params=params )
except Exception as e:
print 'could not plo... | 36.123596 | 120 | 0.536547 | 1,227 | 9,645 | 4.120619 | 0.274654 | 0.017801 | 0.02769 | 0.016614 | 0.365902 | 0.301622 | 0.256329 | 0.242089 | 0.232991 | 0.225277 | 0 | 0.020327 | 0.352203 | 9,645 | 266 | 121 | 36.259399 | 0.788892 | 0.134578 | 0 | 0.363158 | 0 | 0 | 0.114722 | 0.006306 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068421 | null | null | 0.068421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8c7d258c36983c057c7bd2f942db80ba9b6223ba | 2,963 | py | Python | task-8-redis-image-resize/tests/test_views.py | luxlunaris/fintech-tasks | be865e358e4ca76f401aae06098a2825e904c3d8 | [
"MIT"
] | null | null | null | task-8-redis-image-resize/tests/test_views.py | luxlunaris/fintech-tasks | be865e358e4ca76f401aae06098a2825e904c3d8 | [
"MIT"
] | null | null | null | task-8-redis-image-resize/tests/test_views.py | luxlunaris/fintech-tasks | be865e358e4ca76f401aae06098a2825e904c3d8 | [
"MIT"
] | null | null | null | import json
import time
import pytest
ns = "http://127.0.0.1:5000/images/"
def test_whole_cycle(client):
response = client.post(
ns,
data=json.dumps(
dict(
image="R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AA... | 41.152778 | 897 | 0.700641 | 213 | 2,963 | 9.647887 | 0.399061 | 0.019465 | 0.021898 | 0.03163 | 0.434063 | 0.408273 | 0.408273 | 0.408273 | 0.341119 | 0.322628 | 0 | 0.066811 | 0.222072 | 2,963 | 71 | 898 | 41.732394 | 0.824729 | 0 | 0 | 0.508475 | 0 | 0.050847 | 0.539318 | 0.457644 | 0 | 0 | 0 | 0 | 0.118644 | 1 | 0.016949 | false | 0 | 0.050847 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c7e31fb7e39f8c3edec7e9559eda511cc5a11b0 | 1,989 | py | Python | Core/Gui/Grid/FEditableCommentsRenderer.py | KhronosGroup/COLLADA-CTS | 61f2a560cbb2a06ee62da8025241f6b08d06bfd9 | [
"MIT"
] | 20 | 2015-03-19T08:02:57.000Z | 2020-10-16T15:16:11.000Z | Core/Gui/Grid/FEditableCommentsRenderer.py | Acidburn0zzz/COLLADA-CTS | 39a36188cf8710bbc003df43ed70b965eb4386bd | [
"MIT"
] | 4 | 2017-04-19T18:42:05.000Z | 2017-06-17T03:03:28.000Z | Core/Gui/Grid/FEditableCommentsRenderer.py | Acidburn0zzz/COLLADA-CTS | 39a36188cf8710bbc003df43ed70b965eb4386bd | [
"MIT"
] | 10 | 2015-03-26T02:52:24.000Z | 2022-02-24T08:43:48.000Z | # Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publis... | 56.828571 | 466 | 0.715435 | 263 | 1,989 | 5.353612 | 0.513308 | 0.068182 | 0.035511 | 0.02983 | 0.039773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.215686 | 1,989 | 35 | 467 | 56.828571 | 0.9 | 0.543489 | 0 | 0.095238 | 0 | 0 | 0.014412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c83b852b6061f948f6fcd98d7dfe9714f76e97f | 1,478 | py | Python | frontera/strategy/depth.py | buildfail/frontera | 84f9e1034d2868447db88e865596c0fbb32e70f6 | [
"BSD-3-Clause"
] | 1,267 | 2015-04-15T04:47:12.000Z | 2022-03-29T07:55:15.000Z | frontera/strategy/depth.py | buildfail/frontera | 84f9e1034d2868447db88e865596c0fbb32e70f6 | [
"BSD-3-Clause"
] | 316 | 2015-04-14T21:28:26.000Z | 2021-05-31T05:31:15.000Z | frontera/strategy/depth.py | buildfail/frontera | 84f9e1034d2868447db88e865596c0fbb32e70f6 | [
"BSD-3-Clause"
] | 250 | 2015-04-20T07:15:10.000Z | 2022-03-28T15:17:15.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from frontera.core.components import States
from frontera.strategy import BaseCrawlingStrategy
class BreadthFirstCrawlingStrategy(BaseCrawlingStrategy):
def read_seeds(self, fh):
for url in fh:
url = url.strip()
req = s... | 34.372093 | 63 | 0.625169 | 185 | 1,478 | 4.891892 | 0.297297 | 0.060773 | 0.066298 | 0.070718 | 0.218785 | 0.170166 | 0.170166 | 0.108287 | 0.108287 | 0.108287 | 0 | 0.010055 | 0.259811 | 1,478 | 43 | 64 | 34.372093 | 0.817185 | 0.014208 | 0 | 0.121212 | 0 | 0 | 0.037775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.090909 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c842d4649ac5308759e07dce15fb9a72aae0e3b | 806 | py | Python | main.py | cookielanguage/IDE | 0a2e68cea748ca9c598d14e936ee223bd58bd657 | [
"MIT"
] | 3 | 2021-05-20T17:57:11.000Z | 2021-11-16T12:54:29.000Z | main.py | billydevyt/BillyPad | 0a2e68cea748ca9c598d14e936ee223bd58bd657 | [
"MIT"
] | 1 | 2021-09-15T15:02:14.000Z | 2021-09-15T15:02:14.000Z | main.py | billydevyt/BillyPad | 0a2e68cea748ca9c598d14e936ee223bd58bd657 | [
"MIT"
] | 1 | 2021-05-03T06:01:07.000Z | 2021-05-03T06:01:07.000Z | import os
import tkinter as tk
from utils.data import *
from utils.utilities import *
from utils.statusbar import StatusBar
from utils.oreoide import OreoIDE
from utils.oreoeditor import OreoEditor
from utils.oreomenu import OreoMenu
from utils.terminal import Terminal
if __name__ == "__main__":
root = OreoIDE()... | 25.1875 | 61 | 0.740695 | 105 | 806 | 5.552381 | 0.390476 | 0.108062 | 0.051458 | 0.048027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014771 | 0.16005 | 806 | 31 | 62 | 26 | 0.846381 | 0 | 0 | 0 | 0 | 0 | 0.027295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.391304 | 0 | 0.391304 | 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 |
8c8450dbc9656faae1192ee74f871ddc53936940 | 3,718 | py | Python | Code/nebulae/lib/scsynth/process.py | CarlColglazier/QB_Nebulae_V2 | 3326fa1c672ba0845b28cb55847bea0c9b8e9a05 | [
"MIT"
] | 8 | 2020-05-14T20:18:29.000Z | 2021-08-08T15:18:28.000Z | Code/nebulae/lib/scsynth/process.py | alex-thibodeau/QB_Nebulae_V2 | 34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54 | [
"MIT"
] | null | null | null | Code/nebulae/lib/scsynth/process.py | alex-thibodeau/QB_Nebulae_V2 | 34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2006 by Patrick Stinson
# patrickkidd@gmail.com
#
# This program is free software; you can redistribute it and/or ... | 29.046875 | 81 | 0.499193 | 415 | 3,718 | 4.414458 | 0.46506 | 0.010917 | 0.021834 | 0.027293 | 0.04476 | 0.030568 | 0 | 0 | 0 | 0 | 0 | 0.020652 | 0.413932 | 3,718 | 127 | 82 | 29.275591 | 0.820101 | 0.356105 | 0 | 0.22973 | 0 | 0 | 0.120623 | 0.013132 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.094595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8c8606ee0c662269804f6b85573727ea60e96d4c | 506 | py | Python | converter.py | JesseBanning/pyna | 4f76b52039ecc386d495614751b40fded1afb2a6 | [
"MIT"
] | null | null | null | converter.py | JesseBanning/pyna | 4f76b52039ecc386d495614751b40fded1afb2a6 | [
"MIT"
] | null | null | null | converter.py | JesseBanning/pyna | 4f76b52039ecc386d495614751b40fded1afb2a6 | [
"MIT"
] | null | null | null | import json
with open("status.json", "r") as myfile:
myjson = json.load(myfile)
downed_servers = []
for serv in myjson:
print(serv)
if serv["state"] == "down":
print("this one is down")
downed_servers.append(serv["server"])
print(f"the following is a list of all th... | 28.111111 | 86 | 0.634387 | 74 | 506 | 4.243243 | 0.513514 | 0.248408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005168 | 0.235178 | 506 | 17 | 87 | 29.764706 | 0.806202 | 0 | 0 | 0 | 0 | 0 | 0.287129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.230769 | 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 |
8c870be8a76bbead095318bbc7410c32f491c60d | 1,541 | py | Python | pokemon/migrations/0001_initial.py | bergran/pokemon_project_example | f6a406a80b99515f0e0ad5e64b0aa70046ad6fc5 | [
"MIT"
] | null | null | null | pokemon/migrations/0001_initial.py | bergran/pokemon_project_example | f6a406a80b99515f0e0ad5e64b0aa70046ad6fc5 | [
"MIT"
] | null | null | null | pokemon/migrations/0001_initial.py | bergran/pokemon_project_example | f6a406a80b99515f0e0ad5e64b0aa70046ad6fc5 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2022-02-13 14:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ability',
fields=[
... | 37.585366 | 169 | 0.587281 | 154 | 1,541 | 5.753247 | 0.383117 | 0.027088 | 0.08465 | 0.077878 | 0.504515 | 0.504515 | 0.504515 | 0.393905 | 0.393905 | 0.393905 | 0 | 0.021429 | 0.273199 | 1,541 | 40 | 170 | 38.525 | 0.769643 | 0.029202 | 0 | 0.515152 | 1 | 0 | 0.104418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c890c6deac2dd553e708d208e46c46e3f852f13 | 1,146 | py | Python | Contents/Libraries/Shared/json_tricks/__init__.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1,553 | 2015-11-09T02:17:06.000Z | 2022-03-31T20:24:52.000Z | Contents/Libraries/Shared/json_tricks/__init__.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 691 | 2015-11-05T21:32:26.000Z | 2022-03-17T10:52:45.000Z | Contents/Libraries/Shared/json_tricks/__init__.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | 162 | 2015-11-06T19:38:55.000Z | 2022-03-16T02:42:41.000Z |
from .utils import hashodict, NoNumpyException, NoPandasException, get_scalar_repr, encode_scalars_inplace
from .comment import strip_comment_line_with_symbol, strip_comments
from .encoders import TricksEncoder, json_date_time_encode, class_instance_encode, json_complex_encode, \
numeric_types_encode, ClassInstanceEn... | 45.84 | 123 | 0.836824 | 157 | 1,146 | 5.732484 | 0.420382 | 0.038889 | 0.04 | 0.053333 | 0.097778 | 0.071111 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0.108202 | 1,146 | 24 | 124 | 47.75 | 0.880626 | 0.286213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8c8cd13c45453571387d611695b5980d3457d27d | 6,136 | py | Python | tools/mo/unit_tests/mo/front/kaldi/loader/utils_test.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2021-04-20T08:14:51.000Z | 2021-04-20T08:14:51.000Z | tools/mo/unit_tests/mo/front/kaldi/loader/utils_test.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | tools/mo/unit_tests/mo/front/kaldi/loader/utils_test.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2021-07-14T07:40:50.000Z | 2021-07-27T01:40:03.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import io
import struct
import unittest
from openvino.tools.mo.front.kaldi.loader.utils import end_of_nnet_tag, end_of_component_tag, get_bool, get_uint16, get_uint32, \
get_uint64, read_binary_bool_token, read_binary_integer32_toke... | 49.088 | 129 | 0.703716 | 852 | 6,136 | 4.755869 | 0.146714 | 0.03998 | 0.054541 | 0.042201 | 0.572557 | 0.465202 | 0.426209 | 0.341313 | 0.277147 | 0.259131 | 0 | 0.024858 | 0.167373 | 6,136 | 124 | 130 | 49.483871 | 0.768252 | 0.012549 | 0 | 0.163265 | 0 | 0.020408 | 0.15142 | 0.04541 | 0 | 0 | 0 | 0 | 0.255102 | 1 | 0.204082 | false | 0 | 0.05102 | 0.020408 | 0.336735 | 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 |
8c8d283290298f0733360aff47f9041386e273d2 | 1,863 | py | Python | yeast/steps/summarize_step.py | iuga/Yeast | 8800c9df92121be5bbb89eaf30d800fdf274f260 | [
"MIT"
] | null | null | null | yeast/steps/summarize_step.py | iuga/Yeast | 8800c9df92121be5bbb89eaf30d800fdf274f260 | [
"MIT"
] | null | null | null | yeast/steps/summarize_step.py | iuga/Yeast | 8800c9df92121be5bbb89eaf30d800fdf274f260 | [
"MIT"
] | null | null | null | from pandas.core.groupby.generic import DataFrameGroupBy
from yeast.step import Step
from yeast.errors import YeastValidationError
class SummarizeStep(Step):
"""
Create one or more numeric variables summarizing the columns of an existing group created by
GroupByStep() resulting in one row in the output f... | 34.5 | 97 | 0.650564 | 215 | 1,863 | 5.562791 | 0.567442 | 0.0301 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254428 | 1,863 | 53 | 98 | 35.150943 | 0.861051 | 0.56146 | 0 | 0 | 0 | 0 | 0.07781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8c8ff3d8628faaf1931f4e39464a013387c15e38 | 4,326 | py | Python | examples/random_points_across_italy.py | sankalpsharmaa/geovoronoi | 3f2d0bf91710a9c53db9d856ae3d87d999102b89 | [
"Apache-2.0"
] | 93 | 2018-04-08T17:14:12.000Z | 2022-03-24T03:50:54.000Z | examples/random_points_across_italy.py | sankalpsharmaa/geovoronoi | 3f2d0bf91710a9c53db9d856ae3d87d999102b89 | [
"Apache-2.0"
] | 16 | 2018-05-24T18:57:59.000Z | 2022-03-17T03:28:02.000Z | examples/random_points_across_italy.py | sankalpsharmaa/geovoronoi | 3f2d0bf91710a9c53db9d856ae3d87d999102b89 | [
"Apache-2.0"
] | 22 | 2018-09-17T07:52:58.000Z | 2022-03-10T11:09:28.000Z | """
Example script that scatters random points across a country and generates the Voronoi regions for them. Both the regions
and their points will be plotted using the `plotting` sub-module of `geovoronoi`. This example will show the effect
of calculating the Voronoi regions separately per country sub-geometry (e.g. se... | 36.661017 | 120 | 0.732547 | 658 | 4,326 | 4.670213 | 0.332827 | 0.041002 | 0.022128 | 0.02343 | 0.211194 | 0.211194 | 0.211194 | 0.187764 | 0.187764 | 0.154572 | 0 | 0.008463 | 0.180536 | 4,326 | 117 | 121 | 36.974359 | 0.858392 | 0.395978 | 0 | 0.226415 | 1 | 0 | 0.176744 | 0.02907 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.132075 | 0.188679 | 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 |
8c9b1a90e4ec2226a52ca6c38d2cd1cd667308f9 | 5,154 | py | Python | python/dashboard/feed.py | splunk/splunk-examples-custom-endpoints | 59bc8c169a15a97ae9af7593009deb3cb976ea5f | [
"Apache-2.0"
] | 1 | 2020-06-09T17:40:25.000Z | 2020-06-09T17:40:25.000Z | python/dashboard/feed.py | splunk/splunk-examples-custom-endpoints | 59bc8c169a15a97ae9af7593009deb3cb976ea5f | [
"Apache-2.0"
] | 1 | 2020-04-28T14:21:42.000Z | 2020-04-28T14:21:42.000Z | python/dashboard/feed.py | splunk/splunk-examples-custom-endpoints | 59bc8c169a15a97ae9af7593009deb3cb976ea5f | [
"Apache-2.0"
] | 1 | 2020-06-09T18:24:21.000Z | 2020-06-09T18:24:21.000Z | #!/usr/bin/env python
#
# Copyright 2011-2015 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 27.126316 | 138 | 0.626698 | 668 | 5,154 | 4.772455 | 0.27994 | 0.026349 | 0.017566 | 0.025094 | 0.390213 | 0.374843 | 0.34473 | 0.318381 | 0.307716 | 0.307716 | 0 | 0.006115 | 0.238456 | 5,154 | 189 | 139 | 27.269841 | 0.806115 | 0.135817 | 0 | 0.5 | 0 | 0.02459 | 0.222498 | 0.010144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0.057377 | 0.090164 | 0 | 0.180328 | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8c9e8a5fc6b36178389b5151ab8d6e59b2856a7e | 1,795 | py | Python | mltoolkit/mlmo/scripts/delete_attrs_from_params.py | mancunian1792/FewSum | c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e | [
"MIT"
] | 28 | 2020-10-12T19:05:22.000Z | 2022-03-18T01:19:29.000Z | mltoolkit/mlmo/scripts/delete_attrs_from_params.py | mancunian1792/FewSum | c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e | [
"MIT"
] | 1 | 2022-01-30T01:52:59.000Z | 2022-02-19T08:04:54.000Z | mltoolkit/mlmo/scripts/delete_attrs_from_params.py | mancunian1792/FewSum | c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e | [
"MIT"
] | 7 | 2020-10-29T14:01:04.000Z | 2022-02-22T18:33:10.000Z | import argparse
import torch as T
from mltoolkit.mlutils.helpers.paths_and_files import safe_mkfdir
from mltoolkit.mlutils.helpers.logging_funcs import init_logger
from mltoolkit.mlmo.utils.constants.checkpoint import MODEL_PARAMS
from mltoolkit.mlutils.helpers.argparse import str2list, str2bool
import re
logger = ini... | 35.196078 | 80 | 0.680223 | 243 | 1,795 | 4.748971 | 0.399177 | 0.085789 | 0.058925 | 0.070191 | 0.181976 | 0.142114 | 0.058925 | 0.058925 | 0 | 0 | 0 | 0.003592 | 0.224513 | 1,795 | 50 | 81 | 35.9 | 0.825431 | 0.17493 | 0 | 0.0625 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.03125 | false | 0 | 0.21875 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ca2549cd17a44d68cd7e839ea562bf8cfce6cc2 | 4,051 | py | Python | pyheldenblatt/heldenblattcli.py | dbuse/pyheldenblatt | aa3061aec4376615b69dc9dac5c766e9b4081b9a | [
"Apache-2.0"
] | 1 | 2021-01-17T12:27:07.000Z | 2021-01-17T12:27:07.000Z | pyheldenblatt/heldenblattcli.py | dbuse/pyheldenblatt | aa3061aec4376615b69dc9dac5c766e9b4081b9a | [
"Apache-2.0"
] | null | null | null | pyheldenblatt/heldenblattcli.py | dbuse/pyheldenblatt | aa3061aec4376615b69dc9dac5c766e9b4081b9a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
TODOs:
- Schriftgröße via Parameter angeben
- Mehrere Talentblatt-Seiten bei zu vielen Talenten
- Berechnung der Leerzeilen berichtigen
-> manchmal fehlt am Ende eine
-> Bei sehr kleinen Schriftarten kommt es zu Aufhängern
"""
from __future__ import unicode_li... | 35.535088 | 114 | 0.691434 | 500 | 4,051 | 5.45 | 0.4 | 0.052477 | 0.024954 | 0.016147 | 0.063119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00521 | 0.19452 | 4,051 | 113 | 115 | 35.849558 | 0.829911 | 0.09726 | 0 | 0.026667 | 0 | 0 | 0.20258 | 0.018666 | 0 | 0 | 0 | 0.00885 | 0 | 1 | 0.053333 | false | 0 | 0.32 | 0 | 0.413333 | 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 |
8cae3cb5274c5df1e45f43374bf7468b72f0f956 | 446 | py | Python | vmraid/patches/v7_2/setup_custom_perms.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v7_2/setup_custom_perms.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | vmraid/patches/v7_2/setup_custom_perms.py | sowrisurya/vmraid | f833e00978019dad87af80b41279c0146c063ed5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import vmraid
from vmraid.permissions import setup_custom_perms
from vmraid.core.page.permission_manager.permission_manager import get_standard_permissions
from vmraid.utils.reset_doc import setup_perms_for
'''
Copy DocPerm to Custom DocPerm where permissions are set differently... | 31.857143 | 91 | 0.82287 | 67 | 446 | 5.223881 | 0.58209 | 0.085714 | 0.074286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007481 | 0.100897 | 446 | 13 | 92 | 34.307692 | 0.865337 | 0 | 0 | 0 | 0 | 0 | 0.018919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.625 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8cb2d50abf3c0595fdc547e5c7c9114a9d283b8c | 1,065 | py | Python | entity/Server.py | FAWC-bupt/Hotel-Air-Conditioning-Dispatching-System | c8febcae2f4bdba4aa0e308d6d415a7fe6628070 | [
"MIT"
] | 1 | 2022-03-24T07:49:05.000Z | 2022-03-24T07:49:05.000Z | entity/Server.py | FAWC-bupt/Hotel-Air-Conditioning-Dispatching-System | c8febcae2f4bdba4aa0e308d6d415a7fe6628070 | [
"MIT"
] | null | null | null | entity/Server.py | FAWC-bupt/Hotel-Air-Conditioning-Dispatching-System | c8febcae2f4bdba4aa0e308d6d415a7fe6628070 | [
"MIT"
] | null | null | null | import threading
from enum import IntEnum
class Mode(IntEnum):
Cold = 0
Hot = 1
class WindLevel(IntEnum):
NoWind = 0
Level_1 = 1
Level_2 = 2
Level_3 = 3
class Algorithm(IntEnum):
Priority = 0
RR = 1
class Server(object):
"""
服务器,是单例模式
"""
_instance_lock = threadi... | 18.362069 | 48 | 0.595305 | 121 | 1,065 | 4.958678 | 0.495868 | 0.066667 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027248 | 0.310798 | 1,065 | 57 | 49 | 18.684211 | 0.790191 | 0.008451 | 0 | 0.04878 | 0 | 0 | 0.008654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.878049 | 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 |
8cb3effcc69e571deedec322869b47d7d4822ae3 | 313 | py | Python | plugins/tools/visualInterpreter/examples/robotsCodeGeneration/reactionsStorage/WaitForTouchSensorBlockGenerator.py | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 39 | 2015-01-26T16:18:43.000Z | 2021-12-20T23:36:41.000Z | plugins/tools/visualInterpreter/examples/robotsCodeGeneration/reactionsStorage/WaitForTouchSensorBlockGenerator.py | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 1,248 | 2019-02-21T19:32:09.000Z | 2022-03-29T16:50:04.000Z | plugins/tools/visualInterpreter/examples/robotsCodeGeneration/reactionsStorage/WaitForTouchSensorBlockGenerator.py | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 58 | 2015-03-03T12:57:28.000Z | 2020-05-09T15:54:42.000Z | # Application condition
waitFor.id == max_used_id and not cur_node_is_processed
# Reaction
wait_for_touch_sensor_code = "while (!ecrobot_get_touch_sensor(NXT_PORT_S" + waitFor.Port + ")) {}\n"
code.append([wait_for_touch_sensor_code])
id_to_pos_in_code[waitFor.id] = len(code) - 1
cur_node_is_processed = True
| 28.454545 | 101 | 0.789137 | 52 | 313 | 4.269231 | 0.615385 | 0.148649 | 0.081081 | 0.162162 | 0.198198 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.102236 | 313 | 10 | 102 | 31.3 | 0.786477 | 0.095847 | 0 | 0 | 0 | 0 | 0.178571 | 0.132143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
8cb3fef95747b9d7c5586d4cef0ec826ed640496 | 1,869 | py | Python | test/python/transpiler/test_count_ops_longest_path_pass.py | TheGupta2012/qiskit-terra | 5ea6e9557655b144228c29d7099375f5d2c91120 | [
"Apache-2.0"
] | 1,599 | 2018-07-10T10:59:12.000Z | 2022-03-31T23:56:25.000Z | test/python/transpiler/test_count_ops_longest_path_pass.py | TheGupta2012/qiskit-terra | 5ea6e9557655b144228c29d7099375f5d2c91120 | [
"Apache-2.0"
] | 5,244 | 2018-07-10T06:20:13.000Z | 2022-03-31T22:18:48.000Z | test/python/transpiler/test_count_ops_longest_path_pass.py | TheGupta2012/qiskit-terra | 5ea6e9557655b144228c29d7099375f5d2c91120 | [
"Apache-2.0"
] | 1,409 | 2018-07-10T02:16:12.000Z | 2022-03-31T09:01:32.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | 30.145161 | 78 | 0.661851 | 255 | 1,869 | 4.709804 | 0.439216 | 0.014988 | 0.041632 | 0.029975 | 0.202331 | 0.202331 | 0.189842 | 0.133222 | 0.133222 | 0.09159 | 0 | 0.023578 | 0.228464 | 1,869 | 61 | 79 | 30.639344 | 0.809293 | 0.335474 | 0 | 0.290323 | 0 | 0 | 0.047739 | 0.036851 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.064516 | false | 0.258065 | 0.16129 | 0 | 0.258065 | 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 |
8cb5c056832bdaca92334cbd1614169bcb71ec99 | 1,155 | py | Python | tpdatasrc/tpgamefiles/scr/tpModifiers/sp_sticky_fingers.py | dolio/TemplePlus | 37446bb3d1fcbf460e611a4fcb2caff167e9ac08 | [
"MIT"
] | 69 | 2015-05-05T14:09:25.000Z | 2022-02-15T06:13:04.000Z | tpdatasrc/tpgamefiles/scr/tpModifiers/sp_sticky_fingers.py | anatoliy-savchak/TemplePlus | 50922bb14cc2d7dcf8fceeccf45c3b905c1b512f | [
"MIT"
] | 457 | 2015-05-01T22:07:45.000Z | 2022-03-31T02:19:10.000Z | tpdatasrc/tpgamefiles/scr/tpModifiers/sp_sticky_fingers.py | anatoliy-savchak/TemplePlus | 50922bb14cc2d7dcf8fceeccf45c3b905c1b512f | [
"MIT"
] | 25 | 2016-02-04T21:19:53.000Z | 2021-11-15T23:14:51.000Z | from templeplus.pymod import PythonModifier
from toee import *
import tpdp
from utilities import *
import spell_utils
print "Registering sp-Sticky Fingers"
def stickyFingersSpellSkillBonus(attachee, args, evt_obj):
bonusValue = 10 #Sticky Fingers is a flat +10 untyped bouns to Sleight of Hand checks
bonusType ... | 50.217391 | 106 | 0.838961 | 124 | 1,155 | 7.604839 | 0.58871 | 0.082715 | 0.114528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012334 | 0.087446 | 1,155 | 22 | 107 | 52.5 | 0.882353 | 0.10303 | 0 | 0 | 0 | 0 | 0.091965 | 0.033882 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8cb9de130b5de929c59b2f093009810439d7d57c | 6,329 | py | Python | tests/test_addanewtool.py | giatrakister/OpenBioC | 4a1c15d316a812e29ff99d9497f1bd165a1504fc | [
"BSD-3-Clause"
] | null | null | null | tests/test_addanewtool.py | giatrakister/OpenBioC | 4a1c15d316a812e29ff99d9497f1bd165a1504fc | [
"BSD-3-Clause"
] | null | null | null | tests/test_addanewtool.py | giatrakister/OpenBioC | 4a1c15d316a812e29ff99d9497f1bd165a1504fc | [
"BSD-3-Clause"
] | null | null | null | # Generated by Selenium IDE
import pytest
import time
import json
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWa... | 52.741667 | 123 | 0.68273 | 836 | 6,329 | 5.041866 | 0.236842 | 0.099644 | 0.093001 | 0.139502 | 0.554686 | 0.51293 | 0.459075 | 0.409727 | 0.334757 | 0.232503 | 0 | 0.033924 | 0.161637 | 6,329 | 119 | 124 | 53.184874 | 0.76046 | 0.342392 | 0 | 0.1875 | 1 | 0.0625 | 0.237534 | 0.087202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.015625 | 0.15625 | 0 | 0.21875 | 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 |
8cbb620a105efaf3eb81d3bd80928d39558ea20f | 1,594 | py | Python | examples/multimedia/mmimdb_MFM.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | examples/multimedia/mmimdb_MFM.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | examples/multimedia/mmimdb_MFM.py | TianhaoFu/MultiBench | b174a3187124d6f92be1ff3b487eef292f7883bb | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.getcwd())
import torch
from training_structures.Supervised_Learning import train, test
from objective_functions.recon import sigmloss1d
from objective_functions.objectives_for_supervised_learning import MFM_objective
from fusions.common_fusions import Concat
from datasets.imdb.... | 45.542857 | 167 | 0.793601 | 236 | 1,594 | 5.177966 | 0.427966 | 0.085925 | 0.03928 | 0.045827 | 0.061375 | 0.0491 | 0.0491 | 0.0491 | 0.0491 | 0.0491 | 0 | 0.04676 | 0.060853 | 1,594 | 34 | 168 | 46.882353 | 0.769539 | 0 | 0 | 0 | 0 | 0 | 0.069636 | 0.018193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8cbe5b4a826e70b9302a8451df3be3e6aac341b3 | 426 | py | Python | sudeste/cadastro/migrations/0016_auto_20191128_0514.py | danielcamilo13/sudeste | be877c8dec07cfca84ebdc15b275a58aa29af98a | [
"bzip2-1.0.6"
] | 1 | 2019-10-15T19:43:22.000Z | 2019-10-15T19:43:22.000Z | sudeste/cadastro/migrations/0016_auto_20191128_0514.py | danielcamilo13/sudeste | be877c8dec07cfca84ebdc15b275a58aa29af98a | [
"bzip2-1.0.6"
] | 6 | 2020-06-05T23:48:29.000Z | 2022-02-10T09:32:01.000Z | sudeste/cadastro/migrations/0016_auto_20191128_0514.py | danielcamilo13/sudeste | be877c8dec07cfca84ebdc15b275a58aa29af98a | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-28 08:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cadastro', '0015_auto_20191128_0455'),
]
operations = [
migrations.AlterField(
model_name='cacamba',
name='sttCacamb... | 22.421053 | 84 | 0.617371 | 46 | 426 | 5.608696 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099042 | 0.265258 | 426 | 18 | 85 | 23.666667 | 0.72524 | 0.105634 | 0 | 0 | 1 | 0 | 0.14248 | 0.060686 | 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 |
8cc6ab7478c5e461fe16249d7d626f7e098b5b49 | 6,708 | py | Python | src/command_modules/azure-cli-vm/tests/test_vm_actions.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-vm/tests/test_vm_actions.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-vm/tests/test_vm_actions.py | saurabsa/azure-cli-old | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 50.059701 | 172 | 0.659958 | 821 | 6,708 | 5.041413 | 0.247259 | 0.056535 | 0.047838 | 0.053153 | 0.529597 | 0.446001 | 0.401305 | 0.401305 | 0.319642 | 0.24402 | 0 | 0.019234 | 0.224955 | 6,708 | 133 | 173 | 50.43609 | 0.77688 | 0.112105 | 0 | 0.06383 | 0 | 0.053191 | 0.206397 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.085106 | false | 0.180851 | 0.06383 | 0 | 0.159574 | 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 |
8cc844a777d6bde7835bd81c19f16b8bb0c7b510 | 208 | py | Python | Ago-Dic-2019/DanielM/PracticaUno/4.6_OddNumbers.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2019/DanielM/PracticaUno/4.6_OddNumbers.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2019/DanielM/PracticaUno/4.6_OddNumbers.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | # 4-6. Odd Numbers: Use the third argument of the range() function to make a list
# of the odd numbers from 1 to 20. Use a for loop to print each number.
for i in range(1,21):
if i%2!=0:
print(i) | 34.666667 | 81 | 0.658654 | 44 | 208 | 3.113636 | 0.659091 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.25 | 208 | 6 | 82 | 34.666667 | 0.814103 | 0.716346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8cc9c7f502b6dd079bc1ad056ba31cda60263918 | 1,542 | py | Python | pyracmon/sql.py | sozu/py-pyracmon | 4a7789ae5432a3197c58ae194de4b8065bbc2846 | [
"MIT"
] | null | null | null | pyracmon/sql.py | sozu/py-pyracmon | 4a7789ae5432a3197c58ae194de4b8065bbc2846 | [
"MIT"
] | null | null | null | pyracmon/sql.py | sozu/py-pyracmon | 4a7789ae5432a3197c58ae194de4b8065bbc2846 | [
"MIT"
] | null | null | null | from string import digits, Template
from typing import *
from .marker import Marker
class Sql:
"""
Provides functionalities to render SQL string from the template containing placeholder markers.
SQL rendering is conform to the way of `string.Template` which replaces ``$`` prefixed variables with... | 32.125 | 118 | 0.609598 | 176 | 1,542 | 5.261364 | 0.443182 | 0.107991 | 0.051836 | 0.036717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00278 | 0.300259 | 1,542 | 47 | 119 | 32.808511 | 0.855422 | 0.376783 | 0 | 0.095238 | 0 | 0 | 0.002413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.619048 | 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 |
8cd0ede695cc5194c60364d8724fe426786eb7f7 | 17,573 | py | Python | third_party/rust_crates/vendor/unicode-normalization/scripts/unicode.py | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | third_party/rust_crates/vendor/unicode-normalization/scripts/unicode.py | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | third_party/rust_crates/vendor/unicode-normalization/scripts/unicode.py | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | #!/usr/bin/env python
#
# Copyright 2011-2018 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT lice... | 36.918067 | 109 | 0.594264 | 2,332 | 17,573 | 4.321184 | 0.188679 | 0.069068 | 0.033046 | 0.01687 | 0.311303 | 0.27141 | 0.247197 | 0.220204 | 0.203136 | 0.153518 | 0 | 0.013523 | 0.267797 | 17,573 | 475 | 110 | 36.995789 | 0.769643 | 0.099186 | 0 | 0.213592 | 0 | 0.003236 | 0.206047 | 0.02443 | 0 | 0 | 0.000716 | 0 | 0.022654 | 0 | null | null | 0 | 0.006472 | null | null | 0.006472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8cd0f4d41c5a11d1c365f2063289d744d5ff32ed | 711 | py | Python | postgresqleu/membership/forms.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 11 | 2020-08-20T11:16:02.000Z | 2022-03-12T23:25:04.000Z | postgresqleu/membership/forms.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 71 | 2019-11-18T10:11:22.000Z | 2022-03-27T16:12:57.000Z | postgresqleu/membership/forms.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 18 | 2019-11-18T09:56:31.000Z | 2022-01-08T03:16:43.000Z | from django import forms
from .models import Member, get_config
from .util import validate_country
class MemberForm(forms.ModelForm):
class Meta:
model = Member
fields = ('fullname', 'country', 'listed')
def clean_country(self):
if self.instance.country_exception:
# No co... | 29.625 | 142 | 0.704641 | 89 | 711 | 5.483146 | 0.606742 | 0.067623 | 0.092213 | 0.135246 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.201125 | 711 | 23 | 143 | 30.913043 | 0.852113 | 0.049226 | 0 | 0.142857 | 0 | 0 | 0.145401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8cd4d932d31d1bed6d66f689cab17b9eda7c0a8b | 1,714 | py | Python | apps/authentication/migrations/0001_initial.py | zedjarvis/ADVANCE-POINT-OF-SALE-SYSTEM | cb383fe5ac06391d6b7333a21bfaaa9c15423d4b | [
"MIT"
] | null | null | null | apps/authentication/migrations/0001_initial.py | zedjarvis/ADVANCE-POINT-OF-SALE-SYSTEM | cb383fe5ac06391d6b7333a21bfaaa9c15423d4b | [
"MIT"
] | null | null | null | apps/authentication/migrations/0001_initial.py | zedjarvis/ADVANCE-POINT-OF-SALE-SYSTEM | cb383fe5ac06391d6b7333a21bfaaa9c15423d4b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-12-09 10:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 42.85 | 145 | 0.611435 | 183 | 1,714 | 5.584699 | 0.453552 | 0.031311 | 0.041096 | 0.064579 | 0.277887 | 0.232877 | 0.232877 | 0.16047 | 0.16047 | 0.16047 | 0 | 0.016204 | 0.243874 | 1,714 | 39 | 146 | 43.948718 | 0.772377 | 0.026254 | 0 | 0.3125 | 1 | 0 | 0.083983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.21875 | 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 |
8cd91ad9a61a86974a32cd787e8a2d060f853c6d | 512 | py | Python | Ruby/migrations/0004_alter_user_cart_list.py | IHIMEKPEN/RubyStore | 1914dd8138a2aa5b63f5c1f611b02fab14802aa5 | [
"MIT"
] | null | null | null | Ruby/migrations/0004_alter_user_cart_list.py | IHIMEKPEN/RubyStore | 1914dd8138a2aa5b63f5c1f611b02fab14802aa5 | [
"MIT"
] | null | null | null | Ruby/migrations/0004_alter_user_cart_list.py | IHIMEKPEN/RubyStore | 1914dd8138a2aa5b63f5c1f611b02fab14802aa5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-17 13:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Ruby', '0003_auto_20211117_1334'),
]
operations = [
migrations.AlterField(
model_name='user',
... | 25.6 | 145 | 0.646484 | 62 | 512 | 5.225806 | 0.709677 | 0.074074 | 0.08642 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078481 | 0.228516 | 512 | 19 | 146 | 26.947368 | 0.741772 | 0.087891 | 0 | 0 | 1 | 0 | 0.122581 | 0.049462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8cd99ce8bf6d3ac5ff1a0d2409b1e7805a2ec4d0 | 6,081 | py | Python | gnd/tests/data.py | acdh-oeaw/django-gnd | 48e4d11bad0fb9ee11cc386d5f401480551e871c | [
"MIT"
] | null | null | null | gnd/tests/data.py | acdh-oeaw/django-gnd | 48e4d11bad0fb9ee11cc386d5f401480551e871c | [
"MIT"
] | null | null | null | gnd/tests/data.py | acdh-oeaw/django-gnd | 48e4d11bad0fb9ee11cc386d5f401480551e871c | [
"MIT"
] | null | null | null | MOEST = {
"professionOrOccupation": [{
"id": "https://d-nb.info/gnd/4040841-3",
"label": "Musiker"
}, {
"id": "https://d-nb.info/gnd/4012434-4",
"label": "Dirigent"
}],
"gender": [{
"id": "https://d-nb.info/standards/vocab/gnd/gender#male",
"label": "Männl... | 40.54 | 173 | 0.550896 | 611 | 6,081 | 5.471358 | 0.330606 | 0.032306 | 0.046066 | 0.050853 | 0.444511 | 0.431648 | 0.343105 | 0.253964 | 0.18606 | 0.18606 | 0 | 0.076451 | 0.249301 | 6,081 | 150 | 174 | 40.54 | 0.65586 | 0 | 0 | 0.221477 | 0 | 0.04698 | 0.635482 | 0.017264 | 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 | 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 |
8cea86752be5b8205cd7f5fd2b8957e96f153dea | 856 | py | Python | assignment-section-05/classification_model/__init__.py | RostekA/deploying-machine-learning-models | 8db5879d9a5e70bb7961d48633fd8bf5261833a0 | [
"BSD-3-Clause"
] | 1 | 2022-02-16T14:39:20.000Z | 2022-02-16T14:39:20.000Z | assignment-section-05/classification_model/__init__.py | RostekA/deploying-machine-learning-models | 8db5879d9a5e70bb7961d48633fd8bf5261833a0 | [
"BSD-3-Clause"
] | 1 | 2022-02-14T22:58:49.000Z | 2022-02-14T22:58:49.000Z | assignment-section-05/classification_model/__init__.py | RostekA/deploying-machine-learning-models | 8db5879d9a5e70bb7961d48633fd8bf5261833a0 | [
"BSD-3-Clause"
] | 1 | 2022-02-08T16:04:52.000Z | 2022-02-08T16:04:52.000Z | import logging
from classification_model.config.core import PACKAGE_ROOT, config
# It is strongly advised that you do not add any handlers other than
# NullHandler to your library’s loggers. This is because the configuration
# of handlers is the prerogative of the application developer who uses your
# library. The ap... | 47.555556 | 83 | 0.80257 | 126 | 856 | 5.365079 | 0.666667 | 0.032544 | 0.068047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001344 | 0.130841 | 856 | 17 | 84 | 50.352941 | 0.907258 | 0.665888 | 0 | 0 | 0 | 0 | 0.025362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8cede4e9e13c336de511c022abe53de635b97c91 | 2,982 | py | Python | bayesian_methods_for_hackers/convergence_to_single_data_point_ch03.py | noelevans/playground | da529e967a15bcb217fff091ac0ec5c4dc1821ce | [
"MIT"
] | 1 | 2015-04-28T20:36:57.000Z | 2015-04-28T20:36:57.000Z | bayesian_methods_for_hackers/convergence_to_single_data_point_ch03.py | noelevans/playground | da529e967a15bcb217fff091ac0ec5c4dc1821ce | [
"MIT"
] | 2 | 2021-02-03T21:05:54.000Z | 2021-03-23T09:25:43.000Z | bayesian_methods_for_hackers/convergence_to_single_data_point_ch03.py | noelevans/playground | da529e967a15bcb217fff091ac0ec5c4dc1821ce | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import numpy as np
from scipy import stats
from IPython.core.pylabtools import figsize
def main():
# create the observed data
# sample size of data we observe, try varying this
# (keep it less than 100 ;)
N = 15
# the true parameters, but of course we do not... | 34.674419 | 93 | 0.601274 | 486 | 2,982 | 3.574074 | 0.27572 | 0.018423 | 0.034542 | 0.018423 | 0.540587 | 0.533103 | 0.503166 | 0.455959 | 0.385723 | 0.328728 | 0 | 0.048716 | 0.24279 | 2,982 | 85 | 94 | 35.082353 | 0.720549 | 0.124413 | 0 | 0.344262 | 0 | 0 | 0.107651 | 0.008074 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.