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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d248f22bf3a6665bd8693c3c8d5beebc33a842fd | 1,308 | py | Python | svc_kube_vision_opencvplus/extras/deluge/test/parallel_test.py | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 3 | 2018-06-22T07:55:51.000Z | 2021-06-21T19:18:16.000Z | svc_kube_vision_opencvplus/extras/deluge/test/parallel_test.py | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | null | null | null | svc_kube_vision_opencvplus/extras/deluge/test/parallel_test.py | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 1 | 2020-11-04T04:56:50.000Z | 2020-11-04T04:56:50.000Z | #!/usr/bin/python
import inspect
import os
from multiprocessing import Pool
import parallel_2
from pert import py_pert
def RunFlowExternal(run_flow_config):
module_file = run_flow_config[0]
# in case the module file is pyc change it to py
if module_file[-1] == 'c':
module_file = module_file[0:-1]
c... | 20.761905 | 90 | 0.690367 | 176 | 1,308 | 4.715909 | 0.380682 | 0.096386 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.211009 | 1,308 | 62 | 91 | 21.096774 | 0.792636 | 0.048165 | 0 | 0 | 0 | 0 | 0.059533 | 0.040225 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.131579 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d24e25299c93d61d2ad3faef279d2c0e7555a938 | 1,821 | py | Python | testrunner.py | wangkexiong/flask4gae | dcefb49dce51be6b716352c1d3021fe8e501e5ff | [
"MIT",
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2016-08-17T04:35:45.000Z | 2016-08-17T04:35:45.000Z | testrunner.py | wangkexiong/flask4gae | dcefb49dce51be6b716352c1d3021fe8e501e5ff | [
"MIT",
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | testrunner.py | wangkexiong/flask4gae | dcefb49dce51be6b716352c1d3021fe8e501e5ff | [
"MIT",
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import optparse
import logging
import unittest2
USAGE = """%prog SDK_PATH
Run unit tests for App Engine apps.
SDK_PATH Path to the SDK installation"""
SOURCECODE_PATH = 'source'
TESTSCRIPT_PATH = 'testcase'
class LoggerStream(object):
"""
Fake file-like stream object... | 23.960526 | 76 | 0.644152 | 229 | 1,821 | 4.969432 | 0.445415 | 0.036907 | 0.036907 | 0.033392 | 0.029877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00951 | 0.249314 | 1,821 | 75 | 77 | 24.28 | 0.82297 | 0.062054 | 0 | 0 | 0 | 0 | 0.112694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d257eac89af9f42daafec679bda55ffd0abc2582 | 8,526 | py | Python | src/buildutil/target_rule.py | PatrickDropbox/abc | 2d27e5a7cb200de7645e4325d8d1f49335c1adba | [
"BSD-3-Clause"
] | null | null | null | src/buildutil/target_rule.py | PatrickDropbox/abc | 2d27e5a7cb200de7645e4325d8d1f49335c1adba | [
"BSD-3-Clause"
] | null | null | null | src/buildutil/target_rule.py | PatrickDropbox/abc | 2d27e5a7cb200de7645e4325d8d1f49335c1adba | [
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
from buildutil.config import (
DEFAULT_LOCATE_ORDER,
LOCATE_ARTIFACT_ORDER,
LOCATE_SOURCE_ORDER,
)
from buildutil.target_patterns import TargetPatterns
from buildutil.util import validate_pkg_path, validate_target_name
class TargetRule(object):
def __init__(
self,
... | 29.50173 | 80 | 0.685081 | 1,137 | 8,526 | 4.935796 | 0.206684 | 0.036172 | 0.021561 | 0.016037 | 0.179971 | 0.127762 | 0.096222 | 0.083749 | 0.068247 | 0.068247 | 0 | 0.000303 | 0.226953 | 8,526 | 288 | 81 | 29.604167 | 0.851161 | 0.089726 | 0 | 0.165746 | 0 | 0 | 0.038978 | 0 | 0 | 0 | 0 | 0 | 0.049724 | 0 | null | null | 0 | 0.027624 | null | null | 0.01105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d25f3a261762f2947269f0de7dd5c49da850a4ed | 1,853 | py | Python | degiroasync/webapi/__init__.py | OhMajesticLama/degiroasync | d0b5881909800f8b845649d43554f2e615fe2844 | [
"MIT"
] | 2 | 2022-03-25T21:57:43.000Z | 2022-03-27T13:19:06.000Z | degiroasync/webapi/__init__.py | OhMajesticLama/degiroasync | d0b5881909800f8b845649d43554f2e615fe2844 | [
"MIT"
] | null | null | null | degiroasync/webapi/__init__.py | OhMajesticLama/degiroasync | d0b5881909800f8b845649d43554f2e615fe2844 | [
"MIT"
] | 1 | 2022-03-27T16:39:14.000Z | 2022-03-27T16:39:14.000Z | """
A Python API close to Webtrader HTTP API
========================================
Async API for Degiro. This module is close to Degiro Web API structure:
responses are provided (almost) as-is with minimum abstraction
and verification.
For a higher level api, see `api` module.
Users should only import directly fr... | 28.953125 | 75 | 0.651916 | 216 | 1,853 | 5.296296 | 0.356481 | 0.102273 | 0.104021 | 0.104895 | 0.094406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287102 | 1,853 | 63 | 76 | 29.412698 | 0.866011 | 0.259039 | 0 | 0 | 0 | 0 | 0.012482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d261d82caf08d00200eff1903bc64e09a0cf15f9 | 55,224 | py | Python | tracing/tracing/extras/symbolizer/symbolize_trace.py | pavelfeldman/catapult | a62e07f8660650e000a8112c50bcb67258a201f2 | [
"BSD-3-Clause"
] | 1 | 2021-03-16T14:33:43.000Z | 2021-03-16T14:33:43.000Z | tracing/tracing/extras/symbolizer/symbolize_trace.py | hikecoder/catapult | a62e07f8660650e000a8112c50bcb67258a201f2 | [
"BSD-3-Clause"
] | null | null | null | tracing/tracing/extras/symbolizer/symbolize_trace.py | hikecoder/catapult | a62e07f8660650e000a8112c50bcb67258a201f2 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T23:44:40.000Z | 2021-03-14T23:44:40.000Z | #!/usr/bin/env python
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# pylint: disable=too-many-lines
"""
This script processes trace files and symbolizes stack frames generated by
Chrome's native heap pr... | 32.891007 | 92 | 0.657595 | 6,971 | 55,224 | 5.006599 | 0.130254 | 0.009856 | 0.017621 | 0.009799 | 0.243661 | 0.185553 | 0.15544 | 0.11504 | 0.091058 | 0.076989 | 0 | 0.006533 | 0.243336 | 55,224 | 1,678 | 93 | 32.910608 | 0.828699 | 0.064936 | 0 | 0.253099 | 0 | 0 | 0.087916 | 0.009834 | 0 | 0 | 0 | 0 | 0.007231 | 0 | null | null | 0.003099 | 0.017562 | null | null | 0.021694 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d264e024e694b1cc014ed387bbf5c8fa130fcc55 | 990 | py | Python | hardhat/recipes/lastpass_cli.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/lastpass_cli.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/lastpass_cli.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | from .base import GnuRecipe
class LastPassCliRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(LastPassCliRecipe, self).__init__(*args, **kwargs)
self.sha256 = '26c93ae610932139dacaff2e0f916c56' \
'28def48bb4129b4099101cf4e6c7c499'
self.na... | 36.666667 | 76 | 0.529293 | 91 | 990 | 5.571429 | 0.626374 | 0.039448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070901 | 0.316162 | 990 | 26 | 77 | 38.076923 | 0.677991 | 0 | 0 | 0 | 0 | 0 | 0.317172 | 0.142424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.173913 | 0.043478 | 0 | 0.130435 | 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 |
d26ced0949026a3fc7974f00ca8600caea7e670c | 8,326 | py | Python | Lib/distutils/archive_util.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/distutils/archive_util.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/distutils/archive_util.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """distutils.archive_util
Utility functions dla creating archive files (tarballs, zip files,
that sort of thing)."""
zaimportuj os
z warnings zaimportuj warn
zaimportuj sys
spróbuj:
zaimportuj zipfile
wyjąwszy ImportError:
zipfile = Nic
z distutils.errors zaimportuj DistutilsExecError
z distutils.spawn zai... | 33.437751 | 83 | 0.620106 | 1,058 | 8,326 | 4.771267 | 0.224008 | 0.022187 | 0.013867 | 0.011886 | 0.142036 | 0.114501 | 0.107369 | 0.107369 | 0.096276 | 0.061014 | 0 | 0.003835 | 0.279726 | 8,326 | 248 | 84 | 33.572581 | 0.837919 | 0.047442 | 0 | 0.251613 | 0 | 0 | 0.112023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | 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 |
d26eed18d5e3455d77ebcf4ff88a5f363144c430 | 5,474 | py | Python | supybot/plugins/QuoteGrabs/test.py | ekolis/ChancellorGerathIrc | f536c1901e743708101cb27249d0e395b8c0a493 | [
"BSD-3-Clause"
] | 1 | 2015-04-16T14:23:20.000Z | 2015-04-16T14:23:20.000Z | plugins/QuoteGrabs/test.py | kblin/supybot-gsoc | 656f42f8d6b3fe4544a5270e0dab816fd3603118 | [
"BSD-3-Clause"
] | null | null | null | plugins/QuoteGrabs/test.py | kblin/supybot-gsoc | 656f42f8d6b3fe4544a5270e0dab816fd3603118 | [
"BSD-3-Clause"
] | null | null | null | ###
# Copyright (c) 2004, Daniel DiPaolo
# Copyright (c) 2008, James Vega
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright not... | 45.616667 | 79 | 0.643223 | 603 | 5,474 | 5.839138 | 0.330017 | 0.086907 | 0.043738 | 0.065606 | 0.469753 | 0.45186 | 0.413235 | 0.318659 | 0.220108 | 0.220108 | 0 | 0.006153 | 0.257764 | 5,474 | 119 | 80 | 46 | 0.860448 | 0.323164 | 0 | 0.405405 | 0 | 0 | 0.186783 | 0.009011 | 0 | 0 | 0 | 0 | 0.445946 | 1 | 0.094595 | false | 0 | 0.013514 | 0 | 0.162162 | 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 |
d2709feff54be68cb0cd038e245cea0a0a7c8361 | 7,686 | py | Python | webapp/style.py | clnsmth/cite | d55201e33d487790a63c6a1d5dbf0c6145225493 | [
"Apache-2.0"
] | null | null | null | webapp/style.py | clnsmth/cite | d55201e33d487790a63c6a1d5dbf0c6145225493 | [
"Apache-2.0"
] | null | null | null | webapp/style.py | clnsmth/cite | d55201e33d487790a63c6a1d5dbf0c6145225493 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:Mod: style
:Synopsis:
Generates a stylized PASTA data package citation for the given style.
:Author:
servilla
:Created:
1/27/20
"""
import json
import daiquiri
import pendulum
from webapp.exceptions import StyleError
from webapp.utils import doi_url
f... | 29.448276 | 80 | 0.577283 | 884 | 7,686 | 4.911765 | 0.159502 | 0.048365 | 0.016122 | 0.019576 | 0.510364 | 0.417319 | 0.390143 | 0.366882 | 0.366882 | 0.352142 | 0 | 0.007415 | 0.263076 | 7,686 | 260 | 81 | 29.561538 | 0.759181 | 0.094978 | 0 | 0.52514 | 1 | 0 | 0.2091 | 0.053615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044693 | false | 0 | 0.039106 | 0 | 0.128492 | 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 |
d27c7dc5d633d0928a724a506aa075e2a4e308f0 | 4,068 | py | Python | src/lockstep/clients/invoicehistory_client.py | tspence/lockstep-sdk-python | 2f0fbcf583334714b106318f3948a1315863acbf | [
"MIT"
] | 1 | 2022-01-07T17:21:29.000Z | 2022-01-07T17:21:29.000Z | src/lockstep/clients/invoicehistory_client.py | tspence/lockstep-sdk-python | 2f0fbcf583334714b106318f3948a1315863acbf | [
"MIT"
] | 14 | 2022-01-13T19:58:35.000Z | 2022-02-14T20:50:49.000Z | src/lockstep/clients/invoicehistory_client.py | tspence/lockstep-sdk-python | 2f0fbcf583334714b106318f3948a1315863acbf | [
"MIT"
] | 5 | 2021-12-30T16:41:20.000Z | 2022-01-14T20:11:36.000Z | #
# Lockstep Platform SDK for Python
#
# (c) 2021-2022 Lockstep, Inc.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Lockstep Network <support@lockstep.io>
# @copyright 2021-2022 Lockstep, Inc.
# @link https://github.... | 46.227273 | 170 | 0.683137 | 482 | 4,068 | 5.719917 | 0.323651 | 0.03482 | 0.046427 | 0.039173 | 0.471527 | 0.471527 | 0.471527 | 0.471527 | 0.443961 | 0.443961 | 0 | 0.010929 | 0.235251 | 4,068 | 87 | 171 | 46.758621 | 0.875281 | 0.518682 | 0 | 0.363636 | 0 | 0 | 0.060436 | 0.034268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0 | 0.590909 | 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 |
d284f6b254fd2a97325bbed799ee2bc0e25a76be | 45,021 | py | Python | elixir/entity.py | peggygao1988/elixir | 47f4e6e999f3925546c27fb386b079654ee45f6e | [
"Apache-2.0"
] | 1 | 2015-08-25T14:24:17.000Z | 2015-08-25T14:24:17.000Z | elixir/entity.py | peggygao1988/elixir | 47f4e6e999f3925546c27fb386b079654ee45f6e | [
"Apache-2.0"
] | null | null | null | elixir/entity.py | peggygao1988/elixir | 47f4e6e999f3925546c27fb386b079654ee45f6e | [
"Apache-2.0"
] | null | null | null | '''
This module provides the ``Entity`` base class, as well as its metaclass
``EntityMeta``.
'''
from py23compat import sorted
import sys
import types
import warnings
from copy import deepcopy
import sqlalchemy
from sqlalchemy import Table, Column, Integer, desc, ForeignKey, and_, \
ForeignKe... | 38.056636 | 94 | 0.590769 | 5,280 | 45,021 | 4.881818 | 0.130303 | 0.013579 | 0.010863 | 0.006983 | 0.167675 | 0.115185 | 0.091054 | 0.057534 | 0.032899 | 0.027933 | 0 | 0.001521 | 0.328091 | 45,021 | 1,182 | 95 | 38.088832 | 0.850579 | 0.158215 | 0 | 0.183499 | 0 | 0 | 0.066779 | 0.003841 | 0 | 0 | 0 | 0.007614 | 0 | 0 | null | null | 0.001422 | 0.021337 | null | null | 0.004267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d2861dece61c928f27fbb4a9dc31df46f8e84b0b | 1,071 | py | Python | listing/tests/test_admin.py | praekelt/jmbo-listing | 9a6e35e34ed12382a0385ee6d737a3c652c4b3ac | [
"BSD-3-Clause"
] | null | null | null | listing/tests/test_admin.py | praekelt/jmbo-listing | 9a6e35e34ed12382a0385ee6d737a3c652c4b3ac | [
"BSD-3-Clause"
] | null | null | null | listing/tests/test_admin.py | praekelt/jmbo-listing | 9a6e35e34ed12382a0385ee6d737a3c652c4b3ac | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.test.client import Client
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
class AdminTestCase(TestCase):
@classmethod
def setUpTestData(cls):
super... | 28.945946 | 101 | 0.641457 | 119 | 1,071 | 5.697479 | 0.504202 | 0.073746 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.243697 | 1,071 | 36 | 102 | 29.75 | 0.82963 | 0.005602 | 0 | 0 | 0 | 0 | 0.071869 | 0.027721 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.107143 | false | 0.071429 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
96281a796d3c98d73eae8e3255d778be7f962e33 | 2,406 | py | Python | adafruit_magtag/wifi_module.py | FoamyGuy/Adafruit_CircuitPython_MagTag | f4ec7bdd0eb30804cbbfb968bf9f7f6d2beef362 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | adafruit_magtag/wifi_module.py | FoamyGuy/Adafruit_CircuitPython_MagTag | f4ec7bdd0eb30804cbbfb968bf9f7f6d2beef362 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | adafruit_magtag/wifi_module.py | FoamyGuy/Adafruit_CircuitPython_MagTag | f4ec7bdd0eb30804cbbfb968bf9f7f6d2beef362 | [
"Unlicense",
"MIT-0",
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
# SPDX-FileCopyrightText: Copyright (c) 2020 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_magtag.wifi_module`
===============================================================================... | 25.0625 | 100 | 0.635079 | 269 | 2,406 | 5.557621 | 0.442379 | 0.056187 | 0.028094 | 0.033445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013587 | 0.235245 | 2,406 | 95 | 101 | 25.326316 | 0.798913 | 0.496675 | 0 | 0.0625 | 0 | 0 | 0.068288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.0625 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
96289dcb5897decdc3e3b84e3ece3325f9b6ba07 | 6,552 | py | Python | docusign_esign/models/external_file.py | pivotal-energy-solutions/docusign-python-client | f3edd0b82e57999bc8848a63a0477712714ee437 | [
"MIT"
] | null | null | null | docusign_esign/models/external_file.py | pivotal-energy-solutions/docusign-python-client | f3edd0b82e57999bc8848a63a0477712714ee437 | [
"MIT"
] | null | null | null | docusign_esign/models/external_file.py | pivotal-energy-solutions/docusign-python-client | f3edd0b82e57999bc8848a63a0477712714ee437 | [
"MIT"
] | 1 | 2021-04-26T20:52:45.000Z | 2021-04-26T20:52:45.000Z | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from ppr... | 22.060606 | 126 | 0.498474 | 700 | 6,552 | 4.577143 | 0.172857 | 0.059925 | 0.179775 | 0.057428 | 0.387016 | 0.228464 | 0.156055 | 0.043695 | 0.021223 | 0 | 0 | 0.001282 | 0.404915 | 6,552 | 296 | 127 | 22.135135 | 0.820467 | 0.358059 | 0 | 0.238532 | 0 | 0 | 0.044486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201835 | false | 0 | 0.027523 | 0 | 0.357798 | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
962b68c174e6446fef90db0ce4dba17dafcf5392 | 1,154 | py | Python | h/emails/signup.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 2 | 2021-11-07T23:14:54.000Z | 2021-11-17T10:11:55.000Z | h/emails/signup.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 16 | 2018-03-14T21:23:46.000Z | 2019-04-29T18:55:28.000Z | h/emails/signup.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 1 | 2021-03-12T09:45:04.000Z | 2021-03-12T09:45:04.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from pyramid.renderers import render
from h.i18n import TranslationString as _
def generate(request, id, email, activation_code):
"""
Generate an email for a user signup.
:param request: the current request
:type request: pyramid.requ... | 28.146341 | 75 | 0.602253 | 130 | 1,154 | 5.246154 | 0.453846 | 0.102639 | 0.029326 | 0.032258 | 0.082111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.308492 | 1,154 | 40 | 76 | 28.85 | 0.847118 | 0.343154 | 0 | 0.235294 | 1 | 0 | 0.172805 | 0.103399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
962baa1e4134f653f27bc5e86da072d2c8363d1a | 10,300 | py | Python | Mail sender/send_mail.py | angryfoxx/PyQt-Project | 8ca7598ba4c8c7f0fb02574984c627d2c4f48972 | [
"MIT"
] | 2 | 2021-11-15T08:19:56.000Z | 2021-11-17T13:16:12.000Z | Mail sender/send_mail.py | angryfoxx/PyQt-Project | 8ca7598ba4c8c7f0fb02574984c627d2c4f48972 | [
"MIT"
] | null | null | null | Mail sender/send_mail.py | angryfoxx/PyQt-Project | 8ca7598ba4c8c7f0fb02574984c627d2c4f48972 | [
"MIT"
] | 2 | 2022-03-04T13:20:17.000Z | 2022-03-04T18:38:03.000Z | __author__ = "FOX"
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import os
import sys
from PyQt5.QtWidgets import QWidget,QApplication,QVBoxLayout,QHBoxLayout,QTextEdit,QLabel,QPushButton,QFileDialog,QMainWindow,QLineEdit,qApp
from PyQt5.QtCore import Qt,QDateTime
... | 36.140351 | 202 | 0.611359 | 1,185 | 10,300 | 5.15865 | 0.23038 | 0.047113 | 0.028791 | 0.029445 | 0.322755 | 0.205955 | 0.158024 | 0.046295 | 0.022248 | 0.022248 | 0 | 0.016978 | 0.268058 | 10,300 | 284 | 203 | 36.267606 | 0.793872 | 0.007282 | 0 | 0.223176 | 0 | 0.004292 | 0.113078 | 0.037073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077253 | false | 0.06867 | 0.034335 | 0 | 0.128755 | 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 |
962da21b792acd7f5c92ce0bff45f1cfeefcac9a | 7,916 | py | Python | ssbm_gym/state_manager.py | Gurvan/ssbm_gym | f7f95ddd695c8cf0cc55eef865fcb770290a9b68 | [
"MIT"
] | 20 | 2019-10-02T22:09:55.000Z | 2021-12-22T09:58:18.000Z | ssbm_gym/state_manager.py | CornellDataScience/ssbm-gym | 65d49f401da3cfadc18142823360d6948f21bf36 | [
"MIT"
] | 2 | 2020-02-14T08:52:00.000Z | 2021-01-06T23:29:22.000Z | ssbm_gym/state_manager.py | CornellDataScience/ssbm-gym | 65d49f401da3cfadc18142823360d6948f21bf36 | [
"MIT"
] | 5 | 2019-12-10T03:09:24.000Z | 2022-03-12T20:54:12.000Z | import struct
import attr
from . import fields
def generic_wrapper(value, wrapper, default):
if wrapper is not None:
try:
value = wrapper(value)
except ValueError:
value = default
return value
intStruct = struct.Struct('>i')
byte_mask = 0xFF
short_mask = 0xFFFF
int_mas... | 35.657658 | 122 | 0.685574 | 978 | 7,916 | 5.332311 | 0.266871 | 0.036242 | 0.06443 | 0.048322 | 0.21093 | 0.125983 | 0.06443 | 0.06443 | 0.06443 | 0.06443 | 0 | 0.039513 | 0.191132 | 7,916 | 221 | 123 | 35.819005 | 0.774949 | 0.152602 | 0 | 0.144928 | 0 | 0 | 0.085823 | 0.003799 | 0 | 0 | 0.016405 | 0.013575 | 0.007246 | 1 | 0.086957 | false | 0 | 0.021739 | 0.007246 | 0.246377 | 0.007246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9633e95a78dae5156e4822ebbcb8afd2ef46e92e | 1,897 | py | Python | day29_tkinter_password_manager/gui_view_grid.py | frnkvsk/python100days | 70d607ca58a526f0d66544ed65405b2425718108 | [
"Unlicense"
] | null | null | null | day29_tkinter_password_manager/gui_view_grid.py | frnkvsk/python100days | 70d607ca58a526f0d66544ed65405b2425718108 | [
"Unlicense"
] | null | null | null | day29_tkinter_password_manager/gui_view_grid.py | frnkvsk/python100days | 70d607ca58a526f0d66544ed65405b2425718108 | [
"Unlicense"
] | null | null | null | from tkinter import *
# ---------------------------- CONSTANTS ------------------------------- #
FONT = ("Arial", 12, 'bold')
# ---------------------------- UI SETUP ------------------------------- #
class GuiView:
def __init__(self, search, generate_password, save):
self.window = Tk()
... | 42.155556 | 101 | 0.600422 | 243 | 1,897 | 4.576132 | 0.27572 | 0.089928 | 0.080935 | 0.06295 | 0.186151 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041972 | 0.208751 | 1,897 | 45 | 102 | 42.155556 | 0.698867 | 0.074328 | 0 | 0 | 0 | 0 | 0.061511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.21875 | 0.03125 | 0 | 0.09375 | 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 |
96360929abbd4b5cc517a7a915e4a57c9a753e4f | 528 | py | Python | setup.py | chrsbats/similarities | 17e24c8948214e9095e3102673e8d27434a6fa48 | [
"MIT"
] | 5 | 2015-05-07T07:04:45.000Z | 2018-09-08T04:35:55.000Z | setup.py | chrsbats/similarities | 17e24c8948214e9095e3102673e8d27434a6fa48 | [
"MIT"
] | null | null | null | setup.py | chrsbats/similarities | 17e24c8948214e9095e3102673e8d27434a6fa48 | [
"MIT"
] | 2 | 2016-08-09T03:44:23.000Z | 2019-02-07T06:55:37.000Z | from distutils.core import setup
setup(
name='similarities',
version='0.1',
author='C Bates',
author_email='chrsbats@gmail.com',
packages=['similarities'],
scripts=[],
url='https://github.com/chrsbats/similarities',
license='LICENSE.TXT',
description='A collection of similarity metr... | 27.789474 | 111 | 0.668561 | 62 | 528 | 5.645161 | 0.758065 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016471 | 0.195076 | 528 | 18 | 112 | 29.333333 | 0.807059 | 0 | 0 | 0 | 0 | 0 | 0.49053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
9637fd8b315368d9e45e8ae1c4310218f134c639 | 3,580 | py | Python | pychron/pipeline/tasks/tree_node.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | pychron/pipeline/tasks/tree_node.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | pychron/pipeline/tasks/tree_node.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | # ===============================================================================
# Copyright 2015 Jake Ross
#
# 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... | 25.571429 | 81 | 0.584637 | 381 | 3,580 | 5.401575 | 0.396325 | 0.054422 | 0.116618 | 0.021866 | 0.140428 | 0.078717 | 0.037901 | 0.037901 | 0.037901 | 0.037901 | 0 | 0.007994 | 0.266201 | 3,580 | 139 | 82 | 25.755396 | 0.775409 | 0.268994 | 0 | 0.307692 | 0 | 0 | 0.049364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.025641 | 0.089744 | 0 | 0.525641 | 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 |
96390dc6e9ef610fd35fda5557b0efb291623bb8 | 3,611 | py | Python | pyranha/foreground.py | bthorne93/pyranha | 3803b2e87129906c018e20876ba25c0e097d6c25 | [
"MIT"
] | 1 | 2018-10-23T10:39:44.000Z | 2018-10-23T10:39:44.000Z | pyranha/foreground.py | bthorne93/pyranha | 3803b2e87129906c018e20876ba25c0e097d6c25 | [
"MIT"
] | null | null | null | pyranha/foreground.py | bthorne93/pyranha | 3803b2e87129906c018e20876ba25c0e097d6c25 | [
"MIT"
] | null | null | null | """
.. module:: foreground
:platform: Unix
:synopsis: functions describing behaviour of foreground spectra.
.. moduleauthor: Ben Thorne <ben.thorne@physics.ox.ac.uk>
"""
import numpy as np
def BB_scaling(nu, nu_0, T):
"""Blackbody scaling factor from frequency nu, to frequency nu_0.
Parameters
---... | 28.210938 | 75 | 0.598172 | 518 | 3,611 | 3.996139 | 0.220077 | 0.011594 | 0.034783 | 0.050242 | 0.411594 | 0.293237 | 0.215942 | 0.190821 | 0.170048 | 0.170048 | 0 | 0.020147 | 0.28524 | 3,611 | 127 | 76 | 28.433071 | 0.781867 | 0.667405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.473684 | 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 |
963fd5e1a74e3f484feb0f61dcd1fd8e99551f01 | 1,810 | py | Python | example/migrations/0002_article_category_tag.py | ayumuhack/django-boost | bf4358cd219934bffa264bf3e3d10e2acfb77ad6 | [
"MIT"
] | 25 | 2019-05-23T11:19:18.000Z | 2022-02-19T15:28:09.000Z | example/migrations/0002_article_category_tag.py | ayumuhack/django-boost | bf4358cd219934bffa264bf3e3d10e2acfb77ad6 | [
"MIT"
] | 49 | 2019-09-17T08:40:22.000Z | 2022-03-02T14:08:27.000Z | example/migrations/0002_article_category_tag.py | ayumuhack/django-boost | bf4358cd219934bffa264bf3e3d10e2acfb77ad6 | [
"MIT"
] | 4 | 2019-09-17T08:16:55.000Z | 2020-08-24T09:33:16.000Z | # Generated by Django 2.2.3 on 2019-08-18 08:54
from django.db import migrations, models
import django.db.models.deletion
import django_boost.models.fields
import uuid
class Migration(migrations.Migration):
dependencies = [
('example', '0001_initial'),
]
operations = [
migrations.Create... | 37.708333 | 117 | 0.571271 | 179 | 1,810 | 5.642458 | 0.418994 | 0.035644 | 0.074257 | 0.068317 | 0.29901 | 0.215842 | 0.215842 | 0.215842 | 0.215842 | 0.215842 | 0 | 0.021756 | 0.28895 | 1,810 | 47 | 118 | 38.510638 | 0.763015 | 0.024862 | 0 | 0.390244 | 1 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.170732 | 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 |
964170006d1532f247efcd0d3eda3cce87faae83 | 4,552 | py | Python | examples/ppa_1998/ppa_python/fesc.py | gitathrun/pdq-qnm-pkg | 410e6ff6def503bc579e50ea471b83061e99a0fe | [
"MIT"
] | 1 | 2018-03-12T12:27:18.000Z | 2018-03-12T12:27:18.000Z | examples/ppa_1998/ppa_python/fesc.py | gitathrun/pdq-qnm-pkg | 410e6ff6def503bc579e50ea471b83061e99a0fe | [
"MIT"
] | null | null | null | examples/ppa_1998/ppa_python/fesc.py | gitathrun/pdq-qnm-pkg | 410e6ff6def503bc579e50ea471b83061e99a0fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###############################################################################
# Copyright (C) 1994 - 2009, Performance Dynamics Company #
# #
# This software is licensed as described in the file COPY... | 30.346667 | 79 | 0.420694 | 522 | 4,552 | 3.641762 | 0.367816 | 0.012625 | 0.02525 | 0.018937 | 0.130458 | 0.122041 | 0.079958 | 0.079958 | 0.024198 | 0.024198 | 0 | 0.027314 | 0.276142 | 4,552 | 149 | 80 | 30.550336 | 0.549621 | 0.603032 | 0 | 0.098039 | 0 | 0 | 0.104962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019608 | null | null | 0.156863 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96448a97f28738721106704df4f4864da44d59fc | 1,127 | py | Python | config.py | jwj2002/flask-sqlafixtures | dccada283c9d703969d4d0314d9eabb562c91678 | [
"MIT"
] | null | null | null | config.py | jwj2002/flask-sqlafixtures | dccada283c9d703969d4d0314d9eabb562c91678 | [
"MIT"
] | 2 | 2020-04-27T04:15:19.000Z | 2020-04-27T04:19:09.000Z | config.py | jwj2002/Flask-SQLAFixtures | dccada283c9d703969d4d0314d9eabb562c91678 | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
"""Base configuration."""
SECRET_KEY = os.environ.get("SECRET_KEY") or "secret_key"
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = None # added to supress warning during testing.
SQLAFIXTURES_... | 25.613636 | 78 | 0.686779 | 126 | 1,127 | 5.920635 | 0.436508 | 0.040214 | 0.112601 | 0.068365 | 0.245308 | 0.193029 | 0.193029 | 0.193029 | 0.193029 | 0.193029 | 0 | 0 | 0.187223 | 1,127 | 43 | 79 | 26.209302 | 0.81441 | 0.121562 | 0 | 0.230769 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.807692 | 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 |
9644bd1c73a0c23bdbe95482365d701dc65516eb | 678 | py | Python | typeidea/blog/migrations/0004_auto_20200620_1930.py | MaoningGuan/typeidea | 5da0a02879ecb16aaae2a27c7cd20262d31bc8be | [
"MIT"
] | null | null | null | typeidea/blog/migrations/0004_auto_20200620_1930.py | MaoningGuan/typeidea | 5da0a02879ecb16aaae2a27c7cd20262d31bc8be | [
"MIT"
] | null | null | null | typeidea/blog/migrations/0004_auto_20200620_1930.py | MaoningGuan/typeidea | 5da0a02879ecb16aaae2a27c7cd20262d31bc8be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-06-20 11:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_post_content_html'),
]
operations = [
migrations.AlterField(
... | 26.076923 | 95 | 0.610619 | 71 | 678 | 5.661972 | 0.619718 | 0.099502 | 0.124378 | 0.144279 | 0.502488 | 0.502488 | 0.318408 | 0.318408 | 0.318408 | 0 | 0 | 0.054108 | 0.264012 | 678 | 25 | 96 | 27.12 | 0.751503 | 0.10177 | 0 | 0.333333 | 1 | 0 | 0.130363 | 0.070957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9647b3626cea612f0e17dcab51577ef0a61185fd | 4,527 | py | Python | test/test_patch.py | pdreiter/BugZoo | e164ee67ff8bd3addfcc87b5e38ff1774992196b | [
"MIT"
] | 53 | 2017-12-02T03:22:06.000Z | 2022-03-10T22:20:52.000Z | test/test_patch.py | pdreiter/BugZoo | e164ee67ff8bd3addfcc87b5e38ff1774992196b | [
"MIT"
] | 145 | 2017-11-29T23:23:06.000Z | 2020-09-17T22:17:44.000Z | test/test_patch.py | pdreiter/BugZoo | e164ee67ff8bd3addfcc87b5e38ff1774992196b | [
"MIT"
] | 8 | 2018-06-26T17:58:49.000Z | 2021-09-07T14:03:41.000Z | #!/usr/bin/env python
import unittest
import bugzoo
from bugzoo.patch import Hunk, FilePatch, Patch
from bugzoo.util import dedent
class HunkTestCase(unittest.TestCase):
def test_read_next(self):
from_s = """
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The... | 29.019231 | 118 | 0.490612 | 569 | 4,527 | 3.803163 | 0.27065 | 0.0439 | 0.027726 | 0.027726 | 0.503235 | 0.483826 | 0.468115 | 0.468115 | 0.440388 | 0.407579 | 0 | 0.057595 | 0.344157 | 4,527 | 155 | 119 | 29.206452 | 0.67127 | 0.010161 | 0 | 0.535433 | 0 | 0.007874 | 0.64367 | 0.048448 | 0 | 0 | 0 | 0 | 0.062992 | 1 | 0.023622 | false | 0 | 0.031496 | 0 | 0.07874 | 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 |
9647e196b1d9a4ab2a405d01b330959a40810df4 | 1,247 | py | Python | RNN/data.py | imhgchoi/pytorch_implementations | e6add9991b23604a8ef1b4a34391f3014db6bbbd | [
"MIT"
] | 3 | 2021-01-16T13:33:15.000Z | 2021-12-04T12:06:05.000Z | RNN/data.py | imhgchoi/pytorch_implementations | e6add9991b23604a8ef1b4a34391f3014db6bbbd | [
"MIT"
] | null | null | null | RNN/data.py | imhgchoi/pytorch_implementations | e6add9991b23604a8ef1b4a34391f3014db6bbbd | [
"MIT"
] | 1 | 2021-04-25T13:37:03.000Z | 2021-04-25T13:37:03.000Z | import pandas as pd
import torch as T
class Data:
"""
Here, we generate input data with 120 time steps, which looks into the future of 30 days.
That is, with the past 120-day data, we attempt to predict whether the return of stock will increase or decrease
after 30 days
"""
def __init_... | 34.638889 | 117 | 0.59182 | 180 | 1,247 | 3.988889 | 0.422222 | 0.044568 | 0.066852 | 0.044568 | 0.089136 | 0.089136 | 0.089136 | 0.089136 | 0 | 0 | 0 | 0.030928 | 0.29992 | 1,247 | 36 | 118 | 34.638889 | 0.791523 | 0.173216 | 0 | 0 | 1 | 0 | 0.026721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.115385 | 0.038462 | 0.423077 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
964b3b451969a98a56a20a254dedf004128f200e | 3,613 | py | Python | kubeflow/fairing/builders/cluster/cos_context.py | suomitekai/fairing | 9ca6a1138529b3f0b21979d62c7cb1f303bc52e0 | [
"Apache-2.0"
] | 334 | 2018-09-03T23:10:02.000Z | 2022-03-07T23:12:24.000Z | kubeflow/fairing/builders/cluster/cos_context.py | suomitekai/fairing | 9ca6a1138529b3f0b21979d62c7cb1f303bc52e0 | [
"Apache-2.0"
] | 562 | 2018-09-03T21:33:42.000Z | 2022-03-29T12:47:43.000Z | kubeflow/fairing/builders/cluster/cos_context.py | suomitekai/fairing | 9ca6a1138529b3f0b21979d62c7cb1f303bc52e0 | [
"Apache-2.0"
] | 160 | 2018-11-06T17:55:32.000Z | 2022-02-15T09:59:10.000Z | from kubernetes import client
from kubeflow.fairing.builders.cluster.context_source import ContextSourceInterface
from kubeflow.fairing.cloud import ibm_cloud
from kubeflow.fairing import utils
from kubeflow.fairing.constants import constants
class COSContextSource(ContextSourceInterface):
"""
IBM Cloud Object... | 40.144444 | 86 | 0.548851 | 342 | 3,613 | 5.549708 | 0.327485 | 0.071128 | 0.051633 | 0.028451 | 0.11117 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.369776 | 3,613 | 89 | 87 | 40.595506 | 0.828722 | 0.138666 | 0 | 0.03125 | 0 | 0 | 0.070216 | 0.014642 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.078125 | false | 0.015625 | 0.078125 | 0 | 0.203125 | 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 |
9650c4b24a5642f78c1bc40738ca1337fe2708b0 | 11,706 | py | Python | examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur_logging_pb2.py | stolk/bullet3 | 41a0d72759a47ef2df986b0bfe56a03e22516123 | [
"Zlib"
] | 158 | 2016-11-17T19:37:51.000Z | 2022-03-21T19:57:55.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur_logging_pb2.py | stolk/bullet3 | 41a0d72759a47ef2df986b0bfe56a03e22516123 | [
"Zlib"
] | 94 | 2016-11-18T09:55:57.000Z | 2021-01-14T08:50:40.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur_logging_pb2.py | stolk/bullet3 | 41a0d72759a47ef2df986b0bfe56a03e22516123 | [
"Zlib"
] | 51 | 2017-05-24T10:20:25.000Z | 2022-03-17T15:07:02.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: minitaur_logging.proto
import sys
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0, parentdir)
_b = sys.version_i... | 35.472727 | 980 | 0.642149 | 1,181 | 11,706 | 6.086367 | 0.154107 | 0.040067 | 0.084725 | 0.108097 | 0.65985 | 0.612966 | 0.575125 | 0.570117 | 0.458959 | 0.420701 | 0 | 0.034895 | 0.263113 | 11,706 | 329 | 981 | 35.580547 | 0.7984 | 0.039894 | 0 | 0.698052 | 1 | 0.003247 | 0.220817 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029221 | 0 | 0.029221 | 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 |
9654930a68efa45657b1ec295e00120561879130 | 506 | py | Python | 07generators.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | 07generators.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null | 07generators.py | arunkumarang/python | 1960e285dfe2ef54d2e3ab37584bfef8b24ecca9 | [
"Apache-2.0"
] | null | null | null |
import sys
def main():
print('Inside main')
n = 5
#a = [0] * n
#print(a)
#
#print('')
#a = [0 for i in range(5)]
#print(a)
ans = [i ** 2 for i in range(1, n+1)]
print(ans)
from random import randrange
n = 10
randval = [randran... | 15.8125 | 50 | 0.44664 | 70 | 506 | 3.114286 | 0.385714 | 0.110092 | 0.110092 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042763 | 0.399209 | 506 | 32 | 51 | 15.8125 | 0.674342 | 0.219368 | 0 | 0 | 0 | 0 | 0.053371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.230769 | 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 |
9655c55c80a4b65cbb69c0231d62444ac88c751d | 539 | py | Python | functions.py | joeysal/astr-119-hw-2 | cb63f577370e5835c8ae027e624ad2459e71c3cb | [
"MIT"
] | null | null | null | functions.py | joeysal/astr-119-hw-2 | cb63f577370e5835c8ae027e624ad2459e71c3cb | [
"MIT"
] | 1 | 2020-10-11T23:17:55.000Z | 2020-10-17T01:03:17.000Z | functions.py | joeysal/astr-119-hw-2 | cb63f577370e5835c8ae027e624ad2459e71c3cb | [
"MIT"
] | null | null | null | import numpy as np
imprt sys
#Define a fujctio that returns a vule
def expo(x):
return np.exp(x) #return the np e^x funtion
#define subroutine that does not return a value
def show_expo(n):
for i in range(n):
print(expo(float(i))) #call the expo func
#define our main function
def main():
n = 10
#check if... | 19.962963 | 59 | 0.693878 | 103 | 539 | 3.533981 | 0.563107 | 0.065934 | 0.049451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009324 | 0.204082 | 539 | 27 | 60 | 19.962963 | 0.839161 | 0.504638 | 0 | 0 | 0 | 0 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96577f3ec5b10eedaacb09a829f62f9921d7e253 | 557 | py | Python | app.py | GuilhermeSenna/youtube-thumbnail-downloader | fb515a18b95e50ee64b78139c07db7119e7aca10 | [
"MIT"
] | 2 | 2021-07-01T01:57:41.000Z | 2022-03-20T01:48:16.000Z | app.py | GuilhermeSenna/youtube-thumbnail-downloader | fb515a18b95e50ee64b78139c07db7119e7aca10 | [
"MIT"
] | 1 | 2021-06-30T05:54:36.000Z | 2021-07-03T00:42:51.000Z | app.py | GuilhermeSenna/youtube-thumbnail-downloader | fb515a18b95e50ee64b78139c07db7119e7aca10 | [
"MIT"
] | 1 | 2021-06-06T02:12:41.000Z | 2021-06-06T02:12:41.000Z | import streamlit as st
st.title("Youtube Thumbnail Downloader")
st.text('Enter a Youtube Video Complete URL whose thumbnail you would like to download')
url = st.text_input(label = 'Enter a Youtube Video Complete URL')
if '&' in session_state.url:
id = session_state.url[session_state.url.find('=') + 1:session_s... | 29.315789 | 88 | 0.718133 | 87 | 557 | 4.494253 | 0.528736 | 0.184143 | 0.230179 | 0.14578 | 0.337596 | 0.337596 | 0.189258 | 0.189258 | 0.189258 | 0 | 0 | 0.004132 | 0.131059 | 557 | 18 | 89 | 30.944444 | 0.803719 | 0 | 0 | 0 | 0 | 0 | 0.432675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
965793343781354d56deaccb50797f72d2389231 | 1,134 | py | Python | app/views/demo1.py | arpitbbhayani/editor-demo | 8c266bd36b6cf19dd9cafdbd67ed51e1963f7192 | [
"MIT"
] | 1 | 2020-05-07T22:02:30.000Z | 2020-05-07T22:02:30.000Z | app/views/demo1.py | arpitbbhayani/editor-demo | 8c266bd36b6cf19dd9cafdbd67ed51e1963f7192 | [
"MIT"
] | null | null | null | app/views/demo1.py | arpitbbhayani/editor-demo | 8c266bd36b6cf19dd9cafdbd67ed51e1963f7192 | [
"MIT"
] | null | null | null | from flask import Blueprint
from flask import render_template, jsonify, request, redirect, url_for
mod = Blueprint('demo1', __name__, )
@mod.route('/', methods=["GET", "POST"])
def index():
return redirect(url_for('demo1.editor'))
@mod.route('/editor', methods=["GET", "POST"])
def editor():
return render_t... | 23.142857 | 70 | 0.624339 | 141 | 1,134 | 4.950355 | 0.361702 | 0.045845 | 0.080229 | 0.097421 | 0.260745 | 0.183381 | 0.097421 | 0.097421 | 0 | 0 | 0 | 0.020525 | 0.226631 | 1,134 | 48 | 71 | 23.625 | 0.775371 | 0 | 0 | 0.294118 | 0 | 0 | 0.173721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.088235 | 0.058824 | 0.058824 | 0.441176 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
965dd5e7c0c75ea3c3d0266320d4946b9a38e3f6 | 11,277 | py | Python | sdk/python/pulumi_azure_native/insights/v20201005preview/get_web_test.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/insights/v20201005preview/get_web_test.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/insights/v20201005preview/get_web_test.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 37.465116 | 342 | 0.647867 | 1,287 | 11,277 | 5.431235 | 0.154623 | 0.031044 | 0.043491 | 0.081545 | 0.233476 | 0.128469 | 0.073248 | 0.031187 | 0.008011 | 0 | 0 | 0.001667 | 0.255121 | 11,277 | 300 | 343 | 37.59 | 0.830476 | 0.140906 | 0 | 0.158416 | 1 | 0 | 0.167553 | 0.028668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108911 | false | 0 | 0.029703 | 0 | 0.252475 | 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 |
96654b20d61b04b1c366c93e7796004eae3047b5 | 1,753 | py | Python | webscrapping.py | Gowtham0404/JD-project | 19707967e59908d4375a62b62afd359d5b11e01a | [
"Apache-2.0"
] | null | null | null | webscrapping.py | Gowtham0404/JD-project | 19707967e59908d4375a62b62afd359d5b11e01a | [
"Apache-2.0"
] | 2 | 2021-06-11T09:25:23.000Z | 2021-06-11T09:26:58.000Z | webscrapping.py | Gowtham0404/JD-project | 19707967e59908d4375a62b62afd359d5b11e01a | [
"Apache-2.0"
] | null | null | null |
!pip install selenium
!apt-get update # to update ubuntu to correctly run apt install
!apt install chromium-chromedriver
!cp /usr/lib/chromium-browser/chromedriver /usr/bin
def update_covid(link):
import sys #system-specific parameters and functions
import pandas as pd
# used fetch the data from the... | 33.711538 | 91 | 0.702225 | 261 | 1,753 | 4.636015 | 0.463602 | 0.064463 | 0.039669 | 0.059504 | 0.190083 | 0.105785 | 0.105785 | 0.079339 | 0.079339 | 0.079339 | 0 | 0.008984 | 0.174558 | 1,753 | 51 | 92 | 34.372549 | 0.827229 | 0.263548 | 0 | 0 | 0 | 0 | 0.180328 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | 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 |
966567c7817841adddb82310eb5dcb6044b20522 | 40,335 | py | Python | cme/protocols/ldap.py | vogtzzz/CrackMapExec | 8118e9078e525566322c2942fd1f0984e182ab32 | [
"BSD-2-Clause"
] | null | null | null | cme/protocols/ldap.py | vogtzzz/CrackMapExec | 8118e9078e525566322c2942fd1f0984e182ab32 | [
"BSD-2-Clause"
] | null | null | null | cme/protocols/ldap.py | vogtzzz/CrackMapExec | 8118e9078e525566322c2942fd1f0984e182ab32 | [
"BSD-2-Clause"
] | null | null | null | # from https://github.com/SecureAuthCorp/impacket/blob/master/examples/GetNPUsers.py
# https://troopers.de/downloads/troopers19/TROOPERS19_AD_Fun_With_LDAP.pdf
import requests
import logging
import configparser
from binascii import b2a_hex, unhexlify, hexlify
from cme.connection import *
from cme.helpers.logger import... | 48.421369 | 171 | 0.517392 | 3,818 | 40,335 | 5.384756 | 0.130435 | 0.038523 | 0.02792 | 0.028941 | 0.649399 | 0.629068 | 0.598667 | 0.591274 | 0.584756 | 0.568024 | 0 | 0.018216 | 0.373943 | 40,335 | 832 | 172 | 48.479567 | 0.795937 | 0.027817 | 0 | 0.64557 | 0 | 0.005626 | 0.136148 | 0.023649 | 0.004219 | 0 | 0 | 0 | 0 | 1 | 0.032349 | false | 0.052039 | 0.025316 | 0 | 0.112518 | 0.001406 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
96669343a9979550d179039a8762d6c8ab953e55 | 8,482 | py | Python | custom_components/uhomeuponor/sensor.py | dave-code-ruiz/uhomeuponor | 610b6ff094e4d1f180a01aa4f4b9279a4ebe25e4 | [
"MIT"
] | 8 | 2020-02-10T18:57:50.000Z | 2022-01-19T11:48:14.000Z | custom_components/uhomeuponor/sensor.py | dave-code-ruiz/uhomeuponor | 610b6ff094e4d1f180a01aa4f4b9279a4ebe25e4 | [
"MIT"
] | 16 | 2020-01-31T17:40:34.000Z | 2021-04-15T07:28:38.000Z | custom_components/uhomeuponor/sensor.py | dave-code-ruiz/uhomeuponor | 610b6ff094e4d1f180a01aa4f4b9279a4ebe25e4 | [
"MIT"
] | 4 | 2020-06-03T14:26:51.000Z | 2021-04-26T21:45:47.000Z | """Uponor U@Home integration
Exposes Sensors for Uponor devices, such as:
- Temperature (UponorThermostatTemperatureSensor)
- Humidity (UponorThermostatHumiditySensor)
- Battery (UponorThermostatBatterySensor)
"""
import voluptuous as vol
from requests.exceptions import RequestException
from homeassistant.exception... | 31.414815 | 133 | 0.669653 | 936 | 8,482 | 5.898504 | 0.159188 | 0.04184 | 0.020286 | 0.027169 | 0.698786 | 0.678319 | 0.666365 | 0.639739 | 0.597174 | 0.581598 | 0 | 0.001394 | 0.238977 | 8,482 | 269 | 134 | 31.531599 | 0.853912 | 0.246168 | 0 | 0.585526 | 0 | 0 | 0.175494 | 0.063241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177632 | false | 0 | 0.065789 | 0.125 | 0.401316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
966c66ba109dc1ffb1a2267e970b45ec9bcc8ce2 | 1,419 | py | Python | beproductive/_nbdev.py | JohannesStutz/beproductive | 119e766ba4eb29d16908dd9ff2e9b677a9cec955 | [
"Apache-2.0"
] | 2 | 2021-02-01T23:36:38.000Z | 2021-03-08T04:26:37.000Z | beproductive/_nbdev.py | JohannesStutz/beproductive | 119e766ba4eb29d16908dd9ff2e9b677a9cec955 | [
"Apache-2.0"
] | null | null | null | beproductive/_nbdev.py | JohannesStutz/beproductive | 119e766ba4eb29d16908dd9ff2e9b677a9cec955 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"main": "00_beproductive.ipynb",
"parse_arguments": "00_beproductive.ipynb",
"in_notebook": "00_beproductive.ipynb",
"APP_NAME": "01_blocker.ipynb",
"REDIRECT": "01... | 36.384615 | 71 | 0.594785 | 159 | 1,419 | 4.943396 | 0.402516 | 0.114504 | 0.178117 | 0.068702 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043112 | 0.248062 | 1,419 | 38 | 72 | 37.342105 | 0.693533 | 0.02537 | 0 | 0 | 1 | 0 | 0.589725 | 0.04691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0.032258 | 0.032258 | 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 |
966e56570ac1d3dc685074edf8933ea28500dd7e | 3,573 | py | Python | test/unit/test_features/test_vlan.py | frepkovsky/pyhpecw7 | 4f0d1dd696db9ef1620832f460ef3983fde5ec0c | [
"Apache-2.0"
] | 46 | 2016-08-23T11:49:45.000Z | 2021-08-23T18:01:39.000Z | test/unit/test_features/test_vlan.py | frepkovsky/pyhpecw7 | 4f0d1dd696db9ef1620832f460ef3983fde5ec0c | [
"Apache-2.0"
] | 20 | 2016-07-08T17:34:04.000Z | 2021-05-28T08:37:54.000Z | test/unit/test_features/test_vlan.py | frepkovsky/pyhpecw7 | 4f0d1dd696db9ef1620832f460ef3983fde5ec0c | [
"Apache-2.0"
] | 29 | 2016-06-10T14:55:55.000Z | 2021-03-31T08:10:22.000Z | import unittest
import mock
from lxml import etree
from ncclient.operations.retrieve import GetReply
from pyhpecw7.features.vlan import Vlan
from pyhpecw7.features.errors import VlanIDError, LengthOfStringError
from base_feature_test import BaseFeatureCase
class VlanTestCase(BaseFeatureCase):
@mock.patch('pyhpe... | 38.010638 | 98 | 0.70501 | 468 | 3,573 | 5.064103 | 0.155983 | 0.097468 | 0.088608 | 0.111392 | 0.712658 | 0.712658 | 0.649789 | 0.601266 | 0.488186 | 0.449367 | 0 | 0.006471 | 0.178282 | 3,573 | 94 | 99 | 38.010638 | 0.800749 | 0 | 0 | 0.352941 | 0 | 0 | 0.073867 | 0.006435 | 0 | 0 | 0 | 0 | 0.323529 | 1 | 0.102941 | false | 0 | 0.102941 | 0 | 0.220588 | 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 |
966f4cbb94d8d72416cee36fe9edd029c00b221d | 1,459 | py | Python | app/communications.py | SamCB/A-Server-Printer | 96e1a1d593547b12e2e23e0ebf1e06d0551e4056 | [
"MIT"
] | null | null | null | app/communications.py | SamCB/A-Server-Printer | 96e1a1d593547b12e2e23e0ebf1e06d0551e4056 | [
"MIT"
] | null | null | null | app/communications.py | SamCB/A-Server-Printer | 96e1a1d593547b12e2e23e0ebf1e06d0551e4056 | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
import requests
import json
class AServerError(Exception):
pass
def raise_for_status(response):
try:
response.raise_for_status()
except Exception as e:
raise AServerError(e)
class AServerConnection:
def __init__(self, server, password)... | 25.596491 | 85 | 0.618232 | 154 | 1,459 | 5.720779 | 0.376623 | 0.054484 | 0.047673 | 0.049943 | 0.224745 | 0.093076 | 0.093076 | 0 | 0 | 0 | 0 | 0.00191 | 0.282385 | 1,459 | 56 | 86 | 26.053571 | 0.839542 | 0 | 0 | 0.090909 | 0 | 0 | 0.07138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.068182 | 0.068182 | 0.045455 | 0.409091 | 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 |
9678328a1a2d87413ae447ed66df1463a5ef4164 | 2,201 | py | Python | apps/person/managers.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | 6 | 2015-04-24T03:10:44.000Z | 2020-12-27T19:46:33.000Z | apps/person/managers.py | fox2mike/FlightDeck | 3a2fc78c13dd968041b349c4f9343e6c8b22dd25 | [
"BSD-3-Clause"
] | null | null | null | apps/person/managers.py | fox2mike/FlightDeck | 3a2fc78c13dd968041b349c4f9343e6c8b22dd25 | [
"BSD-3-Clause"
] | 5 | 2015-09-18T19:58:31.000Z | 2020-01-28T05:46:55.000Z | """
Managers for the Profile models
"""
import commonware
from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist
from django.db import models
from django.db.models import Q
log = commonware.log.getLogger('f.profile.managers')
MAX_GET_PROFILE = 2
class ProfileManager(models.Manager):
" man... | 34.390625 | 79 | 0.558383 | 247 | 2,201 | 4.838057 | 0.421053 | 0.09205 | 0.050209 | 0.038494 | 0.048536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011955 | 0.35393 | 2,201 | 63 | 80 | 34.936508 | 0.828411 | 0.146751 | 0 | 0.125 | 0 | 0 | 0.094092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9678c18f7e085c190cd24c1d6a2bce8549a4c164 | 11,159 | py | Python | convex_hull/runTests.py | wustl-pctg/NUMA-WS-Benchmarks | 579deb56e1c7310624f76b5a8cbb8b66793d6fe0 | [
"MIT"
] | null | null | null | convex_hull/runTests.py | wustl-pctg/NUMA-WS-Benchmarks | 579deb56e1c7310624f76b5a8cbb8b66793d6fe0 | [
"MIT"
] | null | null | null | convex_hull/runTests.py | wustl-pctg/NUMA-WS-Benchmarks | 579deb56e1c7310624f76b5a8cbb8b66793d6fe0 | [
"MIT"
] | null | null | null | import subprocess
import sys
import random
import os
def onPprocessors(command,p) :
if os.environ.has_key("OPENMP"):
os.putenv("OMP_NUM_THREADS", "%d" %p)
return command
elif os.environ.has_key("CILK"):
# this was for Cilk++
# return command + " -cilk_set_worker_count " + `p`
return "export C... | 37.699324 | 155 | 0.597365 | 1,215 | 11,159 | 5.439506 | 0.24856 | 0.00696 | 0.007717 | 0.007868 | 0.25314 | 0.220911 | 0.152973 | 0.146164 | 0.12831 | 0.113784 | 0 | 0.009592 | 0.271261 | 11,159 | 295 | 156 | 37.827119 | 0.803123 | 0.047316 | 0 | 0.227848 | 0 | 0.016878 | 0.175482 | 0.017187 | 0 | 0 | 0 | 0.00339 | 0 | 0 | null | null | 0.004219 | 0.029536 | null | null | 0.033755 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
967b4e2928ad6635495b834cf27df4bfda9355a9 | 207,361 | py | Python | pddlpy/pddlParser.py | ivotimev/pddl-lib | 8abdeeb9cbcb6460ca3a48692fc8058480caf977 | [
"Apache-2.0"
] | null | null | null | pddlpy/pddlParser.py | ivotimev/pddl-lib | 8abdeeb9cbcb6460ca3a48692fc8058480caf977 | [
"Apache-2.0"
] | null | null | null | pddlpy/pddlParser.py | ivotimev/pddl-lib | 8abdeeb9cbcb6460ca3a48692fc8058480caf977 | [
"Apache-2.0"
] | 1 | 2020-11-09T17:09:36.000Z | 2020-11-09T17:09:36.000Z | # Generated from pddl.g4 by ANTLR 4.7.1
# encoding: utf-8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3s")
buf.write("\u03b7\4\2\t\2\4\3\t\3\4\4\t\4\4\... | 35.758062 | 229 | 0.56366 | 24,209 | 207,361 | 4.721302 | 0.088851 | 0.021908 | 0.014935 | 0.015503 | 0.634062 | 0.592014 | 0.56889 | 0.504261 | 0.436106 | 0.395597 | 0 | 0.113138 | 0.313482 | 207,361 | 5,798 | 230 | 35.764229 | 0.689759 | 0.002141 | 0 | 0.532499 | 1 | 0.099034 | 0.138519 | 0.118328 | 0 | 0 | 0.000309 | 0 | 0 | 1 | 0.113966 | false | 0.022178 | 0.000878 | 0.042819 | 0.245938 | 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 |
967c2ac1871beacedd1a70ac3611ab40ff419735 | 3,636 | py | Python | src/robotide/publish/publisher.py | hoteltianya/RIDE | dcdccfec631517743d24c8e31fc6687fd29338a0 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2017-09-30T05:47:28.000Z | 2019-04-15T11:58:40.000Z | src/robotide/publish/publisher.py | hoteltianya/RIDE | dcdccfec631517743d24c8e31fc6687fd29338a0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/robotide/publish/publisher.py | hoteltianya/RIDE | dcdccfec631517743d24c8e31fc6687fd29338a0 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2018-02-13T10:22:39.000Z | 2019-07-04T07:39:28.000Z | # Copyright 2008-2015 Nokia Solutions and Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 36.36 | 85 | 0.627888 | 424 | 3,636 | 5.301887 | 0.377358 | 0.04048 | 0.030249 | 0.022687 | 0.104982 | 0.08363 | 0.058719 | 0 | 0 | 0 | 0 | 0.004608 | 0.283828 | 3,636 | 99 | 86 | 36.727273 | 0.858679 | 0.177118 | 0 | 0.081633 | 0 | 0 | 0.021206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.020408 | 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 |
96811d58f0041c7241940ae60ec7c3a3912a2dad | 58,461 | py | Python | polymerxtal/functions.py | lengxupa/polymerxtal | 7deb455b5ef23991c183489b1f4c0d8f004d4b52 | [
"BSD-3-Clause"
] | 1 | 2020-08-13T23:52:56.000Z | 2020-08-13T23:52:56.000Z | polymerxtal/functions.py | lengxupa/polymerxtal | 7deb455b5ef23991c183489b1f4c0d8f004d4b52 | [
"BSD-3-Clause"
] | 8 | 2020-08-31T01:18:33.000Z | 2021-09-17T18:20:24.000Z | polymerxtal/functions.py | lengxupa/polymerxtal | 7deb455b5ef23991c183489b1f4c0d8f004d4b52 | [
"BSD-3-Clause"
] | 3 | 2020-08-26T14:58:59.000Z | 2021-03-15T09:06:24.000Z | """
functions.py
In this work, we present PolymerXtal, a software designed to build and analyze molecular-level polymer crystal
structures. PolymerXtal provides a standardized process to generate polymer crystal structure based on monomer,
tacticity, helicity, chiriality and unit cell information and analyze the crysta... | 37.692456 | 119 | 0.505927 | 7,621 | 58,461 | 3.798714 | 0.103399 | 0.093679 | 0.082073 | 0.025285 | 0.579136 | 0.526252 | 0.478307 | 0.423351 | 0.379482 | 0.343143 | 0 | 0.028802 | 0.336618 | 58,461 | 1,550 | 120 | 37.716774 | 0.717678 | 0.308513 | 0 | 0.391892 | 1 | 0.002079 | 0.32086 | 0.007389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02079 | false | 0.00104 | 0.002079 | 0 | 0.035343 | 0.009356 | 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 |
968945f193718969c349281756b2cc7a8c2b5539 | 7,300 | py | Python | BlackLivesMatter/application.py | NitinBhati/BlackLivesMatter | eee3c998ca362765aee43b8304a0681e4aa4024f | [
"MIT"
] | null | null | null | BlackLivesMatter/application.py | NitinBhati/BlackLivesMatter | eee3c998ca362765aee43b8304a0681e4aa4024f | [
"MIT"
] | null | null | null | BlackLivesMatter/application.py | NitinBhati/BlackLivesMatter | eee3c998ca362765aee43b8304a0681e4aa4024f | [
"MIT"
] | null | null | null | import os
import webbrowser
# We'll render HTML templates and access data sent by POST
# using the request object from flask. Redirect and url_for
# will be used to redirect the user once the upload is done
# and send_from_directory will help us to send/show on the
# browser the file that the user just uploaded
... | 38.020833 | 167 | 0.687671 | 924 | 7,300 | 5.281385 | 0.245671 | 0.059016 | 0.04918 | 0.032787 | 0.291189 | 0.268648 | 0.252254 | 0.192828 | 0.17377 | 0.155738 | 0 | 0.004077 | 0.193562 | 7,300 | 191 | 168 | 38.219895 | 0.824868 | 0.339178 | 0 | 0.163636 | 0 | 0 | 0.226188 | 0.129407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.027273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96982288367ce5c5cd2840c812430506cf22c1bc | 4,386 | py | Python | plaso/output/shared_dsv.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 1,253 | 2015-01-02T13:58:02.000Z | 2022-03-31T08:43:39.000Z | plaso/output/shared_dsv.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 3,388 | 2015-01-02T11:17:58.000Z | 2022-03-30T10:21:45.000Z | plaso/output/shared_dsv.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 376 | 2015-01-20T07:04:54.000Z | 2022-03-04T23:53:00.000Z | # -*- coding: utf-8 -*-
"""Shared functionality for delimiter separated values output modules."""
from plaso.output import formatting_helper
from plaso.output import interface
class DSVEventFormattingHelper(formatting_helper.EventFormattingHelper):
"""Delimiter separated values output module event formatting helpe... | 32.25 | 79 | 0.719106 | 504 | 4,386 | 6.011905 | 0.184524 | 0.10165 | 0.069307 | 0.031683 | 0.513861 | 0.381518 | 0.313861 | 0.313861 | 0.220132 | 0.157426 | 0 | 0.000284 | 0.197218 | 4,386 | 135 | 80 | 32.488889 | 0.860267 | 0.434337 | 0 | 0.208333 | 0 | 0 | 0.001343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9699fe7c25da4d9d80390180310f4727c6f208e5 | 3,204 | py | Python | agent_ensurer.py | smpio/teamcity-cloud-agent-ensurer | 018627a924e3960bc217942b6efc9307032f37cd | [
"MIT"
] | 1 | 2021-02-02T19:23:13.000Z | 2021-02-02T19:23:13.000Z | agent_ensurer.py | smpio/teamcity-cloud-agent-ensurer | 018627a924e3960bc217942b6efc9307032f37cd | [
"MIT"
] | null | null | null | agent_ensurer.py | smpio/teamcity-cloud-agent-ensurer | 018627a924e3960bc217942b6efc9307032f37cd | [
"MIT"
] | 1 | 2021-02-02T19:23:15.000Z | 2021-02-02T19:23:15.000Z | import os
import time
import logging
import argparse
from datetime import datetime, timedelta, timezone
import requests
log = logging.getLogger(__name__)
dead_disconnected_timeout = timedelta(minutes=5)
# TODO: add schedule
def main():
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument('--base-... | 36.409091 | 119 | 0.650437 | 423 | 3,204 | 4.687943 | 0.312057 | 0.045386 | 0.036309 | 0.060514 | 0.200706 | 0.178517 | 0.11296 | 0.11296 | 0.089259 | 0 | 0 | 0.002811 | 0.222846 | 3,204 | 87 | 120 | 36.827586 | 0.793574 | 0.023096 | 0 | 0.060606 | 0 | 0 | 0.21753 | 0.082534 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.151515 | 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 |
969bfb3d47478c869ec935dabb23b748316dfca8 | 2,182 | py | Python | Examples/DatabaseExamples/database_example.py | equallen/Jarvis | 0d0e9414803233d090b1e3427b87259ac3170535 | [
"MIT"
] | null | null | null | Examples/DatabaseExamples/database_example.py | equallen/Jarvis | 0d0e9414803233d090b1e3427b87259ac3170535 | [
"MIT"
] | 1 | 2021-11-09T19:27:13.000Z | 2021-11-09T19:27:13.000Z | Examples/DatabaseExamples/database_example.py | equallen/Jarvis | 0d0e9414803233d090b1e3427b87259ac3170535 | [
"MIT"
] | null | null | null | """
Example code for working with sqlit3 to manage the database.
This file is mostly for Ted but if anyone else needs an example for
understanding the database code, this is a good resource.
Here is the official Python guide as well:
https://docs.python.org/3/library/sqlite3.html
You can... | 42.784314 | 85 | 0.747021 | 353 | 2,182 | 4.577904 | 0.467422 | 0.054455 | 0.022277 | 0.019802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004507 | 0.186526 | 2,182 | 51 | 86 | 42.784314 | 0.905915 | 0.843721 | 0 | 0 | 0 | 0 | 0.304965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
969dda53c389a04c49a8d53a64f91e042b5d6c67 | 1,850 | py | Python | PART07/4_knn_classification.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | 1 | 2021-01-21T09:11:51.000Z | 2021-01-21T09:11:51.000Z | PART07/4_knn_classification.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | PART07/4_knn_classification.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 13 22:37:36 2020
@author: arti
"""
import pandas as pd
df = pd.read_csv('./titanic.csv')
print(df.head())
print('--')
pd.set_option('display.max_columns', 15)
print(df.head())
print('--')
print(df.info())
print('--')
rdf = df.drop(['deck', 'em... | 23.125 | 77 | 0.678919 | 281 | 1,850 | 4.302491 | 0.391459 | 0.020678 | 0.018197 | 0.026468 | 0.061208 | 0.028122 | 0 | 0 | 0 | 0 | 0 | 0.019925 | 0.131892 | 1,850 | 79 | 78 | 23.417722 | 0.732877 | 0.050811 | 0 | 0.1875 | 0 | 0 | 0.12822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.104167 | 0 | 0.104167 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
96a7c3668dd71dd02a85593478f54099cb236d98 | 540 | py | Python | tests/tests.py | WithPrecedent/ml_funnel | 5302da8bf4944ac518d22cc37c181e5a09baaabe | [
"Apache-2.0"
] | null | null | null | tests/tests.py | WithPrecedent/ml_funnel | 5302da8bf4944ac518d22cc37c181e5a09baaabe | [
"Apache-2.0"
] | null | null | null | tests/tests.py | WithPrecedent/ml_funnel | 5302da8bf4944ac518d22cc37c181e5a09baaabe | [
"Apache-2.0"
] | 2 | 2019-10-07T14:36:26.000Z | 2020-02-23T00:50:20.000Z | """
.. module:: tests
:synopsis: tests of core siMpLify entitys
:author: Corey Rayburn Yung
:copyright: 2019-2020
:license: Apache-2.0
"""
import os
import sys
sys.path.insert(0, os.path.join('..', 'simplify'))
sys.path.insert(0, os.path.join('..', '..', 'simplify'))
import simplify.content as content
algorithm, par... | 20.769231 | 58 | 0.653704 | 66 | 540 | 5.348485 | 0.651515 | 0.03966 | 0.073654 | 0.07932 | 0.181303 | 0.181303 | 0.181303 | 0.181303 | 0 | 0 | 0 | 0.028634 | 0.159259 | 540 | 25 | 59 | 21.6 | 0.748899 | 0.240741 | 0 | 0 | 0 | 0 | 0.1525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96ac209674b447259851276536d8b2930fbe22e4 | 10,247 | py | Python | mapping/viz/blockworld.py | sameeptandon/sail-car-log | 0ee3d598bb09d389bcbd2ebf73cd4b2411e796be | [
"BSD-2-Clause"
] | 1 | 2021-02-24T03:11:13.000Z | 2021-02-24T03:11:13.000Z | mapping/viz/blockworld.py | sameeptandon/sail-car-log | 0ee3d598bb09d389bcbd2ebf73cd4b2411e796be | [
"BSD-2-Clause"
] | null | null | null | mapping/viz/blockworld.py | sameeptandon/sail-car-log | 0ee3d598bb09d389bcbd2ebf73cd4b2411e796be | [
"BSD-2-Clause"
] | 3 | 2015-03-18T14:36:04.000Z | 2018-07-04T02:57:24.000Z | import numpy as np
from numpy.linalg import inv
import vtk
#import vtk.util.numpy_support as converter
from vtk.io import vtkPLYReader
import h5py
from pipeline_config import COLOR_OCTOMAP_H5_FILE,\
GPS_FILE, EXPORT_START, EXPORT_STEP, EXPORT_NUM,\
OCTOMAP_H5_FILE, STATIC_VTK_FILE, DYNAMIC_VTK_FILE, MAP... | 30.957704 | 92 | 0.633356 | 1,195 | 10,247 | 5.266946 | 0.244351 | 0.023832 | 0.029711 | 0.025739 | 0.120114 | 0.064029 | 0.040833 | 0.021767 | 0.016206 | 0 | 0 | 0.019595 | 0.252952 | 10,247 | 330 | 93 | 31.051515 | 0.802613 | 0.088514 | 0 | 0.146667 | 0 | 0 | 0.02403 | 0.003556 | 0 | 0 | 0 | 0.00303 | 0 | 0 | null | null | 0.013333 | 0.053333 | null | null | 0.017778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96ac2a9919eb1d0dd61af8f011f2a17936dbd935 | 5,138 | py | Python | yales2/ics_2D_cylinder-no_geo/nProcStudy/nProcStudy.py | gmclove/pymoo-CFD | fd4a7b1335db33b467fe975ec804f4b055de407c | [
"Apache-2.0"
] | null | null | null | yales2/ics_2D_cylinder-no_geo/nProcStudy/nProcStudy.py | gmclove/pymoo-CFD | fd4a7b1335db33b467fe975ec804f4b055de407c | [
"Apache-2.0"
] | null | null | null | yales2/ics_2D_cylinder-no_geo/nProcStudy/nProcStudy.py | gmclove/pymoo-CFD | fd4a7b1335db33b467fe975ec804f4b055de407c | [
"Apache-2.0"
] | null | null | null | makeDir(np)import subprocess
from distutils.dir_util import copy_tree
import time
import os
import numpy as np
import matplotlib.pyplot as plt
inputDir = '../base_case'
studyDir = '.'
# try:
# os.mkdir(studyDir)
# except OSError:
# print(studyDir + ' directory already exists')
nProc = [1, 5, 10, 15, 20, 25, ... | 32.314465 | 149 | 0.54165 | 619 | 5,138 | 4.392569 | 0.323102 | 0.052593 | 0.02648 | 0.040456 | 0.255241 | 0.255241 | 0.237587 | 0.228025 | 0.217727 | 0.204487 | 0 | 0.014815 | 0.23803 | 5,138 | 158 | 150 | 32.518987 | 0.679693 | 0.24348 | 0 | 0.152941 | 0 | 0 | 0.128158 | 0.031115 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011765 | 0.070588 | null | null | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
96af451bfdbf425711ea1111120557a433e9c5e5 | 316 | py | Python | 4_Tran_Thi_Nhu_Huong_LOCAL/bai 2.3.py | lpython2006e/exercies | 84343eae57d86708a7984aa02f77183a4688a508 | [
"MIT"
] | null | null | null | 4_Tran_Thi_Nhu_Huong_LOCAL/bai 2.3.py | lpython2006e/exercies | 84343eae57d86708a7984aa02f77183a4688a508 | [
"MIT"
] | null | null | null | 4_Tran_Thi_Nhu_Huong_LOCAL/bai 2.3.py | lpython2006e/exercies | 84343eae57d86708a7984aa02f77183a4688a508 | [
"MIT"
] | 8 | 2020-07-10T14:13:54.000Z | 2020-08-03T08:17:50.000Z | """Write a function that checks whether an element occurs in a list."""
def check_existence_of_element(a,b):
if a in b:
print ("the item in list")
else:
print ("the item is not in the list")
item = 1
mylist = [1, 4, 5, 100, 2, 1, -1, -7]
check_existence_of_element(item,mylist)
#index = -1 | 24.307692 | 71 | 0.636076 | 56 | 316 | 3.482143 | 0.553571 | 0.14359 | 0.164103 | 0.235897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049793 | 0.237342 | 316 | 13 | 72 | 24.307692 | 0.759336 | 0.240506 | 0 | 0 | 0 | 0 | 0.182979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96b17191821bb5d3923ecf51bf52050023e8c74a | 354 | py | Python | train.py | runelk/maltnob | fa12b967650a9273ed40e0c4bdf4484d92f4c0d1 | [
"MIT"
] | null | null | null | train.py | runelk/maltnob | fa12b967650a9273ed40e0c4bdf4484d92f4c0d1 | [
"MIT"
] | null | null | null | train.py | runelk/maltnob | fa12b967650a9273ed40e0c4bdf4484d92f4c0d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import maltnob.maltparser as maltparser
MALTPARSER_JAR = 'tools/maltparser-1.8.1/maltparser-1.8.1.jar'
# Usage: python train.py <CONLL_FILE> <MCO_FILE>
def main():
stdout, stderr = maltparser.train(sys.argv[1], sys.argv[2], MALTPARSER_JAR)
print stderr
print stdout
if _... | 20.823529 | 79 | 0.70904 | 53 | 354 | 4.509434 | 0.528302 | 0.108787 | 0.100418 | 0.108787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026756 | 0.155367 | 354 | 16 | 80 | 22.125 | 0.772575 | 0.189266 | 0 | 0 | 0 | 0 | 0.178947 | 0.150877 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96b1e509c1cf2f66fedd3aa38f53120967aa863e | 553 | py | Python | devon/web/wiki.py | joehewitt/devon | 5b11265e5eae3db7bfaeb49543a2a6293bd15557 | [
"BSD-3-Clause"
] | 3 | 2015-12-25T16:26:02.000Z | 2016-05-08T18:19:25.000Z | devon/web/wiki.py | joehewitt/devon | 5b11265e5eae3db7bfaeb49543a2a6293bd15557 | [
"BSD-3-Clause"
] | null | null | null | devon/web/wiki.py | joehewitt/devon | 5b11265e5eae3db7bfaeb49543a2a6293bd15557 | [
"BSD-3-Clause"
] | 1 | 2021-07-13T07:17:01.000Z | 2021-07-13T07:17:01.000Z |
import devon.wiki
import os.path
# **************************************************************************************************
def main(request):
request.servePage("wiki.html", globals(), locals())
def renderPage(request):
if not request.project.wikiPath:
return request.serve404("Project has ... | 29.105263 | 100 | 0.567812 | 56 | 553 | 5.607143 | 0.5 | 0.057325 | 0.133758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012848 | 0.155515 | 553 | 18 | 101 | 30.722222 | 0.659529 | 0.177215 | 0 | 0 | 0 | 0 | 0.112832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
96b253b874f55c5395a12d89bc8cea3a68ef4e25 | 414 | py | Python | python/phylanx/plugins/keras.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | python/phylanx/plugins/keras.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | python/phylanx/plugins/keras.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | # Copyright (c) 2019 R. Tohid
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import numpy as np
from phylanx import Phylanx
@Phylanx
def in_top_k(predictions, targets, k):
top_k = np.argsort(-predictions)... | 27.6 | 79 | 0.698068 | 67 | 414 | 4.19403 | 0.626866 | 0.021352 | 0.064057 | 0.085409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038123 | 0.176329 | 414 | 14 | 80 | 29.571429 | 0.785924 | 0.437198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
96b429630a180cf11cf1a8fabe9058d287e46d61 | 917 | py | Python | typeidea/comment/models.py | abnormalmakers/typeidea | 9348e85414ac06ed67fe7238d8060c29e3d59d12 | [
"MIT"
] | null | null | null | typeidea/comment/models.py | abnormalmakers/typeidea | 9348e85414ac06ed67fe7238d8060c29e3d59d12 | [
"MIT"
] | 2 | 2020-06-05T20:36:07.000Z | 2021-06-10T21:24:42.000Z | typeidea/comment/models.py | abnormalmakers/typeidea | 9348e85414ac06ed67fe7238d8060c29e3d59d12 | [
"MIT"
] | null | null | null | from django.db import models
from blog.models import Post
# Create your models here.
class Comment(models.Model):
STATUS_NORMAL=1
STATUS_DELETE=0
STATUS_ITEM=(
(STATUS_NORMAL,'正常'),
(STATUS_DELETE,'删除')
)
target=models.CharField(max_length=100,verbose_name='评论目标')
content=model... | 33.962963 | 99 | 0.736096 | 122 | 917 | 5.311475 | 0.532787 | 0.152778 | 0.083333 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.14831 | 917 | 27 | 100 | 33.962963 | 0.815621 | 0.026172 | 0 | 0 | 0 | 0 | 0.034753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0.045455 | 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 |
96b8861b864f2781b2e80452009fd5083012213d | 6,264 | py | Python | text_classification/train.py | kolinwei/models | e6e3920298eb81e290c44cb125ba0e507a834d4a | [
"Apache-2.0"
] | null | null | null | text_classification/train.py | kolinwei/models | e6e3920298eb81e290c44cb125ba0e507a834d4a | [
"Apache-2.0"
] | null | null | null | text_classification/train.py | kolinwei/models | e6e3920298eb81e290c44cb125ba0e507a834d4a | [
"Apache-2.0"
] | null | null | null | import os
import sys
import gzip
import paddle.v2 as paddle
import reader
from utils import logger, parse_train_cmd, build_dict, load_dict
from network_conf import fc_net, convolution_net
def train(topology,
train_data_dir=None,
test_data_dir=None,
word_dict_path=None,
label_... | 34.994413 | 80 | 0.618774 | 816 | 6,264 | 4.512255 | 0.224265 | 0.041282 | 0.029332 | 0.016295 | 0.302553 | 0.247148 | 0.24063 | 0.220532 | 0.205866 | 0.177078 | 0 | 0.009771 | 0.297414 | 6,264 | 178 | 81 | 35.191011 | 0.826858 | 0.161239 | 0 | 0.144068 | 0 | 0 | 0.114513 | 0.005232 | 0 | 0 | 0 | 0 | 0.008475 | 1 | 0.025424 | false | 0.076271 | 0.059322 | 0 | 0.084746 | 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 |
96c0915dd4192d8fce9b877025ffbb7acf3b58c6 | 7,998 | py | Python | resource/common/satree.py | MaybeRusty/RustyBrain | 4697e462b4b4d830c4521fd4e8b0a307c5dbe694 | [
"MIT"
] | null | null | null | resource/common/satree.py | MaybeRusty/RustyBrain | 4697e462b4b4d830c4521fd4e8b0a307c5dbe694 | [
"MIT"
] | null | null | null | resource/common/satree.py | MaybeRusty/RustyBrain | 4697e462b4b4d830c4521fd4e8b0a307c5dbe694 | [
"MIT"
] | null | null | null | from sqlalchemy import func
from sqlalchemy.exc import SQLAlchemyError
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import and_
import uuid
import json
from common.database import db
from common.ret_status import RetStatus
class TreeManager:
def __init__(self, model_obj=None, session=None):
sel... | 44.187845 | 176 | 0.579395 | 958 | 7,998 | 4.646138 | 0.101253 | 0.113233 | 0.112334 | 0.068299 | 0.746349 | 0.71849 | 0.670636 | 0.616266 | 0.594024 | 0.57605 | 0 | 0.003534 | 0.327707 | 7,998 | 180 | 177 | 44.433333 | 0.824251 | 0 | 0 | 0.601227 | 0 | 0 | 0.036506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04908 | false | 0 | 0.04908 | 0 | 0.355828 | 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 |
73661dc7adc75c027f2ae25ad2a66f236ee80a62 | 1,734 | py | Python | painelmma_api/filter_functions.py | ibamacsr/painelmma_api | a11a6cd63e312f09f445b139fcff8c11ab383764 | [
"MIT"
] | null | null | null | painelmma_api/filter_functions.py | ibamacsr/painelmma_api | a11a6cd63e312f09f445b139fcff8c11ab383764 | [
"MIT"
] | null | null | null | painelmma_api/filter_functions.py | ibamacsr/painelmma_api | a11a6cd63e312f09f445b139fcff8c11ab383764 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db.models import Sum
from django.db.models.expressions import RawSQL
# from .utils import get_month
from datetime import *
def filter_total(queryset, context):
if 'ano' in context and context['ano']:
queryset = queryset.filter(
img_data__year=int(context['a... | 27.967742 | 65 | 0.529988 | 176 | 1,734 | 5.130682 | 0.295455 | 0.159468 | 0.194906 | 0.126246 | 0.294574 | 0.161683 | 0.106312 | 0.106312 | 0.106312 | 0.106312 | 0 | 0.001754 | 0.342561 | 1,734 | 61 | 66 | 28.42623 | 0.790351 | 0.364475 | 0 | 0.172414 | 0 | 0 | 0.085185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.172414 | 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 |
736ebf90d32acafd42818295af3231dc0693907c | 334 | py | Python | daruma/app/migrations/0005_auto_20200914_0822.py | rzeczuchy/daruma | 603a3249f32ccdc2675cc497172d6285dc4dd850 | [
"BSD-3-Clause"
] | null | null | null | daruma/app/migrations/0005_auto_20200914_0822.py | rzeczuchy/daruma | 603a3249f32ccdc2675cc497172d6285dc4dd850 | [
"BSD-3-Clause"
] | null | null | null | daruma/app/migrations/0005_auto_20200914_0822.py | rzeczuchy/daruma | 603a3249f32ccdc2675cc497172d6285dc4dd850 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-14 08:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0004_auto_20200914_0818'),
]
operations = [
migrations.RenameModel(
old_name='Company',
new_name='CompanyDetail',
... | 18.555556 | 47 | 0.598802 | 36 | 334 | 5.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130802 | 0.290419 | 334 | 17 | 48 | 19.647059 | 0.691983 | 0.134731 | 0 | 0 | 1 | 0 | 0.160279 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7370a1080ceb64f2fbc6554e15aa7db239215966 | 429 | py | Python | stringCounters.py | Artic42/Thoth | 7302b4749eb2d27aa9fe39866e1c56a24656edc7 | [
"MIT"
] | null | null | null | stringCounters.py | Artic42/Thoth | 7302b4749eb2d27aa9fe39866e1c56a24656edc7 | [
"MIT"
] | null | null | null | stringCounters.py | Artic42/Thoth | 7302b4749eb2d27aa9fe39866e1c56a24656edc7 | [
"MIT"
] | null | null | null |
# CountFirstCharaters
# --------------------------------------
# It counts how many times a character appears at the beginning of a line
def CountFirstCharacters (Line, Character):
n = 0
for letter in Line:
if letter == Character:
n = n + 1
else:
return n
# Remove all the Character characters from the li... | 23.833333 | 73 | 0.664336 | 53 | 429 | 5.377358 | 0.566038 | 0.136842 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.184149 | 429 | 17 | 74 | 25.235294 | 0.808571 | 0.41958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
737442c51837f7a46a057cf412e65770b33b56eb | 1,069 | py | Python | examples/djangoapp/run.py | sirex/couchdbkit | e3e07245ead5c1668912d8dd713111d9cab000da | [
"MIT"
] | 1 | 2015-11-05T13:59:21.000Z | 2015-11-05T13:59:21.000Z | examples/djangoapp/run.py | sirex/couchdbkit | e3e07245ead5c1668912d8dd713111d9cab000da | [
"MIT"
] | null | null | null | examples/djangoapp/run.py | sirex/couchdbkit | e3e07245ead5c1668912d8dd713111d9cab000da | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2008,2009 Benoit Chesneau <benoitc@e-engura.org>
#
# 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.or... | 29.694444 | 75 | 0.733396 | 154 | 1,069 | 4.987013 | 0.655844 | 0.078125 | 0.033854 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.160898 | 1,069 | 35 | 76 | 30.542857 | 0.841695 | 0.592142 | 0 | 0 | 0 | 0 | 0.119332 | 0.052506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
737acda24441a8fc2e1973124614c07046d9ec25 | 702 | py | Python | api/tests/extensions/test_mongoengine.py | vanillaSlice/dawdle | 99c2cc7c59433bd5d05677218537301e2ebb1d2d | [
"MIT"
] | null | null | null | api/tests/extensions/test_mongoengine.py | vanillaSlice/dawdle | 99c2cc7c59433bd5d05677218537301e2ebb1d2d | [
"MIT"
] | 26 | 2019-07-05T09:34:02.000Z | 2020-07-10T16:22:44.000Z | api/tests/extensions/test_mongoengine.py | vanillaSlice/dawdle | 99c2cc7c59433bd5d05677218537301e2ebb1d2d | [
"MIT"
] | null | null | null | from bson.objectid import ObjectId
from dawdle.extensions.mongoengine import to_ObjectId
class TestMongoengine:
def test_to_ObjectId_None(self):
object_id = to_ObjectId(None)
assert isinstance(object_id, ObjectId)
def test_to_ObjectId_invalid(self):
object_id = to_ObjectId("invalid"... | 28.08 | 53 | 0.713675 | 89 | 702 | 5.258427 | 0.258427 | 0.188034 | 0.076923 | 0.145299 | 0.303419 | 0.209402 | 0.209402 | 0.209402 | 0.209402 | 0 | 0 | 0.029144 | 0.217949 | 702 | 24 | 54 | 29.25 | 0.823315 | 0 | 0 | 0.117647 | 0 | 0 | 0.04416 | 0.034188 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.411765 | 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 |
7381e0660ad3c9ee0e1be259ef002a5df27813f6 | 2,714 | py | Python | mkt/account/tests/test_utils_.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | mkt/account/tests/test_utils_.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | mkt/account/tests/test_utils_.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | from django.test.client import RequestFactory
from nose.tools import eq_
import mkt
import mkt.site.tests
from mkt.account.utils import purchase_list
from mkt.constants import apps
from mkt.site.fixtures import fixture
from mkt.site.utils import app_factory
from mkt.users.models import UserProfile
from mkt.webapps.mo... | 34.794872 | 77 | 0.667281 | 354 | 2,714 | 4.90113 | 0.158192 | 0.087608 | 0.080692 | 0.093372 | 0.659366 | 0.64438 | 0.626513 | 0.626513 | 0.626513 | 0.626513 | 0 | 0.010921 | 0.224024 | 2,714 | 77 | 78 | 35.246753 | 0.812915 | 0 | 0 | 0.484375 | 0 | 0 | 0.008475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140625 | false | 0 | 0.15625 | 0 | 0.328125 | 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 |
738219f8c2a63031986ecf1050339f81886a66df | 1,203 | py | Python | shhh/enums.py | smallwat3r/shhh | d49722011fb0ef796d62c6bbe42775796138e750 | [
"MIT"
] | 243 | 2019-09-17T23:29:38.000Z | 2022-03-29T07:29:36.000Z | shhh/enums.py | smallwat3r/shhh | d49722011fb0ef796d62c6bbe42775796138e750 | [
"MIT"
] | 213 | 2019-09-18T12:52:18.000Z | 2022-03-31T16:07:15.000Z | shhh/enums.py | smallwat3r/shhh | d49722011fb0ef796d62c6bbe42775796138e750 | [
"MIT"
] | 33 | 2019-09-18T12:59:01.000Z | 2022-03-25T16:42:09.000Z | from enum import Enum, IntEnum
class LivenessClient(Enum):
"""Liveness client type."""
WEB = "web"
TASK = "task"
class ReadTriesValues(IntEnum):
"""Enum of allowed number of tries to read secrets."""
THREE = 3
FIVE = 5
TEN = 10
@classmethod
def default(cls): # pylint: disable... | 21.872727 | 80 | 0.61596 | 150 | 1,203 | 4.773333 | 0.573333 | 0.058659 | 0.036313 | 0.067039 | 0.195531 | 0.195531 | 0.195531 | 0.195531 | 0.195531 | 0.195531 | 0 | 0.030201 | 0.256858 | 1,203 | 54 | 81 | 22.277778 | 0.770694 | 0.248545 | 0 | 0.147059 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.029412 | 0.058824 | 0.911765 | 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 |
73901488e0b324580897d73f2b54a8b5d89ba50e | 2,043 | py | Python | discretize/utils/codeutils.py | bluetyson/discretize | a4ead91d6a1f84658ab20946da5fa86dc9ccc831 | [
"MIT"
] | null | null | null | discretize/utils/codeutils.py | bluetyson/discretize | a4ead91d6a1f84658ab20946da5fa86dc9ccc831 | [
"MIT"
] | null | null | null | discretize/utils/codeutils.py | bluetyson/discretize | a4ead91d6a1f84658ab20946da5fa86dc9ccc831 | [
"MIT"
] | null | null | null | from __future__ import print_function, division
import numpy as np
import sys
scalarTypes = (complex, float, int, np.number)
if sys.version_info < (3,):
scalarTypes += (long, )
def isScalar(f):
if isinstance(f, scalarTypes):
return True
elif isinstance(f, np.ndarray) and f.size == 1 and isinstanc... | 28.375 | 135 | 0.608908 | 260 | 2,043 | 4.719231 | 0.488462 | 0.0163 | 0.03423 | 0.0163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007412 | 0.273617 | 2,043 | 71 | 136 | 28.774648 | 0.819407 | 0.312286 | 0 | 0.055556 | 0 | 0.027778 | 0.102545 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.138889 | false | 0.055556 | 0.083333 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7392320929ed1a81fa1001d31095ccde8f31a456 | 2,983 | py | Python | server/start.py | mikucy/Grimm | bccd6f07ec15d08dec746c53418e09cc1a163bfd | [
"MIT"
] | null | null | null | server/start.py | mikucy/Grimm | bccd6f07ec15d08dec746c53418e09cc1a163bfd | [
"MIT"
] | null | null | null | server/start.py | mikucy/Grimm | bccd6f07ec15d08dec746c53418e09cc1a163bfd | [
"MIT"
] | null | null | null | #
# File: start.py
# Copyright: Grimm Project, Ren Pin NGO, all rights reserved.
# License: MIT
# ------------------------------------------------------------------------- #
# Authors: Ming Li(adagio.ming@gmail.com)
#
# Description: start whole back-end service.
#
# To-Dos:
# 1. make other supplements if needed.
#
#... | 27.62037 | 93 | 0.649346 | 413 | 2,983 | 4.590799 | 0.399516 | 0.022152 | 0.031646 | 0.035865 | 0.169831 | 0.084388 | 0.030591 | 0 | 0 | 0 | 0 | 0.009374 | 0.213208 | 2,983 | 107 | 94 | 27.878505 | 0.798466 | 0.331545 | 0 | 0.173077 | 0 | 0 | 0.081925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.115385 | 0.230769 | 0 | 0.25 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7393d088322482d234bf76bad4bd08c3e713095a | 1,265 | py | Python | examples/state_machine_examples/global_timers/global_timer_example_pwm_loop_n_times.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 1 | 2021-01-18T08:18:22.000Z | 2021-01-18T08:18:22.000Z | examples/state_machine_examples/global_timers/global_timer_example_pwm_loop_n_times.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 1 | 2020-09-18T20:46:11.000Z | 2020-12-29T14:55:20.000Z | examples/state_machine_examples/global_timers/global_timer_example_pwm_loop_n_times.py | ckarageorgkaneen/pybpod-api | ebccef800ae1abf3b6a643ff33166fab2096c780 | [
"MIT"
] | 3 | 2020-09-12T15:32:11.000Z | 2022-03-11T23:08:03.000Z | % Example state matrix: A global timer in "loop mode" blinks port2 LED 5 times before terminating.
% Setting 'Loop' to 0 disables loop mode (one-shot). 1 = loop until canceled, 2-255 = discrete number of loops
% It is triggered in the first state. Next, the state machine goes into a state
% where it waits for two even... | 50.6 | 110 | 0.641107 | 147 | 1,265 | 5.517007 | 0.544218 | 0.007398 | 0.051788 | 0.066584 | 0.133169 | 0.133169 | 0 | 0 | 0 | 0 | 0 | 0.03408 | 0.188142 | 1,265 | 24 | 111 | 52.708333 | 0.755599 | 0 | 0 | 0.227273 | 0 | 0 | 0.292722 | 0.066456 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
739930dbcc08d5e6c8a0e3c1929095edd6fcdf5c | 3,308 | py | Python | pymultimatic/model/room.py | oliverpell/pymultiMATIC | f4029bdd7d043b9d9f6411da13596535c89c077b | [
"MIT"
] | 30 | 2019-12-01T16:04:11.000Z | 2022-02-28T09:23:52.000Z | pymultimatic/model/room.py | oliverpell/pymultiMATIC | f4029bdd7d043b9d9f6411da13596535c89c077b | [
"MIT"
] | 43 | 2019-11-09T18:55:10.000Z | 2022-02-25T20:05:55.000Z | pymultimatic/model/room.py | oliverpell/pymultiMATIC | f4029bdd7d043b9d9f6411da13596535c89c077b | [
"MIT"
] | 7 | 2020-08-03T08:44:18.000Z | 2022-02-27T10:15:46.000Z | """Groups everything related to a room."""
from datetime import datetime
from typing import List, Optional
import attr
from . import ActiveMode, Component, Function, OperatingModes, constants
@attr.s
class Device:
"""This is a physical device inside a :class:`Room`. It can be a VR50
VR51 or VR52.
Args:... | 35.569892 | 95 | 0.666868 | 441 | 3,308 | 4.913832 | 0.331066 | 0.027688 | 0.041532 | 0.025842 | 0.149977 | 0.092755 | 0.035072 | 0.035072 | 0.035072 | 0 | 0 | 0.00521 | 0.245768 | 3,308 | 92 | 96 | 35.956522 | 0.863327 | 0.413241 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.025 | 0.1 | 0 | 0.55 | 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 |
739b126e49c808cd62e008caa214a3613f9e7d3a | 1,751 | py | Python | solutions/019_remove_nth_node_from_end_of_list.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | solutions/019_remove_nth_node_from_end_of_list.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | solutions/019_remove_nth_node_from_end_of_list.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | # Given a linked list, remove the nth node from the end of list and return its head.
# For example,
# Given linked list: 1->2->3->4->5, and n = 2.
# After removing the second node from the end, the linked list becomes 1->2->3->5.
# Note:
# Given n will always be valid.
# Try to do this in one pass.
# Defin... | 19.674157 | 85 | 0.511708 | 243 | 1,751 | 3.666667 | 0.345679 | 0.044893 | 0.040404 | 0.031425 | 0.031425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042002 | 0.360937 | 1,751 | 88 | 86 | 19.897727 | 0.754245 | 0.43518 | 0 | 0.060606 | 0 | 0 | 0.023085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
73ac31f1665e94bc974aab6eb61c51dd53f4d257 | 7,115 | py | Python | advanced/21_interfaces.py | duckherder/python-reminders | 23f650142b0745dbd7a51445aba186d85933300b | [
"MIT"
] | null | null | null | advanced/21_interfaces.py | duckherder/python-reminders | 23f650142b0745dbd7a51445aba186d85933300b | [
"MIT"
] | null | null | null | advanced/21_interfaces.py | duckherder/python-reminders | 23f650142b0745dbd7a51445aba186d85933300b | [
"MIT"
] | null | null | null | """Implementing interfaces in Python."""
import abc # abc = abstract base class
print("\nclass are objects and type and class can mostly be used to mean the same in Python but there are diffs...")
print("difference in attributes between object and type (metaclass = an object)", set(dir(type)) - set(dir(objec... | 41.852941 | 119 | 0.733661 | 795 | 7,115 | 6.373585 | 0.231447 | 0.02763 | 0.056838 | 0.071048 | 0.335504 | 0.279653 | 0.235445 | 0.228932 | 0.206434 | 0.196566 | 0 | 0 | 0.185102 | 7,115 | 169 | 120 | 42.100592 | 0.873922 | 0.179621 | 0 | 0.38835 | 0 | 0.009709 | 0.326833 | 0.082485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174757 | false | 0.038835 | 0.009709 | 0 | 0.31068 | 0.514563 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
73b12526b4d5edb3901062297b4e27b1e6799a6c | 1,720 | py | Python | expertai/nlapi/v1/validate.py | DavidBakerEffendi/nlapi-python | a12fe8abc710824f2b8abe2154d0f193276a4ac7 | [
"Apache-2.0"
] | 36 | 2020-07-06T07:21:12.000Z | 2022-03-28T01:34:12.000Z | expertai/nlapi/v1/validate.py | DavidBakerEffendi/nlapi-python | a12fe8abc710824f2b8abe2154d0f193276a4ac7 | [
"Apache-2.0"
] | 14 | 2020-09-16T17:53:01.000Z | 2022-03-17T14:48:01.000Z | expertai/nlapi/v1/validate.py | DavidBakerEffendi/nlapi-python | a12fe8abc710824f2b8abe2154d0f193276a4ac7 | [
"Apache-2.0"
] | 14 | 2020-10-23T14:55:42.000Z | 2021-11-08T19:23:23.000Z | # Copyright (c) 2020 original authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 36.595745 | 74 | 0.706395 | 234 | 1,720 | 5.047009 | 0.457265 | 0.053345 | 0.047417 | 0.027096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007375 | 0.211628 | 1,720 | 46 | 75 | 37.391304 | 0.863569 | 0.398256 | 0 | 0 | 0 | 0 | 0.057827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.095238 | 0.47619 | 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 |
73b83df2739d775222febf51f793a83c797752f3 | 504 | py | Python | client/submissions.py | grimpy/hexa-a | 556e9a2a70758bf9c7d70f91776d361b40524c78 | [
"Apache-2.0"
] | 3 | 2018-02-05T11:43:04.000Z | 2019-02-22T18:11:55.000Z | client/submissions.py | grimpy/hexa-a | 556e9a2a70758bf9c7d70f91776d361b40524c78 | [
"Apache-2.0"
] | 4 | 2019-03-26T09:51:43.000Z | 2019-03-31T06:41:14.000Z | client/submissions.py | grimpy/hexa-a | 556e9a2a70758bf9c7d70f91776d361b40524c78 | [
"Apache-2.0"
] | 1 | 2019-03-03T20:55:21.000Z | 2019-03-03T20:55:21.000Z | class Submissions:
def __init__(self, client):
self.client = client
def list(self, groupId, assignmentId):
url = self.client.api_url + '/groups/' + groupId + '/assignments/' + assignmentId + '/submissions'
method = 'get'
return self.client.api_handler(url=url, method=method)
... | 36 | 106 | 0.640873 | 57 | 504 | 5.526316 | 0.315789 | 0.190476 | 0.165079 | 0.101587 | 0.457143 | 0.336508 | 0.336508 | 0.336508 | 0.336508 | 0.336508 | 0 | 0 | 0.232143 | 504 | 13 | 107 | 38.769231 | 0.813953 | 0 | 0 | 0.363636 | 0 | 0 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73baa232f38b602e24bd9ea22a7c7a00fd0cb8e8 | 1,025 | py | Python | pygotham/utils.py | PyGotham/pygotham | 310508c16dabf2ce9aaf0c2624132d725f71143b | [
"BSD-3-Clause"
] | 19 | 2015-03-03T19:50:55.000Z | 2019-11-19T17:55:33.000Z | pygotham/utils.py | PyGotham/pygotham | 310508c16dabf2ce9aaf0c2624132d725f71143b | [
"BSD-3-Clause"
] | 124 | 2015-01-23T06:28:44.000Z | 2020-10-03T12:59:30.000Z | pygotham/utils.py | PyGotham/pygotham | 310508c16dabf2ce9aaf0c2624132d725f71143b | [
"BSD-3-Clause"
] | 21 | 2015-04-15T03:01:07.000Z | 2020-10-03T12:55:38.000Z | """Application helper utilities."""
import importlib
import pkgutil
from flask import Blueprint
__all__ = ('check_required_settings', 'register_blueprints',)
DOES_NOT_EXIST = '!@DNE@!' # Placeholder value to use for missing settings.
REQUIRED_SETTINGS = 'SECRET_KEY', 'SECURITY_PASSWORD_SALT'
def check_required_s... | 34.166667 | 78 | 0.68878 | 124 | 1,025 | 5.451613 | 0.5 | 0.118343 | 0.053254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199024 | 1,025 | 29 | 79 | 35.344828 | 0.823386 | 0.177561 | 0 | 0 | 0 | 0 | 0.154776 | 0.054414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.222222 | 0 | 0.333333 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
73c0601e32d89fa1c91bbaf34a2d59e5c563a425 | 851 | py | Python | sandbox/shuffle-reverse-rotary.py | maarten1983/khmer | 417aaa57f0659685c01887a6910de1c08d0a73e5 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T15:12:44.000Z | 2019-11-02T15:12:44.000Z | sandbox/shuffle-reverse-rotary.py | ibest/khmer | fbc307abd64363b329745709846d77444ce0c025 | [
"BSD-3-Clause"
] | null | null | null | sandbox/shuffle-reverse-rotary.py | ibest/khmer | fbc307abd64363b329745709846d77444ce0c025 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python2
#
# This file is part of khmer, http://github.com/ged-lab/khmer/, and is
# Copyright (C) Michigan State University, 2009-2013. It is licensed under
# the three-clause BSD license; see doc/LICENSE.txt.
# Contact: khmer-project@idyll.org
#
import sys
import screed
import os.path
ROTARY_SIZE = 100... | 26.59375 | 74 | 0.641598 | 134 | 851 | 4.014925 | 0.58209 | 0.092937 | 0.02974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037258 | 0.211516 | 851 | 31 | 75 | 27.451613 | 0.764531 | 0.291422 | 0 | 0 | 0 | 0 | 0.129195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
73c0cebf643e89261bf6918f962c95a084ef5de0 | 1,414 | py | Python | backtracking/n-queen-problem.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 4 | 2020-07-19T03:49:43.000Z | 2021-06-29T07:13:39.000Z | backtracking/n-queen-problem.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 1 | 2020-04-01T06:40:45.000Z | 2020-04-01T06:41:22.000Z | backtracking/n-queen-problem.py | itsvinayak/cracking_the_codeing_interview | 7347f7e831b306c4c4314bd2d41809a5b5741497 | [
"MIT"
] | 1 | 2020-08-14T18:14:04.000Z | 2020-08-14T18:14:04.000Z | class NQ:
def __init__(self, size):
self.n = size
self.board = self.generateBoard()
def solve(self):
if self.__util(0) == False:
print("Solution does not exist")
self.printBoard()
def __util(self, col):
if col >= self.n:
return ... | 23.966102 | 65 | 0.456153 | 171 | 1,414 | 3.625731 | 0.22807 | 0.056452 | 0.08871 | 0.096774 | 0.116129 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.422914 | 1,414 | 58 | 66 | 24.37931 | 0.745098 | 0 | 0 | 0.204545 | 1 | 0 | 0.023599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0 | 0 | 0.318182 | 0.136364 | 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 |
73c45fbb7c2a7fc254e798c9cac90e0882bdc11f | 559 | py | Python | 2020-08-26/api/models/user.py | santiagosilas/2020.1-WD | 683e8707867cd977ca72ad1829a8f3a67a91cdd9 | [
"MIT"
] | null | null | null | 2020-08-26/api/models/user.py | santiagosilas/2020.1-WD | 683e8707867cd977ca72ad1829a8f3a67a91cdd9 | [
"MIT"
] | null | null | null | 2020-08-26/api/models/user.py | santiagosilas/2020.1-WD | 683e8707867cd977ca72ad1829a8f3a67a91cdd9 | [
"MIT"
] | null | null | null | from datetime import datetime
from flask_sqlalchemy import SQLAlchemy
from api import db, ma
class User(db.Model):
id = db.Column(db.Integer, primary_key = True)
username = db.Column(db.String(20), unique=True)
email = db.Column(db.String(50), unique=True)
created = db.Column(db.DateTime)
def __in... | 29.421053 | 52 | 0.660107 | 74 | 559 | 4.905405 | 0.432432 | 0.088154 | 0.110193 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009195 | 0.221825 | 559 | 19 | 53 | 29.421053 | 0.825287 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
73c57a657f885065ce6c2c32cd8f0cfa1b44c091 | 1,063 | py | Python | app/core/containr/index.py | JordanDekker/ContainR | e88587dd1ff69a7fc3c1477298e1f37607a4afcb | [
"MIT"
] | null | null | null | app/core/containr/index.py | JordanDekker/ContainR | e88587dd1ff69a7fc3c1477298e1f37607a4afcb | [
"MIT"
] | null | null | null | app/core/containr/index.py | JordanDekker/ContainR | e88587dd1ff69a7fc3c1477298e1f37607a4afcb | [
"MIT"
] | null | null | null | from os import path, sep
from flask import session
from app.core.containr.check_taxonomy import *
from app.core.containr.parse_blast_results import *
from app.core.containr.load_data import *
from app.core.containr.BLAST import *
def containr_main(ref_file, fastq_df, blastOptions):
"""Runs the blast script, taxo... | 37.964286 | 128 | 0.722484 | 156 | 1,063 | 4.711538 | 0.429487 | 0.073469 | 0.059864 | 0.103401 | 0.235374 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002299 | 0.181562 | 1,063 | 27 | 129 | 39.37037 | 0.842529 | 0.301035 | 0 | 0 | 0 | 0 | 0.106892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 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 |
73d176ace21c4b1da10a202b2e4f0efaa8c92238 | 304 | py | Python | app/aws/s3.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/aws/s3.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/aws/s3.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | import os
import boto3
from botocore.client import Config as botoConfig
from config import Config, Network
CFG = Config[Network]
S3 = boto3.resource(
's3',
aws_access_key_id=CFG.awsAccessKeyId,
aws_secret_access_key=CFG.awsSecretAccessKey,
config=botoConfig(signature_version='s3v4')
)
| 21.714286 | 49 | 0.776316 | 40 | 304 | 5.725 | 0.575 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.144737 | 304 | 13 | 50 | 23.384615 | 0.857692 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
73da858e8940ca644d910b9de2960ba518bd096c | 992 | py | Python | setup.py | peterkmurphy/menuplaceholder | d2dc0f5a281ee2ec7ac097017b5ceaebe75fcdf5 | [
"BSD-3-Clause"
] | null | null | null | setup.py | peterkmurphy/menuplaceholder | d2dc0f5a281ee2ec7ac097017b5ceaebe75fcdf5 | [
"BSD-3-Clause"
] | 1 | 2018-04-07T09:06:50.000Z | 2018-04-07T22:12:37.000Z | setup.py | peterkmurphy/menuplaceholder | d2dc0f5a281ee2ec7ac097017b5ceaebe75fcdf5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(name='menuplaceholder',
version='0.1.6',
description='Placeholder items for Mezzanine menus.',
author='Peter Murphy',
author_email='peterkmurphy@gmail.com',
# url='http://pypi.python.org/pypi/glyphviewer/',
packages=['menuplaceholder'],
... | 33.066667 | 75 | 0.635081 | 104 | 992 | 5.990385 | 0.778846 | 0.035313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011509 | 0.211694 | 992 | 29 | 76 | 34.206897 | 0.785166 | 0.142137 | 0 | 0 | 0 | 0 | 0.489387 | 0.025943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73dbdede46f6da814caed3e3411210087b2ba344 | 432 | py | Python | codes_/0139_Word_Break.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0139_Word_Break.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0139_Word_Break.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [139. Word Break](https://leetcode.com/problems/word-break/)
class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> bool:
@functools.lru_cache(None)
def check(s):
if not s:
return True
for word in wordDict:
if s.startswith(wor... | 30.857143 | 65 | 0.525463 | 52 | 432 | 4.346154 | 0.615385 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01083 | 0.358796 | 432 | 13 | 66 | 33.230769 | 0.805054 | 0.145833 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 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 |
73e093ef28a85e4c2dd39116a86e1beae1369362 | 670 | py | Python | test/sources/test_curse_forge.py | snallapa/mod_updater | 783ddf09da9d3909ce3d466f148218dbc51e29c9 | [
"MIT"
] | null | null | null | test/sources/test_curse_forge.py | snallapa/mod_updater | 783ddf09da9d3909ce3d466f148218dbc51e29c9 | [
"MIT"
] | 1 | 2021-05-15T20:08:33.000Z | 2021-05-22T21:19:41.000Z | test/sources/test_curse_forge.py | snallapa/mod_updater | 783ddf09da9d3909ce3d466f148218dbc51e29c9 | [
"MIT"
] | null | null | null | from .base import SourceTest
from sources.curse_forge import CurseForgeSource
import os
class TestCurseForge(SourceTest):
def test_download(self):
g = CurseForgeSource("32274", "release", self.TEST_MODS_FOLDER, "1.16.5")
g.download()
self.assertTrue(os.path.exists(f"{self.TEST_MODS_FOLDER}... | 33.5 | 95 | 0.649254 | 92 | 670 | 4.586957 | 0.380435 | 0.075829 | 0.113744 | 0.170616 | 0.454976 | 0.454976 | 0.454976 | 0.454976 | 0.454976 | 0.454976 | 0 | 0.06015 | 0.20597 | 670 | 19 | 96 | 35.263158 | 0.733083 | 0 | 0 | 0.25 | 0 | 0 | 0.238806 | 0.152239 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.1875 | 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 |
73e20546ba41f8b5a7e13bcddbc62c61bace715d | 4,576 | py | Python | tests/unit/test_charm.py | davigar15/keystone-operator | 38afb9704d16bef7c1d316b20c5822468dc9870f | [
"Apache-2.0"
] | null | null | null | tests/unit/test_charm.py | davigar15/keystone-operator | 38afb9704d16bef7c1d316b20c5822468dc9870f | [
"Apache-2.0"
] | null | null | null | tests/unit/test_charm.py | davigar15/keystone-operator | 38afb9704d16bef7c1d316b20c5822468dc9870f | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
import pytest
from ops import pebble
from ops.model import ActiveStatus, BlockedStatus
from ops.testing import Harness
from pytest_mock import MockerFixture
from charm import FERNET_KEY_REPOSITORY, KEYSTONE_FOLDER, KeystoneCharm
@pytest.fixtu... | 38.133333 | 98 | 0.721591 | 577 | 4,576 | 5.412478 | 0.233969 | 0.069164 | 0.069164 | 0.055716 | 0.432277 | 0.370157 | 0.307717 | 0.254883 | 0.224143 | 0.224143 | 0 | 0.00888 | 0.163243 | 4,576 | 119 | 99 | 38.453782 | 0.806738 | 0.019012 | 0 | 0.134021 | 0 | 0 | 0.156557 | 0.011597 | 0 | 0 | 0 | 0 | 0.134021 | 1 | 0.082474 | false | 0.051546 | 0.061856 | 0 | 0.154639 | 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 |
73e6934a10c4fa5b4361ba9f2051d177fa0d4036 | 6,079 | py | Python | utils/DataCleanser.py | MattBcool/NLPTalk | 74b3e39e45655bcb7bdb2bd1817b6ab9966c9ef9 | [
"MIT"
] | 1 | 2022-03-09T22:03:41.000Z | 2022-03-09T22:03:41.000Z | utils/DataCleanser.py | MattBcool/NLPTalk | 74b3e39e45655bcb7bdb2bd1817b6ab9966c9ef9 | [
"MIT"
] | 1 | 2022-03-30T17:52:36.000Z | 2022-03-30T19:16:53.000Z | utils/DataCleanser.py | MattBcool/NLPTalk | 74b3e39e45655bcb7bdb2bd1817b6ab9966c9ef9 | [
"MIT"
] | null | null | null | import pickle
import re
import string
import docx2txt
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
def save_doc_as_txt(doc_loc, new_doc_loc):
text = docx2txt.process(doc_loc)
with open(new_doc_loc, 'wb') as text_file:
print(text, file=text_file)
def read_do... | 46.761538 | 250 | 0.666886 | 835 | 6,079 | 4.786826 | 0.334132 | 0.043783 | 0.055041 | 0.054041 | 0.276958 | 0.272454 | 0.259445 | 0.243933 | 0.219915 | 0.183388 | 0 | 0.024728 | 0.215002 | 6,079 | 129 | 251 | 47.124031 | 0.812238 | 0.024346 | 0 | 0.022472 | 0 | 0.213483 | 0.561579 | 0.003558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089888 | false | 0 | 0.089888 | 0 | 0.280899 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73e70898f79dc69ed0cc6d607704497ed9534ee9 | 602 | py | Python | setup.py | bcongdon/github-contributions | 2d3163277884b079503ea3d3ba64e1a04b563f7b | [
"MIT"
] | 5 | 2018-04-27T14:27:55.000Z | 2021-11-19T18:23:02.000Z | setup.py | bcongdon/github-contributions | 2d3163277884b079503ea3d3ba64e1a04b563f7b | [
"MIT"
] | 3 | 2018-07-25T02:16:26.000Z | 2019-06-08T16:17:11.000Z | setup.py | bcongdon/github-contributions | 2d3163277884b079503ea3d3ba64e1a04b563f7b | [
"MIT"
] | 2 | 2019-06-07T16:30:35.000Z | 2022-03-18T18:48:11.000Z | #!/usr/bin/env python
from setuptools import setup
setup(name='GithubContributions',
version='0.3.0',
description='A Python interface for Github\'s user contribution system',
author='Benjamin Congdon',
author_email='me@bcon.gdn',
url='https://github.com/bcongdon/github_contributions',
... | 25.083333 | 78 | 0.551495 | 58 | 602 | 5.637931 | 0.827586 | 0.116208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016908 | 0.312292 | 602 | 23 | 79 | 26.173913 | 0.772947 | 0.033223 | 0 | 0 | 0 | 0 | 0.351119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73e8f0ecf8d4b045433834e25932a5fe9ebbaeab | 2,612 | py | Python | apiser/06/src/database/mongodb/motorbase.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | null | null | null | apiser/06/src/database/mongodb/motorbase.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | 2 | 2022-02-10T12:00:22.000Z | 2022-03-02T02:31:40.000Z | apiser/06/src/database/mongodb/motorbase.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from motor.motor_asyncio import AsyncIOMotorClient
from src.config import CONFIG
from src.utils.tools import singleton
@singleton
class MotorBase:
"""
更改mongodb连接方式 单例模式下支持多库操作
About motor's doc: https://github.com/mongodb/motor
"""
_db = {}
_collection = {}
MONGODB ... | 31.853659 | 99 | 0.617917 | 303 | 2,612 | 5.171617 | 0.214521 | 0.112317 | 0.142948 | 0.068922 | 0.44799 | 0.44799 | 0.44799 | 0.44799 | 0.44799 | 0.44799 | 0 | 0.009317 | 0.260337 | 2,612 | 81 | 100 | 32.246914 | 0.80176 | 0.138591 | 0 | 0.444444 | 0 | 0 | 0.158267 | 0.061234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.088889 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
73e97bd8a555aff4028d5506fa74d524522a9b99 | 1,730 | py | Python | Machine_Learning_0/Tech_With_Tim/KNN__SVM_and_Kmeans/Intro To K Means Clustering/k_means.py | CyborgVillager/Ai_Development_0 | 0027bd12060c0988c86fe0b4da5f9cd6f84451bd | [
"MIT"
] | null | null | null | Machine_Learning_0/Tech_With_Tim/KNN__SVM_and_Kmeans/Intro To K Means Clustering/k_means.py | CyborgVillager/Ai_Development_0 | 0027bd12060c0988c86fe0b4da5f9cd6f84451bd | [
"MIT"
] | null | null | null | Machine_Learning_0/Tech_With_Tim/KNN__SVM_and_Kmeans/Intro To K Means Clustering/k_means.py | CyborgVillager/Ai_Development_0 | 0027bd12060c0988c86fe0b4da5f9cd6f84451bd | [
"MIT"
] | null | null | null | from kmeans_source import *
# link for more info -> https://techwithtim.net/tutorials/machine-learning-python/k-means-2/
# https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html
# https://scikit-learn.org/stable/modules/clustering.html
# https://scikit-learn.org/stable/modules/clustering.html#clu... | 43.25 | 92 | 0.707514 | 254 | 1,730 | 4.720472 | 0.452756 | 0.087573 | 0.016681 | 0.025021 | 0.251877 | 0.181818 | 0.095079 | 0.095079 | 0.095079 | 0.015013 | 0 | 0.014134 | 0.182081 | 1,730 | 39 | 93 | 44.358974 | 0.833216 | 0.483237 | 0 | 0 | 1 | 0.05 | 0.097032 | 0.050228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73ec94c5cb8d5fcd84944a4b158e2b31604629ac | 1,014 | py | Python | tools/supervisor.py | ApsaraDB/PolarDB-ClusterManager | dd1c4312b1202023eb693174e64be660d5c49140 | [
"Apache-2.0"
] | 2 | 2021-10-18T20:26:17.000Z | 2021-10-20T06:30:07.000Z | tools/supervisor.py | ApsaraDB/PolarDB-ClusterManager | dd1c4312b1202023eb693174e64be660d5c49140 | [
"Apache-2.0"
] | null | null | null | tools/supervisor.py | ApsaraDB/PolarDB-ClusterManager | dd1c4312b1202023eb693174e64be660d5c49140 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# _*_ coding:UTF-8
import subprocess
import sys
import time
import logging
def run_supervisor():
failover_sleep_time = 5
log_path = sys.argv[1] + "/supervisor.log"
pid_file = sys.argv[1] + "/cm_pid"
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
DATE_FORMAT = "%m/%d/%Y... | 25.35 | 108 | 0.625247 | 142 | 1,014 | 4.288732 | 0.535211 | 0.045977 | 0.055829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006427 | 0.232742 | 1,014 | 39 | 109 | 26 | 0.77635 | 0.032544 | 0 | 0 | 0 | 0 | 0.201226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
73f2b37826250a9d29f98f999667bc32ccb66b04 | 1,307 | py | Python | lib/airu/dbmodels.py | jon-whit/airU-pi | 15a37ad52b387363f437c222b6bb88840582bb72 | [
"Apache-2.0"
] | 1 | 2021-05-01T14:56:36.000Z | 2021-05-01T14:56:36.000Z | lib/airu/dbmodels.py | jon-whit/airU-pi | 15a37ad52b387363f437c222b6bb88840582bb72 | [
"Apache-2.0"
] | 5 | 2016-04-11T16:24:21.000Z | 2016-05-11T06:38:42.000Z | lib/airu/dbmodels.py | jon-whit/airU-pi | 15a37ad52b387363f437c222b6bb88840582bb72 | [
"Apache-2.0"
] | null | null | null | import datetime
from peewee import *
db = SqliteDatabase(None)
class BaseModel(Model):
class Meta:
database = db
class AirMeasurement(BaseModel):
"""
An AirMeasurement model represents a single data point collected by an airU air quality
station.
An AirMeasurement entry has the following... | 38.441176 | 132 | 0.68707 | 154 | 1,307 | 5.811688 | 0.571429 | 0.06257 | 0.060335 | 0.067039 | 0.093855 | 0.093855 | 0.093855 | 0 | 0 | 0 | 0 | 0.009814 | 0.220352 | 1,307 | 34 | 133 | 38.441176 | 0.868499 | 0.533282 | 0 | 0 | 0 | 0 | 0.105925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.866667 | 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 |
73f63bd220cf314d59a3e8f9008efe5ad0659568 | 10,757 | py | Python | pyNastran/converters/nastran/gui/menus/modify_map.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 293 | 2015-03-22T20:22:01.000Z | 2022-03-14T20:28:24.000Z | pyNastran/converters/nastran/gui/menus/modify_map.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 512 | 2015-03-14T18:39:27.000Z | 2022-03-31T16:15:43.000Z | pyNastran/converters/nastran/gui/menus/modify_map.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 136 | 2015-03-19T03:26:06.000Z | 2022-03-25T22:14:54.000Z | from itertools import chain
class Var:
def __init__(self, name, var, vartype='lineedit', pulldown_objs=None,
pulldown_type_limit=None, enabled=True, pulldown_allow_zero=False, required=True):
self.name = name
self.var = var
self.vartype = vartype
self.pulldown_objs ... | 41.214559 | 113 | 0.548573 | 1,156 | 10,757 | 5.004325 | 0.191176 | 0.20484 | 0.158686 | 0.144685 | 0.597234 | 0.54503 | 0.487468 | 0.438202 | 0.374935 | 0.347969 | 0 | 0.014786 | 0.245515 | 10,757 | 260 | 114 | 41.373077 | 0.698004 | 0.043042 | 0 | 0.363248 | 0 | 0 | 0.267944 | 0.012352 | 0 | 0 | 0 | 0 | 0.004274 | 1 | 0.012821 | false | 0 | 0.004274 | 0.004274 | 0.029915 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73fc8fb4ba8bc795bd4e614b3f2568790940c7a2 | 8,409 | py | Python | code/chapter-8/experiment-scripts/script.py | dnaveenr/Practical-Deep-Learning-Book | fb7a2e02d3e033085656f6725f430e07b46b9982 | [
"MIT"
] | 3 | 2020-05-08T02:50:46.000Z | 2020-05-27T22:59:56.000Z | code/chapter-8/experiment-scripts/script.py | dnaveenr/Practical-Deep-Learning-Book | fb7a2e02d3e033085656f6725f430e07b46b9982 | [
"MIT"
] | null | null | null | code/chapter-8/experiment-scripts/script.py | dnaveenr/Practical-Deep-Learning-Book | fb7a2e02d3e033085656f6725f430e07b46b9982 | [
"MIT"
] | 1 | 2020-03-25T03:28:28.000Z | 2020-03-25T03:28:28.000Z | import httplib, urllib, base64
import sys
import os
from os import listdir
from os.path import isfile, join
import json
import base64
from watson_developer_cloud import VisualRecognitionV3
from clarifai.rest import ClarifaiApp
from clarifai.rest import Image as ClImage
from urlparse import urlparse
import boto3
def g... | 34.747934 | 165 | 0.589131 | 877 | 8,409 | 5.525656 | 0.254276 | 0.074288 | 0.045398 | 0.03962 | 0.37371 | 0.334915 | 0.31882 | 0.312629 | 0.24804 | 0.232769 | 0 | 0.01029 | 0.295041 | 8,409 | 242 | 166 | 34.747934 | 0.807186 | 0.036865 | 0 | 0.419048 | 0 | 0.004762 | 0.146619 | 0.038324 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061905 | null | null | 0.07619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fb447eaf5188ee71b28bb237dbb4ba5fe77f6f46 | 1,155 | py | Python | busy_beaver/apps/github_integration/webhook/event_subscription.py | BinSquare/busy-beaver | b8063a7e434eb47e638697719896880781f9783f | [
"MIT"
] | 55 | 2019-05-05T01:20:58.000Z | 2022-01-10T18:03:05.000Z | busy_beaver/apps/github_integration/webhook/event_subscription.py | BinSquare/busy-beaver | b8063a7e434eb47e638697719896880781f9783f | [
"MIT"
] | 222 | 2019-05-03T16:31:26.000Z | 2021-08-28T23:49:03.000Z | busy_beaver/apps/github_integration/webhook/event_subscription.py | BinSquare/busy-beaver | b8063a7e434eb47e638697719896880781f9783f | [
"MIT"
] | 19 | 2019-04-27T19:49:32.000Z | 2020-06-30T19:52:09.000Z | from busy_beaver.apps.github_integration.webhook.workflow import (
generate_new_issue_message,
generate_new_pull_request_message,
generate_new_release_message,
)
from busy_beaver.clients import chipy_slack
from busy_beaver.toolbox import EventEmitter
github_event_dispatcher = EventEmitter()
def process_g... | 25.666667 | 83 | 0.786147 | 155 | 1,155 | 5.43871 | 0.296774 | 0.104389 | 0.174377 | 0.136418 | 0.326216 | 0.266904 | 0.189798 | 0.189798 | 0.144721 | 0.144721 | 0 | 0 | 0.127273 | 1,155 | 44 | 84 | 26.25 | 0.83631 | 0 | 0 | 0.193548 | 1 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.032258 | 0.096774 | 0.032258 | 0.322581 | 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 |
fb5125085a59714ddc7e36e1e37d4a4e7f7a9588 | 1,286 | py | Python | src/masonite/middleware/SecureHeadersMiddleware.py | rickavmaniac/masonite | cf085a806123ef267ef0d07d828dcca0a6d1e6b2 | [
"MIT"
] | 1 | 2022-02-24T06:21:18.000Z | 2022-02-24T06:21:18.000Z | src/masonite/middleware/SecureHeadersMiddleware.py | rickavmaniac/masonite | cf085a806123ef267ef0d07d828dcca0a6d1e6b2 | [
"MIT"
] | null | null | null | src/masonite/middleware/SecureHeadersMiddleware.py | rickavmaniac/masonite | cf085a806123ef267ef0d07d828dcca0a6d1e6b2 | [
"MIT"
] | null | null | null | """SecureHeaders Middleware."""
from ..response import Response
class SecureHeadersMiddleware:
"""SecureHeaders Middleware."""
def __init__(self, response: Response):
"""Inject Any Dependencies From The Service Container.
Arguments:
Response {masonite.response.Response} -- The M... | 31.365854 | 81 | 0.608865 | 129 | 1,286 | 6.031008 | 0.550388 | 0.046272 | 0.051414 | 0.053985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009698 | 0.278383 | 1,286 | 40 | 82 | 32.15 | 0.828664 | 0.268274 | 0 | 0.090909 | 0 | 0 | 0.296629 | 0.08764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.090909 | 0.090909 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fb516168d8f6563db7e6ec5f8b3a16282108c0a7 | 1,015 | py | Python | tests/test_match_data.py | xtaraim/padatious | 91fe49a704664e51bc49f44a795fe29ecb934e78 | [
"Apache-2.0"
] | 1 | 2018-02-24T08:22:44.000Z | 2018-02-24T08:22:44.000Z | tests/test_match_data.py | xtaraim/padatious | 91fe49a704664e51bc49f44a795fe29ecb934e78 | [
"Apache-2.0"
] | null | null | null | tests/test_match_data.py | xtaraim/padatious | 91fe49a704664e51bc49f44a795fe29ecb934e78 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Mycroft AI, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 36.25 | 92 | 0.702463 | 144 | 1,015 | 4.868056 | 0.611111 | 0.085592 | 0.03709 | 0.045649 | 0.116976 | 0.116976 | 0.116976 | 0.116976 | 0.116976 | 0.116976 | 0 | 0.014563 | 0.188177 | 1,015 | 27 | 93 | 37.592593 | 0.836165 | 0.544828 | 0 | 0 | 0 | 0 | 0.136161 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
fb5219f01661b2e5eb802d123bef7271053118c1 | 531 | py | Python | tests/integration/api_v1/test_transfers.py | silverlogic/plum-back | a3c5e0ec2bfd060456d70146d29bf4c70974f132 | [
"MIT"
] | 1 | 2019-06-19T21:51:17.000Z | 2019-06-19T21:51:17.000Z | tests/integration/api_v1/test_transfers.py | silverlogic/plum-back | a3c5e0ec2bfd060456d70146d29bf4c70974f132 | [
"MIT"
] | null | null | null | tests/integration/api_v1/test_transfers.py | silverlogic/plum-back | a3c5e0ec2bfd060456d70146d29bf4c70974f132 | [
"MIT"
] | null | null | null | import pytest
import tests.factories as f
import tests.helpers as h
from tests.mixins import ApiMixin
pytestmark = pytest.mark.django_db
class TestKidCreate(ApiMixin):
view_name = 'transfers-list'
@pytest.fixture
def data(self):
return {
'from_card': f.CardFactory().pk,
... | 22.125 | 58 | 0.642185 | 66 | 531 | 5.030303 | 0.621212 | 0.066265 | 0.096386 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.250471 | 531 | 23 | 59 | 23.086957 | 0.826633 | 0 | 0 | 0 | 0 | 0 | 0.073446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fb535c44c618c72e411e3a0a86c74ce26ece5d4b | 610 | py | Python | Algorithms/2_Implementation/56.py | abphilip-codes/Hackerrank_DSA | bb9e233d9d45c5b14c138830602695ad4113fba4 | [
"MIT"
] | 1 | 2021-11-25T13:39:30.000Z | 2021-11-25T13:39:30.000Z | Algorithms/2_Implementation/56.py | abphilip-codes/Hackerrank_DSA | bb9e233d9d45c5b14c138830602695ad4113fba4 | [
"MIT"
] | null | null | null | Algorithms/2_Implementation/56.py | abphilip-codes/Hackerrank_DSA | bb9e233d9d45c5b14c138830602695ad4113fba4 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/flatland-space-stations/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the flatlandSpaceStations function below.
def flatlandSpaceStations(n, c):
return max(c[0], n-c[-1]-1, *[(c[z+1]-c[z])//2 for z in range(len(c)-1)])
if _... | 20.333333 | 77 | 0.634426 | 91 | 610 | 4.153846 | 0.626374 | 0.015873 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.178689 | 610 | 30 | 78 | 20.333333 | 0.736527 | 0.218033 | 0 | 0 | 0 | 0 | 0.046414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fb53a4f25598f200057e7bbbf817e1b5b31e9ad2 | 708 | py | Python | SneakPeek/setup.py | kishorevasan/securityCamera | 85e2c0271f402f47b8a51d028aa30604e261c329 | [
"MIT"
] | null | null | null | SneakPeek/setup.py | kishorevasan/securityCamera | 85e2c0271f402f47b8a51d028aa30604e261c329 | [
"MIT"
] | null | null | null | SneakPeek/setup.py | kishorevasan/securityCamera | 85e2c0271f402f47b8a51d028aa30604e261c329 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name = 'SneakPeak',
version = '1.0',
description = 'A security camera applicataion that monitors any changes and saves the images',
long_description = open('README.md').read()
url = 'https://github.com/kishorevasan/securityCamera',
author = 'Kisho... | 32.181818 | 101 | 0.54096 | 65 | 708 | 5.846154 | 0.907692 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012848 | 0.340395 | 708 | 21 | 102 | 33.714286 | 0.800857 | 0 | 0 | 0.1 | 0 | 0 | 0.436681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | 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 |
fb54f6d9003d0d86ec9052ed45074669a0566dad | 19,333 | py | Python | webbreaker/__main__.py | cclauss/webbreaker | 53050a56849028c5a800a960ff206fc442a77901 | [
"MIT"
] | null | null | null | webbreaker/__main__.py | cclauss/webbreaker | 53050a56849028c5a800a960ff206fc442a77901 | [
"MIT"
] | null | null | null | webbreaker/__main__.py | cclauss/webbreaker | 53050a56849028c5a800a960ff206fc442a77901 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Brandon Spruth (brandon.spruth2@target.com), Jim Nelson (jim.nelson2@target.com)," \
"Matt Dunaj (matthew.dunaj@target.com), Kyler Witting (Kyler.Witting@target.com)"
__copyright__ = "(C) 2018 Target Brands, Inc."
__contributors__ = ["Brandon Spr... | 39.135628 | 119 | 0.648322 | 2,075 | 19,333 | 5.896867 | 0.154217 | 0.066525 | 0.017162 | 0.011442 | 0.364825 | 0.30917 | 0.239376 | 0.220742 | 0.205051 | 0.205051 | 0 | 0.000893 | 0.247349 | 19,333 | 493 | 120 | 39.21501 | 0.840011 | 0.013862 | 0 | 0.310263 | 0 | 0.004773 | 0.279477 | 0.005615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054893 | false | 0.112172 | 0.083532 | 0 | 0.143198 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.