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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b8dc6c69d21a466e311b841fecb4b5727f6cab3 | 886 | py | Python | tablarray/__init__.py | chriscannon9001/tablarray | f07530f84a8c86abe996cdb999233ed9bb8edf7e | [
"BSD-3-Clause"
] | null | null | null | tablarray/__init__.py | chriscannon9001/tablarray | f07530f84a8c86abe996cdb999233ed9bb8edf7e | [
"BSD-3-Clause"
] | null | null | null | tablarray/__init__.py | chriscannon9001/tablarray | f07530f84a8c86abe996cdb999233ed9bb8edf7e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
TablArray or tables of cells
When the best structure of data is any-dimensional cells arranged
in any-dimensional tables - ATC provides fast numpy-like array
operations with broadcasting to handle both cellular-dimensions
and tabular-dimensions at once.
Portions of AT... | 25.314286 | 79 | 0.76298 | 136 | 886 | 4.911765 | 0.654412 | 0.149701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02038 | 0.1693 | 886 | 34 | 80 | 26.058824 | 0.887228 | 0.654628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9bac6a969801bc08a9ed32e1ba0b2926b94b6561 | 259 | py | Python | hearthstone/testing/battlegrounds_test_case.py | JDBumgardner/stone_ground_hearth_battles | 9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f | [
"Apache-2.0"
] | 20 | 2020-08-01T03:14:57.000Z | 2021-12-19T11:47:50.000Z | hearthstone/testing/battlegrounds_test_case.py | JDBumgardner/stone_ground_hearth_battles | 9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f | [
"Apache-2.0"
] | 48 | 2020-08-01T03:06:43.000Z | 2022-02-27T10:03:47.000Z | hearthstone/testing/battlegrounds_test_case.py | JDBumgardner/stone_ground_hearth_battles | 9fe095651fab60e8ddbf563f0b9b7f3e723d5f4f | [
"Apache-2.0"
] | 3 | 2020-06-28T01:23:37.000Z | 2021-11-11T23:09:36.000Z | import unittest
import logging
from hearthstone.simulator.core import player
class BattleGroundsTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
logging.basicConfig(level=logging.DEBUG)
player.TEST_MODE = True | 21.583333 | 48 | 0.749035 | 28 | 259 | 6.892857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177606 | 259 | 12 | 49 | 21.583333 | 0.906103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 |
32ca2cc66f04c6a6315e933e7ff5dc447f0836bb | 1,327 | py | Python | python_snippets/testing/test_phonebook.py | balapitchuka/code_snippets | 27298395fa66b000ca8bb79b8e5c106d47879b55 | [
"MIT"
] | null | null | null | python_snippets/testing/test_phonebook.py | balapitchuka/code_snippets | 27298395fa66b000ca8bb79b8e5c106d47879b55 | [
"MIT"
] | null | null | null | python_snippets/testing/test_phonebook.py | balapitchuka/code_snippets | 27298395fa66b000ca8bb79b8e5c106d47879b55 | [
"MIT"
] | null | null | null | import unittest
from phonebook import PhoneBook
class PhonebookTest(unittest.TestCase):
def setUp(self):
self.phonebook = PhoneBook()
def tearDown(self):
pass
def test_lookup_by_name(self):
self.phonebook.add('bob', "12345")
number = self.phonebook.lookup('bob')
... | 30.159091 | 59 | 0.676714 | 155 | 1,327 | 5.587097 | 0.290323 | 0.210162 | 0.12933 | 0.092379 | 0.497691 | 0.497691 | 0.401848 | 0.401848 | 0.401848 | 0.401848 | 0 | 0.036967 | 0.204974 | 1,327 | 43 | 60 | 30.860465 | 0.783886 | 0.033911 | 0 | 0.290323 | 0 | 0 | 0.05721 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.290323 | false | 0.064516 | 0.064516 | 0 | 0.387097 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
32d274d389c96ec0aef46b435198d7bc13ca9e98 | 666 | py | Python | factory-method/python/OverCreatorFactoryMethod.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 5 | 2018-10-19T15:30:00.000Z | 2018-11-30T06:02:12.000Z | factory-method/python/OverCreatorFactoryMethod.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | null | null | null | factory-method/python/OverCreatorFactoryMethod.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 2 | 2018-10-19T15:30:08.000Z | 2019-02-20T15:28:38.000Z | #!/usr/bin/env python
# coding:utf8
from abc import abstractmethod, ABCMeta
class Product(metaclass=ABCMeta):
@abstractmethod
def productOperation(self):
pass
class Creator(object):
__clazz = None
def __init__(self, name):
self.__clazz = name
def creatorOperaton(self):
... | 19.588235 | 56 | 0.687688 | 69 | 666 | 6.376812 | 0.507246 | 0.086364 | 0.104545 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001916 | 0.216216 | 666 | 33 | 57 | 20.181818 | 0.840996 | 0.048048 | 0 | 0.105263 | 0 | 0 | 0.117089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.052632 | 0.052632 | 0.052632 | 0.578947 | 0.105263 | 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 |
32da9488cc5fd736930b7ac7608165a1b929c78f | 1,836 | py | Python | alpine/exception.py | alpinedatalabs/python-alpine-api | 2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7 | [
"MIT"
] | null | null | null | alpine/exception.py | alpinedatalabs/python-alpine-api | 2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7 | [
"MIT"
] | 8 | 2017-03-07T01:23:22.000Z | 2019-10-24T22:45:46.000Z | alpine/exception.py | alpinedatalabs/python-alpine-api | 2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7 | [
"MIT"
] | 3 | 2017-03-13T11:15:19.000Z | 2019-03-24T21:47:05.000Z | """
Exception classes - Subclassing to check for specific errors
"""
class AlpineException(Exception):
"""
General Alpine Exception
"""
def __init__(self, reason, *args):
super(AlpineException, self).__init__(reason, *args)
self.reason = reason
def __repr__(self):
return '... | 12.662069 | 60 | 0.632898 | 116 | 1,836 | 9.87931 | 0.353448 | 0.298429 | 0.356021 | 0.045375 | 0.062827 | 0.062827 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251634 | 1,836 | 144 | 61 | 12.75 | 0.834061 | 0.095316 | 0 | 0.454545 | 0 | 0 | 0.025132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.409091 | 0 | 0.045455 | 0.545455 | 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 |
32f3a42c7b24c47cc77f7729636968623dc54f12 | 1,183 | py | Python | migration/migrations/course/20181116052235_notification_settings.py | muarachmann/Submitty | 86cea3d3441419089b1a3058d01c663e6807294c | [
"BSD-3-Clause"
] | null | null | null | migration/migrations/course/20181116052235_notification_settings.py | muarachmann/Submitty | 86cea3d3441419089b1a3058d01c663e6807294c | [
"BSD-3-Clause"
] | null | null | null | migration/migrations/course/20181116052235_notification_settings.py | muarachmann/Submitty | 86cea3d3441419089b1a3058d01c663e6807294c | [
"BSD-3-Clause"
] | null | null | null | def up(config, conn, semester, course):
with conn.cursor() as cursor:
cursor.execute("""CREATE TABLE IF NOT EXISTS notification_settings (
user_id character varying NOT NULL,
merge_threads BOOLEAN DEFAULT FALSE NOT NULL,
all_new_threads BOOLEAN DEFAULT FALSE NOT NULL,
all_new_pos... | 65.722222 | 173 | 0.76754 | 155 | 1,183 | 5.670968 | 0.387097 | 0.227531 | 0.108077 | 0.125142 | 0.565415 | 0.506257 | 0.473265 | 0.473265 | 0.384528 | 0.384528 | 0 | 0 | 0.174979 | 1,183 | 17 | 174 | 69.588235 | 0.900615 | 0 | 0 | 0 | 0 | 0.0625 | 0.755706 | 0.215554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0 | 0 | 0.125 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
32ffefd0cf88c8f5a858924cb91fc165f6fc516c | 323 | py | Python | omin/core/__init__.py | dmpio/omin | bedb36eafe681401c11d562f8d7117aad3d758d7 | [
"Unlicense"
] | null | null | null | omin/core/__init__.py | dmpio/omin | bedb36eafe681401c11d562f8d7117aad3d758d7 | [
"Unlicense"
] | null | null | null | omin/core/__init__.py | dmpio/omin | bedb36eafe681401c11d562f8d7117aad3d758d7 | [
"Unlicense"
] | 1 | 2021-12-29T16:55:05.000Z | 2021-12-29T16:55:05.000Z | # -*- coding: utf-8 -*-
"""omin.core
"""
# -------
# LiCENSE
# -------
# Copyright 2018 James Draper, Paul Grimsrud, Deborah Muoio, Colette Blach, Blair Chesnut, and Elizabeth Hauser.
from . import handles
from . import containers
from . import base
from . import operations
from . import pandomics
from . import guipyt... | 21.533333 | 112 | 0.690402 | 39 | 323 | 5.717949 | 0.74359 | 0.269058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018587 | 0.167183 | 323 | 14 | 113 | 23.071429 | 0.810409 | 0.517028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fd03817227a96d2eba34c5ed9e968710c663a64b | 292 | py | Python | Mundo 1/ex016.py | Alef-Martins/Exercicios_python_mundo-1 | df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c | [
"MIT"
] | null | null | null | Mundo 1/ex016.py | Alef-Martins/Exercicios_python_mundo-1 | df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c | [
"MIT"
] | null | null | null | Mundo 1/ex016.py | Alef-Martins/Exercicios_python_mundo-1 | df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c | [
"MIT"
] | null | null | null | #Pega um número real digitado pelo usuário e mostra na tela sua porção inteira.
from math import trunc
num = float(input("Digite um número: "))
print(f"O número digitado foi: {num} e sua parte inteira é: {trunc(num)}")
print(f'Função int() número real: {num}, porção inteira: {int(num)}') | 58.4 | 80 | 0.715753 | 49 | 292 | 4.265306 | 0.612245 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157534 | 292 | 5 | 81 | 58.4 | 0.849594 | 0.267123 | 0 | 0 | 0 | 0 | 0.671429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fd3719e3dcce607d391cbb25cc90930d3f29ea8e | 21,744 | py | Python | compiler/quack_middle.py | tclendo/tiny_vm | 87c55f66a3531b7cfe71d3ab5f06a573f932b4cd | [
"CC-BY-3.0"
] | null | null | null | compiler/quack_middle.py | tclendo/tiny_vm | 87c55f66a3531b7cfe71d3ab5f06a573f932b4cd | [
"CC-BY-3.0"
] | null | null | null | compiler/quack_middle.py | tclendo/tiny_vm | 87c55f66a3531b7cfe71d3ab5f06a573f932b4cd | [
"CC-BY-3.0"
] | null | null | null | from lark import Transformer, v_args
from quack_visitor import ASTVisitor
from quack_tables import tables
class ASTNode():
'''
Base class for all AST nodes
'''
def set_type(self, typ: str):
raise NotImplementedError()
def get_type(self):
raise NotImplementedError()
... | 29.069519 | 76 | 0.624632 | 2,501 | 21,744 | 5.312275 | 0.090364 | 0.069547 | 0.126449 | 0.032515 | 0.626148 | 0.572407 | 0.518591 | 0.473958 | 0.384691 | 0.345853 | 0 | 0 | 0.280629 | 21,744 | 747 | 77 | 29.108434 | 0.84938 | 0.050359 | 0 | 0.539806 | 0 | 0 | 0.005824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333981 | false | 0.023301 | 0.005825 | 0.161165 | 0.586408 | 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 |
fd45ccb374ce89d2b9705d10b81eeff337a7b32b | 1,434 | gyp | Python | sample/linear-sample.gyp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 19 | 2015-09-02T03:25:55.000Z | 2021-03-07T15:02:33.000Z | sample/linear-sample.gyp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 2 | 2015-12-11T12:03:11.000Z | 2017-09-13T09:03:33.000Z | sample/linear-sample.gyp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 6 | 2015-11-25T08:55:51.000Z | 2021-03-07T15:02:36.000Z | {
'variables': {
'linear_sample_parent_path': '/',
},
'targets': [
{
'target_name': 'tcp_client_sample',
'type': 'executable',
'sources': [
'tcp_client_sample.cpp',
],
},
{
'target_name': 'tcp_server_sample',
'type': 'executable',
'sources': [
... | 20.485714 | 45 | 0.43166 | 107 | 1,434 | 5.373832 | 0.196262 | 0.13913 | 0.278261 | 0.375652 | 0.775652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.39749 | 1,434 | 69 | 46 | 20.782609 | 0.665509 | 0 | 0 | 0.42029 | 0 | 0 | 0.44212 | 0.1053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fd51e84786fafb70c54aee6fd5c7c09ce0183ba7 | 21 | py | Python | custom_components/homegnome/const.py | RoboGnome/homegnome | a5afa184bd7b4c0f336b274470641e1a1e251ea3 | [
"MIT"
] | null | null | null | custom_components/homegnome/const.py | RoboGnome/homegnome | a5afa184bd7b4c0f336b274470641e1a1e251ea3 | [
"MIT"
] | null | null | null | custom_components/homegnome/const.py | RoboGnome/homegnome | a5afa184bd7b4c0f336b274470641e1a1e251ea3 | [
"MIT"
] | null | null | null | DOMAIN = "homegnome"
| 10.5 | 20 | 0.714286 | 2 | 21 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 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 |
fd6033503808f52d60a7b893b8961a3ae0619d2c | 441 | py | Python | tuzwa/serializer.py | EugeneZnm/LEVELS | 21874a7585b559795d49b3334e7bb9907af7888a | [
"Unlicense"
] | null | null | null | tuzwa/serializer.py | EugeneZnm/LEVELS | 21874a7585b559795d49b3334e7bb9907af7888a | [
"Unlicense"
] | 4 | 2020-06-05T19:28:58.000Z | 2021-09-08T00:33:00.000Z | tuzwa/serializer.py | EugeneZnm/LEVELS | 21874a7585b559795d49b3334e7bb9907af7888a | [
"Unlicense"
] | null | null | null | from rest_framework import serializers
from .models import Project, Profile
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model =Project
fields = ['image', 'image2', 'image3', 'project_name', 'caption', 'description', 'profile', 'user']
class ProfileSerializer(serializers.Mode... | 33.923077 | 107 | 0.678005 | 42 | 441 | 7.047619 | 0.642857 | 0.175676 | 0.209459 | 0.236486 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005666 | 0.199546 | 441 | 13 | 108 | 33.923077 | 0.832861 | 0 | 0 | 0.2 | 0 | 0 | 0.190045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fd60e123e2d221dd3722299f1c9de6d0a7325b89 | 986 | py | Python | onlinecourse/migrations/0002_auto_20211224_1844.py | Bedil09/riki-final-cloud-app-with-database | 539a745bf0cad1a34181330cf34b89acf2d2289d | [
"Apache-2.0"
] | null | null | null | onlinecourse/migrations/0002_auto_20211224_1844.py | Bedil09/riki-final-cloud-app-with-database | 539a745bf0cad1a34181330cf34b89acf2d2289d | [
"Apache-2.0"
] | null | null | null | onlinecourse/migrations/0002_auto_20211224_1844.py | Bedil09/riki-final-cloud-app-with-database | 539a745bf0cad1a34181330cf34b89acf2d2289d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.3 on 2021-12-24 18:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('onlinecourse', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='question',
old_name='lesson_id'... | 25.282051 | 51 | 0.542596 | 89 | 986 | 5.842697 | 0.516854 | 0.086538 | 0.192308 | 0.223077 | 0.434615 | 0.434615 | 0 | 0 | 0 | 0 | 0 | 0.03864 | 0.343813 | 986 | 38 | 52 | 25.947368 | 0.76507 | 0.045639 | 0 | 0.4375 | 1 | 0 | 0.124601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 |
b5ba381a19096c46dc982c7aa988aaf272e1bcd0 | 67 | py | Python | main.py | tunc2112/hangman_game | 777e793d573418a5d11024986eab9a65b0b3780c | [
"MIT"
] | null | null | null | main.py | tunc2112/hangman_game | 777e793d573418a5d11024986eab9a65b0b3780c | [
"MIT"
] | null | null | null | main.py | tunc2112/hangman_game | 777e793d573418a5d11024986eab9a65b0b3780c | [
"MIT"
] | null | null | null | import gui
if __name__ == '__main__':
win = gui.MainWindow()
| 13.4 | 27 | 0.641791 | 8 | 67 | 4.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223881 | 67 | 4 | 28 | 16.75 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b5be0917bb128e9abb1a3e74cf508df73f5ea6e5 | 676 | py | Python | image-scripts/run_sun.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 24 | 2021-07-29T11:18:24.000Z | 2022-03-09T06:03:48.000Z | image-scripts/run_sun.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 3 | 2021-08-18T07:34:39.000Z | 2022-03-18T02:16:00.000Z | image-scripts/run_sun.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 7 | 2021-07-30T12:24:09.000Z | 2022-03-31T15:25:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: shiming chen
"""
import os
os.system('''OMP_NUM_THREADS=8 python train_fear_inductive.py --gammaD 1 --gammaG 1 --gzsl \
--manualSeed 4115 --encoded_noise --preprocessing --cuda --image_embedding res101 --class_embedding att --nepoch 601 --ngh 4096 \
--a1 0.1 ... | 48.285714 | 129 | 0.701183 | 110 | 676 | 4.136364 | 0.763636 | 0.01978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142615 | 0.128698 | 676 | 14 | 130 | 48.285714 | 0.629881 | 0.096154 | 0 | 0 | 0 | 0.375 | 0.948505 | 0.038206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5cc88ffca040a19d26a425283f7ee61d852cf1a | 71 | py | Python | hellpy/structures/types.py | helldatabase/hellpy | 03dd87b6bb6717ac6029cecfa0655e5b83f9de61 | [
"MIT"
] | null | null | null | hellpy/structures/types.py | helldatabase/hellpy | 03dd87b6bb6717ac6029cecfa0655e5b83f9de61 | [
"MIT"
] | null | null | null | hellpy/structures/types.py | helldatabase/hellpy | 03dd87b6bb6717ac6029cecfa0655e5b83f9de61 | [
"MIT"
] | null | null | null | from typing import Union
BaseType = Union[str, int, bool, 'BaseType']
| 17.75 | 44 | 0.732394 | 10 | 71 | 5.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 71 | 3 | 45 | 23.666667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 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 |
bd1160f7f63f5fac75f58651f5e4d879962cfb35 | 160 | py | Python | spam/behaviors.py | pydanny/dj-spam | 924dbe794f7b421015445964c38b65d3e48990db | [
"BSD-3-Clause"
] | 23 | 2015-07-29T05:50:50.000Z | 2020-07-09T00:39:26.000Z | spam/behaviors.py | pydanny/dj-spam | 924dbe794f7b421015445964c38b65d3e48990db | [
"BSD-3-Clause"
] | 9 | 2015-07-29T05:06:18.000Z | 2016-06-23T21:48:03.000Z | spam/behaviors.py | pydanny/dj-spam | 924dbe794f7b421015445964c38b65d3e48990db | [
"BSD-3-Clause"
] | 8 | 2015-07-31T21:29:45.000Z | 2022-01-06T00:22:49.000Z | from django.db import models
class Spammable(models.Model):
spam_flag = models.ManyToManyField("SpammyPosting")
class Meta:
abstract = True
| 16 | 55 | 0.70625 | 18 | 160 | 6.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2125 | 160 | 9 | 56 | 17.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.08125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 |
1f9ec7731c3f85869b36fc198ba6eac4b821c259 | 483 | py | Python | xdoc/lib/base.py | chbrown/xdoc-python | 509d4b7f3f0a0872865943567001675c5dea146e | [
"MIT"
] | 1 | 2015-09-17T13:47:08.000Z | 2015-09-17T13:47:08.000Z | xdoc/lib/base.py | chbrown/xdoc-python | 509d4b7f3f0a0872865943567001675c5dea146e | [
"MIT"
] | null | null | null | xdoc/lib/base.py | chbrown/xdoc-python | 509d4b7f3f0a0872865943567001675c5dea146e | [
"MIT"
] | null | null | null | class object_ustr(object):
def __unicode__(self):
'''This should really be overriden in subclasses'''
class_name = self.__class__.__name__
attr_pairs = ('%s=%s' % (key, val) for key, val in self.__dict__.items())
return u'<%s %s>' % (class_name, ' '.join(attr_pairs))
def __str__... | 34.5 | 81 | 0.614907 | 63 | 483 | 4.253968 | 0.52381 | 0.100746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002732 | 0.242236 | 483 | 13 | 82 | 37.153846 | 0.729508 | 0.190476 | 0 | 0 | 0 | 0 | 0.044737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.777778 | 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 |
1fb836f0d523c4e047511aa42c3bdf860cdd74d9 | 494 | py | Python | components/piston.py | Phoenix-5654/2019-robot-offset | f955b838e43030f67656d25b6484b089a6415048 | [
"MIT"
] | null | null | null | components/piston.py | Phoenix-5654/2019-robot-offset | f955b838e43030f67656d25b6484b089a6415048 | [
"MIT"
] | null | null | null | components/piston.py | Phoenix-5654/2019-robot-offset | f955b838e43030f67656d25b6484b089a6415048 | [
"MIT"
] | null | null | null | import wpilib
class Piston:
solenoid: wpilib.DoubleSolenoid
CLOSED = wpilib.DoubleSolenoid.Value.kForward
def __init__(self):
self.value = self.CLOSED
self.enable_change_mode = False
def change_mode(self):
self.enable_change_mode = True
def execute(self):
if sel... | 22.454545 | 70 | 0.663968 | 59 | 494 | 5.338983 | 0.355932 | 0.15873 | 0.203175 | 0.253968 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002717 | 0.255061 | 494 | 21 | 71 | 23.52381 | 0.853261 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1fc7213ce0aaf9b79ceadb8e8ccbfa75f49894ae | 338 | py | Python | project/schedule/serializers.py | gitter-badger/project_hronos | 26c3c28458d6cbe7a9443fa9ac4f5c656d747b22 | [
"MIT"
] | 2 | 2021-04-21T18:25:58.000Z | 2021-04-21T18:26:41.000Z | project/schedule/serializers.py | gitter-badger/project_hronos | 26c3c28458d6cbe7a9443fa9ac4f5c656d747b22 | [
"MIT"
] | 7 | 2021-04-30T17:21:29.000Z | 2021-05-11T10:09:29.000Z | project/schedule/serializers.py | gitter-badger/project_hronos | 26c3c28458d6cbe7a9443fa9ac4f5c656d747b22 | [
"MIT"
] | 2 | 2021-04-23T16:27:53.000Z | 2021-04-23T16:38:36.000Z | from rest_framework import serializers
from .models import Schedule
class ScheduleSerializer(serializers.ModelSerializer):
class Meta:
model = Schedule
fields = ['day_week_short', 'alt_week_short', 'class_time_num', 'class_time_start', 'class_time_end', 'group_name', 'discipline_name', 'teacher_n... | 37.555556 | 171 | 0.751479 | 41 | 338 | 5.829268 | 0.634146 | 0.112971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 338 | 9 | 171 | 37.555556 | 0.824138 | 0 | 0 | 0 | 0 | 0 | 0.348083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 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 |
9531da0c0a1e8d5fddddd579ed6f6b7c500586db | 154 | py | Python | trial.py | AurelienNioche/alphazero_singleplayer | 40376f0709edaa1f7cdaf166752b1987605558b0 | [
"MIT"
] | null | null | null | trial.py | AurelienNioche/alphazero_singleplayer | 40376f0709edaa1f7cdaf166752b1987605558b0 | [
"MIT"
] | null | null | null | trial.py | AurelienNioche/alphazero_singleplayer | 40376f0709edaa1f7cdaf166752b1987605558b0 | [
"MIT"
] | null | null | null |
import gym
from stable_baselines3 import A2C
env = gym.make('CartPole-v1')
model = A2C('MlpPolicy', env, verbose=1)
model.learn(total_timesteps=10000) | 17.111111 | 40 | 0.75974 | 23 | 154 | 5 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0.116883 | 154 | 9 | 41 | 17.111111 | 0.772059 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 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 |
1f4c1e5d86fd175283240bf4d4fed7f844b34847 | 179 | py | Python | mydbshowdb.py | anmol1455/python | 8e3858bdebb21ec3c9e8147ceef17a82b4a36926 | [
"bzip2-1.0.6"
] | null | null | null | mydbshowdb.py | anmol1455/python | 8e3858bdebb21ec3c9e8147ceef17a82b4a36926 | [
"bzip2-1.0.6"
] | null | null | null | mydbshowdb.py | anmol1455/python | 8e3858bdebb21ec3c9e8147ceef17a82b4a36926 | [
"bzip2-1.0.6"
] | null | null | null | import mysql.connector as db
mydb=db.connect(host='localhost',user='root',passwd='',database='mydata')
cur=mydb.cursor()
cur.execute("show databases")
for i in cur:
print (i)
| 25.571429 | 73 | 0.72067 | 28 | 179 | 4.607143 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100559 | 179 | 6 | 74 | 29.833333 | 0.801242 | 0 | 0 | 0 | 0 | 0 | 0.184358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1f74928f7f29ec1b20cb8cd2af97a93027c4ba08 | 257 | py | Python | src/vehicles/admin.py | sunit-poddar/Try-Django | f1a0465572bda8fa032d8fda6285828d7d9d7585 | [
"MIT"
] | null | null | null | src/vehicles/admin.py | sunit-poddar/Try-Django | f1a0465572bda8fa032d8fda6285828d7d9d7585 | [
"MIT"
] | null | null | null | src/vehicles/admin.py | sunit-poddar/Try-Django | f1a0465572bda8fa032d8fda6285828d7d9d7585 | [
"MIT"
] | null | null | null | from django.contrib import admin
from vehicles.models import VehicleInformation
class VehicleAdmin(admin.ModelAdmin):
list_display = ('name', 'created_at', 'modified_at', 'type', 'manufacturer')
admin.site.register(VehicleInformation, VehicleAdmin) | 25.7 | 80 | 0.785992 | 28 | 257 | 7.107143 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105058 | 257 | 10 | 81 | 25.7 | 0.865217 | 0 | 0 | 0 | 0 | 0 | 0.158915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1f8850f6dc69eac2e1abda10f766562b6cefef7f | 76 | py | Python | 0x01-python-if_else_loops_functions/4-print_hexa.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x01-python-if_else_loops_functions/4-print_hexa.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x01-python-if_else_loops_functions/4-print_hexa.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
for i in range(99):
print("{0} = 0x{0:x}".format(i))
| 19 | 36 | 0.565789 | 15 | 76 | 2.866667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.157895 | 76 | 3 | 37 | 25.333333 | 0.578125 | 0.223684 | 0 | 0 | 0 | 0 | 0.224138 | 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 |
2f257b4e0aa4e0824ede91bb65d2ae0731849532 | 38 | py | Python | VacationPy/config.py | Shobha70/python-api-challenge | a88843c1c8c7ccff9ec4e22534521c63f1c00745 | [
"ADSL"
] | null | null | null | VacationPy/config.py | Shobha70/python-api-challenge | a88843c1c8c7ccff9ec4e22534521c63f1c00745 | [
"ADSL"
] | null | null | null | VacationPy/config.py | Shobha70/python-api-challenge | a88843c1c8c7ccff9ec4e22534521c63f1c00745 | [
"ADSL"
] | null | null | null | # Enter your API key
gkey = "YOUR KEY" | 19 | 20 | 0.684211 | 7 | 38 | 3.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 38 | 2 | 21 | 19 | 0.866667 | 0.473684 | 0 | 0 | 0 | 0 | 0.421053 | 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 |
2f369085d28b8e45305a22f2793746243fe2e2db | 200 | py | Python | Web_Server/webapps/device/urls.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 73 | 2017-07-11T21:46:41.000Z | 2022-03-11T03:35:25.000Z | Web_Server/webapps/device/urls.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 19 | 2017-10-10T22:06:15.000Z | 2022-03-28T21:03:33.000Z | Web_Server/webapps/device/urls.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 36 | 2017-06-24T00:17:03.000Z | 2022-03-31T13:58:36.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^_update/$', views.submit_devicedata),
url(r'([a-zA-Z0-9]+)/$', views.devicedata_view, name='device-view-device')
] | 25 | 78 | 0.68 | 29 | 200 | 4.586207 | 0.655172 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.13 | 200 | 8 | 79 | 25 | 0.752874 | 0 | 0 | 0 | 0 | 0 | 0.218905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2f4e121c928be0fcd46e00787433d70834204bbb | 1,048 | py | Python | main.py | tseiiti/kivy | 7a8e4bbc1ca9c081a02866f6869f2757c38ca204 | [
"MIT"
] | null | null | null | main.py | tseiiti/kivy | 7a8e4bbc1ca9c081a02866f6869f2757c38ca204 | [
"MIT"
] | null | null | null | main.py | tseiiti/kivy | 7a8e4bbc1ca9c081a02866f6869f2757c38ca204 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.screenmanager import Screen, ScreenManager
from kivy.core.window import Window
class Gerenciador(ScreenManager):
pass
class Menu(Screen):
pass
class Tarefas(Screen):
def __init__(self, tarefas = [], **kwargs):
super().__init__(... | 25.560976 | 56 | 0.687977 | 144 | 1,048 | 4.770833 | 0.375 | 0.050946 | 0.032023 | 0.061135 | 0.212518 | 0.084425 | 0.084425 | 0 | 0 | 0 | 0 | 0.002323 | 0.178435 | 1,048 | 40 | 57 | 26.2 | 0.795587 | 0 | 0 | 0.117647 | 0 | 0 | 0.01145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.058824 | 0.117647 | 0.029412 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2f52d7e7dc1fe78f65ec93caecab7087699d7188 | 161 | py | Python | shortenerapp/forms.py | pushaty/URL-Shorter | 37b227c78e47671affdac3c736e66030d0756059 | [
"MIT"
] | 1 | 2018-02-14T12:56:49.000Z | 2018-02-14T12:56:49.000Z | shortenerapp/forms.py | pushaty/URL-Shorter | 37b227c78e47671affdac3c736e66030d0756059 | [
"MIT"
] | 1 | 2018-02-14T12:57:42.000Z | 2018-02-14T12:57:42.000Z | shortenerapp/forms.py | pushaty/URL-Shorter | 37b227c78e47671affdac3c736e66030d0756059 | [
"MIT"
] | null | null | null | from django import forms
class UrlForm(forms.Form):
'''
class that creates the url submit form
'''
Enter_url = forms.URLField(max_length = 300) | 23 | 48 | 0.677019 | 22 | 161 | 4.863636 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.229814 | 161 | 7 | 48 | 23 | 0.83871 | 0.236025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2f674a0065cd924ea99af22a4acde0ed0592c91d | 36,017 | py | Python | python-scripts/src/main/python/dataproducts/services/consumption/consumption_metrics_v2.py | keshavprasadms/sunbird-data-products | 3e154484a5543976df537d6c2803791bded0cea8 | [
"MIT"
] | 2 | 2020-07-27T10:41:44.000Z | 2022-01-03T06:16:25.000Z | python-scripts/src/main/python/dataproducts/services/consumption/consumption_metrics_v2.py | keshavprasadms/sunbird-data-products | 3e154484a5543976df537d6c2803791bded0cea8 | [
"MIT"
] | 388 | 2020-03-12T07:20:08.000Z | 2022-03-31T13:38:26.000Z | python-scripts/src/main/python/dataproducts/services/consumption/consumption_metrics_v2.py | keshavprasadms/sunbird-data-products | 3e154484a5543976df537d6c2803791bded0cea8 | [
"MIT"
] | 44 | 2019-10-25T10:57:32.000Z | 2022-02-21T05:59:18.000Z | """
Generate daily consumption metrics from blob storage
"""
import json, time
import os
import pdb
import sys
import argparse
import findspark
import pandas as pd
from datetime import date, timedelta, datetime
from pathlib import Path
from pyspark.sql import SparkSession
from pyspark.sql import functions as func
uti... | 62.747387 | 122 | 0.566233 | 4,144 | 36,017 | 4.780405 | 0.074324 | 0.049672 | 0.042908 | 0.055528 | 0.800858 | 0.750934 | 0.69263 | 0.628874 | 0.570116 | 0.52943 | 0 | 0.002326 | 0.307688 | 36,017 | 574 | 123 | 62.747387 | 0.79214 | 0.03676 | 0 | 0.412451 | 1 | 0 | 0.379965 | 0.017559 | 0 | 0 | 0 | 0.003484 | 0 | 1 | 0.007782 | false | 0 | 0.023346 | 0 | 0.031128 | 0.01751 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 |
2f820f91d88e085c3996f1b245c1e22aa019eaff | 1,223 | py | Python | aiodata/api/spec/base.py | jan-mue/aiodata | f1016d98520c8785e5c0c3db0485f04fa34257ce | [
"MIT"
] | null | null | null | aiodata/api/spec/base.py | jan-mue/aiodata | f1016d98520c8785e5c0c3db0485f04fa34257ce | [
"MIT"
] | null | null | null | aiodata/api/spec/base.py | jan-mue/aiodata | f1016d98520c8785e5c0c3db0485f04fa34257ce | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from enum import Enum, auto
class Spec(ABC):
def __init__(self, spec_dict):
self.spec_dict = spec_dict
@property
@abstractmethod
def api_url(self):
pass
@property
@abstractmethod
def endpoints(self):
pass
... | 16.986111 | 43 | 0.572363 | 133 | 1,223 | 5 | 0.270677 | 0.144361 | 0.126316 | 0.084211 | 0.500752 | 0.409023 | 0.409023 | 0.302256 | 0.302256 | 0.302256 | 0 | 0 | 0.340965 | 1,223 | 71 | 44 | 17.225352 | 0.825062 | 0 | 0 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0.102041 | 0.040816 | 0 | 0.55102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2f936fa0dd60c1cbbcb43a22a58e36b1bc02b5a5 | 2,414 | py | Python | catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/geometry/poses_embedding.py | johnson880319/Software | 045894227f359e0a3a3ec5b7a53f8d1ebc06acdd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/geometry/poses_embedding.py | johnson880319/Software | 045894227f359e0a3a3ec5b7a53f8d1ebc06acdd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/geometry/poses_embedding.py | johnson880319/Software | 045894227f359e0a3a3ec5b7a53f8d1ebc06acdd | [
"CC-BY-2.0"
] | null | null | null | # coding=utf-8
from contracts import contract
from geometry.poses import SE2_from_rotation_translation, \
rotation_translation_from_SE2, extract_pieces, SE3_from_rotation_translation, \
rotation_translation_from_SE3, combine_pieces
from geometry.rotations import map_hat_2d, hat_map
from geometry.rotations_embed... | 25.145833 | 83 | 0.703397 | 404 | 2,414 | 3.935644 | 0.118812 | 0.141509 | 0.080503 | 0.028302 | 0.674843 | 0.649057 | 0.472956 | 0.472956 | 0.375472 | 0.375472 | 0 | 0.059023 | 0.143745 | 2,414 | 95 | 84 | 25.410526 | 0.710208 | 0.024855 | 0 | 0.063492 | 0 | 0 | 0.036627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.079365 | 0.174603 | 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 |
2f97e5544142e1065c05c4dcab2a09528c222bea | 1,808 | py | Python | splineslicer/skeleton/skeleton_pruner.py | kevinyamauchi/splineslicer | 3816a32494382d42381ef382cbbfa27ecdee7688 | [
"BSD-3-Clause"
] | 3 | 2021-07-22T11:15:50.000Z | 2022-02-22T14:02:09.000Z | splineslicer/skeleton/skeleton_pruner.py | kevinyamauchi/splineslicer | 3816a32494382d42381ef382cbbfa27ecdee7688 | [
"BSD-3-Clause"
] | null | null | null | splineslicer/skeleton/skeleton_pruner.py | kevinyamauchi/splineslicer | 3816a32494382d42381ef382cbbfa27ecdee7688 | [
"BSD-3-Clause"
] | 1 | 2022-01-26T19:02:29.000Z | 2022-01-26T19:02:29.000Z | from napari.layers import Labels
import numpy as np
class SkeletonPruner():
def __init__(self, viewer):
self._viewer = viewer
self._skeleton_layer = ''
self._selected_branches = set()
@property
def skeleton_layer(self):
return self._skeleton_layer
@skeleton_layer.set... | 30.644068 | 92 | 0.680863 | 211 | 1,808 | 5.473934 | 0.260664 | 0.292641 | 0.161905 | 0.08658 | 0.274459 | 0.110823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24115 | 1,808 | 58 | 93 | 31.172414 | 0.841837 | 0.084624 | 0 | 0.125 | 0 | 0 | 0.011564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.075 | 0.05 | 0.05 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
85dea2e0e38c04a5051f58c4e37a352222b16795 | 546 | py | Python | code/solve_graph.py | ZeKarlish/boustrophedon_cellular_decomposition | 7c6a31f0ad466a81c5663726c74c1b6b64c0b623 | [
"MIT"
] | 2 | 2021-10-08T09:10:03.000Z | 2022-03-10T05:45:18.000Z | code/solve_graph.py | ZeKarlish/boustrophedon_cellular_decomposition | 7c6a31f0ad466a81c5663726c74c1b6b64c0b623 | [
"MIT"
] | null | null | null | code/solve_graph.py | ZeKarlish/boustrophedon_cellular_decomposition | 7c6a31f0ad466a81c5663726c74c1b6b64c0b623 | [
"MIT"
] | null | null | null | # import numpy as np
# from matplotlib import pyplot as plt
# from bcd import Cell
#
#
# def breadth_first_search(cells: list[Cell], current_cell: int = 0):
# # todo get algorithm that has weights relativee to possition
# queue = [] # [cells[current_cell]]
# while cells: # len(queue) != len(cells):
# ... | 30.333333 | 69 | 0.608059 | 68 | 546 | 4.808824 | 0.632353 | 0.100917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005063 | 0.276557 | 546 | 18 | 70 | 30.333333 | 0.822785 | 0.928571 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.055556 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c808675a196aee2ac0d283cac36f352700eac544 | 470 | py | Python | ask/qa/urls.py | dspetrenko/stepic_web | d317266c57e177e99523f95dc13f32c4f07f67ab | [
"MIT"
] | null | null | null | ask/qa/urls.py | dspetrenko/stepic_web | d317266c57e177e99523f95dc13f32c4f07f67ab | [
"MIT"
] | null | null | null | ask/qa/urls.py | dspetrenko/stepic_web | d317266c57e177e99523f95dc13f32c4f07f67ab | [
"MIT"
] | null | null | null | from django.urls import path
from .views import test
from .views import main
from .views import popular
from .views import question
from .views import ask
from .views import signup
from .views import login_view
urlpatterns = [
path('', main),
path('popular/', popular),
path('login/', login_view),
pat... | 21.363636 | 50 | 0.665957 | 62 | 470 | 5 | 0.290323 | 0.203226 | 0.33871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185106 | 470 | 21 | 51 | 22.380952 | 0.809399 | 0 | 0 | 0 | 0 | 0 | 0.13617 | 0.057447 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c8204e91db835de0a4343c0ec3aea5d8f3639758 | 7,188 | py | Python | projectBase/database_infrastructure/dbHandler.py | hseyindemir/swe_773_hdemir | f8ab5086284e0b6dc1923cb1c1b73e4514613df4 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | projectBase/database_infrastructure/dbHandler.py | hseyindemir/swe_773_hdemir | f8ab5086284e0b6dc1923cb1c1b73e4514613df4 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | 9 | 2020-11-02T17:30:48.000Z | 2021-01-20T06:48:17.000Z | projectBase/database_infrastructure/dbHandler.py | hseyindemir/swe_773_hdemir | f8ab5086284e0b6dc1923cb1c1b73e4514613df4 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | import psycopg2
import database_infrastructure.dbConnectionHandler as postgresqlConnection
def addRecordToSubreddits(subredditRecord):
"""
docstring
"""
try:
connection = postgresqlConnection.createConnectionToDatabase()
cursor = connection.cursor()
recordid = subredditRecord... | 31.80531 | 268 | 0.676822 | 634 | 7,188 | 7.585174 | 0.148265 | 0.054897 | 0.07985 | 0.104803 | 0.731961 | 0.707839 | 0.679975 | 0.679975 | 0.632356 | 0.632356 | 0 | 0.003224 | 0.223289 | 7,188 | 226 | 269 | 31.80531 | 0.858141 | 0.016555 | 0 | 0.711111 | 0 | 0.014815 | 0.27885 | 0.05966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.014815 | 0 | 0.17037 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c83b35450d8f88719b92ac5b763745650db8bbfd | 179 | py | Python | setup.py | ThePaperTop/pervasive | ef9d021b1ce455f5b1c9abe52f73035e4aeb85dd | [
"MIT"
] | null | null | null | setup.py | ThePaperTop/pervasive | ef9d021b1ce455f5b1c9abe52f73035e4aeb85dd | [
"MIT"
] | null | null | null | setup.py | ThePaperTop/pervasive | ef9d021b1ce455f5b1c9abe52f73035e4aeb85dd | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name="pervasive",
version="0.1",
license="MIT",
py_modules=["pervasive"],
long_description=open("README.md").read())
| 17.9 | 46 | 0.648045 | 22 | 179 | 5.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.178771 | 179 | 9 | 47 | 19.888889 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.185393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c84ecec07bef0d978c533a284659788ebd0bf94f | 283 | py | Python | 2402.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | 1 | 2022-01-14T08:45:32.000Z | 2022-01-14T08:45:32.000Z | 2402.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | 2402.py | ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python | 9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da | [
"MIT"
] | null | null | null | n = int(input())
flag = True
if n == 1 or n == 2:
flag = True
if n % 2 == 0:
flag = False
else:
i = 3
while i*i <= n:
if n % i == 0:
flag = False
break
i += 2
if flag == True:
print("N")
else:
print("S") | 16.647059 | 25 | 0.381625 | 43 | 283 | 2.511628 | 0.418605 | 0.222222 | 0.185185 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0.469965 | 283 | 17 | 26 | 16.647059 | 0.673333 | 0 | 0 | 0.352941 | 0 | 0 | 0.007463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.117647 | 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 |
c8506db9f48485128ee24ddeecf093c98c3315e9 | 1,316 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/NV/texture_compression_s3tc_update.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/NV/texture_compression_s3tc_update.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/NV/texture_compression_s3tc_update.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension NV.texture_compression_s3tc_update
This module customises the behaviour of the
OpenGL.raw.GLES2.NV.texture_compression_s3tc_update to provide a more
Python-friendly API
Overview (from the spec)
This extension allows for full or partial image updates to a
compressed 2D texture from a... | 41.125 | 80 | 0.804711 | 177 | 1,316 | 5.864407 | 0.559322 | 0.057803 | 0.096339 | 0.115607 | 0.204239 | 0.146435 | 0.146435 | 0.146435 | 0.104046 | 0.104046 | 0 | 0.013393 | 0.148936 | 1,316 | 32 | 81 | 41.125 | 0.913393 | 0.674012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c85f1e55a85498df7496118029174d22e14f3812 | 14,461 | py | Python | tests/test_autoresize.py | gasparka/pyha | 60d9bbfd6075e7548d670d05317d64bc2a1a19ee | [
"Apache-2.0"
] | 6 | 2017-05-18T18:57:07.000Z | 2020-08-06T11:23:34.000Z | tests/test_autoresize.py | gasparka/pyha | 60d9bbfd6075e7548d670d05317d64bc2a1a19ee | [
"Apache-2.0"
] | 607 | 2017-05-10T12:51:54.000Z | 2022-03-31T18:08:15.000Z | tests/test_autoresize.py | gasparka/pyha | 60d9bbfd6075e7548d670d05317d64bc2a1a19ee | [
"Apache-2.0"
] | 1 | 2019-03-20T13:57:46.000Z | 2019-03-20T13:57:46.000Z | from pyha import simulate, sims_close
from pyha.common.complex import Complex
from pyha.common.context_managers import AutoResize, RegisterBehaviour
from pyha.common.core import Hardware, PyhaList
from pyha.common.fixed_point import Sfix
from pyha.simulation.simulation_interface import assert_sim_match
class TestSfix... | 32.717195 | 110 | 0.506397 | 2,102 | 14,461 | 3.353949 | 0.076118 | 0.065106 | 0.049787 | 0.065106 | 0.817589 | 0.773759 | 0.704823 | 0.613333 | 0.566525 | 0.557305 | 0 | 0.131851 | 0.331305 | 14,461 | 441 | 111 | 32.791383 | 0.597208 | 0.115552 | 0 | 0.515789 | 0 | 0 | 0.046051 | 0 | 0 | 0 | 0 | 0 | 0.238596 | 1 | 0.14386 | false | 0 | 0.021053 | 0 | 0.252632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c862e5538244e0847ede6818f0d03cd058c1e5f2 | 1,396 | py | Python | autoio/varecof_io/writer/__init__.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | null | null | null | autoio/varecof_io/writer/__init__.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | 1 | 2022-02-15T19:35:14.000Z | 2022-02-15T19:35:14.000Z | autoio/varecof_io/writer/__init__.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | 13 | 2020-06-24T05:21:11.000Z | 2021-05-05T19:58:30.000Z | """
VaReCoF libraries
"""
from varecof_io.writer.input_file import tst
from varecof_io.writer.input_file import divsur
from varecof_io.writer.input_file import elec_struct
from varecof_io.writer.input_file import structure
from varecof_io.writer.input_file import mc_flux
from varecof_io.writer.input_file import conve... | 31.022222 | 65 | 0.805158 | 194 | 1,396 | 5.407216 | 0.226804 | 0.188751 | 0.22307 | 0.326025 | 0.563394 | 0.563394 | 0.452812 | 0.07245 | 0 | 0 | 0 | 0 | 0.124642 | 1,396 | 44 | 66 | 31.727273 | 0.858429 | 0.012178 | 0 | 0 | 0 | 0 | 0.169343 | 0.054745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.473684 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c0701449e2d25e8f7c1706dc19e08518ddac51c9 | 3,958 | py | Python | recipes/mcpi/minecraft.py | whaleygeek/osmc | ae86e4abd32d24ee47e0693e756b3e69e4d31197 | [
"MIT"
] | 5 | 2015-03-03T09:20:39.000Z | 2021-01-25T12:59:07.000Z | recipes/mcpi/minecraft.py | whaleygeek/osmc | ae86e4abd32d24ee47e0693e756b3e69e4d31197 | [
"MIT"
] | null | null | null | recipes/mcpi/minecraft.py | whaleygeek/osmc | ae86e4abd32d24ee47e0693e756b3e69e4d31197 | [
"MIT"
] | 1 | 2020-12-25T21:48:25.000Z | 2020-12-25T21:48:25.000Z | # minecraft_template.py 08/05/2014 D.J.Whale
from vec3 import Vec3
print("Using minecraft_template - empty mcpi wrapper")
def trace(msg):
print("minecraft." + str(msg))
class CmdPositioner:
def __init__(self, connection, packagePrefix):
pass
def getPos(self, id):
"""Get entity positi... | 23.700599 | 93 | 0.564679 | 451 | 3,958 | 4.89357 | 0.286031 | 0.041232 | 0.031717 | 0.057091 | 0.239239 | 0.200272 | 0.089261 | 0.062528 | 0.02628 | 0.02628 | 0 | 0.011815 | 0.294341 | 3,958 | 166 | 94 | 23.843373 | 0.778375 | 0.330975 | 0 | 0.297297 | 0 | 0 | 0.089764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.405405 | false | 0.189189 | 0.013514 | 0 | 0.554054 | 0.027027 | 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 |
c096102b960e8037bd01d6d32f9c137cb8d888ef | 302 | py | Python | tests/test_glados_core.py | rogueresistor/GLaDOS | 7246377a93e278cd5982d8a4c49b5381c2977f5f | [
"Apache-2.0"
] | null | null | null | tests/test_glados_core.py | rogueresistor/GLaDOS | 7246377a93e278cd5982d8a4c49b5381c2977f5f | [
"Apache-2.0"
] | null | null | null | tests/test_glados_core.py | rogueresistor/GLaDOS | 7246377a93e278cd5982d8a4c49b5381c2977f5f | [
"Apache-2.0"
] | null | null | null | from tests import SORTED_BOT_NAMES, GLADOS_CONFIG_FILE
from glados import Glados
def test_glados_import_bots(caplog):
g = Glados(GLADOS_CONFIG_FILE)
g.read_config()
g.import_bots()
assert len(g.bots) == len(SORTED_BOT_NAMES)
assert sorted(list(g.bots.keys())) == SORTED_BOT_NAMES
| 27.454545 | 58 | 0.748344 | 47 | 302 | 4.489362 | 0.404255 | 0.127962 | 0.199052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152318 | 302 | 10 | 59 | 30.2 | 0.824219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c09f9efeb9a77c6151dbbedf3087747a17bd069e | 2,157 | py | Python | app_tests.py | tomjelen/monitor-display | 5a67bc7d91c3db63101dd4eaa6b4a4b6fb055297 | [
"Unlicense"
] | null | null | null | app_tests.py | tomjelen/monitor-display | 5a67bc7d91c3db63101dd4eaa6b4a4b6fb055297 | [
"Unlicense"
] | null | null | null | app_tests.py | tomjelen/monitor-display | 5a67bc7d91c3db63101dd4eaa6b4a4b6fb055297 | [
"Unlicense"
] | null | null | null | # pylint: disable=C0103
import unittest
from unittest import mock
from unittest.mock import patch
from unittest.mock import ANY
import requests_mock
import app
import monitor
class AppTests(unittest.TestCase):
@requests_mock.mock()
def test_displays_monitor_happy(self, fake_requests):
fake_requests.g... | 34.790323 | 95 | 0.664812 | 262 | 2,157 | 5.164122 | 0.270992 | 0.089431 | 0.047302 | 0.059128 | 0.735403 | 0.735403 | 0.711752 | 0.65558 | 0.65558 | 0.65558 | 0 | 0.022289 | 0.230413 | 2,157 | 61 | 96 | 35.360656 | 0.792771 | 0.023644 | 0 | 0.545455 | 0 | 0.090909 | 0.147479 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.159091 | 0 | 0.272727 | 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 |
c0b0bd46a5bc5e504d6658b542f1b5b0a36dd052 | 412 | py | Python | gbvision/utils/net/async_udp_stream_receiver.py | computerboy0555/GBVision | 79fc9ba09865bfd9c7a39abaa3980c46ce090b07 | [
"Apache-2.0"
] | 16 | 2019-04-15T18:52:58.000Z | 2022-02-13T23:00:46.000Z | gbvision/utils/net/async_udp_stream_receiver.py | computerboy0555/GBVision | 79fc9ba09865bfd9c7a39abaa3980c46ce090b07 | [
"Apache-2.0"
] | 2 | 2019-04-15T19:00:05.000Z | 2019-04-19T15:47:21.000Z | gbvision/utils/net/async_udp_stream_receiver.py | computerboy0555/GBVision | 79fc9ba09865bfd9c7a39abaa3980c46ce090b07 | [
"Apache-2.0"
] | 3 | 2019-05-03T13:48:25.000Z | 2019-09-22T14:03:49.000Z | from gbvision.utils.net import AsyncStreamReceiver
from .udp_stream_receiver import UDPStreamReceiver
class AsyncUDPStreamReceiver(AsyncStreamReceiver, UDPStreamReceiver):
def __init__(self, port, *args, **kwargs):
UDPStreamReceiver.__init__(self, port, *args, **kwargs)
AsyncStreamReceiver.__init... | 31.692308 | 69 | 0.752427 | 40 | 412 | 7.375 | 0.5 | 0.081356 | 0.081356 | 0.108475 | 0.149153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152913 | 412 | 12 | 70 | 34.333333 | 0.845272 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c0edcfce8d10ddccc1cf96e0db7de90a9f51f32a | 206 | py | Python | gym-k8s/gym_k8s/__init__.py | qrluo96/k8s-scheduler-RL | 42d4d5e0561653fe507ba1a8ab0d81f2cac79212 | [
"Apache-2.0"
] | null | null | null | gym-k8s/gym_k8s/__init__.py | qrluo96/k8s-scheduler-RL | 42d4d5e0561653fe507ba1a8ab0d81f2cac79212 | [
"Apache-2.0"
] | 2 | 2021-10-04T20:35:25.000Z | 2022-03-03T13:36:10.000Z | gym-k8s/gym_k8s/__init__.py | qrluo96/k8s-scheduler-RL | 42d4d5e0561653fe507ba1a8ab0d81f2cac79212 | [
"Apache-2.0"
] | null | null | null | from gym.envs.registration import register
register(
id='k8s-v0',
entry_point='gym_k8s.envs:K8sEnv',
)
# register(
# id='foo-extrahard-v0',
# entry_point='gym_foo.envs:FooExtraHardEnv',
# ) | 20.6 | 49 | 0.684466 | 27 | 206 | 5.074074 | 0.555556 | 0.145985 | 0.175182 | 0.218978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0.15534 | 206 | 10 | 50 | 20.6 | 0.758621 | 0.417476 | 0 | 0 | 0 | 0 | 0.215517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c0f7190248934166ba6a40b413a38f95d397aad6 | 284 | py | Python | q5.py | reinaldons/random_code_test | 16214fa0b710d6ed51202e2467107db394556456 | [
"MIT"
] | null | null | null | q5.py | reinaldons/random_code_test | 16214fa0b710d6ed51202e2467107db394556456 | [
"MIT"
] | null | null | null | q5.py | reinaldons/random_code_test | 16214fa0b710d6ed51202e2467107db394556456 | [
"MIT"
] | null | null | null | import json
def sort_by_price_ascending(json_string):
products = json.loads(json_string)
return json.dumps(sorted(products, key=lambda x: x['price']))
print(sort_by_price_ascending('[{"name":"eggs","price":1},{"name":"coffee","price":9.99},{"name":"rice","price":4.04}]'))
| 31.555556 | 121 | 0.690141 | 43 | 284 | 4.372093 | 0.604651 | 0.06383 | 0.117021 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026923 | 0.084507 | 284 | 8 | 122 | 35.5 | 0.696154 | 0 | 0 | 0 | 0 | 0.2 | 0.323944 | 0.306338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
23a15e9dc306ef0d9d3108ab8fcd4435d4b1bf20 | 18,490 | py | Python | nlptoolkit/punctuation_restoration/models/Transformer.py | jackashore/NLP_Toolkit | e5bd8bcfad87f4906c45e66351adf93bd5c2727f | [
"Apache-2.0"
] | 2 | 2020-09-26T11:20:13.000Z | 2021-09-17T13:15:48.000Z | nlptoolkit/punctuation_restoration/models/Transformer.py | jackashore/NLP_Toolkit | e5bd8bcfad87f4906c45e66351adf93bd5c2727f | [
"Apache-2.0"
] | null | null | null | nlptoolkit/punctuation_restoration/models/Transformer.py | jackashore/NLP_Toolkit | e5bd8bcfad87f4906c45e66351adf93bd5c2727f | [
"Apache-2.0"
] | 1 | 2021-03-11T21:14:24.000Z | 2021-03-11T21:14:24.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 11 22:22:31 2019
@author: WT
"""
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import math
import copy
### create masks for src & trg sequences
def create_masks(src, trg):
src_mask = (src != 1).unsqueeze(-2)
if trg is ... | 46.928934 | 126 | 0.587939 | 2,507 | 18,490 | 4.039091 | 0.08217 | 0.053328 | 0.030812 | 0.022516 | 0.779972 | 0.762986 | 0.726546 | 0.69761 | 0.660774 | 0.649022 | 0 | 0.023176 | 0.288264 | 18,490 | 394 | 127 | 46.928934 | 0.746277 | 0.048837 | 0 | 0.648415 | 0 | 0 | 0.030597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080692 | false | 0 | 0.017291 | 0.002882 | 0.178674 | 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 |
23d1180c5b65efe4e14110b6afc76c93834f43f1 | 648 | py | Python | yak/rest_social_auth/backends/base.py | johnchuks/YAK-server | 910af81a7b23e88585479131886c627e33163de1 | [
"MIT"
] | 15 | 2015-10-10T07:56:23.000Z | 2021-07-26T14:39:17.000Z | yak/rest_social_auth/backends/base.py | johnchuks/YAK-server | 910af81a7b23e88585479131886c627e33163de1 | [
"MIT"
] | 26 | 2015-01-06T00:43:50.000Z | 2018-10-29T03:12:09.000Z | yak/rest_social_auth/backends/base.py | johnchuks/YAK-server | 910af81a7b23e88585479131886c627e33163de1 | [
"MIT"
] | 8 | 2015-09-28T14:47:52.000Z | 2018-02-09T18:53:53.000Z | import abc
class ExtraDataAbstractMixin(object, metaclass=abc.ABCMeta):
"""
Ensure that backends define these methods. Used in pipeline to save extra data on the user model.
"""
@abc.abstractmethod
def save_extra_data(response, user):
return
@abc.abstractmethod
def get_profile_im... | 24 | 105 | 0.705247 | 77 | 648 | 5.792208 | 0.584416 | 0.152466 | 0.179372 | 0.112108 | 0.130045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21142 | 648 | 26 | 106 | 24.923077 | 0.872798 | 0.149691 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0.266667 | 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 |
f19b0435f47b13ece319bca6391556e45a379267 | 239 | py | Python | packages/watchmen-rest-doll/src/watchmen_rest_doll/sso/sso_router.py | Indexical-Metrics-Measure-Advisory/watchmen | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | [
"MIT"
] | null | null | null | packages/watchmen-rest-doll/src/watchmen_rest_doll/sso/sso_router.py | Indexical-Metrics-Measure-Advisory/watchmen | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | [
"MIT"
] | null | null | null | packages/watchmen-rest-doll/src/watchmen_rest_doll/sso/sso_router.py | Indexical-Metrics-Measure-Advisory/watchmen | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from watchmen_rest_doll.doll import ask_saml2_enabled
def install_sso_router(app: FastAPI) -> None:
if ask_saml2_enabled():
from .saml import auth_saml_router
app.include_router(auth_saml_router.router)
| 23.9 | 53 | 0.820084 | 37 | 239 | 4.945946 | 0.513514 | 0.087432 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.117155 | 239 | 9 | 54 | 26.555556 | 0.85782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 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 |
f1a187b8d65a44b40bfb230aea48bbe68253c03e | 2,106 | py | Python | mySQL_Python_Examples/IEF_Database_Insert_mysql.py | tmillross/IE_data_commons | ca42444e4da99e0f34c34c76de49dabf80b324b0 | [
"MIT"
] | 13 | 2018-07-11T08:21:16.000Z | 2022-03-25T13:40:08.000Z | mySQL_Python_Examples/IEF_Database_Insert_mysql.py | tmillross/IE_data_commons | ca42444e4da99e0f34c34c76de49dabf80b324b0 | [
"MIT"
] | 23 | 2018-06-22T12:35:50.000Z | 2021-08-03T17:23:13.000Z | mySQL_Python_Examples/IEF_Database_Insert_mysql.py | tmillross/IE_data_commons | ca42444e4da99e0f34c34c76de49dabf80b324b0 | [
"MIT"
] | 2 | 2018-09-12T07:17:49.000Z | 2019-06-14T15:12:22.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 30 16:57:29 2017
@author: spauliuk
"""
import pymysql
import IEDC_PW
conn = pymysql.connect(host='www.industrialecology.uni-freiburg.de', port=3306, user=IEDC_PW.IEDC_write_access_user, passwd=IEDC_PW.IEDC_write_access_user_PW, db='iefdatabase_test')
cur = conn.curso... | 45.782609 | 407 | 0.75831 | 298 | 2,106 | 5.161074 | 0.416107 | 0.107282 | 0.072822 | 0.091027 | 0.682705 | 0.682705 | 0.604681 | 0.544863 | 0.544863 | 0.478544 | 0 | 0.056584 | 0.076923 | 2,106 | 45 | 408 | 46.8 | 0.734054 | 0.009972 | 0 | 0.173913 | 0 | 0.086957 | 0.710253 | 0.511144 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.086957 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f1b8a973507fe6a2ebe2c1a208a4798fa4b7484c | 121 | py | Python | src/ivaldi/_version.py | CAM-Gerlach/ivaldi | 07fa74ac328d3caae6e1e9811f649178eda01925 | [
"MIT"
] | null | null | null | src/ivaldi/_version.py | CAM-Gerlach/ivaldi | 07fa74ac328d3caae6e1e9811f649178eda01925 | [
"MIT"
] | null | null | null | src/ivaldi/_version.py | CAM-Gerlach/ivaldi | 07fa74ac328d3caae6e1e9811f649178eda01925 | [
"MIT"
] | 1 | 2020-02-18T04:40:06.000Z | 2020-02-18T04:40:06.000Z | """Version file."""
VERSION_INFO = (0, 1, 0, "dev0")
__version__ = ".".join((str(version) for version in VERSION_INFO))
| 24.2 | 66 | 0.652893 | 17 | 121 | 4.294118 | 0.588235 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.132231 | 121 | 4 | 67 | 30.25 | 0.657143 | 0.107438 | 0 | 0 | 0 | 0 | 0.04902 | 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 |
f1e8e367202ac449a20b9a92c7ebe04e49d9d6cd | 595 | py | Python | ambulance/admin.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | ambulance/admin.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | ambulance/admin.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from django.contrib.gis.db import models
from .models import Ambulance, AmbulanceUpdate, \
AmbulanceCall, Patient, Call, \
Location, \
Region
from emstrack.admin import EMSTrackAdmin
# Register classes
admin.site.register(Ambulance, EMSTrackAdmin)
admin.site.r... | 27.045455 | 52 | 0.778151 | 64 | 595 | 7.234375 | 0.3125 | 0.136069 | 0.257019 | 0.388769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136134 | 595 | 21 | 53 | 28.333333 | 0.900778 | 0.026891 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b02c3291c78c39488a96964610458d119f6f03a | 1,038 | py | Python | money_legos/idle/contracts.py | gokhanbaydar/py-money-legos | 3d71885e2befeb3e6415177ea2220339c6082088 | [
"MIT"
] | 3 | 2021-02-21T03:15:54.000Z | 2021-06-19T10:01:54.000Z | money_legos/idle/contracts.py | gokhanbaydar/py-money-legos | 3d71885e2befeb3e6415177ea2220339c6082088 | [
"MIT"
] | null | null | null | money_legos/idle/contracts.py | gokhanbaydar/py-money-legos | 3d71885e2befeb3e6415177ea2220339c6082088 | [
"MIT"
] | null | null | null | from .. import util
contracts = {
"maxYield": {
"dai": {
"address": "0x78751B12Da02728F467A44eAc40F5cbc16Bd7934",
},
"usdc": {
"address": "0x12B98C621E8754Ae70d0fDbBC73D6208bC3e3cA6",
},
"usdt": {
"address": "0x63D27B3DA94A9E871222CB0A3223... | 26.615385 | 68 | 0.545279 | 43 | 1,038 | 13.139535 | 0.674419 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322902 | 0.322736 | 1,038 | 38 | 69 | 27.315789 | 0.480797 | 0 | 0 | 0.166667 | 0 | 0 | 0.50289 | 0.390173 | 0 | 0 | 0.364162 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b0470145559cbda6a84f41a0b45d2680f91e0de | 560 | py | Python | examples/python/kmeans/basic/print_algorithm_infos.py | thomas-bottesch/fcl | dd1e099d956b462530df7885892f9cf7b7f00f67 | [
"MIT"
] | 1 | 2020-01-28T22:51:16.000Z | 2020-01-28T22:51:16.000Z | examples/python/kmeans/basic/print_algorithm_infos.py | thomas-bottesch/fcl | dd1e099d956b462530df7885892f9cf7b7f00f67 | [
"MIT"
] | 14 | 2016-11-24T15:09:12.000Z | 2019-08-01T13:22:25.000Z | examples/python/kmeans/basic/print_algorithm_infos.py | thomas-bottesch/fcl | dd1e099d956b462530df7885892f9cf7b7f00f67 | [
"MIT"
] | 1 | 2017-12-23T05:52:45.000Z | 2017-12-23T05:52:45.000Z | from __future__ import print_function
from fcl import kmeans
if __name__ == "__main__":
# the kmeans package provides multiple algorithms which can be specified
# in the following way:
# e.g. kmeans.KMeans(algorithm = 'bv_kmeans')
# To list all possible algorithms use:
kmeans.print_algorithm_i... | 31.111111 | 76 | 0.701786 | 69 | 560 | 5.434783 | 0.608696 | 0.010667 | 0.042667 | 0.074667 | 0.122667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 560 | 18 | 77 | 31.111111 | 0.864055 | 0.575 | 0 | 0 | 0 | 0 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
7b11b1bfc8373412d8e7e45f7c9b25b6e5bde123 | 1,489 | py | Python | PythonHelper/circle.py | oxideworks/radiance | 57d6f64127c59f93d8a4359502f874a3f2e0a0ee | [
"MIT"
] | 1 | 2020-07-09T15:48:01.000Z | 2020-07-09T15:48:01.000Z | PythonHelper/circle.py | oxideworks/radiance | 57d6f64127c59f93d8a4359502f874a3f2e0a0ee | [
"MIT"
] | null | null | null | PythonHelper/circle.py | oxideworks/radiance | 57d6f64127c59f93d8a4359502f874a3f2e0a0ee | [
"MIT"
] | null | null | null | import pyart
from fnlib import loop
# xs = [340, 285, 244.7372, 230, 244.7372, 285, 340, 395, 435.2628, 450, 435.2628, 395]
# ys = [310, 295.2628, 255, 200, 145, 104.7372, 90, 104.7372, 145, 200, 255, 295.2628]
# xs = [550, 550, 570, 570, 590, 590, 610, 610, 630, 630, 650, 650, 670, 670, 690, 690, 710, 710, 730, 730,... | 55.148148 | 321 | 0.656817 | 289 | 1,489 | 3.359862 | 0.453287 | 0.012358 | 0.016478 | 0.022657 | 0.665294 | 0.665294 | 0.665294 | 0.665294 | 0.61792 | 0.61792 | 0 | 0.569195 | 0.141034 | 1,489 | 26 | 322 | 57.269231 | 0.189992 | 0.466085 | 0 | 0 | 0 | 0 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b1a2c7374b08948a39a5f7eef858a3c2e2826a8 | 346 | py | Python | pystratis/api/wallet/requestmodels/syncrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/wallet/requestmodels/syncrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/wallet/requestmodels/syncrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from pydantic import Field
from pystratis.api import Model
from pystratis.core.types import uint256
# noinspection PyUnresolvedReferences
class SyncRequest(Model):
"""A request model for the wallet/sync endpoint.
Args:
block_hash (uint256): The hash to start syncing from.
"""
block_hash: uint... | 24.714286 | 61 | 0.734104 | 44 | 346 | 5.727273 | 0.636364 | 0.103175 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032028 | 0.187861 | 346 | 13 | 62 | 26.615385 | 0.864769 | 0.424855 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9e42ccd32afc07cd8ca02a8c461447c1b6d705b8 | 848 | py | Python | game-hub/secure.py | Yadkee/orphans | 1208a9cbd95ca7608da9855b27d717beaff1711e | [
"MIT"
] | null | null | null | game-hub/secure.py | Yadkee/orphans | 1208a9cbd95ca7608da9855b27d717beaff1711e | [
"MIT"
] | null | null | null | game-hub/secure.py | Yadkee/orphans | 1208a9cbd95ca7608da9855b27d717beaff1711e | [
"MIT"
] | null | null | null | #! python3
from Crypto.PublicKey import RSA
from Crypto.Cipher import (PKCS1_OAEP, AES)
from Crypto import Random
PASS_SIZE = 16 # Client's AES symmetric password
NONCE_SIZE = 8
random = Random.new()
def rsa():
privateKey = RSA.generate(2048, random.read)
publicKey = privateKey.publickey().exportKey("DER")
... | 23.555556 | 55 | 0.722877 | 116 | 848 | 5.189655 | 0.318966 | 0.059801 | 0.039867 | 0.049834 | 0.172757 | 0.172757 | 0.172757 | 0.172757 | 0.172757 | 0.172757 | 0 | 0.015537 | 0.165094 | 848 | 35 | 56 | 24.228571 | 0.834746 | 0.048349 | 0 | 0.086957 | 0 | 0 | 0.003727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.26087 | 0.173913 | 0.086957 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9e5e55d52f4331709d4d7647358e84b4e6c3bf4d | 16,587 | py | Python | Bio/EUtils/tests/test_examples.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Bio/EUtils/tests/test_examples.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Bio/EUtils/tests/test_examples.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 1 | 2019-08-19T22:05:14.000Z | 2019-08-19T22:05:14.000Z | # These are burn tests -- I mostly just check if everything works
import unittest, sys, urllib2, time
from Bio import EUtils
from Bio.EUtils import ThinClient, HistoryClient, DBIdsClient, Datatypes
import support_test
picklestore = None
PICKLESTORE_FILENAME = "test_examples.pickle"
class TestForNewHits(unittest.Tes... | 48.642229 | 87 | 0.561404 | 1,618 | 16,587 | 5.718789 | 0.52843 | 0.00951 | 0.01405 | 0.018156 | 0.177348 | 0.136604 | 0.101697 | 0.093807 | 0.033827 | 0.025829 | 0 | 0.340871 | 0.274854 | 16,587 | 340 | 88 | 48.785294 | 0.428417 | 0.149032 | 0 | 0.14741 | 0 | 0 | 0.324303 | 0.003413 | 0 | 0 | 0 | 0 | 0.003984 | 0 | null | null | 0 | 0.015936 | null | null | 0.055777 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e731cb4a6f0e98cfc392afec4a0d0408dd12f35 | 126 | py | Python | practice/runner_up.py | nilavya2000/my_python | 1323ca7cef2111cc91ef9ff3b596590e0e1c97ef | [
"MIT"
] | null | null | null | practice/runner_up.py | nilavya2000/my_python | 1323ca7cef2111cc91ef9ff3b596590e0e1c97ef | [
"MIT"
] | null | null | null | practice/runner_up.py | nilavya2000/my_python | 1323ca7cef2111cc91ef9ff3b596590e0e1c97ef | [
"MIT"
] | 1 | 2020-02-27T18:14:05.000Z | 2020-02-27T18:14:05.000Z |
n = int(input())
arr = list(map(int, input().split()))
b=max(arr)
while max(arr)==b:
arr.remove(max(arr))
print(max(arr))
| 12.6 | 37 | 0.611111 | 23 | 126 | 3.347826 | 0.521739 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 126 | 9 | 38 | 14 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
9e7f91e118d6e7e6fa96e183b5ecfeda636b8e61 | 213 | py | Python | tests/test_exceptions.py | sarah-vanderlaan/pyjwt | b65e1ac6dc4d11801f3642eaab34ae6a54162c18 | [
"MIT"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | tests/test_exceptions.py | sarah-vanderlaan/pyjwt | b65e1ac6dc4d11801f3642eaab34ae6a54162c18 | [
"MIT"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | tests/test_exceptions.py | sarah-vanderlaan/pyjwt | b65e1ac6dc4d11801f3642eaab34ae6a54162c18 | [
"MIT"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | from jwt.exceptions import MissingRequiredClaimError
def test_missing_required_claim_error_has_proper_str():
exc = MissingRequiredClaimError('abc')
assert str(exc) == 'Token is missing the "abc" claim'
| 26.625 | 57 | 0.784038 | 26 | 213 | 6.153846 | 0.769231 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13615 | 213 | 7 | 58 | 30.428571 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.164319 | 0 | 0 | 0 | 0 | 0 | 0.25 | 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 |
9e912d1f5121719904d27e847fd40c81af97d5b0 | 1,732 | py | Python | keycloak_scanner/scan_base/wrap.py | NeuronAddict/openid-scanner | c29c36d42d925138e1c432afa0a8f4893adb75ec | [
"Apache-2.0"
] | 25 | 2020-10-24T14:25:52.000Z | 2022-03-28T18:42:57.000Z | keycloak_scanner/scan_base/wrap.py | NeuronAddict/openid-scanner | c29c36d42d925138e1c432afa0a8f4893adb75ec | [
"Apache-2.0"
] | 6 | 2020-09-19T16:33:25.000Z | 2021-12-30T21:13:17.000Z | keycloak_scanner/scan_base/wrap.py | NeuronAddict/openid-scanner | c29c36d42d925138e1c432afa0a8f4893adb75ec | [
"Apache-2.0"
] | 6 | 2021-03-08T10:26:45.000Z | 2021-12-19T14:04:35.000Z | from typing import Generic, TypeVar
from .types import Realm, WellKnown, SecurityConsole, Client, Credential, ClientRegistration, \
OpenRedirect, NoneSign, FormPostXSS, Username, Password
from keycloak_scanner.utils import to_camel_case
SimpleType = TypeVar('SimpleType')
V = TypeVar('V')
class BadWrappedTypeEx... | 26.242424 | 95 | 0.725751 | 190 | 1,732 | 6.331579 | 0.342105 | 0.099751 | 0.04655 | 0.0399 | 0.103076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188799 | 1,732 | 65 | 96 | 26.646154 | 0.856228 | 0.022517 | 0 | 0 | 0 | 0 | 0.045535 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.135135 | false | 0.054054 | 0.081081 | 0.027027 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9eb77996d453e68cfc6005694311cbe2880b5e18 | 437 | py | Python | accounts/admin.py | stafazzoli/django_issuetracker | fd12605d53cfff9619abcb35e7e011d9d9c1da33 | [
"MIT"
] | 1 | 2020-08-13T13:20:55.000Z | 2020-08-13T13:20:55.000Z | accounts/admin.py | stafazzoli/django_issuetracker | fd12605d53cfff9619abcb35e7e011d9d9c1da33 | [
"MIT"
] | 2 | 2021-06-10T17:44:39.000Z | 2022-02-10T10:49:21.000Z | accounts/admin.py | stafazzoli/django_issuetracker | fd12605d53cfff9619abcb35e7e011d9d9c1da33 | [
"MIT"
] | 2 | 2020-06-18T00:09:39.000Z | 2020-07-03T19:18:14.000Z | from django.contrib import admin
from django.contrib.auth.models import User
from . import models
# Register your models here.
admin.site.register(models.Profile)
# Adding Profile to User page
# class ProfileInLine(admin.StackedInline):
# model = models.Profile
#
#
# class UserAdmin(admin.ModelAdmin):
# inl... | 17.48 | 43 | 0.713959 | 51 | 437 | 6.117647 | 0.470588 | 0.086538 | 0.108974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176201 | 437 | 24 | 44 | 18.208333 | 0.866667 | 0.613272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9eb9220a42759900a028ab04f8aa30a11c6b5fb4 | 1,591 | py | Python | assessment_ms/app/export/models.py | jakobschroeber/bachelor_thesis | e2d3fa7eb65bc32345acbda28fc4c7fb775f65cb | [
"MIT"
] | null | null | null | assessment_ms/app/export/models.py | jakobschroeber/bachelor_thesis | e2d3fa7eb65bc32345acbda28fc4c7fb775f65cb | [
"MIT"
] | null | null | null | assessment_ms/app/export/models.py | jakobschroeber/bachelor_thesis | e2d3fa7eb65bc32345acbda28fc4c7fb775f65cb | [
"MIT"
] | 1 | 2021-03-31T12:37:48.000Z | 2021-03-31T12:37:48.000Z | import uuid
from cassandra.cqlengine import columns
from django_cassandra_engine.models import DjangoCassandraModel
class IndicatorResultExport(DjangoCassandraModel):
uuid = columns.UUID(primary_key=True, default=uuid.uuid4)
indicator_id = columns.Integer(index=True)
course_id = column... | 43 | 84 | 0.636078 | 153 | 1,591 | 6.477124 | 0.222222 | 0.099899 | 0.177598 | 0.233098 | 0.759839 | 0.678103 | 0.678103 | 0.678103 | 0.678103 | 0.678103 | 0 | 0.003506 | 0.282841 | 1,591 | 37 | 85 | 43 | 0.865031 | 0 | 0 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
7b4f9fb65f1d67f99bcd775a40666f164e1c458c | 1,764 | py | Python | test.py | nhatas/novnc_igv | 36c8ed774c8351a723529f22cb933094edb7933b | [
"MIT"
] | null | null | null | test.py | nhatas/novnc_igv | 36c8ed774c8351a723529f22cb933094edb7933b | [
"MIT"
] | null | null | null | test.py | nhatas/novnc_igv | 36c8ed774c8351a723529f22cb933094edb7933b | [
"MIT"
] | null | null | null | import unittest
import os
# Interested only that the software is present. Version isn't important.
def version_output(input):
cmd = '{0} --version'.format(input)
string = os.popen(cmd).read().strip()
return string.join(string.split(' ')[0:1])
# alternative for when output of -version command doesn't exist... | 30.413793 | 81 | 0.662132 | 229 | 1,764 | 4.951965 | 0.336245 | 0.074074 | 0.184303 | 0.206349 | 0.432981 | 0.165785 | 0.081129 | 0.081129 | 0.081129 | 0 | 0 | 0.010482 | 0.188776 | 1,764 | 58 | 82 | 30.413793 | 0.781971 | 0.126417 | 0 | 0.051282 | 0 | 0 | 0.113784 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.358974 | false | 0 | 0.051282 | 0 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b699af1036fd7dc184e279c2ddfb749ea4e46d9 | 269 | py | Python | djangocms_alias/rendering.py | jonathan-s/djangocms-alias | 9a9f3020aa0a01339164094c2bc1caf190d66428 | [
"BSD-3-Clause"
] | 1 | 2020-05-12T02:29:16.000Z | 2020-05-12T02:29:16.000Z | djangocms_alias/rendering.py | jonathan-s/djangocms-alias | 9a9f3020aa0a01339164094c2bc1caf190d66428 | [
"BSD-3-Clause"
] | 9 | 2021-11-30T16:12:46.000Z | 2022-03-31T16:55:36.000Z | djangocms_alias/rendering.py | jonathan-s/djangocms-alias | 9a9f3020aa0a01339164094c2bc1caf190d66428 | [
"BSD-3-Clause"
] | 7 | 2020-01-13T09:10:40.000Z | 2021-07-21T12:49:07.000Z | from django.template.response import TemplateResponse
def render_alias_content(request, alias_content):
template = 'djangocms_alias/alias_content_preview.html'
context = {'alias_content': alias_content}
return TemplateResponse(request, template, context)
| 33.625 | 59 | 0.802974 | 30 | 269 | 6.933333 | 0.533333 | 0.288462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118959 | 269 | 7 | 60 | 38.428571 | 0.877637 | 0 | 0 | 0 | 0 | 0 | 0.204461 | 0.156134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7bbf6722423705c61ed99fd21218c208d99afafd | 28 | py | Python | version.py | ICE-WR/chia-tools | 2428bc7a0c8e4ca2c7ab24358b9b2d81400dc4ae | [
"Apache-2.0"
] | null | null | null | version.py | ICE-WR/chia-tools | 2428bc7a0c8e4ca2c7ab24358b9b2d81400dc4ae | [
"Apache-2.0"
] | null | null | null | version.py | ICE-WR/chia-tools | 2428bc7a0c8e4ca2c7ab24358b9b2d81400dc4ae | [
"Apache-2.0"
] | null | null | null | version = '1.5.3'
beta = ''
| 9.333333 | 17 | 0.5 | 5 | 28 | 2.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.214286 | 28 | 2 | 18 | 14 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 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 |
c8764da223fb4428d587c52a36ff17e660ecbf5d | 263 | py | Python | sa-fastapi/s3-file-unzipper-atom/scripted-atom/scripts/unzipper.py | piximos/scripted-atoms | 6156803e2512bec11ed0403121b9e7f9bf019d99 | [
"MIT"
] | 2 | 2020-12-21T20:49:26.000Z | 2021-12-23T16:04:48.000Z | sa-fastapi/s3-file-unzipper-atom/scripted-atom/scripts/unzipper.py | piximos/scripted-atoms | 6156803e2512bec11ed0403121b9e7f9bf019d99 | [
"MIT"
] | null | null | null | sa-fastapi/s3-file-unzipper-atom/scripted-atom/scripts/unzipper.py | piximos/scripted-atoms | 6156803e2512bec11ed0403121b9e7f9bf019d99 | [
"MIT"
] | null | null | null | import zipfile
class Unzipper:
def unzip_file(self, zip_file_location: str, destination_folder: str):
with zipfile.ZipFile(zip_file_location, 'r') as zip_ref:
zip_ref.extractall(destination_folder)
return destination_folder
| 26.3 | 74 | 0.714829 | 33 | 263 | 5.393939 | 0.575758 | 0.286517 | 0.168539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21673 | 263 | 9 | 75 | 29.222222 | 0.864078 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c89e1ee03e0cd6877d9a647cc4f55867151d2888 | 96 | py | Python | testmaster/dummyprograms/error.py | S-P-A-N-N-E-R-S/Testmaster | e0804b30a6f77c136eca890e692ea54195a31bb9 | [
"BSD-3-Clause"
] | null | null | null | testmaster/dummyprograms/error.py | S-P-A-N-N-E-R-S/Testmaster | e0804b30a6f77c136eca890e692ea54195a31bb9 | [
"BSD-3-Clause"
] | null | null | null | testmaster/dummyprograms/error.py | S-P-A-N-N-E-R-S/Testmaster | e0804b30a6f77c136eca890e692ea54195a31bb9 | [
"BSD-3-Clause"
] | null | null | null | from decimal import DivisionByZero
try:
1/0
except DivisionByZero:
raise DivisionByZero | 16 | 34 | 0.78125 | 11 | 96 | 6.818182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.1875 | 96 | 6 | 35 | 16 | 0.935897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 |
c8b6172d3893fc2fb6de2c181400ed7329e52960 | 22 | py | Python | src/main/python/hellosphinx/__init__.py | tjpnz/sphinx-example | 2a54b24b38dfb4cf7de58e23d5ca00964c94a9b8 | [
"MIT"
] | null | null | null | src/main/python/hellosphinx/__init__.py | tjpnz/sphinx-example | 2a54b24b38dfb4cf7de58e23d5ca00964c94a9b8 | [
"MIT"
] | null | null | null | src/main/python/hellosphinx/__init__.py | tjpnz/sphinx-example | 2a54b24b38dfb4cf7de58e23d5ca00964c94a9b8 | [
"MIT"
] | null | null | null | __author__ = 'thomas'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
c8bb8abe81ba0fa83d8ce2ef85fd51df11e61ea3 | 271 | py | Python | QUANTAXIS_CRAWLY_TEST/eastmoney_simulation_web_trader_test.py | simplezhang57/QUANTAXIS | 0fab23ee3cc4048a30b5eed3c311a5c9cdce8110 | [
"MIT"
] | 2 | 2018-10-29T12:01:55.000Z | 2021-03-05T10:28:59.000Z | QUANTAXIS_CRAWLY_TEST/eastmoney_simulation_web_trader_test.py | frosthaoz/QUANTAXIS | f5f482418e5f6e23ac3530089b8d17300d931b48 | [
"MIT"
] | null | null | null | QUANTAXIS_CRAWLY_TEST/eastmoney_simulation_web_trader_test.py | frosthaoz/QUANTAXIS | f5f482418e5f6e23ac3530089b8d17300d931b48 | [
"MIT"
] | 3 | 2018-11-29T07:07:56.000Z | 2021-02-09T17:24:56.000Z | from QUANTAXIS_CRAWLY.eastmoney_simulation_web_trader import EastMoneySimulationWebTrader
import unittest
class TestEastMoneySimTrader(unittest.TestCase):
def testTrader(self):
EMSimTrader = EastMoneySimulationWebTrader()
EMSimTrader.startTrade()
| 24.636364 | 89 | 0.808118 | 22 | 271 | 9.772727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140221 | 271 | 10 | 90 | 27.1 | 0.922747 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8c1b54c28ebd738f56b25fea13596de53aa108a | 239 | py | Python | fake_sudir/app/app.py | IlyaVkBot/moscow_deg2021_local_exec | ba6272a5141d83d6a2d2a1e6639b8670c154fea6 | [
"BSD-3-Clause"
] | 2 | 2022-01-04T00:47:44.000Z | 2022-01-04T06:10:11.000Z | fake_sudir/app/app.py | IlyaVkBot/moscow_deg2021_local_exec | ba6272a5141d83d6a2d2a1e6639b8670c154fea6 | [
"BSD-3-Clause"
] | null | null | null | fake_sudir/app/app.py | IlyaVkBot/moscow_deg2021_local_exec | ba6272a5141d83d6a2d2a1e6639b8670c154fea6 | [
"BSD-3-Clause"
] | 2 | 2022-01-04T04:15:35.000Z | 2022-01-20T15:19:39.000Z | from website.app import create_app
app = create_app({
'SECRET_KEY': 'secret',
'OAUTH2_REFRESH_TOKEN_GENERATOR': True,
'SQLALCHEMY_TRACK_MODIFICATIONS': False,
'SQLALCHEMY_DATABASE_URI': 'sqlite:///database/db.sqlite',
})
| 23.9 | 62 | 0.723849 | 28 | 239 | 5.821429 | 0.714286 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.142259 | 239 | 9 | 63 | 26.555556 | 0.790244 | 0 | 0 | 0 | 0 | 0 | 0.531381 | 0.464435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c8d15777df42e9befd7a9281f48c38890329aace | 5,579 | py | Python | tests/api/endpoints/test_upload_links.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/api/endpoints/test_upload_links.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/api/endpoints/test_upload_links.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import json
from mock import patch
from django.core.urlresolvers import reverse
from seahub.test_utils import BaseTestCase
from seahub.share.models import UploadLinkShare
from seahub.api2.permissions import CanGenerateUploadLink
try:
from seahub.settings import LOCAL_PRO_DEV_ENV
except Imp... | 33.608434 | 99 | 0.680946 | 782 | 5,579 | 4.579284 | 0.132992 | 0.058643 | 0.036303 | 0.046077 | 0.79866 | 0.771293 | 0.745881 | 0.694778 | 0.653728 | 0.635018 | 0 | 0.010924 | 0.212404 | 5,579 | 165 | 100 | 33.812121 | 0.804051 | 0.042481 | 0 | 0.518182 | 0 | 0 | 0.068403 | 0.022489 | 0 | 0 | 0 | 0 | 0.190909 | 1 | 0.136364 | false | 0 | 0.072727 | 0 | 0.245455 | 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 |
c8ddd774315ad211f95914618ec948ddc4204b7e | 5,421 | py | Python | system_keyspaces_test.py | dineshjoshi/cassandra-dtest-1 | 18ccbb4d308c27b67a8d81a2c849dc27fc3e2b5c | [
"Apache-2.0"
] | 44 | 2017-07-13T14:20:42.000Z | 2022-03-27T23:55:27.000Z | system_keyspaces_test.py | dineshjoshi/cassandra-dtest-1 | 18ccbb4d308c27b67a8d81a2c849dc27fc3e2b5c | [
"Apache-2.0"
] | 64 | 2017-07-26T16:06:01.000Z | 2022-03-17T22:57:03.000Z | system_keyspaces_test.py | dineshjoshi/cassandra-dtest-1 | 18ccbb4d308c27b67a8d81a2c849dc27fc3e2b5c | [
"Apache-2.0"
] | 105 | 2017-07-13T14:28:14.000Z | 2022-03-23T04:22:46.000Z | import pytest
import logging
from cassandra import Unauthorized
from dtest import Tester
from tools.assertions import assert_all, assert_exception, assert_none
since = pytest.mark.since
logger = logging.getLogger(__name__)
class TestSystemKeyspaces(Tester):
@since('3.0')
def test_local_system_keyspaces(se... | 43.02381 | 107 | 0.636783 | 529 | 5,421 | 6.345936 | 0.145558 | 0.10277 | 0.144176 | 0.125112 | 0.791183 | 0.759905 | 0.717605 | 0.717605 | 0.55347 | 0.55347 | 0 | 0.005103 | 0.277071 | 5,421 | 125 | 108 | 43.368 | 0.851493 | 0.122302 | 0 | 0.534884 | 0 | 0 | 0.365283 | 0.095639 | 0 | 0 | 0 | 0 | 0.313953 | 1 | 0.023256 | false | 0 | 0.05814 | 0 | 0.093023 | 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 |
c8e671cdc2ccd890d54fac957ba6fa0816f5708b | 685 | py | Python | C03-Unit-Testing/09-C03V06/multiple.py | dirchev/Python-101-Forever-1 | 13c3bb182747aae244ae6f9fd6f79c8223f3e9a6 | [
"MIT"
] | 59 | 2021-02-05T10:40:08.000Z | 2022-01-26T08:30:43.000Z | C03-Unit-Testing/09-C03V06/multiple.py | dirchev/Python-101-Forever-1 | 13c3bb182747aae244ae6f9fd6f79c8223f3e9a6 | [
"MIT"
] | null | null | null | C03-Unit-Testing/09-C03V06/multiple.py | dirchev/Python-101-Forever-1 | 13c3bb182747aae244ae6f9fd6f79c8223f3e9a6 | [
"MIT"
] | 10 | 2021-02-13T16:50:26.000Z | 2022-03-20T12:17:00.000Z | # multiple.py
def fail(exception_cls):
raise exception_cls("Ooops")
try:
fail(ValueError)
except Exception as exc:
print("Can catch ValueError as Exception.")
print(exc.__class__)
except ValueError as exc:
print("Can catch ValueError as ValueError.")
print(exc.__class__)
try:
fail(Value... | 21.40625 | 67 | 0.715328 | 89 | 685 | 5.258427 | 0.247191 | 0.153846 | 0.106838 | 0.138889 | 0.745727 | 0.745727 | 0.688034 | 0.688034 | 0.581197 | 0.581197 | 0 | 0 | 0.189781 | 685 | 31 | 68 | 22.096774 | 0.843243 | 0.016058 | 0 | 0.826087 | 0 | 0 | 0.293155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.043478 | 0.434783 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7402b0e7811e6df6c5750394f38e736798a26c57 | 175 | py | Python | tests/test_trpo.py | mjyoo2/stable-baselines3 | ef7a580219df6d977b56fb99e503890bd5211195 | [
"MIT"
] | null | null | null | tests/test_trpo.py | mjyoo2/stable-baselines3 | ef7a580219df6d977b56fb99e503890bd5211195 | [
"MIT"
] | null | null | null | tests/test_trpo.py | mjyoo2/stable-baselines3 | ef7a580219df6d977b56fb99e503890bd5211195 | [
"MIT"
] | null | null | null | from stable_baselines3 import TRPO
import gym
if __name__ == "__main__":
env = gym.make("HalfCheetah-v2")
model = TRPO("MlpPolicy", env=env)
model.learn(10000)
| 17.5 | 38 | 0.685714 | 23 | 175 | 4.826087 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.188571 | 175 | 9 | 39 | 19.444444 | 0.732394 | 0 | 0 | 0 | 0 | 0 | 0.178161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cdd20dfe43fd47fa7ce070159c44a2411795bb2b | 13,257 | py | Python | tests/test_lgdn_topics.py | Accelize/drm | 081ef761de50b526523b692c3a8decf290714ed0 | [
"Apache-2.0"
] | 4 | 2021-02-21T09:11:50.000Z | 2021-11-29T02:34:07.000Z | tests/test_lgdn_topics.py | Accelize/drm | 081ef761de50b526523b692c3a8decf290714ed0 | [
"Apache-2.0"
] | null | null | null | tests/test_lgdn_topics.py | Accelize/drm | 081ef761de50b526523b692c3a8decf290714ed0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Test metering and floating behaviors of DRM Library.
"""
import pytest
from time import sleep
from random import randint
from itertools import groupby
from re import match
from flask import request as _request
from datetime import datetime, timedelta
from tests.conftest import wait_deadline... | 39.338279 | 172 | 0.601569 | 1,482 | 13,257 | 5.103239 | 0.155196 | 0.091234 | 0.079069 | 0.058178 | 0.738199 | 0.718234 | 0.702235 | 0.666138 | 0.623827 | 0.588788 | 0 | 0.007669 | 0.311458 | 13,257 | 336 | 173 | 39.455357 | 0.820881 | 0.0611 | 0 | 0.782456 | 0 | 0.003509 | 0.117761 | 0.016257 | 0 | 0 | 0 | 0 | 0.164912 | 1 | 0.021053 | false | 0.007018 | 0.035088 | 0 | 0.05614 | 0.080702 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cdf15e2502e1a2a1de49337a4e32248756ebfbfa | 2,883 | py | Python | modules/ravestate_verbaliser/verbaliser.py | HackRoboy/dialogic | 0c0b766409aeb2b717e4c396000d79909658cbb2 | [
"MIT"
] | null | null | null | modules/ravestate_verbaliser/verbaliser.py | HackRoboy/dialogic | 0c0b766409aeb2b717e4c396000d79909658cbb2 | [
"MIT"
] | null | null | null | modules/ravestate_verbaliser/verbaliser.py | HackRoboy/dialogic | 0c0b766409aeb2b717e4c396000d79909658cbb2 | [
"MIT"
] | 1 | 2018-10-20T20:44:32.000Z | 2018-10-20T20:44:32.000Z | from ravestate_util.random_tuple import RandomTuple
from ravestate_verbaliser.phrases import Phrases
from modules.ravestate_verbaliser.qa_parser import QAParser
class Verbaliser:
"""
Produces actual utterances. This should in the future lead to diversifying
the ways Roboy is expressing information.
""... | 34.73494 | 111 | 0.613944 | 347 | 2,883 | 4.994236 | 0.435159 | 0.080785 | 0.121177 | 0.019619 | 0.061166 | 0.032314 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264655 | 2,883 | 82 | 112 | 35.158537 | 0.817453 | 0.051682 | 0 | 0.175439 | 0 | 0 | 0.324474 | 0.056109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.245614 | 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 |
cdf545d989cc59f27fd6b4d22bf7b0344b373ee8 | 226 | py | Python | tests/testapp/publishers.py | wagtail/wagtail-live | dd769be089d457cf36db2506520028bc5f506ac3 | [
"BSD-3-Clause"
] | 22 | 2021-06-07T20:36:18.000Z | 2022-03-29T01:48:58.000Z | tests/testapp/publishers.py | wagtail/wagtail-live | dd769be089d457cf36db2506520028bc5f506ac3 | [
"BSD-3-Clause"
] | 73 | 2021-05-21T16:08:44.000Z | 2022-03-20T23:59:59.000Z | tests/testapp/publishers.py | wagtail/wagtail-live | dd769be089d457cf36db2506520028bc5f506ac3 | [
"BSD-3-Clause"
] | 11 | 2021-06-10T10:05:13.000Z | 2022-02-12T13:31:34.000Z | from wagtail_live.publishers.websocket import BaseWebsocketPublisher
class DummyWebsocketPublisher(BaseWebsocketPublisher):
def publish(self, channel_id, renders, removals):
pass
class DummyPublisher:
pass
| 20.545455 | 68 | 0.792035 | 21 | 226 | 8.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154867 | 226 | 10 | 69 | 22.6 | 0.926702 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0.166667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a805c594231d5ee60e3467c44f44324a6ed8bbbf | 330 | py | Python | lapyramid/views.py | niravhjoshi/LAPyramid | 32f144dd2c43859ba375160b4019fcd41797766e | [
"Apache-2.0"
] | null | null | null | lapyramid/views.py | niravhjoshi/LAPyramid | 32f144dd2c43859ba375160b4019fcd41797766e | [
"Apache-2.0"
] | null | null | null | lapyramid/views.py | niravhjoshi/LAPyramid | 32f144dd2c43859ba375160b4019fcd41797766e | [
"Apache-2.0"
] | null | null | null | from pyramid.view import view_config
import lapyramid.utils
@view_config(route_name='home', renderer='templates/mytemplate.pt')
def my_view(request):
return extend_model({'project': 'Nirav index file'})
def extend_model(model_dict):
model_dict['build_cache_id'] = lapyramid.utils.build_cache_id
return ... | 23.571429 | 67 | 0.772727 | 47 | 330 | 5.148936 | 0.595745 | 0.11157 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 330 | 14 | 68 | 23.571429 | 0.831615 | 0 | 0 | 0 | 0 | 0 | 0.193353 | 0.069486 | 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 |
a816df0996a31ab338797b1cc574f85d4716c3af | 390 | py | Python | ovenube_peru/ple_peru/doctype/tipos_de_pago/tipos_de_pago.py | ovenube/ovenube_peru | 1a49e42ef238c6a94f4586a07e0cb0503f753dda | [
"MIT"
] | 1 | 2021-02-20T19:18:51.000Z | 2021-02-20T19:18:51.000Z | ovenube_peru/ple_peru/doctype/tipos_de_pago/tipos_de_pago.py | ovenube/ovenube_peru | 1a49e42ef238c6a94f4586a07e0cb0503f753dda | [
"MIT"
] | 1 | 2021-02-20T19:21:54.000Z | 2021-02-20T19:21:54.000Z | ovenube_peru/ple_peru/doctype/tipos_de_pago/tipos_de_pago.py | ovenube/ovenube_peru | 1a49e42ef238c6a94f4586a07e0cb0503f753dda | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, seethersan and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class TiposdePago(Document):
pass
@frappe.whitelist()
def get_tipo_pago(tipo_pago):
pago = fra... | 24.375 | 50 | 0.782051 | 55 | 390 | 5.327273 | 0.654545 | 0.109215 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014663 | 0.125641 | 390 | 15 | 51 | 26 | 0.844575 | 0.3 | 0 | 0 | 0 | 0 | 0.048327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
a836d4e4f94f00fbadb545d2b7b9b5a32299021d | 1,097 | py | Python | ckanext/ckanext-validate_links/ckanext/validate_links/plugin.py | vrk-kpa/api-catalog | 1150e0f288a96c27657a0c4a02dac96ce1134894 | [
"MIT"
] | 17 | 2015-10-28T11:39:30.000Z | 2022-01-25T22:25:37.000Z | ckanext/ckanext-validate_links/ckanext/validate_links/plugin.py | vrk-kpa/api-catalog | 1150e0f288a96c27657a0c4a02dac96ce1134894 | [
"MIT"
] | 19 | 2016-05-22T06:09:54.000Z | 2022-03-18T09:58:28.000Z | ckanext/ckanext-validate_links/ckanext/validate_links/plugin.py | vrk-kpa/api-catalog | 1150e0f288a96c27657a0c4a02dac96ce1134894 | [
"MIT"
] | 9 | 2015-12-24T04:43:46.000Z | 2020-04-10T06:00:00.000Z | import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit
import ckanext.validate_links.cli as cli
import ckanext.validate_links.views as views
def admin_only(context, data_dict=None):
return {'success': False, 'msg': 'Access restricted to system administrators'}
class Validate_LinksPlugin(plugins.S... | 28.128205 | 85 | 0.736554 | 128 | 1,097 | 6.109375 | 0.40625 | 0.086957 | 0.122762 | 0.066496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171376 | 1,097 | 38 | 86 | 28.868421 | 0.860286 | 0.040109 | 0 | 0 | 0 | 0 | 0.13645 | 0.021947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0.181818 | 0.636364 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b529308e26b98461a39afdc79d95c59caed59031 | 245 | py | Python | tests/pytests/includes.py | abrookins/RediSearch | 773a04106e4f0cfbad3a75a84ce69f3a36fd16e1 | [
"Apache-2.0",
"Ruby",
"BSD-3-Clause",
"MIT"
] | null | null | null | tests/pytests/includes.py | abrookins/RediSearch | 773a04106e4f0cfbad3a75a84ce69f3a36fd16e1 | [
"Apache-2.0",
"Ruby",
"BSD-3-Clause",
"MIT"
] | null | null | null | tests/pytests/includes.py | abrookins/RediSearch | 773a04106e4f0cfbad3a75a84ce69f3a36fd16e1 | [
"Apache-2.0",
"Ruby",
"BSD-3-Clause",
"MIT"
] | null | null | null |
import sys
import os
from RLTest import Defaults
if sys.version_info > (3, 0):
Defaults.decode_responses = True
try:
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../deps/readies"))
import paella
except:
pass
| 17.5 | 85 | 0.689796 | 36 | 245 | 4.527778 | 0.694444 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014851 | 0.17551 | 245 | 13 | 86 | 18.846154 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.1 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
b5388c027fdeaae3fe9b15305624744d09cdbd26 | 150 | py | Python | algorithm/apps.py | veryacademy/YT_django_sorting_algorithms | 8d3ff048a288f0325d608f9c7e1c7166484e47af | [
"MIT"
] | null | null | null | algorithm/apps.py | veryacademy/YT_django_sorting_algorithms | 8d3ff048a288f0325d608f9c7e1c7166484e47af | [
"MIT"
] | null | null | null | algorithm/apps.py | veryacademy/YT_django_sorting_algorithms | 8d3ff048a288f0325d608f9c7e1c7166484e47af | [
"MIT"
] | 1 | 2021-12-03T19:33:16.000Z | 2021-12-03T19:33:16.000Z | from django.apps import AppConfig
class AlgorithmConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'algorithm'
| 21.428571 | 56 | 0.766667 | 17 | 150 | 6.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 150 | 6 | 57 | 25 | 0.882813 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 0.193333 | 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 |
b564ef34dc826389806c8c8dcb8e21be3a087bb8 | 380 | py | Python | home_work_1_oop/tests/test_rectangle.py | nocsland/Python-QA-Engineer | 657b7c25189a3d3381e9bab0fd2f4e5d7a76b304 | [
"Apache-2.0"
] | null | null | null | home_work_1_oop/tests/test_rectangle.py | nocsland/Python-QA-Engineer | 657b7c25189a3d3381e9bab0fd2f4e5d7a76b304 | [
"Apache-2.0"
] | null | null | null | home_work_1_oop/tests/test_rectangle.py | nocsland/Python-QA-Engineer | 657b7c25189a3d3381e9bab0fd2f4e5d7a76b304 | [
"Apache-2.0"
] | null | null | null | """Тесты прямоугольника"""
def test_rectangle_area(rectangle):
assert rectangle.get_area() == 35
def test_triangle_perimeter(rectangle):
assert rectangle.get_perimeter() == 24
def test_add_area_rectangle(rectangle, square):
assert rectangle.add_area(square) == 71
def test_is_instance_not_figure(rect... | 21.111111 | 52 | 0.765789 | 49 | 380 | 5.632653 | 0.408163 | 0.101449 | 0.173913 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018237 | 0.134211 | 380 | 17 | 53 | 22.352941 | 0.820669 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b58cff7bdf5a51b93fe270b7f1f45086be6c48bc | 98 | py | Python | hooks/pre_gen_project.py | msalvaris/AKS-Deployment-Template | faf1393d543cfd6c64d0cc48327370abcd064961 | [
"MIT"
] | 1 | 2021-07-10T13:06:29.000Z | 2021-07-10T13:06:29.000Z | hooks/pre_gen_project.py | msalvaris/AKS-Deployment-Template | faf1393d543cfd6c64d0cc48327370abcd064961 | [
"MIT"
] | null | null | null | hooks/pre_gen_project.py | msalvaris/AKS-Deployment-Template | faf1393d543cfd6c64d0cc48327370abcd064961 | [
"MIT"
] | null | null | null | import os
import shutil
print(
"""
Generating project {{cookiecutter.project_name}}
"""
)
| 8.166667 | 48 | 0.673469 | 10 | 98 | 6.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 98 | 11 | 49 | 8.909091 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b591e08a667b527297c675e2fdae0d41deda40cb | 22 | py | Python | game/gamesrc/conf/deuterium/__init__.py | Pathel/deuterium | 4515b6b569f919b18223ff2b241ea70f3e787e1e | [
"BSD-3-Clause"
] | 5 | 2015-01-30T08:47:59.000Z | 2022-01-22T19:27:03.000Z | game/gamesrc/conf/deuterium/__init__.py | Pathel/deuterium | 4515b6b569f919b18223ff2b241ea70f3e787e1e | [
"BSD-3-Clause"
] | 2 | 2017-12-28T21:36:48.000Z | 2017-12-28T21:36:57.000Z | game/gamesrc/conf/deuterium/__init__.py | Pathel/deuterium | 4515b6b569f919b18223ff2b241ea70f3e787e1e | [
"BSD-3-Clause"
] | 1 | 2020-02-21T05:30:58.000Z | 2020-02-21T05:30:58.000Z | __author__ = 'Dustin'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
b5adb568af4e293e8c6bcd4e04f27dd4e865c5b5 | 9,405 | py | Python | src/braket/pennylane_plugin/translation.py | rickyHong/amazon-braket-pennylane-plugin-python | f19daa528e29edc7cf5afa6b02932b6e575519e6 | [
"Apache-2.0"
] | 1 | 2021-07-10T15:05:40.000Z | 2021-07-10T15:05:40.000Z | src/braket/pennylane_plugin/translation.py | QPC-database/amazon-braket-pennylane-plugin-python | f19daa528e29edc7cf5afa6b02932b6e575519e6 | [
"Apache-2.0"
] | null | null | null | src/braket/pennylane_plugin/translation.py | QPC-database/amazon-braket-pennylane-plugin-python | f19daa528e29edc7cf5afa6b02932b6e575519e6 | [
"Apache-2.0"
] | 1 | 2021-12-29T20:11:28.000Z | 2021-12-29T20:11:28.000Z | # Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | 27.182081 | 99 | 0.74471 | 1,143 | 9,405 | 5.935258 | 0.185477 | 0.068101 | 0.134139 | 0.149617 | 0.333284 | 0.182488 | 0.074735 | 0.053213 | 0 | 0 | 0 | 0.009124 | 0.160978 | 9,405 | 345 | 100 | 27.26087 | 0.850589 | 0.147794 | 0 | 0.31401 | 0 | 0 | 0.026525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227053 | false | 0 | 0.038647 | 0.101449 | 0.507246 | 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 |
a912afaefe6a894b02d56f9e5d0bafa8479379fe | 2,042 | py | Python | 15/test.py | remihuguet/aoc2021 | 1be84ed1a437618f2edc2737f2bbcfe467746dd0 | [
"MIT"
] | null | null | null | 15/test.py | remihuguet/aoc2021 | 1be84ed1a437618f2edc2737f2bbcfe467746dd0 | [
"MIT"
] | null | null | null | 15/test.py | remihuguet/aoc2021 | 1be84ed1a437618f2edc2737f2bbcfe467746dd0 | [
"MIT"
] | null | null | null | from collections import defaultdict
import chiton
test_input = "15/test_input.txt"
def test_parse_input():
assert chiton.parse_input(test_input) == [
[1, 1, 6, 3, 7, 5, 1, 7, 4, 2],
[1, 3, 8, 1, 3, 7, 3, 6, 7, 2],
[2, 1, 3, 6, 5, 1, 1, 3, 2, 8],
[3, 6, 9, 4, 9, 3, 1, 5, 6, 9],
... | 28.361111 | 75 | 0.369246 | 412 | 2,042 | 1.747573 | 0.082524 | 0.072222 | 0.033333 | 0.094444 | 0.329167 | 0.219444 | 0.202778 | 0.127778 | 0 | 0 | 0 | 0.25966 | 0.366308 | 2,042 | 71 | 76 | 28.760563 | 0.296754 | 0 | 0 | 0.067797 | 0 | 0 | 0.008325 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 1 | 0.084746 | false | 0 | 0.033898 | 0 | 0.118644 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a93e762404b8c4c847966c52e1539b83b3150661 | 1,262 | py | Python | trainer/util.py | PlatonaM/analytics-trainer-event-prediction | 9669677733abfca9313cdb98a7c661166e69edb8 | [
"Apache-2.0"
] | null | null | null | trainer/util.py | PlatonaM/analytics-trainer-event-prediction | 9669677733abfca9313cdb98a7c661166e69edb8 | [
"Apache-2.0"
] | null | null | null | trainer/util.py | PlatonaM/analytics-trainer-event-prediction | 9669677733abfca9313cdb98a7c661166e69edb8 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 InfAI (CC SES)
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... | 30.047619 | 82 | 0.70206 | 182 | 1,262 | 4.604396 | 0.494505 | 0.047733 | 0.075179 | 0.050119 | 0.132458 | 0.132458 | 0.132458 | 0.100239 | 0.100239 | 0.100239 | 0 | 0.01003 | 0.209984 | 1,262 | 41 | 83 | 30.780488 | 0.830491 | 0.438986 | 0 | 0.117647 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.117647 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a959ab0ff971428343babcfe7d8d2feb07d13708 | 649 | py | Python | pythonizame/apps/books/feeds.py | kiubtech/pythonizame | 6483aa90859fc1bfbc01540efe4ffcf6fe87e450 | [
"MIT"
] | 6 | 2017-08-17T22:11:28.000Z | 2021-12-23T13:31:28.000Z | pythonizame/apps/books/feeds.py | kiubtech/pythonizame | 6483aa90859fc1bfbc01540efe4ffcf6fe87e450 | [
"MIT"
] | 4 | 2018-04-04T21:02:52.000Z | 2021-06-10T20:38:56.000Z | pythonizame/apps/books/feeds.py | kiubtech/pythonizame | 6483aa90859fc1bfbc01540efe4ffcf6fe87e450 | [
"MIT"
] | 3 | 2017-10-27T22:21:41.000Z | 2019-09-27T17:38:58.000Z | __author__ = 'alex'
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from .models import Book
class LatestEntriesFeed(Feed):
title = "Libros Python"
link = "/books/rss/"
description = "Actualización de la integración de nuevos libros al repositorio Pythonízame... | 28.217391 | 95 | 0.711864 | 81 | 649 | 5.592593 | 0.592593 | 0.046358 | 0.092715 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003795 | 0.187982 | 649 | 22 | 96 | 29.5 | 0.855787 | 0 | 0 | 0 | 0 | 0 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a97ab48f22ca8488f9f928f291a3975333618772 | 4,616 | py | Python | virtual/lib/python3.7/site-packages/bp/memory.py | candycrushpro/pitch-project | 8f850153fa3debcd858c5a58e7296d7cbda3918b | [
"MIT"
] | null | null | null | virtual/lib/python3.7/site-packages/bp/memory.py | candycrushpro/pitch-project | 8f850153fa3debcd858c5a58e7296d7cbda3918b | [
"MIT"
] | null | null | null | virtual/lib/python3.7/site-packages/bp/memory.py | candycrushpro/pitch-project | 8f850153fa3debcd858c5a58e7296d7cbda3918b | [
"MIT"
] | null | null | null | # Copyright (C) 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 24.294737 | 77 | 0.625 | 585 | 4,616 | 4.769231 | 0.355556 | 0.060215 | 0.035125 | 0.028674 | 0.120789 | 0.060215 | 0.018638 | 0 | 0 | 0 | 0 | 0.005682 | 0.275563 | 4,616 | 189 | 78 | 24.42328 | 0.828648 | 0.211872 | 0 | 0.087379 | 0 | 0 | 0.01644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291262 | false | 0.009709 | 0.058252 | 0.174757 | 0.669903 | 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 |
a982a0bef27fc371986468df8bf916b4acd2670e | 169 | py | Python | Docs/Examples/talks/session2_06.py | Vectro-Type-Foundry/robofab | cd65d78292d24358c98dce53d283314cdc85878e | [
"BSD-3-Clause"
] | 61 | 2015-01-17T10:15:45.000Z | 2018-12-02T13:53:02.000Z | Docs/Examples/talks/session2_06.py | Vectro-Type-Foundry/robofab | cd65d78292d24358c98dce53d283314cdc85878e | [
"BSD-3-Clause"
] | 37 | 2015-01-05T23:44:56.000Z | 2018-03-16T19:05:28.000Z | Docs/Examples/talks/session2_06.py | Vectro-Type-Foundry/robofab | cd65d78292d24358c98dce53d283314cdc85878e | [
"BSD-3-Clause"
] | 25 | 2015-01-08T19:49:36.000Z | 2018-10-29T00:36:46.000Z | # robothon06
# iterate through points
from robofab.world import CurrentFont
font = CurrentFont()
glyph = font['A']
for p in glyph[0].points:
print p.x, p.y, p.type | 18.777778 | 37 | 0.710059 | 27 | 169 | 4.444444 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.171598 | 169 | 9 | 38 | 18.777778 | 0.835714 | 0.195266 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a98da9336ff163142478baf265a9da213c57ec27 | 351 | py | Python | __init__.py | lpsmodsim/PyDL | bdf66f1bdba81c762a25465cdbc790929420733e | [
"MIT"
] | null | null | null | __init__.py | lpsmodsim/PyDL | bdf66f1bdba81c762a25465cdbc790929420733e | [
"MIT"
] | 1 | 2022-03-25T23:58:10.000Z | 2022-03-25T23:58:10.000Z | __init__.py | lpsmodsim/PyDL | bdf66f1bdba81c762a25465cdbc790929420733e | [
"MIT"
] | null | null | null | """
Python Attributed Hierarchical Port Graph.
AHPGraph, is intended to be a simple, flexible way to describe
architecture components and their connections. These physical architecture
descriptions can then be converted to SST component graphs or analyzed by other
tools.
"""
from .Device import *
from .DeviceGraph im... | 27 | 79 | 0.797721 | 47 | 351 | 5.957447 | 0.829787 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 351 | 12 | 80 | 29.25 | 0.942761 | 0.763533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a99480c633fed25e6ea479c4573144a67eb6ed23 | 2,043 | py | Python | scoring/dictionary/EPQA93.py | majazeh/risloo-samples | aadf27912a5044663698fa14fa781c644ea3f548 | [
"Unlicense"
] | null | null | null | scoring/dictionary/EPQA93.py | majazeh/risloo-samples | aadf27912a5044663698fa14fa781c644ea3f548 | [
"Unlicense"
] | null | null | null | scoring/dictionary/EPQA93.py | majazeh/risloo-samples | aadf27912a5044663698fa14fa781c644ea3f548 | [
"Unlicense"
] | 1 | 2021-03-07T09:15:55.000Z | 2021-03-07T09:15:55.000Z | f1 = 'psychoticism'
f2 = 'neuroticism'
f3 = 'extraversion'
f4 = 'lie'
factors_names = (f1,f2,f3,f4)
factors = {
1:{
22 :(f1,)
, 26 :(f1,)
, 30 :(f1,)
, 33 :(f1,)
, 43 :(f1,)
, 46 :(f1,)
, 50 :(f1,)
, 65 :(f1,)
, 67 :(f1,)
, 74 :(f1,)... | 16.475806 | 29 | 0.209006 | 197 | 2,043 | 2.162437 | 0.507614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300111 | 0.558003 | 2,043 | 123 | 30 | 16.609756 | 0.17165 | 0 | 0 | 0 | 0 | 0 | 0.018637 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d142c481252d21443394600e16aa67bfad2f1f9 | 86 | py | Python | panimg/settings.py | nlessmann/rse-panimg | c0a2481308ef03677b4786aec775b6e318139495 | [
"Apache-2.0"
] | 5 | 2021-05-12T11:14:19.000Z | 2022-03-28T14:03:27.000Z | panimg/settings.py | nlessmann/rse-panimg | c0a2481308ef03677b4786aec775b6e318139495 | [
"Apache-2.0"
] | 37 | 2021-03-19T08:15:33.000Z | 2022-03-28T08:44:55.000Z | panimg/settings.py | nlessmann/rse-panimg | c0a2481308ef03677b4786aec775b6e318139495 | [
"Apache-2.0"
] | 4 | 2021-03-23T09:52:25.000Z | 2021-11-09T12:48:05.000Z | # Tile size in pixels to be used when creating dzi for tif files
DZI_TILE_SIZE = 2560
| 28.666667 | 64 | 0.77907 | 17 | 86 | 3.823529 | 0.823529 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.197674 | 86 | 2 | 65 | 43 | 0.884058 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d2740bac5937cca5dc712130c49171f8c68f9df | 20 | py | Python | bahamut_ani_stat/config.py | iknowright/bahamut_ani_stat | 49951eeb0614a4e7e721ed7e0e549bdc16a3bed5 | [
"MIT"
] | null | null | null | bahamut_ani_stat/config.py | iknowright/bahamut_ani_stat | 49951eeb0614a4e7e721ed7e0e549bdc16a3bed5 | [
"MIT"
] | null | null | null | bahamut_ani_stat/config.py | iknowright/bahamut_ani_stat | 49951eeb0614a4e7e721ed7e0e549bdc16a3bed5 | [
"MIT"
] | null | null | null | bs4_parser = "lxml"
| 10 | 19 | 0.7 | 3 | 20 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.15 | 20 | 1 | 20 | 20 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 |
8d4d2d1f538554a7f1a082a70a71d9a356871530 | 161 | py | Python | FusionIIIT/applications/visitor_hostel/urls.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | null | null | null | FusionIIIT/applications/visitor_hostel/urls.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | 6 | 2020-02-12T00:40:35.000Z | 2022-03-11T23:19:42.000Z | FusionIIIT/applications/visitor_hostel/urls.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
app_name = 'visitorhostel'
urlpatterns = [
url(r'^', views.visitorhostel, name='visitorhostel'),
]
| 13.416667 | 57 | 0.701863 | 19 | 161 | 5.894737 | 0.631579 | 0.303571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167702 | 161 | 11 | 58 | 14.636364 | 0.835821 | 0 | 0 | 0 | 0 | 0 | 0.167702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
8d50a48dfa4e25427a49ced7f403ebc612f895ba | 246 | py | Python | code/models/__init__.py | ArvindSubramaniam/Pruning-Networks-using-Neuron2Neuron-Skip-Connections | bbe402bbf4c5afb4ae712354e8fca5ce320501b8 | [
"Apache-2.0"
] | 1 | 2021-11-16T03:36:51.000Z | 2021-11-16T03:36:51.000Z | code/models/__init__.py | ArvindSubramaniam/Pruning-Networks-using-Neuron2Neuron-Skip-Connections | bbe402bbf4c5afb4ae712354e8fca5ce320501b8 | [
"Apache-2.0"
] | null | null | null | code/models/__init__.py | ArvindSubramaniam/Pruning-Networks-using-Neuron2Neuron-Skip-Connections | bbe402bbf4c5afb4ae712354e8fca5ce320501b8 | [
"Apache-2.0"
] | 3 | 2020-12-29T01:52:01.000Z | 2021-11-16T03:36:52.000Z | #import torch
#import torch.nn as nn
#import torch.optim as optim
#import torchvision.models as models
#import utils
#import os
#import shutil
#import models.MLP as MLP
#import models.MLP_15 as MLP_15
#import models.MLP_expander as MLP_expander
| 20.5 | 43 | 0.800813 | 42 | 246 | 4.595238 | 0.309524 | 0.170984 | 0.233161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.134146 | 246 | 11 | 44 | 22.363636 | 0.887324 | 0.914634 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d61cab2a6d5cf214f7a042849d1344ee8b2e47b | 3,723 | py | Python | src/widgetastic_bootstrap/tab.py | mfalesni/widgetastic.bootstrap | ade285e43bf3577d133187175ca60bd1b8c1af69 | [
"Apache-2.0"
] | 2 | 2018-09-21T08:54:22.000Z | 2018-09-21T15:19:00.000Z | src/widgetastic_bootstrap/tab.py | mfalesni/widgetastic.bootstrap | ade285e43bf3577d133187175ca60bd1b8c1af69 | [
"Apache-2.0"
] | null | null | null | src/widgetastic_bootstrap/tab.py | mfalesni/widgetastic.bootstrap | ade285e43bf3577d133187175ca60bd1b8c1af69 | [
"Apache-2.0"
] | 1 | 2019-10-15T11:58:57.000Z | 2019-10-15T11:58:57.000Z | from widgetastic.utils import ParametrizedLocator
from widgetastic.xpath import quote
from widgetastic.widget import View
class Tab(View):
"""Represents the Tab widget.
Selects itself automatically when any child widget gets accessed, ensuring that the widget is
visible.
https://getbootstrap.com/docs... | 31.820513 | 98 | 0.65458 | 507 | 3,723 | 4.654832 | 0.278107 | 0.047458 | 0.037288 | 0.03178 | 0.279661 | 0.234322 | 0.138136 | 0.127119 | 0.127119 | 0.081356 | 0 | 0.000704 | 0.236906 | 3,723 | 116 | 99 | 32.094828 | 0.829989 | 0.213269 | 0 | 0.3 | 0 | 0.014286 | 0.155052 | 0.04216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.271429 | false | 0 | 0.042857 | 0.171429 | 0.614286 | 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 |
8d635a378344dbbea9ef6860480a6d6512bfd1ec | 49 | py | Python | examples/__init__.py | starsflower/human-interface | f6b03d95b2a903eeae2c1969b65837421b27401f | [
"MIT"
] | null | null | null | examples/__init__.py | starsflower/human-interface | f6b03d95b2a903eeae2c1969b65837421b27401f | [
"MIT"
] | null | null | null | examples/__init__.py | starsflower/human-interface | f6b03d95b2a903eeae2c1969b65837421b27401f | [
"MIT"
] | null | null | null | colors = [
'purple',
'blue',
'red',
] | 9.8 | 13 | 0.387755 | 4 | 49 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.367347 | 49 | 5 | 14 | 9.8 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0.26 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.