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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6318b0c79b79523e272be071ff272afca76db922 | 15,447 | py | Python | tests/unit/cocoon/test_cocoon_printer.py | fossabot/lusid-python-tools | 93b2fa8085a0a6550d12d036bd89248aba6e5718 | [
"MIT"
] | null | null | null | tests/unit/cocoon/test_cocoon_printer.py | fossabot/lusid-python-tools | 93b2fa8085a0a6550d12d036bd89248aba6e5718 | [
"MIT"
] | null | null | null | tests/unit/cocoon/test_cocoon_printer.py | fossabot/lusid-python-tools | 93b2fa8085a0a6550d12d036bd89248aba6e5718 | [
"MIT"
] | null | null | null | from pathlib import Path
import lusid
import lusid.models as models
import unittest
from lusidtools import logger
from lusidtools.cocoon.cocoon_printer import (
format_portfolios_response,
format_instruments_response,
format_holdings_response,
format_quotes_response,
format_transactions_response,
... | 34.71236 | 119 | 0.578688 | 1,504 | 15,447 | 5.665559 | 0.111037 | 0.030513 | 0.021124 | 0.023237 | 0.768924 | 0.74111 | 0.708133 | 0.678324 | 0.657669 | 0.62833 | 0 | 0.051776 | 0.29106 | 15,447 | 444 | 120 | 34.790541 | 0.726326 | 0.004273 | 0 | 0.503704 | 0 | 0.024691 | 0.194576 | 0.042661 | 0 | 0 | 0 | 0 | 0.064198 | 1 | 0.037037 | false | 0 | 0.017284 | 0 | 0.05679 | 0.002469 | 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 |
2d47a1adc77527fb929e8ca34dfb1ec2cbe11e65 | 799 | py | Python | encapsulation/getattr_and_others.py | Minkov/python-oop | db9651eef374c0e74c32cb6f2bf07c734cc1d051 | [
"MIT"
] | 3 | 2021-11-16T04:52:53.000Z | 2022-02-07T20:28:41.000Z | encapsulation/getattr_and_others.py | Minkov/python-oop | db9651eef374c0e74c32cb6f2bf07c734cc1d051 | [
"MIT"
] | null | null | null | encapsulation/getattr_and_others.py | Minkov/python-oop | db9651eef374c0e74c32cb6f2bf07c734cc1d051 | [
"MIT"
] | 1 | 2021-12-07T07:04:38.000Z | 2021-12-07T07:04:38.000Z | class Person:
def __init__(self, name, age):
self.x__name = name
self.age = age
def info(self):
return f'Name: {self.x__name}, Age: {self.age}'
def __generate_key(self, key):
if key.startswith('x__'):
return f'x__Person{key}'
return key
def __setatt... | 22.828571 | 66 | 0.589487 | 103 | 799 | 4.116505 | 0.339806 | 0.07783 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0067 | 0.252816 | 799 | 34 | 67 | 23.5 | 0.703518 | 0.26408 | 0 | 0 | 1 | 0 | 0.102431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.117647 | 0.588235 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
2d70c4f8e5985665250d83fc70fc9320bcd4503c | 217 | py | Python | algorithms/tree/invert_tree.py | zhengli0817/algorithms | 3c98813f0329d9a5fff1107dbcd40e7f38d2275d | [
"MIT"
] | 128 | 2018-02-02T03:12:59.000Z | 2021-08-22T16:39:12.000Z | algorithms/tree/invert_tree.py | zhengli0817/algorithms | 3c98813f0329d9a5fff1107dbcd40e7f38d2275d | [
"MIT"
] | 1 | 2018-07-10T13:06:55.000Z | 2018-07-10T13:06:55.000Z | algorithms/tree/invert_tree.py | zhengli0817/algorithms | 3c98813f0329d9a5fff1107dbcd40e7f38d2275d | [
"MIT"
] | 57 | 2018-02-02T04:37:05.000Z | 2020-11-09T05:09:58.000Z | # invert a binary tree
def reverse(root):
if not root:
return
root.left, root.right = root.right, root.left
if root.left:
reverse(root.left)
if root.right:
reverse(root.right)
| 19.727273 | 49 | 0.608295 | 31 | 217 | 4.258065 | 0.387097 | 0.242424 | 0.19697 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 217 | 10 | 50 | 21.7 | 0.857143 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d7c98b7d9be6ebad7794645393602e150f49c3c | 962 | py | Python | galleria/models.py | zizoubrown/Galley | 9f76a3a98bba97d85257cea65663ce4196d81a78 | [
"Unlicense"
] | null | null | null | galleria/models.py | zizoubrown/Galley | 9f76a3a98bba97d85257cea65663ce4196d81a78 | [
"Unlicense"
] | null | null | null | galleria/models.py | zizoubrown/Galley | 9f76a3a98bba97d85257cea65663ce4196d81a78 | [
"Unlicense"
] | null | null | null | from django.db import models
# Create your models here.
class Location(models.Model):
location = models.CharField(max_length=30)
def __str__(self):
return self.location
def save_location(self):
salf.save()
class Category(models.Model):
category = models.CharField(max_length=30)
... | 27.485714 | 74 | 0.713098 | 120 | 962 | 5.458333 | 0.358333 | 0.091603 | 0.109924 | 0.146565 | 0.210687 | 0.140458 | 0.140458 | 0.140458 | 0.140458 | 0.140458 | 0 | 0.011568 | 0.191268 | 962 | 35 | 75 | 27.485714 | 0.830334 | 0.024948 | 0 | 0.12 | 0 | 0 | 0.007471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0.12 | 0.84 | 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 |
2d7ee9a69e0360b3b20c9ee8bb455695b279896b | 758 | py | Python | seleniumbase/common/exceptions.py | mdmintz/seleniumspot | f5c225aa4fcd0b4124fc990e3892c36736290ce8 | [
"MIT"
] | 1 | 2015-06-17T10:16:26.000Z | 2015-06-17T10:16:26.000Z | seleniumbase/common/exceptions.py | mdmintz/seleniumspot | f5c225aa4fcd0b4124fc990e3892c36736290ce8 | [
"MIT"
] | null | null | null | seleniumbase/common/exceptions.py | mdmintz/seleniumspot | f5c225aa4fcd0b4124fc990e3892c36736290ce8 | [
"MIT"
] | null | null | null | """ SeleniumBase Exceptions
NoSuchFileException => Called when self.assert_downloaded_file(...) fails.
NotUsingChromeException => Used by Chrome-only methods if not using Chrome.
OutOfScopeException => Used by BaseCase methods when setUp() is skipped.
TextNotVisibleException => Called when expected text... | 26.137931 | 79 | 0.779683 | 70 | 758 | 8.414286 | 0.6 | 0.061121 | 0.061121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150396 | 758 | 28 | 80 | 27.071429 | 0.914596 | 0.51847 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.454545 | 0.090909 | 0 | 0.545455 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
2d8cab45df19ab820c81c7d723ec7a8d6e987d02 | 403 | py | Python | Top250Shows/Top250Shows/items.py | techonair/Web-Scraping-Projects | c9fae44bba79d506f8faba0a2aeb19cfeca7547d | [
"MIT"
] | null | null | null | Top250Shows/Top250Shows/items.py | techonair/Web-Scraping-Projects | c9fae44bba79d506f8faba0a2aeb19cfeca7547d | [
"MIT"
] | null | null | null | Top250Shows/Top250Shows/items.py | techonair/Web-Scraping-Projects | c9fae44bba79d506f8faba0a2aeb19cfeca7547d | [
"MIT"
] | null | null | null | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class Top250ShowsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
show_name = scrapy.Field()
release_date = scrapy.Fiel... | 21.210526 | 53 | 0.689826 | 54 | 403 | 5.074074 | 0.648148 | 0.20073 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.205955 | 403 | 18 | 54 | 22.388889 | 0.846875 | 0.456576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2da2ee0840625b4f6e087c799dab52cb506dcadf | 286 | py | Python | picmodels/models/utils/base.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | picmodels/models/utils/base.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | picmodels/models/utils/base.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | def filter_db_queryset_by_id(db_queryset, rqst_id, list_of_ids):
if isinstance(rqst_id, str) and rqst_id.lower() == "all":
db_queryset = db_queryset.order_by("id")
else:
db_queryset = db_queryset.filter(id__in=list_of_ids).order_by("id")
return db_queryset
| 35.75 | 75 | 0.713287 | 47 | 286 | 3.893617 | 0.425532 | 0.382514 | 0.098361 | 0.218579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171329 | 286 | 7 | 76 | 40.857143 | 0.772152 | 0 | 0 | 0 | 0 | 0 | 0.024476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 3 |
2dbae46a326ba99f0d3ef6ec45991208d57240b4 | 662 | py | Python | Mundo 3/Exercicios/Desafio073.py | yWolfBR/Python-CursoEmVideo | 17bab8ad3c4293daf8377c5d49242942845b3577 | [
"MIT"
] | null | null | null | Mundo 3/Exercicios/Desafio073.py | yWolfBR/Python-CursoEmVideo | 17bab8ad3c4293daf8377c5d49242942845b3577 | [
"MIT"
] | null | null | null | Mundo 3/Exercicios/Desafio073.py | yWolfBR/Python-CursoEmVideo | 17bab8ad3c4293daf8377c5d49242942845b3577 | [
"MIT"
] | null | null | null | tabela = ('Fortaleza', 'Athletico-PR', 'Flamengo', 'Atlético-GO', 'Atlético-MG', 'Bragantino', 'Fluminense', 'Bahia',
'Palmeiras', 'Corinthians', 'Ceará SC', 'Santos', 'Internacional', 'Juventude', 'Cuiabá', 'Sport Recife',
'São Paulo', 'Chapecoense', 'Grêmio', 'América-MG')
linha = '-=-' * 98
print... | 41.375 | 117 | 0.669184 | 86 | 662 | 5.151163 | 0.581395 | 0.13544 | 0.1693 | 0.180587 | 0.14447 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012132 | 0.128399 | 662 | 15 | 118 | 44.133333 | 0.755633 | 0 | 0 | 0.4 | 0 | 0 | 0.608761 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.733333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2dbfa52195e3d9fb81505afcf8587dea2efde927 | 3,284 | py | Python | socialbot/plugins/linkediner.py | skalanux/socialbot | c1406bd0d9bcb76283c7543fae2284282ce41e31 | [
"BSD-3-Clause"
] | null | null | null | socialbot/plugins/linkediner.py | skalanux/socialbot | c1406bd0d9bcb76283c7543fae2284282ce41e31 | [
"BSD-3-Clause"
] | null | null | null | socialbot/plugins/linkediner.py | skalanux/socialbot | c1406bd0d9bcb76283c7543fae2284282ce41e31 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# OAuth2 Linkedin reference: https://developer.linkedin.com/docs/oauth2
#
# Steps to generate a access token
# 1) Go to linkedin and create an application
# 2) Generate an API_KEY, API_SECRET and set the RETURN_URL
# 3) run in a console: python socialbot/plugins/linkediner.py... | 36.898876 | 100 | 0.610536 | 382 | 3,284 | 5.08377 | 0.41623 | 0.067971 | 0.043769 | 0.019567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005379 | 0.264007 | 3,284 | 88 | 101 | 37.318182 | 0.798097 | 0.154994 | 0 | 0.067797 | 1 | 0 | 0.214337 | 0.028965 | 0 | 0 | 0 | 0.011364 | 0 | 0 | null | null | 0 | 0.067797 | null | null | 0.135593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2dc9edf0abed80367188c9ceec95974f534c04fc | 182 | py | Python | {{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/mappings/__init__.py | slint/cookiecutter-invenio-datamodel | edf16c5830db9d6e73dd9f133fc3cd1ce29a0d71 | [
"MIT"
] | null | null | null | {{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/mappings/__init__.py | slint/cookiecutter-invenio-datamodel | edf16c5830db9d6e73dd9f133fc3cd1ce29a0d71 | [
"MIT"
] | null | null | null | {{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/mappings/__init__.py | slint/cookiecutter-invenio-datamodel | edf16c5830db9d6e73dd9f133fc3cd1ce29a0d71 | [
"MIT"
] | null | null | null | """Mappings.
Mappings define how internal objects and their fields will be indexed.
The provided record-v1.0.0.json file is an example of how to index records
in Elasticsearch.
"""
| 26 | 74 | 0.774725 | 30 | 182 | 4.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.153846 | 182 | 6 | 75 | 30.333333 | 0.896104 | 0.956044 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2dcffc14e6e31fdef10c364d7711fd69f434c0a1 | 313 | py | Python | cellular_musician/SongStructureGen_test.py | Sciguymjm/CellularAutomata | 00dda687e30edd56ee76849c1a4bb34535703c0c | [
"MIT"
] | 10 | 2015-09-23T21:00:48.000Z | 2021-09-13T23:05:02.000Z | cellular_musician/SongStructureGen_test.py | Sciguymjm/CellularAutomata | 00dda687e30edd56ee76849c1a4bb34535703c0c | [
"MIT"
] | null | null | null | cellular_musician/SongStructureGen_test.py | Sciguymjm/CellularAutomata | 00dda687e30edd56ee76849c1a4bb34535703c0c | [
"MIT"
] | 3 | 2015-09-23T19:27:57.000Z | 2019-01-24T21:36:36.000Z | import unittest
from SongStructureGen import SongStructure
class TestSongStructure(unittest.TestCase):
def test_create_new(self):
"""tests create new song structure"""
song = SongStructure()
print song.get_sections_string()
# TODO:
# self.assertTrue(SOMETHING...)
| 20.866667 | 45 | 0.677316 | 31 | 313 | 6.709677 | 0.741935 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233227 | 313 | 14 | 46 | 22.357143 | 0.866667 | 0.111821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2ddae2da14d01cd77f89fb0f74b37711f449bb5c | 25,937 | py | Python | pysnmp/Nortel-Magellan-Passport-SoftwareMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-Magellan-Passport-SoftwareMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-Magellan-Passport-SoftwareMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-Magellan-Passport-SoftwareMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-SoftwareMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:18:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# U... | 125.299517 | 3,710 | 0.749007 | 3,120 | 25,937 | 6.226603 | 0.077244 | 0.020693 | 0.015751 | 0.021002 | 0.489731 | 0.44747 | 0.440933 | 0.434653 | 0.416225 | 0.391105 | 0 | 0.086969 | 0.091645 | 25,937 | 206 | 3,711 | 125.907767 | 0.737606 | 0.014111 | 0 | 0 | 0 | 0 | 0.158673 | 0.076637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.120603 | 0.045226 | 0 | 0.045226 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9310f739f803acc2a88e86809a8399419f92bc7e | 1,797 | py | Python | appassure/core/IReportingManagement.py | rshipp/python-appassure | 49230249bf5600dc6e7f534baaa81a5402bdf781 | [
"BSD-3-Clause"
] | null | null | null | appassure/core/IReportingManagement.py | rshipp/python-appassure | 49230249bf5600dc6e7f534baaa81a5402bdf781 | [
"BSD-3-Clause"
] | 2 | 2015-02-11T16:19:30.000Z | 2015-04-20T11:14:47.000Z | appassure/core/IReportingManagement.py | rshipp/python-appassure | 49230249bf5600dc6e7f534baaa81a5402bdf781 | [
"BSD-3-Clause"
] | null | null | null | """AppAssure 5 Core API"""
from appassure.api import AppAssureAPI
class IReportingManagement(AppAssureAPI):
"""Full documentation online at
http://docs.appassure.com/display/AA50D/IReportingManagement
"""
def getAgentFailureReport(self, data):
"""Gets a failure report for a particular agent."... | 39.933333 | 71 | 0.643294 | 186 | 1,797 | 6.215054 | 0.365591 | 0.060554 | 0.102941 | 0.145329 | 0.507785 | 0.507785 | 0.33737 | 0.33737 | 0.314879 | 0.198962 | 0 | 0.002193 | 0.238731 | 1,797 | 44 | 72 | 40.840909 | 0.842836 | 0.255426 | 0 | 0.181818 | 0 | 0 | 0.21722 | 0.061611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.090909 | 0.045455 | 0 | 0.727273 | 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 |
93316fc7fed7ac79640af8d0e9fe4f624a9affe5 | 131 | py | Python | PythonExercicios/des014.py | leuosilveira/Exercicios-Python_Curso-em-Video | 17793a5dde868dd6c9a34604ade4b68582db4563 | [
"MIT"
] | null | null | null | PythonExercicios/des014.py | leuosilveira/Exercicios-Python_Curso-em-Video | 17793a5dde868dd6c9a34604ade4b68582db4563 | [
"MIT"
] | null | null | null | PythonExercicios/des014.py | leuosilveira/Exercicios-Python_Curso-em-Video | 17793a5dde868dd6c9a34604ade4b68582db4563 | [
"MIT"
] | null | null | null | c = float(input('Informe a temperatura em C: '))
f = (c * 9/5)+ 32
print('A temperatura de {}°C corresponde a {}°F!'.format(c,f))
| 26.2 | 62 | 0.610687 | 26 | 131 | 3.153846 | 0.615385 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.167939 | 131 | 4 | 63 | 32.75 | 0.697248 | 0 | 0 | 0 | 0 | 0 | 0.526718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9343637ad6b153895daeffb9cf110f9e2e4dd3cd | 533 | py | Python | examples/seedpython/scripts/list.py | SeedV/SeedLang | 53e23301cc8d21e2752e94a6b6c6697e7976fcad | [
"Apache-2.0"
] | 6 | 2022-02-09T11:25:29.000Z | 2022-02-13T19:54:13.000Z | examples/seedpython/scripts/list.py | SeedV/SeedLang | 53e23301cc8d21e2752e94a6b6c6697e7976fcad | [
"Apache-2.0"
] | 17 | 2021-12-28T06:40:36.000Z | 2022-03-31T12:51:31.000Z | examples/seedpython/scripts/list.py | SeedV/SeedLang | 53e23301cc8d21e2752e94a6b6c6697e7976fcad | [
"Apache-2.0"
] | null | null | null | squares = [1, 4, 9, 16, 25]
print(squares) # [1, 4, 9, 16, 25]
print(squares[0]) # 1
print(squares[-1]) # 25
cubes = [1, 8, 27, 65, 125]
cubes[3] = 64
print(cubes) # [1, 8, 27, 64, 125]
cubes.append(216)
cubes.append(7 ** 3)
print(cubes) # [1, 8, 27, 64, 125, 216, 343]
print(8 in cubes) # True
print(None in c... | 18.37931 | 45 | 0.485929 | 113 | 533 | 2.292035 | 0.230089 | 0.07722 | 0.069498 | 0.061776 | 0.552124 | 0.501931 | 0.413127 | 0.266409 | 0 | 0 | 0 | 0.243842 | 0.238274 | 533 | 28 | 46 | 19.035714 | 0.394089 | 0.305816 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.55 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9343c455ad619e3d9a6331d17cd892dc2f6268b6 | 1,028 | py | Python | jftools/interpolate.py | jfeist/jftools | df2133431a2af5fe4708beecef879697f493d9d8 | [
"MIT"
] | null | null | null | jftools/interpolate.py | jfeist/jftools | df2133431a2af5fe4708beecef879697f493d9d8 | [
"MIT"
] | null | null | null | jftools/interpolate.py | jfeist/jftools | df2133431a2af5fe4708beecef879697f493d9d8 | [
"MIT"
] | 1 | 2021-09-18T22:29:11.000Z | 2021-09-18T22:29:11.000Z | from scipy.interpolate import InterpolatedUnivariateSpline
from numpy import exp, angle
from . import unroll_phase
arg = lambda x: unroll_phase(angle(x))
def interp_cmplx(x,y,*args,absarg=True,interpolator=InterpolatedUnivariateSpline,**kwargs):
if absarg:
return interp_cmplx_absarg(interpolator,x,y,*args... | 39.538462 | 91 | 0.695525 | 140 | 1,028 | 4.914286 | 0.242857 | 0.203488 | 0.122093 | 0.104651 | 0.363372 | 0.232558 | 0.232558 | 0.232558 | 0.232558 | 0 | 0 | 0.002281 | 0.146887 | 1,028 | 25 | 92 | 41.12 | 0.782212 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0.095238 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9345c9e7972da1cf992a74dee0586a2e82c35e39 | 2,436 | py | Python | azure-mgmt-reservations/azure/mgmt/reservations/models/extended_error_info.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 4 | 2016-06-17T23:25:29.000Z | 2022-03-30T22:37:45.000Z | azure-mgmt-reservations/azure/mgmt/reservations/models/extended_error_info.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 54 | 2016-03-25T17:25:01.000Z | 2018-10-22T17:27:54.000Z | azure-mgmt-reservations/azure/mgmt/reservations/models/extended_error_info.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | 3 | 2016-05-03T20:49:46.000Z | 2017-10-05T21:05:27.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------... | 45.962264 | 79 | 0.697865 | 137 | 2,436 | 12.364964 | 0.773723 | 0.012987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002379 | 0.13711 | 2,436 | 52 | 80 | 46.846154 | 0.80352 | 0.813218 | 0 | 0 | 1 | 0 | 0.130031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9350d90464d29743acabcbadd789b971cd28511b | 3,284 | bzl | Python | bazel/repository_locations.bzl | snowp/xds | b88cc788a63e5b38ee334a2e702c67901355ae2c | [
"Apache-2.0"
] | 217 | 2019-08-21T07:09:06.000Z | 2022-03-30T07:23:22.000Z | bazel/repository_locations.bzl | snowp/xds | b88cc788a63e5b38ee334a2e702c67901355ae2c | [
"Apache-2.0"
] | 54 | 2020-06-23T17:34:04.000Z | 2022-03-31T02:04:06.000Z | bazel/repository_locations.bzl | snowp/xds | b88cc788a63e5b38ee334a2e702c67901355ae2c | [
"Apache-2.0"
] | 77 | 2019-08-21T02:51:37.000Z | 2022-03-25T01:14:04.000Z | REPOSITORY_LOCATIONS = dict(
bazel_gazelle = dict(
sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz"],
),
bazel_skylib = dict(
sha256 = "2ef429f5d7ce7... | 56.62069 | 144 | 0.732643 | 288 | 3,284 | 8.225694 | 0.322917 | 0.04179 | 0.063318 | 0.075981 | 0.094977 | 0.06965 | 0 | 0 | 0 | 0 | 0 | 0.308081 | 0.155907 | 3,284 | 57 | 145 | 57.614035 | 0.546537 | 0.040499 | 0 | 0.207547 | 0 | 0.132075 | 0.643243 | 0.308108 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9367a3c83aeb1e05f38f4db9fb0110e731dd859c | 121 | py | Python | configs/faster_rcnn/faster_rcnn_r101_fpn_2x_coco.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 426 | 2020-10-16T08:09:27.000Z | 2022-03-30T03:36:04.000Z | configs/faster_rcnn/faster_rcnn_r101_fpn_2x_coco.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 170 | 2020-09-08T12:29:06.000Z | 2022-03-31T18:28:09.000Z | configs/faster_rcnn/faster_rcnn_r101_fpn_2x_coco.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 84 | 2021-05-29T06:58:14.000Z | 2022-03-31T07:44:10.000Z | _base_ = './faster_rcnn_r50_fpn_2x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 40.333333 | 76 | 0.77686 | 17 | 121 | 5.117647 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.057851 | 121 | 2 | 77 | 60.5 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa73682db46c75300124349e751d2b0e712a7807 | 184 | py | Python | python/gigasecond/gigasecond.py | TomOrth/Exercism-Solutions | a700059320adc8c8a275cc4b765768c6c251e986 | [
"MIT"
] | null | null | null | python/gigasecond/gigasecond.py | TomOrth/Exercism-Solutions | a700059320adc8c8a275cc4b765768c6c251e986 | [
"MIT"
] | null | null | null | python/gigasecond/gigasecond.py | TomOrth/Exercism-Solutions | a700059320adc8c8a275cc4b765768c6c251e986 | [
"MIT"
] | null | null | null | import datetime
import math
def add_gigasecond(birth_date):
if birth_date is None: raise ValueError('Invalid value')
return birth_date + datetime.timedelta(0, math.pow(10, 9))
| 30.666667 | 62 | 0.76087 | 28 | 184 | 4.857143 | 0.75 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.146739 | 184 | 5 | 63 | 36.8 | 0.840764 | 0 | 0 | 0 | 0 | 0 | 0.070652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | 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 | 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 |
fa7ed425932fb0d91c6b7cba65a0ed36d730d168 | 195 | py | Python | screenshots/sanitize_filenames.py | TheCDC/journal_app | 18c84acfc7b996329d34c3bdd54348cdfdd55252 | [
"MIT"
] | 2 | 2018-03-08T16:21:45.000Z | 2018-10-22T02:13:22.000Z | screenshots/sanitize_filenames.py | TheCDC/journal_app | 18c84acfc7b996329d34c3bdd54348cdfdd55252 | [
"MIT"
] | 3 | 2018-05-25T04:21:09.000Z | 2020-02-10T00:46:37.000Z | screenshots/sanitize_filenames.py | TheCDC/journal_app | 18c84acfc7b996329d34c3bdd54348cdfdd55252 | [
"MIT"
] | null | null | null | import glob
import os
for image in glob.glob('*.png'):
newname = image.replace(' ','_')
os.rename(image,newname)
print(f'','','* * *','',sep='\n')
| 24.375 | 72 | 0.584615 | 24 | 195 | 4.708333 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148718 | 195 | 7 | 73 | 27.857143 | 0.680723 | 0 | 0 | 0 | 0 | 0 | 0.251282 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fad6f6361972eade8eb103dab0006fd77882b79e | 2,620 | py | Python | dictionary_graph/utils.py | ankitgc1/django-sozluk-master | eeebc3eadf932a3f98e826400d5010d2b5b360b7 | [
"BSD-3-Clause"
] | 248 | 2019-10-29T20:35:01.000Z | 2022-03-25T11:17:35.000Z | dictionary_graph/utils.py | ankitgc1/django-sozluk-master | eeebc3eadf932a3f98e826400d5010d2b5b360b7 | [
"BSD-3-Clause"
] | 27 | 2019-12-18T21:58:15.000Z | 2022-02-28T11:41:25.000Z | dictionary_graph/utils.py | ankitgc1/django-sozluk-master | eeebc3eadf932a3f98e826400d5010d2b5b360b7 | [
"BSD-3-Clause"
] | 74 | 2019-10-30T14:06:46.000Z | 2022-02-28T07:29:05.000Z | from functools import wraps
from django.core.exceptions import PermissionDenied
from django.utils.translation import gettext as _
from dictionary.conf import settings
def login_required(func):
"""
Utility decorator to check if the user logged in (mutations & resolvers).
"""
@wraps(func)
def dec... | 31.566265 | 110 | 0.674427 | 350 | 2,620 | 4.942857 | 0.408571 | 0.050867 | 0.019075 | 0.020809 | 0.174566 | 0.174566 | 0.131792 | 0.082081 | 0.082081 | 0.082081 | 0 | 0.005508 | 0.237786 | 2,620 | 82 | 111 | 31.95122 | 0.860791 | 0.24771 | 0 | 0.148936 | 0 | 0 | 0.056485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.276596 | false | 0 | 0.085106 | 0.12766 | 0.595745 | 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 |
fae7fb0d379107942a264efe7c57cc6f1eebeafb | 704 | py | Python | benchmark_functions/benchmark.py | soren5/optimizers-visualization | 512a893791bb037bb55fe1423c74e2a21478c326 | [
"MIT"
] | null | null | null | benchmark_functions/benchmark.py | soren5/optimizers-visualization | 512a893791bb037bb55fe1423c74e2a21478c326 | [
"MIT"
] | null | null | null | benchmark_functions/benchmark.py | soren5/optimizers-visualization | 512a893791bb037bb55fe1423c74e2a21478c326 | [
"MIT"
] | null | null | null | class Benchmark():
def __init__(self):
super().__init__()
#Domain should be a list of lists where each list yields the minimum and maximum value for one of the variables.
pass
def calculate(self, x_var, y_var):
pass
def clip_to_domain(self, x_var, y_var):
if... | 32 | 120 | 0.56392 | 111 | 704 | 3.36036 | 0.333333 | 0.214477 | 0.13941 | 0.182306 | 0.514745 | 0.450402 | 0.268097 | 0 | 0 | 0 | 0 | 0.03299 | 0.31108 | 704 | 21 | 121 | 33.52381 | 0.736082 | 0.15767 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
faee32ed383ed4fb993f8b09241f44e00bbfe644 | 32,161 | py | Python | pysnmp-with-texts/HUAWEI-L3VPN-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HUAWEI-L3VPN-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HUAWEI-L3VPN-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-L3VPN-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-L3VPN-EXT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:45:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 135.130252 | 3,845 | 0.790305 | 3,488 | 32,161 | 7.286411 | 0.085722 | 0.06327 | 0.110722 | 0.011489 | 0.496715 | 0.367381 | 0.305253 | 0.280071 | 0.19701 | 0.184419 | 0 | 0.075962 | 0.081869 | 32,161 | 237 | 3,846 | 135.700422 | 0.784747 | 0.010385 | 0 | 0.026201 | 0 | 0.030568 | 0.246433 | 0.041046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117904 | 0.039301 | 0 | 0.039301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
faf04f87b20d54b2f2fd22f1e11b92c600f24bc8 | 651 | py | Python | src/OTLMOW/OTLModel/Classes/FiguratieMarkeringToegang.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OTLModel/Classes/FiguratieMarkeringToegang.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OTLModel/Classes/FiguratieMarkeringToegang.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from abc import abstractmethod
from OTLMOW.OTLModel.Classes.Markering import Markering
from OTLMOW.OTLModel.Classes.AOWSType import AOWSType
# Generated with OTLClassCreator. To modify: extend, do not edit
class FiguratieMarkeringToegang(Markering, AOWSType):
"""Abstracte als toegang tot de verschi... | 36.166667 | 97 | 0.768049 | 74 | 651 | 6.594595 | 0.716216 | 0.04918 | 0.07377 | 0.102459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.138249 | 651 | 17 | 98 | 38.294118 | 0.85918 | 0.228879 | 0 | 0 | 1 | 0 | 0.19378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fafaa8302032b12ec93355694623bee5b80d7623 | 407 | py | Python | Getting Started/importExample.py | edwarddevp/python-learning | 6f849c5a7c296ba3cf3ea79cd21d0429ca91ad59 | [
"MIT"
] | null | null | null | Getting Started/importExample.py | edwarddevp/python-learning | 6f849c5a7c296ba3cf3ea79cd21d0429ca91ad59 | [
"MIT"
] | null | null | null | Getting Started/importExample.py | edwarddevp/python-learning | 6f849c5a7c296ba3cf3ea79cd21d0429ca91ad59 | [
"MIT"
] | null | null | null | """
This a __doc__ comment example (doc string)
This file is a demostration of import module
"""
import os
print(os.listdir()) # list directories in current folder
# Run in the terminal
# import importExample
# importExample.__doc__
def create():
""" doc String inside a funtion"""
print("Create f... | 17.695652 | 57 | 0.714988 | 52 | 407 | 5.365385 | 0.557692 | 0.064516 | 0.057348 | 0.114695 | 0.344086 | 0.344086 | 0.344086 | 0 | 0 | 0 | 0 | 0 | 0.19656 | 407 | 22 | 58 | 18.5 | 0.853211 | 0.700246 | 0 | 0 | 0 | 0 | 0.159574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
877fdafebccef9dd7f03cc2c676e62fd364b00a6 | 323 | py | Python | expense_tracker/models.py | bc-dipesh/my_expense_tracker | fcf1df9637b5b064afebc704745f1fc4f1860f31 | [
"MIT"
] | null | null | null | expense_tracker/models.py | bc-dipesh/my_expense_tracker | fcf1df9637b5b064afebc704745f1fc4f1860f31 | [
"MIT"
] | null | null | null | expense_tracker/models.py | bc-dipesh/my_expense_tracker | fcf1df9637b5b064afebc704745f1fc4f1860f31 | [
"MIT"
] | null | null | null | from django.db import models
class Transaction(models.Model):
name = models.CharField(max_length=200)
amount = models.FloatField()
type = models.CharField(max_length=100)
date_added = models.DateTimeField()
def __str__(self):
return f'{self.name} {self.amount} {self.type} {self.date_added... | 26.916667 | 73 | 0.702786 | 42 | 323 | 5.214286 | 0.595238 | 0.136986 | 0.164384 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.173375 | 323 | 11 | 74 | 29.363636 | 0.797753 | 0 | 0 | 0 | 0 | 0 | 0.170279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
87b9afda867d729bb70a576b0ffdfd4a1e8cce6f | 831 | py | Python | andes/__main__.py | lacknc/Andes | 3664ff69406ac01381b675393d6ac96fcf080b25 | [
"Apache-2.0"
] | 1 | 2018-01-11T22:58:17.000Z | 2018-01-11T22:58:17.000Z | andes/__main__.py | rwl/Andes | 6818dcc86bd7e1a5028b5be1deee3d6b4171c540 | [
"Apache-2.0"
] | null | null | null | andes/__main__.py | rwl/Andes | 6818dcc86bd7e1a5028b5be1deee3d6b4171c540 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# ANDES, a power system simulation tool for research.
#
# Copyright 2015-2017 Hantao Cui
#
# 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/... | 30.777778 | 74 | 0.749699 | 129 | 831 | 4.767442 | 0.674419 | 0.097561 | 0.042276 | 0.052033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01895 | 0.174489 | 831 | 26 | 75 | 31.961538 | 0.877551 | 0.868833 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
87d0e2f7676bd1aa03ae2bcaf8c9cb955f4810b8 | 881 | py | Python | reproducibility_pkg/sampler.py | vrishabcommuri/computational-reproducibility | cb3718907d057843007b87a8df32ba9783713ef8 | [
"MIT"
] | null | null | null | reproducibility_pkg/sampler.py | vrishabcommuri/computational-reproducibility | cb3718907d057843007b87a8df32ba9783713ef8 | [
"MIT"
] | null | null | null | reproducibility_pkg/sampler.py | vrishabcommuri/computational-reproducibility | cb3718907d057843007b87a8df32ba9783713ef8 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
def _iter_randomstate(x):
# generate 100 random numbers between 1 and 10
np.random.randint(10, size=100)
def gen_sample_data():
# create a dataframe from which we'll draw a random sample from
df = pd.DataFrame({"reproducible": ["NO"]*1000})
df.iloc[565] = "... | 29.366667 | 78 | 0.710556 | 128 | 881 | 4.828125 | 0.570313 | 0.058252 | 0.042071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031655 | 0.211124 | 881 | 30 | 79 | 29.366667 | 0.857554 | 0.494892 | 0 | 0 | 1 | 0 | 0.066514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
87dbe77ca3d8ee55000be0c47fd596d397c4aafd | 203 | py | Python | JH/0206/1463.py | Kwak-JunYoung/154Algoritm-5weeks | fa18ae5f68a1ee722a30a05309214247f7fbfda4 | [
"MIT"
] | 3 | 2022-01-24T03:06:32.000Z | 2022-01-30T08:43:58.000Z | JH/0206/1463.py | Kwak-JunYoung/154Algoritm-5weeks | fa18ae5f68a1ee722a30a05309214247f7fbfda4 | [
"MIT"
] | null | null | null | JH/0206/1463.py | Kwak-JunYoung/154Algoritm-5weeks | fa18ae5f68a1ee722a30a05309214247f7fbfda4 | [
"MIT"
] | 2 | 2022-01-24T02:27:40.000Z | 2022-01-30T08:57:03.000Z | x = int(input())
d = [0] * 1000001
for i in range(2,x+1):
d[i] = d[i-1] + 1
if i%2 == 0:
d[i] = min(d[i], d[i//2] + 1)
if i%3 == 0:
d[i] = min(d[i], d[i//3] + 1)
print(d[x]) | 18.454545 | 37 | 0.37931 | 48 | 203 | 1.604167 | 0.333333 | 0.207792 | 0.116883 | 0.155844 | 0.25974 | 0.25974 | 0.25974 | 0.25974 | 0 | 0 | 0 | 0.147059 | 0.330049 | 203 | 11 | 38 | 18.454545 | 0.419118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87e7f98746575ce82fda6a168ad5ac3ad13bf698 | 2,175 | py | Python | output/copilot/python/results/q14-integer-break.py | nhtnhan/CMPUT663-copilot-eval | 896711d006eb37a78e010cd1b9f79dc285ad054d | [
"Apache-2.0"
] | null | null | null | output/copilot/python/results/q14-integer-break.py | nhtnhan/CMPUT663-copilot-eval | 896711d006eb37a78e010cd1b9f79dc285ad054d | [
"Apache-2.0"
] | null | null | null | output/copilot/python/results/q14-integer-break.py | nhtnhan/CMPUT663-copilot-eval | 896711d006eb37a78e010cd1b9f79dc285ad054d | [
"Apache-2.0"
] | null | null | null | # https://leetcode.com/problems/integer-break/
#Given an integer n, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers.
#Return the maximum product you can get.
class Solution(object):
def integerBreak(self, n):
"""
:type n: int
:rtype: in... | 22.894737 | 124 | 0.382529 | 257 | 2,175 | 3.237354 | 0.435798 | 0.151442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239678 | 0.543448 | 2,175 | 95 | 125 | 22.894737 | 0.598187 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0 | 0 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
87f2259e9a1126460a6b34cc7ccf4f4f81c4aa71 | 218 | py | Python | tutorials/BEMIO/NEMOH/Cubes/Mesh/run.py | dsjenne/WECSim | 2266da0c9dce82b09f34cbad6a38c085b80c7458 | [
"Apache-2.0"
] | 89 | 2015-01-09T01:45:25.000Z | 2022-01-20T15:45:11.000Z | tutorials/BEMIO/NEMOH/Cubes/Mesh/run.py | dsjenne/WECSim | 2266da0c9dce82b09f34cbad6a38c085b80c7458 | [
"Apache-2.0"
] | 731 | 2015-03-31T04:59:36.000Z | 2022-03-31T19:04:29.000Z | tutorials/BEMIO/NEMOH/Cubes/Mesh/run.py | dsjenne/WECSim | 2266da0c9dce82b09f34cbad6a38c085b80c7458 | [
"Apache-2.0"
] | 160 | 2015-01-06T21:36:53.000Z | 2022-03-28T09:10:28.000Z | # Import the bemio.mesh_utilities module
from bemio.mesh_utilities import mesh
import numpy as np
# Read WAMIT mesh
r_cube = mesh.read(file_name='r_cube.gdf')
# Save to a NEMOH mesh
r_cube.write(mesh_format='NEMOH')
| 21.8 | 42 | 0.779817 | 39 | 218 | 4.179487 | 0.589744 | 0.092025 | 0.220859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133028 | 218 | 9 | 43 | 24.222222 | 0.862434 | 0.344037 | 0 | 0 | 0 | 0 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
87f803db85f9ce532fc7d176d34b0671c8a12a2a | 2,134 | py | Python | test-framework/test-suites/integration/tests/set/test_set_attr.py | kmcm0/stacki | eb9dff1b45d5725b4986e567876bf61707fec28f | [
"BSD-3-Clause"
] | 123 | 2015-05-12T23:36:45.000Z | 2017-07-05T23:26:57.000Z | test-framework/test-suites/integration/tests/set/test_set_attr.py | kmcm0/stacki | eb9dff1b45d5725b4986e567876bf61707fec28f | [
"BSD-3-Clause"
] | 177 | 2015-06-05T19:17:47.000Z | 2017-07-07T17:57:24.000Z | test-framework/test-suites/integration/tests/set/test_set_attr.py | kmcm0/stacki | eb9dff1b45d5725b4986e567876bf61707fec28f | [
"BSD-3-Clause"
] | 32 | 2015-06-07T02:25:03.000Z | 2017-06-23T07:35:35.000Z | import json
from textwrap import dedent
class TestSetAttr:
def test_invalid_scope(self, host):
result = host.run('stack set attr attr=test value=True scope=foo')
assert result.rc == 255
assert result.stderr == dedent('''\
error - "scope" parameter is not valid
{attr=string} {value=string} [shadow=boolean... | 28.453333 | 80 | 0.66448 | 314 | 2,134 | 4.484076 | 0.213376 | 0.119318 | 0.09233 | 0.127841 | 0.762074 | 0.762074 | 0.762074 | 0.747159 | 0.642756 | 0.517756 | 0 | 0.009259 | 0.190253 | 2,134 | 74 | 81 | 28.837838 | 0.805556 | 0.091378 | 0 | 0.607143 | 0 | 0 | 0.398757 | 0 | 0 | 0 | 0 | 0 | 0.303571 | 1 | 0.089286 | false | 0 | 0.035714 | 0 | 0.142857 | 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 |
3557bc71720504f995f0ec8fc0ced6a20cd680e8 | 230 | py | Python | tests/helpers.py | ahartikainen/pyinfraformat | 98a0f1b20163c60289d2788f5d702768be4727dc | [
"Apache-2.0"
] | 2 | 2018-11-13T08:01:29.000Z | 2018-11-13T08:56:09.000Z | tests/helpers.py | ahartikainen/pyinfraformat | 98a0f1b20163c60289d2788f5d702768be4727dc | [
"Apache-2.0"
] | 39 | 2018-10-22T06:32:12.000Z | 2022-01-22T14:03:27.000Z | tests/helpers.py | ahartikainen/pyinfraformat | 98a0f1b20163c60289d2788f5d702768be4727dc | [
"Apache-2.0"
] | null | null | null | """Helper functions for tests."""
from pyinfraformat import Holes, from_gtk_wfs
def ping_gtk():
bbox = (60.2, 24.8, 60.215, 24.83)
holes = from_gtk_wfs(bbox, "EPSG:4326")
return not Holes(holes[:10]).dataframe.empty
| 25.555556 | 48 | 0.682609 | 37 | 230 | 4.108108 | 0.702703 | 0.118421 | 0.157895 | 0.197368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0.165217 | 230 | 8 | 49 | 28.75 | 0.682292 | 0.117391 | 0 | 0 | 0 | 0 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
356433010f1dec46883279ffd32a7adad6a72c99 | 2,943 | py | Python | tuzwa/migrations/0003_auto_20181015_0723.py | EugeneZnm/LEVELS | 21874a7585b559795d49b3334e7bb9907af7888a | [
"Unlicense"
] | null | null | null | tuzwa/migrations/0003_auto_20181015_0723.py | EugeneZnm/LEVELS | 21874a7585b559795d49b3334e7bb9907af7888a | [
"Unlicense"
] | 4 | 2020-06-05T19:28:58.000Z | 2021-09-08T00:33:00.000Z | tuzwa/migrations/0003_auto_20181015_0723.py | EugeneZnm/LEVELS | 21874a7585b559795d49b3334e7bb9907af7888a | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-15 07:23
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | 44.590909 | 150 | 0.608563 | 303 | 2,943 | 5.749175 | 0.221122 | 0.045924 | 0.072331 | 0.113662 | 0.737658 | 0.737658 | 0.698622 | 0.698622 | 0.698622 | 0.698622 | 0 | 0.014559 | 0.253143 | 2,943 | 65 | 151 | 45.276923 | 0.77798 | 0.022426 | 0 | 0.534483 | 1 | 0 | 0.099513 | 0.008003 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.12069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
359851f97d794c4a88789c7545c2ee5e90ae0722 | 87 | py | Python | restdf/configs/settings.py | Mukhopadhyay/restdf | adeb6c188a20ecd9ee7eeafc12111e260072777e | [
"MIT"
] | 3 | 2021-11-07T10:12:48.000Z | 2021-11-11T07:06:25.000Z | restdf/configs/settings.py | Mukhopadhyay/restdf | adeb6c188a20ecd9ee7eeafc12111e260072777e | [
"MIT"
] | null | null | null | restdf/configs/settings.py | Mukhopadhyay/restdf | adeb6c188a20ecd9ee7eeafc12111e260072777e | [
"MIT"
] | null | null | null | # RestDF Default settings
PORT: int = 8000
HOST: str = 'localhost'
DEBUG: bool = False
| 17.4 | 25 | 0.712644 | 12 | 87 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 0.183908 | 87 | 4 | 26 | 21.75 | 0.816901 | 0.264368 | 0 | 0 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
359d51c12b931c60e210fa018aa2026eed825255 | 338 | py | Python | exercicios curso em video/ex031.py | Nilton-Miguel/Prog_Python3 | 4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b | [
"MIT"
] | null | null | null | exercicios curso em video/ex031.py | Nilton-Miguel/Prog_Python3 | 4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b | [
"MIT"
] | null | null | null | exercicios curso em video/ex031.py | Nilton-Miguel/Prog_Python3 | 4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b | [
"MIT"
] | null | null | null | C = {'azul': '\033[1;36m', 'verde': '\033[1;32m'}
d = int(input('{}Digite a distância da viagem em Km: '.format(C['azul'])))
if d > 200:
p = d*0.45
print('{}Sua viagem custará {}R${:.2f}'.format(C['azul'], C['verde'], p))
else:
p = d*0.5
print('{}Sua viagem custará {}R${:.2f}'.format(C['azul'],... | 33.8 | 78 | 0.517751 | 58 | 338 | 3.017241 | 0.517241 | 0.114286 | 0.188571 | 0.24 | 0.48 | 0.48 | 0.48 | 0.48 | 0.48 | 0.48 | 0 | 0.080586 | 0.192308 | 338 | 9 | 79 | 37.555556 | 0.56044 | 0 | 0 | 0.25 | 0 | 0 | 0.458967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
35aec3d778ddd19d4436a89406cc027f1d84602b | 231 | py | Python | src/events/urls.py | tingcar/PSEP | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | [
"Apache-2.0"
] | null | null | null | src/events/urls.py | tingcar/PSEP | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | [
"Apache-2.0"
] | null | null | null | src/events/urls.py | tingcar/PSEP | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.conf import settings
urlpatterns = patterns('events.views',
#url(r'^medicines/', include('medicines.urls')),
url(r'^$','Eventlist',name='Eventlist'),
)
| 23.1 | 52 | 0.688312 | 28 | 231 | 5.678571 | 0.571429 | 0.125786 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138528 | 231 | 9 | 53 | 25.666667 | 0.798995 | 0.203463 | 0 | 0 | 0 | 0 | 0.174863 | 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 |
35c31451b3a036c41511546cdbbe316a602bfe31 | 37,086 | py | Python | tests/test_efficient_frontier.py | bhutraaditya/PyPortfolioOpt | 8bd33d1cd9fee64981d55b7fd2dcabebe8c87cab | [
"MIT"
] | 2 | 2020-09-09T23:28:35.000Z | 2020-09-09T23:28:46.000Z | tests/test_efficient_frontier.py | bhutraaditya/PyPortfolioOpt | 8bd33d1cd9fee64981d55b7fd2dcabebe8c87cab | [
"MIT"
] | null | null | null | tests/test_efficient_frontier.py | bhutraaditya/PyPortfolioOpt | 8bd33d1cd9fee64981d55b7fd2dcabebe8c87cab | [
"MIT"
] | 1 | 2021-02-27T07:06:41.000Z | 2021-02-27T07:06:41.000Z | import warnings
import numpy as np
import pandas as pd
import cvxpy as cp
import pytest
import scipy.optimize as sco
from pypfopt import EfficientFrontier
from pypfopt import risk_models
from pypfopt import objective_functions
from pypfopt import exceptions
from tests.utilities_for_tests import get_data, setup_efficie... | 31.697436 | 87 | 0.652349 | 4,958 | 37,086 | 4.633522 | 0.080879 | 0.06512 | 0.083315 | 0.058503 | 0.786445 | 0.741871 | 0.707744 | 0.674096 | 0.645845 | 0.616289 | 0 | 0.073602 | 0.216739 | 37,086 | 1,169 | 88 | 31.724551 | 0.717261 | 0.026101 | 0 | 0.675476 | 0 | 0 | 0.034997 | 0 | 0 | 0 | 0 | 0 | 0.225159 | 1 | 0.066596 | false | 0 | 0.011628 | 0 | 0.078224 | 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 |
35c586796d254472e54060d3368ff3cd72054680 | 85 | py | Python | acoes/apps.py | kennedy-ag/TCC | 1872e4b33b2ac6da5c52d220d6ed35fa34123f3e | [
"MIT"
] | 1 | 2021-04-09T04:07:16.000Z | 2021-04-09T04:07:16.000Z | acoes/apps.py | kennedy-ag/TCC | 1872e4b33b2ac6da5c52d220d6ed35fa34123f3e | [
"MIT"
] | null | null | null | acoes/apps.py | kennedy-ag/TCC | 1872e4b33b2ac6da5c52d220d6ed35fa34123f3e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AcoesConfig(AppConfig):
name = 'acoes'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 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 |
35e0534acded5251f2c806282167febb9e8168fd | 1,570 | py | Python | test/test_hash_table.py | paolodelia99/Python-C-Algorithms | 9113ad566e4e659c1f16135c2d3abd3a4c57a46e | [
"MIT"
] | 2 | 2021-02-13T10:58:58.000Z | 2021-03-16T09:56:01.000Z | test/test_hash_table.py | paolodelia99/Python-C-Algorithms | 9113ad566e4e659c1f16135c2d3abd3a4c57a46e | [
"MIT"
] | null | null | null | test/test_hash_table.py | paolodelia99/Python-C-Algorithms | 9113ad566e4e659c1f16135c2d3abd3a4c57a46e | [
"MIT"
] | null | null | null | import hash_table
import nose
HashTable = hash_table.HashTable
def test_hash_table_101():
h = HashTable()
nose.tools.assert_is_instance(h, hash_table.HashTable)
def test_hash_table_num_entries():
h = HashTable()
nose.tools.assert_equal(h.num_entries(), 0)
def test_hash_table_add():
h = HashTa... | 21.805556 | 58 | 0.658599 | 247 | 1,570 | 3.94332 | 0.190283 | 0.138604 | 0.146817 | 0.164271 | 0.73306 | 0.647844 | 0.61499 | 0.527721 | 0.527721 | 0.527721 | 0 | 0.038222 | 0.183439 | 1,570 | 72 | 59 | 21.805556 | 0.721529 | 0.153503 | 0 | 0.534884 | 0 | 0 | 0.063588 | 0 | 0 | 0 | 0 | 0.013889 | 0.209302 | 1 | 0.209302 | false | 0 | 0.046512 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea05bf155df23351b707950a045ed86666f8d6de | 653 | py | Python | tests/dao/elements.py | mpsiva89/protean | 315fa56da3f64178bbbf0edf1995af46d5eb3da7 | [
"BSD-3-Clause"
] | 6 | 2018-09-26T04:54:09.000Z | 2022-03-30T01:01:45.000Z | tests/dao/elements.py | mpsiva89/protean | 315fa56da3f64178bbbf0edf1995af46d5eb3da7 | [
"BSD-3-Clause"
] | 261 | 2018-09-20T09:53:33.000Z | 2022-03-08T17:43:04.000Z | tests/dao/elements.py | mpsiva89/protean | 315fa56da3f64178bbbf0edf1995af46d5eb3da7 | [
"BSD-3-Clause"
] | 6 | 2018-07-22T07:09:15.000Z | 2021-02-02T05:17:23.000Z | from datetime import datetime
from typing import List
from protean import BaseAggregate, BaseRepository
from protean.fields import DateTime, Integer, String
class Person(BaseAggregate):
first_name = String(max_length=50, required=True)
last_name = String(max_length=50, required=True)
age = Integer(defaul... | 28.391304 | 62 | 0.748851 | 83 | 653 | 5.795181 | 0.53012 | 0.074844 | 0.12474 | 0.079002 | 0.137214 | 0.137214 | 0.137214 | 0 | 0 | 0 | 0 | 0.027372 | 0.160796 | 653 | 22 | 63 | 29.681818 | 0.850365 | 0.04441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.066667 | false | 0.133333 | 0.266667 | 0 | 0.933333 | 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 |
ea1c9acd55827b78aa21ae43da163d058a5250b4 | 68 | py | Python | multisim/version.py | JoElfner/multisim | 2ca3ff9b116b528c279b5941e6bdbe002cf23852 | [
"BSD-3-Clause"
] | 1 | 2020-08-25T10:26:17.000Z | 2020-08-25T10:26:17.000Z | multisim/version.py | JoElfner/multisim | 2ca3ff9b116b528c279b5941e6bdbe002cf23852 | [
"BSD-3-Clause"
] | 6 | 2021-08-29T11:15:54.000Z | 2021-09-01T09:57:49.000Z | multisim/version.py | JoElfner/multisim | 2ca3ff9b116b528c279b5941e6bdbe002cf23852 | [
"BSD-3-Clause"
] | null | null | null | # THIS FILE IS GENERATED FROM MultiSim SETUP.PY
version = '0.11.0'
| 17 | 47 | 0.720588 | 12 | 68 | 4.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.176471 | 68 | 3 | 48 | 22.666667 | 0.803571 | 0.661765 | 0 | 0 | 1 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea3ae7a209f80c3b924ef13558dd67fcd84f9592 | 4,374 | py | Python | caproto/tests/test_status.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 12 | 2019-05-25T14:26:25.000Z | 2022-01-24T09:10:18.000Z | caproto/tests/test_status.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 333 | 2017-06-22T03:10:15.000Z | 2019-05-07T16:37:20.000Z | caproto/tests/test_status.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 17 | 2019-07-03T18:17:22.000Z | 2022-03-22T00:24:20.000Z | import caproto as ca
from caproto._status import eca_value_to_status
doc_statuss = [
('ECA_NORMAL', ca.CASeverity.SUCCESS, 0, 0x001),
('ECA_MAXIOC', ca.CASeverity.ERROR, 1, 0x00a),
('ECA_UKNHOST', ca.CASeverity.ERROR, 2, 0x012),
('ECA_UKNSERV', ca.CASeverity.ERROR, 3, 0x01a),
('ECA_SOCK', ca.CASev... | 46.531915 | 84 | 0.659808 | 553 | 4,374 | 5.045208 | 0.423146 | 0.262366 | 0.245161 | 0.028674 | 0.017204 | 0.017204 | 0 | 0 | 0 | 0 | 0 | 0.091944 | 0.176955 | 4,374 | 93 | 85 | 47.032258 | 0.683056 | 0.005258 | 0 | 0 | 0 | 0 | 0.18579 | 0 | 0 | 0 | 0.070361 | 0.010753 | 0.071429 | 1 | 0.011905 | false | 0 | 0.02381 | 0 | 0.035714 | 0.02381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea4aed930d5406f0c36b1aef3917b033ab2bafaf | 59 | py | Python | chapter02/or.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | 17 | 2016-08-12T13:15:43.000Z | 2021-03-22T13:35:33.000Z | chapter02/or.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | null | null | null | chapter02/or.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | 13 | 2016-08-12T13:31:47.000Z | 2021-01-28T11:06:48.000Z | a = 20
if a == 10 or a <= 20:
print('aは10もしくは20以下の数字')
| 14.75 | 28 | 0.559322 | 10 | 59 | 3.3 | 0.7 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 0.271186 | 59 | 3 | 29 | 19.666667 | 0.534884 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea5616ee025baf7b7efa5885399ae1a2b9ad0507 | 100 | py | Python | infra/release-scripts/tests/test_automate.py | tuod/bikerides | ef5dfd25c6642f740c36e68cb4548b5c80d7ab44 | [
"Apache-2.0"
] | null | null | null | infra/release-scripts/tests/test_automate.py | tuod/bikerides | ef5dfd25c6642f740c36e68cb4548b5c80d7ab44 | [
"Apache-2.0"
] | 6 | 2021-06-20T20:20:14.000Z | 2021-06-21T21:33:05.000Z | infra/release-scripts/tests/test_automate.py | tuod/bikerides | ef5dfd25c6642f740c36e68cb4548b5c80d7ab44 | [
"Apache-2.0"
] | null | null | null | from src.automate import App
class TestAppClass:
def test_init(self):
App("test_app")
| 14.285714 | 28 | 0.68 | 14 | 100 | 4.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23 | 100 | 6 | 29 | 16.666667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea5a57f7da4a29fce4d1ed0ace2c603b38dfa669 | 486 | py | Python | typings/bl_app_override/helpers.py | Argmaster/PyR3 | 6786bcb6a101fe4bd4cc50fe43767b8178504b15 | [
"MIT"
] | 2 | 2021-12-12T18:51:52.000Z | 2022-02-23T09:49:16.000Z | src/blender/blender_autocomplete-master/2.92/bl_app_override/helpers.py | JonasWard/ClayAdventures | a716445ac690e4792e70658319aa1d5299f9c9e9 | [
"MIT"
] | 2 | 2021-11-08T12:09:02.000Z | 2021-12-12T23:01:12.000Z | typings/bl_app_override/helpers.py | Argmaster/PyR3 | 6786bcb6a101fe4bd4cc50fe43767b8178504b15 | [
"MIT"
] | null | null | null | import sys
import typing
class AppOverrideState:
addon_paths = None
''' '''
addons = None
''' '''
class_ignore = None
''' '''
ui_ignore_classes = None
''' '''
ui_ignore_label = None
''' '''
ui_ignore_menu = None
''' '''
ui_ignore_operator = None
''' '''
... | 11.853659 | 29 | 0.452675 | 42 | 486 | 4.952381 | 0.5 | 0.144231 | 0.288462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.393004 | 486 | 40 | 30 | 12.15 | 0.705085 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.133333 | 0.133333 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ea5abc5940656b095008ae109f38120b4938e08a | 529 | py | Python | joueur/delta_mergeable.py | tannerJDA/Joueur.py | 23f6c3daac0561fe09257c45fe705298d770dbf3 | [
"MIT"
] | 4 | 2015-12-16T03:38:26.000Z | 2020-11-07T16:16:29.000Z | joueur/delta_mergeable.py | JacobFischer/Joueur.py | 02bb5788ed5d88d24eb21869a10c6e7292ee9767 | [
"MIT"
] | 9 | 2016-10-08T08:27:57.000Z | 2020-11-07T19:12:57.000Z | joueur/delta_mergeable.py | JacobFischer/Joueur.py | 02bb5788ed5d88d24eb21869a10c6e7292ee9767 | [
"MIT"
] | 40 | 2015-10-23T22:40:44.000Z | 2020-11-07T21:18:00.000Z | from typing import Any, Dict
class DeltaMergeable():
"""a game or game object that needs to be delta merged"""
def __init__(self):
pass
def _run_on_server(self, function_name: str, args: Dict[str, Any]) -> Any:
import joueur.client # avoid circular imports (sphinx won't build docs otherwi... | 29.388889 | 89 | 0.674858 | 73 | 529 | 4.630137 | 0.616438 | 0.08284 | 0.065089 | 0.088757 | 0.159763 | 0.159763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230624 | 529 | 17 | 90 | 31.117647 | 0.830467 | 0.20983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0.181818 | 0.181818 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
ea66d0f408cbf362128f746c05bed2182b9143bb | 378 | py | Python | utils/graphql/filters.py | getmetamapper/metamapper | 0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f | [
"BSD-2-Clause"
] | 53 | 2020-07-01T23:11:59.000Z | 2022-03-31T19:10:28.000Z | utils/graphql/filters.py | metamapper-io/metamapper | 376716e72bcaca62f1ec09ca9a13a0346e5502f9 | [
"BSD-2-Clause"
] | 5 | 2020-11-25T19:48:57.000Z | 2022-02-27T23:50:18.000Z | utils/graphql/filters.py | metamapper-io/metamapper | 376716e72bcaca62f1ec09ca9a13a0346e5502f9 | [
"BSD-2-Clause"
] | 5 | 2020-08-29T16:43:59.000Z | 2022-01-17T19:05:30.000Z | # -*- coding: utf-8 -*-
from django_filters import * # noqa: F401, F403
from django import forms
from graphene_django.forms.converter import convert_form_field
from graphene import List, String
@convert_form_field.register(forms.MultipleChoiceField)
def convert_form_field_to_string_list(field):
return List(Stri... | 31.5 | 77 | 0.806878 | 52 | 378 | 5.634615 | 0.519231 | 0.112628 | 0.163823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020772 | 0.108466 | 378 | 11 | 78 | 34.363636 | 0.848665 | 0.100529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
ea6ed6574d91d09aad51edc023ee92b382050562 | 2,545 | py | Python | utils/src/ooinstall/ansible_plugins/facts_callback.py | jhernand/openshift-ansible | e5045e8356449ba99363252351cb09a8e5f4d0b2 | [
"Apache-2.0"
] | 1 | 2017-08-14T19:41:03.000Z | 2017-08-14T19:41:03.000Z | utils/src/ooinstall/ansible_plugins/facts_callback.py | jhernand/openshift-ansible | e5045e8356449ba99363252351cb09a8e5f4d0b2 | [
"Apache-2.0"
] | 27 | 2018-02-20T19:23:18.000Z | 2018-05-02T10:50:49.000Z | utils/src/ooinstall/ansible_plugins/facts_callback.py | jhernand/openshift-ansible | e5045e8356449ba99363252351cb09a8e5f4d0b2 | [
"Apache-2.0"
] | 1 | 2018-02-28T15:12:25.000Z | 2018-02-28T15:12:25.000Z | # TODO: Temporarily disabled due to importing old code into openshift-ansible
# repo. We will work on these over time.
# pylint: disable=bad-continuation,missing-docstring,no-self-use,invalid-name,no-value-for-parameter
import os
import yaml
class CallbackModule(object):
def __init__(self):
#############... | 28.595506 | 100 | 0.648723 | 347 | 2,545 | 4.507205 | 0.40634 | 0.076087 | 0.091432 | 0.108696 | 0.265345 | 0.086957 | 0.056266 | 0.039642 | 0 | 0 | 0 | 0.000528 | 0.255403 | 2,545 | 88 | 101 | 28.920455 | 0.824802 | 0.185462 | 0 | 0.339286 | 0 | 0 | 0.078355 | 0.029383 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.375 | false | 0.339286 | 0.071429 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ea7950eb88e6f58821e72b1031488474390060d5 | 787 | py | Python | web/posts/views.py | JayDBee/P_Vs._Portland | 62a60a57e112bc67868e6708f7c66100d9882354 | [
"MIT"
] | 1 | 2021-08-18T09:25:11.000Z | 2021-08-18T09:25:11.000Z | web/posts/views.py | JayDBee/P_Vs._Portland | 62a60a57e112bc67868e6708f7c66100d9882354 | [
"MIT"
] | null | null | null | web/posts/views.py | JayDBee/P_Vs._Portland | 62a60a57e112bc67868e6708f7c66100d9882354 | [
"MIT"
] | null | null | null | from sys import path
from os.path import dirname as dir
path.append(dir(path[0]))
from django.shortcuts import render
from django.http import HttpResponse
import random
from scripts.EveroutSpider import spider_runner_results
#below is not working
#from scripts.results import spider_runner_results
#from EveroutSpid... | 27.137931 | 76 | 0.795426 | 100 | 787 | 6.18 | 0.45 | 0.07767 | 0.122977 | 0.080906 | 0.20712 | 0.20712 | 0.20712 | 0.20712 | 0.20712 | 0.20712 | 0 | 0.012968 | 0.11817 | 787 | 28 | 77 | 28.107143 | 0.877522 | 0.355781 | 0 | 0 | 0 | 0 | 0.075848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.428571 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
ea8aaca2555cb67d8f4b7a8283a5dff47f2bb6fc | 135 | py | Python | 23.py | christi-john/codechef-practice | 2f52cb72cbc5df4f4978fdd1cf77b1f01bc583b0 | [
"MIT"
] | null | null | null | 23.py | christi-john/codechef-practice | 2f52cb72cbc5df4f4978fdd1cf77b1f01bc583b0 | [
"MIT"
] | null | null | null | 23.py | christi-john/codechef-practice | 2f52cb72cbc5df4f4978fdd1cf77b1f01bc583b0 | [
"MIT"
] | null | null | null | # FLOW011
for i in range(int(input())):
salary=int(input())
if salary<1500: print(2*salary)
else: print(1.98*salary + 500) | 22.5 | 35 | 0.62963 | 22 | 135 | 3.863636 | 0.727273 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 0.192593 | 135 | 6 | 36 | 22.5 | 0.651376 | 0.051852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ea92c2e503d749e07993145c75de1c23f0e47511 | 180 | py | Python | Package/setup.py | ekfiagbedzi/image_processor | cb30a450b5d41189b8278b56e937e55c3ebde73e | [
"MIT"
] | 1 | 2020-10-11T11:10:08.000Z | 2020-10-11T11:10:08.000Z | Package/setup.py | ekfiagbedzi/image_processor | cb30a450b5d41189b8278b56e937e55c3ebde73e | [
"MIT"
] | null | null | null | Package/setup.py | ekfiagbedzi/image_processor | cb30a450b5d41189b8278b56e937e55c3ebde73e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='DatasetCreator',
version='0.1',
description='Image Dataset Creator',
packages=['DatasetCreator'],
zip_safe=False)
| 22.5 | 42 | 0.677778 | 19 | 180 | 6.368421 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.2 | 180 | 7 | 43 | 25.714286 | 0.826389 | 0 | 0 | 0 | 0 | 0 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
579e9ee8c9db4a9dd78c784bec535a4202911433 | 156 | py | Python | python/ccc22s1.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T16:02:14.000Z | 2022-01-23T16:02:14.000Z | python/ccc22s1.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 5 | 2022-01-23T00:16:49.000Z | 2022-01-30T04:37:45.000Z | python/ccc22s1.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T00:03:47.000Z | 2022-01-23T00:03:47.000Z | N = int(input())
c = 0
for i in range(0, N // 5 + 1):
for j in range(0, N // 4 + 1):
five, four = 5 * i, 4 * j
if five + four == N:
c += 1
print(c) | 17.333333 | 31 | 0.461538 | 35 | 156 | 2.057143 | 0.485714 | 0.194444 | 0.222222 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.326923 | 156 | 9 | 32 | 17.333333 | 0.590476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57aada406e15c9c3e22a9839cc252598ef5d6269 | 21,749 | py | Python | analysis.py | shibaji7/sd_rio_sluggishness | 6bcd5fdc07aa348cc44bdcbef4fe20d80375addf | [
"Apache-2.0"
] | 1 | 2020-12-02T20:13:22.000Z | 2020-12-02T20:13:22.000Z | analysis.py | shibaji7/sd_rio_sluggishness | 6bcd5fdc07aa348cc44bdcbef4fe20d80375addf | [
"Apache-2.0"
] | null | null | null | analysis.py | shibaji7/sd_rio_sluggishness | 6bcd5fdc07aa348cc44bdcbef4fe20d80375addf | [
"Apache-2.0"
] | null | null | null | import os
import datetime as dt
import pandas as pd
from scipy import stats, signal
import numpy as np
from timezonefinder import TimezoneFinder
from dateutil import tz
from scipy import signal
import traceback
from PyIF import te_compute as te
from pysolar.solar import get_altitude
import statsmodels.api as sm
from ... | 46.571734 | 165 | 0.50715 | 3,030 | 21,749 | 3.476238 | 0.125413 | 0.020602 | 0.027533 | 0.015665 | 0.752492 | 0.727333 | 0.709484 | 0.698946 | 0.692965 | 0.674072 | 0 | 0.019382 | 0.326268 | 21,749 | 466 | 166 | 46.671674 | 0.699447 | 0.009242 | 0 | 0.656398 | 0 | 0.014218 | 0.11402 | 0.014067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092417 | false | 0.00237 | 0.035545 | 0 | 0.234597 | 0.030806 | 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 |
57b5548dc2bbb5150dd212eecf75a2bfc7ddb2b7 | 230 | py | Python | publications/migrations/0013_auto_20201005_1928.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | null | null | null | publications/migrations/0013_auto_20201005_1928.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | 5 | 2021-04-08T21:32:17.000Z | 2021-09-22T19:29:23.000Z | publications/migrations/0013_auto_20201005_1928.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | 1 | 2021-07-25T22:40:18.000Z | 2021-07-25T22:40:18.000Z | # Generated by Django 3.1.1 on 2020-10-05 19:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('publications', '0012_auto_20201001_2256'),
]
operations = [
]
| 16.428571 | 52 | 0.66087 | 28 | 230 | 5.321429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175141 | 0.230435 | 230 | 13 | 53 | 17.692308 | 0.666667 | 0.195652 | 0 | 0 | 1 | 0 | 0.191257 | 0.125683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
57e635f0acedd5760b55056ee4dd10dcaee6d331 | 285 | py | Python | tests/runtimeplots_testing_script.py | LucaDiStasio/CompDam_DGD | c01344972db6b9b97d5d19225bff8e63d8e54a20 | [
"NASA-1.3"
] | 81 | 2016-07-12T18:14:13.000Z | 2022-03-28T04:46:46.000Z | tests/runtimeplots_testing_script.py | LucaDiStasio/CompDam_DGD | c01344972db6b9b97d5d19225bff8e63d8e54a20 | [
"NASA-1.3"
] | 9 | 2017-04-04T13:37:26.000Z | 2020-08-18T14:52:06.000Z | tests/runtimeplots_testing_script.py | LucaDiStasio/CompDam_DGD | c01344972db6b9b97d5d19225bff8e63d8e54a20 | [
"NASA-1.3"
] | 55 | 2016-07-12T18:47:18.000Z | 2022-03-29T22:46:28.000Z | #!/usr/bin/python
# Script for debugging features of automatic.py
import os
import abaverify as av
av.Automatic.generateRunTimePlots2(template='template_run_time_plots_compdam',
path_to_archived_tests=os.path.abspath('archivedTestResults'),
saveAs='testing_run_time_plots.html') | 28.5 | 79 | 0.824561 | 39 | 285 | 5.769231 | 0.769231 | 0.062222 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.080702 | 285 | 10 | 80 | 28.5 | 0.854962 | 0.217544 | 0 | 0 | 1 | 0 | 0.346847 | 0.261261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
57e7a1874e92a2c0fa2e950a9c9067440e1436c1 | 345 | py | Python | padaquant/asset_manager.py | felipm13/PadaQuant | 09c13d60dee2a75488e101391ab09e9845a66cb5 | [
"MIT"
] | 1 | 2019-06-21T01:13:29.000Z | 2019-06-21T01:13:29.000Z | padaquant/asset_manager.py | felipm13/PadaQuant | 09c13d60dee2a75488e101391ab09e9845a66cb5 | [
"MIT"
] | null | null | null | padaquant/asset_manager.py | felipm13/PadaQuant | 09c13d60dee2a75488e101391ab09e9845a66cb5 | [
"MIT"
] | null | null | null | import datetime
import pandas_datareader as pd_dr
class asset_manager:
def __init__(self, symbol, start=None, end=None):
self.symbol = symbol
self.data = pd_dr.get_data_yahoo(symbol, start, end)
def get_symbol(self):
return self.symbol
def get_return(self):
return self.... | 23 | 61 | 0.672464 | 49 | 345 | 4.489796 | 0.489796 | 0.136364 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231884 | 345 | 14 | 62 | 24.642857 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
57f4c29a5bd08f38eb3564156ee4e5b5c8679a20 | 832 | py | Python | dynamicserialize/dstypes/com/raytheon/uf/common/pointdata/requests/NewAdaptivePlotRequest.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/pointdata/requests/NewAdaptivePlotRequest.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/pointdata/requests/NewAdaptivePlotRequest.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | ##
##
# File auto-generated against equivalent DynamicSerialize Java class
class NewAdaptivePlotRequest(object):
def __init__(self):
self.fileContents = None
self.fileName = None
self.bundleName = None
self.description = None
def getFileContents(self):
return self.fil... | 21.894737 | 68 | 0.675481 | 78 | 832 | 7.153846 | 0.346154 | 0.114695 | 0.100358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252404 | 832 | 37 | 69 | 22.486486 | 0.897106 | 0.079327 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0 | 0 | 0.181818 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
17c3db167ff67636f9107cd907d774e318e3fbe7 | 424 | py | Python | backend/linkanywhere/apps/base/permissions.py | apirobot/linkanywhere-back | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | [
"MIT"
] | null | null | null | backend/linkanywhere/apps/base/permissions.py | apirobot/linkanywhere-back | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | [
"MIT"
] | null | null | null | backend/linkanywhere/apps/base/permissions.py | apirobot/linkanywhere-back | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission
from rest_framework.permissions import SAFE_METHODS
class IsAdminOrReadOnly(BasePermission):
"""
The request is authenticated as a admin user, or is a read-only request.
"""
def has_permission(self, request, view):
return (
req... | 26.5 | 76 | 0.681604 | 50 | 424 | 5.66 | 0.62 | 0.056537 | 0.120141 | 0.19788 | 0.240283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259434 | 424 | 15 | 77 | 28.266667 | 0.901274 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
17c514b9eeea1f63c9fa59814069bba834b5dbe8 | 375 | py | Python | python/HashMap.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | 1 | 2021-08-10T20:00:24.000Z | 2021-08-10T20:00:24.000Z | python/HashMap.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | null | null | null | python/HashMap.py | caleberi/LeetCode | fa170244648f73e76d316a6d7fc0e813adccaa82 | [
"MIT"
] | 3 | 2021-06-11T11:56:39.000Z | 2021-08-10T08:50:49.000Z | class HashMap:
def __init__(self):
self.bucket = {}
def put(self, key: int, value: int) -> None:
self.bucket[key] = value
def get(self, key: int) -> int:
if key in self.bucket:
return self.bucket[key]
return -1
def remove(self, key: int) -> None:
i... | 22.058824 | 48 | 0.536 | 51 | 375 | 3.862745 | 0.352941 | 0.304569 | 0.152284 | 0.111675 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.341333 | 375 | 16 | 49 | 23.4375 | 0.793522 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
17d120086af28a3cbffa518640a75d1d56374f9b | 1,322 | py | Python | odps/ml/tests/test_runner.py | Emersonxuelinux/aliyun-odps-python-sdk | 0b38c777711c95ed1775fa67822febf88fc3d642 | [
"Apache-2.0"
] | 412 | 2015-11-01T09:27:52.000Z | 2022-03-26T05:04:03.000Z | odps/ml/tests/test_runner.py | Emersonxuelinux/aliyun-odps-python-sdk | 0b38c777711c95ed1775fa67822febf88fc3d642 | [
"Apache-2.0"
] | 168 | 2015-11-16T09:46:39.000Z | 2022-03-17T06:35:26.000Z | odps/ml/tests/test_runner.py | Emersonxuelinux/aliyun-odps-python-sdk | 0b38c777711c95ed1775fa67822febf88fc3d642 | [
"Apache-2.0"
] | 103 | 2015-12-01T08:10:09.000Z | 2022-02-21T12:46:35.000Z | # encoding: utf-8
# Copyright 1999-2017 Alibaba Group Holding Ltd.
#
# 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 a... | 44.066667 | 84 | 0.73298 | 181 | 1,322 | 5.265193 | 0.519337 | 0.125918 | 0.243442 | 0.293809 | 0.365163 | 0.281217 | 0.100735 | 0.100735 | 0.100735 | 0.100735 | 0 | 0.029676 | 0.15885 | 1,322 | 29 | 85 | 45.586207 | 0.827338 | 0.442511 | 0 | 0 | 0 | 0 | 0.034626 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
17e363a8956453652ed72f9a504aa21d923d66e6 | 135 | py | Python | URI onJudge/1006.py | murillotlopes/DSM-Python | 2822b9b1b988936ab098c7052180ee3c3d7dd735 | [
"MIT"
] | null | null | null | URI onJudge/1006.py | murillotlopes/DSM-Python | 2822b9b1b988936ab098c7052180ee3c3d7dd735 | [
"MIT"
] | null | null | null | URI onJudge/1006.py | murillotlopes/DSM-Python | 2822b9b1b988936ab098c7052180ee3c3d7dd735 | [
"MIT"
] | null | null | null | # Média 2
a=float(input())
b=float(input())
c=float(input())
media=((a*2.0)+(b*3.0)+(c*5.0))/10
print('MEDIA = {:.1f}'.format(media))
| 16.875 | 37 | 0.577778 | 27 | 135 | 2.888889 | 0.555556 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.081481 | 135 | 7 | 38 | 19.285714 | 0.548387 | 0.051852 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
17f27f91f69e5390e967ea2c56fe17f571f261a2 | 208 | py | Python | todo_project/todo/urls.py | slalom/todobackend-python-django | aa483a45836db8899fcd2f82b821dce5cc3c7199 | [
"MIT"
] | null | null | null | todo_project/todo/urls.py | slalom/todobackend-python-django | aa483a45836db8899fcd2f82b821dce5cc3c7199 | [
"MIT"
] | null | null | null | todo_project/todo/urls.py | slalom/todobackend-python-django | aa483a45836db8899fcd2f82b821dce5cc3c7199 | [
"MIT"
] | 1 | 2021-07-19T03:00:26.000Z | 2021-07-19T03:00:26.000Z | from django.urls import path, include
from .views import ListTodosView
from . import views
urlpatterns = [
#path('', views.index, name='index'),
path('', ListTodosView.as_view(), name="todos-all")
]
| 23.111111 | 55 | 0.692308 | 26 | 208 | 5.5 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 208 | 8 | 56 | 26 | 0.8125 | 0.173077 | 0 | 0 | 0 | 0 | 0.052632 | 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 |
aa0081ecab41100b4c9efb97ecb47177180e4b55 | 2,724 | py | Python | python_tools/profile_memengine.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | python_tools/profile_memengine.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | python_tools/profile_memengine.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | #coding: UTF-8
import cProfile
import pstats
from win32com.client import Dispatch
import MemoryEngine
STAT_FILENAME = 'profile_memengine.stats'
def prof_tm_straight():
engine = MemoryEngine.FelixRemoteMemory()
# SAP Japan.ftm
engine.Connect("http://192.168.56.1:8765/api/mems/1/")
engin... | 28.978723 | 68 | 0.609031 | 321 | 2,724 | 5.087227 | 0.23053 | 0.029394 | 0.052051 | 0.061237 | 0.744029 | 0.744029 | 0.654623 | 0.654623 | 0.654623 | 0.654623 | 0 | 0.049631 | 0.252937 | 2,724 | 93 | 69 | 29.290323 | 0.747912 | 0.033774 | 0 | 0.514706 | 0 | 0 | 0.258026 | 0.129615 | 0 | 0 | 0 | 0 | 0.044118 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa0c3f9ae6efc87438fc1aeacc1e12af27502405 | 1,728 | py | Python | tests/test_dparray.py | Rubtsowa/dpnp | ef404c0f284b0c508ed1e556e140f02f76ae5551 | [
"BSD-2-Clause"
] | 37 | 2020-09-08T00:38:52.000Z | 2022-03-18T01:44:10.000Z | tests/test_dparray.py | Rubtsowa/dpnp | ef404c0f284b0c508ed1e556e140f02f76ae5551 | [
"BSD-2-Clause"
] | 432 | 2020-09-07T09:48:41.000Z | 2022-03-25T17:50:55.000Z | tests/test_dparray.py | Rubtsowa/dpnp | ef404c0f284b0c508ed1e556e140f02f76ae5551 | [
"BSD-2-Clause"
] | 17 | 2020-09-07T10:00:34.000Z | 2022-03-25T13:53:43.000Z | import dpnp
import numpy
import pytest
@pytest.mark.parametrize("res_dtype",
[numpy.float64, numpy.float32, numpy.int64, numpy.int32, numpy.bool, numpy.bool_, numpy.complex],
ids=['float64', 'float32', 'int64', 'int32', 'bool', 'bool_', 'complex'])
@pytest.mark.parame... | 49.371429 | 122 | 0.563079 | 211 | 1,728 | 4.459716 | 0.137441 | 0.085016 | 0.089267 | 0.102019 | 0.778959 | 0.761955 | 0.761955 | 0.672689 | 0.672689 | 0.672689 | 0 | 0.064467 | 0.245949 | 1,728 | 34 | 123 | 50.823529 | 0.657713 | 0 | 0 | 0.6 | 0 | 0 | 0.131366 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 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 |
aa0f7855aa4f8c7707f18cf1da23a31c3ac353ff | 160 | py | Python | tornado_demo/web2py/applications/welcome/languages/plural-es.py | ls-2018/tips | 1f5f5195d7181b5dd4616db02166f7f92c97f1cd | [
"MIT"
] | 2 | 2019-05-07T03:08:25.000Z | 2020-05-22T10:10:00.000Z | tornado_demo/web2py/applications/welcome/languages/plural-es.py | ls-2018/tips | 1f5f5195d7181b5dd4616db02166f7f92c97f1cd | [
"MIT"
] | 7 | 2020-05-22T13:29:42.000Z | 2021-09-23T23:30:25.000Z | tornado_demo/web2py/applications/welcome/languages/plural-es.py | ls-2018/py | 1f5f5195d7181b5dd4616db02166f7f92c97f1cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
{
'actualizada': ['actualizadas'],
'eliminada': ['eliminadas'],
'fila': ['filas'],
'seleccionado': ['seleccionados'],
}
| 20 | 38 | 0.5375 | 11 | 160 | 7.818182 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.19375 | 160 | 7 | 39 | 22.857143 | 0.658915 | 0.13125 | 0 | 0 | 0 | 0 | 0.554745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa1cad7042dad2b081dbb2301a28860d14cc50c3 | 92 | py | Python | hive_kernel/__init__.py | Hourout/hive_kernel | 9a6d9f523f5e78e2c5f37b98f6a5ca5b312836d6 | [
"Apache-2.0"
] | 1 | 2020-06-08T13:08:25.000Z | 2020-06-08T13:08:25.000Z | hive_kernel/__init__.py | Hourout/hive_kernel | 9a6d9f523f5e78e2c5f37b98f6a5ca5b312836d6 | [
"Apache-2.0"
] | null | null | null | hive_kernel/__init__.py | Hourout/hive_kernel | 9a6d9f523f5e78e2c5f37b98f6a5ca5b312836d6 | [
"Apache-2.0"
] | null | null | null | """A hive kernel for Jupyter"""
from .kernel import __version__
__author__ = 'JinQing Lee'
| 18.4 | 31 | 0.73913 | 12 | 92 | 5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 92 | 4 | 32 | 23 | 0.769231 | 0.271739 | 0 | 0 | 0 | 0 | 0.180328 | 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 |
a4b1137c381877506aaaf3c044b88cac023a2d89 | 241 | py | Python | activity/admin.py | rajaprerak/user_activities | 25be289dbea5361c0c0c032ae88121d07da567f9 | [
"MIT"
] | null | null | null | activity/admin.py | rajaprerak/user_activities | 25be289dbea5361c0c0c032ae88121d07da567f9 | [
"MIT"
] | 6 | 2021-03-19T10:28:01.000Z | 2021-09-22T19:31:42.000Z | activity/admin.py | rajaprerak/user_activities | 25be289dbea5361c0c0c032ae88121d07da567f9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import User, Activity
"""
Registering User and Activity model.
By this Django would be able to create a default form representation.
"""
admin.site.register(User)
admin.site.register(Activity)
| 24.1 | 70 | 0.788382 | 35 | 241 | 5.428571 | 0.685714 | 0.094737 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 241 | 9 | 71 | 26.777778 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a4cfccd804e71eed92e4b7bd06e64ae1b05bf5b2 | 409 | py | Python | Assets/Sprites/ModularCharacters/Spritesheet/parse_sprite.py | tsmaster/WebCWG2021 | 0ed28b59d526ef8a12bb50034e511aa98512e355 | [
"MIT"
] | null | null | null | Assets/Sprites/ModularCharacters/Spritesheet/parse_sprite.py | tsmaster/WebCWG2021 | 0ed28b59d526ef8a12bb50034e511aa98512e355 | [
"MIT"
] | null | null | null | Assets/Sprites/ModularCharacters/Spritesheet/parse_sprite.py | tsmaster/WebCWG2021 | 0ed28b59d526ef8a12bb50034e511aa98512e355 | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as et
#tree = et.parse('sheet_shirts.xml')
#tree = et.parse('sheet_face.xml')
tree = et.parse('sheet_hair.xml')
root = tree.getroot()
print(root)
for child in root:
print(" {%d, %d, %d, %d}, // %s" % (
int(child.attrib['x']),
int(child.attrib['y']),
int(chi... | 24.058824 | 43 | 0.574572 | 58 | 409 | 4 | 0.465517 | 0.237069 | 0.241379 | 0.206897 | 0.163793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207824 | 409 | 16 | 44 | 25.5625 | 0.716049 | 0.166259 | 0 | 0 | 0 | 0 | 0.171091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 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 |
a4e08e9b90d1827424bac0e45e8c494bd4ca9952 | 552 | py | Python | tests/regressions/python/905_call_python_snippet.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | tests/regressions/python/905_call_python_snippet.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | tests/regressions/python/905_call_python_snippet.py | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | # Copyright (c) 2019 R. Tohid
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# #905: Enable calling Python snippet from inside the Phylanx execution tree
import numpy as np
from phylanx import Phylanx
@Phyla... | 17.25 | 79 | 0.668478 | 100 | 552 | 3.63 | 0.53 | 0.022039 | 0.082645 | 0.066116 | 0.126722 | 0.126722 | 0.126722 | 0.126722 | 0.126722 | 0 | 0 | 0.050808 | 0.21558 | 552 | 31 | 80 | 17.806452 | 0.787529 | 0.452899 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.153846 | 0.230769 | 0.615385 | 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 |
a4e2c17b13950494840a1e21c47f817065ae9c93 | 441 | py | Python | flaskerize/custom_functions.py | darkguinito/myflaskerize | e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b | [
"BSD-3-Clause"
] | 1 | 2020-11-29T13:00:48.000Z | 2020-11-29T13:00:48.000Z | flaskerize/custom_functions.py | darkguinito/myflaskerize | e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b | [
"BSD-3-Clause"
] | null | null | null | flaskerize/custom_functions.py | darkguinito/myflaskerize | e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b | [
"BSD-3-Clause"
] | null | null | null | from typing import List, Callable
def make_register_custom_function() -> Callable:
funcs: List[Callable] = []
def register_custom_function(func):
funcs.append(func)
return func
register_custom_function.funcs = funcs # https://github.com/python/mypy/issues/2087
return register_custom... | 25.941176 | 88 | 0.764172 | 53 | 441 | 6.037736 | 0.415094 | 0.30625 | 0.48125 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010782 | 0.15873 | 441 | 16 | 89 | 27.5625 | 0.851752 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a4fca60b5387c4a52b4d48ffba83ddd0dada55dc | 134 | py | Python | tests/handmodel/test_loader.py | n-fallahinia/handtracking | 51bf867627e637b62a94a6fc5dbb3f0a7c885fa3 | [
"MIT"
] | 1,640 | 2017-12-02T00:05:34.000Z | 2022-03-29T15:20:37.000Z | tests/handmodel/test_loader.py | n-fallahinia/handtracking | 51bf867627e637b62a94a6fc5dbb3f0a7c885fa3 | [
"MIT"
] | 60 | 2017-12-06T04:02:00.000Z | 2021-09-13T14:45:40.000Z | tests/handmodel/test_loader.py | n-fallahinia/handtracking | 51bf867627e637b62a94a6fc5dbb3f0a7c885fa3 | [
"MIT"
] | 496 | 2017-12-03T13:35:06.000Z | 2022-03-31T06:17:39.000Z | from handtrack.handmodel import HandModel
def test_loader():
handModel = HandModel("small")
assert handModel.size == "small" | 22.333333 | 41 | 0.731343 | 15 | 134 | 6.466667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 134 | 6 | 42 | 22.333333 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 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 |
350a7cb3157f0f5e587a99caadb7815e584ee3ad | 243 | py | Python | PythonExercicio/ex047.py | VazMF/Curso-de-Python | 9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a | [
"MIT"
] | null | null | null | PythonExercicio/ex047.py | VazMF/Curso-de-Python | 9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a | [
"MIT"
] | null | null | null | PythonExercicio/ex047.py | VazMF/Curso-de-Python | 9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a | [
"MIT"
] | null | null | null | #crie um programa que mostre na tela todos os número pares que estão no intervalo entre 1 e 50
for n in range(2, 51, 2): #para n de 2 ate 51 pulando de dois em dois
print(f'{n} ->', end=' ') #print n e nao quebre a linha
print('FIM') #fim
| 48.6 | 94 | 0.679012 | 51 | 243 | 3.235294 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.218107 | 243 | 4 | 95 | 60.75 | 0.815789 | 0.683128 | 0 | 0 | 0 | 0 | 0.136986 | 0 | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
352e69a4cba34633a4da303cb4d63f74add4308c | 2,372 | py | Python | convert_note_to_midi.py | kevinyjiang/note2midi | c409fce263c7997e00738d1cf63b4e4cf7d55000 | [
"MIT"
] | 3 | 2018-11-19T17:11:21.000Z | 2018-12-24T14:18:42.000Z | convert_note_to_midi.py | kevinyjiang/note2midi | c409fce263c7997e00738d1cf63b4e4cf7d55000 | [
"MIT"
] | null | null | null | convert_note_to_midi.py | kevinyjiang/note2midi | c409fce263c7997e00738d1cf63b4e4cf7d55000 | [
"MIT"
] | null | null | null | """
Note to MIDI Number converter
Author: Kevin Jiang
Disclaimer: this probably already exists but YOLO
"""
### TODO: Add support for sharp accidentals
import sys
# Constants
NOTES = ['C','D','E','F','G','A','B']
ACCIDENTALS = ['b', '']
NON_ACCIDENTAL_NOTES = ['F', 'C'] # F and C are not usually r... | 43.127273 | 140 | 0.501265 | 375 | 2,372 | 3.114667 | 0.789333 | 0.029966 | 0.030822 | 0.027397 | 0.053082 | 0.053082 | 0.053082 | 0.053082 | 0.053082 | 0 | 0 | 0.205581 | 0.259696 | 2,372 | 54 | 141 | 43.925926 | 0.459567 | 0.096965 | 0 | 0 | 0 | 0 | 0.202324 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.058824 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3530cc13db6b33b2db830b51603b272938623216 | 291 | py | Python | main/PRODUCT/admin.py | OMGUPTA21/hack-special-101 | 7b73eb584e8499775df88e88594c451d1c485524 | [
"MIT"
] | null | null | null | main/PRODUCT/admin.py | OMGUPTA21/hack-special-101 | 7b73eb584e8499775df88e88594c451d1c485524 | [
"MIT"
] | 2 | 2021-10-02T04:17:53.000Z | 2021-10-02T13:39:36.000Z | main/PRODUCT/admin.py | OMGUPTA21/hack-special-101 | 7b73eb584e8499775df88e88594c451d1c485524 | [
"MIT"
] | 2 | 2021-10-02T03:53:22.000Z | 2021-10-02T05:58:35.000Z | from django.contrib import admin
from .models import Catagory ,Products,Address,Cart,Tip,Order
# Register your models here.
admin.site.register(Catagory)
admin.site.register(Products)
admin.site.register(Cart)
admin.site.register(Address)
admin.site.register(Tip)
admin.site.register(Order) | 29.1 | 61 | 0.817869 | 42 | 291 | 5.666667 | 0.380952 | 0.226891 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068729 | 291 | 10 | 62 | 29.1 | 0.878229 | 0.089347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
35359749649471fd504a2553196ff35404b09a76 | 233 | py | Python | {{cookiecutter.project_name}}/server/apps/main/logic/__init__.py | pygo/wemake-django-template | 0f0dd03149288a97cfcb4b4df558d2f19c25c08b | [
"MIT"
] | 1 | 2020-05-06T00:40:10.000Z | 2020-05-06T00:40:10.000Z | {{cookiecutter.project_name}}/server/apps/main/logic/__init__.py | KonstantinKlepikov/wemake-django-template | 6967927e0142e5513108bfff4d045940012216da | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/server/apps/main/logic/__init__.py | KonstantinKlepikov/wemake-django-template | 6967927e0142e5513108bfff4d045940012216da | [
"MIT"
] | null | null | null |
"""
This package is a place for your business logic.
Please, do not create any other files inside your app package.
Place all files here, including: logic, forms, serializers.
Decoupling is a good thing. We need more of that.
"""
| 23.3 | 62 | 0.746781 | 38 | 233 | 4.578947 | 0.815789 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184549 | 233 | 9 | 63 | 25.888889 | 0.915789 | 0.957082 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
353742f9f8b63a21737d0bd9784388cb3804ae29 | 185 | py | Python | modules/concurrency.py | mesham/ePython | 6a5afb11e81268ba02e483d016a302537ccb662c | [
"BSD-2-Clause"
] | 85 | 2015-10-16T16:06:59.000Z | 2022-03-23T02:39:58.000Z | modules/concurrency.py | mesham/ePython | 6a5afb11e81268ba02e483d016a302537ccb662c | [
"BSD-2-Clause"
] | 6 | 2016-09-05T22:22:17.000Z | 2018-06-10T14:40:24.000Z | modules/concurrency.py | mesham/ePython | 6a5afb11e81268ba02e483d016a302537ccb662c | [
"BSD-2-Clause"
] | 15 | 2015-10-16T17:59:19.000Z | 2020-08-11T09:12:12.000Z | def expose(data, pid):
global_ref=native rtl_global_reference(id(data))
native rtl_send(global_ref,pid)
def access(src):
ref=native rtl_recv(src)
return native rtl_dereference(ref) | 26.428571 | 49 | 0.794595 | 31 | 185 | 4.516129 | 0.516129 | 0.257143 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097297 | 185 | 7 | 50 | 26.428571 | 0.838323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3541ab99779c7175703ab32c6f0db27fda6ccfd7 | 111 | py | Python | 05-Lists_Advanced/Exercises/2-Big_Numbers_Lover.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | 05-Lists_Advanced/Exercises/2-Big_Numbers_Lover.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | 05-Lists_Advanced/Exercises/2-Big_Numbers_Lover.py | eclipse-ib/Software-University-Fundamentals_Module | 994ef75c70d1bae8e615dbb789aeffd6e0a42c34 | [
"MIT"
] | null | null | null | numbers = input().split()
new_list = sorted(numbers, reverse=True)
new_list = "".join(new_list)
print(new_list) | 27.75 | 40 | 0.738739 | 17 | 111 | 4.588235 | 0.588235 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09009 | 111 | 4 | 41 | 27.75 | 0.772277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 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 |
101fd5095e84127ecaab3058190a6c12c83ea95f | 529 | py | Python | m_squence/prn_out.py | lff5985/share-from-zhao | b1a6e3513db10e6da18ed6884d4fab9fb68e51b4 | [
"MIT"
] | 2 | 2018-06-13T02:27:22.000Z | 2020-12-27T09:55:50.000Z | m_squence/prn_out.py | lff5985/share-from-zhao | b1a6e3513db10e6da18ed6884d4fab9fb68e51b4 | [
"MIT"
] | null | null | null | m_squence/prn_out.py | lff5985/share-from-zhao | b1a6e3513db10e6da18ed6884d4fab9fb68e51b4 | [
"MIT"
] | 2 | 2016-11-09T14:06:30.000Z | 2019-06-01T02:46:15.000Z | prn_out = {
1: [2, 6],
2: [3, 7],
3: [4, 8],
4: [6, 9],
5: [1, 9],
6: [2, 10],
7: [1, 8],
8: [2, 9],
9: [3, 10],
10: [2, 3],
11: [3, 4],
12: [5, 6],
13: [6, 7],
14: [7, 8],
15: [8, 9],
16: [9, 10],
17: [1, 4],
18: [2, 5],
19: [3, 6],
... | 15.114286 | 16 | 0.245747 | 98 | 529 | 1.316327 | 0.346939 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.421233 | 0.448015 | 529 | 34 | 17 | 15.558824 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
102bb6b3925781e7a66d3b3983d0e7768327c671 | 29 | py | Python | constant/jira_command.py | coolexplorer/slackbot-buffy | 176e379af292cadb3b574cf2c278055324893353 | [
"MIT"
] | 3 | 2020-09-28T12:37:59.000Z | 2020-09-28T12:52:02.000Z | constant/jira_command.py | coolexplorer/slackbot-buffy | 176e379af292cadb3b574cf2c278055324893353 | [
"MIT"
] | 1 | 2022-02-24T06:54:34.000Z | 2022-02-24T06:54:34.000Z | constant/jira_command.py | coolexplorer/slackbot-buffy | 176e379af292cadb3b574cf2c278055324893353 | [
"MIT"
] | null | null | null | jira_command = [
"log"
]
| 7.25 | 16 | 0.517241 | 3 | 29 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 29 | 3 | 17 | 9.666667 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 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 |
104837344b3fcf87db1e3e2da8b69a71b819dcd6 | 413 | py | Python | app.py | Hazeral/LoginSystem | 22499a66062977b56e16f01a86077435b8209cf4 | [
"MIT"
] | 5 | 2020-02-02T00:14:57.000Z | 2020-12-26T05:17:18.000Z | app.py | h-x-z/LoginSystem | 22499a66062977b56e16f01a86077435b8209cf4 | [
"MIT"
] | 1 | 2020-11-17T18:57:21.000Z | 2020-11-17T18:57:21.000Z | app.py | h-x-z/LoginSystem | 22499a66062977b56e16f01a86077435b8209cf4 | [
"MIT"
] | 1 | 2021-04-19T00:40:56.000Z | 2021-04-19T00:40:56.000Z | from flask import Flask
from routes.login import login_b
from routes.register import register_b
from routes.main import main_b
from routes.logout import logout_b
import routes.auth as auth
app = Flask(__name__)
app.register_blueprint(main_b)
app.register_blueprint(login_b)
app.register_blueprint(register_b... | 22.944444 | 39 | 0.799031 | 65 | 413 | 4.815385 | 0.307692 | 0.127796 | 0.255591 | 0.201278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 413 | 17 | 40 | 24.294118 | 0.876751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0.307692 | 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 |
106c7859037cf328be08f2117f2b6463a57cc192 | 273 | py | Python | src/15/passing_null_terminated_strings_to_c_libraries/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/15/passing_null_terminated_strings_to_c_libraries/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/15/passing_null_terminated_strings_to_c_libraries/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | import sample
import sys
sample.print_chars(b'hello world')
s = 'Spicy Jalape\u00f1o'
print(sys.getsizeof(s))
sample.print_chars_str(s)
print(sys.getsizeof(s))
del s
s = 'spicy Jalape\u00f1o'
print(sys.getsizeof(s))
sample.print_chars_str_alt(s)
print(sys.getsizeof(s))
| 17.0625 | 34 | 0.765568 | 47 | 273 | 4.319149 | 0.340426 | 0.157635 | 0.334975 | 0.35468 | 0.729064 | 0.541872 | 0.541872 | 0.541872 | 0.541872 | 0.541872 | 0 | 0.024194 | 0.091575 | 273 | 15 | 35 | 18.2 | 0.794355 | 0 | 0 | 0.333333 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.583333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
106f9c5c14ab5be62b721a31fee65721befe1aae | 291 | py | Python | Python/Itertools/maximize_it.py | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | Python/Itertools/maximize_it.py | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | Python/Itertools/maximize_it.py | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
from itertools import product
k,mo=map(int,input().split())
ele=(list(map(int,input().split()))[1:] for i in range(k))
results=list(map(lambda x:sum(i*i for i in x)%mo,product(*ele)) )
print(max(results))
| 29.1 | 70 | 0.670103 | 52 | 291 | 3.75 | 0.615385 | 0.061538 | 0.112821 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.161512 | 291 | 9 | 71 | 32.333333 | 0.795082 | 0.230241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
109392a53933673e6a024ecabf126eebf98de9ba | 150 | py | Python | samples/ml-ops-on-aws/source/scripts/setup.py | ihafidh/dataops-infra | 7dd73534fac9e7aeb2fea0d546c583aa2ca6e1f3 | [
"MIT"
] | 12 | 2020-02-29T03:54:54.000Z | 2020-12-03T08:16:04.000Z | samples/ml-ops-on-aws/source/scripts/setup.py | ihafidh/dataops-infra | 7dd73534fac9e7aeb2fea0d546c583aa2ca6e1f3 | [
"MIT"
] | 99 | 2019-12-08T19:54:30.000Z | 2020-12-27T01:30:58.000Z | samples/ml-ops-on-aws/source/scripts/setup.py | ihafidh/dataops-infra | 7dd73534fac9e7aeb2fea0d546c583aa2ca6e1f3 | [
"MIT"
] | 30 | 2020-02-27T20:58:37.000Z | 2020-10-30T14:13:52.000Z | from setuptools import setup
setup(name="pandasmodule",
version="0.1",
packages=[],
install_requires=['pandas==0.25.1']
) | 21.428571 | 43 | 0.593333 | 17 | 150 | 5.176471 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 0.246667 | 150 | 7 | 44 | 21.428571 | 0.725664 | 0 | 0 | 0 | 0 | 0 | 0.192053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
109a87b19a414db4a110f8cf2ed1772c32e1ee61 | 200 | py | Python | setup.py | iris-theof/distributions | 4d7189c599b491dab313804dea6338bad06b478d | [
"CNRI-Python",
"Xnet",
"X11"
] | 2 | 2021-01-19T19:00:14.000Z | 2021-01-21T10:24:32.000Z | setup.py | iris-theof/distributions_package | 4d7189c599b491dab313804dea6338bad06b478d | [
"CNRI-Python",
"Xnet",
"X11"
] | null | null | null | setup.py | iris-theof/distributions_package | 4d7189c599b491dab313804dea6338bad06b478d | [
"CNRI-Python",
"Xnet",
"X11"
] | null | null | null | from setuptools import setup
setup(name='distributions',
version='0.0',
description='Bernoulli, Binomial, Gaussian distributions',
packages=['distributions'],
zip_safe=False)
| 25 | 64 | 0.695 | 20 | 200 | 6.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.185 | 200 | 7 | 65 | 28.571429 | 0.834356 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
109ad576aa454c5198334f64a4787e028c2a7ff1 | 813 | py | Python | mailie/_policy.py | 2000prath/mailie | 6bb825964f708e924143b16a641d8c192121f5f7 | [
"Apache-2.0"
] | null | null | null | mailie/_policy.py | 2000prath/mailie | 6bb825964f708e924143b16a641d8c192121f5f7 | [
"Apache-2.0"
] | 29 | 2021-12-02T23:56:23.000Z | 2022-03-25T08:27:29.000Z | mailie/_policy.py | 2000prath/mailie | 6bb825964f708e924143b16a641d8c192121f5f7 | [
"Apache-2.0"
] | 1 | 2022-03-31T07:57:16.000Z | 2022-03-31T07:57:16.000Z | import typing
from email.policy import HTTP
from email.policy import SMTP
from email.policy import SMTPUTF8
from email.policy import Policy
from email.policy import default
from email.policy import strict
POLICIES = {"default": default, "strict": strict, "smtp": SMTP, "smtputf8": SMTPUTF8, "http": HTTP}
def policy_f... | 36.954545 | 109 | 0.740467 | 113 | 813 | 5.256637 | 0.371681 | 0.13468 | 0.151515 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004458 | 0.172202 | 813 | 21 | 110 | 38.714286 | 0.878158 | 0.334563 | 0 | 0 | 0 | 0 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.583333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
10b03f16d84239397b2c94f4c5f7ef2d266f5f20 | 368 | py | Python | 14_inheritance/counter__inheritance.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | null | null | null | 14_inheritance/counter__inheritance.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 2 | 2019-04-15T06:29:55.000Z | 2019-04-19T17:34:32.000Z | 14_inheritance/counter__inheritance.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 1 | 2019-11-19T04:51:18.000Z | 2019-11-19T04:51:18.000Z | # Write a Python program using inheritance to print the value of Counter
# Create a class Counter with class variable 'i' and method called 'increment()'
# Now write a subclass extending Counter class which calls the increment() function and displays the following output:
# for more info on this quiz, go to this url... | 92 | 119 | 0.779891 | 58 | 368 | 4.948276 | 0.741379 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.157609 | 368 | 4 | 120 | 92 | 0.922581 | 0.978261 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
52cb345bfa8296fd5c8ae4b2f366b2ba7bc9b26f | 479 | py | Python | keras/applications/__init__.py | ikingye/keras | 1a3ee8441933fc007be6b2beb47af67998d50737 | [
"MIT"
] | 5 | 2020-11-30T22:26:03.000Z | 2020-12-01T22:34:25.000Z | keras/applications/__init__.py | ikingye/keras | 1a3ee8441933fc007be6b2beb47af67998d50737 | [
"MIT"
] | 10 | 2020-12-01T22:55:29.000Z | 2020-12-11T18:31:46.000Z | keras/applications/__init__.py | ikingye/keras | 1a3ee8441933fc007be6b2beb47af67998d50737 | [
"MIT"
] | 15 | 2020-11-30T22:12:22.000Z | 2020-12-09T01:32:48.000Z | from .vgg16 import VGG16
from .vgg19 import VGG19
from .resnet50 import ResNet50
from .inception_v3 import InceptionV3
from .inception_resnet_v2 import InceptionResNetV2
from .xception import Xception
from .mobilenet import MobileNet
from .mobilenet_v2 import MobileNetV2
from .densenet import DenseNet121, DenseNet169, ... | 36.846154 | 59 | 0.849687 | 59 | 479 | 6.813559 | 0.440678 | 0.059701 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 0.112735 | 479 | 12 | 60 | 39.916667 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
52d79122b3b7996f7344c153c380f5647e58b36a | 441 | py | Python | Practica 7/P7E8.py | victoriapenasmiro/python | dbdbbf627b6fde48099cf0184c912472b3b67491 | [
"MIT"
] | null | null | null | Practica 7/P7E8.py | victoriapenasmiro/python | dbdbbf627b6fde48099cf0184c912472b3b67491 | [
"MIT"
] | 2 | 2022-01-12T07:33:52.000Z | 2022-01-12T08:01:58.000Z | Practica 7/P7E8.py | victoriapenasmiro/python | dbdbbf627b6fde48099cf0184c912472b3b67491 | [
"MIT"
] | 1 | 2019-11-25T10:08:31.000Z | 2019-11-25T10:08:31.000Z | """P7E8 VICTORIA PEÑAS
Escribe un programa que pida una frase, y pase la frase como parámetro
a una función que debe eliminar los espacios en blanco (compactar la frase).
El programa principal imprimirá por pantalla el resultado final.
+ info en https://stackoverrun.com/es/q/2136639"""
def eliminarEspacios(seq):
re... | 44.1 | 76 | 0.768707 | 65 | 441 | 5.215385 | 0.723077 | 0.047198 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.136054 | 441 | 9 | 77 | 49 | 0.866142 | 0.634921 | 0 | 0 | 0 | 0 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
52ef38ee714177e1133d4dcb818effc8436ff8aa | 465 | py | Python | keras_contrib/constraints.py | jmtatsch/keras-contrib | 14d5ba1227d1d78ea9fe299db0cfacbbdb41970f | [
"MIT"
] | null | null | null | keras_contrib/constraints.py | jmtatsch/keras-contrib | 14d5ba1227d1d78ea9fe299db0cfacbbdb41970f | [
"MIT"
] | null | null | null | keras_contrib/constraints.py | jmtatsch/keras-contrib | 14d5ba1227d1d78ea9fe299db0cfacbbdb41970f | [
"MIT"
] | 1 | 2019-01-24T05:12:26.000Z | 2019-01-24T05:12:26.000Z | from __future__ import absolute_import
from . import backend as K
from keras.constraints import *
class Clip(Constraint):
"""Clips weights to [-c, c].
# Arguments
c: Clipping parameter.
"""
def __init__(self, c=0.01):
self.c = c
def __call__(self, p):
return K.clip(p, -s... | 17.884615 | 48 | 0.591398 | 62 | 465 | 4.080645 | 0.5 | 0.098814 | 0.047431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.283871 | 465 | 25 | 49 | 18.6 | 0.750751 | 0.16129 | 0 | 0 | 0 | 0 | 0.013477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.166667 | 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 |
5e16e73cef98c185ed4e7812148e671e4bf432aa | 372 | py | Python | wheat/wallet/lineage_proof.py | grayfallstown/wheat-blockchain | f391cdd30a0cbcdb2adf4439a25581fd28b42c1f | [
"Apache-2.0"
] | 15 | 2021-07-12T14:27:42.000Z | 2022-02-09T04:32:44.000Z | wheat/wallet/lineage_proof.py | grayfallstown/wheat-blockchain | f391cdd30a0cbcdb2adf4439a25581fd28b42c1f | [
"Apache-2.0"
] | 21 | 2021-07-12T23:25:36.000Z | 2021-10-29T23:19:55.000Z | wheat/wallet/lineage_proof.py | grayfallstown/wheat-blockchain | f391cdd30a0cbcdb2adf4439a25581fd28b42c1f | [
"Apache-2.0"
] | 8 | 2021-07-12T13:15:19.000Z | 2022-03-15T08:41:18.000Z | from dataclasses import dataclass
from typing import Optional
from wheat.types.blockchain_format.sized_bytes import bytes32
from wheat.util.ints import uint64
from wheat.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class LineageProof(Streamable):
parent_name: bytes32
inne... | 24.8 | 61 | 0.819892 | 47 | 372 | 6.382979 | 0.574468 | 0.09 | 0.086667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030675 | 0.123656 | 372 | 14 | 62 | 26.571429 | 0.889571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.818182 | 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 |
5e2fef009096d68ca0e78f50eee0ef22a9cd973d | 25,176 | py | Python | bluesky_queueserver/manager/tests/test_annotation_decorator.py | AustralianSynchrotron/bluesky-queueserver | 31a4e4d04b31a9cec2cd2c17f115cf6cb5378eef | [
"BSD-3-Clause"
] | null | null | null | bluesky_queueserver/manager/tests/test_annotation_decorator.py | AustralianSynchrotron/bluesky-queueserver | 31a4e4d04b31a9cec2cd2c17f115cf6cb5378eef | [
"BSD-3-Clause"
] | null | null | null | bluesky_queueserver/manager/tests/test_annotation_decorator.py | AustralianSynchrotron/bluesky-queueserver | 31a4e4d04b31a9cec2cd2c17f115cf6cb5378eef | [
"BSD-3-Clause"
] | null | null | null | import typing
import pytest
import jsonschema
import inspect
from bluesky_queueserver.manager.annotation_decorator import (
parameter_annotation_decorator,
_convert_annotation_to_type,
_extract_yield_type,
)
# fmt: off
@pytest.mark.parametrize("original, converted", [
("<class 'int'>", "int"),
("<... | 30.928747 | 126 | 0.676239 | 2,809 | 25,176 | 5.779281 | 0.086864 | 0.03351 | 0.034557 | 0.040655 | 0.810275 | 0.773315 | 0.730381 | 0.657879 | 0.602439 | 0.53314 | 0 | 0.01012 | 0.207142 | 25,176 | 813 | 127 | 30.96679 | 0.803166 | 0.060812 | 0 | 0.576433 | 0 | 0 | 0.488194 | 0.023142 | 0 | 0 | 0 | 0 | 0.070064 | 1 | 0.036624 | false | 0.001592 | 0.007962 | 0.006369 | 0.05414 | 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 |
eac75d910ea6af8078dbbe32e6cd069d01f04532 | 146 | py | Python | tests/wrappers/django_test/polls/urls.py | Dryja/epsagon-python | 505b09268820593903afdce26e1bab7f64adc23b | [
"MIT"
] | 55 | 2018-09-30T11:46:01.000Z | 2022-03-15T13:37:26.000Z | tests/wrappers/django_test/polls/urls.py | Dryja/epsagon-python | 505b09268820593903afdce26e1bab7f64adc23b | [
"MIT"
] | 323 | 2018-10-04T15:42:08.000Z | 2022-02-20T11:26:40.000Z | tests/wrappers/django_test/polls/urls.py | Dryja/epsagon-python | 505b09268820593903afdce26e1bab7f64adc23b | [
"MIT"
] | 20 | 2018-10-11T14:47:16.000Z | 2022-01-20T11:07:29.000Z | from django.urls import path
from . import views
urlpatterns = [
path('a', views.indexA, name='a'),
path('b', views.indexB, name='b'),
] | 18.25 | 38 | 0.630137 | 21 | 146 | 4.380952 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184932 | 146 | 8 | 39 | 18.25 | 0.773109 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 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 |
ead14247dabf9c71a8c47e353f84e41f3d9b671f | 613 | py | Python | rinzler/exceptions/__init__.py | feliphebueno/Rinzler | e1fe0621dad80356eeb1224bb83da2ffa0c48baa | [
"MIT"
] | 6 | 2017-08-03T00:49:46.000Z | 2019-03-01T22:38:47.000Z | rinzler/exceptions/__init__.py | feliphebueno/Rinzler | e1fe0621dad80356eeb1224bb83da2ffa0c48baa | [
"MIT"
] | 10 | 2018-07-17T18:14:03.000Z | 2022-02-10T06:47:27.000Z | rinzler/exceptions/__init__.py | feliphebueno/Rinzler | e1fe0621dad80356eeb1224bb83da2ffa0c48baa | [
"MIT"
] | 1 | 2017-10-03T00:19:49.000Z | 2017-10-03T00:19:49.000Z | """
Rinzler's exceptions module
:author: Rinzler<github.com/feliphebueno>
:date: 14/07/2018
"""
__author__ = "Rinzler<github.com/feliphebueno>"
class RinzlerHttpException(BaseException):
"""
Rinzler's base HTTP Exception, all other HTTP Exceptions must subclass this class as well as override it's
properti... | 27.863636 | 119 | 0.721044 | 81 | 613 | 5.197531 | 0.62963 | 0.071259 | 0.090261 | 0.104513 | 0.16152 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.192496 | 613 | 21 | 120 | 29.190476 | 0.832323 | 0.50571 | 0 | 0 | 0 | 0 | 0.177536 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.875 | 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 |
eaff6bb7e4ac88ebbd5ebde22740072785242f19 | 1,815 | py | Python | tests/test_runner.py | nlocascio/pytest-alembic | 1b9bbae9ab424c238c25ed69e3bb19242ba40fbd | [
"MIT"
] | null | null | null | tests/test_runner.py | nlocascio/pytest-alembic | 1b9bbae9ab424c238c25ed69e3bb19242ba40fbd | [
"MIT"
] | null | null | null | tests/test_runner.py | nlocascio/pytest-alembic | 1b9bbae9ab424c238c25ed69e3bb19242ba40fbd | [
"MIT"
] | null | null | null | import pytest
def run_test(testdir):
testdir.copy_example()
result = testdir.runpytest("--test-alembic", "-vv")
stdout = result.stdout.str()
print(stdout)
return result, stdout
def successful_test_run(testdir, num_tests=4):
result, stdout = run_test(testdir)
assert result.ret == 0
... | 26.691176 | 84 | 0.763636 | 253 | 1,815 | 5.166008 | 0.264822 | 0.107116 | 0.130069 | 0.183627 | 0.626626 | 0.626626 | 0.602142 | 0.484315 | 0.314461 | 0.24407 | 0 | 0.006502 | 0.152617 | 1,815 | 67 | 85 | 27.089552 | 0.843303 | 0.118457 | 0 | 0.210526 | 0 | 0 | 0.116793 | 0.074495 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.315789 | false | 0.052632 | 0.026316 | 0 | 0.394737 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d8066fd61909b22545658dd375bd99a4347d5521 | 584 | py | Python | src/sage/games/all.py | fchapoton/sage | 765c5cb3e24dd134708eca97e4c52e0221cd94ba | [
"BSL-1.0"
] | 2 | 2019-06-02T03:16:59.000Z | 2019-06-15T10:17:18.000Z | src/sage/games/all.py | fchapoton/sage | 765c5cb3e24dd134708eca97e4c52e0221cd94ba | [
"BSL-1.0"
] | null | null | null | src/sage/games/all.py | fchapoton/sage | 765c5cb3e24dd134708eca97e4c52e0221cd94ba | [
"BSL-1.0"
] | 3 | 2020-03-29T17:13:36.000Z | 2021-05-03T18:11:28.000Z | """
Test for deprecations of imports into global namespace::
sage: backtrack_all
doctest:warning...:
DeprecationWarning:
Importing backtrack_all from here is deprecated. If you need to use it, please import it directly from sage.games.sudoku_backtrack
See https://trac.sagemath.org/27066 for details... | 27.809524 | 134 | 0.77226 | 79 | 584 | 5.531646 | 0.56962 | 0.08238 | 0.06865 | 0.10984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020161 | 0.150685 | 584 | 20 | 135 | 29.2 | 0.860887 | 0.556507 | 0 | 0 | 0 | 0 | 0.159363 | 0.10757 | 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 |
d81552ff1d3ef3eb45f884d449faf86b927336a0 | 3,317 | py | Python | words/models.py | vanyh/handkeinzungen-app | 8996b6aa2b6131f405f519c19aae245b0cf1298f | [
"MIT"
] | 1 | 2017-10-17T10:05:44.000Z | 2017-10-17T10:05:44.000Z | words/models.py | vanyh/handkeinzungen-app | 8996b6aa2b6131f405f519c19aae245b0cf1298f | [
"MIT"
] | 15 | 2017-10-17T09:57:10.000Z | 2021-12-13T19:48:46.000Z | words/models.py | vanyh/handkeinzungen-app | 8996b6aa2b6131f405f519c19aae245b0cf1298f | [
"MIT"
] | 1 | 2017-11-09T11:18:24.000Z | 2017-11-09T11:18:24.000Z | from django.db import models
from django.core.urlresolvers import reverse
from idprovider.models import IdProvider
from bib.models import Quote
from vocabs.models import SkosConcept
from django.utils.translation import ugettext_lazy
class GermanLemma(IdProvider):
lemma = models.CharField(max_length=250, blank=Tru... | 33.846939 | 125 | 0.684956 | 404 | 3,317 | 5.438119 | 0.237624 | 0.032772 | 0.04142 | 0.054165 | 0.688666 | 0.638598 | 0.606736 | 0.606736 | 0.527082 | 0.527082 | 0 | 0.003438 | 0.210733 | 3,317 | 97 | 126 | 34.195876 | 0.835752 | 0.056376 | 0 | 0.540541 | 0 | 0 | 0.104737 | 0.066387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202703 | false | 0 | 0.081081 | 0.108108 | 0.675676 | 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 |
d835631eb3230051f111eea5b768424089baf687 | 154 | py | Python | CH_13_async_io/T_14_slow_blocking_code.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_13_async_io/T_14_slow_blocking_code.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_13_async_io/T_14_slow_blocking_code.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | import time
import asyncio
async def main():
# Oh no... a synchronous sleep from asyncio code
time.sleep(0.2)
asyncio.run(main(), debug=True)
| 14 | 52 | 0.681818 | 24 | 154 | 4.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.201299 | 154 | 10 | 53 | 15.4 | 0.837398 | 0.298701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d83d036758551eec778822321a2856e85b921de5 | 216 | py | Python | django_sso_app/core/apps/status/admin.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | 1 | 2021-11-16T15:16:08.000Z | 2021-11-16T15:16:08.000Z | django_sso_app/core/apps/status/admin.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | django_sso_app/core/apps/status/admin.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | """from django.contrib import admin
from .models import Status
@admin.register(Status)
class StatusAdmin(admin.ModelAdmin):
list_display = ('shape', 'created_at')
admin.site.register(Status, StatusAdmin)
""" | 18 | 42 | 0.74537 | 26 | 216 | 6.115385 | 0.653846 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 216 | 12 | 43 | 18 | 0.836842 | 0.967593 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.