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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f8f0114805a36816e6285a108829d1c5311ffa9 | 12,177 | py | Python | lib/docs_discovered_nodes.py | stephen-sauer/nsxt-pops-tz-patch | 9b3785417e7041040fca4404472399493e653636 | [
"MIT"
] | 64 | 2017-11-14T05:58:24.000Z | 2022-01-19T08:07:56.000Z | lib/docs_discovered_nodes.py | stephen-sauer/nsxt-pops-tz-patch | 9b3785417e7041040fca4404472399493e653636 | [
"MIT"
] | 136 | 2017-11-14T03:35:38.000Z | 2022-03-17T17:08:13.000Z | lib/docs_discovered_nodes.py | stephen-sauer/nsxt-pops-tz-patch | 9b3785417e7041040fca4404472399493e653636 | [
"MIT"
] | 41 | 2017-11-14T04:21:27.000Z | 2021-12-06T22:13:46.000Z | #!/usr/local/bin/python3
# coding: utf-8
#############################################################################################################################################################################################
# ... | 103.194915 | 694 | 0.466371 | 885 | 12,177 | 6.263277 | 0.283616 | 0.14144 | 0.045463 | 0.084431 | 0.19899 | 0.172831 | 0.165614 | 0.165614 | 0.165614 | 0 | 0 | 0.002658 | 0.382114 | 12,177 | 117 | 695 | 104.076923 | 0.734051 | 0.415209 | 0 | 0.026316 | 0 | 0 | 0.238316 | 0.017226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.039474 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f95c6b2a87c9ff655dfbce28722e7fdd4367116 | 2,893 | py | Python | test/unit/common/middleware/test_healthcheck.py | hashsos/hashcloudos-swift | 25db6f317de58a9da226f97f0e2eedac658a0042 | [
"Apache-2.0"
] | null | null | null | test/unit/common/middleware/test_healthcheck.py | hashsos/hashcloudos-swift | 25db6f317de58a9da226f97f0e2eedac658a0042 | [
"Apache-2.0"
] | 12 | 2015-06-23T23:20:17.000Z | 2016-01-27T00:37:12.000Z | test/unit/common/middleware/test_healthcheck.py | hashsos/hashcloudos-swift | 25db6f317de58a9da226f97f0e2eedac658a0042 | [
"Apache-2.0"
] | 5 | 2015-06-04T19:00:11.000Z | 2015-12-16T21:04:33.000Z | # Copyright (c) 2010-2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 35.716049 | 78 | 0.6813 | 371 | 2,893 | 5.161725 | 0.371968 | 0.028198 | 0.046997 | 0.048042 | 0.35248 | 0.35248 | 0.334726 | 0.334726 | 0.334726 | 0.334726 | 0 | 0.010318 | 0.19599 | 2,893 | 80 | 79 | 36.1625 | 0.812984 | 0.195299 | 0 | 0.32 | 0 | 0 | 0.089494 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.18 | false | 0.06 | 0.12 | 0 | 0.38 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f97721049e7d20f7d781d22471c368188d28d7a | 1,710 | py | Python | CMU/hand_panopticdb/normdat.py | naoc-1861355/Public_Handpose_datasets | a0119226859ffad64bd7ceac8f8b4b67d2aebf8b | [
"MIT"
] | 1 | 2022-01-11T03:43:17.000Z | 2022-01-11T03:43:17.000Z | CMU/hand_panopticdb/normdat.py | naoc-1861355/Public_Handpose_datasets | a0119226859ffad64bd7ceac8f8b4b67d2aebf8b | [
"MIT"
] | null | null | null | CMU/hand_panopticdb/normdat.py | naoc-1861355/Public_Handpose_datasets | a0119226859ffad64bd7ceac8f8b4b67d2aebf8b | [
"MIT"
] | null | null | null | import json
import os.path
import cv2
import numpy as np
from utils import generate_json_2d
edges = [[0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [0, 9], [9, 10], [10, 11], [11, 12], [0, 13],
[13, 14], [14, 15], [15, 16], [0, 17], [17, 18], [18, 19], [19, 20]]
def normdat(outpath):
... | 27.580645 | 118 | 0.567251 | 262 | 1,710 | 3.549618 | 0.477099 | 0.032258 | 0.035484 | 0.03871 | 0.043011 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0.069992 | 0.273099 | 1,710 | 61 | 119 | 28.032787 | 0.678198 | 0.198246 | 0 | 0 | 1 | 0 | 0.094453 | 0.042729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.147059 | 0 | 0.205882 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f99823d2b3c69d87475de3c778d2c071a71cc38 | 2,016 | py | Python | Backend/OfficeSpaces/OfficeSpacesRest/migrations/0001_initial.py | MihirS57/OfficeSpaces | 80f7c108e1826e2fe9dce05c8a47682850cbe56c | [
"MIT"
] | null | null | null | Backend/OfficeSpaces/OfficeSpacesRest/migrations/0001_initial.py | MihirS57/OfficeSpaces | 80f7c108e1826e2fe9dce05c8a47682850cbe56c | [
"MIT"
] | 8 | 2022-01-13T03:05:15.000Z | 2022-03-30T13:33:26.000Z | Backend/OfficeSpaces/OfficeSpacesRest/migrations/0001_initial.py | MihirS57/OfficeSpaces | 80f7c108e1826e2fe9dce05c8a47682850cbe56c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-07-11 19:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | 31.5 | 79 | 0.445437 | 148 | 2,016 | 5.878378 | 0.5 | 0.027586 | 0.062069 | 0.082759 | 0.252874 | 0.252874 | 0.181609 | 0.181609 | 0.181609 | 0.181609 | 0 | 0.022894 | 0.458333 | 2,016 | 63 | 80 | 32 | 0.77381 | 0.022817 | 0 | 0.482143 | 1 | 0 | 0.085366 | 0.027439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053571 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f99c0ddd70d075d49e5a137a940789c0a486e5a | 393 | py | Python | fund/fundmain.py | typ1638/investment | 79816eefb59030b30a982975d426aa9d73db6875 | [
"MIT"
] | null | null | null | fund/fundmain.py | typ1638/investment | 79816eefb59030b30a982975d426aa9d73db6875 | [
"MIT"
] | null | null | null | fund/fundmain.py | typ1638/investment | 79816eefb59030b30a982975d426aa9d73db6875 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf8 -*-
from fundtotal import FundTotal
from downpage import FundPage
from portfolio import PortFolio
if __name__ == "__main__":
# 获取全部基金基础数据
# fund_total = FundTotal()
# fund_total.sort_all_fund()
# 下载各个基金页面
# fund_page = FundPage()
# fund_page.down_pages(... | 21.833333 | 32 | 0.679389 | 44 | 393 | 5.704545 | 0.590909 | 0.071713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.211196 | 393 | 17 | 33 | 23.117647 | 0.806452 | 0.422392 | 0 | 0 | 0 | 0 | 0.036697 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3f9f73f07147513a550b00f1f15ec4da7becf0f7 | 2,705 | py | Python | library/pyjamas/History.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | library/pyjamas/History.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | library/pyjamas/History.py | allbuttonspressed/pyjs | c726fdead530eb63ee4763ae15daaa58d84cd58f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-11-18T14:17:59.000Z | 2019-11-18T14:17:59.000Z | # This is the gtk-dependent History module.
# For the pyjamas/javascript version, see platform/HistoryPyJS.py
from __pyjamas__ import JS, doc, wnd
import pyjd
if pyjd.is_desktop:
from __pyjamas__ import get_main_frame
global historyToken
historyToken = ''
historyListeners = []
"""
Simple History management... | 24.816514 | 77 | 0.699445 | 340 | 2,705 | 5.479412 | 0.452941 | 0.021471 | 0.020934 | 0.016103 | 0.046162 | 0.046162 | 0.046162 | 0.046162 | 0 | 0 | 0 | 0.003288 | 0.212939 | 2,705 | 108 | 78 | 25.046296 | 0.871771 | 0.078373 | 0 | 0.176471 | 0 | 0 | 0.156077 | 0.033149 | 0 | 0 | 0 | 0.009259 | 0 | 0 | null | null | 0.019608 | 0.058824 | null | null | 0.078431 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3fac1ce2e85a3bdf0ba6db0aa2a5e2caab734174 | 1,412 | py | Python | Toolkit/Code Analyzer/CodeAnalyzer.py | croxis/RenderPipeline | 43482c03a835dd620e6d45b08e56fa5679742482 | [
"WTFPL"
] | null | null | null | Toolkit/Code Analyzer/CodeAnalyzer.py | croxis/RenderPipeline | 43482c03a835dd620e6d45b08e56fa5679742482 | [
"WTFPL"
] | null | null | null | Toolkit/Code Analyzer/CodeAnalyzer.py | croxis/RenderPipeline | 43482c03a835dd620e6d45b08e56fa5679742482 | [
"WTFPL"
] | null | null | null |
rootDir = "../../"
sourceDirectories = ["Code/", "Shader/", "Toolkit/"]
ignorePattern = [".pyc"]
extensions = "py compute fragment vertex ini include geometry glsl cxx h I".split()
print "Code Analyzer v0.2"
from os import listdir
from os.path import join, isfile
def convertPath(pth):
return pth.replace("\\... | 21.723077 | 83 | 0.603399 | 150 | 1,412 | 5.68 | 0.5 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00789 | 0.28187 | 1,412 | 64 | 84 | 22.0625 | 0.832347 | 0.041785 | 0 | 0 | 0 | 0 | 0.120089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0.073171 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3faee18d17ed300eaf0a8e4f43343f2a67ca3eb9 | 598 | py | Python | tests/test_common.py | vishalbelsare/pyloras | 5c446ab2782e88846abaccdf66289a5ec7d4ff06 | [
"BSD-3-Clause"
] | 2 | 2021-07-27T20:45:10.000Z | 2021-09-28T12:32:03.000Z | tests/test_common.py | vishalbelsare/pyloras | 5c446ab2782e88846abaccdf66289a5ec7d4ff06 | [
"BSD-3-Clause"
] | 25 | 2021-07-13T13:12:33.000Z | 2021-09-23T11:32:16.000Z | tests/test_common.py | vishalbelsare/pyloras | 5c446ab2782e88846abaccdf66289a5ec7d4ff06 | [
"BSD-3-Clause"
] | 3 | 2021-07-14T03:18:20.000Z | 2021-08-03T16:29:14.000Z | import numpy as np
from pyloras._common import (
check_random_state,
safe_random_state,
)
def test_check_random_state():
rand = np.random.RandomState(12345)
assert isinstance(check_random_state(rand), np.random.Generator)
gen = np.random.default_rng(12345)
assert isinstance(check_random_state... | 28.47619 | 69 | 0.76087 | 82 | 598 | 5.292683 | 0.268293 | 0.202765 | 0.147465 | 0.156682 | 0.741935 | 0.691244 | 0.543779 | 0.447005 | 0.253456 | 0 | 0 | 0.038911 | 0.140468 | 598 | 20 | 70 | 29.9 | 0.805447 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.266667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3faf6478114182dedb60b4aa1e33f516d4e06b19 | 1,255 | py | Python | packages/w3af/w3af/core/controllers/profiling/scan_log_analysis/data/crawl_graph.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/controllers/profiling/scan_log_analysis/data/crawl_graph.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/controllers/profiling/scan_log_analysis/data/crawl_graph.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | import re
from utils.utils import get_path
WEBSPIDER_FOUND_LINK = re.compile('\[web_spider\] Found new link "(.*?)" at "(.*?)"')
def generate_crawl_graph(scan_log_filename, scan):
scan.seek(0)
data = {}
for line in scan:
match = WEBSPIDER_FOUND_LINK.search(line)
if not match:
... | 25.1 | 85 | 0.568924 | 160 | 1,255 | 4.25625 | 0.35625 | 0.082232 | 0.039648 | 0.049927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003468 | 0.310757 | 1,255 | 49 | 86 | 25.612245 | 0.783815 | 0 | 0 | 0.111111 | 1 | 0 | 0.109163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0.027778 | 0.138889 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3fb41bdfddfc64805a0b64d27003fa7ea7f0b123 | 7,057 | py | Python | python/testData/typeshed/stdlib/2/datetime_test.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/typeshed/stdlib/2/datetime_test.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/typeshed/stdlib/2/datetime_test.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def test_date():
from datetime import date, timedelta
d = date(2000, 12, 15)
assert d.min == date(1, 1, 1)
assert d.max == date(9999, 12, 31)
assert d.resolution == timedelta(1)
assert date.fromtimestamp(2048) == date(1970, 1, 1)
assert isinstance(date.today(), date)
assert date.fromo... | 33.445498 | 101 | 0.614567 | 1,108 | 7,057 | 3.888087 | 0.120036 | 0.072423 | 0.027855 | 0.027855 | 0.443361 | 0.36351 | 0.282033 | 0.226555 | 0.15065 | 0.131616 | 0 | 0.176923 | 0.2263 | 7,057 | 211 | 102 | 33.445498 | 0.612088 | 0 | 0 | 0 | 0 | 0 | 0.029612 | 0 | 0 | 0 | 0 | 0 | 0.777778 | 1 | 0.024691 | false | 0 | 0.024691 | 0 | 0.049383 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3fb51dda85f4366b62411f3b60bd917172e73cc9 | 1,319 | py | Python | nogotofail/mitm/util/tls/types/errors.py | kbfl0912/nogotofail | 3dfb368c940e778dd0b2bc9baaed4d3181817262 | [
"Apache-2.0"
] | 1,594 | 2015-01-01T23:22:02.000Z | 2022-03-31T19:32:26.000Z | nogotofail/mitm/util/tls/types/errors.py | kbfl0912/nogotofail | 3dfb368c940e778dd0b2bc9baaed4d3181817262 | [
"Apache-2.0"
] | 56 | 2015-01-05T19:11:37.000Z | 2021-09-14T22:30:10.000Z | nogotofail/mitm/util/tls/types/errors.py | kbfl0912/nogotofail | 3dfb368c940e778dd0b2bc9baaed4d3181817262 | [
"Apache-2.0"
] | 312 | 2015-01-04T13:17:06.000Z | 2022-03-09T12:55:31.000Z | r'''
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 38.794118 | 91 | 0.761941 | 187 | 1,319 | 5.26738 | 0.529412 | 0.060914 | 0.026396 | 0.032487 | 0.058883 | 0.058883 | 0.058883 | 0 | 0 | 0 | 0 | 0.007394 | 0.179682 | 1,319 | 33 | 92 | 39.969697 | 0.902957 | 0.630023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3fb630c5b5c84dd6924b9dc161940cee00a4e1d9 | 480 | py | Python | server/code/resources/organization.py | Social-Do-Gooders/localy | c9f11a38a9a6cffbeaedba9e93ee5058b13657ce | [
"MIT"
] | null | null | null | server/code/resources/organization.py | Social-Do-Gooders/localy | c9f11a38a9a6cffbeaedba9e93ee5058b13657ce | [
"MIT"
] | null | null | null | server/code/resources/organization.py | Social-Do-Gooders/localy | c9f11a38a9a6cffbeaedba9e93ee5058b13657ce | [
"MIT"
] | 1 | 2020-12-11T10:43:30.000Z | 2020-12-11T10:43:30.000Z | from flask_restful import Resource
from models.organization import OrganizationModel
class OrganizationName(Resource):
# GET method
def get(self, name):
org = OrganizationModel.find_by_name(name)
if org:
return org.json()
return {'message': 'Organization not found'}, 404
... | 26.666667 | 85 | 0.679167 | 52 | 480 | 6.211538 | 0.557692 | 0.068111 | 0.105263 | 0.123839 | 0.167183 | 0.167183 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.2375 | 480 | 17 | 86 | 28.235294 | 0.874317 | 0.04375 | 0 | 0 | 0 | 0 | 0.066059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.818182 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3fbc3a3d4c4a737bb01741b5c851a11288bfbefb | 587 | py | Python | jobs/management/commands/expire_jobs.py | buketkonuk/pythondotorg | 4d8d9728eea7c7b2fef32eb6f24fda409cf24a06 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:43:27.000Z | 2019-09-02T00:43:27.000Z | jobs/management/commands/expire_jobs.py | buketkonuk/pythondotorg | 4d8d9728eea7c7b2fef32eb6f24fda409cf24a06 | [
"Apache-2.0"
] | null | null | null | jobs/management/commands/expire_jobs.py | buketkonuk/pythondotorg | 4d8d9728eea7c7b2fef32eb6f24fda409cf24a06 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:51:38.000Z | 2019-09-02T00:51:38.000Z | import datetime
from django.core.management import BaseCommand
from django.conf import settings
from django.utils import timezone
from jobs.models import Job
class Command(BaseCommand):
""" Expire jobs older than settings.JOB_THRESHOLD_DAYS """
def handle(self, **options):
days = getattr(settings, ... | 24.458333 | 67 | 0.679727 | 67 | 587 | 5.835821 | 0.567164 | 0.076726 | 0.102302 | 0.122762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.23339 | 587 | 23 | 68 | 25.521739 | 0.864444 | 0.085179 | 0 | 0 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3fced67ac21f5bdc91ce3540cdc0c21cdcf7bc2c | 2,479 | py | Python | transformers/executables/pe_exports_features.py | ucds-sg/h2oai | 7042860767dc25d1a7d7122103bbd5016d02df53 | [
"Apache-2.0"
] | null | null | null | transformers/executables/pe_exports_features.py | ucds-sg/h2oai | 7042860767dc25d1a7d7122103bbd5016d02df53 | [
"Apache-2.0"
] | null | null | null | transformers/executables/pe_exports_features.py | ucds-sg/h2oai | 7042860767dc25d1a7d7122103bbd5016d02df53 | [
"Apache-2.0"
] | null | null | null | """Extract LIEF features from PE files"""
from h2oaicore.transformer_utils import CustomTransformer
import datatable as dt
import numpy as np
class PEExportsFeatures(CustomTransformer):
_modules_needed_by_name = ['lief==0.9.0']
_regression = True
_binary = True
_multiclass = True
_is_reproducible ... | 29.86747 | 114 | 0.615974 | 307 | 2,479 | 4.716612 | 0.423453 | 0.022099 | 0.026934 | 0.043508 | 0.122928 | 0.074586 | 0.058011 | 0.058011 | 0 | 0 | 0 | 0.012651 | 0.298507 | 2,479 | 82 | 115 | 30.231707 | 0.820012 | 0.101251 | 0 | 0.070175 | 0 | 0 | 0.045496 | 0.035135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122807 | false | 0 | 0.122807 | 0.052632 | 0.54386 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3fd15d658adff412d91fdf374f0e6e38a23edbbe | 4,740 | py | Python | paddle/capi/examples/model_inference/dense/mnist_v2.py | limeng357/Paddle | dbd25805c88c48998eb9dc0f4b2ca1fd46326482 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2017-12-04T02:58:01.000Z | 2020-12-03T14:46:30.000Z | paddle/capi/examples/model_inference/dense/mnist_v2.py | limeng357/Paddle | dbd25805c88c48998eb9dc0f4b2ca1fd46326482 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2017-12-05T20:29:08.000Z | 2018-10-15T08:57:40.000Z | paddle/capi/examples/model_inference/dense/mnist_v2.py | limeng357/Paddle | dbd25805c88c48998eb9dc0f4b2ca1fd46326482 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2018-03-19T22:38:46.000Z | 2019-11-01T22:28:27.000Z | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# 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 app... | 35.909091 | 80 | 0.608439 | 579 | 4,740 | 4.84456 | 0.386874 | 0.02139 | 0.024242 | 0.011408 | 0.057041 | 0.037077 | 0.037077 | 0.037077 | 0.037077 | 0.037077 | 0 | 0.01584 | 0.294093 | 4,740 | 131 | 81 | 36.183206 | 0.822475 | 0.122996 | 0 | 0.10101 | 0 | 0 | 0.148756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0.060606 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3fd3af04212a5986faa90b0ce6aa3148aecbe85f | 4,161 | py | Python | hwtLib/mem/cam.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/mem/cam.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/mem/cam.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.code import If, Concat
from hwt.hdl.typeShortcuts import hBit
from hwt.hdl.types.bits import Bits
from hwt.interfaces.std import Handshaked
from hwt.interfaces.utils import addClkRstn
from hwt.math import log2ceil
from hwt.serializer.mode import serializeParamsUn... | 29.302817 | 96 | 0.6174 | 555 | 4,161 | 4.41982 | 0.257658 | 0.03139 | 0.034244 | 0.026498 | 0.183449 | 0.147167 | 0.112515 | 0.092947 | 0.069303 | 0 | 0 | 0.005409 | 0.289113 | 4,161 | 141 | 97 | 29.510638 | 0.823867 | 0.148522 | 0 | 0.230769 | 0 | 0 | 0.004314 | 0 | 0 | 0 | 0 | 0.014184 | 0 | 1 | 0.10989 | false | 0 | 0.142857 | 0 | 0.285714 | 0.010989 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3fd7515504a1a774e47b387c2d489d2ff1003653 | 1,816 | py | Python | TP1/2.b.py | NicolasFerragamo/pdstestbench | e87f1a0000f7a0b9593dccd4b0f6fa256ca67438 | [
"MIT"
] | null | null | null | TP1/2.b.py | NicolasFerragamo/pdstestbench | e87f1a0000f7a0b9593dccd4b0f6fa256ca67438 | [
"MIT"
] | null | null | null | TP1/2.b.py | NicolasFerragamo/pdstestbench | e87f1a0000f7a0b9593dccd4b0f6fa256ca67438 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 4 15:59:32 2019
@author: nico
"""
import os
import matplotlib.pyplot as plt
import numpy as np
from time import time
import sys
sys.path.append('/home/nico/Documentos/facultad/6to_nivel/pds/git/pdstestbench')
from pdsmodulos.signals import signals... | 22.987342 | 80 | 0.639317 | 299 | 1,816 | 3.852843 | 0.468227 | 0.027778 | 0.036458 | 0.046875 | 0.246528 | 0.246528 | 0.246528 | 0.213542 | 0.213542 | 0.213542 | 0 | 0.077931 | 0.201542 | 1,816 | 78 | 81 | 23.282051 | 0.715862 | 0.143722 | 0 | 0.230769 | 0 | 0 | 0.189453 | 0.039714 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.019231 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3fe761dcf700d8d65e24f404b2802a19b16f7ac2 | 19,410 | py | Python | riboseq/densebuilder_main_allTR.py | jrw24/G418_readthrough | 83acb663fb7539d1c7c896fe12587c5c00829b7b | [
"MIT"
] | 3 | 2020-04-10T21:48:15.000Z | 2021-12-05T14:44:10.000Z | riboseq/densebuilder_main_allTR.py | elifesciences-publications/G418_readthrough | 9c115ec30aaa851630fff85719db72f2de859bfd | [
"MIT"
] | 2 | 2019-10-24T19:34:50.000Z | 2020-09-17T15:08:15.000Z | riboseq/densebuilder_main_allTR.py | jrw24/G418_readthrough | 83acb663fb7539d1c7c896fe12587c5c00829b7b | [
"MIT"
] | 2 | 2020-01-29T19:29:45.000Z | 2020-08-24T21:39:32.000Z | # This file holds the programs used in the part of the workflow invovled in creating ribosome density data structures.
import argparse
import pysam
import twobitreader
import GFF
from collections import OrderedDict
import pandas as pd
from Bio import SeqIO
#from rpgetreads import SeqReadGetter
### 190704 - outputti... | 43.617978 | 239 | 0.712828 | 2,408 | 19,410 | 5.693106 | 0.205565 | 0.009629 | 0.021883 | 0.009702 | 0.351156 | 0.319498 | 0.289007 | 0.252024 | 0.196805 | 0.175797 | 0 | 0.01647 | 0.183565 | 19,410 | 444 | 240 | 43.716216 | 0.848615 | 0.319011 | 0 | 0.219269 | 0 | 0 | 0.104718 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0 | null | null | 0.006645 | 0.0299 | null | null | 0.049834 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3fef6ba119464724fa21cca3747f98aa0292201f | 1,915 | py | Python | tests/esp32/uart2.py | rodgergr/pycom-micropython-sigfox-1 | b6a4d449b0b0ca76380fa89f4153ed00fc7dc11d | [
"MIT"
] | 198 | 2017-03-24T23:23:54.000Z | 2022-01-07T07:14:00.000Z | tests/esp32/uart2.py | rodgergr/pycom-micropython-sigfox-1 | b6a4d449b0b0ca76380fa89f4153ed00fc7dc11d | [
"MIT"
] | 509 | 2017-03-28T19:37:18.000Z | 2022-03-31T20:31:43.000Z | tests/esp32/uart2.py | rodgergr/pycom-micropython-sigfox-1 | b6a4d449b0b0ca76380fa89f4153ed00fc7dc11d | [
"MIT"
] | 187 | 2017-03-24T23:23:58.000Z | 2022-02-25T01:48:45.000Z | '''
P11 and P12 must be connected together for this test to pass.
'''
from machine import UART
from machine import Pin
import os
import time
# do not execute this test on the GPy and FiPy
if os.uname().sysname == 'GPy' or os.uname().sysname == 'FiPy':
print("SKIP")
import sys
sys.exit()
uart = UART(2, 11... | 22.529412 | 72 | 0.645431 | 309 | 1,915 | 4 | 0.28479 | 0.152913 | 0.084142 | 0.06877 | 0.419903 | 0.290453 | 0.248382 | 0.203074 | 0.203074 | 0.203074 | 0 | 0.114024 | 0.143603 | 1,915 | 84 | 73 | 22.797619 | 0.639634 | 0.088773 | 0 | 0.492537 | 0 | 0 | 0.077855 | 0 | 0 | 0 | 0.00346 | 0 | 0 | 1 | 0 | false | 0 | 0.074627 | 0 | 0.074627 | 0.402985 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3ff6a3ae1cea0b7ef251d376905862401906fe75 | 1,414 | py | Python | tests/main_test.py | Harry-Hopkinson/babi | a1139c0d88be3c4e1db9639c45dcc9cffb1c338a | [
"MIT"
] | null | null | null | tests/main_test.py | Harry-Hopkinson/babi | a1139c0d88be3c4e1db9639c45dcc9cffb1c338a | [
"MIT"
] | null | null | null | tests/main_test.py | Harry-Hopkinson/babi | a1139c0d88be3c4e1db9639c45dcc9cffb1c338a | [
"MIT"
] | null | null | null | from __future__ import annotations
import pytest
from babi import main
from babi.screen import FileInfo
@pytest.mark.parametrize(
("in_filenames", "expected"),
(
(
[],
[FileInfo(filename=None, initial_line=0, is_stdin=False)],
),
(
["+3"],
... | 25.709091 | 71 | 0.46181 | 136 | 1,414 | 4.588235 | 0.242647 | 0.25641 | 0.153846 | 0.089744 | 0.633013 | 0.474359 | 0.3125 | 0.283654 | 0.158654 | 0.158654 | 0 | 0.022297 | 0.365629 | 1,414 | 54 | 72 | 26.185185 | 0.673356 | 0 | 0 | 0.2 | 0 | 0 | 0.037482 | 0 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.02 | false | 0 | 0.08 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ff7519f09e3516f13d05a6d0280caf3c4a4c764 | 1,463 | py | Python | phase3test.py | electr0de/APControllerProjectGit | 141ac08e716d6ac8cebe7b144b744744024d8939 | [
"MIT"
] | null | null | null | phase3test.py | electr0de/APControllerProjectGit | 141ac08e716d6ac8cebe7b144b744744024d8939 | [
"MIT"
] | null | null | null | phase3test.py | electr0de/APControllerProjectGit | 141ac08e716d6ac8cebe7b144b744744024d8939 | [
"MIT"
] | null | null | null | from gym.envs.registration import register
from simglucose.sensor.cgm import CGMSensor,CGMSensorWithoutNoise
from simglucose.actuator.pump import InsulinPump
from simglucose.patient.t1dpatient import T1DPatient
from simglucose.simulation.env import T1DSimEnv
from simglucose.simulation.scenario import CustomScenario,Ze... | 28.686275 | 91 | 0.814764 | 173 | 1,463 | 6.763006 | 0.427746 | 0.083761 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019593 | 0.09296 | 1,463 | 51 | 92 | 28.686275 | 0.862095 | 0 | 0 | 0 | 0 | 0 | 0.101776 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.354839 | 0 | 0.354839 | 0.032258 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3ff8a1b8820d703b460ce2a19d4940516537b3ee | 9,448 | py | Python | src/keri/help/helping.py | KodexData/keripy | 2a6b7883fcb04c29b4ce8f55ebb5d2eb36e24689 | [
"Apache-2.0"
] | 26 | 2020-05-18T19:52:33.000Z | 2022-03-02T13:58:45.000Z | src/keri/help/helping.py | KodexData/keripy | 2a6b7883fcb04c29b4ce8f55ebb5d2eb36e24689 | [
"Apache-2.0"
] | 16 | 2020-08-26T12:53:37.000Z | 2021-05-26T15:29:19.000Z | src/keri/help/helping.py | m00sey/keripy | 7bdaf57972d44c2435726bd2300b01a1a90a83b2 | [
"Apache-2.0"
] | 13 | 2020-05-05T20:21:26.000Z | 2022-03-31T14:11:30.000Z | # -*- encoding: utf-8 -*-
"""
keri.help.helping module
"""
import base64
import dataclasses
import datetime
from collections.abc import Iterable, Sequence, Mapping
import pysodium
from multidict import MultiDict # base class for mdict defined below
from orderedset import OrderedSet as oset
# Utilities
def isign(i)... | 29.070769 | 85 | 0.632303 | 1,299 | 9,448 | 4.591994 | 0.249423 | 0.008382 | 0.011735 | 0.011735 | 0.329757 | 0.315842 | 0.28751 | 0.283487 | 0.273428 | 0.247443 | 0 | 0.027974 | 0.281118 | 9,448 | 324 | 86 | 29.160494 | 0.850265 | 0.533552 | 0 | 0.320388 | 0 | 0 | 0.036448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194175 | false | 0 | 0.067961 | 0 | 0.553398 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3ffb736a1351c1b2923059e46f187320f471e6ff | 1,460 | py | Python | impala/error.py | ishaan/impyla | dcf525e10856f0705875a654d845440c40234fd4 | [
"Apache-2.0"
] | null | null | null | impala/error.py | ishaan/impyla | dcf525e10856f0705875a654d845440c40234fd4 | [
"Apache-2.0"
] | null | null | null | impala/error.py | ishaan/impyla | dcf525e10856f0705875a654d845440c40234fd4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 25.172414 | 96 | 0.758904 | 186 | 1,460 | 5.876344 | 0.564516 | 0.082342 | 0.120769 | 0.029277 | 0.093321 | 0.093321 | 0.093321 | 0.093321 | 0 | 0 | 0 | 0.010664 | 0.165068 | 1,460 | 57 | 97 | 25.614035 | 0.885972 | 0.413014 | 0 | 0.392857 | 0 | 0 | 0.045292 | 0.028605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.392857 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b201fc9a376dd61f62d722dd53f17f9dc955278b | 528 | py | Python | src/utils/clean_sentence.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | src/utils/clean_sentence.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | src/utils/clean_sentence.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | def clean_sentence(output, data_loader):
start_word = data_loader.dataset.vocab.start_word
end_word = data_loader.dataset.vocab.end_word
unk_word = data_loader.dataset.vocab.unk_word
words = []
for i in range(len(output)):
word_idx = output[i]
word = data_loader.dataset.vocab.idx2wo... | 33 | 63 | 0.642045 | 73 | 528 | 4.39726 | 0.383562 | 0.155763 | 0.174455 | 0.261682 | 0.323988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002545 | 0.255682 | 528 | 15 | 64 | 35.2 | 0.814249 | 0.085227 | 0 | 0 | 0 | 0 | 0.002075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b202251c9c85e8ab1f113d265605c6f3365c2732 | 379 | py | Python | test_fixtures/entities/counter_report_types.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | 1 | 2019-12-12T15:38:42.000Z | 2019-12-12T15:38:42.000Z | test_fixtures/entities/counter_report_types.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | test_fixtures/entities/counter_report_types.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | import factory
from sushi.models import CounterReportType
from .report_types import ReportTypeFactory
class CounterReportTypeFactory(factory.django.DjangoModelFactory):
class Meta:
model = CounterReportType
django_get_or_create = ('code',)
code = 'TR'
counter_version = 5
report_type... | 22.294118 | 66 | 0.744063 | 38 | 379 | 7.263158 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003268 | 0.192612 | 379 | 16 | 67 | 23.6875 | 0.898693 | 0 | 0 | 0 | 0 | 0 | 0.015831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.818182 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b204d3f95bd91af63f1ddc17da51fb5149a0ce44 | 8,170 | py | Python | pysnmp-with-texts/TPLINK-SSH-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/TPLINK-SSH-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/TPLINK-SSH-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 TPLINK-SSH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TPLINK-SSH-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:25:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 123.787879 | 815 | 0.788005 | 846 | 8,170 | 7.607565 | 0.176123 | 0.0578 | 0.10115 | 0.009944 | 0.548322 | 0.365289 | 0.365289 | 0.365289 | 0.365289 | 0.363269 | 0 | 0.069224 | 0.068176 | 8,170 | 65 | 816 | 125.692308 | 0.776172 | 0.039412 | 0 | 0 | 0 | 0 | 0.155377 | 0.005613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.122807 | 0 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b20b365fe5b25b02d0fbb92687ed2843e7a98ae8 | 2,238 | py | Python | easycorrector/preprocess/full_half_width_convert.py | milter001/text_corrector | ca28fe0ebc008c1c9b1c640eacb78e876e9a3e84 | [
"MIT"
] | 5 | 2021-07-19T03:14:45.000Z | 2021-12-21T09:21:14.000Z | easycorrector/preprocess/full_half_width_convert.py | milter001/text_corrector | ca28fe0ebc008c1c9b1c640eacb78e876e9a3e84 | [
"MIT"
] | null | null | null | easycorrector/preprocess/full_half_width_convert.py | milter001/text_corrector | ca28fe0ebc008c1c9b1c640eacb78e876e9a3e84 | [
"MIT"
] | 2 | 2021-07-19T01:39:21.000Z | 2021-07-22T07:31:00.000Z | def trans_char_number(text, q2b=True):
table = {ord(u'\uff41'): ord('a'), ord(u'\uff42'): ord('b'), ord(u'\uff43'): ord('c'), ord(u'\uff44'): ord('d'),
ord(u'\uff45'): ord('e'), ord(u'\uff46'): ord('f'), ord(u'\uff47'): ord('g'), ord(u'\uff48'): ord('h'),
ord(u'\uff49'): ord('i'), ord(u'\u... | 60.486486 | 116 | 0.457998 | 375 | 2,238 | 2.714667 | 0.312 | 0.251473 | 0.020629 | 0.023576 | 0.094303 | 0.094303 | 0.094303 | 0.094303 | 0.094303 | 0.094303 | 0 | 0.069989 | 0.201966 | 2,238 | 36 | 117 | 62.166667 | 0.5 | 0 | 0 | 0.137931 | 0 | 0 | 0.204647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.137931 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b20ea067e72c70f71a452e9b207d38b5f768a781 | 1,891 | py | Python | utils.py | SirGandal/IcyBurst | 2fdfdfdbb1f99e06c56c3d39f0544106116d06a5 | [
"MIT"
] | null | null | null | utils.py | SirGandal/IcyBurst | 2fdfdfdbb1f99e06c56c3d39f0544106116d06a5 | [
"MIT"
] | null | null | null | utils.py | SirGandal/IcyBurst | 2fdfdfdbb1f99e06c56c3d39f0544106116d06a5 | [
"MIT"
] | null | null | null | from genericpath import exists
import csv
from os.path import isfile, join
import os
def getFileNameFromPath(path):
return path.split('/')[-1]
def loadPreDefinedStatuses(PHOTO_FOLDERS):
# for each folder we can have a csv file that contains file name and the status to use in the tweet or instagram photo
s... | 37.078431 | 147 | 0.642517 | 212 | 1,891 | 5.698113 | 0.349057 | 0.039735 | 0.054636 | 0.02649 | 0.071192 | 0.033113 | 0.033113 | 0 | 0 | 0 | 0 | 0.001448 | 0.269699 | 1,891 | 51 | 148 | 37.078431 | 0.87328 | 0.070862 | 0 | 0.1 | 0 | 0 | 0.127635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.225 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b745aca946b737a88b193e60c380583087434b25 | 780 | py | Python | Lets-code/347. Top K Frequent Elements - Version 2 - heap.py | nicksmd/leet-code | 9b881efbbde6704803875b5aa670347df28230f7 | [
"MIT"
] | null | null | null | Lets-code/347. Top K Frequent Elements - Version 2 - heap.py | nicksmd/leet-code | 9b881efbbde6704803875b5aa670347df28230f7 | [
"MIT"
] | null | null | null | Lets-code/347. Top K Frequent Elements - Version 2 - heap.py | nicksmd/leet-code | 9b881efbbde6704803875b5aa670347df28230f7 | [
"MIT"
] | null | null | null | """
Algorithm: Heap
Complexity: O(n log k)
"""
import collections
import heapq
class Solution(object):
def topKFrequent(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
n = len(nums)
c = collections.defaultdict(int)
... | 19.02439 | 50 | 0.497436 | 102 | 780 | 3.764706 | 0.45098 | 0.052083 | 0.109375 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033531 | 0.35 | 780 | 40 | 51 | 19.5 | 0.723866 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b747d1a68cecfd09af7cc81ba0e20f08b0ce181e | 1,760 | py | Python | setup.py | Dogeek/yandex | 3bfb82d71fff403f1791b350ede7800f743e62b4 | [
"MIT"
] | null | null | null | setup.py | Dogeek/yandex | 3bfb82d71fff403f1791b350ede7800f743e62b4 | [
"MIT"
] | null | null | null | setup.py | Dogeek/yandex | 3bfb82d71fff403f1791b350ede7800f743e62b4 | [
"MIT"
] | null | null | null | # Copyright (c) RedFantom 2017
# For license see LICENSE
from setuptools import setup
long_description = """
yandex
==========
A python wrapper around the Yandex API
License
-------
MIT License
Copyright (c) 2019 Dogeek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software... | 32.592593 | 78 | 0.742614 | 249 | 1,760 | 5.2249 | 0.534137 | 0.06764 | 0.021522 | 0.030746 | 0.098386 | 0.098386 | 0.098386 | 0 | 0 | 0 | 0 | 0.008259 | 0.174432 | 1,760 | 53 | 79 | 33.207547 | 0.88713 | 0.029545 | 0 | 0 | 0 | 0 | 0.807038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b748fd3c2f8f94220bfd5565660563d52f87d9c5 | 4,560 | py | Python | src/test/utils/Enum.py | huseyinbolt/cord-tester | ed9b79916e6326a45bfaf3227b8ff922d76df4f1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/test/utils/Enum.py | huseyinbolt/cord-tester | ed9b79916e6326a45bfaf3227b8ff922d76df4f1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/test/utils/Enum.py | huseyinbolt/cord-tester | ed9b79916e6326a45bfaf3227b8ff922d76df4f1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 31.232877 | 124 | 0.645614 | 585 | 4,560 | 4.926496 | 0.294017 | 0.041638 | 0.018043 | 0.022207 | 0.390701 | 0.32755 | 0.288688 | 0.288688 | 0.288688 | 0.288688 | 0 | 0.013577 | 0.257018 | 4,560 | 145 | 125 | 31.448276 | 0.837072 | 0.296053 | 0 | 0.051948 | 0 | 0 | 0.069362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012987 | 0.025974 | null | null | 0.051948 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b757cc294b9a3dd2bb0c2024d477bcc97937b89e | 2,692 | py | Python | scooch/cli/cli.py | PandoraMedia/scooch | 1890f139ce411395de1022fa3764946007a35e58 | [
"Apache-2.0"
] | 6 | 2021-11-09T17:46:35.000Z | 2022-03-12T02:10:45.000Z | scooch/cli/cli.py | PandoraMedia/scooch | 1890f139ce411395de1022fa3764946007a35e58 | [
"Apache-2.0"
] | null | null | null | scooch/cli/cli.py | PandoraMedia/scooch | 1890f139ce411395de1022fa3764946007a35e58 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2021 Pandora Media, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 30.247191 | 100 | 0.694279 | 361 | 2,692 | 5.074792 | 0.434903 | 0.032751 | 0.040939 | 0.017467 | 0.269651 | 0.229258 | 0.229258 | 0.229258 | 0.179039 | 0.179039 | 0 | 0.007955 | 0.206166 | 2,692 | 88 | 101 | 30.590909 | 0.849321 | 0.32318 | 0 | 0.384615 | 0 | 0 | 0.10823 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.057692 | false | 0.019231 | 0.230769 | 0 | 0.326923 | 0.096154 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7590bd3275cb4c0f96c94a3d14834f260bdb079 | 1,398 | py | Python | tests/maze_tests.py | kgourgou/pymaze | 6786679def40485bf74820da2e89cd573afb3ba0 | [
"MIT"
] | null | null | null | tests/maze_tests.py | kgourgou/pymaze | 6786679def40485bf74820da2e89cd573afb3ba0 | [
"MIT"
] | null | null | null | tests/maze_tests.py | kgourgou/pymaze | 6786679def40485bf74820da2e89cd573afb3ba0 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import unittest
from pymaze.maze import Maze
from pymaze.cell import Cell
def generate_maze():
# Used to generate a 5x5 maze for testing, Feel free to modify as needed
cols = 5
rows = 5
return Maze(rows, cols)
class TestMaze(unittest.TestCase):... | 27.411765 | 78 | 0.622318 | 178 | 1,398 | 4.719101 | 0.337079 | 0.178571 | 0.090476 | 0.02381 | 0.155952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.281116 | 1,398 | 50 | 79 | 27.96 | 0.81592 | 0.096567 | 0 | 0.114286 | 1 | 0 | 0.006628 | 0 | 0 | 0 | 0 | 0 | 0.342857 | 1 | 0.114286 | false | 0 | 0.114286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b75a228f8752b92a0750347960dc169e12157e35 | 605 | py | Python | setup.py | robehickman/system_monitor | 5eef902996891ed6245c452821735f144c405380 | [
"MIT"
] | null | null | null | setup.py | robehickman/system_monitor | 5eef902996891ed6245c452821735f144c405380 | [
"MIT"
] | null | null | null | setup.py | robehickman/system_monitor | 5eef902996891ed6245c452821735f144c405380 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='system monitor',
version='0.1',
description='Network enabled system monitor',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
keywords='Network... | 24.2 | 49 | 0.603306 | 61 | 605 | 5.901639 | 0.770492 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015521 | 0.254545 | 605 | 24 | 50 | 25.208333 | 0.782705 | 0 | 0 | 0.090909 | 0 | 0 | 0.438742 | 0.034768 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 | 0 | 0 | 0 | 0 | 1 |
b75bd34e68f6af0a57da39cd4caeff4ad521c6d0 | 1,336 | py | Python | casinotools/fileformat/casino3/ScanPointsFile/LineXPattern.py | drix00/pycasinotools | 2e33b42fb7c7629b35f007be5a404fdd1c45c771 | [
"Apache-2.0"
] | 2 | 2019-07-14T23:16:09.000Z | 2019-10-26T10:54:38.000Z | casinotools/fileformat/casino3/ScanPointsFile/LineXPattern.py | drix00/pycasinotools | 2e33b42fb7c7629b35f007be5a404fdd1c45c771 | [
"Apache-2.0"
] | 5 | 2017-02-06T16:50:48.000Z | 2020-08-21T03:50:06.000Z | casinotools/fileformat/casino3/ScanPointsFile/LineXPattern.py | drix00/pycasinotools | 2e33b42fb7c7629b35f007be5a404fdd1c45c771 | [
"Apache-2.0"
] | 5 | 2016-05-03T16:41:14.000Z | 2022-01-14T22:22:58.000Z | #!/usr/bin/env python
""" """
# Script information for the file.
__author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)"
__version__ = ""
__date__ = ""
__copyright__ = "Copyright (c) 2010 Hendrix Demers"
__license__ = ""
# Standard library modules.
# Third party modules.
# Local modules.
import... | 26.72 | 83 | 0.646707 | 158 | 1,336 | 5.082278 | 0.436709 | 0.07472 | 0.062267 | 0.059776 | 0.054795 | 0.054795 | 0.054795 | 0 | 0 | 0 | 0 | 0.016016 | 0.252246 | 1,336 | 49 | 84 | 27.265306 | 0.787788 | 0.110778 | 0 | 0 | 0 | 0 | 0.075488 | 0.027531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0 | 0.37931 | 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 | 0 | 0 | 0 | 0 | 1 |
b76335ca9da2b422c05da64e428ae5cfb638d216 | 260 | py | Python | syn/kc705_busy_wait/verilog/Manifest.py | vfinotti/cortex-m0-soft-microcontroller | 7ded322fee2bba4b4e62df5b72e3d7768c6b4381 | [
"MIT"
] | 10 | 2019-02-27T21:06:02.000Z | 2021-12-08T05:24:52.000Z | syn/kc705_busy_wait/verilog/Manifest.py | vfinotti/cortex-m0-soft-microcontroller | 7ded322fee2bba4b4e62df5b72e3d7768c6b4381 | [
"MIT"
] | null | null | null | syn/kc705_busy_wait/verilog/Manifest.py | vfinotti/cortex-m0-soft-microcontroller | 7ded322fee2bba4b4e62df5b72e3d7768c6b4381 | [
"MIT"
] | 4 | 2020-07-08T17:45:22.000Z | 2021-12-11T04:09:01.000Z | target = "xilinx"
action = "synthesis"
syn_device = "xc7k325t"
syn_grade = "-2"
syn_package = "ffg900"
syn_top = "cm0_busy_wait_top"
syn_project = "cm0_busy_wait_top"
syn_tool = "vivado"
modules = {
"local" : [ "../../../top/kc705_busy_wait/verilog" ],
}
| 17.333333 | 55 | 0.673077 | 35 | 260 | 4.6 | 0.628571 | 0.149068 | 0.136646 | 0.173913 | 0.21118 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058559 | 0.146154 | 260 | 14 | 56 | 18.571429 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.432432 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b764d832e1840735c71be4a852bbce26a1903cc5 | 387 | py | Python | utop/lib/dataobject.py | leonkoens/utop | 62fb0d3cc8151161b7225a3b95b7715fb68898e2 | [
"BSD-3-Clause"
] | null | null | null | utop/lib/dataobject.py | leonkoens/utop | 62fb0d3cc8151161b7225a3b95b7715fb68898e2 | [
"BSD-3-Clause"
] | 2 | 2015-05-27T12:05:21.000Z | 2015-09-02T11:32:13.000Z | utop/lib/dataobject.py | leonkoens/utop | 62fb0d3cc8151161b7225a3b95b7715fb68898e2 | [
"BSD-3-Clause"
] | null | null | null |
class DataObject:
def __init__(self, read_data=True):
if read_data:
self._run_methods('read')
self._run_methods('parse')
def _run_methods(self, method_type):
for method in [m for m in dir(self) if m.startswith('_{}_'.format(method_type))]:
getattr(self, me... | 24.1875 | 89 | 0.614987 | 49 | 387 | 4.510204 | 0.489796 | 0.135747 | 0.126697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271318 | 387 | 15 | 90 | 25.8 | 0.783688 | 0 | 0 | 0 | 0 | 0 | 0.033766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 |
b76864000c739ca0b9c6ab88cf863d7e08893783 | 344 | py | Python | arcade/intro/f. 54. sum-up-numbers/sum_up_numbers.py | jeury301/code-fights | 379dd541aed0f3918cf1659b635ec51368b0b349 | [
"MIT"
] | null | null | null | arcade/intro/f. 54. sum-up-numbers/sum_up_numbers.py | jeury301/code-fights | 379dd541aed0f3918cf1659b635ec51368b0b349 | [
"MIT"
] | null | null | null | arcade/intro/f. 54. sum-up-numbers/sum_up_numbers.py | jeury301/code-fights | 379dd541aed0f3918cf1659b635ec51368b0b349 | [
"MIT"
] | null | null | null | def sumUpNumbers(inputString):
numbers = []
curr = ""
for i in inputString:
try:
x = int(i)
curr += i
except:
if curr != "":
numbers.append(curr)
curr = ""
if curr != "":
numbers.append(curr)
return sum([in... | 20.235294 | 41 | 0.43314 | 35 | 344 | 4.257143 | 0.457143 | 0.080537 | 0.174497 | 0.255034 | 0.308725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444767 | 344 | 16 | 42 | 21.5 | 0.780105 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b76de7776df9f592b2258dbc626cf719daf73024 | 334 | py | Python | glue_crawler_trigger.py | humzatariq1994/batch_data_pipeline | 456afea6df2fa987df382a91a9de1d4f1e85de50 | [
"MIT"
] | null | null | null | glue_crawler_trigger.py | humzatariq1994/batch_data_pipeline | 456afea6df2fa987df382a91a9de1d4f1e85de50 | [
"MIT"
] | null | null | null | glue_crawler_trigger.py | humzatariq1994/batch_data_pipeline | 456afea6df2fa987df382a91a9de1d4f1e85de50 | [
"MIT"
] | 1 | 2021-07-12T23:58:39.000Z | 2021-07-12T23:58:39.000Z | import json
import sys
import boto3
client = boto3.client('glue')
def lambda_handler(event, context):
print(event)
file_name = event['Records'][0]['s3']['object']['key'].split("/")[1]
if file_name == "csv":
client.start_crawler( Name='csv_crawler' )
else:
client.start_crawler( Name='json_crawler' )
... | 13.916667 | 69 | 0.646707 | 44 | 334 | 4.75 | 0.590909 | 0.105263 | 0.172249 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0.182635 | 334 | 24 | 70 | 13.916667 | 0.747253 | 0 | 0 | 0 | 0 | 0 | 0.146269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b76fd6afdfb106cdf33262255e7de6b20919891f | 1,619 | py | Python | zinnia/admin/fields.py | layar/django-blog-zinnia | 35cc473cacd78b67aab6ccf50c42e3171ee20c03 | [
"BSD-3-Clause"
] | 1 | 2021-06-20T10:27:38.000Z | 2021-06-20T10:27:38.000Z | zinnia/admin/fields.py | amit2014/django-blog-zinnia | eee324f9a849cdb7224e95a8703373701b9272f7 | [
"BSD-3-Clause"
] | null | null | null | zinnia/admin/fields.py | amit2014/django-blog-zinnia | eee324f9a849cdb7224e95a8703373701b9272f7 | [
"BSD-3-Clause"
] | null | null | null | """Fields for Zinnia admin"""
from __future__ import unicode_literals
from django import forms
from django.utils.encoding import smart_unicode
class MPTTModelChoiceIterator(forms.models.ModelChoiceIterator):
"""
MPTT version of ModelChoiceIterator
"""
def choice(self, obj):
"""
Overl... | 31.745098 | 79 | 0.667696 | 176 | 1,619 | 5.909091 | 0.414773 | 0.053846 | 0.051923 | 0.042308 | 0.067308 | 0.067308 | 0.067308 | 0 | 0 | 0 | 0 | 0.001629 | 0.241507 | 1,619 | 50 | 80 | 32.38 | 0.845277 | 0.216183 | 0 | 0 | 0 | 0 | 0.006969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b77b42faf3561eb856beb956d59ef67d28177ada | 7,880 | py | Python | polyarchiv/_vendor/ldif3.py | d9pouces/PolyArchiv | 36f4a61bf29337f3efea7abb098329b693122e78 | [
"CECILL-B"
] | 9 | 2016-05-15T07:46:10.000Z | 2021-12-05T17:12:28.000Z | polyarchiv/_vendor/ldif3.py | d9pouces/PolyArchiv | 36f4a61bf29337f3efea7abb098329b693122e78 | [
"CECILL-B"
] | 1 | 2016-05-23T17:21:46.000Z | 2016-05-23T17:21:46.000Z | polyarchiv/_vendor/ldif3.py | d9pouces/PolyArchiv | 36f4a61bf29337f3efea7abb098329b693122e78 | [
"CECILL-B"
] | 3 | 2016-06-25T06:45:36.000Z | 2021-06-19T06:27:33.000Z | # coding=utf-8
"""ldif3 - generate and parse LDIF data (see RFC 2849)."""
from __future__ import unicode_literals
import base64
import logging
import re
from collections import OrderedDict
try: # pragma: nocover
# noinspection PyCompatibility
from urlparse import urlparse
from urllib import urlopen
exce... | 32.427984 | 80 | 0.579822 | 952 | 7,880 | 4.607143 | 0.246849 | 0.038988 | 0.027132 | 0.01938 | 0.114455 | 0.060192 | 0.017328 | 0.017328 | 0.017328 | 0 | 0 | 0.006494 | 0.31599 | 7,880 | 242 | 81 | 32.561983 | 0.807236 | 0.248096 | 0 | 0.165605 | 1 | 0 | 0.094865 | 0.009922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076433 | false | 0.012739 | 0.063694 | 0 | 0.210191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b77e1999ae5e666009b8f2f8c92331a34dcda877 | 1,276 | py | Python | src/tables.py | exifna/gitHack | 9ef60c0d50cf3fcc352cc52b22653719f1b2bc32 | [
"MIT"
] | null | null | null | src/tables.py | exifna/gitHack | 9ef60c0d50cf3fcc352cc52b22653719f1b2bc32 | [
"MIT"
] | null | null | null | src/tables.py | exifna/gitHack | 9ef60c0d50cf3fcc352cc52b22653719f1b2bc32 | [
"MIT"
] | null | null | null | from enum import Enum
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey
from src.database import Base
from src.types import GitObjectType
class Site(Base):
__tablename__ = 'sites'
id: int = Column(Integer, nullable=False, unique=True, primary_key=True, autoincrement=True)
site_name: str... | 31.9 | 96 | 0.706897 | 160 | 1,276 | 5.45 | 0.28125 | 0.072248 | 0.063073 | 0.082569 | 0.392202 | 0.33945 | 0.33945 | 0.33945 | 0.33945 | 0.33945 | 0 | 0 | 0.167712 | 1,276 | 39 | 97 | 32.717949 | 0.821092 | 0 | 0 | 0.222222 | 0 | 0 | 0.084053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b77e358f6f8f43f33173680461e7aa733b8e9d54 | 3,238 | py | Python | tests/labeling_tests.py | oeg-upm/ttla | ab1cc5a2777b3d4fb905f4452379f469153c904b | [
"Apache-2.0"
] | null | null | null | tests/labeling_tests.py | oeg-upm/ttla | ab1cc5a2777b3d4fb905f4452379f469153c904b | [
"Apache-2.0"
] | 5 | 2019-04-03T12:58:29.000Z | 2021-06-02T00:18:34.000Z | tests/labeling_tests.py | oeg-upm/bob | ab1cc5a2777b3d4fb905f4452379f469153c904b | [
"Apache-2.0"
] | null | null | null | from label import SimilarityMeasures
from app import app
import unittest
import os
import pandas as pd
import commons
DATA_HOME = os.path.join(os.path.abspath("tests"), 'data')
class LabelingTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
pass
@classmethod
def tearDownClass(cls)... | 35.582418 | 96 | 0.607474 | 373 | 3,238 | 5.160858 | 0.383378 | 0.061818 | 0.029091 | 0.045714 | 0.25039 | 0.21974 | 0.164156 | 0.137143 | 0.137143 | 0.137143 | 0 | 0.033761 | 0.277332 | 3,238 | 90 | 97 | 35.977778 | 0.788889 | 0.286597 | 0 | 0.092593 | 0 | 0 | 0.079247 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 1 | 0.111111 | false | 0.055556 | 0.12963 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b78286f657bbf93bca02fd36808f11cc78722846 | 15,806 | py | Python | continuum_normalization.py | bkaiser94/red_cam_pipeline | 87862a8658788c744ce9de880c6b755350318b2b | [
"MIT"
] | null | null | null | continuum_normalization.py | bkaiser94/red_cam_pipeline | 87862a8658788c744ce9de880c6b755350318b2b | [
"MIT"
] | null | null | null | continuum_normalization.py | bkaiser94/red_cam_pipeline | 87862a8658788c744ce9de880c6b755350318b2b | [
"MIT"
] | 3 | 2017-06-28T17:52:38.000Z | 2019-04-09T21:27:44.000Z | '''
Written by J. T. Fuchs, UNC, 2016. Some initial work done by E. Dennihy, UNC.
Continuum normalizes a ZZ Ceti spectrum to match a DA model. The response function is determined by dividing the observed spectrum by the model spectrum. The response function is fitted with a polynomial. The observed spectrum is then di... | 47.041667 | 455 | 0.693661 | 2,115 | 15,806 | 4.986288 | 0.179669 | 0.076996 | 0.069979 | 0.029205 | 0.523137 | 0.465959 | 0.42528 | 0.400436 | 0.321733 | 0.25934 | 0 | 0.032774 | 0.193091 | 15,806 | 335 | 456 | 47.18209 | 0.794104 | 0.112679 | 0 | 0.318182 | 0 | 0.013636 | 0.119568 | 0.014806 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040909 | null | null | 0.027273 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b783756930663dd55909f8f821a9a74172baed6b | 2,988 | py | Python | all/experiments/experiment.py | drozzy/autonomous-learning-library | 67b27aa71e6689e3447f1b342296b4360419ac38 | [
"MIT"
] | 584 | 2019-07-10T20:21:55.000Z | 2022-03-30T22:47:57.000Z | all/experiments/experiment.py | drozzy/autonomous-learning-library | 67b27aa71e6689e3447f1b342296b4360419ac38 | [
"MIT"
] | 104 | 2019-03-27T14:08:22.000Z | 2022-01-06T18:16:23.000Z | all/experiments/experiment.py | drozzy/autonomous-learning-library | 67b27aa71e6689e3447f1b342296b4360419ac38 | [
"MIT"
] | 66 | 2019-07-11T00:59:06.000Z | 2022-03-15T05:22:57.000Z | from abc import ABC, abstractmethod
import numpy as np
from scipy import stats
import torch
class Experiment(ABC):
'''
An Experiment manages the basic train/test loop and logs results.
Args:
writer (:torch.logging.writer:): A Writer object used for logging.
quiet (bool): If False,... | 34.344828 | 117 | 0.620482 | 363 | 2,988 | 4.983471 | 0.286501 | 0.055279 | 0.043118 | 0.023217 | 0.226092 | 0.100608 | 0.068546 | 0 | 0 | 0 | 0 | 0.012346 | 0.268072 | 2,988 | 86 | 118 | 34.744186 | 0.8139 | 0.284137 | 0 | 0.23913 | 0 | 0 | 0.106114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.021739 | 0.347826 | 0.065217 | 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 | 0 | 0 | 0 | 0 | 1 |
b7863f4a40749b990d069f1febd7f431fedadbc6 | 861 | py | Python | app/web/main.py | sliveryou/PickLight | 6e88a81f336e7fc239a6aa7afc2c10c80b250829 | [
"MIT"
] | 1 | 2019-04-09T08:48:47.000Z | 2019-04-09T08:48:47.000Z | app/web/main.py | sliveryou/PickLight | 6e88a81f336e7fc239a6aa7afc2c10c80b250829 | [
"MIT"
] | null | null | null | app/web/main.py | sliveryou/PickLight | 6e88a81f336e7fc239a6aa7afc2c10c80b250829 | [
"MIT"
] | 1 | 2019-04-09T08:49:11.000Z | 2019-04-09T08:49:11.000Z | # -*- coding: UTF-8 -*-
from . import web
from flask import render_template, redirect, url_for
from flask_login import login_required, current_user
from app.models.user import User
from app.models.gift import Gift
from app.view_models.book import BookViewModel
@web.route('/')
def index():
'''处理最近上传页面。'''
rec... | 26.90625 | 74 | 0.731707 | 117 | 861 | 5.213675 | 0.384615 | 0.091803 | 0.098361 | 0.113115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005333 | 0.12892 | 861 | 31 | 75 | 27.774194 | 0.808 | 0.060395 | 0 | 0.1 | 0 | 0 | 0.0971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.3 | 0 | 0.6 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b7882d35a560b81dcbd757ec8091fd137f3644dd | 12,187 | py | Python | app.py | suubh/Example | 453e9239eb97b5ccc685a1762f443115f577290a | [
"MIT"
] | null | null | null | app.py | suubh/Example | 453e9239eb97b5ccc685a1762f443115f577290a | [
"MIT"
] | null | null | null | app.py | suubh/Example | 453e9239eb97b5ccc685a1762f443115f577290a | [
"MIT"
] | null | null | null | import streamlit as st
st.set_page_config(layout="wide")
import streamlit.components.v1 as components
import os
from PIL import Image
import numpy as np
from keras.models import load_model
classes = { 0:'Speed limit (20km/h)',
1:'Speed limit (30km/h)',
2:'Speed limit (50km/h)',
3:'S... | 36.597598 | 337 | 0.575285 | 1,530 | 12,187 | 4.566667 | 0.275817 | 0.02748 | 0.019322 | 0.017175 | 0.474453 | 0.436525 | 0.386861 | 0.377988 | 0.306999 | 0.306999 | 0 | 0.074404 | 0.273242 | 12,187 | 333 | 338 | 36.597598 | 0.714237 | 0 | 0 | 0.025 | 0 | 0 | 0.331079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0125 | false | 0.075 | 0.075 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b788719d6d6c8148dabed6ea2c4293b154aeb1f8 | 16,456 | py | Python | hierarchicalMultiLabelLearning.py | sushobhannayak/cssag | 228649332fdbd9aa31864db6bb198a562b5f1ec7 | [
"MIT"
] | 16 | 2017-04-11T07:21:45.000Z | 2021-10-05T07:15:55.000Z | hierarchicalMultiLabelLearning.py | sushobhannayak/cssag | 228649332fdbd9aa31864db6bb198a562b5f1ec7 | [
"MIT"
] | 1 | 2017-07-31T08:21:29.000Z | 2017-07-31T08:21:29.000Z | hierarchicalMultiLabelLearning.py | sushobhannayak/cssag | 228649332fdbd9aa31864db6bb198a562b5f1ec7 | [
"MIT"
] | 6 | 2015-03-21T06:44:08.000Z | 2021-04-01T14:56:24.000Z | import sys
from optparse import OptionParser
from sklearn.metrics import precision_recall_fscore_support
import operator
from sklearn.svm import SVR
from sklearn.datasets import load_svmlight_file
import numpy as np
from sklearn.decomposition import PCA, KernelPCA
from sklearn.linear_model import RidgeCV, Ridge
import ... | 43.191601 | 306 | 0.589511 | 2,248 | 16,456 | 4.210409 | 0.143238 | 0.005071 | 0.020074 | 0.005177 | 0.350238 | 0.306603 | 0.258214 | 0.240148 | 0.209509 | 0.165346 | 0 | 0.013455 | 0.250304 | 16,456 | 380 | 307 | 43.305263 | 0.753749 | 0.077115 | 0 | 0.234043 | 0 | 0.007092 | 0.127507 | 0.002906 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035461 | null | null | 0.060284 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b78be230ffa80fa0b74aa433142f2f33a1d2b5fc | 2,988 | py | Python | st2actions/st2actions/runners/utils.py | totalkyos/stack-storm | b89bc648d53dae03c7484d22abd771edfe45bbb8 | [
"Apache-2.0"
] | null | null | null | st2actions/st2actions/runners/utils.py | totalkyos/stack-storm | b89bc648d53dae03c7484d22abd771edfe45bbb8 | [
"Apache-2.0"
] | null | null | null | st2actions/st2actions/runners/utils.py | totalkyos/stack-storm | b89bc648d53dae03c7484d22abd771edfe45bbb8 | [
"Apache-2.0"
] | null | null | null | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 36.888889 | 99 | 0.725234 | 402 | 2,988 | 5.233831 | 0.412935 | 0.074144 | 0.027091 | 0.015209 | 0.056084 | 0.028517 | 0 | 0 | 0 | 0 | 0 | 0.003321 | 0.193775 | 2,988 | 80 | 100 | 37.35 | 0.870071 | 0.499665 | 0 | 0.0625 | 0 | 0 | 0.185524 | 0.042164 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b798d2b26760519994f888c3e1f3126f3d397bde | 1,914 | py | Python | nodes/SceneOutput/SceneViewLayer.py | atticus-lv/RenderStackNode | 07d1deb079b6a53fed38d60e07d9298c65a803c1 | [
"Apache-2.0"
] | 37 | 2020-11-30T04:10:50.000Z | 2021-11-11T09:49:23.000Z | nodes/SceneOutput/SceneViewLayer.py | atticus-lv/RenderStackNode | 07d1deb079b6a53fed38d60e07d9298c65a803c1 | [
"Apache-2.0"
] | 4 | 2021-07-28T13:22:26.000Z | 2021-08-03T09:27:29.000Z | nodes/SceneOutput/SceneViewLayer.py | atticus-lv/RenderStackNode | 07d1deb079b6a53fed38d60e07d9298c65a803c1 | [
"Apache-2.0"
] | 5 | 2020-11-30T10:52:28.000Z | 2021-09-04T03:40:05.000Z | import bpy
from bpy.props import *
from ...nodes.BASE.node_base import RenderNodeBase
class RenderNodeSceneViewLayer(RenderNodeBase):
"""A simple input node"""
bl_idname = 'RenderNodeSceneViewLayer'
bl_label = 'Scene View Layer'
def init(self, context):
self.create_input('RenderNodeSocketView... | 34.8 | 115 | 0.670846 | 229 | 1,914 | 5.375546 | 0.327511 | 0.124289 | 0.048741 | 0.085297 | 0.168968 | 0.168968 | 0.128351 | 0.045491 | 0.045491 | 0 | 0 | 0 | 0.213689 | 1,914 | 54 | 116 | 35.444444 | 0.81794 | 0.132706 | 0 | 0 | 0 | 0 | 0.25365 | 0.072384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.103448 | 0.103448 | 0 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b79f8d086f6fd73d747f13595ff448481ec9f97e | 4,836 | py | Python | python/ntp_code/ntp_crypto.py | ntpdrop/ieeesp2021 | 084ac380774351cb032e9c1f48c5c6f7b58372fa | [
"MIT"
] | null | null | null | python/ntp_code/ntp_crypto.py | ntpdrop/ieeesp2021 | 084ac380774351cb032e9c1f48c5c6f7b58372fa | [
"MIT"
] | null | null | null | python/ntp_code/ntp_crypto.py | ntpdrop/ieeesp2021 | 084ac380774351cb032e9c1f48c5c6f7b58372fa | [
"MIT"
] | null | null | null | import logging
from Crypto.Cipher import AES
from bitstring import BitArray
def _repair_key(key: str) -> str:
while len(key) < 32:
key += ' '
key = key[:32]
return key
def _repair_data(data: str) -> str:
while len(data) % 16 != 0:
data += ' '
return data
def decrypt_bits(encry... | 35.29927 | 120 | 0.671629 | 668 | 4,836 | 4.636228 | 0.191617 | 0.054246 | 0.069745 | 0.033581 | 0.417178 | 0.357443 | 0.357443 | 0.309655 | 0.309655 | 0.309655 | 0 | 0.020202 | 0.242556 | 4,836 | 136 | 121 | 35.558824 | 0.82528 | 0.318652 | 0 | 0.147059 | 0 | 0 | 0.037245 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.205882 | false | 0 | 0.044118 | 0.014706 | 0.470588 | 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 | 0 | 0 | 0 | 0 | 1 |
b7a08d15e0df75c50ade139a68083c9b345d911b | 19,399 | py | Python | GUI/Encoder_Control_GUI.py | WilliamBonilla62/GUIPythonEncodeur | a90b1abb016c09af1ec246f838ccd717d91fb0bc | [
"MIT"
] | null | null | null | GUI/Encoder_Control_GUI.py | WilliamBonilla62/GUIPythonEncodeur | a90b1abb016c09af1ec246f838ccd717d91fb0bc | [
"MIT"
] | null | null | null | GUI/Encoder_Control_GUI.py | WilliamBonilla62/GUIPythonEncodeur | a90b1abb016c09af1ec246f838ccd717d91fb0bc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Encoder_Control_GUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doin... | 49.236041 | 120 | 0.659982 | 2,125 | 19,399 | 5.952941 | 0.256 | 0.036996 | 0.050435 | 0.045534 | 0.163953 | 0.121818 | 0.058103 | 0.037628 | 0.028854 | 0.025217 | 0 | 0.03121 | 0.198928 | 19,399 | 393 | 121 | 49.361323 | 0.782819 | 0.186814 | 0 | 0.093426 | 1 | 0 | 0.099317 | 0.00677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041522 | false | 0 | 0.055363 | 0 | 0.100346 | 0.020761 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7a87402979427be4ba186c52ae12bc7436c5a99 | 1,663 | py | Python | tests/lib/bes/git/test_git_remote.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | tests/lib/bes/git/test_git_remote.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | tests/lib/bes/git/test_git_remote.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
from bes.git.git_remote import git_remote
from bes.git.git_temp_repo import git_temp_repo
from bes.git.git_unit_test import git_temp_home_func
from bes.testing.unit_test import unit_test
class test_git_rem... | 41.575 | 127 | 0.691521 | 241 | 1,663 | 4.506224 | 0.253112 | 0.074586 | 0.12523 | 0.176796 | 0.620626 | 0.574586 | 0.519337 | 0.484346 | 0.425414 | 0.425414 | 0 | 0.002123 | 0.150331 | 1,663 | 39 | 128 | 42.641026 | 0.766454 | 0.065544 | 0 | 0.413793 | 0 | 0 | 0.211985 | 0.067655 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.172414 | false | 0 | 0.137931 | 0 | 0.344828 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b7bb044fd2b0b8186d112261fcaeae7065231e75 | 818 | py | Python | lcs/plot/PlotDict.py | mk5135795/pyalcs | 915139bdbd3cb10383ab9252653d9a02b21b38d7 | [
"MIT"
] | null | null | null | lcs/plot/PlotDict.py | mk5135795/pyalcs | 915139bdbd3cb10383ab9252653d9a02b21b38d7 | [
"MIT"
] | null | null | null | lcs/plot/PlotDict.py | mk5135795/pyalcs | 915139bdbd3cb10383ab9252653d9a02b21b38d7 | [
"MIT"
] | null | null | null | import numpy as np
from .GraphData import *
def intrv_log(min_val, max_val, num):
if min_val <= 0:
min_val = 0.1
return np.geomspace(min_val, max_val, num)
class PlotDict():
__instance = None
__slots__ = ['intrv', 'coll', 'graph']
def __new__(cls):
if PlotDict.__instance is None:... | 30.296296 | 55 | 0.54401 | 86 | 818 | 4.755814 | 0.476744 | 0.273839 | 0.04401 | 0.05868 | 0.07335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005629 | 0.348411 | 818 | 26 | 56 | 31.461538 | 0.761726 | 0 | 0 | 0 | 0 | 0 | 0.052567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.409091 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b7bdddff0f4f216821b361c683fc4c0c28b9ccf2 | 2,667 | py | Python | pogom/pgoapi/protos/POGOProtos/Networking/Requests/Messages/SetPlayerTeamMessage_pb2.py | tier4fusion/pogom-updated | 31c4db3dfc85b19abb39c2e43f5efa530c65159e | [
"MIT"
] | 2,557 | 2016-07-19T22:20:45.000Z | 2022-01-25T10:53:35.000Z | pogom/pgoapi/protos/POGOProtos/Networking/Requests/Messages/SetPlayerTeamMessage_pb2.py | tier4fusion/pogom-updated | 31c4db3dfc85b19abb39c2e43f5efa530c65159e | [
"MIT"
] | 1,360 | 2016-07-20T02:06:42.000Z | 2021-07-27T12:46:40.000Z | pogom/pgoapi/protos/POGOProtos/Networking/Requests/Messages/SetPlayerTeamMessage_pb2.py | tier4fusion/pogom-updated | 31c4db3dfc85b19abb39c2e43f5efa530c65159e | [
"MIT"
] | 607 | 2016-07-20T03:34:04.000Z | 2022-01-05T14:57:09.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos/Networking/Requests/Messages/SetPlayerTeamMessage.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 _mes... | 36.534247 | 281 | 0.805024 | 300 | 2,667 | 6.873333 | 0.37 | 0.078565 | 0.113482 | 0.13967 | 0.29292 | 0.180892 | 0.103783 | 0 | 0 | 0 | 0 | 0.01904 | 0.094113 | 2,667 | 72 | 282 | 37.041667 | 0.834437 | 0.113611 | 0 | 0.113208 | 1 | 0 | 0.192536 | 0.156064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7bf2784347581b647a8dc26eadfb66d663320ec | 584 | py | Python | Alphabets/Small_Alphabets/e.py | chandhukogila/Pattern-Package | 9c0c2924d1c356747f2b351dba01299b71490036 | [
"MIT"
] | null | null | null | Alphabets/Small_Alphabets/e.py | chandhukogila/Pattern-Package | 9c0c2924d1c356747f2b351dba01299b71490036 | [
"MIT"
] | null | null | null | Alphabets/Small_Alphabets/e.py | chandhukogila/Pattern-Package | 9c0c2924d1c356747f2b351dba01299b71490036 | [
"MIT"
] | 1 | 2021-02-26T07:22:34.000Z | 2021-02-26T07:22:34.000Z | def for_e():
for row in range(6):
for col in range(4):
if row==2 or row==1 and col%3!=0 or row==4 and col>0 or col==0 and row==3:
print("*",end=" ")
else:
print(" ",end=" ")
print()
def while_e():
row=0
while row<6:
... | 27.809524 | 88 | 0.380137 | 86 | 584 | 2.55814 | 0.232558 | 0.090909 | 0.054545 | 0.063636 | 0.609091 | 0.609091 | 0.609091 | 0.609091 | 0.609091 | 0.609091 | 0 | 0.076433 | 0.462329 | 584 | 20 | 89 | 29.2 | 0.624204 | 0 | 0 | 0.5 | 0 | 0 | 0.014184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 |
b7c7f2c881249cdb0d20b96d9ff73d899c6c0950 | 1,051 | py | Python | setup.py | malinoff/agent | 13184d3e9a8b32d18b561a391ebd92edf17ab100 | [
"MIT"
] | 1 | 2021-06-06T19:01:20.000Z | 2021-06-06T19:01:20.000Z | setup.py | malinoff/agent | 13184d3e9a8b32d18b561a391ebd92edf17ab100 | [
"MIT"
] | null | null | null | setup.py | malinoff/agent | 13184d3e9a8b32d18b561a391ebd92edf17ab100 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="wott-agent",
version='0.1.2',
author="Viktor Petersson",
author_email="v@viktopia.io",
description="WoTT agent",
packages=find_packages(exclude=('tests',)),
include_package_data=True,
classifiers=[
'Development Status... | 21.895833 | 52 | 0.529971 | 91 | 1,051 | 6.032967 | 0.714286 | 0.04918 | 0.136612 | 0.094718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009777 | 0.318744 | 1,051 | 47 | 53 | 22.361702 | 0.756983 | 0 | 0 | 0.076923 | 0 | 0 | 0.448145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.025641 | 0 | 0.025641 | 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 | 0 | 0 | 0 | 0 | 1 |
b7cac0aae5ccb312279ecbb80faaf661036d9b0a | 1,396 | py | Python | tests/reporter.py | nragon/vision | 54dfcbf0046e6f5ac4f1f9ec9d6fffa2c4ddcbf0 | [
"MIT"
] | 12 | 2018-11-29T10:33:24.000Z | 2021-11-19T13:09:41.000Z | tests/reporter.py | nragon/vision | 54dfcbf0046e6f5ac4f1f9ec9d6fffa2c4ddcbf0 | [
"MIT"
] | 1 | 2021-07-04T13:23:54.000Z | 2021-07-04T13:23:54.000Z | tests/reporter.py | nragon/vision | 54dfcbf0046e6f5ac4f1f9ec9d6fffa2c4ddcbf0 | [
"MIT"
] | 4 | 2018-12-06T11:17:59.000Z | 2021-04-04T10:57:27.000Z | from os import environ, getcwd, mkdir
from os.path import join
from shutil import rmtree, copy
from unittest import TestCase
environ["VISION_HOME"] = join(getcwd(), "reporter")
from runtime import reporter
from core import storage, common
class Reporter(TestCase):
def setUp(self):
storage.setup()
... | 36.736842 | 102 | 0.611032 | 154 | 1,396 | 5.448052 | 0.311688 | 0.095352 | 0.081049 | 0.05006 | 0.533969 | 0.469607 | 0.469607 | 0.469607 | 0.469607 | 0.469607 | 0 | 0 | 0.260029 | 1,396 | 37 | 103 | 37.72973 | 0.812197 | 0 | 0 | 0.387097 | 0 | 0 | 0.146132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.193548 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b7cbc8142b44d07a435d646f353de7fbb5dbcf79 | 17,719 | py | Python | MusicRecommendation/GBM-Feature.py | HiKapok/KaggleCompetitions | 3d8c0e8d8f98334980c97f761262316edcd6d5e9 | [
"MIT"
] | 1 | 2018-06-27T14:14:01.000Z | 2018-06-27T14:14:01.000Z | MusicRecommendation/GBM-Feature.py | HiKapok/KaggleCompetitions | 3d8c0e8d8f98334980c97f761262316edcd6d5e9 | [
"MIT"
] | 1 | 2017-12-30T01:01:52.000Z | 2018-01-05T04:09:32.000Z | MusicRecommendation/GBM-Feature.py | HiKapok/KaggleCompetitions | 3d8c0e8d8f98334980c97f761262316edcd6d5e9 | [
"MIT"
] | 1 | 2018-06-27T14:14:16.000Z | 2018-06-27T14:14:16.000Z |
# coding: utf-8
# In[ ]:
# The line below sets the environment
# variable CUDA_VISIBLE_DEVICES
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import multiprocessing as mp # will come in handy due to the size of the data
import os.path
import random
import time
from collections import Or... | 40.362187 | 1,637 | 0.707489 | 2,591 | 17,719 | 4.475492 | 0.131609 | 0.041911 | 0.03001 | 0.041911 | 0.55821 | 0.522766 | 0.487754 | 0.473439 | 0.44524 | 0.419196 | 0 | 0.013092 | 0.137875 | 17,719 | 438 | 1,638 | 40.454338 | 0.746007 | 0.321971 | 0 | 0.313514 | 0 | 0 | 0.235512 | 0.091934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7d51707413103214d7d78a0cc92aef08cfa8c60 | 4,533 | py | Python | toolkit/sklearn_transformers/models.py | apyskir/steppy-toolkit | 3190054954aeab043ced1c079d87bdd3582bb232 | [
"MIT"
] | null | null | null | toolkit/sklearn_transformers/models.py | apyskir/steppy-toolkit | 3190054954aeab043ced1c079d87bdd3582bb232 | [
"MIT"
] | null | null | null | toolkit/sklearn_transformers/models.py | apyskir/steppy-toolkit | 3190054954aeab043ced1c079d87bdd3582bb232 | [
"MIT"
] | null | null | null | import numpy as np
import sklearn.linear_model as lr
from sklearn import ensemble
from sklearn import svm
from sklearn.externals import joblib
from steppy.base import BaseTransformer
from steppy.utils import get_logger
logger = get_logger()
class SklearnBaseTransformer(BaseTransformer):
def __init__(self, esti... | 28.872611 | 103 | 0.67505 | 473 | 4,533 | 6.340381 | 0.22833 | 0.043348 | 0.014005 | 0.020007 | 0.276759 | 0.255418 | 0.148049 | 0.138713 | 0.138713 | 0.138713 | 0 | 0.002848 | 0.225458 | 4,533 | 156 | 104 | 29.057692 | 0.851324 | 0 | 0 | 0.289474 | 0 | 0 | 0.050077 | 0.004633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0 | 0.061404 | 0.052632 | 0.54386 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b7d5c229c8144e4ae09db72b621a76e2e4250772 | 3,208 | py | Python | himydata/hmd/api/hmddataset.py | Himydata/himydata-python | 6bd57fcee8e48c926d8f887a2635b4c28210e483 | [
"Apache-2.0"
] | null | null | null | himydata/hmd/api/hmddataset.py | Himydata/himydata-python | 6bd57fcee8e48c926d8f887a2635b4c28210e483 | [
"Apache-2.0"
] | null | null | null | himydata/hmd/api/hmddataset.py | Himydata/himydata-python | 6bd57fcee8e48c926d8f887a2635b4c28210e483 | [
"Apache-2.0"
] | null | null | null | import requests
class API(object):
"""
A dataset on the HMD instance
"""
def __init__(self, api_token, service_url="http://api.himydata.com/v1/dataset"):
self.service_url = service_url
self.api_token = api_token
def get(self, name, data=None):
"""
Method calls the... | 28.900901 | 97 | 0.57419 | 373 | 3,208 | 4.80429 | 0.209115 | 0.066964 | 0.0625 | 0.066406 | 0.589844 | 0.538504 | 0.506138 | 0.486049 | 0.486049 | 0.441406 | 0 | 0.001812 | 0.312032 | 3,208 | 110 | 98 | 29.163636 | 0.81015 | 0.326683 | 0 | 0.305556 | 0 | 0 | 0.080132 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0 | 0.472222 | 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 | 0 | 0 | 0 | 0 | 1 |
b7db7212cb0f49f29f83fa6a96c61f7d2bc47dc2 | 226 | py | Python | GuessWhoYouAre/index/socialTraitsPlot.py | Hem-Bhatt/Guess-Who-You-Are-App | 23e6e55242ceff1a0c09274569962d6c6e37a001 | [
"MIT"
] | 2 | 2017-03-06T01:48:15.000Z | 2017-06-08T17:23:27.000Z | GuessWhoYouAre/index/socialTraitsPlot.py | Hem-Bhatt/Guess-Who-You-Are-App | 23e6e55242ceff1a0c09274569962d6c6e37a001 | [
"MIT"
] | 2 | 2017-09-27T10:56:01.000Z | 2017-09-27T10:56:46.000Z | GuessWhoYouAre/index/social_traits_plot.py | Nir0303/GuessWhoYouAre | 43fec26b73a1f07246258357ffcdfdcbcd693b2f | [
"MIT"
] | null | null | null | from bokeh.plotting import figure, show, output_file
output_file('templates/index/hbar.html')
p = figure(width=400, height=400)
p.hbar(y=['a','b','c'], height=0.5, left=0,
right=[1.2, 2.5, 3.7], color="navy")
show(p) | 25.111111 | 52 | 0.654867 | 42 | 226 | 3.47619 | 0.714286 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 0.123894 | 226 | 9 | 53 | 25.111111 | 0.661616 | 0 | 0 | 0 | 0 | 0 | 0.140969 | 0.110132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7eaea75ed0cad71eb89ce566988fa273bdc5929 | 216 | py | Python | test/conftest.py | guillaume-gc/pathfinder-spell-crawler | a564fd951fa5723862c3f81f58afc2b021ae32dd | [
"MIT"
] | null | null | null | test/conftest.py | guillaume-gc/pathfinder-spell-crawler | a564fd951fa5723862c3f81f58afc2b021ae32dd | [
"MIT"
] | null | null | null | test/conftest.py | guillaume-gc/pathfinder-spell-crawler | a564fd951fa5723862c3f81f58afc2b021ae32dd | [
"MIT"
] | null | null | null | import os
import sys
import pytest
logger = None
@pytest.fixture(scope="session", autouse=True)
def init_path():
root_dir = os.path.dirname(os.path.abspath(__file__)) + '/..'
sys.path.insert(0, root_dir)
| 16.615385 | 65 | 0.699074 | 32 | 216 | 4.5 | 0.65625 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.148148 | 216 | 12 | 66 | 18 | 0.777174 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b7f3868b7997609655e60e7e38c01378c87ae4d0 | 18,890 | py | Python | plugins/modules/oci_waas_waf_log_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_waas_waf_log_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_waas_waf_log_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 34.221014 | 155 | 0.577078 | 1,977 | 18,890 | 5.30349 | 0.179565 | 0.024416 | 0.048832 | 0.054363 | 0.499762 | 0.415928 | 0.274678 | 0.207916 | 0.184835 | 0.137148 | 0 | 0.010367 | 0.346374 | 18,890 | 551 | 156 | 34.283122 | 0.838827 | 0.021652 | 0 | 0.382066 | 0 | 0.013645 | 0.778277 | 0.09654 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005848 | false | 0.005848 | 0.011696 | 0.001949 | 0.025341 | 0.019493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7f5bf9564f7aab9ce27f463cd5c07cd62ad0409 | 3,941 | py | Python | ortografix/model/transformer.py | akb89/ortografix | 85c5cc91cedff092d29d4c98983d8c0ba4497be1 | [
"MIT"
] | null | null | null | ortografix/model/transformer.py | akb89/ortografix | 85c5cc91cedff092d29d4c98983d8c0ba4497be1 | [
"MIT"
] | 4 | 2020-05-12T18:16:01.000Z | 2020-05-16T07:12:49.000Z | ortografix/model/transformer.py | akb89/ortografix | 85c5cc91cedff092d29d4c98983d8c0ba4497be1 | [
"MIT"
] | null | null | null | """Transformer."""
import math
import logging
import torch
__all__ = ('TEncoder', 'TDecoder')
logger = logging.getLogger(__name__)
class PositionalEncoding(torch.nn.Module):
def __init__(self, d_model, dropout, max_seq_len):
super(PositionalEncoding, self).__init__()
self.dropout = torch.nn.Dr... | 39.41 | 98 | 0.662776 | 485 | 3,941 | 5.11134 | 0.218557 | 0.060508 | 0.054861 | 0.029044 | 0.371117 | 0.350141 | 0.332392 | 0.303348 | 0.26543 | 0.235579 | 0 | 0.019666 | 0.225831 | 3,941 | 99 | 99 | 39.808081 | 0.792855 | 0.17356 | 0 | 0.28125 | 0 | 0 | 0.014958 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.09375 | false | 0 | 0.046875 | 0 | 0.234375 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7f62ca198141f2ac6eda133b1d8401a3935e46c | 3,129 | py | Python | backend/coreapp/migrations/0001_initial.py | gamestabled/decomp.me | 8e74bf89216cac1ee4f3475b0203057fdc88cc90 | [
"MIT"
] | 18 | 2021-07-02T07:58:24.000Z | 2021-10-09T18:40:20.000Z | backend/coreapp/migrations/0001_initial.py | gamestabled/decomp.me | 8e74bf89216cac1ee4f3475b0203057fdc88cc90 | [
"MIT"
] | 102 | 2021-07-02T07:23:03.000Z | 2021-10-17T17:15:34.000Z | backend/coreapp/migrations/0001_initial.py | gamestabled/decomp.me | 8e74bf89216cac1ee4f3475b0203057fdc88cc90 | [
"MIT"
] | 10 | 2021-07-02T07:58:29.000Z | 2021-10-09T00:09:08.000Z | # Generated by Django 3.2.4 on 2021-08-26 10:41
import coreapp.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [ # type: ignore
]
operations = [
migrations.CreateModel(
name='... | 44.7 | 136 | 0.576542 | 315 | 3,129 | 5.593651 | 0.27619 | 0.066402 | 0.090806 | 0.108967 | 0.598751 | 0.492622 | 0.492622 | 0.429625 | 0.429625 | 0.420545 | 0 | 0.018642 | 0.279962 | 3,129 | 69 | 137 | 45.347826 | 0.763427 | 0.018536 | 0 | 0.5 | 1 | 0 | 0.099413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b7fbbbfb5d9e35d2d48111aa5c08e2584b1236e4 | 1,995 | py | Python | testmoneymanager.py | Ogutu-Brian/Money-Manager | 0cd22ee596b43ad9bdb8dd677722512573198d91 | [
"MIT"
] | null | null | null | testmoneymanager.py | Ogutu-Brian/Money-Manager | 0cd22ee596b43ad9bdb8dd677722512573198d91 | [
"MIT"
] | null | null | null | testmoneymanager.py | Ogutu-Brian/Money-Manager | 0cd22ee596b43ad9bdb8dd677722512573198d91 | [
"MIT"
] | null | null | null | import unittest
from tkinter import messagebox
from moneymanager import MoneyManager, item_types
class TestMoneyManager(unittest.TestCase):
def setUp(self):
self.user = MoneyManager()
self.user.balance = 1000.0
def test_legal_deposit_works(self):
'''Tests that depositing ... | 38.365385 | 86 | 0.660652 | 251 | 1,995 | 5.067729 | 0.306773 | 0.062893 | 0.070755 | 0.089623 | 0.284591 | 0.257075 | 0.257075 | 0.257075 | 0.220126 | 0.139937 | 0 | 0.018084 | 0.251629 | 1,995 | 51 | 87 | 39.117647 | 0.833891 | 0.231579 | 0 | 0.193548 | 0 | 0 | 0.012614 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.225806 | false | 0 | 0.096774 | 0 | 0.354839 | 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 | 0 | 0 | 0 | 0 | 1 |
4d034e4e5f6eaf0384bcf37c0c48be0a52f6837f | 1,354 | py | Python | auth/db.py | rozumalex/notify | 9ad15f8ed931e7ca86cdd9a41f67a665b3f8eb0b | [
"MIT"
] | null | null | null | auth/db.py | rozumalex/notify | 9ad15f8ed931e7ca86cdd9a41f67a665b3f8eb0b | [
"MIT"
] | null | null | null | auth/db.py | rozumalex/notify | 9ad15f8ed931e7ca86cdd9a41f67a665b3f8eb0b | [
"MIT"
] | null | null | null | from datetime import datetime
from auth.models import Account
from auth.exceptions import AccountNotFound
from db import db_connector
@db_connector
async def create_account(conn, account: Account) -> int:
result = await conn.fetchval('''
INSERT INTO accounts(email, password, registration_date) VALUES(
... | 28.208333 | 76 | 0.674298 | 174 | 1,354 | 5.12069 | 0.293103 | 0.074074 | 0.089787 | 0.106622 | 0.37486 | 0.319865 | 0.319865 | 0.319865 | 0.161616 | 0.161616 | 0 | 0.009515 | 0.223781 | 1,354 | 47 | 77 | 28.808511 | 0.838249 | 0 | 0 | 0.382353 | 0 | 0 | 0.12426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.117647 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4d0490dd5b10baa0abc0b5d069127e1e4aa77a80 | 137 | py | Python | 3_mfr/reduce.py | pavlovprojects/python_qa_functional_programming | a183348d9ea29879084d87a65a42442e60129d54 | [
"MIT"
] | null | null | null | 3_mfr/reduce.py | pavlovprojects/python_qa_functional_programming | a183348d9ea29879084d87a65a42442e60129d54 | [
"MIT"
] | null | null | null | 3_mfr/reduce.py | pavlovprojects/python_qa_functional_programming | a183348d9ea29879084d87a65a42442e60129d54 | [
"MIT"
] | null | null | null | import functools
def foo(x, y):
print(x, " * ", y)
return x * y
r = range(5, 10)
res = functools.reduce(foo, r)
print(res)
| 9.785714 | 30 | 0.562044 | 23 | 137 | 3.347826 | 0.608696 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.270073 | 137 | 13 | 31 | 10.538462 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 1 |
4d0922e1d247f3d9a6ee9b7695a6135d22aa9d48 | 3,338 | py | Python | deaths_per_capita.py | coronafighter/coronaSEIR | 734f6d316e2f0d3df653112c768e9d99c3dcacf0 | [
"MIT"
] | 96 | 2020-03-12T03:58:55.000Z | 2022-02-02T16:28:04.000Z | deaths_per_capita.py | coronafighter/coronaSEIR | 734f6d316e2f0d3df653112c768e9d99c3dcacf0 | [
"MIT"
] | 11 | 2020-03-20T21:59:02.000Z | 2020-12-15T14:24:41.000Z | deaths_per_capita.py | coronafighter/coronaSEIR | 734f6d316e2f0d3df653112c768e9d99c3dcacf0 | [
"MIT"
] | 32 | 2020-03-19T01:09:27.000Z | 2021-05-14T15:18:43.000Z | import sys
import numpy as np
import matplotlib.pyplot as plt
import population
import world_data
countries, provinces = world_data.get_countries_provinces()
countryPopulation = population.get_all_population_data()
countries.extend(['Hubei'])
# todo: single loop, cleanup
countryDeaths = []
for country in countries:... | 35.892473 | 115 | 0.655782 | 411 | 3,338 | 5.253041 | 0.311436 | 0.044465 | 0.025012 | 0.022233 | 0.284391 | 0.241779 | 0.187124 | 0.187124 | 0.187124 | 0.158407 | 0 | 0.034627 | 0.212702 | 3,338 | 92 | 116 | 36.282609 | 0.78691 | 0.09287 | 0 | 0.263889 | 0 | 0 | 0.074934 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0 | false | 0 | 0.069444 | 0 | 0.069444 | 0.138889 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d0a0d74b73e2522a8905db242c42f19814e9e6c | 843 | py | Python | portfolio/blog/views.py | selvianl/resume | 4a056d57953c5d31ee1699eeacdf9f9bae85e896 | [
"Apache-2.0"
] | null | null | null | portfolio/blog/views.py | selvianl/resume | 4a056d57953c5d31ee1699eeacdf9f9bae85e896 | [
"Apache-2.0"
] | 4 | 2021-03-18T21:49:30.000Z | 2022-01-13T00:59:54.000Z | portfolio/blog/views.py | selvianl/resume | 4a056d57953c5d31ee1699eeacdf9f9bae85e896 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.urls import reverse_lazy
from django.views.generic import ListView
from portfolio.blog.models import Blog
from portfolio.blog.forms import BlogForm
from portfolio.views import BaseSudoView
class BlogFormView(BaseSudoView):
model = Blog
... | 27.193548 | 66 | 0.723606 | 106 | 843 | 5.566038 | 0.481132 | 0.066102 | 0.057627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001453 | 0.183867 | 843 | 30 | 67 | 28.1 | 0.856105 | 0.024911 | 0 | 0 | 0 | 0 | 0.073171 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4d116bb403333e4719d19ea446734aa96ddc0aa1 | 423 | py | Python | gst_pos_order_line_menu/__manifest__.py | guadaltech/jdvp-odoo | e399ecf4c66e15a60a8561edec359e75be08140b | [
"ADSL"
] | null | null | null | gst_pos_order_line_menu/__manifest__.py | guadaltech/jdvp-odoo | e399ecf4c66e15a60a8561edec359e75be08140b | [
"ADSL"
] | 1 | 2020-04-02T06:39:18.000Z | 2020-04-02T06:39:18.000Z | gst_pos_order_line_menu/__manifest__.py | guadaltech/jdvp-odoo | e399ecf4c66e15a60a8561edec359e75be08140b | [
"ADSL"
] | null | null | null | # -*- coding: utf-8 -*-
{
'name': 'GST Pos Order Line Menu',
'version': '12.0.0.4',
'sequence': 1,
'category': 'Sales',
"author": "Guadaltech Soluciones tecnológicas S.L.",
'depends': ['point_of_sale',
'tis_catch_weight',
'tis_catch_weight_extension'],
'data':... | 26.4375 | 56 | 0.55792 | 47 | 423 | 4.829787 | 0.851064 | 0.070485 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.255319 | 423 | 15 | 57 | 28.2 | 0.698413 | 0.049645 | 0 | 0 | 0 | 0 | 0.565 | 0.065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d118695ad81d199890bff469e915d859e419b61 | 2,039 | py | Python | minion.py | Shwetha-Prabhakara/slackbot | 3eb5290bb5060e3cac95c54dd78f999744a57f26 | [
"MIT"
] | null | null | null | minion.py | Shwetha-Prabhakara/slackbot | 3eb5290bb5060e3cac95c54dd78f999744a57f26 | [
"MIT"
] | null | null | null | minion.py | Shwetha-Prabhakara/slackbot | 3eb5290bb5060e3cac95c54dd78f999744a57f26 | [
"MIT"
] | null | null | null | from fabric.api import *
import re
env.hosts=['nimbus-gateway.eng.vmware.com']
env.user=''# Active Directory username
env.password=''# Active Directory password
vm_name=""
def find_vcenter(output):
for x in reversed(output.splitlines()):
if re.search('"done"',x):
pass
elif re.search('".*: %s"... | 35.77193 | 167 | 0.575772 | 259 | 2,039 | 4.420849 | 0.378378 | 0.036681 | 0.044541 | 0.038428 | 0.567686 | 0.524017 | 0.524017 | 0.524017 | 0.448908 | 0.448908 | 0 | 0.003861 | 0.237862 | 2,039 | 56 | 168 | 36.410714 | 0.732947 | 0.025012 | 0 | 0.392157 | 0 | 0.039216 | 0.401008 | 0.178338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.039216 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4d12366e96d3843cde45c18bd74f52d73f0f09e7 | 1,768 | py | Python | creational/Singleton.py | mantoshkumar1/design_pattern | a70a407db012bfe3fc5c24578dc931a9afae7bd6 | [
"MIT"
] | null | null | null | creational/Singleton.py | mantoshkumar1/design_pattern | a70a407db012bfe3fc5c24578dc931a9afae7bd6 | [
"MIT"
] | null | null | null | creational/Singleton.py | mantoshkumar1/design_pattern | a70a407db012bfe3fc5c24578dc931a9afae7bd6 | [
"MIT"
] | null | null | null | """
Intent:
-------
- Ensure a class has only one instance, and provide a global point of access to it.
- Encapsulated "just-in-time initialization" or "initialization on first use".
Problem:
--------
Application needs one, and only one, instance of an object. Additionally, lazy initialization and
global access are ne... | 32.740741 | 97 | 0.699095 | 228 | 1,768 | 5.27193 | 0.438596 | 0.045757 | 0.046589 | 0.044925 | 0.267887 | 0.221298 | 0.184692 | 0.184692 | 0.184692 | 0.184692 | 0 | 0.002791 | 0.18948 | 1,768 | 53 | 98 | 33.358491 | 0.836008 | 0.695136 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.117647 | false | 0.058824 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4d183fe3e7b6d269459a394b6522798cf6edfec9 | 806 | py | Python | code/chapter-4/uretprobes/example.py | dddddai/linux-observability-with-bpf | 5a061232a02810feb57ff570333830f85c728eba | [
"Apache-2.0"
] | 643 | 2019-08-30T16:10:21.000Z | 2022-03-28T09:09:53.000Z | code/chapter-4/uretprobes/example.py | bladechen/linux-observability-with-bpf | 58d525c938776ac5afff07f58f4390d00e55638c | [
"Apache-2.0"
] | 55 | 2019-09-29T20:40:37.000Z | 2022-01-30T22:05:09.000Z | code/chapter-4/uretprobes/example.py | bladechen/linux-observability-with-bpf | 58d525c938776ac5afff07f58f4390d00e55638c | [
"Apache-2.0"
] | 199 | 2019-10-27T15:59:31.000Z | 2022-03-24T02:29:43.000Z | from bcc import BPF
bpf_source = """
BPF_HASH(cache, u64, u64);
int trace_start_time(struct pt_regs *ctx) {
u64 pid = bpf_get_current_pid_tgid();
u64 start_time_ns = bpf_ktime_get_ns();
cache.update(&pid, &start_time_ns);
return 0;
}
"""
bpf_source += """
int print_duration(struct pt_regs *ctx) {
u64 pid =... | 26 | 89 | 0.694789 | 129 | 806 | 3.992248 | 0.333333 | 0.12233 | 0.106796 | 0.058252 | 0.380583 | 0.326214 | 0.326214 | 0.326214 | 0.213592 | 0.213592 | 0 | 0.026316 | 0.151365 | 806 | 30 | 90 | 26.866667 | 0.726608 | 0 | 0 | 0.269231 | 0 | 0 | 0.727047 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d1a95830b30ec4acb06cc1cf5c49eced25a0192 | 1,586 | py | Python | clase 5/OOP/app/__init__.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | clase 5/OOP/app/__init__.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | clase 5/OOP/app/__init__.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | from app.Empleados import Empleados #en from ya declaro el modulo
from app.Ejecutivo import Ejecutivo
import time
if __name__== "__main__":
# este es el main
print(__name__)
# Paso los parametros... 1 Modulo, 2 Clase, 3 Parametro
e1 = Empleados("Juan", 2500)
# Creo el segundo objeto
... | 40.666667 | 119 | 0.662043 | 226 | 1,586 | 4.477876 | 0.367257 | 0.130435 | 0.055336 | 0.039526 | 0.335968 | 0.219368 | 0.219368 | 0.219368 | 0.219368 | 0.219368 | 0 | 0.040388 | 0.21942 | 1,586 | 39 | 120 | 40.666667 | 0.77706 | 0.587011 | 0 | 0 | 0 | 0 | 0.085142 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.117647 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d1bd0e77765d90cfe2249e61c249bc366e7ab5f | 6,944 | py | Python | tests/test_cbct.py | keithoffer/pylinac | 8cdd9b867133725da3baecb27e7c0d89c6b59a11 | [
"MIT"
] | 1 | 2019-04-02T03:08:32.000Z | 2019-04-02T03:08:32.000Z | tests/test_cbct.py | keithoffer/pylinac | 8cdd9b867133725da3baecb27e7c0d89c6b59a11 | [
"MIT"
] | null | null | null | tests/test_cbct.py | keithoffer/pylinac | 8cdd9b867133725da3baecb27e7c0d89c6b59a11 | [
"MIT"
] | null | null | null | import os.path as osp
from unittest import TestCase
import matplotlib.pyplot as plt
from pylinac import CatPhan503, CatPhan504, CatPhan600
from pylinac.core.geometry import Point
from tests.utils import save_file, LoadingTestBase, LocationMixin
TEST_DIR = osp.join(osp.dirname(__file__), 'test_files', 'CBCT')
plt.clo... | 34.72 | 134 | 0.640121 | 943 | 6,944 | 4.54825 | 0.303287 | 0.0429 | 0.017953 | 0.040569 | 0.175099 | 0.124038 | 0.114712 | 0.060154 | 0.060154 | 0.060154 | 0 | 0.065036 | 0.222782 | 6,944 | 199 | 135 | 34.894472 | 0.729665 | 0.109591 | 0 | 0.160584 | 0 | 0 | 0.069913 | 0.003619 | 0 | 0 | 0 | 0 | 0.080292 | 1 | 0.145985 | false | 0.007299 | 0.043796 | 0 | 0.605839 | 0.007299 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4d20aab71cf62c6969a866bd75070b8b4bb99dff | 794 | py | Python | holidays/migrations/0011_auto_20190803_1436.py | callmewind/djworkplace | c0acd386ce7ecc43312b1c18e57b90414013ce8e | [
"MIT"
] | null | null | null | holidays/migrations/0011_auto_20190803_1436.py | callmewind/djworkplace | c0acd386ce7ecc43312b1c18e57b90414013ce8e | [
"MIT"
] | null | null | null | holidays/migrations/0011_auto_20190803_1436.py | callmewind/djworkplace | c0acd386ce7ecc43312b1c18e57b90414013ce8e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-08-03 14:36
from django.db import migrations
leave_types = [
{ 'name':'Vacaciones', 'icon':'☀️',},
{ 'name':'Permiso retribuido', 'icon':'⌛',},
]
def create_leave_types(apps, schema_editor):
LeaveType = apps.get_model('holidays', 'LeaveType')
for leave_type in leav... | 26.466667 | 69 | 0.68136 | 98 | 794 | 5.326531 | 0.5 | 0.1341 | 0.061303 | 0.076628 | 0.398467 | 0.398467 | 0.398467 | 0.398467 | 0.398467 | 0.398467 | 0 | 0.047473 | 0.177582 | 794 | 29 | 70 | 27.37931 | 0.74732 | 0.056675 | 0 | 0.2 | 1 | 0 | 0.155288 | 0.03079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d20b9ba87d6d34940506cd7490e409d96535f76 | 717 | py | Python | Scripts8/Script72.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | 1 | 2020-09-05T22:25:36.000Z | 2020-09-05T22:25:36.000Z | Scripts8/Script72.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | Scripts8/Script72.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | '''Exercício Python 072: Crie um programa que tenha uma dupla totalmente preenchida com uma contagem por extenso, de zero até vinte. Seu programa deverá ler um número pelo teclado (entre 0 e 20) e mostrá-lo por extenso.'''
#----------------------------------------------------
tupla20 = ('zero','um', 'dois','três','quat... | 55.153846 | 222 | 0.620642 | 100 | 717 | 4.45 | 0.69 | 0.040449 | 0.047191 | 0.060674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036335 | 0.117155 | 717 | 12 | 223 | 59.75 | 0.666667 | 0.375174 | 0 | 0.285714 | 0 | 0 | 0.54195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4d2f84b3ad55b1868ee34d0fbab4d4d41c8dc9aa | 415 | py | Python | PycharmProjects/cursoemvideo/DESAFIO 52.py | AlexandreSoaresValerio/Pycharm | e2a9d1ae2833bf3e39244393a5bf807f892eaec5 | [
"MIT"
] | null | null | null | PycharmProjects/cursoemvideo/DESAFIO 52.py | AlexandreSoaresValerio/Pycharm | e2a9d1ae2833bf3e39244393a5bf807f892eaec5 | [
"MIT"
] | null | null | null | PycharmProjects/cursoemvideo/DESAFIO 52.py | AlexandreSoaresValerio/Pycharm | e2a9d1ae2833bf3e39244393a5bf807f892eaec5 | [
"MIT"
] | null | null | null | n = int(input('Digite um numero :'))
count = 0
for c in range(1, n + 1):
if n % c == 0:
print('\033[31m', end='')
count = count+1
else:
print('\033[m', end='')
print('{}'.format(c), end=' ')
print('\n \033[mo numero {} pode ser dividido {} vezes'.format(n, count))
if count == 2:
... | 25.9375 | 73 | 0.525301 | 66 | 415 | 3.30303 | 0.469697 | 0.09633 | 0.110092 | 0.119266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055016 | 0.255422 | 415 | 15 | 74 | 27.666667 | 0.650485 | 0 | 0 | 0.142857 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4d2f921c69d15b1e43a6a883ce22c4edc9567866 | 1,120 | py | Python | test/yml/node/steps/simple/extract_package_version_test.py | swellaby/azure-pipeline-templates | adc83c8b0a4a8347f4c453073d131de897357090 | [
"MIT"
] | 1 | 2019-10-11T14:31:33.000Z | 2019-10-11T14:31:33.000Z | test/yml/node/steps/simple/extract_package_version_test.py | swellaby/azure-pipeline-templates | adc83c8b0a4a8347f4c453073d131de897357090 | [
"MIT"
] | 64 | 2019-03-09T19:02:05.000Z | 2021-11-09T14:02:52.000Z | test/yml/node/steps/simple/extract_package_version_test.py | swellaby/azure-pipeline-templates | adc83c8b0a4a8347f4c453073d131de897357090 | [
"MIT"
] | null | null | null | from test.test_utilities import parse_node_simple_step_template_yaml_file
contents = parse_node_simple_step_template_yaml_file(
"extract-package-version.yml"
)
steps = contents["steps"]
parameters = contents["parameters"]
step = steps[0]
def test_task_display_name_parameter_default():
assert parameters["task... | 26.666667 | 79 | 0.720536 | 123 | 1,120 | 6.235772 | 0.406504 | 0.063885 | 0.043025 | 0.125163 | 0.185137 | 0.091265 | 0.091265 | 0 | 0 | 0 | 0 | 0.002083 | 0.142857 | 1,120 | 41 | 80 | 27.317073 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.319643 | 0.132143 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.269231 | false | 0 | 0.038462 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | 1 |
4d3621d2ec5a39a769082177fbc6d3fea48b0309 | 389 | py | Python | allez/urls.py | farro4069/allez | c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c | [
"BSD-2-Clause"
] | null | null | null | allez/urls.py | farro4069/allez | c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c | [
"BSD-2-Clause"
] | null | null | null | allez/urls.py | farro4069/allez | c6ba374ee03cb01a494a4f6fe8ae0d0de5ce463c | [
"BSD-2-Clause"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from allez.views import index
urlpatterns = [
path('admin/', admin.site.urls),
path('', index, name='index'),
path('carnival/', include('carnival.urls')),
path('accounts/', include('accounts.urls')),
path('accounts/', include('... | 21.611111 | 48 | 0.655527 | 46 | 389 | 5.543478 | 0.369565 | 0.12549 | 0.12549 | 0.180392 | 0.27451 | 0.27451 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0.154242 | 389 | 17 | 49 | 22.882353 | 0.775076 | 0 | 0 | 0.181818 | 0 | 0 | 0.246114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
4d38824c2e7d20d875762835fb81a7200da8a9c9 | 9,795 | py | Python | py/testdir_single_jvm/test_summary2_uniform.py | gigliovale/h2o | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 882 | 2015-05-22T02:59:21.000Z | 2022-02-17T05:02:48.000Z | py/testdir_single_jvm/test_summary2_uniform.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 1 | 2022-02-22T12:15:02.000Z | 2022-02-22T12:15:02.000Z | py/testdir_single_jvm/test_summary2_uniform.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 392 | 2015-05-22T17:04:11.000Z | 2022-02-22T09:04:39.000Z | import unittest, time, sys, random, math, getpass
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_import as h2i, h2o_util, h2o_print as h2p, h2o_summ
DO_MEDIAN = False
MAX_QBINS = 1000
ROWS = 500000
def write_syn_dataset(csvPathname, rowCount, colCount, expectedMin, expectedMax, SEED):
r1 = rand... | 43.923767 | 106 | 0.560388 | 1,210 | 9,795 | 4.464463 | 0.296694 | 0.005924 | 0.009996 | 0.006664 | 0.1592 | 0.118104 | 0.098852 | 0.088301 | 0.064606 | 0.064606 | 0 | 0.074235 | 0.316488 | 9,795 | 222 | 107 | 44.121622 | 0.732636 | 0.142011 | 0 | 0.032258 | 0 | 0 | 0.115729 | 0.003105 | 0.006452 | 0 | 0 | 0 | 0.045161 | 0 | null | null | 0.012903 | 0.019355 | null | null | 0.135484 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d3efc95da3c3b7c0bc180672931ecdba359e271 | 252 | py | Python | test_code/boj/greedy/2864.py | yjinheon/solve | f47cd19d3c81d0b16586159c754deb2ffcb31ca0 | [
"Apache-2.0"
] | null | null | null | test_code/boj/greedy/2864.py | yjinheon/solve | f47cd19d3c81d0b16586159c754deb2ffcb31ca0 | [
"Apache-2.0"
] | null | null | null | test_code/boj/greedy/2864.py | yjinheon/solve | f47cd19d3c81d0b16586159c754deb2ffcb31ca0 | [
"Apache-2.0"
] | null | null | null | """
숫자 5를 6으로 볼수도, 6을 5로 볼수도 있다.
"""
from sys import stdin
a, b = map(str, stdin.readline().split())
max_val = int(a.replace('5', '6')) + int(b.replace('5', '6'))
min_val = int(a.replace('6', '5')) + int(b.replace('6', '5'))
print(min_val, max_val) | 21 | 61 | 0.587302 | 48 | 252 | 3 | 0.520833 | 0.083333 | 0.097222 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.150794 | 252 | 12 | 62 | 21 | 0.616822 | 0.111111 | 0 | 0 | 0 | 0 | 0.036866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
4d402039d24ed16a928306359bccd831f1e833e2 | 40,184 | py | Python | rl/data.py | guotong1988/Rule-SQL | e826c0d659c8b35a72b64aa2b50d4d943fdd70f1 | [
"Apache-2.0"
] | 15 | 2019-07-25T12:13:31.000Z | 2020-10-17T13:42:58.000Z | rl/data.py | guotong1988/Rule-SQL | e826c0d659c8b35a72b64aa2b50d4d943fdd70f1 | [
"Apache-2.0"
] | 1 | 2020-01-07T05:49:15.000Z | 2020-04-22T01:22:00.000Z | rl/data.py | guotong1988/Rule-SQL | e826c0d659c8b35a72b64aa2b50d4d943fdd70f1 | [
"Apache-2.0"
] | 3 | 2019-10-01T09:14:35.000Z | 2020-07-18T08:39:48.000Z | import torch
import bert.tokenization as tokenization
from bert.modeling import BertConfig, BertModel
from sqlova.utils.utils_wikisql import *
from sqlova.model.nl2sql.wikisql_models import *
from sqlnet.dbengine import DBEngine
from train import test
import random
from decimal import Decimal
device = torch.device("cu... | 43.442162 | 139 | 0.4075 | 3,879 | 40,184 | 3.93091 | 0.078886 | 0.036005 | 0.045711 | 0.029906 | 0.656545 | 0.614507 | 0.588274 | 0.565845 | 0.542694 | 0.542694 | 0 | 0.040893 | 0.522895 | 40,184 | 925 | 140 | 43.442162 | 0.754434 | 0.028718 | 0 | 0.645503 | 0 | 0.002646 | 0.015197 | 0.00325 | 0 | 0 | 0 | 0.001081 | 0 | 1 | 0.013228 | false | 0.021164 | 0.011905 | 0.001323 | 0.047619 | 0.017196 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d45e8b4ca0594780fd1a5d73f49e39bf5dc0b66 | 2,459 | py | Python | mnu_gsheets/request_mnu.py | seanbreckenridge/mnu_gsheets | 4b531497003a790a2fd0bce2e892bfcb58da9e76 | [
"Apache-2.0"
] | 1 | 2021-04-24T22:45:17.000Z | 2021-04-24T22:45:17.000Z | mnu_gsheets/request_mnu.py | seanbreckenridge/mnu_gsheets | 4b531497003a790a2fd0bce2e892bfcb58da9e76 | [
"Apache-2.0"
] | null | null | null | mnu_gsheets/request_mnu.py | seanbreckenridge/mnu_gsheets | 4b531497003a790a2fd0bce2e892bfcb58da9e76 | [
"Apache-2.0"
] | null | null | null | import os
from datetime import date
from typing import List, NamedTuple, Optional, Iterator
import requests
from cachecontrol import CacheControl # type: ignore[import]
from cachecontrol.heuristics import ExpiresAfter # type: ignore[import]
from cachecontrol.caches.file_cache import FileCache # type: ignore[import]... | 26.44086 | 76 | 0.654738 | 308 | 2,459 | 5.103896 | 0.334416 | 0.022265 | 0.030534 | 0.038168 | 0.097328 | 0.056616 | 0.040712 | 0.040712 | 0.040712 | 0 | 0 | 0.000515 | 0.210655 | 2,459 | 92 | 77 | 26.728261 | 0.809377 | 0.039447 | 0 | 0.028169 | 0 | 0 | 0.118601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.15493 | 0.042254 | 0.535211 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4d48360bc98f7e141fe27b30773ce9ae37f29279 | 230 | py | Python | Statistics/Variance.py | sng23/miniproject2 | 3784cc1f92f85211676de9bc2dd914313103747a | [
"MIT"
] | null | null | null | Statistics/Variance.py | sng23/miniproject2 | 3784cc1f92f85211676de9bc2dd914313103747a | [
"MIT"
] | null | null | null | Statistics/Variance.py | sng23/miniproject2 | 3784cc1f92f85211676de9bc2dd914313103747a | [
"MIT"
] | 1 | 2020-03-05T00:26:14.000Z | 2020-03-05T00:26:14.000Z | from Statistics.Mean import mean
from numpy import absolute, asarray
def var(data):
x = (absolute(asarray(data) - mean(data)))
y = x **2
z = mean(y)
return round(z, 13)
# variance is the square of mean deviation
| 20.909091 | 46 | 0.665217 | 36 | 230 | 4.25 | 0.638889 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.226087 | 230 | 10 | 47 | 23 | 0.842697 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4d4da2a012401460c5d6d15fb4694d9e8e7cc70d | 1,455 | py | Python | chainercv/chainer_experimental/datasets/sliceable/transform_dataset.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 1 | 2018-12-05T04:30:10.000Z | 2018-12-05T04:30:10.000Z | chainercv/chainer_experimental/datasets/sliceable/transform_dataset.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | null | null | null | chainercv/chainer_experimental/datasets/sliceable/transform_dataset.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 2 | 2019-12-16T02:20:26.000Z | 2022-01-17T02:00:49.000Z | from chainercv.chainer_experimental.datasets.sliceable import GetterDataset
class TransformDataset(GetterDataset):
"""A sliceable version of :class:`chainer.datasets.TransformDataset`.
Note that it reuqires :obj:`keys` to determine the names of returned
values.
Here is an example.
>>> def trans... | 32.333333 | 77 | 0.617869 | 164 | 1,455 | 5.256098 | 0.457317 | 0.051044 | 0.046404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000949 | 0.275601 | 1,455 | 44 | 78 | 33.068182 | 0.816888 | 0.523711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.125 | 0.4375 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4d5af90cfc2b5346c353ce1553a5ff496052b281 | 3,102 | py | Python | examples/textbook/orbital_elements_to_cartesian.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 1 | 2019-12-28T22:47:51.000Z | 2019-12-28T22:47:51.000Z | examples/textbook/orbital_elements_to_cartesian.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | null | null | null | examples/textbook/orbital_elements_to_cartesian.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 2 | 2021-11-19T04:41:37.000Z | 2021-11-20T02:11:17.000Z | from amuse.lab import *
from math import pi, sin, cos, sqrt, atan2
import numpy
#Solve Kepler equation by iterating: M = E - e sin E
#Lit.: Sterne, T.E., 1960, An introduction to Celestial Mechanics, p. 13-14
def eccentric_anomaly(mean_anomaly, e) :
ecc_anomaly = mean_anomaly + 2*pi*(e * sin(mean_anomaly) + 0.5*e*... | 38.775 | 115 | 0.611541 | 540 | 3,102 | 3.407407 | 0.240741 | 0.054348 | 0.081522 | 0.030435 | 0.405978 | 0.378261 | 0.315217 | 0.315217 | 0.302174 | 0.121739 | 0 | 0.037022 | 0.1902 | 3,102 | 79 | 116 | 39.265823 | 0.695462 | 0.091231 | 0 | 0.095238 | 0 | 0 | 0.03274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063492 | null | null | 0.015873 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d5cc91f1eae69b1ee6c9132b89d0017127b4caf | 465 | py | Python | Apps/contatos/migrations/0022_alter_chat_data.py | arthur-asilva/rc_plataforma | 7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c | [
"BSD-2-Clause"
] | null | null | null | Apps/contatos/migrations/0022_alter_chat_data.py | arthur-asilva/rc_plataforma | 7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c | [
"BSD-2-Clause"
] | null | null | null | Apps/contatos/migrations/0022_alter_chat_data.py | arthur-asilva/rc_plataforma | 7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 4.0 on 2022-02-26 16:03
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contatos', '0021_alter_chat_data'),
]
operations = [
migrations.AlterField(
model_name='chat',
name='d... | 23.25 | 121 | 0.619355 | 54 | 465 | 5.259259 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 0.260215 | 465 | 19 | 122 | 24.473684 | 0.72093 | 0.092473 | 0 | 0 | 1 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d636dcc2b6b5207a2f2c108cae7f07881958268 | 853 | py | Python | pwnlib/commandline/common.py | mtdcr/pwntools | b784d3a6837dc683a4d3d775ed5b7752988e86f4 | [
"MIT"
] | 7 | 2017-07-11T01:12:02.000Z | 2017-09-21T23:39:54.000Z | pwnlib/commandline/common.py | mtdcr/pwntools | b784d3a6837dc683a4d3d775ed5b7752988e86f4 | [
"MIT"
] | null | null | null | pwnlib/commandline/common.py | mtdcr/pwntools | b784d3a6837dc683a4d3d775ed5b7752988e86f4 | [
"MIT"
] | 3 | 2018-03-21T11:48:05.000Z | 2021-10-16T15:38:01.000Z | import argparse
import os
import sys
import pwnlib
from pwnlib.context import context
choices = map(str, [16,32,64])
choices += list(context.oses)
choices += list(context.architectures)
choices += list(context.endiannesses)
def context_arg(arg):
try: context.arch = arg
except Exception: pass
try: context... | 25.848485 | 79 | 0.695193 | 111 | 853 | 5.315315 | 0.468468 | 0.067797 | 0.122034 | 0.111864 | 0.108475 | 0.108475 | 0 | 0 | 0 | 0 | 0 | 0.0131 | 0.194607 | 853 | 32 | 80 | 26.65625 | 0.845706 | 0 | 0 | 0.111111 | 0 | 0 | 0.048066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.111111 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4d653d814ba42a1e48f833de1971450a8b709c15 | 1,202 | py | Python | setup.py | Nanguage/seq_interval | 18aab2a39d4821a6368ecf3bb096807502bf744d | [
"MIT"
] | null | null | null | setup.py | Nanguage/seq_interval | 18aab2a39d4821a6368ecf3bb096807502bf744d | [
"MIT"
] | null | null | null | setup.py | Nanguage/seq_interval | 18aab2a39d4821a6368ecf3bb096807502bf744d | [
"MIT"
] | null | null | null | import os
from codecs import open
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
# load about information
about = {}
with open(os.path.join(here, 'seq_interval', '__version__.py'), 'r', 'utf-8') as f:
exec(f.read(), about)
requires = []
setup(
name=about['__title__'],
ver... | 30.05 | 83 | 0.635607 | 128 | 1,202 | 5.578125 | 0.460938 | 0.186275 | 0.245098 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011458 | 0.201331 | 1,202 | 39 | 84 | 30.820513 | 0.732292 | 0.018303 | 0 | 0 | 0 | 0 | 0.439252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d6942c41cd8c33e6d3f7926f5a8ee30489c85e6 | 508 | py | Python | dj_ToDo-PlusPlus/Test/Test/views.py | ShahriarDhruvo/dj_test_todo | 130aed4931de09dc7dac8f6a75f0b7a015703759 | [
"MIT"
] | null | null | null | dj_ToDo-PlusPlus/Test/Test/views.py | ShahriarDhruvo/dj_test_todo | 130aed4931de09dc7dac8f6a75f0b7a015703759 | [
"MIT"
] | null | null | null | dj_ToDo-PlusPlus/Test/Test/views.py | ShahriarDhruvo/dj_test_todo | 130aed4931de09dc7dac8f6a75f0b7a015703759 | [
"MIT"
] | null | null | null | from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from allauth.socialaccount.providers.twitter.views import TwitterOAuthAdapter
from dj_rest_auth.social_serializers import TwitterLoginSerializer
from dj_rest_auth.registration.views import SocialLoginView, VerifyEmailView
class TwitterLog... | 42.333333 | 80 | 0.872047 | 48 | 508 | 9.0625 | 0.5 | 0.075862 | 0.110345 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.086614 | 508 | 11 | 81 | 46.181818 | 0.93319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4d695974b2377835b838f02e3bcf96172df6a0f5 | 2,719 | py | Python | lib/galaxy/model/migrate/versions/0104_update_genome_downloader_job_parameters.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | 2 | 2016-02-23T00:09:14.000Z | 2019-02-11T07:48:44.000Z | lib/galaxy/model/migrate/versions/0104_update_genome_downloader_job_parameters.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/model/migrate/versions/0104_update_genome_downloader_job_parameters.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | 6 | 2015-05-27T13:09:50.000Z | 2019-02-11T07:48:46.000Z | """
Migration script to update the deferred job parameters for liftover transfer jobs.
"""
from sqlalchemy import *
from migrate import *
from sqlalchemy.orm import *
import datetime
now = datetime.datetime.utcnow
# Need our custom types, but don't import anything else from model
from galaxy.model.custom_types impor... | 32.759036 | 90 | 0.640677 | 295 | 2,719 | 5.813559 | 0.420339 | 0.031487 | 0.053644 | 0.067638 | 0.106122 | 0.106122 | 0.047813 | 0 | 0 | 0 | 0 | 0.002908 | 0.241265 | 2,719 | 82 | 91 | 33.158537 | 0.828405 | 0.023538 | 0 | 0.066667 | 0 | 0 | 0.095591 | 0.008584 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116667 | null | null | 0.016667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d6af5a3f4e3df651c05babf9703af351cb67691 | 544 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_forum_doc/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_forum_doc/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_forum_doc/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Documentation',
'category': 'Website',
'summary': 'Forum, Documentation',
'description': """
Documentation based on question and pertinent answers of Forum
""",
'depends': [
... | 22.666667 | 74 | 0.556985 | 57 | 544 | 5.245614 | 0.666667 | 0.046823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002545 | 0.277574 | 544 | 23 | 75 | 23.652174 | 0.75827 | 0.172794 | 0 | 0.15 | 0 | 0 | 0.595078 | 0.10962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d6bb35b5df12a5924573813903fabcc95d27337 | 34,185 | py | Python | legacy_notebooks/flight-school-day-1/Batch Demo.py | david-lyle/databricks-notebooks | 7acc142d4e397b92031ee6ab8332f26e290c4d91 | [
"Apache-2.0"
] | null | null | null | legacy_notebooks/flight-school-day-1/Batch Demo.py | david-lyle/databricks-notebooks | 7acc142d4e397b92031ee6ab8332f26e290c4d91 | [
"Apache-2.0"
] | null | null | null | legacy_notebooks/flight-school-day-1/Batch Demo.py | david-lyle/databricks-notebooks | 7acc142d4e397b92031ee6ab8332f26e290c4d91 | [
"Apache-2.0"
] | 1 | 2022-02-15T08:10:55.000Z | 2022-02-15T08:10:55.000Z | # Databricks notebook source
# MAGIC %md
# MAGIC <img src="https://github.com/billkellett/flight-school-resources/blob/master/images/databricks icon.png?raw=true" width=100/>
# MAGIC <img src="/files/flight/Megacorp.png?raw=true" width=200/>
# MAGIC # Democratizing MegaCorp's Data
# MAGIC
# MAGIC ## MegaCorp's current... | 39.657773 | 768 | 0.735791 | 5,003 | 34,185 | 4.915451 | 0.173296 | 0.040664 | 0.054652 | 0.038224 | 0.456856 | 0.412655 | 0.379107 | 0.323683 | 0.267526 | 0.252033 | 0 | 0.023625 | 0.161738 | 34,185 | 861 | 769 | 39.703833 | 0.834555 | 0.893491 | 0 | 0.125 | 0 | 0.03125 | 0.41384 | 0.307297 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.09375 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d6e9a1a159a5398478673dc53d29e20995e5342 | 1,295 | py | Python | Unfollow.py | rocketrice/InstaBot | ea3d50d3c3533763fa9cfe97a2baf833f2414069 | [
"MIT"
] | null | null | null | Unfollow.py | rocketrice/InstaBot | ea3d50d3c3533763fa9cfe97a2baf833f2414069 | [
"MIT"
] | null | null | null | Unfollow.py | rocketrice/InstaBot | ea3d50d3c3533763fa9cfe97a2baf833f2414069 | [
"MIT"
] | null | null | null | from Instagram_Bot import InstagramBot
import time
import calendar
if __name__ == "__main__":
username = input("[*]Username: ")
password = input("[*]Password: ")
ig = InstagramBot(username, password)
print("[*]Logging in")
ig.login()
print("[+]Logged in")
while True:
try:
... | 31.585366 | 80 | 0.461004 | 126 | 1,295 | 4.634921 | 0.452381 | 0.082192 | 0.075342 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018667 | 0.420849 | 1,295 | 41 | 81 | 31.585366 | 0.76 | 0 | 0 | 0.108108 | 0 | 0 | 0.089506 | 0.032407 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081081 | 0.081081 | 0 | 0.081081 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4d722d69745af8de3f3e9fc5e299126b87355544 | 478 | py | Python | mainService/mainService/apps/core_sample/migrations/0002_core_sample_control_sum.py | Godis715/Core-Sample-Analysis | 892b3d322e9ce86dab0da9754b902b504b2e0d8b | [
"Apache-2.0"
] | 2 | 2019-09-18T10:59:21.000Z | 2019-10-02T16:50:05.000Z | mainService/mainService/apps/core_sample/migrations/0002_core_sample_control_sum.py | Godis715/Core-Sample-Analysis | 892b3d322e9ce86dab0da9754b902b504b2e0d8b | [
"Apache-2.0"
] | 78 | 2019-09-20T16:56:18.000Z | 2022-03-12T00:04:37.000Z | mainService/mainService/apps/core_sample/migrations/0002_core_sample_control_sum.py | Godis715/Core-Sample-Analysis | 892b3d322e9ce86dab0da9754b902b504b2e0d8b | [
"Apache-2.0"
] | 1 | 2019-10-03T20:49:34.000Z | 2019-10-03T20:49:34.000Z | # Generated by Django 2.2.6 on 2019-10-14 13:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core_sample', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='core_sample',
name='control_sum',
... | 23.9 | 105 | 0.619247 | 53 | 478 | 5.433962 | 0.773585 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062857 | 0.267782 | 478 | 19 | 106 | 25.157895 | 0.76 | 0.094142 | 0 | 0 | 1 | 0 | 0.162413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4d7c6bc80ab66f9ecf21dbf9cd145b2ddb8cd00c | 6,768 | py | Python | examples/machine_vision_object_pickup/evaUtilities.py | frusciante8989/eva_examples | 1655836db53f67f8d522449a74390277dd150d35 | [
"Apache-2.0"
] | null | null | null | examples/machine_vision_object_pickup/evaUtilities.py | frusciante8989/eva_examples | 1655836db53f67f8d522449a74390277dd150d35 | [
"Apache-2.0"
] | 5 | 2019-12-03T17:57:50.000Z | 2020-05-12T11:58:41.000Z | examples/machine_vision_object_pickup/evaUtilities.py | frusciante8989/eva_examples | 1655836db53f67f8d522449a74390277dd150d35 | [
"Apache-2.0"
] | 5 | 2019-11-08T15:02:42.000Z | 2021-12-08T08:24:29.000Z | import math
import operator
import numpy as np
def _convert_to_float(fl):
""" This method converts ONLY the numeric values of a string into floats """
try:
return float(fl)
except (ValueError, TypeError):
return fl
def _wrap_to_pi(angle):
""" This method wrap the input angle to 360 [... | 46.356164 | 117 | 0.644208 | 1,019 | 6,768 | 4.065751 | 0.227674 | 0.136133 | 0.097755 | 0.014482 | 0.1902 | 0.182476 | 0.10572 | 0.079652 | 0.079652 | 0.033309 | 0 | 0.034443 | 0.240691 | 6,768 | 145 | 118 | 46.675862 | 0.771745 | 0.266844 | 0 | 0.03 | 0 | 0 | 0.028424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09 | false | 0.06 | 0.03 | 0 | 0.22 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4d8695e6ad10d580ca775e0b680943573f34249c | 5,804 | py | Python | mylogistic.py | leeamen/logistic-regression | 0703913b6e272990233e41f1f14d320a633b8df8 | [
"MIT"
] | null | null | null | mylogistic.py | leeamen/logistic-regression | 0703913b6e272990233e41f1f14d320a633b8df8 | [
"MIT"
] | null | null | null | mylogistic.py | leeamen/logistic-regression | 0703913b6e272990233e41f1f14d320a633b8df8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#coding:utf-8
import numpy as np
import copy
class MyLRModel:
#param = {'objective':'binary', 'learning_rate':1, 'lam':1, 'num_iters':100}
def __init__(self, param):
if not param:
print 'Error, 需要设置参数'
exit()
self.param = copy.deepcopy(param)
#alpha 正则参数
self.param['... | 25.234783 | 102 | 0.572536 | 933 | 5,804 | 3.487674 | 0.216506 | 0.080209 | 0.059004 | 0.047019 | 0.226798 | 0.15673 | 0.107867 | 0.065151 | 0.023971 | 0.023971 | 0 | 0.031844 | 0.247932 | 5,804 | 229 | 103 | 25.344978 | 0.713631 | 0.110613 | 0 | 0.244755 | 0 | 0 | 0.080242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048951 | null | null | 0.048951 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.