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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f71cf0e908bce3ed1ab483b3a9628e05629009e | 451 | py | Python | books/migrations/0002_auto_20200402_1910.py | mikkoim/booksite | 5d771265787ef23e0fee4e90dff19c609fc697d7 | [
"MIT"
] | null | null | null | books/migrations/0002_auto_20200402_1910.py | mikkoim/booksite | 5d771265787ef23e0fee4e90dff19c609fc697d7 | [
"MIT"
] | null | null | null | books/migrations/0002_auto_20200402_1910.py | mikkoim/booksite | 5d771265787ef23e0fee4e90dff19c609fc697d7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-02 16:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Review',
new_name='Reviewmodel',
... | 20.5 | 48 | 0.532151 | 42 | 451 | 5.595238 | 0.738095 | 0.178723 | 0.204255 | 0.238298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065744 | 0.359202 | 451 | 21 | 49 | 21.47619 | 0.747405 | 0.099778 | 0 | 0.266667 | 1 | 0 | 0.127937 | 0 | 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 |
0f83c562b2afb3f60691cd42dc5c76b5f8dd46e5 | 2,509 | py | Python | tests/test_wiki.py | rahuldecoded/pikachu | 372d7066d1ba719bdcc339e4db37b66a660acc57 | [
"MIT"
] | 6 | 2017-04-04T03:42:15.000Z | 2019-12-04T07:11:19.000Z | tests/test_wiki.py | rahuldecoded/pikachu | 372d7066d1ba719bdcc339e4db37b66a660acc57 | [
"MIT"
] | 13 | 2017-09-28T07:11:49.000Z | 2017-10-12T09:53:09.000Z | tests/test_wiki.py | rahuldecoded/pikachu | 372d7066d1ba719bdcc339e4db37b66a660acc57 | [
"MIT"
] | 12 | 2016-12-09T13:51:21.000Z | 2019-10-23T07:49:45.000Z | import unittest
from mock import Mock, patch
import wiki
class TestWiki(unittest.TestCase):
def setUp(self):
self.search_term = 'IRC'
self.wiki_summary = {
"title": "Internet Relay Chat",
"displaytitle": "Internet Relay Chat",
"pageid": 14730,
"extr... | 71.685714 | 684 | 0.714627 | 341 | 2,509 | 5.170088 | 0.357771 | 0.037436 | 0.042541 | 0.022689 | 0.718094 | 0.718094 | 0.685196 | 0.685196 | 0.685196 | 0.685196 | 0 | 0.009557 | 0.207652 | 2,509 | 34 | 685 | 73.794118 | 0.877264 | 0 | 0 | 0.206897 | 0 | 0.068966 | 0.601036 | 0.009167 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f86f8537a2a13d1ece94d5ec9dd17c2868ee000 | 99 | py | Python | forum/apps.py | kan12340987/Tejas-SCL-Maxo | b84fc5b13ce362b3447b6345510abef73f80941d | [
"MIT"
] | 8 | 2020-12-01T07:47:18.000Z | 2020-12-24T12:20:34.000Z | forum/apps.py | kan12340987/Tejas-SCL-Maxo | b84fc5b13ce362b3447b6345510abef73f80941d | [
"MIT"
] | 11 | 2020-12-16T07:19:33.000Z | 2021-01-15T09:58:13.000Z | forum/apps.py | kan12340987/Tejas-SCL-Maxo | b84fc5b13ce362b3447b6345510abef73f80941d | [
"MIT"
] | 14 | 2020-12-05T08:32:30.000Z | 2021-05-28T05:52:58.000Z | from django.apps import AppConfig
class DataflairDiscsforumConfig(AppConfig):
name = 'forum'
| 16.5 | 43 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 44 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 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 |
0f8d73040cea265af57b3e4eaada274f649998eb | 300 | py | Python | calculated_theoretical.py | looopTools/sw9-source | a2910ced89d26253c2df4e05d907a69823ed5e45 | [
"MIT"
] | null | null | null | calculated_theoretical.py | looopTools/sw9-source | a2910ced89d26253c2df4e05d907a69823ed5e45 | [
"MIT"
] | null | null | null | calculated_theoretical.py | looopTools/sw9-source | a2910ced89d26253c2df4e05d907a69823ed5e45 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
one_kb = 1024
def to_mega_byte(data_size):
return (data_size * one_kb) * 1024
def calculate_symbol_size(generation_size, data_size):
return data_size / generation_size
def encoding_calculate(generation_size, symbols_size):
return generation_size * symbol_size
| 20 | 54 | 0.773333 | 44 | 300 | 4.886364 | 0.431818 | 0.148837 | 0.083721 | 0.111628 | 0.204651 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031373 | 0.15 | 300 | 14 | 55 | 21.428571 | 0.811765 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.428571 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0f8fe94d9d96778ff056373a16570c0f9fbbfe0b | 1,647 | py | Python | robosuite/models/grippers/pr2_gripper.py | youngwoon/robosuite | 8f77c0ce364f88902467d011aac137bb3ffbf5cb | [
"MIT"
] | 11 | 2020-03-11T07:53:25.000Z | 2022-02-23T05:28:48.000Z | robosuite/models/grippers/pr2_gripper.py | youngwoon/robosuite | 8f77c0ce364f88902467d011aac137bb3ffbf5cb | [
"MIT"
] | null | null | null | robosuite/models/grippers/pr2_gripper.py | youngwoon/robosuite | 8f77c0ce364f88902467d011aac137bb3ffbf5cb | [
"MIT"
] | 2 | 2020-05-05T00:12:14.000Z | 2022-03-16T01:29:31.000Z | """
4 dof gripper with two fingers and its open/close variant
"""
import numpy as np
from robosuite.models.grippers import Gripper
from robosuite.utils.mjcf_utils import xml_path_completion
class PR2GripperBase(Gripper):
"""
A 4 dof gripper with two fingers.
"""
def __init__(self):
super... | 21.96 | 73 | 0.608986 | 202 | 1,647 | 4.608911 | 0.30198 | 0.103115 | 0.058002 | 0.09667 | 0.45435 | 0.283566 | 0.174006 | 0.174006 | 0.174006 | 0.103115 | 0 | 0.012048 | 0.294475 | 1,647 | 74 | 74 | 22.256757 | 0.789157 | 0.102004 | 0 | 0.288889 | 0 | 0 | 0.22404 | 0.153627 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.244444 | false | 0 | 0.066667 | 0.2 | 0.577778 | 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 |
0f9094cd2776fc36490b8314a760820251d4cc64 | 222 | py | Python | doc_cn/ui/data_provider/mnist_config.py | TarzanQll/Paddle-master | 1f192b22c641f91bd98a5babe7189ac5d7d3b408 | [
"Apache-2.0"
] | null | null | null | doc_cn/ui/data_provider/mnist_config.py | TarzanQll/Paddle-master | 1f192b22c641f91bd98a5babe7189ac5d7d3b408 | [
"Apache-2.0"
] | null | null | null | doc_cn/ui/data_provider/mnist_config.py | TarzanQll/Paddle-master | 1f192b22c641f91bd98a5babe7189ac5d7d3b408 | [
"Apache-2.0"
] | 1 | 2019-10-26T12:51:13.000Z | 2019-10-26T12:51:13.000Z | from paddle.trainer_config_helpers import *
define_py_data_sources2(train_list='train.list',
test_list=None,
module='mnist_provider',
obj='process')
| 31.714286 | 48 | 0.554054 | 22 | 222 | 5.227273 | 0.863636 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.364865 | 222 | 6 | 49 | 37 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.13964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f90e268e1939daaf88313718e7c19bc2453a2c4 | 1,101 | py | Python | srfnef/ops/geometry/pet_ecat_scanner.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/ops/geometry/pet_ecat_scanner.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | srfnef/ops/geometry/pet_ecat_scanner.py | twj2417/srf | 63365cfd75199d70eea2273214a4fa580a9fdf2a | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
'''
@author: Minghao Guo
@contact: mh.guo0111@gmail.com
@software: nef
@file: pet_ecat_scanner.py
@date: 6/28/2019
@desc:
'''
from numpy import pi
class PropertyClass:
@property
def average_radius(self):
return (self.inner_radius + self.outer_radius) / 2
@property
def axial_... | 23.934783 | 83 | 0.68574 | 161 | 1,101 | 4.434783 | 0.354037 | 0.07563 | 0.137255 | 0.117647 | 0.404762 | 0.266106 | 0.190476 | 0.112045 | 0.112045 | 0 | 0 | 0.023121 | 0.214351 | 1,101 | 45 | 84 | 24.466667 | 0.802312 | 0.158038 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.038462 | 0.307692 | 0.692308 | 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 |
7e16bc7ff234f68b4e5e86b751ac990c213243a5 | 53 | py | Python | js_values/__init__.py | carlmjohnson/django-js-values | 7601ffe3b9c6532cbd03f296c80b6777c4fb0d96 | [
"MIT"
] | null | null | null | js_values/__init__.py | carlmjohnson/django-js-values | 7601ffe3b9c6532cbd03f296c80b6777c4fb0d96 | [
"MIT"
] | null | null | null | js_values/__init__.py | carlmjohnson/django-js-values | 7601ffe3b9c6532cbd03f296c80b6777c4fb0d96 | [
"MIT"
] | null | null | null | default_app_config = 'js_values.apps.JsValuesConfig'
| 26.5 | 52 | 0.849057 | 7 | 53 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 53 | 1 | 53 | 53 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.54717 | 0.54717 | 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 |
7e4f8df63d7d1d0e40472f4fb8c2b26d802d9f3c | 225 | py | Python | server/models/twitter_lists.py | mkosler/twit-masto | 15c605041b3a92e961e47bd403ee455543af0daf | [
"MIT"
] | null | null | null | server/models/twitter_lists.py | mkosler/twit-masto | 15c605041b3a92e961e47bd403ee455543af0daf | [
"MIT"
] | 2 | 2021-03-09T09:44:07.000Z | 2021-05-09T13:51:47.000Z | server/models/twitter_lists.py | mkosler/twit-masto | 15c605041b3a92e961e47bd403ee455543af0daf | [
"MIT"
] | null | null | null | from server.models.repo import Repository
class TwitterListRepository(Repository):
'''
Twitter list table repository
'''
def __init__(self, connection):
super().__init__('twitter_list', connection)
| 20.454545 | 52 | 0.702222 | 22 | 225 | 6.772727 | 0.727273 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195556 | 225 | 10 | 53 | 22.5 | 0.823204 | 0.128889 | 0 | 0 | 0 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7e5fa08b720d9c0c634f78a0a41dab115606c53a | 133 | py | Python | bindings/python/ensmallen_graph/utils/__init__.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | 5 | 2021-02-17T00:44:45.000Z | 2021-08-09T16:41:47.000Z | bindings/python/ensmallen_graph/utils/__init__.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | 18 | 2021-01-07T16:47:39.000Z | 2021-08-12T21:51:32.000Z | bindings/python/ensmallen_graph/utils/__init__.py | caufieldjh/ensmallen_graph | 14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a | [
"MIT"
] | 3 | 2021-01-14T02:20:59.000Z | 2021-08-04T19:09:52.000Z | """Sub-module with holdouts utilities."""
from .holdouts_generator import holdouts_generator
__all__ = [
"holdouts_generator"
]
| 19 | 50 | 0.759398 | 14 | 133 | 6.714286 | 0.642857 | 0.542553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135338 | 133 | 6 | 51 | 22.166667 | 0.817391 | 0.263158 | 0 | 0 | 0 | 0 | 0.195652 | 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 |
7e70952edf57e411b0089015d35107ec0b63cbf6 | 624 | py | Python | google-datacatalog-postgresql-connector/src/google/datacatalog_connectors/postgresql/scrape/query_assembler.py | skadinyo/datacatalog-connectors-rdbms | c60f73266833111a91af13a44c6ec40524673cf1 | [
"Apache-2.0"
] | null | null | null | google-datacatalog-postgresql-connector/src/google/datacatalog_connectors/postgresql/scrape/query_assembler.py | skadinyo/datacatalog-connectors-rdbms | c60f73266833111a91af13a44c6ec40524673cf1 | [
"Apache-2.0"
] | null | null | null | google-datacatalog-postgresql-connector/src/google/datacatalog_connectors/postgresql/scrape/query_assembler.py | skadinyo/datacatalog-connectors-rdbms | c60f73266833111a91af13a44c6ec40524673cf1 | [
"Apache-2.0"
] | null | null | null | import os
from google.datacatalog_connectors.rdbms.scrape import query_assembler
class QueryAssembler(query_assembler.QueryAssembler):
def _get_refresh_statement(self, table_name):
return "ANALYZE {};".format(table_name)
def _get_path_to_num_rows_query(self):
return os.path.join(
... | 32.842105 | 72 | 0.692308 | 82 | 624 | 4.878049 | 0.414634 | 0.12 | 0.13 | 0.15 | 0.37 | 0.37 | 0.37 | 0.37 | 0.37 | 0.37 | 0 | 0 | 0.19391 | 624 | 18 | 73 | 34.666667 | 0.795229 | 0 | 0 | 0.307692 | 0 | 0 | 0.097756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.230769 | 0.692308 | 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 |
7e90aa2b7108e4fd83bd2df5a8ca896f26d11734 | 325 | py | Python | ssz/sedes/byte.py | cburgdorf/py-ssz | d8db8e8d388b3778e6737b90df1617cfff518c58 | [
"MIT"
] | null | null | null | ssz/sedes/byte.py | cburgdorf/py-ssz | d8db8e8d388b3778e6737b90df1617cfff518c58 | [
"MIT"
] | null | null | null | ssz/sedes/byte.py | cburgdorf/py-ssz | d8db8e8d388b3778e6737b90df1617cfff518c58 | [
"MIT"
] | null | null | null | from ssz.sedes.base import (
BasicSedes,
)
class Byte(BasicSedes[bytes, bytes]):
def __init__(self) -> None:
super().__init__(1)
def serialize_content(self, value: bytes) -> bytes:
return value
def deserialize_content(self, content: bytes) -> bytes:
return content
byte = By... | 18.055556 | 59 | 0.64 | 38 | 325 | 5.210526 | 0.526316 | 0.151515 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.243077 | 325 | 17 | 60 | 19.117647 | 0.800813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e9a9bf0417d548faa42f2406abe6ec9e71b1c1a | 759 | py | Python | seagulls-rpg-demo/src/seagulls/rpg_demo/_cli_plugin.py | codeghetti/seagulls-py | fd406a762b63368130125547f53e30672cec6754 | [
"MIT"
] | 2 | 2021-10-17T22:06:30.000Z | 2022-02-10T03:15:56.000Z | seagulls-rpg-demo/src/seagulls/rpg_demo/_cli_plugin.py | codeghetti/seagulls-py | fd406a762b63368130125547f53e30672cec6754 | [
"MIT"
] | 80 | 2021-10-10T23:45:30.000Z | 2022-03-24T05:18:38.000Z | seagulls-rpg-demo/src/seagulls/rpg_demo/_cli_plugin.py | codeghetti/seagulls-py | fd406a762b63368130125547f53e30672cec6754 | [
"MIT"
] | null | null | null | from seagulls.app import ISeagullsApplicationPlugin
from seagulls.cli import CliRequestRegistrationEvent, ICliCommand
from seagulls.seagulls_cli import SeagullsCliApplication
class RpgDemoCliPlugin(ISeagullsApplicationPlugin):
_application: SeagullsCliApplication
_command: ICliCommand
def __init__(self,... | 36.142857 | 87 | 0.787879 | 67 | 759 | 8.597015 | 0.358209 | 0.0625 | 0.059028 | 0.177083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152833 | 759 | 20 | 88 | 37.95 | 0.895801 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0e388a0d0cb7194e6dbf73baeef00ca20fef219e | 510 | py | Python | pystats/_discrete/mode.py | Danielto1404/pystats | 981597527be9055702312d78f130b5cd3b409219 | [
"MIT"
] | null | null | null | pystats/_discrete/mode.py | Danielto1404/pystats | 981597527be9055702312d78f130b5cd3b409219 | [
"MIT"
] | null | null | null | pystats/_discrete/mode.py | Danielto1404/pystats | 981597527be9055702312d78f130b5cd3b409219 | [
"MIT"
] | null | null | null | from collections import Counter
class ModeResult:
def __init__(self, array):
counts = Counter(array)
most_common = max(counts.values())
self.modes, self.counts = [], []
for k, v in filter(lambda kv: kv[1] == most_common, counts.items()):
self.modes.append(k)
... | 26.842105 | 80 | 0.615686 | 62 | 510 | 4.903226 | 0.483871 | 0.088816 | 0.085526 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.245098 | 510 | 18 | 81 | 28.333333 | 0.787013 | 0 | 0 | 0 | 0 | 0 | 0.060784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0e4b0804b8af6e466d9756b88a9a7784717a5602 | 99,993 | py | Python | administracao/migrations/0001_initial.py | bcunhasa/nutriodonto | 3ff20377bc85bc4960619f63688b7732e6eebba9 | [
"CC0-1.0"
] | null | null | null | administracao/migrations/0001_initial.py | bcunhasa/nutriodonto | 3ff20377bc85bc4960619f63688b7732e6eebba9 | [
"CC0-1.0"
] | null | null | null | administracao/migrations/0001_initial.py | bcunhasa/nutriodonto | 3ff20377bc85bc4960619f63688b7732e6eebba9 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.2.3 on 2019-09-16 04:58
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='... | 242.113801 | 1,074 | 0.641435 | 15,308 | 99,993 | 4.118043 | 0.094656 | 0.059503 | 0.049969 | 0.094338 | 0.695617 | 0.67141 | 0.649217 | 0.615175 | 0.54958 | 0.522232 | 0 | 0.053761 | 0.178533 | 99,993 | 412 | 1,075 | 242.701456 | 0.713687 | 0.00045 | 0 | 0.116049 | 1 | 0.197531 | 0.515919 | 0.005103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002469 | 0.009877 | 0 | 0.019753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e5a90659e8a79ee4aa1a57ecf012399b9832f5c | 384 | py | Python | tests/test_validate.py | local-minimum/pluggie | 526944f2741f8c04e9444fcbdbf6460aaf0e6438 | [
"MIT"
] | null | null | null | tests/test_validate.py | local-minimum/pluggie | 526944f2741f8c04e9444fcbdbf6460aaf0e6438 | [
"MIT"
] | null | null | null | tests/test_validate.py | local-minimum/pluggie | 526944f2741f8c04e9444fcbdbf6460aaf0e6438 | [
"MIT"
] | null | null | null | from inspect import signature
import pytest
from pluggie import validate
def func1(a, b, c=4, d=5):
pass
def func2(a, c=3, d=2):
pass
def func3(a, b, d=2):
pass
@pytest.mark.parametrize("func", (func2, func3))
def test_missing_args_raises(func):
with pytest.raises(validate.SignatureError):
... | 16 | 66 | 0.695313 | 58 | 384 | 4.534483 | 0.5 | 0.015209 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034921 | 0.179688 | 384 | 23 | 67 | 16.695652 | 0.8 | 0 | 0 | 0.230769 | 0 | 0 | 0.010417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.230769 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0e5d0dc234b39484ef0d6bab0bb1056447b3d76b | 56 | py | Python | glueball/glueball.py | glueball-css/glueball | 88ca97a9789246a86d19d2eb20838e77647f0cff | [
"MIT"
] | null | null | null | glueball/glueball.py | glueball-css/glueball | 88ca97a9789246a86d19d2eb20838e77647f0cff | [
"MIT"
] | null | null | null | glueball/glueball.py | glueball-css/glueball | 88ca97a9789246a86d19d2eb20838e77647f0cff | [
"MIT"
] | null | null | null | from glueball import StyleSheet
sheet = StyleSheet()
| 9.333333 | 31 | 0.767857 | 6 | 56 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 56 | 5 | 32 | 11.2 | 0.934783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0e7350186da91fa8f9b7bc52de5f24274816f7e2 | 470 | py | Python | Smartiome/Auxillaries/SystemManager.py | andywang0625/Smartiome | 882f1f8d2b9a88fe615db66ed71d983a55871989 | [
"MIT"
] | 5 | 2019-04-16T09:11:48.000Z | 2021-05-27T13:28:34.000Z | Smartiome/Auxillaries/SystemManager.py | andywang0625/Smartiome | 882f1f8d2b9a88fe615db66ed71d983a55871989 | [
"MIT"
] | 1 | 2019-04-20T06:49:08.000Z | 2020-04-22T21:32:24.000Z | Smartiome/Auxillaries/SystemManager.py | andywang0625/Smartiome | 882f1f8d2b9a88fe615db66ed71d983a55871989 | [
"MIT"
] | null | null | null | import sys
import platform
SYSTEMVERSION = "April(Beta)"
def getSystemVersion():
return SYSTEMVERSION
def getLastSupportedVersion():
return SYSTEMVERSION
def getPythonVersionInfo():
a = sys.version.split(" ", maxsplit=1)
b = a[1].split(")", maxsplit=1)
c = b[1].split("[")
verstr = a[0]
d... | 20.434783 | 42 | 0.653191 | 53 | 470 | 5.792453 | 0.471698 | 0.123779 | 0.143322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01847 | 0.193617 | 470 | 22 | 43 | 21.363636 | 0.791557 | 0 | 0 | 0.117647 | 0 | 0 | 0.034043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.176471 | 0.588235 | 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 |
0e7b2fb6449bd8ed8d11ec37f8f03745443f60bd | 13,258 | py | Python | contrib/tools/python/src/Lib/plat-mac/Carbon/Sound.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | python/src/Lib/plat-mac/Carbon/Sound.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | python/src/Lib/plat-mac/Carbon/Sound.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | # Generated from 'Sound.h'
def FOUR_CHAR_CODE(x): return x
soundListRsrc = FOUR_CHAR_CODE('snd ')
kSimpleBeepID = 1
# rate48khz = (long)0xBB800000
# rate44khz = (long)0xAC440000
rate32khz = 0x7D000000
rate22050hz = 0x56220000
rate22khz = 0x56EE8BA3
rate16khz = 0x3E800000
rate11khz = 0x2B7745D1
rate11025hz = 0x2B110000... | 33.062344 | 54 | 0.804194 | 1,377 | 13,258 | 7.487291 | 0.494553 | 0.136566 | 0.20485 | 0.004656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064163 | 0.098356 | 13,258 | 400 | 55 | 33.145 | 0.79831 | 0.008749 | 0 | 0 | 1 | 0 | 0.053285 | 0 | 0 | 0 | 0.039278 | 0 | 0 | 0 | null | null | 0.002532 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e7c9a8045b65aa8de2194de577f070e6d3ffc3c | 784 | py | Python | icpc/2019-9-17/E.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2019-9-17/E.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2019-9-17/E.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #!/usr/bin/env python
P = [2
,3
,5
,7
,11
,13
,17
,19
,23
,29
,31
,37
,41
,43
,47
,53
,59
,61
,67
,71
,73
,79
,83
,89
,97
,101
,103
,107
,109
,113
,127
,131
,137
,139
,149
,151
,157
,163
,167
,173
,179
,181
,191
,193
,197
,199
,211
,223
,227
,229
,233
,239
,241
,251
,257
,263
,269
,271
,277
,281
,283
,293
,307
,311
,... | 6.700855 | 57 | 0.556122 | 149 | 784 | 2.90604 | 0.838926 | 0.027714 | 0.050808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.47089 | 0.255102 | 784 | 116 | 58 | 6.758621 | 0.270548 | 0.02551 | 0 | 0 | 0 | 0 | 0.001311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009009 | null | null | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e88cb4b12e4639a956e3902cceec940ba6d0d6c | 162 | py | Python | Jeanine/my_data_file_room.py | ArtezGDA/text-IO | b9ed7f2433c0eda08fb45d125ea22a5fdeaef667 | [
"MIT"
] | null | null | null | Jeanine/my_data_file_room.py | ArtezGDA/text-IO | b9ed7f2433c0eda08fb45d125ea22a5fdeaef667 | [
"MIT"
] | null | null | null | Jeanine/my_data_file_room.py | ArtezGDA/text-IO | b9ed7f2433c0eda08fb45d125ea22a5fdeaef667 | [
"MIT"
] | null | null | null | my_data_room = { 'address': "Heemskerckstraat 1", 'postcode': 6828, 'city': "Arnhem", 'surface': 20,'ceiling height':2, 'doors': 2, 'windows':2, 'roomates':3 } | 162 | 162 | 0.641975 | 21 | 162 | 4.857143 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077465 | 0.123457 | 162 | 1 | 162 | 162 | 0.640845 | 0 | 0 | 0 | 0 | 0 | 0.515337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ea2a76f3b49d668070d10c5df647c8462c80d66 | 137 | py | Python | Concursera - USP/Semana 5/Fatorial.py | Pablopfrj/Cursos-de-Python | 805f1fa42d41e842df66d24420fed0f5c0cdc740 | [
"MIT"
] | null | null | null | Concursera - USP/Semana 5/Fatorial.py | Pablopfrj/Cursos-de-Python | 805f1fa42d41e842df66d24420fed0f5c0cdc740 | [
"MIT"
] | null | null | null | Concursera - USP/Semana 5/Fatorial.py | Pablopfrj/Cursos-de-Python | 805f1fa42d41e842df66d24420fed0f5c0cdc740 | [
"MIT"
] | null | null | null | def fat (n):
fat = 1
while (n > 1):
fat = fat * n
n -= 1
return fat
def test_fat0 ():
assert fat (0)==1 | 15.222222 | 21 | 0.430657 | 22 | 137 | 2.636364 | 0.454545 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.430657 | 137 | 9 | 22 | 15.222222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ea45d5cf08a0b651d075d23d972fdde4063b99e | 199 | py | Python | tests/web/WebTestCase.py | manistal/taskobra | 3cf30a495c41cf3a31709bb2435f940b739ed852 | [
"MIT"
] | null | null | null | tests/web/WebTestCase.py | manistal/taskobra | 3cf30a495c41cf3a31709bb2435f940b739ed852 | [
"MIT"
] | 43 | 2020-02-06T22:23:42.000Z | 2020-04-29T23:56:43.000Z | tests/web/WebTestCase.py | manistal/taskobra | 3cf30a495c41cf3a31709bb2435f940b739ed852 | [
"MIT"
] | 2 | 2020-02-06T21:01:42.000Z | 2020-02-06T23:43:11.000Z | from unittest import TestCase
from taskobra.web import create_app
class WebTestCase(TestCase):
def setUp(self):
self.app = create_app()
def tearDown(self):
self.app = None
| 18.090909 | 35 | 0.683417 | 26 | 199 | 5.153846 | 0.576923 | 0.134328 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236181 | 199 | 10 | 36 | 19.9 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0eae72bb1915f5d21ef115dbdcaba0976a954e5b | 65,895 | py | Python | opac/tests/test_controller.py | patymori/opac | 26f51fd6bdaad0eb1478cfdd384ce98871fe000e | [
"BSD-2-Clause"
] | null | null | null | opac/tests/test_controller.py | patymori/opac | 26f51fd6bdaad0eb1478cfdd384ce98871fe000e | [
"BSD-2-Clause"
] | null | null | null | opac/tests/test_controller.py | patymori/opac | 26f51fd6bdaad0eb1478cfdd384ce98871fe000e | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
from unittest.mock import patch
from werkzeug.security import check_password_hash
from .base import BaseTestCase
from webapp import controllers, dbsql, utils as ut
from flask_babelex import lazy_gettext as __
from . import utils
class JournalControllerTestCase(BaseTestCase):
def _make_one(se... | 36.186161 | 110 | 0.600197 | 7,138 | 65,895 | 5.208882 | 0.068226 | 0.066647 | 0.037573 | 0.032006 | 0.809069 | 0.763428 | 0.716522 | 0.676797 | 0.623033 | 0.567333 | 0 | 0.032751 | 0.27993 | 65,895 | 1,820 | 111 | 36.206044 | 0.750848 | 0.126322 | 0 | 0.538793 | 0 | 0.000862 | 0.137513 | 0.003979 | 0 | 0 | 0 | 0 | 0.137069 | 1 | 0.10431 | false | 0.005172 | 0.005172 | 0 | 0.121552 | 0.00431 | 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 |
7eb97fe2b990b21f9c352675cf3055d78941882f | 20,031 | py | Python | disturbance/tests/test_proposal_apiary_site_transfer_workflow.py | thakurpriya1990/disturbance | 47f9ce5ae5f1b02d97ace11f1041e96daf7e4556 | [
"Apache-2.0"
] | 1 | 2020-06-30T04:47:42.000Z | 2020-06-30T04:47:42.000Z | disturbance/tests/test_proposal_apiary_site_transfer_workflow.py | thakurpriya1990/disturbance | 47f9ce5ae5f1b02d97ace11f1041e96daf7e4556 | [
"Apache-2.0"
] | 16 | 2020-03-11T08:25:46.000Z | 2022-03-02T08:14:40.000Z | disturbance/tests/test_proposal_apiary_site_transfer_workflow.py | thakurpriya1990/disturbance | 47f9ce5ae5f1b02d97ace11f1041e96daf7e4556 | [
"Apache-2.0"
] | 9 | 2020-01-30T17:37:38.000Z | 2021-09-30T02:22:24.000Z | from disturbance.settings import HTTP_HOST_FOR_TEST
from disturbance.tests.test_setup import APITestSetup
import json
from disturbance.components.proposals.models import (
Proposal,
ApiarySite,
ProposalStandardRequirement,
)
from disturbance.components.approvals.models import ApiarySiteO... | 44.218543 | 125 | 0.598522 | 2,105 | 20,031 | 5.285036 | 0.08076 | 0.053933 | 0.044944 | 0.022921 | 0.841978 | 0.762337 | 0.704449 | 0.610067 | 0.550202 | 0.473348 | 0 | 0.019984 | 0.313015 | 20,031 | 452 | 126 | 44.316372 | 0.78846 | 0.08387 | 0 | 0.360215 | 0 | 0 | 0.108577 | 0.041211 | 0 | 0 | 0 | 0 | 0.040323 | 1 | 0.002688 | false | 0.016129 | 0.016129 | 0 | 0.021505 | 0.091398 | 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 |
7ef2ac49f1147db2f5b85fad6102ca3eb87a3866 | 2,647 | py | Python | tests/test_is_slug.py | alvistack/daveoncode-python-string-utils | 78929d88d90b1f90cb4837528ed955166bf0f559 | [
"MIT"
] | 3 | 2020-08-20T10:27:13.000Z | 2021-11-02T20:28:16.000Z | tests/test_is_slug.py | alvistack/daveoncode-python-string-utils | 78929d88d90b1f90cb4837528ed955166bf0f559 | [
"MIT"
] | null | null | null | tests/test_is_slug.py | alvistack/daveoncode-python-string-utils | 78929d88d90b1f90cb4837528ed955166bf0f559 | [
"MIT"
] | null | null | null | from unittest import TestCase
from string_utils import is_slug
class IsSlugTestCase(TestCase):
def test_non_string_objects_return_false(self):
# noinspection PyTypeChecker
self.assertFalse(is_slug(1))
# noinspection PyTypeChecker
self.assertFalse(is_slug(['xx']))
# noins... | 35.293333 | 70 | 0.652815 | 342 | 2,647 | 4.766082 | 0.204678 | 0.15092 | 0.302454 | 0.37362 | 0.728834 | 0.620245 | 0.490184 | 0.432515 | 0.432515 | 0.432515 | 0 | 0.005663 | 0.199471 | 2,647 | 74 | 71 | 35.77027 | 0.763568 | 0.060824 | 0 | 0.173077 | 0 | 0 | 0.12263 | 0 | 0 | 0 | 0 | 0 | 0.769231 | 1 | 0.173077 | false | 0 | 0.038462 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ef343896f021eec67b03c3bf0bde08a03719b64 | 889 | py | Python | db/migrations/0001_initial.py | ravshanyusupov/zz_repo | e38619901e2b7a38399f728afcbc214da419d492 | [
"MIT",
"Unlicense"
] | null | null | null | db/migrations/0001_initial.py | ravshanyusupov/zz_repo | e38619901e2b7a38399f728afcbc214da419d492 | [
"MIT",
"Unlicense"
] | null | null | null | db/migrations/0001_initial.py | ravshanyusupov/zz_repo | e38619901e2b7a38399f728afcbc214da419d492 | [
"MIT",
"Unlicense"
] | null | null | null | # Generated by Django 3.2.9 on 2022-02-21 00:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Register',
fields=[
('id', models.AutoField... | 31.75 | 114 | 0.574803 | 92 | 889 | 5.413043 | 0.576087 | 0.180723 | 0.216867 | 0.289157 | 0.325301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052215 | 0.289089 | 889 | 27 | 115 | 32.925926 | 0.735759 | 0.050619 | 0 | 0 | 1 | 0 | 0.079572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.25 | 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 |
7ef4d517758383d5a8d530038aecdc2be1d39b0d | 236 | py | Python | setup.py | Fortunoxx/AdventOfCode2021 | e49814c53273eb74e3039ad8caed17e2902c2cda | [
"MIT"
] | null | null | null | setup.py | Fortunoxx/AdventOfCode2021 | e49814c53273eb74e3039ad8caed17e2902c2cda | [
"MIT"
] | null | null | null | setup.py | Fortunoxx/AdventOfCode2021 | e49814c53273eb74e3039ad8caed17e2902c2cda | [
"MIT"
] | null | null | null | import setuptools
with open('requirements.txt', 'r') as f:
install_requires = f.read().splitlines()
setuptools.setup(name='my_project',
packages=['my_project'],
install_requires=install_requires)
| 26.222222 | 51 | 0.648305 | 26 | 236 | 5.692308 | 0.692308 | 0.304054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224576 | 236 | 8 | 52 | 29.5 | 0.808743 | 0 | 0 | 0 | 0 | 0 | 0.15678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
7eff79dc34abd6dfb553a3e3853589d2e1c42f1f | 95 | py | Python | server.py | andela-oadeniran/bucket_list_app | a4eaf5a706c74cfee919e8a466681db14cbb71c8 | [
"MIT"
] | null | null | null | server.py | andela-oadeniran/bucket_list_app | a4eaf5a706c74cfee919e8a466681db14cbb71c8 | [
"MIT"
] | null | null | null | server.py | andela-oadeniran/bucket_list_app | a4eaf5a706c74cfee919e8a466681db14cbb71c8 | [
"MIT"
] | null | null | null | import os
from bucketlist_api.app import app
PORT = int(os.getenv('PORT', 5000))
app.run()
| 10.555556 | 35 | 0.705263 | 16 | 95 | 4.125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.157895 | 95 | 8 | 36 | 11.875 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 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 |
7d21b909aa43912c5860a1e4286e263fa13a6854 | 811 | py | Python | phasesDay/serializers.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | phasesDay/serializers.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | phasesDay/serializers.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | from rest_framework import serializers
from phasesDay.models import PhasesDay
class PhasesDaySerializer(serializers.ModelSerializer):
class Meta:
model = PhasesDay
fields = ('id',
'name',
'description',
'created_at',
'updated... | 24.575758 | 61 | 0.52651 | 57 | 811 | 7.368421 | 0.368421 | 0.185714 | 0.221429 | 0.25 | 0.661905 | 0.661905 | 0.583333 | 0.452381 | 0.452381 | 0.452381 | 0 | 0 | 0.387176 | 811 | 32 | 62 | 25.34375 | 0.84507 | 0 | 0 | 0.76 | 0 | 0 | 0.134402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d266fae3ed5e1a2e1f1f8ef9b0772a12e255235 | 503 | py | Python | exec.py | Marcoshsc/AntColonyRoutingScheduling | d0e23e4bcf59dd46e5a8fc2972aa45848caa59ed | [
"MIT"
] | null | null | null | exec.py | Marcoshsc/AntColonyRoutingScheduling | d0e23e4bcf59dd46e5a8fc2972aa45848caa59ed | [
"MIT"
] | null | null | null | exec.py | Marcoshsc/AntColonyRoutingScheduling | d0e23e4bcf59dd46e5a8fc2972aa45848caa59ed | [
"MIT"
] | 1 | 2021-04-14T17:02:47.000Z | 2021-04-14T17:02:47.000Z | import json
from antcolony import antColony
data = {}
with open('data.json', 'r') as jsonF:
data = json.loads(jsonF.read())
antColony(data['numberTrips'], data['numberVehicles'], data['numberWorkers'], data['durations'], data['depreciation'], data['benefit'])
"""
custos = []
for i in range(10):
c = antColony... | 23.952381 | 141 | 0.67992 | 60 | 503 | 5.7 | 0.483333 | 0.114035 | 0.140351 | 0.163743 | 0.614035 | 0.614035 | 0.614035 | 0.614035 | 0.614035 | 0.614035 | 0 | 0.004484 | 0.11332 | 503 | 21 | 142 | 23.952381 | 0.762332 | 0 | 0 | 0 | 0 | 0 | 0.281481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7d40b6e7cd8ef1e8d137f367d570e3f446eb129b | 70 | py | Python | res/templates/py/class.py | ytyaru/Python.Jinja2.Macro.20180325124500 | 21875a4b49c5d90dcb36dc84bab77a37ee70d8c0 | [
"CC0-1.0"
] | null | null | null | res/templates/py/class.py | ytyaru/Python.Jinja2.Macro.20180325124500 | 21875a4b49c5d90dcb36dc84bab77a37ee70d8c0 | [
"CC0-1.0"
] | null | null | null | res/templates/py/class.py | ytyaru/Python.Jinja2.Macro.20180325124500 | 21875a4b49c5d90dcb36dc84bab77a37ee70d8c0 | [
"CC0-1.0"
] | null | null | null | {% macro define(Name='MyClass') -%}
class {{ Name }}:
{%- endmacro %}
| 17.5 | 35 | 0.557143 | 7 | 70 | 5.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 70 | 3 | 36 | 23.333333 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
7d44af4f27ebddfdf5925c785345a1d2b2cca638 | 2,651 | py | Python | tess_ida/readings.py | STARS4ALL/tessdb-reports | 9c9554de0073519034480d647d3f911a71ac8b81 | [
"MIT"
] | null | null | null | tess_ida/readings.py | STARS4ALL/tessdb-reports | 9c9554de0073519034480d647d3f911a71ac8b81 | [
"MIT"
] | null | null | null | tess_ida/readings.py | STARS4ALL/tessdb-reports | 9c9554de0073519034480d647d3f911a71ac8b81 | [
"MIT"
] | null | null | null |
# GENERATE IDA-FORMAT OBSERVATIONS FILE
# ----------------------------------------------------------------------
# Copyright (c) 2017 Rafael Gonzalez.
#
# See the LICENSE file for details
# ----------------------------------------------------------------------
#--------------------
# System wide imports
# ----------... | 31.939759 | 149 | 0.55828 | 319 | 2,651 | 4.476489 | 0.319749 | 0.063025 | 0.044818 | 0.029412 | 0.410364 | 0.410364 | 0.410364 | 0.386555 | 0.386555 | 0.386555 | 0 | 0.00691 | 0.23576 | 2,651 | 83 | 150 | 31.939759 | 0.697927 | 0.237269 | 0 | 0.285714 | 1 | 0 | 0.11634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.380952 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ade10b2dafb7a6656be8db5fb5d8dba9d50ed747 | 392 | py | Python | services/key_management/src/oci_cli_kms_vault/generated/client_mappings.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | services/key_management/src/oci_cli_kms_vault/generated/client_mappings.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | services/key_management/src/oci_cli_kms_vault/generated/client_mappings.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
import oci
from oci_cli.cli_clients import CLIENT_MAP
from oci_cli.cli_clients import MODULE_TO_TYPE_MAPPINGS
from oci.key_management import KmsVaultClient
MODULE_TO_TYPE_MAPPINGS["key_management"] = oci.key_management.mode... | 35.636364 | 97 | 0.836735 | 60 | 392 | 5.15 | 0.55 | 0.168285 | 0.064725 | 0.084142 | 0.168285 | 0.168285 | 0 | 0 | 0 | 0 | 0 | 0.025352 | 0.094388 | 392 | 10 | 98 | 39.2 | 0.84507 | 0.229592 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ade1a0508e48c059beb64b914d0e078815c9c49d | 156 | py | Python | cfrbm/experiments.py | kisai19980124/CFRBM | a4c2ad0b40c4e958802d2c177e2b83f306e2d9fc | [
"MIT"
] | 42 | 2016-07-02T23:09:01.000Z | 2021-06-01T05:21:15.000Z | cfrbm/experiments.py | kisai19980124/CFRBM | a4c2ad0b40c4e958802d2c177e2b83f306e2d9fc | [
"MIT"
] | 5 | 2016-07-15T07:37:33.000Z | 2019-07-03T15:18:17.000Z | cfrbm/experiments.py | kisai19980124/CFRBM | a4c2ad0b40c4e958802d2c177e2b83f306e2d9fc | [
"MIT"
] | 28 | 2016-11-25T03:41:48.000Z | 2020-07-08T22:59:14.000Z | import json
def read_experiment(path):
with open(path) as data:
experiments = json.loads(data.read())['experiments']
return experiments
| 15.6 | 60 | 0.679487 | 19 | 156 | 5.526316 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 156 | 9 | 61 | 17.333333 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
adea5e7d89bd1f8d8038923602c5527fa9d287ba | 733 | py | Python | tests/utils.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 326 | 2021-11-18T15:30:50.000Z | 2022-03-31T09:44:15.000Z | tests/utils.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 305 | 2021-11-17T10:28:31.000Z | 2022-03-31T18:05:03.000Z | tests/utils.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 29 | 2021-11-21T12:10:48.000Z | 2022-03-31T22:55:06.000Z | import numpy as np
from etna.metrics.base import Metric
from etna.metrics.base import MetricAggregationMode
def create_dummy_functional_metric(alpha: float = 1.0):
def dummy_functional_metric(y_true: np.ndarray, y_pred: np.ndarray) -> float:
return alpha
return dummy_functional_metric
class DummyM... | 27.148148 | 100 | 0.71487 | 95 | 733 | 5.242105 | 0.473684 | 0.120482 | 0.168675 | 0.076305 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006745 | 0.190996 | 733 | 26 | 101 | 28.192308 | 0.833052 | 0.110505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | 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 |
aded9c609c4605d1a802dcca10fbef063dd2e291 | 198 | py | Python | BOJ9325.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ9325.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ9325.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | n=int(input()); res=""
for _ in range(n):
car=int(input())
opt=int(input())
for _ in range(opt):
a,b=map(int, input().split())
car+=a*b
res+=str(car)+"\n"
print(res)
| 19.8 | 37 | 0.510101 | 33 | 198 | 3 | 0.454545 | 0.323232 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247475 | 198 | 9 | 38 | 22 | 0.66443 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
adf483a67bce1a86a5d111ab22f6fe59b8d9e3b6 | 93 | py | Python | krobot/main.py | rbardenet/krobot | 3d7bc459a433017bb18f176d702c5b52ac2e32d3 | [
"MIT"
] | 1 | 2015-12-04T22:19:57.000Z | 2015-12-04T22:19:57.000Z | krobot/main.py | rbardenet/krobot | 3d7bc459a433017bb18f176d702c5b52ac2e32d3 | [
"MIT"
] | 5 | 2015-10-29T22:34:22.000Z | 2015-11-24T21:52:58.000Z | krobot/main.py | rbardenet/krobot | 3d7bc459a433017bb18f176d702c5b52ac2e32d3 | [
"MIT"
] | null | null | null | import caro
if __name__ == '__main__':
caro = caro.Caro(medium="Skype")
caro.run()
| 13.285714 | 36 | 0.623656 | 12 | 93 | 4.166667 | 0.666667 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215054 | 93 | 6 | 37 | 15.5 | 0.684932 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 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 |
bc0b5e9d1d4101041835ec6fa1683aea521cf0da | 2,079 | py | Python | feeds.py | xarg/snippify | b692a941a7a46959df9aff064b7ad056d0125484 | [
"MIT"
] | 2 | 2016-08-19T06:24:02.000Z | 2021-05-11T00:08:24.000Z | feeds.py | xarg/snippify | b692a941a7a46959df9aff064b7ad056d0125484 | [
"MIT"
] | 5 | 2021-05-01T15:03:07.000Z | 2021-05-01T15:03:08.000Z | feeds.py | xarg/snippify | b692a941a7a46959df9aff064b7ad056d0125484 | [
"MIT"
] | null | null | null | """ For now there are """
from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.models import User
from taggit.models import Tag
from snippets.models import Snippet
class LatestSnippets(Feed):
""" Get latest global snipp... | 28.875 | 89 | 0.621934 | 260 | 2,079 | 4.926923 | 0.284615 | 0.043716 | 0.06089 | 0.044496 | 0.576112 | 0.40281 | 0.363778 | 0.223263 | 0.159251 | 0.159251 | 0 | 0.006614 | 0.272727 | 2,079 | 71 | 90 | 29.28169 | 0.840608 | 0.059644 | 0 | 0.44 | 0 | 0 | 0.143449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.1 | 0.12 | 0.66 | 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 |
bc1174af2781c681aad1c38689134d484d28872c | 2,493 | py | Python | smallinvoice/tests/clientaccounts_test.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | 1 | 2016-06-09T18:45:47.000Z | 2016-06-09T18:45:47.000Z | smallinvoice/tests/clientaccounts_test.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | null | null | null | smallinvoice/tests/clientaccounts_test.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | null | null | null | # coding=utf-8
import unittest
from smallinvoice.accounts import Account
from smallinvoice.tests import get_smallinvoice, generate_address
from .clients_test import generate_customer
class ClientAccountTests(unittest.TestCase):
def setUp(self):
self.address = generate_address()
self.client = gener... | 44.517857 | 99 | 0.705174 | 280 | 2,493 | 6.078571 | 0.167857 | 0.099882 | 0.098707 | 0.155112 | 0.653937 | 0.653937 | 0.653937 | 0.653937 | 0.653937 | 0.624559 | 0 | 0.028288 | 0.191737 | 2,493 | 55 | 100 | 45.327273 | 0.816377 | 0.004813 | 0 | 0.487805 | 1 | 0 | 0.032674 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0 | null | null | 0 | 0.170732 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc2689af27380526414ad618dc7d1251b149dcf1 | 382 | py | Python | ptavitm/utils.py | hw2814/pt-avitm | c0ff6f8a1253be33bb7ade513398ef10babbb144 | [
"MIT"
] | 36 | 2019-03-05T01:05:53.000Z | 2021-08-11T06:46:54.000Z | ptavitm/utils.py | hw2814/pt-avitm | c0ff6f8a1253be33bb7ade513398ef10babbb144 | [
"MIT"
] | 24 | 2019-01-01T15:01:52.000Z | 2021-06-16T23:15:49.000Z | ptavitm/utils.py | hw2814/pt-avitm | c0ff6f8a1253be33bb7ade513398ef10babbb144 | [
"MIT"
] | 7 | 2019-05-01T10:44:50.000Z | 2021-06-09T21:38:58.000Z | import torch
from torch.utils.data import Dataset
from typing import Tuple
class CountTensorDataset(Dataset):
def __init__(self, matrix):
self.matrix = matrix
def __getitem__(self, index: int) -> Tuple[torch.Tensor]:
return (torch.tensor(self.matrix.getrow(index).todense()).squeeze(0),)
... | 25.466667 | 78 | 0.691099 | 49 | 382 | 5.142857 | 0.510204 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.188482 | 382 | 14 | 79 | 27.285714 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bc2c018f9ff9d2341bf08e697b46af358277656a | 96 | py | Python | rest_social/apps.py | Visitey/Visitey-Server | e91c0ac52e943af9a739c42a6a3fe8603994c6b6 | [
"MIT"
] | 1 | 2018-06-06T09:46:00.000Z | 2018-06-06T09:46:00.000Z | rest_social/apps.py | Visitey/Visitey-Server | e91c0ac52e943af9a739c42a6a3fe8603994c6b6 | [
"MIT"
] | null | null | null | rest_social/apps.py | Visitey/Visitey-Server | e91c0ac52e943af9a739c42a6a3fe8603994c6b6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RestSocialConfig(AppConfig):
name = 'rest_social'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 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 |
70b6d98316cbbb4287d6c274ac7c2420ea1d6dcb | 39,298 | py | Python | tensorflow_federated/python/learning/reconstruction/training_process_test.py | tensorflow/federated | 5748b1a7dc4a5be3b2b9da9959eabe586347078a | [
"Apache-2.0"
] | 1,918 | 2019-02-22T21:17:28.000Z | 2022-03-30T14:49:53.000Z | tensorflow_federated/python/learning/reconstruction/training_process_test.py | thejungwon/federated | f56f3b71c163e48fb94959090a94c51cf25d1048 | [
"Apache-2.0"
] | 999 | 2019-02-22T21:47:44.000Z | 2022-03-31T11:06:42.000Z | tensorflow_federated/python/learning/reconstruction/training_process_test.py | thejungwon/federated | f56f3b71c163e48fb94959090a94c51cf25d1048 | [
"Apache-2.0"
] | 498 | 2019-02-22T21:17:56.000Z | 2022-03-29T02:54:15.000Z | # Copyright 2020, Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 37.533906 | 117 | 0.711105 | 4,793 | 39,298 | 5.523054 | 0.095347 | 0.03906 | 0.016772 | 0.024403 | 0.766395 | 0.752644 | 0.723368 | 0.685592 | 0.672295 | 0.650536 | 0 | 0.017077 | 0.187898 | 39,298 | 1,046 | 118 | 37.56979 | 0.812402 | 0.117411 | 0 | 0.657444 | 0 | 0 | 0.053681 | 0.005122 | 0 | 0 | 0 | 0.000956 | 0.106719 | 1 | 0.102767 | false | 0.001318 | 0.039526 | 0.056653 | 0.225296 | 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 |
70c3ebb914324ce87cb793b46b69a3ba38280c7e | 258 | py | Python | advanced_logger/__init__.py | EveryMundo/python-advanced-logger | 8f9c77e9bdbb1a792e36a7e66af495b39c4468f8 | [
"MIT"
] | null | null | null | advanced_logger/__init__.py | EveryMundo/python-advanced-logger | 8f9c77e9bdbb1a792e36a7e66af495b39c4468f8 | [
"MIT"
] | null | null | null | advanced_logger/__init__.py | EveryMundo/python-advanced-logger | 8f9c77e9bdbb1a792e36a7e66af495b39c4468f8 | [
"MIT"
] | null | null | null | from .advanced_logger import register_logger, deregister_logger, clear_all_loggers, \
initialize_logger_settings, basic_config, set_global_log_level, \
AdvancedLogger, random_chance
from .json_encoder.advanced_json_encoder import AdvancedJSONEncoder
| 51.6 | 85 | 0.856589 | 31 | 258 | 6.645161 | 0.741935 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096899 | 258 | 4 | 86 | 64.5 | 0.88412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
70c5893ba5d61cd37968b2e04af0832f6ef6da3f | 3,874 | py | Python | src/chia_xch/wallet.py | wenqinchao/chia_xch | 43534cf7e2d28852e265544cc4e8e659f91b8986 | [
"MIT"
] | null | null | null | src/chia_xch/wallet.py | wenqinchao/chia_xch | 43534cf7e2d28852e265544cc4e8e659f91b8986 | [
"MIT"
] | null | null | null | src/chia_xch/wallet.py | wenqinchao/chia_xch | 43534cf7e2d28852e265544cc4e8e659f91b8986 | [
"MIT"
] | null | null | null | from chia_xch.rpc_abi import RPC
from chia_xch.providers import WalletProvider
from chia_xch.encoding import FriendlyCode
class Wallet:
"""
Some wallet function can't work before wallet loading, please ensure your wallet is loaded,
you can check whether your wallet is loaded via list_wallets function. If ... | 46.119048 | 119 | 0.6381 | 453 | 3,874 | 5.181015 | 0.273731 | 0.081807 | 0.095441 | 0.137196 | 0.262889 | 0.262889 | 0.238176 | 0.157222 | 0.050277 | 0.050277 | 0 | 0.027185 | 0.249871 | 3,874 | 83 | 120 | 46.674699 | 0.780454 | 0.142747 | 0 | 0 | 0 | 0 | 0.093534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.319149 | false | 0 | 0.06383 | 0.234043 | 0.702128 | 0.12766 | 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 |
70d7f58b9279aa19b9744a6fdd6dbff2a0a38559 | 134 | py | Python | src/ds-visuals/snippets/max-heap/heap_sort.py | Ray784/ds-visualization | 47597e7cdb98f4f1692cbf9eaa88810c3d2b37c9 | [
"MIT"
] | null | null | null | src/ds-visuals/snippets/max-heap/heap_sort.py | Ray784/ds-visualization | 47597e7cdb98f4f1692cbf9eaa88810c3d2b37c9 | [
"MIT"
] | 1 | 2022-03-02T10:57:50.000Z | 2022-03-02T10:57:50.000Z | src/ds-visuals/snippets/min-heap/heap_sort.py | Ray784/ds-visualization | 47597e7cdb98f4f1692cbf9eaa88810c3d2b37c9 | [
"MIT"
] | null | null | null | def heapSort(self):
heap = hp.Heap()
heap.createHeap(*self.arr)
i = 0
while(heap.size > 0):
self.arr[i] = heap.delete()
i += 1 | 19.142857 | 29 | 0.61194 | 23 | 134 | 3.565217 | 0.565217 | 0.170732 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.186567 | 134 | 7 | 30 | 19.142857 | 0.724771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 |
cb48ffad8de2f7570e8328067f66ceba0124a240 | 6,718 | py | Python | binfile/tests/test_binfile.py | mheden/BinFile | 841b5422df2d5b4880da2ba575220c0d0c936c8b | [
"BSD-3-Clause"
] | null | null | null | binfile/tests/test_binfile.py | mheden/BinFile | 841b5422df2d5b4880da2ba575220c0d0c936c8b | [
"BSD-3-Clause"
] | null | null | null | binfile/tests/test_binfile.py | mheden/BinFile | 841b5422df2d5b4880da2ba575220c0d0c936c8b | [
"BSD-3-Clause"
] | null | null | null | import contextlib
import os
import tempfile
import unittest
import binfile
class TestRead(unittest.TestCase):
fd = None
def setUp(self):
self.fd = tempfile.TemporaryFile(mode="w+b")
self.fd.write(
bytes([130, 104, 101, 0, 108, 108, 111, 32, 119, 111, 114, 108, 100, 0])
)
... | 31.990476 | 84 | 0.613575 | 892 | 6,718 | 4.504484 | 0.136771 | 0.235192 | 0.165007 | 0.203833 | 0.797163 | 0.61548 | 0.599054 | 0.599054 | 0.557989 | 0.394475 | 0 | 0.102145 | 0.243674 | 6,718 | 209 | 85 | 32.143541 | 0.688644 | 0 | 0 | 0.39521 | 0 | 0 | 0.010717 | 0 | 0 | 0 | 0 | 0 | 0.413174 | 1 | 0.173653 | false | 0 | 0.02994 | 0 | 0.245509 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cb4feab620034e28a1550bb7bee6e7b4872f0784 | 182 | py | Python | src/jpl/labcas/downloader/__init__.py | EDRN/labcas-downloader | 2138ef62cccf5e4f20e8675eaef4f3b81995099c | [
"Apache-2.0"
] | null | null | null | src/jpl/labcas/downloader/__init__.py | EDRN/labcas-downloader | 2138ef62cccf5e4f20e8675eaef4f3b81995099c | [
"Apache-2.0"
] | null | null | null | src/jpl/labcas/downloader/__init__.py | EDRN/labcas-downloader | 2138ef62cccf5e4f20e8675eaef4f3b81995099c | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
'''JPL LabCAS Downloader module.'''
import pkg_resources
__version__ = VERSION = pkg_resources.resource_string(__name__, 'VERSION.txt').decode('utf-8').strip()
| 20.222222 | 102 | 0.741758 | 23 | 182 | 5.391304 | 0.73913 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.104396 | 182 | 8 | 103 | 22.75 | 0.748466 | 0.252747 | 0 | 0 | 0 | 0 | 0.123077 | 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 |
cb775d6a68d5e210f033bfea77e75a70a1055573 | 454 | pyde | Python | live_code/processing/python-mode/colour_py/colour_py.pyde | robots-make-art-too/EECS_1720 | 9779681e79bd063eee1801cb2f1dd8f3307d36a8 | [
"MIT"
] | 20 | 2022-01-20T15:26:57.000Z | 2022-02-10T21:55:03.000Z | live_code/processing/python-mode/colour_py/colour_py.pyde | robots-make-art-too/EECS_1720 | 9779681e79bd063eee1801cb2f1dd8f3307d36a8 | [
"MIT"
] | null | null | null | live_code/processing/python-mode/colour_py/colour_py.pyde | robots-make-art-too/EECS_1720 | 9779681e79bd063eee1801cb2f1dd8f3307d36a8 | [
"MIT"
] | 11 | 2022-01-20T20:33:55.000Z | 2022-02-16T02:00:51.000Z | c, d = None, None
def setup():
size(800, 800)
global c, d
c= color(random(255), random(255), random(255))
d= color(random(255), random(255), random(255))
def draw():
global c, d
for x in range(width): # loop through every x
p = lerpColor(c, d, 1.0 * x/width)
stroke(p)
line(x, 0, x, height)
... | 20.636364 | 49 | 0.614537 | 78 | 454 | 3.576923 | 0.358974 | 0.387097 | 0.430108 | 0.516129 | 0.530466 | 0.530466 | 0.530466 | 0.530466 | 0.530466 | 0.530466 | 0 | 0.125 | 0.207048 | 454 | 21 | 50 | 21.619048 | 0.65 | 0.044053 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0 | 0.1875 | 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 |
cb92f9cd702171d9f310915870299583237a9d8b | 1,131 | py | Python | problems/heap/Solution759.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/heap/Solution759.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/heap/Solution759.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ We are given a list schedule of employees, which represents the working time
for each employee. Each employee has a list of non-overlapping Intervals, and
these intervals are in sorted order. Return the list of finite intervals
representing common, positive-length free time for all employees, also in
... | 28.275 | 82 | 0.6145 | 172 | 1,131 | 4.040698 | 0.5 | 0.011511 | 0.043165 | 0.011511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053086 | 0.28382 | 1,131 | 39 | 83 | 29 | 0.804938 | 0.872679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cb99d7428d61218d2a755c9c792a41fad740d33f | 51 | py | Python | dart/__init__.py | fpirovan/NoiseInjection | d1a8c90aaf45d435d40c476a2d2e74258920ff22 | [
"RSA-MD"
] | null | null | null | dart/__init__.py | fpirovan/NoiseInjection | d1a8c90aaf45d435d40c476a2d2e74258920ff22 | [
"RSA-MD"
] | null | null | null | dart/__init__.py | fpirovan/NoiseInjection | d1a8c90aaf45d435d40c476a2d2e74258920ff22 | [
"RSA-MD"
] | 2 | 2020-11-06T06:57:35.000Z | 2021-04-26T13:23:35.000Z | from dart import experiments
__version__ = '0.1.0' | 17 | 28 | 0.764706 | 8 | 51 | 4.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.137255 | 51 | 3 | 29 | 17 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 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 |
cbbb27ca344f18a681664ca8ed525f70cea35ce3 | 297 | py | Python | gamegeneration/admin.py | ixalis/mafiapp | a4b04a24f6911ad809fbce2ad03b89a4af0bd98e | [
"MIT"
] | null | null | null | gamegeneration/admin.py | ixalis/mafiapp | a4b04a24f6911ad809fbce2ad03b89a4af0bd98e | [
"MIT"
] | 6 | 2018-07-23T00:36:38.000Z | 2018-07-23T00:38:16.000Z | gamegeneration/admin.py | ixalis/mafiapp | a4b04a24f6911ad809fbce2ad03b89a4af0bd98e | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Game)
admin.site.register(Item)
admin.site.register(Ability)
admin.site.register(ItemInstance)
admin.site.register(AbilityInstance)
admin.site.register(Attribute)
admin.site.register(Message)
| 24.75 | 36 | 0.818182 | 40 | 297 | 6.075 | 0.425 | 0.259259 | 0.489712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070707 | 297 | 11 | 37 | 27 | 0.880435 | 0.087542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cbcad2cc0a23b1de0f604678cb8318c7efb5d8c3 | 126 | py | Python | app/extensions/__init__.py | betheluniversity/flask-template | 58b6afb68da2519318f390c0455af4f41daf668a | [
"MIT"
] | null | null | null | app/extensions/__init__.py | betheluniversity/flask-template | 58b6afb68da2519318f390c0455af4f41daf668a | [
"MIT"
] | null | null | null | app/extensions/__init__.py | betheluniversity/flask-template | 58b6afb68da2519318f390c0455af4f41daf668a | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
# automatically uses the config SQLALCHEMY_DATABASE_URI to connect
db = SQLAlchemy()
| 25.2 | 66 | 0.84127 | 16 | 126 | 6.4375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 126 | 4 | 67 | 31.5 | 0.936364 | 0.507937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cbd7a023e962af89cdd692b963f3fa1309d708c6 | 1,765 | py | Python | lord_gym/envs/actions.py | tonkolviktor/lord-gym | ca0e2f01e28581a3a62ae7d37fa24e729edcae6e | [
"Apache-2.0"
] | null | null | null | lord_gym/envs/actions.py | tonkolviktor/lord-gym | ca0e2f01e28581a3a62ae7d37fa24e729edcae6e | [
"Apache-2.0"
] | null | null | null | lord_gym/envs/actions.py | tonkolviktor/lord-gym | ca0e2f01e28581a3a62ae7d37fa24e729edcae6e | [
"Apache-2.0"
] | null | null | null | import logging
from functools import reduce
from gym import spaces
from lord_gym.envs.game import Player
from lord_gym.envs.objects import IdleCitizen, WoodsMan, StoneMan, IronMan
logger = logging.getLogger(__name__)
class Action:
def __init__(self, subtype_index: int):
self.subtype_index = subtype_ind... | 25.955882 | 120 | 0.690085 | 225 | 1,765 | 5.128889 | 0.293333 | 0.07279 | 0.041594 | 0.038995 | 0.34662 | 0.268631 | 0.183709 | 0.067591 | 0 | 0 | 0 | 0.002143 | 0.206799 | 1,765 | 67 | 121 | 26.343284 | 0.822143 | 0.008499 | 0 | 0.340909 | 0 | 0 | 0.056064 | 0.02746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.022727 | 0.113636 | 0.113636 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cbe74367dc5d359db541f87b18944a959d338a1b | 244 | py | Python | Python/VowelRecognition.py | sumitesh9/Competitive-Programming | f7798058c13aa4b9e7ff418d84b55ce54dcb7224 | [
"MIT"
] | 1 | 2020-07-30T06:13:47.000Z | 2020-07-30T06:13:47.000Z | Python/VowelRecognition.py | sumitesh9/Competitive-Programming | f7798058c13aa4b9e7ff418d84b55ce54dcb7224 | [
"MIT"
] | null | null | null | Python/VowelRecognition.py | sumitesh9/Competitive-Programming | f7798058c13aa4b9e7ff418d84b55ce54dcb7224 | [
"MIT"
] | null | null | null | t=int(input())
for i in range(0,t):
str=input()
c=0
for j in range(0,len(str)):
ch=str[j]
if(ch=='a' or ch=='e' or ch=='i' or ch=='o' or ch=='u' or ch=='A' or ch=='E' or ch=='I' or ch=='O' or ch=='U'):
c=c+(len(str)-j)*(j+1)
print(c) | 27.111111 | 113 | 0.504098 | 62 | 244 | 1.983871 | 0.33871 | 0.292683 | 0.130081 | 0.113821 | 0.373984 | 0.373984 | 0.373984 | 0.373984 | 0.373984 | 0.373984 | 0 | 0.019901 | 0.17623 | 244 | 9 | 114 | 27.111111 | 0.59204 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1dbb822975088033bef58a7a35fa89d37477b488 | 237 | py | Python | LeetCode/Largest Unique Number.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 13 | 2021-09-02T07:30:02.000Z | 2022-03-22T19:32:03.000Z | LeetCode/Largest Unique Number.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | null | null | null | LeetCode/Largest Unique Number.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 3 | 2021-08-24T16:06:22.000Z | 2021-09-17T15:39:53.000Z | class Solution:
def largestUniqueNumber(self, A: List[int]) -> int:
counter = Counter(A)
for num, freq in sorted(counter.items(), reverse = True):
if freq == 1:
return num
return -1 | 33.857143 | 65 | 0.544304 | 28 | 237 | 4.607143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.345992 | 237 | 7 | 66 | 33.857143 | 0.819355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 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 |
1dc6dcdf576a27b24d9752fcb4080d6eb1858bd8 | 181 | py | Python | argdb/dbGeneLength.py | antkak/deeparg-keras | 0f3b640249d22a0c5aea7e8ad9c9af0b667d2176 | [
"MIT"
] | null | null | null | argdb/dbGeneLength.py | antkak/deeparg-keras | 0f3b640249d22a0c5aea7e8ad9c9af0b667d2176 | [
"MIT"
] | null | null | null | argdb/dbGeneLength.py | antkak/deeparg-keras | 0f3b640249d22a0c5aea7e8ad9c9af0b667d2176 | [
"MIT"
] | null | null | null | import sys
from Bio import SeqIO
fi=sys.argv[1] # fastafile from besthit
for record in SeqIO.parse(open(fi), "fasta"):
idx = record.id
print idx+"\t"+str(len(record.seq)) | 20.111111 | 45 | 0.685083 | 31 | 181 | 4 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.171271 | 181 | 9 | 46 | 20.111111 | 0.82 | 0.121547 | 0 | 0 | 0 | 0 | 0.044304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1dcf15cdd2124b6bd6ad457d80ee48423ebcd9df | 401 | py | Python | user_class/__init__.py | jaimiles23/chess-puzzlerush-leaderboard | 618c1389fbc794540c384ec47ed9d1700947a7d8 | [
"MIT"
] | null | null | null | user_class/__init__.py | jaimiles23/chess-puzzlerush-leaderboard | 618c1389fbc794540c384ec47ed9d1700947a7d8 | [
"MIT"
] | 1 | 2020-10-24T18:20:32.000Z | 2020-10-24T18:20:32.000Z | user_class/__init__.py | jaimiles23/chess-puzzlerush-leaderboard | 618c1389fbc794540c384ec47ed9d1700947a7d8 | [
"MIT"
] | null | null | null | """/**
* @author [Jai Miles]
* @email [jaimiles23@gmail.com]
* @create date 2020-08-17 19:00:53
* @modify date 2020-08-17 19:00:53
* @desc [
Module to import logger and User info
]
*/
"""
##########
# Imports
##########
try:
from user_class.user import User
from user_class.user_saver import UserS... | 16.04 | 47 | 0.623441 | 56 | 401 | 4.392857 | 0.553571 | 0.130081 | 0.081301 | 0.097561 | 0.325203 | 0.146341 | 0.146341 | 0 | 0 | 0 | 0 | 0.096154 | 0.221945 | 401 | 24 | 48 | 16.708333 | 0.692308 | 0.478803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1debab75f0f5ced22d0b0dfbdc38b4429a6f0a9e | 30 | py | Python | mffpy/version.py | BEL-Public/mffpy | 8515824d89a77cf10f7c36bb405f61d338b6f5fe | [
"Apache-2.0"
] | 7 | 2019-09-24T07:05:56.000Z | 2021-12-12T12:10:08.000Z | mffpy/version.py | BEL-Public/mffpy | 8515824d89a77cf10f7c36bb405f61d338b6f5fe | [
"Apache-2.0"
] | 44 | 2019-09-24T21:30:55.000Z | 2022-02-10T17:47:14.000Z | mffpy/version.py | BEL-Public/mffpy | 8515824d89a77cf10f7c36bb405f61d338b6f5fe | [
"Apache-2.0"
] | 4 | 2019-09-24T07:06:04.000Z | 2021-11-08T20:25:18.000Z | __version__ = "0.6.3-develop"
| 15 | 29 | 0.7 | 5 | 30 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.1 | 30 | 1 | 30 | 30 | 0.518519 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 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 |
1dec5c44d9867d8c67751d0110b489eff7385f13 | 761 | py | Python | macdaily/util/compat.py | JarryShaw/MacDaily | 853b841dd1f1f7e6aae7bf2c305ff008bc76055c | [
"BSD-3-Clause"
] | 10 | 2018-09-20T19:57:56.000Z | 2021-11-14T18:28:10.000Z | macdaily/util/compat.py | JarryShaw/jsdaily | 3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d | [
"BSD-3-Clause"
] | 2 | 2020-05-31T08:49:47.000Z | 2021-12-28T16:57:42.000Z | macdaily/util/compat.py | JarryShaw/jsdaily | 3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
# pathlib & subprocess
if sys.version_info[:2] <= (3, 4):
import pathlib2 as pathlib # pylint: disable=unused-import
import subprocess32 as subprocess # pylint: disable=unused-import
else:
import pathlib # pylint: disable=unused-import
import subprocess # pylint:... | 24.548387 | 70 | 0.730618 | 84 | 761 | 6.595238 | 0.392857 | 0.093863 | 0.137184 | 0.180505 | 0.263538 | 0.137184 | 0 | 0 | 0 | 0 | 0 | 0.011309 | 0.186597 | 761 | 30 | 71 | 25.366667 | 0.883683 | 0.346912 | 0 | 0.222222 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.611111 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
38221df73dc5ae6920d9db7e67b4bdeb6830e42f | 356 | py | Python | terrascript/tls/r.py | GarnerCorp/python-terrascript | ec6c2d9114dcd3cb955dd46069f8ba487e320a8c | [
"BSD-2-Clause"
] | null | null | null | terrascript/tls/r.py | GarnerCorp/python-terrascript | ec6c2d9114dcd3cb955dd46069f8ba487e320a8c | [
"BSD-2-Clause"
] | null | null | null | terrascript/tls/r.py | GarnerCorp/python-terrascript | ec6c2d9114dcd3cb955dd46069f8ba487e320a8c | [
"BSD-2-Clause"
] | 1 | 2018-11-15T16:23:05.000Z | 2018-11-15T16:23:05.000Z | from terrascript import _resource
class tls_private_key(_resource): pass
private_key = tls_private_key
class tls_locally_signed_cert(_resource): pass
locally_signed_cert = tls_locally_signed_cert
class tls_self_signed_cert(_resource): pass
self_signed_cert = tls_self_signed_cert
class tls_cert_request(_resource): pa... | 25.428571 | 46 | 0.865169 | 54 | 356 | 5.12963 | 0.259259 | 0.216607 | 0.184116 | 0.144404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 356 | 13 | 47 | 27.384615 | 0.854938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.444444 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
38236c67ebce28621ecbf02d6fc0c91a17581e5d | 94 | py | Python | six/jobs6.py | jbrakensiek/Keller | ef8e3e2f335995d405a1d0ea7003b23aa7b7dd25 | [
"MIT"
] | 2 | 2019-10-10T16:40:33.000Z | 2019-10-13T03:22:51.000Z | six/jobs6.py | jbrakensiek/Keller | ef8e3e2f335995d405a1d0ea7003b23aa7b7dd25 | [
"MIT"
] | null | null | null | six/jobs6.py | jbrakensiek/Keller | ef8e3e2f335995d405a1d0ea7003b23aa7b7dd25 | [
"MIT"
] | 2 | 2020-08-25T02:27:42.000Z | 2020-09-04T06:56:16.000Z | for i in range(90):
for j in range(1378):
print (str(i) + " " + str(j+1) + " 0");
| 23.5 | 47 | 0.457447 | 17 | 94 | 2.529412 | 0.647059 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.319149 | 94 | 3 | 48 | 31.333333 | 0.546875 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
382bd5bace4138e3c636c86b3bd21c6385194948 | 217 | py | Python | config.py | jeansignos/testett | eadd6f04ab3a4c3a18e0d03a3118541dbe952585 | [
"MIT"
] | null | null | null | config.py | jeansignos/testett | eadd6f04ab3a4c3a18e0d03a3118541dbe952585 | [
"MIT"
] | null | null | null | config.py | jeansignos/testett | eadd6f04ab3a4c3a18e0d03a3118541dbe952585 | [
"MIT"
] | null | null | null | # configure the dm text
def generate_dm_text(name):
return '''Hey {}, It great to connect
with you on twitter'''.format(name)
scheduler_time = 15 #in minutes
tw_username = "signosdazueira" #change this to yours
| 24.111111 | 52 | 0.732719 | 33 | 217 | 4.69697 | 0.878788 | 0.077419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.165899 | 217 | 8 | 53 | 27.125 | 0.845304 | 0.235023 | 0 | 0 | 1 | 0 | 0.395062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
697345eecd8d9b801911db1d71fcf3334cfb147c | 93 | py | Python | METRO/renamer-x.py | SwissCoin-Classic/SwissCoin-Classic | e0777ed449fcbcea29b59f964a37bf0fa04c01e0 | [
"MIT"
] | null | null | null | METRO/renamer-x.py | SwissCoin-Classic/SwissCoin-Classic | e0777ed449fcbcea29b59f964a37bf0fa04c01e0 | [
"MIT"
] | null | null | null | METRO/renamer-x.py | SwissCoin-Classic/SwissCoin-Classic | e0777ed449fcbcea29b59f964a37bf0fa04c01e0 | [
"MIT"
] | null | null | null | from subprocess import call
import os
files = open("filenames.txt", "r").read().split("\n")
| 18.6 | 53 | 0.688172 | 14 | 93 | 4.571429 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 93 | 4 | 54 | 23.25 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 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 |
697666d5e0568d35a3ce906b633a2fe55127c9e3 | 687 | py | Python | domaintools/exceptions.py | saurabh-prakash/python_api | 553290955c68ddb9d5f55a150031a62741918f70 | [
"MIT"
] | null | null | null | domaintools/exceptions.py | saurabh-prakash/python_api | 553290955c68ddb9d5f55a150031a62741918f70 | [
"MIT"
] | 1 | 2021-06-02T13:51:14.000Z | 2021-06-02T13:51:14.000Z | domaintools/exceptions.py | jmeridth/python_api | 01a5c8886bc55b5bdbb094f439faf218e353bf3e | [
"MIT"
] | null | null | null | """Defines the Exceptions that can be raised from the DomainTools API"""
class ServiceException(Exception):
def __init__(self, code, reason):
self.code = code
self.reason = reason
super(ServiceException, self).__init__(str(reason))
class BadRequestException(ServiceException):
pass
... | 18.567568 | 72 | 0.759825 | 59 | 687 | 8.711864 | 0.474576 | 0.272374 | 0.291829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171761 | 687 | 36 | 73 | 19.083333 | 0.903339 | 0.09607 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.368421 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
69ac9765ead30776befb707a28ee2c6fb5babab3 | 503 | py | Python | tests/test_mantle/counter/mothball/_upcounter.py | splhack/loam | 10b08bd622b7cfd63eabaec4729f6238e4521b30 | [
"MIT"
] | 14 | 2017-10-08T09:16:10.000Z | 2021-11-27T19:12:24.000Z | tests/test_mantle/counter/mothball/_upcounter.py | splhack/loam | 10b08bd622b7cfd63eabaec4729f6238e4521b30 | [
"MIT"
] | 7 | 2018-04-12T21:33:49.000Z | 2018-08-21T22:14:20.000Z | tests/test_mantle/counter/mothball/_upcounter.py | splhack/loam | 10b08bd622b7cfd63eabaec4729f6238e4521b30 | [
"MIT"
] | 3 | 2018-07-24T04:55:02.000Z | 2019-12-30T08:12:39.000Z | from magma import wire, compile, EndCircuit
from loam.boards.icestick import IceStick, UpCounter
icestick = IceStick()
icestick.Clock.on()
icestick.J3[0].output().on()
icestick.J3[1].output().on()
icestick.J3[2].output().on()
icestick.J3[3].output().on()
icestick.J3[4].output().on()
icestick.J3[5].output().on()
icesti... | 20.958333 | 52 | 0.701789 | 79 | 503 | 4.468354 | 0.379747 | 0.226629 | 0.271955 | 0.356941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045652 | 0.085487 | 503 | 23 | 53 | 21.869565 | 0.721739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.055556 | 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 |
69c0922a645b66dfc696621264cc27d7b74a6b1f | 164 | py | Python | POLMO Sofware/Fast API - Backend/models/sensordata.py | HarinarayananP/Air-polution-monitoring | 10bec957b4cfc03208408211be7b593dbecc0d82 | [
"Apache-2.0"
] | 1 | 2021-08-03T08:17:32.000Z | 2021-08-03T08:17:32.000Z | POLMO Sofware/Fast API - Backend/models/sensordata.py | HarinarayananP/Air-polution-monitoring | 10bec957b4cfc03208408211be7b593dbecc0d82 | [
"Apache-2.0"
] | null | null | null | POLMO Sofware/Fast API - Backend/models/sensordata.py | HarinarayananP/Air-polution-monitoring | 10bec957b4cfc03208408211be7b593dbecc0d82 | [
"Apache-2.0"
] | 1 | 2021-08-01T05:47:21.000Z | 2021-08-01T05:47:21.000Z | from typing import Optional
from pydantic import BaseModel
class SensorReading(BaseModel):
sensor: str
value: int
time: str
node: Optional[str]
| 13.666667 | 31 | 0.713415 | 20 | 164 | 5.85 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231707 | 164 | 11 | 32 | 14.909091 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
69c2acef0a6bfd5b500e3c3801e57cfdff454417 | 947 | py | Python | benchmarking/bridge/file_storage/upload_files/file_uploader.py | caffe2/caffe2-benchmarking | b6dd7b41798465b787135aaed5328eb6cfbdad22 | [
"Apache-2.0"
] | 20 | 2017-12-01T03:37:45.000Z | 2018-05-08T15:54:34.000Z | benchmarking/bridge/file_storage/upload_files/file_uploader.py | caffe2/caffe2-benchmarking | b6dd7b41798465b787135aaed5328eb6cfbdad22 | [
"Apache-2.0"
] | 1 | 2018-04-25T16:57:59.000Z | 2018-04-25T16:57:59.000Z | benchmarking/bridge/file_storage/upload_files/file_uploader.py | caffe2/caffe2-benchmarking | b6dd7b41798465b787135aaed5328eb6cfbdad22 | [
"Apache-2.0"
] | 7 | 2017-12-05T00:00:09.000Z | 2018-04-25T00:49:30.000Z | ##############################################################################
# Copyright 2022-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#######################################################... | 28.69697 | 78 | 0.589229 | 98 | 947 | 5.55102 | 0.5 | 0.167279 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005141 | 0.178458 | 947 | 32 | 79 | 29.59375 | 0.694087 | 0.184794 | 0 | 0 | 0 | 0 | 0.070492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.1875 | 0.5625 | 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 |
69c8794c3370e1b70aea9a7bd57106c0536cd6ed | 160 | py | Python | main/model/blocks/truck.py | cbabalis/csa-streetmap | 0024cc8953792664f3a5fe34c9ca45e686d047a2 | [
"MIT"
] | 18 | 2020-04-18T18:04:36.000Z | 2022-03-26T13:16:09.000Z | main/model/blocks/truck.py | cbabalis/csa-streetmap | 0024cc8953792664f3a5fe34c9ca45e686d047a2 | [
"MIT"
] | null | null | null | main/model/blocks/truck.py | cbabalis/csa-streetmap | 0024cc8953792664f3a5fe34c9ca45e686d047a2 | [
"MIT"
] | 7 | 2020-06-15T14:49:39.000Z | 2021-11-13T09:29:21.000Z | from casymda.blocks import Entity
class Truck(Entity):
""" drives tours """
speed = 30 / 3.6 # km/h -> m/s
geo_icon = "main/visu/img/truck.png"
| 17.777778 | 40 | 0.60625 | 25 | 160 | 3.84 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.2375 | 160 | 8 | 41 | 20 | 0.754098 | 0.1625 | 0 | 0 | 0 | 0 | 0.181102 | 0.181102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
69d081f6c05cf2babd6439fafbe7f9e646e00f25 | 787 | py | Python | durex/main.py | davidmoremad/durex | ecd74a9ff2385e613b16c84cd600d9ecec8a12ae | [
"Apache-2.0"
] | null | null | null | durex/main.py | davidmoremad/durex | ecd74a9ff2385e613b16c84cd600d9ecec8a12ae | [
"Apache-2.0"
] | null | null | null | durex/main.py | davidmoremad/durex | ecd74a9ff2385e613b16c84cd600d9ecec8a12ae | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import awspice
from helpers import ThreadPool
from .services import *
class Durex(object):
def __init__(self, account='default'):
self.client = awspice.connect(profile=account)
self._ec2 = EC2(self.client)
self._s3 = S3(self.client)
self._iam = IAM(self.clie... | 28.107143 | 83 | 0.693774 | 108 | 787 | 4.888889 | 0.296296 | 0.151515 | 0.132576 | 0.151515 | 0.223485 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0.020281 | 0.185515 | 787 | 28 | 84 | 28.107143 | 0.803432 | 0.026684 | 0 | 0.157895 | 0 | 0 | 0.00915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0 | 0.157895 | 0.263158 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
69d8e62e86b4281f74b6f62ab98a9cfb2edc4573 | 155 | py | Python | base/keyboard-interrupt.py | bygui86/python-practical-programming-tutorial | cec941dc971b53018c6bd1d085eca84969a85502 | [
"Apache-2.0"
] | null | null | null | base/keyboard-interrupt.py | bygui86/python-practical-programming-tutorial | cec941dc971b53018c6bd1d085eca84969a85502 | [
"Apache-2.0"
] | null | null | null | base/keyboard-interrupt.py | bygui86/python-practical-programming-tutorial | cec941dc971b53018c6bd1d085eca84969a85502 | [
"Apache-2.0"
] | 1 | 2019-08-21T14:35:28.000Z | 2019-08-21T14:35:28.000Z |
import time
try:
print("Waiting for keyboard interrupt...")
while True:
time.sleep(5)
except KeyboardInterrupt:
print("Interrupt!!")
| 15.5 | 46 | 0.651613 | 17 | 155 | 5.941176 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.225806 | 155 | 9 | 47 | 17.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
69dd12f877e6415b53f60c7690e36b2f9d76a64c | 6,676 | py | Python | llvm/mc/__init__.py | KennethNielsen/llvmpy | 70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e | [
"BSD-3-Clause"
] | 140 | 2015-01-07T20:58:12.000Z | 2022-01-21T17:02:21.000Z | llvm/mc/__init__.py | KennethNielsen/llvmpy | 70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e | [
"BSD-3-Clause"
] | 19 | 2015-01-15T14:45:49.000Z | 2020-09-04T14:58:23.000Z | llvm/mc/__init__.py | KennethNielsen/llvmpy | 70c5957cfd10f1e32a44f28dcb9a4dc72d499c2e | [
"BSD-3-Clause"
] | 12 | 2015-01-12T01:49:32.000Z | 2020-07-10T22:30:38.000Z | import sys
import llvm
if llvm.version < (3, 4):
raise Exception("mc is not supported for llvm version less than 3.4")
from io import BytesIO
import contextlib
from llvmpy import api, extra
from llvmpy.api.llvm import MCDisassembler
class Operand(object):
def __init__(self, mcoperand, target_machine):
... | 27.473251 | 94 | 0.581636 | 839 | 6,676 | 4.50298 | 0.261025 | 0.058232 | 0.070408 | 0.050291 | 0.177872 | 0.107994 | 0.062467 | 0.048174 | 0.028587 | 0 | 0 | 0.003735 | 0.318155 | 6,676 | 242 | 95 | 27.586777 | 0.82623 | 0.148742 | 0 | 0.186335 | 0 | 0 | 0.033849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.006211 | 0.037267 | 0.142857 | 0.509317 | 0.012422 | 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 |
69ec48191babcbc5595bf097811f99269a76ec43 | 614 | py | Python | src/gebtaero/CompositePly.py | mid2SUPAERO/GEBTAero | f52bb51c35aa89fd78874134c5256f3781077b83 | [
"BSD-3-Clause"
] | 11 | 2019-01-03T13:40:19.000Z | 2022-01-21T20:57:20.000Z | src/gebtaero/CompositePly.py | mid2SUPAERO/GEBTAero | f52bb51c35aa89fd78874134c5256f3781077b83 | [
"BSD-3-Clause"
] | null | null | null | src/gebtaero/CompositePly.py | mid2SUPAERO/GEBTAero | f52bb51c35aa89fd78874134c5256f3781077b83 | [
"BSD-3-Clause"
] | 6 | 2020-03-04T15:13:17.000Z | 2021-04-04T15:31:23.000Z | # coding=UTF-8
## This class define a composite ply
class CompositePly:
def __init__(self,Material,Thickness,Orientation):
## the material of the ply (either IsoMaterial or OrthoMaterial)
self.Material = Material
## the thickness of the ply (m)
self.Thickness = Thickness
#... | 27.909091 | 72 | 0.644951 | 67 | 614 | 5.850746 | 0.447761 | 0.091837 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002294 | 0.289902 | 614 | 21 | 73 | 29.238095 | 0.896789 | 0.306189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3853865b6ec6bbbcc5ccecc7d93903ea6d03a451 | 1,147 | py | Python | test/test_address.py | thk123/ogp-2020-scripts | 8731834a1a18ea0ce3ddfcd067c655e49c6b0193 | [
"MIT"
] | null | null | null | test/test_address.py | thk123/ogp-2020-scripts | 8731834a1a18ea0ce3ddfcd067c655e49c6b0193 | [
"MIT"
] | null | null | null | test/test_address.py | thk123/ogp-2020-scripts | 8731834a1a18ea0ce3ddfcd067c655e49c6b0193 | [
"MIT"
] | null | null | null | from unittest import TestCase
from survey_count import Address
class TestAddress(TestCase):
def test_from_full_string(self):
# todo: don't compress, just have address combine strings
self.assertEqual(Address.from_full_string('1 Random St'), Address('Random St', 1))
self.assertEqual(Addres... | 49.869565 | 96 | 0.683522 | 147 | 1,147 | 5.204082 | 0.272109 | 0.186928 | 0.146405 | 0.192157 | 0.552941 | 0.499346 | 0.405229 | 0.301961 | 0.184314 | 0 | 0 | 0.037116 | 0.177855 | 1,147 | 22 | 97 | 52.136364 | 0.774125 | 0.197908 | 0 | 0 | 0 | 0 | 0.151747 | 0 | 0 | 0 | 0 | 0.045455 | 0.533333 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38547773505f669575634c2e6e4fffcc0c26f3c1 | 832 | py | Python | assets/Occasionally-Tested-Protocol/otp.py | Dunsp4rce/rgbCTF-2020 | bd6412259f2b0db5dd958b1fdcd74c24f02405c9 | [
"MIT"
] | null | null | null | assets/Occasionally-Tested-Protocol/otp.py | Dunsp4rce/rgbCTF-2020 | bd6412259f2b0db5dd958b1fdcd74c24f02405c9 | [
"MIT"
] | null | null | null | assets/Occasionally-Tested-Protocol/otp.py | Dunsp4rce/rgbCTF-2020 | bd6412259f2b0db5dd958b1fdcd74c24f02405c9 | [
"MIT"
] | null | null | null | from random import seed, randint as w
from time import time
j = int
u = j.to_bytes
s = 73
t = 479105856333166071017569
_ = 1952540788
s = 7696249
o = 6648417
m = 29113321535923570
e = 199504783476
_ = 7827278
r = 435778514803
a = 6645876
n = 157708668092092650711139
d = 2191175
o = 2191175
m = 7956567
_ = 6648417
m =... | 19.348837 | 89 | 0.669471 | 126 | 832 | 4.301587 | 0.595238 | 0.02952 | 0.055351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.372129 | 0.215144 | 832 | 42 | 90 | 19.809524 | 0.457887 | 0.074519 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
386edae10ca4688f86f11bfeaab2b3cdcfc6bf4e | 122 | py | Python | ebm/distributions/__init__.py | raghav90/ebm | 5106642822dd215ee735a3a1a22390e74bd0d3fe | [
"MIT"
] | 2 | 2020-09-28T22:14:07.000Z | 2020-11-16T20:49:43.000Z | ebm/distributions/__init__.py | raghav90/ebm | 5106642822dd215ee735a3a1a22390e74bd0d3fe | [
"MIT"
] | null | null | null | ebm/distributions/__init__.py | raghav90/ebm | 5106642822dd215ee735a3a1a22390e74bd0d3fe | [
"MIT"
] | 3 | 2018-12-07T08:51:38.000Z | 2022-02-09T21:18:15.000Z | # Authors: Nicholas C. Firth <ncfirth87@gmail.com>
# License: TBC
from .gaussian import Gaussian
__all__ = ['Gaussian', ] | 24.4 | 50 | 0.729508 | 15 | 122 | 5.666667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.139344 | 122 | 5 | 51 | 24.4 | 0.790476 | 0.5 | 0 | 0 | 0 | 0 | 0.135593 | 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 |
387817fabf871e3ec06eb31c1d0c317ef0b34ca2 | 806 | py | Python | deepxde/__init__.py | smao-astro/deepxde | aa2ff31141268c1c5e1c25815a5f26dcdcdcdbee | [
"Apache-2.0"
] | 1 | 2021-01-13T18:19:17.000Z | 2021-01-13T18:19:17.000Z | deepxde/__init__.py | smao-astro/deepxde | aa2ff31141268c1c5e1c25815a5f26dcdcdcdbee | [
"Apache-2.0"
] | null | null | null | deepxde/__init__.py | smao-astro/deepxde | aa2ff31141268c1c5e1c25815a5f26dcdcdcdbee | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from . import backend
from . import boundary_conditions as bc
from . import callbacks
from . import data
from . import geometry
from . import gradients as grad
from . import maps
from .boundary_conditions import DirichletBC
from .boundary_conditions import NeumannBC
from .boundar... | 20.666667 | 44 | 0.719603 | 90 | 806 | 6.266667 | 0.322222 | 0.124113 | 0.195035 | 0.248227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19727 | 806 | 38 | 45 | 21.210526 | 0.871716 | 0 | 0 | 0 | 0 | 0 | 0.130273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.485714 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
38a4d6f1d8cf97f7822dcf167d6192d333ad73bc | 2,344 | py | Python | feeds/feeds.py | atypicalrobot/igor_personal_site | 8fd788bc43884792b786abeb34e9fec9e79492f1 | [
"MIT"
] | null | null | null | feeds/feeds.py | atypicalrobot/igor_personal_site | 8fd788bc43884792b786abeb34e9fec9e79492f1 | [
"MIT"
] | null | null | null | feeds/feeds.py | atypicalrobot/igor_personal_site | 8fd788bc43884792b786abeb34e9fec9e79492f1 | [
"MIT"
] | null | null | null | # Importing the syndication feed and BlogPage class from blog model.
from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Rss201rev2Feed
from wagtail.wagtailimages.models import Filter
from xml.sax.saxutils import escape
from datetime import datetime, time
from blog.models import Blo... | 33.014085 | 92 | 0.672782 | 300 | 2,344 | 5.16 | 0.42 | 0.027132 | 0.036176 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.229522 | 2,344 | 71 | 93 | 33.014085 | 0.849391 | 0.174061 | 0 | 0 | 0 | 0 | 0.137276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.022727 | 0.136364 | 0.113636 | 0.681818 | 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 |
38a86edc1a1a0656d2ad47fdf0b8bb6507b335bc | 153 | py | Python | Chapter10/Exercise10.03/bookr_admin/admin.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 97 | 2021-03-01T12:54:30.000Z | 2022-03-28T02:57:26.000Z | Chapter10/Exercise10.03/bookr_admin/admin.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 81 | 2020-08-27T04:56:04.000Z | 2022-03-12T00:53:40.000Z | Chapter10/Exercise10.03/bookr_admin/admin.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 163 | 2020-12-25T14:38:38.000Z | 2022-03-30T10:31:40.000Z | from django.contrib import admin
class BookrAdmin(admin.AdminSite):
site_header = "Bookr Administration"
logout_template = "admin/logout.html"
| 21.857143 | 41 | 0.764706 | 18 | 153 | 6.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150327 | 153 | 6 | 42 | 25.5 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.243421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
38ba7578a0e3532e24d7f1b7d45784ae6afb5aa0 | 153 | py | Python | digitaldna/verbosity.py | bharats97/ddna-toolbox | 1856d130c14bab094297b1371c7bde3d78d057db | [
"BSD-3-Clause"
] | 1 | 2022-03-22T00:28:14.000Z | 2022-03-22T00:28:14.000Z | digitaldna/verbosity.py | bharats97/ddna-toolbox | 1856d130c14bab094297b1371c7bde3d78d057db | [
"BSD-3-Clause"
] | 6 | 2019-01-22T15:01:41.000Z | 2019-11-12T18:58:33.000Z | digitaldna/verbosity.py | bharats97/ddna-toolbox | 1856d130c14bab094297b1371c7bde3d78d057db | [
"BSD-3-Clause"
] | 3 | 2020-07-11T07:58:37.000Z | 2022-03-22T00:29:56.000Z | class Verbosity:
"""
The Digital DNA utility class to set verbosity.
"""
TEST = 0
MEMORY_ONLY = 1
FILE = 2
FILE_EXTENDED = 3
| 17 | 51 | 0.581699 | 20 | 153 | 4.35 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.339869 | 153 | 8 | 52 | 19.125 | 0.821782 | 0.30719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
38c3fb0053da8f43958d0ff983685d871123585d | 2,351 | py | Python | topside/plumbing/node.py | roguextech/Waterloo-Rocketry-topside | 345e7d47efdac04c2c5f70d55f83bd77acdbb511 | [
"MIT"
] | 4 | 2020-04-18T00:40:55.000Z | 2021-06-10T04:04:09.000Z | topside/plumbing/node.py | roguextech/Waterloo-Rocketry-topside | 345e7d47efdac04c2c5f70d55f83bd77acdbb511 | [
"MIT"
] | 82 | 2020-04-15T21:26:04.000Z | 2022-02-04T04:50:07.000Z | topside/plumbing/node.py | roguextech/Waterloo-Rocketry-topside | 345e7d47efdac04c2c5f70d55f83bd77acdbb511 | [
"MIT"
] | 8 | 2020-04-21T17:54:36.000Z | 2022-02-28T16:14:21.000Z | from abc import ABC, abstractmethod
import networkx as nx
import topside.plumbing.plumbing_utils as utils
def instantiate_node(type_id=None):
"""
Return the proper child node class depending on provided type_id.
type_id should be a string that indicates the desired node type. If an unrecognized
str... | 23.989796 | 87 | 0.644832 | 291 | 2,351 | 5.024055 | 0.340206 | 0.065663 | 0.04788 | 0.043092 | 0.288646 | 0.125855 | 0.125855 | 0 | 0 | 0 | 0 | 0.001728 | 0.261591 | 2,351 | 97 | 88 | 24.237113 | 0.840438 | 0.264143 | 0 | 0.48 | 0 | 0 | 0.05843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0.04 | 0.06 | 0.16 | 0.66 | 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 |
38e9697c8de84b6a0845e65a9904acfc68a7add8 | 173 | py | Python | src/convtools/__init__.py | westandskif/convtools | 6862b4a023a079eafc6b110d40cf1d99ef186f11 | [
"MIT"
] | 15 | 2021-09-20T19:05:17.000Z | 2022-03-09T12:06:11.000Z | src/convtools/__init__.py | westandskif/convtools | 6862b4a023a079eafc6b110d40cf1d99ef186f11 | [
"MIT"
] | 8 | 2021-09-23T15:16:08.000Z | 2022-01-02T14:02:09.000Z | src/convtools/__init__.py | westandskif/convtools | 6862b4a023a079eafc6b110d40cf1d99ef186f11 | [
"MIT"
] | null | null | null | """The only object is exported - conversion.
This object exposes the public API of conversions."""
from .conversion import conversion # noqa: F401
__version__ = "0.22.0"
| 24.714286 | 53 | 0.739884 | 24 | 173 | 5.166667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 0.16185 | 173 | 6 | 54 | 28.833333 | 0.806897 | 0.601156 | 0 | 0 | 0 | 0 | 0.095238 | 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 |
2a23bf430f70a1e0f2d0715fe81e54582864ad07 | 145 | py | Python | 3.Python/MohammedInshad.py | tony21122000/Learn-Coding | 11862f3a372069693bd381b1f99063d95d3b2b65 | [
"MIT"
] | 54 | 2020-10-01T07:06:36.000Z | 2021-10-21T03:24:30.000Z | 3.Python/MohammedInshad.py | tony21122000/Learn-Coding | 11862f3a372069693bd381b1f99063d95d3b2b65 | [
"MIT"
] | 19 | 2020-10-01T13:04:55.000Z | 2020-10-27T06:10:52.000Z | 3.Python/MohammedInshad.py | tony21122000/Learn-Coding | 11862f3a372069693bd381b1f99063d95d3b2b65 | [
"MIT"
] | 97 | 2020-10-01T07:07:17.000Z | 2021-10-21T03:25:20.000Z | name, age = "Inshad", 18
username = "MohammedInshad"
print ('Hello!')
print("inshad: {}\n18 {}\nMohammedInshad: {}".format(name, age, username))
| 29 | 74 | 0.668966 | 16 | 145 | 6.0625 | 0.6875 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.110345 | 145 | 4 | 75 | 36.25 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.434483 | 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 |
2a2d54132d9015a14986aecaf9c6eee6f1f2d759 | 1,163 | py | Python | setup.py | bartbroere/toledger | c10a2a6252b36c599ef9032c0409e655aa81fa5f | [
"MIT"
] | 3 | 2018-02-04T11:34:58.000Z | 2021-04-21T20:04:12.000Z | setup.py | bartbroere/toledger | c10a2a6252b36c599ef9032c0409e655aa81fa5f | [
"MIT"
] | 1 | 2021-05-23T10:51:41.000Z | 2021-05-23T10:51:41.000Z | setup.py | bartbroere/toledger | c10a2a6252b36c599ef9032c0409e655aa81fa5f | [
"MIT"
] | 2 | 2018-02-04T11:34:59.000Z | 2021-01-06T21:24:38.000Z | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
name='ToLedger',
version='2017.04.21',
description='Convert bank statements to Ledger',
long_description=readme(),
keywords=["ledger", "convert", "conversion", "bank", "ing", "nl",
... | 33.228571 | 73 | 0.593293 | 117 | 1,163 | 5.871795 | 0.632479 | 0.193595 | 0.254731 | 0.227074 | 0.078603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022573 | 0.238177 | 1,163 | 34 | 74 | 34.205882 | 0.752822 | 0 | 0 | 0 | 0 | 0 | 0.534824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | true | 0 | 0.03125 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a3646a9e641215e744914a6962b5142a4768707 | 1,511 | py | Python | changes/storage/s3.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | 1 | 2015-11-08T13:00:44.000Z | 2015-11-08T13:00:44.000Z | changes/storage/s3.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | null | null | null | changes/storage/s3.py | alex/changes | 69a17b4c639e7082a75d037384ccb68ead3a0b4b | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import boto
import boto.s3.connection
from flask import current_app
from changes.utils.cache import memoize
from changes.storage.base import FileStorage
class S3FileStorage(FileStorage):
def __init__(self, access_key=None, secret_key=None, bucket=None, path=''):
c... | 29.057692 | 79 | 0.68961 | 207 | 1,511 | 4.763285 | 0.251208 | 0.056795 | 0.044625 | 0.039554 | 0.182556 | 0.105477 | 0.079108 | 0.079108 | 0.079108 | 0 | 0 | 0.010059 | 0.210457 | 1,511 | 51 | 80 | 29.627451 | 0.816429 | 0 | 0 | 0.054054 | 0 | 0 | 0.02912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.162162 | 0.162162 | 0.621622 | 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 |
2a3d399b2087905eaaf61311b278469e56a9d0bd | 1,516 | py | Python | sashimmi/adapters/_internal.py | chpatton013/sashimmi | 7c03832eb99dd7e96b59cbd3e4f7267c3819d3e5 | [
"MIT"
] | null | null | null | sashimmi/adapters/_internal.py | chpatton013/sashimmi | 7c03832eb99dd7e96b59cbd3e4f7267c3819d3e5 | [
"MIT"
] | null | null | null | sashimmi/adapters/_internal.py | chpatton013/sashimmi | 7c03832eb99dd7e96b59cbd3e4f7267c3819d3e5 | [
"MIT"
] | null | null | null | import re
from ..constants import TARGET_SUBSTITUTION_TOKEN
def _generate_replacements(substitutions, target):
for search, replace in substitutions.items():
pattern = r"(^|[^{sub}]){sub}{search}\b".format(
sub=TARGET_SUBSTITUTION_TOKEN, search=search
)
repl = r"\1{replace}".fo... | 27.563636 | 78 | 0.651055 | 159 | 1,516 | 6.037736 | 0.226415 | 0.1875 | 0.226042 | 0.192708 | 0.511458 | 0.478125 | 0.405208 | 0.383333 | 0.383333 | 0.383333 | 0 | 0.001775 | 0.256596 | 1,516 | 54 | 79 | 28.074074 | 0.850044 | 0 | 0 | 0.357143 | 1 | 0 | 0.044195 | 0.032322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a799a9917255f2407326418170e4a22728c5f13 | 282 | py | Python | app/tune_cascade_app.py | Johnson145/RapidObjectDetectionUsingCascadedCNNs | 78098f35508878d130199a7cca42ebca857d266e | [
"MIT"
] | 9 | 2018-06-21T12:44:39.000Z | 2021-03-29T11:45:50.000Z | app/tune_cascade_app.py | Johnson145/RapidObjectDetectionUsingCascadedCNNs | 78098f35508878d130199a7cca42ebca857d266e | [
"MIT"
] | null | null | null | app/tune_cascade_app.py | Johnson145/RapidObjectDetectionUsingCascadedCNNs | 78098f35508878d130199a7cca42ebca857d266e | [
"MIT"
] | 1 | 2018-08-22T03:40:51.000Z | 2018-08-22T03:40:51.000Z | from app.tune_single_app import TuneSingleApp
from app.train_cascade_app import TrainCascadeApp
class TuneCascadeApp(TuneSingleApp):
"""Tune a cascade instead of a single net."""
def _create_trainer(self) -> TrainCascadeApp:
return TrainCascadeApp(run_now=False)
| 28.2 | 49 | 0.776596 | 35 | 282 | 6.057143 | 0.657143 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152482 | 282 | 9 | 50 | 31.333333 | 0.887029 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 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 | 1 | 0 | 0 | 0 | 3 |
2a8d416a1ef2ff3e3af3a235a1427e8e5e12400a | 8,368 | py | Python | lib/language/messages_it.py | PiterPentester/OWASP-Nettacker | d5f85f08a5a2d45c294099b391239a94c4a299ce | [
"Apache-2.0"
] | 1 | 2020-07-12T11:11:21.000Z | 2020-07-12T11:11:21.000Z | lib/language/messages_it.py | PiterPentester/OWASP-Nettacker | d5f85f08a5a2d45c294099b391239a94c4a299ce | [
"Apache-2.0"
] | null | null | null | lib/language/messages_it.py | PiterPentester/OWASP-Nettacker | d5f85f08a5a2d45c294099b391239a94c4a299ce | [
"Apache-2.0"
] | 1 | 2018-09-27T05:49:21.000Z | 2018-09-27T05:49:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def all_messages():
return \
{
"0": "Il motore Nettacker è iniziato ...\n\n",
"1": "python nettacker.py [opzioni]",
"2": "Mostra il menu di aiuto di Nettacker",
"3": "Leggere la licenza e gli accordi https://gith... | 60.201439 | 117 | 0.541587 | 1,014 | 8,368 | 4.456608 | 0.406312 | 0.014162 | 0.003983 | 0.016818 | 0.197389 | 0.139633 | 0.090949 | 0.077672 | 0.077672 | 0.03098 | 0 | 0.059338 | 0.31728 | 8,368 | 138 | 118 | 60.637681 | 0.731665 | 0.005019 | 0 | 0 | 0 | 0.052239 | 0.658698 | 0.007809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007463 | true | 0.119403 | 0 | 0.007463 | 0.014925 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
aa7a8e873c6b17d3cc6cd46fb15e3224f0dea49e | 2,512 | py | Python | PLM/cores/Errors.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | 7 | 2018-09-09T01:14:34.000Z | 2020-01-26T10:06:08.000Z | PLM/cores/Errors.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | null | null | null | PLM/cores/Errors.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | 3 | 2019-03-11T21:54:52.000Z | 2019-11-25T11:23:17.000Z | # -*- coding: utf-8 -*-
"""
Script Name: Errors.py
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
""" Import """
# PLM
from pyPLM.damg import DAMGERROR
class NodePropertyError(DAMGERROR): pass
c... | 19.472868 | 111 | 0.667596 | 224 | 2,512 | 7.379464 | 0.455357 | 0.103448 | 0.196007 | 0.075015 | 0.14761 | 0.14761 | 0.14761 | 0.14761 | 0.14761 | 0 | 0 | 0.009515 | 0.163217 | 2,512 | 129 | 112 | 19.472868 | 0.776403 | 0.219745 | 0 | 0.255319 | 0 | 0 | 0.009911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.425532 | 0.021277 | 0 | 0.702128 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
aa8dbafb4f9eead9c117651a11ec425dc358fcc5 | 1,095 | py | Python | recipes/migrations/0012_auto_20201220_1849.py | acoreynews/buenprovecho | 664a50b245de55a96ba00eb987eba40158b8df59 | [
"Unlicense"
] | null | null | null | recipes/migrations/0012_auto_20201220_1849.py | acoreynews/buenprovecho | 664a50b245de55a96ba00eb987eba40158b8df59 | [
"Unlicense"
] | null | null | null | recipes/migrations/0012_auto_20201220_1849.py | acoreynews/buenprovecho | 664a50b245de55a96ba00eb987eba40158b8df59 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2020-12-21 02:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0011_auto_20201130_1154'),
]
operations = [
migrations.AlterField(
model_name='recipe',
name='ingredients... | 28.076923 | 80 | 0.56895 | 106 | 1,095 | 5.716981 | 0.443396 | 0.165017 | 0.206271 | 0.239274 | 0.334984 | 0.334984 | 0.270627 | 0.270627 | 0.270627 | 0.184818 | 0 | 0.065246 | 0.314155 | 1,095 | 38 | 81 | 28.815789 | 0.741678 | 0.041096 | 0 | 0.4375 | 1 | 0 | 0.13645 | 0.021947 | 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 |
aa9482195de780288edd921937fc54cc5a0f9b37 | 23 | py | Python | whodunnit/__init__.py | brennie/whodunnit | 674f44321c4436cdf59adb1837b1f06578289e12 | [
"MIT"
] | null | null | null | whodunnit/__init__.py | brennie/whodunnit | 674f44321c4436cdf59adb1837b1f06578289e12 | [
"MIT"
] | null | null | null | whodunnit/__init__.py | brennie/whodunnit | 674f44321c4436cdf59adb1837b1f06578289e12 | [
"MIT"
] | null | null | null | VERSION = '0.0.1.dev1'
| 11.5 | 22 | 0.608696 | 5 | 23 | 2.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 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 |
aaaa67f197ac26d2e5bd1e9737333e04947e24ed | 456 | py | Python | utils/tests.py | smileboywtu/django-demo | 1ddc83abcd363814180056b9cc2ec1a4f804cc9d | [
"MIT"
] | 1 | 2016-07-30T03:22:13.000Z | 2016-07-30T03:22:13.000Z | utils/tests.py | smileboywtu/django-demo | 1ddc83abcd363814180056b9cc2ec1a4f804cc9d | [
"MIT"
] | null | null | null | utils/tests.py | smileboywtu/django-demo | 1ddc83abcd363814180056b9cc2ec1a4f804cc9d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# test the utils module
# Created: 2016-7-25
# Copyright: (c) 2016<smileboywtu@gmail.com>
from pprint import pprint
from django.test import TestCase
from utils.http_response import split_page
class UtilsTestCase(TestCase):
def test_split_array(self):
array = [1, 2, 3, 4, 5, 6,... | 21.714286 | 61 | 0.655702 | 71 | 456 | 4.126761 | 0.549296 | 0.09215 | 0.020478 | 0.170648 | 0.204778 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0.201754 | 456 | 20 | 62 | 22.8 | 0.717033 | 0.230263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aab52de8692a60206f3463e25b53d8b1373559c5 | 691 | py | Python | utils/types_/__init__.py | jemand2001/python-utils | 652d3998cb272530e42100ae844178ad7a092c8c | [
"MIT"
] | null | null | null | utils/types_/__init__.py | jemand2001/python-utils | 652d3998cb272530e42100ae844178ad7a092c8c | [
"MIT"
] | null | null | null | utils/types_/__init__.py | jemand2001/python-utils | 652d3998cb272530e42100ae844178ad7a092c8c | [
"MIT"
] | null | null | null | """some additional (math) types you may need, with instance checks"""
__all__ = ['NaturalNumber', 'StrictNaturalNumber']
class NaturalNumberMeta(type):
"""metaclass"""
def __instancecheck__(self, instance):
return isinstance(instance, int) and instance >= 0
class StrictNaturalNumberMeta(type):
... | 25.592593 | 69 | 0.7178 | 71 | 691 | 6.816901 | 0.549296 | 0.053719 | 0.066116 | 0.119835 | 0.326446 | 0.326446 | 0.326446 | 0.326446 | 0.326446 | 0.326446 | 0 | 0.005263 | 0.175109 | 691 | 26 | 70 | 26.576923 | 0.84386 | 0.261939 | 0 | 0.363636 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.181818 | 0 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
aab89020ea8022bc6136476bddb62d2686374c50 | 527 | py | Python | testgear/HPAK/B2902A.py | PhilippCo/testgear | 9dbf9c6e1028394375ccca6720d5be1854315f93 | [
"MIT"
] | 1 | 2021-08-25T15:16:57.000Z | 2021-08-25T15:16:57.000Z | testgear/HPAK/B2902A.py | PhilippCo/testgear | 9dbf9c6e1028394375ccca6720d5be1854315f93 | [
"MIT"
] | null | null | null | testgear/HPAK/B2902A.py | PhilippCo/testgear | 9dbf9c6e1028394375ccca6720d5be1854315f93 | [
"MIT"
] | null | null | null | """Agilent B2902A Precision Source/Measure Unit"""
import testgear.base_classes as base
import numpy as np
class B2902A(base.source):
def init(self):
self.set_timeout(10)
self.idstr = self.query("*IDN?").strip()
def set_output(self, voltage=None, current=None, enabled=True, frequency=0, ... | 27.736842 | 124 | 0.667932 | 70 | 527 | 4.957143 | 0.685714 | 0.057637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.218216 | 527 | 19 | 125 | 27.736842 | 0.813107 | 0.185958 | 0 | 0 | 0 | 0 | 0.011933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
aac55a9bafaabe2fdedff2b3453dcfa4881f181d | 1,085 | py | Python | bamboo/transfer/transfer_load.py | rahul-acr/bamboo | d8ca88b289ab86bcc38456f52e5277c6b8722749 | [
"MIT"
] | null | null | null | bamboo/transfer/transfer_load.py | rahul-acr/bamboo | d8ca88b289ab86bcc38456f52e5277c6b8722749 | [
"MIT"
] | null | null | null | bamboo/transfer/transfer_load.py | rahul-acr/bamboo | d8ca88b289ab86bcc38456f52e5277c6b8722749 | [
"MIT"
] | null | null | null | from os import stat
from os.path import isfile, join, exists
from bamboo.sync.sync import SyncEntry
class TransferLoad:
def __init__(self, filename: str, sync_entry: SyncEntry):
self.filename = filename
self._sync_entry = sync_entry
self._generate_paths()
self._stat = stat(self.so... | 30.138889 | 76 | 0.665438 | 143 | 1,085 | 4.762238 | 0.328671 | 0.092511 | 0.095448 | 0.04699 | 0.214391 | 0.073421 | 0 | 0 | 0 | 0 | 0 | 0.001232 | 0.251613 | 1,085 | 35 | 77 | 31 | 0.837438 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 |
aacc18902278d98898a4dfd95db9531922018c1d | 190 | py | Python | src/src/find_source_script.py | weblit/weblit | f1de52348b1fde738fab2a5591be8345a430aa37 | [
"Apache-2.0"
] | 1 | 2022-01-03T07:28:21.000Z | 2022-01-03T07:28:21.000Z | src/src/find_source_script.py | weblit/weblit | f1de52348b1fde738fab2a5591be8345a430aa37 | [
"Apache-2.0"
] | null | null | null | src/src/find_source_script.py | weblit/weblit | f1de52348b1fde738fab2a5591be8345a430aa37 | [
"Apache-2.0"
] | null | null | null | import re
def find_source_script(script: str) -> str:
temp_str = str(re.findall(r'src=.*', script)[0])
return temp_str[5:len(temp_str) - 11] # removing other attributes and tags
| 23.75 | 79 | 0.684211 | 31 | 190 | 4.032258 | 0.677419 | 0.168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.173684 | 190 | 7 | 80 | 27.142857 | 0.770701 | 0.178947 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2aa43c68b57eb1758adc2124ee3c41ab02a8753c | 189 | py | Python | scripts/test_pyscripts.py | muchang/z3test | e3e7739f98b7aa85427fcb8a39a4c675132a896e | [
"MIT"
] | 23 | 2015-04-20T08:51:00.000Z | 2021-11-15T12:20:59.000Z | scripts/test_pyscripts.py | muchang/z3test | e3e7739f98b7aa85427fcb8a39a4c675132a896e | [
"MIT"
] | 18 | 2016-03-02T15:17:42.000Z | 2021-12-16T22:10:05.000Z | scripts/test_pyscripts.py | muchang/z3test | e3e7739f98b7aa85427fcb8a39a4c675132a896e | [
"MIT"
] | 30 | 2015-05-30T15:29:17.000Z | 2022-02-25T15:58:58.000Z | # Copyright (c) 2015 Microsoft Corporation
from util import *
import sys
# Usage: z3-lib-dir benchmark-dir
test_pyscripts(sys.argv[1], sys.argv[2], ext="py", timeout_duration=60.0)
exit(0)
| 27 | 73 | 0.746032 | 32 | 189 | 4.34375 | 0.8125 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.111111 | 189 | 6 | 74 | 31.5 | 0.761905 | 0.380952 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2abacd3a88ae97fb892c17277d1146bc40d21f9f | 703 | py | Python | images/signals.py | stuartaccent/images | 272547a207a04843081cd2fc03d931c0da4dd537 | [
"MIT"
] | null | null | null | images/signals.py | stuartaccent/images | 272547a207a04843081cd2fc03d931c0da4dd537 | [
"MIT"
] | 1 | 2018-08-04T11:08:03.000Z | 2018-08-12T19:49:04.000Z | images/signals.py | stuartaccent/images | 272547a207a04843081cd2fc03d931c0da4dd537 | [
"MIT"
] | null | null | null | from django.db import transaction
from django.db.models.signals import post_delete, post_save
from images.models import Image, Rendition
from images.utils import create_default_image_renditions
def create_image_renditions(instance, **kwargs):
""" Create default image renditions """
create_default_image_rendi... | 31.954545 | 63 | 0.796586 | 90 | 703 | 5.966667 | 0.344444 | 0.139665 | 0.100559 | 0.156425 | 0.182495 | 0.182495 | 0.182495 | 0.182495 | 0.182495 | 0 | 0 | 0 | 0.118065 | 703 | 21 | 64 | 33.47619 | 0.866129 | 0.092461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2ac5badc47d5e9e47e261ccaa19cbb84e50c7a92 | 71,162 | py | Python | server/descriptor/descriptorformattype.py | coll-gate/collgate | 8c2ff1c59adda2bf318040f588c05263317a2812 | [
"MIT"
] | 2 | 2017-07-04T16:19:09.000Z | 2019-08-16T04:54:47.000Z | server/descriptor/descriptorformattype.py | coll-gate/collgate | 8c2ff1c59adda2bf318040f588c05263317a2812 | [
"MIT"
] | null | null | null | server/descriptor/descriptorformattype.py | coll-gate/collgate | 8c2ff1c59adda2bf318040f588c05263317a2812 | [
"MIT"
] | 1 | 2018-04-13T08:28:09.000Z | 2018-04-13T08:28:09.000Z | # -*- coding: utf-8; -*-
#
# @file descriptorformattype.py
# @brief coll-gate descriptor format type class
# @author Frédéric SCHERMA (INRA UMR1095)
# @date 2017-01-03
# @copyright Copyright (c) 2017 INRA/CIRAD
# @license MIT (see LICENSE file)
# @details
import decimal
import re
import validictory
from django.contri... | 39.57842 | 123 | 0.545909 | 7,600 | 71,162 | 4.934605 | 0.0575 | 0.033037 | 0.079327 | 0.097992 | 0.778711 | 0.761992 | 0.730395 | 0.678692 | 0.654054 | 0.633309 | 0 | 0.009893 | 0.319581 | 71,162 | 1,797 | 124 | 39.600445 | 0.764643 | 0.149729 | 0 | 0.657221 | 0 | 0.000914 | 0.174951 | 0.041165 | 0.003656 | 0 | 0 | 0.002782 | 0 | 1 | 0.096892 | false | 0.000914 | 0.011883 | 0.019196 | 0.293419 | 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 |
2ac9599c9652e24d2d9b35d4088b2a23e2d19fc1 | 6,729 | py | Python | tests/test_models/test_voxel_encoder/test_voxelize.py | Guangyun-Xu/mmdetection3d | 75c5c6cd590386bd1539a686c5fd2cc45c5480d5 | [
"Apache-2.0"
] | 2,216 | 2020-07-09T19:10:11.000Z | 2022-03-31T12:39:26.000Z | tests/test_models/test_voxel_encoder/test_voxelize.py | Guangyun-Xu/mmdetection3d | 75c5c6cd590386bd1539a686c5fd2cc45c5480d5 | [
"Apache-2.0"
] | 1,174 | 2020-07-10T07:02:28.000Z | 2022-03-31T12:38:56.000Z | tests/test_models/test_voxel_encoder/test_voxelize.py | Guangyun-Xu/mmdetection3d | 75c5c6cd590386bd1539a686c5fd2cc45c5480d5 | [
"Apache-2.0"
] | 681 | 2020-07-09T19:40:06.000Z | 2022-03-31T11:02:24.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import pytest
import torch
from mmdet3d.core.voxel.voxel_generator import VoxelGenerator
from mmdet3d.datasets.pipelines import LoadPointsFromFile
from mmdet3d.ops.voxel.voxelize import Voxelization
def _get_voxel_points_indices(points, coors, voxel)... | 40.536145 | 79 | 0.688958 | 919 | 6,729 | 4.750816 | 0.133841 | 0.080394 | 0.05497 | 0.077874 | 0.806688 | 0.766148 | 0.702016 | 0.668346 | 0.608337 | 0.597801 | 0 | 0.015216 | 0.199138 | 6,729 | 165 | 80 | 40.781818 | 0.794953 | 0.04711 | 0 | 0.568182 | 0 | 0 | 0.03717 | 0.017179 | 0 | 0 | 0 | 0 | 0.143939 | 1 | 0.022727 | false | 0 | 0.045455 | 0 | 0.075758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.