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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09f80f8b20cbf9fab41433b7fb79cb311415a791 | 193 | py | Python | src/biopsykit/signals/imu/feature_extraction/__init__.py | Zwitscherle/BioPsyKit | 7200c5f1be75c20f53e1eb4c991aca1c89e3dd88 | [
"MIT"
] | 10 | 2020-11-05T13:34:55.000Z | 2022-03-11T16:20:10.000Z | src/biopsykit/signals/imu/feature_extraction/__init__.py | Zwitscherle/BioPsyKit | 7200c5f1be75c20f53e1eb4c991aca1c89e3dd88 | [
"MIT"
] | 14 | 2021-03-11T14:43:52.000Z | 2022-03-10T19:44:57.000Z | src/biopsykit/signals/imu/feature_extraction/__init__.py | Zwitscherle/BioPsyKit | 7200c5f1be75c20f53e1eb4c991aca1c89e3dd88 | [
"MIT"
] | 3 | 2021-09-13T13:14:38.000Z | 2022-02-19T09:13:25.000Z | """Module containing scripts for different feature extraction techniques from raw IMU data."""
from biopsykit.signals.imu.feature_extraction import static_moments
__all__ = ["static_moments"]
| 38.6 | 94 | 0.818653 | 24 | 193 | 6.291667 | 0.75 | 0.225166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103627 | 193 | 4 | 95 | 48.25 | 0.872832 | 0.455959 | 0 | 0 | 0 | 0 | 0.141414 | 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 |
110bd5c7d26cb1039d7248113ac5574d56217da1 | 134 | py | Python | tests/agave_mock_server/wsgi.py | vdjserver/agave-cli | 4ad0826779cd760eb8a102978c456fee214ce8a3 | [
"BSD-3-Clause"
] | null | null | null | tests/agave_mock_server/wsgi.py | vdjserver/agave-cli | 4ad0826779cd760eb8a102978c456fee214ce8a3 | [
"BSD-3-Clause"
] | 1 | 2019-06-11T21:48:12.000Z | 2019-06-11T22:11:35.000Z | tests/agave_mock_server/wsgi.py | vdjserver/agave-cli | 4ad0826779cd760eb8a102978c456fee214ce8a3 | [
"BSD-3-Clause"
] | null | null | null | from agave_mock_server import app as application
if __name__ == "__main__":
application.run(host="0.0.0.0", ssl_context="adhoc")
| 26.8 | 56 | 0.738806 | 21 | 134 | 4.190476 | 0.809524 | 0.068182 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.126866 | 134 | 4 | 57 | 33.5 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 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 |
113d668d246018125fb65ca3ee23f8d2a4812ab3 | 343 | py | Python | tracker/admin.py | OscarGichana/tracker | c980f0e348804ae6a2501c09096df1af51b0bba6 | [
"Unlicense"
] | null | null | null | tracker/admin.py | OscarGichana/tracker | c980f0e348804ae6a2501c09096df1af51b0bba6 | [
"Unlicense"
] | null | null | null | tracker/admin.py | OscarGichana/tracker | c980f0e348804ae6a2501c09096df1af51b0bba6 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import Profile,Neighborhood,Posts,Business
# Register your models here.
admin.site.register(Profile)
admin.site.register(Neighborhood)
admin.site.register(Posts)
admin.site.register(Business)
# admin.site.register(DisLike)
# admin.site.register(MoringaMerch)
# admin.site.r... | 28.583333 | 55 | 0.819242 | 44 | 343 | 6.386364 | 0.386364 | 0.224199 | 0.423488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069971 | 343 | 11 | 56 | 31.181818 | 0.880878 | 0.361516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
116b03d71f4f5e5f3ca2c20583aee06f48a45793 | 911 | py | Python | apt/anonymization/__init__.py | IBM/ai-privacy-toolkit | a9a93c8a3a026b8a4b01266e11698166b7cdbb44 | [
"MIT"
] | 34 | 2021-04-28T15:12:36.000Z | 2022-03-28T11:38:48.000Z | apt/anonymization/__init__.py | IBM/ai-privacy-toolkit | a9a93c8a3a026b8a4b01266e11698166b7cdbb44 | [
"MIT"
] | 13 | 2021-07-14T11:02:35.000Z | 2022-02-23T17:57:51.000Z | apt/anonymization/__init__.py | IBM/ai-privacy-toolkit | a9a93c8a3a026b8a4b01266e11698166b7cdbb44 | [
"MIT"
] | 9 | 2021-05-18T21:26:07.000Z | 2022-03-06T14:58:57.000Z | """
Module providing ML anonymization.
This module contains methods for anonymizing ML model training data, so that when
a model is retrained on the anonymized data, the model itself will also be considered
anonymous. This may help exempt the model from different obligations and restrictions
set out in data protection... | 50.611111 | 96 | 0.812294 | 143 | 911 | 5.174825 | 0.594406 | 0.064865 | 0.056757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.153677 | 911 | 17 | 97 | 53.588235 | 0.948119 | 0.934138 | 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 |
feda36d66368a5ba3e059121a70717771426dc48 | 138 | py | Python | nifs/retrieve/rawdata/__init__.py | nifs-software/nifs-retrieve | 4ff9d70a1d2301d7b5762162586388ae67046ad2 | [
"MIT"
] | null | null | null | nifs/retrieve/rawdata/__init__.py | nifs-software/nifs-retrieve | 4ff9d70a1d2301d7b5762162586388ae67046ad2 | [
"MIT"
] | 2 | 2021-12-16T04:50:00.000Z | 2021-12-22T11:55:01.000Z | nifs/retrieve/rawdata/__init__.py | nifs-software/nifs-retrieve | 4ff9d70a1d2301d7b5762162586388ae67046ad2 | [
"MIT"
] | null | null | null | from .rawdata import RawData
from .timedata import TimeData
from .voltdata import VoltData
__all__ = ["RawData", "TimeData", "VoltData"]
| 23 | 45 | 0.768116 | 16 | 138 | 6.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 138 | 5 | 46 | 27.6 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fef71fd2689cde39a6617bb13c2101fc8e715b36 | 10,004 | py | Python | logo_rc.py | idocx/WHULibSeatReservation | 198fc62910a7937cc654069eb2f3fbf44b6e6f1d | [
"MIT"
] | 14 | 2019-02-24T01:53:37.000Z | 2021-03-27T02:21:24.000Z | logo_rc.py | Linqiaosong/WHULibSeatReservation | da89e1d3db920d41d6d74b3f83f8cdebad305457 | [
"MIT"
] | 3 | 2019-06-11T03:31:49.000Z | 2021-04-12T02:58:50.000Z | logo_rc.py | Linqiaosong/WHULibSeatReservation | da89e1d3db920d41d6d74b3f83f8cdebad305457 | [
"MIT"
] | 7 | 2019-06-06T17:31:27.000Z | 2020-11-08T13:03:49.000Z | #############################################################
# 作者:我.doc
# Github地址:https://github.com/idocx/WHULibSeatReservation
#############################################################
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x03\xac\
\x00\
\x00\x67\xf6\x78\x9c... | 53.784946 | 104 | 0.703419 | 2,264 | 10,004 | 3.091431 | 0.131184 | 0.068581 | 0.066867 | 0.05315 | 0.155165 | 0.153022 | 0.143878 | 0.143878 | 0.139163 | 0.131447 | 0 | 0.289725 | 0.045682 | 10,004 | 185 | 105 | 54.075676 | 0.443385 | 0.006397 | 0 | 0.093023 | 0 | 0.767442 | 0.000104 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.005814 | 0 | 0.017442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fefc83e00d4e08e9e4f83915c661bd7690cde11d | 211 | py | Python | django-app/main/textanalyzers/textblobanalyzer.py | honchardev/crypto-sentiment-app | 176a6ed61246490c42d2a2b7af4d45f67e3c7499 | [
"MIT"
] | 9 | 2019-07-07T02:57:50.000Z | 2022-01-07T10:03:30.000Z | django-app/main/textanalyzers/textblobanalyzer.py | honchardev/crypto-sentiment-app | 176a6ed61246490c42d2a2b7af4d45f67e3c7499 | [
"MIT"
] | null | null | null | django-app/main/textanalyzers/textblobanalyzer.py | honchardev/crypto-sentiment-app | 176a6ed61246490c42d2a2b7af4d45f67e3c7499 | [
"MIT"
] | null | null | null | from .abstractanalyzer import AbstractAnalyzer
from textblob import TextBlob
class TextBlobAnalyzer(AbstractAnalyzer):
def __init__(self):
pass
def analyze(self, text_content):
pass
| 16.230769 | 46 | 0.729858 | 21 | 211 | 7.095238 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218009 | 211 | 12 | 47 | 17.583333 | 0.90303 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
fefdeea84966c3c376d5a46f9c21101aefc50772 | 193 | py | Python | landing/views.py | XeryusTC/projman | 3db118d51a9fc362153593f5a862187bdaf0a73c | [
"MIT"
] | null | null | null | landing/views.py | XeryusTC/projman | 3db118d51a9fc362153593f5a862187bdaf0a73c | [
"MIT"
] | 3 | 2015-12-08T17:14:31.000Z | 2016-01-29T18:46:59.000Z | landing/views.py | XeryusTC/projman | 3db118d51a9fc362153593f5a862187bdaf0a73c | [
"MIT"
] | null | null | null | from braces.views import AnonymousRequiredMixin
from django.views.generic import TemplateView
class LandingView(AnonymousRequiredMixin, TemplateView):
template_name = 'landing/index.html'
| 32.166667 | 56 | 0.839378 | 20 | 193 | 8.05 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098446 | 193 | 5 | 57 | 38.6 | 0.925287 | 0 | 0 | 0 | 0 | 0 | 0.093264 | 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 |
3a0f8c5dad18187b53b099da32a80926deec7934 | 172 | py | Python | Statistics/SampleMean.py | Shannon-NJIT/MiniProject2_Statistics | 961d579d40682c030b3aa88b4cd38fa828e8e01e | [
"MIT"
] | null | null | null | Statistics/SampleMean.py | Shannon-NJIT/MiniProject2_Statistics | 961d579d40682c030b3aa88b4cd38fa828e8e01e | [
"MIT"
] | 6 | 2019-11-04T22:48:39.000Z | 2019-11-14T01:18:49.000Z | Statistics/SampleMean.py | Shannon-NJIT/MiniProject2_Statistics | 961d579d40682c030b3aa88b4cd38fa828e8e01e | [
"MIT"
] | 4 | 2019-10-29T23:24:57.000Z | 2019-11-15T01:25:46.000Z | from Calculators.Division import division
def sampleMean(data):
sample_data = data[0:999]
n = len(sample_data)
return round(division(n, sum(sample_data)), 1)
| 21.5 | 50 | 0.715116 | 25 | 172 | 4.8 | 0.64 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0.174419 | 172 | 7 | 51 | 24.571429 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3a11220a149a467396eed9e2f60bcf713ed632ac | 3,213 | py | Python | db/xtraResources/edXBigDataSeries2015/CS100-1x/Module 3: Lectures.py | chrislangst/scalable-data-science | c7beee15c7dd14d27353c4864d927c1b76cd2fa9 | [
"Unlicense"
] | 138 | 2017-07-25T06:48:28.000Z | 2022-03-31T12:23:36.000Z | db/xtraResources/edXBigDataSeries2015/CS100-1x/Module 3: Lectures.py | chrislangst/scalable-data-science | c7beee15c7dd14d27353c4864d927c1b76cd2fa9 | [
"Unlicense"
] | 11 | 2017-08-17T13:45:54.000Z | 2021-06-04T09:06:53.000Z | db/xtraResources/edXBigDataSeries2015/CS100-1x/Module 3: Lectures.py | chrislangst/scalable-data-science | c7beee15c7dd14d27353c4864d927c1b76cd2fa9 | [
"Unlicense"
] | 74 | 2017-08-18T17:04:46.000Z | 2022-03-21T14:30:51.000Z | # Databricks notebook source exported at Mon, 14 Mar 2016 03:21:05 UTC
# MAGIC %md
# MAGIC **SOURCE:** This is from the Community Edition of databricks and has been added to this databricks shard at [/#workspace/scalable-data-science/xtraResources/edXBigDataSeries2015/CS100-1x](/#workspace/scalable-data-science/xtraRes... | 30.6 | 749 | 0.698101 | 379 | 3,213 | 5.894459 | 0.379947 | 0.161146 | 0.205909 | 0.268577 | 0.555058 | 0.528201 | 0.222023 | 0.222023 | 0.114593 | 0.114593 | 0 | 0.02678 | 0.081855 | 3,213 | 105 | 750 | 30.6 | 0.730508 | 0.629007 | 0 | 0 | 0 | 0 | 0.646288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a236c93064f118a008812da513e38be43b9a0c5 | 3,512 | py | Python | data_utils/split_data.py | amitfishy/deep-objdetect | d8fc03bdb532443588b910fb9cb488766c8f6a97 | [
"MIT"
] | null | null | null | data_utils/split_data.py | amitfishy/deep-objdetect | d8fc03bdb532443588b910fb9cb488766c8f6a97 | [
"MIT"
] | null | null | null | data_utils/split_data.py | amitfishy/deep-objdetect | d8fc03bdb532443588b910fb9cb488766c8f6a97 | [
"MIT"
] | null | null | null | import os
from random import shuffle
import pascalvoc_to_yolo
def generate_yolo_format_data(dataset_type, annotation_directory, image_id_directory, train_data_fraction, use_validation_experiments, image_data_directory, class_names_file, train_mode):
get_split_data(image_id_directory, train_data_fraction, use_validat... | 46.210526 | 229 | 0.825456 | 567 | 3,512 | 4.620811 | 0.12522 | 0.130916 | 0.100763 | 0.079389 | 0.84771 | 0.774427 | 0.722519 | 0.631679 | 0.534733 | 0.442748 | 0 | 0.005904 | 0.083713 | 3,512 | 76 | 230 | 46.210526 | 0.808266 | 0.018223 | 0 | 0.25 | 1 | 0 | 0.025239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.053571 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a577d7833ca35f6144ef72f7e8088a435f411df | 691,455 | py | Python | graph.py | Himan13799/Summer-Project | e4b15552b913db6787e0f4a9eda081f6d679fa53 | [
"MIT"
] | null | null | null | graph.py | Himan13799/Summer-Project | e4b15552b913db6787e0f4a9eda081f6d679fa53 | [
"MIT"
] | null | null | null | graph.py | Himan13799/Summer-Project | e4b15552b913db6787e0f4a9eda081f6d679fa53 | [
"MIT"
] | null | null | null | from matplotlib import pyplot
iters = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72... | 24,694.821429 | 222,209 | 0.840666 | 70,108 | 691,455 | 8.291151 | 0.57139 | 0.000124 | 0.000072 | 0.000077 | 0.000564 | 0.000446 | 0.000353 | 0.000353 | 0.000353 | 0.000353 | 0 | 0.891596 | 0.057905 | 691,455 | 28 | 222,210 | 24,694.821429 | 0.000731 | 0 | 0 | 0.375 | 0 | 0 | 0.0002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e908268a83f96abbf4d4753eae66db6c612a092e | 389 | py | Python | sglib/__init__.py | mvinyard/guideID | fec14c8713960428fc31f68ece7ac36a7b2bcab9 | [
"MIT"
] | null | null | null | sglib/__init__.py | mvinyard/guideID | fec14c8713960428fc31f68ece7ac36a7b2bcab9 | [
"MIT"
] | null | null | null | sglib/__init__.py | mvinyard/guideID | fec14c8713960428fc31f68ece7ac36a7b2bcab9 | [
"MIT"
] | null | null | null | # __init__.py
from ._sgRNA_Library import _sgRNA_Library as Library
# functions
from ._gene_annotation_functions._merge_reduce_gene_regions import _merge_reduce_gene_regions as merge_reduce
from ._guide_annotation_functions._annotate_biochemistry import _annotate_biochemistry as annotate_biochemistry, _annotate_GC_c... | 43.222222 | 195 | 0.894602 | 50 | 389 | 6.26 | 0.38 | 0.105431 | 0.095847 | 0.140575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079692 | 389 | 8 | 196 | 48.625 | 0.874302 | 0.053985 | 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 |
e9268aab7efb78626ab35cbb0daf3f9adf12bcb0 | 253 | py | Python | tests/test_MicropythonBoards.py | dwighthubbard/micropython-cloudmanager | 1b41eeaf7f5a34a622826bf0030a9f5c45d1aefc | [
"MIT"
] | 1 | 2017-02-22T03:18:48.000Z | 2017-02-22T03:18:48.000Z | tests/test_MicropythonBoards.py | dwighthubbard/micropython-cloudmanager | 1b41eeaf7f5a34a622826bf0030a9f5c45d1aefc | [
"MIT"
] | null | null | null | tests/test_MicropythonBoards.py | dwighthubbard/micropython-cloudmanager | 1b41eeaf7f5a34a622826bf0030a9f5c45d1aefc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import sys
sys.path.insert(0, '.')
from cloudmanager.board import MicropythonBoards
for result in MicropythonBoards().execute("import os;print(os.uname())"):
print(result.read().strip())
| 25.3 | 73 | 0.754941 | 34 | 253 | 5.470588 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.102767 | 253 | 9 | 74 | 28.111111 | 0.814978 | 0.079051 | 0 | 0 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 4 |
e9321bfef23bb209db9bf3ff382e024a2aab02ee | 337 | py | Python | envipyarclib/gptool/parameter/templates/ulong64array.py | envi-idl/envipyarclib | 90135652510c3d53c5f51177252c1fea2639bf22 | [
"MIT"
] | 1 | 2019-08-03T05:10:18.000Z | 2019-08-03T05:10:18.000Z | envipyarclib/gptool/parameter/templates/ulong64array.py | envi-idl/envipyarclib | 90135652510c3d53c5f51177252c1fea2639bf22 | [
"MIT"
] | null | null | null | envipyarclib/gptool/parameter/templates/ulong64array.py | envi-idl/envipyarclib | 90135652510c3d53c5f51177252c1fea2639bf22 | [
"MIT"
] | 1 | 2020-02-25T14:12:50.000Z | 2020-02-25T14:12:50.000Z | """
Defines the parameter template for the specified data type.
"""
from .basicarray import BASICARRAY
class ULONG64ARRAY(BASICARRAY):
"""
Defines the parameter template for the specified data type.
"""
pass
def template():
"""Factory method for this parameter template class"""
return ULONG6... | 19.823529 | 63 | 0.706231 | 38 | 337 | 6.263158 | 0.526316 | 0.214286 | 0.159664 | 0.226891 | 0.420168 | 0.420168 | 0.420168 | 0.420168 | 0.420168 | 0 | 0 | 0.01487 | 0.20178 | 337 | 16 | 64 | 21.0625 | 0.869888 | 0.498516 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0.2 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e93d7534c6c036af381481b03aad9004f87feec7 | 27 | py | Python | tests/models/__init__.py | Stevenjin8/song2vec | 908de06881d0598dcd2869d89709a2d50654a7fe | [
"MIT"
] | null | null | null | tests/models/__init__.py | Stevenjin8/song2vec | 908de06881d0598dcd2869d89709a2d50654a7fe | [
"MIT"
] | null | null | null | tests/models/__init__.py | Stevenjin8/song2vec | 908de06881d0598dcd2869d89709a2d50654a7fe | [
"MIT"
] | null | null | null | """Tests for ML models."""
| 13.5 | 26 | 0.592593 | 4 | 27 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.695652 | 0.740741 | 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 |
e9425f8008305f97cda9a9d9e3075c0d79dde033 | 38 | py | Python | CH_03_pythonic_syntax/T_17_mypy.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_03_pythonic_syntax/T_17_mypy.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_03_pythonic_syntax/T_17_mypy.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | some_number: int
some_number = 'test'
| 12.666667 | 20 | 0.763158 | 6 | 38 | 4.5 | 0.666667 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 38 | 2 | 21 | 19 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a640e6170ae4b45fbad29d7cf0c3f5b49ab9f01 | 83 | py | Python | mach_cad/model_obj/materials/__init__.py | Severson-Group/MachEval | dbb7999188133f8744636da53cab475ae538ce80 | [
"BSD-3-Clause"
] | 6 | 2021-11-02T20:12:32.000Z | 2021-11-13T10:50:35.000Z | mach_cad/model_obj/materials/__init__.py | Severson-Group/MachEval | dbb7999188133f8744636da53cab475ae538ce80 | [
"BSD-3-Clause"
] | 18 | 2021-11-29T20:14:55.000Z | 2022-03-02T07:17:37.000Z | mach_cad/model_obj/materials/__init__.py | Severson-Group/MachEval | dbb7999188133f8744636da53cab475ae538ce80 | [
"BSD-3-Clause"
] | 1 | 2022-01-29T00:52:38.000Z | 2022-01-29T00:52:38.000Z |
from .material_generic import *
__all__ = []
__all__ += material_generic.__all__ | 13.833333 | 35 | 0.759036 | 9 | 83 | 5.444444 | 0.555556 | 0.612245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 6 | 35 | 13.833333 | 0.690141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 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 |
3a8504e3359b503e6fccca39bd8d8317686a767b | 5,707 | py | Python | originalCode_JMG/data/dataimportallIN.py | dataforgoodfr/batch9_validalab | f333bea8203fd1e4ed098b6e2d51a7f7b05ae530 | [
"MIT"
] | null | null | null | originalCode_JMG/data/dataimportallIN.py | dataforgoodfr/batch9_validalab | f333bea8203fd1e4ed098b6e2d51a7f7b05ae530 | [
"MIT"
] | null | null | null | originalCode_JMG/data/dataimportallIN.py | dataforgoodfr/batch9_validalab | f333bea8203fd1e4ed098b6e2d51a7f7b05ae530 | [
"MIT"
] | 1 | 2021-04-19T21:27:58.000Z | 2021-04-19T21:27:58.000Z | import networkx as nx
from py2neo import Graph, Node, Relationship
import pandas as pd
import random
graph = Graph("bolt://localhost:7687", auth=("neo4j", "Password"))
def importGexf(gexffilepath, depth = 0):
'''
Reads gexf network file from hyphe, update or create all nodes and relationships in neo4j data... | 38.823129 | 126 | 0.58805 | 732 | 5,707 | 4.472678 | 0.187158 | 0.054979 | 0.082468 | 0.114233 | 0.737935 | 0.733659 | 0.733659 | 0.733659 | 0.696396 | 0.696396 | 0 | 0.038002 | 0.266865 | 5,707 | 146 | 127 | 39.089041 | 0.744503 | 0.104433 | 0 | 0.675926 | 0 | 0.027778 | 0.188661 | 0.070723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.027778 | 0.148148 | 0 | 0.166667 | 0.148148 | 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 |
3aba773aa612d9acfa1ae100f08af08822858dc4 | 6,283 | py | Python | tests/fire_groups/test_damage_profile.py | spascou/ps2-analysis | 00f99b009d15d4c401a3338ddd0408ac7eedcc0b | [
"MIT"
] | 2 | 2020-06-25T17:19:05.000Z | 2020-10-13T06:08:39.000Z | tests/fire_groups/test_damage_profile.py | spascou/ps2-analysis | 00f99b009d15d4c401a3338ddd0408ac7eedcc0b | [
"MIT"
] | null | null | null | tests/fire_groups/test_damage_profile.py | spascou/ps2-analysis | 00f99b009d15d4c401a3338ddd0408ac7eedcc0b | [
"MIT"
] | null | null | null | from ps2_census.enums import ResistType
from ps2_analysis.enums import DamageTargetType
from ps2_analysis.fire_groups.damage_profile import DamageLocation, DamageProfile
def test_damage_delta():
dp: DamageProfile = DamageProfile(
max_damage=100,
max_damage_range=1234,
min_damage=100,
... | 29.087963 | 87 | 0.665287 | 825 | 6,283 | 4.739394 | 0.081212 | 0.083887 | 0.107417 | 0.113043 | 0.918414 | 0.860102 | 0.758824 | 0.692072 | 0.692072 | 0.585166 | 0 | 0.075005 | 0.240331 | 6,283 | 215 | 88 | 29.223256 | 0.744186 | 0 | 0 | 0.56044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241758 | 1 | 0.032967 | true | 0 | 0.016484 | 0 | 0.049451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3ae6ca75f3d3a8c0e269c42286630443d12eadfe | 102 | py | Python | fseval/pipelines/rank_and_validate/__init__.py | dunnkers/fseval | 49a11a63e09e65b1f14389b6ba3a9ae3aeae086d | [
"MIT"
] | 5 | 2020-07-08T11:58:46.000Z | 2022-01-26T13:58:00.000Z | fseval/pipelines/rank_and_validate/__init__.py | shenlong95/fseval | 4d2e6618b8838f9e52fe60621b08595dc4c5b4fb | [
"MIT"
] | 63 | 2021-05-09T06:18:24.000Z | 2022-03-27T18:05:58.000Z | fseval/pipelines/rank_and_validate/__init__.py | shenlong95/fseval | 4d2e6618b8838f9e52fe60621b08595dc4c5b4fb | [
"MIT"
] | 1 | 2022-02-11T03:24:14.000Z | 2022-02-11T03:24:14.000Z | from .rank_and_validate import BootstrappedRankAndValidate
__all__ = ["BootstrappedRankAndValidate"]
| 25.5 | 58 | 0.862745 | 8 | 102 | 10.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 102 | 3 | 59 | 34 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aae5f1d79a16e11baab64d302ca2965536e5380a | 95 | py | Python | coremodels/apps.py | pakponj/coursing-field | 0368c2fc546b3955dc1fef1fc00252d8f015f56d | [
"Apache-2.0"
] | null | null | null | coremodels/apps.py | pakponj/coursing-field | 0368c2fc546b3955dc1fef1fc00252d8f015f56d | [
"Apache-2.0"
] | null | null | null | coremodels/apps.py | pakponj/coursing-field | 0368c2fc546b3955dc1fef1fc00252d8f015f56d | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class CoremodelsConfig(AppConfig):
name = 'coremodels'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
aae681f8c4e041d774adeeb9e3c2ebb127572c89 | 688 | py | Python | scripts/forms.py | ansa-aboudou/resumex | 8c546403495c6d0045af4530a3f8601f69035528 | [
"MIT"
] | null | null | null | scripts/forms.py | ansa-aboudou/resumex | 8c546403495c6d0045af4530a3f8601f69035528 | [
"MIT"
] | null | null | null | scripts/forms.py | ansa-aboudou/resumex | 8c546403495c6d0045af4530a3f8601f69035528 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from wtforms import Form, StringField, validators
class LoginForm(Form):
username = StringField('Username:', validators=[validators.required(), validators.Length(min=1, max=30)])
password = StringField('Password:', validators=[validators.required(), validators.Length(min=1, max... | 49.142857 | 119 | 0.710756 | 75 | 688 | 6.52 | 0.373333 | 0.204499 | 0.194274 | 0.233129 | 0.529652 | 0.529652 | 0.529652 | 0.529652 | 0.216769 | 0 | 0 | 0.034653 | 0.119186 | 688 | 13 | 120 | 52.923077 | 0.772277 | 0.030523 | 0 | 0 | 0 | 0 | 0.064417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
aaf11ccf2412c6e3efada30eaecd8bb0db6b297a | 3,052 | py | Python | Assignment1/initial/src/main/mp/utils/AST.py | jimcbl/ppl_hcmut_assignment | 7a06d61e4cda8c76f62a1da5b93ef66d98198b80 | [
"MIT"
] | 1 | 2019-11-27T13:41:07.000Z | 2019-11-27T13:41:07.000Z | Assignment1/initial/src/main/mp/utils/AST.py | jimodayne/ppl_hcmut_assignment | 7a06d61e4cda8c76f62a1da5b93ef66d98198b80 | [
"MIT"
] | null | null | null | Assignment1/initial/src/main/mp/utils/AST.py | jimodayne/ppl_hcmut_assignment | 7a06d61e4cda8c76f62a1da5b93ef66d98198b80 | [
"MIT"
] | 1 | 2019-12-03T05:33:13.000Z | 2019-12-03T05:33:13.000Z | from abc import ABC, abstractmethod, ABCMeta
from Visitor import Visitor
class AST(ABC):
def __eq__(self, other):
return self.__dict__ == other.__dict__
@abstractmethod
def accept(self, v, param):
return v.visit(self, param)
class Program(AST):
#decl:list(Decl)
def... | 23.476923 | 154 | 0.572412 | 365 | 3,052 | 4.534247 | 0.156164 | 0.070695 | 0.070695 | 0.076133 | 0.312991 | 0.203021 | 0.203021 | 0.077341 | 0.064048 | 0 | 0 | 0 | 0.296855 | 3,052 | 129 | 155 | 23.658915 | 0.771202 | 0.048493 | 0 | 0.409639 | 0 | 0 | 0.038726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289157 | false | 0.072289 | 0.024096 | 0.216867 | 0.783133 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
c9050ca554b19fd1e3228026b793070703e19ae1 | 150 | py | Python | NewspaperSpider/NewspaperSpider/items.py | sidharthk9/NewspaperScraper | 9a8d608c55cc6fdfa6492d2ca58739066d65b16e | [
"Unlicense"
] | null | null | null | NewspaperSpider/NewspaperSpider/items.py | sidharthk9/NewspaperScraper | 9a8d608c55cc6fdfa6492d2ca58739066d65b16e | [
"Unlicense"
] | null | null | null | NewspaperSpider/NewspaperSpider/items.py | sidharthk9/NewspaperScraper | 9a8d608c55cc6fdfa6492d2ca58739066d65b16e | [
"Unlicense"
] | null | null | null | import scrapy
from scrapy.item import Field
class TitleItem(scrapy.Item):
heading = Field()
class LinkItem(scrapy.Item):
article = Field() | 15 | 29 | 0.72 | 19 | 150 | 5.684211 | 0.526316 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 150 | 10 | 30 | 15 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
c926f1cc84ef2be7db59c1ebc4dd4db9c3aeb3e1 | 332 | py | Python | accounting_app/accounting_app/doctype/gl_entry/gl_entry.py | imdadhussain/accounting_app | 0f4b54242d81953c0c3ece3fb098701e86ce0eaf | [
"MIT"
] | null | null | null | accounting_app/accounting_app/doctype/gl_entry/gl_entry.py | imdadhussain/accounting_app | 0f4b54242d81953c0c3ece3fb098701e86ce0eaf | [
"MIT"
] | null | null | null | accounting_app/accounting_app/doctype/gl_entry/gl_entry.py | imdadhussain/accounting_app | 0f4b54242d81953c0c3ece3fb098701e86ce0eaf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021, BS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils.nestedset import get_descendants_of
from frappe.utils import flt
class GLEntry(Document... | 25.538462 | 53 | 0.789157 | 46 | 332 | 5.543478 | 0.695652 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017483 | 0.138554 | 332 | 12 | 54 | 27.666667 | 0.874126 | 0.328313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.714286 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
c939aef00a062e0b98f7c418e70663b8692f035d | 108 | py | Python | sample/sample.py | eaybek/getthat | 3ca34902f773ec6a40a1df0b7dac5845a22cc8e4 | [
"MIT"
] | null | null | null | sample/sample.py | eaybek/getthat | 3ca34902f773ec6a40a1df0b7dac5845a22cc8e4 | [
"MIT"
] | null | null | null | sample/sample.py | eaybek/getthat | 3ca34902f773ec6a40a1df0b7dac5845a22cc8e4 | [
"MIT"
] | null | null | null | from getthat import getthat
# from sna.search import Sna
Sna = getthat("sna.search", "Sna")
sna = Sna()
| 12 | 34 | 0.685185 | 16 | 108 | 4.625 | 0.3125 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 108 | 8 | 35 | 13.5 | 0.840909 | 0.240741 | 0 | 0 | 0 | 0 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c94aca271568ab00f3c86f9599a88f50e9eeab3a | 95 | py | Python | fruitsales/apps.py | khajime/fruit-sales-management-console | 4f802578cd9ddcdbbc3259263d0d19df11432a0c | [
"MIT"
] | null | null | null | fruitsales/apps.py | khajime/fruit-sales-management-console | 4f802578cd9ddcdbbc3259263d0d19df11432a0c | [
"MIT"
] | 16 | 2019-02-21T14:12:01.000Z | 2019-03-11T08:00:15.000Z | fruitsales/apps.py | khajime/fruit-sales-management-console | 4f802578cd9ddcdbbc3259263d0d19df11432a0c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FruitsalesConfig(AppConfig):
name = 'fruitsales'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
c97adf2252f256379d95e93fa38af238ed647da0 | 114 | py | Python | Leetcode/1323. Maximum 69 Number/solution1.py | asanoviskhak/Outtalent | c500e8ad498f76d57eb87a9776a04af7bdda913d | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | Leetcode/1323. Maximum 69 Number/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | null | null | null | Leetcode/1323. Maximum 69 Number/solution1.py | CrazySquirrel/Outtalent | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | class Solution:
def maximum69Number(self, num: int) -> int:
return int(str(num).replace('6', '9', 1))
| 28.5 | 49 | 0.605263 | 16 | 114 | 4.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.210526 | 114 | 3 | 50 | 38 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a3140847cb4f8ae37f600751b8e796fb5fea58ee | 129 | py | Python | Lib/test/test_import/data/circular_imports/rebinding.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/test/test_import/data/circular_imports/rebinding.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_import/data/circular_imports/rebinding.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """Test the binding of names when a circular zaimportuj shares the same name jako an
attribute."""
z .rebinding2 zaimportuj util
| 32.25 | 84 | 0.782946 | 20 | 129 | 5.05 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.155039 | 129 | 3 | 85 | 43 | 0.917431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a3551761361e06ddd937cee500aed18df74cd70f | 2,027 | py | Python | torchtraining/functional/metrics/regression.py | szymonmaszke/torchtraining | 1ddf169325b7239d6d6686b20072a406b69a0180 | [
"MIT"
] | 3 | 2020-08-26T06:11:58.000Z | 2020-08-27T08:11:15.000Z | torchtraining/functional/metrics/regression.py | klaudiapalasz/torchtraining | 7ac54009eea2fd84aa635b6f3cbfe306f317d087 | [
"MIT"
] | 1 | 2020-08-25T19:19:43.000Z | 2020-08-25T19:19:43.000Z | torchtraining/functional/metrics/regression.py | klaudiapalasz/torchtraining | 7ac54009eea2fd84aa635b6f3cbfe306f317d087 | [
"MIT"
] | 1 | 2021-04-15T18:55:57.000Z | 2021-04-15T18:55:57.000Z | import typing
import torch
from .. import utils
@utils.docs
def regression_of_squares(
output: torch.Tensor,
target: torch.Tensor,
reduction: typing.Callable[[torch.Tensor,], torch.Tensor,] = torch.sum,
) -> torch.Tensor:
return reduction(output - torch.mean(target)) ** 2
@utils.docs
def squares_o... | 27.026667 | 84 | 0.693143 | 264 | 2,027 | 5.253788 | 0.147727 | 0.30137 | 0.1615 | 0.13266 | 0.727469 | 0.700072 | 0.700072 | 0.66907 | 0.66907 | 0.526316 | 0 | 0.008772 | 0.156389 | 2,027 | 74 | 85 | 27.391892 | 0.802339 | 0 | 0 | 0.592593 | 0 | 0 | 0.003947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0.148148 | 0.388889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a382674b28c095d002534f7e5a89fab99c7987b3 | 2,700 | py | Python | streamlit/About.py | sarthak815/sage2therescue | b4bc38731a2b43866c545560e850cdddd85a0852 | [
"MIT"
] | null | null | null | streamlit/About.py | sarthak815/sage2therescue | b4bc38731a2b43866c545560e850cdddd85a0852 | [
"MIT"
] | null | null | null | streamlit/About.py | sarthak815/sage2therescue | b4bc38731a2b43866c545560e850cdddd85a0852 | [
"MIT"
] | 1 | 2022-03-04T09:31:18.000Z | 2022-03-04T09:31:18.000Z | import streamlit as st
def app():
st.title("About")
st.markdown('''
During the Cyclone Fani which hit Odisha in 2019 a lot of places ran out of electricity, water and other basic necessities. During this period most of the rescue workers relied on data accumulated pre disaster to guide rescue services but this was... | 117.391304 | 1,320 | 0.802963 | 474 | 2,700 | 4.57384 | 0.440928 | 0.01845 | 0.016605 | 0.021218 | 0.01845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00584 | 0.175556 | 2,700 | 23 | 1,321 | 117.391304 | 0.968104 | 0 | 0 | 0 | 0 | 0.105263 | 0.974084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | true | 0 | 0.052632 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a39715724a34e51cf7b15a4f030411898b87a5ec | 1,706 | py | Python | test/test_entities_api.py | iknaio/graphsense-python | b61c66b6ec0bb9720036ae61777e90ce63a971cc | [
"MIT"
] | null | null | null | test/test_entities_api.py | iknaio/graphsense-python | b61c66b6ec0bb9720036ae61777e90ce63a971cc | [
"MIT"
] | 1 | 2022-02-24T11:21:49.000Z | 2022-02-24T11:21:49.000Z | test/test_entities_api.py | iknaio/graphsense-python | b61c66b6ec0bb9720036ae61777e90ce63a971cc | [
"MIT"
] | null | null | null | """
GraphSense API
GraphSense API # noqa: E501
The version of the OpenAPI document: 0.5.1
Generated by: https://openapi-generator.tech
"""
import unittest
import graphsense
from graphsense.api.entities_api import EntitiesApi # noqa: E501
class TestEntitiesApi(unittest.TestCase):
"""Entities... | 21.871795 | 73 | 0.623681 | 213 | 1,706 | 4.788732 | 0.305164 | 0.078431 | 0.07549 | 0.102941 | 0.336275 | 0.272549 | 0.113725 | 0 | 0 | 0 | 0 | 0.027615 | 0.299531 | 1,706 | 77 | 74 | 22.155844 | 0.825941 | 0.470692 | 0 | 0.333333 | 1 | 0 | 0.011127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.333333 | 0.125 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
a3a2b31e0b527f3675dc65a92359c7b90836c880 | 511 | py | Python | apilos_settings/models.py | MTES-MCT/apilos | 6404b94b0f668e39c1dc12a6421aebd26ef1c98b | [
"MIT"
] | null | null | null | apilos_settings/models.py | MTES-MCT/apilos | 6404b94b0f668e39c1dc12a6421aebd26ef1c98b | [
"MIT"
] | 2 | 2021-12-15T05:10:43.000Z | 2021-12-15T05:11:00.000Z | apilos_settings/models.py | MTES-MCT/apilos | 6404b94b0f668e39c1dc12a6421aebd26ef1c98b | [
"MIT"
] | 1 | 2021-12-28T13:06:06.000Z | 2021-12-28T13:06:06.000Z | from django.db import models
class Departement(models.Model):
id = models.AutoField(primary_key=True)
nom = models.CharField(max_length=255, unique=True)
code_insee = models.CharField(max_length=3, unique=True)
code_postal = models.CharField(max_length=3)
def natural_key(self):
return (s... | 26.894737 | 60 | 0.700587 | 73 | 511 | 4.643836 | 0.424658 | 0.159292 | 0.159292 | 0.212389 | 0.147493 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012019 | 0.18591 | 511 | 18 | 61 | 28.388889 | 0.802885 | 0 | 0 | 0 | 0 | 0 | 0.058708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6e5a95d6b33481e439c3c6dd74b69db486074c51 | 117 | py | Python | lib/JumpScale/lib/docker/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/lib/docker/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | lib/JumpScale/lib/docker/__init__.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | from JumpScale import j
j.base.loader.makeAvailable(j, 'tools')
from Docker import Docker
j.tools.docker = Docker()
| 19.5 | 39 | 0.769231 | 18 | 117 | 5 | 0.5 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119658 | 117 | 5 | 40 | 23.4 | 0.873786 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 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 |
6e7f3a4c08faec09d89aa387dcfdf45492ab2264 | 163 | py | Python | ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py | brando90/ultimate-utils | 9b7ca2e9d330333c4e49722d0708d65b22ed173a | [
"MIT"
] | 5 | 2021-03-13T16:07:26.000Z | 2021-09-09T17:00:36.000Z | ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py | brando90/ultimate-utils | 9b7ca2e9d330333c4e49722d0708d65b22ed173a | [
"MIT"
] | 8 | 2021-03-09T21:52:09.000Z | 2021-12-02T17:23:33.000Z | ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py | brando90/ultimate-utils | 9b7ca2e9d330333c4e49722d0708d65b22ed173a | [
"MIT"
] | 5 | 2021-03-24T20:38:43.000Z | 2022-03-17T07:54:12.000Z | """
TODO: Once I finish the d zero and high paper, I will port the code here.
TODO: also put the epochs training, for the ml vs maml paper with synthetic data.
""" | 40.75 | 81 | 0.730061 | 31 | 163 | 3.83871 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196319 | 163 | 4 | 82 | 40.75 | 0.908397 | 0.95092 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.5 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6e8d075cdc130105dd93cb71efed865a3cfcfbc8 | 257 | py | Python | ssk/alpha/api.py | jobliz/solid-state-kinetics | c5767b400b19bd0256c806001664f0b369718bab | [
"MIT"
] | 2 | 2017-03-08T21:32:11.000Z | 2017-07-19T03:27:18.000Z | ssk/alpha/api.py | jobliz/solid-state-kinetics | c5767b400b19bd0256c806001664f0b369718bab | [
"MIT"
] | null | null | null | ssk/alpha/api.py | jobliz/solid-state-kinetics | c5767b400b19bd0256c806001664f0b369718bab | [
"MIT"
] | null | null | null | from __future__ import division
import numpy as np
from scipy import integrate
__all__ = ['area', 'simple']
def simple(p):
pass
def area(p):
cumul = np.hstack(([0], integrate.cumtrapz(np.abs(np.gradient(p)))))
return cumul / max(cumul)
| 17.133333 | 72 | 0.669261 | 37 | 257 | 4.432432 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.194553 | 257 | 14 | 73 | 18.357143 | 0.78744 | 0 | 0 | 0 | 0 | 0 | 0.039063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
6ecea48303630a92cce0c4706954968c1cd05d0f | 134 | py | Python | sopy/tags/__init__.py | AlexFrazer/sopython-site | 4ede64cf6d04def596be13feeaa4d84ce8503ef3 | [
"BSD-3-Clause"
] | 81 | 2015-02-17T17:07:27.000Z | 2021-08-15T17:46:13.000Z | sopy/tags/__init__.py | AlexFrazer/sopython-site | 4ede64cf6d04def596be13feeaa4d84ce8503ef3 | [
"BSD-3-Clause"
] | 81 | 2015-02-17T17:04:16.000Z | 2021-02-21T03:52:55.000Z | sopy/tags/__init__.py | AlexFrazer/sopython-site | 4ede64cf6d04def596be13feeaa4d84ce8503ef3 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T18:28:06.000Z | 2022-02-05T03:11:04.000Z | from flask import Blueprint
bp = Blueprint('tags', __name__)
@bp.record_once
def register(state):
from sopy.tags import models
| 14.888889 | 32 | 0.746269 | 19 | 134 | 5 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 134 | 8 | 33 | 16.75 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0.4 | 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 |
6eceaf402774f48fd5e753b9693ff245ec9cc7ae | 152 | py | Python | {{cookiecutter.project_slug}}/backend/api/v1/handlers/__init__.py | devalv/cookiecutter-fastapi | c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00 | [
"MIT"
] | 2 | 2021-12-26T00:10:19.000Z | 2022-01-30T21:24:31.000Z | {{cookiecutter.project_slug}}/backend/api/v1/handlers/__init__.py | devalv/cookiecutter-fastapi | c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00 | [
"MIT"
] | 1 | 2021-10-10T17:38:30.000Z | 2021-10-10T18:30:24.000Z | {{cookiecutter.project_slug}}/backend/api/v1/handlers/__init__.py | devalv/cookiecutter-fastapi | c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""{{ cookiecutter.project_slug }} rest-api handlers."""
from .security import security_router
__all__ = ("security_router",)
| 21.714286 | 56 | 0.684211 | 17 | 152 | 5.705882 | 0.823529 | 0.28866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.125 | 152 | 6 | 57 | 25.333333 | 0.721805 | 0.480263 | 0 | 0 | 0 | 0 | 0.205479 | 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 |
42b41a2f0adeb62c8c1ac936436eafb38cf4632a | 71 | py | Python | gnn_fw/__init__.py | krzysztoffiok/gnn-classification-pipeline | b0bfb209bcf8856e68d2714b04bada9104e3c75b | [
"MIT"
] | 1 | 2021-12-14T20:14:58.000Z | 2021-12-14T20:14:58.000Z | gnn_fw/__init__.py | krzysztoffiok/gnn-classification-pipeline | b0bfb209bcf8856e68d2714b04bada9104e3c75b | [
"MIT"
] | null | null | null | gnn_fw/__init__.py | krzysztoffiok/gnn-classification-pipeline | b0bfb209bcf8856e68d2714b04bada9104e3c75b | [
"MIT"
] | null | null | null | from . import utils
from . import models
__all__ = ['utils', 'models']
| 17.75 | 29 | 0.690141 | 9 | 71 | 5 | 0.555556 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 3 | 30 | 23.666667 | 0.762712 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
42c7fd5ab2f8f92a26fe730d8bb3070bbc988e18 | 238 | py | Python | Python/5. Math/exercise2.py | mukeshmithrakumar/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | 12 | 2019-10-29T09:49:26.000Z | 2022-02-21T09:43:41.000Z | Python/5. Math/exercise2.py | ozturkosu/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | null | null | null | Python/5. Math/exercise2.py | ozturkosu/HackerRankSolutions | cd9e71be5e8703287b9f4efc042df8827175af1b | [
"MIT"
] | 10 | 2019-12-22T03:18:50.000Z | 2021-09-23T16:55:25.000Z | # Mod Divmod "https://www.hackerrank.com/challenges/python-mod-divmod/problem"
# Enter your code here. Read input from STDIN. Print output to STDOUT
a, b = (int(input()) for _ in range(2))
print(a // b)
print(a % b)
print(divmod(a, b))
| 26.444444 | 78 | 0.693277 | 41 | 238 | 4 | 0.682927 | 0.04878 | 0.085366 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.147059 | 238 | 8 | 79 | 29.75 | 0.802956 | 0.605042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
42cafc4dfa6b35f9ab782a932c1fbfc6c8a9e175 | 357 | py | Python | src/tests/test_import.py | williamsardar/pythonnet | a97a7768e0289e1b53ffc1ab67d89343d15bca44 | [
"MIT"
] | 1 | 2019-03-09T21:03:07.000Z | 2019-03-09T21:03:07.000Z | src/tests/test_import.py | williamsardar/pythonnet | a97a7768e0289e1b53ffc1ab67d89343d15bca44 | [
"MIT"
] | null | null | null | src/tests/test_import.py | williamsardar/pythonnet | a97a7768e0289e1b53ffc1ab67d89343d15bca44 | [
"MIT"
] | 1 | 2018-06-27T10:04:11.000Z | 2018-06-27T10:04:11.000Z | # -*- coding: utf-8 -*-
"""Test the import statement."""
import pytest
def test_relative_missing_import():
"""Test that a relative missing import doesn't crash.
Some modules use this to check if a package is installed.
Relative import in the site-packages folder"""
with pytest.raises(ImportError):
... | 25.5 | 61 | 0.703081 | 49 | 357 | 5.020408 | 0.693878 | 0.158537 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 0.201681 | 357 | 13 | 62 | 27.461538 | 0.859649 | 0.565826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 1 | 0 | 1.25 | 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 |
6e52ebb7ea5d298c9a93f221c29b566a183e81fe | 251 | py | Python | latest/modules/physics/control/control_plots-5.py | sympy/sympy_doc | ec4f28eed09d5acb9e55874e82cc86c74e762c0d | [
"BSD-3-Clause"
] | 20 | 2015-01-28T01:08:13.000Z | 2021-12-19T04:03:28.000Z | latest/modules/physics/control/control_plots-5.py | sympy/sympy_doc | ec4f28eed09d5acb9e55874e82cc86c74e762c0d | [
"BSD-3-Clause"
] | 31 | 2015-01-27T07:16:19.000Z | 2021-11-15T10:58:15.000Z | latest/modules/physics/control/control_plots-5.py | sympy/sympy_doc | ec4f28eed09d5acb9e55874e82cc86c74e762c0d | [
"BSD-3-Clause"
] | 38 | 2015-01-08T18:48:27.000Z | 2021-12-02T13:19:43.000Z | from sympy.abc import s
from sympy.physics.control.lti import TransferFunction
from sympy.physics.control.control_plots import ramp_response_plot
tf1 = TransferFunction(s, (s+4)*(s+8), s)
ramp_response_plot(tf1, upper_limit=2) # doctest: +SKIP
| 41.833333 | 67 | 0.780876 | 39 | 251 | 4.871795 | 0.538462 | 0.142105 | 0.168421 | 0.242105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022523 | 0.115538 | 251 | 5 | 68 | 50.2 | 0.833333 | 0.055777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
280a3ff7069c05f2fa4cfad162456023976a914d | 181 | py | Python | states/__init__.py | EemeliSyynimaa/Pore | 1eca9aa7163f1d31ae84c862790693eb3c904433 | [
"MIT"
] | null | null | null | states/__init__.py | EemeliSyynimaa/Pore | 1eca9aa7163f1d31ae84c862790693eb3c904433 | [
"MIT"
] | null | null | null | states/__init__.py | EemeliSyynimaa/Pore | 1eca9aa7163f1d31ae84c862790693eb3c904433 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'eeneku'
from main_menu import MainMenu
from world_map import WorldMap
from local_map import LocalMap
__all__ = [MainMenu, WorldMap, LocalMap] | 22.625 | 40 | 0.762431 | 24 | 181 | 5.291667 | 0.666667 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.143646 | 181 | 8 | 40 | 22.625 | 0.812903 | 0.116022 | 0 | 0 | 0 | 0 | 0.037736 | 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 |
280b8063834de2658f477b63373426eabdf7a4f6 | 5,516 | py | Python | tests/test_api.py | HealthByRo/fdadb | e020a902ca20cebd5999bc2dbc530375ab0922fb | [
"MIT"
] | 1 | 2020-06-11T04:44:22.000Z | 2020-06-11T04:44:22.000Z | tests/test_api.py | HealthByRo/fdadb | e020a902ca20cebd5999bc2dbc530375ab0922fb | [
"MIT"
] | 8 | 2018-11-26T09:22:14.000Z | 2019-10-23T13:17:44.000Z | tests/test_api.py | HealthByRo/fdadb | e020a902ca20cebd5999bc2dbc530375ab0922fb | [
"MIT"
] | null | null | null | from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
from fdadb.models import MedicationName, MedicationNDC, MedicationStrength
class APITests(APITestCase):
def setUp(self):
for name in ("DrugName", "OtherDrugName", "DruuuugName", "NamedDrug"):
medication_nam... | 45.966667 | 120 | 0.583575 | 537 | 5,516 | 5.92365 | 0.134078 | 0.150896 | 0.231374 | 0.220685 | 0.729959 | 0.729959 | 0.693178 | 0.632506 | 0.60044 | 0.60044 | 0 | 0.022392 | 0.263234 | 5,516 | 119 | 121 | 46.352941 | 0.760335 | 0 | 0 | 0.396226 | 0 | 0 | 0.25145 | 0.017041 | 0 | 0 | 0 | 0 | 0.301887 | 1 | 0.037736 | false | 0 | 0.028302 | 0 | 0.075472 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
28162dcf4efa8e10ec1ddcb4eb91bfa4cb4b0d83 | 107 | py | Python | Chapter 01/fraction-type.py | arifmudi/Applying-Math-with-Python | abeb6b0a9bcfa8b21092b9793d4e691cf5a146bf | [
"MIT"
] | 34 | 2020-07-23T14:42:42.000Z | 2022-03-18T07:00:17.000Z | Chapter 01/fraction-type.py | arifmudi/Applying-Math-with-Python | abeb6b0a9bcfa8b21092b9793d4e691cf5a146bf | [
"MIT"
] | null | null | null | Chapter 01/fraction-type.py | arifmudi/Applying-Math-with-Python | abeb6b0a9bcfa8b21092b9793d4e691cf5a146bf | [
"MIT"
] | 31 | 2020-07-22T11:09:33.000Z | 2022-03-15T16:59:53.000Z |
from fractions import Fraction
num1 = Fraction(1, 3)
num2 = Fraction(1, 7)
num1 * num2 # Fraction(1, 21)
| 17.833333 | 30 | 0.691589 | 17 | 107 | 4.352941 | 0.588235 | 0.364865 | 0.351351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 0.186916 | 107 | 5 | 31 | 21.4 | 0.724138 | 0.140187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
281e79df5e1dd65bfbeca11e0d9ea108af82bb30 | 18 | py | Python | library/tutorial/__init__.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | library/tutorial/__init__.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | library/tutorial/__init__.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | __all__ = ["fibo"] | 18 | 18 | 0.611111 | 2 | 18 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 18 | 1 | 18 | 18 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 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 |
28360d264e9f210900fd3d3f89893b647f81343f | 133 | py | Python | Service/Ipv4_stun/startup.py | zlf7735268/Tenet | 54005ad5d17b5d1f5ef4cc04aa6eb7939e58c2c5 | [
"Apache-2.0"
] | 2 | 2021-12-17T01:21:19.000Z | 2021-12-17T14:49:42.000Z | Service/Ipv4_stun/startup.py | zlf7735268/Tenet | 54005ad5d17b5d1f5ef4cc04aa6eb7939e58c2c5 | [
"Apache-2.0"
] | null | null | null | Service/Ipv4_stun/startup.py | zlf7735268/Tenet | 54005ad5d17b5d1f5ef4cc04aa6eb7939e58c2c5 | [
"Apache-2.0"
] | null | null | null | from Ipv4_stun.transfer import Transfer
#m=Transfer(address=('172.16.0.156',9080))
m=Transfer(address=('127.0.0.1', 82))
m.run() | 26.6 | 43 | 0.691729 | 24 | 133 | 3.791667 | 0.666667 | 0.197802 | 0.351648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.090226 | 133 | 5 | 44 | 26.6 | 0.570248 | 0.308271 | 0 | 0 | 0 | 0 | 0.102273 | 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 |
283c7a1056bf5070026e3e0618dc2649d53dd2ec | 203 | py | Python | sucursal_crud/sucursal_crud_api/models/puntoDeRetiro.py | cassa10/challenge-api | 0bcc4f38b049f930faca45b80d869835650e2a23 | [
"MIT"
] | null | null | null | sucursal_crud/sucursal_crud_api/models/puntoDeRetiro.py | cassa10/challenge-api | 0bcc4f38b049f930faca45b80d869835650e2a23 | [
"MIT"
] | null | null | null | sucursal_crud/sucursal_crud_api/models/puntoDeRetiro.py | cassa10/challenge-api | 0bcc4f38b049f930faca45b80d869835650e2a23 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator
from .nodo import Nodo
class PuntoDeRetiro(Nodo):
capacidad = models.IntegerField(validators=[MinValueValidator(1)]) | 33.833333 | 70 | 0.817734 | 24 | 203 | 6.916667 | 0.583333 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.103448 | 203 | 6 | 70 | 33.833333 | 0.906593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 |
283fe692e8590b67f92e91991108dc8259bb2861 | 406 | py | Python | sgnlp/models/span_extraction/__init__.py | vincenttzc/sgnlp | 44ae12a5ae98c9a1945d346e9373854c7d472a4b | [
"MIT"
] | null | null | null | sgnlp/models/span_extraction/__init__.py | vincenttzc/sgnlp | 44ae12a5ae98c9a1945d346e9373854c7d472a4b | [
"MIT"
] | null | null | null | sgnlp/models/span_extraction/__init__.py | vincenttzc/sgnlp | 44ae12a5ae98c9a1945d346e9373854c7d472a4b | [
"MIT"
] | null | null | null | from .config import RecconSpanExtractionConfig
from .tokenization import RecconSpanExtractionTokenizer
from .modeling import RecconSpanExtractionModel
from .preprocess import RecconSpanExtractionPreprocessor
from .postprocess import RecconSpanExtractionPostprocessor
from .train import train
from .eval import evaluate
f... | 40.6 | 58 | 0.889163 | 38 | 406 | 9.447368 | 0.552632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08867 | 406 | 9 | 59 | 45.111111 | 0.97027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
287237c213c17fd114b9833d581d53122d6ad18d | 492 | py | Python | app/core/admin/__init__.py | 3darkman/faction-builder-api | 9dda323ef44a1ca0976306a4f20f9cc3e13704ec | [
"MIT"
] | null | null | null | app/core/admin/__init__.py | 3darkman/faction-builder-api | 9dda323ef44a1ca0976306a4f20f9cc3e13704ec | [
"MIT"
] | null | null | null | app/core/admin/__init__.py | 3darkman/faction-builder-api | 9dda323ef44a1ca0976306a4f20f9cc3e13704ec | [
"MIT"
] | null | null | null | from django.contrib import admin
from core import models
from .category import CategoryAdmin
from .trait import TraitAdmin
from .user import UserAdmin
admin.site.register(models.User, UserAdmin)
admin.site.register(models.Ability)
admin.site.register(models.Category, CategoryAdmin)
admin.site.register(models.Trait, ... | 28.941176 | 51 | 0.835366 | 64 | 492 | 6.421875 | 0.3125 | 0.175182 | 0.3309 | 0.447689 | 0.155718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069106 | 492 | 16 | 52 | 30.75 | 0.89738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
287f3fa6bbdc5def4722251d903f7d2865df6fbb | 324 | py | Python | config.py | Shutey/ShuteyBot2.0 | 16f0baf6e8725bb452cac06fa60d6db023212f6c | [
"MIT"
] | 2 | 2020-04-23T00:52:06.000Z | 2020-04-23T00:56:24.000Z | config.py | Shutey/ShuteyBot2.0 | 16f0baf6e8725bb452cac06fa60d6db023212f6c | [
"MIT"
] | null | null | null | config.py | Shutey/ShuteyBot2.0 | 16f0baf6e8725bb452cac06fa60d6db023212f6c | [
"MIT"
] | null | null | null | token = 'Mzc5NTc3MDc1NTU3NzI4MjU2.DXixQA.DLLB8b81nSyB1IGNJ6WeEeukAQU' #Put Your bots token here
prefix = '^^' #put prefix here
link = 'https://discordapp.com/oauth2/authorize?client_id=379577075557728256&scope=bot&permissions=134659080' #put bot invite link here
ownerid = '227860415709708288' #put your id here... | 36 | 136 | 0.774691 | 37 | 324 | 6.756757 | 0.675676 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201413 | 0.126543 | 324 | 8 | 137 | 40.5 | 0.681979 | 0.243827 | 0 | 0 | 0 | 0.25 | 0.771552 | 0.25431 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2887834c88b90ae4d29891c6021442f87fb025c0 | 110 | py | Python | example/cheeseshop/apps/catalog/admin.py | sflems/django-constance | e177292c74cbf158c7218d8818d5d6c34b17eee1 | [
"BSD-3-Clause"
] | 899 | 2015-12-17T09:24:11.000Z | 2022-03-31T15:57:53.000Z | example/cheeseshop/apps/catalog/admin.py | sflems/django-constance | e177292c74cbf158c7218d8818d5d6c34b17eee1 | [
"BSD-3-Clause"
] | 342 | 2015-12-27T11:07:44.000Z | 2022-03-24T13:34:46.000Z | example/cheeseshop/apps/catalog/admin.py | sflems/django-constance | e177292c74cbf158c7218d8818d5d6c34b17eee1 | [
"BSD-3-Clause"
] | 213 | 2015-12-23T00:32:34.000Z | 2022-03-17T17:04:57.000Z | from django.contrib import admin
from cheeseshop.apps.catalog.models import Brand
admin.site.register(Brand)
| 22 | 48 | 0.836364 | 16 | 110 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 110 | 4 | 49 | 27.5 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
289918d2c57a6904734431ddd51bb10c97d644f6 | 499 | py | Python | series_loop.py | Akshara2820/Python_WhileLoop | d525b547bc8c8236cb2cd1881080ec4e6604fffc | [
"MIT"
] | 1 | 2021-09-15T03:42:15.000Z | 2021-09-15T03:42:15.000Z | series_loop.py | Akshara2820/Python_WhileLoop | d525b547bc8c8236cb2cd1881080ec4e6604fffc | [
"MIT"
] | null | null | null | series_loop.py | Akshara2820/Python_WhileLoop | d525b547bc8c8236cb2cd1881080ec4e6604fffc | [
"MIT"
] | null | null | null | # (10,2,20,4,30,6,40,8,50)
n=int(input("enter no--"))
i=1
c=10
while i<=n:
if i%2==0:
c+=10
print(i,end=",")
i+=1
i+=1
print(c,end=",")
# (1+10=11, 11+20=31, 31+30=61, 61+40=101)
n=int(input("enter no,-"))
i=0
d=1
s=10
while i<n:
print(d,end=",")
d... | 12.794872 | 44 | 0.420842 | 106 | 499 | 1.981132 | 0.264151 | 0.057143 | 0.128571 | 0.2 | 0.652381 | 0.652381 | 0.652381 | 0.561905 | 0.390476 | 0.390476 | 0 | 0.244118 | 0.318637 | 499 | 38 | 45 | 13.131579 | 0.373529 | 0.214429 | 0 | 0.384615 | 0 | 0 | 0.101156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
959230e7e9d9994cf553883c73d07ce0fe30741d | 16,749 | py | Python | 2020/src/day24.py | Sujatha-Nagarajan/AdventOfCode | afce23c74fd0a72caa29c1604a582b21806e794e | [
"CC0-1.0"
] | 1 | 2020-12-05T06:14:37.000Z | 2020-12-05T06:14:37.000Z | 2020/src/day24.py | Sujatha-Nagarajan/AdventOfCode | afce23c74fd0a72caa29c1604a582b21806e794e | [
"CC0-1.0"
] | null | null | null | 2020/src/day24.py | Sujatha-Nagarajan/AdventOfCode | afce23c74fd0a72caa29c1604a582b21806e794e | [
"CC0-1.0"
] | null | null | null | import re
from collections import defaultdict
from util import *
input1="""sesenwnenenewseeswwswswwnenewsewsw
neeenesenwnwwswnenewnwwsewnenwseswesw
seswneswswsenwwnwse
nwnwneseeswswnenewneswwnewseswneseene
swweswneswnenwsewnwneneseenw
eesenwseswswnenwswnwnwsewwnwsene
sewnenenenesenwsewnenwwwse
wenwwweseeeweswwwnwwe
ws... | 31.661626 | 81 | 0.920294 | 724 | 16,749 | 21.266575 | 0.723757 | 0.001948 | 0.001559 | 0.002078 | 0.026953 | 0.025849 | 0.023511 | 0.023511 | 0.023511 | 0.019225 | 0 | 0.002491 | 0.065079 | 16,749 | 528 | 82 | 31.721591 | 0.980778 | 0.007523 | 0 | 0.050881 | 0 | 0 | 0.902022 | 0.848279 | 0 | 1 | 0 | 0 | 0 | 1 | 0.003914 | false | 0 | 0.005871 | 0 | 0.011742 | 0.003914 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
959b55108828b137a9e2c7ce659d11e247c56fff | 226 | py | Python | tests/__init__.py | tltx/iommi | a0ca5e261040cc0452d7452e9320a88af5222b30 | [
"BSD-3-Clause"
] | 192 | 2020-01-30T14:29:56.000Z | 2022-03-28T19:55:30.000Z | tests/__init__.py | tltx/iommi | a0ca5e261040cc0452d7452e9320a88af5222b30 | [
"BSD-3-Clause"
] | 105 | 2020-03-29T21:59:01.000Z | 2022-03-24T12:29:09.000Z | tests/__init__.py | tltx/iommi | a0ca5e261040cc0452d7452e9320a88af5222b30 | [
"BSD-3-Clause"
] | 28 | 2020-02-02T20:51:09.000Z | 2022-03-08T16:23:42.000Z | from datetime import datetime
import freezegun
# Initialize freezegun to avoid freezegun being reinitialized which is expensive
initialize_freezegun = freezegun.freeze_time(datetime(2021, 1, 1))
initialize_freezegun.start()
| 28.25 | 80 | 0.836283 | 28 | 226 | 6.642857 | 0.607143 | 0.306452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.110619 | 226 | 7 | 81 | 32.285714 | 0.895522 | 0.345133 | 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 |
95a308d03af24087015385e9c1aa146e859dc63c | 1,639 | py | Python | intask_api/projects/permissions.py | KirovVerst/intask | 4bdec6f49fa2873cca1354d7d3967973f5bcadc3 | [
"MIT"
] | null | null | null | intask_api/projects/permissions.py | KirovVerst/intask | 4bdec6f49fa2873cca1354d7d3967973f5bcadc3 | [
"MIT"
] | 7 | 2016-08-17T23:08:31.000Z | 2022-03-02T02:23:08.000Z | intask_api/projects/permissions.py | KirovVerst/intask | 4bdec6f49fa2873cca1354d7d3967973f5bcadc3 | [
"MIT"
] | null | null | null | from rest_framework import permissions
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
from intask_api.projects.models import Project
class IsProjectHeader(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.header == requ... | 34.87234 | 74 | 0.748627 | 202 | 1,639 | 5.881188 | 0.222772 | 0.074074 | 0.164983 | 0.18266 | 0.59596 | 0.59596 | 0.59596 | 0.59596 | 0.59596 | 0.59596 | 0 | 0.010901 | 0.160464 | 1,639 | 46 | 75 | 35.630435 | 0.852471 | 0 | 0 | 0.419355 | 0 | 0 | 0.019524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.129032 | 0.129032 | 0.806452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
95aa250e5dd1b191d40f33aa77ed3ab2c0ae9d74 | 64 | py | Python | tests/test_tag.py | veoco/PyTypecho | 59280c4770f0b66acccea7a5eb62495be30977b4 | [
"MIT"
] | 5 | 2019-11-25T13:39:01.000Z | 2021-11-03T07:12:33.000Z | tests/test_tag.py | veoco/PyTypecho | 59280c4770f0b66acccea7a5eb62495be30977b4 | [
"MIT"
] | 4 | 2021-01-24T14:03:02.000Z | 2021-07-19T04:43:59.000Z | tests/test_tag.py | veoco/PyTypecho | 59280c4770f0b66acccea7a5eb62495be30977b4 | [
"MIT"
] | 2 | 2020-12-03T12:47:31.000Z | 2021-07-19T02:45:36.000Z | def test_get_tags(te):
r = te.get_tags()
assert r == []
| 16 | 22 | 0.5625 | 11 | 64 | 3 | 0.636364 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265625 | 64 | 3 | 23 | 21.333333 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 |
95b3747c398cbe76bc2e8c76655c81e2a5cd82bc | 115 | py | Python | closuredag/apps.py | farmlab/django-closuredag | 19bacabea5e922613a18d21048866dceb44d0afe | [
"MIT"
] | null | null | null | closuredag/apps.py | farmlab/django-closuredag | 19bacabea5e922613a18d21048866dceb44d0afe | [
"MIT"
] | 93 | 2017-11-16T13:58:45.000Z | 2022-03-27T22:01:19.000Z | closuredag/apps.py | farmlab/django-closuredag | 19bacabea5e922613a18d21048866dceb44d0afe | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from django.apps import AppConfig
class ClosuredagConfig(AppConfig):
name = 'closuredag'
| 16.428571 | 34 | 0.721739 | 13 | 115 | 6.384615 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.165217 | 115 | 6 | 35 | 19.166667 | 0.854167 | 0.147826 | 0 | 0 | 0 | 0 | 0.104167 | 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 |
95f41e13e20cbb1290f9018c568b80de61a76953 | 95 | py | Python | vistrails/tests/resources/test_upgrades_layout/__init__.py | remram44/VisTrails-mybinder | ee7477b471920d738f3ac430932f01901b56ed44 | [
"BSD-3-Clause"
] | 83 | 2015-01-05T14:50:50.000Z | 2021-09-17T19:45:26.000Z | vistrails/tests/resources/test_upgrades_layout/__init__.py | remram44/VisTrails-mybinder | ee7477b471920d738f3ac430932f01901b56ed44 | [
"BSD-3-Clause"
] | 254 | 2015-01-02T20:39:19.000Z | 2018-11-28T17:16:44.000Z | vistrails/tests/resources/test_upgrades_layout/__init__.py | remram44/VisTrails-mybinder | ee7477b471920d738f3ac430932f01901b56ed44 | [
"BSD-3-Clause"
] | 40 | 2015-04-17T16:46:36.000Z | 2021-09-28T22:43:24.000Z | identifier = 'org.vistrails.test.upgrades_layout'
name ='test_upgrades_layout'
version = '0.3'
| 23.75 | 49 | 0.778947 | 13 | 95 | 5.461538 | 0.769231 | 0.338028 | 0.507042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.084211 | 95 | 3 | 50 | 31.666667 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.357895 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95ffe673bc040b87ba5fb46405be623006c98d02 | 1,459 | py | Python | tests/scripts/test_s_rs_raw_shapes.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 14 | 2018-02-23T10:03:45.000Z | 2022-03-03T13:59:30.000Z | tests/scripts/test_s_rs_raw_shapes.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 59 | 2017-02-22T15:03:30.000Z | 2020-12-16T12:26:17.000Z | tests/scripts/test_s_rs_raw_shapes.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 5 | 2017-08-22T11:31:42.000Z | 2020-06-24T18:30:12.000Z | """testing
"""
from energy_demand.scripts import s_rs_raw_shapes
import numpy as np
def test_assign_hes_data_to_year():
hes_data = {
'working_day': {
0: np.zeros((24, 2)) + 10,
1: np.zeros((24, 2)) + 20,
2: np.zeros((24, 2)) + 30,
3: np.zeros((24, 2)) + 40, ... | 31.717391 | 70 | 0.437286 | 217 | 1,459 | 2.820277 | 0.299539 | 0.27451 | 0.352941 | 0.392157 | 0.506536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172489 | 0.372173 | 1,459 | 45 | 71 | 32.422222 | 0.495633 | 0.07608 | 0 | 0 | 0 | 0 | 0.013443 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.081081 | 0 | 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 |
2504849dd9ac056161c71352758bc395f3e09c7d | 6,395 | py | Python | cupcake/editor/autocomplete/itemkinds.py | billyeatcookies/cupcake | 2f2d1d5f8a1a454e50283547cf433cc82d1825d6 | [
"MIT"
] | 3 | 2022-03-29T12:55:24.000Z | 2022-03-30T17:06:11.000Z | cupcake/editor/autocomplete/itemkinds.py | billyeatcookies/Cupcake | 2f2d1d5f8a1a454e50283547cf433cc82d1825d6 | [
"MIT"
] | null | null | null | cupcake/editor/autocomplete/itemkinds.py | billyeatcookies/Cupcake | 2f2d1d5f8a1a454e50283547cf433cc82d1825d6 | [
"MIT"
] | null | null | null | import tkinter as tk
class Kinds:
def __init__(self, master, *args, **kwargs):
self.master = master
self.imethods = tk.PhotoImage(data="""iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAA7DAAAOwwHHb6hk
AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAddJREFUKJGNkjFrk3EQxn/3vt... | 81.987179 | 120 | 0.854887 | 249 | 6,395 | 21.939759 | 0.835341 | 0.017573 | 0.02343 | 0.023796 | 0.048691 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131165 | 0.105864 | 6,395 | 77 | 121 | 83.051948 | 0.824239 | 0 | 0 | 0 | 0 | 0 | 0.912744 | 0.820172 | 0 | 1 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.013514 | 0 | 0.040541 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
253360f89cf58d0a39abb0d2f777c0a588b4ec22 | 243 | py | Python | typic/constraints/error.py | wyfo/typical | 5fc5326b3509d0b9d35c15dae9590d6cf37a0354 | [
"MIT"
] | 157 | 2019-03-20T19:12:28.000Z | 2022-03-25T08:57:53.000Z | typic/constraints/error.py | wyfo/typical | 5fc5326b3509d0b9d35c15dae9590d6cf37a0354 | [
"MIT"
] | 147 | 2019-07-03T20:00:52.000Z | 2022-02-10T11:38:39.000Z | typic/constraints/error.py | wyfo/typical | 5fc5326b3509d0b9d35c15dae9590d6cf37a0354 | [
"MIT"
] | 15 | 2019-03-21T11:01:03.000Z | 2022-01-08T10:38:15.000Z | class ConstraintSyntaxError(SyntaxError):
"""A generic error indicating an improperly defined constraint."""
pass
class ConstraintValueError(ValueError):
"""A generic error indicating a value violates a constraint."""
pass
| 22.090909 | 70 | 0.740741 | 25 | 243 | 7.2 | 0.64 | 0.088889 | 0.144444 | 0.255556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176955 | 243 | 10 | 71 | 24.3 | 0.9 | 0.485597 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
254476669d60a9c34049aba84879aa1422202a6a | 25 | py | Python | latex.py | akdir/BachelorThesis | 07b5fe8b92c0b0eb21c1031e6415ac268ba27e7c | [
"MIT"
] | null | null | null | latex.py | akdir/BachelorThesis | 07b5fe8b92c0b0eb21c1031e6415ac268ba27e7c | [
"MIT"
] | null | null | null | latex.py | akdir/BachelorThesis | 07b5fe8b92c0b0eb21c1031e6415ac268ba27e7c | [
"MIT"
] | null | null | null | jobname="BachelorThesis"
| 12.5 | 24 | 0.84 | 2 | 25 | 10.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 25 | 1 | 25 | 25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
255d364d93e590ec6297742e59e58cf8fe8ad6e3 | 1,211 | py | Python | products/Introduction_to_Computational_Science_Modules/02_System_Dynamics/iPythonSysDyn/simplePendulum.py | wmmurrah/computationalScience | a4d7df6b50f2ead22878ff68bfe39c5adb88bbbb | [
"W3C"
] | null | null | null | products/Introduction_to_Computational_Science_Modules/02_System_Dynamics/iPythonSysDyn/simplePendulum.py | wmmurrah/computationalScience | a4d7df6b50f2ead22878ff68bfe39c5adb88bbbb | [
"W3C"
] | null | null | null | products/Introduction_to_Computational_Science_Modules/02_System_Dynamics/iPythonSysDyn/simplePendulum.py | wmmurrah/computationalScience | a4d7df6b50f2ead22878ff68bfe39c5adb88bbbb | [
"W3C"
] | null | null | null | # simplePendulum.py
# Model of a simple pendulum
import math
def simplePendulum(length = 1, angle = math.pi/4, angular_velocity = 0, DT = 0.0001, simLength = 12):
numIterations = int(simLength/DT) + 1
g = 9.81
angle_change = angular_velocity
angular_acceleration = -g... | 1,211 | 1,211 | 0.560694 | 113 | 1,211 | 5.823009 | 0.362832 | 0.159574 | 0.167173 | 0.155015 | 0.194529 | 0.194529 | 0.194529 | 0.194529 | 0.194529 | 0.194529 | 0 | 0.022251 | 0.369116 | 1,211 | 1 | 1,211 | 1,211 | 0.839005 | 0.997523 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c25ef6c3bd3cdff08d9b5795b973809ddeedca03 | 93 | py | Python | Vizard/Presenter/apps.py | styinx/Vizard | f73e8478fef7017da65ed965932b4c141fef1bdd | [
"MIT"
] | null | null | null | Vizard/Presenter/apps.py | styinx/Vizard | f73e8478fef7017da65ed965932b4c141fef1bdd | [
"MIT"
] | null | null | null | Vizard/Presenter/apps.py | styinx/Vizard | f73e8478fef7017da65ed965932b4c141fef1bdd | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PresenterConfig(AppConfig):
name = 'Presenter'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
c2b28cc65d1bcc4d30f8c76abcb566d6199f508e | 389 | py | Python | db/drop_db.py | muellerzr/capstone-2021 | a7f0c4de902735aece018d7c2ffedccc1995d51a | [
"Apache-2.0"
] | null | null | null | db/drop_db.py | muellerzr/capstone-2021 | a7f0c4de902735aece018d7c2ffedccc1995d51a | [
"Apache-2.0"
] | 1 | 2021-11-30T00:03:22.000Z | 2021-11-30T00:03:22.000Z | db/drop_db.py | muellerzr/capstone-2021 | a7f0c4de902735aece018d7c2ffedccc1995d51a | [
"Apache-2.0"
] | null | null | null | from pymongo import MongoClient
client = MongoClient('mongodb+srv://<username>:<password>@cluster0.27gwi.mongodb.net/Cluster0?retryWrites=true&w=majority')
username = ""
password = ""
url = f'mongodb+srv://{username}:{password}@cluster0.27gwi.mongodb.net/Cluster0?retryWrites=true&w=majority'
client = MongoClient(url)
... | 35.363636 | 123 | 0.768638 | 48 | 389 | 6.229167 | 0.458333 | 0.160535 | 0.120401 | 0.173913 | 0.541806 | 0.541806 | 0.541806 | 0.541806 | 0.541806 | 0.541806 | 0 | 0.022161 | 0.071979 | 389 | 11 | 124 | 35.363636 | 0.806094 | 0.051414 | 0 | 0 | 0 | 0.25 | 0.538043 | 0.538043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.375 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c2b5fc27d0f81bb0fc04c52397a1a93060a0b15c | 71 | py | Python | tests/__init__.py | lesleslie/jinja-inflection | a20c248a897aa95b38e860ecaee1517c3a5958fc | [
"BSD-3-Clause"
] | 1 | 2019-09-14T06:50:38.000Z | 2019-09-14T06:50:38.000Z | tests/__init__.py | lesleslie/jinja-inflection | a20c248a897aa95b38e860ecaee1517c3a5958fc | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | lesleslie/jinja-inflection | a20c248a897aa95b38e860ecaee1517c3a5958fc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for jinja_inflection."""
| 17.75 | 45 | 0.619718 | 9 | 71 | 4.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.15493 | 71 | 3 | 46 | 23.666667 | 0.7 | 0.873239 | 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 |
c2bf3d5dd42932c24559dabc8a1b555f111001f2 | 4,282 | py | Python | model/loss_and_metric/loss_util.py | goodgodgd/vode-2020 | 98e34120d642780576ac51d57c2f0597e7e1e524 | [
"BSD-2-Clause"
] | 4 | 2020-08-15T02:14:03.000Z | 2021-01-30T08:18:18.000Z | model/loss_and_metric/loss_util.py | goodgodgd/vode-2020 | 98e34120d642780576ac51d57c2f0597e7e1e524 | [
"BSD-2-Clause"
] | 23 | 2020-01-24T07:25:40.000Z | 2021-06-02T00:50:32.000Z | model/loss_and_metric/loss_util.py | goodgodgd/vode-2020 | 98e34120d642780576ac51d57c2f0597e7e1e524 | [
"BSD-2-Clause"
] | 1 | 2020-07-02T12:26:45.000Z | 2020-07-02T12:26:45.000Z | import tensorflow as tf
from utils.decorators import shape_check
@shape_check
def photometric_loss_l1(synt_target, orig_target, reduce=True):
"""
:param synt_target: scaled synthesized target image [batch, numsrc, height/scale, width/scale, 3]
:param orig_target: scaled original target image [batch, heigh... | 44.14433 | 101 | 0.685427 | 668 | 4,282 | 4.208084 | 0.178144 | 0.067592 | 0.073995 | 0.097118 | 0.754536 | 0.744575 | 0.709 | 0.685521 | 0.657773 | 0.64461 | 0 | 0.025634 | 0.198272 | 4,282 | 96 | 102 | 44.604167 | 0.793184 | 0.435544 | 0 | 0.4375 | 0 | 0 | 0.001729 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c2d3138307df728361eddc71fedd71f1bcf4a126 | 67 | py | Python | Chapter 07/ch7_1m.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 07/ch7_1m.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 07/ch7_1m.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | print(lambda x: x*x (10))
# may give address of lambda function | 22.333333 | 38 | 0.686567 | 12 | 67 | 3.833333 | 0.75 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.208955 | 67 | 3 | 38 | 22.333333 | 0.830189 | 0.522388 | 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 |
c2dbb6ec5c6b594157bfe877b67a7b2cb451fd8a | 48,942 | py | Python | tests/examples/minlplib/sfacloc2_3_90.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/sfacloc2_3_90.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/sfacloc2_3_90.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:54:11
#
# Equation counts
# Total E G L N X C B
# 497 61 388 48 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 37.077273 | 113 | 0.650954 | 8,623 | 48,942 | 3.694654 | 0.118172 | 0.21796 | 0.232117 | 0.135597 | 0.706802 | 0.597665 | 0.5815 | 0.53018 | 0.528391 | 0.27763 | 0 | 0.280474 | 0.146643 | 48,942 | 1,319 | 114 | 37.105383 | 0.482342 | 0.013894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00125 | 0 | 0.00125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c2ef61f09bff5ba020f8ddabd68c94b0f1037b53 | 465 | py | Python | demo_api/rumour_detection_twitter/create_inputs.py | vincenttzc/sgnlp | 44ae12a5ae98c9a1945d346e9373854c7d472a4b | [
"MIT"
] | 14 | 2021-08-02T01:52:18.000Z | 2022-01-14T10:16:02.000Z | demo_api/rumour_detection_twitter/create_inputs.py | vincenttzc/sgnlp | 44ae12a5ae98c9a1945d346e9373854c7d472a4b | [
"MIT"
] | 29 | 2021-08-02T01:53:46.000Z | 2022-03-30T05:40:46.000Z | demo_api/rumour_detection_twitter/create_inputs.py | vincenttzc/sgnlp | 44ae12a5ae98c9a1945d346e9373854c7d472a4b | [
"MIT"
] | 7 | 2021-08-02T01:54:19.000Z | 2022-01-07T06:37:45.000Z | def generate_structure(thread_len, max_posts):
time_delay_ids = [0] * thread_len + [1] * (max_posts - thread_len)
structure_ids = [
[3] * idx + [4] + [2] * (thread_len - 1 - idx) + [5] * (max_posts - thread_len)
for idx in range(thread_len)
] + [[5] * max_posts] * (max_posts - thread_len)
... | 38.75 | 87 | 0.627957 | 66 | 465 | 4.030303 | 0.363636 | 0.304511 | 0.210526 | 0.255639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027624 | 0.221505 | 465 | 11 | 88 | 42.272727 | 0.707182 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c2fa5f8b735606c6ff049842620445e8616d3b41 | 603 | py | Python | figur/__init__.py | severinsimmler/figur | d42cf6d150cc1b8effe1b4e7093bafd8975377b3 | [
"MIT"
] | 1 | 2019-04-29T20:29:15.000Z | 2019-04-29T20:29:15.000Z | figur/__init__.py | severinsimmler/figur | d42cf6d150cc1b8effe1b4e7093bafd8975377b3 | [
"MIT"
] | 2 | 2019-03-13T14:30:08.000Z | 2019-05-28T15:41:27.000Z | figur/__init__.py | severinsimmler/figur | d42cf6d150cc1b8effe1b4e7093bafd8975377b3 | [
"MIT"
] | null | null | null | """
Figurenerkennung for German literary texts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`figur` is very easy to use:
```
>>> import figur
>>> text = "Der Gärtner entfernte sich eilig, und Eduard folgte bald."
>>> figur.tag(text)
SentenceId Token Tag
0 0 Der _
1 0 Gä... | 24.12 | 70 | 0.41791 | 63 | 603 | 3.904762 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054711 | 0.454395 | 603 | 24 | 71 | 25.125 | 0.693009 | 0.94859 | 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 |
6c1cbdba3744243c1b45fcbc2d0b6115c7a3d106 | 1,584 | py | Python | Script's/04 - Generadores/Generadores Basicos.py | CamiloBallen24/Python-PildorasInformaticas | a734ac064e34b01a2f64080d5391625a5de77f54 | [
"Apache-2.0"
] | null | null | null | Script's/04 - Generadores/Generadores Basicos.py | CamiloBallen24/Python-PildorasInformaticas | a734ac064e34b01a2f64080d5391625a5de77f54 | [
"Apache-2.0"
] | null | null | null | Script's/04 - Generadores/Generadores Basicos.py | CamiloBallen24/Python-PildorasInformaticas | a734ac064e34b01a2f64080d5391625a5de77f54 | [
"Apache-2.0"
] | 1 | 2019-06-04T19:51:05.000Z | 2019-06-04T19:51:05.000Z | #TEMA:GENERADORES
######################################################################
#Funcion que me regresa un numero determinado de numeros pares
def generaParesFuncion(limite):
num=1
miLista=[]
while num<limite:
miLista.append(num*2)
num = num+1
return miLista
########################################... | 21.12 | 71 | 0.395202 | 118 | 1,584 | 5.305085 | 0.432203 | 0.207668 | 0.191693 | 0.159744 | 0.285942 | 0.186901 | 0 | 0 | 0 | 0 | 0 | 0.015972 | 0.090909 | 1,584 | 75 | 72 | 21.12 | 0.41875 | 0.108586 | 0 | 0.595238 | 0 | 0 | 0.105932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.071429 | 0.642857 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6c24371f8f3543e387962e5276370824b85090e5 | 108 | py | Python | model/__init__.py | SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring | a103d4d4811c7b359f07e34aeb69fa7637adae35 | [
"MIT"
] | null | null | null | model/__init__.py | SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring | a103d4d4811c7b359f07e34aeb69fa7637adae35 | [
"MIT"
] | 1 | 2017-08-29T13:08:18.000Z | 2017-08-29T13:08:18.000Z | model/__init__.py | SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring | a103d4d4811c7b359f07e34aeb69fa7637adae35 | [
"MIT"
] | null | null | null | #!/usr/local/miniconda2/bin/python
# _*_ coding: utf-8 _*_
"""
@author: MarkLiu
@time : 17-6-19 下午8:44
""" | 15.428571 | 34 | 0.62963 | 16 | 108 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 0.138889 | 108 | 7 | 35 | 15.428571 | 0.580645 | 0.888889 | 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 |
6c43b369587320014577c2dea259fb1b216358eb | 103 | py | Python | tests/test_ladder.py | devonwa/ladder2x | a8604fb61eaa193d9a6e0239474a6c0af1bc2b49 | [
"Unlicense"
] | null | null | null | tests/test_ladder.py | devonwa/ladder2x | a8604fb61eaa193d9a6e0239474a6c0af1bc2b49 | [
"Unlicense"
] | null | null | null | tests/test_ladder.py | devonwa/ladder2x | a8604fb61eaa193d9a6e0239474a6c0af1bc2b49 | [
"Unlicense"
] | null | null | null | """Tests on the base ladder structure."""
import pytest
if __name__ == "__main__":
pytest.main()
| 14.714286 | 41 | 0.669903 | 13 | 103 | 4.692308 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 103 | 6 | 42 | 17.166667 | 0.72619 | 0.339806 | 0 | 0 | 0 | 0 | 0.129032 | 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 |
6c707e42c5437ebc563efca0ace739aedca17496 | 283 | py | Python | awsthreatprep/config.py | cclauss/ThreatPrep | b1881be239e7b86d86acc70a207989d459bd9d79 | [
"MIT"
] | 50 | 2016-08-05T03:33:00.000Z | 2022-02-16T13:52:15.000Z | awsthreatprep/config.py | cclauss/ThreatPrep | b1881be239e7b86d86acc70a207989d459bd9d79 | [
"MIT"
] | null | null | null | awsthreatprep/config.py | cclauss/ThreatPrep | b1881be239e7b86d86acc70a207989d459bd9d79 | [
"MIT"
] | 14 | 2017-06-26T02:54:43.000Z | 2021-11-17T07:38:52.000Z | import os
config = {
#iam
'ACCOUNT_INACTIVE_DAYS': 30, #Accounts are inactive if not used for 30 days
'PASSWORD_ROTATION_DAYS': 90, #Paswords should be rotated every 90 days
'ACCESS_KEY_ROTATION_DAYS': 90 #Access Keys should be rotated every 90 days
}
| 31.444444 | 85 | 0.696113 | 41 | 283 | 4.634146 | 0.609756 | 0.126316 | 0.147368 | 0.210526 | 0.273684 | 0.273684 | 0 | 0 | 0 | 0 | 0 | 0.055814 | 0.240283 | 283 | 8 | 86 | 35.375 | 0.827907 | 0.462898 | 0 | 0 | 0 | 0 | 0.452703 | 0.452703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6686c68bcf9dc01f99b52c42230df5b834e570c1 | 63 | py | Python | code/yahoo_procon2019_qual_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/yahoo_procon2019_qual_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/yahoo_procon2019_qual_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N,K=map(int,input().split())
print("YES" if N>=2*K-1 else "NO") | 31.5 | 34 | 0.603175 | 15 | 63 | 2.533333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.079365 | 63 | 2 | 34 | 31.5 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
66b02efea9465e74c9e2945b8ff0942e0ed6931f | 82 | py | Python | backend/src/apps/test/apps.py | LucienLuc/project-sts | 02ad13b515bcefe1c1ef30f0c06104359bff613e | [
"MIT"
] | null | null | null | backend/src/apps/test/apps.py | LucienLuc/project-sts | 02ad13b515bcefe1c1ef30f0c06104359bff613e | [
"MIT"
] | null | null | null | backend/src/apps/test/apps.py | LucienLuc/project-sts | 02ad13b515bcefe1c1ef30f0c06104359bff613e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TestConfig(AppConfig):
name = 'test'
| 16.4 | 33 | 0.743902 | 10 | 82 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 4 | 34 | 20.5 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 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 |
dd0944f2e40b50921bc2a055a4736363525bffe8 | 395 | py | Python | mellophone/mellophone/settings_production.py | nchlswhttkr/mellophone | c454c26d06a0cdebabc7b9ec5fef22c9c48d6ea6 | [
"MIT"
] | 9 | 2019-02-11T03:35:18.000Z | 2019-07-17T07:51:44.000Z | mellophone/mellophone/settings_production.py | nchlswhttkr/mellophone | c454c26d06a0cdebabc7b9ec5fef22c9c48d6ea6 | [
"MIT"
] | 26 | 2019-03-13T05:11:08.000Z | 2020-04-21T03:53:10.000Z | mellophone/mellophone/settings_production.py | nchlswhttkr/mellophone | c454c26d06a0cdebabc7b9ec5fef22c9c48d6ea6 | [
"MIT"
] | 2 | 2019-07-19T05:24:58.000Z | 2019-09-20T06:36:44.000Z | # pylint: disable=unused-wildcard-import,wildcard-import
"""
Please try and avoid modifying this file where possible, doing so may cause
different behaviours between local (development) and production environments.
Instead consider modifying the base (default) config. This way, the production
config is effectively th... | 32.916667 | 78 | 0.807595 | 52 | 395 | 6.115385 | 0.75 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131646 | 395 | 11 | 79 | 35.909091 | 0.927114 | 0.863291 | 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 |
dd1aa8274a7a29ed0c0e03c51dfff1daaec8435e | 26 | py | Python | data/studio21_generated/introductory/4783/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4783/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4783/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def weather_info (temp):
| 13 | 24 | 0.730769 | 4 | 26 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 2 | 25 | 13 | 0.818182 | 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 |
dd1d5f6520079cb76d00ac62e5817128a147acb0 | 69 | py | Python | pyintercept/handlers/print_handler.py | caioariede/pyintercept | 19039ce3038521bf32aaafe207024adeb0096749 | [
"MIT"
] | 32 | 2015-07-20T21:13:26.000Z | 2018-04-05T13:53:28.000Z | pyintercept/handlers/print_handler.py | caioariede/pyintercept | 19039ce3038521bf32aaafe207024adeb0096749 | [
"MIT"
] | 2 | 2019-07-23T17:38:06.000Z | 2020-02-27T13:38:02.000Z | pyintercept/handlers/print_handler.py | caioariede/pyintercept | 19039ce3038521bf32aaafe207024adeb0096749 | [
"MIT"
] | 3 | 2015-08-09T14:48:38.000Z | 2020-02-27T12:58:46.000Z | def print_(origfn, *args, **kwargs):
print args
print kwargs
| 17.25 | 36 | 0.652174 | 9 | 69 | 4.888889 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231884 | 69 | 3 | 37 | 23 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
dd21e59c37175256cff1379b7b03b4b83f129381 | 363 | py | Python | afterglow_core/resources/job_plugins/__init__.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 2 | 2021-05-24T15:12:07.000Z | 2022-02-17T19:58:16.000Z | afterglow_core/resources/job_plugins/__init__.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 1 | 2022-02-27T03:01:06.000Z | 2022-02-27T03:01:06.000Z | afterglow_core/resources/job_plugins/__init__.py | SkynetRTN/afterglow-access-server | 3d8d62f622577fdd1ae7b0076cb536251f7bf0cd | [
"Apache-2.0"
] | 2 | 2021-06-08T18:16:40.000Z | 2021-07-09T14:19:49.000Z | """
Afterglow Core: job plugin package
A job plugin must define a custom model subclassing from
:class:`afterglow_core.models.jobs.Job`, along with the optional custom result
and settings models (subclassing from
:class:`afterglow_core.models.jobs.JobResult` and
:class:`afterglow_core.schemas.AfterglowSchema`, respect... | 33 | 78 | 0.793388 | 50 | 363 | 5.7 | 0.58 | 0.182456 | 0.189474 | 0.203509 | 0.301754 | 0.301754 | 0.301754 | 0 | 0 | 0 | 0 | 0 | 0.101928 | 363 | 10 | 79 | 36.3 | 0.874233 | 0.975207 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dd37cbcc06fe382942dc56ae1ef81d1193794b23 | 17 | py | Python | appium/version.py | zgq346712481/python-client | 1c179d2c84c76bbed33e6333f381cc8a86f3bb82 | [
"Apache-2.0"
] | 1 | 2019-03-07T00:53:43.000Z | 2019-03-07T00:53:43.000Z | appium/version.py | zgq346712481/python-client | 1c179d2c84c76bbed33e6333f381cc8a86f3bb82 | [
"Apache-2.0"
] | null | null | null | appium/version.py | zgq346712481/python-client | 1c179d2c84c76bbed33e6333f381cc8a86f3bb82 | [
"Apache-2.0"
] | null | null | null | version = '0.38'
| 8.5 | 16 | 0.588235 | 3 | 17 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0.176471 | 17 | 1 | 17 | 17 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 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 |
dd3bf5910219efb966cd48792f7c68202d3a54a8 | 130 | py | Python | earth_enterprise/src/server/wsgi/serve/push/stream/__init__.py | ezeeyahoo/earthenterprise | b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9 | [
"Apache-2.0"
] | 2,661 | 2017-03-20T22:12:50.000Z | 2022-03-30T09:43:19.000Z | earth_enterprise/src/server/wsgi/serve/push/stream/__init__.py | ezeeyahoo/earthenterprise | b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9 | [
"Apache-2.0"
] | 1,531 | 2017-03-24T17:20:32.000Z | 2022-03-16T18:11:14.000Z | earth_enterprise/src/server/wsgi/serve/push/stream/__init__.py | ezeeyahoo/earthenterprise | b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9 | [
"Apache-2.0"
] | 990 | 2017-03-24T11:54:28.000Z | 2022-03-22T11:51:47.000Z | """The package indicator for serve.push.stream.
Modules for transferring and registering servable stream data on the server.
"""
| 26 | 76 | 0.784615 | 18 | 130 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 130 | 4 | 77 | 32.5 | 0.910714 | 0.938462 | 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 |
dd3c339456c728831d00962485678bd366a32bd9 | 34 | py | Python | homeassistant/components/limitlessled/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/limitlessled/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/limitlessled/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The limitlessled component."""
| 17 | 33 | 0.705882 | 3 | 34 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.774194 | 0.794118 | 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 |
dd464fa4b37cf124b28327d6a98fc0f0c806f33d | 101 | py | Python | code/pyFoamSymlinkToFile.py | sosohungry/pyfoam | b19e40a0ef1f41268930122226660414722178e6 | [
"MIT"
] | null | null | null | code/pyFoamSymlinkToFile.py | sosohungry/pyfoam | b19e40a0ef1f41268930122226660414722178e6 | [
"MIT"
] | null | null | null | code/pyFoamSymlinkToFile.py | sosohungry/pyfoam | b19e40a0ef1f41268930122226660414722178e6 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from PyFoam.Applications.SymlinkToFile import SymlinkToFile
SymlinkToFile()
| 16.833333 | 59 | 0.811881 | 11 | 101 | 7.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 101 | 5 | 60 | 20.2 | 0.901099 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 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 |
dd583f7d7e613589a62fb063aca89c71b3483ad8 | 5,768 | py | Python | validation_tests/case_studies/towradgi_simulation/catchment_info.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 136 | 2015-05-07T05:47:43.000Z | 2022-02-16T03:07:40.000Z | validation_tests/case_studies/towradgi_simulation/catchment_info.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 184 | 2015-05-03T09:27:54.000Z | 2021-12-20T04:22:48.000Z | validation_tests/case_studies/towradgi_simulation/catchment_info.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 70 | 2015-03-18T07:35:22.000Z | 2021-11-01T07:07:29.000Z | def create_catchment_list(simulation):
from os.path import join
channel_manning = simulation.args.channel_manning
CatchmentList = [
[join('Model', 'Bdy', 'Catchment.csv'), 100.0],
[join('Model', 'Bdy', 'FineCatchment.csv'), 36.0],
[join('Model', 'Bdy', 'CreekBanks.csv'), 8... | 46.516129 | 76 | 0.495319 | 746 | 5,768 | 3.817694 | 0.201072 | 0.306531 | 0.555126 | 0.277388 | 0.780197 | 0.77493 | 0.072331 | 0.053371 | 0.053371 | 0.053371 | 0 | 0.104031 | 0.230062 | 5,768 | 123 | 77 | 46.894309 | 0.537266 | 0.03242 | 0 | 0.036697 | 0 | 0 | 0.334949 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.018349 | false | 0 | 0.018349 | 0 | 0.055046 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
06da3baaeb27b37984af143aca6a52ab058a5588 | 122 | py | Python | src/config/config_loader.py | roybenyosef/loc-to-spot | 1db54a8481317f5cd2f746974dcdda2a632d02ec | [
"MIT"
] | null | null | null | src/config/config_loader.py | roybenyosef/loc-to-spot | 1db54a8481317f5cd2f746974dcdda2a632d02ec | [
"MIT"
] | null | null | null | src/config/config_loader.py | roybenyosef/loc-to-spot | 1db54a8481317f5cd2f746974dcdda2a632d02ec | [
"MIT"
] | null | null | null | import yaml
def read_config():
file_stream = open("config/config.yaml", "r")
return yaml.safe_load(file_stream)
| 17.428571 | 49 | 0.704918 | 18 | 122 | 4.555556 | 0.666667 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 122 | 6 | 50 | 20.333333 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.155738 | 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 |
06eb8e9951d11356b784f19e2310c1cacd28857e | 122 | py | Python | gameLogic/__init__.py | JoelEager/pyTanks-Server | 4455c0475980ea1372f11d7ec41d95990b3c8f44 | [
"MIT"
] | 5 | 2017-09-04T09:36:40.000Z | 2019-10-31T20:52:13.000Z | gameLogic/__init__.py | JoelEager/pyTanks-Server | 4455c0475980ea1372f11d7ec41d95990b3c8f44 | [
"MIT"
] | 3 | 2018-12-28T08:09:51.000Z | 2019-01-04T20:36:47.000Z | gameLogic/__init__.py | JoelEager/pyTanks-Server | 4455c0475980ea1372f11d7ec41d95990b3c8f44 | [
"MIT"
] | 1 | 2018-12-28T08:12:36.000Z | 2018-12-28T08:12:36.000Z | """
Contains all the logic for running the game (game clock, per-frame logic, game state update generation, and so on)
""" | 40.666667 | 114 | 0.737705 | 20 | 122 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 122 | 3 | 115 | 40.666667 | 0.882353 | 0.934426 | 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 |
6606cccffcd956e1fc4991eb79ef12938f47ff11 | 523 | py | Python | get_gecko_driver/platforms.py | zaironjacobs/get-gecko-driver | 33a4a90c3a96b2e5519722f3dfab075b57e6482d | [
"MIT"
] | 3 | 2021-08-16T14:49:55.000Z | 2022-03-20T14:44:13.000Z | get_gecko_driver/platforms.py | zaironjacobs/get-gecko-driver | 33a4a90c3a96b2e5519722f3dfab075b57e6482d | [
"MIT"
] | null | null | null | get_gecko_driver/platforms.py | zaironjacobs/get-gecko-driver | 33a4a90c3a96b2e5519722f3dfab075b57e6482d | [
"MIT"
] | 1 | 2022-02-19T08:41:57.000Z | 2022-02-19T08:41:57.000Z | class Platforms:
@property
def win(self):
return 'win'
@property
def linux(self):
return 'linux'
@property
def macos(self):
return 'macos'
@property
def win_32(self):
return 'win32'
@property
def win_64(self):
return 'win64'
@prop... | 15.382353 | 49 | 0.552581 | 59 | 523 | 4.830508 | 0.271186 | 0.308772 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046647 | 0.344168 | 523 | 33 | 50 | 15.848485 | 0.784257 | 0 | 0 | 0.32 | 0 | 0 | 0.070746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0 | 0.32 | 0.68 | 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 |
660c4602652eeabae6b9b5b5f22abc8c78653e52 | 134 | py | Python | bugtests/test000.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test000.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test000.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | """
Basic test, just raises a TestWarning
"""
import support
raise support.TestWarning('A test of TestWarning. It is not an error')
| 16.75 | 70 | 0.738806 | 20 | 134 | 4.95 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 134 | 7 | 71 | 19.142857 | 0.883929 | 0.276119 | 0 | 0 | 0 | 0 | 0.460674 | 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 |
66511045abd4f920bda913b71a97de73ca69c525 | 3,496 | py | Python | commongroups/tests/test_cmgroup.py | akokai/metacamel | d2a060e5e3c908dcedd3de7e46497f8802fd8bde | [
"MIT"
] | 1 | 2020-01-29T04:39:16.000Z | 2020-01-29T04:39:16.000Z | commongroups/tests/test_cmgroup.py | akokai/metacamel | d2a060e5e3c908dcedd3de7e46497f8802fd8bde | [
"MIT"
] | 12 | 2016-06-18T02:54:13.000Z | 2016-07-13T05:17:02.000Z | commongroups/tests/test_cmgroup.py | akokai/commongroups-archived | d2a060e5e3c908dcedd3de7e46497f8802fd8bde | [
"MIT"
] | 1 | 2016-06-20T17:33:11.000Z | 2016-06-20T17:33:11.000Z | # -*- coding: utf-8 -*-
"""Unit tests for CMGroup class."""
import os
import shutil
from itertools import islice
from commongroups.env import CommonEnv
from commongroups import cmgroup as cmg
# Locate the test params to use.
_CUR_PATH = os.path.abspath(os.path.dirname(__file__))
PARAMS_JSON = os.path.join(_CUR_PATH,... | 37.191489 | 79 | 0.687357 | 494 | 3,496 | 4.643725 | 0.255061 | 0.038361 | 0.059285 | 0.039669 | 0.382302 | 0.363557 | 0.282476 | 0.218396 | 0.204882 | 0.204882 | 0 | 0.007062 | 0.189931 | 3,496 | 93 | 80 | 37.591398 | 0.802966 | 0.862414 | 0 | 0 | 0 | 0 | 0.037879 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0 | false | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b098b19f23b70a7dc6b13df3898c87a35d698d26 | 158 | py | Python | tests/test_flake8.py | ROZ-MOFUMOFU-ME/bitnodes | 47f6c1cf886cd522b5fb4ea921dcb4cf63d1eaa4 | [
"MIT"
] | 2 | 2021-09-06T04:42:08.000Z | 2021-11-12T12:05:14.000Z | tests/test_flake8.py | ROZ-MOFUMOFU-ME/bitnodes | 47f6c1cf886cd522b5fb4ea921dcb4cf63d1eaa4 | [
"MIT"
] | 1 | 2020-03-19T09:00:18.000Z | 2020-03-19T09:00:18.000Z | tests/test_flake8.py | ROZ-MOFUMOFU-ME/bitnodes | 47f6c1cf886cd522b5fb4ea921dcb4cf63d1eaa4 | [
"MIT"
] | 3 | 2019-02-22T22:57:34.000Z | 2021-05-22T10:58:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from subprocess import call
def test_flake8():
return_code = call(['flake8'])
assert return_code == 0
| 17.555556 | 34 | 0.64557 | 22 | 158 | 4.5 | 0.818182 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.189873 | 158 | 8 | 35 | 19.75 | 0.742188 | 0.265823 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 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 |
b0bf332f22eca1ba57686a0f75bc10bbc8f9a9d8 | 75 | py | Python | components/server/src/shared/routes/plugins/__init__.py | ICTU/quality-time | 88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5 | [
"Apache-2.0"
] | 33 | 2016-01-20T07:35:48.000Z | 2022-03-14T09:20:51.000Z | components/server/src/shared/routes/plugins/__init__.py | ICTU/quality-time | 88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5 | [
"Apache-2.0"
] | 2,410 | 2016-01-22T18:13:01.000Z | 2022-03-31T16:57:34.000Z | components/server/src/shared/routes/plugins/__init__.py | ICTU/quality-time | 88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5 | [
"Apache-2.0"
] | 21 | 2016-01-16T11:49:23.000Z | 2022-01-14T21:53:22.000Z | """Bottle route plugins."""
from .injection_plugin import InjectionPlugin
| 18.75 | 45 | 0.786667 | 8 | 75 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 75 | 3 | 46 | 25 | 0.865672 | 0.28 | 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 |
b0d08b7dcc6e66d8aad9485ee7da2eca8c60ae84 | 188 | py | Python | raster/__init__.py | manfre-lorson/MacPyver | 62503dae69705a25202f24615e0c7cc88e10d753 | [
"Apache-2.0"
] | 1 | 2021-11-03T01:49:47.000Z | 2021-11-03T01:49:47.000Z | raster/__init__.py | manfre-lorson/MacPyver | 62503dae69705a25202f24615e0c7cc88e10d753 | [
"Apache-2.0"
] | null | null | null | raster/__init__.py | manfre-lorson/MacPyver | 62503dae69705a25202f24615e0c7cc88e10d753 | [
"Apache-2.0"
] | 1 | 2018-07-11T09:23:45.000Z | 2018-07-11T09:23:45.000Z |
try:
from . import tiff
print("full tiff support")
except:
print("no tiff support")
try:
import hdf5
print("full hdf5 support")
except:
print("no hdf5 support")
| 13.428571 | 30 | 0.62766 | 25 | 188 | 4.72 | 0.4 | 0.152542 | 0.305085 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.260638 | 188 | 13 | 31 | 14.461538 | 0.827338 | 0 | 0 | 0.4 | 0 | 0 | 0.344086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9fddbda4c3c7b498a0499af95d1e10c2e4bd8c81 | 233 | py | Python | projects/admin.py | kylef-archive/django-projects | 306043b7aea7a170adc70cb78844e039efc161d4 | [
"BSD-2-Clause"
] | 2 | 2015-02-15T19:01:29.000Z | 2015-11-08T13:25:14.000Z | projects/admin.py | kylef/django-projects | 306043b7aea7a170adc70cb78844e039efc161d4 | [
"BSD-2-Clause"
] | null | null | null | projects/admin.py | kylef/django-projects | 306043b7aea7a170adc70cb78844e039efc161d4 | [
"BSD-2-Clause"
] | 1 | 2021-08-02T19:08:29.000Z | 2021-08-02T19:08:29.000Z | from django.contrib import admin
from projects.models import Project
class ProjectAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ['title']}
list_display = ('title', 'git')
admin.site.register(Project, ProjectAdmin) | 29.125 | 45 | 0.751073 | 27 | 233 | 6.407407 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124464 | 233 | 8 | 46 | 29.125 | 0.848039 | 0 | 0 | 0 | 0 | 0 | 0.07265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
9fec53592de30b9286e20a972b9d6a2e491fec66 | 89 | py | Python | refugee/apps.py | poiedk/refugge_app | 95299005a3fac1ae92cf700d8d52e884c1d17033 | [
"MIT"
] | 1 | 2020-06-07T15:48:34.000Z | 2020-06-07T15:48:34.000Z | refugee/apps.py | poiedk/refuggeapp | 95299005a3fac1ae92cf700d8d52e884c1d17033 | [
"MIT"
] | 1 | 2020-06-05T20:15:54.000Z | 2020-06-05T20:15:54.000Z | refugee/apps.py | poiedk/refuggeapp | 95299005a3fac1ae92cf700d8d52e884c1d17033 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RefugeeConfig(AppConfig):
name = 'refugee'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 |
b00f67fa0503dd85f3c8d37c378d2f72c7f066bd | 700 | py | Python | venv/lib/python3.6/site-packages/phonenumbers/shortdata/region_QA.py | exdeam/opencrm | dfdcfdf99f0b42eb3959171927cb6574583f5ee0 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/phonenumbers/shortdata/region_QA.py | exdeam/opencrm | dfdcfdf99f0b42eb3959171927cb6574583f5ee0 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/phonenumbers/shortdata/region_QA.py | exdeam/opencrm | dfdcfdf99f0b42eb3959171927cb6574583f5ee0 | [
"MIT"
] | 1 | 2020-09-08T14:45:34.000Z | 2020-09-08T14:45:34.000Z | """Auto-generated file, do not edit by hand. QA metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_QA = PhoneMetadata(id='QA', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[129]\\d{2,4}', possible_length=(3, 4, ... | 70 | 141 | 0.754286 | 94 | 700 | 5.37234 | 0.521277 | 0.182178 | 0.229703 | 0.285149 | 0.344554 | 0.277228 | 0.277228 | 0.277228 | 0.277228 | 0.277228 | 0 | 0.057543 | 0.081429 | 700 | 9 | 142 | 77.777778 | 0.727838 | 0.075714 | 0 | 0 | 1 | 0 | 0.098284 | 0.051482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b01166da273e45dbd1d37d892c58fe4b13c2a3e7 | 250 | py | Python | kernel/filters.py | pycodi/django-kernel | 87829a0d47d04a3bb3d5c7cb79a03f0772dfdf46 | [
"MIT"
] | 1 | 2016-09-16T11:40:45.000Z | 2016-09-16T11:40:45.000Z | kernel/filters.py | pycodi/django-kernel | 87829a0d47d04a3bb3d5c7cb79a03f0772dfdf46 | [
"MIT"
] | null | null | null | kernel/filters.py | pycodi/django-kernel | 87829a0d47d04a3bb3d5c7cb79a03f0772dfdf46 | [
"MIT"
] | null | null | null | from django_filters import Filter
from django_filters.fields import Lookup
class ListFilter(Filter):
def filter(self, qs, value):
value_list = value.split(u',')
return super(ListFilter, self).filter(qs, Lookup(value_list, 'in')) | 31.25 | 75 | 0.716 | 34 | 250 | 5.147059 | 0.558824 | 0.114286 | 0.194286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172 | 250 | 8 | 75 | 31.25 | 0.845411 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.