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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22547854b74265fb9c93ac8aa159fb65369539c3 | 3,857 | py | Python | 3rdPartyLibraries/FuXi-master/test/test_builtin_ordering.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | 3rdPartyLibraries/FuXi-master/test/test_builtin_ordering.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | 3rdPartyLibraries/FuXi-master/test/test_builtin_ordering.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import unittest
# from pprint import pprint
from cStringIO import StringIO
from rdflib.graph import (
# Graph,
ConjunctiveGraph,
QuotedGraph
)
from rdflib import (
Literal,
Variable,
URIRef,
Namespace
)
from FuXi.Rete.BuiltinPredicates import (
# FILTERS,
... | 30.856 | 78 | 0.687322 | 451 | 3,857 | 5.756098 | 0.266075 | 0.01849 | 0.023112 | 0.027735 | 0.568567 | 0.48228 | 0.48228 | 0.409091 | 0.37057 | 0.332049 | 0 | 0.013038 | 0.204563 | 3,857 | 124 | 79 | 31.104839 | 0.83279 | 0.034483 | 0 | 0.314607 | 0 | 0.022472 | 0.196348 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0 | null | null | 0.044944 | 0.101124 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2258d54678dfd7b4efe59e62d73acb516523e04e | 3,298 | py | Python | ML/Bool_fun_est/adaboost.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | ML/Bool_fun_est/adaboost.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | ML/Bool_fun_est/adaboost.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | from numpy import *
from operator import gt, le
from pprint import pprint
class AdaBoost(object):
def __init__(self, x, y, adaNum = 30):
self.x = x
self.y = y
m = y.shape[0]
self.adaNum = adaNum
D = array([1.0/m] * m)
DSs = []
aggPrediction = zeros(... | 29.981818 | 73 | 0.440267 | 371 | 3,298 | 3.876011 | 0.25876 | 0.025035 | 0.006259 | 0.023644 | 0.040334 | 0.040334 | 0 | 0 | 0 | 0 | 0 | 0.018124 | 0.43117 | 3,298 | 109 | 74 | 30.256881 | 0.748401 | 0.165858 | 0 | 0.027397 | 0 | 0 | 0.033456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013699 | 0.041096 | null | null | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
225fa8901179727b3cab9f6dd322dd2a59d2772b | 29,268 | py | Python | test/py/ganeti.backend_unittest.py | apyrgio/snf-ganeti | c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7 | [
"BSD-2-Clause"
] | null | null | null | test/py/ganeti.backend_unittest.py | apyrgio/snf-ganeti | c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7 | [
"BSD-2-Clause"
] | null | null | null | test/py/ganeti.backend_unittest.py | apyrgio/snf-ganeti | c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
#
# Copyright (C) 2010, 2013 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this l... | 35.476364 | 80 | 0.668307 | 3,158 | 29,268 | 5.990184 | 0.165928 | 0.04599 | 0.016176 | 0.020669 | 0.572395 | 0.526881 | 0.482793 | 0.432151 | 0.37654 | 0.352381 | 0 | 0.013855 | 0.230593 | 29,268 | 824 | 81 | 35.519417 | 0.826191 | 0.057537 | 0 | 0.492586 | 0 | 0 | 0.05615 | 0.00103 | 0 | 0 | 0 | 0 | 0.209226 | 0 | null | null | 0 | 0.019769 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2262b2fdbbbd5905c57d4ce5a5c3556b973de052 | 1,391 | py | Python | itscsapp/contact/forms/contactForm.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | itscsapp/contact/forms/contactForm.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | itscsapp/contact/forms/contactForm.py | danyRivC/itscsapp | 485309f41f477fcebf66899740a0b4a954f4b98b | [
"MIT"
] | null | null | null | from django import forms
from itscsapp.contact.models.contact import Contact
class ContactForm(forms.ModelForm):
class Meta:
model = Contact
fields = ['name', 'phone_number', 'subject', 'email', 'message']
widgets = {
'name': forms.TextInput(attrs={'class': 'col-md-6 col-sm-6 c... | 57.958333 | 120 | 0.501797 | 151 | 1,391 | 4.602649 | 0.311258 | 0.046043 | 0.093525 | 0.107914 | 0.594245 | 0.594245 | 0.496403 | 0.496403 | 0.496403 | 0.434532 | 0 | 0.028754 | 0.324946 | 1,391 | 23 | 121 | 60.478261 | 0.711395 | 0 | 0 | 0 | 0 | 0.238095 | 0.383178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22661b977f6a59497e34ac8600df8cfc8b5c89b1 | 15,874 | py | Python | example_progs/commBoardTests.py | JosephLutz/serialCommTest | 6ae646a9275f90d5d122d441031bd02502441cc3 | [
"MIT"
] | null | null | null | example_progs/commBoardTests.py | JosephLutz/serialCommTest | 6ae646a9275f90d5d122d441031bd02502441cc3 | [
"MIT"
] | null | null | null | example_progs/commBoardTests.py | JosephLutz/serialCommTest | 6ae646a9275f90d5d122d441031bd02502441cc3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from traceback import format_tb
import threading
from threading import Lock
import termios
import hashlib
import random
import select
import serial
import Queue
import time
import sys
import os
if (sys.hexversion < 0x020100f0):
import TERMIOS
else:
TERMIOS = termios
if (sys.hexversion < 0x0202... | 35.433036 | 160 | 0.696926 | 2,454 | 15,874 | 4.320293 | 0.128362 | 0.053575 | 0.039427 | 0.022637 | 0.498302 | 0.42143 | 0.351726 | 0.319657 | 0.289096 | 0.248821 | 0 | 0.016309 | 0.154088 | 15,874 | 447 | 161 | 35.512304 | 0.773235 | 0.099471 | 0 | 0.295533 | 0 | 0.027491 | 0.140251 | 0.035686 | 0.003436 | 0 | 0.00178 | 0 | 0 | 0 | null | null | 0.003436 | 0.051546 | null | null | 0.04811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
226c1bd561cb68c2e5a5bbd5ae75e0c6650017cb | 381 | py | Python | tests/test_load_emmo.py | emmo-repo/EMMO-python | a7c1ab8587e1b49ad871a1bbc2c791f0955d9579 | [
"BSD-3-Clause"
] | 16 | 2019-06-13T08:16:01.000Z | 2022-03-31T07:51:24.000Z | tests/test_load_emmo.py | emmo-repo/EMMO-python | a7c1ab8587e1b49ad871a1bbc2c791f0955d9579 | [
"BSD-3-Clause"
] | 205 | 2019-07-01T11:33:05.000Z | 2022-03-30T08:28:25.000Z | tests/test_load_emmo.py | emmo-repo/EMMO-python | a7c1ab8587e1b49ad871a1bbc2c791f0955d9579 | [
"BSD-3-Clause"
] | 12 | 2019-06-11T08:22:43.000Z | 2022-02-11T13:46:34.000Z | def test_load_emmo() -> None:
"""Test loading EMMO.
EMMO is also loaded in the `emmo` fixture.
I.e., the fixture acts as a "test" as well, in this regard.
"""
from emmopy import get_emmo
EMMO_inferred = get_emmo()
EMMO = get_emmo(inferred=False)
assert EMMO_inferred
assert EMMO
... | 22.411765 | 63 | 0.669291 | 58 | 381 | 4.206897 | 0.5 | 0.114754 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238845 | 381 | 16 | 64 | 23.8125 | 0.841379 | 0.32021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
226f392a6d39599aa3b99937b91fc427a5775ddb | 6,158 | py | Python | user_metrics/metrics/namespace_of_edits.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | 1 | 2017-09-03T21:33:35.000Z | 2017-09-03T21:33:35.000Z | user_metrics/metrics/namespace_of_edits.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | null | null | null | user_metrics/metrics/namespace_of_edits.py | wikimedia/user_metrics | 23ef17f7134729a0a4a8a47ac7100fb88db4d155 | [
"BSD-3-Clause"
] | null | null | null |
__author__ = "Ryan Faulkner"
__email__ = "rfaulkner@wikimedia.org"
__date__ = "January 6th, 2013"
__license__ = "GPL (version 2 or later)"
from user_metrics.config import logging
import user_metric as um
import user_metrics.utils.multiprocessing_wrapper as mpw
from collections import namedtuple, OrderedDict
from use... | 34.79096 | 82 | 0.585093 | 698 | 6,158 | 4.891117 | 0.351003 | 0.05331 | 0.039836 | 0.036321 | 0.168717 | 0.14587 | 0.130931 | 0.102812 | 0.03222 | 0.03222 | 0 | 0.069511 | 0.29214 | 6,158 | 176 | 83 | 34.988636 | 0.713696 | 0.056674 | 0 | 0.074468 | 0 | 0 | 0.11992 | 0.018699 | 0 | 0 | 0 | 0.005682 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
227689fe224c8ab0c863950c67df7c7a8369a3cf | 1,536 | py | Python | src/utils/constants.py | elite-ra/pyweek31 | 2f71f9b9c3311d427eb0b89b80884b8c4afcd60e | [
"MIT"
] | 1 | 2021-12-20T08:52:59.000Z | 2021-12-20T08:52:59.000Z | src/utils/constants.py | elite-ra/pyweek31 | 2f71f9b9c3311d427eb0b89b80884b8c4afcd60e | [
"MIT"
] | null | null | null | src/utils/constants.py | elite-ra/pyweek31 | 2f71f9b9c3311d427eb0b89b80884b8c4afcd60e | [
"MIT"
] | 1 | 2021-04-01T05:05:08.000Z | 2021-04-01T05:05:08.000Z | # Copyright (c) 2021 Ayush Gupta, Kartikey Pandey, Pranjal Rastogi, Sohan Varier, Shreyansh Kumar
# Author: Pranjal Rastogi
import pygame
from pathlib import Path
import os
from . import database
pygame.init()
# CWD
SRC_PATH = str(Path(__file__).parents[1])
ROOT_PATH = str(Path(__file__).parents[2])
# game
SCREEN_T... | 41.513514 | 116 | 0.747396 | 234 | 1,536 | 4.700855 | 0.350427 | 0.072727 | 0.081818 | 0.114545 | 0.538182 | 0.498182 | 0.476364 | 0.476364 | 0.476364 | 0.476364 | 0 | 0.022222 | 0.091797 | 1,536 | 36 | 117 | 42.666667 | 0.766308 | 0.10612 | 0 | 0 | 0 | 0 | 0.209949 | 0.040966 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2277627b58826638c0995cdba22759b25c09270e | 1,117 | py | Python | colors.py | IgaLewandowska/Check_colors | c1fb39f61e8a6528e4a2b26e3c8fc2f696c7f449 | [
"Unlicense"
] | 1 | 2021-07-27T17:19:29.000Z | 2021-07-27T17:19:29.000Z | colors.py | IgaLewandowska/Check_colors | c1fb39f61e8a6528e4a2b26e3c8fc2f696c7f449 | [
"Unlicense"
] | null | null | null | colors.py | IgaLewandowska/Check_colors | c1fb39f61e8a6528e4a2b26e3c8fc2f696c7f449 | [
"Unlicense"
] | null | null | null | import random
def generate_colors(n, mode):
colors = []
i = 0
if n <= 5:
while i < n:
colors_tmp = []
x = 0
while x < 4:
if mode == "light":
colors_tmp.append(generate_color1())
elif mode == "dark":
colors_tmp.append(generate_color1())
x += 1
colors.append(colors_tmp)
i += 1
... | 21.480769 | 77 | 0.587287 | 163 | 1,117 | 3.90184 | 0.306748 | 0.113208 | 0.09434 | 0.144654 | 0.572327 | 0.389937 | 0.389937 | 0.389937 | 0.311321 | 0.311321 | 0 | 0.060606 | 0.231871 | 1,117 | 52 | 78 | 21.480769 | 0.680653 | 0.033124 | 0 | 0.608696 | 1 | 0 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.021739 | 0 | 0.152174 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2277648916c8908b1b7f384ab0a43e5139031ecf | 1,120 | py | Python | tests/test_online_checker.py | thatsIch/sublime-rainmeter | 89d67adfd0ef196360785aa2aedecb693f71e965 | [
"MIT"
] | 56 | 2015-11-16T06:45:51.000Z | 2021-12-31T10:06:55.000Z | tests/test_online_checker.py | thatsIch/sublime-rainmeter | 89d67adfd0ef196360785aa2aedecb693f71e965 | [
"MIT"
] | 82 | 2016-11-06T01:18:50.000Z | 2021-12-15T04:37:50.000Z | tests/test_online_checker.py | thatsIch/sublime-rainmeter | 89d67adfd0ef196360785aa2aedecb693f71e965 | [
"MIT"
] | 8 | 2015-11-26T19:28:49.000Z | 2021-03-08T22:39:26.000Z | """This module is for testing the online checker."""
import sys
from unittest import TestCase
ONLINE_CHECKER = sys.modules["Rainmeter.web.online_checker"]
class TestRmDocOnlineChecker(TestCase):
"""Test of the online checks for Rainmeter Documentation using unittest."""
def test_is_rm_doc_online(self):
... | 28.717949 | 109 | 0.720536 | 150 | 1,120 | 5.18 | 0.306667 | 0.100386 | 0.054054 | 0.065637 | 0.518662 | 0.400257 | 0.28314 | 0.159588 | 0.159588 | 0.159588 | 0 | 0 | 0.19375 | 1,120 | 38 | 110 | 29.473684 | 0.860465 | 0.382143 | 0 | 0.2 | 0 | 0 | 0.042683 | 0.042683 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
227a1d90c64d04b6b113177080c9eee06ec95d1f | 266 | py | Python | setup.py | storydrivendatasets/congress-legislators-simplified | e266f0c946fdd4baade35093222a787255db1f17 | [
"MIT"
] | null | null | null | setup.py | storydrivendatasets/congress-legislators-simplified | e266f0c946fdd4baade35093222a787255db1f17 | [
"MIT"
] | null | null | null | setup.py | storydrivendatasets/congress-legislators-simplified | e266f0c946fdd4baade35093222a787255db1f17 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.0.1',
description='Historical and current Congress legislators via unitedstates/congress-legislators',
author='Dan Nguyen',
license='MIT',
)
| 24.181818 | 100 | 0.714286 | 31 | 266 | 6.064516 | 0.774194 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013575 | 0.169173 | 266 | 10 | 101 | 26.6 | 0.837104 | 0 | 0 | 0 | 0 | 0 | 0.383459 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97d53d424e5aca92b740da0166770cb07d24570a | 1,253 | py | Python | run_cloudtracker.py | lorenghoh/cloud-tracker | 0bfef90b17109a882c303559fe05d5c55086fecd | [
"BSD-2-Clause"
] | 1 | 2015-07-27T21:08:34.000Z | 2015-07-27T21:08:34.000Z | run_cloudtracker.py | lorenghoh/cloud_tracker | 0bfef90b17109a882c303559fe05d5c55086fecd | [
"BSD-2-Clause"
] | 2 | 2015-04-24T00:51:53.000Z | 2015-04-24T01:09:28.000Z | run_cloudtracker.py | lorenghoh/cloud_tracker | 0bfef90b17109a882c303559fe05d5c55086fecd | [
"BSD-2-Clause"
] | 1 | 2015-04-24T14:26:29.000Z | 2015-04-24T14:26:29.000Z | import glob, os, sys
sys.path.append(os.getcwd() + '/lib/')
sys.path.append(os.getcwd() + '/cloudtracker/')
# Multiprocessing modules
import multiprocessing as mp
from multiprocessing import Pool
PROC = 1
import model_param as mc
import cloudtracker.main
# Default working directory for ent_analysis package
cwd = os.... | 27.844444 | 78 | 0.727853 | 161 | 1,253 | 5.428571 | 0.447205 | 0.062929 | 0.029748 | 0.034325 | 0.048055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00092 | 0.132482 | 1,253 | 44 | 79 | 28.477273 | 0.803128 | 0.171588 | 0 | 0 | 0 | 0 | 0.216505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97d9c8f121b509db486d5c833d5654f124fd9c5d | 18,406 | py | Python | bench/commonPerformance.py | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | 1 | 2016-11-29T21:03:54.000Z | 2016-11-29T21:03:54.000Z | bench/commonPerformance.py | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | null | null | null | bench/commonPerformance.py | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | null | null | null | ############################################################################
# Copyright 2012 - 2013 Advanced Micro Devices, Inc.
# ... | 42.118993 | 350 | 0.600619 | 2,094 | 18,406 | 5.24212 | 0.234957 | 0.033525 | 0.018584 | 0.010932 | 0.203243 | 0.166712 | 0.150861 | 0.126082 | 0.119158 | 0.100938 | 0 | 0.009522 | 0.263936 | 18,406 | 436 | 351 | 42.215596 | 0.800709 | 0.17717 | 0 | 0.185304 | 0 | 0.022364 | 0.292262 | 0.03323 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028754 | null | null | 0.15016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97da046a7d6d345d45715b681381d92cca4a019f | 365 | py | Python | performance-storage-service/pss_project/api/serializers/rest/parameters/TransactionWeightSerializer.py | cmu-db/noisepage-stats | d61a0e143904748b3f7f43628a5b29769a5c9cf8 | [
"MIT"
] | 23 | 2020-12-22T20:19:51.000Z | 2021-11-24T06:11:01.000Z | performance-storage-service/pss_project/api/serializers/rest/parameters/TransactionWeightSerializer.py | cmu-db/noisepage-test | d61a0e143904748b3f7f43628a5b29769a5c9cf8 | [
"MIT"
] | 13 | 2020-06-05T22:36:49.000Z | 2020-11-10T16:25:04.000Z | performance-storage-service/pss_project/api/serializers/rest/parameters/TransactionWeightSerializer.py | cmu-db/noisepage-test | d61a0e143904748b3f7f43628a5b29769a5c9cf8 | [
"MIT"
] | 2 | 2020-06-08T18:03:34.000Z | 2020-10-06T18:01:35.000Z | from rest_framework.serializers import Serializer, CharField, IntegerField
from pss_project.api.models.rest.parameters.TransactionWeight import TransactionWeight
class TransactionWeightSerializer(Serializer):
# Fields
name = CharField()
weight = IntegerField()
def create(self, validated_data):
... | 30.416667 | 86 | 0.786301 | 35 | 365 | 8.085714 | 0.714286 | 0.091873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142466 | 365 | 11 | 87 | 33.181818 | 0.904153 | 0.016438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
97e2345d0b7edd74688c55d340a8ad9f8f0bb0ab | 968 | py | Python | 99Problems/List Problems/P02.py | gauravdaunde/training-assignments | c81463908078581a55eb1b4bf7185f68f8b7bf24 | [
"MIT"
] | null | null | null | 99Problems/List Problems/P02.py | gauravdaunde/training-assignments | c81463908078581a55eb1b4bf7185f68f8b7bf24 | [
"MIT"
] | null | null | null | 99Problems/List Problems/P02.py | gauravdaunde/training-assignments | c81463908078581a55eb1b4bf7185f68f8b7bf24 | [
"MIT"
] | null | null | null | '''
Find the last but one box of a list.
Example:
* (my-but-last '(a b c d))
(C D)
'''
#function returning length of list
def getListLength(temp_list):
length = 0
for item in temp_list:
length += 1 #length counter incrementes on every element in the list
return length
#initialize... | 27.657143 | 123 | 0.670455 | 146 | 968 | 4.294521 | 0.431507 | 0.089314 | 0.191388 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0.259298 | 968 | 34 | 124 | 28.470588 | 0.849372 | 0.442149 | 0 | 0 | 0 | 0 | 0.017208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e40404905175daf2dd4c48f9875516f02d92b7 | 463 | py | Python | app/migrations/0009_book_link.py | mehariogbe/teacher-vs-student | 57a793bc73f297b03f024e8022c20bc5cbd4c46a | [
"MIT"
] | null | null | null | app/migrations/0009_book_link.py | mehariogbe/teacher-vs-student | 57a793bc73f297b03f024e8022c20bc5cbd4c46a | [
"MIT"
] | null | null | null | app/migrations/0009_book_link.py | mehariogbe/teacher-vs-student | 57a793bc73f297b03f024e8022c20bc5cbd4c46a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-19 03:44
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('app', '0008_book'),
]
operations = [
migrations.AddField(
model_name='book',
name='link... | 22.047619 | 86 | 0.611231 | 52 | 463 | 5.365385 | 0.75 | 0.078853 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.274298 | 463 | 20 | 87 | 23.15 | 0.764881 | 0.097192 | 0 | 0 | 1 | 0 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e4d970134b761b1c02e934267b79e9fe6ebb54 | 1,449 | py | Python | prometheus_adaptive_cards/model.py | trallnag/prometheus-adaptive-cards | 884cfca5212db821900f5700ccf0fbfa3e8459ca | [
"Apache-2.0"
] | null | null | null | prometheus_adaptive_cards/model.py | trallnag/prometheus-adaptive-cards | 884cfca5212db821900f5700ccf0fbfa3e8459ca | [
"Apache-2.0"
] | null | null | null | prometheus_adaptive_cards/model.py | trallnag/prometheus-adaptive-cards | 884cfca5212db821900f5700ccf0fbfa3e8459ca | [
"Apache-2.0"
] | null | null | null | """Copyright © 2020 Tim Schwenke - Licensed under the Apache License 2.0"""
from datetime import datetime
from pydantic import BaseModel, Field
from prometheus_adaptive_cards.config import Target
# ==============================================================================
class Alert(BaseModel):
fingerpri... | 26.833333 | 80 | 0.581781 | 144 | 1,449 | 5.770833 | 0.444444 | 0.108303 | 0.084236 | 0.077016 | 0.149218 | 0.062575 | 0 | 0 | 0 | 0 | 0 | 0.005776 | 0.163561 | 1,449 | 53 | 81 | 27.339623 | 0.679043 | 0.21187 | 0 | 0.193548 | 0 | 0 | 0.097002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.935484 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
97e833129350a572250948199ef8854b8c3a4a7c | 1,221 | py | Python | 212track.py | dg96/let-me-track-1479737948917 | 5d604b07cb1d1c4f858dddc15fd08e372a3bd270 | [
"Apache-2.0"
] | null | null | null | 212track.py | dg96/let-me-track-1479737948917 | 5d604b07cb1d1c4f858dddc15fd08e372a3bd270 | [
"Apache-2.0"
] | null | null | null | 212track.py | dg96/let-me-track-1479737948917 | 5d604b07cb1d1c4f858dddc15fd08e372a3bd270 | [
"Apache-2.0"
] | null | null | null | import flask
from collections import deque
from flask import Flask,request ,render_template
import os
import datetime
import time
# 212 tracking API Key AIzaSyBW33L4Qzpx6nAzfa5DOFd1T-uChYxjHyE
dataPoints=deque()
def time_min(sec):
return datetime.datetime.fromtimestamp(sec).strftime('%Y-%m-%d %H:%M:%S')... | 24.42 | 75 | 0.675676 | 170 | 1,221 | 4.717647 | 0.405882 | 0.024938 | 0.069825 | 0.042394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017875 | 0.175266 | 1,221 | 50 | 76 | 24.42 | 0.77855 | 0.088452 | 0 | 0.057143 | 0 | 0 | 0.109331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.171429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97f55dccf8e6f59e9035973ff781f7b082fae461 | 1,336 | py | Python | autumn/projects/covid_19/myanmar/project.py | monash-emu/AuTuMN | fa3b81ef54cf561e0e7364a48f4ff96585dc3310 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2020-03-11T06:15:30.000Z | 2022-03-09T03:38:35.000Z | autumn/projects/covid_19/myanmar/project.py | monash-emu/AuTuMN | fa3b81ef54cf561e0e7364a48f4ff96585dc3310 | [
"BSD-2-Clause-FreeBSD"
] | 96 | 2020-01-29T05:10:29.000Z | 2022-03-31T01:48:46.000Z | autumn/projects/covid_19/myanmar/project.py | monash-emu/AuTuMN | fa3b81ef54cf561e0e7364a48f4ff96585dc3310 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2020-04-24T00:38:00.000Z | 2021-08-19T16:19:03.000Z | from autumn.tools.project import Project, ParameterSet, TimeSeriesSet, build_rel_path
from autumn.tools.calibration import Calibration
from autumn.tools.calibration.priors import UniformPrior
from autumn.tools.calibration.targets import NormalTarget
from autumn.models.covid_19 import base_params, build_model
from autum... | 41.75 | 91 | 0.812126 | 175 | 1,336 | 5.948571 | 0.331429 | 0.067243 | 0.057637 | 0.074928 | 0.057637 | 0.057637 | 0 | 0 | 0 | 0 | 0 | 0.019008 | 0.094311 | 1,336 | 31 | 92 | 43.096774 | 0.841322 | 0.072605 | 0 | 0 | 0 | 0 | 0.076923 | 0.017004 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97f65315be6964854d0c727b9d38e0c43f052804 | 3,297 | py | Python | app/ui_about.py | esynr3z/openocd-svd | 28bfab10a83a9f3fb22f062f0df6ba2b30797646 | [
"MIT"
] | 18 | 2019-01-03T20:53:17.000Z | 2022-03-24T12:50:50.000Z | app/ui_about.py | esynr3z/openocd-svd | 28bfab10a83a9f3fb22f062f0df6ba2b30797646 | [
"MIT"
] | null | null | null | app/ui_about.py | esynr3z/openocd-svd | 28bfab10a83a9f3fb22f062f0df6ba2b30797646 | [
"MIT"
] | 5 | 2019-01-03T20:53:19.000Z | 2021-08-11T10:02:15.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'about.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_AboutDialog(object):
def setupUi(self, AboutDialog):
AboutDia... | 47.782609 | 176 | 0.733697 | 340 | 3,297 | 7.005882 | 0.373529 | 0.04534 | 0.035264 | 0.052057 | 0.243913 | 0.146096 | 0.112511 | 0.112511 | 0.076406 | 0 | 0 | 0.016894 | 0.156203 | 3,297 | 68 | 177 | 48.485294 | 0.839324 | 0.054292 | 0 | 0 | 1 | 0 | 0.097428 | 0.018006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.092593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97f863f8a46a7312fdc02c31fa4310a746220a38 | 2,282 | py | Python | flame_graph_if.py | Romain-Ly/flame_graph_parser | be118b4707b15b0041216ad54f836ccf1a52d3bf | [
"MIT"
] | null | null | null | flame_graph_if.py | Romain-Ly/flame_graph_parser | be118b4707b15b0041216ad54f836ccf1a52d3bf | [
"MIT"
] | null | null | null | flame_graph_if.py | Romain-Ly/flame_graph_parser | be118b4707b15b0041216ad54f836ccf1a52d3bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import getopt
import json
class Element:
def __init__(self):
self.name = None
self.value = None
self.children = None
"""
json format
{
"name": "<name>",
"value": <value>,
"children": [
<Object>
]
}
"""
def d3_extract(key):
tmp = {}
tmp... | 22.594059 | 70 | 0.533742 | 272 | 2,282 | 4.338235 | 0.349265 | 0.074576 | 0.045763 | 0.030508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0079 | 0.334356 | 2,282 | 100 | 71 | 22.82 | 0.768927 | 0.02454 | 0 | 0.086957 | 0 | 0 | 0.057198 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97fb4c4bdde7d45439afbd7c98784b3ff99c9a08 | 9,407 | py | Python | Lab/lab14/lab14.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | Lab/lab14/lab14.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | Lab/lab14/lab14.py | IZUMI-Zu/CS61A | 50b0352ab5d45e1cd3f0114a397f3bac012ba7c1 | [
"MIT"
] | null | null | null | from operator import add, sub, mul
def prune_min(t):
"""Prune the tree mutatively from the bottom up.
>>> t1 = Tree(6)
>>> prune_min(t1)
>>> t1
Tree(6)
>>> t2 = Tree(6, [Tree(3), Tree(4)])
>>> prune_min(t2)
>>> t2
Tree(6, [Tree(3)])
>>> t3 = Tree(6, [Tree(3, [Tree(1), Tree(2)]... | 27.997024 | 87 | 0.546508 | 1,181 | 9,407 | 3.917866 | 0.191363 | 0.024206 | 0.036309 | 0.022693 | 0.244219 | 0.165766 | 0.138751 | 0.098336 | 0.062027 | 0.062027 | 0 | 0.038703 | 0.288615 | 9,407 | 335 | 88 | 28.080597 | 0.65272 | 0.480068 | 0 | 0.321739 | 0 | 0 | 0.081253 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 1 | 0.208696 | false | 0 | 0.008696 | 0.017391 | 0.434783 | 0.026087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f0ec459d938e892c2f4e08c4e3451c9e85fccce | 518 | py | Python | utils/crack-hash.py | yezz123/Athena | 7924e61b459811ec3602d1ed9d0a2dca144491ed | [
"MIT"
] | 41 | 2021-03-26T17:07:16.000Z | 2022-02-14T23:09:38.000Z | utils/crack-hash.py | GDGSNF/Athena | 7924e61b459811ec3602d1ed9d0a2dca144491ed | [
"MIT"
] | 25 | 2021-03-26T23:41:02.000Z | 2021-09-17T16:23:30.000Z | utils/crack-hash.py | GDGSNF/Athena | 7924e61b459811ec3602d1ed9d0a2dca144491ed | [
"MIT"
] | 9 | 2020-10-16T00:33:30.000Z | 2021-03-03T23:37:25.000Z | #!/usr/bin/env python3
import hashlib
import click
@click.command()
@click.argument("algorithm", type=click.Choice(sorted(hashlib.algorithms_available)))
@click.argument("digest")
def crack_hash(digest, algorithm):
for number in range(10000):
h = hashlib.new(algorithm, str(number).encode()).hexdigest()... | 20.72 | 85 | 0.660232 | 62 | 518 | 5.33871 | 0.645161 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014528 | 0.202703 | 518 | 24 | 86 | 21.583333 | 0.786925 | 0.040541 | 0 | 0 | 0 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.133333 | 0 | 0.333333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f0fb6b67f08e47944fe0df665c383a667bd1d8d | 1,066 | py | Python | solutions/day_9.py | gabrii/advent-of-code-2020 | 442951de2e7b7439de35a0ee02391e7733942292 | [
"MIT"
] | 1 | 2020-12-07T18:20:31.000Z | 2020-12-07T18:20:31.000Z | solutions/day_9.py | gabrii/advent-of-code-2020 | 442951de2e7b7439de35a0ee02391e7733942292 | [
"MIT"
] | null | null | null | solutions/day_9.py | gabrii/advent-of-code-2020 | 442951de2e7b7439de35a0ee02391e7733942292 | [
"MIT"
] | null | null | null | from typing import Iterator, Tuple, List
def parse_input(intput_text: str) -> List[int]:
return [int(i) for i in intput_text.split()]
def composable(number, components):
return set(components) & {-(component - number) for component in components}
def window(elements, window_size) -> Iterator[Tuple[int, Li... | 31.352941 | 80 | 0.669794 | 143 | 1,066 | 4.839161 | 0.328671 | 0.115607 | 0.017341 | 0.060694 | 0.231214 | 0.101156 | 0.101156 | 0.101156 | 0 | 0 | 0 | 0.007177 | 0.21576 | 1,066 | 33 | 81 | 32.30303 | 0.820574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.086957 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f13590691c71823f27403fc1f16c7c4cad440d0 | 8,637 | py | Python | parser/earley.py | cheery/better_web_language | 0700a60af0efe7d7a05364dd4af26bc9fe26332d | [
"MIT"
] | null | null | null | parser/earley.py | cheery/better_web_language | 0700a60af0efe7d7a05364dd4af26bc9fe26332d | [
"MIT"
] | null | null | null | parser/earley.py | cheery/better_web_language | 0700a60af0efe7d7a05364dd4af26bc9fe26332d | [
"MIT"
] | null | null | null | from collections import OrderedDict, defaultdict
class Parser(object):
def __init__(self, init, nullable):
self.input = []
self.chart = [OrderedDict()]
self.chart[0][(init, 0)] = None
self.chart[0][(init.goto[None], 0)] = None
self.expect = set(init.goto) | set(init.goto[Non... | 35.838174 | 98 | 0.53896 | 1,024 | 8,637 | 4.469727 | 0.158203 | 0.015731 | 0.010924 | 0.015294 | 0.190518 | 0.138082 | 0.08783 | 0.060738 | 0.060738 | 0.060738 | 0 | 0.005725 | 0.352785 | 8,637 | 240 | 99 | 35.9875 | 0.813059 | 0.055343 | 0 | 0.217172 | 0 | 0 | 0.009456 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0 | null | null | 0.015152 | 0.005051 | null | null | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f14cb90a03fce02276b94913cb65fd7fd1da561 | 858 | py | Python | Turtle/circleWithExtent.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | Turtle/circleWithExtent.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | Turtle/circleWithExtent.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | import turtle
turtle = turtle.Turtle()
print(turtle.pos())
print(turtle.heading())
#drawing circle
#turtle.circle(radius,extent = None, steps = None)
#if radius is positive, the circle will be counter-clockwise or anti-clockwise
#if radius is negative,the cirlce will be drawn in clockwise direction
#exten... | 19.953488 | 79 | 0.722611 | 122 | 858 | 5.081967 | 0.336066 | 0.177419 | 0.112903 | 0.153226 | 0.458065 | 0.458065 | 0.406452 | 0.377419 | 0.312903 | 0.312903 | 0 | 0.035665 | 0.15035 | 858 | 43 | 80 | 19.953488 | 0.814815 | 0.460373 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3f175eb634cd62918fb4477d33b91aed4f154342 | 4,532 | py | Python | gemini/helpers/analyze.py | quantroom-pro/cryptocurrency.backtester | 5713aefd60fef52cb5ff09a729541573a7099587 | [
"MIT"
] | 37 | 2018-04-15T05:43:24.000Z | 2022-03-04T00:13:15.000Z | gemini/helpers/analyze.py | friendly-pig/Gemini | 5713aefd60fef52cb5ff09a729541573a7099587 | [
"MIT"
] | 2 | 2018-02-08T16:51:10.000Z | 2018-02-18T16:23:46.000Z | gemini/helpers/analyze.py | friendly-pig/Gemini | 5713aefd60fef52cb5ff09a729541573a7099587 | [
"MIT"
] | 16 | 2018-05-12T07:53:59.000Z | 2022-01-30T07:35:57.000Z | import logging
import time
from bokeh.layouts import column
import bokeh.plotting
import matplotlib.pyplot as plt
import pandas as pd
from bokeh.models import LinearAxis, Range1d
logger = logging.getLogger(__name__)
def analyze_bokeh(algo, title=None, show_trades=False):
"""
Draw charts for backtest results... | 34.333333 | 112 | 0.624669 | 615 | 4,532 | 4.458537 | 0.266667 | 0.039387 | 0.040846 | 0.037199 | 0.474106 | 0.391685 | 0.391685 | 0.347921 | 0.323122 | 0.291028 | 0 | 0.021518 | 0.241174 | 4,532 | 131 | 113 | 34.59542 | 0.775807 | 0.093998 | 0 | 0.292683 | 0 | 0 | 0.092148 | 0 | 0 | 0 | 0 | 0.015267 | 0 | 1 | 0.02439 | false | 0 | 0.085366 | 0 | 0.109756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f1ba80275220f97b87e886fb03ad97b594d7d6e | 1,438 | py | Python | tests/mechanisms/test_BernoulliNegExp.py | Originofamonia/differential-privacy-library | 11759216bd418f764ff5c4a2349975b14f6e7ffb | [
"MIT"
] | 597 | 2019-06-19T11:26:50.000Z | 2022-03-30T13:23:42.000Z | tests/mechanisms/test_BernoulliNegExp.py | SHIHUA110/differential-privacy-library | a889ba0f8d19c77e2b0369451ebc392969fac685 | [
"MIT"
] | 45 | 2019-06-20T08:03:31.000Z | 2022-03-30T14:02:02.000Z | tests/mechanisms/test_BernoulliNegExp.py | SHIHUA110/differential-privacy-library | a889ba0f8d19c77e2b0369451ebc392969fac685 | [
"MIT"
] | 163 | 2019-06-19T23:56:19.000Z | 2022-03-26T23:59:24.000Z | import secrets
import numpy as np
from unittest import TestCase
from diffprivlib.mechanisms.base import bernoulli_neg_exp
class TestBernoulliNegExp(TestCase):
def setup_method(self, method):
self.rng = secrets.SystemRandom()
def teardown_method(self, method):
del self.rng
def test_bad_... | 31.26087 | 106 | 0.642559 | 199 | 1,438 | 4.447236 | 0.291457 | 0.135593 | 0.169492 | 0.072316 | 0.377401 | 0.333333 | 0.274576 | 0.248588 | 0.189831 | 0 | 0 | 0.043519 | 0.248957 | 1,438 | 45 | 107 | 31.955556 | 0.775926 | 0 | 0 | 0.09375 | 0 | 0 | 0.004172 | 0 | 0 | 0 | 0 | 0 | 0.28125 | 1 | 0.28125 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f267feb81355753c04e4b46a8ba31edd581d33f | 928 | py | Python | Codigos-python/ex36-emprestimo.py | franciscocleiton/Meus-codigos-de-exercicios | 53e871920a82b22256e42644c3fc0ae5ce5d705b | [
"MIT"
] | 1 | 2022-03-06T13:06:12.000Z | 2022-03-06T13:06:12.000Z | Codigos-python/ex36-emprestimo.py | franciscocleiton/Meus-codigos-de-exercicios | 53e871920a82b22256e42644c3fc0ae5ce5d705b | [
"MIT"
] | null | null | null | Codigos-python/ex36-emprestimo.py | franciscocleiton/Meus-codigos-de-exercicios | 53e871920a82b22256e42644c3fc0ae5ce5d705b | [
"MIT"
] | null | null | null | print('\nOlá, somos a CredEmprétimo!\nVamos lá saber se tem direito a financiomento!')
poss_cliente = str(input('Primeiro, digite seu nome: '))
valor = float(input('Agora, digite o valor da casa: '))
salario = float(input('Informe seu salário: '))
anos = int(input('Informe em quantos anos deseja quitar o financiamento:... | 42.181818 | 113 | 0.71444 | 135 | 928 | 4.866667 | 0.555556 | 0.066971 | 0.077626 | 0.082192 | 0.240487 | 0.240487 | 0.240487 | 0.109589 | 0.109589 | 0 | 0 | 0.015267 | 0.153017 | 928 | 21 | 114 | 44.190476 | 0.820611 | 0.045259 | 0 | 0.117647 | 0 | 0 | 0.535068 | 0.023756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3f30743df88597e9add37df194f05cacfe43ec35 | 804 | py | Python | Automacao/Web/certificacaoAWS.py | ArthurGini/EstudosPython | 905e1227fa66fe29feb411dbb8d1ce1b75a98bd6 | [
"MIT"
] | 1 | 2019-12-03T02:39:17.000Z | 2019-12-03T02:39:17.000Z | Automacao/Web/certificacaoAWS.py | ArthurGini/EstudosPython | 905e1227fa66fe29feb411dbb8d1ce1b75a98bd6 | [
"MIT"
] | null | null | null | Automacao/Web/certificacaoAWS.py | ArthurGini/EstudosPython | 905e1227fa66fe29feb411dbb8d1ce1b75a98bd6 | [
"MIT"
] | null | null | null | """
Programa para acessar a APN da AWS e baixar os certificados automaticamente
"""
from selenium import webdriver
from time import sleep
from getpass import getpass
senha_input = getpass("Password: ")
#Acessa o site
driver= webdriver.Firefox()
driver.get("https://partnercentral.awspartner.com/SiteLogin?startURL=%2F... | 29.777778 | 144 | 0.797264 | 108 | 804 | 5.731481 | 0.574074 | 0.080775 | 0.082391 | 0.092084 | 0.290792 | 0.22294 | 0.22294 | 0.22294 | 0.22294 | 0.22294 | 0 | 0.025538 | 0.074627 | 804 | 27 | 145 | 29.777778 | 0.806452 | 0.264925 | 0 | 0 | 0 | 0.1 | 0.484483 | 0.243103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f393754f4b4bf6459c7e9c3a7d2fe83eb9afa30 | 1,167 | py | Python | PythonCode/Routing/AirSimPythonClient/GPS/GPSCoordinateTest.py | NUIG-ROCSAFE/CBRNeVirtualEnvironment | 440149886d7ecca6c774fc4148cf0a0718657ea8 | [
"MIT"
] | 3 | 2018-10-05T09:58:17.000Z | 2019-03-14T07:21:59.000Z | PythonCode/Routing/AirSimPythonClient/GPS/GPSCoordinateTest.py | NUIG-ROCSAFE/CBRNeVirtualEnvironment | 440149886d7ecca6c774fc4148cf0a0718657ea8 | [
"MIT"
] | 13 | 2018-09-13T16:07:03.000Z | 2018-12-17T17:38:35.000Z | PythonCode/Routing/AirSimPythonClient/GPS/GPSCoordinateTest.py | NUIG-ROCSAFE/CBRNeVirtualEnvironment | 440149886d7ecca6c774fc4148cf0a0718657ea8 | [
"MIT"
] | 1 | 2018-10-09T00:37:52.000Z | 2018-10-09T00:37:52.000Z | from GPSCoordinate import GPSCoordinate
import unittest
class TestTTTBoard(unittest.TestCase):
def setUp(self):
self.OConnellStreetCoordinate = GPSCoordinate(53.3512416, -6.2629676, 0)
self.EyreSquareCoordinate = GPSCoordinate(53.2743394, -9.0514163)
self.NUIGCoordinate = GPSCoordinate(53.2809159, -9.0692133, ... | 46.68 | 141 | 0.802057 | 127 | 1,167 | 7.338583 | 0.464567 | 0.103004 | 0.061159 | 0.120172 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100848 | 0.090831 | 1,167 | 25 | 142 | 46.68 | 0.777568 | 0.053128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3a2618b627f23135e5bf5ec76591c8f68d2625 | 2,888 | py | Python | airbnb/rooms/models.py | jaehyoungyoo/airbnb_clone | b37325f63eccb646d7d04e7ddbc1a6c7b0f0f252 | [
"MIT"
] | null | null | null | airbnb/rooms/models.py | jaehyoungyoo/airbnb_clone | b37325f63eccb646d7d04e7ddbc1a6c7b0f0f252 | [
"MIT"
] | 6 | 2020-06-05T21:24:48.000Z | 2021-09-08T01:04:40.000Z | airbnb/rooms/models.py | kenshinhm/airbnb_clone | b37325f63eccb646d7d04e7ddbc1a6c7b0f0f252 | [
"MIT"
] | 1 | 2019-07-21T06:22:27.000Z | 2019-07-21T06:22:27.000Z | from django.db import models
from airbnb.users.models import User
import numpy as np
class TimestampModel(models.Model):
create_time = models.DateTimeField(auto_now_add=True)
update_time = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class Room(TimestampModel):
# room i... | 26.495413 | 89 | 0.692175 | 356 | 2,888 | 5.438202 | 0.300562 | 0.041839 | 0.043388 | 0.065083 | 0.395145 | 0.306302 | 0.179236 | 0.158058 | 0.108471 | 0.108471 | 0 | 0.008587 | 0.19356 | 2,888 | 108 | 90 | 26.740741 | 0.822671 | 0.070637 | 0 | 0.145161 | 0 | 0 | 0.026956 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 1 | 0.112903 | false | 0 | 0.048387 | 0.096774 | 0.887097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f3a5115ed447cf4b2682d2e6c65b00c7f4d98e4 | 685 | py | Python | setup.py | amoodie/DeltaMetrics | 9b823bea36851adcebc446c8941f8783325b1a4f | [
"MIT"
] | null | null | null | setup.py | amoodie/DeltaMetrics | 9b823bea36851adcebc446c8941f8783325b1a4f | [
"MIT"
] | 104 | 2020-04-29T03:07:55.000Z | 2022-03-22T18:39:18.000Z | setup.py | amoodie/DeltaMetrics | 9b823bea36851adcebc446c8941f8783325b1a4f | [
"MIT"
] | 4 | 2020-04-09T03:27:38.000Z | 2020-04-26T18:44:37.000Z | #! /usr/bin/env python
from setuptools import setup, find_packages
from deltametrics import utils
setup(name='DeltaMetrics',
version=utils._get_version(),
author='The DeltaRCM Team',
license='MIT',
description="Tools for manipulating sedimentologic data cubes.",
long_description=open('RE... | 36.052632 | 71 | 0.658394 | 72 | 685 | 6.125 | 0.763889 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.191241 | 685 | 18 | 72 | 38.055556 | 0.792419 | 0.030657 | 0 | 0 | 0 | 0 | 0.340875 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3b3fcb76dd58a5fe2ceac3582ca59d2d62ec38 | 37,373 | py | Python | diagnostics.py | bkaiser94/red_cam_pipeline | 87862a8658788c744ce9de880c6b755350318b2b | [
"MIT"
] | null | null | null | diagnostics.py | bkaiser94/red_cam_pipeline | 87862a8658788c744ce9de880c6b755350318b2b | [
"MIT"
] | null | null | null | diagnostics.py | bkaiser94/red_cam_pipeline | 87862a8658788c744ce9de880c6b755350318b2b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Diagnostic Plots for Pipeline
Author: Patrick O'Brien
Date last updated: February 2017
"""
# Import statements
from glob import glob
import os
import numpy as np
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.pyplot as plt
from PyPDF2 import PdfFileMerger
import panda... | 34.099453 | 317 | 0.5786 | 5,284 | 37,373 | 3.816238 | 0.06813 | 0.015671 | 0.036548 | 0.024101 | 0.595636 | 0.483065 | 0.40729 | 0.379569 | 0.338111 | 0.313662 | 0 | 0.022333 | 0.251197 | 37,373 | 1,095 | 318 | 34.130594 | 0.698231 | 0.059588 | 0 | 0.406514 | 0 | 0 | 0.061151 | 0.002676 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00965 | null | null | 0.010856 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3b7a1291b5196b66974f5c2b9486fd9bc8bbf1 | 1,145 | py | Python | src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/windows/main.py | lucycore/lcv2 | cfda722b430036e2a2de946b71d81d265e2165dc | [
"MIT"
] | null | null | null | src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/windows/main.py | lucycore/lcv2 | cfda722b430036e2a2de946b71d81d265e2165dc | [
"MIT"
] | null | null | null | src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/windows/main.py | lucycore/lcv2 | cfda722b430036e2a2de946b71d81d265e2165dc | [
"MIT"
] | null | null | null | # -- coding:utf-8--
import multiprocessing
from urllib import request
import os
import shutil
import zipfile
import time
import datetime
import json
import sys
import socket
import uuid
import ssl
from mods import install_v2,lod_del,tool_win,update,lod_del,user,s_server,X,strat_v2,Aaes
ssl._create_default_https_cont... | 17.089552 | 89 | 0.700437 | 175 | 1,145 | 4.297143 | 0.451429 | 0.083777 | 0.039894 | 0.039894 | 0.132979 | 0.132979 | 0.132979 | 0.132979 | 0.132979 | 0.132979 | 0 | 0.02603 | 0.19476 | 1,145 | 67 | 90 | 17.089552 | 0.789588 | 0.107424 | 0 | 0.266667 | 0 | 0 | 0.031809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | true | 0 | 0.288889 | 0 | 0.311111 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3c0b3657ab392ae225d39a1fc7759eb14e50dc | 3,461 | py | Python | module1-introduction-to-sql/rpg_queries.py | mherbert93/DS-Unit-3-Sprint-2-SQL-and-Databases | c322a132ca53ab7fad04da3bd8b3c7f982d8ce65 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/rpg_queries.py | mherbert93/DS-Unit-3-Sprint-2-SQL-and-Databases | c322a132ca53ab7fad04da3bd8b3c7f982d8ce65 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/rpg_queries.py | mherbert93/DS-Unit-3-Sprint-2-SQL-and-Databases | c322a132ca53ab7fad04da3bd8b3c7f982d8ce65 | [
"MIT"
] | null | null | null | import os
import sqlite3
DB_FILEPATH = "rpg_db.sqlite3"
connection = sqlite3.connect(DB_FILEPATH)
cursor = connection.cursor()
##test queries
#Add all query results to dictionary
query = """SELECT
count(distinct charactercreator_character.character_id) as total_characters,
count(distinct charactercreator_mage.c... | 44.371795 | 122 | 0.7833 | 470 | 3,461 | 5.508511 | 0.2 | 0.028969 | 0.04326 | 0.04326 | 0.650058 | 0.556972 | 0.373503 | 0.373503 | 0.30591 | 0.291232 | 0 | 0.008106 | 0.108928 | 3,461 | 77 | 123 | 44.948052 | 0.831388 | 0.087836 | 0 | 0.338983 | 0 | 0 | 0.752142 | 0.392256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3df08a106fd5a5a2c4277c8e81b7581118b5af | 1,295 | py | Python | memame.py | Jeancasoto/ThePlaceToBet | 84ef35dd52db2299a65a34cf4cd9671a3bb26e3e | [
"MIT"
] | null | null | null | memame.py | Jeancasoto/ThePlaceToBet | 84ef35dd52db2299a65a34cf4cd9671a3bb26e3e | [
"MIT"
] | null | null | null | memame.py | Jeancasoto/ThePlaceToBet | 84ef35dd52db2299a65a34cf4cd9671a3bb26e3e | [
"MIT"
] | 1 | 2020-06-30T21:44:22.000Z | 2020-06-30T21:44:22.000Z |
from random import randint
equipos = ['A','B','C','D','E','F','G','H','I','J','K','M','N','O','P']
contador_jornada =1
#existe una lista de los enfrentamientos ya disputados donde no pueden disputarse mas de 1 vez por temporada
#def enfrentamientos(self):
lista_partidos_totales =[]
#cada jornada tiene 14 partidos... | 31.585366 | 108 | 0.629344 | 175 | 1,295 | 4.56 | 0.428571 | 0.179198 | 0.075188 | 0.045113 | 0.22807 | 0.137845 | 0.070175 | 0.070175 | 0 | 0 | 0 | 0.016701 | 0.260232 | 1,295 | 40 | 109 | 32.375 | 0.816284 | 0.215444 | 0 | 0.08 | 0 | 0 | 0.183714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.28 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3ea6341942e0affa2bafaae4973b256e74f1f7 | 3,290 | py | Python | tcconfig/_network.py | stephenyin/tcconfig | 228e718cc3f10bdaed4c7c69baa2454a21a73a9f | [
"MIT"
] | 1 | 2020-07-17T10:00:59.000Z | 2020-07-17T10:00:59.000Z | tcconfig/_network.py | stephenyin/tcconfig | 228e718cc3f10bdaed4c7c69baa2454a21a73a9f | [
"MIT"
] | null | null | null | tcconfig/_network.py | stephenyin/tcconfig | 228e718cc3f10bdaed4c7c69baa2454a21a73a9f | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import, unicode_literals
import humanreadable as hr
import six
import typepy
from ._const import Network
from ._error import NetworkInterfaceNotFoundError
def get_anywhere_network(ip_version):... | 26.32 | 125 | 0.697264 | 419 | 3,290 | 5.229117 | 0.326969 | 0.09037 | 0.040164 | 0.010954 | 0.306709 | 0.157006 | 0.004108 | 0.004108 | 0 | 0 | 0 | 0.03227 | 0.208815 | 3,290 | 124 | 126 | 26.532258 | 0.809451 | 0.17386 | 0 | 0.230769 | 0 | 0 | 0.050338 | 0.009391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0.015385 | 0.153846 | 0 | 0.523077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f40e2d3fcaab77b55208ff40cd04d0ac82aff4c | 3,337 | py | Python | hkust-gmission/gmission/rest/rest_models.py | gmission/gmission | 1fe25a2fa04e563d5276579faa36afad7bb4122e | [
"MIT"
] | 251 | 2015-11-09T15:43:25.000Z | 2021-12-17T08:38:23.000Z | hkust-gmission/gmission/rest/rest_models.py | gmission/gmission | 1fe25a2fa04e563d5276579faa36afad7bb4122e | [
"MIT"
] | 2 | 2019-09-03T17:41:03.000Z | 2021-01-15T13:51:06.000Z | hkust-gmission/gmission/rest/rest_models.py | gmission/gmission | 1fe25a2fa04e563d5276579faa36afad7bb4122e | [
"MIT"
] | 20 | 2016-01-25T06:38:33.000Z | 2022-03-18T13:56:40.000Z | from gmission.controllers.geo_controller import filter_location
from gmission.controllers.message_controller import send_answer_message
__author__ = 'chenzhao'
from .base import ReSTBase
from werkzeug.exceptions import Conflict
from gmission.models import *
from gmission.controllers.task_controller import refresh_tas... | 25.473282 | 111 | 0.679053 | 386 | 3,337 | 5.663212 | 0.264249 | 0.089661 | 0.064044 | 0.052608 | 0.317475 | 0.262123 | 0.218664 | 0.153705 | 0.083257 | 0 | 0 | 0 | 0.230746 | 3,337 | 130 | 112 | 25.669231 | 0.851578 | 0.189991 | 0 | 0.5 | 0 | 0 | 0.013801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0.171053 | 0.092105 | 0 | 0.407895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f503872663b7191a879b77776c40f91c7b306c4 | 218 | py | Python | python/stopiteration_demo.py | pterodragon/asyncio_internals_presentation | 91a385d77515df4e38be2487f7fb6372e4cc3431 | [
"CC-BY-4.0"
] | 1 | 2020-10-23T06:10:59.000Z | 2020-10-23T06:10:59.000Z | python/stopiteration_demo.py | pterodragon/asyncio_internals_presentation | 91a385d77515df4e38be2487f7fb6372e4cc3431 | [
"CC-BY-4.0"
] | null | null | null | python/stopiteration_demo.py | pterodragon/asyncio_internals_presentation | 91a385d77515df4e38be2487f7fb6372e4cc3431 | [
"CC-BY-4.0"
] | null | null | null | def gen():
yield 1
return "generator return value"
res = []
g = gen()
res.append(g.send(None))
try:
res.append(g.send(None))
except StopIteration as e:
print("e.value", e.value)
print("res", res)
| 15.571429 | 35 | 0.614679 | 34 | 218 | 3.941176 | 0.529412 | 0.134328 | 0.149254 | 0.208955 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.215596 | 218 | 13 | 36 | 16.769231 | 0.777778 | 0 | 0 | 0.181818 | 0 | 0 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f5276cd82b8cd5edd6c59cb9e465bd4a55c116c | 387 | py | Python | 11. Modules/simple_image_editor/p2j/__main__.py | arghya05/EPAi | 5e16d4518db7a703904d15a6aa4148839fb4b2c6 | [
"MIT"
] | 1 | 2021-04-25T07:34:34.000Z | 2021-04-25T07:34:34.000Z | 11. Modules/simple_image_editor/p2j/__main__.py | srirampattabiraman/EPAi | 5e16d4518db7a703904d15a6aa4148839fb4b2c6 | [
"MIT"
] | null | null | null | 11. Modules/simple_image_editor/p2j/__main__.py | srirampattabiraman/EPAi | 5e16d4518db7a703904d15a6aa4148839fb4b2c6 | [
"MIT"
] | 12 | 2021-01-22T05:58:49.000Z | 2021-11-18T04:23:06.000Z | import argparse
import converter_jpg
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('-i','--input_path',type=str,help="Input Image Location")
parser.add_argument('-o','--output_path',type=str,help="Output Image Location")
args = parser.parse_args()
... | 43 | 83 | 0.754522 | 51 | 387 | 5.294118 | 0.490196 | 0.088889 | 0.125926 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105943 | 387 | 9 | 84 | 43 | 0.780347 | 0 | 0 | 0 | 0 | 0 | 0.201031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f52ab2b778799268dab5a40a71e6dce4c3668ed | 401 | py | Python | main/urls.py | atomicbomber-git/teacher_clusterization_cmeans | 73b2ca1b579fbb4ff91662a5c39af870465bff26 | [
"MIT"
] | null | null | null | main/urls.py | atomicbomber-git/teacher_clusterization_cmeans | 73b2ca1b579fbb4ff91662a5c39af870465bff26 | [
"MIT"
] | null | null | null | main/urls.py | atomicbomber-git/teacher_clusterization_cmeans | 73b2ca1b579fbb4ff91662a5c39af870465bff26 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='dosen.index'),
path('update', views.update, name='dosen.update'),
path('create', views.create, name='dosen.create'),
path('view', views.view, name='dosen.view'),
path('delete/<int:dosen_id>', views.delete,... | 33.416667 | 69 | 0.663342 | 53 | 401 | 5 | 0.320755 | 0.203774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137157 | 401 | 12 | 70 | 33.416667 | 0.765896 | 0 | 0 | 0 | 0 | 0 | 0.283582 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f563f20a90f9ad6a674adb61f7d8fd8e3a1ebf6 | 3,209 | py | Python | fxxk_bzoj.py | Enzymii/auto-submissions | 6eca1d99d0e10ceb91684a7ab48f59bed6f288ab | [
"MIT"
] | 2 | 2018-03-05T13:31:29.000Z | 2018-03-20T12:08:14.000Z | fxxk_bzoj.py | Enzymii/auto-submissions | 6eca1d99d0e10ceb91684a7ab48f59bed6f288ab | [
"MIT"
] | null | null | null | fxxk_bzoj.py | Enzymii/auto-submissions | 6eca1d99d0e10ceb91684a7ab48f59bed6f288ab | [
"MIT"
] | null | null | null | import re,requests,time
from bs4 import BeautifulSoup
def get_headers(data):
header_dict={}
headers=data.split('\n')
for da in headers:
da=da.split(':')
if len(da[0]) and len(da[1]):
da[1]=re.sub('^\s+','',da[1])
header_dict[da[0]]=da[1]
return header_dict
class fxxk_bzoj_():
mainurl='https://www.l... | 21.829932 | 93 | 0.667498 | 488 | 3,209 | 4.239754 | 0.282787 | 0.0261 | 0.029 | 0.033833 | 0.087965 | 0.053166 | 0.029966 | 0 | 0 | 0 | 0 | 0.011554 | 0.163914 | 3,209 | 146 | 94 | 21.979452 | 0.759597 | 0 | 0 | 0.079646 | 0 | 0 | 0.168835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.044248 | 0.017699 | null | null | 0.132743 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f57a51d1b1cf9b0e0833d8dcd271d51189753b9 | 3,847 | py | Python | sdk/python/pulumi_awsx/cloudtrail/_inputs.py | will3942/pulumi-awsx | cb8beeb4c9d1d002839356883e145edf46307dd2 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_awsx/cloudtrail/_inputs.py | will3942/pulumi-awsx | cb8beeb4c9d1d002839356883e145edf46307dd2 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_awsx/cloudtrail/_inputs.py | will3942/pulumi-awsx | cb8beeb4c9d1d002839356883e145edf46307dd2 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by pulumi-gen-awsx. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
... | 44.218391 | 324 | 0.665454 | 550 | 3,847 | 4.509091 | 0.249091 | 0.093145 | 0.091935 | 0.053226 | 0.666935 | 0.539919 | 0.487903 | 0.430242 | 0.378226 | 0.303226 | 0 | 0.029342 | 0.22927 | 3,847 | 86 | 325 | 44.732558 | 0.807083 | 0.394853 | 0 | 0.078431 | 1 | 0 | 0.078585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.098039 | 0 | 0.372549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f5c8bc8844135a9ae8720f6226c4c478f9949d6 | 1,594 | py | Python | src/event_mapper.py | alphagov-mirror/verify-event-recorder-service | 7bb3d059e256442a4437a102a68956fa6e8fa915 | [
"MIT"
] | 1 | 2019-04-23T12:46:34.000Z | 2019-04-23T12:46:34.000Z | src/event_mapper.py | alphagov-mirror/verify-event-recorder-service | 7bb3d059e256442a4437a102a68956fa6e8fa915 | [
"MIT"
] | 32 | 2018-02-20T16:04:21.000Z | 2020-12-08T09:18:40.000Z | src/event_mapper.py | alphagov-mirror/verify-event-recorder-service | 7bb3d059e256442a4437a102a68956fa6e8fa915 | [
"MIT"
] | 5 | 2018-03-07T14:42:34.000Z | 2021-04-10T20:21:56.000Z | import json
import dateutil.parser
from src.event import Event
EVENT_ID = 'eventId'
EVENT_TYPE = 'eventType'
TIMESTAMP = 'timestamp'
ORIGINATING_SERVICE = 'originatingService'
SESSION_ID = 'sessionId'
DETAILS = 'details'
REQUIRED_FIELDS = [EVENT_ID, EVENT_TYPE, TIMESTAMP, ORIGINATING_SERVICE, DETAILS]
def event_from... | 31.254902 | 91 | 0.719573 | 198 | 1,594 | 5.40404 | 0.242424 | 0.214953 | 0.065421 | 0.074766 | 0.453271 | 0.400935 | 0.293458 | 0.293458 | 0.293458 | 0.293458 | 0 | 0.003891 | 0.193852 | 1,594 | 50 | 92 | 31.88 | 0.828794 | 0 | 0 | 0.3 | 0 | 0 | 0.072146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f5f562273f6660401f6e1dad2aafc8200ad81f1 | 1,418 | py | Python | config_generate.py | stevezhangz/BERT-pytorch | 86e1d9f20c48306eeb8b6790977a575fc97bed77 | [
"Apache-2.0"
] | null | null | null | config_generate.py | stevezhangz/BERT-pytorch | 86e1d9f20c48306eeb8b6790977a575fc97bed77 | [
"Apache-2.0"
] | null | null | null | config_generate.py | stevezhangz/BERT-pytorch | 86e1d9f20c48306eeb8b6790977a575fc97bed77 | [
"Apache-2.0"
] | null | null | null | import configparser
# param
maxlen = "120"
batch_size = "12"
max_pred = "5"
n_layers = "6"
n_heads = "12"
d_model = "1000"
d_ff = "1000*4"
d_k = "100"
d_v = "100"
n_segments = "2"
seed = "9527"
lr = "0.0001"
epc = "250"
drop="0.5"
#dir
data_dir="./data"
weight_dir="./checkpoint"
Config_file="Config.cfg"
# device
dev... | 24.448276 | 53 | 0.74189 | 232 | 1,418 | 4.267241 | 0.280172 | 0.134343 | 0.169697 | 0.311111 | 0.205051 | 0.042424 | 0 | 0 | 0 | 0 | 0 | 0.03085 | 0.062764 | 1,418 | 57 | 54 | 24.877193 | 0.714071 | 0.022567 | 0 | 0 | 0 | 0 | 0.364229 | 0.01593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f651f3dc60b47579c9cb2bebccae47549918b35 | 4,830 | py | Python | dlmb/initializers.py | Jonathan-Andrews/dlmb | 552148bcac2ffb4308c8db24599c458652684ed2 | [
"MIT"
] | 5 | 2019-11-23T13:32:21.000Z | 2022-01-01T16:32:48.000Z | dlmb/initializers.py | Jonathan-Andrews/dlmb | 552148bcac2ffb4308c8db24599c458652684ed2 | [
"MIT"
] | null | null | null | dlmb/initializers.py | Jonathan-Andrews/dlmb | 552148bcac2ffb4308c8db24599c458652684ed2 | [
"MIT"
] | null | null | null | import numpy as np
from utils.function_helpers import *
@accepts(shape=tuple)
def zeros(shape) -> np.ndarray:
"""
Creates a numpy array of shape shape filled with values of 0.
Arguments:
shape : tuple : A tuple with 2 numbers, specifying size of the numpy array.
Returns:
output : np.ndarray ... | 25.691489 | 138 | 0.668323 | 674 | 4,830 | 4.771513 | 0.118694 | 0.087065 | 0.040423 | 0.05597 | 0.746269 | 0.673197 | 0.643035 | 0.613806 | 0.588308 | 0.557836 | 0 | 0.013022 | 0.220911 | 4,830 | 187 | 139 | 25.828877 | 0.841616 | 0.521946 | 0 | 0.293103 | 0 | 0 | 0.094192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0 | 0.551724 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f65bc8646330b45d09ebcae3ba1e2923c2b2f6f | 106,581 | py | Python | server.py | elpidaguy/Fellowsheep | 0912edaa7a356ad429d341158fd74df79e30107a | [
"MIT"
] | null | null | null | server.py | elpidaguy/Fellowsheep | 0912edaa7a356ad429d341158fd74df79e30107a | [
"MIT"
] | null | null | null | server.py | elpidaguy/Fellowsheep | 0912edaa7a356ad429d341158fd74df79e30107a | [
"MIT"
] | null | null | null | # import datetime
from flask import Flask,render_template,request,redirect,session,jsonify
from flask_pymongo import PyMongo
from flask_cors import CORS, cross_origin
from flask_mail import Mail, Message
from flask_uploads import UploadSet, configure_uploads
from random import randint
import hashlib,os
from openpyxl im... | 35.140455 | 384 | 0.681257 | 12,864 | 106,581 | 5.575171 | 0.065143 | 0.042109 | 0.058952 | 0.061908 | 0.609281 | 0.543705 | 0.507244 | 0.44751 | 0.41954 | 0.375939 | 0 | 0.005953 | 0.103189 | 106,581 | 3,033 | 385 | 35.140455 | 0.744379 | 0.141329 | 0 | 0.41934 | 0 | 0.000458 | 0.24535 | 0.005194 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010082 | 0.009166 | null | null | 0.018332 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f6d5b3407347ae03a2f623902e63a529b90231a | 4,316 | py | Python | Scripts/Download&ParseDebateTranscripts_UPDATED.py | pplatzman/RedBlue-Classifier | 647a386ddb168ddbe14e9d23490915644acdca9a | [
"MIT"
] | null | null | null | Scripts/Download&ParseDebateTranscripts_UPDATED.py | pplatzman/RedBlue-Classifier | 647a386ddb168ddbe14e9d23490915644acdca9a | [
"MIT"
] | null | null | null | Scripts/Download&ParseDebateTranscripts_UPDATED.py | pplatzman/RedBlue-Classifier | 647a386ddb168ddbe14e9d23490915644acdca9a | [
"MIT"
] | null | null | null | import requests, BeautifulSoup, bs4, json
####I will try to get a list of the relevant URLs, then 'for loop' through them so I don't have to write a different script for each debate.####
##Saving home page as text file.##
res = requests.get('http://www.presidency.ucsb.edu/debates.php')
print type(res)
print re... | 32.946565 | 145 | 0.700649 | 623 | 4,316 | 4.837881 | 0.276083 | 0.026875 | 0.028202 | 0.034837 | 0.476111 | 0.409754 | 0.409754 | 0.399469 | 0.399469 | 0.399469 | 0 | 0.029412 | 0.172845 | 4,316 | 131 | 146 | 32.946565 | 0.814846 | 0.330862 | 0 | 0.445783 | 0 | 0 | 0.139777 | 0.016357 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012048 | null | null | 0.277108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f71f8bf41f2502201932cb7fb56aa363a5fb9c3 | 1,241 | py | Python | duke-cs671-fall21-coupon-recommendation/outputs/rules/ID3/3_features/maxdepth_5/3/rules.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | duke-cs671-fall21-coupon-recommendation/outputs/rules/ID3/3_features/maxdepth_5/3/rules.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | duke-cs671-fall21-coupon-recommendation/outputs/rules/ID3/3_features/maxdepth_5/3/rules.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation
# {"feature": "Coupon", "instances": 8147, "metric_value": 0.4716, "depth": 1}
if obj[0]>1:
# {"feature": "Occupation", "instances": 5887, "metric_value": 0.4654, "depth": 2}
if obj[2]>0:
# {"feature": "Education", "instances": 5822,... | 32.657895 | 84 | 0.597099 | 177 | 1,241 | 4.146893 | 0.20904 | 0.149864 | 0.114441 | 0.163488 | 0.667575 | 0.547684 | 0.391008 | 0.144414 | 0.089918 | 0 | 0 | 0.129353 | 0.190169 | 1,241 | 37 | 85 | 33.540541 | 0.600995 | 0.490733 | 0 | 0.5 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f73751c6e3e7874170f4700c491479e6193d236 | 2,762 | py | Python | tests/block_generator/test_constant_generator.py | TobKed/airflow-munchkin | 2972047fcec7a035fa0930a3cfde02d9620db3e5 | [
"MIT"
] | 1 | 2019-10-09T19:58:43.000Z | 2019-10-09T19:58:43.000Z | tests/block_generator/test_constant_generator.py | TobKed/airflow-munchkin | 2972047fcec7a035fa0930a3cfde02d9620db3e5 | [
"MIT"
] | null | null | null | tests/block_generator/test_constant_generator.py | TobKed/airflow-munchkin | 2972047fcec7a035fa0930a3cfde02d9620db3e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import TestCase
from parameterized import parameterized
from airflow_munchkin.block_generator import constant_generator
from airflow_munchkin.block_generator.blocks import Constant
from airflow_munchkin.client_parser.docstring_parser.bricks import TypeBrick
class TestConstantGe... | 32.880952 | 87 | 0.389211 | 186 | 2,762 | 5.639785 | 0.268817 | 0.148713 | 0.106768 | 0.08103 | 0.618684 | 0.536702 | 0.525262 | 0.451859 | 0.451859 | 0.408008 | 0 | 0.009573 | 0.508327 | 2,762 | 83 | 88 | 33.277108 | 0.762887 | 0.007603 | 0 | 0.525641 | 0 | 0 | 0.115371 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.012821 | false | 0 | 0.064103 | 0 | 0.089744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f7419c57f40fe85cfc252f949f0223dc28e1d38 | 1,335 | py | Python | routers/login.py | pinchXOXO/Pexon-Rest-API | b7310693ff88a3e22c5e9eee8589f4a79aba97a5 | [
"MIT"
] | 14 | 2021-03-16T15:48:52.000Z | 2021-07-20T10:53:32.000Z | routers/login.py | pinchXOXO/Pexon-Rest-API | b7310693ff88a3e22c5e9eee8589f4a79aba97a5 | [
"MIT"
] | 1 | 2021-03-18T02:27:36.000Z | 2021-03-20T16:17:31.000Z | routers/login.py | pinchXOXO/Pexon-Rest-API | b7310693ff88a3e22c5e9eee8589f4a79aba97a5 | [
"MIT"
] | 4 | 2021-03-17T06:18:00.000Z | 2021-04-14T11:13:29.000Z | from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.orm import Session
from pydantic import BaseModel
from data.config import get_db, pwd_context, Oauth2_scheme
from model.user import *
from schema.token import create_access_token
login_r... | 43.064516 | 89 | 0.646442 | 148 | 1,335 | 5.614865 | 0.445946 | 0.064982 | 0.057762 | 0.072202 | 0.091456 | 0.091456 | 0 | 0 | 0 | 0 | 0 | 0.012232 | 0.265169 | 1,335 | 30 | 90 | 44.5 | 0.834862 | 0 | 0 | 0 | 0 | 0 | 0.062266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.291667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
58abc68ec5d9fff50ec37b0d9de02d5f834efb07 | 210 | py | Python | tmp/list_bridges_1000_at_a_time.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | tmp/list_bridges_1000_at_a_time.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | tmp/list_bridges_1000_at_a_time.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | # Example: List bridges 1000 at a time
bridges = api.list_bridges(size=1000)
for bridge in bridges:
print(bridge["id"])
## brg-6mv7pi22i
## brg-3emq7olua
## brg-bbufdc7yq
## brg-dvpvd7cuy
## brg-5ws2buzmq
| 21 | 39 | 0.714286 | 30 | 210 | 4.966667 | 0.666667 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100559 | 0.147619 | 210 | 9 | 40 | 23.333333 | 0.731844 | 0.509524 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ac41624004a0e8fe1df4a11a9137bca3803616 | 1,900 | py | Python | app/__init__.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/__init__.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/__init__.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | from flask import Flask, render_template # NOQA import flask and template operators
from flask_assets import Environment, Bundle
from flask_sqlalchemy import SQLAlchemy # Import SQLAlchemy
# Define the WSGI application object
app = Flask(__name__, static_folder='assets')
# Configurations
app.config.from_object('con... | 28.787879 | 84 | 0.657368 | 229 | 1,900 | 5.366812 | 0.344978 | 0.07323 | 0.091131 | 0.09764 | 0.170871 | 0.131814 | 0.131814 | 0.131814 | 0.131814 | 0.131814 | 0 | 0.012509 | 0.242632 | 1,900 | 65 | 85 | 29.230769 | 0.841557 | 0.222632 | 0 | 0.105263 | 0 | 0 | 0.167355 | 0.073003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.342105 | 0.052632 | 0.447368 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
58ad170a4779286197516c70336ef43d282de5d4 | 361 | py | Python | estrutura-de-decisao/1.py | isakruas/lista-de-exercicios-python | 5f3d039ca658defd679826a9e3412290f6be474b | [
"MIT"
] | null | null | null | estrutura-de-decisao/1.py | isakruas/lista-de-exercicios-python | 5f3d039ca658defd679826a9e3412290f6be474b | [
"MIT"
] | null | null | null | estrutura-de-decisao/1.py | isakruas/lista-de-exercicios-python | 5f3d039ca658defd679826a9e3412290f6be474b | [
"MIT"
] | null | null | null | """
1. Faça um Programa que peça dois números e imprima o maior deles.
"""
numeros = set()
while True:
try:
numero = int(input(f'Informe o {len(numeros)+1}º número\n'))
numeros.add(numero)
if len(numeros) == 2:
break
pass
except ValueError:
pass
print(f'O mai... | 22.5625 | 68 | 0.592798 | 51 | 361 | 4.196078 | 0.72549 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.288089 | 361 | 15 | 69 | 24.066667 | 0.821012 | 0.182825 | 0 | 0.181818 | 0 | 0 | 0.275261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
58b1753edb3020cae1fe86e99df4e79f59ea73ff | 3,196 | py | Python | src/aleph/services/peers/monitor.py | aleph-im/py-aleph | a18beb8b4eba36887ca85054ed2471c3680bdfde | [
"MIT"
] | null | null | null | src/aleph/services/peers/monitor.py | aleph-im/py-aleph | a18beb8b4eba36887ca85054ed2471c3680bdfde | [
"MIT"
] | null | null | null | src/aleph/services/peers/monitor.py | aleph-im/py-aleph | a18beb8b4eba36887ca85054ed2471c3680bdfde | [
"MIT"
] | null | null | null | import asyncio
import json
import logging
from typing import Any, Dict
from urllib.parse import unquote
from anyio.exceptions import IncompleteRead
from p2pclient import Client as P2PClient
from p2pclient.pb.p2pd_pb2 import PSMessage
from p2pclient.utils import read_pbmsg_safe
from aleph.services.ipfs.pubsub import s... | 35.511111 | 96 | 0.658949 | 388 | 3,196 | 5.268041 | 0.360825 | 0.039628 | 0.041096 | 0.03816 | 0.130626 | 0.09638 | 0.09638 | 0.073386 | 0.073386 | 0.073386 | 0 | 0.011026 | 0.262203 | 3,196 | 89 | 97 | 35.910112 | 0.85581 | 0.083542 | 0 | 0.151515 | 0 | 0 | 0.131714 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0 | false | 0 | 0.19697 | 0 | 0.19697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58bb3301179c180ec2426d915142ddf2c0c0fec2 | 3,887 | py | Python | sqlbucket/integrity.py | socialpoint-labs/sqlflow | 5f1c23ff3207e0e162ae5ab93f80129a982e5468 | [
"MIT"
] | 67 | 2019-09-17T16:36:15.000Z | 2022-03-28T09:16:31.000Z | sqlbucket/integrity.py | socialpoint-labs/sqlflow | 5f1c23ff3207e0e162ae5ab93f80129a982e5468 | [
"MIT"
] | 10 | 2019-11-14T16:43:37.000Z | 2021-12-19T16:06:20.000Z | sqlbucket/integrity.py | socialpoint-labs/sqlflow | 5f1c23ff3207e0e162ae5ab93f80129a982e5468 | [
"MIT"
] | 7 | 2019-12-04T14:31:17.000Z | 2021-12-23T15:53:01.000Z | from sqlbucket.runners import create_connection
from sqlbucket.runners import logger
from tabulate import tabulate
from sqlbucket.utils import integrity_logo, success
from sqlalchemy import text
from sqlalchemy.exc import SQLAlchemyError
from sqlbucket.exceptions import PassedFieldNotInQuery
def run_integrity(configu... | 33.8 | 80 | 0.56779 | 450 | 3,887 | 4.768889 | 0.282222 | 0.058714 | 0.030755 | 0.044734 | 0.096925 | 0.045666 | 0 | 0 | 0 | 0 | 0 | 0.0027 | 0.332905 | 3,887 | 114 | 81 | 34.096491 | 0.824913 | 0.003859 | 0 | 0.197917 | 0 | 0 | 0.204704 | 0.058671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.072917 | 0 | 0.239583 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
58bc8596ace002bc1e84c9d37b5cb929e1e61211 | 3,381 | py | Python | pylight/meetups/views.py | PyLightMeetup/pylight.org | 27dc8cde1e7cb644c421b8c8d2d96c73c807a013 | [
"MIT"
] | 5 | 2017-05-29T08:37:29.000Z | 2020-09-16T23:35:31.000Z | pylight/meetups/views.py | PyLightMeetup/pylight.org | 27dc8cde1e7cb644c421b8c8d2d96c73c807a013 | [
"MIT"
] | 12 | 2017-05-28T19:48:08.000Z | 2018-03-29T09:07:32.000Z | pylight/meetups/views.py | PyLightMeetup/pylight.org | 27dc8cde1e7cb644c421b8c8d2d96c73c807a013 | [
"MIT"
] | 5 | 2017-05-28T13:49:01.000Z | 2017-06-11T16:00:37.000Z | from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.shortcuts import get_object_or_404
from django.views import generic
from django.contrib.syndication import views as syndication_views
from django.core.urlresolvers import reverse_lazy
from django.utils import feedge... | 32.509615 | 107 | 0.735877 | 400 | 3,381 | 5.97 | 0.335 | 0.037688 | 0.033501 | 0.043551 | 0.118928 | 0.118928 | 0.118928 | 0.086265 | 0.051089 | 0.051089 | 0 | 0.002501 | 0.172138 | 3,381 | 103 | 108 | 32.825243 | 0.850661 | 0.014493 | 0 | 0.067568 | 0 | 0 | 0.104773 | 0.075653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094595 | false | 0 | 0.135135 | 0.040541 | 0.797297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58c0f061bf94048a308447271bd7b77e69c54200 | 212 | py | Python | example/resources/code_samples/python.py | CFXS/QCodeEditor | 39ba3f382b24a081fda75873d2c4a81108bd5d95 | [
"MIT"
] | null | null | null | example/resources/code_samples/python.py | CFXS/QCodeEditor | 39ba3f382b24a081fda75873d2c4a81108bd5d95 | [
"MIT"
] | null | null | null | example/resources/code_samples/python.py | CFXS/QCodeEditor | 39ba3f382b24a081fda75873d2c4a81108bd5d95 | [
"MIT"
] | null | null | null | import numpy
def sqr_array(x):
'''
Documentation for sqr_array.
A multi line string!'
'''
return np.array(x)**2
s = 'this is a string'
d = 10
x = np.arange(0,d,d/10)
y = sqr_array(x)
| 14.133333 | 31 | 0.575472 | 37 | 212 | 3.216216 | 0.621622 | 0.201681 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.278302 | 212 | 14 | 32 | 15.142857 | 0.738562 | 0.235849 | 0 | 0 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58c1725a95e568d75a4c4598645d5fa3f40ce4c1 | 3,256 | py | Python | testkb/main.py | happyseayou/tello_the_force | 19e4971325c9cf5f837630619eb5023d37c8363d | [
"MIT"
] | 1 | 2020-09-24T08:52:06.000Z | 2020-09-24T08:52:06.000Z | testkb/main.py | happyseayou/tello_the_force | 19e4971325c9cf5f837630619eb5023d37c8363d | [
"MIT"
] | null | null | null | testkb/main.py | happyseayou/tello_the_force | 19e4971325c9cf5f837630619eb5023d37c8363d | [
"MIT"
] | 1 | 2020-09-24T11:00:54.000Z | 2020-09-24T11:00:54.000Z | import sys
import av
import tellopy
import cv2
import numpy
import time
import pygame
import time
from Tello import Tello
from Com import Com
from UI import FPS
#[0 1 2 3 4 5]
#四个通道 ispose 模式
#油 pitch roll yaw ispose 模式 0 1 2 3 4 5
... | 24.118519 | 78 | 0.513821 | 548 | 3,256 | 2.923358 | 0.231752 | 0.104869 | 0.178527 | 0.183521 | 0.38015 | 0.340824 | 0.299625 | 0.299625 | 0.209738 | 0.193508 | 0 | 0.085406 | 0.345516 | 3,256 | 135 | 79 | 24.118519 | 0.666354 | 0.117322 | 0 | 0.137255 | 0 | 0 | 0.003158 | 0 | 0 | 0 | 0.001404 | 0 | 0 | 1 | 0.019608 | false | 0.009804 | 0.107843 | 0 | 0.137255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58c29d1b874f3536f57bc7a1bf737c8db58c77fc | 4,166 | py | Python | coogger/cooggerapp/views/controls.py | adilkhan8000/coogger | 0d9350116bec29c0c4f5229118e4045c9e64d796 | [
"MIT"
] | null | null | null | coogger/cooggerapp/views/controls.py | adilkhan8000/coogger | 0d9350116bec29c0c4f5229118e4045c9e64d796 | [
"MIT"
] | null | null | null | coogger/cooggerapp/views/controls.py | adilkhan8000/coogger | 0d9350116bec29c0c4f5229118e4045c9e64d796 | [
"MIT"
] | null | null | null | # django
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render
from django.db.models import F
from django.contrib import messages as ms
# class
# from django.views.generic import ListView
from django.views import View
from django.contrib.auth.decorators import login_required
fr... | 41.66 | 132 | 0.678589 | 499 | 4,166 | 5.513026 | 0.240481 | 0.071247 | 0.027263 | 0.040712 | 0.443475 | 0.409669 | 0.368593 | 0.320974 | 0.225009 | 0.13377 | 0 | 0.004334 | 0.224676 | 4,166 | 99 | 133 | 42.080808 | 0.847368 | 0.06025 | 0 | 0.28 | 0 | 0.013333 | 0.061235 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.093333 | false | 0 | 0.146667 | 0.013333 | 0.413333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58dc7f032e83cd41bf1e1271233fcca9a61787ae | 811 | py | Python | olimpiada/ejercicios/random/loteria.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | olimpiada/ejercicios/random/loteria.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | olimpiada/ejercicios/random/loteria.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | import random
import datetime
random.seed()
def generar_apuesta():
"""Funcion que genera una apuesta"""
a = []
while len(a) < 6:
numero = random.randint(1, 49)
if numero not in a:
a.append(numero)
return a
def mostrar_apuesta(apuestas, i):
"""Funcion que muestra una apuesta"""
print "apuesta", i+1, ":"... | 19.309524 | 114 | 0.710234 | 115 | 811 | 4.913043 | 0.452174 | 0.079646 | 0.077876 | 0.081416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013235 | 0.161529 | 811 | 41 | 115 | 19.780488 | 0.817647 | 0.014797 | 0 | 0 | 0 | 0 | 0.11326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58dd0b07c0b64d896687d902e125e9f081fcb108 | 1,998 | py | Python | azure-devops/azext_devops/devops_sdk/v5_1/provenance/models.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 326 | 2019-04-10T12:38:23.000Z | 2022-03-31T23:07:49.000Z | azure-devops/azext_devops/devops_sdk/v5_1/provenance/models.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 562 | 2019-04-10T07:36:12.000Z | 2022-03-28T07:37:54.000Z | azure-devops/azext_devops/devops_sdk/v5_1/provenance/models.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 166 | 2019-04-10T07:59:40.000Z | 2022-03-16T14:17:13.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | 33.3 | 159 | 0.561061 | 216 | 1,998 | 5.027778 | 0.402778 | 0.049724 | 0.051565 | 0.046961 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202202 | 1,998 | 59 | 160 | 33.864407 | 0.680678 | 0.26977 | 0 | 0.08 | 0 | 0 | 0.170814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58e83f4e81ce4de5eff3cc04280181e185df6a11 | 5,585 | py | Python | com/vmware/vcenter/deployment/install/initial_config/remote_psc_client.py | adammillerio/vsphere-automation-sdk-python | c07e1be98615201139b26c28db3aa584c4254b66 | [
"MIT"
] | null | null | null | com/vmware/vcenter/deployment/install/initial_config/remote_psc_client.py | adammillerio/vsphere-automation-sdk-python | c07e1be98615201139b26c28db3aa584c4254b66 | [
"MIT"
] | null | null | null | com/vmware/vcenter/deployment/install/initial_config/remote_psc_client.py | adammillerio/vsphere-automation-sdk-python | c07e1be98615201139b26c28db3aa584c4254b66 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2020 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.vcenter.deployment.install.initial_config.remote_psc.
#-----------------------------... | 34.054878 | 106 | 0.599463 | 581 | 5,585 | 5.566265 | 0.283993 | 0.055659 | 0.047619 | 0.047619 | 0.31107 | 0.278293 | 0.24428 | 0.231911 | 0.134199 | 0.117192 | 0 | 0.004746 | 0.283259 | 5,585 | 163 | 107 | 34.263804 | 0.803148 | 0.294897 | 0 | 0.068966 | 1 | 0 | 0.184144 | 0.142255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0 | 0.137931 | 0 | 0.264368 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ecaea09315ec5a2c3c4da9b1b40769e3d13be4 | 2,590 | py | Python | huffman_tree.py | allenling/I.T.Algorithm | 4f2dd09a1edb60326e255005600d1e07317285f8 | [
"MIT"
] | null | null | null | huffman_tree.py | allenling/I.T.Algorithm | 4f2dd09a1edb60326e255005600d1e07317285f8 | [
"MIT"
] | null | null | null | huffman_tree.py | allenling/I.T.Algorithm | 4f2dd09a1edb60326e255005600d1e07317285f8 | [
"MIT"
] | null | null | null | # coding=utf-8
'''
霍夫曼树
使用变长码来压缩要传输的数据, 压缩性能最好
权路径长度WPL最小的二叉树称为赫夫曼树或最优二叉树。
'''
class Node(object):
def __init__(self, value, left=None, right=None):
self.value = value
self.nums = 1
self.left = left
self.right = right
self.path = ''
def __repr__(self):
return ... | 25.392157 | 53 | 0.477992 | 304 | 2,590 | 3.940789 | 0.203947 | 0.066778 | 0.050083 | 0.035058 | 0.134391 | 0.134391 | 0.045075 | 0.045075 | 0 | 0 | 0 | 0.014085 | 0.396911 | 2,590 | 101 | 54 | 25.643564 | 0.752881 | 0.004633 | 0 | 0.146341 | 0 | 0 | 0.026263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58f5c42f472bbd077f747d464cde5165f941252b | 2,071 | py | Python | aula2506/questao3.py | tameus/aulasdelogicaprogramacao | f32d1019d4bfd5da371417911cb6bcafe58dfac7 | [
"MIT"
] | 1 | 2021-06-30T11:53:21.000Z | 2021-06-30T11:53:21.000Z | aula2506/questao3.py | tameus/aulasdelogicaprogramacao | f32d1019d4bfd5da371417911cb6bcafe58dfac7 | [
"MIT"
] | null | null | null | aula2506/questao3.py | tameus/aulasdelogicaprogramacao | f32d1019d4bfd5da371417911cb6bcafe58dfac7 | [
"MIT"
] | 25 | 2021-04-17T00:36:10.000Z | 2021-06-01T17:28:16.000Z | # Funcionarios
# Gerente / Operario
# Gerente terá salario, registro, e um metodo trabalho - imprime sou gerente
# Operario terá salario, registro, Gerente e um metodo trabalho - imprime sou operario
# criar um classe chamada RH. Esse classe fará o seguinte:
# Computar a media dos salarios dos funcionarios
# Ela va... | 33.403226 | 104 | 0.668759 | 252 | 2,071 | 5.31746 | 0.345238 | 0.037313 | 0.032836 | 0.049254 | 0.141045 | 0.141045 | 0.100746 | 0.100746 | 0 | 0 | 0 | 0.020138 | 0.232738 | 2,071 | 62 | 105 | 33.403226 | 0.823159 | 0.223081 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0.02439 | 0.365854 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58f7e7e1b983a67e5d5ef64ff977277ae01641b7 | 1,651 | py | Python | easy_rl/agents/__init__.py | simonoso/EasyRL | 3d8eb2bf138dd2a0b95f8b3743d15f34cfff0740 | [
"Apache-2.0"
] | 125 | 2019-12-05T02:50:56.000Z | 2022-02-22T08:03:24.000Z | easy_rl/agents/__init__.py | simonoso/EasyRL | 3d8eb2bf138dd2a0b95f8b3743d15f34cfff0740 | [
"Apache-2.0"
] | 4 | 2020-03-18T05:56:22.000Z | 2020-07-11T11:10:17.000Z | easy_rl/agents/__init__.py | simonoso/EasyRL | 3d8eb2bf138dd2a0b95f8b3743d15f34cfff0740 | [
"Apache-2.0"
] | 26 | 2019-12-12T06:25:47.000Z | 2022-01-19T22:19:41.000Z | # Copyright (c) 2019 Alibaba Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 36.688889 | 80 | 0.746214 | 224 | 1,651 | 5.321429 | 0.450893 | 0.073826 | 0.092282 | 0.147651 | 0.035235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009123 | 0.136887 | 1,651 | 44 | 81 | 37.522727 | 0.827368 | 0.395518 | 0 | 0 | 0 | 0 | 0.105799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.538462 | 0 | 0.538462 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
58f9f49b36405b10f730be5cd0050309627f68cf | 714 | py | Python | tests/functional/test_wgbs_two_reps.py | procha2/wgbs-pipeline | f41d0dc64020e68c804898527620a19ad7f470ac | [
"MIT"
] | 14 | 2018-08-22T01:08:36.000Z | 2021-12-09T08:14:52.000Z | tests/functional/test_wgbs_two_reps.py | procha2/wgbs-pipeline | f41d0dc64020e68c804898527620a19ad7f470ac | [
"MIT"
] | 10 | 2018-07-18T08:43:12.000Z | 2022-02-25T17:37:05.000Z | tests/functional/test_wgbs_two_reps.py | procha2/wgbs-pipeline | f41d0dc64020e68c804898527620a19ad7f470ac | [
"MIT"
] | 12 | 2018-07-31T09:30:50.000Z | 2021-11-24T14:27:58.000Z | import json
import math
import pytest
@pytest.mark.workflow("test_wgbs_two_reps")
def test_wgbs_two_reps_check_pearson_qc(workflow_dir, test_data_dir):
with open(test_data_dir / "bed_pearson_correlation_qc.json") as f:
expected_qc = json.load(f)
result_path = next(
(workflow_dir / "test-outp... | 31.043478 | 101 | 0.72409 | 97 | 714 | 4.969072 | 0.391753 | 0.261411 | 0.130705 | 0.062241 | 0.340249 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.170868 | 714 | 22 | 102 | 32.454545 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.312325 | 0.165266 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4506d238ad30c96fcd28a5f8304901a4f6a29a1e | 10,317 | py | Python | planner.py | imrehg/ultimaplanner | 9d943f43fd7d371038dd70325d72016a5285d8c9 | [
"MIT"
] | 1 | 2015-12-16T05:43:53.000Z | 2015-12-16T05:43:53.000Z | planner.py | imrehg/ultimaplanner | 9d943f43fd7d371038dd70325d72016a5285d8c9 | [
"MIT"
] | null | null | null | planner.py | imrehg/ultimaplanner | 9d943f43fd7d371038dd70325d72016a5285d8c9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
import random
from copy import copy
from math import exp, sqrt
from pylab import plot, show
WOOD, STONE, IRON, FOOD, GOLD = range(5)
Resources = [WOOD, STONE, IRON, FOOD, GOLD]
Terraforming = True
def addlists(a, b):
return map(sum, zip(*[a, b]))
def negate(... | 26.521851 | 77 | 0.539692 | 1,176 | 10,317 | 4.595238 | 0.163265 | 0.056255 | 0.040711 | 0.059956 | 0.368246 | 0.30755 | 0.298668 | 0.298668 | 0.284604 | 0.271651 | 0 | 0.017923 | 0.340215 | 10,317 | 388 | 78 | 26.590206 | 0.775966 | 0.052244 | 0 | 0.319079 | 0 | 0 | 0.003799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006579 | 0.016447 | null | null | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4507374c92dad72051e7e74c66c49fa60a9a10f7 | 656 | py | Python | Algorithms_medium/0050. Pow(x, n).py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/0050. Pow(x, n).py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/0050. Pow(x, n).py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
0050. Pow(x, n)
Implement pow(x, n), which calculates x raised to the power n (xn).
Example 1:
Input: 2.00000, 10
Output: 1024.00000
Example 2:
Input: 2.10000, 3
Output: 9.26100
Example 3:
Input: 2.00000, -2
Output: 0.25000
Explanation: 2-2 = 1/22 = 1/4 = 0.25
"""
class Solution:
def myPow(self, x: float, n... | 19.294118 | 67 | 0.474085 | 105 | 656 | 2.961905 | 0.4 | 0.064309 | 0.032154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1725 | 0.390244 | 656 | 33 | 68 | 19.878788 | 0.605 | 0.402439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4509b6528d66507c65fc7f4afe5ddf74f5ba27ba | 1,423 | py | Python | dvojkarsky_zpevnik/homepage/views.py | 8ToThePowerOfMol/dvojkarsky_zpevnik_web | 71dc8055cc1cc94036c2db1e13a5e3a116691ab8 | [
"MIT"
] | null | null | null | dvojkarsky_zpevnik/homepage/views.py | 8ToThePowerOfMol/dvojkarsky_zpevnik_web | 71dc8055cc1cc94036c2db1e13a5e3a116691ab8 | [
"MIT"
] | null | null | null | dvojkarsky_zpevnik/homepage/views.py | 8ToThePowerOfMol/dvojkarsky_zpevnik_web | 71dc8055cc1cc94036c2db1e13a5e3a116691ab8 | [
"MIT"
] | null | null | null | import os
from django.shortcuts import render
from django.views.generic import TemplateView
from .forms import SongsForm
from .utils import produce_songs_pdf
from django.http import HttpResponse, Http404
def download(request, path):
if os.path.exists(path):
with open(path, 'rb') as fh:
respons... | 32.340909 | 105 | 0.64371 | 165 | 1,423 | 5.49697 | 0.4 | 0.079383 | 0.125689 | 0.119074 | 0.246968 | 0.246968 | 0.246968 | 0.200662 | 0.112459 | 0 | 0 | 0.005535 | 0.238229 | 1,423 | 43 | 106 | 33.093023 | 0.831181 | 0.050597 | 0 | 0.066667 | 0 | 0 | 0.129822 | 0.047478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.033333 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
450bbd3b0e3e480e7ab745170b98501ad11119d5 | 191 | py | Python | qmldataset/utilities/constants.py | rajibchakravorty/QDataSet | 8eb21b8c7dad5654358021dd73b93ab90443f6d0 | [
"MIT"
] | null | null | null | qmldataset/utilities/constants.py | rajibchakravorty/QDataSet | 8eb21b8c7dad5654358021dd73b93ab90443f6d0 | [
"MIT"
] | null | null | null | qmldataset/utilities/constants.py | rajibchakravorty/QDataSet | 8eb21b8c7dad5654358021dd73b93ab90443f6d0 | [
"MIT"
] | null | null | null | """
Defining constants
"""
from numpy import eye, array
pauli_operators = [
eye(2),
array([[0., 1.], [1., 0.]]),
array([[0., -1j], [1j, 0.]]),
array([[1., 0.], [0., -1.]])]
| 15.916667 | 33 | 0.460733 | 26 | 191 | 3.346154 | 0.5 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087838 | 0.225131 | 191 | 11 | 34 | 17.363636 | 0.5 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
450f66fc206417f9c17b4614d12db85bff9dedde | 5,653 | py | Python | app/user/tests/test_user_api.py | kim-sun/recipe-app-api | c0c598f2188c42c820178ea7910c34ccdf641393 | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | kim-sun/recipe-app-api | c0c598f2188c42c820178ea7910c34ccdf641393 | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | kim-sun/recipe-app-api | c0c598f2188c42c820178ea7910c34ccdf641393 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
# Let django create user url as a variable
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
ME_URL = re... | 35.33125 | 77 | 0.651336 | 715 | 5,653 | 4.979021 | 0.220979 | 0.042135 | 0.060674 | 0.074157 | 0.383427 | 0.350843 | 0.325843 | 0.291573 | 0.257303 | 0.215449 | 0 | 0.007892 | 0.237927 | 5,653 | 159 | 78 | 35.553459 | 0.818477 | 0.213161 | 0 | 0.389474 | 0 | 0 | 0.095096 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 1 | 0.147368 | false | 0.147368 | 0.052632 | 0.010526 | 0.231579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4510a9c0189f657a45bcd4196c82f7936cd73c98 | 1,815 | py | Python | samples/snippets/list_site_keys.py | Sita04/python-recaptcha-enterprise | 1602811e80828ed7ac9aab7d6b1b73bf74da00bf | [
"Apache-2.0"
] | 8 | 2020-04-30T07:10:42.000Z | 2022-02-10T20:14:44.000Z | samples/snippets/list_site_keys.py | Sita04/python-recaptcha-enterprise | 1602811e80828ed7ac9aab7d6b1b73bf74da00bf | [
"Apache-2.0"
] | 68 | 2020-04-20T20:31:45.000Z | 2022-03-07T17:00:05.000Z | samples/snippets/list_site_keys.py | googleapis/python-recaptcha-enterprise | fda16a44a84b173a8866090021e03eef0cb82025 | [
"Apache-2.0"
] | 8 | 2020-04-20T19:52:24.000Z | 2022-02-14T21:50:27.000Z | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 31.842105 | 74 | 0.722314 | 240 | 1,815 | 5.316667 | 0.516667 | 0.056426 | 0.037618 | 0.025078 | 0.048589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008259 | 0.199449 | 1,815 | 56 | 75 | 32.410714 | 0.869924 | 0.471625 | 0 | 0 | 0 | 0 | 0.201517 | 0.055255 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.181818 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
451f6b74237be3b4ebb0906270a8d05f99bb62d7 | 1,340 | py | Python | tests/test_rules_base.py | Mikuana/rumydata | 303ff6558f68628cfc428d2cca12588299f4daa2 | [
"MIT"
] | 3 | 2020-09-03T06:15:35.000Z | 2021-04-16T15:32:22.000Z | tests/test_rules_base.py | Mikuana/rumydata | 303ff6558f68628cfc428d2cca12588299f4daa2 | [
"MIT"
] | 48 | 2020-06-14T03:31:15.000Z | 2021-05-20T23:45:20.000Z | tests/test_rules_base.py | Mikuana/rumydata | 303ff6558f68628cfc428d2cca12588299f4daa2 | [
"MIT"
] | 1 | 2020-11-04T18:30:57.000Z | 2020-11-04T18:30:57.000Z | import pytest
from rumydata._base import _BaseRule
from rumydata.exception import UrNotMyDataError
def recurse_subclasses(class_to_recurse):
def generator(x):
for y in x.__subclasses__():
for z in generator(y):
yield z
yield x
return list(generator(class_to_recurs... | 29.130435 | 68 | 0.724627 | 166 | 1,340 | 5.590361 | 0.325301 | 0.091595 | 0.090517 | 0.107759 | 0.31681 | 0.31681 | 0.31681 | 0.31681 | 0.31681 | 0.31681 | 0 | 0.000894 | 0.164925 | 1,340 | 45 | 69 | 29.777778 | 0.828418 | 0.130597 | 0 | 0.148148 | 0 | 0 | 0.015817 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.259259 | false | 0 | 0.111111 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4521aecbe2812af5aa7a33ecd9d86274ea29804e | 2,321 | py | Python | django/docs/glossary.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/glossary.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/glossary.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXX
XXXXXXXX
XXXXXXXX
XX XXXXXXXXXX
XXXXXXXX XXXXX
X XXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX
XXXXX
XX XXXXXXXXX XX X XXXXXXXXXXXXXX X XXXXX XXXXX XXXXXXX XXXX XXXXXXXX XX
X XXXXXX XXXXXXXX XXXXXXX
XXX XXXXXXXXXXXXXXXXXXXXX... | 29.75641 | 80 | 0.730289 | 254 | 2,321 | 6.673228 | 0.098425 | 0.031858 | 0.019469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269711 | 2,321 | 77 | 81 | 30.142857 | 1 | 0 | 0 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
452d548b6a28a4d2732ef543f15cc2c99938cefd | 1,735 | py | Python | app/post/api/serializers.py | HSAkash/Questionnaire_api | 95a0e4e7bc680fe27dd312dad0e2fd70ceafb8b4 | [
"MIT"
] | 1 | 2021-12-26T06:18:48.000Z | 2021-12-26T06:18:48.000Z | app/post/api/serializers.py | HSAkash/Questionnaire_api | 95a0e4e7bc680fe27dd312dad0e2fd70ceafb8b4 | [
"MIT"
] | null | null | null | app/post/api/serializers.py | HSAkash/Questionnaire_api | 95a0e4e7bc680fe27dd312dad0e2fd70ceafb8b4 | [
"MIT"
] | null | null | null | from user import models as user_models
from post import models as post_models
from rest_framework import serializers
from django.contrib.auth import get_user_model
class UserSerializer(serializers.ModelSerializer):
"""User serializer"""
class Meta:
model = get_user_model()
fields = ('id', 'us... | 31.545455 | 70 | 0.646686 | 177 | 1,735 | 6.158192 | 0.282486 | 0.044037 | 0.038532 | 0.044037 | 0.379817 | 0.249541 | 0.249541 | 0.141284 | 0.141284 | 0.141284 | 0 | 0 | 0.242651 | 1,735 | 54 | 71 | 32.12963 | 0.829528 | 0.040922 | 0 | 0.342105 | 0 | 0 | 0.108338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4531658eefaede16647b5375b3baa22d476140e2 | 19,989 | py | Python | lapd_codes/mo_codes.py | MaxwellWilliams/defogger | 5f80127d771992902da0875d9085c3664b5d321f | [
"MIT"
] | null | null | null | lapd_codes/mo_codes.py | MaxwellWilliams/defogger | 5f80127d771992902da0875d9085c3664b5d321f | [
"MIT"
] | null | null | null | lapd_codes/mo_codes.py | MaxwellWilliams/defogger | 5f80127d771992902da0875d9085c3664b5d321f | [
"MIT"
] | null | null | null | mo_codes = {
'0100': 'Suspect Impersonate',
'0101': 'Aid victim',
'0102': 'Blind',
'0103': 'Crippled',
'0104': 'Customer',
'0105': 'Delivery',
'0106': 'Doctor',
'0107': 'God',
'0108': 'Infirm',
'0109': 'Inspector',
'0110': 'Involved in traffic/accident',
'0112': 'Police',... | 37.362617 | 205 | 0.609685 | 2,337 | 19,989 | 5.214377 | 0.598631 | 0.017807 | 0.01034 | 0.014443 | 0.025767 | 0.004924 | 0 | 0 | 0 | 0 | 0 | 0.136754 | 0.213117 | 19,989 | 534 | 206 | 37.432584 | 0.637994 | 0 | 0 | 0 | 0 | 0.001873 | 0.65426 | 0.009005 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001873 | 0 | 0 | 0 | 0.005618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
453549100b7235e3577a04b1cc272afc12708e2b | 3,183 | py | Python | modules/nltk_contrib/rdf/rdfquery.py | h4ck3rm1k3/NLP-project | aeba6302f60d27a8b9e65ad28d2d74e1276c7cd6 | [
"MIT"
] | 123 | 2015-01-06T10:46:18.000Z | 2022-02-01T10:05:16.000Z | nltk_contrib/rdf/rdfquery.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 12 | 2015-01-13T06:27:18.000Z | 2020-07-30T23:00:41.000Z | nltk_contrib/rdf/rdfquery.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 114 | 2015-01-13T04:47:49.000Z | 2021-11-13T08:16:02.000Z | # Natural Language Toolkit: Convert English sentences in SPARQL Queries
#
# Copyright (C) 2001-2011 NLTK Project
# Author: Ewan Klein <ewan@inf.ed.ac.uk>,
# URL: <http://nltk.sourceforge.net>
# For license information, see LICENSE.TXT
#
import nltk
from nltk import parse, LogicParser, sem
from string import join
cla... | 33.505263 | 131 | 0.595664 | 368 | 3,183 | 5.076087 | 0.423913 | 0.038544 | 0.030514 | 0.021413 | 0.086724 | 0.049251 | 0.049251 | 0.049251 | 0.049251 | 0.049251 | 0 | 0.007178 | 0.299717 | 3,183 | 94 | 132 | 33.861702 | 0.830866 | 0.155828 | 0 | 0 | 0 | 0 | 0.059785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45368d1e946445dbe076e799364263b00e113581 | 8,332 | py | Python | sdk/python/pulumi_azure_native/labservices/get_user.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/labservices/get_user.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/labservices/get_user.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 35.759657 | 244 | 0.640182 | 988 | 8,332 | 5.123482 | 0.153846 | 0.025682 | 0.04109 | 0.077045 | 0.281509 | 0.191229 | 0.138878 | 0.067365 | 0.043461 | 0.043461 | 0 | 0.001456 | 0.258281 | 8,332 | 232 | 245 | 35.913793 | 0.817638 | 0.139462 | 0 | 0.123377 | 1 | 0 | 0.154264 | 0.02686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.038961 | 0 | 0.253247 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4539ebe3499dfda815675689ad0e85f7c9c127a4 | 554 | py | Python | __init__.py | Vrekrer/threading_decorators | 52a37883871fd322c44fc36e0d9bb25c778262e2 | [
"MIT"
] | 1 | 2020-02-05T05:16:26.000Z | 2020-02-05T05:16:26.000Z | __init__.py | Vrekrer/threading_decorators | 52a37883871fd322c44fc36e0d9bb25c778262e2 | [
"MIT"
] | null | null | null | __init__.py | Vrekrer/threading_decorators | 52a37883871fd322c44fc36e0d9bb25c778262e2 | [
"MIT"
] | null | null | null | # coding=utf-8
# Author: Diego Gonzalez Chavez
# email : diegogch@cbpf.br / diego.gonzalez.chavez@gmail.com
from .threading_decorators import Threaded_Function, as_thread, check_stop
del(threading_decorators)
try:
import IPython
if IPython.get_ipython() is not None: # We are in an IPython session
t... | 23.083333 | 74 | 0.67509 | 71 | 554 | 5.056338 | 0.661972 | 0.072423 | 0.10585 | 0.094708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002439 | 0.259928 | 554 | 23 | 75 | 24.086957 | 0.873171 | 0.234657 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
453b8ba963b3780b8bf6c4cabc71acdafeee97a8 | 1,143 | py | Python | fabfile/repair.py | sparcopen/opencon-2015-app-code | 8947e17376845e249dbdf3abc9548fd0c92cb217 | [
"MIT"
] | 1 | 2015-11-13T02:10:57.000Z | 2015-11-13T02:10:57.000Z | fabfile/repair.py | sparcopen/opencon-2015-app-code | 8947e17376845e249dbdf3abc9548fd0c92cb217 | [
"MIT"
] | 1 | 2016-10-18T11:17:11.000Z | 2016-11-11T00:43:26.000Z | fabfile/repair.py | sparcopen/opencon-2015-app-code | 8947e17376845e249dbdf3abc9548fd0c92cb217 | [
"MIT"
] | 1 | 2015-11-13T02:13:54.000Z | 2015-11-13T02:13:54.000Z | """
Repair scripts.
"""
from fabric.api import task
from application.models import Application
@task
def duplicates():
"""
Fix application duplicates.
"""
emails = set(Application.objects.values_list("email", flat=True))
print len(emails)
for email in emails:
applications = Applica... | 21.566038 | 82 | 0.637795 | 111 | 1,143 | 6.495496 | 0.396396 | 0.099861 | 0.133148 | 0.099861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00601 | 0.272091 | 1,143 | 52 | 83 | 21.980769 | 0.860577 | 0 | 0 | 0.137931 | 0 | 0 | 0.004831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45430179e74546677246aa0543bc96e9ce76d320 | 323 | py | Python | sesion_1/cadena_en_otra.py | JoseCordobaEAN/refuerzo_programacion_2018_1 | c2d05df4b18e0cc650fd2f010867e1b0c0282033 | [
"MIT"
] | 2 | 2018-02-27T18:01:22.000Z | 2018-03-10T18:03:14.000Z | sesion_1/cadena_en_otra.py | JoseCordobaEAN/refuerzo_programacion_2018_1 | c2d05df4b18e0cc650fd2f010867e1b0c0282033 | [
"MIT"
] | null | null | null | sesion_1/cadena_en_otra.py | JoseCordobaEAN/refuerzo_programacion_2018_1 | c2d05df4b18e0cc650fd2f010867e1b0c0282033 | [
"MIT"
] | null | null | null | # Solicitamos la primera cadena
cadena = input("¿Cual es su cadena? ")
# Solicitamos la cadena a verificar
cadena_interna = input("¿Cual es su cadena interna? ")
mensaje = "Su cadena " + cadena_interna + " esta contenida en " +cadena
#imprimimos si una esta contenida en la otra
print(mensaje, cadena_interna in caden... | 29.363636 | 71 | 0.743034 | 48 | 323 | 4.979167 | 0.458333 | 0.217573 | 0.083682 | 0.100418 | 0.167364 | 0.167364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170279 | 323 | 10 | 72 | 32.3 | 0.884328 | 0.328173 | 0 | 0 | 0 | 0 | 0.361502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4544150027ce84f90113da4b08e31ad50c7f95ee | 587 | py | Python | datacube/drivers/__init__.py | eodcgmbh/datacube-core | 0792e519ccfd33e0a0acf368aa6f33ca2c1ea50f | [
"Apache-2.0"
] | 363 | 2017-03-17T07:33:18.000Z | 2022-03-25T12:33:36.000Z | datacube/drivers/__init__.py | eodcgmbh/datacube-core | 0792e519ccfd33e0a0acf368aa6f33ca2c1ea50f | [
"Apache-2.0"
] | 1,035 | 2017-03-07T05:38:43.000Z | 2022-03-29T03:19:10.000Z | datacube/drivers/__init__.py | eodcgmbh/datacube-core | 0792e519ccfd33e0a0acf368aa6f33ca2c1ea50f | [
"Apache-2.0"
] | 146 | 2017-03-08T01:08:37.000Z | 2022-03-16T01:52:13.000Z | # This file is part of the Open Data Cube, see https://opendatacube.org for more information
#
# Copyright (c) 2015-2020 ODC Contributors
# SPDX-License-Identifier: Apache-2.0
"""
This module implements a simple plugin manager for storage and index drivers.
"""
from .indexes import index_driver_by_name, index_drivers
... | 36.6875 | 92 | 0.768313 | 82 | 587 | 5.207317 | 0.621951 | 0.056206 | 0.077283 | 0.079625 | 0.135831 | 0.135831 | 0 | 0 | 0 | 0 | 0 | 0.01996 | 0.146508 | 587 | 15 | 93 | 39.133333 | 0.832335 | 0.41908 | 0 | 0 | 0 | 0 | 0.293939 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4544da8b8891005d12aacc9a94e5d26f263f0c3e | 347 | py | Python | cronjobs/cron.py | divio/django-cronjobs | d293f0a9333b1de45084baba04e0ab546e7a5125 | [
"BSD-3-Clause"
] | 1 | 2017-09-06T08:16:21.000Z | 2017-09-06T08:16:21.000Z | cronjobs/cron.py | divio/django-cronjobs | d293f0a9333b1de45084baba04e0ab546e7a5125 | [
"BSD-3-Clause"
] | null | null | null | cronjobs/cron.py | divio/django-cronjobs | d293f0a9333b1de45084baba04e0ab546e7a5125 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
from django.contrib.sessions.models import Session
from cronjobs import Cron
class DeleteSessions(Cron):
run_every = 24
def job(self):
now = datetime.now()
try:
Session.objects.filter(expire_date__lt=now).delete()
return True
except... | 23.133333 | 64 | 0.645533 | 41 | 347 | 5.365854 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.285303 | 347 | 14 | 65 | 24.785714 | 0.879032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
188509441126001679f16ad813f51cc6aecc722f | 9,105 | py | Python | ISE.py | Wang-GY/IMP | ec3a36a6d255515df13563f13a6e8dda2e89765c | [
"MIT"
] | 23 | 2018-10-22T08:54:15.000Z | 2022-03-17T11:45:02.000Z | ISE.py | Wang-GY/IMP | ec3a36a6d255515df13563f13a6e8dda2e89765c | [
"MIT"
] | 1 | 2019-03-17T10:39:43.000Z | 2019-05-21T01:55:32.000Z | ISE.py | Wang-GY/IMP | ec3a36a6d255515df13563f13a6e8dda2e89765c | [
"MIT"
] | 4 | 2018-10-03T15:14:30.000Z | 2020-11-26T02:37:23.000Z | import numpy as np
import os
import argparse
import threading
import multiprocessing
import Queue
spd = None
def read_seed_info(path):
if os.path.exists(path):
try:
f = open(path, 'r')
txt = f.readlines()
seeds = list()
for line in txt:
seed... | 27.759146 | 117 | 0.553213 | 1,220 | 9,105 | 4.003279 | 0.171311 | 0.020475 | 0.042588 | 0.028665 | 0.304464 | 0.244062 | 0.227273 | 0.177314 | 0.13964 | 0.110565 | 0 | 0.01394 | 0.338166 | 9,105 | 327 | 118 | 27.844037 | 0.796548 | 0.059747 | 0 | 0.22 | 0 | 0.004 | 0.061863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1885ad2f920158be75ba0403e868fce0c4fcf3f4 | 436 | py | Python | simhash_app/admin.py | rwgeaston/django-simhash | 26477b95f89194342918baebab85b7d263f7a79b | [
"MIT"
] | 1 | 2018-07-31T22:12:14.000Z | 2018-07-31T22:12:14.000Z | simhash_app/admin.py | rwgeaston/django-simhash | 26477b95f89194342918baebab85b7d263f7a79b | [
"MIT"
] | null | null | null | simhash_app/admin.py | rwgeaston/django-simhash | 26477b95f89194342918baebab85b7d263f7a79b | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import SimHash
from .models import Permutation
@admin.register(SimHash)
class SimHashAdmin(admin.ModelAdmin):
list_display = (
'guid',
'source',
'method',
'hash',
'bits_differ',
)
@admin.register(Permutation)
class Permuta... | 18.166667 | 41 | 0.616972 | 42 | 436 | 6.285714 | 0.547619 | 0.075758 | 0.121212 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270642 | 436 | 23 | 42 | 18.956522 | 0.830189 | 0 | 0 | 0.210526 | 0 | 0 | 0.126147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18890cfcc903181edbbc28723cff7ceb03bb89e1 | 905 | py | Python | bookingapp/migrations/0001_initial.py | vetsinen/etalki | 1071c5db90bd4d70aecdd08b36749995be34d79d | [
"MIT"
] | null | null | null | bookingapp/migrations/0001_initial.py | vetsinen/etalki | 1071c5db90bd4d70aecdd08b36749995be34d79d | [
"MIT"
] | null | null | null | bookingapp/migrations/0001_initial.py | vetsinen/etalki | 1071c5db90bd4d70aecdd08b36749995be34d79d | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-29 13:25
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lesson',
fields=[
... | 34.807692 | 151 | 0.549171 | 101 | 905 | 4.861386 | 0.60396 | 0.044807 | 0.077393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095448 | 0.247514 | 905 | 25 | 152 | 36.2 | 0.625551 | 0.049724 | 0 | 0 | 1 | 0 | 0.101399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
188b98b2da3c1079ae4393db9c8b400146fbb455 | 355 | py | Python | 0x0F-python-object_relational_mapping/6-model_state.py | calypsobronte/holbertonschool-higher_level_programming | c39c060d8473976fa475d22fffba5cb4329c9965 | [
"MIT"
] | null | null | null | 0x0F-python-object_relational_mapping/6-model_state.py | calypsobronte/holbertonschool-higher_level_programming | c39c060d8473976fa475d22fffba5cb4329c9965 | [
"MIT"
] | null | null | null | 0x0F-python-object_relational_mapping/6-model_state.py | calypsobronte/holbertonschool-higher_level_programming | c39c060d8473976fa475d22fffba5cb4329c9965 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from sys import argv
from model_state import Base, State
from sqlalchemy import (create_engine)
if __name__ == "__main__":
engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'
.format(argv[1], argv[2], argv[3]),
pool_pre_ping=True)
... | 29.583333 | 63 | 0.611268 | 43 | 355 | 4.72093 | 0.674419 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.253521 | 355 | 11 | 64 | 32.272727 | 0.750943 | 0.047887 | 0 | 0 | 0 | 0 | 0.124629 | 0.10089 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
188c1cd59ccc866eea28173df6a3d6df732e905c | 970 | py | Python | Algorithms/Implementation/ServiceLane.py | gelaim/HackerRank | 8b0e51d064a390f6112d54166942db440c88b579 | [
"MIT"
] | null | null | null | Algorithms/Implementation/ServiceLane.py | gelaim/HackerRank | 8b0e51d064a390f6112d54166942db440c88b579 | [
"MIT"
] | null | null | null | Algorithms/Implementation/ServiceLane.py | gelaim/HackerRank | 8b0e51d064a390f6112d54166942db440c88b579 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'serviceLane' function below.
#
# The function is expected to return an INTEGER_ARRAY.
# The function accepts following parameters:
# 1. INTEGER n
# 2. 2D_INTEGER_ARRAY cases
#
def serviceLane(n, width, cases):
# Write you... | 19.4 | 62 | 0.626804 | 134 | 970 | 4.395522 | 0.485075 | 0.066214 | 0.091681 | 0.074703 | 0.088285 | 0.088285 | 0 | 0 | 0 | 0 | 0 | 0.011984 | 0.225773 | 970 | 49 | 63 | 19.795918 | 0.772304 | 0.220619 | 0 | 0 | 0 | 0 | 0.032172 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
188c2e34d5a23a7ff20eed6efb30b2249ef13e61 | 1,211 | py | Python | weathermail/models.py | daidaitaotao/weather-report | 49641cdabfb1b96e4d966b3a032624ec0ec82fb9 | [
"MIT"
] | null | null | null | weathermail/models.py | daidaitaotao/weather-report | 49641cdabfb1b96e4d966b3a032624ec0ec82fb9 | [
"MIT"
] | null | null | null | weathermail/models.py | daidaitaotao/weather-report | 49641cdabfb1b96e4d966b3a032624ec0ec82fb9 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class PopulousCity(models.Model):
name = models.CharField(max_length=100)
state = models.CharField(max_length=2)
class Meta:
ordering = ('name',)
class Subscription(models.Model):
created = models.DateTimeField(auto_now_ad... | 31.051282 | 81 | 0.696119 | 135 | 1,211 | 6.155556 | 0.392593 | 0.052948 | 0.086643 | 0.115523 | 0.22503 | 0.127557 | 0.127557 | 0.127557 | 0 | 0 | 0 | 0.010267 | 0.195706 | 1,211 | 38 | 82 | 31.868421 | 0.842916 | 0.019818 | 0 | 0.153846 | 0 | 0 | 0.06626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
188c8037ab081499dbb5da5f47ea853707f17aa6 | 1,322 | py | Python | mytravelblog/accounts/migrations/0001_initial.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | mytravelblog/accounts/migrations/0001_initial.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | mytravelblog/accounts/migrations/0001_initial.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-15 21:46
import cloudinary.models
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import mytravelblog.common.validators
class Migration(migrations.Migration):
initial = True
depen... | 38.882353 | 213 | 0.668684 | 145 | 1,322 | 5.944828 | 0.489655 | 0.063805 | 0.046404 | 0.051044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.213313 | 1,322 | 33 | 214 | 40.060606 | 0.803846 | 0.034039 | 0 | 0 | 1 | 0 | 0.144314 | 0.02902 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
189e4701e0cf1377da4beb33c0a32998c263b462 | 257 | py | Python | kafka-demo/kafka-python-demo/consumer.py | huaminglin/docker-demo | 41f7c3839cab55ff8a8b72e130269f49ce3bbd8a | [
"MIT"
] | null | null | null | kafka-demo/kafka-python-demo/consumer.py | huaminglin/docker-demo | 41f7c3839cab55ff8a8b72e130269f49ce3bbd8a | [
"MIT"
] | 1 | 2022-03-22T22:30:41.000Z | 2022-03-22T22:30:41.000Z | kafka-demo/kafka-python-demo/consumer.py | huaminglin/docker-demo | 41f7c3839cab55ff8a8b72e130269f49ce3bbd8a | [
"MIT"
] | null | null | null | from kafka import KafkaConsumer
consumer = KafkaConsumer('user-details', bootstrap_servers='127.0.0.1:9092', auto_offset_reset='earliest', group_id='test05')
for message in consumer:
# print(type(message))
# print(dir(message))
print(message)
| 28.555556 | 125 | 0.735409 | 34 | 257 | 5.441176 | 0.764706 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.128405 | 257 | 8 | 126 | 32.125 | 0.772321 | 0.155642 | 0 | 0 | 0 | 0 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18a806466def658f9b3c2b5d648485aba6e95ab3 | 1,544 | py | Python | qatrack/service_log/migrations/0007_servicelog.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 20 | 2021-03-11T18:37:32.000Z | 2022-03-23T19:38:07.000Z | qatrack/service_log/migrations/0007_servicelog.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 75 | 2021-02-12T02:37:33.000Z | 2022-03-29T20:56:16.000Z | qatrack/service_log/migrations/0007_servicelog.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2021-04-07T15:46:53.000Z | 2021-09-18T16:55:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-04-03 17:18
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import qatrack.service_log.models
class Migration(migrations.Migrati... | 44.114286 | 315 | 0.650259 | 175 | 1,544 | 5.554286 | 0.531429 | 0.032922 | 0.04321 | 0.067901 | 0.113169 | 0.113169 | 0.113169 | 0.113169 | 0.113169 | 0.113169 | 0 | 0.028712 | 0.210492 | 1,544 | 34 | 316 | 45.411765 | 0.768663 | 0.044041 | 0 | 0 | 1 | 0 | 0.213849 | 0.031908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18abf74f18cc5f7769dc3473ac1778254567aaf9 | 3,058 | py | Python | backend/forum/messaging/models.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 7 | 2016-09-20T11:49:49.000Z | 2017-06-24T23:51:56.000Z | backend/forum/messaging/models.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 17 | 2019-12-22T10:41:48.000Z | 2021-11-17T10:58:50.000Z | backend/forum/messaging/models.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 1 | 2016-09-20T11:50:57.000Z | 2016-09-20T11:50:57.000Z | from django.db.models.base import Model
from django.db.models.deletion import CASCADE
from django.db.models.fields import (
BooleanField, CharField, DateTimeField,
PositiveSmallIntegerField, TextField)
from django.db.models.fields.related import ForeignKey, ManyToManyField
from django.utils.translation import u... | 40.236842 | 79 | 0.707652 | 362 | 3,058 | 5.709945 | 0.287293 | 0.127721 | 0.055636 | 0.034833 | 0.351234 | 0.247702 | 0.247702 | 0.247702 | 0.186744 | 0.186744 | 0 | 0.002812 | 0.186069 | 3,058 | 75 | 80 | 40.773333 | 0.827642 | 0.055592 | 0 | 0.225806 | 0 | 0 | 0.188231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0.032258 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
18b354b545b75b830ffaba5fb7c7b3fda799ccaf | 450 | py | Python | ERation/shop/migrations/0004_auto_20200521_1123.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | ERation/shop/migrations/0004_auto_20200521_1123.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | ERation/shop/migrations/0004_auto_20200521_1123.py | mishelshaji/ERation | 0e755ae63ae2c9cc009e18b72425ac508670a1cf | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-21 05:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_stocks_stockupdates'),
]
operations = [
migrations.AlterField(
model_name='stocks',
name='quantity',
... | 23.684211 | 114 | 0.624444 | 50 | 450 | 5.52 | 0.78 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06006 | 0.26 | 450 | 18 | 115 | 25 | 0.768769 | 0.1 | 0 | 0 | 1 | 0 | 0.188586 | 0.059553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18be549fbd1400877d248760df4ed02e384a801b | 363 | py | Python | movies/migrations/0006_remove_bookingdetails_status.py | Mr-Ahuja/PegaHackathon | 5ad9fac1ff3ba874452be770904599f84f1654e4 | [
"MIT"
] | null | null | null | movies/migrations/0006_remove_bookingdetails_status.py | Mr-Ahuja/PegaHackathon | 5ad9fac1ff3ba874452be770904599f84f1654e4 | [
"MIT"
] | null | null | null | movies/migrations/0006_remove_bookingdetails_status.py | Mr-Ahuja/PegaHackathon | 5ad9fac1ff3ba874452be770904599f84f1654e4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-11-26 08:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('movies', '0005_bookingdetails_healthprovider'),
]
operations = [
migrations.RemoveField(
model_name='bookingdetails',
... | 20.166667 | 58 | 0.584022 | 34 | 363 | 6.147059 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076305 | 0.31405 | 363 | 17 | 59 | 21.352941 | 0.763052 | 0.123967 | 0 | 0 | 1 | 0 | 0.200669 | 0.113712 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18c484f104206016e5426d3b5d67af88f71d3817 | 780 | py | Python | start.py | tonylukasavage/retroverse | 2d2baa013556c8f341e076f3ce552155da8e8227 | [
"MIT"
] | null | null | null | start.py | tonylukasavage/retroverse | 2d2baa013556c8f341e076f3ce552155da8e8227 | [
"MIT"
] | null | null | null | start.py | tonylukasavage/retroverse | 2d2baa013556c8f341e076f3ce552155da8e8227 | [
"MIT"
] | null | null | null | from os import getcwd, system
from os.path import join
from romgen.generator import generate
from romgen.utils import mkdirp
# have to use 2.5.2, but I can't remember why, something was broken in a later version
BIZHAWK_VERSION = "2.5.2"
ROM_DEFAULT = "cv2-retroverse.nes"
# define key paths
cwd = getcwd()
bin = join(... | 31.2 | 86 | 0.716667 | 122 | 780 | 4.508197 | 0.540984 | 0.050909 | 0.010909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011958 | 0.142308 | 780 | 24 | 87 | 32.5 | 0.810164 | 0.266667 | 0 | 0 | 1 | 0 | 0.178131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18cb89da5bcd2719b5462f2b6d8f2cdecf122367 | 1,690 | py | Python | neo/Prompt/Commands/tests/test_bootstrap.py | simplitech/neo-python | fe90f62e123d720d4281c79af0598d9df9e776fb | [
"MIT"
] | 1 | 2019-06-11T06:03:48.000Z | 2019-06-11T06:03:48.000Z | neo/Prompt/Commands/tests/test_bootstrap.py | simplitech/neo-python | fe90f62e123d720d4281c79af0598d9df9e776fb | [
"MIT"
] | null | null | null | neo/Prompt/Commands/tests/test_bootstrap.py | simplitech/neo-python | fe90f62e123d720d4281c79af0598d9df9e776fb | [
"MIT"
] | 1 | 2019-04-15T23:02:44.000Z | 2019-04-15T23:02:44.000Z | from unittest import TestCase
from neo.Prompt.Commands.Bootstrap import BootstrapBlockchainFile
import os
import shutil
class BootstrapTestCase(TestCase):
bootstrap_unittest_file_locations = 'https://s3.us-east-2.amazonaws.com/cityofzion/bootstrap_unittest_latest'
bootstrap_target_dir = './fixtures/bootstrap... | 38.409091 | 140 | 0.689941 | 190 | 1,690 | 5.857895 | 0.389474 | 0.116801 | 0.145553 | 0.138365 | 0.48248 | 0.48248 | 0.48248 | 0.48248 | 0.48248 | 0.354897 | 0 | 0.006844 | 0.221893 | 1,690 | 43 | 141 | 39.302326 | 0.839544 | 0.031361 | 0 | 0.3 | 0 | 0 | 0.158507 | 0.0153 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.166667 | false | 0.066667 | 0.133333 | 0 | 0.433333 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
18d195919dcac691c55f9d95b792506f7c6d251c | 53,564 | py | Python | src/scaffoldmaker/meshtypes/meshtype_3d_cecum1.py | elias-soltani/scaffoldmaker | 34d2bd4ddf4da2f67dd65d2cd82f6d1a741bf2da | [
"Apache-2.0"
] | 1 | 2020-09-21T03:44:25.000Z | 2020-09-21T03:44:25.000Z | src/scaffoldmaker/meshtypes/meshtype_3d_cecum1.py | elias-soltani/scaffoldmaker | 34d2bd4ddf4da2f67dd65d2cd82f6d1a741bf2da | [
"Apache-2.0"
] | null | null | null | src/scaffoldmaker/meshtypes/meshtype_3d_cecum1.py | elias-soltani/scaffoldmaker | 34d2bd4ddf4da2f67dd65d2cd82f6d1a741bf2da | [
"Apache-2.0"
] | null | null | null | """
Generates a 3-D cecum mesh along the central line, with variable
numbers of elements around, along and through wall, with
variable radius and thickness along.
"""
import copy
import math
from scaffoldmaker.annotation.annotationgroup import AnnotationGroup
from scaffoldmaker.annotation.colon_terms import get_colon_... | 51.208413 | 181 | 0.638134 | 4,681 | 53,564 | 7.26896 | 0.138859 | 0.006818 | 0.006348 | 0.007053 | 0.350791 | 0.274173 | 0.223682 | 0.202051 | 0.182713 | 0.144448 | 0 | 0.032742 | 0.281551 | 53,564 | 1,045 | 182 | 51.257416 | 0.851441 | 0.096389 | 0 | 0.255901 | 1 | 0 | 0.093488 | 0.001376 | 0 | 0 | 0 | 0 | 0.006211 | 1 | 0.018634 | false | 0 | 0.02236 | 0.003727 | 0.067081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.