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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50269ab128f9255308f0f4c750652437fab201b2 | 2,338 | py | Python | bilayer_lpa.py | Ilseng/bilayer-instability | 47db2406c89d8c1bf7233783eba1361764f9f2e3 | [
"MIT"
] | 2 | 2019-11-22T11:37:21.000Z | 2020-01-12T09:58:23.000Z | bilayer_lpa.py | Ilseng/bilayer-instability | 47db2406c89d8c1bf7233783eba1361764f9f2e3 | [
"MIT"
] | null | null | null | bilayer_lpa.py | Ilseng/bilayer-instability | 47db2406c89d8c1bf7233783eba1361764f9f2e3 | [
"MIT"
] | null | null | null | # Functions for bi-layer linear perturbation analysis
import numpy as np
from scipy.optimize import brentq
def s22_func(l2, Nv, chi, mu):
s22 = np.log(1-1/l2) + 1/l2 + chi/l2**2 + Nv*(l2-1/l2) - mu
return s22
def matrix_zero(mu, wH, Nv1, n, chi, eta):
Nv2 = n*Nv1 # Name bottom layer as 2
l... | 51.955556 | 85 | 0.499572 | 559 | 2,338 | 2.08229 | 0.105546 | 0.176117 | 0.109966 | 0.068729 | 0.587629 | 0.578179 | 0.466495 | 0.383162 | 0.28866 | 0.134021 | 0 | 0.189501 | 0.185201 | 2,338 | 44 | 86 | 53.136364 | 0.421522 | 0.031651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 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 |
502a520ffd25ee94ecbe5873afc7bfe70bcc392d | 702 | py | Python | Spreader.py | Crystalzord/Spreader | b4b0b1d81fe6c8adf3c15353dbc6aaafa286b9d9 | [
"MIT"
] | 1 | 2020-04-11T21:25:17.000Z | 2020-04-11T21:25:17.000Z | Spreader.py | Crystalzord/spreader | b4b0b1d81fe6c8adf3c15353dbc6aaafa286b9d9 | [
"MIT"
] | null | null | null | Spreader.py | Crystalzord/spreader | b4b0b1d81fe6c8adf3c15353dbc6aaafa286b9d9 | [
"MIT"
] | null | null | null | from configparser import ConfigParser
from emails.EmailSnailPro import EmailSnailPro
from sites.AgentJbzd import AgentJbzd
from utils import BrowserManager
from utils import Logger
if __name__ == '__main__' and __package__ is None:
Logger.setup_logger()
# Read config.ini
config = ConfigParser()
confi... | 29.25 | 59 | 0.764957 | 84 | 702 | 6.02381 | 0.428571 | 0.05336 | 0.059289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152422 | 702 | 23 | 60 | 30.521739 | 0.85042 | 0.021368 | 0 | 0 | 0 | 0 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
502b58c6d36a8d38afa1ad62b383566a6a8e5b10 | 3,923 | py | Python | config/conf.py | LindgeW/MetaAug4NER | 3cf85fa0e4b976047f98966e60c0fe858068e13f | [
"Apache-2.0"
] | 2 | 2021-11-19T13:23:13.000Z | 2021-11-19T14:18:54.000Z | config/conf.py | LindgeW/MetaAug4NER | 3cf85fa0e4b976047f98966e60c0fe858068e13f | [
"Apache-2.0"
] | null | null | null | config/conf.py | LindgeW/MetaAug4NER | 3cf85fa0e4b976047f98966e60c0fe858068e13f | [
"Apache-2.0"
] | null | null | null | import os
import json
import argparse
def data_config(data_path):
assert os.path.exists(data_path)
with open(data_path, 'r', encoding='utf-8') as fin:
opts = json.load(fin)
print(opts)
return opts
def args_config():
parse = argparse.ArgumentParser('NER configuration')
parse.add_argum... | 62.269841 | 159 | 0.707367 | 589 | 3,923 | 4.584041 | 0.271647 | 0.103704 | 0.207407 | 0.031481 | 0.28037 | 0.150741 | 0.142593 | 0.142593 | 0.142593 | 0.127407 | 0 | 0.020486 | 0.128983 | 3,923 | 62 | 160 | 63.274194 | 0.769681 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.040816 | false | 0 | 0.061224 | 0 | 0.142857 | 0.040816 | 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 |
502deb4829d8cba463b0ff1fa24f6100bdc0bb5a | 609 | py | Python | ondocker_testing/test_image/test_app.py | xpersky/one_takes | a69385c9698d7c83c7b38f0d5a95b9657e023af3 | [
"MIT"
] | null | null | null | ondocker_testing/test_image/test_app.py | xpersky/one_takes | a69385c9698d7c83c7b38f0d5a95b9657e023af3 | [
"MIT"
] | null | null | null | ondocker_testing/test_image/test_app.py | xpersky/one_takes | a69385c9698d7c83c7b38f0d5a95b9657e023af3 | [
"MIT"
] | null | null | null | import urllib.request as req
from config import machine_ip
def get_code(url):
return req.urlopen('http://'+machine_ip+':5000'+url).getcode()
def test_start():
print("Testing...")
def test_home():
assert get_code('/') == 200
print('{:7} ... OK'.format('home'))
def test_index():
asse... | 24.36 | 67 | 0.581281 | 82 | 609 | 4.170732 | 0.390244 | 0.102339 | 0.152047 | 0.128655 | 0.233918 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0.040984 | 0.198686 | 609 | 24 | 68 | 25.375 | 0.659836 | 0 | 0 | 0 | 0 | 0 | 0.203419 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.333333 | false | 0 | 0.111111 | 0.055556 | 0.5 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
503201722a1cff4225b54770b91c0119b01ffb1d | 1,037 | py | Python | script.py | mdpanna/Python-zip-crack-1 | b3f02f8eb660342c6aa97e5e6561394288b5a71b | [
"MIT"
] | null | null | null | script.py | mdpanna/Python-zip-crack-1 | b3f02f8eb660342c6aa97e5e6561394288b5a71b | [
"MIT"
] | null | null | null | script.py | mdpanna/Python-zip-crack-1 | b3f02f8eb660342c6aa97e5e6561394288b5a71b | [
"MIT"
] | null | null | null | import zipfile
import argparse
from threading import Thread
import time
def extract_zip(zip_file, password):
try:
with open(password, 'r') as a:
for i in a.readlines():
passw = i.strip('\n')
time.sleep(0.3)
try:
with zipfile.... | 23.568182 | 68 | 0.529412 | 117 | 1,037 | 4.564103 | 0.504274 | 0.039326 | 0.052434 | 0.067416 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003008 | 0.358727 | 1,037 | 43 | 69 | 24.116279 | 0.8 | 0 | 0 | 0.193548 | 0 | 0 | 0.102218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.354839 | 0.129032 | 0 | 0.193548 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5032c001322c9d7d2d1894f0a80823484485361e | 658 | py | Python | dariah/core/utils.py | DARIAH-DE/Topics | d4ef76194f3e74c1a43b51ad2883423a01773d50 | [
"Apache-2.0"
] | 58 | 2017-02-13T15:51:01.000Z | 2022-03-09T19:59:37.000Z | dariah/core/utils.py | DARIAH-DE/Topics | d4ef76194f3e74c1a43b51ad2883423a01773d50 | [
"Apache-2.0"
] | 73 | 2017-09-27T12:45:55.000Z | 2021-11-29T10:53:56.000Z | dariah/core/utils.py | DARIAH-DE/Topics | d4ef76194f3e74c1a43b51ad2883423a01773d50 | [
"Apache-2.0"
] | 16 | 2017-08-16T13:11:26.000Z | 2021-12-14T15:42:35.000Z | """
dariah.topics.utils
~~~~~~~~~~~~~~~~~~~
This module implements helper functions for topic modeling.
"""
from typing import Generator, List
from pathlib import Path
import cophi
def read_mallet_topics(path: Path, num_words: int) -> Generator[List[str], None, None]:
"""Read a MALLET topics file.
Args:
... | 23.5 | 87 | 0.6231 | 92 | 658 | 4.402174 | 0.608696 | 0.064198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00998 | 0.238602 | 658 | 27 | 88 | 24.37037 | 0.798403 | 0.398176 | 0 | 0 | 0 | 0 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
504113cbd2273fd4ee057389da1106e1c3981545 | 8,782 | py | Python | ctm_saas_client/models/zoo_keeper.py | tadinve/ctm_python_client | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | [
"BSD-3-Clause"
] | null | null | null | ctm_saas_client/models/zoo_keeper.py | tadinve/ctm_python_client | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | [
"BSD-3-Clause"
] | null | null | null | ctm_saas_client/models/zoo_keeper.py | tadinve/ctm_python_client | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.30
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from ctm_saas_cl... | 33.015038 | 232 | 0.650649 | 1,030 | 8,782 | 5.247573 | 0.130097 | 0.116559 | 0.066605 | 0.093247 | 0.615171 | 0.506568 | 0.417021 | 0.298797 | 0.251804 | 0.139685 | 0 | 0.017409 | 0.273969 | 8,782 | 265 | 233 | 33.139623 | 0.830301 | 0.324983 | 0 | 0.086957 | 1 | 0 | 0.082229 | 0.056703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156522 | false | 0 | 0.034783 | 0 | 0.330435 | 0.017391 | 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 |
5043885d1fd12f25471582a0db58e0a9059a2782 | 4,484 | py | Python | smsaero/__init__.py | sheregeda/SMSAero | c33a649315225bbf7a7d228d454fa02652ca29e6 | [
"MIT"
] | 6 | 2016-05-16T06:52:45.000Z | 2017-05-05T08:16:10.000Z | smsaero/__init__.py | sheregeda/SMSAero | c33a649315225bbf7a7d228d454fa02652ca29e6 | [
"MIT"
] | null | null | null | smsaero/__init__.py | sheregeda/SMSAero | c33a649315225bbf7a7d228d454fa02652ca29e6 | [
"MIT"
] | 3 | 2016-08-10T17:23:56.000Z | 2020-09-14T09:02:46.000Z | #!/usr/bin/env python
# coding: UTF-8
import json
import time
import requests
import hashlib
import json
from datetime import datetime
from urllib.parse import urljoin
class SmsAeroError(Exception):
""" Super class of all SmsAero Errors. """
pass
class SmsAeroHTTPError(SmsAeroError):
""" A Connection er... | 29.893333 | 78 | 0.573595 | 480 | 4,484 | 5.26875 | 0.25625 | 0.059312 | 0.094108 | 0.03796 | 0.362989 | 0.314749 | 0.314749 | 0.287861 | 0.268881 | 0.268881 | 0 | 0.003197 | 0.302409 | 4,484 | 149 | 79 | 30.09396 | 0.805307 | 0.022302 | 0 | 0.303571 | 0 | 0 | 0.116934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151786 | false | 0.053571 | 0.0625 | 0.089286 | 0.419643 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
505041f485f7212d28e0012fe6ae9e2562490f39 | 3,045 | py | Python | wrapper_function_for_job_arr.py | kjaehnig/GAT_SEBs | 280e18727f3c1a4a5b18085c98f028da158b22a5 | [
"MIT"
] | null | null | null | wrapper_function_for_job_arr.py | kjaehnig/GAT_SEBs | 280e18727f3c1a4a5b18085c98f028da158b22a5 | [
"MIT"
] | null | null | null | wrapper_function_for_job_arr.py | kjaehnig/GAT_SEBs | 280e18727f3c1a4a5b18085c98f028da158b22a5 | [
"MIT"
] | 1 | 2021-11-25T04:40:35.000Z | 2021-11-25T04:40:35.000Z | import lightkurve as lk
import astropy.table as astab
import pandas as pd
import numpy as np
import astropy
import sys
from astropy.coordinates import SkyCoord
from astropy import units as u
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
from tqdm import tqdm
import warnings
import astropy.tab... | 32.741935 | 112 | 0.6289 | 377 | 3,045 | 4.941645 | 0.435013 | 0.033816 | 0.056361 | 0.0365 | 0.147611 | 0.037574 | 0 | 0 | 0 | 0 | 0 | 0.072644 | 0.285714 | 3,045 | 93 | 113 | 32.741935 | 0.783908 | 0 | 0 | 0.025641 | 0 | 0.012821 | 0.21241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.358974 | 0 | 0.371795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5055157e4087e187de7892fea9b3084a1b2ca2c8 | 5,515 | py | Python | taxcalc/tests/accuracy.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | taxcalc/tests/accuracy.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | taxcalc/tests/accuracy.py | jlyons871/Tax-Calculator | 77f3f67ae77f12ea83e15e138e9fc0ab9fd5cd1d | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import h5py as h5
import os
import os.path as op
def main(sas_output_path, py_output_dir, rerun=False):
'''If this module is run directly it calculates per variable difference
between the SAS output read from sas_output_path and Python output
read from CSV files con... | 37.263514 | 81 | 0.698459 | 798 | 5,515 | 4.611529 | 0.29198 | 0.019565 | 0.011957 | 0.010598 | 0.020109 | 0.011957 | 0 | 0 | 0 | 0 | 0 | 0.001173 | 0.227017 | 5,515 | 147 | 82 | 37.517007 | 0.862069 | 0.032638 | 0 | 0 | 0 | 0 | 0.105132 | 0.006103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012048 | 0.084337 | null | null | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5056ba44db42d5058526d162b04a299954aae671 | 393 | py | Python | django/urls/base.py | Jhvcc/CustomizeDjango | eec44beff33ddf8bf9185975918a7bbe2a39154f | [
"MIT"
] | null | null | null | django/urls/base.py | Jhvcc/CustomizeDjango | eec44beff33ddf8bf9185975918a7bbe2a39154f | [
"MIT"
] | null | null | null | django/urls/base.py | Jhvcc/CustomizeDjango | eec44beff33ddf8bf9185975918a7bbe2a39154f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @FileName :base.py
# @Author :Lowell
# @Time :2022/3/30 13:00
from asgiref.local import Local
_prefixes = Local()
def set_script_prefix(prefix):
"""
"""
if not prefix.endswith("/"):
prefix += "/"
_prefixes.values = prefix
def get_script... | 15.115385 | 43 | 0.575064 | 46 | 393 | 4.76087 | 0.76087 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040268 | 0.24173 | 393 | 25 | 44 | 15.72 | 0.694631 | 0.26972 | 0 | 0 | 0 | 0 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5057e5e84d45f682319ea9a03feadc629ebad563 | 424 | py | Python | flytrap/base/response.py | flytrap/flytrap-base | fa5a3135ce669725f88ef61d5d9f548cedfaf0ff | [
"MIT"
] | null | null | null | flytrap/base/response.py | flytrap/flytrap-base | fa5a3135ce669725f88ef61d5d9f548cedfaf0ff | [
"MIT"
] | 4 | 2020-02-11T21:47:02.000Z | 2021-06-10T18:21:44.000Z | flytrap/base/response.py | flytrap/flytrap-base | fa5a3135ce669725f88ef61d5d9f548cedfaf0ff | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created by flytrap
import json
from django.http import HttpResponse
class SimpleResponse(HttpResponse):
"""
封装http相应
"""
def __init__(self, data, status=200, *args, **kwargs):
if not isinstance(data, dict):
raise Exception("data format... | 23.555556 | 94 | 0.648585 | 49 | 424 | 5.44898 | 0.734694 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.207547 | 424 | 17 | 95 | 24.941176 | 0.782738 | 0.15566 | 0 | 0 | 0 | 0 | 0.050147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
50599de101312caa29593941c5693038ab903e25 | 2,022 | py | Python | frontend/migrations/0001_initial.py | kbilak/DPS-Web-App | fdd32f75d9614d2cb3547557d157ad5049bf7634 | [
"MIT"
] | null | null | null | frontend/migrations/0001_initial.py | kbilak/DPS-Web-App | fdd32f75d9614d2cb3547557d157ad5049bf7634 | [
"MIT"
] | null | null | null | frontend/migrations/0001_initial.py | kbilak/DPS-Web-App | fdd32f75d9614d2cb3547557d157ad5049bf7634 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-09 23:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 42.125 | 142 | 0.579624 | 197 | 2,022 | 5.832487 | 0.497462 | 0.046997 | 0.046997 | 0.062663 | 0.048738 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020188 | 0.265084 | 2,022 | 47 | 143 | 43.021277 | 0.753028 | 0.022255 | 0 | 0.2 | 1 | 0 | 0.105316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
505f579b4cfc9f5e0e8a68415c8f8bd86abe1118 | 1,933 | py | Python | about/migrations/0001_initial.py | Arlefreak/api.afk | 7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79 | [
"MIT"
] | null | null | null | about/migrations/0001_initial.py | Arlefreak/api.afk | 7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79 | [
"MIT"
] | 5 | 2016-01-21T20:21:42.000Z | 2016-01-22T23:00:33.000Z | about/migrations/0001_initial.py | Arlefreak/ApiArlefreak | 7e968f6dc3b593ad8f20a4962cb7e3c91bf3ab79 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-18 22:52
from __future__ import unicode_literals
import about.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | 37.901961 | 114 | 0.562856 | 183 | 1,933 | 5.819672 | 0.420765 | 0.022535 | 0.033803 | 0.061972 | 0.389671 | 0.389671 | 0.389671 | 0.251643 | 0.251643 | 0.251643 | 0 | 0.018302 | 0.293326 | 1,933 | 50 | 115 | 38.66 | 0.761347 | 0.034661 | 0 | 0.428571 | 1 | 0 | 0.084809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 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 |
ac934f7c4b09cd09661b07ab64191899cd5fe888 | 1,457 | py | Python | crafting/crafting.py | Kehvarl/pcg | c70c7a8a94a684424e99e5a15bdb35f34a179a9a | [
"MIT"
] | 1 | 2017-12-03T12:25:01.000Z | 2017-12-03T12:25:01.000Z | crafting/crafting.py | Kehvarl/pcg | c70c7a8a94a684424e99e5a15bdb35f34a179a9a | [
"MIT"
] | null | null | null | crafting/crafting.py | Kehvarl/pcg | c70c7a8a94a684424e99e5a15bdb35f34a179a9a | [
"MIT"
] | null | null | null | """
Crafting.py
Inspired by: Craft3.pdf by John Arras
http://web.archive.org/web/20080211222642/http://www.cs.umd.edu/~jra/craft3.pdf
Intention: Implement a crafting system which can act as a suitable base for a procedurally-generated
society.
"""
# Crafting is the act of producing an object from resources by use o... | 24.283333 | 100 | 0.691146 | 199 | 1,457 | 4.894472 | 0.532663 | 0.033881 | 0.034908 | 0.030801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027337 | 0.221688 | 1,457 | 59 | 101 | 24.694915 | 0.83157 | 0.700755 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ac94b3deee8c48f3c956a76cbd1083819f7634c0 | 16,212 | py | Python | gdplib/stranded_gas/model.py | Yunshan-Liu/gdplib | f453abcde1906018635c2245414b707b69fa110c | [
"BSD-3-Clause"
] | 3 | 2020-11-15T22:21:39.000Z | 2021-06-02T22:05:50.000Z | gdplib/stranded_gas/model.py | Yunshan-Liu/gdplib | f453abcde1906018635c2245414b707b69fa110c | [
"BSD-3-Clause"
] | null | null | null | gdplib/stranded_gas/model.py | Yunshan-Liu/gdplib | f453abcde1906018635c2245414b707b69fa110c | [
"BSD-3-Clause"
] | 6 | 2020-05-24T13:17:25.000Z | 2022-02-17T16:18:07.000Z | from __future__ import division
import os
import pandas as pd
from pyomo.environ import (
ConcreteModel, Constraint, Integers, NonNegativeReals, Objective, Param,
RangeSet, Set, SolverFactory, Suffix, TransformationFactory, Var, exp, log,
sqrt, summation, value
)
from .util import alphanum_sorted
from py... | 39.349515 | 118 | 0.627375 | 2,307 | 16,212 | 4.217165 | 0.119636 | 0.025902 | 0.047795 | 0.027958 | 0.450406 | 0.364786 | 0.26385 | 0.211738 | 0.155103 | 0.12879 | 0 | 0.016364 | 0.246114 | 16,212 | 411 | 119 | 39.445255 | 0.77966 | 0.026894 | 0 | 0.1571 | 0 | 0 | 0.097233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138973 | false | 0.006042 | 0.018127 | 0.111782 | 0.277946 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ac9c6b69da354b178e9d78d6852e8ec26c155958 | 15,641 | py | Python | essere_benessere/website/admin/AccountAdmin.py | entpy/eb-django | 8aab6ba5f1d06b7ff2ee4ebaed6bacb545be2bcb | [
"Apache-2.0"
] | null | null | null | essere_benessere/website/admin/AccountAdmin.py | entpy/eb-django | 8aab6ba5f1d06b7ff2ee4ebaed6bacb545be2bcb | [
"Apache-2.0"
] | null | null | null | essere_benessere/website/admin/AccountAdmin.py | entpy/eb-django | 8aab6ba5f1d06b7ff2ee4ebaed6bacb545be2bcb | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from website.models import Account, Promotion, Campaign
from website.forms import *
from django.conf.urls import patterns
from django.contrib import admin, messages
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.http import HttpResponseRedirect, HttpRespons... | 52.311037 | 147 | 0.540758 | 1,420 | 15,641 | 5.778873 | 0.193662 | 0.032172 | 0.052888 | 0.064831 | 0.372167 | 0.335608 | 0.273337 | 0.222398 | 0.148306 | 0.148306 | 0 | 0.003099 | 0.380986 | 15,641 | 298 | 148 | 52.486577 | 0.844454 | 0.143917 | 0 | 0.251429 | 0 | 0 | 0.15952 | 0.07029 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005714 | 0.051429 | 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 |
aca14f74bacf008908fe1fb5dfc9b39e1f400ff4 | 966 | py | Python | auth.py | zendikit/wantan | 1b36a3104845a690e1c0a98b72f7332ed8df63dc | [
"MIT"
] | 7 | 2021-06-07T03:08:19.000Z | 2021-06-28T13:49:18.000Z | auth.py | zendikit/wantan | 1b36a3104845a690e1c0a98b72f7332ed8df63dc | [
"MIT"
] | null | null | null | auth.py | zendikit/wantan | 1b36a3104845a690e1c0a98b72f7332ed8df63dc | [
"MIT"
] | null | null | null | import getpass
import keyring
KEYRING_SERVICE = "wantan"
def setup_args(args):
"""Add our args to a subgroup of the main script's."""
auth_verbs = args.add_mutually_exclusive_group(required=True)
auth_verbs.add_argument("--dump", action="store_true",
help="Dump the API key associated with a us... | 33.310345 | 65 | 0.668737 | 138 | 966 | 4.528986 | 0.355072 | 0.048 | 0.0432 | 0.064 | 0.0928 | 0.0928 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 966 | 28 | 66 | 34.5 | 0.823452 | 0.049689 | 0 | 0 | 0 | 0 | 0.244518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.173913 | 0.086957 | 0.043478 | 0.26087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aca6de9ee75f7bfebd3405b21aa2ccbb9d13a1df | 1,055 | py | Python | scripts/Qubit/Analysis/histogram.py | sourav-majumder/qtlab | 96b2a127b1df7b45622c90229bd5ef8a4083614e | [
"MIT"
] | null | null | null | scripts/Qubit/Analysis/histogram.py | sourav-majumder/qtlab | 96b2a127b1df7b45622c90229bd5ef8a4083614e | [
"MIT"
] | null | null | null | scripts/Qubit/Analysis/histogram.py | sourav-majumder/qtlab | 96b2a127b1df7b45622c90229bd5ef8a4083614e | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm
powers = list(np.arange(8.3, 8.71, 0.01))
powers.append(8.75)
for power in powers:
# print r"D:\data Summary\Tanmoy\Time domain at different Power\RefCurve_pw-"+"%.2f"%power+".Wfm.csv"
ch1, ch2 = np.loadtxt(r"D:\data S... | 32.96875 | 118 | 0.634123 | 172 | 1,055 | 3.854651 | 0.44186 | 0.036199 | 0.027149 | 0.058824 | 0.273002 | 0.273002 | 0.273002 | 0.273002 | 0.273002 | 0.273002 | 0 | 0.075706 | 0.161137 | 1,055 | 32 | 119 | 32.96875 | 0.673446 | 0.605687 | 0 | 0 | 0 | 0 | 0.215847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
aca700451aad062e9393e1e730ef090515bf2c3a | 1,074 | py | Python | scripts/slave/recipe_modules/buildbucket/config.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/buildbucket/config.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/buildbucket/config.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T09:16:32.000Z | 2020-07-22T09:16:32.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine.config import config_item_context, ConfigGroup
from recipe_engine.config import Single, Static
def BaseConfig(PLATFORM='default'):
ret... | 26.195122 | 72 | 0.752328 | 150 | 1,074 | 5.22 | 0.44 | 0.057471 | 0.08046 | 0.068966 | 0.33461 | 0.236271 | 0.236271 | 0 | 0 | 0 | 0 | 0.004301 | 0.134078 | 1,074 | 40 | 73 | 26.85 | 0.837634 | 0.14432 | 0 | 0.125 | 0 | 0 | 0.184699 | 0.160656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0.041667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aca7873fc8218c4b02be9fa29fc472931e8fdd8a | 1,771 | py | Python | openstack/network/v2/port_forwarding.py | horion/openstacksdk | cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3 | [
"Apache-2.0"
] | 99 | 2018-03-28T15:41:45.000Z | 2022-01-23T17:22:13.000Z | openstack/network/v2/port_forwarding.py | horion/openstacksdk | cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3 | [
"Apache-2.0"
] | 5 | 2018-05-25T16:54:23.000Z | 2021-11-21T02:27:16.000Z | openstack/network/v2/port_forwarding.py | horion/openstacksdk | cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3 | [
"Apache-2.0"
] | 104 | 2018-04-06T14:33:54.000Z | 2022-03-01T01:58:09.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 34.72549 | 75 | 0.729531 | 232 | 1,771 | 5.392241 | 0.461207 | 0.047962 | 0.033573 | 0.02558 | 0.033573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.189159 | 1,771 | 50 | 76 | 35.42 | 0.868384 | 0.416714 | 0 | 0 | 0 | 0 | 0.247036 | 0.073123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.913043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
acad5cb333fe9d12f3c193d9e77f0b67ecea4da8 | 1,328 | py | Python | nn_models.py | neuropil/sleep_ann | ff2bd03ad5602e5db0bf57c0642e1960688c538e | [
"MIT"
] | 1 | 2018-06-05T19:56:55.000Z | 2018-06-05T19:56:55.000Z | nn_models.py | neuropil/sleep_ann | ff2bd03ad5602e5db0bf57c0642e1960688c538e | [
"MIT"
] | null | null | null | nn_models.py | neuropil/sleep_ann | ff2bd03ad5602e5db0bf57c0642e1960688c538e | [
"MIT"
] | null | null | null | from keras.layers import Input, Dense, Dropout, LSTM
from keras.models import Model, Sequential
from keras.optimizers import SGD
from keras import regularizers
def feedforward(layer_spec=[64],num_labels=5,activ='sigmoid',
optim='adam',loss='categorical_crossentropy',
droprate=None,loss_... | 36.888889 | 122 | 0.67244 | 172 | 1,328 | 5.052326 | 0.47093 | 0.04603 | 0.025316 | 0.036824 | 0.163406 | 0.163406 | 0.163406 | 0.163406 | 0.163406 | 0.163406 | 0 | 0.022137 | 0.21762 | 1,328 | 36 | 123 | 36.888889 | 0.814244 | 0.068524 | 0 | 0.142857 | 0 | 0 | 0.050202 | 0.019433 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acaec16d06307c331c7e6ae911c48d59cb780ca0 | 1,234 | py | Python | tests/app/test_search_ctl.py | marcosnr/search-cli-app | 3c296c7d98fe6040d3f4ae84148d813656eb5862 | [
"Apache-2.0"
] | null | null | null | tests/app/test_search_ctl.py | marcosnr/search-cli-app | 3c296c7d98fe6040d3f4ae84148d813656eb5862 | [
"Apache-2.0"
] | 1 | 2020-03-27T05:10:26.000Z | 2020-03-27T05:10:26.000Z | tests/app/test_search_ctl.py | marcosnr/search-cli-app | 3c296c7d98fe6040d3f4ae84148d813656eb5862 | [
"Apache-2.0"
] | null | null | null | import pytest
from search_ctl import SearchApp
from models import OrganizationDAO, UserDAO, TicketDAO
@pytest.fixture(scope="function")
def app_init():
return SearchApp()
@pytest.fixture(scope="module")
def app():
app = SearchApp()
app.load_data()
return app
def test_ctl_init(app_init):
assert type(app_i... | 28.697674 | 80 | 0.754457 | 180 | 1,234 | 4.911111 | 0.294444 | 0.061086 | 0.056561 | 0.057692 | 0.270362 | 0.200226 | 0.084842 | 0 | 0 | 0 | 0 | 0.029575 | 0.123177 | 1,234 | 43 | 81 | 28.697674 | 0.787431 | 0 | 0 | 0.088235 | 0 | 0 | 0.092308 | 0.02915 | 0 | 0 | 0 | 0 | 0.264706 | 1 | 0.205882 | false | 0 | 0.088235 | 0.029412 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acb3fa8dd1c633af79aeeb26b475d5854d885a3c | 223 | py | Python | tfu/costs.py | diogo149/tfu | 8928c85c9f8050dc25061e2882757dd64927b59d | [
"MIT"
] | 3 | 2016-08-01T06:15:25.000Z | 2020-06-20T08:29:06.000Z | tfu/costs.py | diogo149/tfu | 8928c85c9f8050dc25061e2882757dd64927b59d | [
"MIT"
] | null | null | null | tfu/costs.py | diogo149/tfu | 8928c85c9f8050dc25061e2882757dd64927b59d | [
"MIT"
] | null | null | null | import tensorflow as tf
from . import utils
from . import base
def l2(params=None):
if params is None:
params = base.find_variables(weight=True)
return utils.smart_sum([tf.nn.l2_loss(x) for x in params])
| 20.272727 | 62 | 0.699552 | 37 | 223 | 4.135135 | 0.675676 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.206278 | 223 | 10 | 63 | 22.3 | 0.853107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
acc20ba4c8f78e6f77200f269e6800a4d3203ce1 | 214 | py | Python | no_of_divisors_in_a_given_range.py | shubhangini-tripathy/geeks_for_geeks | 4b7634a7ad12677f0c0702d562b1ee9e9923a311 | [
"MIT"
] | null | null | null | no_of_divisors_in_a_given_range.py | shubhangini-tripathy/geeks_for_geeks | 4b7634a7ad12677f0c0702d562b1ee9e9923a311 | [
"MIT"
] | null | null | null | no_of_divisors_in_a_given_range.py | shubhangini-tripathy/geeks_for_geeks | 4b7634a7ad12677f0c0702d562b1ee9e9923a311 | [
"MIT"
] | null | null | null | T = int(input())
for i in range(T):
m, n, a, b = map(int, input().split())
count = 0
for num in range(m, n + 1):
if num % a == 0 or num % b == 0:
count += 1
print(count)
| 23.777778 | 43 | 0.434579 | 37 | 214 | 2.513514 | 0.540541 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.392523 | 214 | 8 | 44 | 26.75 | 0.676923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acc25c9e7f852758b2af3b94bc79a0ad4ff3c3f4 | 408 | py | Python | MLiA_SourceCode/Ch13/extras/createFig2.py | Jerllina/MLiA_LearningRecording | ef6b1e55422b7ba76751dd0be64d51818635b50f | [
"Apache-2.0"
] | 6 | 2016-11-23T04:50:07.000Z | 2021-03-20T13:32:27.000Z | machinelearninginaction/ch13/extras/createFig2.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | 20 | 2019-02-25T09:41:28.000Z | 2021-11-07T07:27:08.000Z | machinelearninginaction/ch13/extras/createFig2.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | 1 | 2018-05-26T20:29:06.000Z | 2018-05-26T20:29:06.000Z | '''
Created on Jun 1, 2011
@author: Peter
'''
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
import pca
dataMat = pca.loadDataSet('testSet.txt')
lowDMat, reconMat = pca.pca(dataMat, 1)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.scatter(dataMat[:,0], dataMat[:,1], marker='^'... | 22.666667 | 68 | 0.656863 | 61 | 408 | 4.377049 | 0.606557 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049419 | 0.156863 | 408 | 18 | 69 | 22.666667 | 0.726744 | 0.093137 | 0 | 0 | 0 | 0 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
acc8e379d3b3c9c2cff0a9f617678d4ffb39e93b | 13,543 | py | Python | energyPATHWAYS/shared_classes.py | anamileva/energyPATHWAYS | ee6805a799c214b0015f15e4009018f840a53585 | [
"MIT"
] | 3 | 2020-05-02T11:25:17.000Z | 2021-09-03T00:35:10.000Z | energyPATHWAYS/shared_classes.py | anamileva/energyPATHWAYS | ee6805a799c214b0015f15e4009018f840a53585 | [
"MIT"
] | null | null | null | energyPATHWAYS/shared_classes.py | anamileva/energyPATHWAYS | ee6805a799c214b0015f15e4009018f840a53585 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 17 08:46:24 2015
@author: Ben
"""
import util
import numpy as np
import pandas as pd
from datamapfunctions import Abstract, DataMapFunctions
import config as cfg
import pdb
import logging
class StockItem(object):
def __init__(self):
self.spy = 1. #stock roll... | 48.367857 | 134 | 0.670752 | 1,820 | 13,543 | 4.743407 | 0.165385 | 0.031275 | 0.01251 | 0.011815 | 0.513147 | 0.470288 | 0.391405 | 0.363721 | 0.32619 | 0.305108 | 0 | 0.006902 | 0.240419 | 13,543 | 279 | 135 | 48.541219 | 0.832313 | 0.077679 | 0 | 0.35468 | 0 | 0 | 0.043366 | 0.001831 | 0 | 0 | 0 | 0.003584 | 0 | 0 | null | null | 0.004926 | 0.034483 | null | null | 0.004926 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
accecae8d3afaba201491ab8a060543c5d0a4aa6 | 2,496 | py | Python | dash/snapshots.py | thepearson/dash-cli | 706c0671e6dcff6c440eb030a8d8b35b9d62b907 | [
"MIT"
] | 7 | 2018-03-19T10:08:16.000Z | 2018-07-25T01:22:45.000Z | dash/snapshots.py | thepearson/dash-cli | 706c0671e6dcff6c440eb030a8d8b35b9d62b907 | [
"MIT"
] | 1 | 2018-10-24T06:07:15.000Z | 2018-10-24T06:07:15.000Z | dash/snapshots.py | thepearson/dash-cli | 706c0671e6dcff6c440eb030a8d8b35b9d62b907 | [
"MIT"
] | 2 | 2018-07-19T01:46:19.000Z | 2018-08-20T22:55:57.000Z | from time import sleep, time
from .api import Api
class Snapshots(Api):
delay = 10
def get_snapshots(self, project):
return self.do_request('/naut/project/{project}/snapshots'.format(project=project))
def get_snapshot(self, project, id):
return self.do_request('/naut/project/{project}/sn... | 45.381818 | 218 | 0.65625 | 288 | 2,496 | 5.538194 | 0.21875 | 0.062069 | 0.037618 | 0.059561 | 0.367398 | 0.320376 | 0.320376 | 0.270219 | 0.216301 | 0.216301 | 0 | 0.001498 | 0.197516 | 2,496 | 54 | 219 | 46.222222 | 0.794808 | 0 | 0 | 0.046512 | 0 | 0 | 0.198718 | 0.090144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.046512 | 0.093023 | 0.44186 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
accfdd71a17d2e99759f9ac8619a751996a21034 | 484 | py | Python | blogapp/migrations/0008_auto_20200331_1751.py | uma-shankar-gupta/blog-website | ddcfc8d665634a0abcd3eca645ebbcfc78b562b0 | [
"MIT"
] | null | null | null | blogapp/migrations/0008_auto_20200331_1751.py | uma-shankar-gupta/blog-website | ddcfc8d665634a0abcd3eca645ebbcfc78b562b0 | [
"MIT"
] | null | null | null | blogapp/migrations/0008_auto_20200331_1751.py | uma-shankar-gupta/blog-website | ddcfc8d665634a0abcd3eca645ebbcfc78b562b0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-31 12:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0007_comment_msg'),
]
operations = [
migrations.AlterField(
model_name='like',
... | 24.2 | 122 | 0.63843 | 57 | 484 | 5.315789 | 0.666667 | 0.079208 | 0.092409 | 0.145215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051491 | 0.237603 | 484 | 19 | 123 | 25.473684 | 0.769648 | 0.092975 | 0 | 0 | 1 | 0 | 0.118993 | 0 | 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 |
acd44518e24eb3c6090682db8e088d3785a1eb8a | 1,301 | py | Python | doc/Programs/LifeScience/Hudson_Bay.py | anacost/MachineLearning | 89e1c3637fe302c2b15b96bf89c8a01d2d693f29 | [
"CC0-1.0"
] | 1 | 2020-08-24T18:42:36.000Z | 2020-08-24T18:42:36.000Z | doc/Programs/LifeScience/Hudson_Bay.py | bernharl/MachineLearning | 35389a23d0abe490fbb9cd653aa732eeac162262 | [
"CC0-1.0"
] | null | null | null | doc/Programs/LifeScience/Hudson_Bay.py | bernharl/MachineLearning | 35389a23d0abe490fbb9cd653aa732eeac162262 | [
"CC0-1.0"
] | 1 | 2022-03-21T13:30:23.000Z | 2022-03-21T13:30:23.000Z | import numpy as np
import matplotlib.pyplot as plt
def solver(m, H0, L0, dt, a, b, c, d, t0):
"""Solve the difference equations for H and L over m years
with time step dt (measured in years."""
num_intervals = int(m/float(dt))
t = np.linspace(t0, t0 + m, num_intervals+1)
H = np.zeros(t.size)
L... | 29.568182 | 68 | 0.590315 | 259 | 1,301 | 2.903475 | 0.409266 | 0.013298 | 0.015957 | 0.031915 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083008 | 0.212913 | 1,301 | 43 | 69 | 30.255814 | 0.651367 | 0.102998 | 0 | 0 | 0 | 0 | 0.15203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
acd51664694fde1b4e7071fc6057befa057989aa | 11,717 | py | Python | lib-src/lv2/sratom/waflib/TaskGen.py | Marcusz97/CILP_Facilitatore_Audacity | fe7f59365317ce425abbaa79c973e931232c8680 | [
"CC-BY-3.0"
] | 24 | 2015-01-22T13:55:17.000Z | 2021-06-25T09:41:19.000Z | lib-src/lv2/sratom/waflib/TaskGen.py | Marcusz97/CILP_Facilitatore_Audacity | fe7f59365317ce425abbaa79c973e931232c8680 | [
"CC-BY-3.0"
] | 2 | 2019-01-13T23:12:26.000Z | 2019-02-03T08:07:29.000Z | lib-src/lv2/sratom/waflib/TaskGen.py | Marcusz97/CILP_Facilitatore_Audacity | fe7f59365317ce425abbaa79c973e931232c8680 | [
"CC-BY-3.0"
] | 14 | 2015-01-12T23:13:35.000Z | 2021-01-16T09:02:41.000Z | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import copy,re,os
from waflib import Task,Utils,Logs,Errors,ConfigSet,Node
feats=Utils.defaultdict(set)
class task_gen(object):
mappings={}
prec=Utils.defaultdict(list)
def... | 29.219451 | 162 | 0.689682 | 1,962 | 11,717 | 3.993374 | 0.132518 | 0.06037 | 0.013784 | 0.008934 | 0.1903 | 0.125207 | 0.097639 | 0.068922 | 0.062029 | 0.062029 | 0 | 0.003892 | 0.144747 | 11,717 | 400 | 163 | 29.2925 | 0.777966 | 0.011692 | 0 | 0.207071 | 1 | 0 | 0.08699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078283 | false | 0.010101 | 0.005051 | 0.002525 | 0.164141 | 0 | 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 |
acd6b9646866b6c0e6595fb8605739e57e426ca9 | 3,566 | py | Python | jobs/api.py | imcodingideas/CS10-job-board | 0b160072217223d962b482bfc927a9e566aec42a | [
"MIT"
] | null | null | null | jobs/api.py | imcodingideas/CS10-job-board | 0b160072217223d962b482bfc927a9e566aec42a | [
"MIT"
] | null | null | null | jobs/api.py | imcodingideas/CS10-job-board | 0b160072217223d962b482bfc927a9e566aec42a | [
"MIT"
] | null | null | null | from .models import JobPost, User, UserMembership, Membership, Payment
from rest_framework import serializers
# Customization of UserSerializer
from rest_framework.utils import model_meta
from .seralizer_helpers import raise_errors_on_nested_writes
from django.contrib.auth.hashers import make_password
# Tag serializer ... | 28.758065 | 130 | 0.61834 | 333 | 3,566 | 6.438438 | 0.369369 | 0.109142 | 0.058769 | 0.097948 | 0.20709 | 0.090485 | 0.090485 | 0.069963 | 0 | 0 | 0 | 0.001193 | 0.295008 | 3,566 | 123 | 131 | 28.99187 | 0.851631 | 0.129837 | 0 | 0.413793 | 0 | 0 | 0.110285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0.068966 | 0.068966 | 0 | 0.356322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ace435d37763978db0408931827f6b3e1a070a48 | 6,321 | py | Python | flask_helloworld_apache2/workflow_handler.py | sidhshar/gcp-explore | fe8ec6b210f878b383a4979984dc4acc31074a15 | [
"Apache-2.0"
] | null | null | null | flask_helloworld_apache2/workflow_handler.py | sidhshar/gcp-explore | fe8ec6b210f878b383a4979984dc4acc31074a15 | [
"Apache-2.0"
] | null | null | null | flask_helloworld_apache2/workflow_handler.py | sidhshar/gcp-explore | fe8ec6b210f878b383a4979984dc4acc31074a15 | [
"Apache-2.0"
] | null | null | null | import datetime
import time
import localsettings as ls
import sqlite3
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class DBH... | 30.536232 | 145 | 0.740706 | 913 | 6,321 | 4.865279 | 0.235487 | 0.026339 | 0.01891 | 0.021387 | 0.267222 | 0.205538 | 0.147681 | 0.085997 | 0.040072 | 0.040072 | 0 | 0.021747 | 0.148869 | 6,321 | 206 | 146 | 30.684466 | 0.803903 | 0.059642 | 0 | 0.186335 | 0 | 0.018634 | 0.140448 | 0.023942 | 0 | 0 | 0 | 0.004854 | 0 | 0 | null | null | 0 | 0.024845 | null | null | 0.049689 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
acebb82428fa85ac5ab2fafa1120ecf42a11b744 | 387 | py | Python | ptart/migrations/0011_label_deprecated.py | Fisjkars/sh00t | 3cae9d7f2b68c62ff58655d46f73c7a4ce2f6ec7 | [
"MIT"
] | 17 | 2020-04-28T15:42:44.000Z | 2022-03-21T07:45:07.000Z | ptart/migrations/0011_label_deprecated.py | Fisjkars/sh00t | 3cae9d7f2b68c62ff58655d46f73c7a4ce2f6ec7 | [
"MIT"
] | 34 | 2019-01-29T06:50:03.000Z | 2019-05-24T08:39:02.000Z | ptart/migrations/0011_label_deprecated.py | Fisjkars/sh00t | 3cae9d7f2b68c62ff58655d46f73c7a4ce2f6ec7 | [
"MIT"
] | 5 | 2020-09-22T20:02:37.000Z | 2022-03-15T12:53:00.000Z | # Generated by Django 2.2.24 on 2022-04-20 16:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ptart', '0010_project_archived'),
]
operations = [
migrations.AddField(
model_name='label',
name='deprecated',
... | 20.368421 | 53 | 0.599483 | 40 | 387 | 5.725 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0.286822 | 387 | 18 | 54 | 21.5 | 0.757246 | 0.118863 | 0 | 0 | 1 | 0 | 0.120944 | 0.061947 | 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 |
acecc92286013713e9aa7fb9a58e14bbe9130517 | 13,218 | py | Python | utility.py | syaoming/molle | 51d036555e06d634dd53f56d479ab41561e36618 | [
"MIT"
] | null | null | null | utility.py | syaoming/molle | 51d036555e06d634dd53f56d479ab41561e36618 | [
"MIT"
] | null | null | null | utility.py | syaoming/molle | 51d036555e06d634dd53f56d479ab41561e36618 | [
"MIT"
] | null | null | null | from z3 import *
from operator import or_
from pprint import pprint
def _sorted_inters(inter_list, sp):
''' Sorts the inter_list = [('from', 'to', 'positive'), ...] into a dict,
where keyvalue is a couple of number tuples, wich integer codes as keys.
e.g.
{1: ( (2, 3), (5, 9) )} : species 1 is activa... | 35.821138 | 79 | 0.494175 | 1,973 | 13,218 | 3.24886 | 0.158642 | 0.020281 | 0.031201 | 0.031825 | 0.288456 | 0.245866 | 0.223557 | 0.195944 | 0.164275 | 0.141654 | 0 | 0.029859 | 0.333636 | 13,218 | 368 | 80 | 35.918478 | 0.697888 | 0.151838 | 0 | 0.142308 | 0 | 0 | 0.031974 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0 | null | null | 0 | 0.023077 | null | null | 0.034615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aced6540740c9bfeb2cea64f73d9da4c62e094b7 | 2,497 | py | Python | koans/segunda_semana/acerca_de_funciones.py | benjymb/python_koans_pachaqtec | 094265842c2e182874fbf608521dc4a30e66bfae | [
"MIT"
] | null | null | null | koans/segunda_semana/acerca_de_funciones.py | benjymb/python_koans_pachaqtec | 094265842c2e182874fbf608521dc4a30e66bfae | [
"MIT"
] | null | null | null | koans/segunda_semana/acerca_de_funciones.py | benjymb/python_koans_pachaqtec | 094265842c2e182874fbf608521dc4a30e66bfae | [
"MIT"
] | 2 | 2020-04-22T20:28:30.000Z | 2020-04-25T16:22:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
def mi_funcion_global(a,b):
return a + b
def funcion_que_no_retorna_nada(a, b):
resultado = a + b
def funcion_con_argumentos_que_tienen_valor_por_defecto(
a, b='Soy el valor por defecto de la variable b'
):
return [a, b]
def fu... | 30.45122 | 100 | 0.705246 | 323 | 2,497 | 5.012384 | 0.315789 | 0.061767 | 0.064855 | 0.080296 | 0.462631 | 0.34651 | 0.327363 | 0.30698 | 0.222359 | 0.153181 | 0 | 0.007074 | 0.207449 | 2,497 | 82 | 101 | 30.45122 | 0.811016 | 0.051262 | 0 | 0.090909 | 0 | 0 | 0.057337 | 0.010204 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.295455 | false | 0.045455 | 0.022727 | 0.068182 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
acf9e0268217dd1564f7b4cf51d5c1e98e963207 | 7,979 | py | Python | varats/varats/plots/case_study_overview.py | se-passau/VaRA-Tool-Suite | b81d795327431af8c854244c67b67ce97d512b2b | [
"BSD-2-Clause"
] | 8 | 2019-10-30T08:07:44.000Z | 2020-11-13T08:02:36.000Z | varats/varats/plots/case_study_overview.py | se-passau/VaRA-Tool-Suite | b81d795327431af8c854244c67b67ce97d512b2b | [
"BSD-2-Clause"
] | 342 | 2019-02-14T15:53:31.000Z | 2020-11-03T18:11:27.000Z | varats/varats/plots/case_study_overview.py | se-passau/VaRA-Tool-Suite | b81d795327431af8c854244c67b67ce97d512b2b | [
"BSD-2-Clause"
] | 3 | 2020-04-15T13:24:44.000Z | 2020-10-27T21:13:10.000Z | """Generate plots that show a detailed overview of the state of one case-
study."""
import typing as tp
import matplotlib.pyplot as plt
from matplotlib import style
from pandas import DataFrame
from varats.data.databases.file_status_database import FileStatusDatabase
from varats.data.reports.empty_report import Empt... | 34.541126 | 79 | 0.654343 | 892 | 7,979 | 5.557175 | 0.216368 | 0.032681 | 0.01977 | 0.033891 | 0.326811 | 0.228566 | 0.169659 | 0.123664 | 0.112972 | 0.112972 | 0 | 0.048603 | 0.241885 | 7,979 | 230 | 80 | 34.691304 | 0.770871 | 0.023687 | 0 | 0.189474 | 1 | 0 | 0.093002 | 0.014664 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0 | 0.084211 | 0.021053 | 0.178947 | 0 | 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 |
acfdd86070c4a71e8f5b20b172587c71f8e5ce37 | 904 | py | Python | digsby/src/tests/testgui/uberdemos/UberProgressBarDemo.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/tests/testgui/uberdemos/UberProgressBarDemo.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/tests/testgui/uberdemos/UberProgressBarDemo.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | import wx
from gui.uberwidgets.UberProgressBar import UberProgressBar
from gui import skin as skincore
class F(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, wx.NewId(), "Progress Bar sampler",(0,0),(600,250))
self.Bind(wx.EVT_SLIDER, self.on_slide)
self.content = wx.BoxSiz... | 27.393939 | 96 | 0.639381 | 131 | 904 | 4.236641 | 0.458015 | 0.079279 | 0.03964 | 0.064865 | 0.100901 | 0.100901 | 0 | 0 | 0 | 0 | 0 | 0.044017 | 0.195796 | 904 | 32 | 97 | 28.25 | 0.719395 | 0 | 0 | 0 | 0 | 0 | 0.059735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
acfde92d5518e7beb962b7cee980f0c01ffeee3b | 2,080 | py | Python | mps_database/models/threshold_fault.py | slaclab/mps_database | 023ed9bb3b333e382cc612f816c3f4b295b66a4c | [
"BSD-3-Clause-LBNL"
] | null | null | null | mps_database/models/threshold_fault.py | slaclab/mps_database | 023ed9bb3b333e382cc612f816c3f4b295b66a4c | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-07-07T21:31:59.000Z | 2017-07-07T21:31:59.000Z | mps_database/models/threshold_fault.py | slaclab/mps_database | 023ed9bb3b333e382cc612f816c3f4b295b66a4c | [
"BSD-3-Clause-LBNL"
] | 4 | 2017-07-07T20:10:54.000Z | 2020-12-13T00:03:37.000Z | from sqlalchemy import Column, Integer, Float, String, Boolean, ForeignKey
from sqlalchemy.orm import relationship, backref
from mps_database.models import Base
class ThresholdFault(Base):
"""
ThresholdFault class (threshold_faults table)
Describe an analog fault, which is generated by an AnalogDevice.
The An... | 45.217391 | 103 | 0.751923 | 273 | 2,080 | 5.608059 | 0.369963 | 0.022861 | 0.029393 | 0.028739 | 0.148922 | 0.11757 | 0.11757 | 0.073155 | 0.073155 | 0 | 0 | 0.0012 | 0.198558 | 2,080 | 45 | 104 | 46.222222 | 0.917217 | 0.630769 | 0 | 0 | 0 | 0 | 0.12028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.071429 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a04a399d22b36fe1654190d4747e5a5342792c3 | 1,981 | py | Python | test/test_algorithm.py | ehigham/broad-challenge | 9854d9269f378999f28ee9fc202068e785f87faf | [
"MIT"
] | null | null | null | test/test_algorithm.py | ehigham/broad-challenge | 9854d9269f378999f28ee9fc202068e785f87faf | [
"MIT"
] | null | null | null | test/test_algorithm.py | ehigham/broad-challenge | 9854d9269f378999f28ee9fc202068e785f87faf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import networkx
from challenge.algorithm import dijkstras_shortest_path
class TestAlgorithmModule(unittest.TestCase):
def test_empty_graph(self):
"""Nodes are memebers of graph.nodes"""
graph = networkx.Graph()
with self.assertRaises(ValueError):
... | 31.444444 | 90 | 0.504796 | 234 | 1,981 | 4.055556 | 0.196581 | 0.02529 | 0.1549 | 0.164384 | 0.583772 | 0.453109 | 0.33509 | 0.240253 | 0.240253 | 0.240253 | 0 | 0.000708 | 0.287229 | 1,981 | 62 | 91 | 31.951613 | 0.671388 | 0.08733 | 0 | 0.27027 | 0 | 0 | 0.04028 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.162162 | false | 0 | 0.081081 | 0 | 0.27027 | 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 |
4a0a2dddfb1969c976a03f1d256ecc78ae8af792 | 54,966 | py | Python | src/catsys/imgs/hgencoder.py | AtomCrafty/catsystem-py | 11bd96708e3959be84e41e30397820ebaa54974d | [
"MIT"
] | 6 | 2020-10-20T13:26:56.000Z | 2022-02-15T05:26:38.000Z | src/catsys/imgs/hgencoder.py | AtomCrafty/catsystem-py | 11bd96708e3959be84e41e30397820ebaa54974d | [
"MIT"
] | 2 | 2020-10-20T16:15:35.000Z | 2021-07-08T18:15:23.000Z | src/catsys/imgs/hgencoder.py | AtomCrafty/catsystem-py | 11bd96708e3959be84e41e30397820ebaa54974d | [
"MIT"
] | 1 | 2020-10-19T15:20:50.000Z | 2020-10-19T15:20:50.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""HG image encoding utility
Provides the encoding and decoding methods for HG image encodings (HG-2, HG-3).
"""
__version__ = '1.0.0'
__date__ = '2020-09-19'
__author__ = 'Robert Jordan'
__all__ = []
#####################################################################... | 37.519454 | 192 | 0.551814 | 6,463 | 54,966 | 4.659756 | 0.086957 | 0.009297 | 0.002291 | 0.004582 | 0.645106 | 0.606687 | 0.56631 | 0.543332 | 0.529718 | 0.514046 | 0 | 0.040775 | 0.320471 | 54,966 | 1,464 | 193 | 37.545082 | 0.765522 | 0 | 0 | 0.579909 | 0 | 0 | 0.015441 | 0.000526 | 0 | 0 | 0.00941 | 0.001366 | 0 | 0 | null | null | 0.001142 | 0.007991 | 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 |
4a0bcdd22a7a4f6a5e9ba96c1a4a9926cbb87f57 | 923 | py | Python | src/program/migrations/0042_auto_20170715_1547.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | 7 | 2017-04-14T15:28:29.000Z | 2021-09-10T09:45:38.000Z | src/program/migrations/0042_auto_20170715_1547.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | 799 | 2016-04-28T09:31:50.000Z | 2022-03-29T09:05:02.000Z | src/program/migrations/0042_auto_20170715_1547.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | 35 | 2016-04-28T09:23:53.000Z | 2021-05-02T12:36:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-07-15 13:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("program", "0041_auto_20170711_2248")]
operations = [
migrations.AddField(
mo... | 30.766667 | 122 | 0.600217 | 97 | 923 | 5.56701 | 0.587629 | 0.066667 | 0.085185 | 0.1 | 0.492593 | 0.492593 | 0.492593 | 0.492593 | 0.492593 | 0.492593 | 0 | 0.051724 | 0.308776 | 923 | 29 | 123 | 31.827586 | 0.794671 | 0.073673 | 0 | 0.636364 | 1 | 0 | 0.323944 | 0.026995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 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 |
4a147698daeee0172bfdb9915bb99f41c11597b4 | 8,517 | py | Python | src/users/schema.py | cbsBiram/xarala__ssr | 863e1362c786daa752b942b796f7a015211d2f1b | [
"FSFAP"
] | null | null | null | src/users/schema.py | cbsBiram/xarala__ssr | 863e1362c786daa752b942b796f7a015211d2f1b | [
"FSFAP"
] | null | null | null | src/users/schema.py | cbsBiram/xarala__ssr | 863e1362c786daa752b942b796f7a015211d2f1b | [
"FSFAP"
] | null | null | null | from django.db.models.aggregates import Sum
import graphene
import graphql_jwt
from django.conf import settings
from django.contrib.auth.forms import PasswordChangeForm
from django.db.models import Q
from graphene_django import DjangoObjectType
from graphene_django.forms.mutation import DjangoFormMutation
from graphql ... | 32.632184 | 83 | 0.669132 | 973 | 8,517 | 5.701953 | 0.190134 | 0.018745 | 0.019827 | 0.037491 | 0.391132 | 0.38248 | 0.35292 | 0.336698 | 0.297945 | 0.21323 | 0 | 0.001537 | 0.236233 | 8,517 | 260 | 84 | 32.757692 | 0.851345 | 0.00364 | 0 | 0.31068 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07767 | false | 0.101942 | 0.067961 | 0.024272 | 0.475728 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a175cdb03794731b266b004d59d65f668ebdc9f | 443 | py | Python | config/api_router.py | devnelmar/Pokeindex-application | 6bfefacabf201713151407d1a87cf2fce4220884 | [
"MIT"
] | null | null | null | config/api_router.py | devnelmar/Pokeindex-application | 6bfefacabf201713151407d1a87cf2fce4220884 | [
"MIT"
] | null | null | null | config/api_router.py | devnelmar/Pokeindex-application | 6bfefacabf201713151407d1a87cf2fce4220884 | [
"MIT"
] | null | null | null | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from pokeindexapi.users.api.views import UserViewSet
from pokeindexapi.apps.pokedex.api.views import PokemonViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
router.register("users"... | 24.611111 | 62 | 0.79684 | 51 | 443 | 6.882353 | 0.568627 | 0.091168 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112867 | 443 | 17 | 63 | 26.058824 | 0.89313 | 0 | 0 | 0 | 0 | 0 | 0.049661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a1c74b455d66bf76e8356708e55d916be2a177d | 5,701 | py | Python | rpi_camera_code.py | AGarcia-20/Python_practice | 805647401970ae90e1e27f28cb489d3a7b0f3f2e | [
"MIT"
] | 1 | 2020-03-04T22:33:48.000Z | 2020-03-04T22:33:48.000Z | rpi_camera_code.py | AGarcia-20/Python_practice | 805647401970ae90e1e27f28cb489d3a7b0f3f2e | [
"MIT"
] | null | null | null | rpi_camera_code.py | AGarcia-20/Python_practice | 805647401970ae90e1e27f28cb489d3a7b0f3f2e | [
"MIT"
] | 1 | 2020-03-04T22:28:32.000Z | 2020-03-04T22:28:32.000Z | import time
import RPi.GPIO as GPIO
from picamera import PiCamera
import os
from subprocess import check_output
from datetime import datetime
import numpy as np
from PIL import Image
GPIO.setwarnings(False)
i = 0
ligh... | 37.506579 | 183 | 0.559376 | 751 | 5,701 | 4.11984 | 0.292943 | 0.031997 | 0.023271 | 0.007111 | 0.200388 | 0.105365 | 0.088559 | 0.072398 | 0.029089 | 0.029089 | 0 | 0.018053 | 0.358709 | 5,701 | 151 | 184 | 37.754967 | 0.828228 | 0.372391 | 0 | 0.045977 | 0 | 0.011494 | 0.084847 | 0.039728 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.091954 | 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 |
4a237b36fa569f810fd20fb71b6fe2dbef85d298 | 401 | py | Python | ITE-428/basicproject2/MyLibrary.py | richeyphu/ITE-428-LAB | c68fdddb7bbfa8b74a58a0b26bdcb4565af3b08b | [
"MIT"
] | 1 | 2021-07-14T11:12:19.000Z | 2021-07-14T11:12:19.000Z | ITE-428/basicproject2/MyLibrary.py | richeyphu/ITE-428-LAB | c68fdddb7bbfa8b74a58a0b26bdcb4565af3b08b | [
"MIT"
] | null | null | null | ITE-428/basicproject2/MyLibrary.py | richeyphu/ITE-428-LAB | c68fdddb7bbfa8b74a58a0b26bdcb4565af3b08b | [
"MIT"
] | null | null | null | # function declaration
import math
def line1():
print("-" * 35)
def line2(ch): # line2('#')
# print(ch * 35)
print("{}".format(ch) * 35)
def line3(ch, num):
print("{}".format(ch) * num)
def calBMI(w, h):
bmi = w / math.pow(h, 2)
return bmi
def create_email(name, ... | 16.04 | 72 | 0.523691 | 56 | 401 | 3.714286 | 0.535714 | 0.048077 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044218 | 0.266833 | 401 | 24 | 73 | 16.708333 | 0.663265 | 0.112219 | 0 | 0 | 0 | 0 | 0.070336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0.083333 | 0.666667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a2384fe5e28d4f4ba701ee19078b04fc4cbd0f7 | 459 | py | Python | updateAttendance.py | Shivani-781/AI-Powered-Hourly-Attendance-Capturing-System | 46c6ba6ea95b71132d2fc87bfa0824fcbca379c5 | [
"MIT"
] | null | null | null | updateAttendance.py | Shivani-781/AI-Powered-Hourly-Attendance-Capturing-System | 46c6ba6ea95b71132d2fc87bfa0824fcbca379c5 | [
"MIT"
] | null | null | null | updateAttendance.py | Shivani-781/AI-Powered-Hourly-Attendance-Capturing-System | 46c6ba6ea95b71132d2fc87bfa0824fcbca379c5 | [
"MIT"
] | null | null | null | import json
import boto3
dynamo = boto3.resource("dynamodb")
table = dynamo.Table("Attendance_Count")
def lambda_handler(event, context):
# TODO implement
res = table.get_item(Key = {"RollNo" : event['RollNo']})
print(res['Item']['Name'])
Count = res['Item']['Count']
Count= Count+1
... | 30.6 | 86 | 0.616558 | 56 | 459 | 4.982143 | 0.5 | 0.075269 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.200436 | 459 | 15 | 87 | 30.6 | 0.752044 | 0.030501 | 0 | 0 | 0 | 0 | 0.213953 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5879f2fdc7b532447ec1195369fd32f0cbc98ac | 479 | py | Python | back-end/f1hub/constructors/schema.py | mmzboys/F1Hub | 5045c4c62dea738812a6856353d48e5b70d577e2 | [
"MIT"
] | null | null | null | back-end/f1hub/constructors/schema.py | mmzboys/F1Hub | 5045c4c62dea738812a6856353d48e5b70d577e2 | [
"MIT"
] | 18 | 2019-08-29T12:42:11.000Z | 2022-02-12T13:04:58.000Z | back-end/f1hub/constructors/schema.py | mmzboys/F1Hub | 5045c4c62dea738812a6856353d48e5b70d577e2 | [
"MIT"
] | null | null | null | import graphene
from graphene_django import DjangoObjectType
from .models import Constructor
class ConstructorType(DjangoObjectType):
class Meta:
model = Constructor
class Query(graphene.ObjectType):
constructors = graphene.List(ConstructorType, name=graphene.String())
def resolve_constructors... | 26.611111 | 73 | 0.73904 | 49 | 479 | 7.183673 | 0.591837 | 0.090909 | 0.119318 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181628 | 479 | 18 | 74 | 26.611111 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c588e5b1fb0b6a79ffd807e7307caf3a4064413e | 33,885 | py | Python | test_syntax.py | SlavaRa/as2cs | 474208d2c0a43e924c15cf2e4a7eb13ed869ce81 | [
"MIT"
] | 8 | 2018-08-01T19:10:48.000Z | 2020-09-22T12:02:12.000Z | test_syntax.py | SlavaRa/as2cs | 474208d2c0a43e924c15cf2e4a7eb13ed869ce81 | [
"MIT"
] | 1 | 2020-06-24T10:29:26.000Z | 2020-06-24T10:29:26.000Z | test_syntax.py | SlavaRa/as2cs | 474208d2c0a43e924c15cf2e4a7eb13ed869ce81 | [
"MIT"
] | 4 | 2019-04-01T22:48:58.000Z | 2020-06-18T06:18:38.000Z | """
Concise grammar unit test format in definitions.
definitions[definition]: [[input], [output]]
Related to gUnit: Grammar unit test for ANTLR
https://theantlrguy.atlassian.net/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing
"""
from glob import glob
from unittest import main, TestCase
from as2cs import cfg, co... | 31.579683 | 129 | 0.436004 | 3,522 | 33,885 | 4.128904 | 0.09682 | 0.013616 | 0.005776 | 0.006327 | 0.60982 | 0.563815 | 0.519736 | 0.486934 | 0.442718 | 0.411567 | 0 | 0.014804 | 0.340151 | 33,885 | 1,072 | 130 | 31.609142 | 0.635583 | 0.02721 | 0 | 0.476531 | 0 | 0.015306 | 0.510587 | 0.065816 | 0 | 0 | 0.000245 | 0 | 0.018367 | 0 | null | null | 0 | 0.02551 | null | null | 0.006122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c593be5b49d46ed0679cc08c294ae28e33799aac | 1,336 | py | Python | notebook.py | ivddorrka/notebook | b16100fe0b64cd03a642a2ce9dd8a4020b958a01 | [
"MIT"
] | null | null | null | notebook.py | ivddorrka/notebook | b16100fe0b64cd03a642a2ce9dd8a4020b958a01 | [
"MIT"
] | null | null | null | notebook.py | ivddorrka/notebook | b16100fe0b64cd03a642a2ce9dd8a4020b958a01 | [
"MIT"
] | null | null | null | """
Notebook
"""
import datetime
last_id = 0
class Note:
def __init__(self, memo, tags=''):
self.memo = memo
self.tags = tags
self.creation_date = datetime.date.today()
global last_id
last_id += 1
self.id = last_id
def match(self, filter):
return filter ... | 26.196078 | 66 | 0.549401 | 179 | 1,336 | 3.938547 | 0.217877 | 0.093617 | 0.056738 | 0.073759 | 0.241135 | 0.241135 | 0.212766 | 0.102128 | 0.102128 | 0.102128 | 0 | 0.005695 | 0.342814 | 1,336 | 50 | 67 | 26.72 | 0.797267 | 0.157186 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.057143 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c595540488c44d8ee2067f9a9b4a2ee36dce384c | 1,648 | py | Python | examples/add_reference.py | jaideep-seth/PyOpenWorm | c36baeda9590334ba810296934973da34f0eab78 | [
"MIT"
] | 1 | 2019-03-22T12:02:36.000Z | 2019-03-22T12:02:36.000Z | examples/add_reference.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | null | null | null | examples/add_reference.py | BioComSoftware/PyOpenWorm | 32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f | [
"MIT"
] | null | null | null | """
How to reference supporting evidence for some object in the database.
See: "Metadata in PyOpenWorm" for discussion on semantics of what giving
evidence for an object means.
"""
from __future__ import absolute_import
from __future__ import print_function
import PyOpenWorm as P
from PyOpenWorm.evidence import Evide... | 31.692308 | 86 | 0.768204 | 247 | 1,648 | 5.060729 | 0.421053 | 0.056 | 0.0256 | 0.0368 | 0.0416 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.133495 | 1,648 | 51 | 87 | 32.313725 | 0.858543 | 0.477549 | 0 | 0 | 0 | 0 | 0.130641 | 0.024941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c59b701682134a6056cf032617ebc121ccd7a55f | 6,700 | py | Python | tools/simnet/preprocess/quora.py | deternan/AnyQ | 79f1fce2775edaabd3ce7d10e20e30e64378e747 | [
"Apache-2.0"
] | 1 | 2020-02-28T06:10:37.000Z | 2020-02-28T06:10:37.000Z | tools/simnet/preprocess/quora.py | deternan/AnyQ | 79f1fce2775edaabd3ce7d10e20e30e64378e747 | [
"Apache-2.0"
] | null | null | null | tools/simnet/preprocess/quora.py | deternan/AnyQ | 79f1fce2775edaabd3ce7d10e20e30e64378e747 | [
"Apache-2.0"
] | null | null | null | import os
os.chdir('/tmp/AnyQ-master/tools/simnet/preprocess/')
import pandas as pd
import numpy as np
import nltk
from nltk.corpus import stopwords
from nltk.stem import SnowballStemmer
import re
from string import punctuation
import itertools
from collections import defaultdict
from gensim import corpora
inputF... | 37.016575 | 118 | 0.64209 | 987 | 6,700 | 4.253293 | 0.256332 | 0.112434 | 0.131015 | 0.170319 | 0.322535 | 0.141496 | 0.096236 | 0.082897 | 0.082897 | 0.082897 | 0 | 0.015316 | 0.191194 | 6,700 | 180 | 119 | 37.222222 | 0.759365 | 0.107015 | 0 | 0.016393 | 0 | 0 | 0.188686 | 0.014269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.090164 | 0 | 0.106557 | 0.016393 | 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 |
c5a665942917edbe031c0c79cfc9d15fb9c18f81 | 420 | py | Python | setup.py | jason-ennis/runcloud-letsencrypt | cadd5d6708c1c6f8951970305abdd2952ac0da1b | [
"MIT"
] | 77 | 2018-09-01T21:36:26.000Z | 2022-03-28T02:20:45.000Z | setup.py | jason-ennis/runcloud-letsencrypt | cadd5d6708c1c6f8951970305abdd2952ac0da1b | [
"MIT"
] | 16 | 2018-09-12T03:09:43.000Z | 2021-11-20T04:00:30.000Z | setup.py | jason-ennis/runcloud-letsencrypt | cadd5d6708c1c6f8951970305abdd2952ac0da1b | [
"MIT"
] | 27 | 2018-09-03T03:41:43.000Z | 2022-02-26T21:23:04.000Z | from setuptools import setup
setup(name='rcssl',
version='1.5',
description='Install Let\'s Encrypt SSL on RunCloud servers the easy way.',
author="Rehmat",
author_email="contact@rehmat.works",
url="https://github.com/rehmatworks/runcloud-letsencrypt",
license="MIT",
entry_points={
'console_scripts': [
'rc... | 20 | 76 | 0.695238 | 52 | 420 | 5.538462 | 0.826923 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.138095 | 420 | 21 | 77 | 20 | 0.790055 | 0 | 0 | 0.1 | 0 | 0 | 0.370546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c5aa239750aa771e72cc5d1118a1929d3568e221 | 11,757 | py | Python | custom1/custom1/report/item_summary/item_summary.py | jof2jc/custom1 | e7dc6ddaf4a40688082e84f69a9ea4bce13cb2ac | [
"MIT"
] | null | null | null | custom1/custom1/report/item_summary/item_summary.py | jof2jc/custom1 | e7dc6ddaf4a40688082e84f69a9ea4bce13cb2ac | [
"MIT"
] | null | null | null | custom1/custom1/report/item_summary/item_summary.py | jof2jc/custom1 | e7dc6ddaf4a40688082e84f69a9ea4bce13cb2ac | [
"MIT"
] | null | null | null | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import msgprint, _
from frappe.utils import flt,cstr
def execute(filters=None):
if not filters: filters = {}
item_map = {}
... | 43.70632 | 169 | 0.713873 | 1,869 | 11,757 | 4.255217 | 0.108079 | 0.045266 | 0.030177 | 0.012825 | 0.609204 | 0.542311 | 0.511128 | 0.511128 | 0.503961 | 0.498931 | 0 | 0.018526 | 0.146041 | 11,757 | 268 | 170 | 43.869403 | 0.773606 | 0.131666 | 0 | 0.367816 | 0 | 0.126437 | 0.561504 | 0.1219 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028736 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5ad522e16b516a05ecef1fb285d5eb78e95e601 | 1,877 | py | Python | 1DNewtonianFreeFall.py | HenryBass/Python-Simulations | 3a8b018cc252d5a94c4d8a6999675997d6ea11dd | [
"MIT"
] | 2 | 2020-10-01T13:31:04.000Z | 2020-10-01T20:29:43.000Z | 1DNewtonianFreeFall.py | HenryBass/Python-Simulations | 3a8b018cc252d5a94c4d8a6999675997d6ea11dd | [
"MIT"
] | null | null | null | 1DNewtonianFreeFall.py | HenryBass/Python-Simulations | 3a8b018cc252d5a94c4d8a6999675997d6ea11dd | [
"MIT"
] | null | null | null | # Gravity Simulation
import math
import numpy as np
# Welcome
print("Welcome to a 1D Free Fall Simulation. Please enter only in metric integers. ")
print("You will enter the amount of time you want to simulate, it includes information about impact, \n"
"even if the simulation stops before impact.")
... | 29.328125 | 105 | 0.645178 | 241 | 1,877 | 5.024896 | 0.410788 | 0.019818 | 0.014864 | 0.024773 | 0.04294 | 0.04294 | 0 | 0 | 0 | 0 | 0 | 0.009675 | 0.229089 | 1,877 | 63 | 106 | 29.793651 | 0.827229 | 0.063932 | 0 | 0.055556 | 0 | 0.027778 | 0.392157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.527778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c5b5d9ce145733a86227c28d0a87b52395d025e7 | 14,167 | py | Python | model/event_pairs_with_particle_obj.py | wenlinyao/RegularTemporalEventPairs | c683733e1a034956294df1b71d9a5c6e3213d131 | [
"MIT"
] | 1 | 2021-01-07T23:03:55.000Z | 2021-01-07T23:03:55.000Z | model/event_pairs_with_particle_obj.py | wenlinyao/RegularTemporalEventPairs | c683733e1a034956294df1b71d9a5c6e3213d131 | [
"MIT"
] | null | null | null | model/event_pairs_with_particle_obj.py | wenlinyao/RegularTemporalEventPairs | c683733e1a034956294df1b71d9a5c6e3213d131 | [
"MIT"
] | null | null | null | # this program is going to find verb word's particle and object to make each event pair more precise
from StringIO import StringIO
from sets import Set
import glob
import timeit
import gc
import gzip
import re
#----------------------------------------------------------------------
class WordToken:
def __init__ (... | 39.462396 | 116 | 0.538858 | 1,508 | 14,167 | 4.801724 | 0.1187 | 0.046402 | 0.043502 | 0.058003 | 0.527137 | 0.484187 | 0.454633 | 0.431156 | 0.386825 | 0.373567 | 0 | 0.013766 | 0.343686 | 14,167 | 358 | 117 | 39.572626 | 0.765003 | 0.05774 | 0 | 0.5 | 0 | 0 | 0.062423 | 0.022387 | 0.014493 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007246 | 0.025362 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5be5756ce289f17082897d92b7c2c4b6cb79d29 | 261 | py | Python | Archive for old stuff/BluetoothServer/Old/gatt-python.py | Kandidatarbete-Chalmers-MCCX02-19-06/RaspberryPiRadarProgram | f5d69d9084d37246aaf0e0061b3353b86e8d59e3 | [
"MIT"
] | 7 | 2019-05-27T13:13:14.000Z | 2022-03-21T00:09:58.000Z | Archive for old stuff/BluetoothServer/Old/gatt-python.py | Kandidatarbete-Chalmers-MCCX02-19-06/Kandidatarbete-Chalmers-MCCX02-19-06 | f5d69d9084d37246aaf0e0061b3353b86e8d59e3 | [
"MIT"
] | 1 | 2020-02-04T08:32:16.000Z | 2020-05-26T17:44:11.000Z | Archive for old stuff/BluetoothServer/Old/gatt-python.py | Kandidatarbete-Chalmers-MCCX02-19-06/Kandidatarbete-Chalmers-MCCX02-19-06 | f5d69d9084d37246aaf0e0061b3353b86e8d59e3 | [
"MIT"
] | 1 | 2020-11-10T16:43:17.000Z | 2020-11-10T16:43:17.000Z | import gatt
class AnyDeviceManager(gatt.DeviceManager):
def device_discovered(self, device):
print("Discovered [%s] %s" % (device.mac_address, device.alias()))
manager = AnyDeviceManager(adapter_name='hci0')
manager.start_discovery()
manager.run() | 29 | 74 | 0.743295 | 30 | 261 | 6.333333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004348 | 0.118774 | 261 | 9 | 75 | 29 | 0.821739 | 0 | 0 | 0 | 0 | 0 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5c507734ccb679ea2ff65a6a753a00af4c64756 | 805 | py | Python | schwarz/log_utils/tests/testutils_test.py | FelixSchwarz/log_utils | b2a1c10b0e46ee6f587528123e8a97de3dfeb5ec | [
"MIT"
] | null | null | null | schwarz/log_utils/tests/testutils_test.py | FelixSchwarz/log_utils | b2a1c10b0e46ee6f587528123e8a97de3dfeb5ec | [
"MIT"
] | null | null | null | schwarz/log_utils/tests/testutils_test.py | FelixSchwarz/log_utils | b2a1c10b0e46ee6f587528123e8a97de3dfeb5ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021 Felix Schwarz
# The source code contained in this file is licensed under the MIT license.
# SPDX-License-Identifier: MIT
import logging
from pythonic_testcase import assert_raises, PythonicTestCase
from ..testutils import (assert_did_log_message, assert_no_log_messages,
... | 30.961538 | 75 | 0.726708 | 106 | 805 | 5.235849 | 0.528302 | 0.064865 | 0.086486 | 0.136937 | 0.172973 | 0.172973 | 0.12973 | 0.12973 | 0 | 0 | 0 | 0.007587 | 0.181366 | 805 | 25 | 76 | 32.2 | 0.834598 | 0.195031 | 0 | 0 | 0 | 0 | 0.023364 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5c5a9e9f50dc8d502ded6caed20a28b1e3561d3 | 2,320 | py | Python | tests/conftest.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | tests/conftest.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | tests/conftest.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | import json
import string
from io import IOBase
from random import choice
from string import ascii_letters
from typing import Optional
import pytest
import requests
from werkzeug import Response
from infobip_channels.core.models import CamelCaseModel, MultipartMixin
def get_random_string(length: int) -> str:
re... | 23.434343 | 86 | 0.688362 | 277 | 2,320 | 5.563177 | 0.299639 | 0.038936 | 0.03634 | 0.07268 | 0.389358 | 0.338741 | 0.293316 | 0.293316 | 0.220636 | 0.153147 | 0 | 0 | 0.206897 | 2,320 | 98 | 87 | 23.673469 | 0.8375 | 0 | 0 | 0.25 | 0 | 0 | 0.128017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191176 | false | 0 | 0.147059 | 0.132353 | 0.676471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c5d5bd3cee6bb4ba57a30e8213e10f5210b09139 | 7,134 | py | Python | icpp2018/experiments/experimentaux.py | eclufsc/packdrop-data-analysis | afa70f9dfeda6082214822ebab83961d54c83031 | [
"Apache-2.0"
] | 1 | 2018-04-03T02:03:57.000Z | 2018-04-03T02:03:57.000Z | icpp2018/experiments/experimentaux.py | eclufsc/packdrop-data-analysis | afa70f9dfeda6082214822ebab83961d54c83031 | [
"Apache-2.0"
] | null | null | null | icpp2018/experiments/experimentaux.py | eclufsc/packdrop-data-analysis | afa70f9dfeda6082214822ebab83961d54c83031 | [
"Apache-2.0"
] | null | null | null | from parseutils.file_outputter import *
from parseutils.experiment_analyzer import *
from parseutils.experiment_groups import *
from parseutils.directory_resolver import *
from enum import Enum
def list_append(lst, item):
lst.append(item)
return lst
class ExperimentType(Enum):
Schedtime = 0
Apptime = 1
Ste... | 46.627451 | 171 | 0.732408 | 977 | 7,134 | 5.188332 | 0.183214 | 0.019333 | 0.019728 | 0.031564 | 0.504833 | 0.46597 | 0.4348 | 0.353916 | 0.31525 | 0.275005 | 0 | 0.005317 | 0.156434 | 7,134 | 153 | 172 | 46.627451 | 0.836989 | 0.232268 | 0 | 0.084112 | 0 | 0 | 0.102094 | 0.006115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214953 | false | 0 | 0.046729 | 0.009346 | 0.401869 | 0.037383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c5d758e24653a8dca5b470fbda292e1d88a03f92 | 1,932 | py | Python | draugr/visualisation/matplotlib_utilities/annotate.py | cnHeider/draugr | b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6 | [
"Apache-2.0"
] | 3 | 2019-09-27T08:04:59.000Z | 2020-12-02T06:14:45.000Z | draugr/visualisation/matplotlib_utilities/annotate.py | cnHeider/draugr | b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6 | [
"Apache-2.0"
] | 64 | 2019-09-27T08:03:42.000Z | 2022-03-28T15:07:30.000Z | draugr/visualisation/matplotlib_utilities/annotate.py | cnHeider/draugr | b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6 | [
"Apache-2.0"
] | 1 | 2020-10-01T00:18:57.000Z | 2020-10-01T00:18:57.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 04-03-2021
"""
from typing import Tuple
from draugr.scipy_utilities import mag_decimation_subsample
__all__ = [
"annotate_lines",
"default_index_decimator",
]
from warg im... | 23.851852 | 88 | 0.56677 | 240 | 1,932 | 4.279167 | 0.429167 | 0.109056 | 0.081792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018839 | 0.313147 | 1,932 | 80 | 89 | 24.15 | 0.755087 | 0.115942 | 0 | 0.067797 | 0 | 0 | 0.083529 | 0.013529 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.033898 | false | 0.033898 | 0.084746 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c5eba9f2537458a02d509da258893e84fd295738 | 272 | py | Python | integration_tests/txinfo_msgtransfer.py | SaveTheAles/cyber.py | 69211d4f9e861e3c64990725a4a483d2cbee0be1 | [
"MIT"
] | null | null | null | integration_tests/txinfo_msgtransfer.py | SaveTheAles/cyber.py | 69211d4f9e861e3c64990725a4a483d2cbee0be1 | [
"MIT"
] | null | null | null | integration_tests/txinfo_msgtransfer.py | SaveTheAles/cyber.py | 69211d4f9e861e3c64990725a4a483d2cbee0be1 | [
"MIT"
] | null | null | null | from cyber_sdk.client.lcd import LCDClient
if __name__ == "__main__":
client = LCDClient(url="https://lcd.space-pussy-1.cybernode.ai/", chain_id="space-pussy-1")
client.tx.tx_info(
"D22FC6EB287D9F099DD8EBADAAC5D9A0F6AA9D6B87F4A35A3FACEF4182706A16"
)
| 30.222222 | 95 | 0.738971 | 30 | 272 | 6.333333 | 0.733333 | 0.105263 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144681 | 0.136029 | 272 | 8 | 96 | 34 | 0.66383 | 0 | 0 | 0 | 0 | 0 | 0.455882 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5ed8c4a0d3e05fee09d7af741876c4a2412e25c | 3,375 | py | Python | sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py | praveenkuttappan/azure-sdk-for-python | 4b79413667b7539750a6c7dde15737013a3d4bd5 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/cognitivelanguage/azure-ai-language-conversations/tests/test_conversation_app.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import pytest
from azure.core.exceptions import HttpResponseError, ClientAuthenticationError
from azure.core.credentials import AzureKeyCredential
from... | 36.684783 | 90 | 0.662519 | 303 | 3,375 | 7.270627 | 0.277228 | 0.145256 | 0.139809 | 0.090785 | 0.758965 | 0.679982 | 0.679982 | 0.679982 | 0.679982 | 0.679982 | 0 | 0.01051 | 0.238815 | 3,375 | 92 | 91 | 36.684783 | 0.847022 | 0.065481 | 0 | 0.584615 | 0 | 0 | 0.063633 | 0 | 0 | 0 | 0 | 0 | 0.369231 | 1 | 0.030769 | false | 0 | 0.092308 | 0 | 0.138462 | 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 |
c5ee95fc13083aad720534d2337d5f0ec2cde219 | 547 | py | Python | metecho/api/migrations/0091_user_onboarded_at.py | VaccineCloud/Metecho-Vax | 48762a2b5bb53d0d5633d1871e4f1451f5e3e91c | [
"BSD-3-Clause"
] | 21 | 2020-04-02T21:39:58.000Z | 2022-01-31T19:43:47.000Z | metecho/api/migrations/0091_user_onboarded_at.py | VaccineCloud/Metecho-Vax | 48762a2b5bb53d0d5633d1871e4f1451f5e3e91c | [
"BSD-3-Clause"
] | 1,613 | 2020-03-26T16:39:57.000Z | 2022-03-07T14:54:16.000Z | metecho/api/migrations/0091_user_onboarded_at.py | oddbird/MetaShare | 71fb667eaea6990e9d89be13d9a47e76db2a6c46 | [
"BSD-3-Clause"
] | 21 | 2020-07-21T11:58:47.000Z | 2021-11-25T00:48:21.000Z | # Generated by Django 3.1.6 on 2021-02-08 21:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("api", "0090_rename_repository_project"),
]
operations = [
migrations.AddField(
model_name="user",
name="onboarded_at... | 23.782609 | 96 | 0.568556 | 57 | 547 | 5.350877 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052486 | 0.338208 | 547 | 22 | 97 | 24.863636 | 0.790055 | 0.082267 | 0 | 0.125 | 1 | 0 | 0.232 | 0.06 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5fe2ea3619b98077005c7ec582d1d259388f962 | 4,081 | py | Python | sasmodels/models/lamellar_hg.py | pkienzle/sasmodels | de3d42cb3621294b8706e55928035477790cd0ac | [
"BSD-3-Clause"
] | 11 | 2016-07-24T01:29:01.000Z | 2021-12-12T13:41:00.000Z | sasmodels/models/lamellar_hg.py | pkienzle/sasmodels | de3d42cb3621294b8706e55928035477790cd0ac | [
"BSD-3-Clause"
] | 426 | 2016-03-16T21:37:11.000Z | 2022-03-31T13:48:28.000Z | sasmodels/models/lamellar_hg.py | pkienzle/sasmodels | de3d42cb3621294b8706e55928035477790cd0ac | [
"BSD-3-Clause"
] | 28 | 2016-03-16T10:26:50.000Z | 2021-03-17T10:29:48.000Z | # Note: model title and parameter table are inserted automatically
r"""
This model provides the scattering intensity, $I(q)$, for a lyotropic lamellar
phase where a random distribution in solution are assumed. The SLD of the head
region is taken to be different from the SLD of the tail region.
Definition
----------
T... | 32.648 | 109 | 0.619946 | 609 | 4,081 | 4.070608 | 0.343186 | 0.036305 | 0.055668 | 0.041952 | 0.143606 | 0.104881 | 0.062122 | 0.032271 | 0 | 0 | 0 | 0.039055 | 0.222004 | 4,081 | 124 | 110 | 32.91129 | 0.741732 | 0.489096 | 0 | 0.056604 | 0 | 0.037736 | 0.607748 | 0.04891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.037736 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5ff27a840c3920d878b13a72455ee87de931891 | 422 | py | Python | exec_procedure.py | SigmaAdvancedAnalytics/hydra | bf392dfb0e458d1156f52aa206629c1d1636d7a3 | [
"MIT"
] | null | null | null | exec_procedure.py | SigmaAdvancedAnalytics/hydra | bf392dfb0e458d1156f52aa206629c1d1636d7a3 | [
"MIT"
] | null | null | null | exec_procedure.py | SigmaAdvancedAnalytics/hydra | bf392dfb0e458d1156f52aa206629c1d1636d7a3 | [
"MIT"
] | null | null | null | def exec_procedure(session, proc_name, params):
sql_params = ",".join(["@{0}={1}".format(name, value) for name, value in params.items()])
sql_string = """
DECLARE @return_value int;
EXEC @return_value = [dbo].[{proc_name}] {params};
SELECT 'Return Value' = @return_value;
"""... | 42.2 | 94 | 0.635071 | 53 | 422 | 4.830189 | 0.45283 | 0.125 | 0.164063 | 0.132813 | 0.179688 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.203791 | 422 | 9 | 95 | 46.888889 | 0.755952 | 0 | 0 | 0 | 0 | 0 | 0.382567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
680115c046fb42adcb42b4234c7b7db3fb13254c | 2,757 | py | Python | tests/test_host_config.py | mrzor/gcloud_sync_ssh | f064f524648d42a9199ebc6c916e5f72ca2ca45e | [
"MIT"
] | 7 | 2020-10-01T19:39:41.000Z | 2022-03-18T15:28:01.000Z | tests/test_host_config.py | mrzor/gcloud_sync_ssh | f064f524648d42a9199ebc6c916e5f72ca2ca45e | [
"MIT"
] | null | null | null | tests/test_host_config.py | mrzor/gcloud_sync_ssh | f064f524648d42a9199ebc6c916e5f72ca2ca45e | [
"MIT"
] | null | null | null | from gcloud_sync_ssh.host_config import HostConfig
def test_empty():
hc = HostConfig()
assert not hc.minidict()
def test_default_lines():
hc = HostConfig(HostName="4.4.4.4", CertificateFile="exists-or-not-we-dont-check")
ls = hc.lines()
assert ls == [' CertificateFile exists-or-not-we-dont-ch... | 36.276316 | 96 | 0.558215 | 320 | 2,757 | 4.721875 | 0.196875 | 0.064858 | 0.103243 | 0.099272 | 0.63865 | 0.622766 | 0.604897 | 0.43812 | 0.358041 | 0.324289 | 0 | 0.06079 | 0.284004 | 2,757 | 75 | 97 | 36.76 | 0.704661 | 0 | 0 | 0.346154 | 0 | 0 | 0.275662 | 0.020312 | 0 | 0 | 0 | 0 | 0.288462 | 1 | 0.211538 | false | 0 | 0.019231 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
680833cf108db8b34d640eeec65aa327e6cf5f3e | 4,497 | py | Python | empower_core/accountsmanager/accountshandler.py | 5g-empower/empower-core | 38eac8eebf57da4bec07518383ab65a5544445fe | [
"Apache-2.0"
] | 3 | 2020-05-15T01:31:24.000Z | 2020-07-05T04:13:33.000Z | empower_core/accountsmanager/accountshandler.py | 5g-empower/empower-core | 38eac8eebf57da4bec07518383ab65a5544445fe | [
"Apache-2.0"
] | null | null | null | empower_core/accountsmanager/accountshandler.py | 5g-empower/empower-core | 38eac8eebf57da4bec07518383ab65a5544445fe | [
"Apache-2.0"
] | 4 | 2020-05-29T10:16:37.000Z | 2021-07-06T10:48:02.000Z | #!/usr/bin/env python3
#
# Copyright (c) 2019 Roberto Riggio
#
# 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 applicabl... | 26.609467 | 76 | 0.505448 | 449 | 4,497 | 5.013363 | 0.314031 | 0.053754 | 0.046202 | 0.01466 | 0.229231 | 0.229231 | 0.130609 | 0.130609 | 0.095069 | 0.095069 | 0 | 0.018273 | 0.379364 | 4,497 | 168 | 77 | 26.767857 | 0.788248 | 0.523238 | 0 | 0.068966 | 0 | 0 | 0.129247 | 0.023318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.241379 | 0.034483 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6810b0d928fcbbf016a916e993fa414fb7de2d54 | 2,369 | py | Python | ephemere/archive.py | vandalt/ephemere | 4f5cf0b6f88756e87d4cc56a734c40d11bd58d73 | [
"MIT"
] | null | null | null | ephemere/archive.py | vandalt/ephemere | 4f5cf0b6f88756e87d4cc56a734c40d11bd58d73 | [
"MIT"
] | null | null | null | ephemere/archive.py | vandalt/ephemere | 4f5cf0b6f88756e87d4cc56a734c40d11bd58d73 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import List, Optional, Union
from exofile.archive import ExoFile
from pandas.core.frame import DataFrame
from ephemere import constants as const
def load_archive(
query: bool = True,
exofile_param_file: Optional[Union[str, Path]] = None,
use_alt_exofile: bool = False... | 31.171053 | 86 | 0.632756 | 331 | 2,369 | 4.335347 | 0.34139 | 0.044599 | 0.063415 | 0.078049 | 0.209756 | 0.085017 | 0 | 0 | 0 | 0 | 0 | 0.005137 | 0.260447 | 2,369 | 75 | 87 | 31.586667 | 0.813927 | 0.151541 | 0 | 0.09434 | 0 | 0 | 0.022466 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.075472 | false | 0 | 0.09434 | 0 | 0.301887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
68157b1b155f239b767467773e1fc5b8b8dbb139 | 458 | py | Python | source/cloudsatlhr/acquisition_stack.py | JakeHendy/cloudsatlhr | 039cf077a675a79a66939a9b839ae84b3c96cbd6 | [
"MIT"
] | null | null | null | source/cloudsatlhr/acquisition_stack.py | JakeHendy/cloudsatlhr | 039cf077a675a79a66939a9b839ae84b3c96cbd6 | [
"MIT"
] | null | null | null | source/cloudsatlhr/acquisition_stack.py | JakeHendy/cloudsatlhr | 039cf077a675a79a66939a9b839ae84b3c96cbd6 | [
"MIT"
] | null | null | null | from aws_cdk import (core )
from .ingestion_stack import IngestionStack
from .data_store_stack import DataStoreStack
class AcquisitionStack(core.Stage):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kwargs)
self.datastore_stack = DataStoreSta... | 35.230769 | 110 | 0.746725 | 53 | 458 | 6.150943 | 0.509434 | 0.08589 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148472 | 458 | 12 | 111 | 38.166667 | 0.835897 | 0 | 0 | 0 | 0 | 0 | 0.061135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a83f986548edd8bddde35ad3ecda7d2c905090a5 | 8,054 | py | Python | tests/plugins/tools/test_node_npmaudit.py | RiverSafeUK/eze-cli | ad1cce9edd2be28e1681b7c7379ac79f94d32bd3 | [
"MIT"
] | 4 | 2021-07-26T18:44:11.000Z | 2021-12-07T19:59:57.000Z | tests/plugins/tools/test_node_npmaudit.py | RiverSafeUK/eze-cli | ad1cce9edd2be28e1681b7c7379ac79f94d32bd3 | [
"MIT"
] | 23 | 2021-07-26T16:56:59.000Z | 2022-03-11T15:21:25.000Z | tests/plugins/tools/test_node_npmaudit.py | RiverSafeUK/eze-cli | ad1cce9edd2be28e1681b7c7379ac79f94d32bd3 | [
"MIT"
] | 3 | 2021-11-11T15:29:21.000Z | 2021-11-30T10:32:17.000Z | # pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring,line-too-long
from unittest import mock
import pytest
from eze.plugins.tools.node_npmaudit import NpmAuditTool
from eze.utils.io import create_tempfile_path
from tests.plugins.tools.tool_helper import ToolMetaTestBase
clas... | 37.287037 | 119 | 0.61485 | 865 | 8,054 | 5.442775 | 0.2 | 0.053526 | 0.02294 | 0.045879 | 0.766992 | 0.692438 | 0.689465 | 0.670986 | 0.665888 | 0.650807 | 0 | 0.016371 | 0.271915 | 8,054 | 215 | 120 | 37.460465 | 0.786494 | 0.052396 | 0 | 0.486667 | 0 | 0.006667 | 0.248664 | 0.099679 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.086667 | false | 0 | 0.033333 | 0 | 0.14 | 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 |
a83fa939102a3c948cf5b15c654ebb5e0af9b599 | 675 | py | Python | starter/dog_shelters/migrations/0012_auto_20220319_1725.py | hadi-f90/mslearn-django-models-data | 4e21bacdab6f9d8f7a1fa40e5b93c7946e8b093a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | starter/dog_shelters/migrations/0012_auto_20220319_1725.py | hadi-f90/mslearn-django-models-data | 4e21bacdab6f9d8f7a1fa40e5b93c7946e8b093a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | starter/dog_shelters/migrations/0012_auto_20220319_1725.py | hadi-f90/mslearn-django-models-data | 4e21bacdab6f9d8f7a1fa40e5b93c7946e8b093a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-19 17:25
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.fields
class Migration(migrations.Migration):
dependencies = [
('dog_shelters', '0011_auto_20220319_1724'),
]
operations = [
migrations.Remo... | 27 | 175 | 0.642963 | 77 | 675 | 5.519481 | 0.584416 | 0.094118 | 0.131765 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062378 | 0.24 | 675 | 24 | 176 | 28.125 | 0.766082 | 0.068148 | 0 | 0.222222 | 1 | 0 | 0.111643 | 0.036683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a841ae5a1e0f8aad66a455df96f6642eaa0dca52 | 348 | py | Python | LLINS_API/urls.py | majorblackc/LLINS-Hackathon-g5 | 9deb1ee64a05c97adfe7f7796f7e04a4fbd3a4f6 | [
"Apache-2.0"
] | 4 | 2022-02-05T07:26:55.000Z | 2022-02-09T05:56:57.000Z | LLINS_API/urls.py | majorblackc/LLINS-Hackathon-g5 | 9deb1ee64a05c97adfe7f7796f7e04a4fbd3a4f6 | [
"Apache-2.0"
] | null | null | null | LLINS_API/urls.py | majorblackc/LLINS-Hackathon-g5 | 9deb1ee64a05c97adfe7f7796f7e04a4fbd3a4f6 | [
"Apache-2.0"
] | 2 | 2022-02-05T03:56:36.000Z | 2022-02-05T07:25:10.000Z | from django.urls import path
from LLINS_API import views
from rest_framework.urlpatterns import format_suffix_patterns
from django.contrib import admin
urlpatterns = [
path('', admin.site.urls),
path('patients/', views.patient_data_list),
path('patints/<int:pk>/', views.patient_data_detail),
path('nets/... | 29 | 61 | 0.738506 | 47 | 348 | 5.276596 | 0.553191 | 0.080645 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140805 | 348 | 11 | 62 | 31.636364 | 0.829431 | 0 | 0 | 0 | 0 | 0 | 0.08908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a841f5fb4a58e9e04f1d0b06b08ae0a77564a633 | 475 | py | Python | tests/data/program_analysis/strings/Translation/str05.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 17 | 2018-12-19T16:32:38.000Z | 2021-10-05T07:58:15.000Z | tests/data/program_analysis/strings/Translation/str05.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 183 | 2018-12-20T17:03:01.000Z | 2022-02-23T22:21:42.000Z | tests/data/program_analysis/strings/Translation/str05.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 5 | 2019-01-04T22:37:49.000Z | 2022-01-19T17:34:16.000Z | from automates.program_analysis.for2py.format import *
from automates.program_analysis.for2py.strings import *
def main():
str1 = String(10)
str1.set_("abcdef")
n1 = str1.f_index("bc")
n2 = str1.f_index("xyz")
n3 = str1.f_index("f ", ["back"])
n4 = str1.f_index("cde", ["back"])
n5 = str1.... | 23.75 | 55 | 0.621053 | 73 | 475 | 3.863014 | 0.479452 | 0.088652 | 0.177305 | 0.198582 | 0.241135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07013 | 0.189474 | 475 | 19 | 56 | 25 | 0.662338 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 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 |
a85ab5ca0014296a65381a1efd5fb19d36fc153d | 2,056 | py | Python | parkings/migrations/0027_parkingcheck_performer.py | klemmari1/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 12 | 2016-11-29T15:13:10.000Z | 2021-06-12T06:45:38.000Z | parkings/migrations/0027_parkingcheck_performer.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 154 | 2016-11-30T09:07:58.000Z | 2022-02-12T08:29:36.000Z | parkings/migrations/0027_parkingcheck_performer.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 15 | 2016-11-29T19:32:48.000Z | 2022-01-05T11:31:39.000Z | # Generated by Django 2.2.3 on 2019-07-18 06:34
from django.conf import settings
from django.db import migrations, models
def fill_parkingcheck_performer(apps, schema_editor):
parking_check_model = apps.get_model('parkings', 'ParkingCheck')
items_to_process = parking_check_model.objects.filter(performer=None... | 35.448276 | 73 | 0.631809 | 233 | 2,056 | 5.381974 | 0.420601 | 0.057416 | 0.051037 | 0.066986 | 0.328549 | 0.328549 | 0.328549 | 0.328549 | 0.274322 | 0.274322 | 0 | 0.012881 | 0.282588 | 2,056 | 57 | 74 | 36.070175 | 0.837288 | 0.11284 | 0 | 0.4 | 1 | 0 | 0.097964 | 0.01596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.022222 | 0.044444 | 0 | 0.155556 | 0 | 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 |
a860eb12c4ef0a86e7b881b42456d6bef252f077 | 535 | py | Python | tests/test_008.py | vutsalsinghal/python-terrascript | 3b9fb5ad77453d330fb0cd03524154a342c5d5dc | [
"BSD-2-Clause"
] | null | null | null | tests/test_008.py | vutsalsinghal/python-terrascript | 3b9fb5ad77453d330fb0cd03524154a342c5d5dc | [
"BSD-2-Clause"
] | null | null | null | tests/test_008.py | vutsalsinghal/python-terrascript | 3b9fb5ad77453d330fb0cd03524154a342c5d5dc | [
"BSD-2-Clause"
] | null | null | null | # https://www.terraform.io/docs/configuration/locals.html
import terrascript
import terrascript.aws
import terrascript.aws.d
from shared import assert_equals_json
def test():
"""Data (008)"""
config = terrascript.Terrascript()
config += terrascript.aws.aws(version='~> 2.0', region='us-east-1')
con... | 28.157895 | 85 | 0.661682 | 68 | 535 | 5.102941 | 0.632353 | 0.161383 | 0.115274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020642 | 0.185047 | 535 | 19 | 86 | 28.157895 | 0.775229 | 0.125234 | 0 | 0 | 0 | 0 | 0.12095 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a861587786319203c8894e39982992914f97f1d8 | 881 | py | Python | src/ufdl/json/image_classification/_CategoriesModSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/image_classification/_CategoriesModSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | src/ufdl/json/image_classification/_CategoriesModSpec.py | waikato-ufdl/ufdl-json-messages | 408901bdf79aa9ae7cff1af165deee83e62f6088 | [
"Apache-2.0"
] | null | null | null | from typing import List
from wai.json.object import StrictJSONObject
from wai.json.object.property import ArrayProperty, StringProperty, EnumProperty
class CategoriesModSpec(StrictJSONObject['CategoriesModSpec']):
"""
A specification of which images to modify the categories
for, and which categories to m... | 29.366667 | 80 | 0.701476 | 102 | 881 | 5.980392 | 0.382353 | 0.052459 | 0.054098 | 0.103279 | 0.390164 | 0.390164 | 0.291803 | 0.291803 | 0.291803 | 0.291803 | 0 | 0.005848 | 0.22361 | 881 | 29 | 81 | 30.37931 | 0.885965 | 0.271283 | 0 | 0.352941 | 0 | 0 | 0.041935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a863ddcc845965bc25b4d8d1f9c5d129bcd343b9 | 420 | py | Python | wcics/auth/_cookies.py | CS-Center/CS-Center | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | [
"MIT"
] | null | null | null | wcics/auth/_cookies.py | CS-Center/CS-Center | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | [
"MIT"
] | 6 | 2019-12-06T18:06:28.000Z | 2021-12-01T20:19:05.000Z | wcics/auth/_cookies.py | CS-Center/CS-Center | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# File defines a single function, a set cookie that takes a configuration
# Use only if the app cannot be imported, otherwise use .cookies
def set_cookie(config, response, key, val):
response.set_cookie(key, val,
secure = config['COOKIES_SECURE'],
... | 46.666667 | 73 | 0.62381 | 50 | 420 | 5.14 | 0.62 | 0.105058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003289 | 0.27619 | 420 | 9 | 74 | 46.666667 | 0.842105 | 0.371429 | 0 | 0 | 0 | 0 | 0.176245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8651ee966ea73f24b8903f012a21b1bd92c908a | 5,077 | py | Python | sql_queries.py | AlkaSaliss/aws-datawarehouse | dfda5bd6e7b2d7021eb735756f23f58630144582 | [
"MIT"
] | null | null | null | sql_queries.py | AlkaSaliss/aws-datawarehouse | dfda5bd6e7b2d7021eb735756f23f58630144582 | [
"MIT"
] | null | null | null | sql_queries.py | AlkaSaliss/aws-datawarehouse | dfda5bd6e7b2d7021eb735756f23f58630144582 | [
"MIT"
] | null | null | null | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('dwh.cfg')
# DROP TABLES
staging_events_table_drop = "DROP TABLE IF EXISTS staging_events;"
staging_songs_table_drop = "DROP TABLE IF EXISTS staging_songs;"
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP T... | 25.009852 | 139 | 0.727989 | 675 | 5,077 | 5.228148 | 0.164444 | 0.035704 | 0.025786 | 0.035704 | 0.249079 | 0.209975 | 0.173137 | 0.048172 | 0.025503 | 0.025503 | 0 | 0.001203 | 0.181406 | 5,077 | 202 | 140 | 25.133663 | 0.847931 | 0.014182 | 0 | 0.231214 | 0 | 0.00578 | 0.705082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00578 | 0 | 0.00578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a86f51bf043461aa0588931fdd5dd2679c52f04a | 3,906 | py | Python | swftp/test/unit/test_utils.py | softlayer/swftp | 6363985ed51c0d34b9d3aab9ead4f4246e93cd7b | [
"Unlicense"
] | 30 | 2015-01-10T18:22:25.000Z | 2022-03-24T14:21:00.000Z | swftp/test/unit/test_utils.py | softlayer/swftp | 6363985ed51c0d34b9d3aab9ead4f4246e93cd7b | [
"Unlicense"
] | 9 | 2015-01-19T14:52:46.000Z | 2018-12-12T15:49:20.000Z | swftp/test/unit/test_utils.py | softlayer/swftp | 6363985ed51c0d34b9d3aab9ead4f4246e93cd7b | [
"Unlicense"
] | 15 | 2015-01-13T11:36:36.000Z | 2022-02-16T10:47:02.000Z | """
See COPYING for license information.
"""
import unittest
import os
import time
from twisted.python import log
from swftp.utils import (
try_datetime_parse, MetricCollector, parse_key_value_config)
class MetricCollectorTest(unittest.TestCase):
def setUp(self):
self.c = MetricCollector()
def ... | 31.756098 | 77 | 0.642601 | 514 | 3,906 | 4.708171 | 0.198444 | 0.161157 | 0.059504 | 0.07438 | 0.685537 | 0.593802 | 0.543802 | 0.507851 | 0.449587 | 0.373554 | 0 | 0.079396 | 0.219662 | 3,906 | 122 | 78 | 32.016393 | 0.714567 | 0.009217 | 0 | 0.247191 | 0 | 0 | 0.1261 | 0.006473 | 0 | 0 | 0 | 0 | 0.325843 | 1 | 0.224719 | false | 0 | 0.05618 | 0 | 0.314607 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a874b3ed1f2c70ca0545cb7472a858fa342a3b6f | 310 | py | Python | Week2/week2/scripts/publisher_radius.py | vedanth-03/Robotics-Automation-QSTP-2021 | 699ca1b59083473d4036de7521a9f54c8262d934 | [
"MIT"
] | null | null | null | Week2/week2/scripts/publisher_radius.py | vedanth-03/Robotics-Automation-QSTP-2021 | 699ca1b59083473d4036de7521a9f54c8262d934 | [
"MIT"
] | null | null | null | Week2/week2/scripts/publisher_radius.py | vedanth-03/Robotics-Automation-QSTP-2021 | 699ca1b59083473d4036de7521a9f54c8262d934 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float32
rospy.init_node('publisher_radius')
pub = rospy.Publisher('radius', Float32, queue_size=1)
rate = rospy.Rate(1)
radius = 1.0
while not rospy.is_shutdown():
try:
pub.publish(radius)
rate.sleep()
except:
pass | 18.235294 | 54 | 0.674194 | 45 | 310 | 4.533333 | 0.666667 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032389 | 0.203226 | 310 | 17 | 55 | 18.235294 | 0.793522 | 0.064516 | 0 | 0 | 0 | 0 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a877276c835bb302f18bab44b301da7174daa38b | 557 | py | Python | cla_backend/apps/guidance/admin.py | uk-gov-mirror/ministryofjustice.cla_backend | 4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6 | [
"MIT"
] | 3 | 2019-10-02T15:31:03.000Z | 2022-01-13T10:15:53.000Z | cla_backend/apps/guidance/admin.py | uk-gov-mirror/ministryofjustice.cla_backend | 4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6 | [
"MIT"
] | 206 | 2015-01-02T16:50:11.000Z | 2022-02-16T20:16:05.000Z | cla_backend/apps/guidance/admin.py | uk-gov-mirror/ministryofjustice.cla_backend | 4d524c10e7bd31f085d9c5f7bf6e08a6bb39c0a6 | [
"MIT"
] | 6 | 2015-03-23T23:08:42.000Z | 2022-02-15T17:04:44.000Z | # coding=utf-8
from django.contrib import admin
from .admin_support.forms import NoteModelForm
from .models import Note, Tag
class TagInline(admin.TabularInline):
model = Note.tags.through
class NoteAdmin(admin.ModelAdmin):
ordering = ["title"]
exclude = ("created", "modified", "body")
list_displa... | 22.28 | 59 | 0.694794 | 63 | 557 | 6.079365 | 0.603175 | 0.046997 | 0.088773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002151 | 0.165171 | 557 | 24 | 60 | 23.208333 | 0.821505 | 0.021544 | 0 | 0 | 0 | 0 | 0.11418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a879f90d0c6754052f4f70cd64d9708efb627c39 | 1,200 | py | Python | sort/Maximum_628.py | smallbaby/leetcode | 098351205d10b222a082da5d7833cb7cbaef874c | [
"Apache-2.0"
] | null | null | null | sort/Maximum_628.py | smallbaby/leetcode | 098351205d10b222a082da5d7833cb7cbaef874c | [
"Apache-2.0"
] | null | null | null | sort/Maximum_628.py | smallbaby/leetcode | 098351205d10b222a082da5d7833cb7cbaef874c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
class Solution(object):
def maximumProduct(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums.sort(reverse=True)
m1 = nums[0] * nums[1] * nums[2]
m2 = nums[0] * nums[-1] * nums[-2]
return m1 if m1 > m2 else m2
def... | 26.086957 | 44 | 0.393333 | 150 | 1,200 | 3.146667 | 0.28 | 0.042373 | 0.076271 | 0.084746 | 0.440678 | 0.440678 | 0.440678 | 0.440678 | 0.440678 | 0.440678 | 0 | 0.135048 | 0.481667 | 1,200 | 46 | 45 | 26.086957 | 0.623794 | 0.12 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8857c95c07e5c9fa2ec8de4058e6ff6e8bbba7a | 1,245 | py | Python | nlp/englishnlp/bag_of_words.py | geminihcc526/Learning-Demo | daa55d13eb0efb3cdfeb08e588e24b2eecdeb09a | [
"Apache-2.0"
] | null | null | null | nlp/englishnlp/bag_of_words.py | geminihcc526/Learning-Demo | daa55d13eb0efb3cdfeb08e588e24b2eecdeb09a | [
"Apache-2.0"
] | null | null | null | nlp/englishnlp/bag_of_words.py | geminihcc526/Learning-Demo | daa55d13eb0efb3cdfeb08e588e24b2eecdeb09a | [
"Apache-2.0"
] | null | null | null | import pandas as pd
train = pd.read_csv('alldata/labeledTrainData.tsv', header=0, delimiter='\t', quoting=3)
print(train.shape)
print(train.columns.values)
print(train.head())
print(train['review'][0])
test = pd.read_csv('alldata/testData.tsv', header=0, delimiter='\t', quoting=3)
print(test.shape)
print(test.head())
... | 26.489362 | 88 | 0.708434 | 174 | 1,245 | 5 | 0.436782 | 0.057471 | 0.055172 | 0.036782 | 0.075862 | 0.075862 | 0.075862 | 0.075862 | 0 | 0 | 0 | 0.015152 | 0.151807 | 1,245 | 46 | 89 | 27.065217 | 0.808712 | 0.240161 | 0 | 0.071429 | 0 | 0 | 0.112903 | 0.030108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.464286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a88b10973738894b2cd50eb56e9c22d1e774914d | 599 | py | Python | socketserver/echo_stream_request_client.py | TheBigFish/simple-python | 876dd900e801d629271f84a6388614a4501c36ff | [
"MIT"
] | null | null | null | socketserver/echo_stream_request_client.py | TheBigFish/simple-python | 876dd900e801d629271f84a6388614a4501c36ff | [
"MIT"
] | null | null | null | socketserver/echo_stream_request_client.py | TheBigFish/simple-python | 876dd900e801d629271f84a6388614a4501c36ff | [
"MIT"
] | 1 | 2021-11-04T04:31:15.000Z | 2021-11-04T04:31:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : echo_stream_request_client.py
# @Author: yubo
# @Date : 2018/12/19
# @Desc :
import sys
from socket import *
serverHost = '127.0.0.1'
serverPort = 50008
if len(sys.argv) > 1:
serverHost = sys.argv[1]
#Create socket
sSock = socket(AF_INET, SOCK_STREAM)
#... | 19.322581 | 51 | 0.656093 | 87 | 599 | 4.448276 | 0.643678 | 0.036176 | 0.041344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054878 | 0.178631 | 599 | 31 | 52 | 19.322581 | 0.731707 | 0.293823 | 0 | 0 | 0 | 0 | 0.081928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a89268fa475dbac46d0380c34b4f52aad69dc5c9 | 209 | py | Python | Codeforces/A_Vanya_and_Table.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/A_Vanya_and_Table.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/A_Vanya_and_Table.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | arr = []
for x in range(100):
arr.append([])
arr[x] = [0 for i in range(100)]
n = int(input())
ans=0
for x in range(n):
a, b, c, d = map(int, input().split())
ans=ans+(c-a+1)*(d-b+1)
print(ans) | 20.9 | 42 | 0.526316 | 44 | 209 | 2.5 | 0.477273 | 0.190909 | 0.109091 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0.22488 | 209 | 10 | 43 | 20.9 | 0.617284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
a8927830220f9b995890c7c3ce809133b0f92c0d | 5,992 | py | Python | sdk/python/pulumi_gcp/dns/get_keys.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/dns/get_keys.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/dns/get_keys.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 36.536585 | 136 | 0.670895 | 756 | 5,992 | 5.078042 | 0.218254 | 0.074499 | 0.051055 | 0.039073 | 0.512634 | 0.410784 | 0.397239 | 0.357385 | 0.331336 | 0.314144 | 0 | 0.001506 | 0.224132 | 5,992 | 163 | 137 | 36.760736 | 0.824263 | 0.35998 | 0 | 0.085366 | 1 | 0 | 0.148562 | 0.031835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109756 | false | 0 | 0.073171 | 0.02439 | 0.292683 | 0 | 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 |
a893b5d2009a0e3e66e5c753d5a610caf79c8c21 | 562 | py | Python | preferences/admin.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | preferences/admin.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | preferences/admin.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib import admin
from preferences.models import (
UserInterface, UserInterfaceForm, UserPref, UserPrefForm)
class UserInterfaceAdmin(admin.ModelAdmin):
form = UserInterfaceForm
list_display = ('name', 'comment',)
search_fields = ('name', 'comment',)
class Use... | 26.761905 | 61 | 0.713523 | 56 | 562 | 7.089286 | 0.535714 | 0.115869 | 0.095718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.147687 | 562 | 20 | 62 | 28.1 | 0.826722 | 0.037367 | 0 | 0 | 0 | 0 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a899e5e7980736481568bef0256c375a1034da1d | 765 | py | Python | code/Tokens/TokenEnum.py | antuniooh/Dattebayo-compiler | fd6767aee1c131dcbf76fc061bce43224df03f8b | [
"MIT"
] | null | null | null | code/Tokens/TokenEnum.py | antuniooh/Dattebayo-compiler | fd6767aee1c131dcbf76fc061bce43224df03f8b | [
"MIT"
] | null | null | null | code/Tokens/TokenEnum.py | antuniooh/Dattebayo-compiler | fd6767aee1c131dcbf76fc061bce43224df03f8b | [
"MIT"
] | 1 | 2021-12-05T14:00:39.000Z | 2021-12-05T14:00:39.000Z | from enum import Enum
""" Enum class of Tokens
"""
class TokenEnum(Enum):
NINJUTSU = "if"
GENJUTSU = "elif"
TAIJUTSU = "else"
KAGEBUNSHIN = "for"
TSUKUYOMI = "while"
CHAKRA = "def"
KAMUI = "return"
SHARINGAN = "print"
RASENGAN = "int"
RAIKIRI = "float"
ZETSU = "bo... | 18.658537 | 29 | 0.503268 | 62 | 765 | 6.209677 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.332026 | 765 | 41 | 30 | 18.658537 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0.146776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 1 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a89a2d5d3eb3c04efd1f90c71911f97fcc8f7974 | 3,087 | py | Python | magpie/dropboxlib/downloader/__init__.py | nimiq/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | 4 | 2018-06-25T15:57:26.000Z | 2021-06-07T23:53:31.000Z | magpie/dropboxlib/downloader/__init__.py | puntonim/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | null | null | null | magpie/dropboxlib/downloader/__init__.py | puntonim/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | 1 | 2017-06-17T09:53:21.000Z | 2017-06-17T09:53:21.000Z | import logging
from dropbox.client import DropboxClient # Dropobox official library
from ..redislist import RedisDropboxDownloadList, RedisDropboxIndexList
from .dropboxfile import DropboxFile
log = logging.getLogger('dropbox')
class DropboxDownloader:
"""
Download files from Dropbox based on a list previ... | 41.716216 | 98 | 0.63978 | 379 | 3,087 | 5.036939 | 0.369393 | 0.078575 | 0.044002 | 0.041907 | 0.167627 | 0.118387 | 0.118387 | 0.079623 | 0.039811 | 0.039811 | 0 | 0 | 0.289278 | 3,087 | 74 | 99 | 41.716216 | 0.8701 | 0.442825 | 0 | 0 | 0 | 0 | 0.029286 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.1 | false | 0 | 0.133333 | 0 | 0.3 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a89c55cea736a4d2067c488e827a01eed59199aa | 2,866 | py | Python | game/template.py | laddie132/MD3 | 3df45918e33437e9a2309f7965f34f3a75621059 | [
"MIT"
] | 6 | 2021-02-07T03:20:29.000Z | 2021-04-09T03:34:51.000Z | game/template.py | laddie132/MD3 | 3df45918e33437e9a2309f7965f34f3a75621059 | [
"MIT"
] | null | null | null | game/template.py | laddie132/MD3 | 3df45918e33437e9a2309f7965f34f3a75621059 | [
"MIT"
] | 1 | 2021-12-14T15:42:40.000Z | 2021-12-14T15:42:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Han"
__email__ = "liuhan132@foxmail.com"
import random
import json
class AgentActs:
"""
Pre-defined agent actions and slots
"""
DIRECTED_BY = 'directed_by'
RELEASE_YEAR = 'release_year'
WRITTEN_BY = 'written_by'
STARRED_ACTORS ... | 26.785047 | 107 | 0.61933 | 385 | 2,866 | 4.335065 | 0.277922 | 0.086279 | 0.061114 | 0.025165 | 0.195327 | 0.082684 | 0 | 0 | 0 | 0 | 0 | 0.003874 | 0.279484 | 2,866 | 106 | 108 | 27.037736 | 0.804358 | 0.08723 | 0 | 0.153846 | 0 | 0 | 0.145047 | 0.008255 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.030769 | 0.061538 | 0.523077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8a0308f98e0c2a86d6c02c34d17cb5babbd3ebc | 2,534 | py | Python | multidb/decorators.py | apnarm/django-multidb | 4a237283daea5ddfe9356c11ad87e6bce1ab3288 | [
"MIT"
] | null | null | null | multidb/decorators.py | apnarm/django-multidb | 4a237283daea5ddfe9356c11ad87e6bce1ab3288 | [
"MIT"
] | null | null | null | multidb/decorators.py | apnarm/django-multidb | 4a237283daea5ddfe9356c11ad87e6bce1ab3288 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import functools
from django.forms.utils import ErrorList
from .readonly import read_only_mode, ReadOnlyError
from .signals import send_post_commit, send_post_rollback, send_pre_commit
def full_clean_if_not_read_only(full_clean):
"""Decorator for preventing form submissions while in read... | 27.247312 | 76 | 0.625888 | 292 | 2,534 | 5.284247 | 0.260274 | 0.077771 | 0.077771 | 0.067401 | 0.535969 | 0.481529 | 0.420609 | 0.362281 | 0.313027 | 0.313027 | 0 | 0.001095 | 0.279006 | 2,534 | 92 | 77 | 27.543478 | 0.843459 | 0.24191 | 0 | 0.471698 | 0 | 0 | 0.02447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.075472 | 0 | 0.471698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8a3de891a6931c76b4b20ed95497837c63d4d22 | 3,294 | py | Python | course_project/K33401/Zolotov_Pavel/backend/classified/migrations/0001_initial.py | pavel-zolotov/ITMO-ICT-Frontend-2021 | 18c50707ece0cc6a5edde0da5e8f11a70df8501b | [
"ISC"
] | 4 | 2021-10-02T13:59:10.000Z | 2022-03-19T18:50:42.000Z | course_project/K33401/Zolotov_Pavel/backend/classified/migrations/0001_initial.py | pavel-zolotov/ITMO-ICT-Frontend-2021 | 18c50707ece0cc6a5edde0da5e8f11a70df8501b | [
"ISC"
] | 37 | 2021-09-16T19:15:21.000Z | 2022-01-25T20:43:48.000Z | course_project/K33401/Zolotov_Pavel/backend/classified/migrations/0001_initial.py | pavel-zolotov/ITMO-ICT-Frontend-2021 | 18c50707ece0cc6a5edde0da5e8f11a70df8501b | [
"ISC"
] | 43 | 2021-09-16T18:54:48.000Z | 2022-03-19T04:52:30.000Z | # Generated by Django 4.0.1 on 2022-01-22 17:45
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 43.342105 | 177 | 0.593807 | 315 | 3,294 | 6.092063 | 0.285714 | 0.03283 | 0.05211 | 0.057322 | 0.623241 | 0.571131 | 0.531527 | 0.531527 | 0.531527 | 0.531527 | 0 | 0.017449 | 0.269277 | 3,294 | 75 | 178 | 43.92 | 0.779809 | 0.013661 | 0 | 0.485294 | 1 | 0 | 0.084694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8a611b6ddf523765567b1a26dbc8bba2217e758 | 1,306 | py | Python | bin/lib/releases.py | jfalcou/infra | 97e05039a3f4f3d69b7c50233aed5e5d60a59605 | [
"BSD-2-Clause"
] | 135 | 2017-01-12T04:39:08.000Z | 2020-05-08T17:08:52.000Z | bin/lib/releases.py | jfalcou/infra | 97e05039a3f4f3d69b7c50233aed5e5d60a59605 | [
"BSD-2-Clause"
] | 229 | 2017-01-23T12:45:44.000Z | 2020-05-13T17:36:57.000Z | bin/lib/releases.py | jfalcou/infra | 97e05039a3f4f3d69b7c50233aed5e5d60a59605 | [
"BSD-2-Clause"
] | 106 | 2017-04-18T14:42:34.000Z | 2020-05-07T14:24:34.000Z | from enum import Enum
from typing import Optional, Tuple
from attr import dataclass
@dataclass(frozen=True)
class Hash:
hash: str
def __str__(self) -> str:
return f'{str(self.hash[:6])}..{str(self.hash[-6:])}'
class VersionSource(Enum):
value: Tuple[int, str]
TRAVIS = (0, 'tr')
GITHUB ... | 22.517241 | 92 | 0.633997 | 164 | 1,306 | 4.853659 | 0.335366 | 0.052764 | 0.037688 | 0.030151 | 0.052764 | 0.052764 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0.248851 | 1,306 | 57 | 93 | 22.912281 | 0.805301 | 0 | 0 | 0.047619 | 0 | 0 | 0.087289 | 0.053599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.119048 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a8a70f07858fbde32695dcedbfc494ad391215c2 | 3,826 | py | Python | Backend/movie_reviews_back/api/views.py | Zhaisan/WEB-Project | 2de78b68dddc73a0d80495dd47363b8e9f2691a0 | [
"MIT"
] | 2 | 2021-04-24T16:26:31.000Z | 2021-05-12T14:19:55.000Z | Backend/movie_reviews_back/api/views.py | Zhaisan/WEB-Project | 2de78b68dddc73a0d80495dd47363b8e9f2691a0 | [
"MIT"
] | null | null | null | Backend/movie_reviews_back/api/views.py | Zhaisan/WEB-Project | 2de78b68dddc73a0d80495dd47363b8e9f2691a0 | [
"MIT"
] | null | null | null | from django.http.response import JsonResponse
from api.models import *
from api.serializers import *
from rest_framework.decorators import api_view
from django.http.response import JsonResponse
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from django.shortcu... | 32.700855 | 81 | 0.641924 | 421 | 3,826 | 5.729216 | 0.199525 | 0.075456 | 0.109453 | 0.104478 | 0.518242 | 0.46932 | 0.41874 | 0.35738 | 0.329187 | 0.310945 | 0 | 0.010166 | 0.228698 | 3,826 | 116 | 82 | 32.982759 | 0.807184 | 0.050444 | 0 | 0.409091 | 0 | 0 | 0.011386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.113636 | 0 | 0.522727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8a9a70991590d74a2c4c47e191a6303c4714787 | 7,311 | py | Python | tests/unit/states/test_ssh_known_hosts.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-03-31T22:51:16.000Z | 2020-03-31T22:51:16.000Z | tests/unit/states/test_ssh_known_hosts.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/unit/states/test_ssh_known_hosts.py | yuriks/salt | d2a5bd8adddb98ec1718d79384aa13b4f37e8028 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-30T07:00:01.000Z | 2021-09-30T07:00:01.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
'''
# Import Python libs
from __future__ import absolute_import, unicode_literals, print_function
import os
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase
from t... | 43.517857 | 80 | 0.520722 | 749 | 7,311 | 4.874499 | 0.18024 | 0.083265 | 0.135305 | 0.110929 | 0.744727 | 0.703369 | 0.662832 | 0.660093 | 0.646946 | 0.555738 | 0 | 0.005908 | 0.351799 | 7,311 | 167 | 81 | 43.778443 | 0.764507 | 0.051703 | 0 | 0.596774 | 0 | 0.008065 | 0.182203 | 0.014442 | 0 | 0 | 0 | 0 | 0.120968 | 1 | 0.024194 | false | 0 | 0.048387 | 0.008065 | 0.08871 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8aa7724fdfce9c4d486049556d341a5672a8264 | 398 | py | Python | src/f.py | kissy24/atcoder-past-exam | 29b9e9a551b401b3dd253aa5b5904eb37bf8e079 | [
"MIT"
] | null | null | null | src/f.py | kissy24/atcoder-past-exam | 29b9e9a551b401b3dd253aa5b5904eb37bf8e079 | [
"MIT"
] | null | null | null | src/f.py | kissy24/atcoder-past-exam | 29b9e9a551b401b3dd253aa5b5904eb37bf8e079 | [
"MIT"
] | null | null | null | import re
def sort_by_double_camel(chars: str) -> str:
"""ダブルキャメルケースで分割ソートする
Args:
chars(str): ソート対象の文字列
Returns:
(list[str]): 昇順でソートされたダブルキャメルケース文字列
"""
double_camels = sorted(re.findall("[A-Z][a-z]*[A-Z]", chars), key=str.lower)
return "".join(double_camels)
def main():
... | 18.952381 | 80 | 0.625628 | 50 | 398 | 4.66 | 0.58 | 0.025751 | 0.103004 | 0.145923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211055 | 398 | 20 | 81 | 19.9 | 0.742038 | 0.248744 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8aed33972dc33ea2c92c7608cc503b8d39c5350 | 4,227 | py | Python | flaskr/cac.py | juliasliu/application | ca1b1304422f447fdd4b146aa21cd654a839a13d | [
"Unlicense"
] | null | null | null | flaskr/cac.py | juliasliu/application | ca1b1304422f447fdd4b146aa21cd654a839a13d | [
"Unlicense"
] | null | null | null | flaskr/cac.py | juliasliu/application | ca1b1304422f447fdd4b146aa21cd654a839a13d | [
"Unlicense"
] | null | null | null | '''Python script to generate CAC'''
'''Authors - @Julia Liu
'''
import numpy as np
import pandas as pd
from datetime import datetime
import collections
from .helpers import *
class CAC:
def __init__(self, fin_perf, oper_metrics, oth_metrics):
print("INIT CAC")
self.fin_perf = pd.DataFrame(fin_pe... | 46.966667 | 180 | 0.64916 | 671 | 4,227 | 3.886736 | 0.153502 | 0.152991 | 0.118865 | 0.059816 | 0.569785 | 0.509202 | 0.361963 | 0.265721 | 0.259202 | 0.238114 | 0 | 0.016087 | 0.191152 | 4,227 | 89 | 181 | 47.494382 | 0.74671 | 0.006861 | 0 | 0 | 1 | 0 | 0.129652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.068493 | 0 | 0.178082 | 0.109589 | 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 |
a8b1661cb3870fa36e92367974a4274c28a0e346 | 1,022 | py | Python | hlwtadmin/management/commands/resolve_orgs_without_concerts.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 1 | 2020-10-16T16:29:01.000Z | 2020-10-16T16:29:01.000Z | hlwtadmin/management/commands/resolve_orgs_without_concerts.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 365 | 2020-02-03T12:46:53.000Z | 2022-02-27T17:20:46.000Z | hlwtadmin/management/commands/resolve_orgs_without_concerts.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | null | null | null | from hlwtadmin.models import Artist, GigFinderUrl, GigFinder, ConcertAnnouncement, Venue, Location, Organisation, Country, Concert, RelationConcertOrganisation, Location
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
def add_arguments(self, parser):
pass
... | 44.434783 | 169 | 0.625245 | 86 | 1,022 | 7.360465 | 0.546512 | 0.061611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304305 | 1,022 | 22 | 170 | 46.454545 | 0.890295 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 0 | 0.277778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8b9e426bb82b9b282b0a167e80309604edb8db1 | 481 | py | Python | dynamic-programming/on_the_way_home.py | izan-majeed/archives | 89af2a24f4a6f07bda8ee38d99ae8667d42727f4 | [
"Apache-2.0"
] | null | null | null | dynamic-programming/on_the_way_home.py | izan-majeed/archives | 89af2a24f4a6f07bda8ee38d99ae8667d42727f4 | [
"Apache-2.0"
] | null | null | null | dynamic-programming/on_the_way_home.py | izan-majeed/archives | 89af2a24f4a6f07bda8ee38d99ae8667d42727f4 | [
"Apache-2.0"
] | null | null | null | def ways(n, m):
grid = [[None]*m]*n
for i in range(m):
grid[n-1][i] = 1
for i in range(n):
grid[i][m-1] = 1
for i in range(n-2,-1,-1):
for j in range(m-2,-1,-1):
grid[i][j] = grid[i][j+1] + grid[i+1][j]
return grid[0][0]
if __name__ == "__main__":
t = int(input("Number of times you want to run thi... | 20.041667 | 65 | 0.550936 | 104 | 481 | 2.471154 | 0.365385 | 0.136187 | 0.093385 | 0.171206 | 0.101167 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0.039578 | 0.212058 | 481 | 23 | 66 | 20.913043 | 0.638522 | 0 | 0 | 0 | 0 | 0 | 0.220833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.0625 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.