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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c98bf2bc4221fa815accf00bef27222f811131c | 98 | py | Python | numeph/__init__.py | behrouzz/numeph | 8fa395f1f429ffa67c5dd18a15bb646ef0d0e290 | [
"MIT"
] | null | null | null | numeph/__init__.py | behrouzz/numeph | 8fa395f1f429ffa67c5dd18a15bb646ef0d0e290 | [
"MIT"
] | null | null | null | numeph/__init__.py | behrouzz/numeph | 8fa395f1f429ffa67c5dd18a15bb646ef0d0e290 | [
"MIT"
] | null | null | null | from .core import SPK, Segment, get_pos, geocentric, load_txt, load_pickle
__version__ = "0.3.4"
| 24.5 | 74 | 0.755102 | 16 | 98 | 4.1875 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.132653 | 98 | 3 | 75 | 32.666667 | 0.752941 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 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 |
4c9e54780a637976582b1f264ef9a0183404a9bf | 6,441 | py | Python | faker_clickstream/ip.py | cnatsis/faker-clickstream | 756ce2fdc02dab8090e83296442bb8a9c29b0543 | [
"Apache-2.0"
] | 1 | 2022-03-31T21:18:14.000Z | 2022-03-31T21:18:14.000Z | faker_clickstream/ip.py | cnatsis/faker-clickstream | 756ce2fdc02dab8090e83296442bb8a9c29b0543 | [
"Apache-2.0"
] | null | null | null | faker_clickstream/ip.py | cnatsis/faker-clickstream | 756ce2fdc02dab8090e83296442bb8a9c29b0543 | [
"Apache-2.0"
] | 1 | 2022-03-31T21:18:18.000Z | 2022-03-31T21:18:18.000Z | ip_list = [
"58.217.40.197",
"207.117.144.54",
"65.169.228.128",
"6.84.3.236",
"214.56.36.93",
"9.43.145.245",
"231.199.26.76",
"86.189.47.78",
"3.122.58.75",
"251.133.143.149",
"6.142.181.83",
"2.55.191.86",
"90.189.58.233",
"57.3.139.111",
"41.130.99.194",
... | 20.644231 | 22 | 0.478187 | 1,210 | 6,441 | 2.543802 | 0.217355 | 0.002599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.624031 | 0.238938 | 6,441 | 311 | 23 | 20.710611 | 0.003876 | 0 | 0 | 0 | 0 | 0 | 0.614656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ca974279ee644cfae693dc59992f4b18d941e5e | 537 | py | Python | api/kubeops_api/models/cluster_backup.py | 240325184/KubeOperator | 777774050b236abf938a5a9ef505124c26e4916e | [
"Apache-2.0"
] | 3 | 2020-04-05T04:53:24.000Z | 2020-04-05T04:53:34.000Z | api/kubeops_api/models/cluster_backup.py | 240325184/KubeOperator | 777774050b236abf938a5a9ef505124c26e4916e | [
"Apache-2.0"
] | 27 | 2021-05-05T02:51:26.000Z | 2022-01-04T21:30:21.000Z | api/kubeops_api/models/cluster_backup.py | 240325184/KubeOperator | 777774050b236abf938a5a9ef505124c26e4916e | [
"Apache-2.0"
] | 1 | 2020-11-22T01:15:05.000Z | 2020-11-22T01:15:05.000Z | import uuid
from django.db import models
class ClusterBackup(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4)
name = models.CharField(max_length=255, null=False,unique=True, blank=False)
size = models.IntegerField(default=0)
date_created = models.DateTimeField(auto_now_add= ... | 38.357143 | 80 | 0.763501 | 75 | 537 | 5.32 | 0.533333 | 0.150376 | 0.180451 | 0.240602 | 0.250627 | 0.180451 | 0.180451 | 0 | 0 | 0 | 0 | 0.027601 | 0.122905 | 537 | 13 | 81 | 41.307692 | 0.819533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4cb5e2c13b40ce8282e98419d7648938d1be4d1d | 345 | py | Python | src/DungeonsDragons/Character/Events/CharacterRaceSet.py | DieAntonie/eventstore-python | 1f162a466bcfdf6138248b6a89b4b6df1ce67c6c | [
"BSD-3-Clause"
] | 1 | 2021-10-02T20:59:57.000Z | 2021-10-02T20:59:57.000Z | src/DungeonsDragons/Character/Events/CharacterRaceSet.py | DieAntonie/eventstore-python | 1f162a466bcfdf6138248b6a89b4b6df1ce67c6c | [
"BSD-3-Clause"
] | 2 | 2020-03-24T16:36:16.000Z | 2020-03-24T16:51:03.000Z | src/DungeonsDragons/Character/Events/CharacterRaceSet.py | DieAntonie/eventstore-python | 1f162a466bcfdf6138248b6a89b4b6df1ce67c6c | [
"BSD-3-Clause"
] | null | null | null | from dataclasses import dataclass
from ...Game.Race import Race
from ...Game.Alignment import Alignment
import uuid
@dataclass
class CharacterRaceSet:
"""
A fact stating that a `CharacterAggregate` has been assigned a `Race` of a certain `Age` and `Alignment`.
"""
Id: uuid
Race: Race
Age: int
... | 21.5625 | 109 | 0.701449 | 44 | 345 | 5.5 | 0.545455 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214493 | 345 | 15 | 110 | 23 | 0.892989 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.9 | 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 |
4cc7fc19c8f1943fe19da660ff5321c4031ebdc6 | 732 | py | Python | eth_identity/main/management/commands/register_email.py | arjanz/eth-identity-management | 931301d0d1b3f440385b477fd87fc9221ba0cf39 | [
"MIT"
] | 1 | 2020-02-15T23:43:23.000Z | 2020-02-15T23:43:23.000Z | eth_identity/main/management/commands/register_email.py | arjanz/eth-identity-management | 931301d0d1b3f440385b477fd87fc9221ba0cf39 | [
"MIT"
] | null | null | null | eth_identity/main/management/commands/register_email.py | arjanz/eth-identity-management | 931301d0d1b3f440385b477fd87fc9221ba0cf39 | [
"MIT"
] | null | null | null | import os
import sys
import time
from django.conf import settings
from django.core.management import BaseCommand
from populus import Project
from main.indentity_registry import IdentityRegistry
class Command(BaseCommand):
help = "Verify e-mail in registry"
def add_arguments(self, parser):
# Named (... | 29.28 | 97 | 0.704918 | 90 | 732 | 5.633333 | 0.544444 | 0.053254 | 0.100592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003339 | 0.181694 | 732 | 24 | 98 | 30.5 | 0.843072 | 0.131148 | 0 | 0 | 0 | 0 | 0.093207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.4375 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
4ccc2c45633ee9646f7c39ef1ed0ff1ec186d548 | 57 | py | Python | test/login.py | Jason0510-Wei/ladeng9527 | 84ce1bbba03e413e323753cf8204f02b8feace9c | [
"MIT"
] | null | null | null | test/login.py | Jason0510-Wei/ladeng9527 | 84ce1bbba03e413e323753cf8204f02b8feace9c | [
"MIT"
] | null | null | null | test/login.py | Jason0510-Wei/ladeng9527 | 84ce1bbba03e413e323753cf8204f02b8feace9c | [
"MIT"
] | null | null | null | num1 = 1
num2 = 2
num3 = 3
num4 = 4000
num5 = 50000
| 5.181818 | 12 | 0.561404 | 10 | 57 | 3.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.459459 | 0.350877 | 57 | 10 | 13 | 5.7 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
4cce5d9650284bce148ed560c4566c75d4a9c30b | 329 | py | Python | prova/form/models.py | mary023010/prova_django | a69a37a4f26f21018cef48e5d637dd630ca68877 | [
"MIT"
] | null | null | null | prova/form/models.py | mary023010/prova_django | a69a37a4f26f21018cef48e5d637dd630ca68877 | [
"MIT"
] | null | null | null | prova/form/models.py | mary023010/prova_django | a69a37a4f26f21018cef48e5d637dd630ca68877 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Utente(models.Model):
email = models.EmailField(max_length=100, null=False)
nome = models.CharField(max_length=200, null=False)
cognome = models.CharField(max_length=200, null=False, default='Rossi')
def __str__(self):
return ... | 29.909091 | 75 | 0.711246 | 45 | 329 | 5.044444 | 0.622222 | 0.118943 | 0.15859 | 0.211454 | 0.317181 | 0.317181 | 0.317181 | 0 | 0 | 0 | 0 | 0.033333 | 0.179331 | 329 | 11 | 76 | 29.909091 | 0.807407 | 0.072948 | 0 | 0 | 0 | 0 | 0.016447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 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 |
4ccf84577be01cc1e95cf6e74e6f882042cb6dc7 | 179 | py | Python | 0x03-python-data_structures/8-multiple_returns.py | gogomillan/holbertonschool-higher_level_programming | 1549ffc4fdc284271684321ff6edd882a314193a | [
"MIT"
] | null | null | null | 0x03-python-data_structures/8-multiple_returns.py | gogomillan/holbertonschool-higher_level_programming | 1549ffc4fdc284271684321ff6edd882a314193a | [
"MIT"
] | null | null | null | 0x03-python-data_structures/8-multiple_returns.py | gogomillan/holbertonschool-higher_level_programming | 1549ffc4fdc284271684321ff6edd882a314193a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
def multiple_returns(sentence):
lenght = len(sentence)
if lenght == 0:
return (lenght), (None)
else:
return (lenght), (sentence[0])
| 22.375 | 38 | 0.597765 | 21 | 179 | 5.047619 | 0.666667 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.251397 | 179 | 7 | 39 | 25.571429 | 0.768657 | 0.094972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cde6212c73b8faeacad91bd4f2f9f7ebb3b922b | 228 | py | Python | src/crazy_joe/formatters/abstract_label_formatter.py | dpasse/crazy_joe | bb77b2f8ee2cfb26cd8f2c45e0f0da2c2db3f805 | [
"MIT"
] | null | null | null | src/crazy_joe/formatters/abstract_label_formatter.py | dpasse/crazy_joe | bb77b2f8ee2cfb26cd8f2c45e0f0da2c2db3f805 | [
"MIT"
] | null | null | null | src/crazy_joe/formatters/abstract_label_formatter.py | dpasse/crazy_joe | bb77b2f8ee2cfb26cd8f2c45e0f0da2c2db3f805 | [
"MIT"
] | null | null | null | from abc import ABC
from typing import List
from ..models import Label
class AbstractLabelFormatter(ABC):
@property
def total_width(self):
pass
def to_string(self, label: Label) -> List[str]:
pass
| 17.538462 | 51 | 0.675439 | 30 | 228 | 5.066667 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 228 | 12 | 52 | 19 | 0.883721 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
4ceb37845d157e3b1efc679fad6ad0e1965e465b | 762 | py | Python | Data_Structure_related/12.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | Data_Structure_related/12.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | Data_Structure_related/12.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | """12 · Min Stack"""
class MinStack:
def __init__(self):
# do intialization if necessary
self.stack = []
self.min_stack = []
"""
@param: number: An integer
@return: nothing
"""
def push(self, number):
# write your code here
self.stack.append(number)
... | 21.771429 | 58 | 0.540682 | 93 | 762 | 4.311828 | 0.311828 | 0.179551 | 0.239402 | 0.127182 | 0.167082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009843 | 0.333333 | 762 | 34 | 59 | 22.411765 | 0.777559 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.066667 | 0.466667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cecc1c1e8fdb74146af1e588c25b16ec032b748 | 445 | py | Python | fuchan/apps/posts/migrations/0002_remove_post_thumbnail_image_height_and_more.py | mezba1/DjangoIB | 86797abc5a5b5673b2b489d605f1010c61aed9b8 | [
"Unlicense"
] | null | null | null | fuchan/apps/posts/migrations/0002_remove_post_thumbnail_image_height_and_more.py | mezba1/DjangoIB | 86797abc5a5b5673b2b489d605f1010c61aed9b8 | [
"Unlicense"
] | null | null | null | fuchan/apps/posts/migrations/0002_remove_post_thumbnail_image_height_and_more.py | mezba1/DjangoIB | 86797abc5a5b5673b2b489d605f1010c61aed9b8 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.4 on 2022-05-17 17:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("posts", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="post",
name="thumbnail_image_height",
... | 20.227273 | 47 | 0.573034 | 44 | 445 | 5.636364 | 0.659091 | 0.169355 | 0.209677 | 0.241935 | 0.419355 | 0.419355 | 0.419355 | 0.419355 | 0 | 0 | 0 | 0.0625 | 0.316854 | 445 | 21 | 48 | 21.190476 | 0.753289 | 0.101124 | 0 | 0.4 | 1 | 0 | 0.170854 | 0.10804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cf80eaf2f1a4cc65fb50f3b2d4213d6ce0bec79 | 402 | py | Python | creational/singleton/singleton.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | creational/singleton/singleton.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | creational/singleton/singleton.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | class Singleton:
INSTANCE = None
init_count = 0
def __init__(self):
self.init_count += 1
@staticmethod
def get_instance():
# Uses lazy initialization for creating the singleton object
if Singleton.INSTANCE is None:
Singleton.INSTANCE = Singleton()
return... | 23.647059 | 68 | 0.646766 | 46 | 402 | 5.434783 | 0.478261 | 0.272 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.291045 | 402 | 16 | 69 | 25.125 | 0.870175 | 0.144279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 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 |
9805ff0e99aefede9fcb509094b03a458843eb54 | 281 | py | Python | docs/pyplots/scatter_plot.py | GauZen/python101 | 36a9c9f87b006f522c4bad9deed481dcc0ab418a | [
"BSD-3-Clause"
] | 1 | 2019-10-10T20:33:13.000Z | 2019-10-10T20:33:13.000Z | docs/pyplots/scatter_plot.py | GauZen/python101 | 36a9c9f87b006f522c4bad9deed481dcc0ab418a | [
"BSD-3-Clause"
] | null | null | null | docs/pyplots/scatter_plot.py | GauZen/python101 | 36a9c9f87b006f522c4bad9deed481dcc0ab418a | [
"BSD-3-Clause"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
# Generate data for the plot
r = np.random.RandomState(42)
x = r.random_sample(10)
y0 = r.random_sample(10)
y1 = r.random_sample(10)
# Generate the plot
fig, ax = plt.subplots()
ax.scatter(x, y0)
ax.scatter(x, y1)
plt.show(fig)
| 18.733333 | 31 | 0.725979 | 52 | 281 | 3.865385 | 0.5 | 0.104478 | 0.19403 | 0.223881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.145907 | 281 | 14 | 32 | 20.071429 | 0.7875 | 0.156584 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e23fa37e04d7ea4df5887c841378e40fd28984b1 | 2,464 | py | Python | Random pick with weight.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | Random pick with weight.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | Random pick with weight.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | import random
# class Solution:
# def __init__(self, w: List[int]):
# self.w = w
# def pickIndex(self) -> int:
# li = []
# total = 0
# for i in range(len(self.w)):
# total += self.w[i]
# for j in range(self.w[i]):
# li.append(i)
... | 24.888889 | 55 | 0.42289 | 329 | 2,464 | 3.027356 | 0.145897 | 0.090361 | 0.036145 | 0.066265 | 0.756024 | 0.75502 | 0.704819 | 0.60241 | 0.60241 | 0.60241 | 0 | 0.025496 | 0.426948 | 2,464 | 99 | 56 | 24.888889 | 0.679887 | 0.527597 | 0 | 0.5 | 0 | 0 | 0.007156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.027778 | 0 | 0.25 | 0.027778 | 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 |
e25c5cee9df5ba7ecef5737548b668f64f197ab4 | 523 | py | Python | app/db/repositories/coupons.py | rglsk/fastapi-sqlalchemy-1.4-async | 8666013709fa5aba78a658723f33edcf16593016 | [
"MIT"
] | 24 | 2021-10-14T23:16:14.000Z | 2022-03-25T08:57:07.000Z | app/db/repositories/coupons.py | rglsk/fastapi-sqlalchemy-1.4-async | 8666013709fa5aba78a658723f33edcf16593016 | [
"MIT"
] | 2 | 2021-11-15T21:41:45.000Z | 2022-02-18T16:13:13.000Z | app/db/repositories/coupons.py | rglsk/fastapi-sqlalchemy-1.4-async | 8666013709fa5aba78a658723f33edcf16593016 | [
"MIT"
] | 3 | 2021-11-25T19:27:23.000Z | 2022-02-28T13:56:56.000Z | from typing import Type
from app.db.repositories.base import BaseRepository
from app.db.tables.coupons import Coupon
from app.models.schema.coupons import InCouponSchema, CouponSchema
class CouponsRepository(BaseRepository[InCouponSchema, CouponSchema, Coupon]):
@property
def _in_schema(self) -> Type[InCoupo... | 26.15 | 78 | 0.739962 | 57 | 523 | 6.719298 | 0.421053 | 0.05483 | 0.046997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181644 | 523 | 19 | 79 | 27.526316 | 0.89486 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0.214286 | 0.785714 | 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 |
e26795d3aecfbbabad53bb6464588e0a202a86bb | 296 | py | Python | flask_restless_datamodel/__init__.py | maarten-dp/flask-restless-datamodel | be95da79e8892ab6c79e3b6f29475291bc7fdf97 | [
"MIT"
] | 1 | 2021-09-07T20:48:06.000Z | 2021-09-07T20:48:06.000Z | flask_restless_datamodel/__init__.py | maarten-dp/flask-restless-datamodel | be95da79e8892ab6c79e3b6f29475291bc7fdf97 | [
"MIT"
] | 5 | 2019-11-27T09:13:41.000Z | 2022-03-11T11:00:21.000Z | flask_restless_datamodel/__init__.py | maarten-dp/flask-restless-datamodel | be95da79e8892ab6c79e3b6f29475291bc7fdf97 | [
"MIT"
] | 3 | 2019-11-13T05:13:37.000Z | 2021-09-07T20:55:06.000Z | __all__ = ('__version__', 'DataModel')
from pbr.version import VersionInfo
from . import patches # noqa
from .datamodel import DataModel # noqa
# Check the PBR version module docs for other options than release_string()
__version__ = VersionInfo('flask-restless-datamodel').release_string()
| 29.6 | 75 | 0.777027 | 36 | 296 | 6 | 0.583333 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 296 | 9 | 76 | 32.888889 | 0.84375 | 0.280405 | 0 | 0 | 0 | 0 | 0.210526 | 0.114833 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e27c54b41ad6eca7343934961803b31ba6abaf75 | 663 | py | Python | Fragment_Picker/Blast/MultiBlaster.py | jferrie3/AbInitioVO-and-FastFloppyTail | 297fb21c0a7d1f2e97f8b7ea9d8e45509187603b | [
"MIT"
] | 2 | 2020-08-01T07:36:25.000Z | 2020-08-01T08:04:06.000Z | Fragment_Picker/Blast/MultiBlaster.py | jferrie3/AbInitioVO-and-FastFloppyTail | 297fb21c0a7d1f2e97f8b7ea9d8e45509187603b | [
"MIT"
] | 1 | 2020-06-19T18:54:25.000Z | 2020-08-29T19:21:38.000Z | Fragment_Picker/Blast/MultiBlaster.py | jferrie3/AbInitioVO-and-FastFloppyTail | 297fb21c0a7d1f2e97f8b7ea9d8e45509187603b | [
"MIT"
] | null | null | null | ## Run as: run MultiBlaster.py Input_files/*/*.fasta.txt
import sys, os, glob
for fasta_file in sys.argv[1:]:
print(fasta_file)
check_file = str(fasta_file.split('.')[0] + '.chk')
if os.path.isfile(check_file) == False:
os.system('cp ' + str(fasta_file) + ' ' + str(fasta_file.split('/')[1]))
os.s... | 55.25 | 151 | 0.612368 | 101 | 663 | 3.821782 | 0.39604 | 0.209845 | 0.217617 | 0.264249 | 0.38601 | 0.168394 | 0 | 0 | 0 | 0 | 0 | 0.01421 | 0.15083 | 663 | 12 | 152 | 55.25 | 0.671403 | 0.07994 | 0 | 0 | 0 | 0 | 0.133224 | 0.080592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 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 |
e2a2c0a9c8d4573caed24e2d6505205e42a19b51 | 144 | py | Python | src/tensorneko/io/__init__.py | ControlNet/tensorneko | 70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f | [
"MIT"
] | 9 | 2021-05-23T17:38:09.000Z | 2021-12-30T19:12:12.000Z | src/tensorneko/io/__init__.py | ControlNet/tensorneko | 70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f | [
"MIT"
] | null | null | null | src/tensorneko/io/__init__.py | ControlNet/tensorneko | 70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f | [
"MIT"
] | null | null | null | from .read import read
from .write import write
from .text.text_reader import json_data
__all__ = [
"read",
"write",
"json_data"
]
| 14.4 | 39 | 0.673611 | 20 | 144 | 4.5 | 0.45 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 144 | 9 | 40 | 16 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e2aa1cd4643d15c19113bd5c3e11ba30fa80aa0d | 59 | py | Python | LISTS4/NUMBER2.py | MakarFadeev/PythonTasks | 2ae18c3c6a50808f985966d3304a6af6824ce686 | [
"Apache-2.0"
] | 2 | 2020-11-13T05:59:45.000Z | 2020-11-29T09:26:20.000Z | LISTS4/NUMBER2.py | MakarFadeev/PythonTasks | 2ae18c3c6a50808f985966d3304a6af6824ce686 | [
"Apache-2.0"
] | 1 | 2020-10-29T18:14:10.000Z | 2020-10-29T18:14:10.000Z | LISTS4/NUMBER2.py | MakarFadeev/PythonTasks | 2ae18c3c6a50808f985966d3304a6af6824ce686 | [
"Apache-2.0"
] | null | null | null | array = [i * (i + 1) for i in range(1, 10)]
print(* array)
| 19.666667 | 43 | 0.542373 | 12 | 59 | 2.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0.237288 | 59 | 2 | 44 | 29.5 | 0.622222 | 0 | 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 |
2c465caae6f01b6ddba6701678d6542a8dd37630 | 442 | py | Python | parkkihubi_hel/management/commands/import_permit_areas.py | klemmari1/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 12 | 2016-11-29T15:13:10.000Z | 2021-06-12T06:45:38.000Z | parkkihubi_hel/management/commands/import_permit_areas.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 154 | 2016-11-30T09:07:58.000Z | 2022-02-12T08:29:36.000Z | parkkihubi_hel/management/commands/import_permit_areas.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 15 | 2016-11-29T19:32:48.000Z | 2022-01-05T11:31:39.000Z | from django.core.management.base import BaseCommand
from ...importers import PermitAreaImporter
class Command(BaseCommand):
help = 'Uses the PermitAreaImporter to create permit areas'
def add_arguments(self, parser):
parser.add_argument('permitted-user')
def handle(self, *args, **options):
... | 29.466667 | 64 | 0.737557 | 50 | 442 | 6.4 | 0.62 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165158 | 442 | 14 | 65 | 31.571429 | 0.867209 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2c4d2932e91e904e62fa278d9785dac871e56598 | 5,400 | py | Python | ir_datasets/datasets/antique.py | cakiki/ir_datasets | 7f9f8e9ff62e49d40383220ecc2daa250695d267 | [
"Apache-2.0"
] | 1 | 2022-01-19T11:52:29.000Z | 2022-01-19T11:52:29.000Z | ir_datasets/datasets/antique.py | mam10eks/ir_datasets | 500920e0f2db8b4b36971b274a907cb94bdaabc2 | [
"Apache-2.0"
] | null | null | null | ir_datasets/datasets/antique.py | mam10eks/ir_datasets | 500920e0f2db8b4b36971b274a907cb94bdaabc2 | [
"Apache-2.0"
] | null | null | null | import io
import ir_datasets
from ir_datasets.formats import TsvDocs, TrecQrels, TsvQueries
from ir_datasets.util import DownloadConfig, Lazy
from .base import Dataset, FilteredQueries, FilteredQrels, YamlDocumentation
__all__ = ['collection', 'subsets']
_logger = ir_datasets.log.easy()
NAME = 'antique'
DUA = ("Ple... | 71.052632 | 2,158 | 0.669259 | 609 | 5,400 | 5.862069 | 0.589491 | 0.022409 | 0.023529 | 0.028011 | 0.109244 | 0.067787 | 0.067787 | 0.067787 | 0.036975 | 0 | 0 | 0.294666 | 0.145926 | 5,400 | 75 | 2,159 | 72 | 0.479402 | 0.03537 | 0 | 0.035714 | 0 | 0 | 0.432853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.089286 | 0 | 0.160714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c61ab30601b8e4dd8386d09630170bb31eb3f2f | 1,030 | py | Python | test/test_slack_client.py | ivanpeng/craigslist-housing | 98a197dd77a7c42a5b2423748f75563e1e6a8fc8 | [
"MIT-0"
] | null | null | null | test/test_slack_client.py | ivanpeng/craigslist-housing | 98a197dd77a7c42a5b2423748f75563e1e6a8fc8 | [
"MIT-0"
] | 1 | 2021-06-01T22:55:54.000Z | 2021-06-01T22:55:54.000Z | test/test_slack_client.py | ivanpeng/craigslist-housing | 98a197dd77a7c42a5b2423748f75563e1e6a8fc8 | [
"MIT-0"
] | null | null | null | # from slackclient import SlackClient
# import json
#
# SLACK_TOKEN = "THIS IS A WRONG SLACK TOKEN"
# SLACK_CHANNEL = "#random"
#
#
# def send_slack_message(result):
# sc = SlackClient(SLACK_TOKEN)
# desc = "{0} | {1} | {2} | <{3}>".format(result["area"], result["price"], result["name"], result["url"])
# sc... | 33.225806 | 109 | 0.560194 | 130 | 1,030 | 4.276923 | 0.553846 | 0.035971 | 0.057554 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010667 | 0.271845 | 1,030 | 30 | 110 | 34.333333 | 0.730667 | 0.935922 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.033333 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c6636789612d37cc3e63dc5dd1207f4082d8459 | 598 | py | Python | oh_notebook_importer/helper.py | gedankenstuecke/jupyter-notebook-importer | 9d6daec85798da1d5b1477cac35d3c4cf46bbb4e | [
"MIT"
] | null | null | null | oh_notebook_importer/helper.py | gedankenstuecke/jupyter-notebook-importer | 9d6daec85798da1d5b1477cac35d3c4cf46bbb4e | [
"MIT"
] | 1 | 2018-06-02T20:44:57.000Z | 2018-06-02T20:46:03.000Z | oh_notebook_importer/helper.py | gedankenstuecke/jupyter-notebook-importer | 9d6daec85798da1d5b1477cac35d3c4cf46bbb4e | [
"MIT"
] | 1 | 2019-12-17T15:20:39.000Z | 2019-12-17T15:20:39.000Z | import requests
import os
import arrow
def import_notebook(notebook_url, notebook_name):
notebook_content = requests.get(notebook_url).content
if os.path.isfile(notebook_name):
notebook_name = notebook_name.replace('.ipynb',
'-{}.ipynb'.format(
... | 35.176471 | 69 | 0.489967 | 57 | 598 | 4.947368 | 0.508772 | 0.255319 | 0.212766 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.421405 | 598 | 16 | 70 | 37.375 | 0.815029 | 0 | 0 | 0 | 0 | 0 | 0.060201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
2c710a7511e16c2d24eb85efbedfed98b1e5860b | 347 | py | Python | Chapter 10/Chap10_Example10.42.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 10/Chap10_Example10.42.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 10/Chap10_Example10.42.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | #importing queue module
import queue
# creating queue object
myqueue_obj = queue.LifoQueue()
# enqueueing some value in Queue object
myqueue_obj.put('P')
myqueue_obj.put('Y')
myqueue_obj.put('T')
myqueue_obj.put('H')
myqueue_obj.put('O')
myqueue_obj.put('N')
# Queue values retrieving
while not myqueue_obj.empty():
... | 19.277778 | 39 | 0.752161 | 54 | 347 | 4.666667 | 0.5 | 0.357143 | 0.309524 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112392 | 347 | 17 | 40 | 20.411765 | 0.818182 | 0.305476 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 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 |
2c7890cfe3bc2bcc27540bf03f769342a06bc5dc | 117 | py | Python | study/curso-em-video/exercises/008.py | jhonatanmaia/python | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | [
"MIT"
] | null | null | null | study/curso-em-video/exercises/008.py | jhonatanmaia/python | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | [
"MIT"
] | null | null | null | study/curso-em-video/exercises/008.py | jhonatanmaia/python | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | [
"MIT"
] | null | null | null | n5=float(input('Digite o comprimento em metro: '))
print('A medida convertida é {}cm ou {}mm'.format(n5*100,n5*1000)) | 58.5 | 66 | 0.709402 | 21 | 117 | 3.952381 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.102564 | 117 | 2 | 66 | 58.5 | 0.695238 | 0 | 0 | 0 | 0 | 0 | 0.550847 | 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 |
2c89b808fd1b307b634e1c3687ce895524e6a772 | 1,076 | py | Python | termitolib/books/models.py | dmrib/termitolib | bca3c93758256114ccce0c81be29284cde003cf0 | [
"MIT"
] | 1 | 2017-11-24T21:38:19.000Z | 2017-11-24T21:38:19.000Z | termitolib/books/models.py | dmrib/termitolib | bca3c93758256114ccce0c81be29284cde003cf0 | [
"MIT"
] | 3 | 2021-09-07T23:49:45.000Z | 2022-02-10T12:56:39.000Z | termitolib/books/models.py | dmrib/termitolib | bca3c93758256114ccce0c81be29284cde003cf0 | [
"MIT"
] | 2 | 2017-07-28T22:38:44.000Z | 2017-08-04T01:09:10.000Z | from django.conf import settings
from django.db import models
class Book(models.Model):
registered_by = models.ForeignKey(settings.AUTH_USER_MODEL)
name = models.CharField(max_length=200, unique=True)
authors = models.TextField(max_length=500, help_text='Separate each item by comma.')
tags = mod... | 34.709677 | 93 | 0.684015 | 138 | 1,076 | 5.173913 | 0.427536 | 0.07563 | 0.12605 | 0.168067 | 0.30112 | 0.190476 | 0.190476 | 0 | 0 | 0 | 0 | 0.01867 | 0.203532 | 1,076 | 30 | 94 | 35.866667 | 0.814469 | 0 | 0 | 0 | 0 | 0 | 0.078394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.166667 | 0.958333 | 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 |
2c929a9e29a40189d982039e5d8d58e3360f9578 | 192 | py | Python | fast_aoc/__init__.py | AleksMat/fast-aoc | 0f8a02b53df1d9af6ff030b33d9b06fcec2c7233 | [
"MIT"
] | 1 | 2019-12-12T17:50:33.000Z | 2019-12-12T17:50:33.000Z | fast_aoc/__init__.py | AleksMat/fast-aoc | 0f8a02b53df1d9af6ff030b33d9b06fcec2c7233 | [
"MIT"
] | null | null | null | fast_aoc/__init__.py | AleksMat/fast-aoc | 0f8a02b53df1d9af6ff030b33d9b06fcec2c7233 | [
"MIT"
] | null | null | null | """ Init module
"""
from .parsing import parse_input
from .storage import get_common_module
__author__ = 'Matej Aleksandrov'
__email__ = 'matej.aleksandrov@gmail.com'
__version__ = '0.0.1'
| 17.454545 | 41 | 0.755208 | 25 | 192 | 5.2 | 0.76 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.130208 | 192 | 10 | 42 | 19.2 | 0.760479 | 0.057292 | 0 | 0 | 0 | 0 | 0.283237 | 0.156069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2c99f5ec5ef55203b799e6f1c0181dfaef692b63 | 1,120 | py | Python | deals/migrations/0004_auto_20210908_1811.py | ghiandFe/game_deals_backend | 3355a00ec8510bc15763b19469d6b1597ba50612 | [
"MIT"
] | null | null | null | deals/migrations/0004_auto_20210908_1811.py | ghiandFe/game_deals_backend | 3355a00ec8510bc15763b19469d6b1597ba50612 | [
"MIT"
] | null | null | null | deals/migrations/0004_auto_20210908_1811.py | ghiandFe/game_deals_backend | 3355a00ec8510bc15763b19469d6b1597ba50612 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-08 16:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deals', '0003_auto_20210904_1726'),
]
operations = [
migrations.AlterField(
model_name='deal',
name='header_img',
... | 28.717949 | 86 | 0.566964 | 118 | 1,120 | 5.237288 | 0.449153 | 0.161812 | 0.202265 | 0.234628 | 0.590615 | 0.590615 | 0.470874 | 0.347896 | 0.275081 | 0.275081 | 0 | 0.058366 | 0.311607 | 1,120 | 38 | 87 | 29.473684 | 0.743191 | 0.040179 | 0 | 0.53125 | 1 | 0 | 0.077353 | 0.021435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2bcb95d89f015d105166e9be39571c2518ab0b0 | 832 | py | Python | Ene-Jun-2020/garcia-morales-luis-fernando/1er Parcial/practica 3/Ejercicio1.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ene-Jun-2020/garcia-morales-luis-fernando/1er Parcial/practica 3/Ejercicio1.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ene-Jun-2020/garcia-morales-luis-fernando/1er Parcial/practica 3/Ejercicio1.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | from abc import abstractmethod
import copy
class Oveja(object):
@abstractmethod
def clonar():
pass
class Dolly(Oveja):
def __init__(self, nombre, tipo):
self.nombre = nombre
self.tipo = tipo
def set_nombre(self, nombre):
self.nombre = nombre
def get_nombre(se... | 26 | 61 | 0.63101 | 100 | 832 | 5.03 | 0.35 | 0.119284 | 0.095427 | 0.059642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260817 | 832 | 31 | 62 | 26.83871 | 0.817886 | 0 | 0 | 0.137931 | 0 | 0 | 0.09976 | 0.03726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.034483 | 0.068966 | 0.137931 | 0.551724 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e2c31de2817b9a50bb86a2676330c80be8d2e9e0 | 368 | py | Python | BuisnessSim/sell.py | DarkWing2009/ShulkerOS-evo | bc3925a5abac98743b7498f2546c60ed025d4277 | [
"MIT"
] | 1 | 2021-12-16T22:37:05.000Z | 2021-12-16T22:37:05.000Z | BuisnessSim/sell.py | DarkWing2009/ShulkerOS-evo | bc3925a5abac98743b7498f2546c60ed025d4277 | [
"MIT"
] | null | null | null | BuisnessSim/sell.py | DarkWing2009/ShulkerOS-evo | bc3925a5abac98743b7498f2546c60ed025d4277 | [
"MIT"
] | null | null | null | import time, os, random
def clear():
os.system("clear")
randtime=random.randint(10,30)
count=0
while count<randtime:
clear()
print("Selling")
count+=1
time.sleep(0.5)
clear()
print("Selling.")
count+=1
time.sleep(0.5)
clear()
print("Selling..")
count+=1
time.sleep(0.5)
clear()
print("Sel... | 14.72 | 30 | 0.622283 | 56 | 368 | 4.089286 | 0.339286 | 0.174672 | 0.296943 | 0.384279 | 0.615721 | 0.615721 | 0.615721 | 0.615721 | 0.615721 | 0.615721 | 0 | 0.056106 | 0.17663 | 368 | 25 | 31 | 14.72 | 0.69967 | 0 | 0 | 0.565217 | 0 | 0 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0.173913 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2d1a2a6c6ff0df6a38b85ec2bc0969d08e8327c | 4,160 | py | Python | oxtools/compute_d2.py | PHI-Case-Studies/2021-HELINA-COVID19-OSMNx-Workshop | d7e28bb37e584449af3d28969bd7b9d86dd0d427 | [
"Apache-2.0"
] | null | null | null | oxtools/compute_d2.py | PHI-Case-Studies/2021-HELINA-COVID19-OSMNx-Workshop | d7e28bb37e584449af3d28969bd7b9d86dd0d427 | [
"Apache-2.0"
] | null | null | null | oxtools/compute_d2.py | PHI-Case-Studies/2021-HELINA-COVID19-OSMNx-Workshop | d7e28bb37e584449af3d28969bd7b9d86dd0d427 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import osmnx as ox
import numpy as np
def compute_d2(test_site_gdf, G_proj):
"""Computes d2 and adds columns to testing site GeoDataFrame
Parameters
----------
test_site_gdf : GeoDataFrame
GeoDataFrame containing details about testing sites
G_proj : NetworkX MultiDigrap... | 41.6 | 95 | 0.659135 | 651 | 4,160 | 3.872504 | 0.136713 | 0.117017 | 0.174534 | 0.07616 | 0.91789 | 0.845696 | 0.754066 | 0.639429 | 0.620389 | 0.593415 | 0 | 0.009838 | 0.242548 | 4,160 | 100 | 96 | 41.6 | 0.790225 | 0.417067 | 0 | 0.044444 | 0 | 0 | 0.112739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.177778 | 0.022222 | 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 |
e2e3fb544060d44e71e6a3ea6d107229b8b2eb73 | 1,423 | py | Python | setup.py | frisellcpl/django-random-color-picker-field | 50008968ea0f89666ee84f53e0179b29e9123dc1 | [
"MIT"
] | null | null | null | setup.py | frisellcpl/django-random-color-picker-field | 50008968ea0f89666ee84f53e0179b29e9123dc1 | [
"MIT"
] | null | null | null | setup.py | frisellcpl/django-random-color-picker-field | 50008968ea0f89666ee84f53e0179b29e9123dc1 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'djangorcp',
packages = [
'djangorcp'
],
package_data={'': ['static/djangorcp/*']},
version = '1.1.1',
description = 'A color picker field for Django admin that lets you pick a color from 24 randomly generated colors or a fixed list of hex... | 33.880952 | 150 | 0.589599 | 147 | 1,423 | 5.687075 | 0.55102 | 0.159091 | 0.20933 | 0.124402 | 0.196172 | 0.131579 | 0.131579 | 0.131579 | 0.131579 | 0.131579 | 0 | 0.020154 | 0.267744 | 1,423 | 41 | 151 | 34.707317 | 0.78215 | 0 | 0 | 0.076923 | 0 | 0.051282 | 0.621223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.025641 | 0 | 0.025641 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2ef282156b75110608ab290eda3173a02b92052 | 32 | py | Python | config.py | dev-11/prolific-surveys-api | ff6a1574aadc8e36635a445dd03620b959e7e881 | [
"MIT"
] | null | null | null | config.py | dev-11/prolific-surveys-api | ff6a1574aadc8e36635a445dd03620b959e7e881 | [
"MIT"
] | null | null | null | config.py | dev-11/prolific-surveys-api | ff6a1574aadc8e36635a445dd03620b959e7e881 | [
"MIT"
] | null | null | null | DEBUG = True
PORT_NUMBER = 5005
| 10.666667 | 18 | 0.75 | 5 | 32 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.1875 | 32 | 2 | 19 | 16 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
390eed33b1097816983871c74bde2267910b49d1 | 288 | py | Python | huuto_test_helpers.py | akardes/huutonet-client | 14591ed64543f307b23971ac28fb5f55c1d7410e | [
"MIT"
] | null | null | null | huuto_test_helpers.py | akardes/huutonet-client | 14591ed64543f307b23971ac28fb5f55c1d7410e | [
"MIT"
] | null | null | null | huuto_test_helpers.py | akardes/huutonet-client | 14591ed64543f307b23971ac28fb5f55c1d7410e | [
"MIT"
] | null | null | null | import huuto
###################################################
# Helpers
###################################################
def get_random_item_id():
"""For some tests we need a random existing item"""
items = huuto.get_category_items(1)
return items['items'][0]['id']
| 22.153846 | 55 | 0.430556 | 28 | 288 | 4.25 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.131944 | 288 | 12 | 56 | 24 | 0.468 | 0.1875 | 0 | 0 | 0 | 0 | 0.056 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
392216acb26fcc74c07380d76821422db6d972e6 | 234 | py | Python | modelflow/utilities.py | ModelFlow/modelflow | c2b720b2da8bb17462baff5c00bbe942644474b0 | [
"MIT"
] | 6 | 2020-07-28T19:58:28.000Z | 2021-05-01T18:51:37.000Z | modelflow/utilities.py | ModelFlow/modelflow | c2b720b2da8bb17462baff5c00bbe942644474b0 | [
"MIT"
] | 81 | 2020-07-30T07:08:10.000Z | 2021-07-28T02:17:43.000Z | modelflow/utilities.py | ModelFlow/modelflow | c2b720b2da8bb17462baff5c00bbe942644474b0 | [
"MIT"
] | null | null | null | from types import SimpleNamespace
from math import log10, floor
def obj(**kwargs):
return SimpleNamespace(**kwargs)
def round_sig(x, sig=2):
if x == 0:
return 0
return round(x, sig-int(floor(log10(abs(x))))-1)
| 18 | 52 | 0.65812 | 36 | 234 | 4.25 | 0.555556 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043243 | 0.209402 | 234 | 12 | 53 | 19.5 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 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 |
3933509646d1b084944e1859615e56b40a60eeef | 513 | py | Python | hpotter/test/test_DB.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-08-15T09:24:20.000Z | 2021-08-15T09:24:20.000Z | hpotter/test/test_DB.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 18 | 2021-02-01T21:58:20.000Z | 2021-05-24T17:10:25.000Z | hpotter/test/test_DB.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-06-19T12:49:54.000Z | 2021-06-19T12:49:54.000Z | import unittest
from unittest.mock import mock_open, patch
from src.database import Database
from src import tables
class TestDB(unittest.TestCase):
def setup(self):
pass
def teardown(self):
pass
def test_database_string(self):
config = {'database': 'test', 'database_name': 'test.d... | 34.2 | 153 | 0.668616 | 62 | 513 | 5.354839 | 0.451613 | 0.042169 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189084 | 513 | 15 | 154 | 34.2 | 0.798077 | 0 | 0 | 0.153846 | 0 | 0 | 0.202335 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0.230769 | 0.307692 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
393a86a19c0576c7faf26db7a0800f566782db22 | 899 | py | Python | testing/regrid/testEsmfInit.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | testing/regrid/testEsmfInit.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | testing/regrid/testEsmfInit.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | #!/usr/bin/env python
import ESMP
import unittest
class Test(unittest.TestCase):
def setUp(self):
pass
def test1_pairedInitializeFinalize(self):
ESMP.ESMP_Initialize()
ESMP.ESMP_Finalize()
def test2_multipleInitializeFinalize(self):
ESMP.ESMP_Initialize()
ESMP.ESM... | 20.906977 | 61 | 0.658509 | 91 | 899 | 6.21978 | 0.417582 | 0.183746 | 0.222615 | 0.233216 | 0.390459 | 0.390459 | 0.35159 | 0.162544 | 0.162544 | 0 | 0 | 0.008824 | 0.243604 | 899 | 42 | 62 | 21.404762 | 0.823529 | 0.030033 | 0 | 0.481481 | 0 | 0 | 0.009195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0.074074 | null | null | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
393f13297366ef8391aa7fdf2f99f054064920e0 | 4,128 | py | Python | lapis/printer.py | movermeyer/lapis | 623a3fc623a7a8fa8c292912b4172787f772f807 | [
"CC0-1.0"
] | 3 | 2015-02-21T05:32:35.000Z | 2017-04-22T21:18:32.000Z | lapis/printer.py | movermeyer/lapis | 623a3fc623a7a8fa8c292912b4172787f772f807 | [
"CC0-1.0"
] | 32 | 2015-02-04T00:52:32.000Z | 2017-03-05T17:17:57.000Z | lapis/printer.py | dandesousa/Lapis | 623a3fc623a7a8fa8c292912b4172787f772f807 | [
"CC0-1.0"
] | 1 | 2018-03-05T17:16:16.000Z | 2018-03-05T17:16:16.000Z | #!/usr/bin/env python
# encoding: utf-8
import os
import sys
import importlib
try:
tc = importlib.import_module("termcolor")
except ImportError:
tc = None
class ColorFormatter(object):
def __init__(self, color_enabled):
self.__color_enabled = color_enabled
def get_color_text(self, value, c... | 36.530973 | 168 | 0.691376 | 512 | 4,128 | 5.230469 | 0.21875 | 0.082151 | 0.035848 | 0.041822 | 0.299477 | 0.23413 | 0.187453 | 0.187453 | 0.073189 | 0.038835 | 0 | 0.000898 | 0.191134 | 4,128 | 112 | 169 | 36.857143 | 0.801138 | 0.05499 | 0 | 0.151899 | 0 | 0 | 0.085847 | 0.016757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253165 | false | 0 | 0.063291 | 0.126582 | 0.518987 | 0.126582 | 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 |
1a30a499c24d6c871dd4e39a5d5203fa5cf9c268 | 69 | py | Python | src/macpie/exceptions.py | UCSFMemoryAndAging/macpie | 524ffe47c2270ef52299a893c6d28a9c21d96903 | [
"BSD-2-Clause"
] | null | null | null | src/macpie/exceptions.py | UCSFMemoryAndAging/macpie | 524ffe47c2270ef52299a893c6d28a9c21d96903 | [
"BSD-2-Clause"
] | null | null | null | src/macpie/exceptions.py | UCSFMemoryAndAging/macpie | 524ffe47c2270ef52299a893c6d28a9c21d96903 | [
"BSD-2-Clause"
] | null | null | null | class MACPieException(Exception):
"""MACPie common exception."""
| 23 | 34 | 0.724638 | 6 | 69 | 8.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 69 | 2 | 35 | 34.5 | 0.833333 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a34c1385eb56a091d102e47cc7997be38070c12 | 133 | py | Python | output/models/sun_data/attr_decl/ad_name/ad_name00109m/ad_name00109m2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/attr_decl/ad_name/ad_name00109m/ad_name00109m2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/attr_decl/ad_name/ad_name00109m/ad_name00109m2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.sun_data.attr_decl.ad_name.ad_name00109m.ad_name00109m2_xsd.ad_name00109m2 import Root
__all__ = [
"Root",
]
| 22.166667 | 105 | 0.796992 | 20 | 133 | 4.75 | 0.75 | 0.273684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.105263 | 133 | 5 | 106 | 26.6 | 0.655462 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a5f677c3f27f8f06bb7245701bb9aa4bbfd89c8 | 63 | py | Python | tests/__init__.py | maksym-taranukhin/lightning-transformers | aa7202657973b5b65c3c36eb745621043859ebc4 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | maksym-taranukhin/lightning-transformers | aa7202657973b5b65c3c36eb745621043859ebc4 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | maksym-taranukhin/lightning-transformers | aa7202657973b5b65c3c36eb745621043859ebc4 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
CACHE_PATH = Path.home() / '.cache/'
| 15.75 | 36 | 0.698413 | 9 | 63 | 4.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 63 | 3 | 37 | 21 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 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 |
1a6274a9f88506090fc06007f873e0faa4f62508 | 686 | py | Python | tournamentcontrol/competition/migrations/0024_auto_20170203_0619.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | null | null | null | tournamentcontrol/competition/migrations/0024_auto_20170203_0619.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | 28 | 2016-12-09T21:14:19.000Z | 2022-01-11T07:17:16.000Z | tournamentcontrol/competition/migrations/0024_auto_20170203_0619.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-03 06:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('competition', '0023_competition__add__match_uuid_finalize'),
]
operations = [
migra... | 24.5 | 70 | 0.575802 | 59 | 686 | 6.491525 | 0.661017 | 0.211488 | 0.24282 | 0.156658 | 0.266319 | 0.266319 | 0 | 0 | 0 | 0 | 0 | 0.042945 | 0.287172 | 686 | 27 | 71 | 25.407407 | 0.740286 | 0.099125 | 0 | 0.45 | 1 | 0 | 0.190244 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1a6f3d54d0023a89677e018bab4966522fce4dc0 | 222 | py | Python | bin/app/server/routes/hello_world.py | naustica/minimal-flask-preact | 0290ce3da0ba912c3da8e77574f8cc35612ea563 | [
"MIT"
] | 3 | 2021-06-16T11:32:38.000Z | 2021-11-08T11:08:37.000Z | bin/app/server/routes/hello_world.py | naustica/minimal-flask-preact | 0290ce3da0ba912c3da8e77574f8cc35612ea563 | [
"MIT"
] | null | null | null | bin/app/server/routes/hello_world.py | naustica/minimal-flask-preact | 0290ce3da0ba912c3da8e77574f8cc35612ea563 | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify, make_response
bp = Blueprint('hello_world', __name__, url_prefix='/api')
@bp.route('/hello_world')
def hello_world():
return make_response(jsonify(message='Hello World')), 200
| 22.2 | 61 | 0.743243 | 30 | 222 | 5.166667 | 0.633333 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0.117117 | 222 | 9 | 62 | 24.666667 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
1a830f0d644082d24a71532bbf7c4803b3e856e2 | 66 | py | Python | all/emojitations/data/root.py | idleberg/sublime-emojitations | b2b4e8ce2c33ed0f6b8d6db6085e21da4e8d895b | [
"MIT"
] | 6 | 2016-08-31T14:42:36.000Z | 2021-09-05T23:55:47.000Z | all/emojitations/data/root.py | idleberg/sublime-emojitations | b2b4e8ce2c33ed0f6b8d6db6085e21da4e8d895b | [
"MIT"
] | 1 | 2016-10-20T10:52:06.000Z | 2016-10-20T18:47:19.000Z | all/emojitations/data/root.py | idleberg/sublime-emojitations | b2b4e8ce2c33ed0f6b8d6db6085e21da4e8d895b | [
"MIT"
] | 5 | 2016-08-31T14:48:11.000Z | 2021-09-05T23:55:33.000Z | from emojitations.emojitypes import EmojiAnnotations
emoji = [
] | 22 | 52 | 0.80303 | 6 | 66 | 8.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 66 | 3 | 53 | 22 | 0.929825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46c8a677869c0dc7caea4ca8fdbe42f36ea56aa3 | 136 | py | Python | demo/lib/scikit/scikit_test.py | firstprojectfor/FPF_python | 2321aff0d5b56f787befec55917d731c8c776558 | [
"MIT"
] | 1 | 2019-05-04T01:32:06.000Z | 2019-05-04T01:32:06.000Z | demo/lib/scikit/scikit_test.py | firstprojectfor/FPF_python | 2321aff0d5b56f787befec55917d731c8c776558 | [
"MIT"
] | null | null | null | demo/lib/scikit/scikit_test.py | firstprojectfor/FPF_python | 2321aff0d5b56f787befec55917d731c8c776558 | [
"MIT"
] | null | null | null | from sklearn import linear_model
reg = linear_model.LinearRegression()
reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
print(reg.coef_)
| 17 | 44 | 0.647059 | 23 | 136 | 3.695652 | 0.565217 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077586 | 0.147059 | 136 | 7 | 45 | 19.428571 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
46ea1d1f100645d2d844d3c39ae5fcbae0ca2509 | 45 | py | Python | youtube/1.py | tanaysh7/Youtube_Inspector | 82da54dd0bc7e7dc39002b270a1ccfefefca6964 | [
"MIT"
] | 1 | 2019-01-25T16:39:23.000Z | 2019-01-25T16:39:23.000Z | youtube/1.py | tanaysh7/Youtube_Inspector | 82da54dd0bc7e7dc39002b270a1ccfefefca6964 | [
"MIT"
] | null | null | null | youtube/1.py | tanaysh7/Youtube_Inspector | 82da54dd0bc7e7dc39002b270a1ccfefefca6964 | [
"MIT"
] | 4 | 2019-01-02T11:15:35.000Z | 2021-06-18T21:59:30.000Z | f = open("test.txt", "w")
f.write("kalahdar") | 22.5 | 25 | 0.6 | 8 | 45 | 3.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 2 | 26 | 22.5 | 0.658537 | 0 | 0 | 0 | 0 | 0 | 0.369565 | 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 |
46efb9afa6d7f984293726ef029537006f80745f | 3,925 | py | Python | hiclass/metrics.py | mirand863/hiclass | 93228dfca87eb6592e76741b23e8336d02606912 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T15:00:04.000Z | 2022-03-24T15:00:04.000Z | hiclass/metrics.py | mirand863/HiClass | 49a4bcded7e0a50621f2efa79145dd2d60a87332 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T20:56:55.000Z | 2022-03-24T20:56:55.000Z | hiclass/metrics.py | mirand863/HiClass | 49a4bcded7e0a50621f2efa79145dd2d60a87332 | [
"BSD-3-Clause"
] | null | null | null | """Helper functions to compute hierarchical evaluation metrics."""
import numpy as np
from sklearn.utils import check_array
def precision(y_true: np.ndarray, y_pred: np.ndarray):
r"""
Compute precision score for hierarchical classification.
:math:`hP = \displaystyle{\frac{\sum_{i}| \alpha_i \cap \beta_i ... | 37.380952 | 95 | 0.676433 | 545 | 3,925 | 4.673395 | 0.190826 | 0.037299 | 0.050255 | 0.078524 | 0.780133 | 0.765214 | 0.725952 | 0.689831 | 0.689831 | 0.689831 | 0 | 0.003614 | 0.224459 | 3,925 | 104 | 96 | 37.740385 | 0.833114 | 0.532484 | 0 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.069767 | false | 0 | 0.046512 | 0 | 0.186047 | 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 |
2001d9acdec7b3277b3f27a4cfc9d28a6dbc1575 | 52 | py | Python | mini-scripts/Python_-_Escape_Characters_new_line.txt.py | Web-Dev-Collaborative/PYTHON_PRAC | 856f902fb43dcccae168d34ee6aacc02427a7ac6 | [
"MIT"
] | 5 | 2021-06-02T23:44:25.000Z | 2021-12-27T16:21:57.000Z | mini-scripts/Python_-_Escape_Characters_new_line.txt.py | Web-Dev-Collaborative/PYTHON_PRAC | 856f902fb43dcccae168d34ee6aacc02427a7ac6 | [
"MIT"
] | 22 | 2021-05-31T01:33:25.000Z | 2021-10-18T18:32:39.000Z | mini-scripts/Python_-_Escape_Characters_new_line.txt.py | Web-Dev-Collaborative/PYTHON_PRAC | 856f902fb43dcccae168d34ee6aacc02427a7ac6 | [
"MIT"
] | 3 | 2021-06-19T03:37:47.000Z | 2021-08-31T00:49:51.000Z | txt = "Hello\nWorld!"
print(txt)
# Author: Bryan G
| 13 | 21 | 0.653846 | 8 | 52 | 4.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 52 | 3 | 22 | 17.333333 | 0.790698 | 0.307692 | 0 | 0 | 0 | 0 | 0.382353 | 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 |
203b2e42dc9898844db25ccbaa0d85853ae4b293 | 128 | py | Python | settings.py | dlcs/river-annotations | 6545e168c11d9670515e4b4fb48d1030d2d9e71f | [
"MIT"
] | null | null | null | settings.py | dlcs/river-annotations | 6545e168c11d9670515e4b4fb48d1030d2d9e71f | [
"MIT"
] | null | null | null | settings.py | dlcs/river-annotations | 6545e168c11d9670515e4b4fb48d1030d2d9e71f | [
"MIT"
] | 1 | 2016-12-09T14:37:36.000Z | 2016-12-09T14:37:36.000Z | import os
STARSKY = os.environ.get('STARSKY')
ANNOTATION_BASE = os.environ.get('ANNOTATION_BASE')
RESOLVER = "default_resolver"
| 25.6 | 51 | 0.78125 | 17 | 128 | 5.705882 | 0.529412 | 0.185567 | 0.247423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085938 | 128 | 4 | 52 | 32 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
203f7d4fdcff30a1777462df50e249a5ccb2464f | 1,333 | py | Python | scg-spider.py | josteinstraume/python-capstone | a7cf2e3d6e0cf83686b999f9877d06446c1176af | [
"BSD-3-Clause"
] | 1 | 2017-09-01T22:54:00.000Z | 2017-09-01T22:54:00.000Z | scg-spider.py | josteinstraume/python-capstone | a7cf2e3d6e0cf83686b999f9877d06446c1176af | [
"BSD-3-Clause"
] | null | null | null | scg-spider.py | josteinstraume/python-capstone | a7cf2e3d6e0cf83686b999f9877d06446c1176af | [
"BSD-3-Clause"
] | null | null | null | import csv, requests
from BeautifulSoup import *
url = "http://sales.starcitygames.com//deckdatabase/deckshow.php?t%5BT3%5D=3&event_ID=&feedin=&start_date=01%2F01%2F1993&end_date=02%2F12%2F2017&city=&state=&country=&start=&finish=&exp=&p_first=&p_last=&simple_card_name%5B1%5D=&simple_card_name%5B2%5D=&simple_card_name%... | 70.157895 | 969 | 0.75994 | 265 | 1,333 | 3.626415 | 0.328302 | 0.099896 | 0.043704 | 0.052029 | 0.28512 | 0.031217 | 0 | 0 | 0 | 0 | 0 | 0.118288 | 0.036009 | 1,333 | 18 | 970 | 74.055556 | 0.629572 | 0.04126 | 0 | 0 | 0 | 0.083333 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.166667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
20477d63680d8abf0921a5955159cf96ddd957b3 | 691 | py | Python | alice/alice/spiders/System/Actions/LocationResolution.py | andredoumad/p3env | a8850d06755d53eb6fedd9995091dad34f1f9ccd | [
"Apache-2.0"
] | null | null | null | alice/alice/spiders/System/Actions/LocationResolution.py | andredoumad/p3env | a8850d06755d53eb6fedd9995091dad34f1f9ccd | [
"Apache-2.0"
] | null | null | null | alice/alice/spiders/System/Actions/LocationResolution.py | andredoumad/p3env | a8850d06755d53eb6fedd9995091dad34f1f9ccd | [
"Apache-2.0"
] | null | null | null |
'''
@pysnooper.snoop('parsehistory')
def getGeoTextNLP(self, string):
#places = GeoText("London is a great city")
places = GeoText(string)
return places.cities
# "London"
@pysnooper.snoop('parsehistory')
def getGeoTextNLPandCity(self, string, city):
# filter by country code
#result = geotext.GeoText('I loved... | 23.827586 | 76 | 0.726483 | 87 | 691 | 5.735632 | 0.494253 | 0.104208 | 0.156313 | 0.174349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003317 | 0.127352 | 691 | 28 | 77 | 24.678571 | 0.824212 | 1.11288 | 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 | 1 | 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 |
64443927eec2a66575ecbcbbb92709c1222b6e4e | 387 | py | Python | spells/views.py | williln/docker-hogwarts | 8fe3320202c815fa0974818fb075ca546cb13461 | [
"MIT"
] | 36 | 2018-05-24T23:32:20.000Z | 2020-08-16T19:51:06.000Z | spells/views.py | williln/docker-hogwarts | 8fe3320202c815fa0974818fb075ca546cb13461 | [
"MIT"
] | 3 | 2018-05-25T09:35:26.000Z | 2018-11-20T11:29:15.000Z | spells/views.py | williln/docker-hogwarts | 8fe3320202c815fa0974818fb075ca546cb13461 | [
"MIT"
] | 12 | 2018-05-24T23:41:55.000Z | 2021-02-03T20:03:51.000Z | from django.shortcuts import get_object_or_404, render
from .models import Spell
def list(request):
spells = Spell.objects.all()
context = {'spells': spells}
return render(request, 'spells/spell_list.html', context)
def detail(request, spell_id):
spell = get_object_or_404(Spell, pk=spell_id)
re... | 25.8 | 72 | 0.726098 | 54 | 387 | 5.018519 | 0.425926 | 0.143911 | 0.199262 | 0.103321 | 0.221402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.152455 | 387 | 14 | 73 | 27.642857 | 0.807927 | 0 | 0 | 0 | 0 | 0 | 0.147287 | 0.118863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6446ddf90f83bad31cb4f903170d69e2b3c2f9ed | 100 | py | Python | hmeasure/__init__.py | ldanov/pypkg_hmeasure | d671ce89efb3658e758ee7510b1c016ba4d989b0 | [
"MIT"
] | 1 | 2020-12-21T15:40:44.000Z | 2020-12-21T15:40:44.000Z | hmeasure/__init__.py | ldanov/pypkg_hmeasure | d671ce89efb3658e758ee7510b1c016ba4d989b0 | [
"MIT"
] | null | null | null | hmeasure/__init__.py | ldanov/pypkg_hmeasure | d671ce89efb3658e758ee7510b1c016ba4d989b0 | [
"MIT"
] | null | null | null | from .hsource import h_score
from ._version import __version__
__all__ = ['h_score', '__version__'] | 25 | 36 | 0.78 | 13 | 100 | 4.846154 | 0.538462 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 100 | 4 | 36 | 25 | 0.715909 | 0 | 0 | 0 | 0 | 0 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
64489ec8d8e7165efe7a55d796b22a94e2a82f5c | 716 | py | Python | printery/users/adapters.py | CrazyMath/printery | eb5e062dceefe7b0c1dd98053ce72881f1ef7d87 | [
"MIT"
] | null | null | null | printery/users/adapters.py | CrazyMath/printery | eb5e062dceefe7b0c1dd98053ce72881f1ef7d87 | [
"MIT"
] | null | null | null | printery/users/adapters.py | CrazyMath/printery | eb5e062dceefe7b0c1dd98053ce72881f1ef7d87 | [
"MIT"
] | null | null | null | from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
... | 35.8 | 69 | 0.756983 | 80 | 716 | 6.6125 | 0.45 | 0.062382 | 0.034026 | 0.045369 | 0.294896 | 0.294896 | 0.294896 | 0 | 0 | 0 | 0 | 0 | 0.162011 | 716 | 19 | 70 | 37.684211 | 0.881667 | 0 | 0 | 0.142857 | 0 | 0 | 0.078212 | 0.072626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.785714 | 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 |
64509e2272102c0020427811c56312799066086a | 73 | py | Python | pystratis/api/smartcontracts/__init__.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/smartcontracts/__init__.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/smartcontracts/__init__.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from .smartcontracts import SmartContracts
__all__ = ['SmartContracts']
| 18.25 | 42 | 0.808219 | 6 | 73 | 9.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 3 | 43 | 24.333333 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 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 |
64556a7a7a9eb6030ea7ae668e3927852ec4de35 | 1,200 | py | Python | 74.py | lycantropos/Project-Euler | df6c5a7e118ddd3fe3c39f4b30ad57e7d3ea853b | [
"MIT"
] | null | null | null | 74.py | lycantropos/Project-Euler | df6c5a7e118ddd3fe3c39f4b30ad57e7d3ea853b | [
"MIT"
] | null | null | null | 74.py | lycantropos/Project-Euler | df6c5a7e118ddd3fe3c39f4b30ad57e7d3ea853b | [
"MIT"
] | null | null | null | from functools import partial
from math import factorial
from typing import List
from utils import (number_to_digits,
has_n_elements)
def digits_factorials_chain(number: int) -> List[int]:
chain = [number]
while True:
digits = number_to_digits(number)
digits_factorials = ma... | 34.285714 | 71 | 0.698333 | 158 | 1,200 | 4.974684 | 0.329114 | 0.3257 | 0.240458 | 0.240458 | 0.089059 | 0.089059 | 0.089059 | 0 | 0 | 0 | 0 | 0.112646 | 0.215833 | 1,200 | 34 | 72 | 35.294118 | 0.722635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.214286 | 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 |
647c675d20da32d3dda43dced93ac7195962fea0 | 230 | py | Python | src/py310/lesson05/dict_json.py | UWPCE-Python-Course-2-Materials/py310_sp2021 | 584e37b9d96654c1241fc787d157c292301d5bf7 | [
"MIT"
] | null | null | null | src/py310/lesson05/dict_json.py | UWPCE-Python-Course-2-Materials/py310_sp2021 | 584e37b9d96654c1241fc787d157c292301d5bf7 | [
"MIT"
] | null | null | null | src/py310/lesson05/dict_json.py | UWPCE-Python-Course-2-Materials/py310_sp2021 | 584e37b9d96654c1241fc787d157c292301d5bf7 | [
"MIT"
] | 2 | 2021-06-03T02:59:49.000Z | 2021-06-14T20:42:12.000Z | import json
dictionary_variable = {'l': 'value'}
with open('file.json', 'w+') as f:
json.dump(dictionary_variable, f)
dictionary_variable = json.loads(open('file.json').read())
assert dictionary_variable == {'l': 'value'}
| 20.909091 | 58 | 0.686957 | 31 | 230 | 4.967742 | 0.516129 | 0.467532 | 0.246753 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126087 | 230 | 10 | 59 | 23 | 0.766169 | 0 | 0 | 0 | 0 | 0 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
648b443471244069639b4845c58a4fb2dfa29fee | 577 | py | Python | tests/test_not_iterating.py | thiagola92/la-deep-get | bfbefd380ff9d029c812158128b9444b94d6c42d | [
"MIT"
] | null | null | null | tests/test_not_iterating.py | thiagola92/la-deep-get | bfbefd380ff9d029c812158128b9444b94d6c42d | [
"MIT"
] | null | null | null | tests/test_not_iterating.py | thiagola92/la-deep-get | bfbefd380ff9d029c812158128b9444b94d6c42d | [
"MIT"
] | null | null | null | import unittest
from unittest import TestCase
from la_deep_get import dget
class TestNotIterating(TestCase):
def test_int(self):
assert dget(10) == 10
def test_float(self):
assert dget(10.5) == 10.5
def test_None(self):
assert dget(None) == None
def test_string(... | 20.607143 | 57 | 0.582322 | 76 | 577 | 4.210526 | 0.394737 | 0.13125 | 0.2625 | 0.1 | 0.16875 | 0.16875 | 0 | 0 | 0 | 0 | 0 | 0.038369 | 0.277296 | 577 | 28 | 58 | 20.607143 | 0.729017 | 0 | 0 | 0.111111 | 0 | 0 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
64a4899ce88990e15b1291bc5c5bd6aafaa609fc | 633 | py | Python | 73.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | 73.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | 73.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: 73
Author : anglemiku
Eamil : anglemiku.v@gmail.com
date: 2020/1/21
-------------------------------------------------
Change Activity: 2020/1/21:
-------------------------------... | 21.1 | 49 | 0.382306 | 59 | 633 | 3.915254 | 0.711864 | 0.04329 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046256 | 0.28278 | 633 | 30 | 50 | 21.1 | 0.462555 | 0.033175 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.090909 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
64bc8559e55c003d967f6b690103c4f427c9f17b | 154 | py | Python | zxc/officeapp/urls.py | shadowsmain/zxc123 | d37cf145b266a00d016f51292c5c8a7c7a61ea87 | [
"MIT"
] | 2 | 2020-10-18T16:59:22.000Z | 2020-10-18T21:03:22.000Z | zxc/officeapp/urls.py | shadowsmain/zxc123 | d37cf145b266a00d016f51292c5c8a7c7a61ea87 | [
"MIT"
] | null | null | null | zxc/officeapp/urls.py | shadowsmain/zxc123 | d37cf145b266a00d016f51292c5c8a7c7a61ea87 | [
"MIT"
] | null | null | null | import officeapp.views as officeapp
from django.urls import path
app_name = 'officeapp'
urlpatterns = [
path('', officeapp.office, name='office'),
] | 19.25 | 46 | 0.727273 | 19 | 154 | 5.842105 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149351 | 154 | 8 | 47 | 19.25 | 0.847328 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
64d22557d89c7acc930234c84552f81cdc8f3304 | 387 | py | Python | write_xyz_files.py | PNNL-CompBio/3D_Scaffold | 321a3c1d1dd478aa71f16ae78a4ee70ab00003ab | [
"BSD-2-Clause"
] | 8 | 2021-06-08T04:36:48.000Z | 2022-03-23T06:15:51.000Z | write_xyz_files.py | PNNL-CompBio/3D_Scaffold | 321a3c1d1dd478aa71f16ae78a4ee70ab00003ab | [
"BSD-2-Clause"
] | 2 | 2022-03-11T09:12:34.000Z | 2022-03-30T08:42:17.000Z | write_xyz_files.py | PNNL-CompBio/3D_Scaffold | 321a3c1d1dd478aa71f16ae78a4ee70ab00003ab | [
"BSD-2-Clause"
] | 2 | 2022-01-06T12:55:25.000Z | 2022-03-11T00:39:50.000Z | import os
import ase
from ase import io
from ase.io import read
from ase.db import connect
generated_molecules = [i.rstrip() for i in os.listdir('.') if i.endswith('.db')][0]
with connect(generated_molecules) as conn:
for i in range(conn.count()):
molecule = conn.get(i+1).toatoms()
ase.io.write(s... | 29.769231 | 88 | 0.684755 | 63 | 387 | 4.174603 | 0.555556 | 0.079848 | 0.190114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006192 | 0.165375 | 387 | 12 | 89 | 32.25 | 0.80805 | 0 | 0 | 0 | 1 | 0 | 0.028424 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
64d8997e8088e96e175cb907a7abff235dddacc4 | 920 | py | Python | pcrp/__init__.py | JustinLardinois/pcrpdev | bc89cb4e4e3e65340269e5be44f2d811ebe1760d | [
"Apache-2.0"
] | null | null | null | pcrp/__init__.py | JustinLardinois/pcrpdev | bc89cb4e4e3e65340269e5be44f2d811ebe1760d | [
"Apache-2.0"
] | null | null | null | pcrp/__init__.py | JustinLardinois/pcrpdev | bc89cb4e4e3e65340269e5be44f2d811ebe1760d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014–2015 Justin Lardinois
#
# 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 applicab... | 35.384615 | 79 | 0.684783 | 133 | 920 | 4.714286 | 0.654135 | 0.095694 | 0.041467 | 0.051037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02046 | 0.15 | 920 | 25 | 80 | 36.8 | 0.780051 | 0.802174 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
64daa279494f3d73e8349019fadc63a50a8ffcfc | 352 | py | Python | interview/views.py | DenisDolmatov2020/quest | 36e393d7c3dca4fe5563815eabd5cc808263fb21 | [
"MIT"
] | null | null | null | interview/views.py | DenisDolmatov2020/quest | 36e393d7c3dca4fe5563815eabd5cc808263fb21 | [
"MIT"
] | null | null | null | interview/views.py | DenisDolmatov2020/quest | 36e393d7c3dca4fe5563815eabd5cc808263fb21 | [
"MIT"
] | null | null | null | import datetime
from rest_framework.generics import ListAPIView
from interview.models import Interview
from interview.serializers import InterviewSerializer
class InterviewList(ListAPIView):
serializer_class = InterviewSerializer
queryset = Interview.objects.filter(date_start__lte=datetime.date.today(), date_... | 35.2 | 115 | 0.840909 | 40 | 352 | 7.2 | 0.575 | 0.090278 | 0.118056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 352 | 9 | 116 | 39.111111 | 0.902821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b3920735ef2407b34ae0055aec7cf46c5b2ee17f | 177 | py | Python | ssdpy/constants.py | glimchb/ssdpy | a5bed61ecb6e390b4b3701adf01314bbb21b6267 | [
"MIT"
] | 12 | 2020-08-08T06:20:54.000Z | 2022-03-08T15:14:31.000Z | ssdpy/constants.py | glimchb/ssdpy | a5bed61ecb6e390b4b3701adf01314bbb21b6267 | [
"MIT"
] | 46 | 2019-10-24T11:49:05.000Z | 2022-03-18T10:21:15.000Z | ssdpy/constants.py | glimchb/ssdpy | a5bed61ecb6e390b4b3701adf01314bbb21b6267 | [
"MIT"
] | 7 | 2020-07-14T13:11:55.000Z | 2022-03-09T13:51:22.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
ipv4_multicast_ip = "239.255.255.250"
ipv6_multicast_ip = "ff02::c"
| 25.285714 | 82 | 0.757062 | 25 | 177 | 4.92 | 0.84 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10828 | 0.112994 | 177 | 6 | 83 | 29.5 | 0.675159 | 0.118644 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b3d1b582ad9bb43f5b96f8c07d8257a5366c283a | 19,063 | py | Python | ukpsummarizer-be/cplex/python/docplex/docplex/mp/functional.py | avineshpvs/vldb2018-sherlock | 5e116f42f44c50bcb289be3c4b4b76e29b238c18 | [
"Apache-2.0"
] | 2 | 2019-01-13T08:41:00.000Z | 2021-03-27T22:55:10.000Z | ukpsummarizer-be/cplex/python/docplex/docplex/mp/functional.py | AIPHES/vldb2018-sherlock | 3746efa35c4c1769cc4aaeb15aeb9453564e1226 | [
"Apache-2.0"
] | null | null | null | ukpsummarizer-be/cplex/python/docplex/docplex/mp/functional.py | AIPHES/vldb2018-sherlock | 3746efa35c4c1769cc4aaeb15aeb9453564e1226 | [
"Apache-2.0"
] | 4 | 2018-11-06T16:12:55.000Z | 2019-08-21T13:22:32.000Z | # --------------------------------------------------------------------------
# Source file provided under Apache License, Version 2.0, January 2004,
# http://www.apache.org/licenses/
# (c) Copyright IBM Corp. 2015, 2016
# --------------------------------------------------------------------------
# gendoc: igno... | 34.041071 | 110 | 0.627026 | 2,477 | 19,063 | 4.444489 | 0.125555 | 0.01417 | 0.01308 | 0.013625 | 0.509674 | 0.451903 | 0.354437 | 0.317468 | 0.304932 | 0.268598 | 0 | 0.00554 | 0.280386 | 19,063 | 559 | 111 | 34.101968 | 0.796982 | 0.143629 | 0 | 0.380952 | 0 | 0 | 0.016554 | 0.010418 | 0 | 0 | 0 | 0 | 0.002801 | 1 | 0.260504 | false | 0 | 0.011204 | 0.114846 | 0.501401 | 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 |
b3d497b16e2e69d6577322a11b10b990987b11ef | 110 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/model/__init__.py | rs-ds/cookiecutter-sanic | 31395303eb3adb22e8d9244fe58240d8c20b0874 | [
"MIT"
] | 50 | 2018-11-10T20:01:00.000Z | 2022-01-28T19:35:57.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/model/__init__.py | rs-ds/cookiecutter-sanic | 31395303eb3adb22e8d9244fe58240d8c20b0874 | [
"MIT"
] | 12 | 2018-11-11T03:11:36.000Z | 2019-11-12T08:08:20.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.app_name}}/model/__init__.py | rs-ds/cookiecutter-sanic | 31395303eb3adb22e8d9244fe58240d8c20b0874 | [
"MIT"
] | 10 | 2018-11-11T01:52:30.000Z | 2020-07-09T15:19:29.000Z | {% if cookiecutter.enable_orm == 'true' -%}
from gino.ext.sanic import Gino
DATABASE = Gino()
{%- endif -%}
| 15.714286 | 43 | 0.645455 | 14 | 110 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 110 | 6 | 44 | 18.333333 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3ee8c3b0d930f39b6d7406c3b3dc95a7ac1729f | 700 | py | Python | theprojectname-venv/lib/python3.8/site-packages/prospector/profiles/__init__.py | bonnyjain/theprojectname | 981ac2bb17c9f754b0d773834819aa03ac663082 | [
"MIT"
] | null | null | null | theprojectname-venv/lib/python3.8/site-packages/prospector/profiles/__init__.py | bonnyjain/theprojectname | 981ac2bb17c9f754b0d773834819aa03ac663082 | [
"MIT"
] | null | null | null | theprojectname-venv/lib/python3.8/site-packages/prospector/profiles/__init__.py | bonnyjain/theprojectname | 981ac2bb17c9f754b0d773834819aa03ac663082 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
AUTO_LOADED_PROFILES = list(
os.path.join(*parts)
for parts in (
(".landscape.yml",),
(".landscape.yaml",),
("landscape.yml",),
("landscape.yaml",),
(".prospector.yaml",),
(".prospector.yml",),
("prospector.yaml",),
... | 28 | 44 | 0.512857 | 56 | 700 | 6.375 | 0.321429 | 0.448179 | 0.403361 | 0.369748 | 0.677871 | 0.563025 | 0.563025 | 0.563025 | 0.563025 | 0.563025 | 0 | 0.001931 | 0.26 | 700 | 24 | 45 | 29.166667 | 0.687259 | 0.03 | 0 | 0 | 0 | 0 | 0.472674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 |
37344c0e889b7719aea88c3e648b0fbc23709a09 | 1,475 | py | Python | fedlearner/data_join/customized_options.py | eddyJ/fedlearner | d31ef4b3ffe2f166dc738131359a98390c354a7c | [
"Apache-2.0"
] | 1 | 2020-03-10T07:26:07.000Z | 2020-03-10T07:26:07.000Z | fedlearner/data_join/customized_options.py | eddyJ/fedlearner | d31ef4b3ffe2f166dc738131359a98390c354a7c | [
"Apache-2.0"
] | null | null | null | fedlearner/data_join/customized_options.py | eddyJ/fedlearner | d31ef4b3ffe2f166dc738131359a98390c354a7c | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The FedLearner Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 30.102041 | 74 | 0.772881 | 215 | 1,475 | 5.018605 | 0.432558 | 0.108434 | 0.071362 | 0.029657 | 0.119555 | 0.040779 | 0 | 0 | 0 | 0 | 0 | 0.007287 | 0.162712 | 1,475 | 48 | 75 | 30.729167 | 0.866397 | 0.40339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.391304 | false | 0 | 0 | 0.173913 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
374fd4cc929bc823e87936b99906b7827ca1edcc | 1,292 | py | Python | grc-add-book-to-read.needs-auth.py | mrseanryan/goodreads-console | 0a2ad6919cd2d986c162dd8ab54e3fda91d9e692 | [
"MIT"
] | null | null | null | grc-add-book-to-read.needs-auth.py | mrseanryan/goodreads-console | 0a2ad6919cd2d986c162dd8ab54e3fda91d9e692 | [
"MIT"
] | 6 | 2020-09-06T18:58:17.000Z | 2020-09-06T19:02:17.000Z | grc-add-book-to-read.needs-auth.py | mrseanryan/goodreads-console | 0a2ad6919cd2d986c162dd8ab54e3fda91d9e692 | [
"MIT"
] | null | null | null | #! python3
"""
Add a book to to 'to read' shelf.
Requires OAuth authorization (via 'grc-authorize.py')
"""
import pdb
import requests
import xmltodict
import goodreads_api_client as gr
from rauth.service import OAuth1Service, OAuth1Session
def read_file(filename):
f = open(filename, "r")
return f.read()
... | 20.83871 | 72 | 0.722136 | 191 | 1,292 | 4.670157 | 0.429319 | 0.053812 | 0.078475 | 0.089686 | 0.116592 | 0.065022 | 0 | 0 | 0 | 0 | 0 | 0.017415 | 0.155573 | 1,292 | 61 | 73 | 21.180328 | 0.800183 | 0.178793 | 0 | 0 | 0 | 0 | 0.216603 | 0.099237 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.193548 | false | 0 | 0.16129 | 0.16129 | 0.548387 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
378164339a049f44dd45c19ea6de4e5976a60272 | 106 | py | Python | person_portfolio/apps.py | fellipegpbotelho/django-basics | d3fa4047c09f009ed250a514e3450be0a4425116 | [
"MIT"
] | null | null | null | person_portfolio/apps.py | fellipegpbotelho/django-basics | d3fa4047c09f009ed250a514e3450be0a4425116 | [
"MIT"
] | null | null | null | person_portfolio/apps.py | fellipegpbotelho/django-basics | d3fa4047c09f009ed250a514e3450be0a4425116 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PersonPortfolioConfig(AppConfig):
name = 'person_portfolio'
| 17.666667 | 39 | 0.792453 | 11 | 106 | 7.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 106 | 5 | 40 | 21.2 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 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 |
378cc1866996bb9b8e07efd5e49cd98118849f36 | 138 | py | Python | cron/today.py | gomjellie/SoongSiri | 251a8259f47e3f0a7b42faa20ea9223f125a42a2 | [
"MIT"
] | 8 | 2018-09-22T05:29:51.000Z | 2021-11-17T03:23:23.000Z | cron/today.py | gomjellie/SoongSiri | 251a8259f47e3f0a7b42faa20ea9223f125a42a2 | [
"MIT"
] | 7 | 2017-12-30T08:02:32.000Z | 2020-08-26T01:59:20.000Z | cron/today.py | gomjellie/SoongSiri | 251a8259f47e3f0a7b42faa20ea9223f125a42a2 | [
"MIT"
] | 3 | 2018-11-13T14:04:04.000Z | 2019-09-01T18:53:11.000Z | #!/home/ubuntu/soongsiri/venv/bin/python
import requests
res = requests.get("https://ssu.life/soongsiri/refresh")
print(res.status_code)
| 23 | 56 | 0.775362 | 20 | 138 | 5.3 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 138 | 5 | 57 | 27.6 | 0.815385 | 0.282609 | 0 | 0 | 0 | 0 | 0.346939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37acd7b437b4eddfe96409fa5fda142076f4a03e | 32 | py | Python | cli/libs/__init__.py | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | null | null | null | cli/libs/__init__.py | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | null | null | null | cli/libs/__init__.py | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Davide Caroselli'
| 16 | 31 | 0.78125 | 3 | 32 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 |
37af677de62267890c2855798bfda584fcfd6e57 | 95 | py | Python | sourcecode/widgets/unpack_thread.py | CC-SXF/PyMiner | d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7 | [
"MIT"
] | 2 | 2022-01-20T07:38:00.000Z | 2022-01-20T07:56:39.000Z | sourcecode/widgets/unpack_thread.py | CC-SXF/PyMiner | d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7 | [
"MIT"
] | null | null | null | sourcecode/widgets/unpack_thread.py | CC-SXF/PyMiner | d103d54eeaa5653c8f8bc03f78fd4a96e0acefe7 | [
"MIT"
] | 1 | 2022-01-11T14:29:48.000Z | 2022-01-11T14:29:48.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 29 23:47:44 2021
@author: CC-SXF
"""
| 10.555556 | 36 | 0.505263 | 15 | 95 | 3.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 0.284211 | 95 | 8 | 37 | 11.875 | 0.514706 | 0.789474 | 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 | 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 |
37b977f6da5385bc266218eacb98ce79579c1cd5 | 63 | py | Python | clitool/__version__.py | makiten/python-cli-template | 636082bcf540a379c192b70f4bfef948cb3b4f45 | [
"Apache-2.0"
] | null | null | null | clitool/__version__.py | makiten/python-cli-template | 636082bcf540a379c192b70f4bfef948cb3b4f45 | [
"Apache-2.0"
] | 3 | 2021-06-22T00:02:48.000Z | 2021-06-22T00:03:01.000Z | clitool/__version__.py | makiten/python-cli-template | 636082bcf540a379c192b70f4bfef948cb3b4f45 | [
"Apache-2.0"
] | null | null | null | import toml
__pkgname__ = 'clitool'
__version__ = '20210621'
| 10.5 | 24 | 0.746032 | 6 | 63 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0.15873 | 63 | 5 | 25 | 12.6 | 0.584906 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 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 |
37bd0521c2de37f8a7c86e86967756ba9e031932 | 502 | py | Python | trasto/model/service_ejecutor.py | pablocm83/jpardobl-trastobrain | 71ad4e759ffa58b742218eea8dce3af718ec70b6 | [
"Apache-2.0"
] | 15 | 2020-06-05T09:11:24.000Z | 2022-03-08T04:39:55.000Z | trasto/model/service_ejecutor.py | pablocm83/jpardobl-trastobrain | 71ad4e759ffa58b742218eea8dce3af718ec70b6 | [
"Apache-2.0"
] | null | null | null | trasto/model/service_ejecutor.py | pablocm83/jpardobl-trastobrain | 71ad4e759ffa58b742218eea8dce3af718ec70b6 | [
"Apache-2.0"
] | 5 | 2020-04-16T23:57:43.000Z | 2021-07-04T18:46:54.000Z | from trasto.model.entities import TareaRepositoryInterface, EstadoHumorRepositoryInterface
from trasto.model.entities import Tarea
from trasto.model.events import EventRepositoryInterface
class EjecutorInterface:
def __init__(self, humor: EstadoHumorRepositoryInterface) -> None:
pass
def listen_for_... | 33.466667 | 90 | 0.780876 | 50 | 502 | 7.64 | 0.48 | 0.078534 | 0.117801 | 0.120419 | 0.151832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157371 | 502 | 15 | 91 | 33.466667 | 0.903073 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0.3 | 0 | 0.7 | 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 |
37cbf52eebc5e0407ba5b7b2058cc358a1f9dd3c | 2,768 | py | Python | SWIM-Executables/Windows/pyinstaller-2.0 for windows/support/rthooks/pyi_rth_win32comgenpy.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | 47 | 2020-03-08T08:43:28.000Z | 2022-03-18T18:51:55.000Z | SWIM-Executables/Windows/pyinstaller-2.0 for windows/support/rthooks/pyi_rth_win32comgenpy.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | null | null | null | SWIM-Executables/Windows/pyinstaller-2.0 for windows/support/rthooks/pyi_rth_win32comgenpy.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | 16 | 2020-03-08T08:43:30.000Z | 2022-01-10T22:05:57.000Z | #
# Copyright (C) 2012, Martin Zibricky
# Copyright (C) 2005, Giovanni Bajo
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Fou... | 38.444444 | 80 | 0.768064 | 430 | 2,768 | 4.886047 | 0.474419 | 0.026178 | 0.047596 | 0.036173 | 0.051404 | 0.026654 | 0 | 0 | 0 | 0 | 0 | 0.017406 | 0.169798 | 2,768 | 71 | 81 | 38.985915 | 0.896867 | 0.823338 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
80661843a3d75901fa523fcc287e00b751bb8784 | 153 | py | Python | test/test_app.py | keysona/blog | 783e0bdbed1e4d8ec9857ee609b39c9dfb958670 | [
"MIT"
] | null | null | null | test/test_app.py | keysona/blog | 783e0bdbed1e4d8ec9857ee609b39c9dfb958670 | [
"MIT"
] | null | null | null | test/test_app.py | keysona/blog | 783e0bdbed1e4d8ec9857ee609b39c9dfb958670 | [
"MIT"
] | null | null | null | from . import TestCase
class TestApplication(TestCase):
def test_index(self):
rv = self.client.get('/')
assert b'Hello' in rv.data
| 19.125 | 34 | 0.640523 | 20 | 153 | 4.85 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24183 | 153 | 7 | 35 | 21.857143 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
808793d652df71ab3e83efc9900eea3bdba9c101 | 83 | py | Python | meup/apps.py | abheist/goldenSwan-backend | 153e16bb829f113fb429131436324631f15ae064 | [
"MIT"
] | null | null | null | meup/apps.py | abheist/goldenSwan-backend | 153e16bb829f113fb429131436324631f15ae064 | [
"MIT"
] | 9 | 2021-03-30T13:41:09.000Z | 2022-03-12T00:32:50.000Z | meup/apps.py | abheist/goldenSwan-backend | 153e16bb829f113fb429131436324631f15ae064 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MeupConfig(AppConfig):
name = 'meup'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
80d8fbae783882083bb158becc4f62e17648a0d9 | 2,609 | py | Python | Creational/Factory/02_Factory_Method.py | drbuche/python-design-patterns | 0df831dfd26a13537e8c8d7952c34814dabbaf9a | [
"MIT"
] | 10 | 2020-09-16T11:19:07.000Z | 2022-02-21T17:37:07.000Z | Creational/Factory/02_Factory_Method.py | drbuche/python-design-patterns | 0df831dfd26a13537e8c8d7952c34814dabbaf9a | [
"MIT"
] | null | null | null | Creational/Factory/02_Factory_Method.py | drbuche/python-design-patterns | 0df831dfd26a13537e8c8d7952c34814dabbaf9a | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod # Módulos que possibilitam a criação de uma classe abstrata.
"""
V - Implementação da clase abstrata 'Product'. - V
"""
class Armamento(metaclass=ABCMeta):
@abstractmethod # Método abstrato genérico que sera herdado.
def arma(self):
pass
"""
V - Varias ... | 22.110169 | 238 | 0.685703 | 310 | 2,609 | 5.648387 | 0.325806 | 0.066819 | 0.07767 | 0.068532 | 0.256996 | 0.138778 | 0.138778 | 0.138778 | 0.138778 | 0.138778 | 0 | 0.012627 | 0.210809 | 2,609 | 117 | 239 | 22.299145 | 0.837785 | 0.260636 | 0 | 0.365385 | 0 | 0 | 0.120525 | 0.01969 | 0 | 0 | 0 | 0.034188 | 0 | 1 | 0.269231 | false | 0.038462 | 0.019231 | 0.019231 | 0.519231 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
80da17ea2928966de87516f70c090fca5b47ffe3 | 2,612 | py | Python | tests/spam_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 81 | 2017-05-09T13:20:10.000Z | 2021-04-11T14:56:24.000Z | tests/spam_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 648 | 2017-05-09T13:57:07.000Z | 2021-04-27T12:44:26.000Z | tests/spam_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 137 | 2017-05-28T04:11:00.000Z | 2021-09-04T17:46:38.000Z | import queue
from tests.isolated_testcase import IsolatedTestCase
class TestSpam(IsolatedTestCase):
def setUp(self):
super().setUp()
self.testbot = self
def test_spam_callback(self):
self.testbot.assertCommand('c'*1001, 'you\'re spamming')
self.testbot.assertCommand('\n\n'*1... | 41.460317 | 79 | 0.534074 | 238 | 2,612 | 5.701681 | 0.235294 | 0.129698 | 0.247605 | 0.198968 | 0.722918 | 0.706706 | 0.588062 | 0.588062 | 0.588062 | 0.588062 | 0 | 0.027421 | 0.343798 | 2,612 | 62 | 80 | 42.129032 | 0.764294 | 0.029096 | 0 | 0.55102 | 0 | 0 | 0.200947 | 0 | 0 | 0 | 0 | 0 | 0.306122 | 1 | 0.122449 | false | 0 | 0.040816 | 0 | 0.204082 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 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 |
80e57d1865fecc827e87d27d91ac8e6141f35364 | 219 | py | Python | base_project/core/templatetags/messages.py | shibiribiu/sapucaia2019 | b3201d51f251690420814a62e09eb081dfc4b5df | [
"MIT"
] | null | null | null | base_project/core/templatetags/messages.py | shibiribiu/sapucaia2019 | b3201d51f251690420814a62e09eb081dfc4b5df | [
"MIT"
] | null | null | null | base_project/core/templatetags/messages.py | shibiribiu/sapucaia2019 | b3201d51f251690420814a62e09eb081dfc4b5df | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.inclusion_tag('core/toast_messages.html', takes_context=True)
def toast_messages(context):
return {
'messages': context['messages']
} | 24.333333 | 71 | 0.730594 | 25 | 219 | 6.24 | 0.68 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 219 | 9 | 72 | 24.333333 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
80f974496eef76e8f52aa961988743a3531a066d | 864 | py | Python | src/magic_config/loader.py | mogaiskii/magic_config | c638ffebf5174600ef9632f923da9a35820ade3f | [
"MIT"
] | null | null | null | src/magic_config/loader.py | mogaiskii/magic_config | c638ffebf5174600ef9632f923da9a35820ade3f | [
"MIT"
] | null | null | null | src/magic_config/loader.py | mogaiskii/magic_config | c638ffebf5174600ef9632f923da9a35820ade3f | [
"MIT"
] | null | null | null | import abc
from magic_config.interfaces import AbstractLoader
class BaseLoader(AbstractLoader, abc.ABC):
__available_options__ = []
__loader_name__ = ''
def __init__(self, is_readonly=False, **options):
self._options = dict(is_readonly=is_readonly)
for k,v in options.items():
... | 27 | 55 | 0.642361 | 103 | 864 | 4.912621 | 0.320388 | 0.098814 | 0.100791 | 0.086957 | 0.256917 | 0.166008 | 0.166008 | 0.166008 | 0 | 0 | 0 | 0 | 0.241898 | 864 | 31 | 56 | 27.870968 | 0.772519 | 0 | 0 | 0.095238 | 0 | 0 | 0.019676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
037e0d27f3157027a64bf30d678865c7855e048e | 605 | py | Python | dynamic_programming/is_subsequence.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | dynamic_programming/is_subsequence.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | dynamic_programming/is_subsequence.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | def is_subsequence(s, t):
chars = []
i = 0
while t and i < len(s):
sub_char = s[i]
if sub_char not in t:
return False
chars.append(sub_char)
char_idx = t.index(sub_char)
t = t[char_idx+1:]
i += 1
if ''.join(chars) == s:
return True
... | 21.607143 | 41 | 0.583471 | 85 | 605 | 3.988235 | 0.411765 | 0.306785 | 0.371681 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006608 | 0.249587 | 605 | 27 | 42 | 22.407407 | 0.740088 | 0 | 0 | 0.095238 | 0 | 0 | 0.092562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.190476 | 0.333333 | 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 |
037f8e48c5ae83658db62054cb616716691630c1 | 291 | py | Python | Python training/Week 2/9.py | tarsic99/Python_coursera | 2748a4f0c43cc21eb4c71b9494e86bc843c8e258 | [
"Apache-2.0"
] | null | null | null | Python training/Week 2/9.py | tarsic99/Python_coursera | 2748a4f0c43cc21eb4c71b9494e86bc843c8e258 | [
"Apache-2.0"
] | null | null | null | Python training/Week 2/9.py | tarsic99/Python_coursera | 2748a4f0c43cc21eb4c71b9494e86bc843c8e258 | [
"Apache-2.0"
] | null | null | null | n = int(input())
a = [1, 21, 31, 41, 51, 61, 71, 81, 91]
b = [2, 3, 4, 22, 23, 24, 32, 33, 34, 42, 43, 44, 52, 53, 54, 62, 63, 64,
72, 73, 74, 82, 83, 84, 92, 93, 94]
if n in a:
print(str(n) + " korova")
elif n in b:
print(str(n) + " korovy")
else:
print(str(n) + " korov")
| 26.454545 | 73 | 0.484536 | 62 | 291 | 2.274194 | 0.806452 | 0.170213 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32381 | 0.278351 | 291 | 10 | 74 | 29.1 | 0.347619 | 0 | 0 | 0 | 0 | 0 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 1 | 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 |
039fe7a4aaf15631d69f17bd2e184a1bbb9268a0 | 357 | py | Python | talks-articles/languages-n-runtimes/python/learnpythonthehardway/ex15.py | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 37 | 2015-02-01T23:16:39.000Z | 2021-12-22T16:50:48.000Z | talks-articles/languages-n-runtimes/python/learnpythonthehardway/ex15.py | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 1 | 2017-03-02T04:55:48.000Z | 2018-01-14T10:51:11.000Z | talks-articles/languages-n-runtimes/python/learnpythonthehardway/ex15.py | abhishekkr/tutorials_as_code | f355dc62a5025b710ac6d4a6ac2f9610265fad54 | [
"MIT"
] | 15 | 2015-03-02T08:09:01.000Z | 2021-06-10T03:25:41.000Z | # -*- coding: utf-8 -*-
# reading files
from sys import argv
script, filename = argv
txt = open(filename)
print "Content of %r" % filename
print "+" * 25
print txt.read()
print "#" * 25
print txt.read()
txt_again = open(filename)
print "=" * 25
print txt_again.read()
## if you wanna be sure exactly when/where it ... | 15.521739 | 52 | 0.67507 | 55 | 357 | 4.327273 | 0.563636 | 0.163866 | 0.151261 | 0.189076 | 0.289916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023891 | 0.179272 | 357 | 22 | 53 | 16.227273 | 0.788396 | 0.238095 | 0 | 0.153846 | 0 | 0 | 0.059925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
03a785710e0baa48ea200f8daffd53ab1617e5f1 | 108 | py | Python | USA debates/debate_analysis.py | lukaszblechar/NLP-student | 6bee2b246619cfab47a1387e02f6069a843870ef | [
"MIT"
] | null | null | null | USA debates/debate_analysis.py | lukaszblechar/NLP-student | 6bee2b246619cfab47a1387e02f6069a843870ef | [
"MIT"
] | null | null | null | USA debates/debate_analysis.py | lukaszblechar/NLP-student | 6bee2b246619cfab47a1387e02f6069a843870ef | [
"MIT"
] | null | null | null | def analysis():
debatesNew=cleanDebates()
candidateDict={}
for candidate in :
candidate
| 18 | 29 | 0.638889 | 9 | 108 | 7.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268519 | 108 | 5 | 30 | 21.6 | 0.873418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03bbfc4dd7aa38bbcfe9b40c5d840a294af8ca71 | 555 | py | Python | feedify/templates.py | epochblue/feedify | 2d1d5c7ec79cf633bbd400ba1902349a91767860 | [
"Unlicense"
] | 1 | 2021-02-01T03:19:17.000Z | 2021-02-01T03:19:17.000Z | feedify/templates.py | epochblue/feedify | 2d1d5c7ec79cf633bbd400ba1902349a91767860 | [
"Unlicense"
] | null | null | null | feedify/templates.py | epochblue/feedify | 2d1d5c7ec79cf633bbd400ba1902349a91767860 | [
"Unlicense"
] | null | null | null | RSS_FEED_TMPL = '''<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>{{site_title}}</title>
<link>{{site_url}}</link>
<description>{{site_description}}</description>
<managingEditor>{{site_author}}</managingEditor>
{{posts}}
</channel>
</rss>
'''
RSS_POST_TMPL... | 22.2 | 56 | 0.572973 | 57 | 555 | 5.333333 | 0.438596 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.2 | 555 | 24 | 57 | 23.125 | 0.675676 | 0 | 1 | 0.090909 | 0 | 0 | 0.915315 | 0.497297 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03c374546bca5948890f8ba1a1410a8224b54f85 | 17,532 | py | Python | spearmint/utils/priors.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | 6 | 2021-06-29T11:26:49.000Z | 2022-01-20T18:12:47.000Z | spearmint/utils/priors.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | null | null | null | spearmint/utils/priors.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | 9 | 2018-06-28T13:06:35.000Z | 2021-06-20T18:21:58.000Z | # -*- coding: utf-8 -*-
# Spearmint
#
# Academic and Non-Commercial Research Use Software License and Terms
# of Use
#
# Spearmint is a software package to perform Bayesian optimization
# according to specific algorithms (the “Software”). The Software is
# designed to automatically run experiments (thus the code name
... | 41.251765 | 110 | 0.716005 | 2,623 | 17,532 | 4.746474 | 0.255051 | 0.030924 | 0.017992 | 0.016867 | 0.223855 | 0.168273 | 0.113735 | 0.083534 | 0.062169 | 0.051245 | 0 | 0.008846 | 0.206879 | 17,532 | 424 | 111 | 41.349057 | 0.886516 | 0.681154 | 0 | 0.42963 | 0 | 0 | 0.03291 | 0 | 0 | 0 | 0 | 0.002358 | 0 | 1 | 0.274074 | false | 0.014815 | 0.037037 | 0.111111 | 0.62963 | 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 |
03c564eb12285ff706f9c4b4de61f140537de01f | 190 | py | Python | ICOM_simple.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 5 | 2018-10-09T13:39:31.000Z | 2020-03-26T18:39:49.000Z | ICOM_simple.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | ICOM_simple.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 2 | 2018-10-09T13:39:36.000Z | 2018-10-09T23:18:39.000Z | #!/usr/bin/python
# -*- coding= utf-8 -*-
from ICOM_P_simple import icom_main,multiprocessing
import sys
if __name__ == '__main__':
multiprocessing.freeze_support()
icom_main(sys.argv)
| 19 | 51 | 0.742105 | 26 | 190 | 4.923077 | 0.730769 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.121053 | 190 | 10 | 52 | 19 | 0.760479 | 0.2 | 0 | 0 | 0 | 0 | 0.05298 | 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 |
03c664c065aa596e0eff127654fb5d6667111fa8 | 375 | py | Python | code/editThisCommand.py | gbenelli/cms-das-pre-exercises | ec3786f0e5b756cf619e605713b5be1b1648a16c | [
"CC-BY-4.0"
] | null | null | null | code/editThisCommand.py | gbenelli/cms-das-pre-exercises | ec3786f0e5b756cf619e605713b5be1b1648a16c | [
"CC-BY-4.0"
] | 1 | 2020-11-10T14:16:33.000Z | 2020-11-10T16:52:39.000Z | code/editThisCommand.py | gbenelli/cms-das-pre-exercises | ec3786f0e5b756cf619e605713b5be1b1648a16c | [
"CC-BY-4.0"
] | 9 | 2020-11-08T21:14:51.000Z | 2021-12-22T13:25:53.000Z | #!/usr/bin/env python
import warnings
warnings.filterwarnings('ignore', category=FutureWarning)
import sys
import zlib
# Please comment the line below out by adding a '#' to the front of
# the line.
# raise RuntimeError, "You need to comment out this line with a #"
import getpass
user = getpass.getuser()
crc32 = zl... | 22.058824 | 67 | 0.733333 | 56 | 375 | 4.910714 | 0.678571 | 0.050909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.16 | 375 | 17 | 68 | 22.058824 | 0.850794 | 0.424 | 0 | 0 | 0 | 0 | 0.090047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.25 | 0.5 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
03cbc258cac87fda6efcb9a7ab76fe02b9013439 | 17,711 | py | Python | test/pynrn/test_vector_api.py | shhong/nrn | 0d64e94330c6072529e31033d579b270f742454e | [
"BSD-3-Clause"
] | null | null | null | test/pynrn/test_vector_api.py | shhong/nrn | 0d64e94330c6072529e31033d579b270f742454e | [
"BSD-3-Clause"
] | 1 | 2022-03-25T13:30:45.000Z | 2022-03-25T13:30:45.000Z | test/pynrn/test_vector_api.py | shhong/nrn | 0d64e94330c6072529e31033d579b270f742454e | [
"BSD-3-Clause"
] | 1 | 2018-12-18T13:52:16.000Z | 2018-12-18T13:52:16.000Z | import sys
import numpy as np
from neuron import h, hoc, numpy_element_ref as npyref
def copy(src, result, *args, dest=None):
if dest is None:
dest = h.Vector()
dest.copy(src, *args)
assert dest.to_python() == result
def vwrite_type(src, vtype):
f = h.File()
fname = "vwrite.{}.tmp".format... | 44.388471 | 169 | 0.560273 | 3,323 | 17,711 | 2.931989 | 0.097502 | 0.118239 | 0.038592 | 0.051729 | 0.61049 | 0.514626 | 0.443806 | 0.403572 | 0.370625 | 0.30935 | 0 | 0.217673 | 0.189148 | 17,711 | 398 | 170 | 44.5 | 0.460762 | 0.028457 | 0 | 0.148148 | 0 | 0.003086 | 0.02036 | 0 | 0 | 0 | 0 | 0 | 0.611111 | 1 | 0.009259 | false | 0 | 0.009259 | 0 | 0.018519 | 0.024691 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03ccd6fa5c918465cedd14b30de289371778e4f7 | 55 | py | Python | apps/subject/__init__.py | victory-jooyon/otlplus | 88bf72972e5d63e29355a9e60f7a5fec247b5890 | [
"MIT"
] | null | null | null | apps/subject/__init__.py | victory-jooyon/otlplus | 88bf72972e5d63e29355a9e60f7a5fec247b5890 | [
"MIT"
] | null | null | null | apps/subject/__init__.py | victory-jooyon/otlplus | 88bf72972e5d63e29355a9e60f7a5fec247b5890 | [
"MIT"
] | null | null | null | default_app_config = 'apps.subject.appss.SubjectConfig' | 55 | 55 | 0.854545 | 7 | 55 | 6.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 55 | 1 | 55 | 55 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 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 |
03d3cb3eb6c9219c491868f32c8f826f00fd3ac9 | 280 | py | Python | topic-db/topicdb/core/topicdberror.py | anthcp-infocom/Contextualise | 0136660fcb965fd70fb4c7a33de7973a69ee9fec | [
"MIT"
] | 184 | 2019-01-10T03:50:50.000Z | 2022-03-31T19:45:16.000Z | topic-db/topicdb/core/topicdberror.py | anthcp-infocom/Contextualise | 0136660fcb965fd70fb4c7a33de7973a69ee9fec | [
"MIT"
] | 11 | 2019-04-07T07:39:11.000Z | 2022-02-17T13:29:32.000Z | topic-db/topicdb/core/topicdberror.py | anthcp-infocom/Contextualise | 0136660fcb965fd70fb4c7a33de7973a69ee9fec | [
"MIT"
] | 9 | 2019-10-26T02:43:59.000Z | 2021-11-03T00:49:10.000Z | """
TopicDbError class. Part of the StoryTechnologies project.
June 15, 2016
Brett Alistair Kromkamp (brett.kromkamp@gmail.com)
"""
class TopicDbError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
| 18.666667 | 58 | 0.696429 | 34 | 280 | 5.5 | 0.676471 | 0.144385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.2 | 280 | 14 | 59 | 20 | 0.808036 | 0.442857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 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 |
03d3d5b5c2d39eb5e589c27299bf5d4eb1b5ad51 | 357 | py | Python | backend/api/apps/suite/managers.py | vivekthoppil/InsuranceSuite | 700392ee71f4afeefb4f2fb768402d4839b992e2 | [
"MIT"
] | 2 | 2021-05-20T06:11:48.000Z | 2022-02-06T16:09:54.000Z | backend/api/apps/suite/managers.py | vivekthoppil/InsuranceSuite | 700392ee71f4afeefb4f2fb768402d4839b992e2 | [
"MIT"
] | 8 | 2021-03-10T03:57:49.000Z | 2022-01-22T10:12:43.000Z | backend/api/apps/suite/managers.py | vivekthoppil/InsuranceSuite | 700392ee71f4afeefb4f2fb768402d4839b992e2 | [
"MIT"
] | null | null | null | from django.db import models
from .query import RiskTypeQuerySet
class RiskTypeManager(models.Manager):
def get_queryset(self):
return RiskTypeQuerySet(self.model, using=self.db)
def get_active(self):
return self.get_queryset().get_non_deleted()
def get_basic_info(self):
return ... | 23.8 | 58 | 0.728291 | 47 | 357 | 5.319149 | 0.468085 | 0.072 | 0.112 | 0.136 | 0.224 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179272 | 357 | 14 | 59 | 25.5 | 0.853242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
03f99e25e16e9eeca81511b8139428ecdd83f91c | 44 | py | Python | infupy/backends/__init__.py | jaj42/infupy | 5a8eda58bbeab3e0de6326dce7d206c29db85d72 | [
"ISC"
] | null | null | null | infupy/backends/__init__.py | jaj42/infupy | 5a8eda58bbeab3e0de6326dce7d206c29db85d72 | [
"ISC"
] | null | null | null | infupy/backends/__init__.py | jaj42/infupy | 5a8eda58bbeab3e0de6326dce7d206c29db85d72 | [
"ISC"
] | null | null | null | __all__ = ['common', 'fresenius', 'alaris']
| 22 | 43 | 0.636364 | 4 | 44 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.477273 | 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 |
ff155f2332e3570c476e619772d4fe462098dd8c | 345 | py | Python | tt_goods/search_indexes.py | kangbingbing/PythonWeb | b8b743196ed79dbb09a5e57e98d7bfb3169ca728 | [
"MIT"
] | 7 | 2019-01-12T14:13:13.000Z | 2022-03-18T06:28:30.000Z | tt_goods/search_indexes.py | kangbingbing/PythonWeb | b8b743196ed79dbb09a5e57e98d7bfb3169ca728 | [
"MIT"
] | 6 | 2020-02-12T01:08:49.000Z | 2022-03-11T23:25:36.000Z | tt_goods/search_indexes.py | kangbingbing/PythonWeb | b8b743196ed79dbb09a5e57e98d7bfb3169ca728 | [
"MIT"
] | 1 | 2019-12-01T03:01:42.000Z | 2019-12-01T03:01:42.000Z | # coding=utf-8
from haystack import indexes
from models import GoodsDetail
class GoodsDetailIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
def get_model(self):
return GoodsDetail
def index_queryset(self, using=None):
return self.... | 26.538462 | 63 | 0.744928 | 43 | 345 | 5.883721 | 0.697674 | 0.063241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.165217 | 345 | 13 | 64 | 26.538462 | 0.875 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2064b952f1ecb4c8d1546b3d0eb2bb207fa90ee5 | 188,593 | py | Python | Decompiler/p/scena/c0130.特别任务支援科.bin.py | the-database/EDDecompiler | 2d409b32b8be98c50bd80c18a5f4d05466a403cf | [
"MIT"
] | 1 | 2020-08-03T14:51:54.000Z | 2020-08-03T14:51:54.000Z | Decompiler/p/scena/c0130.特别任务支援科.bin.py | the-database/EDDecompiler | 2d409b32b8be98c50bd80c18a5f4d05466a403cf | [
"MIT"
] | null | null | null | Decompiler/p/scena/c0130.特别任务支援科.bin.py | the-database/EDDecompiler | 2d409b32b8be98c50bd80c18a5f4d05466a403cf | [
"MIT"
] | 3 | 2020-08-18T19:29:38.000Z | 2020-12-05T18:14:29.000Z | from ScenarioHelper import *
def main():
CreateScenaFile(
"c0130.bin", # FileName
"c0130", # MapName
"c0130", # Location
0x0009, # 特别任务支援科
"ed70150",
0x00002000, # Flag... | 25.028932 | 2,327 | 0.559909 | 22,383 | 188,593 | 4.576196 | 0.097485 | 0.117808 | 0.040858 | 0.036347 | 0.644681 | 0.591854 | 0.54592 | 0.509065 | 0.486542 | 0.447442 | 0 | 0.219525 | 0.305329 | 188,593 | 7,534 | 2,328 | 25.032254 | 0.552072 | 0.011342 | 0 | 0.489125 | 0 | 0.000171 | 0.11987 | 0.030707 | 0 | 0 | 0.116385 | 0 | 0 | 0 | null | null | 0.012331 | 0.000343 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20724e19091d265a20e1162ae3e76d7d921a2a2a | 45,717 | py | Python | contrib/py/entroq/entroq_pb2.py | shiblon/entroq | 7013da43625eaf64f7cb87bd4d991c7ae92bb39e | [
"Apache-2.0"
] | 16 | 2018-08-23T13:52:02.000Z | 2022-03-07T12:26:09.000Z | contrib/py/entroq/entroq_pb2.py | shiblon/entroq | 7013da43625eaf64f7cb87bd4d991c7ae92bb39e | [
"Apache-2.0"
] | 18 | 2019-08-02T19:29:30.000Z | 2022-02-11T19:25:38.000Z | contrib/py/entroq/entroq_pb2.py | shiblon/entroq | 7013da43625eaf64f7cb87bd4d991c7ae92bb39e | [
"Apache-2.0"
] | 4 | 2018-11-08T14:45:56.000Z | 2022-03-07T12:26:12.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: entroq.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | 39.343373 | 3,756 | 0.74445 | 5,813 | 45,717 | 5.530535 | 0.056597 | 0.048773 | 0.086286 | 0.077265 | 0.722169 | 0.672494 | 0.66478 | 0.654484 | 0.649414 | 0.609941 | 0 | 0.03803 | 0.129186 | 45,717 | 1,161 | 3,757 | 39.377261 | 0.769511 | 0.025199 | 0 | 0.687791 | 1 | 0.000932 | 0.16606 | 0.105011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00466 | 0 | 0.00466 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20757bc1816b408bae472b08da6cd9bded66a810 | 1,055 | py | Python | aoomuki_comp/app/migrations/0040_auto_20210125_1652.py | Kamelgasmi/aoomuki_competences | e02f3546f7efb54b825dbcfab968296607775903 | [
"MIT"
] | null | null | null | aoomuki_comp/app/migrations/0040_auto_20210125_1652.py | Kamelgasmi/aoomuki_competences | e02f3546f7efb54b825dbcfab968296607775903 | [
"MIT"
] | null | null | null | aoomuki_comp/app/migrations/0040_auto_20210125_1652.py | Kamelgasmi/aoomuki_competences | e02f3546f7efb54b825dbcfab968296607775903 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-25 15:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0039_auto_20210121_1754'),
]
operations = [
migrations.AlterModelOptions(
name='collaborater',
options={'verbose_name... | 27.763158 | 68 | 0.56872 | 79 | 1,055 | 7.481013 | 0.544304 | 0.274112 | 0.314721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042582 | 0.309953 | 1,055 | 37 | 69 | 28.513514 | 0.769231 | 0.042654 | 0 | 0.387097 | 1 | 0 | 0.257937 | 0.022817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2097a69b55e1a0691d5b37047d46a80caf902985 | 403 | py | Python | alcokit/toolkit.py | antoinedaurat/alcokit | e3a3a40f78fe24c962485e2a4ed0034c3ab6f1d0 | [
"MIT"
] | null | null | null | alcokit/toolkit.py | antoinedaurat/alcokit | e3a3a40f78fe24c962485e2a4ed0034c3ab6f1d0 | [
"MIT"
] | null | null | null | alcokit/toolkit.py | antoinedaurat/alcokit | e3a3a40f78fe24c962485e2a4ed0034c3ab6f1d0 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import matplotlib.pyplot as plt
from alcokit.hdf.api import Database
from alcokit.models.losses import weighted_L1
from alcokit.models.data import load
from alcokit.score import Score
from alcokit.transform.time import stretch
from alco... | 22.388889 | 60 | 0.823821 | 64 | 403 | 5.171875 | 0.46875 | 0.232628 | 0.102719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008596 | 0.133995 | 403 | 17 | 61 | 23.705882 | 0.939828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.