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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4958cb92424a6e7c9c549c160c10cca38cc0e8c | 1,146 | py | Python | bbs/decorators.py | weijiang1994/bbs-admin-backend | a703500ed155fd59cc7dc8843d68238efc69a07f | [
"Apache-2.0"
] | 4 | 2022-01-21T07:06:48.000Z | 2022-03-02T10:47:55.000Z | bbs/decorators.py | weijiang1994/bbs-admin-backend | a703500ed155fd59cc7dc8843d68238efc69a07f | [
"Apache-2.0"
] | 3 | 2022-02-21T16:00:11.000Z | 2022-02-24T09:29:14.000Z | bbs/decorators.py | weijiang1994/bbs-admin-backend | a703500ed155fd59cc7dc8843d68238efc69a07f | [
"Apache-2.0"
] | 1 | 2022-03-31T07:54:59.000Z | 2022-03-31T07:54:59.000Z | """
# coding:utf-8
@Time : 2021/12/06
@Author : jiangwei
@File : decorators.py
@Desc : decorators
@email : qq804022023@gmail.com
@Software: PyCharm
"""
from flask import request, jsonify
from bbs.setting import basedir
import os
from functools import wraps
def track_error(func):
"""
track running ... | 22.038462 | 62 | 0.572426 | 125 | 1,146 | 5.224 | 0.56 | 0.061256 | 0.05513 | 0.079632 | 0.107198 | 0.107198 | 0.107198 | 0 | 0 | 0 | 0 | 0.031088 | 0.326353 | 1,146 | 51 | 63 | 22.470588 | 0.814767 | 0.294939 | 0 | 0.37037 | 0 | 0 | 0.023873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.555556 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4977a487dfb53fc9bdd74cbde790e28018c0ba6 | 1,344 | py | Python | crusoe_observe/cve-connector/cve_connector/vendor_cve/implementation/parsers/general_and_format_parsers/general_parser.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | 3 | 2021-11-09T09:55:17.000Z | 2022-02-19T02:58:27.000Z | crusoe_observe/cve-connector/cve_connector/vendor_cve/implementation/parsers/general_and_format_parsers/general_parser.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | null | null | null | crusoe_observe/cve-connector/cve_connector/vendor_cve/implementation/parsers/general_and_format_parsers/general_parser.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | null | null | null | """Module contains superclass for parsers."""
from abc import ABC, abstractmethod
from datetime import date, timedelta
from html_table_extractor.extractor import Extractor
from lxml.html import tostring
class GeneralParser(ABC):
"""
Superclass for parsers.
"""
def __init__(self, url, from_date=None, ... | 25.846154 | 85 | 0.611607 | 158 | 1,344 | 5.025316 | 0.392405 | 0.040302 | 0.049118 | 0.042821 | 0.060453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002114 | 0.296131 | 1,344 | 51 | 86 | 26.352941 | 0.837209 | 0.171875 | 0 | 0.148148 | 0 | 0 | 0.008073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.074074 | 0.148148 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a497d79fdef45fad56951301307fe17492fbee45 | 2,651 | py | Python | core/src/cgcloud/core/apache.py | ompcloud/cgcloud | ec97c3e6df2df549ebf45c69f16fb6d118877d9c | [
"Apache-2.0"
] | 24 | 2015-07-27T02:44:30.000Z | 2022-02-02T10:37:25.000Z | core/src/cgcloud/core/apache.py | ompcloud/cgcloud | ec97c3e6df2df549ebf45c69f16fb6d118877d9c | [
"Apache-2.0"
] | 243 | 2015-05-29T18:39:08.000Z | 2018-07-17T19:42:28.000Z | core/src/cgcloud/core/apache.py | ompcloud/cgcloud | ec97c3e6df2df549ebf45c69f16fb6d118877d9c | [
"Apache-2.0"
] | 22 | 2015-07-16T01:04:08.000Z | 2021-10-10T21:18:36.000Z | import json
import logging
import os
from bd2k.util.strings import interpolate as fmt
from fabric.operations import run
from cgcloud.core.box import Box
from cgcloud.fabric.operations import sudo
log = logging.getLogger( __name__ )
class ApacheSoftwareBox( Box ):
"""
A box to be mixed in to ease the hassle... | 40.166667 | 98 | 0.592984 | 328 | 2,651 | 4.646341 | 0.448171 | 0.065617 | 0.034121 | 0.024934 | 0.05643 | 0.026247 | 0 | 0 | 0 | 0 | 0 | 0.006132 | 0.323274 | 2,651 | 65 | 99 | 40.784615 | 0.843367 | 0.246322 | 0 | 0.04878 | 0 | 0.02439 | 0.171563 | 0.024134 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.341463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a49912576008590c13a1def1c8f65551249b8211 | 2,252 | py | Python | xicam/core/tests/test_threads.py | Xi-CAM/Xi-cam-unified | 8b2811a8c13e18ec3b8860dfa5aee1eabc42da9e | [
"BSD-3-Clause-LBNL"
] | null | null | null | xicam/core/tests/test_threads.py | Xi-CAM/Xi-cam-unified | 8b2811a8c13e18ec3b8860dfa5aee1eabc42da9e | [
"BSD-3-Clause-LBNL"
] | null | null | null | xicam/core/tests/test_threads.py | Xi-CAM/Xi-cam-unified | 8b2811a8c13e18ec3b8860dfa5aee1eabc42da9e | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-05-04T19:28:07.000Z | 2020-05-04T19:28:07.000Z | from pytestqt import qtbot
import pytest
import os
@pytest.mark.skip(reason="thread module testing has issues")
def test_threads(qtbot):
from xicam.core import threads
from qtpy.QtCore import QObject, Signal
def callback(a):
assert a == 10
t = threads.QThreadFuture(sum, [1, 2, 3, 4], callba... | 21.447619 | 93 | 0.671403 | 287 | 2,252 | 5.188153 | 0.254355 | 0.040296 | 0.047011 | 0.067159 | 0.691739 | 0.691739 | 0.650101 | 0.617864 | 0.617864 | 0.617864 | 0 | 0.028686 | 0.226021 | 2,252 | 104 | 94 | 21.653846 | 0.825588 | 0 | 0 | 0.6 | 0 | 0 | 0.071048 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.171429 | false | 0 | 0.214286 | 0 | 0.414286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a49f7fa75323d77c51d8a4ddc4900cade3b8ccc9 | 308 | py | Python | setup.py | FL33TW00D/COP-Kmeans | 7c9c6cc4256107ef8ee89adc491661016342fdfe | [
"MIT"
] | 125 | 2017-06-20T12:33:51.000Z | 2022-03-08T05:40:14.000Z | setup.py | FL33TW00D/COP-Kmeans | 7c9c6cc4256107ef8ee89adc491661016342fdfe | [
"MIT"
] | 6 | 2017-09-12T07:18:03.000Z | 2020-11-18T19:43:53.000Z | setup.py | Behrouz-Babaki/copkmeans | 36ca01fbf001c9bf080408074c2f46838257c14b | [
"MIT"
] | 35 | 2017-05-03T13:53:50.000Z | 2021-11-21T19:16:03.000Z | from setuptools import setup, find_packages
setup(
name='copkmeans',
version='1.5',
description='',
author='',
author_email='',
url='https://github.com/Behrouz-Babaki/COP-Kmeans',
license=license,
packages=find_packages(),
include_package_data=True,
zip_safe=False
)
| 20.533333 | 55 | 0.665584 | 36 | 308 | 5.527778 | 0.833333 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.188312 | 308 | 14 | 56 | 22 | 0.788 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4a1716bce679ffd4ca64f50cb6d4adb175258a8 | 1,210 | py | Python | python-poo/name_value_object.py | alexsandrox/ddd-valueobjects-python | 5b02966512dcf1c099e80b90e1aa965fa339d397 | [
"MIT"
] | null | null | null | python-poo/name_value_object.py | alexsandrox/ddd-valueobjects-python | 5b02966512dcf1c099e80b90e1aa965fa339d397 | [
"MIT"
] | null | null | null | python-poo/name_value_object.py | alexsandrox/ddd-valueobjects-python | 5b02966512dcf1c099e80b90e1aa965fa339d397 | [
"MIT"
] | null | null | null | """
Class:
- NameValueObject
Summary:
- It is usually a good idea to replace common primitives, such as strings, with suitable
value objects.
While I can represent a phone number as a string, turning it into a phone number object
makes variables and parameters m... | 43.214286 | 137 | 0.652893 | 152 | 1,210 | 5.078947 | 0.546053 | 0.046632 | 0.046632 | 0.044041 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267769 | 1,210 | 28 | 138 | 43.214286 | 0.871332 | 0.426446 | 0 | 0 | 0 | 0 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4a22bd41876d7d8004bf1557ae0bfbb73b1abde | 1,464 | py | Python | main.py | Rishikesh-kumar-7258/Block_breaker | 7183f5c8732f5a60e909a5d30436614046fb76b2 | [
"MIT"
] | 20 | 2021-08-30T10:55:34.000Z | 2021-08-30T10:57:51.000Z | main.py | Rishikesh-kumar-7258/Block_breaker | 7183f5c8732f5a60e909a5d30436614046fb76b2 | [
"MIT"
] | 7 | 2021-08-22T09:00:39.000Z | 2021-11-05T09:33:46.000Z | main.py | Rishikesh-kumar-7258/Block_breaker | 7183f5c8732f5a60e909a5d30436614046fb76b2 | [
"MIT"
] | 2 | 2021-08-25T07:22:24.000Z | 2021-09-03T02:42:01.000Z | import pygame
from src.spritesheet import SpriteSheet, balls, blocks, sliders
from src.statemachine import Statemachine
from src.states.gameoverstate import GameOver
from src.states.highscoreState import Highscore
from src.states.levelpassedstate import LevelPassed
from src.states.playstate import Play
from src.states... | 25.241379 | 75 | 0.738388 | 176 | 1,464 | 6.102273 | 0.431818 | 0.052142 | 0.072626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.15847 | 1,464 | 58 | 76 | 25.241379 | 0.862825 | 0.116803 | 0 | 0 | 0 | 0 | 0.056031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a4a9ae71eefe78d31d10c9cf6561fad89222ead9 | 13,716 | py | Python | iter_app/src/environment.py | Wisc-HCI/ITER | 2ae8a5f0ae17783db4db25198ec0d97e72cd7296 | [
"MIT"
] | 1 | 2021-04-07T15:54:44.000Z | 2021-04-07T15:54:44.000Z | iter_app/src/environment.py | Wisc-HCI/ITER | 2ae8a5f0ae17783db4db25198ec0d97e72cd7296 | [
"MIT"
] | null | null | null | iter_app/src/environment.py | Wisc-HCI/ITER | 2ae8a5f0ae17783db4db25198ec0d97e72cd7296 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Environment Node
Author Curt Henrichs
Date 5-16-19
Provides environment context for ITER runner.
'''
# __MODES__ for environment object type
MODE_COLLISION_MOVEIT = 'collision_moveit'
MODE_MARKER = 'marker'
import os
import tf
import yaml
import json
import time
import uuid
import rospy... | 43.542857 | 174 | 0.664261 | 1,779 | 13,716 | 4.89095 | 0.173131 | 0.004367 | 0.026204 | 0.014481 | 0.332376 | 0.256177 | 0.168142 | 0.138375 | 0.125158 | 0.112286 | 0 | 0.015673 | 0.218504 | 13,716 | 314 | 175 | 43.681529 | 0.796063 | 0.068241 | 0 | 0.153509 | 0 | 0 | 0.078267 | 0.024666 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122807 | null | null | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ef5c654eb24fbff56f7dc6c657508169778666e | 721 | py | Python | iast/serializers/department.py | luzhongyang/DongTai-webapi | f07b2b1bc1222999d0bb7e3300e65c953ee966f5 | [
"Apache-2.0"
] | 6 | 2021-09-01T07:37:37.000Z | 2022-02-10T08:28:47.000Z | iast/serializers/department.py | luzhongyang/DongTai-webapi | f07b2b1bc1222999d0bb7e3300e65c953ee966f5 | [
"Apache-2.0"
] | 51 | 2021-11-09T09:19:05.000Z | 2022-02-10T02:37:04.000Z | iast/serializers/department.py | luzhongyang/DongTai-webapi | f07b2b1bc1222999d0bb7e3300e65c953ee966f5 | [
"Apache-2.0"
] | 21 | 2021-09-01T06:32:19.000Z | 2022-03-03T03:23:37.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author:owefsad
# software: PyCharm
# project: lingzhi-webapi
from rest_framework import serializers
from dongtai.models import User
from dongtai.models.department import Department
class DepartmentSerializer(serializers.ModelSerializer):
user_count = serializers.Ser... | 27.730769 | 86 | 0.710125 | 83 | 721 | 6.048193 | 0.578313 | 0.053785 | 0.067729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001681 | 0.174757 | 721 | 25 | 87 | 28.84 | 0.842017 | 0.135922 | 0 | 0 | 0 | 0 | 0.072816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ef8e6caf23a898242e0cad01c4af50ac98c7dfb | 12,399 | py | Python | spar_python/analytics/ta2/parse_circuit_log_test.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | spar_python/analytics/ta2/parse_circuit_log_test.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | spar_python/analytics/ta2/parse_circuit_log_test.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: Tim Meunier
# Description: Unit tests for the perfomer encrypted
# circuit log file parser
# ************************************... | 50.198381 | 135 | 0.603678 | 1,319 | 12,399 | 5.421531 | 0.154663 | 0.120822 | 0.153825 | 0.029367 | 0.734303 | 0.715844 | 0.658649 | 0.641728 | 0.586352 | 0.533072 | 0 | 0.119487 | 0.295992 | 12,399 | 246 | 136 | 50.402439 | 0.699737 | 0.052585 | 0 | 0.430556 | 0 | 0.00463 | 0.249936 | 0.080318 | 0 | 0 | 0 | 0.004065 | 0.037037 | 1 | 0.027778 | false | 0 | 0.032407 | 0 | 0.078704 | 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 |
f1006919002985162e2bf9e8cb28be291d009c56 | 531 | py | Python | setup.py | zebpalmer/Python | c21c813a5af54de3d6671b822012f346553623b4 | [
"MIT"
] | 2 | 2019-09-18T10:50:31.000Z | 2021-03-20T08:52:04.000Z | setup.py | zebpalmer/Python | c21c813a5af54de3d6671b822012f346553623b4 | [
"MIT"
] | null | null | null | setup.py | zebpalmer/Python | c21c813a5af54de3d6671b822012f346553623b4 | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import Quandl
setup(name = 'Quandl',
description = 'Package for Quandl API access',
version = Quandl.__version__,
author = ", ".join(Quandl.__authors__),
maintainer = Quandl.__maintainer__,
mai... | 24.136364 | 52 | 0.629002 | 53 | 531 | 5.811321 | 0.622642 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012723 | 0.259887 | 531 | 21 | 53 | 25.285714 | 0.770992 | 0 | 0 | 0 | 0 | 0 | 0.129944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.210526 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f10624ebcad4c054bd4763bf4f173e415f217f5f | 4,635 | py | Python | cmscalibration/data/dataset.py | mxsg/CMS-Model-Calibration | f7f85e863190f7a7ef0922dca4d0a8f8178e5a9e | [
"MIT"
] | null | null | null | cmscalibration/data/dataset.py | mxsg/CMS-Model-Calibration | f7f85e863190f7a7ef0922dca4d0a8f8178e5a9e | [
"MIT"
] | null | null | null | cmscalibration/data/dataset.py | mxsg/CMS-Model-Calibration | f7f85e863190f7a7ef0922dca4d0a8f8178e5a9e | [
"MIT"
] | null | null | null | from enum import Enum
class Metric(Enum):
""" Contains the possible metrics a dataset can exhibit.
Available metrics currently include ones from the following categories:
- performance metrics
- timing information and time stamps
- entity (e.g., job or node) category information
"""
# Per... | 30.097403 | 118 | 0.66192 | 548 | 4,635 | 5.428832 | 0.375912 | 0.018151 | 0.013445 | 0.02521 | 0.073277 | 0.072605 | 0.058487 | 0.058487 | 0.058487 | 0.033613 | 0 | 0.001159 | 0.255448 | 4,635 | 153 | 119 | 30.294118 | 0.86091 | 0.218986 | 0 | 0.117021 | 0 | 0 | 0.16878 | 0.006199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053191 | false | 0 | 0.010638 | 0 | 0.659574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1070e7683c969a25dc48150b2ca61554d3bb23f | 5,754 | py | Python | src/ikazuchi/plugins/speech.py | t2y/ikazuchi.plugins.speech | 6b73241460368ce50e71801e39d7e2159b59c56f | [
"Apache-2.0"
] | null | null | null | src/ikazuchi/plugins/speech.py | t2y/ikazuchi.plugins.speech | 6b73241460368ce50e71801e39d7e2159b59c56f | [
"Apache-2.0"
] | null | null | null | src/ikazuchi/plugins/speech.py | t2y/ikazuchi.plugins.speech | 6b73241460368ce50e71801e39d7e2159b59c56f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import codecs
import subprocess
from tempfile import NamedTemporaryFile
from ikazuchi.core.handler.base import BaseHandler
from ikazuchi.core.handler.utils import get_and_check_file_access
from ikazuchi.core.translator import TRANSLATE_API as API
from ikazuchi.ikazuchi import (base_parser, sub... | 38.36 | 79 | 0.634689 | 742 | 5,754 | 4.708895 | 0.242588 | 0.03091 | 0.021465 | 0.032914 | 0.142244 | 0.067258 | 0.014883 | 0.014883 | 0 | 0 | 0 | 0.013911 | 0.250434 | 5,754 | 149 | 80 | 38.61745 | 0.796198 | 0.01512 | 0 | 0.07874 | 0 | 0 | 0.095993 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 0 | null | null | 0 | 0.133858 | null | null | 0.055118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1126fefbaeaa1ea0dabd1a4a9a79fda14c3c53a | 2,260 | py | Python | experiment_tests/basic_experiments.py | probablytom/bpi_13_python | ef042674d3d40857237511af1fbca59ede97e75e | [
"MIT"
] | null | null | null | experiment_tests/basic_experiments.py | probablytom/bpi_13_python | ef042674d3d40857237511af1fbca59ede97e75e | [
"MIT"
] | null | null | null | experiment_tests/basic_experiments.py | probablytom/bpi_13_python | ef042674d3d40857237511af1fbca59ede97e75e | [
"MIT"
] | null | null | null | import unittest
from theatre_au import Clock
from actor_au import Troupe
from domain_model import construct_universe, action_log, generate_XES, new_trace
class ExperimentalScratchpad(unittest.TestCase):
def setUp(self):
self.clock = Clock()
self.reps = Troupe()
self.specialists = Troupe()... | 29.350649 | 109 | 0.569027 | 245 | 2,260 | 5 | 0.342857 | 0.058776 | 0.035918 | 0.081633 | 0.462857 | 0.435918 | 0.435918 | 0.435918 | 0.435918 | 0.360816 | 0 | 0.013615 | 0.35 | 2,260 | 76 | 110 | 29.736842 | 0.820286 | 0.027876 | 0 | 0.607143 | 1 | 0 | 0.050593 | 0.031449 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.125 | false | 0 | 0.071429 | 0 | 0.232143 | 0 | 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 |
f11502da809353d3e04bfd40b3e232ef13fb8a10 | 2,390 | py | Python | meiduo/apps/users/utils.py | libin-c/Meiduo | 58468fd619a8d9f022df442a10a56b1b12ed1dd8 | [
"MIT"
] | null | null | null | meiduo/apps/users/utils.py | libin-c/Meiduo | 58468fd619a8d9f022df442a10a56b1b12ed1dd8 | [
"MIT"
] | 5 | 2020-05-11T20:23:15.000Z | 2021-11-02T15:46:04.000Z | meiduo/apps/users/utils.py | libin-c/Meiduo | 58468fd619a8d9f022df442a10a56b1b12ed1dd8 | [
"MIT"
] | null | null | null | import re
from django.conf import settings
from django.contrib.auth.backends import ModelBackend
from itsdangerous import BadData
from apps.users.models import User
# 自定义认证后端类
from meiduo.settings.dev import logger
from utils.secret import SecretOauth
def get_user_by_account(account):
"""
根据account查询用户
... | 24.387755 | 84 | 0.6 | 272 | 2,390 | 5.165441 | 0.319853 | 0.049822 | 0.064057 | 0.076868 | 0.317438 | 0.185053 | 0.113879 | 0.113879 | 0.09395 | 0 | 0 | 0.007798 | 0.30251 | 2,390 | 97 | 85 | 24.639175 | 0.835033 | 0.19749 | 0 | 0.395833 | 0 | 0 | 0.024017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.0625 | 0.166667 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f11af5159da93a6017221c5833ef55a7b96baeab | 354 | py | Python | biopandas/pdb/__init__.py | tahmidbintaslim/biopandas | 75a2d15584a61ad11536104fa280f2885454a394 | [
"BSD-3-Clause"
] | 453 | 2015-11-24T01:16:05.000Z | 2022-03-18T13:52:04.000Z | biopandas/pdb/__init__.py | tahmidbintaslim/biopandas | 75a2d15584a61ad11536104fa280f2885454a394 | [
"BSD-3-Clause"
] | 84 | 2015-11-24T07:41:53.000Z | 2022-03-17T00:37:37.000Z | biopandas/pdb/__init__.py | tahmidbintaslim/biopandas | 75a2d15584a61ad11536104fa280f2885454a394 | [
"BSD-3-Clause"
] | 115 | 2015-12-01T01:37:43.000Z | 2022-03-10T13:20:24.000Z | # BioPandas
# Author: Sebastian Raschka <mail@sebastianraschka.com>
# License: BSD 3 clause
# Project Website: http://rasbt.github.io/biopandas/
# Code Repository: https://github.com/rasbt/biopandas
"""
BioPandas module for working with Protein Data Bank (PDB)
files in pandas DataFrames.
"""
from .pandas_pdb import P... | 23.6 | 57 | 0.757062 | 45 | 354 | 5.844444 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003236 | 0.127119 | 354 | 14 | 58 | 25.285714 | 0.847896 | 0.776836 | 0 | 0 | 0 | 0 | 0.134328 | 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 |
f11fc082634360f202d4baf18fad1a6d3429b438 | 1,472 | py | Python | Simple HTTP Server/httpServer.py | daniellycosta/python_scripts_hacktoberfest2019 | 642e648b41c88984b41a22f786fade6a54ef5001 | [
"MIT"
] | null | null | null | Simple HTTP Server/httpServer.py | daniellycosta/python_scripts_hacktoberfest2019 | 642e648b41c88984b41a22f786fade6a54ef5001 | [
"MIT"
] | null | null | null | Simple HTTP Server/httpServer.py | daniellycosta/python_scripts_hacktoberfest2019 | 642e648b41c88984b41a22f786fade6a54ef5001 | [
"MIT"
] | 1 | 2020-10-02T03:30:44.000Z | 2020-10-02T03:30:44.000Z | import socket
from HTMLParser import HTMLParser
indexFile = open('index.html','r')
index = indexFile.read()
page404File = open('page404.html','r')
page404 = page404File.read()
# server host and port definition
HOST = '' # server ip (empty)
PORT = 8080 # server port
# create a socket with IPv4 (AF_INET)... | 28.307692 | 94 | 0.699049 | 199 | 1,472 | 5.070352 | 0.442211 | 0.071358 | 0.023786 | 0.026759 | 0.031715 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027515 | 0.209918 | 1,472 | 51 | 95 | 28.862745 | 0.840069 | 0.344429 | 0 | 0 | 0 | 0 | 0.122494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f131822d2876d486bc9f4306fc36427725e30437 | 2,014 | py | Python | Tools/Recon/Profile/Phone_Number/atheris.py | Apollo-o/Whistle | f6df3b67be81fe36f0ecb8b4831bc5dc9cdc4a52 | [
"CC0-1.0"
] | null | null | null | Tools/Recon/Profile/Phone_Number/atheris.py | Apollo-o/Whistle | f6df3b67be81fe36f0ecb8b4831bc5dc9cdc4a52 | [
"CC0-1.0"
] | null | null | null | Tools/Recon/Profile/Phone_Number/atheris.py | Apollo-o/Whistle | f6df3b67be81fe36f0ecb8b4831bc5dc9cdc4a52 | [
"CC0-1.0"
] | null | null | null | # Author: O-O
# Date: 6/23/2019
# Description: A Simple Reverse Lookup Program.
import webbrowser
# Generates URLS.
# Precondition: A String.
# Postcondition: Web-Browser Controller (Opens URLS)
def generate_urls(phone_number):
# Phone Number.
area,prefix,line = phone_number[:3], phone_number[3:6], phone_num... | 32.483871 | 151 | 0.576465 | 220 | 2,014 | 5.209091 | 0.477273 | 0.124782 | 0.033159 | 0.055846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017187 | 0.21996 | 2,014 | 61 | 152 | 33.016393 | 0.712285 | 0.180238 | 0 | 0.0625 | 1 | 0.03125 | 0.510404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.09375 | 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 |
f132e74654ba84f3c9be398d164080b7c216ae8e | 867 | py | Python | examples/show_tempos.py | storagebot/pyechonest | aa39f008e9ecdefedb3f37187596c6cf2b770e80 | [
"BSD-3-Clause"
] | 1 | 2015-04-26T12:21:23.000Z | 2015-04-26T12:21:23.000Z | examples/show_tempos.py | debrice/pyechonest | 8afe498ad70d456d064c328fe55a0049441c1cac | [
"BSD-3-Clause"
] | null | null | null | examples/show_tempos.py | debrice/pyechonest | 8afe498ad70d456d064c328fe55a0049441c1cac | [
"BSD-3-Clause"
] | null | null | null | # Shows the tempos for all of the songs in a director
# requires eyeD3, available from http://eyed3.nicfit.net/
import sys
import os
import eyeD3
import tempo
def show_tempo(mp3):
"given an mp3, print out the artist, title and tempo of the song"
tag = eyeD3.Tag()
tag.link(mp3)
my_tempo = tempo.get_te... | 24.771429 | 69 | 0.635525 | 131 | 867 | 4.083969 | 0.450382 | 0.056075 | 0.041122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018321 | 0.244521 | 867 | 34 | 70 | 25.5 | 0.798473 | 0.123414 | 0 | 0 | 0 | 0 | 0.250991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.32 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1343917f3d52976f0620a8993ab397c596d873e | 321 | py | Python | dialogos/quotes/urls.py | bertucho/epic-movie-quotes-quiz | 09e4ec58a441ab74c1ce6e0fde4e71b08a4d7250 | [
"MIT"
] | null | null | null | dialogos/quotes/urls.py | bertucho/epic-movie-quotes-quiz | 09e4ec58a441ab74c1ce6e0fde4e71b08a4d7250 | [
"MIT"
] | null | null | null | dialogos/quotes/urls.py | bertucho/epic-movie-quotes-quiz | 09e4ec58a441ab74c1ce6e0fde4e71b08a4d7250 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from quotes import views
from views import *
urlpatterns = patterns('',
url(r'^sdf$', index, name='index'),
url(r'^$', GameView.as_view(), name='game'),
url(r'^post$', AnswerView.as_view(), name='answer'),
url(r'^edit$', QuoteUpdate.as_view(), name='update'),
)
... | 29.181818 | 55 | 0.65109 | 45 | 321 | 4.577778 | 0.533333 | 0.07767 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 321 | 10 | 56 | 32.1 | 0.746377 | 0 | 0 | 0 | 0 | 0 | 0.128617 | 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 |
f134d17016594831785b2ac0544232f61c2c3c64 | 318 | py | Python | setup.py | timbook/modelmonitor | 876fdc8fb2b48e8e0942f9e7809193c62f0aa77e | [
"MIT"
] | null | null | null | setup.py | timbook/modelmonitor | 876fdc8fb2b48e8e0942f9e7809193c62f0aa77e | [
"MIT"
] | null | null | null | setup.py | timbook/modelmonitor | 876fdc8fb2b48e8e0942f9e7809193c62f0aa77e | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="modelmonitor",
author="Tim Book",
author_email="timothykbook@gmail.com",
description="A library for monitoring data changes over time",
url="https://github.com/timbook/modelmonitor",
packages=setuptools.find_packages(),
python_requires='>=3.6',
)
| 26.5 | 66 | 0.713836 | 37 | 318 | 6.054054 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.150943 | 318 | 11 | 67 | 28.909091 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.418239 | 0.069182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f13b60a1da860ddec297fecdd34c2372b3ccd802 | 15,253 | py | Python | code/python/lib/mg_viz/stats_large.py | alguru/metagenemark-2 | 3389a6bb306acea87ab3ccb63c47281aadafb273 | [
"MIT"
] | null | null | null | code/python/lib/mg_viz/stats_large.py | alguru/metagenemark-2 | 3389a6bb306acea87ab3ccb63c47281aadafb273 | [
"MIT"
] | 1 | 2022-03-30T10:18:15.000Z | 2022-03-30T10:18:15.000Z | code/python/lib/mg_viz/stats_large.py | gatech-genemark/MetaGeneMark-2-exp | 99f8cf091911b9200af97e722543ad84a247770f | [
"MIT"
] | 1 | 2021-04-06T12:43:12.000Z | 2021-04-06T12:43:12.000Z | # Author: Karl Gemayel
# Created: 8/5/20, 8:25 AM
import logging
import math
import os
from textwrap import wrap
import pandas as pd
from typing import *
import seaborn
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter
from mg_general import Environment
from mg_io.general import load_obj, ... | 38.811705 | 133 | 0.61719 | 2,133 | 15,253 | 4.159869 | 0.124707 | 0.040573 | 0.019272 | 0.024344 | 0.767272 | 0.730982 | 0.697847 | 0.669109 | 0.623803 | 0.577708 | 0 | 0.021841 | 0.243559 | 15,253 | 392 | 134 | 38.910714 | 0.747183 | 0.11342 | 0 | 0.498099 | 0 | 0 | 0.113355 | 0 | 0 | 0 | 0 | 0.002551 | 0 | 1 | 0.041825 | false | 0 | 0.068441 | 0.007605 | 0.117871 | 0.007605 | 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 |
f13dfa24c8f93e4de3743cfda3f5e390d7c85332 | 2,613 | py | Python | falconRaspberry/vehicle/engine.py | omarsy/Falcon | ef762e4ec2affa2873e30d8b5d59d8897d422597 | [
"MIT"
] | 1 | 2019-04-21T20:41:04.000Z | 2019-04-21T20:41:04.000Z | falconRaspberry/vehicle/engine.py | MessasKouseila/falcon | 8b6ba22797877d7c7613c772a2a1f91d234f7dec | [
"MIT"
] | null | null | null | falconRaspberry/vehicle/engine.py | MessasKouseila/falcon | 8b6ba22797877d7c7613c772a2a1f91d234f7dec | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
class Engine:
FREQUENCY = 100
BOOT_FEQUENCY = 10
def __init__(self, high, mid, low ):
self.high = high
self.mid = mid
self.low = low
self.pwmHigh = None
self.pwmMid = None
self.pwmLow = None
def getHigh(self):
return self.high
def getMid(self):
return self.mid
def getLow(... | 24.885714 | 45 | 0.722924 | 339 | 2,613 | 5.545723 | 0.168142 | 0.051064 | 0.023404 | 0.048936 | 0.3 | 0.244149 | 0.17766 | 0.137234 | 0.137234 | 0.137234 | 0 | 0.002248 | 0.148871 | 2,613 | 104 | 46 | 25.125 | 0.843076 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.01 | 0.03 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f140e6306cd4b9c5bc97fbd6d7c36b197a7b90cf | 3,158 | py | Python | apps/reports/views.py | AnimeshRy/gymrocket | c15aed03607f57a7fb01facb826f82d77e0332b7 | [
"MIT"
] | 4 | 2021-03-15T12:08:51.000Z | 2022-03-30T14:48:16.000Z | apps/reports/views.py | AnimeshRy/gymrocket | c15aed03607f57a7fb01facb826f82d77e0332b7 | [
"MIT"
] | null | null | null | apps/reports/views.py | AnimeshRy/gymrocket | c15aed03607f57a7fb01facb826f82d77e0332b7 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.http import HttpResponse
import csv
from apps.members.models import Member
from .models import GenerateReportForm
from django.db.models import Q
from django.contrib.auth.decorators import login_required
def export_all(user_obj):
# Generate Users.csv file w... | 38.512195 | 100 | 0.58993 | 353 | 3,158 | 5.164306 | 0.294618 | 0.126714 | 0.145913 | 0.069117 | 0.380143 | 0.380143 | 0.312123 | 0.312123 | 0.312123 | 0.223807 | 0 | 0.003617 | 0.299557 | 3,158 | 81 | 101 | 38.987654 | 0.820524 | 0.121596 | 0 | 0.285714 | 1 | 0 | 0.123952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.111111 | 0 | 0.238095 | 0 | 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 |
f1418f6a18565d695a2a58d62afc3f91de80db3a | 401 | py | Python | setup.py | ysglh/evolute | ea868e5d04e6bb59760a9b6dec709303637b9f10 | [
"MIT"
] | 174 | 2018-08-15T21:48:30.000Z | 2022-03-13T01:34:48.000Z | setup.py | ysglh/evolute | ea868e5d04e6bb59760a9b6dec709303637b9f10 | [
"MIT"
] | null | null | null | setup.py | ysglh/evolute | ea868e5d04e6bb59760a9b6dec709303637b9f10 | [
"MIT"
] | 27 | 2018-05-16T16:25:36.000Z | 2021-11-02T20:51:38.000Z | from setuptools import setup, find_packages
setup(
name='evolute',
version='0.9.0',
packages=find_packages(),
url='https://github.com/csxeba/evolute.git',
license='MIT',
author='Csaba Gór',
author_email='csxeba@gmail.com',
description='Evolutionary algorithm toolbox',
long_descripti... | 26.733333 | 49 | 0.698254 | 49 | 401 | 5.571429 | 0.755102 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008824 | 0.15212 | 401 | 14 | 50 | 28.642857 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.321696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f142be6f64ce84f706ae93f6e0a3bfff599295dc | 3,031 | py | Python | control_layer/uuv_control_utils/scripts/apply_body_wrench.py | shubhamkorde/AnahitaPlus | 0fc99ad774640c8dc8572ffb58d10fa18bb1a4b1 | [
"BSD-3-Clause"
] | 2 | 2020-09-21T19:45:07.000Z | 2020-09-22T15:46:45.000Z | control_layer/uuv_control_utils/scripts/apply_body_wrench.py | shubhamkorde/AnahitaPlus | 0fc99ad774640c8dc8572ffb58d10fa18bb1a4b1 | [
"BSD-3-Clause"
] | 2 | 2019-06-13T10:58:38.000Z | 2019-09-24T14:09:05.000Z | control_layer/uuv_control_utils/scripts/apply_body_wrench.py | shubhamkorde/AnahitaPlus | 0fc99ad774640c8dc8572ffb58d10fa18bb1a4b1 | [
"BSD-3-Clause"
] | 11 | 2019-12-05T05:18:10.000Z | 2020-04-06T13:01:39.000Z | #!/usr/bin/env python
# Copyright (c) 2016 The UUV Simulator Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 29.427184 | 87 | 0.635104 | 390 | 3,031 | 4.823077 | 0.394872 | 0.009569 | 0.017012 | 0.019139 | 0.069112 | 0.037214 | 0.019139 | 0 | 0 | 0 | 0 | 0.017075 | 0.246453 | 3,031 | 102 | 88 | 29.715686 | 0.80648 | 0.200924 | 0 | 0.088235 | 0 | 0 | 0.213544 | 0.020773 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f14465b2943d9c01982ead5e862581f5c9a9e84c | 356 | py | Python | django_traceback/models.py | andrewp-as-is/django-traceback.py | 286094e329e0395e7f40a5e77216c2d03b0fb385 | [
"Unlicense"
] | 1 | 2020-10-03T06:07:35.000Z | 2020-10-03T06:07:35.000Z | django_traceback/models.py | andrewp-as-is/django-traceback.py | 286094e329e0395e7f40a5e77216c2d03b0fb385 | [
"Unlicense"
] | null | null | null | django_traceback/models.py | andrewp-as-is/django-traceback.py | 286094e329e0395e7f40a5e77216c2d03b0fb385 | [
"Unlicense"
] | 1 | 2020-10-03T06:07:39.000Z | 2020-10-03T06:07:39.000Z | from django.db import models
class Traceback(models.Model):
type = models.TextField()
value = models.TextField()
traceback = models.TextField()
path = models.TextField(blank=True,null=True)
created_at = models.DateTimeField(auto_now_add=True)
class Meta:
db_table = 'django_traceback'... | 23.733333 | 56 | 0.685393 | 42 | 356 | 5.666667 | 0.571429 | 0.252101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205056 | 356 | 14 | 57 | 25.428571 | 0.840989 | 0 | 0 | 0 | 0 | 0 | 0.075843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.8 | 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 |
f1448f06373972137c6c53b889b91b947ea395f4 | 752 | py | Python | corehq/apps/ota/migrations/0007_update_blob_paths.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/ota/migrations/0007_update_blob_paths.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/ota/migrations/0007_update_blob_paths.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | # Generated by Django 1.11.14 on 2018-08-03 13:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ota', '0006_one_reinstall_measure'),
]
operations = [
migrations.RunSQL(
# This migration is not reversible because blobs created
... | 28.923077 | 73 | 0.595745 | 87 | 752 | 5 | 0.678161 | 0.075862 | 0.089655 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041833 | 0.332447 | 752 | 25 | 74 | 30.08 | 0.824701 | 0.363032 | 0 | 0 | 1 | 0 | 0.098976 | 0.088737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f14762183446dcbbb15ac368035ea80f2d697fd9 | 1,099 | py | Python | test/fail_testcases.py | cmorterud/flask-eztest | 3d0827c64e09c7787ec00f62ef8a94bb153ae9a5 | [
"MIT"
] | 1 | 2018-06-22T04:56:14.000Z | 2018-06-22T04:56:14.000Z | test/fail_testcases.py | cmorterud/flask-eztest | 3d0827c64e09c7787ec00f62ef8a94bb153ae9a5 | [
"MIT"
] | null | null | null | test/fail_testcases.py | cmorterud/flask-eztest | 3d0827c64e09c7787ec00f62ef8a94bb153ae9a5 | [
"MIT"
] | 2 | 2018-08-30T08:56:17.000Z | 2019-05-08T15:20:26.000Z |
from flaskeztest import EZTestCase
from flaskeztest.exceptions import FixtureDoesNotExistError, EztestidNotInFixture
class FailTC1(EZTestCase):
FIXTURE = "twousers"
def runTest(self):
self.navigate_to_endpoint('index_two')
try:
self.assert_full_fixture_exists()
self.f... | 26.166667 | 87 | 0.66515 | 107 | 1,099 | 6.719626 | 0.448598 | 0.070932 | 0.058414 | 0.05007 | 0.114047 | 0.114047 | 0.114047 | 0.114047 | 0 | 0 | 0 | 0.001239 | 0.265696 | 1,099 | 41 | 88 | 26.804878 | 0.889715 | 0 | 0 | 0.333333 | 0 | 0 | 0.183971 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.133333 | false | 0.166667 | 0.066667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f14c3a534b6e2ff42a0b00e89103520a3c797b9c | 638 | py | Python | interest/migrations/0002_auto_20210523_2111.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | null | null | null | interest/migrations/0002_auto_20210523_2111.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | 4 | 2021-05-02T01:14:59.000Z | 2022-02-13T17:58:36.000Z | interest/migrations/0002_auto_20210523_2111.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-23 21:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('interest', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='interest',
name='name',
... | 26.583333 | 121 | 0.60815 | 67 | 638 | 5.686567 | 0.656716 | 0.104987 | 0.131234 | 0.152231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054113 | 0.275862 | 638 | 23 | 122 | 27.73913 | 0.770563 | 0.070533 | 0 | 0.235294 | 1 | 0 | 0.159052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f14cca8920c13babdb5f450b2a03d4a66aa045bd | 897 | py | Python | utils.py | TrueNobility303/image-classification-CIFAR10 | e0200d9b4d4f6ceaf058177abebd3f6510aebd9a | [
"MIT"
] | 2 | 2021-06-10T16:19:50.000Z | 2021-06-16T10:55:14.000Z | utils.py | TrueNobility303/image-classification-CIFAR10 | e0200d9b4d4f6ceaf058177abebd3f6510aebd9a | [
"MIT"
] | null | null | null | utils.py | TrueNobility303/image-classification-CIFAR10 | e0200d9b4d4f6ceaf058177abebd3f6510aebd9a | [
"MIT"
] | null | null | null | import numpy as np
import torchvision
import torch
import matplotlib.pyplot as plt
import torch
import torchvision
import torchvision.transforms as transforms
from torch.utils.data import Dataset
from torch.utils.data.dataloader import DataLoader
from config import device
import torch.nn as nn
import torch.optim as opt... | 27.181818 | 51 | 0.769231 | 128 | 897 | 5.171875 | 0.40625 | 0.066465 | 0.069486 | 0.054381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001328 | 0.160535 | 897 | 33 | 52 | 27.181818 | 0.877822 | 0.023411 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.518519 | 0.074074 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f14e4386fd51245a77e8a6b909a18b755412d9be | 2,068 | py | Python | setup.py | xguse/holographer | d389655772afc5a5c4e458c763d59c25a8508f18 | [
"MIT"
] | null | null | null | setup.py | xguse/holographer | d389655772afc5a5c4e458c763d59c25a8508f18 | [
"MIT"
] | null | null | null | setup.py | xguse/holographer | d389655772afc5a5c4e458c763d59c25a8508f18 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""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()
requirements = [
'Click>=6.0',
'logzero',
... | 30.865672 | 325 | 0.648936 | 250 | 2,068 | 5.28 | 0.552 | 0.100758 | 0.132576 | 0.078788 | 0.040909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011853 | 0.224855 | 2,068 | 66 | 326 | 31.333333 | 0.811603 | 0.100097 | 0 | 0 | 0 | 0.019231 | 0.491626 | 0.015667 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.019231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f15fcf355f967e1d7ebc0044368b9e8988697682 | 1,272 | py | Python | fiasco_api/expenses/models.py | xelnod/fiasco_backend | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | [
"MIT"
] | null | null | null | fiasco_api/expenses/models.py | xelnod/fiasco_backend | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | [
"MIT"
] | null | null | null | fiasco_api/expenses/models.py | xelnod/fiasco_backend | edeca8cac8c7b1a1cc53051d4443cc2996eba37c | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from core.mixins import Trackable
class ExpenseProto(models.Model):
tags = models.ManyToManyField('tags.Tag')
kit = models.ForeignKey('categories.Kit', on_delete=models.SET_NULL, blank=True, null=True)
title = models.CharField(max_length=255)
... | 34.378378 | 129 | 0.749214 | 151 | 1,272 | 6.211921 | 0.437086 | 0.085288 | 0.074627 | 0.067164 | 0.223881 | 0.179104 | 0.179104 | 0.179104 | 0.179104 | 0.179104 | 0 | 0.005525 | 0.146226 | 1,272 | 36 | 130 | 35.333333 | 0.858195 | 0 | 0 | 0.074074 | 0 | 0 | 0.055031 | 0.018082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0.037037 | 0.851852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1619cbdb55c21eebfd2ca8844452a484636f5b9 | 775 | py | Python | photos/migrations/0001_initial.py | erastus-1/Gallery | 67a8d61d6d017cb8a78462678b54da782150d2c9 | [
"MIT"
] | null | null | null | photos/migrations/0001_initial.py | erastus-1/Gallery | 67a8d61d6d017cb8a78462678b54da782150d2c9 | [
"MIT"
] | null | null | null | photos/migrations/0001_initial.py | erastus-1/Gallery | 67a8d61d6d017cb8a78462678b54da782150d2c9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-09 06:50
import cloudinary.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Image',
fields=[
(... | 29.807692 | 115 | 0.609032 | 81 | 775 | 5.691358 | 0.654321 | 0.058568 | 0.078091 | 0.104121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042179 | 0.265806 | 775 | 25 | 116 | 31 | 0.768014 | 0.058065 | 0 | 0 | 1 | 0 | 0.078297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 |
f1630ee487947a7bff056c1c6a14584627e28798 | 2,832 | py | Python | circle_core/web/api/replication_masters.py | glucoseinc/CircleCore | 577f814ce2944efb6e5997f3d7838c71ce9aea6a | [
"MIT"
] | 3 | 2019-01-11T04:30:18.000Z | 2019-01-11T04:31:18.000Z | circle_core/web/api/replication_masters.py | glucoseinc/CircleCore | 577f814ce2944efb6e5997f3d7838c71ce9aea6a | [
"MIT"
] | 16 | 2018-11-21T11:47:18.000Z | 2021-09-01T03:52:35.000Z | circle_core/web/api/replication_masters.py | glucoseinc/CircleCore | 577f814ce2944efb6e5997f3d7838c71ce9aea6a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""共有マスター関連APIの実装."""
# community module
from flask import abort, request
import sqlalchemy.exc
# project module
from circle_core.models import MetaDataSession, ReplicationMaster
from .api import api
from .utils import respond_failure, respond_success
from ..utils import (oauth_require_read_... | 29.5 | 89 | 0.754237 | 281 | 2,832 | 7.291815 | 0.309609 | 0.157638 | 0.082967 | 0.032211 | 0.232796 | 0.205954 | 0.175695 | 0.138604 | 0.050756 | 0.050756 | 0 | 0.004168 | 0.152895 | 2,832 | 95 | 90 | 29.810526 | 0.849937 | 0.205862 | 0 | 0.288889 | 0 | 0 | 0.073023 | 0.032093 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.488889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f1677483d30c15fa4a7bd2f5195ec1678c9aa75b | 2,803 | py | Python | 1c_GT_Computer_Networks/Project-3/Topology.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | 4 | 2016-08-28T03:21:36.000Z | 2021-01-19T01:59:17.000Z | 1c_GT_Computer_Networks/Project-3/Topology.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | null | null | null | 1c_GT_Computer_Networks/Project-3/Topology.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | 1 | 2018-05-20T12:33:23.000Z | 2018-05-20T12:33:23.000Z | # Assignment 3 for OMS6250
#
# Defines a Topology, which is a collection of Nodes. Students should not
# modify this file. This is NOT a topology like the ones defined in Mininet projects.
#
# Copyright 2015 Sean Donovan
from DistanceVector import *
class Topology(object):
def __init__(self, conf_file):
... | 35.0375 | 86 | 0.585801 | 354 | 2,803 | 4.528249 | 0.440678 | 0.039925 | 0.022458 | 0.032439 | 0.076107 | 0.027449 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.350696 | 2,803 | 79 | 87 | 35.481013 | 0.875275 | 0.16518 | 0 | 0.307692 | 0 | 0 | 0.034868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f180d4f03f7e3782891a070c90168ee6769dbd4b | 2,393 | py | Python | boardfarm/devices/authenticated_telnet.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 17 | 2018-04-19T08:35:47.000Z | 2021-11-01T01:38:33.000Z | boardfarm/devices/authenticated_telnet.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 190 | 2018-04-19T07:00:18.000Z | 2022-02-11T01:42:51.000Z | boardfarm/devices/authenticated_telnet.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 30 | 2018-04-12T01:49:21.000Z | 2022-02-11T14:53:19.000Z | import pexpect
import boardfarm.config as config
from boardfarm.lib.bft_pexpect_helper import bft_pexpect_helper
class AuthenticatedTelnetConnection:
"""Allow authenticated telnet sessions to be established with a \
unit's serial ports by OpenGear server.
If a board is connected serially to a OpenGear t... | 34.681159 | 92 | 0.617635 | 290 | 2,393 | 5.013793 | 0.37931 | 0.075653 | 0.033012 | 0.028886 | 0.05227 | 0.05227 | 0.05227 | 0 | 0 | 0 | 0 | 0.000591 | 0.292938 | 2,393 | 68 | 93 | 35.191176 | 0.858747 | 0.33013 | 0 | 0.054054 | 0 | 0 | 0.147039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.081081 | 0.081081 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f1848a6a488cda88f054bb7571aceea97a0b3d14 | 690 | py | Python | spam-filter/NaiveBayesClassifier.py | sevmardi/ml-projects | 0eb218c77cda61285cfcf599599ff28a8a8deba7 | [
"MIT"
] | null | null | null | spam-filter/NaiveBayesClassifier.py | sevmardi/ml-projects | 0eb218c77cda61285cfcf599599ff28a8a8deba7 | [
"MIT"
] | 7 | 2020-06-06T01:26:08.000Z | 2022-02-10T11:26:58.000Z | spam-filter/NaiveBayesClassifier.py | sevmardi/ml-projects | 0eb218c77cda61285cfcf599599ff28a8a8deba7 | [
"MIT"
] | null | null | null | import MailSpamFilter
class NaiveBayesClassifier:
def __init__(self, k=0.5):
self.k = k
self.words_probs = []
def train(self, training_set):
# count spam and non-spam messages
num_spams = len(
[is_spam for message, is_spam in training_set if is_spam])
num_... | 31.363636 | 70 | 0.671014 | 89 | 690 | 4.910112 | 0.438202 | 0.100687 | 0.09611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.252174 | 690 | 21 | 71 | 32.857143 | 0.843023 | 0.105797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f18699f6bd3e257501ff398db9ec35282969ef93 | 311 | py | Python | app/middleware/python/ram_usage.py | anhquoctran/node-rpi-monsys | 5c0e7c5b4b7bf6de966dfb6ffe32bd283fb8fb7a | [
"MIT"
] | null | null | null | app/middleware/python/ram_usage.py | anhquoctran/node-rpi-monsys | 5c0e7c5b4b7bf6de966dfb6ffe32bd283fb8fb7a | [
"MIT"
] | null | null | null | app/middleware/python/ram_usage.py | anhquoctran/node-rpi-monsys | 5c0e7c5b4b7bf6de966dfb6ffe32bd283fb8fb7a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import psutil
import sys
import time
# Return Virtual Memory Usage as a JSON
def get_memory_percentage():
while True:
r = psutil.virtual_memory().percent
print(r)
sys.stdout.flush()
time.sleep(1)
if __name__ == '__main__':
get_memory_percentage()
| 19.4375 | 43 | 0.665595 | 42 | 311 | 4.619048 | 0.714286 | 0.134021 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.234727 | 311 | 15 | 44 | 20.733333 | 0.810924 | 0.186495 | 0 | 0 | 0 | 0 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f18f7a49dc45e6932d4b5a8e61c3228a5317f294 | 1,129 | py | Python | tests/unit/lib/bundle_cli_test.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 236 | 2015-12-29T22:50:03.000Z | 2022-03-28T21:12:34.000Z | tests/unit/lib/bundle_cli_test.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 2,628 | 2015-12-27T09:45:13.000Z | 2022-03-30T16:18:25.000Z | tests/unit/lib/bundle_cli_test.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 87 | 2015-12-30T01:36:46.000Z | 2022-03-08T15:21:30.000Z | import unittest
from codalab.lib.bundle_cli import BundleCLI
class BundleCliTest(unittest.TestCase):
def setUp(self) -> None:
self.bundle_cli = BundleCLI
def tearDown(self) -> None:
del self.bundle_cli
def test_collapse_bare_command_empty_args(self):
argv = ['cl', 'run', '---', '... | 38.931034 | 78 | 0.667848 | 138 | 1,129 | 5.130435 | 0.275362 | 0.076271 | 0.161017 | 0.079096 | 0.747175 | 0.663842 | 0.492938 | 0.492938 | 0.492938 | 0.492938 | 0 | 0 | 0.195748 | 1,129 | 28 | 79 | 40.321429 | 0.779736 | 0 | 0 | 0.272727 | 0 | 0 | 0.092117 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74afe6d7dc2aacf9fcf663af7925235779355a78 | 1,413 | py | Python | setup.py | legale/prepack | 8ad82fb252bc7e985175b2b9966aa7c0d217f72c | [
"MIT"
] | null | null | null | setup.py | legale/prepack | 8ad82fb252bc7e985175b2b9966aa7c0d217f72c | [
"MIT"
] | null | null | null | setup.py | legale/prepack | 8ad82fb252bc7e985175b2b9966aa7c0d217f72c | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='prepack',
version='0.4.2',
description='Python excel based data preparation library',
long_description="Library for preparing data for analysis. "
"Allows you to load and easily filter many same structure csv or xls, xlsx files. "
... | 48.724138 | 114 | 0.604388 | 152 | 1,413 | 5.592105 | 0.743421 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007859 | 0.279547 | 1,413 | 29 | 115 | 48.724138 | 0.827112 | 0.115357 | 0 | 0 | 0 | 0 | 0.560545 | 0.018444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74b4dd2e89725f56b4afa9fad54d5b059478cdab | 1,669 | py | Python | exception_reports/decorators.py | CircleUp/exception-reports | 283d1700020c8d2558cbb2ac2a398409de31f442 | [
"BSD-3-Clause"
] | 1 | 2018-01-05T06:53:11.000Z | 2018-01-05T06:53:11.000Z | exception_reports/decorators.py | CircleUp/exception-reports | 283d1700020c8d2558cbb2ac2a398409de31f442 | [
"BSD-3-Clause"
] | 6 | 2018-01-05T14:40:03.000Z | 2019-04-10T22:42:55.000Z | exception_reports/decorators.py | CircleUp/exception-reports | 283d1700020c8d2558cbb2ac2a398409de31f442 | [
"BSD-3-Clause"
] | null | null | null | import sys
from decorator import decorator
from exception_reports.reporter import append_to_exception_message, create_exception_report
from exception_reports.storages import LocalErrorStorage
def exception_report(storage_backend=LocalErrorStorage(), output_format="html", data_processor=None):
"""
Decorator ... | 31.490566 | 157 | 0.672259 | 194 | 1,669 | 5.592784 | 0.448454 | 0.073733 | 0.04977 | 0.04424 | 0.149309 | 0.117972 | 0.117972 | 0.117972 | 0.117972 | 0.117972 | 0 | 0.041237 | 0.244458 | 1,669 | 52 | 158 | 32.096154 | 0.819191 | 0.41462 | 0 | 0 | 0 | 0 | 0.03956 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74c471d1d72ba31b703ea6a15dd25e610bf41cfa | 5,972 | py | Python | evernotecheck.py | scpedicini/evernotecheck | 32663a577d22f2bdb9c9bac9c5f741e40efd18a7 | [
"MIT"
] | null | null | null | evernotecheck.py | scpedicini/evernotecheck | 32663a577d22f2bdb9c9bac9c5f741e40efd18a7 | [
"MIT"
] | null | null | null | evernotecheck.py | scpedicini/evernotecheck | 32663a577d22f2bdb9c9bac9c5f741e40efd18a7 | [
"MIT"
] | null | null | null | import logging
from evernote.api.client import EvernoteClient
from evernote.edam.notestore.ttypes import NoteFilter, NotesMetadataResultSpec
from evernote.edam.error.ttypes import (EDAMSystemException, EDAMErrorCode)
import pickle
import sys
from datetime import datetime
from time import sleep
import os
logger = logg... | 33.550562 | 267 | 0.682853 | 652 | 5,972 | 6.105828 | 0.334356 | 0.020095 | 0.010048 | 0.01055 | 0.09897 | 0.062798 | 0.062798 | 0.044712 | 0.044712 | 0.044712 | 0 | 0.009599 | 0.215003 | 5,972 | 177 | 268 | 33.740113 | 0.83959 | 0.122405 | 0 | 0.122642 | 0 | 0 | 0.075446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084906 | null | null | 0.103774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74d2a0a4ac8360f6243b2b0575a3f4eccdc09c49 | 6,240 | py | Python | generate_playlist.py | renoc/python-rpifo | 8c9fa6eca8129836447f712eb74d660d900a1c84 | [
"0BSD"
] | null | null | null | generate_playlist.py | renoc/python-rpifo | 8c9fa6eca8129836447f712eb74d660d900a1c84 | [
"0BSD"
] | null | null | null | generate_playlist.py | renoc/python-rpifo | 8c9fa6eca8129836447f712eb74d660d900a1c84 | [
"0BSD"
] | null | null | null | from random import randint, shuffle
from time import time
import os
import re
def print_message(message):
print message
class Playlist(object):
MIN_FOLDER_SIZE = 2 # Minmum effective value
dirlist = []
evenly_spaced = True
exclusions = []
extensions = []
filedict = {}
fulldict = ... | 32.842105 | 79 | 0.584776 | 682 | 6,240 | 5.250733 | 0.243402 | 0.023457 | 0.014521 | 0.016755 | 0.125942 | 0.07456 | 0.065345 | 0.034069 | 0.017314 | 0 | 0 | 0.007253 | 0.315064 | 6,240 | 189 | 80 | 33.015873 | 0.830604 | 0.039904 | 0 | 0.124183 | 0 | 0 | 0.035774 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0 | null | null | 0 | 0.052288 | null | null | 0.026144 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74d31461bcce0238b0f60063f66c21a9b0d11bb5 | 4,914 | py | Python | tests/master/test_idle_slaves.py | WillChilds-Klein/mistress-mapreduce | c991a502545bd0d3ec4f914cdc63faf6a40e77ae | [
"Apache-2.0"
] | 2 | 2018-12-02T11:10:15.000Z | 2019-02-21T22:24:00.000Z | tests/master/test_idle_slaves.py | WillChilds-Klein/mistress-mapreduce | c991a502545bd0d3ec4f914cdc63faf6a40e77ae | [
"Apache-2.0"
] | 1 | 2019-02-21T22:23:36.000Z | 2019-02-21T22:23:36.000Z | tests/master/test_idle_slaves.py | WillChilds-Klein/mistress-mapreduce | c991a502545bd0d3ec4f914cdc63faf6a40e77ae | [
"Apache-2.0"
] | 3 | 2018-04-26T16:02:10.000Z | 2018-12-02T11:10:16.000Z | # Mrs
# Copyright 2008-2012 Brigham Young University
#
# 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 o... | 26.138298 | 74 | 0.664225 | 634 | 4,914 | 4.974763 | 0.212934 | 0.079899 | 0.099873 | 0.133164 | 0.662651 | 0.626189 | 0.598605 | 0.577045 | 0.510463 | 0.510463 | 0 | 0.036978 | 0.229548 | 4,914 | 187 | 75 | 26.278075 | 0.796091 | 0.20289 | 0 | 0.795276 | 0 | 0 | 0.039382 | 0 | 0 | 0 | 0 | 0 | 0.275591 | 1 | 0.062992 | false | 0 | 0.015748 | 0.007874 | 0.094488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74dbf3662176f3c18f639a38531d9a01acbedb79 | 632 | py | Python | time_struct.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | 1 | 2018-07-02T03:37:03.000Z | 2018-07-02T03:37:03.000Z | time_struct.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | time_struct.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | #gmtime() returns the current time in UTC
#localtime() returns the current time with the current time zone
#struct_time converts to f.p representation
import time
def show_struct(s):
print(' tm_year:', s.tm_year)
print(' tm_mon:', s.tm_mon)
print(' tm_mday:', s.tm_mday)
print(' tm_hour:', s.tm_hour)
... | 30.095238 | 64 | 0.677215 | 102 | 632 | 3.980392 | 0.333333 | 0.155172 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153481 | 632 | 21 | 65 | 30.095238 | 0.758879 | 0.22943 | 0 | 0 | 0 | 0 | 0.218557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
74ddd9005216a50508d6244b7fa925e4745d61c6 | 1,046 | py | Python | lecturePractice/coordinate.py | serook/mit_edx_i2_cs_python | 34cb08c6f4c5fb0a951d91cbd782f24a76e2479c | [
"Apache-2.0"
] | 1 | 2021-02-17T02:17:29.000Z | 2021-02-17T02:17:29.000Z | lecturePractice/coordinate.py | serook/mit_edx_i2_cs_python | 34cb08c6f4c5fb0a951d91cbd782f24a76e2479c | [
"Apache-2.0"
] | null | null | null | lecturePractice/coordinate.py | serook/mit_edx_i2_cs_python | 34cb08c6f4c5fb0a951d91cbd782f24a76e2479c | [
"Apache-2.0"
] | 1 | 2021-02-17T02:17:31.000Z | 2021-02-17T02:17:31.000Z | class Coordinate(object):
def __init__(self, x, y):
"""
:rtype: object
"""
self.x = x
self.y = y
def getX(self):
# Getter method for a Coordinate object's x coordinate.
# Getter methods are better practice than just accessing an attribute directly
... | 24.325581 | 86 | 0.577438 | 141 | 1,046 | 4.170213 | 0.390071 | 0.059524 | 0.054422 | 0.064626 | 0.227891 | 0.227891 | 0.227891 | 0.227891 | 0.102041 | 0 | 0 | 0.019048 | 0.297323 | 1,046 | 42 | 87 | 24.904762 | 0.780952 | 0.276291 | 0 | 0 | 0 | 0 | 0.043413 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74e527a7d122c6ecc18ce4d006746f0a16e5cb57 | 702 | py | Python | src/big_torch/models/shared.py | Denchidlo/big-torch | f5a65e6216e46e6d4fe98670c52618e4cccc8163 | [
"MIT"
] | null | null | null | src/big_torch/models/shared.py | Denchidlo/big-torch | f5a65e6216e46e6d4fe98670c52618e4cccc8163 | [
"MIT"
] | 1 | 2021-11-21T13:11:31.000Z | 2021-11-22T00:18:29.000Z | src/big_torch/models/shared.py | Denchidlo/big-torch | f5a65e6216e46e6d4fe98670c52618e4cccc8163 | [
"MIT"
] | null | null | null | import multiprocessing as mp
POOL = None
def open_pool_session(n_jobs):
global POOL
POOL = mp.Pool(n_jobs).__enter__()
def close_pool_session():
global POOL
POOL.__exit__(None, None, None)
POOL = None
class BasicModelParams:
def __init__(self, layers) -> None:
self.layers = layers... | 21.9375 | 79 | 0.656695 | 89 | 702 | 4.932584 | 0.426966 | 0.091116 | 0.063781 | 0.059226 | 0.182232 | 0.182232 | 0.182232 | 0.182232 | 0 | 0 | 0 | 0 | 0.242165 | 702 | 31 | 80 | 22.645161 | 0.825188 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74e8fba391102d86316280011dd925cbf3994183 | 736 | py | Python | lists.py | RocqJones/python-starter-reference | 0fa4d4ed81aea8cbad1a3f19ff0bbae99ace01fd | [
"MIT"
] | null | null | null | lists.py | RocqJones/python-starter-reference | 0fa4d4ed81aea8cbad1a3f19ff0bbae99ace01fd | [
"MIT"
] | null | null | null | lists.py | RocqJones/python-starter-reference | 0fa4d4ed81aea8cbad1a3f19ff0bbae99ace01fd | [
"MIT"
] | 1 | 2020-07-08T08:26:19.000Z | 2020-07-08T08:26:19.000Z | # A List is a collection which is ordered and changeable. Allows duplicate members.
# Create a list
numbers = [1,2,3,4,5]
fruits = ['Apples', 'Oranges', 'Grapes', 'Peas']
# use a constructor
#numbers2 = list((5,6,7,8,9,10))
print(numbers)
# Get a value
print(fruits[2])
# Change a value
fruits[0] = 'Blueberries'
pri... | 16 | 83 | 0.716033 | 112 | 736 | 4.705357 | 0.473214 | 0.187856 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026814 | 0.138587 | 736 | 46 | 84 | 16 | 0.804416 | 0.389946 | 0 | 0.380952 | 0 | 0 | 0.128736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
74ebb2dd053188f1723fc6d317273465d1b9d65c | 8,096 | py | Python | visualization_and_test/evaluate_prototypes.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | 17 | 2015-10-14T09:44:38.000Z | 2021-02-19T16:45:32.000Z | visualization_and_test/evaluate_prototypes.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | null | null | null | visualization_and_test/evaluate_prototypes.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | 8 | 2015-09-07T16:29:37.000Z | 2020-08-08T05:43:12.000Z | __author__ = 'rwechsler'
import datetime
import time
import cPickle as pickle
from annoy import AnnoyIndex
import gensim
import argparse
import numpy as np
import sys
import random
from scipy import spatial
import multiprocessing as mp
from collections import defaultdict
import codecs
def timestamp():
return datet... | 37.137615 | 217 | 0.700099 | 1,020 | 8,096 | 5.301961 | 0.196078 | 0.045673 | 0.031435 | 0.018491 | 0.244083 | 0.138129 | 0.093935 | 0.093935 | 0.049556 | 0.049556 | 0 | 0.013759 | 0.183053 | 8,096 | 218 | 218 | 37.137615 | 0.803901 | 0.039649 | 0 | 0.107595 | 0 | 0 | 0.067054 | 0.002708 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082278 | null | null | 0.082278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74ede2de89dc2c3fd6b6dea5649ebb972c3b175a | 2,722 | py | Python | generated-libraries/python/netapp/disk/storage_ssd_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/disk/storage_ssd_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/disk/storage_ssd_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.netapp_object import NetAppObject
class StorageSsdInfo(NetAppObject):
"""
Storage info block for solid-state storage devices.
"""
_percent_spares_consumed = None
@property
def percent_spares_consumed(self):
"""
Percentage of device spare blocks that have been us... | 36.293333 | 104 | 0.653196 | 325 | 2,722 | 5.218462 | 0.298462 | 0.15684 | 0.222877 | 0.137972 | 0.478774 | 0.367335 | 0.235849 | 0.215212 | 0.121462 | 0.121462 | 0 | 0.001009 | 0.271859 | 2,722 | 74 | 105 | 36.783784 | 0.854692 | 0.260838 | 0 | 0.177778 | 0 | 0 | 0.175961 | 0.121819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.022222 | 0.066667 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74f0d0e289d375ba55597c4169366e6d54f28cd5 | 1,544 | py | Python | team_builder/accounts/models.py | taylorculver/Django_Team_Builder | 62a9e6a37c435876206697f982f66089e2e82b35 | [
"Unlicense"
] | null | null | null | team_builder/accounts/models.py | taylorculver/Django_Team_Builder | 62a9e6a37c435876206697f982f66089e2e82b35 | [
"Unlicense"
] | 7 | 2018-08-08T18:42:36.000Z | 2018-10-01T18:46:40.000Z | team_builder/accounts/models.py | taylorculver/Django_Team_Builder | 62a9e6a37c435876206697f982f66089e2e82b35 | [
"Unlicense"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
class Profile(models.Model):
"""
Model for user-created Profile
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-... | 24.507937 | 98 | 0.687824 | 185 | 1,544 | 5.578378 | 0.372973 | 0.03876 | 0.046512 | 0.055233 | 0.330426 | 0.213178 | 0.098837 | 0.098837 | 0 | 0 | 0 | 0.013878 | 0.206606 | 1,544 | 62 | 99 | 24.903226 | 0.828571 | 0.126295 | 0 | 0.268293 | 0 | 0 | 0.020486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.097561 | 0.073171 | 0.585366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74fb9b012c42b23d4eedebb4c1b383a5c6b105c8 | 1,268 | py | Python | Codewars/5kyu/buddyPairs.py | Ry4nW/python-wars | 76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508 | [
"MIT"
] | 1 | 2021-06-06T19:55:22.000Z | 2021-06-06T19:55:22.000Z | Codewars/5kyu/buddyPairs.py | Ry4nW/python-wars | 76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508 | [
"MIT"
] | 1 | 2022-01-20T19:20:33.000Z | 2022-01-20T23:51:46.000Z | Codewars/5kyu/buddyPairs.py | Ry4nW/python-wars | 76e3fb24b7ae2abf35db592f1ad59cf8d5f9e508 | [
"MIT"
] | null | null | null | # Attempt
def buddy(start, limit):
add = 0
mDivisorSum = 0
nDivisorSum = 0
if (limit > start):
for n in range(start, limit + 1):
nDivisorSum = 0
# Gets divisors for i
for j in range(1, n // 2 + 1):
if type(n / j) != floa... | 19.507692 | 65 | 0.395899 | 153 | 1,268 | 3.281046 | 0.30719 | 0.069721 | 0.051793 | 0.071713 | 0.195219 | 0.14741 | 0.14741 | 0 | 0 | 0 | 0 | 0.036566 | 0.503943 | 1,268 | 65 | 66 | 19.507692 | 0.761526 | 0.112776 | 0 | 0.363636 | 0 | 0 | 0.012511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.242424 | 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 |
74fc030b30d76aec5a1c6845ceaf50cdeded83c1 | 297 | py | Python | blog/app/__init__.py | kiza054/woodhall-scout-blog-mongodb | 380f181cbe987eda46ed64a774d3188344f4de55 | [
"MIT"
] | null | null | null | blog/app/__init__.py | kiza054/woodhall-scout-blog-mongodb | 380f181cbe987eda46ed64a774d3188344f4de55 | [
"MIT"
] | null | null | null | blog/app/__init__.py | kiza054/woodhall-scout-blog-mongodb | 380f181cbe987eda46ed64a774d3188344f4de55 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_admin import Admin
from flask_login import LoginManager
app = Flask(__name__)
app.config.from_object('config')
admin = Admin(app, name='microblog', template_mode='bootstrap3')
lm = LoginManager()
lm.init_app(app)
lm.login_view = 'login'
from app import views
| 21.214286 | 64 | 0.781145 | 44 | 297 | 5.045455 | 0.409091 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.117845 | 297 | 13 | 65 | 22.846154 | 0.843511 | 0 | 0 | 0 | 0 | 0 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
74fee5c75b2916c60cd68cc9f257e9cc4d35e86d | 19,063 | py | Python | dockercask.py | dockercask/dockercask | 75103d683f12c2428783d6c729164f0727157e51 | [
"MIT"
] | 13 | 2016-01-11T05:39:34.000Z | 2020-02-26T03:50:17.000Z | dockercask.py | dockercask/dockercask | 75103d683f12c2428783d6c729164f0727157e51 | [
"MIT"
] | null | null | null | dockercask.py | dockercask/dockercask | 75103d683f12c2428783d6c729164f0727157e51 | [
"MIT"
] | 2 | 2017-04-21T18:44:02.000Z | 2018-04-15T23:38:25.000Z | import os
import shutil
import subprocess
import sys
import random
import threading
import json
import time
import traceback
import signal
BASE_IMAGE = 'archlinux'
USER_HOME_DIR = '~'
HOME_DIR = '~/Docker'
APP_DIR = '~/.local/share/applications'
PULSE_COOKIE_PATH = '~/.config/pulse/cookie'
LOCALTIME_PATH = '/etc/local... | 27.116643 | 79 | 0.544458 | 2,340 | 19,063 | 4.237179 | 0.137607 | 0.02239 | 0.027736 | 0.015532 | 0.38467 | 0.272617 | 0.217751 | 0.172365 | 0.165507 | 0.119919 | 0 | 0.011513 | 0.321093 | 19,063 | 702 | 80 | 27.155271 | 0.754597 | 0.039396 | 0 | 0.386364 | 0 | 0 | 0.122431 | 0.01749 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01049 | 0.017483 | null | null | 0.013986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74ff1cb180abc2244375933d5f39c89666c57b20 | 314 | py | Python | Fun Excercise/decorator3.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 32 | 2020-04-05T08:29:40.000Z | 2022-01-08T03:10:00.000Z | Fun Excercise/decorator3.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 3 | 2021-06-02T04:09:11.000Z | 2022-03-02T14:55:03.000Z | Fun Excercise/decorator3.py | NirmalSilwal/Python- | 6d23112db8366360f0b79bdbf21252575e8eab3e | [
"MIT"
] | 3 | 2020-07-13T05:44:04.000Z | 2021-03-03T07:07:58.000Z | def say_hello(hello_var):
print(hello_var)
def say_hi(hi_var):
print(hello_var + " " + hi_var)
return say_hi
say_hi_func = say_hello("Hello") # Print Hello and returns say_hi function which gets stored in say_hi_func variable
say_hi_func("Hi") # Call say_hi function and print "Hello Hi" | 26.166667 | 117 | 0.710191 | 54 | 314 | 3.814815 | 0.314815 | 0.169903 | 0.131068 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203822 | 314 | 12 | 118 | 26.166667 | 0.824 | 0.39172 | 0 | 0 | 0 | 0 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2d00f7d06ce5d59e251acaa9db5fafba0b34215b | 356 | py | Python | prettyqt/paths.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | prettyqt/paths.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | prettyqt/paths.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | from importlib import resources
import pathlib
ROOT_PATH = pathlib.Path(resources.files("prettyqt")) # type: ignore
LOCALIZATION_PATH = ROOT_PATH / "localization"
THEMES_PATH = ROOT_PATH / "themes"
RE_LEXER_PATH = (
ROOT_PATH / "syntaxhighlighters" / "pygments" / "regularexpressionlexer.py"
)
ICON_FONT_PATH = R... | 27.384615 | 79 | 0.755618 | 41 | 356 | 6.292683 | 0.560976 | 0.155039 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 356 | 12 | 80 | 29.666667 | 0.837662 | 0.033708 | 0 | 0 | 0 | 0 | 0.274854 | 0.073099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d07733d95d25265a8538f87085014c15240fde9 | 5,787 | py | Python | third_party/ros_aarch64/lib/python2.7/dist-packages/novatel_msgs/msg/_Ack.py | silverland79/apollo1.0 | 6e725e8dd5013b769efa18f43e5ae675f4847fbd | [
"Apache-2.0"
] | 2 | 2018-01-29T03:10:39.000Z | 2020-12-08T09:08:41.000Z | third_party/ros_aarch64/lib/python2.7/dist-packages/novatel_msgs/msg/_Ack.py | silverland79/apollo1.0 | 6e725e8dd5013b769efa18f43e5ae675f4847fbd | [
"Apache-2.0"
] | null | null | null | third_party/ros_aarch64/lib/python2.7/dist-packages/novatel_msgs/msg/_Ack.py | silverland79/apollo1.0 | 6e725e8dd5013b769efa18f43e5ae675f4847fbd | [
"Apache-2.0"
] | 3 | 2018-01-29T12:22:56.000Z | 2020-12-08T09:08:46.000Z | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from novatel_msgs/Ack.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Ack(genpy.Message):
_md5sum = "f84607dc6beaf1cb6772d23af7221bdf"
_type = "novatel_msgs/Ack... | 34.041176 | 145 | 0.693624 | 823 | 5,787 | 4.63548 | 0.227218 | 0.044037 | 0.047182 | 0.040367 | 0.546265 | 0.469201 | 0.437746 | 0.404194 | 0.383748 | 0.328178 | 0 | 0.031501 | 0.204597 | 5,787 | 169 | 146 | 34.242604 | 0.797306 | 0.248834 | 0 | 0.478261 | 1 | 0 | 0.192693 | 0.075931 | 0 | 0 | 0.002388 | 0 | 0 | 1 | 0.052174 | false | 0 | 0.026087 | 0 | 0.278261 | 0 | 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 |
2d1184aa5ea419982c4d302f3708a26aca0b8cd0 | 1,454 | py | Python | ngpy/vector2d.py | liuyxpp/ngpy | 24f4c07e336d255302618ea113ba2e02f60e01b4 | [
"BSD-3-Clause"
] | 1 | 2021-09-06T10:19:55.000Z | 2021-09-06T10:19:55.000Z | ngpy/vector2d.py | liuyxpp/ngpy | 24f4c07e336d255302618ea113ba2e02f60e01b4 | [
"BSD-3-Clause"
] | null | null | null | ngpy/vector2d.py | liuyxpp/ngpy | 24f4c07e336d255302618ea113ba2e02f60e01b4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import math
"""
2D math vector
Since 2011.8.19
AUTHOUR:
Yi-Xin Liu <liuyxpp@gmail.com>
Fudan University
REVISION:
2011.8.22
"""
from persistent import Persistent
class Vector2D(Persistent):
def __init__(self,x=0.0,y=0.0):
self.x=float(x)
self.y=float(y)
def... | 23.836066 | 85 | 0.570151 | 216 | 1,454 | 3.708333 | 0.291667 | 0.043695 | 0.074906 | 0.041199 | 0.139825 | 0.062422 | 0.062422 | 0.062422 | 0.062422 | 0 | 0 | 0.074336 | 0.222834 | 1,454 | 60 | 86 | 24.233333 | 0.634513 | 0.013755 | 0 | 0 | 0 | 0 | 0.033001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d18e8169c2fc367046cbb04843a2cec05fd504a | 7,162 | py | Python | pcrond/sched.py | luca-vercelli/pcrond | ac5e9b987ae175521144bcf634fcd8316b4b334d | [
"MIT"
] | null | null | null | pcrond/sched.py | luca-vercelli/pcrond | ac5e9b987ae175521144bcf634fcd8316b4b334d | [
"MIT"
] | null | null | null | pcrond/sched.py | luca-vercelli/pcrond | ac5e9b987ae175521144bcf634fcd8316b4b334d | [
"MIT"
] | null | null | null | # most of the code here comes from https://github.com/dbader/schedule
from .job import Job, ALIASES
import logging
import time
logger = logging.getLogger('pcrond')
def std_launch_func(cmd_splitted, stdin=None):
"""
Default way of executing commands is to invoke subprocess.run()
"""
if stdin is None:... | 37.302083 | 103 | 0.562692 | 912 | 7,162 | 4.335526 | 0.289474 | 0.019474 | 0.022256 | 0.010622 | 0.183359 | 0.148963 | 0.116844 | 0.116844 | 0.081437 | 0.081437 | 0 | 0.008099 | 0.344876 | 7,162 | 191 | 104 | 37.497382 | 0.834612 | 0.349902 | 0 | 0.311828 | 0 | 0 | 0.093765 | 0 | 0 | 0 | 0 | 0.010471 | 0 | 1 | 0.139785 | false | 0.021505 | 0.064516 | 0 | 0.311828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2d1939ff6d648f3379f25ae86317a8339f7cfcc1 | 469 | py | Python | simu/UserAgent.py | TheodoreKrypton/simu-data-catcher | 2625f6d4e33859cf0a7e0df4d190e3219e759228 | [
"MIT"
] | 3 | 2017-09-11T03:13:06.000Z | 2020-08-11T15:15:09.000Z | simu/UserAgent.py | TheodoreKrypton/simu-data-catcher | 2625f6d4e33859cf0a7e0df4d190e3219e759228 | [
"MIT"
] | null | null | null | simu/UserAgent.py | TheodoreKrypton/simu-data-catcher | 2625f6d4e33859cf0a7e0df4d190e3219e759228 | [
"MIT"
] | 6 | 2017-06-08T13:19:50.000Z | 2021-04-20T15:11:28.000Z | import urllib
import re
ptrn = re.compile("<textarea name='uas' id='uas_textfeld' rows='4' cols='30'>(.+?)</textarea>")
with open("user_agent.txt", "w") as fp:
for i in range(12381, 15480):
try:
url = "http://www.useragentstring.com/index.php?id=" + str(i)
html = urllib.urlopen(ur... | 29.3125 | 95 | 0.567164 | 64 | 469 | 4.09375 | 0.75 | 0.103053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0.26226 | 469 | 15 | 96 | 31.266667 | 0.716763 | 0 | 0 | 0 | 0 | 0 | 0.287846 | 0.055437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d205b0c022a8abc4d1eb512a97ffb4ce79cbfb0 | 1,212 | py | Python | jupiter/utils/EmailUtil.py | gaott/jupiter | 29fb266b080e9c8ca921a39e57a5e6a803375746 | [
"Apache-2.0"
] | null | null | null | jupiter/utils/EmailUtil.py | gaott/jupiter | 29fb266b080e9c8ca921a39e57a5e6a803375746 | [
"Apache-2.0"
] | null | null | null | jupiter/utils/EmailUtil.py | gaott/jupiter | 29fb266b080e9c8ca921a39e57a5e6a803375746 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2013年7月1日
@author: gaott
'''
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.utils import COMMASPACE
import smtplib
def sendEmail(body):
strFrom = 'example@gmail.com'
strTo = ['abc@xxx.com','efg@xxx.com']
subject = 'Warn... | 26.347826 | 82 | 0.671617 | 145 | 1,212 | 5.551724 | 0.558621 | 0.03354 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010331 | 0.20132 | 1,212 | 45 | 83 | 26.933333 | 0.821281 | 0.168317 | 0 | 0 | 0 | 0 | 0.189379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d25dfe193d9f222df81203587f5dc472c35b589 | 1,104 | py | Python | features/steps/login_steps.py | adrisalas/flask-appointmentsDoctor-TDD-BDD | 1f7c14f83c85144e844f3db9a4fb27eebcf678a2 | [
"MIT"
] | null | null | null | features/steps/login_steps.py | adrisalas/flask-appointmentsDoctor-TDD-BDD | 1f7c14f83c85144e844f3db9a4fb27eebcf678a2 | [
"MIT"
] | null | null | null | features/steps/login_steps.py | adrisalas/flask-appointmentsDoctor-TDD-BDD | 1f7c14f83c85144e844f3db9a4fb27eebcf678a2 | [
"MIT"
] | null | null | null | from behave import given, when, then
@given(u'estoy en la pagina de login')
def flask_setup(context):
context.client.get('/logout') # If you do not check you've already logout, errors may arise
context.page = context.client.get('/login')
assert "Iniciar Sesión".encode("utf-8") in context.page.data
@given(... | 40.888889 | 95 | 0.692935 | 169 | 1,104 | 4.485207 | 0.414201 | 0.101583 | 0.05277 | 0.063325 | 0.311346 | 0.311346 | 0.311346 | 0.100264 | 0.100264 | 0 | 0 | 0.004324 | 0.162138 | 1,104 | 27 | 96 | 40.888889 | 0.815135 | 0.053442 | 0 | 0 | 0 | 0 | 0.26341 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.173913 | false | 0.173913 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d28c3e225ac0e71c89f1c665bbce426470ea70d | 8,038 | py | Python | tests/basic.py | srobo-legacy/comp-webdis | 5cef63976700ca262a87ed24f10abb908fa434de | [
"BSD-2-Clause"
] | null | null | null | tests/basic.py | srobo-legacy/comp-webdis | 5cef63976700ca262a87ed24f10abb908fa434de | [
"BSD-2-Clause"
] | null | null | null | tests/basic.py | srobo-legacy/comp-webdis | 5cef63976700ca262a87ed24f10abb908fa434de | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import urllib2, unittest, json, hashlib
from functools import wraps
try:
import bson
except:
bson = None
try:
import msgpack
except:
msgpack = None
host = '127.0.0.1'
port = 7379
class TestWebdis(unittest.TestCase):
def wrap(self,url):
return 'http://%s:%d/%s' % (host, port, url)
def quer... | 29.229091 | 87 | 0.672555 | 1,156 | 8,038 | 4.630623 | 0.139273 | 0.154306 | 0.086867 | 0.078087 | 0.70297 | 0.63385 | 0.62563 | 0.592752 | 0.543247 | 0.484214 | 0 | 0.019806 | 0.126897 | 8,038 | 274 | 88 | 29.335766 | 0.742947 | 0.055362 | 0 | 0.546667 | 0 | 0.004444 | 0.261145 | 0.042997 | 0 | 0 | 0 | 0.00365 | 0.244444 | 0 | null | null | 0.004444 | 0.017778 | 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 |
2d2cf88bb3da622870d5871c45371991a12f449f | 2,135 | py | Python | assignment2/AssignmentMaterial_2/Framework/VideoCaptureDevices/Enumerations.py | ecly/assignment1_bsii | eeb2bd6bfa3071df53457ce2a2ab723c6fedffe3 | [
"MIT"
] | null | null | null | assignment2/AssignmentMaterial_2/Framework/VideoCaptureDevices/Enumerations.py | ecly/assignment1_bsii | eeb2bd6bfa3071df53457ce2a2ab723c6fedffe3 | [
"MIT"
] | null | null | null | assignment2/AssignmentMaterial_2/Framework/VideoCaptureDevices/Enumerations.py | ecly/assignment1_bsii | eeb2bd6bfa3071df53457ce2a2ab723c6fedffe3 | [
"MIT"
] | null | null | null | #<!--------------------------------------------------------------------------->
#<!-- ITU - IT University of Copenhagen -->
#<!-- SSS - Software and Systems Section -->
#<!--------------------------------------------------------------------------->
... | 68.870968 | 79 | 0.444496 | 152 | 2,135 | 6.006579 | 0.460526 | 0.236583 | 0.164294 | 0.032859 | 0.485214 | 0.454545 | 0.306681 | 0.120482 | 0.120482 | 0.120482 | 0 | 0.08898 | 0.315691 | 2,135 | 30 | 80 | 71.166667 | 0.535934 | 0.694145 | 0 | 0 | 0 | 0 | 0.432712 | 0.385093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
2d2f252fd1115185175d6bc733e90a8c70405560 | 1,607 | py | Python | version_v4/inference_traffic_light_gps_deep_ranking_only_final.py | mayanks888/QATM_pytorch_ros2 | 936ff265e4c0f0cbfa63855e07a95e15b2b0e336 | [
"MIT"
] | null | null | null | version_v4/inference_traffic_light_gps_deep_ranking_only_final.py | mayanks888/QATM_pytorch_ros2 | 936ff265e4c0f0cbfa63855e07a95e15b2b0e336 | [
"MIT"
] | null | null | null | version_v4/inference_traffic_light_gps_deep_ranking_only_final.py | mayanks888/QATM_pytorch_ros2 | 936ff265e4c0f0cbfa63855e07a95e15b2b0e336 | [
"MIT"
] | null | null | null | #this implementation mainly work on grey scale image
import argparse
import shutil
from pathlib import Path
import natsort
from qatm_pytorch_v3 import CreateModel, ImageDataset,ImageDataset_2, plot_result_mayank, nms, run_one_sample_mayank
from torchvision import models
import torch
from utils import *
from imageload... | 30.903846 | 116 | 0.781581 | 213 | 1,607 | 5.57277 | 0.450704 | 0.060657 | 0.035383 | 0.042123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013015 | 0.13939 | 1,607 | 51 | 117 | 31.509804 | 0.845264 | 0.154325 | 0 | 0.064516 | 0 | 0 | 0.054896 | 0 | 0 | 0 | 0.002967 | 0 | 0 | 1 | 0 | false | 0 | 0.387097 | 0 | 0.387097 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2d3114636772e658c9c73b2f51a905eee17cc3c7 | 5,376 | py | Python | anchore_engine/db/db_account_users.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | 1 | 2020-06-22T07:27:41.000Z | 2020-06-22T07:27:41.000Z | anchore_engine/db/db_account_users.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | 4 | 2020-11-07T00:16:02.000Z | 2020-11-08T20:52:06.000Z | anchore_engine/db/db_account_users.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | 1 | 2019-11-23T03:39:28.000Z | 2019-11-23T03:39:28.000Z | """
Interface to the account_users table. Data format is dicts, not objects.
"""
from passlib import pwd
from passlib.context import CryptContext
from anchore_engine.db import AccountUser, AccessCredential, UserAccessCredentialTypes
from anchore_engine.db.entities.common import anchore_now
from anchore_engine.configur... | 29.701657 | 130 | 0.693824 | 652 | 5,376 | 5.503067 | 0.217791 | 0.042921 | 0.036789 | 0.048495 | 0.221851 | 0.177258 | 0.177258 | 0.133222 | 0.095039 | 0.095039 | 0 | 0.001185 | 0.215402 | 5,376 | 180 | 131 | 29.866667 | 0.849455 | 0.090216 | 0 | 0.196429 | 0 | 0 | 0.056206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133929 | false | 0.116071 | 0.053571 | 0.008929 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d34c64aae2f99b093c4f7a0e488c069a1328360 | 3,760 | py | Python | pandajedi/jedibrokerage/JobBrokerBase.py | PanDAWMS/panda-jedi | e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed | [
"Apache-2.0"
] | 2 | 2020-04-17T10:24:09.000Z | 2020-05-12T17:59:06.000Z | pandajedi/jedibrokerage/JobBrokerBase.py | PanDAWMS/panda-jedi | e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed | [
"Apache-2.0"
] | 20 | 2015-08-25T13:40:14.000Z | 2022-03-29T12:50:46.000Z | pandajedi/jedibrokerage/JobBrokerBase.py | PanDAWMS/panda-jedi | e4c90563b3b9e9521cb73ccdedaa8ecaa38af5ed | [
"Apache-2.0"
] | 10 | 2015-05-27T14:01:42.000Z | 2021-09-20T17:38:02.000Z | from pandajedi.jedicore import Interaction
# base class for job brokerage
class JobBrokerBase (object):
def __init__(self,ddmIF,taskBufferIF):
self.ddmIF = ddmIF
self.taskBufferIF = taskBufferIF
self.liveCounter = None
self.lockID = None
self.baseLockID = None
self.... | 32.982456 | 133 | 0.655053 | 421 | 3,760 | 5.655582 | 0.239905 | 0.054599 | 0.035279 | 0.041999 | 0.223436 | 0.174717 | 0.125577 | 0.125577 | 0.125577 | 0.125577 | 0 | 0.001463 | 0.272606 | 3,760 | 113 | 134 | 33.274336 | 0.869104 | 0.119947 | 0 | 0.115942 | 0 | 0 | 0.004245 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 1 | 0.231884 | false | 0 | 0.014493 | 0.014493 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2d365b35f584f4bd5f75c5a5f91f7420fadca6f3 | 650 | py | Python | Ebooks/migrations/0009_auto_20180729_1706.py | Akash4307/Wise-master | 5f484e3791a8e4361d8bcad570ac2661636a5cfc | [
"Apache-2.0"
] | null | null | null | Ebooks/migrations/0009_auto_20180729_1706.py | Akash4307/Wise-master | 5f484e3791a8e4361d8bcad570ac2661636a5cfc | [
"Apache-2.0"
] | 8 | 2021-03-18T21:30:54.000Z | 2022-03-02T14:56:55.000Z | Ebooks/migrations/0009_auto_20180729_1706.py | Akash4307/Wise-master | 5f484e3791a8e4361d8bcad570ac2661636a5cfc | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-07-30 00:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Ebooks', '0008_pdfinfo_pdfdescription'),
]
operations = [
migrations.AddField(
model_name='pdfinfo',
name='PdfEmail'... | 25 | 64 | 0.590769 | 64 | 650 | 5.875 | 0.625 | 0.095745 | 0.12234 | 0.143617 | 0.382979 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0.068282 | 0.301538 | 650 | 25 | 65 | 26 | 0.759912 | 0.069231 | 0 | 0.421053 | 1 | 0 | 0.114428 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 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 |
2d3973da3a5de2c1e31fc0e0d24cbc8b6577547e | 848 | py | Python | Quiron/reports/migrations/0001_initial.py | CesarNav/Quiron | 5e20e891436513cf664fba9806d57b104b65d9cd | [
"MIT"
] | null | null | null | Quiron/reports/migrations/0001_initial.py | CesarNav/Quiron | 5e20e891436513cf664fba9806d57b104b65d9cd | [
"MIT"
] | null | null | null | Quiron/reports/migrations/0001_initial.py | CesarNav/Quiron | 5e20e891436513cf664fba9806d57b104b65d9cd | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-09 13:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('patients', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='... | 31.407407 | 142 | 0.612028 | 90 | 848 | 5.633333 | 0.6 | 0.047337 | 0.055227 | 0.086785 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039557 | 0.254717 | 848 | 26 | 143 | 32.615385 | 0.762658 | 0.053066 | 0 | 0 | 1 | 0 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d3e7b2b839bb5d6d6c94bfdbafba9f0cd43ac82 | 1,248 | py | Python | encrypt.py | grkrama/SampleEncryptionProgram | 4ac5698d5c0205b2313c1cb9e80e5525f441e7dc | [
"MIT"
] | null | null | null | encrypt.py | grkrama/SampleEncryptionProgram | 4ac5698d5c0205b2313c1cb9e80e5525f441e7dc | [
"MIT"
] | null | null | null | encrypt.py | grkrama/SampleEncryptionProgram | 4ac5698d5c0205b2313c1cb9e80e5525f441e7dc | [
"MIT"
] | null | null | null | import base64
import os
from cryptography.fernet import Fernet
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
def getKey (salt, password):
print(password)
print(salt)
kdf = PBKDF2HMAC(
algorithm=hashes.SHA256(),
... | 22.690909 | 73 | 0.625801 | 144 | 1,248 | 5.409722 | 0.319444 | 0.061617 | 0.056483 | 0.082157 | 0.24647 | 0.24647 | 0.24647 | 0.24647 | 0 | 0 | 0 | 0.040042 | 0.239583 | 1,248 | 54 | 74 | 23.111111 | 0.780822 | 0.320513 | 0 | 0 | 0 | 0 | 0.016774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.185185 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d465237176feff79968938e709149dcf5d817b3 | 805 | py | Python | E5b_global_variables_version_b.py | charles-stan/learn_python_Stanier | 740a7104fcbd739663d703d3770f9e31509300f8 | [
"MIT"
] | 2 | 2019-10-04T14:53:20.000Z | 2019-10-29T18:16:15.000Z | E5b_global_variables_version_b.py | charles-stan/learn_python_Stanier | 740a7104fcbd739663d703d3770f9e31509300f8 | [
"MIT"
] | null | null | null | E5b_global_variables_version_b.py | charles-stan/learn_python_Stanier | 740a7104fcbd739663d703d3770f9e31509300f8 | [
"MIT"
] | null | null | null | """
Demonstrating simple global variables
File: E5_global_variables_version_b.py
Author: Charles Stanier, charles-stanier@uiowa.edu
Date: August 14, 2019
Written/Tested In: Python 3.7.3
Program Objective: Demonstrate the use of global variable for constant
Modifications: none so far
"""
# these two li... | 25.967742 | 71 | 0.688199 | 116 | 805 | 4.698276 | 0.732759 | 0.055046 | 0.047706 | 0.055046 | 0.066055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.234783 | 805 | 31 | 72 | 25.967742 | 0.86526 | 0.593789 | 0 | 0 | 0 | 0 | 0.134276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2d46d52a8dcd2cbb0a0b701447415ac2dddac192 | 240 | py | Python | probdrift/__init__.py | MikeOMa/MV_Prediction | 81552cbd9ad256959d631b2c80c7d5dde4bed105 | [
"Apache-2.0"
] | 1 | 2021-06-08T19:55:14.000Z | 2021-06-08T19:55:14.000Z | probdrift/__init__.py | MikeOMa/MV_Prediction | 81552cbd9ad256959d631b2c80c7d5dde4bed105 | [
"Apache-2.0"
] | 2 | 2021-11-04T08:41:17.000Z | 2022-01-05T08:36:17.000Z | probdrift/__init__.py | MikeOMa/MV_Prediction | 81552cbd9ad256959d631b2c80c7d5dde4bed105 | [
"Apache-2.0"
] | null | null | null | X_VAR = ["Tx", "Ty", "Wx", "Wy", "u_av", "v_av", "lon", "lat", "t"]
Y_VAR = ["u", "v"]
mpl_config = {
"text.usetex": True,
"font.size": 12,
"text.latex.preamble": r"\usepackage{amsmath}",
"font.family": "Times New Roman",
}
| 26.666667 | 67 | 0.529167 | 36 | 240 | 3.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.1875 | 240 | 8 | 68 | 30 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
740aae137142ec825a3f7da2840a35af235b0779 | 22,382 | py | Python | Python/firms/main_static.py | lnsongxf/OG-USA | 9e92129e67f4aea5f3a6b8da4110bf67b99ce88a | [
"CC0-1.0"
] | 1 | 2017-05-23T13:57:53.000Z | 2017-05-23T13:57:53.000Z | Python/firms/main_static.py | lnsongxf/OG-USA | 9e92129e67f4aea5f3a6b8da4110bf67b99ce88a | [
"CC0-1.0"
] | null | null | null | Python/firms/main_static.py | lnsongxf/OG-USA | 9e92129e67f4aea5f3a6b8da4110bf67b99ce88a | [
"CC0-1.0"
] | 1 | 2021-06-03T19:06:24.000Z | 2021-06-03T19:06:24.000Z | '''
------------------------------------------------------------------------
This program runs the steady state solver as well as the time path
solver for the OG model with S-period lived agents, exogenous labor,
M industries, and I goods.
This Python script calls the following other file(s) with the associated... | 48.030043 | 149 | 0.583058 | 3,323 | 22,382 | 3.78724 | 0.111947 | 0.006516 | 0.005721 | 0.012872 | 0.506714 | 0.438935 | 0.349305 | 0.286532 | 0.263806 | 0.193008 | 0 | 0.031789 | 0.280404 | 22,382 | 465 | 150 | 48.133333 | 0.749596 | 0.086409 | 0 | 0.087963 | 0 | 0.009259 | 0.174493 | 0.023859 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046296 | null | null | 0.180556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74107fc9a92af6c2a19b0d4f04f980ee2043b713 | 1,273 | py | Python | replacement_algorithm/general.py | sunsihtf/simple-cache-policy-simulator | b3736312c759e5a6c43f8b4768ca63c3c39a97ae | [
"MIT"
] | 6 | 2018-11-22T07:16:30.000Z | 2021-04-19T13:12:41.000Z | replacement_algorithm/general.py | sunsihtf/simple-cache-policy-simulator | b3736312c759e5a6c43f8b4768ca63c3c39a97ae | [
"MIT"
] | null | null | null | replacement_algorithm/general.py | sunsihtf/simple-cache-policy-simulator | b3736312c759e5a6c43f8b4768ca63c3c39a97ae | [
"MIT"
] | 1 | 2019-04-21T08:16:58.000Z | 2019-04-21T08:16:58.000Z | from abc import ABCMeta, abstractmethod
import collections
class ReplaceAlgo(metaclass=ABCMeta):
def __init__(self, capacity):
self.cache_capacity = capacity
self.cache_size = 0
self.cache_stack = collections.OrderedDict()
self.write2disk = 0
self.transportfrombackend = 0
... | 28.288889 | 116 | 0.590731 | 159 | 1,273 | 4.63522 | 0.415094 | 0.061058 | 0.020353 | 0.029851 | 0.062415 | 0.062415 | 0.062415 | 0.062415 | 0 | 0 | 0 | 0.023596 | 0.300864 | 1,273 | 44 | 117 | 28.931818 | 0.804494 | 0.173606 | 0 | 0.125 | 0 | 0 | 0.02488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.0625 | 0.03125 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
74125f79f17723620cc7a6ba5aaba2ad79f03c5e | 1,013 | py | Python | tests/app/migrations/0002_visit.py | zostera/django-attrs | c1f1b4bb4bfb9cf836423cd5c7f121d61322a86b | [
"BSD-3-Clause"
] | null | null | null | tests/app/migrations/0002_visit.py | zostera/django-attrs | c1f1b4bb4bfb9cf836423cd5c7f121d61322a86b | [
"BSD-3-Clause"
] | null | null | null | tests/app/migrations/0002_visit.py | zostera/django-attrs | c1f1b4bb4bfb9cf836423cd5c7f121d61322a86b | [
"BSD-3-Clause"
] | 1 | 2019-12-01T22:14:45.000Z | 2019-12-01T22:14:45.000Z | # Generated by Django 2.1.3 on 2018-11-27 09:55
import attrs.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("app", "0001_initial")]
operations = [
migrations.CreateModel(
name="Visit",
... | 28.138889 | 86 | 0.446199 | 81 | 1,013 | 5.506173 | 0.654321 | 0.053812 | 0.06278 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03964 | 0.452122 | 1,013 | 35 | 87 | 28.942857 | 0.763964 | 0.044423 | 0 | 0.137931 | 1 | 0 | 0.054865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 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 |
7415036718c53bd964690f45e8224fa5a56b1622 | 3,043 | py | Python | chromepasswords.py | petreleon/Python-Examples | f6841a9757373703163aa527933f1483566b4a08 | [
"MIT"
] | null | null | null | chromepasswords.py | petreleon/Python-Examples | f6841a9757373703163aa527933f1483566b4a08 | [
"MIT"
] | null | null | null | chromepasswords.py | petreleon/Python-Examples | f6841a9757373703163aa527933f1483566b4a08 | [
"MIT"
] | null | null | null | import os
import json
import base64
import sqlite3
import win32crypt
from Crypto.Cipher import AES
import shutil
from datetime import timezone, datetime, timedelta
def chrome_date_and_time(chrome_data):
# Chrome_data format is 'year-month-date
# hr:mins:seconds.milliseconds
# This will return datetime.datetime Obj... | 26.46087 | 108 | 0.723957 | 423 | 3,043 | 5 | 0.361702 | 0.055319 | 0.026478 | 0.024113 | 0.119149 | 0.086998 | 0.086998 | 0.086998 | 0.062411 | 0.062411 | 0 | 0.025801 | 0.159382 | 3,043 | 114 | 109 | 26.692982 | 0.801016 | 0.178442 | 0 | 0.085714 | 0 | 0 | 0.21322 | 0.03426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.171429 | 0.114286 | 0.014286 | 0.242857 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7419ef6e8a86a4875ecbf0d4658e76a557acec43 | 703 | py | Python | ats/urls.py | bitrecruiter/ats_project | cf363d6163a2b9369839b476b60908f2982f80b3 | [
"WTFPL"
] | null | null | null | ats/urls.py | bitrecruiter/ats_project | cf363d6163a2b9369839b476b60908f2982f80b3 | [
"WTFPL"
] | null | null | null | ats/urls.py | bitrecruiter/ats_project | cf363d6163a2b9369839b476b60908f2982f80b3 | [
"WTFPL"
] | 3 | 2016-07-20T11:17:37.000Z | 2018-12-31T06:00:27.000Z | from django.conf.urls import patterns, include, url
from ats.views import *
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'bcauth_project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^job/(?P<job_id>\d+)/', JobView.as_view(), name='ats_job'),
url(r'^jobs/', JobLis... | 41.352941 | 77 | 0.641536 | 100 | 703 | 4.34 | 0.37 | 0.082949 | 0.16129 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122333 | 703 | 16 | 78 | 43.9375 | 0.703404 | 0.14367 | 0 | 0 | 0 | 0 | 0.247492 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
741df03c605f7c8edfa55bf4c10a819be3562916 | 1,929 | py | Python | 2015/rock-paper-scissors/rpsls_adv.py | axvr/codedump | 1e4a35f8e200048b47915466a35403f6ba5cd539 | [
"CC0-1.0"
] | 1 | 2018-09-23T06:11:28.000Z | 2018-09-23T06:11:28.000Z | 2015/rock-paper-scissors/rpsls_adv.py | axvr/codedump | 1e4a35f8e200048b47915466a35403f6ba5cd539 | [
"CC0-1.0"
] | null | null | null | 2015/rock-paper-scissors/rpsls_adv.py | axvr/codedump | 1e4a35f8e200048b47915466a35403f6ba5cd539 | [
"CC0-1.0"
] | null | null | null | # Rock, Paper, Scissors, Lizard, Spock - Advanced
# rpsls_adv.py for Python 3.4 | Written by Alex Vear
# Written: 19th December 2015 | Modified: 22nd December 2015
# Public domain. No rights reserved.
import random
playAgain='y'
while playAgain=='y' or playAgain=='Y':
win=0
print("\nScissors cuts Paper \nPape... | 42.866667 | 272 | 0.557802 | 251 | 1,929 | 4.282869 | 0.342629 | 0.074419 | 0.051163 | 0.065116 | 0.345116 | 0.226977 | 0.226977 | 0.226977 | 0.226977 | 0.226977 | 0 | 0.016949 | 0.296527 | 1,929 | 44 | 273 | 43.840909 | 0.77524 | 0.100052 | 0 | 0.384615 | 0 | 0.025641 | 0.373772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0.410256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
741ed06c043f7ccdfa760d57025904d088b9dea1 | 3,222 | py | Python | python/sklearn/examples/decomposition/plot_ica_vs_pca.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | 1 | 2017-10-14T04:23:45.000Z | 2017-10-14T04:23:45.000Z | python/sklearn/examples/decomposition/plot_ica_vs_pca.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | python/sklearn/examples/decomposition/plot_ica_vs_pca.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | """
==========================
FastICA on 2D point clouds
==========================
Illustrate visually the results of :ref:`ICA` vs :ref:`PCA` in the
feature space.
Representing ICA in the feature space gives the view of 'geometric ICA':
ICA is an algorithm that finds directions in the feature space
corresponding t... | 31.588235 | 79 | 0.647114 | 513 | 3,222 | 3.97271 | 0.37232 | 0.017174 | 0.023553 | 0.019627 | 0.029441 | 0.025515 | 0.025515 | 0.025515 | 0.025515 | 0 | 0 | 0.034665 | 0.176288 | 3,222 | 101 | 80 | 31.90099 | 0.733233 | 0.077281 | 0 | 0 | 0 | 0 | 0.054742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7421d098ae659b63003aa81062297c85c4db845e | 5,395 | py | Python | converter.py | soodoku/digitaltv-coverage-in-uk | 9c4e95aaa41099d0528528bbb8a4e78abc8670e0 | [
"MIT"
] | 2 | 2015-07-20T14:46:36.000Z | 2015-07-20T19:31:31.000Z | converter.py | soodoku/digitaltv-coverage-in-uk | 9c4e95aaa41099d0528528bbb8a4e78abc8670e0 | [
"MIT"
] | null | null | null | converter.py | soodoku/digitaltv-coverage-in-uk | 9c4e95aaa41099d0528528bbb8a4e78abc8670e0 | [
"MIT"
] | 1 | 2021-05-04T04:23:19.000Z | 2021-05-04T04:23:19.000Z | '''
Parse coverage checker html files.
Write out data to a csv.
INPUT: html files in MY_DATA_FOLDERS
OUTPUT: csv file called OUTPUT_FILE
'''
from os import walk
import re
MY_DATA_FOLDERS = ["cov_checker"] # Folder to be processed
OUTPUT_FILE = "output.csv" # csv output result
DIGITAL_SEVICES = set()
CHA... | 35.032468 | 146 | 0.566636 | 546 | 5,395 | 5.525641 | 0.285714 | 0.055684 | 0.053364 | 0.024859 | 0.154458 | 0.119324 | 0.078886 | 0.078886 | 0.009281 | 0 | 0 | 0.009613 | 0.305839 | 5,395 | 153 | 147 | 35.261438 | 0.795995 | 0.129008 | 0 | 0.186047 | 0 | 0 | 0.145424 | 0.027666 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.05814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
742202ac1771508baccbc0fe5b6b22965932ae34 | 405 | py | Python | docs/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py | konung-yaropolk/pyABF | b5620e73ac5d060129b844da44f8b2611536ac56 | [
"MIT"
] | 74 | 2017-11-06T17:53:48.000Z | 2022-03-27T12:14:46.000Z | docs/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py | konung-yaropolk/pyABF | b5620e73ac5d060129b844da44f8b2611536ac56 | [
"MIT"
] | 116 | 2018-01-16T21:36:29.000Z | 2022-03-31T11:46:04.000Z | docs/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py | konung-yaropolk/pyABF | b5620e73ac5d060129b844da44f8b2611536ac56 | [
"MIT"
] | 30 | 2018-06-28T13:19:53.000Z | 2022-03-25T02:52:48.000Z | import glob
import sys
import os
sys.path.insert(0,os.path.abspath("../../../src/"))
import pyabf
if __name__=="__main__":
PATH=R"X:\Data\projects\2017-01-09 AT1-Cre mice\2017-01-09 global expression NTS\data"
for fname in sorted(glob.glob(PATH+"/*.abf")):
abf=pyabf.ABF(fname)
if not abf.commen... | 28.928571 | 90 | 0.646914 | 61 | 405 | 4.163934 | 0.622951 | 0.047244 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054711 | 0.187654 | 405 | 14 | 91 | 28.928571 | 0.717325 | 0 | 0 | 0 | 0 | 0.076923 | 0.268473 | 0.066502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7425fc6532aea46b8665f27922b3825d84d16f07 | 717 | py | Python | Ylperj-database/CarModelsCreate.py | shoter/ylperJ | 716d38b4b13388b1d96919d8b21aa7e340f3efd1 | [
"MIT"
] | null | null | null | Ylperj-database/CarModelsCreate.py | shoter/ylperJ | 716d38b4b13388b1d96919d8b21aa7e340f3efd1 | [
"MIT"
] | 6 | 2020-04-23T18:32:52.000Z | 2021-12-09T21:22:18.000Z | Ylperj-database/CarModelsCreate.py | shoter/ylperJ | 716d38b4b13388b1d96919d8b21aa7e340f3efd1 | [
"MIT"
] | null | null | null | Engines = [
(1, "Diesel"),
(2, "Gasoline"),
(3, "Electric")
]
Luxuries = [
(1, "Cheap"),
(2, "Standard"),
(3, "Luxurious")
]
Companies = [
(1, 'Skoda'),
(2, 'Volvo'),
(3, 'Toyota'),
(4, 'Fiat')
]
def CalculateFuelConsumption(engineId, companyId, luxuryId):
return 100 + eng... | 22.40625 | 66 | 0.432357 | 73 | 717 | 4.246575 | 0.465753 | 0.109677 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046908 | 0.345886 | 717 | 32 | 66 | 22.40625 | 0.614072 | 0 | 0 | 0 | 0 | 0 | 0.110028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74261de06eee7feae9c74658beccdee5c04a750e | 6,912 | py | Python | tests/test_octodns_provider_yaml.py | jrunkel/octodns | 5429a64e51321d282f0aa82ac06f1ca68ec5bf3c | [
"MIT"
] | null | null | null | tests/test_octodns_provider_yaml.py | jrunkel/octodns | 5429a64e51321d282f0aa82ac06f1ca68ec5bf3c | [
"MIT"
] | null | null | null | tests/test_octodns_provider_yaml.py | jrunkel/octodns | 5429a64e51321d282f0aa82ac06f1ca68ec5bf3c | [
"MIT"
] | null | null | null | #
#
#
from __future__ import absolute_import, division, print_function, \
unicode_literals
from os.path import dirname, isfile, join
from unittest import TestCase
from yaml import safe_load
from yaml.constructor import ConstructorError
from octodns.record import Create
from octodns.provider.yaml import YamlProvi... | 38.614525 | 77 | 0.568287 | 764 | 6,912 | 5.061518 | 0.265707 | 0.101371 | 0.027929 | 0.056892 | 0.474528 | 0.442462 | 0.330747 | 0.293768 | 0.281614 | 0.242824 | 0 | 0.004278 | 0.32364 | 6,912 | 178 | 78 | 38.831461 | 0.822888 | 0.177517 | 0 | 0.262136 | 0 | 0 | 0.077782 | 0 | 0 | 0 | 0 | 0.005618 | 0.407767 | 1 | 0.038835 | false | 0 | 0.087379 | 0 | 0.135922 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
742a29eaa70feec6aa524c7f468332e53208a8f5 | 1,163 | py | Python | detection/base_model.py | JakubPetriska/moving-sprites-object-detection | 3dc48a8c5b46b0ee9b08b90b0bf1607753e5c659 | [
"Apache-2.0"
] | 6 | 2018-03-01T10:02:16.000Z | 2020-06-19T12:42:14.000Z | detection/base_model.py | JakubPetriska/moving-sprites-object-detection | 3dc48a8c5b46b0ee9b08b90b0bf1607753e5c659 | [
"Apache-2.0"
] | null | null | null | detection/base_model.py | JakubPetriska/moving-sprites-object-detection | 3dc48a8c5b46b0ee9b08b90b0bf1607753e5c659 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from keras.models import model_from_json
class BaseModel(ABC):
def __init__(self,
model_file_path=None,
weights_file_path=None,
verbosity=1):
if model_file_path:
with open(model_file_path, 'r') as model_fil... | 25.844444 | 64 | 0.623388 | 143 | 1,163 | 4.776224 | 0.300699 | 0.11713 | 0.095168 | 0.04978 | 0.172767 | 0.084919 | 0.084919 | 0 | 0 | 0 | 0 | 0.00122 | 0.294927 | 1,163 | 44 | 65 | 26.431818 | 0.831707 | 0 | 0 | 0.285714 | 0 | 0 | 0.00172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.142857 | 0.057143 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
742e0248a8aa9b41dc85de4de72c884d496f20d9 | 3,245 | py | Python | sdk/python/pulumi_aws_native/location/get_place_index.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/location/get_place_index.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/location/get_place_index.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 34.521277 | 124 | 0.67396 | 387 | 3,245 | 5.335917 | 0.26615 | 0.058111 | 0.031477 | 0.048426 | 0.301211 | 0.275061 | 0.204358 | 0.120097 | 0 | 0 | 0 | 0.000395 | 0.220647 | 3,245 | 93 | 125 | 34.892473 | 0.816133 | 0.094299 | 0 | 0.057971 | 1 | 0 | 0.132186 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0 | 0.072464 | 0.057971 | 0.304348 | 0 | 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 |
7434f4f146e47baaf237cd225371fc355a0742ea | 1,801 | py | Python | django/core/model_fields.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | 1 | 2020-01-01T15:54:45.000Z | 2020-01-01T15:54:45.000Z | django/core/model_fields.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | 13 | 2019-02-28T03:24:54.000Z | 2021-09-22T17:50:00.000Z | django/core/model_fields.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.fields import BigIntegerField
from django.utils.translation import ugettext_lazy as _
from .bitcoin import Bitcoin
HEX_CHARS = "0123456789abcdefABCDEF"
def validate_hex(hex_string):
if not (len(hex_string) % 2... | 31.051724 | 87 | 0.654636 | 215 | 1,801 | 5.35814 | 0.465116 | 0.046875 | 0.020833 | 0.022569 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.262632 | 1,801 | 57 | 88 | 31.596491 | 0.858434 | 0.080511 | 0 | 0.051282 | 0 | 0 | 0.146552 | 0.013547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.128205 | 0.025641 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
743567e6130a8957b1d579546a0e934b198dfa8b | 3,064 | py | Python | launchpad_rgb/__init__.py | HitmanBobina47/launchpad_rgb | cf073ce3662e110b30a4e7647750d86d53ec027f | [
"MIT"
] | 7 | 2019-04-09T01:47:00.000Z | 2020-11-11T01:38:46.000Z | launchpad_rgb/__init__.py | HitmanBobina47/launchpad_rgb | cf073ce3662e110b30a4e7647750d86d53ec027f | [
"MIT"
] | null | null | null | launchpad_rgb/__init__.py | HitmanBobina47/launchpad_rgb | cf073ce3662e110b30a4e7647750d86d53ec027f | [
"MIT"
] | 1 | 2019-12-07T11:36:21.000Z | 2019-12-07T11:36:21.000Z | from typing import Callable, List
class Message():
"""
Stores the notes and their new colors.
All functions return themselves (except for xy), so you can chain calls.
To get the actual sysex data (not including the 0xF0 to start and 0xF7 to end the message),
call the object like a function.
Exa... | 37.82716 | 157 | 0.56299 | 475 | 3,064 | 3.589474 | 0.317895 | 0.02346 | 0.025806 | 0.037537 | 0.368328 | 0.321994 | 0.265689 | 0.244575 | 0.205865 | 0.138416 | 0 | 0.050946 | 0.32735 | 3,064 | 80 | 158 | 38.3 | 0.776322 | 0.380222 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01444 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 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 |
743d4a9a855ae115998b48388d8c8ff2fca08302 | 2,769 | py | Python | tests/unit/pywbemcli/conftest.py | pywbem/pywbemtools | 6b7c3f124324fd3ab7cffb82bc98c8f9555317e4 | [
"Apache-2.0"
] | 8 | 2017-04-01T13:55:00.000Z | 2022-03-15T18:28:47.000Z | tests/unit/pywbemcli/conftest.py | pywbem/pywbemtools | 6b7c3f124324fd3ab7cffb82bc98c8f9555317e4 | [
"Apache-2.0"
] | 918 | 2017-03-03T14:29:03.000Z | 2022-03-29T15:32:16.000Z | tests/unit/pywbemcli/conftest.py | pywbem/pywbemtools | 6b7c3f124324fd3ab7cffb82bc98c8f9555317e4 | [
"Apache-2.0"
] | 2 | 2020-01-17T15:56:46.000Z | 2020-02-12T18:49:30.000Z | """
Pytest common fixtures
"""
from __future__ import absolute_import, print_function
import os
import pytest
from pywbemtools._utils import CONNECTIONS_FILENAME, \
DEFAULT_CONNECTIONS_DIR, DEFAULT_CONNECTIONS_FILE
SCRIPT_DIR = os.path.dirname(__file__)
# Backup file of the default connections file
BAK_SUFFIX =... | 35.961039 | 79 | 0.727338 | 352 | 2,769 | 5.448864 | 0.221591 | 0.19708 | 0.194995 | 0.037539 | 0.471846 | 0.407195 | 0.380083 | 0.307091 | 0.232534 | 0.069864 | 0 | 0 | 0.21524 | 2,769 | 76 | 80 | 36.434211 | 0.882651 | 0.300831 | 0 | 0.111111 | 0 | 0 | 0.018569 | 0.012561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.111111 | 0 | 0.222222 | 0.027778 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7440b717546ee638774417faa2b4dd5418e3f9b2 | 792 | py | Python | data/spacex.py | Apallapuqu/MaxenceR263 | 0278ea56ee15d08068ad9cd542ec5d81704010d5 | [
"MIT"
] | 3 | 2021-10-14T15:46:24.000Z | 2021-10-15T17:29:32.000Z | data/spacex.py | Apallapuqu/MaxenceR263 | 0278ea56ee15d08068ad9cd542ec5d81704010d5 | [
"MIT"
] | 1 | 2021-11-04T14:47:00.000Z | 2021-11-04T15:27:16.000Z | data/spacex.py | Apallapuqu/MaxenceR263 | 0278ea56ee15d08068ad9cd542ec5d81704010d5 | [
"MIT"
] | 1 | 2021-11-04T01:17:06.000Z | 2021-11-04T01:17:06.000Z | import requests
def info_spacex():
url = "https://api.spacexdata.com/v3/info"
request = requests.get(url)
data = request.json()
print(
"SpaceX Info ->\n"
f"• Founder : {data['founder']}\n"
f"• Founded : {data['founded']}\n"
f"• Employees : {data['employees']}\n"
... | 31.68 | 58 | 0.506313 | 109 | 792 | 3.770642 | 0.311927 | 0.06326 | 0.094891 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001709 | 0.261364 | 792 | 24 | 59 | 33 | 0.678632 | 0 | 0 | 0 | 0 | 0 | 0.630051 | 0.218434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7441ed8754d181a3bbc97faed79497d959d46b12 | 874 | py | Python | daiquiri/jobs/migrations/0004_phases_to_char.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 14 | 2018-12-23T18:35:02.000Z | 2021-12-15T04:55:12.000Z | daiquiri/jobs/migrations/0004_phases_to_char.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 40 | 2018-12-20T12:44:05.000Z | 2022-03-21T11:35:20.000Z | daiquiri/jobs/migrations/0004_phases_to_char.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 5 | 2019-05-16T08:03:35.000Z | 2021-08-23T20:03:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-31 11:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('daiquiri_jobs', '0003_owner_fk'),
]
operations = [
migrations.AlterField(
... | 33.615385 | 302 | 0.584668 | 87 | 874 | 5.724138 | 0.609195 | 0.042169 | 0.100402 | 0.116466 | 0.144578 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0.034074 | 0.227689 | 874 | 25 | 303 | 34.96 | 0.703704 | 0.074371 | 0 | 0.333333 | 1 | 0 | 0.244417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74549295644b9ab856d42ba18aad581d90fa00df | 2,548 | py | Python | section2/src/inference/UNetInferenceAgent.py | taruntalreja08/Alzheimer-progression | e656ecdabe0d14fe7365669113dae13c92252f5d | [
"MIT"
] | null | null | null | section2/src/inference/UNetInferenceAgent.py | taruntalreja08/Alzheimer-progression | e656ecdabe0d14fe7365669113dae13c92252f5d | [
"MIT"
] | 1 | 2020-06-07T15:04:01.000Z | 2020-06-07T15:04:01.000Z | section2/src/inference/UNetInferenceAgent.py | taruntalreja08/Alzheimer-progression | e656ecdabe0d14fe7365669113dae13c92252f5d | [
"MIT"
] | null | null | null | """
Contains class that runs inferencing
"""
import torch
import numpy as np
from networks.RecursiveUNet import UNet
from utils.utils import med_reshape
class UNetInferenceAgent:
"""
Stores model and parameters and some methods to handle inferencing
"""
def __init__(self, parameter_file_path='', mode... | 31.45679 | 100 | 0.600863 | 332 | 2,548 | 4.542169 | 0.412651 | 0.039788 | 0.03382 | 0.03183 | 0.202918 | 0.172414 | 0.172414 | 0.172414 | 0.172414 | 0.119363 | 0 | 0.015393 | 0.311617 | 2,548 | 80 | 101 | 31.85 | 0.844356 | 0.345761 | 0 | 0 | 0 | 0 | 0.003287 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.090909 | false | 0 | 0.121212 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7454dbd88f5a6b8a189be8a7fbf19150aa71b9b0 | 2,666 | py | Python | tests/trans_sec/controller/http_server_flask_tests.py | cablelabs/transparent-security | 28d40c2f0c64e5c6ffde173ba17be235ce3f6f57 | [
"Apache-2.0"
] | 22 | 2020-01-09T00:19:53.000Z | 2022-01-19T18:43:12.000Z | tests/trans_sec/controller/http_server_flask_tests.py | cablelabs/transparent-security | 28d40c2f0c64e5c6ffde173ba17be235ce3f6f57 | [
"Apache-2.0"
] | 334 | 2020-01-06T19:49:45.000Z | 2021-08-18T16:44:44.000Z | tests/trans_sec/controller/http_server_flask_tests.py | cablelabs/transparent-security | 28d40c2f0c64e5c6ffde173ba17be235ce3f6f57 | [
"Apache-2.0"
] | 4 | 2020-06-04T20:44:47.000Z | 2021-09-09T18:50:41.000Z | # Copyright (c) 2019 Cable Television Laboratories, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 29.955056 | 74 | 0.650038 | 345 | 2,666 | 4.898551 | 0.428986 | 0.04142 | 0.04497 | 0.054438 | 0.305325 | 0.301775 | 0.292899 | 0.292899 | 0.268639 | 0.159763 | 0 | 0.0335 | 0.249812 | 2,666 | 88 | 75 | 30.295455 | 0.8115 | 0.307952 | 0 | 0.311111 | 0 | 0 | 0.152552 | 0.0129 | 0 | 0 | 0 | 0.011364 | 0.066667 | 1 | 0.177778 | false | 0.022222 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7455ff3dcda7a5add726f7de0d09df9484ff450a | 764 | py | Python | ccgpack/curvelet.py | vafaei-ar/ccgpack | 73cf1d644f747fd2251ed9256cae740e6b052da7 | [
"BSD-3-Clause"
] | 3 | 2019-04-15T08:40:32.000Z | 2019-04-18T22:06:29.000Z | ccgpack/curvelet.py | vafaei-ar/ccgpack | 73cf1d644f747fd2251ed9256cae740e6b052da7 | [
"BSD-3-Clause"
] | null | null | null | ccgpack/curvelet.py | vafaei-ar/ccgpack | 73cf1d644f747fd2251ed9256cae740e6b052da7 | [
"BSD-3-Clause"
] | 2 | 2019-04-15T08:41:35.000Z | 2021-10-02T08:24:22.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import ctypes
import numpy as np
import os
path = '/'.join(os.path.abspath(__file__).split('/')[:-1])
fftw_path = 'cpp_src/fftw-2.1.5/fftw/.libs/libfftw.so.2'
crv_path = 'cpp_src/curvelet.so'
ctypes.cdll.Load... | 30.56 | 76 | 0.739529 | 131 | 764 | 4.053435 | 0.427481 | 0.045198 | 0.090395 | 0.086629 | 0.131827 | 0.131827 | 0.131827 | 0 | 0 | 0 | 0 | 0.017751 | 0.115183 | 764 | 24 | 77 | 31.833333 | 0.767751 | 0 | 0 | 0 | 0 | 0 | 0.117955 | 0.055046 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
74572a2aa855eb547d5395986ea7bf0a29902db0 | 3,058 | py | Python | David S/Textswapping/texteditor.py | daaronr/dr_text_md_tools | 7d74a95c9f3cfd0f66d46f9bee23878e8e783da8 | [
"BSD-2-Clause"
] | null | null | null | David S/Textswapping/texteditor.py | daaronr/dr_text_md_tools | 7d74a95c9f3cfd0f66d46f9bee23878e8e783da8 | [
"BSD-2-Clause"
] | null | null | null | David S/Textswapping/texteditor.py | daaronr/dr_text_md_tools | 7d74a95c9f3cfd0f66d46f9bee23878e8e783da8 | [
"BSD-2-Clause"
] | null | null | null | #texteditor.py
#Description: uses csv-format file 'dictionary' to make a series of replacements in 'oldfile' and create 'newfile'
#Execute as "python texteditor.py oldfile dictionary"
#Creates 'newfile'
#see also README.md
import os
#tells python to use the module 'os'
import sys
#tells python to use the module 'sys'... | 35.149425 | 179 | 0.733813 | 493 | 3,058 | 4.551724 | 0.434077 | 0.022282 | 0.011586 | 0.01426 | 0.061497 | 0.046346 | 0 | 0 | 0 | 0 | 0 | 0.004374 | 0.177567 | 3,058 | 87 | 180 | 35.149425 | 0.887873 | 0.658927 | 0 | 0 | 0 | 0 | 0.011189 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
745999d132ff9aeafd110c46482e9bd04fc9b1a8 | 9,832 | py | Python | server/app.py | meowterspace/mission_control | c98ff78c9d1e6ad9c70e60f83b8fb2fa6af32887 | [
"MIT"
] | null | null | null | server/app.py | meowterspace/mission_control | c98ff78c9d1e6ad9c70e60f83b8fb2fa6af32887 | [
"MIT"
] | 4 | 2017-10-31T17:26:11.000Z | 2018-01-12T22:11:03.000Z | server/app.py | meowterspace/mission_control | c98ff78c9d1e6ad9c70e60f83b8fb2fa6af32887 | [
"MIT"
] | null | null | null | # Import all external libraries
import json
import datetime
import time
import os
import io
import errno
from flask import Flask, render_template, send_file, request, session, redirect, render_template_string
from flask_socketio import SocketIO, emit, send
from threading import Thread, Lock
import resources
import sys... | 40.79668 | 126 | 0.68572 | 1,424 | 9,832 | 4.660815 | 0.291433 | 0.016272 | 0.007684 | 0.012656 | 0.033901 | 0.033901 | 0.033901 | 0.033901 | 0.033901 | 0.033901 | 0 | 0.003169 | 0.197518 | 9,832 | 240 | 127 | 40.966667 | 0.838023 | 0.508849 | 0 | 0.040268 | 0 | 0 | 0.230217 | 0.071534 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073826 | null | null | 0.053691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
746481340991d95d9f71098fa29212550353d414 | 4,968 | py | Python | chocolate/connection/pandas.py | Intelecy/chocolate | 0ba4f6f0130eab851d32d5534241c8cac3f6666e | [
"BSD-3-Clause"
] | 105 | 2017-10-27T02:14:22.000Z | 2022-01-13T12:57:05.000Z | chocolate/connection/pandas.py | Intelecy/chocolate | 0ba4f6f0130eab851d32d5534241c8cac3f6666e | [
"BSD-3-Clause"
] | 31 | 2017-10-03T13:41:35.000Z | 2021-08-20T21:01:29.000Z | chocolate/connection/pandas.py | areeh/chocolate | 5f946cb9daf42c3ab44508648917d46bc105c2fc | [
"BSD-3-Clause"
] | 38 | 2017-10-05T20:19:42.000Z | 2022-03-28T11:34:04.000Z | from contextlib import contextmanager
import pickle
import numpy
import pandas
from ..base import Connection
class DataFrameConnection(Connection):
"""Connection to a pandas DataFrame.
This connection is meant when it is not possible to use the file system
or other type of traditional database (e.g. a ... | 36.262774 | 103 | 0.63748 | 633 | 4,968 | 4.957346 | 0.308057 | 0.04557 | 0.024219 | 0.016571 | 0.215105 | 0.166029 | 0.116635 | 0.095602 | 0.095602 | 0.095602 | 0 | 0.000278 | 0.275966 | 4,968 | 136 | 104 | 36.529412 | 0.872116 | 0.402375 | 0 | 0.16129 | 0 | 0 | 0.045861 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 1 | 0.225806 | false | 0 | 0.080645 | 0 | 0.435484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
746f96c13dd49fef6cef2fd1b4ab1513df02e05d | 3,920 | py | Python | old/summarize-scripts/python/rank_summarizer.py | kedz/cuttsum | 992c21192af03fd2ef863f5ab7d10752f75580fa | [
"Apache-2.0"
] | 6 | 2015-09-10T02:22:21.000Z | 2021-10-01T16:36:46.000Z | old/summarize-scripts/python/rank_summarizer.py | kedz/cuttsum | 992c21192af03fd2ef863f5ab7d10752f75580fa | [
"Apache-2.0"
] | null | null | null | old/summarize-scripts/python/rank_summarizer.py | kedz/cuttsum | 992c21192af03fd2ef863f5ab7d10752f75580fa | [
"Apache-2.0"
] | 2 | 2018-04-04T10:44:32.000Z | 2021-10-01T16:37:26.000Z | import os
import sys
import argparse
from cuttsum.readers import gold_reader
from cuttsum.summarizers import RankSummarizer
def main():
args = parse_args()
bow_file, lvec_file, sim_file = args[0:3]
dbg_sim_mode, odir, n_return, use_temp, penalty_mode = args[3:]
if sim_file is None:
if dbg_sim_... | 32.666667 | 96 | 0.570663 | 530 | 3,920 | 4.039623 | 0.216981 | 0.042504 | 0.071462 | 0.058851 | 0.479215 | 0.287249 | 0.230733 | 0.185894 | 0.144792 | 0.144792 | 0 | 0.003305 | 0.305357 | 3,920 | 119 | 97 | 32.941176 | 0.78296 | 0 | 0 | 0.186813 | 0 | 0 | 0.168878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065934 | null | null | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
747300fe06e37214b9d4b666eba20905c7e7c63d | 7,096 | py | Python | bsd2/vagrant-ansible/ansible/plugins/inventory/nova.py | dlab-berkeley/collaboratool-archive | fa474e05737f78e628d6b9398c58cf7c966a7bba | [
"Apache-2.0"
] | 1 | 2016-01-20T14:36:02.000Z | 2016-01-20T14:36:02.000Z | bsd2/vagrant-ansible/ansible/plugins/inventory/nova.py | dlab-berkeley/collaboratool-archive | fa474e05737f78e628d6b9398c58cf7c966a7bba | [
"Apache-2.0"
] | null | null | null | bsd2/vagrant-ansible/ansible/plugins/inventory/nova.py | dlab-berkeley/collaboratool-archive | fa474e05737f78e628d6b9398c58cf7c966a7bba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# (c) 2012, Marco Vito Moscaritolo <marco@agavee.com>
#
# This file is part of Ansible,
#
# Ansible 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
# ... | 29.940928 | 142 | 0.643461 | 923 | 7,096 | 4.864572 | 0.321777 | 0.024499 | 0.028062 | 0.030735 | 0.14343 | 0.098886 | 0.073942 | 0.073942 | 0.073942 | 0.073942 | 0 | 0.006329 | 0.242954 | 7,096 | 236 | 143 | 30.067797 | 0.829486 | 0.15699 | 0 | 0.220994 | 0 | 0.01105 | 0.592681 | 0.028044 | 0 | 0 | 0 | 0.004237 | 0 | 0 | null | null | 0.005525 | 0.038674 | null | null | 0.016575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
747904efdd9f1ce7e4568f67aa61e74e2291d27b | 1,757 | py | Python | src/zope/site/tests/test_folder.py | zopefoundation/zope.site | a523fdaab2801d6c2b15d10bd93115c9d53f4fd7 | [
"ZPL-2.1"
] | 3 | 2018-10-09T14:20:30.000Z | 2021-03-09T22:23:50.000Z | src/zope/site/tests/test_folder.py | zopefoundation/zope.site | a523fdaab2801d6c2b15d10bd93115c9d53f4fd7 | [
"ZPL-2.1"
] | 15 | 2015-03-20T09:14:08.000Z | 2021-03-05T16:39:27.000Z | src/zope/site/tests/test_folder.py | zopefoundation/zope.site | a523fdaab2801d6c2b15d10bd93115c9d53f4fd7 | [
"ZPL-2.1"
] | 1 | 2015-04-03T09:43:40.000Z | 2015-04-03T09:43:40.000Z |
import doctest
import unittest
from zope.site.folder import Folder
from zope.site.testing import siteSetUp, siteTearDown, checker
from zope.site.tests.test_site import TestSiteManagerContainer
def setUp(test=None):
siteSetUp()
def tearDown(test=None):
siteTearDown()
class FolderTest(TestSiteManagerCont... | 27.453125 | 65 | 0.690381 | 175 | 1,757 | 6.822857 | 0.308571 | 0.067002 | 0.050251 | 0.030151 | 0.365997 | 0.284757 | 0.284757 | 0.284757 | 0.284757 | 0.284757 | 0 | 0 | 0.232783 | 1,757 | 63 | 66 | 27.888889 | 0.885757 | 0 | 0 | 0.243902 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.146341 | false | 0 | 0.292683 | 0.02439 | 0.536585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.