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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f3a04716997d73eaef4e151bd98036259ad059e | 1,183 | py | Python | src/unicon/plugins/nxos/n5k/service_statements.py | TestingBytes/unicon.plugins | 0600956d805deb4fd790aa3ef591c5d659e85de1 | [
"Apache-2.0"
] | 18 | 2019-11-23T23:14:53.000Z | 2022-01-10T01:17:08.000Z | src/unicon/plugins/nxos/n5k/service_statements.py | TestingBytes/unicon.plugins | 0600956d805deb4fd790aa3ef591c5d659e85de1 | [
"Apache-2.0"
] | 12 | 2020-11-09T20:39:25.000Z | 2022-03-22T12:46:59.000Z | src/unicon/plugins/nxos/n5k/service_statements.py | TestingBytes/unicon.plugins | 0600956d805deb4fd790aa3ef591c5d659e85de1 | [
"Apache-2.0"
] | 32 | 2020-02-12T15:42:22.000Z | 2022-03-15T16:42:10.000Z | from unicon.eal.dialogs import Statement
from .service_patterns import NxosN5kReloadPatterns
from unicon.plugins.nxos.service_statements import (login_stmt, password_stmt,
enable_vdc, admin_password)
from unicon.plugins.generic.service_statements import (save_env,
auto_provision, auto_install_dialog,
setu... | 43.814815 | 78 | 0.658495 | 128 | 1,183 | 5.710938 | 0.40625 | 0.04104 | 0.069767 | 0.057456 | 0.158687 | 0.109439 | 0.109439 | 0.109439 | 0 | 0 | 0 | 0.004745 | 0.287405 | 1,183 | 26 | 79 | 45.5 | 0.862396 | 0.062553 | 0 | 0 | 0 | 0 | 0.009946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.2 | 0 | 0.2 | 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 |
3f3edf95fac5cc6b31cb7effd1e2b59006a53ab6 | 4,675 | py | Python | backend/app.py | CMU-IDS-2020/fp-profiler | 45edb7c5f5dfcf34854057476558793bc877f031 | [
"BSD-3-Clause"
] | null | null | null | backend/app.py | CMU-IDS-2020/fp-profiler | 45edb7c5f5dfcf34854057476558793bc877f031 | [
"BSD-3-Clause"
] | null | null | null | backend/app.py | CMU-IDS-2020/fp-profiler | 45edb7c5f5dfcf34854057476558793bc877f031 | [
"BSD-3-Clause"
] | 1 | 2020-11-20T02:56:20.000Z | 2020-11-20T02:56:20.000Z | from flask import Flask, request
import os
from subprocess import Popen, PIPE
import json
from prof_file_util import load_source, load_line_profile, load_graph_profile
from linewise_barchart import linewise_barchart
from valgrind import extract_valgrind_result
from mem_issue_visualize import mem_issue_visualize
app =... | 31.802721 | 106 | 0.620535 | 630 | 4,675 | 4.412698 | 0.268254 | 0.045324 | 0.025899 | 0.015108 | 0.561511 | 0.526978 | 0.501439 | 0.501439 | 0.448201 | 0.448201 | 0 | 0.008676 | 0.235722 | 4,675 | 146 | 107 | 32.020548 | 0.769381 | 0.185241 | 0 | 0.470588 | 0 | 0 | 0.201336 | 0 | 0 | 0 | 0 | 0.020548 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.205882 | 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 |
3f3fcc2c16b2bfd7c2cf31951c3290a8d5c5992d | 355 | py | Python | Level1/Lessons76501/minari-76501.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons76501/minari-76501.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level1/Lessons76501/minari-76501.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | 1 | 2021-04-05T07:35:59.000Z | 2021-04-05T07:35:59.000Z | def solution(absolutes, signs):
answer = 0
for i in range(len(absolutes)):
if signs[i] is True:
answer += int(absolutes[i])
else:
answer -= int(absolutes[i])
return answer
#1. for문 (len(absolutes)), if signs[i] is true: answer += absolutes[i], else: answer... | 29.583333 | 100 | 0.571831 | 47 | 355 | 4.319149 | 0.446809 | 0.197044 | 0.137931 | 0.187192 | 0.315271 | 0.315271 | 0.315271 | 0.315271 | 0 | 0 | 0 | 0.011858 | 0.287324 | 355 | 12 | 101 | 29.583333 | 0.790514 | 0.326761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 |
3f40172291607ab0c848f7f1917399766b9b515c | 1,082 | py | Python | pyexcel/__init__.py | quis/pyexcel | e02f5ff871ba69184d3fb85fa8960da4e883ebdc | [
"BSD-3-Clause"
] | null | null | null | pyexcel/__init__.py | quis/pyexcel | e02f5ff871ba69184d3fb85fa8960da4e883ebdc | [
"BSD-3-Clause"
] | null | null | null | pyexcel/__init__.py | quis/pyexcel | e02f5ff871ba69184d3fb85fa8960da4e883ebdc | [
"BSD-3-Clause"
] | null | null | null | """
pyexcel
~~~~~~~~~~~~~~~~~~~
**pyexcel** is a wrapper library to read, manipulate and
write data in different excel formats: csv, ods, xls, xlsx
and xlsm. It does not support formulas, styles and charts.
:copyright: (c) 2014-2017 by Onni Software Ltd.
:license: New BSD License, see LICE... | 21.64 | 62 | 0.686691 | 145 | 1,082 | 4.751724 | 0.517241 | 0.029028 | 0.020319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010804 | 0.230129 | 1,082 | 49 | 63 | 22.081633 | 0.816327 | 0.297597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.189189 | 0 | 0.189189 | 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 |
3f42306d062bc9168cc3334b385fbe62bb7498d6 | 14,054 | py | Python | bitten/queue.py | SpamExperts/bitten | 924ae157c876eeff7957074b0c51ed4685d4f304 | [
"BSD-3-Clause"
] | null | null | null | bitten/queue.py | SpamExperts/bitten | 924ae157c876eeff7957074b0c51ed4685d4f304 | [
"BSD-3-Clause"
] | 1 | 2020-09-24T05:28:44.000Z | 2020-09-28T05:34:19.000Z | bitten/queue.py | SpamExperts/bitten | 924ae157c876eeff7957074b0c51ed4685d4f304 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2010 Edgewall Software
# Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://... | 40.973761 | 85 | 0.570656 | 1,644 | 14,054 | 4.800487 | 0.215937 | 0.015079 | 0.012544 | 0.015966 | 0.168018 | 0.153827 | 0.148758 | 0.134187 | 0.119742 | 0.084136 | 0 | 0.002661 | 0.35819 | 14,054 | 342 | 86 | 41.093567 | 0.872284 | 0.100114 | 0 | 0.179894 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005291 | 0.042328 | 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 |
3f450a61b8e2b1852d0f1a4d826ca4c04fcbb6db | 10,638 | py | Python | aiida/orm/implementation/querybuilder.py | PercivalN/aiida-core | b215ed5a7ce9342bb7f671b67e95c1f474cc5940 | [
"BSD-2-Clause"
] | 1 | 2019-07-31T04:08:13.000Z | 2019-07-31T04:08:13.000Z | aiida/orm/implementation/querybuilder.py | PercivalN/aiida-core | b215ed5a7ce9342bb7f671b67e95c1f474cc5940 | [
"BSD-2-Clause"
] | null | null | null | aiida/orm/implementation/querybuilder.py | PercivalN/aiida-core | b215ed5a7ce9342bb7f671b67e95c1f474cc5940 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 36.682759 | 153 | 0.601805 | 1,185 | 10,638 | 5.305485 | 0.258228 | 0.051376 | 0.060442 | 0.050899 | 0.276284 | 0.24161 | 0.234293 | 0.224749 | 0.188484 | 0.188484 | 0 | 0.001485 | 0.303629 | 10,638 | 289 | 154 | 36.809689 | 0.847192 | 0.42038 | 0 | 0.239669 | 0 | 0 | 0.031997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214876 | false | 0.008264 | 0.115702 | 0 | 0.421488 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3f4b0ed4eea9580bec7a5e2d579164110301a866 | 4,095 | py | Python | DTL_tests/unittests/test_api.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | 1 | 2015-03-23T18:52:12.000Z | 2015-03-23T18:52:12.000Z | DTL_tests/unittests/test_api.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | null | null | null | DTL_tests/unittests/test_api.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | 2 | 2017-05-21T12:50:41.000Z | 2021-10-17T03:32:45.000Z | import os
import time
import unittest
from DTL.api import *
class TestCaseApiUtils(unittest.TestCase):
def setUp(self):
apiUtils.synthesize(self, 'mySynthesizeVar', None)
self.bit = apiUtils.BitTracker.getBit(self)
def test_wildcardToRe(self):
self.assertEquals(apiUtils.wildc... | 35.301724 | 155 | 0.616361 | 444 | 4,095 | 5.621622 | 0.218468 | 0.108974 | 0.096154 | 0.048077 | 0.311699 | 0.259615 | 0.171074 | 0.105369 | 0.038061 | 0.038061 | 0 | 0.010133 | 0.228816 | 4,095 | 116 | 156 | 35.301724 | 0.780241 | 0 | 0 | 0.108434 | 0 | 0.012048 | 0.127441 | 0.03833 | 0 | 0 | 0 | 0 | 0.337349 | 1 | 0.216867 | false | 0 | 0.048193 | 0 | 0.337349 | 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 |
3f4f261effbec9ffc0f629f4f48d599f4fe3ee02 | 752 | py | Python | be/model/db_conn.py | CharlesDDDD/bookstore | 4052a06f5162100f14c4b762f058204792ceb3c3 | [
"Apache-2.0"
] | null | null | null | be/model/db_conn.py | CharlesDDDD/bookstore | 4052a06f5162100f14c4b762f058204792ceb3c3 | [
"Apache-2.0"
] | null | null | null | be/model/db_conn.py | CharlesDDDD/bookstore | 4052a06f5162100f14c4b762f058204792ceb3c3 | [
"Apache-2.0"
] | null | null | null | from be.table.user import User
from be.table.user_store import User_Store
from be.table.store import Store
class DBConn:
def user_id_exist(self, user_id):
row = User.query.filter(User.user_id == user_id).first()
if row is None:
return False
else:
return True
d... | 26.857143 | 94 | 0.610372 | 109 | 752 | 4.009174 | 0.220183 | 0.112128 | 0.075515 | 0.08238 | 0.473684 | 0.308924 | 0.308924 | 0.308924 | 0.308924 | 0.308924 | 0 | 0 | 0.305851 | 752 | 27 | 95 | 27.851852 | 0.837165 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 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 |
3f52ca8d87119aa7ada69b18dd59026206c97a21 | 2,861 | py | Python | tardis/tardis_portal/auth/localdb_auth.py | nrmay/mytardis | 34a460cde6a847c66a6ec3725182c09dc9167bd5 | [
"Apache-2.0"
] | null | null | null | tardis/tardis_portal/auth/localdb_auth.py | nrmay/mytardis | 34a460cde6a847c66a6ec3725182c09dc9167bd5 | [
"Apache-2.0"
] | null | null | null | tardis/tardis_portal/auth/localdb_auth.py | nrmay/mytardis | 34a460cde6a847c66a6ec3725182c09dc9167bd5 | [
"Apache-2.0"
] | null | null | null | '''
Local DB Authentication module.
.. moduleauthor:: Gerson Galang <gerson.galang@versi.edu.au>
'''
import logging
from django.contrib.auth.models import User, Group
from django.contrib.auth.backends import ModelBackend
from tardis.tardis_portal.auth.interfaces import AuthProvider, GroupProvider, UserProvider
lo... | 26.009091 | 90 | 0.595246 | 311 | 2,861 | 5.401929 | 0.350482 | 0.009524 | 0.020238 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002994 | 0.299546 | 2,861 | 109 | 91 | 26.247706 | 0.835329 | 0.231737 | 0 | 0.132075 | 0 | 0 | 0.051496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0.056604 | 0.075472 | 0 | 0.45283 | 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 |
3f6a18b0d4c80fcdd062def647e4e3d88b2df3b9 | 55,602 | py | Python | usdzconvert/usdStageWithFbx.py | summertriangle-dev/usdzconvert-docker | 9953845f3a83f8cc3d5380a4ccae8bc39753d550 | [
"MIT"
] | 3 | 2021-03-10T00:34:18.000Z | 2021-10-14T02:52:41.000Z | usdzconvert/usdStageWithFbx.py | summertriangle-dev/usdzconvert-docker | 9953845f3a83f8cc3d5380a4ccae8bc39753d550 | [
"MIT"
] | null | null | null | usdzconvert/usdStageWithFbx.py | summertriangle-dev/usdzconvert-docker | 9953845f3a83f8cc3d5380a4ccae8bc39753d550 | [
"MIT"
] | null | null | null | from pxr import *
import os, os.path
import numpy
import re
import usdUtils
import math
import imp
usdStageWithFbxLoaded = True
try:
imp.find_module('fbx')
import fbx
except ImportError:
usdUtils.printError("Failed to import fbx module. Please install FBX Python bindings from http://www.autodesk.com/fbx ... | 45.168156 | 176 | 0.635229 | 4,786 | 55,602 | 7.372336 | 0.168199 | 0.006348 | 0.006377 | 0.013009 | 0.318643 | 0.261308 | 0.204229 | 0.16866 | 0.162056 | 0.160129 | 0 | 0.007939 | 0.275116 | 55,602 | 1,230 | 177 | 45.204878 | 0.867485 | 0.026798 | 0 | 0.27044 | 0 | 0.001048 | 0.025522 | 0.004808 | 0 | 0 | 0 | 0.000813 | 0 | 0 | null | null | 0.002096 | 0.016771 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3f6b95561ed162423b6adee3e5e40b725abe8dde | 3,291 | py | Python | modules/ghautoknit/EmbeddedConstraint.py | fstwn/ghautokn | 5ca6d07df601d34be5a67fe6c76a942daef50a85 | [
"MIT"
] | 2 | 2021-02-19T19:55:21.000Z | 2021-10-13T23:55:56.000Z | modules/ghautoknit/EmbeddedConstraint.py | fstwn/ghautoknit | 5ca6d07df601d34be5a67fe6c76a942daef50a85 | [
"MIT"
] | null | null | null | modules/ghautoknit/EmbeddedConstraint.py | fstwn/ghautoknit | 5ca6d07df601d34be5a67fe6c76a942daef50a85 | [
"MIT"
] | null | null | null | # PYTHON STANDARD LIBRARY IMPORTS ----------------------------------------------
from __future__ import absolute_import
from __future__ import division
# LOCAL MODULE IMPORTS ---------------------------------------------------------
from ghautoknit.StoredConstraint import StoredConstraint
# ALL LIST -----------------... | 35.387097 | 80 | 0.485567 | 298 | 3,291 | 5.144295 | 0.288591 | 0.035225 | 0.027397 | 0.024788 | 0.130463 | 0.097847 | 0.097847 | 0.057404 | 0 | 0 | 0 | 0 | 0.263446 | 3,291 | 92 | 81 | 35.771739 | 0.632426 | 0.233668 | 0 | 0.118644 | 0 | 0 | 0.173299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016949 | 0.050847 | 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 |
3f730b00ede0a815c4c62737f803ff84e093f24f | 3,124 | py | Python | Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Synthesis/testdata/current/simulation/synthregression/wtermtest.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # regression tests with gridders taking w-term into account
# some fixed parameters are given in wtermtest_template.in
from synthprogrunner import *
def analyseResult(spr, checkWeights=True):
'''
spr - synthesis program runner (to run imageStats)
throws exceptions if something is wrong, otherwise just... | 42.216216 | 142 | 0.717029 | 438 | 3,124 | 5.057078 | 0.262557 | 0.046953 | 0.048758 | 0.054176 | 0.565237 | 0.467269 | 0.393679 | 0.393679 | 0.393679 | 0.393679 | 0 | 0.031108 | 0.15621 | 3,124 | 73 | 143 | 42.794521 | 0.809181 | 0.036492 | 0 | 0.396226 | 0 | 0.075472 | 0.397834 | 0.040168 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018868 | null | null | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
58b28e8645b762a35a626046be48d346a6bd215a | 15,595 | py | Python | test/test_views.py | Nemoden/Simblin | 1f97a985125023e64dfc6f4db6292cf3a2b904c9 | [
"BSD-3-Clause"
] | 53 | 2015-02-01T14:06:48.000Z | 2022-01-02T15:46:00.000Z | test/test_views.py | Aaron1992/Simblin | 1f97a985125023e64dfc6f4db6292cf3a2b904c9 | [
"BSD-3-Clause"
] | null | null | null | test/test_views.py | Aaron1992/Simblin | 1f97a985125023e64dfc6f4db6292cf3a2b904c9 | [
"BSD-3-Clause"
] | 23 | 2015-01-04T08:11:27.000Z | 2019-11-24T13:18:25.000Z | # -*- coding: utf-8 -*-
"""
Simblin Test Views
~~~~~~~~~~~~~~~~~~
Test the different views of the blogging application.
:copyright: (c) 2010 by Eugen Kiss.
:license: BSD, see LICENSE for more details.
"""
from __future__ import with_statement
import datetime
import flask
from simblin.extensions i... | 35.93318 | 81 | 0.58833 | 1,921 | 15,595 | 4.673087 | 0.140552 | 0.026067 | 0.027626 | 0.030077 | 0.53236 | 0.451264 | 0.372619 | 0.334967 | 0.282723 | 0.254205 | 0 | 0.015946 | 0.292273 | 15,595 | 433 | 82 | 36.016166 | 0.797409 | 0.034691 | 0 | 0.456026 | 0 | 0 | 0.116485 | 0.001565 | 0 | 0 | 0 | 0 | 0.296417 | 0 | null | null | 0.039088 | 0.022801 | null | null | 0.003257 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
58b4a5438c1537dcf99f56657476da7aa2cae99e | 4,166 | py | Python | hue.py | desheffer/hue-adapter | 724e296c8dd52302c0380a58f4390fc3059705dc | [
"MIT"
] | null | null | null | hue.py | desheffer/hue-adapter | 724e296c8dd52302c0380a58f4390fc3059705dc | [
"MIT"
] | null | null | null | hue.py | desheffer/hue-adapter | 724e296c8dd52302c0380a58f4390fc3059705dc | [
"MIT"
] | null | null | null | from config import Config
import flask
import json
import os
from ssdp import SSDP
from threading import Thread
import urllib3
config = None
config_file_paths = [
os.path.dirname(os.path.realpath(__file__)) + "/config/default.cfg.local",
"/etc/hue-adapter/default.cfg.local",
]
for config_file_path in config_... | 26.877419 | 87 | 0.520163 | 455 | 4,166 | 4.676923 | 0.325275 | 0.028195 | 0.019737 | 0.026786 | 0.292763 | 0.259399 | 0.234962 | 0.234962 | 0.234962 | 0.234962 | 0 | 0.036383 | 0.307249 | 4,166 | 154 | 88 | 27.051948 | 0.70097 | 0 | 0 | 0.346774 | 0 | 0 | 0.288637 | 0.132364 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056452 | null | null | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
58b8667325936944d69237ad194f47d738bc7912 | 831 | py | Python | olha_boca/infratores/admin.py | Perceu/olha-boca | 022ff941d6bd20bb79bd1e66cd293dd2f59bf55b | [
"MIT"
] | null | null | null | olha_boca/infratores/admin.py | Perceu/olha-boca | 022ff941d6bd20bb79bd1e66cd293dd2f59bf55b | [
"MIT"
] | null | null | null | olha_boca/infratores/admin.py | Perceu/olha-boca | 022ff941d6bd20bb79bd1e66cd293dd2f59bf55b | [
"MIT"
] | 1 | 2022-02-20T18:43:45.000Z | 2022-02-20T18:43:45.000Z | from django.contrib import admin
from olha_boca.infratores.models import Infratores
# Register your models here.
class InfratoresAdmin(admin.ModelAdmin):
list_display = ('nome', 'infracoes_a_pagar', 'total_infracoes', 'valor_a_pagar')
@admin.display(empty_value='???')
def total_infracoes(self, obj):
... | 33.24 | 84 | 0.688327 | 106 | 831 | 5.207547 | 0.424528 | 0.065217 | 0.108696 | 0.119565 | 0.320652 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0.002937 | 0.180505 | 831 | 25 | 85 | 33.24 | 0.807636 | 0.031288 | 0 | 0.166667 | 0 | 0 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
58bb3bdee68016c8f1865176bbbb0531b4055727 | 855 | py | Python | lintcode/1375.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/1375.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/1375.2.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
1375. Substring With At Least K Distinct Characters
"""
class Solution:
"""
@param s: a string
@param k: an integer
@return: the number of substrings there are that contain at least k distinct characters
"""
def kDistinctCharacters(self, s, k):
# Write your code here
n = len... | 28.5 | 91 | 0.512281 | 104 | 855 | 4.144231 | 0.451923 | 0.12065 | 0.083527 | 0.074246 | 0.222738 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034286 | 0.385965 | 855 | 29 | 92 | 29.482759 | 0.786667 | 0.235088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58bc76fe979d8a17599711a8021f4425b357315a | 1,159 | py | Python | bootcamp/wiki/core/compat.py | basiltiger/easy_bootcamp | 875b9ed287f1a7824bb38f142dbe2f3b1ce54389 | [
"MIT"
] | null | null | null | bootcamp/wiki/core/compat.py | basiltiger/easy_bootcamp | 875b9ed287f1a7824bb38f142dbe2f3b1ce54389 | [
"MIT"
] | null | null | null | bootcamp/wiki/core/compat.py | basiltiger/easy_bootcamp | 875b9ed287f1a7824bb38f142dbe2f3b1ce54389 | [
"MIT"
] | null | null | null | """Abstraction layer to deal with Django related changes in order to keep
compatibility with several Django versions simultaneously."""
from __future__ import unicode_literals
from django.conf import settings as django_settings
USER_MODEL = getattr(django_settings, 'AUTH_USER_MODEL', 'auth.User')
# Django 1.11 Widg... | 36.21875 | 84 | 0.734254 | 163 | 1,159 | 5.122699 | 0.631902 | 0.035928 | 0.021557 | 0.045509 | 0.11497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008686 | 0.205349 | 1,159 | 31 | 85 | 37.387097 | 0.897937 | 0.487489 | 0 | 0 | 0 | 0 | 0.121451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
58c135e6998a8525b0faabf5c07d8105ddf708e8 | 1,596 | py | Python | Lista 2/Questao_1.py | flaviomelo10/Python-para-PLN | 845da043c2618f3aace655cf065fca3d866342d5 | [
"MIT"
] | null | null | null | Lista 2/Questao_1.py | flaviomelo10/Python-para-PLN | 845da043c2618f3aace655cf065fca3d866342d5 | [
"MIT"
] | null | null | null | Lista 2/Questao_1.py | flaviomelo10/Python-para-PLN | 845da043c2618f3aace655cf065fca3d866342d5 | [
"MIT"
] | null | null | null | # -- encoding:utf-8 -- #
'''
Crie uma variável com a string “ instituto de ciências matemáticas e de computação” e faça:
a. Concatene (adicione) uma outra string chamada “usp”
b. Concatene (adicione) uma outra informação: 2021
c. Verifique o tamanho da nova string (com as informações adicionadas das questões a e b), co... | 24.181818 | 155 | 0.734962 | 252 | 1,596 | 4.654762 | 0.416667 | 0.059676 | 0.032396 | 0.051151 | 0.250639 | 0.197783 | 0.143223 | 0.069906 | 0.069906 | 0.069906 | 0 | 0.011194 | 0.160401 | 1,596 | 65 | 156 | 24.553846 | 0.864179 | 0.664787 | 0 | 0.181818 | 0 | 0 | 0.126706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58c4071d4471ff72fd95738a79b453160bfc2e4b | 252 | py | Python | credsweeper/file_handler/analysis_target.py | ARKAD97/CredSweeper | 0f613cded13d6c28c19c57eac54dd245b2c318ea | [
"MIT"
] | null | null | null | credsweeper/file_handler/analysis_target.py | ARKAD97/CredSweeper | 0f613cded13d6c28c19c57eac54dd245b2c318ea | [
"MIT"
] | null | null | null | credsweeper/file_handler/analysis_target.py | ARKAD97/CredSweeper | 0f613cded13d6c28c19c57eac54dd245b2c318ea | [
"MIT"
] | null | null | null | from typing import List
class AnalysisTarget:
def __init__(self, line: str, line_num: int, lines: List[str], file_path: str):
self.line = line
self.line_num = line_num
self.lines = lines
self.file_path = file_path
| 25.2 | 83 | 0.650794 | 36 | 252 | 4.277778 | 0.444444 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 252 | 9 | 84 | 28 | 0.827957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58c6d6c03c23a334c302f4903855ceb65421ce9b | 2,341 | py | Python | CLIMATExScience/air-pollution-index/data-visualization/pollutant-freq.py | MY-Climate-Observatory/myco-data | 5203fa63c7ce609bbc9bbc4186f55da78befdc50 | [
"CC-BY-4.0"
] | null | null | null | CLIMATExScience/air-pollution-index/data-visualization/pollutant-freq.py | MY-Climate-Observatory/myco-data | 5203fa63c7ce609bbc9bbc4186f55da78befdc50 | [
"CC-BY-4.0"
] | null | null | null | CLIMATExScience/air-pollution-index/data-visualization/pollutant-freq.py | MY-Climate-Observatory/myco-data | 5203fa63c7ce609bbc9bbc4186f55da78befdc50 | [
"CC-BY-4.0"
] | 1 | 2021-12-16T04:56:09.000Z | 2021-12-16T04:56:09.000Z | # -*- coding: utf-8 -*-
"""
17 June 2020
Author: Xiandi Ooi
Visualizing the types of pollutants.
"""
import pandas as pd
from plotly.offline import plot
import plotly.graph_objects as go
# Get the file from us
df = pd.read_csv(https://www.dropbox.com/s/u0ymg0ufne0an60/api-20200713.csv?dl=1", sep = ";")
# Make the ... | 32.971831 | 101 | 0.612986 | 337 | 2,341 | 4.05638 | 0.35905 | 0.093636 | 0.048281 | 0.057059 | 0.247257 | 0.247257 | 0.168252 | 0 | 0 | 0 | 0 | 0.028412 | 0.233234 | 2,341 | 70 | 102 | 33.442857 | 0.733148 | 0.101666 | 0 | 0 | 0 | 0 | 0.108081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | 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 |
58c8432548a967e56cf908c27cbcc2cdbca067b8 | 1,434 | py | Python | various_modules/interface_segregation_principle.py | Neykah/design_patterns_python | 6f801fc4fc60f2d34002e4fe435feb6111a2cd23 | [
"MIT"
] | null | null | null | various_modules/interface_segregation_principle.py | Neykah/design_patterns_python | 6f801fc4fc60f2d34002e4fe435feb6111a2cd23 | [
"MIT"
] | null | null | null | various_modules/interface_segregation_principle.py | Neykah/design_patterns_python | 6f801fc4fc60f2d34002e4fe435feb6111a2cd23 | [
"MIT"
] | null | null | null | """
Maybe not so relevant in Python due to the possibility to use multiple inheritance...
"""
from abc import ABC, abstractmethod
class CloudHostingProvider(ABC):
@abstractmethod
def create_server(region):
...
@abstractmethod
def list_servers(region):
...
class CDNProvider(ABC):
... | 22.40625 | 85 | 0.642259 | 172 | 1,434 | 5.215116 | 0.296512 | 0.053512 | 0.060201 | 0.06689 | 0.305463 | 0.263099 | 0.263099 | 0.263099 | 0.263099 | 0.263099 | 0 | 0 | 0.232915 | 1,434 | 63 | 86 | 22.761905 | 0.815455 | 0.059275 | 0 | 0.35 | 0 | 0 | 0.208799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.025 | 0 | 0.45 | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58cc767b16ca728bd586a1ff7e220380c8ce5e1a | 3,529 | py | Python | shp_code/prec_reformat.py | anahm/inferring-population-preferences | 1eec9c6966e65c615f3cf5bd769ab121369b926d | [
"Unlicense"
] | 4 | 2016-10-29T12:10:48.000Z | 2016-11-06T02:25:09.000Z | shp_code/prec_reformat.py | anahm/inferring-population-preferences | 1eec9c6966e65c615f3cf5bd769ab121369b926d | [
"Unlicense"
] | null | null | null | shp_code/prec_reformat.py | anahm/inferring-population-preferences | 1eec9c6966e65c615f3cf5bd769ab121369b926d | [
"Unlicense"
] | null | null | null | """
prec_reformat.py
Taking state data and having each line be a precinct's voting results and candidate
cf-scores (rather than each line be each candidate per precinct.
| prec_id | cf_score_0 | num_votes_0 | cf_score_1 | num_votes_1 |
"""
import math
import numpy as np
import pandas as pd
from prec_cd import prec_... | 26.140741 | 83 | 0.616322 | 534 | 3,529 | 3.752809 | 0.264045 | 0.059381 | 0.035928 | 0.02495 | 0.29491 | 0.16018 | 0.143713 | 0.081836 | 0.081836 | 0.081836 | 0 | 0.021535 | 0.276282 | 3,529 | 134 | 84 | 26.335821 | 0.763117 | 0.072258 | 0 | 0.081081 | 0 | 0 | 0.118823 | 0.037344 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013514 | 0.067568 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
58ce3480a9b43387f9f12525806c69631b6a2afa | 1,668 | py | Python | scripts/make_fasta.py | orionzhou/snk-rnaseq | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | [
"MIT"
] | null | null | null | scripts/make_fasta.py | orionzhou/snk-rnaseq | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | [
"MIT"
] | null | null | null | scripts/make_fasta.py | orionzhou/snk-rnaseq | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | [
"MIT"
] | null | null | null | from snakemake import shell
input, output, params, threads, w, config = snakemake.input, snakemake.output, snakemake.params, snakemake.threads, snakemake.wildcards, snakemake.config
genome = w.genome
params.hybrid = config['x'][genome]['hybrid']
opt = params.opt
shell("""
rm -rf {output.fna}* {output.fai}*
rm... | 32.076923 | 153 | 0.631894 | 232 | 1,668 | 4.49569 | 0.267241 | 0.057526 | 0.076702 | 0.095877 | 0.182167 | 0.118888 | 0.063279 | 0 | 0 | 0 | 0 | 0.005295 | 0.207434 | 1,668 | 51 | 154 | 32.705882 | 0.783661 | 0 | 0 | 0.302326 | 0 | 0 | 0.714029 | 0.103118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.023256 | 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 |
58cfe77be2b1a529ec5b49496f3549cf64c84e22 | 1,107 | py | Python | plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 576aab4ae266e37ba80da23f82fe9ed08b9894e4 | [
"BSD-3-Clause"
] | 3 | 2015-04-04T03:08:52.000Z | 2021-01-09T00:09:25.000Z | plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 576aab4ae266e37ba80da23f82fe9ed08b9894e4 | [
"BSD-3-Clause"
] | null | null | null | plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 576aab4ae266e37ba80da23f82fe9ed08b9894e4 | [
"BSD-3-Clause"
] | 4 | 2015-04-04T03:08:57.000Z | 2021-10-03T14:59:23.000Z | #!/usr/bin/env python
import sys
from shotgun import *
try:
if len(sys.argv) > 1:
sg = Shotgun(sys.argv[1])
else:
sg = Shotgun()
#################################################################
# Find CustomEntity01 entities
#######################################################... | 31.628571 | 79 | 0.443541 | 91 | 1,107 | 5.395604 | 0.395604 | 0.057026 | 0.032587 | 0.10998 | 0.415479 | 0.415479 | 0.305499 | 0.305499 | 0.305499 | 0.305499 | 0 | 0.031854 | 0.205962 | 1,107 | 34 | 80 | 32.558824 | 0.526735 | 0.117435 | 0 | 0.117647 | 0 | 0 | 0.177715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
58df035c2ab9c1b7f4e6cbacccfa792d055318cf | 9,362 | py | Python | Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/core/protobuf/graph_debug_info_pb2.py | lawrence910426/ProgrammingII_FinalProject | 493183dc2a674310e65bffe3a5e00395e8bebb4b | [
"MIT"
] | null | null | null | Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/core/protobuf/graph_debug_info_pb2.py | lawrence910426/ProgrammingII_FinalProject | 493183dc2a674310e65bffe3a5e00395e8bebb4b | [
"MIT"
] | null | null | null | Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/core/protobuf/graph_debug_info_pb2.py | lawrence910426/ProgrammingII_FinalProject | 493183dc2a674310e65bffe3a5e00395e8bebb4b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/protobuf/graph_debug_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as... | 39.838298 | 888 | 0.760735 | 1,117 | 9,362 | 6.081468 | 0.151298 | 0.040041 | 0.037097 | 0.06595 | 0.592522 | 0.493891 | 0.493891 | 0.475784 | 0.470926 | 0.470926 | 0 | 0.035446 | 0.117069 | 9,362 | 234 | 889 | 40.008547 | 0.786354 | 0.053194 | 0 | 0.595122 | 1 | 0.009756 | 0.244748 | 0.202169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 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 |
58e63151e272298d99abe2311270c00ae4f753a6 | 2,109 | py | Python | tests/common/bridgecrew/vulnerability_scanning/conftest.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | tests/common/bridgecrew/vulnerability_scanning/conftest.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | tests/common/bridgecrew/vulnerability_scanning/conftest.py | vangundy-jason-pfg/checkov | 2fb50908f62390c98dda665f1fa94fe24806b654 | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | from typing import Dict, Any
import pytest
from checkov.common.bridgecrew.bc_source import SourceType
from checkov.common.bridgecrew.platform_integration import BcPlatformIntegration, bc_integration
@pytest.fixture()
def mock_bc_integration() -> BcPlatformIntegration:
bc_integration.bc_api_key = "abcd1234-abcd-... | 40.557692 | 120 | 0.579896 | 248 | 2,109 | 4.842742 | 0.524194 | 0.054122 | 0.02831 | 0.044963 | 0.161532 | 0.113239 | 0.068276 | 0.036636 | 0 | 0 | 0 | 0.086569 | 0.255097 | 2,109 | 51 | 121 | 41.352941 | 0.677912 | 0 | 0 | 0.044444 | 0 | 0.044444 | 0.398767 | 0.11522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | true | 0.022222 | 0.088889 | 0.022222 | 0.177778 | 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 |
58e6b8cbdb9f5deb8475e765553e3c1da2be8892 | 1,038 | py | Python | image_matting/modules/trimap_generator/trimap_generator_application.py | image-matting/backend | bbf502539cf70822dadb5eded31529d5e66c6276 | [
"Apache-2.0"
] | 1 | 2022-01-22T04:12:48.000Z | 2022-01-22T04:12:48.000Z | image_matting/modules/trimap_generator/trimap_generator_application.py | image-matting/backend | bbf502539cf70822dadb5eded31529d5e66c6276 | [
"Apache-2.0"
] | 4 | 2021-12-23T14:02:17.000Z | 2022-01-26T18:44:06.000Z | image_matting/modules/trimap_generator/trimap_generator_application.py | image-matting/backend | bbf502539cf70822dadb5eded31529d5e66c6276 | [
"Apache-2.0"
] | null | null | null | import argparse
from pathlib import Path
from cv2 import cv2
from trimap import generate_trimap
from trimap_output_utils import save_trimap_output
def main():
args = parse_args()
image_path = args.image
output_directory_path = args.output
image_path = Path(image_path)
if not image_path.is_file(... | 29.657143 | 113 | 0.739884 | 141 | 1,038 | 5.141844 | 0.411348 | 0.124138 | 0.053793 | 0.049655 | 0.046897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005721 | 0.157996 | 1,038 | 34 | 114 | 30.529412 | 0.823799 | 0 | 0 | 0 | 1 | 0 | 0.147399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.347826 | 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 |
58e7d15456033fa62d2766b6d09f022fb1eb2ace | 3,137 | py | Python | spacy/lang/nl/stop_words.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 12 | 2019-03-20T20:43:47.000Z | 2020-04-13T11:10:52.000Z | spacy/lang/nl/stop_words.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 13 | 2018-06-05T11:54:40.000Z | 2019-07-02T11:33:14.000Z | spacy/lang/nl/stop_words.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 1 | 2020-05-12T16:00:38.000Z | 2020-05-12T16:00:38.000Z | # coding: utf8
from __future__ import unicode_literals
# The original stop words list (added in f46ffe3) was taken from
# http://www.damienvanholten.com/downloads/dutch-stop-words.txt
# and consisted of about 100 tokens.
# In order to achieve parity with some of the better-supported
# languages, e.g., English, French,... | 42.391892 | 120 | 0.808734 | 507 | 3,137 | 4.99211 | 0.871795 | 0.01778 | 0.010273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003828 | 0.167357 | 3,137 | 73 | 121 | 42.972603 | 0.965161 | 0.27861 | 0 | 0 | 0 | 0.171429 | 0.959964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 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 |
58f3c7c8febd7b51f53b623ee90e4c562e1d0bd1 | 659 | py | Python | easy_ArrayAdditionI.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | 1 | 2020-11-04T15:30:18.000Z | 2020-11-04T15:30:18.000Z | easy_ArrayAdditionI.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | null | null | null | easy_ArrayAdditionI.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | null | null | null | import itertools
#################################################
# This function will see if there is any #
# possible combination of the numbers in #
# the array that will give the largest number #
#################################################
def ArrayAdditionI(arr):
#sort, remove last ele... | 26.36 | 54 | 0.53566 | 78 | 659 | 4.512821 | 0.641026 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007952 | 0.236722 | 659 | 24 | 55 | 27.458333 | 0.691849 | 0.327769 | 0 | 0 | 0 | 0 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58f8d01058e75992d07c8d9e6c624ed7a5775471 | 771 | py | Python | script/solr_unauthorized_access.py | 5up3rc/Vxscan | 0d2cae446f6502b51596853be3514c7c4c62809c | [
"Apache-2.0"
] | 2 | 2019-12-05T01:58:22.000Z | 2019-12-14T09:19:28.000Z | script/solr_unauthorized_access.py | 5up3rc/Vxscan | 0d2cae446f6502b51596853be3514c7c4c62809c | [
"Apache-2.0"
] | null | null | null | script/solr_unauthorized_access.py | 5up3rc/Vxscan | 0d2cae446f6502b51596853be3514c7c4c62809c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# project = https://github.com/Xyntax/POC-T
# author = i@cdxy.me
"""
Apache Solr 未授权访问PoC
(iterate_path函数使用场景示例)
Usage
python POC-T.py -s solr-unauth -iF target.txt
python POC-T.py -s solr-unauth -aZ "solr country:cn"
"""
from lib.verify import verify
from lib.rand... | 24.09375 | 95 | 0.608301 | 112 | 771 | 4.142857 | 0.616071 | 0.025862 | 0.043103 | 0.051724 | 0.099138 | 0.099138 | 0.099138 | 0 | 0 | 0 | 0 | 0.008772 | 0.2607 | 771 | 31 | 96 | 24.870968 | 0.805263 | 0.335927 | 0 | 0 | 0 | 0 | 0.118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | 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 |
58f91a9f5c9302c8e95efa47c83b819f09e32089 | 1,248 | py | Python | conanfile.py | midurk/conan-rapidxml | df93616a87ba41edd9def914f765fd8eae0007c5 | [
"MIT"
] | null | null | null | conanfile.py | midurk/conan-rapidxml | df93616a87ba41edd9def914f765fd8eae0007c5 | [
"MIT"
] | null | null | null | conanfile.py | midurk/conan-rapidxml | df93616a87ba41edd9def914f765fd8eae0007c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import ConanFile, tools
import os
class RapiXMLConan(ConanFile):
name = "rapidxml"
version = "1.13"
description = "RapidXml is an attempt to create the fastest XML parser possible"
url = "https://github.com/bincrafters/conan-rapidxml"
home... | 37.818182 | 97 | 0.684295 | 162 | 1,248 | 5.141975 | 0.537037 | 0.108043 | 0.091236 | 0.048019 | 0.060024 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.166667 | 1,248 | 32 | 98 | 39 | 0.789423 | 0.033654 | 0 | 0 | 0 | 0 | 0.347176 | 0.067276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.708333 | 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 |
4506dc61f56a8eae8242703dae9838d15d5a49a2 | 2,327 | py | Python | test/test_session.py | Sunmxt/UESTC-EAMS | 760a7387a5d73967e45a0b9d211acb383bb50fe1 | [
"Apache-2.0"
] | 1 | 2020-07-25T13:53:35.000Z | 2020-07-25T13:53:35.000Z | test/test_session.py | Sunmxt/UESTC-EAMS | 760a7387a5d73967e45a0b9d211acb383bb50fe1 | [
"Apache-2.0"
] | null | null | null | test/test_session.py | Sunmxt/UESTC-EAMS | 760a7387a5d73967e45a0b9d211acb383bb50fe1 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
'''
Test for session module
'''
import unittest
import uestc_eams
from .mock_server import LoginMockServer
from .utils import HookedMethod, MakeResponse
mock_login = LoginMockServer()
class TestSession(unittest.TestCase):
@mock_login.Patch
def test_Session(self):
self.__s... | 34.731343 | 77 | 0.65578 | 261 | 2,327 | 5.678161 | 0.260536 | 0.091093 | 0.109312 | 0.077598 | 0.452092 | 0.441296 | 0.418354 | 0.418354 | 0.308367 | 0.233468 | 0 | 0.022087 | 0.221745 | 2,327 | 66 | 78 | 35.257576 | 0.796245 | 0.090675 | 0 | 0.395349 | 0 | 0 | 0.165951 | 0 | 0 | 0 | 0 | 0 | 0.325581 | 1 | 0.023256 | false | 0.116279 | 0.093023 | 0 | 0.139535 | 0.232558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
450a6b5edd6e30d83bb61609d61f4702dee03bf9 | 23,457 | py | Python | hybrideb/_bineb.py | beckermr/hybrideb | a72d712020943dbbed35cb244f9e7f13fc6b2d4d | [
"BSD-3-Clause"
] | null | null | null | hybrideb/_bineb.py | beckermr/hybrideb | a72d712020943dbbed35cb244f9e7f13fc6b2d4d | [
"BSD-3-Clause"
] | null | null | null | hybrideb/_bineb.py | beckermr/hybrideb | a72d712020943dbbed35cb244f9e7f13fc6b2d4d | [
"BSD-3-Clause"
] | null | null | null | import sys
import numpy as np
import scipy.integrate
import scipy.special
from ._dblquad import dblquad
HAVE_PYGSL = False
try:
import pygsl.integrate
import pygsl.sf
HAVE_PYGSL = True
except ImportError:
pass
class BinEB(object):
def __init__(
self, tmin, tmax, Nb, windows=None, linear... | 34.394428 | 87 | 0.336488 | 2,452 | 23,457 | 3.163948 | 0.077896 | 0.044084 | 0.03158 | 0.035447 | 0.689095 | 0.652874 | 0.595257 | 0.544341 | 0.51869 | 0.48595 | 0 | 0.026366 | 0.550497 | 23,457 | 681 | 88 | 34.444934 | 0.709408 | 0.042844 | 0 | 0.523901 | 0 | 0 | 0.009576 | 0 | 0 | 0 | 0 | 0 | 0.001912 | 1 | 0.053537 | false | 0.001912 | 0.015296 | 0.013384 | 0.116635 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
450aba433942ebcf2d5698d6bec5bdbf826e634d | 628 | py | Python | RecamanSequence/recaman_sequence.py | urosjevremovic/Recamans-Sequence | ab6a90c363271dc842f26ccd1b69168a9764de9e | [
"MIT"
] | null | null | null | RecamanSequence/recaman_sequence.py | urosjevremovic/Recamans-Sequence | ab6a90c363271dc842f26ccd1b69168a9764de9e | [
"MIT"
] | null | null | null | RecamanSequence/recaman_sequence.py | urosjevremovic/Recamans-Sequence | ab6a90c363271dc842f26ccd1b69168a9764de9e | [
"MIT"
] | null | null | null | import sys
from itertools import count, islice
def sequence():
"""Generate Recaman's sequence"""
seen = set()
a = 0
for n in count(1):
yield a
seen.add(a)
c = a - n
if c < 0 or c in seen:
c = a + n
a = c
def write_sequence(num):
"""Write Recama... | 20.258065 | 63 | 0.565287 | 97 | 628 | 3.546392 | 0.474227 | 0.127907 | 0.139535 | 0.116279 | 0.180233 | 0.180233 | 0.180233 | 0.180233 | 0 | 0 | 0 | 0.013453 | 0.289809 | 628 | 30 | 64 | 20.933333 | 0.757848 | 0.106688 | 0 | 0.1 | 1 | 0 | 0.056364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
451354227c3d203ff804c452ae15b439b4e8924c | 1,587 | py | Python | BFS/70.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | BFS/70.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | BFS/70.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | """70 · Binary Tree Level Order Traversal II"""
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param root: A tree
@return: buttom-up level order a list of lists of integer
"""
def le... | 24.415385 | 61 | 0.477001 | 171 | 1,587 | 4.315789 | 0.321637 | 0.109756 | 0.070461 | 0.04065 | 0.062331 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006543 | 0.42218 | 1,587 | 64 | 62 | 24.796875 | 0.797165 | 0.088847 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.026316 | false | 0 | 0 | 0 | 0.157895 | 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 |
45138db5ed51843c9a5afaaec91f905c3ac8de23 | 671 | py | Python | results/views/sports.py | JukkaKarvonen/sal-kiti | 3dcff71552ab323e3c97eccf502c0d72eb683967 | [
"MIT"
] | 1 | 2021-06-12T08:46:32.000Z | 2021-06-12T08:46:32.000Z | results/views/sports.py | JukkaKarvonen/sal-kiti | 3dcff71552ab323e3c97eccf502c0d72eb683967 | [
"MIT"
] | 8 | 2020-07-01T15:06:52.000Z | 2022-02-20T09:11:23.000Z | results/views/sports.py | JukkaKarvonen/sal-kiti | 3dcff71552ab323e3c97eccf502c0d72eb683967 | [
"MIT"
] | 3 | 2020-03-01T17:02:24.000Z | 2020-07-05T14:37:59.000Z | from dry_rest_permissions.generics import DRYPermissions
from rest_framework import viewsets
from results.models.sports import Sport
from results.serializers.sports import SportSerializer
class SportViewSet(viewsets.ModelViewSet):
"""API endpoint for sports.
list:
Returns a list of all the existing spor... | 20.96875 | 56 | 0.728763 | 78 | 671 | 6.192308 | 0.564103 | 0.082816 | 0.05383 | 0.078675 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214605 | 671 | 31 | 57 | 21.645161 | 0.916509 | 0.38152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
451695e3856e2d5dd4a42abbf9ad2c012826eaed | 792 | py | Python | komapy/decorators.py | bpptkg/komapy | a33fce5f4fbfacf085fd1f8043a57564be192a8d | [
"MIT"
] | null | null | null | komapy/decorators.py | bpptkg/komapy | a33fce5f4fbfacf085fd1f8043a57564be192a8d | [
"MIT"
] | null | null | null | komapy/decorators.py | bpptkg/komapy | a33fce5f4fbfacf085fd1f8043a57564be192a8d | [
"MIT"
] | null | null | null | from functools import partial
class counter:
"""
A counter decorator to track how many times a function is called.
"""
def __init__(self, func):
self.func = func
self.count = 0
def __call__(self, *args, **kwargs):
self.count += 1
return self.func(*args, **kwargs)
... | 26.4 | 78 | 0.616162 | 94 | 792 | 5.085106 | 0.521277 | 0.104603 | 0.087866 | 0.087866 | 0.125523 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.280303 | 792 | 29 | 79 | 27.310345 | 0.831579 | 0.348485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4516fa710b28e684423724f2bca16759c34404c0 | 5,883 | py | Python | Applications/Examples/python/market_price_authentication.py | Refinitiv/websocket-api | 15a5957510d2bb246cbbf65ed999ff0089b3a65d | [
"Apache-2.0"
] | 36 | 2019-01-08T17:43:38.000Z | 2022-03-11T21:59:58.000Z | Applications/Examples/python/market_price_authentication.py | thomsonreuters/websocket-api | 52c940a01d40a6c073d35922d8214d927327caa4 | [
"Apache-2.0"
] | 14 | 2019-12-27T15:58:12.000Z | 2021-11-03T21:39:27.000Z | Applications/Examples/python/market_price_authentication.py | thomsonreuters/websocket-api | 52c940a01d40a6c073d35922d8214d927327caa4 | [
"Apache-2.0"
] | 28 | 2019-01-22T21:43:15.000Z | 2022-03-29T11:43:05.000Z | #|-----------------------------------------------------------------------------
#| This source code is provided under the Apache 2.0 license --
#| and is provided AS IS with no warranty or guarantee of fit for purpose. --
#| See the project's LICENSE.md for details. --
... | 34.810651 | 235 | 0.590345 | 670 | 5,883 | 5.001493 | 0.292537 | 0.026858 | 0.021486 | 0.025067 | 0.239033 | 0.192778 | 0.156968 | 0.118174 | 0.096688 | 0.096688 | 0 | 0.010546 | 0.258542 | 5,883 | 168 | 236 | 35.017857 | 0.75768 | 0.17882 | 0 | 0.103448 | 0 | 0.017241 | 0.213417 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060345 | false | 0.060345 | 0.086207 | 0 | 0.146552 | 0.146552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4517ac136f86ccb5533a40509e2b215d308bd04d | 571 | py | Python | cardDao.py | Blueredemption/Inventory | 8d61671071f89b51b3e34c5eb673200fc8baffc0 | [
"MIT"
] | null | null | null | cardDao.py | Blueredemption/Inventory | 8d61671071f89b51b3e34c5eb673200fc8baffc0 | [
"MIT"
] | null | null | null | cardDao.py | Blueredemption/Inventory | 8d61671071f89b51b3e34c5eb673200fc8baffc0 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
class CardDao():
def __init__(self): # constructor
super().__init__()
self.create()
self.return()
self.update()
self.delete()
self.populate()
def create(self): # there will be create for cards
print('Create')
def return(... | 16.794118 | 54 | 0.528897 | 60 | 571 | 4.766667 | 0.433333 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.329247 | 571 | 34 | 55 | 16.794118 | 0.744125 | 0.105079 | 0 | 0 | 0 | 0 | 0.074656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
451aa8ccde2d865dd652ad209fefdf68afe0ad46 | 2,820 | py | Python | streamlit_app.py | guim4dev/education-cv | ffd880090de28e36849b4d53c424c2009791aaf5 | [
"MIT"
] | null | null | null | streamlit_app.py | guim4dev/education-cv | ffd880090de28e36849b4d53c424c2009791aaf5 | [
"MIT"
] | null | null | null | streamlit_app.py | guim4dev/education-cv | ffd880090de28e36849b4d53c424c2009791aaf5 | [
"MIT"
] | null | null | null | import streamlit as st
import pandas as pd
import numpy as np
import plotly.express as px
st.title("Relatório de Aula")
df = pd.read_csv('data/emocoes.csv')
agg = pd.read_csv('data/agg.csv')
Engajado = df[df['emocao'] == 'Engajado']
Engajado_agg = Engajado.groupby(['emocao', 'pessoa']).size().reset_index(name='size')... | 32.413793 | 134 | 0.699291 | 401 | 2,820 | 4.713217 | 0.336658 | 0.040741 | 0.055556 | 0.07037 | 0.292593 | 0.236508 | 0.200529 | 0.151323 | 0.111111 | 0.111111 | 0 | 0.026018 | 0.154965 | 2,820 | 87 | 135 | 32.413793 | 0.7671 | 0 | 0 | 0.095238 | 0 | 0.031746 | 0.236795 | 0.088267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.079365 | 0.063492 | 0.031746 | 0.253968 | 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 |
451d32ddace64c14dc2a20c09b0af3249bd93791 | 676 | py | Python | api/db/models/child_datum.py | peuan-testai/opentestdata-api | 9e9b12e73abc30a2031eb49d51d5b9d5412ed6ba | [
"MIT"
] | 15 | 2019-06-27T02:48:02.000Z | 2020-11-29T09:01:29.000Z | api/db/models/child_datum.py | peuan-testai/opentestdata-api | 9e9b12e73abc30a2031eb49d51d5b9d5412ed6ba | [
"MIT"
] | 16 | 2019-07-26T19:51:55.000Z | 2022-03-12T00:00:24.000Z | api/db/models/child_datum.py | peuan-testai/opentestdata-api | 9e9b12e73abc30a2031eb49d51d5b9d5412ed6ba | [
"MIT"
] | 7 | 2019-06-26T11:10:50.000Z | 2020-09-04T08:52:58.000Z | from .. import db
from .base import BaseModel
class ChildDatum(BaseModel):
__tablename__ = 'child_data'
# fields
parent_id = db.Column(db.Integer, db.ForeignKey('data.id'), nullable=False)
datum_id = db.Column(db.Integer, db.ForeignKey('data.id'), nullable=False)
name = db.Column(db.String(length... | 30.727273 | 91 | 0.659763 | 83 | 676 | 5.156627 | 0.457831 | 0.056075 | 0.070093 | 0.056075 | 0.383178 | 0.233645 | 0.233645 | 0.233645 | 0.233645 | 0.233645 | 0 | 0.005535 | 0.198225 | 676 | 21 | 92 | 32.190476 | 0.784133 | 0.029586 | 0 | 0 | 0 | 0 | 0.116386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 0.785714 | 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 |
451de10c0477bdaf31e0d063879d50b5418e6b0b | 490 | py | Python | catkin_ws/src/ros_python/function_ws/srv_sub_pub/src/srv_server.py | min-chuir-Park/ROS_Tutorials | 4c19e7673ec7098019c747833c45f0d32b85dab4 | [
"MIT"
] | 1 | 2019-07-04T04:49:05.000Z | 2019-07-04T04:49:05.000Z | catkin_ws/src/ros_python/function_ws/srv_sub_pub/src/srv_server.py | min-chuir-Park/ROS_Tutorials | 4c19e7673ec7098019c747833c45f0d32b85dab4 | [
"MIT"
] | null | null | null | catkin_ws/src/ros_python/function_ws/srv_sub_pub/src/srv_server.py | min-chuir-Park/ROS_Tutorials | 4c19e7673ec7098019c747833c45f0d32b85dab4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from srv_sub_pub.srv import *
NAME = "add_two_ints_server"
def add_two_ints(req):
print("Returning [%s + %s = %s]" % (req.a, req.b, (req.a + req.b)))
return AddTwoIntsResponse(req.a + req.b)
def add_two_ints_server():
rospy.init_node(NAME)
s = rospy.Service('add_t... | 22.272727 | 71 | 0.681633 | 78 | 490 | 3.948718 | 0.461538 | 0.116883 | 0.194805 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179592 | 490 | 21 | 72 | 23.333333 | 0.766169 | 0.155102 | 0 | 0 | 0 | 0 | 0.152913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 0.083333 | 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 |
4526f09b63533011d0dbd7fc3b49ed217cae0f86 | 8,171 | py | Python | third-party/webscalesqlclient/mysql-5.6/xtrabackup/test/kewpie/percona_tests/xtrabackup_disabled/xb_partial_test.py | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2018-03-07T08:31:29.000Z | 2019-02-01T10:10:48.000Z | third-party/webscalesqlclient/mysql-5.6/xtrabackup/test/kewpie/percona_tests/xtrabackup_disabled/xb_partial_test.py | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-23T14:52:22.000Z | 2021-02-23T14:52:22.000Z | xtrabackup_main/xb_partial_test.py | isabella232/kewpie | 47d67124fa755719eda3ca5a621a2abf0322d3f9 | [
"Apache-2.0"
] | 1 | 2020-11-13T10:17:28.000Z | 2020-11-13T10:17:28.000Z | #! /usr/bin/env python
# -*- mode: python; indent-tabs-mode: nil; -*-
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
#
# Copyright (C) 2011 Patrick Crews
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwar... | 45.648045 | 135 | 0.571778 | 938 | 8,171 | 4.837953 | 0.282516 | 0.06082 | 0.041648 | 0.055531 | 0.390921 | 0.373292 | 0.32922 | 0.305421 | 0.295725 | 0.295725 | 0 | 0.012128 | 0.333986 | 8,171 | 178 | 136 | 45.904494 | 0.821757 | 0.190552 | 0 | 0.293103 | 0 | 0 | 0.12053 | 0.012479 | 0 | 0 | 0 | 0 | 0.112069 | 0 | null | null | 0 | 0.025862 | 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 |
452e242fef5c444f6a84742a55e2adf53a8f64d3 | 9,907 | py | Python | algofi/v1/staking.py | zhengxunWu3/algofi-py-sdk | 8388d71d55eae583ac3579286b5f870aa3db2913 | [
"MIT"
] | null | null | null | algofi/v1/staking.py | zhengxunWu3/algofi-py-sdk | 8388d71d55eae583ac3579286b5f870aa3db2913 | [
"MIT"
] | null | null | null | algofi/v1/staking.py | zhengxunWu3/algofi-py-sdk | 8388d71d55eae583ac3579286b5f870aa3db2913 | [
"MIT"
] | null | null | null | from algosdk import logic
from algosdk.future.transaction import ApplicationOptInTxn, AssetOptInTxn, ApplicationNoOpTxn, PaymentTxn, AssetTransferTxn
from ..contract_strings import algofi_manager_strings as manager_strings
from .prepend import get_init_txns
from ..utils import TransactionGroup, Transactions, randint, i... | 43.262009 | 159 | 0.731402 | 1,225 | 9,907 | 5.620408 | 0.106939 | 0.040668 | 0.047059 | 0.013072 | 0.747567 | 0.708206 | 0.659114 | 0.580683 | 0.562963 | 0.529702 | 0 | 0.00242 | 0.207631 | 9,907 | 229 | 160 | 43.262009 | 0.87465 | 0.42253 | 0 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.036765 | 0 | 0.095588 | 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 |
4535c1a7513cb60d8687c9c277406f75c8762e19 | 2,039 | py | Python | tests/test_ProtocolService/test_ProtocolService.py | danilocgsilva/awsinstances | c0ab6ae42b3bfbe94735f7ba4741b3facec271ce | [
"MIT"
] | null | null | null | tests/test_ProtocolService/test_ProtocolService.py | danilocgsilva/awsinstances | c0ab6ae42b3bfbe94735f7ba4741b3facec271ce | [
"MIT"
] | null | null | null | tests/test_ProtocolService/test_ProtocolService.py | danilocgsilva/awsinstances | c0ab6ae42b3bfbe94735f7ba4741b3facec271ce | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.insert(2, "..")
from awsec2instances_includes.ProtocolService import ProtocolService
class test_ProtocolService(unittest.TestCase):
def test_execption_wrong_argument(self):
wrong_argument = "some-invalid"
with self.assertRaises(Exception):
ProtocolSe... | 36.410714 | 77 | 0.714076 | 228 | 2,039 | 6.109649 | 0.245614 | 0.050251 | 0.043073 | 0.109117 | 0.667624 | 0.555635 | 0.517588 | 0.400574 | 0.320172 | 0.259871 | 0 | 0.013309 | 0.189308 | 2,039 | 55 | 78 | 37.072727 | 0.829401 | 0 | 0 | 0.348837 | 0 | 0 | 0.071639 | 0.04318 | 0 | 0 | 0 | 0 | 0.302326 | 1 | 0.232558 | false | 0 | 0.069767 | 0 | 0.325581 | 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 |
453972bee5e4b38dcaee26d48c6dcec6950939dd | 821 | py | Python | custom_uss/custom_widgets/outlog.py | shuanet/dss | 5daafeb89aac58e4614775f301bec920f4abfa24 | [
"Apache-2.0"
] | 2 | 2022-02-13T19:13:16.000Z | 2022-02-17T14:52:05.000Z | custom_uss/custom_widgets/outlog.py | shuanet/dss | 5daafeb89aac58e4614775f301bec920f4abfa24 | [
"Apache-2.0"
] | null | null | null | custom_uss/custom_widgets/outlog.py | shuanet/dss | 5daafeb89aac58e4614775f301bec920f4abfa24 | [
"Apache-2.0"
] | 1 | 2022-02-16T20:17:38.000Z | 2022-02-16T20:17:38.000Z | import sys
from PySide6 import QtGui
class OutLog:
def __init__(self, edit, out=None, color=None):
"""(edit, out=None, color=None) -> can write stdout, stderr to a
QTextEdit.
edit = QTextEdit
out = alternate stream ( can be the original sys.stdout )
color = alternate color (... | 25.65625 | 72 | 0.576127 | 102 | 821 | 4.598039 | 0.392157 | 0.119403 | 0.083156 | 0.06823 | 0.085288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001802 | 0.323995 | 821 | 31 | 73 | 26.483871 | 0.843243 | 0.254568 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.105263 | 0 | 0.315789 | 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 |
453b632b266da30271e1e4710f1d5bea075bf4fb | 1,937 | py | Python | cluster/image/pro_seafile_7.1/scripts_7.1/start.py | chaosbunker/seafile-docker | 560d982d8cd80a20508bf616abc0dc741d7b5d84 | [
"Apache-2.0"
] | 503 | 2015-11-11T22:07:36.000Z | 2022-03-28T21:29:30.000Z | cluster/image/pro_seafile_7.1/scripts_7.1/start.py | chaosbunker/seafile-docker | 560d982d8cd80a20508bf616abc0dc741d7b5d84 | [
"Apache-2.0"
] | 209 | 2015-07-13T04:49:38.000Z | 2022-03-25T22:06:18.000Z | cluster/image/pro_seafile_7.1/scripts_7.1/start.py | chaosbunker/seafile-docker | 560d982d8cd80a20508bf616abc0dc741d7b5d84 | [
"Apache-2.0"
] | 195 | 2015-07-09T18:11:47.000Z | 2022-03-25T11:56:53.000Z | #!/usr/bin/env python3
#coding: UTF-8
import os
import sys
import time
import json
import argparse
from os.path import join, exists, dirname
from upgrade import check_upgrade
from utils import call, get_conf, get_script, get_command_output, get_install_dir
installdir = get_install_dir()
topdir = dirname(installdir)
... | 29.348485 | 113 | 0.653588 | 246 | 1,937 | 4.947154 | 0.455285 | 0.029581 | 0.039441 | 0.044371 | 0.146261 | 0.09696 | 0.046015 | 0 | 0 | 0 | 0 | 0.005968 | 0.221477 | 1,937 | 65 | 114 | 29.8 | 0.801061 | 0.025813 | 0 | 0.076923 | 0 | 0 | 0.2431 | 0.041401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.096154 | 0.153846 | 0 | 0.192308 | 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 |
453c20b8c1cf91ca7912ad336c0a4f1a000e5011 | 4,024 | py | Python | tubee/utils/__init__.py | tomy0000000/Tubee | 1bfbd3cde118cd8a31499b8255b311602fde85bc | [
"MIT"
] | 8 | 2020-12-09T13:01:41.000Z | 2022-01-09T10:06:25.000Z | tubee/utils/__init__.py | tomy0000000/Tubee | 1bfbd3cde118cd8a31499b8255b311602fde85bc | [
"MIT"
] | 141 | 2019-08-21T20:23:07.000Z | 2022-03-29T14:02:27.000Z | tubee/utils/__init__.py | tomy0000000/Tubee | 1bfbd3cde118cd8a31499b8255b311602fde85bc | [
"MIT"
] | 7 | 2020-07-28T08:52:06.000Z | 2021-07-26T02:15:36.000Z | """Helper Functions
Some Misc Functions used in this app
"""
import secrets
import string
from functools import wraps
from urllib.parse import urljoin, urlparse
from dateutil import parser
from flask import abort, current_app, request
from flask_login import current_user
from flask_migrate import upgrade
def setup_... | 27.006711 | 88 | 0.685885 | 496 | 4,024 | 5.457661 | 0.308468 | 0.062061 | 0.035464 | 0.04433 | 0.309198 | 0.281862 | 0.240118 | 0.240118 | 0.240118 | 0.240118 | 0 | 0.003536 | 0.226889 | 4,024 | 148 | 89 | 27.189189 | 0.866602 | 0.327286 | 0 | 0.230769 | 0 | 0 | 0.05325 | 0 | 0 | 0 | 0 | 0.006757 | 0 | 1 | 0.169231 | false | 0.046154 | 0.184615 | 0 | 0.507692 | 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 |
1889e33c1df53b96578448ca9e90add8e038bfe9 | 3,941 | py | Python | test/inprogress/mock/JobBrowserBFF_get_job_log_mock_test.py | eapearson/kbase-skd-module-job-browser-bff | 426445f90569adac16632ef4921f174e51abd42f | [
"MIT"
] | null | null | null | test/inprogress/mock/JobBrowserBFF_get_job_log_mock_test.py | eapearson/kbase-skd-module-job-browser-bff | 426445f90569adac16632ef4921f174e51abd42f | [
"MIT"
] | 6 | 2020-05-26T17:40:07.000Z | 2022-03-11T16:33:11.000Z | test/inprogress/mock/JobBrowserBFF_get_job_log_mock_test.py | eapearson/kbase-skd-module-job-browser-bff | 426445f90569adac16632ef4921f174e51abd42f | [
"MIT"
] | 1 | 2020-05-26T17:12:59.000Z | 2020-05-26T17:12:59.000Z | # -*- coding: utf-8 -*-
import traceback
from JobBrowserBFF.TestBase import TestBase
from biokbase.Errors import ServiceError
import unittest
import re
UPSTREAM_SERVICE = 'mock'
ENV = 'mock'
JOB_ID_WITH_LOGS = '59820c93e4b06f68bf751eeb' # non-admin
JOB_ID_NO_LOGS = '5cf1522aaa5a4d298c5dc2ff' # non-admin
JOB_ID_NOT_F... | 36.831776 | 107 | 0.603146 | 479 | 3,941 | 4.68476 | 0.189979 | 0.058824 | 0.048128 | 0.046346 | 0.668449 | 0.654189 | 0.654189 | 0.654189 | 0.654189 | 0.628788 | 0 | 0.031533 | 0.299924 | 3,941 | 106 | 108 | 37.179245 | 0.781805 | 0.098198 | 0 | 0.595506 | 0 | 0 | 0.128531 | 0.027119 | 0 | 0 | 0 | 0 | 0.213483 | 1 | 0.05618 | false | 0 | 0.05618 | 0 | 0.134831 | 0.022472 | 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 |
188cb20c595f8931979892b300bbc3dc12968c1c | 674 | py | Python | migrations/versions/323f8d77567b_index_related_entity_names.py | yaelmi3/backslash | edf39caf97af2c926da01c340a83648f4874e97e | [
"BSD-3-Clause"
] | 17 | 2015-11-25T13:02:38.000Z | 2021-12-14T20:18:36.000Z | migrations/versions/323f8d77567b_index_related_entity_names.py | yaelmi3/backslash | edf39caf97af2c926da01c340a83648f4874e97e | [
"BSD-3-Clause"
] | 533 | 2015-11-24T12:47:13.000Z | 2022-02-12T07:59:08.000Z | migrations/versions/323f8d77567b_index_related_entity_names.py | parallelsystems/backslash | 577cdd18d5f665a8b493c4b2e2a605b7e0f6e11b | [
"BSD-3-Clause"
] | 15 | 2015-11-22T13:25:54.000Z | 2022-02-16T19:23:11.000Z | """Index related entity names
Revision ID: 323f8d77567b
Revises: 82b34e2777a4
Create Date: 2016-11-16 13:00:25.782487
"""
# revision identifiers, used by Alembic.
revision = '323f8d77567b'
down_revision = '82b34e2777a4'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated ... | 24.962963 | 93 | 0.71365 | 87 | 674 | 5.390805 | 0.517241 | 0.138593 | 0.108742 | 0.098081 | 0.302772 | 0.302772 | 0.302772 | 0.187633 | 0 | 0 | 0 | 0.098592 | 0.15727 | 674 | 26 | 94 | 25.923077 | 0.727113 | 0.451039 | 0 | 0 | 0 | 0 | 0.296736 | 0.130564 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
189184fcb0cca3093cef204f192b8979a5c7f238 | 29,762 | py | Python | SVS/model/utils/utils.py | ftshijt/SVS_system | 569d0a2f7ae89965bde132e5be538f6a84be471f | [
"Apache-2.0"
] | null | null | null | SVS/model/utils/utils.py | ftshijt/SVS_system | 569d0a2f7ae89965bde132e5be538f6a84be471f | [
"Apache-2.0"
] | null | null | null | SVS/model/utils/utils.py | ftshijt/SVS_system | 569d0a2f7ae89965bde132e5be538f6a84be471f | [
"Apache-2.0"
] | null | null | null | """Copyright [2020] [Jiatong Shi].
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 32.140389 | 88 | 0.540152 | 3,537 | 29,762 | 4.315804 | 0.107153 | 0.018474 | 0.016377 | 0.016508 | 0.710973 | 0.690468 | 0.670226 | 0.664068 | 0.654373 | 0.642909 | 0 | 0.014256 | 0.347154 | 29,762 | 925 | 89 | 32.175135 | 0.771384 | 0.115012 | 0 | 0.680939 | 0 | 0 | 0.042314 | 0.006007 | 0 | 0 | 0 | 0 | 0.001381 | 1 | 0.024862 | false | 0 | 0.016575 | 0 | 0.055249 | 0.008287 | 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 |
189b834780427e5805e8ddb0880c32074d93411d | 879 | py | Python | pricecalc/pricecalc/apps/calc/migrations/0024_ldstp_alter_furnitureincalc_options.py | oocemb/Calculation | 91d202d1b5a2dde6376487147517310682294278 | [
"Apache-2.0"
] | null | null | null | pricecalc/pricecalc/apps/calc/migrations/0024_ldstp_alter_furnitureincalc_options.py | oocemb/Calculation | 91d202d1b5a2dde6376487147517310682294278 | [
"Apache-2.0"
] | null | null | null | pricecalc/pricecalc/apps/calc/migrations/0024_ldstp_alter_furnitureincalc_options.py | oocemb/Calculation | 91d202d1b5a2dde6376487147517310682294278 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-25 11:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calc', '0023_delete_handle_alter_calctag_options_and_more'),
]
operations = [
migrations.CreateModel(
name='Ldstp',
... | 32.555556 | 117 | 0.602958 | 89 | 879 | 5.764045 | 0.707865 | 0.064327 | 0.070175 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040562 | 0.270762 | 879 | 26 | 118 | 33.807692 | 0.75975 | 0.051195 | 0 | 0.1 | 1 | 0 | 0.201923 | 0.058894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 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 |
189c6b3a4cd4803a7422b2fd630d54013aa0aa1e | 14,356 | py | Python | aiida_siesta/calculations/stm.py | mailhexu/aiida_siesta_plugin | 313ef4b3532b54d8d0c81788b683c53cb4701965 | [
"MIT"
] | null | null | null | aiida_siesta/calculations/stm.py | mailhexu/aiida_siesta_plugin | 313ef4b3532b54d8d0c81788b683c53cb4701965 | [
"MIT"
] | 2 | 2019-05-12T22:11:46.000Z | 2019-05-13T11:46:16.000Z | aiida_siesta/calculations/stm.py | mailhexu/aiida_siesta_plugin | 313ef4b3532b54d8d0c81788b683c53cb4701965 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
# Module with fdf-aware dictionary
from tkdict import FDFDict
from aiida.orm.calculation.job import JobCalculation
from aiida.common.exceptions import InputValidationError
from aiida.common.datastructures import CalcInfo
from aiida.common.utils import classproperty
from aiida.common.... | 39.657459 | 278 | 0.60156 | 1,659 | 14,356 | 5.035564 | 0.26522 | 0.009576 | 0.017237 | 0.00814 | 0.147833 | 0.0565 | 0.038066 | 0.008619 | 0.008619 | 0.008619 | 0 | 0.00585 | 0.309348 | 14,356 | 361 | 279 | 39.767313 | 0.836712 | 0.132906 | 0 | 0.122549 | 0 | 0.004902 | 0.190159 | 0.004568 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004902 | 0.058824 | 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 |
189ea5728ae22b441ea875f1bd0c5faac3a76ced | 294 | py | Python | example2.py | presidento/scripthelper | 71b9e69f2967fb8d352376213c046263d5c31849 | [
"MIT"
] | null | null | null | example2.py | presidento/scripthelper | 71b9e69f2967fb8d352376213c046263d5c31849 | [
"MIT"
] | 3 | 2020-04-28T13:14:31.000Z | 2021-01-15T09:41:56.000Z | example2.py | presidento/scripthelper | 71b9e69f2967fb8d352376213c046263d5c31849 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import scripthelper
scripthelper.add_argument("-n", "--name", help="Name to greet")
logger, args = scripthelper.bootstrap_args()
if args.name:
logger.debug("Name was provided")
logger.info(f"Hello {args.name}")
else:
logger.warning("Name was not provided")
| 24.5 | 63 | 0.710884 | 41 | 294 | 5.04878 | 0.634146 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.132653 | 294 | 11 | 64 | 26.727273 | 0.807843 | 0.071429 | 0 | 0 | 0 | 0 | 0.279412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18aaa916c943bdb538fc41fcf2673ef26fba2444 | 3,603 | py | Python | djangocms_modules/models.py | crydotsnake/djangocms-modules | ab5b75ee1076e6fccab1a26b8dbe1c754c4de8d7 | [
"BSD-3-Clause"
] | 8 | 2019-01-29T15:11:30.000Z | 2020-06-07T19:27:50.000Z | djangocms_modules/models.py | crydotsnake/djangocms-modules | ab5b75ee1076e6fccab1a26b8dbe1c754c4de8d7 | [
"BSD-3-Clause"
] | 11 | 2018-12-14T14:01:06.000Z | 2020-09-02T09:02:49.000Z | djangocms_modules/models.py | divio/djangocms-modules | 8328f130cddd4cf5f90beca170d1303b95158cda | [
"BSD-3-Clause"
] | 3 | 2021-04-16T12:26:27.000Z | 2021-06-25T14:53:47.000Z | from django.conf import settings
from django.db import models
from django.dispatch import receiver
from django.urls import Resolver404, resolve
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _
from cms import operations
from cms.models import CMSPlugin, Placeho... | 27.090226 | 75 | 0.686095 | 417 | 3,603 | 5.669065 | 0.309353 | 0.038071 | 0.035533 | 0.021574 | 0.099831 | 0.08291 | 0.07022 | 0.038917 | 0.038917 | 0 | 0 | 0.004683 | 0.229531 | 3,603 | 132 | 76 | 27.295455 | 0.846902 | 0.051901 | 0 | 0.135417 | 0 | 0 | 0.034462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135417 | false | 0 | 0.114583 | 0.104167 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
18ae5fde1fdfdd5b09f5207f83e23ef0e8f54a07 | 854 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class RIPng(Base):
__slots__ = ()
_SDM_NAME = 'ripng'
_SDM_ATT_MAP = {
'RIPng Header': 'ripng.header.ripngHeader',
'Route Table entries': 'ripng.header.routeTableEntries',
}
def __init__(self, parent):... | 30.5 | 94 | 0.701405 | 104 | 854 | 5.375 | 0.307692 | 0.09839 | 0.135957 | 0.069767 | 0.406082 | 0.350626 | 0.350626 | 0.350626 | 0.350626 | 0.350626 | 0 | 0 | 0.199063 | 854 | 27 | 95 | 31.62963 | 0.817251 | 0 | 0 | 0.190476 | 0 | 0 | 0.141686 | 0.063232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.190476 | 0.047619 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
18af0a7d2a7ce2d43b7672a9c24d93c96068fd61 | 1,083 | py | Python | backend/feedback/migrations/0001_initial.py | kylecarter/ict4510-advwebdvlp | 0360b2353535611a6b3dd79cefe2d5780d027511 | [
"Apache-2.0"
] | null | null | null | backend/feedback/migrations/0001_initial.py | kylecarter/ict4510-advwebdvlp | 0360b2353535611a6b3dd79cefe2d5780d027511 | [
"Apache-2.0"
] | null | null | null | backend/feedback/migrations/0001_initial.py | kylecarter/ict4510-advwebdvlp | 0360b2353535611a6b3dd79cefe2d5780d027511 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-18 02:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Conversation',
fields=[
('id', models.AutoF... | 40.111111 | 152 | 0.626962 | 120 | 1,083 | 5.508333 | 0.516667 | 0.083207 | 0.069592 | 0.081694 | 0.160363 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025516 | 0.240074 | 1,083 | 26 | 153 | 41.653846 | 0.777643 | 0.041551 | 0 | 0 | 1 | 0 | 0.197876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
18b146154d393893b10c35ac0c235675a70fdc26 | 1,377 | py | Python | Aula19/ex09.py | danicon/MD3-Curso_Python | 3d419d440d3b28adb5c019268f4b217e7d0ce45a | [
"MIT"
] | null | null | null | Aula19/ex09.py | danicon/MD3-Curso_Python | 3d419d440d3b28adb5c019268f4b217e7d0ce45a | [
"MIT"
] | null | null | null | Aula19/ex09.py | danicon/MD3-Curso_Python | 3d419d440d3b28adb5c019268f4b217e7d0ce45a | [
"MIT"
] | null | null | null | jogador = dict()
partidas = list()
jogador['nome'] = str(input('Nome do jogador: '))
tot = int(input(f'Quantas partidas {jogador["nome"]} jogou? '))
for c in range(0, tot):
partidas.append(int(input(f' Quantos gols na partida {c}? ')))
jogador['gols'] = partidas[:]
jogador['total'] = sum(partidas)
print(30*'-=')... | 31.295455 | 76 | 0.600581 | 205 | 1,377 | 4.034146 | 0.234146 | 0.058041 | 0.043531 | 0.055623 | 0.665054 | 0.590085 | 0.590085 | 0.442563 | 0.345828 | 0.345828 | 0 | 0.013181 | 0.173566 | 1,377 | 44 | 77 | 31.295455 | 0.713533 | 0.48947 | 0 | 0.166667 | 0 | 0 | 0.414706 | 0.032353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
18b252f0addcf4c4512b055a5ed661c24cb4f654 | 3,658 | py | Python | interpreter.py | Wheatwizard/Lost | 59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350 | [
"MIT"
] | 13 | 2017-08-10T21:54:12.000Z | 2021-12-08T12:50:31.000Z | interpreter.py | Wheatwizard/Lost | 59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350 | [
"MIT"
] | null | null | null | interpreter.py | Wheatwizard/Lost | 59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350 | [
"MIT"
] | null | null | null | from Stack import Stack
from random import randint
class Interpreter(object):
def __init__(self,source,input,startx=None,starty=None,dir=None):
source = source.strip().split("\n")
dim = max(map(len,source)+[len(source)])
self.source = [list(x.ljust(dim,"."))for x in source]
self.dim = (len(self.source),len(se... | 29.983607 | 70 | 0.617824 | 519 | 3,658 | 4.342967 | 0.146435 | 0.149956 | 0.173469 | 0.149068 | 0.537267 | 0.460515 | 0.409051 | 0.362467 | 0.250222 | 0.250222 | 0 | 0.026499 | 0.174686 | 3,658 | 121 | 71 | 30.231405 | 0.720106 | 0.003554 | 0 | 0.161017 | 0 | 0 | 0.011251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008475 | 0.042373 | 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 |
18b25e53c1ed1abb7bdec386aaba62360b44deb4 | 1,826 | py | Python | masterStock.py | Coway/premeStock | 27106fd581b71df1729f94a79f5a6a10b41ece00 | [
"MIT"
] | 69 | 2017-03-09T00:24:09.000Z | 2021-11-15T05:52:09.000Z | masterStock.py | Coway/premeStock | 27106fd581b71df1729f94a79f5a6a10b41ece00 | [
"MIT"
] | 12 | 2017-03-11T04:31:29.000Z | 2018-06-21T03:54:28.000Z | masterStock.py | supthunder/premeStock | 27106fd581b71df1729f94a79f5a6a10b41ece00 | [
"MIT"
] | 19 | 2017-03-05T22:16:37.000Z | 2020-06-23T22:41:33.000Z | import requests
from bs4 import BeautifulSoup
import json
def loadMasterStock():
url = "http://www.supremenewyork.com/mobile_stock.json"
user = {"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1"}
# user = {"User-Ag... | 41.5 | 161 | 0.680723 | 243 | 1,826 | 4.99177 | 0.423868 | 0.125309 | 0.145095 | 0.211047 | 0.405606 | 0.405606 | 0.369332 | 0.369332 | 0.285243 | 0.093982 | 0 | 0.032136 | 0.130887 | 1,826 | 43 | 162 | 42.465116 | 0.732199 | 0.088171 | 0 | 0.166667 | 0 | 0.027778 | 0.355596 | 0.11071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.111111 | 0.138889 | 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 |
18b6001fed8371bb91ce9e52ae604dbe21d1ea14 | 5,353 | py | Python | release.py | dhleong/beholder | 1459c67907c436f6abc2abcd82c817e177fcd85f | [
"MIT"
] | 4 | 2020-03-11T01:35:42.000Z | 2021-08-31T20:18:22.000Z | release.py | dhleong/beholder | 1459c67907c436f6abc2abcd82c817e177fcd85f | [
"MIT"
] | 15 | 2018-04-29T20:25:14.000Z | 2020-03-14T13:44:59.000Z | release.py | dhleong/beholder | 1459c67907c436f6abc2abcd82c817e177fcd85f | [
"MIT"
] | 1 | 2020-10-27T22:43:46.000Z | 2020-10-27T22:43:46.000Z | #!/usr/bin/env python
#
# Release script for beholder
#
import hashlib
import urllib
from collections import OrderedDict
try:
from hostage import * #pylint: disable=unused-wildcard-import,wildcard-import
except ImportError:
print "!! Release library unavailable."
print "!! Use `pip install hostage` to fi... | 27.172589 | 82 | 0.64618 | 604 | 5,353 | 5.715232 | 0.466887 | 0.015064 | 0.013326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010351 | 0.205866 | 5,353 | 196 | 83 | 27.311224 | 0.801694 | 0.086494 | 0 | 0.017391 | 0 | 0 | 0.22575 | 0.010729 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.104348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
18b77fe12dbcd84b5d365548128c4a03151b1396 | 3,949 | py | Python | src/simulator/simulator.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 46 | 2020-12-25T04:09:15.000Z | 2022-03-25T12:32:42.000Z | src/simulator/simulator.py | ed741/PathBench | 50fe138eb1f824f49fe1a862705e435a1c3ec3ae | [
"BSD-3-Clause"
] | 36 | 2020-12-21T16:10:02.000Z | 2022-01-03T01:42:01.000Z | src/simulator/simulator.py | judicaelclair/PathBenchURO | 101e67674efdfa8e27e1cf7787dac9fdf99552fe | [
"BSD-3-Clause"
] | 11 | 2021-01-06T23:34:12.000Z | 2022-03-21T17:21:47.000Z | from typing import Optional
from algorithms.basic_testing import BasicTesting
from simulator.controllers.main_controller import MainController
from simulator.controllers.map.map_controller import MapController
from simulator.controllers.gui.gui_controller import GuiController
from simulator.models.main_model import M... | 34.640351 | 95 | 0.683971 | 441 | 3,949 | 5.653061 | 0.197279 | 0.056157 | 0.038508 | 0.025271 | 0.115925 | 0.031288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239301 | 3,949 | 113 | 96 | 34.946903 | 0.829893 | 0.062294 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.214286 | 0.014286 | 0.514286 | 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 |
18c72218e5a46e6e788b195ce2de8f4c86c23159 | 444 | py | Python | qmt/geometry/geo_data_base.py | basnijholt/qmt | 68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4 | [
"MIT"
] | null | null | null | qmt/geometry/geo_data_base.py | basnijholt/qmt | 68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4 | [
"MIT"
] | null | null | null | qmt/geometry/geo_data_base.py | basnijholt/qmt | 68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4 | [
"MIT"
] | null | null | null | from typing import Any, Dict, List
from qmt.infrastructure import WithParts
class GeoData(WithParts):
def __init__(self, lunit: str = "nm"):
"""Base class for geometry data objects.
Parameters
----------
lunit : str, optional
Length unit for this geometry, by d... | 26.117647 | 58 | 0.572072 | 49 | 444 | 5 | 0.653061 | 0.097959 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313063 | 444 | 16 | 59 | 27.75 | 0.803279 | 0.29955 | 0 | 0 | 0 | 0 | 0.007813 | 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 |
18e718827e2560736ccb159689ee15cc3157f2a5 | 4,084 | py | Python | empyric/collection/controllers.py | dmerthe/empyric | 7553b71e241709836cdef156afa7dd2a1c1edf5a | [
"MIT"
] | 3 | 2021-01-17T14:05:27.000Z | 2022-03-03T06:25:39.000Z | empyric/collection/controllers.py | dmerthe/empyric | 7553b71e241709836cdef156afa7dd2a1c1edf5a | [
"MIT"
] | null | null | null | empyric/collection/controllers.py | dmerthe/empyric | 7553b71e241709836cdef156afa7dd2a1c1edf5a | [
"MIT"
] | 1 | 2021-01-17T14:05:29.000Z | 2021-01-17T14:05:29.000Z | from empyric.adapters import *
from empyric.collection.instrument import *
class OmegaCN7500(Instrument):
"""
Omega model CN7500 PID temperature controller
"""
name = 'OmegaCN7500'
supported_adapters = (
(Modbus, {'slave_mode': 'rtu',
'baud_rate': 38400,
... | 22.31694 | 117 | 0.588149 | 468 | 4,084 | 5.010684 | 0.224359 | 0.072495 | 0.077612 | 0.099787 | 0.529211 | 0.485714 | 0.438806 | 0.438806 | 0.27548 | 0.17484 | 0 | 0.054552 | 0.295299 | 4,084 | 182 | 118 | 22.43956 | 0.76025 | 0.078355 | 0 | 0.507692 | 0 | 0 | 0.07539 | 0 | 0 | 0 | 0.02504 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.015385 | 0.130769 | 0.453846 | 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 |
18e80ab1f054cab4110f82ef2bcc62a0377ee9cd | 2,468 | py | Python | bot/main.py | the-rango/Discord-Python-Bot-Tutorial | 5afa7b0b6b2397a0d566bc6009bb7cac2e4354de | [
"Apache-2.0"
] | null | null | null | bot/main.py | the-rango/Discord-Python-Bot-Tutorial | 5afa7b0b6b2397a0d566bc6009bb7cac2e4354de | [
"Apache-2.0"
] | null | null | null | bot/main.py | the-rango/Discord-Python-Bot-Tutorial | 5afa7b0b6b2397a0d566bc6009bb7cac2e4354de | [
"Apache-2.0"
] | null | null | null | # APACHE LICENSE
# Copyright 2020 Stuart Paterson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 29.380952 | 82 | 0.66329 | 332 | 2,468 | 4.870482 | 0.463855 | 0.037106 | 0.024119 | 0.03525 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.254457 | 2,468 | 83 | 83 | 29.73494 | 0.872283 | 0.407212 | 0 | 0.128205 | 0 | 0 | 0.067927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.102564 | 0 | 0.179487 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
18e9e49334b24d6e872726b2848571c7d6855286 | 624 | py | Python | localpackage/calcs.py | chapmanwilliam/Ogden8 | e17b26609fc3cdd5650bfeba387bd7253513e00e | [
"Apache-2.0"
] | null | null | null | localpackage/calcs.py | chapmanwilliam/Ogden8 | e17b26609fc3cdd5650bfeba387bd7253513e00e | [
"Apache-2.0"
] | null | null | null | localpackage/calcs.py | chapmanwilliam/Ogden8 | e17b26609fc3cdd5650bfeba387bd7253513e00e | [
"Apache-2.0"
] | null | null | null | import os
indentSize=1 #size of the indent
class calcs():
def __init__(self):
self.indent=0
self.txt=[] #text for each line
def clear(self):
self.txt.clear()
self.indent=0
def addCalcs(self,calc):
s=[' ' * self.indent+ t for t in calc.txt]
self.txt += s
... | 20.8 | 50 | 0.56891 | 85 | 624 | 4.129412 | 0.388235 | 0.19943 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009238 | 0.30609 | 624 | 30 | 51 | 20.8 | 0.801386 | 0.057692 | 0 | 0.090909 | 0 | 0 | 0.003407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18eaed4c6444d0552d8dc7a9cc73624816ce21fa | 3,958 | py | Python | grpc-errors/stub/hello_pb2.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | null | null | null | grpc-errors/stub/hello_pb2.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | null | null | null | grpc-errors/stub/hello_pb2.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | 1 | 2016-10-21T07:51:24.000Z | 2016-10-21T07:51:24.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: hello.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf impor... | 27.678322 | 348 | 0.741031 | 468 | 3,958 | 5.982906 | 0.284188 | 0.025714 | 0.06 | 0.034286 | 0.415 | 0.395 | 0.395 | 0.395 | 0.395 | 0.33 | 0 | 0.029284 | 0.1286 | 3,958 | 142 | 349 | 27.873239 | 0.782546 | 0.070237 | 0 | 0.573913 | 1 | 0.008696 | 0.187636 | 0.110566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 |
18eb73361ec3feb33d8a12b5b8881d917685a4cc | 504 | py | Python | ckanext-sitemap/ckanext/sitemap/plugin.py | alexandru-m-g/hdx-ckan | 647f1f23f0505fa195601245b758edcaf4d25985 | [
"Apache-2.0"
] | 1 | 2020-03-07T02:47:15.000Z | 2020-03-07T02:47:15.000Z | ckanext-sitemap/ckanext/sitemap/plugin.py | datopian/hdx-ckan | 2d8871c035a18e48b53859fec522b997b500afe9 | [
"Apache-2.0"
] | null | null | null | ckanext-sitemap/ckanext/sitemap/plugin.py | datopian/hdx-ckan | 2d8871c035a18e48b53859fec522b997b500afe9 | [
"Apache-2.0"
] | null | null | null | '''
Sitemap plugin for CKAN
'''
from ckan.plugins import implements, SingletonPlugin
from ckan.plugins import IRoutes
class SitemapPlugin(SingletonPlugin):
implements(IRoutes, inherit=True)
def before_map(self, map):
controller='ckanext.sitemap.controller:SitemapController'
map.connect('sitem... | 29.647059 | 96 | 0.712302 | 54 | 504 | 6.611111 | 0.518519 | 0.044818 | 0.084034 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168651 | 504 | 16 | 97 | 31.5 | 0.852029 | 0.045635 | 0 | 0 | 0 | 0 | 0.215645 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
18ecd7bb8ba5638e693807de98d542a164bfce66 | 2,870 | py | Python | Figure_2/panel_a_Count_mC_bin.py | Wustl-Zhanglab/Placenta_Epigenome | 227f2a42e5c0af821d372b42c9bcf9e561e4627c | [
"MIT"
] | 2 | 2021-06-28T09:16:17.000Z | 2021-07-15T02:39:35.000Z | Figure_2/panel_a_Count_mC_bin.py | Wustl-Zhanglab/Placenta_Epigenome | 227f2a42e5c0af821d372b42c9bcf9e561e4627c | [
"MIT"
] | null | null | null | Figure_2/panel_a_Count_mC_bin.py | Wustl-Zhanglab/Placenta_Epigenome | 227f2a42e5c0af821d372b42c9bcf9e561e4627c | [
"MIT"
] | 2 | 2020-05-29T01:06:19.000Z | 2021-07-02T01:04:50.000Z | #!/usr/bin/python
# programmer : Bo
# usage: Count_Reads_bin.py file_list
import sys
import re
import random
import string
import time
def main(X):
try:
print 'opening file :',X
infile = open(X,"r").readlines()
print 'Total ',len(infile),' lines.'
return infile
except IOError... | 27.075472 | 94 | 0.444599 | 418 | 2,870 | 2.964115 | 0.239234 | 0.041162 | 0.039548 | 0.040355 | 0.082324 | 0.051655 | 0.051655 | 0.051655 | 0 | 0 | 0 | 0.049245 | 0.377352 | 2,870 | 105 | 95 | 27.333333 | 0.644096 | 0.066899 | 0 | 0.133333 | 0 | 0 | 0.058405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18ef5021800d056c99fea4a85de29d3c6771923f | 390 | py | Python | examples/example1.py | wallrj/twisted-names-talk | d3098ab6745abd0d14bb0b6eef41727e5a89de1f | [
"MIT"
] | 2 | 2017-12-01T00:14:25.000Z | 2020-07-01T00:27:44.000Z | examples/example1.py | wallrj/twisted-names-talk | d3098ab6745abd0d14bb0b6eef41727e5a89de1f | [
"MIT"
] | null | null | null | examples/example1.py | wallrj/twisted-names-talk | d3098ab6745abd0d14bb0b6eef41727e5a89de1f | [
"MIT"
] | null | null | null | from twisted.internet import task
from twisted.names import dns
def main(reactor):
proto = dns.DNSDatagramProtocol(controller=None)
reactor.listenUDP(0, proto)
d = proto.query(('8.8.8.8', 53), [dns.Query('www.example.com', dns.AAAA)])
d.addCallback(printResult)
return d
def printResult(res):
... | 24.375 | 78 | 0.697436 | 57 | 390 | 4.77193 | 0.614035 | 0.022059 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021407 | 0.161538 | 390 | 15 | 79 | 26 | 0.810398 | 0 | 0 | 0 | 0 | 0 | 0.079487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
18f0f41a4a703e23e45d0e7b9b74208ed5cbd775 | 1,294 | py | Python | setup.py | jeremycline/crochet | ecfc22cefa90f3dfbafa71883c1470e7294f2b6d | [
"MIT"
] | null | null | null | setup.py | jeremycline/crochet | ecfc22cefa90f3dfbafa71883c1470e7294f2b6d | [
"MIT"
] | null | null | null | setup.py | jeremycline/crochet | ecfc22cefa90f3dfbafa71883c1470e7294f2b6d | [
"MIT"
] | 1 | 2020-01-25T18:00:31.000Z | 2020-01-25T18:00:31.000Z | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import versioneer
def read(path):
"""
Read the contents of a file.
"""
with open(path) as f:
return f.read()
setup(
classifiers=[
'Intended Audience :: Developers',
'License ::... | 28.130435 | 71 | 0.616692 | 132 | 1,294 | 6.007576 | 0.621212 | 0.167718 | 0.220681 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011179 | 0.239567 | 1,294 | 45 | 72 | 28.755556 | 0.794715 | 0.021638 | 0 | 0.054054 | 0 | 0 | 0.4664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.162162 | 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 |
18f2ad5a7c870598e6dec3394ee47ca770ec9558 | 3,289 | py | Python | tests/test_nacl.py | intangere/NewHope_X25519_XSalsa20_Poly1305 | 459914e520bcb5aa207a11533ae217d50719307d | [
"MIT"
] | null | null | null | tests/test_nacl.py | intangere/NewHope_X25519_XSalsa20_Poly1305 | 459914e520bcb5aa207a11533ae217d50719307d | [
"MIT"
] | 1 | 2021-06-21T03:07:13.000Z | 2021-06-21T03:07:13.000Z | tests/test_nacl.py | intangere/NewHope_X25519_XSalsa20_Poly1305 | 459914e520bcb5aa207a11533ae217d50719307d | [
"MIT"
] | null | null | null | # Import libnacl libs
import libnacl
import libnacl.utils
# Import python libs
import unittest
class TestPublic(unittest.TestCase):
'''
Test public functions
'''
def test_gen(self):
pk1, sk1 = libnacl.crypto_box_keypair()
pk2, sk2 = libnacl.crypto_box_keypair()
pk3, sk3 = libn... | 38.244186 | 72 | 0.663728 | 418 | 3,289 | 4.985646 | 0.143541 | 0.180902 | 0.222649 | 0.121401 | 0.678983 | 0.603167 | 0.543666 | 0.425624 | 0.40691 | 0.278791 | 0 | 0.034786 | 0.239587 | 3,289 | 86 | 73 | 38.244186 | 0.798481 | 0.034357 | 0 | 0.38806 | 0 | 0 | 0.034253 | 0 | 0 | 0 | 0 | 0 | 0.38806 | 1 | 0.059701 | false | 0 | 0.044776 | 0 | 0.119403 | 0.029851 | 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 |
18f9f056fd0c54a5b1e0f0f03ecf846e53698354 | 484 | py | Python | mayan/__init__.py | sneha-rk/drawings-version-control | 4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497 | [
"Apache-2.0"
] | 1 | 2021-05-14T18:40:37.000Z | 2021-05-14T18:40:37.000Z | mayan/__init__.py | sneha-rk/drawings-version-control | 4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497 | [
"Apache-2.0"
] | null | null | null | mayan/__init__.py | sneha-rk/drawings-version-control | 4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
<<<<<<< HEAD
__title__ = 'Mayan EDMS'
__version__ = '2.7.3'
__build__ = 0x020703
=======
__title__ = 'IITH DVC'
__version__ = '2.7.2'
__build__ = 0x020702
>>>>>>> 4cedd41ab6b9750abaebc35d1970556408d83cf5
__author__ = 'Roberto Rosario'
__author_email__ = 'roberto.rosario@mayan-ed... | 28.470588 | 74 | 0.760331 | 53 | 484 | 6 | 0.716981 | 0.132075 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123832 | 0.115702 | 484 | 16 | 75 | 30.25 | 0.619159 | 0 | 0 | 0 | 0 | 0 | 0.355372 | 0.061983 | 0 | 0 | 0.033058 | 0 | 0 | 0 | null | null | 0 | 0.066667 | 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 |
18fdbb6a59afbc92dbdea6d53c5bce95efda434c | 5,321 | py | Python | server/py/camera.py | sreyas/Attendance-management-system | eeb57bcc942f407151b71bfab528e817c6806c74 | [
"MIT"
] | null | null | null | server/py/camera.py | sreyas/Attendance-management-system | eeb57bcc942f407151b71bfab528e817c6806c74 | [
"MIT"
] | null | null | null | server/py/camera.py | sreyas/Attendance-management-system | eeb57bcc942f407151b71bfab528e817c6806c74 | [
"MIT"
] | null | null | null | import cv2
import sys,json,numpy as np
import glob,os
import face_recognition
import datetime
from pathlib import Path
from pymongo import MongoClient
from flask_mongoengine import MongoEngine
from bson.objectid import ObjectId
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
client = MongoCl... | 41.248062 | 100 | 0.595001 | 601 | 5,321 | 5.109817 | 0.334443 | 0.041029 | 0.035168 | 0.021491 | 0.191469 | 0.183002 | 0.183002 | 0.15565 | 0.15565 | 0.15565 | 0 | 0.02008 | 0.298064 | 5,321 | 128 | 101 | 41.570313 | 0.802142 | 0.078369 | 0 | 0.242991 | 0 | 0 | 0.070903 | 0.022477 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084112 | 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 |
18ffb685c2a877f7f518f970f9a6eafbcd304771 | 2,099 | py | Python | apps/comments/migrations/0001_initial.py | puertoricanDev/horas | 28597af13409edd088a71143d2f4c94cd7fd83f5 | [
"MIT"
] | 10 | 2015-01-18T02:39:35.000Z | 2021-11-09T22:53:10.000Z | apps/comments/migrations/0001_initial.py | puertoricanDev/horas | 28597af13409edd088a71143d2f4c94cd7fd83f5 | [
"MIT"
] | 52 | 2015-03-02T17:46:23.000Z | 2022-02-10T13:23:11.000Z | apps/comments/migrations/0001_initial.py | puertoricanDev/horas | 28597af13409edd088a71143d2f4c94cd7fd83f5 | [
"MIT"
] | 7 | 2015-03-02T01:23:35.000Z | 2021-11-09T22:58:39.000Z | # Generated by Django 1.10.6 on 2017-03-13 04:46
# Modified by Raúl Negrón on 2019-06-22 16:48
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
import apps.core.models
class Migration(migrations.Migration):
initial = True
... | 31.328358 | 85 | 0.45212 | 159 | 2,099 | 5.842767 | 0.503145 | 0.034446 | 0.04521 | 0.071044 | 0.223897 | 0.223897 | 0.223897 | 0.223897 | 0.223897 | 0 | 0 | 0.02812 | 0.457837 | 2,099 | 66 | 86 | 31.80303 | 0.788225 | 0.042878 | 0 | 0.280702 | 1 | 0 | 0.078764 | 0.026421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.087719 | 0 | 0.157895 | 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 |
7a15cfeb891a079af5b1c667c60e264effefd0f3 | 4,602 | py | Python | main.py | Lorn-Hukka/academy-record-sender | 137ef9d1dff373662a046bc2a50d7dd5f4fad0ee | [
"MIT"
] | null | null | null | main.py | Lorn-Hukka/academy-record-sender | 137ef9d1dff373662a046bc2a50d7dd5f4fad0ee | [
"MIT"
] | null | null | null | main.py | Lorn-Hukka/academy-record-sender | 137ef9d1dff373662a046bc2a50d7dd5f4fad0ee | [
"MIT"
] | null | null | null | import random, os, string, subprocess, shutil, requests
from discord import Webhook, RequestsWebhookAdapter, Embed
from dotenv import dotenv_values
import argparse, colorama
from colorama import Fore
class Settings():
def __init__(self):
for k, v in dotenv_values(".settings").items():
setattr(... | 40.368421 | 140 | 0.526945 | 521 | 4,602 | 4.525912 | 0.364683 | 0.055131 | 0.036048 | 0.044529 | 0.150551 | 0.072095 | 0 | 0 | 0 | 0 | 0 | 0.01784 | 0.317905 | 4,602 | 113 | 141 | 40.725664 | 0.733355 | 0 | 0 | 0.044444 | 0 | 0.022222 | 0.226858 | 0.029335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.144444 | 0.055556 | 0 | 0.177778 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7a1ab771a442031e1729dd19987c53780afb2187 | 3,447 | py | Python | tests/bin/test_tcex_list.py | phuerta-tc/tcex | 4a4e800e1a6114c1fde663f8c3ab7a1d58045c79 | [
"Apache-2.0"
] | null | null | null | tests/bin/test_tcex_list.py | phuerta-tc/tcex | 4a4e800e1a6114c1fde663f8c3ab7a1d58045c79 | [
"Apache-2.0"
] | null | null | null | tests/bin/test_tcex_list.py | phuerta-tc/tcex | 4a4e800e1a6114c1fde663f8c3ab7a1d58045c79 | [
"Apache-2.0"
] | null | null | null | """Bin Testing"""
# standard library
from importlib.machinery import SourceFileLoader
from importlib.util import module_from_spec, spec_from_loader
from typing import List
# third-party
from typer.testing import CliRunner
# dynamically load bin/tcex file
spec = spec_from_loader('app', SourceFileLoader('app', 'bin/tce... | 33.794118 | 83 | 0.642878 | 441 | 3,447 | 4.868481 | 0.192744 | 0.100606 | 0.071728 | 0.048905 | 0.691663 | 0.668374 | 0.625058 | 0.586865 | 0.586865 | 0.568235 | 0 | 0.002677 | 0.241369 | 3,447 | 101 | 84 | 34.128713 | 0.818356 | 0.531477 | 0 | 0.137931 | 0 | 0 | 0.08034 | 0 | 0 | 0 | 0 | 0.009901 | 0.241379 | 1 | 0.206897 | false | 0 | 0.137931 | 0 | 0.413793 | 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 |
7a1ef72332e8f8f0f2089763d5744f430bdbbf1f | 2,365 | py | Python | log_parser/single_hand_efficiency_training_data.py | xinranhe/mahjong | 8cfc6234f9c80fd11267adf06b420b63f4c8d87d | [
"MIT"
] | null | null | null | log_parser/single_hand_efficiency_training_data.py | xinranhe/mahjong | 8cfc6234f9c80fd11267adf06b420b63f4c8d87d | [
"MIT"
] | null | null | null | log_parser/single_hand_efficiency_training_data.py | xinranhe/mahjong | 8cfc6234f9c80fd11267adf06b420b63f4c8d87d | [
"MIT"
] | null | null | null | import argparse
from mahjong.shanten import Shanten
from multiprocessing import Pool
import os
import sys
from log_parser.discard_prediction_parser import parse_discard_prediction
SHANTEN = Shanten()
INPUT_DATA_FOLDER = "data/raw"
OUTPUT_DATA_DIR = "data/single_hand_efficiency"
def tiles34_to_list(tiles):
resul... | 35.833333 | 124 | 0.60296 | 307 | 2,365 | 4.374593 | 0.348534 | 0.029784 | 0.048399 | 0.031273 | 0.075949 | 0.038719 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.285412 | 2,365 | 65 | 125 | 36.384615 | 0.78284 | 0.038901 | 0 | 0.037736 | 0 | 0 | 0.070516 | 0.0119 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113208 | null | null | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1314b5fc0e2d4894cb7cecd74444fc00587afb1 | 190 | py | Python | prob_020.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | 1 | 2017-02-13T19:00:59.000Z | 2017-02-13T19:00:59.000Z | prob_020.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | null | null | null | prob_020.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | null | null | null | def sum_digit(n):
total = 0
while n != 0:
total += n % 10
n /= 10
return total
def factorial(n):
if n <= 0:
return 1
return n * factorial(n - 1)
| 15.833333 | 31 | 0.473684 | 29 | 190 | 3.068966 | 0.413793 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080357 | 0.410526 | 190 | 11 | 32 | 17.272727 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e137881799720563759aa64b3e6bb8a63eb7afae | 496 | py | Python | Chapter13/server.py | Joustie/Mastering-GitLab-12 | 5ac4700791e4274ef3de825bc789c46142af403e | [
"MIT"
] | 40 | 2019-07-06T04:40:27.000Z | 2022-03-31T09:25:07.000Z | Chapter13/server.py | Joustie/Mastering-GitLab-12 | 5ac4700791e4274ef3de825bc789c46142af403e | [
"MIT"
] | 1 | 2019-08-03T17:52:08.000Z | 2020-12-16T06:31:53.000Z | Chapter13/server.py | Joustie/Mastering-GitLab-12 | 5ac4700791e4274ef3de825bc789c46142af403e | [
"MIT"
] | 50 | 2019-07-26T08:49:49.000Z | 2022-03-17T21:01:03.000Z | from flask import Flask, request
import json
app = Flask(__name__)
def runsomething():
print "This is triggered"
@app.route('/',methods=['POST'])
def trigger():
data = json.loads(request.data)
print "New commit by: {}".format(data['commits'][0]['author']['name'])
print "New commit by: {}".format(data['c... | 24.8 | 74 | 0.635081 | 64 | 496 | 4.734375 | 0.515625 | 0.079208 | 0.138614 | 0.158416 | 0.376238 | 0.376238 | 0.376238 | 0.376238 | 0.264026 | 0 | 0 | 0.00716 | 0.155242 | 496 | 20 | 75 | 24.8 | 0.71599 | 0 | 0 | 0 | 0 | 0 | 0.265594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e13d3df96caed4ad7bea9f68e21a31547457cf49 | 1,564 | py | Python | release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/time.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2019-01-13T09:16:31.000Z | 2019-02-15T03:30:28.000Z | release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/time.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | null | null | null | release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/time.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2020-03-08T01:58:25.000Z | 2020-12-20T10:34:54.000Z | #!/usr/bin/env python
#
# time
#
# Copyright Jelmer Vernooij 2010 <jelmer@samba.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any ... | 32.583333 | 85 | 0.710997 | 214 | 1,564 | 5.140187 | 0.551402 | 0.054545 | 0.035455 | 0.051818 | 0.074545 | 0.050909 | 0 | 0 | 0 | 0 | 0 | 0.004013 | 0.203325 | 1,564 | 47 | 86 | 33.276596 | 0.878812 | 0.43798 | 0 | 0 | 0 | 0 | 0.08091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e13feb6e08fa5f3de107d84f4998b9cc0fdd3b93 | 1,582 | py | Python | mpcontribs-portal/mpcontribs/portal/urls.py | fraricci/MPContribs | 800e8fded594dce57807e7ef0ec8d3192ce54825 | [
"MIT"
] | null | null | null | mpcontribs-portal/mpcontribs/portal/urls.py | fraricci/MPContribs | 800e8fded594dce57807e7ef0ec8d3192ce54825 | [
"MIT"
] | null | null | null | mpcontribs-portal/mpcontribs/portal/urls.py | fraricci/MPContribs | 800e8fded594dce57807e7ef0ec8d3192ce54825 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import url
from django.views.generic.base import RedirectView
from mpcontribs.portal import views
app_name = "mpcontribs_portal"
urlpatterns = [
url(r"^$", views.index, name="index"),
url(r"^healthcheck/?$", views.healthcheck, name="healthcheck"),
url(
... | 31.019608 | 87 | 0.584071 | 194 | 1,582 | 4.654639 | 0.340206 | 0.057586 | 0.099668 | 0.116279 | 0.352159 | 0.296788 | 0.296788 | 0.296788 | 0.267996 | 0.174972 | 0 | 0.015139 | 0.2067 | 1,582 | 50 | 88 | 31.64 | 0.704382 | 0.049305 | 0 | 0.363636 | 0 | 0 | 0.323765 | 0.20494 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 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 |
e1416e342916d61944b1391ba364f72736a6b340 | 1,415 | py | Python | Pixelfonts/Delete duplicate components.py | NaN-xyz/Glyphs-Scripts | bdacf455babc72e0801d8d8db5dc10f8e88aa37b | [
"Apache-2.0"
] | 1 | 2022-01-09T04:28:36.000Z | 2022-01-09T04:28:36.000Z | Pixelfonts/Delete duplicate components.py | NaN-xyz/Glyphs-Scripts | bdacf455babc72e0801d8d8db5dc10f8e88aa37b | [
"Apache-2.0"
] | null | null | null | Pixelfonts/Delete duplicate components.py | NaN-xyz/Glyphs-Scripts | bdacf455babc72e0801d8d8db5dc10f8e88aa37b | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Delete Duplicate Components
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
__doc__="""
Looks for duplicate components (same component, same x/y values) and keeps only one of them.
"""
Font = Glyphs.font
selectedLayers = Font.selectedLayers
def getAttr( thisLayer,... | 27.745098 | 128 | 0.743463 | 154 | 1,415 | 6.766234 | 0.448052 | 0.127639 | 0.083493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005838 | 0.15265 | 1,415 | 50 | 129 | 28.3 | 0.863219 | 0.062191 | 0 | 0.060606 | 0 | 0.030303 | 0.092145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e141938b24307f066ff503fed7f111fa1bbefd00 | 3,317 | py | Python | src/structures/Errors.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | null | null | null | src/structures/Errors.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | 9 | 2022-02-23T10:32:44.000Z | 2022-03-27T17:55:43.000Z | src/structures/Errors.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | null | null | null | """
Error classes, when needed for exceptions.
"""
from _ast import AST
from dataclasses import dataclass, field
from typing import Optional, Union
from src.compiler.Util import Util
@dataclass(frozen=True)
class ObjectAlreadyDefinedError(NameError):
"""
For our compilation scheme, objects can only be define... | 31.894231 | 118 | 0.67561 | 441 | 3,317 | 5.002268 | 0.353742 | 0.040798 | 0.051677 | 0.065277 | 0.159112 | 0.151859 | 0.135993 | 0.101995 | 0.088849 | 0.088849 | 0 | 0.000397 | 0.241182 | 3,317 | 103 | 119 | 32.203884 | 0.876043 | 0.364185 | 0 | 0.341463 | 0 | 0.02439 | 0.258507 | 0.011173 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.097561 | 0.146341 | 0.707317 | 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 |
e14d0acbede38071c9f51e6e3d4fd2359e4f607b | 863 | py | Python | pylbd/s3_object.py | MacHu-GWU/pylbd-project | d9be28d1f9f7679237e4d3c86f63ea06f43249dd | [
"MIT"
] | null | null | null | pylbd/s3_object.py | MacHu-GWU/pylbd-project | d9be28d1f9f7679237e4d3c86f63ea06f43249dd | [
"MIT"
] | null | null | null | pylbd/s3_object.py | MacHu-GWU/pylbd-project | d9be28d1f9f7679237e4d3c86f63ea06f43249dd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import boto3
from botocore.exceptions import ClientError
import attr
from attrs_mate import AttrsClass
import weakref
@attr.s
class S3Object(AttrsClass):
aws_profile = attr.ib()
bucket = attr.ib() # type: str
key = attr.ib() # type: str
_s3_client_cache = weakref.WeakValueDic... | 26.151515 | 86 | 0.659328 | 113 | 863 | 4.823009 | 0.424779 | 0.088073 | 0.095413 | 0.093578 | 0.113761 | 0.113761 | 0.113761 | 0 | 0 | 0 | 0 | 0.018519 | 0.249131 | 863 | 32 | 87 | 26.96875 | 0.822531 | 0.047509 | 0 | 0 | 0 | 0 | 0.002448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.625 | 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 |
e14daa2e05a40d76224587c816432879876d552a | 949 | py | Python | utils.py | YaelMoshe/CSV-Compressor | 82a72c1750a8d1fb4b6f3d312995a537edbda48c | [
"MIT"
] | null | null | null | utils.py | YaelMoshe/CSV-Compressor | 82a72c1750a8d1fb4b6f3d312995a537edbda48c | [
"MIT"
] | null | null | null | utils.py | YaelMoshe/CSV-Compressor | 82a72c1750a8d1fb4b6f3d312995a537edbda48c | [
"MIT"
] | null | null | null |
class CompressorUtils(object):
@staticmethod
def encode(_cell, _list):
if not _cell:
data = "-"
elif _cell not in _list:
data = str(len(_list))
_list.append(_cell)
else:
data = str(_list.index(_cell))
return data
... | 23.725 | 48 | 0.500527 | 102 | 949 | 4.323529 | 0.352941 | 0.136054 | 0.07483 | 0.117914 | 0.131519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001754 | 0.399368 | 949 | 39 | 49 | 24.333333 | 0.77193 | 0 | 0 | 0.1875 | 0 | 0 | 0.006601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e150737ff1e7de27f34b49c4df0d1658c30b7b57 | 2,469 | py | Python | Gds/src/fprime_gds/common/data_types/sys_data.py | m-aleem/fprime | ae8a2a43a39d0e8a1908a82b48106467357d6cba | [
"Apache-2.0"
] | 1 | 2020-05-12T03:43:36.000Z | 2020-05-12T03:43:36.000Z | Gds/src/fprime_gds/common/data_types/sys_data.py | abcouwer-jpl/fprime | f28c92e31d58e7e44bff09ad57d574ca5d5e91c7 | [
"Apache-2.0"
] | 5 | 2020-05-26T21:38:02.000Z | 2020-05-26T21:43:33.000Z | Gds/src/fprime_gds/common/data_types/sys_data.py | abcouwer-jpl/fprime | f28c92e31d58e7e44bff09ad57d574ca5d5e91c7 | [
"Apache-2.0"
] | 3 | 2020-09-05T18:17:21.000Z | 2020-11-15T04:06:24.000Z | '''
@brief Base class for system data classes.
This class defines the interface for cata classes which are intended to hold
a specific data item (packet, channel, event). This data item includes the time
of the data as well as data such as channel value or argument value.
@date Created July 2, 2018
@author R. Joseph ... | 24.939394 | 79 | 0.617254 | 323 | 2,469 | 4.628483 | 0.396285 | 0.016722 | 0.01806 | 0.026756 | 0.105686 | 0.032107 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0.311057 | 2,469 | 98 | 80 | 25.193878 | 0.870664 | 0.495342 | 0 | 0 | 0 | 0 | 0.008138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.037037 | 0.111111 | 0 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e152f4d6dde06ac4acdcd8bfa8623f41a066db20 | 1,654 | py | Python | workflow/migrations/0027_tolausercountryroles_tolauserprogramroles.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | null | null | null | workflow/migrations/0027_tolausercountryroles_tolauserprogramroles.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | 268 | 2020-03-31T15:46:59.000Z | 2022-03-31T18:01:08.000Z | workflow/migrations/0027_tolausercountryroles_tolauserprogramroles.py | Falliatcom-sa/falliatcom | 39fb926de072c296ed32d50cccfb8003ca870739 | [
"Apache-2.0"
] | 1 | 2021-01-05T01:58:24.000Z | 2021-01-05T01:58:24.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-01-18 17:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('workflow', '0026_auto_20190116_1357'),
]
operation... | 47.257143 | 151 | 0.628174 | 178 | 1,654 | 5.668539 | 0.38764 | 0.047572 | 0.069376 | 0.109019 | 0.507433 | 0.507433 | 0.507433 | 0.507433 | 0.507433 | 0.507433 | 0 | 0.029931 | 0.212213 | 1,654 | 34 | 152 | 48.647059 | 0.744436 | 0.041112 | 0 | 0.37037 | 1 | 0 | 0.188882 | 0.014529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e15353b2bdb09ab7d8c47ead4ff13403eb177890 | 753 | py | Python | set-2/challenge-11.py | natehouk/cryptopals-crypto-challenges-solutions | 3b89a94d42a9b052b2f79d37ba3fa9e3ec17c869 | [
"MIT"
] | null | null | null | set-2/challenge-11.py | natehouk/cryptopals-crypto-challenges-solutions | 3b89a94d42a9b052b2f79d37ba3fa9e3ec17c869 | [
"MIT"
] | null | null | null | set-2/challenge-11.py | natehouk/cryptopals-crypto-challenges-solutions | 3b89a94d42a9b052b2f79d37ba3fa9e3ec17c869 | [
"MIT"
] | null | null | null | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import random
from util.util import pad, detect_aes_ecb, generate_key, ammend_plaintext, encrypt_random
# Chosen plaintext
plaintext = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
# Generate data and encrypt plaintext
key = g... | 30.12 | 89 | 0.749004 | 102 | 753 | 5.392157 | 0.431373 | 0.032727 | 0.047273 | 0.054545 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.126162 | 753 | 25 | 90 | 30.12 | 0.823708 | 0.116866 | 0 | 0 | 1 | 0 | 0.198185 | 0.065053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.235294 | 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 |
e1601ec501793267dab5b7a344de5c414ede0c73 | 2,904 | py | Python | PA1/ArrayListTests/main_create_tests.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | null | null | null | PA1/ArrayListTests/main_create_tests.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | null | null | null | PA1/ArrayListTests/main_create_tests.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | 1 | 2021-02-12T11:36:53.000Z | 2021-02-12T11:36:53.000Z |
import random
from random import Random
def write_test_line(f, r, c, clear, o = 0):
f.write("\n")
if(o == 0):
if clear == 0:
o = r.randint(1, 8)
elif clear == 1:
o = 9
else:
o = r.randint(1, 9)
if o == 1:
f.write("prepend")
f.wri... | 19.755102 | 43 | 0.512741 | 509 | 2,904 | 2.772102 | 0.119843 | 0.174344 | 0.102055 | 0.119064 | 0.726435 | 0.726435 | 0.697378 | 0.672573 | 0.645641 | 0.555634 | 0 | 0.051295 | 0.30854 | 2,904 | 146 | 44 | 19.890411 | 0.651394 | 0 | 0 | 0.596491 | 0 | 0 | 0.04857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04386 | false | 0 | 0.017544 | 0 | 0.105263 | 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 |
e16e5534d48d16f412f05cd80a5b2d4be81a0792 | 702 | py | Python | api/krenak_api/apps/activities/migrations/0008_auto_20210506_2357.py | bacuarabrasil/krenak | ad6a3af5ff162783ec9bd40d07a82f09bf35071b | [
"MIT"
] | null | null | null | api/krenak_api/apps/activities/migrations/0008_auto_20210506_2357.py | bacuarabrasil/krenak | ad6a3af5ff162783ec9bd40d07a82f09bf35071b | [
"MIT"
] | 26 | 2021-03-10T22:07:57.000Z | 2021-03-11T12:13:35.000Z | api/krenak_api/apps/activities/migrations/0008_auto_20210506_2357.py | bacuarabrasil/krenak | ad6a3af5ff162783ec9bd40d07a82f09bf35071b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-06 23:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mentorships', '0001_initial'),
('activities', '0007_activity_enrollment'),
]
operations = [
migrati... | 28.08 | 175 | 0.633903 | 71 | 702 | 6.15493 | 0.605634 | 0.05492 | 0.064073 | 0.100687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043315 | 0.24359 | 702 | 24 | 176 | 29.25 | 0.779661 | 0.064103 | 0 | 0.222222 | 1 | 0 | 0.206107 | 0.070229 | 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 |
e1741137c9f22621cbb2d5cd7d5c872d48ea9402 | 45,528 | py | Python | grr/client/client_actions/file_finder_test.py | panhania/grr | fe16a7311a528e31fe0e315a880e98273b8df960 | [
"Apache-2.0"
] | null | null | null | grr/client/client_actions/file_finder_test.py | panhania/grr | fe16a7311a528e31fe0e315a880e98273b8df960 | [
"Apache-2.0"
] | null | null | null | grr/client/client_actions/file_finder_test.py | panhania/grr | fe16a7311a528e31fe0e315a880e98273b8df960 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Tests the client file finder action."""
import collections
import glob
import hashlib
import os
import platform
import shutil
import subprocess
import unittest
import mock
import psutil
import unittest
from grr.client import comms
from grr.client.client_actions import file_finder as client_f... | 35.708235 | 80 | 0.698405 | 5,556 | 45,528 | 5.519258 | 0.103852 | 0.054296 | 0.030947 | 0.042785 | 0.757313 | 0.703277 | 0.673634 | 0.6346 | 0.596152 | 0.568074 | 0 | 0.020659 | 0.181361 | 45,528 | 1,274 | 81 | 35.736264 | 0.802098 | 0.033496 | 0 | 0.565041 | 0 | 0 | 0.0779 | 0.012331 | 0 | 0 | 0.00182 | 0.000785 | 0.207317 | 1 | 0.080285 | false | 0.001016 | 0.022358 | 0.002033 | 0.13313 | 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 |
e174818f6b393a98ed554aec714f2c139a01e0c8 | 1,624 | py | Python | lesson13/sunzhaohui/reboot/deploy/models.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson13/sunzhaohui/reboot/deploy/models.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson13/sunzhaohui/reboot/deploy/models.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
from django.db import models
from users.models import UserProfile
class Deploy(models.Model):
STATUS = (
(0, '申请'),
(1, '审核'),
(2, '上线'),
(3, '已取消'),
(4, '已上线'),
(5,'失败')
)
name = models.CharField(m... | 40.6 | 113 | 0.67734 | 201 | 1,624 | 5.288557 | 0.38806 | 0.144873 | 0.067733 | 0.09031 | 0.511759 | 0.331138 | 0.270931 | 0.129821 | 0 | 0 | 0 | 0.013751 | 0.193966 | 1,624 | 39 | 114 | 41.641026 | 0.798319 | 0.014778 | 0 | 0.068966 | 0 | 0 | 0.058307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.655172 | 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 |
e17d6ab7a795e35c2eccfd187299cdaa6e5f367c | 60,009 | py | Python | pySPACE/resources/dataset_defs/stream.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 32 | 2015-02-20T09:03:09.000Z | 2022-02-25T22:32:52.000Z | pySPACE/resources/dataset_defs/stream.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 5 | 2015-05-18T15:08:40.000Z | 2020-03-05T19:18:01.000Z | pySPACE/resources/dataset_defs/stream.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 18 | 2015-09-28T07:16:38.000Z | 2021-01-20T13:52:19.000Z | """ Reader objects and main class for continuous data (time series)
Depending on the storage format, the fitting reader is loaded and takes care
of reading the files.
.. todo:: unify with analyzer collection!
eeg source and analyzer sink node should work together
this connection should be documented w... | 42.111579 | 137 | 0.580613 | 6,744 | 60,009 | 5.071026 | 0.155694 | 0.002047 | 0.013334 | 0.005614 | 0.453639 | 0.418316 | 0.243136 | 0.179654 | 0.146496 | 0.128425 | 0 | 0.175084 | 0.307771 | 60,009 | 1,424 | 138 | 42.141152 | 0.648195 | 0.071256 | 0 | 0.331933 | 0 | 0 | 0.070029 | 0.002941 | 0 | 0 | 0 | 0.002809 | 0.008403 | 0 | null | null | 0.006303 | 0.012605 | null | null | 0.006303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e17f627e7014eaf9f501344de8ac94066bc5da4f | 70,860 | py | Python | katsdpscripts/rts_session.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | null | null | null | katsdpscripts/rts_session.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 21 | 2019-09-16T15:26:53.000Z | 2022-01-11T09:14:39.000Z | katsdpscripts/rts_session.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 1 | 2019-11-11T11:47:54.000Z | 2019-11-11T11:47:54.000Z | ###############################################################################
# SKA South Africa (http://ska.ac.za/) #
# Author: cam@ska.ac.za #
# Copyright @ 2013 SKA SA. All rights reserved. #
... | 50.14862 | 185 | 0.62869 | 9,177 | 70,860 | 4.738259 | 0.106789 | 0.024147 | 0.025113 | 0.007589 | 0.554332 | 0.51473 | 0.485408 | 0.463721 | 0.43279 | 0.410873 | 0 | 0.007403 | 0.277533 | 70,860 | 1,412 | 186 | 50.184136 | 0.841974 | 0.203274 | 0 | 0.525203 | 0 | 0.006504 | 0.145587 | 0.015092 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00813 | 0.017886 | null | null | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e17fa16cc2830c70bdb6cc63e17b12437230ec42 | 499 | py | Python | projects/webptspy/apps/account/admin.py | codelieche/testing | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | 2 | 2017-08-10T03:40:22.000Z | 2017-08-17T13:20:16.000Z | projects/webptspy/apps/account/admin.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | projects/webptspy/apps/account/admin.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.contrib import admin
from .models import UserProfile
# Register your models here.
class UserProfileModelAdmin(admin.ModelAdmin):
"""
用户管理Model
"""
list_display = ('id', 'username', 'nike_name', 'mobile',
'email', 'is_active')
list_filter = ('... | 26.263158 | 64 | 0.653307 | 52 | 499 | 6.096154 | 0.615385 | 0.069401 | 0.07571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.194389 | 499 | 18 | 65 | 27.722222 | 0.78607 | 0.116232 | 0 | 0 | 0 | 0 | 0.20283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.777778 | 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 |
e183076e1912547a48c02bb69c7456b82ec312ba | 852 | py | Python | qualification_round_2017/C.py | asukakenji/codejam2018 | a519f522337d7faf3d07a84f6e24f0161f95c880 | [
"MIT"
] | null | null | null | qualification_round_2017/C.py | asukakenji/codejam2018 | a519f522337d7faf3d07a84f6e24f0161f95c880 | [
"MIT"
] | null | null | null | qualification_round_2017/C.py | asukakenji/codejam2018 | a519f522337d7faf3d07a84f6e24f0161f95c880 | [
"MIT"
] | null | null | null | # code jam: Qualification Round 2017: Problem C. Bathroom Stalls
def read_int():
return int(raw_input())
def read_int_n():
return map(int, raw_input().split())
def get_y_z(n, k):
if k == 1:
if n & 1 == 0:
# Even Number
return n >> 1, (n >> 1) - 1
else:
... | 23.027027 | 64 | 0.419014 | 127 | 852 | 2.669291 | 0.275591 | 0.053097 | 0.073746 | 0.088496 | 0.477876 | 0.39528 | 0.230089 | 0.230089 | 0.230089 | 0.171091 | 0 | 0.052301 | 0.438967 | 852 | 36 | 65 | 23.666667 | 0.656904 | 0.153756 | 0 | 0.32 | 0 | 0 | 0.021038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1842583bfd3115c7825344cdde05a9fbfaf3644 | 1,143 | py | Python | tests/integration/modules/test_vmc_vm_stats.py | kdsalvy/salt-ext-modules-vmware-1 | 9fdc941692e4c526f575f33b2ce23c1470582934 | [
"Apache-2.0"
] | 10 | 2021-11-02T20:24:44.000Z | 2022-03-11T05:54:27.000Z | tests/integration/modules/test_vmc_vm_stats.py | waynew/salt-ext-modules-vmware | 9f693382772061676c846c850df6ff508b7f3a91 | [
"Apache-2.0"
] | 83 | 2021-10-01T15:13:02.000Z | 2022-03-31T16:22:40.000Z | tests/integration/modules/test_vmc_vm_stats.py | waynew/salt-ext-modules-vmware | 9f693382772061676c846c850df6ff508b7f3a91 | [
"Apache-2.0"
] | 15 | 2021-09-30T23:17:27.000Z | 2022-03-23T06:54:22.000Z | """
Integration Tests for vmc_vm_stats execution module
"""
import pytest
@pytest.fixture
def vm_id(salt_call_cli, vmc_vcenter_connect):
ret = salt_call_cli.run("vmc_sddc.get_vms", **vmc_vcenter_connect)
vm_obj = ret.json[0]
return vm_obj["vm"]
def test_get_cpu_stats_for_vm_smoke_test(salt_call_cli,... | 30.078947 | 87 | 0.724409 | 190 | 1,143 | 3.942105 | 0.231579 | 0.042724 | 0.11749 | 0.074766 | 0.690254 | 0.690254 | 0.690254 | 0.690254 | 0.690254 | 0.690254 | 0 | 0.001058 | 0.173228 | 1,143 | 37 | 88 | 30.891892 | 0.791534 | 0.044619 | 0 | 0.307692 | 0 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.230769 | 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 |
e1927fcb892725b69d50542f139eaa6330088fdc | 14,716 | py | Python | tracing/plugins/ath10k_pktlog.py | lumag/qca-swiss-army-knife | 5ede3cc07e9a52f115101c28f833242b772eeaab | [
"ISC"
] | 47 | 2016-05-20T02:33:26.000Z | 2022-03-02T01:48:57.000Z | tracing/plugins/ath10k_pktlog.py | lumag/qca-swiss-army-knife | 5ede3cc07e9a52f115101c28f833242b772eeaab | [
"ISC"
] | 7 | 2020-04-09T13:40:56.000Z | 2022-01-24T19:18:50.000Z | tracing/plugins/ath10k_pktlog.py | lumag/qca-swiss-army-knife | 5ede3cc07e9a52f115101c28f833242b772eeaab | [
"ISC"
] | 41 | 2016-04-19T06:31:14.000Z | 2022-03-30T06:25:09.000Z | #
# Copyright (c) 2014-2017 Qualcomm Atheros, Inc.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... | 31.177966 | 106 | 0.632509 | 2,068 | 14,716 | 4.162959 | 0.152805 | 0.098966 | 0.048786 | 0.018585 | 0.573702 | 0.5018 | 0.462888 | 0.413288 | 0.389825 | 0.364851 | 0 | 0.066348 | 0.27589 | 14,716 | 471 | 107 | 31.244161 | 0.741554 | 0.149769 | 0 | 0.380192 | 0 | 0 | 0.049711 | 0 | 0 | 0 | 0.000964 | 0.002123 | 0 | 0 | null | null | 0.003195 | 0.00639 | null | null | 0.003195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e195525885c756f6c1eaa22f28ac15deda8bb369 | 2,886 | py | Python | bob/blitz/extension.py | bioidiap/bob.blitz | 348d7cf3866b549cac576efc3c6f3df24245d9fd | [
"BSD-3-Clause"
] | null | null | null | bob/blitz/extension.py | bioidiap/bob.blitz | 348d7cf3866b549cac576efc3c6f3df24245d9fd | [
"BSD-3-Clause"
] | 6 | 2015-01-01T09:15:28.000Z | 2016-10-20T08:09:26.000Z | bob/blitz/extension.py | bioidiap/bob.blitz | 348d7cf3866b549cac576efc3c6f3df24245d9fd | [
"BSD-3-Clause"
] | 3 | 2015-08-05T12:16:45.000Z | 2018-02-01T19:55:40.000Z | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Mon 18 Nov 21:38:19 2013
"""Extension building for using this package
"""
import numpy
from pkg_resources import resource_filename
from bob.extension import Extension as BobExtension
# forward the build_ext command from bob.e... | 31.032258 | 79 | 0.698545 | 370 | 2,886 | 5.216216 | 0.291892 | 0.066321 | 0.020725 | 0.033161 | 0.662176 | 0.662176 | 0.662176 | 0.662176 | 0.596891 | 0.596891 | 0 | 0.014706 | 0.175329 | 2,886 | 92 | 80 | 31.369565 | 0.796218 | 0.372141 | 0 | 0.685714 | 0 | 0 | 0.198606 | 0.049942 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.057143 | false | 0 | 0.2 | 0 | 0.314286 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.