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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57d62a7290f22879acd660bd8abc4fcb3931f2e2 | 9,272 | py | Python | malcolm/modules/scanning/hooks.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/modules/scanning/hooks.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/modules/scanning/hooks.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | from annotypes import Anno, Any, Array, Mapping, TYPE_CHECKING, NO_DEFAULT, \
Sequence, Union
from scanpointgenerator import CompoundGenerator
from .infos import ParameterTweakInfo, Info
from malcolm.compat import OrderedDict
from malcolm.core import VMeta
from malcolm.modules import builtin
from .infos import Co... | 39.122363 | 80 | 0.653149 | 1,052 | 9,272 | 5.653042 | 0.241445 | 0.020178 | 0.036321 | 0.034976 | 0.412477 | 0.395662 | 0.381201 | 0.375483 | 0.366403 | 0.356314 | 0 | 0.00088 | 0.264452 | 9,272 | 236 | 81 | 39.288136 | 0.871114 | 0.3228 | 0 | 0.375887 | 0 | 0 | 0.115246 | 0 | 0 | 0 | 0 | 0.012712 | 0.014184 | 1 | 0.070922 | false | 0.014184 | 0.056738 | 0 | 0.248227 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57d8abdc6a6b6f14264cea7345bc9cd93522d9d9 | 5,751 | py | Python | csi.py | purbe/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task | 7434d21a17c0e9c80f0aba5a95e17e5dd3b3480e | [
"Python-2.0",
"OLDAP-2.7"
] | 20 | 2020-11-12T12:51:59.000Z | 2022-03-15T09:19:55.000Z | csi.py | purbe/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task | 7434d21a17c0e9c80f0aba5a95e17e5dd3b3480e | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2021-05-16T07:38:28.000Z | 2022-03-16T05:55:51.000Z | csi.py | purbe/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task | 7434d21a17c0e9c80f0aba5a95e17e5dd3b3480e | [
"Python-2.0",
"OLDAP-2.7"
] | 10 | 2020-11-19T03:00:46.000Z | 2022-03-21T14:59:55.000Z | #################################
# CSI function
#################################
#########################################################
# import libraries
import scipy.spatial.distance as ssd
import numpy as np
import scipy.io as sio
#########################################################
# Function... | 35.282209 | 114 | 0.571205 | 1,048 | 5,751 | 2.802481 | 0.104008 | 0.104869 | 0.016343 | 0.065373 | 0.672795 | 0.645557 | 0.645557 | 0.645557 | 0.621042 | 0.621042 | 0 | 0.011806 | 0.248826 | 5,751 | 162 | 115 | 35.5 | 0.668056 | 0.139802 | 0 | 0.625 | 0 | 0 | 0.023746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.03125 | 0 | 0.072917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57df116f88da33e78920f942b4b3afcd76e9698f | 1,214 | py | Python | src/solve_all_sudokus.py | Lgt2x/PIT_doku | d39afc3fd1ab12e3ac1c57e03b6fea0a10cacc29 | [
"Apache-2.0"
] | null | null | null | src/solve_all_sudokus.py | Lgt2x/PIT_doku | d39afc3fd1ab12e3ac1c57e03b6fea0a10cacc29 | [
"Apache-2.0"
] | null | null | null | src/solve_all_sudokus.py | Lgt2x/PIT_doku | d39afc3fd1ab12e3ac1c57e03b6fea0a10cacc29 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from grid import SudokuGrid
from solver import SudokuSolver
import os.path
import time
import multiprocessing
def solve_all(running_times):
for l in range(1, 245):
g = SudokuGrid.from_file(os.path.join(os.path.dirname(__file__), "..", "sudoku_db.txt", l)
start = time.monoto... | 31.128205 | 98 | 0.627677 | 164 | 1,214 | 4.469512 | 0.487805 | 0.14734 | 0.030014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031315 | 0.210873 | 1,214 | 38 | 99 | 31.947368 | 0.73382 | 0 | 0 | 0 | 0 | 0.033333 | 0.201342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57e0996944386e20c475499e45c0c14a36d84de0 | 475 | py | Python | allmychanges/auth/pipeline.py | AllMyChanges/allmychanges.com | 6729e9bddee8f76068737383d641ca3bc6e85422 | [
"BSD-2-Clause"
] | 46 | 2015-01-31T10:19:26.000Z | 2019-07-01T14:00:01.000Z | allmychanges/auth/pipeline.py | AllMyChanges/allmychanges.com | 6729e9bddee8f76068737383d641ca3bc6e85422 | [
"BSD-2-Clause"
] | 59 | 2015-02-27T12:01:22.000Z | 2021-06-10T23:01:10.000Z | allmychanges/auth/pipeline.py | AllMyChanges/allmychanges.com | 6729e9bddee8f76068737383d641ca3bc6e85422 | [
"BSD-2-Clause"
] | 11 | 2015-02-22T19:55:13.000Z | 2020-06-05T18:20:03.000Z | from ..models import Changelog
def add_default_package(strategy, is_new=None, user=None, *args, **kwargs):
if is_new:
try:
changelog = Changelog.objects.get(
namespace='web', name='allmychanges')
except Changelog.DoesNotExist:
changelog = Changelog.objects.cr... | 33.928571 | 75 | 0.612632 | 48 | 475 | 5.979167 | 0.645833 | 0.034843 | 0.174216 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271579 | 475 | 13 | 76 | 36.538462 | 0.82948 | 0 | 0 | 0 | 0 | 0 | 0.141053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57ef3ee89eaf19df5cc95500f2bef2afabf79ecb | 312 | py | Python | setup.py | Zwork101/engage | e2aaf54f9412fce3dc25791e004f86e2e6414dd4 | [
"MIT"
] | null | null | null | setup.py | Zwork101/engage | e2aaf54f9412fce3dc25791e004f86e2e6414dd4 | [
"MIT"
] | null | null | null | setup.py | Zwork101/engage | e2aaf54f9412fce3dc25791e004f86e2e6414dd4 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="engage",
description="Sphinx autodoc templater",
author="Nathan Zilora",
author_email="zwork101@gmail.com",
url="https://github.com/Zwork101/engage",
license="MIT",
packages=['engage'],
version="1.0.0",
install_requires=["astor"]
)
| 20.8 | 45 | 0.657051 | 36 | 312 | 5.638889 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035156 | 0.179487 | 312 | 14 | 46 | 22.285714 | 0.757813 | 0 | 0 | 0 | 0 | 0 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57f0e8a525854fcebdebe44bb1e96d7a10b88ae3 | 957 | py | Python | PART06/12_df_merge.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | 1 | 2021-01-21T09:11:51.000Z | 2021-01-21T09:11:51.000Z | PART06/12_df_merge.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | PART06/12_df_merge.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 11 22:19:36 2020
@author: arti
"""
import pandas as pd
pd.set_option('display.max_columns', 10)
pd.set_option('display.max_colwidth', 20)
pd.set_option('display.unicode.east_asian_width', True)
df1 = pd.read_excel('./stock price.xlsx')
df2 = pd.r... | 19.14 | 60 | 0.646813 | 145 | 957 | 4.110345 | 0.37931 | 0.134228 | 0.067114 | 0.087248 | 0.271812 | 0.120805 | 0.120805 | 0.120805 | 0.120805 | 0 | 0 | 0.046626 | 0.14838 | 957 | 49 | 61 | 19.530612 | 0.684663 | 0.098224 | 0 | 0.310345 | 0 | 0 | 0.204465 | 0.037603 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.517241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
17a92e066eb6a9c546dfa5d91f8ca40b0b7c7c5d | 1,871 | py | Python | src/apps/users/models/client_address.py | leonardon473/my-dinner-backend | ae64fca37d102ce5bda7570be8680e03e9b142d8 | [
"MIT"
] | null | null | null | src/apps/users/models/client_address.py | leonardon473/my-dinner-backend | ae64fca37d102ce5bda7570be8680e03e9b142d8 | [
"MIT"
] | null | null | null | src/apps/users/models/client_address.py | leonardon473/my-dinner-backend | ae64fca37d102ce5bda7570be8680e03e9b142d8 | [
"MIT"
] | null | null | null | # -----------------------------------------------------------------------------
# Libraries
# -----------------------------------------------------------------------------
# Core libs
from typing import TYPE_CHECKING
# Third party libs
from django.db import models
# Project libs
# If type checking, __all__
if TYPE_C... | 31.183333 | 79 | 0.414751 | 142 | 1,871 | 5.21831 | 0.471831 | 0.101215 | 0.097166 | 0.129555 | 0.11336 | 0.078273 | 0 | 0 | 0 | 0 | 0 | 0.005925 | 0.188135 | 1,871 | 59 | 80 | 31.711864 | 0.481896 | 0.397114 | 0 | 0 | 0 | 0 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.032258 | 0.064516 | 0.032258 | 0.483871 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17b4de70a997b5685c4fab2d1c122d70af98dde5 | 857 | py | Python | src/apialchemy/service/__init__.py | homedepot/apialchemy | 497d4caae228f4d73827ce7581c58d70194e5f2d | [
"MIT"
] | 1 | 2022-03-02T18:35:23.000Z | 2022-03-02T18:35:23.000Z | src/apialchemy/service/__init__.py | homedepot/apialchemy | 497d4caae228f4d73827ce7581c58d70194e5f2d | [
"MIT"
] | null | null | null | src/apialchemy/service/__init__.py | homedepot/apialchemy | 497d4caae228f4d73827ce7581c58d70194e5f2d | [
"MIT"
] | null | null | null | import importlib
import re
def parse_uri(uri):
pattern = re.compile(
r'^(?P<vendor>\w+)(?:\+(?P<scheme>http|https))?://(?P<conn_str>.*)',
re.X,
)
m = pattern.match(uri)
if m is not None:
components = m.groupdict()
return ServiceConnection(components['vendor'], compon... | 19.930233 | 100 | 0.623104 | 108 | 857 | 4.814815 | 0.351852 | 0.080769 | 0.042308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246208 | 857 | 42 | 101 | 20.404762 | 0.804954 | 0 | 0 | 0.074074 | 0 | 0 | 0.120187 | 0.074679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
17b5a6d2d7118ef0699708054acfa242ebc2beca | 1,920 | py | Python | 36.Notepad.py | sarincr/GUI-With-Tkinter-using-Python | 3b57fc4aeed9e4a3018fc940bafdb4160ec853fc | [
"MIT"
] | null | null | null | 36.Notepad.py | sarincr/GUI-With-Tkinter-using-Python | 3b57fc4aeed9e4a3018fc940bafdb4160ec853fc | [
"MIT"
] | null | null | null | 36.Notepad.py | sarincr/GUI-With-Tkinter-using-Python | 3b57fc4aeed9e4a3018fc940bafdb4160ec853fc | [
"MIT"
] | null | null | null | from tkinter import *
import tkinter as tks
from tkinter import IntVar
tk = Tk()
tk.geometry('500x500')
tk.title('Notepad')
main_menu = tks.Menu()
file = Menu(main_menu, tearoff = False)
edit = Menu(main_menu, tearoff = False)
view = Menu(main_menu, tearoff = False)
theme = Menu(main_menu, tearoff = False)
main_menu... | 32 | 89 | 0.678125 | 264 | 1,920 | 4.82197 | 0.310606 | 0.112333 | 0.153181 | 0.204242 | 0.516889 | 0.065986 | 0.065986 | 0.065986 | 0 | 0 | 0 | 0.028711 | 0.147396 | 1,920 | 59 | 90 | 32.542373 | 0.748931 | 0 | 0 | 0 | 0 | 0 | 0.154167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17b7169727df4b018420b7a2cf2c34adcf1f4081 | 6,477 | py | Python | third-party-synthetic/active-gate-extensions/extension-third-party-sftp/src/sftp_extension.py | ruxit/ruxit-api | 150f599c8834b3fa1521a4369dad00933dde6afa | [
"BSD-3-Clause"
] | 1 | 2015-11-12T15:21:47.000Z | 2015-11-12T15:21:47.000Z | third-party-synthetic/active-gate-extensions/extension-third-party-sftp/src/sftp_extension.py | ruxit/data-export-api | 150f599c8834b3fa1521a4369dad00933dde6afa | [
"BSD-3-Clause"
] | null | null | null | third-party-synthetic/active-gate-extensions/extension-third-party-sftp/src/sftp_extension.py | ruxit/data-export-api | 150f599c8834b3fa1521a4369dad00933dde6afa | [
"BSD-3-Clause"
] | null | null | null | import logging
from typing import List
from datetime import datetime
from sftp_client import SFTPClient
from ruxit.api.base_plugin import RemoteBasePlugin
from dynatrace import Dynatrace
from dynatrace.environment_v1.synthetic_third_party import SYNTHETIC_EVENT_TYPE_OUTAGE, SyntheticTestStep, SyntheticMonitorStepResul... | 49.068182 | 173 | 0.621275 | 744 | 6,477 | 5.134409 | 0.192204 | 0.073298 | 0.095288 | 0.031414 | 0.29712 | 0.234293 | 0.178796 | 0.172251 | 0.172251 | 0.15445 | 0 | 0.004509 | 0.280994 | 6,477 | 132 | 174 | 49.068182 | 0.815761 | 0 | 0 | 0.072072 | 0 | 0.009009 | 0.145878 | 0.014356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.063063 | 0.063063 | 0 | 0.117117 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
17b9ed531a5f1e65f27416551bf103ebf92f1ce5 | 1,746 | py | Python | openslides/agenda/migrations/0002_item_duration.py | swilde/OpenSlides | 23ae32a75892005632784652d108836d1ba09da9 | [
"MIT"
] | 3 | 2021-02-11T20:45:58.000Z | 2022-02-09T21:59:42.000Z | openslides/agenda/migrations/0002_item_duration.py | swilde/OpenSlides | 23ae32a75892005632784652d108836d1ba09da9 | [
"MIT"
] | 2 | 2021-11-02T15:48:16.000Z | 2022-03-02T08:38:19.000Z | openslides/agenda/migrations/0002_item_duration.py | swilde/OpenSlides | 23ae32a75892005632784652d108836d1ba09da9 | [
"MIT"
] | 3 | 2021-01-18T11:44:05.000Z | 2022-01-19T16:00:23.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-22 11:08
from __future__ import unicode_literals
from django.db import migrations, models
def convert_duration(apps, schema_editor):
"""
Converts the values of the old duration CharField to new duration
IntegerField. It uses the temporary fi... | 30.103448 | 75 | 0.609966 | 211 | 1,746 | 4.92891 | 0.50237 | 0.052885 | 0.043269 | 0.042308 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.278351 | 1,746 | 57 | 76 | 30.631579 | 0.801587 | 0.223368 | 0 | 0.057143 | 1 | 0 | 0.061691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17bba3486e5bed0546f0c7c148c3d03d35359fe9 | 1,543 | py | Python | manage.py | tydonk/blogful | 4b54f2249b2ebc8ed139cb7bfc8ffb3d75e94e50 | [
"MIT"
] | 1 | 2017-07-06T05:19:17.000Z | 2017-07-06T05:19:17.000Z | manage.py | tydonk/blogful | 4b54f2249b2ebc8ed139cb7bfc8ffb3d75e94e50 | [
"MIT"
] | null | null | null | manage.py | tydonk/blogful | 4b54f2249b2ebc8ed139cb7bfc8ffb3d75e94e50 | [
"MIT"
] | null | null | null | import os
from flask_script import Manager
from blog import app
from blog.database import session, Entry
manager = Manager(app)
@manager.command
def run():
port = int(os.environ.get('PORT', 8080))
app.run(host='0.0.0.0', port=port)
@manager.command
def seed():
content = """TEST TEST TEST, these entries ... | 26.152542 | 85 | 0.655865 | 197 | 1,543 | 5.025381 | 0.431472 | 0.032323 | 0.048485 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011755 | 0.228127 | 1,543 | 59 | 86 | 26.152542 | 0.819479 | 0 | 0 | 0.106383 | 0 | 0 | 0.143782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.148936 | 0.191489 | 0 | 0.319149 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
17bcfac221db351ea933f62d0bcac8cdb46be235 | 3,486 | py | Python | conpaas-services/src/conpaas/services/taskfarm/agent/agent.py | bopopescu/conpaas-1 | cea3c02f499a729464697de7cf98c2041febc0ab | [
"BSD-3-Clause"
] | 5 | 2016-02-24T14:44:03.000Z | 2020-11-29T19:18:40.000Z | conpaas-services/src/conpaas/services/taskfarm/agent/agent.py | bopopescu/conpaas-1 | cea3c02f499a729464697de7cf98c2041febc0ab | [
"BSD-3-Clause"
] | 25 | 2015-03-23T16:05:19.000Z | 2018-02-13T17:22:22.000Z | conpaas-services/src/conpaas/services/taskfarm/agent/agent.py | bopopescu/conpaas-1 | cea3c02f499a729464697de7cf98c2041febc0ab | [
"BSD-3-Clause"
] | 3 | 2018-09-14T16:54:14.000Z | 2020-07-26T03:14:56.000Z | # -*- coding: utf-8 -*-
"""
:copyright: (C) 2010-2013 by Contrail Consortium.
"""
from subprocess import Popen
from conpaas.core.expose import expose
from conpaas.core.https.server import HttpJsonResponse
from conpaas.core.agent import BaseAgent
class TaskFarmAgent(BaseAgent):
"""Agent class with the follow... | 35.212121 | 80 | 0.617613 | 449 | 3,486 | 4.670379 | 0.376392 | 0.01526 | 0.035765 | 0.028612 | 0.261326 | 0.181688 | 0.181688 | 0.154506 | 0.087744 | 0 | 0 | 0.010081 | 0.260184 | 3,486 | 98 | 81 | 35.571429 | 0.803024 | 0.315835 | 0 | 0.125 | 0 | 0 | 0.222514 | 0.041612 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.0625 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17c353ab1e519be59b970bfdce5eb121924e8663 | 3,557 | py | Python | reversi/strategies/AlphaBetaMethods/GetScore.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | 10 | 2020-07-24T22:04:51.000Z | 2022-03-25T06:09:48.000Z | reversi/strategies/AlphaBetaMethods/GetScore.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | 12 | 2021-04-30T09:53:18.000Z | 2022-02-25T04:16:02.000Z | reversi/strategies/AlphaBetaMethods/GetScore.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | 1 | 2021-11-25T13:12:32.000Z | 2021-11-25T13:12:32.000Z | """Get Score of AlphaBeta strategy
"""
import time
from reversi.strategies.common import Timer, Measure
def get_score(alphabeta, color, board, alpha, beta, depth, pid):
"""get_score
"""
return _get_score(_get_score, alphabeta, color, board, alpha, beta, depth, pid)
def get_score_measure(alphabeta, col... | 29.890756 | 200 | 0.642676 | 480 | 3,557 | 4.50625 | 0.158333 | 0.10356 | 0.131761 | 0.166436 | 0.540453 | 0.540453 | 0.492372 | 0.492372 | 0.492372 | 0.423024 | 0 | 0.004865 | 0.248805 | 3,557 | 118 | 201 | 30.144068 | 0.804641 | 0.083497 | 0 | 0.196721 | 0 | 0 | 0.010948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0 | 0.032787 | 0 | 0.409836 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17c659fa4271ff508f7740ffc9b68834a9ca6c1d | 388 | py | Python | course/migrations/0005_coursesmodel_slug.py | dewale005/whitefieldcoursesite | e96277de34d0e7d464482cda787f1ee41fbe64fe | [
"MIT"
] | null | null | null | course/migrations/0005_coursesmodel_slug.py | dewale005/whitefieldcoursesite | e96277de34d0e7d464482cda787f1ee41fbe64fe | [
"MIT"
] | null | null | null | course/migrations/0005_coursesmodel_slug.py | dewale005/whitefieldcoursesite | e96277de34d0e7d464482cda787f1ee41fbe64fe | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-25 17:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0004_coursesmodel_thumbnail'),
]
operations = [
migrations.AddField(
model_name='coursesmodel',
name='slug... | 20.421053 | 50 | 0.595361 | 39 | 388 | 5.846154 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068592 | 0.286082 | 388 | 18 | 51 | 21.555556 | 0.754513 | 0.115979 | 0 | 0 | 1 | 0 | 0.143695 | 0.079179 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17cb35e5a6fde1b9eb8a06e953087545afa9dac1 | 2,835 | py | Python | test/core/diagnosticstore.py | SabineEmbacher/xcube | 25863c713a27f1ecf6efb25ee0de8d322ab295bc | [
"MIT"
] | null | null | null | test/core/diagnosticstore.py | SabineEmbacher/xcube | 25863c713a27f1ecf6efb25ee0de8d322ab295bc | [
"MIT"
] | null | null | null | test/core/diagnosticstore.py | SabineEmbacher/xcube | 25863c713a27f1ecf6efb25ee0de8d322ab295bc | [
"MIT"
] | null | null | null | import time
from collections import MutableMapping
from types import MethodType
from typing import TypeVar, Iterator, List, Callable, Any, Tuple
_KT = TypeVar('_KT')
_VT = TypeVar('_VT')
_T_co = TypeVar('_T_co')
_VT_co = TypeVar('_VT_co')
class DiagnosticStore(MutableMapping):
def __init__(self,
... | 33.75 | 111 | 0.642681 | 363 | 2,835 | 4.636364 | 0.275482 | 0.053476 | 0.061794 | 0.070707 | 0.132501 | 0.061794 | 0 | 0 | 0 | 0 | 0 | 0.005866 | 0.218342 | 2,835 | 83 | 112 | 34.156627 | 0.75361 | 0 | 0 | 0 | 0 | 0 | 0.104056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.083333 | 0.116667 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
17d791039dcbee1831fbbb36e2dd5eec8b2429bf | 602 | py | Python | data_analysis/subsidy_distribution.py | Bermuhz/DataMiningCompetitionFirstPrize | e0202ceeb99fc6cb869906fd8e7cc79a173a315e | [
"MIT"
] | 128 | 2017-03-20T12:42:38.000Z | 2022-03-12T07:06:55.000Z | data_analysis/subsidy_distribution.py | Bermuhz/DataMiningCompetitionFirstPrize | e0202ceeb99fc6cb869906fd8e7cc79a173a315e | [
"MIT"
] | 4 | 2017-03-18T04:37:36.000Z | 2017-07-09T14:11:18.000Z | data_analysis/subsidy_distribution.py | Bermuhz/DataMiningCompetitionFirstPrize | e0202ceeb99fc6cb869906fd8e7cc79a173a315e | [
"MIT"
] | 77 | 2017-03-19T06:49:39.000Z | 2022-03-12T07:06:56.000Z | root_loc = "/Users/mac/Documents/contest/data/original_data/"
file_name = "subsidy_train.txt"
count_0 = 0
count_1000 = 0
count_1500 = 0
count_2000 = 0
lines = open(root_loc + file_name).readlines()
for line in lines:
temps = line.strip("\n").split(",")
subsidy = int(temps[1])
if subsidy == 0:
count_... | 28.666667 | 83 | 0.646179 | 95 | 602 | 3.863158 | 0.347368 | 0.081744 | 0.108992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.200997 | 602 | 21 | 84 | 28.666667 | 0.609148 | 0 | 0 | 0 | 0 | 0 | 0.12272 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17dd705d2c86f213131e8acbb5eefc95ce104e37 | 1,470 | py | Python | spyce/test/support.py | markrwilliams/capysicum | bf18a7fb200cc4dec73b3a9a2a642f3b3a048767 | [
"BSD-3-Clause"
] | 7 | 2015-05-11T05:53:06.000Z | 2021-08-31T11:16:16.000Z | spyce/test/support.py | markrwilliams/spyce | bf18a7fb200cc4dec73b3a9a2a642f3b3a048767 | [
"BSD-3-Clause"
] | 1 | 2015-02-18T07:19:56.000Z | 2015-02-18T07:27:08.000Z | spyce/test/support.py | markrwilliams/capysicum | bf18a7fb200cc4dec73b3a9a2a642f3b3a048767 | [
"BSD-3-Clause"
] | 1 | 2015-03-22T06:45:36.000Z | 2015-03-22T06:45:36.000Z | import contextlib
import tempfile
import unittest
import socket
import errno
import sys
import os
class ErrnoMixin(unittest.TestCase):
@contextlib.contextmanager
def assertRaisesWithErrno(self, exc, errno):
with self.assertRaises(exc) as caught_ce:
yield
self.assertTrue(caught_ce... | 28.269231 | 79 | 0.57483 | 164 | 1,470 | 5.067073 | 0.579268 | 0.018051 | 0.024067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.338776 | 1,470 | 51 | 80 | 28.823529 | 0.850823 | 0.166667 | 0 | 0 | 0 | 0 | 0.02379 | 0 | 0 | 0 | 0 | 0.019608 | 0.088235 | 1 | 0.088235 | false | 0 | 0.205882 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17decba7e9862a14a956117b9455d91f970365dc | 3,470 | py | Python | nere/ner_models/bilstm_att.py | WangShengguang/NERE | 4b8166aa348b9db207bb9a1e1da6eed5d567ae6f | [
"MIT"
] | null | null | null | nere/ner_models/bilstm_att.py | WangShengguang/NERE | 4b8166aa348b9db207bb9a1e1da6eed5d567ae6f | [
"MIT"
] | null | null | null | nere/ner_models/bilstm_att.py | WangShengguang/NERE | 4b8166aa348b9db207bb9a1e1da6eed5d567ae6f | [
"MIT"
] | 1 | 2021-08-21T09:21:21.000Z | 2021-08-21T09:21:21.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class BiLSTM_ATT(nn.Module):
def __init__(self, vocab_size, num_ent_tags, ent_emb_dim, batch_size, sequence_len):
super(BiLSTM_ATT, self).__init__()
self.batch_size = batch_size
self.vocab_size = vocab_size
self.emb... | 45.064935 | 113 | 0.660807 | 503 | 3,470 | 4.248509 | 0.240557 | 0.056153 | 0.046327 | 0.028077 | 0.231633 | 0.208236 | 0.139448 | 0.079551 | 0.079551 | 0.079551 | 0 | 0.01755 | 0.228242 | 3,470 | 76 | 114 | 45.657895 | 0.780433 | 0.254179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17e7ac15dbea9a79205a86e1e73969a87fd9d8a1 | 508 | py | Python | toolbox/visualization/bin/setup.py | brennengreen/NIRFAST-Parallel | 9ee2a40d039cbfcaf03acea82e91e25d350cc0a5 | [
"BSD-3-Clause"
] | 1 | 2015-03-18T01:57:36.000Z | 2015-03-18T01:57:36.000Z | toolbox/visualization/bin/setup.py | brennengreen/NIRFAST-Parallel | 9ee2a40d039cbfcaf03acea82e91e25d350cc0a5 | [
"BSD-3-Clause"
] | null | null | null | toolbox/visualization/bin/setup.py | brennengreen/NIRFAST-Parallel | 9ee2a40d039cbfcaf03acea82e91e25d350cc0a5 | [
"BSD-3-Clause"
] | null | null | null | # for building the exe:
# python setup.py py2exe --includes sip
from distutils.core import setup
from py2exe.build_exe import py2exe
from glob import glob
import py2exe
import sys
sys.path.append("C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT")
data_files = [("Mic... | 33.866667 | 136 | 0.722441 | 78 | 508 | 4.653846 | 0.474359 | 0.132231 | 0.132231 | 0.088154 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0 | 0.04955 | 0.125984 | 508 | 15 | 137 | 33.866667 | 0.768018 | 0.116142 | 0 | 0 | 0 | 0.181818 | 0.482679 | 0.184758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
17e85544a3be095ae298fdf2c22e89901a62351b | 1,740 | py | Python | ls/sampleproject/tests/test_square_builder.py | linuxsoftware/ls.SampleProject | c39b38d998b9333ec70c3342e8ec168f5e9f4d04 | [
"MIT"
] | null | null | null | ls/sampleproject/tests/test_square_builder.py | linuxsoftware/ls.SampleProject | c39b38d998b9333ec70c3342e8ec168f5e9f4d04 | [
"MIT"
] | null | null | null | ls/sampleproject/tests/test_square_builder.py | linuxsoftware/ls.SampleProject | c39b38d998b9333ec70c3342e8ec168f5e9f4d04 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# Unittests
# ------------------------------------------------------------------------------
import sys
import os.path
from unittest import TestCase
from ls.sampleproject import SquareBuilder
class TestSquareBuilder(TestCase):
def se... | 40.465116 | 80 | 0.522414 | 192 | 1,740 | 4.713542 | 0.302083 | 0.18232 | 0.088398 | 0.072928 | 0.152486 | 0.152486 | 0.059669 | 0.059669 | 0 | 0 | 0 | 0.018677 | 0.261494 | 1,740 | 42 | 81 | 41.428571 | 0.685603 | 0.095977 | 0 | 0.057143 | 0 | 0 | 0.006373 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.085714 | false | 0 | 0.114286 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17ebde2d561e6f123500ffaef6ba7a20dca1b5ce | 547 | py | Python | setup.py | m4ce/google-drive-api | c754f6c31e93befb518e64c4c61a05a839cfbf2b | [
"Apache-2.0"
] | 2 | 2016-06-20T07:36:52.000Z | 2020-10-07T15:45:25.000Z | setup.py | m4ce/google-drive-api | c754f6c31e93befb518e64c4c61a05a839cfbf2b | [
"Apache-2.0"
] | null | null | null | setup.py | m4ce/google-drive-api | c754f6c31e93befb518e64c4c61a05a839cfbf2b | [
"Apache-2.0"
] | 2 | 2020-11-11T14:05:42.000Z | 2021-03-05T03:29:33.000Z | from distutils.core import setup
version = '0.0.4'
setup(
name = 'google-drive-api',
packages = ['google_drive'],
version = version,
description = 'Python library for Google Drive API',
author = 'Matteo Cerutti',
author_email = 'matteo.cerutti@hotmail.co.uk',
url = 'https://github.com/m4ce/google-drive-... | 30.388889 | 91 | 0.685558 | 70 | 547 | 5.3 | 0.528571 | 0.207547 | 0.150943 | 0.091644 | 0.221024 | 0.221024 | 0.221024 | 0.221024 | 0.221024 | 0 | 0 | 0.010638 | 0.140768 | 547 | 17 | 92 | 32.176471 | 0.778723 | 0 | 0 | 0 | 0 | 0 | 0.478976 | 0.095064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17ed5606241e55a78cdc5059e4aa0c701bb4dec1 | 1,684 | py | Python | 810/HW04_Test_Qi_Zhao.py | qiblaqi/Stevens-Python-Course-ByQ.Zhao | b35391eaa31572f33641036367f91545c98b6f7c | [
"MIT"
] | null | null | null | 810/HW04_Test_Qi_Zhao.py | qiblaqi/Stevens-Python-Course-ByQ.Zhao | b35391eaa31572f33641036367f91545c98b6f7c | [
"MIT"
] | null | null | null | 810/HW04_Test_Qi_Zhao.py | qiblaqi/Stevens-Python-Course-ByQ.Zhao | b35391eaa31572f33641036367f91545c98b6f7c | [
"MIT"
] | null | null | null | """
this is a program contains Test Class for HW04
Written by Qi Zhao
"""
import unittest as ut
import HW04_Qi_Zhao as HW04
class TestFraction(ut.TestCase):
#Test cases class with extended test cases.
def test_simplify(self):
self.assertEqual(HW04.Fraction(9, 27).simplify(),HW04.Fraction(1,3))
... | 36.608696 | 85 | 0.670428 | 236 | 1,684 | 4.669492 | 0.326271 | 0.136116 | 0.172414 | 0.076225 | 0.462795 | 0.419238 | 0.184211 | 0.118875 | 0.118875 | 0.118875 | 0 | 0.064633 | 0.182304 | 1,684 | 45 | 86 | 37.422222 | 0.735657 | 0.152613 | 0 | 0 | 0 | 0 | 0.067138 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17efa9620278c6b0674a207105cf5378c64d9725 | 926 | py | Python | v2ex_daily_mission/notifier/slack.py | lord63/v2ex_daily_mission | 5fb62dc3efbf7c57aa6bad37f3d5ce2fc479dabd | [
"MIT"
] | 44 | 2015-07-11T15:39:43.000Z | 2022-02-06T05:31:19.000Z | v2ex_daily_mission/notifier/slack.py | lord63/v2ex_daily_mission | 5fb62dc3efbf7c57aa6bad37f3d5ce2fc479dabd | [
"MIT"
] | 13 | 2015-06-28T12:23:18.000Z | 2021-02-13T13:39:12.000Z | v2ex_daily_mission/notifier/slack.py | lord63/v2ex_daily_mission | 5fb62dc3efbf7c57aa6bad37f3d5ce2fc479dabd | [
"MIT"
] | 5 | 2016-04-22T02:42:25.000Z | 2017-08-01T14:53:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import json
import requests
from v2ex_daily_mission.notifier.abc import Notifier, NotificationSendFailedException
class SlackNotifier(Notifier):
def __init__(self, config):
self.config = config
def send_notificati... | 29.870968 | 88 | 0.615551 | 89 | 926 | 6.247191 | 0.516854 | 0.053957 | 0.057554 | 0.190647 | 0.226619 | 0.226619 | 0 | 0 | 0 | 0 | 0 | 0.004518 | 0.282937 | 926 | 30 | 89 | 30.866667 | 0.832831 | 0.045356 | 0 | 0.090909 | 0 | 0 | 0.157596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17f2c4aec934c68192838696c824b0a7166d141f | 18,162 | py | Python | Day_6_Lists/lists_g1.py | ValRCS/Python_TietoEvry_Sep2021 | e11dac38deb17ba695ce8ad9dab9cf78b4adb99d | [
"MIT"
] | null | null | null | Day_6_Lists/lists_g1.py | ValRCS/Python_TietoEvry_Sep2021 | e11dac38deb17ba695ce8ad9dab9cf78b4adb99d | [
"MIT"
] | null | null | null | Day_6_Lists/lists_g1.py | ValRCS/Python_TietoEvry_Sep2021 | e11dac38deb17ba695ce8ad9dab9cf78b4adb99d | [
"MIT"
] | null | null | null | # # # you have some similar items that you want to store
# a1 = 3
# a2 = 5
# a3 = 8
# # ...
# a100 = 151
# # # # # # # There has to be a better way
# #
# # # # # # # # # What is a list after all?
# # # # # # # # # * ordered
# # # # # # # # # * collection of arbitrary objects (anything goes in)
# # # # # # # # # * neste... | 40.36 | 127 | 0.660885 | 2,937 | 18,162 | 3.955397 | 0.161389 | 0.046139 | 0.026857 | 0.023414 | 0.259447 | 0.178962 | 0.145649 | 0.107773 | 0.078678 | 0.071705 | 0 | 0.016139 | 0.191444 | 18,162 | 449 | 128 | 40.449889 | 0.774872 | 0.636053 | 0 | 0.240642 | 0 | 0 | 0.113174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.57754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
17f756748071512ec18774bee5549ffe2ea46d1b | 1,230 | py | Python | libcity/executor/map_matching_executor.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 221 | 2021-09-06T03:33:31.000Z | 2022-03-28T05:36:49.000Z | libcity/executor/map_matching_executor.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 43 | 2021-09-19T16:12:28.000Z | 2022-03-31T16:29:03.000Z | libcity/executor/map_matching_executor.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 64 | 2021-09-06T07:56:10.000Z | 2022-03-25T08:48:35.000Z | from logging import getLogger
from libcity.executor.abstract_tradition_executor import AbstractTraditionExecutor
from libcity.utils import get_evaluator
class MapMatchingExecutor(AbstractTraditionExecutor):
def __init__(self, config, model):
self.model = model
self.config = config
self.ev... | 32.368421 | 94 | 0.652033 | 139 | 1,230 | 5.539568 | 0.359712 | 0.062338 | 0.035065 | 0.050649 | 0.062338 | 0.062338 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241463 | 1,230 | 37 | 95 | 33.243243 | 0.825295 | 0.143089 | 0 | 0 | 0 | 0 | 0.10031 | 0.06515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aa037cfb816ea6f8b0c3e924a35cb7443beaed6f | 6,002 | py | Python | src/sphinx_c_autodoc/napoleon/__init__.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 7 | 2020-06-06T06:47:31.000Z | 2021-12-12T14:18:08.000Z | src/sphinx_c_autodoc/napoleon/__init__.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 15 | 2020-03-12T01:43:24.000Z | 2021-04-21T06:45:13.000Z | src/sphinx_c_autodoc/napoleon/__init__.py | speedyleion/sphinx-c-doc | 65721f7164a463742bc2d0b18a92b2d633a5eb3a | [
"MIT",
"Unlicense"
] | 1 | 2021-08-05T20:23:01.000Z | 2021-08-05T20:23:01.000Z | """
Extend napoleon to provide a `Members` section for C structs and unions
similar to the `Attributes` section in python objects.
"""
from functools import partial
from typing import Optional, Any, List, Union, Dict, Callable
from sphinx.config import Config
from sphinx.ext.autodoc import Options
from sphinx.applica... | 39.228758 | 82 | 0.627458 | 702 | 6,002 | 5.190883 | 0.290598 | 0.066685 | 0.05708 | 0.078485 | 0.104281 | 0.060922 | 0.046103 | 0.046103 | 0 | 0 | 0 | 0.000227 | 0.265745 | 6,002 | 152 | 83 | 39.486842 | 0.826639 | 0.376541 | 0 | 0.027397 | 0 | 0 | 0.100552 | 0.007265 | 0 | 0 | 0 | 0.019737 | 0 | 1 | 0.068493 | false | 0 | 0.09589 | 0 | 0.205479 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa054ef8c1d338ecf779835a1bdedddcb5a144fe | 4,797 | py | Python | games/detection_game.py | ieee-uh-makers/pi-workshop | c3518694c3e4b893add34ca523945a205a6676dd | [
"MIT"
] | null | null | null | games/detection_game.py | ieee-uh-makers/pi-workshop | c3518694c3e4b893add34ca523945a205a6676dd | [
"MIT"
] | null | null | null | games/detection_game.py | ieee-uh-makers/pi-workshop | c3518694c3e4b893add34ca523945a205a6676dd | [
"MIT"
] | null | null | null | import time
from typing import List
import random
class Region(object):
def __init__(self, x, y, w, h):
self.x = x
self.y = y
self.w = w
self.h = h
def __repr__(self):
return "X: %d Y: %d W: %d H: %d" % (self.x, self.y, self.w, self.h)
class DetectionGame(object):
... | 33.082759 | 101 | 0.480509 | 576 | 4,797 | 3.899306 | 0.121528 | 0.116207 | 0.193678 | 0.112199 | 0.616207 | 0.583704 | 0.493321 | 0.493321 | 0.475067 | 0.475067 | 0 | 0.061135 | 0.379404 | 4,797 | 144 | 102 | 33.3125 | 0.693315 | 0 | 0 | 0.477876 | 0 | 0 | 0.049614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088496 | false | 0 | 0.026549 | 0.00885 | 0.274336 | 0.035398 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa073d4eb154e1d571aca854fe9f1c52878eb331 | 1,326 | py | Python | attic/readjsonQ4.py | CitizenScienceInAstronomyWorkshop/pyIBCC | 35215648f3361689e374780182f39182eddda64f | [
"MIT"
] | 11 | 2015-01-05T14:03:00.000Z | 2020-05-31T07:22:20.000Z | attic/readjsonQ4.py | CitizenScienceInAstronomyWorkshop/pyIBCC | 35215648f3361689e374780182f39182eddda64f | [
"MIT"
] | 5 | 2015-03-10T18:24:24.000Z | 2018-04-03T12:52:40.000Z | attic/readjsonQ4.py | CitizenScienceInAstronomyWorkshop/pyIBCC | 35215648f3361689e374780182f39182eddda64f | [
"MIT"
] | 7 | 2015-03-16T11:35:08.000Z | 2018-04-24T05:45:51.000Z | # created 2013 Feb 23 by MES
# reads in all Q4 simulation json files in directory and outputs to Q4sim_positions.txt
# the start x and end x position of tne injected transit(s) if present
# not all Q4 simulations jsons will have a planet transit in it so if there is no planet transit
# present in a given json ... | 23.678571 | 98 | 0.603318 | 225 | 1,326 | 3.546667 | 0.391111 | 0.050125 | 0.030075 | 0.033835 | 0.181704 | 0.16792 | 0.16792 | 0.16792 | 0.117794 | 0.117794 | 0 | 0.035225 | 0.229261 | 1,326 | 55 | 99 | 24.109091 | 0.745597 | 0.315234 | 0 | 0.305556 | 0 | 0 | 0.094899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa134673f065b828a0ec37ecc625e86cd9eb1f43 | 11,130 | py | Python | django_crud/views.py | Francislley/crudDjango170118 | a5effc1d95cd04854f81667b5eb2405fa894cd96 | [
"MIT"
] | null | null | null | django_crud/views.py | Francislley/crudDjango170118 | a5effc1d95cd04854f81667b5eb2405fa894cd96 | [
"MIT"
] | null | null | null | django_crud/views.py | Francislley/crudDjango170118 | a5effc1d95cd04854f81667b5eb2405fa894cd96 | [
"MIT"
] | null | null | null | from copy import copy
import uuid
from pprint import pprint
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django import forms
from django.template.defaultfilters import striptags
from django.conf import settings
from django.utils.h... | 36.254072 | 147 | 0.651572 | 1,287 | 11,130 | 5.376068 | 0.177933 | 0.052031 | 0.031218 | 0.022113 | 0.414944 | 0.381703 | 0.329816 | 0.279809 | 0.253938 | 0.231247 | 0 | 0.000947 | 0.24133 | 11,130 | 306 | 148 | 36.372549 | 0.818451 | 0.042767 | 0 | 0.35 | 0 | 0 | 0.097071 | 0.013082 | 0 | 0 | 0 | 0.003268 | 0 | 0 | null | null | 0.004545 | 0.090909 | null | null | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa14b4a2eab071f9b1c94b20a474e4522be6f8f3 | 1,302 | py | Python | exercicio3.py | FelipeFerreiraSS/trabalho-logica-de-programacao-python-ads | 928ba05a3df5376e340078c2c4a33ed23ccf3646 | [
"MIT"
] | null | null | null | exercicio3.py | FelipeFerreiraSS/trabalho-logica-de-programacao-python-ads | 928ba05a3df5376e340078c2c4a33ed23ccf3646 | [
"MIT"
] | null | null | null | exercicio3.py | FelipeFerreiraSS/trabalho-logica-de-programacao-python-ads | 928ba05a3df5376e340078c2c4a33ed23ccf3646 | [
"MIT"
] | null | null | null | # Número de quantos alunos vão ser cadastrados
numeroAlunos = int(input('Quantos alunos quer cadastrar? '))
notasAlunos = {}
todosAlunos = []
# Usei um for que se repete na quantidade de vezes no número de alunos
for i in range(numeroAlunos):
notasAlunos['aluno'] = input('Qual o nome do aluno? ') # Pegando o nome... | 37.2 | 86 | 0.612135 | 191 | 1,302 | 4.17801 | 0.434555 | 0.056391 | 0.070175 | 0.075188 | 0.062657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028421 | 0.270353 | 1,302 | 34 | 87 | 38.294118 | 0.807368 | 0.339478 | 0 | 0.130435 | 0 | 0 | 0.216057 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa15b654804b39c9347d76757fe8093d6cb5b36a | 838 | py | Python | tests/adapters/test_array.py | zackw/pyamf | 59ca667e37a20d8464b098f4ebec89de6f319413 | [
"MIT"
] | 14 | 2017-05-04T17:22:30.000Z | 2020-01-23T06:30:19.000Z | tests/adapters/test_array.py | zackw/pyamf | 59ca667e37a20d8464b098f4ebec89de6f319413 | [
"MIT"
] | 1 | 2020-05-16T06:28:02.000Z | 2020-05-16T06:28:02.000Z | tests/adapters/test_array.py | zackw/pyamf | 59ca667e37a20d8464b098f4ebec89de6f319413 | [
"MIT"
] | 6 | 2017-09-13T19:30:35.000Z | 2021-07-26T14:41:57.000Z | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Tests for the L{array} L{miniamf.adapters._array} module.
@since: 0.5
"""
from __future__ import absolute_import
import array
import unittest
import miniamf
class ArrayTestCase(unittest.TestCase):
"""
"""
def setUp(self):
s... | 20.95 | 62 | 0.625298 | 109 | 838 | 4.733945 | 0.431193 | 0.067829 | 0.075581 | 0.093023 | 0.205426 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.224344 | 838 | 39 | 63 | 21.487179 | 0.784615 | 0.158711 | 0 | 0.105263 | 0 | 0 | 0.010219 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.210526 | false | 0 | 0.210526 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa169ac99052338d281aa3f87b18e605a398a2fd | 5,857 | py | Python | tests/v2/test_auth_api.py | emdeechege/Questionaire-API | 1dd05dc25f96ea8ecdce82fe28449ea684991251 | [
"MIT"
] | null | null | null | tests/v2/test_auth_api.py | emdeechege/Questionaire-API | 1dd05dc25f96ea8ecdce82fe28449ea684991251 | [
"MIT"
] | 20 | 2019-01-08T19:16:45.000Z | 2019-08-22T10:21:43.000Z | tests/v2/test_auth_api.py | emdeechege/Questioner-API | 1dd05dc25f96ea8ecdce82fe28449ea684991251 | [
"MIT"
] | 1 | 2019-01-11T10:13:42.000Z | 2019-01-11T10:13:42.000Z | import os,unittest, json
from app import create_app
from instance.config import app_config
from app.connect import QuestionerDB
app = create_app(app_config['testing'])
class UserTestCases(unittest.TestCase):
""" Base test class """
def setUp(self):
""" Defining test variables """
self.app = ... | 33.855491 | 92 | 0.558306 | 593 | 5,857 | 5.409781 | 0.244519 | 0.079489 | 0.034913 | 0.042394 | 0.364402 | 0.313279 | 0.287095 | 0.264651 | 0.221945 | 0.218204 | 0 | 0.029248 | 0.293666 | 5,857 | 172 | 93 | 34.052326 | 0.746193 | 0.158272 | 0 | 0.188525 | 0 | 0 | 0.218223 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 1 | 0.07377 | false | 0.090164 | 0.032787 | 0 | 0.114754 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aa16f6082c42f27d276ae691b9ac4c086cf537b0 | 1,858 | py | Python | pythontutorials/books/CrackingCodes/Ch08/PracticeQuestions/Question3.py | JoseALermaIII/python-tutorials | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | [
"MIT"
] | 2 | 2017-04-20T02:57:19.000Z | 2018-10-12T20:15:47.000Z | pythontutorials/books/CrackingCodes/Ch08/PracticeQuestions/Question3.py | JoseALermaIII/python-tutorials | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | [
"MIT"
] | 8 | 2021-03-18T21:50:16.000Z | 2022-03-11T23:38:01.000Z | pythontutorials/books/CrackingCodes/Ch08/PracticeQuestions/Question3.py | JoseALermaIII/python-tutorials | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | [
"MIT"
] | 3 | 2018-08-30T20:30:50.000Z | 2022-01-18T13:40:51.000Z | """Chapter 8 Practice Question 3
Draw the complete truth tables for the and, or, and not operators.
"""
def notTruthTable() -> None:
"""Not truth table.
Prints a truth table for the not operator.
Returns:
None. Only prints out a table.
"""
print(" _________________________\n",
... | 25.805556 | 66 | 0.541442 | 187 | 1,858 | 4.02139 | 0.262032 | 0.079787 | 0.06383 | 0.067819 | 0.441489 | 0.421543 | 0.371011 | 0.30984 | 0.178191 | 0.178191 | 0 | 0.002421 | 0.333154 | 1,858 | 71 | 67 | 26.169014 | 0.60452 | 0.269645 | 0 | 0.088235 | 0 | 0 | 0.554949 | 0.219797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | true | 0 | 0 | 0 | 0.205882 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa19ed1c412ee6882d81a4be3d5a393391452c07 | 246 | py | Python | app/models/res.py | Hansybx/guohe3 | 53990b92f5d45bac1c2b903fd8df9cb97283697e | [
"Apache-2.0"
] | 1 | 2019-08-18T13:16:14.000Z | 2019-08-18T13:16:14.000Z | app/models/res.py | Hansybx/guohe3 | 53990b92f5d45bac1c2b903fd8df9cb97283697e | [
"Apache-2.0"
] | 1 | 2019-08-19T02:05:32.000Z | 2022-02-11T07:27:37.000Z | app/models/res.py | Hansybx/guohe3 | 53990b92f5d45bac1c2b903fd8df9cb97283697e | [
"Apache-2.0"
] | 1 | 2019-08-18T09:08:25.000Z | 2019-08-18T09:08:25.000Z | """
-*- coding: utf-8 -*-
Time : 2019/7/19 8:25
Author : Hansybx
"""
class Res:
code = 200
msg = ''
info = {}
def __init__(self, code, msg, info):
self.code = code
self.msg = msg
self.info = info
| 12.947368 | 40 | 0.48374 | 32 | 246 | 3.59375 | 0.59375 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088608 | 0.357724 | 246 | 18 | 41 | 13.666667 | 0.639241 | 0.260163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
aa1cf3b8ee474321df7f8540c5c377240307bc7f | 2,104 | py | Python | fetch.py | JonathanKryza/TankFetch | a30937509328a4ddecf4c6af2ee4e9b09b74ff6b | [
"Apache-2.0"
] | 2 | 2020-07-21T19:16:07.000Z | 2021-01-23T02:00:48.000Z | fetch.py | JonathanKryza/TankFetch | a30937509328a4ddecf4c6af2ee4e9b09b74ff6b | [
"Apache-2.0"
] | null | null | null | fetch.py | JonathanKryza/TankFetch | a30937509328a4ddecf4c6af2ee4e9b09b74ff6b | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Jonathan Kryza. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 42.938776 | 175 | 0.670152 | 309 | 2,104 | 4.511327 | 0.527508 | 0.043042 | 0.031564 | 0.022956 | 0.070301 | 0.070301 | 0.040172 | 0.040172 | 0 | 0 | 0 | 0.034525 | 0.215304 | 2,104 | 48 | 176 | 43.833333 | 0.809812 | 0.569392 | 0 | 0 | 0 | 0 | 0.0906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa1fb53d473f735215f79a245d555247e08d6c74 | 2,720 | py | Python | src/spaceone/statistics/model/schedule_model.py | choonho/statistics | 31fbae2d0772a2e8b717ac12c8de9edd9d8f1734 | [
"Apache-2.0"
] | null | null | null | src/spaceone/statistics/model/schedule_model.py | choonho/statistics | 31fbae2d0772a2e8b717ac12c8de9edd9d8f1734 | [
"Apache-2.0"
] | null | null | null | src/spaceone/statistics/model/schedule_model.py | choonho/statistics | 31fbae2d0772a2e8b717ac12c8de9edd9d8f1734 | [
"Apache-2.0"
] | null | null | null | from mongoengine import *
from spaceone.core.model.mongo_model import MongoModel
class Scheduled(EmbeddedDocument):
cron = StringField(max_length=1024, default=None, null=True)
interval = IntField(min_value=1, max_value=60, default=None, null=True)
minutes = ListField(IntField(), default=None, null=True)... | 30.561798 | 98 | 0.6375 | 289 | 2,720 | 5.802768 | 0.301038 | 0.116875 | 0.166965 | 0.090638 | 0.386404 | 0.291592 | 0.228384 | 0.228384 | 0.203936 | 0.120453 | 0 | 0.01699 | 0.242647 | 2,720 | 88 | 99 | 30.909091 | 0.797087 | 0 | 0 | 0.430556 | 0 | 0 | 0.112868 | 0.023897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0.055556 | 0.597222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
aa29ca8213999d18ce4f504a1902da614cdffe87 | 342 | py | Python | challenges/array_shift/test_array_shift.py | ravewillow6383/data-structures-and-algorithms-python | 98533ee241a3ae452dab1ecb87aab39742005e35 | [
"MIT"
] | null | null | null | challenges/array_shift/test_array_shift.py | ravewillow6383/data-structures-and-algorithms-python | 98533ee241a3ae452dab1ecb87aab39742005e35 | [
"MIT"
] | null | null | null | challenges/array_shift/test_array_shift.py | ravewillow6383/data-structures-and-algorithms-python | 98533ee241a3ae452dab1ecb87aab39742005e35 | [
"MIT"
] | null | null | null | from array_shift import insert_shift_array
# def test_insert_to_middle():
# expected = [1, 2, 3]
# actual = insert_shift_array([1, 3], 2)
# assert expected == actual
def test_insert_to_middle():
expected = [1, 2, 3, 4, 5, 6]
actual = insert_shift_array([1, 2, 3, 5, 6], 4)
assert ... | 22.8 | 52 | 0.611111 | 51 | 342 | 3.843137 | 0.352941 | 0.168367 | 0.244898 | 0.153061 | 0.561224 | 0.326531 | 0.326531 | 0.326531 | 0.326531 | 0 | 0 | 0.071146 | 0.260234 | 342 | 14 | 53 | 24.428571 | 0.703557 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa311fb1f82ae5771acf4efd434ff88de72f9b1e | 385 | py | Python | ParsingProject/movie/migrations/0007_alter_movie_photo.py | rzhvn1/Parsing-APi | 3e22c5a0fabbdc733ec2263e71eb885fb901a65e | [
"MIT"
] | null | null | null | ParsingProject/movie/migrations/0007_alter_movie_photo.py | rzhvn1/Parsing-APi | 3e22c5a0fabbdc733ec2263e71eb885fb901a65e | [
"MIT"
] | null | null | null | ParsingProject/movie/migrations/0007_alter_movie_photo.py | rzhvn1/Parsing-APi | 3e22c5a0fabbdc733ec2263e71eb885fb901a65e | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-12 13:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0006_alter_movie_rating'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='photo',
... | 20.263158 | 55 | 0.594805 | 41 | 385 | 5.463415 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065693 | 0.288312 | 385 | 18 | 56 | 21.388889 | 0.751825 | 0.111688 | 0 | 0 | 1 | 0 | 0.126471 | 0.067647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa34de33ced36db7fb0882b53d53976ba0fb576e | 3,634 | py | Python | webware/Request.py | PeaceWorksTechnologySolutions/w4py3 | 7f9e7088034e3e3ac53158edfa4f377b5b2f45fe | [
"MIT"
] | 11 | 2020-10-18T07:33:56.000Z | 2021-09-27T21:03:38.000Z | webware/Request.py | PeaceWorksTechnologySolutions/w4py3 | 7f9e7088034e3e3ac53158edfa4f377b5b2f45fe | [
"MIT"
] | 9 | 2020-01-03T18:58:25.000Z | 2020-01-09T18:36:23.000Z | webware/Request.py | PeaceWorksTechnologySolutions/w4py3 | 7f9e7088034e3e3ac53158edfa4f377b5b2f45fe | [
"MIT"
] | 4 | 2020-06-30T09:41:56.000Z | 2021-02-20T13:48:08.000Z | """An abstract request"""
from MiscUtils import AbstractError
from MiscUtils.Funcs import asclocaltime
class Request:
"""The abstract request class.
Request is a base class that offers the following:
* A time stamp (indicating when the request was made)
* An input stream
* Remote request ... | 24.721088 | 79 | 0.641717 | 406 | 3,634 | 5.64532 | 0.347291 | 0.030541 | 0.047993 | 0.058901 | 0.244328 | 0.201571 | 0.189791 | 0.168848 | 0.138743 | 0.138743 | 0 | 0 | 0.285085 | 3,634 | 146 | 80 | 24.890411 | 0.882217 | 0.528894 | 0 | 0.194444 | 0 | 0 | 0.006401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.055556 | 0.027778 | 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 | 0 | 0 | 0 | 1 |
aa3af10d9a844eb507661558913634af492f1be3 | 1,226 | py | Python | Lintcode/Ladder_49_Binary_Index_Tree/207. Interval Sum II.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | Lintcode/Ladder_49_Binary_Index_Tree/207. Interval Sum II.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | Lintcode/Ladder_49_Binary_Index_Tree/207. Interval Sum II.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | class BITree:
def __init__(self, nums):
self.n = len(nums)
self.arr = [0 for _ in range(self.n)]
self.bitree = [0 for _ in range(self.n + 1)]
for i in range(self.n):
self.update(i, nums[i])
def update(self, i, val):
diff = val - self.arr[i]
... | 22.290909 | 53 | 0.474715 | 159 | 1,226 | 3.578616 | 0.251572 | 0.105448 | 0.057996 | 0.063269 | 0.091388 | 0.056239 | 0 | 0 | 0 | 0 | 0 | 0.010724 | 0.391517 | 1,226 | 55 | 54 | 22.290909 | 0.752011 | 0.022023 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0 | 0.066667 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa3ef79032f248a91926a292b7d672087dc8efaa | 3,360 | py | Python | src/crop_UCF_QNRF.py | xwjBupt/Counting-ICCV-DSSINet | 92e4c56c93572fb2b026d573c3e711ce85a4af8f | [
"MIT"
] | 63 | 2019-08-07T12:06:10.000Z | 2022-03-13T09:58:41.000Z | src/crop_UCF_QNRF.py | xwjBupt/Counting-ICCV-DSSINet | 92e4c56c93572fb2b026d573c3e711ce85a4af8f | [
"MIT"
] | 13 | 2019-09-03T13:50:38.000Z | 2021-09-20T01:01:49.000Z | Counting-ICCV-DSSINet/src/crop_UCF_QNRF.py | MassimoClementi/CV-Crowd-Counting | f148dc8a1aa99ddecb519a0637f801d96051c497 | [
"Unlicense"
] | 20 | 2019-10-19T10:21:50.000Z | 2021-12-29T13:14:33.000Z | import cv2
import scipy.io as scio
from scipy.ndimage import imread
from scipy.misc import imsave
import os
import re
import numpy as np
import itertools
def crop():
image_path = '/UCF-QNRF_ECCV18/Train/images'
label_path = '/UCF-QNRF_ECCV18/Train/ground_truth'
image_save_path = '/UCF-QNRF_ECCV18/Train/cro... | 53.333333 | 128 | 0.605655 | 512 | 3,360 | 3.736328 | 0.177734 | 0.104548 | 0.041819 | 0.035546 | 0.476738 | 0.39885 | 0.343962 | 0.276006 | 0.220596 | 0.168322 | 0 | 0.019508 | 0.237202 | 3,360 | 63 | 129 | 53.333333 | 0.726883 | 0.028869 | 0 | 0 | 0 | 0 | 0.065971 | 0.043265 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa481a172eda5279d74989c8c03384e89ee5a520 | 3,803 | py | Python | api/serializers.py | IzmdI/yamdb_reviews_api_service | cda968c19b249975a082998f79c4e7711c773b07 | [
"MIT"
] | null | null | null | api/serializers.py | IzmdI/yamdb_reviews_api_service | cda968c19b249975a082998f79c4e7711c773b07 | [
"MIT"
] | null | null | null | api/serializers.py | IzmdI/yamdb_reviews_api_service | cda968c19b249975a082998f79c4e7711c773b07 | [
"MIT"
] | null | null | null | from django.contrib.auth import password_validation
from django.contrib.auth.hashers import make_password
from django.core import exceptions
from rest_framework import serializers
from .models import Category, Comment, Genre, Review, Title, User
class UserSerializer(serializers.ModelSerializer):
password = seria... | 26.047945 | 76 | 0.612674 | 335 | 3,803 | 6.81194 | 0.289552 | 0.056968 | 0.032866 | 0.031551 | 0.272568 | 0.272568 | 0.178791 | 0.085013 | 0.085013 | 0.085013 | 0 | 0 | 0.288456 | 3,803 | 145 | 77 | 26.227586 | 0.843311 | 0 | 0 | 0.353448 | 0 | 0 | 0.078885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.077586 | 0.043103 | 0 | 0.336207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a4ac511034cbb029243925d945622e93471ddbfa | 1,318 | py | Python | approval_system/settings.py | rmboot/approvalsystem | b084ecb5fa4b401a052f3cf2a307af1d55f3c8fc | [
"MIT"
] | 3 | 2019-04-16T04:11:11.000Z | 2021-09-19T02:38:49.000Z | approval_system/settings.py | rmboot/approvalsystem | b084ecb5fa4b401a052f3cf2a307af1d55f3c8fc | [
"MIT"
] | 4 | 2019-06-04T11:14:22.000Z | 2021-09-08T01:11:26.000Z | approval_system/settings.py | rmboot/approvalsystem | b084ecb5fa4b401a052f3cf2a307af1d55f3c8fc | [
"MIT"
] | 4 | 2019-10-10T15:04:31.000Z | 2021-06-19T17:03:06.000Z | import os
import sys
basedir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
WIN = sys.platform.startswith('win')
if WIN:
prefix = 'sqlite:///'
else:
prefix = 'sqlite:////'
class BaseConfig:
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = os.urandom(24)
BOOTSTRAP_SERVE_LOCAL = ... | 29.288889 | 106 | 0.736722 | 149 | 1,318 | 6.288591 | 0.496644 | 0.115261 | 0.134472 | 0.083244 | 0.332978 | 0.283885 | 0.226254 | 0.226254 | 0.226254 | 0.226254 | 0 | 0.006206 | 0.144158 | 1,318 | 44 | 107 | 29.954545 | 0.824468 | 0.208649 | 0 | 0.068966 | 0 | 0 | 0.23025 | 0.142582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.62069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4b52c5129b221386d6e679a2e2bcea61312499a | 1,052 | py | Python | app/db/models.py | aarangop/floraqua-backend | 07fe220ba8d5cdcfccf5717d7043fad6b95c56d2 | [
"MIT"
] | null | null | null | app/db/models.py | aarangop/floraqua-backend | 07fe220ba8d5cdcfccf5717d7043fad6b95c56d2 | [
"MIT"
] | null | null | null | app/db/models.py | aarangop/floraqua-backend | 07fe220ba8d5cdcfccf5717d7043fad6b95c56d2 | [
"MIT"
] | null | null | null | from typing import Optional
from bson import ObjectId
from pydantic import BaseModel, Field
class PyObjectId(ObjectId):
@classmethod
def __get_validators__(cls):
yield cls.validate
@classmethod
def validate(cls, v):
if not ObjectId.is_valid(v):
raise ValueError("Invalid ob... | 25.047619 | 77 | 0.676806 | 119 | 1,052 | 5.756303 | 0.487395 | 0.061314 | 0.061314 | 0.072993 | 0.140146 | 0.140146 | 0.140146 | 0.140146 | 0 | 0 | 0 | 0.004932 | 0.229087 | 1,052 | 41 | 78 | 25.658537 | 0.839704 | 0 | 0 | 0.290323 | 0 | 0 | 0.023764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4b5d8f7131b9c8627c9493be04856193c8d5470 | 6,695 | py | Python | loremipsum.py | connordelacruz/python-loremipsum | 6aef62894c81ad2d6a2a43b882ba5e46ad40d3aa | [
"MIT"
] | 2 | 2019-11-28T01:38:48.000Z | 2021-02-18T14:16:27.000Z | loremipsum.py | connordelacruz/py-loremipsum | 6aef62894c81ad2d6a2a43b882ba5e46ad40d3aa | [
"MIT"
] | null | null | null | loremipsum.py | connordelacruz/py-loremipsum | 6aef62894c81ad2d6a2a43b882ba5e46ad40d3aa | [
"MIT"
] | null | null | null | import argparse
from urllib import request, error
import pyperclip
URL = 'https://loripsum.net/api/'
class ParagraphLength():
"""Constants for the ``paragraph_length`` parameter in generate()"""
#: List of values for paragraph lengths. Used internally.
OPTIONS = [
'short',
'medium',
... | 35.236842 | 99 | 0.650336 | 817 | 6,695 | 5.222766 | 0.298654 | 0.030935 | 0.023904 | 0.015468 | 0.214905 | 0.13663 | 0.072651 | 0.072651 | 0.072651 | 0.072651 | 0 | 0.001589 | 0.247946 | 6,695 | 189 | 100 | 35.42328 | 0.845879 | 0.411501 | 0 | 0.090909 | 1 | 0 | 0.186409 | 0 | 0 | 0 | 0 | 0.005291 | 0 | 1 | 0.063636 | false | 0 | 0.027273 | 0 | 0.209091 | 0.027273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4bb9d5a9e59c70384447bca2f17ec335d4c46ca | 1,690 | py | Python | security/migrations/0001_initial.py | CASDON-MYSTERY/studentapp | 0fd942e963a10a02a6c9f358dd362cfd646eecc3 | [
"MIT"
] | null | null | null | security/migrations/0001_initial.py | CASDON-MYSTERY/studentapp | 0fd942e963a10a02a6c9f358dd362cfd646eecc3 | [
"MIT"
] | null | null | null | security/migrations/0001_initial.py | CASDON-MYSTERY/studentapp | 0fd942e963a10a02a6c9f358dd362cfd646eecc3 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-09-04 23:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Security_Alert',
fields=[
('id', models.Aut... | 36.73913 | 114 | 0.549112 | 156 | 1,690 | 5.724359 | 0.410256 | 0.135498 | 0.076148 | 0.080627 | 0.416573 | 0.262038 | 0.262038 | 0.176932 | 0.176932 | 0.176932 | 0 | 0.02253 | 0.31716 | 1,690 | 45 | 115 | 37.555556 | 0.7513 | 0.026627 | 0 | 0.421053 | 1 | 0 | 0.181376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4d080f992f8d17167e20fab422f35edb3331e24 | 1,867 | py | Python | src/rubrix/metrics/text_classification/metrics.py | anunn1417/Rubrix | 8ae42bd7cefee531c68136dfd44165d3e3ef5f62 | [
"Apache-2.0"
] | null | null | null | src/rubrix/metrics/text_classification/metrics.py | anunn1417/Rubrix | 8ae42bd7cefee531c68136dfd44165d3e3ef5f62 | [
"Apache-2.0"
] | null | null | null | src/rubrix/metrics/text_classification/metrics.py | anunn1417/Rubrix | 8ae42bd7cefee531c68136dfd44165d3e3ef5f62 | [
"Apache-2.0"
] | null | null | null | from rubrix import _client_instance as client
from rubrix.metrics import helpers
from rubrix.metrics.models import MetricSummary
def f1(name: str) -> MetricSummary:
"""Computes the single label f1 metric for a dataset
Args:
name:
The dataset name.
Returns:
The f1 metric summa... | 28.287879 | 73 | 0.612748 | 198 | 1,867 | 5.69697 | 0.277778 | 0.092199 | 0.060284 | 0.049645 | 0.748227 | 0.631206 | 0.631206 | 0.631206 | 0.631206 | 0.631206 | 0 | 0.009084 | 0.292448 | 1,867 | 65 | 74 | 28.723077 | 0.844815 | 0.3985 | 0 | 0.413793 | 0 | 0 | 0.042074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4d6922d531217926370b588575d5ffddbb1f394 | 381 | py | Python | transaction_service/transactions/migrations/0010_rename_date_transactions_date_provided.py | deorz/TransactionService | f04a99f5546fda155b6bf072ff7d82ee73d2fee2 | [
"MIT"
] | null | null | null | transaction_service/transactions/migrations/0010_rename_date_transactions_date_provided.py | deorz/TransactionService | f04a99f5546fda155b6bf072ff7d82ee73d2fee2 | [
"MIT"
] | null | null | null | transaction_service/transactions/migrations/0010_rename_date_transactions_date_provided.py | deorz/TransactionService | f04a99f5546fda155b6bf072ff7d82ee73d2fee2 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-13 15:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('transactions', '0009_wallets_date_created'),
]
operations = [
migrations.RenameField(
model_name='transactions',
old_name='d... | 20.052632 | 54 | 0.603675 | 40 | 381 | 5.575 | 0.775 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070111 | 0.288714 | 381 | 18 | 55 | 21.166667 | 0.752768 | 0.11811 | 0 | 0 | 1 | 0 | 0.197605 | 0.07485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4dfa4fbc9f3a93dd8570199eb833c964f018803 | 2,470 | py | Python | sandbox/bing_news_api.py | lofmat/history_now | a6a7389a4faa5f0ba0b24229f4555ac129f9dac0 | [
"Apache-2.0"
] | null | null | null | sandbox/bing_news_api.py | lofmat/history_now | a6a7389a4faa5f0ba0b24229f4555ac129f9dac0 | [
"Apache-2.0"
] | null | null | null | sandbox/bing_news_api.py | lofmat/history_now | a6a7389a4faa5f0ba0b24229f4555ac129f9dac0 | [
"Apache-2.0"
] | null | null | null |
import json
import requests
url = "https://bing-news-search1.p.rapidapi.com/news"
querystring = {"safeSearch": "Off", "textFormat": "Raw"}
headers = {
'x-bingapis-sdk': "true",
'x-rapidapi-key': "e2f9480afemsh3384d03efb08d14p103f6ejsn0e4ed40bbbb4",
'x-rapidapi-host': "bing-news-search1.p.rapidapi.com"
... | 49.4 | 222 | 0.515789 | 236 | 2,470 | 5.330508 | 0.54661 | 0.047695 | 0.023847 | 0.025437 | 0.158983 | 0.158983 | 0.116057 | 0.116057 | 0.116057 | 0.116057 | 0 | 0.031098 | 0.166802 | 2,470 | 49 | 223 | 50.408163 | 0.580175 | 0.635628 | 0 | 0 | 0 | 0 | 0.287026 | 0.136625 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4e17ac8441f9a3d6713889184f4f3f9b92e935a | 3,457 | py | Python | scripts/validate_events.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | 2 | 2018-02-28T08:59:22.000Z | 2018-08-14T11:41:14.000Z | scripts/validate_events.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | null | null | null | scripts/validate_events.py | aureus5/mimiciII | 0ce15bb67a90b88dbe96e842dbe05d84b6b8ab59 | [
"MIT"
] | 2 | 2018-09-13T14:30:05.000Z | 2019-11-06T20:15:00.000Z | import os
import argparse
def is_subject_folder(x):
for c in x:
if (c < '0' or c > '9'):
return False
return True
def main():
parser = argparse.ArgumentParser()
parser.add_argument('subjects_root_path', type=str,
help='Directory containing subject sub-dire... | 32.92381 | 90 | 0.469193 | 338 | 3,457 | 4.606509 | 0.278107 | 0.063584 | 0.051381 | 0.051381 | 0.212588 | 0.212588 | 0.168915 | 0.168915 | 0.168915 | 0.168915 | 0 | 0.016219 | 0.429274 | 3,457 | 104 | 91 | 33.240385 | 0.772935 | 0.010992 | 0 | 0.141176 | 0 | 0 | 0.06411 | 0.006148 | 0 | 0 | 0 | 0 | 0.023529 | 0 | null | null | 0 | 0.023529 | null | null | 0.047059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4e5ed6b0c0600a4964ded7bb6ad9a1e7b2ff203 | 4,319 | py | Python | game/views.py | ruippgoncalves/CS2048 | af95b057123d094cf9711004fd72945efab235fa | [
"MIT"
] | null | null | null | game/views.py | ruippgoncalves/CS2048 | af95b057123d094cf9711004fd72945efab235fa | [
"MIT"
] | null | null | null | game/views.py | ruippgoncalves/CS2048 | af95b057123d094cf9711004fd72945efab235fa | [
"MIT"
] | null | null | null | """Views"""
import json
from math import log2
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render
from django.db import IntegrityError
from django.http import Json... | 30.202797 | 99 | 0.593193 | 458 | 4,319 | 5.565502 | 0.224891 | 0.0612 | 0.052962 | 0.051785 | 0.428796 | 0.397018 | 0.397018 | 0.367987 | 0.273441 | 0.234209 | 0 | 0.009174 | 0.24288 | 4,319 | 142 | 100 | 30.415493 | 0.770336 | 0.110211 | 0 | 0.4 | 0 | 0 | 0.175059 | 0.005537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0.082353 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a4ea2c35b0c1227fc243f6281172837d11976f8f | 4,374 | py | Python | desktop/core/src/desktop/api_public_urls.py | renovate-bot/hue | 5012908b62ceaaf192a8893e716e810620ad7e90 | [
"Apache-2.0"
] | 1 | 2022-02-25T01:14:18.000Z | 2022-02-25T01:14:18.000Z | desktop/core/src/desktop/api_public_urls.py | tkjenll/hue | 5012908b62ceaaf192a8893e716e810620ad7e90 | [
"Apache-2.0"
] | null | null | null | desktop/core/src/desktop/api_public_urls.py | tkjenll/hue | 5012908b62ceaaf192a8893e716e810620ad7e90 | [
"Apache-2.0"
] | 3 | 2021-07-12T02:46:25.000Z | 2022-02-25T01:11:41.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 48.065934 | 148 | 0.725194 | 614 | 4,374 | 4.916938 | 0.258958 | 0.057635 | 0.062604 | 0.081815 | 0.375621 | 0.293806 | 0.170918 | 0.070553 | 0.070553 | 0.070553 | 0 | 0.001527 | 0.101966 | 4,374 | 90 | 149 | 48.6 | 0.767057 | 0.231824 | 0 | 0.258621 | 0 | 0.051724 | 0.462253 | 0.412822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086207 | 0 | 0.086207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4ee3bdbb7a1facab4b660f302cd47752999b463 | 926 | py | Python | peerscout/server/services/manuscript_subject_areas.py | elifesciences/peerscout | 2e899f268b4712ffb7a09b171de3f3841337d65d | [
"MIT"
] | 3 | 2018-09-10T16:33:14.000Z | 2021-04-06T06:09:23.000Z | peerscout/server/services/manuscript_subject_areas.py | elifesciences/peerscout | 2e899f268b4712ffb7a09b171de3f3841337d65d | [
"MIT"
] | 247 | 2018-03-01T12:06:07.000Z | 2019-10-25T05:25:16.000Z | peerscout/server/services/manuscript_subject_areas.py | elifesciences/peerscout | 2e899f268b4712ffb7a09b171de3f3841337d65d | [
"MIT"
] | 3 | 2018-03-01T12:25:44.000Z | 2019-09-04T00:43:34.000Z | class ManuscriptSubjectAreaService:
def __init__(self, df):
self._df = df
self._subject_areas_by_id_map = df.groupby(
'version_id')['subject_area'].apply(sorted).to_dict()
@staticmethod
def from_database(db, valid_version_ids=None):
df = db.manuscript_subject_area.read_f... | 37.04 | 75 | 0.676026 | 125 | 926 | 4.592 | 0.336 | 0.146341 | 0.041812 | 0.083624 | 0.080139 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212743 | 926 | 24 | 76 | 38.583333 | 0.78738 | 0 | 0 | 0 | 0 | 0 | 0.071274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4efe5b3223fadffecb61b0f85fd6e797b0e1a29 | 19,901 | py | Python | src/examples/python/gen_py/datahub/ttypes.py | RogerTangos/datahub-stub | 8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89 | [
"MIT"
] | 192 | 2015-07-29T15:20:35.000Z | 2021-09-06T21:42:01.000Z | src/examples/python/gen_py/datahub/ttypes.py | RogerTangos/datahub-stub | 8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89 | [
"MIT"
] | 120 | 2015-10-27T21:43:11.000Z | 2021-08-12T15:15:43.000Z | src/examples/python/gen_py/datahub/ttypes.py | RogerTangos/datahub-stub | 8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89 | [
"MIT"
] | 56 | 2015-09-19T05:58:41.000Z | 2021-09-14T09:46:11.000Z | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
tr... | 31.588889 | 188 | 0.628762 | 2,450 | 19,901 | 4.895102 | 0.07102 | 0.041274 | 0.033019 | 0.043525 | 0.752856 | 0.697157 | 0.62845 | 0.596598 | 0.58926 | 0.586092 | 0 | 0.017243 | 0.248128 | 19,901 | 629 | 189 | 31.63911 | 0.784268 | 0.02623 | 0 | 0.665392 | 1 | 0 | 0.026559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078394 | false | 0.015296 | 0.007648 | 0.028681 | 0.173996 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4f2d4dd9d29f16cdb3b8fd1da4969e05cebc343 | 7,307 | py | Python | services/core/MasterDriverAgent/master_driver/tests/test_revert_mixin.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 73 | 2017-07-11T21:46:41.000Z | 2022-03-11T03:35:25.000Z | services/core/MasterDriverAgent/master_driver/tests/test_revert_mixin.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 19 | 2017-10-10T22:06:15.000Z | 2022-03-28T21:03:33.000Z | services/core/MasterDriverAgent/master_driver/tests/test_revert_mixin.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 36 | 2017-06-24T00:17:03.000Z | 2022-03-31T13:58:36.000Z | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright (c) 2015, Battelle Memorial Institute
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistrib... | 38.457895 | 113 | 0.744081 | 954 | 7,307 | 5.556604 | 0.286164 | 0.07923 | 0.067346 | 0.087153 | 0.563479 | 0.540464 | 0.51594 | 0.508583 | 0.48255 | 0.48255 | 0 | 0.013993 | 0.178459 | 7,307 | 189 | 114 | 38.661376 | 0.869065 | 0.42165 | 0 | 0.819149 | 0 | 0.021277 | 0.161987 | 0.019678 | 0 | 0 | 0 | 0 | 0.223404 | 1 | 0.053191 | false | 0 | 0.021277 | 0 | 0.074468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4f7604fe0182defb3755ec04ceeed610cd8dcd1 | 2,946 | py | Python | dft/potentials.py | jordan-melendez/dft_emulator | 123966d3a30b0e53d2ee9f6cf3210606d6a80ebd | [
"MIT"
] | null | null | null | dft/potentials.py | jordan-melendez/dft_emulator | 123966d3a30b0e53d2ee9f6cf3210606d6a80ebd | [
"MIT"
] | null | null | null | dft/potentials.py | jordan-melendez/dft_emulator | 123966d3a30b0e53d2ee9f6cf3210606d6a80ebd | [
"MIT"
] | null | null | null | from __future__ import division
import numpy as np
from .constants import pi
def harmonic_oscillator_potential(r, mass, omega):
return mass * (omega * r) ** 2 / 2.0
# def harmonic_oscillator_hamiltonian_ho_basis(omega, ):
# return mass * (omega * r) ** 2 / 2.0
def kohn_sham_lo(rho, mass, g, a_s):
r""... | 26.070796 | 82 | 0.506789 | 576 | 2,946 | 2.380208 | 0.107639 | 0.049599 | 0.035011 | 0.065646 | 0.670314 | 0.495988 | 0.452225 | 0.412108 | 0.350839 | 0.311452 | 0 | 0.071498 | 0.302105 | 2,946 | 112 | 83 | 26.303571 | 0.595331 | 0.066531 | 0 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.044776 | 0.089552 | 0.462687 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4ffa79fddfa6a39863c44d9f5523803aa57620e | 1,110 | py | Python | python/src/permute.py | xwkuang5/code-fragments | c313a0a72fc316862e292a6753ebc911d1b6cdd2 | [
"MIT"
] | null | null | null | python/src/permute.py | xwkuang5/code-fragments | c313a0a72fc316862e292a6753ebc911d1b6cdd2 | [
"MIT"
] | null | null | null | python/src/permute.py | xwkuang5/code-fragments | c313a0a72fc316862e292a6753ebc911d1b6cdd2 | [
"MIT"
] | null | null | null | def permute(obj_list, l, r, level):
"""Helper function to implement the nAr permutation operation
Arguments:
obj_list -- the list of objects from which the permutation should be generated
l -- left end point of current permutation
r -- right end point (exclusive) of current p... | 30.833333 | 85 | 0.608108 | 165 | 1,110 | 3.975758 | 0.333333 | 0.202744 | 0.085366 | 0.067073 | 0.42378 | 0.42378 | 0.42378 | 0.42378 | 0.42378 | 0.42378 | 0 | 0.010204 | 0.293694 | 1,110 | 35 | 86 | 31.714286 | 0.826531 | 0.508108 | 0 | 0.153846 | 0 | 0 | 0.03272 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3502aad89bb2872eed68924e0b79988f2ee16383 | 1,814 | py | Python | pKa/run_pKa_calc_dist_nummuts.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 3 | 2016-11-11T06:11:03.000Z | 2021-09-12T22:13:51.000Z | pKa/run_pKa_calc_dist_nummuts.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | null | null | null | pKa/run_pKa_calc_dist_nummuts.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 2 | 2016-02-15T16:10:36.000Z | 2018-02-27T10:33:21.000Z | #!/usr/bin/env python
#
# pKa - various programs and scripts for pKa value analysis, calculation and redesign
# Copyright (C) 2010 Jens Erik Nielsen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundat... | 26.676471 | 85 | 0.718302 | 295 | 1,814 | 4.383051 | 0.545763 | 0.025522 | 0.030162 | 0.044084 | 0.095901 | 0.075793 | 0 | 0 | 0 | 0 | 0 | 0.014464 | 0.161522 | 1,814 | 67 | 86 | 27.074627 | 0.835634 | 0.554024 | 0 | 0.083333 | 0 | 0 | 0.187744 | 0.031291 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
350c0d171ad8ac996361217fa9edf1e43a117eea | 1,216 | py | Python | lithium/manage/templates/app.py | PressLabs/lithium | a222e4021aabcbec0fd24bcecf904a0ee7ec852d | [
"Apache-2.0"
] | 2 | 2015-03-20T10:57:14.000Z | 2015-03-20T11:03:39.000Z | lithium/manage/templates/app.py | PressLabs/lithium | a222e4021aabcbec0fd24bcecf904a0ee7ec852d | [
"Apache-2.0"
] | null | null | null | lithium/manage/templates/app.py | PressLabs/lithium | a222e4021aabcbec0fd24bcecf904a0ee7ec852d | [
"Apache-2.0"
] | null | null | null | import os
from importlib import import_module
from flask import Flask
from flask.ext.admin.contrib.sqla import ModelView as AdminModelView
from {{app_name}}.extensions import db, admin, migrate
from lithium.views import ModelView
cache = []
def create_app(config=None):
app = Flask(__name__)
default_config = ... | 21.333333 | 68 | 0.73602 | 168 | 1,216 | 5.10119 | 0.327381 | 0.028005 | 0.035006 | 0.044341 | 0.198366 | 0.133022 | 0.133022 | 0.133022 | 0.133022 | 0.133022 | 0 | 0.000978 | 0.158717 | 1,216 | 56 | 69 | 21.714286 | 0.836755 | 0 | 0 | 0.117647 | 0 | 0 | 0.051809 | 0.018092 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.205882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
350df6abdce9fdc455250164cb30f97db75bb80e | 1,073 | py | Python | fitness_guide/menu/migrations/0003_alter_product_options_product_name_and_more.py | tunsmm/fitness_guide | 42df50c9f35a4345c72e9c7e3868867fc8dfd563 | [
"MIT"
] | 1 | 2022-03-19T13:07:05.000Z | 2022-03-19T13:07:05.000Z | fitness_guide/menu/migrations/0003_alter_product_options_product_name_and_more.py | tunsmm/fitness_guide | 42df50c9f35a4345c72e9c7e3868867fc8dfd563 | [
"MIT"
] | null | null | null | fitness_guide/menu/migrations/0003_alter_product_options_product_name_and_more.py | tunsmm/fitness_guide | 42df50c9f35a4345c72e9c7e3868867fc8dfd563 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-04-07 20:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0002_product_alter_client_options'),
]
operations = [
migrations.AlterModelOptions(
name='product',
options=... | 27.512821 | 83 | 0.561044 | 101 | 1,073 | 5.772277 | 0.504951 | 0.06175 | 0.137221 | 0.149228 | 0.349914 | 0.200686 | 0 | 0 | 0 | 0 | 0 | 0.039726 | 0.319664 | 1,073 | 38 | 84 | 28.236842 | 0.758904 | 0.041938 | 0 | 0.34375 | 1 | 0 | 0.146199 | 0.032164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35143e300744e85f722a2c7043b652966a1b86ce | 2,183 | py | Python | werewolf/parser.py | jan-g/slackwolf | 7da027b87d79d663fe88e2e8301a748b8fcf6951 | [
"Apache-2.0"
] | null | null | null | werewolf/parser.py | jan-g/slackwolf | 7da027b87d79d663fe88e2e8301a748b8fcf6951 | [
"Apache-2.0"
] | null | null | null | werewolf/parser.py | jan-g/slackwolf | 7da027b87d79d663fe88e2e8301a748b8fcf6951 | [
"Apache-2.0"
] | null | null | null | import re
from .sentinel import Sentinel
def kleene(parser):
def parse_many(text):
text = text.lstrip()
if len(text) > 0:
for item, text1 in parser(text):
for items, text2 in parse_many(text1):
yield ([item] + items, text2)
else:
... | 22.27551 | 73 | 0.551993 | 276 | 2,183 | 4.293478 | 0.195652 | 0.067511 | 0.050633 | 0.075949 | 0.303797 | 0.28692 | 0.24135 | 0.192405 | 0.160338 | 0.089451 | 0 | 0.019391 | 0.338525 | 2,183 | 97 | 74 | 22.505155 | 0.801247 | 0 | 0 | 0.323944 | 0 | 0 | 0.007329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.239437 | false | 0 | 0.028169 | 0.014085 | 0.380282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3517949658984d67d2075394ea883d7362d0dfc9 | 572 | py | Python | temp.py | VincentGaoHJ/Spyder-Mafengwo | 109f42c23686e098c9ca2a0d2b16b1b3edc67126 | [
"MIT"
] | null | null | null | temp.py | VincentGaoHJ/Spyder-Mafengwo | 109f42c23686e098c9ca2a0d2b16b1b3edc67126 | [
"MIT"
] | 1 | 2019-07-15T01:14:39.000Z | 2019-07-15T01:14:39.000Z | temp.py | VincentGaoHJ/Spyder-Mafengwo | 109f42c23686e098c9ca2a0d2b16b1b3edc67126 | [
"MIT"
] | 2 | 2019-07-14T22:15:43.000Z | 2020-09-15T08:31:39.000Z | # -*- coding: utf-8 -*-
"""
@Date: Created on Tue Mar 26 21:25:29 2019
@Author: Haojun Gao
@Description: 用于调试代码
"""
<<<<<<< HEAD
=======
import csv
with open("test.csv", "w", newline='') as csvfile:
writer = csv.writer(csvfile)
# 先写入columns_name
writer.writerow(["index", "a_name", "b_name"])
# 写入多行用w... | 22 | 55 | 0.61014 | 73 | 572 | 4.739726 | 0.684932 | 0.046243 | 0.069364 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093275 | 0.194056 | 572 | 25 | 56 | 22.88 | 0.657267 | 0.117133 | 0 | 0 | 0 | 0 | 0.085575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
351dda02814fe0dcbc6dc48954b007547c883aa9 | 7,827 | py | Python | mentor/matching/models.py | JarettSutula/GoatBoat | 53dd978048c6757b537e5988793b29a5ef1b7b52 | [
"MIT"
] | null | null | null | mentor/matching/models.py | JarettSutula/GoatBoat | 53dd978048c6757b537e5988793b29a5ef1b7b52 | [
"MIT"
] | null | null | null | mentor/matching/models.py | JarettSutula/GoatBoat | 53dd978048c6757b537e5988793b29a5ef1b7b52 | [
"MIT"
] | null | null | null | from django.db import models
from django import forms
from utils import start_db, collection_link, dynamic_class_dropdown
from django.core.exceptions import ValidationError
import bcrypt
# Create your models here.
CLASS_CHOICES = [
('none', ''),
('CMPT120', 'CMPT 120'),
('CMPT220', 'CMPT 220'),
('CMPT2... | 39.530303 | 162 | 0.639709 | 872 | 7,827 | 5.652523 | 0.227064 | 0.042605 | 0.040576 | 0.05072 | 0.657334 | 0.54575 | 0.534794 | 0.515318 | 0.499493 | 0.46054 | 0 | 0.020672 | 0.239811 | 7,827 | 197 | 163 | 39.730964 | 0.807731 | 0.17133 | 0 | 0.454545 | 0 | 0 | 0.193976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.159091 | 0.037879 | 0 | 0.25 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
351f0cf59e9628a090700825caba29c5e445975a | 407 | py | Python | Python/parsers/rssparser.py | hyPnOtICDo0g/code-dump | 8fc1ec605b6c1e1a0aa2e5bae40759cb40d1d130 | [
"MIT"
] | null | null | null | Python/parsers/rssparser.py | hyPnOtICDo0g/code-dump | 8fc1ec605b6c1e1a0aa2e5bae40759cb40d1d130 | [
"MIT"
] | null | null | null | Python/parsers/rssparser.py | hyPnOtICDo0g/code-dump | 8fc1ec605b6c1e1a0aa2e5bae40759cb40d1d130 | [
"MIT"
] | null | null | null | # Simple RSS feed item scraper
import feedparser
items = []
n = 0
file = open("rss_urls.txt", "r")
rss_list = file.read().splitlines()
for feeds in rss_list:
items = feedparser.parse(feeds)
while(n>=0):
try:
print (items.entries[n]['link'])
#print(items.entries[n].enclosures[... | 19.380952 | 55 | 0.555283 | 53 | 407 | 4.207547 | 0.622642 | 0.026906 | 0.152466 | 0.161435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017794 | 0.309582 | 407 | 20 | 56 | 20.35 | 0.775801 | 0.17199 | 0 | 0.142857 | 0 | 0 | 0.050898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35216ffd80c899155703ca05807c3dd7589dbcdd | 7,898 | py | Python | ramannoodles/dataprep.py | raman-noodles/Raman-noodles | 858804a61d9db2befb86998f730a52f00dc5002b | [
"MIT"
] | 15 | 2019-02-27T00:31:32.000Z | 2022-03-19T16:54:04.000Z | ramannoodles/dataprep.py | raman-noodles/RamanSignals | 858804a61d9db2befb86998f730a52f00dc5002b | [
"MIT"
] | 18 | 2019-03-01T16:55:31.000Z | 2020-12-30T19:53:39.000Z | ramannoodles/dataprep.py | raman-noodles/RamanSignals | 858804a61d9db2befb86998f730a52f00dc5002b | [
"MIT"
] | 7 | 2019-03-01T19:23:47.000Z | 2022-02-20T12:50:19.000Z | """docstring"""
import h5py
import pandas as pd
import matplotlib.pyplot as plt
from ramannoodles import spectrafit
def new_hdf5(new_filename):
"""docstring"""
# handling input errors
if not isinstance(new_filename, str):
raise TypeError('Passed value of `filename` is not a string! Instead, it is:... | 45.131429 | 102 | 0.577361 | 1,035 | 7,898 | 4.285024 | 0.149758 | 0.064938 | 0.044194 | 0.042841 | 0.666967 | 0.657723 | 0.627959 | 0.608794 | 0.509583 | 0.464262 | 0 | 0.027142 | 0.253609 | 7,898 | 175 | 103 | 45.131429 | 0.725191 | 0.103064 | 0 | 0.381295 | 0 | 0 | 0.171144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035971 | false | 0.071942 | 0.028777 | 0 | 0.064748 | 0.064748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3526585f3737af7f467bb0154a33f1afba5faff9 | 161 | py | Python | 21/01/3.py | pylangstudy/201707 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | [
"CC0-1.0"
] | null | null | null | 21/01/3.py | pylangstudy/201707 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | [
"CC0-1.0"
] | 46 | 2017-06-30T22:19:07.000Z | 2017-07-31T22:51:31.000Z | 21/01/3.py | pylangstudy/201707 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | [
"CC0-1.0"
] | null | null | null | class MyClass:
def __call__(self): print('__call__')
c = MyClass()
c()
c.__call__()
print()
c.__call__ = lambda: print('overriding call')
c()
c.__call__()
| 13.416667 | 45 | 0.664596 | 22 | 161 | 3.954545 | 0.409091 | 0.172414 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149068 | 161 | 11 | 46 | 14.636364 | 0.635037 | 0 | 0 | 0.444444 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3528c1e51fc0c69975061cdfe4c84e24a5d27235 | 7,467 | py | Python | src/tools/sac_vis.py | Yunaik/drl_env | d284e79847c59daa6ccb222f30fc7e2a86375546 | [
"MIT"
] | null | null | null | src/tools/sac_vis.py | Yunaik/drl_env | d284e79847c59daa6ccb222f30fc7e2a86375546 | [
"MIT"
] | null | null | null | src/tools/sac_vis.py | Yunaik/drl_env | d284e79847c59daa6ccb222f30fc7e2a86375546 | [
"MIT"
] | null | null | null | import os
import glob2, pickle
import numpy as np
from matplotlib import pyplot as plt
from scipy.ndimage.filters import gaussian_filter1d
dataPath = '../data/report_data/async'
sync_prefix = '../data/report_data/sync/laikago-report-b'
async_prefix = '../data/report_data/async/laikago-report-p'
batch_sizes = [1, 1... | 24.973244 | 86 | 0.629168 | 1,247 | 7,467 | 3.674419 | 0.152366 | 0.005238 | 0.00873 | 0.012222 | 0.613924 | 0.577041 | 0.55347 | 0.503492 | 0.485814 | 0.485814 | 0 | 0.055592 | 0.178519 | 7,467 | 298 | 87 | 25.057047 | 0.691392 | 0.153877 | 0 | 0.376147 | 0 | 0 | 0.128103 | 0.017187 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022936 | null | null | 0.013761 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
352ace88e293e0f35465b32148e7933069add390 | 5,589 | py | Python | fbcrawl/spiders/fbcrawl.py | ziostanko/fbcrawl | 168bc2c510dcde8a8b2158f1f12161e81e337670 | [
"Apache-2.0"
] | null | null | null | fbcrawl/spiders/fbcrawl.py | ziostanko/fbcrawl | 168bc2c510dcde8a8b2158f1f12161e81e337670 | [
"Apache-2.0"
] | null | null | null | fbcrawl/spiders/fbcrawl.py | ziostanko/fbcrawl | 168bc2c510dcde8a8b2158f1f12161e81e337670 | [
"Apache-2.0"
] | 1 | 2020-11-27T11:09:32.000Z | 2020-11-27T11:09:32.000Z | import scrapy
from scrapy.loader import ItemLoader
from scrapy.http import FormRequest
from fbcrawl.items import FbcrawlItem
class FacebookSpider(scrapy.Spider):
"""
Parse FB pages (needs credentials)
"""
name = "fb"
def __init__(self, email='', password='', page='', **kwargs):
super... | 46.575 | 146 | 0.578458 | 644 | 5,589 | 4.906832 | 0.271739 | 0.039873 | 0.041772 | 0.042722 | 0.41519 | 0.263608 | 0.167722 | 0.14557 | 0.122152 | 0.122152 | 0 | 0.006631 | 0.271426 | 5,589 | 119 | 147 | 46.966387 | 0.769401 | 0.066201 | 0 | 0.236559 | 0 | 0.010753 | 0.253708 | 0.169524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.053763 | 0.043011 | 0.010753 | 0.182796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
352e28e253bc2c2a5b98ac76ae29c672823c1f86 | 401 | py | Python | saleor/unurshop/package/migrations/0007_auto_20200916_1452.py | nlkhagva/saleor | 0d75807d08ac49afcc904733724ac870e8359c10 | [
"CC-BY-4.0"
] | null | null | null | saleor/unurshop/package/migrations/0007_auto_20200916_1452.py | nlkhagva/saleor | 0d75807d08ac49afcc904733724ac870e8359c10 | [
"CC-BY-4.0"
] | 1 | 2022-02-15T03:31:12.000Z | 2022-02-15T03:31:12.000Z | saleor/unurshop/package/migrations/0007_auto_20200916_1452.py | nlkhagva/ushop | abf637eb6f7224e2d65d62d72a0c15139c64bb39 | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 3.1 on 2020-09-16 06:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('package', '0006_auto_20200916_1440'),
]
operations = [
migrations.RenameField(
model_name='packageline',
old_nam... | 21.105263 | 48 | 0.581047 | 38 | 401 | 5.973684 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 0.319202 | 401 | 18 | 49 | 22.277778 | 0.721612 | 0.107232 | 0 | 0 | 1 | 0 | 0.207101 | 0.068047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3530c4784848df1634bc81baa14bfe4885be649c | 318 | py | Python | blog/views.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 4 | 2022-02-16T10:19:11.000Z | 2022-03-17T03:34:26.000Z | blog/views.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 1 | 2022-02-17T14:02:31.000Z | 2022-03-31T03:56:42.000Z | blog/views.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 3 | 2022-02-17T06:13:52.000Z | 2022-03-23T21:37:21.000Z | from django.views import generic
from .models import Post
class PostList(generic.ListView):
queryset = Post.objects.filter(status=1).order_by('-created_on')
template_name = 'blog/blog.html'
paginate_by = 3
class PostDetail(generic.DetailView):
model = Post
template_name = 'blog/post_detail.html' | 28.909091 | 68 | 0.742138 | 43 | 318 | 5.348837 | 0.674419 | 0.104348 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.150943 | 318 | 11 | 69 | 28.909091 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.144201 | 0.065831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
353435e27cfb00634238f4c52a013cb1d1d4100e | 966 | py | Python | GimmeProxyAPI.py | DeyaaMuhammad/GimmeProxyApi | f769cc15d69b6bb6c634089f6efa6d1b20b11dfa | [
"MIT"
] | 3 | 2021-04-27T03:47:02.000Z | 2021-06-05T16:16:17.000Z | GimmeProxyAPI.py | DeyaaMuhammad/GimmeProxyApi | f769cc15d69b6bb6c634089f6efa6d1b20b11dfa | [
"MIT"
] | null | null | null | GimmeProxyAPI.py | DeyaaMuhammad/GimmeProxyApi | f769cc15d69b6bb6c634089f6efa6d1b20b11dfa | [
"MIT"
] | 2 | 2020-08-24T13:57:03.000Z | 2021-05-25T02:22:17.000Z |
import json
import requests
class GimmeProxyAPI(object):
"""docstring for proxy"""
def __init__(self, **args):
self.base_url = "https://gimmeproxy.com/api/getProxy"
self.response = None
if self.response is None:
self.response = self.get_proxy(args=args)
def response(self):
return sel... | 17.25 | 87 | 0.65735 | 132 | 966 | 4.659091 | 0.333333 | 0.195122 | 0.053659 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004 | 0.223602 | 966 | 55 | 88 | 17.563636 | 0.816 | 0.019669 | 0 | 0.064516 | 0 | 0 | 0.105442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.064516 | 0.064516 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35366c33045cc23b445fedc41b1f6a63ef625106 | 940 | py | Python | ws-tests/test_fetch_all_collections.py | mtholder/pyraphyletic | 172246ff51682366ebc115d44abf2379e45294f8 | [
"BSD-2-Clause"
] | 1 | 2015-10-13T18:27:43.000Z | 2015-10-13T18:27:43.000Z | ws-tests/test_fetch_all_collections.py | mtholder/pyraphyletic | 172246ff51682366ebc115d44abf2379e45294f8 | [
"BSD-2-Clause"
] | null | null | null | ws-tests/test_fetch_all_collections.py | mtholder/pyraphyletic | 172246ff51682366ebc115d44abf2379e45294f8 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
from opentreetesting import test_http_json_method, config
DOMAIN = config('host', 'apihost')
# backwards compat, support "list_all"
SUBMIT_URI = DOMAIN + '/v3/collections/find_collections'
r = test_http_json_method(SUBMIT_URI,
'GET',
... | 30.322581 | 79 | 0.614894 | 134 | 940 | 4.037313 | 0.425373 | 0.073937 | 0.066543 | 0.099815 | 0.369686 | 0.369686 | 0.299445 | 0.299445 | 0.299445 | 0.299445 | 0 | 0.021739 | 0.265957 | 940 | 30 | 80 | 31.333333 | 0.762319 | 0.060638 | 0 | 0.48 | 0 | 0 | 0.1521 | 0.036322 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
353e63a0f24769aec209588ebcc63596a54df8cd | 5,700 | py | Python | src/cake/library/compilers/clang.py | anlongfei/cake | 8ede70a58516d2cf3117fcef050bc14046be91c9 | [
"MIT"
] | 14 | 2017-06-16T11:56:24.000Z | 2022-01-27T15:09:22.000Z | src/cake/library/compilers/clang.py | anlongfei/cake | 8ede70a58516d2cf3117fcef050bc14046be91c9 | [
"MIT"
] | 19 | 2015-01-18T10:45:50.000Z | 2019-12-19T06:02:24.000Z | src/cake/library/compilers/clang.py | anlongfei/cake | 8ede70a58516d2cf3117fcef050bc14046be91c9 | [
"MIT"
] | 6 | 2017-06-07T04:14:12.000Z | 2021-03-24T14:25:53.000Z | """The Clang Compiler.
@see: Cake Build System (http://sourceforge.net/projects/cake-build)
@copyright: Copyright (c) 2010 Lewis Baker, Stuart McMahon.
@license: Licensed under the MIT license.
"""
from cake.library import memoise
from cake.target import getPaths, getPath
from cake.library.compilers import Compiler, ... | 26.388889 | 95 | 0.643333 | 619 | 5,700 | 5.864297 | 0.306947 | 0.038567 | 0.019284 | 0.003857 | 0.043526 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010138 | 0.238596 | 5,700 | 215 | 96 | 26.511628 | 0.826267 | 0.035439 | 0 | 0.128205 | 0 | 0 | 0.035544 | 0 | 0 | 0 | 0 | 0.004651 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
353f3a423de4bde5ae0cfc6451eb914cee78218f | 460 | py | Python | setup.py | Jonas-Luetolf/todo-list | 31d6e90310dcf9ce51cf4a170e05377c0802adde | [
"MIT"
] | 1 | 2022-02-28T12:50:34.000Z | 2022-02-28T12:50:34.000Z | setup.py | Jonas-Luetolf/todo-list | 31d6e90310dcf9ce51cf4a170e05377c0802adde | [
"MIT"
] | null | null | null | setup.py | Jonas-Luetolf/todo-list | 31d6e90310dcf9ce51cf4a170e05377c0802adde | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="Todo-List",
version=2.0,
description='a todo-list cli',
author='Jonas Lütolf',
license='MIT',
url='http://github.com/Jonas-Luetolf/Todo-List',
python_requires='>=3.10',
install... | 20 | 52 | 0.6 | 55 | 460 | 4.945455 | 0.727273 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.217391 | 460 | 22 | 53 | 20.909091 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.276087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3543975850dee9d0da588d5aa71653ad38c0f91a | 2,100 | py | Python | Python3/664.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/664.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/664.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 140 ms submission
from functools import lru_cache
class Solution:
def strangePrinter(self, s: str) -> int:
@lru_cache(None)
def find_min(start, end):
if start >= end: return 1 if end... | 38.181818 | 105 | 0.522381 | 298 | 2,100 | 2.661074 | 0.231544 | 0.025221 | 0.030265 | 0.030265 | 0.209332 | 0.209332 | 0.143758 | 0.143758 | 0.040353 | 0.040353 | 0 | 0.03321 | 0.354762 | 2,100 | 54 | 106 | 38.888889 | 0.55203 | 0.108095 | 0 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1028ba76b5f44d43456805b488350e4b9a131708 | 965 | py | Python | movie_scraper.py | jamesduvall/SummerMovieWager | 0ea158753509be3d29b584f57c997176d7c45090 | [
"Apache-2.0"
] | null | null | null | movie_scraper.py | jamesduvall/SummerMovieWager | 0ea158753509be3d29b584f57c997176d7c45090 | [
"Apache-2.0"
] | null | null | null | movie_scraper.py | jamesduvall/SummerMovieWager | 0ea158753509be3d29b584f57c997176d7c45090 | [
"Apache-2.0"
] | null | null | null | import urllib2
import movie
from bs4 import BeautifulSoup
class Movie_Scrapper
def Scrape_Movies():
page = urllib2.urlopen('http://www.boxofficemojo.com/seasonal/?view=releasedate&yr=2015&season=Summer')
soup = BeautifulSoup(page.read(), 'html.parser')
rows = soup.select('table[bgcolor="#ff... | 35.740741 | 111 | 0.531606 | 123 | 965 | 4.073171 | 0.512195 | 0.0499 | 0.08982 | 0.11976 | 0.199601 | 0.143713 | 0.143713 | 0.143713 | 0.143713 | 0 | 0 | 0.022422 | 0.306736 | 965 | 27 | 112 | 35.740741 | 0.726457 | 0.022798 | 0 | 0 | 0 | 0.047619 | 0.13482 | 0.025478 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
102a6e9e85f0e415664c43180e1910e3dcf07860 | 6,760 | py | Python | lairdrone/dirb.py | lair-framework/lair-drones-version1--deprecated- | 32fd8f527d3fdab02011c78c722e9c1aafb6c9ff | [
"MIT"
] | 2 | 2015-01-12T13:42:42.000Z | 2015-08-31T03:09:38.000Z | lairdrone/dirb.py | lair-framework/lair-drones-version1--deprecated- | 32fd8f527d3fdab02011c78c722e9c1aafb6c9ff | [
"MIT"
] | 4 | 2015-02-06T23:41:37.000Z | 2015-04-16T04:47:34.000Z | lairdrone/dirb.py | lair-framework/lair-drones-version1--deprecated- | 32fd8f527d3fdab02011c78c722e9c1aafb6c9ff | [
"MIT"
] | 5 | 2015-01-12T13:42:48.000Z | 2015-10-07T11:33:17.000Z | #!/usr/bin/env python
import os
import copy
import re
from urlparse import urlparse
from lairdrone import drone_models as models
from lairdrone import helper
TOOL = 'dirb'
def build_clean_path(base_url, path, replace_specials=False):
"""Remove the base url value out of a path and optionally replace
any special ... | 45.675676 | 134 | 0.751627 | 991 | 6,760 | 4.940464 | 0.25328 | 0.094363 | 0.148284 | 0.100899 | 0.336193 | 0.283088 | 0.238154 | 0.183415 | 0.077819 | 0.045752 | 0 | 0.004902 | 0.124852 | 6,760 | 147 | 135 | 45.986395 | 0.822684 | 0.044083 | 0 | 0.061856 | 0 | 0 | 0.140063 | 0.005536 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061856 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1032812aa74c62006902fa1c78cd14a068c14224 | 2,237 | py | Python | init.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | 1 | 2020-04-12T22:00:17.000Z | 2020-04-12T22:00:17.000Z | init.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | null | null | null | init.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | null | null | null | import os
import sys
import django
import psycopg2
from django.core.management import call_command
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
sys.path.insert(0, os.path.abspath("."))
django.setup()
from water.models import Device as W... | 31.069444 | 81 | 0.772016 | 280 | 2,237 | 6.007143 | 0.332143 | 0.045779 | 0.08918 | 0.092747 | 0.257432 | 0.238407 | 0.121284 | 0 | 0 | 0 | 0 | 0.007519 | 0.108181 | 2,237 | 71 | 82 | 31.507042 | 0.835589 | 0.042021 | 0 | 0.224138 | 0 | 0 | 0.227315 | 0.041628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.137931 | 0.155172 | 0 | 0.155172 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
10336f14973df0e2e176f46a72576b5cfafaca3c | 4,991 | py | Python | hostlock/views/views_ajax.py | davidslusser/padlock | 5a8714b0febb0eecd04e9245919720199f1d3c30 | [
"Apache-2.0"
] | null | null | null | hostlock/views/views_ajax.py | davidslusser/padlock | 5a8714b0febb0eecd04e9245919720199f1d3c30 | [
"Apache-2.0"
] | 2 | 2020-06-05T21:07:29.000Z | 2021-06-10T21:34:13.000Z | hostlock/views/views_ajax.py | davidslusser/padlock | 5a8714b0febb0eecd04e9245919720199f1d3c30 | [
"Apache-2.0"
] | null | null | null | """
Views used specifically for handling AJAX Requests
"""
# import system modules
import json
# import django modules
from django.http import HttpResponse
from django.template import Context, loader
from django.views.decorators.http import require_GET, require_POST
# import models
from auditlog.models import LogEntr... | 37.246269 | 119 | 0.628131 | 537 | 4,991 | 5.698324 | 0.171322 | 0.088235 | 0.064706 | 0.075817 | 0.732026 | 0.680065 | 0.669281 | 0.669281 | 0.639216 | 0.619281 | 0 | 0.007327 | 0.261671 | 4,991 | 133 | 120 | 37.526316 | 0.823066 | 0.346424 | 0 | 0.525424 | 0 | 0 | 0.173519 | 0.044027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.118644 | 0 | 0.372881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
103a62d241ebab2c1ed0447ab06683916b3c8ac3 | 3,902 | py | Python | dbinorm/pg_connection_pool.py | rabus-t48/dbinorm | 9cbf8df7e496f1b1e3accfb10e5ede0dc4b4d423 | [
"MIT"
] | null | null | null | dbinorm/pg_connection_pool.py | rabus-t48/dbinorm | 9cbf8df7e496f1b1e3accfb10e5ede0dc4b4d423 | [
"MIT"
] | null | null | null | dbinorm/pg_connection_pool.py | rabus-t48/dbinorm | 9cbf8df7e496f1b1e3accfb10e5ede0dc4b4d423 | [
"MIT"
] | null | null | null | #coding: utf-8
import time
import logging
import base64
import psycopg2
import psycopg2.extensions
import psycopg2.sql as sql
from psycopg2.extensions import connection as _connection
from rbs_db.pg_factory import RealDictConnectionUpper
from rbs_db.db_exception import DatabaseConnectionException
log = logging.getLog... | 30.248062 | 115 | 0.639416 | 465 | 3,902 | 5.060215 | 0.234409 | 0.026774 | 0.038249 | 0.030599 | 0.094348 | 0.051849 | 0.027199 | 0 | 0 | 0 | 0 | 0.010753 | 0.284982 | 3,902 | 128 | 116 | 30.484375 | 0.832616 | 0.00897 | 0 | 0.156863 | 0 | 0 | 0.052523 | 0.005951 | 0 | 0 | 0.00207 | 0.007813 | 0 | 1 | 0.196078 | false | 0.04902 | 0.088235 | 0.107843 | 0.45098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
10434ebc8ae3c550eac84c57e60971566c4a2289 | 837 | py | Python | tests.py | HUSKI3/EzConfig | 40f3216a5cbf62e864b4c1efc8aa10d62e0e21fa | [
"Apache-2.0"
] | 1 | 2020-11-22T14:04:06.000Z | 2020-11-22T14:04:06.000Z | tests.py | HUSKI3/EzConfig | 40f3216a5cbf62e864b4c1efc8aa10d62e0e21fa | [
"Apache-2.0"
] | null | null | null | tests.py | HUSKI3/EzConfig | 40f3216a5cbf62e864b4c1efc8aa10d62e0e21fa | [
"Apache-2.0"
] | null | null | null | # Import EzConfig
import ezconf
# Create config object
config = ezconf.config()
# Read the config file
print("\nLoad config")
config.read("example_config.json")
# Get non-nested values
print("\nGet non-nested value\n")
print(config.get("name"))
# Get nested values
print("\nGet nested value\n")
config.add("extra-info","... | 28.862069 | 54 | 0.72282 | 124 | 837 | 4.870968 | 0.419355 | 0.072848 | 0.084437 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018445 | 0.09319 | 837 | 29 | 55 | 28.862069 | 0.777339 | 0.192354 | 0 | 0.1 | 0 | 0 | 0.449775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1049c836e9f1b11ef87ee26df811cbd715f2e5c7 | 235 | py | Python | Section2/reader.py | Zealll/Algo-and-Quant-Trading | 5f4e32b3a5a9ffb56d205cf3e345258aabd7a4ed | [
"MIT"
] | null | null | null | Section2/reader.py | Zealll/Algo-and-Quant-Trading | 5f4e32b3a5a9ffb56d205cf3e345258aabd7a4ed | [
"MIT"
] | 2 | 2021-03-31T19:48:09.000Z | 2021-12-13T20:44:26.000Z | Section2/reader.py | Zealll/Algo-and-Quant-Trading | 5f4e32b3a5a9ffb56d205cf3e345258aabd7a4ed | [
"MIT"
] | null | null | null | import pandas_datareader.data as pdr
import datetime as dt
ticker = 'AMZN'
start_date = dt.date.today() - dt.timedelta(365)
end_date = dt.date.today()
data = pdr.get_data_yahoo(ticker, start_date, end_date, interval='m')
print(data) | 23.5 | 69 | 0.753191 | 39 | 235 | 4.358974 | 0.538462 | 0.105882 | 0.117647 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.119149 | 235 | 10 | 70 | 23.5 | 0.806763 | 0 | 0 | 0 | 0 | 0 | 0.021186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
104af936faf0356b22eae0bd08e1fc782af776da | 131 | py | Python | peripy/__init__.py | jd-bartlett96/PeriPy | 04cae072e22568e29b9ab8f84d821f9576ecb728 | [
"MIT"
] | 17 | 2020-12-16T15:17:47.000Z | 2022-03-03T08:04:54.000Z | peripy/__init__.py | jd-bartlett96/PeriPy | 04cae072e22568e29b9ab8f84d821f9576ecb728 | [
"MIT"
] | 49 | 2020-01-29T16:50:23.000Z | 2020-09-02T10:27:25.000Z | peripy/__init__.py | jd-bartlett96/PeriPy | 04cae072e22568e29b9ab8f84d821f9576ecb728 | [
"MIT"
] | 11 | 2021-07-05T14:03:58.000Z | 2022-03-20T14:22:44.000Z | """
PeriPy.
A module for defining and simulating peridynamic systems.
"""
from .model import Model
__all__ = [
"Model"
]
| 11.909091 | 57 | 0.664122 | 15 | 131 | 5.533333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229008 | 131 | 10 | 58 | 13.1 | 0.821782 | 0.503817 | 0 | 0 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
104b511a7e165a4b4d255367fa1dd27d1bae1e9a | 1,388 | py | Python | Src/plot.py | sanjeevmk/GLASS | 91c0954eab87d25d4866fea5c338f79fbca4f79e | [
"MIT"
] | 2 | 2022-03-22T17:36:14.000Z | 2022-03-27T05:03:39.000Z | Src/plot.py | sanjeevmk/glass | 91c0954eab87d25d4866fea5c338f79fbca4f79e | [
"MIT"
] | null | null | null | Src/plot.py | sanjeevmk/glass | 91c0954eab87d25d4866fea5c338f79fbca4f79e | [
"MIT"
] | null | null | null | import torch
torch.manual_seed(10)
torch.cuda.manual_seed_all(10)
import header
import init
import sys
import train
import randomSample
import latentSpaceExplore_VanillaHMC,latentSpaceExplore_NUTSHmc,latentSpaceExplore_PerturbOptimize
from train import trainVAE
import csv
import matplotlib.pyplot as plt
import os
imp... | 30.173913 | 105 | 0.745677 | 192 | 1,388 | 5.338542 | 0.447917 | 0.020488 | 0.038049 | 0.049756 | 0.228293 | 0.102439 | 0 | 0 | 0 | 0 | 0 | 0.005469 | 0.07781 | 1,388 | 45 | 106 | 30.844444 | 0.795313 | 0.318444 | 0 | 0 | 0 | 0 | 0.119786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.448276 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
104d6724681f23e42ed4ead0588fef74bf3d28c4 | 2,172 | py | Python | sydent/http/servlets/bulklookupservlet.py | jp-modernisation-gouv-fr/sydent | 4a64a89a6850a5a94ee756d8eeaaf7ad01ac442f | [
"Apache-2.0"
] | null | null | null | sydent/http/servlets/bulklookupservlet.py | jp-modernisation-gouv-fr/sydent | 4a64a89a6850a5a94ee756d8eeaaf7ad01ac442f | [
"Apache-2.0"
] | 1 | 2020-07-21T14:37:16.000Z | 2020-07-21T14:37:16.000Z | sydent/http/servlets/bulklookupservlet.py | jp-modernisation-gouv-fr/sydent | 4a64a89a6850a5a94ee756d8eeaaf7ad01ac442f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2017 OpenMarket Ltd
#
# 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 l... | 31.941176 | 92 | 0.683241 | 276 | 2,172 | 5.311594 | 0.543478 | 0.040928 | 0.017735 | 0.021828 | 0.0191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00965 | 0.236648 | 2,172 | 67 | 93 | 32.41791 | 0.874548 | 0.428177 | 0 | 0.068966 | 0 | 0 | 0.093562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.206897 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
10580cf0a108e3ed7e2e633f6f298deb93e69528 | 672 | py | Python | messenger_channels/signals/user_signals.py | ThePokerFaCcCe/messenger | 2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c | [
"MIT"
] | null | null | null | messenger_channels/signals/user_signals.py | ThePokerFaCcCe/messenger | 2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c | [
"MIT"
] | null | null | null | messenger_channels/signals/user_signals.py | ThePokerFaCcCe/messenger | 2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c | [
"MIT"
] | null | null | null | from django.dispatch import receiver
from django.contrib.auth import get_user_model
from messenger_channels.querysets import get_pvchat_ids_cached
from user.signals import user_online
from user.serializers import UserLastSeenSerializer
from messenger_channels.utils import send_event
User = get_user_model()
@receive... | 29.217391 | 62 | 0.751488 | 89 | 672 | 5.337079 | 0.41573 | 0.084211 | 0.050526 | 0.075789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183036 | 672 | 22 | 63 | 30.545455 | 0.865209 | 0 | 0 | 0 | 0 | 0 | 0.032738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
10582eb220f22be692ed9d18ec8af9ad071ce7ed | 413 | py | Python | main_app/migrations/0004_profile_about_me.py | vidhishah03/Rescue | 4b140d653b3e4489d45ea29b149b2ed7cc7eabb5 | [
"MIT"
] | null | null | null | main_app/migrations/0004_profile_about_me.py | vidhishah03/Rescue | 4b140d653b3e4489d45ea29b149b2ed7cc7eabb5 | [
"MIT"
] | null | null | null | main_app/migrations/0004_profile_about_me.py | vidhishah03/Rescue | 4b140d653b3e4489d45ea29b149b2ed7cc7eabb5 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2021-03-24 16:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0003_auto_20210324_2124'),
]
operations = [
migrations.AddField(
model_name='profile',
name='about_me',
... | 21.736842 | 75 | 0.605327 | 47 | 413 | 5.170213 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113333 | 0.273608 | 413 | 18 | 76 | 22.944444 | 0.696667 | 0.108959 | 0 | 0 | 1 | 0 | 0.125683 | 0.062842 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
105a9638b4bfccc7f77ae08ca2b3757b6dc005c1 | 341 | py | Python | web-scrapping/indeed-site/webscrapper.py | AsciencioAlex/super-waddle-webscrapping | 146aeb2f0c4e774dd2f8438bf820ba282882a8cb | [
"MIT"
] | null | null | null | web-scrapping/indeed-site/webscrapper.py | AsciencioAlex/super-waddle-webscrapping | 146aeb2f0c4e774dd2f8438bf820ba282882a8cb | [
"MIT"
] | null | null | null | web-scrapping/indeed-site/webscrapper.py | AsciencioAlex/super-waddle-webscrapping | 146aeb2f0c4e774dd2f8438bf820ba282882a8cb | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
url = "https://www.indeed.com/"
r = requests.get(url)
soup = BeautifulSoup(r.content)
links = soup.find_all("a")
for link in links:
print "<a href='%s'>%s</a>" %(link.get("href"), link.text)
g_data = soup.find_all("div", {"class": "icon-container"})
for item in g_d... | 17.947368 | 59 | 0.677419 | 56 | 341 | 4.053571 | 0.571429 | 0.070485 | 0.096916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.13783 | 341 | 19 | 60 | 17.947368 | 0.768707 | 0 | 0 | 0 | 0 | 0 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
105c362d5d9d5aefbedc792cf78a292779b6a991 | 7,612 | py | Python | hw.py | CRImier/WiFiNugget | 8e9129ad8a74d9a04ef869db181286eac72335ea | [
"MIT"
] | 14 | 2021-10-05T11:30:04.000Z | 2021-12-05T17:48:01.000Z | hw.py | HakCat-Tech/WiFi-Nugget | d3f9e453304a01f980c3fc62b78db8445085e956 | [
"MIT"
] | 1 | 2021-10-21T23:11:09.000Z | 2021-10-21T23:11:09.000Z | hw.py | HakCat-Tech/WiFi-Nugget | d3f9e453304a01f980c3fc62b78db8445085e956 | [
"MIT"
] | 4 | 2021-10-05T06:27:56.000Z | 2021-11-09T01:11:50.000Z | from machine import Pin, I2C
from neopixel import NeoPixel
from time import sleep, ticks_ms, ticks_diff
import framebuf
import gc
import sh1106
# Wemos pins - for our and our users' convenience
D0 = const(16)
D1 = const(5)
D2 = const(4)
D3 = const(0)
D4 = const(2)
D5 = const(14)
D6 = const(12)
D7 = const(13)
D8 = con... | 52.496552 | 946 | 0.55649 | 1,282 | 7,612 | 3.262871 | 0.23869 | 0.008128 | 0.020081 | 0.023906 | 0.226393 | 0.19651 | 0.19651 | 0.175472 | 0.175472 | 0.175472 | 0 | 0.228215 | 0.283894 | 7,612 | 144 | 947 | 52.861111 | 0.539167 | 0.229243 | 0 | 0.107527 | 0 | 0 | 0.017577 | 0 | 0 | 0 | 0.000689 | 0 | 0 | 1 | 0.064516 | false | 0.010753 | 0.064516 | 0.010753 | 0.204301 | 0.010753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
105c58678d936b86976c89993da38544b7991498 | 1,305 | py | Python | thingpark/parsers/aqburk.py | asalminen/DjangoHttpBroker-Thingpark | 04dcac78baefce1f30d9b0f337f81edbe398ed27 | [
"MIT"
] | null | null | null | thingpark/parsers/aqburk.py | asalminen/DjangoHttpBroker-Thingpark | 04dcac78baefce1f30d9b0f337f81edbe398ed27 | [
"MIT"
] | null | null | null | thingpark/parsers/aqburk.py | asalminen/DjangoHttpBroker-Thingpark | 04dcac78baefce1f30d9b0f337f81edbe398ed27 | [
"MIT"
] | 2 | 2020-05-05T12:57:47.000Z | 2020-08-14T13:33:56.000Z | def hex2int(hex_str):
"""
Convert hex characters (e.g. "23" or "011a") to int (35 or 282)
:param hex_str: hex character string
:return: int integer
"""
return int(hex_str, 16)
def hex2value10(hex_str):
"""
Convert 2 hex characters (e.g. "23") to float (3.5)
:param hex_str: hex char... | 31.071429 | 70 | 0.616092 | 176 | 1,305 | 4.443182 | 0.403409 | 0.161125 | 0.282609 | 0.038363 | 0.132992 | 0.089514 | 0.089514 | 0 | 0 | 0 | 0 | 0.156156 | 0.234483 | 1,305 | 41 | 71 | 31.829268 | 0.626627 | 0.30728 | 0 | 0 | 0 | 0 | 0.085542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
105cabfe3c79c142eab5b769a5cfb910cf0e4fb1 | 457 | py | Python | olc_webportalv2/data/urls.py | OLC-Bioinformatics/olc_genomics_portal | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 3 | 2019-01-03T21:22:21.000Z | 2019-04-23T15:47:29.000Z | olc_webportalv2/data/urls.py | OLC-Bioinformatics/olc_genomics_portal | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 49 | 2019-01-03T18:15:12.000Z | 2022-03-11T23:37:20.000Z | olc_webportalv2/data/urls.py | OLC-Bioinformatics/olc_webportalv2 | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 58 | 2019-01-03T21:21:59.000Z | 2021-11-02T18:00:20.000Z | from olc_webportalv2.data import views
from django.conf.urls import url, include
from django.utils.translation import gettext_lazy as _
urlpatterns = [
url(_(r'^data_home/'), views.data_home, name='data_home'),
url(_(r'^raw_data/'), views.raw_data, name='raw_data'),
url(_(r'^assembled_data/'), views.assemb... | 41.545455 | 100 | 0.724289 | 67 | 457 | 4.626866 | 0.402985 | 0.051613 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.105033 | 457 | 10 | 101 | 45.7 | 0.755501 | 0 | 0 | 0 | 0 | 0 | 0.266958 | 0.089716 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
105f74224a9b101b1657eedf7bc018b1e2055906 | 1,325 | py | Python | api/resources_portal/models/material_request.py | arielsvn/resources-portal | f5a25935e45ceb05e2f4738f567eec9ca8793441 | [
"BSD-3-Clause"
] | null | null | null | api/resources_portal/models/material_request.py | arielsvn/resources-portal | f5a25935e45ceb05e2f4738f567eec9ca8793441 | [
"BSD-3-Clause"
] | null | null | null | api/resources_portal/models/material_request.py | arielsvn/resources-portal | f5a25935e45ceb05e2f4738f567eec9ca8793441 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from resources_portal.models.material import Material
from resources_portal.models.user import User
class MaterialRequest(models.Model):
class Meta:
db_table = "material_requests"
get_latest_by = "created_at"
objects = models.Manager()
created_at = models.Da... | 32.317073 | 97 | 0.724528 | 175 | 1,325 | 5.291429 | 0.411429 | 0.051836 | 0.045356 | 0.061555 | 0.439525 | 0.37905 | 0.37905 | 0.37905 | 0.37905 | 0.37905 | 0 | 0.005592 | 0.190189 | 1,325 | 40 | 98 | 33.125 | 0.857409 | 0.027925 | 0 | 0 | 0 | 0 | 0.163297 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0.107143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10603fb06b5028f96548d6db9d82324a999c444d | 931 | py | Python | practice/Greeter.py | VincentExM/snakecharmer | e246dc9c182789513cdecfa8e90b33794d164e1b | [
"Apache-2.0"
] | null | null | null | practice/Greeter.py | VincentExM/snakecharmer | e246dc9c182789513cdecfa8e90b33794d164e1b | [
"Apache-2.0"
] | null | null | null | practice/Greeter.py | VincentExM/snakecharmer | e246dc9c182789513cdecfa8e90b33794d164e1b | [
"Apache-2.0"
] | null | null | null | import datetime
import sys
from math import pi
print()
print("hello world")
print(5 * 6)
x = 20
print(x)
first_bool = True
print(first_bool)
first_word = "hehe"
print(first_word)
print("Twinkle, twinkle, little star, \n\tHow I wonder what you are! \n\t\tUp above the world so high, \n\t\tLike a "
"diamond i... | 21.159091 | 117 | 0.688507 | 161 | 931 | 3.832298 | 0.453416 | 0.029173 | 0.055105 | 0.058347 | 0.178282 | 0.12966 | 0.12966 | 0.12966 | 0.12966 | 0.12966 | 0 | 0.011553 | 0.163265 | 931 | 43 | 118 | 21.651163 | 0.780488 | 0.042965 | 0 | 0 | 0 | 0.074074 | 0.365579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0.037037 | 0.185185 | 0.518519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
10626f9b721bde983ae243a5f375e9791296f78b | 4,754 | py | Python | certbot-compatibility-test/certbot_compatibility_test/configurators/common.py | luisriverag/certbot | 52e207a404ab3600637fc7a24492e2c68512ce2d | [
"Apache-2.0"
] | 1 | 2022-01-14T20:53:16.000Z | 2022-01-14T20:53:16.000Z | certbot-compatibility-test/certbot_compatibility_test/configurators/common.py | luisriverag/certbot | 52e207a404ab3600637fc7a24492e2c68512ce2d | [
"Apache-2.0"
] | 19 | 2018-09-10T23:55:59.000Z | 2019-04-09T07:25:03.000Z | certbot-compatibility-test/certbot_compatibility_test/configurators/common.py | luisriverag/certbot | 52e207a404ab3600637fc7a24492e2c68512ce2d | [
"Apache-2.0"
] | 2 | 2022-03-25T20:23:51.000Z | 2022-03-25T21:05:15.000Z | """Provides a common base for configurator proxies"""
from abc import abstractmethod
import logging
import os
import shutil
import tempfile
from certbot._internal import constants
from certbot_compatibility_test import interfaces
from certbot_compatibility_test import errors
from certbot_compatibility_test import util... | 33.957143 | 94 | 0.679218 | 604 | 4,754 | 5.086093 | 0.286424 | 0.083333 | 0.019531 | 0.025391 | 0.152344 | 0.090169 | 0.074544 | 0.022135 | 0 | 0 | 0 | 0.002745 | 0.233698 | 4,754 | 139 | 95 | 34.201439 | 0.840516 | 0.146613 | 0 | 0.021053 | 0 | 0 | 0.024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242105 | false | 0.010526 | 0.094737 | 0.052632 | 0.463158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
106d7f6cf2b5583426dcd429ab4cc86d195a883d | 2,509 | py | Python | sources/dtos/symbols_dtos.py | pablintino/Altium-DBlib-source | 65e85572f84048a7e7c5a116b429e09ac9a33e82 | [
"MIT"
] | 1 | 2021-06-23T20:19:45.000Z | 2021-06-23T20:19:45.000Z | sources/dtos/symbols_dtos.py | pablintino/Altium-DBlib-source | 65e85572f84048a7e7c5a116b429e09ac9a33e82 | [
"MIT"
] | null | null | null | sources/dtos/symbols_dtos.py | pablintino/Altium-DBlib-source | 65e85572f84048a7e7c5a116b429e09ac9a33e82 | [
"MIT"
] | null | null | null | #
# MIT License
#
# Copyright (c) 2020 Pablo Rodriguez Nava, @pablintino
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | 32.584416 | 81 | 0.664408 | 316 | 2,509 | 5.14557 | 0.414557 | 0.054121 | 0.020295 | 0.02091 | 0.103321 | 0.077491 | 0.077491 | 0.077491 | 0.077491 | 0.077491 | 0 | 0.002101 | 0.241132 | 2,509 | 76 | 82 | 33.013158 | 0.851891 | 0.438422 | 0 | 0.315789 | 0 | 0 | 0.052708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.026316 | 0.105263 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
106e7bda0b33314d4f478141908b7581ab9d15a5 | 354 | py | Python | cpp/nativelib/test_echo.py | uwydoc/the-practices | 61ea1d868017ac88fddf6c0e726f0e9adde3f80e | [
"MIT"
] | null | null | null | cpp/nativelib/test_echo.py | uwydoc/the-practices | 61ea1d868017ac88fddf6c0e726f0e9adde3f80e | [
"MIT"
] | null | null | null | cpp/nativelib/test_echo.py | uwydoc/the-practices | 61ea1d868017ac88fddf6c0e726f0e9adde3f80e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from __future__ import print_function, division
import time
from testhelpers import ffi, lib
def test_echo():
print("nativelib echo:", lib.ne_get_version())
e = lib.ne_echo_new(b"hello world")
print("msg:", lib.ne_echo_get_msg(e))
lib.ne_echo_set_msg(e, b... | 25.285714 | 50 | 0.694915 | 59 | 354 | 3.864407 | 0.542373 | 0.109649 | 0.157895 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.155367 | 354 | 13 | 51 | 27.230769 | 0.759197 | 0.118644 | 0 | 0 | 0 | 0 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1076b1d379d172d2ea98898d7312a20eafd1b925 | 533 | py | Python | ticket/migrations/0014_ticket_team_name.py | skp-github/pydbug | fe573342532414a429dc42cd96b2a9ec83e7a795 | [
"MIT"
] | 1 | 2022-03-20T01:37:46.000Z | 2022-03-20T01:37:46.000Z | ticket/migrations/0014_ticket_team_name.py | skp-github/pydbug | fe573342532414a429dc42cd96b2a9ec83e7a795 | [
"MIT"
] | null | null | null | ticket/migrations/0014_ticket_team_name.py | skp-github/pydbug | fe573342532414a429dc42cd96b2a9ec83e7a795 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2019-06-10 15:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ticket', '0013_auto_20190603_0738'),
]
operations = [
migrations.AddField(
model_name='ticket',... | 26.65 | 164 | 0.654784 | 65 | 533 | 5.246154 | 0.646154 | 0.070381 | 0.082111 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074699 | 0.221388 | 533 | 19 | 165 | 28.052632 | 0.746988 | 0.084428 | 0 | 0 | 1 | 0 | 0.135802 | 0.047325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10770ae6405658927b79807a13c5b94221220c0f | 1,856 | py | Python | pywim/estimation/speed/speed_by_peak.py | xmnfw/pywim | 5d8b1ca467af80444551082588c2c713c3074e77 | [
"MIT"
] | 4 | 2017-03-05T14:32:42.000Z | 2021-06-14T02:16:34.000Z | pywim/estimation/speed/speed_by_peak.py | xmnfw/pywim | 5d8b1ca467af80444551082588c2c713c3074e77 | [
"MIT"
] | 14 | 2016-01-07T17:44:30.000Z | 2020-12-16T18:06:59.000Z | pywim/estimation/speed/speed_by_peak.py | OpenWIM/pywim | 5d8b1ca467af80444551082588c2c713c3074e77 | [
"MIT"
] | 4 | 2016-01-07T19:43:14.000Z | 2020-12-16T18:38:57.000Z | from pywim.utils.stats import iqr
import numpy as np
import pandas as pd
import peakutils
def sensors_estimation(
signal_data: pd.DataFrame, sensors_delta_distance: list
) -> [np.array]:
"""
:param signal_data:
:param sensors_delta_distance:
:return:
"""
# x axis: time
x = signal_dat... | 24.746667 | 77 | 0.679418 | 246 | 1,856 | 4.829268 | 0.284553 | 0.222222 | 0.143098 | 0.045455 | 0.292929 | 0.240741 | 0.188552 | 0.121212 | 0.121212 | 0.121212 | 0 | 0.007725 | 0.232759 | 1,856 | 74 | 78 | 25.081081 | 0.826545 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.102564 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1078acb4d5b3582a236d698a5859aaf18bb4e3a1 | 863 | py | Python | public/cantusdata/views/manuscript_glyph_set.py | DDMAL/cantus | 5d7de1890575c964274f86ac5a370fa8c259a1c9 | [
"MIT"
] | 12 | 2015-01-08T14:34:55.000Z | 2021-06-03T06:53:04.000Z | public/cantusdata/views/manuscript_glyph_set.py | DDMAL/cantus | 5d7de1890575c964274f86ac5a370fa8c259a1c9 | [
"MIT"
] | 303 | 2015-01-14T17:10:32.000Z | 2022-02-14T20:27:21.000Z | public/cantusdata/views/manuscript_glyph_set.py | DDMAL/cantus | 5d7de1890575c964274f86ac5a370fa8c259a1c9 | [
"MIT"
] | 2 | 2019-10-07T21:21:27.000Z | 2019-10-20T16:58:22.000Z | from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.renderers import JSONRenderer
from cantusdata.models import Manuscript
from cantusdata.serializers.search import SearchSerializer
from cantusdata.helpers.solrsearch import SolrSearchQueryless
class ManuscriptGlyp... | 34.52 | 84 | 0.683662 | 83 | 863 | 6.975904 | 0.60241 | 0.041451 | 0.088083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.23175 | 863 | 24 | 85 | 35.958333 | 0.868778 | 0 | 0 | 0 | 0 | 0 | 0.097335 | 0.067207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.