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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ac70080d2ba84f213f06c587171c79abbd5554a | 4,122 | py | Python | code/data_acquire/getTweets.py | siwei-li/tweet_stock | 5c265a747f06388f303f314d812879cfff90f938 | [
"MIT"
] | null | null | null | code/data_acquire/getTweets.py | siwei-li/tweet_stock | 5c265a747f06388f303f314d812879cfff90f938 | [
"MIT"
] | null | null | null | code/data_acquire/getTweets.py | siwei-li/tweet_stock | 5c265a747f06388f303f314d812879cfff90f938 | [
"MIT"
] | null | null | null | import datetime
from Scweet.scweet import scrape
import pandas as pd
from datetime import date
search_word_list = ["$AAPL"]
last_date = date.today().strftime('%Y-%m-%d')
start_date = (date.today() - datetime.timedelta(days=59)).strftime('%Y-%m-%d')
path = "../tweets/"
data = scrape(words=search_word_list, since="20... | 37.472727 | 129 | 0.565745 | 453 | 4,122 | 4.993377 | 0.364238 | 0.075155 | 0.037135 | 0.029178 | 0.134394 | 0.116711 | 0.098143 | 0.072502 | 0.033599 | 0.033599 | 0 | 0.030899 | 0.309073 | 4,122 | 109 | 130 | 37.816514 | 0.759129 | 0.840126 | 0 | 0 | 0 | 0 | 0.09707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
3acc2dccc0b9182da0a2f313b50a9e7c2fb3ba57 | 2,041 | py | Python | ihome/ihome/utils/checkid.py | xyuzi/ihome | ab74e4efb73c14d2b410f6c19c6b2a35f8fd720e | [
"MIT"
] | null | null | null | ihome/ihome/utils/checkid.py | xyuzi/ihome | ab74e4efb73c14d2b410f6c19c6b2a35f8fd720e | [
"MIT"
] | 10 | 2021-03-19T11:31:11.000Z | 2022-02-10T10:44:16.000Z | ihome/ihome/utils/checkid.py | xyuzi/ihome | ab74e4efb73c14d2b410f6c19c6b2a35f8fd720e | [
"MIT"
] | null | null | null | W = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] # 加权系数
M_run = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] # 闰年每月天数
M_ping = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] # 平年每月天数
def check(id_number):
try:
id_number = str(id_number)
except:
return None
if len(id_numbe... | 34.59322 | 111 | 0.56002 | 333 | 2,041 | 3.192192 | 0.243243 | 0.293509 | 0.259643 | 0.079022 | 0.334901 | 0.206961 | 0.137347 | 0.037629 | 0.037629 | 0.037629 | 0 | 0.121353 | 0.261147 | 2,041 | 58 | 112 | 35.189655 | 0.583554 | 0.120039 | 0 | 0.255814 | 0 | 0 | 0.05275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0 | 0 | 0.232558 | 0.069767 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ad7e7dc441525dc13d23c5abf231dce0988ee2d | 1,282 | py | Python | radiovis/models.py | mervij/radiodns | 01543cf1e4de8de335af0301616e089c35fc67f8 | [
"Apache-2.0"
] | null | null | null | radiovis/models.py | mervij/radiodns | 01543cf1e4de8de335af0301616e089c35fc67f8 | [
"Apache-2.0"
] | 8 | 2021-05-17T10:54:28.000Z | 2021-06-08T12:02:37.000Z | radiovis/models.py | mervij/radiodns | 01543cf1e4de8de335af0301616e089c35fc67f8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Radio Moreeni
#
# 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... | 31.268293 | 74 | 0.726989 | 179 | 1,282 | 5.111732 | 0.564246 | 0.065574 | 0.032787 | 0.052459 | 0.159563 | 0.159563 | 0.131148 | 0.131148 | 0.131148 | 0.131148 | 0 | 0.013208 | 0.173167 | 1,282 | 40 | 75 | 32.05 | 0.85 | 0.429017 | 0 | 0.294118 | 0 | 0 | 0.066852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.176471 | 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 | 1 | 1 | 0 | 0 | 2 |
3add13e07600a3e8ac0277ad5a85ed8b6c37c66d | 149 | py | Python | Python Exercicios/tabuada.py | candido00/Python | 4b6721d55828191ca2ede0c5a0c36f6f5afdad55 | [
"MIT"
] | null | null | null | Python Exercicios/tabuada.py | candido00/Python | 4b6721d55828191ca2ede0c5a0c36f6f5afdad55 | [
"MIT"
] | null | null | null | Python Exercicios/tabuada.py | candido00/Python | 4b6721d55828191ca2ede0c5a0c36f6f5afdad55 | [
"MIT"
] | null | null | null | numero = int(input("Digite um numero para calcular tabuada: "))
tab = 0
while (tab <= 10):
print (tab ,"X",numero,"=", numero * tab)
tab +=1
| 24.833333 | 63 | 0.597315 | 22 | 149 | 4.045455 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.214765 | 149 | 5 | 64 | 29.8 | 0.726496 | 0 | 0 | 0 | 0 | 0 | 0.281879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3aec288a57313268e8b9645d0fbfd8350334bac5 | 575 | py | Python | thelma/repositories/rdb/schema/tables/tube.py | fogathmann/TheLMA | ac330a0005da4fea2f1387da9ff9938611ad1481 | [
"MIT"
] | 1 | 2020-07-12T22:47:58.000Z | 2020-07-12T22:47:58.000Z | thelma/repositories/rdb/schema/tables/tube.py | papagr/TheLMA | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | [
"MIT"
] | null | null | null | thelma/repositories/rdb/schema/tables/tube.py | papagr/TheLMA | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | [
"MIT"
] | 1 | 2020-07-12T22:40:36.000Z | 2020-07-12T22:40:36.000Z | """
Container table.
"""
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy import Table
__docformat__ = "reStructuredText en"
__all__ = ['create_table']
def create_table(metadata, container_tbl):
"Table factory."
tbl ... | 25 | 64 | 0.666087 | 60 | 575 | 6.133333 | 0.466667 | 0.190217 | 0.271739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248696 | 575 | 22 | 65 | 26.136364 | 0.851852 | 0.053913 | 0 | 0 | 0 | 0 | 0.123412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
3af115d969414e81383db0d1cd3046611a16de1c | 346 | py | Python | yunionclient/api/dbinstanceaccounts.py | yunionyun/python_yunionsdk | 40a567b80f6fb3ebc72d8cc6313b334a201b2f00 | [
"Apache-2.0"
] | 3 | 2021-09-22T11:34:08.000Z | 2022-03-13T04:55:17.000Z | yunionclient/api/dbinstanceaccounts.py | yunionyun/python_yunionsdk | 40a567b80f6fb3ebc72d8cc6313b334a201b2f00 | [
"Apache-2.0"
] | 13 | 2019-06-06T08:25:41.000Z | 2021-07-16T07:26:10.000Z | yunionclient/api/dbinstanceaccounts.py | yunionyun/python_yunionsdk | 40a567b80f6fb3ebc72d8cc6313b334a201b2f00 | [
"Apache-2.0"
] | 7 | 2019-03-31T05:43:36.000Z | 2021-03-04T09:59:05.000Z | from yunionclient.common import base
class Dbinstanceaccount(base.ResourceBase):
pass
class DbinstanceaccountManager(base.StandaloneManager):
resource_class = Dbinstanceaccount
keyword = 'dbinstanceaccount'
keyword_plural = 'dbinstanceaccounts'
_columns = ["Id", "Name", "Dbinstance_Id", "Status",... | 26.615385 | 80 | 0.763006 | 29 | 346 | 8.965517 | 0.724138 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141619 | 346 | 12 | 81 | 28.833333 | 0.875421 | 0 | 0 | 0 | 0 | 0 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
aae7fb5f3ea48b248531aa920d2ea7bd4a26bb66 | 1,436 | py | Python | wepost/urls.py | Hannidiot/wepost | 98c8a30812bef1a7682b3641048f7c3aa65ba8f9 | [
"MIT"
] | null | null | null | wepost/urls.py | Hannidiot/wepost | 98c8a30812bef1a7682b3641048f7c3aa65ba8f9 | [
"MIT"
] | 1 | 2022-03-02T18:16:12.000Z | 2022-03-02T23:39:14.000Z | wepost/urls.py | Hannidiot/wepost | 98c8a30812bef1a7682b3641048f7c3aa65ba8f9 | [
"MIT"
] | null | null | null | """wepost URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | 39.888889 | 81 | 0.728412 | 206 | 1,436 | 5.009709 | 0.320388 | 0.077519 | 0.054264 | 0.023256 | 0.235465 | 0.187016 | 0.146318 | 0 | 0 | 0 | 0 | 0.006478 | 0.139972 | 1,436 | 35 | 82 | 41.028571 | 0.82915 | 0.517409 | 0 | 0.125 | 0 | 0 | 0.124088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5625 | 0 | 0.5625 | 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 | 1 | 0 | 0 | 2 |
aae9039521789a5d811ceb511b2f5cde4fa43e94 | 512 | py | Python | utils/schema-doc-generator/script.py | polfliet/newrelic-quickstarts | e73e2f6e0844566eaebfc479049612999de93b17 | [
"Apache-2.0"
] | 1 | 2021-09-21T21:15:14.000Z | 2021-09-21T21:15:14.000Z | utils/schema-doc-generator/script.py | polfliet/newrelic-quickstarts | e73e2f6e0844566eaebfc479049612999de93b17 | [
"Apache-2.0"
] | null | null | null | utils/schema-doc-generator/script.py | polfliet/newrelic-quickstarts | e73e2f6e0844566eaebfc479049612999de93b17 | [
"Apache-2.0"
] | null | null | null | import glob
from pathlib import Path
from json_schema_for_humans.generation_configuration import GenerationConfiguration
from json_schema_for_humans.generate import generate_from_filename
config = GenerationConfiguration(template_name="md", show_toc=False)
schema_paths = glob.glob('utils/schemas/*.json')
for path i... | 32 | 83 | 0.794922 | 70 | 512 | 5.6 | 0.485714 | 0.040816 | 0.071429 | 0.086735 | 0.117347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119141 | 512 | 15 | 84 | 34.133333 | 0.86918 | 0.066406 | 0 | 0 | 1 | 0 | 0.130252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
aafccaaef3796f6f4b530b4baf78a42b15beba5c | 194 | py | Python | tests/test_ops.py | HephaestusProject/pytorch-DCGAN | b3bc52d75dc1023abde74fb1bb5ef118572d0adb | [
"MIT"
] | null | null | null | tests/test_ops.py | HephaestusProject/pytorch-DCGAN | b3bc52d75dc1023abde74fb1bb5ef118572d0adb | [
"MIT"
] | 8 | 2020-07-31T16:03:16.000Z | 2020-10-03T15:10:09.000Z | tests/test_ops.py | HephaestusProject/pytorch-DCGAN | b3bc52d75dc1023abde74fb1bb5ef118572d0adb | [
"MIT"
] | null | null | null | import pytest
import torch
from src.model.ops import Reshape
def test_reshape():
x = torch.empty(128, 100)
y = Reshape(-1, 1).forward(x)
assert y.size() == torch.Size([12800, 1])
| 17.636364 | 45 | 0.654639 | 31 | 194 | 4.064516 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0.195876 | 194 | 10 | 46 | 19.4 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
aaff6aacfb03f9b46395c518b76a4843ed748dd7 | 591 | py | Python | skaio/core/publisher.py | cipriantarta/skaio | 30716a3bd30d055c0c18d10a899522934bb71613 | [
"BSD-3-Clause"
] | null | null | null | skaio/core/publisher.py | cipriantarta/skaio | 30716a3bd30d055c0c18d10a899522934bb71613 | [
"BSD-3-Clause"
] | null | null | null | skaio/core/publisher.py | cipriantarta/skaio | 30716a3bd30d055c0c18d10a899522934bb71613 | [
"BSD-3-Clause"
] | null | null | null | from skaio.core.base.broker import BrokerBase
from skaio.core.base.serializer import TaskSerializer
from skaio.core.brokers.redis import RedisBroker
from skaio.core.serializers.pickle_serializer import PickleSerializer
from skaio.core.base.task import BaseTask
class Publisher:
def __init__(self, broker: BrokerBas... | 39.4 | 81 | 0.78511 | 72 | 591 | 6.263889 | 0.416667 | 0.099778 | 0.144124 | 0.113082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135364 | 591 | 14 | 82 | 42.214286 | 0.882583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
c901f7dabb75a651fc2f96352a0a3233ebd2efe8 | 456 | py | Python | sphinx_tomyst/transform/__init__.py | QuantEcon/sphinxcontrib-tomyst | b0eeecc787d74681ab3cfeff41d22aa9e56c11c5 | [
"MIT"
] | 4 | 2020-09-26T22:51:46.000Z | 2021-05-10T13:52:49.000Z | sphinx_tomyst/transform/__init__.py | executablebooks/sphinx-tomyst | b0eeecc787d74681ab3cfeff41d22aa9e56c11c5 | [
"MIT"
] | 33 | 2020-09-25T04:26:10.000Z | 2021-06-24T00:42:57.000Z | sphinx_tomyst/transform/__init__.py | QuantEcon/sphinx-tomyst | b0eeecc787d74681ab3cfeff41d22aa9e56c11c5 | [
"MIT"
] | 1 | 2020-08-10T02:51:03.000Z | 2020-08-10T02:51:03.000Z | """
Transform to Intercept Sphinx AST before transforms/post-transforms
"""
from sphinx.transforms import SphinxTransform
from sphinx.util import logging
logger = logging.getLogger(__name__)
def intercept_ast(config, document, tags):
document.document_pretransforms = document.deepcopy()
class InterceptAST(Sph... | 21.714286 | 72 | 0.769737 | 53 | 456 | 6.471698 | 0.584906 | 0.058309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002558 | 0.142544 | 456 | 20 | 73 | 22.8 | 0.87468 | 0.14693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c909016ca18ee628b31c86f2fd67a068c5aba3fa | 489 | py | Python | naverblog.py | ruby-kim/automatic-tech-blog-management | 5d45598bb87159ae08b5b80ccab81f4683989185 | [
"MIT"
] | null | null | null | naverblog.py | ruby-kim/automatic-tech-blog-management | 5d45598bb87159ae08b5b80ccab81f4683989185 | [
"MIT"
] | null | null | null | naverblog.py | ruby-kim/automatic-tech-blog-management | 5d45598bb87159ae08b5b80ccab81f4683989185 | [
"MIT"
] | null | null | null | import pytz
from bs4 import BeautifulSoup
from datetime import datetime
import requests
import os
# local import
from dotenv import load_dotenv
class NaverBlog:
def __init__(self, blogUrl):
self.url = blogUrl
self.xml = blogUrl.replace("https://", "https://rss.") + ".xml"
self.contents = ... | 18.807692 | 71 | 0.662577 | 59 | 489 | 5.237288 | 0.59322 | 0.090615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002646 | 0.226994 | 489 | 25 | 72 | 19.56 | 0.814815 | 0.02454 | 0 | 0 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c914d2aded3e634de132b65713e4999e7bcd4909 | 1,036 | py | Python | canteen/__init__.py | dbl0null/canteen | 3bef22a2059ef6ac5df178324fbc1dba45316e22 | [
"MIT"
] | 2 | 2016-08-24T18:42:41.000Z | 2017-12-08T00:41:02.000Z | canteen/__init__.py | dbl0null/canteen | 3bef22a2059ef6ac5df178324fbc1dba45316e22 | [
"MIT"
] | null | null | null | canteen/__init__.py | dbl0null/canteen | 3bef22a2059ef6ac5df178324fbc1dba45316e22 | [
"MIT"
] | 2 | 2015-09-22T05:36:27.000Z | 2017-12-08T00:41:21.000Z | # -*- coding: utf-8 -*-
"""
canteen
~~~~~~~
a minimal web framework for the modern web
:author: Sam Gammon <sg@samgammon.com>
:copyright: (c) Sam Gammon, 2014
:license: This software makes use of the MIT Open Source License.
A copy of this license is included as ``LICENSE.md`` in
... | 20.313725 | 67 | 0.681467 | 143 | 1,036 | 4.755245 | 0.468531 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008653 | 0.219112 | 1,036 | 50 | 68 | 20.72 | 0.831891 | 0.362934 | 0 | 0 | 0 | 0 | 0.003175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.84 | 0 | 0.84 | 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 | 1 | 0 | 0 | 2 |
c9162836cb3ef63abac5fbeb5186892c6b69ded5 | 297 | py | Python | api/src/lib/aws_util/s3/csv/read.py | kagemeka/twitter-api-python | c78e2b16177126d7808b90d09d6f565bd89dce5b | [
"MIT"
] | null | null | null | api/src/lib/aws_util/s3/csv/read.py | kagemeka/twitter-api-python | c78e2b16177126d7808b90d09d6f565bd89dce5b | [
"MIT"
] | null | null | null | api/src/lib/aws_util/s3/csv/read.py | kagemeka/twitter-api-python | c78e2b16177126d7808b90d09d6f565bd89dce5b | [
"MIT"
] | null | null | null | import pandas as pd
import tempfile
from lib.aws_util.s3.download import download_from_s3
def read_csv_on_s3(bucket_name: str, obj: str) -> pd.DataFrame:
dir_ = tempfile.mkdtemp()
save_path = f'{dir_}/data.csv'
download_from_s3(bucket_name, obj, save_path)
return pd.read_csv(save_path) | 29.7 | 63 | 0.771044 | 51 | 297 | 4.176471 | 0.529412 | 0.112676 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015444 | 0.127946 | 297 | 10 | 64 | 29.7 | 0.80695 | 0 | 0 | 0 | 0 | 0 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c91673bdcaf604fa1c451079ba7718d8808f0da6 | 2,908 | py | Python | src/py_dss_tools/model/control/ESPVLControl.py | eniovianna/py_dss_tools | 3057fb0b74facd05a362e4e4a588f79f70aa9dd7 | [
"MIT"
] | 3 | 2021-05-29T00:40:10.000Z | 2021-09-30T17:56:14.000Z | src/py_dss_tools/model/control/ESPVLControl.py | eniovianna/py_dss_tools | 3057fb0b74facd05a362e4e4a588f79f70aa9dd7 | [
"MIT"
] | null | null | null | src/py_dss_tools/model/control/ESPVLControl.py | eniovianna/py_dss_tools | 3057fb0b74facd05a362e4e4a588f79f70aa9dd7 | [
"MIT"
] | 3 | 2021-05-29T00:40:46.000Z | 2022-01-13T22:04:49.000Z | # -*- encoding: utf-8 -*-
"""
Created by Ênio Viana at 22/09/2021 at 23:05:30
Project: py_dss_tools [set, 2021]
"""
class ESPVLControl:
name = "ESPVLControl"
name_plural = "ESPVLControls"
columns = ['basefreq', 'element', 'enabled', 'forecast', 'kvarlimit', 'kwband', 'like', 'localcontrollist',
... | 23.451613 | 117 | 0.642022 | 275 | 2,908 | 6.501818 | 0.174545 | 0.073826 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008933 | 0.268569 | 2,908 | 123 | 118 | 23.642276 | 0.831688 | 0.036451 | 0 | 0.131868 | 0 | 0 | 0.061963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.274725 | false | 0 | 0 | 0.131868 | 0.450549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
c918a159c8987d3bc8a35c72b224729869659c26 | 452 | py | Python | apps/ventas/admin.py | Marthox1999/ProyectoDesarrolloII | cf19c683ea121b9b1affafdc3f671e7db2304b3a | [
"MIT"
] | null | null | null | apps/ventas/admin.py | Marthox1999/ProyectoDesarrolloII | cf19c683ea121b9b1affafdc3f671e7db2304b3a | [
"MIT"
] | 88 | 2019-06-18T18:28:19.000Z | 2019-09-19T18:54:46.000Z | apps/ventas/admin.py | Marthox1999/Nova | cf19c683ea121b9b1affafdc3f671e7db2304b3a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Factura, DetallesFactura, DescuentoCategoria, DescuentoSubCategoria, DescuentoProducto, PagosCredito, PagosDebito
# Register your models here.
admin.site.register(Factura)
admin.site.register(DetallesFactura)
admin.site.register(DescuentoCategoria)
admin.site.regist... | 37.666667 | 133 | 0.856195 | 47 | 452 | 8.234043 | 0.361702 | 0.162791 | 0.307494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059735 | 452 | 11 | 134 | 41.090909 | 0.910588 | 0.057522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c91be6e39aa11a826d5c88e03c829db44427baeb | 7,941 | py | Python | Traffic.py | softmicro929/a-deep-rl-approach-for-sdn-routing-optimization | 6aa9e9ad8dfa7353dccf5525bae70c03e568a53d | [
"MIT"
] | 11 | 2018-12-09T03:48:01.000Z | 2022-03-22T07:00:28.000Z | Traffic.py | softmicro929/a-deep-rl-approach-for-sdn-routing-optimization | 6aa9e9ad8dfa7353dccf5525bae70c03e568a53d | [
"MIT"
] | null | null | null | Traffic.py | softmicro929/a-deep-rl-approach-for-sdn-routing-optimization | 6aa9e9ad8dfa7353dccf5525bae70c03e568a53d | [
"MIT"
] | 3 | 2019-04-23T04:30:09.000Z | 2021-04-22T07:32:33.000Z | """
Traffic.py
"""
__author__ = "giorgio@ac.upc.edu"
import numpy as np
from os import listdir
from re import split
from OU import OU
from helper import softmax
def natural_key(string_):
"""See http://www.codinghorror.com/blog/archives/001018.html"""
return [int(s) if s.isdigit() else s for s in split(r'(\d... | 42.693548 | 121 | 0.61894 | 1,208 | 7,941 | 4.014073 | 0.272351 | 0.024129 | 0.044545 | 0.028872 | 0.171788 | 0.113838 | 0.109713 | 0.058981 | 0.058981 | 0.058981 | 0 | 0.372342 | 0.23599 | 7,941 | 185 | 122 | 42.924324 | 0.4269 | 0.441002 | 0 | 0.113636 | 0 | 0 | 0.024759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.056818 | 0.011364 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c92176317a4e7da05269c6ed1bd7c66b04ed3492 | 1,967 | py | Python | web/routing.py | stephanos/subtitlevocabulary | f452d7f35468912fe3967cfcf81c8f65cab345ec | [
"MIT"
] | 19 | 2017-04-20T00:57:36.000Z | 2018-01-06T10:47:38.000Z | web/routing.py | stephanos/subtitlevocabulary | f452d7f35468912fe3967cfcf81c8f65cab345ec | [
"MIT"
] | null | null | null | web/routing.py | stephanos/subtitlevocabulary | f452d7f35468912fe3967cfcf81c8f65cab345ec | [
"MIT"
] | 3 | 2018-01-01T06:27:48.000Z | 2020-04-09T17:21:28.000Z | import os
import jinja2
from flask_json import as_json
from web.routes.api_analysis import analysis_api
from web.routes.api_search import search_api
from web.routes.api_word import words_api
from web.routes.bootstrap import bootstrap
from web.routes.error import error
from api.dictionary.wordnik import Wordnik
from ... | 26.226667 | 99 | 0.719878 | 260 | 1,967 | 5.265385 | 0.226923 | 0.040906 | 0.04748 | 0.035062 | 0.065741 | 0.037984 | 0 | 0 | 0 | 0 | 0 | 0.001231 | 0.173869 | 1,967 | 74 | 100 | 26.581081 | 0.841231 | 0 | 0 | 0.111111 | 0 | 0 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.018519 | 0.296296 | 0.12963 | 0.574074 | 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 | 1 | 0 | 0 | 2 |
c922ef7067aac258a4e4cf3f6851f864d5293346 | 400 | py | Python | auv_control_pi/admin.py | adrienemery/auv-control-pi | 633fe89b652b07eb6ebe03c0550daa211b122297 | [
"MIT"
] | 9 | 2016-10-02T06:59:37.000Z | 2020-09-24T15:36:10.000Z | auv_control_pi/admin.py | adrienemery/auv-control-pi | 633fe89b652b07eb6ebe03c0550daa211b122297 | [
"MIT"
] | null | null | null | auv_control_pi/admin.py | adrienemery/auv-control-pi | 633fe89b652b07eb6ebe03c0550daa211b122297 | [
"MIT"
] | 4 | 2019-01-12T23:09:34.000Z | 2020-11-05T14:52:42.000Z | from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from solo.admin import SingletonModelAdmin
from .models import Configuration, AUVLog
admin.site.register(Configuration, SingletonModelAdmin)
admin.site.register(AUVLog, admin.ModelAdmin)
# remove ... | 30.769231 | 55 | 0.8375 | 53 | 400 | 6.320755 | 0.339623 | 0.107463 | 0.152239 | 0.125373 | 0.197015 | 0.197015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 400 | 12 | 56 | 33.333333 | 0.917808 | 0.0725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c92fd7f7ddcd94ac83d53a72a22847708de6dd65 | 848 | py | Python | tests/0100_utils/05_display_settings.py | sveetch/Optimus | 983aebeccd2ada7a5a0ab96f9296d4bba1112022 | [
"MIT"
] | 2 | 2019-05-31T00:23:15.000Z | 2021-04-26T07:26:16.000Z | tests/0100_utils/05_display_settings.py | sveetch/Optimus | 983aebeccd2ada7a5a0ab96f9296d4bba1112022 | [
"MIT"
] | 27 | 2015-04-21T14:43:26.000Z | 2022-01-29T00:42:53.000Z | tests/0100_utils/05_display_settings.py | sveetch/Optimus | 983aebeccd2ada7a5a0ab96f9296d4bba1112022 | [
"MIT"
] | 1 | 2017-05-21T17:32:28.000Z | 2017-05-21T17:32:28.000Z | from optimus.utils import display_settings
class DummySettings(object):
"""
Empty settings object
"""
def __init__(self):
pass
def test_basic(caplog):
"""
Basic initialize without ressources to sync
"""
conf = DummySettings()
conf.STRING = "ok"
conf.INTEGER = 42
... | 24.228571 | 71 | 0.558962 | 91 | 848 | 5.120879 | 0.494505 | 0.096567 | 0.182403 | 0.04721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0.264151 | 848 | 34 | 72 | 24.941176 | 0.714744 | 0.114387 | 0 | 0 | 0 | 0 | 0.306944 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.105263 | false | 0.052632 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c94e2d081759cfe3cc96c9284717b530cf3294f0 | 708 | py | Python | substratest/assets.py | AurelienGasser/substra-tests | 8f64d1b68e9148316e9e83293a4c34580bd18ca4 | [
"Apache-2.0"
] | 16 | 2019-10-25T13:34:42.000Z | 2020-09-01T13:53:44.000Z | substratest/assets.py | AurelienGasser/substra-tests | 8f64d1b68e9148316e9e83293a4c34580bd18ca4 | [
"Apache-2.0"
] | 96 | 2019-10-28T12:52:22.000Z | 2021-05-18T21:55:47.000Z | substratest/assets.py | AurelienGasser/substra-tests | 8f64d1b68e9148316e9e83293a4c34580bd18ca4 | [
"Apache-2.0"
] | 5 | 2019-10-25T13:46:48.000Z | 2021-02-09T09:40:41.000Z | import enum
class AssetType(enum.Enum):
algo = enum.auto()
aggregate_algo = enum.auto()
aggregatetuple = enum.auto()
composite_algo = enum.auto()
composite_traintuple = enum.auto()
data_sample = enum.auto()
dataset = enum.auto()
objective = enum.auto()
node = enum.auto()
testtu... | 22.125 | 40 | 0.618644 | 86 | 708 | 4.976744 | 0.372093 | 0.224299 | 0.084112 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266949 | 708 | 31 | 41 | 22.83871 | 0.824663 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0.076923 | 0.769231 | 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 | 1 | 0 | 0 | 2 |
c95f13943e7506d8e635b14bad6e17522594aa6b | 883 | py | Python | mfi_customization/mfi/patch/make_serial_no.py | anuradha-88/mfi_customization | eb19ed43d0178b461f1d9914d2f7b6b55c9d030c | [
"MIT"
] | null | null | null | mfi_customization/mfi/patch/make_serial_no.py | anuradha-88/mfi_customization | eb19ed43d0178b461f1d9914d2f7b6b55c9d030c | [
"MIT"
] | null | null | null | mfi_customization/mfi/patch/make_serial_no.py | anuradha-88/mfi_customization | eb19ed43d0178b461f1d9914d2f7b6b55c9d030c | [
"MIT"
] | null | null | null | import frappe
def execute():
for i in frappe.get_all('Asset',{'docstatus':1},['location','name','serial_no']):
if len(frappe.get_all('Asset Serial No',{'name':i.get("serial_no")})) == 0:
if i.get("serial_no"):
print("1111",i.get("serial_no"))
asset_... | 40.136364 | 85 | 0.458664 | 100 | 883 | 3.84 | 0.31 | 0.25 | 0.15625 | 0.1875 | 0.244792 | 0.114583 | 0.114583 | 0 | 0 | 0 | 0 | 0.010889 | 0.375991 | 883 | 22 | 86 | 40.136364 | 0.686025 | 0.11325 | 0 | 0 | 0 | 0 | 0.21895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0.133333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c96407c99bcbcc54a359ce20f8e6498f45529b67 | 520 | py | Python | tests/tests_imports/test_single_import.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | tests/tests_imports/test_single_import.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | tests/tests_imports/test_single_import.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import pytest
if __name__ == "__main__":
# import os
# import sys
# sys.path.append(os.path.realpath('..'))
pytest.main([__file__])
from tests.import_check import ImportCheck
def test_single():
# from ooobuild.lo.document.filter_options_request import FilterOptionsRequest
# ns =... | 32.5 | 82 | 0.732692 | 63 | 520 | 5.714286 | 0.603175 | 0.083333 | 0.1 | 0.133333 | 0.211111 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.153846 | 520 | 15 | 83 | 34.666667 | 0.815909 | 0.428846 | 0 | 0 | 0 | 0 | 0.224138 | 0.196552 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c96f5948b76dab85a8793eb7ce9654314f52d570 | 873 | py | Python | wolk/interfaces/__init__.py | iperformance/WolkConnect-Python | 35c86511f5bb9d47d8ed98ad7623d2ef7ba061e3 | [
"Apache-2.0"
] | null | null | null | wolk/interfaces/__init__.py | iperformance/WolkConnect-Python | 35c86511f5bb9d47d8ed98ad7623d2ef7ba061e3 | [
"Apache-2.0"
] | null | null | null | wolk/interfaces/__init__.py | iperformance/WolkConnect-Python | 35c86511f5bb9d47d8ed98ad7623d2ef7ba061e3 | [
"Apache-2.0"
] | null | null | null | from .ActuationHandler import ActuationHandler
from .ActuatorStatusProvider import ActuatorStatusProvider
from .ConfigurationHandler import ConfigurationHandler
from .ConfigurationProvider import ConfigurationProvider
from .ConnectivityService import ConnectivityService
from .FirmwareInstaller import FirmwareInstaller
... | 34.92 | 66 | 0.840779 | 51 | 873 | 14.313725 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109966 | 873 | 24 | 67 | 36.375 | 0.939511 | 0 | 0 | 0 | 0 | 0 | 0.239404 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c9703ef2605f4a86541cb07083dc8e85a029ce88 | 3,121 | py | Python | snippets/sign-madio.py | liushuaikobe/ConfigAndSnippets | 142fbc727510e7b51fa1069ac6f3865de228edcb | [
"MIT"
] | null | null | null | snippets/sign-madio.py | liushuaikobe/ConfigAndSnippets | 142fbc727510e7b51fa1069ac6f3865de228edcb | [
"MIT"
] | null | null | null | snippets/sign-madio.py | liushuaikobe/ConfigAndSnippets | 142fbc727510e7b51fa1069ac6f3865de228edcb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2012-11-18
@author: liushuai
'''
import urllib, urllib2, cookielib, re
class LoginMadio:
login_header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4'}
signin_header = {'User-Agent':'Mozilla/5.0 (Window... | 48.015385 | 201 | 0.634092 | 405 | 3,121 | 4.804938 | 0.392593 | 0.049332 | 0.052415 | 0.038541 | 0.305755 | 0.293936 | 0.263104 | 0.243577 | 0.156218 | 0.156218 | 0 | 0.033803 | 0.203781 | 3,121 | 64 | 202 | 48.765625 | 0.749296 | 0.012816 | 0 | 0.153846 | 0 | 0.076923 | 0.322772 | 0.015512 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.057692 | 0.019231 | null | null | 0.134615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a335611ad6fc4dc915bec7b845089fcaff31bfe6 | 4,540 | py | Python | django/peering_coord/custom_fields.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | django/peering_coord/custom_fields.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | django/peering_coord/custom_fields.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | """Custom Django model fields"""
import ipaddress
from typing import Optional, Union
from django.db import models
from django.core.exceptions import ValidationError
from django.forms import CharField
from peering_coord.scion_addr import ASN
IpAddress = Union[ipaddress.IPv4Address, ipaddress.IPv6Address]
IpNetwork ... | 34.135338 | 97 | 0.645595 | 549 | 4,540 | 5.256831 | 0.211293 | 0.037422 | 0.038808 | 0.027027 | 0.58316 | 0.573458 | 0.543659 | 0.49203 | 0.450104 | 0.413375 | 0 | 0.009924 | 0.245374 | 4,540 | 132 | 98 | 34.393939 | 0.832458 | 0.104185 | 0 | 0.5 | 0 | 0 | 0.086027 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.088889 | 0.644444 | 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 | 1 | 0 | 0 | 2 |
a33f381e4e9d104ca2777f1274143dd1bf91483d | 23,470 | py | Python | jb/EDA-DS1.py | james-w-balcomb/kaggle--home-credit-default-risk | b8346ba1640c42daf8457588f7fadd81ded74b8f | [
"Apache-2.0"
] | 4 | 2018-06-13T14:47:35.000Z | 2022-02-05T09:46:11.000Z | jb/EDA-DS1.py | james-w-balcomb/kaggle--home-credit-default-risk | b8346ba1640c42daf8457588f7fadd81ded74b8f | [
"Apache-2.0"
] | null | null | null | jb/EDA-DS1.py | james-w-balcomb/kaggle--home-credit-default-risk | b8346ba1640c42daf8457588f7fadd81ded74b8f | [
"Apache-2.0"
] | 2 | 2018-06-04T00:43:56.000Z | 2022-02-05T14:58:44.000Z |
# coding: utf-8
# In[ ]:
get_ipython().run_line_magic('run', 'NB03-EDA-MetaData-Check.ipynb')
# In[ ]:
# Columns where ‘Count of Unique Values Per Column’ is 2
for column_name in df_columns_number_of_unique_values:
if df_columns_number_of_unique_values[column_name] == 2:
print (column_name, 'dtype: ... | 21.832558 | 150 | 0.679932 | 3,440 | 23,470 | 4.338953 | 0.150872 | 0.053665 | 0.083478 | 0.076109 | 0.750435 | 0.705547 | 0.674528 | 0.619724 | 0.550583 | 0.512662 | 0 | 0.06945 | 0.138645 | 23,470 | 1,074 | 151 | 21.852886 | 0.668876 | 0.268385 | 0 | 0.35061 | 0 | 0 | 0.264949 | 0.03444 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.003049 | null | null | 0.243902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a3464df77696845b07b009c666aa3678b61f43de | 3,879 | py | Python | tests/test_view.py | Philipp-Userlike/django-pystache | c720ee7a4b01f673dd2f476dae2e0c529229efe2 | [
"MIT"
] | 2 | 2015-11-05T08:53:49.000Z | 2016-03-01T22:14:12.000Z | tests/test_view.py | kennethreitz-archive/pystache | f543efac93b753914a20b9daaf84a51382fba445 | [
"MIT"
] | null | null | null | tests/test_view.py | kennethreitz-archive/pystache | f543efac93b753914a20b9daaf84a51382fba445 | [
"MIT"
] | 1 | 2020-02-12T19:11:42.000Z | 2020-02-12T19:11:42.000Z | import unittest
import pystache
from examples.simple import Simple
from examples.complex_view import ComplexView
from examples.lambdas import Lambdas
from examples.inverted import Inverted, InvertedLists
class Thing(object):
pass
class TestView(unittest.TestCase):
def test_basic(self):
view = Simple(... | 34.327434 | 140 | 0.619232 | 426 | 3,879 | 5.450704 | 0.239437 | 0.054264 | 0.129199 | 0.167959 | 0.437123 | 0.397071 | 0.367356 | 0.245047 | 0.210594 | 0.170973 | 0 | 0.004034 | 0.23305 | 3,879 | 112 | 141 | 34.633929 | 0.776471 | 0 | 0 | 0.314607 | 0 | 0 | 0.15032 | 0.065299 | 0 | 0 | 0 | 0 | 0.202247 | 1 | 0.202247 | false | 0.011236 | 0.067416 | 0 | 0.292135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a34e50b4e53e329d2fa7d7fb9d15a34c2182d291 | 425 | py | Python | sendWhatsappMessage.py | systemquant/DeFi_PanCakeSwapBot | 39665bfd095e9b571a70699926c080882e5b456d | [
"MIT"
] | 142 | 2021-08-30T19:57:29.000Z | 2022-03-30T15:03:35.000Z | sendWhatsappMessage.py | systemquant/DeFi_PanCakeSwapBot | 39665bfd095e9b571a70699926c080882e5b456d | [
"MIT"
] | 21 | 2021-09-04T20:57:31.000Z | 2022-03-02T00:09:08.000Z | sendWhatsappMessage.py | systemquant/DeFi_PanCakeSwapBot | 39665bfd095e9b571a70699926c080882e5b456d | [
"MIT"
] | 116 | 2021-09-01T13:32:46.000Z | 2022-03-29T05:17:15.000Z | import pywhatkit as py
import keyboard
import time
from datetime import datetime
def sendMessage(numbers, message, price):
for number in numbers:
py.sendwhatmsg(number, "{}: {:.10f}".format(message, price), datetime.now().hour,
datetime.now().minute + 2)
keyboard.press_and_r... | 28.333333 | 89 | 0.642353 | 52 | 425 | 5.173077 | 0.596154 | 0.089219 | 0.118959 | 0.171004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015432 | 0.237647 | 425 | 14 | 90 | 30.357143 | 0.814815 | 0 | 0 | 0.166667 | 0 | 0 | 0.051765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a35da87497581938c34f56b7591df4443a8bd38e | 2,052 | py | Python | bot/py/py-irc-8.5.1/irc/buffer.py | sonoprob/0x56 | fa4cf9365696b1461492244a016e3fb57a33ce7a | [
"Artistic-2.0"
] | 1 | 2020-02-25T10:47:00.000Z | 2020-02-25T10:47:00.000Z | irc/buffer.py | suut/psychic-happiness | 56c0daef93f40b91e8a859f04a4660dde2b5c5c1 | [
"Unlicense"
] | null | null | null | irc/buffer.py | suut/psychic-happiness | 56c0daef93f40b91e8a859f04a4660dde2b5c5c1 | [
"Unlicense"
] | null | null | null | from __future__ import unicode_literals
import re
class LineBuffer(object):
r"""
Buffer bytes read in from a connection and serve complete lines back.
>>> b = LineBuffer()
>>> len(b)
0
>>> b.feed(b'foo\nbar')
>>> len(b)
7
>>> list(b.lines()) == [b'foo']
True
>>> len(b)
... | 24.141176 | 77 | 0.57115 | 281 | 2,052 | 4.085409 | 0.3879 | 0.026132 | 0.031359 | 0.038328 | 0.074913 | 0.06446 | 0.06446 | 0.038328 | 0.038328 | 0 | 0 | 0.011229 | 0.262183 | 2,052 | 84 | 78 | 24.428571 | 0.747028 | 0.560429 | 0 | 0.083333 | 0 | 0 | 0.022253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.125 | 0.708333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a36257679bdb3db982e64c451a25613c1cbcc601 | 969 | py | Python | src/cli.py | jpsecher/py-cli | b053ead3b830136517726f036ded713661ab9f3e | [
"0BSD"
] | null | null | null | src/cli.py | jpsecher/py-cli | b053ead3b830136517726f036ded713661ab9f3e | [
"0BSD"
] | null | null | null | src/cli.py | jpsecher/py-cli | b053ead3b830136517726f036ded713661ab9f3e | [
"0BSD"
] | null | null | null | import argparse
from typing import Sequence
class CLI:
def __init__(self, description: str, args: Sequence[str]):
self._cli_args = args
self._parser = argparse.ArgumentParser(description=description)
def set_up_log(self) -> None:
pass
def logfile(self) -> str:
# TODO: yyy... | 32.3 | 79 | 0.617131 | 120 | 969 | 4.791667 | 0.483333 | 0.086957 | 0.067826 | 0.109565 | 0.076522 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001376 | 0.249742 | 969 | 29 | 80 | 33.413793 | 0.789546 | 0.040248 | 0 | 0.136364 | 0 | 0 | 0.158405 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.227273 | false | 0.045455 | 0.090909 | 0.090909 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a38e9a097ca302efc71274f8e18c61b719a4f6f3 | 1,052 | py | Python | dduplicated/commands.py | messiasthi/Dduplicated | c2958b6e41e761a13ea004e0efce036966fee005 | [
"MIT"
] | null | null | null | dduplicated/commands.py | messiasthi/Dduplicated | c2958b6e41e761a13ea004e0efce036966fee005 | [
"MIT"
] | null | null | null | dduplicated/commands.py | messiasthi/Dduplicated | c2958b6e41e761a13ea004e0efce036966fee005 | [
"MIT"
] | 1 | 2018-02-15T18:09:13.000Z | 2018-02-15T18:09:13.000Z | from dduplicated import scans, fileManager
def detect(paths, verbose=False):
return scans.scan(paths, False, False, verbose)
# Remove all duplicates
def delete(files, verbose=False):
return scans.scan(files, True, False, verbose)
# Make the link to first file
def link(files, verbose=False):
return scans.scan(f... | 29.222222 | 96 | 0.75 | 155 | 1,052 | 5.083871 | 0.458065 | 0.050761 | 0.068528 | 0.087563 | 0.138325 | 0.104061 | 0.104061 | 0.104061 | 0 | 0 | 0 | 0 | 0.16635 | 1,052 | 35 | 97 | 30.057143 | 0.898518 | 0.065589 | 0 | 0 | 0 | 0 | 0.548519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.125 | 0.416667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a3a43b217a549397ed1da56f956e5e85c4d32162 | 4,419 | py | Python | upgrade/1.4.5/aquilon/aqdb/model/system.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | upgrade/1.4.5/aquilon/aqdb/model/system.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | upgrade/1.4.5/aquilon/aqdb/model/system.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2008,2009,2010,2013 Contributor
#
# 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 Li... | 40.916667 | 80 | 0.66644 | 560 | 4,419 | 5.117857 | 0.478571 | 0.020935 | 0.020935 | 0.026169 | 0.034543 | 0.016748 | 0 | 0 | 0 | 0 | 0 | 0.011415 | 0.246662 | 4,419 | 107 | 81 | 41.299065 | 0.849504 | 0.455759 | 0 | 0.046512 | 0 | 0 | 0.123934 | 0.009879 | 0 | 0 | 0 | 0.018692 | 0 | 1 | 0.023256 | false | 0 | 0.116279 | 0.023256 | 0.604651 | 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 | 1 | 0 | 0 | 2 |
6e60119d3b530316516c697b435c156b0ce6bd9d | 20,979 | py | Python | web.py | nicehero/h5game_platform | 238d71e51b14781c1178fe97f0a9d7ab7686e75d | [
"BSD-3-Clause"
] | null | null | null | web.py | nicehero/h5game_platform | 238d71e51b14781c1178fe97f0a9d7ab7686e75d | [
"BSD-3-Clause"
] | null | null | null | web.py | nicehero/h5game_platform | 238d71e51b14781c1178fe97f0a9d7ab7686e75d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import traceback
from alipay.aop.api.AlipayClientConfig import AlipayClientConfig
from alipay.aop.api.DefaultAlipayClient import DefaultAlipayClient
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.domain.AlipayTradeAppPayModel import AlipayT... | 33.3 | 1,629 | 0.705992 | 2,520 | 20,979 | 5.766667 | 0.207937 | 0.015483 | 0.018786 | 0.023121 | 0.378888 | 0.317919 | 0.298789 | 0.277525 | 0.263832 | 0.246903 | 0 | 0.025766 | 0.126793 | 20,979 | 629 | 1,630 | 33.352941 | 0.767455 | 0.051909 | 0 | 0.499099 | 0 | 0.014414 | 0.411974 | 0.202999 | 0 | 1 | 0 | 0 | 0 | 1 | 0.043243 | false | 0.027027 | 0.081081 | 0 | 0.210811 | 0.027027 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e6a283bc4120f1ee94638f84aeed9da4b9483d3 | 341 | py | Python | setup.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | setup.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | setup.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='py_wizard',
version='2.0',
author='Nathan Shearer',
author_email='shearern@gmail.com',
package_dir={'': 'src', },
packages=[
'py_wizard',
'py_wizard.console_wiz_iface',
'py_wizard.questions',
'py_wizard.tk_wizard_ifac... | 21.3125 | 38 | 0.589443 | 39 | 341 | 4.871795 | 0.692308 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.260997 | 341 | 15 | 39 | 22.733333 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.372434 | 0.152493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e7152edfa2519c4e8ce2672dce330c0b928bd58 | 820 | py | Python | django_analyses/apps.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 1 | 2020-12-30T12:43:34.000Z | 2020-12-30T12:43:34.000Z | django_analyses/apps.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 59 | 2019-12-25T13:14:56.000Z | 2021-07-22T12:24:46.000Z | django_analyses/apps.py | TheLabbingProject/django_analyses | 08cac40a32754a265b37524f08ec6160c69ebea8 | [
"Apache-2.0"
] | 2 | 2020-05-24T06:44:27.000Z | 2020-07-09T15:47:31.000Z | """
Definition of the :class:`DjangoAnalysesConfig` class.
References
----------
* `Django applications`_
.. _Django applications:
https://docs.djangoproject.com/en/3.0/ref/applications/#module-django.apps
"""
from django.apps import AppConfig
class DjangoAnalysesConfig(AppConfig):
"""
*django_analyses*... | 20.5 | 86 | 0.630488 | 80 | 820 | 6.375 | 0.5125 | 0.058824 | 0.086275 | 0.098039 | 0.172549 | 0.172549 | 0.172549 | 0.172549 | 0.172549 | 0 | 0 | 0.010955 | 0.220732 | 820 | 39 | 87 | 21.025641 | 0.787167 | 0.657317 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 2 |
6e73f5cbd34016aeb23c52711aa6d59e997a91f2 | 4,723 | py | Python | Incident-Response/Tools/cyphon/cyphon/aggregator/pumproom/tests/test_planner.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/cyphon/cyphon/aggregator/pumproom/tests/test_planner.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/cyphon/cyphon/aggregator/pumproom/tests/test_planner.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | 36.612403 | 82 | 0.675206 | 595 | 4,723 | 5.176471 | 0.280672 | 0.046753 | 0.064286 | 0.071429 | 0.568831 | 0.517532 | 0.492857 | 0.492857 | 0.39513 | 0.293182 | 0 | 0.021241 | 0.232479 | 4,723 | 128 | 83 | 36.898438 | 0.828414 | 0.94855 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e75cf1e9be606accbcd013aeb614e2ad0ce514a | 256 | py | Python | canvas/__main__.py | robinsax/canvas | 6e8b9b260fdda868d687b562926a2038736ec56c | [
"Apache-2.0"
] | 4 | 2018-01-24T01:34:39.000Z | 2021-01-14T21:29:47.000Z | canvas/__main__.py | robinsax/canvas | 6e8b9b260fdda868d687b562926a2038736ec56c | [
"Apache-2.0"
] | 2 | 2018-06-09T22:28:56.000Z | 2018-06-12T01:40:10.000Z | canvas/__main__.py | robinsax/canvas | 6e8b9b260fdda868d687b562926a2038736ec56c | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
'''
The entry point of canvas's CLI.
'''
# Ensure canvas is importable.
import sys
sys.path.insert(0, '.')
# Import and invoke the launch handler.
from canvas import launch_cli
launch_cli((str(),) if len(sys.argv) == 1 else sys.argv[1:])
| 19.692308 | 60 | 0.691406 | 43 | 256 | 4.069767 | 0.674419 | 0.102857 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.15625 | 256 | 12 | 61 | 21.333333 | 0.791667 | 0.445313 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6e8d1ac45ed9400c770efb3476dd3bb9a8c33731 | 419 | py | Python | test/python/importer/jit_ir/node_import/utils.py | burntfalafel/torch-mlir-internal | d3ef58450fc94e9337dc0434fa3af6dd7b54b37f | [
"Apache-2.0"
] | 213 | 2021-09-24T03:26:53.000Z | 2022-03-30T07:11:48.000Z | test/python/importer/jit_ir/node_import/utils.py | burntfalafel/torch-mlir-internal | d3ef58450fc94e9337dc0434fa3af6dd7b54b37f | [
"Apache-2.0"
] | 247 | 2021-09-23T18:49:45.000Z | 2022-03-31T17:19:02.000Z | test/python/importer/jit_ir/node_import/utils.py | burntfalafel/torch-mlir-internal | d3ef58450fc94e9337dc0434fa3af6dd7b54b37f | [
"Apache-2.0"
] | 68 | 2021-09-23T18:23:20.000Z | 2022-03-29T11:18:58.000Z | # -*- Python -*-
# This file is licensed under a pytorch-style license
# See LICENSE.pytorch for license information.
# Helpers for the other tests.
import torch
from torch._C import CompilationUnit
# RUN: %PYTHON %s
# Import TorchScript IR string as ScriptFunction.
def create_script_function(func_name, ts_ir_str):... | 26.1875 | 70 | 0.763723 | 61 | 419 | 5.04918 | 0.655738 | 0.038961 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150358 | 419 | 15 | 71 | 27.933333 | 0.865169 | 0.486874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6e9212340db1525fd1f6beb2d6ba6ca618c696f8 | 1,677 | py | Python | envipyarc/gptoolbox.py | envi-idl/envipyarc | a996ea5a2d4b49bf6ade720fbd3f8c68e5cac97c | [
"MIT"
] | null | null | null | envipyarc/gptoolbox.py | envi-idl/envipyarc | a996ea5a2d4b49bf6ade720fbd3f8c68e5cac97c | [
"MIT"
] | null | null | null | envipyarc/gptoolbox.py | envi-idl/envipyarc | a996ea5a2d4b49bf6ade720fbd3f8c68e5cac97c | [
"MIT"
] | null | null | null | """
The ENVI GPToolbox class is used to create python toolboxes capable of running \
ENVI/IDL analytics inside of ArcMap and ArcGIS Pro. Each generated toolbox contains \
one or more GPTools that are lightweight wrappers to running ENVI/IDL tasks through \
the taskengine. For more api documentation on GPToolbox you c... | 34.22449 | 86 | 0.670244 | 172 | 1,677 | 6.418605 | 0.534884 | 0.038043 | 0.025362 | 0.048913 | 0.117754 | 0.117754 | 0.117754 | 0.117754 | 0 | 0 | 0 | 0.000801 | 0.255218 | 1,677 | 48 | 87 | 34.9375 | 0.883106 | 0.327967 | 0 | 0.074074 | 1 | 0 | 0.518282 | 0.229433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.37037 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6e99584a09360d7139d742554382c0e9608aba6b | 355 | py | Python | main.py | aalsabag/LiveCaption | 9170cda2b05d9c3016276adf409c62046226dca3 | [
"MIT"
] | 1 | 2021-03-25T17:22:15.000Z | 2021-03-25T17:22:15.000Z | main.py | aalsabag/LiveCaption | 9170cda2b05d9c3016276adf409c62046226dca3 | [
"MIT"
] | null | null | null | main.py | aalsabag/LiveCaption | 9170cda2b05d9c3016276adf409c62046226dca3 | [
"MIT"
] | 1 | 2021-06-28T09:41:39.000Z | 2021-06-28T09:41:39.000Z | #!/usr/bin/env python3
import json
from flask import Flask
from flask.json import jsonify
from vosk import KaldiRecognizer, Model, SetLogLevel
app = Flask(__name__)
@app.route('/hello', methods=['GET'])
def hello_world():
return jsonify({'hello': 'world!!!'})
def main():
app.run(debug=True)
if __name__ == "... | 20.882353 | 52 | 0.698592 | 49 | 355 | 4.795918 | 0.55102 | 0.076596 | 0.085106 | 0.12766 | 0.161702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0033 | 0.146479 | 355 | 17 | 53 | 20.882353 | 0.772277 | 0.059155 | 0 | 0.166667 | 0 | 0 | 0.08982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.083333 | 0.583333 | 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 | 1 | 0 | 0 | 2 |
6ea44ace2337be42eea61f72184a54eec26b5fd2 | 547 | py | Python | src/panoramic/cli/husky/core/tel/visitors/terminal_visitor.py | kubamahnert/panoramic-cli | 036f45a05d39f5762088ce23dbe367b938192f79 | [
"MIT"
] | 5 | 2020-11-13T17:26:59.000Z | 2021-03-19T15:11:26.000Z | src/panoramic/cli/husky/core/tel/visitors/terminal_visitor.py | kubamahnert/panoramic-cli | 036f45a05d39f5762088ce23dbe367b938192f79 | [
"MIT"
] | 5 | 2020-10-28T10:22:35.000Z | 2021-01-27T17:33:58.000Z | src/panoramic/cli/husky/core/tel/visitors/terminal_visitor.py | kubamahnert/panoramic-cli | 036f45a05d39f5762088ce23dbe367b938192f79 | [
"MIT"
] | 3 | 2021-01-26T07:58:03.000Z | 2021-03-11T13:28:34.000Z | from panoramic.cli.tel_grammar.TelParser import TelParser as AntlrTelParser
from panoramic.cli.tel_grammar.TelVisitor import TelVisitor as AntlrTelVisitor
class TelTerminalVisitor(AntlrTelVisitor):
"""
Visitor that will render all terminal nodes exactly as they are.
"""
def __init__(self):
se... | 27.35 | 78 | 0.702011 | 63 | 547 | 5.936508 | 0.619048 | 0.080214 | 0.085562 | 0.101604 | 0.139037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20841 | 547 | 19 | 79 | 28.789474 | 0.863741 | 0.117002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6eaac839a433c6bd24c558f75d92e38aee869246 | 1,248 | py | Python | src/dto/console_game_domain_dto.py | rafaelcorazzi/games-consumer | c0f59fcbf37a38e624044fef2a48a36fa986c920 | [
"MIT"
] | null | null | null | src/dto/console_game_domain_dto.py | rafaelcorazzi/games-consumer | c0f59fcbf37a38e624044fef2a48a36fa986c920 | [
"MIT"
] | null | null | null | src/dto/console_game_domain_dto.py | rafaelcorazzi/games-consumer | c0f59fcbf37a38e624044fef2a48a36fa986c920 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import List
from marshmallow import Schema, fields, post_load
from src.dto.common.base_dto import BaseDto
class ConsoleGamesListDto(BaseDto):
def __init__(self, console_code: str = None,
reference_id: str = None,
title: str = None,
... | 24 | 64 | 0.665865 | 137 | 1,248 | 5.89781 | 0.291971 | 0.054455 | 0.034653 | 0.044554 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245994 | 1,248 | 52 | 65 | 24 | 0.858661 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6ebcacaaddff805e3b3a7dd2a2f688b83b85fad0 | 3,214 | py | Python | tests/xbmcgui.py | dagwieers/plugin.video.fosdem | d2f7758159eb040b85dd4dccac009f10f519ca28 | [
"MIT"
] | null | null | null | tests/xbmcgui.py | dagwieers/plugin.video.fosdem | d2f7758159eb040b85dd4dccac009f10f519ca28 | [
"MIT"
] | null | null | null | tests/xbmcgui.py | dagwieers/plugin.video.fosdem | d2f7758159eb040b85dd4dccac009f10f519ca28 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright: (c) 2019, Dag Wieers (@dagwieers) <dag@wieers.com>
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""This file implements the Kodi xbmcgui module, either using stubs or alternative functionality"""
# pylint: disable=invalid-name,unused-a... | 34.55914 | 104 | 0.677349 | 369 | 3,214 | 5.826558 | 0.333333 | 0.07907 | 0.090698 | 0.133023 | 0.355349 | 0.286977 | 0.230233 | 0.230233 | 0 | 0 | 0 | 0.017586 | 0.221531 | 3,214 | 92 | 105 | 34.934783 | 0.841727 | 0.465775 | 0 | 0.510204 | 0 | 0.020408 | 0.035142 | 0.031443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0 | 0.040816 | 0 | 0.612245 | 0.040816 | 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 | 1 | 0 | 0 | 2 |
6ec3e398ad827a23e1d174f70ece7000e5ab2640 | 334 | py | Python | Exercicios-Mundo1/ex018.py | WeDias/RespCEV | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | [
"MIT"
] | 1 | 2021-02-19T05:13:31.000Z | 2021-02-19T05:13:31.000Z | Exercicios-Mundo1/ex018.py | WeDias/RespCEV | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | [
"MIT"
] | null | null | null | Exercicios-Mundo1/ex018.py | WeDias/RespCEV | 3cf0918c5c90e3b2d6dc7e57f2824436c639c04c | [
"MIT"
] | null | null | null | import math
ang = float(input('Digite o valor do Ângulo: '))
seno = float(math.sin(math.radians(ang)))
coso = float(math.cos(math.radians(ang)))
tang = float(math.tan(math.radians(ang)))
print('O Seno Do Ângulo {0} é {1:.3f}\nO Cosseno Do Ângulo {0} é {2:.3f}\nA Tangente Do Ângulo {0} é {3:.3f}'.format(ang, seno, ... | 47.714286 | 141 | 0.664671 | 61 | 334 | 3.639344 | 0.47541 | 0.144144 | 0.189189 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031359 | 0.140719 | 334 | 6 | 142 | 55.666667 | 0.74216 | 0 | 0 | 0 | 0 | 0.166667 | 0.387195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ec98c3ebc5eb9c0268eb5a8cff500d41dea7df4 | 370 | py | Python | Chapter13/excise2.py | lixuekai2001/python.Hello-World-Computer-Programming-for-Kids-and-Other-Beginners | e2caaf58af4d2d2ff541d9e7e78f9e5f0778a293 | [
"Apache-2.0"
] | 3 | 2020-03-09T00:35:22.000Z | 2020-10-29T06:26:46.000Z | Chapter13/excise2.py | lixuekai2001/python.Hello-World-Computer-Programming-for-Kids-and-Other-Beginners | e2caaf58af4d2d2ff541d9e7e78f9e5f0778a293 | [
"Apache-2.0"
] | null | null | null | Chapter13/excise2.py | lixuekai2001/python.Hello-World-Computer-Programming-for-Kids-and-Other-Beginners | e2caaf58af4d2d2ff541d9e7e78f9e5f0778a293 | [
"Apache-2.0"
] | 4 | 2020-10-29T06:26:48.000Z | 2021-09-18T13:41:13.000Z | def printAddr (name, num ,str, city, prov ,pcode, country):
print name
print num,
print str
print city,
if prov != "":
print ", "+prov
else:
print ""
print pcode
print country
print
printAddr("tom","43","Main St.","Caton","Guangdong","110011","China")
printAddr("jack... | 23.125 | 69 | 0.57027 | 46 | 370 | 4.586957 | 0.586957 | 0.113744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.243243 | 370 | 15 | 70 | 24.666667 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0.197297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.857143 | 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 | 1 | 0 | 2 |
6ee4db4f0f65570071443f55f2f9853699381d5a | 1,192 | py | Python | hdpview/src/utils/generative_model.py | FumiyukiKato/PrivBTS | d2fae18588b24281d0968b8af09dc9295e73cdda | [
"Apache-2.0"
] | null | null | null | hdpview/src/utils/generative_model.py | FumiyukiKato/PrivBTS | d2fae18588b24281d0968b8af09dc9295e73cdda | [
"Apache-2.0"
] | null | null | null | hdpview/src/utils/generative_model.py | FumiyukiKato/PrivBTS | d2fae18588b24281d0968b8af09dc9295e73cdda | [
"Apache-2.0"
] | null | null | null | from algorithm.hdpview import HDPView
"""
For data synthesis task.
"""
class HDPViewSampler:
@classmethod
def make_model(cls, prng):
return cls(prng)
def __init__(self, prng):
self.prng = prng
def train(self, ct, epsilon, label_attr, ratio=0.9, alpha=1.6, beta=1.2, g... | 28.380952 | 113 | 0.63255 | 158 | 1,192 | 4.594937 | 0.379747 | 0.077135 | 0.03719 | 0.063361 | 0.231405 | 0.231405 | 0.231405 | 0.231405 | 0.231405 | 0.231405 | 0 | 0.009029 | 0.256711 | 1,192 | 42 | 114 | 28.380952 | 0.810384 | 0 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.037037 | 0.074074 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6eee40ab5872d6874d2740ecfe883855be015d0d | 391 | py | Python | src/main/handlers/index.py | Mono20i06/tms-z43 | 007d51fd2e88698f8a6176c70583c379129d7d0c | [
"MIT"
] | null | null | null | src/main/handlers/index.py | Mono20i06/tms-z43 | 007d51fd2e88698f8a6176c70583c379129d7d0c | [
"MIT"
] | 8 | 2021-01-10T09:38:54.000Z | 2021-02-28T12:33:58.000Z | src/main/handlers/index.py | vadimkondratovich/asd | 5f2db494f739ea663795c5d4a924ced942cb1852 | [
"MIT"
] | null | null | null | from random import randint
from main.custom_types import RequestT
from main.custom_types import ResponseT
from main.util import render_template
TEMPLATE = "index.html"
def handler(_request: RequestT) -> ResponseT:
context = {"random_number": randint(100000, 999999)}
document = render_template(TEMPLATE, con... | 21.722222 | 56 | 0.767263 | 47 | 391 | 6.255319 | 0.531915 | 0.081633 | 0.095238 | 0.129252 | 0.170068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.15601 | 391 | 17 | 57 | 23 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
42cc6114fb1e33ced6bdc022a34922b180e85e90 | 10,357 | py | Python | LUH2/GLM/preprocess_GCAM.py | ritviksahajpal/LUH2 | aec79f737aebcaa273de5f8f1aeadd3317d03aa4 | [
"MIT"
] | null | null | null | LUH2/GLM/preprocess_GCAM.py | ritviksahajpal/LUH2 | aec79f737aebcaa273de5f8f1aeadd3317d03aa4 | [
"MIT"
] | null | null | null | LUH2/GLM/preprocess_GCAM.py | ritviksahajpal/LUH2 | aec79f737aebcaa273de5f8f1aeadd3317d03aa4 | [
"MIT"
] | null | null | null | import logging
import numpy as np
import pandas
import constants
import pygeoutil.util as util
from preprocess_IAM import IAM
class GCAM(IAM):
"""
Class for GCAM
"""
def __init__(self, path_nc):
IAM.__init__(self, 'GCAM', path_nc)
self.land_var = 'landcoverpercentage'
# Inpu... | 38.645522 | 124 | 0.589456 | 1,312 | 10,357 | 4.489329 | 0.217226 | 0.050764 | 0.020374 | 0.026486 | 0.328353 | 0.270968 | 0.214941 | 0.194228 | 0.156197 | 0.144312 | 0 | 0.007727 | 0.287728 | 10,357 | 267 | 125 | 38.790262 | 0.790701 | 0.138843 | 0 | 0.195804 | 0 | 0 | 0.103387 | 0.003806 | 0 | 0 | 0 | 0.014981 | 0 | 0 | null | null | 0 | 0.041958 | null | null | 0.034965 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
42ecbbc6123b69809d8b2641efead142cdb92f46 | 1,025 | py | Python | scripts/rawdata/pytreeros/refills-project_refills_second_review_arm_movement_behavior.py | RazanGhzouli/Behavior-Trees-in-Action | 36d1b62b55dcc748679054fb5cc13235261a5856 | [
"MIT"
] | 2 | 2021-03-12T14:22:41.000Z | 2022-01-30T12:57:08.000Z | scripts/rawdata/pytreeros/refills-project_refills_second_review_arm_movement_behavior.py | RazanGhzouli/Behavior-Trees-in-Action | 36d1b62b55dcc748679054fb5cc13235261a5856 | [
"MIT"
] | null | null | null | scripts/rawdata/pytreeros/refills-project_refills_second_review_arm_movement_behavior.py | RazanGhzouli/Behavior-Trees-in-Action | 36d1b62b55dcc748679054fb5cc13235261a5856 | [
"MIT"
] | null | null | null | from py_trees import Status, Blackboard
from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryGoal
from py_trees_ros.actions import ActionClient
class ArmMovementBehavior(ActionClient):
def __init__(self, name="", action_namespace='/whole_body_controller/follow_joint_trajectory'):
... | 39.423077 | 136 | 0.757073 | 105 | 1,025 | 7.142857 | 0.419048 | 0.06 | 0.112 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154146 | 1,025 | 25 | 137 | 41 | 0.865052 | 0.188293 | 0 | 0 | 0 | 0 | 0.072904 | 0.055893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
42f0c1ce1ecb80ed35cc6ca27678b013c8d1b314 | 389 | py | Python | src/__main__.py | haihala/space-tavern | c5e819c71fa561a9065cb3969a6b1625205f2fd0 | [
"MIT"
] | null | null | null | src/__main__.py | haihala/space-tavern | c5e819c71fa561a9065cb3969a6b1625205f2fd0 | [
"MIT"
] | null | null | null | src/__main__.py | haihala/space-tavern | c5e819c71fa561a9065cb3969a6b1625205f2fd0 | [
"MIT"
] | null | null | null | from constants import CONFPATH
from engine import Engine
from json import load, dump
from os import mkdir
import sys
from os.path import isdir, isfile, dirname
def load_config():
with open(CONFPATH) as f:
return load(f)
def main(resolution):
engine = Engine(load_config(), resolution)
engine.run()... | 20.473684 | 46 | 0.706941 | 60 | 389 | 4.416667 | 0.566667 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.192802 | 389 | 18 | 47 | 21.611111 | 0.83758 | 0 | 0 | 0 | 0 | 0 | 0.020566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
42fd0630c8ef6a6c73639b6d7a9278fe5048f1c2 | 273 | py | Python | usaspending_api/views.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | usaspending_api/views.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | 3 | 2020-02-12T01:16:46.000Z | 2021-06-10T20:36:57.000Z | usaspending_api/views.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | from django.http import HttpResponse
from django.views import View
import json
class StatusView(View):
def get(self, request, format=None):
response_object = {
"status": "running"
}
return HttpResponse(json.dumps(response_object))
| 22.75 | 56 | 0.67033 | 31 | 273 | 5.83871 | 0.709677 | 0.110497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241758 | 273 | 11 | 57 | 24.818182 | 0.874396 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6e0d4ea88408c4581b91f97fff19092653097b98 | 1,489 | py | Python | PRINCESSCF/introduce/models.py | KnS-hacks/1-PrincessDFM-BE | 44073783c3591305ed93378b24693cf86c7ff1ee | [
"MIT"
] | null | null | null | PRINCESSCF/introduce/models.py | KnS-hacks/1-PrincessDFM-BE | 44073783c3591305ed93378b24693cf86c7ff1ee | [
"MIT"
] | 3 | 2021-11-18T10:18:40.000Z | 2021-11-19T05:24:10.000Z | PRINCESSCF/introduce/models.py | KnS-hacks/1-PrincessDFM-BE | 44073783c3591305ed93378b24693cf86c7ff1ee | [
"MIT"
] | null | null | null | from django.db import models
class HashTag(models.Model):
name = models.CharField(primary_key=True, max_length=20)
def __str__(self):
return self.name
class MBTI(models.Model):
name = models.CharField(primary_key=True, max_length=20)
def __str__(self):
return self.name
class Part... | 29.196078 | 72 | 0.711216 | 194 | 1,489 | 5.273196 | 0.221649 | 0.096774 | 0.11437 | 0.078201 | 0.57087 | 0.57087 | 0.57087 | 0.542522 | 0.542522 | 0.328446 | 0 | 0.02449 | 0.1773 | 1,489 | 51 | 73 | 29.196078 | 0.810612 | 0 | 0 | 0.4 | 0 | 0 | 0.002685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.028571 | 0.142857 | 0.971429 | 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 | 1 | 0 | 0 | 2 |
6e280c8c7704a013562649864b9ea24a57b9b2d1 | 237 | py | Python | modules/pyttsx_speak.py | Marvin-Virtual-Assistant/Marvin-v3-client | b3f40051ca5fe75ca73ffe9da7ac0dbf1ac61d31 | [
"Apache-2.0"
] | 3 | 2018-10-13T02:53:53.000Z | 2020-10-14T02:33:36.000Z | modules/pyttsx_speak.py | Marvin-Virtual-Assistant/Marvin-v3-client | b3f40051ca5fe75ca73ffe9da7ac0dbf1ac61d31 | [
"Apache-2.0"
] | null | null | null | modules/pyttsx_speak.py | Marvin-Virtual-Assistant/Marvin-v3-client | b3f40051ca5fe75ca73ffe9da7ac0dbf1ac61d31 | [
"Apache-2.0"
] | 2 | 2018-10-26T04:28:16.000Z | 2018-12-25T08:11:00.000Z | # env imports
from os import path
from marvinenv.lib.sitepackages import pyttsx3
def pyttsx_speak(tts): # function to speak with engine
engine = pyttsx3.init()
engine.say(tts) # que tts data
engine.runAndWait() # speak text
| 26.333333 | 54 | 0.734177 | 34 | 237 | 5.088235 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.185654 | 237 | 8 | 55 | 29.625 | 0.88601 | 0.274262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6e2dd111a47fbe34d6ccf79fa5d43d4e31e00362 | 177 | py | Python | soma.py | gersonraniery/Exercicios | 1f72b1b5e012eee1d90edb50adfe1d60598edb2b | [
"MIT"
] | null | null | null | soma.py | gersonraniery/Exercicios | 1f72b1b5e012eee1d90edb50adfe1d60598edb2b | [
"MIT"
] | null | null | null | soma.py | gersonraniery/Exercicios | 1f72b1b5e012eee1d90edb50adfe1d60598edb2b | [
"MIT"
] | null | null | null | #Criando um algoritmo para somar duas variáveis
a = int(input('Digite um valor:'))
b = int(input('Digite outro valor: '))
soma = a+b
print(f'A soma entre {a} e {b} é {soma}.')
| 25.285714 | 47 | 0.661017 | 32 | 177 | 3.65625 | 0.625 | 0.136752 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 177 | 6 | 48 | 29.5 | 0.795918 | 0.259887 | 0 | 0 | 0 | 0 | 0.523077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
281cb8bdfa0e19b583b71d226c20d68a853086e6 | 388 | py | Python | tests/test_cursor.py | adh/ctds | 8c8b562341fb9635e3d89013ff06ffc6b1397abb | [
"MIT"
] | 78 | 2016-03-14T18:02:05.000Z | 2021-11-26T23:23:06.000Z | tests/test_cursor.py | adh/ctds | 8c8b562341fb9635e3d89013ff06ffc6b1397abb | [
"MIT"
] | 64 | 2016-10-18T17:54:08.000Z | 2021-09-30T11:01:02.000Z | tests/test_cursor.py | adh/ctds | 8c8b562341fb9635e3d89013ff06ffc6b1397abb | [
"MIT"
] | 17 | 2016-07-21T20:22:12.000Z | 2020-11-07T01:25:26.000Z | import ctds
from .base import TestExternalDatabase
class TestCursor(TestExternalDatabase):
def test___doc__(self):
self.assertEqual(
ctds.Cursor.__doc__,
'''\
A database cursor used to manage the context of a fetch operation.
:pep:`0249#cursor-objects`
'''
)
def test... | 20.421053 | 66 | 0.670103 | 43 | 388 | 5.813953 | 0.651163 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013559 | 0.239691 | 388 | 18 | 67 | 21.555556 | 0.833898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
281e2505b4bdcee6d43687b724f4289249d99d2b | 1,214 | py | Python | dyce/symmetries.py | posita/dyce | aa0180cc1e3607e552e45f9d03af7de667838aea | [
"MIT"
] | 18 | 2021-07-08T07:04:48.000Z | 2022-03-25T07:42:50.000Z | dyce/symmetries.py | posita/dyce | aa0180cc1e3607e552e45f9d03af7de667838aea | [
"MIT"
] | 6 | 2021-07-21T23:40:41.000Z | 2022-01-08T14:50:53.000Z | dyce/symmetries.py | posita/dyce | aa0180cc1e3607e552e45f9d03af7de667838aea | [
"MIT"
] | null | null | null | # ======================================================================================
# Copyright and other protections apply. Please see the accompanying LICENSE file for
# rights and restrictions governing use of this software. All rights not expressly
# waived or licensed are reserved. If that file is missing or ... | 28.904762 | 88 | 0.547776 | 134 | 1,214 | 4.783582 | 0.552239 | 0.049922 | 0.087363 | 0.049922 | 0.053042 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005081 | 0.189456 | 1,214 | 41 | 89 | 29.609756 | 0.646341 | 0.504942 | 0 | 0.090909 | 0 | 0 | 0.011824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.545455 | 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 | 1 | 0 | 0 | 2 |
2839a34e28511b73281f663b11ca618fd836bad5 | 135 | py | Python | P.P.P/arithmetic oprators.py | sadique720/python-basics | 29786e617dcccbfcb73a213cd3d73fc545b837c3 | [
"MIT"
] | 2 | 2019-05-28T10:55:12.000Z | 2019-05-28T10:55:14.000Z | P.P.P/arithmetic oprators.py | sadique720/python-basics | 29786e617dcccbfcb73a213cd3d73fc545b837c3 | [
"MIT"
] | null | null | null | P.P.P/arithmetic oprators.py | sadique720/python-basics | 29786e617dcccbfcb73a213cd3d73fc545b837c3 | [
"MIT"
] | null | null | null | a=10
b=20
a+b #addition
a/b #divde
a-b #substraction
a*b #multiplication
a%b #reminder
a**b #exponent
a//b #floor devision
| 13.5 | 21 | 0.651852 | 26 | 135 | 3.384615 | 0.461538 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.214815 | 135 | 9 | 22 | 15 | 0.792453 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
284d04cc695de4adfd6e3c6ac25d8544ba1b3947 | 755 | py | Python | pytma/tests/test_utility.py | aloidia-solutions/nlp-modelling | cc181bf08c5f93d6949d47bb5212dcefb336279d | [
"MIT"
] | 1 | 2019-07-25T21:18:10.000Z | 2019-07-25T21:18:10.000Z | pytma/tests/test_utility.py | brucebcampbell/nlp-modelling | b6e5b6c5b2df7cc20e7de68f32d164981353aaf9 | [
"MIT"
] | 13 | 2019-08-08T15:42:27.000Z | 2019-09-29T20:34:14.000Z | pytma/tests/test_utility.py | aloidia-solutions/nlp-modelling | cc181bf08c5f93d6949d47bb5212dcefb336279d | [
"MIT"
] | 1 | 2019-10-23T19:51:41.000Z | 2019-10-23T19:51:41.000Z | import pytest
import pytma
from pytma import Utility
from pytma.Utility import LogError
def test_logger():
"""
Testing the logging helper.
"""
log = Utility.Logger('.', "test_pytma")
try:
log.info("information")
except LogError:
pytest.fail("Unexpected LogError ..")
try... | 19.358974 | 45 | 0.606623 | 77 | 755 | 5.922078 | 0.337662 | 0.065789 | 0.219298 | 0.263158 | 0.513158 | 0.513158 | 0.421053 | 0.421053 | 0 | 0 | 0 | 0 | 0.272848 | 755 | 38 | 46 | 19.868421 | 0.830601 | 0.035762 | 0 | 0.576923 | 0 | 0 | 0.244726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
28596eea00f6e54a8cb03d3c432442a23adfaaa3 | 267 | py | Python | mqtt/mqtt_publish.py | wichmann/RaspPI | 168609cb237e59a4c895eae798c0dab052aab38b | [
"MIT"
] | null | null | null | mqtt/mqtt_publish.py | wichmann/RaspPI | 168609cb237e59a4c895eae798c0dab052aab38b | [
"MIT"
] | null | null | null | mqtt/mqtt_publish.py | wichmann/RaspPI | 168609cb237e59a4c895eae798c0dab052aab38b | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# Notwendige Bibliothek installieren:
# pip3 install paho-mqtt
import paho.mqtt.publish as publish
# veröffentliche eine neue Nachricht unter dem angegebenen Thema
publish.single("test/topic", "nachricht", hostname="192.168.24.132")
| 20.538462 | 68 | 0.756554 | 35 | 267 | 5.771429 | 0.857143 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056522 | 0.138577 | 267 | 12 | 69 | 22.25 | 0.821739 | 0.554307 | 0 | 0 | 0 | 0 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
285dcd4b75654f6a7374b0d636b6381ae2a00dbc | 425 | py | Python | dataset_toolkit/Export/AbstractExport.py | PeloriTech/DatasetToolkit | e11e709b59b8d3bbc0e322489f02f1307f251368 | [
"MIT"
] | null | null | null | dataset_toolkit/Export/AbstractExport.py | PeloriTech/DatasetToolkit | e11e709b59b8d3bbc0e322489f02f1307f251368 | [
"MIT"
] | null | null | null | dataset_toolkit/Export/AbstractExport.py | PeloriTech/DatasetToolkit | e11e709b59b8d3bbc0e322489f02f1307f251368 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from dataset_toolkit.Model.AnnotationModel import AnnotationModel
class AbstractExport(ABC):
@abstractmethod
def start(self):
pass
@abstractmethod
def append(self, new_dataset_dir: str, new_annotations_dir: str,
annotation_model: Annotation... | 22.368421 | 80 | 0.705882 | 45 | 425 | 6.488889 | 0.488889 | 0.174658 | 0.143836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232941 | 425 | 19 | 81 | 22.368421 | 0.895706 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2862b6ea36d735d587eb2a3602956ee0c3330a8e | 1,375 | py | Python | haasomeapi/dataobjects/custombots/ScriptBot.py | iamcos/haasomeapi | eac1640cc13e1e7649b8a8d6ed88184722c907c8 | [
"MIT"
] | 9 | 2018-07-08T22:40:53.000Z | 2022-03-21T20:32:43.000Z | haasomeapi/dataobjects/custombots/ScriptBot.py | iamcos/haasomeapi | eac1640cc13e1e7649b8a8d6ed88184722c907c8 | [
"MIT"
] | 5 | 2018-08-25T11:48:05.000Z | 2019-12-12T19:57:20.000Z | haasomeapi/dataobjects/custombots/ScriptBot.py | iamcos/haasomeapi | eac1640cc13e1e7649b8a8d6ed88184722c907c8 | [
"MIT"
] | 6 | 2018-08-31T23:49:36.000Z | 2022-01-08T04:51:21.000Z | from typing import Dict
from typing import List
from haasomeapi.dataobjects.custombots.BaseCustomBot import BaseCustomBot
from haasomeapi.dataobjects.custombots.dataobjects.IndicatorOption import IndicatorOption
from haasomeapi.dataobjects.custombots.dataobjects.ScriptBotOrder import ScriptBotOrder
class ScriptBot(... | 30.555556 | 105 | 0.750545 | 129 | 1,375 | 8 | 0.27907 | 0.040698 | 0.150194 | 0.162791 | 0.236434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166545 | 1,375 | 44 | 106 | 31.25 | 0.900524 | 0.418909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2862e4d64497eed04f5f94d32b2828f6b7ffc9f8 | 306 | py | Python | test/redis_node.py | jbfavre/dynomite | 16316ebd317a04f282f81d84864ae83a23472007 | [
"Apache-2.0"
] | 18 | 2016-05-12T18:01:32.000Z | 2021-09-27T08:45:48.000Z | test/redis_node.py | jbfavre/dynomite | 16316ebd317a04f282f81d84864ae83a23472007 | [
"Apache-2.0"
] | null | null | null | test/redis_node.py | jbfavre/dynomite | 16316ebd317a04f282f81d84864ae83a23472007 | [
"Apache-2.0"
] | 1 | 2021-06-17T06:07:07.000Z | 2021-06-17T06:07:07.000Z | #!/usr/bin/python
import redis
from node import Node
class RedisNode(Node):
def __init__(self, host, ip, port):
super(RedisNode, self).__init__(host, ip, port)
self.name = "Redis" + self.name
def get_connection(self):
return redis.StrictRedis(self.host, self.port, db=0)
| 23.538462 | 60 | 0.663399 | 43 | 306 | 4.511628 | 0.534884 | 0.082474 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.20915 | 306 | 12 | 61 | 25.5 | 0.797521 | 0.052288 | 0 | 0 | 0 | 0 | 0.017301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
286bb810282eac89f576f313a1f10e820c1e1733 | 497 | py | Python | versions/gslversions.py | mjmottram/snoing | fc0167cb7492a47f6541f3a30691083d9ae1578d | [
"MIT"
] | null | null | null | versions/gslversions.py | mjmottram/snoing | fc0167cb7492a47f6541f3a30691083d9ae1578d | [
"MIT"
] | null | null | null | versions/gslversions.py | mjmottram/snoing | fc0167cb7492a47f6541f3a30691083d9ae1578d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# GSLVersions
#
# GSL releases: ROOT seems to require GSL 1.1
#
# Author:
# - 2015-06-05 M Mottram <m.mottram@qmul.ac.uk> first instance
#
####################################################################################################
import gsl
class Gsl116(gsl.Gsl):
""" Package for ... | 23.666667 | 100 | 0.496982 | 59 | 497 | 4.050847 | 0.677966 | 0.050209 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053269 | 0.169014 | 497 | 20 | 101 | 24.85 | 0.525424 | 0.406439 | 0 | 0 | 0 | 0 | 0.132184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 2 |
286f87c478d4969fc74057c1bb96233774f180b5 | 836 | py | Python | model.py | man4321/messenger-new | 45aa00327ddbedb7ed227b1d93a8b1f1810caa02 | [
"MIT"
] | 1 | 2020-09-09T06:03:48.000Z | 2020-09-09T06:03:48.000Z | model.py | man4321/messenger-new | 45aa00327ddbedb7ed227b1d93a8b1f1810caa02 | [
"MIT"
] | 3 | 2020-06-18T15:09:28.000Z | 2022-03-02T04:42:34.000Z | model.py | man4321/messenger-new | 45aa00327ddbedb7ed227b1d93a8b1f1810caa02 | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
from google.appengine.api import users
import webapp2
class User(ndb.Model):
firstname=ndb.StringProperty()
lastname=ndb.StringProperty()
username=ndb.StringProperty()
password=ndb.StringProperty()
email=ndb.StringProperty()
user_id=ndb.StringProperty()
cl... | 26.125 | 58 | 0.746411 | 106 | 836 | 5.754717 | 0.330189 | 0.167213 | 0.111475 | 0.137705 | 0.457377 | 0.37541 | 0.37541 | 0.314754 | 0.177049 | 0 | 0 | 0.001391 | 0.139952 | 836 | 31 | 59 | 26.967742 | 0.84701 | 0.186603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 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 | 1 | 0 | 0 | 2 |
28848f45426af5d705b77e21de5c5dbfd0c89709 | 3,979 | py | Python | sniff.py | krzys-h/http-sniff-dashboard | d19346f27dd43befae73ed11dbcf73f46c16dabd | [
"WTFPL"
] | 4 | 2016-08-22T21:55:41.000Z | 2017-08-26T09:55:15.000Z | sniff.py | krzys-h/http-sniff-dashboard | d19346f27dd43befae73ed11dbcf73f46c16dabd | [
"WTFPL"
] | null | null | null | sniff.py | krzys-h/http-sniff-dashboard | d19346f27dd43befae73ed11dbcf73f46c16dabd | [
"WTFPL"
] | null | null | null | import threading
import datetime
import re
import json
from scapy.all import *
from scapy.layers.l2 import *
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import SocketServer
from dnslib.server import DNSLogger, DNSServer
from dnslib.fixedresolver import FixedResolver
resolver = FixedResolver(". 60 ... | 27.631944 | 97 | 0.567228 | 511 | 3,979 | 4.358121 | 0.287671 | 0.024248 | 0.033678 | 0.008083 | 0.227212 | 0.12573 | 0.10238 | 0.10238 | 0.10238 | 0.10238 | 0 | 0.02481 | 0.270671 | 3,979 | 143 | 98 | 27.825175 | 0.742591 | 0 | 0 | 0.127273 | 0 | 0 | 0.102538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054545 | 0.090909 | null | null | 0.054545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
288f60690bc713d1251a7a8c2039c167ca89225f | 216 | py | Python | A2OJ-11/027_A_Petya_and_Strings.py | vendyv/A2OJ-Ladders | 5ebaf4b3322e19cab687a642bc043161d71bc5ff | [
"MIT"
] | null | null | null | A2OJ-11/027_A_Petya_and_Strings.py | vendyv/A2OJ-Ladders | 5ebaf4b3322e19cab687a642bc043161d71bc5ff | [
"MIT"
] | null | null | null | A2OJ-11/027_A_Petya_and_Strings.py | vendyv/A2OJ-Ladders | 5ebaf4b3322e19cab687a642bc043161d71bc5ff | [
"MIT"
] | null | null | null | """
27 Petya and Strings - https://codeforces.com/problemset/problem/112/A
"""
one = input().lower()
two = input().lower()
if one < two:
print("-1")
elif one > two:
print("1")
else:
print("0")
| 18 | 71 | 0.564815 | 30 | 216 | 4.066667 | 0.7 | 0.163934 | 0.180328 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047904 | 0.226852 | 216 | 11 | 72 | 19.636364 | 0.682635 | 0.324074 | 0 | 0 | 0 | 0 | 0.031496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
289761c43d301162fc76a469ea36e54f8a98e9eb | 4,006 | py | Python | chrome/common/extensions/docs/server2/future.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/common/extensions/docs/server2/future.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/common/extensions/docs/server2/future.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import sys
import traceback
_no_value = object()
def _DefaultErrorHandler(error):
raise error
def All(futures, except_pass=None, ex... | 29.895522 | 80 | 0.666251 | 576 | 4,006 | 4.505208 | 0.265625 | 0.046243 | 0.025434 | 0.024277 | 0.137958 | 0.1079 | 0.069364 | 0.04316 | 0.04316 | 0.04316 | 0 | 0.00567 | 0.251623 | 4,006 | 133 | 81 | 30.120301 | 0.859907 | 0.09336 | 0 | 0.238806 | 0 | 0 | 0.022959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.104478 | 0.044776 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
289fb708a3b4a8d0eacc737db3334f6263a8f6c4 | 88 | py | Python | swea/lv1/alphabet.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | swea/lv1/alphabet.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | swea/lv1/alphabet.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | # SWEA 2050
string = input()
for c in string:
print(ord(c) - ord("A") + 1, end=" ")
| 17.6 | 41 | 0.545455 | 15 | 88 | 3.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.238636 | 88 | 4 | 42 | 22 | 0.641791 | 0.102273 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9537a587748a16e07bb00147e1f630d3dee1f4ed | 7,042 | py | Python | 2018/23_ExperimentalEmergencyTeleportation/test_nanobots.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | 1 | 2021-01-03T23:09:28.000Z | 2021-01-03T23:09:28.000Z | 2018/23_ExperimentalEmergencyTeleportation/test_nanobots.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | 6 | 2020-12-26T21:02:42.000Z | 2020-12-26T21:02:52.000Z | 2018/23_ExperimentalEmergencyTeleportation/test_nanobots.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | null | null | null | # ======================================================================
# Experimental Emergency Teleportation
# Advent of Code 2018 Day 23 -- Eric Wastl -- https://adventofcode.com
#
# Python implementation by Dr. Dean Earl Wright III
# ======================================================================
# =====... | 38.906077 | 86 | 0.520023 | 812 | 7,042 | 4.407635 | 0.150246 | 0.184409 | 0.184409 | 0.12741 | 0.670858 | 0.541213 | 0.453758 | 0.432523 | 0.391171 | 0.274658 | 0 | 0.044339 | 0.218546 | 7,042 | 180 | 87 | 39.122222 | 0.606033 | 0.393496 | 0 | 0.065934 | 0 | 0 | 0.120525 | 0.007561 | 0 | 0 | 0 | 0 | 0.483516 | 1 | 0.076923 | false | 0.010989 | 0.032967 | 0 | 0.131868 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9539c1de135c1f35fc604f864894bcb72a662ef4 | 668 | py | Python | rouver/util.py | srittau/rouver | 29f3b9ca3e96eafc8ceb60e64c40308a5de6c9f6 | [
"MIT"
] | 1 | 2018-02-27T00:31:15.000Z | 2018-02-27T00:31:15.000Z | rouver/util.py | srittau/rouver | 29f3b9ca3e96eafc8ceb60e64c40308a5de6c9f6 | [
"MIT"
] | 69 | 2017-10-21T15:57:55.000Z | 2022-03-29T06:56:26.000Z | rouver/util.py | srittau/rouver | 29f3b9ca3e96eafc8ceb60e64c40308a5de6c9f6 | [
"MIT"
] | null | null | null | import re
from urllib.parse import quote, urljoin
from werkzeug import Request
_url_scheme_re = re.compile(r"^[a-zA-Z][a-zA-Z0-9.+-]*:")
def absolute_url(request: Request, path: str) -> str:
"""
Construct an absolute URL, using the request URL as base.
Non-printable and non-ASCII characters in the path... | 31.809524 | 69 | 0.700599 | 100 | 668 | 4.6 | 0.6 | 0.071739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003683 | 0.187126 | 668 | 20 | 70 | 33.4 | 0.843462 | 0.497006 | 0 | 0 | 0 | 0 | 0.123333 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
95524d4267035709e8eb5036fca197782013e735 | 1,560 | py | Python | analysis/legacy/plot_prob_example.py | Fizzics/desCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | 2 | 2020-02-21T16:13:37.000Z | 2020-02-21T16:26:03.000Z | analysis/legacy/plot_prob_example.py | boada/HETDEXCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | null | null | null | analysis/legacy/plot_prob_example.py | boada/HETDEXCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | null | null | null | import pylab as pyl
import h5py as hdf
import corner
### Targeted ###
################
with hdf.File('./result_targetedPerfect.hdf5', 'r') as f:
dset = f[f.keys()[0]]
#data = dset['IDX', 'HALOID', 'ZSPEC', 'M200c', 'NGAL', 'LOSVD',
# 'LOSVD_err', 'MASS', 'LOSVD_dist']
data = dset['ZSPEC', 'M200c',... | 29.433962 | 77 | 0.640385 | 262 | 1,560 | 3.751908 | 0.316794 | 0.137335 | 0.183113 | 0.192269 | 0.43235 | 0.4059 | 0.344863 | 0.342828 | 0.342828 | 0.313327 | 0 | 0.131749 | 0.109615 | 1,560 | 52 | 78 | 30 | 0.575954 | 0.119231 | 0 | 0 | 0 | 0 | 0.160954 | 0.02161 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9561aa597ebbfd59a8ed0ea18630ff1a37bab5de | 1,165 | py | Python | mozumder/models/i18n/scripts.py | mozumder/django-mozumder | 887ce303249eac2d77de062fd57023dbc4b782dd | [
"MIT"
] | 1 | 2020-06-13T06:12:16.000Z | 2020-06-13T06:12:16.000Z | mozumder/models/i18n/scripts.py | mozumder/django-mozumder | 887ce303249eac2d77de062fd57023dbc4b782dd | [
"MIT"
] | 4 | 2020-06-18T03:53:29.000Z | 2021-06-09T17:56:12.000Z | mozumder/models/i18n/scripts.py | mozumder/django-mozumder | 887ce303249eac2d77de062fd57023dbc4b782dd | [
"MIT"
] | null | null | null | from django.db import models
from datetime import date
# Create your models here.
class Script(models.Model):
"""
For the script designator, use the ISO 15924 standard, four letters with the first letter
uppercase and the last three lowercase.
"""
iso_15294 = models.CharField(max_length=4,unique=T... | 31.486486 | 93 | 0.645494 | 134 | 1,165 | 5.425373 | 0.5 | 0.103164 | 0.123796 | 0.165062 | 0.123796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025552 | 0.260944 | 1,165 | 36 | 94 | 32.361111 | 0.818815 | 0.133047 | 0 | 0.076923 | 0 | 0 | 0.062626 | 0.025253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
95679b95ec8179097748957a665cf4edeb9d8a22 | 304 | py | Python | Recipes30991/main/management/commands/getcsv.py | Dawid-WSIU-Byd/FoodSearcher-Public | ff664311ac966f37651b7ff4cfddfefa9f463234 | [
"MIT"
] | null | null | null | Recipes30991/main/management/commands/getcsv.py | Dawid-WSIU-Byd/FoodSearcher-Public | ff664311ac966f37651b7ff4cfddfefa9f463234 | [
"MIT"
] | null | null | null | Recipes30991/main/management/commands/getcsv.py | Dawid-WSIU-Byd/FoodSearcher-Public | ff664311ac966f37651b7ff4cfddfefa9f463234 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from main.views import get_csv
class Command(BaseCommand):
help = 'Gets data from CSV file'
def handle(self, *args, **options):
get_csv()
self.stdout.write(self.style.SUCCESS('Successfully imported data from CSV'))
| 27.636364 | 85 | 0.690789 | 40 | 304 | 5.2 | 0.7 | 0.057692 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 304 | 10 | 86 | 30.4 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.197279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
957aac4641307daae23ead8b0daf9e91bb61b876 | 858 | py | Python | object_detection_tutorial.py | sbrocks/SiCom | 21018f855fe3d5b032ef608026454499a74b5373 | [
"MIT"
] | null | null | null | object_detection_tutorial.py | sbrocks/SiCom | 21018f855fe3d5b032ef608026454499a74b5373 | [
"MIT"
] | null | null | null | object_detection_tutorial.py | sbrocks/SiCom | 21018f855fe3d5b032ef608026454499a74b5373 | [
"MIT"
] | null | null | null | # IMPORTS
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from collections import defaultdict
from io import StringIO
# from matplotlib import pyplot as plt ### CWH
from PIL import Image
# What model to download.
from keras.models impor... | 27.677419 | 106 | 0.789044 | 141 | 858 | 4.617021 | 0.531915 | 0.046083 | 0.039939 | 0.049155 | 0.058372 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004054 | 0.137529 | 858 | 30 | 107 | 28.6 | 0.875676 | 0.252914 | 0 | 0 | 0 | 0 | 0.160317 | 0.14127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.647059 | 0 | 0.647059 | 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 | 1 | 0 | 0 | 2 |
959cc628bda30750590e751639609285a876fa29 | 757 | py | Python | api/schemas.py | hdoupe/psl-stitch | c11bc5250aa33f37b03d9b723682b78e76dce8a3 | [
"MIT"
] | null | null | null | api/schemas.py | hdoupe/psl-stitch | c11bc5250aa33f37b03d9b723682b78e76dce8a3 | [
"MIT"
] | null | null | null | api/schemas.py | hdoupe/psl-stitch | c11bc5250aa33f37b03d9b723682b78e76dce8a3 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Optional
from pydantic import BaseModel
class AppException(BaseModel):
owner: str
title: str
msg: str
class AppResponse(BaseModel):
model_pk: Optional[int]
status: str
ready: bool
project: str
url: Optional[str]
exception: Optiona... | 15.770833 | 37 | 0.706737 | 89 | 757 | 5.910112 | 0.449438 | 0.060837 | 0.076046 | 0.087452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228534 | 757 | 47 | 38 | 16.106383 | 0.900685 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.09375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
95a7f94a2a7130236bf57afdc459e93ccf22bd8c | 2,654 | py | Python | logic/field.py | morsisko/Minesweeper | b4572f0a1c5048907a2de2449ad3ebe857f65cd5 | [
"MIT"
] | null | null | null | logic/field.py | morsisko/Minesweeper | b4572f0a1c5048907a2de2449ad3ebe857f65cd5 | [
"MIT"
] | null | null | null | logic/field.py | morsisko/Minesweeper | b4572f0a1c5048907a2de2449ad3ebe857f65cd5 | [
"MIT"
] | null | null | null | class Field:
"""Klasa reprezentująca jedno pole na planszy"""
CLOSED_STATE = 0
FLAGGED_STATE = 1
MAYBE_STATE = 2
OPENED_STATE = 3
def __init__(self, x, y):
self._x = x
self._y = y
self._mines_nearby = 0
self._is_mine = False
self._state = ... | 37.914286 | 125 | 0.602864 | 304 | 2,654 | 5.065789 | 0.259868 | 0.087662 | 0.136364 | 0.093506 | 0.621429 | 0.498052 | 0.40974 | 0.40974 | 0.377273 | 0.305844 | 0 | 0.002759 | 0.317257 | 2,654 | 70 | 126 | 37.914286 | 0.84713 | 0.30633 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309524 | false | 0 | 0 | 0.02381 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
95af6eb78c72f53f7fd8a2175c19fc18314ec25a | 235 | py | Python | setup.py | fcooper8472/UnitTestingCourse | e824f3805589d221ca8e7173b5dd290c516fad9c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | setup.py | fcooper8472/UnitTestingCourse | e824f3805589d221ca8e7173b5dd290c516fad9c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | setup.py | fcooper8472/UnitTestingCourse | e824f3805589d221ca8e7173b5dd290c516fad9c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="patient-analysis",
version='1.0',
packages=find_packages(),
install_requires=[
'matplotlib',
'numpy',
'pytest',
'yapf',
],
)
| 16.785714 | 43 | 0.565957 | 22 | 235 | 5.909091 | 0.818182 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.293617 | 235 | 13 | 44 | 18.076923 | 0.771084 | 0 | 0 | 0 | 0 | 0 | 0.187234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95b232eed99f00e999da851028e5bc73c562a8c8 | 2,673 | py | Python | apps/core/migrations/0001_initial.py | ylgnerbecton/ruby-dev-test-1 | 2f1deb21aa008b0ffeec31505460080cf89ecf2c | [
"MIT"
] | null | null | null | apps/core/migrations/0001_initial.py | ylgnerbecton/ruby-dev-test-1 | 2f1deb21aa008b0ffeec31505460080cf89ecf2c | [
"MIT"
] | null | null | null | apps/core/migrations/0001_initial.py | ylgnerbecton/ruby-dev-test-1 | 2f1deb21aa008b0ffeec31505460080cf89ecf2c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2021-01-04 18:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Directories',
fields=[
... | 43.112903 | 169 | 0.580247 | 267 | 2,673 | 5.640449 | 0.277154 | 0.087649 | 0.091633 | 0.103586 | 0.669323 | 0.669323 | 0.669323 | 0.650066 | 0.650066 | 0.650066 | 0 | 0.014576 | 0.281332 | 2,673 | 61 | 170 | 43.819672 | 0.769391 | 0.017209 | 0 | 0.518519 | 1 | 0 | 0.123429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
95cc37bd120f5786588efd8774bdeb12beef0088 | 3,067 | py | Python | backend/surveyapi/models.py | sunwenquan/iSurvey | bc14a102e56b33fb4b3612b3bef98183f6e46612 | [
"Apache-2.0"
] | null | null | null | backend/surveyapi/models.py | sunwenquan/iSurvey | bc14a102e56b33fb4b3612b3bef98183f6e46612 | [
"Apache-2.0"
] | null | null | null | backend/surveyapi/models.py | sunwenquan/iSurvey | bc14a102e56b33fb4b3612b3bef98183f6e46612 | [
"Apache-2.0"
] | null | null | null | """
models.py
定义数据库模型
- db.DateTime :在数据库模型中,有DateTime字段,该字段的值是Python 的datetime 类型。需要注意的是,我们在设置datetime时,
要做好时区的选择。
关于时间和日期的操作,请参考 iSurvey/test/time_oper.py
"""
from datetime import datetime
from flask_sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash
db = SQLAl... | 31.618557 | 83 | 0.646234 | 399 | 3,067 | 4.824561 | 0.245614 | 0.066494 | 0.083117 | 0.070649 | 0.345455 | 0.345455 | 0.345455 | 0.297143 | 0.262857 | 0.155844 | 0 | 0.006731 | 0.224976 | 3,067 | 96 | 84 | 31.947917 | 0.803113 | 0.053146 | 0 | 0.333333 | 0 | 0 | 0.058377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.111111 | 0.047619 | 0.063492 | 0.68254 | 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 | 1 | 0 | 0 | 2 |
95ce422dad0a32db39d5b8f9f3afaf5fa35f6fc0 | 152 | py | Python | yc297/1517.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc297/1517.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc297/1517.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | d = int(input())
a, b = map(int, input().split())
result = 10 ** 15
for i in range(d + 1):
result = min(result, i * a + (d - i) * b)
print(result)
| 19 | 45 | 0.532895 | 28 | 152 | 2.892857 | 0.607143 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.243421 | 152 | 7 | 46 | 21.714286 | 0.66087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95d6c56ba4d533ddd590a5912805df65f7a67ad0 | 706 | py | Python | edgetest/report.py | capitalone/edgetest | 181fbef6e22c77e8e3d22758d2d9392874aadc45 | [
"Apache-2.0"
] | 16 | 2021-12-02T21:13:59.000Z | 2022-03-29T14:04:24.000Z | edgetest/report.py | capitalone/edgetest | 181fbef6e22c77e8e3d22758d2d9392874aadc45 | [
"Apache-2.0"
] | 15 | 2021-11-29T17:58:03.000Z | 2022-03-25T21:51:16.000Z | edgetest/report.py | capitalone/edgetest | 181fbef6e22c77e8e3d22758d2d9392874aadc45 | [
"Apache-2.0"
] | 4 | 2021-12-10T18:30:15.000Z | 2022-03-25T01:47:15.000Z | """Generate rST reports."""
from typing import Any, List
from tabulate import tabulate
from .core import TestPackage
def gen_report(testers: List[TestPackage]) -> Any:
"""Generate a rST report.
Parameters
----------
testers : list
A list of ``TestPackage`` objects.
Returns
-------... | 22.774194 | 86 | 0.613314 | 79 | 706 | 5.455696 | 0.506329 | 0.051044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245042 | 706 | 30 | 87 | 23.533333 | 0.80863 | 0.223796 | 0 | 0 | 1 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.272727 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
95ee29a03d39fd0101b5c1db751982a9e874fb04 | 240 | py | Python | kaggle_petfinder/utils.py | greatestgoat/kaggle_petfinder | 54ac4e43a3442cfec5a45a0eaced2e09738b08c0 | [
"MIT"
] | 3 | 2020-12-05T15:40:37.000Z | 2021-03-14T01:48:07.000Z | kaggle_petfinder/utils.py | greatestgoat/kaggle_petfinder | 54ac4e43a3442cfec5a45a0eaced2e09738b08c0 | [
"MIT"
] | null | null | null | kaggle_petfinder/utils.py | greatestgoat/kaggle_petfinder | 54ac4e43a3442cfec5a45a0eaced2e09738b08c0 | [
"MIT"
] | 1 | 2021-01-19T22:48:06.000Z | 2021-01-19T22:48:06.000Z | import os
def is_script_running():
script_only_env_keys = {'KAGGLE_DOCKER_IMAGE', 'KAGGLE_CONTAINER_NAME'}
current_os_env = set(os.environ.keys())
is_script = script_only_env_keys.issubset(current_os_env)
return is_script
| 26.666667 | 75 | 0.766667 | 36 | 240 | 4.611111 | 0.527778 | 0.144578 | 0.156627 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141667 | 240 | 8 | 76 | 30 | 0.805825 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95f4a629cb26e2256b125c4e7cf4b276313d766a | 1,082 | py | Python | ovs/dal/hybrids/j_rolebearertoken.py | mflu/openvstorage_centos | 280a98d3e5d212d58297e0ffcecd325dfecef0f8 | [
"Apache-2.0"
] | 1 | 2015-08-29T16:36:40.000Z | 2015-08-29T16:36:40.000Z | ovs/dal/hybrids/j_rolebearertoken.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | ovs/dal/hybrids/j_rolebearertoken.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 CloudFounders NV
#
# 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 writ... | 33.8125 | 89 | 0.738447 | 143 | 1,082 | 5.545455 | 0.601399 | 0.075662 | 0.050441 | 0.040353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.179298 | 1,082 | 31 | 90 | 34.903226 | 0.884009 | 0.612754 | 0 | 0 | 0 | 0 | 0.052083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 2 |
250507ce271957dbf8fa3e4eb9c1b1228786e894 | 520 | py | Python | tests/test_core/test_part.py | MattTaylorDLS/pymalcolm | 995a8e4729bd745f8f617969111cc5a34ce1ac14 | [
"Apache-2.0"
] | null | null | null | tests/test_core/test_part.py | MattTaylorDLS/pymalcolm | 995a8e4729bd745f8f617969111cc5a34ce1ac14 | [
"Apache-2.0"
] | null | null | null | tests/test_core/test_part.py | MattTaylorDLS/pymalcolm | 995a8e4729bd745f8f617969111cc5a34ce1ac14 | [
"Apache-2.0"
] | null | null | null | import unittest
from malcolm.core import Part, method_takes, Hook
Reset = Hook()
class MyPart(Part):
@method_takes()
@Reset
def foo(self):
pass
@method_takes()
def bar(self):
pass
class TestPart(unittest.TestCase):
def test_init(self):
p = Part("name")
ass... | 17.931034 | 66 | 0.598077 | 66 | 520 | 4.560606 | 0.454545 | 0.109635 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 520 | 28 | 67 | 18.571429 | 0.792105 | 0 | 0 | 0.210526 | 0 | 0 | 0.026923 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.210526 | false | 0.105263 | 0.105263 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
250623a83494b78656981cb8aaf15988d7509614 | 746 | py | Python | tools/builder/utils.py | ownport/docker-images | 1b4c26a0cae761431cd7016863bae42c5c7529ba | [
"MIT"
] | null | null | null | tools/builder/utils.py | ownport/docker-images | 1b4c26a0cae761431cd7016863bae42c5c7529ba | [
"MIT"
] | 9 | 2020-09-02T08:12:36.000Z | 2021-01-12T04:58:03.000Z | tools/builder/utils.py | ownport/docker-images | 1b4c26a0cae761431cd7016863bae42c5c7529ba | [
"MIT"
] | null | null | null |
from builder.git import RE_MASTER_BRANCH
from builder.git import RE_DEVEL_BRANCH
from builder.git import RE_BUGFIX_BRANCH
from builder.git import RE_FEATURE_BRANCH
from builder.git import RE_EXTRACT_BRANCH_AND_NUM
def get_tag_suffix(branch:str, tag:str) -> str:
''' return a tag suffix based on branch and tag nam... | 32.434783 | 81 | 0.725201 | 111 | 746 | 4.585586 | 0.297297 | 0.141454 | 0.137525 | 0.196464 | 0.495088 | 0.220039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179625 | 746 | 22 | 82 | 33.909091 | 0.831699 | 0.064343 | 0 | 0 | 0 | 0 | 0.037956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2524b40112bc8fba27b476338728256215c3edef | 2,464 | py | Python | 13.py | drawwon/JianzhiOffer | 0a6df634dc27b3769e60d11d582ee4bf40825f1d | [
"Apache-2.0"
] | null | null | null | 13.py | drawwon/JianzhiOffer | 0a6df634dc27b3769e60d11d582ee4bf40825f1d | [
"Apache-2.0"
] | null | null | null | 13.py | drawwon/JianzhiOffer | 0a6df634dc27b3769e60d11d582ee4bf40825f1d | [
"Apache-2.0"
] | null | null | null | # # -*- coding:utf-8 -*-
# class Solution:
# def movingCount(self, threshold, rows, cols):
# # write code here
# count = 0
# if rows <= 0 or cols <= 0:
# return 0
# if threshold == 0:
# return rows * cols
# visited = [[False for i in range(cols)] for j... | 34.704225 | 113 | 0.465909 | 283 | 2,464 | 4.056537 | 0.155477 | 0.069686 | 0.08885 | 0.117596 | 0.737805 | 0.686411 | 0.60453 | 0.576655 | 0.505226 | 0.505226 | 0 | 0.025291 | 0.40625 | 2,464 | 70 | 114 | 35.2 | 0.759399 | 0.941558 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
252a6ef1c6233cdfa6759d2e48dbb73b6b7d90dd | 233 | py | Python | tests/inputs/numpy-lib/54-some-numpy-ufuncs.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 4 | 2019-10-06T18:01:24.000Z | 2020-07-03T05:27:35.000Z | tests/inputs/numpy-lib/54-some-numpy-ufuncs.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 5 | 2021-06-07T15:50:04.000Z | 2021-06-07T15:50:06.000Z | tests/inputs/numpy-lib/54-some-numpy-ufuncs.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | null | null | null | import numpy as np
lst = [[1, 3, 4], [2, 8, 9]]
a = np.size(lst)
a_ = np.array(lst).size
b = np.shape(lst)
b_ = np.array(lst).shape
c = np.ndim(lst)
c_ = np.array(lst).ndim
d = np.dtype(lst)
d_ = np.array(lst).dtype
# show_store()
| 16.642857 | 28 | 0.609442 | 49 | 233 | 2.795918 | 0.44898 | 0.20438 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031088 | 0.171674 | 233 | 13 | 29 | 17.923077 | 0.678756 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
254eb19c2e5045fa6dcddf0f963e789fd6fd2c79 | 2,393 | py | Python | admin/common_auth/models.py | DanielSBrown/osf.io | 98dda2ac237377197acacce78274bc0a4ce8f303 | [
"Apache-2.0"
] | null | null | null | admin/common_auth/models.py | DanielSBrown/osf.io | 98dda2ac237377197acacce78274bc0a4ce8f303 | [
"Apache-2.0"
] | null | null | null | admin/common_auth/models.py | DanielSBrown/osf.io | 98dda2ac237377197acacce78274bc0a4ce8f303 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import (
AbstractBaseUser,
PermissionsMixin,
BaseUserManager,
)
from django.db import models
class MyUserManager(BaseUserManager):
def create_user(self, email, password=None):
if not email:
raise ValueError('Users must have an email address')
... | 29.182927 | 96 | 0.669035 | 299 | 2,393 | 5.197324 | 0.38796 | 0.028958 | 0.06435 | 0.046332 | 0.092664 | 0.092664 | 0.092664 | 0.092664 | 0 | 0 | 0 | 0.005482 | 0.237777 | 2,393 | 81 | 97 | 29.54321 | 0.846491 | 0.055161 | 0 | 0.1 | 0 | 0 | 0.054916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.066667 | 0.05 | 0.1 | 0.583333 | 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 | 1 | 0 | 0 | 2 |
255278f462edf842a8ed2e816ef7e31cdce46b60 | 1,139 | py | Python | test.py | slang-legacy/evenLESS | 83196041c87557c3c59c53b656d69004479b2144 | [
"WTFPL"
] | null | null | null | test.py | slang-legacy/evenLESS | 83196041c87557c3c59c53b656d69004479b2144 | [
"WTFPL"
] | null | null | null | test.py | slang-legacy/evenLESS | 83196041c87557c3c59c53b656d69004479b2144 | [
"WTFPL"
] | null | null | null | #this file can be removed if you don't need to test the evenLESS compiler (nothing relies on it)
import evenless
less = """
@import "lib.css";
.border-radius (@radius: 5px) //a parametric mixin
border-radius: @radius
-moz-border-radius: @radius
color: @radius
//a comment on its own line
//an indented comment
#... | 15.60274 | 96 | 0.67252 | 156 | 1,139 | 4.903846 | 0.455128 | 0.188235 | 0.156863 | 0.137255 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0.196078 | 0 | 0 | 0.034115 | 0.176471 | 1,139 | 72 | 97 | 15.819444 | 0.78145 | 0.083407 | 0 | 0.306122 | 0 | 0 | 0.85975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040816 | null | null | 0.061224 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
256b949264751bf5733d68066f1badb8e074efc1 | 3,103 | py | Python | Ryven/custom_src/code_gen/CodeGenDialog.py | lidong1266/Ryven-Switch | 68d1f71e81d6564196f44ca49d5903f06db6a4d9 | [
"MIT"
] | 18 | 2021-01-18T09:52:41.000Z | 2022-03-22T10:48:44.000Z | Ryven/custom_src/code_gen/CodeGenDialog.py | xamofb-xsk/Ryven | 8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1 | [
"MIT"
] | null | null | null | Ryven/custom_src/code_gen/CodeGenDialog.py | xamofb-xsk/Ryven | 8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1 | [
"MIT"
] | 3 | 2021-01-18T09:49:42.000Z | 2022-03-22T10:48:47.000Z | from PySide2.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QPlainTextEdit, QShortcut, QMessageBox, QGroupBox, \
QScrollArea, QCheckBox, QLabel
class CodeGenDialog(QDialog):
def __init__(self, modules: dict, parent=None):
super(CodeGenDialog, self).__init__(parent)
self.modules = mo... | 44.328571 | 514 | 0.681276 | 359 | 3,103 | 5.668524 | 0.337047 | 0.058968 | 0.055037 | 0.063882 | 0.274693 | 0.142506 | 0.142506 | 0.09828 | 0.09828 | 0.09828 | 0 | 0.004102 | 0.214309 | 3,103 | 70 | 515 | 44.328571 | 0.830599 | 0.006445 | 0 | 0.081633 | 0 | 0.020408 | 0.207076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.632653 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
25714ed48d4fa13f4b7b4eb563597c8afc2d48b6 | 9,018 | py | Python | mysite/pages/models.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 8 | 2015-06-02T15:34:44.000Z | 2019-03-21T12:27:30.000Z | mysite/pages/models.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 761 | 2015-01-07T05:13:08.000Z | 2022-02-10T10:23:37.000Z | mysite/pages/models.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 12 | 2015-01-28T20:09:36.000Z | 2018-03-20T13:32:11.000Z | from django.db import models
from djangocms_text_ckeditor import fields
from cms.models.pluginmodel import CMSPlugin
from filer.fields.image import FilerImageField
COLOR_CHOICES = (
("bg-primary", "blue"),
("bg-danger", "red"),
("bg-success", "green"),
("bg-info", "light-blue"),
("bg-warning", "yel... | 31.978723 | 113 | 0.729763 | 1,072 | 9,018 | 6.001866 | 0.194963 | 0.083929 | 0.159465 | 0.21262 | 0.577401 | 0.542586 | 0.49285 | 0.406124 | 0.363537 | 0.318154 | 0 | 0.023424 | 0.157352 | 9,018 | 281 | 114 | 32.092527 | 0.823266 | 0.066534 | 0 | 0.298137 | 0 | 0 | 0.068885 | 0.008198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.024845 | 0 | 0.881988 | 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 | 1 | 0 | 0 | 2 |
c2502b219f05743f3cce4ca844820a1312dd7686 | 4,653 | py | Python | unit/nvim_io_spec.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | unit/nvim_io_spec.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | unit/nvim_io_spec.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | from typing import Tuple, Any
from kallikrein import k, Expectation, pending
from kallikrein.matchers.either import be_right
from amino import do, List, Right, Nil, Either
from amino.do import Do
from amino.test.spec import SpecBase
from ribosome.nvim.api.data import NvimApi, StrictNvimApi
from ribosome.nvim.io.comp... | 32.767606 | 116 | 0.574038 | 649 | 4,653 | 4.047766 | 0.1849 | 0.03426 | 0.013704 | 0.031976 | 0.379901 | 0.360868 | 0.31595 | 0.288161 | 0.208984 | 0.208984 | 0 | 0.021483 | 0.289706 | 4,653 | 141 | 117 | 33 | 0.773374 | 0.083817 | 0 | 0.355769 | 0 | 0 | 0.012598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.115385 | 0.067308 | 0.567308 | 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 | 1 | 0 | 0 | 2 |
c2555429232f9a8cda4197983694ada140157c8f | 1,198 | py | Python | pycmark_gfm/inlineparser/link_processors.py | tk0miya/pycmark-gfm | db31d034c592fa3139a7bc672b0eae7a6fefa7d9 | [
"Apache-2.0"
] | 1 | 2019-05-12T07:21:02.000Z | 2019-05-12T07:21:02.000Z | pycmark_gfm/inlineparser/link_processors.py | tk0miya/pycmark-gfm | db31d034c592fa3139a7bc672b0eae7a6fefa7d9 | [
"Apache-2.0"
] | null | null | null | pycmark_gfm/inlineparser/link_processors.py | tk0miya/pycmark-gfm | db31d034c592fa3139a7bc672b0eae7a6fefa7d9 | [
"Apache-2.0"
] | null | null | null | """
pycmark_gfm.inlineparser.link_processors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Link processor classes for InlineParser.
:copyright: Copyright 2019 by Takeshi KOMIYA
:license: Apache License 2.0, see LICENSE for details.
"""
import re
from typing import Tuple
from docutils.nodes import Ele... | 33.277778 | 95 | 0.719533 | 129 | 1,198 | 6.604651 | 0.488372 | 0.064554 | 0.080986 | 0.068075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005923 | 0.154424 | 1,198 | 35 | 96 | 34.228571 | 0.835143 | 0.222037 | 0 | 0 | 0 | 0 | 0.036504 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.444444 | 0 | 0.722222 | 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 | 1 | 0 | 0 | 2 |
c25f5fef4a70616370e8dd0de9a703dbe2d9037c | 6,772 | py | Python | agtc/code_generation/type_gens/type_gens_ops.py | PetarMihalj/AGT | 114b1f8ee5a9820ab10a375ff44254b50c018b22 | [
"MIT"
] | 10 | 2021-07-06T16:31:06.000Z | 2021-07-12T11:30:51.000Z | agtc/code_generation/type_gens/type_gens_ops.py | PetarMihalj/AGT | 114b1f8ee5a9820ab10a375ff44254b50c018b22 | [
"MIT"
] | null | null | null | agtc/code_generation/type_gens/type_gens_ops.py | PetarMihalj/AGT | 114b1f8ee5a9820ab10a375ff44254b50c018b22 | [
"MIT"
] | null | null | null | from typing import Tuple, List
from dataclasses import dataclass
from .. import inference_errors as ierr
from .. import type_system as ts
from .. import context
from ..code_blocks import Primitive
from ..type_engine import TypingContext
from . import func_methods, concrete_methods, add_method_to_list
# ------------... | 26.98008 | 107 | 0.533816 | 767 | 6,772 | 4.439374 | 0.146023 | 0.103084 | 0.123348 | 0.108076 | 0.751248 | 0.741557 | 0.685756 | 0.661087 | 0.642291 | 0.642291 | 0 | 0.013667 | 0.297696 | 6,772 | 250 | 108 | 27.088 | 0.702271 | 0.051536 | 0 | 0.62069 | 0 | 0.009852 | 0.123266 | 0.025713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054187 | false | 0 | 0.039409 | 0.024631 | 0.211823 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c26efa1d42794617b5c67d334f2e516d9553e666 | 1,450 | py | Python | app/__init__.py | TylerJang27/Pikachooze | 1497e4e5b2bb5e8136c9cfea6e13260478fe7502 | [
"MIT"
] | 2 | 2021-10-20T16:44:23.000Z | 2021-11-29T04:54:02.000Z | app/__init__.py | TylerJang27/Pikachooze | 1497e4e5b2bb5e8136c9cfea6e13260478fe7502 | [
"MIT"
] | null | null | null | app/__init__.py | TylerJang27/Pikachooze | 1497e4e5b2bb5e8136c9cfea6e13260478fe7502 | [
"MIT"
] | null | null | null | from flask import Flask
from app.config import Config
from app.db import DB
from app.models.base import login, babel
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import subprocess
from os import getcwd, path
import uuid
from app.models.trainer_pokemon import TrainerPokemon
from app.mode... | 26.851852 | 95 | 0.695862 | 207 | 1,450 | 4.7343 | 0.342995 | 0.035714 | 0.039796 | 0.040816 | 0.108163 | 0.061224 | 0.061224 | 0 | 0 | 0 | 0 | 0.001744 | 0.208966 | 1,450 | 53 | 96 | 27.358491 | 0.852659 | 0.016552 | 0 | 0 | 0 | 0 | 0.019649 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.02381 | false | 0 | 0.309524 | 0 | 0.357143 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c288b445d9effebdfee2f3b482f3af8554543ed7 | 178 | py | Python | PC/Model/add_lib_to_path.py | limvi-licef/GoalFormulationAssistanceAR | ed9c33c874a555b1b9e6638ac08d449a685488bc | [
"Apache-2.0"
] | null | null | null | PC/Model/add_lib_to_path.py | limvi-licef/GoalFormulationAssistanceAR | ed9c33c874a555b1b9e6638ac08d449a685488bc | [
"Apache-2.0"
] | null | null | null | PC/Model/add_lib_to_path.py | limvi-licef/GoalFormulationAssistanceAR | ed9c33c874a555b1b9e6638ac08d449a685488bc | [
"Apache-2.0"
] | 1 | 2020-08-14T06:40:28.000Z | 2020-08-14T06:40:28.000Z | # coding: utf-8
import sys
import os
FILE = os.path.abspath(__file__)
PATH, file = os.path.split(FILE)
PATH, contextual_assistance = os.path.split(PATH)
sys.path.append(PATH) | 16.181818 | 49 | 0.741573 | 29 | 178 | 4.37931 | 0.448276 | 0.141732 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.123596 | 178 | 11 | 50 | 16.181818 | 0.807692 | 0.073034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
c2987395b58ac18e74fc36d492ce3390722ba8ee | 571 | py | Python | Day 10-15 - Python CSV and Email/day10-working.py | sameem420/30-Days-of-Python | f74b2a02d7e13f4f686bf2f93f35039804ae26f8 | [
"MIT"
] | 1 | 2021-04-06T07:00:00.000Z | 2021-04-06T07:00:00.000Z | Day 10-15 - Python CSV and Email/day10-working.py | sameem420/30-Days-of-Python | f74b2a02d7e13f4f686bf2f93f35039804ae26f8 | [
"MIT"
] | null | null | null | Day 10-15 - Python CSV and Email/day10-working.py | sameem420/30-Days-of-Python | f74b2a02d7e13f4f686bf2f93f35039804ae26f8 | [
"MIT"
] | null | null | null | from smtplib import SMTP
host = "smtp.gmail.com"
port = 587
username = "example@gmail.com" # Your email address
password = "example" # Your password
from_email = username # email_address = username
to_list = ["example@gmail.com"] # List of users you want to send messages to.
server_connection = SMTP( host, port)
se... | 30.052632 | 78 | 0.781086 | 79 | 571 | 5.455696 | 0.518987 | 0.222738 | 0.069606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.117338 | 571 | 18 | 79 | 31.722222 | 0.849206 | 0.176883 | 0 | 0 | 0 | 0 | 0.223656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.071429 | 0 | 0.071429 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c2d7fb7560d2296d9941b4bc2b1ef33225e984df | 521 | py | Python | Rasp-main/cleanDatabase.py | ascuadrado/ISC | 0d3f623dabf40dc0057e8da0d3c75c8b2dd339e9 | [
"MIT"
] | 1 | 2020-11-18T12:22:09.000Z | 2020-11-18T12:22:09.000Z | Rasp-main/cleanDatabase.py | ascuadrado/ISC | 0d3f623dabf40dc0057e8da0d3c75c8b2dd339e9 | [
"MIT"
] | null | null | null | Rasp-main/cleanDatabase.py | ascuadrado/ISC | 0d3f623dabf40dc0057e8da0d3c75c8b2dd339e9 | [
"MIT"
] | null | null | null | import sqlite3
# File names
dbFile = 'ISC/Rasp-main/Database.db'
def clean_database():
conn = sqlite3.connect(dbFile)
c = conn.cursor()
c.execute('DELETE FROM general;', )
c.execute('DELETE FROM charger;', )
c.execute('DELETE FROM sevcon;', )
c.execute('DELETE FROM bms1;', )
c.execute('D... | 20.84 | 39 | 0.633397 | 67 | 521 | 4.776119 | 0.492537 | 0.15 | 0.2625 | 0.3375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012315 | 0.220729 | 521 | 25 | 40 | 20.84 | 0.775862 | 0.107486 | 0 | 0 | 0 | 0 | 0.309524 | 0.054113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c2e26458a9ab334aab77cd6da16c95a917948f62 | 759 | py | Python | node.py | monooso/udacity-nd256-project-four | 954b63f7bd6b04e4041b98c41895766bf67a8244 | [
"MIT"
] | 1 | 2019-08-12T14:49:15.000Z | 2019-08-12T14:49:15.000Z | node.py | monooso/udacity-nd256-project-four | 954b63f7bd6b04e4041b98c41895766bf67a8244 | [
"MIT"
] | null | null | null | node.py | monooso/udacity-nd256-project-four | 954b63f7bd6b04e4041b98c41895766bf67a8244 | [
"MIT"
] | null | null | null | class Node(object):
def __init__(self, id, x, y):
self.__id = id
self.__x = x
self.__y = y
self.reset()
@property
def id(self):
return self.__id
@property
def x(self):
return self.__x
@property
def y(self):
return self.__y
@prop... | 22.323529 | 68 | 0.562582 | 98 | 759 | 4.081633 | 0.326531 | 0.125 | 0.14 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337286 | 759 | 34 | 69 | 22.323529 | 0.795229 | 0.152833 | 0 | 0.173913 | 0 | 0 | 0.009885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0 | 0.130435 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.