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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b953812809c13031070133a7849795278b13dea4 | 111 | py | Python | sim/dynamicobject.py | rseed42/labyrinth | 1cd4dc74c67b1b76972e1e048a7fce0c13955e7d | [
"Apache-2.0"
] | null | null | null | sim/dynamicobject.py | rseed42/labyrinth | 1cd4dc74c67b1b76972e1e048a7fce0c13955e7d | [
"Apache-2.0"
] | null | null | null | sim/dynamicobject.py | rseed42/labyrinth | 1cd4dc74c67b1b76972e1e048a7fce0c13955e7d | [
"Apache-2.0"
] | null | null | null | class DynamicObject(object):
def __init__(self, name, id_):
self.name = name
self.id = id_
| 22.2 | 34 | 0.603604 | 14 | 111 | 4.357143 | 0.571429 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288288 | 111 | 4 | 35 | 27.75 | 0.772152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b95cfef2234f9a61adbaa0afe2564f0d012dea38 | 38 | py | Python | settings/debug_members.py | akorzunin/telegram_auction_bot | d4d5042614ea11f8085815d8f9fb8b6fbebcfab0 | [
"Apache-2.0"
] | null | null | null | settings/debug_members.py | akorzunin/telegram_auction_bot | d4d5042614ea11f8085815d8f9fb8b6fbebcfab0 | [
"Apache-2.0"
] | null | null | null | settings/debug_members.py | akorzunin/telegram_auction_bot | d4d5042614ea11f8085815d8f9fb8b6fbebcfab0 | [
"Apache-2.0"
] | null | null | null | DEBUG_MEMBER_LIST = [
503131177,
] | 12.666667 | 21 | 0.684211 | 4 | 38 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0.210526 | 38 | 3 | 22 | 12.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9750e636d7a3d49a65558af431533fc2e745edb | 187 | py | Python | src/jobs/forms.py | arc198/DJANGO-JOB-SITE | d9547c4ee85751677ba6458380b609973c3b4a8d | [
"MIT"
] | 20 | 2018-05-04T18:42:35.000Z | 2021-03-18T07:15:12.000Z | src/jobs/forms.py | fleepgeek/django-jobsite | d9547c4ee85751677ba6458380b609973c3b4a8d | [
"MIT"
] | 5 | 2020-02-11T22:22:33.000Z | 2021-06-10T20:18:05.000Z | src/jobs/forms.py | arc198/DJANGO-JOB-SITE | d9547c4ee85751677ba6458380b609973c3b4a8d | [
"MIT"
] | 8 | 2018-05-04T19:03:23.000Z | 2020-09-23T00:24:46.000Z | from django import forms
from .models import Application
class ApplicationForm(forms.ModelForm):
class Meta:
model = Application
fields = ('resume', 'cover_letter',) | 23.375 | 44 | 0.700535 | 20 | 187 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213904 | 187 | 8 | 44 | 23.375 | 0.884354 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b9814171798d1f2ddf5247c67182a7e7e032132e | 105 | py | Python | src/git/cmd.py | danihodovic/dht | 636f54d70f8c6ca60ab48f2815b3e9e1a336d78f | [
"MIT"
] | 2 | 2021-01-21T15:04:32.000Z | 2021-01-21T16:23:32.000Z | src/git/cmd.py | danihodovic/dht | 636f54d70f8c6ca60ab48f2815b3e9e1a336d78f | [
"MIT"
] | 2 | 2020-12-30T20:34:51.000Z | 2021-01-17T20:02:02.000Z | src/git/cmd.py | danihodovic/dht | 636f54d70f8c6ca60ab48f2815b3e9e1a336d78f | [
"MIT"
] | null | null | null | import os
import click
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
@click.group()
def git():
pass
| 9.545455 | 42 | 0.67619 | 15 | 105 | 4.6 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180952 | 105 | 10 | 43 | 10.5 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.219048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
b99f21827c3ba7ccbcab4806c878cdacfa139e20 | 317 | py | Python | app/logger_example/main.py | khanh-nguyen-code/my-collection | 31581ef0b1dae67aafb1f4e64b9973a38cc01edf | [
"MIT"
] | null | null | null | app/logger_example/main.py | khanh-nguyen-code/my-collection | 31581ef0b1dae67aafb1f4e64b9973a38cc01edf | [
"MIT"
] | null | null | null | app/logger_example/main.py | khanh-nguyen-code/my-collection | 31581ef0b1dae67aafb1f4e64b9973a38cc01edf | [
"MIT"
] | null | null | null | from my_collection import logger
if __name__ == "__main__":
logger.now().debug("debug1")
logger.now().debug("debug2")
logger.now().info("hello1")
logger.now().info("hello2")
logger.now().with_field("key", "val").error("with field1")
logger.now().with_field("key", "val").error("with field2")
| 31.7 | 62 | 0.646688 | 42 | 317 | 4.619048 | 0.52381 | 0.278351 | 0.14433 | 0.185567 | 0.340206 | 0.340206 | 0.340206 | 0.340206 | 0 | 0 | 0 | 0.021898 | 0.135647 | 317 | 9 | 63 | 35.222222 | 0.686131 | 0 | 0 | 0 | 0 | 0 | 0.208202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9a4cbf5401cd86949e3f94c13bc464c4725fcee | 192,704 | py | Python | rpc/gen/core_pb2.py | jasonjoo2010/core | 7c05ddbdac2e05a3d96db28f8bdfacf661907b82 | [
"MIT"
] | null | null | null | rpc/gen/core_pb2.py | jasonjoo2010/core | 7c05ddbdac2e05a3d96db28f8bdfacf661907b82 | [
"MIT"
] | null | null | null | rpc/gen/core_pb2.py | jasonjoo2010/core | 7c05ddbdac2e05a3d96db28f8bdfacf661907b82 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: core.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | 38.875126 | 16,249 | 0.731339 | 23,978 | 192,704 | 5.607432 | 0.030945 | 0.054145 | 0.028783 | 0.041055 | 0.727664 | 0.674858 | 0.665732 | 0.659648 | 0.644736 | 0.623495 | 0 | 0.042309 | 0.133101 | 192,704 | 4,956 | 16,250 | 38.88297 | 0.762545 | 0.025941 | 0 | 0.706402 | 1 | 0.004958 | 0.158013 | 0.110848 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001293 | 0 | 0.001293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b9ae95988166d56c353c46926e3d21a79d84f88c | 769 | py | Python | layers/layer1_python3/0300_acquisition/acquisition/__init__.py | moas/mfdata | ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2 | [
"BSD-3-Clause"
] | null | null | null | layers/layer1_python3/0300_acquisition/acquisition/__init__.py | moas/mfdata | ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2 | [
"BSD-3-Clause"
] | null | null | null | layers/layer1_python3/0300_acquisition/acquisition/__init__.py | moas/mfdata | ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2 | [
"BSD-3-Clause"
] | null | null | null | from acquisition.step import AcquisitionStep
from acquisition.stats import AcquisitionStatsDClient
from acquisition.move_step import AcquisitionMoveStep
from acquisition.delete_step import AcquisitionDeleteStep
from acquisition.batch_step import AcquisitionBatchStep
from acquisition.reinject_step import AcquisitionRein... | 48.0625 | 63 | 0.830949 | 61 | 769 | 10.311475 | 0.360656 | 0.214626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119636 | 769 | 15 | 64 | 51.266667 | 0.929099 | 0 | 0 | 0 | 0 | 0 | 0.235371 | 0.115735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.642857 | 0 | 0.642857 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b9d60ecc3068b2d42bc6110555d94274b9cac29c | 930 | py | Python | tools/py/heatmap.py | sriramreddyM/pLitter | e506777af0b8bbae411b474f5eacee91e8efea59 | [
"MIT"
] | 5 | 2021-11-09T10:25:35.000Z | 2022-03-30T03:57:46.000Z | tools/py/heatmap.py | sriramreddyM/pLitter | e506777af0b8bbae411b474f5eacee91e8efea59 | [
"MIT"
] | null | null | null | tools/py/heatmap.py | sriramreddyM/pLitter | e506777af0b8bbae411b474f5eacee91e8efea59 | [
"MIT"
] | 1 | 2021-09-09T08:04:46.000Z | 2021-09-09T08:04:46.000Z | '''
converts video to frames and saves images by different interval, or overlap, etc
'''
import folium
from folium import plugins
from folium.plugins import HeatMap
import csv
# class plitterMap():
# def __int__(self, file_path):
# self.data = file_path
# df = []
# with open(self.data) as f... | 30 | 133 | 0.53871 | 119 | 930 | 4.084034 | 0.470588 | 0.041152 | 0.067901 | 0.08642 | 0.170782 | 0.170782 | 0.096708 | 0.096708 | 0.096708 | 0.096708 | 0 | 0.018838 | 0.315054 | 930 | 31 | 134 | 30 | 0.744113 | 0.84086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6a00f01d33da6c470fd1f865044516a818d9c018 | 88 | py | Python | smmips/__init__.py | oicr-gsi/pysmmips | ccf209b13862a5533a11fbe02e80d3265ccef313 | [
"MIT"
] | null | null | null | smmips/__init__.py | oicr-gsi/pysmmips | ccf209b13862a5533a11fbe02e80d3265ccef313 | [
"MIT"
] | null | null | null | smmips/__init__.py | oicr-gsi/pysmmips | ccf209b13862a5533a11fbe02e80d3265ccef313 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 20 16:04:52 2020
@author: rjovelin
"""
| 11 | 35 | 0.579545 | 14 | 88 | 3.642857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185714 | 0.204545 | 88 | 7 | 36 | 12.571429 | 0.542857 | 0.875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6a046c97530ca1a780b9dd23d59ddcc8df166fa3 | 263 | py | Python | red_dwarf/entrypoints/project_management.py | JesseMaitland/red-dwarf | f606ada43f4be72c5cab61049182b58c0c348602 | [
"MIT"
] | null | null | null | red_dwarf/entrypoints/project_management.py | JesseMaitland/red-dwarf | f606ada43f4be72c5cab61049182b58c0c348602 | [
"MIT"
] | null | null | null | red_dwarf/entrypoints/project_management.py | JesseMaitland/red-dwarf | f606ada43f4be72c5cab61049182b58c0c348602 | [
"MIT"
] | null | null | null | from rsterm import EntryPoint
from red_dwarf.project import provide_project_context, ProjectContext
class InitProject(EntryPoint):
@provide_project_context
def run(self, project_context: ProjectContext) -> None:
project_context.init_project()
| 23.909091 | 69 | 0.790875 | 30 | 263 | 6.666667 | 0.566667 | 0.28 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148289 | 263 | 10 | 70 | 26.3 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6a0fb21e21040834df2f296f7650980a669e7a30 | 374 | py | Python | apps/gamedoc/models.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | 3 | 2021-03-12T18:32:39.000Z | 2021-11-08T10:21:04.000Z | apps/gamedoc/models.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | null | null | null | apps/gamedoc/models.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | 2 | 2021-01-29T14:52:53.000Z | 2022-03-05T10:24:24.000Z | from django.db import models
# Create your models here.
class Gamedoc(models.Model):
link = models.URLField(max_length=500)
title = models.CharField(max_length=500)
repo_name = models.CharField(max_length=512, blank=True, null=True)
user_name = models.CharField(max_length=512, blank=True, null=True)
... | 28.769231 | 71 | 0.719251 | 54 | 374 | 4.796296 | 0.555556 | 0.138996 | 0.208494 | 0.277992 | 0.370656 | 0.370656 | 0.370656 | 0.370656 | 0.370656 | 0.370656 | 0 | 0.038462 | 0.165775 | 374 | 12 | 72 | 31.166667 | 0.791667 | 0.064171 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6a10bfc3e38883e78cd876111e7b6300fd43d471 | 529 | py | Python | python/Word/demo_doc.py | davidgjy/arch-lib | b4402b96d2540995a848e6c5f600b2d99847ded6 | [
"Apache-2.0"
] | null | null | null | python/Word/demo_doc.py | davidgjy/arch-lib | b4402b96d2540995a848e6c5f600b2d99847ded6 | [
"Apache-2.0"
] | null | null | null | python/Word/demo_doc.py | davidgjy/arch-lib | b4402b96d2540995a848e6c5f600b2d99847ded6 | [
"Apache-2.0"
] | null | null | null | import docx
doc = docx.Document('demo.docx')
print('paragraphs number: %s' % len(doc.paragraphs))
print('1st paragraph: %s' % doc.paragraphs[0].text)
print('2nd paragraph: %s' % doc.paragraphs[1].text)
print('paragraphs runs: %s' % len(doc.paragraphs[1].runs))
print('1st paragraph run: %s' % doc.paragraphs[1].r... | 44.083333 | 64 | 0.680529 | 83 | 529 | 4.337349 | 0.26506 | 0.288889 | 0.233333 | 0.208333 | 0.441667 | 0.344444 | 0.344444 | 0 | 0 | 0 | 0 | 0.036325 | 0.115312 | 529 | 11 | 65 | 48.090909 | 0.732906 | 0 | 0 | 0 | 0 | 0 | 0.322394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.8 | 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 | 1 | 0 | 4 |
6a27987a8cba79e77e7ec06fe0349b417f6ae225 | 44 | py | Python | exposing/_version.py | w4k2/exposing | 6abbced18aa567ed45426ba915f3b56e7aeca028 | [
"BSD-3-Clause"
] | null | null | null | exposing/_version.py | w4k2/exposing | 6abbced18aa567ed45426ba915f3b56e7aeca028 | [
"BSD-3-Clause"
] | 1 | 2018-05-28T10:35:02.000Z | 2018-05-28T10:35:02.000Z | exposing/_version.py | w4k2/exposing | 6abbced18aa567ed45426ba915f3b56e7aeca028 | [
"BSD-3-Clause"
] | null | null | null | """
``exposing``
"""
__version__ = '0.2.2'
| 7.333333 | 21 | 0.5 | 5 | 44 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.159091 | 44 | 5 | 22 | 8.8 | 0.405405 | 0.272727 | 0 | 0 | 0 | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6a296c2965af2f5264f62e16fe377851c022b76e | 44 | py | Python | scpp_base/scpp_base/src/db/__init__.py | scorelab/social-currency | f539893104bdfe098cfa58c8d9fabcbb00874c52 | [
"Apache-2.0"
] | 4 | 2018-10-02T06:31:18.000Z | 2019-11-16T15:21:34.000Z | scpp_base/scpp_base/src/db/__init__.py | horizon00/social-currency | f539893104bdfe098cfa58c8d9fabcbb00874c52 | [
"Apache-2.0"
] | 2 | 2017-12-06T11:54:14.000Z | 2019-11-11T11:34:06.000Z | scpp_base/scpp_base/src/db/__init__.py | horizon00/social-currency | f539893104bdfe098cfa58c8d9fabcbb00874c52 | [
"Apache-2.0"
] | 5 | 2017-02-27T10:10:41.000Z | 2019-11-11T11:45:37.000Z | _all__ = ["db_handler","coin_value_handler"] | 44 | 44 | 0.772727 | 6 | 44 | 4.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 44 | 1 | 44 | 44 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.622222 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dbde179232e6a3f834cec05a67d959715c486849 | 715 | py | Python | neural-networks.py | PacktPublishing/Python-Deep-Learning-for-Beginners- | 90f110158cbf0ce02fd4d5d09e3b2034428d9992 | [
"MIT"
] | 7 | 2019-02-16T02:52:12.000Z | 2021-11-08T13:10:46.000Z | neural-networks.py | PacktPublishing/Python-Deep-Learning-for-Beginners- | 90f110158cbf0ce02fd4d5d09e3b2034428d9992 | [
"MIT"
] | null | null | null | neural-networks.py | PacktPublishing/Python-Deep-Learning-for-Beginners- | 90f110158cbf0ce02fd4d5d09e3b2034428d9992 | [
"MIT"
] | 14 | 2018-11-18T04:33:38.000Z | 2021-08-14T03:29:18.000Z | import numpy as np
# Perceptron
def predict_perceptron(inputs, weights):
if np.dot(inputs, weights) > 0:
return 1
else:
return 0
def predict_perceptron_proper(inputs, weights):
def step_function(input):
return 1 if input > 0 else 0
def linear_model(inputs, weights):
r... | 23.064516 | 59 | 0.682517 | 94 | 715 | 5.06383 | 0.297872 | 0.273109 | 0.142857 | 0.201681 | 0.37395 | 0.239496 | 0.239496 | 0.239496 | 0.239496 | 0.239496 | 0 | 0.019749 | 0.220979 | 715 | 30 | 60 | 23.833333 | 0.834829 | 0.013986 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0.052632 | 0.210526 | 0.842105 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e016b94fa3454d62f7b448ca14631899dd78dc4c | 299 | py | Python | gravur/common/amountinput.py | F483/gravur | 575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5 | [
"MIT"
] | 3 | 2015-07-20T17:56:21.000Z | 2017-10-22T05:52:13.000Z | gravur/common/amountinput.py | F483/gravur | 575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5 | [
"MIT"
] | null | null | null | gravur/common/amountinput.py | F483/gravur | 575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5 | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright (c) 2015 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE file)
from kivy.uix.boxlayout import BoxLayout
from gravur.common.labelbox import LabelBox # NOQA
from gravur.utils import load_widget
@load_widget
class AmountInput(BoxLayout):
pass
| 21.357143 | 62 | 0.772575 | 42 | 299 | 5.452381 | 0.690476 | 0.113537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019531 | 0.143813 | 299 | 13 | 63 | 23 | 0.875 | 0.371237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.5 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
e04c1f351c8c0376a0ea90e165d6e346051fee43 | 7,612 | py | Python | migrations/versions/2018_04_20_data_src_refactor.py | AlexKouzy/ethnicity-facts-and-figures-publisher | 18ab2495a8633f585e18e607c7f75daa564a053d | [
"MIT"
] | null | null | null | migrations/versions/2018_04_20_data_src_refactor.py | AlexKouzy/ethnicity-facts-and-figures-publisher | 18ab2495a8633f585e18e607c7f75daa564a053d | [
"MIT"
] | null | null | null | migrations/versions/2018_04_20_data_src_refactor.py | AlexKouzy/ethnicity-facts-and-figures-publisher | 18ab2495a8633f585e18e607c7f75daa564a053d | [
"MIT"
] | null | null | null | """empty message
Revision ID: 2018_04_20_data_src_refactor
Revises: 2018_04_11_add_sandbox_topic
Create Date: 2018-04-20 13:03:32.478880
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
from sqlalchemy.dialects.postgresql import ARRAY
revision = '2018_04_20_data_src_refac... | 62.909091 | 152 | 0.759721 | 1,072 | 7,612 | 4.998134 | 0.103545 | 0.176372 | 0.146323 | 0.086786 | 0.879433 | 0.851437 | 0.779769 | 0.739455 | 0.62486 | 0.504666 | 0 | 0.020339 | 0.102207 | 7,612 | 120 | 153 | 63.433333 | 0.763682 | 0.042958 | 0 | 0.065217 | 0 | 0 | 0.440121 | 0.328504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.032609 | 0 | 0.054348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0eb4945ca1e15b4e7d0b451aa87077b0cebf76c6 | 10,595 | py | Python | src/hub/dataload/sources/drugcentral/drugcentral_upload.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | 1 | 2021-05-09T04:51:28.000Z | 2021-05-09T04:51:28.000Z | src/hub/dataload/sources/drugcentral/drugcentral_upload.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | null | null | null | src/hub/dataload/sources/drugcentral/drugcentral_upload.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | null | null | null | import biothings.hub.dataload.uploader as uploader
class DrugCentralUploader(uploader.DummySourceUploader):
name = "drugcentral"
__metadata__ = {
"src_meta" : {
"url" : "http://drugcentral.org/",
"license_url" : "http://drugcentral.org/privacy",
"lic... | 41.54902 | 65 | 0.224823 | 380 | 10,595 | 6.047368 | 0.271053 | 0.234987 | 0.400348 | 0.469974 | 0.612707 | 0.31114 | 0.073977 | 0.040905 | 0 | 0 | 0 | 0.000595 | 0.682775 | 10,595 | 254 | 66 | 41.712598 | 0.68313 | 0 | 0 | 0.416 | 0 | 0 | 0.21142 | 0.002548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004 | false | 0 | 0.004 | 0 | 0.024 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
0ed0e5f6ef98dbca0fc996f3f87ca29e7cb4b7a2 | 1,054 | py | Python | tests/test_functions/test_trig.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | 1 | 2020-06-09T05:43:33.000Z | 2020-06-09T05:43:33.000Z | tests/test_functions/test_trig.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | 15 | 2016-03-06T17:10:40.000Z | 2016-05-28T14:06:16.000Z | tests/test_functions/test_trig.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | null | null | null | from mathlibpy.functions import *
import unittest
class SinTester(unittest.TestCase):
def setUp(self):
self.sin = Sin()
def test_call(self):
self.assertEqual(self.sin(0), 0)
def test_eq(self):
self.assertEqual(self.sin, Sin())
def test_get_derivative_call(self):
sel... | 20.269231 | 66 | 0.63852 | 141 | 1,054 | 4.595745 | 0.212766 | 0.148148 | 0.263889 | 0.319444 | 0.734568 | 0.623457 | 0.45679 | 0.25 | 0.25 | 0 | 0 | 0.01467 | 0.223909 | 1,054 | 51 | 67 | 20.666667 | 0.777506 | 0 | 0 | 0.354839 | 0 | 0 | 0.00759 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.387097 | false | 0 | 0.064516 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0ee558decdd72d80756553cbdc2a73e521956143 | 134 | py | Python | cio/plugins/txt.py | beshrkayali/content-io | ae44aa4c4eba2234f940ca9d7a4bb310e25075b3 | [
"BSD-3-Clause"
] | 6 | 2015-02-12T20:23:42.000Z | 2020-01-10T09:42:32.000Z | cio/plugins/txt.py | beshrkayali/content-io | ae44aa4c4eba2234f940ca9d7a4bb310e25075b3 | [
"BSD-3-Clause"
] | 5 | 2015-09-08T08:54:39.000Z | 2020-01-10T12:13:21.000Z | cio/plugins/txt.py | beshrkayali/content-io | ae44aa4c4eba2234f940ca9d7a4bb310e25075b3 | [
"BSD-3-Clause"
] | 4 | 2015-06-29T15:21:41.000Z | 2019-12-06T09:29:30.000Z | # coding=utf-8
from __future__ import unicode_literals
from .base import BasePlugin
class TextPlugin(BasePlugin):
ext = 'txt'
| 13.4 | 39 | 0.753731 | 17 | 134 | 5.647059 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.171642 | 134 | 9 | 40 | 14.888889 | 0.855856 | 0.089552 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
160d55ef119cabea32b158df2e672f5773e80b28 | 217 | py | Python | backend/app/projectx/routing.py | emmawoollett/projectx | c061df01d581456884f46c2b8e3b478626501dec | [
"MIT"
] | null | null | null | backend/app/projectx/routing.py | emmawoollett/projectx | c061df01d581456884f46c2b8e3b478626501dec | [
"MIT"
] | null | null | null | backend/app/projectx/routing.py | emmawoollett/projectx | c061df01d581456884f46c2b8e3b478626501dec | [
"MIT"
] | null | null | null | from django.urls import re_path
from projectx.consumers import UserWebSocketConsumer
from .consumers import UserWebSocketConsumer
websocket_urlpatterns = [
re_path(r"^ws/$", UserWebSocketConsumer.as_asgi()),
]
| 21.7 | 55 | 0.801843 | 24 | 217 | 7.083333 | 0.625 | 0.070588 | 0.423529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115207 | 217 | 9 | 56 | 24.111111 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
16329b70c55c3c7cf597931457db274fe5d63821 | 327 | py | Python | pypad/active_skill/interfaces/orb_generator_asi.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/active_skill/interfaces/orb_generator_asi.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | pypad/active_skill/interfaces/orb_generator_asi.py | candyninja001/pypad | 82bfc104c2524ca54cc415d37d2c21fec471838f | [
"MIT"
] | null | null | null | import abc
from ...orb_attribute import OrbAttribute
# Interface for active skills that create specific orb types (whether board change, orb change, orb spawn, etc)
class OrbGeneratorASI(abc.ABC):
@abc.abstractmethod
def does_orb_generator_create_orb_attribute(self, orb_attribute: OrbAttribute) -> bool:
... | 36.333333 | 111 | 0.776758 | 43 | 327 | 5.744186 | 0.651163 | 0.145749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 327 | 9 | 112 | 36.333333 | 0.894928 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
16666943ca1f78d9acd45c2909883bd0b65b734d | 934 | py | Python | src/lib/sd2/test_addresses.py | zachkont/sd2 | 92d8c55a8c7ac51c00ba514be01955aa7162e4ef | [
"Apache-2.0"
] | null | null | null | src/lib/sd2/test_addresses.py | zachkont/sd2 | 92d8c55a8c7ac51c00ba514be01955aa7162e4ef | [
"Apache-2.0"
] | null | null | null | src/lib/sd2/test_addresses.py | zachkont/sd2 | 92d8c55a8c7ac51c00ba514be01955aa7162e4ef | [
"Apache-2.0"
] | null | null | null | #############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import logging
import pytest
from . import addresses
def test_pytest():
assert True
def test_object_e... | 30.129032 | 77 | 0.626338 | 112 | 934 | 4.901786 | 0.294643 | 0.260474 | 0.300546 | 0.160291 | 0.590164 | 0.530055 | 0.40255 | 0.40255 | 0.40255 | 0.31694 | 0 | 0.00492 | 0.12955 | 934 | 30 | 78 | 31.133333 | 0.670357 | 0.055675 | 0 | 0.210526 | 0 | 0 | 0.107438 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.315789 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1696d983057a2d937827a5a96f9b5500cb3c490c | 478 | py | Python | scripts/matrix_operations.py | h3ct0r/gas_mapping_example | 57bd8333b4832281fbb89019df440374e2b50b9b | [
"Unlicense"
] | 1 | 2022-02-28T21:55:23.000Z | 2022-02-28T21:55:23.000Z | scripts/matrix_operations.py | ArghyaChatterjee/gas_mapping_kerneldm | 57bd8333b4832281fbb89019df440374e2b50b9b | [
"Unlicense"
] | null | null | null | scripts/matrix_operations.py | ArghyaChatterjee/gas_mapping_kerneldm | 57bd8333b4832281fbb89019df440374e2b50b9b | [
"Unlicense"
] | 2 | 2021-12-14T05:15:18.000Z | 2022-02-28T21:55:10.000Z | import numpy as np
def get_position_of_minimum(matrix):
return np.unravel_index(np.nanargmin(matrix), matrix.shape)
def get_position_of_maximum(matrix):
return np.unravel_index(np.nanargmax(matrix), matrix.shape)
def get_distance_matrix(cell_grid_x, cell_grid_y, x, y):
return np.sqrt((x - cell_grid_x)... | 26.555556 | 67 | 0.725941 | 83 | 478 | 3.831325 | 0.301205 | 0.201258 | 0.113208 | 0.100629 | 0.622642 | 0.477987 | 0.301887 | 0.301887 | 0.301887 | 0.138365 | 0 | 0.009852 | 0.150628 | 478 | 17 | 68 | 28.117647 | 0.773399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
16988b5f9f77ebb40b1eb37bef67f48bd826786d | 121 | py | Python | ShanghaiPower/build_up.py | biljiang/pyprojects | 10095c6b8f2f32831e8a36e122d1799f135dc5df | [
"MIT"
] | null | null | null | ShanghaiPower/build_up.py | biljiang/pyprojects | 10095c6b8f2f32831e8a36e122d1799f135dc5df | [
"MIT"
] | null | null | null | ShanghaiPower/build_up.py | biljiang/pyprojects | 10095c6b8f2f32831e8a36e122d1799f135dc5df | [
"MIT"
] | null | null | null | from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["license_chk.py"]))
| 20.166667 | 50 | 0.793388 | 17 | 121 | 5.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 121 | 5 | 51 | 24.2 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
169b6898f6bda824a9456c155bd29a6f84fdb9e8 | 251 | py | Python | easyneuron/math/__init__.py | TrendingTechnology/easyneuron | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | [
"Apache-2.0"
] | 1 | 2021-12-14T19:21:44.000Z | 2021-12-14T19:21:44.000Z | easyneuron/math/__init__.py | TrendingTechnology/easyneuron | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | [
"Apache-2.0"
] | null | null | null | easyneuron/math/__init__.py | TrendingTechnology/easyneuron | b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a | [
"Apache-2.0"
] | null | null | null | """easyneuron.math contains all of the maths tools that you'd ever need for your AI projects, when used alongside Numpy.
To suggest more to be added, please add an issue on the GitHub repo.
"""
from easyneuron.math.distance import euclidean_distance | 41.833333 | 120 | 0.788845 | 42 | 251 | 4.690476 | 0.880952 | 0.142132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155378 | 251 | 6 | 121 | 41.833333 | 0.929245 | 0.74502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
16a25b6b94677a9d90afcb9439df38171a1429af | 25,083 | py | Python | trove/tests/unittests/quota/test_quota.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | trove/tests/unittests/quota/test_quota.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | trove/tests/unittests/quota/test_quota.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# 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 l... | 42.513559 | 79 | 0.574812 | 2,509 | 25,083 | 5.513352 | 0.080909 | 0.084436 | 0.026025 | 0.035712 | 0.803152 | 0.731728 | 0.70021 | 0.67845 | 0.664209 | 0.650184 | 0 | 0.016121 | 0.339712 | 25,083 | 589 | 80 | 42.585739 | 0.819104 | 0.023323 | 0 | 0.627706 | 0 | 0 | 0.019089 | 0.000901 | 0 | 0 | 0 | 0 | 0.222944 | 1 | 0.0671 | false | 0 | 0.030303 | 0 | 0.103896 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
16d47d0537155255ce27cd3c3479b098ca6ecf13 | 665 | py | Python | ast_version/src/binop.py | lucassa3/CCompiler | ad788f692dc2863da9111b4a42f54277ac29d5ae | [
"MIT"
] | 1 | 2020-04-29T21:30:11.000Z | 2020-04-29T21:30:11.000Z | ast_version/src/binop.py | lucassa3/CCompiler | ad788f692dc2863da9111b4a42f54277ac29d5ae | [
"MIT"
] | 10 | 2018-08-20T18:10:56.000Z | 2019-04-05T14:45:11.000Z | ast_version/src/binop.py | lucassa3/CCompiler | ad788f692dc2863da9111b4a42f54277ac29d5ae | [
"MIT"
] | null | null | null | from node import Node
class BinOp(Node):
def eval(self, st):
a = self.children[0].eval(st)
b = self.children[1].eval(st)
if self.value == "MINUS":
return a - b
elif self.value == "PLUS":
return a + b
elif self.value == "MULT":
return a * b
elif self.value == "DIV":
return a // b... | 19.558824 | 32 | 0.542857 | 102 | 665 | 3.539216 | 0.284314 | 0.274238 | 0.249307 | 0.387812 | 0.523546 | 0.523546 | 0 | 0 | 0 | 0 | 0 | 0.004338 | 0.306767 | 665 | 33 | 33 | 20.151515 | 0.778742 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.518519 | 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 | 1 | 0 | 0 | 4 |
16d935b63ca1c52fcdad82da9c168df67d096ff5 | 527 | py | Python | src/brisk.py | chaoer/brisk-descriptor | 140b08539768b8038680fd86d7fda9688dd5b908 | [
"BSD-3-Clause"
] | 18 | 2015-02-05T00:44:24.000Z | 2018-11-30T03:20:51.000Z | src/brisk.py | chaoer/brisk-descriptor | 140b08539768b8038680fd86d7fda9688dd5b908 | [
"BSD-3-Clause"
] | 4 | 2016-06-25T20:04:59.000Z | 2019-01-29T19:34:24.000Z | src/brisk.py | chaoer/brisk-descriptor | 140b08539768b8038680fd86d7fda9688dd5b908 | [
"BSD-3-Clause"
] | 14 | 2015-11-15T05:20:28.000Z | 2019-01-02T12:50:44.000Z |
import pybrisk
class Brisk:
def __init__(self, thresh=60, octaves=4):
self.thresh = thresh
self.octaves = octaves
self.descriptor_extractor = pybrisk.create()
def __del__(self):
pybrisk.destroy(self.descriptor_extractor)
def detect(self, img):
return pybrisk.detec... | 26.35 | 57 | 0.648956 | 58 | 527 | 5.689655 | 0.362069 | 0.169697 | 0.278788 | 0.157576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.259962 | 527 | 19 | 58 | 27.736842 | 0.838462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
bc6acbe604cb779e768957863e598871559e6e15 | 3,966 | py | Python | tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py | Jian137/mmediting-1 | e1ac6c93441ec96696d0b530f040b91b809015b6 | [
"Apache-2.0"
] | 1,884 | 2020-07-09T18:53:43.000Z | 2022-03-31T12:06:18.000Z | tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py | Jian137/mmediting-1 | e1ac6c93441ec96696d0b530f040b91b809015b6 | [
"Apache-2.0"
] | 622 | 2020-07-09T18:52:27.000Z | 2022-03-31T14:41:09.000Z | tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py | Jian137/mmediting-1 | e1ac6c93441ec96696d0b530f040b91b809015b6 | [
"Apache-2.0"
] | 361 | 2020-07-09T19:21:47.000Z | 2022-03-31T09:58:27.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmedit.models.backbones import ContextualAttentionNeck, DeepFillEncoder
from mmedit.models.common import SimpleGatedConvModule
def test_deepfill_enc():
encoder = DeepFillEncoder()
x = torch.randn((2, 5, 256, 256))
outputs = encoder(x)
... | 35.72973 | 76 | 0.620524 | 512 | 3,966 | 4.732422 | 0.144531 | 0.096574 | 0.05778 | 0.061907 | 0.755262 | 0.704086 | 0.693768 | 0.693768 | 0.693768 | 0.693768 | 0 | 0.086606 | 0.248865 | 3,966 | 110 | 77 | 36.054545 | 0.726754 | 0.024206 | 0 | 0.72043 | 0 | 0 | 0.029997 | 0 | 0 | 0 | 0 | 0.009091 | 0.505376 | 1 | 0.021505 | false | 0 | 0.032258 | 0 | 0.053763 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bc90147c820b8957a1562bdb12623216308ec658 | 308 | py | Python | dedupe/_init.py | neozhangthe1/dedupe | aff99e6bd027291eecfb78eae08aa73877f4fff0 | [
"MIT"
] | null | null | null | dedupe/_init.py | neozhangthe1/dedupe | aff99e6bd027291eecfb78eae08aa73877f4fff0 | [
"MIT"
] | null | null | null | dedupe/_init.py | neozhangthe1/dedupe | aff99e6bd027291eecfb78eae08aa73877f4fff0 | [
"MIT"
] | null | null | null | from dedupe.api import StaticDedupe, Dedupe
from dedupe.api import StaticRecordLink, RecordLink
from dedupe.api import StaticGazetteer, Gazetteer
from dedupe.core import randomPairs, randomPairsMatch, frozendict
from dedupe.convenience import consoleLabel, trainingDataDedupe, trainingDataLink, canonicalize
| 51.333333 | 95 | 0.866883 | 33 | 308 | 8.090909 | 0.545455 | 0.187266 | 0.146067 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 308 | 5 | 96 | 61.6 | 0.953571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bca5cc541dfab73d45981c6f120eb783e0579f49 | 131 | py | Python | jwt_auth/admin.py | alaraayan/todo-backend | 37e46b6789012c2d64a39f6d2429b1ae893dba37 | [
"CC-BY-3.0"
] | null | null | null | jwt_auth/admin.py | alaraayan/todo-backend | 37e46b6789012c2d64a39f6d2429b1ae893dba37 | [
"CC-BY-3.0"
] | null | null | null | jwt_auth/admin.py | alaraayan/todo-backend | 37e46b6789012c2d64a39f6d2429b1ae893dba37 | [
"CC-BY-3.0"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import get_user_model
User = get_user_model()
admin.site.register(User)
| 21.833333 | 46 | 0.824427 | 21 | 131 | 4.952381 | 0.52381 | 0.192308 | 0.326923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099237 | 131 | 5 | 47 | 26.2 | 0.881356 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bccea585927cd051fb0a3ed4b33c0aada5c1d9b8 | 456 | py | Python | sample_project/exam/exam.py | pcse/gitlab_tools | 2896b636b0f8955bdb5f2236e257cc5d3efd54d7 | [
"BSD-3-Clause"
] | null | null | null | sample_project/exam/exam.py | pcse/gitlab_tools | 2896b636b0f8955bdb5f2236e257cc5d3efd54d7 | [
"BSD-3-Clause"
] | null | null | null | sample_project/exam/exam.py | pcse/gitlab_tools | 2896b636b0f8955bdb5f2236e257cc5d3efd54d7 | [
"BSD-3-Clause"
] | 1 | 2022-03-17T16:51:08.000Z | 2022-03-17T16:51:08.000Z | """
These methods can be called inside WebCAT to determine which tests are loaded
for a given section/exam pair. This allows a common WebCAT submission site to
support different project tests
"""
def section():
# Instructor section (instructor to change before distribution)
#return 8527
#return 8528
r... | 25.333333 | 78 | 0.723684 | 64 | 456 | 5.15625 | 0.625 | 0.10303 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.219298 | 456 | 17 | 79 | 26.823529 | 0.893258 | 0.782895 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
bcdf1f594847bcd658c78df9bc4bf018e0d729b0 | 201 | py | Python | tests/test_util.py | danqing/dqpy | f296341adb0dbbfb361eaf8b815b0ffd189ebf58 | [
"MIT"
] | null | null | null | tests/test_util.py | danqing/dqpy | f296341adb0dbbfb361eaf8b815b0ffd189ebf58 | [
"MIT"
] | 25 | 2018-05-22T15:59:37.000Z | 2020-02-14T08:08:24.000Z | tests/test_util.py | danqing/dqpy | f296341adb0dbbfb361eaf8b815b0ffd189ebf58 | [
"MIT"
] | null | null | null | import unittest
from dq import util
class TestUtil(unittest.TestCase):
def test_safe_cast(self):
assert util.safe_cast('1', int) == 1
assert util.safe_cast('meow', int, 2) == 2
| 18.272727 | 50 | 0.656716 | 30 | 201 | 4.266667 | 0.6 | 0.1875 | 0.21875 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.223881 | 201 | 10 | 51 | 20.1 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.024876 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
bcf316f9ca83440854d986b21a72745912b71d9f | 656 | py | Python | materials/migrations/0072_auto_20190422_1708.py | mgovoni-devel/MatD3 | 5b68d147f886bce427f92bb560159e62cec2d4e7 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2019-09-14T07:24:09.000Z | 2021-06-15T16:15:05.000Z | materials/migrations/0072_auto_20190422_1708.py | mgovoni-devel/MatD3 | 5b68d147f886bce427f92bb560159e62cec2d4e7 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2019-12-05T01:49:19.000Z | 2021-06-23T18:34:51.000Z | materials/migrations/0072_auto_20190422_1708.py | mgovoni-devel/MatD3 | 5b68d147f886bce427f92bb560159e62cec2d4e7 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-11-06T21:16:57.000Z | 2019-11-30T10:51:44.000Z | # Generated by Django 2.1.7 on 2019-04-22 21:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('materials', '0071_auto_20190416_1557'),
]
operations = [
migrations.RemoveField(
model_name='atomicpositions',
name='idinfo_... | 22.62069 | 49 | 0.565549 | 55 | 656 | 6.6 | 0.636364 | 0.209366 | 0.214876 | 0.247934 | 0.404959 | 0.404959 | 0 | 0 | 0 | 0 | 0 | 0.070455 | 0.329268 | 656 | 28 | 50 | 23.428571 | 0.754545 | 0.068598 | 0 | 0.454545 | 1 | 0 | 0.203612 | 0.037767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c2449756d626addb11627279707eb2913ce92ba | 490 | py | Python | tests/test_wrapped_driver.py | balexander85/wrapped_driver | 2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1 | [
"MIT"
] | null | null | null | tests/test_wrapped_driver.py | balexander85/wrapped_driver | 2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1 | [
"MIT"
] | null | null | null | tests/test_wrapped_driver.py | balexander85/wrapped_driver | 2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1 | [
"MIT"
] | null | null | null | import pytest
from selenium.common.exceptions import WebDriverException
from wrapped_driver import WrappedDriver
def test_empty_chromedriver_path():
"""Assert error is raised if no chromedriver path is used"""
with pytest.raises(WebDriverException):
WrappedDriver(executable_path="", headless=True)
... | 28.823529 | 64 | 0.763265 | 59 | 490 | 6.20339 | 0.474576 | 0.174863 | 0.147541 | 0.147541 | 0.420765 | 0.420765 | 0.420765 | 0.420765 | 0.420765 | 0.420765 | 0 | 0 | 0.159184 | 490 | 16 | 65 | 30.625 | 0.88835 | 0.222449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4c2951c766fe0cde976ee8004540518c1924599a | 113 | py | Python | SmartAPI/rdf/LinkedList.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | SmartAPI/rdf/LinkedList.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | SmartAPI/rdf/LinkedList.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | from SmartAPI.rdf.List import List
class LinkedList(List):
def __init__(self):
List.__init__(self)
| 16.142857 | 34 | 0.699115 | 15 | 113 | 4.733333 | 0.666667 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20354 | 113 | 6 | 35 | 18.833333 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c31cf7c510d884081297346de14530206f0c46f | 24 | py | Python | runway/core/providers/__init__.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | 134 | 2018-02-26T21:35:23.000Z | 2022-03-03T00:30:27.000Z | runway/core/providers/__init__.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 937 | 2018-03-08T22:04:35.000Z | 2022-03-30T12:21:47.000Z | runway/core/providers/__init__.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 70 | 2018-02-26T23:48:11.000Z | 2022-03-02T18:44:30.000Z | """Runway providers."""
| 12 | 23 | 0.625 | 2 | 24 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 24 | 1 | 24 | 24 | 0.681818 | 0.708333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c66dd7c5bb758efe86e3099648aa0be4405bfa6 | 75 | py | Python | genegenie/admin/__init__.py | genegeniebio/genegenie-admin | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | [
"MIT"
] | null | null | null | genegenie/admin/__init__.py | genegeniebio/genegenie-admin | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | [
"MIT"
] | null | null | null | genegenie/admin/__init__.py | genegeniebio/genegenie-admin | 93e9253febc14b17d17a5fbc2eb0e22f1c974083 | [
"MIT"
] | null | null | null | '''
DNA++ (c) DNA++ 2017
All rights reserved.
@author: neilswainston
'''
| 9.375 | 22 | 0.626667 | 9 | 75 | 5.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.173333 | 75 | 7 | 23 | 10.714286 | 0.693548 | 0.88 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d5edbea518993ed30402ca6ed7151f569ce035ff | 42 | py | Python | main.py | reflective21/iportfolio | 39db626a9754c1df44ac698f3d8988fdc4e7c6d5 | [
"MIT"
] | null | null | null | main.py | reflective21/iportfolio | 39db626a9754c1df44ac698f3d8988fdc4e7c6d5 | [
"MIT"
] | null | null | null | main.py | reflective21/iportfolio | 39db626a9754c1df44ac698f3d8988fdc4e7c6d5 | [
"MIT"
] | null | null | null | name = "David Asiru Adetomiwa"
print(name) | 21 | 30 | 0.761905 | 6 | 42 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 42 | 2 | 31 | 21 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
91179c358fa25c39a2ad4c7490688913f5e6e658 | 24 | py | Python | src/reversion/version.py | maraujop/django-reversion | c9e7788ca858d3c75b617a7277ffcd177a19d414 | [
"BSD-3-Clause"
] | null | null | null | src/reversion/version.py | maraujop/django-reversion | c9e7788ca858d3c75b617a7277ffcd177a19d414 | [
"BSD-3-Clause"
] | null | null | null | src/reversion/version.py | maraujop/django-reversion | c9e7788ca858d3c75b617a7277ffcd177a19d414 | [
"BSD-3-Clause"
] | null | null | null | __version__ = (1, 8, 5)
| 12 | 23 | 0.583333 | 4 | 24 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.208333 | 24 | 1 | 24 | 24 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9123424991c5403f506995b73c11800e6232bbeb | 274 | py | Python | zilean/system/zilean_migrator.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_migrator.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_migrator.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | from .utils.migrations import (migrate_database_from,
migrate_machine_from,
zilean_rollback_database_backup,
zilean_rollback_machine_backup)
class ZileanMigrator(object):
pass
| 34.25 | 63 | 0.569343 | 22 | 274 | 6.636364 | 0.636364 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.394161 | 274 | 7 | 64 | 39.142857 | 0.879518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9131fc3d32e64957b9b0364448ce5a53a40a4303 | 110 | py | Python | app.py | 19857625778/watchlist | 284e3f814394d0fda6e262ab84177a493027c19e | [
"MIT"
] | null | null | null | app.py | 19857625778/watchlist | 284e3f814394d0fda6e262ab84177a493027c19e | [
"MIT"
] | null | null | null | app.py | 19857625778/watchlist | 284e3f814394d0fda6e262ab84177a493027c19e | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(_name_)
@app.route('/')
def hello():
return 'welcome to my watchlist' | 18.333333 | 36 | 0.690909 | 16 | 110 | 4.625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 110 | 6 | 36 | 18.333333 | 0.813187 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
913583ff296aa5d8ee63fb484726346d1b7a2c13 | 151 | py | Python | src/zmbrelev/config.py | Zumbi-ML/zmbRELEV | e6a6f789804d7230415f390da905e94ae2ab27f5 | [
"BSD-2-Clause"
] | null | null | null | src/zmbrelev/config.py | Zumbi-ML/zmbRELEV | e6a6f789804d7230415f390da905e94ae2ab27f5 | [
"BSD-2-Clause"
] | null | null | null | src/zmbrelev/config.py | Zumbi-ML/zmbRELEV | e6a6f789804d7230415f390da905e94ae2ab27f5 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
import os
this_file_path = os.path.dirname(os.path.realpath(__file__))
MODELS_DIR = os.path.join(this_file_path, "models/")
| 18.875 | 60 | 0.708609 | 24 | 151 | 4.083333 | 0.541667 | 0.183673 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.112583 | 151 | 7 | 61 | 21.571429 | 0.723881 | 0.139073 | 0 | 0 | 0 | 0 | 0.054688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
e691c0247838523436befe1e1ccaf96b1e1135db | 374 | py | Python | src/minisaml/internal/constants.py | HENNGE/minisaml | d96aa5d294eee60521ad3c7084e8659b25935cee | [
"Apache-2.0"
] | 2 | 2020-09-13T15:55:50.000Z | 2021-01-07T07:40:24.000Z | src/minisaml/internal/constants.py | HENNGE/minisaml | d96aa5d294eee60521ad3c7084e8659b25935cee | [
"Apache-2.0"
] | 11 | 2020-08-26T12:27:39.000Z | 2021-11-17T16:10:00.000Z | src/minisaml/internal/constants.py | HENNGE/minisaml | d96aa5d294eee60521ad3c7084e8659b25935cee | [
"Apache-2.0"
] | 1 | 2021-10-07T11:49:28.000Z | 2021-10-07T11:49:28.000Z | NAMES_SAML2_PROTOCOL = "urn:oasis:names:tc:SAML:2.0:protocol"
NAMES_SAML2_ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion"
NAMEID_FORMAT_UNSPECIFIED = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
BINDINGS_HTTP_POST = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
DATE_TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
... | 53.428571 | 83 | 0.759358 | 68 | 374 | 3.985294 | 0.397059 | 0.118081 | 0.191882 | 0.221402 | 0.346863 | 0.232472 | 0.232472 | 0 | 0 | 0 | 0 | 0.02809 | 0.048128 | 374 | 6 | 84 | 62.333333 | 0.733146 | 0 | 0 | 0 | 0 | 0 | 0.564171 | 0.516043 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6973c5ea944d5bc8b7dc232052cd5073acf79bf | 253 | py | Python | concat_col_app/factories.py | thinkAmi-sandbox/django-datatables-view-sample | ac3df721089489e61c09ac75d320be3704c72105 | [
"Unlicense"
] | null | null | null | concat_col_app/factories.py | thinkAmi-sandbox/django-datatables-view-sample | ac3df721089489e61c09ac75d320be3704c72105 | [
"Unlicense"
] | null | null | null | concat_col_app/factories.py | thinkAmi-sandbox/django-datatables-view-sample | ac3df721089489e61c09ac75d320be3704c72105 | [
"Unlicense"
] | null | null | null | import factory
from concat_col_app.models import Color, Apple
class ColorFactory(factory.django.DjangoModelFactory):
class Meta:
model = Color
class AppleFactory(factory.django.DjangoModelFactory):
class Meta:
model = Apple
| 18.071429 | 54 | 0.73913 | 28 | 253 | 6.607143 | 0.571429 | 0.140541 | 0.335135 | 0.389189 | 0.486486 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197628 | 253 | 13 | 55 | 19.461538 | 0.91133 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e6bc053f9c92b2bf8e29c294b8627f9ea57a47fd | 29 | py | Python | rses/__init__.py | iScrE4m/RSES | 88299f105ded8838243eab8b25ab1626c97d1179 | [
"MIT"
] | 1 | 2022-02-16T15:06:22.000Z | 2022-02-16T15:06:22.000Z | rses/__init__.py | djetelina/RSES | 88299f105ded8838243eab8b25ab1626c97d1179 | [
"MIT"
] | null | null | null | rses/__init__.py | djetelina/RSES | 88299f105ded8838243eab8b25ab1626c97d1179 | [
"MIT"
] | null | null | null | # coding=utf-8
"""RSES :)"""
| 9.666667 | 14 | 0.482759 | 4 | 29 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 29 | 2 | 15 | 14.5 | 0.52 | 0.724138 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6bf66183d1220ed94fa05bc46a4ec69c5cf4ba5 | 130 | py | Python | learning_python/org/allnix/util.py | ykyang/org.allnix.python | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | [
"Apache-2.0"
] | null | null | null | learning_python/org/allnix/util.py | ykyang/org.allnix.python | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | [
"Apache-2.0"
] | null | null | null | learning_python/org/allnix/util.py | ykyang/org.allnix.python | f9d74db2db026b20e925ac40dbca7d21b3ac0b0f | [
"Apache-2.0"
] | null | null | null | def write(message: str):
print("org.allnix", message)
def read() -> str:
"""Returns a string"""
return "org.allnix"
| 16.25 | 32 | 0.6 | 17 | 130 | 4.588235 | 0.705882 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 130 | 7 | 33 | 18.571429 | 0.764706 | 0.123077 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6c28ea190ebaccb28d1869f9e2a7ef2b94d001d | 2,079 | py | Python | tetrisanim3.py | daniel-chuang/tetris | 518bd7b1fd80babc34a1da323b2f50d88c31ed4a | [
"MIT"
] | null | null | null | tetrisanim3.py | daniel-chuang/tetris | 518bd7b1fd80babc34a1da323b2f50d88c31ed4a | [
"MIT"
] | null | null | null | tetrisanim3.py | daniel-chuang/tetris | 518bd7b1fd80babc34a1da323b2f50d88c31ed4a | [
"MIT"
] | null | null | null | # animation for medium article
from termcolor import colored
import time
import imageio
import pyautogui
pyautogui.FAILSAFE = True
matrix = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0... | 37.8 | 91 | 0.398268 | 343 | 2,079 | 2.413994 | 0.172012 | 0.355072 | 0.514493 | 0.666667 | 0.421498 | 0.320048 | 0.320048 | 0.237923 | 0.237923 | 0.224638 | 0 | 0.184466 | 0.405483 | 2,079 | 54 | 92 | 38.5 | 0.485437 | 0.022607 | 0 | 0.333333 | 0 | 0 | 0.019714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.145833 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6c4f83ee3a07eb68063b52c122a3a5c692004c3 | 276 | py | Python | hierarchical_app/views.py | stephken/Hierarchical_assessment | 537219903357d97d1354a8f262badba9729fb5e0 | [
"MIT"
] | null | null | null | hierarchical_app/views.py | stephken/Hierarchical_assessment | 537219903357d97d1354a8f262badba9729fb5e0 | [
"MIT"
] | null | null | null | hierarchical_app/views.py | stephken/Hierarchical_assessment | 537219903357d97d1354a8f262badba9729fb5e0 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from hierarchical_app.models import Folder
# Create your views here.
def index_view(request):
return render(request, 'index.html', {'welcome': "Welcome to Kens Hierarchical Data and You assessment", 'folders': Folder.objects.all()})
| 30.666667 | 142 | 0.764493 | 37 | 276 | 5.648649 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 276 | 8 | 143 | 34.5 | 0.870833 | 0.083333 | 0 | 0 | 0 | 0 | 0.304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
e6de80977f40faa2f17ffea735e4529c245402b4 | 320 | py | Python | app/helpers/__init__.py | Hacker-1202/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 14 | 2021-11-05T11:27:25.000Z | 2022-02-28T02:04:32.000Z | app/helpers/__init__.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 2 | 2022-01-24T22:00:44.000Z | 2022-01-31T13:13:27.000Z | app/helpers/__init__.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 5 | 2022-01-02T13:33:17.000Z | 2022-02-26T13:09:50.000Z |
"""
Selfium Helper Files
~~~~~~~~~~~~~~~~~~~
All Helper Files used in Selfium project;
:copyright: (c) 2021 - Caillou and ZeusHay;
:license: MIT, see LICENSE for more details.
"""
from .getUser import *
from .getGuild import *
from .params import *
from .notify import *
from .sendEmbed import *
from .isStaff import * | 21.333333 | 44 | 0.6875 | 41 | 320 | 5.365854 | 0.658537 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.1625 | 320 | 15 | 45 | 21.333333 | 0.80597 | 0.534375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e6f7da2b0c80534457eb53c6aaa04a6eb69ac541 | 2,562 | py | Python | tests/test_try.py | threecifanggen/python-functional-programming | bd17281e5f24db826266f509bc54b25362c0d2a1 | [
"MIT"
] | 3 | 2021-10-05T09:12:36.000Z | 2021-11-30T07:11:58.000Z | tests/test_try.py | threecifanggen/python-functional-programming | bd17281e5f24db826266f509bc54b25362c0d2a1 | [
"MIT"
] | 14 | 2021-10-11T05:31:15.000Z | 2021-12-16T12:52:47.000Z | tests/test_try.py | threecifanggen/python-functional-programming | bd17281e5f24db826266f509bc54b25362c0d2a1 | [
"MIT"
] | null | null | null | '''
Author: huangbaochen<huangbaochenwo@live.com>
Date: 2021-12-11 20:04:19
LastEditTime: 2021-12-11 21:46:16
LastEditors: huangbaochen<huangbaochenwo@live.com>
Description: 测试Try单子
No MERCY
'''
import pytest
from fppy.try_monad import Try, Success, Fail
from fppy.option import Just, Nothing
@pytest.mark.try_monad
def... | 29.790698 | 66 | 0.673692 | 352 | 2,562 | 4.778409 | 0.181818 | 0.222949 | 0.240785 | 0.258026 | 0.668252 | 0.656956 | 0.548751 | 0.381094 | 0.283591 | 0.241974 | 0 | 0.034828 | 0.181889 | 2,562 | 85 | 67 | 30.141176 | 0.767653 | 0.083138 | 0 | 0.396552 | 0 | 0 | 0.101239 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 1 | 0.137931 | true | 0 | 0.051724 | 0 | 0.189655 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6fa166658f7b4a5f652c93e09a1ac34583195f0 | 123 | py | Python | src/789A.py | viing937/codeforces | d694eb6967cd56af02963c3a662066048cb78d07 | [
"MIT"
] | 2 | 2016-08-19T09:47:03.000Z | 2016-10-01T10:15:03.000Z | src/789A.py | viing937/codeforces | d694eb6967cd56af02963c3a662066048cb78d07 | [
"MIT"
] | null | null | null | src/789A.py | viing937/codeforces | d694eb6967cd56af02963c3a662066048cb78d07 | [
"MIT"
] | 1 | 2015-07-01T23:57:32.000Z | 2015-07-01T23:57:32.000Z | n, k = map(int, input().split())
w = list(map(int, input().split()))
r = sum(map(lambda x: (x+k-1)//k, w))
print((r+1)//2)
| 24.6 | 37 | 0.536585 | 26 | 123 | 2.538462 | 0.576923 | 0.181818 | 0.333333 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.130081 | 123 | 4 | 38 | 30.75 | 0.588785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc01125ff8253bbaef2b133518f03e3663e85d73 | 216 | py | Python | main/models.py | yejun1060/SbjctSclctn | eca6a9d09cf81fce262ea58ca90e69ee5735ab16 | [
"MIT"
] | null | null | null | main/models.py | yejun1060/SbjctSclctn | eca6a9d09cf81fce262ea58ca90e69ee5735ab16 | [
"MIT"
] | null | null | null | main/models.py | yejun1060/SbjctSclctn | eca6a9d09cf81fce262ea58ca90e69ee5735ab16 | [
"MIT"
] | 1 | 2021-06-08T17:41:42.000Z | 2021-06-08T17:41:42.000Z | from django.db import models
class Account(models.Model):
clsNb = models.IntegerField()
Name = models.CharField(max_length=10)
pw = models.IntegerField()
def __str__(self):
return self.Name | 21.6 | 42 | 0.689815 | 27 | 216 | 5.333333 | 0.740741 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.208333 | 216 | 10 | 43 | 21.6 | 0.830409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fc165549752f98bd300323b664ce1555196f65d8 | 661 | py | Python | pyblazing/__init__.py | Mattlk13/pyBlazing | 5c3042c510ab17e9f9d1647e1873d3d04313d900 | [
"Apache-2.0"
] | null | null | null | pyblazing/__init__.py | Mattlk13/pyBlazing | 5c3042c510ab17e9f9d1647e1873d3d04313d900 | [
"Apache-2.0"
] | null | null | null | pyblazing/__init__.py | Mattlk13/pyBlazing | 5c3042c510ab17e9f9d1647e1873d3d04313d900 | [
"Apache-2.0"
] | null | null | null | from .api import run_query_get_token
from .api import convert_to_dask
from .api import run_query_get_results
from .api import run_query_get_concat_results
from .api import register_file_system
from .api import deregister_file_system
from .api import FileSystemType, DriverType, EncryptionType
from .api import SchemaFro... | 33.05 | 60 | 0.857791 | 104 | 661 | 5.134615 | 0.346154 | 0.196629 | 0.365169 | 0.089888 | 0.423221 | 0.258427 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.110439 | 661 | 19 | 61 | 34.789474 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fc23560a0050cb2a7fdf80d872323f5e40124603 | 118 | py | Python | myapp.py | dataholiks/flask_heroku_scheduler | d2b4c2c8fdee066aea729c1566bfbaf52c068557 | [
"MIT"
] | 7 | 2019-03-20T01:48:42.000Z | 2021-07-02T15:51:36.000Z | myapp.py | dataholiks/flask_heroku_scheduler | d2b4c2c8fdee066aea729c1566bfbaf52c068557 | [
"MIT"
] | null | null | null | myapp.py | dataholiks/flask_heroku_scheduler | d2b4c2c8fdee066aea729c1566bfbaf52c068557 | [
"MIT"
] | 1 | 2020-09-17T06:36:24.000Z | 2020-09-17T06:36:24.000Z | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'This is the app index page.'
| 14.75 | 40 | 0.669492 | 18 | 118 | 4.166667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194915 | 118 | 7 | 41 | 16.857143 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
fc3233cb1459781c899740baf647a5f25ec92581 | 541 | py | Python | transformers/string/strlen_transformer.py | ucds-sg/h2oai | 7042860767dc25d1a7d7122103bbd5016d02df53 | [
"Apache-2.0"
] | null | null | null | transformers/string/strlen_transformer.py | ucds-sg/h2oai | 7042860767dc25d1a7d7122103bbd5016d02df53 | [
"Apache-2.0"
] | null | null | null | transformers/string/strlen_transformer.py | ucds-sg/h2oai | 7042860767dc25d1a7d7122103bbd5016d02df53 | [
"Apache-2.0"
] | null | null | null | """Returns the string length of categorical values"""
from h2oaicore.transformer_utils import CustomTransformer
import datatable as dt
import numpy as np
class MyStrLenEncoderTransformer(CustomTransformer):
@staticmethod
def get_default_properties():
return dict(col_type="any", min_cols=1, max_cols=1,... | 31.823529 | 82 | 0.724584 | 74 | 541 | 5.175676 | 0.689189 | 0.02611 | 0.073107 | 0.083551 | 0.109661 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011086 | 0.166359 | 541 | 16 | 83 | 33.8125 | 0.838137 | 0.086876 | 0 | 0 | 0 | 0 | 0.006148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0.272727 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
fc34bcbcfb8ac1f6bc09817c52d24607717e7ad1 | 235 | py | Python | geometry/eolearn/geometry/__init__.py | eerzin/eo-learn | 53c5cc229de13b98b5778aeb1d45950c25bf2f95 | [
"MIT"
] | 1 | 2019-04-12T09:03:52.000Z | 2019-04-12T09:03:52.000Z | geometry/eolearn/geometry/__init__.py | eerzin/eo-learn | 53c5cc229de13b98b5778aeb1d45950c25bf2f95 | [
"MIT"
] | null | null | null | geometry/eolearn/geometry/__init__.py | eerzin/eo-learn | 53c5cc229de13b98b5778aeb1d45950c25bf2f95 | [
"MIT"
] | 3 | 2019-05-03T09:43:57.000Z | 2019-09-10T17:29:39.000Z | """
Subpackage containing EOTasks for geometrical transformations
"""
from .utilities import ErosionTask, VectorToRaster, RasterToVector
from .sampling import PointSamplingTask, PointSampler, PointRasterSampler
__version__ = '0.4.2'
| 26.111111 | 73 | 0.821277 | 22 | 235 | 8.590909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.106383 | 235 | 8 | 74 | 29.375 | 0.885714 | 0.259574 | 0 | 0 | 0 | 0 | 0.03012 | 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 | 1 | 0 | 0 | 4 |
fc82e467705d5e2af949a070febf617a72de9774 | 152 | py | Python | setup.py | mvduin/py-uio | 1ad5eb6e1cfeae722535fd6ed7e485a0afd84683 | [
"MIT"
] | 38 | 2016-04-23T06:43:00.000Z | 2022-03-17T17:06:59.000Z | setup.py | mvduin/py-uio | 1ad5eb6e1cfeae722535fd6ed7e485a0afd84683 | [
"MIT"
] | 6 | 2016-05-13T04:42:38.000Z | 2020-10-16T13:16:02.000Z | setup.py | mvduin/py-uio | 1ad5eb6e1cfeae722535fd6ed7e485a0afd84683 | [
"MIT"
] | 8 | 2016-05-11T16:56:07.000Z | 2019-09-11T09:54:22.000Z | #!/usr/bin/python3
from setuptools import setup, find_packages
setup(
package_dir = { '': 'src' },
packages = find_packages( where='src' ),
)
| 16.888889 | 44 | 0.651316 | 18 | 152 | 5.333333 | 0.722222 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.190789 | 152 | 8 | 45 | 19 | 0.772358 | 0.111842 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc9015f57ef9e7d95a77ff43b17dddea2b3da5aa | 698 | py | Python | tavi/test/unit/base/document_no_fields_test.py | verdammelt/tavi | 3bb39a6e6ab936f6e9511a4058817697e3df098b | [
"MIT"
] | null | null | null | tavi/test/unit/base/document_no_fields_test.py | verdammelt/tavi | 3bb39a6e6ab936f6e9511a4058817697e3df098b | [
"MIT"
] | null | null | null | tavi/test/unit/base/document_no_fields_test.py | verdammelt/tavi | 3bb39a6e6ab936f6e9511a4058817697e3df098b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from tavi.base.documents import BaseDocument
class BaseDocumentNoFieldsTest(unittest.TestCase):
class NoFieldsSample(BaseDocument):
pass
def setUp(self):
super(BaseDocumentNoFieldsTest, self).setUp()
self.no_fields_sample = self.NoFieldsSample()... | 27.92 | 64 | 0.7149 | 84 | 698 | 5.714286 | 0.380952 | 0.0625 | 0.125 | 0.1875 | 0.154167 | 0.154167 | 0.154167 | 0 | 0 | 0 | 0 | 0.003497 | 0.180516 | 698 | 24 | 65 | 29.083333 | 0.835664 | 0.030086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.3125 | false | 0.0625 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
fc9f46c8893676c05776e06d3412234d7de6b4e4 | 311 | py | Python | shared/templates/coreos_kernel_option/template.py | deperrone/content | caaff27f01a1d6c15da461f9fafe26090e8fdd18 | [
"BSD-3-Clause"
] | 1,138 | 2018-09-05T06:31:44.000Z | 2022-03-31T03:38:24.000Z | shared/templates/coreos_kernel_option/template.py | deperrone/content | caaff27f01a1d6c15da461f9fafe26090e8fdd18 | [
"BSD-3-Clause"
] | 4,743 | 2018-09-04T15:14:04.000Z | 2022-03-31T23:17:57.000Z | shared/templates/coreos_kernel_option/template.py | deperrone/content | caaff27f01a1d6c15da461f9fafe26090e8fdd18 | [
"BSD-3-Clause"
] | 400 | 2018-09-08T20:08:49.000Z | 2022-03-30T20:54:32.000Z | from ssg.utils import parse_template_boolean_value
def preprocess(data, lang):
data["arg_negate"] = parse_template_boolean_value(data, parameter="arg_negate", default_value=False)
data["arg_is_regex"] = parse_template_boolean_value(data, parameter="arg_is_regex", default_value=False)
return data
| 38.875 | 108 | 0.794212 | 44 | 311 | 5.227273 | 0.454545 | 0.169565 | 0.26087 | 0.326087 | 0.356522 | 0.356522 | 0.356522 | 0 | 0 | 0 | 0 | 0 | 0.106109 | 311 | 7 | 109 | 44.428571 | 0.827338 | 0 | 0 | 0 | 0 | 0 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
fca1f7c596dc848fb292eeb62a44200456a36f90 | 596 | py | Python | bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py | entropyx/fiduchain-blockchain-interface | 07336a5eebfaa9cddb148edb94461a8fd57562b1 | [
"MIT"
] | null | null | null | bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py | entropyx/fiduchain-blockchain-interface | 07336a5eebfaa9cddb148edb94461a8fd57562b1 | [
"MIT"
] | null | null | null | bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py | entropyx/fiduchain-blockchain-interface | 07336a5eebfaa9cddb148edb94461a8fd57562b1 | [
"MIT"
] | null | null | null | from collections import namedtuple
from cryptoconditions import crypto
CryptoKeypair = namedtuple('CryptoKeypair', ('signing_key', 'verifying_key'))
def generate_keypair():
"""Generates a cryptographic key pair.
Returns:
:class:`~bigchaindb_driver.crypto.CryptoKeypair`: A
:obj:`collections... | 28.380952 | 77 | 0.721477 | 63 | 596 | 6.650794 | 0.52381 | 0.181384 | 0.157518 | 0.250597 | 0.186158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.169463 | 596 | 20 | 78 | 29.8 | 0.836364 | 0.483221 | 0 | 0 | 1 | 0 | 0.134058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5d84d543ecd3e19e8c3f8af82dd1e6cc5ea16443 | 88 | py | Python | meeting.py | zoni/ulauncher-meet | 1b76627c69dfc539645acd27e30c9b8fd8fe08ae | [
"MIT"
] | 4 | 2021-04-30T21:39:03.000Z | 2021-08-30T11:38:21.000Z | meeting.py | zoni/ulauncher-meet | 1b76627c69dfc539645acd27e30c9b8fd8fe08ae | [
"MIT"
] | 1 | 2021-05-31T11:05:37.000Z | 2021-05-31T11:05:37.000Z | meeting.py | zoni/ulauncher-meet | 1b76627c69dfc539645acd27e30c9b8fd8fe08ae | [
"MIT"
] | 2 | 2021-05-07T09:47:20.000Z | 2021-08-25T16:27:24.000Z | from dataclasses import dataclass
@dataclass
class Meeting:
name: str
id: str
| 11 | 33 | 0.715909 | 11 | 88 | 5.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238636 | 88 | 7 | 34 | 12.571429 | 0.940299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5d8ca67bf97053442519e2fbb8cf359ecbb33654 | 228 | py | Python | djangomail/backends/dummy.py | somenzz/djangomail | 7d4f833cd71289a51eb935757d8b628e9c9f8aa1 | [
"MIT"
] | 1 | 2021-06-01T07:51:18.000Z | 2021-06-01T07:51:18.000Z | djangomail/backends/dummy.py | somenzz/djangomail | 7d4f833cd71289a51eb935757d8b628e9c9f8aa1 | [
"MIT"
] | null | null | null | djangomail/backends/dummy.py | somenzz/djangomail | 7d4f833cd71289a51eb935757d8b628e9c9f8aa1 | [
"MIT"
] | 1 | 2022-01-24T13:38:14.000Z | 2022-01-24T13:38:14.000Z | """
Dummy email backend that does nothing.
"""
from djangomail.backends.base import BaseEmailBackend
class EmailBackend(BaseEmailBackend):
def send_messages(self, email_messages):
return len(list(email_messages))
| 20.727273 | 53 | 0.763158 | 26 | 228 | 6.576923 | 0.807692 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 228 | 10 | 54 | 22.8 | 0.881443 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5d8e73966f8c10521ed6c383e9307e6cc3d33a3d | 612 | py | Python | Applications/FlaskApp/errorpages.py | cemac-ccs/FlaskMWE | e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b | [
"MIT"
] | null | null | null | Applications/FlaskApp/errorpages.py | cemac-ccs/FlaskMWE | e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b | [
"MIT"
] | null | null | null | Applications/FlaskApp/errorpages.py | cemac-ccs/FlaskMWE | e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b | [
"MIT"
] | null | null | null | from flask import render_template
# Error Pages ----------------------------------------------------------------
def page_not_found(e):
# note that we set the 404 status explicitly
return render_template('404.html.j2'), 404
def page_not_allowed(e):
# note that we set the 403 status explicitly
return ... | 27.818182 | 78 | 0.637255 | 83 | 612 | 4.566265 | 0.409639 | 0.184697 | 0.211082 | 0.058047 | 0.432718 | 0.242744 | 0 | 0 | 0 | 0 | 0 | 0.065511 | 0.151961 | 612 | 21 | 79 | 29.142857 | 0.66474 | 0.264706 | 0 | 0 | 0 | 0 | 0.186099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5db477aeb7079f4d5d6c834082c575659d075877 | 161 | py | Python | groups/admin.py | caktus/rapidsms-groups | eda6f30cdc60cf57833f1d37ba08e59454da8987 | [
"BSD-3-Clause"
] | 1 | 2016-06-19T07:34:19.000Z | 2016-06-19T07:34:19.000Z | groups/admin.py | caktus/rapidsms-groups | eda6f30cdc60cf57833f1d37ba08e59454da8987 | [
"BSD-3-Clause"
] | null | null | null | groups/admin.py | caktus/rapidsms-groups | eda6f30cdc60cf57833f1d37ba08e59454da8987 | [
"BSD-3-Clause"
] | 1 | 2016-08-31T05:02:03.000Z | 2016-08-31T05:02:03.000Z | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
from django.contrib import admin
from groups.models import Group
admin.site.register(Group)
| 17.888889 | 43 | 0.751553 | 30 | 161 | 4.033333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.136646 | 161 | 8 | 44 | 20.125 | 0.841727 | 0.385093 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5db982ba2f19c2538b3617256ac0549d6c262bb1 | 84 | py | Python | icfs/filesystem/exceptions.py | bhanupratapjain/icfs | 44a2d5baadbc31bfebb931d713b426d22aabd969 | [
"MIT"
] | null | null | null | icfs/filesystem/exceptions.py | bhanupratapjain/icfs | 44a2d5baadbc31bfebb931d713b426d22aabd969 | [
"MIT"
] | null | null | null | icfs/filesystem/exceptions.py | bhanupratapjain/icfs | 44a2d5baadbc31bfebb931d713b426d22aabd969 | [
"MIT"
] | null | null | null | class ICFSError(IOError):
"""Error while making any filesystem API requests."""
| 28 | 57 | 0.72619 | 10 | 84 | 6.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 84 | 2 | 58 | 42 | 0.859155 | 0.559524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5de5717649c5fb1c3b234920122bfea85236921f | 1,068 | py | Python | tasks/migrations/0005_auto_20200616_0123.py | tschelbs18/fruitful | 66635cd521ffc0990275e32298419bfc2167b90b | [
"MIT"
] | null | null | null | tasks/migrations/0005_auto_20200616_0123.py | tschelbs18/fruitful | 66635cd521ffc0990275e32298419bfc2167b90b | [
"MIT"
] | 4 | 2020-06-04T14:20:33.000Z | 2021-09-22T19:09:22.000Z | tasks/migrations/0005_auto_20200616_0123.py | tschelbs18/fruitful | 66635cd521ffc0990275e32298419bfc2167b90b | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-16 05:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('tasks', '0004_auto_20200616_0116'),
]
operations = [
migrations.AddField(
model_name='userreward',
... | 28.864865 | 93 | 0.601124 | 109 | 1,068 | 5.697248 | 0.412844 | 0.115942 | 0.148148 | 0.173913 | 0.721417 | 0.721417 | 0.57649 | 0.57649 | 0.57649 | 0.57649 | 0 | 0.041005 | 0.292135 | 1,068 | 36 | 94 | 29.666667 | 0.780423 | 0.042135 | 0 | 0.733333 | 1 | 0 | 0.111655 | 0.022527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b90a40f6dda56faee8a822969d3d8c8da41382ab | 99 | py | Python | stlearn/__init__.py | mrahim/stacked-learn | b04b49f65f06de7f5b59ba4139b0f78f8d66d94a | [
"BSD-3-Clause"
] | 2 | 2017-05-23T18:06:53.000Z | 2017-08-18T19:03:04.000Z | stlearn/__init__.py | mrahim/stacked-learn | b04b49f65f06de7f5b59ba4139b0f78f8d66d94a | [
"BSD-3-Clause"
] | 7 | 2017-03-14T15:56:20.000Z | 2017-05-18T08:28:44.000Z | stlearn/__init__.py | mrahim/stacked-learn | b04b49f65f06de7f5b59ba4139b0f78f8d66d94a | [
"BSD-3-Clause"
] | 1 | 2018-10-05T08:07:44.000Z | 2018-10-05T08:07:44.000Z | from .stacking import StackingClassifier, stack_features
from .multitask import MultiTaskEstimator
| 33 | 56 | 0.878788 | 10 | 99 | 8.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 99 | 2 | 57 | 49.5 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f8ed824436e6201a95f5e3c52f9d1d1dd87092b2 | 24 | py | Python | data/studio21_generated/interview/1657/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/1657/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/1657/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def string_func(s, n):
| 12 | 22 | 0.666667 | 5 | 24 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 2 | 23 | 12 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8ff164c7b99d263ef5622eb983cd4b6a79fdda1 | 863 | py | Python | firefly_flask/app/models.py | Haehnchen/trivago-firefly | ee92450fda42059f1865971849dc234a42dc9027 | [
"MIT"
] | null | null | null | firefly_flask/app/models.py | Haehnchen/trivago-firefly | ee92450fda42059f1865971849dc234a42dc9027 | [
"MIT"
] | null | null | null | firefly_flask/app/models.py | Haehnchen/trivago-firefly | ee92450fda42059f1865971849dc234a42dc9027 | [
"MIT"
] | null | null | null | from . import db
from sqlalchemy.dialects.mysql import LONGTEXT
class Search(db.Model):
__tablename__ = 'spots'
id = db.Column(db.Integer, primary_key=True)
search_string = db.Column(db.Text)
lat = db.Column(db.Float)
lon = db.Column(db.Float)
location_name = db.Column(db.Text)
json_result ... | 28.766667 | 66 | 0.682503 | 126 | 863 | 4.547619 | 0.333333 | 0.251309 | 0.296684 | 0.17103 | 0.115183 | 0.115183 | 0.115183 | 0.115183 | 0 | 0 | 0 | 0 | 0.184241 | 863 | 29 | 67 | 29.758621 | 0.81392 | 0 | 0 | 0.083333 | 0 | 0 | 0.012791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 1 | 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 | 1 | 0 | 0 | 4 |
5d0806edbac94be1802c588fc12c4cc3d74c7198 | 1,673 | py | Python | source/188-Lista_celulares.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/188-Lista_celulares.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/188-Lista_celulares.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | # Lista celulares
# O departamento de marketing da sua empresa está interessado em obter apenas os números de telefone celular, separando-os dos telefones fixos. Para simplificar esta operação serão considerados números de celular apenas aqueles que, após o código de área, iniciarem com o dígito adicional 9.
# Você rec... | 152.090909 | 409 | 0.775254 | 260 | 1,673 | 4.980769 | 0.457692 | 0.032432 | 0.055598 | 0.040154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123044 | 0.159594 | 1,673 | 10 | 410 | 167.3 | 0.798009 | 0.987448 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.1 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d12b1edae2081b00e12d5653d2750d5567eb062 | 211 | py | Python | users/apps.py | srinidhibhat/booknotes | 666f92fac309b97c13b79e91f5493220f934cab3 | [
"MIT"
] | null | null | null | users/apps.py | srinidhibhat/booknotes | 666f92fac309b97c13b79e91f5493220f934cab3 | [
"MIT"
] | 2 | 2020-08-11T07:23:21.000Z | 2020-08-11T07:26:41.000Z | users/apps.py | srinidhibhat/booknotes-DjangoProject | 666f92fac309b97c13b79e91f5493220f934cab3 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
# below piece of code is needed for automatic profile creation for user
def ready(self):
import users.signals
| 23.444444 | 75 | 0.71564 | 28 | 211 | 5.392857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227488 | 211 | 8 | 76 | 26.375 | 0.92638 | 0.327014 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 4 |
5d190891c7c8c6ae88bd8b11a4958d94ac97d775 | 129 | py | Python | easyquant/login/__init__.py | CharlieZhao95/easy-quant | 9df126433e27d92eced9b087e581b5fd66c5a400 | [
"Apache-2.0"
] | null | null | null | easyquant/login/__init__.py | CharlieZhao95/easy-quant | 9df126433e27d92eced9b087e581b5fd66c5a400 | [
"Apache-2.0"
] | 2 | 2022-01-26T15:50:37.000Z | 2022-03-30T14:08:36.000Z | easyquant/login/__init__.py | CharlieZhao95/easy-quant | 9df126433e27d92eced9b087e581b5fd66c5a400 | [
"Apache-2.0"
] | null | null | null | # @Time : 2022/1/26 23:07
# @Author : zhaoyu
# @Site :
# @File : __init__.py.py
# @Software: PyCharm
# @Note : xx | 21.5 | 29 | 0.527132 | 17 | 129 | 3.764706 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120879 | 0.294574 | 129 | 6 | 30 | 21.5 | 0.582418 | 0.906977 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d356088cb332b6a1cde85497c82874f1681387b | 20 | py | Python | sitetree/__init__.py | sitkatech/django-sitetree | 5d7e9d503f97ff021c5c04855e04e098b3d2488c | [
"BSD-3-Clause"
] | 3 | 2019-02-12T01:58:42.000Z | 2019-06-08T10:50:33.000Z | sitetree/__init__.py | sitkatech/django-sitetree | 5d7e9d503f97ff021c5c04855e04e098b3d2488c | [
"BSD-3-Clause"
] | null | null | null | sitetree/__init__.py | sitkatech/django-sitetree | 5d7e9d503f97ff021c5c04855e04e098b3d2488c | [
"BSD-3-Clause"
] | null | null | null | VERSION = (0, 9, 5)
| 10 | 19 | 0.5 | 4 | 20 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.25 | 20 | 1 | 20 | 20 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d3a6779a16e847e6ab8367c806b8cd0393b9b7c | 160 | py | Python | __temp/examples/rhino/mesh-stanford-dragon.py | robin-gdwl/examples_topop-desc | 3a10dfc891c3e6998029c7baf8a5a7a501870fe2 | [
"MIT"
] | null | null | null | __temp/examples/rhino/mesh-stanford-dragon.py | robin-gdwl/examples_topop-desc | 3a10dfc891c3e6998029c7baf8a5a7a501870fe2 | [
"MIT"
] | null | null | null | __temp/examples/rhino/mesh-stanford-dragon.py | robin-gdwl/examples_topop-desc | 3a10dfc891c3e6998029c7baf8a5a7a501870fe2 | [
"MIT"
] | 1 | 2022-01-16T02:32:43.000Z | 2022-01-16T02:32:43.000Z | import compas
import compas_rhino
from compas.datastructures import Mesh
mesh = Mesh.from_ply(compas.get('stanford_dragon.ply'))
compas_rhino.mesh_draw(mesh)
| 20 | 55 | 0.825 | 24 | 160 | 5.291667 | 0.458333 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 160 | 7 | 56 | 22.857143 | 0.869863 | 0 | 0 | 0 | 0 | 0 | 0.11875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
53a95c744ad18d63a19b3fc856fe6442690ea1c8 | 54 | py | Python | Numpy/tempCodeRunnerFile.py | zharmedia386/Data-Science-Stuff | 40183c329e3b30c582c545c260ca7916f29e2f09 | [
"MIT"
] | null | null | null | Numpy/tempCodeRunnerFile.py | zharmedia386/Data-Science-Stuff | 40183c329e3b30c582c545c260ca7916f29e2f09 | [
"MIT"
] | null | null | null | Numpy/tempCodeRunnerFile.py | zharmedia386/Data-Science-Stuff | 40183c329e3b30c582c545c260ca7916f29e2f09 | [
"MIT"
] | null | null | null |
print(b)
print(c)
print(d)
print(e)
print(f)
print(g) | 7.714286 | 8 | 0.666667 | 12 | 54 | 3 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 54 | 7 | 9 | 7.714286 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 4 |
53d609582a8fdb847888342336e2fc62ce309ea0 | 159 | py | Python | 150-Challenges/Challenges 80 - 87/Challenge 84.py | DGrifferty/Python | d725301664db2cbcfd5c4f5974745b4d81c8e28a | [
"Apache-2.0"
] | null | null | null | 150-Challenges/Challenges 80 - 87/Challenge 84.py | DGrifferty/Python | d725301664db2cbcfd5c4f5974745b4d81c8e28a | [
"Apache-2.0"
] | null | null | null | 150-Challenges/Challenges 80 - 87/Challenge 84.py | DGrifferty/Python | d725301664db2cbcfd5c4f5974745b4d81c8e28a | [
"Apache-2.0"
] | null | null | null | # 084
# Ask the user to type in their postcode.Display the first two
# letters in uppercase.
# very simple
print(input('Enter your postcode: ')[0:2].upper()) | 22.714286 | 62 | 0.716981 | 26 | 159 | 4.384615 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037594 | 0.163522 | 159 | 7 | 63 | 22.714286 | 0.819549 | 0.616352 | 0 | 0 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 4 |
99096743e56d22ad0a53c9983c2e48c412dd1c0f | 890 | py | Python | test/tests/import_test.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | test/tests/import_test.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/import_test.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | import import_target
print import_target.x
import import_target
import_target.foo()
c = import_target.C()
print import_target.import_nested_target.y
import_target.import_nested_target.bar()
d = import_target.import_nested_target.D()
print "testing importfrom:"
from import_target import x as z
print z
import_nested... | 20.227273 | 65 | 0.837079 | 137 | 890 | 5.058394 | 0.218978 | 0.207792 | 0.311688 | 0.137085 | 0.253968 | 0.168831 | 0.168831 | 0.141414 | 0.141414 | 0 | 0 | 0.007528 | 0.104494 | 890 | 43 | 66 | 20.697674 | 0.861982 | 0 | 0 | 0.30303 | 0 | 0 | 0.085393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.727273 | null | null | 0.393939 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
54ca6e875f242dc42891ee212f00bf7ca42878a5 | 182 | py | Python | rdmo/options/apps.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 1 | 2021-12-13T16:32:25.000Z | 2021-12-13T16:32:25.000Z | rdmo/options/apps.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | null | null | null | rdmo/options/apps.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 1 | 2021-05-20T09:31:49.000Z | 2021-05-20T09:31:49.000Z | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class OptionsConfig(AppConfig):
name = 'rdmo.options'
verbose_name = _('Options')
| 22.75 | 55 | 0.763736 | 22 | 182 | 6.136364 | 0.727273 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 182 | 7 | 56 | 26 | 0.876623 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 4 |
0713544bf0325f76443f346f91d5551b3d2799f3 | 393 | py | Python | chue/utils.py | naren-m/chue | 6f77ad990c911353524c5c99bcf6e30155edaf97 | [
"MIT"
] | null | null | null | chue/utils.py | naren-m/chue | 6f77ad990c911353524c5c99bcf6e30155edaf97 | [
"MIT"
] | null | null | null | chue/utils.py | naren-m/chue | 6f77ad990c911353524c5c99bcf6e30155edaf97 | [
"MIT"
] | null | null | null | import json
from pygments import highlight
from pygments.lexers import JsonLexer
from pygments.formatters import TerminalFormatter
def print_json_obj(json_object):
json_str = json.dumps(json_object, indent=4, sort_keys=True)
print(highlight(json_str, JsonLexer(), TerminalFormatter()))
def print_json_str(jso... | 28.071429 | 64 | 0.793893 | 51 | 393 | 5.901961 | 0.392157 | 0.116279 | 0.166113 | 0.192691 | 0.312292 | 0.312292 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0.114504 | 393 | 13 | 65 | 30.230769 | 0.862069 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0 | 0.666667 | 0.444444 | 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 | 1 | 0 | 0 | 1 | 0 | 4 |
071a7e610b94fdc4f5c933fd228639d190c83b96 | 3,650 | py | Python | build/lib/dataaccess/TransactionRepository.py | athanikos/cryptodataaccess | 6189a44c65a9b03c02822a534e865740ab488809 | [
"MIT"
] | null | null | null | build/lib/dataaccess/TransactionRepository.py | athanikos/cryptodataaccess | 6189a44c65a9b03c02822a534e865740ab488809 | [
"MIT"
] | null | null | null | build/lib/dataaccess/TransactionRepository.py | athanikos/cryptodataaccess | 6189a44c65a9b03c02822a534e865740ab488809 | [
"MIT"
] | null | null | null | from cryptomodel.cryptostore import user_notification, user_channel, user_transaction, operation_type
from mongoengine import Q
from cryptodataaccess import helpers
from cryptodataaccess.helpers import if_none_raise, if_none_raise_with_id
class TransactionRepository:
def __init__(self, config, log_error):
... | 42.44186 | 120 | 0.670137 | 448 | 3,650 | 5.167411 | 0.131696 | 0.04406 | 0.04406 | 0.051836 | 0.790929 | 0.743844 | 0.731749 | 0.711879 | 0.69892 | 0.69892 | 0 | 0.000366 | 0.252329 | 3,650 | 85 | 121 | 42.941176 | 0.84793 | 0 | 0 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.057143 | 0.071429 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
072580ae43bbd8ecd21160183d85274cfcb19e54 | 87 | py | Python | musica/apps.py | webnowone/albumMusical | b9532ff0ef47b610f0f2b565f0dd77e54d638772 | [
"Apache-2.0"
] | 1 | 2021-02-02T03:58:48.000Z | 2021-02-02T03:58:48.000Z | musica/apps.py | webnowone/albumMusical | b9532ff0ef47b610f0f2b565f0dd77e54d638772 | [
"Apache-2.0"
] | 52 | 2020-02-25T09:56:54.000Z | 2021-09-22T18:40:50.000Z | musica/apps.py | webnowone/albumMusical | b9532ff0ef47b610f0f2b565f0dd77e54d638772 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class MusicaConfig(AppConfig):
name = 'musica'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 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 | 1 | 0 | 0 | 4 |
072ca26b4d1e4960c6363441b38a038bbb510a99 | 107 | py | Python | test_hello.py | skvel/pynet_testx | 46566e059e076cb763f8a10ed7f6ff9eac5b63b1 | [
"Apache-2.0"
] | null | null | null | test_hello.py | skvel/pynet_testx | 46566e059e076cb763f8a10ed7f6ff9eac5b63b1 | [
"Apache-2.0"
] | null | null | null | test_hello.py | skvel/pynet_testx | 46566e059e076cb763f8a10ed7f6ff9eac5b63b1 | [
"Apache-2.0"
] | null | null | null | print "Hello World!"
print "Trying my hand at Git!"
print "Something else"
for i in range(10):
print i
| 17.833333 | 30 | 0.691589 | 19 | 107 | 3.894737 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.205607 | 107 | 5 | 31 | 21.4 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.448598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.8 | 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 | 1 | 0 | 4 |
07301aa37090337e8a2394da6cc20cd279418591 | 34 | py | Python | Python/Python Evaluation/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | Python/Python Evaluation/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | Python/Python Evaluation/solution.py | arpitran/HackerRank_solutions | a3a77c858edd3955ea38530916db9051b1aa93f9 | [
"MIT"
] | null | null | null | eval(input("Enter a expression ")) | 34 | 34 | 0.735294 | 5 | 34 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
07315bfc850bee7d8e4dccfb243802584bf7ccf6 | 38 | py | Python | python/testData/editing/enterInIncompleteTupleLiteral.after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/editing/enterInIncompleteTupleLiteral.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/editing/enterInIncompleteTupleLiteral.after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | xs = ('foo', 'bar',
'baz'<caret> | 19 | 19 | 0.421053 | 5 | 38 | 3.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 38 | 2 | 20 | 19 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0740aa099c767617a2ec263fb4853c2833c7342f | 79 | py | Python | LanguageBasics/functions/import_eg.py | Vamsi-TM/jubilant-train | a3ca0216e161ead4f59d923a36587098790beb5d | [
"MIT"
] | null | null | null | LanguageBasics/functions/import_eg.py | Vamsi-TM/jubilant-train | a3ca0216e161ead4f59d923a36587098790beb5d | [
"MIT"
] | null | null | null | LanguageBasics/functions/import_eg.py | Vamsi-TM/jubilant-train | a3ca0216e161ead4f59d923a36587098790beb5d | [
"MIT"
] | null | null | null | import function_exercise_01 as st
st.sandwich_toppings('meatballs', 'salad')
| 15.8 | 42 | 0.797468 | 11 | 79 | 5.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.101266 | 79 | 4 | 43 | 19.75 | 0.816901 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0744b878366a1f07bc8ae64bebfadf9106c8ad3a | 303 | py | Python | hexrd/distortion/distortionabc.py | glemaitre/hexrd | b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c | [
"BSD-3-Clause"
] | 27 | 2020-02-18T12:15:08.000Z | 2022-03-24T17:53:46.000Z | hexrd/distortion/distortionabc.py | glemaitre/hexrd | b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c | [
"BSD-3-Clause"
] | 259 | 2020-02-02T22:18:29.000Z | 2022-03-30T19:59:58.000Z | hexrd/distortion/distortionabc.py | glemaitre/hexrd | b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c | [
"BSD-3-Clause"
] | 11 | 2020-02-18T12:14:44.000Z | 2022-03-04T16:19:11.000Z | import abc
class DistortionABC(metaclass=abc.ABCMeta):
maptype = None
@abc.abstractmethod
def apply(self, xy_in):
"""Apply distortion mapping"""
pass
@abc.abstractmethod
def apply_inverse(self, xy_in):
"""Apply inverse distortion mapping"""
pass
| 17.823529 | 46 | 0.633663 | 33 | 303 | 5.727273 | 0.545455 | 0.179894 | 0.21164 | 0.26455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267327 | 303 | 16 | 47 | 18.9375 | 0.851351 | 0.188119 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
074c987bce7bacca56810d03a725dd7cdf352776 | 4,911 | py | Python | src/dataset.py | HeegyuKim/CurseFilter | dc4a64aebd997706553c24e919a88e19a3c92dd3 | [
"MIT"
] | null | null | null | src/dataset.py | HeegyuKim/CurseFilter | dc4a64aebd997706553c24e919a88e19a3c92dd3 | [
"MIT"
] | null | null | null | src/dataset.py | HeegyuKim/CurseFilter | dc4a64aebd997706553c24e919a88e19a3c92dd3 | [
"MIT"
] | null | null | null | from cProfile import label
from matplotlib.pyplot import text
import pandas as pd
import numpy as np
from tokenizers import Tokenizer
import torch
from torch.utils.data import Dataset, DataLoader
from typing import Dict, Any, Tuple
from datasets import load_dataset
class DataFrameDataset(Dataset):
def __init__(se... | 38.069767 | 131 | 0.609448 | 556 | 4,911 | 5.097122 | 0.178058 | 0.050812 | 0.025406 | 0.046577 | 0.742414 | 0.726535 | 0.703952 | 0.703952 | 0.678546 | 0.678546 | 0 | 0.008837 | 0.285685 | 4,911 | 129 | 132 | 38.069767 | 0.799031 | 0 | 0 | 0.673077 | 0 | 0 | 0.025041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.086538 | 0.076923 | 0.355769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
07579f83aea9f0c480c258cdf19ac53f9ebbfd10 | 160 | py | Python | run.py | jakewright/home-automation-device-registry | b073966b1dc259a6997c47f8d369f51dee9cbbf3 | [
"MIT"
] | 15 | 2018-01-09T21:57:09.000Z | 2021-05-08T10:23:01.000Z | run.py | jakewright/home-automation-device-registry | b073966b1dc259a6997c47f8d369f51dee9cbbf3 | [
"MIT"
] | null | null | null | run.py | jakewright/home-automation-device-registry | b073966b1dc259a6997c47f8d369f51dee9cbbf3 | [
"MIT"
] | 10 | 2018-09-23T20:30:24.000Z | 2021-05-08T10:23:02.000Z | # Import the application
from device_registry import app
# Run the application in debug mode
app.run(host='0.0.0.0', port=int(app.config['PORT']), debug=True)
| 26.666667 | 65 | 0.74375 | 28 | 160 | 4.214286 | 0.607143 | 0.050847 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028369 | 0.11875 | 160 | 5 | 66 | 32 | 0.808511 | 0.35 | 0 | 0 | 0 | 0 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4ad430bf0f736b3775616810d3e0ff10960723c4 | 124 | py | Python | src/model/exception/emote_fetch_error.py | konrad2508/kokomi-discord-bot | 5a9d459e92d552fa24ba3ada5188db19d93f0aaa | [
"MIT"
] | 2 | 2022-03-02T15:56:41.000Z | 2022-03-10T16:30:41.000Z | src/model/exception/emote_fetch_error.py | konrad2508/kokomi-discord-bot | 5a9d459e92d552fa24ba3ada5188db19d93f0aaa | [
"MIT"
] | 2 | 2022-03-10T16:30:20.000Z | 2022-03-16T14:33:59.000Z | src/model/exception/emote_fetch_error.py | konrad2508/kokomi-discord-bot | 5a9d459e92d552fa24ba3ada5188db19d93f0aaa | [
"MIT"
] | null | null | null | class EmoteFetchError(Exception):
'''Exception stating that there was a problem while fetching emotes from a source.'''
| 41.333333 | 89 | 0.766129 | 16 | 124 | 5.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153226 | 124 | 2 | 90 | 62 | 0.904762 | 0.637097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ab058609cdca528f1ad9cfbfcbc124dc3d65d20b | 180 | py | Python | core/sample_fuzzer/data_generators/base.py | ShreyasTheOne/Super-Duper-Fuzzer | b667e2dca3e49a370634ad4b0bd826aca06136b7 | [
"MIT"
] | null | null | null | core/sample_fuzzer/data_generators/base.py | ShreyasTheOne/Super-Duper-Fuzzer | b667e2dca3e49a370634ad4b0bd826aca06136b7 | [
"MIT"
] | null | null | null | core/sample_fuzzer/data_generators/base.py | ShreyasTheOne/Super-Duper-Fuzzer | b667e2dca3e49a370634ad4b0bd826aca06136b7 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class BaseDataGenerator(ABC):
def __init__(self):
pass
@staticmethod
@abstractmethod
def generate(cls):
pass
| 15 | 35 | 0.655556 | 18 | 180 | 6.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 180 | 11 | 36 | 16.363636 | 0.876923 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ab15b741f60036ff0c954f49e3dc89246a1bf5bf | 46,930 | py | Python | tools/fileinfo/features/certificates-info/test.py | HoundThe/retdec-regression-tests | 760639deb1ee52e88a14523b4a908d3e69d6fcd3 | [
"MIT"
] | null | null | null | tools/fileinfo/features/certificates-info/test.py | HoundThe/retdec-regression-tests | 760639deb1ee52e88a14523b4a908d3e69d6fcd3 | [
"MIT"
] | null | null | null | tools/fileinfo/features/certificates-info/test.py | HoundThe/retdec-regression-tests | 760639deb1ee52e88a14523b4a908d3e69d6fcd3 | [
"MIT"
] | null | null | null | from regression_tests import *
class Test1(Test):
settings = TestSettings(
tool='fileinfo',
input='8b280f2b7788520de214fa8d6ea32a30ebb2a51038381448939530fd0f7dfc16',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.... | 57.938272 | 163 | 0.721372 | 3,842 | 46,930 | 8.623634 | 0.085632 | 0.070264 | 0.077327 | 0.050767 | 0.782778 | 0.752535 | 0.681728 | 0.641253 | 0.634281 | 0.631263 | 0 | 0.207443 | 0.156574 | 46,930 | 809 | 164 | 58.009889 | 0.629604 | 0.001385 | 0 | 0.648562 | 0 | 0.007987 | 0.464161 | 0.267995 | 0 | 0 | 0 | 0 | 0.72524 | 1 | 0.022364 | false | 0 | 0.001597 | 0 | 0.06869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 4 |
ab180e51c94b6c40621e5bfdc60ef7316f264c2c | 111 | py | Python | app/darn.py | AmitSrourDev/darn | c04b681881620ffed2e1e0788d9cd80da7f806c4 | [
"BSD-2-Clause"
] | null | null | null | app/darn.py | AmitSrourDev/darn | c04b681881620ffed2e1e0788d9cd80da7f806c4 | [
"BSD-2-Clause"
] | null | null | null | app/darn.py | AmitSrourDev/darn | c04b681881620ffed2e1e0788d9cd80da7f806c4 | [
"BSD-2-Clause"
] | null | null | null | import subprocess
def run(cmd):
subprocess.run(cmd.split(' '))
def ls():
subprocess.call(["ls", "-l"]) | 18.5 | 34 | 0.612613 | 15 | 111 | 4.533333 | 0.6 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 111 | 6 | 35 | 18.5 | 0.731183 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ab24554d8fbfa3bde2693fe79ec073ac02c9f577 | 177 | py | Python | src/profiles/forms.py | rahulroshan96/CloudVisual | aa33709d88442bcdbe3229234b4eb4f9abb4481e | [
"MIT",
"Unlicense"
] | null | null | null | src/profiles/forms.py | rahulroshan96/CloudVisual | aa33709d88442bcdbe3229234b4eb4f9abb4481e | [
"MIT",
"Unlicense"
] | 4 | 2020-06-05T19:43:52.000Z | 2021-06-01T23:15:44.000Z | src/profiles/forms.py | rahulroshan96/CloudVisual | aa33709d88442bcdbe3229234b4eb4f9abb4481e | [
"MIT",
"Unlicense"
] | null | null | null | from django import forms
from models import UserInputModel
class UserInputForm(forms.ModelForm):
class Meta:
model = UserInputModel
fields = ['user_input'] | 22.125 | 37 | 0.717514 | 19 | 177 | 6.631579 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 177 | 8 | 38 | 22.125 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
db4a75d192569c27cd0ea38a505083fba87c919d | 67 | py | Python | test/__init__.py | donbowman/rdflib | c1be731c8e6bbe997cc3f25890bbaf685499c517 | [
"BSD-3-Clause"
] | 1,424 | 2015-01-04T13:10:22.000Z | 2022-03-29T15:12:38.000Z | test/__init__.py | donbowman/rdflib | c1be731c8e6bbe997cc3f25890bbaf685499c517 | [
"BSD-3-Clause"
] | 1,148 | 2015-01-01T18:26:18.000Z | 2022-03-31T21:51:53.000Z | test/__init__.py | jjon/rdflib | 4c2ab7b392b353bf3c6088017ec9351ce8ac3db6 | [
"BSD-3-Clause"
] | 459 | 2015-01-03T14:41:34.000Z | 2022-03-14T22:06:47.000Z | #
import os
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
| 13.4 | 53 | 0.746269 | 11 | 67 | 4.090909 | 0.727273 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 67 | 4 | 54 | 16.75 | 0.75 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
db55b37705e1ee35cb592342b49dbe69963ce12a | 105 | py | Python | django_app/DataEntrySystem/apps.py | Hezepeng/Financial-Acquisition-And-Editing-System | 0781101e596a31d90bcfa3d67622472c04c6149f | [
"MIT"
] | null | null | null | django_app/DataEntrySystem/apps.py | Hezepeng/Financial-Acquisition-And-Editing-System | 0781101e596a31d90bcfa3d67622472c04c6149f | [
"MIT"
] | null | null | null | django_app/DataEntrySystem/apps.py | Hezepeng/Financial-Acquisition-And-Editing-System | 0781101e596a31d90bcfa3d67622472c04c6149f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DataentrysystemConfig(AppConfig):
name = 'DataEntrySystem'
| 17.5 | 39 | 0.790476 | 10 | 105 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 4 |
db847e24bb7a6401d0b23e464a5ea391ad69edb8 | 89 | py | Python | taurex/data/profiles/__init__.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | 10 | 2019-12-18T09:19:16.000Z | 2021-06-21T11:02:06.000Z | taurex/data/profiles/__init__.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | 10 | 2020-03-24T18:02:15.000Z | 2021-08-23T20:32:09.000Z | taurex/data/profiles/__init__.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | 8 | 2020-03-26T14:16:42.000Z | 2021-12-18T22:11:25.000Z | """
These modules contain sub-modules related to defining various profiles in a model
""" | 29.666667 | 81 | 0.775281 | 13 | 89 | 5.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 89 | 3 | 82 | 29.666667 | 0.907895 | 0.910112 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dbbd1a19c06924421a7c2e88261ac232f18c11f4 | 83 | py | Python | unsorted/pythonsnippets_0013.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | unsorted/pythonsnippets_0013.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | unsorted/pythonsnippets_0013.py | fiddlerwoaroof/sandbox | 652acaf710a8b60f005769bde317e7bbf548cc2b | [
"BSD-3-Clause"
] | null | null | null | from twisted.internet import reactor
reactor.listenTCP(8789, factory)
reactor.run() | 27.666667 | 36 | 0.831325 | 11 | 83 | 6.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.072289 | 83 | 3 | 37 | 27.666667 | 0.844156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dbd150b0b609e70f340c545eccce6da7fadb2eeb | 86 | py | Python | skorecard/metrics/__init__.py | orchardbirds/skorecard-1 | 0f5375a6c159bb35f4b62c5be75a742bf50885e2 | [
"MIT"
] | null | null | null | skorecard/metrics/__init__.py | orchardbirds/skorecard-1 | 0f5375a6c159bb35f4b62c5be75a742bf50885e2 | [
"MIT"
] | null | null | null | skorecard/metrics/__init__.py | orchardbirds/skorecard-1 | 0f5375a6c159bb35f4b62c5be75a742bf50885e2 | [
"MIT"
] | null | null | null | """Import required Metric."""
from .metrics import IV_scorer
__all__ = ["IV_scorer"]
| 17.2 | 30 | 0.72093 | 11 | 86 | 5.090909 | 0.727273 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127907 | 86 | 4 | 31 | 21.5 | 0.746667 | 0.267442 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.