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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05931b681ebfbd6159a5aa943ad8e71c8940fce7 | 118 | py | Python | fixedeffect/fe/__init__.py | rphilipzhang/FixedEffectModel | 017a6f555fff44392d33e45e26c406d02ddde109 | [
"BSD-3-Clause"
] | null | null | null | fixedeffect/fe/__init__.py | rphilipzhang/FixedEffectModel | 017a6f555fff44392d33e45e26c406d02ddde109 | [
"BSD-3-Clause"
] | null | null | null | fixedeffect/fe/__init__.py | rphilipzhang/FixedEffectModel | 017a6f555fff44392d33e45e26c406d02ddde109 | [
"BSD-3-Clause"
] | null | null | null | from .did import did
from .fe import fixedeffect
from .getfe import getfe
__all__ = ["did",
"fixedeffect"] | 19.666667 | 27 | 0.677966 | 15 | 118 | 5.066667 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228814 | 118 | 6 | 28 | 19.666667 | 0.835165 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 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 |
55b9574db1a87cbe42357870eb1dc86f9ddaacc9 | 1,187 | py | Python | tests/importing/test_import_class_from_path.py | PaulRenvoise/flashback | f9a16f4b0cb12a2180206c7b95d9eb8fb256381d | [
"MIT"
] | 3 | 2021-06-08T11:40:59.000Z | 2022-03-31T16:22:56.000Z | tests/importing/test_import_class_from_path.py | PaulRenvoise/flashback | f9a16f4b0cb12a2180206c7b95d9eb8fb256381d | [
"MIT"
] | 28 | 2020-04-28T22:36:14.000Z | 2021-06-06T20:32:00.000Z | tests/importing/test_import_class_from_path.py | PaulRenvoise/flashback | f9a16f4b0cb12a2180206c7b95d9eb8fb256381d | [
"MIT"
] | null | null | null | # pylint: disable=no-self-use,redefined-outer-name
import pytest
from flashback.importing import import_class_from_path
class TestImportClassFromPath:
def test_valid_class_valid_relative_path(self):
cls = import_class_from_path("dummy_class", path=".dummy_package")
assert isinstance(cls, object... | 33.914286 | 89 | 0.73968 | 150 | 1,187 | 5.446667 | 0.233333 | 0.094247 | 0.128519 | 0.162791 | 0.711138 | 0.623011 | 0.560588 | 0.543452 | 0.543452 | 0.467564 | 0 | 0 | 0.168492 | 1,187 | 34 | 90 | 34.911765 | 0.827761 | 0.040438 | 0 | 0.238095 | 0 | 0 | 0.170624 | 0.067722 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.52381 | 0 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
e95f145cfc56a0229730734de97263986d75f3fe | 180 | py | Python | app_catalog/component_catalog/views.py | mail2nsrajesh/app-catalog-ui | 4f5e9f658b309b361f0148945a0a1ae63621090d | [
"Apache-2.0"
] | null | null | null | app_catalog/component_catalog/views.py | mail2nsrajesh/app-catalog-ui | 4f5e9f658b309b361f0148945a0a1ae63621090d | [
"Apache-2.0"
] | null | null | null | app_catalog/component_catalog/views.py | mail2nsrajesh/app-catalog-ui | 4f5e9f658b309b361f0148945a0a1ae63621090d | [
"Apache-2.0"
] | null | null | null | from app_catalog.app_catalog.views import IndexView as ACView
class IndexView(ACView):
# A very simple class-based view...
template_name = 'component_catalog/index.html'
| 25.714286 | 61 | 0.766667 | 25 | 180 | 5.36 | 0.76 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 180 | 6 | 62 | 30 | 0.875817 | 0.183333 | 0 | 0 | 0 | 0 | 0.193103 | 0.193103 | 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 |
e974322b49469559a2923f3974adcb004e10e6eb | 3,970 | py | Python | tests.py | dimitriyremerov/xye-bot | c675aaa0d2f83367ce4f5bc5f5f075db33d885fa | [
"Apache-2.0"
] | null | null | null | tests.py | dimitriyremerov/xye-bot | c675aaa0d2f83367ce4f5bc5f5f075db33d885fa | [
"Apache-2.0"
] | null | null | null | tests.py | dimitriyremerov/xye-bot | c675aaa0d2f83367ce4f5bc5f5f075db33d885fa | [
"Apache-2.0"
] | 1 | 2019-01-11T05:17:56.000Z | 2019-01-11T05:17:56.000Z | # coding=utf-8
import sys
# local
sys.path.insert(1, '/usr/local/google_appengine')
sys.path.insert(1, '/usr/local/google_appengine/lib/yaml/lib')
# travis
sys.path.insert(1, 'google_appengine')
sys.path.insert(1, 'google_appengine/lib/yaml/lib')
sys.path.insert(1, './lib')
from unittest import TestCase
import webapp2... | 37.809524 | 83 | 0.551134 | 431 | 3,970 | 4.976798 | 0.234339 | 0.062937 | 0.058741 | 0.032634 | 0.767832 | 0.733333 | 0.706294 | 0.706294 | 0.671795 | 0.648019 | 0 | 0.022369 | 0.313098 | 3,970 | 104 | 84 | 38.173077 | 0.76421 | 0.006297 | 0 | 0.526882 | 0 | 0 | 0.232936 | 0.024359 | 0 | 0 | 0 | 0 | 0.204301 | 1 | 0.064516 | false | 0 | 0.053763 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e98682d0724e57fdb6ea5ea7d9767bd25937af72 | 144 | py | Python | reddit2telegram/channels/~inactive/learntodrawx/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/~inactive/learntodrawx/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/~inactive/learntodrawx/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'learntodraw'
t_channel = '@Learntodrawx'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 16 | 38 | 0.75 | 18 | 144 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.131944 | 144 | 8 | 39 | 18 | 0.816 | 0.097222 | 0 | 0 | 0 | 0 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e9bc3f31c0f55d1ee48e8047b8a3e9d590f8233a | 116 | py | Python | apis/strings/scratch.py | johnatspreadstreet/Morph-RESTful-HTTP-Utility-API | 7549b1c0e700714ba264b4b5eaf4514e16b86fcd | [
"Python-2.0"
] | null | null | null | apis/strings/scratch.py | johnatspreadstreet/Morph-RESTful-HTTP-Utility-API | 7549b1c0e700714ba264b4b5eaf4514e16b86fcd | [
"Python-2.0"
] | 12 | 2021-05-06T19:29:04.000Z | 2022-02-26T10:01:34.000Z | apis/strings/scratch.py | johnatspreadstreet/Morph-RESTful-HTTP-Utility-API | 7549b1c0e700714ba264b4b5eaf4514e16b86fcd | [
"Python-2.0"
] | null | null | null | def splitter(string):
split = string.split(' ')
return split
print(splitter('this is a very messy string')) | 23.2 | 46 | 0.681034 | 16 | 116 | 4.9375 | 0.6875 | 0.278481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 116 | 5 | 46 | 23.2 | 0.840426 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
75989762d54825feb80a074c36c53cc1ba756524 | 172 | py | Python | lib/search/heuristic.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | lib/search/heuristic.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | lib/search/heuristic.py | timofurrer/aoc-2020 | 446b688a57601d9891f520e43b7f822c373a6ff4 | [
"MIT"
] | null | null | null | """
This module contains heuristic search algorithm
implemtations, like A*.
The ``lib.search.graph.Graph`` is supposed to be
used as a bases for these implementations.
"""
| 24.571429 | 48 | 0.761628 | 25 | 172 | 5.24 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 172 | 6 | 49 | 28.666667 | 0.885135 | 0.947674 | 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 |
75aeb315a2b8212cf930db77e2b2c293abc3c214 | 367 | py | Python | slixmpp/plugins/xep_0012/__init__.py | anirudhrata/slixmpp | 1fcee0e80a212eeb274d2f560e69099d8a61bf7f | [
"BSD-3-Clause"
] | 86 | 2016-07-04T13:26:02.000Z | 2022-02-19T10:26:21.000Z | slixmpp/plugins/xep_0012/__init__.py | anirudhrata/slixmpp | 1fcee0e80a212eeb274d2f560e69099d8a61bf7f | [
"BSD-3-Clause"
] | 10 | 2016-09-30T18:55:41.000Z | 2020-05-01T14:22:47.000Z | slixmpp/plugins/xep_0012/__init__.py | anirudhrata/slixmpp | 1fcee0e80a212eeb274d2f560e69099d8a61bf7f | [
"BSD-3-Clause"
] | 45 | 2016-09-30T18:48:41.000Z | 2022-03-18T21:39:33.000Z |
# Slixmpp: The Slick XMPP Library
# Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
# This file is part of Slixmpp.
# See the file LICENSE for copying permission.
from slixmpp.plugins.base import register_plugin
from slixmpp.plugins.xep_0012.stanza import LastActivity
from slixmpp.plugins.xep_0012.last_activi... | 28.230769 | 59 | 0.80654 | 57 | 367 | 5.070175 | 0.631579 | 0.096886 | 0.186851 | 0.145329 | 0.17301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062696 | 0.13079 | 367 | 12 | 60 | 30.583333 | 0.84326 | 0.441417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
75bbcc8c5f081747a0f426a764a7e6fc66a47849 | 175 | py | Python | MuonAnalysis/Configuration/python/muonL1_SkimPath_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | MuonAnalysis/Configuration/python/muonL1_SkimPath_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | MuonAnalysis/Configuration/python/muonL1_SkimPath_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
# this is just Juan's sequence to select l1 muons
from MuonAnalysis.Configuration.muonL1_cfi import *
muonL1Path = cms.Path(muonL1)
| 25 | 51 | 0.805714 | 26 | 175 | 5.384615 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.131429 | 175 | 6 | 52 | 29.166667 | 0.894737 | 0.268571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
75d94a7b970700b33fc8b4d1c62c303635814573 | 135 | py | Python | jason_tuple.py | Estheryu991/Elice_Coding_Python_I | 40d715f7f93893300e78cf6aba83122016266f52 | [
"CC0-1.0"
] | null | null | null | jason_tuple.py | Estheryu991/Elice_Coding_Python_I | 40d715f7f93893300e78cf6aba83122016266f52 | [
"CC0-1.0"
] | 1 | 2021-12-05T08:22:57.000Z | 2021-12-05T08:22:57.000Z | jason_tuple.py | Estheryu991/Elice_Coding_Python_I | 40d715f7f93893300e78cf6aba83122016266f52 | [
"CC0-1.0"
] | null | null | null | #create list
List = [1,2,3,4]
Tuple = (8,1,2011)
print("Size of list:", List.__sizeof__())
print("Size of tuple:", Tuple.__sizeof__())
| 22.5 | 43 | 0.659259 | 23 | 135 | 3.521739 | 0.565217 | 0.197531 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 0.118519 | 135 | 5 | 44 | 27 | 0.596639 | 0.081481 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
75e0637117efe275dd31a199ca7bd929601d5906 | 289 | py | Python | water/dict_def.py | One-Green/plant-keeper-master | 67101a4cc7070d26fd1685631a710ae9a60fc5e8 | [
"CC0-1.0"
] | 2 | 2022-02-04T17:52:38.000Z | 2022-02-04T17:52:40.000Z | water/dict_def.py | One-Green/plant-keeper-master | 67101a4cc7070d26fd1685631a710ae9a60fc5e8 | [
"CC0-1.0"
] | 4 | 2021-06-16T20:01:50.000Z | 2022-03-09T20:17:53.000Z | water/dict_def.py | One-Green/plant-keeper-master | 67101a4cc7070d26fd1685631a710ae9a60fc5e8 | [
"CC0-1.0"
] | 1 | 2021-06-27T10:45:36.000Z | 2021-06-27T10:45:36.000Z | from typing import TypedDict
class WaterCtrlDict(TypedDict):
tag: str
water_pump_signal: int
nutrient_pump_signal: int
ph_downer_pump_signal: int
mixer_pump_signal: int
tds_max_level: float
tds_min_level: float
ph_max_level: float
ph_min_level: float
| 20.642857 | 31 | 0.743945 | 42 | 289 | 4.714286 | 0.5 | 0.20202 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214533 | 289 | 13 | 32 | 22.230769 | 0.872247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
75e5cda9d0be4cdbdfa981bfe8fea77ec6c31916 | 77 | py | Python | environments/gym-visual/gym_visual/envs/__init__.py | zhihanyang2022/hierarchical_pomdp | 18bb0d1f148ab69366e64c1ef2c90142113bf787 | [
"MIT"
] | null | null | null | environments/gym-visual/gym_visual/envs/__init__.py | zhihanyang2022/hierarchical_pomdp | 18bb0d1f148ab69366e64c1ef2c90142113bf787 | [
"MIT"
] | null | null | null | environments/gym-visual/gym_visual/envs/__init__.py | zhihanyang2022/hierarchical_pomdp | 18bb0d1f148ab69366e64c1ef2c90142113bf787 | [
"MIT"
] | null | null | null | from gym_visual.envs.continuous_mountain_car import Continuous_MountainCarEnv | 77 | 77 | 0.935065 | 10 | 77 | 6.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 77 | 1 | 77 | 77 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f9406f867d6fa90d78e664345ac5eb2b6112da56 | 130 | py | Python | OverApp/apps.py | sheissage/overnightasiasg | 83351e51b26a0ff3759030d5165cc87e987ff07d | [
"Apache-2.0"
] | null | null | null | OverApp/apps.py | sheissage/overnightasiasg | 83351e51b26a0ff3759030d5165cc87e987ff07d | [
"Apache-2.0"
] | null | null | null | OverApp/apps.py | sheissage/overnightasiasg | 83351e51b26a0ff3759030d5165cc87e987ff07d | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class OverappConfig(AppConfig):
name = 'OverApp'
| 16.25 | 39 | 0.792308 | 15 | 130 | 6.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 130 | 7 | 40 | 18.571429 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 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 |
f9667dd7a6fb53f2d2fe2d6d1c9eec650e5eaf1c | 317 | py | Python | tests/test_day17.py | khwilson/advent2020 | 066591265af5afe905fc583b9a67894d197297ae | [
"MIT"
] | null | null | null | tests/test_day17.py | khwilson/advent2020 | 066591265af5afe905fc583b9a67894d197297ae | [
"MIT"
] | null | null | null | tests/test_day17.py | khwilson/advent2020 | 066591265af5afe905fc583b9a67894d197297ae | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from advent import day17
def test_first(fixture_path: Path):
assert day17.first(fixture_path / "example17.txt") == 112
@pytest.mark.skip("This test takes a long time")
def test_second(fixture_path: Path):
assert day17.second(fixture_path / "example17.txt") == 848
| 21.133333 | 62 | 0.744479 | 47 | 317 | 4.893617 | 0.510638 | 0.191304 | 0.13913 | 0.182609 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05948 | 0.15142 | 317 | 14 | 63 | 22.642857 | 0.795539 | 0 | 0 | 0 | 0 | 0 | 0.167192 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.625 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
f969f37ee01948cbb4b224a514b1d9ede90dc44e | 214 | py | Python | src/tempra/units.py | jasondraether/tempra | 832b319960ac3ec312dc240b6c7b1101d6bb5b78 | [
"MIT"
] | null | null | null | src/tempra/units.py | jasondraether/tempra | 832b319960ac3ec312dc240b6c7b1101d6bb5b78 | [
"MIT"
] | null | null | null | src/tempra/units.py | jasondraether/tempra | 832b319960ac3ec312dc240b6c7b1101d6bb5b78 | [
"MIT"
] | null | null | null | class Unit(object):
def __init__(self):
pass
def __str__(self):
pass
class Seconds(Unit):
def __init__(self):
super().__init__()
def __str__(self):
return "(s)"
| 13.375 | 26 | 0.546729 | 24 | 214 | 4.041667 | 0.5 | 0.14433 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327103 | 214 | 15 | 27 | 14.266667 | 0.673611 | 0 | 0 | 0.6 | 0 | 0 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0.1 | 0.7 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f9c6b17d1a90aeb3617f1e5ae741364d1db72599 | 360 | py | Python | award/serializer.py | Julia-Agasaro/award | cd25d62e646847dfc8429c2f3abfaa93927be1b5 | [
"MIT"
] | null | null | null | award/serializer.py | Julia-Agasaro/award | cd25d62e646847dfc8429c2f3abfaa93927be1b5 | [
"MIT"
] | 3 | 2020-06-05T23:54:06.000Z | 2021-06-10T22:09:40.000Z | award/serializer.py | Julia-Agasaro/award | cd25d62e646847dfc8429c2f3abfaa93927be1b5 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Profile,Post
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = ('bio', 'email', 'profile_photo')
class PostSerializer(serializers.ModelSerializer):
class Meta:
model = Post
field... | 30 | 53 | 0.697222 | 36 | 360 | 6.888889 | 0.611111 | 0.209677 | 0.25 | 0.282258 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202778 | 360 | 12 | 54 | 30 | 0.864112 | 0 | 0 | 0.2 | 0 | 0 | 0.124654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f9cbc264a3ca1076cf7f54c6b9876af270e84291 | 167 | py | Python | egi_notebooks_accounting/utils.py | enolfc/egi-notebooks-accounting | f2dfda199a8909688e467e9dcea3eb0a37efaef7 | [
"Apache-2.0"
] | null | null | null | egi_notebooks_accounting/utils.py | enolfc/egi-notebooks-accounting | f2dfda199a8909688e467e9dcea3eb0a37efaef7 | [
"Apache-2.0"
] | null | null | null | egi_notebooks_accounting/utils.py | enolfc/egi-notebooks-accounting | f2dfda199a8909688e467e9dcea3eb0a37efaef7 | [
"Apache-2.0"
] | null | null | null | NAMESPACE_FILE = '/var/run/secrets/kubernetes.io/serviceaccount/namespace'
def get_k8s_namespace():
with open(NAMESPACE_FILE, 'r') as f:
return f.read()
| 23.857143 | 74 | 0.712575 | 23 | 167 | 5 | 0.782609 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.155689 | 167 | 6 | 75 | 27.833333 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.335329 | 0.329341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f9d64958d6674391cfb68c812bdb3ceb07c58d6d | 162 | py | Python | demotivational_policy_descent/utils/io.py | fcole90/demotivational-policy-descent | 9193487587c03530bf5a962fda7b6ac5a4ceaae4 | [
"MIT"
] | null | null | null | demotivational_policy_descent/utils/io.py | fcole90/demotivational-policy-descent | 9193487587c03530bf5a962fda7b6ac5a4ceaae4 | [
"MIT"
] | 1 | 2019-11-24T18:16:55.000Z | 2019-11-24T18:17:01.000Z | demotivational_policy_descent/utils/io.py | fcole90/demotivational-policy-descent | 9193487587c03530bf5a962fda7b6ac5a4ceaae4 | [
"MIT"
] | null | null | null | import os
IO_FILE_PATH = os.path.realpath(__file__)
UTILS_PATH = os.path.dirname(IO_FILE_PATH)
MODELS_PATH= os.path.join(UTILS_PATH, os.pardir, "save_models")
| 20.25 | 63 | 0.783951 | 28 | 162 | 4.107143 | 0.428571 | 0.208696 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 162 | 7 | 64 | 23.142857 | 0.782313 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 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 |
f9dfb3c1abf4b4b9f3fa2bfa56279d5ecd3cf1aa | 7,843 | py | Python | datadotworld/client/_swagger/models/__init__.py | DanialBetres/data.world-py | 0e3acf2be9a07c5ab62ecac9289eb662088d54c7 | [
"Apache-2.0"
] | 99 | 2017-01-23T16:24:18.000Z | 2022-03-30T22:51:58.000Z | datadotworld/client/_swagger/models/__init__.py | DanialBetres/data.world-py | 0e3acf2be9a07c5ab62ecac9289eb662088d54c7 | [
"Apache-2.0"
] | 77 | 2017-01-26T04:33:06.000Z | 2022-03-11T09:39:50.000Z | datadotworld/client/_swagger/models/__init__.py | DanialBetres/data.world-py | 0e3acf2be9a07c5ab62ecac9289eb662088d54c7 | [
"Apache-2.0"
] | 29 | 2017-01-25T16:55:23.000Z | 2022-01-31T01:44:15.000Z | # coding: utf-8
"""
data.world API
# data.world in a nutshell data.world is a productive, secure platform for modern data teamwork. We bring together your data practitioners, subject matter experts, and other stakeholders by removing costly barriers to data discovery, comprehension, integration, and sharing... | 65.907563 | 1,984 | 0.87441 | 941 | 7,843 | 7.061637 | 0.387885 | 0.068473 | 0.024379 | 0.015801 | 0.031151 | 0.009932 | 0 | 0 | 0 | 0 | 0 | 0.000847 | 0.096264 | 7,843 | 118 | 1,985 | 66.466102 | 0.936654 | 0.275915 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f9e90553cc3ce4bc790fb2e0101fda3d4f270a17 | 2,878 | py | Python | Oled/drv/font.py | chenhao1010/Micropython_Domoticz | fe0ce5d57c4b4215b602a0d87ba6ca9158781204 | [
"Apache-2.0"
] | 1 | 2018-12-20T09:10:11.000Z | 2018-12-20T09:10:11.000Z | Oled/drv/font.py | chenhao1010/Micropython_Domoticz | fe0ce5d57c4b4215b602a0d87ba6ca9158781204 | [
"Apache-2.0"
] | null | null | null | Oled/drv/font.py | chenhao1010/Micropython_Domoticz | fe0ce5d57c4b4215b602a0d87ba6ca9158781204 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/python
# -*- encoding: utf-8 -*-
"""
:开发者: 陈浩
:开发日期: 2018年12月5日
:邮箱地址: chenhao1010@163.com
:个人博客: https://www.chenhao-home.cn/
:开发芯片: ESP-32
:修订日志:
1、字符生成请使用PCtoLCD2002(完美版)
2、
3、
4、
5、
"""
byte = {
0xe696b0:
[
0x00,0x08,0x0C,0x7F,0x22,... | 34.261905 | 85 | 0.66574 | 477 | 2,878 | 4.025157 | 0.30608 | 0.116667 | 0.08125 | 0.041667 | 0.05 | 0.029167 | 0 | 0 | 0 | 0 | 0 | 0.487515 | 0.151147 | 2,878 | 84 | 86 | 34.261905 | 0.296766 | 0.089646 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.702703 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dda385f27e28e8ffb96934328ca669f9baf285e3 | 76,263 | py | Python | cloudshell/snmp/mibs/TOKEN-RING-RMON-MIB.py | QualiSystems/cloudshell-snmp | 9f8c4a927997d69cf85cac2a9bb1c36952d62d99 | [
"Apache-2.0"
] | null | null | null | cloudshell/snmp/mibs/TOKEN-RING-RMON-MIB.py | QualiSystems/cloudshell-snmp | 9f8c4a927997d69cf85cac2a9bb1c36952d62d99 | [
"Apache-2.0"
] | 36 | 2016-05-13T08:42:13.000Z | 2021-07-07T13:53:23.000Z | cloudshell/snmp/mibs/TOKEN-RING-RMON-MIB.py | QualiSystems/cloudshell-snmp | 9f8c4a927997d69cf85cac2a9bb1c36952d62d99 | [
"Apache-2.0"
] | 5 | 2016-08-05T17:49:21.000Z | 2019-05-28T03:27:22.000Z | # PySNMP SMI module. Autogenerated from smidump -f python TOKEN-RING-RMON-MIB
# by libsmi2pysnmp-0.1.3 at Mon Apr 2 20:39:46 2012,
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
# Imports
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "I... | 191.615578 | 7,649 | 0.809842 | 8,964 | 76,263 | 6.889335 | 0.084226 | 0.007578 | 0.010201 | 0.014816 | 0.551266 | 0.52356 | 0.499968 | 0.485378 | 0.40375 | 0.338769 | 0 | 0.049941 | 0.095472 | 76,263 | 398 | 7,650 | 191.615578 | 0.845307 | 0.003593 | 0 | 0 | 1 | 0.276596 | 0.389542 | 0.019426 | 0 | 0 | 0.000553 | 0 | 0 | 1 | 0 | false | 0.00266 | 0.013298 | 0 | 0.023936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ddfad8c6a54ee3dcad998e6151d8fa4f1dc4bcdd | 637 | py | Python | ATMP_cap_4/cap_4_ex_2.py | gcapistrano/livro-automacao | 26b8151146a71d7f0b51473d4a6aef541b872a7d | [
"MIT"
] | null | null | null | ATMP_cap_4/cap_4_ex_2.py | gcapistrano/livro-automacao | 26b8151146a71d7f0b51473d4a6aef541b872a7d | [
"MIT"
] | null | null | null | ATMP_cap_4/cap_4_ex_2.py | gcapistrano/livro-automacao | 26b8151146a71d7f0b51473d4a6aef541b872a7d | [
"MIT"
] | null | null | null | #"Automatizando tarefas maçantes com Python", capítulo 4, exercício 2 (pág.158
# do pdf)
#Objetivo: criar código para reproduzir, a partir do grid, a figura:
#..OO.OO..
#.OOOOOOO.
#.OOOOOOO.
#..OOOOO..
#...OOO...
#....O....
#Ou seja, transformar as colunas em linhas.
grid = [['.', '.', '.', '.', '.', '.'],
['.', ... | 18.735294 | 78 | 0.375196 | 80 | 637 | 2.9875 | 0.525 | 0.217573 | 0.313808 | 0.401674 | 0.112971 | 0.112971 | 0.112971 | 0.112971 | 0.112971 | 0.112971 | 0 | 0.015717 | 0.200942 | 637 | 33 | 79 | 19.30303 | 0.453831 | 0.389325 | 0 | 0.428571 | 0 | 0 | 0.14248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 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 |
fb06022ee796b90866c0e51a018a6c6d8846047e | 96 | py | Python | dist_search/apps.py | pontusgranath/svt-apl | fea759e7629af3e92a03849ad06d82c77e57328e | [
"MIT"
] | 2 | 2021-03-12T14:33:25.000Z | 2021-03-12T14:33:27.000Z | dist_search/apps.py | pontusgranath/svt-apl | fea759e7629af3e92a03849ad06d82c77e57328e | [
"MIT"
] | 1 | 2021-04-21T09:29:59.000Z | 2021-04-23T12:48:38.000Z | dist_search/apps.py | pontusgranath/svt-apl | fea759e7629af3e92a03849ad06d82c77e57328e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DistSearchConfig(AppConfig):
name = 'dist_search'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
348e85757b74dce2e6f5c19737791b4982e4522e | 299 | py | Python | backend/utils/env.py | Pinletrot/markdown-server | 1645bc828b2f8b6c8237bae72e11dcbaea8c41d5 | [
"MIT"
] | 3 | 2018-10-31T15:33:49.000Z | 2020-04-15T20:48:09.000Z | backend/utils/env.py | Pinletrot/markdown-server | 1645bc828b2f8b6c8237bae72e11dcbaea8c41d5 | [
"MIT"
] | null | null | null | backend/utils/env.py | Pinletrot/markdown-server | 1645bc828b2f8b6c8237bae72e11dcbaea8c41d5 | [
"MIT"
] | null | null | null | import os
root_path = '/'.join(os.path.dirname(__file__).split('/')[:-2])
tmp_dir = os.path.join(root_path, '.tmp')
data_dir = os.path.join(root_path, 'data')
note_dir = os.path.join(data_dir, 'notes')
slide_dir = os.path.join(data_dir, 'slides')
template_dir = os.path.join(data_dir, 'templates')
| 33.222222 | 63 | 0.705686 | 51 | 299 | 3.843137 | 0.352941 | 0.244898 | 0.229592 | 0.331633 | 0.520408 | 0.520408 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.086957 | 299 | 8 | 64 | 37.375 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.100334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
55001659270b3652a051a68bee86c92de8700911 | 98 | py | Python | zvt/recorders/yahoo/finance/__init__.py | webclinic017/FinanceCenter | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | [
"MIT"
] | 22 | 2020-10-22T14:24:32.000Z | 2022-03-30T22:19:14.000Z | zvt/recorders/yahoo/finance/__init__.py | webclinic017/FinanceCenter | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | [
"MIT"
] | null | null | null | zvt/recorders/yahoo/finance/__init__.py | webclinic017/FinanceCenter | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | [
"MIT"
] | 6 | 2021-01-14T20:50:06.000Z | 2022-01-11T23:12:43.000Z | # -*- coding: utf-8 -*-
from zvt.recorders.yahoo.finance.us_stock_balance_sheet_recorder import *
| 32.666667 | 73 | 0.765306 | 14 | 98 | 5.071429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.091837 | 98 | 2 | 74 | 49 | 0.786517 | 0.214286 | 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 |
550f6b345dc0a9a3944485e337ad8e308f17f118 | 53 | py | Python | auxjad/makers/__init__.py | gilbertohasnofb/auxjad | 553b7fe97221b6f378a93ade6262f024e3cbc678 | [
"MIT"
] | 6 | 2020-05-18T09:28:29.000Z | 2021-12-22T00:40:54.000Z | auxjad/makers/__init__.py | gilbertohasnofb/auxjad | 553b7fe97221b6f378a93ade6262f024e3cbc678 | [
"MIT"
] | 1 | 2021-04-21T20:29:38.000Z | 2021-04-22T19:44:54.000Z | auxjad/makers/__init__.py | gilbertohasnofb/auxjad | 553b7fe97221b6f378a93ade6262f024e3cbc678 | [
"MIT"
] | 1 | 2021-04-21T18:54:46.000Z | 2021-04-21T18:54:46.000Z | """
makers
======
Auxjad's leaf making classes.
"""
| 7.571429 | 29 | 0.566038 | 6 | 53 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 53 | 6 | 30 | 8.833333 | 0.681818 | 0.830189 | 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 |
5513bd2d2077f022f0580caa1e70c69a812457ca | 60 | py | Python | data/typing/pandas.api.py | pydata-apis/python-api-record | 684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b | [
"MIT"
] | 67 | 2020-08-17T11:53:26.000Z | 2021-11-08T20:16:06.000Z | data/typing/pandas.api.py | data-apis/python-record-api | 684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b | [
"MIT"
] | 36 | 2020-08-17T11:09:51.000Z | 2021-12-15T18:09:47.000Z | data/typing/pandas.api.py | pydata-apis/python-api-record | 684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b | [
"MIT"
] | 7 | 2020-08-19T05:06:47.000Z | 2020-11-04T05:10:38.000Z | from typing import *
# usage.geopandas: 2
indexers: object
| 12 | 20 | 0.75 | 8 | 60 | 5.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.166667 | 60 | 4 | 21 | 15 | 0.88 | 0.3 | 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 |
9b28bc41df4d5149172214b259fce500d6991cda | 29 | py | Python | tripleo_validations/tests/lookup_plugins/__init__.py | openstack/tripleo-validations | 527860250cfe5b221fc7a39286b8f26f498482dd | [
"Apache-2.0"
] | 26 | 2016-05-25T08:21:03.000Z | 2021-12-20T11:26:23.000Z | tripleo_validations/tests/lookup_plugins/__init__.py | openstack/tripleo-validations | 527860250cfe5b221fc7a39286b8f26f498482dd | [
"Apache-2.0"
] | null | null | null | tripleo_validations/tests/lookup_plugins/__init__.py | openstack/tripleo-validations | 527860250cfe5b221fc7a39286b8f26f498482dd | [
"Apache-2.0"
] | 14 | 2016-09-21T10:10:00.000Z | 2022-01-09T13:06:38.000Z | """Lookup plugins tests.
"""
| 9.666667 | 24 | 0.62069 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 2 | 25 | 14.5 | 0.72 | 0.724138 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9b2a7153e2f0c09e7cf35aa71f59b8d933210282 | 41 | py | Python | svtool/__version__.py | zeissmania/sv_tool | 7cf60c345fae20e0f79eb660a12ef9b15f561b7f | [
"MIT"
] | null | null | null | svtool/__version__.py | zeissmania/sv_tool | 7cf60c345fae20e0f79eb660a12ef9b15f561b7f | [
"MIT"
] | null | null | null | svtool/__version__.py | zeissmania/sv_tool | 7cf60c345fae20e0f79eb660a12ef9b15f561b7f | [
"MIT"
] | null | null | null | __version__ = "0.0.2"
__name__ = "svtool" | 20.5 | 21 | 0.682927 | 6 | 41 | 3.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.121951 | 41 | 2 | 22 | 20.5 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 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 |
9b37b6a2e8ebf494028e6bab98f3dcab33587b05 | 170 | py | Python | transpydata/config/IConfigurable.py | salpreh/transpydata | 88cecf53f93b316e8fd95983c28a918ca2f41cf4 | [
"Apache-2.0"
] | null | null | null | transpydata/config/IConfigurable.py | salpreh/transpydata | 88cecf53f93b316e8fd95983c28a918ca2f41cf4 | [
"Apache-2.0"
] | 4 | 2020-12-09T17:56:21.000Z | 2021-01-25T22:03:12.000Z | transpydata/config/IConfigurable.py | salpreh/transpydata | 88cecf53f93b316e8fd95983c28a918ca2f41cf4 | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
class IConfigurable(metaclass=ABCMeta):
@abstractmethod
def configure(self, config):
raise NotImplementedError
| 18.888889 | 39 | 0.752941 | 16 | 170 | 8 | 0.875 | 0.328125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 170 | 8 | 40 | 21.25 | 0.927536 | 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 |
9b500a59c5f0a8390981763461d2ef6b2b9a5f5a | 206 | py | Python | example/apps.py | CorrosiveKid/django_elastic_appsearch | 85da7642aac566164b8bc06894e97a048fd3116e | [
"MIT"
] | 11 | 2019-08-07T01:31:42.000Z | 2021-02-02T08:12:24.000Z | example/apps.py | CorrosiveKid/django_elastic_appsearch | 85da7642aac566164b8bc06894e97a048fd3116e | [
"MIT"
] | 148 | 2019-08-01T04:22:28.000Z | 2021-05-10T19:06:31.000Z | example/apps.py | infoxchange/django_elastic_appsearch | 65229586f0392d8d8cb143ab625081c89fa4cb64 | [
"MIT"
] | 6 | 2019-08-26T10:00:42.000Z | 2021-02-01T03:54:02.000Z | """Example app config."""
from django.apps import AppConfig
class ExampleAppConfig(AppConfig):
"""Example app config."""
name = 'example'
default_auto_field = 'django.db.models.BigAutoField'
| 20.6 | 56 | 0.708738 | 23 | 206 | 6.26087 | 0.73913 | 0.138889 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160194 | 206 | 9 | 57 | 22.888889 | 0.83237 | 0.18932 | 0 | 0 | 0 | 0 | 0.230769 | 0.185897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9b52d5bcadb125341710e19fdf16132ba8e7a948 | 89 | py | Python | Lib/windows/__init__.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/windows/__init__.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Lib/windows/__init__.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | # Stub for some helper Cython Windows wrappers (source code in
# ../../contrib/windows).
| 29.666667 | 62 | 0.719101 | 12 | 89 | 5.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 89 | 2 | 63 | 44.5 | 0.842105 | 0.94382 | 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 |
9b8ff81f29915a496eaf04b69efcc2156d614386 | 167 | py | Python | challenge_2/python/popcorn_anachronism/challenge_2.py | rchicoli/2017-challenges | 44f0b672e5dea34de1dde131b6df837d462f8e29 | [
"Apache-2.0"
] | 271 | 2017-01-01T22:58:36.000Z | 2021-11-28T23:05:29.000Z | challenge_2/python/popcorn_anachronism/challenge_2.py | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 283 | 2017-01-01T23:26:05.000Z | 2018-03-23T00:48:55.000Z | challenge_2/python/popcorn_anachronism/challenge_2.py | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 311 | 2017-01-01T22:59:23.000Z | 2021-09-23T00:29:12.000Z | array = list(input().split(","))
def find_single(array):
for item in array:
if array.count(item) == 1:
return item
print(find_single(array))
| 18.555556 | 34 | 0.598802 | 23 | 167 | 4.26087 | 0.652174 | 0.204082 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.251497 | 167 | 8 | 35 | 20.875 | 0.776 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
9b952a7b5a51d6aad3e8d60d7550fe4399210556 | 972 | py | Python | voithos/cli/service/service.py | breqwatr/voidith | 4433b687969ad09de40b399871cec768f199d326 | [
"Apache-2.0"
] | 3 | 2020-05-13T16:06:59.000Z | 2020-05-14T19:29:50.000Z | voithos/cli/service/service.py | breqwatr/voidith | 4433b687969ad09de40b399871cec768f199d326 | [
"Apache-2.0"
] | 8 | 2020-12-03T17:35:35.000Z | 2021-11-29T16:24:34.000Z | voithos/cli/service/service.py | breqwatr/voidith | 4433b687969ad09de40b399871cec768f199d326 | [
"Apache-2.0"
] | 9 | 2020-07-30T18:03:45.000Z | 2021-12-07T17:34:20.000Z | """ Command-group for Voithos Services """
import click
import voithos.cli.service.arcus.arcus as arcus
import voithos.cli.service.apt as apt
import voithos.cli.service.grafana as grafana
import voithos.cli.service.horizon as horizon
import voithos.cli.service.registry as registry
import voithos.cli.service.pip as pip... | 32.4 | 54 | 0.763374 | 138 | 972 | 5.188406 | 0.173913 | 0.145251 | 0.178771 | 0.256983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131687 | 972 | 29 | 55 | 33.517241 | 0.848341 | 0.093621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | true | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
32e1f98bdcb34320621d503478b8c3852f98d242 | 91 | py | Python | api/contract/apps.py | sttpforever/Account_lite | 2f4f42b50d4aff4aabaeb9325abefcf866cd4612 | [
"MIT"
] | null | null | null | api/contract/apps.py | sttpforever/Account_lite | 2f4f42b50d4aff4aabaeb9325abefcf866cd4612 | [
"MIT"
] | 3 | 2020-02-11T22:59:47.000Z | 2021-03-19T22:03:11.000Z | contract/apps.py | YangWanjun/ebusiness | 03d92908b4db1a305c8cb99fc27700fd4dc972bd | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ContractConfig(AppConfig):
name = 'contract'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
32e2e241e1a9aef440d96edb7645eb303cf68bc2 | 929 | py | Python | datastruct/queue/ArrayQueue.py | LibertyDream/algorithm_data_structure | 5d143d04d001a9b8aef30334881d0af56d8c9850 | [
"MIT"
] | null | null | null | datastruct/queue/ArrayQueue.py | LibertyDream/algorithm_data_structure | 5d143d04d001a9b8aef30334881d0af56d8c9850 | [
"MIT"
] | null | null | null | datastruct/queue/ArrayQueue.py | LibertyDream/algorithm_data_structure | 5d143d04d001a9b8aef30334881d0af56d8c9850 | [
"MIT"
] | null | null | null | from Array import Array
from Queue import Queue
class ArrayQueue(Queue):
def __init__(self, capacity: int = 10):
self.__data = Array(capacity)
def get_size(self):
return self.__data.get_size()
def enqueue(self, ele):
self.__data.add_to_last(ele)
def is_empty(self):
... | 25.108108 | 107 | 0.587729 | 121 | 929 | 4.123967 | 0.31405 | 0.192385 | 0.176353 | 0.180361 | 0.126253 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004498 | 0.282024 | 929 | 36 | 108 | 25.805556 | 0.743628 | 0 | 0 | 0 | 0 | 0 | 0.053821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.192308 | 0.653846 | 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 |
32e45ebab35aaa1ce182431af060c1d2c3bfd834 | 573 | py | Python | scripts/udf/functions.py | corneliouzbett/Ampath-Data-Flow | 397e7ac710c6070d82196cee39613640c5ec8118 | [
"MIT"
] | 1 | 2019-04-02T18:49:56.000Z | 2019-04-02T18:49:56.000Z | scripts/udf/functions.py | corneliouzbett/Ampath-Data-Flow | 397e7ac710c6070d82196cee39613640c5ec8118 | [
"MIT"
] | null | null | null | scripts/udf/functions.py | corneliouzbett/Ampath-Data-Flow | 397e7ac710c6070d82196cee39613640c5ec8118 | [
"MIT"
] | null | null | null | import os
import re
import sys
def search_obs_value(obs, concept):
return re.findall('## !!'+ str(concept) + '=(.+?)!! ##',obs)
obs= '!!1834=7850!! ## !!1915=Patient is awaiting imaging results, then start darcabazine 250 ml every 21 days.!! ## !!1915=Patient is HIV positive since 2016,no presents with pains on t... | 52.090909 | 389 | 0.645724 | 83 | 573 | 4.409639 | 0.795181 | 0.04918 | 0.076503 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188641 | 0.139616 | 573 | 11 | 390 | 52.090909 | 0.553753 | 0 | 0 | 0 | 0 | 0.125 | 0.700348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
b5c3cf2453c58378a645ad83b69872854563ea9d | 222 | py | Python | 2019/D17/Q2/Operation99.py | buchasia/advent-of-code | f568c6330c8934325913705b39ef8c25a1023057 | [
"MIT"
] | null | null | null | 2019/D17/Q2/Operation99.py | buchasia/advent-of-code | f568c6330c8934325913705b39ef8c25a1023057 | [
"MIT"
] | null | null | null | 2019/D17/Q2/Operation99.py | buchasia/advent-of-code | f568c6330c8934325913705b39ef8c25a1023057 | [
"MIT"
] | null | null | null | from Operation import Operation
class Operation99(Operation):
@staticmethod
def getNumberOfOperands():
return 1
@staticmethod
def getValue(sequence, currentIndex, modes):
return sequence
| 18.5 | 48 | 0.702703 | 20 | 222 | 7.8 | 0.7 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0.238739 | 222 | 11 | 49 | 20.181818 | 0.905325 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b5d08e424ee858adb208502153fcfaccfe34a5d7 | 174 | py | Python | src/insalata/planning/PlanParserBase.py | tumi8/INSALATA | e4c552023334f709b9586f664b7e049036133d33 | [
"Apache-2.0"
] | 6 | 2016-11-25T17:31:57.000Z | 2018-02-15T16:39:38.000Z | src/insalata/planning/PlanParserBase.py | tumi8/INSALATA | e4c552023334f709b9586f664b7e049036133d33 | [
"Apache-2.0"
] | null | null | null | src/insalata/planning/PlanParserBase.py | tumi8/INSALATA | e4c552023334f709b9586f664b7e049036133d33 | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
class PlanParserBase(metaclass=ABCMeta):
@abstractmethod
def parsePlan(self, objects, functionDict, planFile):
pass
| 21.75 | 57 | 0.747126 | 17 | 174 | 7.647059 | 0.882353 | 0.323077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 174 | 7 | 58 | 24.857143 | 0.915493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b5d0f6cd857affc94fc49f0776eb243220f9d6aa | 278 | py | Python | easypeasyml/src/__init__.py | llFireHawkll/easypeasyML | a5d662d85661eeb588b20ffb195dcb223581e708 | [
"MIT"
] | null | null | null | easypeasyml/src/__init__.py | llFireHawkll/easypeasyML | a5d662d85661eeb588b20ffb195dcb223581e708 | [
"MIT"
] | null | null | null | easypeasyml/src/__init__.py | llFireHawkll/easypeasyML | a5d662d85661eeb588b20ffb195dcb223581e708 | [
"MIT"
] | null | null | null | '''
File: __init__.py
Project: src
File Created: Sunday, 28th February 2021 3:03:13 am
Author: Sparsh Dutta (sparsh.dtt@gmail.com)
-----
Last Modified: Sunday, 28th February 2021 3:03:13 am
Modified By: Sparsh Dutta (sparsh.dtt@gmail.com>)
-----
Copyright 2021 Sparsh Dutta
'''
| 23.166667 | 52 | 0.723022 | 44 | 278 | 4.477273 | 0.545455 | 0.167513 | 0.182741 | 0.22335 | 0.57868 | 0.57868 | 0.294416 | 0.294416 | 0 | 0 | 0 | 0.107884 | 0.133094 | 278 | 11 | 53 | 25.272727 | 0.709544 | 0.967626 | 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 |
bd0d3617bf7252753e3d2f2ecf5cc6fd0b323fa8 | 151 | py | Python | Mundo 1/Desafio/016.py | LeonardoJosedaSilveira/Curso-de-python | e5b7920ce75a3c7af9b8250e18cabaa173e2478b | [
"MIT"
] | null | null | null | Mundo 1/Desafio/016.py | LeonardoJosedaSilveira/Curso-de-python | e5b7920ce75a3c7af9b8250e18cabaa173e2478b | [
"MIT"
] | null | null | null | Mundo 1/Desafio/016.py | LeonardoJosedaSilveira/Curso-de-python | e5b7920ce75a3c7af9b8250e18cabaa173e2478b | [
"MIT"
] | null | null | null | n0 = float(input('Digite um numero '))
print('A parte inteira do número é {:.0f}'.format(n0 // 1))
print('\033[1;35;41meste é um teste de cores\033[m') | 50.333333 | 59 | 0.668874 | 29 | 151 | 3.482759 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114504 | 0.13245 | 151 | 3 | 60 | 50.333333 | 0.656489 | 0 | 0 | 0 | 0 | 0 | 0.618421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
bd2783a9a07f744730004e0eee03aec065201273 | 116 | py | Python | jupy/__init__.py | Jow1e/jupy | 30f5d00c5cc7750d2f0320dc075ec2bf0824275e | [
"MIT"
] | null | null | null | jupy/__init__.py | Jow1e/jupy | 30f5d00c5cc7750d2f0320dc075ec2bf0824275e | [
"MIT"
] | null | null | null | jupy/__init__.py | Jow1e/jupy | 30f5d00c5cc7750d2f0320dc075ec2bf0824275e | [
"MIT"
] | null | null | null | from .tensor import Tensor
from .easy_func_access import *
from .optimizers import AdamW, SGD
from .nn import *
| 23.2 | 35 | 0.758621 | 17 | 116 | 5.058824 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181034 | 116 | 4 | 36 | 29 | 0.905263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bd27d2286d1dbeba121f661cc02f4d58253212d6 | 112 | py | Python | othello/app.py | Mcclujdd/othello | 066628d8e6932840c59ad0f726a6e0960490aede | [
"MIT"
] | null | null | null | othello/app.py | Mcclujdd/othello | 066628d8e6932840c59ad0f726a6e0960490aede | [
"MIT"
] | null | null | null | othello/app.py | Mcclujdd/othello | 066628d8e6932840c59ad0f726a6e0960490aede | [
"MIT"
] | 1 | 2021-07-27T02:12:06.000Z | 2021-07-27T02:12:06.000Z | from othello.game.board import drawBoard, generateBoardValues
board = generateBoardValues()
drawBoard(board)
| 16 | 61 | 0.821429 | 11 | 112 | 8.363636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 112 | 6 | 62 | 18.666667 | 0.92 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bd520621572d039f183249ff76f1a4331f9ddb9a | 59 | py | Python | pizzashop/__init__.py | dzeban/python-imports | dafa41ff5faf5e35bddeeaba5849aa02894ec315 | [
"MIT"
] | 5 | 2019-05-07T11:52:10.000Z | 2021-12-29T15:57:25.000Z | pizzashop/__init__.py | dzeban/python-imports | dafa41ff5faf5e35bddeeaba5849aa02894ec315 | [
"MIT"
] | 1 | 2018-09-15T07:36:24.000Z | 2018-09-15T07:36:24.000Z | pizzashop/__init__.py | dzeban/python-imports | dafa41ff5faf5e35bddeeaba5849aa02894ec315 | [
"MIT"
] | 2 | 2018-12-08T22:37:36.000Z | 2019-06-27T18:04:42.000Z | # Presense of __init__.py makes directory a Python package
| 29.5 | 58 | 0.813559 | 9 | 59 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 59 | 1 | 59 | 59 | 0.88 | 0.949153 | 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 |
bd539076ee93fb6212590b338376e9b8544c56f8 | 76 | py | Python | src/hello/hello.py | cyancirrus/integration | e2f6ca9e48ec56fb5d9fa94a22dcfa3b81652a01 | [
"MIT"
] | null | null | null | src/hello/hello.py | cyancirrus/integration | e2f6ca9e48ec56fb5d9fa94a22dcfa3b81652a01 | [
"MIT"
] | null | null | null | src/hello/hello.py | cyancirrus/integration | e2f6ca9e48ec56fb5d9fa94a22dcfa3b81652a01 | [
"MIT"
] | null | null | null | def PleaseSayHello(user: str) -> str:
print("hello world" + " " + user)
| 25.333333 | 37 | 0.605263 | 9 | 76 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 76 | 2 | 38 | 38 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1fe40d8d215f917088c1c0aa20000f18d6eae21c | 34 | py | Python | tests/__init__.py | elinsky/padl | 7f10be00a799d0a19eaa552f060f2cf9f4bcf3ef | [
"MIT"
] | null | null | null | tests/__init__.py | elinsky/padl | 7f10be00a799d0a19eaa552f060f2cf9f4bcf3ef | [
"MIT"
] | 20 | 2020-11-02T14:47:42.000Z | 2021-06-12T13:01:07.000Z | tests/__init__.py | elinsky/padl | 7f10be00a799d0a19eaa552f060f2cf9f4bcf3ef | [
"MIT"
] | null | null | null | """Unit test package for padl."""
| 17 | 33 | 0.647059 | 5 | 34 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 1 | 34 | 34 | 0.758621 | 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 |
1fe554b122d237588e3689a75000dc6c73f957f7 | 146 | py | Python | Chapter01/01_first.py | PacktPublishing/MicroPython-Cookbook | ffd6aa15c303459570a89ba31b5bc734f05cb387 | [
"MIT"
] | 16 | 2019-07-01T16:24:22.000Z | 2022-03-03T06:54:57.000Z | Chapter01/01_first.py | ccwu0918/MicroPython-Cookbook | ffd6aa15c303459570a89ba31b5bc734f05cb387 | [
"MIT"
] | null | null | null | Chapter01/01_first.py | ccwu0918/MicroPython-Cookbook | ffd6aa15c303459570a89ba31b5bc734f05cb387 | [
"MIT"
] | 19 | 2019-04-17T08:30:12.000Z | 2022-01-14T03:05:37.000Z | from adafruit_circuitplayground.express import cpx
import time
cpx.pixels[0] = (255, 0, 0) # set first NeoPixel to the color red
time.sleep(60)
| 24.333333 | 66 | 0.760274 | 24 | 146 | 4.583333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.150685 | 146 | 5 | 67 | 29.2 | 0.822581 | 0.239726 | 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 |
1fee2856824566a14f9ae73ddaff2a5b420925e3 | 292 | py | Python | Develop/subgroup2_dev/movies/models.py | Youhoseong/MovieProject | c8649872a364e2e2ea1a58d6a7431f0282f8e90c | [
"MIT"
] | 11 | 2021-03-24T13:20:22.000Z | 2021-08-22T15:43:04.000Z | Develop/subgroup2_dev/movies/models.py | Youhoseong/MovieProject | c8649872a364e2e2ea1a58d6a7431f0282f8e90c | [
"MIT"
] | null | null | null | Develop/subgroup2_dev/movies/models.py | Youhoseong/MovieProject | c8649872a364e2e2ea1a58d6a7431f0282f8e90c | [
"MIT"
] | 5 | 2021-03-24T13:24:44.000Z | 2021-07-14T07:05:23.000Z | from django.db import models
# Create your models here.
class MovieModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=40)
director = models.CharField(max_length=10)
keyword = models.CharField(max_length=10, blank=True)
| 32.444444 | 57 | 0.760274 | 40 | 292 | 5.425 | 0.65 | 0.207373 | 0.248848 | 0.331797 | 0.239631 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023904 | 0.140411 | 292 | 8 | 58 | 36.5 | 0.840637 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95115c55742951f6619420d087b50875cdf6c2fb | 98 | py | Python | pinax/announcements/__init__.py | craigds/pinax-announcements | ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab | [
"MIT"
] | 34 | 2016-03-29T22:09:16.000Z | 2022-03-22T11:15:23.000Z | pinax/announcements/__init__.py | craigds/pinax-announcements | ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab | [
"MIT"
] | 33 | 2016-02-20T19:36:40.000Z | 2021-12-14T15:49:55.000Z | pinax/announcements/__init__.py | craigds/pinax-announcements | ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab | [
"MIT"
] | 19 | 2016-02-29T18:32:30.000Z | 2022-03-28T21:15:15.000Z | import pkg_resources
__version__ = pkg_resources.get_distribution("pinax-announcements").version
| 24.5 | 75 | 0.857143 | 11 | 98 | 7 | 0.727273 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 98 | 3 | 76 | 32.666667 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 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 |
951502fbac537a4fd850b103c4f02db7d42e1a04 | 143 | py | Python | tutorials/W0D4_Calculus/solutions/W0D4_Tutorial3_Solution_df2aee4c.py | eduardojdiniz/CompNeuro | 20269e66540dc4e802273735c97323020ee37406 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 2,294 | 2020-05-11T12:05:35.000Z | 2022-03-28T21:23:34.000Z | tutorials/W0D4_Calculus/solutions/W0D4_Tutorial3_Solution_df2aee4c.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 629 | 2020-05-11T15:42:26.000Z | 2022-03-29T12:23:35.000Z | tutorials/W0D4_Calculus/solutions/W0D4_Tutorial3_Solution_df2aee4c.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 917 | 2020-05-11T12:47:53.000Z | 2022-03-31T12:14:41.000Z |
"""
1. The oscillations start getting larger and larger which could in the end become uncontrollable
2. Looking at the shape of the spiral
""" | 28.6 | 96 | 0.769231 | 23 | 143 | 4.782609 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.174825 | 143 | 5 | 97 | 28.6 | 0.915254 | 0.937063 | 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 |
1f0a23214938f80e2d254e96cf2d703174835d54 | 1,131 | py | Python | agsearch/interfaces.py | D-K-E/agsearch-python | 40ced806e579c470581c71b22fe762bedf8b4027 | [
"MIT"
] | null | null | null | agsearch/interfaces.py | D-K-E/agsearch-python | 40ced806e579c470581c71b22fe762bedf8b4027 | [
"MIT"
] | null | null | null | agsearch/interfaces.py | D-K-E/agsearch-python | 40ced806e579c470581c71b22fe762bedf8b4027 | [
"MIT"
] | null | null | null | """!
Abstract objects to be used as interfaces
"""
from abc import ABC, abstractmethod
class AbstractPreprocessor(ABC):
"""!
"""
@abstractmethod
def clean_text(self, text: str):
"""!
Clean text
"""
raise NotImplementedError
@abstractmethod
def read_text(self, ... | 19.842105 | 54 | 0.605659 | 101 | 1,131 | 6.673267 | 0.336634 | 0.20178 | 0.280415 | 0.364985 | 0.480712 | 0.480712 | 0.356083 | 0.356083 | 0.356083 | 0 | 0 | 0 | 0.297966 | 1,131 | 56 | 55 | 20.196429 | 0.848867 | 0.061892 | 0 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0 | 0.323529 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1f62fc72d762a65a66eea10a32ea0312c7d49800 | 426 | py | Python | Chatbot_CN/view.py | guci314/Chatbot_CN | 02044eed4a141aa8c61d6064c166f95dbdae894c | [
"Apache-2.0"
] | 8 | 2019-08-12T12:38:35.000Z | 2022-02-21T03:25:04.000Z | Chatbot_CN/view.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | null | null | null | Chatbot_CN/view.py | JianboTang/Chatbot_CN | a0f7194252a189f8bc2b62fd16eb2abe432c0bf9 | [
"Apache-2.0"
] | 5 | 2020-01-08T15:30:38.000Z | 2022-02-15T02:39:46.000Z | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: view
Description :
Author : charl
date: 2018/8/1
-------------------------------------------------
Change Activity:
2018/8/1:
-------------------------------------------------
"... | 23.666667 | 49 | 0.361502 | 30 | 426 | 5.133333 | 0.833333 | 0.064935 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03869 | 0.211268 | 426 | 18 | 50 | 23.666667 | 0.419643 | 0.732394 | 0 | 0 | 0 | 0 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
1f701a629ff28e4a726fb7607af4e9689b2b410b | 99 | py | Python | ims_summary/utils.py | andy-d-palmer/ims_summary | 3f4cb3a9e82171dc040b1c1da4302529711007f7 | [
"MIT"
] | null | null | null | ims_summary/utils.py | andy-d-palmer/ims_summary | 3f4cb3a9e82171dc040b1c1da4302529711007f7 | [
"MIT"
] | null | null | null | ims_summary/utils.py | andy-d-palmer/ims_summary | 3f4cb3a9e82171dc040b1c1da4302529711007f7 | [
"MIT"
] | null | null | null | def read_config(filename):
import json
config = json.load(open(filename))
return config | 24.75 | 38 | 0.707071 | 13 | 99 | 5.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 99 | 4 | 39 | 24.75 | 0.873418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1f779419d282bc4ad8061db29beb7767a3233e04 | 413 | py | Python | release/src-rt-6.x.4708/router/samba3/lib/testtools/testtools/testresult/__init__.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2019-01-13T09:19:10.000Z | 2019-02-15T01:21:02.000Z | release/src-rt-6.x.4708/router/samba3/lib/testtools/testtools/testresult/__init__.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | null | null | null | release/src-rt-6.x.4708/router/samba3/lib/testtools/testtools/testresult/__init__.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2020-03-08T01:58:25.000Z | 2020-12-20T10:34:54.000Z | # Copyright (c) 2009 Jonathan M. Lange. See LICENSE for details.
"""Test result objects."""
__all__ = [
'ExtendedToOriginalDecorator',
'MultiTestResult',
'TestResult',
'TextTestResult',
'ThreadsafeForwardingResult',
]
from testtools.testresult.real import (
ExtendedToOriginalDecorator,
... | 20.65 | 64 | 0.699758 | 29 | 413 | 9.827586 | 0.793103 | 0.294737 | 0.364912 | 0.463158 | 0.645614 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.20339 | 413 | 19 | 65 | 21.736842 | 0.854103 | 0.20339 | 0 | 0 | 0 | 0 | 0.28483 | 0.164087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1f8051f85214d62cb0800312cf1d6b252054eed5 | 60 | py | Python | src/ap_rss_reader/__main__.py | fossabot/ap-rss-reader | d1909120994390c74066dfbbd5a45055b4c97d8a | [
"MIT"
] | null | null | null | src/ap_rss_reader/__main__.py | fossabot/ap-rss-reader | d1909120994390c74066dfbbd5a45055b4c97d8a | [
"MIT"
] | null | null | null | src/ap_rss_reader/__main__.py | fossabot/ap-rss-reader | d1909120994390c74066dfbbd5a45055b4c97d8a | [
"MIT"
] | null | null | null | """Execute AP RSS-reader."""
from . import cli
cli.main()
| 10 | 28 | 0.633333 | 9 | 60 | 4.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 60 | 5 | 29 | 12 | 0.76 | 0.366667 | 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 |
1f961300f9eb79a0464f4bd8d7fe4a94689b0180 | 415 | py | Python | trainer/base_trainer.py | marsggbo/CovidNet3D | 0aeca91a775f938a0e568dd88d8162473dacf3ce | [
"MIT"
] | 5 | 2021-02-23T06:43:31.000Z | 2021-07-05T15:24:05.000Z | trainer/base_trainer.py | etherx-dev/CovidNet3D | b107d7d965cad07f1890ee492857273f3468cc01 | [
"MIT"
] | 1 | 2021-06-08T21:06:10.000Z | 2021-06-08T21:06:10.000Z | trainer/base_trainer.py | etherx-dev/CovidNet3D | b107d7d965cad07f1890ee492857273f3468cc01 | [
"MIT"
] | 4 | 2021-02-01T03:29:16.000Z | 2021-08-05T09:13:37.000Z | from abc import ABC, abstractmethod
__all__ = [
'BaseTrainer',
]
class BaseTrainer(ABC):
@abstractmethod
def train(self):
raise NotImplementedError
@abstractmethod
def validate(self):
raise NotImplementedError
@abstractmethod
def export(self, file):
raise NotImpl... | 16.6 | 35 | 0.674699 | 35 | 415 | 7.885714 | 0.457143 | 0.246377 | 0.304348 | 0.445652 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260241 | 415 | 24 | 36 | 17.291667 | 0.899023 | 0 | 0 | 0.470588 | 0 | 0 | 0.02657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2f096b96703bbe9d5c248fab4dca6f63450cbc4a | 140 | py | Python | vim/templates/python_header.py | hwp/myrc | 942460c6cce0810050ae4cb70106a0a98a30353e | [
"MIT"
] | null | null | null | vim/templates/python_header.py | hwp/myrc | 942460c6cce0810050ae4cb70106a0a98a30353e | [
"MIT"
] | null | null | null | vim/templates/python_header.py | hwp/myrc | 942460c6cce0810050ae4cb70106a0a98a30353e | [
"MIT"
] | null | null | null | """
<+$FILENAME$+>
Copyright (c) <+$YEAR$+> Idiap Research Institute, http://www.idiap.ch/
Written by Weipeng He <weipeng.he@idiap.ch>
"""
| 20 | 71 | 0.657143 | 19 | 140 | 4.842105 | 0.736842 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 140 | 6 | 72 | 23.333333 | 0.741935 | 0.935714 | 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 |
2f1491de0e6f5dcbaebe0aad7ab60997d9b491c9 | 2,688 | py | Python | rl/preprocessor/linear.py | AsimKhan2019/OpenAI-Lab | d0669d89268f2dc01c1cf878e4879775c7b6eb3c | [
"MIT"
] | 340 | 2017-02-21T02:32:39.000Z | 2021-12-20T00:47:18.000Z | rl/preprocessor/linear.py | AsimKhan2019/OpenAI-Lab | d0669d89268f2dc01c1cf878e4879775c7b6eb3c | [
"MIT"
] | 14 | 2017-02-15T19:46:36.000Z | 2018-12-15T23:42:21.000Z | rl/preprocessor/linear.py | AsimKhan2019/OpenAI-Lab | d0669d89268f2dc01c1cf878e4879775c7b6eb3c | [
"MIT"
] | 72 | 2017-02-21T05:16:00.000Z | 2021-12-06T03:34:57.000Z | import numpy as np
from rl.preprocessor.base_preprocessor import PreProcessor
class NoPreProcessor(PreProcessor):
'''
Default class, no preprocessing
'''
def __init__(self, **kwargs): # absorb generic param without breaking):
super(NoPreProcessor, self).__init__()
def preprocess_state(... | 35.84 | 79 | 0.68564 | 323 | 2,688 | 5.399381 | 0.198142 | 0.09289 | 0.08945 | 0.120413 | 0.720183 | 0.720183 | 0.711583 | 0.688073 | 0.688073 | 0.666284 | 0 | 0.002383 | 0.219494 | 2,688 | 74 | 80 | 36.324324 | 0.828885 | 0.153274 | 0 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.045455 | 0.022727 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2f3ae0eb71d6fafe65d1a781e798de2b25d674a5 | 108 | py | Python | code/python/newmaze.py | Codernob/problem-solving-codes | c852bae4e31887bd442d70af921348c8f1d246bf | [
"MIT"
] | null | null | null | code/python/newmaze.py | Codernob/problem-solving-codes | c852bae4e31887bd442d70af921348c8f1d246bf | [
"MIT"
] | null | null | null | code/python/newmaze.py | Codernob/problem-solving-codes | c852bae4e31887bd442d70af921348c8f1d246bf | [
"MIT"
] | null | null | null | def fun(n):
if n%2==0:
return '.'
return '*'
l=[[fun(j) for j in range(5)] for i in range(5)]
print(l) | 13.5 | 48 | 0.546296 | 24 | 108 | 2.458333 | 0.625 | 0.237288 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.212963 | 108 | 8 | 49 | 13.5 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 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 |
2f45555903ac2262d4e32c34e3fa499bb1d50d67 | 101 | py | Python | apps.py | marshaleaton/component-test | df40f7e73214007f2b2b9faeb75f5c3d9dbb1f03 | [
"MIT"
] | null | null | null | apps.py | marshaleaton/component-test | df40f7e73214007f2b2b9faeb75f5c3d9dbb1f03 | [
"MIT"
] | null | null | null | apps.py | marshaleaton/component-test | df40f7e73214007f2b2b9faeb75f5c3d9dbb1f03 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ComponenttestConfig(AppConfig):
name = 'ComponentTest'
| 16.833333 | 37 | 0.782178 | 10 | 101 | 7.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 38 | 20.2 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 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 |
2f4a9b1abe886f688ab087cb2d398ad2c966b3c7 | 2,929 | py | Python | test/test_custom_speech_endpoints_api.py | networthdata/generated-swagger-client | 41dd3fb02b322ed1d39cbaef6b4091ae6cab0d0b | [
"MIT"
] | null | null | null | test/test_custom_speech_endpoints_api.py | networthdata/generated-swagger-client | 41dd3fb02b322ed1d39cbaef6b4091ae6cab0d0b | [
"MIT"
] | null | null | null | test/test_custom_speech_endpoints_api.py | networthdata/generated-swagger-client | 41dd3fb02b322ed1d39cbaef6b4091ae6cab0d0b | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Speech Services API v2.0
Speech Services API v2.0. # noqa: E501
OpenAPI spec version: v2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.custom_spe... | 26.151786 | 130 | 0.663708 | 363 | 2,929 | 5.134986 | 0.23416 | 0.060086 | 0.064914 | 0.088519 | 0.559549 | 0.463519 | 0.370172 | 0.217811 | 0.209227 | 0.209227 | 0 | 0.022897 | 0.269375 | 2,929 | 111 | 131 | 26.387387 | 0.848131 | 0.498122 | 0 | 0.352941 | 1 | 0 | 0.006706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.382353 | false | 0.352941 | 0.147059 | 0 | 0.558824 | 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 |
85cba7698f94eed4adb5abff07aa9b4eb32f5992 | 166 | py | Python | Python 3 - Curso completo/exercicio006.py | PedroMunizdeMatos/Estudos-e-Projetos | 5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc | [
"MIT"
] | null | null | null | Python 3 - Curso completo/exercicio006.py | PedroMunizdeMatos/Estudos-e-Projetos | 5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc | [
"MIT"
] | null | null | null | Python 3 - Curso completo/exercicio006.py | PedroMunizdeMatos/Estudos-e-Projetos | 5949c1f2a80100c1e2db56c7b60f5f0475c0d1dc | [
"MIT"
] | null | null | null | n = int(input('Digite o valor em metros que deseja converter para centímetros e milímetros: '))
print('{}m são equivalentes a {}cm e {}mm.'.format(n, n*100, n*1000))
| 55.333333 | 95 | 0.698795 | 29 | 166 | 4 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.144578 | 166 | 2 | 96 | 83 | 0.767606 | 0 | 0 | 0 | 0 | 0 | 0.674699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
85d132a5d87c8b6e3ffe8b54d57ec5a4faea2045 | 70 | py | Python | addons/googledrive/__init__.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | addons/googledrive/__init__.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | addons/googledrive/__init__.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | default_app_config = 'addons.googledrive.apps.GoogleDriveAddonConfig'
| 35 | 69 | 0.871429 | 7 | 70 | 8.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 70 | 1 | 70 | 70 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0.657143 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
85d47c5de6250200669152bc34f44cb71c9d0b5b | 95 | py | Python | django_starwidget/starwidget/apps.py | FabianWe/django-starwidget | 8a5fe1cab9bbf13424c3104129f800d8c064eeab | [
"Apache-2.0"
] | null | null | null | django_starwidget/starwidget/apps.py | FabianWe/django-starwidget | 8a5fe1cab9bbf13424c3104129f800d8c064eeab | [
"Apache-2.0"
] | null | null | null | django_starwidget/starwidget/apps.py | FabianWe/django-starwidget | 8a5fe1cab9bbf13424c3104129f800d8c064eeab | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class StarwidgetConfig(AppConfig):
name = 'starwidget'
| 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 |
85d9927e267584f36936716eff1cb2451fb44c65 | 95 | py | Python | demography/apps.py | The-Politico/politico-civic-demography | 080bb964b64b06db7fd04386530e893ceed1cf98 | [
"MIT"
] | null | null | null | demography/apps.py | The-Politico/politico-civic-demography | 080bb964b64b06db7fd04386530e893ceed1cf98 | [
"MIT"
] | null | null | null | demography/apps.py | The-Politico/politico-civic-demography | 080bb964b64b06db7fd04386530e893ceed1cf98 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DemographyConfig(AppConfig):
name = 'demography'
| 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 |
85fe544e695746d88b07fbaa67e520c7e2e39320 | 71 | py | Python | app/user/__init__.py | b1ackmatrix/py_func2webapi | c26d4dc1615a089d0ac1d5e1f28165e3857ddd4b | [
"Apache-2.0"
] | 2 | 2017-06-29T10:57:38.000Z | 2019-07-17T07:56:55.000Z | app/user/__init__.py | blackmatrix7/func2webapi | c26d4dc1615a089d0ac1d5e1f28165e3857ddd4b | [
"Apache-2.0"
] | null | null | null | app/user/__init__.py | blackmatrix7/func2webapi | c26d4dc1615a089d0ac1d5e1f28165e3857ddd4b | [
"Apache-2.0"
] | 1 | 2020-11-18T05:44:04.000Z | 2020-11-18T05:44:04.000Z | from flask import Blueprint
# 蓝图注册
user = Blueprint('user', __name__)
| 14.2 | 34 | 0.746479 | 9 | 71 | 5.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 71 | 4 | 35 | 17.75 | 0.816667 | 0.056338 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
c83dad210f810e5716eb3516c522e9543a303163 | 22 | py | Python | truechecker/utils/__init__.py | TrueWebApp/TrueCheckerPyton | 662d74491d5ee00ec14de4197d5ac3d239175a67 | [
"MIT"
] | null | null | null | truechecker/utils/__init__.py | TrueWebApp/TrueCheckerPyton | 662d74491d5ee00ec14de4197d5ac3d239175a67 | [
"MIT"
] | null | null | null | truechecker/utils/__init__.py | TrueWebApp/TrueCheckerPyton | 662d74491d5ee00ec14de4197d5ac3d239175a67 | [
"MIT"
] | null | null | null | """Handy snippets."""
| 11 | 21 | 0.590909 | 2 | 22 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 22 | 1 | 22 | 22 | 0.65 | 0.681818 | 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 |
c84a5be9a86263c894ac45a18df6b247e19b2b56 | 106 | py | Python | lyra/admin.py | hylje/Lyra | 2a2e71ceb800fded0a60120fbc2bd7bfd9d8c999 | [
"BSD-3-Clause"
] | 1 | 2017-12-12T13:02:27.000Z | 2017-12-12T13:02:27.000Z | lyra/admin.py | hylje/Lyra | 2a2e71ceb800fded0a60120fbc2bd7bfd9d8c999 | [
"BSD-3-Clause"
] | null | null | null | lyra/admin.py | hylje/Lyra | 2a2e71ceb800fded0a60120fbc2bd7bfd9d8c999 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from lyra import models
admin.site.register(models.Reservation)
| 15.142857 | 40 | 0.773585 | 14 | 106 | 5.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 106 | 6 | 41 | 17.666667 | 0.931818 | 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 |
c84be56b8da546c04a2f975231c392c7522f33fe | 125 | py | Python | pythonexamples.py | vkmbs/vjgunner | 28b3233804fdfa4839593a3cdbeacfdcad2c0725 | [
"MIT"
] | null | null | null | pythonexamples.py | vkmbs/vjgunner | 28b3233804fdfa4839593a3cdbeacfdcad2c0725 | [
"MIT"
] | null | null | null | pythonexamples.py | vkmbs/vjgunner | 28b3233804fdfa4839593a3cdbeacfdcad2c0725 | [
"MIT"
] | null | null | null | count=0
while count<5 :
print(count, "is less than 5")
count= count +1
else :
print(count, "is greater than 5")
| 15.625 | 37 | 0.616 | 21 | 125 | 3.666667 | 0.52381 | 0.25974 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053763 | 0.256 | 125 | 7 | 38 | 17.857143 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
c08f293f11cdaf442e1784839206021e6acbd71b | 241 | py | Python | data-pipeline/bcreg/create.py | esune/von-bc-registries-agent | 712008543e579eee46be23c418f2eeb41626bfcd | [
"Apache-2.0"
] | 1 | 2019-09-06T07:40:15.000Z | 2019-09-06T07:40:15.000Z | data-pipeline/bcreg/create.py | esune/von-bc-registries-agent | 712008543e579eee46be23c418f2eeb41626bfcd | [
"Apache-2.0"
] | null | null | null | data-pipeline/bcreg/create.py | esune/von-bc-registries-agent | 712008543e579eee46be23c418f2eeb41626bfcd | [
"Apache-2.0"
] | 1 | 2019-06-12T13:47:22.000Z | 2019-06-12T13:47:22.000Z | #!/usr/bin/python
import psycopg2
from bcreg.config import config
from bcreg.eventprocessor import EventProcessor
with EventProcessor() as event_processor:
event_processor.create_tables()
print("Created event processor tables")
| 21.909091 | 47 | 0.792531 | 29 | 241 | 6.482759 | 0.586207 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.136929 | 241 | 10 | 48 | 24.1 | 0.899038 | 0.06639 | 0 | 0 | 0 | 0 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.166667 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2384c89d87084b76f6bc4f160b97a8bb9849e193 | 287 | py | Python | alvinchow_backend/utils/string.py | alvinchow86/python-backend-template | 46c07d733d68bc8682afd8510a17bc2aa360c606 | [
"MIT"
] | 6 | 2021-01-07T00:20:49.000Z | 2022-01-13T04:53:12.000Z | alvinchow_backend/utils/string.py | alvinchow86/python-backend-template | 46c07d733d68bc8682afd8510a17bc2aa360c606 | [
"MIT"
] | 4 | 2021-01-06T22:07:43.000Z | 2021-06-02T01:52:41.000Z | alvinchow_backend/utils/string.py | alvinchow86/python-backend-template | 46c07d733d68bc8682afd8510a17bc2aa360c606 | [
"MIT"
] | 1 | 2021-11-09T07:46:44.000Z | 2021-11-09T07:46:44.000Z | import re
import random
import string
alphabet = string.ascii_letters + string.digits
def random_string(num_chars=16):
return ''.join(random.choice(alphabet) for i in range(num_chars))
def camel_to_snake_case(string):
return re.sub(r'(?<!^)(?=[A-Z])', '_', string).lower()
| 19.133333 | 69 | 0.703833 | 43 | 287 | 4.511628 | 0.651163 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.135889 | 287 | 14 | 70 | 20.5 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.055749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
23c18db85d590b0f1f918e07a5dbdda1fb368961 | 80 | py | Python | venv/Lib/site-packages/git/repo/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 3,132 | 2015-01-05T10:14:54.000Z | 2022-03-31T07:14:10.000Z | venv/Lib/site-packages/git/repo/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 1,111 | 2015-01-01T10:03:40.000Z | 2022-03-28T23:43:54.000Z | venv/Lib/site-packages/git/repo/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 821 | 2015-01-02T13:55:46.000Z | 2022-03-31T19:08:01.000Z | """Initialize the Repo package"""
# flake8: noqa
from .base import Repo as Repo
| 20 | 33 | 0.725 | 12 | 80 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.1625 | 80 | 3 | 34 | 26.666667 | 0.850746 | 0.5125 | 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 |
23c8762e9bd1f0e16da1d4948149683d91ce4339 | 300 | py | Python | googleapis/services.py | andruoctavian/hackitall | af6f0b1ed7396e932927786940124145f9a20e61 | [
"MIT"
] | null | null | null | googleapis/services.py | andruoctavian/hackitall | af6f0b1ed7396e932927786940124145f9a20e61 | [
"MIT"
] | null | null | null | googleapis/services.py | andruoctavian/hackitall | af6f0b1ed7396e932927786940124145f9a20e61 | [
"MIT"
] | null | null | null |
def adapt_routes_object(object):
lat_north = object['routes'][0]['bounds']['northeast']['lat']
long_east = object['routes'][0]['bounds']['northeast']['long']
lat_south = object['routes'][0]['bounds']['southwest']['lat']
long_west = object['routes'][0]['bounds']['southwest']['long']
| 42.857143 | 66 | 0.633333 | 37 | 300 | 4.972973 | 0.378378 | 0.26087 | 0.282609 | 0.413043 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01487 | 0.103333 | 300 | 6 | 67 | 50 | 0.669145 | 0 | 0 | 0 | 0 | 0 | 0.327759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9b0aa4b74c4c9256e9b07318434a023242c22674 | 747 | py | Python | eqpy/tests/test_nums.py | eriknw/eqpy | e7b898194cdd5b27d614ba49ff90e8c15a8e6a26 | [
"BSD-3-Clause"
] | 5 | 2015-02-01T21:42:36.000Z | 2017-03-06T15:58:50.000Z | eqpy/tests/test_nums.py | eriknw/eqpy | e7b898194cdd5b27d614ba49ff90e8c15a8e6a26 | [
"BSD-3-Clause"
] | null | null | null | eqpy/tests/test_nums.py | eriknw/eqpy | e7b898194cdd5b27d614ba49ff90e8c15a8e6a26 | [
"BSD-3-Clause"
] | 3 | 2015-04-10T18:07:55.000Z | 2021-02-19T21:31:22.000Z | import eqpy
import sympy
from eqpy._utils import raises
def test_constants():
assert eqpy.nums.Catalan is sympy.Catalan
assert eqpy.nums.E is sympy.E
assert eqpy.nums.EulerGamma is sympy.EulerGamma
assert eqpy.nums.GoldenRatio is sympy.GoldenRatio
assert eqpy.nums.I is sympy.I
assert eqpy.nums... | 26.678571 | 65 | 0.692102 | 124 | 747 | 4.072581 | 0.25 | 0.237624 | 0.332673 | 0.071287 | 0.146535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0.184739 | 747 | 27 | 66 | 27.666667 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.03079 | 0 | 0 | 0 | 0 | 0 | 0.619048 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9b209e80b1143a388429ceca38c109797930e72c | 362 | py | Python | exercises/exercise05.py | surajwate/57-python-exercises | 3b47c096266fec114300b9340cd852088a00d56e | [
"MIT"
] | null | null | null | exercises/exercise05.py | surajwate/57-python-exercises | 3b47c096266fec114300b9340cd852088a00d56e | [
"MIT"
] | 1 | 2021-07-06T17:34:59.000Z | 2021-07-06T17:34:59.000Z | exercises/exercise05.py | surajwate/57-python-exercises | 3b47c096266fec114300b9340cd852088a00d56e | [
"MIT"
] | null | null | null | def simple_math(first, second):
return f"""{first} + {second} = {first + second}
{first} - {second} = {first - second}
{first} * {second} = {first * second}
{first} / {second} = {int(first / second)}"""
if __name__ == '__main__':
f = int(input('What is the first number?'))
s = int(input('What is the secon... | 30.166667 | 52 | 0.60221 | 48 | 362 | 4.333333 | 0.375 | 0.475962 | 0.461538 | 0.634615 | 0.533654 | 0.370192 | 0.370192 | 0.370192 | 0.370192 | 0.370192 | 0 | 0 | 0.19337 | 362 | 11 | 53 | 32.909091 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0.593923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0.111111 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
f1a034c623bc0ee37a86ee15f9d8dcdf3a00cb0d | 99 | py | Python | simpleskyapp/apps.py | fterh/simplesky | 43016b9dce86f932692f7118cde0a59a93d18120 | [
"MIT"
] | null | null | null | simpleskyapp/apps.py | fterh/simplesky | 43016b9dce86f932692f7118cde0a59a93d18120 | [
"MIT"
] | 3 | 2020-02-11T23:28:37.000Z | 2021-06-10T18:50:31.000Z | simpleskyapp/apps.py | fterh/simplesky | 43016b9dce86f932692f7118cde0a59a93d18120 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SimpleskyappConfig(AppConfig):
name = 'simpleskyapp'
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 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 |
f1bc310646378092b6cd5e632a1968e5c70cf3ec | 313 | py | Python | strawberry/asgi/handlers/__init__.py | TheVinhLuong102/Strawberry | 3c442dc19d17bc55c4e26de1db7a9eedc0a228f5 | [
"MIT"
] | 2,062 | 2019-04-07T17:47:30.000Z | 2022-03-31T01:54:16.000Z | strawberry/asgi/handlers/__init__.py | TheVinhLuong102/Strawberry | 3c442dc19d17bc55c4e26de1db7a9eedc0a228f5 | [
"MIT"
] | 1,582 | 2019-04-07T18:31:33.000Z | 2022-03-31T18:32:13.000Z | strawberry/asgi/handlers/__init__.py | TheVinhLuong102/Strawberry | 3c442dc19d17bc55c4e26de1db7a9eedc0a228f5 | [
"MIT"
] | 303 | 2019-04-13T08:44:40.000Z | 2022-03-29T09:54:41.000Z | from strawberry.asgi.handlers.graphql_transport_ws_handler import (
GraphQLTransportWSHandler,
)
from strawberry.asgi.handlers.graphql_ws_handler import GraphQLWSHandler
from strawberry.asgi.handlers.http_handler import HTTPHandler
__all__ = ["GraphQLTransportWSHandler", "GraphQLWSHandler", "HTTPHandler"]
| 34.777778 | 74 | 0.846645 | 31 | 313 | 8.225806 | 0.451613 | 0.164706 | 0.211765 | 0.305882 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079872 | 313 | 8 | 75 | 39.125 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.166134 | 0.079872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f1c9c8446803c29992d5745d8e1bf245e372ddfe | 12,496 | py | Python | src/dcm/agent/tests/unit/test_persist.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | null | null | null | src/dcm/agent/tests/unit/test_persist.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | 22 | 2015-09-15T20:52:34.000Z | 2016-03-11T22:44:24.000Z | src/dcm/agent/tests/unit/test_persist.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | 3 | 2015-09-11T20:21:33.000Z | 2016-09-30T08:30:19.000Z | #
# Copyright (C) 2014 Dell, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 34.424242 | 79 | 0.645407 | 1,643 | 12,496 | 4.653074 | 0.118077 | 0.082407 | 0.075343 | 0.040288 | 0.762982 | 0.731982 | 0.713669 | 0.690517 | 0.663963 | 0.6569 | 0 | 0.014351 | 0.247199 | 12,496 | 362 | 80 | 34.519337 | 0.798342 | 0.044094 | 0 | 0.703971 | 0 | 0 | 0.034121 | 0 | 0 | 0 | 0 | 0 | 0.176895 | 1 | 0.108303 | false | 0.01083 | 0.039711 | 0 | 0.158845 | 0.01444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f1f43602917bee384d940d4b3736ba61c0fbdb68 | 200 | py | Python | backoffice_extensions/apps.py | saruba/django-backoffice-extensions | 107cf92d4152587bfc471fc742baf7c3b5e616a5 | [
"MIT"
] | 8 | 2020-06-30T13:42:57.000Z | 2021-04-28T23:54:00.000Z | backoffice_extensions/apps.py | saruba/django-backoffice-extensions | 107cf92d4152587bfc471fc742baf7c3b5e616a5 | [
"MIT"
] | 2 | 2020-12-15T15:16:47.000Z | 2021-04-28T08:07:43.000Z | backoffice_extensions/apps.py | saruba/django-backoffice-extensions | 107cf92d4152587bfc471fc742baf7c3b5e616a5 | [
"MIT"
] | 4 | 2020-07-10T16:22:21.000Z | 2020-08-18T15:54:36.000Z | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class BackofficeAppConfig(AppConfig):
name = "backoffice_extensions"
verbose_name = _("Backoffice")
| 22.222222 | 54 | 0.785 | 22 | 200 | 6.909091 | 0.727273 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145 | 200 | 8 | 55 | 25 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.155 | 0.105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7b00dd9a7f0e60feeda91572a091792ded2ced90 | 1,246 | py | Python | azure-iot-common/setup.py | olivakar/azure-iot-sdk-python-preview | 636855716a362bad1623983026666b5f91c22825 | [
"MIT"
] | null | null | null | azure-iot-common/setup.py | olivakar/azure-iot-sdk-python-preview | 636855716a362bad1623983026666b5f91c22825 | [
"MIT"
] | null | null | null | azure-iot-common/setup.py | olivakar/azure-iot-sdk-python-preview | 636855716a362bad1623983026666b5f91c22825 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 40.193548 | 94 | 0.535313 | 112 | 1,246 | 5.928571 | 0.553571 | 0.228916 | 0.301205 | 0.195783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.203852 | 1,246 | 30 | 95 | 41.533333 | 0.653226 | 0.269663 | 0 | 0 | 0 | 0 | 0.583425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b07e55659c99210f9f6612db592f67e5c87217e | 197 | py | Python | src/core/python/core/solver/impl/xpress_interface.py | railtoolkit/OpenLinTim | 27eba8b6038946ce162e9f7bbc0bd23045029d51 | [
"MIT"
] | null | null | null | src/core/python/core/solver/impl/xpress_interface.py | railtoolkit/OpenLinTim | 27eba8b6038946ce162e9f7bbc0bd23045029d51 | [
"MIT"
] | null | null | null | src/core/python/core/solver/impl/xpress_interface.py | railtoolkit/OpenLinTim | 27eba8b6038946ce162e9f7bbc0bd23045029d51 | [
"MIT"
] | null | null | null | from core.solver.generic_solver_interface import Solver
class XpressSolver(Solver):
def __init__(self):
raise NotImplementedError("Xpress is not yet implemented in the python core")
| 24.625 | 85 | 0.771574 | 25 | 197 | 5.84 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167513 | 197 | 7 | 86 | 28.142857 | 0.890244 | 0 | 0 | 0 | 0 | 0 | 0.243655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7b0b3ca731c1c8f570cc4a11e2996b711c3ceaa2 | 174 | py | Python | serverctl_deployd/models/exceptions.py | delta/serverctl_daemon | 3999539da01715affc8a3471d860294184756e6f | [
"MIT"
] | 2 | 2021-09-18T15:30:33.000Z | 2021-12-23T01:50:19.000Z | serverctl_deployd/models/exceptions.py | delta/serverctl_daemon | 3999539da01715affc8a3471d860294184756e6f | [
"MIT"
] | 54 | 2021-09-18T12:22:38.000Z | 2022-03-30T13:25:17.000Z | serverctl_deployd/models/exceptions.py | delta/serverctl_deployd | 3999539da01715affc8a3471d860294184756e6f | [
"MIT"
] | null | null | null | """
Models for general exception responses
"""
from pydantic import BaseModel
class GenericError(BaseModel):
"""Model for generic error with detail"""
detail: str
| 15.818182 | 45 | 0.724138 | 20 | 174 | 6.3 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 174 | 10 | 46 | 17.4 | 0.887324 | 0.425287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9e287c9d2e617175895c4b219e16469e17aa03f5 | 117 | py | Python | modular_provider_architecture_definition/__init__.py | Incognito/python-architecture-linter | 534e1508aaa46920b31601f8fffbb0f132844883 | [
"MIT"
] | 5 | 2021-06-30T09:33:09.000Z | 2021-08-18T12:20:32.000Z | modular_provider_architecture_definition/__init__.py | Incognito/python-architecture-linter | 534e1508aaa46920b31601f8fffbb0f132844883 | [
"MIT"
] | 45 | 2021-06-27T10:35:43.000Z | 2022-03-28T04:09:05.000Z | modular_provider_architecture_definition/__init__.py | Incognito/python-architecture-linter | 534e1508aaa46920b31601f8fffbb0f132844883 | [
"MIT"
] | 1 | 2021-07-04T15:48:00.000Z | 2021-07-04T15:48:00.000Z | from modular_provider_architecture_definition.definition import project_definition
__all__ = ["project_definition"]
| 29.25 | 82 | 0.880342 | 12 | 117 | 7.833333 | 0.666667 | 0.361702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 117 | 3 | 83 | 39 | 0.862385 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 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 |
9e2a8c68f4380594c921340ba4fb31118f238681 | 170 | py | Python | 7-Math Functions.py | Ahm3d-Salama/Python-apps | fce528ed62ae76cbd856af05209ffc28dac38480 | [
"MIT"
] | 2 | 2021-06-08T17:41:30.000Z | 2022-01-13T10:44:23.000Z | 7-Math Functions.py | Ahm3d-Salama/Python-apps | fce528ed62ae76cbd856af05209ffc28dac38480 | [
"MIT"
] | null | null | null | 7-Math Functions.py | Ahm3d-Salama/Python-apps | fce528ed62ae76cbd856af05209ffc28dac38480 | [
"MIT"
] | null | null | null | # import module
import math
x = 2.9
print(round(x))
print(abs(-2.9))
print(math.ceil(2.9))
print(math.floor(2.9)) # todo check python 3 math modules
| 11.333333 | 58 | 0.611765 | 30 | 170 | 3.466667 | 0.533333 | 0.076923 | 0.201923 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069231 | 0.235294 | 170 | 14 | 59 | 12.142857 | 0.730769 | 0.270588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9e3c0678853ffacd20183ff7c26783c806af964c | 166 | py | Python | evenOdd.py | musaibnazir/MixedPy | b2911f06e2f99aba9fb5b6fa802471710196ba4b | [
"MIT"
] | null | null | null | evenOdd.py | musaibnazir/MixedPy | b2911f06e2f99aba9fb5b6fa802471710196ba4b | [
"MIT"
] | null | null | null | evenOdd.py | musaibnazir/MixedPy | b2911f06e2f99aba9fb5b6fa802471710196ba4b | [
"MIT"
] | null | null | null | print("Welcome To even / odd Check: ")
num = int(input("Enter Number: "))
if num % 2 != 0:
print("This is Odd Number")
else:
print("This is an Even Number")
| 20.75 | 38 | 0.614458 | 27 | 166 | 3.777778 | 0.666667 | 0.176471 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.222892 | 166 | 7 | 39 | 23.714286 | 0.775194 | 0 | 0 | 0 | 0 | 0 | 0.50303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9e5308a3e5546766ecaa99fec01fb08133985655 | 1,251 | py | Python | notebook/pandas_time_series_pct_change.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pandas_time_series_pct_change.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pandas_time_series_pct_change.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import pandas as pd
df = pd.DataFrame({'value': range(1, 16, 2)},
index=pd.date_range('2018-01-01', '2018-01-15', freq='2D'))
print(df)
# value
# 2018-01-01 1
# 2018-01-03 3
# 2018-01-05 5
# 2018-01-07 7
# 2018-01-09 9
# 2018-01-11 11
# 2018-01-13 13
# 20... | 20.85 | 77 | 0.560352 | 232 | 1,251 | 3 | 0.202586 | 0.362069 | 0.142241 | 0.093391 | 0.528736 | 0.494253 | 0.494253 | 0.494253 | 0.494253 | 0.494253 | 0 | 0.545856 | 0.276579 | 1,251 | 59 | 78 | 21.20339 | 0.223204 | 0.701839 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.625 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9e6c7700032460bedba54c0b7fc287a8cc3d15fc | 398 | py | Python | daily-problems/Day2/problem1_tests.py | jeffreycshelton/ghp-challenges | c19e6b9964818674502bb096fc87f32146af1ad0 | [
"MIT"
] | null | null | null | daily-problems/Day2/problem1_tests.py | jeffreycshelton/ghp-challenges | c19e6b9964818674502bb096fc87f32146af1ad0 | [
"MIT"
] | null | null | null | daily-problems/Day2/problem1_tests.py | jeffreycshelton/ghp-challenges | c19e6b9964818674502bb096fc87f32146af1ad0 | [
"MIT"
] | null | null | null | import unittest
from problem1 import findPoisonedDuration
class TestProblem1(unittest.TestCase):
def tests(self):
self.assertEqual(findPoisonedDuration([1,4], 2), 4)
self.assertEqual(findPoisonedDuration([1,2], 2), 3)
self.assertEqual(findPoisonedDuration([1,4,5,10], 3), 10)
self.... | 26.533333 | 72 | 0.698492 | 49 | 398 | 5.673469 | 0.530612 | 0.215827 | 0.503597 | 0.517986 | 0.266187 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092814 | 0.160804 | 398 | 14 | 73 | 28.428571 | 0.739521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9e73b6a1b1de9233c83a0e7902d41d8ba85de274 | 77 | py | Python | Artesian/_GMEPublicOffers/Config/ExtractionRangeConfig.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2022-02-21T17:03:04.000Z | 2022-02-24T17:14:02.000Z | Artesian/_GMEPublicOffers/Config/ExtractionRangeConfig.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2020-02-06T10:03:35.000Z | 2022-03-01T09:39:54.000Z | Artesian/_GMEPublicOffers/Config/ExtractionRangeConfig.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 1 | 2019-08-01T06:20:58.000Z | 2019-08-01T06:20:58.000Z | class ExtractionRangeConfig:
def __init__(self):
self.date = None | 25.666667 | 28 | 0.688312 | 8 | 77 | 6.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233766 | 77 | 3 | 29 | 25.666667 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9e7b4cbc4d1c90109304b982c28b47fddfb52032 | 100 | py | Python | bindings/pydeck/pydeck/bindings/providers.py | robinator8/deck.gl | f9a23a0fb36de452556a7a6870f1f6afe303387c | [
"MIT"
] | 2 | 2020-11-02T23:08:12.000Z | 2021-03-31T23:53:43.000Z | bindings/pydeck/pydeck/bindings/providers.py | robinator8/deck.gl | f9a23a0fb36de452556a7a6870f1f6afe303387c | [
"MIT"
] | 21 | 2019-09-17T14:10:09.000Z | 2020-10-09T15:17:49.000Z | bindings/pydeck/pydeck/bindings/providers.py | robinator8/deck.gl | f9a23a0fb36de452556a7a6870f1f6afe303387c | [
"MIT"
] | 4 | 2020-01-05T21:37:24.000Z | 2020-11-02T23:08:14.000Z | # List of base-map providers
class Providers:
MAPBOX = "mapbox"
GOOGLE_MAPS = "google_maps"
| 20 | 31 | 0.7 | 13 | 100 | 5.230769 | 0.692308 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21 | 100 | 4 | 32 | 25 | 0.860759 | 0.26 | 0 | 0 | 0 | 0 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 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 |
9eb919aedf75dbe48fcdb0969e59966283ed645e | 142 | py | Python | binance/__init__.py | lostoli/python-binance | 15a61ae1285a7ae9e2fb900b3a70c4cb206448df | [
"MIT"
] | 1 | 2019-07-12T11:13:39.000Z | 2019-07-12T11:13:39.000Z | binance/__init__.py | lostoli/python-binance | 15a61ae1285a7ae9e2fb900b3a70c4cb206448df | [
"MIT"
] | null | null | null | binance/__init__.py | lostoli/python-binance | 15a61ae1285a7ae9e2fb900b3a70c4cb206448df | [
"MIT"
] | 1 | 2018-12-06T16:15:04.000Z | 2018-12-06T16:15:04.000Z | """An unofficial Python wrapper for the Binance exchange API v3
.. moduleauthor:: Sam McHardy
"""
from .client import Client # noqa: F401
| 17.75 | 63 | 0.725352 | 19 | 142 | 5.421053 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.183099 | 142 | 7 | 64 | 20.285714 | 0.853448 | 0.725352 | 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 |
9eba44ce64142c4da9d09638f4be6d3c20781796 | 88 | py | Python | magic/magicdb/apps.py | ParserKnight/django-app-magic | bdedf7f423da558f09d5818157762f3d8ac65d93 | [
"MIT"
] | 1 | 2019-12-20T17:56:13.000Z | 2019-12-20T17:56:13.000Z | magic/magicdb/apps.py | ParserKnight/django-app-magic | bdedf7f423da558f09d5818157762f3d8ac65d93 | [
"MIT"
] | 11 | 2019-11-23T19:24:17.000Z | 2022-03-11T23:34:21.000Z | magic/magicdb/apps.py | ParserKnight/django-app-magic | bdedf7f423da558f09d5818157762f3d8ac65d93 | [
"MIT"
] | 1 | 2019-12-20T17:58:20.000Z | 2019-12-20T17:58:20.000Z | from django.apps import AppConfig
class MagicdbConfig(AppConfig):
name = 'magicdb'
| 17.6 | 33 | 0.761364 | 10 | 88 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 4 | 34 | 22 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 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 |
7b3a020a9c2ecb54bcb1abb02e4efbd44ae06347 | 361 | py | Python | prompt.py | wellyington/gpt3-translator | 367d164ae6cb3d21330f48eed27cb29a15a77237 | [
"MIT"
] | 10 | 2021-05-20T11:10:32.000Z | 2022-03-03T12:33:45.000Z | prompt.py | wellyington/gpt3-translator | 367d164ae6cb3d21330f48eed27cb29a15a77237 | [
"MIT"
] | null | null | null | prompt.py | wellyington/gpt3-translator | 367d164ae6cb3d21330f48eed27cb29a15a77237 | [
"MIT"
] | 2 | 2021-09-11T04:52:12.000Z | 2022-03-06T12:19:29.000Z | en_ru = "English: Good morning!\nRussian: Доброе утро!\n###\nEnglish: Good afternoon!\nRussian: Добрый день!\n###\nEnglish: Good evening!\nRussian: Добрый вечер!\n###\nEnglish: "
ru_en = "Russian: Доброе утро!\nEnglish: Good morning!\n###\nRussian: Как поживаешь?\nEnglish: How are you?\n###\nRussian: Откуда ты?\nEngl... | 180.5 | 181 | 0.711911 | 51 | 361 | 5 | 0.490196 | 0.105882 | 0.101961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099723 | 361 | 2 | 181 | 180.5 | 0.784615 | 0 | 0 | 0 | 0 | 1 | 0.939058 | 0.121884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7b42d8cee77640f28b89cc0026a935fc5fbb1baf | 64 | py | Python | apps/demoapp/tests.py | cyberjacob/monzo-save-change | c2fbdf787287dac1ebc77d65b621f01f95dc6071 | [
"MIT"
] | null | null | null | apps/demoapp/tests.py | cyberjacob/monzo-save-change | c2fbdf787287dac1ebc77d65b621f01f95dc6071 | [
"MIT"
] | 6 | 2018-05-03T16:49:46.000Z | 2018-05-03T16:52:01.000Z | apps/demoapp/tests.py | cyberjacob/monzo-template | c2fbdf787287dac1ebc77d65b621f01f95dc6071 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Create your tests here.
| 12.8 | 25 | 0.6875 | 11 | 64 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.15625 | 64 | 4 | 26 | 16 | 0.796296 | 0.890625 | 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 |
7b5f76cfe70739d79f6f551d386c6c2b53850ed4 | 164 | py | Python | hello-world.py | iamjoel/python-note | 49332fe2e0bf41c48719b1437870e53a98d091e9 | [
"MIT"
] | 92 | 2016-10-17T14:47:06.000Z | 2021-11-07T20:29:43.000Z | hello-world.py | iamjoel/python-learn | 49332fe2e0bf41c48719b1437870e53a98d091e9 | [
"MIT"
] | null | null | null | hello-world.py | iamjoel/python-learn | 49332fe2e0bf41c48719b1437870e53a98d091e9 | [
"MIT"
] | 39 | 2015-04-04T06:38:15.000Z | 2016-08-22T11:39:08.000Z | #!/usr/bin/python
#coding:utf-8
#上面两行是解决文件中 中文的问题
print 'why do you think python is cool?';
answer = raw_input();
print 'your answer is: ', answer, ' is so cool~';
| 23.428571 | 49 | 0.689024 | 27 | 164 | 4.148148 | 0.740741 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.152439 | 164 | 6 | 50 | 27.333333 | 0.798561 | 0.268293 | 0 | 0 | 0 | 0 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.666667 | 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 |
7b62c31d0727d011e24f13b645f91ddf4731cf51 | 138 | py | Python | vcgencmd/__init__.py | renetec-io/vcgencmd | 38b3849d6b0800f24eba138fde46d6970be507f4 | [
"MIT"
] | 2 | 2021-08-05T17:29:47.000Z | 2021-10-03T05:50:08.000Z | vcgencmd/__init__.py | renetec-io/vcgencmd | 38b3849d6b0800f24eba138fde46d6970be507f4 | [
"MIT"
] | 9 | 2020-08-30T10:01:10.000Z | 2021-10-03T06:04:44.000Z | vcgencmd/__init__.py | renetec-io/vcgencmd | 38b3849d6b0800f24eba138fde46d6970be507f4 | [
"MIT"
] | 7 | 2020-06-05T17:13:13.000Z | 2021-12-11T11:11:43.000Z | from .vcgencmd import *
try:
subprocess.check_output("vcgencmd")
except Exception:
raise ImportError("\"vcgencmd\" command not found")
| 19.714286 | 52 | 0.76087 | 16 | 138 | 6.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 138 | 6 | 53 | 23 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b7800499b4e2156aee01d0db606cbee0f84799c | 87 | py | Python | shopid/apps.py | yuntechcloud/GreaterWMS | 4a1c54fb962a0a6a3790e30340424c81175fe07b | [
"Apache-2.0"
] | 3 | 2020-10-19T05:55:28.000Z | 2020-11-12T03:55:06.000Z | shopid/apps.py | yuntechcloud/GreaterWMS | 4a1c54fb962a0a6a3790e30340424c81175fe07b | [
"Apache-2.0"
] | 1 | 2020-07-24T07:34:36.000Z | 2020-07-24T07:34:36.000Z | shopid/apps.py | Singosgu/Elvis_WMS | e6911b7daae76be640ece8946104af24b6cf0fa6 | [
"MIT"
] | 4 | 2020-09-04T13:35:15.000Z | 2020-10-16T15:10:38.000Z | from django.apps import AppConfig
class ShopidConfig(AppConfig):
name = 'shopid'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7ba3c03c634494e6801514bc1862d75a04ef8a85 | 287 | py | Python | pyGLLib/__init__.py | juanmcasillas/pyGLLib | eb91e5f50ed2e05b7822de8a7125e57eafa91eca | [
"Apache-2.0"
] | null | null | null | pyGLLib/__init__.py | juanmcasillas/pyGLLib | eb91e5f50ed2e05b7822de8a7125e57eafa91eca | [
"Apache-2.0"
] | null | null | null | pyGLLib/__init__.py | juanmcasillas/pyGLLib | eb91e5f50ed2e05b7822de8a7125e57eafa91eca | [
"Apache-2.0"
] | null | null | null | from . object import GLObjectBase, GLObjectBaseEBO, GLObjectBaseNormal, GLCube
from . shader import GLShaderPlain, GLShaderVertexColor, GLShaderAmbient, GLShaderStandard
from . texture import GLTexture
from . light import GLLight
from . camera import GLCamera
from . app import GLApp | 47.833333 | 90 | 0.8223 | 30 | 287 | 7.866667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135889 | 287 | 6 | 91 | 47.833333 | 0.951613 | 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 |
7babb52725384ca073360814bc9375c1968fa9a2 | 1,309 | py | Python | pyfilter/timeseries/models/ar.py | tingiskhan/pyfilter | 2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd | [
"MIT"
] | 61 | 2018-07-12T17:17:37.000Z | 2022-03-19T17:37:59.000Z | pyfilter/timeseries/models/ar.py | tingiskhan/pyfilter | 2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd | [
"MIT"
] | 12 | 2018-08-26T20:01:03.000Z | 2021-12-04T16:42:48.000Z | pyfilter/timeseries/models/ar.py | tingiskhan/pyfilter | 2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd | [
"MIT"
] | 9 | 2019-01-20T16:31:03.000Z | 2021-12-24T07:10:04.000Z | from ..affine import AffineProcess
from torch.distributions import Distribution, Normal, TransformedDistribution, AffineTransform
from ...distributions import DistributionWrapper
def _f(x, alpha, beta, sigma):
return alpha + beta * x.values
def _g(x, alpha, beta, sigma):
return sigma
def _init_trans(modul... | 31.926829 | 117 | 0.621849 | 164 | 1,309 | 4.810976 | 0.426829 | 0.079848 | 0.08872 | 0.038023 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014028 | 0.237586 | 1,309 | 40 | 118 | 32.725 | 0.776553 | 0.329259 | 0 | 0 | 0 | 0 | 0.002577 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.285714 | false | 0 | 0.214286 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7babbcdfa2aa450acfcfe096edf3c99d3ebca7b3 | 192 | py | Python | source/__init__.py | dante831/precip_cluster | d427a30f34db5aee57cb5f7b85a8adb6f5d264b8 | [
"MIT"
] | 3 | 2021-04-26T21:47:33.000Z | 2021-11-24T08:53:22.000Z | source/__init__.py | dante831/precip_cluster | d427a30f34db5aee57cb5f7b85a8adb6f5d264b8 | [
"MIT"
] | null | null | null | source/__init__.py | dante831/precip_cluster | d427a30f34db5aee57cb5f7b85a8adb6f5d264b8 | [
"MIT"
] | 1 | 2021-11-24T08:54:34.000Z | 2021-11-24T08:54:34.000Z | __author__ = 'Ziwei Li'
__email__ = 'lzw831@gmail.com'
#from .source import *
from .classes import *
from .model_precip import *
from .pickle_io import *
from .precip_distribution import *
| 17.454545 | 34 | 0.744792 | 25 | 192 | 5.28 | 0.64 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.15625 | 192 | 10 | 35 | 19.2 | 0.796296 | 0.109375 | 0 | 0 | 0 | 0 | 0.142857 | 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 | 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 |
7bb62c3d94c3ed291739f3c77c148c9e0037e430 | 130 | py | Python | terrascript/resource/at_wat/ucodecov.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/resource/at_wat/ucodecov.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/resource/at_wat/ucodecov.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/resource/at-wat/ucodecov.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:29:37 UTC)
__all__ = []
| 26 | 73 | 0.753846 | 20 | 130 | 4.7 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.107692 | 130 | 4 | 74 | 32.5 | 0.706897 | 0.853846 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.