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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1cb57c4719cb2187bbe7c0393c6721ca7f7cb012 | 3,792 | py | Python | abscplane.py | chapman-cs510-2016f/cw-05-needcoffee | dbf0af5ef3d233cc695d19e1871df6027f34cd64 | [
"MIT"
] | null | null | null | abscplane.py | chapman-cs510-2016f/cw-05-needcoffee | dbf0af5ef3d233cc695d19e1871df6027f34cd64 | [
"MIT"
] | null | null | null | abscplane.py | chapman-cs510-2016f/cw-05-needcoffee | dbf0af5ef3d233cc695d19e1871df6027f34cd64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from abc import ABC, abstractmethod
"""CS510 - CW05 Abstract Base Classes.
This module provides abstract base classes for CW05.
Note that such a class does nothing by itself: all functionality
is just a pass statement as written. Instead, a coder is
intended to inherit from this class in order... | 39.092784 | 69 | 0.68961 | 557 | 3,792 | 4.685817 | 0.368043 | 0.027586 | 0.009195 | 0.006897 | 0.036015 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0.008144 | 0.255274 | 3,792 | 96 | 70 | 39.5 | 0.916076 | 0.586762 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.157895 | 0.052632 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
1cb6efb02f1e00a6c9250ca308afe08806b740bc | 3,929 | gyp | Python | binding.gyp | LaurentGoderre/naudiodon | d7fb331d9e98bafed2e8883eccd7fff43922e612 | [
"Apache-2.0"
] | 2 | 2021-03-28T17:48:55.000Z | 2022-02-03T00:39:15.000Z | binding.gyp | LaurentGoderre/naudiodon | d7fb331d9e98bafed2e8883eccd7fff43922e612 | [
"Apache-2.0"
] | null | null | null | binding.gyp | LaurentGoderre/naudiodon | d7fb331d9e98bafed2e8883eccd7fff43922e612 | [
"Apache-2.0"
] | 1 | 2019-11-21T18:15:55.000Z | 2019-11-21T18:15:55.000Z | {
"targets": [
{
"target_name": "naudiodon",
"sources": [
"src/naudiodon.cc",
"src/GetDevices.cc",
"src/GetHostAPIs.cc",
"src/AudioIO.cc",
"src/PaContext.cc"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"po... | 28.471014 | 81 | 0.324001 | 230 | 3,929 | 5.352174 | 0.36087 | 0.116978 | 0.105605 | 0.116978 | 0.554021 | 0.498781 | 0.459789 | 0.433794 | 0.433794 | 0.386678 | 0 | 0.012507 | 0.531942 | 3,929 | 137 | 82 | 28.678832 | 0.656879 | 0.0028 | 0 | 0.394161 | 0 | 0 | 0.365935 | 0.150153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cbdee097220182c395c2954603a8caab4d1f356 | 1,353 | py | Python | vrp/vrp_solver/input_data.py | PuneethReddyHC/VRP-challenge | 177a34511c7124401ce4b276992d2c90cc6af3ae | [
"MIT"
] | 5 | 2020-12-17T09:29:53.000Z | 2022-03-02T00:10:56.000Z | vrp/vrp_solver/input_data.py | PuneethReddyHC/VRP-challenge | 177a34511c7124401ce4b276992d2c90cc6af3ae | [
"MIT"
] | null | null | null | vrp/vrp_solver/input_data.py | PuneethReddyHC/VRP-challenge | 177a34511c7124401ce4b276992d2c90cc6af3ae | [
"MIT"
] | 1 | 2021-01-25T01:23:49.000Z | 2021-01-25T01:23:49.000Z | from misc import save_pickle_data, distance_diff
data = [
(0, 45.8242, 15.906),
(1, 45.8135, 15.949),
(2, 45.8129, 15.9594),
(3, 45.8123, 15.9808),
(4, 45.8161, 16.0105),
(5, 45.819, 16.0505),
(6, 45.7999, 15.9201),
(7, 45.801, 15.9324),
(8, 45.7982, 15.9642),
(9, 45.7963, 15.98... | 21.822581 | 86 | 0.524021 | 210 | 1,353 | 3.3 | 0.485714 | 0.080808 | 0.034632 | 0.047619 | 0.076479 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 0.304791 | 0.274945 | 1,353 | 61 | 87 | 22.180328 | 0.401631 | 0.003695 | 0 | 0 | 0 | 0 | 0.03789 | 0.018574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.021739 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cc20e2bb62a49abc968f505d28169416d26e9d5 | 1,886 | py | Python | final_model/tag/tag_embedding.py | jaeyoung-kang/recsys_cafe | 1729255db15aeb8b7809180aece9c570fef321a8 | [
"MIT"
] | null | null | null | final_model/tag/tag_embedding.py | jaeyoung-kang/recsys_cafe | 1729255db15aeb8b7809180aece9c570fef321a8 | [
"MIT"
] | null | null | null | final_model/tag/tag_embedding.py | jaeyoung-kang/recsys_cafe | 1729255db15aeb8b7809180aece9c570fef321a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""embeding.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/13hURGvyLGzt1ttQqPH1iCdfX3r5p8_uk
"""
import torch
from torch.utils.data import Dataset, DataLoader
from torch import nn
from torchvision import transforms
import... | 24.493506 | 77 | 0.755567 | 253 | 1,886 | 5.43083 | 0.545455 | 0.026201 | 0.026201 | 0.029112 | 0.082969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029466 | 0.136267 | 1,886 | 76 | 78 | 24.815789 | 0.813996 | 0 | 0 | 0 | 1 | 0 | 0.109459 | 0.064247 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cc97c7e29a9f974dfd0f9a3fb5c807725ca24c4 | 421 | py | Python | test/test_package.py | mnalband/schemathesis | 42b351589fae3f407a1de248750bc82d6b5796d1 | [
"MIT"
] | null | null | null | test/test_package.py | mnalband/schemathesis | 42b351589fae3f407a1de248750bc82d6b5796d1 | [
"MIT"
] | null | null | null | test/test_package.py | mnalband/schemathesis | 42b351589fae3f407a1de248750bc82d6b5796d1 | [
"MIT"
] | null | null | null | import sys
from importlib_metadata import PackageNotFoundError
def test_dev_version(monkeypatch, mocker):
# When Schemathesis is run in dev environment without installation
monkeypatch.delitem(sys.modules, "schemathesis")
mocker.patch("importlib_metadata.version", side_effect=PackageNotFoundError)
fr... | 30.071429 | 80 | 0.779097 | 48 | 421 | 6.5625 | 0.604167 | 0.107937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154394 | 421 | 13 | 81 | 32.384615 | 0.884831 | 0.216152 | 0 | 0 | 0 | 0 | 0.125382 | 0.079511 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1cdb2d77fa504af32cf66f722ac4aead60383f29 | 3,356 | py | Python | tmp.py | McStasMcXtrace/ufit | 02640e2b802bf6d42ae6829a1c1852b21c6fa9f7 | [
"BSD-2-Clause"
] | null | null | null | tmp.py | McStasMcXtrace/ufit | 02640e2b802bf6d42ae6829a1c1852b21c6fa9f7 | [
"BSD-2-Clause"
] | null | null | null | tmp.py | McStasMcXtrace/ufit | 02640e2b802bf6d42ae6829a1c1852b21c6fa9f7 | [
"BSD-2-Clause"
] | null | null | null |
from ufit.lab import *
d = as_data(array([ 1.9977, 2.1034, 2.2055, 2.2992, 2.4078, 2.4985, 2.6092,
2.7063, 2.8043, 2.9082, 3.008 , 3.1036, 3.2051, 3.3024,
3.4057, 3.5047, 3.6046, 3.6947, 3.8015, 3.8985, 3.9963,
4.1003, 4.1998, 4.3 , 4.4011, 4.4973, 4.5943, 4.6979,
... | 55.016393 | 134 | 0.521156 | 503 | 3,356 | 3.473161 | 0.576541 | 0.016027 | 0.025186 | 0.027476 | 0.123641 | 0.123641 | 0.106468 | 0.106468 | 0.106468 | 0.077848 | 0 | 0.586337 | 0.289035 | 3,356 | 60 | 135 | 55.933333 | 0.145851 | 0.065852 | 0 | 0 | 0 | 0 | 0.006072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cdf360ce60e34c5c74092c51d69d13065eb4595 | 313 | py | Python | pe3.py | thne/projecteuler | 48cef1988a874d75cf80e3727a57f29fe041a220 | [
"MIT"
] | null | null | null | pe3.py | thne/projecteuler | 48cef1988a874d75cf80e3727a57f29fe041a220 | [
"MIT"
] | null | null | null | pe3.py | thne/projecteuler | 48cef1988a874d75cf80e3727a57f29fe041a220 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# 6857
#-------------------------------------------------------------------------------
N = 600851475143
d = 3
while d * d <= N and N != 1:
while N % d == 0:
N //= d
last = d
d += 2
if N != 1:
last = N
print(last)
| 17.388889 | 80 | 0.214058 | 29 | 313 | 2.310345 | 0.448276 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.194888 | 313 | 17 | 81 | 18.411765 | 0.18254 | 0.520767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 1 | 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 | 2 |
e804df754854fb8828c5bd906766cdd2e28c7038 | 20,052 | py | Python | pysnmp/NETREALITY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/NETREALITY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/NETREALITY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module NETREALITY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETREALITY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:10:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 119.357143 | 2,960 | 0.748604 | 2,344 | 20,052 | 6.40273 | 0.103242 | 0.01266 | 0.017191 | 0.022921 | 0.45076 | 0.397455 | 0.351279 | 0.339752 | 0.312833 | 0.253865 | 0 | 0.086089 | 0.087622 | 20,052 | 167 | 2,961 | 120.071856 | 0.734244 | 0.016058 | 0 | 0 | 0 | 0 | 0.122357 | 0.004412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00625 | 0.04375 | 0 | 0.04375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8052e035d5e2e303d195ecf5d3cc86f3023f4e1 | 1,395 | py | Python | etc/parse_introspection.py | casallas/osgswig | 42bd392fefb09771e7cdc0c59eb6b19fa159431e | [
"MIT"
] | 5 | 2015-12-31T06:08:05.000Z | 2021-09-07T08:52:09.000Z | etc/parse_introspection.py | casallas/osgswig | 42bd392fefb09771e7cdc0c59eb6b19fa159431e | [
"MIT"
] | null | null | null | etc/parse_introspection.py | casallas/osgswig | 42bd392fefb09771e7cdc0c59eb6b19fa159431e | [
"MIT"
] | 6 | 2015-12-31T06:08:06.000Z | 2019-04-20T13:35:07.000Z | """
Parse some osgIntrospection information to find "critical" SWIG sections in osg, being nested classes and templates
file generated with the regular C++ osgintrospection example: "osgintrospection >introspection_osg.txt"
29/8/2008 Gerwin de Haan
"""
import re
f = open ("introspection_osg.txt")
nestedclasses = []
... | 30.326087 | 115 | 0.598566 | 164 | 1,395 | 5.079268 | 0.506098 | 0.032413 | 0.032413 | 0.036014 | 0.060024 | 0.060024 | 0.060024 | 0 | 0 | 0 | 0 | 0.008256 | 0.305376 | 1,395 | 45 | 116 | 31 | 0.851393 | 0.237993 | 0 | 0.16 | 1 | 0 | 0.089888 | 0.026217 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.04 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e80a21c4f564658ee328d0de65f2eec20866b1dc | 1,496 | py | Python | app/land.py | mgagcode/flaskpywrapbokehtemplate | 5e56b28756f8acf98805e7168c615ea205aa4e18 | [
"MIT"
] | null | null | null | app/land.py | mgagcode/flaskpywrapbokehtemplate | 5e56b28756f8acf98805e7168c615ea205aa4e18 | [
"MIT"
] | null | null | null | app/land.py | mgagcode/flaskpywrapbokehtemplate | 5e56b28756f8acf98805e7168c615ea205aa4e18 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Example using WrapBokeh
"""
from bokeh.layouts import layout
from bokeh.models.widgets import Div
from flask import redirect, abort, Blueprint, session
from flask import request
from flask import current_app as app
import logging
logger = logging.getLogger("TMI.land")
... | 26.245614 | 80 | 0.727273 | 222 | 1,496 | 4.689189 | 0.436937 | 0.033622 | 0.043228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002385 | 0.159091 | 1,496 | 56 | 81 | 26.714286 | 0.825119 | 0.147727 | 0 | 0 | 0 | 0 | 0.068146 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
e80b1fc8bd2bf89956c6e629ef75d4ab94180d18 | 362 | py | Python | tasks/most-recent-posts-and-comments/task.py | dzbrozek/interview-tasks | 552bf7f0652ec34b57d961cc59d0be14216b18eb | [
"MIT"
] | null | null | null | tasks/most-recent-posts-and-comments/task.py | dzbrozek/interview-tasks | 552bf7f0652ec34b57d961cc59d0be14216b18eb | [
"MIT"
] | null | null | null | tasks/most-recent-posts-and-comments/task.py | dzbrozek/interview-tasks | 552bf7f0652ec34b57d961cc59d0be14216b18eb | [
"MIT"
] | null | null | null | from django.db import models
class Post(models.Model):
title = models.CharField(max_length=255)
text = models.TextField()
class Comment(models.Model):
post = models.ForeignKey(Post, related_name='comments', on_delete=models.CASCADE)
text = models.TextField()
created_at = models.DateTimeField(aut... | 21.294118 | 85 | 0.726519 | 47 | 362 | 5.468085 | 0.702128 | 0.077821 | 0.14786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009868 | 0.160221 | 362 | 16 | 86 | 22.625 | 0.835526 | 0 | 0 | 0.2 | 0 | 0 | 0.022099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
e81f20acb0577069f386cff184628e9891e925cf | 67 | py | Python | pyAitu/dispatcher/__init__.py | waihislam/pyAitu | 6e7c3bfa7454d6ae91ba998017cf772bb6a25770 | [
"Apache-2.0"
] | null | null | null | pyAitu/dispatcher/__init__.py | waihislam/pyAitu | 6e7c3bfa7454d6ae91ba998017cf772bb6a25770 | [
"Apache-2.0"
] | null | null | null | pyAitu/dispatcher/__init__.py | waihislam/pyAitu | 6e7c3bfa7454d6ae91ba998017cf772bb6a25770 | [
"Apache-2.0"
] | null | null | null | from .dispatcher import Dispatcher
__all__ = [
'Dispatcher'
]
| 11.166667 | 34 | 0.701493 | 6 | 67 | 7.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 67 | 5 | 35 | 13.4 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e826cd178a652cc2d83efb9eede31a5aeed3ad74 | 15,431 | py | Python | interpreter.py | alexdieu/Stalinium-Langage | d1e18aa1ddfc298f6ac3a223404e89d39b353c75 | [
"Apache-2.0"
] | null | null | null | interpreter.py | alexdieu/Stalinium-Langage | d1e18aa1ddfc298f6ac3a223404e89d39b353c75 | [
"Apache-2.0"
] | null | null | null | interpreter.py | alexdieu/Stalinium-Langage | d1e18aa1ddfc298f6ac3a223404e89d39b353c75 | [
"Apache-2.0"
] | null | null | null | import sys
import os.path
import time
import re
print("STALINIUM V1 PAR ALEXDIEU")
if len(sys.argv) > 1:
file = sys.argv[1]
if os.path.isfile(file):
pass
else:
print("Error , File doesn't exist !")
else:
file = input(">>>")
variables = {}
lignes = []
try:
with open(file, "r") as... | 35.802784 | 171 | 0.364656 | 1,385 | 15,431 | 4.055596 | 0.127798 | 0.028841 | 0.032046 | 0.018693 | 0.599074 | 0.567385 | 0.520563 | 0.471604 | 0.445968 | 0.429945 | 0 | 0.019929 | 0.525241 | 15,431 | 430 | 172 | 35.886047 | 0.746792 | 0 | 0 | 0.572464 | 0 | 0 | 0.118009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012077 | false | 0.05314 | 0.009662 | 0 | 0.082126 | 0.060386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e82ace654690275672b9f90526b15f85215435b9 | 304 | py | Python | glycan_profiling/scoring/utils.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 4 | 2019-04-26T15:47:57.000Z | 2021-04-20T22:53:58.000Z | glycan_profiling/scoring/utils.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 8 | 2017-11-22T19:20:20.000Z | 2022-02-14T01:49:58.000Z | glycan_profiling/scoring/utils.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 3 | 2017-11-21T18:05:28.000Z | 2021-09-23T18:38:33.000Z | from operator import mul
try:
reduce
except NameError:
from functools import reduce
import numpy as np
def logit(x):
return np.log(x) - np.log(1 - x)
def logitsum(xs):
total = 0
for x in xs:
total += logit(x)
return total
def prod(*x):
return reduce(mul, x, 1)
| 13.217391 | 36 | 0.615132 | 49 | 304 | 3.816327 | 0.510204 | 0.112299 | 0.128342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.286184 | 304 | 22 | 37 | 13.818182 | 0.847926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.133333 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
08fb1e8851d95038488c862ef1d410a73a5bd56f | 238 | py | Python | skua/data/packages.py | getskua/skua | 4a99625991acd2b03156cff929367078cb08a109 | [
"BSD-3-Clause"
] | 2 | 2020-01-13T16:26:22.000Z | 2021-04-07T04:07:16.000Z | skua/data/packages.py | teymour-aldridge/skua | 4a99625991acd2b03156cff929367078cb08a109 | [
"BSD-3-Clause"
] | null | null | null | skua/data/packages.py | teymour-aldridge/skua | 4a99625991acd2b03156cff929367078cb08a109 | [
"BSD-3-Clause"
] | null | null | null | import git
class RemotePackage:
def __init__(self, url: str, name: str, download: bool = True):
self.repo = git.Repo.clone_from(url, to_path=name)
class LocalPackage:
def __init__(self, path):
self.path = path
| 19.833333 | 67 | 0.663866 | 33 | 238 | 4.484848 | 0.575758 | 0.094595 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226891 | 238 | 11 | 68 | 21.636364 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c044a681336c7be9f5d8a1560de39a372ed749d | 265 | py | Python | get_npy.py | vhzy/pythia | 8fae4da2b7ad4d047a1a51651407ff1f91745d5f | [
"BSD-3-Clause"
] | null | null | null | get_npy.py | vhzy/pythia | 8fae4da2b7ad4d047a1a51651407ff1f91745d5f | [
"BSD-3-Clause"
] | null | null | null | get_npy.py | vhzy/pythia | 8fae4da2b7ad4d047a1a51651407ff1f91745d5f | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
test=np.load('/home/ubuntu/hzy/pythia/data/m4c_textvqa_ocr_en_frcn_features/train_images/f441f29812b385ad_info.npy',encoding = "latin1",allow_pickle=True) #加载文件
doc = open('contrast9.txt', 'a') #打开一个存储文件,并依次写入
print(test, file=doc) #将打印内容写入文件中 | 66.25 | 161 | 0.788679 | 41 | 265 | 4.902439 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05668 | 0.067925 | 265 | 4 | 162 | 66.25 | 0.757085 | 0.10566 | 0 | 0 | 0 | 0 | 0.510638 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c05506549ac49e151b30f2516ece4102a161ffe | 46,728 | py | Python | core/tests/test_polyaxonfile/test_patch_specification.py | admariner/polyaxon | ba355c38166047eb11e60de4cee4d7c3b48db323 | [
"Apache-2.0"
] | 3,200 | 2017-05-09T11:35:31.000Z | 2022-03-28T05:43:22.000Z | core/tests/test_polyaxonfile/test_patch_specification.py | admariner/polyaxon | ba355c38166047eb11e60de4cee4d7c3b48db323 | [
"Apache-2.0"
] | 1,324 | 2017-06-29T07:21:27.000Z | 2022-03-27T12:41:10.000Z | core/tests/test_polyaxonfile/test_patch_specification.py | admariner/polyaxon | ba355c38166047eb11e60de4cee4d7c3b48db323 | [
"Apache-2.0"
] | 341 | 2017-01-10T23:06:53.000Z | 2022-03-10T08:15:18.000Z | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 41.833483 | 93 | 0.560135 | 4,232 | 46,728 | 5.941399 | 0.073724 | 0.023385 | 0.056793 | 0.033248 | 0.794026 | 0.729677 | 0.69269 | 0.658726 | 0.645522 | 0.615813 | 0 | 0.010704 | 0.322269 | 46,728 | 1,116 | 94 | 41.870968 | 0.783258 | 0.023284 | 0 | 0.571996 | 0 | 0 | 0.121352 | 0 | 0 | 0 | 0 | 0 | 0.142006 | 1 | 0.042701 | false | 0 | 0.008937 | 0.003972 | 0.06852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c1a2c3dd431cb9b370b24964cc9ff6c7a8e0fe7 | 54,658 | py | Python | geocube/pb/variables_pb2.py | airbusgeo/geocube-client-python | adc41a98386be4e14d004f2af39a62930f710c9e | [
"Apache-2.0"
] | 2 | 2021-07-05T06:47:14.000Z | 2021-08-15T03:53:13.000Z | geocube/pb/variables_pb2.py | airbusgeo/geocube-client-python | adc41a98386be4e14d004f2af39a62930f710c9e | [
"Apache-2.0"
] | null | null | null | geocube/pb/variables_pb2.py | airbusgeo/geocube-client-python | adc41a98386be4e14d004f2af39a62930f710c9e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: geocube/pb/variables.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from ... | 40.13069 | 3,942 | 0.76406 | 6,316 | 54,658 | 6.275966 | 0.053515 | 0.040162 | 0.066626 | 0.064028 | 0.663034 | 0.617675 | 0.606246 | 0.5983 | 0.591513 | 0.586695 | 0 | 0.033166 | 0.116836 | 54,658 | 1,361 | 3,943 | 40.160176 | 0.787993 | 0.035237 | 0 | 0.673617 | 1 | 0.000802 | 0.190087 | 0.148737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005613 | 0 | 0.005613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c24ea12e19685739d9cf034ec293fdd73cfc9f2 | 5,016 | py | Python | flaskbb/utils/permissions.py | Xender/flaskbb | b573c4fd38d9e274692c21adcdb4a30e68a401f2 | [
"BSD-3-Clause"
] | null | null | null | flaskbb/utils/permissions.py | Xender/flaskbb | b573c4fd38d9e274692c21adcdb4a30e68a401f2 | [
"BSD-3-Clause"
] | null | null | null | flaskbb/utils/permissions.py | Xender/flaskbb | b573c4fd38d9e274692c21adcdb4a30e68a401f2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
flaskbb.utils.permissions
~~~~~~~~~~~~~~~~~~~~~~~~~
A place for all permission checks
:copyright: (c) 2014 by the FlaskBB Team.
:license: BSD, see LICENSE for more details.
"""
def check_perm(user, perm, forum, post_user_id=None):
"""Checks if the `user` has a spe... | 33 | 79 | 0.663876 | 746 | 5,016 | 4.375335 | 0.186327 | 0.051471 | 0.044118 | 0.042892 | 0.4375 | 0.359069 | 0.339461 | 0.309743 | 0.288297 | 0.250613 | 0 | 0.001327 | 0.249003 | 5,016 | 151 | 80 | 33.218543 | 0.865145 | 0.529705 | 0 | 0.282609 | 0 | 0 | 0.053597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0 | 0 | 0.717391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c2c83d541ec61b48477e9434ffd2529d76000e1 | 720 | py | Python | diplomova_praca/shared/views.py | MDobransky/thesis-grizzly | b038b477596879465636eae34444d70742a86e8f | [
"MIT"
] | 1 | 2020-07-28T18:38:19.000Z | 2020-07-28T18:38:19.000Z | diplomova_praca/shared/views.py | JankaSvK/thesis-grizzly | c0e573cd01008003c7d67e093c698ebf2d668f04 | [
"MIT"
] | 1 | 2020-09-21T21:38:46.000Z | 2020-09-21T21:38:46.000Z | diplomova_praca/shared/views.py | MDobransky/thesis-grizzly | b038b477596879465636eae34444d70742a86e8f | [
"MIT"
] | 1 | 2020-08-20T18:52:13.000Z | 2020-08-20T18:52:13.000Z | from pathlib import Path
from typing import Set
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from diplomova_praca_lib.position_similarity.models import PositionMethod
from diplomova_praca_lib.position_similarity.position_similarity_request import available_images
f... | 31.304348 | 97 | 0.761111 | 96 | 720 | 5.5 | 0.46875 | 0.056818 | 0.068182 | 0.079545 | 0.147727 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0.006504 | 0.145833 | 720 | 22 | 98 | 32.727273 | 0.852033 | 0 | 0 | 0.125 | 0 | 0 | 0.022956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.4375 | 0.0625 | 0.6875 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1c358e4113ad9f6e9b8502c37297313a1c2eefbf | 5,416 | py | Python | octopus/tests/BTC/test_explorer.py | SillyTin/octopus | 5ad30f4affaa209a6ccc03c406c41c820dab62dc | [
"MIT"
] | 212 | 2018-06-29T10:13:42.000Z | 2020-02-16T07:55:47.000Z | octopus/tests/BTC/test_explorer.py | b-mueller/octopus | 249f2afa37859bf645bc0251502ac104c4b37ec7 | [
"MIT"
] | 12 | 2018-07-05T08:50:12.000Z | 2020-01-16T08:41:49.000Z | octopus/tests/BTC/test_explorer.py | b-mueller/octopus | 249f2afa37859bf645bc0251502ac104c4b37ec7 | [
"MIT"
] | 34 | 2018-06-28T11:49:02.000Z | 2020-02-05T07:42:33.000Z | from octopus.platforms.BTC.explorer import BitcoinExplorerRPC
from octopus.platforms.BTC.explorer import RPC_USER, RPC_PASSWORD, RPC_HOST
import unittest
class BitcoinExplorerTestCase(unittest.TestCase):
explorer = BitcoinExplorerRPC(host=('%s:%s@%s' % (RPC_USER, RPC_PASSWORD, RPC_HOST)))
blockhash = '0000... | 51.09434 | 465 | 0.723227 | 461 | 5,416 | 8.418655 | 0.314534 | 0.213347 | 0.074208 | 0.090698 | 0.288843 | 0.142231 | 0.058232 | 0.036073 | 0 | 0 | 0 | 0.114973 | 0.155281 | 5,416 | 105 | 466 | 51.580952 | 0.733333 | 0.019202 | 0 | 0 | 0 | 0 | 0.218158 | 0.200267 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.022222 | false | 0.044444 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c38592f9643bb88ae18a29c8b362c5be017dfa0 | 430 | py | Python | jms_oidc_rp/admin.py | BaiJiangJie/jumpserver-django-oidc-rp | b2d6a63dd82214263b8971412a9043268c31ba7f | [
"MIT"
] | 20 | 2018-04-16T13:17:35.000Z | 2021-06-05T00:08:33.000Z | jms_oidc_rp/admin.py | BaiJiangJie/jumpserver-django-oidc-rp | b2d6a63dd82214263b8971412a9043268c31ba7f | [
"MIT"
] | 9 | 2018-07-20T18:19:13.000Z | 2021-12-22T08:57:18.000Z | oidc_rp/admin.py | bcgov/django-oidc-rp | 50e6fa143e61b04849b4c66beef078be0d7669de | [
"MIT"
] | 21 | 2018-07-10T16:05:44.000Z | 2022-01-24T05:57:09.000Z | """
OpenID Connect relying party (RP) model admin definitions
=========================================================
This module defines admin classes used to populate the Django administration dashboard.
"""
from django.contrib import admin
from .models import OIDCUser
@admin.register(OIDCUser)
cl... | 22.631579 | 91 | 0.616279 | 45 | 430 | 5.866667 | 0.733333 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169767 | 430 | 18 | 92 | 23.888889 | 0.739496 | 0.539535 | 0 | 0 | 0 | 0 | 0.040936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1c3e1ef481efd0b6d4af937e7c92fac238269f9d | 409 | py | Python | tob-api/api_v2/models/Name.py | andrewwhitehead/TheOrgBook | 5a3dcd27cdcda0a3e19a68597a49997c68143ddc | [
"Apache-2.0"
] | null | null | null | tob-api/api_v2/models/Name.py | andrewwhitehead/TheOrgBook | 5a3dcd27cdcda0a3e19a68597a49997c68143ddc | [
"Apache-2.0"
] | 37 | 2019-03-12T20:10:57.000Z | 2020-11-26T18:39:51.000Z | tob-api/api_v2/models/Name.py | andrewwhitehead/TheOrgBook | 5a3dcd27cdcda0a3e19a68597a49997c68143ddc | [
"Apache-2.0"
] | 5 | 2019-02-26T17:38:37.000Z | 2020-11-26T14:48:03.000Z | from django.db import models
from .Auditable import Auditable
from .Credential import Credential
class Name(Auditable):
reindex_related = ['credential']
credential = models.ForeignKey(Credential, related_name="names", on_delete=models.CASCADE)
text = models.TextField(null=True)
language = models.Te... | 22.722222 | 94 | 0.706601 | 47 | 409 | 6.06383 | 0.531915 | 0.105263 | 0.133333 | 0.161404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190709 | 409 | 17 | 95 | 24.058824 | 0.861027 | 0 | 0 | 0 | 0 | 0 | 0.051345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.818182 | 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 | 1 | 0 | 0 | 2 |
1c46679f018a8751f25fbf73754145fb78d2528e | 982 | py | Python | controller/liff_controller.py | louis70109/LIFF-to-LIFF-Example | 1e3d90f7989b5b69090a7b2e3a41c74b3ae3c90b | [
"MIT"
] | null | null | null | controller/liff_controller.py | louis70109/LIFF-to-LIFF-Example | 1e3d90f7989b5b69090a7b2e3a41c74b3ae3c90b | [
"MIT"
] | null | null | null | controller/liff_controller.py | louis70109/LIFF-to-LIFF-Example | 1e3d90f7989b5b69090a7b2e3a41c74b3ae3c90b | [
"MIT"
] | null | null | null | import os
from flask import request, render_template, Response
from flask_restful import Resource
LIFF_A = os.getenv('LIFF_SHARE_A')
LIFF_B = os.getenv('LIFF_SHARE_B')
SHARE_A = f"https://liff.line.me/{LIFF_A}"
SHARE_B = f"https://liff.line.me/{LIFF_B}"
class LiffAController(Resource):
def __init__(self, *args, ... | 33.862069 | 99 | 0.689409 | 140 | 982 | 4.521429 | 0.278571 | 0.110585 | 0.126382 | 0.176935 | 0.546603 | 0.496051 | 0.432859 | 0.432859 | 0.432859 | 0.432859 | 0 | 0 | 0.161914 | 982 | 28 | 100 | 35.071429 | 0.769137 | 0 | 0 | 0.380952 | 0 | 0 | 0.172098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.619048 | 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 | 1 | 0 | 0 | 2 |
1c4d821178691d11827cd86a0557e3d0ee68ef5b | 260 | py | Python | 201218/Q10430.py | JongGuk/BOJ | dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15 | [
"MIT"
] | null | null | null | 201218/Q10430.py | JongGuk/BOJ | dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15 | [
"MIT"
] | null | null | null | 201218/Q10430.py | JongGuk/BOJ | dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15 | [
"MIT"
] | null | null | null | #첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000)
#첫째 줄에 (A+B)%C, 둘째 줄에 ((A%C) + (B%C))%C, 셋째 줄에 (A×B)%C, 넷째 줄에 ((A%C) × (B%C))%C를 출력한다.
a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
print((a+b)%c, ((a%c)+(b%c))%c, (a*b)%c, ((a%c)*(b%c)%c), sep="\n") | 37.142857 | 86 | 0.442308 | 74 | 260 | 1.608108 | 0.310811 | 0.184874 | 0.12605 | 0.10084 | 0.176471 | 0.134454 | 0.134454 | 0.134454 | 0 | 0 | 0 | 0.028169 | 0.180769 | 260 | 7 | 87 | 37.142857 | 0.511737 | 0.507692 | 0 | 0 | 0 | 0 | 0.015748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c562a01d55c225f68d61a302493c1f76639936e | 597 | py | Python | month05/DataStructure/day02_course/day02_code/04_list_stack.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month05/DataStructure/day02_course/day02_code/04_list_stack.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | month05/DataStructure/day02_course/day02_code/04_list_stack.py | chaofan-zheng/python_learning_code | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | [
"Apache-2.0"
] | null | null | null | """
python实现顺序栈
1。目标:实现栈(后进先出)
2。设计
"""
class ListStack:
def __init__(self):
"""初始化一个空栈"""
self.elems = []
def push(self, item):
"""入栈操作"""
self.elems.append(item)
def destack(self):
"""出栈操作"""
if not self.elems:
raise Exception('destac... | 17.558824 | 58 | 0.534338 | 72 | 597 | 4.263889 | 0.513889 | 0.114007 | 0.228013 | 0.247557 | 0.228013 | 0.228013 | 0.228013 | 0.228013 | 0.228013 | 0.228013 | 0 | 0.02619 | 0.296482 | 597 | 33 | 59 | 18.090909 | 0.704762 | 0.095477 | 0 | 0.263158 | 0 | 0 | 0.067698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.263158 | 0.263158 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c57e5209af89a669bfb016a170bc44bfe874331 | 679 | py | Python | pants-plugins/structured/targets/r_remote_package.py | cosmicexplorer/structured | ea452a37e265dd75d4160efa59a4a939bf8c0521 | [
"Apache-2.0"
] | null | null | null | pants-plugins/structured/targets/r_remote_package.py | cosmicexplorer/structured | ea452a37e265dd75d4160efa59a4a939bf8c0521 | [
"Apache-2.0"
] | null | null | null | pants-plugins/structured/targets/r_remote_package.py | cosmicexplorer/structured | ea452a37e265dd75d4160efa59a4a939bf8c0521 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from contextutil import contextmanager
from abc import abstractmethod, abstractproperty
from pants.base.payload_field import PayloadField
from pants.... | 26.115385 | 93 | 0.790869 | 89 | 679 | 5.808989 | 0.617978 | 0.069633 | 0.05029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001742 | 0.154639 | 679 | 25 | 94 | 27.16 | 0.898955 | 0.12813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.666667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1c5e27c82a2fa77345bb87868387155078411bb0 | 2,029 | py | Python | src/handlers/role_creation_service/private_auditors/denied_actions.py | smoketurner/sam-iam-role | 5b3b91be3342e4e54264ab11ee63f45c3508bec5 | [
"MIT"
] | null | null | null | src/handlers/role_creation_service/private_auditors/denied_actions.py | smoketurner/sam-iam-role | 5b3b91be3342e4e54264ab11ee63f45c3508bec5 | [
"MIT"
] | 9 | 2020-06-20T21:37:26.000Z | 2020-11-20T05:34:20.000Z | src/handlers/role_creation_service/private_auditors/denied_actions.py | smoketurner/sam-iam-role | 5b3b91be3342e4e54264ab11ee63f45c3508bec5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
DENIED_ACTIONS = {
"access-analyzer:DeleteAnalyzer",
"cloudtrail:CreateTrail",
"cloudtrail:DeleteTrail",
"cloudtrail:UpdateTrail",
"cloudtrail:StopLogging",
"config:DeleteConfigRule",
"config:DeleteConfigurationRecorder",
"config:DeleteDeliv... | 31.215385 | 58 | 0.716116 | 147 | 2,029 | 9.761905 | 0.544218 | 0.063415 | 0.041812 | 0.058537 | 0.039024 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012507 | 0.172499 | 2,029 | 64 | 59 | 31.703125 | 0.842168 | 0.0207 | 0 | 0 | 0 | 0 | 0.623678 | 0.539043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0 | 0 | 0.017544 | 0.017544 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c64e061ad187b5e4cb686e539c837350f456b4f | 191 | py | Python | polyaxon/action_manager/action_event.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/action_manager/action_event.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/action_manager/action_event.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | from event_manager.event import Attribute, Event
class ActionExecutedEvent(Event):
attributes = (
Attribute('automatic'),
Attribute('user.id', is_required=False),
)
| 21.222222 | 48 | 0.680628 | 19 | 191 | 6.736842 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209424 | 191 | 8 | 49 | 23.875 | 0.847682 | 0 | 0 | 0 | 0 | 0 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c66e370f727021426da91afda42c9f32c03b88b | 370 | py | Python | volantis/Request.py | otakbeku/ducyvol | 1dcb20a3fd2c7af3747422d8383385dc27e53738 | [
"MIT"
] | null | null | null | volantis/Request.py | otakbeku/ducyvol | 1dcb20a3fd2c7af3747422d8383385dc27e53738 | [
"MIT"
] | null | null | null | volantis/Request.py | otakbeku/ducyvol | 1dcb20a3fd2c7af3747422d8383385dc27e53738 | [
"MIT"
] | null | null | null | url = "https://api.volantis.io/v1/query/sync/dataset/7745b98a-baff-11e8-9e65-08d40cec20c9"
payload = "{\"queryType\":\"TEXT_SEARCH\",\"limit\":5,\"property\":\"_id\",\"objectType\":\"VERTEX\",\"objectLabel\":\"medical_status\",\"querySpec\":{\"querySpecType\":\"CONTAINS\",\"value\":\"\"}}"
response = requests.request(... | 92.5 | 199 | 0.681081 | 41 | 370 | 6.073171 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058659 | 0.032432 | 370 | 4 | 200 | 92.5 | 0.636872 | 0 | 0 | 0 | 0 | 0.333333 | 0.320755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c69bdf49c92aacdae41095f728e79a273225379 | 185 | py | Python | Python/HackerRank/List Comprehensions.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 1 | 2018-05-24T11:30:05.000Z | 2018-05-24T11:30:05.000Z | Python/HackerRank/List Comprehensions.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | null | null | null | Python/HackerRank/List Comprehensions.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 2 | 2017-08-11T06:53:30.000Z | 2017-08-29T12:07:52.000Z | X = int(input())
Y = int(input())
Z = int(input())
N = int(input())
result = [ [x, y, z] for x in range(X+1) for y in range(Y+1) for z in range(Z+1) if x + y + z != N ]
print(result)
| 20.555556 | 100 | 0.545946 | 41 | 185 | 2.463415 | 0.317073 | 0.316832 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.227027 | 185 | 8 | 101 | 23.125 | 0.685315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c6d6a1fc4dfcd52c28de2a0ebb605151b19e5e6 | 761 | py | Python | desktop/core/ext-py/tablib-0.14.0/src/tablib/formats/_tsv.py | e11it/hue-1 | 436704c40b5fa6ffd30bd972bf50ffeec738d091 | [
"Apache-2.0"
] | 2 | 2019-12-04T16:24:44.000Z | 2020-04-06T21:49:34.000Z | desktop/core/ext-py/tablib-0.14.0/src/tablib/formats/_tsv.py | e11it/hue-1 | 436704c40b5fa6ffd30bd972bf50ffeec738d091 | [
"Apache-2.0"
] | 7 | 2020-06-05T20:21:00.000Z | 2021-09-22T18:18:42.000Z | desktop/core/ext-py/tablib-0.14.0/src/tablib/formats/_tsv.py | e11it/hue-1 | 436704c40b5fa6ffd30bd972bf50ffeec738d091 | [
"Apache-2.0"
] | 6 | 2020-05-29T21:46:30.000Z | 2020-12-15T20:32:19.000Z | # -*- coding: utf-8 -*-
""" Tablib - TSV (Tab Separated Values) Support.
"""
from tablib.compat import unicode
from tablib.formats._csv import (
export_set as export_set_wrapper,
import_set as import_set_wrapper,
detect as detect_wrapper,
)
title = 'tsv'
extensions = ('tsv',)
DELIMITER = unicode('\t')
... | 24.548387 | 84 | 0.720105 | 99 | 761 | 5.363636 | 0.393939 | 0.067797 | 0.060264 | 0.071563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001567 | 0.161629 | 761 | 30 | 85 | 25.366667 | 0.830721 | 0.239159 | 0 | 0 | 0 | 0 | 0.014388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.333333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1c6de14beba353d55e1ed21d70fee58a05c6a31b | 257 | py | Python | Skyhero-admin/Day 29/exp8_8.py | adityajoshi-08/100-Days-of-Code | 22026ca37dd8bcf5e5e22a8a302510249936c002 | [
"MIT"
] | 33 | 2022-01-11T14:00:24.000Z | 2022-03-24T02:49:44.000Z | Skyhero-admin/Day 29/exp8_8.py | adityajoshi-08/100-Days-of-Code | 22026ca37dd8bcf5e5e22a8a302510249936c002 | [
"MIT"
] | 28 | 2022-01-11T17:08:52.000Z | 2022-03-15T17:03:15.000Z | Skyhero-admin/Day 29/exp8_8.py | adityajoshi-08/100-Days-of-Code | 22026ca37dd8bcf5e5e22a8a302510249936c002 | [
"MIT"
] | 57 | 2022-01-11T15:54:07.000Z | 2022-03-27T04:37:42.000Z | with open('test.txt', 'w') as file:
content = input('Write into file: ')
file.write(content)
with open('test.txt', 'a') as file:
s = ''
while s!= '@':
file.write(s)
s = input('Append into file: ')
with open('test.txt') as file:
print(file.read()) | 21.416667 | 37 | 0.607004 | 42 | 257 | 3.714286 | 0.404762 | 0.153846 | 0.230769 | 0.288462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175097 | 257 | 12 | 38 | 21.416667 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0.24031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c7f16417385afcb32cdb7de686cd0e36e7b869a | 1,799 | py | Python | data/provider/print-persisted-content-types.py | searchisko/configuration | 2a45bea4261bc63a4a214a82c4f7f3567e79014c | [
"Apache-2.0"
] | null | null | null | data/provider/print-persisted-content-types.py | searchisko/configuration | 2a45bea4261bc63a4a214a82c4f7f3567e79014c | [
"Apache-2.0"
] | 88 | 2015-05-11T12:17:34.000Z | 2018-07-14T08:38:17.000Z | data/provider/print-persisted-content-types.py | searchisko/configuration | 2a45bea4261bc63a4a214a82c4f7f3567e79014c | [
"Apache-2.0"
] | 5 | 2015-05-26T09:35:24.000Z | 2016-06-08T17:10:44.000Z | #!/usr/bin/python
# Get actual list of providers from Searchisko and print CURL command for reindex_from_persistence if content type is persisted
# Usage ./print-persisted-content-types.py -U searchisko base url -u username -p password
import sys, getopt
import json
import urllib2, base64
url = "http://localhost:80... | 31.017241 | 188 | 0.657032 | 250 | 1,799 | 4.636 | 0.396 | 0.075928 | 0.038827 | 0.031061 | 0.100086 | 0.062123 | 0.062123 | 0.062123 | 0 | 0 | 0 | 0.015162 | 0.193441 | 1,799 | 58 | 188 | 31.017241 | 0.783598 | 0.140634 | 0 | 0.095238 | 0 | 0 | 0.258587 | 0.028516 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.119048 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1c8b96bd708b5783e2688cb9d1650b2e03f6ad1f | 2,320 | py | Python | Codefights/arcade/python-arcade/level-5/34.Multiplication-Table/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codefights/arcade/python-arcade/level-5/34.Multiplication-Table/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codefights/arcade/python-arcade/level-5/34.Multiplication-Table/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python3
from solution1 import multiplicationTable as f
qa = [
(5,
[[1, 2, 3, 4, 5],
[2, 4, 6, 8, 10],
[3, 6, 9, 12, 15],
[4, 8, 12, 16, 20],
[5, 10, 15, 20, 25]]),
(2,
[[1, 2],
[2, 4]]),
(4,
[[1, 2, 3, 4],
[2, 4, 6, 8],
[3, 6, 9, 12... | 38.032787 | 77 | 0.3875 | 423 | 2,320 | 2.125296 | 0.271868 | 0.011123 | 0.013348 | 0.017798 | 0.434928 | 0.395996 | 0.395996 | 0.395996 | 0.395996 | 0.395996 | 0 | 0.508392 | 0.383621 | 2,320 | 60 | 78 | 38.666667 | 0.12028 | 0.003017 | 0 | 0.035714 | 0 | 0 | 0.027694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.017857 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c8feee419c789789253ecb33436e8fac733ec8e | 4,217 | py | Python | run.py | axelvf/assimilator | 2ff24b17779b6b8004b414a5d3c920c59bde46b0 | [
"MIT"
] | null | null | null | run.py | axelvf/assimilator | 2ff24b17779b6b8004b414a5d3c920c59bde46b0 | [
"MIT"
] | null | null | null | run.py | axelvf/assimilator | 2ff24b17779b6b8004b414a5d3c920c59bde46b0 | [
"MIT"
] | null | null | null | #!flask/bin/python
from werkzeug.exceptions import HTTPException
from flask import Flask,jsonify,render_template, request
from flask_restful import Resource, Api
from traceback import format_exc
import app.modules.handler as handler
import app.modules.apikeymgmt as keymgmt
import app.modules.firewalls as firewalls
impo... | 34.85124 | 122 | 0.766184 | 574 | 4,217 | 5.482578 | 0.236934 | 0.057197 | 0.13346 | 0.160153 | 0.284398 | 0.171592 | 0.022243 | 0 | 0 | 0 | 0 | 0.002556 | 0.072089 | 4,217 | 120 | 123 | 35.141667 | 0.801687 | 0.082997 | 0 | 0 | 0 | 0 | 0.314099 | 0.236815 | 0 | 0 | 0 | 0 | 0.013158 | 0 | null | null | 0 | 0.144737 | null | null | 0.013158 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c97e97b566de15b9f560dfd718f8caba8de5c0a | 633 | py | Python | dockerjudge/status.py | fossabot/dockerjudge | 7a70ef063f9d7541965087b36ce519e0a6f32c5a | [
"Apache-2.0"
] | null | null | null | dockerjudge/status.py | fossabot/dockerjudge | 7a70ef063f9d7541965087b36ce519e0a6f32c5a | [
"Apache-2.0"
] | null | null | null | dockerjudge/status.py | fossabot/dockerjudge | 7a70ef063f9d7541965087b36ce519e0a6f32c5a | [
"Apache-2.0"
] | null | null | null | 'The collection of judge statuses'
from enum import Enum
class Status(Enum):
"""Enumeration of judge statuses
======= =====================
Name Value
======= =====================
``AC`` `Accepted`
``WA`` `Wrong Answer`
``ONF`` `Output Not Found`
``RE`` `Runtime Error`
``T... | 22.607143 | 36 | 0.486572 | 62 | 633 | 4.967742 | 0.532258 | 0.045455 | 0.097403 | 0.11039 | 0.688312 | 0.688312 | 0.688312 | 0.688312 | 0.688312 | 0.688312 | 0 | 0 | 0.263823 | 633 | 27 | 37 | 23.444444 | 0.660944 | 0.540284 | 0 | 0 | 0 | 0 | 0.483271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 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 | 1 | 0 | 0 | 2 |
1c9afa15a4e2273b73b361d193cfc7d7943938ea | 560 | py | Python | Exams/Exam_22_August_2020_TAKE_3/tests/test_room.py | MihailMarkovski/Python-OOP-2020 | f0ac610bb758c2882e452684c8d7f533fcc33fe4 | [
"MIT"
] | null | null | null | Exams/Exam_22_August_2020_TAKE_3/tests/test_room.py | MihailMarkovski/Python-OOP-2020 | f0ac610bb758c2882e452684c8d7f533fcc33fe4 | [
"MIT"
] | null | null | null | Exams/Exam_22_August_2020_TAKE_3/tests/test_room.py | MihailMarkovski/Python-OOP-2020 | f0ac610bb758c2882e452684c8d7f533fcc33fe4 | [
"MIT"
] | null | null | null | import unittest
from project.rooms.room import Room
class TestRoom(unittest.TestCase):
def setUp(self) -> None:
self.room = Room('name', 100, 1)
def test_init(self):
self.assertEqual('name', self.room.family_name)
self.assertEqual(100, self.room.budget)
self.assertEqual(1, se... | 29.473684 | 55 | 0.666071 | 70 | 560 | 5.257143 | 0.442857 | 0.152174 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.214286 | 560 | 19 | 56 | 29.473684 | 0.813636 | 0 | 0 | 0 | 0 | 0 | 0.01426 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c9b945b1082f633cd907113e393d3f8005de0fc | 9,311 | py | Python | pysnmp-with-texts/DLINK-3100-MIR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/DLINK-3100-MIR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/DLINK-3100-MIR-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DLINK-3100-MIR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLINK-3100-MIR-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:48:41 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | 116.3875 | 1,081 | 0.796585 | 1,005 | 9,311 | 7.378109 | 0.21194 | 0.066352 | 0.116116 | 0.010249 | 0.394066 | 0.23938 | 0.190425 | 0.170061 | 0.140391 | 0.125017 | 0 | 0.064169 | 0.082805 | 9,311 | 79 | 1,082 | 117.860759 | 0.804098 | 0.035442 | 0 | 0 | 0 | 0 | 0.219349 | 0.01449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112676 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98cfc438903759c633455db9796abfdf3571b0db | 77 | py | Python | homeassistant/components/rpi_power/const.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/rpi_power/const.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/rpi_power/const.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for Raspberry Pi Power Supply Checker."""
DOMAIN = "rpi_power"
| 19.25 | 54 | 0.727273 | 10 | 77 | 5.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 77 | 3 | 55 | 25.666667 | 0.833333 | 0.623377 | 0 | 0 | 0 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98dfdaa8ba2ca8fbb9128f97fcd81125d956bb52 | 292 | py | Python | api/goods/migrations/0023_merge_20201202_1029.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | api/goods/migrations/0023_merge_20201202_1029.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | api/goods/migrations/0023_merge_20201202_1029.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | # Generated by Django 2.2.16 on 2020-12-02 10:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("goods", "0022_firearmgooddetails_is_deactivated_to_standard"),
("goods", "0021_auto_20201201_1027"),
]
operations = []
| 20.857143 | 72 | 0.688356 | 35 | 292 | 5.514286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.19863 | 292 | 13 | 73 | 22.461538 | 0.67094 | 0.157534 | 0 | 0 | 1 | 0 | 0.340164 | 0.29918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
98e056e74f7280a35392b9ecfba132424019d9df | 2,779 | py | Python | src/mbed_tools/targets/boards.py | rwalton-arm/mbed-tools | 131605540f4829116f977695a47dc10b3ac96450 | [
"Apache-2.0"
] | null | null | null | src/mbed_tools/targets/boards.py | rwalton-arm/mbed-tools | 131605540f4829116f977695a47dc10b3ac96450 | [
"Apache-2.0"
] | null | null | null | src/mbed_tools/targets/boards.py | rwalton-arm/mbed-tools | 131605540f4829116f977695a47dc10b3ac96450 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (C) 2020 Arm Mbed. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""Interface to the Board Database."""
import json
from dataclasses import asdict
from collections.abc import Set
from typing import Iterator, Iterable, Any, Callable
from mbed_tools.targets._internal import board_database
... | 31.579545 | 102 | 0.654552 | 356 | 2,779 | 4.969101 | 0.337079 | 0.088185 | 0.054268 | 0.033917 | 0.21368 | 0.183154 | 0.144715 | 0.144715 | 0.144715 | 0.107405 | 0 | 0.003418 | 0.263044 | 2,779 | 87 | 103 | 31.942529 | 0.860352 | 0.395466 | 0 | 0.0625 | 0 | 0 | 0.014946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.21875 | 0 | 0.71875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
98e09d65b70ea5c1dfb2430b02a36435a3340e04 | 335 | py | Python | manage.py | seawolf42/django-autometrics | 697a461c55dc01effef40af1bbd79f43d76e8f75 | [
"MIT"
] | 1 | 2017-05-01T10:03:50.000Z | 2017-05-01T10:03:50.000Z | manage.py | seawolf42/django-autometrics | 697a461c55dc01effef40af1bbd79f43d76e8f75 | [
"MIT"
] | 1 | 2017-04-29T10:06:54.000Z | 2017-04-30T20:24:39.000Z | manage.py | seawolf42/django-autometrics | 697a461c55dc01effef40af1bbd79f43d76e8f75 | [
"MIT"
] | null | null | null | import os
import sys
wsgi_application = None
if __name__ == "__main__":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
os.environ['DJANGAE_APP_YAML_LOCATION'] = os.path.abspath(os.path.dirname(__file__))
from djangae.core.management import execute_from_command_line
execute_from_command_... | 25.769231 | 88 | 0.776119 | 45 | 335 | 5.244444 | 0.644444 | 0.076271 | 0.152542 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122388 | 335 | 12 | 89 | 27.916667 | 0.802721 | 0 | 0 | 0 | 0 | 0 | 0.18806 | 0.140299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
98e588f62d27fcfed1c5f84a2a80c168d3971ea4 | 2,592 | py | Python | classificationMethod.py | haipro287/ai-classification | 7ae407258db88ea199a031f21c43a27bfa1d10d0 | [
"MIT"
] | 6 | 2019-12-24T18:12:01.000Z | 2021-04-13T18:44:44.000Z | classificationMethod.py | haipro287/ai-classification | 7ae407258db88ea199a031f21c43a27bfa1d10d0 | [
"MIT"
] | null | null | null | classificationMethod.py | haipro287/ai-classification | 7ae407258db88ea199a031f21c43a27bfa1d10d0 | [
"MIT"
] | 1 | 2021-02-13T17:28:49.000Z | 2021-02-13T17:28:49.000Z | # classificationMethod.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... | 41.142857 | 91 | 0.70679 | 338 | 2,592 | 5.408284 | 0.52071 | 0.02407 | 0.021335 | 0.021335 | 0.197484 | 0.18709 | 0.18709 | 0.18709 | 0.18709 | 0.150985 | 0 | 0.00403 | 0.234182 | 2,592 | 62 | 92 | 41.806452 | 0.916877 | 0.797454 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
98f32406e4d0a0bb86952a00c1d481cf2f1d1e54 | 14,754 | py | Python | turbinescripts/turbine08.py | malvela/ML | 391930e7cc290e42fbb89641f092422aee5db245 | [
"MIT"
] | null | null | null | turbinescripts/turbine08.py | malvela/ML | 391930e7cc290e42fbb89641f092422aee5db245 | [
"MIT"
] | null | null | null | turbinescripts/turbine08.py | malvela/ML | 391930e7cc290e42fbb89641f092422aee5db245 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from glob import glob
import matplotlib.pyplot as plt
'''
turbine-08_helihoist-1_tom_acc-vel-pos_hammerhead_2019-10-14-07-55-52_2019-10-15-06-10-33
turbine-08_helihoist-1_tom_geometry_hammerhead_2019-10-14-07-55-52_2019-10-15-06-10-33
turbine-08_sbitroot_tom_acc-vel-pos_hammerhea... | 36.161765 | 145 | 0.710994 | 2,612 | 14,754 | 3.771057 | 0.075421 | 0.151675 | 0.053604 | 0.068223 | 0.779289 | 0.710457 | 0.673198 | 0.654315 | 0.642234 | 0.613299 | 0 | 0.129691 | 0.104243 | 14,754 | 407 | 146 | 36.250614 | 0.615617 | 0.010438 | 0 | 0.689286 | 0 | 0 | 0.359992 | 0.066868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014286 | 0 | 0.014286 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c704567a816d201b468dc635fd7d74207b968f19 | 482 | py | Python | treeio/newick.py | yech1990/treeio | e2bae73f1fe54cde251e05122c6c03de764fd599 | [
"MIT"
] | 1 | 2020-05-01T07:32:17.000Z | 2020-05-01T07:32:17.000Z | treeio/newick.py | yech1990/treeio | e2bae73f1fe54cde251e05122c6c03de764fd599 | [
"MIT"
] | 1 | 2020-03-27T08:01:25.000Z | 2020-03-27T08:01:25.000Z | treeio/newick.py | yech1990/treeio | e2bae73f1fe54cde251e05122c6c03de764fd599 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2020 Ye Chang <yech1990@gmail.com>
# Distributed under terms of the MIT license.
#
# Created: 2020-03-27 15:58
"""
Read and write newick format.
"""
from .tree import Tree
def read_newick(nwk_string: str) -> Tree:
"""Read newick file into Tree object... | 19.28 | 57 | 0.659751 | 71 | 482 | 4.422535 | 0.619718 | 0.085987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054404 | 0.19917 | 482 | 24 | 58 | 20.083333 | 0.756477 | 0.564315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c71793d905df32b1297f2a073c4e6fd16c99b338 | 586 | py | Python | hospital/migrations/0024_auto_20220118_1630.py | pranjal198/hack | c72724ad2acc4c71dbdc22beda611d0b97f8ad62 | [
"MIT"
] | null | null | null | hospital/migrations/0024_auto_20220118_1630.py | pranjal198/hack | c72724ad2acc4c71dbdc22beda611d0b97f8ad62 | [
"MIT"
] | null | null | null | hospital/migrations/0024_auto_20220118_1630.py | pranjal198/hack | c72724ad2acc4c71dbdc22beda611d0b97f8ad62 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2022-01-18 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hospital', '0023_auto_20220118_1439'),
]
operations = [
migrations.AlterField(
model_name='patient',
name='assignedD... | 24.416667 | 69 | 0.59727 | 58 | 586 | 5.931034 | 0.706897 | 0.116279 | 0.145349 | 0.168605 | 0.232558 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0.081731 | 0.290102 | 586 | 23 | 70 | 25.478261 | 0.745192 | 0.076792 | 0 | 0.352941 | 1 | 0 | 0.128015 | 0.042672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c717ca41001c45ee843977d3d92ec37ac1eff5ed | 361 | py | Python | tests/test_platform.py | CloudNua/ml-prophet-app | c3ded1ed9f65694a37e28ba672b074ee73766e96 | [
"MIT"
] | 1 | 2022-02-23T01:42:22.000Z | 2022-02-23T01:42:22.000Z | tests/test_platform.py | CloudNua/ml-prophet-app | c3ded1ed9f65694a37e28ba672b074ee73766e96 | [
"MIT"
] | 8 | 2021-04-15T11:13:30.000Z | 2021-05-14T16:08:11.000Z | tests/test_platform.py | CloudNua/ml-prophet-app | c3ded1ed9f65694a37e28ba672b074ee73766e96 | [
"MIT"
] | null | null | null | """General tests of the platform"""
import platform
import sys
def test_64bit():
"""We test that Python is running as 64 bit and not 32 bit."""
assert platform.architecture()[0] == "64bit"
def test_python_version():
"""We test that Python is the correct version"""
major, minor, _, _, _ = sys.version... | 25.785714 | 66 | 0.66205 | 52 | 361 | 4.461538 | 0.596154 | 0.12069 | 0.086207 | 0.137931 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038328 | 0.204986 | 361 | 14 | 67 | 25.785714 | 0.770035 | 0.357341 | 0 | 0 | 0 | 0 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | true | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c743281d4dbf2a8b659ba275c34f81950f7cef30 | 741 | py | Python | polls/models.py | GunnerJnr/we_are_social_project | c7410cc303363357a7fc101d88d12e99d9eef65f | [
"MIT"
] | 4 | 2017-10-10T14:00:40.000Z | 2021-01-27T14:08:26.000Z | polls/models.py | GunnerJnr/we_are_social_project | c7410cc303363357a7fc101d88d12e99d9eef65f | [
"MIT"
] | 115 | 2019-10-24T11:18:33.000Z | 2022-03-11T23:15:42.000Z | polls/models.py | GunnerJnr/we_are_social_project | c7410cc303363357a7fc101d88d12e99d9eef65f | [
"MIT"
] | 5 | 2017-09-22T21:42:39.000Z | 2020-02-07T02:18:11.000Z | # -*- coding: utf-8 -*-
from django.conf import settings
from django.db import models
from threads.models import Thread
# Create your models here.
class Poll(models.Model):
question = models.TextField()
thread = models.OneToOneField(Thread, null=True)
def __unicode__(self):
return self.question
... | 25.551724 | 76 | 0.723347 | 92 | 741 | 5.663043 | 0.445652 | 0.122841 | 0.092131 | 0.076775 | 0.226488 | 0.134357 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.165992 | 741 | 28 | 77 | 26.464286 | 0.83657 | 0.062078 | 0 | 0.117647 | 0 | 0 | 0.033237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.117647 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
c7461c24f1f97dd34d5b93476ea606af82b78138 | 25,071 | py | Python | modules/s3/pyvttbl/test_stats.py | flavour/lacity | fd1f1cccdcea64d07143b29d4f88996e3af35c4b | [
"MIT"
] | null | null | null | modules/s3/pyvttbl/test_stats.py | flavour/lacity | fd1f1cccdcea64d07143b29d4f88996e3af35c4b | [
"MIT"
] | null | null | null | modules/s3/pyvttbl/test_stats.py | flavour/lacity | fd1f1cccdcea64d07143b29d4f88996e3af35c4b | [
"MIT"
] | null | null | null | from __future__ import print_function
# Copyright (c) 2011, Roger Lew [see LICENSE.txt]
# This software is funded in part by NIH Grant P20 RR016454.
import unittest
import warnings
import os
import math
from random import shuffle, random
from collections import Counter,OrderedDict
from dictset import DictSet,_rep_gen... | 43.003431 | 714 | 0.501097 | 3,113 | 25,071 | 4.009958 | 0.215226 | 0.003845 | 0.020187 | 0.008011 | 0.600417 | 0.533285 | 0.480253 | 0.480253 | 0.446127 | 0.418249 | 0 | 0.288938 | 0.301903 | 25,071 | 582 | 715 | 43.07732 | 0.424294 | 0.037294 | 0 | 0.506608 | 0 | 0.011013 | 0.48843 | 0.093807 | 0 | 0 | 0 | 0 | 0.052863 | 1 | 0.070485 | false | 0 | 0.028634 | 0.002203 | 0.118943 | 0.008811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c74c30c55f7d9bb49dc1b343bb133733aa51b563 | 2,234 | py | Python | uproot4/source/file.py | nsmith-/uproot4 | 8b0fd0bf669b7969c3ad7accb96c9e865a3375f7 | [
"BSD-3-Clause"
] | null | null | null | uproot4/source/file.py | nsmith-/uproot4 | 8b0fd0bf669b7969c3ad7accb96c9e865a3375f7 | [
"BSD-3-Clause"
] | null | null | null | uproot4/source/file.py | nsmith-/uproot4 | 8b0fd0bf669b7969c3ad7accb96c9e865a3375f7 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE
"""
Source and Resource for plain file handle physical I/O.
"""
from __future__ import absolute_import
import os
import os.path
import uproot4.source.chunk
import uproot4.source.futures
class FileResource(uproot4.source.chunk.Re... | 26.595238 | 85 | 0.645927 | 267 | 2,234 | 5.123596 | 0.363296 | 0.076023 | 0.061404 | 0.039474 | 0.162281 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0.008537 | 0.265891 | 2,234 | 83 | 86 | 26.915663 | 0.82561 | 0.232319 | 0 | 0.139535 | 0 | 0 | 0.00815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.116279 | 0.093023 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c7583f8eaa044e8f81b93922712b3efced219c8c | 2,031 | py | Python | Lib/site-packages/mutagen/m4a.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 21 | 2018-12-12T11:19:02.000Z | 2021-05-28T05:26:36.000Z | Lib/site-packages/mutagen/m4a.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/mutagen/m4a.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 2 | 2020-09-17T08:27:12.000Z | 2021-08-23T11:13:52.000Z | # -*- coding: utf-8 -*-
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
"""
since 1.9:... | 19.528846 | 74 | 0.662235 | 249 | 2,031 | 5.313253 | 0.473896 | 0.045351 | 0.090703 | 0.086924 | 0.208617 | 0.208617 | 0.173091 | 0.131519 | 0.068027 | 0 | 0 | 0.02384 | 0.235844 | 2,031 | 103 | 75 | 19.718447 | 0.828608 | 0.22452 | 0 | 0.269231 | 0 | 0 | 0.110186 | 0 | 0 | 0 | 0.005125 | 0 | 0 | 1 | 0.211538 | false | 0.076923 | 0.057692 | 0.057692 | 0.576923 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c759bc91cd9fb6bdb54312861cad0b376fcd8da6 | 345 | py | Python | src/text_normalizer/tokenization/__init__.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | src/text_normalizer/tokenization/__init__.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | src/text_normalizer/tokenization/__init__.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | import os
from ..settings import DATA_PATH
NLTK_DATA = os.path.join(DATA_PATH, 'nltk_data')
os.environ['NLTK_DATA'] = os.environ.setdefault('NLTK_DATA', NLTK_DATA)
if not os.path.exists(os.environ['NLTK_DATA']):
from nltk import download
os.mkdir(NLTK_DATA)
download('stopwords', download_dir=NLTK_DATA)
... | 24.642857 | 71 | 0.744928 | 53 | 345 | 4.622642 | 0.339623 | 0.261224 | 0.122449 | 0.130612 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127536 | 345 | 13 | 72 | 26.538462 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c77721791d9d4e90fa209a533442a3b89803e33e | 1,708 | py | Python | HerenciaPractica/Main.py | manu9812/programming-oriented-objets | 650e22c8129299d69a4b3fc8722f861603a0302f | [
"Apache-2.0"
] | null | null | null | HerenciaPractica/Main.py | manu9812/programming-oriented-objets | 650e22c8129299d69a4b3fc8722f861603a0302f | [
"Apache-2.0"
] | null | null | null | HerenciaPractica/Main.py | manu9812/programming-oriented-objets | 650e22c8129299d69a4b3fc8722f861603a0302f | [
"Apache-2.0"
] | null | null | null |
import Empleado
"""
AUTOR:Manuela Garcia Monsalve
23 de agosto de 2018"""
"""esta es la clase main en dicha clase se crean dos metodos
como lo son el metodo leer datos que permite capturar por consola la informacion de
los empleados que son creados, y el metodo mostrar datos que permite
que dicha infor... | 30.5 | 85 | 0.589578 | 194 | 1,708 | 5.190722 | 0.345361 | 0.080437 | 0.097319 | 0.075472 | 0.053625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011755 | 0.252927 | 1,708 | 56 | 86 | 30.5 | 0.777429 | 0 | 0 | 0 | 0 | 0 | 0.241405 | 0.035874 | 0 | 0 | 0 | 0.053571 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.102564 | 0.435897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
c77e9e9f3c5a7ae51085943fcf32fed0e69a503d | 515 | py | Python | selfdrive/controls/lib/latcontrol.py | kimig001/openpilot | 4af0c7f21c801ea23cc0e7fa5a86a577180755a4 | [
"MIT"
] | 1 | 2022-01-24T03:43:02.000Z | 2022-01-24T03:43:02.000Z | selfdrive/controls/lib/latcontrol.py | kimig001/openpilot | 4af0c7f21c801ea23cc0e7fa5a86a577180755a4 | [
"MIT"
] | null | null | null | selfdrive/controls/lib/latcontrol.py | kimig001/openpilot | 4af0c7f21c801ea23cc0e7fa5a86a577180755a4 | [
"MIT"
] | null | null | null | from common.realtime import DT_CTRL
MIN_STEER_SPEED = 0.3
class LatControl:
def __init__(self, CP, CI):
self.sat_count_rate = 1.0 * DT_CTRL
self.sat_limit = CP.steerLimitTimer
def reset(self):
self.sat_count = 0.
def _check_saturation(self, saturated, CS):
if saturated and CS.vEgo > 10. and n... | 25.75 | 93 | 0.718447 | 80 | 515 | 4.35 | 0.475 | 0.181034 | 0.241379 | 0.137931 | 0.215517 | 0.16092 | 0.16092 | 0 | 0 | 0 | 0 | 0.016867 | 0.194175 | 515 | 19 | 94 | 27.105263 | 0.821687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c780710259db281efb5bc8a6bd5ac66e0583d7e1 | 1,950 | py | Python | app/doctor_bot/dm/policies/rule_policy.py | TVect/ui-basenlp | 2610f120aca7f3dbe441e1a3606680a4968c3767 | [
"Apache-2.0"
] | null | null | null | app/doctor_bot/dm/policies/rule_policy.py | TVect/ui-basenlp | 2610f120aca7f3dbe441e1a3606680a4968c3767 | [
"Apache-2.0"
] | null | null | null | app/doctor_bot/dm/policies/rule_policy.py | TVect/ui-basenlp | 2610f120aca7f3dbe441e1a3606680a4968c3767 | [
"Apache-2.0"
] | null | null | null | from rasa_core.policies import Policy, MemoizationPolicy
from rasa_core.events import BotUttered, UserUttered
class RulePolicy(Policy):
def __init__(self):
pass
def train(self,
training_trackers, # type: List[DialogueStateTracker]
domain, # type: Domain
**k... | 32.5 | 95 | 0.610769 | 223 | 1,950 | 5.251121 | 0.466368 | 0.017933 | 0.020495 | 0.05807 | 0.040991 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006508 | 0.290769 | 1,950 | 59 | 96 | 33.050847 | 0.840202 | 0.382564 | 0 | 0.178571 | 0 | 0 | 0.038427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.178571 | 0.071429 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c786d96693a3440b7d4a2c1ed04e356d1affd436 | 174 | py | Python | uuid/uuid_uuid1_othermac.py | all3g/pieces | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 34 | 2016-10-31T02:05:24.000Z | 2018-11-08T14:33:13.000Z | uuid/uuid_uuid1_othermac.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 2 | 2017-05-11T03:00:31.000Z | 2017-11-01T23:37:37.000Z | uuid/uuid_uuid1_othermac.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 21 | 2016-08-19T09:05:45.000Z | 2018-11-08T14:33:16.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import uuid
node1 = uuid.getnode()
print hex(node1), uuid.uuid1(node1)
node2 = 0x1e5274040e
print hex(node2), uuid.uuid1(node2)
| 14.5 | 35 | 0.683908 | 25 | 174 | 4.76 | 0.6 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.137931 | 174 | 11 | 36 | 15.818182 | 0.673333 | 0.218391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c794dd5a72631239418c2cbc0b2192baf417856d | 107 | py | Python | Codeforces/B_Coins.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/B_Coins.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/B_Coins.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | n = int(input())
for i in range(n,0,-1):
if n%i==0:
n=i
print(i, end=' ') | 21.4 | 29 | 0.364486 | 19 | 107 | 2.052632 | 0.631579 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.429907 | 107 | 5 | 29 | 21.4 | 0.590164 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7aa4f5514a9f34b85fdd103be2c850dd428a282 | 24,421 | py | Python | Keras_tensorflow_nightly/source2.7/tensorflow/core/kernels/boosted_trees/boosted_trees_pb2.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2019-06-27T12:09:44.000Z | 2019-06-27T12:09:44.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/core/kernels/boosted_trees/boosted_trees_pb2.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Keras_tensorflow_nightly/source2.7/tensorflow/core/kernels/boosted_trees/boosted_trees_pb2.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/kernels/boosted_trees/boosted_trees.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from... | 39.580227 | 2,209 | 0.75648 | 3,059 | 24,421 | 5.727689 | 0.084668 | 0.045659 | 0.081616 | 0.059928 | 0.714343 | 0.672964 | 0.609897 | 0.555448 | 0.517094 | 0.501912 | 0 | 0.035528 | 0.119446 | 24,421 | 616 | 2,210 | 39.644481 | 0.77925 | 0.042054 | 0 | 0.66129 | 1 | 0.001792 | 0.24831 | 0.207973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010753 | 0 | 0.010753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7b69a583acd5c743d5f881d208dc87daaccb333 | 1,521 | py | Python | short_detour.py | XandoBit/KillFlows | 6ff56f86fcfcdcc146501104d6fc8f4bd7ae3c9a | [
"Apache-2.0"
] | null | null | null | short_detour.py | XandoBit/KillFlows | 6ff56f86fcfcdcc146501104d6fc8f4bd7ae3c9a | [
"Apache-2.0"
] | null | null | null | short_detour.py | XandoBit/KillFlows | 6ff56f86fcfcdcc146501104d6fc8f4bd7ae3c9a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# *****APP para subir app a la controladora *****
#---------------------------------> Liberia general
import hpsdnclient as hp
#---------------------------------> def. main
def main():
#initialize the api
controller = '127.0.0.1'#---------------------------------> especifico ip control... | 37.097561 | 90 | 0.506246 | 179 | 1,521 | 4.195531 | 0.458101 | 0.12783 | 0.159787 | 0.170439 | 0.304927 | 0.304927 | 0.304927 | 0.286285 | 0.286285 | 0.286285 | 0 | 0.087777 | 0.198554 | 1,521 | 40 | 91 | 38.025 | 0.528302 | 0.397765 | 0 | 0.111111 | 0 | 0 | 0.141268 | 0.076752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.055556 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c7c3d9fdf7b94a6323b79c78bd395ad69e68d8b6 | 642 | py | Python | way/python/exercises/various/pygame_draws/dots_draw.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/exercises/various/pygame_draws/dots_draw.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/exercises/various/pygame_draws/dots_draw.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | # Python 2.7 requires pygame
import pygame, sys
pygame.init()
dots = [[221, 432], [225, 331], [133, 342], [141, 310],
[51, 230], [74, 217], [58, 153], [114, 164],
[123, 135], [176, 190], [159, 77], [193, 93],
[230, 28], [267, 93], [301, 77], [284, 190],
[327, 135], [336, 164], [402, 153], [386, 217],
[409, 230], [319,... | 24.692308 | 55 | 0.602804 | 105 | 642 | 3.67619 | 0.647619 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304428 | 0.155763 | 642 | 25 | 56 | 25.68 | 0.407749 | 0.040498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7cdef30f2c3496b7c4968f265deacc7500691d8 | 429 | py | Python | setup.py | HaFl/python-testing-framework | d89d1168f7b0aa47ac36f258804bbbdbcb659fa7 | [
"MIT"
] | null | null | null | setup.py | HaFl/python-testing-framework | d89d1168f7b0aa47ac36f258804bbbdbcb659fa7 | [
"MIT"
] | null | null | null | setup.py | HaFl/python-testing-framework | d89d1168f7b0aa47ac36f258804bbbdbcb659fa7 | [
"MIT"
] | null | null | null | from setuptools import setup
with open('README.md', 'r') as f:
long_description = f.read()
setup(
name='python-testing-framework',
version='1.0.0',
author='Florian Hartl',
url='https://github.com/florian-hartl/python-testing-framework',
license='LICENSE',
description='Workshop for setting up a tes... | 26.8125 | 71 | 0.722611 | 56 | 429 | 5.446429 | 0.642857 | 0.209836 | 0.216393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008108 | 0.137529 | 429 | 15 | 72 | 28.6 | 0.816216 | 0 | 0 | 0 | 0 | 0 | 0.449883 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7d7cf6ef2dfc645b725b3c1f4da8e94db25e186 | 5,638 | py | Python | src/maya_mock/pymel/session.py | renaudll/maya-mock | be5754affe03b06b7960872ac21d7ff04e8c5002 | [
"MIT"
] | 23 | 2018-12-05T10:54:45.000Z | 2021-06-04T12:54:13.000Z | src/maya_mock/pymel/session.py | renaudll/maya-mock | be5754affe03b06b7960872ac21d7ff04e8c5002 | [
"MIT"
] | null | null | null | src/maya_mock/pymel/session.py | renaudll/maya-mock | be5754affe03b06b7960872ac21d7ff04e8c5002 | [
"MIT"
] | 3 | 2020-04-24T05:24:58.000Z | 2020-05-14T16:51:31.000Z | """
Mocked for the pymel package.
"""
import six
from maya_mock.cmds.session import MockedCmdsSession
from maya_mock.pymel.node import MockedPymelNode
from maya_mock.pymel.port import MockedPymelPort
class MockedPymelSession(MockedCmdsSession):
"""
Mock for the maya.cmds python module
:param maya_mock.M... | 34.169697 | 85 | 0.65165 | 644 | 5,638 | 5.548137 | 0.206522 | 0.036384 | 0.06801 | 0.062692 | 0.274279 | 0.264764 | 0.229499 | 0.129303 | 0.083403 | 0.083403 | 0 | 0 | 0.255764 | 5,638 | 164 | 86 | 34.378049 | 0.851525 | 0.344271 | 0 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.014085 | 1 | 0.239437 | false | 0 | 0.056338 | 0 | 0.450704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7ddfe7962a14eece62d385ff7e426966758e9b5 | 2,316 | py | Python | py/keymouse/events.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/keymouse/events.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/keymouse/events.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | 1 | 2021-01-30T01:47:01.000Z | 2021-01-30T01:47:01.000Z | # -*- coding: utf-8 -*-
"""
user input hook
"""
import pythoncom
import pyHook
class Hook(object):
def __init__(self):
""" init """
#self.fh = open("keyboard.dat", "wb")
self.WindowName = None
pass
def onMouseEvent(self, event):
# 监听鼠... | 23.632653 | 51 | 0.510363 | 217 | 2,316 | 5.373272 | 0.373272 | 0.030875 | 0.085763 | 0.030875 | 0.186964 | 0.186964 | 0.186964 | 0.186964 | 0.186964 | 0.186964 | 0 | 0.006575 | 0.343264 | 2,316 | 98 | 52 | 23.632653 | 0.760026 | 0.41753 | 0 | 0.148148 | 0 | 0 | 0.017115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.074074 | 0.074074 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c7e231d78f5580058f7b16ed5e7715ef0b13b78e | 323 | py | Python | rosplan_planning_system/setup.py | knowledge-based-systems-course/ROSPlan | 25214144cd934af5eae2215567e7db0cd85e8bac | [
"BSD-2-Clause"
] | null | null | null | rosplan_planning_system/setup.py | knowledge-based-systems-course/ROSPlan | 25214144cd934af5eae2215567e7db0cd85e8bac | [
"BSD-2-Clause"
] | null | null | null | rosplan_planning_system/setup.py | knowledge-based-systems-course/ROSPlan | 25214144cd934af5eae2215567e7db0cd85e8bac | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# for your packages to be recognized by python
d = generate_distutils_setup(
packages=['rosplan_planning_system'],
package_dir={'rosplan_planning_system': 'src/rosplan_planning_system'}
)
setup(**... | 24.846154 | 72 | 0.801858 | 45 | 323 | 5.466667 | 0.6 | 0.182927 | 0.256098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.105263 | 323 | 12 | 73 | 26.916667 | 0.847751 | 0.204334 | 0 | 0 | 1 | 0 | 0.286275 | 0.286275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7f3146281cf8767f2b003de72c5d6b8865a5635 | 338 | py | Python | socialbus-portuguese-classifier/ngrams.py | arianpasquali/socialbus | 942de3195f40732e8aa985c01f3733f9bc7eb39d | [
"MIT"
] | 3 | 2016-11-27T17:20:24.000Z | 2020-09-26T15:14:09.000Z | socialbus-portuguese-classifier/ngrams.py | arianpasquali/socialbus | 942de3195f40732e8aa985c01f3733f9bc7eb39d | [
"MIT"
] | 6 | 2021-06-04T01:08:16.000Z | 2021-08-09T20:49:36.000Z | socialbus-portuguese-classifier/ngrams.py | tiagonc96/socialbustl | 3a32a9184e7e2cea2a14091e74055eb8ed9cbcec | [
"MIT"
] | 1 | 2017-03-08T17:02:19.000Z | 2017-03-08T17:02:19.000Z | import collections
gram = 3
def count_ngrams(text):
all_ngrams = collections.Counter()
gram_count = 0
if not text:
return all_ngrams
tokens = text.rstrip()
if len(tokens) < gram:
return all_ngrams
for i in range(len(tokens) - gram + 1):
all_ngrams[tokens[i:i+gram]] += 1
gram_count += 1
... | 18.777778 | 41 | 0.671598 | 52 | 338 | 4.211538 | 0.423077 | 0.205479 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019084 | 0.224852 | 338 | 17 | 42 | 19.882353 | 0.816794 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1bdfad8aa7a29010fce52a44da2af225eb2eaa81 | 187 | py | Python | Chapter03/ch3/multiple.sequences.py | PacktPublishing/Getting-Started-with-Packt | 28d13a4a8a3fe89d53e74089e5122e133cb91424 | [
"MIT"
] | 55 | 2018-07-04T10:12:15.000Z | 2022-03-03T19:51:54.000Z | Chapter03/ch3/multiple.sequences.py | PacktPublishing/Getting-Started-with-Packt | 28d13a4a8a3fe89d53e74089e5122e133cb91424 | [
"MIT"
] | 6 | 2020-03-24T16:37:46.000Z | 2021-06-10T21:04:36.000Z | Chapter03/ch3/multiple.sequences.py | PacktPublishing/Getting-Started-with-Packt | 28d13a4a8a3fe89d53e74089e5122e133cb91424 | [
"MIT"
] | 32 | 2018-07-10T05:56:31.000Z | 2021-09-04T23:19:42.000Z | people = ['Conrad', 'Deepak', 'Heinrich', 'Tom']
ages = [29, 30, 34, 36]
for position in range(len(people)):
person = people[position]
age = ages[position]
print(person, age)
| 26.714286 | 48 | 0.625668 | 25 | 187 | 4.68 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0.192513 | 187 | 6 | 49 | 31.166667 | 0.721854 | 0 | 0 | 0 | 0 | 0 | 0.122995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1be74cbf2326c620c3a9e0eace4bd716c40170a6 | 610 | py | Python | machine-learning-ex7/ex7/computeCentroids.py | ShawnT4ever/coursera-ml-py | ede0f259ed5ac6ed0c0d7b4d6f999cad5c07aafb | [
"MIT"
] | 1,333 | 2017-03-24T05:51:41.000Z | 2022-03-27T14:20:55.000Z | machine-learning-ex7/ex7/computeCentroids.py | ShawnT4ever/coursera-ml-py | ede0f259ed5ac6ed0c0d7b4d6f999cad5c07aafb | [
"MIT"
] | 1 | 2020-10-15T10:03:44.000Z | 2020-10-15T10:03:44.000Z | machine-learning-ex7/ex7/computeCentroids.py | ShawnT4ever/coursera-ml-py | ede0f259ed5ac6ed0c0d7b4d6f999cad5c07aafb | [
"MIT"
] | 531 | 2017-03-25T14:08:34.000Z | 2022-03-29T07:01:30.000Z | import numpy as np
def compute_centroids(X, idx, K):
# Useful values
(m, n) = X.shape
# You need to return the following variable correctly.
centroids = np.zeros((K, n))
# ===================== Your Code Here =====================
# Instructions: Go over every centroid and compute mean of al... | 27.727273 | 78 | 0.5 | 67 | 610 | 4.537313 | 0.716418 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281967 | 610 | 21 | 79 | 29.047619 | 0.694064 | 0.688525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1be9ee5658c9e8d717100f73cb8eed9ab51a1b52 | 639 | py | Python | csfd/models.py | vonsovsky/csfd | 523f190f6ff2d97cfa228e587c003e873adfd6b8 | [
"MIT"
] | null | null | null | csfd/models.py | vonsovsky/csfd | 523f190f6ff2d97cfa228e587c003e873adfd6b8 | [
"MIT"
] | null | null | null | csfd/models.py | vonsovsky/csfd | 523f190f6ff2d97cfa228e587c003e873adfd6b8 | [
"MIT"
] | null | null | null | from django.db import models
class Actor(models.Model):
name = models.CharField(max_length=70)
name_beautified = models.CharField(max_length=70)
link = models.CharField(max_length=255)
class Movie(models.Model):
name = models.CharField(max_length=70)
name_beautified = models.CharField(max_length... | 30.428571 | 66 | 0.748044 | 82 | 639 | 5.707317 | 0.353659 | 0.192308 | 0.230769 | 0.307692 | 0.478632 | 0.478632 | 0.478632 | 0.478632 | 0.478632 | 0.478632 | 0 | 0.027273 | 0.13928 | 639 | 20 | 67 | 31.95 | 0.823636 | 0 | 0 | 0.428571 | 0 | 0 | 0.023474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1be9fddc9c7465b5758dd91c13d516362753c622 | 2,136 | py | Python | shop/filters.py | mohammadfayaj/Django-Pro-Eshop | 1c9d8ed0f068dedaea68cc28971a4cd5b2b22520 | [
"Apache-2.0"
] | null | null | null | shop/filters.py | mohammadfayaj/Django-Pro-Eshop | 1c9d8ed0f068dedaea68cc28971a4cd5b2b22520 | [
"Apache-2.0"
] | null | null | null | shop/filters.py | mohammadfayaj/Django-Pro-Eshop | 1c9d8ed0f068dedaea68cc28971a4cd5b2b22520 | [
"Apache-2.0"
] | null | null | null | from . models import *
import django_filters
from django import forms
from django_filters.filters import RangeFilter,DateFilter,CharFilter
from django_filters.widgets import RangeWidget,CSVWidget,DateRangeWidget,SuffixedMultiWidget
from django.forms import CheckboxSelectMultiple,RadioSelect
# Creating product filters... | 23.217391 | 179 | 0.706461 | 229 | 2,136 | 6.414847 | 0.371179 | 0.123894 | 0.054459 | 0.053097 | 0.321988 | 0.321988 | 0.321988 | 0.28727 | 0.220558 | 0.220558 | 0 | 0 | 0.15309 | 2,136 | 92 | 180 | 23.217391 | 0.812051 | 0.45412 | 0 | 0 | 0 | 0 | 0.125439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1bf4f92f83cf8469f6a6d2f6b2703d86c2139965 | 156 | py | Python | skyscape/skyscape_disk.py | skyscape-cloud-services/skyscape_python | 4f5608dd6272c4370adf04a0317842b8ea5083e2 | [
"Apache-2.0"
] | 1 | 2015-12-04T14:14:25.000Z | 2015-12-04T14:14:25.000Z | skyscape/skyscape_disk.py | UKCloud/skyscape_python | 4f5608dd6272c4370adf04a0317842b8ea5083e2 | [
"Apache-2.0"
] | 1 | 2016-01-06T15:46:22.000Z | 2016-01-06T15:46:22.000Z | skyscape/skyscape_disk.py | UKCloud/skyscape_python | 4f5608dd6272c4370adf04a0317842b8ea5083e2 | [
"Apache-2.0"
] | 1 | 2015-12-02T17:22:20.000Z | 2015-12-02T17:22:20.000Z | __author__ = 'prossi'
class DISK:
def __init__(self, obj, connection):
self.__dict__ = dict(obj.attrib)
self.connection = connection
| 17.333333 | 40 | 0.653846 | 17 | 156 | 5.294118 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24359 | 156 | 8 | 41 | 19.5 | 0.762712 | 0 | 0 | 0 | 0 | 0 | 0.03871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1bf7f9eccc998632505a554f729af12a936f0fd9 | 708 | py | Python | prol/goals/models.py | onagbonoga/goals_tracking_app | 6618cc87316833ddec1524eab5f82b544fac21d0 | [
"MIT"
] | null | null | null | prol/goals/models.py | onagbonoga/goals_tracking_app | 6618cc87316833ddec1524eab5f82b544fac21d0 | [
"MIT"
] | null | null | null | prol/goals/models.py | onagbonoga/goals_tracking_app | 6618cc87316833ddec1524eab5f82b544fac21d0 | [
"MIT"
] | null | null | null | from prol import db
#from sqlalchemy.ext.mutable import MutableDict
class Goal(db.Model):
id = db.Column(db.Integer,primary_key=True)
goal = db.Column(db.Text)
priority = db.Column(db.String(80))
todo = db.Column(db.Text)
#todo = db.Column(db.PickleType)
#todo = db.Column(db.JsonEncodedDict)
user_id = db.Colu... | 19.666667 | 57 | 0.710452 | 109 | 708 | 4.458716 | 0.321101 | 0.115226 | 0.144033 | 0.08642 | 0.386831 | 0.308642 | 0.197531 | 0.197531 | 0.197531 | 0.197531 | 0 | 0.003328 | 0.15113 | 708 | 35 | 58 | 20.228571 | 0.805324 | 0.159605 | 0 | 0.3 | 0 | 0 | 0.030664 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1bf9d3563af9c144458263b6916943e69d7088c8 | 1,779 | py | Python | aio_jsonrpc_20/response.py | Hellzed/aio-jsonrpc-2.0 | 75d2397931429c5126e420b5e7d7ba87c24bc8ad | [
"MIT"
] | 6 | 2017-03-16T12:48:12.000Z | 2020-11-11T03:39:41.000Z | aio_jsonrpc_20/response.py | Hellzed/aio-jsonrpc-2.0 | 75d2397931429c5126e420b5e7d7ba87c24bc8ad | [
"MIT"
] | 2 | 2017-05-29T14:52:58.000Z | 2017-06-09T09:41:55.000Z | aio_jsonrpc_20/response.py | Hellzed/aio-jsonrpc-2.0 | 75d2397931429c5126e420b5e7d7ba87c24bc8ad | [
"MIT"
] | 4 | 2019-04-16T15:33:44.000Z | 2020-11-11T03:41:33.000Z |
class ResponseMaker(object):
__slot__ = ['error_verbose']
def __init__(self, error_verbose=True):
self.error_verbose = error_verbose
def get_response(self, result, request_id):
return {
"jsonrpc": "2.0",
"result": result,
"id": request_id
}
... | 28.238095 | 72 | 0.572232 | 210 | 1,779 | 4.580952 | 0.180952 | 0.205821 | 0.091476 | 0.087318 | 0.529106 | 0.489605 | 0.489605 | 0.425156 | 0.358628 | 0.233888 | 0 | 0.023967 | 0.319843 | 1,779 | 62 | 73 | 28.693548 | 0.771074 | 0 | 0 | 0.204082 | 0 | 0 | 0.084412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0 | 0.142857 | 0.387755 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1bf9ec97d94315002762ccfec4ac849db751cacc | 776 | py | Python | frappe/query_builder/__init__.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | frappe/query_builder/__init__.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | frappe/query_builder/__init__.py | oryxsolutions/frappe | d193ea22d17ca40d57432040a8afad72287d9e23 | [
"MIT"
] | null | null | null | import pypika.terms
from pypika import *
from pypika import Field
from pypika.utils import ignore_copy
from frappe.query_builder.terms import ParameterizedFunction, ParameterizedValueWrapper
from frappe.query_builder.utils import (
Column,
DocType,
get_query_builder,
patch_query_aggregation,
patch_query_execute,
... | 35.272727 | 98 | 0.820876 | 97 | 776 | 6.371134 | 0.402062 | 0.071197 | 0.11165 | 0.071197 | 0.197411 | 0.197411 | 0.197411 | 0.197411 | 0.197411 | 0.197411 | 0 | 0 | 0.097938 | 776 | 21 | 99 | 36.952381 | 0.882857 | 0.123711 | 0 | 0 | 0 | 0 | 0.007375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.352941 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1bfaad800fe9fc097346c61f129a40d1e754a7dd | 72 | py | Python | res/test.py | junbaih/Ground-Station-18-19 | 547fce1419d9d3a0949baa246ae1a52208d2e4db | [
"Apache-2.0"
] | null | null | null | res/test.py | junbaih/Ground-Station-18-19 | 547fce1419d9d3a0949baa246ae1a52208d2e4db | [
"Apache-2.0"
] | null | null | null | res/test.py | junbaih/Ground-Station-18-19 | 547fce1419d9d3a0949baa246ae1a52208d2e4db | [
"Apache-2.0"
] | null | null | null | import json
f = open('FlyMission.json','r+')
l = json.load(f)
print(l)
| 12 | 32 | 0.638889 | 13 | 72 | 3.538462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 72 | 5 | 33 | 14.4 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40233b63d42ac8e57e1e78458ddb81caeb3d17d8 | 916 | py | Python | test/test_locales.py | Sasha-Sorokin/pyseeyou | 5cec4ea5d0cc939bed93b78e6d240c4f576ec869 | [
"MIT"
] | null | null | null | test/test_locales.py | Sasha-Sorokin/pyseeyou | 5cec4ea5d0cc939bed93b78e6d240c4f576ec869 | [
"MIT"
] | 2 | 2019-03-07T10:26:26.000Z | 2019-03-08T07:12:14.000Z | test/test_locales.py | Sasha-Sorokin/pyseeyou | 5cec4ea5d0cc939bed93b78e6d240c4f576ec869 | [
"MIT"
] | 1 | 2019-03-07T06:41:25.000Z | 2019-03-07T06:41:25.000Z | import pytest
from pyseeyou.locales import get_parts_of_num, lookup_closest_locale, get_cardinal_category
def test_get_parts_of_num():
assert get_parts_of_num('1') == (1, 1, 0, 0, 0, 0)
assert get_parts_of_num('1.0') == (1.0, 1, 1, 0, 0, 0)
assert get_parts_of_num('1.00') == (1.00, 1, 2, 0, 0, 0)
asse... | 39.826087 | 91 | 0.646288 | 167 | 916 | 3.245509 | 0.233533 | 0.132841 | 0.166052 | 0.215867 | 0.293358 | 0.284133 | 0.247232 | 0.208487 | 0.127306 | 0 | 0 | 0.104084 | 0.171397 | 916 | 22 | 92 | 41.636364 | 0.610013 | 0 | 0 | 0 | 0 | 0 | 0.077511 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4024e75897449e554e220c2ac4189870f7a9a68f | 293 | py | Python | Mundo 2/ex049.py | erickeloi/ExerciciosTreino | f5ac02f45e2eb27d5a8af87fca1227b5c88f523f | [
"MIT"
] | null | null | null | Mundo 2/ex049.py | erickeloi/ExerciciosTreino | f5ac02f45e2eb27d5a8af87fca1227b5c88f523f | [
"MIT"
] | null | null | null | Mundo 2/ex049.py | erickeloi/ExerciciosTreino | f5ac02f45e2eb27d5a8af87fca1227b5c88f523f | [
"MIT"
] | null | null | null | #Desafio 49
#Programa Tabuada, Lê um número inteiro e mostra sua tabuada.
#Testando a estrutura de repetição "for" do python
num = int(input("Digite um número inteiro qualquer para saber sua tabuada: "))
for i in range(1,11):
print(f" {num} x {i} = {num*i}")
print("---Fim da Tabuada---")
| 36.625 | 78 | 0.692833 | 49 | 293 | 4.142857 | 0.734694 | 0.078818 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020492 | 0.167235 | 293 | 7 | 79 | 41.857143 | 0.811475 | 0.406143 | 0 | 0 | 0 | 0 | 0.584795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 2 |
4026f2027ee50b91a25343fd087efedab2324cff | 194 | py | Python | modify_tifffile.py | sebi06/czi_demos | b3f7801f46de0138a8a1ac245e9c80787e0a3f17 | [
"MIT"
] | 3 | 2020-12-31T10:06:42.000Z | 2021-11-09T13:44:16.000Z | modify_tifffile.py | sebi06/czi_demos | b3f7801f46de0138a8a1ac245e9c80787e0a3f17 | [
"MIT"
] | null | null | null | modify_tifffile.py | sebi06/czi_demos | b3f7801f46de0138a8a1ac245e9c80787e0a3f17 | [
"MIT"
] | null | null | null | import ometifftools as ott
filename = r'A01_S0000.ome.tiff'
old = ("2012-03", "2013-06", r"ome/2016-06")
new = ("2016-06", "2016-06", r"OME/2016-06")
ott.correct_omeheader(filename, old, new)
| 24.25 | 44 | 0.680412 | 34 | 194 | 3.823529 | 0.558824 | 0.184615 | 0.092308 | 0.153846 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244186 | 0.113402 | 194 | 7 | 45 | 27.714286 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0.350515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4032a19516042638e1811896ba5b840ffc1b0d2e | 532 | py | Python | core/src/apps/lisk/__init__.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | null | null | null | core/src/apps/lisk/__init__.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 1 | 2019-02-08T00:22:42.000Z | 2019-02-13T09:41:54.000Z | core/src/apps/lisk/__init__.py | Kayuii/trezor-crypto | 6556616681a4e2d7e18817e8692d4f6e041dee01 | [
"MIT"
] | 2 | 2019-02-07T23:57:09.000Z | 2020-10-21T07:07:27.000Z | from trezor import wire
from trezor.messages import MessageType
from apps.common import HARDENED
CURVE = "ed25519"
def boot():
ns = [[CURVE, HARDENED | 44, HARDENED | 134]]
wire.add(MessageType.LiskGetPublicKey, __name__, "get_public_key", ns)
wire.add(MessageType.LiskGetAddress, __name__, "get_address"... | 33.25 | 74 | 0.74812 | 64 | 532 | 5.8125 | 0.484375 | 0.094086 | 0.241935 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021786 | 0.137218 | 532 | 15 | 75 | 35.466667 | 0.788671 | 0 | 0 | 0 | 0 | 0 | 0.12218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4035f0d0394e766a1fc52068b7214803d42de6c3 | 2,894 | py | Python | test/wecall_acceptance/output_representations/test_alignment.py | dylex/wecall | 35d24cefa4fba549e737cd99329ae1b17dd0156b | [
"MIT"
] | 8 | 2018-10-08T15:47:21.000Z | 2021-11-09T07:13:05.000Z | test/wecall_acceptance/output_representations/test_alignment.py | dylex/wecall | 35d24cefa4fba549e737cd99329ae1b17dd0156b | [
"MIT"
] | 4 | 2018-11-05T09:16:27.000Z | 2020-04-09T12:32:56.000Z | test/wecall_acceptance/output_representations/test_alignment.py | dylex/wecall | 35d24cefa4fba549e737cd99329ae1b17dd0156b | [
"MIT"
] | 4 | 2019-09-03T15:46:39.000Z | 2021-06-04T07:28:33.000Z | # All content Copyright (C) 2018 Genomics plc
from wecall_test_drivers.ascii_wecall_runner import AsciiWecallRunnerTest
class TestAlignment(AsciiWecallRunnerTest):
def test_should_cope_with_indel_from_two_location(self):
self.calls_variants_with_genotype(
"CCCCCCCTAAAAAAAAAAAAAAAAAAAAAATCCCCC"... | 45.936508 | 115 | 0.248445 | 132 | 2,894 | 5.05303 | 0.462121 | 0.02099 | 0.077961 | 0.125937 | 0.415292 | 0.415292 | 0.224888 | 0.017991 | 0.017991 | 0 | 0 | 0.00182 | 0.240498 | 2,894 | 62 | 116 | 46.677419 | 0.301638 | 0.014858 | 0 | 0.321429 | 0 | 0 | 0.520885 | 0.520885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.017857 | 0 | 0.107143 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4040b0cac8e66aa1067da0c9c28aa507f608a28b | 1,126 | py | Python | qqzone/qq_zone.py | rua-aaa/awesome-python-login-model | 26f842f9ebb8ef3ee199a7838ed19c87570db5dd | [
"MIT"
] | 5,857 | 2019-08-16T07:57:39.000Z | 2022-03-31T10:01:35.000Z | qqzone/qq_zone.py | shakenetwork/awesome-python-login-model | f3f761cec50128376a028987bc7404cdf9953ade | [
"MIT"
] | 72 | 2019-08-16T07:23:15.000Z | 2022-03-06T23:21:22.000Z | qqzone/qq_zone.py | shakenetwork/awesome-python-login-model | f3f761cec50128376a028987bc7404cdf9953ade | [
"MIT"
] | 1,599 | 2019-08-17T08:48:53.000Z | 2022-03-31T11:08:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
info:
author:CriseLYJ
github:https://github.com/CriseLYJ/
update_time:2019-3-7
"""
import time # 用来延时
from selenium import webdriver
driver = webdriver.Chrome() # 选择浏览器,此处我选择的Chrome
QQ_NUMBER = input('请输入你的QQ号')
PASSWORD = input('请输入你的QQ密码')
driver.get('http://i.qq... | 29.631579 | 102 | 0.763766 | 161 | 1,126 | 5.068323 | 0.559006 | 0.110294 | 0.166667 | 0.186275 | 0.219363 | 0.129902 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.072824 | 1,126 | 37 | 103 | 30.432432 | 0.770115 | 0.230018 | 0 | 0 | 0 | 0 | 0.243243 | 0.137485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
404e9692703ff04bfb3244d6d0be4b1f68a909cc | 1,163 | py | Python | fbnet/command_runner/options.py | singhaditya28/FCR | d582cc38a87940f799186e1a35637343b4ced3bd | [
"MIT"
] | null | null | null | fbnet/command_runner/options.py | singhaditya28/FCR | d582cc38a87940f799186e1a35637343b4ced3bd | [
"MIT"
] | null | null | null | fbnet/command_runner/options.py | singhaditya28/FCR | d582cc38a87940f799186e1a35637343b4ced3bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
from argparse import HelpFormatter
from operator import attrgetter
class So... | 27.046512 | 74 | 0.697334 | 140 | 1,163 | 5.628571 | 0.578571 | 0.025381 | 0.035533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002153 | 0.201204 | 1,163 | 42 | 75 | 27.690476 | 0.846071 | 0.245056 | 0 | 0 | 0 | 0 | 0.016432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15 | 0.05 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
40546cad73cb74c38803c883b7307cdfa70dc898 | 2,632 | py | Python | tests/seahub/views/init/test_libraries.py | xiez/seahub | 8dfaa726e804afdf27e0b530de3e127b1654a7e3 | [
"Apache-2.0"
] | null | null | null | tests/seahub/views/init/test_libraries.py | xiez/seahub | 8dfaa726e804afdf27e0b530de3e127b1654a7e3 | [
"Apache-2.0"
] | null | null | null | tests/seahub/views/init/test_libraries.py | xiez/seahub | 8dfaa726e804afdf27e0b530de3e127b1654a7e3 | [
"Apache-2.0"
] | null | null | null | import json
from django.core.urlresolvers import reverse
import pytest
pytestmark = pytest.mark.django_db
from seahub.options.models import UserOptions
from seahub.test_utils import BaseTestCase
class LibrariesTest(BaseTestCase):
def setUp(self):
self.url = reverse('libraries')
from constance imp... | 32.493827 | 75 | 0.694149 | 355 | 2,632 | 4.921127 | 0.197183 | 0.051517 | 0.073268 | 0.091586 | 0.728678 | 0.717802 | 0.660561 | 0.660561 | 0.588437 | 0.588437 | 0 | 0.011198 | 0.219605 | 2,632 | 80 | 76 | 32.9 | 0.839338 | 0.006459 | 0 | 0.527273 | 0 | 0 | 0.058215 | 0 | 0 | 0 | 0 | 0 | 0.418182 | 1 | 0.072727 | false | 0 | 0.109091 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
406c4a53027eea4450c07ae68879964dc6a47ae0 | 481 | py | Python | venvtools/__init__.py | HeavenVolkoff/venvtools | 5cb7f35d130a632becca40d5434d6d004b8dbd87 | [
"BSD-3-Clause"
] | 6 | 2018-10-29T22:44:26.000Z | 2021-03-03T14:31:20.000Z | venvtools/__init__.py | HeavenVolkoff/venvtools | 5cb7f35d130a632becca40d5434d6d004b8dbd87 | [
"BSD-3-Clause"
] | 3 | 2019-06-13T16:28:40.000Z | 2019-09-05T04:12:52.000Z | venvtools/__init__.py | HeavenVolkoff/venvtools | 5cb7f35d130a632becca40d5434d6d004b8dbd87 | [
"BSD-3-Clause"
] | null | null | null | # Internal
import sys
if sys.version_info < (3, 8):
# External
from importlib_metadata import version # type: ignore
else:
# Internal
from importlib.metadata import version
try:
__version__: str = version(__name__)
except Exception: # pragma: no cover
# Internal
import traceback
from... | 21.863636 | 83 | 0.694387 | 59 | 481 | 5.271186 | 0.644068 | 0.090032 | 0.135048 | 0.173633 | 0.21865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013228 | 0.214137 | 481 | 21 | 84 | 22.904762 | 0.809524 | 0.135135 | 0 | 0 | 0 | 0 | 0.173594 | 0.070905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
4079d879ac992934b38134be287746ef0cd48c84 | 1,272 | py | Python | t.snake/test_scale.py | countercept/snake-charmer | c37da399c6123549f1880c4487038a2281a487e1 | [
"BSD-3-Clause"
] | null | null | null | t.snake/test_scale.py | countercept/snake-charmer | c37da399c6123549f1880c4487038a2281a487e1 | [
"BSD-3-Clause"
] | null | null | null | t.snake/test_scale.py | countercept/snake-charmer | c37da399c6123549f1880c4487038a2281a487e1 | [
"BSD-3-Clause"
] | 1 | 2018-09-04T09:41:29.000Z | 2018-09-04T09:41:29.000Z | import json
import requests
def test_scale_get_missing(regtest, db, url):
r = requests.get(url + '/scale')
regtest.write(r.text)
def test_scale_get_incorrect(regtest, db, url):
r = requests.get(url + '/scale/abcd')
regtest.write(r.text)
def test_scale_get(regtest, db, url):
r = requests.get(ur... | 25.44 | 57 | 0.601415 | 182 | 1,272 | 4.071429 | 0.186813 | 0.066127 | 0.11336 | 0.1417 | 0.824561 | 0.820513 | 0.699055 | 0.699055 | 0.394062 | 0.394062 | 0 | 0 | 0.213836 | 1,272 | 49 | 58 | 25.959184 | 0.741 | 0 | 0 | 0.514286 | 0 | 0 | 0.150157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.057143 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
407aee904c9b40f6488262f6a1a35ead16080014 | 2,048 | py | Python | codeTrainModelDoc2vec.py | talal579/IMDb-sentiment-analysis | 80054aa2e118ef0c5566c5408461bb459f0ccc8e | [
"MIT"
] | null | null | null | codeTrainModelDoc2vec.py | talal579/IMDb-sentiment-analysis | 80054aa2e118ef0c5566c5408461bb459f0ccc8e | [
"MIT"
] | null | null | null | codeTrainModelDoc2vec.py | talal579/IMDb-sentiment-analysis | 80054aa2e118ef0c5566c5408461bb459f0ccc8e | [
"MIT"
] | null | null | null | import gensim
import numpy as np
import pandas as pd
from gensim.models import Doc2Vec
from gensim.models.doc2vec import LabeledSentence as LS
# We require LabeledSentence objects for some reason
def add_labels(reviews, typ):
res = []
for i in xrange(0, len(reviews)):
review = reviews[i]
label ... | 37.236364 | 90 | 0.73584 | 310 | 2,048 | 4.732258 | 0.33871 | 0.02454 | 0.03272 | 0.03681 | 0.353102 | 0.335378 | 0.208589 | 0.208589 | 0.208589 | 0.139059 | 0 | 0.020845 | 0.133301 | 2,048 | 54 | 91 | 37.925926 | 0.805634 | 0.155273 | 0 | 0 | 0 | 0 | 0.184302 | 0.043605 | 0 | 0 | 0 | 0.018519 | 0 | 0 | null | null | 0 | 0.131579 | null | null | 0.184211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40801dcc7b4d474f45ceaf9a27afbe137ea68dc3 | 552 | py | Python | eventreg/migrations/0002_auto_20210726_1652.py | Open-Source-Community-VIT-AP/OSCHub | 0e4d2f2d930f2802cd3bfc38e9af6cd7c9fd5b2c | [
"Apache-2.0"
] | 7 | 2021-04-05T15:53:55.000Z | 2021-09-17T18:54:45.000Z | eventreg/migrations/0002_auto_20210726_1652.py | Open-Source-Community-VIT-AP/OSCHub | 0e4d2f2d930f2802cd3bfc38e9af6cd7c9fd5b2c | [
"Apache-2.0"
] | 22 | 2021-03-15T06:37:06.000Z | 2022-01-28T16:26:06.000Z | eventreg/migrations/0002_auto_20210726_1652.py | Open-Source-Community-VIT-AP/OSCHub | 0e4d2f2d930f2802cd3bfc38e9af6cd7c9fd5b2c | [
"Apache-2.0"
] | 5 | 2021-05-07T05:57:52.000Z | 2021-09-25T06:25:19.000Z | # Generated by Django 3.1.7 on 2021-07-26 11:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("eventreg", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="eventuserdata",
name="studentName",
... | 23 | 50 | 0.583333 | 53 | 552 | 5.981132 | 0.679245 | 0.126183 | 0.157729 | 0.182965 | 0.473186 | 0.290221 | 0 | 0 | 0 | 0 | 0 | 0.059896 | 0.304348 | 552 | 23 | 51 | 24 | 0.765625 | 0.081522 | 0 | 0.352941 | 1 | 0 | 0.132673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40817f1ab73f1b1269c012220eb8ccb7f1f96338 | 3,448 | py | Python | control_de_flujo.py | EUD-curso-python/control_de_flujo-mariocortes1987 | 3187e745622a29f51d5253e9dc482ba67931b675 | [
"MIT"
] | null | null | null | control_de_flujo.py | EUD-curso-python/control_de_flujo-mariocortes1987 | 3187e745622a29f51d5253e9dc482ba67931b675 | [
"MIT"
] | null | null | null | control_de_flujo.py | EUD-curso-python/control_de_flujo-mariocortes1987 | 3187e745622a29f51d5253e9dc482ba67931b675 | [
"MIT"
] | null | null | null |
"""Guarde en lista `naturales` los primeros 100 números naturales (desde el 1)
usando el bucle while
"""
naturales=[]
i=1
while i <=100:
naturales.append(i)
i+=1
#print(i)
#print(naturales)
"""Guarde en `acumulado` una lista con el siguiente patrón:
['1','1 2','1 2 3','1 2 3 4','1 2 3 4 5',...,'...47 48 4... | 18.243386 | 501 | 0.632251 | 589 | 3,448 | 3.706282 | 0.47708 | 0.021988 | 0.020156 | 0.007329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205449 | 0.212297 | 3,448 | 188 | 502 | 18.340426 | 0.596834 | 0.044374 | 0 | 0.2 | 0 | 0 | 0.000915 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
408409d2eb8e64f782192cf8b37a20ed5fa18f68 | 1,321 | py | Python | src/ggrc_basic_permissions/roles/ProgramOwner.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2016-11-06T05:21:24.000Z | 2016-11-06T05:21:24.000Z | src/ggrc_basic_permissions/roles/ProgramOwner.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-02-02T23:09:40.000Z | 2021-02-08T21:00:48.000Z | src/ggrc_basic_permissions/roles/ProgramOwner.py | sbilly/ggrc-core | 59a6825c6a8e15e42ebdb9e08d079cefd1800120 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
scope = "Private Program"
description = """
User with authorization to peform administrative tasks such as associating
users to roles within the scope of of a program.<br/><br/>When a person
creates a ... | 25.901961 | 78 | 0.589705 | 126 | 1,321 | 6.126984 | 0.650794 | 0.134715 | 0.176166 | 0.182642 | 0.260363 | 0.260363 | 0 | 0 | 0 | 0 | 0 | 0.006479 | 0.299016 | 1,321 | 50 | 79 | 26.42 | 0.827214 | 0.080999 | 0 | 0.553191 | 0 | 0 | 0.630884 | 0.018167 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4088a429d0d0f4e9ab5c415b649b89d6f4176412 | 980 | py | Python | scripts/rqfilter.py | amywieliczka/harvester | ed21e0167ac5e6e6002fa7c89aa78cc1e93e29d8 | [
"BSD-3-Clause"
] | 5 | 2015-01-14T20:48:28.000Z | 2015-05-13T15:31:12.000Z | scripts/rqfilter.py | amywieliczka/harvester | ed21e0167ac5e6e6002fa7c89aa78cc1e93e29d8 | [
"BSD-3-Clause"
] | 87 | 2015-01-09T00:17:44.000Z | 2021-12-13T19:37:44.000Z | scripts/rqfilter.py | amywieliczka/harvester | ed21e0167ac5e6e6002fa7c89aa78cc1e93e29d8 | [
"BSD-3-Clause"
] | 4 | 2015-02-26T23:27:44.000Z | 2019-06-11T21:43:17.000Z | import sys, os
from redis import Redis
from rq import Connection, Queue, Worker
from rq.queue import FailedQueue
REDIS_PASSWORD = os.environ.get('REDIS_PASSWORD', None)
REDIS_HOST = os.environ.get('REDIS_HOST', 'localhost' )
redis_conn = Redis(host=REDIS_HOST, password=REDIS_PASSWORD)
qfailed = FailedQueue(connection=... | 30.625 | 67 | 0.67449 | 131 | 980 | 4.916031 | 0.40458 | 0.055901 | 0.088509 | 0.052795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008838 | 0.191837 | 980 | 31 | 68 | 31.612903 | 0.804293 | 0.206122 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.095238 | 0.190476 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4096579bb984fec2b9cd024136ab8fd9f4ee8e73 | 7,284 | py | Python | Battleship/Submissions/team1 - Puram Sushanth.py | MU-Enigma/BattleShip-BattleGround | 282f1343255812be3233c038c919d18c8aa5c492 | [
"MIT"
] | null | null | null | Battleship/Submissions/team1 - Puram Sushanth.py | MU-Enigma/BattleShip-BattleGround | 282f1343255812be3233c038c919d18c8aa5c492 | [
"MIT"
] | 3 | 2022-01-17T13:07:35.000Z | 2022-03-02T22:58:55.000Z | Battleship/Submissions/team1 - Puram Sushanth.py | MU-Enigma/BattleShip-BattleGround | 282f1343255812be3233c038c919d18c8aa5c492 | [
"MIT"
] | 28 | 2022-01-17T07:32:18.000Z | 2022-03-29T14:12:51.000Z | import random
class BattleShip:
def __init__(self):
self.team_name = "CRIP"
self.ships = ships
self.opponent_board = opponent_board
self.info = -1
def set_ships(self):
return self.ships
global a #for traversing the attack_pos array
a = -1
global temp #fo... | 38.336842 | 144 | 0.388935 | 1,044 | 7,284 | 2.654215 | 0.077586 | 0.144352 | 0.212198 | 0.280043 | 0.666185 | 0.644533 | 0.638398 | 0.599423 | 0.591483 | 0.578131 | 0 | 0.124699 | 0.430807 | 7,284 | 189 | 145 | 38.539683 | 0.543657 | 0.052718 | 0 | 0.516854 | 0 | 0 | 0.000581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.005618 | 0.005618 | 0.123596 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4096a65d43ea977fc060d48d9c7350ee7e575080 | 2,709 | py | Python | exceptions.py | diraol/kytos-topology | 3606c7baa557e40d51b562f11e1698c0059d0ed1 | [
"MIT"
] | null | null | null | exceptions.py | diraol/kytos-topology | 3606c7baa557e40d51b562f11e1698c0059d0ed1 | [
"MIT"
] | 3 | 2017-10-04T20:12:27.000Z | 2017-10-10T19:58:06.000Z | exceptions.py | diraol/kytos-topology | 3606c7baa557e40d51b562f11e1698c0059d0ed1 | [
"MIT"
] | null | null | null | """Exceptions raised by this NApp."""
class DeviceException(Exception):
"""Device related exception."""
def __init__(self, message, device=None):
"""Take the parameter to inform the user about the error.
Args:
device (str, :class:`Device`): The device that was looked for.
... | 26.821782 | 78 | 0.63935 | 312 | 2,709 | 5.320513 | 0.214744 | 0.043373 | 0.03012 | 0.043373 | 0.60241 | 0.537952 | 0.454819 | 0.393373 | 0.306627 | 0.183133 | 0 | 0 | 0.248062 | 2,709 | 100 | 79 | 27.09 | 0.814924 | 0.387597 | 0 | 0.314286 | 0 | 0 | 0.130523 | 0.014276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0.028571 | 0 | 0.085714 | 0.685714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
40984960826df65a1eca416141eb5c3e77f5f2a3 | 570 | py | Python | Dynamo/Python snippets/NumbersAlmostEqual.py | nodatasheet/Revit | 0bc84862fdc12b55ae7b4630a4853c326674c7e1 | [
"MIT"
] | null | null | null | Dynamo/Python snippets/NumbersAlmostEqual.py | nodatasheet/Revit | 0bc84862fdc12b55ae7b4630a4853c326674c7e1 | [
"MIT"
] | null | null | null | Dynamo/Python snippets/NumbersAlmostEqual.py | nodatasheet/Revit | 0bc84862fdc12b55ae7b4630a4853c326674c7e1 | [
"MIT"
] | null | null | null | """A function for testing approximate equality of two numbers.
Same as math.isclose in Python v3.5 (and newer)
https://www.python.org/dev/peps/pep-0485
"""
def almost_equal(a, b, rel_tol=1e-09, abs_tol=0.0):
"""A function for testing approximate equality of two numbers.
Same as math.isclose in Python v3.5 (an... | 30 | 66 | 0.682456 | 105 | 570 | 3.628571 | 0.428571 | 0.115486 | 0.094488 | 0.099738 | 0.713911 | 0.713911 | 0.614173 | 0.614173 | 0.614173 | 0.614173 | 0 | 0.081761 | 0.163158 | 570 | 18 | 67 | 31.666667 | 0.716981 | 0.568421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40ab9c7b543541742f63f6e06b57ec38d622b71c | 831 | py | Python | module.py | rlowrance/mlpack | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | [
"MIT"
] | 1 | 2015-07-11T18:19:36.000Z | 2015-07-11T18:19:36.000Z | module.py | rlowrance/mlpack | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | [
"MIT"
] | null | null | null | module.py | rlowrance/mlpack | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | [
"MIT"
] | null | null | null | '''modules
SUMMARY OF APIs
l2():
output(theta) --> number
gradient(theta) --> vector
linear():
output(theta, x) --> scores
gradient(x) --> vector
linear_n(num_inputs, num_outputs):
output(theta, x) --> scores
gradient(x) --> vector
negative_likelihood():
output(probs, y) --> ... | 23.742857 | 60 | 0.672684 | 100 | 831 | 5.45 | 0.41 | 0.051376 | 0.044037 | 0.066055 | 0.121101 | 0.121101 | 0.121101 | 0 | 0 | 0 | 0 | 0.00152 | 0.208183 | 831 | 34 | 61 | 24.441176 | 0.826748 | 0.690734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
40d9090e76977c1e01b22329b6609ea270f7b203 | 2,068 | py | Python | module3-nosql-and-document-oriented-databases/queries.py | mktran0417/DS-Unit-3-Sprint-2-SQL-and-Databases | 480440ae35c5ddfb5ab4f8f4b541cf0ff966b49c | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/queries.py | mktran0417/DS-Unit-3-Sprint-2-SQL-and-Databases | 480440ae35c5ddfb5ab4f8f4b541cf0ff966b49c | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/queries.py | mktran0417/DS-Unit-3-Sprint-2-SQL-and-Databases | 480440ae35c5ddfb5ab4f8f4b541cf0ff966b49c | [
"MIT"
] | null | null | null | TOTAL_CHARACTERS = 'SELECT COUNT(character_id) FROM charactercreator_character;'
TOTAL_SUBCLASS = '''
SELECT COUNT(*) FROM (SELECT *
FROM charactercreator_character cc_c
INNER JOIN charactercreator_necromancer cc_n
ON cc_c.character_id = cc... | 44.956522 | 123 | 0.544004 | 210 | 2,068 | 4.97619 | 0.185714 | 0.049761 | 0.194258 | 0.137799 | 0.545455 | 0.470813 | 0.470813 | 0.43445 | 0.323445 | 0.323445 | 0 | 0.002385 | 0.391683 | 2,068 | 45 | 124 | 45.955556 | 0.828299 | 0 | 0 | 0.27907 | 0 | 0 | 0.84913 | 0.158607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40eafb54b3d84a3676809bc3a22c71dbafd58528 | 262 | py | Python | ramda/groupBy.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 1 | 2022-03-14T07:35:13.000Z | 2022-03-14T07:35:13.000Z | ramda/groupBy.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | 3 | 2022-03-24T02:30:18.000Z | 2022-03-31T07:46:04.000Z | ramda/groupBy.py | zydmayday/pamda | 6740d0294f3bedbeeef3bbc3042a43dceb3239b2 | [
"MIT"
] | null | null | null | from .private._checkForMethod import _checkForMethod
from .private._curry2 import _curry2
from .reduceBy import reduceBy
def inner_groupBy(acc, item):
acc.append(item)
return acc
groupBy = _curry2(_checkForMethod('groupBy', reduceBy(inner_groupBy, [])))
| 21.833333 | 74 | 0.78626 | 31 | 262 | 6.387097 | 0.419355 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.118321 | 262 | 11 | 75 | 23.818182 | 0.844156 | 0 | 0 | 0 | 0 | 0 | 0.026718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
40f0ebb56bed1eefd47b19bed8a47c13fa4b6b43 | 11,752 | py | Python | pysnmp-with-texts/FMS100-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/FMS100-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/FMS100-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module FMS100-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FMS100-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:14:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:... | 143.317073 | 1,095 | 0.780037 | 1,494 | 11,752 | 6.127845 | 0.199465 | 0.047187 | 0.082578 | 0.013545 | 0.497542 | 0.375533 | 0.334681 | 0.318733 | 0.316439 | 0.261169 | 0 | 0.082605 | 0.103812 | 11,752 | 81 | 1,096 | 145.08642 | 0.78665 | 0.026719 | 0 | 0 | 0 | 0.108108 | 0.369674 | 0.01225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40f12a2c64a5b0cf5a6c89c6f9261fd96babf661 | 1,663 | py | Python | conanfile.py | squidfarts/d-executable | 29b7fff27671487e9544308d5e75b8a688d6909b | [
"Apache-2.0"
] | null | null | null | conanfile.py | squidfarts/d-executable | 29b7fff27671487e9544308d5e75b8a688d6909b | [
"Apache-2.0"
] | null | null | null | conanfile.py | squidfarts/d-executable | 29b7fff27671487e9544308d5e75b8a688d6909b | [
"Apache-2.0"
] | null | null | null | #!/user/bin/env python3
###################################################################################
# #
# NAME: conanfile.py #
# ... | 46.194444 | 83 | 0.29525 | 98 | 1,663 | 4.969388 | 0.683673 | 0.008214 | 0.041068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01039 | 0.536981 | 1,663 | 35 | 84 | 47.514286 | 0.622078 | 0.576669 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
40f54ea20773d535ac4efe3d243648cf72fbd0b7 | 581 | py | Python | tests/test_winding_diagram.py | sasrigais/femagtools | 257c75eb2dfbce6d8b033006c7f5ccd7b994da06 | [
"BSD-2-Clause"
] | null | null | null | tests/test_winding_diagram.py | sasrigais/femagtools | 257c75eb2dfbce6d8b033006c7f5ccd7b994da06 | [
"BSD-2-Clause"
] | null | null | null | tests/test_winding_diagram.py | sasrigais/femagtools | 257c75eb2dfbce6d8b033006c7f5ccd7b994da06 | [
"BSD-2-Clause"
] | 1 | 2021-07-14T16:55:15.000Z | 2021-07-14T16:55:15.000Z |
from femagtools import winding_diagram
def test_winding_diagram():
data = winding_diagram._winding_data(12, 2, 3)
assert data == [1, -2, 3, -1, 2, -3, 1, -2, 3, -1, 2, -3]
data = winding_diagram._winding_data(36, 2, 3)
assert data == [1, 1, 1, -2, -2, -2, 3, 3, 3, -1, -1, -1, 2, 2, 2, -3, -3, -3, 1... | 36.3125 | 145 | 0.481928 | 123 | 581 | 2.178862 | 0.113821 | 0.119403 | 0.11194 | 0.149254 | 0.783582 | 0.544776 | 0.544776 | 0.313433 | 0.313433 | 0.268657 | 0 | 0.220183 | 0.24957 | 581 | 15 | 146 | 38.733333 | 0.394495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40fab5beaed8277b1f7e2da32bb7fc390ffe1b4f | 812 | py | Python | CODES/44. EXERCISE Arithmetic Sequence/arithmeticsequence.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | 4 | 2019-05-04T00:33:25.000Z | 2021-05-29T20:37:59.000Z | CODES/44. EXERCISE Arithmetic Sequence/arithmeticsequence.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | null | null | null | CODES/44. EXERCISE Arithmetic Sequence/arithmeticsequence.py | eltechno/python_course | f74abac7df3f9f41864afd06479389260c29ea3a | [
"MIT"
] | 3 | 2020-05-05T13:14:28.000Z | 2022-02-03T16:18:37.000Z | """
Write program, that will count the sum of all numbers from 1 to
number that was entered by user.
1,2,3,4,5,... 100
(1 + 100) / 2 * 100
For 5:
1+2+3+4+5
the result is gonna be:
15
(1 + 5) / 2 * 5 = 15
range(1, 6)
1,2,3,4,5
"""
def sum_up_to(end):
sum = 0 # 15
for number in rang... | 18.044444 | 64 | 0.602217 | 157 | 812 | 2.987261 | 0.273885 | 0.10661 | 0.085288 | 0.136461 | 0.377399 | 0.345416 | 0.345416 | 0.30064 | 0.30064 | 0.30064 | 0 | 0.13245 | 0.256158 | 812 | 44 | 65 | 18.454545 | 0.64404 | 0.296798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.222222 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.