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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f46f3c4cefaf09dba5b7b34cb280860e7e29aaa5 | 1,429 | py | Python | day2.py | twalsh/advent | 7bd35737e1afc9c84a042e315599942bb4406915 | [
"MIT"
] | null | null | null | day2.py | twalsh/advent | 7bd35737e1afc9c84a042e315599942bb4406915 | [
"MIT"
] | null | null | null | day2.py | twalsh/advent | 7bd35737e1afc9c84a042e315599942bb4406915 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import re
rex = re.compile(r'(\d+)-(\d+) (\w): (\w+)')
test_input = ["1-3 a: abcde",
"1-3 b: cdefg",
"2-9 c: ccccccccc"]
def is_valid(line):
print(line)
m = rex.match(line)
(... | 20.710145 | 54 | 0.53254 | 207 | 1,429 | 3.594203 | 0.289855 | 0.064516 | 0.048387 | 0.064516 | 0.686828 | 0.657258 | 0.657258 | 0.587366 | 0.47043 | 0.362903 | 0 | 0.026585 | 0.315605 | 1,429 | 69 | 55 | 20.710145 | 0.734151 | 0.056683 | 0 | 0.55814 | 0 | 0 | 0.065252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.139535 | 0.023256 | 0 | 0.209302 | 0.116279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f4715a1c47811d75da6b08a4f1c67a5030afc0df | 319 | py | Python | jobs/migrations/0003_auto_20210430_2009.py | ycchang27/Job-Post-Web-Scrapper | 71e7cf252468a0492cca659cbab51eadcbe0a399 | [
"MIT"
] | null | null | null | jobs/migrations/0003_auto_20210430_2009.py | ycchang27/Job-Post-Web-Scrapper | 71e7cf252468a0492cca659cbab51eadcbe0a399 | [
"MIT"
] | null | null | null | jobs/migrations/0003_auto_20210430_2009.py | ycchang27/Job-Post-Web-Scrapper | 71e7cf252468a0492cca659cbab51eadcbe0a399 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-05-01 03:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0002_auto_20201202_1936'),
]
operations = [
migrations.AlterModelTable(
name='job',
table='jobs',
),
]
| 17.722222 | 47 | 0.579937 | 34 | 319 | 5.352941 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13964 | 0.304075 | 319 | 17 | 48 | 18.764706 | 0.68018 | 0.141066 | 0 | 0 | 1 | 0 | 0.125 | 0.084559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4721b53423a736073e0fa88c91dd2e6196fd727 | 671 | py | Python | expo/commands/_types.py | VincentRPS/hikari-expo | 73f7cbf5d9da4c2fdc598d9f681a6f58963d2310 | [
"Apache-2.0"
] | 2 | 2022-01-17T06:26:34.000Z | 2022-03-22T10:22:44.000Z | expo/commands/_types.py | VincentRPS/hikari-expo | 73f7cbf5d9da4c2fdc598d9f681a6f58963d2310 | [
"Apache-2.0"
] | null | null | null | expo/commands/_types.py | VincentRPS/hikari-expo | 73f7cbf5d9da4c2fdc598d9f681a6f58963d2310 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 VincentRPS
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... | 27.958333 | 72 | 0.764531 | 108 | 671 | 4.703704 | 0.657407 | 0.11811 | 0.051181 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01426 | 0.163934 | 671 | 23 | 73 | 29.173913 | 0.891266 | 0.813711 | 0 | 0 | 0 | 0 | 0.008547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f477566aa6bb9191b779e0fceb2fec16732d26aa | 15,154 | py | Python | externals/depot_tools/git_drover.py | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 1 | 2019-10-29T14:36:32.000Z | 2019-10-29T14:36:32.000Z | externals/depot_tools/git_drover.py | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 1 | 2017-06-18T00:25:03.000Z | 2017-11-29T16:01:48.000Z | externals/depot_tools/git_drover.py | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 5 | 2017-11-30T06:06:50.000Z | 2022-03-31T21:48:49.000Z | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""git drover: A tool for merging changes to release branches."""
import argparse
import cPickle
import functools
import logging
import... | 33.600887 | 80 | 0.643658 | 1,987 | 15,154 | 4.739809 | 0.211374 | 0.033977 | 0.026226 | 0.030686 | 0.252708 | 0.214483 | 0.187938 | 0.163198 | 0.155766 | 0.139202 | 0 | 0.001579 | 0.247921 | 15,154 | 450 | 81 | 33.675556 | 0.824778 | 0.072852 | 0 | 0.217544 | 0 | 0 | 0.188878 | 0.007317 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007018 | 0.035088 | null | null | 0.003509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f478af2cb8ae0437fe4c7706953288641389c3e5 | 5,994 | py | Python | notebooks/py/smFISH.py | haoxusci/starfish | d7bd856024c75f2ce41504406f2a663566c3814b | [
"MIT"
] | 164 | 2018-03-21T21:52:56.000Z | 2022-03-23T17:14:39.000Z | notebooks/py/smFISH.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 1,728 | 2018-03-15T23:16:09.000Z | 2022-03-12T00:09:18.000Z | notebooks/py/smFISH.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 66 | 2018-03-25T17:21:15.000Z | 2022-01-16T09:17:11.000Z | #!/usr/bin/env python
# coding: utf-8
#
# EPY: stripped_notebook: {"metadata": {"kernelspec": {"display_name": "starfish", "language": "python", "name": "starfish"}, "language_info": {"codemirror_mode": {"name": "ipython", "version": 3}, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert... | 34.056818 | 389 | 0.702202 | 787 | 5,994 | 5.265565 | 0.387548 | 0.021236 | 0.017375 | 0.015685 | 0.146236 | 0.146236 | 0.056467 | 0.01834 | 0.01834 | 0 | 0 | 0.012961 | 0.176176 | 5,994 | 175 | 390 | 34.251429 | 0.826245 | 0.541208 | 0 | 0.058824 | 0 | 0 | 0.08105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0.073529 | 0.117647 | 0 | 0.147059 | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f4812cb97c8868b42de2a5ff10bbe4d776eab242 | 808 | py | Python | tps/runner/migrations/0003_auto_20160806_1959.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 5 | 2019-02-26T06:10:43.000Z | 2021-07-24T17:11:45.000Z | tps/runner/migrations/0003_auto_20160806_1959.py | akmohtashami/tps-web | 9dab3ffe97c21f658be30ce2f2711dd93e4ba60f | [
"MIT"
] | 3 | 2019-08-15T13:56:03.000Z | 2021-06-10T18:43:16.000Z | tps/runner/migrations/0003_auto_20160806_1959.py | jonathanirvings/tps-web | 46519347d4fc8bdced9b5bceb6cdee5ea4e508f2 | [
"MIT"
] | 2 | 2018-12-28T13:12:59.000Z | 2020-12-25T18:42:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-06 19:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('runner', '0002_auto_20160803_2055'),
]
operations = [
migrations.RenameField... | 26.064516 | 74 | 0.580446 | 78 | 808 | 5.794872 | 0.75641 | 0.039823 | 0.075221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059649 | 0.294554 | 808 | 30 | 75 | 26.933333 | 0.733333 | 0.082921 | 0 | 0.217391 | 1 | 0 | 0.134146 | 0.031165 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 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 |
f483ae07f20079c2c3f777b2d99fc9a724d129f0 | 6,237 | py | Python | DB.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | DB.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | DB.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | """Simple data base
Author: Friedrich Schotte
Date created: 2010-12-10
Date last modified: 2019-01-15
"""
from logging import debug
__version__ = "1.5.3" # colon in filenames
from thread import allocate_lock
lock = allocate_lock()
def dbset(name,value):
"""Store a value in the data base
value: any python bui... | 35.844828 | 79 | 0.641655 | 797 | 6,237 | 4.946048 | 0.262233 | 0.076104 | 0.011162 | 0.012938 | 0.24277 | 0.217402 | 0.181887 | 0.153222 | 0.128361 | 0.108067 | 0 | 0.009468 | 0.237935 | 6,237 | 173 | 80 | 36.052023 | 0.819903 | 0.10598 | 0 | 0.214286 | 0 | 0 | 0.047648 | 0.021584 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4848226a434ed2ed6f62586599b1dbfb1255112 | 2,406 | py | Python | libs/numeric/odeint/fix-copyright.py | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | libs/numeric/odeint/fix-copyright.py | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | libs/numeric/odeint/fix-copyright.py | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | #!/usr/bin/env python
from subprocess import check_output as run
from datetime import datetime
from itertools import groupby
from operator import itemgetter
import re
import magic
def authors(filename):
log = run(['git', 'log', '--follow',
'--date=short','--format=%aN%x09%ad', filename],
... | 33.416667 | 137 | 0.554032 | 312 | 2,406 | 4.240385 | 0.365385 | 0.013605 | 0.031746 | 0.036281 | 0.040816 | 0.040816 | 0.040816 | 0 | 0 | 0 | 0 | 0.009947 | 0.289692 | 2,406 | 71 | 138 | 33.887324 | 0.76419 | 0.024106 | 0 | 0 | 0 | 0.015873 | 0.094203 | 0.038789 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.095238 | null | null | 0.063492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f484ce01fedb90b56fbd88400c12a2c1b24f9bdd | 1,504 | py | Python | docker/testing/playbooks/roles/aem_design.aem_package/library/aem_check_package_uploaded.py | aem-design/aemdesign-aem-support | a2da9936a0f1c32c15d81666458ae44829aaad36 | [
"Apache-2.0"
] | 7 | 2019-12-11T04:24:57.000Z | 2022-01-17T07:40:33.000Z | library/aem_check_package_uploaded.py | aem-design/ansible-role-aem-package | e5736a986c0bdb3d69bcd3cdbf3e88f1d2436806 | [
"Apache-2.0"
] | 65 | 2019-10-08T04:35:25.000Z | 2022-03-30T12:25:33.000Z | library/aem_check_package_uploaded.py | aem-design/ansible-role-aem-package | e5736a986c0bdb3d69bcd3cdbf3e88f1d2436806 | [
"Apache-2.0"
] | 2 | 2019-08-26T10:16:08.000Z | 2020-04-10T04:09:34.000Z | #!/usr/bin/python
from ansible.module_utils.basic import AnsibleModule
import pyaem2
def main():
fields = {
"host": {"required": True, "type": "str"},
"port": {"required": True, "type": "str"},
"group_name": {"required": True, "type": "str"},
"package_name": {"required": True, "t... | 28.377358 | 83 | 0.59641 | 164 | 1,504 | 5.25 | 0.317073 | 0.097561 | 0.130081 | 0.154472 | 0.192799 | 0.069686 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.258644 | 1,504 | 52 | 84 | 28.923077 | 0.767713 | 0.010638 | 0 | 0 | 0 | 0 | 0.182919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.076923 | 0.051282 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f487ec51a9e85e876a78f37453d680cb27620249 | 1,478 | py | Python | resources/lib/sites/movierulz.py | ramac/plugin.video.india4movie | dca4718e446077521c82b815e01a91a92e835ad6 | [
"MIT"
] | null | null | null | resources/lib/sites/movierulz.py | ramac/plugin.video.india4movie | dca4718e446077521c82b815e01a91a92e835ad6 | [
"MIT"
] | null | null | null | resources/lib/sites/movierulz.py | ramac/plugin.video.india4movie | dca4718e446077521c82b815e01a91a92e835ad6 | [
"MIT"
] | null | null | null | from resources.lib.abc_base import BaseI4M
import resources.lib.util as util
from bs4 import BeautifulSoup
from bs4 import SoupStrainer
class MovieRulzApi(BaseI4M):
BASE_URL = 'http://www.freemovieswatchonline.com/'
SHORT_NAME = 'mr'
LONG_NAME = 'Movie Rulz'
LOCAL_THUMB = 'thumb_movierulz.png'
S... | 30.163265 | 77 | 0.520298 | 148 | 1,478 | 5.060811 | 0.513514 | 0.06008 | 0.080107 | 0.064085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004103 | 0.340325 | 1,478 | 48 | 78 | 30.791667 | 0.764103 | 0 | 0 | 0 | 0 | 0 | 0.134172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f48ae813b8e9a9d4ec964e09eefc5bcf9be9f0c2 | 18,096 | py | Python | obfuscators/obfuscators.py | breakpad/aamo | c93516addb94e6970f3eed4795169b428aca446b | [
"MIT"
] | 115 | 2015-09-16T11:30:38.000Z | 2021-12-25T23:42:14.000Z | obfuscators/obfuscators.py | breakpad/aamo | c93516addb94e6970f3eed4795169b428aca446b | [
"MIT"
] | 5 | 2017-02-28T22:39:41.000Z | 2020-01-06T08:23:51.000Z | obfuscators/obfuscators.py | breakpad/aamo | c93516addb94e6970f3eed4795169b428aca446b | [
"MIT"
] | 55 | 2015-09-16T11:30:44.000Z | 2022-03-16T11:17:07.000Z | #! /usr/bin/env python
import logging
import sys
import os
from datetime import datetime
import subprocess as sub
import util as u
import exception as e
import obfuscator_rebuild
import obfuscator_defunct
import obfuscator_renaming
import obfuscator_goto
import obfuscator_string
import obfuscator_ind... | 37.621622 | 179 | 0.658101 | 2,150 | 18,096 | 5.250698 | 0.094884 | 0.063779 | 0.106652 | 0.077952 | 0.590841 | 0.547878 | 0.524493 | 0.492692 | 0.456196 | 0.430065 | 0 | 0.001552 | 0.252431 | 18,096 | 480 | 180 | 37.7 | 0.832939 | 0.025365 | 0 | 0.328804 | 0 | 0 | 0.134786 | 0.004924 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002717 | 0.070652 | 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 |
be37ec153621876a53da4053ebf8edb0fa7534ea | 798 | py | Python | PythonController/01_double_dqn/lib/utils.py | DStelter94/ARLinBfW | fb14f13bdab4d19ba8d27ae26f1c64930e219d61 | [
"MIT"
] | null | null | null | PythonController/01_double_dqn/lib/utils.py | DStelter94/ARLinBfW | fb14f13bdab4d19ba8d27ae26f1c64930e219d61 | [
"MIT"
] | null | null | null | PythonController/01_double_dqn/lib/utils.py | DStelter94/ARLinBfW | fb14f13bdab4d19ba8d27ae26f1c64930e219d61 | [
"MIT"
] | null | null | null | import os
import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--cuda", default=False, action="store_true", help="Enable cuda")
parser.add_argument("--double", default=False, action="store_true", help="Enable double DQN")
parser.add_argument("--scenario", required=... | 44.333333 | 99 | 0.716792 | 109 | 798 | 5.12844 | 0.477064 | 0.112701 | 0.21288 | 0.08229 | 0.193202 | 0.132379 | 0.132379 | 0 | 0 | 0 | 0 | 0.002882 | 0.130326 | 798 | 18 | 100 | 44.333333 | 0.802594 | 0 | 0 | 0 | 0 | 0 | 0.305382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
be381567c241809b7d9808fe3b903a630f0ebc05 | 2,043 | py | Python | seqauto/migrations/0024_one_off_fix_link_sample_to_sequencing_samples.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | seqauto/migrations/0024_one_off_fix_link_sample_to_sequencing_samples.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | seqauto/migrations/0024_one_off_fix_link_sample_to_sequencing_samples.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | # Generated by Django 3.1.3 on 2021-04-15 01:54
from django.db import migrations
def _one_off_fix_link_sample_to_sequencing_samples(apps, schema_editor):
VCFFromSequencingRun = apps.get_model("seqauto", "VCFFromSequencingRun")
SampleFromSequencingSample = apps.get_model("seqauto", "SampleFromSequencingSample... | 43.468085 | 118 | 0.746451 | 252 | 2,043 | 5.654762 | 0.373016 | 0.157193 | 0.093333 | 0.122807 | 0.127719 | 0.053333 | 0.053333 | 0.053333 | 0 | 0 | 0 | 0.018419 | 0.176211 | 2,043 | 46 | 119 | 44.413043 | 0.828283 | 0.087127 | 0 | 0 | 1 | 0 | 0.058571 | 0.02633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 0.03125 | 0.28125 | 0 | 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 |
be4a7cd68f53bc29fad1b7ca9161e81cb858955c | 8,631 | py | Python | Cluster/Gen/heartbeat_pb2.py | saketthakare/distributed-datastore | e71d31a4d4e672bb8756640311e4797f6bc20b02 | [
"MIT"
] | null | null | null | Cluster/Gen/heartbeat_pb2.py | saketthakare/distributed-datastore | e71d31a4d4e672bb8756640311e4797f6bc20b02 | [
"MIT"
] | null | null | null | Cluster/Gen/heartbeat_pb2.py | saketthakare/distributed-datastore | e71d31a4d4e672bb8756640311e4797f6bc20b02 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: heartbeat.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 import reflection as _ref... | 34.662651 | 337 | 0.723091 | 1,088 | 8,631 | 5.517463 | 0.216912 | 0.022655 | 0.007996 | 0.013327 | 0.44761 | 0.416625 | 0.409295 | 0.409295 | 0.381309 | 0.381309 | 0 | 0.024289 | 0.165218 | 8,631 | 248 | 338 | 34.802419 | 0.808883 | 0.177384 | 0 | 0.404762 | 1 | 0.005952 | 0.105561 | 0.045012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.005952 | 0.071429 | 0 | 0.14881 | 0 | 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 |
be4c15b61102a26cfbb99b74d6ed2bdfb3e5ab4e | 369 | py | Python | datasets/__init__.py | Danny-proton/gwc-bts-deeplab | 82833075ddcf58259a90789c9e85f615c5017669 | [
"MIT"
] | null | null | null | datasets/__init__.py | Danny-proton/gwc-bts-deeplab | 82833075ddcf58259a90789c9e85f615c5017669 | [
"MIT"
] | null | null | null | datasets/__init__.py | Danny-proton/gwc-bts-deeplab | 82833075ddcf58259a90789c9e85f615c5017669 | [
"MIT"
] | null | null | null | from .kitti_dataset import KITTIDataset
from .sceneflow_dataset import SceneFlowDatset
from .cityscape_dataset import CityscapeDatset
from .middlebury import Middlebury
from .eth3d import ETH3Ddataset
__datasets__ = {
"sceneflow": SceneFlowDatset,
"kitti": KITTIDataset,
"cityscape":CityscapeDatset,
"mi... | 26.357143 | 46 | 0.785908 | 34 | 369 | 8.323529 | 0.382353 | 0.137809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.140921 | 369 | 13 | 47 | 28.384615 | 0.880126 | 0 | 0 | 0 | 0 | 0 | 0.102981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be4f5967296c06bfdfcc7a020f589f58f8f4eba7 | 451 | py | Python | setup.py | RoRyou/Lupin3 | 3236214cf3cf684116f9b35b5d8a400054904591 | [
"Apache-2.0"
] | null | null | null | setup.py | RoRyou/Lupin3 | 3236214cf3cf684116f9b35b5d8a400054904591 | [
"Apache-2.0"
] | null | null | null | setup.py | RoRyou/Lupin3 | 3236214cf3cf684116f9b35b5d8a400054904591 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='lupin3',
version='0.0.1',
author='Roryou',
author_email='luliang_penn@live.com',
url='https://github.com/RoRyou/Lupin3',
description=u'Roryou',
# packages=[''],
install_requires=[],
# entry_points={
... | 20.5 | 43 | 0.572062 | 50 | 451 | 5.02 | 0.74 | 0.119522 | 0.12749 | 0.159363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.254989 | 451 | 21 | 44 | 21.47619 | 0.729167 | 0.368071 | 0 | 0 | 0 | 0 | 0.275362 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be53d119c2fde212e30437e7eb4254a1056a8ecf | 1,481 | py | Python | api/auth.py | zareifar/iq-trello | a077fce280c32154715bebd11167095c94ea14f8 | [
"MIT"
] | 2 | 2020-05-24T19:32:50.000Z | 2021-03-08T14:24:17.000Z | api/auth.py | zareifar/iq-trello | a077fce280c32154715bebd11167095c94ea14f8 | [
"MIT"
] | null | null | null | api/auth.py | zareifar/iq-trello | a077fce280c32154715bebd11167095c94ea14f8 | [
"MIT"
] | null | null | null | # REST API Authentication
import datetime
from flask import request
from flask_jwt_extended import create_access_token
from flask_restful import Resource
from mongoengine import FieldDoesNotExist, NotUniqueError, DoesNotExist
from database.models import User
from .errors import SchemaValidationError, EmailAlreadyExis... | 32.911111 | 106 | 0.656989 | 143 | 1,481 | 6.692308 | 0.412587 | 0.045977 | 0.035528 | 0.039707 | 0.100313 | 0.100313 | 0.100313 | 0.100313 | 0.100313 | 0.100313 | 0 | 0.006524 | 0.27549 | 1,481 | 44 | 107 | 33.659091 | 0.885368 | 0.01553 | 0 | 0.324324 | 0 | 0 | 0.013736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.054054 | 0.189189 | 0 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be565425c811f267fe041093e413ddd847a1fc3f | 421 | py | Python | scripts/inject-kubeconfig.py | optikon/vagrant | 80c991e9c60de29076a37e77303c1f4cf4d97427 | [
"Apache-2.0"
] | 1 | 2018-11-05T14:22:35.000Z | 2018-11-05T14:22:35.000Z | scripts/inject-kubeconfig.py | optikon/vagrant | 80c991e9c60de29076a37e77303c1f4cf4d97427 | [
"Apache-2.0"
] | 1 | 2018-05-08T17:11:34.000Z | 2018-05-08T17:11:34.000Z | scripts/inject-kubeconfig.py | optikon/vagrant | 80c991e9c60de29076a37e77303c1f4cf4d97427 | [
"Apache-2.0"
] | 1 | 2018-05-04T07:07:55.000Z | 2018-05-04T07:07:55.000Z | import sys
import json
with open("/etc/kubernetes/admin.conf") as f:
kubeconfig = f.read()
with open(sys.argv[1]) as fp:
cluster_str = fp.read()
cluster_data = json.loads(cluster_str)
cluster_data["metadata"]["annotations"]["Conf"] = kubeconfig
with open('/home/vagrant/my-cluster.json', 'w') as fp:
... | 23.388889 | 70 | 0.665083 | 60 | 421 | 4.583333 | 0.55 | 0.087273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 0.149644 | 421 | 17 | 71 | 24.764706 | 0.765363 | 0 | 0 | 0 | 0 | 0 | 0.334917 | 0.130641 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be59b6059ae2aa6fccc0de7e302400137ca88628 | 1,149 | py | Python | stimpi/__init__.py | skippyprime/stimpi | 9ba99f1e261270925d8a5b8d7d7a06e57a1894a2 | [
"Apache-2.0"
] | null | null | null | stimpi/__init__.py | skippyprime/stimpi | 9ba99f1e261270925d8a5b8d7d7a06e57a1894a2 | [
"Apache-2.0"
] | null | null | null | stimpi/__init__.py | skippyprime/stimpi | 9ba99f1e261270925d8a5b8d7d7a06e57a1894a2 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2015 Geoff MacGill
#
# 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 writi... | 28.725 | 74 | 0.774587 | 147 | 1,149 | 5.782313 | 0.591837 | 0.070588 | 0.094118 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016754 | 0.168842 | 1,149 | 39 | 75 | 29.461538 | 0.873298 | 0.478677 | 0 | 0 | 0 | 0 | 0.092466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.363636 | 0 | 0.363636 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
be5b6444948f6405ac09855341e6e25e3ecc30ec | 519 | py | Python | ovl/helpers/team_number_to_ip.py | ofekashery/Ovl-Python | 117e3f4ae1a8a5624c41792bd36b760afbe86c8e | [
"Apache-2.0"
] | 2 | 2022-03-07T20:32:23.000Z | 2022-03-29T19:10:03.000Z | ovl/utils/team_number_to_ip.py | frc1937/ovl | 1954edf0ab946dbb42d90eba1dac97eeb157c567 | [
"Apache-2.0"
] | 1 | 2020-10-18T05:00:06.000Z | 2020-12-24T20:03:44.000Z | ovl/utils/team_number_to_ip.py | frc1937/ovl | 1954edf0ab946dbb42d90eba1dac97eeb157c567 | [
"Apache-2.0"
] | 2 | 2022-02-07T18:34:50.000Z | 2022-02-23T19:41:32.000Z | import typing
def team_number_to_ip(team_number: typing.Union[str, int]):
"""
Turns a team number into the static ip of the roborio
TEAM -> 10.TE.AM.2
:param team_number: string or int of the team number
"""
team_number = str(team_number)
first_numbers, second_numbers = team_number[:-2], ... | 30.529412 | 70 | 0.680154 | 77 | 519 | 4.337662 | 0.402597 | 0.389222 | 0.098802 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021635 | 0.198459 | 519 | 16 | 71 | 32.4375 | 0.78125 | 0.240848 | 0 | 0 | 0 | 0 | 0.062162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be5f573cce6badc46e8df9a9fdfef5bc931c205f | 686 | py | Python | weather/migrations/0007_auto_20210825_0958.py | Arthuchaut/weather-monitor | 736dfcd51c5c14a923e410a374dc08121eb0811c | [
"MIT"
] | null | null | null | weather/migrations/0007_auto_20210825_0958.py | Arthuchaut/weather-monitor | 736dfcd51c5c14a923e410a374dc08121eb0811c | [
"MIT"
] | null | null | null | weather/migrations/0007_auto_20210825_0958.py | Arthuchaut/weather-monitor | 736dfcd51c5c14a923e410a374dc08121eb0811c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-25 07:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('weather', '0006_location'),
]
operations = [
migrations.AlterField(
model_name='location',
... | 27.44 | 112 | 0.619534 | 76 | 686 | 5.526316 | 0.486842 | 0.07619 | 0.1 | 0.157143 | 0.552381 | 0.552381 | 0.357143 | 0.357143 | 0.357143 | 0.357143 | 0 | 0.037109 | 0.253644 | 686 | 24 | 113 | 28.583333 | 0.783203 | 0.065598 | 0 | 0.333333 | 1 | 0 | 0.109546 | 0 | 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 |
be60598cbf94cbdaef74dcfbb04c0459a3959a56 | 8,909 | py | Python | examples/s1isp.py | avalentino/bpack | 61c7c34018b0bc5251263c3954347082c2cb89c0 | [
"Apache-2.0"
] | 2 | 2020-11-29T07:41:57.000Z | 2021-02-05T15:50:10.000Z | examples/s1isp.py | avalentino/bpack | 61c7c34018b0bc5251263c3954347082c2cb89c0 | [
"Apache-2.0"
] | 1 | 2021-11-29T20:31:41.000Z | 2021-12-01T09:32:39.000Z | examples/s1isp.py | avalentino/bpack | 61c7c34018b0bc5251263c3954347082c2cb89c0 | [
"Apache-2.0"
] | 1 | 2022-02-02T19:52:33.000Z | 2022-02-02T19:52:33.000Z | """Sentinel-1 Instrument Source Packets (ISP) decoding example."""
import enum
import logging
import datetime
import bpack
import bpack.bs
from bpack import T
BITS = bpack.EBaseUnits.BITS
BE = bpack.EByteOrder.BE
SYNK_MARKER = 0x352EF853
FREF = 37.53472224
class SyncMarkerException(RuntimeError):
pass
cla... | 29.019544 | 186 | 0.641486 | 1,152 | 8,909 | 4.719618 | 0.304688 | 0.044142 | 0.0206 | 0.027957 | 0.242045 | 0.211882 | 0.185212 | 0.177855 | 0.150267 | 0.121023 | 0 | 0.088584 | 0.262544 | 8,909 | 307 | 187 | 29.019544 | 0.738965 | 0.091817 | 0 | 0.092166 | 0 | 0 | 0.077393 | 0.029136 | 0 | 0 | 0.001301 | 0.003257 | 0.02765 | 1 | 0.004608 | false | 0.023041 | 0.046083 | 0 | 0.617512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be637ea84638cccc61816340305dddf414d79029 | 987 | py | Python | RAW HID Attacks/Backdoor/backdoor/StructHelper.py | ghostking2802/P4wnP1_payloads | bc3cdcecd089af1118e76bfc8579d4fc331dc15d | [
"MIT"
] | 1 | 2021-08-08T13:32:51.000Z | 2021-08-08T13:32:51.000Z | RAW HID Attacks/Backdoor/backdoor/StructHelper.py | ghostking2802/P4wnP1_payloads | bc3cdcecd089af1118e76bfc8579d4fc331dc15d | [
"MIT"
] | null | null | null | RAW HID Attacks/Backdoor/backdoor/StructHelper.py | ghostking2802/P4wnP1_payloads | bc3cdcecd089af1118e76bfc8579d4fc331dc15d | [
"MIT"
] | 1 | 2022-01-03T06:42:16.000Z | 2022-01-03T06:42:16.000Z |
# This file is part of P4wnP1.
#
# Copyright (c) 2017, Marcus Mengs.
#
# P4wnP1 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... | 34.034483 | 74 | 0.657548 | 135 | 987 | 4.807407 | 0.651852 | 0.023112 | 0.060092 | 0.087827 | 0.126348 | 0.086287 | 0 | 0 | 0 | 0 | 0 | 0.025035 | 0.27153 | 987 | 29 | 75 | 34.034483 | 0.877608 | 0.697062 | 0 | 0 | 0 | 0 | 0.015936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
be64482e3bf01b808bd7fd91611e76ed6a544ed9 | 1,748 | py | Python | baselines/idm.py | umautobots/low_latency_predictions | fd14acef7cc7ba5e4aa35f584d75687405b65b1f | [
"MIT"
] | 3 | 2020-08-29T01:00:55.000Z | 2021-12-30T14:16:08.000Z | baselines/idm.py | umautobots/low_latency_predictions | fd14acef7cc7ba5e4aa35f584d75687405b65b1f | [
"MIT"
] | null | null | null | baselines/idm.py | umautobots/low_latency_predictions | fd14acef7cc7ba5e4aa35f584d75687405b65b1f | [
"MIT"
] | 1 | 2021-03-16T09:21:32.000Z | 2021-03-16T09:21:32.000Z | import numpy as np
from baselines import baseline_utils as ut
DT = 0.1
def predict_idm(df, lag_vid, lead_vid, t0, t1, n_steps, is_merge=True, onramp_vid=np.nan, **kwargs):
front_vid = onramp_vid if is_merge else lead_vid
y = ut.get_positions(df, lag_vid, t0, t1)
yl = ut.get_positions(df, front_vid, t0, t... | 33.615385 | 100 | 0.576659 | 344 | 1,748 | 2.674419 | 0.258721 | 0.019565 | 0.038043 | 0.052174 | 0.097826 | 0.06087 | 0.06087 | 0.06087 | 0 | 0 | 0 | 0.055249 | 0.275172 | 1,748 | 51 | 101 | 34.27451 | 0.670876 | 0.096682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | null | null | 0 | 0.047619 | 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 |
be6a6e5ba72791ceb618704d46f5a186fa02bc8e | 7,746 | py | Python | external/swak/maintainanceScripts/makeCopyrightEntries.py | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | external/swak/maintainanceScripts/makeCopyrightEntries.py | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | external/swak/maintainanceScripts/makeCopyrightEntries.py | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | #! /usr/bin/env python
import sys,re
from os import listdir,path
import argparse
from subprocess import Popen,PIPE,STDOUT
from collections import defaultdict
parser = argparse.ArgumentParser(description='Check repository for contributors and add them to the initial comment')
parser.add_argument('files', metavar='file... | 33.102564 | 132 | 0.558869 | 941 | 7,746 | 4.588735 | 0.258236 | 0.01459 | 0.027559 | 0.017601 | 0.14289 | 0.105373 | 0.091014 | 0.070171 | 0.051644 | 0 | 0 | 0.0093 | 0.292022 | 7,746 | 233 | 133 | 33.244635 | 0.778082 | 0.002711 | 0 | 0.151961 | 0 | 0.009804 | 0.182418 | 0.0145 | 0 | 0 | 0 | 0 | 0.009804 | 0 | null | null | 0 | 0.02451 | null | null | 0.122549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be6af377dde9e9e777d754673682cdd6050ae2dc | 3,740 | py | Python | pymtl3/stdlib/cl/queues_test.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T06:22:11.000Z | 2022-01-03T06:22:11.000Z | pymtl3/stdlib/cl/queues_test.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/stdlib/cl/queues_test.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | """
========================================================================
Tests for CL queues
========================================================================
Author: Yanghui Ou
Date: Mar 20, 2019
"""
import pytest
from pymtl3 import *
from pymtl3.stdlib.test.test_sinks import TestSinkCL
from pymtl3.stdl... | 29.21875 | 74 | 0.550267 | 460 | 3,740 | 4.276087 | 0.230435 | 0.044738 | 0.055923 | 0.0727 | 0.439248 | 0.373665 | 0.360447 | 0.329944 | 0.297407 | 0.297407 | 0 | 0.027358 | 0.169251 | 3,740 | 127 | 75 | 29.448819 | 0.605729 | 0.193583 | 0 | 0.225 | 0 | 0 | 0.090757 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.125 | false | 0.0875 | 0.0625 | 0.025 | 0.225 | 0.0375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be6ba9a5485db75d6f22da920931faba3ff18af4 | 4,673 | py | Python | ontobio/sparql/wikidata.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 101 | 2017-04-19T20:54:49.000Z | 2022-03-14T02:32:11.000Z | ontobio/sparql/wikidata.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 402 | 2017-04-24T19:53:12.000Z | 2022-03-31T20:27:59.000Z | ontobio/sparql/wikidata.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 30 | 2017-04-20T17:59:12.000Z | 2022-02-25T22:26:08.000Z | """
Wrap WD sparql
"""
from SPARQLWrapper import SPARQLWrapper, JSON
from prefixcommons.curie_util import contract_uri, expand_uri
from functools import lru_cache
import networkx
import logging
# CACHE STRATEGY:
# by default, the cache is NOT persistent. Only single threaded clients should
# call a cached method wit... | 28.321212 | 109 | 0.610101 | 621 | 4,673 | 4.52657 | 0.312399 | 0.050872 | 0.064034 | 0.076841 | 0.228388 | 0.205621 | 0.107079 | 0.097474 | 0.076129 | 0.076129 | 0 | 0.016681 | 0.230259 | 4,673 | 164 | 110 | 28.493902 | 0.764804 | 0.115985 | 0 | 0.181034 | 0 | 0 | 0.23692 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.103448 | false | 0 | 0.043103 | 0.025862 | 0.293103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
be6bbaca3b05eca1a5864c89572625c31acc075e | 873 | py | Python | tests/test_g2p.py | a-coles/Montreal-Forced-Aligner | b74b3deccd09ff2a54cb3a3aeb22d660b1f0cff1 | [
"MIT"
] | 1 | 2021-08-05T07:38:46.000Z | 2021-08-05T07:38:46.000Z | tests/test_g2p.py | a-coles/Montreal-Forced-Aligner | b74b3deccd09ff2a54cb3a3aeb22d660b1f0cff1 | [
"MIT"
] | null | null | null | tests/test_g2p.py | a-coles/Montreal-Forced-Aligner | b74b3deccd09ff2a54cb3a3aeb22d660b1f0cff1 | [
"MIT"
] | null | null | null | import pytest
import os
from aligner.g2p.trainer import PhonetisaurusTrainer
from aligner.g2p.generator import PhonetisaurusDictionaryGenerator
from aligner.models import G2PModel
from aligner import __version__
def test_training(sick_dict, sick_g2p_model_path):
trainer = PhonetisaurusTrainer(sick_dict, sick_g... | 32.333333 | 88 | 0.784651 | 110 | 873 | 5.872727 | 0.345455 | 0.05418 | 0.092879 | 0.123839 | 0.164087 | 0.164087 | 0 | 0 | 0 | 0 | 0 | 0.018373 | 0.127148 | 873 | 26 | 89 | 33.576923 | 0.829396 | 0 | 0 | 0.105263 | 0 | 0 | 0.043528 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be6c1199ce969c99c86dd0f1bbc73c24d88265f2 | 478 | py | Python | FusionIIIT/Fusion/settings/production.py | ajwad-shaikh/Fusion | 0274387f5fc6e53cde85267924df8c65d666ea68 | [
"bzip2-1.0.6"
] | 2 | 2020-06-17T11:59:08.000Z | 2020-07-10T12:17:35.000Z | FusionIIIT/Fusion/settings/production.py | ajwad-shaikh/Fusion | 0274387f5fc6e53cde85267924df8c65d666ea68 | [
"bzip2-1.0.6"
] | 19 | 2019-09-08T06:01:14.000Z | 2020-05-21T09:08:20.000Z | FusionIIIT/Fusion/settings/production.py | ajwad-shaikh/Fusion | 0274387f5fc6e53cde85267924df8c65d666ea68 | [
"bzip2-1.0.6"
] | 14 | 2019-08-31T12:25:42.000Z | 2022-01-12T08:05:33.000Z | from Fusion.settings.common import *
DEBUG = True
SECRET_KEY = os.environ['SECRET_KEY']
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '172.27.16.216']
# password of sender
EMAIL_HOST_PASSWORD = os.environ['MAIL_PASSWORD']
# Database template for postgres
DATABASES = {
'default': {
'ENGINE': 'django.db.ba... | 21.727273 | 59 | 0.638075 | 55 | 478 | 5.4 | 0.8 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052493 | 0.202929 | 478 | 22 | 60 | 21.727273 | 0.727034 | 0.10251 | 0 | 0 | 0 | 0 | 0.381733 | 0.088993 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be6d73601369449218b7fac50cd4dbbcc7cbbc3d | 1,584 | py | Python | day_2_tobogan/policy.py | Akhilian/Advent-of-code-2020 | a543884b0fe39f7ba96736398690664254e63142 | [
"MIT"
] | null | null | null | day_2_tobogan/policy.py | Akhilian/Advent-of-code-2020 | a543884b0fe39f7ba96736398690664254e63142 | [
"MIT"
] | null | null | null | day_2_tobogan/policy.py | Akhilian/Advent-of-code-2020 | a543884b0fe39f7ba96736398690664254e63142 | [
"MIT"
] | null | null | null | from typing import List, \
Tuple, \
Any
from common.file_reader import FileReader
from day_2_tobogan.password_validator import count_valid_password
class Policy():
def __init__(self, first_position: int, second_position: int, letter_checked: str):
self.first_position = first_position
self... | 36 | 118 | 0.714015 | 191 | 1,584 | 5.47644 | 0.287958 | 0.099426 | 0.108987 | 0.057361 | 0.253346 | 0.189293 | 0 | 0 | 0 | 0 | 0 | 0.002368 | 0.200126 | 1,584 | 43 | 119 | 36.837209 | 0.823204 | 0 | 0 | 0.129032 | 0 | 0 | 0.019583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.322581 | 0.096774 | 0 | 0.354839 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be6e8b0aa69a6f030634057db129a7fe2c79c3cf | 287 | py | Python | server/gunicorn.conf.py | corollari/speech2text | 3035ad0b77c27ee6ef66c256a0f2aead399257cc | [
"MIT"
] | 2 | 2019-03-06T19:43:47.000Z | 2021-07-01T22:14:23.000Z | server/gunicorn.conf.py | corollari/speech2latex | 3035ad0b77c27ee6ef66c256a0f2aead399257cc | [
"MIT"
] | null | null | null | server/gunicorn.conf.py | corollari/speech2latex | 3035ad0b77c27ee6ef66c256a0f2aead399257cc | [
"MIT"
] | null | null | null | #daemon = True
# 1 core should equal 2*1+1=3 workers
workers = 3
# we want to use threads for concurrency. we estimate that a maximum of 3*7=21 users will use the application simultaneously
worker_class = "gthread"
threads = 7
#accesslog = "logs/access.log"
#errorlog = "logs/error.log"
| 31.888889 | 124 | 0.745645 | 48 | 287 | 4.4375 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045643 | 0.160279 | 287 | 8 | 125 | 35.875 | 0.838174 | 0.794425 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be72107231a55bb0014b252cfe386ac230bac98b | 723 | py | Python | data/AVA/verify_splits.py | pedro-abreu/twostream-attention | 60a47c50b8f2427911e5e30fd6c6f933dbf08a4e | [
"MIT"
] | 10 | 2018-10-26T05:19:15.000Z | 2019-02-02T03:39:29.000Z | data/AVA/verify_splits.py | pedro-abreu/twostream-attention | 60a47c50b8f2427911e5e30fd6c6f933dbf08a4e | [
"MIT"
] | 2 | 2018-11-14T05:03:56.000Z | 2019-02-19T09:06:52.000Z | data/AVA/verify_splits.py | pedro-abreu/twostream-attention | 60a47c50b8f2427911e5e30fd6c6f933dbf08a4e | [
"MIT"
] | 3 | 2018-11-14T05:12:24.000Z | 2019-03-02T15:01:15.000Z | import csv
import os
set_type = "validation"
_DATA_DIR = "/media/pedro/actv4/AVA-split/" + set_type + "/rgb/"
i = 0
print "Checking if all folders exist"
with open('ava_mini_split_' + set_type + '.csv') as csvDataFile:
csvReader = csv.reader(csvDataFile)
for row in csvReader:
vidname = row[0] + "_" +... | 26.777778 | 64 | 0.626556 | 110 | 723 | 3.936364 | 0.5 | 0.080831 | 0.055427 | 0.069284 | 0.124711 | 0.124711 | 0.124711 | 0 | 0 | 0 | 0 | 0.01676 | 0.257261 | 723 | 26 | 65 | 27.807692 | 0.789572 | 0.026279 | 0 | 0.190476 | 0 | 0 | 0.2151 | 0.041311 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be748fda3e9aa88e0c580e8f993e4762689d01ba | 33,786 | py | Python | AUTO-PLANNING/AutoTemplateTuning/GT.py | fishdda/RL-Application-in-TPS | 183d8698d796e5bff3fc4d07ee512bc5a73c8f78 | [
"MIT"
] | 5 | 2019-03-28T15:00:30.000Z | 2022-03-17T04:58:36.000Z | AUTO-PLANNING/AutoTemplateTuning/GT.py | fishdda/RL-Application-in-TPS | 183d8698d796e5bff3fc4d07ee512bc5a73c8f78 | [
"MIT"
] | null | null | null | AUTO-PLANNING/AutoTemplateTuning/GT.py | fishdda/RL-Application-in-TPS | 183d8698d796e5bff3fc4d07ee512bc5a73c8f78 | [
"MIT"
] | null | null | null | class Temp:
'''
this class mainly intended to generate a template automatically
'''
def __init__(self,path,csv_file,colone_path):
self.path = path
self.csv = csv_file
self.col = colone_path
def exist_read_mod(self,path1):
... | 41.152253 | 146 | 0.418753 | 3,843 | 33,786 | 3.522248 | 0.084049 | 0.028812 | 0.025118 | 0.022902 | 0.696291 | 0.65854 | 0.623227 | 0.570257 | 0.496158 | 0.461215 | 0 | 0.049741 | 0.422808 | 33,786 | 820 | 147 | 41.202439 | 0.644377 | 0.103475 | 0 | 0.460501 | 1 | 0 | 0.079518 | 0.008694 | 0 | 0 | 0 | 0 | 0.001927 | 1 | 0.032755 | false | 0.001927 | 0.011561 | 0 | 0.075145 | 0.025048 | 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 |
be76cdaee1ea3cb4ee0e12a2a2dddb160db7d07f | 1,296 | py | Python | os_faults/api/error.py | Marie-Donnie/os-faults | 2f9eb760d240b9a03b7df5682b5b24cf35daacd0 | [
"Apache-2.0"
] | null | null | null | os_faults/api/error.py | Marie-Donnie/os-faults | 2f9eb760d240b9a03b7df5682b5b24cf35daacd0 | [
"Apache-2.0"
] | null | null | null | os_faults/api/error.py | Marie-Donnie/os-faults | 2f9eb760d240b9a03b7df5682b5b24cf35daacd0 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the ... | 26.44898 | 69 | 0.740741 | 168 | 1,296 | 5.714286 | 0.52381 | 0.0625 | 0.0875 | 0.114583 | 0.130208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003707 | 0.167438 | 1,296 | 48 | 70 | 27 | 0.886006 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be8a37d1bd8dae6c69eb0c98ca1922d41213a59e | 3,549 | py | Python | tests/conftest.py | skison/django-cognito-jwt | 6a30df4b44466915df88908ccb1ace18d0112199 | [
"MIT"
] | 139 | 2018-08-15T13:26:21.000Z | 2022-03-20T15:37:05.000Z | tests/conftest.py | skison/django-cognito-jwt | 6a30df4b44466915df88908ccb1ace18d0112199 | [
"MIT"
] | 31 | 2019-01-10T20:48:35.000Z | 2022-02-10T12:13:07.000Z | tests/conftest.py | skison/django-cognito-jwt | 6a30df4b44466915df88908ccb1ace18d0112199 | [
"MIT"
] | 50 | 2018-12-13T10:35:27.000Z | 2022-03-20T06:40:10.000Z | import copy
import pytest
from django.conf import settings
def pytest_configure():
settings.configure(
COGNITO_AWS_REGION="eu-central-1",
COGNITO_USER_POOL="bla",
COGNITO_AUDIENCE="my-client-id",
INSTALLED_APPS=["django.contrib.auth", "django.contrib.contenttypes"],
MIDDLE... | 33.481132 | 84 | 0.668921 | 283 | 3,549 | 8.116608 | 0.565371 | 0.031345 | 0.033957 | 0.033087 | 0.135394 | 0.096648 | 0.032216 | 0.032216 | 0 | 0 | 0 | 0.080249 | 0.231051 | 3,549 | 105 | 85 | 33.8 | 0.761451 | 0 | 0 | 0.255556 | 0 | 0.011111 | 0.487743 | 0.413074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.033333 | 0.044444 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be8bf4a5f13eb3b1e07fa981748371f283230d95 | 925 | py | Python | tests/discriminators/cramer_discriminator_test.py | SlipknotTN/HyperGAN | bd39759521d52a706f6f0f561e0c8355a3ef427e | [
"MIT"
] | null | null | null | tests/discriminators/cramer_discriminator_test.py | SlipknotTN/HyperGAN | bd39759521d52a706f6f0f561e0c8355a3ef427e | [
"MIT"
] | null | null | null | tests/discriminators/cramer_discriminator_test.py | SlipknotTN/HyperGAN | bd39759521d52a706f6f0f561e0c8355a3ef427e | [
"MIT"
] | null | null | null | import tensorflow as tf
import hyperchamber as hc
import numpy as np
from hypergan.discriminators.cramer_discriminator import CramerDiscriminator
from hypergan.gan_component import ValidationException
from hypergan.ops import TensorflowOps
import hypergan as hg
from hypergan.gan_component import GANComponent
from uni... | 30.833333 | 76 | 0.725405 | 106 | 925 | 6.160377 | 0.5 | 0.073507 | 0.045942 | 0.073507 | 0.091884 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004038 | 0.196757 | 925 | 29 | 77 | 31.896552 | 0.874832 | 0 | 0 | 0 | 0 | 0 | 0.060541 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.04 | false | 0 | 0.4 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be93daece0b8b433489ebd34cc7a0079c7e91019 | 606 | py | Python | sa/migrations/0028_noc_sae_profile.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | sa/migrations/0028_noc_sae_profile.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | sa/migrations/0028_noc_sae_profile.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# no sae profile
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------... | 31.894737 | 80 | 0.405941 | 51 | 606 | 4.784314 | 0.745098 | 0.061475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.158416 | 606 | 18 | 81 | 33.666667 | 0.460784 | 0.536304 | 0 | 0 | 0 | 0 | 0.290441 | 0.084559 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be95492e349e84356f5f69cf8e8dbaae3054ff87 | 14,932 | py | Python | Lib/site-packages/wx-2.8-msw-unicode/wx/lib/pubsub/utils/notification.py | ekkipermana/robotframework-test | 243ca26f69962f8cf20cd7d054e0ff3e709bc7f4 | [
"bzip2-1.0.6"
] | 27 | 2020-11-12T19:24:54.000Z | 2022-03-27T23:10:45.000Z | Lib/site-packages/wx-2.8-msw-unicode/wx/lib/pubsub/utils/notification.py | ekkipermana/robotframework-test | 243ca26f69962f8cf20cd7d054e0ff3e709bc7f4 | [
"bzip2-1.0.6"
] | 2 | 2020-11-02T06:30:39.000Z | 2022-02-23T18:39:55.000Z | Lib/site-packages/wx-2.8-msw-unicode/wx/lib/pubsub/utils/notification.py | ekkipermana/robotframework-test | 243ca26f69962f8cf20cd7d054e0ff3e709bc7f4 | [
"bzip2-1.0.6"
] | 7 | 2018-02-13T10:22:39.000Z | 2019-07-04T07:39:28.000Z | '''
Provide an interface class for handling pubsub notification messages,
and an example class (though very useful in practice) showing how to
use it.
Notification messages are generated by pubsub
- if a handler has been configured via pub.addNotificationHandler()
- when pubsub does certain tasks, such as when a l... | 40.466125 | 117 | 0.662671 | 1,702 | 14,932 | 5.748531 | 0.199765 | 0.019624 | 0.028209 | 0.011652 | 0.302433 | 0.24305 | 0.212388 | 0.135323 | 0.107727 | 0.092702 | 0 | 0.00072 | 0.256161 | 14,932 | 368 | 118 | 40.576087 | 0.880166 | 0.343156 | 0 | 0.444444 | 1 | 0 | 0.171459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174603 | false | 0.031746 | 0.015873 | 0 | 0.259259 | 0 | 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 |
be966cc5b31911cdb5654f18b3afada1c246db4e | 572 | py | Python | src/server/master/master_manager/purge_old_bundles.py | dpaola2/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | 15 | 2015-02-14T02:39:04.000Z | 2021-12-13T14:17:15.000Z | src/server/master/master_manager/purge_old_bundles.py | ojengwa/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | null | null | null | src/server/master/master_manager/purge_old_bundles.py | ojengwa/djangy | 4b10e681cb49e5c16aba4429dfbfadfd9b512463 | [
"NCSA"
] | 11 | 2015-08-07T11:47:02.000Z | 2021-04-29T08:08:24.000Z | #!/usr/bin/env python
#
# Utility script to remove old, unused bundles from a master_manager host.
#
import os, shutil
from management_database import *
BUNDLES_ROOT = '/srv/bundles';
def main():
current_bundle_names = set([x.name + '-' + x.bundle_version for x in Application.objects.filter(deleted=None)])
f... | 28.6 | 115 | 0.695804 | 80 | 572 | 4.7 | 0.6 | 0.106383 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190559 | 572 | 19 | 116 | 30.105263 | 0.812095 | 0.162587 | 0 | 0 | 0 | 0 | 0.075789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be96f5956a32ab8cdfc65bffc4ec0736ef90994f | 569 | py | Python | utils/measure_v2/powermeter/tasmota.py | smonesi/homeassistant-powercalc | a5ba97836c03e4c09fa1a0f1b8d7bf32dd56e8ad | [
"MIT"
] | 219 | 2021-06-12T20:55:57.000Z | 2022-03-30T07:56:43.000Z | utils/measure_v2/powermeter/tasmota.py | smonesi/homeassistant-powercalc | a5ba97836c03e4c09fa1a0f1b8d7bf32dd56e8ad | [
"MIT"
] | 420 | 2021-06-09T20:22:03.000Z | 2022-03-31T15:35:45.000Z | utils/measure_v2/powermeter/tasmota.py | smonesi/homeassistant-powercalc | a5ba97836c03e4c09fa1a0f1b8d7bf32dd56e8ad | [
"MIT"
] | 84 | 2021-06-09T18:18:03.000Z | 2022-03-29T09:28:06.000Z | from __future__ import annotations
import time
import urllib.request
from .powermeter import PowerMeasurementResult, PowerMeter
class TasmotaPowerMeter(PowerMeter):
def __init__(self, device_ip: str):
self._device_ip = device_ip
def get_power(self) -> PowerMeasurementResult:
contents = str(... | 28.45 | 78 | 0.671353 | 61 | 569 | 6.016393 | 0.508197 | 0.087193 | 0.098093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004435 | 0.207381 | 569 | 19 | 79 | 29.947368 | 0.809313 | 0 | 0 | 0 | 0 | 0 | 0.031634 | 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 |
be9d3d383f04d6ca7fcf63f8c84eebf0cbd5a18c | 5,969 | py | Python | heat/tests/test_instance_group.py | CiscoSystems/heat | 1b609f3c0621c44e4988a166a38f36c2b57eb4c6 | [
"Apache-2.0"
] | 1 | 2020-08-15T14:29:15.000Z | 2020-08-15T14:29:15.000Z | heat/tests/test_instance_group.py | CiscoSystems/heat | 1b609f3c0621c44e4988a166a38f36c2b57eb4c6 | [
"Apache-2.0"
] | null | null | null | heat/tests/test_instance_group.py | CiscoSystems/heat | 1b609f3c0621c44e4988a166a38f36c2b57eb4c6 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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... | 36.396341 | 79 | 0.640141 | 687 | 5,969 | 5.471616 | 0.282387 | 0.023943 | 0.010641 | 0.051077 | 0.312849 | 0.20963 | 0.166002 | 0.166002 | 0.117052 | 0.117052 | 0 | 0.018278 | 0.239236 | 5,969 | 163 | 80 | 36.619632 | 0.809513 | 0.107388 | 0 | 0.243478 | 0 | 0.008696 | 0.1278 | 0.019198 | 0 | 0 | 0 | 0 | 0.121739 | 0 | null | null | 0.008696 | 0.113043 | null | null | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be9d86d25dd20fed224f76912b6fb4d2b9db9a1f | 7,459 | py | Python | chapter09/app.py | tryrus/flask-tutorial | 219aa83e630b232e34340bbe01098c31c4ea7c8b | [
"MIT"
] | null | null | null | chapter09/app.py | tryrus/flask-tutorial | 219aa83e630b232e34340bbe01098c31c4ea7c8b | [
"MIT"
] | null | null | null | chapter09/app.py | tryrus/flask-tutorial | 219aa83e630b232e34340bbe01098c31c4ea7c8b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 开发人员:Tryrus
# 开发时间:2020/1/4 21:25
# 文件名称:app.py
# 开发工具:PyCharm
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy # 导入扩展类
import os
import sys
WIN = sys.platform.startswith('win')
if WIN: # 如果是 Windows 系统,使用三个斜线
prefix = 'sqlite:///'
else: # 否则使用四个斜线
... | 30.695473 | 119 | 0.632927 | 940 | 7,459 | 4.917021 | 0.279787 | 0.025963 | 0.044137 | 0.051926 | 0.216357 | 0.158806 | 0.075725 | 0.055387 | 0.041108 | 0.041108 | 0 | 0.014473 | 0.22188 | 7,459 | 242 | 120 | 30.822314 | 0.781875 | 0.119319 | 0 | 0.309942 | 0 | 0 | 0.153799 | 0.016523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081871 | false | 0.081871 | 0.070175 | 0.011696 | 0.321637 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be9e359f8d91a6faa55abd4e660254c1862163da | 15,604 | py | Python | hard-gists/6cd16631253eed21f37f/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/6cd16631253eed21f37f/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/6cd16631253eed21f37f/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
#_______________________________________________________________________
#
# C C C P i s C o n t r o l C h a r t s i n P y t h o n
#_______________________________________________________________________
#
license_str = """
This program is free software; you can redistribute it an... | 30.181818 | 98 | 0.537234 | 2,238 | 15,604 | 3.533512 | 0.173816 | 0.038948 | 0.054628 | 0.048558 | 0.400228 | 0.359636 | 0.331563 | 0.304375 | 0.278705 | 0.271371 | 0 | 0.037432 | 0.332287 | 15,604 | 517 | 99 | 30.181818 | 0.721566 | 0.122212 | 0 | 0.295732 | 0 | 0 | 0.138834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.039634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be9e791e1ce561f3e7f9a3c91a68c594f345d82c | 1,030 | py | Python | scripts/simpleconfigexample.py | petabricks/petabricks | b498b93880b0c4ac3924ddb82cff2e6541e60bd1 | [
"MIT"
] | 10 | 2015-03-12T18:09:57.000Z | 2022-03-17T03:18:36.000Z | scripts/simpleconfigexample.py | petabricks/petabricks | b498b93880b0c4ac3924ddb82cff2e6541e60bd1 | [
"MIT"
] | 2 | 2021-01-12T15:12:21.000Z | 2022-03-22T07:47:37.000Z | scripts/simpleconfigexample.py | petabricks/petabricks | b498b93880b0c4ac3924ddb82cff2e6541e60bd1 | [
"MIT"
] | 3 | 2017-06-28T06:01:03.000Z | 2021-01-12T15:05:34.000Z | #!/usr/bin/python
import configtool, traininginfo, pbutil
import tempfile, os
n = 10000
benchmark = "sort/Sort"
cfg = configtool.ConfigFile("./examples/sort/Sort.cfg")
info = traininginfo.TrainingInfo("./examples/sort/Sort.info")
tunables = info.tunablesDict()
for k in sorted(cfg.keys()):
try:
print k.ljust(5... | 25.75 | 105 | 0.558252 | 116 | 1,030 | 4.956897 | 0.491379 | 0.041739 | 0.038261 | 0.066087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013369 | 0.273786 | 1,030 | 39 | 106 | 26.410256 | 0.755348 | 0.015534 | 0 | 0.071429 | 0 | 0 | 0.142433 | 0.048467 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bea136b273c57bf41d20e9626f831d9dc70bbd1b | 33,641 | py | Python | LowLevelApi/NGPF/Python/1Main/IxNetL2L3RawTrafficItemLL.py | NickKeating/IxNetwork | 0a54c0b8d1a1664d2826ad20a826ef384c48432f | [
"MIT"
] | 46 | 2018-01-24T06:43:45.000Z | 2022-03-17T07:27:08.000Z | LowLevelApi/NGPF/Python/1Main/IxNetL2L3RawTrafficItemLL.py | NickKeating/IxNetwork | 0a54c0b8d1a1664d2826ad20a826ef384c48432f | [
"MIT"
] | 104 | 2018-03-16T18:16:29.000Z | 2022-03-17T07:16:43.000Z | LowLevelApi/NGPF/Python/1Main/IxNetL2L3RawTrafficItemLL.py | NickKeating/IxNetwork | 0a54c0b8d1a1664d2826ad20a826ef384c48432f | [
"MIT"
] | 58 | 2018-01-23T05:54:20.000Z | 2022-03-30T22:55:20.000Z | #!/usr/local/python2.7.6/bin/python2.7
# Description
#
# This script will use Python and IxNetwork low level APIs to
# create two NGPF IPv4 topolopgies with back-to-back ports.
# Then it will add TCP header to the Traffic Item and modify
# the tcp srcPort and dstPort fields.
#
# If you use NGPF, its ha... | 38.891329 | 296 | 0.597872 | 3,078 | 33,641 | 6.526966 | 0.220923 | 0.002787 | 0.003136 | 0.003186 | 0.179343 | 0.140119 | 0.120757 | 0.105774 | 0.072723 | 0.066351 | 0 | 0.021726 | 0.292649 | 33,641 | 864 | 297 | 38.936343 | 0.822533 | 0.11813 | 0 | 0.234888 | 0 | 0 | 0.151589 | 0.016487 | 0.001727 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003454 | 0.013817 | null | null | 0.150259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bea75307c9827b872726ab0de89873c2760f5cd2 | 1,462 | py | Python | jwt_auth/tests.py | cezaryzelisko/gps-tracker-api | 871c2e979dee14408cd845dd5fa6e82cf7449257 | [
"MIT"
] | 1 | 2021-06-02T08:21:23.000Z | 2021-06-02T08:21:23.000Z | jwt_auth/tests.py | cezaryzelisko/gps-tracker-api | 871c2e979dee14408cd845dd5fa6e82cf7449257 | [
"MIT"
] | null | null | null | jwt_auth/tests.py | cezaryzelisko/gps-tracker-api | 871c2e979dee14408cd845dd5fa6e82cf7449257 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
OBTAIN_TOKEN_URL = reverse('jwt_auth:token_obtain')
REFRESH_TOKEN_URL = reverse('jwt_auth:token_refresh')
class CustomJWTTests(TestC... | 32.488889 | 98 | 0.698358 | 177 | 1,462 | 5.519774 | 0.282486 | 0.050154 | 0.045036 | 0.077789 | 0.323439 | 0.292733 | 0.094166 | 0.094166 | 0.094166 | 0.094166 | 0 | 0.007666 | 0.19699 | 1,462 | 44 | 99 | 33.227273 | 0.824532 | 0 | 0 | 0 | 0 | 0 | 0.118331 | 0.029412 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.121212 | false | 0.060606 | 0.151515 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
beaf57f245a9a1d6535be52db0b559359a0a2c68 | 501 | py | Python | l10n_ph/__init__.py | mongramosjr/l10n-ph | fabb5e2d73122bbe312fe9685b7e3197ade408de | [
"BSD-3-Clause"
] | 1 | 2021-11-07T20:18:48.000Z | 2021-11-07T20:18:48.000Z | l10n_ph/__init__.py | mongramosjr/l10n-ph | fabb5e2d73122bbe312fe9685b7e3197ade408de | [
"BSD-3-Clause"
] | null | null | null | l10n_ph/__init__.py | mongramosjr/l10n-ph | fabb5e2d73122bbe312fe9685b7e3197ade408de | [
"BSD-3-Clause"
] | 1 | 2018-09-15T21:51:33.000Z | 2018-09-15T21:51:33.000Z | # -*- encoding: utf-8 -*-
##############################################################################
#
# Basement720, PH - Accounting
# Copyright © 2016, Dominador B. Ramos Jr. <mongramosjr@gmail.com>
# This file is part of PH - Accounting and is released under
# the BSD 3-Clause License: https://openso... | 35.785714 | 78 | 0.479042 | 48 | 501 | 5.020833 | 0.833333 | 0.099585 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.117764 | 501 | 13 | 79 | 38.538462 | 0.513575 | 0.644711 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
beb1c2c3ded67ee5fca164a33d6462fa7c495ebb | 1,509 | py | Python | conversions/hexadecimal_to_decimal.py | jenia90/Python | 696fb4a681ad9e4d84e0d2b894daf449a3e30b24 | [
"MIT"
] | 145,614 | 2016-07-21T05:40:05.000Z | 2022-03-31T22:17:22.000Z | conversions/hexadecimal_to_decimal.py | Agha-Muqarib/Python | 04f156a8973d6156a4357e0717d9eb0aa264d086 | [
"MIT"
] | 3,987 | 2016-07-28T17:31:25.000Z | 2022-03-30T23:07:46.000Z | conversions/hexadecimal_to_decimal.py | Agha-Muqarib/Python | 04f156a8973d6156a4357e0717d9eb0aa264d086 | [
"MIT"
] | 40,014 | 2016-07-26T15:14:41.000Z | 2022-03-31T22:23:03.000Z | hex_table = {hex(i)[2:]: i for i in range(16)} # Use [:2] to strip off the leading '0x'
def hex_to_decimal(hex_string: str) -> int:
"""
Convert a hexadecimal value to its decimal equivalent
#https://www.programiz.com/python-programming/methods/built-in/hex
>>> hex_to_decimal("a")
10
>>> hex_... | 30.18 | 88 | 0.651425 | 210 | 1,509 | 4.461905 | 0.347619 | 0.048026 | 0.115261 | 0.074707 | 0.459979 | 0.421558 | 0.392743 | 0.392743 | 0.227321 | 0.172892 | 0 | 0.02773 | 0.235255 | 1,509 | 49 | 89 | 30.795918 | 0.784229 | 0.45328 | 0 | 0 | 0 | 0 | 0.133891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bebb14df7274bb3f609da103508d792ce62b65fd | 2,124 | py | Python | tools/make_bootstrap.py | drakesvoboda/ProGraML | df5636b0e2bdf7e3c285b7fa0050cf8b697aaf0a | [
"Apache-2.0"
] | 1 | 2021-03-10T13:18:25.000Z | 2021-03-10T13:18:25.000Z | tools/make_bootstrap.py | drakesvoboda/ProGraML | df5636b0e2bdf7e3c285b7fa0050cf8b697aaf0a | [
"Apache-2.0"
] | null | null | null | tools/make_bootstrap.py | drakesvoboda/ProGraML | df5636b0e2bdf7e3c285b7fa0050cf8b697aaf0a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Generate a bootstrap.sh script by pulling out commands from DEPS.txt files.
#
# Usage:
#
# $ python ./tools/bootstrap.py
#
import os
import sys
def GetPlatformNameOrDie():
"""Return the platform name, one of: {linux,macos}."""
if sys.platform == "linux" or sys.platform == "linux... | 32.676923 | 83 | 0.582863 | 251 | 2,124 | 4.860558 | 0.40239 | 0.057377 | 0.019672 | 0.029508 | 0.198361 | 0.07377 | 0.07377 | 0.07377 | 0.07377 | 0.07377 | 0 | 0.005242 | 0.281544 | 2,124 | 64 | 84 | 33.1875 | 0.794233 | 0.152072 | 0 | 0.146341 | 1 | 0 | 0.151856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.04878 | 0 | 0.195122 | 0.170732 | 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 |
bec22559770c54a0ce508ad88b80e8d3703dc6fd | 5,974 | py | Python | test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py | Valkatraz/scons | 5e70c65f633dcecc035751c9f0c6f894088df8a0 | [
"MIT"
] | 1,403 | 2017-11-23T14:24:01.000Z | 2022-03-30T20:59:39.000Z | test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py | Valkatraz/scons | 5e70c65f633dcecc035751c9f0c6f894088df8a0 | [
"MIT"
] | 3,708 | 2017-11-27T13:47:12.000Z | 2022-03-29T17:21:17.000Z | test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py | Valkatraz/scons | 5e70c65f633dcecc035751c9f0c6f894088df8a0 | [
"MIT"
] | 281 | 2017-12-01T23:48:38.000Z | 2022-03-31T15:25:44.000Z | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... | 37.572327 | 94 | 0.667392 | 821 | 5,974 | 4.705238 | 0.288672 | 0.036241 | 0.027958 | 0.03417 | 0.243593 | 0.122444 | 0.075848 | 0.033135 | 0.022262 | 0.022262 | 0 | 0.008886 | 0.18999 | 5,974 | 158 | 95 | 37.810127 | 0.789419 | 0.265149 | 0 | 0.044444 | 0 | 0.022222 | 0.658095 | 0.21619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0.011111 | 0.055556 | 0 | 0.066667 | 0 | 0 | 0 | 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 |
bec5803fcf36d7e3f6d61adc9a1b55918a33d32a | 3,488 | gyp | Python | test/webrtc_test_common.gyp | SlimXperiments/external_chromium_org_third_party_webrtc | 14c8d0b9402c3eaa282f34f7652c08a5b624279e | [
"DOC",
"BSD-3-Clause"
] | 1 | 2019-02-22T05:37:43.000Z | 2019-02-22T05:37:43.000Z | test/webrtc_test_common.gyp | SlimXperiments/external_chromium_org_third_party_webrtc | 14c8d0b9402c3eaa282f34f7652c08a5b624279e | [
"DOC",
"BSD-3-Clause"
] | null | null | null | test/webrtc_test_common.gyp | SlimXperiments/external_chromium_org_third_party_webrtc | 14c8d0b9402c3eaa282f34f7652c08a5b624279e | [
"DOC",
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project au... | 30.330435 | 77 | 0.526376 | 347 | 3,488 | 5.066282 | 0.412104 | 0.014221 | 0.015358 | 0.020478 | 0.199659 | 0.139932 | 0.068259 | 0.031854 | 0 | 0 | 0 | 0.003445 | 0.334289 | 3,488 | 114 | 78 | 30.596491 | 0.753661 | 0.164278 | 0 | 0.269231 | 0 | 0 | 0.5212 | 0.206481 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bec69a140a1a48bc2400ceadd4c391edd6d4b2fa | 411 | py | Python | 0x07-python-test_driven_development/0-add_integer.py | Rmolimock/holbertonschool-higher_level_programming | cf0421cbb6463b3960dc581badf7d4bbe1622b7d | [
"MIT"
] | 1 | 2019-05-21T09:34:41.000Z | 2019-05-21T09:34:41.000Z | 0x07-python-test_driven_development/0-add_integer.py | Rmolimock/holbertonschool-higher_level_programming | cf0421cbb6463b3960dc581badf7d4bbe1622b7d | [
"MIT"
] | null | null | null | 0x07-python-test_driven_development/0-add_integer.py | Rmolimock/holbertonschool-higher_level_programming | cf0421cbb6463b3960dc581badf7d4bbe1622b7d | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''This module contains the add_integer function
'''
def add_integer(a, b=98):
'''add_integer adds two integers and/or floats together
and returns an integer of their sum
'''
if not isinstance(a, (int, float)):
raise TypeError("a must be an integer")
if not isinstance(b,... | 27.4 | 59 | 0.649635 | 63 | 411 | 4.190476 | 0.571429 | 0.113636 | 0.113636 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009464 | 0.22871 | 411 | 14 | 60 | 29.357143 | 0.823344 | 0.36983 | 0 | 0 | 0 | 0 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
bec86030e5e06955a42882ad6f9f40dc08e6e4ec | 4,748 | py | Python | sdk/python/pulumi_linode/get_domain.py | bbiggerr/pulumi-linode | 4821146746d309ad5c18eacc2a6215d9f88e8c7b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_linode/get_domain.py | bbiggerr/pulumi-linode | 4821146746d309ad5c18eacc2a6215d9f88e8c7b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_linode/get_domain.py | bbiggerr/pulumi-linode | 4821146746d309ad5c18eacc2a6215d9f88e8c7b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from . import utilities, tables
class GetDomainResult(object):
"""... | 43.962963 | 205 | 0.671651 | 645 | 4,748 | 4.663566 | 0.260465 | 0.023936 | 0.06383 | 0.119681 | 0.222074 | 0.131649 | 0.02859 | 0 | 0 | 0 | 0 | 0.000279 | 0.24642 | 4,748 | 107 | 206 | 44.373832 | 0.840414 | 0.047178 | 0 | 0 | 1 | 0 | 0.19325 | 0.010589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.081967 | 0 | 0.131148 | 0 | 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 |
fe240e73c00ccfb9b806a950caa969ad36ac82ec | 603 | py | Python | dataset_generator.py | PhTrempe/l2a | 8bf40b56daea383052ae725d5a20dc7e623408cc | [
"MIT"
] | null | null | null | dataset_generator.py | PhTrempe/l2a | 8bf40b56daea383052ae725d5a20dc7e623408cc | [
"MIT"
] | null | null | null | dataset_generator.py | PhTrempe/l2a | 8bf40b56daea383052ae725d5a20dc7e623408cc | [
"MIT"
] | null | null | null | import random
from dataset_io import DatasetIO
from hyperparameters import Hyperparameters
class DatasetGenerator(object):
@staticmethod
def generate_dataset(n):
return [(DatasetGenerator.generate_dataset_entry()) for _ in range(n)]
@staticmethod
def generate_dataset_entry():
k = 100... | 24.12 | 78 | 0.674959 | 72 | 603 | 5.361111 | 0.5 | 0.15544 | 0.119171 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02603 | 0.235489 | 603 | 24 | 79 | 25.125 | 0.81128 | 0 | 0 | 0.111111 | 1 | 0 | 0.013267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe252cbb7fb35a277b27d8fbe37ec2d77c07c297 | 24,182 | py | Python | mmtbx/scaling/tst_xtriage.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/scaling/tst_xtriage.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/scaling/tst_xtriage.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null |
from __future__ import division
from mmtbx.scaling import data_statistics as ds
from mmtbx.scaling import xtriage
from mmtbx.command_line import fmodel
from iotbx import file_reader
from cctbx import crystal
from cctbx import miller
from cctbx import sgtbx
from cctbx.array_family import flex
from libtbx.test_utils imp... | 43.182143 | 194 | 0.611529 | 4,010 | 24,182 | 3.514713 | 0.193017 | 0.014261 | 0.05066 | 0.037534 | 0.516248 | 0.485313 | 0.45005 | 0.43217 | 0.425216 | 0.413084 | 0 | 0.162191 | 0.256265 | 24,182 | 559 | 195 | 43.259392 | 0.621462 | 0.072285 | 0 | 0.427061 | 0 | 0.164905 | 0.428065 | 0.030989 | 0 | 0 | 0 | 0.001789 | 0.183932 | 0 | null | null | 0.008457 | 0.042283 | null | null | 0.006342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe2b6f32be1501311d6a018c8d8fff96cd5f5496 | 328 | py | Python | samples/python2/_doc.py | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 144 | 2015-01-15T03:38:44.000Z | 2022-02-17T09:07:52.000Z | samples/python2/_doc.py | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 9 | 2015-09-09T06:51:46.000Z | 2020-06-17T14:10:10.000Z | samples/python2/_doc.py | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 73 | 2015-06-20T15:59:27.000Z | 2020-03-15T22:43:36.000Z | #!/usr/bin/env python
'''
Scans current directory for *.py files and reports
ones with missing __doc__ string.
'''
from glob import glob
if __name__ == '__main__':
print '--- undocumented files:'
for fn in glob('*.py'):
loc = {}
execfile(fn, loc)
if '__doc__' not in loc:
p... | 19.294118 | 50 | 0.594512 | 43 | 328 | 4.162791 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280488 | 328 | 16 | 51 | 20.5 | 0.758475 | 0.060976 | 0 | 0 | 0 | 0 | 0.195349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe2b8541f55ce04c9707063be34143296ced62d1 | 306 | py | Python | firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/dps310_simpletest.py | freeglow/microcontroller-cpy | 5adfda49da6eefaece81be2a2f26122d68736355 | [
"MIT"
] | null | null | null | firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/dps310_simpletest.py | freeglow/microcontroller-cpy | 5adfda49da6eefaece81be2a2f26122d68736355 | [
"MIT"
] | null | null | null | firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/dps310_simpletest.py | freeglow/microcontroller-cpy | 5adfda49da6eefaece81be2a2f26122d68736355 | [
"MIT"
] | null | null | null | import time
import board
import busio
import adafruit_dps310
i2c = busio.I2C(board.SCL, board.SDA)
dps310 = adafruit_dps310.DPS310(i2c)
while True:
print("Temperature = %.2f *C" % dps310.temperature)
print("Pressure = %.2f hPa" % dps310.pressure)
print("")
time.sleep(1.0)
| 20.4 | 56 | 0.663399 | 40 | 306 | 5.025 | 0.5 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103306 | 0.20915 | 306 | 14 | 57 | 21.857143 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fe2f5d609ca64673ac9896455ca2a141cd0a86d8 | 681 | py | Python | wallet/migrations/0004_alter_wallet_user.py | thoth-ky/currency_exhange_app | b1d9495057532c8a24b228e68af98929bb6abdf1 | [
"MIT"
] | null | null | null | wallet/migrations/0004_alter_wallet_user.py | thoth-ky/currency_exhange_app | b1d9495057532c8a24b228e68af98929bb6abdf1 | [
"MIT"
] | null | null | null | wallet/migrations/0004_alter_wallet_user.py | thoth-ky/currency_exhange_app | b1d9495057532c8a24b228e68af98929bb6abdf1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-05-10 06:46
from django.conf import settings
from django.db import migrations
from django.db import models
import wallet.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("wallet", "0003_... | 25.222222 | 70 | 0.622614 | 75 | 681 | 5.48 | 0.56 | 0.072993 | 0.058394 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063525 | 0.283407 | 681 | 26 | 71 | 26.192308 | 0.778689 | 0.066079 | 0 | 0.1 | 1 | 0 | 0.070978 | 0.036278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.35 | 0 | 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 |
fe34e5bb7c5f9c956a5ec1db39da6feca8532b5e | 595 | py | Python | BlogWeb/blog/migrations/0003_auto_20190508_1538.py | DXYyang/DjangoBlog | e00e7a05ce06a7c01cf9c6664c6f45fd4dd7f773 | [
"MIT"
] | null | null | null | BlogWeb/blog/migrations/0003_auto_20190508_1538.py | DXYyang/DjangoBlog | e00e7a05ce06a7c01cf9c6664c6f45fd4dd7f773 | [
"MIT"
] | 4 | 2021-03-19T02:55:08.000Z | 2022-03-11T23:56:26.000Z | BlogWeb/blog/migrations/0003_auto_20190508_1538.py | DXYyang/DjangoBlog | e00e7a05ce06a7c01cf9c6664c6f45fd4dd7f773 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-05-08 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20190503_1527'),
]
operations = [
migrations.AddField(
model_name='post',
name='content_html',
... | 24.791667 | 84 | 0.593277 | 62 | 595 | 5.548387 | 0.693548 | 0.104651 | 0.133721 | 0.156977 | 0.203488 | 0.203488 | 0 | 0 | 0 | 0 | 0 | 0.070755 | 0.287395 | 595 | 23 | 85 | 25.869565 | 0.740566 | 0.072269 | 0 | 0.352941 | 1 | 0 | 0.12 | 0.041818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe36cc5d14b589d821bca0088a52ad5e86a210b2 | 2,742 | py | Python | usaspending_api/download/management/commands/generate_zip.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | usaspending_api/download/management/commands/generate_zip.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | 1 | 2021-11-15T17:53:27.000Z | 2021-11-15T17:53:27.000Z | usaspending_api/download/management/commands/generate_zip.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | import botocore
import logging
from django.core.management.base import BaseCommand
from django.conf import settings
from usaspending_api.common.csv_helpers import sqs_queue
from usaspending_api.download.helpers import write_to_download_log as write_to_log
from usaspending_api.download.lookups import JOB_STATUS_DICT
f... | 44.95082 | 115 | 0.62035 | 303 | 2,742 | 5.422442 | 0.435644 | 0.073646 | 0.054778 | 0.063299 | 0.02678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004303 | 0.322028 | 2,742 | 60 | 116 | 45.7 | 0.879505 | 0.153902 | 0 | 0.1 | 0 | 0 | 0.026441 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.025 | false | 0 | 0.225 | 0 | 0.275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fe3a114b6f203fad87854a28e7f760b53a1af044 | 128 | py | Python | music/class_/audioa/d/sharp/_key.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/d/sharp/_key.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/d/sharp/_key.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*D♯ Key*
A key of D♯.
"""
from abc import ABCMeta
__all__ = ["DsKey"]
class DsKey:
__metaclass__ = ABCMeta
| 8 | 27 | 0.570313 | 18 | 128 | 3.722222 | 0.722222 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289063 | 128 | 15 | 28 | 8.533333 | 0.714286 | 0.171875 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 |
fe404004443ca96698ca614ba5830c939f0ae18b | 1,422 | py | Python | tests/test_logitboost.py | TMRert/skboost | f5ba77cd75beca177b663e7994ae7c3616e278fb | [
"MIT"
] | 15 | 2016-05-09T09:17:14.000Z | 2020-12-03T02:55:33.000Z | tests/test_logitboost.py | TMRert/skboost | f5ba77cd75beca177b663e7994ae7c3616e278fb | [
"MIT"
] | 2 | 2018-11-30T05:16:52.000Z | 2020-09-25T05:22:37.000Z | tests/test_logitboost.py | TMRert/skboost | f5ba77cd75beca177b663e7994ae7c3616e278fb | [
"MIT"
] | 12 | 2017-06-27T02:37:03.000Z | 2020-03-16T15:24:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:mod:`test_logitboost`
==================
.. module:: test_logitboost
:platform: Unix, Windows
:synopsis:
.. moduleauthor:: hbldh <henrik.blidh@nedomkull.com>
Created on 2015-11-12
"""
from __future__ import division
from __future__ import print_function
fr... | 26.830189 | 75 | 0.71519 | 189 | 1,422 | 5.089947 | 0.42328 | 0.058212 | 0.066528 | 0.066528 | 0.440748 | 0.440748 | 0.440748 | 0.440748 | 0.440748 | 0.440748 | 0 | 0.030638 | 0.173699 | 1,422 | 52 | 76 | 27.346154 | 0.788085 | 0.164557 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe40c53bd704a917d66ef6fa6ce59a795fa0def6 | 9,899 | py | Python | backend/router.py | agupta7/voronoi-neighbors-frontend | 73f77e7b02082390534942c47c43c09eac7a763b | [
"Apache-2.0"
] | null | null | null | backend/router.py | agupta7/voronoi-neighbors-frontend | 73f77e7b02082390534942c47c43c09eac7a763b | [
"Apache-2.0"
] | null | null | null | backend/router.py | agupta7/voronoi-neighbors-frontend | 73f77e7b02082390534942c47c43c09eac7a763b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python -uB
from flask import Flask
from flask import Response
from flask import Request
from flask import request
import psycopg2
import json
import queries
import dataowner
import serviceProvider
import key_management as km
import functools
import argparse
# settings to adjust
CROSS_ORIGIN_ALLOW = '*'
DB_R... | 33.670068 | 193 | 0.540156 | 940 | 9,899 | 5.606383 | 0.260638 | 0.01537 | 0.024288 | 0.037951 | 0.387287 | 0.314611 | 0.273814 | 0.266793 | 0.185009 | 0.118406 | 0 | 0.005274 | 0.348722 | 9,899 | 293 | 194 | 33.784983 | 0.812161 | 0.339832 | 0 | 0.28866 | 0 | 0 | 0.152959 | 0.005768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092784 | false | 0.072165 | 0.123711 | 0 | 0.298969 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe42c653f43917eff5eef894f053a1d1eb4e4d11 | 409 | py | Python | gesund_projekt/steps/migrations/0005_alter_steps_id.py | asis2016/gesund-projekt | cb3828b69cd6a86deeab16943e38b6ebffd86abb | [
"MIT"
] | null | null | null | gesund_projekt/steps/migrations/0005_alter_steps_id.py | asis2016/gesund-projekt | cb3828b69cd6a86deeab16943e38b6ebffd86abb | [
"MIT"
] | null | null | null | gesund_projekt/steps/migrations/0005_alter_steps_id.py | asis2016/gesund-projekt | cb3828b69cd6a86deeab16943e38b6ebffd86abb | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-03-26 10:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('steps', '0004_steps_author'),
]
operations = [
migrations.AlterField(
model_name='steps',
name='id',
fie... | 21.526316 | 86 | 0.606357 | 45 | 409 | 5.422222 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.276284 | 409 | 18 | 87 | 22.722222 | 0.760135 | 0.110024 | 0 | 0 | 1 | 0 | 0.080111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe4e859ade890412f0e80776815d4b394fbb3b74 | 621 | py | Python | pytglib/api/types/rich_text_strikethrough.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/rich_text_strikethrough.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/rich_text_strikethrough.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class RichTextStrikethrough(Object):
"""
A strikethrough rich text
Attributes:
ID (:obj:`str`): ``RichTextStrikethrough``
Args:
text (:class:`telegram.api.types.RichText`):
Text
Returns:
RichText
Raises:
:class:`tele... | 18.818182 | 56 | 0.586151 | 57 | 621 | 6.315789 | 0.561404 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291465 | 621 | 32 | 57 | 19.40625 | 0.818182 | 0.362319 | 0 | 0 | 0 | 0 | 0.134503 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe5a0d6ee1e9fd5232b91f68be5082716e6db432 | 2,301 | py | Python | cireg/cms/migrations/0011_downloaditem_downloadoverviewpage.py | bruecksen/cireg | 3fbcd24bd61153bac93b6abe26fc9b96d4a2098b | [
"MIT"
] | null | null | null | cireg/cms/migrations/0011_downloaditem_downloadoverviewpage.py | bruecksen/cireg | 3fbcd24bd61153bac93b6abe26fc9b96d4a2098b | [
"MIT"
] | 3 | 2019-10-22T13:09:43.000Z | 2019-10-22T13:09:45.000Z | cireg/cms/migrations/0011_downloaditem_downloadoverviewpage.py | bruecksen/cireg | 3fbcd24bd61153bac93b6abe26fc9b96d4a2098b | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-09-12 10:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('wagtailtrans', '0007_auto_20180327_1127'),
('wagtaildocs', '0008_d... | 48.957447 | 216 | 0.613646 | 230 | 2,301 | 5.978261 | 0.404348 | 0.040727 | 0.061091 | 0.096 | 0.424727 | 0.352 | 0.352 | 0.352 | 0.352 | 0.352 | 0 | 0.035755 | 0.234246 | 2,301 | 46 | 217 | 50.021739 | 0.744608 | 0.019557 | 0 | 0.3 | 1 | 0 | 0.233807 | 0.065661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe605fcc18849ef0d1947485bf21b489549256aa | 375 | py | Python | froide/campaign/apps.py | manonthemat/froide | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | [
"MIT"
] | null | null | null | froide/campaign/apps.py | manonthemat/froide | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | [
"MIT"
] | null | null | null | froide/campaign/apps.py | manonthemat/froide | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class CampaignConfig(AppConfig):
name = 'froide.campaign'
verbose_name = _('Campaign')
def ready(self):
from froide.foirequest.models import FoiRequest
from .listeners import connect_campaign
... | 26.785714 | 60 | 0.749333 | 42 | 375 | 6.52381 | 0.595238 | 0.072993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184 | 375 | 13 | 61 | 28.846154 | 0.895425 | 0 | 0 | 0 | 0 | 0 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe642df69f37797e332541a8b1d203812217a227 | 304 | py | Python | my-shell/sentiment/1/call2.py | Tigerye/OpenNMT-py | 8e46d6b3b98d73c8da33d19d52ea1c7876a52a29 | [
"MIT"
] | null | null | null | my-shell/sentiment/1/call2.py | Tigerye/OpenNMT-py | 8e46d6b3b98d73c8da33d19d52ea1c7876a52a29 | [
"MIT"
] | null | null | null | my-shell/sentiment/1/call2.py | Tigerye/OpenNMT-py | 8e46d6b3b98d73c8da33d19d52ea1c7876a52a29 | [
"MIT"
] | 1 | 2021-08-28T00:02:31.000Z | 2021-08-28T00:02:31.000Z | import os, subprocess
with open('/root/workspace/OpenNMT-py/my-shell/sentiment/sentiment_test_set_p/1/positive_en', 'r') as f:
for line in f:
l = line.strip()
cmd = ['curl', '-d', f'text={l}', 'http://text-processing.com/api/sentiment/']
print(subprocess.check_output(cmd))
| 33.777778 | 104 | 0.648026 | 46 | 304 | 4.173913 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.171053 | 304 | 8 | 105 | 38 | 0.757937 | 0 | 0 | 0 | 0 | 0 | 0.447368 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
fe657936c403e059e4f8ae90104f827a0e56994d | 3,353 | py | Python | asv_bench/benchmarks/algorithms.py | tacaswell/pandas | 81c57e20da278494dfebc2f1043f5ff361a234f3 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | 1 | 2019-04-28T13:48:34.000Z | 2019-04-28T13:48:34.000Z | asv_bench/benchmarks/algorithms.py | tacaswell/pandas | 81c57e20da278494dfebc2f1043f5ff361a234f3 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asv_bench/benchmarks/algorithms.py | tacaswell/pandas | 81c57e20da278494dfebc2f1043f5ff361a234f3 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | 3 | 2019-12-24T18:46:58.000Z | 2021-09-04T11:57:13.000Z | import numpy as np
import pandas as pd
from pandas.util import testing as tm
class Algorithms(object):
goal_time = 0.2
def setup(self):
N = 100000
np.random.seed(1234)
self.int_unique = pd.Int64Index(np.arange(N * 5))
# cache is_unique
self.int_unique.is_unique
... | 28.905172 | 75 | 0.629884 | 469 | 3,353 | 4.304904 | 0.228145 | 0.069341 | 0.069341 | 0.080238 | 0.406142 | 0.295196 | 0.26845 | 0.253096 | 0.164933 | 0.164933 | 0 | 0.046961 | 0.244259 | 3,353 | 115 | 76 | 29.156522 | 0.749803 | 0.012228 | 0 | 0.101266 | 0 | 0 | 0.009371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.278481 | false | 0 | 0.037975 | 0 | 0.367089 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe70070457e6cc6a9559107f8dbcca0774c38dc1 | 568 | py | Python | accountant/core/migrations/0016_game_log_cursor.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | null | null | null | accountant/core/migrations/0016_game_log_cursor.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | 7 | 2017-03-29T18:52:44.000Z | 2017-09-05T19:06:29.000Z | accountant/core/migrations/0016_game_log_cursor.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | 1 | 2019-12-16T22:27:07.000Z | 2019-12-16T22:27:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-06-09 23:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0015_logentry'),
]
operations = [
... | 25.818182 | 147 | 0.647887 | 67 | 568 | 5.343284 | 0.701493 | 0.067039 | 0.078212 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047511 | 0.221831 | 568 | 21 | 148 | 27.047619 | 0.762443 | 0.119718 | 0 | 0 | 1 | 0 | 0.090543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe7957da351bb421bdbb105119eb8660d0448091 | 413 | py | Python | dm_page/migrations/0024_auto_20210821_0929.py | AlexanderHalsey/Donation-Manager | 5655d1eb6394f7db9a178c081039c4e149ef6998 | [
"Unlicense"
] | null | null | null | dm_page/migrations/0024_auto_20210821_0929.py | AlexanderHalsey/Donation-Manager | 5655d1eb6394f7db9a178c081039c4e149ef6998 | [
"Unlicense"
] | null | null | null | dm_page/migrations/0024_auto_20210821_0929.py | AlexanderHalsey/Donation-Manager | 5655d1eb6394f7db9a178c081039c4e149ef6998 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.7 on 2021-08-21 09:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dm_page', '0023_donation_pdf_path'),
]
operations = [
migrations.AlterField(
model_name='donation',
name='pdf_path',... | 21.736842 | 74 | 0.605327 | 47 | 413 | 5.170213 | 0.808511 | 0.057613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.273608 | 413 | 18 | 75 | 22.944444 | 0.736667 | 0.108959 | 0 | 0 | 1 | 0 | 0.122951 | 0.060109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe7eb9ea781f4123ee994817b9962daa4d227a1a | 2,537 | py | Python | src/beluganos/yang/python/subinterface.py | RudSmith/netconf | 5d240e3ce7e6043ba6b5287e4daefac03967a1d0 | [
"Apache-2.0"
] | 11 | 2018-04-27T13:50:00.000Z | 2021-10-18T00:33:04.000Z | src/beluganos/yang/python/subinterface.py | RudSmith/netconf | 5d240e3ce7e6043ba6b5287e4daefac03967a1d0 | [
"Apache-2.0"
] | null | null | null | src/beluganos/yang/python/subinterface.py | RudSmith/netconf | 5d240e3ce7e6043ba6b5287e4daefac03967a1d0 | [
"Apache-2.0"
] | 2 | 2018-05-14T14:13:00.000Z | 2022-02-04T09:30:59.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2018 Nippon Telegraph and Telephone Corporation.
#
# 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
#
#... | 27.27957 | 93 | 0.694127 | 275 | 2,537 | 6.196364 | 0.407273 | 0.035211 | 0.090962 | 0.06162 | 0.362676 | 0.238263 | 0.238263 | 0.238263 | 0.238263 | 0.238263 | 0 | 0.013739 | 0.196689 | 2,537 | 92 | 94 | 27.576087 | 0.822375 | 0.316121 | 0 | 0.428571 | 0 | 0 | 0.050092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.057143 | 0 | 0.542857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe82a9d47d03a8b02e7459ea099ff5ea6e2e111a | 540 | py | Python | ts/apps/metrics/predicted-cost-efficiency-controller/ai-proxy/query/prometheus.py | pics-polaris-cli/polaris | 333e7b9f3b1a4d2a267cec73c44d09d4674042b5 | [
"Apache-2.0"
] | null | null | null | ts/apps/metrics/predicted-cost-efficiency-controller/ai-proxy/query/prometheus.py | pics-polaris-cli/polaris | 333e7b9f3b1a4d2a267cec73c44d09d4674042b5 | [
"Apache-2.0"
] | 10 | 2022-03-27T17:09:20.000Z | 2022-03-27T17:16:47.000Z | ts/apps/metrics/predicted-cost-efficiency-controller/ai-proxy/query/prometheus.py | pics-polaris-cli/polaris | 333e7b9f3b1a4d2a267cec73c44d09d4674042b5 | [
"Apache-2.0"
] | null | null | null | import os
from typing import Dict
import requests
class PrometheusClient:
def __init__(self, base_url: str):
self.base_url = base_url
def query(self, query: str) -> Dict:
url = f'http://{self.base_url}/api/v1/query?query={query}'
return requests.get(url).json()
@classmethod
... | 24.545455 | 66 | 0.635185 | 68 | 540 | 4.882353 | 0.455882 | 0.084337 | 0.099398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014423 | 0.22963 | 540 | 21 | 67 | 25.714286 | 0.783654 | 0 | 0 | 0 | 0 | 0 | 0.225926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe8c7c275df0b1f5d42213a7ca750f225c0f5069 | 26,794 | py | Python | NMTK_apps/NMTK_server/tasks.py | bhargavasana/nmtk | 9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd | [
"Unlicense"
] | null | null | null | NMTK_apps/NMTK_server/tasks.py | bhargavasana/nmtk | 9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd | [
"Unlicense"
] | null | null | null | NMTK_apps/NMTK_server/tasks.py | bhargavasana/nmtk | 9bebfcc4b43c28a1f2b2574060ea3195fca2c7dd | [
"Unlicense"
] | null | null | null | from celery.task import task
import simplejson as json
import decimal
import requests
import urlparse
import hmac
import hashlib
import uuid
from django.utils import timezone
from django.conf import settings
from django.core.management.color import no_style
from django.db import connections, transaction
import logging
... | 49.710575 | 134 | 0.54654 | 2,909 | 26,794 | 4.901341 | 0.181849 | 0.020059 | 0.011923 | 0.009328 | 0.197082 | 0.146093 | 0.100505 | 0.075046 | 0.059335 | 0.052883 | 0 | 0.005054 | 0.357543 | 26,794 | 538 | 135 | 49.802974 | 0.823225 | 0.088826 | 0 | 0.208791 | 0 | 0 | 0.116013 | 0.016627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | 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 |
fe8e1889aadea050b0f18bbab7d776c84bed19b0 | 4,237 | py | Python | gym/gym/scoreboard/client/http_client.py | sokol1412/rllab_hierarchical_rl | 6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57 | [
"MIT"
] | null | null | null | gym/gym/scoreboard/client/http_client.py | sokol1412/rllab_hierarchical_rl | 6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57 | [
"MIT"
] | null | null | null | gym/gym/scoreboard/client/http_client.py | sokol1412/rllab_hierarchical_rl | 6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57 | [
"MIT"
] | null | null | null | import logging
import requests
import textwrap
import six
from gym.gym import error
from gym.gym.scoreboard.client import util
logger = logging.getLogger(__name__)
warned = False
def render_post_data(post_data):
if hasattr(post_data, 'fileno'): # todo: is this the right way of checking if it's a file... | 44.6 | 218 | 0.544961 | 484 | 4,237 | 4.659091 | 0.411157 | 0.042572 | 0.031042 | 0.023947 | 0.116186 | 0.096674 | 0.078049 | 0.039024 | 0.039024 | 0.039024 | 0 | 0.00224 | 0.367949 | 4,237 | 94 | 219 | 45.074468 | 0.839806 | 0.091338 | 0 | 0.067568 | 0 | 0.013514 | 0.251164 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fe908baa369b25e26cae726fe5af10d1aa092682 | 447 | py | Python | instagram/migrations/0004_comment_body.py | JuneMuoti/Instagram-clone | aa48b9a337c56c6d0ff17b05e7a1aa990411a743 | [
"MIT"
] | null | null | null | instagram/migrations/0004_comment_body.py | JuneMuoti/Instagram-clone | aa48b9a337c56c6d0ff17b05e7a1aa990411a743 | [
"MIT"
] | null | null | null | instagram/migrations/0004_comment_body.py | JuneMuoti/Instagram-clone | aa48b9a337c56c6d0ff17b05e7a1aa990411a743 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-11 04:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instagram', '0003_auto_20180310_2344'),
]
operations = [
migrations.AddFie... | 21.285714 | 49 | 0.612975 | 49 | 447 | 5.408163 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103976 | 0.268456 | 447 | 20 | 50 | 22.35 | 0.706422 | 0.154362 | 0 | 0 | 1 | 0 | 0.114667 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe92985387fbcd640f977ffe745aa10aae263344 | 5,284 | py | Python | p1/pacman-search/p1/base/search.py | yaoyue123/WHU_SummerTraining | bff37e00f56ecfed3fd319ffdc29e66212b332d8 | [
"MIT"
] | 11 | 2019-07-18T15:04:20.000Z | 2021-12-14T08:42:04.000Z | p1/pacman-search/p1/base/search.py | yaoyue123/WHU_SummerTraining | bff37e00f56ecfed3fd319ffdc29e66212b332d8 | [
"MIT"
] | null | null | null | p1/pacman-search/p1/base/search.py | yaoyue123/WHU_SummerTraining | bff37e00f56ecfed3fd319ffdc29e66212b332d8 | [
"MIT"
] | 3 | 2020-06-22T15:41:48.000Z | 2021-03-02T14:16:18.000Z | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# At... | 33.232704 | 95 | 0.664837 | 720 | 5,284 | 4.865278 | 0.358333 | 0.017128 | 0.017128 | 0.025692 | 0.122181 | 0.105053 | 0.087354 | 0.063945 | 0.04225 | 0.04225 | 0 | 0.007342 | 0.226722 | 5,284 | 158 | 96 | 33.443038 | 0.849976 | 0.120363 | 0 | 0.164179 | 0 | 0.014925 | 0.121507 | 0.008505 | 0 | 0 | 0 | 0 | 0.014925 | 0 | null | null | 0 | 0.074627 | null | null | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe944127e3bd34f9a5423d179443dbe764e6d22b | 706 | py | Python | config.py | menikhilpandey/DO-One-Click-Anaconda-Install | f6338bfbadd03b9f2cbd2df4d66b61b1d6f30ccf | [
"MIT"
] | null | null | null | config.py | menikhilpandey/DO-One-Click-Anaconda-Install | f6338bfbadd03b9f2cbd2df4d66b61b1d6f30ccf | [
"MIT"
] | null | null | null | config.py | menikhilpandey/DO-One-Click-Anaconda-Install | f6338bfbadd03b9f2cbd2df4d66b61b1d6f30ccf | [
"MIT"
] | null | null | null | import easygui
def run():
SIZE = easygui.buttonbox(msg="Choose A Size",
title="DARWIN | One-Click Ananconda2 on 14.04",
choices=["512mb","1gb","2gb","4gb","8gb","16gb"],
default_choice="512mb",
cancel_choice="512mb"
)
REGION = easygui.buttonbox(msg="Choose A Datacenter Region",
title="DARWIN | One-Click ... | 29.416667 | 61 | 0.66289 | 95 | 706 | 4.8 | 0.526316 | 0.072368 | 0.092105 | 0.125 | 0.375 | 0.260965 | 0.260965 | 0.260965 | 0.184211 | 0 | 0 | 0.072013 | 0.134561 | 706 | 24 | 62 | 29.416667 | 0.674304 | 0 | 0 | 0.142857 | 0 | 0 | 0.387553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | 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 |
fe959d86e61482ce6f6a74809a402b08767ea13f | 873 | py | Python | mopidy/m3u/actor.py | kyleheyne/mopidy | 3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca | [
"Apache-2.0"
] | null | null | null | mopidy/m3u/actor.py | kyleheyne/mopidy | 3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca | [
"Apache-2.0"
] | null | null | null | mopidy/m3u/actor.py | kyleheyne/mopidy | 3b1b0dd2e9052cadb7bd1a29e724498f9fba7bca | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import logging
import pykka
from mopidy import backend
from mopidy.internal import encoding, path
from mopidy.m3u.library import M3ULibraryProvider
from mopidy.m3u.playlists import M3UPlaylistsProvider
logger = logging.getLogger(__name__)
class M3UBackend(... | 26.454545 | 66 | 0.705613 | 95 | 873 | 6.221053 | 0.494737 | 0.067682 | 0.043993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016058 | 0.215349 | 873 | 32 | 67 | 27.28125 | 0.846715 | 0 | 0 | 0 | 0 | 0 | 0.065292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fe95aea429180ed55c948ce9bbc782e5f8f67924 | 1,265 | py | Python | setup.py | Curiosio/srtm.py | a8ee02e9f0d545247b2378a6084770d1bcc2dbf7 | [
"Apache-2.0"
] | 174 | 2015-01-19T13:39:17.000Z | 2022-03-13T17:01:31.000Z | setup.py | Curiosio/srtm.py | a8ee02e9f0d545247b2378a6084770d1bcc2dbf7 | [
"Apache-2.0"
] | 40 | 2015-02-02T16:02:08.000Z | 2022-03-25T11:52:20.000Z | setup.py | Curiosio/srtm.py | a8ee02e9f0d545247b2378a6084770d1bcc2dbf7 | [
"Apache-2.0"
] | 63 | 2015-01-11T16:55:24.000Z | 2022-03-03T18:59:21.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2013 Tomo Krajina
#
# 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 ... | 32.435897 | 90 | 0.69249 | 166 | 1,265 | 5.23494 | 0.650602 | 0.069045 | 0.04603 | 0.048331 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014677 | 0.192095 | 1,265 | 38 | 91 | 33.289474 | 0.835616 | 0.46166 | 0 | 0 | 0 | 0 | 0.404511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe995750227198b89df6c7cd0c01fef801cd0fb5 | 1,324 | py | Python | flask_sqlalchemy_extended/__init__.py | luanws/flask-sqlalchemy-extended | 60080b82d5a078eb3e37abb4e76e585921043bc5 | [
"Apache-2.0"
] | null | null | null | flask_sqlalchemy_extended/__init__.py | luanws/flask-sqlalchemy-extended | 60080b82d5a078eb3e37abb4e76e585921043bc5 | [
"Apache-2.0"
] | null | null | null | flask_sqlalchemy_extended/__init__.py | luanws/flask-sqlalchemy-extended | 60080b82d5a078eb3e37abb4e76e585921043bc5 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Type
from flask_sqlalchemy import SQLAlchemy
from .model import Model
from sqlalchemy_extended.orm.scoping import scoped_session
def Column(
*args,
primary_key: bool = None,
nullable: bool = None,
unique: bool = None,
default: Any = None
): pass
def relationship(
argu... | 22.440678 | 58 | 0.685801 | 159 | 1,324 | 5.522013 | 0.496855 | 0.092255 | 0.036446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228852 | 1,324 | 58 | 59 | 22.827586 | 0.859941 | 0 | 0 | 0.038462 | 0 | 0 | 0.004532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.076923 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fea06c183c885e21b9105819fc5c05600f331380 | 7,917 | py | Python | test/test_driver.py | chriso/gauged | cda3bba2f3e92ce2fb4aa92132dcc0e689bf7976 | [
"MIT"
] | 37 | 2015-01-06T14:42:39.000Z | 2021-06-13T22:07:23.000Z | test/test_driver.py | chriso/gauged | cda3bba2f3e92ce2fb4aa92132dcc0e689bf7976 | [
"MIT"
] | 5 | 2015-03-03T23:18:39.000Z | 2015-11-05T21:27:28.000Z | test/test_driver.py | chriso/gauged | cda3bba2f3e92ce2fb4aa92132dcc0e689bf7976 | [
"MIT"
] | 3 | 2015-03-03T20:05:26.000Z | 2015-10-23T02:00:57.000Z | """
Gauged - https://github.com/chriso/gauged
Copyright 2014 (c) Chris O'Hara <cohara87@gmail.com>
"""
from hashlib import sha1
from .test_case import TestCase
class TestDriver(TestCase):
"""Test each available driver"""
# Override this with an instantiated driver
driver = None
def setUp(self):
... | 45.5 | 79 | 0.594922 | 1,053 | 7,917 | 4.324786 | 0.101614 | 0.188845 | 0.099912 | 0.071366 | 0.731445 | 0.641853 | 0.55336 | 0.527448 | 0.458718 | 0.355951 | 0 | 0.058833 | 0.23999 | 7,917 | 173 | 80 | 45.763006 | 0.698022 | 0.020715 | 0 | 0.342105 | 0 | 0 | 0.047287 | 0.003101 | 0 | 0 | 0.006718 | 0 | 0.401316 | 1 | 0.072368 | false | 0 | 0.013158 | 0 | 0.098684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fea9bcea7f62a080c6138d5c9cce550daab886bd | 363 | py | Python | config.py | Feith27/lopez | b13b7ac6ba77318d4307eff8b93224df096146af | [
"MIT"
] | 1 | 2019-09-10T03:33:35.000Z | 2019-09-10T03:33:35.000Z | config.py | Feith27/lopez | b13b7ac6ba77318d4307eff8b93224df096146af | [
"MIT"
] | 8 | 2018-07-10T00:33:50.000Z | 2018-12-06T15:46:17.000Z | config.py | Feith27/lopez | b13b7ac6ba77318d4307eff8b93224df096146af | [
"MIT"
] | 5 | 2018-05-26T02:19:04.000Z | 2018-10-04T04:02:59.000Z | sql_user = "lopez"
# for obvious reasons this should be changed
sql_pass = "johny johny telling lies"
sql_db = "lopez"
sql_host = "localhost"
sql_port = 5432
# changing the below line will void the non-existent warranty Lopez came with
# so please don't
postgresql = "postgresql://{0}:{1}@{2}:{3}/{4}".format(
sql_us... | 30.25 | 77 | 0.721763 | 60 | 363 | 4.2 | 0.683333 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029316 | 0.15427 | 363 | 11 | 78 | 33 | 0.791531 | 0.369146 | 0 | 0 | 0 | 0 | 0.333333 | 0.142222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
feb73635b98a92d97a507f310eb9db3685ee327c | 1,461 | py | Python | emailme.py | alexalemi/cancersim | c7dea3ebc2f09e450ddd79c2d253a054e561c7e8 | [
"MIT"
] | 2 | 2021-01-14T09:00:16.000Z | 2021-01-14T09:01:11.000Z | emailme.py | MurphYZY/cancersim | c7dea3ebc2f09e450ddd79c2d253a054e561c7e8 | [
"MIT"
] | null | null | null | emailme.py | MurphYZY/cancersim | c7dea3ebc2f09e450ddd79c2d253a054e561c7e8 | [
"MIT"
] | 1 | 2021-01-14T08:58:04.000Z | 2021-01-14T08:58:04.000Z | #Python script to send simple emails
import smtplib
from email.mime.text import MIMEText
import netrc
DEFAULTFROM = "youremail@example.com"
DEFAULTTO = "youremail@example.com"
DEFAULTSUBJECT = "PYTHON NOTIFICATION"
"""
Note that by default, this looks to check your netrc credentials
to use this feature, create a .net... | 26.563636 | 82 | 0.684463 | 192 | 1,461 | 5.197917 | 0.494792 | 0.024048 | 0.038076 | 0.026052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002643 | 0.223135 | 1,461 | 54 | 83 | 27.055556 | 0.876652 | 0.093087 | 0 | 0 | 0 | 0 | 0.101336 | 0.046771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.222222 | 0.111111 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2280485a1337b5d85fc1a675fc77e3eeec01644f | 4,814 | py | Python | tests/mock_api_helpers.py | kuszaj/nbpy | 122f014e08a5d55921c945c1945e8d544dea1d08 | [
"MIT"
] | 2 | 2019-02-03T10:40:22.000Z | 2019-04-29T16:51:56.000Z | tests/mock_api_helpers.py | kuszaj/nbpy | 122f014e08a5d55921c945c1945e8d544dea1d08 | [
"MIT"
] | null | null | null | tests/mock_api_helpers.py | kuszaj/nbpy | 122f014e08a5d55921c945c1945e8d544dea1d08 | [
"MIT"
] | 2 | 2018-12-07T22:07:21.000Z | 2019-04-13T00:48:57.000Z | """Mock API helper classes."""
import random
from datetime import datetime, timedelta
from functools import wraps
from nbpy import BASE_URI
from nbpy.currencies import NBPCurrency
class MockAPIHelperError(Exception):
"""Exception for HelperError class."""
pass
class MockAPIHelper(object):
"""Base helpe... | 29.175758 | 78 | 0.563357 | 548 | 4,814 | 4.85219 | 0.220803 | 0.030087 | 0.056412 | 0.033847 | 0.316284 | 0.181271 | 0.165476 | 0.165476 | 0.165476 | 0.126363 | 0 | 0.004727 | 0.296843 | 4,814 | 165 | 79 | 29.175758 | 0.780798 | 0.156834 | 0 | 0.366071 | 0 | 0 | 0.052352 | 0.01998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205357 | false | 0.008929 | 0.044643 | 0.008929 | 0.446429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
22818da62ca585f6552fa9e6d42bc2a53d53de7d | 24,657 | py | Python | mpf/tests/test_Achievement.py | pmansukhani/mpf | 0979965d24bcaba9423b43581c6a18b847b1b900 | [
"MIT"
] | null | null | null | mpf/tests/test_Achievement.py | pmansukhani/mpf | 0979965d24bcaba9423b43581c6a18b847b1b900 | [
"MIT"
] | null | null | null | mpf/tests/test_Achievement.py | pmansukhani/mpf | 0979965d24bcaba9423b43581c6a18b847b1b900 | [
"MIT"
] | null | null | null | """Test achievements."""
from mpf.tests.MpfFakeGameTestCase import MpfFakeGameTestCase
class TestAchievement(MpfFakeGameTestCase):
def getConfigFile(self):
return 'config.yaml'
def getMachinePath(self):
return 'tests/machine_files/achievement/'
def test_two_players_restart_with_keep(self... | 38.227907 | 104 | 0.670438 | 2,588 | 24,657 | 6.152628 | 0.085008 | 0.126232 | 0.032657 | 0.020285 | 0.749231 | 0.695095 | 0.628211 | 0.613955 | 0.55737 | 0.525404 | 0 | 0.027265 | 0.216085 | 24,657 | 644 | 105 | 38.287267 | 0.796523 | 0.060145 | 0 | 0.643777 | 0 | 0 | 0.211002 | 0.092462 | 0 | 0 | 0 | 0 | 0.534335 | 1 | 0.027897 | false | 0 | 0.002146 | 0.004292 | 0.036481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
228513aa7eeb634893651f8010277b3f1dc94954 | 236 | py | Python | 09 - Comando For com Range/ex002.py | Ivoneideduarte/python-para-raspberryPi | 3ed5c78b8c3277a350c696216a664c4b827ea46e | [
"MIT"
] | 3 | 2021-04-22T18:11:31.000Z | 2021-08-17T12:06:22.000Z | 09 - Comando For com Range/ex002.py | Ivoneideduarte/python-para-raspberryPi | 3ed5c78b8c3277a350c696216a664c4b827ea46e | [
"MIT"
] | null | null | null | 09 - Comando For com Range/ex002.py | Ivoneideduarte/python-para-raspberryPi | 3ed5c78b8c3277a350c696216a664c4b827ea46e | [
"MIT"
] | null | null | null | lista = ['Flávio', 'José', 'Pedro']
# print(lista)
for item in range(len(lista)):
# print('Item número', item, 'Contém', lista[item])
print('Item nº {} contém {}'.format(item, lista[item]))
lista = list(range(21))
print(lista) | 26.222222 | 59 | 0.627119 | 33 | 236 | 4.484848 | 0.484848 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.152542 | 236 | 9 | 60 | 26.222222 | 0.73 | 0.262712 | 0 | 0 | 0 | 0 | 0.203488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
2285bc0089148079755cbdca5ec897cef0c0f9d3 | 2,337 | py | Python | pychron/pipeline/nodes/detector_yield.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | pychron/pipeline/nodes/detector_yield.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | pychron/pipeline/nodes/detector_yield.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | # ===============================================================================
# Copyright 2016 ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | 33.385714 | 81 | 0.610612 | 259 | 2,337 | 5.409266 | 0.494208 | 0.042827 | 0.03212 | 0.022841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007642 | 0.216089 | 2,337 | 69 | 82 | 33.869565 | 0.757096 | 0.325631 | 0 | 0 | 0 | 0 | 0.068634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
228895f43f5f0acfe303cf073b18db4294327040 | 512 | py | Python | controllers/account/account_base.py | PatrickLaban/OnlineCaucus | 50a767f2e4ac28fa79748cc3773970ef4b2c6e10 | [
"MIT"
] | null | null | null | controllers/account/account_base.py | PatrickLaban/OnlineCaucus | 50a767f2e4ac28fa79748cc3773970ef4b2c6e10 | [
"MIT"
] | null | null | null | controllers/account/account_base.py | PatrickLaban/OnlineCaucus | 50a767f2e4ac28fa79748cc3773970ef4b2c6e10 | [
"MIT"
] | null | null | null | import google.appengine.api.users
from controllers.handler_base import BaseHandler
class AccountBaseHandler(BaseHandler):
def __init__(self, request, response):
super(AccountBaseHandler, self).__init__(request, response)
if self.user_account is None:
login_url = google.appengine.api.u... | 36.571429 | 94 | 0.722656 | 60 | 512 | 5.866667 | 0.533333 | 0.127841 | 0.153409 | 0.196023 | 0.181818 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183594 | 512 | 13 | 95 | 39.384615 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.021484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.5 | 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 |
228a7a248cde8be34bfa8db31f3326bb047356bc | 2,742 | py | Python | documentation/idioms/dynamic_analysis/maec_dynamic_analysis.py | dzbeck/MAECProject.github.io | f83f79947b6e94aac91d2d93cd0019a7b47b5933 | [
"BSD-3-Clause"
] | 11 | 2015-08-01T03:45:23.000Z | 2022-01-14T02:51:29.000Z | documentation/idioms/dynamic_analysis/maec_dynamic_analysis.py | dzbeck/MAECProject.github.io | f83f79947b6e94aac91d2d93cd0019a7b47b5933 | [
"BSD-3-Clause"
] | 3 | 2017-03-27T06:27:32.000Z | 2020-08-27T16:57:27.000Z | documentation/idioms/dynamic_analysis/maec_dynamic_analysis.py | dzbeck/MAECProject.github.io | f83f79947b6e94aac91d2d93cd0019a7b47b5933 | [
"BSD-3-Clause"
] | 4 | 2015-09-08T20:47:09.000Z | 2021-09-07T19:09:37.000Z | # Code for MAEC Dynamic Analysis Idiom
from maec.package.package import Package
from maec.package.malware_subject import MalwareSubject
from maec.package.analysis import Analysis
from maec.bundle.bundle import Bundle
from maec.bundle.malware_action import MalwareAction
from cybox.core import Object, AssociatedObject, A... | 36.56 | 101 | 0.820569 | 362 | 2,742 | 6.046961 | 0.287293 | 0.041115 | 0.057561 | 0.08497 | 0.212426 | 0.145272 | 0.105984 | 0.105984 | 0 | 0 | 0 | 0.036217 | 0.093727 | 2,742 | 74 | 102 | 37.054054 | 0.844668 | 0.194019 | 0 | 0 | 0 | 0 | 0.161892 | 0.10141 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.160714 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2292c4bd566a002debb00281158316589e76e007 | 1,456 | py | Python | rts/core/msts.py | rubis-lab/rts | 42ea3709cfa4e9ed0608d779b87349550890accd | [
"MIT"
] | null | null | null | rts/core/msts.py | rubis-lab/rts | 42ea3709cfa4e9ed0608d779b87349550890accd | [
"MIT"
] | null | null | null | rts/core/msts.py | rubis-lab/rts | 42ea3709cfa4e9ed0608d779b87349550890accd | [
"MIT"
] | null | null | null | from rts.op import tsutil
class MultiSegmentTaskSet(object):
cnt = 0
def __init__(self, **kwargs):
self.id = kwargs.get('id', type(self).cnt)
self.popt_strategy = kwargs.get('popt_strategy', 'single')
self.overhead = kwargs.get('overhead', 0.0)
self.variance = kwargs.get('vari... | 23.868852 | 77 | 0.572802 | 195 | 1,456 | 3.958974 | 0.297436 | 0.090674 | 0.142487 | 0.031088 | 0.03886 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009862 | 0.303571 | 1,456 | 60 | 78 | 24.266667 | 0.751479 | 0 | 0 | 0.068182 | 0 | 0 | 0.039835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.022727 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2293c11b1226c79b3fdaa5d0c06e47f6d19ca9a4 | 7,467 | py | Python | auth/models.py | WizBoom/Apate | b7bc2fe94cca18717e3f87bd33a3485c3e3f1998 | [
"MIT"
] | null | null | null | auth/models.py | WizBoom/Apate | b7bc2fe94cca18717e3f87bd33a3485c3e3f1998 | [
"MIT"
] | 83 | 2018-02-24T16:02:46.000Z | 2018-05-09T22:29:35.000Z | auth/models.py | WizBoom/Apate | b7bc2fe94cca18717e3f87bd33a3485c3e3f1998 | [
"MIT"
] | null | null | null | from .shared import Database, SharedInfo
from datetime import datetime
# -- Connections -- #
permissionConnection = Database.Table(
'PermissionConnection',
Database.Column('role_id', Database.Integer, Database.ForeignKey('Roles.id')),
Database.Column('permission_id', Database.Integer, Database.ForeignKey('... | 36.42439 | 130 | 0.686353 | 852 | 7,467 | 5.841549 | 0.144366 | 0.101266 | 0.141451 | 0.09564 | 0.442234 | 0.386578 | 0.336548 | 0.289532 | 0.259996 | 0.24774 | 0 | 0 | 0.195795 | 7,467 | 204 | 131 | 36.602941 | 0.828809 | 0.026785 | 0 | 0.361842 | 0 | 0 | 0.095396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164474 | false | 0 | 0.013158 | 0.098684 | 0.671053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2293f8f7abdf7de154f7bf62bd1ed8aa3eb09fe0 | 1,836 | py | Python | sdk/python/pulumi_databricks/get_zones.py | XBeg9/pulumi-databricks | fe89e16c499034e1adc39325823ed6fcf90c2df0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_databricks/get_zones.py | XBeg9/pulumi-databricks | fe89e16c499034e1adc39325823ed6fcf90c2df0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_databricks/get_zones.py | XBeg9/pulumi-databricks | fe89e16c499034e1adc39325823ed6fcf90c2df0 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class GetZone... | 32.785714 | 100 | 0.656318 | 227 | 1,836 | 5.048458 | 0.440529 | 0.086387 | 0.039267 | 0.078534 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000727 | 0.250545 | 1,836 | 55 | 101 | 33.381818 | 0.832122 | 0.179739 | 0 | 0 | 1 | 0 | 0.120863 | 0.02446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.361111 | 0 | 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 |
2297826da4ab6c5c7d8de1eb1c9e46764d123f2f | 8,339 | py | Python | fit_1D_mcmc/plt_2D_mcmc_grid.py | crpurcell/pythonFitting | 54315e336593f7f105f516766fb323662eadd5e3 | [
"MIT"
] | 1 | 2021-10-11T06:05:56.000Z | 2021-10-11T06:05:56.000Z | fit_1D_mcmc/plt_2D_mcmc_grid.py | crpurcell/pythonFitting | 54315e336593f7f105f516766fb323662eadd5e3 | [
"MIT"
] | null | null | null | fit_1D_mcmc/plt_2D_mcmc_grid.py | crpurcell/pythonFitting | 54315e336593f7f105f516766fb323662eadd5e3 | [
"MIT"
] | 4 | 2018-08-08T10:38:53.000Z | 2020-08-08T13:41:07.000Z | #!/usr/bin/env python
#=============================================================================#
# #
# NAME: plt_2D_mcmc.py #
# ... | 33.223108 | 79 | 0.520206 | 969 | 8,339 | 4.423117 | 0.341589 | 0.020532 | 0.016799 | 0.012133 | 0.110126 | 0.041531 | 0.020999 | 0.020999 | 0 | 0 | 0 | 0.034788 | 0.269217 | 8,339 | 250 | 80 | 33.356 | 0.668526 | 0.276892 | 0 | 0.041096 | 0 | 0 | 0.088745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082192 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22a13ba7fd285c323224734e290e137febffc4c0 | 4,002 | py | Python | topicsketch/apriori.py | zengjichuan/topicsketch | 87583224a8f8a01f9f3075197e13380c3dffbf0c | [
"Apache-2.0"
] | null | null | null | topicsketch/apriori.py | zengjichuan/topicsketch | 87583224a8f8a01f9f3075197e13380c3dffbf0c | [
"Apache-2.0"
] | null | null | null | topicsketch/apriori.py | zengjichuan/topicsketch | 87583224a8f8a01f9f3075197e13380c3dffbf0c | [
"Apache-2.0"
] | 1 | 2020-10-16T08:31:31.000Z | 2020-10-16T08:31:31.000Z | __author__ = 'Wei Xie'
__email__ = 'linegroup3@gmail.com'
__affiliation__ = 'Living Analytics Research Centre, Singapore Management University'
__website__ = 'http://mysmu.edu/phdis2012/wei.xie.2012'
class Transaction:
# each transaction contains a set of words, a group id and an in-group index
def __init__... | 26.328947 | 85 | 0.584708 | 522 | 4,002 | 4.348659 | 0.210728 | 0.02467 | 0.102203 | 0.112775 | 0.367401 | 0.210573 | 0.103084 | 0.072247 | 0.072247 | 0.028194 | 0 | 0.018761 | 0.294103 | 4,002 | 152 | 86 | 26.328947 | 0.784779 | 0.089955 | 0 | 0.132075 | 0 | 0 | 0.046819 | 0.006334 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22a179c65c913525361c9336a290bc00d4e7b414 | 1,818 | py | Python | main.py | arrickx/RockPaperScissors | 87fcb3f94eaff4b8e0bb30099c104af8f12a75a7 | [
"MIT"
] | null | null | null | main.py | arrickx/RockPaperScissors | 87fcb3f94eaff4b8e0bb30099c104af8f12a75a7 | [
"MIT"
] | null | null | null | main.py | arrickx/RockPaperScissors | 87fcb3f94eaff4b8e0bb30099c104af8f12a75a7 | [
"MIT"
] | null | null | null | import random
import pandas as pd
# Initialize the dictionary for different outcome.
dict = {"Rock": [0, 0, 0], "Paper": [0, 0, 0], "Scissors": [0, 0, 0]}
# User input integer to test how many trails to play with.
while True:
try:
val = int(input("How many times do you want to run? \n"))
if(val <=... | 33.054545 | 77 | 0.630363 | 256 | 1,818 | 4.480469 | 0.371094 | 0.010462 | 0.02354 | 0.031386 | 0.102005 | 0.102005 | 0.102005 | 0.102005 | 0.102005 | 0.102005 | 0 | 0.033922 | 0.221672 | 1,818 | 54 | 78 | 33.666667 | 0.775972 | 0.160066 | 0 | 0.095238 | 0 | 0 | 0.281394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22a2cfeef7e66acc9f02c43c1910fd2694beb8ae | 1,943 | py | Python | create_sty.py | ajiahamed/latex-fontawesome5 | 11f5986c5702044a38b081ab9d668dd20df7b933 | [
"MIT"
] | 20 | 2018-03-16T12:28:52.000Z | 2022-02-26T16:13:48.000Z | create_sty.py | ajiahamed/latex-fontawesome5 | 11f5986c5702044a38b081ab9d668dd20df7b933 | [
"MIT"
] | 1 | 2018-07-19T17:24:56.000Z | 2018-07-20T05:38:51.000Z | create_sty.py | ajiahamed/latex-fontawesome5 | 11f5986c5702044a38b081ab9d668dd20df7b933 | [
"MIT"
] | 20 | 2018-10-21T21:51:35.000Z | 2022-03-27T14:30:55.000Z | import os
import json
# download zip file from https://fontawesome.com/ and extract into fontawesome directory.
INPUT_FILE = os.path.join("fontawesome", "advanced-options", "metadata", "icons.json")
OUTPUT_FILE = 'fontawesome5.sty'
OUTPUT_HEADER = r'''
% Identify this package.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackag... | 31.33871 | 102 | 0.654143 | 246 | 1,943 | 5.077236 | 0.45935 | 0.061649 | 0.038431 | 0.048038 | 0.208167 | 0.208167 | 0.163331 | 0.060849 | 0 | 0 | 0 | 0.025064 | 0.199177 | 1,943 | 62 | 103 | 31.33871 | 0.777635 | 0.044776 | 0 | 0.145455 | 0 | 0.018182 | 0.6469 | 0.22965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.036364 | 0 | 0.054545 | 0 | 0 | 0 | 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 |
22a5fd6803c0ad371580d8f3410f27a2e41ae8a0 | 2,255 | py | Python | cutwords.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | cutwords.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | cutwords.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#coding:utf-8
import mybaselib
import logging
import jieba
import jieba.analyse
import numpy as np
import csv
import sys
import stat
import os
reload(sys)
sys.setdefaultencoding('utf-8')
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
def walktree(dirname, callback, userdata):
... | 26.529412 | 79 | 0.644789 | 299 | 2,255 | 4.77592 | 0.408027 | 0.019608 | 0.035714 | 0.042017 | 0.254902 | 0.254902 | 0.235294 | 0.235294 | 0.235294 | 0.235294 | 0 | 0.005042 | 0.208426 | 2,255 | 84 | 80 | 26.845238 | 0.794958 | 0.170288 | 0 | 0.31746 | 0 | 0 | 0.091644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.142857 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22a825b6d851bbca2745030b4fe5c8ba9031529b | 426 | py | Python | setup.py | voidpp/hdd-stat | a074add4f833310e643a28519e6b739cd576adc4 | [
"MIT"
] | null | null | null | setup.py | voidpp/hdd-stat | a074add4f833310e643a28519e6b739cd576adc4 | [
"MIT"
] | null | null | null | setup.py | voidpp/hdd-stat | a074add4f833310e643a28519e6b739cd576adc4 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = "hdd-stat",
description = "",
version = "1.2.0",
author = 'Lajos Santa',
author_email = 'santa.lajos@gmail.com',
url = 'https://github.com/voidpp/hdd-stat',
install_requires = [
"prettytable~=0.7",
"psutil~=5.6",
... | 20.285714 | 47 | 0.546948 | 49 | 426 | 4.673469 | 0.693878 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029316 | 0.279343 | 426 | 20 | 48 | 21.3 | 0.716612 | 0 | 0 | 0.111111 | 0 | 0 | 0.301176 | 0.049412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
22b229862a7891c4432d46ddb44a3bf6edef5ea3 | 2,854 | py | Python | skelshop/embed/manual.py | cstenkamp/skelshop | 6f4b26e28d4aa1050c8c3c15edd39ae072baca54 | [
"MIT"
] | 2 | 2020-08-12T11:24:43.000Z | 2020-08-13T02:29:47.000Z | skelshop/embed/manual.py | cstenkamp/skelshop | 6f4b26e28d4aa1050c8c3c15edd39ae072baca54 | [
"MIT"
] | 51 | 2020-07-13T06:29:30.000Z | 2021-03-17T17:39:55.000Z | skelshop/embed/manual.py | cstenkamp/skelshop | 6f4b26e28d4aa1050c8c3c15edd39ae072baca54 | [
"MIT"
] | 1 | 2020-11-09T14:41:38.000Z | 2020-11-09T14:41:38.000Z | from math import atan2, pi
from typing import Optional, Tuple, cast
import numpy as np
from numpy.linalg import norm
from skelshop.pose import PoseBase
from skelshop.skelgraphs.openpose import BODY_ALL
SIZE_REF_ORDER = [
("body", "trunk"),
("body", "shoulders"),
("body", "left arm"),
("body", "right ... | 29.122449 | 80 | 0.648914 | 415 | 2,854 | 4.255422 | 0.298795 | 0.033975 | 0.020385 | 0.033975 | 0.134768 | 0.064553 | 0.033975 | 0.033975 | 0.033975 | 0.033975 | 0 | 0.04304 | 0.234758 | 2,854 | 97 | 81 | 29.42268 | 0.765568 | 0.039594 | 0 | 0.121622 | 0 | 0 | 0.038363 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.108108 | false | 0 | 0.081081 | 0.027027 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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.