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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27cc87579130596a5f982e491914c12914cc402e | 81 | py | Python | infinityMusicBot/services/downloaders/__init__.py | INFINITY00800/infinitymusicbot | 84c878103a1098147d505ad57f47af4233fa6bb8 | [
"BSD-3-Clause"
] | 3 | 2021-07-22T09:33:07.000Z | 2021-08-31T11:40:30.000Z | infinityMusicBot/services/downloaders/__init__.py | INFINITY00800/infinitymusicbot | 84c878103a1098147d505ad57f47af4233fa6bb8 | [
"BSD-3-Clause"
] | null | null | null | infinityMusicBot/services/downloaders/__init__.py | INFINITY00800/infinitymusicbot | 84c878103a1098147d505ad57f47af4233fa6bb8 | [
"BSD-3-Clause"
] | null | null | null | from infinityMusicBot.services.downloaders import youtube
__all__ = ["youtube"]
| 20.25 | 57 | 0.814815 | 8 | 81 | 7.75 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 81 | 3 | 58 | 27 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
27cf0ebe2e30c9108d6faaf1076c478f6a3656d5 | 17,292 | py | Python | learning/clustering/lsh_tree_test.py | dibakch/differential-privacy | ae9c6b6d5b7e772837ae336d1b3092683481ec16 | [
"Apache-2.0"
] | 2,550 | 2019-09-04T13:13:24.000Z | 2022-03-31T16:05:50.000Z | learning/clustering/lsh_tree_test.py | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | 90 | 2019-09-10T15:37:10.000Z | 2022-03-28T12:55:03.000Z | learning/clustering/lsh_tree_test.py | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | 324 | 2019-09-05T11:52:06.000Z | 2022-03-31T03:30:26.000Z | # Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 38.426667 | 80 | 0.655968 | 2,329 | 17,292 | 4.568055 | 0.110348 | 0.040793 | 0.039101 | 0.057148 | 0.767271 | 0.743397 | 0.707773 | 0.689069 | 0.673372 | 0.657957 | 0 | 0.03613 | 0.244506 | 17,292 | 449 | 81 | 38.512249 | 0.778246 | 0.176093 | 0 | 0.658462 | 0 | 0 | 0.004819 | 0 | 0 | 0 | 0 | 0 | 0.113846 | 1 | 0.073846 | false | 0 | 0.027692 | 0 | 0.129231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27d127c0f0c85b43548124299fcaf06f62f50791 | 265 | py | Python | src/app/shopping_cart/models/shopping_cart_item.py | daniellima/desafio-lojaintegrada | 3cb17f4ec9769472e111adfe6d550e668518aabd | [
"MIT"
] | null | null | null | src/app/shopping_cart/models/shopping_cart_item.py | daniellima/desafio-lojaintegrada | 3cb17f4ec9769472e111adfe6d550e668518aabd | [
"MIT"
] | null | null | null | src/app/shopping_cart/models/shopping_cart_item.py | daniellima/desafio-lojaintegrada | 3cb17f4ec9769472e111adfe6d550e668518aabd | [
"MIT"
] | null | null | null | class ShoppingCartItem:
def __init__(self, id, name, price, quantity):
self.id = id
self.name = name
self.price = price
self.quantity = quantity
@property
def total_price(self):
return self.price * self.quantity | 24.090909 | 50 | 0.611321 | 31 | 265 | 5.064516 | 0.387097 | 0.171975 | 0.216561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301887 | 265 | 11 | 51 | 24.090909 | 0.848649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
27d7b9398c07d22903a3dc5cf67b52a318be7203 | 44,298 | py | Python | analyze_foldamers/parameters/angle_distributions.py | shirtsgroup/analyze_foldamers | 17a7b948d1d0d4fbfb1d84d58753289404fb99a9 | [
"MIT"
] | null | null | null | analyze_foldamers/parameters/angle_distributions.py | shirtsgroup/analyze_foldamers | 17a7b948d1d0d4fbfb1d84d58753289404fb99a9 | [
"MIT"
] | 33 | 2020-08-05T23:00:56.000Z | 2022-03-21T22:37:03.000Z | analyze_foldamers/parameters/angle_distributions.py | shirtsgroup/analyze_foldamers | 17a7b948d1d0d4fbfb1d84d58753289404fb99a9 | [
"MIT"
] | null | null | null | import os
import numpy as np
import mdtraj as md
from simtk import unit
from cg_openmm.cg_model.cgmodel import CGModel
from analyze_foldamers.utilities.plot import plot_distribution
from analyze_foldamers.parameters.bond_distributions import *
import matplotlib
import matplotlib.pyplot as plt
import matplotlib... | 39.167109 | 140 | 0.581922 | 5,781 | 44,298 | 4.204117 | 0.075247 | 0.02765 | 0.017281 | 0.011768 | 0.799539 | 0.756707 | 0.707332 | 0.680094 | 0.651745 | 0.621914 | 0 | 0.017695 | 0.327667 | 44,298 | 1,130 | 141 | 39.20177 | 0.798341 | 0.260892 | 0 | 0.556326 | 0 | 0 | 0.035111 | 0.015558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015598 | false | 0 | 0.020797 | 0 | 0.051993 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27e9e714cffe99cb6be45c29744ab5043b823c28 | 3,343 | py | Python | app/models.py | Anitha987/Blog-web | 354a886892553277787a4abc1e5f68a57059144c | [
"Unlicense"
] | null | null | null | app/models.py | Anitha987/Blog-web | 354a886892553277787a4abc1e5f68a57059144c | [
"Unlicense"
] | null | null | null | app/models.py | Anitha987/Blog-web | 354a886892553277787a4abc1e5f68a57059144c | [
"Unlicense"
] | null | null | null | from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from .import db,login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class Quote:
'''
Quote class to define Quote Objects
'''... | 27.628099 | 81 | 0.715226 | 464 | 3,343 | 4.971983 | 0.200431 | 0.083225 | 0.104031 | 0.083225 | 0.405722 | 0.316428 | 0.263979 | 0.228002 | 0.170785 | 0.170785 | 0 | 0.010862 | 0.146276 | 3,343 | 120 | 82 | 27.858333 | 0.797477 | 0.021538 | 0 | 0.258427 | 1 | 0 | 0.085635 | 0.006446 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168539 | false | 0.11236 | 0.044944 | 0.067416 | 0.775281 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7e03e6ceed24a7e34e49ae1891b0a9c41609eac3 | 196 | py | Python | Python/december cls ex4.py | thebiebs/python-practise-exercises | 28db498f35ec6f9bdd437f54c91990027f4b9436 | [
"MIT"
] | null | null | null | Python/december cls ex4.py | thebiebs/python-practise-exercises | 28db498f35ec6f9bdd437f54c91990027f4b9436 | [
"MIT"
] | null | null | null | Python/december cls ex4.py | thebiebs/python-practise-exercises | 28db498f35ec6f9bdd437f54c91990027f4b9436 | [
"MIT"
] | null | null | null | a = [3, 8, 5, 1, 8, 9, 4, 9, 6, 4, 3, 7]
b = list (set (a))
for i in range (len(b)):
for j in range (i+1,len (b)):
if b[i]>b[j]:
b[i] , b[j] = b[j], b[i]
print (b) | 28 | 42 | 0.377551 | 46 | 196 | 1.608696 | 0.434783 | 0.081081 | 0.121622 | 0.108108 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104839 | 0.367347 | 196 | 7 | 43 | 28 | 0.491935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd7ce0569f9a5ed0cc8230a24dcc7c7d0e559233 | 6,545 | py | Python | examples/get_albums.py | leerssej/freebase-python | a8a5ebfd56a11f6eb6e5a6e14a5429aa85a49727 | [
"BSD-2-Clause"
] | 1 | 2016-12-08T12:33:36.000Z | 2016-12-08T12:33:36.000Z | examples/get_albums.py | yuvadm/freebase-python | e1d4ab54c0b0816b87c3f9727100db37288d6818 | [
"BSD-2-Clause"
] | null | null | null | examples/get_albums.py | yuvadm/freebase-python | e1d4ab54c0b0816b87c3f9727100db37288d6818 | [
"BSD-2-Clause"
] | 2 | 2016-02-29T22:56:16.000Z | 2021-01-08T04:23:45.000Z | #!/usr/bin/python
# ========================================================================
# Copyright (c) 2007, Metaweb Technologies, 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:
# ... | 43.344371 | 77 | 0.686937 | 1,007 | 6,545 | 4.461768 | 0.304866 | 0.244825 | 0.043401 | 0.076786 | 0.30069 | 0.204986 | 0.140886 | 0.049855 | 0.049855 | 0.049855 | 0 | 0.057554 | 0.192972 | 6,545 | 150 | 78 | 43.633333 | 0.793071 | 0.897479 | 0 | 0 | 0 | 0 | 0.226937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd8cfb33c012f46d40d45da73acbed8d2676f8e6 | 399 | py | Python | Diena_9_sets_tuples/d9_17_u3.py | MarisKuz/Python-RTU | 12261d06dc81fa0d98190ca0eb5133d43d517070 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_9_sets_tuples/d9_17_u3.py | MarisKuz/Python-RTU | 12261d06dc81fa0d98190ca0eb5133d43d517070 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_9_sets_tuples/d9_17_u3.py | MarisKuz/Python-RTU | 12261d06dc81fa0d98190ca0eb5133d43d517070 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | # Atstarpes ignorējam,un uzskatam ka lielais burts ir tikpat derīgs kā mazais, t.i. šeit A un a -> a
def is_pangram(mytext, a="abcdefghijklmnopqrstuvwxyz"):
return set(a) <= set(mytext.lower())
# mytext, a = set(mytext.lower()), set(a)
# return mytext >= a # or a <= mytext
print(is_pangram("The qui... | 39.9 | 100 | 0.684211 | 62 | 399 | 4.354839 | 0.596774 | 0.1 | 0.074074 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185464 | 399 | 10 | 101 | 39.9 | 0.830769 | 0.433584 | 0 | 0 | 0 | 0 | 0.391892 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
fd9504c337369332adc3680dd5055af225d68881 | 188 | py | Python | setup.py | recursive-automata/graphspectra | 6467377016b217a104feaefcbb8c2cfa9cb865c6 | [
"MIT"
] | null | null | null | setup.py | recursive-automata/graphspectra | 6467377016b217a104feaefcbb8c2cfa9cb865c6 | [
"MIT"
] | 5 | 2020-03-24T16:14:04.000Z | 2021-06-01T22:49:22.000Z | setup.py | recursive-automata/graphspectra | 6467377016b217a104feaefcbb8c2cfa9cb865c6 | [
"MIT"
] | 1 | 2021-01-16T21:45:53.000Z | 2021-01-16T21:45:53.000Z | from distutils.core import setup
setup(
name='Graph Spectra',
version='0.0.0',
packages=['graphspectra',],
license='MIT',
long_description=open('README.md').read(),
)
| 18.8 | 46 | 0.643617 | 23 | 188 | 5.217391 | 0.869565 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.175532 | 188 | 9 | 47 | 20.888889 | 0.754839 | 0 | 0 | 0 | 0 | 0 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd9ac2b41cab163d016c425520645de77b3d1b96 | 396 | py | Python | src/functions.py | rafaelcmm/py-deploy-server | 2af45f5b71636e1ca19dcf72cc724906693fd051 | [
"MIT"
] | 1 | 2021-03-03T16:15:55.000Z | 2021-03-03T16:15:55.000Z | src/functions.py | rafaelcmm/py-deploy-server | 2af45f5b71636e1ca19dcf72cc724906693fd051 | [
"MIT"
] | null | null | null | src/functions.py | rafaelcmm/py-deploy-server | 2af45f5b71636e1ca19dcf72cc724906693fd051 | [
"MIT"
] | null | null | null | import time
import datetime
import BaseHTTPServer, SimpleHTTPServer
def start_server( i, port ):
httpd = BaseHTTPServer.HTTPServer(('localhost', int(port)), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.serve_forever()
def get_time_diff_to_now( start_time ):
exec_time_in_seconds = time.time() - start_... | 33 | 106 | 0.770202 | 51 | 396 | 5.705882 | 0.588235 | 0.061856 | 0.068729 | 0.116838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 396 | 12 | 107 | 33 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0.042821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fdb48a8fa17a5c9734182e2be38518777d5e09f3 | 178 | py | Python | Course I/Алгоритмы Python/Part1/лекции/jupyter/lec06_modules/Graphics/Bmp.py | GeorgiyDemo/FA | 641a29d088904302f5f2164c9b3e1f1c813849ec | [
"WTFPL"
] | 27 | 2019-08-18T20:54:27.000Z | 2022-02-22T02:39:45.000Z | Course I/Алгоритмы Python/Part1/лекции/jupyter/lec06_modules/Graphics/Bmp.py | GeorgiyDemo/FA | 641a29d088904302f5f2164c9b3e1f1c813849ec | [
"WTFPL"
] | 217 | 2019-09-22T14:43:25.000Z | 2022-03-30T13:49:18.000Z | Course I/Алгоритмы Python/Part1/лекции/jupyter/lec06_modules/Graphics/Bmp.py | GeorgiyDemo/FA | 641a29d088904302f5f2164c9b3e1f1c813849ec | [
"WTFPL"
] | 42 | 2019-09-18T11:36:28.000Z | 2022-03-19T18:43:00.000Z | def g_load(file):
print("file {} loaded as BMP v2".format(file))
return None
if __name__ == "__main__":
print("Test Bmp.py")
print(g_load("test.bmp"))
| 19.777778 | 51 | 0.589888 | 26 | 178 | 3.653846 | 0.653846 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.247191 | 178 | 8 | 52 | 22.25 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0.305882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fddc51164f218680c487cfbaa04bffaa07ac864f | 339 | py | Python | Python/simple_Calculator.py | baroood/Hacktoberfest-2k17 | 87383df4bf705358866a5a4120dd678a3f2acd3e | [
"MIT"
] | 28 | 2017-10-04T19:42:26.000Z | 2021-03-26T04:00:48.000Z | Python/simple_Calculator.py | baroood/Hacktoberfest-2k17 | 87383df4bf705358866a5a4120dd678a3f2acd3e | [
"MIT"
] | 375 | 2017-09-28T02:58:37.000Z | 2019-10-31T09:10:38.000Z | Python/simple_Calculator.py | baroood/Hacktoberfest-2k17 | 87383df4bf705358866a5a4120dd678a3f2acd3e | [
"MIT"
] | 519 | 2017-09-28T02:40:29.000Z | 2021-02-15T08:29:17.000Z | print("enter the two number")
n1,n2=map(int,input().split())
print("press + for add")
print("press - for subb")
print("press * for mul")
print("press / for div")
e=input()
if e == "+":
print(n1+n2)
elif e == "-":
print(n1-n2)
elif e == "*":
print(n1*n2)
elif e == "/":
print(n1/n2)
else:
print("you e... | 18.833333 | 34 | 0.572271 | 55 | 339 | 3.527273 | 0.454545 | 0.103093 | 0.268041 | 0.206186 | 0.268041 | 0.268041 | 0.268041 | 0.268041 | 0.268041 | 0.268041 | 0 | 0.036765 | 0.19764 | 339 | 17 | 35 | 19.941176 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0.312684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.588235 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fde726d33154e3e42801b334dfebcbb56b6ea720 | 3,017 | py | Python | tick/hawkes/simulation/tests/hawkes_kernel_exp_test.py | sumau/tick | 1b56924a35463e12f7775bc0aec182364f26f2c6 | [
"BSD-3-Clause"
] | 411 | 2017-03-30T15:22:05.000Z | 2022-03-27T01:58:34.000Z | tick/hawkes/simulation/tests/hawkes_kernel_exp_test.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 345 | 2017-04-13T14:53:20.000Z | 2022-03-26T00:46:22.000Z | tick/hawkes/simulation/tests/hawkes_kernel_exp_test.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 102 | 2017-04-25T11:47:53.000Z | 2022-02-15T11:45:49.000Z | # License: BSD 3 clause
import unittest
from tick.hawkes import HawkesKernelExp
class Test(unittest.TestCase):
def setUp(self):
self.decay = 2
self.intensity = 3
self.hawkes_kernel_exp = HawkesKernelExp(self.intensity, self.decay)
def test_HawkesKernelExp_decay(self):
"""...... | 31.427083 | 76 | 0.632748 | 323 | 3,017 | 5.613003 | 0.120743 | 0.178709 | 0.223387 | 0.215113 | 0.729178 | 0.694981 | 0.657474 | 0.657474 | 0.657474 | 0.657474 | 0 | 0.019652 | 0.257872 | 3,017 | 95 | 77 | 31.757895 | 0.790085 | 0.093802 | 0 | 0.53125 | 0 | 0 | 0.036189 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.09375 | false | 0 | 0.03125 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fdf51004c975cf1630ab8e9ee19c6df93e74fe1a | 1,164 | py | Python | tests/test_event_district_name_parser.py | tervay/the-blue-alliance | e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8 | [
"MIT"
] | 266 | 2015-01-04T00:10:48.000Z | 2022-03-28T18:42:05.000Z | tests/test_event_district_name_parser.py | gregmarra/the-blue-alliance | 5bedaf5c80b4623984760d3da3289640639112f9 | [
"MIT"
] | 2,673 | 2015-01-01T20:14:33.000Z | 2022-03-31T18:17:16.000Z | tests/test_event_district_name_parser.py | gregmarra/the-blue-alliance | 5bedaf5c80b4623984760d3da3289640639112f9 | [
"MIT"
] | 230 | 2015-01-04T00:10:48.000Z | 2022-03-26T18:12:04.000Z | import unittest2
from consts.district_type import DistrictType
from helpers.event_helper import EventHelper
class TestEventDistrictNameParser(unittest2.TestCase):
def test_event_parse_district_name(self):
"""
A bunch of tests from various years
"""
self.assertEqual(EventHelper.par... | 55.428571 | 108 | 0.780069 | 110 | 1,164 | 8.136364 | 0.4 | 0.150838 | 0.261453 | 0.432402 | 0.217877 | 0.217877 | 0.217877 | 0 | 0 | 0 | 0 | 0.001976 | 0.130584 | 1,164 | 20 | 109 | 58.2 | 0.882411 | 0.030069 | 0 | 0 | 0 | 0 | 0.097738 | 0 | 0 | 0 | 0 | 0 | 0.642857 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fdf524b6ebf6b8b5952fbae8a624716d0962d3b3 | 139 | py | Python | collections/namedtuple.py | Brunokrk/Learning-Python | 36a3b1c4782dbb21af189760a451fd2e9c083bb6 | [
"MIT"
] | null | null | null | collections/namedtuple.py | Brunokrk/Learning-Python | 36a3b1c4782dbb21af189760a451fd2e9c083bb6 | [
"MIT"
] | null | null | null | collections/namedtuple.py | Brunokrk/Learning-Python | 36a3b1c4782dbb21af189760a451fd2e9c083bb6 | [
"MIT"
] | null | null | null | from collections import namedtuple
from typing import Dict, List
Point = namedtuple('Point', 'x, y')
pt = Point(1, -4)
print(List[Point]) | 19.857143 | 35 | 0.719424 | 21 | 139 | 4.761905 | 0.666667 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.143885 | 139 | 7 | 36 | 19.857143 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8bf1bbb5c5fb857624ed28b896f0af4e33744581 | 1,234 | py | Python | miepy/particles/sphere.py | johnaparker/MiePy | 5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be | [
"MIT"
] | 3 | 2016-05-30T06:45:29.000Z | 2017-08-30T19:58:56.000Z | miepy/particles/sphere.py | johnaparker/MiePy | 5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be | [
"MIT"
] | null | null | null | miepy/particles/sphere.py | johnaparker/MiePy | 5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be | [
"MIT"
] | 5 | 2016-12-13T02:05:31.000Z | 2018-03-23T07:11:30.000Z | import miepy
from .particle_base import particle
class sphere(particle):
def __init__(self, position, radius, material):
"""A sphere object
Arguments:
position[3] x,y,z position of particle
radius sphere radius
material particle material (miepy.mat... | 30.85 | 111 | 0.641815 | 143 | 1,234 | 5.300699 | 0.328671 | 0.087071 | 0.036939 | 0.065963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002169 | 0.252836 | 1,234 | 39 | 112 | 31.641026 | 0.819957 | 0.132901 | 0 | 0 | 0 | 0 | 0.120235 | 0.025415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.041667 | 0.083333 | 0.125 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e3134793f0df6cd881cbd1cd94c1e38c3f462fb7 | 201 | py | Python | hoist/__init__.py | 2231puppy/Hoist | a751e125102e4de20daf975866ac8479bf341e95 | [
"MIT"
] | null | null | null | hoist/__init__.py | 2231puppy/Hoist | a751e125102e4de20daf975866ac8479bf341e95 | [
"MIT"
] | null | null | null | hoist/__init__.py | 2231puppy/Hoist | a751e125102e4de20daf975866ac8479bf341e95 | [
"MIT"
] | null | null | null | from .client import Client
from .flask_wrapper import FlaskWrapper
from .external_server import ExternalServer
from .server import HoistServer
from .get_ip import get_ip
from .get_host import get_host
| 28.714286 | 43 | 0.850746 | 30 | 201 | 5.5 | 0.433333 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 201 | 6 | 44 | 33.5 | 0.932203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e318871f9110f26342eed67604ef6fd349c14c89 | 64 | py | Python | modules/persons/application/update/__init__.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T23:41:08.000Z | 2021-03-16T22:05:40.000Z | modules/persons/application/update/__init__.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 1 | 2020-10-02T02:59:38.000Z | 2020-10-02T02:59:38.000Z | modules/persons/application/update/__init__.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 2 | 2021-03-16T22:05:43.000Z | 2021-04-30T06:35:25.000Z | from .update_user import UpdateUser
__all__ = ('UpdateUser', )
| 16 | 35 | 0.75 | 7 | 64 | 6.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 3 | 36 | 21.333333 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e3238200ba2c5d3c90d39a5455e78fc937cca226 | 189 | py | Python | src/chapter2/exercise3.py | ManuelA1000/BCS-2021 | 0bdf8a165b6e9e79c33257919a44b4be3cd49a57 | [
"MIT"
] | null | null | null | src/chapter2/exercise3.py | ManuelA1000/BCS-2021 | 0bdf8a165b6e9e79c33257919a44b4be3cd49a57 | [
"MIT"
] | null | null | null | src/chapter2/exercise3.py | ManuelA1000/BCS-2021 | 0bdf8a165b6e9e79c33257919a44b4be3cd49a57 | [
"MIT"
] | null | null | null | # Program to calculate the gross pay of a worker
hours_worked = input("Enter the hours worked:\n")
rate = input("Enter the payment rate:\n ")
pay = int(hours_worked)*float(rate)
print(pay)
| 31.5 | 49 | 0.73545 | 32 | 189 | 4.28125 | 0.59375 | 0.240876 | 0.189781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 189 | 5 | 50 | 37.8 | 0.845679 | 0.243386 | 0 | 0 | 0 | 0 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e3267546da7344a2bfce0eefac9818dabbcbe263 | 984 | py | Python | blog/models.py | pnwinkler/Django-blog | a5f459aa3a654a910aa301da12c4e69552f95ca8 | [
"MIT"
] | null | null | null | blog/models.py | pnwinkler/Django-blog | a5f459aa3a654a910aa301da12c4e69552f95ca8 | [
"MIT"
] | null | null | null | blog/models.py | pnwinkler/Django-blog | a5f459aa3a654a910aa301da12c4e69552f95ca8 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# each class will be its own table in db
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
# we don't use auto_add option... | 39.36 | 79 | 0.707317 | 147 | 984 | 4.666667 | 0.639456 | 0.058309 | 0.046647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.191057 | 984 | 24 | 80 | 41 | 0.856784 | 0.438008 | 0 | 0 | 0 | 0 | 0.023853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.153846 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
e33ecd179bc16f7d47ae290d0833aa2f9018b0ae | 2,841 | py | Python | backend.py | AbRamazani/mahab-linux | 2deada37d9885ded2eef3eb665d21eb3a38e3cf3 | [
"MIT"
] | 3 | 2022-03-01T13:29:11.000Z | 2022-03-01T19:15:22.000Z | backend.py | esmaeelE/mahab-linux | 2deada37d9885ded2eef3eb665d21eb3a38e3cf3 | [
"MIT"
] | null | null | null | backend.py | esmaeelE/mahab-linux | 2deada37d9885ded2eef3eb665d21eb3a38e3cf3 | [
"MIT"
] | 1 | 2022-03-06T14:22:53.000Z | 2022-03-06T14:22:53.000Z | import sqlite3
path = "Completed/mahab.db"
def connect_user():
conn = sqlite3.connect(path)
cor = conn.cursor()
cor.execute(
'CREATE TABLE IF NOT EXISTS table_user (first_name text,last_name text,user_name text,password text,image text DEFAULT icon, login text, count_see text )'
)
... | 27.852941 | 181 | 0.620908 | 362 | 2,841 | 4.68232 | 0.157459 | 0.058407 | 0.095575 | 0.116814 | 0.731563 | 0.726844 | 0.689086 | 0.646608 | 0.646608 | 0.620059 | 0 | 0.00469 | 0.24956 | 2,841 | 101 | 182 | 28.128713 | 0.790338 | 0 | 0 | 0.554217 | 0 | 0.024096 | 0.254745 | 0.012774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0.060241 | 0.012048 | 0 | 0.144578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8b4ed5ca04d8c948e8db2639a38f34549a15e7f9 | 121 | py | Python | titanfp/arithmetic/__init__.py | billzorn/fpunreal | 5ba896298f2acc53652112ea4426508483d85a04 | [
"MIT"
] | 4 | 2019-02-21T06:15:26.000Z | 2020-09-08T21:06:41.000Z | titanfp/arithmetic/__init__.py | billzorn/fpunreal | 5ba896298f2acc53652112ea4426508483d85a04 | [
"MIT"
] | 3 | 2019-02-22T02:21:09.000Z | 2021-08-31T20:25:23.000Z | titanfp/arithmetic/__init__.py | billzorn/fpunreal | 5ba896298f2acc53652112ea4426508483d85a04 | [
"MIT"
] | null | null | null | import os
mypath = os.path.abspath(os.path.dirname(__file__))
#print('hi from module arithmetic @ {:s}'.format(mypath))
| 24.2 | 57 | 0.727273 | 18 | 121 | 4.666667 | 0.777778 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 121 | 4 | 58 | 30.25 | 0.770642 | 0.46281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8b51ae08e8f30713fc992cf4fb1f6236975331fc | 504 | py | Python | S4/S4 Library/simulation/sims/party.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/sims/party.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/sims/party.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from interactions import ParticipantType
from sims4.tuning.tunable import TunableList
from statistics.statistic_ops import TunableStatisticChange
class Party:
RALLY_FALSE_ADS = TunableList(description=' \n A list of false advertisement for rallyable interactions. Use this\n tunable to entice Sims to ... | 72 | 343 | 0.781746 | 58 | 504 | 6.724138 | 0.689655 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002347 | 0.154762 | 504 | 6 | 344 | 84 | 0.913146 | 0 | 0 | 0 | 0 | 0.2 | 0.418651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8b678c634de5fa481035f4883d8f263fde9703a9 | 3,295 | py | Python | src/backend/config.py | logyball/raspberry-pi-vacation-planner | dc53ce34b8df696b97d43d8b2137a38c05f2b53d | [
"MIT"
] | 1 | 2020-01-16T04:23:07.000Z | 2020-01-16T04:23:07.000Z | src/backend/config.py | loganballard/raspberry-pi-vacation-planner | dc53ce34b8df696b97d43d8b2137a38c05f2b53d | [
"MIT"
] | 1 | 2021-06-02T00:48:46.000Z | 2021-06-02T00:48:46.000Z | src/backend/config.py | logyball/raspberry-pi-vacation-planner | dc53ce34b8df696b97d43d8b2137a38c05f2b53d | [
"MIT"
] | null | null | null | from yaml import load, FullLoader
from functools import lru_cache
from os import sep, getcwd
class ConfigFunctions(object):
conf_file_path: str = None
secrets_file_path: str = None
cwd: str = None
def __init__(self, test_environ: bool = False):
self.cwd = getcwd()
self.conf_file_path ... | 35.815217 | 151 | 0.655235 | 438 | 3,295 | 4.627854 | 0.189498 | 0.056241 | 0.048347 | 0.058707 | 0.461273 | 0.432166 | 0.331031 | 0.26591 | 0.235323 | 0.196843 | 0 | 0.003456 | 0.209712 | 3,295 | 91 | 152 | 36.208791 | 0.774962 | 0.014871 | 0 | 0.119403 | 0 | 0 | 0.088635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298507 | false | 0.014925 | 0.044776 | 0.119403 | 0.686567 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8b889c0d438ab214a9420c8db96e36cac491bb7f | 3,883 | py | Python | tests/defxmlschema/test_chapter04.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/defxmlschema/test_chapter04.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | tests/defxmlschema/test_chapter04.py | nimish/xsdata | 7afe2781b66982428cc1731f53c065086acd35c1 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from click.testing import CliRunner
from tests.conftest import load_class
from tests.conftest import validate_bindings
from xsdata import cli
os.chdir(Path(__file__).parent.parent.parent)
def test_integration():
schema = Path("tests/fixtures/defxmlschema/chapter04/chapter04.... | 28.762963 | 72 | 0.710791 | 406 | 3,883 | 6.748768 | 0.12069 | 0.113869 | 0.218978 | 0.29781 | 0.786131 | 0.625547 | 0.625547 | 0.625547 | 0.625547 | 0.604745 | 0 | 0.049736 | 0.171517 | 3,883 | 134 | 73 | 28.977612 | 0.801989 | 0 | 0 | 0.634409 | 0 | 0 | 0.309554 | 0.280453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.064516 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b97c59a0523b718057641a5d3977d67a48fb7a1 | 18,401 | py | Python | final_position_perturbation/generate_solver_soln.py | talsperre/task-perturbation-argmin | 32858fb1dc817da8e28f8d738b01d296efb67c3c | [
"MIT"
] | null | null | null | final_position_perturbation/generate_solver_soln.py | talsperre/task-perturbation-argmin | 32858fb1dc817da8e28f8d738b01d296efb67c3c | [
"MIT"
] | null | null | null | final_position_perturbation/generate_solver_soln.py | talsperre/task-perturbation-argmin | 32858fb1dc817da8e28f8d738b01d296efb67c3c | [
"MIT"
] | null | null | null | import os
import time
import json
import autograd
import argparse
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from copy import deepcopy
from scipy import optimize
from tqdm.notebook import tqdm
from transforms3d import euler
from autograd import grad, jacobian
from mpl_toolkits.mplot3d import... | 82.887387 | 1,232 | 0.595565 | 4,431 | 18,401 | 2.215076 | 0.05123 | 0.175242 | 0.21029 | 0.064901 | 0.732043 | 0.691187 | 0.680183 | 0.672134 | 0.624045 | 0.608355 | 0 | 0.093449 | 0.169556 | 18,401 | 221 | 1,233 | 83.262443 | 0.548852 | 0.012662 | 0 | 0.179191 | 0 | 0 | 0.024752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023121 | false | 0 | 0.104046 | 0 | 0.150289 | 0.052023 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bb34711325850bceb50eb90e489a61bf3e9899a | 1,169 | py | Python | apps/fbschema/struct_models.py | pkuhad/dashfb | 0b1322d6238ea0b5b8cdc4d16001d3653b404877 | [
"MIT"
] | 3 | 2017-03-16T13:02:47.000Z | 2017-07-22T00:17:10.000Z | apps/fbschema/struct_models.py | pkuhad/dashfb | 0b1322d6238ea0b5b8cdc4d16001d3653b404877 | [
"MIT"
] | null | null | null | apps/fbschema/struct_models.py | pkuhad/dashfb | 0b1322d6238ea0b5b8cdc4d16001d3653b404877 | [
"MIT"
] | 2 | 2015-05-15T10:35:48.000Z | 2021-07-27T09:40:42.000Z | from django.db import models
class StructAgeRange(models.Model):
min = models.IntegerField()
max = models.IntegerField( blank=True, null=True )
class StructCommentInfo(models.Model):
can_comment = models.NullBooleanField( blank=True, null=True, help_text="Whether the comments a... | 61.526316 | 144 | 0.719418 | 158 | 1,169 | 5.227848 | 0.335443 | 0.087167 | 0.125908 | 0.164649 | 0.474576 | 0.474576 | 0.432203 | 0.364407 | 0.364407 | 0.364407 | 0 | 0.003151 | 0.185629 | 1,169 | 18 | 145 | 64.944444 | 0.864496 | 0.241232 | 0 | 0 | 0 | 0 | 0.218326 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8bb8032f2acd424e1966fbb1c6f8052ea48d1413 | 116 | py | Python | smashtheque/models/character.py | Retropen-Bar/pysmashtheque | 8da6fbdc11147c28bc09417104e7e0f688782c8f | [
"MIT"
] | null | null | null | smashtheque/models/character.py | Retropen-Bar/pysmashtheque | 8da6fbdc11147c28bc09417104e7e0f688782c8f | [
"MIT"
] | null | null | null | smashtheque/models/character.py | Retropen-Bar/pysmashtheque | 8da6fbdc11147c28bc09417104e7e0f688782c8f | [
"MIT"
] | null | null | null | from .api_record import *
class Character(ApiRecord):
api_path = "characters"
singular_resource = "character"
| 16.571429 | 33 | 0.75 | 13 | 116 | 6.461538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 116 | 6 | 34 | 19.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8bbe7e89ac235d2b646670c3bd820a5f3e0af190 | 228 | py | Python | output/message.py | moehrenzahn/worktimer | ab92e8625652d94987c7da8ccdbf29be72bf3612 | [
"MIT"
] | 3 | 2018-07-29T20:48:15.000Z | 2019-03-29T10:42:19.000Z | output/message.py | moehrenzahn/worktimer | ab92e8625652d94987c7da8ccdbf29be72bf3612 | [
"MIT"
] | null | null | null | output/message.py | moehrenzahn/worktimer | ab92e8625652d94987c7da8ccdbf29be72bf3612 | [
"MIT"
] | null | null | null | import os
def message(recipient, text):
script = 'tell application "Messages" to send "{0}" to buddy "{1}" of (service 1 whose service type is iMessage)'.format(text, recipient)
os.system("osascript -e '%s'" % script)
| 32.571429 | 141 | 0.679825 | 33 | 228 | 4.69697 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.175439 | 228 | 6 | 142 | 38 | 0.808511 | 0 | 0 | 0 | 0 | 0.25 | 0.52193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bc62bf2c490498ea1dff6a417dc9c3797b16563 | 148 | py | Python | app/grandchallenge/policies/views.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 101 | 2018-04-11T14:48:04.000Z | 2022-03-28T00:29:48.000Z | app/grandchallenge/policies/views.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1,733 | 2018-03-21T11:56:16.000Z | 2022-03-31T14:58:30.000Z | app/grandchallenge/policies/views.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 42 | 2018-06-08T05:49:07.000Z | 2022-03-29T08:43:01.000Z | from django.views.generic import DetailView
from grandchallenge.policies.models import Policy
class PolicyDetail(DetailView):
model = Policy
| 18.5 | 49 | 0.810811 | 17 | 148 | 7.058824 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 148 | 7 | 50 | 21.142857 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8bd3dc2c2381df11d5ae0cbcc92302f073ababfb | 190 | py | Python | src/marketplace/authorization/common.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | null | null | null | src/marketplace/authorization/common.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | null | null | null | src/marketplace/authorization/common.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | null | null | null | from django.core.exceptions import PermissionDenied
def ensure_user_has_permission(user, target, permission):
if not user.has_perm(permission, target):
raise PermissionDenied()
| 31.666667 | 57 | 0.784211 | 23 | 190 | 6.304348 | 0.695652 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142105 | 190 | 5 | 58 | 38 | 0.889571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bdf2b9d6993b6248b64645d01d7bb5aff378a82 | 9,780 | py | Python | FDA/fda.py | bwelch21/secure-file-share | 69e693dad4eb02a4a7b8051244947115eea71abc | [
"MIT"
] | null | null | null | FDA/fda.py | bwelch21/secure-file-share | 69e693dad4eb02a4a7b8051244947115eea71abc | [
"MIT"
] | null | null | null | FDA/fda.py | bwelch21/secure-file-share | 69e693dad4eb02a4a7b8051244947115eea71abc | [
"MIT"
] | null | null | null | from contextlib import closing
from urllib.request import urlopen
from http.client import HTTPConnection
import sys
import json
import os
import hashlib
from Crypto import Random
from Crypto.Cipher import AES
import io
import urllib
print ("------------------------SecureFileShare's File Download Application--------... | 33.84083 | 170 | 0.575153 | 1,184 | 9,780 | 4.619088 | 0.152027 | 0.05266 | 0.021942 | 0.023405 | 0.714756 | 0.690986 | 0.680929 | 0.674895 | 0.652039 | 0.652039 | 0 | 0.014468 | 0.166053 | 9,780 | 288 | 171 | 33.958333 | 0.655959 | 0.287832 | 0 | 0.487654 | 0 | 0.006173 | 0.346897 | 0.10856 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.061728 | 0.067901 | null | null | 0.259259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
47593322ad21fc9f6e4d230b4878f41c9d6cfe46 | 159 | py | Python | src/email_reader/scamchecker.py | Zaidek/discord-email-checking-bot | dcf51c15b49195908337070ec5c003fab7fb3419 | [
"Apache-2.0"
] | null | null | null | src/email_reader/scamchecker.py | Zaidek/discord-email-checking-bot | dcf51c15b49195908337070ec5c003fab7fb3419 | [
"Apache-2.0"
] | null | null | null | src/email_reader/scamchecker.py | Zaidek/discord-email-checking-bot | dcf51c15b49195908337070ec5c003fab7fb3419 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
class Emailfilter():
def __init__(self):
def import_dataset(self, dataset):
def train(self):
def test(self): | 12.230769 | 38 | 0.660377 | 22 | 159 | 4.545455 | 0.590909 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238994 | 159 | 13 | 39 | 12.230769 | 0.826446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
476be1370dde6fcccb9aed7d57665bfccc7d0dd2 | 1,687 | py | Python | Level2/Lessons49994/minari - 49994.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level2/Lessons49994/minari - 49994.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | null | null | null | Level2/Lessons49994/minari - 49994.py | StudyForCoding/ProgrammersLevel | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | [
"MIT"
] | 1 | 2021-04-05T07:35:59.000Z | 2021-04-05T07:35:59.000Z | # 방문 길이
```python
def solution(dirs):
answer = 0
length = [[0 for _ in range(11)] for _ in range(11)]
x,y = 5,5 # -5~5까지가 아니라 0~10로 했으니까 시작지점은 5,5
for i in range(len(dirs)):
if dirs[i] == 'U':
y += 1
length[x][y] += 1
if dirs[i] == 'D':
y -= 1
... | 22.197368 | 57 | 0.377593 | 274 | 1,687 | 2.317518 | 0.186131 | 0.059843 | 0.037795 | 0.138583 | 0.735433 | 0.735433 | 0.607874 | 0.607874 | 0.581102 | 0.524409 | 0 | 0.054223 | 0.431535 | 1,687 | 75 | 58 | 22.493333 | 0.607925 | 0.054535 | 0 | 0.75 | 0 | 0 | 0.008822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
478daefbebfb1385d73fbfe914e9e46515a7bd63 | 307 | py | Python | pwnurl/models/mixin/created.py | donovan-duplessis/pwnurl | a13e27694f738228d186ea437b4d15ef5a925a87 | [
"MIT"
] | 2 | 2016-05-14T06:37:49.000Z | 2020-05-13T18:09:22.000Z | pwnurl/models/mixin/created.py | donovan-duplessis/pwnurl | a13e27694f738228d186ea437b4d15ef5a925a87 | [
"MIT"
] | null | null | null | pwnurl/models/mixin/created.py | donovan-duplessis/pwnurl | a13e27694f738228d186ea437b4d15ef5a925a87 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.sql.expression import func
from pwnurl.common.extensions import db
class CreatedMixin(object):
@declared_attr
def created(cls):
return db.Column(db.DateTime(timezone=True), default=func.now())
| 21.928571 | 72 | 0.739414 | 40 | 307 | 5.625 | 0.75 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.149837 | 307 | 13 | 73 | 23.615385 | 0.858238 | 0.068404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
479ca8bb0fd0b91fcd5632f371b5a334f1a1b0de | 342 | py | Python | glob_example.py | jeffb4real/scripts | 349bc3d3d819684261281a05db7a5b9389d664f1 | [
"MIT"
] | null | null | null | glob_example.py | jeffb4real/scripts | 349bc3d3d819684261281a05db7a5b9389d664f1 | [
"MIT"
] | null | null | null | glob_example.py | jeffb4real/scripts | 349bc3d3d819684261281a05db7a5b9389d664f1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# https://pymotw.com/2/glob/
import glob
myfiles = glob.glob('./*.py')
print 'Files that end in .py\n---------------------'
for eachfile in myfiles:
print eachfile
print
myfiles = glob.iglob('./*.py')
print myfiles[0]
exit()
print 'Files that end in .py\n---------------------'
for ifile in myfiles... | 17.1 | 52 | 0.605263 | 50 | 342 | 4.14 | 0.46 | 0.10628 | 0.135266 | 0.164251 | 0.241546 | 0.241546 | 0.241546 | 0.241546 | 0 | 0 | 0 | 0.006757 | 0.134503 | 342 | 19 | 53 | 18 | 0.692568 | 0.125731 | 0 | 0.307692 | 0 | 0 | 0.337838 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
479d1918ee9178b0a6faec41bb48a717fb58c8e0 | 136 | py | Python | LPTHW/mystuff.py | YYMaker/PythonStarter | 49f7af6c5f4acf50be5d761f372ecdff8993aff9 | [
"CC0-1.0"
] | null | null | null | LPTHW/mystuff.py | YYMaker/PythonStarter | 49f7af6c5f4acf50be5d761f372ecdff8993aff9 | [
"CC0-1.0"
] | null | null | null | LPTHW/mystuff.py | YYMaker/PythonStarter | 49f7af6c5f4acf50be5d761f372ecdff8993aff9 | [
"CC0-1.0"
] | null | null | null | # this goes in mystuff.py
def apple():
print "I AM APPLES!"
# this is just a variable
tangerine = "Living reflection of a dream"
| 15.111111 | 42 | 0.683824 | 22 | 136 | 4.227273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227941 | 136 | 8 | 43 | 17 | 0.885714 | 0.345588 | 0 | 0 | 0 | 0 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47a94bc3d51d78b9ee4b905d6df9a3f4963ab8c1 | 191 | py | Python | python/license_key_formatting.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 17 | 2020-06-13T15:05:55.000Z | 2022-03-16T18:28:53.000Z | python/license_key_formatting.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | null | null | null | python/license_key_formatting.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 9 | 2020-12-27T19:17:58.000Z | 2022-03-22T07:02:19.000Z | class Solution:
def licenseKeyFormatting(self, s: str, k: int) -> str:
s = s.replace('-', '').upper()[::-1]
return '-'.join(s[i:i + k] for i in range(0, len(s), k))[::-1]
| 38.2 | 70 | 0.513089 | 30 | 191 | 3.266667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.230366 | 191 | 4 | 71 | 47.75 | 0.646259 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
47c7ad8cfad15e5a249a114772fe06890077f111 | 747 | py | Python | tests/validators/test_protein_deletion.py | cancervariants/varlex | 3806317fa0125c3098e80124d5169fe6a13d50db | [
"MIT"
] | null | null | null | tests/validators/test_protein_deletion.py | cancervariants/varlex | 3806317fa0125c3098e80124d5169fe6a13d50db | [
"MIT"
] | 15 | 2019-10-23T17:35:42.000Z | 2020-05-05T21:04:01.000Z | tests/validators/test_protein_deletion.py | cancervariants/varlex | 3806317fa0125c3098e80124d5169fe6a13d50db | [
"MIT"
] | null | null | null | """Module for testing Protein Deletion Validator."""
import unittest
from variation.validators import ProteinDeletion
from variation.classifiers import ProteinDeletionClassifier
from .validator_base import ValidatorBase
class TestProteinDeletionValidator(ValidatorBase, unittest.TestCase):
"""A class to test the ... | 32.478261 | 69 | 0.745649 | 75 | 747 | 7.346667 | 0.426667 | 0.163339 | 0.087114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174029 | 747 | 22 | 70 | 33.954545 | 0.893031 | 0.298527 | 0 | 0 | 0 | 0 | 0.032129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
47e2994af71d8e5e8c51c10a3086a61b08cb481e | 156 | py | Python | exp/package_name.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 41 | 2016-01-21T05:14:45.000Z | 2021-11-24T20:37:21.000Z | exp/package_name.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 5 | 2016-01-21T05:36:37.000Z | 2016-08-22T19:26:51.000Z | exp/package_name.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 3 | 2016-01-23T04:03:44.000Z | 2016-08-21T15:58:38.000Z | import inspect
f = inspect.currentframe()
print(f.f_globals)
x = inspect.getfile(f)
print(inspect.getmodulename(x))
print(inspect.getmodule(f).__name__) | 15.6 | 36 | 0.769231 | 22 | 156 | 5.227273 | 0.5 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 156 | 10 | 36 | 15.6 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 1 | 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 | 1 | 0 | 3 |
47f8a77df02082e4d95413309981e2c4b2efbe9e | 255 | py | Python | FastDSP/structures/fdsp_types.py | JuanGGO/FastDSP | 652fdadbedd99b934cb6a82e3bfb07d4645425b8 | [
"BSD-3-Clause"
] | null | null | null | FastDSP/structures/fdsp_types.py | JuanGGO/FastDSP | 652fdadbedd99b934cb6a82e3bfb07d4645425b8 | [
"BSD-3-Clause"
] | null | null | null | FastDSP/structures/fdsp_types.py | JuanGGO/FastDSP | 652fdadbedd99b934cb6a82e3bfb07d4645425b8 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from FastDSP.structures import _data_structures
class Complex:
def __init__(self, real=0, imag=0):
self.real = real
self.imag = imag
def __str__(self):
return "{} + {}j".format(self.real, self.imag)
| 18.214286 | 54 | 0.635294 | 35 | 255 | 4.342857 | 0.571429 | 0.157895 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.25098 | 255 | 13 | 55 | 19.615385 | 0.78534 | 0 | 0 | 0 | 0 | 0 | 0.031496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9a11cafa20d407e6f3b31d9761380b2aff6bb751 | 26,619 | py | Python | Database/DB_dev.py | yashrajt/college_FAQ-chatbot | b3a2a1b4958068b652d019c13f31f6329b093c0a | [
"MIT"
] | 4 | 2020-10-02T20:27:03.000Z | 2021-09-28T16:11:04.000Z | Database/DB_dev.py | yashrajt/college_FAQ-chatbot | b3a2a1b4958068b652d019c13f31f6329b093c0a | [
"MIT"
] | 1 | 2020-11-25T10:23:14.000Z | 2020-11-25T10:23:14.000Z | Database/DB_dev.py | yashrajt/college_FAQ-chatbot | b3a2a1b4958068b652d019c13f31f6329b093c0a | [
"MIT"
] | 2 | 2020-10-12T18:16:16.000Z | 2021-09-28T16:11:15.000Z | import pprint
pp = pprint.PrettyPrinter(indent=3 ,depth=6,width=100)
import pickle
def add_compsdata():
comps = { "comps" :{
"Faculty" : {
"Dr.Deepak Sharma is the Head of Department"
"The Computer Department has a total of 30 faculty members consisting of highly skilled professors and assistan... | 82.925234 | 661 | 0.736241 | 3,535 | 26,619 | 5.539463 | 0.176238 | 0.037279 | 0.059034 | 0.069452 | 0.701512 | 0.694975 | 0.688847 | 0.683025 | 0.683025 | 0.68037 | 0 | 0.007348 | 0.187047 | 26,619 | 320 | 662 | 83.184375 | 0.897412 | 0.085841 | 0 | 0.447471 | 0 | 0.330739 | 0.855861 | 0.011442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023346 | false | 0 | 0.011673 | 0 | 0.054475 | 0.011673 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a1ae9444807c20b9bb104e21b57a2c96758c3be | 231 | py | Python | 05-Lists-and-Tuples/5-22-Simulating-a-Queue-with-a-List.py | rajevac/deitel-intro-to-python-exercises | 05f427d35ebb4bd315904f6919659335b1bf3fc9 | [
"MIT"
] | null | null | null | 05-Lists-and-Tuples/5-22-Simulating-a-Queue-with-a-List.py | rajevac/deitel-intro-to-python-exercises | 05f427d35ebb4bd315904f6919659335b1bf3fc9 | [
"MIT"
] | null | null | null | 05-Lists-and-Tuples/5-22-Simulating-a-Queue-with-a-List.py | rajevac/deitel-intro-to-python-exercises | 05f427d35ebb4bd315904f6919659335b1bf3fc9 | [
"MIT"
] | null | null | null | items = []
def enqueue(item):
items.append(item)
def dequeue():
if len(items) > 0:
items.pop(0)
enqueue(5)
enqueue(11)
enqueue('Jones')
enqueue(45)
print(items)
dequeue()
print(items)
dequeue()
print(items) | 9.625 | 22 | 0.632035 | 32 | 231 | 4.5625 | 0.46875 | 0.205479 | 0.232877 | 0.30137 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037838 | 0.199134 | 231 | 24 | 23 | 9.625 | 0.751351 | 0 | 0 | 0.333333 | 0 | 0 | 0.021552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.133333 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a5bc10af1438448d102ae2e91c97fd9ae14d543 | 103 | py | Python | algorithms/mergesort.py | mohit-surana/ds-algo-review | 7a70d0e417da8a9f31ad4d46b8293912aa20af00 | [
"MIT"
] | null | null | null | algorithms/mergesort.py | mohit-surana/ds-algo-review | 7a70d0e417da8a9f31ad4d46b8293912aa20af00 | [
"MIT"
] | null | null | null | algorithms/mergesort.py | mohit-surana/ds-algo-review | 7a70d0e417da8a9f31ad4d46b8293912aa20af00 | [
"MIT"
] | null | null | null | from data_structures.lists import LinkedList
my_list = LinkedList()
print('Algorithm that uses list') | 20.6 | 44 | 0.805825 | 14 | 103 | 5.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116505 | 103 | 5 | 45 | 20.6 | 0.89011 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9a60a496f4cecf4779243ba10915a40c3a90a2fe | 316 | py | Python | Week1_PyThonBasic/Beginner/Exercise7.py | minhvip2001/pythonproject | 0ad9e70203fae2cd038872a8d1a71c0bc9416cf3 | [
"MIT"
] | null | null | null | Week1_PyThonBasic/Beginner/Exercise7.py | minhvip2001/pythonproject | 0ad9e70203fae2cd038872a8d1a71c0bc9416cf3 | [
"MIT"
] | null | null | null | Week1_PyThonBasic/Beginner/Exercise7.py | minhvip2001/pythonproject | 0ad9e70203fae2cd038872a8d1a71c0bc9416cf3 | [
"MIT"
] | null | null | null | def appearance(str, word):
count = 0
count = str.count(word)
if(count == 0): print(word, "appeared", count, "time")
elif(count < 2): print(word, "appeared", count, "time")
else: print(word, "appeared", count ,"times")
str = "Emma is good developer. Emma is a writer"
word = "ádasdasd"
appearance(str, word) | 35.111111 | 57 | 0.658228 | 46 | 316 | 4.521739 | 0.456522 | 0.129808 | 0.245192 | 0.317308 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.164557 | 316 | 9 | 58 | 35.111111 | 0.776515 | 0 | 0 | 0 | 0 | 0 | 0.268139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7bdd45db8bb0fdfc4b2e525876b31eadba2c0fbb | 154 | py | Python | puppet_diamond/__meta__.py | diamond-org/puppet-diamond | eb28f5b134f37b39c6acb53bbaa98ff6f59de39c | [
"MIT"
] | null | null | null | puppet_diamond/__meta__.py | diamond-org/puppet-diamond | eb28f5b134f37b39c6acb53bbaa98ff6f59de39c | [
"MIT"
] | null | null | null | puppet_diamond/__meta__.py | diamond-org/puppet-diamond | eb28f5b134f37b39c6acb53bbaa98ff6f59de39c | [
"MIT"
] | null | null | null | __version__ = '0.3.0'
__author__ = 'Ian Dennis Miller'
__email__ = 'iandennismiller@gmail.com'
__url__ = 'http://diamond-methods.org/puppet-diamond.html'
| 30.8 | 58 | 0.753247 | 20 | 154 | 5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.090909 | 154 | 4 | 59 | 38.5 | 0.692857 | 0 | 0 | 0 | 0 | 0 | 0.603896 | 0.162338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7bedf0ea8ef61b690b8c6cbaaf715369a70abec9 | 181 | py | Python | srs/Observer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | srs/Observer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | srs/Observer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Pat and Tony'
#abstract class for the Observer interface
class Observer(object):
#must be implemented in all subclasses
def notify(self, msg):
pass | 18.1 | 42 | 0.701657 | 24 | 181 | 5.125 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232044 | 181 | 10 | 43 | 18.1 | 0.884892 | 0.430939 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d007252153060a74088b6191c79c62d0ce78837f | 132 | py | Python | app/schemas/ciphers.py | baloo1379/transposition-api | 23b7ee0c53776fda1e27643410761a3e0832b101 | [
"MIT"
] | null | null | null | app/schemas/ciphers.py | baloo1379/transposition-api | 23b7ee0c53776fda1e27643410761a3e0832b101 | [
"MIT"
] | null | null | null | app/schemas/ciphers.py | baloo1379/transposition-api | 23b7ee0c53776fda1e27643410761a3e0832b101 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class Request(BaseModel):
secret: str
text: str
class Response(BaseModel):
text: str
| 12 | 30 | 0.704545 | 16 | 132 | 5.8125 | 0.625 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 132 | 10 | 31 | 13.2 | 0.911765 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d00d1eae4b26b38f1229dad911b5f71d92f74175 | 51 | py | Python | keract/__init__.py | Stochastic13/keract | c42f4f9bd8304a6c5920d067a2b420297664ec88 | [
"MIT"
] | null | null | null | keract/__init__.py | Stochastic13/keract | c42f4f9bd8304a6c5920d067a2b420297664ec88 | [
"MIT"
] | null | null | null | keract/__init__.py | Stochastic13/keract | c42f4f9bd8304a6c5920d067a2b420297664ec88 | [
"MIT"
] | null | null | null | from keract.keract import *
__version__ = '2.5.0'
| 12.75 | 27 | 0.705882 | 8 | 51 | 4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.156863 | 51 | 3 | 28 | 17 | 0.674419 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d031fef43d50e86c575fe44dce3fc1a3a4947937 | 93 | py | Python | src/tests.py | arkavo/Maxwell-ecosystem | d956ea892ebe581b8b2c0325df59fa58a6d5db9a | [
"Apache-2.0"
] | null | null | null | src/tests.py | arkavo/Maxwell-ecosystem | d956ea892ebe581b8b2c0325df59fa58a6d5db9a | [
"Apache-2.0"
] | null | null | null | src/tests.py | arkavo/Maxwell-ecosystem | d956ea892ebe581b8b2c0325df59fa58a6d5db9a | [
"Apache-2.0"
] | null | null | null | from numba_vectormath import*
import timeit
a = [10,10]
b = [60,70]
print(distance(a,b))
| 9.3 | 29 | 0.677419 | 16 | 93 | 3.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0.172043 | 93 | 9 | 30 | 10.333333 | 0.701299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d036293e555adc9e1572601607dc8827d1cba05b | 52 | py | Python | code/lib/toscanfv/__init__.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | 8 | 2017-03-13T16:34:28.000Z | 2021-11-16T11:35:56.000Z | code/lib/toscanfv/__init__.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | null | null | null | code/lib/toscanfv/__init__.py | superfluidity/RDCL3D | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | [
"Apache-2.0"
] | 3 | 2017-03-28T09:26:40.000Z | 2020-12-08T14:16:12.000Z | __all__ = ["toscanfv_parser", "toscanfv_rdcl_graph"] | 52 | 52 | 0.788462 | 6 | 52 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 52 | 1 | 52 | 52 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0363799cef628865c32a9fcb555ed09c0bef88a | 2,828 | py | Python | src/pyon/ion/objstore.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 2 | 2015-06-09T16:07:09.000Z | 2015-07-28T10:06:31.000Z | src/pyon/ion/objstore.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 21 | 2015-03-18T14:39:32.000Z | 2016-07-01T17:16:29.000Z | src/pyon/ion/objstore.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 12 | 2015-03-18T10:53:49.000Z | 2018-06-21T11:19:57.000Z | #!/usr/bin/env python
"""General purpose Object store implementation"""
__author__ = 'Michael Meisinger'
from pyon.core import bootstrap
from pyon.datastore.datastore import DataStore
from pyon.util.containers import recursive_encode
class ObjectStore(object):
"""
Class that uses a data store to provide a... | 29.768421 | 97 | 0.696605 | 398 | 2,828 | 4.70603 | 0.21608 | 0.078484 | 0.115323 | 0.134544 | 0.378003 | 0.26268 | 0.154832 | 0.12173 | 0.04378 | 0 | 0 | 0 | 0.213932 | 2,828 | 94 | 98 | 30.085106 | 0.842555 | 0.104668 | 0 | 0 | 0 | 0 | 0.027386 | 0.017721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0.018519 | 0.055556 | 0.259259 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d03fcced615038e64a0fec36431fd76cee17c701 | 188 | py | Python | gen_retinopath_data.py | Nilay017/Generative-Deep-Neural-Network-Mixture-Modeling-with-Semi-Supervised-MinMax-EM-Learning | 705718823f50507f82ee1a657bba33b1c3d6d02b | [
"MIT"
] | 1 | 2021-09-05T22:54:59.000Z | 2021-09-05T22:54:59.000Z | gen_retinopath_data.py | Nilay017/Generative-Deep-Neural-Network-Mixture-Modeling-with-Semi-Supervised-MinMax-EM-Learning | 705718823f50507f82ee1a657bba33b1c3d6d02b | [
"MIT"
] | null | null | null | gen_retinopath_data.py | Nilay017/Generative-Deep-Neural-Network-Mixture-Modeling-with-Semi-Supervised-MinMax-EM-Learning | 705718823f50507f82ee1a657bba33b1c3d6d02b | [
"MIT"
] | null | null | null | from data_processing import *
for seed in [0.0, 1.0, 2.0, 3.0, 4.0]:
create_and_store_DiabeticRetinopathydataset('./Diabetic_retinopathy_Data',\
'../Diabetic_retinopathy', seed=seed)
| 26.857143 | 76 | 0.744681 | 28 | 188 | 4.75 | 0.642857 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.106383 | 188 | 6 | 77 | 31.333333 | 0.732143 | 0 | 0 | 0 | 0 | 0 | 0.26738 | 0.26738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d04c6c488c97bc4556d9f305f0ec039c73311f29 | 69 | py | Python | source_code/version.py | jinolshah/sudosolver | 0253cc03f7ed7c9541135a6f457eebbca5ab8272 | [
"MIT"
] | null | null | null | source_code/version.py | jinolshah/sudosolver | 0253cc03f7ed7c9541135a6f457eebbca5ab8272 | [
"MIT"
] | null | null | null | source_code/version.py | jinolshah/sudosolver | 0253cc03f7ed7c9541135a6f457eebbca5ab8272 | [
"MIT"
] | null | null | null | version = 'v1.0'
repolink = 'https://github.com/jinolshah/sudosolver' | 34.5 | 52 | 0.73913 | 9 | 69 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.072464 | 69 | 2 | 52 | 34.5 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0.614286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d05378379a6f1c3674c67988b267eab46be42511 | 108 | py | Python | sample7.py | HumanAcademy-AI-Cource/2021_02Sample | 8873c1d58e25dac10106271c809cab34001db588 | [
"Apache-2.0"
] | null | null | null | sample7.py | HumanAcademy-AI-Cource/2021_02Sample | 8873c1d58e25dac10106271c809cab34001db588 | [
"Apache-2.0"
] | null | null | null | sample7.py | HumanAcademy-AI-Cource/2021_02Sample | 8873c1d58e25dac10106271c809cab34001db588 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*
number = 10 # 10をnumberにコピー
print(number) # numberを表示 | 21.6 | 33 | 0.611111 | 13 | 108 | 5.076923 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.222222 | 108 | 5 | 34 | 21.6 | 0.72619 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d05706773be779d4e15a376c0615a24f792c05a4 | 370 | py | Python | tests/__init__.py | xuexianwu/interpolation | a9c40132f64ce8a448fce0c283623e8af63ea397 | [
"BSD-3-Clause"
] | 9 | 2016-12-05T15:16:59.000Z | 2021-08-16T16:37:19.000Z | tests/__init__.py | pmav99/interpolation | a9c40132f64ce8a448fce0c283623e8af63ea397 | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | pmav99/interpolation | a9c40132f64ce8a448fce0c283623e8af63ea397 | [
"BSD-3-Clause"
] | 9 | 2015-02-15T17:57:49.000Z | 2021-03-08T21:09:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
author: Panagiotis Mavrogiorgos
email : gmail, pmav99
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
import sys
if sys.version_info.major < 3:
from future_... | 19.473684 | 65 | 0.762162 | 50 | 370 | 5.22 | 0.7 | 0.191571 | 0.245211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.151351 | 370 | 18 | 66 | 20.555556 | 0.818471 | 0.259459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.857143 | 0 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d057654162c44c06e408b5479704dd3679ef1026 | 267 | py | Python | Python 301/python_301_lesson_6_class_interfaces.py | PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework | 402b35d4739ed91e50d6c3380cab6f085a46c52b | [
"MIT"
] | 3 | 2021-07-09T01:24:20.000Z | 2022-03-24T06:30:19.000Z | Python 301/python_301_lesson_6_class_interfaces.py | PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework | 402b35d4739ed91e50d6c3380cab6f085a46c52b | [
"MIT"
] | null | null | null | Python 301/python_301_lesson_6_class_interfaces.py | PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework | 402b35d4739ed91e50d6c3380cab6f085a46c52b | [
"MIT"
] | 3 | 2021-07-01T21:52:53.000Z | 2021-09-02T08:54:23.000Z | class Animal:
fur_color = "Orange"
def speak(self):
raise NotImplementedError
def eat(self):
pass
def chase(self):
pass
class HouseCat(Animal):
def speak(self):
print("Meeeeowwww")
cat = HouseCat()
cat.speak()
| 14.052632 | 33 | 0.588015 | 30 | 267 | 5.2 | 0.566667 | 0.102564 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303371 | 267 | 18 | 34 | 14.833333 | 0.83871 | 0 | 0 | 0.307692 | 0 | 0 | 0.059925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.153846 | 0 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d05861a2c1abd2136e025fb189285367d5e339b6 | 691 | py | Python | people/views.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 4 | 2015-03-03T17:48:14.000Z | 2019-02-27T20:28:42.000Z | people/views.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 104 | 2015-02-25T18:09:15.000Z | 2019-06-21T10:02:53.000Z | people/views.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 9 | 2015-03-01T18:59:14.000Z | 2019-06-10T06:48:45.000Z | from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse
from django.views.generic import TemplateView, UpdateView
from people.forms import UserProfileForm
UserModel = get_user_model()
class UserProfileView(LoginRequiredMixin, TemplateV... | 27.64 | 60 | 0.788712 | 81 | 691 | 6.555556 | 0.469136 | 0.07533 | 0.06403 | 0.079096 | 0.109228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143271 | 691 | 24 | 61 | 28.791667 | 0.896959 | 0 | 0 | 0 | 0 | 0 | 0.096961 | 0.079595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0.125 | 0.9375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
d065e21c144884dd8623063877a016917ef4f78a | 994 | py | Python | app/mixins.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | app/mixins.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | app/mixins.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | from django.views.decorators.cache import cache_page
class GetCacheMixin:
"""
This mixin wraps CBS get into cache_page
"""
cache_timeout = 160
def get_cache_timeout(self):
return self.cache_timeout
def get(self, *args, **kwargs):
return cache_page(self.get_cache_timeout(), k... | 22.590909 | 86 | 0.637827 | 119 | 994 | 5.067227 | 0.302521 | 0.159204 | 0.099502 | 0.056385 | 0.537313 | 0.537313 | 0.537313 | 0.537313 | 0.537313 | 0.537313 | 0 | 0.012129 | 0.253521 | 994 | 43 | 87 | 23.116279 | 0.800539 | 0.081489 | 0 | 0.333333 | 0 | 0 | 0.038549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.166667 | 0.708333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d077f719d8b09f3278afce4c89309f7d9fbcc646 | 495 | py | Python | ecomerce/config.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | ecomerce/config.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | ecomerce/config.py | AlexandruScrob/fast_api_proj_2 | 9aca5d48ab3e42933747b23ff04c6d4f3487d93e | [
"MIT"
] | null | null | null | import os
APP_ENV = os.getenv("APP_ENV", "development")
DATABASE_USERNAME = os.getenv("DATABASE_USERNAME", "postgres")
DATABASE_PASSWORD = os.getenv("DATABASE_PASSWORD", "admin")
DATABASE_HOST = os.getenv("DATABASE_HOST", "localhost")
DATABASE_NAME = os.getenv("DATABASE_NAME", "postgres")
TEST_DATABASE_NAME = os.gete... | 38.076923 | 69 | 0.749495 | 71 | 495 | 4.929577 | 0.323944 | 0.205714 | 0.182857 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024176 | 0.080808 | 495 | 12 | 70 | 41.25 | 0.745055 | 0 | 0 | 0 | 0 | 0 | 0.365657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d08baac30f531fb144909ee42939bd0b06289d52 | 95 | py | Python | custom_components/hassio_info/const.py | tboyce021/hassio-info | ff7ceef3e9ba2ec5ec65e93c836866454e437c41 | [
"MIT"
] | null | null | null | custom_components/hassio_info/const.py | tboyce021/hassio-info | ff7ceef3e9ba2ec5ec65e93c836866454e437c41 | [
"MIT"
] | 4 | 2020-11-09T20:29:55.000Z | 2021-06-08T10:49:57.000Z | custom_components/hassio_info/const.py | tboyce021/hassio-info | ff7ceef3e9ba2ec5ec65e93c836866454e437c41 | [
"MIT"
] | 1 | 2020-10-29T15:41:51.000Z | 2020-10-29T15:41:51.000Z | """Constants for the Hassio Info integration."""
DOMAIN = "hassio_info"
TITLE = "Supervisor+"
| 19 | 48 | 0.715789 | 11 | 95 | 6.090909 | 0.818182 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 95 | 4 | 49 | 23.75 | 0.817073 | 0.442105 | 0 | 0 | 0 | 0 | 0.468085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d08fcb9c33d89cd52eb7c75511f9d83fb3997987 | 129 | py | Python | manafa/tests/batterystats/test_batteryStatsService.py | greensoftwarelab/E-MANAFA | d0ccc01a821af5b02fdcb588a4d14ff56a26cd5d | [
"MIT"
] | null | null | null | manafa/tests/batterystats/test_batteryStatsService.py | greensoftwarelab/E-MANAFA | d0ccc01a821af5b02fdcb588a4d14ff56a26cd5d | [
"MIT"
] | null | null | null | manafa/tests/batterystats/test_batteryStatsService.py | greensoftwarelab/E-MANAFA | d0ccc01a821af5b02fdcb588a4d14ff56a26cd5d | [
"MIT"
] | null | null | null | from unittest import TestCase
class TestBatteryStatsService(TestCase):
def test_stop(self):
self.assertTrue(True)
| 16.125 | 40 | 0.744186 | 14 | 129 | 6.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 129 | 7 | 41 | 18.428571 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0976c7529ffe4600b8f136c6eb338e521e79c17 | 5,665 | py | Python | app.py | pps-ti/computer-aided-diagnosys-system-prototype | d66f8561745853f5e61d928d8c2556f11adb3ecc | [
"CC0-1.0",
"0BSD"
] | null | null | null | app.py | pps-ti/computer-aided-diagnosys-system-prototype | d66f8561745853f5e61d928d8c2556f11adb3ecc | [
"CC0-1.0",
"0BSD"
] | null | null | null | app.py | pps-ti/computer-aided-diagnosys-system-prototype | d66f8561745853f5e61d928d8c2556f11adb3ecc | [
"CC0-1.0",
"0BSD"
] | null | null | null | # WEB FRAMEWORKS
from flask import Flask, render_template, redirect, request, url_for, session
# REFACTORED CODES
from src.db_storage.read import check_session, get_id_account, get_patients_data, data_users, user_dashboard, user_login
from src.db_storage.create import add_hospital_account, admin_add_new_user
from src.... | 41.962963 | 194 | 0.721624 | 824 | 5,665 | 4.787621 | 0.139563 | 0.042586 | 0.045627 | 0.049683 | 0.432953 | 0.313561 | 0.248162 | 0.246895 | 0.190368 | 0.093283 | 0 | 0.003584 | 0.113327 | 5,665 | 134 | 195 | 42.276119 | 0.781804 | 0.124978 | 0 | 0 | 0 | 0 | 0.171875 | 0.070211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294872 | false | 0.025641 | 0.089744 | 0.282051 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d0afc5dd38f26e49c163f05a009530fa16b4766f | 269 | py | Python | fastly/auth.py | JakeRoggenbuck/fastly-py | 3610d930adb17a57988f878e9b35db0b07e8aa66 | [
"MIT"
] | 59 | 2015-02-02T22:56:23.000Z | 2022-03-10T08:59:58.000Z | fastly/auth.py | JakeRoggenbuck/fastly-py | 3610d930adb17a57988f878e9b35db0b07e8aa66 | [
"MIT"
] | 44 | 2015-03-27T19:20:54.000Z | 2022-03-10T14:24:44.000Z | fastly/auth.py | JakeRoggenbuck/fastly-py | 3610d930adb17a57988f878e9b35db0b07e8aa66 | [
"MIT"
] | 49 | 2015-04-10T21:25:35.000Z | 2022-03-23T08:32:05.000Z | """
"""
from __future__ import absolute_import
from six.moves.urllib.parse import urlencode
import warnings
class KeyAuthenticator(object):
def __init__(self, key):
self.key = key
def add_auth(self, headers):
headers['Fastly-Key'] = self.key
| 19.214286 | 44 | 0.695167 | 34 | 269 | 5.205882 | 0.617647 | 0.118644 | 0.112994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197026 | 269 | 13 | 45 | 20.692308 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d0cfbdb0a391606a9038c01ba04d418e03b9c7a9 | 670 | py | Python | src/halomod/__init__.py | sjforeman/halomod | 587db6bc71a77ea60a541b306fc3601eeb424bc9 | [
"MIT"
] | null | null | null | src/halomod/__init__.py | sjforeman/halomod | 587db6bc71a77ea60a541b306fc3601eeb424bc9 | [
"MIT"
] | null | null | null | src/halomod/__init__.py | sjforeman/halomod | 587db6bc71a77ea60a541b306fc3601eeb424bc9 | [
"MIT"
] | null | null | null | try:
from importlib.metadata import version, PackageNotFoundError
except ImportError:
from importlib_metadata import version, PackageNotFoundError
try:
__version__ = version(__name__)
except PackageNotFoundError:
# package is not installed
pass
from . import halo_model
from . import bias
from . im... | 25.769231 | 70 | 0.802985 | 79 | 670 | 6.594937 | 0.455696 | 0.211132 | 0.080614 | 0.103647 | 0.207294 | 0.207294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155224 | 670 | 25 | 71 | 26.8 | 0.920495 | 0.035821 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0.761905 | 0 | 0.761905 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
efb504090026afebe849482fa8ef70e51843d137 | 5,116 | py | Python | castledice/playermat/migrations/0001_initial.py | Karins-Coils/CastleDice | 66397b1d50da89aaf1ba69ea33bc58e0eba43d73 | [
"MIT"
] | 2 | 2015-09-17T16:36:27.000Z | 2015-09-17T17:01:03.000Z | castledice/playermat/migrations/0001_initial.py | Karins-Coils/CastleDice | 66397b1d50da89aaf1ba69ea33bc58e0eba43d73 | [
"MIT"
] | 9 | 2019-12-04T21:49:50.000Z | 2021-10-02T09:08:01.000Z | castledice/playermat/migrations/0001_initial.py | khawley/CastleDice | 66397b1d50da89aaf1ba69ea33bc58e0eba43d73 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import annoying.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("game", "0001_initi... | 39.053435 | 88 | 0.44527 | 340 | 5,116 | 6.582353 | 0.302941 | 0.277033 | 0.339589 | 0.331099 | 0.488382 | 0.447274 | 0.447274 | 0.429401 | 0.429401 | 0.33378 | 0 | 0.010885 | 0.443315 | 5,116 | 130 | 89 | 39.353846 | 0.77493 | 0.004105 | 0 | 0.516129 | 0 | 0 | 0.087375 | 0.004516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.056452 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efbf65f7fab92ec0f8c78213a8e93c0e80213f4f | 814 | py | Python | src/py/lander/lib/controller.py | claymation/lander | 8c0fe715a8b32f2f580ecb30aaebf4c7d007a906 | [
"MIT"
] | 5 | 2016-10-15T15:35:06.000Z | 2020-11-10T14:25:48.000Z | src/py/lander/lib/controller.py | claymation/lander | 8c0fe715a8b32f2f580ecb30aaebf4c7d007a906 | [
"MIT"
] | null | null | null | src/py/lander/lib/controller.py | claymation/lander | 8c0fe715a8b32f2f580ecb30aaebf4c7d007a906 | [
"MIT"
] | 5 | 2017-03-03T15:49:18.000Z | 2020-12-29T20:48:34.000Z | #!/usr/bin/env python
# vim: set ts=4 sw=4 et:
class Controller(object):
"""
Encapsulates the control logic for each stage of flight
within its own controller class.
"""
def __init__(self, commander, vehicle):
self.commander = commander
self.vehicle = vehicle
def enter(self):
... | 21.421053 | 72 | 0.570025 | 94 | 814 | 4.87234 | 0.56383 | 0.069869 | 0.09607 | 0.174672 | 0.283843 | 0.179039 | 0.179039 | 0 | 0 | 0 | 0 | 0.003745 | 0.34398 | 814 | 37 | 73 | 22 | 0.853933 | 0.444717 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.333333 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
efd31195cb11930d566f8702ad5b95f9d60ad164 | 26,686 | py | Python | template_container_human/labels/slice_161.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_161.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_161.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_E0E1E1 = ((126, 114),
(126, 116), (126, 117), (126, 118), (127, 114), (127, 120), (128, 114), (128, 115), (128, 119), (128, 121), (129, 105), (129, 108), (129, 115), (129, 120), (129, 121), (130, 101), (130, 103), (130, 104), (130, 109), (130, 120), (130, 121), (131, 101), (131, 105), (131, 106), (131, 10... | 398.298507 | 865 | 0.49363 | 4,468 | 26,686 | 2.943151 | 0.024396 | 0.001369 | 0.001369 | 0.001825 | 0.003194 | 0.003194 | 0.003194 | 0 | 0 | 0 | 0 | 0.581545 | 0.172375 | 26,686 | 66 | 866 | 404.333333 | 0.013855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efde5cdde59b54bb2aa7e0c5cddb3bc980e73985 | 369 | py | Python | pyLearn/exercises/08_arithmetic_operations.py | sravanrekandar/pyLearn | 0d584b4d434b65ea23d7bfc810301861eac84c4d | [
"MIT"
] | null | null | null | pyLearn/exercises/08_arithmetic_operations.py | sravanrekandar/pyLearn | 0d584b4d434b65ea23d7bfc810301861eac84c4d | [
"MIT"
] | null | null | null | pyLearn/exercises/08_arithmetic_operations.py | sravanrekandar/pyLearn | 0d584b4d434b65ea23d7bfc810301861eac84c4d | [
"MIT"
] | null | null | null | """08_arithmetic_operations.py."""
a = 15
b = 2
sum = a + b
difference = a - b
product = a * b
division = a / b
remainder = a % b
print(f'{a} + {b} = {sum}') # 15 + 2 = 17
print(f'{a} - {b} = {difference}') # 15 - 2 = 13
print(f'{a} * {b} = {product}') # 15 * 2 = 30
print(f'{a} / {b} = {division}') # 15 / 2 = 7.5... | 23.0625 | 49 | 0.485095 | 64 | 369 | 2.765625 | 0.328125 | 0.112994 | 0.19774 | 0.225989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105455 | 0.254743 | 369 | 15 | 50 | 24.6 | 0.538182 | 0.241192 | 0 | 0 | 0 | 0 | 0.396296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
effc4e511f2811d6fe865d6a31d6982372795f77 | 474 | py | Python | Practice Folder/Python_pracitce.py | titogithub123/PyPoll-with-Python | 6e104d1644d3ed34fdc6b0fc59685cfec413391b | [
"Apache-2.0"
] | null | null | null | Practice Folder/Python_pracitce.py | titogithub123/PyPoll-with-Python | 6e104d1644d3ed34fdc6b0fc59685cfec413391b | [
"Apache-2.0"
] | null | null | null | Practice Folder/Python_pracitce.py | titogithub123/PyPoll-with-Python | 6e104d1644d3ed34fdc6b0fc59685cfec413391b | [
"Apache-2.0"
] | null | null | null | #print("Hello World")
#temperature = int(input("What is the temperature outside?"))
#if temperature > 80:
#print("Turn on the AC.")
#else:
#print("Open the Windows.")
score = int(input("What is your test score?"))
if score >= 90:
print('Your grade is an A.')
elif score>= 80:
print('Your grade is a B'... | 19.75 | 61 | 0.618143 | 76 | 474 | 3.855263 | 0.486842 | 0.122867 | 0.191126 | 0.21843 | 0.174061 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027174 | 0.223629 | 474 | 23 | 62 | 20.608696 | 0.769022 | 0.327004 | 0 | 0 | 0 | 0 | 0.395498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4bdae87dff626bd53fa62c8b23024d704623e8e1 | 204 | py | Python | ui.py | Benrflanders/Tetris | 33dfecd00bd6740ad378bcef7c6589ff2f076291 | [
"MIT"
] | null | null | null | ui.py | Benrflanders/Tetris | 33dfecd00bd6740ad378bcef7c6589ff2f076291 | [
"MIT"
] | null | null | null | ui.py | Benrflanders/Tetris | 33dfecd00bd6740ad378bcef7c6589ff2f076291 | [
"MIT"
] | null | null | null | """
User interface file
"""
from pyglet.gl import *
from pyglet.text import Label
class PauseMenu(object):
def __init__(self):
self.items.append(Label("Paused"))
self.reset()
| 13.6 | 42 | 0.637255 | 25 | 204 | 5.04 | 0.76 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 204 | 14 | 43 | 14.571429 | 0.807692 | 0.093137 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ef0143e318b07fe22ae04146b550db4a0ba334af | 295 | py | Python | tests/assertion.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 54 | 2019-11-15T16:30:34.000Z | 2022-01-13T15:18:54.000Z | tests/assertion.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 11 | 2019-02-28T08:28:24.000Z | 2020-04-07T04:47:12.000Z | tests/assertion.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 1 | 2020-02-26T13:59:40.000Z | 2020-02-26T13:59:40.000Z | from numpy.testing import assert_array_almost_equal
from tadataka.rigid_transform import transform
def assert_projection_equal(projection, pose, points, keypoints_pred):
assert_array_almost_equal(
projection.compute(transform(pose.R, pose.t, points)),
keypoints_pred
)
| 29.5 | 70 | 0.779661 | 37 | 295 | 5.918919 | 0.540541 | 0.100457 | 0.155251 | 0.200913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 295 | 9 | 71 | 32.777778 | 0.876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef07535fa3153ace04ec89cfcbab4849d3254d67 | 51 | py | Python | imbox/__init__.py | Arrelis/imbox | f39a39faddda04468cb65cd10f9a13f31e95d2c5 | [
"MIT"
] | 648 | 2015-01-02T23:25:10.000Z | 2022-03-30T09:22:20.000Z | imbox/__init__.py | Arrelis/imbox | f39a39faddda04468cb65cd10f9a13f31e95d2c5 | [
"MIT"
] | 132 | 2015-01-13T14:11:47.000Z | 2022-01-18T23:44:05.000Z | imbox/__init__.py | Arrelis/imbox | f39a39faddda04468cb65cd10f9a13f31e95d2c5 | [
"MIT"
] | 171 | 2015-01-15T16:51:57.000Z | 2022-03-12T21:44:55.000Z | from imbox.imbox import Imbox
__all__ = ['Imbox']
| 12.75 | 29 | 0.72549 | 7 | 51 | 4.714286 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 3 | 30 | 17 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ef138b8b7c961fc4eb5f7cbdc1d96ab96d036765 | 1,251 | py | Python | python/hub/notifier.py | majjihari/0-hub | b4febc191595f1f36e0fe64eec4b631f1a40698a | [
"Apache-2.0"
] | null | null | null | python/hub/notifier.py | majjihari/0-hub | b4febc191595f1f36e0fe64eec4b631f1a40698a | [
"Apache-2.0"
] | 34 | 2018-08-01T12:52:35.000Z | 2022-01-24T18:41:48.000Z | python/hub/notifier.py | majjihari/0-hub | b4febc191595f1f36e0fe64eec4b631f1a40698a | [
"Apache-2.0"
] | 2 | 2020-12-26T11:34:14.000Z | 2021-01-05T20:08:24.000Z | import queue
import json
class EventNotifier:
def __init__(self):
self.listeners = {}
def initialize(self, id):
q = queue.Queue(maxsize=8192)
self.listeners[id] = q
return q
def error(self, msg):
return {"status": "error", "message": msg}
# flag this id as end... | 22.745455 | 55 | 0.584333 | 168 | 1,251 | 4.315476 | 0.386905 | 0.143448 | 0.103448 | 0.049655 | 0.154483 | 0.088276 | 0.088276 | 0.088276 | 0 | 0 | 0 | 0.00463 | 0.309353 | 1,251 | 54 | 56 | 23.166667 | 0.834491 | 0.141487 | 0 | 0.181818 | 0 | 0 | 0.053521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0.060606 | 0.121212 | 0.69697 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ef1ce027bc2d57cf6ed2dfd476eca7f658232d8f | 48 | py | Python | instance/config.py | jameskomo/personal-blog | d4756dbb0a21960edaef893379ef64286ed8b57d | [
"MIT"
] | null | null | null | instance/config.py | jameskomo/personal-blog | d4756dbb0a21960edaef893379ef64286ed8b57d | [
"MIT"
] | null | null | null | instance/config.py | jameskomo/personal-blog | d4756dbb0a21960edaef893379ef64286ed8b57d | [
"MIT"
] | null | null | null | BLOG_API_BASE_URL='KoMoH'
SECRET_KEY = 'KoMoH'
| 12 | 25 | 0.770833 | 8 | 48 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 48 | 3 | 26 | 16 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef370acac3d226db771bdf39234e46897bf257ca | 57 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/Stefan-Boltzmann constant.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/Stefan-Boltzmann constant.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/Stefan-Boltzmann constant.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["Stefan-Boltzmann constant"] | 57 | 57 | 0.877193 | 6 | 57 | 8.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 57 | 1 | 57 | 57 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.431034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef5e2277e7afed50f2af3f9bfc96199a38c138ca | 52 | py | Python | scratch/eyy/dummy_script.py | sasgc6/pysmurf | a370b515ab717c982781223da147bea3c8fb3a9c | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-10-17T02:37:59.000Z | 2022-03-09T16:42:34.000Z | scratch/eyy/dummy_script.py | sasgc6/pysmurf | a370b515ab717c982781223da147bea3c8fb3a9c | [
"BSD-3-Clause-LBNL"
] | 446 | 2019-04-10T04:46:20.000Z | 2022-03-15T20:27:57.000Z | scratch/eyy/dummy_script.py | sasgc6/pysmurf | a370b515ab717c982781223da147bea3c8fb3a9c | [
"BSD-3-Clause-LBNL"
] | 13 | 2019-02-05T18:02:05.000Z | 2021-03-02T18:41:49.000Z | # This does nothing
import numpy as np
test = True
| 10.4 | 19 | 0.730769 | 9 | 52 | 4.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 52 | 4 | 20 | 13 | 0.95 | 0.326923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3232dd73b0a82fd0a1e7c6b58da1573424744668 | 522 | py | Python | pypixiv/user/model.py | ombe1229/pypixiv | db4ab6721b299e8f024537f053935201072742a7 | [
"MIT"
] | 4 | 2021-02-19T07:07:47.000Z | 2021-07-30T13:25:29.000Z | pypixiv/user/model.py | ombe1229/pypixiv | db4ab6721b299e8f024537f053935201072742a7 | [
"MIT"
] | 1 | 2021-07-30T04:52:12.000Z | 2021-08-01T16:51:42.000Z | pypixiv/user/model.py | ombe1229/pypixiv | db4ab6721b299e8f024537f053935201072742a7 | [
"MIT"
] | 1 | 2021-07-30T15:42:59.000Z | 2021-07-30T15:42:59.000Z | from pypixiv.user.body import UserFullInfoBody, UserInfoBody
from typing import Any
from pypixiv.abc import BasePixiv
class UserInfo(BasePixiv):
def __init__(self, response: Any):
super().__init__(response)
@property
def body(self) -> UserInfoBody:
return UserInfoBody(super().body)
clas... | 23.727273 | 60 | 0.703065 | 56 | 522 | 6.267857 | 0.375 | 0.062678 | 0.091168 | 0.11396 | 0.381766 | 0.381766 | 0.381766 | 0.381766 | 0.381766 | 0.381766 | 0 | 0 | 0.197318 | 522 | 21 | 61 | 24.857143 | 0.837709 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3249bf88f110d6988cf2e68e0a788b8c2675a9f0 | 43 | py | Python | sfepy/fem/extmods/__init__.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | 1 | 2015-07-30T13:47:23.000Z | 2015-07-30T13:47:23.000Z | sfepy/fem/extmods/__init__.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | null | null | null | sfepy/fem/extmods/__init__.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | null | null | null | __all__ = ['fem', 'geometry', 'meshutils']
| 21.5 | 42 | 0.627907 | 4 | 43 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 43 | 1 | 43 | 43 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3261cbf1f04fc704527f276189dbf3dce48d4e64 | 338 | py | Python | Bloggie/web/admin.py | ArunSankarKs/Bloggie | 5814c498d044a6cb5e047eec846d71ccea7cce7c | [
"BSD-3-Clause"
] | 4 | 2019-09-29T03:29:56.000Z | 2019-10-09T09:41:39.000Z | Bloggie/web/admin.py | ArunSankarKs/Bloggie | 5814c498d044a6cb5e047eec846d71ccea7cce7c | [
"BSD-3-Clause"
] | 10 | 2020-06-05T23:14:16.000Z | 2022-03-11T23:59:46.000Z | Bloggie/web/admin.py | ArunSankarKs/Bloggie | 5814c498d044a6cb5e047eec846d71ccea7cce7c | [
"BSD-3-Clause"
] | 1 | 2019-09-25T15:03:36.000Z | 2019-09-25T15:03:36.000Z | from django.contrib import admin
# Register your models here so that you can CRUD them from Django Admin Site
from web.models import Comment, Article, Topic, Business, Profile
admin.site.register(Article)
admin.site.register(Topic)
admin.site.register(Comment)
admin.site.register(Business)
admin.site... | 24.142857 | 77 | 0.772189 | 48 | 338 | 5.4375 | 0.458333 | 0.206897 | 0.325671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147929 | 338 | 14 | 78 | 24.142857 | 0.90625 | 0.218935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
326978ec57d1402afb9f816b6f65f731f691584e | 848 | py | Python | spar_python/circuit_generation/ibm/ibm_batch.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | spar_python/circuit_generation/ibm/ibm_batch.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | spar_python/circuit_generation/ibm/ibm_batch.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z |
# *****************************************************************
# Copyright 2015 MIT Lincoln Laboratory
# Project: SPAR
# Authors: SY
# Description: IBM TA2 batch class
#
# Modifications:
# Date Name Modification
# ---- ---- ------------... | 30.285714 | 67 | 0.4375 | 79 | 848 | 4.556962 | 0.670886 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02253 | 0.319575 | 848 | 27 | 68 | 31.407407 | 0.601386 | 0.599057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
32840e52e24b8d715d4a6e5f6b6ce4b1f3fdc56d | 145 | py | Python | src/core/repository/databases/__init__.py | lucassaporetti/bookstore | 9a33d3eebd1f099a27e8a7089a1d9c696613888a | [
"MIT"
] | 1 | 2021-02-11T18:44:53.000Z | 2021-02-11T18:44:53.000Z | src/core/repository/databases/__init__.py | lucassaporetti/bookstore | 9a33d3eebd1f099a27e8a7089a1d9c696613888a | [
"MIT"
] | null | null | null | src/core/repository/databases/__init__.py | lucassaporetti/bookstore | 9a33d3eebd1f099a27e8a7089a1d9c696613888a | [
"MIT"
] | null | null | null | # _*_ coding: utf-8 _*_
#
# Package: bookstore.src.core.repository.databases
__all__ = ["book_repository", "db_repository", "mysql_repository"]
| 24.166667 | 66 | 0.737931 | 16 | 145 | 6 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.103448 | 145 | 5 | 67 | 29 | 0.730769 | 0.482759 | 0 | 0 | 0 | 0 | 0.619718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
328eabe575981d8554ab996b55554ba6d6c75230 | 207 | py | Python | doctotxt.py.py | harmydiano/yorubastopwords | dd3f6ead03522653004119c7222f9f3e1809e35a | [
"MIT"
] | null | null | null | doctotxt.py.py | harmydiano/yorubastopwords | dd3f6ead03522653004119c7222f9f3e1809e35a | [
"MIT"
] | null | null | null | doctotxt.py.py | harmydiano/yorubastopwords | dd3f6ead03522653004119c7222f9f3e1809e35a | [
"MIT"
] | null | null | null |
import docx2txt
def doctotxt(filename):
my_text = docx2txt.process(filename)
with open(".\\mynewdirectory\\Output2.txt", "w") as text_file:
return text_file.write((my_text).encode("utf-8"))
| 29.571429 | 66 | 0.695652 | 28 | 207 | 5 | 0.75 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.149758 | 207 | 6 | 67 | 34.5 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.174757 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3290c6f05f72ccf7391cbf2c0321dd30215b5f53 | 226 | py | Python | tests/test_main.py | outloudvi/gu | 4070c15d9cf1e48284f5c27a8354c25523b44e41 | [
"MIT"
] | 2 | 2020-01-30T19:48:36.000Z | 2020-01-31T00:15:43.000Z | tests/test_main.py | outloudvi/gu | 4070c15d9cf1e48284f5c27a8354c25523b44e41 | [
"MIT"
] | 1 | 2020-01-31T16:59:51.000Z | 2020-01-31T17:01:56.000Z | tests/test_main.py | outloudvi/gu | 4070c15d9cf1e48284f5c27a8354c25523b44e41 | [
"MIT"
] | 2 | 2020-01-30T18:34:03.000Z | 2020-11-06T15:57:31.000Z | from gu import cli
from gu.sender import StdoutSender
import os
def test_stdout_package():
pkg = StdoutSender({})
pkg.sendText("hello, world")
def test_cli():
assert os.system("gu --sender stdout hello") == 0
| 16.142857 | 53 | 0.690265 | 32 | 226 | 4.78125 | 0.5625 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.190265 | 226 | 13 | 54 | 17.384615 | 0.830601 | 0 | 0 | 0 | 0 | 0 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
32a5df997f842bfde06d0eb50051eadd0a014101 | 821 | py | Python | loadlimit/__init__.py | arielmakestuff/loadlimit | 70d3d23eecfe7922699098ea4901cc8673d14576 | [
"MIT"
] | null | null | null | loadlimit/__init__.py | arielmakestuff/loadlimit | 70d3d23eecfe7922699098ea4901cc8673d14576 | [
"MIT"
] | 5 | 2016-11-28T16:59:44.000Z | 2017-03-18T17:10:40.000Z | loadlimit/__init__.py | arielmakestuff/loadlimit | 70d3d23eecfe7922699098ea4901cc8673d14576 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# loadlimit/__init__.py
# Copyright (C) 2016 authors and contributors (see AUTHORS file)
#
# This module is released under the MIT License.
"""loadlimit package"""
# ============================================================================
# Imports
# =======================================... | 26.483871 | 78 | 0.294762 | 43 | 821 | 5.255814 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009371 | 0.090134 | 821 | 30 | 79 | 27.366667 | 0.293173 | 0.809988 | 0 | 0 | 0 | 0 | 0.308824 | 0.176471 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32ae6b29022d3e6eaea6a3b088df710df0d8428e | 595 | py | Python | lambda/stepfunction_create_solution_version.py | ksmin23/personalize-data-science-sdk-workflow | 402b7fe0a5356d10234c3261d939fc81e76b4a41 | [
"MIT-0"
] | null | null | null | lambda/stepfunction_create_solution_version.py | ksmin23/personalize-data-science-sdk-workflow | 402b7fe0a5356d10234c3261d939fc81e76b4a41 | [
"MIT-0"
] | null | null | null | lambda/stepfunction_create_solution_version.py | ksmin23/personalize-data-science-sdk-workflow | 402b7fe0a5356d10234c3261d939fc81e76b4a41 | [
"MIT-0"
] | null | null | null | import os
import json
import base64
import boto3
AWS_REGION_NAME = os.getenv('AWS_REGION_NAME', 'us-east-1')
personalize = boto3.client('personalize', region_name=AWS_REGION_NAME)
def lambda_handler(event, context):
create_solution_version_response = personalize.create_solution_version(
solutionArn = ev... | 25.869565 | 81 | 0.756303 | 71 | 595 | 5.971831 | 0.464789 | 0.247642 | 0.198113 | 0.205189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017893 | 0.154622 | 595 | 22 | 82 | 27.045455 | 0.82505 | 0 | 0 | 0 | 0 | 0 | 0.159664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32b21b9e25faa3a8ec1fdabb4eecd30beaf17cd6 | 4,023 | py | Python | pybehome/__init__.py | bratanon/pybehome | 76fa46dc13dcccd23f6d08a966a2b7c59e351ae8 | [
"MIT"
] | 1 | 2020-02-16T19:56:15.000Z | 2020-02-16T19:56:15.000Z | pybehome/__init__.py | bratanon/pybehome | 76fa46dc13dcccd23f6d08a966a2b7c59e351ae8 | [
"MIT"
] | null | null | null | pybehome/__init__.py | bratanon/pybehome | 76fa46dc13dcccd23f6d08a966a2b7c59e351ae8 | [
"MIT"
] | null | null | null | import logging
from requests import RequestException
from pybehome import api
_LOGGER = logging.getLogger(__name__)
class PyBeHome:
def __init__(self, username, password):
self._username = username
self._password = password
self._token = None
self.session = None
self.d... | 25.954839 | 75 | 0.627392 | 452 | 4,023 | 5.334071 | 0.205752 | 0.078805 | 0.075487 | 0.054749 | 0.331398 | 0.218167 | 0.136043 | 0.097055 | 0.076317 | 0.032352 | 0 | 0 | 0.278648 | 4,023 | 154 | 76 | 26.123377 | 0.830806 | 0 | 0 | 0.362069 | 0 | 0 | 0.087745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.025862 | 0.025862 | 0.172414 | 0.525862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
32c7b697bc756b025da320a229d596603bd41b6c | 1,272 | py | Python | Python/Jokenpo.py | TSCTiago/PythonTeste | f406db1d862965d9dfa4dee58c3a917041174f2d | [
"MIT"
] | null | null | null | Python/Jokenpo.py | TSCTiago/PythonTeste | f406db1d862965d9dfa4dee58c3a917041174f2d | [
"MIT"
] | null | null | null | Python/Jokenpo.py | TSCTiago/PythonTeste | f406db1d862965d9dfa4dee58c3a917041174f2d | [
"MIT"
] | null | null | null | import random
from time import sleep
print('GAME PEDRA-PAPEL- TESOURA')
print('''' OPÇÕES
[0] = PEDRA
[1] = PAPEL
[2] = TESOURA
''')
puter = random.randint(0, 2)
while True:
jog = int(input('SUA OPÇÃO: '))
if 0 != jog and jog != 1 and jog != 2:
print('Opção Inválida')
print('Tente no... | 24.941176 | 42 | 0.556604 | 157 | 1,272 | 4.509554 | 0.242038 | 0.254237 | 0.254237 | 0.04661 | 0.559322 | 0.375706 | 0.186441 | 0 | 0 | 0 | 0 | 0.026816 | 0.296384 | 1,272 | 51 | 43 | 24.941176 | 0.764246 | 0 | 0 | 0.54902 | 0 | 0 | 0.349568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.039216 | 0.490196 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
086d4d2b9412c3a5e11a76f770c222813bfb5129 | 1,025 | py | Python | src/projects/migrations/0027_auto_20170227_1242.py | MEEM-MLHD/territoire_conseil | a1213575bc4fa12574859aab0dfa90f4eff7c6eb | [
"BSD-3-Clause"
] | null | null | null | src/projects/migrations/0027_auto_20170227_1242.py | MEEM-MLHD/territoire_conseil | a1213575bc4fa12574859aab0dfa90f4eff7c6eb | [
"BSD-3-Clause"
] | null | null | null | src/projects/migrations/0027_auto_20170227_1242.py | MEEM-MLHD/territoire_conseil | a1213575bc4fa12574859aab0dfa90f4eff7c6eb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-27 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0026_stakeholdertype_manager'),
]
operations = [
migrations.Remov... | 25.625 | 75 | 0.570732 | 88 | 1,025 | 6.431818 | 0.534091 | 0.079505 | 0.183746 | 0.212014 | 0.388693 | 0.388693 | 0.388693 | 0.388693 | 0 | 0 | 0 | 0.028694 | 0.32 | 1,025 | 39 | 76 | 26.282051 | 0.783357 | 0.06439 | 0 | 0.4375 | 1 | 0 | 0.17887 | 0.075314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0890600d9745f0a98d9c589c9db641b844d463bd | 205 | py | Python | hello/urls.py | narathip1598/gogodeploy | 625424ae616d50d1c31e408923b271271d5f267c | [
"MIT"
] | null | null | null | hello/urls.py | narathip1598/gogodeploy | 625424ae616d50d1c31e408923b271271d5f267c | [
"MIT"
] | null | null | null | hello/urls.py | narathip1598/gogodeploy | 625424ae616d50d1c31e408923b271271d5f267c | [
"MIT"
] | null | null | null | from django.urls import path
from django.contrib import admin
from . import views
urlpatterns = [
path('', views.loginForm),
path('admin/', admin.site.urls),
path('bet',views.betLotto),
]
| 20.5 | 36 | 0.673171 | 26 | 205 | 5.307692 | 0.5 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185366 | 205 | 9 | 37 | 22.777778 | 0.826347 | 0 | 0 | 0 | 0 | 0 | 0.043902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08b966bbbdc9e3a560310c086b2453e55a46f151 | 144 | py | Python | collectData.py | Samleo8/OpenRadar | 5460891fd0ea1218dce5a9c279a22696a8936de2 | [
"Apache-2.0"
] | null | null | null | collectData.py | Samleo8/OpenRadar | 5460891fd0ea1218dce5a9c279a22696a8936de2 | [
"Apache-2.0"
] | null | null | null | collectData.py | Samleo8/OpenRadar | 5460891fd0ea1218dce5a9c279a22696a8936de2 | [
"Apache-2.0"
] | null | null | null | import mmwave as mm
from mmwave.dataloader import DCA1000
dca = DCA1000()
adc_data = dca.read()
radar_cube = mm.dsp.range_processing(adc_data) | 24 | 46 | 0.784722 | 23 | 144 | 4.73913 | 0.695652 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.125 | 144 | 6 | 46 | 24 | 0.801587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08cc107468177099a1c1a6db7c38f10f30366004 | 151 | py | Python | banditpylib/learners/ordinary_fcbai_learner/__init__.py | XiGYmax/banditpylib | 07698a1c6b17720a8199dea76580546fe3dfb9be | [
"MIT"
] | null | null | null | banditpylib/learners/ordinary_fcbai_learner/__init__.py | XiGYmax/banditpylib | 07698a1c6b17720a8199dea76580546fe3dfb9be | [
"MIT"
] | null | null | null | banditpylib/learners/ordinary_fcbai_learner/__init__.py | XiGYmax/banditpylib | 07698a1c6b17720a8199dea76580546fe3dfb9be | [
"MIT"
] | null | null | null | from .utils import *
from .exp_gap import *
from .lilucb_heur import *
__all__ = [
'OrdinaryFCBAILearner',
'ExpGap',
'LilUCBHeuristic'
]
| 13.727273 | 27 | 0.668874 | 15 | 151 | 6.333333 | 0.733333 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218543 | 151 | 10 | 28 | 15.1 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.271523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08f825646e1d1ef0b62e6018f093b3692876fa32 | 323 | py | Python | timely_beliefs/tests/test_utils.py | SeitaBV/timely-beliefs | 145ae53449393d27c140645fe4c289f4624cc77b | [
"MIT"
] | 12 | 2018-12-20T21:42:21.000Z | 2022-01-06T18:31:53.000Z | timely_beliefs/tests/test_utils.py | SeitaBV/timely-beliefs | 145ae53449393d27c140645fe4c289f4624cc77b | [
"MIT"
] | 51 | 2019-03-26T12:28:17.000Z | 2022-01-21T22:50:13.000Z | timely_beliefs/tests/test_utils.py | SeitaBV/timely-beliefs | 145ae53449393d27c140645fe4c289f4624cc77b | [
"MIT"
] | 5 | 2019-06-03T14:38:07.000Z | 2019-10-28T21:10:35.000Z | from timely_beliefs.utils import remove_class_init_kwargs
def test_remove_used_kwargs():
class MyCls:
def __init__(self, a, b):
pass
kwargs = dict(a=1, b=2, c=3, d=4, self=5)
remaining_kwargs = remove_class_init_kwargs(MyCls, kwargs)
assert remaining_kwargs == dict(c=3, d=4, self=... | 26.916667 | 62 | 0.678019 | 52 | 323 | 3.903846 | 0.519231 | 0.108374 | 0.147783 | 0.206897 | 0.08867 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0.031496 | 0.213622 | 323 | 11 | 63 | 29.363636 | 0.767717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3ea92169e2326eac3ecc254d456606b9569818b0 | 378 | py | Python | old/music0/CountIter.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | 2 | 2020-11-09T19:30:26.000Z | 2020-12-29T21:38:40.000Z | old/music0/CountIter.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | null | null | null | old/music0/CountIter.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | null | null | null | from __future__ import division
class CountIter:
def __init__ (self, bjork):
#self.bjork = cycle (bjork)
self.bjork = bjork.sequence.__iter__ ()
self.length = sum (bjork.sequence)
def __len__ (self):
return self.length
def __iter__ (self):
return self
def next (self):
count = 1
while True:
bj = se... | 22.235294 | 41 | 0.679894 | 54 | 378 | 4.388889 | 0.462963 | 0.151899 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.21164 | 378 | 17 | 42 | 22.235294 | 0.785235 | 0.068783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3eb99d1c6f029b26cdd18b5fe89b3bef3e3ad690 | 262 | py | Python | scripts/portal/aranTutorGuide2.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 2 | 2020-04-15T03:16:07.000Z | 2020-08-12T23:28:32.000Z | scripts/portal/aranTutorGuide2.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | null | null | null | scripts/portal/aranTutorGuide2.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 3 | 2020-08-25T06:55:25.000Z | 2020-12-01T13:07:43.000Z | # 914000220
if not "cmd=o" in sm.getQRValue(21002):
sm.showFieldEffect("aran/tutorialGuide3")
sm.systemMessage("You can use a Command Attack by pressing both the arrow key and the attack key after a Consecutive Attack.")
sm.addQRValue(21002, "cmd=o") | 52.4 | 130 | 0.740458 | 40 | 262 | 4.85 | 0.725 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090498 | 0.156489 | 262 | 5 | 131 | 52.4 | 0.78733 | 0.034351 | 0 | 0 | 0 | 0.25 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3ee2c90fe7e83796bdf182cecd8f3026177ffb41 | 741 | py | Python | gadget/journal/entry/metadata/bracket.py | rlnsanz/inspectional-rara-parakeet | 2c7919ed432616ec016a5afcd6718d16fa65e8af | [
"Apache-2.0"
] | 114 | 2018-04-18T16:43:11.000Z | 2022-02-21T20:28:22.000Z | gadget/journal/entry/metadata/bracket.py | rlnsanz/inspectional-rara-parakeet | 2c7919ed432616ec016a5afcd6718d16fa65e8af | [
"Apache-2.0"
] | 72 | 2018-06-28T18:12:11.000Z | 2022-02-16T05:27:44.000Z | flor/journal/entry/metadata/bracket.py | vishalbelsare/flor | bb06f7ba019a55802e9ad95f09d4afe68ea514f0 | [
"Apache-2.0"
] | 19 | 2018-04-26T05:30:24.000Z | 2021-12-16T02:20:28.000Z | from ..constants import *
from .abstract import Metadata
VALID_BRACKETS = (LBRACKET, RBRACKET)
class Bracket(Metadata):
def __init__(self, sk, gk, meta, predicate=None, timestamp=None):
assert meta in VALID_BRACKETS
super().__init__(sk, gk, meta)
self.predicate = predicate
self.ti... | 27.444444 | 85 | 0.68556 | 95 | 741 | 5.105263 | 0.4 | 0.115464 | 0.03299 | 0.074227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224022 | 741 | 26 | 86 | 28.5 | 0.843478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.263158 | false | 0 | 0.105263 | 0.210526 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3eedf99191115048d2c36c7b3ae05dfaf8efb2cd | 164 | py | Python | list.py | ghandres/pythonworld | c30d3f411c9705384d557d5fd2c40e4e1fd00833 | [
"Apache-2.0"
] | null | null | null | list.py | ghandres/pythonworld | c30d3f411c9705384d557d5fd2c40e4e1fd00833 | [
"Apache-2.0"
] | 1 | 2021-03-05T22:29:47.000Z | 2021-03-05T22:31:02.000Z | list.py | ghandres/pythonworld | c30d3f411c9705384d557d5fd2c40e4e1fd00833 | [
"Apache-2.0"
] | null | null | null | import requests
import json
response = requests.get("https://swapi.dev/api/people")
json_data = json.loads(response.text)
print (json.dumps(json_data,indent=4))
| 18.222222 | 55 | 0.762195 | 25 | 164 | 4.92 | 0.68 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.091463 | 164 | 8 | 56 | 20.5 | 0.818792 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3efc3b1913b3401c817cd2fb6688957f8c21f20e | 1,051 | py | Python | tests/test_numeric.py | freywaid/dotted | 7781eec26a0169dc8b3e098cc2c79fbd38eb5f97 | [
"MIT"
] | 2 | 2020-05-05T18:15:22.000Z | 2021-03-24T09:03:24.000Z | tests/test_numeric.py | freywaid/dotted | 7781eec26a0169dc8b3e098cc2c79fbd38eb5f97 | [
"MIT"
] | null | null | null | tests/test_numeric.py | freywaid/dotted | 7781eec26a0169dc8b3e098cc2c79fbd38eb5f97 | [
"MIT"
] | null | null | null | import dotted
def test_numeric_get_key():
T = {111: {'stuff': 'hi'}}
m = dotted.get(T, '111.stuff')
assert m == 'hi'
m = dotted.get(T, '111.0.stuff')
assert m != 'hi'
# 111.0 == 111
m = dotted.get(T, '#"111.0".stuff')
assert m == 'hi'
def test_numeric_get_slot():
T = {111: {'s... | 18.767857 | 41 | 0.493815 | 153 | 1,051 | 3.300654 | 0.137255 | 0.152475 | 0.124752 | 0.130693 | 0.750495 | 0.750495 | 0.742574 | 0.742574 | 0.675248 | 0.481188 | 0 | 0.097311 | 0.256898 | 1,051 | 55 | 42 | 19.109091 | 0.549296 | 0.036156 | 0 | 0.375 | 0 | 0 | 0.181368 | 0 | 0 | 0 | 0 | 0 | 0.34375 | 1 | 0.15625 | false | 0 | 0.03125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41057ee692574e63a15d94641e6dd693e6d4d271 | 302 | py | Python | src/frameworks_and_drivers/blueprints/registereds_blueprints.py | diododias/flask-boilerplate | 1cdcee5b11f63e5ce3017d0c64ac76f69bf7df34 | [
"MIT"
] | null | null | null | src/frameworks_and_drivers/blueprints/registereds_blueprints.py | diododias/flask-boilerplate | 1cdcee5b11f63e5ce3017d0c64ac76f69bf7df34 | [
"MIT"
] | null | null | null | src/frameworks_and_drivers/blueprints/registereds_blueprints.py | diododias/flask-boilerplate | 1cdcee5b11f63e5ce3017d0c64ac76f69bf7df34 | [
"MIT"
] | null | null | null | """
Append new blueprints
"""
from src.frameworks_and_drivers.blueprints.auth_blueprint import auth_blueprint
from src.frameworks_and_drivers.blueprints.index_blueprint import index_blueprint
blueprints_store = list()
blueprints_store.append(auth_blueprint)
blueprints_store.append(index_blueprint)
| 25.166667 | 81 | 0.860927 | 38 | 302 | 6.5 | 0.368421 | 0.157895 | 0.137652 | 0.161943 | 0.299595 | 0.299595 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069536 | 302 | 11 | 82 | 27.454545 | 0.879004 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
f5ade3bb96c68536d05bfd3bd6bcc7f238fcb949 | 130 | py | Python | python/many_vars.py | robotlightsyou/test | 015f13943fc402d8ce86c5f6d2f5a7d032b3340a | [
"MIT"
] | 2 | 2019-05-26T15:09:34.000Z | 2021-09-12T08:01:23.000Z | python/many_vars.py | robotlightsyou/test | 015f13943fc402d8ce86c5f6d2f5a7d032b3340a | [
"MIT"
] | null | null | null | python/many_vars.py | robotlightsyou/test | 015f13943fc402d8ce86c5f6d2f5a7d032b3340a | [
"MIT"
] | 1 | 2021-04-11T20:28:21.000Z | 2021-04-11T20:28:21.000Z | import dis
exec("""
def f():
""" + """
""".join(["X"+str(x)+"=" + str(x) for x in range(65539)]))
f()
print(dis.dis(f))
| 13 | 62 | 0.453846 | 21 | 130 | 2.809524 | 0.619048 | 0.135593 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0.207692 | 130 | 9 | 63 | 14.444444 | 0.524272 | 0 | 0 | 0 | 0 | 0 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.