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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e7b7b6780c52393df8c2532153499ffb9faa801 | 2,452 | py | Python | attack_above_three_agent.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | null | null | null | attack_above_three_agent.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | null | null | null | attack_above_three_agent.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | null | null | null | import random
from agent import Agent
class AttackAboveThreeAgent(Agent):
"""
a random agent that attacks when it has more than three soldiers in a territory
"""
# overriding abstract method
def reinforce_owned_territory(self, state):
territories = state.board.border_territories(state.pla... | 33.135135 | 88 | 0.685563 | 278 | 2,452 | 5.870504 | 0.219424 | 0.121324 | 0.161765 | 0.181985 | 0.554534 | 0.525123 | 0.240809 | 0.240809 | 0.197304 | 0.197304 | 0 | 0.00649 | 0.245922 | 2,452 | 73 | 89 | 33.589041 | 0.876149 | 0.153752 | 0 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0 | 0.043478 | 0.043478 | 0.586957 | 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 |
0e7c745b01358f756dc8eed2a10996528e9f56b0 | 3,294 | py | Python | plugin.video.gdrive/service.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 2 | 2018-11-02T19:55:30.000Z | 2020-08-14T02:22:20.000Z | plugin.video.gdrive/service.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | null | null | null | plugin.video.gdrive/service.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 3 | 2019-12-17T20:47:00.000Z | 2021-02-11T19:03:59.000Z | '''
CloudService XBMC Plugin
Copyright (C) 2013-2014 ddurdle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ver... | 29.410714 | 155 | 0.765027 | 440 | 3,294 | 5.670455 | 0.456818 | 0.098998 | 0.121844 | 0.167535 | 0.066533 | 0.022445 | 0 | 0 | 0 | 0 | 0 | 0.016322 | 0.163024 | 3,294 | 111 | 156 | 29.675676 | 0.888647 | 0.189435 | 0 | 0.076923 | 0 | 0 | 0.027013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.519231 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0e7d752d2744fb35bc3e15cfe045b586319e6b6e | 268 | py | Python | 597.py | ssd352/quera-solutions | 7c7b572a26c3c1648f23528bcc661dec18b44943 | [
"MIT"
] | 1 | 2020-03-16T21:13:14.000Z | 2020-03-16T21:13:14.000Z | 597.py | ssd352/quera-solutions | 7c7b572a26c3c1648f23528bcc661dec18b44943 | [
"MIT"
] | null | null | null | 597.py | ssd352/quera-solutions | 7c7b572a26c3c1648f23528bcc661dec18b44943 | [
"MIT"
] | 2 | 2020-03-27T18:40:40.000Z | 2020-07-30T14:59:55.000Z | # 1, 2, 3, 4, 5, 6, 7, 8, 9
# 0, 1, 1, -1, -1, 2, 2, -2, -2
# 0, 0, 1, 1, -1, -1, 2, 2, -2, -2
def seq(n):
a = (n - 1) // 2
b = (n + 1) // 4
if a % 2 == 0:
return -b
else:
return b
n = int(input())
x = seq(n + 1)
y = seq(n)
print(x, y)
| 17.866667 | 34 | 0.347015 | 61 | 268 | 1.52459 | 0.377049 | 0.129032 | 0.129032 | 0.086022 | 0.193548 | 0.193548 | 0.193548 | 0.193548 | 0.193548 | 0 | 0 | 0.212121 | 0.384328 | 268 | 14 | 35 | 19.142857 | 0.351515 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e82b7d7872251fcaba06ca32a96ef3d2686b9dc | 344 | py | Python | scripts/get_title.py | callmexss/pytoolet | 8542c8361c11e4c7d8625823f98d327e52fe56d2 | [
"MIT"
] | null | null | null | scripts/get_title.py | callmexss/pytoolet | 8542c8361c11e4c7d8625823f98d327e52fe56d2 | [
"MIT"
] | null | null | null | scripts/get_title.py | callmexss/pytoolet | 8542c8361c11e4c7d8625823f98d327e52fe56d2 | [
"MIT"
] | null | null | null | '''
File: get_title.py
File Created: Wednesday, 28th November 2018 5:07:41 pm
Author: xss (callmexss@126.com)
Description: Get title format string.
-----
Last Modified: Wednesday, 28th November 2018 5:07:52 pm
Modified By: xss (callmexss@126.com)
-----
'''
import clipboard
s = clipboard.paste()
c... | 22.933333 | 55 | 0.680233 | 49 | 344 | 4.755102 | 0.612245 | 0.06867 | 0.180258 | 0.214592 | 0.240343 | 0.240343 | 0 | 0 | 0 | 0 | 0 | 0.099291 | 0.180233 | 344 | 15 | 56 | 22.933333 | 0.72695 | 0.781977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
0e8e1e473ed5a4d2dd06642263020578742324b9 | 8,197 | py | Python | app/dl_scripts/anomaly_detector/utils/features_loader.py | subhailams/Deep-See-Crime | 6bc1dae01a9b3121cc82d285134b3dcc8edc8470 | [
"MIT"
] | 2 | 2021-11-08T21:32:39.000Z | 2022-03-27T13:40:51.000Z | app/dl_scripts/anomaly_detector/utils/features_loader.py | subhailams/Deep-See-Crime | 6bc1dae01a9b3121cc82d285134b3dcc8edc8470 | [
"MIT"
] | null | null | null | app/dl_scripts/anomaly_detector/utils/features_loader.py | subhailams/Deep-See-Crime | 6bc1dae01a9b3121cc82d285134b3dcc8edc8470 | [
"MIT"
] | 4 | 2020-11-30T14:10:33.000Z | 2022-03-03T09:59:00.000Z | import logging
import os
import random
from os import path
import numpy as np
import torch
from torch.utils import data
from .feature_extractor import read_features
class FeaturesLoader(data.Dataset):
def __init__(self,
features_path,
annotation_path,
name="<NO_N... | 40.579208 | 108 | 0.611565 | 981 | 8,197 | 4.839959 | 0.134557 | 0.113732 | 0.107835 | 0.064869 | 0.768745 | 0.76369 | 0.711036 | 0.663858 | 0.637532 | 0.635847 | 0 | 0.007229 | 0.291204 | 8,197 | 201 | 109 | 40.781095 | 0.809983 | 0.027571 | 0 | 0.652439 | 0 | 0 | 0.039684 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 1 | 0.073171 | false | 0 | 0.04878 | 0.012195 | 0.195122 | 0.006098 | 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 |
0e940b97066e22effe2617f8ca4662d9fbd1a120 | 983 | py | Python | django_cradmin/uicontainer/layout.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 11 | 2015-07-05T16:57:58.000Z | 2020-11-24T16:58:19.000Z | django_cradmin/uicontainer/layout.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 91 | 2015-01-08T22:38:13.000Z | 2022-02-10T10:25:27.000Z | django_cradmin/uicontainer/layout.py | appressoas/django_cradmin | 0f8715afdfe1ad32e46033f442e622aecf6a4dec | [
"BSD-3-Clause"
] | 3 | 2016-12-07T12:19:24.000Z | 2018-10-03T14:04:18.000Z | from . import container
class AdminuiPageSection(container.AbstractContainerRenderable):
"""
``adminui-page-section`` BEM block.
"""
def get_default_bem_block_or_element(self):
return 'adminui-page-section'
def get_default_test_css_class_suffixes_list(self):
return ['adminui-page-... | 24.575 | 70 | 0.685656 | 107 | 983 | 6.018692 | 0.261682 | 0.074534 | 0.121118 | 0.099379 | 0.630435 | 0.518634 | 0.518634 | 0.518634 | 0.518634 | 0.518634 | 0 | 0 | 0.19939 | 983 | 39 | 71 | 25.205128 | 0.818297 | 0.186165 | 0 | 0.470588 | 0 | 0 | 0.092016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0e9db31b7c7a88967e6f03ceb9a1013c9656eb32 | 151 | py | Python | Prova_Mundo2.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | 1 | 2021-11-23T21:41:25.000Z | 2021-11-23T21:41:25.000Z | Prova_Mundo2.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | Prova_Mundo2.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | # Prova Mundo 02
# Rascunhos da Prova do Mundo 2
#Nota: 90%
n = ' nilseia'.upper().strip()[0]
print(n)
for c in range(0, 10):
print(c) | 16.777778 | 44 | 0.576159 | 26 | 151 | 3.346154 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.264901 | 151 | 9 | 45 | 16.777778 | 0.702703 | 0.350993 | 0 | 0 | 0 | 0 | 0.2 | 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 |
0ea1fdc931b022ccc37106b444184d9d616ccb3c | 336 | py | Python | djangocms_markdown/models.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | djangocms_markdown/models.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | djangocms_markdown/models.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
# from django.utils.encoding import python_2_unicode_compatible
from six import python_2_unicode_compatible
from cms.models import CMSPlugin
@python_2_unicode_compatible
class Markdown(CMSPlugin):
body = models.TextField()
def __str__(self):
retur... | 24 | 63 | 0.761905 | 46 | 336 | 5.282609 | 0.565217 | 0.08642 | 0.17284 | 0.296296 | 0.279835 | 0.279835 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.151786 | 336 | 14 | 64 | 24 | 0.831579 | 0.247024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
0ea524674832fc0c2a83512ef47550d6c50efdfb | 236 | py | Python | OttBands1min/jessetkdata/dnafiles/refined.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 38 | 2021-09-18T15:33:28.000Z | 2022-02-21T17:29:08.000Z | OttBands1min/jessetkdata/dnafiles/refined.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 4 | 2022-01-02T14:46:12.000Z | 2022-02-16T18:39:41.000Z | OttBands1min/jessetkdata/dnafiles/refined.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 11 | 2021-10-19T06:21:43.000Z | 2022-02-21T17:29:10.000Z | dnas = [
['hY?9', 56, 25, 8.21, 47, 21, -2.56, {'ott_len': 43, 'ott_percent': 196, 'ott_bw': 124, 'tps_qty_index': 215}],
['st7M', 67, 43, 17.72, 55, 29, 5.52, {'ott_len': 49, 'ott_percent': 299, 'ott_bw': 84, 'tps_qty_index': 468}],
]
| 47.2 | 112 | 0.572034 | 46 | 236 | 2.717391 | 0.695652 | 0.096 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257426 | 0.144068 | 236 | 4 | 113 | 59 | 0.361386 | 0 | 0 | 0 | 0 | 0 | 0.347458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
7eb7d42f9b75a6f7cb85f793c38de248f73896a8 | 2,419 | py | Python | tests/test_uptime.py | philippeitis/jc | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | [
"MIT"
] | null | null | null | tests/test_uptime.py | philippeitis/jc | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | [
"MIT"
] | null | null | null | tests/test_uptime.py | philippeitis/jc | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | [
"MIT"
] | null | null | null | import os
import json
import unittest
import jc.parsers.uptime
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
def setUp(self):
# input
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/uptime.out'), 'r') as f:
self.centos_... | 37.215385 | 116 | 0.648202 | 397 | 2,419 | 3.690176 | 0.133501 | 0.054608 | 0.05529 | 0.076451 | 0.819113 | 0.784983 | 0.748805 | 0.569966 | 0.524915 | 0.463481 | 0 | 0.063476 | 0.205457 | 2,419 | 64 | 117 | 37.796875 | 0.698751 | 0.052914 | 0 | 0 | 0 | 0 | 0.143833 | 0.13655 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.151515 | false | 0 | 0.121212 | 0 | 0.30303 | 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 |
7eb9c1f0629d50574b240ad502151f0ad69d9e70 | 833 | py | Python | solidity/python/FormulaNativePython/__init__.py | dabdevelop/bancorprotocol-contracts | 53894df7f4c31828188b11c9a974da6413579799 | [
"Apache-2.0"
] | null | null | null | solidity/python/FormulaNativePython/__init__.py | dabdevelop/bancorprotocol-contracts | 53894df7f4c31828188b11c9a974da6413579799 | [
"Apache-2.0"
] | null | null | null | solidity/python/FormulaNativePython/__init__.py | dabdevelop/bancorprotocol-contracts | 53894df7f4c31828188b11c9a974da6413579799 | [
"Apache-2.0"
] | null | null | null | from decimal import Decimal
from decimal import getcontext
getcontext().prec = 80 # 78 digits for a maximum of 2^256-1, and 2 more digits for after the decimal point
def calculatePurchaseReturn(_supply, _reserveBalance, _reserveRatio, _depositAmount):
return Decimal(_supply)*((1+Decimal(_depositAmount)/Decimal(... | 37.863636 | 114 | 0.77431 | 96 | 833 | 6.385417 | 0.40625 | 0.084829 | 0.055465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029294 | 0.098439 | 833 | 21 | 115 | 39.666667 | 0.786951 | 0.097239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.181818 | 0.363636 | 0.909091 | 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 |
7ec3a869bd409e43abe22da858e39a2c0c71778e | 331 | py | Python | quick_django/main/views.py | masatoman/django_test | a850864e132246cffc9d7e2ad308c68623f79bd0 | [
"MIT"
] | null | null | null | quick_django/main/views.py | masatoman/django_test | a850864e132246cffc9d7e2ad308c68623f79bd0 | [
"MIT"
] | null | null | null | quick_django/main/views.py | masatoman/django_test | a850864e132246cffc9d7e2ad308c68623f79bd0 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
def temp(request):
context = {
'msg': 'hallow temp'
}
return render(request, 'main/temp.html', context)
# リクエスト情報を受け取る
def index(request):
# レスポンスを生成する
return HttpResponse('hollow world!')
# Create your v... | 20.6875 | 53 | 0.664653 | 37 | 331 | 5.945946 | 0.675676 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23565 | 331 | 15 | 54 | 22.066667 | 0.869565 | 0.141994 | 0 | 0 | 0 | 0 | 0.146429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 |
7ede8a81bf94b11b016085cca2bec20ed905f7c8 | 164 | py | Python | cart/urls.py | HicaroD/SkinStore | 946b2bd394ce579507555af568d7c2e313201254 | [
"MIT"
] | 1 | 2022-03-02T23:07:33.000Z | 2022-03-02T23:07:33.000Z | cart/urls.py | HicaroD/SkinStore | 946b2bd394ce579507555af568d7c2e313201254 | [
"MIT"
] | null | null | null | cart/urls.py | HicaroD/SkinStore | 946b2bd394ce579507555af568d7c2e313201254 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("", views.cart, name="cart"),
path("add/<int:pk>", views.add_to_cart, name="add")
]
| 18.222222 | 55 | 0.646341 | 24 | 164 | 4.333333 | 0.541667 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 164 | 8 | 56 | 20.5 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 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 |
7ef0e300c4ba6241d831f1967e58dd039887209d | 9,478 | py | Python | Examples/ApiExamples/ex_utility_classes.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 3 | 2021-12-04T22:17:28.000Z | 2022-02-22T03:30:01.000Z | Examples/ApiExamples/ex_utility_classes.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 4 | 2021-11-26T10:01:06.000Z | 2021-12-14T15:01:11.000Z | Examples/ApiExamples/ex_utility_classes.py | alex-dudin/Aspose.Words-for-Python-via-.NET | 02b257df8da9892fcce671c473c2ef27b68b5087 | [
"MIT"
] | 2 | 2021-10-20T18:06:22.000Z | 2021-10-29T20:59:18.000Z | # Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved.
#
# This file is part of Aspose.Words. The source code in this file
# is only intended as a supplement to the documentation, and is provided
# "as is", without warranty of any kind, either expressed or implied.
import aspose.words as aw
from api_example_b... | 50.414894 | 150 | 0.707217 | 1,348 | 9,478 | 4.746291 | 0.127596 | 0.116755 | 0.075961 | 0.070334 | 0.813379 | 0.799156 | 0.703657 | 0.609878 | 0.544858 | 0.445452 | 0 | 0.030371 | 0.200992 | 9,478 | 187 | 151 | 50.684492 | 0.814472 | 0.203629 | 0 | 0.22549 | 0 | 0.098039 | 0.240603 | 0.169288 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.039216 | false | 0 | 0.019608 | 0 | 0.068627 | 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 |
7efbfc4da4f524703e0eb2b9423b1998b34ec26b | 289 | py | Python | Planet.py | bitblitz/galactic_trek | 263f340902ae56b9c52e0743d8f3ae5167a93bc2 | [
"MIT"
] | null | null | null | Planet.py | bitblitz/galactic_trek | 263f340902ae56b9c52e0743d8f3ae5167a93bc2 | [
"MIT"
] | null | null | null | Planet.py | bitblitz/galactic_trek | 263f340902ae56b9c52e0743d8f3ae5167a93bc2 | [
"MIT"
] | null | null | null | from ISectorContent import ISectorContent
class Planet(ISectorContent):
def __init__(self, coord):
self.type = 'M'
self.coordinate = coord # create a place to store the coordinate for the object, but don't initialize it yet
def asChar(self):
return '+'
| 26.272727 | 117 | 0.678201 | 37 | 289 | 5.189189 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245675 | 289 | 10 | 118 | 28.9 | 0.880734 | 0.283737 | 0 | 0 | 0 | 0 | 0.009756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7d07142d1ed442e56f69183c21221f5eb37b252d | 131 | py | Python | example/text_display/generate_glyph.py | Wynjones1/VHDL-Build | 90f750eacfcbe6d8f7847a3560cb94b9e7440bcf | [
"MIT"
] | null | null | null | example/text_display/generate_glyph.py | Wynjones1/VHDL-Build | 90f750eacfcbe6d8f7847a3560cb94b9e7440bcf | [
"MIT"
] | null | null | null | example/text_display/generate_glyph.py | Wynjones1/VHDL-Build | 90f750eacfcbe6d8f7847a3560cb94b9e7440bcf | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.7
def main(argv):
filename = argv[1]
with open(filename, "r") as fp:
for i in xrange(128):
| 18.714286 | 35 | 0.587786 | 22 | 131 | 3.5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.251908 | 131 | 6 | 36 | 21.833333 | 0.72449 | 0.175573 | 0 | 0 | 0 | 0 | 0.009346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d0ac957623c60ad007790fb28951a365607681e | 253 | py | Python | tests/test_loss.py | HephaestusProject/pytorch-CharLM | ebe8b9a04c4ba4dcf78d1f2673edb90731a5f3ad | [
"MIT"
] | 4 | 2020-08-29T07:51:19.000Z | 2021-12-31T12:26:46.000Z | tests/test_loss.py | HephaestusProject/pytorch-CharLM | ebe8b9a04c4ba4dcf78d1f2673edb90731a5f3ad | [
"MIT"
] | 7 | 2020-07-25T06:12:47.000Z | 2021-06-10T15:52:16.000Z | tests/test_loss.py | HephaestusProject/pytorch-CharLM | ebe8b9a04c4ba4dcf78d1f2673edb90731a5f3ad | [
"MIT"
] | 1 | 2021-12-31T12:26:21.000Z | 2021-12-31T12:26:21.000Z | import torch
from losses import TokenNLLLoss
def test_loss():
loss_function = TokenNLLLoss(reduction="mean", ignore_index=-99)
loss = loss_function(torch.rand(size=(10, 5, 16)), torch.randint(0, 16, size=(10, 5)))
assert loss is not None
| 25.3 | 90 | 0.70751 | 38 | 253 | 4.605263 | 0.657895 | 0.091429 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061321 | 0.162055 | 253 | 9 | 91 | 28.111111 | 0.764151 | 0 | 0 | 0 | 0 | 0 | 0.01581 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
7d348c397b49909877af6dea292e37f5cdc88333 | 73 | py | Python | index.py | chenfudebuyi/test21 | 7dc6273d5bf2284e6ed633d4b760cdcb336bde35 | [
"MIT"
] | null | null | null | index.py | chenfudebuyi/test21 | 7dc6273d5bf2284e6ed633d4b760cdcb336bde35 | [
"MIT"
] | null | null | null | index.py | chenfudebuyi/test21 | 7dc6273d5bf2284e6ed633d4b760cdcb336bde35 | [
"MIT"
] | null | null | null | num = 10
num = 20
num = 30
num = 40
num = 50
num = 66
num = 60
num = 70
| 7.3 | 8 | 0.547945 | 16 | 73 | 2.5 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.342466 | 73 | 9 | 9 | 8.111111 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d35bff92eed180fb2d580292b61460cc36a765d | 904 | py | Python | src/base/environment.py | AbhinavGopal/ts_tutorial | 147ff28dc507172774693f225071f8e244e5994e | [
"MIT"
] | 290 | 2017-12-29T01:55:21.000Z | 2022-03-28T10:00:32.000Z | src/base/environment.py | AbhinavGopal/ts_tutorial | 147ff28dc507172774693f225071f8e244e5994e | [
"MIT"
] | 3 | 2018-08-02T11:45:51.000Z | 2020-09-24T14:34:58.000Z | src/base/environment.py | AbhinavGopal/ts_tutorial | 147ff28dc507172774693f225071f8e244e5994e | [
"MIT"
] | 76 | 2018-01-17T06:19:51.000Z | 2021-11-10T06:18:20.000Z | """ Environment determines the underlying law of the system.
All bandit problems should inherit from environment.
"""
import numpy as np
##############################################################################
class Environment(object):
"""Base class for all bandit environments."""
def __init__(self):
... | 24.432432 | 80 | 0.637168 | 104 | 904 | 5.432692 | 0.442308 | 0.061947 | 0.070796 | 0.074336 | 0.084956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183628 | 904 | 36 | 81 | 25.111111 | 0.765583 | 0.480089 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0.071429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7d37bb196fa4cfd1d6d71f9a3fafcbbdf8b55237 | 575 | py | Python | chadbot/dctypes.py | phntom/chadbot | 924b876d86b48d654ce65a0bb93f8bac729ae3a5 | [
"Apache-2.0"
] | null | null | null | chadbot/dctypes.py | phntom/chadbot | 924b876d86b48d654ce65a0bb93f8bac729ae3a5 | [
"Apache-2.0"
] | null | null | null | chadbot/dctypes.py | phntom/chadbot | 924b876d86b48d654ce65a0bb93f8bac729ae3a5 | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
from dataclasses import dataclass, field
from typing import OrderedDict as OrderedDictType, Optional, List
@dataclass
class MultiLingualString:
en: Optional[str] = None
hemale: Optional[str] = None
hefemale: Optional[str] = None
@dataclass
class Answer:
id: str
... | 23.958333 | 72 | 0.766957 | 62 | 575 | 7.064516 | 0.435484 | 0.09589 | 0.10274 | 0.16895 | 0.251142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161739 | 575 | 23 | 73 | 25 | 0.908714 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.176471 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7d3cdaa6805b83abea0fdf93700a9b0cea501a3a | 412 | py | Python | costar_task_plan/python/costar_task_plan/needle_master/reward.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | costar_task_plan/python/costar_task_plan/needle_master/reward.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | costar_task_plan/python/costar_task_plan/needle_master/reward.py | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z | from costar_task_plan.abstract import *
from demo import *
'''
Reward function based on expert demonstrations
- load all demonstrations from filenames
- give bonus for similarity to these demonstrations
'''
class ExpertReward(AbstractReward):
def __init__(self, filenames):
self.filenames = filenames
def ev... | 24.235294 | 61 | 0.764563 | 49 | 412 | 6.306122 | 0.734694 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 412 | 16 | 62 | 25.75 | 0.898256 | 0 | 0 | 0 | 0 | 0 | 0.143396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
adb34c5d68a1b3b1e428435b51809e3a28d8f0e7 | 199 | py | Python | all_raspi_code_backup/StartScript.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | 2 | 2020-05-31T07:37:59.000Z | 2021-03-24T13:43:39.000Z | all_raspi_code_backup/StartScript.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | null | null | null | all_raspi_code_backup/StartScript.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | 1 | 2019-12-13T19:21:12.000Z | 2019-12-13T19:21:12.000Z | """
Program: StartProgram
Revised On: 11/20/2019
"""
### Library Imports
from os import system
### Main Program
system('sudo pigpiod')
##system('python3 /home/pi/Desktop/EMSD/MainProgram.py')
| 16.583333 | 56 | 0.698492 | 26 | 199 | 5.346154 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.140704 | 199 | 11 | 57 | 18.090909 | 0.760234 | 0.668342 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
adbf94435c3b9c0f56fc4f91ae1b1df1f4e34e8e | 226 | py | Python | cadastre/definitions.py | 3liz/QgisCadastrePlugin | f6b092b4b4758b12589e7f72a6054023e1074428 | [
"PostgreSQL"
] | 46 | 2015-01-13T10:23:31.000Z | 2022-02-23T09:15:36.000Z | cadastre/definitions.py | 3liz/QgisCadastrePlugin | f6b092b4b4758b12589e7f72a6054023e1074428 | [
"PostgreSQL"
] | 266 | 2015-01-02T09:50:48.000Z | 2022-03-29T08:07:53.000Z | cadastre/definitions.py | 3liz/QgisCadastrePlugin | f6b092b4b4758b12589e7f72a6054023e1074428 | [
"PostgreSQL"
] | 38 | 2015-04-22T13:44:33.000Z | 2021-11-08T09:39:48.000Z | URL_FANTOIR = (
"https://www.collectivites-locales.gouv.fr/competences/la-mise-disposition-gratuite-du-fichier-des-"
"voies-et-des-lieux-dits-fantoir"
)
URL_DOCUMENTATION = "https://docs.3liz.org/QgisCadastrePlugin/"
| 32.285714 | 104 | 0.752212 | 29 | 226 | 5.793103 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.079646 | 226 | 6 | 105 | 37.666667 | 0.802885 | 0 | 0 | 0 | 0 | 0.2 | 0.752212 | 0.137168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
addc81a6fa1e9041d4758903e4e4d890917914d9 | 3,523 | py | Python | packages/syft/src/syft/proto/lib/torch/tensor_pb2.py | vishalbelsare/PySyft | fb04404fcfbef82fad1fb47407b35a24e9afb599 | [
"Apache-1.1"
] | 8,428 | 2017-08-10T09:17:49.000Z | 2022-03-31T08:20:14.000Z | packages/syft/src/syft/proto/lib/torch/tensor_pb2.py | vishalbelsare/PySyft | fb04404fcfbef82fad1fb47407b35a24e9afb599 | [
"Apache-1.1"
] | 4,779 | 2017-08-09T23:19:00.000Z | 2022-03-29T11:49:36.000Z | packages/syft/src/syft/proto/lib/torch/tensor_pb2.py | vishalbelsare/PySyft | fb04404fcfbef82fad1fb47407b35a24e9afb599 | [
"Apache-1.1"
] | 2,307 | 2017-08-10T08:52:12.000Z | 2022-03-30T05:36:07.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/lib/torch/tensor.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import ... | 49.619718 | 1,303 | 0.765257 | 501 | 3,523 | 5.139721 | 0.283433 | 0.037282 | 0.025243 | 0.046602 | 0.229903 | 0.132039 | 0.132039 | 0.081553 | 0.081553 | 0.081553 | 0 | 0.124843 | 0.09736 | 3,523 | 70 | 1,304 | 50.328571 | 0.684906 | 0.126313 | 0 | 0.125 | 1 | 0.020833 | 0.491675 | 0.440744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
adefc2e947451507ad6df7fb7125d71ad04e683d | 456 | py | Python | classifier/controllers/optimizer_controller.py | JRC1995/Continuous-RvNN | b33bdbd2f80119dc0fa3ed6d44865a3d45bc1e81 | [
"MIT"
] | 9 | 2021-06-08T13:29:26.000Z | 2022-03-29T17:29:46.000Z | inference/controllers/optimizer_controller.py | JRC1995/Continuous-RvNN | b33bdbd2f80119dc0fa3ed6d44865a3d45bc1e81 | [
"MIT"
] | null | null | null | inference/controllers/optimizer_controller.py | JRC1995/Continuous-RvNN | b33bdbd2f80119dc0fa3ed6d44865a3d45bc1e81 | [
"MIT"
] | null | null | null | from optimizers import *
import torch as T
def get_optimizer(config):
if config["optimizer"].lower() == "ranger":
return Ranger
elif config["optimizer"].lower() == "adam" or config["optimizer"].lower() == "adam_":
return T.optim.Adam
elif config["optimizer"].lower() == "adagrad":
re... | 30.4 | 89 | 0.622807 | 53 | 456 | 5.320755 | 0.415094 | 0.265957 | 0.35461 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223684 | 456 | 14 | 90 | 32.571429 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0.164474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.615385 | 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 |
bc02e2fc2c9cdcf7b21af2ed64dd8ac750ceb1e8 | 80 | py | Python | ex002.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | ex002.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | ex002.py | romstk/pythonExercicios | a7a6ce7828ec28f5d8eadc0207214722cfc6fcd8 | [
"MIT"
] | null | null | null | nome=input('Digite seu nome: ')
print('Olá ', nome, '. Prazer em te conhecer. ') | 40 | 48 | 0.65 | 12 | 80 | 4.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 80 | 2 | 48 | 40 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.567901 | 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 |
bc0f3c09f650fd537874118764adea96139f37ee | 143 | py | Python | honeyterm_asciinema/asciinema/asciinema/__init__.py | timhsutw/honeyterm | f85597235a434658c6ee3a8ac5f509f1083119a5 | [
"MIT"
] | 9 | 2016-07-25T17:42:48.000Z | 2020-02-20T09:23:53.000Z | honeyterm_asciinema/asciinema/asciinema/__init__.py | timhsutw/honeyterm | f85597235a434658c6ee3a8ac5f509f1083119a5 | [
"MIT"
] | 1 | 2017-05-17T13:42:47.000Z | 2017-05-17T13:42:47.000Z | honeyterm_asciinema/asciinema/asciinema/__init__.py | timhsutw/honeyterm | f85597235a434658c6ee3a8ac5f509f1083119a5 | [
"MIT"
] | 2 | 2016-10-22T08:45:38.000Z | 2018-01-27T14:07:23.000Z | import sys
__author__ = 'Marcin Kulik'
__version__ = '1.4.0'
if sys.version_info[0] < 3:
raise ImportError('Python < 3 is unsupported.')
| 17.875 | 51 | 0.692308 | 21 | 143 | 4.285714 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.174825 | 143 | 7 | 52 | 20.428571 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0.300699 | 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 |
bc0f5bc8bfecc468b25b2e54dfdbc010a479faab | 232 | py | Python | project/test.py | mjj29/linux-python-apama-docker | 7ed39a04b6ff771983d2a652ddaa6f141ae76333 | [
"Apache-2.0"
] | null | null | null | project/test.py | mjj29/linux-python-apama-docker | 7ed39a04b6ff771983d2a652ddaa6f141ae76333 | [
"Apache-2.0"
] | null | null | null | project/test.py | mjj29/linux-python-apama-docker | 7ed39a04b6ff771983d2a652ddaa6f141ae76333 | [
"Apache-2.0"
] | null | null | null | from apama.eplplugin import EPLPluginBase, EPLAction
class test(EPLPluginBase):
def __init__(self, init):
super(test, self).__init__(init)
@EPLAction('action<>')
def helloWorld(self):
self.getLogger().info("Hello World")
| 19.333333 | 52 | 0.737069 | 28 | 232 | 5.821429 | 0.642857 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 232 | 11 | 53 | 21.090909 | 0.79902 | 0 | 0 | 0 | 0 | 0 | 0.082251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
70e16a589a49e6fac76e9049fd59cb4f5f4a9513 | 245 | py | Python | demo_snippets/13_Klassen/fstrings.py | fabod/pro2_demos | 6ff1babf07eefa90db2a6d36727c290c7085c588 | [
"MIT"
] | 3 | 2021-04-27T09:42:00.000Z | 2022-03-03T13:21:33.000Z | demo_snippets/13_Klassen/fstrings.py | hackerman7000/pro2_demos | 6ff1babf07eefa90db2a6d36727c290c7085c588 | [
"MIT"
] | null | null | null | demo_snippets/13_Klassen/fstrings.py | hackerman7000/pro2_demos | 6ff1babf07eefa90db2a6d36727c290c7085c588 | [
"MIT"
] | 1 | 2022-03-03T12:49:27.000Z | 2022-03-03T12:49:27.000Z | import this
def demo(gruss, name):
nachricht = "{}, {}!".format(gruss, name)
nachricht = f"{gruss}, {name}!"
print(nachricht)
if __name__ == "__main__":
demo("Hoi", "Fabian")
demo("Sali", "Sarah")
demo("Hallo", "Hans") | 20.416667 | 45 | 0.571429 | 28 | 245 | 4.714286 | 0.642857 | 0.204545 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208163 | 245 | 12 | 46 | 20.416667 | 0.680412 | 0 | 0 | 0 | 0 | 0 | 0.235772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cb041b20cee0472200ea07bc93e7bab9e32e544f | 564 | py | Python | util/common.py | MichaelWU0726/x2trt | 75f34a8574315178589502ab14f64289e5c49061 | [
"Apache-2.0"
] | null | null | null | util/common.py | MichaelWU0726/x2trt | 75f34a8574315178589502ab14f64289e5c49061 | [
"Apache-2.0"
] | null | null | null | util/common.py | MichaelWU0726/x2trt | 75f34a8574315178589502ab14f64289e5c49061 | [
"Apache-2.0"
] | null | null | null | class InferErr(Exception):
def __init__(self, e):
self.code = 1
self.message = "Inference Error"
super().__init__(self.message, str(e))
def MiB(val):
return val * 1 << 20
def GiB(val):
return val * 1 << 30
class HostDeviceMem(object):
def __init__(self, host... | 22.56 | 77 | 0.574468 | 72 | 564 | 4.111111 | 0.388889 | 0.081081 | 0.074324 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017632 | 0.296099 | 564 | 25 | 78 | 22.56 | 0.72796 | 0 | 0 | 0 | 0 | 0 | 0.060998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0 | 0.235294 | 0.705882 | 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 |
cb0c17625e2ac13256e0af092850a80a8b86b155 | 166 | py | Python | tests/rest_framework_filterdsl_tests/urls.py | Awingu/rest_framework_filterdsl | b14c0e95063843f8c08d773531081625a78cb64c | [
"Apache-2.0"
] | 26 | 2017-10-26T18:39:58.000Z | 2021-06-02T07:45:44.000Z | tests/rest_framework_filterdsl_tests/urls.py | Awingu/rest_framework_filterdsl | b14c0e95063843f8c08d773531081625a78cb64c | [
"Apache-2.0"
] | 1 | 2019-03-11T12:51:51.000Z | 2019-03-15T15:18:07.000Z | tests/rest_framework_filterdsl_tests/urls.py | Awingu/rest_framework_filterdsl | b14c0e95063843f8c08d773531081625a78cb64c | [
"Apache-2.0"
] | 3 | 2017-10-11T08:58:07.000Z | 2020-03-17T13:44:20.000Z | # encoding:utf8
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^animal/?$', views.AnimalListView.as_view(), name="animal-list"),
]
| 16.6 | 75 | 0.692771 | 22 | 166 | 5.181818 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.144578 | 166 | 9 | 76 | 18.444444 | 0.795775 | 0.078313 | 0 | 0 | 0 | 0 | 0.139073 | 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 |
cb1fd338e79761cdf482ac7e0cf11d3aff55a984 | 44,792 | py | Python | amfe/constraint/constraint.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | amfe/constraint/constraint.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | amfe/constraint/constraint.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2018 TECHNICAL UNIVERSITY OF MUNICH, DEPARTMENT OF MECHANICAL ENGINEERING, CHAIR OF APPLIED MECHANICS,
# BOLTZMANNSTRASSE 15, 85748 GARCHING/MUNICH, GERMANY, RIXEN@TUM.DE.
#
# Distributed under 3-Clause BSD license. See LICENSE file for more information.
#
r"""
This module describes different nonholon... | 32.434468 | 120 | 0.525272 | 5,735 | 44,792 | 4.015867 | 0.072886 | 0.015371 | 0.012765 | 0.02032 | 0.76384 | 0.729017 | 0.703747 | 0.677999 | 0.668838 | 0.653988 | 0 | 0.042661 | 0.361024 | 44,792 | 1,380 | 121 | 32.457971 | 0.762028 | 0.49366 | 0 | 0.532982 | 0 | 0 | 0.070742 | 0.011838 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121372 | false | 0 | 0.005277 | 0.002639 | 0.261214 | 0 | 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 |
cb4715b2e9cf8fcfef3696e47bba404746318c19 | 566 | py | Python | notional_of_postion_calculation.py | yumingwjobjob/Yuming_Wang_Yahoo_finance | 5c34ee73a87671c15a4cfb36210d9a986a1c511c | [
"MIT"
] | null | null | null | notional_of_postion_calculation.py | yumingwjobjob/Yuming_Wang_Yahoo_finance | 5c34ee73a87671c15a4cfb36210d9a986a1c511c | [
"MIT"
] | null | null | null | notional_of_postion_calculation.py | yumingwjobjob/Yuming_Wang_Yahoo_finance | 5c34ee73a87671c15a4cfb36210d9a986a1c511c | [
"MIT"
] | null | null | null | import yahoo_finance_api_client
class notion_of_position_calculation:
def get_notional_of_position(self,quantity, symbol):
yahoo_finance_api = yahoo_finance_api_client.yahoo_finance_api.get_instance(self)
#yahoo_finance_api = yahoo_finance_api_client.yahoo_finance_api()
raw_p... | 51.454545 | 93 | 0.724382 | 70 | 566 | 5.328571 | 0.4 | 0.257373 | 0.321716 | 0.168901 | 0.273458 | 0.273458 | 0.273458 | 0.273458 | 0.273458 | 0.273458 | 0 | 0.002247 | 0.213781 | 566 | 10 | 94 | 56.6 | 0.835955 | 0.113074 | 0 | 0 | 0 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
cb8f6e7f6ee61ef01e86724dba66602b1b7fe82a | 101 | py | Python | app/models/__init__.py | mikhaildruzhinin/flask-blog | ab95386adf32818bb55caa17ad3d6cb71d587b34 | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | mikhaildruzhinin/flask-blog | ab95386adf32818bb55caa17ad3d6cb71d587b34 | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | mikhaildruzhinin/flask-blog | ab95386adf32818bb55caa17ad3d6cb71d587b34 | [
"Apache-2.0"
] | null | null | null | from .post import PostModel
from .user import UserModel
__all__ = [
PostModel,
UserModel,
]
| 12.625 | 27 | 0.70297 | 11 | 101 | 6.090909 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 101 | 7 | 28 | 14.428571 | 0.858974 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cbb3cb1fc18eecbdbb916be2e9022c8295165349 | 600 | py | Python | akagi/data_sources/url_data_source.py | pauchan/akagi | 7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b | [
"MIT"
] | 26 | 2017-05-18T11:52:04.000Z | 2018-08-25T22:03:07.000Z | akagi/data_sources/url_data_source.py | pauchan/akagi | 7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b | [
"MIT"
] | 325 | 2017-05-08T07:22:28.000Z | 2022-03-31T15:43:18.000Z | akagi/data_sources/url_data_source.py | pauchan/akagi | 7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b | [
"MIT"
] | 7 | 2017-05-02T02:06:15.000Z | 2020-04-09T05:32:11.000Z | from akagi.data_source import DataSource
from akagi.data_file import data_files_for_urls
class URLDataSource(DataSource):
'''URLDataSource replesents a set of files on remote location.
'''
@classmethod
def for_urls(cls, urls, file_format='csv', no_cache=False):
return URLDataSource(urls, fil... | 28.571429 | 78 | 0.725 | 83 | 600 | 4.891566 | 0.373494 | 0.172414 | 0.103448 | 0.078818 | 0.142857 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0.188333 | 600 | 20 | 79 | 30 | 0.833676 | 0.098333 | 0 | 0 | 0 | 0 | 0.011321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 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 |
cbe04ef065addcfa86e9c36a10aef198d690ebed | 263 | py | Python | room_display/room_booking_exception.py | Bachibouzouk/room-booking | a2214db84352ec8d491c9406cc03cecee7071cc9 | [
"BSD-3-Clause"
] | null | null | null | room_display/room_booking_exception.py | Bachibouzouk/room-booking | a2214db84352ec8d491c9406cc03cecee7071cc9 | [
"BSD-3-Clause"
] | null | null | null | room_display/room_booking_exception.py | Bachibouzouk/room-booking | a2214db84352ec8d491c9406cc03cecee7071cc9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 30 18:05:06 2017
@author: pfduc
"""
class BookingError(Exception):
def __init__(self, arg):
self.message = arg
class TimeSlotError(BookingError):
def __init__(self, arg):
self.message = arg | 18.785714 | 35 | 0.638783 | 34 | 263 | 4.705882 | 0.676471 | 0.0875 | 0.1375 | 0.175 | 0.35 | 0.35 | 0.35 | 0 | 0 | 0 | 0 | 0.063415 | 0.220532 | 263 | 14 | 36 | 18.785714 | 0.717073 | 0.281369 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
cbe3d2c68a898b37063e6009b17a3f7de4555372 | 70 | py | Python | brs/settings/prod.py | vuonghv/brs | 9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80 | [
"MIT"
] | 1 | 2021-01-13T23:42:54.000Z | 2021-01-13T23:42:54.000Z | brs/settings/prod.py | vuonghv/brs | 9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80 | [
"MIT"
] | 1 | 2015-10-09T06:19:29.000Z | 2015-10-09T06:19:29.000Z | brs/settings/prod.py | vuonghv/brs | 9cdf9431ac69fd7a33d8bf4240a7d49a49ae4a80 | [
"MIT"
] | 8 | 2015-10-09T02:00:34.000Z | 2016-07-08T15:00:37.000Z | from brs.settings.base import *
DEBUG = False
ALLOWED_HOSTS = ['*']
| 11.666667 | 31 | 0.685714 | 9 | 70 | 5.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 70 | 5 | 32 | 14 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 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 |
1dac2faad6d21248f0d5329d55e98ccd810b88f1 | 1,118 | py | Python | accounts/models.py | ARXINO/ARXSITE | fad99878d07d238cbc8bf81424d55040272174ee | [
"Apache-2.0"
] | null | null | null | accounts/models.py | ARXINO/ARXSITE | fad99878d07d238cbc8bf81424d55040272174ee | [
"Apache-2.0"
] | null | null | null | accounts/models.py | ARXINO/ARXSITE | fad99878d07d238cbc8bf81424d55040272174ee | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.db import transaction
class UserProfile(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE)
description = models.CharField(max_length=100,default='')
... | 32.882353 | 78 | 0.724508 | 138 | 1,118 | 5.717391 | 0.427536 | 0.136882 | 0.190114 | 0.197719 | 0.18251 | 0.141952 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0.165474 | 1,118 | 33 | 79 | 33.878788 | 0.829582 | 0 | 0 | 0 | 0 | 0 | 0.025902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0.043478 | 0.869565 | 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 |
1daf1bde93710f9b26beba8829fe600fc48eb268 | 259 | py | Python | rl-fmri/common/activation_fn.py | liusida/thesis-bodies | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | [
"MIT"
] | null | null | null | rl-fmri/common/activation_fn.py | liusida/thesis-bodies | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | [
"MIT"
] | null | null | null | rl-fmri/common/activation_fn.py | liusida/thesis-bodies | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | [
"MIT"
] | null | null | null | from torch import nn
from torch import Tensor
import common.utils as utils
class MyThreshold(nn.Threshold):
def __init__(self, inplace: bool = False) -> None:
super().__init__(utils.args.threshold_threshold, utils.args.threshold_value, inplace)
| 28.777778 | 93 | 0.756757 | 35 | 259 | 5.314286 | 0.6 | 0.096774 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150579 | 259 | 8 | 94 | 32.375 | 0.845455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1db0877cd3e9a6269ce7a0c9b9abe84a2fc6903c | 2,039 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/SUN/global_alpha.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/SUN/global_alpha.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/SUN/global_alpha.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension SUN.global_alpha
This module customises the behaviour of the
OpenGL.raw.GL.SUN.global_alpha to provide a more
Python-friendly API
Overview (from the spec)
Transparency is done in OpenGL using alpha blending. An alpha value
of 0.0 is used for fully transparent objects, while an alpha... | 41.612245 | 72 | 0.772437 | 317 | 2,039 | 4.930599 | 0.438486 | 0.06334 | 0.044786 | 0.026871 | 0.108125 | 0.060781 | 0.044786 | 0.044786 | 0 | 0 | 0 | 0.005432 | 0.187347 | 2,039 | 49 | 73 | 41.612245 | 0.937839 | 0.869544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1db86b999a24bf67e7f11c662ff0d1bd1290bc27 | 54 | py | Python | Tutorials/while_loop.py | gittygupta/Python-Learning-Course | 8e571c06f78b03f6725fe02f742eb40c3eed12e3 | [
"Unlicense"
] | null | null | null | Tutorials/while_loop.py | gittygupta/Python-Learning-Course | 8e571c06f78b03f6725fe02f742eb40c3eed12e3 | [
"Unlicense"
] | null | null | null | Tutorials/while_loop.py | gittygupta/Python-Learning-Course | 8e571c06f78b03f6725fe02f742eb40c3eed12e3 | [
"Unlicense"
] | null | null | null | x=5
while x < 10:
print(x)
x += 1
| 7.714286 | 14 | 0.333333 | 9 | 54 | 2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0.537037 | 54 | 6 | 15 | 9 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
1dc82fd16e30617fec3c50a858353be331d75e4e | 167 | py | Python | exercicio30 Par ou impar.py | adrianomdantas/Exercicios-Python | ef5025a186615258aec0cf35ed839fe49577d983 | [
"MIT"
] | null | null | null | exercicio30 Par ou impar.py | adrianomdantas/Exercicios-Python | ef5025a186615258aec0cf35ed839fe49577d983 | [
"MIT"
] | null | null | null | exercicio30 Par ou impar.py | adrianomdantas/Exercicios-Python | ef5025a186615258aec0cf35ed839fe49577d983 | [
"MIT"
] | null | null | null | num = int(input('digite um numero para saber se ele é par ou impar: '))
poi = num%2
if poi == 0:
print('este numero é par')
else:
print('este numero é ímpar')
| 23.857143 | 71 | 0.640719 | 31 | 167 | 3.451613 | 0.709677 | 0.074766 | 0.280374 | 0.299065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.227545 | 167 | 6 | 72 | 27.833333 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.520958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 |
1dd7b7bb57c8012b210daada9545307cf7a2caaa | 159 | py | Python | agilegeo/__init__.py | ben-bougher/agilegeo | 2acbd0d9f51a4689ac5aa147f698d29409332622 | [
"Apache-2.0"
] | null | null | null | agilegeo/__init__.py | ben-bougher/agilegeo | 2acbd0d9f51a4689ac5aa147f698d29409332622 | [
"Apache-2.0"
] | null | null | null | agilegeo/__init__.py | ben-bougher/agilegeo | 2acbd0d9f51a4689ac5aa147f698d29409332622 | [
"Apache-2.0"
] | null | null | null | """
==================
agilegeo
==================
"""
import wavelet
import attribute
import avo
import util
__all__=["wavelet", "attribute", "avo", "util"]
| 13.25 | 47 | 0.534591 | 14 | 159 | 5.785714 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 159 | 11 | 48 | 14.454545 | 0.574468 | 0.289308 | 0 | 0 | 0 | 0 | 0.219048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1de13c5f2cf240ba5fab2336d9cc74990e70237b | 136 | py | Python | lib/aws/s3/admin.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | lib/aws/s3/admin.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | lib/aws/s3/admin.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | # Django Imports
from django.contrib import admin
class S3MediaAssetAdmin(admin.ModelAdmin):
list_display = (
'id',
)
| 15.111111 | 42 | 0.676471 | 14 | 136 | 6.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.235294 | 136 | 8 | 43 | 17 | 0.865385 | 0.102941 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 |
1deffa732fba70136aa22eedee7930dbab22727b | 1,392 | py | Python | tests/conftest.py | thiagomini/ThrottledAPI | 434d495e4d76482b738a6dde3e05bdad0d9ab9cd | [
"MIT"
] | 10 | 2022-01-24T17:20:31.000Z | 2022-03-04T19:51:28.000Z | tests/conftest.py | thiagomini/ThrottledAPI | 434d495e4d76482b738a6dde3e05bdad0d9ab9cd | [
"MIT"
] | 1 | 2022-02-18T23:20:06.000Z | 2022-02-18T23:20:06.000Z | tests/conftest.py | thiagomini/ThrottledAPI | 434d495e4d76482b738a6dde3e05bdad0d9ab9cd | [
"MIT"
] | 1 | 2022-02-18T12:38:51.000Z | 2022-02-18T12:38:51.000Z | import fakeredis
import pytest
from tests.utils_for_test import Context, NumbersComparer
from throttled.limiter import Limiter
from throttled.models import Rate
from throttled.storage import BaseStorage
from throttled.storage.memory import MemoryStorage
from throttled.storage.redis import RedisStorage
from throttled.s... | 24.857143 | 76 | 0.748563 | 170 | 1,392 | 6.1 | 0.317647 | 0.075217 | 0.057859 | 0.072324 | 0.089682 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008532 | 0.158046 | 1,392 | 55 | 77 | 25.309091 | 0.87628 | 0.137213 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.272727 | 0.181818 | 0.757576 | 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 |
1dfb8a3e8b32c69ea593f52a038118ae93bc3e6e | 583 | py | Python | 25_DFSBFS/Step08/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 25_DFSBFS/Step08/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 25_DFSBFS/Step08/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | import sys
from collections import deque
N, K = map(int, sys.stdin.readline().split())
graph = [0 for _ in range(100001)]
cur = deque([N])
while cur:
c = cur.popleft()
if c == K:
result = graph[c]
break
if 0 <= c-1 < 100001 and (not graph[c-1] or graph[c] + 1 < graph[c-1]):
graph[c-1] = graph[c] + 1
cur.... | 24.291667 | 72 | 0.586621 | 118 | 583 | 2.889831 | 0.271186 | 0.281525 | 0.246334 | 0.246334 | 0.56305 | 0.486804 | 0.392962 | 0.392962 | 0.392962 | 0.392962 | 0 | 0.106291 | 0.209262 | 583 | 24 | 73 | 24.291667 | 0.633406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.05 | 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 |
38046b90d7b0a0a2634284f27b4e306f02ea7acb | 2,233 | py | Python | simpleredial/dataloader/loader.py | gmftbyGMFTBY/SimpleReDial-v1 | f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde | [
"MIT"
] | 36 | 2021-10-13T10:32:08.000Z | 2022-03-20T07:50:05.000Z | simpleredial/dataloader/loader.py | gmftbyGMFTBY/SimpleReDial-v1 | f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde | [
"MIT"
] | 3 | 2021-11-24T10:57:59.000Z | 2022-03-27T15:37:40.000Z | simpleredial/dataloader/loader.py | gmftbyGMFTBY/SimpleReDial-v1 | f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde | [
"MIT"
] | 1 | 2022-03-15T07:13:22.000Z | 2022-03-15T07:13:22.000Z | from header import *
from .dual_bert_hier_dataloader import *
from .dual_bert_curriculum_learning_dataloader import *
from .horse_human_test_dataloader import *
from .time_evaluation_dataloader import *
from .fine_grained_test_dataloader import *
from .bert_mask_augmentation_dataloader import *
from .gpt2_dataloader im... | 39.175439 | 105 | 0.721899 | 284 | 2,233 | 5.383803 | 0.288732 | 0.156965 | 0.30085 | 0.094179 | 0.465664 | 0.243296 | 0.176586 | 0.128188 | 0.087639 | 0.087639 | 0 | 0.000534 | 0.161218 | 2,233 | 56 | 106 | 39.875 | 0.815804 | 0.00403 | 0 | 0.096154 | 0 | 0 | 0.130513 | 0.059856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.019231 | 0.480769 | 0 | 0.519231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
380820f20065a3affc06f17f95aeaf45a79980ee | 319 | py | Python | src/rasterstats/__init__.py | raulsteurer/python-rasterstats | cc5bc56a5ff005f9e25457b306cdb4547a6aeb0c | [
"BSD-3-Clause"
] | null | null | null | src/rasterstats/__init__.py | raulsteurer/python-rasterstats | cc5bc56a5ff005f9e25457b306cdb4547a6aeb0c | [
"BSD-3-Clause"
] | null | null | null | src/rasterstats/__init__.py | raulsteurer/python-rasterstats | cc5bc56a5ff005f9e25457b306cdb4547a6aeb0c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .main import gen_zonal_stats, raster_stats, zonal_stats
from .point import gen_point_query, point_query
from rasterstats._version import __version__
__all__ = ['gen_zonal_stats',
'gen_point_query',
'raster_stats',
'zonal_stats',
'point_query',]
| 29 | 60 | 0.670846 | 39 | 319 | 4.897436 | 0.384615 | 0.209424 | 0.136126 | 0.219895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.225705 | 319 | 10 | 61 | 31.9 | 0.769231 | 0.065831 | 0 | 0 | 0 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
38488abb0a300464099be636013997a3cf072f1f | 1,092 | py | Python | tests/fixtures/chain.py | sisco0/casper-python-sdk | 49dec3d56863c445e684961ae16b7b5b7d62b401 | [
"Apache-2.0"
] | 2 | 2021-10-05T07:50:20.000Z | 2021-10-06T09:58:19.000Z | tests/fixtures/chain.py | sisco0/casper-python-sdk | 49dec3d56863c445e684961ae16b7b5b7d62b401 | [
"Apache-2.0"
] | null | null | null | tests/fixtures/chain.py | sisco0/casper-python-sdk | 49dec3d56863c445e684961ae16b7b5b7d62b401 | [
"Apache-2.0"
] | null | null | null | import pytest
@pytest.fixture(scope="session")
def account_main_purse_uref(CLIENT, account_key: bytes) -> str:
"""Returns an on-chain account's main purse unforgeable reference.
"""
return CLIENT.queries.get_account_main_purse_uref(account_key)
@pytest.fixture(scope="session")
def block(CLIENT) -... | 21.411765 | 71 | 0.677656 | 139 | 1,092 | 5.143885 | 0.258993 | 0.109091 | 0.151049 | 0.20979 | 0.535664 | 0.496504 | 0.27972 | 0.12028 | 0.12028 | 0 | 0 | 0 | 0.192308 | 1,092 | 50 | 72 | 21.84 | 0.810658 | 0.271978 | 0 | 0.315789 | 0 | 0 | 0.066401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0 | 0.684211 | 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 |
697dbab3af85fa122df86bbfadc4cbde96d82877 | 585 | py | Python | src/test/objects/apicase.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | src/test/objects/apicase.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | src/test/objects/apicase.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | import multiprocessing
import requests
from ..objects.basecase import BaseCase
import time
class APICase(BaseCase):
def setUp(self):
super().setUp()
def main_runner():
from ...main import main
main.run()
self.flask_thread = multiprocessing.Process(target=main_runner)... | 29.25 | 73 | 0.654701 | 68 | 585 | 5.558824 | 0.573529 | 0.071429 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011211 | 0.237607 | 585 | 19 | 74 | 30.789474 | 0.836323 | 0.076923 | 0 | 0 | 0 | 0 | 0.091078 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.176471 | false | 0.058824 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
698316250f4c33fa5d4e73fddc5e5eb07e2341ca | 3,078 | py | Python | MonoH/python/Selection.py | GuillelmoGomezCeballos/PandaAnalysis | 87a62effbe320d0d981e032f240c057e5ab2d3fc | [
"MIT"
] | null | null | null | MonoH/python/Selection.py | GuillelmoGomezCeballos/PandaAnalysis | 87a62effbe320d0d981e032f240c057e5ab2d3fc | [
"MIT"
] | 3 | 2017-12-09T06:50:57.000Z | 2018-02-22T08:58:12.000Z | MonoH/python/Selection.py | GuillelmoGomezCeballos/PandaAnalysis | 87a62effbe320d0d981e032f240c057e5ab2d3fc | [
"MIT"
] | 1 | 2017-09-24T18:29:16.000Z | 2017-09-24T18:29:16.000Z | from PandaCore.Tools.Misc import *
from re import sub
metTrigger='(trigger&1)!=0'
eleTrigger='(trigger&2)!=0'
phoTrigger='(trigger&4)!=0'
cuts = {}
weights = {}
triggers = {}
baseline = 'metFilter==1 && nFatjet==1 && fj1Pt>200 && nTau==0'
#cuts for specific regions
cuts['signal'] = tAND(baseline,'nLooseLep==0 && ... | 64.125 | 248 | 0.656595 | 424 | 3,078 | 4.695755 | 0.224057 | 0.049724 | 0.068307 | 0.072325 | 0.609744 | 0.540432 | 0.540432 | 0.487192 | 0.448016 | 0.375691 | 0 | 0.073883 | 0.120533 | 3,078 | 47 | 249 | 65.489362 | 0.661618 | 0.047758 | 0 | 0 | 0 | 0.235294 | 0.618381 | 0.161599 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.029412 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
698792906f06e93c2c938c2425b571c1629ec39e | 154 | py | Python | packer_builder/release.py | mrlesmithjr/packer-builder | ff07b48740062c1a3050e670187bcd620a901b1c | [
"MIT"
] | 11 | 2019-10-16T21:05:58.000Z | 2021-08-03T16:14:51.000Z | packer_builder/release.py | mrlesmithjr/packer-builder | ff07b48740062c1a3050e670187bcd620a901b1c | [
"MIT"
] | 35 | 2019-10-16T13:15:30.000Z | 2020-05-21T05:20:29.000Z | packer_builder/release.py | mrlesmithjr/packer-builder | ff07b48740062c1a3050e670187bcd620a901b1c | [
"MIT"
] | 4 | 2020-03-02T15:45:26.000Z | 2021-08-24T17:58:36.000Z | """packer_builder/release.py"""
# Version tracking for package.
__author__ = 'Larry Smith Jr.'
__version__ = '0.1.0'
__package_name__ = 'packer_builder'
| 22 | 35 | 0.74026 | 20 | 154 | 4.95 | 0.75 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.116883 | 154 | 6 | 36 | 25.666667 | 0.705882 | 0.363636 | 0 | 0 | 0 | 0 | 0.369565 | 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 |
698997f12b0b001ac40c807b6e10c6cae26293c4 | 982 | py | Python | tests/utils/test_field_coverage.py | zanachka/spidermon | d2840b6bbb6ba6d8a0ef633deac66588d243e615 | [
"BSD-3-Clause"
] | 405 | 2019-01-10T13:06:09.000Z | 2022-03-30T20:14:58.000Z | tests/utils/test_field_coverage.py | zanachka/spidermon | d2840b6bbb6ba6d8a0ef633deac66588d243e615 | [
"BSD-3-Clause"
] | 226 | 2019-01-04T13:31:17.000Z | 2022-03-28T21:06:10.000Z | tests/utils/test_field_coverage.py | zanachka/spidermon | d2840b6bbb6ba6d8a0ef633deac66588d243e615 | [
"BSD-3-Clause"
] | 87 | 2019-01-07T10:23:26.000Z | 2022-02-22T04:38:04.000Z | from spidermon.utils.field_coverage import calculate_field_coverage
def test_calculate_field_coverage_from_stats():
spider_stats = {
"finish_reason": "finished",
"spidermon_item_scraped_count": 100,
"spidermon_item_scraped_count/dict": 100,
"spidermon_item_scraped_count/dict/author... | 36.37037 | 67 | 0.714868 | 120 | 982 | 5.45 | 0.258333 | 0.178899 | 0.214067 | 0.267584 | 0.504587 | 0.353211 | 0.116208 | 0 | 0 | 0 | 0 | 0.037406 | 0.183299 | 982 | 26 | 68 | 37.769231 | 0.778055 | 0 | 0 | 0 | 0 | 0 | 0.496945 | 0.47556 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69990d70e6be685bbdfc73cc5a1f3d79915a6194 | 278 | py | Python | ex005.py | sml07/Meus-Estudos-Python | 8f06ec8ad170674cd0cc5cf792b5647dbb894a1c | [
"MIT"
] | null | null | null | ex005.py | sml07/Meus-Estudos-Python | 8f06ec8ad170674cd0cc5cf792b5647dbb894a1c | [
"MIT"
] | null | null | null | ex005.py | sml07/Meus-Estudos-Python | 8f06ec8ad170674cd0cc5cf792b5647dbb894a1c | [
"MIT"
] | null | null | null | #Crie um algoritimo que leia um número e imprima na tela
#o mesmo, o seu antecessor e o seu sucessor.
n1 = int(input("Digite um número para essa operação: "))
print("O nuúmero que você digitou foi {}.\nO seu antecessor é {}.\nO seu sucessor é {}.".format(n1, (n1-1), (n1+1))) | 46.333333 | 117 | 0.690647 | 50 | 278 | 3.84 | 0.62 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.172662 | 278 | 6 | 117 | 46.333333 | 0.808696 | 0.352518 | 0 | 0 | 0 | 0 | 0.659218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
69c271f4f0e21f6a65a737f282864f4730d19f16 | 173 | py | Python | run.py | devakira/wemo-server | 00a9df435cc0fda9c33b7463c780cf7dca6e2570 | [
"BSD-3-Clause"
] | null | null | null | run.py | devakira/wemo-server | 00a9df435cc0fda9c33b7463c780cf7dca6e2570 | [
"BSD-3-Clause"
] | null | null | null | run.py | devakira/wemo-server | 00a9df435cc0fda9c33b7463c780cf7dca6e2570 | [
"BSD-3-Clause"
] | null | null | null | from dotenv import load_dotenv
from os import getenv
load_dotenv()
assert getenv('NET_SPACE') is not None
from wemo import app
if __name__ == '__main__':
app.start()
| 15.727273 | 38 | 0.745665 | 27 | 173 | 4.37037 | 0.666667 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17341 | 173 | 10 | 39 | 17.3 | 0.825175 | 0 | 0 | 0 | 0 | 0 | 0.098266 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
69c7f7a3b47b617cab64a8e7f8f45d85253e6178 | 5,293 | py | Python | data_loader/get_loader.py | yangzhaopeng3/visda21 | 222f0518bf0b03b5049d771855e4bdf138b69621 | [
"MIT"
] | null | null | null | data_loader/get_loader.py | yangzhaopeng3/visda21 | 222f0518bf0b03b5049d771855e4bdf138b69621 | [
"MIT"
] | null | null | null | data_loader/get_loader.py | yangzhaopeng3/visda21 | 222f0518bf0b03b5049d771855e4bdf138b69621 | [
"MIT"
] | null | null | null | from .mydataset import ImageFolder
from collections import Counter
import os
import torch
from torch.utils.data import DataLoader, WeightedRandomSampler
import torchvision
def get_loader(source_path, target_path, evaluation_path, transforms,
batch_size=32, return_id=False, balanced=False, val=False, va... | 37.807143 | 114 | 0.614019 | 586 | 5,293 | 5.24744 | 0.122867 | 0.06439 | 0.054634 | 0.078049 | 0.771707 | 0.739837 | 0.704065 | 0.651382 | 0.651382 | 0.620163 | 0 | 0.004936 | 0.310977 | 5,293 | 139 | 115 | 38.079137 | 0.838223 | 0.057623 | 0 | 0.7 | 0 | 0 | 0.008446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.054545 | 0 | 0.1 | 0.018182 | 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 |
0e091fb3439429a22dc9606cd8490db8465ea2f0 | 838 | py | Python | salo/events/zeek/__init__.py | isabella232/salo | 8586096a2c2cc1b55ab554157ed1fe1cbce08827 | [
"Apache-2.0"
] | 32 | 2022-01-14T02:28:52.000Z | 2022-03-27T16:17:43.000Z | salo/events/zeek/__init__.py | isabella232/salo | 8586096a2c2cc1b55ab554157ed1fe1cbce08827 | [
"Apache-2.0"
] | 1 | 2022-02-28T04:14:47.000Z | 2022-02-28T04:14:47.000Z | salo/events/zeek/__init__.py | isabella232/salo | 8586096a2c2cc1b55ab554157ed1fe1cbce08827 | [
"Apache-2.0"
] | 2 | 2022-03-25T14:59:27.000Z | 2022-03-27T16:53:43.000Z | #!/usr/bin/env python3
# Copyright 2021 Splunk 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... | 33.52 | 75 | 0.761337 | 127 | 838 | 5.023622 | 0.669291 | 0.094044 | 0.040752 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.176611 | 838 | 24 | 76 | 34.916667 | 0.911594 | 0.692124 | 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 |
0e129e1ba4a54b8c908e95c80034152d1d8a4734 | 4,315 | py | Python | src/basic_notion/filter.py | altvod/basic-notion | 38da5cc6912d73fad530d37f1608b49d90c2034e | [
"MIT"
] | null | null | null | src/basic_notion/filter.py | altvod/basic-notion | 38da5cc6912d73fad530d37f1608b49d90c2034e | [
"MIT"
] | null | null | null | src/basic_notion/filter.py | altvod/basic-notion | 38da5cc6912d73fad530d37f1608b49d90c2034e | [
"MIT"
] | null | null | null | from typing import Any, Generic, Optional, Type, TypeVar, Union
import attr
NUMBER = Union[int, float]
_FILTER_VALUE_TV = TypeVar('_FILTER_VALUE_TV')
@attr.s(frozen=True)
class PropertyFilter:
property_name: str = attr.ib(kw_only=True)
property_type_name: str = attr.ib(kw_only=True)
filter_name: str =... | 35.661157 | 106 | 0.75365 | 460 | 4,315 | 6.771739 | 0.152174 | 0.103371 | 0.188764 | 0.181059 | 0.687961 | 0.564687 | 0.525843 | 0.495345 | 0.445265 | 0.445265 | 0 | 0 | 0.149479 | 4,315 | 120 | 107 | 35.958333 | 0.848774 | 0.005794 | 0 | 0.409091 | 0 | 0 | 0.003731 | 0 | 0 | 0 | 0 | 0.008333 | 0.011364 | 1 | 0.056818 | false | 0 | 0.022727 | 0.034091 | 0.704545 | 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 |
0e1682ef9357e0a193eb892ec7275f3dba10377c | 409 | py | Python | dbdaora/sorted_set/repositories/datastore.py | dutradda/sqldataclass | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | [
"MIT"
] | 21 | 2019-10-14T14:33:33.000Z | 2022-02-11T04:43:07.000Z | dbdaora/sorted_set/repositories/datastore.py | dutradda/sqldataclass | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | [
"MIT"
] | null | null | null | dbdaora/sorted_set/repositories/datastore.py | dutradda/sqldataclass | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | [
"MIT"
] | 1 | 2019-09-29T23:51:44.000Z | 2019-09-29T23:51:44.000Z | from google.cloud.datastore import Key
from dbdaora.repository.datastore import DatastoreRepository
from ..entity import SortedSetData, SortedSetEntityHint
from . import SortedSetRepository
class DatastoreSortedSetRepository(
DatastoreRepository[SortedSetEntityHint, SortedSetData],
SortedSetRepository[Sorte... | 29.214286 | 63 | 0.833741 | 32 | 409 | 10.46875 | 0.5625 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105134 | 409 | 13 | 64 | 31.461538 | 0.915301 | 0 | 0 | 0 | 0 | 0 | 0.06846 | 0.06846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
386480a7491d0871a1d8d667b5af13a52a88a88a | 82 | py | Python | templater/testdata/__init__.py | derigible/project-builder | 25e4f537b97b52c54d3a918c4414950b1123df82 | [
"BSD-3-Clause"
] | null | null | null | templater/testdata/__init__.py | derigible/project-builder | 25e4f537b97b52c54d3a918c4414950b1123df82 | [
"BSD-3-Clause"
] | null | null | null | templater/testdata/__init__.py | derigible/project-builder | 25e4f537b97b52c54d3a918c4414950b1123df82 | [
"BSD-3-Clause"
] | null | null | null | __doc__ ='''
This module is used to store all of the test files for templater.
''' | 27.333333 | 65 | 0.719512 | 14 | 82 | 3.928571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 82 | 3 | 66 | 27.333333 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
387d45d1f4ffa59a520dc8eb79f6d1d76d431e0c | 1,839 | py | Python | uninas/training/devices/test.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 18 | 2020-11-22T16:03:08.000Z | 2022-03-15T12:11:46.000Z | uninas/training/devices/test.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 2 | 2022-01-04T08:10:17.000Z | 2022-01-05T08:13:14.000Z | uninas/training/devices/test.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 6 | 2021-03-08T07:08:52.000Z | 2022-02-24T12:00:43.000Z | import time
import torch.nn as nn
from uninas.training.devices.abstract import AbstractDevicesManager, AbstractDeviceMover, TensorOrList
from uninas.register import Register
class TestCpuDeviceMover(AbstractDeviceMover):
"""
handle data flow to cpu (mostly do nothing), print what happens
"""
def __in... | 30.65 | 118 | 0.642197 | 221 | 1,839 | 5.108597 | 0.452489 | 0.015943 | 0.019486 | 0.024801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003579 | 0.240348 | 1,839 | 59 | 119 | 31.169492 | 0.804581 | 0.193583 | 0 | 0.060606 | 0 | 0 | 0.054131 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.272727 | false | 0.060606 | 0.121212 | 0.030303 | 0.606061 | 0.151515 | 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 |
3886aa3b79f5bde2a5baa265b6a4908401e77d93 | 124 | gyp | Python | class/native/accessor/binding.gyp | Txiaozhe/js-modules | 8ab65a0fce30430358b33d9e35c94a6c14843513 | [
"MIT"
] | 1 | 2018-09-14T13:51:56.000Z | 2018-09-14T13:51:56.000Z | class/native/accessor/binding.gyp | Txiaozhe/js-modules | 8ab65a0fce30430358b33d9e35c94a6c14843513 | [
"MIT"
] | 7 | 2020-05-07T07:40:47.000Z | 2020-05-07T07:40:57.000Z | class/native/accessor/binding.gyp | Txiaozhe/js-modules | 8ab65a0fce30430358b33d9e35c94a6c14843513 | [
"MIT"
] | null | null | null | {
"targets":[
{
"target_name": "accessor",
"sources": ["accessor.cpp"]
}
]
} | 15.5 | 39 | 0.354839 | 7 | 124 | 6.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.459677 | 124 | 8 | 40 | 15.5 | 0.641791 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38a451dc7fb806c91188c35f95397ef2d506dff2 | 466 | py | Python | FactoryPattern/Factory.py | JiangKlijna/DesignPattern | 445411a106348d0b63c2252e9b604af8c63cb1b3 | [
"Apache-2.0"
] | 6 | 2016-04-08T11:10:28.000Z | 2016-07-27T12:12:51.000Z | FactoryPattern/Factory.py | JiangKlijna/design-pattern | 445411a106348d0b63c2252e9b604af8c63cb1b3 | [
"Apache-2.0"
] | null | null | null | FactoryPattern/Factory.py | JiangKlijna/design-pattern | 445411a106348d0b63c2252e9b604af8c63cb1b3 | [
"Apache-2.0"
] | null | null | null | # encoding = utf-8
class GreekGetter:
def get(self, msgid):
return msgid[::-1]
class EnglishGetter:
def get(self, msgid):
return msgid[:]
def get_localizer(language="English"):
languages = dict(English=EnglishGetter, Greek=GreekGetter)
return languages[language]()
# Create our localizers
e, g = get_l... | 23.3 | 80 | 0.7103 | 63 | 466 | 5.206349 | 0.539683 | 0.054878 | 0.060976 | 0.091463 | 0.158537 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.143777 | 466 | 19 | 81 | 24.526316 | 0.817043 | 0.122318 | 0 | 0.181818 | 0 | 0 | 0.093827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.181818 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
38c0b0c838510bb238b74f9dd9dd93344a53dd66 | 3,262 | py | Python | backend_admin/migrations/0002_objtype_userdeploy_userlog.py | sougannkyou/AppSimulator | 0803d557b0451b049f11e90c258ec11f7074a2ac | [
"MIT"
] | 6 | 2018-10-21T03:41:03.000Z | 2021-12-17T11:09:50.000Z | backend_admin/migrations/0002_objtype_userdeploy_userlog.py | sougannkyou/AppSimulator | 0803d557b0451b049f11e90c258ec11f7074a2ac | [
"MIT"
] | null | null | null | backend_admin/migrations/0002_objtype_userdeploy_userlog.py | sougannkyou/AppSimulator | 0803d557b0451b049f11e90c258ec11f7074a2ac | [
"MIT"
] | 4 | 2020-01-30T14:46:50.000Z | 2021-12-04T01:07:46.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('backend_admin', '0001_initial'),
]
operations = [
migrations.CreateModel(
name=... | 60.407407 | 120 | 0.644083 | 353 | 3,262 | 5.651558 | 0.212465 | 0.137845 | 0.180952 | 0.219048 | 0.651128 | 0.632581 | 0.616541 | 0.616541 | 0.616541 | 0.616541 | 0 | 0.029031 | 0.218578 | 3,262 | 53 | 121 | 61.54717 | 0.753629 | 0.006438 | 0 | 0.212766 | 0 | 0 | 0.219821 | 0.108984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.12766 | 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 |
38c3d77036089131ce50822cad6da61204e157bb | 1,137 | py | Python | tests/changes/utils/test_agg.py | bowlofstew/changes | ebd393520e0fdb07c240a8d4e8747281b6186e28 | [
"Apache-2.0"
] | null | null | null | tests/changes/utils/test_agg.py | bowlofstew/changes | ebd393520e0fdb07c240a8d4e8747281b6186e28 | [
"Apache-2.0"
] | null | null | null | tests/changes/utils/test_agg.py | bowlofstew/changes | ebd393520e0fdb07c240a8d4e8747281b6186e28 | [
"Apache-2.0"
] | null | null | null | from changes.constants import Result, Status
from changes.utils.agg import aggregate_result, aggregate_status
def test_aggregate_result():
status_list = [Result.passed, Result.failed, Result.unknown]
assert aggregate_result(status_list) == Result.failed
status_list = [Result.passed, Result.unknown]
a... | 36.677419 | 86 | 0.76869 | 140 | 1,137 | 5.992857 | 0.157143 | 0.190703 | 0.190703 | 0.178784 | 0.778308 | 0.656734 | 0.533969 | 0.426698 | 0.128725 | 0 | 0 | 0 | 0.137203 | 1,137 | 30 | 87 | 37.9 | 0.85525 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.1 | false | 0.25 | 0.1 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
38d7e74cd08bbeeee572c407a1f13ee8d27b2499 | 559 | py | Python | rabbitmq_asynqp/producer.py | Akshay2Agarwal/rabbitmq_asynqp | ae8291d272cd190ad92e4c43b98cd5788b10a907 | [
"Apache-2.0"
] | null | null | null | rabbitmq_asynqp/producer.py | Akshay2Agarwal/rabbitmq_asynqp | ae8291d272cd190ad92e4c43b98cd5788b10a907 | [
"Apache-2.0"
] | null | null | null | rabbitmq_asynqp/producer.py | Akshay2Agarwal/rabbitmq_asynqp | ae8291d272cd190ad92e4c43b98cd5788b10a907 | [
"Apache-2.0"
] | null | null | null | from rabbitmq_asynqp.rabbitmq_producer import send_message, send_bulk_messages
class Producer:
def __init__(self, rabbitmq_config: dict, queue_config: dict):
self.rabbitmq_config = rabbitmq_config
self.queue_config = queue_config
def send_msg(self, message: dict):
send_message(rabbit... | 37.266667 | 115 | 0.778175 | 73 | 559 | 5.575342 | 0.260274 | 0.240786 | 0.176904 | 0.154791 | 0.285012 | 0.285012 | 0.285012 | 0.285012 | 0.285012 | 0.285012 | 0 | 0 | 0.146691 | 559 | 14 | 116 | 39.928571 | 0.853249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2a0f83a451fd0e1f169ab3fe124f468f95c69349 | 261 | py | Python | docs/source/markdown/examples/gp_viz/__init__.py | looyclark/Gaussian_Processes | f02aa64bfbca8b3086e403a81178e6ae4702b48a | [
"MIT"
] | null | null | null | docs/source/markdown/examples/gp_viz/__init__.py | looyclark/Gaussian_Processes | f02aa64bfbca8b3086e403a81178e6ae4702b48a | [
"MIT"
] | null | null | null | docs/source/markdown/examples/gp_viz/__init__.py | looyclark/Gaussian_Processes | f02aa64bfbca8b3086e403a81178e6ae4702b48a | [
"MIT"
] | null | null | null | """
This script contains code for creating useful visualizations for gaussian
process modeling work. Visualization functions are grouped into regression and
classification modules.
"""
from . import common
from . import regression
from . import classification
| 26.1 | 78 | 0.816092 | 31 | 261 | 6.870968 | 0.774194 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141762 | 261 | 9 | 79 | 29 | 0.950893 | 0.67433 | 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 |
2a15d407718416d0189c8e57aa5202018ef01171 | 187 | py | Python | soccer/__main__.py | eegad/soccer-notifs | 624b5c4163415f9c47d39f935fec0ddc0a8af6e5 | [
"MIT"
] | null | null | null | soccer/__main__.py | eegad/soccer-notifs | 624b5c4163415f9c47d39f935fec0ddc0a8af6e5 | [
"MIT"
] | null | null | null | soccer/__main__.py | eegad/soccer-notifs | 624b5c4163415f9c47d39f935fec0ddc0a8af6e5 | [
"MIT"
] | null | null | null | import threading
from soccer.modules import next, live
def checknextmatch():
threading.Timer(43200.0, checknextmatch).start()
next.nextmatch()
checknextmatch()
live.livematch()
| 18.7 | 52 | 0.759358 | 21 | 187 | 6.761905 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03681 | 0.128342 | 187 | 9 | 53 | 20.777778 | 0.834356 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2a175195df5a0cbe41c55bf4cd17ba2f551cb02e | 9,054 | py | Python | pirates/makeapirate/MakeAPirateGlobals.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/makeapirate/MakeAPirateGlobals.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/makeapirate/MakeAPirateGlobals.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.makeapirate.MakeAPirateGlobals
BODYSHOP = 0
HEADSHOP = 1
MOUTHSHOP = 2
EYESSHOP = 3
NOSESHOP = 4
EARSHOP = 5
HAIRSHOP = 6
CLOTHE... | 205.772727 | 7,513 | 0.75116 | 1,354 | 9,054 | 4.503693 | 0.269572 | 0.030174 | 0.003444 | 0.004592 | 0.03001 | 0.019351 | 0.013447 | 0.010167 | 0.008527 | 0.008527 | 0 | 0.028844 | 0.073338 | 9,054 | 44 | 7,514 | 205.772727 | 0.697974 | 0.023636 | 0 | 0 | 0 | 0 | 0.687755 | 0.16048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a186344c5eca8bed2d0d9a0fb0708aa0df73bec | 345 | py | Python | tests/backends/test_postgresql.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 8 | 2015-03-19T11:25:32.000Z | 2020-09-02T11:30:10.000Z | tests/backends/test_postgresql.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 7 | 2015-03-23T14:34:28.000Z | 2022-02-21T12:36:01.000Z | tests/backends/test_postgresql.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 4 | 2018-11-28T21:59:27.000Z | 2020-01-05T01:50:08.000Z | # pylint: disable=unused-argument
import sqlpuzzle
def test_reference(postgresql):
sql = sqlpuzzle.select('id').from_('table')
assert str(sql) == 'SELECT "id" FROM "table"'
def test_boolean(postgresql):
sql = sqlpuzzle.select_from('table').where({'flag': True})
assert str(sql) == 'SELECT * FROM "tab... | 26.538462 | 66 | 0.678261 | 44 | 345 | 5.227273 | 0.477273 | 0.156522 | 0.191304 | 0.243478 | 0.243478 | 0.243478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156522 | 345 | 12 | 67 | 28.75 | 0.790378 | 0.089855 | 0 | 0 | 0 | 0 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a1e330c0f29bcb25e3a280bfb18c8acabf5ff75 | 164 | py | Python | Dataset/Leetcode/valid/125/43.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/125/43.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/125/43.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, s):
p=''
for i in s:
if i.isalpha():
p+=i.lower()
return p==p[::-1]
| 18.222222 | 28 | 0.390244 | 22 | 164 | 2.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.445122 | 164 | 8 | 29 | 20.5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a1fd721f445fd49d225aba2b61eb86e8ff598f2 | 64 | py | Python | yah/_base/defaults.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | yah/_base/defaults.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | yah/_base/defaults.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | DEFAULT_QUASAR_API_URL: str = 'https://iot.quasar.yandex.ru/m/'
| 32 | 63 | 0.75 | 11 | 64 | 4.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 64 | 1 | 64 | 64 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.484375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a2d89c9e2812c9a914539f06fdb60d8494b1eb0 | 90 | py | Python | test.py | samuelfu/MIT_Trading | 608464adf08cc9ede838e3947c5ae5ffb31a43f1 | [
"MIT"
] | 30 | 2018-12-10T21:17:35.000Z | 2022-03-01T04:19:56.000Z | test.py | samuelfu/MIT_Trading | 608464adf08cc9ede838e3947c5ae5ffb31a43f1 | [
"MIT"
] | 8 | 2020-11-12T02:40:57.000Z | 2021-02-25T05:50:03.000Z | test.py | samuelfu/MIT_Trading | 608464adf08cc9ede838e3947c5ae5ffb31a43f1 | [
"MIT"
] | 11 | 2018-12-23T23:40:10.000Z | 2022-03-14T16:49:03.000Z | from tradersbot import TradersBot
t = TradersBot('160.39.148.119', 'trader0', 'trader0')
| 22.5 | 54 | 0.733333 | 12 | 90 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 0.111111 | 90 | 3 | 55 | 30 | 0.6625 | 0 | 0 | 0 | 0 | 0 | 0.311111 | 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 |
2a2f5f6586a5b923a8fe636eea405cce9fc7f0c9 | 97 | py | Python | search/__init__.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | search/__init__.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | search/__init__.py | umarmughal824/micromasters | ea92d3bcea9be4601150fc497302ddacc1161622 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | # pylint: disable=missing-docstring,invalid-name
default_app_config = 'search.apps.SearchConfig'
| 32.333333 | 48 | 0.824742 | 12 | 97 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 97 | 2 | 49 | 48.5 | 0.857143 | 0.474227 | 0 | 0 | 0 | 0 | 0.489796 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a3cd13ce7914c1140a13aa4d10d007cfd347c89 | 434 | py | Python | tgbot/migrations/0003_rm_unused_fields.py | ErhoSen/django-telegram-bot | 37153f70548a5e4707101176c9d89bb9b5899492 | [
"Apache-2.0"
] | 2 | 2022-01-05T13:40:53.000Z | 2022-01-27T12:45:20.000Z | tgbot/migrations/0003_rm_unused_fields.py | ErhoSen/django-telegram-bot | 37153f70548a5e4707101176c9d89bb9b5899492 | [
"Apache-2.0"
] | null | null | null | tgbot/migrations/0003_rm_unused_fields.py | ErhoSen/django-telegram-bot | 37153f70548a5e4707101176c9d89bb9b5899492 | [
"Apache-2.0"
] | 1 | 2022-01-27T12:45:27.000Z | 2022-01-27T12:45:27.000Z | # Generated by Django 3.2.6 on 2021-12-01 17:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tgbot', '0002_alter_user_user_id'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='is_banned',
),... | 19.727273 | 47 | 0.562212 | 45 | 434 | 5.244444 | 0.688889 | 0.177966 | 0.220339 | 0.254237 | 0.338983 | 0.338983 | 0.338983 | 0 | 0 | 0 | 0 | 0.064846 | 0.324885 | 434 | 21 | 48 | 20.666667 | 0.740614 | 0.103687 | 0 | 0.4 | 1 | 0 | 0.147287 | 0.059432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a4247b1a7bd96adfc2f4b4f43b88f5bd914862b | 13,220 | py | Python | home_application/models_store.py | tom523/db_esb_test | 5bba5ef8b8666106d30a5b9f056f5e356a1ed348 | [
"Apache-2.0"
] | null | null | null | home_application/models_store.py | tom523/db_esb_test | 5bba5ef8b8666106d30a5b9f056f5e356a1ed348 | [
"Apache-2.0"
] | null | null | null | home_application/models_store.py | tom523/db_esb_test | 5bba5ef8b8666106d30a5b9f056f5e356a1ed348 | [
"Apache-2.0"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free ... | 81.604938 | 137 | 0.743646 | 1,778 | 13,220 | 5.415636 | 0.119235 | 0.088794 | 0.128258 | 0.167723 | 0.564441 | 0.558002 | 0.526846 | 0.49569 | 0.404819 | 0.364108 | 0 | 0.016121 | 0.141301 | 13,220 | 161 | 138 | 82.111801 | 0.8321 | 0.222315 | 0 | 0.125926 | 1 | 0 | 0.083595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007407 | false | 0 | 0.014815 | 0.007407 | 0.925926 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2a5e93a06798bf900168d2ea8bb87ac9f47af88b | 218 | py | Python | oarepo_model_builder/invenio/invenio_proxies.py | oarepo/oarepo-model-builder | d322a76da28eb900b2898169b205d7559ea4a873 | [
"MIT"
] | null | null | null | oarepo_model_builder/invenio/invenio_proxies.py | oarepo/oarepo-model-builder | d322a76da28eb900b2898169b205d7559ea4a873 | [
"MIT"
] | 21 | 2022-01-09T19:09:15.000Z | 2022-03-08T08:06:02.000Z | oarepo_model_builder/invenio/invenio_proxies.py | oarepo/oarepo-model-builder | d322a76da28eb900b2898169b205d7559ea4a873 | [
"MIT"
] | 2 | 2021-07-29T07:20:31.000Z | 2021-11-30T13:53:13.000Z | from .invenio_base import InvenioBaseClassPythonBuilder
class InvenioProxiesBuilder(InvenioBaseClassPythonBuilder):
TYPE = 'invenio_proxies'
class_config = 'proxies-current-resource'
template = 'proxies'
| 27.25 | 59 | 0.798165 | 18 | 218 | 9.5 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133028 | 218 | 7 | 60 | 31.142857 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
2a633149d82dd79e2ee0c1d99b3f8bbc937c05d0 | 1,414 | py | Python | malaya_speech/utils/__init__.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 111 | 2020-08-31T04:58:54.000Z | 2022-03-29T15:44:18.000Z | malaya_speech/utils/__init__.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 14 | 2020-12-16T07:27:22.000Z | 2022-03-15T17:39:01.000Z | malaya_speech/utils/__init__.py | ishine/malaya-speech | fd34afc7107af1656dff4b3201fa51dda54fde18 | [
"MIT"
] | 29 | 2021-02-09T08:57:15.000Z | 2022-03-12T14:09:19.000Z | from malaya_boilerplate.utils import (
available_device,
available_gpu,
close_session,
describe_availability,
)
from malaya_boilerplate.frozen_graph import (
nodes_session,
generate_session,
get_device,
)
from malaya_boilerplate import backblaze
from malaya_boilerplate import frozen_graph
fr... | 23.566667 | 78 | 0.783593 | 188 | 1,414 | 5.696809 | 0.303191 | 0.205416 | 0.098039 | 0.07563 | 0.126984 | 0.082166 | 0.082166 | 0 | 0 | 0 | 0 | 0.002498 | 0.150636 | 1,414 | 59 | 79 | 23.966102 | 0.889259 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.595745 | 0.106383 | 0.808511 | 0.042553 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
2a8da096f06459219fc0b54b3e50dbc7a059ffeb | 2,508 | py | Python | pynessus/models/user.py | maaren/pynessus | 21afdab52c309610c82e8e69e41dc67e7938b17c | [
"Apache-2.0"
] | null | null | null | pynessus/models/user.py | maaren/pynessus | 21afdab52c309610c82e8e69e41dc67e7938b17c | [
"Apache-2.0"
] | null | null | null | pynessus/models/user.py | maaren/pynessus | 21afdab52c309610c82e8e69e41dc67e7938b17c | [
"Apache-2.0"
] | null | null | null | """
Copyright 2014 Quentin Kaiser
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 23.222222 | 82 | 0.64673 | 299 | 2,508 | 5.277592 | 0.354515 | 0.045627 | 0.070976 | 0.020279 | 0.041825 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006027 | 0.272329 | 2,508 | 108 | 83 | 23.222222 | 0.85863 | 0.303429 | 0 | 0.196721 | 0 | 0 | 0.003001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.278689 | false | 0.114754 | 0.016393 | 0.131148 | 0.442623 | 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 | 1 | 0 | 0 | 0 | 3 |
aa6363d47a10c480c85bf215ed7e6da13d92e554 | 321 | py | Python | awx/main/tests/unit/api/serializers/test_token_serializer.py | bhyunki/awx | ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c | [
"Apache-2.0"
] | 11,396 | 2017-09-07T04:56:02.000Z | 2022-03-31T13:56:17.000Z | awx/main/tests/unit/api/serializers/test_token_serializer.py | bhyunki/awx | ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c | [
"Apache-2.0"
] | 11,046 | 2017-09-07T09:30:46.000Z | 2022-03-31T20:28:01.000Z | awx/main/tests/unit/api/serializers/test_token_serializer.py | bhyunki/awx | ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c | [
"Apache-2.0"
] | 3,592 | 2017-09-07T04:14:31.000Z | 2022-03-31T23:53:09.000Z | import pytest
from awx.api.serializers import OAuth2TokenSerializer
@pytest.mark.parametrize('scope, expect', [('', False), ('read', True), ('read read', False), ('write read', True), ('read rainbow', False)])
def test_invalid_scopes(scope, expect):
assert OAuth2TokenSerializer()._is_valid_scope(scope) is expect... | 35.666667 | 141 | 0.732087 | 39 | 321 | 5.897436 | 0.589744 | 0.095652 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.109034 | 321 | 8 | 142 | 40.125 | 0.797203 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 |
aa6367d7f3da7df075c0d4633c9f5e9bdd0bc8af | 1,499 | py | Python | mill_touch_v6/coord_list.py | TurBoss/mill_touch_v6 | 5ddb2f50eb17113110ca6efcc1b942a01989d045 | [
"MIT"
] | 9 | 2019-04-24T12:42:58.000Z | 2021-04-08T20:16:49.000Z | mill_touch_v6/coord_list.py | TurBoss/mill_touch_v6 | 5ddb2f50eb17113110ca6efcc1b942a01989d045 | [
"MIT"
] | 2 | 2019-06-27T17:18:46.000Z | 2021-09-18T20:07:10.000Z | mill_touch_v6/coord_list.py | TurBoss/mill_touch_v6 | 5ddb2f50eb17113110ca6efcc1b942a01989d045 | [
"MIT"
] | 3 | 2019-04-11T16:10:38.000Z | 2022-02-21T04:54:56.000Z | from functools import partial
"""
This is no longer used, code is in hole_ops.py
def setupCoordList(parent):
parent.coordListDownBtn.clicked.connect(partial(coordListDown, parent))
parent.coordListUpBtn.clicked.connect(partial(coordListUp, parent))
parent.coordListAppendBtn.clicked.connect(partial(coordLi... | 31.229167 | 79 | 0.687125 | 154 | 1,499 | 6.681818 | 0.331169 | 0.183673 | 0.132167 | 0.037901 | 0.336249 | 0.336249 | 0.336249 | 0.336249 | 0.336249 | 0.174927 | 0 | 0.007401 | 0.188793 | 1,499 | 47 | 80 | 31.893617 | 0.838816 | 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 |
aa6bad8ae106a3f137103a3d8e56bf9acfe0bb9e | 551 | py | Python | backend/apps/organizations/migrations/0012_auto_20210208_1755.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 3 | 2021-11-18T09:29:14.000Z | 2022-01-13T20:12:11.000Z | backend/apps/organizations/migrations/0012_auto_20210208_1755.py | rubberdok/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 277 | 2022-01-17T18:16:44.000Z | 2022-03-31T19:44:04.000Z | backend/apps/organizations/migrations/0012_auto_20210208_1755.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-02-08 16:55
from django.conf import settings
from django.db import migrations, models
from django.db.migrations.operations.models import RenameModel
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | 27.55 | 66 | 0.720508 | 63 | 551 | 6.206349 | 0.603175 | 0.076726 | 0.061381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067834 | 0.170599 | 551 | 19 | 67 | 29 | 0.787746 | 0.08167 | 0 | 0 | 1 | 0 | 0.134921 | 0.045635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aa74d11aff6e45bbf88823339a8371658fdd58fc | 1,409 | py | Python | how2pizza/pizza/models.py | ianonavy/how2pizza.github.io | ebac7b0cd2ea3be851eddb3fe221c11d1a2a426a | [
"MIT"
] | null | null | null | how2pizza/pizza/models.py | ianonavy/how2pizza.github.io | ebac7b0cd2ea3be851eddb3fe221c11d1a2a426a | [
"MIT"
] | null | null | null | how2pizza/pizza/models.py | ianonavy/how2pizza.github.io | ebac7b0cd2ea3be851eddb3fe221c11d1a2a426a | [
"MIT"
] | null | null | null | from django.db import models
from django.core.urlresolvers import reverse
import uuid
DEFAULT_PIZZAS = {u'cheese', u'pepperoni', u'veggie'}
def random_number():
return int(os.urandom(8).encode('hex'), 16)
class PizzaOrder(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=... | 28.755102 | 85 | 0.710433 | 195 | 1,409 | 4.917949 | 0.410256 | 0.072993 | 0.059437 | 0.068822 | 0.302398 | 0.234619 | 0.150156 | 0.150156 | 0.064651 | 0.064651 | 0 | 0.008569 | 0.171753 | 1,409 | 48 | 86 | 29.354167 | 0.813196 | 0 | 0 | 0.290323 | 0 | 0 | 0.047551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0.225806 | 0.935484 | 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 |
aac280f879b958905fe690133dd625ece0fb9cd5 | 685 | py | Python | accountant/core/migrations/0007_auto_20161219_2323.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | null | null | null | accountant/core/migrations/0007_auto_20161219_2323.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | 7 | 2017-03-29T18:52:44.000Z | 2017-09-05T19:06:29.000Z | accountant/core/migrations/0007_auto_20161219_2323.py | XeryusTC/18xx-accountant | 5dc70fb96042807ceaaadb51cea3108da4f40d85 | [
"MIT"
] | 1 | 2019-12-16T22:27:07.000Z | 2019-12-16T22:27:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-19 23:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0006_auto_20161219_2038'),
]
operations = [
migrations.AlterUniqueTogether(... | 24.464286 | 57 | 0.570803 | 63 | 685 | 6.031746 | 0.619048 | 0.228947 | 0.260526 | 0.110526 | 0.305263 | 0.305263 | 0.305263 | 0.305263 | 0 | 0 | 0 | 0.067623 | 0.287591 | 685 | 27 | 58 | 25.37037 | 0.711066 | 0.09927 | 0 | 0.4 | 1 | 0 | 0.120521 | 0.037459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a9d8fccdc2eba025488edd0185b99954645ce84 | 124 | py | Python | airbyte-integrations/connectors/source-aatest/source_aatest/__init__.py | Cheriit/airbyte | cf17bf83108aee9f47a3e480affca3079ac2e1c6 | [
"MIT"
] | null | null | null | airbyte-integrations/connectors/source-aatest/source_aatest/__init__.py | Cheriit/airbyte | cf17bf83108aee9f47a3e480affca3079ac2e1c6 | [
"MIT"
] | null | null | null | airbyte-integrations/connectors/source-aatest/source_aatest/__init__.py | Cheriit/airbyte | cf17bf83108aee9f47a3e480affca3079ac2e1c6 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
from .source import SourceAatest
__all__ = ["SourceAatest"]
| 13.777778 | 56 | 0.709677 | 14 | 124 | 6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.169355 | 124 | 8 | 57 | 15.5 | 0.776699 | 0.435484 | 0 | 0 | 0 | 0 | 0.181818 | 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 |
2aa036a3b41a7e254bb89edb8aa0c58cc2dd4f72 | 1,197 | py | Python | Algorithms_easy/1356. Sort Integers by The Number of 1 Bits.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_easy/1356. Sort Integers by The Number of 1 Bits.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_easy/1356. Sort Integers by The Number of 1 Bits.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
1356. Sort Integers by The Number of 1 Bits
Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and in case of two or more integers have the same number of 1's you have to sort them in ascending order.
Return the sorted array... | 26.6 | 247 | 0.672515 | 247 | 1,197 | 3.259109 | 0.340081 | 0.049689 | 0.014907 | 0.019876 | 0.11677 | 0.02236 | 0.02236 | 0.02236 | 0.02236 | 0 | 0 | 0.182556 | 0.176274 | 1,197 | 45 | 248 | 26.6 | 0.633874 | 0.87051 | 0 | 0 | 0 | 0 | 0.006757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2ad8bdc09664a1cbb35a993f571a190fcd9208c0 | 226 | py | Python | layouter/urls.py | Blueshoe/djangocms-layouter | efea2e2ee1e72bd0a8113df30185bfa2fb2de30d | [
"MIT"
] | 28 | 2017-01-09T16:11:28.000Z | 2020-10-14T22:38:20.000Z | layouter/urls.py | Blueshoe/djangocms-layouter | efea2e2ee1e72bd0a8113df30185bfa2fb2de30d | [
"MIT"
] | 32 | 2017-03-17T11:12:28.000Z | 2020-10-16T11:43:42.000Z | layouter/urls.py | Blueshoe/djangocms-layouter | efea2e2ee1e72bd0a8113df30185bfa2fb2de30d | [
"MIT"
] | 5 | 2017-03-17T10:19:50.000Z | 2020-10-14T22:38:55.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from layouter.views import ToggleGridView
from django.urls import path
urlpatterns = [
path('toggle-grid/', ToggleGridView.as_view(), name='toggle-grid')
]
| 22.6 | 70 | 0.738938 | 28 | 226 | 5.75 | 0.714286 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.132743 | 226 | 9 | 71 | 25.111111 | 0.816327 | 0.09292 | 0 | 0 | 0 | 0 | 0.1133 | 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 |
2aebd6f31d377f5af7d7890937885dbdc68343de | 55 | py | Python | CS_257/olympics-api/config.py | SilasZhao/Silas-s_project | 69b792694a4dd92f5cdacc4736b62f42d9ba42cd | [
"MIT"
] | null | null | null | CS_257/olympics-api/config.py | SilasZhao/Silas-s_project | 69b792694a4dd92f5cdacc4736b62f42d9ba42cd | [
"MIT"
] | null | null | null | CS_257/olympics-api/config.py | SilasZhao/Silas-s_project | 69b792694a4dd92f5cdacc4736b62f42d9ba42cd | [
"MIT"
] | null | null | null | password = ''
database = 'olympics'
user = 'aidenchang' | 18.333333 | 21 | 0.690909 | 5 | 55 | 7.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 3 | 22 | 18.333333 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 |
2aff52994fb2ab6407a786c6c191bed9f4e91e85 | 150 | py | Python | day04/test7.py | liuweidongg/dejin | 12240b9d27347d6e041338869591aa7133bf80cd | [
"Apache-2.0"
] | 1 | 2018-09-27T02:01:38.000Z | 2018-09-27T02:01:38.000Z | day04/test7.py | liuweidongg/dejin | 12240b9d27347d6e041338869591aa7133bf80cd | [
"Apache-2.0"
] | null | null | null | day04/test7.py | liuweidongg/dejin | 12240b9d27347d6e041338869591aa7133bf80cd | [
"Apache-2.0"
] | null | null | null | import math
def distance(x1,y1,x2,y2):
s = math.sqrt((x1-x2)**2+(y1-y2)**2)
print(s)
x1,y1,x2,y2=eval(raw_input(">>>"))
distance(x1,y1,x2,y2)
| 21.428571 | 40 | 0.606667 | 31 | 150 | 2.903226 | 0.483871 | 0.133333 | 0.2 | 0.266667 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.12 | 150 | 6 | 41 | 25 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 |
631e2c6d04a4f91d13b60667492144914256a688 | 1,641 | py | Python | src/pdf/domain/pdffile.py | ichiro-kazusa/PDFCon | 529c22145bfd20919b015b5ba70e8bab33feed01 | [
"MIT"
] | null | null | null | src/pdf/domain/pdffile.py | ichiro-kazusa/PDFCon | 529c22145bfd20919b015b5ba70e8bab33feed01 | [
"MIT"
] | null | null | null | src/pdf/domain/pdffile.py | ichiro-kazusa/PDFCon | 529c22145bfd20919b015b5ba70e8bab33feed01 | [
"MIT"
] | null | null | null | """Domain objects about PDF file."""
# import re
from typing import Generator, List
class PDFSrcPath:
"""Value Object which specifies PDF source file"""
__slots__ = ["__srcpath"]
def __init__(self, pdfsrcpath: str):
self.__srcpath = pdfsrcpath
@property
def path(self) -> str:
re... | 24.863636 | 70 | 0.641682 | 182 | 1,641 | 5.516484 | 0.335165 | 0.059761 | 0.055777 | 0.049801 | 0.2749 | 0.219124 | 0.219124 | 0.155378 | 0.079681 | 0 | 0 | 0.000818 | 0.254723 | 1,641 | 65 | 71 | 25.246154 | 0.820114 | 0.113955 | 0 | 0.25641 | 0 | 0 | 0.012561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.025641 | 0.205128 | 0.717949 | 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 |
631f5b08667fbd9e03f9bda4eca480d82a3e7fcc | 184 | py | Python | evaluate_reverse_polish_notation.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | evaluate_reverse_polish_notation.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | evaluate_reverse_polish_notation.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null |
class EvaluateReversePolishNotation:
"""
https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/
"""
def evalRPN(self, tokens: List[str]) -> int:
| 20.444444 | 70 | 0.646739 | 18 | 184 | 6.611111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 184 | 8 | 71 | 23 | 0.815068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d5c97721b737fe10b921e813d731e844b11ab0c | 2,565 | py | Python | logo.py | bwhewe-13/ants | 6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2 | [
"MIT"
] | null | null | null | logo.py | bwhewe-13/ants | 6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2 | [
"MIT"
] | null | null | null | logo.py | bwhewe-13/ants | 6923cfc1603e0cd90c2ae90fa0fed6dd86edc0b2 | [
"MIT"
] | null | null | null | ants_picture = """
.`
/
`:`
.-` ... | 57 | 76 | 0.125536 | 52 | 2,565 | 5.365385 | 0.634615 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001427 | 0.726706 | 2,565 | 45 | 77 | 57 | 0.396576 | 0 | 0 | 0 | 0 | 0 | 0.968062 | 0.081571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
2d68bfbc2aa3bc4094f3747ae478a6695a05a1a6 | 612 | py | Python | syspath/tests/test_parent_path.py | albertyw/syspath | b30e34aea88c19f76381736338459c61557b4d7d | [
"MIT"
] | 3 | 2018-01-11T04:33:43.000Z | 2021-12-21T05:00:35.000Z | syspath/tests/test_parent_path.py | albertyw/syspath | b30e34aea88c19f76381736338459c61557b4d7d | [
"MIT"
] | 14 | 2017-12-18T17:15:51.000Z | 2021-12-27T05:05:49.000Z | syspath/tests/test_parent_path.py | albertyw/syspath | b30e34aea88c19f76381736338459c61557b4d7d | [
"MIT"
] | 2 | 2018-03-12T03:23:32.000Z | 2019-12-03T21:30:29.000Z | import copy
import sys
import unittest
from .. import syspath
class TestParentPath(unittest.TestCase):
def setUp(self) -> None:
self.orig_sys_path = copy.deepcopy(sys.path)
def tearDown(self) -> None:
sys.path = self.orig_sys_path
def test_import(self) -> None:
self.assertEqual(... | 26.608696 | 69 | 0.674837 | 83 | 612 | 4.795181 | 0.313253 | 0.123116 | 0.082915 | 0.113065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006224 | 0.212418 | 612 | 22 | 70 | 27.818182 | 0.819502 | 0.01634 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0 | 0.4375 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2d90200a2674ef50a5a4237e5a3d1e114c0e6278 | 221 | py | Python | WideFieldCamera_advanced.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | WideFieldCamera_advanced.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | WideFieldCamera_advanced.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | #!/usr/bin/env python
# Friedrich Schotte, 1 Oct 2014 - 2 Jul 2017
from inspect import getfile
from os.path import dirname
def f(): pass
dir=dirname(getfile(f))
if dir == "": dir = "."
execfile(dir+"/WideFieldCamera.py")
| 24.555556 | 44 | 0.705882 | 35 | 221 | 4.457143 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05291 | 0.144796 | 221 | 8 | 45 | 27.625 | 0.772487 | 0.285068 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
2d9830314273b2e1f4f0402d3c7b382aa78d0dfd | 832 | py | Python | py2/tests/utils/mask_functions.py | ti-ginkgo/Severstal | 57f37dc61cfd910b575afa7dc51094c94e3511c0 | [
"MIT"
] | 2 | 2020-01-08T02:58:18.000Z | 2020-01-28T16:42:00.000Z | py2/tests/utils/mask_functions.py | ti-ginkgo/Severstal | 57f37dc61cfd910b575afa7dc51094c94e3511c0 | [
"MIT"
] | null | null | null | py2/tests/utils/mask_functions.py | ti-ginkgo/Severstal | 57f37dc61cfd910b575afa7dc51094c94e3511c0 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../../')
import unittest
import numpy as np
from utils.mask_functions import *
class MaskFunctionsTest(unittest.TestCase):
def setUp(self):
self.rle = '0 4 8 2'
self.mask = [
[1, 1, 0, 0, 0, 0, 0, 0,],
[1, 1, 0, 0, 0, 0, 0, 0,],
[1,... | 25.212121 | 95 | 0.491587 | 136 | 832 | 2.875 | 0.264706 | 0.276215 | 0.383632 | 0.470588 | 0.163683 | 0.163683 | 0.163683 | 0.163683 | 0.163683 | 0.138107 | 0 | 0.125887 | 0.322115 | 832 | 32 | 96 | 26 | 0.567376 | 0 | 0 | 0.333333 | 0 | 0 | 0.02524 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.125 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
2d9c471a7583581bdb6b501faaabc94c5791aa99 | 462 | py | Python | d3ct/plugins/console.py | metro-nom/d3ct | 2d619b46fac7de29c031a3737570ca62e33d8c2f | [
"BSD-3-Clause"
] | null | null | null | d3ct/plugins/console.py | metro-nom/d3ct | 2d619b46fac7de29c031a3737570ca62e33d8c2f | [
"BSD-3-Clause"
] | null | null | null | d3ct/plugins/console.py | metro-nom/d3ct | 2d619b46fac7de29c031a3737570ca62e33d8c2f | [
"BSD-3-Clause"
] | null | null | null | class ConsoleGenerator:
def print_tree(self, indent=0, depth=99):
if depth > 0:
print(" " * indent, str(self))
self.descend_tree(indent, depth)
def descend_tree(self, indent=0, depth=99):
# do descent here, other classes may overload this
pass
@staticmet... | 27.176471 | 65 | 0.569264 | 57 | 462 | 4.526316 | 0.54386 | 0.062016 | 0.108527 | 0.116279 | 0.170543 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0.034056 | 0.300866 | 462 | 16 | 66 | 28.875 | 0.764706 | 0.103896 | 0 | 0.166667 | 0 | 0 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0 | 0 | 0.333333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
2dc4711c010e2c6441561355d308b71f15b12d2c | 256,350 | py | Python | Test_Generator_Module/test_generator_modul_formelfrage.py | johannamay/ILIAS---Test-Generator | e06252c283fbd71928674125028ab81bad724154 | [
"MIT"
] | 2 | 2020-05-28T17:12:07.000Z | 2021-04-26T15:06:38.000Z | Test_Generator_Module/test_generator_modul_formelfrage.py | johannamay/ILIAS---Test-Generator | e06252c283fbd71928674125028ab81bad724154 | [
"MIT"
] | 1 | 2020-08-12T09:50:36.000Z | 2020-08-12T09:50:36.000Z | Test_Generator_Module/test_generator_modul_formelfrage.py | johannamay/ILIAS---Test-Generator | e06252c283fbd71928674125028ab81bad724154 | [
"MIT"
] | 6 | 2020-06-17T17:02:51.000Z | 2021-07-31T15:50:51.000Z | """
********************************************
test_generator_moduL_formelfrage.py
@digitalfellowship - Stand 07/2021
Autor: Tobias Panteleit
********************************************
Dieses Modul dient der Erstellung der Formelfragen-GUI
sowie den Formelfragen in XML Struktur
"""
from tkinter impor... | 63.943627 | 445 | 0.60387 | 33,542 | 256,350 | 4.186989 | 0.033838 | 0.076517 | 0.02683 | 0.052862 | 0.828126 | 0.785887 | 0.72604 | 0.683473 | 0.644361 | 0.574473 | 0 | 0.031728 | 0.289358 | 256,350 | 4,008 | 446 | 63.959581 | 0.739187 | 0.068602 | 0 | 0.366667 | 0 | 0.001481 | 0.071884 | 0.008596 | 0.002222 | 0 | 0 | 0 | 0 | 1 | 0.012963 | false | 0 | 0.01037 | 0.001111 | 0.027037 | 0.008889 | 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 |
2dd8f4a715d3b3d2632df12289bdf895035d8c0f | 1,676 | py | Python | scripts/python/Vector3.py | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | 13 | 2017-03-21T22:46:18.000Z | 2020-07-30T01:31:57.000Z | scripts/python/Vector3.py | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | null | null | null | scripts/python/Vector3.py | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | 2 | 2018-07-23T19:56:41.000Z | 2020-07-30T01:32:01.000Z | #
# Python Vector3 script
#
# This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
# See "LICENSE.txt" for license information.
#
import math
class Vector3:
'''This is the 3D vector class with components x, y and z'''
x = y = z = None
def __init__(self, x, y, z):
self.x = x
self.y = ... | 19.488372 | 78 | 0.606802 | 304 | 1,676 | 3.226974 | 0.200658 | 0.056065 | 0.055046 | 0.089704 | 0.470948 | 0.460754 | 0.460754 | 0.460754 | 0.460754 | 0.460754 | 0 | 0.013997 | 0.232697 | 1,676 | 85 | 79 | 19.717647 | 0.748834 | 0.118138 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.016667 | 0.133333 | 0.55 | 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 |
2de6a64abe71a13a412d3649d2799107a1ae0416 | 194 | py | Python | output/models/sun_data/elem_decl/value_constraint/value_constraint00401m/value_constraint00401m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/elem_decl/value_constraint/value_constraint00401m/value_constraint00401m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/elem_decl/value_constraint/value_constraint00401m/value_constraint00401m1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.sun_data.elem_decl.value_constraint.value_constraint00401m.value_constraint00401m1_xsd.value_constraint00401m1 import (
E,
Root,
)
__all__ = [
"E",
"Root",
]
| 19.4 | 138 | 0.742268 | 22 | 194 | 6.045455 | 0.727273 | 0.330827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103659 | 0.154639 | 194 | 9 | 139 | 21.555556 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.025773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
9316ac6f588ea0b00d94dc706f08564908d92cfe | 6,082 | py | Python | peval/tools/immutable.py | fjarri/peval | 052028272063b0e2f889ef8de413f5ea8cef27a9 | [
"MIT"
] | 12 | 2015-10-01T22:15:45.000Z | 2021-03-14T23:26:48.000Z | peval/tools/immutable.py | fjarri/peval | 052028272063b0e2f889ef8de413f5ea8cef27a9 | [
"MIT"
] | null | null | null | peval/tools/immutable.py | fjarri/peval | 052028272063b0e2f889ef8de413f5ea8cef27a9 | [
"MIT"
] | 1 | 2015-05-26T06:55:28.000Z | 2015-05-26T06:55:28.000Z | """
Immutable data structures.
The classes in this module have the prefix 'immutable' to avoid confusion
with the built-in ``frozenset``, which does not have any modification methods,
even pure ones.
"""
class immutabledict(dict):
"""
An immutable version of ``dict``.
Mutating syntax (``del d[k]``, ``d[... | 26.558952 | 98 | 0.592239 | 748 | 6,082 | 4.558824 | 0.163102 | 0.070381 | 0.038123 | 0.034897 | 0.518768 | 0.460997 | 0.339296 | 0.26305 | 0.199707 | 0.187683 | 0 | 0.00143 | 0.310095 | 6,082 | 228 | 99 | 26.675439 | 0.811249 | 0.165242 | 0 | 0.430556 | 0 | 0 | 0.077434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.256944 | false | 0 | 0 | 0.111111 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.