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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f470abbcc87ac3b14f9f0b6fa1e5fa3f0ca4d0a | 101 | py | Python | .jupyter/nbgrader_config.py | Sci-Teens/biology-program | d9b76e1d4dd8292e7f9ca4164fbf0ce324116ee1 | [
"MIT"
] | null | null | null | .jupyter/nbgrader_config.py | Sci-Teens/biology-program | d9b76e1d4dd8292e7f9ca4164fbf0ce324116ee1 | [
"MIT"
] | null | null | null | .jupyter/nbgrader_config.py | Sci-Teens/biology-program | d9b76e1d4dd8292e7f9ca4164fbf0ce324116ee1 | [
"MIT"
] | null | null | null | c = get_config()
c.CourseDirectory.root = "./lessons"
c.CourseDirectory.course_id = "biology-program" | 33.666667 | 47 | 0.762376 | 13 | 101 | 5.769231 | 0.769231 | 0.426667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 101 | 3 | 47 | 33.666667 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f57ce3ea0e7756a819bb9a3d6bfa53635025398 | 265 | py | Python | twitoff/app.py | tortas/TwitOff | 3292c4dfc7c06f5ef554183349ddae35dfb28c0b | [
"MIT"
] | null | null | null | twitoff/app.py | tortas/TwitOff | 3292c4dfc7c06f5ef554183349ddae35dfb28c0b | [
"MIT"
] | null | null | null | twitoff/app.py | tortas/TwitOff | 3292c4dfc7c06f5ef554183349ddae35dfb28c0b | [
"MIT"
] | null | null | null | from flask import Flask
def create_app():
"""Create and configure an instance of the Flask application"""
app = Flask(__name__)
# Tells app where to point in site
@app.route("/")
def root():
return "Welcome to Twitoff!"
return app | 22.083333 | 67 | 0.641509 | 36 | 265 | 4.583333 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260377 | 265 | 12 | 68 | 22.083333 | 0.841837 | 0.343396 | 0 | 0 | 0 | 0 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5f7060289c11594a075aa09220190f5f83566057 | 3,069 | py | Python | tests/xfdnn/test_xfdnn_quantizer_caffe.py | Saums/ml-suite | 8a2b52763b0c1406abc4400302977d8354d74e11 | [
"Apache-2.0"
] | 1 | 2018-11-22T01:59:26.000Z | 2018-11-22T01:59:26.000Z | tests/xfdnn/test_xfdnn_quantizer_caffe.py | Saums/ml-suite | 8a2b52763b0c1406abc4400302977d8354d74e11 | [
"Apache-2.0"
] | null | null | null | tests/xfdnn/test_xfdnn_quantizer_caffe.py | Saums/ml-suite | 8a2b52763b0c1406abc4400302977d8354d74e11 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# // SPDX-License-Identifier: BSD-3-CLAUSE
#
# (C) Copyright 2018, Xilinx, Inc.
#
import os,sys
from xfdnn.tools.quantize.quantize import CaffeFrontend as xfdnnQuantizer
def test_xfdnn_quantizer_caffe():
print "Testing xfdnn_quantizer_caffe..."
prototxt_list = [ \
"models/caffe/bvl... | 43.842857 | 97 | 0.707722 | 365 | 3,069 | 5.709589 | 0.276712 | 0.116123 | 0.105566 | 0.119962 | 0.618042 | 0.547025 | 0.465931 | 0.319098 | 0.212092 | 0.120441 | 0 | 0.056818 | 0.168459 | 3,069 | 69 | 98 | 44.478261 | 0.759796 | 0.030629 | 0 | 0.054545 | 0 | 0 | 0.601078 | 0.579852 | 0 | 0 | 0 | 0 | 0.018182 | 0 | null | null | 0 | 0.036364 | null | null | 0.036364 | 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 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5fae90c293aea2baff4c715b8320e9bb9058e46e | 164 | py | Python | src/app/main/urls.py | OlegBugaichuk/site_template | 7094ef7cfa0c487ac124f94642e5449dfa6d0dbb | [
"MIT"
] | null | null | null | src/app/main/urls.py | OlegBugaichuk/site_template | 7094ef7cfa0c487ac124f94642e5449dfa6d0dbb | [
"MIT"
] | null | null | null | src/app/main/urls.py | OlegBugaichuk/site_template | 7094ef7cfa0c487ac124f94642e5449dfa6d0dbb | [
"MIT"
] | null | null | null | from django.urls import re_path
from .views import MainPageView
app_name = 'main'
urlpatterns = [
re_path(r'^$', MainPageView.as_view(), name='main_page'),
]
| 18.222222 | 61 | 0.713415 | 23 | 164 | 4.869565 | 0.695652 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 164 | 8 | 62 | 20.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5fc02755673378b6a2a4c6bcc2c71cdb267b06f4 | 57 | py | Python | contrib/pyln-testing/pyln/testing/__init__.py | endothermicdev/lightning | c7d359baf455e5260dc5d126b05211279e186ef8 | [
"MIT"
] | null | null | null | contrib/pyln-testing/pyln/testing/__init__.py | endothermicdev/lightning | c7d359baf455e5260dc5d126b05211279e186ef8 | [
"MIT"
] | 1 | 2021-11-04T18:08:08.000Z | 2021-11-04T18:08:08.000Z | contrib/pyln-testing/pyln/testing/__init__.py | endothermicdev/lightning | c7d359baf455e5260dc5d126b05211279e186ef8 | [
"MIT"
] | null | null | null | __version__ = "0.11.0"
__all__ = [
"__version__",
]
| 9.5 | 22 | 0.578947 | 6 | 57 | 3.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.22807 | 57 | 5 | 23 | 11.4 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0.298246 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5fd02e290edcff7f4050f6de09193d2c8322eb54 | 1,382 | py | Python | core/lib/randoms.py | ayashgupta/ZKit-Framework | 97217d708f6b8ce78452328ba50cc1c5a0c72939 | [
"Apache-2.0"
] | 1 | 2021-07-11T20:58:27.000Z | 2021-07-11T20:58:27.000Z | core/lib/randoms.py | ayashgupta/ZKit-Framework | 97217d708f6b8ce78452328ba50cc1c5a0c72939 | [
"Apache-2.0"
] | null | null | null | core/lib/randoms.py | ayashgupta/ZKit-Framework | 97217d708f6b8ce78452328ba50cc1c5a0c72939 | [
"Apache-2.0"
] | null | null | null | 'Randoms are all happen here'
import random
def random_str(size=4):
"""
Generates A Random String with given size.
Arguments :
size (int) : is optional can be omitted . if omitted size is 4
Returns a random string with lenght of Argument size
example :
random_string(2)
ret... | 26.576923 | 88 | 0.605644 | 199 | 1,382 | 4.105528 | 0.407035 | 0.088127 | 0.029376 | 0.014688 | 0.031824 | 0.031824 | 0.022032 | 0 | 0 | 0 | 0 | 0.036923 | 0.294501 | 1,382 | 51 | 89 | 27.098039 | 0.801026 | 0.587554 | 0 | 0 | 1 | 0 | 0.175214 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5fd1fdf2a2f1647f1a25f6d7dbe05da88e48a3cf | 228 | py | Python | models/wow_community/Mount.py | DylanCa/PBAW | b1f50fb9a21ada9ec6deb616820f9177fc36146f | [
"MIT"
] | 1 | 2018-08-07T10:00:44.000Z | 2018-08-07T10:00:44.000Z | models/wow_community/Mount.py | DylanCa/PBAW | b1f50fb9a21ada9ec6deb616820f9177fc36146f | [
"MIT"
] | 1 | 2018-08-07T08:17:59.000Z | 2018-08-07T08:17:59.000Z | models/wow_community/Mount.py | DylanCa/PBAW | b1f50fb9a21ada9ec6deb616820f9177fc36146f | [
"MIT"
] | null | null | null | from models import Fetcher
class Mount():
def masterList(self, server="eu", locale="en_US"):
self.route = '/wow/mount/'
return Fetcher.fetchData(
server=server, locale=locale, route=self.route) | 25.333333 | 59 | 0.640351 | 28 | 228 | 5.178571 | 0.642857 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 228 | 9 | 59 | 25.333333 | 0.823864 | 0 | 0 | 0 | 0 | 0 | 0.078603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
396ebfd16538f9d541e2dd425ba5c434cdeef697 | 17 | py | Python | mtgtools/__init__.py | gus3000/mtgtools | c677cb65ce4e250827c0cdcb08959b5eb63d34af | [
"Unlicense"
] | null | null | null | mtgtools/__init__.py | gus3000/mtgtools | c677cb65ce4e250827c0cdcb08959b5eb63d34af | [
"Unlicense"
] | null | null | null | mtgtools/__init__.py | gus3000/mtgtools | c677cb65ce4e250827c0cdcb08959b5eb63d34af | [
"Unlicense"
] | null | null | null | name = "mtgtools" | 17 | 17 | 0.705882 | 2 | 17 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 17 | 1 | 17 | 17 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
397bff163af65853331188ec573219ef65465e83 | 273 | py | Python | examples/tasks/greet_task.py | wj-Mcat/bot-maker | 44dfd4e8b74b37003b824128e0297e1ce047f239 | [
"Apache-2.0"
] | null | null | null | examples/tasks/greet_task.py | wj-Mcat/bot-maker | 44dfd4e8b74b37003b824128e0297e1ce047f239 | [
"Apache-2.0"
] | null | null | null | examples/tasks/greet_task.py | wj-Mcat/bot-maker | 44dfd4e8b74b37003b824128e0297e1ce047f239 | [
"Apache-2.0"
] | null | null | null | from bot_maker.maker import Task
from bot_maker.schema import Message
class GreetTask(Task):
@staticmethod
def trigger_intent() -> str:
return 'greet'
async def conversation(self):
# 处理核心对话逻辑
await self.bot.say('您好啊,我是小猫的个人助理') | 24.818182 | 43 | 0.659341 | 33 | 273 | 5.363636 | 0.727273 | 0.079096 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252747 | 273 | 11 | 43 | 24.818182 | 0.867647 | 0.029304 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
398171d149d06709ad2a0f7a1892a1ad216c0119 | 1,615 | py | Python | Tutorials/70datastructures.py | zza-jeff/MCB185-2022 | 562dc9de4be58cbb7783b66ee7781e5b93ff4f1d | [
"MIT"
] | null | null | null | Tutorials/70datastructures.py | zza-jeff/MCB185-2022 | 562dc9de4be58cbb7783b66ee7781e5b93ff4f1d | [
"MIT"
] | null | null | null | Tutorials/70datastructures.py | zza-jeff/MCB185-2022 | 562dc9de4be58cbb7783b66ee7781e5b93ff4f1d | [
"MIT"
] | 22 | 2022-01-04T17:03:32.000Z | 2022-01-10T22:47:48.000Z | #!/usr/bin/env python3
# 70datastructures.py
import json
# Move the triple quotes downward to uncover each segment of code
"""
# In a 2D list, each element of a list contains another list
list2d = [
[1, 3, 5],
[2, 4, 6],
[3, 6, 9],
]
row = [4, 8, 12]
list2d.append(row)
print(list2d)
# It is common for 2D list... | 19.938272 | 71 | 0.627245 | 251 | 1,615 | 4.035857 | 0.501992 | 0.014808 | 0.009872 | 0.017769 | 0.112537 | 0.080948 | 0.080948 | 0.080948 | 0.080948 | 0 | 0 | 0.041022 | 0.2 | 1,615 | 80 | 72 | 20.1875 | 0.743034 | 0.065015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3990d54d0b7687d836aebbcb7a38a3416b66b85e | 1,581 | py | Python | tests/atlas/chibi_atlas_ignore_case.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | tests/atlas/chibi_atlas_ignore_case.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | tests/atlas/chibi_atlas_ignore_case.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | from unittest import TestCase
from chibi.atlas import Chibi_atlas_ignore_case
class Test_ignore_case:
def test_can_retrive_upperkeys_and_are_equal_to_lower( self ):
self.assertEqual( self.simple_dict.A, self.simple_dict.a )
self.assertEqual( self.simple_dict.B, self.simple_dict.b )
self.as... | 37.642857 | 78 | 0.696395 | 234 | 1,581 | 4.303419 | 0.209402 | 0.19861 | 0.278054 | 0.248262 | 0.667329 | 0.667329 | 0.649454 | 0.649454 | 0.649454 | 0.649454 | 0 | 0.012739 | 0.205566 | 1,581 | 41 | 79 | 38.560976 | 0.789013 | 0 | 0 | 0.333333 | 0 | 0 | 0.005693 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
399bf3ae6646da990e1b65109711a3a8e431634b | 255 | py | Python | unifac/errors.py | JacekPrzemieniecki/UNIFAC | c32702aeffd695a9fd3883cf150500e902df7a97 | [
"MIT"
] | 6 | 2016-01-04T02:33:13.000Z | 2021-07-18T08:32:51.000Z | unifac/errors.py | JacekPrzemieniecki/UNIFAC | c32702aeffd695a9fd3883cf150500e902df7a97 | [
"MIT"
] | 1 | 2020-07-27T17:56:23.000Z | 2020-08-10T06:30:06.000Z | unifac/errors.py | JacekPrzemieniecki/UNIFAC | c32702aeffd695a9fd3883cf150500e902df7a97 | [
"MIT"
] | 6 | 2015-01-02T19:18:16.000Z | 2021-04-16T08:12:14.000Z | '''
Created on 11-10-2012
@author: Jacek Przemieniecki
'''
class ValueNotFound(LookupError):
'''
Raised by database.Database object if
the request is correct, but DB lacks required data
'''
def __init__(self):
pass
| 17 | 54 | 0.635294 | 30 | 255 | 5.266667 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.270588 | 255 | 15 | 55 | 17 | 0.806452 | 0.552941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
39a2a2d402cc63733bdbb41866cf1f30b7e8ab37 | 7,908 | py | Python | tests/test_box.py | danilo-dias/pymp4 | 60a54fc0f24a49b01402edf95a6f13a195f653bc | [
"Apache-2.0"
] | null | null | null | tests/test_box.py | danilo-dias/pymp4 | 60a54fc0f24a49b01402edf95a6f13a195f653bc | [
"Apache-2.0"
] | null | null | null | tests/test_box.py | danilo-dias/pymp4 | 60a54fc0f24a49b01402edf95a6f13a195f653bc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Copyright 2016 beardypig
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 la... | 36.442396 | 188 | 0.439176 | 811 | 7,908 | 4.192355 | 0.19852 | 0.317647 | 0.373235 | 0.370588 | 0.535882 | 0.46 | 0.445588 | 0.438235 | 0.431176 | 0.408235 | 0 | 0.143523 | 0.457258 | 7,908 | 216 | 189 | 36.611111 | 0.648649 | 0.077769 | 0 | 0.554348 | 0 | 0.054348 | 0.181241 | 0.154345 | 0 | 0 | 0 | 0 | 0.070652 | 1 | 0.043478 | false | 0 | 0.027174 | 0 | 0.076087 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39ab0f2527608f037f2010636a4e232256b4b036 | 352 | py | Python | tests/app/serializers.py | sideris/drf-optionalfields | 55d0a769d8f783dce3f04df6f0ac1ffae84c033a | [
"MIT"
] | null | null | null | tests/app/serializers.py | sideris/drf-optionalfields | 55d0a769d8f783dce3f04df6f0ac1ffae84c033a | [
"MIT"
] | null | null | null | tests/app/serializers.py | sideris/drf-optionalfields | 55d0a769d8f783dce3f04df6f0ac1ffae84c033a | [
"MIT"
] | null | null | null | from rest_framework import serializers
from drf_optionalfields import OptionalFieldsMixin, DynamicFilterMixin
from tests.app.models import Snippet
class SnippetSerializer(OptionalFieldsMixin, DynamicFilterMixin, serializers.ModelSerializer):
class Meta:
model = Snippet
fields = "__all__"
... | 23.466667 | 94 | 0.764205 | 32 | 352 | 8.1875 | 0.6875 | 0.282443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178977 | 352 | 14 | 95 | 25.142857 | 0.906574 | 0 | 0 | 0 | 0 | 0 | 0.031429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
39bdb363513c76c7512f7add1809474acfd1a4cb | 115 | py | Python | Desafios/Desafio 047.py | tiagosm1/Pyhton_CEV | 67bae36169922fe2168505393cc47b1bab50c39b | [
"MIT"
] | null | null | null | Desafios/Desafio 047.py | tiagosm1/Pyhton_CEV | 67bae36169922fe2168505393cc47b1bab50c39b | [
"MIT"
] | null | null | null | Desafios/Desafio 047.py | tiagosm1/Pyhton_CEV | 67bae36169922fe2168505393cc47b1bab50c39b | [
"MIT"
] | null | null | null | print('Estes são os números pares entre 1 e 50')
for c in range(1, 51):
if c%2 == 0:
print(c, end=' ')
| 23 | 48 | 0.556522 | 23 | 115 | 2.782609 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.286957 | 115 | 4 | 49 | 28.75 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
39d30fc9b38d3d6b24d58c8c7371686e00b8e38f | 555 | py | Python | testplan/cli/utils/actions.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | testplan/cli/utils/actions.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | testplan/cli/utils/actions.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | """
Implements base action types.
"""
from typing import Iterable
from testplan.report import TestReport
class ParseSingleAction:
"""
Base class for single parser action.
"""
def __call__(self) -> TestReport:
pass
class ParseMultipleAction:
"""
Base class for multiple parser action... | 16.323529 | 57 | 0.65045 | 55 | 555 | 6.345455 | 0.472727 | 0.077364 | 0.103152 | 0.097421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257658 | 555 | 33 | 58 | 16.818182 | 0.847087 | 0.264865 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.181818 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
39d9e8e8948a2be5d673b4b911d96682e7fc26b4 | 391 | py | Python | app/python-scripts/turnonalllight.py | mathiasostenfeldt/raspi_api | 8f1d54bd7f68b2692be2339cdb7111c130daae49 | [
"MIT"
] | null | null | null | app/python-scripts/turnonalllight.py | mathiasostenfeldt/raspi_api | 8f1d54bd7f68b2692be2339cdb7111c130daae49 | [
"MIT"
] | null | null | null | app/python-scripts/turnonalllight.py | mathiasostenfeldt/raspi_api | 8f1d54bd7f68b2692be2339cdb7111c130daae49 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
from grovepi import *
# Connect the Grove LED to digital port D4
led = 4
if digitalRead(led) == 0:
pinMode(led,"OUTPUT")
digitalWrite(led,1)
led = 3
if digitalRead(led) == 0:
pinMode(led,"OUTPUT")
digitalWrite(led,1)
led = 2
if digitalRead(led) == 0:
pinMode(led,... | 20.578947 | 61 | 0.649616 | 59 | 391 | 4.305085 | 0.508475 | 0.153543 | 0.188976 | 0.200787 | 0.602362 | 0.602362 | 0.602362 | 0.602362 | 0.602362 | 0.602362 | 0 | 0.032895 | 0.222506 | 391 | 19 | 61 | 20.578947 | 0.802632 | 0.222506 | 0 | 0.642857 | 0 | 0 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39df8a92cfdeeca132ed5f19cd2a61540fcf18f4 | 82 | py | Python | examples/cloud/resolvers/dashboard/__init__.py | rmyers/cannula | eb6fd76d2a9daed0df73b0bf389da0182f797972 | [
"MIT"
] | 9 | 2015-11-05T08:52:49.000Z | 2019-11-18T10:20:58.000Z | examples/cloud/resolvers/dashboard/__init__.py | rmyers/cannula | eb6fd76d2a9daed0df73b0bf389da0182f797972 | [
"MIT"
] | null | null | null | examples/cloud/resolvers/dashboard/__init__.py | rmyers/cannula | eb6fd76d2a9daed0df73b0bf389da0182f797972 | [
"MIT"
] | 1 | 2015-12-22T15:15:08.000Z | 2015-12-22T15:15:08.000Z | from .resolver import dashboard_resolver
__all__ = [
'dashboard_resolver',
]
| 13.666667 | 40 | 0.743902 | 8 | 82 | 6.875 | 0.625 | 0.618182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 5 | 41 | 16.4 | 0.808824 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
39e6a312747a379a12eb62309ca58d845cfe8826 | 620 | py | Python | src/keypair_permissions/admin.py | backupbrain/drf-keypair-permissions | d3e427b4780b20033d66d934d22dbb9ce7f439f5 | [
"0BSD"
] | 2 | 2021-05-19T23:01:32.000Z | 2021-05-20T10:57:17.000Z | src/keypair_permissions/admin.py | backupbrain/drf-keypair-permissions | d3e427b4780b20033d66d934d22dbb9ce7f439f5 | [
"0BSD"
] | null | null | null | src/keypair_permissions/admin.py | backupbrain/drf-keypair-permissions | d3e427b4780b20033d66d934d22dbb9ce7f439f5 | [
"0BSD"
] | null | null | null | from django.contrib import admin
from .models import PublicKey
@admin.register(PublicKey)
class PublicKeyAdmin(admin.ModelAdmin):
"""Admin representation of PublicKey."""
model = PublicKey
list_display = ('public_key_id', 'signing_algorithm', 'hashing_algorithm', 'is_active', 'public_key', 'created_at')... | 41.333333 | 119 | 0.740323 | 72 | 620 | 6.013889 | 0.416667 | 0.124711 | 0.212471 | 0.295612 | 0.413395 | 0.413395 | 0.297921 | 0 | 0 | 0 | 0 | 0 | 0.119355 | 620 | 14 | 120 | 44.285714 | 0.79304 | 0.054839 | 0 | 0 | 0 | 0 | 0.453448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
39f597119fc0a3ab76ba9da8cb4f1b35246c0596 | 197 | py | Python | katas/beta/multiples_by_permutations_1.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/multiples_by_permutations_1.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/multiples_by_permutations_1.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | def search_permMult(n_max, k):
""" search_perm_mult == PEP8 (forced mixedCase by Codewars) """
return sum(sorted(str(a)) == sorted(str(a * k))
for a in xrange(1, n_max / k))
| 39.4 | 67 | 0.598985 | 31 | 197 | 3.645161 | 0.709677 | 0.070796 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.243655 | 197 | 4 | 68 | 49.25 | 0.744966 | 0.279188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f2e666c82e70efc46e220ed1184be1d12c300036 | 133 | py | Python | 20191219_1101.py | pgDora56/rough | 8f168e9d870369c9ca1530ac72a177f849b5ee76 | [
"Unlicense"
] | null | null | null | 20191219_1101.py | pgDora56/rough | 8f168e9d870369c9ca1530ac72a177f849b5ee76 | [
"Unlicense"
] | null | null | null | 20191219_1101.py | pgDora56/rough | 8f168e9d870369c9ca1530ac72a177f849b5ee76 | [
"Unlicense"
] | null | null | null | def test():
return "Hello" + msg
def main():
global msg
msg = input()
rtn = test()
print(rtn)
main()
| 12.090909 | 25 | 0.481203 | 16 | 133 | 4 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37594 | 133 | 10 | 26 | 13.3 | 0.771084 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.375 | 0.125 | 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 | 0 | 0 | 0 | 3 |
f2f0c14cbe3523a011f8e51a35b558a55140c65c | 139 | py | Python | DB1_Blink.py | PiMicroSolutions/Pico_Devboard1 | 2a24324b77244cde24f2b4ccc8637757a352e216 | [
"MIT"
] | null | null | null | DB1_Blink.py | PiMicroSolutions/Pico_Devboard1 | 2a24324b77244cde24f2b4ccc8637757a352e216 | [
"MIT"
] | null | null | null | DB1_Blink.py | PiMicroSolutions/Pico_Devboard1 | 2a24324b77244cde24f2b4ccc8637757a352e216 | [
"MIT"
] | null | null | null | from machine import Pin
import time
led = Pin(16, Pin.OUT)
while True:
led(1)
time.sleep(1)
led(0)
time.sleep(1) | 13.9 | 24 | 0.582734 | 23 | 139 | 3.521739 | 0.565217 | 0.222222 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0.302158 | 139 | 10 | 25 | 13.9 | 0.773196 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
841127b9140d4a5e094a9ef7ad59fcf7317036f0 | 186 | py | Python | codewof/programming/content/en/mountain-climbing/solution.py | uccser-admin/programming-practice-prototype | 3af4c7d85308ac5bb35bb13be3ec18cac4eb8308 | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/content/en/mountain-climbing/solution.py | uccser-admin/programming-practice-prototype | 3af4c7d85308ac5bb35bb13be3ec18cac4eb8308 | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/content/en/mountain-climbing/solution.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | def number_of_steps(up_amount, height):
steps = 0
current_height = 0
while current_height < height:
steps += 1
current_height += up_amount
return steps
| 18.6 | 39 | 0.639785 | 24 | 186 | 4.666667 | 0.5 | 0.348214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.295699 | 186 | 9 | 40 | 20.666667 | 0.832061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84127dc6e932c25508fa6b7146706c47135f0b3b | 57,669 | py | Python | pysnmp-with-texts/A3COM-SWITCHING-SYSTEMS-BRIDGE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/A3COM-SWITCHING-SYSTEMS-BRIDGE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/A3COM-SWITCHING-SYSTEMS-BRIDGE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module A3COM-SWITCHING-SYSTEMS-BRIDGE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-SWITCHING-SYSTEMS-BRIDGE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:08:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using... | 199.546713 | 6,813 | 0.821273 | 6,234 | 57,669 | 7.597369 | 0.098973 | 0.045353 | 0.079367 | 0.008023 | 0.513428 | 0.424496 | 0.366011 | 0.347874 | 0.327013 | 0.310228 | 0 | 0.049175 | 0.086702 | 57,669 | 288 | 6,814 | 200.239583 | 0.850064 | 0.006277 | 0 | 0 | 0 | 0.213523 | 0.355824 | 0.042811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021352 | 0 | 0.021352 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
845df870fa00a6e572fabf95d5fb969bc1768106 | 221 | py | Python | eo/err.py | g4s8/eo.py | 4146fdcc7a237249a3b0dda225fe85264a848433 | [
"MIT"
] | 1 | 2021-03-12T10:58:01.000Z | 2021-03-12T10:58:01.000Z | eo/err.py | g4s8/eo.py | 4146fdcc7a237249a3b0dda225fe85264a848433 | [
"MIT"
] | null | null | null | eo/err.py | g4s8/eo.py | 4146fdcc7a237249a3b0dda225fe85264a848433 | [
"MIT"
] | null | null | null | """
Elegant errors
"""
from eo import lang
class _Failure(lang.EO, Exception):
def __init__(self, msg):
Exception.__init__(self, msg)
def __value__(self):
raise self
Failure = _Failure(None)
| 13 | 37 | 0.647059 | 27 | 221 | 4.777778 | 0.592593 | 0.124031 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239819 | 221 | 16 | 38 | 13.8125 | 0.767857 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fff06945a59fcbea6de5b442416789804b770c2d | 215 | py | Python | flask_app/manager/session/wechat.py | qigezhao/flask-with-celery-probe | d74919fd3ef22c79e7ab6f8bb0d1c993e40b46bf | [
"MIT"
] | null | null | null | flask_app/manager/session/wechat.py | qigezhao/flask-with-celery-probe | d74919fd3ef22c79e7ab6f8bb0d1c993e40b46bf | [
"MIT"
] | 1 | 2020-08-09T08:00:44.000Z | 2020-08-09T08:00:44.000Z | flask_app/manager/session/wechat.py | qigezhao/flask-with-celery-probe | d74919fd3ef22c79e7ab6f8bb0d1c993e40b46bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# by Qige <qigezhao@gmail.com> since 2020-08-09
import logging
class WechatMiniAppManager(object):
@staticmethod
def login(wx_code):
return wx_code
| 17.916667 | 47 | 0.67907 | 29 | 215 | 4.965517 | 0.931034 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.190698 | 215 | 11 | 48 | 19.545455 | 0.775862 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
08253272eea3b88f3b8f970b2b199bfff7e032e9 | 50 | py | Python | workout_tracker/muscles/__init__.py | e-dang/Workout-Tracker | 00a27597ea628cff62b320d616f56b2df4f344a0 | [
"MIT"
] | null | null | null | workout_tracker/muscles/__init__.py | e-dang/Workout-Tracker | 00a27597ea628cff62b320d616f56b2df4f344a0 | [
"MIT"
] | null | null | null | workout_tracker/muscles/__init__.py | e-dang/Workout-Tracker | 00a27597ea628cff62b320d616f56b2df4f344a0 | [
"MIT"
] | null | null | null | default_app_config = 'muscles.apps.MusclesConfig'
| 25 | 49 | 0.84 | 6 | 50 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0859922a91bab95fac6782b506f54830b900a6ac | 449 | py | Python | backend/smartMoney_project/smartMoney_app/admin.py | uca-pid/f-al-cuadrado-2021 | 2cd203f5a998f3b4f54811a382458ce5b6762a2a | [
"MIT"
] | null | null | null | backend/smartMoney_project/smartMoney_app/admin.py | uca-pid/f-al-cuadrado-2021 | 2cd203f5a998f3b4f54811a382458ce5b6762a2a | [
"MIT"
] | 13 | 2021-09-08T21:05:49.000Z | 2021-12-16T04:58:51.000Z | backend/smartMoney_project/smartMoney_app/admin.py | uca-pid/f-al-cuadrado-2021 | 2cd203f5a998f3b4f54811a382458ce5b6762a2a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .category_model import Category
from .expense_model import Expense
from .user_model import Sm_user
from .securityCode_model import SecurityCode
from .budget_model import Budget,Budget_Category
# Register your models here.
admin.site.register(Category)
admin.site.register(Expense)... | 28.0625 | 48 | 0.844098 | 63 | 449 | 5.873016 | 0.269841 | 0.145946 | 0.275676 | 0.124324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082405 | 449 | 15 | 49 | 29.933333 | 0.898058 | 0.057906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f23b7cf1bf8d02d9c6a90825cb94af5214dfc084 | 1,117 | py | Python | test/grammars/test_integer_grammar.py | colinta/chomsky | 1c618f02a8e4b573e9c13860181ffeec0f49ccd9 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-07-30T14:58:46.000Z | 2021-07-09T15:29:52.000Z | test/grammars/test_integer_grammar.py | colinta/chomsky | 1c618f02a8e4b573e9c13860181ffeec0f49ccd9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test/grammars/test_integer_grammar.py | colinta/chomsky | 1c618f02a8e4b573e9c13860181ffeec0f49ccd9 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-01-27T13:09:01.000Z | 2017-01-27T13:09:01.000Z | from pytest import raises
from chomsky import *
def test_integer_repr():
assert repr(Integer('123')) == "Integer('123')"
def test_integer_type():
assert isinstance(Integer('1'), Integer)
def test_integer_grammar_0():
m = Integer('0')
assert m.parsed == '0'
assert str(m) == '0'
def test_integ... | 18.016129 | 51 | 0.61504 | 155 | 1,117 | 4.219355 | 0.167742 | 0.117737 | 0.235474 | 0.16055 | 0.426606 | 0.406728 | 0.406728 | 0.406728 | 0.406728 | 0.406728 | 0 | 0.058824 | 0.223814 | 1,117 | 61 | 52 | 18.311475 | 0.695502 | 0 | 0 | 0.179487 | 0 | 0 | 0.054611 | 0 | 0 | 0 | 0 | 0 | 0.358974 | 1 | 0.282051 | false | 0 | 0.051282 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f24936f2924c4d34686aba898c729361f11fbdc4 | 300 | py | Python | app/calculation.py | itmo-cet-sem/battleshape | 238365d0a381483725e31ae517b53800c13fc2a1 | [
"MIT"
] | 2 | 2019-05-16T09:29:48.000Z | 2019-05-16T16:33:10.000Z | app/calculation.py | itmo-cet-sem/battleshape | 238365d0a381483725e31ae517b53800c13fc2a1 | [
"MIT"
] | 10 | 2019-03-17T17:23:16.000Z | 2019-04-24T12:28:01.000Z | app/calculation.py | itmo-cet-sem/battleshape | 238365d0a381483725e31ae517b53800c13fc2a1 | [
"MIT"
] | 1 | 2019-03-17T18:11:01.000Z | 2019-03-17T18:11:01.000Z | import datetime
def remove_outdated_coordinates(coordinates):
curr = datetime.datetime.utcnow()
return list(
filter(lambda x: (curr - x['datetime']).seconds < 10, coordinates))
def calculate_lives(shape):
return 5
def shoot(whom):
pass
def killed(who, whom):
pass
| 15 | 75 | 0.676667 | 37 | 300 | 5.405405 | 0.648649 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.213333 | 300 | 19 | 76 | 15.789474 | 0.834746 | 0 | 0 | 0.181818 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.181818 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f25d199b791da1f31776e700e510863a38a9defd | 36,337 | py | Python | pyNastran/op2/tables/test/test_grid_point_forces.py | zchlrnr/pyNastran | d89a59a918e8d2262e3d8e6abd01abdc37046cdf | [
"BSD-3-Clause"
] | 1 | 2021-08-02T09:49:24.000Z | 2021-08-02T09:49:24.000Z | pyNastran/op2/tables/test/test_grid_point_forces.py | zchlrnr/pyNastran | d89a59a918e8d2262e3d8e6abd01abdc37046cdf | [
"BSD-3-Clause"
] | null | null | null | pyNastran/op2/tables/test/test_grid_point_forces.py | zchlrnr/pyNastran | d89a59a918e8d2262e3d8e6abd01abdc37046cdf | [
"BSD-3-Clause"
] | null | null | null | import os
import unittest
from io import StringIO
import numpy as np
from cpylog import SimpleLogger
import pyNastran
from pyNastran.bdf.bdf import CORD2R
from pyNastran.op2.op2 import OP2, read_op2
from pyNastran.op2.op2_geom import read_op2_geom
from pyNastran.op2.tables.ogf_gridPointForces.ogf_objects import Rea... | 46.6457 | 154 | 0.521645 | 4,855 | 36,337 | 3.66035 | 0.085273 | 0.038377 | 0.032244 | 0.021383 | 0.778741 | 0.762928 | 0.714254 | 0.697935 | 0.681729 | 0.670418 | 0 | 0.106539 | 0.315216 | 36,337 | 778 | 155 | 46.705656 | 0.607644 | 0.204833 | 0 | 0.503861 | 0 | 0 | 0.060474 | 0.025514 | 0 | 0 | 0 | 0 | 0.055985 | 1 | 0.013514 | false | 0 | 0.025097 | 0 | 0.048263 | 0.019305 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f25ea962c79cc47af9243ae2656ac1797e9af195 | 176 | py | Python | tests/unitary/RewardStream/test_get_reward.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/unitary/RewardStream/test_get_reward.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/unitary/RewardStream/test_get_reward.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | import brownie
def test_only_active_receiver_can_call(charlie, stream):
with brownie.reverts("dev: caller is not receiver"):
stream.get_reward({"from": charlie})
| 25.142857 | 56 | 0.738636 | 24 | 176 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153409 | 176 | 6 | 57 | 29.333333 | 0.832215 | 0 | 0 | 0 | 0 | 0 | 0.176136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f26bc354321660a6ab2e545820029c0cea27bb31 | 1,293 | py | Python | tools/char.py | YellowTulipShow/PythonScripts | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | [
"Apache-2.0"
] | 1 | 2020-01-16T01:40:58.000Z | 2020-01-16T01:40:58.000Z | tools/char.py | YellowTulipShow/PythonScripts | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | [
"Apache-2.0"
] | null | null | null | tools/char.py | YellowTulipShow/PythonScripts | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | [
"Apache-2.0"
] | null | null | null | # coding: UTF-8
def ToChars(char_string):
# 字符串转字符数组序列
return [c for c in char_string];
def ToString(chars):
# 字符数组序列转为字符串
return ''.join(chars)
def ASCII_ALL():
# 33, 127 -> ASCII 所有常用字符
return '!"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'... | 25.352941 | 109 | 0.631864 | 153 | 1,293 | 5.045752 | 0.313725 | 0.072539 | 0.063472 | 0.103627 | 0.056995 | 0.056995 | 0.056995 | 0.056995 | 0.056995 | 0.056995 | 0 | 0.080875 | 0.187162 | 1,293 | 50 | 110 | 25.86 | 0.653663 | 0.108275 | 0 | 0 | 0 | 0 | 0.184764 | 0.045534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.266667 | 0.6 | 0.233333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f2733c0efb445587687800249ee2ecbedaec71c0 | 7,083 | py | Python | test/common/test_mathematics.py | xhajnal/DiPS | 2e5d6e0a26d2b1cd44522dc521992e6d7cfe6883 | [
"BSD-3-Clause"
] | 4 | 2020-04-25T22:29:43.000Z | 2022-01-14T07:52:55.000Z | test/common/test_mathematics.py | xhajnal/DiPS | 2e5d6e0a26d2b1cd44522dc521992e6d7cfe6883 | [
"BSD-3-Clause"
] | 64 | 2020-01-06T18:38:56.000Z | 2022-02-27T18:38:45.000Z | test/common/test_mathematics.py | xhajnal/DiPS | 2e5d6e0a26d2b1cd44522dc521992e6d7cfe6883 | [
"BSD-3-Clause"
] | 3 | 2020-02-13T16:46:54.000Z | 2021-11-26T11:47:56.000Z | import unittest
from mpmath import mpi
from termcolor import colored
from src.common.mathematics import *
class MyTestCase(unittest.TestCase):
def test_sympy_intervals(self):
print(colored('Sympy Interval sanity check', 'blue'))
## Check more here https://docs.sympy.org/latest/modules/sets.html
... | 46.294118 | 142 | 0.57278 | 1,109 | 7,083 | 3.583408 | 0.102795 | 0.085053 | 0.123805 | 0.16004 | 0.742325 | 0.706844 | 0.616256 | 0.551082 | 0.509311 | 0.433568 | 0 | 0.151216 | 0.256812 | 7,083 | 152 | 143 | 46.598684 | 0.603723 | 0.027954 | 0 | 0.182609 | 0 | 0 | 0.049527 | 0 | 0 | 0 | 0 | 0.006579 | 0.513043 | 1 | 0.095652 | false | 0 | 0.034783 | 0 | 0.13913 | 0.095652 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f27bdb5034e69246f4a70540445e78c4e6c4e885 | 951,196 | py | Python | pysteamkit/protobuf/steammessages_clientserver_pb2.py | adamb70/CSGO-Market-Float-Finder | d6463aaec39c07b45859947d51f75e4f9c5bbd90 | [
"MIT"
] | 73 | 2015-11-23T18:21:45.000Z | 2022-01-18T11:22:34.000Z | pysteamkit/protobuf/steammessages_clientserver_pb2.py | adamb70/CSGO-Market-Float-Finder | d6463aaec39c07b45859947d51f75e4f9c5bbd90 | [
"MIT"
] | 21 | 2015-11-23T16:03:23.000Z | 2022-02-01T19:43:17.000Z | pysteamkit/protobuf/steammessages_clientserver_pb2.py | adamb70/CSGO-Market-Float-Finder | d6463aaec39c07b45859947d51f75e4f9c5bbd90 | [
"MIT"
] | 19 | 2016-01-08T21:17:26.000Z | 2022-03-29T20:01:38.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: steammessages_clientserver.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import r... | 42.538169 | 82,155 | 0.763507 | 107,480 | 951,196 | 6.453387 | 0.027196 | 0.053517 | 0.047024 | 0.038734 | 0.648644 | 0.600136 | 0.587689 | 0.577639 | 0.571419 | 0.545412 | 0 | 0.040538 | 0.123981 | 951,196 | 22,360 | 82,156 | 42.540072 | 0.791861 | 0.030058 | 0 | 0.733129 | 1 | 0.004608 | 0.2098 | 0.186838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003648 | 0.000384 | 0 | 0.000384 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f29101015afe81e9d6a377c7af5c75207d25491b | 1,448 | py | Python | tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/agent/group.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/agent/group.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/agent/group.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | from novaclient.v1_1.paas import groups
from novaclient.v1_1.paas import gateways
from novaclient.v1_1.paas import firewalls
from daoliproxy.agent.nova import novaclient
# Security Group
def _group(request):
client = novaclient(request)
return groups.SecurityGroupManager(client)
def security_group_update(req... | 30.808511 | 80 | 0.763122 | 182 | 1,448 | 5.824176 | 0.21978 | 0.066038 | 0.045283 | 0.048113 | 0.234906 | 0.133019 | 0 | 0 | 0 | 0 | 0 | 0.004815 | 0.139503 | 1,448 | 46 | 81 | 31.478261 | 0.845907 | 0.021409 | 0 | 0.096774 | 0 | 0 | 0.001415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.129032 | 0.16129 | 0.709677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f29b3898b8708134177f00224a5175df60ecfe99 | 1,175 | py | Python | djreact/tutorial_backend/src/articles/api/catan/Intersection.py | michaeltu1/Catan | 5bd60196aa9034307ae471f99c0d9b11344da9fe | [
"MIT"
] | null | null | null | djreact/tutorial_backend/src/articles/api/catan/Intersection.py | michaeltu1/Catan | 5bd60196aa9034307ae471f99c0d9b11344da9fe | [
"MIT"
] | null | null | null | djreact/tutorial_backend/src/articles/api/catan/Intersection.py | michaeltu1/Catan | 5bd60196aa9034307ae471f99c0d9b11344da9fe | [
"MIT"
] | 1 | 2021-08-21T02:05:08.000Z | 2021-08-21T02:05:08.000Z | class Intersection:
"""
Intersections will be referenced as tuples of the 3 adjacent tiles' IDs.
Ports will exist at some of the intersections between resource and ocean tiles;
their placement to be determined by game.py.
By default, no intersections will not have settlements or cities on them.... | 39.166667 | 86 | 0.655319 | 162 | 1,175 | 4.54321 | 0.364198 | 0.164402 | 0.203804 | 0.077446 | 0.311141 | 0.247283 | 0.247283 | 0.247283 | 0.247283 | 0.141304 | 0 | 0.007813 | 0.237447 | 1,175 | 29 | 87 | 40.517241 | 0.813616 | 0.234043 | 0 | 0.111111 | 0 | 0.055556 | 0.104358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f2b34eb855ca4c76dfdbb1af027460a9b79bbc41 | 60 | py | Python | sonar.py | culli/pibot | b96d066beeb234b4d0a5803a130aed45bd952ff9 | [
"MIT"
] | null | null | null | sonar.py | culli/pibot | b96d066beeb234b4d0a5803a130aed45bd952ff9 | [
"MIT"
] | null | null | null | sonar.py | culli/pibot | b96d066beeb234b4d0a5803a130aed45bd952ff9 | [
"MIT"
] | null | null | null | from rrb3 import *
rr = RRB3(9, 6)
print(rr.get_distance())
| 15 | 24 | 0.683333 | 11 | 60 | 3.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.15 | 60 | 3 | 25 | 20 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f2c74cffcc90fa7ceb0626817fe97973fb63043f | 85 | py | Python | src/humiolib/__init__.py | vishalkuo/python-humio | f16a30eba776138524e2c78701b52a0d5bbf0e6b | [
"Apache-2.0"
] | null | null | null | src/humiolib/__init__.py | vishalkuo/python-humio | f16a30eba776138524e2c78701b52a0d5bbf0e6b | [
"Apache-2.0"
] | null | null | null | src/humiolib/__init__.py | vishalkuo/python-humio | f16a30eba776138524e2c78701b52a0d5bbf0e6b | [
"Apache-2.0"
] | null | null | null | __version__ = "0.2.2"
from humiolib.HumioClient import HumioClient, HumioIngestClient | 42.5 | 63 | 0.835294 | 10 | 85 | 6.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.082353 | 85 | 2 | 63 | 42.5 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4b340d81e88accd8cdb771843b54e247d4f20d67 | 108 | py | Python | portmone/signals.py | ZvonokComGroup/django-portmone-ua | 43532b8fad04f5bcdd819f9fc108f2a067c8104c | [
"MIT"
] | null | null | null | portmone/signals.py | ZvonokComGroup/django-portmone-ua | 43532b8fad04f5bcdd819f9fc108f2a067c8104c | [
"MIT"
] | null | null | null | portmone/signals.py | ZvonokComGroup/django-portmone-ua | 43532b8fad04f5bcdd819f9fc108f2a067c8104c | [
"MIT"
] | null | null | null | from django.dispatch import Signal
# providing_args: "orderId", "payedAmount"
result_authorized = Signal()
| 21.6 | 42 | 0.787037 | 12 | 108 | 6.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 108 | 4 | 43 | 27 | 0.864583 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4b343d9b466b7d2593b6763176c2bb4c5fa6218e | 2,364 | py | Python | src/moca_modules/moca_shortcuts/shortcuts.py | el-ideal-ideas/MocaTwitterUtils | 544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3 | [
"MIT"
] | null | null | null | src/moca_modules/moca_shortcuts/shortcuts.py | el-ideal-ideas/MocaTwitterUtils | 544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3 | [
"MIT"
] | null | null | null | src/moca_modules/moca_shortcuts/shortcuts.py | el-ideal-ideas/MocaTwitterUtils | 544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3 | [
"MIT"
] | null | null | null | # -- Imports --------------------------------------------------------------------------
# -------------------------------------------------------------------------- Imports --
# -- Shortcuts --------------------------------------------------------------------------
from time import sleep, time
from asyncio import sl... | 42.981818 | 103 | 0.722081 | 298 | 2,364 | 5.577181 | 0.345638 | 0.04633 | 0.054753 | 0.016847 | 0.038508 | 0.038508 | 0.038508 | 0.038508 | 0.038508 | 0 | 0 | 0.000967 | 0.125212 | 2,364 | 54 | 104 | 43.777778 | 0.802708 | 0.170897 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.02381 | 0.904762 | 0 | 0.928571 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4b46571e0ce454119c42d56df7ac90b18c2395bd | 1,311 | py | Python | samples/LuceneInAction/lia/analysis/keyword/SimpleKeywordAnalyzer.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | 15 | 2015-05-21T09:28:01.000Z | 2022-03-18T23:41:49.000Z | samples/LuceneInAction/lia/analysis/keyword/SimpleKeywordAnalyzer.py | fnp/pylucene | fb16ac375de5479dec3919a5559cda02c899e387 | [
"Apache-2.0"
] | 1 | 2021-09-30T03:59:43.000Z | 2021-09-30T03:59:43.000Z | samples/LuceneInAction/lia/analysis/keyword/SimpleKeywordAnalyzer.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | 13 | 2015-04-18T23:05:11.000Z | 2021-11-29T21:23:26.000Z | # ====================================================================
# 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 re... | 36.416667 | 76 | 0.620137 | 144 | 1,311 | 5.590278 | 0.631944 | 0.074534 | 0.032298 | 0.039752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.218154 | 1,311 | 35 | 77 | 37.457143 | 0.77561 | 0.610984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4b7ee62ed96042a9d159153107b3d8588f137b40 | 1,196 | py | Python | python/src/modules/ingredients_list_provider.py | jarrett-m/is-vegan | 60e8c234fd3ed8a107e403b125448ed1627d4128 | [
"MIT"
] | 1 | 2021-03-27T21:52:14.000Z | 2021-03-27T21:52:14.000Z | python/src/modules/ingredients_list_provider.py | jarrett-m/is-vegan | 60e8c234fd3ed8a107e403b125448ed1627d4128 | [
"MIT"
] | null | null | null | python/src/modules/ingredients_list_provider.py | jarrett-m/is-vegan | 60e8c234fd3ed8a107e403b125448ed1627d4128 | [
"MIT"
] | null | null | null | import ingredient_list_loader as ill
supported_languages = ill.get_languages()
ingredients_language = supported_languages[0]
def get_ingredients_language():
'''Return the currently selected ingredients language.'''
return ingredients_language
def validate_ingredients_language(value):
'''Validates the ingredien... | 33.222222 | 124 | 0.742475 | 156 | 1,196 | 5.480769 | 0.333333 | 0.266667 | 0.140351 | 0.074854 | 0.161404 | 0.161404 | 0.161404 | 0.161404 | 0.161404 | 0.161404 | 0 | 0.012634 | 0.139632 | 1,196 | 35 | 125 | 34.171429 | 0.81827 | 0.206522 | 0 | 0 | 0 | 0 | 0.094505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4b95c86dd52cc1e7afed058d7666cf9e935b165c | 530 | py | Python | python/20200714/ex02.py | kogepanh/class-numeric | 4fd4cb56818339c6348f9f691c64fb33a09e1b69 | [
"MIT"
] | null | null | null | python/20200714/ex02.py | kogepanh/class-numeric | 4fd4cb56818339c6348f9f691c64fb33a09e1b69 | [
"MIT"
] | null | null | null | python/20200714/ex02.py | kogepanh/class-numeric | 4fd4cb56818339c6348f9f691c64fb33a09e1b69 | [
"MIT"
] | null | null | null | # ex02
def count_items(itemlist):
if len(itemlist) == 0:
return 0
if not isinstance(itemlist, list):
return 1
return count_items(itemlist[0]) + count_items(itemlist[1:])
lst1 = ["a", "b", "c"]
print 'count_items(', lst1, ') =', count_items(lst1)
lst2 = ["a", ["b", "c"], "d"]
print 'count_... | 25.238095 | 63 | 0.566038 | 74 | 530 | 3.905405 | 0.351351 | 0.380623 | 0.207612 | 0.027682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044186 | 0.188679 | 530 | 20 | 64 | 26.5 | 0.627907 | 0.007547 | 0 | 0 | 0 | 0 | 0.146947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4b9bdba73d0d557225614867adee408849ba5d98 | 89 | py | Python | angr/procedures/libc/srand.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/procedures/libc/srand.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/procedures/libc/srand.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import angr
class srand(angr.SimProcedure):
def run(self, seed):
self.ret()
| 14.833333 | 31 | 0.640449 | 12 | 89 | 4.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235955 | 89 | 5 | 32 | 17.8 | 0.838235 | 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 | 0 | 0 | 0 | 3 |
4ba2bc6d755e53fdb1ebe8c28d71d20b5fee5a44 | 213 | py | Python | backend/services/web/api/pups/interface.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | 3 | 2021-04-16T14:37:47.000Z | 2021-06-28T21:13:50.000Z | backend/services/web/api/pups/interface.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | 1 | 2021-04-17T14:45:59.000Z | 2021-04-17T14:45:59.000Z | backend/services/web/api/pups/interface.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | null | null | null | from typing_extensions import TypedDict
class IPup(TypedDict, total=False):
id: int
name: str
video_filename: str
creator_id: int
join_code: str
created_at: int
preview_filename: str
| 17.75 | 39 | 0.704225 | 29 | 213 | 4.965517 | 0.724138 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 213 | 11 | 40 | 19.363636 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ba72ec8700d68f27d15d0d3a93ef7cf78d612ce | 243 | py | Python | src/clustaar/authorize/action.py | Clustaar/clustaar.authorize | 19a645f12fdee30aaf953d727ad1e92dd839bc8d | [
"MIT"
] | null | null | null | src/clustaar/authorize/action.py | Clustaar/clustaar.authorize | 19a645f12fdee30aaf953d727ad1e92dd839bc8d | [
"MIT"
] | null | null | null | src/clustaar/authorize/action.py | Clustaar/clustaar.authorize | 19a645f12fdee30aaf953d727ad1e92dd839bc8d | [
"MIT"
] | null | null | null | class Action(object):
"""
Represents an action that `Ability` can allow or forbid access to.
"""
def __init__(self, name):
"""
Args:
name (str): the action name
"""
self.name = name
| 20.25 | 70 | 0.514403 | 27 | 243 | 4.481481 | 0.740741 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 243 | 11 | 71 | 22.090909 | 0.79085 | 0.427984 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2998f0ded3a9ba8dcbe4a553c4f86c7aabbd99f8 | 401 | py | Python | app/converters.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | app/converters.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | 139 | 2018-12-26T07:54:31.000Z | 2021-06-01T23:14:45.000Z | app/converters.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Collection of converters.
"""
from datetime import timedelta
def timedelta_to_minutes(delta: timedelta) -> int:
"""
Get the time delta in full minutes, without remaining seconds.
:param delta: The time delta to get in minutes.
:return: The delta in minute... | 21.105263 | 70 | 0.645885 | 50 | 401 | 5.12 | 0.56 | 0.054688 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.244389 | 401 | 18 | 71 | 22.277778 | 0.834984 | 0.538653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
29cb2101f245564b2e6b9d3f8df904d001b9b400 | 58 | py | Python | app/config.py | nalinimsingh/3Doodle | 47700fe0ad0704978aba8a49c308c697b1544165 | [
"MIT"
] | null | null | null | app/config.py | nalinimsingh/3Doodle | 47700fe0ad0704978aba8a49c308c697b1544165 | [
"MIT"
] | null | null | null | app/config.py | nalinimsingh/3Doodle | 47700fe0ad0704978aba8a49c308c697b1544165 | [
"MIT"
] | null | null | null | web_port = 5000
phone_xy_port = 8888
phone_z_port = 8889
| 11.6 | 20 | 0.775862 | 11 | 58 | 3.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.172414 | 58 | 4 | 21 | 14.5 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29e78450844c98075cbe4949b36b385201a9e20b | 425 | py | Python | mongo/datadog_checks/mongo/collectors/__init__.py | vcabbage/integrations-core | 449aa06adbb2f37072336fc71c50a4b5385cfd8f | [
"BSD-3-Clause"
] | null | null | null | mongo/datadog_checks/mongo/collectors/__init__.py | vcabbage/integrations-core | 449aa06adbb2f37072336fc71c50a4b5385cfd8f | [
"BSD-3-Clause"
] | null | null | null | mongo/datadog_checks/mongo/collectors/__init__.py | vcabbage/integrations-core | 449aa06adbb2f37072336fc71c50a4b5385cfd8f | [
"BSD-3-Clause"
] | null | null | null | from .base import MongoCollector
from .coll_stats import CollStatsCollector
from .current_op import CurrentOpCollector
from .custom_queries import CustomQueriesCollector
from .db_stat import DbStatCollector
from .index_stats import IndexStatsCollector
from .replica import ReplicaCollector
from .replication_info import ... | 38.636364 | 55 | 0.882353 | 47 | 425 | 7.829787 | 0.595745 | 0.059783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 425 | 10 | 56 | 42.5 | 0.955844 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4b211ac66a04736907c2c01906534eb2404b7fd8 | 378 | py | Python | emailer/smtp.py | celiala/batch-emailer | 6d73b0e2d2988a8a6d7c3248a7a17a640c8e699a | [
"MIT"
] | null | null | null | emailer/smtp.py | celiala/batch-emailer | 6d73b0e2d2988a8a6d7c3248a7a17a640c8e699a | [
"MIT"
] | null | null | null | emailer/smtp.py | celiala/batch-emailer | 6d73b0e2d2988a8a6d7c3248a7a17a640c8e699a | [
"MIT"
] | null | null | null | import smtplib
class SmtpConfig(object):
def __init__(self, smtp_server, email, password):
self.server = smtplib.SMTP(smtp_server)
self.server.ehlo()
self.server.starttls()
self.server.ehlo()
self.server.login(email, password)
def get_server(self):
return self.... | 22.235294 | 53 | 0.634921 | 45 | 378 | 5.088889 | 0.422222 | 0.305677 | 0.122271 | 0.157205 | 0.209607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253968 | 378 | 16 | 54 | 23.625 | 0.812057 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.166667 | 0.083333 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4b26bf86aee9227dd37fdb2f17042000e17c952d | 91 | py | Python | fortune/__init__.py | entchen66/sinbad3.1 | 3353118b8693c84d5572ab2a7a2278a32be2a76c | [
"MIT"
] | null | null | null | fortune/__init__.py | entchen66/sinbad3.1 | 3353118b8693c84d5572ab2a7a2278a32be2a76c | [
"MIT"
] | null | null | null | fortune/__init__.py | entchen66/sinbad3.1 | 3353118b8693c84d5572ab2a7a2278a32be2a76c | [
"MIT"
] | 1 | 2020-02-29T10:57:21.000Z | 2020-02-29T10:57:21.000Z | from .fortune import Fortune
def setup(bot):
cog = Fortune(bot)
bot.add_cog(cog)
| 13 | 28 | 0.67033 | 14 | 91 | 4.285714 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21978 | 91 | 6 | 29 | 15.166667 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9b7b7fad19e0e3aff4cf6e649e060da8cd3919e | 717 | py | Python | tests/test_2043.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | 2 | 2020-12-08T13:59:10.000Z | 2021-05-01T05:07:39.000Z | tests/test_2043.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_2043.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | 1 | 2021-05-02T17:42:02.000Z | 2021-05-02T17:42:02.000Z | #!/usr/bin/env python
import pytest
"""
Test 2043. Simple Bank System
"""
@pytest.fixture(scope="session")
def init_variables_2043():
from src.leetcode_2043_simple_bank_system import Bank
solution = Bank([10, 100, 20, 50, 30])
def _init_variables_2043():
return solution
yield _init_variab... | 24.724138 | 64 | 0.690377 | 97 | 717 | 4.835052 | 0.443299 | 0.249467 | 0.326226 | 0.245203 | 0.347548 | 0.215352 | 0 | 0 | 0 | 0 | 0 | 0.135182 | 0.195258 | 717 | 28 | 65 | 25.607143 | 0.677643 | 0.027894 | 0 | 0 | 0 | 0 | 0.010622 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.2 | false | 0 | 0.133333 | 0.066667 | 0.466667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9b7ec6681c05e818466e13d2a1fe352f1fd909d | 420 | py | Python | core/scripts/xml-client-test.py | SUSE/auditlog-keeper | 7a77e4186123881990f89ef92c6da7f30d30989e | [
"Apache-2.0"
] | 1 | 2020-07-29T14:18:43.000Z | 2020-07-29T14:18:43.000Z | core/scripts/xml-client-test.py | SUSE/auditlog-keeper | 7a77e4186123881990f89ef92c6da7f30d30989e | [
"Apache-2.0"
] | 1 | 2015-01-07T12:38:22.000Z | 2015-01-07T12:38:22.000Z | core/scripts/xml-client-test.py | SUSE/auditlog-keeper | 7a77e4186123881990f89ef92c6da7f30d30989e | [
"Apache-2.0"
] | 2 | 2017-11-24T09:19:41.000Z | 2020-12-12T21:01:21.000Z | #!/usr/bin/python
import xmlrpclib
server = xmlrpclib.ServerProxy("http://10.11.138.23:6888/")
#server = xmlrpclib.ServerProxy("http://eucavm055.suse.de:6888/")
extmap = {'EVT.TYPE' : 'ADD_USER', 'EVT.SRC' : 'BACKEND_API',
'REQ.foo' : 'bar', 'REQ.spam' : 'baz', 'REQ.name' : 'fred',
'EVT.URL' : 'http://... | 30 | 78 | 0.621429 | 59 | 420 | 4.389831 | 0.728814 | 0.11583 | 0.200772 | 0.23166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073973 | 0.130952 | 420 | 13 | 79 | 32.307692 | 0.635616 | 0.190476 | 0 | 0 | 0 | 0 | 0.430267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9b8e0bc64b2035b9191f7db6368376cd548c717 | 10,871 | py | Python | tests/examples/tokens/test_erc721.py | ehanoc/vyper | 26403f41bc714d3de32dbab5eacb70ccdaffa2d5 | [
"MIT"
] | 3 | 2019-11-25T06:20:52.000Z | 2020-04-20T22:38:06.000Z | tests/examples/tokens/test_erc721.py | LayerXcom/vyper | 26403f41bc714d3de32dbab5eacb70ccdaffa2d5 | [
"MIT"
] | 1 | 2019-02-22T23:21:51.000Z | 2019-02-23T00:46:17.000Z | tests/examples/tokens/test_erc721.py | LayerXcom/vyper | 26403f41bc714d3de32dbab5eacb70ccdaffa2d5 | [
"MIT"
] | 1 | 2019-02-18T18:50:53.000Z | 2019-02-18T18:50:53.000Z | import pytest
SOMEONE_TOKEN_IDS = [1, 2, 3]
OPERATOR_TOKEN_ID = 10
NEW_TOKEN_ID = 20
INVALID_TOKEN_ID = 99
ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
ERC165_INTERFACE_ID = '0x0000000000000000000000000000000000000000000000000000000001ffc9a7'
ERC721_INTERFACE_ID = '0x000000000000000000000000000000000000... | 32.942424 | 118 | 0.698832 | 1,443 | 10,871 | 5.051975 | 0.073458 | 0.070782 | 0.088477 | 0.059259 | 0.778738 | 0.746091 | 0.704664 | 0.655967 | 0.584636 | 0.56845 | 0 | 0.047093 | 0.183516 | 10,871 | 329 | 119 | 33.042553 | 0.774223 | 0.064116 | 0 | 0.601852 | 0 | 0 | 0.072837 | 0.032032 | 0 | 0 | 0.023655 | 0 | 0.486111 | 1 | 0.078704 | false | 0 | 0.00463 | 0 | 0.092593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9c0e9e276baf4ad43132c57854820060d9adde2 | 1,102 | py | Python | electrum_blk/plugins/coldcard/cmdline.py | nedcloud-blackchain/electrum-blk | bf1992ecac9fffcc52e229e249da400b8751324e | [
"MIT"
] | 2 | 2022-03-09T18:21:02.000Z | 2022-03-13T13:27:07.000Z | electrum_blk/plugins/coldcard/cmdline.py | nedcloud-blackchain/electrum-blk | bf1992ecac9fffcc52e229e249da400b8751324e | [
"MIT"
] | null | null | null | electrum_blk/plugins/coldcard/cmdline.py | nedcloud-blackchain/electrum-blk | bf1992ecac9fffcc52e229e249da400b8751324e | [
"MIT"
] | 1 | 2022-02-21T07:38:29.000Z | 2022-02-21T07:38:29.000Z | from electrum_blk.plugin import hook
from electrum_blk.util import print_msg, raw_input, print_stderr
from electrum_blk.logging import get_logger
from ..hw_wallet.cmdline import CmdLineHandler
from .coldcard import ColdcardPlugin
_logger = get_logger(__name__)
class ColdcardCmdLineHandler(CmdLineHandler):
de... | 22.04 | 64 | 0.696007 | 132 | 1,102 | 5.606061 | 0.454545 | 0.037838 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227768 | 1,102 | 49 | 65 | 22.489796 | 0.869565 | 0.002722 | 0 | 0.16129 | 0 | 0 | 0.020055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0.096774 | 0.16129 | 0.032258 | 0.645161 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d9c3de8b4be1b2209875682ea52bf6a00ca453be | 320 | py | Python | other/2-bit.py | RainbowLegend/my_first_binary_converter | 44b9b64033054db25db2b50b35c5130737f0acbe | [
"WTFPL"
] | 1 | 2020-05-24T17:03:24.000Z | 2020-05-24T17:03:24.000Z | other/2-bit.py | RainbowLegend/my_first_binary_converter | 44b9b64033054db25db2b50b35c5130737f0acbe | [
"WTFPL"
] | 1 | 2018-11-21T02:50:24.000Z | 2018-11-21T03:32:31.000Z | other/2-bit.py | RainbowLegend/my_first_binary_converter | 44b9b64033054db25db2b50b35c5130737f0acbe | [
"WTFPL"
] | 1 | 2018-11-21T04:43:04.000Z | 2018-11-21T04:43:04.000Z | print('Welcome to my first converter!!!!')
num = input('Whats your number???')
if '00' == num:
print('The number is 0!!!')
if '01' == num:
print('The number is 1!!!')
if '10' == num:
print('The number is 2!!!')
if '11' == num:
print('The number is 3!!!')
print('Thanks for using my calculator!!!!')
| 18.823529 | 43 | 0.5625 | 49 | 320 | 3.673469 | 0.530612 | 0.177778 | 0.244444 | 0.377778 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.2125 | 320 | 16 | 44 | 20 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.521875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d9c61c85da50b293f6fe46cdbd17415de27e5f96 | 552 | py | Python | config.py | ignacio820209/contexto_nlp | 762e7b54d8c26001688b896e7e4673ebe469fdad | [
"MIT"
] | null | null | null | config.py | ignacio820209/contexto_nlp | 762e7b54d8c26001688b896e7e4673ebe469fdad | [
"MIT"
] | null | null | null | config.py | ignacio820209/contexto_nlp | 762e7b54d8c26001688b896e7e4673ebe469fdad | [
"MIT"
] | null | null | null | #--------------------------------------------------------------------------------
# These tokens are needed for user authentication.
# Credentials can be generated via Twitter's Application Management:
# https://developer.twitter.com/en/apps
#---------------------------------------------------------------------------... | 50.181818 | 81 | 0.594203 | 35 | 552 | 9.257143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 552 | 10 | 82 | 55.2 | 0.627907 | 0.572464 | 0 | 0 | 1 | 0 | 0.65368 | 0.5671 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9c758b031714055e3c2a9cc7b5da8aff23f36c7 | 235 | py | Python | bebackup/FTPConfig.py | valouugit/BeBackup | 46c520135d660dec116c1b0ea0209a4042e2c67b | [
"MIT"
] | 4 | 2021-06-14T12:07:57.000Z | 2021-10-01T10:56:40.000Z | bebackup/FTPConfig.py | valouugit/BeBackup | 46c520135d660dec116c1b0ea0209a4042e2c67b | [
"MIT"
] | null | null | null | bebackup/FTPConfig.py | valouugit/BeBackup | 46c520135d660dec116c1b0ea0209a4042e2c67b | [
"MIT"
] | null | null | null | class FTPConfig():
def __init__(self, hostname, username, password):
self.hostname = hostname
self.username = username
self.password = password
self.backup_dir = None
self.backup_name = None | 29.375 | 53 | 0.638298 | 25 | 235 | 5.76 | 0.48 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280851 | 235 | 8 | 54 | 29.375 | 0.852071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d9c79639ab618c7a2d4d43a013f78cf9772289e7 | 13,317 | py | Python | src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py | Sneezry/azure-cli-extensions | bd186fe31c8fbd8c8b945fb749349e7f243be532 | [
"MIT"
] | 1 | 2021-08-31T19:10:04.000Z | 2021-08-31T19:10:04.000Z | src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py | Sneezry/azure-cli-extensions | bd186fe31c8fbd8c8b945fb749349e7f243be532 | [
"MIT"
] | 5 | 2022-03-08T17:46:24.000Z | 2022-03-23T18:27:45.000Z | src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py | Sneezry/azure-cli-extensions | bd186fe31c8fbd8c8b945fb749349e7f243be532 | [
"MIT"
] | 1 | 2021-06-09T18:38:47.000Z | 2021-06-09T18:38:47.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 43.662295 | 94 | 0.760607 | 1,103 | 13,317 | 8.94651 | 0.142339 | 0.170247 | 0.110661 | 0.161735 | 0.291042 | 0.072355 | 0.072355 | 0.072355 | 0.072355 | 0.072355 | 0 | 0.00775 | 0.176391 | 13,317 | 304 | 95 | 43.805921 | 0.891958 | 0.115942 | 0 | 0 | 0 | 0 | 0.174728 | 0.104015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.578231 | 0 | 0.578231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d9de6d45a9e4199ccb008405eb789a1133050b3e | 135 | py | Python | Python/Camera/picamera_test01.py | ADaMiller14/Engineering_4_Notebook | 80055b21eb9bdafef0c0a28578c1ad984dc444fc | [
"Xnet",
"X11"
] | null | null | null | Python/Camera/picamera_test01.py | ADaMiller14/Engineering_4_Notebook | 80055b21eb9bdafef0c0a28578c1ad984dc444fc | [
"Xnet",
"X11"
] | null | null | null | Python/Camera/picamera_test01.py | ADaMiller14/Engineering_4_Notebook | 80055b21eb9bdafef0c0a28578c1ad984dc444fc | [
"Xnet",
"X11"
] | null | null | null | from picamera import PiCamera
from time import sleep
myCamera = PiCamera()
myCamera.start_preview()
sleep(5)
myCamera.stop_preview()
| 15 | 29 | 0.8 | 18 | 135 | 5.888889 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.118519 | 135 | 8 | 30 | 16.875 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d9e0a54dd5befe6e794269bc007e2164460148d0 | 833 | py | Python | bark_ml/library_wrappers/lib_tf2rl/agents/tf2rl_agent.py | GAIL-4-BARK/bark-ml | c61c897842c2184ee842428e451bae3be2cd7242 | [
"MIT"
] | null | null | null | bark_ml/library_wrappers/lib_tf2rl/agents/tf2rl_agent.py | GAIL-4-BARK/bark-ml | c61c897842c2184ee842428e451bae3be2cd7242 | [
"MIT"
] | 24 | 2020-05-05T13:53:17.000Z | 2020-08-13T15:58:51.000Z | bark_ml/library_wrappers/lib_tf2rl/agents/tf2rl_agent.py | Brucknem/bark-ml | c61c897842c2184ee842428e451bae3be2cd7242 | [
"MIT"
] | null | null | null | from bark_ml.library_wrappers.lib_tf2rl.tf2rl_wrapper import TF2RLWrapper # needed?
import tf2rl
from bark.core.models.behavior import BehaviorModel
import sys
import logging
import time
import tensorflow as tf
tf.compat.v1.enable_v2_behavior()
class BehaviorTF2RLAgent:
"""Base class for agents based on the tf2rl ... | 26.870968 | 106 | 0.711885 | 99 | 833 | 5.858586 | 0.626263 | 0.027586 | 0.048276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.212485 | 833 | 30 | 107 | 27.766667 | 0.871951 | 0.372149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.411765 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d9e7475d891984c8c7c7d23512e0e5cb396a3f9b | 118 | py | Python | chainermin/utils/__init__.py | tsurumeso/chainermin | 1b6c39aadaefe6941ad06877a6ced939b996d090 | [
"MIT"
] | 1 | 2017-07-18T08:04:10.000Z | 2017-07-18T08:04:10.000Z | chainermin/utils/__init__.py | tsurumeso/chainermin | 1b6c39aadaefe6941ad06877a6ced939b996d090 | [
"MIT"
] | null | null | null | chainermin/utils/__init__.py | tsurumeso/chainermin | 1b6c39aadaefe6941ad06877a6ced939b996d090 | [
"MIT"
] | null | null | null | import numpy
def force_array(x):
if numpy.isscalar(x):
return numpy.array(x)
else:
return x
| 13.111111 | 29 | 0.59322 | 17 | 118 | 4.058824 | 0.588235 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313559 | 118 | 8 | 30 | 14.75 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
d9f560637f872f446bfafb8a352cd0527101521f | 223 | py | Python | course_access_groups/__init__.py | appsembler/course-access-groups | 601b17b8edda8fc41594e7ea2f53ba1800e03c49 | [
"MIT"
] | 4 | 2020-03-09T15:47:17.000Z | 2021-09-08T09:17:42.000Z | course_access_groups/__init__.py | appsembler/course-access-groups | 601b17b8edda8fc41594e7ea2f53ba1800e03c49 | [
"MIT"
] | 51 | 2019-11-26T14:09:33.000Z | 2022-03-09T08:27:59.000Z | course_access_groups/__init__.py | appsembler/course-access-groups | 601b17b8edda8fc41594e7ea2f53ba1800e03c49 | [
"MIT"
] | 3 | 2020-04-12T22:33:24.000Z | 2021-09-30T20:28:03.000Z | """
An Open edX plugin to customize courses access by grouping learners and assigning different permissions to groups..
"""
__version__ = '0.5.1'
default_app_config = 'course_access_groups.apps.CourseAccessGroupsConfig'
| 24.777778 | 115 | 0.793722 | 29 | 223 | 5.827586 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.125561 | 223 | 8 | 116 | 27.875 | 0.851282 | 0.515695 | 0 | 0 | 0 | 0 | 0.55 | 0.5 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9fbff24ff7cfc967462c2575dafef5dedfa1afa | 26,159 | py | Python | python/ccxt/async/coinexchange.py | sleepingAnt/ccxt | 3c8d62f48726d217e06b252800ca36950208bc47 | [
"MIT"
] | 1 | 2018-07-06T08:14:13.000Z | 2018-07-06T08:14:13.000Z | python/ccxt/async/coinexchange.py | bigboyzhang/ccxt | e3d2b6d8de8d475480b0df3c7179f780c377427e | [
"MIT"
] | null | null | null | python/ccxt/async/coinexchange.py | bigboyzhang/ccxt | e3d2b6d8de8d475480b0df3c7179f780c377427e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
class coinexchange (Exchange):
... | 37.15767 | 126 | 0.263122 | 2,114 | 26,159 | 3.237465 | 0.337275 | 0.117475 | 0.013296 | 0.019433 | 0.059322 | 0.045149 | 0.036382 | 0.025132 | 0.025132 | 0.014904 | 0 | 0.129235 | 0.603922 | 26,159 | 703 | 127 | 37.210526 | 0.531319 | 0.007416 | 0 | 0.034985 | 1 | 0.001458 | 0.122771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004373 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9fde3027bac9962fd9b96cf3aec0102f0ed98ef | 2,976 | py | Python | modules/core/core.py | ta946/sublime_debugger | 7da77f120399b162ed5f23101294bc74540ca411 | [
"MIT"
] | 47 | 2018-10-28T09:09:39.000Z | 2019-06-29T12:47:17.000Z | modules/core/core.py | ta946/sublime_debugger | 7da77f120399b162ed5f23101294bc74540ca411 | [
"MIT"
] | 18 | 2018-10-28T20:30:38.000Z | 2019-04-28T17:24:28.000Z | modules/core/core.py | ta946/sublime_debugger | 7da77f120399b162ed5f23101294bc74540ca411 | [
"MIT"
] | 7 | 2018-10-28T18:43:02.000Z | 2019-04-25T14:29:48.000Z | from __future__ import annotations
from ..typecheck import *
import sublime
import concurrent
import asyncio
from .log import exception
from .sublime_event_loop import SublimeEventLoop
T = TypeVar('T')
Args = TypeVarTuple('Args')
CancelledError = asyncio.CancelledError
sublime_event_loop = SublimeEventLoop() #type... | 33.818182 | 147 | 0.753696 | 412 | 2,976 | 5.196602 | 0.216019 | 0.075666 | 0.127043 | 0.084073 | 0.303596 | 0.246614 | 0.215787 | 0.198972 | 0.163475 | 0.163475 | 0 | 0.000378 | 0.111895 | 2,976 | 87 | 148 | 34.206897 | 0.809686 | 0.066868 | 0 | 0.033333 | 0 | 0 | 0.003619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.283333 | false | 0 | 0.116667 | 0.2 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a18fb9607fdbec95bff443655ad66b4d08bed88 | 67,544 | py | Python | Tests/test_Seq_objs.py | uci-ics-32/biopython | ff7d3703d442192a1f6d84c52e028d566d44ff1c | [
"BSD-3-Clause"
] | 1 | 2022-01-04T21:38:03.000Z | 2022-01-04T21:38:03.000Z | Tests/test_Seq_objs.py | uci-ics-32/biopython | ff7d3703d442192a1f6d84c52e028d566d44ff1c | [
"BSD-3-Clause"
] | null | null | null | Tests/test_Seq_objs.py | uci-ics-32/biopython | ff7d3703d442192a1f6d84c52e028d566d44ff1c | [
"BSD-3-Clause"
] | 1 | 2021-07-06T08:02:11.000Z | 2021-07-06T08:02:11.000Z | # Copyright 2009 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Unittests for the Seq objects."""
import unittest
import warnings
from Bio import BiopythonDep... | 45.823609 | 100 | 0.538345 | 7,369 | 67,544 | 4.866196 | 0.068666 | 0.041496 | 0.056889 | 0.028584 | 0.814607 | 0.77247 | 0.674363 | 0.594272 | 0.487046 | 0.447112 | 0 | 0.031033 | 0.321109 | 67,544 | 1,473 | 101 | 45.854718 | 0.750976 | 0.076824 | 0 | 0.410815 | 0 | 0 | 0.051181 | 0 | 0 | 0 | 0 | 0.000679 | 0.426957 | 1 | 0.045198 | false | 0 | 0.011299 | 0 | 0.060533 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a2bd6165f5c9774b7620cdb873e9ef238ad2017 | 928 | py | Python | src/python/grinch/models/Ent.py | nmonath/coref_tools | 542659170897ad05f7612639cb918886859ae9d6 | [
"Apache-2.0"
] | null | null | null | src/python/grinch/models/Ent.py | nmonath/coref_tools | 542659170897ad05f7612639cb918886859ae9d6 | [
"Apache-2.0"
] | null | null | null | src/python/grinch/models/Ent.py | nmonath/coref_tools | 542659170897ad05f7612639cb918886859ae9d6 | [
"Apache-2.0"
] | null | null | null | """
Copyright (C) 2018 University of Massachusetts Amherst.
This file is part of "coref_tools"
http://github.com/nmonath/coref_tools
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.... | 34.37037 | 72 | 0.751078 | 135 | 928 | 5.111111 | 0.666667 | 0.086957 | 0.037681 | 0.046377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010458 | 0.175647 | 928 | 26 | 73 | 35.692308 | 0.891503 | 0.740302 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8a31a854b40a3ad4ba7339b57991aca7c7223b95 | 187 | py | Python | incident_io_client/models/incidents_create_request_body_visibility.py | expobrain/python-incidentio-client | be15e0370dc3feb979e448f87b40906d12331467 | [
"MIT"
] | null | null | null | incident_io_client/models/incidents_create_request_body_visibility.py | expobrain/python-incidentio-client | be15e0370dc3feb979e448f87b40906d12331467 | [
"MIT"
] | null | null | null | incident_io_client/models/incidents_create_request_body_visibility.py | expobrain/python-incidentio-client | be15e0370dc3feb979e448f87b40906d12331467 | [
"MIT"
] | null | null | null | from enum import Enum
class IncidentsCreateRequestBodyVisibility(str, Enum):
PUBLIC = "public"
PRIVATE = "private"
def __str__(self) -> str:
return str(self.value)
| 18.7 | 54 | 0.679144 | 20 | 187 | 6.15 | 0.6 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224599 | 187 | 9 | 55 | 20.777778 | 0.848276 | 0 | 0 | 0 | 0 | 0 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
8a39ea8b875ac19261bdc4bad7cc751f2ea164a1 | 2,749 | py | Python | apps/product/models.py | Iyonissio/Kadju-App | 51797fc5d5a4f98fffe80bbed4d96c43b8cd0b04 | [
"MIT"
] | null | null | null | apps/product/models.py | Iyonissio/Kadju-App | 51797fc5d5a4f98fffe80bbed4d96c43b8cd0b04 | [
"MIT"
] | null | null | null | apps/product/models.py | Iyonissio/Kadju-App | 51797fc5d5a4f98fffe80bbed4d96c43b8cd0b04 | [
"MIT"
] | null | null | null | from io import BytesIO
from PIL import Image
from django.core.files import File
from django.db import models
from apps.vendor.models import Vendor
class Category(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
ordering = models.IntegerField(default=0)
cl... | 32.341176 | 93 | 0.64096 | 330 | 2,749 | 5.218182 | 0.269697 | 0.060395 | 0.037747 | 0.049361 | 0.68525 | 0.68525 | 0.656214 | 0.609756 | 0.609756 | 0.609756 | 0 | 0.020843 | 0.249545 | 2,749 | 85 | 94 | 32.341176 | 0.813863 | 0 | 0 | 0.746269 | 0 | 0 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.074627 | 0.029851 | 0.61194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
8a3bd0d639fdb08b2e9388930fcfbf7606f6e56c | 962 | py | Python | skunkbooth/filters/flip.py | josflesan/SkunkBooth | 29dea6e5301ac7e6c21d6c1f8beec4143d22d4b4 | [
"MIT"
] | null | null | null | skunkbooth/filters/flip.py | josflesan/SkunkBooth | 29dea6e5301ac7e6c21d6c1f8beec4143d22d4b4 | [
"MIT"
] | null | null | null | skunkbooth/filters/flip.py | josflesan/SkunkBooth | 29dea6e5301ac7e6c21d6c1f8beec4143d22d4b4 | [
"MIT"
] | null | null | null | from typing import List, Tuple
class filter:
"""Flip image horizontally"""
def __init__(self):
"""
Init required values.
textOp True = operation on ASCII art, False = operation on PIL image
name will be the name of the filter to be used for display/indexing
"""
... | 30.0625 | 84 | 0.606029 | 131 | 962 | 4.419847 | 0.450382 | 0.062176 | 0.062176 | 0.082902 | 0.276339 | 0.276339 | 0.276339 | 0.189983 | 0.189983 | 0.189983 | 0 | 0 | 0.299376 | 962 | 31 | 85 | 31.032258 | 0.85905 | 0.474012 | 0 | 0.153846 | 0 | 0 | 0.008989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.153846 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8a4a0c93acf38ebf3f9dfdd48d2b947274ce03e3 | 8,201 | py | Python | tests/test_specialize.py | libing4752/myia | 3bfb8ac20468bfc7be34128a396f79f2e03b24a1 | [
"MIT"
] | null | null | null | tests/test_specialize.py | libing4752/myia | 3bfb8ac20468bfc7be34128a396f79f2e03b24a1 | [
"MIT"
] | null | null | null | tests/test_specialize.py | libing4752/myia | 3bfb8ac20468bfc7be34128a396f79f2e03b24a1 | [
"MIT"
] | null | null | null |
import numpy
from pytest import mark
from myia.abstract import from_value
from myia.pipeline import scalar_debug_pipeline, standard_debug_pipeline
from myia.composite import list_map
from myia.debug.label import short_labeler as lbl
from myia.debug.traceback import print_inference_error
from myia.abstract import Infe... | 21.301299 | 78 | 0.566394 | 1,177 | 8,201 | 3.829227 | 0.195412 | 0.017306 | 0.014422 | 0.03661 | 0.329709 | 0.224318 | 0.202796 | 0.157533 | 0.114489 | 0.078544 | 0 | 0.026742 | 0.306914 | 8,201 | 384 | 79 | 21.356771 | 0.766186 | 0.07999 | 0 | 0.279693 | 0 | 0 | 0.032545 | 0 | 0 | 0 | 0 | 0.002604 | 0.003831 | 1 | 0.260536 | false | 0 | 0.045977 | 0.130268 | 0.578544 | 0.019157 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a5475c0b1d31ed797541b9f798b79835dbfacba | 153 | py | Python | iaso/storage.py | ekhalilbsq/iaso | e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee | [
"MIT"
] | 29 | 2020-12-26T07:22:19.000Z | 2022-03-07T13:40:09.000Z | iaso/storage.py | ekhalilbsq/iaso | e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee | [
"MIT"
] | 150 | 2020-11-09T15:03:27.000Z | 2022-03-07T15:36:07.000Z | iaso/storage.py | ekhalilbsq/iaso | e6400c52aeb4f67ce1ca83b03efa3cb11ef235ee | [
"MIT"
] | 4 | 2020-11-09T10:38:13.000Z | 2021-10-04T09:42:47.000Z | from storages.backends.s3boto3 import S3Boto3Storage
class StaticStorage(S3Boto3Storage):
location = "iasostatics"
default_acl = "public-read"
| 21.857143 | 52 | 0.777778 | 15 | 153 | 7.866667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.143791 | 153 | 6 | 53 | 25.5 | 0.854962 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8a62ecb1b1736a9166672d2fc93b15ed46a36859 | 192 | py | Python | WorkingWithStrings/Stripfunctions.py | zac11/AutomateThingsWithPython | 91289700781ab5509fdb0721e742bc57d465cc87 | [
"MIT"
] | null | null | null | WorkingWithStrings/Stripfunctions.py | zac11/AutomateThingsWithPython | 91289700781ab5509fdb0721e742bc57d465cc87 | [
"MIT"
] | null | null | null | WorkingWithStrings/Stripfunctions.py | zac11/AutomateThingsWithPython | 91289700781ab5509fdb0721e742bc57d465cc87 | [
"MIT"
] | null | null | null | String1=" Python is awesome "
print(String1.strip())
print(String1.lstrip())
print(String1.rstrip())
String2="LarryKingLarryKingLarryKingLarryKing"
print(String2.strip('King'))
| 17.454545 | 46 | 0.723958 | 19 | 192 | 7.315789 | 0.578947 | 0.258993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 0.130208 | 192 | 10 | 47 | 19.2 | 0.796407 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8a654010304f60274d84eca6bde47c149b4273ac | 1,681 | py | Python | crawler_test.py | Wei-Jianan/TCD-Advanced-SE | abdd527522f8534d465ad4a9a2eea31e7b130a8a | [
"MIT"
] | 1 | 2018-01-29T11:15:12.000Z | 2018-01-29T11:15:12.000Z | crawler_test.py | Wei-Jianan/TCD-Advanced-SE | abdd527522f8534d465ad4a9a2eea31e7b130a8a | [
"MIT"
] | null | null | null | crawler_test.py | Wei-Jianan/TCD-Advanced-SE | abdd527522f8534d465ad4a9a2eea31e7b130a8a | [
"MIT"
] | 5 | 2018-01-18T12:56:57.000Z | 2018-03-08T11:30:33.000Z | import unittest
import crawler
import random
import json
from crawler import requestAllBusStatic, requestAllBikeRealtime, requestAllBusRealTime, saveToRedis
class TestCrawler(unittest.TestCase):
def test_requestAllBikeRealtime(self):
results = requestAllBikeRealtime()
self.assertTrue(isinstance(re... | 37.355556 | 99 | 0.637121 | 179 | 1,681 | 5.916201 | 0.273743 | 0.076487 | 0.188857 | 0.21152 | 0.567517 | 0.567517 | 0.521246 | 0.521246 | 0.521246 | 0.521246 | 0 | 0.006902 | 0.224271 | 1,681 | 44 | 100 | 38.204545 | 0.805215 | 0 | 0 | 0.368421 | 0 | 0 | 0.057704 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.078947 | false | 0 | 0.131579 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a6b9ccbbc97e0f54fbc51e2c9af865a0a733214 | 502 | py | Python | src/seabreeze/pyseabreeze/features/multicast.py | moritzj29/python-seabreeze | 8bc579b1efecab106a96835d867244f93b8b40bc | [
"MIT"
] | null | null | null | src/seabreeze/pyseabreeze/features/multicast.py | moritzj29/python-seabreeze | 8bc579b1efecab106a96835d867244f93b8b40bc | [
"MIT"
] | null | null | null | src/seabreeze/pyseabreeze/features/multicast.py | moritzj29/python-seabreeze | 8bc579b1efecab106a96835d867244f93b8b40bc | [
"MIT"
] | null | null | null | from seabreeze.pyseabreeze.features._base import SeaBreezeFeature
# Definition
# ==========
#
# TODO: This feature needs to be implemented for pyseabreeze
#
class SeaBreezeMulticastFeature(SeaBreezeFeature):
identifier = 'multicast'
def get_multicast_enable_state(self, interface_index):
raise NotImp... | 29.529412 | 72 | 0.766932 | 52 | 502 | 7.211538 | 0.634615 | 0.088 | 0.106667 | 0.128 | 0.453333 | 0.453333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149402 | 502 | 16 | 73 | 31.375 | 0.87822 | 0.161355 | 0 | 0.285714 | 0 | 0 | 0.146988 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8a71a678f9345bbb6c997e40bdff544d55b74808 | 2,235 | py | Python | scripts/utils_data/data.py | amelvim/FoldHSphere | 63277de765a1812d655658f2ea1c4e31b71585b4 | [
"MIT"
] | null | null | null | scripts/utils_data/data.py | amelvim/FoldHSphere | 63277de765a1812d655658f2ea1c4e31b71585b4 | [
"MIT"
] | null | null | null | scripts/utils_data/data.py | amelvim/FoldHSphere | 63277de765a1812d655658f2ea1c4e31b71585b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
###
# File: data.py
# Created Date: Friday, April 17th 2020, 11:11:26 am
# Author: Amelia Villegas-Morcillo
#
# Copyright (c) 2020 Amelia Villegas-Morcillo
###
import copy
import torch
class Data(object):
"""A plain old python object modeling the attributes.
Arg... | 29.025974 | 77 | 0.605369 | 307 | 2,235 | 4.286645 | 0.355049 | 0.053191 | 0.024316 | 0.030395 | 0.18693 | 0.103343 | 0.103343 | 0.103343 | 0.103343 | 0.103343 | 0 | 0.012821 | 0.302013 | 2,235 | 76 | 78 | 29.407895 | 0.830769 | 0.386577 | 0 | 0.057143 | 0 | 0 | 0.00303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.057143 | 0.114286 | 0.542857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8a82b53e3696871e12dd6536ccb813a03dfcd972 | 93 | py | Python | Checklist/apps.py | pandeyarjun242/submission | 811fb8ed5854531848aa430c5c998b8e6c463137 | [
"MIT"
] | null | null | null | Checklist/apps.py | pandeyarjun242/submission | 811fb8ed5854531848aa430c5c998b8e6c463137 | [
"MIT"
] | null | null | null | Checklist/apps.py | pandeyarjun242/submission | 811fb8ed5854531848aa430c5c998b8e6c463137 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ChecklistConfig(AppConfig):
name = 'Checklist'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8a82d0267a171f51f8a088d7c9ad994bc23cfd9c | 596 | py | Python | grow/__init__.py | denmojo/pygrow | 95d32eed8c13a6beb900effa4d18d9fe1e37d2b4 | [
"MIT"
] | 335 | 2016-04-02T20:12:21.000Z | 2022-03-28T18:55:26.000Z | grow/__init__.py | denmojo/pygrow | 95d32eed8c13a6beb900effa4d18d9fe1e37d2b4 | [
"MIT"
] | 784 | 2016-04-01T16:56:41.000Z | 2022-03-05T01:25:34.000Z | grow/__init__.py | denmojo/pygrow | 95d32eed8c13a6beb900effa4d18d9fe1e37d2b4 | [
"MIT"
] | 54 | 2016-05-03T13:06:15.000Z | 2021-09-24T04:46:23.000Z | import os
import sys
# Allows "import grow" and "from grow import <name>".
sys.path.extend([os.path.join(os.path.dirname(__file__), '..')])
# Set up path for make test-gae.
if 'NOSEGAE' in os.environ:
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib')))
# Allow `import grow; ... | 31.368421 | 93 | 0.736577 | 87 | 596 | 4.954023 | 0.436782 | 0.069606 | 0.104408 | 0.132251 | 0.12529 | 0.12529 | 0.12529 | 0 | 0 | 0 | 0 | 0.001916 | 0.124161 | 596 | 18 | 94 | 33.111111 | 0.823755 | 0.401007 | 0 | 0 | 0 | 0 | 0.039886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8a888bf5ce10ea843a8e87f1948d5a3e990b2ee8 | 1,780 | py | Python | ngcasa/calibration/apply_calibration.py | FedeMPouzols/cngi_prototype | 421a99c460f4092b79120f5bec122de7ce9b8b96 | [
"Apache-2.0"
] | null | null | null | ngcasa/calibration/apply_calibration.py | FedeMPouzols/cngi_prototype | 421a99c460f4092b79120f5bec122de7ce9b8b96 | [
"Apache-2.0"
] | null | null | null | ngcasa/calibration/apply_calibration.py | FedeMPouzols/cngi_prototype | 421a99c460f4092b79120f5bec122de7ce9b8b96 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 AUI, Inc. Washington DC, USA
#
# 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 ... | 37.083333 | 101 | 0.710674 | 253 | 1,780 | 4.956522 | 0.624506 | 0.047847 | 0.020734 | 0.025518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005818 | 0.227528 | 1,780 | 47 | 102 | 37.87234 | 0.906182 | 0.870787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8a9a5596c36c083901077d080c088e944b52ef6d | 325 | py | Python | create pdf with Django/customers/urls.py | alirezaryahi/create-pdf-file-with-Django | 13b9bcf18f20e3b710d09258f2d2540a8dd86221 | [
"MIT"
] | null | null | null | create pdf with Django/customers/urls.py | alirezaryahi/create-pdf-file-with-Django | 13b9bcf18f20e3b710d09258f2d2540a8dd86221 | [
"MIT"
] | null | null | null | create pdf with Django/customers/urls.py | alirezaryahi/create-pdf-file-with-Django | 13b9bcf18f20e3b710d09258f2d2540a8dd86221 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import render_pdf_view, CustomerListView, customer_render_pdf_view
urlpatterns = [
path('test/', render_pdf_view, name='test-view'),
path('', CustomerListView.as_view(), name='customer-list-view'),
path('pdf/<pk>/', customer_render_pdf_view, name='customer-pdf-view'... | 36.111111 | 78 | 0.735385 | 44 | 325 | 5.181818 | 0.386364 | 0.153509 | 0.22807 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110769 | 325 | 8 | 79 | 40.625 | 0.788927 | 0 | 0 | 0 | 0 | 0 | 0.178462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ab94b42d635d24d28dbfaebaa6953a31cd928ea | 351 | py | Python | demo/demo_log/main.py | Gerogetrycode/ARK | 3eb4a4f4daf3d316d23d3b7d6d925117daadab83 | [
"MIT"
] | 1 | 2019-12-29T14:47:50.000Z | 2019-12-29T14:47:50.000Z | demo/demo_log/main.py | Gerogetrycode/ARK | 3eb4a4f4daf3d316d23d3b7d6d925117daadab83 | [
"MIT"
] | null | null | null | demo/demo_log/main.py | Gerogetrycode/ARK | 3eb4a4f4daf3d316d23d3b7d6d925117daadab83 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from ark.are import config
from ark.are import log
from ark.are import exception
import sys
config.GuardianConfig.set({"LOG_CONF_DIR": "./", "LOG_ROOT": "./log"})
def func(a):
try:
log.f("ddd")
raise exception.EPNoNodeError("def")
except:
print sys.exc_info()
... | 16.714286 | 70 | 0.606838 | 50 | 351 | 4.18 | 0.6 | 0.100478 | 0.143541 | 0.229665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.22792 | 351 | 20 | 71 | 17.55 | 0.763838 | 0.059829 | 0 | 0 | 0 | 0 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.307692 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
76d9c43a993e2703db7217c072ec666259aa1a0e | 395 | py | Python | problems/bst/Solution897.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bst/Solution897.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bst/Solution897.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ Given the root of a binary search tree, rearrange the tree in in-order so
that the leftmost node in the tree is now the root of the tree, and every
node has no left child and only one right child.
Example 1:
Input: root = [5,3,6,2,4,null,8,1,null,null,null,7,9]
Output: [1,null,2,null,3,n... | 30.384615 | 79 | 0.663291 | 79 | 395 | 3.316456 | 0.531646 | 0.080153 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071197 | 0.217722 | 395 | 12 | 80 | 32.916667 | 0.776699 | 0.84557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
76e538d13ae67693278507c13db362dc14a696cc | 635 | py | Python | BConverters/AnnotationConverters.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | 10 | 2015-04-28T14:15:04.000Z | 2021-03-15T00:07:38.000Z | BConverters/AnnotationConverters.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | null | null | null | BConverters/AnnotationConverters.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | 6 | 2017-03-16T22:38:41.000Z | 2021-08-11T00:22:52.000Z | __author__ = 'mahajrod'
import os
from BCBio import GFF
class AnnotationConverters:
"
@staticmethod
def gff22gff3(input_file, output_file, target_lines=100000):
in_fd = open(input_file, "r")
out_fd = open(output_file, "w")
GFF.write(GFF.parse(in_fd, target_lines=target_lines), out_... | 25.4 | 70 | 0.650394 | 85 | 635 | 4.564706 | 0.4 | 0.139175 | 0.193299 | 0.244845 | 0.28866 | 0.28866 | 0.180412 | 0.180412 | 0 | 0 | 0 | 0.026639 | 0.231496 | 635 | 24 | 71 | 26.458333 | 0.768443 | 0 | 0 | 0.157895 | 0 | 0 | 0.07109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76eb65c1deea0e440f6b73a2e9415677c24c94ee | 708 | py | Python | stix_shifter_modules/proxy/stix_translation/utils.py | annish-offl/stix-shifter | 5abbb0391bf23aafebc8411520008718b69aa5fc | [
"Apache-2.0"
] | 1 | 2021-12-15T12:24:28.000Z | 2021-12-15T12:24:28.000Z | stix_shifter_modules/proxy/stix_translation/utils.py | annish-offl/stix-shifter | 5abbb0391bf23aafebc8411520008718b69aa5fc | [
"Apache-2.0"
] | null | null | null | stix_shifter_modules/proxy/stix_translation/utils.py | annish-offl/stix-shifter | 5abbb0391bf23aafebc8411520008718b69aa5fc | [
"Apache-2.0"
] | null | null | null | def unwrap_connection_options(self, connection):
connection_options = connection.get('options', {})
embedded_connection_options = connection_options.get('options', {})
if embedded_connection_options and embedded_connection_options.get('host'):
connection['host'] = embedded_connection_options.get('ho... | 54.461538 | 79 | 0.733051 | 73 | 708 | 6.835616 | 0.219178 | 0.511022 | 0.300601 | 0.224449 | 0.380762 | 0.380762 | 0.212425 | 0 | 0 | 0 | 0 | 0 | 0.15678 | 708 | 13 | 80 | 54.461538 | 0.835846 | 0 | 0 | 0.307692 | 0 | 0 | 0.084626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
76efeef851a2134e9028ba47a6352f2eb5d84aa0 | 94 | py | Python | agent/actions.py | minhrongcon2000/q_sarsa_maze_finding | fd4d5217da7a094eb38a8a90f5c84d2a85e69b6e | [
"MIT"
] | 1 | 2022-03-24T23:55:32.000Z | 2022-03-24T23:55:32.000Z | agent/actions.py | minhrongcon2000/q_sarsa_maze_finding | fd4d5217da7a094eb38a8a90f5c84d2a85e69b6e | [
"MIT"
] | null | null | null | agent/actions.py | minhrongcon2000/q_sarsa_maze_finding | fd4d5217da7a094eb38a8a90f5c84d2a85e69b6e | [
"MIT"
] | null | null | null | from enum import Enum
class Action(Enum):
UP = 0
DOWN = 1
RIGHT = 2
LEFT = 3
| 11.75 | 21 | 0.553191 | 15 | 94 | 3.466667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0.37234 | 94 | 7 | 22 | 13.428571 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
76fd84f17b3d6a259de519590073c783f706080e | 734 | py | Python | content/lessons/02/Now-You-Code/NYC4-Mad-Libs.py | yajiao-su/istpytonproject | d1434f31a639cbf9ad0df44c8c35b71f654bce9f | [
"MIT"
] | null | null | null | content/lessons/02/Now-You-Code/NYC4-Mad-Libs.py | yajiao-su/istpytonproject | d1434f31a639cbf9ad0df44c8c35b71f654bce9f | [
"MIT"
] | null | null | null | content/lessons/02/Now-You-Code/NYC4-Mad-Libs.py | yajiao-su/istpytonproject | d1434f31a639cbf9ad0df44c8c35b71f654bce9f | [
"MIT"
] | null | null | null | '''
Now You Code 4: Mad-Libs!
Write a Python program which creates your own unique Mad-Libs! story.
If you are not familar with a Mad-Libs! story, check out:
http://www.madlibs.com and http://www.madtakes.com
Your story should take at least 5 inputs, and should include more than
once sentence.
'''
x=input("Enter it... | 29.36 | 71 | 0.705722 | 140 | 734 | 3.7 | 0.507143 | 0.11583 | 0.138996 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003221 | 0.153951 | 734 | 24 | 72 | 30.583333 | 0.830918 | 0.399183 | 0 | 0 | 0 | 0 | 0.62877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0a0267d5dc5af5883c61f4d96b1b3eaeb3197231 | 220 | py | Python | src/cmd_help.py | parsecmonkey/RepoMainForPy | e07ef5358723c384ca8d233e42dc8580e761867e | [
"MIT"
] | 6 | 2021-11-26T21:57:35.000Z | 2022-01-23T12:40:35.000Z | src/cmd_help.py | parsecmonkey/RepoMainForPy | e07ef5358723c384ca8d233e42dc8580e761867e | [
"MIT"
] | 46 | 2021-11-18T17:32:47.000Z | 2022-01-10T12:26:56.000Z | src/cmd_help.py | parsecmonkey/RepoMainForPy | e07ef5358723c384ca8d233e42dc8580e761867e | [
"MIT"
] | 1 | 2021-11-19T03:16:16.000Z | 2021-11-19T03:16:16.000Z | # help
def run():
print("help : コマンド一覧を表示")
print("clone: リポジトリをクローン")
print("log : ログを確認")
print("diff : ファイルの差分を確認")
print("plot : グラフを描画")
print("message:コミットメッセージを解析")
print("exit : 終了") | 22 | 33 | 0.590909 | 24 | 220 | 5.416667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231818 | 220 | 10 | 34 | 22 | 0.769231 | 0.018182 | 0 | 0 | 0 | 0 | 0.483721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0 | 0 | 0.125 | 0.875 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0a0d8e0b3d3ec7f54b5c42a4c2ca3dc4d48c95dd | 1,656 | py | Python | calculator.py | armbrustsamuel/PythonPipelineEmulator | d242fd51da4607eebb9e33feaaf8a8d9466d709d | [
"MIT"
] | null | null | null | calculator.py | armbrustsamuel/PythonPipelineEmulator | d242fd51da4607eebb9e33feaaf8a8d9466d709d | [
"MIT"
] | null | null | null | calculator.py | armbrustsamuel/PythonPipelineEmulator | d242fd51da4607eebb9e33feaaf8a8d9466d709d | [
"MIT"
] | null | null | null | # Calculator
# Implement each function required in execution phase of pipeline
# SUM operation
# @param operand1,operand2
# @return sum op1 with op2
def sum(op1,op2):
return int(op1)+int(op2)
# SUB operation
# @param operand1,operand2
# @return sub op1 with op2
def sub(op1,op2):
return int(op1)-int(op2)
# BR... | 19.482353 | 65 | 0.647947 | 239 | 1,656 | 4.48954 | 0.259414 | 0.058714 | 0.082013 | 0.111836 | 0.408201 | 0.301957 | 0.301957 | 0.219944 | 0.173346 | 0.173346 | 0 | 0.05314 | 0.25 | 1,656 | 84 | 66 | 19.714286 | 0.810789 | 0.596014 | 0 | 0.3 | 0 | 0 | 0.003247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0a1a4b20e8bda806f81a1f257e0a91f5b5c2a77c | 63 | py | Python | terrascript/data/vault.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/vault.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/data/vault.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/data/vault.py
import terrascript
__all__ = []
| 9 | 27 | 0.730159 | 7 | 63 | 6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 63 | 6 | 28 | 10.5 | 0.792453 | 0.396825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0a22870cce0471685f19eb4bb4057302a33658f5 | 7,257 | py | Python | gp_topo/passageGen.py | STAR-Center/IncrementalTopo | befbcd55f8a438ff3dd1a2d1d5d4fbb467dc149f | [
"MIT"
] | 5 | 2021-05-21T17:24:47.000Z | 2021-12-24T16:30:30.000Z | gp_topo/passageGen.py | STAR-Center/IncrementalTopo | befbcd55f8a438ff3dd1a2d1d5d4fbb467dc149f | [
"MIT"
] | null | null | null | gp_topo/passageGen.py | STAR-Center/IncrementalTopo | befbcd55f8a438ff3dd1a2d1d5d4fbb467dc149f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
This script will take rainFlow count map and split the river(skeleton) to generate passage
'''
'''
How to make passage better:
1. if the k1,k2 for saddle, end1,end2 are not parallel, dismissed.
2. if both the end1,end2 are lane, dismissed
'''
import numpy as np
import sys
import cv2
from skima... | 37.994764 | 201 | 0.604106 | 1,072 | 7,257 | 3.973881 | 0.201493 | 0.009859 | 0.014789 | 0.014085 | 0.168545 | 0.139671 | 0.065493 | 0.055164 | 0.055164 | 0.055164 | 0 | 0.046154 | 0.247623 | 7,257 | 190 | 202 | 38.194737 | 0.734066 | 0.117542 | 0 | 0.04 | 1 | 0 | 0.002378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.18 | 0.06 | null | null | 0.01 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0a25c00a017699bea812ff3d6d49023807135694 | 2,818 | py | Python | GUI/Report/rwin3.py | pooyagheyami/Employee3 | 35a3f78637cf61cc8f2ebd5b1953e1aae668a365 | [
"Unlicense"
] | null | null | null | GUI/Report/rwin3.py | pooyagheyami/Employee3 | 35a3f78637cf61cc8f2ebd5b1953e1aae668a365 | [
"Unlicense"
] | null | null | null | GUI/Report/rwin3.py | pooyagheyami/Employee3 | 35a3f78637cf61cc8f2ebd5b1953e1aae668a365 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Jun 17 2015)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
##########################################################################... | 42.059701 | 248 | 0.573811 | 298 | 2,818 | 5.268456 | 0.432886 | 0.070064 | 0.149045 | 0.194904 | 0.192357 | 0.147771 | 0 | 0 | 0 | 0 | 0 | 0.024135 | 0.220724 | 2,818 | 66 | 249 | 42.69697 | 0.690801 | 0.082683 | 0 | 0 | 1 | 0.041667 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.166667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a27bdd186c0846f3700a3740345adb4b3b9992c | 384 | py | Python | Xphate/scripts/__init__.py | FranckLejzerowicz/Xphate | 6bacc2262065ed0202347466c388382437348d13 | [
"MIT"
] | null | null | null | Xphate/scripts/__init__.py | FranckLejzerowicz/Xphate | 6bacc2262065ed0202347466c388382437348d13 | [
"MIT"
] | null | null | null | Xphate/scripts/__init__.py | FranckLejzerowicz/Xphate | 6bacc2262065ed0202347466c388382437348d13 | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright (c) 2020, Franck Lejzerowicz.
#
# Distributed under the terms of the MIT License.
#
# The full license is in the file LICENSE, distributed with this software.
# --------------------------------------------------------------------... | 34.909091 | 78 | 0.442708 | 32 | 384 | 5.1875 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.109375 | 384 | 11 | 79 | 34.909091 | 0.473684 | 0.817708 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0a445f13eb7b4833339a00068871dc7fb8bf28e6 | 475 | py | Python | Sprint/migrations/0002_auto_20190527_2122.py | infroid/AgileWorkforce | 3beba9a594960a302cab996c4f9d8520660ea94b | [
"MIT"
] | null | null | null | Sprint/migrations/0002_auto_20190527_2122.py | infroid/AgileWorkforce | 3beba9a594960a302cab996c4f9d8520660ea94b | [
"MIT"
] | null | null | null | Sprint/migrations/0002_auto_20190527_2122.py | infroid/AgileWorkforce | 3beba9a594960a302cab996c4f9d8520660ea94b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-27 15:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Sprint', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='goal',
options={'ordering': ('sprint', 'name'... | 21.590909 | 57 | 0.549474 | 43 | 475 | 6.023256 | 0.697674 | 0.208494 | 0.239382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057576 | 0.305263 | 475 | 21 | 58 | 22.619048 | 0.727273 | 0.094737 | 0 | 0.266667 | 1 | 0 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a452406f1e53493049f57110e53e98ecefcdb84 | 355 | py | Python | app/db/session.py | Data4City/D4C_API | 5f8e64550f5f601a4ad2ae558060d479cbfdcac1 | [
"MIT"
] | null | null | null | app/db/session.py | Data4City/D4C_API | 5f8e64550f5f601a4ad2ae558060d479cbfdcac1 | [
"MIT"
] | null | null | null | app/db/session.py | Data4City/D4C_API | 5f8e64550f5f601a4ad2ae558060d479cbfdcac1 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from app.core import config
engine = create_engine(config.DATABASE_URL, pool_pre_ping=True)
db_session = scoped_session(
sessionmaker(autocommit=False, autoflush=False, bind=engine)
)
Session = sessionmaker(autocommit=Fal... | 29.583333 | 70 | 0.822535 | 46 | 355 | 6.173913 | 0.5 | 0.200704 | 0.176056 | 0.239437 | 0.408451 | 0.408451 | 0.408451 | 0.408451 | 0 | 0 | 0 | 0 | 0.101408 | 355 | 11 | 71 | 32.272727 | 0.890282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0a62b4bea0e5bc361b037948a08c6c74292ff981 | 106 | py | Python | bek.py | ReyBek/lab_1 | 8fdcf7f0d2d7ac2b229d21bdebb0a96356c7c8b0 | [
"MIT"
] | null | null | null | bek.py | ReyBek/lab_1 | 8fdcf7f0d2d7ac2b229d21bdebb0a96356c7c8b0 | [
"MIT"
] | null | null | null | bek.py | ReyBek/lab_1 | 8fdcf7f0d2d7ac2b229d21bdebb0a96356c7c8b0 | [
"MIT"
] | null | null | null | import math
a = 3
b = 5
c = 3
p = (a + b + c) / 2
S = math.sqrt(p * (p - a) * (p - b) * (p - c))
print(S) | 13.25 | 46 | 0.40566 | 25 | 106 | 1.72 | 0.48 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.339623 | 106 | 8 | 47 | 13.25 | 0.557143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0a63e66a43f7b219c9f392af4d416874916de6eb | 531 | py | Python | shapestats/test/test_paired_t_test_shape.py | bmapdev/shapestats | 21d43196a84932fdeb268c384e55cbf79a13f384 | [
"MIT"
] | 1 | 2015-01-26T01:30:15.000Z | 2015-01-26T01:30:15.000Z | shapestats/test/test_paired_t_test_shape.py | bmapdev/shapestats | 21d43196a84932fdeb268c384e55cbf79a13f384 | [
"MIT"
] | null | null | null | shapestats/test/test_paired_t_test_shape.py | bmapdev/shapestats | 21d43196a84932fdeb268c384e55cbf79a13f384 | [
"MIT"
] | null | null | null | __author__ = 'sjoshi'
from shapestats import paired_t_test_shape
sample1 = '/Volumes/Users/sjoshi/Desktop/lh_DE_FS_hippo_edit_041413_Controls_T1_T2_only2.txt'
sample2 = '/Volumes/Users/sjoshi/Desktop/lh_DE_FS_hippo_edit_041413_Controls_T1_T2_only.txt'
sample1 = '/Volumes/Users/sjoshi/Desktop/stats/sample1.txt'
sample... | 33.1875 | 93 | 0.822976 | 81 | 531 | 4.962963 | 0.382716 | 0.149254 | 0.223881 | 0.310945 | 0.589552 | 0.400498 | 0.288557 | 0.288557 | 0.288557 | 0.288557 | 0 | 0.050403 | 0.065913 | 531 | 15 | 94 | 35.4 | 0.760081 | 0 | 0 | 0 | 0 | 0 | 0.569811 | 0.558491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6a5801a98bb36556d809d3c456ef2397f75521d8 | 639 | py | Python | PythonCurso01/aula107_associacao/exemplo02/classes.py | AlissonAnjos21/Aprendendo | 9454d9e53ef9fb8bc61bf481b6592164f5bf8695 | [
"MIT"
] | null | null | null | PythonCurso01/aula107_associacao/exemplo02/classes.py | AlissonAnjos21/Aprendendo | 9454d9e53ef9fb8bc61bf481b6592164f5bf8695 | [
"MIT"
] | null | null | null | PythonCurso01/aula107_associacao/exemplo02/classes.py | AlissonAnjos21/Aprendendo | 9454d9e53ef9fb8bc61bf481b6592164f5bf8695 | [
"MIT"
] | null | null | null | class Agricultor:
def __init__(self, nome):
self.__nome = nome
self.__ferramenta = None
@property
def nome(self):
return self.__nome
@property
def ferramenta(self):
return self.__ferramenta
@ferramenta.setter
def ferramenta(self, ferramenta):
sel... | 15.975 | 47 | 0.602504 | 73 | 639 | 4.972603 | 0.287671 | 0.15427 | 0.115702 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303599 | 639 | 39 | 48 | 16.384615 | 0.81573 | 0 | 0 | 0.208333 | 0 | 0 | 0.094044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.125 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6a59ea6c64ac1afbe50e2cb22c8da89a83e2b30b | 109 | py | Python | restdoctor/__init__.py | best-doctor/restdoctor | 09efc1bbb1c8e0144b8f191ff7a42bf59322cc05 | [
"MIT"
] | 20 | 2020-09-28T17:54:26.000Z | 2022-02-16T21:35:09.000Z | restdoctor/__init__.py | best-doctor/restdoctor | 09efc1bbb1c8e0144b8f191ff7a42bf59322cc05 | [
"MIT"
] | 32 | 2020-10-04T17:26:31.000Z | 2022-03-29T01:19:14.000Z | restdoctor/__init__.py | best-doctor/restdoctor | 09efc1bbb1c8e0144b8f191ff7a42bf59322cc05 | [
"MIT"
] | 19 | 2020-10-01T16:54:14.000Z | 2022-01-18T14:41:53.000Z | from __future__ import annotations
__version__ = '0.0.44'
default_app_config = 'restdoctor.apps.AppConfig'
| 18.166667 | 48 | 0.798165 | 14 | 109 | 5.5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0.110092 | 109 | 5 | 49 | 21.8 | 0.752577 | 0 | 0 | 0 | 0 | 0 | 0.284404 | 0.229358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6a63abc8931ea782e99e663b2524761b90bec4fc | 94 | py | Python | logger.py | mikedep333/xsession-chooser-pygtk | fed2c142c6f4b62b6a1e91c060121af1a6cf1c3f | [
"MIT"
] | null | null | null | logger.py | mikedep333/xsession-chooser-pygtk | fed2c142c6f4b62b6a1e91c060121af1a6cf1c3f | [
"MIT"
] | 1 | 2015-08-18T10:38:05.000Z | 2015-08-19T02:48:55.000Z | logger.py | mikedep333/xsession-chooser-pygtk | fed2c142c6f4b62b6a1e91c060121af1a6cf1c3f | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger('xsession-chooser')
logger.setLevel(logging.DEBUG)
| 18.8 | 46 | 0.808511 | 11 | 94 | 6.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 94 | 4 | 47 | 23.5 | 0.873563 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.