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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b7b33463798fd40699812146ed64d96e90e0b25 | 904 | py | Python | SHIMON/api/theme.py | dosisod/SHIMON | bdcafc1d1036390e1872d0f17bbda511891e02dc | [
"MIT"
] | null | null | null | SHIMON/api/theme.py | dosisod/SHIMON | bdcafc1d1036390e1872d0f17bbda511891e02dc | [
"MIT"
] | 1 | 2020-03-06T07:17:27.000Z | 2020-03-06T07:17:27.000Z | SHIMON/api/theme.py | dosisod/SHIMON | bdcafc1d1036390e1872d0f17bbda511891e02dc | [
"MIT"
] | null | null | null | from pathlib import Path
from SHIMON.api.error import error_202, error_400
from SHIMON.api.api_base import ApiBase
from typing import TYPE_CHECKING
from SHIMON import HttpResponse
if TYPE_CHECKING:
from SHIMON.shimon import Shimon
class ApiTheme(ApiBase):
callname = "theme"
def __init__(self) -> None:... | 25.111111 | 76 | 0.672566 | 116 | 904 | 5.086207 | 0.431034 | 0.067797 | 0.044068 | 0.074576 | 0.138983 | 0.138983 | 0.138983 | 0 | 0 | 0 | 0 | 0.018156 | 0.207965 | 904 | 35 | 77 | 25.828571 | 0.805866 | 0.036504 | 0 | 0 | 0 | 0 | 0.065593 | 0.027618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.272727 | 0.045455 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3b7d0c093b2ae2d69cb261410df2a051e623fb88 | 6,633 | py | Python | mod_BRR.py | KIHestad/WoT-Battle_Results_Retriever | 4ae1664d2de3f97ad65ae78ac4c35e64502a3812 | [
"MIT"
] | null | null | null | mod_BRR.py | KIHestad/WoT-Battle_Results_Retriever | 4ae1664d2de3f97ad65ae78ac4c35e64502a3812 | [
"MIT"
] | null | null | null | mod_BRR.py | KIHestad/WoT-Battle_Results_Retriever | 4ae1664d2de3f97ad65ae78ac4c35e64502a3812 | [
"MIT"
] | 2 | 2021-11-10T19:11:48.000Z | 2022-03-13T10:06:22.000Z | import BigWorld
import AccountCommands
import ResMgr
import base64
import cPickle
import httplib
import json
import os
import traceback
import zlib
from account_helpers import BattleResultsCache
from battle_results_shared import *
from debug_utils import *
from threading import Thread
from urlparse import urlparse
fr... | 33.670051 | 132 | 0.679029 | 679 | 6,633 | 6.497791 | 0.270987 | 0.031732 | 0.015866 | 0.033998 | 0.153898 | 0.101541 | 0.064823 | 0.064823 | 0.064823 | 0.064823 | 0 | 0.00845 | 0.232776 | 6,633 | 197 | 133 | 33.670051 | 0.858518 | 0 | 0 | 0.277778 | 0 | 0.006173 | 0.112451 | 0.011155 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | 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 |
3b806627190662ee223821094fc347f84821f549 | 600 | py | Python | LeetCode/python3/1031.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/python3/1031.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/python3/1031.py | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution:
def maxSumTwoNoOverlap(self, A: List[int], L: int, M: int) -> int:
prefix, n, res, left = [0 for _ in range(len(A) + 1)], len(A) + 1, 0, 0
for i in range(1, n):
prefix[i] = prefix[i - 1] + A[i - 1]
for i in range(L + M, n):
left = max(left, prefix[i - ... | 42.857143 | 79 | 0.466667 | 99 | 600 | 2.818182 | 0.232323 | 0.250896 | 0.157706 | 0.11828 | 0.53405 | 0.487455 | 0.487455 | 0.487455 | 0.487455 | 0.487455 | 0 | 0.02356 | 0.363333 | 600 | 13 | 80 | 46.153846 | 0.706806 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 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 |
3b8073e7361d6f4b5e1bac642fadfc3b80576abf | 258 | py | Python | solutions/rf_eval.py | vcalderon2009/cqs_machine_learning | 935fe29bf355931c0fcdca01d965802fd166c4a1 | [
"MIT"
] | 5 | 2018-07-26T20:05:02.000Z | 2019-08-14T05:04:36.000Z | solutions/rf_eval.py | vcalderon2009/cqs_machine_learning | 935fe29bf355931c0fcdca01d965802fd166c4a1 | [
"MIT"
] | null | null | null | solutions/rf_eval.py | vcalderon2009/cqs_machine_learning | 935fe29bf355931c0fcdca01d965802fd166c4a1 | [
"MIT"
] | 17 | 2018-08-03T17:08:36.000Z | 2022-03-16T15:03:42.000Z |
from sklearn.ensemble import RandomForestClassifier
rf = RandomForestClassifier(n_jobs=4, criterion='entropy')
rf.fit(X_train, y_train)
y_train_pred = rf.predict(X_train)
from sklearn.metrics import precision_score
precision_score(y_train, y_train_pred)
| 23.454545 | 58 | 0.829457 | 38 | 258 | 5.342105 | 0.526316 | 0.118227 | 0.162562 | 0.118227 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.089147 | 258 | 10 | 59 | 25.8 | 0.859574 | 0 | 0 | 0 | 0 | 0 | 0.027237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3b8243213f774cf462f9dd403606bbe60798e072 | 6,116 | py | Python | abacat/deprecated/renamer.py | vinisalazar/bactools | 60911d7af6f6914816737a01141db868175e979f | [
"MIT"
] | 7 | 2019-09-27T04:19:48.000Z | 2021-02-18T10:14:05.000Z | abacat/deprecated/renamer.py | vinisalazar/bactools | 60911d7af6f6914816737a01141db868175e979f | [
"MIT"
] | 3 | 2019-09-27T02:50:26.000Z | 2019-09-27T05:04:36.000Z | abacat/deprecated/renamer.py | vinisalazar/bactools | 60911d7af6f6914816737a01141db868175e979f | [
"MIT"
] | null | null | null | import argparse
import gzip
import os
import shutil
import sys
from abacat.abacat_helper import timer_wrapper
"""
A script to rename files in assembly directory structure.
Input:
One or more assembly directories.
Output:
One or more assembly directories with the directory and all files renamed.
"""
def ls_and_decom... | 32.359788 | 118 | 0.636527 | 753 | 6,116 | 5.027888 | 0.282869 | 0.061014 | 0.015848 | 0.025357 | 0.226624 | 0.172478 | 0.131009 | 0.097728 | 0.05177 | 0.031167 | 0 | 0.008068 | 0.270438 | 6,116 | 188 | 119 | 32.531915 | 0.840206 | 0.226946 | 0 | 0.113402 | 0 | 0 | 0.133925 | 0.004775 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.041237 | false | 0.010309 | 0.061856 | 0 | 0.14433 | 0.051546 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3b85772511d8ae4bac0400a13a6497bd8bda0e4a | 3,195 | py | Python | webserver/rtsp_webserver.py | PatrickZad/updated_deep_sort | fb63741fd1bd8634a10f0d8b322c1930d03e8a09 | [
"MIT"
] | null | null | null | webserver/rtsp_webserver.py | PatrickZad/updated_deep_sort | fb63741fd1bd8634a10f0d8b322c1930d03e8a09 | [
"MIT"
] | null | null | null | webserver/rtsp_webserver.py | PatrickZad/updated_deep_sort | fb63741fd1bd8634a10f0d8b322c1930d03e8a09 | [
"MIT"
] | null | null | null | """
Main flask application
# Reference for start/stop trick:
https://stackoverflow.com/questions/49821707/starting-and-stopping-a-method-using-flask-routes-python
# TODO: Load ML model with redis and keep it for sometime.
1- detector/yolov3/detector.py |=> yolov3 weightfile -> redis cache
2- deepsort/deep... | 29.583333 | 112 | 0.657277 | 403 | 3,195 | 5.079404 | 0.434243 | 0.020518 | 0.024915 | 0.038105 | 0.051295 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010113 | 0.226291 | 3,195 | 107 | 113 | 29.859813 | 0.817961 | 0.231299 | 0 | 0.060606 | 0 | 0 | 0.163846 | 0.010731 | 0 | 0 | 0 | 0.028037 | 0.015152 | 1 | 0.106061 | false | 0 | 0.166667 | 0.015152 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b8767a9676ba4baa1904f24faa6ae1a4e111038 | 2,229 | py | Python | recipes/Python/576626_Skype_chat_to_speech/recipe-576626.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576626_Skype_chat_to_speech/recipe-576626.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576626_Skype_chat_to_speech/recipe-576626.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # ----------------------------------------------------------------------------------------------------
# Python / Skype4Py example that prints out chat messages
#
# Tested with Skype4Py version 0.9.28.5 and Skype verson 3.8.0.96
import sys
import os
import time
import Skype4Py
import random
def ndsSay(ndsWords):
... | 32.304348 | 116 | 0.4917 | 193 | 2,229 | 5.673575 | 0.502591 | 0.03653 | 0.025571 | 0.0621 | 0.16621 | 0.16621 | 0.16621 | 0.16621 | 0.16621 | 0.16621 | 0 | 0.008593 | 0.164648 | 2,229 | 68 | 117 | 32.779412 | 0.579484 | 0.436967 | 0 | 0.243902 | 0 | 0 | 0.133871 | 0.062903 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b9093214d59b7f41c255d0b9dc4279a9e62347b | 8,075 | py | Python | aiotruenas_client/websockets/machine.py | sdwilsh/aiotruenas-client | 38b49dab724b8d23b272c701135c1a54ed25aa1f | [
"MIT"
] | 11 | 2020-12-30T00:33:01.000Z | 2022-01-25T07:56:55.000Z | aiotruenas_client/websockets/machine.py | sdwilsh/aiotruenas-client | 38b49dab724b8d23b272c701135c1a54ed25aa1f | [
"MIT"
] | 35 | 2020-09-29T07:45:49.000Z | 2022-03-29T15:02:52.000Z | aiotruenas_client/websockets/machine.py | sdwilsh/aiotruenas-client | 38b49dab724b8d23b272c701135c1a54ed25aa1f | [
"MIT"
] | 3 | 2020-12-30T18:19:03.000Z | 2021-09-18T17:32:22.000Z | from __future__ import annotations
import asyncio
import logging
import ssl
from typing import Any, Dict, List, Optional, cast
from aiotruenas_client.job import TJobId
from aiotruenas_client.websockets.jail import CachingJail, CachingJailStateFetcher
from aiotruenas_client.websockets.job import CachingJob, CachingJob... | 37.211982 | 119 | 0.663901 | 928 | 8,075 | 5.621767 | 0.195043 | 0.030669 | 0.023002 | 0.026835 | 0.312823 | 0.24861 | 0.155262 | 0.141844 | 0.092774 | 0.092774 | 0 | 0 | 0.255851 | 8,075 | 216 | 120 | 37.384259 | 0.868198 | 0.05226 | 0 | 0.11039 | 0 | 0 | 0.03457 | 0.00434 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0.084416 | 0.097403 | 0 | 0.298701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b9661ffe1711c4c460ad09c88798f150b58d641 | 136 | py | Python | github_stats/__init__.py | dbeley/github_stats | f15abe7a9eeb82d1b50c125da6a57f9e5831aae2 | [
"MIT"
] | null | null | null | github_stats/__init__.py | dbeley/github_stats | f15abe7a9eeb82d1b50c125da6a57f9e5831aae2 | [
"MIT"
] | null | null | null | github_stats/__init__.py | dbeley/github_stats | f15abe7a9eeb82d1b50c125da6a57f9e5831aae2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
extract statistics from github repos
"""
__version__ = "1.0"
name = "github_stats"
| 12.363636 | 36 | 0.632353 | 18 | 136 | 4.5 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.169118 | 136 | 10 | 37 | 13.6 | 0.690265 | 0.580882 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
3b987a1f79f7bfaf2c72258d94a5baffab841dbf | 2,403 | py | Python | pfds.py | dulek/alt-tester | d3925e28b2b01ca25706546646b921de90fcd5c8 | [
"MIT"
] | null | null | null | pfds.py | dulek/alt-tester | d3925e28b2b01ca25706546646b921de90fcd5c8 | [
"MIT"
] | null | null | null | pfds.py | dulek/alt-tester | d3925e28b2b01ca25706546646b921de90fcd5c8 | [
"MIT"
] | null | null | null | from lm_pickers.avoid import AvoidLMPicker
from lm_pickers.maxcover import MaxcoverPicker
from lm_pickers.rand import RandomLMPicker
from lm_pickers.farthest import FarthestLMPicker, FarthestBLMPicker
from lm_pickers.optimized_farthest import OptimizedFarthestLMPicker,\
OptimizedFarthestBLMPicker
from lm_pickers.op... | 27 | 69 | 0.615065 | 201 | 2,403 | 7.208955 | 0.223881 | 0.077295 | 0.173913 | 0.223602 | 0.023464 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.265918 | 2,403 | 88 | 70 | 27.306818 | 0.818027 | 0 | 0 | 0.325581 | 0 | 0 | 0.183104 | 0.017894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.127907 | 0 | 0.127907 | 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 |
3ba02cd7d1f7578bc37b86b05bb5969958a110a5 | 3,011 | py | Python | Chapter11/zwquant_pyqt/zwTools.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | Chapter11/zwquant_pyqt/zwTools.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | Chapter11/zwquant_pyqt/zwTools.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | 1 | 2021-02-04T06:56:18.000Z | 2021-02-04T06:56:18.000Z | # -*- coding: utf-8 -*-
'''
模块名:zwTools.py
默认缩写:zwt,示例:zwTools.py as zwt
【简介】
zwQT量化软件,常用工具(非量化)函数模块
zw量化,py量化第一品牌
网站:http://www.ziwang.com zw网站
py量化QQ总群 124134140 千人大群 zwPython量化&大数据
开发:zw量化开源团队 2016.04.01 首发
'''
#
# zwTools.py as zwt.
import sys,os
import time
impo... | 18.138554 | 85 | 0.53537 | 411 | 3,011 | 3.858881 | 0.50365 | 0.006305 | 0.013871 | 0.017654 | 0.052963 | 0.052963 | 0 | 0 | 0 | 0 | 0 | 0.034288 | 0.292926 | 3,011 | 166 | 86 | 18.138554 | 0.710662 | 0.346729 | 0 | 0.029851 | 0 | 0 | 0.044406 | 0.012111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0.014925 | 0.208955 | 0.014925 | 0.552239 | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e5a3a9d67d9b67405a8cddc3c4ca9005eb02197 | 3,091 | py | Python | yolo/train.py | acobo/tf2-eager-yolo3 | 7f3195657b6e10fb154c422e1122421a9bcf1340 | [
"MIT"
] | null | null | null | yolo/train.py | acobo/tf2-eager-yolo3 | 7f3195657b6e10fb154c422e1122421a9bcf1340 | [
"MIT"
] | null | null | null | yolo/train.py | acobo/tf2-eager-yolo3 | 7f3195657b6e10fb154c422e1122421a9bcf1340 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import tensorflow as tf
import os
from tqdm import tqdm
from yolo.loss import loss_fn
def train_fn(model, train_generator, valid_generator=None, learning_rate=1e-4, num_epoches=500, save_dname=None):
save_fname = _setup(save_dname)
optimizer = tf.kera... | 31.865979 | 114 | 0.62504 | 398 | 3,091 | 4.557789 | 0.271357 | 0.074421 | 0.037486 | 0.048512 | 0.292172 | 0.292172 | 0.251378 | 0.189636 | 0.189636 | 0.189636 | 0 | 0.011176 | 0.276286 | 3,091 | 96 | 115 | 32.197917 | 0.799732 | 0.05694 | 0 | 0.208955 | 0 | 0 | 0.066192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014925 | 0.074627 | null | null | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8e6caebe842208a1291c4a9352fa771fe9ec7d6c | 415 | py | Python | upload_studio/migrations/0012_project_source_external.py | jerryrwu/harvest | 6f405254fef59c84637bc976c252eef703b1cbc5 | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | upload_studio/migrations/0012_project_source_external.py | jerryrwu/harvest | 6f405254fef59c84637bc976c252eef703b1cbc5 | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | upload_studio/migrations/0012_project_source_external.py | jerryrwu/harvest | 6f405254fef59c84637bc976c252eef703b1cbc5 | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | # Generated by Django 2.1.7 on 2020-10-09 08:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('upload_studio', '0011_project_project_type'),
]
operations = [
migrations.AddField(
model_name='project',
name='sour... | 21.842105 | 63 | 0.619277 | 46 | 415 | 5.434783 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075908 | 0.26988 | 415 | 18 | 64 | 23.055556 | 0.749175 | 0.108434 | 0 | 0 | 1 | 0 | 0.163043 | 0.067935 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e70ed2885f85399cac0e7d5d617803f972f2ecc | 2,326 | py | Python | src/adafruit_blinka/microcontroller/samsung/exynos5422/pin.py | tekktrik/Adafruit_Blinka | d094997a471301a2147d58f1693aa1d3a49df6cd | [
"MIT"
] | null | null | null | src/adafruit_blinka/microcontroller/samsung/exynos5422/pin.py | tekktrik/Adafruit_Blinka | d094997a471301a2147d58f1693aa1d3a49df6cd | [
"MIT"
] | null | null | null | src/adafruit_blinka/microcontroller/samsung/exynos5422/pin.py | tekktrik/Adafruit_Blinka | d094997a471301a2147d58f1693aa1d3a49df6cd | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Samsung Exynos5422
Ref:
Linux kernel 4.14.y (hardkernel)
"""
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
GPIOA0_0 = GPIO171 = Pin((26, 0))
GPIOA0_1 = GPIO172 = Pin((26... | 26.134831 | 79 | 0.649183 | 401 | 2,326 | 3.566085 | 0.296758 | 0.027972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208963 | 0.174979 | 2,326 | 88 | 80 | 26.431818 | 0.536217 | 0.115649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015385 | 0 | 0.015385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e71f0a8c668b989f6d4ece72433f23fcc71bad3 | 7,965 | py | Python | stacklog/__init__.py | micahjsmith/stacklog | 0ba7d5fa6f2da3c1a10a7e23c37858c4c0e4640a | [
"MIT"
] | 1 | 2020-03-20T20:43:17.000Z | 2020-03-20T20:43:17.000Z | stacklog/__init__.py | micahjsmith/stacklog | 0ba7d5fa6f2da3c1a10a7e23c37858c4c0e4640a | [
"MIT"
] | 1 | 2020-08-11T12:46:49.000Z | 2020-08-11T12:46:49.000Z | stacklog/__init__.py | micahjsmith/stacklog | 0ba7d5fa6f2da3c1a10a7e23c37858c4c0e4640a | [
"MIT"
] | 1 | 2021-04-26T06:48:26.000Z | 2021-04-26T06:48:26.000Z | # -*- coding: utf-8 -*-
"""Top-level package for stacklog."""
__author__ = 'Micah Smith'
__email__ = 'micahjsmith@gmail.com'
__version__ = '1.1.0'
import time
from collections import defaultdict
from functools import wraps
from ._time_formatters import format_time
from .compat import clearlist, getnargs
__all__ = ... | 28.754513 | 80 | 0.629002 | 960 | 7,965 | 5.042708 | 0.244792 | 0.023136 | 0.016526 | 0.018798 | 0.239207 | 0.14088 | 0.127246 | 0.088411 | 0.075604 | 0.075604 | 0 | 0.002575 | 0.26855 | 7,965 | 276 | 81 | 28.858696 | 0.828356 | 0.404896 | 0 | 0.016667 | 0 | 0 | 0.027506 | 0.004895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216667 | false | 0 | 0.041667 | 0 | 0.425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e741df69df853bc66acf95e0fbe757d1461df35 | 822 | py | Python | scraper/storage_spiders/phanphoilaptopcom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/phanphoilaptopcom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/phanphoilaptopcom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='jshop productfull']//h1",
'price' : "//span[@id='block_price']",
'category' : "",
'description' : "//div[@class=... | 30.444444 | 76 | 0.647202 | 90 | 822 | 5.733333 | 0.655556 | 0.098837 | 0.127907 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001437 | 0.153285 | 822 | 26 | 77 | 31.615385 | 0.739943 | 0.145985 | 0 | 0 | 1 | 0 | 0.410587 | 0.147353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 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 |
8e74255e0320de9a6c613fa4f53df176ed1ce2d7 | 4,662 | py | Python | karabo_data/tests/mockdata/mpod.py | zhujun98/karabo_data | 68ee19d52cd7f140052d029545a7b6169ec9752a | [
"BSD-3-Clause"
] | 13 | 2018-05-03T08:41:06.000Z | 2021-03-21T01:47:26.000Z | karabo_data/tests/mockdata/mpod.py | zhujun98/karabo_data | 68ee19d52cd7f140052d029545a7b6169ec9752a | [
"BSD-3-Clause"
] | 213 | 2019-11-22T08:37:11.000Z | 2022-03-30T13:03:13.000Z | extra_data/tests/mockdata/mpod.py | RobertRosca/EXtra-data | b226dc4601807551418a5422e7590540e2d736ee | [
"BSD-3-Clause"
] | 11 | 2020-01-17T14:52:59.000Z | 2021-10-01T09:09:12.000Z | from .base import DeviceBase
class MPOD(DeviceBase):
control_keys = [
('Logger/file/maxBackupIndex', 'u4', ()),
('Logger/file/maxFileSize', 'u4', ()),
('Logger/file/mode', 'u4', ()),
('autoRearm', 'u1', ()),
('boards/board_0/boardStatus/bitModuleIsEventActive', 'u1', ()),
... | 54.847059 | 85 | 0.566924 | 391 | 4,662 | 6.713555 | 0.2711 | 0.085714 | 0.095238 | 0.090667 | 0.271238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027129 | 0.201416 | 4,662 | 84 | 86 | 55.5 | 0.677948 | 0 | 0 | 0 | 0 | 0 | 0.584728 | 0.495067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012048 | 0 | 0.036145 | 0 | 0 | 0 | 0 | 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 |
8e74d845cd14f3f1e84660e43fec87aed347b618 | 3,498 | py | Python | generate-sample-data.py | wkphyo/databases-and-python | 830d6613e59c2cf254dcedcfc1fa344721f666e1 | [
"MIT"
] | null | null | null | generate-sample-data.py | wkphyo/databases-and-python | 830d6613e59c2cf254dcedcfc1fa344721f666e1 | [
"MIT"
] | null | null | null | generate-sample-data.py | wkphyo/databases-and-python | 830d6613e59c2cf254dcedcfc1fa344721f666e1 | [
"MIT"
] | null | null | null | """
This script serves to generate several datasets that are uploaded to both a
relational database solution (MySQL) and NoSQL data store (MongoDB). The data
is randomly generated using the random and Faker packages. It is then
transformed to a dataframe object and inserted into the appropriate table or
collection. ... | 22.714286 | 78 | 0.700114 | 484 | 3,498 | 4.921488 | 0.293388 | 0.050798 | 0.035684 | 0.020151 | 0.224601 | 0.123846 | 0.070949 | 0.029387 | 0 | 0 | 0 | 0.023977 | 0.189251 | 3,498 | 153 | 79 | 22.862745 | 0.815938 | 0.167238 | 0 | 0.25 | 1 | 0 | 0.248619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e78c7b0b10a123a688a285ece5b31b91a3c1146 | 2,209 | py | Python | tests/general_test.py | parloma/parloma-backend-cloud | 562b5af444d0370fa45392449fc0612ce66310a4 | [
"BSD-3-Clause"
] | null | null | null | tests/general_test.py | parloma/parloma-backend-cloud | 562b5af444d0370fa45392449fc0612ce66310a4 | [
"BSD-3-Clause"
] | null | null | null | tests/general_test.py | parloma/parloma-backend-cloud | 562b5af444d0370fa45392449fc0612ce66310a4 | [
"BSD-3-Clause"
] | null | null | null | from server.models import Program, User
from datetime import datetime, timedelta
from flask_jwt_extended import decode_token, create_access_token
from freezegun import freeze_time
from jwt import ExpiredSignatureError
import pytest
from mongoengine.errors import NotUniqueError
def test_app_running(client):
res =... | 32.485294 | 84 | 0.687189 | 293 | 2,209 | 5.03413 | 0.337884 | 0.061017 | 0.037288 | 0.062373 | 0.270508 | 0.165424 | 0.127458 | 0.127458 | 0.070508 | 0.070508 | 0 | 0.020385 | 0.200543 | 2,209 | 67 | 85 | 32.970149 | 0.814836 | 0 | 0 | 0.092593 | 0 | 0 | 0.081938 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.148148 | false | 0.240741 | 0.12963 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8e7f22260b4e6ec0fda0d2c3fc55cf60e82bfb46 | 403 | py | Python | src/FlaskTpp/App/api/admin/__init__.py | MaiXiaochai/flask | 31547477ae17f263888f285a8e4c9d6bd473fdc9 | [
"Apache-2.0"
] | null | null | null | src/FlaskTpp/App/api/admin/__init__.py | MaiXiaochai/flask | 31547477ae17f263888f285a8e4c9d6bd473fdc9 | [
"Apache-2.0"
] | null | null | null | src/FlaskTpp/App/api/admin/__init__.py | MaiXiaochai/flask | 31547477ae17f263888f285a8e4c9d6bd473fdc9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
--------------------------------------
@File : admin.py
@Author : maixiaochai
@Email : maixiaochai@outlook.com
@Created on : 2020/5/9 13:29
--------------------------------------
"""
from flask_restful import Api
from App.api.admin.api_admin_user import AdminUserResource
ap... | 23.705882 | 58 | 0.563275 | 44 | 403 | 5.022727 | 0.681818 | 0.144796 | 0.099548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031519 | 0.133995 | 403 | 16 | 59 | 25.1875 | 0.601719 | 0.53598 | 0 | 0 | 0 | 0 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8e83915644dd7821572fea0eb8f1c4b751f9a432 | 3,266 | py | Python | bob/io/base/test_utils.py | bioidiap/bob.io.base | 37df660c8ee6ccd298e5a6ab495b38139a29da93 | [
"BSD-3-Clause"
] | null | null | null | bob/io/base/test_utils.py | bioidiap/bob.io.base | 37df660c8ee6ccd298e5a6ab495b38139a29da93 | [
"BSD-3-Clause"
] | 12 | 2015-06-30T13:44:32.000Z | 2016-06-08T11:56:33.000Z | bob/io/base/test_utils.py | bioidiap/bob.io.base | 37df660c8ee6ccd298e5a6ab495b38139a29da93 | [
"BSD-3-Clause"
] | 2 | 2015-07-16T13:35:57.000Z | 2015-11-02T12:34:40.000Z | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Thu Feb 7 09:58:22 2013
#
# Copyright (C) 2011-2013 Idiap Research Institute, Martigny, Switzerland
"""Re-usable decorators and utilities for bob test code
"""
import os
import functools
import nose.plugins.skip
def datafil... | 28.649123 | 132 | 0.683099 | 479 | 3,266 | 4.592902 | 0.379958 | 0.015909 | 0.020455 | 0.023636 | 0.068182 | 0.051818 | 0.033636 | 0.033636 | 0.033636 | 0.033636 | 0 | 0.008511 | 0.208512 | 3,266 | 113 | 133 | 28.902655 | 0.842553 | 0.689835 | 0 | 0 | 0 | 0 | 0.090807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.24 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e8476a0d86041594a8a9295c87e85fe47cc193a | 5,766 | py | Python | posti/tests/unit.py | ffuentese/django-posti | 7b9365e882957be8bc60a1350fbeeaca632bd0e6 | [
"MIT"
] | null | null | null | posti/tests/unit.py | ffuentese/django-posti | 7b9365e882957be8bc60a1350fbeeaca632bd0e6 | [
"MIT"
] | 1 | 2022-02-10T07:05:56.000Z | 2022-02-10T07:05:56.000Z | posti/tests/unit.py | ffuentese/django-posti | 7b9365e882957be8bc60a1350fbeeaca632bd0e6 | [
"MIT"
] | null | null | null | import os, time
from django.test import TestCase, override_settings
from posti.forms import PostForm
from django.urls import reverse
from posti.models import Post
import django.urls
from django.contrib.auth.models import User
from django.core import mail
from django.contrib.auth.forms import UserCreationForm
# Crea... | 38.44 | 121 | 0.647763 | 743 | 5,766 | 4.899058 | 0.18035 | 0.02967 | 0.037363 | 0.032967 | 0.710165 | 0.65 | 0.603571 | 0.535165 | 0.488187 | 0.457692 | 0 | 0.008644 | 0.217482 | 5,766 | 149 | 122 | 38.697987 | 0.798094 | 0.054457 | 0 | 0.473684 | 0 | 0 | 0.238494 | 0.008558 | 0 | 0 | 0 | 0 | 0.189474 | 1 | 0.189474 | false | 0.073684 | 0.094737 | 0 | 0.326316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e8af9eaaef5d9bbff70a4006e80317980462cb2 | 3,095 | py | Python | src/project/parser.py | chrisn437/ServerGit | 5c19eaf809e2b04552108043803b5678998d1dff | [
"MIT"
] | 1 | 2021-11-18T09:47:01.000Z | 2021-11-18T09:47:01.000Z | src/project/parser.py | chrisn437/ServerGit | 5c19eaf809e2b04552108043803b5678998d1dff | [
"MIT"
] | null | null | null | src/project/parser.py | chrisn437/ServerGit | 5c19eaf809e2b04552108043803b5678998d1dff | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
# TODO Add TriMesh library and save the scene as a trimesh object
from src.Structs.Vector3 import Vector3
import trimesh
from src.project.sceneProcessor import SceneProcessor
from src.Structs.Vector3 import Vector3
from src.Structs.Marker import Marker
from src.Structs.Mesh import Mes... | 34.775281 | 93 | 0.614863 | 386 | 3,095 | 4.909326 | 0.282383 | 0.01847 | 0.029551 | 0.02533 | 0.191029 | 0.157256 | 0.081266 | 0.068602 | 0.03905 | 0 | 0 | 0.020309 | 0.268174 | 3,095 | 89 | 94 | 34.775281 | 0.816336 | 0.189661 | 0 | 0.150943 | 0 | 0 | 0.04205 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.075472 | false | 0 | 0.132075 | 0 | 0.226415 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e8fb491a33d3b3c2de249f099ebf2ffd5db740b | 4,612 | py | Python | scripts/Gemma/combine_pheno_and_plink_fam.py | MorrellLAB/Crossing_Over | 15c88e752eb7c98d70818799a92d411e24bd6382 | [
"MIT"
] | 1 | 2021-07-15T20:22:19.000Z | 2021-07-15T20:22:19.000Z | scripts/Gemma/combine_pheno_and_plink_fam.py | MorrellLAB/Crossing_Over | 15c88e752eb7c98d70818799a92d411e24bd6382 | [
"MIT"
] | null | null | null | scripts/Gemma/combine_pheno_and_plink_fam.py | MorrellLAB/Crossing_Over | 15c88e752eb7c98d70818799a92d411e24bd6382 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""This script adds xo phenotypes from the phenotype table generated to
the FAM files in preparation for dowstream analysis with GEMMA. This
script handles the multi-column phenotype table and creates a FAM file
that includes every phenotype column. Currently works with PLINK 1.9 FAM
file format.... | 37.193548 | 113 | 0.665438 | 695 | 4,612 | 4.225899 | 0.25036 | 0.035751 | 0.038134 | 0.045284 | 0.249574 | 0.184542 | 0.115424 | 0.099081 | 0.089207 | 0.039496 | 0 | 0.006783 | 0.232871 | 4,612 | 123 | 114 | 37.495935 | 0.823347 | 0.372507 | 0 | 0.140625 | 1 | 0 | 0.044813 | 0.008116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.03125 | 0 | 0.140625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e90356344dd5f8aa90d91194cab9c8407a014db | 4,654 | py | Python | arcutils/tests/test_templatetags.py | zhuitrec/django-arcutils | 4079ef641f43baab4cda4681b1f76e320f12eb38 | [
"MIT"
] | null | null | null | arcutils/tests/test_templatetags.py | zhuitrec/django-arcutils | 4079ef641f43baab4cda4681b1f76e320f12eb38 | [
"MIT"
] | null | null | null | arcutils/tests/test_templatetags.py | zhuitrec/django-arcutils | 4079ef641f43baab4cda4681b1f76e320f12eb38 | [
"MIT"
] | null | null | null | from django.http import HttpRequest
from django.template import Context, Template
from django.test import TestCase
from arcutils.templatetags.arc import cdn_url, google_analytics
class TestCDNURLTag(TestCase):
def test_cdn_url_has_no_scheme_by_default(self):
self.assertEqual(cdn_url('/x/y/z'), '//cdn.re... | 42.309091 | 97 | 0.657714 | 552 | 4,654 | 5.331522 | 0.177536 | 0.030921 | 0.012232 | 0.061842 | 0.753993 | 0.733945 | 0.69419 | 0.666327 | 0.571865 | 0.53245 | 0 | 0.000533 | 0.193382 | 4,654 | 109 | 98 | 42.697248 | 0.783431 | 0 | 0 | 0.390805 | 0 | 0 | 0.1893 | 0.059734 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.16092 | false | 0 | 0.045977 | 0 | 0.264368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e953c785d75b00cdf9df956c0545b26ca9007aa | 351 | py | Python | moksha/apps/demo/MokshaJQPlotDemo/jqplotdemo/__init__.py | lmacken/moksha | b75325b8fd0fb3ea2d393ddb81c27f32ae7e0b96 | [
"Apache-2.0"
] | 1 | 2019-06-27T11:36:50.000Z | 2019-06-27T11:36:50.000Z | moksha/apps/demo/MokshaJQPlotDemo/jqplotdemo/__init__.py | lmacken/moksha | b75325b8fd0fb3ea2d393ddb81c27f32ae7e0b96 | [
"Apache-2.0"
] | null | null | null | moksha/apps/demo/MokshaJQPlotDemo/jqplotdemo/__init__.py | lmacken/moksha | b75325b8fd0fb3ea2d393ddb81c27f32ae7e0b96 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""The JQPlotDemo package"""
# Severe Monkey Patching, until this patch gets accepted
# http://toscawidgets.org/trac/tw/ticket/30
from jqplotdemo import js
from tw import api
api.TWEncoder = js.TWEncoder
api.js_symbol = js.js_symbol
api.js_callback = js.js_callback
api.js_function = js.js_funct... | 27 | 56 | 0.760684 | 57 | 351 | 4.508772 | 0.526316 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00974 | 0.122507 | 351 | 12 | 57 | 29.25 | 0.824675 | 0.404558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e97c562be1af00db25eb96c2617d1c059c4b5eb | 1,295 | py | Python | renters_rights/rules/migrations/0002_auto_20210615_2249.py | codeforkyana/renters-rights | 23bb794771c737532ff36fbab87c7fe7652aa4d1 | [
"MIT"
] | 4 | 2019-08-30T19:04:27.000Z | 2020-07-01T02:05:17.000Z | renters_rights/rules/migrations/0002_auto_20210615_2249.py | codeforkyana/renters-rights | 23bb794771c737532ff36fbab87c7fe7652aa4d1 | [
"MIT"
] | 42 | 2019-08-23T17:03:55.000Z | 2022-03-12T00:04:26.000Z | renters_rights/rules/migrations/0002_auto_20210615_2249.py | codeforkyana/renters-rights | 23bb794771c737532ff36fbab87c7fe7652aa4d1 | [
"MIT"
] | 2 | 2020-03-20T00:13:42.000Z | 2020-04-24T18:28:36.000Z | # Generated by Django 3.2.4 on 2021-06-15 22:49
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("rules", "0001_initial")]
operations = [
migrations.CreateModel(
name="Ordinance",
fields=[
... | 34.078947 | 114 | 0.574517 | 128 | 1,295 | 5.671875 | 0.5 | 0.044077 | 0.057851 | 0.090909 | 0.369146 | 0.292011 | 0.190083 | 0.190083 | 0.190083 | 0.190083 | 0 | 0.023052 | 0.296525 | 1,295 | 37 | 115 | 35 | 0.773875 | 0.034749 | 0 | 0.354839 | 1 | 0 | 0.11859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 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 |
8e981f1e0ed89e9be9209c8ad03d26110cd390ae | 773 | py | Python | aoc2019/helpers/day04.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | aoc2019/helpers/day04.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | aoc2019/helpers/day04.py | mdalzell/advent-of-code-2019 | ee3c228542999c8efa3961dc5f64dd9c0272826a | [
"MIT"
] | null | null | null | import re
import sys
consecutiveDigitsRegex = r"(\d)\1"
exactlyTwoConsecutiveDigitsRegex = r"(?:(\d)(?!\1)(\d)(?=\2)\d(?!\2))|(?:^(\d)(?=\3)\d(?!\3))"
def hasRegexMatch(password, regex):
return re.search(regex, str(password)) is not None
def validPassword(password, regex):
return hasRegexMatch(password, r... | 24.935484 | 94 | 0.652005 | 92 | 773 | 5.478261 | 0.413043 | 0.077381 | 0.011905 | 0.043651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.19793 | 773 | 30 | 95 | 25.766667 | 0.793548 | 0 | 0 | 0 | 0 | 0.05 | 0.080207 | 0.072445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.5 | 0.1 | 0.1 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8ea2639c73f4b2c36b87dbf95fc05bb190cf2e33 | 204 | py | Python | plugins/source.py | Xe/h | 4cb24196ef44fd29fb33174c322f4f44e64fb9f6 | [
"Fair"
] | 7 | 2015-12-08T09:48:04.000Z | 2019-07-01T04:58:04.000Z | plugins/source.py | Xe/h | 4cb24196ef44fd29fb33174c322f4f44e64fb9f6 | [
"Fair"
] | null | null | null | plugins/source.py | Xe/h | 4cb24196ef44fd29fb33174c322f4f44e64fb9f6 | [
"Fair"
] | 3 | 2016-05-22T23:08:05.000Z | 2020-03-12T14:14:49.000Z | import os
from util import hook
@hook.command
def source(inp):
if inp == "pull":
os.system("git pull")
return "updating..."
return "my source code: https://git.xeserv.us/xena/h"
| 18.545455 | 57 | 0.617647 | 30 | 204 | 4.2 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 204 | 10 | 58 | 20.4 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.328431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ea5ec6cbac291e0666217047b29df68730f0205 | 606 | py | Python | day-02/part-1/remi.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 8 | 2019-12-01T08:56:46.000Z | 2019-12-05T21:21:12.000Z | day-02/part-1/remi.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 10 | 2019-11-25T09:56:20.000Z | 2021-05-10T19:57:48.000Z | day-02/part-1/remi.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 5 | 2019-12-01T08:19:57.000Z | 2020-11-23T09:50:19.000Z | from tool.runners.python import SubmissionPy
class RemiSubmission(SubmissionPy):
def run(self, s):
p = [int(n) for n in s.split(",")]
pc = 0
p[1] = 12
p[2] = 2
while True:
opcode = p[pc]
if opcode == 1:
a = p[p[pc + 1]]
... | 21.642857 | 44 | 0.349835 | 81 | 606 | 2.617284 | 0.432099 | 0.099057 | 0.113208 | 0.04717 | 0.273585 | 0.273585 | 0.273585 | 0.273585 | 0.273585 | 0.273585 | 0 | 0.061224 | 0.514851 | 606 | 27 | 45 | 22.444444 | 0.659864 | 0 | 0 | 0.190476 | 0 | 0 | 0.001653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8eab9a338debc9bcb55785cf61f093d9ccc54a23 | 200 | py | Python | test/test_ssh.py | process-project/UC5-API | 4befa6cf6854c6698e6ce10bad11334ffc893564 | [
"MIT"
] | null | null | null | test/test_ssh.py | process-project/UC5-API | 4befa6cf6854c6698e6ce10bad11334ffc893564 | [
"MIT"
] | 1 | 2020-11-02T17:58:45.000Z | 2020-11-02T17:58:45.000Z | test/test_ssh.py | process-project/UC5-API | 4befa6cf6854c6698e6ce10bad11334ffc893564 | [
"MIT"
] | null | null | null | """Unittest for papi.ssh.Ssh class"""
import unittest
class TestSsh(unittest.TestCase):
def test_noop(self):
self.assertEqual(True, True)
if __name__ == '__main__':
unittest.main() | 18.181818 | 37 | 0.685 | 25 | 200 | 5.12 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 200 | 11 | 38 | 18.181818 | 0.780488 | 0.155 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8eadf6db142ce9f0773fbca78680167b43f24286 | 2,508 | py | Python | tests/urlencode_utf8_test.py | p/webracer | 3eb40b520bbf884c4458482fc3a05a9a9632d026 | [
"BSD-2-Clause"
] | null | null | null | tests/urlencode_utf8_test.py | p/webracer | 3eb40b520bbf884c4458482fc3a05a9a9632d026 | [
"BSD-2-Clause"
] | null | null | null | tests/urlencode_utf8_test.py | p/webracer | 3eb40b520bbf884c4458482fc3a05a9a9632d026 | [
"BSD-2-Clause"
] | 1 | 2019-04-13T07:43:28.000Z | 2019-04-13T07:43:28.000Z | # -*- coding: utf-8 -*-
import unittest
import webracer
class UrlencodeUtf8Test(unittest.TestCase):
def test_urlencode_simple(self):
input = dict(a='a', b='b')
output = webracer.urlencode_utf8(input)
# dictionary keys are not ordered
self.assertTrue(output == 'a=a&b=b' or output ==... | 30.216867 | 68 | 0.55941 | 328 | 2,508 | 4.137195 | 0.240854 | 0.01916 | 0.017686 | 0.023581 | 0.558585 | 0.502579 | 0.502579 | 0.439204 | 0.439204 | 0.439204 | 0 | 0.01963 | 0.289075 | 2,508 | 82 | 69 | 30.585366 | 0.741447 | 0.051834 | 0 | 0.354839 | 0 | 0.016129 | 0.096121 | 0.01855 | 0 | 0 | 0 | 0 | 0.112903 | 1 | 0.209677 | false | 0 | 0.048387 | 0 | 0.274194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ebb2861426de4d889561fdebf85b2fb8e2304d7 | 418 | py | Python | waterspout_api/migrations/0013_modelarea_main_help_page_content.py | Water-Systems-Management-UCM/Waterspout | 78965f1e53b09f442e278dff72c290ceac22ed60 | [
"MIT"
] | 1 | 2020-09-10T20:43:24.000Z | 2020-09-10T20:43:24.000Z | waterspout_api/migrations/0013_modelarea_main_help_page_content.py | Water-Systems-Management-UCM/Waterspout | 78965f1e53b09f442e278dff72c290ceac22ed60 | [
"MIT"
] | 72 | 2020-05-28T17:20:12.000Z | 2022-03-28T14:11:40.000Z | waterspout_api/migrations/0013_modelarea_main_help_page_content.py | Water-Systems-Management-UCM/Waterspout | 78965f1e53b09f442e278dff72c290ceac22ed60 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2021-03-31 19:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('waterspout_api', '0012_modelareapreferences'),
]
operations = [
migrations.AddField(
model_name='modelarea',
name='mai... | 22 | 58 | 0.624402 | 44 | 418 | 5.795455 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.267943 | 418 | 18 | 59 | 23.222222 | 0.77451 | 0.102871 | 0 | 0 | 1 | 0 | 0.187668 | 0.126005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ebe9a74d8032da3d4d6720c05d99411f510cc54 | 2,141 | py | Python | src/implib/munkirepo.py | carlashley/adobe-mun-kinobi | a4e5fe4d67d7cd5318a41c9303734611932c188e | [
"Apache-2.0"
] | 2 | 2021-12-20T01:33:59.000Z | 2021-12-20T23:54:28.000Z | src/implib/munkirepo.py | carlashley/adobe-mun-kinobi | a4e5fe4d67d7cd5318a41c9303734611932c188e | [
"Apache-2.0"
] | null | null | null | src/implib/munkirepo.py | carlashley/adobe-mun-kinobi | a4e5fe4d67d7cd5318a41c9303734611932c188e | [
"Apache-2.0"
] | null | null | null | """munki repo"""
import plistlib
import sys
from pathlib import Path
from typing import Any, Dict
from .arguments import parse_repo_url
class MunkiImportPreferences:
"""munkiimport preferences"""
def __init__(self, domain: str = "com.googlecode.munki.munkiimport.plist") -> None:
self.domain = domain... | 34.532258 | 118 | 0.638954 | 252 | 2,141 | 5.293651 | 0.325397 | 0.062969 | 0.029235 | 0.041979 | 0.116942 | 0.116942 | 0.116942 | 0.053973 | 0 | 0 | 0 | 0.00062 | 0.246147 | 2,141 | 61 | 119 | 35.098361 | 0.825898 | 0.129379 | 0 | 0.15 | 0 | 0.025 | 0.195831 | 0.072408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.225 | 0 | 0.575 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ed0d088fa078005cdfe95f9dd4a28ff3d2fe552 | 2,310 | py | Python | data_analysis/analyze_data.py | mwakaba2/State-Farm-Distracted-Driver-Detection | 9008cfa9d3267cfde35164f3d7d8e4a2d94d8642 | [
"MIT"
] | 4 | 2018-04-12T02:44:56.000Z | 2021-07-18T08:04:05.000Z | data_analysis/analyze_data.py | mwakaba2/State-Farm-Distracted-Driver-Detection | 9008cfa9d3267cfde35164f3d7d8e4a2d94d8642 | [
"MIT"
] | null | null | null | data_analysis/analyze_data.py | mwakaba2/State-Farm-Distracted-Driver-Detection | 9008cfa9d3267cfde35164f3d7d8e4a2d94d8642 | [
"MIT"
] | 3 | 2017-11-27T01:38:15.000Z | 2019-05-23T06:00:32.000Z | import os
import random
import pandas as pd
def analyze_img_data():
'''
Stats about the image dataset
'''
IMG_DIR = './imgs'
TEST_PATH = os.path.join(IMG_DIR, 'test')
TRAIN_PATH = os.path.join(IMG_DIR, 'train')
test_num = len([name for name in os.listdir(TEST_PATH) if os.path.isfile(os.path.join(TEST_PATH, ... | 30.8 | 120 | 0.694372 | 336 | 2,310 | 4.5625 | 0.252976 | 0.031311 | 0.032616 | 0.027397 | 0.332681 | 0.332681 | 0.306588 | 0.26484 | 0.191781 | 0.134377 | 0 | 0.014049 | 0.137229 | 2,310 | 74 | 121 | 31.216216 | 0.755143 | 0.012121 | 0 | 0.117647 | 0 | 0 | 0.143052 | 0.022779 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.137255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ed1051b90c83fd42c2125034f9fa9858f735a06 | 2,252 | py | Python | pyventskalender/tag11.py | kopp/pyventskalender | 6f6455f3c1db07f65a772b2716e4be95fbcd1804 | [
"MIT"
] | null | null | null | pyventskalender/tag11.py | kopp/pyventskalender | 6f6455f3c1db07f65a772b2716e4be95fbcd1804 | [
"MIT"
] | null | null | null | pyventskalender/tag11.py | kopp/pyventskalender | 6f6455f3c1db07f65a772b2716e4be95fbcd1804 | [
"MIT"
] | null | null | null | # Heute geht es um das Dictionary, `dict`, einen Container, mit dem man Daten
# mit "Stichworten" ablegen und auslesen kann.
#
# Wir bleiben thematisch beim Einlesen der Datei mit Gewichten.
# Wie wir sie lesen und den Inhalt extrahieren haben wir verstanden.
# Doch um aktuell bspw. die Frage zu beantworten, was das Hö... | 32.171429 | 79 | 0.723801 | 315 | 2,252 | 5.161905 | 0.6 | 0.02214 | 0.01476 | 0.02583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050838 | 0.178952 | 2,252 | 70 | 80 | 32.171429 | 0.828556 | 0.799734 | 0 | 0 | 0 | 0 | 0.243842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ed5045f411cd29dfcfac49e84c6325d51f5f037 | 8,779 | py | Python | tests/test_signals.py | Roynecro97/easypy | 9f36732b558477557b8a57cfad2840767eff0d12 | [
"BSD-3-Clause"
] | 7 | 2020-03-23T08:30:29.000Z | 2020-12-05T14:51:49.000Z | tests/test_signals.py | Roynecro97/easypy | 9f36732b558477557b8a57cfad2840767eff0d12 | [
"BSD-3-Clause"
] | null | null | null | tests/test_signals.py | Roynecro97/easypy | 9f36732b558477557b8a57cfad2840767eff0d12 | [
"BSD-3-Clause"
] | 6 | 2020-04-28T12:20:14.000Z | 2022-02-15T15:01:42.000Z | import pytest
from contextlib import contextmanager
from easypy.signals import register_object, unregister_object, MissingIdentifier, PRIORITIES
from easypy.signals import on_test, on_async_test
from easypy.signals import on_test_identifier
from easypy.signals import on_ctx_test
from easypy.signals import on_ctx_test... | 20.803318 | 92 | 0.606789 | 1,182 | 8,779 | 4.300338 | 0.087986 | 0.051938 | 0.066103 | 0.014952 | 0.790872 | 0.716506 | 0.667322 | 0.567972 | 0.522526 | 0.496164 | 0 | 0.028382 | 0.277594 | 8,779 | 421 | 93 | 20.852732 | 0.7731 | 0.025629 | 0 | 0.697183 | 0 | 0 | 0.012535 | 0 | 0 | 0 | 0 | 0 | 0.123239 | 1 | 0.144366 | false | 0 | 0.059859 | 0 | 0.264085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ed8fba8bc5b6dafd08829ebe85afcbd0a535af7 | 1,485 | py | Python | Animations.py | KamilLoska/SpaceShooter | 5ae3e3a3565ac918c3a99c04e7c9bd29615e853d | [
"MIT"
] | 1 | 2021-05-18T06:36:37.000Z | 2021-05-18T06:36:37.000Z | Animations.py | KamilLoska/SpaceShooter | 5ae3e3a3565ac918c3a99c04e7c9bd29615e853d | [
"MIT"
] | null | null | null | Animations.py | KamilLoska/SpaceShooter | 5ae3e3a3565ac918c3a99c04e7c9bd29615e853d | [
"MIT"
] | null | null | null | import pygame
from pygame.sprite import Sprite
import sys
import os
class Explosion(Sprite):
def __init__(self, bosss):
super(Explosion, self).__init__()
self.images = []
self.bosss = bosss
for num in range(10):
img = pygame.image.load(resource_path(f"animations/ani{nu... | 31.595745 | 94 | 0.582492 | 193 | 1,485 | 4.378238 | 0.310881 | 0.071006 | 0.049704 | 0.054438 | 0.182249 | 0.12071 | 0 | 0 | 0 | 0 | 0 | 0.019157 | 0.29697 | 1,485 | 46 | 95 | 32.282609 | 0.79023 | 0 | 0 | 0.102564 | 0 | 0 | 0.021549 | 0.015488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.051282 | 0.102564 | 0 | 0.25641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8edbde743de84c132fe185bd9d6ed1fa1aeffebe | 4,135 | py | Python | rs_sections/models.py | RevSquare/rs_sections | a67f36ad7292aed859f826f1479c99bddcdc51d2 | [
"BSD-3-Clause"
] | null | null | null | rs_sections/models.py | RevSquare/rs_sections | a67f36ad7292aed859f826f1479c99bddcdc51d2 | [
"BSD-3-Clause"
] | null | null | null | rs_sections/models.py | RevSquare/rs_sections | a67f36ad7292aed859f826f1479c99bddcdc51d2 | [
"BSD-3-Clause"
] | null | null | null | import logging
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.translation import ugettext_lazy as _
from .consts import ORDER_BY_CHOICES, ORDER_BY_PRIORITY, SECTION_CONTENT_TYPES
from .managers im... | 32.81746 | 79 | 0.684885 | 491 | 4,135 | 5.558045 | 0.325866 | 0.044339 | 0.01539 | 0.018688 | 0.234885 | 0.137047 | 0.137047 | 0.137047 | 0.137047 | 0.057897 | 0 | 0.003127 | 0.226602 | 4,135 | 125 | 80 | 33.08 | 0.850219 | 0.240871 | 0 | 0.258065 | 0 | 0 | 0.058662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.032258 | 0.112903 | 0.016129 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d905206f50920a7a0f238e65850ee963eaa6f1b3 | 2,283 | py | Python | PS03/join1.py | explorerwjy/jw_anly502 | ea3312b6bd909b010906158436fb1bd4d431e6f8 | [
"CC0-1.0"
] | 2 | 2016-04-07T17:59:09.000Z | 2016-04-08T05:22:15.000Z | PS03/join1.py | explorerwjy/jw_anly502 | ea3312b6bd909b010906158436fb1bd4d431e6f8 | [
"CC0-1.0"
] | null | null | null | PS03/join1.py | explorerwjy/jw_anly502 | ea3312b6bd909b010906158436fb1bd4d431e6f8 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python2
# To get started with the join,
# try creating a new directory in HDFS that has both the fwiki data AND the maxmind data.
import mrjob
from mrjob.job import MRJob
from weblog import Weblog # imports class defined in weblog.py
import os
import re
import sys
class FwikiMaxmindJoin(MRJob):... | 31.273973 | 89 | 0.608848 | 303 | 2,283 | 4.511551 | 0.445545 | 0.040234 | 0.021946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021014 | 0.291283 | 2,283 | 72 | 90 | 31.708333 | 0.823857 | 0.21901 | 0 | 0.078431 | 0 | 0 | 0.094556 | 0.026934 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.117647 | 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 |
d909e67df6881e2a1dedd9ae235e8f5f9aff232f | 334 | py | Python | day2/jnpr/conftest.py | rhuey-eqix/pynet-ons | 7c7ce2d1aa263afa7701b2495b0e237110775a1d | [
"Apache-2.0"
] | 1 | 2021-12-21T04:57:32.000Z | 2021-12-21T04:57:32.000Z | day2/jnpr/conftest.py | rhuey-eqix/pynet-ons | 7c7ce2d1aa263afa7701b2495b0e237110775a1d | [
"Apache-2.0"
] | null | null | null | day2/jnpr/conftest.py | rhuey-eqix/pynet-ons | 7c7ce2d1aa263afa7701b2495b0e237110775a1d | [
"Apache-2.0"
] | 11 | 2021-12-07T16:04:22.000Z | 2022-02-09T12:20:05.000Z | import os
import pytest
from jnpr.junos import Device
@pytest.fixture(scope="module")
def pyez_connect():
"""Establish a PyEZ connection."""
password = os.environ["JNPR_PASSWORD"]
srx2 = {"host": "srx2.lasthop.io", "user": "pyclass", "password": password}
device = Device(**srx2)
device.open()
... | 23.857143 | 79 | 0.670659 | 41 | 334 | 5.414634 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.173653 | 334 | 13 | 80 | 25.692308 | 0.793478 | 0.083832 | 0 | 0 | 0 | 0 | 0.19 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d90a5a09f74e264e3e8dd2f3227573d89e09d69e | 2,279 | py | Python | soundcloud_degater/main.py | noahbaxter/SoundCloudDegater | 93a5e1ef6c9c39307b0f518e7e6e1838c1514cce | [
"Apache-2.0"
] | null | null | null | soundcloud_degater/main.py | noahbaxter/SoundCloudDegater | 93a5e1ef6c9c39307b0f518e7e6e1838c1514cce | [
"Apache-2.0"
] | null | null | null | soundcloud_degater/main.py | noahbaxter/SoundCloudDegater | 93a5e1ef6c9c39307b0f518e7e6e1838c1514cce | [
"Apache-2.0"
] | null | null | null | import sys
import os
from urllib.parse import urlparse
import click
import soundcloud_degater.util.package_constants as const
import soundcloud_degater.util.selenium_wrapper as sw
from soundcloud_degater.util.exceptions import SoundCloudDegaterException
from soundcloud_degater.degaters.soundcloud_parse impor... | 38.627119 | 121 | 0.682317 | 299 | 2,279 | 5.046823 | 0.431438 | 0.056329 | 0.04175 | 0.047714 | 0.091451 | 0.055666 | 0.055666 | 0.055666 | 0.055666 | 0.055666 | 0 | 0 | 0.224221 | 2,279 | 58 | 122 | 39.293103 | 0.853507 | 0.094778 | 0 | 0 | 0 | 0 | 0.2275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.113636 | 0.204545 | 0 | 0.272727 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d90ce0d41e7d1d4bb05ef6c592ff32b2655bfc53 | 1,836 | py | Python | test/test_uri.py | gap892003/mastermind | c59437d1b50d54149ea56e099b65721d1969e606 | [
"MIT"
] | 389 | 2016-01-26T10:26:08.000Z | 2022-03-24T12:18:15.000Z | test/test_uri.py | rasata/mastermind | dc6166666e0321bdf3f528eb7bb601c6aa4fd4f1 | [
"MIT"
] | 46 | 2016-01-18T10:13:04.000Z | 2018-02-08T12:42:28.000Z | test/test_uri.py | rasata/mastermind | dc6166666e0321bdf3f528eb7bb601c6aa4fd4f1 | [
"MIT"
] | 64 | 2016-02-19T05:10:19.000Z | 2022-02-17T02:06:41.000Z | import mastermind.uri as uri
def test_is_template():
assert uri.is_template("http://localhost:8000") is False
assert uri.is_template("http://localhost:8000/{a}/") is True
def test_eq():
assert uri.eq("http://localhost:8000", "http://localhost:8000")
assert uri.eq("https://localhost", "https://localh... | 36.72 | 74 | 0.60512 | 246 | 1,836 | 4.410569 | 0.162602 | 0.141014 | 0.116129 | 0.082949 | 0.686636 | 0.546544 | 0.309677 | 0.180645 | 0.141014 | 0.069124 | 0 | 0.027704 | 0.174292 | 1,836 | 49 | 75 | 37.469388 | 0.687995 | 0 | 0 | 0 | 0 | 0 | 0.361656 | 0 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | false | 0 | 0.028571 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d90e04bd23499087792ab3744921e2514acc488b | 397 | py | Python | unbrake-api/configuration/migrations/0003_auto_20190525_1230.py | fga-eps-mds/2019.1-Simulador-de-Frenagem | a7452511fa7059121cd9035a7b21f3cd8fec1548 | [
"MIT"
] | 9 | 2019-03-23T02:56:08.000Z | 2019-08-29T21:32:00.000Z | unbrake-api/configuration/migrations/0003_auto_20190525_1230.py | fga-eps-mds/2019.1-Simulador-de-Frenagem | a7452511fa7059121cd9035a7b21f3cd8fec1548 | [
"MIT"
] | 260 | 2019-03-23T01:07:29.000Z | 2022-03-29T16:31:48.000Z | unbrake-api/configuration/migrations/0003_auto_20190525_1230.py | fga-eps-mds/2019.1-Simulador-de-Frenagem | a7452511fa7059121cd9035a7b21f3cd8fec1548 | [
"MIT"
] | 2 | 2019-05-07T03:39:58.000Z | 2019-09-09T07:02:11.000Z | # Generated by Django 2.2 on 2019-05-25 12:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('configuration', '0002_auto_20190525_1229'),
]
operations = [
migrations.AlterField(
model_name='config',
name='is_defa... | 20.894737 | 53 | 0.612091 | 41 | 397 | 5.804878 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104895 | 0.279597 | 397 | 18 | 54 | 22.055556 | 0.727273 | 0.108312 | 0 | 0 | 1 | 0 | 0.147727 | 0.065341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9142e7eb9b72ab7bf241a352a9c8db8e71034a8 | 824 | py | Python | test/type/url/exception_handling/combo/search_settings_1_test.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | 2 | 2022-02-20T10:03:19.000Z | 2022-03-22T11:17:10.000Z | test/type/url/exception_handling/combo/search_settings_1_test.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | test/type/url/exception_handling/combo/search_settings_1_test.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | from contextlib import nullcontext as does_not_raise
from typing import Any
import pytest
from _mock_data.url.test_set_1 import INVALID_URL, VALID_URL
from _mock_data.xpath.test_set_2 import VALID_XPATH
from browserist.exception.url import URLSyntaxError
from browserist.model.combo_settings.search import SearchSettin... | 32.96 | 87 | 0.751214 | 107 | 824 | 5.429907 | 0.420561 | 0.068847 | 0.077453 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.182039 | 824 | 24 | 88 | 34.333333 | 0.85905 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d9168f348e1a87c99dcfe4531e78b944695ae493 | 431 | py | Python | registration/migrations/0004_attendee_attended.py | OpenGeoLabs/gismentors-registration | caea938691fa8ec4331d1aa81bb820ac42734eea | [
"MIT"
] | 1 | 2018-05-19T22:47:36.000Z | 2018-05-19T22:47:36.000Z | registration/migrations/0004_attendee_attended.py | OpenGeoLabs/gismentors-registration | caea938691fa8ec4331d1aa81bb820ac42734eea | [
"MIT"
] | 33 | 2018-09-05T12:54:04.000Z | 2020-10-12T07:31:50.000Z | registration/migrations/0004_attendee_attended.py | OpenGeoLabs/gismentors-registration | caea938691fa8ec4331d1aa81bb820ac42734eea | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2018-09-27 11:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registration', '0003_invoice_fix'),
]
operations = [
migrations.AddField(
model_name='courseattendee',
name='attende... | 21.55 | 53 | 0.605568 | 43 | 431 | 5.976744 | 0.813953 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061889 | 0.287703 | 431 | 19 | 54 | 22.684211 | 0.775244 | 0.104408 | 0 | 0 | 1 | 0 | 0.130208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9179f7eb8964039f453e004a16c886ec502d1bc | 853 | py | Python | dati_2020/09/ex1.py | shishitao/boffi_dynamics | 365f16d047fb2dbfc21a2874790f8bef563e0947 | [
"MIT"
] | null | null | null | dati_2020/09/ex1.py | shishitao/boffi_dynamics | 365f16d047fb2dbfc21a2874790f8bef563e0947 | [
"MIT"
] | null | null | null | dati_2020/09/ex1.py | shishitao/boffi_dynamics | 365f16d047fb2dbfc21a2874790f8bef563e0947 | [
"MIT"
] | 2 | 2019-06-23T12:32:39.000Z | 2021-08-15T18:33:55.000Z | from scipy import *
from scipy.optimize import newton
from scipy.integrate import quad
to8=range(8)
betas=[newton(lambda x: cos(x)+1/cosh(x), (2*n+1)*pi/2) for n in to8]
coeff=[(cosh(b)+cos(b))/(sinh(b)+sin(b)) for b in betas]
fi=[lambda x, n = n:
cosh(betas[n]*x)-cos(betas[n]*x) - coeff[n]*(sinh(betas[n]*x)-si... | 26.65625 | 92 | 0.545135 | 187 | 853 | 2.486631 | 0.224599 | 0.043011 | 0.12043 | 0.135484 | 0.372043 | 0.329032 | 0.305376 | 0.253763 | 0.253763 | 0.253763 | 0 | 0.058651 | 0.200469 | 853 | 31 | 93 | 27.516129 | 0.623167 | 0 | 0 | 0 | 0 | 0 | 0.036342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d9262a3e189eb4bbe23bb96e94870e18443745de | 651 | py | Python | OrderedDict_tutorial.py | NightmareQAQ/python-notes | 4e766be06073a495ff9654f0dd8c0bb03310c559 | [
"MIT"
] | null | null | null | OrderedDict_tutorial.py | NightmareQAQ/python-notes | 4e766be06073a495ff9654f0dd8c0bb03310c559 | [
"MIT"
] | null | null | null | OrderedDict_tutorial.py | NightmareQAQ/python-notes | 4e766be06073a495ff9654f0dd8c0bb03310c559 | [
"MIT"
] | null | null | null | # An OrderedDict is a dictionary subclass that remembers the order in which its contents are added.
from collections import OrderedDict
if __name__ == "__main__":
print('Regular dictionary:')
regular_dic = dict()
regular_dic['a'] = 'A'
regular_dic['b'] = 'B'
regular_dic['c'] = 'C'
regular_dic['... | 25.038462 | 99 | 0.58679 | 94 | 651 | 3.829787 | 0.361702 | 0.194444 | 0.027778 | 0.044444 | 0.15 | 0.066667 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.25192 | 651 | 25 | 100 | 26.04 | 0.73922 | 0.149002 | 0 | 0.1 | 0 | 0 | 0.106884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | 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 |
d92b40e50ddf916180df88c280e2dc4a94eb05df | 3,003 | py | Python | tests/lego/test_hybrid.py | nrupatunga/pynetbuilder | 4202d3c2e7f4725be9441d6f22952e8eb398fc4c | [
"BSD-2-Clause"
] | 381 | 2016-08-03T07:28:36.000Z | 2022-01-26T18:10:37.000Z | tests/lego/test_hybrid.py | yhkim8412/pynetbuilder | 4202d3c2e7f4725be9441d6f22952e8eb398fc4c | [
"BSD-2-Clause"
] | 18 | 2016-08-09T05:59:30.000Z | 2020-11-04T07:18:05.000Z | tests/lego/test_hybrid.py | yhkim8412/pynetbuilder | 4202d3c2e7f4725be9441d6f22952e8eb398fc4c | [
"BSD-2-Clause"
] | 167 | 2016-08-03T17:01:42.000Z | 2021-07-21T13:09:35.000Z | from caffe.proto import caffe_pb2
import google.protobuf as pb
from caffe import layers as L
from caffe import params as P
import caffe
import sys
sys.path.append('../netbuilder')
def test_conv_bn_relu_lego():
from lego.hybrid import ConvBNReLULego
n = caffe.NetSpec()
n.data, n.label = L.ImageData(image_d... | 42.295775 | 128 | 0.646021 | 431 | 3,003 | 4.324826 | 0.201856 | 0.032189 | 0.022532 | 0.041309 | 0.709764 | 0.658262 | 0.612661 | 0.612661 | 0.612661 | 0.612661 | 0 | 0.026763 | 0.216117 | 3,003 | 70 | 129 | 42.9 | 0.765081 | 0.056277 | 0 | 0.428571 | 0 | 0 | 0.042094 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 1 | 0.107143 | false | 0 | 0.214286 | 0 | 0.321429 | 0.017857 | 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 |
d92d9bfa2d9ea84760ce0ae1bcee5ba11cd896ac | 2,807 | py | Python | github/__init__.py | biwin/github | af8f3dd9cd77add9f46f3274d35f05b10a023b44 | [
"Apache-2.0"
] | 1 | 2021-06-07T17:27:10.000Z | 2021-06-07T17:27:10.000Z | github/__init__.py | biwin/github | af8f3dd9cd77add9f46f3274d35f05b10a023b44 | [
"Apache-2.0"
] | null | null | null | github/__init__.py | biwin/github | af8f3dd9cd77add9f46f3274d35f05b10a023b44 | [
"Apache-2.0"
] | null | null | null | import requests
class GitHub(object):
action = None
_action = None
user = None
BASE_URL = 'https://api.github.com'
repo = None
def __init__(self):
self.headers = {
"Accept": "application/vnd.github.v3+json"
}
def __make_call(self, endpoint, method='GET'):
... | 34.654321 | 118 | 0.60171 | 344 | 2,807 | 4.72093 | 0.223837 | 0.073892 | 0.073276 | 0.081897 | 0.415025 | 0.400862 | 0.355296 | 0.334975 | 0.334975 | 0.285714 | 0 | 0.007756 | 0.265052 | 2,807 | 80 | 119 | 35.0875 | 0.779447 | 0.0114 | 0 | 0.2 | 0 | 0 | 0.179589 | 0.081861 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.184615 | false | 0 | 0.015385 | 0 | 0.353846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d92dc5f928f439a3c5c1c18fe2d7ff8747e6ab75 | 518 | py | Python | setup.py | jhelgert/kickbase-api-python | 6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2 | [
"MIT"
] | 7 | 2020-08-17T07:20:30.000Z | 2022-02-03T19:21:53.000Z | setup.py | jhelgert/kickbase-api-python | 6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2 | [
"MIT"
] | 4 | 2020-11-01T10:39:11.000Z | 2021-07-30T12:20:52.000Z | setup.py | jhelgert/kickbase-api-python | 6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2 | [
"MIT"
] | 4 | 2020-11-01T09:12:39.000Z | 2021-08-23T13:25:00.000Z | from setuptools import setup
setup(
name='Kickbase_API',
version='0.0.8',
packages=['kickbase_api', 'kickbase_api.models', 'kickbase_api.models.response'],
url='https://github.com/kevinskyba/kickbase-api-python',
license='MIT',
author='kevinskyba',
author_email='kevinskyba@live.de',
des... | 28.777778 | 85 | 0.683398 | 61 | 518 | 5.639344 | 0.672131 | 0.159884 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.160232 | 518 | 17 | 86 | 30.470588 | 0.783908 | 0 | 0 | 0 | 0 | 0 | 0.420849 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d92f2b9eac3549968267f5b53344e38e2fdbf2a4 | 15,557 | py | Python | echidna/scripts/tutorials/getting_started.py | ashleyrback/echidna | cd579b01f5db0e6a4edca558494bac3434ea4b3d | [
"MIT"
] | 7 | 2015-01-29T13:59:26.000Z | 2020-01-28T20:06:32.000Z | echidna/scripts/tutorials/getting_started.py | ashleyrback/echidna | cd579b01f5db0e6a4edca558494bac3434ea4b3d | [
"MIT"
] | 142 | 2015-01-05T10:57:53.000Z | 2016-10-11T12:28:02.000Z | echidna/scripts/tutorials/getting_started.py | ashleyrback/echidna | cd579b01f5db0e6a4edca558494bac3434ea4b3d | [
"MIT"
] | 10 | 2015-01-08T10:18:32.000Z | 2016-01-29T10:54:35.000Z | """ Python version of getting started tutorial.
Please see https://github.com/snoplusuk/echidna/wiki/GettingStarted or the
jupyter notebook form of this tutorial for further details.
This script:
* Creates :class:`echidna.core.spectra.Spectra` instance
* Fills `Spectra`
* Plots `Spectra`
* Applies cuts and smears... | 33.746204 | 78 | 0.685736 | 2,274 | 15,557 | 4.627089 | 0.262093 | 0.006653 | 0.008554 | 0.006463 | 0.052462 | 0.0249 | 0.019578 | 0.014446 | 0.014446 | 0.014446 | 0 | 0.008863 | 0.224015 | 15,557 | 460 | 79 | 33.819565 | 0.86274 | 0.654561 | 0 | 0.024096 | 0 | 0 | 0.065823 | 0.008861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096386 | null | null | 0.168675 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d93301ff881ad1d44ec8f2e493fdc03dcaf9a78e | 369 | py | Python | aoc2020/day10/day10_part1.py | GetPastTheMonkey/advent-of-code | db80be6d87baba4d5315cc69276905c55762da86 | [
"MIT"
] | 1 | 2019-09-15T16:37:24.000Z | 2019-09-15T16:37:24.000Z | aoc2020/day10/day10_part1.py | GetPastTheMonkey/advent-of-code | db80be6d87baba4d5315cc69276905c55762da86 | [
"MIT"
] | null | null | null | aoc2020/day10/day10_part1.py | GetPastTheMonkey/advent-of-code | db80be6d87baba4d5315cc69276905c55762da86 | [
"MIT"
] | null | null | null | from utils import get_input_lines
jolts = []
for line in get_input_lines(__file__):
jolts.append(int(line))
jolts.sort()
diff_count = [0, 0, 0]
jolt = 0
for j in jolts:
diff = j - jolt
if 0 < diff < len(diff_count) + 1:
diff_count[diff - 1] += 1
jolt = j
# Add another difference of 3
diff_co... | 18.45 | 38 | 0.639566 | 64 | 369 | 3.46875 | 0.453125 | 0.243243 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045936 | 0.233062 | 369 | 19 | 39 | 19.421053 | 0.738516 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 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 |
d9382f0d4ff8c6260741e205ac119ccb9f248af1 | 3,035 | py | Python | DBWriter.py | Origami404/WeatherGetter | 1fd1a59032ccb6b9637bb9ba78e6e20ab011c393 | [
"MIT"
] | 2 | 2019-06-12T12:42:32.000Z | 2020-05-05T08:00:29.000Z | DBWriter.py | Origami404/WeatherGetter | 1fd1a59032ccb6b9637bb9ba78e6e20ab011c393 | [
"MIT"
] | null | null | null | DBWriter.py | Origami404/WeatherGetter | 1fd1a59032ccb6b9637bb9ba78e6e20ab011c393 | [
"MIT"
] | null | null | null | import sqlite3
import os
import Logger
def weather_connect():
return sqlite3.connect('./JiangmenWeather.db')
# TODO 把这些东西都改改啊妈耶重复的打开数据库/链接/关闭出现了多少次啊. 写个高阶函数简便一下
def init():
if os.path.exists('inited.conf'):
Logger.get_logger('DBWriter_init').info('Has been init, skip')
return
create_tabl... | 35.705882 | 109 | 0.564086 | 348 | 3,035 | 4.761494 | 0.324713 | 0.114062 | 0.07242 | 0.055522 | 0.30175 | 0.273989 | 0.211829 | 0.1207 | 0 | 0 | 0 | 0.007455 | 0.337068 | 3,035 | 84 | 110 | 36.130952 | 0.816103 | 0.016145 | 0 | 0.208955 | 0 | 0.014925 | 0.597315 | 0.04396 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.089552 | false | 0 | 0.044776 | 0.014925 | 0.19403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d93ab5e1251723be14d07ff75f32e015209bc68f | 300 | py | Python | tests/tutorial/dictish_step_4_test.py | DevL/dictish | ac29ee63c0eceae42099aa08af5dd3f921d276df | [
"MIT"
] | null | null | null | tests/tutorial/dictish_step_4_test.py | DevL/dictish | ac29ee63c0eceae42099aa08af5dd3f921d276df | [
"MIT"
] | null | null | null | tests/tutorial/dictish_step_4_test.py | DevL/dictish | ac29ee63c0eceae42099aa08af5dd3f921d276df | [
"MIT"
] | null | null | null | import pytest
from tutorial.dictish_step_4 import Dictish
DICTISH = Dictish([("a", 1), ("b", 2), ("c", 3)])
def test_a_dictish_is_subscriptable():
assert DICTISH["b"] == 2
def test_subscript_with_a_missing_key():
with pytest.raises(KeyError, match="missing"):
DICTISH["missing"]
| 21.428571 | 50 | 0.686667 | 42 | 300 | 4.642857 | 0.595238 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019763 | 0.156667 | 300 | 13 | 51 | 23.076923 | 0.750988 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9442f48d316efc87299ac877e7fd5e7d653c8cd | 3,613 | py | Python | scripts/demanded.py | jubitaneja/souper-cgo20-artifact | 7ebc9bf09654bf401003aabf4a67ec8efed70be7 | [
"Apache-2.0"
] | 5 | 2020-01-08T20:36:01.000Z | 2022-02-12T09:17:04.000Z | section-4.1/extra-scripts/demanded.py | jubitaneja/artifact-cgo | 98664b6f8939c5528ea2aa7713d441c20a6c67ab | [
"Apache-2.0"
] | null | null | null | section-4.1/extra-scripts/demanded.py | jubitaneja/artifact-cgo | 98664b6f8939c5528ea2aa7713d441c20a6c67ab | [
"Apache-2.0"
] | 1 | 2021-09-27T10:09:06.000Z | 2021-09-27T10:09:06.000Z | import collections
import os
import sys
souper_dict = {}
llvm_dict = {}
from_llvm = False
def countZeros(bits):
zeroCount = 0
for i in range(0, len(bits)):
if bits[i] == '0':
zeroCount = zeroCount+1
return zeroCount
with open(sys.argv[1], "r") as read_handle:
with open(sys.argv[2], "a") as write_ha... | 30.108333 | 85 | 0.562137 | 465 | 3,613 | 4.253763 | 0.230108 | 0.105662 | 0.145602 | 0.063701 | 0.327604 | 0.287159 | 0.238625 | 0.238625 | 0.238625 | 0.238625 | 0 | 0.010851 | 0.336839 | 3,613 | 119 | 86 | 30.361345 | 0.814691 | 0.131746 | 0 | 0.390244 | 0 | 0 | 0.111538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d947d6498bb6d6a2803e1cafc2af637720b67b89 | 2,051 | py | Python | setup.py | ogarraux/download-station-api | 32514f39ab65f614e479d7084cce8274ebcfc960 | [
"MIT"
] | null | null | null | setup.py | ogarraux/download-station-api | 32514f39ab65f614e479d7084cce8274ebcfc960 | [
"MIT"
] | 1 | 2022-02-07T13:46:01.000Z | 2022-02-07T13:46:01.000Z | setup.py | ogarraux/download-station-api | 32514f39ab65f614e479d7084cce8274ebcfc960 | [
"MIT"
] | 1 | 2021-12-05T10:47:52.000Z | 2021-12-05T10:47:52.000Z | #!/usr/bin/env python
from typing import List
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
# TODO: Get this working instead of the text lists b... | 28.486111 | 90 | 0.635787 | 255 | 2,051 | 4.996078 | 0.478431 | 0.070644 | 0.070644 | 0.081633 | 0.051805 | 0.051805 | 0.051805 | 0 | 0 | 0 | 0 | 0.03536 | 0.214042 | 2,051 | 71 | 91 | 28.887324 | 0.754963 | 0.05802 | 0 | 0.035088 | 0 | 0 | 0.409569 | 0.036803 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.017544 | false | 0 | 0.035088 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d94b484a9c16a51eaf28a8b3c18590af2513c77c | 600 | py | Python | 6 kyu - Write Number in Expanded Form.py | ricardopizzimenti/Codewars | bbebc3f62642e22109d6a5ac0cdd638bca02e6ca | [
"MIT"
] | null | null | null | 6 kyu - Write Number in Expanded Form.py | ricardopizzimenti/Codewars | bbebc3f62642e22109d6a5ac0cdd638bca02e6ca | [
"MIT"
] | null | null | null | 6 kyu - Write Number in Expanded Form.py | ricardopizzimenti/Codewars | bbebc3f62642e22109d6a5ac0cdd638bca02e6ca | [
"MIT"
] | null | null | null | """
Write Number in Expanded Form
You will be given a number and you will need to return it as a string in Expanded Form.
For example:
expanded_form(12) # Should return '10 + 2'
expanded_form(42) # Should return '40 + 2'
expanded_form(70304) # Should return '70000 + 300 + 4'
NOTE: All numbers will be whole numbers g... | 22.222222 | 87 | 0.618333 | 96 | 600 | 3.8125 | 0.520833 | 0.229508 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078475 | 0.256667 | 600 | 26 | 88 | 23.076923 | 0.742152 | 0.55 | 0 | 0 | 0 | 0 | 0.019084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.1 | 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 |
d94f099ee92eaae8f74fbf60388416fa9cdd663a | 139 | py | Python | tests/resources/inp-sumprod10.py | loki04/picire | caf28c02377f3ac79024278b1d4886cc9d4bff81 | [
"BSD-3-Clause"
] | 38 | 2016-05-13T16:10:10.000Z | 2022-02-03T09:33:53.000Z | tests/resources/inp-sumprod10.py | loki04/picire | caf28c02377f3ac79024278b1d4886cc9d4bff81 | [
"BSD-3-Clause"
] | 3 | 2019-02-12T13:55:41.000Z | 2020-04-22T10:27:39.000Z | tests/resources/inp-sumprod10.py | loki04/picire | caf28c02377f3ac79024278b1d4886cc9d4bff81 | [
"BSD-3-Clause"
] | 7 | 2016-05-13T16:09:57.000Z | 2020-04-22T09:53:07.000Z | #!/usr/bin/env python3
sum = 0
prod = 1
for i in range(1,11):
sum += i
prod *= i
print('sum: %d' % sum)
print('prod: %d' % prod)
| 12.636364 | 24 | 0.532374 | 26 | 139 | 2.846154 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.258993 | 139 | 10 | 25 | 13.9 | 0.660194 | 0.151079 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
d951c43847877f8f097f2d3ef4cf9c7ab3541a76 | 673 | py | Python | class_02.py | abhishek4554/python37 | 7e313010bbed333ec0c699801a3ab2315da2681c | [
"MIT"
] | null | null | null | class_02.py | abhishek4554/python37 | 7e313010bbed333ec0c699801a3ab2315da2681c | [
"MIT"
] | null | null | null | class_02.py | abhishek4554/python37 | 7e313010bbed333ec0c699801a3ab2315da2681c | [
"MIT"
] | null | null | null | # my name is abhishek. all are comments
# print("hie") # ijko
"""
file = module in python
"""
'''
data type int,float,string,boolean,none- says particular datatype as it doe not have value actually false
data structure - list, dictionary.
'''
# everything in python is call by reference, what is done after delete a f... | 29.26087 | 106 | 0.725111 | 106 | 673 | 4.566038 | 0.660377 | 0.049587 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001845 | 0.194651 | 673 | 22 | 107 | 30.590909 | 0.891144 | 0.72214 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d95991620a0c21738339caf73652d66dc4294356 | 1,086 | py | Python | memberportal/api_meeting/migrations/0003_auto_20211005_0015.py | snoopen/MemberMatters | 218d215aec3a32a34d7ff3c32df5b5525c461bd9 | [
"MIT"
] | null | null | null | memberportal/api_meeting/migrations/0003_auto_20211005_0015.py | snoopen/MemberMatters | 218d215aec3a32a34d7ff3c32df5b5525c461bd9 | [
"MIT"
] | null | null | null | memberportal/api_meeting/migrations/0003_auto_20211005_0015.py | snoopen/MemberMatters | 218d215aec3a32a34d7ff3c32df5b5525c461bd9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-10-04 14:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("api_meeting", "0002_auto_20201118_2210"),
]
operations = [
migrations.RemoveField(
model_name="meeting",
name="group... | 26.487805 | 70 | 0.494475 | 92 | 1,086 | 5.706522 | 0.543478 | 0.068571 | 0.091429 | 0.114286 | 0.350476 | 0.350476 | 0.205714 | 0.205714 | 0.205714 | 0.205714 | 0 | 0.04955 | 0.38674 | 1,086 | 40 | 71 | 27.15 | 0.738739 | 0.041436 | 0 | 0.441176 | 1 | 0 | 0.12512 | 0.022137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.117647 | 0 | 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 |
d95b65cf936d704340473953ea64932cdb3963f1 | 20,110 | py | Python | pinocchio/ccompiler/src/ArithBuses.py | anthonydelgado/pinocchio | a1f1836679b8a135d85f2094bfaafc972101557a | [
"MIT"
] | null | null | null | pinocchio/ccompiler/src/ArithBuses.py | anthonydelgado/pinocchio | a1f1836679b8a135d85f2094bfaafc972101557a | [
"MIT"
] | null | null | null | pinocchio/ccompiler/src/ArithBuses.py | anthonydelgado/pinocchio | a1f1836679b8a135d85f2094bfaafc972101557a | [
"MIT"
] | null | null | null | from Buses import *
from ArithmeticFieldOps import *
##############################################################################
# Arithmetic operators
##############################################################################
class ArithmeticBus(Bus):
def __init__(self, board, major):
Bus.__init... | 35.095986 | 128 | 0.613575 | 2,579 | 20,110 | 4.495541 | 0.113222 | 0.041401 | 0.054856 | 0.031741 | 0.572451 | 0.471623 | 0.400811 | 0.333621 | 0.292393 | 0.252976 | 0 | 0.010822 | 0.255644 | 20,110 | 572 | 129 | 35.157343 | 0.763712 | 0.095525 | 0 | 0.412178 | 0 | 0 | 0.027636 | 0 | 0 | 0 | 0 | 0.001748 | 0.046838 | 0 | null | null | 0 | 0.004684 | null | null | 0.007026 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d95c60ebb9c2e4b02f6db71d46d3e513c33b77eb | 1,212 | py | Python | resources/user.py | neilitalia/hallogram | 8ae66a6e881fb97c852d3f92c735413f4c8a35a4 | [
"MIT"
] | null | null | null | resources/user.py | neilitalia/hallogram | 8ae66a6e881fb97c852d3f92c735413f4c8a35a4 | [
"MIT"
] | null | null | null | resources/user.py | neilitalia/hallogram | 8ae66a6e881fb97c852d3f92c735413f4c8a35a4 | [
"MIT"
] | 1 | 2021-10-07T14:50:51.000Z | 2021-10-07T14:50:51.000Z | from flask import request
from flask_restful import Resource
from models.user import User
from models.db import db
from sqlalchemy.orm import joinedload
from sqlalchemy import select
class Users(Resource):
def get(self):
users = User.find_all()
return [u.json() for u in users]
def post(self):... | 27.545455 | 75 | 0.611386 | 161 | 1,212 | 4.503106 | 0.304348 | 0.041379 | 0.057931 | 0.041379 | 0.234483 | 0.184828 | 0.184828 | 0.184828 | 0.102069 | 0 | 0 | 0.003367 | 0.264851 | 1,212 | 43 | 76 | 28.186047 | 0.810325 | 0 | 0 | 0.171429 | 0 | 0 | 0.076733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.171429 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d95f78ee6600ca3ee360a7d199494311f6f83b29 | 3,293 | py | Python | komiksowiec/comics/dilbert_test.py | pidpawel/komiksowiec | 2ebb5f0ddddca503b258e1d77de951264f1b95af | [
"MIT"
] | null | null | null | komiksowiec/comics/dilbert_test.py | pidpawel/komiksowiec | 2ebb5f0ddddca503b258e1d77de951264f1b95af | [
"MIT"
] | null | null | null | komiksowiec/comics/dilbert_test.py | pidpawel/komiksowiec | 2ebb5f0ddddca503b258e1d77de951264f1b95af | [
"MIT"
] | null | null | null | import responses
import os.path
import re
from pprint import pprint
from . import dilbert
@responses.activate
def test_crawler():
def file_callback(request):
if request.url == "http://dilbert.com/?starting_point=03":
filename = "dilbert_test3.html"
elif request.url == "http://dilbert.c... | 44.5 | 108 | 0.675068 | 402 | 3,293 | 5.465174 | 0.293532 | 0.177515 | 0.061447 | 0.08193 | 0.423305 | 0.400091 | 0.269003 | 0.096495 | 0.078289 | 0 | 0 | 0.091818 | 0.179775 | 3,293 | 73 | 109 | 45.109589 | 0.721585 | 0.102946 | 0 | 0 | 0 | 0 | 0.386024 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.038462 | false | 0 | 0.096154 | 0 | 0.173077 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d98720323419ddbecf84d33e79371c4d504f4226 | 1,306 | py | Python | src/logs/log_service.py | HitLuca/predict-python | 14f2f55cb29f817a5871d4c0b11a3758285301ca | [
"MIT"
] | null | null | null | src/logs/log_service.py | HitLuca/predict-python | 14f2f55cb29f817a5871d4c0b11a3758285301ca | [
"MIT"
] | null | null | null | src/logs/log_service.py | HitLuca/predict-python | 14f2f55cb29f817a5871d4c0b11a3758285301ca | [
"MIT"
] | null | null | null | from django.core.files.base import ContentFile
from django.core.files.storage import default_storage
from pm4py.objects.log.exporter.xes.factory import export_log
from pm4py.objects.log.importer.xes.factory import import_log
from pm4py.objects.log.log import EventLog
from src.logs.models import Log
from src.utils.file... | 37.314286 | 107 | 0.7366 | 184 | 1,306 | 5.032609 | 0.375 | 0.025918 | 0.051836 | 0.061555 | 0.047516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002765 | 0.169219 | 1,306 | 34 | 108 | 38.411765 | 0.850691 | 0.085758 | 0 | 0 | 0 | 0 | 0.058081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.333333 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d994f6259b249e81d2910114ccf3649e5901be89 | 5,828 | py | Python | holoclean/featurization/database_worker.py | ankur-gos/HoloClean | efd39e2bf2da66f2bc40c67e4179c51b105bc3de | [
"Apache-2.0"
] | 5 | 2018-11-20T07:58:05.000Z | 2020-04-30T06:08:51.000Z | holoclean/featurization/database_worker.py | ankur-gos/HoloClean | efd39e2bf2da66f2bc40c67e4179c51b105bc3de | [
"Apache-2.0"
] | null | null | null | holoclean/featurization/database_worker.py | ankur-gos/HoloClean | efd39e2bf2da66f2bc40c67e4179c51b105bc3de | [
"Apache-2.0"
] | 3 | 2018-11-16T08:52:33.000Z | 2021-02-10T15:39:04.000Z | from threading import Thread, Lock
from holoclean.dataengine import DataEngine
import threading
import time
import sys
from collections import deque
printLock = Lock()
class DatabaseWorker(Thread):
"""
DatabaseWorker will retrieve queries to run from queries and execute them
until a -1 is received
""... | 33.302857 | 79 | 0.543068 | 603 | 5,828 | 5.058043 | 0.223881 | 0.050492 | 0.068525 | 0.061311 | 0.384262 | 0.346557 | 0.314098 | 0.28 | 0.237705 | 0.205574 | 0 | 0.003788 | 0.36582 | 5,828 | 174 | 80 | 33.494253 | 0.821429 | 0.005662 | 0 | 0.382609 | 0 | 0 | 0.063045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052174 | null | null | 0.104348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
793ef2719f4fca50e0c77d77bafec50bd3a091ba | 1,964 | py | Python | alipay/aop/api/response/AlipayOpenAgentOrderQueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayOpenAgentOrderQueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayOpenAgentOrderQueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenAgentOrderQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenAgentOrderQueryResponse, self).__init__()
self._agent_app_id = No... | 29.757576 | 106 | 0.677189 | 234 | 1,964 | 5.32906 | 0.183761 | 0.057739 | 0.072173 | 0.044908 | 0.027265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000671 | 0.240835 | 1,964 | 65 | 107 | 30.215385 | 0.835681 | 0.021385 | 0 | 0.096154 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.096154 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79494260afb9153a1f9d94dd9508adb533b44866 | 2,619 | py | Python | recepmod/tests/test_Main.py | thanatosmin/FcgR-binding | db54bff479d326b41c74a78d3ca2755a8b7fc7e6 | [
"MIT"
] | 1 | 2019-08-22T14:56:30.000Z | 2019-08-22T14:56:30.000Z | recepmod/tests/test_Main.py | meyer-lab/FcgR-binding | db54bff479d326b41c74a78d3ca2755a8b7fc7e6 | [
"MIT"
] | 32 | 2017-01-11T15:50:20.000Z | 2019-08-25T19:04:56.000Z | recepmod/tests/test_Main.py | thanatosmin/FcgR-binding | db54bff479d326b41c74a78d3ca2755a8b7fc7e6 | [
"MIT"
] | 1 | 2018-11-21T22:33:54.000Z | 2018-11-21T22:33:54.000Z | import random
import unittest
import numpy as np
from scipy.stats import norm
from ..StoneModel import StoneModel, ReqFuncSolver, logpdf_sum, StoneMod
def get_random_vars():
kai = random.random()
kx = random.random()
vi = random.randint(1, 30)
R = random.random()
Li = random.random()
return (k... | 30.811765 | 101 | 0.635739 | 371 | 2,619 | 4.404313 | 0.320755 | 0.04284 | 0.041616 | 0.014688 | 0.109547 | 0.0612 | 0.0612 | 0.028152 | 0 | 0 | 0 | 0.038955 | 0.225659 | 2,619 | 84 | 102 | 31.178571 | 0.766765 | 0.092402 | 0 | 0.037736 | 0 | 0 | 0.003374 | 0 | 0 | 0 | 0 | 0 | 0.264151 | 1 | 0.226415 | false | 0 | 0.169811 | 0 | 0.433962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
794a78a5dd34a5bdf88e1a47e0b099962cd27858 | 333 | py | Python | pythonclub/club/urls.py | janainfanger/itc240-webapp-1 | 0e9f9b0e12d82bf49ed1996ef2ed4ea21d3adc23 | [
"Apache-2.0"
] | null | null | null | pythonclub/club/urls.py | janainfanger/itc240-webapp-1 | 0e9f9b0e12d82bf49ed1996ef2ed4ea21d3adc23 | [
"Apache-2.0"
] | null | null | null | pythonclub/club/urls.py | janainfanger/itc240-webapp-1 | 0e9f9b0e12d82bf49ed1996ef2ed4ea21d3adc23 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index' ),
path('resources/', views.resources, name='resources'),
path('getmeetings/', views.getmeetings, name='getmeetings'),
path('meetingdetail/<int:id>', views.meetingdetail, name='details') #the int id part includes the id... | 37 | 111 | 0.72973 | 44 | 333 | 5.522727 | 0.454545 | 0.041152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105105 | 333 | 9 | 112 | 37 | 0.815436 | 0.126126 | 0 | 0 | 0 | 0 | 0.261168 | 0.075601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
794c4c555392f069064fb3b88f959e69ff233e1d | 31,434 | py | Python | detest/testlink_import/models.py | tahpee/detest | 9cf3a434ee17d4867e8cc49bc501ae0f29535f59 | [
"MIT"
] | null | null | null | detest/testlink_import/models.py | tahpee/detest | 9cf3a434ee17d4867e8cc49bc501ae0f29535f59 | [
"MIT"
] | null | null | null | detest/testlink_import/models.py | tahpee/detest | 9cf3a434ee17d4867e8cc49bc501ae0f29535f59 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
# TestLink Open Source Project - http://testlink.sourceforge.net/
# This script is distributed under the GNU General Public License 2 or later.
# ---------------------------------------------------------------------------------------
# @filesource testlink_creat... | 43.297521 | 168 | 0.683114 | 4,188 | 31,434 | 4.993792 | 0.095511 | 0.081668 | 0.113799 | 0.076026 | 0.724682 | 0.656785 | 0.585445 | 0.517357 | 0.446878 | 0.391843 | 0 | 0.035985 | 0.164567 | 31,434 | 725 | 169 | 43.357241 | 0.760405 | 0.79344 | 0 | 0.478992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016807 | 0 | 1.008403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7951cc995dd01b1a2776c7be40015f38555452d4 | 439 | py | Python | transactions/migrations/0007_auto_20210108_2018.py | ankit-ryan/Banksystem | 40138fdec7e3eba0430571a63026f97fba37dbcc | [
"MIT"
] | null | null | null | transactions/migrations/0007_auto_20210108_2018.py | ankit-ryan/Banksystem | 40138fdec7e3eba0430571a63026f97fba37dbcc | [
"MIT"
] | null | null | null | transactions/migrations/0007_auto_20210108_2018.py | ankit-ryan/Banksystem | 40138fdec7e3eba0430571a63026f97fba37dbcc | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2021-01-08 14:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transactions', '0006_auto_20201230_0702'),
]
operations = [
migrations.AlterField(
model_name='statement',
name='sta... | 23.105263 | 87 | 0.621868 | 48 | 439 | 5.5625 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.252847 | 439 | 18 | 88 | 24.388889 | 0.716463 | 0.102506 | 0 | 0 | 1 | 0 | 0.244898 | 0.155612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
795c98052717c97f53c4f01a0af3c871852e3cd9 | 3,351 | py | Python | app/jwt.py | danieldavidraj/Blob-Storage-System | d0a68a198a40aa7a7eaa3341f640f8ed88a62224 | [
"MIT"
] | 3 | 2022-02-28T17:56:09.000Z | 2022-03-01T12:47:02.000Z | app/jwt.py | danieldavidraj/Blob-Storage-System | d0a68a198a40aa7a7eaa3341f640f8ed88a62224 | [
"MIT"
] | null | null | null | app/jwt.py | danieldavidraj/Blob-Storage-System | d0a68a198a40aa7a7eaa3341f640f8ed88a62224 | [
"MIT"
] | null | null | null | from fastapi import Depends, FastAPI, HTTPException, status, Security
from functools import lru_cache
from datetime import datetime, timedelta
from sqlalchemy.orm import Session
from fastapi.security import (
OAuth2PasswordBearer,
SecurityScopes,
)
from jose import JWTError, jwt
from passlib.context im... | 33.51 | 97 | 0.691734 | 379 | 3,351 | 5.920844 | 0.311346 | 0.013369 | 0.030749 | 0.024064 | 0.141711 | 0.079323 | 0.079323 | 0.079323 | 0 | 0 | 0 | 0.005789 | 0.226798 | 3,351 | 99 | 98 | 33.848485 | 0.860286 | 0 | 0 | 0.195402 | 0 | 0 | 0.052891 | 0.010763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.103448 | 0.126437 | 0.034483 | 0.298851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
795ca614e92049de2ff5ffd74284b3aee3cf0b3a | 9,042 | py | Python | src/dataset.py | felixbur/ml_experiment | 3baec2d01f498c013f7547da132b319a0024292b | [
"MIT"
] | 3 | 2021-11-08T08:26:58.000Z | 2022-02-16T15:26:06.000Z | src/dataset.py | felixbur/ml_experiment | 3baec2d01f498c013f7547da132b319a0024292b | [
"MIT"
] | 12 | 2021-09-09T10:11:50.000Z | 2022-02-22T15:36:33.000Z | src/dataset.py | felixbur/ml_experiment | 3baec2d01f498c013f7547da132b319a0024292b | [
"MIT"
] | 1 | 2021-11-08T23:53:48.000Z | 2021-11-08T23:53:48.000Z | # dataset.py
import audformat
import pandas as pd
import ast
import os
from random import sample
from util import Util
from plots import Plots
import glob_conf
class Dataset:
""" Class to represent datasets"""
name = '' # An identifier for the dataset
config = None # The configuration
db = None # The ... | 47.589474 | 114 | 0.605839 | 1,180 | 9,042 | 4.515254 | 0.20678 | 0.045045 | 0.024399 | 0.030405 | 0.382508 | 0.272335 | 0.225976 | 0.209084 | 0.182057 | 0.182057 | 0 | 0.002007 | 0.283787 | 9,042 | 189 | 115 | 47.84127 | 0.820723 | 0.185025 | 0 | 0.282895 | 0 | 0.006579 | 0.11358 | 0.042092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.065789 | 0.052632 | 0 | 0.164474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
795e62280d16ef1dedd01e93abdc84f416edc9bc | 46,585 | py | Python | chunair/kicad-footprint-generator-master/scripts/general/StandardBox.py | speedypotato/chuni-lite | c8dda8428723f8c4f99075e7cbaa22a44cbc187d | [
"CC-BY-4.0"
] | 2 | 2022-03-18T23:42:51.000Z | 2022-03-19T15:31:34.000Z | chunair/kicad-footprint-generator-master/scripts/general/StandardBox.py | speedypotato/chuni-lite | c8dda8428723f8c4f99075e7cbaa22a44cbc187d | [
"CC-BY-4.0"
] | null | null | null | chunair/kicad-footprint-generator-master/scripts/general/StandardBox.py | speedypotato/chuni-lite | c8dda8428723f8c4f99075e7cbaa22a44cbc187d | [
"CC-BY-4.0"
] | null | null | null | # KicadModTree is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# KicadModTree is distributed in the hope that it will be useful,
# bu... | 44.282319 | 164 | 0.406096 | 5,380 | 46,585 | 3.370818 | 0.068587 | 0.052881 | 0.01544 | 0.052109 | 0.709347 | 0.692308 | 0.670471 | 0.647643 | 0.637883 | 0.628508 | 0 | 0.062161 | 0.486144 | 46,585 | 1,051 | 165 | 44.324453 | 0.695422 | 0.069701 | 0 | 0.605156 | 0 | 0.001357 | 0.029717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023066 | false | 0 | 0.008141 | 0.001357 | 0.036635 | 0.02171 | 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 |
796aee4e16ec3359a02dbf95af7a399997b6bb70 | 834 | py | Python | zeus/god/migrations/0002_client.py | nightwarrior-xxx/Zeus | 429fe0dcbdbcc4024d2d58a6d897108df1bbfffd | [
"MIT"
] | null | null | null | zeus/god/migrations/0002_client.py | nightwarrior-xxx/Zeus | 429fe0dcbdbcc4024d2d58a6d897108df1bbfffd | [
"MIT"
] | 4 | 2020-06-06T00:42:50.000Z | 2022-02-10T08:51:36.000Z | zeus/god/migrations/0002_client.py | nightwarrior-xxx/Zeus | 429fe0dcbdbcc4024d2d58a6d897108df1bbfffd | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-27 20:19
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('god', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Client',
... | 32.076923 | 114 | 0.59952 | 82 | 834 | 5.963415 | 0.695122 | 0.055215 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.269784 | 834 | 25 | 115 | 33.36 | 0.756979 | 0.053957 | 0 | 0 | 1 | 0 | 0.07878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
796be98cb4dd004927968cdb333cba6fd0e569fd | 2,193 | py | Python | ex/mishel/mishel_tests.py | darviarush/rubin-forms | d3b0d16f937c58439d4ab1be667e573ff5555f06 | [
"BSD-2-Clause"
] | null | null | null | ex/mishel/mishel_tests.py | darviarush/rubin-forms | d3b0d16f937c58439d4ab1be667e573ff5555f06 | [
"BSD-2-Clause"
] | null | null | null | ex/mishel/mishel_tests.py | darviarush/rubin-forms | d3b0d16f937c58439d4ab1be667e573ff5555f06 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import unittest, os, re
from mishel import Mishel, Messenger
class MockMessenger(Messenger):
""" заглушка для общения """
def __init__(self, *av, **kv):
""" конструктор """
self._reply = []
super(type(self), self).__init__(*av, **kv)
def message(self, msg,... | 25.5 | 77 | 0.661195 | 275 | 2,193 | 5.156364 | 0.385455 | 0.073343 | 0.028209 | 0.061354 | 0.216502 | 0.19464 | 0.19464 | 0.19464 | 0.19464 | 0.19464 | 0 | 0.004972 | 0.174647 | 2,193 | 85 | 78 | 25.8 | 0.774033 | 0.018696 | 0 | 0.163265 | 0 | 0 | 0.187205 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 0 | null | null | 0 | 0.040816 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
797f7ca565c8c8f8eeb935a096b5dcfd2f8a353d | 514 | py | Python | src/finmag/tests/comparison/demag/run_nmag.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | src/finmag/tests/comparison/demag/run_nmag.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | src/finmag/tests/comparison/demag/run_nmag.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | import os
import numpy as np
import nmag
from nmag import SI
MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
# create simulation object
sim = nmag.Simulation()
# define magnetic material
Py = nmag.MagMaterial(name='Py', Ms=SI(1.0, 'A/m'))
# load mesh
sim.load_mesh("sphere.nmesh.h5", [('main', Py)], unit_len... | 20.56 | 75 | 0.696498 | 92 | 514 | 3.73913 | 0.554348 | 0.017442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024554 | 0.128405 | 514 | 24 | 76 | 21.416667 | 0.743304 | 0.202335 | 0 | 0 | 0 | 0 | 0.126238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
798538ca32579e0de0d126eb7f9d960d3507a030 | 427 | py | Python | auctioning_platform/auctions/auctions/tests/factories.py | nhdinh/smp-modulith | 84c31b36e9b449fe3135f3802c1bbc362e7fb459 | [
"MIT"
] | 299 | 2019-09-13T23:03:29.000Z | 2022-03-24T09:20:43.000Z | auctioning_platform/auctions/auctions/tests/factories.py | winston-won/clean-architecture | 95546b29c9a5ff0e16c7f67b9ab736749e87f8ae | [
"MIT"
] | 109 | 2019-11-03T12:16:16.000Z | 2021-07-26T08:32:28.000Z | auctioning_platform/auctions/auctions/tests/factories.py | winston-won/clean-architecture | 95546b29c9a5ff0e16c7f67b9ab736749e87f8ae | [
"MIT"
] | 38 | 2019-09-13T23:03:34.000Z | 2022-03-24T09:21:10.000Z | import factory
from foundation.value_objects.factories import get_dollars
from auctions.domain.entities import Auction
class AuctionFactory(factory.Factory):
class Meta:
model = Auction
id = factory.Sequence(lambda n: n)
bids = factory.List([])
title = factory.Faker("name")
starting_pri... | 23.722222 | 62 | 0.709602 | 54 | 427 | 5.481481 | 0.722222 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014368 | 0.185012 | 427 | 17 | 63 | 25.117647 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0.063232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
798a213ea2bcbaed4859382b31f2591c640092c0 | 628 | py | Python | src/test/test_cmd_version.py | arshul/popper | 4cd8cd9266ad1e377d04682402b79b2be27e9f1a | [
"MIT"
] | 179 | 2016-11-19T22:38:07.000Z | 2020-05-24T10:42:30.000Z | src/test/test_cmd_version.py | arshul/popper | 4cd8cd9266ad1e377d04682402b79b2be27e9f1a | [
"MIT"
] | 739 | 2016-10-05T21:31:13.000Z | 2020-05-22T20:42:55.000Z | src/test/test_cmd_version.py | arshul/popper | 4cd8cd9266ad1e377d04682402b79b2be27e9f1a | [
"MIT"
] | 51 | 2016-10-14T05:42:10.000Z | 2020-05-15T19:05:33.000Z | from click.testing import CliRunner
from popper import __version__
from popper import _version_file
from popper.commands import cmd_version
from .test_common import PopperTest
class TestCommandVersion(PopperTest):
def test_version(self):
self.assertIsNot("0.0.0", __version__)
with self.assertLogs... | 33.052632 | 81 | 0.705414 | 78 | 628 | 5.294872 | 0.448718 | 0.072639 | 0.077482 | 0.11138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00996 | 0.200637 | 628 | 18 | 82 | 34.888889 | 0.812749 | 0 | 0 | 0 | 0 | 0 | 0.078025 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
798c11a13bbade319fe64ec1a1526324ce137f8c | 476 | py | Python | dapodik/peserta_didik/__init__.py | hexatester/dapodik | d89c0fb899c89e866527f6b7b57f741abd6444ea | [
"MIT"
] | 4 | 2021-02-01T15:19:35.000Z | 2022-01-26T02:47:21.000Z | dapodik/peserta_didik/__init__.py | hexatester/dapodik | d89c0fb899c89e866527f6b7b57f741abd6444ea | [
"MIT"
] | 3 | 2020-01-08T17:07:15.000Z | 2020-01-08T18:05:12.000Z | dapodik/peserta_didik/__init__.py | hexatester/dapodik | d89c0fb899c89e866527f6b7b57f741abd6444ea | [
"MIT"
] | 2 | 2021-08-04T13:48:08.000Z | 2021-12-25T02:36:49.000Z | from .peserta_didik_baru import PesertaDidikBaru
from .peserta_didik_longitudinal import PesertaDidikLongitudinal
from .registrasi_peserta_didik import RegistrasiPesertaDidik
from .peserta_didik import PesertaDidik
from .create_peserta_didik import CreatePesertaDidik
from .base import BasePesertaDidik
__all__ = [
... | 26.444444 | 64 | 0.815126 | 40 | 476 | 9.375 | 0.4 | 0.16 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128151 | 476 | 17 | 65 | 28 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.226891 | 0.096639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
79a731ef57acd3d7149ea32d7c37cc13a82a7c71 | 849 | py | Python | lib/modtag/tracker.py | seece/modrip | ecf11e4bbae4dab88c5c7852603d91d12994c7df | [
"MIT"
] | null | null | null | lib/modtag/tracker.py | seece/modrip | ecf11e4bbae4dab88c5c7852603d91d12994c7df | [
"MIT"
] | null | null | null | lib/modtag/tracker.py | seece/modrip | ecf11e4bbae4dab88c5c7852603d91d12994c7df | [
"MIT"
] | 1 | 2020-05-13T17:31:23.000Z | 2020-05-13T17:31:23.000Z |
class TrackerSong:
"""A self-contained tracker song."""
PROTRACKER = "MOD"
UNKNOWN = "???"
def __init__(self):
#self.fmt = Song.PROTRACKER
self.name = ""
self.bpm = 0
self.num_patterns = 0
self.orderlist = []
self.num_channels = 0
self.patterns = []
self.instruments = []
class Pattern:
def __in... | 16.98 | 55 | 0.651355 | 121 | 849 | 4.380165 | 0.363636 | 0.113208 | 0.103774 | 0.113208 | 0.071698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022762 | 0.223793 | 849 | 49 | 56 | 17.326531 | 0.77997 | 0.110718 | 0 | 0.285714 | 0 | 0 | 0.008499 | 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 |
79aa232569792f31fde93ba2737d9b6a92cb0bf3 | 6,503 | py | Python | test/unit/test_fn.py | ashmastaflash/kal-wrapper | d171d3854470fea3d9602853df41c646283a794b | [
"BSD-2-Clause"
] | 3 | 2016-12-15T13:44:44.000Z | 2017-03-24T19:45:56.000Z | test/unit/test_fn.py | ashmastaflash/kal-wrapper | d171d3854470fea3d9602853df41c646283a794b | [
"BSD-2-Clause"
] | 8 | 2016-03-17T03:45:33.000Z | 2019-12-28T16:56:16.000Z | test/unit/test_fn.py | ashmastaflash/kal-wrapper | d171d3854470fea3d9602853df41c646283a794b | [
"BSD-2-Clause"
] | 2 | 2018-06-03T21:30:34.000Z | 2019-01-16T17:10:45.000Z | """Test functions."""
import pprint
from kalibrate import fn
kal_scan_sample = b"""Found 1 device(s):
0: Generic RTL2832U OEM
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
Setting gain: 45.0 dB
kal: Scanning for GSM-850 base stations.
channel detect thre... | 29.830275 | 75 | 0.674458 | 972 | 6,503 | 4.353909 | 0.323045 | 0.070652 | 0.085302 | 0.047259 | 0.28379 | 0.24362 | 0.160444 | 0.137051 | 0.101607 | 0.101607 | 0 | 0.246218 | 0.227433 | 6,503 | 217 | 76 | 29.967742 | 0.596139 | 0.002307 | 0 | 0.137931 | 0 | 0 | 0.533477 | 0.003703 | 0 | 0 | 0 | 0 | 0.123153 | 1 | 0.034483 | false | 0 | 0.009852 | 0 | 0.049261 | 0.009852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79b257047130fb8085c6072d09ebde064d851064 | 2,980 | py | Python | live_demo/realsense/camera.py | AriaPs/cleargrasp | 3c5fd901970cab2bb5da38ca0b3eff32d8f9dc12 | [
"Apache-2.0"
] | 191 | 2020-01-23T19:43:26.000Z | 2022-02-26T00:48:28.000Z | live_demo/realsense/camera.py | AriaPs/cleargrasp | 3c5fd901970cab2bb5da38ca0b3eff32d8f9dc12 | [
"Apache-2.0"
] | 28 | 2020-02-21T20:21:18.000Z | 2021-12-26T06:15:08.000Z | live_demo/realsense/camera.py | AriaPs/cleargrasp | 3c5fd901970cab2bb5da38ca0b3eff32d8f9dc12 | [
"Apache-2.0"
] | 51 | 2020-01-29T01:15:01.000Z | 2022-03-15T14:21:25.000Z | #!/usr/bin/env python3
import socket
import numpy as np
import cv2
import os
import time
import struct
class Camera(object):
def __init__(self):
# Data options (change me)
self.im_height = 720 # 848x480, 1280x720
self.im_width = 1280
# self.resize_height = 720
# self.res... | 43.188406 | 158 | 0.644295 | 508 | 2,980 | 3.63189 | 0.230315 | 0.078049 | 0.02439 | 0.028184 | 0.419512 | 0.419512 | 0.401084 | 0.365854 | 0.313279 | 0.24607 | 0 | 0.079195 | 0.216107 | 2,980 | 68 | 159 | 43.823529 | 0.710616 | 0.348993 | 0 | 0 | 0 | 0 | 0.006774 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79bf725b2ec9367d37c2e62bded6de4a8089dc83 | 6,878 | py | Python | dss/util/auth/auth0.py | DataBiosphere/data-store | fa96624a09c7ac1595fcd6fbabd31e551382b757 | [
"MIT"
] | 3 | 2020-01-13T22:19:43.000Z | 2021-07-23T11:25:34.000Z | dss/util/auth/auth0.py | DataBiosphere/data-store | fa96624a09c7ac1595fcd6fbabd31e551382b757 | [
"MIT"
] | 103 | 2020-01-13T22:11:45.000Z | 2021-04-30T21:04:13.000Z | dss/util/auth/auth0.py | DataBiosphere/data-store | fa96624a09c7ac1595fcd6fbabd31e551382b757 | [
"MIT"
] | null | null | null | import requests
import os
import logging
from dss import Config
from dss import dynamodb as db
from dss.error import DSSForbiddenException, DSSException
from .authorize import Authorize, always_allow_admins
logger = logging.getLogger(__name__)
class FlacMixin(Authorize):
"""
Mixin class for Auth0 Authorize ... | 38.211111 | 109 | 0.649171 | 817 | 6,878 | 5.314565 | 0.271726 | 0.025334 | 0.029019 | 0.038692 | 0.184708 | 0.113772 | 0.099033 | 0.080147 | 0.047444 | 0.047444 | 0 | 0.006546 | 0.267083 | 6,878 | 179 | 110 | 38.424581 | 0.854791 | 0.346031 | 0 | 0.228261 | 0 | 0 | 0.119311 | 0.018628 | 0 | 0 | 0 | 0.011173 | 0.141304 | 1 | 0.119565 | false | 0 | 0.076087 | 0 | 0.336957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
79c09148a7994ca4f0eb448373e66517cad84575 | 1,274 | py | Python | night_sensor/night_feature.py | wodiesan/senior_design_spring | a335d8e052fc71250d127ca24755e0e1dad81d30 | [
"MIT"
] | 12 | 2016-03-26T03:46:09.000Z | 2018-09-30T17:29:43.000Z | night_sensor/night_feature.py | wodiesan/senior_design_spring | a335d8e052fc71250d127ca24755e0e1dad81d30 | [
"MIT"
] | null | null | null | night_sensor/night_feature.py | wodiesan/senior_design_spring | a335d8e052fc71250d127ca24755e0e1dad81d30 | [
"MIT"
] | null | null | null | """
@author: Sze "Ron" Chau
@e-mail: chaus3@wit.edu
@source: https://github.com/wodiesan/sweet-skoomabot
@desc Night sensor-->RPi for Senior Design 1
"""
import logging
import os
import RPi.GPIO as GPIO
import serial
import subprocess
import sys
import time
import traceback
# GPIO pins. Uses the BC... | 25.48 | 73 | 0.656201 | 182 | 1,274 | 4.582418 | 0.527473 | 0.043165 | 0.067146 | 0.086331 | 0.236211 | 0.209832 | 0.209832 | 0.098321 | 0.098321 | 0.098321 | 0 | 0.02439 | 0.22763 | 1,274 | 49 | 74 | 26 | 0.823171 | 0.082418 | 0 | 0 | 0 | 0 | 0.079657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.242424 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
79c3b318cb2d3a20812220f5d276f0bfbe88f156 | 2,389 | py | Python | cf_app_utils/tests/service_locator_tests.py | wileykestner/cf_app_utils_python | ac80f5dbc28c9a18dbca60698599679b9d1fd27e | [
"BSD-2-Clause"
] | null | null | null | cf_app_utils/tests/service_locator_tests.py | wileykestner/cf_app_utils_python | ac80f5dbc28c9a18dbca60698599679b9d1fd27e | [
"BSD-2-Clause"
] | null | null | null | cf_app_utils/tests/service_locator_tests.py | wileykestner/cf_app_utils_python | ac80f5dbc28c9a18dbca60698599679b9d1fd27e | [
"BSD-2-Clause"
] | null | null | null | import json
from fixtures import blue_service_one, blue_service_two, red_service_one, \
rediscloud_service
import unittest
from cf_app_utils.service_locator import ServiceLocator
class TestServiceLocator(unittest.TestCase):
def setUp(self):
with open("fixtures/vcap_services_example.json") as json_fil... | 34.128571 | 77 | 0.714106 | 282 | 2,389 | 5.624113 | 0.180851 | 0.069357 | 0.100883 | 0.113493 | 0.71942 | 0.619168 | 0.508197 | 0.47604 | 0.384615 | 0.216898 | 0 | 0 | 0.203014 | 2,389 | 70 | 78 | 34.128571 | 0.832983 | 0 | 0 | 0.2 | 0 | 0 | 0.046444 | 0.014644 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.222222 | false | 0 | 0.088889 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79c6ea773d17de6e3adae90af1ded42d2e32b56d | 2,321 | py | Python | rhobot/components/storage/enums.py | rerobins/rhobot_framework | f97d1cedc929387f69448e41346a0d15fe202eef | [
"BSD-3-Clause"
] | null | null | null | rhobot/components/storage/enums.py | rerobins/rhobot_framework | f97d1cedc929387f69448e41346a0d15fe202eef | [
"BSD-3-Clause"
] | null | null | null | rhobot/components/storage/enums.py | rerobins/rhobot_framework | f97d1cedc929387f69448e41346a0d15fe202eef | [
"BSD-3-Clause"
] | null | null | null | """
Enumerated values for working with the storage implementations.
"""
from sleekxmpp.plugins.xep_0004 import FormField
from enum import Enum, unique
from rdflib.namespace import RDF
import json
class Flag:
"""
Mixin that will provide a means to retrieve the values from the data type.
"""
def __init... | 26.678161 | 118 | 0.667816 | 309 | 2,321 | 4.880259 | 0.372168 | 0.036472 | 0.025862 | 0.045756 | 0.054377 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005122 | 0.242999 | 2,321 | 86 | 119 | 26.988372 | 0.853159 | 0.236105 | 0 | 0.156863 | 0 | 0 | 0.137457 | 0.013173 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.078431 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79c721113f344acd032f4c739b4d290f76d585bd | 1,087 | py | Python | resilient-sdk/resilient_sdk/util/jinja2_filters.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | 28 | 2017-12-22T00:26:59.000Z | 2022-01-22T14:51:33.000Z | resilient-sdk/resilient_sdk/util/jinja2_filters.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | 18 | 2018-03-06T19:04:20.000Z | 2022-03-21T15:06:30.000Z | resilient-sdk/resilient_sdk/util/jinja2_filters.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | 28 | 2018-05-01T17:53:22.000Z | 2022-03-28T09:56:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
"""Custom Jinja2 Filters"""
import sys
import json
import re
from jinja2 import Undefined
if sys.version_info.major < 3:
# Handle PY 2 specific imports
from base64 import encodestring as b64encode
else:
... | 21.74 | 64 | 0.667893 | 146 | 1,087 | 4.849315 | 0.527397 | 0.016949 | 0.053672 | 0.070621 | 0.087571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039766 | 0.213431 | 1,087 | 49 | 65 | 22.183673 | 0.788304 | 0.336707 | 0 | 0 | 0 | 0 | 0.040909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
79d575afd7f73d2e03f6d5a5b630e8ab8c007626 | 8,653 | py | Python | src/python3/request/graph_service_client.py | microsoftarchive/msgraph-sdk-python | 1320ba9116be0d00a1d7fce3484ea979e24ee82d | [
"MIT"
] | 7 | 2019-07-17T06:59:53.000Z | 2021-05-13T15:23:37.000Z | src/python3/request/graph_service_client.py | microsoftarchive/msgraph-sdk-python | 1320ba9116be0d00a1d7fce3484ea979e24ee82d | [
"MIT"
] | null | null | null | src/python3/request/graph_service_client.py | microsoftarchive/msgraph-sdk-python | 1320ba9116be0d00a1d7fce3484ea979e24ee82d | [
"MIT"
] | 2 | 2020-06-30T13:06:59.000Z | 2021-06-03T09:47:35.000Z | # -*- coding: utf-8 -*-
"""
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
"""
from __future__ import unicode_literals
from ..request.directory_ob... | 41.401914 | 168 | 0.710274 | 727 | 8,653 | 8.303989 | 0.176066 | 0.027828 | 0.029154 | 0.059632 | 0.182044 | 0.06924 | 0.063608 | 0.053006 | 0.053006 | 0.053006 | 0 | 0.000598 | 0.226627 | 8,653 | 208 | 169 | 41.600962 | 0.901524 | 0.500636 | 0 | 0.197368 | 0 | 0 | 0.034347 | 0.006194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.197368 | 0 | 0.657895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79d7c050a0aa4cc53a7709daa56c594d3d2ce2c0 | 1,626 | py | Python | tests/the3rdman_model_tests.py | django-oscar/django-oscar-datacash | 0e153b45db0f7e40d9f84dc12c40d526ab3e47f1 | [
"BSD-3-Clause"
] | 12 | 2015-03-18T15:51:04.000Z | 2021-01-06T14:03:51.000Z | tests/the3rdman_model_tests.py | django-oscar/django-oscar-datacash | 0e153b45db0f7e40d9f84dc12c40d526ab3e47f1 | [
"BSD-3-Clause"
] | 1 | 2018-05-29T20:00:38.000Z | 2018-05-30T02:44:49.000Z | tests/the3rdman_model_tests.py | django-oscar/django-oscar-datacash | 0e153b45db0f7e40d9f84dc12c40d526ab3e47f1 | [
"BSD-3-Clause"
] | 13 | 2015-08-12T20:11:40.000Z | 2021-09-25T19:53:59.000Z | from django.test import TestCase
from datacash import models
XML_RESPONSE = """<?xml version="1.0"?>
<RealTimeResponse xmlns="T3MCallback">
<aggregator_identifier/>
<merchant_identifier>5567</merchant_identifier>
<merchant_order_ref>12345</merchant_order_ref>
<t3m_id>333333333</t3m_id>
<score>%(sc... | 33.875 | 194 | 0.754613 | 176 | 1,626 | 6.710227 | 0.323864 | 0.040644 | 0.091448 | 0.11177 | 0.300593 | 0.269263 | 0.165114 | 0.165114 | 0.165114 | 0.165114 | 0 | 0.056916 | 0.146371 | 1,626 | 47 | 195 | 34.595745 | 0.793948 | 0 | 1 | 0.147059 | 0 | 0.029412 | 0.344403 | 0.261993 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.147059 | false | 0 | 0.058824 | 0.029412 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79dc47a44f7bf2014ee81d4654cf6dc62668f909 | 4,519 | py | Python | benchmarks/python_e2e/cugraph_funcs.py | kaatish/cugraph | 36f86cd4f67a2f902a741eb6141d396aa6c19dbf | [
"Apache-2.0"
] | 991 | 2018-12-05T22:07:52.000Z | 2022-03-31T10:45:45.000Z | benchmarks/python_e2e/cugraph_funcs.py | kaatish/cugraph | 36f86cd4f67a2f902a741eb6141d396aa6c19dbf | [
"Apache-2.0"
] | 1,929 | 2018-12-06T14:06:18.000Z | 2022-03-31T20:01:00.000Z | benchmarks/python_e2e/cugraph_funcs.py | kaatish/cugraph | 36f86cd4f67a2f902a741eb6141d396aa6c19dbf | [
"Apache-2.0"
] | 227 | 2018-12-06T18:10:15.000Z | 2022-03-28T19:03:15.000Z | # Copyright (c) 2021, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 30.126667 | 80 | 0.630228 | 587 | 4,519 | 4.778535 | 0.383305 | 0.02139 | 0.028521 | 0.024242 | 0.194652 | 0.181105 | 0.154724 | 0.154724 | 0.154724 | 0.087701 | 0 | 0.012794 | 0.256251 | 4,519 | 149 | 81 | 30.328859 | 0.821779 | 0.481965 | 0 | 0.0625 | 0 | 0 | 0.035208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171875 | false | 0.015625 | 0.046875 | 0.109375 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
79dca1900d05c03e9745eab57c2e19a713c5322e | 2,390 | py | Python | test/testtree.py | aslisabanci/datastructures | f7952801245bc8d386a03d92a38121f558bdacca | [
"MIT"
] | 159 | 2017-10-02T22:03:14.000Z | 2022-03-10T23:02:22.000Z | test/testtree.py | aslisabanci/datastructures | f7952801245bc8d386a03d92a38121f558bdacca | [
"MIT"
] | 9 | 2019-02-04T14:55:09.000Z | 2021-06-05T13:30:28.000Z | test/testtree.py | aslisabanci/datastructures | f7952801245bc8d386a03d92a38121f558bdacca | [
"MIT"
] | 49 | 2017-09-29T17:51:16.000Z | 2022-03-10T23:12:17.000Z | import unittest
from ds2.tree import Tree
class TestTree(unittest.TestCase):
def testinit(self):
Tree(['root'])
Tree([1, [2, [3], [4]], [5, [6], [7], [8]]])
def teststr(self):
self.assertEqual(str(Tree([1, [2], [3]])), "1\n 2\n 3")
self.assertEqual(str(Tree([1, [2, [3]]])), "... | 31.447368 | 67 | 0.465272 | 345 | 2,390 | 3.2 | 0.142029 | 0.108696 | 0.0625 | 0.11413 | 0.376812 | 0.362319 | 0.324275 | 0.240942 | 0.240942 | 0.240942 | 0 | 0.081065 | 0.292887 | 2,390 | 75 | 68 | 31.866667 | 0.572189 | 0 | 0 | 0.15625 | 0 | 0 | 0.015063 | 0 | 0 | 0 | 0 | 0 | 0.421875 | 1 | 0.140625 | false | 0 | 0.03125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79dd969e45a849700063d10776faa0e97cdce4c1 | 2,910 | py | Python | backend.py | Lame-Ass-Koreans/SimplyRead-Backend | 715c76b847321e8b09352eec5a0bf8a811d30883 | [
"MIT"
] | null | null | null | backend.py | Lame-Ass-Koreans/SimplyRead-Backend | 715c76b847321e8b09352eec5a0bf8a811d30883 | [
"MIT"
] | null | null | null | backend.py | Lame-Ass-Koreans/SimplyRead-Backend | 715c76b847321e8b09352eec5a0bf8a811d30883 | [
"MIT"
] | 1 | 2021-11-14T07:52:30.000Z | 2021-11-14T07:52:30.000Z | import sys
import json
import re
from flask_cors import CORS
from flask import Flask, request, jsonify, abort
from flask_restful import Resource, Api
from json import dumps
import couchdb
from nltk.corpus import wordnet
bad_words_txt = open('badwords.txt', 'r').read()
bad_words_arr = bad_words_txt.splitlines()
com... | 31.290323 | 93 | 0.62921 | 362 | 2,910 | 4.859116 | 0.30663 | 0.081865 | 0.068221 | 0.052871 | 0.192723 | 0.134167 | 0.109153 | 0.065947 | 0.065947 | 0.065947 | 0 | 0.012843 | 0.224055 | 2,910 | 92 | 94 | 31.630435 | 0.766165 | 0.021649 | 0 | 0.144737 | 0 | 0 | 0.101546 | 0.01792 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.065789 | false | 0.039474 | 0.118421 | 0.013158 | 0.263158 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8db302143d09606f1945639084e1f72a3f87c6f6 | 438 | py | Python | rq_worker.py | stvstnfrd/openedx-webhooks | c12aede9eb87ae67bc3d3c9fb9ebe4879f668ba5 | [
"Apache-2.0"
] | 9 | 2016-12-20T04:18:46.000Z | 2021-09-09T10:50:03.000Z | rq_worker.py | stvstnfrd/openedx-webhooks | c12aede9eb87ae67bc3d3c9fb9ebe4879f668ba5 | [
"Apache-2.0"
] | 119 | 2015-01-20T12:01:28.000Z | 2021-12-17T18:50:46.000Z | rq_worker.py | stvstnfrd/openedx-webhooks | c12aede9eb87ae67bc3d3c9fb9ebe4879f668ba5 | [
"Apache-2.0"
] | 19 | 2015-01-20T11:58:43.000Z | 2021-11-01T09:38:32.000Z | #!/usr/bin/env python
"""
Start an instance of the RQ worker.
``python rq_worker.py``
"""
import os
from rq import Connection, Queue, Worker
from openedx_webhooks.lib.rq import store
LISTEN = ('default',)
if __name__ == '__main__':
logging_level = os.environ.get('RQ_WORKER_LOGGING_LEVEL', 'INFO').upper()
... | 19.909091 | 77 | 0.69863 | 60 | 438 | 4.833333 | 0.583333 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16895 | 438 | 21 | 78 | 20.857143 | 0.796703 | 0.184932 | 0 | 0 | 0 | 0 | 0.120344 | 0.065903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8dc4385efa5753efe621b1b71e7cdae587964ada | 221 | py | Python | python_ws/src/sim/src/get_status.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | python_ws/src/sim/src/get_status.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | python_ws/src/sim/src/get_status.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from drone_api import *
def toFixed(numObj):
return f'{numObj:.2f}'
telem = Telemerty_api()
while not Drone_api.is_shutdown():
print('\n\n\n\n\n', telem.state)
Drone_api.sleep(0.5)
| 15.785714 | 36 | 0.669683 | 37 | 221 | 3.864865 | 0.702703 | 0.055944 | 0.062937 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0.162896 | 221 | 13 | 37 | 17 | 0.751351 | 0.095023 | 0 | 0 | 0 | 0 | 0.110553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8dc470780712461dbc637e5da04314a2d742be25 | 612 | py | Python | ToDo/list/migrations/0019_auto_20191031_2150.py | shashidharb96/ToDoList | 6b97a93594411fc6ef163d8f42cbe3f380809a24 | [
"bzip2-1.0.6"
] | null | null | null | ToDo/list/migrations/0019_auto_20191031_2150.py | shashidharb96/ToDoList | 6b97a93594411fc6ef163d8f42cbe3f380809a24 | [
"bzip2-1.0.6"
] | null | null | null | ToDo/list/migrations/0019_auto_20191031_2150.py | shashidharb96/ToDoList | 6b97a93594411fc6ef163d8f42cbe3f380809a24 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-31 16:20
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('list', '0018_auto_20191031_2029'),
]
operations = [
migrations.RemoveField(
... | 24.48 | 108 | 0.612745 | 69 | 612 | 5.318841 | 0.637681 | 0.032698 | 0.043597 | 0.054496 | 0.185286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114865 | 0.27451 | 612 | 24 | 109 | 25.5 | 0.711712 | 0.073529 | 0 | 0.222222 | 1 | 0 | 0.115044 | 0.040708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dc6f8f67cdf848f5f6e747a31ab85751b4f6617 | 264 | py | Python | mdm_inventory/clients/admin.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | mdm_inventory/clients/admin.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | mdm_inventory/clients/admin.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | from django.contrib import admin
from mdm_inventory.clients.models import Client
@admin.register(Client)
class ClientAdmin(admin.ModelAdmin):
list_display = (
'dni',
'phone_number',
'address'
)
list_filter = ('phone_number',)
| 20.307692 | 47 | 0.670455 | 29 | 264 | 5.931034 | 0.724138 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223485 | 264 | 12 | 48 | 22 | 0.839024 | 0 | 0 | 0 | 0 | 0 | 0.128788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dd71a9f985f988ea362bdcb0fd32c2b76fe67d9 | 767 | py | Python | setup.py | SamuelLongchamps/gak | 07175fd4282efb61eb93e85a5e68025eafd76bbb | [
"MIT"
] | null | null | null | setup.py | SamuelLongchamps/gak | 07175fd4282efb61eb93e85a5e68025eafd76bbb | [
"MIT"
] | null | null | null | setup.py | SamuelLongchamps/gak | 07175fd4282efb61eb93e85a5e68025eafd76bbb | [
"MIT"
] | null | null | null | from distutils.core import setup
from setuptools import find_packages
setup(
name = 'gak',
packages = find_packages(),
scripts=['scripts/gak'],
version = '0.2.0',
description = 'Command-line tool to make local Git repo interaction more efficient',
author = 'Samuel Longchamps',
a... | 31.958333 | 89 | 0.612777 | 79 | 767 | 5.898734 | 0.734177 | 0.051502 | 0.060086 | 0.072961 | 0.154506 | 0.154506 | 0 | 0 | 0 | 0 | 0 | 0.008666 | 0.247718 | 767 | 23 | 90 | 33.347826 | 0.79896 | 0 | 0 | 0 | 0 | 0 | 0.486559 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.095238 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ddc02eadf8c681fa6bf01e5fa921965cbd36417 | 618 | py | Python | attic/combine.py | Paul-St-Young/QMC | 62ec2e503f8814c0e1a9abdf516e617c93916a3e | [
"MIT"
] | null | null | null | attic/combine.py | Paul-St-Young/QMC | 62ec2e503f8814c0e1a9abdf516e617c93916a3e | [
"MIT"
] | null | null | null | attic/combine.py | Paul-St-Young/QMC | 62ec2e503f8814c0e1a9abdf516e617c93916a3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
def combine(m1,e1,m2,e2):
m=(e2*e2*m1+e1*e1*m2)/(e1*e1+e2*e2)
e=e1*e2/np.sqrt(e1*e1+e2*e2)
return (m,e)
# end def combine
import argparse
if __name__=="__main__":
parser = argparse.ArgumentParser(description='combine 2 data points')
parser.add_argument("m1... | 26.869565 | 73 | 0.677994 | 101 | 618 | 3.980198 | 0.405941 | 0.089552 | 0.169154 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062619 | 0.147249 | 618 | 22 | 74 | 28.090909 | 0.70019 | 0.079288 | 0 | 0 | 0 | 0 | 0.10424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ddfc64fadeb3bb63dd07725d6c17961e6495335 | 405 | py | Python | 30_days/day_20_sorting.py | hsm207/hackerrank | 776e2f84036b5103c5fbb4d9855568ace0cdd042 | [
"Unlicense"
] | null | null | null | 30_days/day_20_sorting.py | hsm207/hackerrank | 776e2f84036b5103c5fbb4d9855568ace0cdd042 | [
"Unlicense"
] | null | null | null | 30_days/day_20_sorting.py | hsm207/hackerrank | 776e2f84036b5103c5fbb4d9855568ace0cdd042 | [
"Unlicense"
] | null | null | null | #!/bin/python3
import sys
n = int(3)
a = list(map(int, [3, 2, 1]))
# Write Your Code Here
numberOfSwaps = 0
for i in range(n):
for j in range(i, n - 1):
if a[i] > a[j + 1]:
numberOfSwaps += 1
a[i], a[j + 1] = a[j + 1], a[i]
print('Array is sorted in {} swaps.'.format(numberOfSwa... | 20.25 | 59 | 0.540741 | 70 | 405 | 3.128571 | 0.471429 | 0.027397 | 0.041096 | 0.03653 | 0.045662 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042904 | 0.251852 | 405 | 19 | 60 | 21.315789 | 0.679868 | 0.083951 | 0 | 0 | 0 | 0 | 0.165312 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.