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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de702762f6e59611d55735d3012d8379c714033e | 342 | py | Python | __init__.py | arnamoy10/tsaro-elevator-skill | 7612e06c4b42c937ad2636a7d1e0e641024a1d03 | [
"Apache-2.0"
] | null | null | null | __init__.py | arnamoy10/tsaro-elevator-skill | 7612e06c4b42c937ad2636a7d1e0e641024a1d03 | [
"Apache-2.0"
] | null | null | null | __init__.py | arnamoy10/tsaro-elevator-skill | 7612e06c4b42c937ad2636a7d1e0e641024a1d03 | [
"Apache-2.0"
] | null | null | null | from mycroft import MycroftSkill, intent_file_handler
class TsaroElevator(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('elevator.tsaro.intent')
def handle_elevator_tsaro(self, message):
self.speak_dialog('elevator.tsaro')
def create_skill():
re... | 21.375 | 53 | 0.739766 | 38 | 342 | 6.236842 | 0.552632 | 0.164557 | 0.14346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 342 | 15 | 54 | 22.8 | 0.831579 | 0 | 0 | 0 | 0 | 0 | 0.102639 | 0.061584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
de813d8fee74efa5ae139f1817c134a3925142e8 | 373 | py | Python | solutions/python3/469.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/469.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/469.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def isConvex(self, points):
def direction(a, b, c): return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0])
d, n = 0, len(points)
for i in range(n):
a = direction(points[i], points[(i + 1) % n], points[(i + 2) % n])
if not d: d = a
... | 41.444444 | 100 | 0.44504 | 63 | 373 | 2.634921 | 0.412698 | 0.126506 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050209 | 0.359249 | 373 | 9 | 101 | 41.444444 | 0.644351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
deb870d8023d497a27b822e43c3e6316d00407f4 | 808 | py | Python | utils.py | vchong/ibart | 61a1e35bb1f8b0542d193a40c3439784e3aa96de | [
"MIT"
] | 3 | 2018-09-18T18:35:30.000Z | 2019-10-20T11:04:16.000Z | utils.py | vchong/ibart | 61a1e35bb1f8b0542d193a40c3439784e3aa96de | [
"MIT"
] | 11 | 2018-08-06T07:00:01.000Z | 2021-12-20T08:54:31.000Z | utils.py | vchong/ibart | 61a1e35bb1f8b0542d193a40c3439784e3aa96de | [
"MIT"
] | 2 | 2018-09-19T17:45:41.000Z | 2019-09-19T07:54:08.000Z | # -*- coding: utf-8 -*-
import logging as log
import signal
import sys
import time
###############################################################################
# Sigint
###############################################################################
def signal_handler(signal, frame):
log.debug("Gracefully kill... | 27.862069 | 79 | 0.394802 | 77 | 808 | 4.064935 | 0.480519 | 0.076677 | 0.083067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.108911 | 808 | 28 | 80 | 28.857143 | 0.420833 | 0.126238 | 0 | 0 | 0 | 0 | 0.096859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dec32b300721b3d294a764aa0e27bccf6d77c568 | 108 | py | Python | mmcq/constant.py | sekimura/mmcq.py | 00b1ba0ee421d73c13572e8e7d5143f60bd20001 | [
"MIT"
] | 1 | 2015-11-06T17:54:42.000Z | 2015-11-06T17:54:42.000Z | mmcq/constant.py | sekimura/mmcq.py | 00b1ba0ee421d73c13572e8e7d5143f60bd20001 | [
"MIT"
] | null | null | null | mmcq/constant.py | sekimura/mmcq.py | 00b1ba0ee421d73c13572e8e7d5143f60bd20001 | [
"MIT"
] | null | null | null | #! -*- coding: utf-8 -*-
SIGBITS = 5
RSHIFT = 8 - SIGBITS
MAX_ITERATION = 1000
FRACT_BY_POPULATIONS = 0.75
| 15.428571 | 27 | 0.666667 | 16 | 108 | 4.3125 | 0.875 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 0.185185 | 108 | 6 | 28 | 18 | 0.670455 | 0.212963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
dec897608ddddaff12fb162b63907e54813c8210 | 1,661 | py | Python | automates/apps/automates/translation_driver.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 17 | 2018-12-19T16:32:38.000Z | 2021-10-05T07:58:15.000Z | automates/apps/automates/translation_driver.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 183 | 2018-12-20T17:03:01.000Z | 2022-02-23T22:21:42.000Z | automates/apps/automates/translation_driver.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 5 | 2019-01-04T22:37:49.000Z | 2022-01-19T17:34:16.000Z | import base64
import json
from automates.program_analysis.GCC2GrFN.gcc_plugin_driver import run_gcc_plugin
from automates.program_analysis.GCC2GrFN.gcc_ast_to_cast import GCC2CAST
# Util functions
def write_out_files(files):
for f in files:
file_name = f["file_name"]
file_str = base64.b64decode(f[... | 31.942308 | 94 | 0.738712 | 258 | 1,661 | 4.457364 | 0.344961 | 0.036522 | 0.057391 | 0.048696 | 0.17913 | 0.133913 | 0.066087 | 0.066087 | 0.066087 | 0 | 0 | 0.010256 | 0.178206 | 1,661 | 52 | 95 | 31.942308 | 0.832234 | 0.178808 | 0 | 0 | 0 | 0 | 0.084808 | 0.033186 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.225806 | false | 0.032258 | 0.129032 | 0.096774 | 0.516129 | 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 | 1 | 0 | 0 | 3 |
ded198a1f1cbc256d79e12feb4c2a65d00b33023 | 1,092 | py | Python | yournamehere/model/base.py | ppasupat/plastic-case | 5cd51a86d44d98a046663b4573455c293222a8d1 | [
"Unlicense"
] | null | null | null | yournamehere/model/base.py | ppasupat/plastic-case | 5cd51a86d44d98a046663b4573455c293222a8d1 | [
"Unlicense"
] | null | null | null | yournamehere/model/base.py | ppasupat/plastic-case | 5cd51a86d44d98a046663b4573455c293222a8d1 | [
"Unlicense"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
import torch
import torch.nn as nn
class Model(nn.Module):
def __init__(self, config, meta):
super(Model, self).__init__()
def initialize(self, config, meta):
"""
Initialize GloVe or whatever.
"""
pass... | 24.266667 | 68 | 0.568681 | 120 | 1,092 | 5.025 | 0.541667 | 0.119403 | 0.046434 | 0.099502 | 0.225539 | 0.225539 | 0.225539 | 0.225539 | 0.225539 | 0.225539 | 0 | 0 | 0.350733 | 1,092 | 44 | 69 | 24.818182 | 0.850494 | 0.378205 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.071429 | 0.214286 | 0 | 0.642857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
7220ea4c8871f1c91ec000e61b16865b176ecba1 | 121 | py | Python | server-python3/websocket_terminal.py | Aaron-Ming/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 40 | 2016-11-20T09:48:27.000Z | 2021-04-02T00:29:14.000Z | server-python3/websocket_terminal.py | Aaron-Ming/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 6 | 2018-01-07T03:43:22.000Z | 2022-03-21T08:43:33.000Z | server-python3/websocket_terminal.py | glensc/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 20 | 2016-12-02T06:00:27.000Z | 2021-08-15T11:40:34.000Z | def main():
import logs
logs.setup()
import server
server.main()
if __name__ == '__main__':
main()
| 12.1 | 26 | 0.578512 | 14 | 121 | 4.428571 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289256 | 121 | 9 | 27 | 13.444444 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72255d062bc00bb75b9d7161d17bbc14951dfb67 | 3,388 | py | Python | ds21grl/dim_erai.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | 1 | 2021-04-08T18:13:47.000Z | 2021-04-08T18:13:47.000Z | ds21grl/dim_erai.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | null | null | null | ds21grl/dim_erai.py | edunnsigouin/ds21grl | b6544cbc97529943da86e48a437ce68dc00e0f82 | [
"MIT"
] | 1 | 2021-06-10T14:48:04.000Z | 2021-06-10T14:48:04.000Z | # list of useful hardcoded constants, coordinate grids and times for ERA interim
import numpy as np
years = np.arange(1979,2018,1)
months = np.arange(1,13,1)
wavenumber = np.arange(0,41,1)
nday = 365
timestamp = str(years[0]) + '-' + str(years[-1])
lat = np.arange(90,-92.5,-2.5)
lon = np... | 63.924528 | 100 | 0.726387 | 561 | 3,388 | 4.386809 | 0.456328 | 0.159285 | 0.164567 | 0.190167 | 0.159691 | 0.159691 | 0.159691 | 0.159691 | 0.159691 | 0.159691 | 0 | 0.707947 | 0.108619 | 3,388 | 52 | 101 | 65.153846 | 0.106954 | 0.023022 | 0 | 0.116279 | 0 | 0 | 0.000302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.023256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 3 |
7238c827709306269864eb6b5274bbd42a9e9d07 | 6,475 | py | Python | Random thinggy.py | Im2Slothy/VactionChooser | 4ab2bceb4a6adc5a499b3bc28f611742f81455ab | [
"Apache-2.0"
] | null | null | null | Random thinggy.py | Im2Slothy/VactionChooser | 4ab2bceb4a6adc5a499b3bc28f611742f81455ab | [
"Apache-2.0"
] | null | null | null | Random thinggy.py | Im2Slothy/VactionChooser | 4ab2bceb4a6adc5a499b3bc28f611742f81455ab | [
"Apache-2.0"
] | null | null | null | import random
# Location Variables #
Location1 = "South Island, New Zealand! New Zealand's South Island brims with majestic landscapes at every turn, from dramatic mountains to fjords to glaciers. Here, you can admire the mountains of Fiordland National Park, a UNESCO World Heritage Site, from hiking trails or a ... | 129.5 | 607 | 0.780232 | 1,062 | 6,475 | 4.762712 | 0.464218 | 0.015817 | 0.007908 | 0.004745 | 0.176354 | 0.176354 | 0.176354 | 0.176354 | 0.176354 | 0.176354 | 0 | 0.007527 | 0.179305 | 6,475 | 49 | 608 | 132.142857 | 0.943169 | 0.010965 | 0 | 0 | 0 | 0.314286 | 0.895226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7250b3115b96049ac9ff6ec5b16af9d024746d98 | 353 | py | Python | tests/pytel/test_version.py | mattesilver/pytel | 5fa4921d0548e02b92e7f0c233ffe3c8d925415b | [
"Apache-2.0"
] | null | null | null | tests/pytel/test_version.py | mattesilver/pytel | 5fa4921d0548e02b92e7f0c233ffe3c8d925415b | [
"Apache-2.0"
] | 3 | 2019-07-21T11:20:44.000Z | 2020-04-14T17:27:21.000Z | tests/pytel/test_version.py | mattesilver/pytel | 5fa4921d0548e02b92e7f0c233ffe3c8d925415b | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from unittest import TestCase
import toml
from pytel import __version__
def get_project_version():
return toml.load(Path(__file__).parent / '../../pyproject.toml')['tool']['poetry']['version']
class ModuleTest(TestCase):
def test_version_matches(self):
self.assertEqual(get... | 22.0625 | 97 | 0.74221 | 43 | 353 | 5.674419 | 0.581395 | 0.081967 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135977 | 353 | 15 | 98 | 23.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.104816 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.444444 | 0.111111 | 0.888889 | 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 | 1 | 1 | 0 | 0 | 0 | 3 |
a0d17e864b03c4277e0ba188880151fa1612fdba | 162 | py | Python | demo/tabbed/models.py | farmlab/django-admintab | 4e3ba74808e443fa185427d84bd59e79ff5ca765 | [
"MIT"
] | 2 | 2019-03-06T17:38:08.000Z | 2020-04-15T20:19:47.000Z | demo/tabbed/models.py | tboulogne/django-admintab | 975ddc1205f5f3bcdba4610e0b463cf4f02585ca | [
"MIT"
] | null | null | null | demo/tabbed/models.py | tboulogne/django-admintab | 975ddc1205f5f3bcdba4610e0b463cf4f02585ca | [
"MIT"
] | 1 | 2020-04-06T21:29:00.000Z | 2020-04-06T21:29:00.000Z | from django.db import models
# Create your models here.
#
class Dummy(models.Model):
name = models.CharField(max_length=25)
number = models.FloatField()
| 20.25 | 42 | 0.728395 | 22 | 162 | 5.318182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.166667 | 162 | 7 | 43 | 23.142857 | 0.851852 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
a0e88e9af25fb43f0da4d87f3165040ea12e67eb | 20,031 | py | Python | runtime/test_lib.py | lnsp/tea | 95362b2a79fb6e17f6aefc1e160a30f6cf9fbdbc | [
"MIT"
] | 2 | 2016-04-16T20:42:57.000Z | 2016-09-13T08:16:54.000Z | runtime/test_lib.py | tealang/tea-python | 95362b2a79fb6e17f6aefc1e160a30f6cf9fbdbc | [
"MIT"
] | 11 | 2016-03-26T00:09:21.000Z | 2016-11-25T13:41:54.000Z | runtime/test_lib.py | lnsp/tea | 95362b2a79fb6e17f6aefc1e160a30f6cf9fbdbc | [
"MIT"
] | null | null | null | """The unit test for the runtime.lib module."""
import unittest
from runtime import env, lib
INT_VALUE = env.Value(lib.INTEGER, 1)
INT2_VALUE = env.Value(lib.INTEGER, 2)
INT0_VALUE = env.Value(lib.INTEGER, 0)
INTM_VALUE = env.Value(lib.INTEGER, -1)
FLOAT_VALUE = env.Value(lib.FLOAT, 1.0)
FLOAT2_VALUE = env.Value(lib.... | 38.154286 | 79 | 0.639559 | 2,710 | 20,031 | 4.530258 | 0.039852 | 0.079906 | 0.158019 | 0.134316 | 0.835709 | 0.770709 | 0.716054 | 0.688686 | 0.62108 | 0.595341 | 0 | 0.017798 | 0.248265 | 20,031 | 524 | 80 | 38.227099 | 0.797516 | 0.171634 | 0 | 0.559871 | 0 | 0 | 0.002684 | 0 | 0 | 0 | 0 | 0 | 0.391586 | 1 | 0.084142 | false | 0 | 0.006472 | 0 | 0.093851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d1a7480847f8c946bf74d457f06308df8da4692 | 460 | py | Python | helusers/tests/test_settings.py | klemmari1/django-helusers | a1446fb8a611b8854ab69aa723b53aab25915dde | [
"BSD-2-Clause"
] | 2 | 2019-02-15T18:06:39.000Z | 2021-07-29T18:56:23.000Z | helusers/tests/test_settings.py | klemmari1/django-helusers | a1446fb8a611b8854ab69aa723b53aab25915dde | [
"BSD-2-Clause"
] | 26 | 2017-06-28T11:33:35.000Z | 2022-01-05T14:00:37.000Z | helusers/tests/test_settings.py | klemmari1/django-helusers | a1446fb8a611b8854ab69aa723b53aab25915dde | [
"BSD-2-Clause"
] | 12 | 2015-11-11T15:40:31.000Z | 2021-06-02T09:18:25.000Z | from helusers.oidc import resolve_user
from helusers.settings import api_token_auth_settings
def test_defaults_exist_for_settings():
assert api_token_auth_settings.AUTH_SCHEME == "Bearer"
def test_user_settings_overwrite_defaults():
assert api_token_auth_settings.AUDIENCE == "test_audience"
def test_USER_... | 28.75 | 62 | 0.834783 | 64 | 460 | 5.46875 | 0.40625 | 0.091429 | 0.137143 | 0.228571 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11087 | 460 | 15 | 63 | 30.666667 | 0.855746 | 0 | 0 | 0 | 0 | 0 | 0.041304 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9d1aee6007b07abf54337d806b307f4e47795b03 | 300 | py | Python | python__fundamentals/basic_syntax_conditional_statements_and_loops_lab/01.biggest_of_three.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | 1 | 2020-07-14T12:32:47.000Z | 2020-07-14T12:32:47.000Z | python__fundamentals/basic_syntax_conditional_statements_and_loops_lab/01.biggest_of_three.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | python__fundamentals/basic_syntax_conditional_statements_and_loops_lab/01.biggest_of_three.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | fyrst_number = int(input())
second_number = int(input())
third_number = int(input())
if fyrst_number > second_number and fyrst_number > third_number:
print(fyrst_number)
elif second_number > fyrst_number and second_number > third_number:
print(second_number)
else:
print(third_number)
| 23.076923 | 67 | 0.76 | 42 | 300 | 5.095238 | 0.261905 | 0.257009 | 0.196262 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 300 | 12 | 68 | 25 | 0.835938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 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 | 3 |
9d2a03e7783256f0a320d619cf879022a545c197 | 130 | py | Python | ex010 (2).py | gabrielsailvasantos/exercicios-python-CemV | 19dae7472113a7b9f603467c59dc8279dad8f7ad | [
"MIT"
] | null | null | null | ex010 (2).py | gabrielsailvasantos/exercicios-python-CemV | 19dae7472113a7b9f603467c59dc8279dad8f7ad | [
"MIT"
] | null | null | null | ex010 (2).py | gabrielsailvasantos/exercicios-python-CemV | 19dae7472113a7b9f603467c59dc8279dad8f7ad | [
"MIT"
] | null | null | null | din = float(input('Quanto de dinheiro na carteira: '))
print('Voce tem {:.2f} em reais e {:.2f} em dólar'.format(din, din / 3.27)) | 65 | 75 | 0.653846 | 23 | 130 | 3.695652 | 0.826087 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0.146154 | 130 | 2 | 75 | 65 | 0.720721 | 0 | 0 | 0 | 0 | 0 | 0.564886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
19b4f2e658c1c1590f9a7bea40a3badf66de3668 | 170 | py | Python | A07/main_frame.py | wondering516/Python-repo | e75945cc166e21a68198f6c1f4da4a141e473f36 | [
"Apache-2.0"
] | null | null | null | A07/main_frame.py | wondering516/Python-repo | e75945cc166e21a68198f6c1f4da4a141e473f36 | [
"Apache-2.0"
] | 1 | 2019-02-15T14:51:42.000Z | 2019-02-15T14:51:42.000Z | A07/main_frame.py | wondering516/Python-repo | e75945cc166e21a68198f6c1f4da4a141e473f36 | [
"Apache-2.0"
] | null | null | null | '''
主页面
爬取按钮
搜索按钮
'''
import tkinter
class MainFrame(tkinter.Frame):
def __init__(self, master=None):
super().__init__(master=master,bg='blue')
| 11.333333 | 49 | 0.623529 | 20 | 170 | 4.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229412 | 170 | 14 | 50 | 12.142857 | 0.748092 | 0.123529 | 0 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
19e0e570022eafb62aab86aa603ce9ed0e14b23c | 1,033 | py | Python | tests/jenkins/conftest.py | around-media/jam | 9778c57594aa88992e51c7099f1afed0718574c0 | [
"MIT"
] | null | null | null | tests/jenkins/conftest.py | around-media/jam | 9778c57594aa88992e51c7099f1afed0718574c0 | [
"MIT"
] | 94 | 2018-04-02T15:29:16.000Z | 2022-03-28T18:46:24.000Z | tests/jenkins/conftest.py | around-media/jam | 9778c57594aa88992e51c7099f1afed0718574c0 | [
"MIT"
] | 2 | 2019-03-25T08:59:24.000Z | 2019-03-27T10:11:18.000Z | import pytest
import jam.libs.jenkins
import tests.helpers.helpers_jenkins
class ApiCallTestImplementation(jam.libs.jenkins.ApiCallMixin):
def __init__(self, base_url, auth, crumb_url):
self.api_settings = self.ApiCallSettings(base_url=base_url, auth=auth, crumb_url=crumb_url)
__call__ = jam.libs.je... | 24.595238 | 101 | 0.771539 | 150 | 1,033 | 5.04 | 0.226667 | 0.111111 | 0.087302 | 0.103175 | 0.376984 | 0.298942 | 0.201058 | 0.100529 | 0.100529 | 0.100529 | 0 | 0.003286 | 0.116167 | 1,033 | 41 | 102 | 25.195122 | 0.824754 | 0 | 0 | 0.24 | 0 | 0 | 0.013553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0.12 | 0.24 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
19e89f93dc55f9233bacc8e57ae65f8a4b430f3b | 1,007 | py | Python | pylava/lint/extensions.py | exKAZUu/pylava | 1a42d0522fc2bb04f2849ac5544e9b1da8f7e298 | [
"MIT"
] | 76 | 2018-08-17T11:08:09.000Z | 2018-10-01T16:36:50.000Z | pylava/lint/extensions.py | exKAZUu/pylava | 1a42d0522fc2bb04f2849ac5544e9b1da8f7e298 | [
"MIT"
] | 5 | 2018-08-16T06:01:52.000Z | 2018-10-13T21:12:44.000Z | pylava/lint/extensions.py | exKAZUu/pylava | 1a42d0522fc2bb04f2849ac5544e9b1da8f7e298 | [
"MIT"
] | 7 | 2018-12-05T05:17:53.000Z | 2021-09-27T09:05:06.000Z | """Load extensions."""
LINTERS = {}
try:
from pylava.lint.pylava_mccabe import Linter
LINTERS['mccabe'] = Linter()
except ImportError:
pass
try:
from pylava.lint.pylava_pydocstyle import Linter
LINTERS['pep257'] = Linter() # for compatibility
LINTERS['pydocstyle'] = Linter()
except ImportErr... | 20.979167 | 53 | 0.680238 | 116 | 1,007 | 5.818966 | 0.284483 | 0.151111 | 0.186667 | 0.125926 | 0.33037 | 0.296296 | 0.296296 | 0.296296 | 0.296296 | 0 | 0 | 0.010152 | 0.217478 | 1,007 | 47 | 54 | 21.425532 | 0.846447 | 0.0715 | 0 | 0.514286 | 0 | 0 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.171429 | 0.342857 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
19ecc76fe435519b4c3484ec1cf271408e0a23af | 85 | py | Python | src/Paterns/run.py | seyedalirahimi/tehran-stocks | e22950f0534ad4962c9a2f00560675a1d8c8d94d | [
"MIT"
] | null | null | null | src/Paterns/run.py | seyedalirahimi/tehran-stocks | e22950f0534ad4962c9a2f00560675a1d8c8d94d | [
"MIT"
] | null | null | null | src/Paterns/run.py | seyedalirahimi/tehran-stocks | e22950f0534ad4962c9a2f00560675a1d8c8d94d | [
"MIT"
] | null | null | null | from ta.momentum import rsi
if __name__ == "__main__":
_rsi14 = rsi(Closes, 14)
| 17 | 28 | 0.682353 | 12 | 85 | 4.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.2 | 85 | 4 | 29 | 21.25 | 0.661765 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
c2137cd0dc46f85dd6ce4538fc5e4cb585600519 | 127 | py | Python | class5-notebook/2-importing-libs.py | cce-bigdataintro-1160/spring2019 | e55b24bda61bbc87ad39dfec93c68a8f2da77831 | [
"MIT"
] | 1 | 2019-05-04T04:12:17.000Z | 2019-05-04T04:12:17.000Z | class5-notebook/2-importing-libs.py | cce-bigdataintro-1160/spring2019 | e55b24bda61bbc87ad39dfec93c68a8f2da77831 | [
"MIT"
] | null | null | null | class5-notebook/2-importing-libs.py | cce-bigdataintro-1160/spring2019 | e55b24bda61bbc87ad39dfec93c68a8f2da77831 | [
"MIT"
] | 1 | 2020-03-11T02:13:25.000Z | 2020-03-11T02:13:25.000Z | #!/usr/bin/env python3
import argparse
import sys
import os
import time
import random
print(random.randint(0, 50))
dir(time) | 11.545455 | 28 | 0.76378 | 21 | 127 | 4.619048 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.133858 | 127 | 11 | 29 | 11.545455 | 0.845455 | 0.165354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c24299533d67e90859d63d01f2ed80cfead4bad0 | 236 | py | Python | projectname/templates/test.py | datakirsten/InsightProject | c6f4e35d3b341e6d670f27075dfba550e98edc46 | [
"CC0-1.0"
] | null | null | null | projectname/templates/test.py | datakirsten/InsightProject | c6f4e35d3b341e6d670f27075dfba550e98edc46 | [
"CC0-1.0"
] | null | null | null | projectname/templates/test.py | datakirsten/InsightProject | c6f4e35d3b341e6d670f27075dfba550e98edc46 | [
"CC0-1.0"
] | null | null | null | A=[3,5,7]
B=[1,8]
C=[]
counter=0
while len(A)>0 and len(B)>0:
if A[0] <= B[0]:
C[counter]=A[0]
A=A[1:]
counter=counter+1
else:
C[counter]=B[0]
B=B[1:]
counter=counter+1
print(C)
| 13.882353 | 28 | 0.449153 | 46 | 236 | 2.304348 | 0.347826 | 0.226415 | 0.283019 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 0.330508 | 236 | 16 | 29 | 14.75 | 0.56962 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 1 | 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 | 3 |
dfa4c15f6da653c3979803f7cd41efff56b2655e | 681 | py | Python | angalabiri/shop/context_processors.py | dark-codr/ebiangala | 0af3de29b2afa71df3e138cd16ecddc69fbd597d | [
"MIT"
] | 1 | 2021-03-25T14:06:23.000Z | 2021-03-25T14:06:23.000Z | angalabiri/shop/context_processors.py | dark-codr/ebiangala | 0af3de29b2afa71df3e138cd16ecddc69fbd597d | [
"MIT"
] | 5 | 2021-09-08T03:08:46.000Z | 2022-03-12T00:56:35.000Z | angalabiri/shop/context_processors.py | me-edavids/ebiangala | 0af3de29b2afa71df3e138cd16ecddc69fbd597d | [
"MIT"
] | null | null | null | from django.shortcuts import get_object_or_404, redirect, render
from angalabiri.shop.models.productmodels import Product
from category.models import Category, Tag
from angalabiri.shop.cart import Cart
def featured_products(request):
return {
"featured_products": Product.objects.filter(featured=True).orde... | 28.375 | 96 | 0.71953 | 89 | 681 | 5.314607 | 0.47191 | 0.109937 | 0.07611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012069 | 0.148311 | 681 | 24 | 97 | 28.375 | 0.803448 | 0 | 0 | 0.166667 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dfe19a042e808ca510400fd717448588f0ea4b70 | 625 | py | Python | deepdanbooru/commands/__init__.py | shalebark/DeepDanbooru | 09068168354146046e3f14ec748ad227ae32cb0a | [
"MIT"
] | null | null | null | deepdanbooru/commands/__init__.py | shalebark/DeepDanbooru | 09068168354146046e3f14ec748ad227ae32cb0a | [
"MIT"
] | null | null | null | deepdanbooru/commands/__init__.py | shalebark/DeepDanbooru | 09068168354146046e3f14ec748ad227ae32cb0a | [
"MIT"
] | null | null | null | from .create_project import create_project, setup_project_from_tag_file
from .download_tags import download_tags
from .make_training_database import make_training_database, make_posts_table
from .train_project import train_project
from .measure_project import measure_project
from .evaluate_project import evaluate_... | 56.818182 | 107 | 0.8816 | 91 | 625 | 5.571429 | 0.318681 | 0.128205 | 0.078895 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0912 | 625 | 10 | 108 | 62.5 | 0.892606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5f2fe7a295709af27b4e852e34583d3f8e9328ab | 551 | py | Python | test_proj/apps/app1/models/inheritance.py | andrewbird2/django-data-validation | 8c3a8e14440f0299a5f4b188dfaa7864b53b5123 | [
"MIT"
] | 1 | 2020-08-05T16:42:48.000Z | 2020-08-05T16:42:48.000Z | test_proj/apps/app1/models/inheritance.py | andrewbird2/django-data-validation | 8c3a8e14440f0299a5f4b188dfaa7864b53b5123 | [
"MIT"
] | 1 | 2020-11-04T07:06:37.000Z | 2020-11-04T07:06:37.000Z | test_proj/apps/app1/models/inheritance.py | andrewbird2/django-data-validation | 8c3a8e14440f0299a5f4b188dfaa7864b53b5123 | [
"MIT"
] | 1 | 2020-11-04T02:16:05.000Z | 2020-11-04T02:16:05.000Z | from datavalidation.config import Config
from .base import BaseModel
class Parent(BaseModel):
pass
class ProxyModel(Parent):
class Meta:
proxy = True
class TestData:
NO_GENERATE = True # don't generate records for this model during testing
class ExcludedModel(Parent):
""" test t... | 18.366667 | 82 | 0.686025 | 61 | 551 | 6.147541 | 0.540984 | 0.072 | 0.12 | 0.184 | 0.237333 | 0.165333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252269 | 551 | 29 | 83 | 19 | 0.910194 | 0.168784 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.117647 | 0 | 0.647059 | 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 | 1 | 0 | 0 | 3 |
a044e1f5c356423460948af2bc84bd77700344ad | 1,266 | py | Python | roscraco/response/clients.py | spantaleev/roscraco | 87a5a7c54931d5586fd7d30c8c67a699bef69c1f | [
"BSD-3-Clause"
] | 13 | 2015-03-01T00:39:43.000Z | 2020-09-06T09:32:52.000Z | roscraco/response/clients.py | cyroxx/roscraco | fc0279928d0241f4eb475ac40b24ab22cb1d900a | [
"BSD-3-Clause"
] | 3 | 2015-08-08T01:34:35.000Z | 2017-05-14T11:07:50.000Z | roscraco/response/clients.py | cyroxx/roscraco | fc0279928d0241f4eb475ac40b24ab22cb1d900a | [
"BSD-3-Clause"
] | 11 | 2015-01-29T03:21:08.000Z | 2020-06-30T17:05:19.000Z | class ConnectedClientsList(list):
"""A response class representing the clients connected
to the router at this time (or that have been recently connected).
"""
pass
class ConnectedClientsListItem(object):
"""A client entry in the :class:`ConnectedClientsList`."""
LEASE_TIME_PERMANENT = 'Perma... | 23.886792 | 85 | 0.654028 | 158 | 1,266 | 4.860759 | 0.265823 | 0.09375 | 0.091146 | 0.059896 | 0.059896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255134 | 1,266 | 52 | 86 | 24.346154 | 0.814422 | 0.135071 | 0 | 0.147059 | 0 | 0 | 0.019535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.323529 | false | 0.029412 | 0 | 0.176471 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a0532b3c818550fd93d2fffa8bde946ba6607ec6 | 252 | py | Python | routedsl/__init__.py | avanov/routedsl | dc05f0cfedb345899c64247b89b85dd9fa2a73ef | [
"MIT"
] | 3 | 2020-04-19T14:11:27.000Z | 2021-11-06T00:11:51.000Z | routedsl/__init__.py | avanov/routedsl | dc05f0cfedb345899c64247b89b85dd9fa2a73ef | [
"MIT"
] | 1 | 2020-04-20T23:08:51.000Z | 2020-04-20T23:08:51.000Z | routedsl/__init__.py | avanov/routedsl | dc05f0cfedb345899c64247b89b85dd9fa2a73ef | [
"MIT"
] | 1 | 2021-11-06T00:11:53.000Z | 2021-11-06T00:11:53.000Z | from .ops import *
from .dsl import *
from .http import *
__all__ = (
'HEADERS', 'PAYLOAD', 'RETURNS', 'HANDLER', 'GUARDS', 'IS', 'LIKE', 'DOCS',
'Routes',
'Header', 'OK', 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'JSON', 'HTTP',
)
| 25.2 | 84 | 0.547619 | 29 | 252 | 4.62069 | 0.827586 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 252 | 9 | 85 | 28 | 0.656863 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
a072767607b59b00f1f923356c3fc34b953b7f01 | 3,089 | py | Python | boofuzz/boofuzz/primitives/delim.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:01.000Z | 2021-06-04T14:27:15.000Z | boofuzz/boofuzz/primitives/delim.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | null | null | null | boofuzz/boofuzz/primitives/delim.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:09.000Z | 2021-06-04T14:27:21.000Z | from .base_primitive import BasePrimitive
from .. import helpers
class Delim(BasePrimitive):
r"""Represent a delimiter such as :,\r,\n, ,=,>,< etc... Mutations include repetition, substitution and exclusion.
:param name: Name, for referencing later. Names should always be provided, but if not, a default name... | 41.186667 | 120 | 0.637099 | 376 | 3,089 | 4.893617 | 0.239362 | 0.204348 | 0.383152 | 0.536413 | 0.592391 | 0.577174 | 0.538043 | 0.397283 | 0.397283 | 0.397283 | 0 | 0.017076 | 0.222726 | 3,089 | 74 | 121 | 41.743243 | 0.749271 | 0.172224 | 0 | 0.103448 | 0 | 0 | 0.026211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
a074a8bece78e28eb13db1d28aca94adb87493bc | 958 | py | Python | setup.py | astrikov-d/django-logstash-logger | 5c4ba2f5f236654daa1fe795a2b4251b1b416ff7 | [
"Apache-2.0"
] | 3 | 2017-10-05T02:07:57.000Z | 2017-10-05T17:14:21.000Z | setup.py | astrikov-d/django-logstash-logger | 5c4ba2f5f236654daa1fe795a2b4251b1b416ff7 | [
"Apache-2.0"
] | null | null | null | setup.py | astrikov-d/django-logstash-logger | 5c4ba2f5f236654daa1fe795a2b4251b1b416ff7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='django-logstash-logger',
version='0.0.2',
description='Simple logstash-compatible log handler for Django-based projects',
url='https://github.com/astrikov-d/django-logstash-logger',
packages=['django_logstash_logger'],
... | 34.214286 | 83 | 0.641962 | 100 | 958 | 6.1 | 0.65 | 0.155738 | 0.204918 | 0.127869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014589 | 0.212944 | 958 | 27 | 84 | 35.481481 | 0.79443 | 0.035491 | 0 | 0 | 0 | 0 | 0.611714 | 0.047722 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a086aa27007baae9050618810394c5eaca2c5ba2 | 615 | py | Python | dtparse/__init__.py | gukoff/dtparse | 98d2a96f8759b60a0f2c53d1f5084c5b4de5766e | [
"MIT"
] | 71 | 2018-03-29T08:35:21.000Z | 2022-02-28T06:58:23.000Z | dtparse/__init__.py | gukoff/dtparse | 98d2a96f8759b60a0f2c53d1f5084c5b4de5766e | [
"MIT"
] | 9 | 2018-04-09T12:42:06.000Z | 2021-10-14T18:43:21.000Z | dtparse/__init__.py | gukoff/dtparse | 98d2a96f8759b60a0f2c53d1f5084c5b4de5766e | [
"MIT"
] | 3 | 2021-01-29T17:52:22.000Z | 2021-05-27T06:35:42.000Z | """Fast datetime parser for Python written in Rust.
Signature:
def parse(str_datetime: str, fmt: str) -> datetime:
pass
For example:
parse('2004-12-01 13:02:47', '%Y-%m-%d %H:%M:%S')
or
parse('2004-12-01 13:02:47.123456', '%Y-%m-%d %H:%M:%S.%f')
The format string is built a bit differently ... | 26.73913 | 73 | 0.674797 | 101 | 615 | 4 | 0.633663 | 0.014851 | 0.022277 | 0.064356 | 0.123762 | 0.123762 | 0.094059 | 0 | 0 | 0 | 0 | 0.074219 | 0.16748 | 615 | 22 | 74 | 27.954545 | 0.714844 | 0.839024 | 0 | 0 | 0 | 0 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a0a15dd8b3e307f2583983844c9aea5bd8656ec5 | 24 | py | Python | tests/config/test_cfg_alt.py | ThePrez/gunicorn | c25563fa95245cb5e275d808c6cef5dd8c03f5d3 | [
"MIT"
] | 6,851 | 2015-01-03T14:24:37.000Z | 2022-03-31T17:51:09.000Z | desktop/core/ext-py/gunicorn-19.9.0/tests/config/test_cfg_alt.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,764 | 2015-01-04T04:57:47.000Z | 2022-03-31T22:29:31.000Z | desktop/core/ext-py/gunicorn-19.9.0/tests/config/test_cfg_alt.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | proc_name = "not-fooey"
| 12 | 23 | 0.708333 | 4 | 24 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
a0a16004dc8e764d689d0de1d55fdc68e9862874 | 6,359 | py | Python | kong-python-pdk/kong_pdk/pdk/kong/service/request.py | srAtKong/kong-custom-plugin-py-tcp | d2b1208b533e3a54845448d5c67e2e6f19d28960 | [
"Apache-2.0"
] | 18 | 2021-03-04T18:52:15.000Z | 2022-02-14T07:23:35.000Z | kong-python-pdk/kong_pdk/pdk/kong/service/request.py | srAtKong/kong-custom-plugin-py-tcp | d2b1208b533e3a54845448d5c67e2e6f19d28960 | [
"Apache-2.0"
] | 31 | 2021-03-24T17:00:04.000Z | 2022-03-30T15:16:27.000Z | kong-python-pdk/kong_pdk/pdk/kong/service/request.py | srAtKong/kong-custom-plugin-py-tcp | d2b1208b533e3a54845448d5c67e2e6f19d28960 | [
"Apache-2.0"
] | 3 | 2021-04-25T05:31:03.000Z | 2021-07-19T16:32:48.000Z | # AUTO GENERATED BASED ON Kong 2.4.x, DO NOT EDIT
# Original source path: kong/pdk/service/request.lua
from typing import TypeVar, Any, Union, List, Mapping, Tuple, Optional
number = TypeVar('number', int, float)
table = TypeVar('table', List[Any], Mapping[str, Any])
# XXX
cdata = Any
err = str
class request():
... | 34.005348 | 124 | 0.581381 | 796 | 6,359 | 4.59799 | 0.244975 | 0.080328 | 0.098361 | 0.07459 | 0.48224 | 0.48224 | 0.408197 | 0.337705 | 0.236612 | 0.203005 | 0 | 0.006443 | 0.292184 | 6,359 | 187 | 125 | 34.005348 | 0.806487 | 0.640195 | 0 | 0.586957 | 1 | 0 | 0.008166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282609 | false | 0.304348 | 0.021739 | 0 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
26008531ba65c5addac11ac518f298c329176c37 | 108 | py | Python | tests/source-packages/setup-cfg-0.2.0/setup.py | sputt/qer | ad6a09feddd56059cba5147b0d8341975149e1e6 | [
"MIT"
] | 6 | 2019-02-19T11:54:45.000Z | 2019-07-01T20:17:43.000Z | tests/source-packages/setup-cfg-0.2.0/setup.py | sputt/req-compile | d6a54bb4fecd2de7f380e2c8e3ab602ecaa1cb18 | [
"MIT"
] | 9 | 2019-11-04T19:25:19.000Z | 2021-12-20T21:48:54.000Z | tests/source-packages/setup-cfg-0.2.0/setup.py | sputt/qer | ad6a09feddd56059cba5147b0d8341975149e1e6 | [
"MIT"
] | 1 | 2020-08-20T20:31:28.000Z | 2020-08-20T20:31:28.000Z | from setuptools import setup
setup(
entry_points={
'console_scripts': ['entrypoint'],
},
)
| 13.5 | 42 | 0.62037 | 10 | 108 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 108 | 7 | 43 | 15.428571 | 0.802469 | 0 | 0 | 0 | 0 | 0 | 0.231481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
261597c85635c28d66e79d2cebfab13df5966f7e | 1,839 | py | Python | feistel.py | carlzoo/co487 | 4783ca16eff126416efbf7ed00267842b5a09cd1 | [
"Apache-2.0"
] | null | null | null | feistel.py | carlzoo/co487 | 4783ca16eff126416efbf7ed00267842b5a09cd1 | [
"Apache-2.0"
] | null | null | null | feistel.py | carlzoo/co487 | 4783ca16eff126416efbf7ed00267842b5a09cd1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#TODO: fix operations with hex
#permutation constants
S0={0x0:0x1,
0x1:0x9,
0x2,0x2,
0x3:0x9,
0x4:0xa,
0x5:0x7,
0x6:0xf,
0x7:0xe,
0x8:0x6,
0x9:0xb,
0xa:0xc,
0xb:0x8,
0xc:0x4,
0xd:0x3,
0xe:0x2,
0xf:0x0}
S1={0x0:0x6,
0x1:0xb,
0x2,0xb... | 17.514286 | 83 | 0.452964 | 329 | 1,839 | 2.367781 | 0.209726 | 0.026958 | 0.025674 | 0.030809 | 0.174583 | 0.159178 | 0.102696 | 0.102696 | 0.102696 | 0.102696 | 0 | 0.271758 | 0.387711 | 1,839 | 104 | 84 | 17.682692 | 0.420071 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149718 | 0.009615 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
261ff730289273901ab3505e4109f4c8c356cd1d | 1,313 | py | Python | blog/feeds.py | eriol/django-blog | 98ed3b37cbcaef5eb683be49887a215928e4d08a | [
"BSD-3-Clause"
] | null | null | null | blog/feeds.py | eriol/django-blog | 98ed3b37cbcaef5eb683be49887a215928e4d08a | [
"BSD-3-Clause"
] | null | null | null | blog/feeds.py | eriol/django-blog | 98ed3b37cbcaef5eb683be49887a215928e4d08a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed, FeedDoesNotExist
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404
from blog import settings
from blog.... | 29.840909 | 76 | 0.680122 | 162 | 1,313 | 5.37037 | 0.395062 | 0.057471 | 0.044828 | 0.032184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.229246 | 1,313 | 43 | 77 | 30.534884 | 0.848814 | 0.015994 | 0 | 0.064516 | 0 | 0 | 0.100775 | 0.047287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.225806 | 0.225806 | 0.903226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
264619a1bbfd8eebd86094e854509693484e3e9d | 344 | py | Python | experiments/functional.py | m-zayan/deeplearning_utils | cc40636f46d13a81cb1020fdcfae84e52456fa06 | [
"MIT"
] | null | null | null | experiments/functional.py | m-zayan/deeplearning_utils | cc40636f46d13a81cb1020fdcfae84e52456fa06 | [
"MIT"
] | null | null | null | experiments/functional.py | m-zayan/deeplearning_utils | cc40636f46d13a81cb1020fdcfae84e52456fa06 | [
"MIT"
] | null | null | null | from tensorflow.keras import backend, losses
__all__ = ['euclidean_norm_loss', 'cross_entropy_loss']
def euclidean_norm_loss(y_true, y_pred):
loss = 0.5 * (y_true - y_pred) ** 2
return backend.sum(loss)
def cross_entropy_loss(y_true, y_pred):
loss = losses.binary_crossentropy(y_true, y_pred)
re... | 19.111111 | 55 | 0.726744 | 53 | 344 | 4.320755 | 0.45283 | 0.087336 | 0.104803 | 0.174672 | 0.157205 | 0.157205 | 0 | 0 | 0 | 0 | 0 | 0.010453 | 0.165698 | 344 | 17 | 56 | 20.235294 | 0.787456 | 0 | 0 | 0 | 0 | 0 | 0.107558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2646a215e08939c25d62beddfa2652daea592aa4 | 169 | py | Python | notatki_gtk.py | stasgora/note-keeper | 8eea8c277eabeb8e22eb9a7b6d6897f798c7c670 | [
"MIT"
] | null | null | null | notatki_gtk.py | stasgora/note-keeper | 8eea8c277eabeb8e22eb9a7b6d6897f798c7c670 | [
"MIT"
] | null | null | null | notatki_gtk.py | stasgora/note-keeper | 8eea8c277eabeb8e22eb9a7b6d6897f798c7c670 | [
"MIT"
] | null | null | null | import gi
gi.require_version("Gtk", "3.0")
from gui.gtk.window import GtkWindow
window = GtkWindow()
window.resize(500, 700)
window.set_title("Notatki")
window.show()
| 16.9 | 36 | 0.745562 | 26 | 169 | 4.769231 | 0.692308 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.100592 | 169 | 9 | 37 | 18.777778 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 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 | 3 |
264bba7743e07ac1e47c86901400a6f28ad4ffe9 | 12,897 | py | Python | tests/test_traits.py | arcondello/dwave-hybrid | 7c75c2dfea3b3d8b769e301da7114eab26bcb165 | [
"Apache-2.0"
] | null | null | null | tests/test_traits.py | arcondello/dwave-hybrid | 7c75c2dfea3b3d8b769e301da7114eab26bcb165 | [
"Apache-2.0"
] | null | null | null | tests/test_traits.py | arcondello/dwave-hybrid | 7c75c2dfea3b3d8b769e301da7114eab26bcb165 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 38.27003 | 102 | 0.64232 | 1,333 | 12,897 | 6.169542 | 0.151538 | 0.029183 | 0.038789 | 0.048638 | 0.665491 | 0.619285 | 0.548273 | 0.484193 | 0.442485 | 0.409411 | 0 | 0.004917 | 0.243002 | 12,897 | 336 | 103 | 38.383929 | 0.837448 | 0.099248 | 0 | 0.484444 | 0 | 0 | 0.006734 | 0 | 0 | 0 | 0 | 0 | 0.257778 | 1 | 0.226667 | false | 0.017778 | 0.026667 | 0.111111 | 0.515556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
26525a70035193862060879ff1ec58290f43e82a | 4,697 | py | Python | TZ-Calc Console App (Python Edition)/app.py | TeryakiiSauce/TZ-Calculator | b3f898daceda60550920dea20b8ea4206cd0bca5 | [
"Unlicense"
] | null | null | null | TZ-Calc Console App (Python Edition)/app.py | TeryakiiSauce/TZ-Calculator | b3f898daceda60550920dea20b8ea4206cd0bca5 | [
"Unlicense"
] | null | null | null | TZ-Calc Console App (Python Edition)/app.py | TeryakiiSauce/TZ-Calculator | b3f898daceda60550920dea20b8ea4206cd0bca5 | [
"Unlicense"
] | null | null | null | import re
import tzlocal
import datetime
import time
isDone = False
while isDone == False:
print("""
%%@(%%%#%%/%%%%##%%%%%#%#/%%%%%#%%%%##%&%&%%%%&%%%%#%%%%%%#%%(#(#/%(%&&&%&&&@(#&
%%%#%%%#%(*#%#%&%&%%%%/%%##%%%%#*%%%##%%%&%%%%%%%%%(%%%%(%%%%(#/%(%%%%((%%&%&(%%
%%/%%##(%%((%#%%%%%%%%/#%//%%%#%/#%%##&#... | 51.054348 | 177 | 0.230999 | 207 | 4,697 | 5.236715 | 0.550725 | 0.04428 | 0.027675 | 0.01845 | 0.057196 | 0.02952 | 0.02952 | 0 | 0 | 0 | 0 | 0.01212 | 0.174367 | 4,697 | 91 | 178 | 51.615385 | 0.267406 | 0.02938 | 0 | 0.077922 | 0 | 0.012987 | 0.684083 | 0.544237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051948 | 0 | 0.051948 | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2653b7831f9404af19446b8fd8c724b7b1b6a916 | 61 | py | Python | local_types.py | parkun-by/broadcaster | cdb2b5d640dcf4967fdb9196e0419d17e1769e89 | [
"MIT"
] | null | null | null | local_types.py | parkun-by/broadcaster | cdb2b5d640dcf4967fdb9196e0419d17e1769e89 | [
"MIT"
] | 3 | 2021-06-28T15:06:00.000Z | 2022-03-12T00:25:48.000Z | local_types.py | parkun-by/broadcaster | cdb2b5d640dcf4967fdb9196e0419d17e1769e89 | [
"MIT"
] | null | null | null | from typing import Tuple
Coordinates = Tuple[float, float]
| 12.2 | 33 | 0.770492 | 8 | 61 | 5.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 61 | 4 | 34 | 15.25 | 0.921569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
26624dcacbf03bdd9855b48bb6249e405585440f | 294 | py | Python | AtCoder/ABC079/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 1 | 2018-11-25T04:15:45.000Z | 2018-11-25T04:15:45.000Z | AtCoder/ABC079/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | null | null | null | AtCoder/ABC079/A.py | takaaki82/Java-Lessons | c4f11462bf84c091527dde5f25068498bfb2cc49 | [
"MIT"
] | 2 | 2018-08-08T13:01:14.000Z | 2018-11-25T12:38:36.000Z | N = input()
before = ""
count = 1
for s in N:
if before == -1:
before = s
else:
if before == s:
count += 1
if count >= 3:
print("Yes")
exit()
else:
before = s
count = 1
print("No")
| 16.333333 | 28 | 0.353741 | 33 | 294 | 3.151515 | 0.454545 | 0.173077 | 0.230769 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.527211 | 294 | 17 | 29 | 17.294118 | 0.71223 | 0 | 0 | 0.375 | 0 | 0 | 0.017007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26723c8b1ffeecacd01cfc577e78cad0d13a9e3e | 228 | py | Python | lcodev/ecom/api/order/serializers.py | ShahSau/Amina-s | bb57e138b2256f064eb9bc5d44aa1b19300c029a | [
"MIT"
] | null | null | null | lcodev/ecom/api/order/serializers.py | ShahSau/Amina-s | bb57e138b2256f064eb9bc5d44aa1b19300c029a | [
"MIT"
] | null | null | null | lcodev/ecom/api/order/serializers.py | ShahSau/Amina-s | bb57e138b2256f064eb9bc5d44aa1b19300c029a | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Order
class OrderSerializers(serializers.HyperlinkedModelSerializer):
class Meta:
model= Order
fields= ('user', 'product_names', 'total_products') | 25.333333 | 63 | 0.745614 | 23 | 228 | 7.26087 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175439 | 228 | 9 | 64 | 25.333333 | 0.888298 | 0 | 0 | 0 | 0 | 0 | 0.135371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
267a236e27b9e64cb90a413de5d5f4fb7325bf7e | 282 | py | Python | back/introductions/models.py | kingzbauer/ChiefOnboarding | 202092a367aade9e032286466e06399ea07f1908 | [
"MIT"
] | null | null | null | back/introductions/models.py | kingzbauer/ChiefOnboarding | 202092a367aade9e032286466e06399ea07f1908 | [
"MIT"
] | null | null | null | back/introductions/models.py | kingzbauer/ChiefOnboarding | 202092a367aade9e032286466e06399ea07f1908 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from organization.models import BaseTemplate
class Introduction(BaseTemplate):
intro_person = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
def __str__(self):
return self.name
| 23.5 | 88 | 0.787234 | 36 | 282 | 5.944444 | 0.694444 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 282 | 11 | 89 | 25.636364 | 0.891667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
26869308a0719ae448eb006c4769d94b322635a8 | 894 | py | Python | backend/config/components/auth.py | hnthh/foodgram-project-react | 3383c6a116fded11b4a764b95e6ca4ead03444f3 | [
"MIT"
] | 1 | 2022-02-09T10:42:45.000Z | 2022-02-09T10:42:45.000Z | backend/config/components/auth.py | hnthh/foodgram | 3383c6a116fded11b4a764b95e6ca4ead03444f3 | [
"MIT"
] | null | null | null | backend/config/components/auth.py | hnthh/foodgram | 3383c6a116fded11b4a764b95e6ca4ead03444f3 | [
"MIT"
] | null | null | null | AUTH_USER_MODEL = 'users.User'
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validat... | 28.83871 | 91 | 0.655481 | 73 | 894 | 7.821918 | 0.438356 | 0.105079 | 0.119089 | 0.14711 | 0.402802 | 0.273205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197987 | 894 | 30 | 92 | 29.8 | 0.796374 | 0 | 0 | 0 | 0 | 0 | 0.63311 | 0.505593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
26940a987e413bf822a8d66627cb769eecf81550 | 1,584 | py | Python | libs/config/algorithm_configuration_provider.py | Hunteerq/GeneticAlgorithms | 267512e21a5c6ca1d0ffcd7162ea4bd6c8ca58ed | [
"Apache-2.0"
] | null | null | null | libs/config/algorithm_configuration_provider.py | Hunteerq/GeneticAlgorithms | 267512e21a5c6ca1d0ffcd7162ea4bd6c8ca58ed | [
"Apache-2.0"
] | 1 | 2020-03-22T00:24:24.000Z | 2020-03-22T00:30:04.000Z | libs/config/algorithm_configuration_provider.py | Hunteerq/GeneticAlgorithms | 267512e21a5c6ca1d0ffcd7162ea4bd6c8ca58ed | [
"Apache-2.0"
] | null | null | null |
class AlgorithmConfigurationProvider:
def __init__(self, chromosome_config, left_range_number, right_range_number, population_number,
epochs_number, selection_amount, elite_amount, selection_method, is_maximization):
self.__chromosome_config = chromosome_config
self.__left_range_... | 27.789474 | 99 | 0.715909 | 172 | 1,584 | 6 | 0.133721 | 0.106589 | 0.135659 | 0.096899 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000822 | 0.231692 | 1,584 | 56 | 100 | 28.285714 | 0.847165 | 0 | 0 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0 | 0.232558 | 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 | 1 | 1 | 0 | 0 | 3 |
cd09e8d8b981c904134c5c617475f1fc7de01470 | 310 | py | Python | vulnerable_people_form/form_pages/confirmation.py | uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service | 5b191980dec554155e9d431a514a945072032e7c | [
"MIT"
] | 3 | 2020-08-16T19:36:26.000Z | 2020-10-29T14:35:01.000Z | vulnerable_people_form/form_pages/confirmation.py | uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service | 5b191980dec554155e9d431a514a945072032e7c | [
"MIT"
] | 101 | 2020-09-03T11:10:00.000Z | 2021-10-01T03:03:46.000Z | vulnerable_people_form/form_pages/confirmation.py | alphagov-mirror/govuk-shielded-vulnerable-people-service | f9cb4ae9046fc402f0878503733a23d42546cc53 | [
"MIT"
] | 6 | 2020-07-28T09:03:20.000Z | 2021-04-10T18:04:56.000Z | from flask import session
from .blueprint import form
from .shared.render import render_template_with_title
@form.route("/confirmation", methods=["GET"])
def get_confirmation():
rendered_template = render_template_with_title(
"confirmation.html")
session.clear()
return rendered_template
| 25.833333 | 53 | 0.764516 | 37 | 310 | 6.162162 | 0.540541 | 0.122807 | 0.157895 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 310 | 11 | 54 | 28.181818 | 0.860377 | 0 | 0 | 0 | 0 | 0 | 0.106452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0.111111 | 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 | 1 | 0 | 0 | 3 |
cd16644284680a25d3e5bcfcbed62bf0e1583198 | 84 | py | Python | src/fmWidgets/__init__.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | src/fmWidgets/__init__.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | src/fmWidgets/__init__.py | ComputerArchitectureGroupPWr/Floorplan-Maker | 8f2922cdab16501d3bb00f93c3130d3f2c593698 | [
"MIT"
] | null | null | null | __author__ = 'pawel'
__all__ = ["FmColorEdit"]
from FmColorEdit import FmColorEdit | 16.8 | 35 | 0.77381 | 8 | 84 | 7.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 84 | 5 | 35 | 16.8 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
cd75f13f7e8392dc3c335b991b897a15496adf9c | 246 | py | Python | philo/contrib/sobol/__init__.py | kgodey/philo | c19bf577d44606d2b284e6058d633f4a174b61cc | [
"0BSD"
] | 1 | 2019-12-03T09:32:41.000Z | 2019-12-03T09:32:41.000Z | philo/contrib/sobol/__init__.py | kgodey/philo | c19bf577d44606d2b284e6058d633f4a174b61cc | [
"0BSD"
] | null | null | null | philo/contrib/sobol/__init__.py | kgodey/philo | c19bf577d44606d2b284e6058d633f4a174b61cc | [
"0BSD"
] | null | null | null | """
Sobol implements a generic search interface, which can be used to search databases or websites. No assumptions are made about the search method, and the results are cached using django's caching.
"""
from philo.contrib.sobol.search import * | 41 | 195 | 0.784553 | 38 | 246 | 5.078947 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 246 | 6 | 196 | 41 | 0.927885 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
26c82e177d9c89bddea92be7009db2b1361e1404 | 108 | py | Python | python/20190303/Code/flask_todo_app/config/development.py | Realize0917/career | b5d02ac53cfc3ce3a2ca38d11480c51560283e67 | [
"MIT"
] | 3 | 2019-01-17T05:50:51.000Z | 2019-03-15T10:10:07.000Z | python/20190303/Code/flask_todo_app/config/development.py | Realize0917/career | b5d02ac53cfc3ce3a2ca38d11480c51560283e67 | [
"MIT"
] | 10 | 2019-01-17T06:07:03.000Z | 2019-02-19T05:55:25.000Z | python/20190303/Code/flask_todo_app/config/development.py | Realize0917/career | b5d02ac53cfc3ce3a2ca38d11480c51560283e67 | [
"MIT"
] | 4 | 2018-12-22T07:32:55.000Z | 2019-03-06T09:13:48.000Z | from .default import Config
class DevelopmentConfig(Config):
DEBUG = True
# SECERT_KEY = 'development'
| 18 | 32 | 0.75 | 12 | 108 | 6.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 108 | 5 | 33 | 21.6 | 0.888889 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
26c9e337a1c49d708a7350d61a7517b97013fa00 | 165 | py | Python | web/env.py | baverman/cinator | 95894b23cfdc42dbae652752a63119edc23c5f53 | [
"MIT"
] | null | null | null | web/env.py | baverman/cinator | 95894b23cfdc42dbae652752a63119edc23c5f53 | [
"MIT"
] | null | null | null | web/env.py | baverman/cinator | 95894b23cfdc42dbae652752a63119edc23c5f53 | [
"MIT"
] | null | null | null | from jinja2 import Environment, FileSystemLoader
loader = FileSystemLoader('template')
jinja_env = Environment(loader=loader, trim_blocks=True, lstrip_blocks=True)
| 33 | 76 | 0.830303 | 19 | 165 | 7.052632 | 0.684211 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.084848 | 165 | 4 | 77 | 41.25 | 0.880795 | 0 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
26dc3449b12ff9010ce4a6a77beae354fb3e1c6a | 166 | py | Python | Chapter1-1-Python-as-calculator/Caculator-example.py | paulmcheng/python-for-data-science | 7c6f0fe1024fcd768044f2c5ab4fef26d6b64e1e | [
"MIT"
] | null | null | null | Chapter1-1-Python-as-calculator/Caculator-example.py | paulmcheng/python-for-data-science | 7c6f0fe1024fcd768044f2c5ab4fef26d6b64e1e | [
"MIT"
] | null | null | null | Chapter1-1-Python-as-calculator/Caculator-example.py | paulmcheng/python-for-data-science | 7c6f0fe1024fcd768044f2c5ab4fef26d6b64e1e | [
"MIT"
] | null | null | null | # Addition and subtraction
print(5 + 5)
print(5 - 5)
# Multiplication and division
print(3 * 5)
print(10 / 2)
# Exponentiation
print(4 ** 2)
# Modulo
print(18 % 7) | 12.769231 | 29 | 0.668675 | 26 | 166 | 4.269231 | 0.576923 | 0.108108 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0.192771 | 166 | 13 | 30 | 12.769231 | 0.723881 | 0.445783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
26dfb34019177113b890fa5f9a3d40af3ac58006 | 539 | py | Python | SC_projects/recursion/basic_permutations.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | SC_projects/recursion/basic_permutations.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | SC_projects/recursion/basic_permutations.py | hsiaohan416/stancode | 8920f2e99e184d165fa04551f24a2da8b0975219 | [
"MIT"
] | null | null | null | """
File: basic_permutations.py
Name: Sharon
-----------------------------
This program finds all the 3-digits binary permutations
by calling a recursive function binary_permutations.
Students will find a helper function useful in advanced
recursion problems.
"""
def main():
binary_permutations(5)
def binary_permu... | 17.966667 | 55 | 0.701299 | 71 | 539 | 5.098592 | 0.549296 | 0.198895 | 0.209945 | 0.18232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008639 | 0.141002 | 539 | 29 | 56 | 18.586207 | 0.773218 | 0.473098 | 0 | 0 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26e5e6733a75807649cb43490d51c5ba62d9c6d6 | 339 | py | Python | instagram_api/response/model/viewer.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/viewer.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/viewer.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
from .eligible_promotions import EligiblePromotions
__all__ = ['Viewer', 'ViewerInterface']
class ViewerInterface(ApiInterfaceBase):
eligible_promotions: EligiblePromotions
class Viewer(PropertyMapper, ViewerIn... | 22.6 | 53 | 0.811209 | 30 | 339 | 8.966667 | 0.533333 | 0.074349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117994 | 339 | 14 | 54 | 24.214286 | 0.899666 | 0 | 0 | 0 | 0 | 0 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f813cbeb74690b4e93ee12b4ac7635a67930706e | 1,048 | py | Python | tests/test_tornado.py | tell-k/uadetector | 62584b9f65858b482bb5959718906445dcdd472a | [
"MIT"
] | 5 | 2018-02-19T18:52:08.000Z | 2020-08-13T05:15:11.000Z | tests/test_tornado.py | tell-k/uadetector | 62584b9f65858b482bb5959718906445dcdd472a | [
"MIT"
] | 1 | 2018-02-20T11:13:46.000Z | 2018-02-20T11:13:46.000Z | tests/test_tornado.py | tell-k/uadetector | 62584b9f65858b482bb5959718906445dcdd472a | [
"MIT"
] | null | null | null | from tornado.testing import AsyncHTTPTestCase
from .constants import UA_STRING
from .testapp.tornado import make_app
class TestView1Handler(AsyncHTTPTestCase):
def get_app(self):
return make_app()
def test_exists_useragent_object(self):
res = self.fetch('/view1', method='GET',
... | 27.578947 | 59 | 0.658397 | 127 | 1,048 | 5.244094 | 0.370079 | 0.042042 | 0.103604 | 0.117117 | 0.393393 | 0.393393 | 0.393393 | 0.31982 | 0.126126 | 0 | 0 | 0.011152 | 0.229962 | 1,048 | 37 | 60 | 28.324324 | 0.814126 | 0.02958 | 0 | 0.291667 | 0 | 0 | 0.099606 | 0.02071 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f835cc4a78c1bd7726bbfa895795ca8d05132f29 | 250 | py | Python | config.py | mpanuszko/crud-python-mssql | 4cd4490938fd2011d5b0a84087da5d7a735d010a | [
"MIT"
] | null | null | null | config.py | mpanuszko/crud-python-mssql | 4cd4490938fd2011d5b0a84087da5d7a735d010a | [
"MIT"
] | null | null | null | config.py | mpanuszko/crud-python-mssql | 4cd4490938fd2011d5b0a84087da5d7a735d010a | [
"MIT"
] | null | null | null | import pyodbc
server = 'local server'
database = 'Northwind'
username = '***'
password = '***'
con = pyodbc.connect('DRIVER={ODBC Driver 13 for SQL Server};SERVER=' + server + ';DATABASE=' + database + ';UID=' + username + ';PWD=' + password)
| 25 | 147 | 0.632 | 27 | 250 | 5.851852 | 0.62963 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.176 | 250 | 9 | 148 | 27.777778 | 0.757282 | 0 | 0 | 0 | 0 | 0 | 0.372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f8532b3c9036665391e41e9ed2c331bfed013eca | 1,425 | py | Python | hurriyet/errors.py | yakupadakli/python-hurriyet | 24641a5bc8686efa13b8e2bd32810e7f00ee78c2 | [
"MIT"
] | null | null | null | hurriyet/errors.py | yakupadakli/python-hurriyet | 24641a5bc8686efa13b8e2bd32810e7f00ee78c2 | [
"MIT"
] | null | null | null | hurriyet/errors.py | yakupadakli/python-hurriyet | 24641a5bc8686efa13b8e2bd32810e7f00ee78c2 | [
"MIT"
] | null | null | null | import six
class HurriyetError(Exception):
message = six.text_type("Unknown error")
def __init__(self, message=None, status=None):
self.message = six.text_type(message) if message else self.message
self.status = status
super(HurriyetError, self).__init__(message, status)
def __st... | 21.590909 | 74 | 0.724912 | 184 | 1,425 | 5.472826 | 0.271739 | 0.139027 | 0.194638 | 0.250248 | 0.329692 | 0.310824 | 0.123138 | 0 | 0 | 0 | 0 | 0 | 0.172632 | 1,425 | 65 | 75 | 21.923077 | 0.854114 | 0 | 0 | 0 | 0 | 0 | 0.150877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.028571 | 0.028571 | 0.028571 | 0.885714 | 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 | 1 | 0 | 0 | 3 |
f86913a7501ea198380015826f4ad771b8fb35fc | 1,848 | py | Python | tests/test_a_multi_dump_static.py | erkandem/multi-dump-restore | dd84f7f4b5661f0647d4fd66c6463ea15497595b | [
"MIT"
] | null | null | null | tests/test_a_multi_dump_static.py | erkandem/multi-dump-restore | dd84f7f4b5661f0647d4fd66c6463ea15497595b | [
"MIT"
] | null | null | null | tests/test_a_multi_dump_static.py | erkandem/multi-dump-restore | dd84f7f4b5661f0647d4fd66c6463ea15497595b | [
"MIT"
] | null | null | null | import testing_utilities as tu
from mdr import appconfig
from mdr import multi_dump as md
import random
class TestCmdTemplate:
@classmethod
def setup_class(cls):
tu.pgts.get_and_patch_temporary_bkp_dir()
def test__dump_cmd_template(self):
backup_name = md.get_default_bkp_name()
fi... | 34.222222 | 63 | 0.623377 | 231 | 1,848 | 4.562771 | 0.233766 | 0.075901 | 0.051233 | 0.119545 | 0.798861 | 0.757116 | 0.757116 | 0.688805 | 0.688805 | 0.688805 | 0 | 0 | 0.27381 | 1,848 | 53 | 64 | 34.867925 | 0.785395 | 0 | 0 | 0.638298 | 0 | 0 | 0.105035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.085106 | 0 | 0.170213 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
f86a6eb410ae86fc10d67b5932cea19190002099 | 571 | py | Python | api/routes.py | forinda/APIs-in-Flask | ead4489e7f042439c00dcd200b8c7c234bc8c507 | [
"MIT"
] | null | null | null | api/routes.py | forinda/APIs-in-Flask | ead4489e7f042439c00dcd200b8c7c234bc8c507 | [
"MIT"
] | null | null | null | api/routes.py | forinda/APIs-in-Flask | ead4489e7f042439c00dcd200b8c7c234bc8c507 | [
"MIT"
] | null | null | null | from flask import (
Flask,
render_template,
)
from .app import create_app
# Create an application instance
app = create_app()
@app.post("/", strict_slashes=False)
def create_post():
return {"message": "post created "}
@app.get("/", strict_slashes=False)
def get_posts():
return {"message": "all posts... | 17.84375 | 39 | 0.669002 | 73 | 571 | 4.972603 | 0.438356 | 0.143251 | 0.198347 | 0.231405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166375 | 571 | 31 | 40 | 18.419355 | 0.762605 | 0.052539 | 0 | 0 | 0 | 0 | 0.159555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f882188a66b863e76610b5c397bb7c1d0d5b1d66 | 2,389 | py | Python | nlp_steven_bird/chapter1.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | nlp_steven_bird/chapter1.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | nlp_steven_bird/chapter1.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | from nltk.book import *
print(text1)
# .concordance() method in nltk gives occurance of a given word with some context
# in the text
# .similar() method gives the words that are used in similar range of context of
# a given word
# .common_contexts() gives the contexts that are shared by two or
# more words in the gi... | 45.942308 | 83 | 0.759732 | 401 | 2,389 | 4.516209 | 0.411471 | 0.034787 | 0.029818 | 0.033131 | 0.108228 | 0.097736 | 0.070679 | 0.034235 | 0 | 0 | 0 | 0.006633 | 0.179573 | 2,389 | 51 | 84 | 46.843137 | 0.917347 | 0.884052 | 0 | 0 | 0 | 0 | 0.041494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.857143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f886adf06085c98749f921e2cd12c2ee66327cec | 19 | py | Python | pavdhutils/__init__.py | vierth/pavut | 0c9c5032e80c7a7184fea72d9a4f4e46fb47c83d | [
"Apache-2.0"
] | null | null | null | pavdhutils/__init__.py | vierth/pavut | 0c9c5032e80c7a7184fea72d9a4f4e46fb47c83d | [
"Apache-2.0"
] | null | null | null | pavdhutils/__init__.py | vierth/pavut | 0c9c5032e80c7a7184fea72d9a4f4e46fb47c83d | [
"Apache-2.0"
] | null | null | null | name = "pavdhutils" | 19 | 19 | 0.736842 | 2 | 19 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 19 | 1 | 19 | 19 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
f88c9f063bf90ce5de8aea5027a90b899709a6bd | 113 | py | Python | apps/about/urls.py | cspatgithub/Corporate | d0d5d7f6ca5d44652bc13f3ab337b773a495dbae | [
"MIT"
] | null | null | null | apps/about/urls.py | cspatgithub/Corporate | d0d5d7f6ca5d44652bc13f3ab337b773a495dbae | [
"MIT"
] | null | null | null | apps/about/urls.py | cspatgithub/Corporate | d0d5d7f6ca5d44652bc13f3ab337b773a495dbae | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('about', views.About, name='about')
] | 18.833333 | 44 | 0.690265 | 15 | 113 | 5.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176991 | 113 | 6 | 45 | 18.833333 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
f8c262a8ea097eaf33f54dff15d481ddb88d6620 | 752 | py | Python | problem_set_02/problem_set_02.py | umsi-arwhyte/SI506-2021Winter | 6576fd1704542ddcd24cddc39dc46e81745a2b55 | [
"BSD-3-Clause"
] | null | null | null | problem_set_02/problem_set_02.py | umsi-arwhyte/SI506-2021Winter | 6576fd1704542ddcd24cddc39dc46e81745a2b55 | [
"BSD-3-Clause"
] | null | null | null | problem_set_02/problem_set_02.py | umsi-arwhyte/SI506-2021Winter | 6576fd1704542ddcd24cddc39dc46e81745a2b55 | [
"BSD-3-Clause"
] | 2 | 2021-01-21T21:14:42.000Z | 2021-08-06T16:13:28.000Z | #Problem Set 02
print('Problem Set 02')
# Problem 01 (20 points)
print('\nProblem 1')
cases = [70, 75, 126, 144, 170]
cases_latest = None #TODO Replace
# Problem 02 (20 points)
print('\nProblem 2')
tests = None #TODO Replace
tests_last_three = None #TODO Replace
tests_reverse = None #TODO Replace
# Problem 03 ... | 18.8 | 104 | 0.698138 | 114 | 752 | 4.535088 | 0.464912 | 0.123791 | 0.232108 | 0.203095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0.166223 | 752 | 40 | 105 | 18.8 | 0.684211 | 0.299202 | 0 | 0 | 0 | 0.058824 | 0.361868 | 0.079767 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ef271dbb2bd6120f4e7e6bb74c6dfc504bf07b3 | 177 | py | Python | Python/pe020.py | tjyiiuan/Project-Euler | c558708709e2c47835737985363c25a507b9037c | [
"MIT"
] | null | null | null | Python/pe020.py | tjyiiuan/Project-Euler | c558708709e2c47835737985363c25a507b9037c | [
"MIT"
] | null | null | null | Python/pe020.py | tjyiiuan/Project-Euler | c558708709e2c47835737985363c25a507b9037c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Problem 20
# Factorial digit sum
import numpy as np
print(sum([int(i) for i in str(np.math.factorial(100))]))
# 648
# 0.001 s
| 14.75 | 57 | 0.638418 | 32 | 177 | 3.53125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089041 | 0.175141 | 177 | 11 | 58 | 16.090909 | 0.684932 | 0.480226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
6efe8ba99bbccfd4d20f1b49811e11ad5cb47ee3 | 314 | py | Python | layered_settings/loaders/dict_loader.py | mathandpencil/layered-settings | 8c3a48cc5ac7436a4ac7c1a72e81dad0e58ac7d8 | [
"MIT"
] | 1 | 2021-03-21T01:43:22.000Z | 2021-03-21T01:43:22.000Z | layered_settings/loaders/dict_loader.py | mathandpencil/layered-settings | 8c3a48cc5ac7436a4ac7c1a72e81dad0e58ac7d8 | [
"MIT"
] | null | null | null | layered_settings/loaders/dict_loader.py | mathandpencil/layered-settings | 8c3a48cc5ac7436a4ac7c1a72e81dad0e58ac7d8 | [
"MIT"
] | null | null | null | import logging
from .base_loader import BaseLoader
logger = logging.getLogger(__name__)
class DictLoader(BaseLoader):
def __init__(self, data):
self.data = data
def get_setting(self, section, key):
return self.data[section][key]
def __str__(self):
return f"dict source"
| 16.526316 | 40 | 0.678344 | 39 | 314 | 5.102564 | 0.615385 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229299 | 314 | 18 | 41 | 17.444444 | 0.822314 | 0 | 0 | 0 | 0 | 0 | 0.035144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3e02ea8f03bc9284d144b590ae691c85793bae23 | 244 | py | Python | Python Mundo 01/Desafio 017.py | maxbarroso/Curso-de-Python | cfb332cc5d085a5aceeba919eac7cc85ef970f9a | [
"MIT"
] | null | null | null | Python Mundo 01/Desafio 017.py | maxbarroso/Curso-de-Python | cfb332cc5d085a5aceeba919eac7cc85ef970f9a | [
"MIT"
] | null | null | null | Python Mundo 01/Desafio 017.py | maxbarroso/Curso-de-Python | cfb332cc5d085a5aceeba919eac7cc85ef970f9a | [
"MIT"
] | null | null | null | # Curso de Python do Curso em Vídeo
# Desafio 017 Aula #08 Utilizando mósdulos
# Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente de um triangulo, calcule e mostre o comprimento da hipotenusa.
#
# Aluno MaxBarroso | 48.8 | 143 | 0.786885 | 39 | 244 | 4.923077 | 0.769231 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.180328 | 244 | 5 | 144 | 48.8 | 0.935 | 0.954918 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e05870ef07ee174285d2d5a1495689386eadcd1 | 2,137 | py | Python | maxixe/tests/loader.py | tswicegood/maxixe | 680fc8e92bf34e5b825ee0685659e40e992b0328 | [
"Apache-2.0"
] | 1 | 2020-07-09T04:30:52.000Z | 2020-07-09T04:30:52.000Z | maxixe/tests/loader.py | tswicegood/maxixe | 680fc8e92bf34e5b825ee0685659e40e992b0328 | [
"Apache-2.0"
] | null | null | null | maxixe/tests/loader.py | tswicegood/maxixe | 680fc8e92bf34e5b825ee0685659e40e992b0328 | [
"Apache-2.0"
] | null | null | null | import os
import unittest
class FeatureFinderTestCase(unittest.TestCase):
def setUp(self):
import maxixe
maxixe.init()
def test_loads_name_from_file(self):
from maxixe.features import basics
self.assertEqual(basics.name, "Importable features")
def test_loads_description_f... | 36.844828 | 78 | 0.697239 | 255 | 2,137 | 5.615686 | 0.313725 | 0.097765 | 0.113128 | 0.150838 | 0.363128 | 0.363128 | 0.336592 | 0.336592 | 0.195531 | 0.195531 | 0 | 0.004785 | 0.217595 | 2,137 | 57 | 79 | 37.491228 | 0.851675 | 0 | 0 | 0.23913 | 0 | 0 | 0.081423 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 1 | 0.217391 | false | 0 | 0.326087 | 0 | 0.565217 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
3e2722673514055761488571712a429dc6b32d3c | 333 | py | Python | test/integration/expected_out_single_line/CantAffordActiveException.py | Inveracity/flynt | b975b6f61893d5db1114d68fbb5d212c4e11aeb8 | [
"MIT"
] | 487 | 2019-06-10T17:44:56.000Z | 2022-03-26T01:28:19.000Z | test/integration/expected_out_single_line/CantAffordActiveException.py | Inveracity/flynt | b975b6f61893d5db1114d68fbb5d212c4e11aeb8 | [
"MIT"
] | 118 | 2019-07-03T12:26:39.000Z | 2022-03-06T22:40:17.000Z | test/integration/expected_out_single_line/CantAffordActiveException.py | Inveracity/flynt | b975b6f61893d5db1114d68fbb5d212c4e11aeb8 | [
"MIT"
] | 25 | 2019-07-10T08:39:58.000Z | 2022-03-03T14:44:15.000Z | from exceptions import PydolonsError
class CantAffordActiveError(PydolonsError):
def __init__(self, active, missing):
assert missing in ["mana", "stamina", "health"]
self.active = active
self.missing = missing
def __repr__(self):
return f"Need more {self.missing} to activate {... | 30.272727 | 68 | 0.681682 | 37 | 333 | 5.918919 | 0.621622 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219219 | 333 | 11 | 68 | 30.272727 | 0.842308 | 0 | 0 | 0 | 0 | 0 | 0.200599 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3e360356a64ed1ec31a043d0e3c9461697322264 | 124 | py | Python | config.py | cisco-code-projects/DNAC-Config-Archive | 1b536306fc0936a15d938fbc32091ce7add4f151 | [
"BSD-Source-Code"
] | null | null | null | config.py | cisco-code-projects/DNAC-Config-Archive | 1b536306fc0936a15d938fbc32091ce7add4f151 | [
"BSD-Source-Code"
] | null | null | null | config.py | cisco-code-projects/DNAC-Config-Archive | 1b536306fc0936a15d938fbc32091ce7add4f151 | [
"BSD-Source-Code"
] | null | null | null | dnac_username = 'devnetuser'
dnac_password = 'Cisco123!'
dnac_base_url = 'https://sandboxdnac.cisco.com'
dnac_verify = False | 31 | 47 | 0.782258 | 16 | 124 | 5.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.08871 | 124 | 4 | 48 | 31 | 0.787611 | 0 | 0 | 0 | 0 | 0 | 0.384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3e37610f1c071653d40d1feebd75e91695826be5 | 124 | py | Python | Curso de Cisco/Actividades/Act 6 - Modulo 3.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Act 6 - Modulo 3.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Act 6 - Modulo 3.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | import time
for segundo in range(1, 6):
print(segundo, "Mississippi")
time.sleep(1)
print("Listo o no, ahí voy!") | 17.714286 | 33 | 0.653226 | 21 | 124 | 3.904762 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.193548 | 124 | 7 | 34 | 17.714286 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e65889d28b9bf637f50aea6f83043e4e8b61ecb | 43 | py | Python | nflows/version.py | Tennessee-Wallaceh/nflows | ac0bf432fc7904458a933ed14180f0ac26e3f93d | [
"MIT"
] | 522 | 2020-02-26T16:51:51.000Z | 2022-03-31T15:38:48.000Z | nflows/version.py | Tennessee-Wallaceh/nflows | ac0bf432fc7904458a933ed14180f0ac26e3f93d | [
"MIT"
] | 47 | 2020-03-24T18:36:59.000Z | 2022-03-25T09:47:18.000Z | nflows/version.py | Tennessee-Wallaceh/nflows | ac0bf432fc7904458a933ed14180f0ac26e3f93d | [
"MIT"
] | 77 | 2020-03-21T21:00:44.000Z | 2022-03-31T00:41:51.000Z | __version__ = "0.14"
VERSION = __version__
| 14.333333 | 21 | 0.744186 | 5 | 43 | 4.8 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.139535 | 43 | 2 | 22 | 21.5 | 0.567568 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
3e8462e9ae4c547cf1c34edf71c361d550a8ba2c | 103 | py | Python | Python/CeV/Exercicios/ex24.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | Python/CeV/Exercicios/ex24.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | Python/CeV/Exercicios/ex24.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | cidade = input('Qual o nome da sua cidade?').title().split()
print(cidade)
print('Santo' in cidade[0])
| 25.75 | 60 | 0.68932 | 17 | 103 | 4.176471 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.116505 | 103 | 3 | 61 | 34.333333 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.300971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 3 |
3e889d719b114e771c6a5f682394f11e56300716 | 125 | py | Python | circuference.py | Yuhanss/LearnPython | 36ed84bb64313198d45c6f9a368e1d518dd6abf6 | [
"MIT"
] | null | null | null | circuference.py | Yuhanss/LearnPython | 36ed84bb64313198d45c6f9a368e1d518dd6abf6 | [
"MIT"
] | null | null | null | circuference.py | Yuhanss/LearnPython | 36ed84bb64313198d45c6f9a368e1d518dd6abf6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
pi = 3.14159
radius = 3
C = pi * (radius **2)
print "The circumference of circle of radius 3 is ",C,""
| 15.625 | 56 | 0.624 | 22 | 125 | 3.545455 | 0.681818 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 0.216 | 125 | 7 | 57 | 17.857143 | 0.704082 | 0.128 | 0 | 0 | 0 | 0 | 0.398148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e8d68cf7e31cab2672bd397b58eba648280630d | 144 | py | Python | example1.py | hao-fang/argcomb | 8a286d4292bac741feea9b092a1cfa1746dad099 | [
"MIT"
] | 2 | 2020-04-02T10:58:36.000Z | 2020-07-13T18:38:07.000Z | example1.py | hao-fang/argcomb | 8a286d4292bac741feea9b092a1cfa1746dad099 | [
"MIT"
] | null | null | null | example1.py | hao-fang/argcomb | 8a286d4292bac741feea9b092a1cfa1746dad099 | [
"MIT"
] | 1 | 2020-04-02T23:48:00.000Z | 2020-04-02T23:48:00.000Z | from argcomb import *
run(
"echo", "train",
arg("eta", 0.1),
selarg(None, "num-iters", 5, 10),
sel(None, [], arg("greedy")),
)
| 16 | 37 | 0.513889 | 20 | 144 | 3.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.236111 | 144 | 8 | 38 | 18 | 0.627273 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e8e384710249698416b8488811216f88bc23a13 | 846 | py | Python | meerkat_drill/test/mocks.py | meerkat-code/meerkat_drill | c8bb00c9ceec88407d7ff0ff12ced722b97d3258 | [
"MIT"
] | null | null | null | meerkat_drill/test/mocks.py | meerkat-code/meerkat_drill | c8bb00c9ceec88407d7ff0ff12ced722b97d3258 | [
"MIT"
] | null | null | null | meerkat_drill/test/mocks.py | meerkat-code/meerkat_drill | c8bb00c9ceec88407d7ff0ff12ced722b97d3258 | [
"MIT"
] | null | null | null | class RedisMock():
def __init__(self):
self.incoming_queue = []
self.in_progress_queue = []
def brpoplpush(self, *args):
if self.incoming_queue:
item = self.incoming_queue.pop(0)
self.in_progress_queue.append(item)
return item
else:
... | 24.882353 | 55 | 0.63357 | 103 | 846 | 4.912621 | 0.349515 | 0.118577 | 0.167984 | 0.187747 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001626 | 0.27305 | 846 | 33 | 56 | 25.636364 | 0.821138 | 0.018913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0 | 0.086957 | 0.565217 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e43bf8aa93de39baffa8125e18d2e080d80cf450 | 1,326 | py | Python | sqltest/parser/operation.py | stayrascal/sqltest | bc9f36755ec04f410e0931696a8624b15429b2b3 | [
"MIT"
] | null | null | null | sqltest/parser/operation.py | stayrascal/sqltest | bc9f36755ec04f410e0931696a8624b15429b2b3 | [
"MIT"
] | 1 | 2021-10-19T14:40:02.000Z | 2021-10-19T14:40:02.000Z | sqltest/parser/operation.py | stayrascal/sqltest | bc9f36755ec04f410e0931696a8624b15429b2b3 | [
"MIT"
] | null | null | null | from abc import ABC
from sqltest.parser.catalog import Table
class Operation:
def as_summary_str(self) -> str:
raise NotImplementedError("this method is not implemented.")
def executable(self) -> bool:
raise NotImplementedError("this method is not implemented.")
def get_entity(self) -> ... | 22.862069 | 68 | 0.655354 | 154 | 1,326 | 5.415584 | 0.246753 | 0.05036 | 0.071942 | 0.089928 | 0.583933 | 0.455635 | 0.36211 | 0.235012 | 0.107914 | 0.107914 | 0 | 0 | 0.246606 | 1,326 | 57 | 69 | 23.263158 | 0.834835 | 0 | 0 | 0.540541 | 0 | 0 | 0.089744 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0 | 0.054054 | 0.216216 | 0.783784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e43f080e226a6b1070d14fa16fbcb0b1f117da48 | 191 | py | Python | Bangu/Semana 4/Exemplos de Sala de Aula/Exemplo002/main.py | profoswaldo/Unisuam_2022-1 | cd0faad61480030d1320515a8104373ada70545b | [
"MIT"
] | 2 | 2022-03-25T02:04:11.000Z | 2022-03-25T09:26:44.000Z | Bangu/Semana 4/Exemplos de Sala de Aula/Exemplo002/main.py | profoswaldo/Unisuam_2022-1 | cd0faad61480030d1320515a8104373ada70545b | [
"MIT"
] | null | null | null | Bangu/Semana 4/Exemplos de Sala de Aula/Exemplo002/main.py | profoswaldo/Unisuam_2022-1 | cd0faad61480030d1320515a8104373ada70545b | [
"MIT"
] | null | null | null | # para variavel de vi até vf passo x
# inicio
# fim
# para variavel de 1 até 5 passo 1
# inicio
# Escrever "Oswaldo"
# fim
for variavel in range(1,6,1):
print("Oswaldo")
| 11.9375 | 36 | 0.617801 | 31 | 191 | 3.806452 | 0.612903 | 0.20339 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.287958 | 191 | 15 | 37 | 12.733333 | 0.823529 | 0.575916 | 0 | 0 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
e463dfe9ee53343eaa0e822dda82fd7e3322866f | 386 | py | Python | simtk/pydra.py | scopetools/SIM_recon_python | 5a00e67b9f9472f2f0b10105bdba72809d9924b6 | [
"Apache-2.0"
] | 2 | 2021-08-31T13:30:00.000Z | 2021-12-10T03:16:46.000Z | simtk/pydra.py | scopetools/SIM_recon_python | 5a00e67b9f9472f2f0b10105bdba72809d9924b6 | [
"Apache-2.0"
] | null | null | null | simtk/pydra.py | scopetools/SIM_recon_python | 5a00e67b9f9472f2f0b10105bdba72809d9924b6 | [
"Apache-2.0"
] | null | null | null | """simtk pydra tasks and workflows."""
# __all__ = [
# 'load_image_task'
# ]
# import numpy as np
# from pydra import mark
# import itk
# from simtk import load_image
# load_image_annotated = mark.annotate({'filename': str, 'nphases': int,
# 'norientations': int, 'spacing': np.ndarray, 'return': itk.VectorImage })(... | 24.125 | 87 | 0.712435 | 51 | 386 | 5.117647 | 0.529412 | 0.206897 | 0.099617 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139896 | 386 | 15 | 88 | 25.733333 | 0.786145 | 0.92228 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e47ef2bc2b042739a678d4b7836b495f50fdb2da | 279 | py | Python | blockchainetl/jobs/exporters/converters/testnet_chainid_converter.py | BitskiCo/ethereum-etl | cee9004444396ec64f4363e12e5d74508c190d26 | [
"MIT"
] | null | null | null | blockchainetl/jobs/exporters/converters/testnet_chainid_converter.py | BitskiCo/ethereum-etl | cee9004444396ec64f4363e12e5d74508c190d26 | [
"MIT"
] | null | null | null | blockchainetl/jobs/exporters/converters/testnet_chainid_converter.py | BitskiCo/ethereum-etl | cee9004444396ec64f4363e12e5d74508c190d26 | [
"MIT"
] | null | null | null | from blockchainetl.jobs.exporters.converters.simple_item_converter import SimpleItemConverter
class TestnetChainIDConverter(SimpleItemConverter):
def convert_field(self, key, value):
if key == 'chain_id':
return 4
else:
return value
| 27.9 | 93 | 0.702509 | 28 | 279 | 6.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.232975 | 279 | 9 | 94 | 31 | 0.892523 | 0 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 3 |
e499dac71bb8db9077e409f74579b7bdf65d82a8 | 44 | py | Python | subfinder/__init__.py | justcopy/subfinder | 1287f0348a3624696546b889ee7b7ac02e64fdb3 | [
"MIT"
] | null | null | null | subfinder/__init__.py | justcopy/subfinder | 1287f0348a3624696546b889ee7b7ac02e64fdb3 | [
"MIT"
] | null | null | null | subfinder/__init__.py | justcopy/subfinder | 1287f0348a3624696546b889ee7b7ac02e64fdb3 | [
"MIT"
] | null | null | null | __version__ = '2.1.0'
__author__ = 'ausaki'
| 14.666667 | 21 | 0.681818 | 6 | 44 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.136364 | 44 | 2 | 22 | 22 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
e4c26831eed1aaab8a66042fd32b69821927e11e | 172 | py | Python | lib/CronExecutor.py | amagdy/islamic_cron_jobs | 29dea92878e9f5fa1456d5c0b6368064dded47c6 | [
"Apache-2.0"
] | 1 | 2017-07-11T22:11:52.000Z | 2017-07-11T22:11:52.000Z | lib/CronExecutor.py | amagdy/islamic_cron_jobs | 29dea92878e9f5fa1456d5c0b6368064dded47c6 | [
"Apache-2.0"
] | null | null | null | lib/CronExecutor.py | amagdy/islamic_cron_jobs | 29dea92878e9f5fa1456d5c0b6368064dded47c6 | [
"Apache-2.0"
] | null | null | null | class CronExecutor(object):
def __init__(self):
# cron cache key is {<Date String YYY-mm-dd>: {<timestamp>: [<string command 1>...]}
self._cache = {}
| 28.666667 | 92 | 0.593023 | 21 | 172 | 4.619048 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.238372 | 172 | 5 | 93 | 34.4 | 0.732824 | 0.476744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e4df27ed1383e53e6a847662010809f52b98e8ee | 363 | py | Python | office365/onedrive/sharedDriveItemCollection.py | andrewcchoi/Office365-REST-Python-Client | 43db12ae532c804c75a3a34f7b0d7d79e30fdac3 | [
"MIT"
] | null | null | null | office365/onedrive/sharedDriveItemCollection.py | andrewcchoi/Office365-REST-Python-Client | 43db12ae532c804c75a3a34f7b0d7d79e30fdac3 | [
"MIT"
] | null | null | null | office365/onedrive/sharedDriveItemCollection.py | andrewcchoi/Office365-REST-Python-Client | 43db12ae532c804c75a3a34f7b0d7d79e30fdac3 | [
"MIT"
] | null | null | null | from office365.entity_collection import EntityCollection
from office365.onedrive.sharedDriveItem import SharedDriveItem
class SharedDriveItemCollection(EntityCollection):
"""sharedDriveItem's collection"""
def __init__(self, context, resource_path=None):
super(SharedDriveItemCollection, self).__init_... | 36.3 | 96 | 0.818182 | 33 | 363 | 8.666667 | 0.575758 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.107438 | 363 | 9 | 97 | 40.333333 | 0.864198 | 0.077135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9002c631bee1db44f89f8d496b18a746a991bfd7 | 2,182 | py | Python | main.py | Verduxo/colourful-banner | 664562fa2099dbe9a67734ffd6b24ade740761ae | [
"Unlicense"
] | 2 | 2021-07-19T10:41:07.000Z | 2021-07-22T15:54:52.000Z | main.py | Verduxo/colourful-banner | 664562fa2099dbe9a67734ffd6b24ade740761ae | [
"Unlicense"
] | null | null | null | main.py | Verduxo/colourful-banner | 664562fa2099dbe9a67734ffd6b24ade740761ae | [
"Unlicense"
] | null | null | null | #reg add HKEY_CURRENT_USER\Console /v VirtualTerminalLevel /t REG_DWORD /d 0x00000001 /f
colors = {\
'OKBLUE' : '\033[94m',
'OKGREEN' : '\033[92m',
'WARNING' : '\033[93m',
'RED' : '\033[1;31;40m',
}
def colorText(text):
for color in colors:
text = text.replace("[[" + color + "]... | 38.280702 | 108 | 0.243813 | 78 | 2,182 | 5.153846 | 0.474359 | 0.139303 | 0.156716 | 0.208955 | 0.139303 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0.028294 | 0.481668 | 2,182 | 57 | 109 | 38.280702 | 0.327144 | 0.039872 | 0 | 0.119048 | 0 | 0.142857 | 0.813634 | 0.108877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0 | 0 | 0.047619 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90201d3d23b74cf9e3b492f9403426a6642a9de2 | 211 | py | Python | expenses/urls.py | ksarthak4ever/Django-Bill_Splitting | 59ee546f9e034dfd21effa30629b75e42b07da92 | [
"MIT"
] | null | null | null | expenses/urls.py | ksarthak4ever/Django-Bill_Splitting | 59ee546f9e034dfd21effa30629b75e42b07da92 | [
"MIT"
] | null | null | null | expenses/urls.py | ksarthak4ever/Django-Bill_Splitting | 59ee546f9e034dfd21effa30629b75e42b07da92 | [
"MIT"
] | 1 | 2021-10-07T16:17:02.000Z | 2021-10-07T16:17:02.000Z | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.salary_month, name='month'),
path('<slug:salary_slug>/', views.expense_detail, name='detail')
] | 26.375 | 65 | 0.739336 | 29 | 211 | 5.275862 | 0.517241 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113744 | 211 | 8 | 66 | 26.375 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5f43d7a368d8fca492984710f65106b217ebe04e | 71 | py | Python | all_domains/python/built_ins/input.py | ejspeiro/HackerRank | 2e489588e8d7102acb676cc49fe07ee83e4f66e9 | [
"MIT"
] | null | null | null | all_domains/python/built_ins/input.py | ejspeiro/HackerRank | 2e489588e8d7102acb676cc49fe07ee83e4f66e9 | [
"MIT"
] | null | null | null | all_domains/python/built_ins/input.py | ejspeiro/HackerRank | 2e489588e8d7102acb676cc49fe07ee83e4f66e9 | [
"MIT"
] | null | null | null | ui = input().split()
x = int(ui[0])
print(eval(input()) == int(ui[1]))
| 17.75 | 34 | 0.549296 | 13 | 71 | 3 | 0.692308 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.126761 | 71 | 3 | 35 | 23.666667 | 0.596774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 3 |
5f4fbc362fa0069290d2f013d7593e5a465ea103 | 156 | py | Python | test_datas/home_data.py | gaoshanyu/sp-structure-sample | 3b16ef1a1ba49536c11178766c379d5edcbb4b4c | [
"MIT"
] | null | null | null | test_datas/home_data.py | gaoshanyu/sp-structure-sample | 3b16ef1a1ba49536c11178766c379d5edcbb4b4c | [
"MIT"
] | null | null | null | test_datas/home_data.py | gaoshanyu/sp-structure-sample | 3b16ef1a1ba49536c11178766c379d5edcbb4b4c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Created at 03/10/2020
__author__ = 'raniys'
class HomeData:
home_url = "https://www.python.org/"
search_text = "pycon"
| 15.6 | 40 | 0.621795 | 21 | 156 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072 | 0.198718 | 156 | 9 | 41 | 17.333333 | 0.656 | 0.275641 | 0 | 0 | 0 | 0 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 3 |
5f5da19e23118da804327e390a3d632a00e8fb0d | 1,633 | py | Python | pytwitter/models/place.py | MerleLiuKun/python-twitter | b3f7d93e006945cbc7baa5852e90ca2b4c93eac4 | [
"MIT"
] | 53 | 2020-08-31T04:23:35.000Z | 2022-03-30T13:20:21.000Z | pytwitter/models/place.py | MerleLiuKun/python-twitter | b3f7d93e006945cbc7baa5852e90ca2b4c93eac4 | [
"MIT"
] | 99 | 2020-12-13T12:44:44.000Z | 2022-03-29T02:51:13.000Z | pytwitter/models/place.py | MerleLiuKun/python-twitter | b3f7d93e006945cbc7baa5852e90ca2b4c93eac4 | [
"MIT"
] | 13 | 2020-12-13T12:47:05.000Z | 2021-12-18T07:29:38.000Z | """
Place object
Refer: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/place
"""
from dataclasses import dataclass, field, make_dataclass
from typing import Dict, List, Optional, Union
from .base import BaseModel
@dataclass
class PlaceGeoProperties(BaseModel):
name: Opti... | 31.403846 | 95 | 0.660747 | 187 | 1,633 | 5.68984 | 0.336898 | 0.135338 | 0.180451 | 0.169173 | 0.358083 | 0.238722 | 0.176692 | 0.075188 | 0 | 0 | 0 | 0 | 0.22229 | 1,633 | 51 | 96 | 32.019608 | 0.837795 | 0.085732 | 0 | 0.151515 | 0 | 0 | 0.012312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 3 |
5f6ffbe11ed4e2ef4dcf419a2cdd435f58521cfb | 163 | py | Python | src/genie/libs/parser/iosxe/tests/ShowIPAlias/cli/equal/golden_output3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowIPAlias/cli/equal/golden_output3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowIPAlias/cli/equal/golden_output3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"vrf": {
"L3VPN-1538": {
"index": {1: {"address_type": "Interface", "ip_address": "192.168.10.254"}}
}
}
}
| 20.375 | 87 | 0.460123 | 16 | 163 | 4.5 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 0.319018 | 163 | 7 | 88 | 23.285714 | 0.495496 | 0 | 0 | 0 | 0 | 0 | 0.386503 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f7c20b7a40defb9da3bf832bb5726242f953327 | 113 | py | Python | Modulo 2/047.py | thiago19maciel/Exercicios-em-Python | 0d46816caf655c6e870510bb1136964854fc875f | [
"MIT"
] | 1 | 2022-03-22T22:36:48.000Z | 2022-03-22T22:36:48.000Z | Modulo 2/047.py | thiago19maciel/Exercicios-em-Python | 0d46816caf655c6e870510bb1136964854fc875f | [
"MIT"
] | null | null | null | Modulo 2/047.py | thiago19maciel/Exercicios-em-Python | 0d46816caf655c6e870510bb1136964854fc875f | [
"MIT"
] | null | null | null | contPares = 0
print('Numeros pares: ',end='')
for i in range(1,51):
if i % 2 == 0:
print(i, end=' ')
| 18.833333 | 31 | 0.513274 | 19 | 113 | 3.052632 | 0.736842 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.274336 | 113 | 5 | 32 | 22.6 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 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 | 3 |
5f8819792b1588c232cd19675ebe513f7038dfb9 | 133 | py | Python | djangosige/apps/login/apps.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/login/apps.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/login/apps.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class LoginConfig(AppConfig):
name = 'login'
| 16.625 | 40 | 0.744361 | 15 | 133 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203008 | 133 | 7 | 41 | 19 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5f91eff95681ec136d605d011a70cbd79e334c65 | 3,922 | py | Python | entity_resolution/AddRecordsBuilderClass.py | GeoJamesJones/ArcGIS-Senzing-Prototype | ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b | [
"MIT"
] | null | null | null | entity_resolution/AddRecordsBuilderClass.py | GeoJamesJones/ArcGIS-Senzing-Prototype | ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b | [
"MIT"
] | null | null | null | entity_resolution/AddRecordsBuilderClass.py | GeoJamesJones/ArcGIS-Senzing-Prototype | ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b | [
"MIT"
] | null | null | null | from __future__ import annotations
from logging import error
from typing import List
from entity_resolution.AddRecordClass import AddRecords
from entity_resolution.interfaces import IAddRecordsBuilder
from entity_resolution.utils import error_handler, Logger
class AddRecordToEntityStore(IAddRecordsBuilder):
def _... | 41.284211 | 111 | 0.724885 | 459 | 3,922 | 5.888889 | 0.167756 | 0.096189 | 0.119127 | 0.199778 | 0.499075 | 0.441731 | 0.370329 | 0.174621 | 0.124306 | 0.124306 | 0 | 0.000322 | 0.207547 | 3,922 | 95 | 112 | 41.284211 | 0.869369 | 0 | 0 | 0.205479 | 0 | 0 | 0.029824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232877 | false | 0 | 0.082192 | 0 | 0.561644 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5fa0dbab121a1d059dd1f98284e51e1a0c955ce6 | 392 | py | Python | kwat/plot/NAME_COLORSCALE.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T17:50:28.000Z | 2019-01-30T19:23:02.000Z | kwat/plot/NAME_COLORSCALE.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-05-05T01:52:31.000Z | 2019-04-20T21:06:05.000Z | kwat/plot/NAME_COLORSCALE.py | KwatME/ccal | d96dfa811482eee067f346386a2181ec514625f4 | [
"MIT"
] | 5 | 2017-07-17T18:55:54.000Z | 2019-02-02T04:46:19.000Z | from plotly.colors import make_colorscale, qualitative
NAME_COLORSCALE = {
"binary": make_colorscale(["#006442", "#ffffff", "#ffb61e"]),
"categorical": make_colorscale(qualitative.Plotly),
"continuous": make_colorscale(["#0000ff", "#ffffff", "#ff0000"]),
"human": make_colorscale(["#4b3c39", "#ffffff", ... | 39.2 | 69 | 0.665816 | 37 | 392 | 6.864865 | 0.567568 | 0.330709 | 0.19685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0.119898 | 392 | 9 | 70 | 43.555556 | 0.663768 | 0 | 0 | 0 | 0 | 0 | 0.298469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
5fbb2281b13b9d9ce76b67b16a0b7f4672aad8dc | 5,293 | py | Python | tests/markdown_test/blockquote_test.py | Cal-CS-61A-Staff/templar | 2c2a5a544da377e3c311750fadd6606bba3b7e75 | [
"MIT"
] | 6 | 2015-05-04T06:17:49.000Z | 2021-09-11T00:13:14.000Z | tests/markdown_test/blockquote_test.py | albert12132/templar | 39851c89730ab69e5c73d0a46adca2a44ecc4165 | [
"MIT"
] | 17 | 2015-01-07T03:25:47.000Z | 2016-10-08T03:53:44.000Z | tests/markdown_test/blockquote_test.py | Cal-CS-61A-Staff/templar | 2c2a5a544da377e3c311750fadd6606bba3b7e75 | [
"MIT"
] | 6 | 2015-10-08T11:37:17.000Z | 2019-06-03T21:27:52.000Z | from tests.markdown_test.test_utils import MarkdownTest
class BlockquoteTest(MarkdownTest):
def testBasic(self):
text = "> Block quote basic"
expect = """
<blockquote><p>Block quote basic</p></blockquote>
"""
self.assertMarkdown(text, expect)
def testMultiline(self):
... | 22.054167 | 70 | 0.470999 | 458 | 5,293 | 5.438865 | 0.128821 | 0.076275 | 0.088719 | 0.068246 | 0.774388 | 0.710558 | 0.575672 | 0.50823 | 0.417503 | 0.415897 | 0 | 0.005634 | 0.396373 | 5,293 | 239 | 71 | 22.146444 | 0.774022 | 0 | 0 | 0.780488 | 0 | 0 | 0.640401 | 0.0565 | 0 | 0 | 0 | 0 | 0.078049 | 1 | 0.04878 | false | 0 | 0.004878 | 0 | 0.058537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3970d749126ea6641539499c438acb0dd9352035 | 37 | py | Python | tests/inputs/future-features/67-all-bool-ops.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 4 | 2019-10-06T18:01:24.000Z | 2020-07-03T05:27:35.000Z | tests/inputs/future-features/67-all-bool-ops.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 5 | 2021-06-07T15:50:04.000Z | 2021-06-07T15:50:06.000Z | tests/inputs/future-features/67-all-bool-ops.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | null | null | null | a = True and False
b = True or False
| 12.333333 | 18 | 0.675676 | 8 | 37 | 3.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27027 | 37 | 2 | 19 | 18.5 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
3976427b61e5b40037a246b26e4c08f8c64ddbc5 | 132 | py | Python | sandbox_maml/rocky/tf/distributions/recurrent_diagonal_gaussian.py | jackwilkinson255/mbmpo_master | e9e0eaf542c7895764dcb0bfee28752818124ff2 | [
"MIT"
] | 28 | 2018-11-15T14:14:23.000Z | 2022-01-10T01:53:43.000Z | sandbox_maml/rocky/tf/distributions/recurrent_diagonal_gaussian.py | hongzimao/model_ensemble_meta_learning | 8b1351df94dfe530efaff1118022315c8d877774 | [
"MIT"
] | 3 | 2019-05-05T23:39:01.000Z | 2021-06-15T15:28:06.000Z | sandbox_maml/rocky/tf/distributions/recurrent_diagonal_gaussian.py | hongzimao/model_ensemble_meta_learning | 8b1351df94dfe530efaff1118022315c8d877774 | [
"MIT"
] | 14 | 2018-11-15T16:47:02.000Z | 2021-05-28T14:58:01.000Z |
from sandbox_maml.rocky.tf.distributions.diagonal_gaussian import DiagonalGaussian
RecurrentDiagonalGaussian = DiagonalGaussian
| 18.857143 | 82 | 0.878788 | 12 | 132 | 9.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 132 | 6 | 83 | 22 | 0.942149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3984d7fed67d45d6455e5e7c7b1b282ff1f6adb4 | 2,403 | py | Python | lightbus/internal_apis.py | gcollard/lightbus | d04deeda8ccef5a582b79255725ca2025a085c02 | [
"Apache-2.0"
] | 178 | 2017-07-22T12:35:00.000Z | 2022-03-28T07:53:13.000Z | lightbus/internal_apis.py | adamcharnock/warren | 5e7069da06cd37a8131e8c592ee957ccb73603d5 | [
"Apache-2.0"
] | 26 | 2017-08-03T12:09:29.000Z | 2021-10-19T16:47:18.000Z | lightbus/internal_apis.py | adamcharnock/warren | 5e7069da06cd37a8131e8c592ee957ccb73603d5 | [
"Apache-2.0"
] | 19 | 2017-09-15T17:51:24.000Z | 2022-02-28T13:00:16.000Z | from lightbus.api import Api, Event
class LightbusStateApi(Api):
"""The API for the state plugin"""
worker_started = Event(
parameters=[
"service_name",
"process_name",
"metrics_enabled",
"api_names",
"listening_for",
"timestamp"... | 22.885714 | 100 | 0.467749 | 189 | 2,403 | 5.640212 | 0.21164 | 0.140713 | 0.185741 | 0.219512 | 0.748593 | 0.672608 | 0.672608 | 0.665103 | 0.665103 | 0.665103 | 0 | 0 | 0.416563 | 2,403 | 104 | 101 | 23.105769 | 0.760342 | 0.024553 | 0 | 0.655914 | 0 | 0 | 0.279469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010753 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39a3f79dc339cedc98ba297739af6f5d2e210067 | 72 | py | Python | __init__.py | cosylabiiit/biclique-clustering | c92628b4161c1710f5906504dad74d43d32cff58 | [
"MIT"
] | 2 | 2018-08-16T11:57:26.000Z | 2021-07-30T02:02:37.000Z | __init__.py | cosylabiiit/biclique-clustering | c92628b4161c1710f5906504dad74d43d32cff58 | [
"MIT"
] | 1 | 2018-08-16T16:27:32.000Z | 2018-08-17T08:14:27.000Z | __init__.py | cosylabiiit/biclique-clustering | c92628b4161c1710f5906504dad74d43d32cff58 | [
"MIT"
] | 2 | 2018-08-16T15:17:16.000Z | 2021-08-30T13:26:27.000Z | from .bicliques import MaximalBicliques
__all__ = ['MaximalBicliques']
| 18 | 39 | 0.805556 | 6 | 72 | 9 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 3 | 40 | 24 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
39a541fbd191289d1e4998c7db3a2e9a24c571a9 | 3,441 | py | Python | server/toolz_swap_app/filterviews.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | server/toolz_swap_app/filterviews.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | server/toolz_swap_app/filterviews.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | from rest_framework import viewsets, permissions, generics, filters
from rest_framework.decorators import action
from django.shortcuts import get_object_or_404
from rest_framework.response import Response
from .models import *
from .serializers import *
from .queries import *
# Viewsets for specific queries
# all view... | 30.451327 | 80 | 0.712293 | 410 | 3,441 | 5.782927 | 0.197561 | 0.022775 | 0.073809 | 0.082666 | 0.737242 | 0.712358 | 0.689582 | 0.66512 | 0.66512 | 0.66512 | 0 | 0.001115 | 0.218251 | 3,441 | 113 | 81 | 30.451327 | 0.880297 | 0.231909 | 0 | 0.507937 | 0 | 0 | 0.02511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
39af19f5d87c1bcf89a539ea0f7fe0fa2dd777f7 | 11,374 | py | Python | venv/Lib/site-packages/_TFL/Filter.py | nasir733/airbnb-clone | 9ac746b6f3f3c8fc45f97773266e6f5f182d14b9 | [
"MIT"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | venv/Lib/site-packages/_TFL/Filter.py | nasir733/airbnb-clone | 9ac746b6f3f3c8fc45f97773266e6f5f182d14b9 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/_TFL/Filter.py | nasir733/airbnb-clone | 9ac746b6f3f3c8fc45f97773266e6f5f182d14b9 | [
"MIT"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2008-2020 Mag. Christian Tanzer. All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# ****************************************************************************
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.... | 33.063953 | 80 | 0.576314 | 1,601 | 11,374 | 3.772017 | 0.164272 | 0.025832 | 0.011923 | 0.015897 | 0.482365 | 0.422752 | 0.360159 | 0.301706 | 0.278192 | 0.210796 | 0 | 0.085601 | 0.269738 | 11,374 | 343 | 81 | 33.16035 | 0.640621 | 0.666081 | 0 | 0.227273 | 0 | 0 | 0.024224 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 1 | 0.25 | false | 0 | 0.056818 | 0.181818 | 0.704545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
39df4628846428a1da16bb726545c10d4aa50f5a | 1,519 | py | Python | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/arguments_differ_py3.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 463 | 2015-01-15T08:17:42.000Z | 2022-03-28T15:10:20.000Z | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/arguments_differ_py3.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 52 | 2015-01-06T02:43:59.000Z | 2022-03-14T11:15:21.000Z | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/arguments_differ_py3.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 249 | 2015-01-07T22:49:49.000Z | 2022-03-18T02:32:06.000Z | # pylint: disable=missing-docstring,too-few-public-methods
class AbstractFoo:
def kwonly_1(self, first, *, second, third):
"Normal positional with two positional only params."
def kwonly_2(self, *, first, second):
"Two positional only parameter."
def kwonly_3(self, *, first, second):
... | 31.645833 | 82 | 0.666886 | 192 | 1,519 | 5.208333 | 0.296875 | 0.117 | 0.12 | 0.042 | 0.538 | 0.404 | 0.22 | 0.116 | 0.116 | 0.116 | 0 | 0.011885 | 0.22449 | 1,519 | 47 | 83 | 32.319149 | 0.837012 | 0.487821 | 0 | 0.068966 | 0 | 0 | 0.410835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.068966 | 0 | 0 | 0.551724 | 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 | 1 | 0 | 0 | 3 |
39e35472033d632d3c7e9e51df04b19f06b76c8b | 121 | py | Python | RNN-model/read.py | sekijima-lab/MOMolGen | 57869f11b90f0afed9064a045a73c8e6ae7d8197 | [
"MIT"
] | null | null | null | RNN-model/read.py | sekijima-lab/MOMolGen | 57869f11b90f0afed9064a045a73c8e6ae7d8197 | [
"MIT"
] | null | null | null | RNN-model/read.py | sekijima-lab/MOMolGen | 57869f11b90f0afed9064a045a73c8e6ae7d8197 | [
"MIT"
] | null | null | null | import h5py
f = h5py.File('model.h5','r')
for key in f.keys():
print(f[key].name)
print(f[key].value) | 17.285714 | 30 | 0.553719 | 21 | 121 | 3.190476 | 0.666667 | 0.179104 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.247934 | 121 | 7 | 31 | 17.285714 | 0.703297 | 0 | 0 | 0 | 0 | 0 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
f2f02b61eb6af4d163fe79f5f0301cbef1f73f82 | 1,394 | py | Python | MIDI Remote Scripts/pushbase/pad_control.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | MIDI Remote Scripts/pushbase/pad_control.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | MIDI Remote Scripts/pushbase/pad_control.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\pad_control.py
# Compiled at: 2018-11-30 15:48:12
from __fut... | 43.5625 | 124 | 0.727403 | 171 | 1,394 | 5.573099 | 0.473684 | 0.24554 | 0.13851 | 0.050367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045053 | 0.187948 | 1,394 | 32 | 125 | 43.5625 | 0.79682 | 0.214491 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.052632 | 0.526316 | 0.052632 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.