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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db7af434273fc1e849cc0029d0270ce32e236c96 | 3,474 | py | Python | notion_scholar/config.py | delphinas/notion-scholar | ab8b8f4edccdb935144283bfdaf3d9db47a5e287 | [
"Apache-2.0"
] | null | null | null | notion_scholar/config.py | delphinas/notion-scholar | ab8b8f4edccdb935144283bfdaf3d9db47a5e287 | [
"Apache-2.0"
] | null | null | null | notion_scholar/config.py | delphinas/notion-scholar | ab8b8f4edccdb935144283bfdaf3d9db47a5e287 | [
"Apache-2.0"
] | null | null | null | import shutil
import keyring # https://askubuntu.com/a/881212 Solve issues of keyring with WSL
from typing import Any
from typing import Dict
from typing import List
from typing import Tuple
from typing import Optional
from pathlib import Path
from configparser import ConfigParser
from platformdirs import user_config_... | 31.87156 | 113 | 0.685953 | 466 | 3,474 | 4.901288 | 0.236052 | 0.048161 | 0.033713 | 0.045534 | 0.307356 | 0.269702 | 0.186515 | 0.158494 | 0.158494 | 0.158494 | 0 | 0.002161 | 0.200921 | 3,474 | 108 | 114 | 32.166667 | 0.820605 | 0.090386 | 0 | 0.197368 | 0 | 0 | 0.140724 | 0.006989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.052632 | 0.144737 | 0.013158 | 0.276316 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db7c761190af1ddca21991947917c2d9dbfaf832 | 554 | py | Python | graphics_test.py | BenAAndrew/VolumeController | 44566694e6e98de5708688b36b246a8891322bfd | [
"MIT"
] | null | null | null | graphics_test.py | BenAAndrew/VolumeController | 44566694e6e98de5708688b36b246a8891322bfd | [
"MIT"
] | null | null | null | graphics_test.py | BenAAndrew/VolumeController | 44566694e6e98de5708688b36b246a8891322bfd | [
"MIT"
] | 1 | 2022-01-23T07:42:54.000Z | 2022-01-23T07:42:54.000Z | import os
import serial
import imageio
import time
serial = serial.Serial("COM3", 9600, timeout=1)
time.sleep(5)
def is_done():
return serial.read() == b'd'
def send_icon(icon_path):
image = imageio.imread(icon_path)
for row in image:
serial.write(bytes(row))
while not is_done():
pass... | 19.103448 | 47 | 0.658845 | 84 | 554 | 4.22619 | 0.5 | 0.050704 | 0.067606 | 0.078873 | 0.129577 | 0.129577 | 0 | 0 | 0 | 0 | 0 | 0.015766 | 0.198556 | 554 | 28 | 48 | 19.785714 | 0.783784 | 0 | 0 | 0.173913 | 0 | 0 | 0.097473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.086957 | 0.173913 | 0.043478 | 0.347826 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db7e08d4528c5a9b1972a6a406d7c2cfad441b8d | 2,341 | py | Python | examples/chatbox-non-ES/client.py | irmen/Pyro3 | 5bd531088d9a11ec83556a0429f18df6cb5cd437 | [
"MIT"
] | 3 | 2018-01-13T20:50:41.000Z | 2020-02-24T13:35:08.000Z | examples/chatbox-non-ES/client.py | irmen/Pyro3 | 5bd531088d9a11ec83556a0429f18df6cb5cd437 | [
"MIT"
] | null | null | null | examples/chatbox-non-ES/client.py | irmen/Pyro3 | 5bd531088d9a11ec83556a0429f18df6cb5cd437 | [
"MIT"
] | 6 | 2015-03-21T20:34:05.000Z | 2021-06-08T04:04:33.000Z | #!/usr/bin/env python
from server import CHAT_SERVER_NAME
from threading import Thread
import Pyro.core
from Pyro.errors import NamingError, ConnectionClosedError
# Chat client.
# Uses main thread for printing incoming event server messages (the chat messages!)
# and another to read user input and publish this on the... | 29.632911 | 83 | 0.720205 | 321 | 2,341 | 5.17134 | 0.383178 | 0.038554 | 0.036145 | 0.034337 | 0.089157 | 0.061446 | 0.061446 | 0.061446 | 0 | 0 | 0 | 0.001518 | 0.155916 | 2,341 | 78 | 84 | 30.012821 | 0.838563 | 0.112345 | 0 | 0.045455 | 0 | 0 | 0.183792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.060606 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db7e961cd08c6dedcae59dbccee01239860ea0b2 | 488 | py | Python | multi_db_framework_api/oracle_db/migrations/0002_auto_20190627_1541.py | justMuriithi/multi-db-framework_api | 82bcf4063a63bca58c904ab921de6709be31aed7 | [
"MIT"
] | null | null | null | multi_db_framework_api/oracle_db/migrations/0002_auto_20190627_1541.py | justMuriithi/multi-db-framework_api | 82bcf4063a63bca58c904ab921de6709be31aed7 | [
"MIT"
] | 6 | 2019-12-04T23:30:10.000Z | 2021-06-09T18:04:15.000Z | multi_db_framework_api/oracle_db/migrations/0002_auto_20190627_1541.py | justMuriithi/multi-db-framework_api | 82bcf4063a63bca58c904ab921de6709be31aed7 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-06-27 15:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('oracle_db', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='xxtmp_po_lines... | 24.4 | 114 | 0.651639 | 60 | 488 | 5.116667 | 0.616667 | 0.078176 | 0.091205 | 0.143322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050802 | 0.233607 | 488 | 19 | 115 | 25.684211 | 0.770053 | 0.092213 | 0 | 0 | 1 | 0 | 0.165533 | 0.058957 | 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 |
db872180c6591cbb6931bb003a73bba3eafa8054 | 11,584 | py | Python | front-end/qemu-2.3/scripts/qapi-types.py | zheli-1/crete-dev | a226c245f51347b88ba9a95448a694bf1997a080 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2016-11-03T06:48:16.000Z | 2021-03-30T07:22:41.000Z | front-end/qemu-2.3/scripts/qapi-types.py | zheli-1/crete-dev | a226c245f51347b88ba9a95448a694bf1997a080 | [
"BSD-2-Clause-FreeBSD"
] | 46 | 2016-11-16T02:07:38.000Z | 2020-04-01T06:17:33.000Z | front-end/qemu-2.3/scripts/qapi-types.py | zheli-1/crete-dev | a226c245f51347b88ba9a95448a694bf1997a080 | [
"BSD-2-Clause-FreeBSD"
] | 13 | 2016-11-06T00:41:27.000Z | 2020-06-01T07:18:48.000Z | #
# QAPI types generator
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
#
# This work is licensed under the terms of the GNU GPL, version 2.
# See the COPYING file in the top-level directory.
from ordereddict import OrderedDict
from qapi import *
import sys
import os
import getopt
... | 24.542373 | 80 | 0.596081 | 1,488 | 11,584 | 4.448925 | 0.178091 | 0.021752 | 0.040181 | 0.02432 | 0.450302 | 0.369789 | 0.293202 | 0.193807 | 0.16435 | 0.140786 | 0 | 0.003392 | 0.261913 | 11,584 | 471 | 81 | 24.59448 | 0.770877 | 0.064054 | 0 | 0.414439 | 0 | 0 | 0.278876 | 0.055812 | 0 | 0 | 0 | 0 | 0.005348 | 0 | null | null | 0 | 0.018717 | null | null | 0.002674 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db87ab500991a10a86d288c5352aaa2f586c19ef | 1,510 | py | Python | test/vptree_test.py | Yomguithereal/phylactery | a00372707846e6da5d740a89f5714e81aebfad24 | [
"MIT"
] | 2 | 2019-01-12T06:33:38.000Z | 2019-03-01T21:36:07.000Z | test/vptree_test.py | Yomguithereal/phylactery | a00372707846e6da5d740a89f5714e81aebfad24 | [
"MIT"
] | 1 | 2019-11-15T15:13:57.000Z | 2019-11-15T15:13:57.000Z | test/vptree_test.py | Yomguithereal/phylactery | a00372707846e6da5d740a89f5714e81aebfad24 | [
"MIT"
] | 1 | 2019-11-27T18:14:12.000Z | 2019-11-27T18:14:12.000Z | # =============================================================================
# Phylactery VPTree Unit Tests
# =============================================================================
from Levenshtein import distance as levenshtein
from phylactery import VPTree
WORDS = [
'book',
'back',
'bock',
... | 23.230769 | 79 | 0.522517 | 162 | 1,510 | 4.716049 | 0.283951 | 0.070681 | 0.102094 | 0.172775 | 0.64267 | 0.603403 | 0.603403 | 0.430628 | 0.430628 | 0.430628 | 0 | 0.019742 | 0.228477 | 1,510 | 64 | 80 | 23.59375 | 0.636052 | 0.121854 | 0 | 0.3125 | 0 | 0 | 0.121029 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
db8b995ffa9d815a02dbd000d1e64c075d2fe618 | 512 | py | Python | distances/migrations/0020_auto_20170709_1242.py | tkettu/rokego | 95c89c45f69604bb407927a1f684f90cc51dd878 | [
"MIT"
] | null | null | null | distances/migrations/0020_auto_20170709_1242.py | tkettu/rokego | 95c89c45f69604bb407927a1f684f90cc51dd878 | [
"MIT"
] | null | null | null | distances/migrations/0020_auto_20170709_1242.py | tkettu/rokego | 95c89c45f69604bb407927a1f684f90cc51dd878 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-09 12:42
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('distances', '0019_auto_20170709_1514'),
]
operations = [
migr... | 23.272727 | 93 | 0.630859 | 58 | 512 | 5.413793 | 0.758621 | 0.025478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127604 | 0.25 | 512 | 21 | 94 | 24.380952 | 0.690104 | 0.128906 | 0 | 0 | 1 | 0 | 0.103837 | 0.051919 | 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 |
db8d0ab179a3c645363574ef8bb2aecd3fd0cb05 | 278 | py | Python | my_test/test.py | wenxuanye/actions-bot | 2b78cf9ca88d30a9e297205cb7917007c242e9a9 | [
"Apache-2.0"
] | null | null | null | my_test/test.py | wenxuanye/actions-bot | 2b78cf9ca88d30a9e297205cb7917007c242e9a9 | [
"Apache-2.0"
] | null | null | null | my_test/test.py | wenxuanye/actions-bot | 2b78cf9ca88d30a9e297205cb7917007c242e9a9 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def draw_pic():
x = np.linspace(0, 10, 100)
y = np.sin(x)
plt.plot(x, y)
# save the figure to a my_test
plt.savefig('my_test/my_test.png')
plt.show()
draw_pic() | 21.384615 | 38 | 0.665468 | 52 | 278 | 3.461538 | 0.615385 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.223022 | 278 | 13 | 39 | 21.384615 | 0.805556 | 0.100719 | 0 | 0 | 0 | 0 | 0.076305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
db92bdd4d679a4fcd4e4f781d7b0df5290adab55 | 1,722 | py | Python | caffe2/python/operator_test/conditional_test.py | KevinKecc/caffe2 | a2b6c6e2f0686358a84277df65e9489fb7d9ddb2 | [
"Apache-2.0"
] | 585 | 2015-08-10T02:48:52.000Z | 2021-12-01T08:46:59.000Z | caffe2/python/operator_test/conditional_test.py | KevinKecc/caffe2 | a2b6c6e2f0686358a84277df65e9489fb7d9ddb2 | [
"Apache-2.0"
] | 27 | 2018-04-14T06:44:22.000Z | 2018-08-01T18:02:39.000Z | caffe2/python/operator_test/conditional_test.py | KevinKecc/caffe2 | a2b6c6e2f0686358a84277df65e9489fb7d9ddb2 | [
"Apache-2.0"
] | 183 | 2015-08-10T02:49:04.000Z | 2021-12-01T08:47:13.000Z | # Copyright (c) 2016-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 38.266667 | 78 | 0.666086 | 235 | 1,722 | 4.731915 | 0.523404 | 0.053957 | 0.043165 | 0.048561 | 0.142986 | 0.125899 | 0.125899 | 0.125899 | 0.071942 | 0.071942 | 0 | 0.02029 | 0.198606 | 1,722 | 44 | 79 | 39.136364 | 0.785507 | 0.327526 | 0 | 0 | 0 | 0 | 0.035647 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
db930607b1e0aab9f048ff3b55e25aab235b0f3c | 710 | py | Python | example/test/LB_set.py | Michael8968/skulpt | 15956a60398fac92ee1dab25bf661ffc003b2eaf | [
"MIT"
] | 2 | 2021-12-18T06:34:26.000Z | 2022-01-05T05:08:47.000Z | example/test/LB_set.py | Michael8968/skulpt | 15956a60398fac92ee1dab25bf661ffc003b2eaf | [
"MIT"
] | null | null | null | example/test/LB_set.py | Michael8968/skulpt | 15956a60398fac92ee1dab25bf661ffc003b2eaf | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import random
enemy = None
def move(anjian, anuo):
if anjian == "up":
anuo.movedown()
if anjian == "down":
anuo.moveup()
if anjian == "left":
anuo.moveright()
if anjian == "right":
anuo.moveleft()
# if anjian == "up":
... | 15.777778 | 46 | 0.51831 | 87 | 710 | 4.149425 | 0.448276 | 0.177285 | 0.055402 | 0.077562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014403 | 0.315493 | 710 | 44 | 47 | 16.136364 | 0.728395 | 0.391549 | 0 | 0 | 0 | 0 | 0.035971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db994e24177e0ce74be9113c80b0eece62876796 | 6,394 | py | Python | murpy/compiletools/__init__.py | eisterman/MurPy | 06f6eee07cee7ac51230a81bacf159af4b8a7517 | [
"MIT"
] | 3 | 2019-10-10T10:34:38.000Z | 2021-02-16T21:06:45.000Z | murpy/compiletools/__init__.py | eisterman/BFPyCompiler | 06f6eee07cee7ac51230a81bacf159af4b8a7517 | [
"MIT"
] | null | null | null | murpy/compiletools/__init__.py | eisterman/BFPyCompiler | 06f6eee07cee7ac51230a81bacf159af4b8a7517 | [
"MIT"
] | null | null | null | from functools import wraps
from copy import copy
from collections import OrderedDict
from ..commands import InterfaceObj
from ..core.objects.memory import StackObj, RegObj
def BeforeParse(f):
@wraps(f)
def wrapper(inst, *args, **kwargs):
# noinspection PyProtectedMember
if inst._parsed is Tr... | 30.447619 | 91 | 0.619487 | 687 | 6,394 | 5.703057 | 0.307132 | 0.023226 | 0.02144 | 0.017356 | 0.205207 | 0.16488 | 0.126085 | 0.126085 | 0.126085 | 0.101072 | 0 | 0.000446 | 0.299343 | 6,394 | 209 | 92 | 30.593301 | 0.874107 | 0.288865 | 0 | 0.274194 | 0 | 0 | 0.033611 | 0 | 0 | 0 | 0 | 0.014354 | 0.024194 | 1 | 0.193548 | false | 0 | 0.040323 | 0.024194 | 0.403226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
db9d026c121289cd3e6fc51cd8dae97e82741e58 | 1,187 | py | Python | OmarSantaCruz.py | gezav88/repo-to-fork | 54eab90d55aa1f7c1b27df1797614b3e08fb71ec | [
"Apache-2.0"
] | null | null | null | OmarSantaCruz.py | gezav88/repo-to-fork | 54eab90d55aa1f7c1b27df1797614b3e08fb71ec | [
"Apache-2.0"
] | null | null | null | OmarSantaCruz.py | gezav88/repo-to-fork | 54eab90d55aa1f7c1b27df1797614b3e08fb71ec | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
# In[4]:
def fib(n):
a, b = 0,1
while a < n:
print(a)
a, b = b, a + b
# In[8]:
def primos(n):
numbers = [True, True] + [True] * (n-1)
last_prime_number = 2
i = last_prime_number
while last_prime_number**2 <= n:
... | 12.902174 | 78 | 0.475147 | 165 | 1,187 | 3.29697 | 0.30303 | 0.132353 | 0.220588 | 0.117647 | 0.077206 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.398484 | 1,187 | 91 | 79 | 13.043956 | 0.722689 | 0.079191 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.190476 | 0.02381 | 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 |
db9db2fd172e21493081d9c03b8c41bb3dcf01c6 | 402 | py | Python | setup.py | M-Gregoire/usb_manager | 99f48ccf78b7e8fc296dc74a75850815f7017698 | [
"MIT"
] | 5 | 2018-02-05T09:36:32.000Z | 2021-01-19T09:05:33.000Z | setup.py | M-Gregoire/usb_manager | 99f48ccf78b7e8fc296dc74a75850815f7017698 | [
"MIT"
] | 3 | 2018-02-05T09:40:23.000Z | 2021-02-19T18:15:21.000Z | setup.py | M-Gregoire/usb_manager | 99f48ccf78b7e8fc296dc74a75850815f7017698 | [
"MIT"
] | 2 | 2018-02-05T09:37:25.000Z | 2018-10-01T12:08:34.000Z | from setuptools import setup
setup(
name='usb_manager',
version='1.0.0',
packages=['usb_manager'],
install_requires=[
'pyserial',
],
url='https://github.com/M-Gregoire/usb_manager',
keywords=['usb'],
classifiers=[],
author='Grégoire Martinache',
author_email='gregoire@ma... | 23.647059 | 64 | 0.654229 | 46 | 402 | 5.608696 | 0.76087 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009288 | 0.196517 | 402 | 16 | 65 | 25.125 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.415423 | 0.057214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db9df99e55823e4513d894c8e87e49e8fe44f404 | 597 | py | Python | apps/documentos/views.py | CleitonCandiotto/gestao_rh | ee8d6a25bb97f43d96b5e29e6e938891d82b2fe3 | [
"MIT"
] | null | null | null | apps/documentos/views.py | CleitonCandiotto/gestao_rh | ee8d6a25bb97f43d96b5e29e6e938891d82b2fe3 | [
"MIT"
] | null | null | null | apps/documentos/views.py | CleitonCandiotto/gestao_rh | ee8d6a25bb97f43d96b5e29e6e938891d82b2fe3 | [
"MIT"
] | null | null | null | from dataclasses import field
from django.shortcuts import render
from django.views.generic.edit import UpdateView, DeleteView, CreateView
from .models import Documento
class DocumentoCreateView(CreateView):
model = Documento
fields = ['descricao', 'documento']
template_name = 'documento_create.html'
... | 22.961538 | 72 | 0.683417 | 68 | 597 | 5.882353 | 0.617647 | 0.05 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224456 | 597 | 25 | 73 | 23.88 | 0.863931 | 0 | 0 | 0 | 0 | 0 | 0.089226 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dba0b84d5597eb36247a29a96021f58c5fa95f01 | 865 | py | Python | fabrique/users/admin.py | vadikam100500/interviews | eee93831bad022e68a68a541c8eb5765c16a753b | [
"MIT"
] | null | null | null | fabrique/users/admin.py | vadikam100500/interviews | eee93831bad022e68a68a541c8eb5765c16a753b | [
"MIT"
] | null | null | null | fabrique/users/admin.py | vadikam100500/interviews | eee93831bad022e68a68a541c8eb5765c16a753b | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import Group
User = get_user_model()
@admin.register(User)
class CustomUserAdmin(UserAdmin):
add_fieldsets = (
(None, {
'classes': ('... | 26.212121 | 70 | 0.56763 | 86 | 865 | 5.546512 | 0.453488 | 0.083857 | 0.142558 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0032 | 0.277457 | 865 | 32 | 71 | 27.03125 | 0.76 | 0 | 0 | 0.16 | 0 | 0 | 0.197688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0.16 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dba30eb74396d1783f03735b8b7c767f932d07a7 | 295 | py | Python | writer/project-basedir/posts/migrations/0004_delete_emailsub.py | alevchuk/biostar-central | 4f6062bf75b72eb3aad425518a9d566c9a2d100f | [
"MIT"
] | 1 | 2021-09-12T15:41:19.000Z | 2021-09-12T15:41:19.000Z | writer/project-basedir/posts/migrations/0004_delete_emailsub.py | alevchuk/biostar-central | 4f6062bf75b72eb3aad425518a9d566c9a2d100f | [
"MIT"
] | 20 | 2016-11-01T22:20:12.000Z | 2016-11-10T20:50:58.000Z | writer/project-basedir/posts/migrations/0004_delete_emailsub.py | alevchuk/biostar-central | 4f6062bf75b72eb3aad425518a9d566c9a2d100f | [
"MIT"
] | 1 | 2020-05-23T14:48:00.000Z | 2020-05-23T14:48:00.000Z | # Generated by Django 2.1.7 on 2019-12-23 16:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_auto_20191215_2347'),
]
operations = [
migrations.DeleteModel(
name='EmailSub',
),
]
| 17.352941 | 47 | 0.60339 | 32 | 295 | 5.46875 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146919 | 0.284746 | 295 | 16 | 48 | 18.4375 | 0.682464 | 0.152542 | 0 | 0 | 1 | 0 | 0.145161 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dba8f0efeabbeddd8032ef035cb14867b34cf527 | 2,825 | py | Python | mix_wrapped.py | fraspass/human_activity | 147fb571bcc5f8a4ef2faba87c21f85453553270 | [
"MIT"
] | 7 | 2018-04-25T23:56:28.000Z | 2021-02-18T09:42:38.000Z | mix_wrapped.py | fraspass/human_activity | 147fb571bcc5f8a4ef2faba87c21f85453553270 | [
"MIT"
] | null | null | null | mix_wrapped.py | fraspass/human_activity | 147fb571bcc5f8a4ef2faba87c21f85453553270 | [
"MIT"
] | 1 | 2021-07-30T17:42:05.000Z | 2021-07-30T17:42:05.000Z | #!/usr/bin/env python
import sys
from scipy.stats import norm,uniform
import numpy as np
from numpy import pi,sqrt
from sklearn.preprocessing import normalize
##########################################
## Uniform-wrapped normal mixture model ##
##########################################
# Density of the wrapped norma... | 41.544118 | 135 | 0.636814 | 496 | 2,825 | 3.554435 | 0.284274 | 0.013613 | 0.006807 | 0.018151 | 0.171866 | 0.152014 | 0.088486 | 0.088486 | 0.088486 | 0.088486 | 0 | 0.039307 | 0.162478 | 2,825 | 67 | 136 | 42.164179 | 0.705833 | 0.239292 | 0 | 0.047619 | 0 | 0 | 0.018119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119048 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbabc7aa8b9ad0f20decd7689091129400352f3f | 7,881 | py | Python | be/src/codegen/gen_ir_descriptions.py | zhongyun2019/incubator-doris | 41c229fd42fc7777e7836897c240315c13dd0e8c | [
"Apache-2.0"
] | 2 | 2019-06-06T08:05:59.000Z | 2019-06-06T08:06:04.000Z | be/src/codegen/gen_ir_descriptions.py | batermj/incubator-doris | 4907577e994f5773984443c84362e8a107164e2a | [
"Apache-2.0"
] | 10 | 2020-03-04T23:28:37.000Z | 2021-12-14T21:33:14.000Z | be/src/codegen/gen_ir_descriptions.py | batermj/incubator-doris | 4907577e994f5773984443c84362e8a107164e2a | [
"Apache-2.0"
] | 1 | 2020-01-06T08:25:22.000Z | 2020-01-06T08:25:22.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 39.208955 | 84 | 0.715265 | 1,101 | 7,881 | 4.849228 | 0.232516 | 0.007492 | 0.01873 | 0.015921 | 0.464506 | 0.432291 | 0.401199 | 0.392396 | 0.363926 | 0.327964 | 0 | 0.015868 | 0.152392 | 7,881 | 200 | 85 | 39.405 | 0.783383 | 0.182591 | 0 | 0.414286 | 0 | 0 | 0.343572 | 0.188266 | 0 | 0 | 0 | 0.01 | 0 | 0 | null | null | 0 | 0.014286 | null | null | 0.007143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbb179146cdf09d57462c7a140ecccaf3033759a | 748 | py | Python | allies/allies.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | null | null | null | allies/allies.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | null | null | null | allies/allies.py | kbsletten/AvraeAliases | a392881dcddccc2155d10fd4d231f1be53c54bda | [
"MIT"
] | 1 | 2022-03-17T18:06:25.000Z | 2022-03-17T18:06:25.000Z | embed
<drac2>
argv = &ARGS&
args = argparse(argv)
allies = load_json(get_svar("allies", "[]"))
init = combat()
targets = [init.get_combatant(t) for t in allies + (args.get("t") if init else [])]
target_ids = [comb.id for comb in targets if comb]
fields = ""
for comb in init.combatants if init else []:
... | 31.166667 | 116 | 0.656417 | 113 | 748 | 4.247788 | 0.460177 | 0.0875 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.181818 | 748 | 23 | 117 | 32.521739 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.038621 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbb1a0d01ea535aabe657467d4f50aa142a02830 | 2,677 | py | Python | evdev/eventio_async.py | HM-IHL/10.1-Touch-RPI | 91a16f46d02b279e8e9c6bb3ffca20d0e875e18b | [
"BSD-3-Clause"
] | null | null | null | evdev/eventio_async.py | HM-IHL/10.1-Touch-RPI | 91a16f46d02b279e8e9c6bb3ffca20d0e875e18b | [
"BSD-3-Clause"
] | null | null | null | evdev/eventio_async.py | HM-IHL/10.1-Touch-RPI | 91a16f46d02b279e8e9c6bb3ffca20d0e875e18b | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import asyncio
import select
from evdev import eventio
class EventIO(eventio.EventIO):
def _do_when_readable(self, callback):
loop = asyncio.get_event_loop()
def ready():
loop.remove_reader(self.fileno())
callback()
loop.add_reader(self.fileno(),... | 29.097826 | 84 | 0.603287 | 304 | 2,677 | 5.088816 | 0.279605 | 0.049774 | 0.072398 | 0.051713 | 0.354234 | 0.222366 | 0.188752 | 0.188752 | 0.090498 | 0.090498 | 0 | 0.001077 | 0.306313 | 2,677 | 91 | 85 | 29.417582 | 0.831987 | 0.199103 | 0 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22807 | false | 0 | 0.052632 | 0.052632 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbb4c301002728d6e877ef9c6a7a029b17c1514c | 944 | py | Python | scheduler/MAD_MC_Random.py | BirgittM/COSCO-1 | 2140b3d9fa2d5a8027a0d062fdcf0ff952f65b0f | [
"BSD-3-Clause"
] | 20 | 2020-11-17T17:44:41.000Z | 2022-03-30T19:35:53.000Z | scheduler/MAD_MC_Random.py | imperial-qore/CAROL | 57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9 | [
"BSD-3-Clause"
] | 6 | 2021-06-04T18:06:17.000Z | 2022-03-10T14:16:46.000Z | scheduler/MAD_MC_Random.py | imperial-qore/CAROL | 57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9 | [
"BSD-3-Clause"
] | 12 | 2020-12-28T17:59:12.000Z | 2022-03-29T06:07:35.000Z | from .Scheduler import *
import numpy as np
from copy import deepcopy
class MADMCRScheduler(Scheduler):
def __init__(self):
super().__init__()
self.utilHistory = []
self.utilHistoryContainer= []
def updateUtilHistoryContainer(self):
containerUtil = [(cid.getBaseIPS() if cid el... | 31.466667 | 96 | 0.693856 | 85 | 944 | 7.611765 | 0.494118 | 0.111283 | 0.027821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001361 | 0.221398 | 944 | 29 | 97 | 32.551724 | 0.878912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.043478 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbb8f040ec72702b7fd42bab46909a77c31b9982 | 1,904 | py | Python | edera/lockers/directory.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | 3 | 2018-11-27T15:45:19.000Z | 2018-12-21T20:32:10.000Z | edera/lockers/directory.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | 18 | 2018-12-02T18:38:59.000Z | 2020-02-05T22:09:37.000Z | edera/lockers/directory.py | thoughteer/edera | c4ddb5d8a25906c3bd773c91afb3260fc0b704f2 | [
"MIT"
] | null | null | null | import contextlib
import errno
import logging
import os
import os.path
import sqlite3
import edera.helpers
from edera.exceptions import LockAcquisitionError
from edera.locker import Locker
class DirectoryLocker(Locker):
"""
A directory-level locker.
A directory-level lock works as an inter-process mute... | 28.848485 | 81 | 0.618172 | 231 | 1,904 | 4.974026 | 0.463203 | 0.041775 | 0.041775 | 0.036554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005267 | 0.301996 | 1,904 | 65 | 82 | 29.292308 | 0.859293 | 0.273109 | 0 | 0.153846 | 0 | 0 | 0.031514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.051282 | 0.230769 | 0.025641 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbbb28736c242c02b1830abd4888684d1fe8e858 | 5,031 | py | Python | tests/modulo_numero_por_extenso.py | patrick7star/biblioteca_utilitarios_python | 28ba556d6380c6fac504bb5db854d1d29711e37e | [
"MIT"
] | null | null | null | tests/modulo_numero_por_extenso.py | patrick7star/biblioteca_utilitarios_python | 28ba556d6380c6fac504bb5db854d1d29711e37e | [
"MIT"
] | null | null | null | tests/modulo_numero_por_extenso.py | patrick7star/biblioteca_utilitarios_python | 28ba556d6380c6fac504bb5db854d1d29711e37e | [
"MIT"
] | null | null | null |
# biblioteca padrão do terminal.
from os import get_terminal_size
# própria biblioteca ...
from biblioteca import NE
escreva_por_extenso = NE.escreva_por_extenso
# para simular o macro 'assert_eq' do Rust.
def assert_eq(a, b):
print("direito:\"{}\"\nesquerdo:\"{}\"\n".format(b, a))
assert a == b
# separador de... | 30.125749 | 174 | 0.71298 | 735 | 5,031 | 4.601361 | 0.244898 | 0.12123 | 0.206091 | 0.061798 | 0.421644 | 0.335305 | 0.259018 | 0.230633 | 0.205204 | 0.205204 | 0 | 0.054087 | 0.19519 | 5,031 | 166 | 175 | 30.307229 | 0.781181 | 0.106539 | 0 | 0.318841 | 0 | 0.028986 | 0.35419 | 0 | 0 | 0 | 0 | 0 | 0.253623 | 1 | 0.050725 | false | 0 | 0.014493 | 0 | 0.065217 | 0.043478 | 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 |
dbbb614fc766888e06eed99da2e7f5b034508f0b | 950 | py | Python | documents/第二课----网络爬虫技术/code/资源/《用Python写网络爬虫(第2版)》源代码/wswp-code/code/chp8/example/example/spiders/country.py | wynshiter/NLP_DEMO | be3b613f5c2bcde29603c207f620d68e0d571aba | [
"MIT"
] | 7 | 2018-11-28T04:34:55.000Z | 2019-07-02T02:52:51.000Z | documents/第二课----网络爬虫技术/code/资源/《用Python写网络爬虫(第2版)》源代码/wswp-code/code/chp8/example/example/spiders/country.py | wynshiter/nlp_demo | be3b613f5c2bcde29603c207f620d68e0d571aba | [
"MIT"
] | null | null | null | documents/第二课----网络爬虫技术/code/资源/《用Python写网络爬虫(第2版)》源代码/wswp-code/code/chp8/example/example/spiders/country.py | wynshiter/nlp_demo | be3b613f5c2bcde29603c207f620d68e0d571aba | [
"MIT"
] | 7 | 2019-08-16T07:04:28.000Z | 2022-03-07T13:56:58.000Z | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from example.items import CountryOrDistrictItem
class CountryOrDistrictSpider(CrawlSpider):
name = 'country_or_district'
allowed_domains = ['example.python-scraping.com']
star... | 35.185185 | 83 | 0.666316 | 110 | 950 | 5.572727 | 0.518182 | 0.032626 | 0.055465 | 0.078303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003896 | 0.189474 | 950 | 26 | 84 | 36.538462 | 0.792208 | 0.022105 | 0 | 0 | 0 | 0 | 0.259978 | 0.131607 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbbf5eb9779bff4ecfa29badd7f2e8320e35b2ee | 9,993 | py | Python | tests/analysis/diversity/test_beta.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | null | null | null | tests/analysis/diversity/test_beta.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | 84 | 2020-07-27T13:01:12.000Z | 2022-03-16T17:10:23.000Z | tests/analysis/diversity/test_beta.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | null | null | null | from unittest import TestCase
from io import StringIO
import numpy as np
import pandas as pd
from skbio import TreeNode
from moonstone.analysis.diversity.beta import (
BrayCurtis, WeightedUniFrac, UnweightedUniFrac
)
class TestBrayCurtis(TestCase):
def setUp(self):
self.tested_object = pd.DataFrame... | 40.13253 | 110 | 0.553187 | 1,127 | 9,993 | 4.731145 | 0.173913 | 0.076519 | 0.063766 | 0.039197 | 0.733683 | 0.692798 | 0.69036 | 0.689235 | 0.652476 | 0.628845 | 0 | 0.080603 | 0.309717 | 9,993 | 248 | 111 | 40.294355 | 0.692375 | 0.050235 | 0 | 0.393519 | 0 | 0.018519 | 0.139422 | 0.045771 | 0 | 0 | 0 | 0 | 0.069444 | 1 | 0.050926 | false | 0 | 0.027778 | 0 | 0.092593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbc26972b313a72559d37679d894016df6b39f8a | 2,534 | py | Python | blueprints/efs/create.py | hciudad/cloudbolt-forge | d1109c90dcd189defa70876906d394e0c91feab5 | [
"Apache-2.0"
] | 34 | 2015-08-30T09:26:41.000Z | 2022-03-03T13:18:14.000Z | blueprints/efs/create.py | hciudad/cloudbolt-forge | d1109c90dcd189defa70876906d394e0c91feab5 | [
"Apache-2.0"
] | 22 | 2015-11-23T21:24:17.000Z | 2022-01-31T04:24:24.000Z | blueprints/efs/create.py | hciudad/cloudbolt-forge | d1109c90dcd189defa70876906d394e0c91feab5 | [
"Apache-2.0"
] | 43 | 2015-11-18T16:26:22.000Z | 2021-10-18T13:19:39.000Z | """
Build service item action for AWS Elastic File System blueprint.
"""
from common.methods import set_progress
from infrastructure.models import CustomField
from infrastructure.models import Environment
from django.db import IntegrityError
import boto3
import uuid
def generate_options_for_env_id(server=None, **kwar... | 30.902439 | 78 | 0.664167 | 309 | 2,534 | 5.239482 | 0.394822 | 0.05559 | 0.044472 | 0.042619 | 0.157505 | 0.136504 | 0.136504 | 0.112415 | 0.09265 | 0.09265 | 0 | 0.001517 | 0.219811 | 2,534 | 81 | 79 | 31.283951 | 0.8174 | 0.099448 | 0 | 0.087719 | 0 | 0 | 0.195068 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.052632 | false | 0.017544 | 0.105263 | 0.017544 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbca163989d0e5e7a5b8ab8f08834e73494ac326 | 2,275 | py | Python | example_friend_notifications.py | lifehackerhansol/NintendoClients | d48ee95a3c7dfc311e1c6fd3fb66536ab67d6c5d | [
"MIT"
] | 4 | 2020-10-23T15:02:50.000Z | 2021-12-18T23:14:14.000Z | example_friend_notifications.py | lifehackerhansol/NintendoClients | d48ee95a3c7dfc311e1c6fd3fb66536ab67d6c5d | [
"MIT"
] | null | null | null | example_friend_notifications.py | lifehackerhansol/NintendoClients | d48ee95a3c7dfc311e1c6fd3fb66536ab67d6c5d | [
"MIT"
] | 4 | 2018-10-01T16:55:52.000Z | 2022-03-22T07:15:01.000Z |
from nintendo.nex import backend, authentication, friends, nintendo_notification
from nintendo import account
#Device id can be retrieved with a call to MCP_GetDeviceId on the Wii U
#Serial number can be found on the back of the Wii U
DEVICE_ID = 12345678
SERIAL_NUMBER = "..."
SYSTEM_VERSION = 0x220
REGION = 4 #EUR
C... | 33.455882 | 86 | 0.762637 | 303 | 2,275 | 5.564356 | 0.379538 | 0.083037 | 0.030842 | 0.068802 | 0.137604 | 0.091934 | 0.062871 | 0 | 0 | 0 | 0 | 0.008069 | 0.128352 | 2,275 | 67 | 87 | 33.955224 | 0.842158 | 0.073846 | 0 | 0.039216 | 0 | 0 | 0.116611 | 0 | 0 | 0 | 0.00238 | 0 | 0 | 1 | 0.039216 | false | 0.058824 | 0.039216 | 0 | 0.098039 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbcf4045a77baeffad59d0b56146dd5f0c38769d | 922 | py | Python | Dataset/Leetcode/train/48/505.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/48/505.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/48/505.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
中心点到起始点的向量 --> 中心点到上一个点的向量(起始点逆时针90°)
(i - oi, j - oj) --> (li - oi, lj - oj)
关系是 (a, b) --> (-b, a), 所以有:
li = oi + oj - j
lj = oj - o... | 34.148148 | 78 | 0.41757 | 115 | 922 | 3.347826 | 0.452174 | 0.051948 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013592 | 0.441432 | 922 | 26 | 79 | 35.461538 | 0.732039 | 0.095445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbd6ab133267620028b0134e9191822405d02417 | 749 | py | Python | utils/trainer.py | tersekmatija/Bayesian-CSRNet | 047ab44c462bd866a790ff4be2a2d67ad746f89e | [
"MIT"
] | 17 | 2020-09-04T13:23:46.000Z | 2022-03-11T01:16:58.000Z | utils/trainer.py | tersekmatija/Bayesian-CSRNet | 047ab44c462bd866a790ff4be2a2d67ad746f89e | [
"MIT"
] | 7 | 2021-08-29T10:22:22.000Z | 2022-03-25T09:10:52.000Z | utils/trainer.py | tersekmatija/Bayesian-CSRNet | 047ab44c462bd866a790ff4be2a2d67ad746f89e | [
"MIT"
] | 4 | 2020-12-21T11:29:17.000Z | 2021-12-01T02:29:42.000Z | import os
import logging
from datetime import datetime
from utils.logger import setlogger
class Trainer(object):
def __init__(self, args):
sub_dir = datetime.strftime(datetime.now(), '%m%d-%H%M%S') # prepare saving path
self.save_dir = os.path.join(args.save_dir, sub_dir)
if not os.path.e... | 29.96 | 89 | 0.614152 | 104 | 749 | 4.278846 | 0.528846 | 0.078652 | 0.098876 | 0.058427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255007 | 749 | 24 | 90 | 31.208333 | 0.797491 | 0.144192 | 0 | 0.111111 | 0 | 0 | 0.041401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.111111 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbd82b0e60905bd1411673b1de29ec3c2add5de8 | 1,974 | py | Python | scikit-dbscan-example.py | davemarr621/dbscan_2 | 43b88a700655d943f1d584f6d901e41d30b38171 | [
"MIT"
] | 107 | 2017-05-23T20:43:04.000Z | 2022-03-27T14:12:16.000Z | scikit-dbscan-example.py | flychen321/dbscan | 43b88a700655d943f1d584f6d901e41d30b38171 | [
"MIT"
] | 2 | 2017-11-14T09:15:43.000Z | 2020-11-24T07:35:15.000Z | scikit-dbscan-example.py | flychen321/dbscan | 43b88a700655d943f1d584f6d901e41d30b38171 | [
"MIT"
] | 56 | 2017-01-12T14:38:26.000Z | 2022-02-22T04:56:28.000Z | # -*- coding: utf-8 -*-
"""
This script is used to validate that my implementation of DBSCAN produces
the same results as the implementation found in scikit-learn.
It's based on the scikit-learn example code, here:
http://scikit-learn.org/stable/auto_examples/cluster/plot_dbscan.html
@author: Chris McCormick
"""
... | 30.369231 | 79 | 0.618034 | 271 | 1,974 | 4.405904 | 0.446494 | 0.064489 | 0.01005 | 0.01005 | 0.070352 | 0.065327 | 0.065327 | 0.065327 | 0.065327 | 0.065327 | 0 | 0.019441 | 0.16616 | 1,974 | 64 | 80 | 30.84375 | 0.705954 | 0.213779 | 0 | 0.08 | 0 | 0 | 0.123138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.16 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbd9bc3f5971d90f2405a4743b6f2a08e51e5866 | 443 | py | Python | module2-sql-for-analysis/create_titanic.py | bbrauser/DS-Unit-3-Sprint-2-SQL-and-Databases | a0fb261e31891184c2d57d9fb7d018d5896e672b | [
"MIT"
] | null | null | null | module2-sql-for-analysis/create_titanic.py | bbrauser/DS-Unit-3-Sprint-2-SQL-and-Databases | a0fb261e31891184c2d57d9fb7d018d5896e672b | [
"MIT"
] | null | null | null | module2-sql-for-analysis/create_titanic.py | bbrauser/DS-Unit-3-Sprint-2-SQL-and-Databases | a0fb261e31891184c2d57d9fb7d018d5896e672b | [
"MIT"
] | null | null | null | import psycopg2
import sqlite3
import pandas as pd
conn = sqlite3.connect('titanic.sqlite3')
curs = conn.cursor()
curs.execute('CREATE TABLE titanic (Survived, Pclass, Name, Sex, Age, Siblings_Spouses_Aboard, Parents_Children_Aboard, Fare)')
conn.commit()
df = pd.read_csv('/Users/bradbrauser/unit3/DS-Unit-3-Sprin... | 29.533333 | 127 | 0.767494 | 66 | 443 | 5.045455 | 0.742424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019851 | 0.090293 | 443 | 15 | 128 | 29.533333 | 0.806452 | 0 | 0 | 0 | 0 | 0.111111 | 0.536036 | 0.328829 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dbda9e207516cd684ca869e6e65400efbfe3d5bd | 1,978 | py | Python | mainnotes/migrations/0001_initial.py | gokulvibe/NoteIt-NoteMaker-Django | 9be6fe50e2768612d251692bbc606efbc201035f | [
"MIT"
] | 1 | 2021-05-31T15:52:59.000Z | 2021-05-31T15:52:59.000Z | mainnotes/migrations/0001_initial.py | gokulvibe/NoteIt-NoteMaker-Django | 9be6fe50e2768612d251692bbc606efbc201035f | [
"MIT"
] | null | null | null | mainnotes/migrations/0001_initial.py | gokulvibe/NoteIt-NoteMaker-Django | 9be6fe50e2768612d251692bbc606efbc201035f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-30 08:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import encrypted_fields.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.A... | 41.208333 | 121 | 0.616279 | 200 | 1,978 | 5.925 | 0.39 | 0.033755 | 0.047257 | 0.074262 | 0.469198 | 0.361181 | 0.361181 | 0.361181 | 0.361181 | 0.361181 | 0 | 0.013569 | 0.254803 | 1,978 | 47 | 122 | 42.085106 | 0.790366 | 0.02275 | 0 | 0.375 | 1 | 0 | 0.09218 | 0.011393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbdad4f051df4efdd278ec12d2b17a1f161fb315 | 4,101 | py | Python | src/gripit/core/ros_image.py | yor1001/GripIt | a06b300df56473f692cbb9154d60525d35137ee3 | [
"MIT"
] | null | null | null | src/gripit/core/ros_image.py | yor1001/GripIt | a06b300df56473f692cbb9154d60525d35137ee3 | [
"MIT"
] | null | null | null | src/gripit/core/ros_image.py | yor1001/GripIt | a06b300df56473f692cbb9154d60525d35137ee3 | [
"MIT"
] | null | null | null | import rospy
import cv2
from sensor_msgs.msg import Image, CameraInfo
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
import threading
import copy
import PyQt5.QtCore as QtCore
from skimage import img_as_uint
class OnTopicReived(QtCore.QObject):
receivedSignal = QtCore.pyqtSignal(np.ndarray)
ROS_D... | 31.790698 | 76 | 0.624482 | 509 | 4,101 | 4.876228 | 0.261297 | 0.092667 | 0.054392 | 0.072522 | 0.283642 | 0.260274 | 0.177276 | 0.121676 | 0.121676 | 0.121676 | 0 | 0.022079 | 0.282126 | 4,101 | 129 | 77 | 31.790698 | 0.820992 | 0.186052 | 0 | 0.141176 | 0 | 0 | 0.016862 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 0 | null | null | 0.011765 | 0.105882 | null | null | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbddabce17dbaf32003fa05262f9805276fc5357 | 1,150 | py | Python | src/pretix/base/models/settings.py | alainrk/pretix | 867a8132aa1ed73dd9513efae5b3c46b5bbae140 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-08-31T13:16:55.000Z | 2021-08-31T13:16:55.000Z | src/pretix/base/models/settings.py | alainrk/pretix | 867a8132aa1ed73dd9513efae5b3c46b5bbae140 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/base/models/settings.py | alainrk/pretix | 867a8132aa1ed73dd9513efae5b3c46b5bbae140 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from django.db import models
class GlobalSetting(models.Model):
"""
A global setting is a key-value setting which can be set for a
pretix instance. It will be inherited by all events and organizers.
It is filled via the register_global_settings signal.
"""
key = models.CharField(max_length=255... | 32.857143 | 101 | 0.706957 | 157 | 1,150 | 5.050955 | 0.414013 | 0.041614 | 0.037831 | 0.04918 | 0.485498 | 0.437579 | 0.399748 | 0.399748 | 0.399748 | 0.399748 | 0 | 0.00973 | 0.195652 | 1,150 | 34 | 102 | 33.823529 | 0.847568 | 0.342609 | 0 | 0.357143 | 0 | 0 | 0.063401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
915527200c3ecb315103b9fbe66fbf63b5f5605a | 925 | py | Python | commons/decorators.py | HelloDHLyn/restbus-api | 5753367c3f32ba0a63c8470561dd9cc81356913f | [
"MIT"
] | null | null | null | commons/decorators.py | HelloDHLyn/restbus-api | 5753367c3f32ba0a63c8470561dd9cc81356913f | [
"MIT"
] | null | null | null | commons/decorators.py | HelloDHLyn/restbus-api | 5753367c3f32ba0a63c8470561dd9cc81356913f | [
"MIT"
] | null | null | null | import logging
from functools import wraps
import os
from flask import jsonify
from sqlalchemy.exc import IntegrityError
handler = logging.FileHandler(os.environ['FLASK_LOG_FILE'])
handler.setFormatter(logging.Formatter('%(asctime)s [%(levelname)s] %(message)s'))
logger = logging.getLogger(__name__)
logger.addHand... | 22.560976 | 83 | 0.64 | 99 | 925 | 5.909091 | 0.484848 | 0.068376 | 0.044444 | 0.054701 | 0.112821 | 0.112821 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0.254054 | 925 | 40 | 84 | 23.125 | 0.847826 | 0 | 0 | 0.214286 | 0 | 0 | 0.08973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.178571 | 0.035714 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9156232e58a56379b75cee2963c44e6e3f3ade6a | 2,076 | py | Python | src/data_migrator/emitters/base.py | schubergphilis/data-migrator | b5ced9abd6bc2c60e9c115951fee38c2fd08923f | [
"MIT"
] | 18 | 2017-04-27T08:57:40.000Z | 2021-04-01T22:39:40.000Z | src/data_migrator/emitters/base.py | schubergphilis/data-migrator | b5ced9abd6bc2c60e9c115951fee38c2fd08923f | [
"MIT"
] | 1,077 | 2017-04-13T20:56:44.000Z | 2022-03-31T01:23:50.000Z | src/data_migrator/emitters/base.py | schubergphilis/data-migrator | b5ced9abd6bc2c60e9c115951fee38c2fd08923f | [
"MIT"
] | 6 | 2017-04-17T14:14:45.000Z | 2020-05-05T10:05:23.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
class BaseEmitter(object):
'''Base for emitters of the *data-migrator*.
Attributes:
manager (BaseManager): reference to the manager that is calling this
emitter to export objects from that manager
model_class (Model): reference to the ... | 30.086957 | 76 | 0.595376 | 238 | 2,076 | 5.088235 | 0.386555 | 0.041288 | 0.034682 | 0.034682 | 0.132122 | 0.105698 | 0.105698 | 0.105698 | 0.105698 | 0.105698 | 0 | 0.001401 | 0.312139 | 2,076 | 68 | 77 | 30.529412 | 0.846639 | 0.536609 | 0 | 0.105263 | 0 | 0 | 0.02008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91586485d8b39a4ba5dfbe532ed3c935c2b18a59 | 194 | py | Python | src/profiles/shell_commands.py | shihlinlu/django-web-app | 26c2d2f6f0c7cf0e0eb7aa3d298cb25d84955496 | [
"Apache-2.0"
] | null | null | null | src/profiles/shell_commands.py | shihlinlu/django-web-app | 26c2d2f6f0c7cf0e0eb7aa3d298cb25d84955496 | [
"Apache-2.0"
] | null | null | null | src/profiles/shell_commands.py | shihlinlu/django-web-app | 26c2d2f6f0c7cf0e0eb7aa3d298cb25d84955496 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth import get_user_model
User = get_user_model()
random_ = User.objects.last()
# my followers
random_.profile.followers.all()
# who I follow
random.is_following.all()
| 14.923077 | 46 | 0.768041 | 29 | 194 | 4.896552 | 0.689655 | 0.098592 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123711 | 194 | 12 | 47 | 16.166667 | 0.835294 | 0.128866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
9161c5ca5347c34f11c336653c6bbafe39bd2469 | 3,152 | py | Python | ribosome/nvim/api/exists.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | ribosome/nvim/api/exists.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | ribosome/nvim/api/exists.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | from typing import Callable, TypeVar, Any
from amino import do, Do, Either, Right, Left
from ribosome.nvim.io.compute import NvimIO, NRParams
from ribosome.nvim.api.function import nvim_call_cons_strict, nvim_call_function
from ribosome.nvim.api.util import nvimio_repeat_timeout, cons_checked_e
from ribosome.nvim.api... | 30.307692 | 103 | 0.695749 | 445 | 3,152 | 4.696629 | 0.193258 | 0.036842 | 0.037321 | 0.03445 | 0.394258 | 0.238278 | 0.211483 | 0.170335 | 0.136842 | 0.107177 | 0 | 0.007737 | 0.179886 | 3,152 | 103 | 104 | 30.601942 | 0.800774 | 0 | 0 | 0.2 | 0 | 0 | 0.129442 | 0.01618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185714 | false | 0 | 0.1 | 0.128571 | 0.442857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9165b0d9f0ca785b6090fd34db8db825564ba45e | 1,142 | py | Python | calendars/models.py | City-of-Turku/munpalvelut_backend | 9baa530f2f3405322f74ccc145641148f253341b | [
"MIT"
] | null | null | null | calendars/models.py | City-of-Turku/munpalvelut_backend | 9baa530f2f3405322f74ccc145641148f253341b | [
"MIT"
] | null | null | null | calendars/models.py | City-of-Turku/munpalvelut_backend | 9baa530f2f3405322f74ccc145641148f253341b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.core.exceptions import ValidationError
from . import utils
STR_BUSY = 'busy'
STR_AVAILABLE = 'available'
class CalendarEntry(models.Mode... | 32.628571 | 107 | 0.71979 | 144 | 1,142 | 5.506944 | 0.506944 | 0.037831 | 0.058008 | 0.068096 | 0.088272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002137 | 0.180385 | 1,142 | 34 | 108 | 33.588235 | 0.845085 | 0.028897 | 0 | 0 | 0 | 0 | 0.169828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0.043478 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91691a3e239d65fadc13e594bdc9d12df5170961 | 1,436 | py | Python | YOLO/yolo/s3Download.py | yalhaizaey/Dreich | 9528856c3879d4c9d3ced453f223785a71188808 | [
"Apache-2.0"
] | 25 | 2019-05-09T19:03:37.000Z | 2022-02-06T20:47:37.000Z | Experiments/YOLO/yolo/s3Download.py | jonathanmcchesney/DeFog | bc314d41471d00b9d605bb4519f31a465e0a6b75 | [
"Apache-2.0"
] | null | null | null | Experiments/YOLO/yolo/s3Download.py | jonathanmcchesney/DeFog | bc314d41471d00b9d605bb4519f31a465e0a6b75 | [
"Apache-2.0"
] | 9 | 2019-08-19T19:00:41.000Z | 2021-12-09T04:46:07.000Z | #!/usr/bin/env python3
import sys # system functionality to accept paramter input
import boto3 # AWS utility
import botocore #Core functionalirt for exception handling
#########################################################################################################################
# CSC4006 - Research And Dev... | 39.888889 | 151 | 0.62117 | 176 | 1,436 | 5.039773 | 0.568182 | 0.063134 | 0.037204 | 0.029312 | 0.05637 | 0.05637 | 0.05637 | 0 | 0 | 0 | 0 | 0.02461 | 0.151114 | 1,436 | 35 | 152 | 41.028571 | 0.703035 | 0 | 0 | 0 | 0 | 0 | 0.19084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
916dd800328e2cd5d353b3af0445da0fccbbee84 | 606 | py | Python | Python/main.py | 2000jedi/WebViewer | 5211abb9f9c50f87b4f21a68b9533b2ec1e89a9f | [
"MIT"
] | null | null | null | Python/main.py | 2000jedi/WebViewer | 5211abb9f9c50f87b4f21a68b9533b2ec1e89a9f | [
"MIT"
] | null | null | null | Python/main.py | 2000jedi/WebViewer | 5211abb9f9c50f87b4f21a68b9533b2ec1e89a9f | [
"MIT"
] | null | null | null | from sys import stderr
from os.path import join, curdir
import parser
import globals
import application
reload(parser)
reload(application)
def main(app_name):
app_path = join(curdir, app_name)
xml_path = join(app_path, 'view.xml')
views = parser.parse_xml(xml_path)
try:
globals.app = __import... | 22.444444 | 79 | 0.69802 | 83 | 606 | 4.903614 | 0.445783 | 0.068796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006122 | 0.191419 | 606 | 26 | 80 | 23.307692 | 0.82449 | 0 | 0 | 0 | 0 | 0 | 0.041254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
917010711a985612d861ddfac10baa2e75c52a4c | 6,810 | py | Python | src/utils/generate-tables.py | coco-team/cocoSim-deprecated | 10fa76fee83458ee1b699255182a4a62e16b9864 | [
"Python-2.0",
"OLDAP-2.7"
] | 10 | 2019-04-02T19:29:23.000Z | 2021-07-08T08:08:13.000Z | src/utils/generate-tables.py | summit677/cocoSim | 10fa76fee83458ee1b699255182a4a62e16b9864 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | src/utils/generate-tables.py | summit677/cocoSim | 10fa76fee83458ee1b699255182a4a62e16b9864 | [
"Python-2.0",
"OLDAP-2.7"
] | 4 | 2019-11-05T10:48:38.000Z | 2022-03-15T02:07:58.000Z | import math;
import decimal;
import sys
def trunc(f):
if f == 0:
return '0.0';
d = decimal.Decimal(f)
if type(d)(int(d)) == d:
return str(d) + '.0';
slen = len('%.*f' % (20, d))
return str(d)[:slen]
# min, max: values; lower, upper: domain
def interpolate(minV, maxV, lower, upper, varname):
fact =... | 25.129151 | 146 | 0.588106 | 956 | 6,810 | 4.130753 | 0.16841 | 0.025829 | 0.038997 | 0.030387 | 0.46746 | 0.417068 | 0.341352 | 0.252722 | 0.252722 | 0.243859 | 0 | 0.029584 | 0.195888 | 6,810 | 270 | 147 | 25.222222 | 0.691563 | 0.088693 | 0 | 0.422222 | 0 | 0 | 0.105612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022222 | null | null | 0.233333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91723638ceba310c2d0917ea122d6f145a6b5cf6 | 5,424 | py | Python | mastermind.py | tolomea/mastermind | d84431f6394002e22d68f1253c4379ad95c3a166 | [
"MIT"
] | null | null | null | mastermind.py | tolomea/mastermind | d84431f6394002e22d68f1253c4379ad95c3a166 | [
"MIT"
] | null | null | null | mastermind.py | tolomea/mastermind | d84431f6394002e22d68f1253c4379ad95c3a166 | [
"MIT"
] | null | null | null | from __future__ import division
"""
The game has 4 slots each of which can have 1 of 6 colors, so there are 6^4 = 1,296 combinations
Scores also have 4 positions, black for correct color in correct place, white for correct color in the wrong place and blank for incorrect color.
These are always ordered black, white bl... | 30.644068 | 145 | 0.668695 | 777 | 5,424 | 4.492921 | 0.303732 | 0.026067 | 0.018619 | 0.01289 | 0.072186 | 0.030937 | 0.02177 | 0 | 0 | 0 | 0 | 0.007683 | 0.256084 | 5,424 | 176 | 146 | 30.818182 | 0.857497 | 0.002028 | 0 | 0.152542 | 0 | 0 | 0.005281 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0 | null | null | 0 | 0.033898 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
917270b880e2d64ea613bfcda342c62f23486bf1 | 7,507 | py | Python | Node3D/base/mesh/base_primitives.py | ArnoChenFx/Node3D | 30fe58cced3a8580eb129475925eb797e6065067 | [
"MIT"
] | 3 | 2020-09-09T15:42:46.000Z | 2021-07-24T13:58:56.000Z | Node3D/base/mesh/base_primitives.py | ArnoChenFx/Node3D | 30fe58cced3a8580eb129475925eb797e6065067 | [
"MIT"
] | null | null | null | Node3D/base/mesh/base_primitives.py | ArnoChenFx/Node3D | 30fe58cced3a8580eb129475925eb797e6065067 | [
"MIT"
] | 1 | 2021-10-17T12:21:39.000Z | 2021-10-17T12:21:39.000Z | import math
import numpy as np
from numpy.linalg import norm
from ..data import quaternion, vector
from math import sin, cos
def generate_tube(p0, p1, r0_out, r1_out, r0_in, r1_in, num_segments=16,
with_quad=True):
""" Generate generalized tube (i.e. cylinder with an axial hole).
Args:
... | 34.43578 | 113 | 0.510057 | 1,087 | 7,507 | 3.437902 | 0.113155 | 0.017126 | 0.016056 | 0.044153 | 0.554991 | 0.512443 | 0.466417 | 0.407814 | 0.349478 | 0.299438 | 0 | 0.048682 | 0.337818 | 7,507 | 217 | 114 | 34.59447 | 0.703078 | 0.059678 | 0 | 0.369048 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 1 | 0.035714 | false | 0 | 0.029762 | 0.005952 | 0.10119 | 0 | 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 |
9173b7cf5a9fadc3a3195068d25465c94eed1a6d | 12,759 | py | Python | src/event.py | nasras03/zenoss_event_sync | 0a165ee11c3d4941ead0386d85b7cb264562feea | [
"Apache-2.0"
] | null | null | null | src/event.py | nasras03/zenoss_event_sync | 0a165ee11c3d4941ead0386d85b7cb264562feea | [
"Apache-2.0"
] | null | null | null | src/event.py | nasras03/zenoss_event_sync | 0a165ee11c3d4941ead0386d85b7cb264562feea | [
"Apache-2.0"
] | 2 | 2019-09-18T15:11:01.000Z | 2021-05-09T08:56:09.000Z | ##############################################################################
#
# Copyright (C) BBC 2018
#
##############################################################################
import sys
import pprint
import logging
import ConfigParser
import os
import traceback
import utils
base_folder = os.path.dirname(... | 43.996552 | 154 | 0.67325 | 1,642 | 12,759 | 4.878197 | 0.151644 | 0.033708 | 0.017853 | 0.0201 | 0.34432 | 0.253184 | 0.214607 | 0.174032 | 0.132834 | 0.081149 | 0 | 0.004252 | 0.188886 | 12,759 | 289 | 155 | 44.148789 | 0.769736 | 0.031586 | 0 | 0.089286 | 0 | 0 | 0.140619 | 0.008204 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.040179 | null | null | 0.044643 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
917a7cfbf2f01744e8d86a4577382f1e74aa9bbd | 2,009 | py | Python | applications/UGC/controllers/json_parsing.py | SETIADEEPANSHU/iSahayog | f276b93a55b80140155099d969815f597b30fbcb | [
"BSD-3-Clause"
] | 1 | 2018-03-24T08:28:08.000Z | 2018-03-24T08:28:08.000Z | applications/UGC/controllers/json_parsing.py | SETIADEEPANSHU/iSahayog | f276b93a55b80140155099d969815f597b30fbcb | [
"BSD-3-Clause"
] | null | null | null | applications/UGC/controllers/json_parsing.py | SETIADEEPANSHU/iSahayog | f276b93a55b80140155099d969815f597b30fbcb | [
"BSD-3-Clause"
] | 1 | 2019-03-03T07:43:25.000Z | 2019-03-03T07:43:25.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from gluon import *
import json
def strip_write(x):
stck, i, lst, top = [], 0, [], -1
while x[i]<'{':
i += 1
while i<len(x):
lst.append(x[i])
if x[i] == '{':
stck.append(x[i])
if stck[top] == '{' and x[i] == '}':
... | 23.360465 | 154 | 0.44898 | 284 | 2,009 | 3.126761 | 0.292254 | 0.022523 | 0.027027 | 0.027027 | 0.143018 | 0.081081 | 0.06982 | 0.06982 | 0.06982 | 0.06982 | 0 | 0.023148 | 0.354903 | 2,009 | 85 | 155 | 23.635294 | 0.662037 | 0.093081 | 0 | 0.297297 | 0 | 0 | 0.054975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | 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 |
917c34f88998e7fb53708a0b9c2e99809962f531 | 643 | py | Python | setup.py | jmunroe/cosima-cookbook | 2e2ace019f5f117973072cc401c33e28cbbcb05f | [
"Apache-2.0"
] | null | null | null | setup.py | jmunroe/cosima-cookbook | 2e2ace019f5f117973072cc401c33e28cbbcb05f | [
"Apache-2.0"
] | null | null | null | setup.py | jmunroe/cosima-cookbook | 2e2ace019f5f117973072cc401c33e28cbbcb05f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='cosima_cookbook',
version='0.2',
description='Diagnostics for COSIMA: Consortium for Ocean-Sea Ice Modelling in Australia',
url='https://github.com/COSIMA/cosima-cookbook',
author='James Munroe',
author_email='jmunroe@mun.ca',
license... | 22.172414 | 94 | 0.584759 | 64 | 643 | 5.78125 | 0.796875 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010707 | 0.273717 | 643 | 28 | 95 | 22.964286 | 0.781585 | 0 | 0 | 0 | 0 | 0 | 0.399689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
917c81fceda6b66db62ad91a5225659d5e360c7c | 693 | py | Python | iexfinance/tests/test_auth.py | ArcticFaded/iexfinance | a8400737878c5727db5e588eb0f5f0e7f6c0dffc | [
"Apache-2.0"
] | 4 | 2019-12-09T21:24:28.000Z | 2019-12-10T21:42:53.000Z | iexfinance/tests/test_auth.py | ArcticFaded/iexfinance | a8400737878c5727db5e588eb0f5f0e7f6c0dffc | [
"Apache-2.0"
] | 2 | 2019-12-07T17:20:26.000Z | 2019-12-07T17:21:00.000Z | Lib/site-packages/iexfinance/tests/test_auth.py | MetroSpinnin/NaijaHacks-EdtechML-solution | ad9e50214187606d39b444201cdf1751d0269308 | [
"bzip2-1.0.6"
] | 2 | 2019-11-19T06:48:44.000Z | 2020-01-03T05:02:52.000Z | import pytest
from iexfinance.base import _IEXBase
from iexfinance.stocks import Stock
from iexfinance.utils.exceptions import (IEXAuthenticationError)
class TestAuth(object):
def test_cloud_fails_no_token(self, block_keys):
with pytest.raises(IEXAuthenticationError):
_IEXBase()
def tes... | 24.75 | 64 | 0.679654 | 83 | 693 | 5.409639 | 0.433735 | 0.062361 | 0.057906 | 0.075724 | 0.311804 | 0.227171 | 0.227171 | 0 | 0 | 0 | 0 | 0.003752 | 0.23088 | 693 | 27 | 65 | 25.666667 | 0.838649 | 0 | 0 | 0.111111 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
917cc7da9a8227dabe5ad3f13742245f430f5d9e | 25,691 | py | Python | epubber/fimfic_epubgen.py | revarbat/epubber | 4ac541b01e705c6312a7c9016fa2336614e63bf0 | [
"BSD-2-Clause"
] | null | null | null | epubber/fimfic_epubgen.py | revarbat/epubber | 4ac541b01e705c6312a7c9016fa2336614e63bf0 | [
"BSD-2-Clause"
] | null | null | null | epubber/fimfic_epubgen.py | revarbat/epubber | 4ac541b01e705c6312a7c9016fa2336614e63bf0 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import
import sys, re, time, cgi
import requests
import urlparse
import textwrap
import clay.config
from HTMLParser import HTMLParser
from pprint import pformat
from epubber.fixtags import FixTagsHtmlParser
from epubber.epubgen import ePubGenerator
reload(sys)
sys.setdefaultencoding... | 38.344776 | 211 | 0.517925 | 2,935 | 25,691 | 4.429983 | 0.158092 | 0.031995 | 0.02838 | 0.022304 | 0.461852 | 0.408245 | 0.30503 | 0.264575 | 0.241578 | 0.215967 | 0 | 0.053661 | 0.337005 | 25,691 | 669 | 212 | 38.402093 | 0.709681 | 0.015609 | 0 | 0.285714 | 0 | 0.057143 | 0.505529 | 0.069597 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060714 | null | null | 0.001786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
917d4e4ffed0ed7260a88944a369c50ed72ec146 | 2,607 | py | Python | es_search_exporter/collector.py | ipstatic/es_search_exporter | 20d94b19ed0ae7e78d04187d91d753a1a05e84e4 | [
"MIT"
] | 13 | 2016-10-18T20:58:27.000Z | 2019-07-24T02:21:22.000Z | es_search_exporter/collector.py | ipstatic/es_search_exporter | 20d94b19ed0ae7e78d04187d91d753a1a05e84e4 | [
"MIT"
] | 2 | 2018-01-23T21:27:10.000Z | 2021-03-25T21:47:06.000Z | es_search_exporter/collector.py | ipstatic/es_search_exporter | 20d94b19ed0ae7e78d04187d91d753a1a05e84e4 | [
"MIT"
] | 4 | 2016-09-14T17:11:39.000Z | 2018-11-19T11:10:02.000Z | import json
import requests
from requests_kerberos import HTTPKerberosAuth
import time
from prometheus_client import Metric, CollectorRegistry, generate_latest
def collect_es(name, config, host, kerberos, tls):
"""Execute a search against Elasticsearch and return prometheus text format for it"""
try:
a... | 50.134615 | 138 | 0.667817 | 313 | 2,607 | 5.367412 | 0.290735 | 0.057143 | 0.05 | 0.060714 | 0.120833 | 0.038095 | 0.038095 | 0 | 0 | 0 | 0 | 0.003751 | 0.181818 | 2,607 | 51 | 139 | 51.117647 | 0.783872 | 0.030303 | 0 | 0 | 1 | 0 | 0.336241 | 0.114195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.106383 | 0.021277 | 0.212766 | 0 | 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 |
9180aa61950599ed98f55edbb8e67c0a46c3a2bd | 4,854 | py | Python | multicam_slack.py | mhaddy/Slack-Webhook-for-MotionEye | 92dc9a9bae34980d1d13346b8ea603c0d300dcc4 | [
"MIT"
] | 4 | 2019-06-01T01:28:02.000Z | 2021-03-01T08:35:41.000Z | multicam_slack.py | mhaddy/Slack-Webhook-for-MotionEye | 92dc9a9bae34980d1d13346b8ea603c0d300dcc4 | [
"MIT"
] | 1 | 2020-01-24T19:21:07.000Z | 2020-03-29T23:42:14.000Z | multicam_slack.py | mhaddy/Slack-Webhook-for-MotionEye | 92dc9a9bae34980d1d13346b8ea603c0d300dcc4 | [
"MIT"
] | 1 | 2021-12-14T16:41:54.000Z | 2021-12-14T16:41:54.000Z | #!/usr/bin/python
# encoding: utf-8
# license: MIT
# Multi-cam Slack webhook for MotionEyeOS
# adapted from https://github.com/IAmOrion/MotionEyeOS_Add-On_Scripts with inspiration from:
# - https://github.com/ccrisan/motioneyeos/issues/1557
# - https://github.com/kabadisha/motioneyeos-discord-notifier
# USAGE
# pyth... | 38.220472 | 237 | 0.747425 | 710 | 4,854 | 4.984507 | 0.352113 | 0.04408 | 0.015824 | 0.010172 | 0.065555 | 0.065555 | 0.049166 | 0.035038 | 0.035038 | 0.035038 | 0 | 0.003019 | 0.112897 | 4,854 | 126 | 238 | 38.52381 | 0.818857 | 0.217965 | 0 | 0.12 | 0 | 0 | 0.255765 | 0.028889 | 0 | 0 | 0 | 0 | 0.013333 | 0 | null | null | 0 | 0.066667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9183d5be9f087f6fb5635d026333ec29e16dc6ad | 5,829 | py | Python | combine/combine.py | Samnsparky/podcastanthropology | 84d88188b141c7b528f8046fcc2e9c774579ebf1 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-05-18T00:29:08.000Z | 2020-06-10T23:43:53.000Z | combine/combine.py | Samnsparky/podcastanthropology | 84d88188b141c7b528f8046fcc2e9c774579ebf1 | [
"Apache-2.0",
"MIT"
] | null | null | null | combine/combine.py | Samnsparky/podcastanthropology | 84d88188b141c7b528f8046fcc2e9c774579ebf1 | [
"Apache-2.0",
"MIT"
] | null | null | null | """Logic to combine multiple JSON files describing podcast episodes.
Logic to combine multiple podcast episode listings across different JSON file
using a mapping that renames different episode tags, combining like tags into
single categories for easier processing and visualization. This script can be
used to take JSO... | 32.564246 | 80 | 0.676274 | 780 | 5,829 | 4.951282 | 0.24359 | 0.036251 | 0.016572 | 0.020715 | 0.101761 | 0.085189 | 0.056189 | 0.056189 | 0.056189 | 0.025893 | 0 | 0.001368 | 0.247384 | 5,829 | 178 | 81 | 32.747191 | 0.878961 | 0 | 0 | 0.040541 | 0 | 0 | 0.11526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
918b80df86020b9251788841c325b4c0d28911f0 | 2,761 | py | Python | django_url_framework/decorators/auth.py | zeraien/django-url-framework | 038b2f2774f59238adf36f5d5239103124c7c8fa | [
"MIT"
] | 15 | 2015-04-08T15:37:20.000Z | 2021-11-08T08:27:48.000Z | django_url_framework/decorators/auth.py | zeraien/django-url-framework | 038b2f2774f59238adf36f5d5239103124c7c8fa | [
"MIT"
] | 12 | 2015-03-30T15:59:20.000Z | 2020-04-29T18:40:51.000Z | django_url_framework/decorators/auth.py | zeraien/django-url-framework | 038b2f2774f59238adf36f5d5239103124c7c8fa | [
"MIT"
] | 2 | 2015-08-11T13:20:55.000Z | 2016-03-21T14:47:50.000Z | try:
from functools import update_wrapper, wraps
except ImportError:
from django.utils.functional import update_wrapper, wraps # Python 2.4 fallback.
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.http import HttpResponseRedirect, HttpResponseForbidden
from django.utils.http import urlquote
... | 37.310811 | 102 | 0.711336 | 368 | 2,761 | 5.076087 | 0.271739 | 0.111349 | 0.14561 | 0.093683 | 0.469486 | 0.456103 | 0.444325 | 0.423983 | 0.304604 | 0.248394 | 0 | 0.001391 | 0.218761 | 2,761 | 73 | 103 | 37.821918 | 0.864627 | 0.167693 | 0 | 0.288462 | 0 | 0 | 0.003579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0.096154 | 0.134615 | 0 | 0.480769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
918c497dcb056d3922668b1ae8d0115d08a7cd1c | 825 | py | Python | setup.py | mitodl/edxcut | 4248504dc8f60e2d244e9fd63d2909bffd2e033b | [
"MIT"
] | 12 | 2017-02-16T21:20:46.000Z | 2021-07-20T17:15:53.000Z | setup.py | mitodl/edxcut | 4248504dc8f60e2d244e9fd63d2909bffd2e033b | [
"MIT"
] | 1 | 2017-10-19T16:33:56.000Z | 2017-10-19T16:33:56.000Z | setup.py | mitodl/edxcut | 4248504dc8f60e2d244e9fd63d2909bffd2e033b | [
"MIT"
] | 4 | 2017-03-13T21:00:49.000Z | 2020-04-13T06:42:38.000Z | import glob
from setuptools import setup
setup(
name='edxcut',
version='0.4',
author='I. Chuang and G. Lopez',
author_email='ichuang@mit.edu',
packages=['edxcut'],
scripts=[],
url='http://pypi.python.org/pypi/edxcut/',
license='LICENSE.txt',
description='edX course unit tester',
... | 25.78125 | 47 | 0.526061 | 80 | 825 | 5.275 | 0.7375 | 0.052133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003591 | 0.324848 | 825 | 31 | 48 | 26.612903 | 0.75404 | 0.060606 | 0 | 0.071429 | 0 | 0 | 0.281088 | 0.029793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
918eb91b45e40f9f81044d3744ed9f4b727626fa | 2,985 | py | Python | examples/test_dump_kws_one_target.py | sriiora/tcf | e607ce04f97dbb4910d94428c0600a6a7145a825 | [
"Apache-2.0"
] | null | null | null | examples/test_dump_kws_one_target.py | sriiora/tcf | e607ce04f97dbb4910d94428c0600a6a7145a825 | [
"Apache-2.0"
] | null | null | null | examples/test_dump_kws_one_target.py | sriiora/tcf | e607ce04f97dbb4910d94428c0600a6a7145a825 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python3
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
# pylint: disable = missing-docstring
"""Testcase using one target
-------------------------
Note the data offered for the target is a superse of the testcase's
augmented with all the target metadata exported by the ... | 38.766234 | 120 | 0.617085 | 423 | 2,985 | 4.160757 | 0.382979 | 0.051136 | 0.090909 | 0.097159 | 0.280682 | 0.25625 | 0.25625 | 0.222159 | 0.222159 | 0.222159 | 0 | 0.04942 | 0.220436 | 2,985 | 76 | 121 | 39.276316 | 0.706919 | 0.846901 | 0 | 0.166667 | 0 | 0 | 0.112554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0.25 | 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 |
91918eab14fc33245ef37e8cec934478750b7912 | 163 | py | Python | 2019/Labs/Lab06/find_missing2.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | 1 | 2021-02-04T16:59:11.000Z | 2021-02-04T16:59:11.000Z | 2019/Labs/Lab06/find_missing2.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | null | null | null | 2019/Labs/Lab06/find_missing2.py | ati-ozgur/course-python | 38237d120043c07230658b56dc3aeb01c3364933 | [
"Apache-2.0"
] | 1 | 2019-10-30T14:37:48.000Z | 2019-10-30T14:37:48.000Z | from random import sample
numbers = sample(range(1,101),99)
#print(numbers)
total = sum(range(1,101))
missing = total - sum(numbers)
print("missing",missing)
| 14.818182 | 33 | 0.711656 | 24 | 163 | 4.833333 | 0.541667 | 0.103448 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070922 | 0.134969 | 163 | 10 | 34 | 16.3 | 0.751773 | 0.08589 | 0 | 0 | 0 | 0 | 0.048276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
9194fc678fea06473d9ab20bd6a1f6c558f566b1 | 1,053 | py | Python | Autopilot/config.py | MuhammadSulaiman001/Autopilot | 41345f632ebc82d8bbf9f90172711a89892d1b85 | [
"MIT"
] | null | null | null | Autopilot/config.py | MuhammadSulaiman001/Autopilot | 41345f632ebc82d8bbf9f90172711a89892d1b85 | [
"MIT"
] | null | null | null | Autopilot/config.py | MuhammadSulaiman001/Autopilot | 41345f632ebc82d8bbf9f90172711a89892d1b85 | [
"MIT"
] | null | null | null | # # Sunny data
# outFeaturesPath = "models/features_40_sun_only"
# outLabelsPath = "models/labels_sun_only"
# imageFolderName = 'IMG_sun_only'
# features_directory = '../data/'
# labels_file = '../data/driving_log_sun_only.csv'
# modelPath = 'models/MsAutopilot_sun_only.h5'
# NoColumns = 3 # steering value index in csv... | 36.310345 | 75 | 0.759734 | 134 | 1,053 | 5.686567 | 0.30597 | 0.055118 | 0.114173 | 0.122047 | 0.464567 | 0.274278 | 0.274278 | 0.187664 | 0.128609 | 0 | 0 | 0.014009 | 0.118708 | 1,053 | 28 | 76 | 37.607143 | 0.807112 | 0.655271 | 0 | 0 | 0 | 0 | 0.467456 | 0.408284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9196509dfdd542cdcc07c827797716379bd1afcb | 24,045 | py | Python | google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/features/_analysis.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/features/_analysis.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/features/_analysis.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 34.597122 | 99 | 0.677105 | 2,990 | 24,045 | 5.230435 | 0.167559 | 0.018543 | 0.009144 | 0.008696 | 0.226293 | 0.175715 | 0.141377 | 0.13217 | 0.115289 | 0.100006 | 0 | 0.006461 | 0.227532 | 24,045 | 694 | 100 | 34.646974 | 0.835523 | 0.228031 | 0 | 0.209195 | 0 | 0 | 0.056463 | 0.001265 | 0 | 0 | 0 | 0.011527 | 0.004598 | 1 | 0.14023 | false | 0.004598 | 0.036782 | 0.057471 | 0.321839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
919b4a5a9ef412247280d70ae67c944c1f8cfe36 | 1,290 | py | Python | atomic_reactor/plugins/input_path.py | jpopelka/atomic-reactor | 49889a5a0115fd76bd59402b18c1294cd2249374 | [
"BSD-3-Clause"
] | null | null | null | atomic_reactor/plugins/input_path.py | jpopelka/atomic-reactor | 49889a5a0115fd76bd59402b18c1294cd2249374 | [
"BSD-3-Clause"
] | 1 | 2018-04-25T12:42:14.000Z | 2018-04-29T20:31:00.000Z | atomic_reactor/plugins/input_path.py | jpopelka/atomic-reactor | 49889a5a0115fd76bd59402b18c1294cd2249374 | [
"BSD-3-Clause"
] | null | null | null | """
Copyright (c) 2015 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
Reads input from provided path
"""
import json
import os
from atomic_reactor.constants import CONTAINER_BUILD_JSON_PATH
from atomic_reactor.pl... | 25.8 | 71 | 0.639535 | 162 | 1,290 | 4.91358 | 0.518519 | 0.040201 | 0.067839 | 0.082915 | 0.115578 | 0.067839 | 0.067839 | 0 | 0 | 0 | 0 | 0.00431 | 0.28062 | 1,290 | 49 | 72 | 26.326531 | 0.853448 | 0.213953 | 0 | 0.08 | 0 | 0 | 0.076042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.16 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
919c4e72abe29931b631cab806b86a740d74fd0c | 3,489 | py | Python | graphing.py | huyhoang8398/steganography | 68b0e7e8a6f89e325f549b5b2c770c54c6f1dec3 | [
"MIT"
] | null | null | null | graphing.py | huyhoang8398/steganography | 68b0e7e8a6f89e325f549b5b2c770c54c6f1dec3 | [
"MIT"
] | null | null | null | graphing.py | huyhoang8398/steganography | 68b0e7e8a6f89e325f549b5b2c770c54c6f1dec3 | [
"MIT"
] | null | null | null |
import os
import numpy as np
from getdata import *
import matplotlib
import matplotlib.pyplot as plt
timeInit = []
timeConv = []
timeSort = []
timeOutput = []
timeTotal = []
d = getData('bench_cpu_1080x1920.txt')
timeInit.append(d['init'])
timeConv.append(d['conv'])
timeSort.append(d['sort'])
timeOu... | 33.228571 | 103 | 0.687016 | 517 | 3,489 | 4.588008 | 0.222437 | 0.050169 | 0.026981 | 0.037943 | 0.686341 | 0.686341 | 0.686341 | 0.686341 | 0.686341 | 0.646712 | 0 | 0.038136 | 0.120665 | 3,489 | 104 | 104 | 33.548077 | 0.735007 | 0.03726 | 0 | 0.468354 | 0 | 0 | 0.221907 | 0.045011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.063291 | 0 | 0.063291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
919c93c349969e53c6b25890bfc70035789a16ff | 15,393 | py | Python | render/__init__.py | rgirish28/blenderseed | fee897620d0348f4ea1f5722e1a82c3682ca0178 | [
"MIT"
] | null | null | null | render/__init__.py | rgirish28/blenderseed | fee897620d0348f4ea1f5722e1a82c3682ca0178 | [
"MIT"
] | null | null | null | render/__init__.py | rgirish28/blenderseed | fee897620d0348f4ea1f5722e1a82c3682ca0178 | [
"MIT"
] | null | null | null | #
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2018 The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this s... | 38.101485 | 117 | 0.650231 | 1,730 | 15,393 | 5.437572 | 0.187861 | 0.034017 | 0.055278 | 0.060593 | 0.454768 | 0.402891 | 0.323164 | 0.18954 | 0.105879 | 0.089083 | 0 | 0.004326 | 0.264081 | 15,393 | 403 | 118 | 38.19603 | 0.826095 | 0.137725 | 0 | 0.38 | 0 | 0 | 0.075873 | 0 | 0 | 0 | 0 | 0 | 0.036 | 1 | 0.088 | false | 0.18 | 0.044 | 0 | 0.168 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91a130c54f6bed97e3dac58e428030c56deef786 | 7,448 | py | Python | src/Selenium2Library/__init__.py | tanggai/robotframework_selenium2library | c702cfad4584f54a08a73f8366e769d2304bf1ee | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-09-11T03:24:48.000Z | 2018-08-08T11:59:54.000Z | src/Selenium2Library/__init__.py | tanggai/robotframework_selenium2library | c702cfad4584f54a08a73f8366e769d2304bf1ee | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Selenium2Library/__init__.py | tanggai/robotframework_selenium2library | c702cfad4584f54a08a73f8366e769d2304bf1ee | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2016-09-29T03:53:13.000Z | 2021-11-09T02:35:37.000Z | import os
from keywords import *
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
execfile(os.path.join(THIS_DIR, 'version.py'))
__version__ = VERSION
class Selenium2Library(
_LoggingKeywords,
_RunOnFailureKeywords,
_BrowserManagementKeywords,
_ElementKeywords,
_TableElement... | 55.58209 | 168 | 0.641246 | 900 | 7,448 | 5.212222 | 0.296667 | 0.030697 | 0.020465 | 0.017054 | 0.149435 | 0.117033 | 0.081006 | 0.068216 | 0.024728 | 0.024728 | 0 | 0.009871 | 0.292696 | 7,448 | 133 | 169 | 56 | 0.8806 | 0.806794 | 0 | 0 | 0 | 0 | 0.043673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
91a8a9c6418e016d41f9b052495dc1378dfbbc76 | 5,123 | py | Python | sdk/python/pulumi_azure/network/get_subnet.py | kenny-wealth/pulumi-azure | e57e3a81f95bf622e7429c53f0bff93e33372aa1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/get_subnet.py | kenny-wealth/pulumi-azure | e57e3a81f95bf622e7429c53f0bff93e33372aa1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/network/get_subnet.py | kenny-wealth/pulumi-azure | e57e3a81f95bf622e7429c53f0bff93e33372aa1 | [
"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 GetSub... | 47 | 222 | 0.69959 | 634 | 5,123 | 5.290221 | 0.219243 | 0.062612 | 0.060823 | 0.059034 | 0.221228 | 0.113596 | 0 | 0 | 0 | 0 | 0 | 0.000251 | 0.222331 | 5,123 | 108 | 223 | 47.435185 | 0.841616 | 0.149717 | 0 | 0 | 1 | 0 | 0.160481 | 0.032671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.188406 | 0 | 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 |
91a8bce9b4e38c2f89ff68481dba7f0ecd43d8ee | 20,296 | py | Python | src/whoosh/qparser.py | tallstreet/Whoosh-AppEngine | e722ce0005646779159c02b8f816c347f3a61b8a | [
"Apache-2.0"
] | 7 | 2015-03-01T07:44:42.000Z | 2021-11-08T10:22:20.000Z | src/whoosh/qparser.py | tallstreet/Whoosh-AppEngine | e722ce0005646779159c02b8f816c347f3a61b8a | [
"Apache-2.0"
] | null | null | null | src/whoosh/qparser.py | tallstreet/Whoosh-AppEngine | e722ce0005646779159c02b8f816c347f3a61b8a | [
"Apache-2.0"
] | 5 | 2015-04-06T20:28:39.000Z | 2018-11-27T14:38:10.000Z | import re
from whoosh.support.pyparsing import alphanums, printables, \
CharsNotIn, Literal, Group, Combine, Suppress, Regex, OneOrMore, Forward, Word, Keyword, \
Empty, StringEnd, ParserElement
from whoosh import analysis, query
"""
This module contains the default search query parser.
This uses the excel... | 39.563353 | 115 | 0.630075 | 2,446 | 20,296 | 5.158626 | 0.19215 | 0.019813 | 0.025598 | 0.029165 | 0.422571 | 0.386036 | 0.340625 | 0.319781 | 0.299651 | 0.282057 | 0 | 0.004454 | 0.280893 | 20,296 | 512 | 116 | 39.640625 | 0.860089 | 0.063362 | 0 | 0.329218 | 0 | 0 | 0.021348 | 0.003836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016461 | null | null | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91af46d945215fd1c213ab5615f2aadd609ccb0e | 2,633 | py | Python | get_floor.py | deemozyc/zycs_WiFi_location | fcbb608488ce3114f0980f8f69494e1baaad8ef1 | [
"MIT"
] | 2 | 2021-11-05T12:31:10.000Z | 2021-12-23T07:01:36.000Z | get_floor.py | deemozyc/zycs_WiFi_location | fcbb608488ce3114f0980f8f69494e1baaad8ef1 | [
"MIT"
] | 1 | 2021-01-14T10:27:21.000Z | 2021-01-15T10:23:10.000Z | get_floor.py | deemozyc/zycs_WiFi_location | fcbb608488ce3114f0980f8f69494e1baaad8ef1 | [
"MIT"
] | null | null | null | # coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from knn_main import *
from sklearn.svm import SVC
if sys.getdefaultencoding() != 'utf-8':
reload(sys)
sys.setdefaultencoding('utf-8')
def run_knn_floor(trn_coord_file, tst_coord_file, trn_rss_file, tst_rss_file):
#与run_knn_test类似 返回楼层测试正确率... | 23.096491 | 138 | 0.658185 | 466 | 2,633 | 3.427039 | 0.193133 | 0.075141 | 0.033813 | 0.04258 | 0.523482 | 0.51722 | 0.493425 | 0.445836 | 0.445836 | 0.445836 | 0 | 0.02472 | 0.18572 | 2,633 | 113 | 139 | 23.300885 | 0.720149 | 0.134827 | 0 | 0.373333 | 0 | 0 | 0.045495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91b3d16cb92ddf7ee0a98c5d635df80a0bf57fd4 | 2,637 | py | Python | main.py | discord-advertiser/api | 81b168f6326a67f3af2927bd9ba54c2a3d8c27a0 | [
"MIT"
] | null | null | null | main.py | discord-advertiser/api | 81b168f6326a67f3af2927bd9ba54c2a3d8c27a0 | [
"MIT"
] | null | null | null | main.py | discord-advertiser/api | 81b168f6326a67f3af2927bd9ba54c2a3d8c27a0 | [
"MIT"
] | null | null | null | import jsons
from parsers import kwejk, jbzd, demoty, mistrzowie, anonimowe, ninegag
from flask import Flask
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
def to_response(page):
return jsons.dumps(page)
@app.route("/")
def hello():
return to_response(
[
"/kwejk",
... | 22.347458 | 90 | 0.630641 | 329 | 2,637 | 4.924012 | 0.164134 | 0.098765 | 0.148148 | 0.08642 | 0.52716 | 0.475309 | 0.475309 | 0.453086 | 0.244444 | 0.18642 | 0 | 0.008415 | 0.188851 | 2,637 | 117 | 91 | 22.538462 | 0.748948 | 0 | 0 | 0.109756 | 0 | 0.02439 | 0.280622 | 0.034509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.04878 | 0.195122 | 0.439024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
91b5ad214e1216463aa8d5c3f1ef16ed41d9d3b1 | 3,323 | py | Python | panel/tests/widgets/test_misc.py | Liam-Deacon/panel | 45b0887201d961db69c394e9dd6087b3c97c41cb | [
"BSD-3-Clause"
] | 1 | 2021-06-21T19:10:01.000Z | 2021-06-21T19:10:01.000Z | panel/tests/widgets/test_misc.py | Stubatiger/panel | ac04ed1c08a993cd678fb162deb5fa567184ec40 | [
"BSD-3-Clause"
] | null | null | null | panel/tests/widgets/test_misc.py | Stubatiger/panel | ac04ed1c08a993cd678fb162deb5fa567184ec40 | [
"BSD-3-Clause"
] | null | null | null | from io import StringIO
import pytest
from panel.widgets import __file__ as wfile, FileDownload, Progress
def test_progress_bounds():
progress = Progress()
progress.max = 200
assert progress.param.value.bounds == (-1, 200)
progress.value = 120
assert progress.value == 120
def test_file_downloa... | 25.174242 | 86 | 0.707192 | 409 | 3,323 | 5.466993 | 0.151589 | 0.31127 | 0.152952 | 0.072004 | 0.637299 | 0.452147 | 0.35644 | 0.216458 | 0.19186 | 0.19186 | 0 | 0.009752 | 0.197713 | 3,323 | 131 | 87 | 25.366412 | 0.828957 | 0 | 0 | 0.414634 | 0 | 0 | 0.070117 | 0 | 0 | 0 | 0 | 0 | 0.280488 | 1 | 0.097561 | false | 0 | 0.036585 | 0 | 0.146341 | 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 |
91b76a2263fbcfe14a9a70f4b7211d4a2bb864dd | 12,666 | py | Python | plugins/modules/network_device.py | steinzi/ansible-ise | 0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0 | [
"MIT"
] | null | null | null | plugins/modules/network_device.py | steinzi/ansible-ise | 0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0 | [
"MIT"
] | null | null | null | plugins/modules/network_device.py | steinzi/ansible-ise | 0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: network_device
short_description: Resource module for Network Device
description:
- Manage operations create, upda... | 30.229117 | 94 | 0.676615 | 1,019 | 12,666 | 8.353288 | 0.19529 | 0.070254 | 0.098684 | 0.102796 | 0.484962 | 0.484962 | 0.475799 | 0.475799 | 0.475799 | 0.475799 | 0 | 0.004181 | 0.263461 | 12,666 | 418 | 95 | 30.301435 | 0.908243 | 0.012869 | 0 | 0.679012 | 0 | 0.002469 | 0.99456 | 0.197056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91babd0f91a838361d4bcb8652f8e061acdf609f | 934 | py | Python | vendor-local/lib/python/celery/tests/test_compat/test_decorators.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 4 | 2015-05-08T16:58:53.000Z | 2019-09-06T05:30:59.000Z | vendor-local/lib/python/celery/tests/test_compat/test_decorators.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 2 | 2019-02-17T17:44:53.000Z | 2019-03-28T03:54:39.000Z | vendor-local/lib/python/celery/tests/test_compat/test_decorators.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 7 | 2015-05-21T15:38:29.000Z | 2019-10-28T23:39:06.000Z | from __future__ import absolute_import
from __future__ import with_statement
from celery.task import base
from celery.tests.compat import catch_warnings
from celery.tests.utils import Case
def add(x, y):
return x + y
class test_decorators(Case):
def setUp(self):
with catch_warnings(record=True):
... | 27.470588 | 67 | 0.6606 | 107 | 934 | 5.579439 | 0.411215 | 0.067002 | 0.053601 | 0.110553 | 0.157454 | 0.157454 | 0 | 0 | 0 | 0 | 0 | 0.007236 | 0.260171 | 934 | 33 | 68 | 28.30303 | 0.856729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.217391 | false | 0 | 0.26087 | 0.043478 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91c4641e73f25446cbe11933bcea5f680e478cb1 | 2,553 | py | Python | lwscrapy/lwscrapy/items.py | 1365102044/lwscrapy | 5616cd664bc73032a0e94b4ce34887eb036d0d2c | [
"MIT"
] | null | null | null | lwscrapy/lwscrapy/items.py | 1365102044/lwscrapy | 5616cd664bc73032a0e94b4ce34887eb036d0d2c | [
"MIT"
] | null | null | null | lwscrapy/lwscrapy/items.py | 1365102044/lwscrapy | 5616cd664bc73032a0e94b4ce34887eb036d0d2c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.loader import ItemLoader
from scrapy.loader.processors import TakeFirst, MapCompose
from w3lib.html import remove_tags
class LwscrapyItem(s... | 22.2 | 69 | 0.683901 | 285 | 2,553 | 6.007018 | 0.42807 | 0.173481 | 0.056075 | 0.038551 | 0.23715 | 0.053738 | 0 | 0 | 0 | 0 | 0 | 0.002964 | 0.207207 | 2,553 | 115 | 70 | 22.2 | 0.842885 | 0.158637 | 0 | 0.215385 | 0 | 0 | 0.012241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.015385 | 0.061538 | 0.061538 | 0.815385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91c9174390d7be6c692f00f0ce0f166f74e04741 | 15,081 | py | Python | python_scripts/02_numerical_pipeline_scaling.py | odotreppe/scikit-learn-mooc | da97773fc9b860371e94e3c72791b0c92471b22d | [
"CC-BY-4.0"
] | 2 | 2021-09-30T11:07:28.000Z | 2021-09-30T11:07:31.000Z | python_scripts/02_numerical_pipeline_scaling.py | Haydost/scikit-learn-mooc | b46dc840111b7bc6ca643e0f1cc79499c246ca8b | [
"CC-BY-4.0"
] | null | null | null | python_scripts/02_numerical_pipeline_scaling.py | Haydost/scikit-learn-mooc | b46dc840111b7bc6ca643e0f1cc79499c246ca8b | [
"CC-BY-4.0"
] | null | null | null | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.11.3
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
# name: python3
# ---
# %% [markdown]
# # Preprocessing for nu... | 37.608479 | 92 | 0.753398 | 2,203 | 15,081 | 5.09941 | 0.236496 | 0.026705 | 0.009347 | 0.010682 | 0.136283 | 0.087858 | 0.058216 | 0.047178 | 0.047178 | 0.037208 | 0 | 0.002306 | 0.166037 | 15,081 | 400 | 93 | 37.7025 | 0.890912 | 0.809031 | 0 | 0.310345 | 0 | 0 | 0.169833 | 0.019387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0.051724 | 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 |
91d652431ec5a94c3e821d99693af6c0b5e4683f | 5,546 | py | Python | emotrix/RawData.py | henzer/EMOTRIX | 5d73f3bf0efa0fe92d2ea823ab57425cb1a1ed42 | [
"BSD-2-Clause"
] | null | null | null | emotrix/RawData.py | henzer/EMOTRIX | 5d73f3bf0efa0fe92d2ea823ab57425cb1a1ed42 | [
"BSD-2-Clause"
] | null | null | null | emotrix/RawData.py | henzer/EMOTRIX | 5d73f3bf0efa0fe92d2ea823ab57425cb1a1ed42 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# **********************************************************************************************************************
# Archivo: RawData.py
# Proposito: Esta es la clase que obtiene la informacion en bruto, a partir de un archivo de texto.
# Contiene todas las funciones ... | 42.661538 | 164 | 0.501082 | 702 | 5,546 | 3.837607 | 0.233618 | 0.059391 | 0.053081 | 0.017817 | 0.24833 | 0.162584 | 0.091314 | 0.091314 | 0.091314 | 0.091314 | 0 | 0.034483 | 0.330689 | 5,546 | 129 | 165 | 42.992248 | 0.691272 | 0.204472 | 0 | 0.171717 | 0 | 0 | 0.017304 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91dbc2373d91b71f3f137fe49c13b444368b7789 | 2,945 | py | Python | ansible-provision-ubuntu-vm/files/tests/docs-as-code.py | kibihrchak/work-environment-provisioning | 6c252dc4d367a03e517f93ff9d548ea8cbb9151c | [
"MIT"
] | null | null | null | ansible-provision-ubuntu-vm/files/tests/docs-as-code.py | kibihrchak/work-environment-provisioning | 6c252dc4d367a03e517f93ff9d548ea8cbb9151c | [
"MIT"
] | null | null | null | ansible-provision-ubuntu-vm/files/tests/docs-as-code.py | kibihrchak/work-environment-provisioning | 6c252dc4d367a03e517f93ff9d548ea8cbb9151c | [
"MIT"
] | null | null | null | import testinfra
def test_pandoc_installed(host):
assert host.package("pandoc").is_installed
def test_pandoc_command_available(host):
assert host.exists("pandoc")
def test_pandoc_matplotlib_installed(host):
assert "matplotlib" in host.pip_package.get_packages("pip3")
def test_pandoc_pandoc_plot_0_7_1_0_... | 33.465909 | 167 | 0.742275 | 359 | 2,945 | 5.799443 | 0.239554 | 0.060519 | 0.100384 | 0.088377 | 0.433718 | 0.254083 | 0.240154 | 0.150817 | 0.119116 | 0.082613 | 0 | 0.048653 | 0.155518 | 2,945 | 87 | 168 | 33.850575 | 0.7885 | 0 | 0 | 0.125 | 0 | 0 | 0.211885 | 0.117827 | 0 | 0 | 0 | 0 | 0.328125 | 1 | 0.28125 | false | 0 | 0.015625 | 0 | 0.296875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91dd9acc433027af5cacbd44e1711cd0bee73518 | 1,081 | py | Python | sdk/apis/market_service.py | Yiconghua/SDK | 8465df574b083ff7398b5fadd4bc5150152dd0b3 | [
"MIT"
] | 1 | 2021-04-03T05:11:29.000Z | 2021-04-03T05:11:29.000Z | sdk/apis/market_service.py | Yiconghua/SDK | 8465df574b083ff7398b5fadd4bc5150152dd0b3 | [
"MIT"
] | null | null | null | sdk/apis/market_service.py | Yiconghua/SDK | 8465df574b083ff7398b5fadd4bc5150152dd0b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 服务市场服务
class MarketService:
__client = None
def __init__(self, client):
self.__client = client
def sync_market_messages(self, start, end, offset, limit):
"""
同步某一段时间内的服务市场消息
:param start:开始时间
:param end:结束时间
:param offset:消息偏移量
... | 25.139535 | 132 | 0.584644 | 110 | 1,081 | 5.518182 | 0.390909 | 0.098847 | 0.105437 | 0.131796 | 0.270181 | 0.270181 | 0.16804 | 0.16804 | 0.16804 | 0 | 0 | 0.00129 | 0.283071 | 1,081 | 42 | 133 | 25.738095 | 0.781935 | 0.20074 | 0 | 0 | 0 | 0 | 0.200561 | 0.14446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91e930a24e1ba6987561c615689102d08af213f8 | 3,296 | py | Python | Handcricket.py | kumaranusa/HandCricket | 5e5cee5b2419921aa3af00ccf8e32c63d571d72e | [
"MIT"
] | 2 | 2021-05-01T12:49:45.000Z | 2021-05-22T20:37:52.000Z | Handcricket.py | kumarankm/HandCricket | 5e5cee5b2419921aa3af00ccf8e32c63d571d72e | [
"MIT"
] | null | null | null | Handcricket.py | kumarankm/HandCricket | 5e5cee5b2419921aa3af00ccf8e32c63d571d72e | [
"MIT"
] | null | null | null | import random
def bat():
n= True
count = 0
print("*************************************************")
print("Welcome to Batting")
while(n):
value = random.randint(1,6)
number = int(input("Enter the number From 1 to 6:... | 35.826087 | 120 | 0.400182 | 299 | 3,296 | 4.411371 | 0.250836 | 0.09856 | 0.045489 | 0.063685 | 0.426839 | 0.376801 | 0.376801 | 0.332828 | 0.276725 | 0.276725 | 0 | 0.014672 | 0.338289 | 3,296 | 91 | 121 | 36.21978 | 0.590096 | 0 | 0 | 0.375 | 0 | 0 | 0.397192 | 0.130421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.0125 | 0 | 0.0625 | 0.425 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
91eaf6abcdeacd4b30ac3f705fa162c9a1f62cdd | 2,540 | py | Python | gui.py | ScottDay/DFN-Maintenance-GUI-Backend | bfb05c75747fa9c334224b99609baef7321860a4 | [
"MIT"
] | 2 | 2017-03-31T00:57:35.000Z | 2017-08-04T10:38:28.000Z | gui.py | CPedersen3245/Desert-Fireball-Maintainence-GUI | bfb05c75747fa9c334224b99609baef7321860a4 | [
"MIT"
] | 10 | 2017-03-29T04:13:14.000Z | 2017-08-14T06:14:52.000Z | gui.py | ScottDay/DFN-Maintenance-GUI-Backend | bfb05c75747fa9c334224b99609baef7321860a4 | [
"MIT"
] | 4 | 2017-12-23T03:16:00.000Z | 2018-06-20T07:15:50.000Z | #!/bin/sh
''''which python3.6 >/dev/null 2>&1 && exec python3.6 "$0" "$@" # '''
''''which python3.5 >/dev/null 2>&1 && exec python3.5 "$0" "$@" # '''
''''exec echo "Error: I can't find python3.[6|5] anywhere." # '''
from argh import ArghParser, arg, wrap_errors, expects_obj
from connexion import FlaskApp
import s... | 43.050847 | 164 | 0.66811 | 357 | 2,540 | 4.64986 | 0.414566 | 0.043373 | 0.057831 | 0.039759 | 0.092771 | 0.092771 | 0.068675 | 0.068675 | 0.068675 | 0.068675 | 0 | 0.011843 | 0.168898 | 2,540 | 58 | 165 | 43.793103 | 0.774514 | 0.106693 | 0 | 0.095238 | 0 | 0 | 0.381536 | 0.015073 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.02381 | false | 0.02381 | 0.071429 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
91eb3310da29ec6089c4f0cf001f2401702084d8 | 2,618 | py | Python | setup.py | hocop/nnio | 1354396f4043f1e67b642d8d670f7ad8e642f39e | [
"MIT"
] | 6 | 2021-12-14T13:48:46.000Z | 2021-12-17T15:49:22.000Z | setup.py | hocop/nnio | 1354396f4043f1e67b642d8d670f7ad8e642f39e | [
"MIT"
] | null | null | null | setup.py | hocop/nnio | 1354396f4043f1e67b642d8d670f7ad8e642f39e | [
"MIT"
] | null | null | null | from setuptools import setup
import codecs
import os.path
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r', encoding='utf-8') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
... | 31.166667 | 144 | 0.708556 | 368 | 2,618 | 4.951087 | 0.529891 | 0.013172 | 0.032931 | 0.036224 | 0.079034 | 0.040615 | 0.040615 | 0.040615 | 0.040615 | 0 | 0 | 0.004541 | 0.1589 | 2,618 | 83 | 145 | 31.542169 | 0.822888 | 0 | 0 | 0 | 0 | 0.076923 | 0.689458 | 0.038579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.061538 | 0 | 0.123077 | 0 | 0 | 0 | 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 |
37cd97352a2b1dcfdc8af0f8b1582fd9713da121 | 1,952 | py | Python | train.py | Mario-Medvedovic/deepPhosAPI | 1c2f4bd238aca6b51923e2b50820358e9e12c36f | [
"MIT"
] | null | null | null | train.py | Mario-Medvedovic/deepPhosAPI | 1c2f4bd238aca6b51923e2b50820358e9e12c36f | [
"MIT"
] | 4 | 2020-09-26T00:52:10.000Z | 2022-02-10T01:14:45.000Z | train.py | behrouzsh/deepPhosAPI | af3b3670fd583891aa70aa523556b395cca7cd96 | [
"MIT"
] | null | null | null | import functools
import itertools
import os
import random
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from sklearn import metrics
from sklearn import preprocessing
from sklearn.model_selection import train_test_split, KFold, cross_val_score
from keras.layers import Dense... | 30.984127 | 127 | 0.726947 | 254 | 1,952 | 5.42126 | 0.46063 | 0.052288 | 0.047204 | 0.058824 | 0.106028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014678 | 0.197234 | 1,952 | 62 | 128 | 31.483871 | 0.864071 | 0.210553 | 0 | 0 | 0 | 0 | 0.048764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.567568 | 0 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37d2b51f3aa4e29f93d4e3bd74782ddd61cf5c24 | 2,294 | py | Python | marrow/mailer/exc.py | cynepiaadmin/mailer | 8c92ebe3ee12f5ccf428bc6f40222b69ce13c8ed | [
"MIT"
] | 166 | 2016-02-17T01:48:21.000Z | 2022-03-21T13:46:48.000Z | marrow/mailer/exc.py | cynepiaadmin/mailer | 8c92ebe3ee12f5ccf428bc6f40222b69ce13c8ed | [
"MIT"
] | 47 | 2016-02-15T13:31:24.000Z | 2022-02-22T05:07:58.000Z | marrow/mailer/exc.py | cynepiaadmin/mailer | 8c92ebe3ee12f5ccf428bc6f40222b69ce13c8ed | [
"MIT"
] | 49 | 2016-02-26T10:14:38.000Z | 2022-03-19T01:37:14.000Z | # encoding: utf-8
"""Exceptions used by marrow.mailer to report common errors."""
__all__ = [
'MailException',
'MailConfigurationException',
'TransportException',
'TransportFailedException',
'MessageFailedException',
'TransportExhaustedException',
'ManagerExcep... | 24.934783 | 78 | 0.697908 | 255 | 2,294 | 6.231373 | 0.4 | 0.039648 | 0.01888 | 0.024544 | 0.142857 | 0.142857 | 0.127124 | 0.079295 | 0.079295 | 0.079295 | 0 | 0.00169 | 0.226242 | 2,294 | 91 | 79 | 25.208791 | 0.893521 | 0.489102 | 0 | 0.28125 | 0 | 0 | 0.135562 | 0.091922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.28125 | 0 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
37d2e3a45c53f92306b393a4156bbe41734ffb41 | 21,094 | py | Python | codes/kmc/batchJobs/rateCaculation/postStuff/steadyStateFlow.py | joshuahellier/PhDStuff | 6fbe9e507c40e9017cde9312b0cfcc6ceefa284e | [
"MIT"
] | null | null | null | codes/kmc/batchJobs/rateCaculation/postStuff/steadyStateFlow.py | joshuahellier/PhDStuff | 6fbe9e507c40e9017cde9312b0cfcc6ceefa284e | [
"MIT"
] | null | null | null | codes/kmc/batchJobs/rateCaculation/postStuff/steadyStateFlow.py | joshuahellier/PhDStuff | 6fbe9e507c40e9017cde9312b0cfcc6ceefa284e | [
"MIT"
] | null | null | null | import sys
import os
import math
resultDir = os.environ.get('RESULTS')
if resultDir == None :
print "WARNING! $RESULTS not set! Attempt to write results will fail!\n"
# Expecting input botConc, topConc, rateConstFull, sysSize, analInterval, numStepsEquilib, numStepsSnapshot, numStepsAnal, numStepsReq, numPasses, ... | 39.950758 | 205 | 0.614914 | 2,498 | 21,094 | 5.068054 | 0.135308 | 0.037757 | 0.048341 | 0.053397 | 0.598973 | 0.582385 | 0.534913 | 0.528594 | 0.510032 | 0.495656 | 0 | 0.031707 | 0.264388 | 21,094 | 527 | 206 | 40.026565 | 0.784172 | 0.082061 | 0 | 0.429752 | 0 | 0 | 0.055569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.024793 | 0.024793 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37d3a77283c14ee89ca2137f18340f4b741de6be | 349 | py | Python | knockoff/command/version.py | Nike-Inc/knockoff-factory | 1567a46e5eaa3fe1bdf989ef5253f9ee0dbd69b3 | [
"Apache-2.0"
] | 26 | 2021-07-08T20:13:12.000Z | 2022-03-27T21:08:38.000Z | knockoff/command/version.py | Nike-Inc/knockoff-factory | 1567a46e5eaa3fe1bdf989ef5253f9ee0dbd69b3 | [
"Apache-2.0"
] | 8 | 2021-07-12T20:20:49.000Z | 2021-09-11T20:49:40.000Z | knockoff/command/version.py | Nike-Inc/knockoff-factory | 1567a46e5eaa3fe1bdf989ef5253f9ee0dbd69b3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021-present, Nike, Inc.
# All rights reserved.
#
# This source code is licensed under the Apache-2.0 license found in
# the LICENSE file in the root directory of this source tree.
import sys
from knockoff import __version__
def main(argv=None):
print(f"knockoff {__version__}")
if __name__ == "__m... | 19.388889 | 68 | 0.724928 | 52 | 349 | 4.557692 | 0.769231 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.180516 | 349 | 17 | 69 | 20.529412 | 0.807692 | 0.52149 | 0 | 0 | 0 | 0 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37d425716f02f0a6e3f1594df5a5e4990c666f3c | 1,650 | py | Python | polls/views.py | erlankg0/django_i_am_ready | d0a42ec03634586bdc47b8521247a68603590944 | [
"BSD-3-Clause"
] | null | null | null | polls/views.py | erlankg0/django_i_am_ready | d0a42ec03634586bdc47b8521247a68603590944 | [
"BSD-3-Clause"
] | null | null | null | polls/views.py | erlankg0/django_i_am_ready | d0a42ec03634586bdc47b8521247a68603590944 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, Http404, HttpResponseRedirect
from .models import Question, Choice
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.urls import reverse
from django.utils import timez... | 31.730769 | 93 | 0.699394 | 200 | 1,650 | 5.625 | 0.45 | 0.053333 | 0.029333 | 0.037333 | 0.128 | 0.128 | 0.056889 | 0 | 0 | 0 | 0 | 0.010614 | 0.200606 | 1,650 | 51 | 94 | 32.352941 | 0.842305 | 0.073939 | 0 | 0.057143 | 0 | 0 | 0.127774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.2 | 0 | 0.657143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37e264dc9c903b82bf1de68a31cbb7a4a869c479 | 310 | py | Python | tests/unit/test_handlers.py | saulshanabrook/jupyterlab-git | 276a42d772e0a13eb4b880c1ea45044cd5821a45 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_handlers.py | saulshanabrook/jupyterlab-git | 276a42d772e0a13eb4b880c1ea45044cd5821a45 | [
"BSD-3-Clause"
] | 1 | 2021-09-02T21:57:58.000Z | 2021-09-02T21:57:58.000Z | tests/unit/test_handlers.py | saulshanabrook/jupyterlab-git | 276a42d772e0a13eb4b880c1ea45044cd5821a45 | [
"BSD-3-Clause"
] | 1 | 2021-07-25T03:52:32.000Z | 2021-07-25T03:52:32.000Z | import pytest
from mock import Mock, ANY
from jupyterlab_git import handlers
def test_mapping_added():
mock_web_app = Mock()
mock_web_app.settings = {
'base_url': 'nb_base_url'
}
handlers.setup_handlers(mock_web_app)
mock_web_app.add_handlers.assert_called_once_with(".*", ANY)
| 20.666667 | 64 | 0.725806 | 45 | 310 | 4.577778 | 0.533333 | 0.135922 | 0.194175 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183871 | 310 | 14 | 65 | 22.142857 | 0.814229 | 0 | 0 | 0 | 0 | 0 | 0.067742 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37ea5bcbd5b417336662a9bbaee6d1c338ea9e35 | 13,290 | py | Python | src/oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 42.460064 | 245 | 0.703236 | 1,330 | 13,290 | 6.747368 | 0.130827 | 0.031424 | 0.240695 | 0.156452 | 0.59795 | 0.50234 | 0.346111 | 0.118788 | 0.071986 | 0.071986 | 0 | 0.001766 | 0.233108 | 13,290 | 312 | 246 | 42.596154 | 0.878728 | 0.544846 | 0 | 0.050847 | 0 | 0 | 0.242103 | 0.053379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135593 | false | 0 | 0.025424 | 0.016949 | 0.254237 | 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 |
37ea81fd523114847b66161950144e09e5680ea6 | 485 | py | Python | ex028adivinhe_numero.py | wtomalves/exerciciopython | 5c239521830cb8d092c7ff8646ff1f38c605509d | [
"MIT"
] | 1 | 2020-09-04T22:36:21.000Z | 2020-09-04T22:36:21.000Z | ex028adivinhe_numero.py | wtomalves/exerciciopython | 5c239521830cb8d092c7ff8646ff1f38c605509d | [
"MIT"
] | null | null | null | ex028adivinhe_numero.py | wtomalves/exerciciopython | 5c239521830cb8d092c7ff8646ff1f38c605509d | [
"MIT"
] | null | null | null | import random
import time
print('***' * 20)
print('Tente adivinhar o número que Madame Madelon está pensando!!!')
print('***' * 20)
num = int(input('Digite um número entre 0 a 5:'))
print('PROCESSANDO...')
time.sleep(2)
sorteio = random.randint(0,5)
if num == sorteio:
print('O número escolhido por você foi o mesmo ... | 32.333333 | 98 | 0.690722 | 71 | 485 | 4.71831 | 0.661972 | 0.041791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.146392 | 485 | 14 | 99 | 34.642857 | 0.78744 | 0 | 0 | 0.142857 | 0 | 0 | 0.546392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
37ebb56e2a9e2c53dcca045ed165556e04c9993a | 1,562 | py | Python | db_creator.py | Ksusha1319/stud_projects | c088034c044fc6cef207fb8f5228f93f15bba0e3 | [
"MIT"
] | null | null | null | db_creator.py | Ksusha1319/stud_projects | c088034c044fc6cef207fb8f5228f93f15bba0e3 | [
"MIT"
] | null | null | null | db_creator.py | Ksusha1319/stud_projects | c088034c044fc6cef207fb8f5228f93f15bba0e3 | [
"MIT"
] | null | null | null | import datetime
from sqlalchemy import create_engine, ForeignKey
from sqlalchemy import Column, Date, Integer, String, DateTime, func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref
engine = create_engine('sqlite:///test.db', echo=True)
Base = declarative_base()... | 27.403509 | 70 | 0.699744 | 180 | 1,562 | 5.883333 | 0.361111 | 0.192635 | 0.056657 | 0.062323 | 0.17847 | 0.17847 | 0.151086 | 0.151086 | 0.151086 | 0.151086 | 0 | 0 | 0.1863 | 1,562 | 56 | 71 | 27.892857 | 0.833202 | 0.008323 | 0 | 0.170732 | 0 | 0 | 0.051265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.02439 | 0.121951 | 0.02439 | 0.902439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37effbaf2b085fabea1e2e9b91a43ed2556afeb5 | 3,541 | py | Python | alpa/global_env.py | alpa-projects/alpa | 2c54de2a8fa8a48c77069f4bad802f4e8fa6d126 | [
"Apache-2.0"
] | 114 | 2022-03-02T20:38:16.000Z | 2022-03-31T20:41:50.000Z | alpa/global_env.py | alpa-projects/alpa | 2c54de2a8fa8a48c77069f4bad802f4e8fa6d126 | [
"Apache-2.0"
] | 6 | 2022-03-09T22:04:50.000Z | 2022-03-30T17:53:15.000Z | alpa/global_env.py | alpa-projects/alpa | 2c54de2a8fa8a48c77069f4bad802f4e8fa6d126 | [
"Apache-2.0"
] | 5 | 2022-03-05T12:04:31.000Z | 2022-03-31T03:55:42.000Z | """All global configurations for this project."""
import os
class GlobalConfig:
"""The global configuration of alpa."""
def __init__(self):
########## Options of device mesh ##########
self.xla_client_mem_fraction = float(
os.environ.get("XLA_PYTHON_CLIENT_MEM_FRACTION", 0.9))
... | 43.182927 | 96 | 0.659983 | 421 | 3,541 | 5.327791 | 0.456057 | 0.0321 | 0.0214 | 0.013375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004824 | 0.238916 | 3,541 | 81 | 97 | 43.716049 | 0.827458 | 0.415137 | 0 | 0 | 0 | 0 | 0.087234 | 0.036702 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37f2e9098fba960b46c7d00677dc72af0807b8eb | 36,819 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_user.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_user.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_user.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2017, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | 32.962399 | 114 | 0.599201 | 4,263 | 36,819 | 5.082336 | 0.150364 | 0.019385 | 0.021601 | 0.028801 | 0.452368 | 0.417982 | 0.387658 | 0.36855 | 0.334349 | 0.325672 | 0 | 0.010925 | 0.308889 | 36,819 | 1,116 | 115 | 32.991935 | 0.840525 | 0.148945 | 0 | 0.519666 | 0 | 0.005959 | 0.258563 | 0.012909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061979 | false | 0.053635 | 0.034565 | 0.001192 | 0.196663 | 0.001192 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37f3f9bdbd09b087b39603b638a7f192e0c9399b | 1,729 | py | Python | run.py | mestrogov/fortstone-bot | c8b3140ebedda88e36bf94f59c46ac3d4a13e07b | [
"MIT"
] | 1 | 2019-10-14T19:44:34.000Z | 2019-10-14T19:44:34.000Z | run.py | mestrogov/fortstone-bot | c8b3140ebedda88e36bf94f59c46ac3d4a13e07b | [
"MIT"
] | null | null | null | run.py | mestrogov/fortstone-bot | c8b3140ebedda88e36bf94f59c46ac3d4a13e07b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from app import config
from app.remote.redis import Redis as redis
from app.telegram.app import get_client as telegram_get_client
from app.channel.store import post as channel_store_poster
from app.channel.news import post as channel_news_poster
from threading import Thread
from time import sle... | 44.333333 | 119 | 0.711394 | 222 | 1,729 | 5.364865 | 0.40991 | 0.029387 | 0.04534 | 0.031906 | 0.201511 | 0.117548 | 0 | 0 | 0 | 0 | 0 | 0.001483 | 0.21978 | 1,729 | 38 | 120 | 45.5 | 0.881394 | 0.181608 | 0 | 0 | 0 | 0 | 0.235085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.346154 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
37f6bf169097b3dbe0c2e552d37c5828dcb20eaf | 3,392 | py | Python | 2018/day_20/solution_p1.py | rvaughan/AdventOfCode2017 | fb9199282c0083cd0b3072c27e63ea83d866efc2 | [
"MIT"
] | null | null | null | 2018/day_20/solution_p1.py | rvaughan/AdventOfCode2017 | fb9199282c0083cd0b3072c27e63ea83d866efc2 | [
"MIT"
] | null | null | null | 2018/day_20/solution_p1.py | rvaughan/AdventOfCode2017 | fb9199282c0083cd0b3072c27e63ea83d866efc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This code holds the solution for part 1 of day 18 of the Advent of Code for 2018.
"""
class Cell(object):
def __init__(self, positions, x, y):
self.positions = positions
self.x = x
self.y = y
self.positions[(self.x, self.y)] = self
self.north = N... | 22.463576 | 81 | 0.5227 | 470 | 3,392 | 3.591489 | 0.257447 | 0.021327 | 0.049763 | 0.053318 | 0.139218 | 0.12737 | 0.077014 | 0.077014 | 0.077014 | 0.040284 | 0 | 0.022432 | 0.342866 | 3,392 | 150 | 82 | 22.613333 | 0.734859 | 0.091392 | 0 | 0.138614 | 0 | 0 | 0.047938 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0 | null | null | 0.009901 | 0 | null | null | 0.138614 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
37fe57f25498d08266ade30761d63e18ede3577e | 851 | py | Python | PyCharm/Exercicios/Aula9/ex022.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | PyCharm/Exercicios/Aula9/ex022.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | PyCharm/Exercicios/Aula9/ex022.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | # Foi colocado a função strip() no final da primeira linha para já garantir a eliminação dos espaços no começo
# e final do nome caso alguém digite na hora de inserir o nome
nome = str(input('Digite seu nome completo: ')).strip()
print('\033[31mTodas as letras maiúsculas\033[m {}'.format(nome.upper()))
print('\033[32mT... | 70.916667 | 110 | 0.728555 | 135 | 851 | 4.592593 | 0.451852 | 0.064516 | 0.064516 | 0.045161 | 0.119355 | 0.119355 | 0.119355 | 0.119355 | 0 | 0 | 0 | 0.044295 | 0.124559 | 851 | 11 | 111 | 77.363636 | 0.787919 | 0.526439 | 0 | 0 | 0 | 0 | 0.540404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
37fefc7cb8623320d4850613ee5a41ca4ebd03b9 | 5,661 | py | Python | python/apsis/service/main.py | alexhsamuel/apsis | 7a038a39e5002637b60f73147728b4cc53692da3 | [
"BSD-3-Clause"
] | 1 | 2021-06-03T15:35:31.000Z | 2021-06-03T15:35:31.000Z | python/apsis/service/main.py | alexhsamuel/apsis | 7a038a39e5002637b60f73147728b4cc53692da3 | [
"BSD-3-Clause"
] | 93 | 2018-08-17T20:32:09.000Z | 2022-03-23T17:34:37.000Z | python/apsis/service/main.py | alexhsamuel/apsis | 7a038a39e5002637b60f73147728b4cc53692da3 | [
"BSD-3-Clause"
] | null | null | null | import asyncio
import logging
from pathlib import Path
import sanic
import sanic.response
import sanic.router
import signal
import ujson as json
import websockets
from apsis import __version__
import apsis.lib.logging
from . import api, control
from . import DEFAULT_PORT
from ..apsis import Apsis
from ..jo... | 28.736041 | 80 | 0.595125 | 685 | 5,661 | 4.789781 | 0.345985 | 0.032002 | 0.018287 | 0.010363 | 0.01402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00389 | 0.27345 | 5,661 | 196 | 81 | 28.882653 | 0.793824 | 0.18548 | 0 | 0.083969 | 0 | 0.007634 | 0.154539 | 0.024621 | 0 | 0 | 0 | 0.010204 | 0.007634 | 1 | 0.022901 | false | 0 | 0.129771 | 0 | 0.19084 | 0.022901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5310c37e9502af036c1e1bf9b619ee025767bcdb | 4,604 | py | Python | tests/providers/test_route_provider.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2022-02-24T06:21:18.000Z | 2022-02-24T06:21:18.000Z | tests/providers/test_route_provider.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | 1 | 2020-10-26T12:33:05.000Z | 2020-10-26T12:33:05.000Z | tests/providers/test_route_provider.py | Abeautifulsnow/masonite | f0ebb5ca05f5d88f21264e1cd0934435bd0a8791 | [
"MIT"
] | null | null | null |
from app.http.controllers.ControllerTest import ControllerTest
from src.masonite.routes import Get, Match
from src.masonite.testing import TestCase
from src.masonite.exceptions import RouteNotFoundException
class TestRouteProvider(TestCase):
def setUp(self):
super().setUp()
self.buildOwnContaine... | 39.689655 | 104 | 0.678323 | 562 | 4,604 | 5.375445 | 0.183274 | 0.066203 | 0.092685 | 0.113208 | 0.641178 | 0.612711 | 0.539887 | 0.420722 | 0.39093 | 0.347567 | 0 | 0.004615 | 0.152911 | 4,604 | 115 | 105 | 40.034783 | 0.77 | 0 | 0 | 0.210526 | 0 | 0 | 0.131871 | 0.011297 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.263158 | false | 0 | 0.052632 | 0 | 0.328947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5311f8d65d6addd9074b08dbaecb6565bf8bd408 | 5,871 | py | Python | src/fr/tagc/rainet/core/execution/processing/catrapid/combine_catrapid_fragment_results.py | TAGC-Brun/RAINET-RNA | 4d5a6658c41d4ab28d7c3d168eed65fe79233b48 | [
"Linux-OpenIB"
] | null | null | null | src/fr/tagc/rainet/core/execution/processing/catrapid/combine_catrapid_fragment_results.py | TAGC-Brun/RAINET-RNA | 4d5a6658c41d4ab28d7c3d168eed65fe79233b48 | [
"Linux-OpenIB"
] | null | null | null | src/fr/tagc/rainet/core/execution/processing/catrapid/combine_catrapid_fragment_results.py | TAGC-Brun/RAINET-RNA | 4d5a6658c41d4ab28d7c3d168eed65fe79233b48 | [
"Linux-OpenIB"
] | null | null | null | import sys
import os
import argparse
import re
import numpy as np
from fr.tagc.rainet.core.util.exception.RainetException import RainetException
from fr.tagc.rainet.core.util.log.Logger import Logger
from fr.tagc.rainet.core.util.time.Timer import Timer
#===============================================================... | 39.938776 | 245 | 0.512179 | 585 | 5,871 | 5.052991 | 0.411966 | 0.032476 | 0.010149 | 0.016238 | 0.101827 | 0.080176 | 0.055819 | 0.055819 | 0.041272 | 0.041272 | 0 | 0.045567 | 0.241185 | 5,871 | 146 | 246 | 40.212329 | 0.617957 | 0.365866 | 0 | 0.034483 | 0 | 0.051724 | 0.252824 | 0.027512 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.137931 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
53164d9c64441783943f9873e96552b068881475 | 2,886 | py | Python | diagnostic_primers/plot.py | nick-youngblut/find_differential_primers | e2111b47c66206242ae9ad4d260d18cb57bf095b | [
"MIT"
] | 40 | 2015-04-05T23:50:05.000Z | 2022-03-11T09:25:16.000Z | diagnostic_primers/plot.py | nick-youngblut/find_differential_primers | e2111b47c66206242ae9ad4d260d18cb57bf095b | [
"MIT"
] | 48 | 2016-04-19T18:24:21.000Z | 2021-10-01T08:56:09.000Z | diagnostic_primers/plot.py | nick-youngblut/find_differential_primers | e2111b47c66206242ae9ad4d260d18cb57bf095b | [
"MIT"
] | 18 | 2015-04-05T21:27:50.000Z | 2022-03-28T09:59:07.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""plot.py
Code to generate plots of pdp output
(c) The James Hutton Institute 2018
Author: Leighton Pritchard
Contact: leighton.pritchard@hutton.ac.uk
Leighton Pritchard,
Information and Computing Sciences,
James Hutton Institute,
Errol Road,
Invergowrie,
Dundee,
DD2 ... | 31.714286 | 80 | 0.695426 | 403 | 2,886 | 4.967742 | 0.528536 | 0.043956 | 0.02997 | 0.022977 | 0.071928 | 0.071928 | 0.071928 | 0.071928 | 0.071928 | 0.071928 | 0 | 0.009464 | 0.231116 | 2,886 | 90 | 81 | 32.066667 | 0.892744 | 0.628898 | 0 | 0.411765 | 1 | 0 | 0.033042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.147059 | 0 | 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 |
531aef37132882b8e74e93a0fed582dd80552129 | 5,826 | py | Python | contest/models.py | ISeaTeL/ISeaTeL_Cup_Site | df22d993db2649a3eb118177bdd13358e3036e59 | [
"MIT"
] | null | null | null | contest/models.py | ISeaTeL/ISeaTeL_Cup_Site | df22d993db2649a3eb118177bdd13358e3036e59 | [
"MIT"
] | null | null | null | contest/models.py | ISeaTeL/ISeaTeL_Cup_Site | df22d993db2649a3eb118177bdd13358e3036e59 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from datetime import datetime
# Create your models here.
class Clarification(models.Model):
cid = models.IntegerField()
asker = models.TextField()
question = models.TextField()
reply = models.TextField()
time = models.DateTimeField(default=datet... | 27.352113 | 102 | 0.617405 | 697 | 5,826 | 5.05165 | 0.220947 | 0.076683 | 0.070151 | 0.049986 | 0.390798 | 0.372621 | 0.344504 | 0.3286 | 0.299063 | 0.289122 | 0 | 0.002826 | 0.271026 | 5,826 | 213 | 103 | 27.352113 | 0.82623 | 0.238757 | 0 | 0.259259 | 0 | 0 | 0.023865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.018519 | 0.037037 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
531ccc7f0cef76042793389d8a9751955fdfb694 | 544 | py | Python | Timbuchalka/Section-4/If Statements.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 6 | 2021-07-26T14:21:25.000Z | 2021-07-26T14:32:01.000Z | Timbuchalka/Section-4/If Statements.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 2 | 2021-12-10T10:25:19.000Z | 2021-12-10T10:27:15.000Z | Timbuchalka/Section-4/If Statements.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | null | null | null | name = input ("Please enter your name:\t")
age = int(input ("how old are you, {0}? ".format(name)))
if age > 100:
print ("Nice Try 🙄 ")
else:
if age < 0:
print ("I don`t beleve you.... as if your age is in minus (lol)")
if age >= 18:
print ("You are old enough vote (yay!) ")
print... | 32 | 73 | 0.564338 | 87 | 544 | 3.54023 | 0.551724 | 0.048701 | 0.019481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.266544 | 544 | 17 | 74 | 32 | 0.746867 | 0 | 0 | 0.133333 | 0 | 0 | 0.489908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
531faaecb3fed51b1de770e27177824979bf563f | 7,142 | py | Python | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/runtime/nrtdynmod.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/runtime/nrtdynmod.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1 | 2017-12-21T23:31:59.000Z | 2017-12-29T16:56:05.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/runtime/nrtdynmod.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | """
Dynamically generate the NRT module
"""
from __future__ import print_function, absolute_import, division
from numba.config import MACHINE_BITS
from numba import cgutils, types
from llvmlite import ir
# Flag to enable debug print in NRT_incref and NRT_decref
_debug_print = False
_word_type = ir.IntType(MACHINE_B... | 34.839024 | 83 | 0.675441 | 960 | 7,142 | 4.761458 | 0.2375 | 0.012032 | 0.023627 | 0.011157 | 0.252024 | 0.214833 | 0.175454 | 0.100197 | 0.100197 | 0.08182 | 0 | 0.002899 | 0.227107 | 7,142 | 204 | 84 | 35.009804 | 0.825181 | 0.232568 | 0 | 0.173913 | 1 | 0 | 0.053258 | 0.007932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069565 | false | 0 | 0.034783 | 0 | 0.147826 | 0.052174 | 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 |
5322892aacd8672f9ca6b4c898d13fd7f49c5d56 | 506 | py | Python | session04/python/system.py | TPRI/rsd-engineeringcourse | 81bdd9a05d6f56fe263fe85dd64db2e9ae90b6cf | [
"CC-BY-3.0"
] | null | null | null | session04/python/system.py | TPRI/rsd-engineeringcourse | 81bdd9a05d6f56fe263fe85dd64db2e9ae90b6cf | [
"CC-BY-3.0"
] | null | null | null | session04/python/system.py | TPRI/rsd-engineeringcourse | 81bdd9a05d6f56fe263fe85dd64db2e9ae90b6cf | [
"CC-BY-3.0"
] | null | null | null | ### "paths"
from os.path import join, dirname, abspath
# Load the data file from session 1
datapath=join(dirname(dirname(dirname(abspath(__file__)))),
'session01', 'data', 'inflammation-01.csv')
newpath=join(dirname(__file__), 'midvals.yaml')
### "files"
source = open(datapath)
import csv
reader = csv.re... | 24.095238 | 59 | 0.699605 | 69 | 506 | 5.014493 | 0.565217 | 0.095376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.146245 | 506 | 20 | 60 | 25.3 | 0.787037 | 0.116601 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53239879c3d7790d0e06db1bcf0d06e32186ac12 | 9,734 | py | Python | job_runner_worker/tests/unit/test_models.py | spilgames/job-runner-worker | e295dd5e755ee8b49aff59c4ac2edac715858948 | [
"BSD-3-Clause"
] | 5 | 2015-03-28T23:38:58.000Z | 2020-01-16T20:16:49.000Z | job_runner_worker/tests/unit/test_models.py | spilgames/job-runner-worker | e295dd5e755ee8b49aff59c4ac2edac715858948 | [
"BSD-3-Clause"
] | null | null | null | job_runner_worker/tests/unit/test_models.py | spilgames/job-runner-worker | e295dd5e755ee8b49aff59c4ac2edac715858948 | [
"BSD-3-Clause"
] | 1 | 2020-03-31T18:59:17.000Z | 2020-03-31T18:59:17.000Z | import unittest2 as unittest
from mock import Mock, patch
from requests.exceptions import RequestException
from job_runner_worker.models import (
BaseRestModel,
KillRequest,
RequestClientError,
RequestServerError,
Run,
retry_on_requests_error
)
class ModuleTestCase(unittest.TestCase):
""... | 34.39576 | 79 | 0.602938 | 1,050 | 9,734 | 5.274286 | 0.107619 | 0.086132 | 0.143554 | 0.109968 | 0.756049 | 0.698267 | 0.6961 | 0.665944 | 0.649693 | 0.649693 | 0 | 0.006793 | 0.258989 | 9,734 | 282 | 80 | 34.517731 | 0.760987 | 0.057325 | 0 | 0.603175 | 0 | 0 | 0.255006 | 0.097409 | 0 | 0 | 0 | 0 | 0.100529 | 1 | 0.111111 | false | 0 | 0.021164 | 0.042328 | 0.195767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.