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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f814ba26527117e6b84e9f229772b778a6cda9e | 537 | py | Python | host/Productivity.py | chehansivaruban/Cyber---SDGP | 6676c284c34c4c15279bf3e5cfb73fd4e5b7391a | [
"CC0-1.0"
] | 1 | 2021-05-18T10:55:32.000Z | 2021-05-18T10:55:32.000Z | host/Productivity.py | chehansivaruban/Cyber---SDGP | 6676c284c34c4c15279bf3e5cfb73fd4e5b7391a | [
"CC0-1.0"
] | null | null | null | host/Productivity.py | chehansivaruban/Cyber---SDGP | 6676c284c34c4c15279bf3e5cfb73fd4e5b7391a | [
"CC0-1.0"
] | 2 | 2021-03-29T19:00:55.000Z | 2021-04-02T13:18:07.000Z |
class Productivity:
def __init__(self, irradiance, hours,capacity):
self.irradiance = irradiance
self.hours = hours
self.capacity = capacity
def getUnits(self):
print(self.irradiance)
totalpower = 0
print(totalpower)
for i in self.irradiance... | 28.263158 | 61 | 0.590317 | 54 | 537 | 5.796296 | 0.388889 | 0.223642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.324022 | 537 | 18 | 62 | 29.833333 | 0.837466 | 0.09311 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.214286 | 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 |
0f81775989722fac86c0501dba1ff10529d51ca2 | 1,313 | py | Python | sample/all_methods/setNoteApplicationDataEntry.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2016-02-14T13:39:46.000Z | 2021-09-03T16:02:18.000Z | sample/all_methods/setNoteApplicationDataEntry.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | sample/all_methods/setNoteApplicationDataEntry.py | matthewayne/evernote-sdk-python | 53b0c1263d250b88a1810987b51bc9def586db02 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-03-28T01:08:25.000Z | 2018-03-28T01:08:25.000Z | # Import the Evernote client
from evernote.api.client import EvernoteClient
# Define access token either:
# Developer Tokens (https://dev.evernote.com/doc/articles/dev_tokens.php)
# or OAuth (https://dev.evernote.com/doc/articles/authentication.php)
access_token = "insert dev or oauth token here"
# Setup the client
c... | 37.514286 | 126 | 0.763899 | 210 | 1,313 | 4.719048 | 0.461905 | 0.036327 | 0.05449 | 0.038345 | 0.117053 | 0.117053 | 0 | 0 | 0 | 0 | 0 | 0.00363 | 0.160701 | 1,313 | 34 | 127 | 38.617647 | 0.895644 | 0.562072 | 0 | 0 | 0 | 0.111111 | 0.40681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0f89c68a648bbf2920a3ee4f9f43df0ba5e7f56b | 800 | py | Python | sasquatch/error/exec.py | tmacro/s4 | 58729b61f56ff928c8fe928fb02816e5025ad588 | [
"BSD-3-Clause"
] | 6 | 2018-12-04T01:13:10.000Z | 2019-06-18T23:25:59.000Z | sasquatch/error/exec.py | tmacro/s4 | 58729b61f56ff928c8fe928fb02816e5025ad588 | [
"BSD-3-Clause"
] | 15 | 2018-12-01T00:13:41.000Z | 2021-06-01T23:05:08.000Z | sasquatch/error/exec.py | tmacro/sasquatch | 58729b61f56ff928c8fe928fb02816e5025ad588 | [
"BSD-3-Clause"
] | null | null | null | from .base import SQError, BaseErrorHelper
from .context import ContextAwareError
class ExecutionError(SQError):
'''raised when an error is encountered during script execution'''
class ExecErrorHelper(BaseErrorHelper):
_default = ExecutionError
@staticmethod
def throw(cls = ExecutionError, **kwargs):
if 'ctx' i... | 34.782609 | 75 | 0.76125 | 98 | 800 | 6.173469 | 0.602041 | 0.049587 | 0.079339 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14125 | 800 | 22 | 76 | 36.363636 | 0.88064 | 0.23625 | 0 | 0 | 0 | 0 | 0.139496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 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 |
0f8bf192c00ccdfe2c080948f76d42451737fa89 | 9,816 | py | Python | src/tools/cluster/cluster.py | uct-cbio/galaxy-tools | b9422088dc41099fdde1edaf9c014825c8ee1cbf | [
"MIT"
] | null | null | null | src/tools/cluster/cluster.py | uct-cbio/galaxy-tools | b9422088dc41099fdde1edaf9c014825c8ee1cbf | [
"MIT"
] | null | null | null | src/tools/cluster/cluster.py | uct-cbio/galaxy-tools | b9422088dc41099fdde1edaf9c014825c8ee1cbf | [
"MIT"
] | null | null | null | #!/usr/bin/python
# EST clustering
# Currently clustering are done using the wcd clustering algorithm. Other algorithms will later be supported.
# The wcd program does not use qual score for clustering. If seq qual scores are specified the
# wcd clustered information will be used to create cluster qual scores. This... | 47.650485 | 188 | 0.667787 | 1,338 | 9,816 | 4.667414 | 0.171151 | 0.064051 | 0.035388 | 0.033627 | 0.365252 | 0.281505 | 0.213931 | 0.201121 | 0.183026 | 0.165893 | 0 | 0.002488 | 0.222086 | 9,816 | 205 | 189 | 47.882927 | 0.815348 | 0.114507 | 0 | 0.227848 | 0 | 0.006329 | 0.276053 | 0.009925 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031646 | null | null | 0.14557 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e18bcbc29a2c01e32c9c2370ce6613e24de3611 | 10,660 | py | Python | stellarisdashboard/game_info.py | Akuukis/stellaris-dashboard | baf0de5abfaf1ade719f06c5d0ce76e7ee9d17df | [
"MIT",
"Unlicense"
] | 97 | 2018-03-24T14:18:21.000Z | 2022-01-16T16:25:55.000Z | stellarisdashboard/game_info.py | Akuukis/stellaris-dashboard | baf0de5abfaf1ade719f06c5d0ce76e7ee9d17df | [
"MIT",
"Unlicense"
] | 30 | 2018-03-25T01:06:44.000Z | 2022-01-28T10:24:19.000Z | stellarisdashboard/game_info.py | Akuukis/stellaris-dashboard | baf0de5abfaf1ade719f06c5d0ce76e7ee9d17df | [
"MIT",
"Unlicense"
] | 17 | 2018-03-25T15:45:30.000Z | 2022-01-09T13:58:32.000Z | PHYSICS_TECHS = {
"tech_databank_uplinks",
"tech_basic_science_lab_1",
"tech_curator_lab",
"tech_archeology_lab",
"tech_physics_lab_1",
"tech_physics_lab_2",
"tech_physics_lab_3",
"tech_global_research_initiative",
"tech_administrative_ai",
"tech_cryostasis_1",
"tech_cryostas... | 28.810811 | 98 | 0.711069 | 1,236 | 10,660 | 5.523463 | 0.328479 | 0.022704 | 0.031639 | 0.01538 | 0.077194 | 0.033397 | 0.033397 | 0.01582 | 0.01582 | 0 | 0 | 0.013547 | 0.175985 | 10,660 | 369 | 99 | 28.888889 | 0.763661 | 0.072983 | 0 | 0 | 0 | 0 | 0.600954 | 0.345041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011429 | false | 0 | 0 | 0.008571 | 0.022857 | 0 | 0 | 0 | 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 |
7e1a810629ff4e92bba844d970fa5906ec4f3338 | 3,689 | py | Python | starfish/pipeline/filter/gaussian_high_pass.py | Xiaojieqiu/starfish | 426480fcfeda4b8b1eb9371a818ff20275ac898d | [
"MIT"
] | 1 | 2018-10-07T03:53:43.000Z | 2018-10-07T03:53:43.000Z | starfish/pipeline/filter/gaussian_high_pass.py | Xiaojieqiu/starfish | 426480fcfeda4b8b1eb9371a818ff20275ac898d | [
"MIT"
] | null | null | null | starfish/pipeline/filter/gaussian_high_pass.py | Xiaojieqiu/starfish | 426480fcfeda4b8b1eb9371a818ff20275ac898d | [
"MIT"
] | null | null | null | import argparse
from functools import partial
from numbers import Number
from typing import Callable, Union, Tuple, Optional
import numpy as np
from skimage import img_as_uint
from starfish.errors import DataFormatWarning
from starfish.image import ImageStack
from starfish.pipeline.filter.gaussian_low_pass import Gau... | 35.815534 | 119 | 0.632421 | 442 | 3,689 | 5.180995 | 0.321267 | 0.031441 | 0.027948 | 0.036681 | 0.135808 | 0.052402 | 0.052402 | 0.052402 | 0.052402 | 0.052402 | 0 | 0.006022 | 0.279751 | 3,689 | 102 | 120 | 36.166667 | 0.855852 | 0.278666 | 0 | 0.043478 | 0 | 0 | 0.131424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.217391 | 0.217391 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7e1d6767408fd3f3df4bbb5588442b63585f4595 | 5,937 | py | Python | factom_core/blockchains/base.py | sourcery-ai-bot/factom-core | 186dca550d98d758e9f8dab878e6382153efeaf3 | [
"MIT"
] | null | null | null | factom_core/blockchains/base.py | sourcery-ai-bot/factom-core | 186dca550d98d758e9f8dab878e6382153efeaf3 | [
"MIT"
] | null | null | null | factom_core/blockchains/base.py | sourcery-ai-bot/factom-core | 186dca550d98d758e9f8dab878e6382153efeaf3 | [
"MIT"
] | null | null | null | from typing import Any, List
import factom_core.blocks as blocks
from factom_core.db import FactomdLevelDB
from .pending_block import PendingBlock
class BaseBlockchain:
"""The base class for all Blockchain objects"""
network_id: bytes = None
vms: List[Any] = None
data_path: str = None
db: Fact... | 39.58 | 118 | 0.662961 | 755 | 5,937 | 4.989404 | 0.218543 | 0.035041 | 0.036103 | 0.05442 | 0.322272 | 0.262809 | 0.216353 | 0.152641 | 0.126361 | 0.108574 | 0 | 0.005663 | 0.256358 | 5,937 | 149 | 119 | 39.845638 | 0.847565 | 0.160687 | 0 | 0.163265 | 0 | 0 | 0.066516 | 0 | 0 | 0 | 0 | 0.013423 | 0 | 1 | 0.122449 | false | 0.010204 | 0.040816 | 0 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7e1f08195236c36e7e4adbc510902d90c5d6a72a | 492 | py | Python | bot/plugins/bongo.py | Preocts/twitch-chat-bot | 50341c30d8eada4b50634c8f25a9eb0eed681735 | [
"MIT"
] | 62 | 2019-11-16T22:07:42.000Z | 2022-03-08T20:50:01.000Z | bot/plugins/bongo.py | Preocts/twitch-chat-bot | 50341c30d8eada4b50634c8f25a9eb0eed681735 | [
"MIT"
] | 30 | 2019-03-19T15:05:55.000Z | 2022-03-24T05:00:53.000Z | bot/plugins/bongo.py | Preocts/twitch-chat-bot | 50341c30d8eada4b50634c8f25a9eb0eed681735 | [
"MIT"
] | 56 | 2019-06-08T20:34:31.000Z | 2022-02-21T20:10:38.000Z | from __future__ import annotations
from typing import Match
from bot.config import Config
from bot.data import command
from bot.data import esc
from bot.data import format_msg
@command('!bongo')
async def cmd_bongo(config: Config, match: Match[str]) -> str:
_, _, rest = match['msg'].partition(' ')
rest = re... | 22.363636 | 76 | 0.676829 | 66 | 492 | 4.909091 | 0.378788 | 0.08642 | 0.101852 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21748 | 492 | 21 | 77 | 23.428571 | 0.841558 | 0 | 0 | 0 | 0 | 0 | 0.164634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7e1f4ae6822590bfe77246c78771d04e3114e141 | 532 | py | Python | sensorsproject/settings/dev_edwin.py | edwinsteele/sensorsproject | 21164b9bb437a3b1bbcc05f05c58cd5621bd4501 | [
"CC0-1.0"
] | null | null | null | sensorsproject/settings/dev_edwin.py | edwinsteele/sensorsproject | 21164b9bb437a3b1bbcc05f05c58cd5621bd4501 | [
"CC0-1.0"
] | 2 | 2020-02-12T01:18:25.000Z | 2020-06-05T18:40:51.000Z | sensorsproject/settings/dev_edwin.py | edwinsteele/sensorsproject | 21164b9bb437a3b1bbcc05f05c58cd5621bd4501 | [
"CC0-1.0"
] | null | null | null | __author__ = 'esteele'
# Common settings
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'sensors',
'USER': '',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '',
}
}
DEBUG = True
TEMPLATE_DEBUG = DEBUG
... | 22.166667 | 74 | 0.62218 | 57 | 532 | 5.614035 | 0.842105 | 0.075 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.223684 | 532 | 23 | 75 | 23.130435 | 0.757869 | 0.156015 | 0 | 0 | 0 | 0 | 0.374439 | 0.190583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e249d769adff61f3ed7920cc7d27c1e95686e3c | 887 | py | Python | class/cls_006.py | rpoliselit/python-for-dummies | d6f45a966a5238058953f93d8660832fa692b3d4 | [
"MIT"
] | null | null | null | class/cls_006.py | rpoliselit/python-for-dummies | d6f45a966a5238058953f93d8660832fa692b3d4 | [
"MIT"
] | null | null | null | class/cls_006.py | rpoliselit/python-for-dummies | d6f45a966a5238058953f93d8660832fa692b3d4 | [
"MIT"
] | null | null | null | # Custom errors in classes.
class TooManyPagesReadError(ValueError):
pass
class Book:
def __init__(self, title, page_count):
self.title = title
self.page_count = page_count
self.pages_read = 0
def __repr__(self):
return (
f"<Book {self.title}, read {self.pages_... | 26.878788 | 112 | 0.641488 | 124 | 887 | 4.387097 | 0.370968 | 0.115809 | 0.143382 | 0.165441 | 0.1875 | 0.147059 | 0.147059 | 0.147059 | 0.147059 | 0.147059 | 0 | 0.021244 | 0.257046 | 887 | 32 | 113 | 27.71875 | 0.804249 | 0.028185 | 0 | 0 | 0 | 0.08 | 0.283721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.04 | 0 | 0.04 | 0.24 | 0.12 | 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 |
7e25064cbef2ae141cd04ce9086cb43f954ff0bf | 661 | py | Python | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/test_stanford_nltk.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/test_stanford_nltk.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/113677/KaggleBillionWordImputation-master/scripts/test_stanford_nltk.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python
import sys, bz2
sys.path.insert(0, '/Users/timpalpant/Documents/Workspace/corenlp-python')
import nltk
from nltk.tree import Tree
from corenlp import StanfordCoreNLP
from remove_random_word import remove_random_word
print "Booting StanfordCoreNLP"
nlp = StanfordCoreNLP()
print "Initializing tra... | 30.045455 | 74 | 0.748865 | 90 | 661 | 5.4 | 0.5 | 0.074074 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013937 | 0.131619 | 661 | 22 | 75 | 30.045455 | 0.832753 | 0.030257 | 0 | 0 | 0 | 0 | 0.24649 | 0.118565 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.277778 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e264599a8cb2bf8b1fd89fbf7da642cc5d1526e | 7,549 | py | Python | parsifal/library/models.py | reeta1234/parsifal | dc2ea19916e7430634e2efd3e1bacc89ebbde4f1 | [
"MIT"
] | null | null | null | parsifal/library/models.py | reeta1234/parsifal | dc2ea19916e7430634e2efd3e1bacc89ebbde4f1 | [
"MIT"
] | 6 | 2020-06-06T00:35:23.000Z | 2022-03-12T00:15:47.000Z | parsifal/library/models.py | reeta1234/parsifal | dc2ea19916e7430634e2efd3e1bacc89ebbde4f1 | [
"MIT"
] | null | null | null | # coding: utf-8
from django.db import models
from django.contrib.auth.models import User
from django.utils.text import slugify
class SharedFolder(models.Model):
name = models.CharField(max_length=50)
slug = models.SlugField(max_length=255, null=True, blank=True)
users = models.ManyToManyField(User, throu... | 38.126263 | 113 | 0.672672 | 918 | 7,549 | 5.38671 | 0.198257 | 0.069161 | 0.089383 | 0.116886 | 0.549039 | 0.517695 | 0.501517 | 0.440849 | 0.440849 | 0.209505 | 0 | 0.02407 | 0.202014 | 7,549 | 197 | 114 | 38.319797 | 0.796813 | 0.013114 | 0 | 0.2625 | 0 | 0 | 0.080881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.01875 | 0.03125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7e28c7fed222b2d6fc00b0669d8343daf9331941 | 286 | py | Python | demo/onlyuserrole/demo/urls.py | tangdyy/onlyuserclient | d93b4e1077afda6b58bba002729f6bc89b988c7a | [
"MIT"
] | 2 | 2021-03-12T00:42:13.000Z | 2021-05-24T06:31:13.000Z | demo/onlyuserrole/demo/urls.py | tangdyy/onlyuserclient | d93b4e1077afda6b58bba002729f6bc89b988c7a | [
"MIT"
] | null | null | null | demo/onlyuserrole/demo/urls.py | tangdyy/onlyuserclient | d93b4e1077afda6b58bba002729f6bc89b988c7a | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.urls import path,include
from rest_framework import routers
from .views import RoleViewSet
router = routers.DefaultRouter()
router.register(r'roles', RoleViewSet, basename='role')
urlpatterns = [
url(r'^', include(router.urls)),
]
| 22 | 55 | 0.755245 | 37 | 286 | 5.810811 | 0.567568 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132867 | 286 | 12 | 56 | 23.833333 | 0.866935 | 0 | 0 | 0 | 0 | 0 | 0.034965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7e2c4a41a01548c788b1f56baad24c0343c82cf7 | 753 | py | Python | slender/tests/dictionary/test_contain.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | 1 | 2020-01-10T21:51:46.000Z | 2020-01-10T21:51:46.000Z | slender/tests/dictionary/test_contain.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | null | null | null | slender/tests/dictionary/test_contain.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase, skip
from expects import *
from slender import Dictionary
class TestContain(TestCase):
def setUp(self):
self.key = 'a'
def test_contain_if_dictionary_is_empty(self):
d1 = Dictionary[str, int]({})
expect(self.key in d1).to(be_false)
def test_contai... | 26.892857 | 62 | 0.636122 | 113 | 753 | 4.035398 | 0.336283 | 0.076754 | 0.122807 | 0.140351 | 0.625 | 0.484649 | 0.484649 | 0.282895 | 0.282895 | 0.22807 | 0 | 0.025862 | 0.229748 | 753 | 27 | 63 | 27.888889 | 0.760345 | 0 | 0 | 0.111111 | 0 | 0 | 0.009321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.166667 | 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 |
7e2cb45d24767d8a20fc314235185561540eae21 | 490 | py | Python | Python/0263_ugly_number.py | codingyen/CodeAlone | b16653957258ac09f74bb1a380f29dd93e055a44 | [
"MIT"
] | 2 | 2018-08-20T04:38:06.000Z | 2019-02-03T07:48:28.000Z | Python/0263_ugly_number.py | codingyen/CodeAlone | b16653957258ac09f74bb1a380f29dd93e055a44 | [
"MIT"
] | null | null | null | Python/0263_ugly_number.py | codingyen/CodeAlone | b16653957258ac09f74bb1a380f29dd93e055a44 | [
"MIT"
] | null | null | null | # Time: O(logn) = O(1)
# Space: O(1)
class Solution:
def isUgly(self, num):
if not num:
return False
while num % 2 == 0:
num = num / 2
while num % 3 == 0:
num = num / 3
while num % 5 == 0:
num = num / 5
return num == 1:
... | 17.5 | 27 | 0.418367 | 62 | 490 | 3.177419 | 0.435484 | 0.121827 | 0.106599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.459184 | 490 | 28 | 28 | 17.5 | 0.686792 | 0.163265 | 0 | 0 | 0 | 0 | 0.019802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e2fade8c98465a167e99e3c11e9a3c85426d6ee | 2,913 | py | Python | wiki-preparation/dump_topn.py | bertrandlalo/piaf-code | 2c879590fca92d85bb6a51e13c9603dd2f7c573f | [
"MIT"
] | 8 | 2020-02-07T15:28:15.000Z | 2021-03-25T22:58:21.000Z | wiki-preparation/dump_topn.py | etalab-ia/piaf-code | 86948a73b26498948e70ad92e4b9b0231eac81f7 | [
"MIT"
] | null | null | null | wiki-preparation/dump_topn.py | etalab-ia/piaf-code | 86948a73b26498948e70ad92e4b9b0231eac81f7 | [
"MIT"
] | null | null | null | import struct
import pickle
import sys
class DataInputStream:
"""
Reading from Java DataInputStream format.
"""
def __init__(self, stream):
self.stream = stream
def read_boolean(self):
return struct.unpack('?', self.stream.read(1))[0]
def read_byte(self):
return stru... | 29.13 | 100 | 0.61174 | 414 | 2,913 | 4.062802 | 0.241546 | 0.083234 | 0.099881 | 0.117717 | 0.387634 | 0.387634 | 0.288942 | 0.247919 | 0.230678 | 0.230678 | 0 | 0.015193 | 0.254377 | 2,913 | 99 | 101 | 29.424242 | 0.759208 | 0.014075 | 0 | 0 | 0 | 0 | 0.076681 | 0.040616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188406 | false | 0 | 0.043478 | 0.144928 | 0.405797 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7e357df698ecec1e1881a2b4bd0ec295d7103a9f | 1,102 | py | Python | users/forms.py | shyam999/Django-blog | 8f59987f362be0edca4e1542f820eb0d82c7bf2c | [
"MIT"
] | 13 | 2020-04-16T14:34:07.000Z | 2021-06-22T04:27:02.000Z | users/forms.py | alexhan-sys/Django-blog | 563d1975d85b2c288d6d58b5af8d54f9ab16541e | [
"MIT"
] | 4 | 2021-03-30T13:00:21.000Z | 2022-01-13T02:30:26.000Z | users/forms.py | alexhan-sys/Django-blog | 563d1975d85b2c288d6d58b5af8d54f9ab16541e | [
"MIT"
] | 5 | 2020-04-09T18:01:45.000Z | 2021-09-06T12:47:17.000Z | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import UserProfile
class UserRegistrationForm(UserCreationForm):
def __init__(self, *args, **kwargs):
super(UserRegistrationForm, self).__init__(*args, **kwargs)
... | 28.25641 | 120 | 0.627949 | 112 | 1,102 | 6.026786 | 0.357143 | 0.044444 | 0.062222 | 0.062222 | 0.171852 | 0.171852 | 0.171852 | 0.171852 | 0.171852 | 0.171852 | 0 | 0.006083 | 0.254083 | 1,102 | 39 | 121 | 28.25641 | 0.815085 | 0 | 0 | 0.16129 | 0 | 0 | 0.097008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.16129 | 0.129032 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e383cf10dafc058011f30ba8f5f288676b64fb4 | 777 | py | Python | app/routes/student/subjects.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | null | null | null | app/routes/student/subjects.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | 5 | 2021-10-30T06:04:47.000Z | 2021-11-14T21:09:00.000Z | app/routes/student/subjects.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | 1 | 2022-02-28T15:24:58.000Z | 2022-02-28T15:24:58.000Z | from app import app
from app.database import db
from app.database.models.student_subject_map import StudentSubjectMap
from app.database.models.subjects import Subjects
from fastapi import Depends, Response, status
from fastapi_jwt_auth import AuthJWT
@app.get("/students/{student_id}/subjects")
async def student_subje... | 31.08 | 86 | 0.728443 | 95 | 777 | 5.8 | 0.410526 | 0.050817 | 0.08167 | 0.076225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.177606 | 777 | 24 | 87 | 32.375 | 0.85759 | 0 | 0 | 0 | 0 | 0 | 0.082368 | 0.039897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7e38b53b5f4c4aae5647971334f2234e632edaa5 | 1,069 | py | Python | chapter100/mongodb_04.py | thiagola92/learning-databases-with-python | cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e | [
"MIT"
] | null | null | null | chapter100/mongodb_04.py | thiagola92/learning-databases-with-python | cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e | [
"MIT"
] | null | null | null | chapter100/mongodb_04.py | thiagola92/learning-databases-with-python | cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e | [
"MIT"
] | null | null | null | import time
from pymongo import MongoClient
from datetime import datetime
from threading import Thread, Lock
start = datetime.now()
client = MongoClient("mongodb://username:password@127.0.0.1")
database = client["database_name"]
collection = database["collection_name"]
threads_count = 0
lock = Lock()
package = []
... | 20.169811 | 72 | 0.656688 | 129 | 1,069 | 5.348837 | 0.465116 | 0.104348 | 0.037681 | 0.057971 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020286 | 0.21609 | 1,069 | 52 | 73 | 20.557692 | 0.803103 | 0 | 0 | 0.057143 | 0 | 0 | 0.094481 | 0.034612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.057143 | 0.114286 | 0 | 0.142857 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e3b10150f30d30b54781201a09f35f781054e7c | 2,963 | py | Python | contact_test.py | Njihia413/contact-list | bf555aa3657db1f90274dfe768b649007d725285 | [
"Unlicense"
] | null | null | null | contact_test.py | Njihia413/contact-list | bf555aa3657db1f90274dfe768b649007d725285 | [
"Unlicense"
] | null | null | null | contact_test.py | Njihia413/contact-list | bf555aa3657db1f90274dfe768b649007d725285 | [
"Unlicense"
] | null | null | null | import unittest #Importing the unittest module
from contact import Contact #Importing the contact class
#import pyperclip #Pyperclip will allow us to copy and paste items to our clipboard
class TestContact(unittest.TestCase):
def setUp(self):
self.new_contact = Contact("Lyn","Muthoni","0796654066","sonnie2... | 42.942029 | 89 | 0.710429 | 392 | 2,963 | 5.173469 | 0.214286 | 0.088757 | 0.089744 | 0.06213 | 0.422584 | 0.379684 | 0.297337 | 0.223866 | 0.223866 | 0.223866 | 0 | 0.042189 | 0.192035 | 2,963 | 68 | 90 | 43.573529 | 0.804929 | 0.238947 | 0 | 0.357143 | 0 | 0 | 0.113447 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.214286 | false | 0 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e3d308df34767b7c5b7bbfbef6d03d373ce1d9f | 319 | py | Python | back_end/celery_tasks/main.py | 22014471/malonghui_Django | c9c2a68882450f9327e141333f30fdd73e530c28 | [
"MIT"
] | 1 | 2021-01-31T16:57:35.000Z | 2021-01-31T16:57:35.000Z | back_end/celery_tasks/main.py | 22014471/malonghui_Django | c9c2a68882450f9327e141333f30fdd73e530c28 | [
"MIT"
] | null | null | null | back_end/celery_tasks/main.py | 22014471/malonghui_Django | c9c2a68882450f9327e141333f30fdd73e530c28 | [
"MIT"
] | null | null | null | from celery import Celery
import os
# 为celery设置django默认配置
if not os.getenv('DJANGO_SETTINGS_MODULE'):
os.environ['DJANGO_SETTINGS_MODULE'] = 'mlh.settings.dev'
# 创建对象,命名为meiduo,并指明broker
celery_app = Celery('mlh',broker='redis://127.0.0.1:6379/15')
# 自动注册任务
celery_app.autodiscover_tasks(['celery_tasks.sms',]) | 22.785714 | 61 | 0.758621 | 45 | 319 | 5.2 | 0.644444 | 0.102564 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041522 | 0.094044 | 319 | 14 | 62 | 22.785714 | 0.768166 | 0.159875 | 0 | 0 | 0 | 0 | 0.392453 | 0.260377 | 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 |
7e3f3d1673e07847a0ccc4fa36154b7d2891f18d | 676 | py | Python | tests/unittest/parser/test_basic_parser.py | alessandrome/pywiktionary | b9378ca1e2dfe704eaa8a044bd82519b12f81226 | [
"MIT"
] | 4 | 2019-08-08T21:15:01.000Z | 2021-01-14T01:32:18.000Z | tests/unittest/parser/test_basic_parser.py | alessandrome/pywiktionary | b9378ca1e2dfe704eaa8a044bd82519b12f81226 | [
"MIT"
] | 1 | 2021-09-02T17:24:12.000Z | 2021-09-02T17:24:12.000Z | tests/unittest/parser/test_basic_parser.py | alessandrome/pywiktionary | b9378ca1e2dfe704eaa8a044bd82519b12f81226 | [
"MIT"
] | 1 | 2020-03-19T12:57:45.000Z | 2020-03-19T12:57:45.000Z | import unittest
from pywiktionary.parsers import basic_parser
def get_pizza_html_extract():
with open('tests/file/html-responses/pizza-it.html', 'r', encoding='utf-8') as pizza_html_file:
pizza_html = pizza_html_file.read()
return pizza_html
class BasicParseTestCase(unittest.TestCase):
def test_... | 29.391304 | 99 | 0.739645 | 86 | 676 | 5.44186 | 0.465116 | 0.153846 | 0.102564 | 0.162393 | 0.235043 | 0.235043 | 0.235043 | 0.235043 | 0.235043 | 0.235043 | 0 | 0.001757 | 0.158284 | 676 | 22 | 100 | 30.727273 | 0.820738 | 0 | 0 | 0.133333 | 0 | 0 | 0.078402 | 0.057692 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.466667 | 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 |
7e46b7c1bdfe713325687e0706d7633667a0c0ae | 5,818 | py | Python | iktomi/forms/widgets.py | boltnev/iktomi | bc92006c026f9b42e56f1af5ced2fe577673a486 | [
"MIT"
] | 14 | 2015-02-15T05:24:22.000Z | 2020-03-19T10:07:28.000Z | iktomi/forms/widgets.py | boltnev/iktomi | bc92006c026f9b42e56f1af5ced2fe577673a486 | [
"MIT"
] | 10 | 2015-04-04T10:10:41.000Z | 2016-06-01T13:17:58.000Z | iktomi/forms/widgets.py | boltnev/iktomi | bc92006c026f9b42e56f1af5ced2fe577673a486 | [
"MIT"
] | 5 | 2015-02-20T11:18:58.000Z | 2016-10-18T15:30:13.000Z | # -*- coding: utf-8 -*-
from ..utils import weakproxy
from . import convs
class Widget(object):
# obsolete parameters from previous versions
_obsolete = frozenset(['multiple'])
#: Template to render widget
template = None
#: Value of HTML element's *class* attribute
classname = ''
#: de... | 26.688073 | 86 | 0.611894 | 645 | 5,818 | 5.404651 | 0.275969 | 0.046472 | 0.02008 | 0.027252 | 0.046472 | 0.046472 | 0.032702 | 0.032702 | 0.032702 | 0.032702 | 0 | 0.000483 | 0.288931 | 5,818 | 217 | 87 | 26.81106 | 0.842156 | 0.202991 | 0 | 0.125 | 0 | 0 | 0.078831 | 0.009743 | 0 | 0 | 0 | 0 | 0.008333 | 1 | 0.116667 | false | 0.016667 | 0.016667 | 0.05 | 0.616667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e48637038313d81e9c4efaa9dd4ea2b3a9e9145 | 391 | py | Python | yadil/image/face_model.py | neolaw84/yadil | 9f56a1beec5359e0233ae342f01263b29f752bc7 | [
"Apache-2.0"
] | null | null | null | yadil/image/face_model.py | neolaw84/yadil | 9f56a1beec5359e0233ae342f01263b29f752bc7 | [
"Apache-2.0"
] | null | null | null | yadil/image/face_model.py | neolaw84/yadil | 9f56a1beec5359e0233ae342f01263b29f752bc7 | [
"Apache-2.0"
] | null | null | null | # downloaded from https://raw.githubusercontent.com/TadasBaltrusaitis/OpenFace/master/lib/local/LandmarkDetector/model/pdms/In-the-wild_aligned_PDM_68.txt
import pickle
import pathlib
THIS_FILE_PATH = pathlib.Path(__file__)
MODEL_FILE_PATH = pathlib.Path.joinpath(THIS_FILE_PATH.parent, "face_model.bin")
with... | 35.545455 | 155 | 0.790281 | 57 | 391 | 5.122807 | 0.666667 | 0.109589 | 0.082192 | 0.130137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005698 | 0.102302 | 391 | 10 | 156 | 39.1 | 0.826211 | 0.388747 | 0 | 0 | 0 | 0 | 0.070485 | 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 |
7e550a8084b1674ea1aeeea565a6759f3741fb88 | 1,557 | py | Python | ask/qa/forms.py | kzn-bulat-s/abracadabra | 25d582a3d6fc6587772776479ef2f1d284fbe0e9 | [
"Unlicense"
] | null | null | null | ask/qa/forms.py | kzn-bulat-s/abracadabra | 25d582a3d6fc6587772776479ef2f1d284fbe0e9 | [
"Unlicense"
] | null | null | null | ask/qa/forms.py | kzn-bulat-s/abracadabra | 25d582a3d6fc6587772776479ef2f1d284fbe0e9 | [
"Unlicense"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from models import Question, Answer
class AskForm(forms.ModelForm):
class Meta:
model = Question
fields = ['title', 'text']
def save(self, commit=True):
question = super(AskForm, self).save(commit=False)
que... | 27.803571 | 67 | 0.594091 | 160 | 1,557 | 5.74375 | 0.34375 | 0.059848 | 0.08161 | 0.05876 | 0.11099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298651 | 1,557 | 56 | 68 | 27.803571 | 0.841575 | 0 | 0 | 0.136364 | 0 | 0 | 0.071245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.068182 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e56afeffeb1143dfa4e1a4ffb0c6566c1c6fcad | 1,762 | py | Python | python/se3last-w3c/conftest.py | saucelabs-training/platform-config-tests | 11dfab8f9be2fe118ed0b0fa4adebb75a5f1a64c | [
"MIT"
] | 1 | 2021-11-17T22:29:42.000Z | 2021-11-17T22:29:42.000Z | python/se3last-w3c/conftest.py | saucelabs-training/platform-config-tests | 11dfab8f9be2fe118ed0b0fa4adebb75a5f1a64c | [
"MIT"
] | null | null | null | python/se3last-w3c/conftest.py | saucelabs-training/platform-config-tests | 11dfab8f9be2fe118ed0b0fa4adebb75a5f1a64c | [
"MIT"
] | 1 | 2021-11-17T22:29:35.000Z | 2021-11-17T22:29:35.000Z | import os
import sys
import time
import pytest
from appium import webdriver as appiumdriver
from selenium import webdriver
class Helpers:
@staticmethod
def validate_google(driver):
driver.get("http://google.com")
time.sleep(1)
result = 'passed' if driver.title == 'Google' else 'faile... | 33.245283 | 106 | 0.682179 | 218 | 1,762 | 5.316514 | 0.316514 | 0.046592 | 0.072476 | 0.08283 | 0.6195 | 0.6195 | 0.553926 | 0.553926 | 0.553926 | 0.553926 | 0 | 0.005544 | 0.181044 | 1,762 | 52 | 107 | 33.884615 | 0.797644 | 0 | 0 | 0.421053 | 0 | 0 | 0.214529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.052632 | 0.157895 | 0.026316 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e61331f1d48012031893d41bd0fba4b33926051 | 804 | py | Python | sponsors/migrations/0038_auto_20210827_1223.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 911 | 2015-01-03T22:16:06.000Z | 2022-03-31T23:56:22.000Z | sponsors/migrations/0038_auto_20210827_1223.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 1,342 | 2015-01-02T16:14:45.000Z | 2022-03-28T08:01:20.000Z | sponsors/migrations/0038_auto_20210827_1223.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 551 | 2015-01-04T02:17:31.000Z | 2022-03-23T11:59:25.000Z | # Generated by Django 2.0.13 on 2021-08-27 12:23
from django.db import migrations
def populate_sponsorship_package_fk(apps, schema_editor):
Sponsorship = apps.get_model('sponsors.Sponsorship')
SponsorshipPackage = apps.get_model('sponsors.SponsorshipPackage')
for sponsorship in Sponsorship.objects.all()... | 28.714286 | 88 | 0.70398 | 81 | 804 | 6.839506 | 0.580247 | 0.129964 | 0.093863 | 0.101083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031348 | 0.206468 | 804 | 27 | 89 | 29.777778 | 0.836991 | 0.057214 | 0 | 0 | 1 | 0 | 0.104497 | 0.06746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 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 |
7e67680b7ff285c7a73a411e68537d03ddc32e2e | 1,190 | py | Python | home/board/migrations/0004_add_closed_at.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | home/board/migrations/0004_add_closed_at.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | 223 | 2020-02-21T06:16:56.000Z | 2022-03-01T22:24:19.000Z | home/board/migrations/0004_add_closed_at.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-25 02:53
from django.db import migrations, models
def set_edited_at(apps, schema_editor):
"""修改话题的时间
将关闭话题的修改时间设置成创建时间
将其关闭时间设置成其修改时间
将置顶话题的修改时间设置成创建时间
"""
Topic = apps.get_model("board", "Topic")
for topic in Topic.objects.all():
if not top... | 24.791667 | 83 | 0.610924 | 135 | 1,190 | 5.162963 | 0.488889 | 0.091822 | 0.063128 | 0.077475 | 0.169297 | 0.169297 | 0.091822 | 0 | 0 | 0 | 0 | 0.022196 | 0.280672 | 1,190 | 47 | 84 | 25.319149 | 0.792056 | 0.094958 | 0 | 0.266667 | 1 | 0 | 0.064824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.033333 | 0.033333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e6ca5f5a32c06e55254d834d4ec7b22d2307f05 | 8,468 | py | Python | src/lck/django/common/forms.py | ar4s/kitdjango | 1da443296ac780ae002b66452df2251642374a13 | [
"MIT"
] | 10 | 2015-06-17T08:22:10.000Z | 2020-12-10T13:48:37.000Z | src/lck/django/common/forms.py | ar4s/kitdjango | 1da443296ac780ae002b66452df2251642374a13 | [
"MIT"
] | null | null | null | src/lck/django/common/forms.py | ar4s/kitdjango | 1da443296ac780ae002b66452df2251642374a13 | [
"MIT"
] | 8 | 2015-03-23T10:59:22.000Z | 2022-01-17T09:49:26.000Z | """
Albeit useful, this module is still somewhat a mess in a really early state of development. Beware, there be dragons.
"""
import datetime
import os
import re
from subprocess import check_call, CalledProcessError
from tempfile import NamedTemporaryFile
try:
from cStringIO import StringIO
except ImportError:
... | 35.430962 | 117 | 0.590694 | 936 | 8,468 | 5.174145 | 0.25 | 0.024159 | 0.013628 | 0.014041 | 0.246541 | 0.243444 | 0.167871 | 0.110675 | 0.110675 | 0.073095 | 0 | 0.002053 | 0.309636 | 8,468 | 238 | 118 | 35.579832 | 0.826377 | 0.023618 | 0 | 0.245614 | 0 | 0 | 0.043866 | 0.019798 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005848 | 0.099415 | null | null | 0.011696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e706c63ed781d4a98c0e2432ffb583ee2d4d55c | 1,795 | py | Python | typarser/_base_optarg.py | ermishechkin/typarser | 00d965f87718c837a2c246f0b5c61401e8a6e3c8 | [
"MIT"
] | null | null | null | typarser/_base_optarg.py | ermishechkin/typarser | 00d965f87718c837a2c246f0b5c61401e8a6e3c8 | [
"MIT"
] | null | null | null | typarser/_base_optarg.py | ermishechkin/typarser | 00d965f87718c837a2c246f0b5c61401e8a6e3c8 | [
"MIT"
] | null | null | null | from __future__ import annotations
import typing
from typing import Callable, Generic, Iterable, Literal, Optional, Tuple, Union
from ._base import RESULT, TYPE, BaseComponent
from ._internal_namespace import set_value
if typing.TYPE_CHECKING:
from ._base import Namespace
from .action import Action
NARGS... | 29.42623 | 79 | 0.622284 | 195 | 1,795 | 5.548718 | 0.230769 | 0.060998 | 0.025878 | 0.053604 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259053 | 1,795 | 60 | 80 | 29.916667 | 0.813534 | 0.037326 | 0 | 0.125 | 0 | 0 | 0.001739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.145833 | 0.125 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7e72e12b97f96d60c1b664e0376ea773f0bdcd6f | 2,918 | py | Python | backend/accounts/serializers.py | hvitis/geodjango-rest-vue-boilerplate | bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd | [
"MIT"
] | 5 | 2020-11-23T11:31:40.000Z | 2022-03-11T01:24:46.000Z | backend/accounts/serializers.py | hvitis/geodjango-rest-vue-boilerplate | bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd | [
"MIT"
] | null | null | null | backend/accounts/serializers.py | hvitis/geodjango-rest-vue-boilerplate | bd825fdfc81430ecfac3fe7d3c06a6e1145de1cd | [
"MIT"
] | null | null | null | from rest_framework_gis.serializers import GeoFeatureModelSerializer, GeometrySerializerMethodField
from django.contrib.gis.geos import Point
from accounts.models import UserProfile
import datetime
from rest_framework_gis.pagination import GeoJsonPagination
from django.contrib.auth import get_user_model
from django.ut... | 30.715789 | 99 | 0.664839 | 312 | 2,918 | 6.064103 | 0.339744 | 0.02537 | 0.053911 | 0.084567 | 0.252643 | 0.206131 | 0.139535 | 0.139535 | 0.139535 | 0.139535 | 0 | 0.003648 | 0.248458 | 2,918 | 94 | 100 | 31.042553 | 0.859097 | 0.007197 | 0 | 0.194444 | 0 | 0 | 0.113644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0.125 | 0.152778 | 0.027778 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e7440fb1d1c7e95290bfc94cc2ad2a4debb8384 | 734 | py | Python | main.py | henryfox/encrypted-chat | c69ba786892dd870cb3fddd7da6ea77eadeb4a7e | [
"MIT"
] | null | null | null | main.py | henryfox/encrypted-chat | c69ba786892dd870cb3fddd7da6ea77eadeb4a7e | [
"MIT"
] | null | null | null | main.py | henryfox/encrypted-chat | c69ba786892dd870cb3fddd7da6ea77eadeb4a7e | [
"MIT"
] | null | null | null | import webapp2
import os
import jinja2
from google.appengine.ext import db
template_dir = os.path.join(os.path.dirname(__file__), "templates")
jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir), autoescape = True)
class Handler(webapp2.RequestHandler):
def write(self, *a, **kw):
... | 27.185185 | 98 | 0.690736 | 93 | 734 | 5.333333 | 0.483871 | 0.044355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009852 | 0.1703 | 734 | 26 | 99 | 28.230769 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.029973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7e74c6f460e27189aecb37d569cafb98fe35f2d1 | 5,782 | py | Python | ipyannotator/datasets/download.py | EnriqueMoran/ipyannotator | 5517f8ded24e9e1347d0d72c73d620778f7b3069 | [
"Apache-2.0"
] | 19 | 2020-10-12T19:52:10.000Z | 2022-02-07T18:23:26.000Z | ipyannotator/datasets/download.py | EnriqueMoran/ipyannotator | 5517f8ded24e9e1347d0d72c73d620778f7b3069 | [
"Apache-2.0"
] | 6 | 2021-08-02T09:36:32.000Z | 2022-01-05T15:29:30.000Z | ipyannotator/datasets/download.py | EnriqueMoran/ipyannotator | 5517f8ded24e9e1347d0d72c73d620778f7b3069 | [
"Apache-2.0"
] | 1 | 2020-12-01T22:42:01.000Z | 2020-12-01T22:42:01.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01a_datasets_download.ipynb (unless otherwise specified).
__all__ = ['get_cifar10', 'get_oxford_102_flowers', 'get_cub_200_2011']
# Internal Cell
import glob
import json
from pathlib import Path
import os
import subprocess
import tarfile
import urllib
import zlib
# In... | 35.042424 | 139 | 0.654272 | 851 | 5,782 | 4.251469 | 0.172738 | 0.074627 | 0.019901 | 0.041459 | 0.616086 | 0.583748 | 0.583748 | 0.583748 | 0.576009 | 0.522112 | 0 | 0.015622 | 0.21394 | 5,782 | 165 | 140 | 35.042424 | 0.780418 | 0.089761 | 0 | 0.40367 | 1 | 0.009174 | 0.205854 | 0.037306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.073395 | 0 | 0.146789 | 0.12844 | 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 |
7e7c1099ca5e6f0cb535351f8035469a042e59e5 | 10,296 | py | Python | draw_classes.py | Fs-agadir/StageDetect | af2841b41f80151e1f3092adbc266eb1d2b8db37 | [
"MIT"
] | null | null | null | draw_classes.py | Fs-agadir/StageDetect | af2841b41f80151e1f3092adbc266eb1d2b8db37 | [
"MIT"
] | null | null | null | draw_classes.py | Fs-agadir/StageDetect | af2841b41f80151e1f3092adbc266eb1d2b8db37 | [
"MIT"
] | null | null | null | # Copyright (c) 2021, Fs-Agadir
# All rights reserved.
#from wx import App, ScreenDC #to get monitor resolution
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
import os, cv2
class Drawing:
def __init__(self):
pass
'''----drawing results tools----'''
# '... | 38.133333 | 163 | 0.54089 | 1,301 | 10,296 | 4.191391 | 0.239047 | 0.030259 | 0.012103 | 0.005502 | 0.265359 | 0.211443 | 0.188153 | 0.17495 | 0.17495 | 0.161379 | 0 | 0.041086 | 0.331002 | 10,296 | 270 | 164 | 38.133333 | 0.750581 | 0.122572 | 0 | 0.214286 | 0 | 0 | 0.0263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005952 | 0.02381 | null | null | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e7c81aac02ad87573439958e43598f569160606 | 7,325 | py | Python | batch_gnome/batch_gnome/TAP/TAP_ext/test_TAP_ext.py | dylanrighi/GnomeTools | 08ad6810194141ac89a27c95fa9b9499376000ae | [
"Unlicense"
] | 2 | 2017-02-15T20:45:42.000Z | 2020-10-09T16:00:00.000Z | batch_gnome/batch_gnome/TAP/TAP_ext/test_TAP_ext.py | dylanrighi/GnomeTools | 08ad6810194141ac89a27c95fa9b9499376000ae | [
"Unlicense"
] | 10 | 2015-06-25T23:42:11.000Z | 2021-06-22T16:19:19.000Z | batch_gnome/batch_gnome/TAP/TAP_ext/test_TAP_ext.py | dylanrighi/GnomeTools | 08ad6810194141ac89a27c95fa9b9499376000ae | [
"Unlicense"
] | 15 | 2016-01-11T20:49:10.000Z | 2020-10-15T18:02:20.000Z | #!/usr/bin/env python2.3
"""
A simple test routine that tests at least some of the TAP_ext package
"""
import unittest
from Numeric import *
class CalcPolygonsTestCase(unittest.TestCase):
def testCalcPolygons(self):
pass
class check_receptorsTestCase(unittest.TestCase):
def test_check_recepto... | 26.348921 | 107 | 0.622526 | 1,226 | 7,325 | 3.619086 | 0.220228 | 0.016227 | 0.011044 | 0.014875 | 0.218165 | 0.152355 | 0.104124 | 0.054091 | 0.014875 | 0.014875 | 0 | 0.045719 | 0.271399 | 7,325 | 277 | 108 | 26.444043 | 0.785647 | 0.112355 | 0 | 0.100917 | 0 | 0 | 0.054016 | 0.005871 | 0 | 0 | 0 | 0 | 0.055046 | 0 | null | null | 0.009174 | 0.055046 | null | null | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e7dd5c8d80c1193d34c16e490af85436be7f87e | 1,703 | py | Python | tests.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | tests.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | tests.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | import sys
import numpy as np
from sklearn.externals import joblib
sys.path.append("common")
from train_classifier import *
staring_verb_extractor = StartingVerbExtractor()
verb_count_extractor = VerbCountExtractor()
starting_modal_extractor = StartingModalExtractor()
noun_count_extractor = NounCountExtractor()
def... | 24.681159 | 79 | 0.72754 | 239 | 1,703 | 4.824268 | 0.276151 | 0.048569 | 0.047702 | 0.034692 | 0.244579 | 0.152645 | 0.152645 | 0.085863 | 0.057242 | 0 | 0 | 0.010519 | 0.162654 | 1,703 | 68 | 80 | 25.044118 | 0.798036 | 0.178509 | 0 | 0 | 0 | 0 | 0.062861 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.129032 | 0.032258 | 0.419355 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e7e872c4d53c683d43e32b7bedc06b65ba0d11b | 3,734 | py | Python | sendim/tests/graph.py | ZuluPro/snafu | dbd79da4617db315ba7e76a0af6805cc3b1cbae2 | [
"BSD-3-Clause"
] | 1 | 2017-12-13T20:28:32.000Z | 2017-12-13T20:28:32.000Z | sendim/tests/graph.py | ZuluPro/snafu | dbd79da4617db315ba7e76a0af6805cc3b1cbae2 | [
"BSD-3-Clause"
] | null | null | null | sendim/tests/graph.py | ZuluPro/snafu | dbd79da4617db315ba7e76a0af6805cc3b1cbae2 | [
"BSD-3-Clause"
] | null | null | null | """
"""
from django.utils import unittest
from django.core import management
from referentiel.models import Supervisor
from sendim.tests.defs import create_event, create_alert, internet_is_on
class Graph_TestCase(unittest.TestCase):
"""
Test communicaton with metrology.
"""
def setUp(self):
m... | 46.675 | 129 | 0.602839 | 446 | 3,734 | 4.890135 | 0.255605 | 0.055021 | 0.060523 | 0.043558 | 0.699679 | 0.635488 | 0.573132 | 0.482348 | 0.482348 | 0.414489 | 0 | 0.011291 | 0.288431 | 3,734 | 79 | 130 | 47.265823 | 0.80956 | 0.128281 | 0 | 0.3 | 0 | 0.1 | 0.250089 | 0.007849 | 0 | 0 | 0 | 0 | 0.175 | 0 | null | null | 0.025 | 0.1 | 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 |
7e82cf4b8fa8c9cf39f0aaa01ba1006d96672fc2 | 3,760 | py | Python | engine/logic/Transform.py | wkta/Python-Bataille-Navale | b6f725519cf1cf559e60ec766aa4f059463b1493 | [
"MIT"
] | null | null | null | engine/logic/Transform.py | wkta/Python-Bataille-Navale | b6f725519cf1cf559e60ec766aa4f059463b1493 | [
"MIT"
] | null | null | null | engine/logic/Transform.py | wkta/Python-Bataille-Navale | b6f725519cf1cf559e60ec766aa4f059463b1493 | [
"MIT"
] | 1 | 2019-12-03T15:42:38.000Z | 2019-12-03T15:42:38.000Z | # Copyright © 2019 CAILLAUD Jean-Baptiste.
from copy import copy
from engine.logic.Math import Mat3x3, Vector2, IDENTITY_MATRIX, ZERO_VECTOR, UNIT_VECTOR
class Transform:
"""
Simple transform.
Used to give information about the objects in the scene.
Attributes:
parent Parent transform o... | 39.578947 | 121 | 0.655585 | 472 | 3,760 | 5.118644 | 0.197034 | 0.06457 | 0.055877 | 0.037252 | 0.150662 | 0.129967 | 0.129967 | 0.055464 | 0.055464 | 0.055464 | 0 | 0.005124 | 0.273404 | 3,760 | 94 | 122 | 40 | 0.878843 | 0.403191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e852564331f423fb21ea2215be78aaea0deff4c | 507 | py | Python | my_lambdata/iqr_oop.py | karlmanalo/lambdata-karlmanalo | e6058fd1b4a5eb64d0afaebdfa14b902fedf931e | [
"MIT"
] | null | null | null | my_lambdata/iqr_oop.py | karlmanalo/lambdata-karlmanalo | e6058fd1b4a5eb64d0afaebdfa14b902fedf931e | [
"MIT"
] | null | null | null | my_lambdata/iqr_oop.py | karlmanalo/lambdata-karlmanalo | e6058fd1b4a5eb64d0afaebdfa14b902fedf931e | [
"MIT"
] | 1 | 2020-05-06T21:26:50.000Z | 2020-05-06T21:26:50.000Z | # my_lambdata\iqr_oop.py
# IQR function written in terms of OOP
# Must feed in list of numbers
import numpy
import pandas
class Numbers():
def __init__(self):
pass
def iqr(self, X):
q1 = numpy.percentile(X, 25, interpolation='midpoint')
q3 = numpy.percentile(X, 75, interpolation=... | 22.043478 | 70 | 0.623274 | 73 | 507 | 4.136986 | 0.657534 | 0.099338 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.25641 | 507 | 23 | 71 | 22.043478 | 0.766578 | 0.17357 | 0 | 0 | 0 | 0 | 0.149038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7e85b0b404fa718713288ae4337dab0afce1d4af | 2,760 | py | Python | app/vendors/migrations/0030_auto_20180305_2301.py | snakrani/discovery | 99690f186a194cabef6a5d1ad18fca715be1e187 | [
"CC0-1.0"
] | null | null | null | app/vendors/migrations/0030_auto_20180305_2301.py | snakrani/discovery | 99690f186a194cabef6a5d1ad18fca715be1e187 | [
"CC0-1.0"
] | null | null | null | app/vendors/migrations/0030_auto_20180305_2301.py | snakrani/discovery | 99690f186a194cabef6a5d1ad18fca715be1e187 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-05 23:01
from django.db import migrations, models
import django.db.models.deletion
def migrate_membership(apps, schema_editor):
PoolPIID = apps.get_model('vendors', 'PoolPIID')
PoolMembership = apps.get_model('vendors', 'PoolMembership')
PoolMembershipZone = apps.ge... | 34.936709 | 156 | 0.593841 | 257 | 2,760 | 6.233463 | 0.326848 | 0.029963 | 0.043695 | 0.068664 | 0.337079 | 0.337079 | 0.258427 | 0.249688 | 0.210986 | 0.210986 | 0 | 0.025368 | 0.28587 | 2,760 | 78 | 157 | 35.384615 | 0.787418 | 0.016304 | 0 | 0.348485 | 1 | 0 | 0.13638 | 0.033174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.030303 | 0 | 0.090909 | 0 | 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 |
7e892bbc2f9093e6ea3899715b53105db05324f3 | 402 | py | Python | community/migrations/0013_auto_20191108_0918.py | akarakoc/Communityverse | 73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e | [
"MIT"
] | null | null | null | community/migrations/0013_auto_20191108_0918.py | akarakoc/Communityverse | 73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e | [
"MIT"
] | 22 | 2019-11-09T23:23:11.000Z | 2019-12-23T09:38:29.000Z | community/migrations/0013_auto_20191108_0918.py | akarakoc/CommunityVerse | 73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-11-08 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('community', '0012_auto_20191107_1649'),
]
operations = [
migrations.AlterField(
model_name='communities',
name='comm... | 21.157895 | 53 | 0.614428 | 41 | 402 | 5.926829 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106529 | 0.276119 | 402 | 18 | 54 | 22.333333 | 0.728522 | 0.11194 | 0 | 0 | 1 | 0 | 0.15493 | 0.064789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e8a45c72fe260a3444e4ee7e5fcd4dbca175324 | 935 | py | Python | scripts/count_git_changes.py | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 2,753 | 2015-01-02T11:34:13.000Z | 2022-03-25T07:04:27.000Z | scripts/count_git_changes.py | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 2,404 | 2015-01-02T19:31:41.000Z | 2022-03-09T10:58:22.000Z | scripts/count_git_changes.py | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 1,156 | 2015-01-03T01:57:21.000Z | 2022-03-26T01:06:28.000Z | import os
import sys
insertions=0
deletions=0
files=0
FROMVER=""
if len(sys.argv)>1:
FROMVER=sys.argv[1]
TOVER=""
if len(sys.argv)>2:
TOVER=sys.argv[2]
TMPNAME=os.tmpnam()
VER=""
if len(FROMVER)>0:
VER=FROMVER+'..'
if len(TOVER)>0:
if len(VER)==0:
VER='..'
VER=VER+TOVER
os.system('git log --oneline --shortstat... | 20.777778 | 65 | 0.628877 | 147 | 935 | 4 | 0.292517 | 0.042517 | 0.05102 | 0.071429 | 0.171769 | 0.081633 | 0.081633 | 0.081633 | 0 | 0 | 0 | 0.025 | 0.144385 | 935 | 44 | 66 | 21.25 | 0.71 | 0 | 0 | 0.076923 | 0 | 0 | 0.146524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | 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 |
7e97e798b9acfb3c7359d3f9ef7c17e46c59fef5 | 398 | py | Python | storage/models/production_data.py | aagarwal1999/194-web-app | 362efd32d964d780f213b4e5a97fd14b080329ba | [
"Apache-2.0"
] | null | null | null | storage/models/production_data.py | aagarwal1999/194-web-app | 362efd32d964d780f213b4e5a97fd14b080329ba | [
"Apache-2.0"
] | null | null | null | storage/models/production_data.py | aagarwal1999/194-web-app | 362efd32d964d780f213b4e5a97fd14b080329ba | [
"Apache-2.0"
] | null | null | null | from storage.shared import db
import datetime
import uuid
class ProductionData(db.Model):
id = db.Column(db.String(100), primary_key=True, default=lambda: str(uuid.uuid4()))
data = db.Column(db.Text, unique=False, nullable=False)
time = db.Column(db.DateTime, default=datetime.datetime.now)
one_line_su... | 24.875 | 87 | 0.731156 | 59 | 398 | 4.847458 | 0.542373 | 0.13986 | 0.174825 | 0.146853 | 0.146853 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.143216 | 398 | 15 | 88 | 26.533333 | 0.826979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7e99f08d361c9ea4cb38904ff75221d141f1e187 | 1,838 | py | Python | Line_Bot_Server/LineUsers.py | STU-Idichi-Syoya/Linebot_ | 54941ec0baee40ac21eeed77a0e1d0da02631aea | [
"MIT"
] | null | null | null | Line_Bot_Server/LineUsers.py | STU-Idichi-Syoya/Linebot_ | 54941ec0baee40ac21eeed77a0e1d0da02631aea | [
"MIT"
] | null | null | null | Line_Bot_Server/LineUsers.py | STU-Idichi-Syoya/Linebot_ | 54941ec0baee40ac21eeed77a0e1d0da02631aea | [
"MIT"
] | null | null | null | from Line_Bot_Server.LineBot import line_bot_api
##### STATE #####
class LineUser:
def __init__(self,reply=None,userId=None):
'''line のユーザ情報クラス ここではreplayからUserIdを取得することも
できるし、そのままuserIdを入力できる。
そこからLine APIを通して、名前と ひとこと(status message)を取得する。
'''
#reply か userIdどちら... | 28.276923 | 63 | 0.605005 | 210 | 1,838 | 5.066667 | 0.328571 | 0.065789 | 0.037594 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291077 | 1,838 | 64 | 64 | 28.71875 | 0.816577 | 0.106094 | 0 | 0.069767 | 0 | 0 | 0.044626 | 0.044626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.023256 | 0.069767 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e99f6ca30156fb9b0a9d2f84235cc68fb4723a3 | 841 | py | Python | wx/stc/mixins/DrawColumnEndMixin.py | dejbug/dejan7 | 0e3d9f4068cd7b39a3a992f4b21fa5042c88227b | [
"MIT"
] | null | null | null | wx/stc/mixins/DrawColumnEndMixin.py | dejbug/dejan7 | 0e3d9f4068cd7b39a3a992f4b21fa5042c88227b | [
"MIT"
] | null | null | null | wx/stc/mixins/DrawColumnEndMixin.py | dejbug/dejan7 | 0e3d9f4068cd7b39a3a992f4b21fa5042c88227b | [
"MIT"
] | null | null | null | import wx
import wx.stc
from dejan7.async.DelayedCall import *
from dejan7.wx.stc import GetRowWidths
class DrawColumnEndMixin(object):
def __init__(self, parent, color="GREY", delay=0.3, margins=[]):
self.sci = parent
self.pen = wx.Pen(color)
self.margins = margins
self.DelayedPaint = Delayed... | 22.72973 | 71 | 0.668252 | 121 | 841 | 4.595041 | 0.371901 | 0.06295 | 0.021583 | 0.035971 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.203329 | 841 | 36 | 72 | 23.361111 | 0.81791 | 0 | 0 | 0.076923 | 0 | 0 | 0.004969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
7e9db911f3ba28aac3dc562f5cd602f52c2d9c10 | 1,231 | py | Python | apps/common/lookups.py | gis4dis/poster_new | cee983bfcfc90f581b18712d558bc9d8a83a400a | [
"BSD-3-Clause"
] | 4 | 2017-10-17T10:52:27.000Z | 2020-08-30T10:13:46.000Z | apps/common/lookups.py | gis4dis/poster_new | cee983bfcfc90f581b18712d558bc9d8a83a400a | [
"BSD-3-Clause"
] | 138 | 2017-10-13T09:09:02.000Z | 2020-06-05T18:55:33.000Z | apps/common/lookups.py | gis4dis/poster_new | cee983bfcfc90f581b18712d558bc9d8a83a400a | [
"BSD-3-Clause"
] | 2 | 2018-01-21T19:44:51.000Z | 2018-02-15T11:27:39.000Z | from django.contrib.postgres.fields import DateTimeRangeField
from django.db.models import Lookup
from psycopg2.extras import NumericRange
@DateTimeRangeField.register_lookup
class Duration(Lookup):
lookup_name = 'duration'
def as_sql(self, compiler, connection):
lhs, lhs_params = self.process_lhs(co... | 38.46875 | 115 | 0.665313 | 151 | 1,231 | 5.271523 | 0.291391 | 0.113065 | 0.085427 | 0.090452 | 0.532663 | 0.477387 | 0.432161 | 0.356784 | 0.356784 | 0.356784 | 0 | 0.005133 | 0.208773 | 1,231 | 31 | 116 | 39.709677 | 0.812115 | 0 | 0 | 0.434783 | 0 | 0.043478 | 0.16247 | 0.017872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ea13c2421a842ac77b2ae86ea0d9775b78d7084 | 955 | py | Python | test/test_utils.py | undecidedzogvisrainbowvitalispotent-360/i2plib | 6edf51cd5d21cc745aa7e23cb98c582144884fa8 | [
"MIT"
] | 25 | 2018-09-05T16:44:05.000Z | 2022-02-16T18:32:32.000Z | test/test_utils.py | undecidedzogvisvitalispotent8stars360/i2plib | 6edf51cd5d21cc745aa7e23cb98c582144884fa8 | [
"MIT"
] | 2 | 2018-10-24T19:57:16.000Z | 2019-01-26T14:30:40.000Z | test/test_utils.py | undecidedzogvisvitalispotent8stars360/i2plib | 6edf51cd5d21cc745aa7e23cb98c582144884fa8 | [
"MIT"
] | 5 | 2018-10-24T18:01:46.000Z | 2020-12-15T18:16:14.000Z | import unittest
import os
import i2plib.sam
import i2plib.utils
class TestUtils(unittest.TestCase):
def test_session_id_generation(self):
sid = i2plib.utils.generate_session_id()
self.assertEqual(len(sid), 13)
sid = i2plib.utils.generate_session_id(8)
self.assertEqual(len(sid), 15... | 28.939394 | 77 | 0.66178 | 132 | 955 | 4.568182 | 0.333333 | 0.127695 | 0.064677 | 0.029851 | 0.369818 | 0.238806 | 0.135987 | 0.135987 | 0.135987 | 0 | 0 | 0.060565 | 0.22199 | 955 | 32 | 78 | 29.84375 | 0.751009 | 0 | 0 | 0.083333 | 1 | 0 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.125 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ea185e9e7bf9f8a9049b8e9ecc9f23bee356df7 | 2,156 | py | Python | arm64/conditional.py | c01db33f/reil | 3deec3a3bb69aae51cc0d728d5f83156cfba2ab6 | [
"Apache-2.0"
] | 27 | 2015-03-16T13:28:00.000Z | 2021-08-02T02:58:23.000Z | arm64/conditional.py | c01db33f/pyreil | 3deec3a3bb69aae51cc0d728d5f83156cfba2ab6 | [
"Apache-2.0"
] | 2 | 2015-02-23T12:18:53.000Z | 2015-03-15T20:31:16.000Z | arm64/conditional.py | c01db33f/reil | 3deec3a3bb69aae51cc0d728d5f83156cfba2ab6 | [
"Apache-2.0"
] | 9 | 2016-03-22T18:59:12.000Z | 2022-02-05T08:18:28.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 Mark Brand - c01db33f (at) gmail.com
#
# 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.... | 25.666667 | 77 | 0.581169 | 330 | 2,156 | 3.760606 | 0.493939 | 0.067687 | 0.048348 | 0.052377 | 0.15552 | 0.15552 | 0.119259 | 0.119259 | 0.119259 | 0.099919 | 0 | 0.075472 | 0.287106 | 2,156 | 83 | 78 | 25.975904 | 0.731945 | 0.430427 | 0 | 0.16 | 0 | 0 | 0.009129 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.02 | false | 0 | 0.04 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7ea4f26b832f9d8e48b3a6b69e37f65806d63b1b | 1,367 | py | Python | ImGen.py | ibaranov-cp/ImGen_Circuit_Maker | 50c328ec0f62a77908dc3179de8fbf123f38caec | [
"BSD-3-Clause"
] | null | null | null | ImGen.py | ibaranov-cp/ImGen_Circuit_Maker | 50c328ec0f62a77908dc3179de8fbf123f38caec | [
"BSD-3-Clause"
] | null | null | null | ImGen.py | ibaranov-cp/ImGen_Circuit_Maker | 50c328ec0f62a77908dc3179de8fbf123f38caec | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#BSD 3-Clause License
#Copyright (c) 2017, Ilia Baranov
#############################################
# CHANGE THESE VARS AS NEEDED
size = 10 #size of squares in mils
invert = False #Color invert the image
image_name = "test.png" #name of the image, can be BMP, PNG or JPG
#########... | 23.982456 | 74 | 0.504755 | 219 | 1,367 | 3.109589 | 0.360731 | 0.023495 | 0.088106 | 0.096916 | 0.193833 | 0.161527 | 0.108664 | 0.089574 | 0.048458 | 0.048458 | 0 | 0.030556 | 0.209949 | 1,367 | 57 | 75 | 23.982456 | 0.6 | 0.159473 | 0 | 0.25641 | 0 | 0 | 0.107538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ea8f23726760ea2f3958ff9164e22aa48175835 | 2,031 | py | Python | i2c/motion_sensor.py | Matrix-Robotics/MatrixControl | 0e596be195b2324154bc6ec220172863e311ccb7 | [
"MIT"
] | 1 | 2021-07-15T07:33:43.000Z | 2021-07-15T07:33:43.000Z | i2c/motion_sensor.py | Matrix-Robotics/MatrixControl | 0e596be195b2324154bc6ec220172863e311ccb7 | [
"MIT"
] | 1 | 2021-08-12T09:08:10.000Z | 2021-08-12T09:08:10.000Z | i2c/motion_sensor.py | Matrix-Robotics/MatrixControl | 0e596be195b2324154bc6ec220172863e311ccb7 | [
"MIT"
] | null | null | null | class MotionSensor:
"""Get 9Dof data by using MotionSensor.
See [MatrixMotionSensor](https://matrix-robotics.github.io/MatrixMotionSensor/) for more details.
Parameters
----------
i2c_port : int
i2c_port is corresponding with I2C1, I2C2 ... sockets on board.
_dev : class
Matrix... | 29.867647 | 101 | 0.589857 | 236 | 2,031 | 4.733051 | 0.300847 | 0.137869 | 0.059087 | 0.076097 | 0.539839 | 0.539839 | 0.539839 | 0.539839 | 0.539839 | 0.539839 | 0 | 0.021666 | 0.272772 | 2,031 | 67 | 102 | 30.313433 | 0.734597 | 0.240768 | 0 | 0.441176 | 0 | 0 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7eab2e9233141229915ea54e3a9ad3980ec8ae2f | 1,418 | py | Python | nlt/debug/dataset.py | isabella232/neural-light-transport | 04acc39713be464e74e0393315c71416f67a3ef3 | [
"Apache-2.0"
] | 176 | 2020-08-13T02:31:07.000Z | 2022-03-24T05:50:55.000Z | nlt/debug/dataset.py | isabella232/neural-light-transport | 04acc39713be464e74e0393315c71416f67a3ef3 | [
"Apache-2.0"
] | 7 | 2020-11-16T05:07:08.000Z | 2022-02-07T04:19:44.000Z | nlt/debug/dataset.py | isabella232/neural-light-transport | 04acc39713be464e74e0393315c71416f67a3ef3 | [
"Apache-2.0"
] | 30 | 2020-08-13T07:03:34.000Z | 2022-03-23T18:55:26.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 29.541667 | 79 | 0.727786 | 203 | 1,418 | 4.931034 | 0.576355 | 0.05994 | 0.025974 | 0.031968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008569 | 0.17701 | 1,418 | 47 | 80 | 30.170213 | 0.849186 | 0.407616 | 0 | 0 | 0 | 0 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7eae90d3c01eaa4dde6516942f1304a7d7bfc497 | 1,247 | py | Python | Curso Udemy 2022/Curso_Luiz_Otavio/aula_75_ex.py | Matheusfarmaceutico/Exercicios-Python | d1821bd9d11ea0707074c5fe11dead2e85476ebd | [
"MIT"
] | null | null | null | Curso Udemy 2022/Curso_Luiz_Otavio/aula_75_ex.py | Matheusfarmaceutico/Exercicios-Python | d1821bd9d11ea0707074c5fe11dead2e85476ebd | [
"MIT"
] | null | null | null | Curso Udemy 2022/Curso_Luiz_Otavio/aula_75_ex.py | Matheusfarmaceutico/Exercicios-Python | d1821bd9d11ea0707074c5fe11dead2e85476ebd | [
"MIT"
] | null | null | null | def separador():
print("-="*30)
"""
Considerando duas listas de inteiros ou floats (lista A e lista B)
Some os valores nas listas retornando uma nova lista com os valores somados:
Se uma lista for maior que a outra, a soma só vai considerar o tamanho da
menor.
Exemplo:
lista_a = [1, 2, 3, 4, 5, 6, 7]
lista_b ... | 26.531915 | 122 | 0.690457 | 245 | 1,247 | 3.395918 | 0.359184 | 0.086538 | 0.036058 | 0.048077 | 0.34976 | 0.313702 | 0.313702 | 0.313702 | 0.313702 | 0.313702 | 0 | 0.055126 | 0.17081 | 1,247 | 47 | 123 | 26.531915 | 0.749516 | 0.241379 | 0 | 0.703704 | 0 | 0 | 0.003125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 0.185185 | 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 |
7eb37405a08b46272d97b80f6cb1504d1a02dffc | 884 | py | Python | aoc2020/4/d4_2.py | kewbish/ka-algorithms | 7a893fdaebd99530eaf0d9633c2721763707e92f | [
"MIT"
] | null | null | null | aoc2020/4/d4_2.py | kewbish/ka-algorithms | 7a893fdaebd99530eaf0d9633c2721763707e92f | [
"MIT"
] | null | null | null | aoc2020/4/d4_2.py | kewbish/ka-algorithms | 7a893fdaebd99530eaf0d9633c2721763707e92f | [
"MIT"
] | null | null | null | from re import match
with open("input.txt") as x:
lines = x.read().strip().split("\n\n")
lines = [line.replace("\n", " ") for line in lines]
valid = 0
fields = {
'byr': lambda x: 1920 <= int(x) <= 2002,
'iyr': lambda x: 2010 <= int(x) <= 2020,
'eyr': lambda x: 2020 <= int(x) <= 2030,
... | 35.36 | 120 | 0.519231 | 142 | 884 | 3.232394 | 0.521127 | 0.106754 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066265 | 0.248869 | 884 | 24 | 121 | 36.833333 | 0.625 | 0.048643 | 0 | 0 | 0 | 0 | 0.091776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.052632 | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7eb6be94d7cf79345f60800447c7a1dfb1e58dc6 | 1,126 | py | Python | dev/umm-exploration-has-calculator.py | fangohr/oommf-python | 9c9f617c4efe4b488f01703186c1126070ea5d3f | [
"BSD-2-Clause"
] | 7 | 2016-01-25T09:36:46.000Z | 2021-09-03T01:42:19.000Z | dev/umm-exploration-has-calculator.py | fangohr/oommf-python | 9c9f617c4efe4b488f01703186c1126070ea5d3f | [
"BSD-2-Clause"
] | 1 | 2016-03-07T17:11:44.000Z | 2016-03-07T17:11:44.000Z | dev/umm-exploration-has-calculator.py | fangohr/oommf-python | 9c9f617c4efe4b488f01703186c1126070ea5d3f | [
"BSD-2-Clause"
] | 9 | 2015-09-30T10:53:06.000Z | 2021-05-12T20:21:52.000Z | class MicromagneticModell:
def __init__(self, name, Ms, calc):
self.name = name
self.Ms = Ms
self.field = None
self.calc = calc
def __str__(self):
return "AbstractMicromagneticModell(name={})".format(self.name)
def relax(self):
self.calc.relax(self)
def... | 21.245283 | 72 | 0.617229 | 135 | 1,126 | 5.014815 | 0.333333 | 0.035451 | 0.032496 | 0.047267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.239787 | 1,126 | 52 | 73 | 21.653846 | 0.772196 | 0.162522 | 0 | 0.068966 | 0 | 0 | 0.193583 | 0.098396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.034483 | 0 | 0.068966 | 0.413793 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e1e160e8d90a3c603ba44d2101e9bfc5828fd10 | 7,104 | py | Python | clickmodel-experiments/scripts/model/ClickModelExperiment.py | nut-hatch/LOVBench | 365ea4ad0d6258b840439506ce97acb3827c39e6 | [
"Apache-2.0"
] | null | null | null | clickmodel-experiments/scripts/model/ClickModelExperiment.py | nut-hatch/LOVBench | 365ea4ad0d6258b840439506ce97acb3827c39e6 | [
"Apache-2.0"
] | 1 | 2021-08-09T20:59:22.000Z | 2021-08-09T20:59:22.000Z | clickmodel-experiments/scripts/model/ClickModelExperiment.py | nut-hatch/LOVBench | 365ea4ad0d6258b840439506ce97acb3827c39e6 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Anonymous'
import time
import csv
import os.path
import pyclick
from pyclick.utils.YandexRelPredChallengeParser import YandexRelPredChallengeParser
from pyclick.utils.Utils import Utils
from pyclick.click_models.Evaluation import LogLikelihood, Perplexity
from pyclick.click_models.UBM import UBM
from py... | 48.326531 | 265 | 0.6692 | 829 | 7,104 | 5.373945 | 0.193004 | 0.062851 | 0.032323 | 0.044444 | 0.398204 | 0.287318 | 0.236139 | 0.222222 | 0.18541 | 0.167003 | 0 | 0.001079 | 0.217342 | 7,104 | 146 | 266 | 48.657534 | 0.80018 | 0.047157 | 0 | 0.27027 | 0 | 0 | 0.114497 | 0.021746 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e1e867c79f973710511eae3645a7ccaa06989d8 | 242 | py | Python | archive/2016/week5/homework/even.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 6 | 2017-11-08T14:04:39.000Z | 2019-03-24T22:11:04.000Z | archive/2016/week5/homework/even.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | null | null | null | archive/2016/week5/homework/even.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 7 | 2015-10-27T09:04:58.000Z | 2019-03-03T14:18:26.000Z | """
Дефинирайте фуннкция `is_even`, която приема число и върща `True` ако числото е
четно и `False` в противен случай.
>>> is_even(4)
True
>>> is_even(5)
False
"""
def is_even(number):
raise Exception('Not implemented')
| 18.615385 | 79 | 0.652893 | 35 | 242 | 4.4 | 0.742857 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.219008 | 242 | 12 | 80 | 20.166667 | 0.804233 | 0.710744 | 0 | 0 | 0 | 0 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 |
0e1f37ae758638a4fc7ba5ee3a4f94668d053d38 | 2,165 | py | Python | piws/views/actions.py | neurospin/piws | 4ec6f60c6343623a82761c90c74642b4b372ffd1 | [
"CECILL-B"
] | null | null | null | piws/views/actions.py | neurospin/piws | 4ec6f60c6343623a82761c90c74642b4b372ffd1 | [
"CECILL-B"
] | 9 | 2015-05-18T09:04:35.000Z | 2017-03-24T10:47:23.000Z | piws/views/actions.py | neurospin/piws | 4ec6f60c6343623a82761c90c74642b4b372ffd1 | [
"CECILL-B"
] | 17 | 2015-03-16T08:27:47.000Z | 2017-08-04T16:26:29.000Z | ##########################################################################
# NSAp - Copyright (C) CEA, 2013
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for details.
##########... | 28.116883 | 79 | 0.627714 | 223 | 2,165 | 5.901345 | 0.439462 | 0.072948 | 0.056991 | 0.06079 | 0.139058 | 0.075228 | 0 | 0 | 0 | 0 | 0 | 0.007609 | 0.150115 | 2,165 | 76 | 80 | 28.486842 | 0.707609 | 0.12933 | 0 | 0.2 | 0 | 0 | 0.100064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.244444 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e282455991d9cc519b5a1a793207bc93c3d9068 | 793 | py | Python | data_loaders/data_loader_interface.py | jennis0/pdf2vtt | 4aad37ef3dfce4d83f3a2744856879598cd4446f | [
"MIT"
] | null | null | null | data_loaders/data_loader_interface.py | jennis0/pdf2vtt | 4aad37ef3dfce4d83f3a2744856879598cd4446f | [
"MIT"
] | null | null | null | data_loaders/data_loader_interface.py | jennis0/pdf2vtt | 4aad37ef3dfce4d83f3a2744856879598cd4446f | [
"MIT"
] | null | null | null | import abc
from typing import List
from utils.datatypes import Source
class DataLoaderInterface(object):
@abc.abstractmethod
def get_name() -> str:
'''Returns an internal name for this loader'''
raise NotImplementedError("users must define a name for this loader")
@staticmethod
@abc.... | 36.045455 | 93 | 0.706179 | 102 | 793 | 5.441176 | 0.5 | 0.091892 | 0.108108 | 0.082883 | 0.165766 | 0.165766 | 0.165766 | 0 | 0 | 0 | 0 | 0 | 0.214376 | 793 | 22 | 93 | 36.045455 | 0.890851 | 0.211854 | 0 | 0.214286 | 0 | 0 | 0.236066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 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 |
0e2930d0e963e50e57e9afabe5382cdd9bed7229 | 4,176 | py | Python | dbglang/dbp.py | thautwarm/dbg-lang | 22b5230bc1658494b93a2741aab3ef63a06fdee3 | [
"MIT"
] | 1 | 2018-04-09T11:43:52.000Z | 2018-04-09T11:43:52.000Z | dbglang/dbp.py | thautwarm/dbg-lang | 22b5230bc1658494b93a2741aab3ef63a06fdee3 | [
"MIT"
] | null | null | null | dbglang/dbp.py | thautwarm/dbg-lang | 22b5230bc1658494b93a2741aab3ef63a06fdee3 | [
"MIT"
] | 1 | 2019-06-21T08:33:24.000Z | 2019-06-21T08:33:24.000Z | from Ruikowa.ObjectRegex.Node import Ref, AstParser, SeqParser, LiteralParser, CharParser, MetaInfo, DependentAstParser
try:
from .etoken import token
except:
from etoken import token
import re
namespace = globals()
recurSearcher = set()
PrimaryDefList = AstParser([Ref('FieldDef'), SeqParser([LiteralParser(',... | 64.246154 | 120 | 0.608477 | 369 | 4,176 | 6.880759 | 0.140921 | 0.147302 | 0.182749 | 0.074833 | 0.313115 | 0.233557 | 0.144545 | 0.120126 | 0.100039 | 0.057503 | 0 | 0.002171 | 0.117577 | 4,176 | 64 | 121 | 65.25 | 0.686839 | 0 | 0 | 0.032258 | 0 | 0 | 0.107998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
0e2b1e0932a1e36d8ff5f038e7d31ff803df6266 | 1,794 | py | Python | pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py | Sky-zzt/lintcodePractice | d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1 | [
"MIT"
] | 1 | 2020-09-15T07:58:55.000Z | 2020-09-15T07:58:55.000Z | pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py | Sky-zzt/lintcodePractice | d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1 | [
"MIT"
] | null | null | null | pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py | Sky-zzt/lintcodePractice | d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1 | [
"MIT"
] | null | null | null | import heapq
class Solution:
"""
@param matrix: a matrix of integers
@param k: An integer
@return: the kth smallest number in the matrix
在一个排序矩阵中找从小到大的第 k 个整数。
排序矩阵的定义为:每一行递增,每一列也递增。
Example
样例 1:
输入:
[
[1 ,5 ,7],
[3 ,7 ,8],
[4 ,8 ,9],
]
k = 4
输出: 5
... | 23.92 | 70 | 0.544593 | 218 | 1,794 | 4.481651 | 0.344037 | 0.146366 | 0.046059 | 0.04913 | 0.116684 | 0.057318 | 0 | 0 | 0 | 0 | 0 | 0.020903 | 0.333333 | 1,794 | 74 | 71 | 24.243243 | 0.795987 | 0.264214 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.142857 | false | 0 | 0.028571 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e2d0a35bac66187f607550adfc8a5821291ee5b | 3,493 | py | Python | test/test-funders.py | yurivict/habanero | 857897a88811153f7460472219fd78d4e68bdc12 | [
"MIT"
] | null | null | null | test/test-funders.py | yurivict/habanero | 857897a88811153f7460472219fd78d4e68bdc12 | [
"MIT"
] | 1 | 2015-10-07T02:20:24.000Z | 2015-10-07T02:20:24.000Z | test/test-funders.py | yurivict/habanero | 857897a88811153f7460472219fd78d4e68bdc12 | [
"MIT"
] | null | null | null | import pytest
import os
import requests
from habanero import exceptions, Crossref
from requests.exceptions import HTTPError
cr = Crossref()
@pytest.mark.vcr
def test_funders():
"funders - basic test"
res = cr.funders(limit=2)
assert dict == res.__class__
assert dict == res["message"].__class__
as... | 26.263158 | 87 | 0.681363 | 470 | 3,493 | 4.87234 | 0.206383 | 0.065502 | 0.085153 | 0.104803 | 0.735371 | 0.71441 | 0.638428 | 0.509607 | 0.408297 | 0.373362 | 0 | 0.047719 | 0.184082 | 3,493 | 132 | 88 | 26.462121 | 0.755789 | 0.069854 | 0 | 0.465347 | 0 | 0 | 0.177212 | 0 | 0 | 0 | 0 | 0 | 0.217822 | 1 | 0.148515 | false | 0 | 0.049505 | 0 | 0.19802 | 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 |
0e2d51cb9fe9bb1546fc7bbea2cb77d09472d09a | 812 | py | Python | geomagio/api/ws/algorithms.py | alejandrodelcampillo/geomag-algorithms | 43a734d63a8eb2a696f14237e0054e21d36de7c3 | [
"CC0-1.0"
] | 1 | 2021-02-22T23:45:22.000Z | 2021-02-22T23:45:22.000Z | geomagio/api/ws/algorithms.py | alejandrodelcampillo/geomag-algorithms | 43a734d63a8eb2a696f14237e0054e21d36de7c3 | [
"CC0-1.0"
] | 1 | 2021-09-08T03:42:52.000Z | 2021-09-08T03:42:52.000Z | geomagio/api/ws/algorithms.py | alejandrodelcampillo/geomag-algorithms | 43a734d63a8eb2a696f14237e0054e21d36de7c3 | [
"CC0-1.0"
] | null | null | null | from fastapi import APIRouter, Depends
from starlette.responses import Response
from ... import TimeseriesFactory
from ...algorithm import DbDtAlgorithm
from .DataApiQuery import DataApiQuery
from .data import format_timeseries, get_data_factory, get_data_query, get_timeseries
router = APIRouter()
@router.get("/al... | 29 | 85 | 0.748768 | 94 | 812 | 6.297872 | 0.361702 | 0.047297 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165025 | 812 | 27 | 86 | 30.074074 | 0.873156 | 0.041872 | 0 | 0 | 0 | 0 | 0.037468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0e2d851e83694bcead0aaa245c930030f6827cc1 | 1,478 | py | Python | lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py | haitanle/storm-twitter | b68c90129d31eb11808922ec56ac9ac6535fdab2 | [
"MIT"
] | null | null | null | lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py | haitanle/storm-twitter | b68c90129d31eb11808922ec56ac9ac6535fdab2 | [
"MIT"
] | null | null | null | lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py | haitanle/storm-twitter | b68c90129d31eb11808922ec56ac9ac6535fdab2 | [
"MIT"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 35.190476 | 105 | 0.699594 | 201 | 1,478 | 5.144279 | 0.606965 | 0.058027 | 0.025145 | 0.030948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007819 | 0.221245 | 1,478 | 41 | 106 | 36.04878 | 0.89053 | 0.653586 | 0 | 0 | 0 | 0 | 0.01222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0e2e642553f3d2eca725be5123dcabd2612e0fef | 598 | py | Python | ncl/property.py | MichaelBittencourt/NCL-Generator-API | 8eecf2ea4948354fae9f64b68da2f24ad0663d60 | [
"MIT"
] | 1 | 2020-06-26T09:59:27.000Z | 2020-06-26T09:59:27.000Z | ncl/property.py | MichaelBittencourt/NCL-Generator-API | 8eecf2ea4948354fae9f64b68da2f24ad0663d60 | [
"MIT"
] | null | null | null | ncl/property.py | MichaelBittencourt/NCL-Generator-API | 8eecf2ea4948354fae9f64b68da2f24ad0663d60 | [
"MIT"
] | 1 | 2020-01-07T23:16:11.000Z | 2020-01-07T23:16:11.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Michael Bittencourt <mchl.bittencourt@gmail.com>
#
# Distributed under terms of the MIT license.
"""
"""
from ncl.abstractelement import AbstractElement
class Property(AbstractElement):
def __init__(self, name, value=None, exte... | 23.92 | 73 | 0.633779 | 72 | 598 | 5.166667 | 0.597222 | 0.056452 | 0.048387 | 0.069892 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012848 | 0.219064 | 598 | 24 | 74 | 24.916667 | 0.781585 | 0.280936 | 0 | 0 | 0 | 0 | 0.110843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e30b1db2b544a801697916acc86f22b8a9e7d0e | 4,109 | py | Python | benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py | ghsecuritylab/BenchIoT | 4919427d35e578a7ff07ef5e0b4710b6455dd0b9 | [
"Apache-2.0"
] | 22 | 2019-05-03T03:39:09.000Z | 2022-02-26T17:14:15.000Z | benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py | ghsecuritylab/BenchIoT | 4919427d35e578a7ff07ef5e0b4710b6455dd0b9 | [
"Apache-2.0"
] | 3 | 2019-07-29T19:48:49.000Z | 2022-01-10T07:24:43.000Z | benchmarks/secure_data_SDK-benchmarks/bootloader/load_firmware.py | ghsecuritylab/BenchIoT | 4919427d35e578a7ff07ef5e0b4710b6455dd0b9 | [
"Apache-2.0"
] | 8 | 2019-05-16T08:02:33.000Z | 2021-08-03T03:41:37.000Z |
from struct import pack, unpack
import binascii
import socket
HOST = '192.168.0.10'
PORT = 1337
BUFF_SIZE = 1024
START_TOKEN = "init"
DONE_TOKEN = "done"
FAIL_TOKEN = "fail"
def create_test_application(load_addr=0x08002000, size=64*1024):
'''
Creates a test application that simply returns to the boo... | 29.35 | 80 | 0.578973 | 538 | 4,109 | 4.275093 | 0.336431 | 0.028696 | 0.031304 | 0.027826 | 0.133478 | 0.09913 | 0.056522 | 0.034783 | 0 | 0 | 0 | 0.034603 | 0.303724 | 4,109 | 139 | 81 | 29.561151 | 0.769311 | 0.048674 | 0 | 0.1 | 0 | 0 | 0.128149 | 0.00575 | 0 | 0 | 0.008215 | 0.007194 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e333752c015ad9cb399b65e23737e7c8b00cd94 | 27,010 | py | Python | fauxfactory/__init__.py | sthirugn/fauxfactory | b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5 | [
"Apache-2.0"
] | null | null | null | fauxfactory/__init__.py | sthirugn/fauxfactory | b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5 | [
"Apache-2.0"
] | null | null | null | fauxfactory/__init__.py | sthirugn/fauxfactory | b320f46d34124d0fbc0b93bc6c56ff8231c8dbc5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Generate random data for your tests."""
__all__ = (
'gen_alpha',
'gen_alphanumeric',
'gen_boolean',
'gen_choice',
'gen_cjk',
'gen_cyrillic',
'gen_date',
'gen_datetime',
'gen_email',
'gen_html',
'gen_integer',
'gen_ipaddr',
'gen_iplum',
... | 28.703507 | 80 | 0.646501 | 3,555 | 27,010 | 4.787342 | 0.148242 | 0.017275 | 0.025501 | 0.041366 | 0.376873 | 0.296962 | 0.269111 | 0.241201 | 0.20812 | 0.177096 | 0 | 0.017959 | 0.249611 | 27,010 | 940 | 81 | 28.734043 | 0.821739 | 0.375046 | 0 | 0.273731 | 1 | 0 | 0.079902 | 0.001316 | 0 | 0 | 0.001504 | 0 | 0.004415 | 1 | 0.11479 | false | 0 | 0.024283 | 0.050773 | 0.258278 | 0 | 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 |
0e38d2aaf004540b815fbb6471e43af110b9c1be | 562 | py | Python | AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 2,757 | 2018-04-28T21:41:36.000Z | 2022-03-29T06:33:36.000Z | AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 20 | 2019-07-23T15:29:32.000Z | 2022-01-21T12:53:04.000Z | AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_ttk_textonly.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 449 | 2018-05-09T05:54:05.000Z | 2022-03-30T14:54:18.000Z | import os
from test import test_support
# Skip this test if _tkinter does not exist.
test_support.import_module('_tkinter')
this_dir = os.path.dirname(os.path.abspath(__file__))
lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))
with test_support.DirsOnSysPath(lib_tk_test):
i... | 28.1 | 78 | 0.704626 | 79 | 562 | 4.594937 | 0.443038 | 0.151515 | 0.099174 | 0.15427 | 0.203857 | 0.203857 | 0.203857 | 0 | 0 | 0 | 0 | 0 | 0.172598 | 562 | 19 | 79 | 29.578947 | 0.780645 | 0.074733 | 0 | 0.153846 | 0 | 0 | 0.072144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0e3c6ee65a6dc7c61f1f0de5840c630be1c19d33 | 57,419 | py | Python | ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py | mflu/openvstorage_centos | 280a98d3e5d212d58297e0ffcecd325dfecef0f8 | [
"Apache-2.0"
] | 1 | 2015-08-29T16:36:40.000Z | 2015-08-29T16:36:40.000Z | ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | ovs/extensions/db/arakoon/arakoon/ArakoonManagement.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | """
Copyright (2010-2014) INCUBAID BVBA
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 34.403235 | 186 | 0.579582 | 6,453 | 57,419 | 5.030528 | 0.113281 | 0.013031 | 0.021256 | 0.010997 | 0.368893 | 0.306112 | 0.270008 | 0.244563 | 0.210954 | 0.197277 | 0 | 0.002517 | 0.328933 | 57,419 | 1,668 | 187 | 34.423861 | 0.839951 | 0.007802 | 0 | 0.348932 | 0 | 0.004069 | 0.079564 | 0.002814 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012208 | 0.013225 | 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 |
0e3e2d475e4d28c9969630febc816f8bc00f2ddf | 626 | py | Python | lbworkflow/tests/purchase/models.py | wearypossum4770/django-lb-workflow | 8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7 | [
"MIT"
] | 194 | 2017-04-24T15:28:16.000Z | 2021-12-29T03:35:28.000Z | lbworkflow/tests/purchase/models.py | wearypossum4770/django-lb-workflow | 8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7 | [
"MIT"
] | 17 | 2018-05-31T07:45:42.000Z | 2021-12-16T08:55:44.000Z | lbworkflow/tests/purchase/models.py | wearypossum4770/django-lb-workflow | 8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7 | [
"MIT"
] | 67 | 2017-05-18T02:28:28.000Z | 2022-01-20T02:05:10.000Z | from django.db import models
from lbworkflow.models import BaseWFObj
class Purchase(BaseWFObj):
title = models.CharField("Title", max_length=255)
reason = models.CharField("Reason", max_length=255)
def __str__(self):
return self.reason
class Item(models.Model):
purchase = models.ForeignKey... | 22.357143 | 55 | 0.670927 | 75 | 626 | 5.413333 | 0.413333 | 0.147783 | 0.118227 | 0.078818 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024641 | 0.222045 | 626 | 27 | 56 | 23.185185 | 0.809035 | 0 | 0 | 0.105263 | 0 | 0 | 0.055911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.105263 | 0.789474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0e3e3487ba35fcedce9a553cfee80ee9e1454f0d | 900 | py | Python | interface/python/test.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | 1 | 2020-09-24T02:41:23.000Z | 2020-09-24T02:41:23.000Z | interface/python/test.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | null | null | null | interface/python/test.py | gaubert/nessDB | 69eed5ec2d4e6bf06853cebf7a506d214eaf7d62 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# author : KDr2
# BohuTANG @2012
#
import sys
import random
import string
import time
import nessdb
def gen_random_str(len):
return ''.join([random.choice('abcdefghijklmnoprstuvwyxzABCDEFGHIJKLMNOPRSTUVWXYZ') for i in range(len)])
def ness_open(db_name):
return nessdb.Ne... | 21.428571 | 106 | 0.645556 | 145 | 900 | 3.8 | 0.441379 | 0.058076 | 0.043557 | 0.039927 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0253 | 0.165556 | 900 | 41 | 107 | 21.95122 | 0.708389 | 0.076667 | 0 | 0 | 0 | 0 | 0.193939 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.178571 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e4381d0af212201e83d5139e926caa71f20f745 | 2,472 | py | Python | cube2/server.py | bobssup/kripken | a19f0aca7b9251c08dd930fa670eaa72db0806f7 | [
"CC-BY-3.0"
] | 892 | 2015-01-06T13:51:18.000Z | 2022-03-28T08:54:27.000Z | cube2/server.py | bobssup/kripken | a19f0aca7b9251c08dd930fa670eaa72db0806f7 | [
"CC-BY-3.0"
] | 37 | 2015-01-24T19:50:38.000Z | 2022-03-11T01:51:17.000Z | cube2/server.py | bobssup/kripken | a19f0aca7b9251c08dd930fa670eaa72db0806f7 | [
"CC-BY-3.0"
] | 264 | 2015-01-31T14:31:47.000Z | 2022-03-30T16:46:54.000Z | #!/usr/bin/env python
'''
Sets up websocket server support to run the server in one HTML page and the client in another HTML page. Each connects to a websocket server, which we relay together, so the two pages think they are connected to each other (see websocket_bi tests in emscripten).
Instructions for websocket ne... | 37.454545 | 262 | 0.767395 | 381 | 2,472 | 4.855643 | 0.372703 | 0.015135 | 0.034595 | 0.043243 | 0.28973 | 0.272432 | 0.223784 | 0.166486 | 0.138378 | 0.084324 | 0 | 0.037106 | 0.127832 | 2,472 | 65 | 263 | 38.030769 | 0.820965 | 0.008091 | 0 | 0 | 0 | 0 | 0.100239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e4cabb3fb9a2919ca8974672393ca3fb3160fbf | 16,677 | py | Python | nt_m.py | kwj1399/ryu_app | df094994e09788053b47aad1c6164033e6bd4c14 | [
"MIT"
] | null | null | null | nt_m.py | kwj1399/ryu_app | df094994e09788053b47aad1c6164033e6bd4c14 | [
"MIT"
] | null | null | null | nt_m.py | kwj1399/ryu_app | df094994e09788053b47aad1c6164033e6bd4c14 | [
"MIT"
] | null | null | null | '''
FileName:
Author:KWJ(kyson)
UpdateTime:2016/10/10
Introduction:
'''
from __future__ import division
import copy
from operator import attrgetter
from ryu.base import app_manager
from ryu.base.app_manager import lookup_service_brick
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATC... | 39.518957 | 86 | 0.538166 | 1,978 | 16,677 | 4.349848 | 0.167341 | 0.016736 | 0.007438 | 0.008949 | 0.301953 | 0.233496 | 0.195258 | 0.147141 | 0.096234 | 0.051139 | 0 | 0.014614 | 0.347604 | 16,677 | 421 | 87 | 39.612827 | 0.776195 | 0.054566 | 0 | 0.176282 | 0 | 0.003205 | 0.073958 | 0.00147 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e5101dd7fe4f67284e5978fa838a8443cbd53ae | 1,397 | py | Python | export_readiness/migrations/0058_auto_20190912_1326.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2018-03-20T11:19:07.000Z | 2021-10-05T07:53:11.000Z | export_readiness/migrations/0058_auto_20190912_1326.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 802 | 2018-02-05T14:16:13.000Z | 2022-02-10T10:59:21.000Z | export_readiness/migrations/0058_auto_20190912_1326.py | uktrade/directory-cms | 8c8d13ce29ea74ddce7a40f3dd29c8847145d549 | [
"MIT"
] | 6 | 2019-01-22T13:19:37.000Z | 2019-07-01T10:35:26.000Z | # Generated by Django 2.2.4 on 2019-09-12 13:26
from django.db import migrations
INDUSTRY_NAMES = (
'Advanced manufacturing',
'Aerospace',
'Agri-technology',
'Automotive',
'Biotechnology',
'Cleantech',
'Construction ',
'Consumer products',
'Cyber security',
'E-commerce',
'... | 22.174603 | 100 | 0.65927 | 138 | 1,397 | 6.514493 | 0.681159 | 0.053393 | 0.040044 | 0.048943 | 0.171301 | 0.171301 | 0.171301 | 0.171301 | 0.171301 | 0.171301 | 0 | 0.028182 | 0.212598 | 1,397 | 62 | 101 | 22.532258 | 0.789091 | 0.032212 | 0 | 0.04 | 1 | 0 | 0.362963 | 0.017037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.02 | 0 | 0.12 | 0 | 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 |
0e5337ed20b60dbcf33738cf8d37c01caaa201c9 | 1,968 | py | Python | imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 212 | 2017-07-06T23:01:44.000Z | 2022-03-24T04:44:49.000Z | imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 157 | 2017-07-24T10:03:41.000Z | 2022-03-12T01:03:47.000Z | imagetagger/imagetagger/annotations/migrations/0006_auto_20170826_1431.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 54 | 2017-11-07T00:40:50.000Z | 2022-02-26T14:22:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-26 12:31
from __future__ import unicode_literals
import json
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('annotations', '0005_auto_20170826_1424'),
... | 33.355932 | 77 | 0.601626 | 204 | 1,968 | 5.651961 | 0.431373 | 0.039029 | 0.036427 | 0.046834 | 0.32784 | 0.272333 | 0.272333 | 0.272333 | 0.272333 | 0.272333 | 0 | 0.024336 | 0.310976 | 1,968 | 58 | 78 | 33.931034 | 0.825959 | 0.128557 | 0 | 0.380952 | 1 | 0 | 0.069087 | 0.013466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e609bb7fbbaaaa62dd52003ec698921717c72aa | 458 | py | Python | tests/test_elasticsearch.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | 6 | 2021-10-01T06:38:22.000Z | 2022-03-23T09:22:06.000Z | tests/test_elasticsearch.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | tests/test_elasticsearch.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | from .conftest import TestTimeouts
from elasticsearch import Elasticsearch
from elasticsearch.exceptions import ConnectionError
class TestElasticsearch(TestTimeouts):
def test_connect(self):
with self.raises(ConnectionError):
Elasticsearch([self.connect_url()], timeout=1).cluster.health()
... | 32.714286 | 75 | 0.733624 | 48 | 458 | 6.916667 | 0.4375 | 0.10241 | 0.072289 | 0.108434 | 0.445783 | 0.301205 | 0.301205 | 0 | 0 | 0 | 0 | 0.005249 | 0.168122 | 458 | 13 | 76 | 35.230769 | 0.866142 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0e60e9c2253d2e72211a2da9715165e839d0f5a9 | 1,179 | py | Python | mediasync/management/commands/syncmedia.py | kennethreitz-archive/django-mediasync | 93baadda6c8edfebf065e92a63aba588b9a0311e | [
"BSD-3-Clause"
] | 2 | 2015-11-05T08:54:40.000Z | 2016-03-01T22:14:29.000Z | mediasync/management/commands/syncmedia.py | kennethreitz-archive/django-mediasync | 93baadda6c8edfebf065e92a63aba588b9a0311e | [
"BSD-3-Clause"
] | null | null | null | mediasync/management/commands/syncmedia.py | kennethreitz-archive/django-mediasync | 93baadda6c8edfebf065e92a63aba588b9a0311e | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from optparse import make_option
from mediasync.conf import msettings
import mediasync
import time
class Command(BaseCommand):
help = "Sync local media with remote client"
args = '[options]'
requires_model_validation = False
... | 32.75 | 112 | 0.597116 | 131 | 1,179 | 5.267176 | 0.526718 | 0.046377 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002381 | 0.287532 | 1,179 | 36 | 113 | 32.75 | 0.819048 | 0 | 0 | 0 | 0 | 0 | 0.181356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e6501df6c0fb85542839cee838fc4b4c8a3f879 | 868 | py | Python | lahja/tools/benchmark/typing.py | vaporyproject/lahja | fafc38106863f89ae04a52f6327e6ec5f42b2beb | [
"MIT"
] | null | null | null | lahja/tools/benchmark/typing.py | vaporyproject/lahja | fafc38106863f89ae04a52f6327e6ec5f42b2beb | [
"MIT"
] | null | null | null | lahja/tools/benchmark/typing.py | vaporyproject/lahja | fafc38106863f89ae04a52f6327e6ec5f42b2beb | [
"MIT"
] | null | null | null | from typing import (
NamedTuple,
)
from lahja import (
BaseEvent,
)
class RawMeasureEntry(NamedTuple):
sent_at: float
received_at: float
class CrunchedMeasureEntry(NamedTuple):
sent_at: float
received_at: float
duration: float
class PerfMeasureEvent(BaseEvent):
def __init__(self,... | 17.714286 | 75 | 0.691244 | 99 | 868 | 5.818182 | 0.373737 | 0.052083 | 0.057292 | 0.072917 | 0.125 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.235023 | 868 | 48 | 76 | 18.083333 | 0.86747 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.030303 | 0.060606 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e6ba2de9241ced5ccf9acb46a7611acaa103fa7 | 641 | py | Python | insta/migrations/0003_auto_20190522_1122.py | eddyyonnie/instanicer | ae5c9994a5fcf0291a7785921655be0d5293a790 | [
"MIT"
] | null | null | null | insta/migrations/0003_auto_20190522_1122.py | eddyyonnie/instanicer | ae5c9994a5fcf0291a7785921655be0d5293a790 | [
"MIT"
] | 4 | 2021-03-19T00:52:54.000Z | 2021-09-08T01:00:47.000Z | insta/migrations/0003_auto_20190522_1122.py | eddyyonnie/instanicer | ae5c9994a5fcf0291a7785921655be0d5293a790 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-22 08:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('insta', '0002_pictures'),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
('id', m... | 24.653846 | 114 | 0.549142 | 63 | 641 | 5.460317 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050691 | 0.322933 | 641 | 25 | 115 | 25.64 | 0.741935 | 0.070203 | 0 | 0.105263 | 1 | 0 | 0.085859 | 0 | 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 |
0e6f3670c8eeedc919a111469dde8bf049ce3484 | 365 | py | Python | awards/migrations/0005_rename_avg_rate_rating_average.py | Maryan23/Laurels | cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff | [
"MIT"
] | null | null | null | awards/migrations/0005_rename_avg_rate_rating_average.py | Maryan23/Laurels | cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff | [
"MIT"
] | null | null | null | awards/migrations/0005_rename_avg_rate_rating_average.py | Maryan23/Laurels | cde7332ac9e5a4032a4d2da725bb5b70c66ce9ff | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-13 21:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('awards', '0004_auto_20211213_1253'),
]
operations = [
migrations.RenameField(
model_name='rating',
old_name='avg_rate',
... | 19.210526 | 47 | 0.586301 | 40 | 365 | 5.175 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 0.30137 | 365 | 18 | 48 | 20.277778 | 0.690196 | 0.123288 | 0 | 0 | 1 | 0 | 0.157233 | 0.072327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e7351729964b02b462566b09dcddbc2209fa1c8 | 3,561 | py | Python | levelheap-micha-4d/levels/gamma.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | 2 | 2020-01-04T23:44:10.000Z | 2020-07-12T17:10:09.000Z | levelheap-micha-4d/levels/gamma.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | null | null | null | levelheap-micha-4d/levels/gamma.py | triffid/kiki | b64b8524063c149a5cc9118f48d80afec1d8a942 | [
"Unlicense"
] | 1 | 2022-03-16T05:43:33.000Z | 2022-03-16T05:43:33.000Z | # level design by Michael Abel
schemes=[test_scheme, tron_scheme,candy_scheme, default_scheme,
green_scheme, yellow_scheme, blue_scheme, red_scheme, metal_scheme, bronze_scheme]
# .................................................................................................................
def func_gamma():... | 42.392857 | 115 | 0.511092 | 362 | 3,561 | 4.966851 | 0.220994 | 0.095106 | 0.040044 | 0.14683 | 0.365962 | 0.275306 | 0.073415 | 0 | 0 | 0 | 0 | 0.038966 | 0.293738 | 3,561 | 83 | 116 | 42.903614 | 0.675944 | 0.133951 | 0 | 0.065574 | 0 | 0 | 0.047154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e75465f62c387ef9aa64e8ae316dc9423908eba | 2,151 | py | Python | jzl/utils/wrappers.py | elijahc/jzlsdk | fc04a60383e6e71d50d27e8d04dff96f18ee7b06 | [
"MIT"
] | null | null | null | jzl/utils/wrappers.py | elijahc/jzlsdk | fc04a60383e6e71d50d27e8d04dff96f18ee7b06 | [
"MIT"
] | 7 | 2019-12-16T20:48:16.000Z | 2022-02-09T23:31:19.000Z | jzl/utils/wrappers.py | elijahc/jzl | fc04a60383e6e71d50d27e8d04dff96f18ee7b06 | [
"MIT"
] | null | null | null | import scipy.io as sio
import numpy as np
class MatWrapper(object):
def __init__(self,mat_file):
self.mat_fp = mat_file
self.data = None
class NeuroSurgMat(MatWrapper):
def __init__(self, mat_file):
self.mat_fp = mat_file
self.data = None
self._clfp = None
se... | 33.609375 | 91 | 0.566713 | 288 | 2,151 | 4.045139 | 0.215278 | 0.116738 | 0.038627 | 0.058369 | 0.47382 | 0.387124 | 0.28927 | 0.251502 | 0.251502 | 0.212017 | 0 | 0.016556 | 0.298001 | 2,151 | 63 | 92 | 34.142857 | 0.754967 | 0.037192 | 0 | 0.333333 | 0 | 0 | 0.073017 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.117647 | false | 0 | 0.039216 | 0 | 0.27451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0e7d4d108567f466b35fc7926c86a921b3e00477 | 1,374 | py | Python | api/views.py | rukbotto/reviews-django | 28ff12a490d160b76ca75f5cc450fc7556996962 | [
"MIT"
] | null | null | null | api/views.py | rukbotto/reviews-django | 28ff12a490d160b76ca75f5cc450fc7556996962 | [
"MIT"
] | null | null | null | api/views.py | rukbotto/reviews-django | 28ff12a490d160b76ca75f5cc450fc7556996962 | [
"MIT"
] | 1 | 2018-09-06T18:52:33.000Z | 2018-09-06T18:52:33.000Z | from django.http import Http404
from django.shortcuts import render
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from api.models import Review
from api.serializers import ReviewSerializer
... | 35.230769 | 76 | 0.703057 | 154 | 1,374 | 6.175325 | 0.402597 | 0.073607 | 0.071504 | 0.066246 | 0.056782 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0.013774 | 0.207424 | 1,374 | 38 | 77 | 36.157895 | 0.859504 | 0 | 0 | 0.129032 | 0 | 0 | 0.016739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.258065 | 0 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0e7f4389c015b9220c6189155e2e9c20712acc78 | 209 | py | Python | Lesson_n1/logger/simple-logger.py | LemuelPuglisi/TutoratoTap | 81ce9d0f2163d18683c5aacde42b39f5a2e618a6 | [
"MIT"
] | 8 | 2022-03-22T10:12:03.000Z | 2022-03-28T17:44:08.000Z | Lesson_n1/logger/simple-logger.py | LemuelPuglisi/TutoratoTap | 81ce9d0f2163d18683c5aacde42b39f5a2e618a6 | [
"MIT"
] | null | null | null | Lesson_n1/logger/simple-logger.py | LemuelPuglisi/TutoratoTap | 81ce9d0f2163d18683c5aacde42b39f5a2e618a6 | [
"MIT"
] | null | null | null | import time
def log():
""" Python dummy logger example.
"""
t = 0
while True:
print(f'time: {t} \t log sent.')
t += 1
time.sleep(1)
if __name__ == '__main__': log() | 17.416667 | 40 | 0.492823 | 28 | 209 | 3.392857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.349282 | 209 | 12 | 41 | 17.416667 | 0.676471 | 0.133971 | 0 | 0 | 0 | 0 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e873042296e41b0fec86717d2fc6d5d5d3721f0 | 3,818 | py | Python | reviewboard/admin/views.py | vigneshsrinivasan/reviewboard | 4775130c1c1022f81edc11928e02b1b6c069f6ed | [
"MIT"
] | 1 | 2020-02-11T07:09:14.000Z | 2020-02-11T07:09:14.000Z | reviewboard/admin/views.py | vigneshsrinivasan/reviewboard | 4775130c1c1022f81edc11928e02b1b6c069f6ed | [
"MIT"
] | null | null | null | reviewboard/admin/views.py | vigneshsrinivasan/reviewboard | 4775130c1c1022f81edc11928e02b1b6c069f6ed | [
"MIT"
] | null | null | null | import logging
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.models import User
from django.core.cache import cache
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template.conte... | 35.027523 | 80 | 0.701676 | 435 | 3,818 | 5.926437 | 0.296552 | 0.055857 | 0.03685 | 0.064003 | 0.198216 | 0.198216 | 0.178045 | 0.147013 | 0.061676 | 0.061676 | 0 | 0 | 0.2077 | 3,818 | 108 | 81 | 35.351852 | 0.852231 | 0.014667 | 0 | 0.223684 | 0 | 0 | 0.116987 | 0.036632 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.223684 | null | null | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e8a4f5e382a07daf6ff75e3e2955a20dbb893fe | 4,898 | py | Python | python/protobufs/services/team/actions/get_teams_pb2.py | getcircle/protobuf-registry | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | [
"MIT"
] | null | null | null | python/protobufs/services/team/actions/get_teams_pb2.py | getcircle/protobuf-registry | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | [
"MIT"
] | null | null | null | python/protobufs/services/team/actions/get_teams_pb2.py | getcircle/protobuf-registry | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protobufs/services/team/actions/get_teams.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as... | 38.566929 | 519 | 0.780523 | 623 | 4,898 | 5.805778 | 0.194222 | 0.0564 | 0.058059 | 0.078795 | 0.622615 | 0.580868 | 0.554327 | 0.520321 | 0.398396 | 0.36909 | 0 | 0.034475 | 0.105757 | 4,898 | 126 | 520 | 38.873016 | 0.791324 | 0.070641 | 0 | 0.553398 | 1 | 0.009709 | 0.234103 | 0.20374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.067961 | 0 | 0.067961 | 0 | 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 |
0e9e025b01eb969d408f82347a8fc498cac9ab24 | 766 | py | Python | tests/frontend/analysis_frontend.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | 1 | 2019-09-26T08:16:30.000Z | 2019-09-26T08:16:30.000Z | tests/frontend/analysis_frontend.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | null | null | null | tests/frontend/analysis_frontend.py | CNR-ITTIG/plasodfaxp | 923797fc00664fa9e3277781b0334d6eed5664fd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the analysis front-end object."""
import unittest
from plaso.frontend import analysis_frontend
from plaso.storage import zip_file as storage_zip_file
from tests.frontend import test_lib
class AnalysisFrontendTests(test_lib.FrontendTestCase):
"""Tests for the... | 25.533333 | 74 | 0.763708 | 97 | 766 | 5.721649 | 0.453608 | 0.099099 | 0.03964 | 0.068468 | 0.118919 | 0.118919 | 0.118919 | 0 | 0 | 0 | 0 | 0.001502 | 0.130548 | 766 | 29 | 75 | 26.413793 | 0.831832 | 0.198433 | 0 | 0 | 0 | 0 | 0.050251 | 0.036851 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ea2730c361b568ac507b349f4219e90dc8e1b4e | 388 | py | Python | forms/forms/constants.py | dowjcr/forms | daba956b779dc2b8054aeab841835d3748c1c50f | [
"MIT"
] | null | null | null | forms/forms/constants.py | dowjcr/forms | daba956b779dc2b8054aeab841835d3748c1c50f | [
"MIT"
] | 1 | 2021-10-03T10:23:17.000Z | 2021-10-03T10:23:17.000Z | forms/forms/constants.py | dowjcr/forms | daba956b779dc2b8054aeab841835d3748c1c50f | [
"MIT"
] | null | null | null | """Stores constants used as numbers for readability that are used across all apps"""
class AdminRoles:
""" """
JCRTREASURER = 1
SENIORTREASURER = 2
BURSARY = 3
ASSISTANTBURSAR = 4
CHOICES = (
(JCRTREASURER, 'JCR Treasurer'),
(SENIORTREASURER, 'Senior Treasurer'),
(BURSA... | 24.25 | 84 | 0.615979 | 35 | 388 | 6.828571 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.273196 | 388 | 15 | 85 | 25.866667 | 0.833333 | 0.201031 | 0 | 0 | 0 | 0 | 0.175084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ea30d061c0f6731c0b56ded5ff02ccd54a258dd | 647 | py | Python | simpsonMethod.py | Existence-glitch/PythonCodes | a49121855364a5e0ac2ff227ef91f19086a52f09 | [
"MIT"
] | 1 | 2021-06-08T06:53:50.000Z | 2021-06-08T06:53:50.000Z | simpsonMethod.py | Existence-glitch/PythonCodes | a49121855364a5e0ac2ff227ef91f19086a52f09 | [
"MIT"
] | null | null | null | simpsonMethod.py | Existence-glitch/PythonCodes | a49121855364a5e0ac2ff227ef91f19086a52f09 | [
"MIT"
] | null | null | null | import numpy as np
from numpy import log
#Se define la función a integrar
def f(x):
return 1 / log(x)
#Implementación del método de Simpson
#Parámetros:
#f es la función a integrar
#a el límite inferior de la integral
#b el límite superior de la integral
#n el número de intervalos
def simpson (f, a... | 22.310345 | 46 | 0.525502 | 118 | 647 | 2.881356 | 0.415254 | 0.023529 | 0.058824 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.344668 | 647 | 28 | 47 | 23.107143 | 0.764151 | 0.330757 | 0 | 0 | 0 | 0 | 0.017632 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0eaded91ac94008a42cad76b8f191ad6073a2d0e | 681 | py | Python | app/utils/scrapy.py | edementyev/py-telegram-broker | 7cf6ab9a243e1309e4edd8257efb0f6a7340bfae | [
"MIT"
] | null | null | null | app/utils/scrapy.py | edementyev/py-telegram-broker | 7cf6ab9a243e1309e4edd8257efb0f6a7340bfae | [
"MIT"
] | 7 | 2020-12-07T09:11:01.000Z | 2022-03-02T18:15:01.000Z | app/utils/scrapy.py | edementyev/py-telegram-broker | 7cf6ab9a243e1309e4edd8257efb0f6a7340bfae | [
"MIT"
] | null | null | null | from loguru import logger
from scrapy.crawler import CrawlerProcess
from scrapy.utils.log import DEFAULT_LOGGING
from scrapy.utils.project import get_project_settings
from scrape_magic.spiders.gatherer_spider import GathererSpider
from scrape_magic.spiders.starcity_spider import StarcitySpider
settings = get_project_... | 32.428571 | 87 | 0.790015 | 84 | 681 | 6.22619 | 0.535714 | 0.057361 | 0.057361 | 0.08413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123348 | 681 | 20 | 88 | 34.05 | 0.876047 | 0 | 0 | 0 | 0 | 0 | 0.038179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0eae926a9f1f0cb7eec42a2b4785dbee7f9eaa01 | 1,842 | py | Python | app/services/auth.py | sloppysid/faunadb-hipflask | 554fb8d35a26d990ac1207af1d475a36720b102f | [
"MIT"
] | 1 | 2022-01-16T15:03:48.000Z | 2022-01-16T15:03:48.000Z | app/services/auth.py | sloppysid/faunadb-hipflask | 554fb8d35a26d990ac1207af1d475a36720b102f | [
"MIT"
] | null | null | null | app/services/auth.py | sloppysid/faunadb-hipflask | 554fb8d35a26d990ac1207af1d475a36720b102f | [
"MIT"
] | 1 | 2021-11-30T08:08:02.000Z | 2021-11-30T08:08:02.000Z | from flask import (
Blueprint, request, jsonify, render_template, session, redirect, url_for
)
from app.models import User
bp = Blueprint('auth', __name__, url_prefix='/auth')
... | 29.709677 | 480 | 0.445711 | 156 | 1,842 | 5.128205 | 0.339744 | 0.0875 | 0.1 | 0.09375 | 0.26375 | 0.155 | 0.155 | 0.155 | 0.155 | 0.155 | 0 | 0 | 0.448426 | 1,842 | 61 | 481 | 30.196721 | 0.787402 | 0.014115 | 0 | 0.2 | 0 | 0 | 0.119883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.133333 | 0.066667 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0eaff1b214599d29b4c8677703247eacd71b69b2 | 671 | py | Python | learning_algorithm/neural_network.py | Bermuhz/DataMiningCompetitionFirstPrize | e0202ceeb99fc6cb869906fd8e7cc79a173a315e | [
"MIT"
] | 128 | 2017-03-20T12:42:38.000Z | 2022-03-12T07:06:55.000Z | learning_algorithm/neural_network.py | Bermuhz/DataMiningCompetitionFirstPrize | e0202ceeb99fc6cb869906fd8e7cc79a173a315e | [
"MIT"
] | 4 | 2017-03-18T04:37:36.000Z | 2017-07-09T14:11:18.000Z | learning_algorithm/neural_network.py | Bermuhz/DataMiningCompetitionFirstPrize | e0202ceeb99fc6cb869906fd8e7cc79a173a315e | [
"MIT"
] | 77 | 2017-03-19T06:49:39.000Z | 2022-03-12T07:06:56.000Z | from sklearn.neural_network import MLPClassifier
from commons import variables
from commons import tools
from scipy.stats import mode
def learn(x, y, test_x):
(temp_x, temp_y) = tools.simple_negative_sample(x, y, variables.select_rate_nn)
clf = MLPClassifier(hidden_layer_sizes=(variables.unit_num_nn,), rando... | 39.470588 | 127 | 0.746647 | 95 | 671 | 4.947368 | 0.526316 | 0.119149 | 0.07234 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014363 | 0.169896 | 671 | 16 | 128 | 41.9375 | 0.829443 | 0 | 0 | 0 | 0 | 0 | 0.011923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 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 |
7ebae62d64d2c33a33e2537a143db8237e76925d | 3,992 | py | Python | GithubP1.py | rcamposm/ChallengePython | 014d32b38d90a1a3be3d102d5123d9e34bacc2dc | [
"MIT"
] | null | null | null | GithubP1.py | rcamposm/ChallengePython | 014d32b38d90a1a3be3d102d5123d9e34bacc2dc | [
"MIT"
] | null | null | null | GithubP1.py | rcamposm/ChallengePython | 014d32b38d90a1a3be3d102d5123d9e34bacc2dc | [
"MIT"
] | null | null | null | ******************* PARTE I *******************************
#Instalamos git en la terminal de VSC
$sudo apt-get install git -y
#Revisamos la versión del Git que hemos instalado
$git --version
# Podemos ver también un resumen de las principales funcionalidades de Git
$git
#Creamos una carpeta
$mkdir ChallengePython
#... | 31.68254 | 132 | 0.667585 | 531 | 3,992 | 5.015066 | 0.39548 | 0.039054 | 0.035674 | 0.024784 | 0.19602 | 0.120916 | 0.096132 | 0.076605 | 0.039805 | 0.039805 | 0 | 0.00178 | 0.155561 | 3,992 | 125 | 133 | 31.936 | 0.788193 | 0.408567 | 0 | 0.145455 | 0 | 0 | 0.03823 | 0.00988 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ec2240f63eb96b7be86ac80819b426a891d9e4a | 7,341 | py | Python | test/test_cpy_compat.py | gracinet/hpy | 3f850ae562c6977ed3088d5f5bb31a1ef4155d18 | [
"MIT"
] | null | null | null | test/test_cpy_compat.py | gracinet/hpy | 3f850ae562c6977ed3088d5f5bb31a1ef4155d18 | [
"MIT"
] | null | null | null | test/test_cpy_compat.py | gracinet/hpy | 3f850ae562c6977ed3088d5f5bb31a1ef4155d18 | [
"MIT"
] | null | null | null | from .support import HPyTest
class TestCPythonCompatibility(HPyTest):
# One note about the should_check_refcount() in the tests below: on
# CPython, handles are actually implemented as INCREF/DECREF, so we can
# check e.g. after an HPy_Dup the refcnt is += 1. However, on PyPy they
# are implemented i... | 33.368182 | 90 | 0.48522 | 833 | 7,341 | 4.064826 | 0.189676 | 0.020673 | 0.032487 | 0.0443 | 0.593621 | 0.585351 | 0.540165 | 0.505907 | 0.465741 | 0.440933 | 0 | 0.019429 | 0.418063 | 7,341 | 219 | 91 | 33.520548 | 0.773174 | 0.069337 | 0 | 0.55914 | 0 | 0.005376 | 0.777517 | 0.082808 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.05914 | false | 0 | 0.005376 | 0.005376 | 0.145161 | 0 | 0 | 0 | 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 |
7ec2bfc9ccb6ee726f5d61b2d45451c02e9d41ea | 553 | py | Python | blog/migrations/0003_auto_20200321_0543.py | Sergey19940808/blog | 26beea5b218ddfe3347e251994c5c2f500975df0 | [
"MIT"
] | null | null | null | blog/migrations/0003_auto_20200321_0543.py | Sergey19940808/blog | 26beea5b218ddfe3347e251994c5c2f500975df0 | [
"MIT"
] | null | null | null | blog/migrations/0003_auto_20200321_0543.py | Sergey19940808/blog | 26beea5b218ddfe3347e251994c5c2f500975df0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-21 05:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20200320_1150'),
]
operations = [
migrations.RemoveField(
model_name='subscribebyblog',
name='user... | 24.043478 | 100 | 0.605787 | 54 | 553 | 6.074074 | 0.796296 | 0.054878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078481 | 0.285714 | 553 | 22 | 101 | 25.136364 | 0.751899 | 0.081374 | 0 | 0.125 | 1 | 0 | 0.193676 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ec5bb3ee6e56981cd97f19bc1f1b34b98f31935 | 631 | py | Python | migrations/versions/1f97f799a477_add_contact_details_to_house.py | havanhuy1997/pmg-cms-2 | 21571235cf3d9552013bca29ab9af288b08e00d6 | [
"Apache-2.0"
] | 2 | 2019-06-11T20:46:43.000Z | 2020-08-27T22:50:32.000Z | migrations/versions/1f97f799a477_add_contact_details_to_house.py | havanhuy1997/pmg-cms-2 | 21571235cf3d9552013bca29ab9af288b08e00d6 | [
"Apache-2.0"
] | 70 | 2017-05-26T14:04:06.000Z | 2021-06-30T10:21:58.000Z | migrations/versions/1f97f799a477_add_contact_details_to_house.py | havanhuy1997/pmg-cms-2 | 21571235cf3d9552013bca29ab9af288b08e00d6 | [
"Apache-2.0"
] | 4 | 2017-08-29T10:09:30.000Z | 2021-05-25T11:29:03.000Z | """Add contact_details to House
Revision ID: 1f97f799a477
Revises: 2df9ce70bad
Create Date: 2018-08-08 10:58:44.869939
"""
# revision identifiers, used by Alembic.
revision = '1f97f799a477'
down_revision = '2df9ce70bad'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated ... | 23.37037 | 82 | 0.70206 | 79 | 631 | 5.531646 | 0.544304 | 0.09611 | 0.09611 | 0.105263 | 0.201373 | 0.201373 | 0.201373 | 0.201373 | 0 | 0 | 0 | 0.087619 | 0.167987 | 631 | 26 | 83 | 24.269231 | 0.744762 | 0.48336 | 0 | 0 | 0 | 0 | 0.215017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ecf3dcc1c0914b06bad4a9556b6b06a68e54449 | 2,612 | py | Python | turbinia/workers/analysis/postgresql_acct_test.py | jleaniz/turbinia | 78849bf292196e517fe149b2d4c4ab7000576b11 | [
"Apache-2.0"
] | null | null | null | turbinia/workers/analysis/postgresql_acct_test.py | jleaniz/turbinia | 78849bf292196e517fe149b2d4c4ab7000576b11 | [
"Apache-2.0"
] | null | null | null | turbinia/workers/analysis/postgresql_acct_test.py | jleaniz/turbinia | 78849bf292196e517fe149b2d4c4ab7000576b11 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2022 Google 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 ... | 36.788732 | 77 | 0.745023 | 321 | 2,612 | 5.897196 | 0.417445 | 0.025885 | 0.023244 | 0.022187 | 0.180137 | 0.180137 | 0.180137 | 0.141046 | 0.10037 | 0.10037 | 0 | 0.014831 | 0.148162 | 2,612 | 71 | 78 | 36.788732 | 0.835955 | 0.32121 | 0 | 0.166667 | 0 | 0 | 0.143681 | 0.018465 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.111111 | false | 0.111111 | 0.138889 | 0 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ed5ebddc6457b559b508614ad321953960871a9 | 1,012 | py | Python | fedsimul/utils/language_utils.py | cshjin/fedsimul | 1e2b9a9d9034fbc679dfaff059c42dea5642971d | [
"MIT"
] | 11 | 2021-05-07T01:28:26.000Z | 2022-03-10T08:23:16.000Z | fedsimul/utils/language_utils.py | cshjin/fedsimul | 1e2b9a9d9034fbc679dfaff059c42dea5642971d | [
"MIT"
] | 2 | 2021-08-13T10:12:13.000Z | 2021-08-31T02:03:20.000Z | fedsimul/utils/language_utils.py | cshjin/fedsimul | 1e2b9a9d9034fbc679dfaff059c42dea5642971d | [
"MIT"
] | 1 | 2021-06-08T07:23:22.000Z | 2021-06-08T07:23:22.000Z | ###############################################################################
# Utils functions for language models.
#
# NOTE: source from https://github.com/litian96/FedProx
###############################################################################
ALL_LETTERS = "\n !\"&'(),-.0123456789:;>?ABCDEFGHIJKLMNOPQRST... | 25.948718 | 98 | 0.559289 | 112 | 1,012 | 4.919643 | 0.482143 | 0.072595 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018248 | 0.187747 | 1,012 | 38 | 99 | 26.631579 | 0.652068 | 0.323123 | 0 | 0 | 0 | 0 | 0.010246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7edd2d6611c190c72458a52ee8280a39a0f6019d | 2,893 | py | Python | tokenize.py | jobsforher/Internship | 68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a | [
"Apache-2.0"
] | null | null | null | tokenize.py | jobsforher/Internship | 68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a | [
"Apache-2.0"
] | null | null | null | tokenize.py | jobsforher/Internship | 68d99e90c54b3ccf1f06bdc817b8a46f1f0fe97a | [
"Apache-2.0"
] | null | null | null | import re
from sys import argv
import sys
script, filename=argv
text=open(filename)
s=text.read()
y= re.split('\s+',s)
'''rite=open("new.txt", 'w')'''
temp=[]
values=[0,1,2,3,4,5,6,7,8,9,10,11,12,13]
stopword1=['with','more','than','for','a','an','the','then','to','I','as','am','and','is']
for word in y:
m=0... | 38.573333 | 418 | 0.382993 | 298 | 2,893 | 3.718121 | 0.35906 | 0.105596 | 0.16426 | 0.064982 | 0.221119 | 0.183213 | 0.141697 | 0.083935 | 0.043321 | 0.043321 | 0 | 0.06142 | 0.45973 | 2,893 | 74 | 419 | 39.094595 | 0.647473 | 0.009333 | 0 | 0.40625 | 0 | 0 | 0.138356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | 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 |
7ede2a1e09a4811ae478f01a896fc0510aa9e87d | 360 | py | Python | HPOBenchExperimentUtils/core/__init__.py | PhMueller/TrajectoryParser | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | null | null | null | HPOBenchExperimentUtils/core/__init__.py | PhMueller/TrajectoryParser | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | 1 | 2021-09-01T16:35:21.000Z | 2021-11-05T19:53:25.000Z | HPOBenchExperimentUtils/core/__init__.py | automl/HPOBenchExperimentUtils | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | null | null | null | WORKER_WAIT_FOR_SCHEDULER_TO_START_IN_S = 600
WORKER_WAIT_FOR_NAMESERVER_TO_START_IN_S = 300
SCHEDULER_PING_WORKERS_INTERVAL_IN_S = 10
SCHEDULER_TIMEOUT_WORKER_DISCOVERY_IN_S = 600
# See Explanation in HPOBenchExperimentUtils/__init__.py
try:
from HPOBenchExperimentUtils.optimizer.autogluon_optimizer import _obj_f... | 32.727273 | 78 | 0.875 | 50 | 360 | 5.68 | 0.64 | 0.042254 | 0.091549 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033742 | 0.094444 | 360 | 10 | 79 | 36 | 0.837423 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ee0306bca45832afc48ed42c697d3140fcc48e9 | 5,061 | py | Python | cron/main.py | opendatasoft/overpass-query-box | 8ba4fe876ff7959357ad780583b5b849d0ad62f5 | [
"MIT"
] | 3 | 2016-04-28T06:25:57.000Z | 2016-09-27T23:08:53.000Z | cron/main.py | opendatasoft/overpass-query-box | 8ba4fe876ff7959357ad780583b5b849d0ad62f5 | [
"MIT"
] | null | null | null | cron/main.py | opendatasoft/overpass-query-box | 8ba4fe876ff7959357ad780583b5b849d0ad62f5 | [
"MIT"
] | 4 | 2016-07-29T11:54:43.000Z | 2019-04-16T23:27:47.000Z | #!/usr/bin/env python
import sys
import os
import urllib
import requests
import shutil
import json
import datetime
from ftplib import FTP, error_perm, error_reply
API_URL = 'http://localhost/cgi-bin'
TIMEOUT_MINUTES = 15
HOURS_BEFORE_PROCESS = 24
if len(sys.argv) < 4:
sys.stderr.write('Usage : ./main.py FTP_SERV... | 36.941606 | 108 | 0.648093 | 669 | 5,061 | 4.681614 | 0.26009 | 0.038314 | 0.025543 | 0.015326 | 0.287676 | 0.183908 | 0.139847 | 0.115581 | 0.088123 | 0.088123 | 0 | 0.007009 | 0.238886 | 5,061 | 136 | 109 | 37.213235 | 0.806075 | 0.0492 | 0 | 0.189189 | 0 | 0 | 0.10718 | 0.004579 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.036036 | 0.072072 | null | null | 0.072072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.