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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3f055d2d43051b7e1d0b360516d537f45dd36e6 | 591 | py | Python | setup.py | goosechooser/file-manip-toolkit | 2a1a14b3e53b63ae2224e62d1a2184249e4af440 | [
"MIT"
] | null | null | null | setup.py | goosechooser/file-manip-toolkit | 2a1a14b3e53b63ae2224e62d1a2184249e4af440 | [
"MIT"
] | 3 | 2017-04-05T08:08:42.000Z | 2017-04-05T09:58:10.000Z | setup.py | goosechooser/file-manip-toolkit | 2a1a14b3e53b63ae2224e62d1a2184249e4af440 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='file-manip-toolkit',
version='1.1',
description='collection of tools for low level binary manipulations of files',
long_description=readme,
... | 24.625 | 82 | 0.641286 | 75 | 591 | 4.92 | 0.6 | 0.073171 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004396 | 0.230118 | 591 | 23 | 83 | 25.695652 | 0.806593 | 0 | 0 | 0 | 0 | 0 | 0.34687 | 0.135364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f25f5d972972cc7fc6131be78ccaf5e519a99c | 6,603 | py | Python | src/pyfinlab/backtesting.py | vishalbelsare/pyfinlab | 63c0d3f639e4cdae19096a2069967fdf7f66d8ab | [
"BSD-3-Clause"
] | 8 | 2021-07-19T21:08:26.000Z | 2021-12-04T22:10:01.000Z | src/pyfinlab/backtesting.py | vishalbelsare/pyfinlab | 63c0d3f639e4cdae19096a2069967fdf7f66d8ab | [
"BSD-3-Clause"
] | null | null | null | src/pyfinlab/backtesting.py | vishalbelsare/pyfinlab | 63c0d3f639e4cdae19096a2069967fdf7f66d8ab | [
"BSD-3-Clause"
] | 4 | 2021-07-19T21:08:37.000Z | 2021-10-05T19:34:30.000Z | import bt
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime
from pyfinlab import data_api as api
"""
These functions backtest the efficient frontier portfolios.
"""
class OrderedWeights(bt.Algo):
def __init__(self, weights):
self.target_weights = weights... | 46.174825 | 129 | 0.681508 | 827 | 6,603 | 5.360339 | 0.269649 | 0.043988 | 0.036544 | 0.027972 | 0.369501 | 0.369501 | 0.343785 | 0.343785 | 0.325739 | 0.300023 | 0 | 0.014085 | 0.215054 | 6,603 | 142 | 130 | 46.5 | 0.841212 | 0.520521 | 0 | 0 | 0 | 0 | 0.033322 | 0.00912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.383333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f2c852678fa5d35b8d2a46acf9b6507ca1bf3d | 2,318 | py | Python | sent/sentiment.py | RA-VI-RUS/senti | bccfdfe7033be263d34258b44f6527c39d857719 | [
"MIT"
] | 1 | 2016-03-25T01:57:41.000Z | 2016-03-25T01:57:41.000Z | sent/sentiment.py | RA-VI-RUS/senti | bccfdfe7033be263d34258b44f6527c39d857719 | [
"MIT"
] | null | null | null | sent/sentiment.py | RA-VI-RUS/senti | bccfdfe7033be263d34258b44f6527c39d857719 | [
"MIT"
] | null | null | null | """
Sentiment prediction module
"""
import nltk
import numpy as np
from cPickle import load
def get_word_index_array(words, word2index):
u"""
Transform the words into list of int(word index)
Note: Unknown words are dropped
>>> words = [u"I", u"love", u"you", u"RANDOM STUFF"]
>>> word2ind... | 29.341772 | 188 | 0.633305 | 353 | 2,318 | 3.988669 | 0.399433 | 0.009943 | 0.008523 | 0.036222 | 0.09517 | 0.088068 | 0 | 0 | 0 | 0 | 0 | 0.056614 | 0.230371 | 2,318 | 78 | 189 | 29.717949 | 0.732623 | 0.362381 | 0 | 0.058824 | 0 | 0.029412 | 0.134757 | 0.12813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f5715946eab9fedb592e1f0e7140af27f37fbd | 2,362 | py | Python | scripts/results-processing/generate_cmc_curves.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 12 | 2020-02-19T02:50:49.000Z | 2022-03-31T19:39:35.000Z | scripts/results-processing/generate_cmc_curves.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 68 | 2020-03-23T00:07:28.000Z | 2022-03-28T10:02:16.000Z | scripts/results-processing/generate_cmc_curves.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 3 | 2020-02-11T19:07:08.000Z | 2020-11-04T18:48:00.000Z | from pathlib import Path
import numpy as np
import pandas as pd
import torch
from matplotlib import pyplot as plt
from src.tools.metrics import evaluate
def load_dataframes(din, wildcard="*fusion*.csv"):
data = {}
for f in din.glob(wildcard):
print(f)
ref = "-".join(f.with_name("").name.spli... | 29.525 | 87 | 0.629551 | 324 | 2,362 | 4.388889 | 0.351852 | 0.049226 | 0.036568 | 0.033755 | 0.050633 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0.018448 | 0.219729 | 2,362 | 79 | 88 | 29.898734 | 0.75312 | 0.020322 | 0 | 0 | 0 | 0 | 0.132958 | 0.042876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.096774 | 0 | 0.112903 | 0.112903 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f694c253c50689ab808a6179d10da6fe162e10 | 1,615 | py | Python | calendarium/templatetags/calendarium_tags.py | Reston/django-calendarium | 7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8 | [
"MIT"
] | null | null | null | calendarium/templatetags/calendarium_tags.py | Reston/django-calendarium | 7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8 | [
"MIT"
] | null | null | null | calendarium/templatetags/calendarium_tags.py | Reston/django-calendarium | 7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8 | [
"MIT"
] | 1 | 2019-02-21T16:47:58.000Z | 2019-02-21T16:47:58.000Z | """Templatetags for the ``calendarium`` project."""
try:
from django.core.urlresolvers import reverse
except ImportError: # >= django 2.0
from django.urls import reverse
from django import template
from django.utils.timezone import datetime, now, timedelta, utc
from ..models import Event, EventCategory
regis... | 29.363636 | 74 | 0.693498 | 204 | 1,615 | 5.362745 | 0.372549 | 0.102377 | 0.062157 | 0.084095 | 0.120658 | 0.120658 | 0.071298 | 0.071298 | 0 | 0 | 0 | 0.01 | 0.195046 | 1,615 | 54 | 75 | 29.907407 | 0.831538 | 0.157895 | 0 | 0 | 0 | 0 | 0.068182 | 0.043182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f87273a6ab084e7b2486de9cda1728e1c1a45f | 9,266 | py | Python | objectModel/Python/tests/cdm/resolution_guidance/common_test.py | CBA-Consult/CDM | 892bceac7a15167c85342cc1c61d7ecdf5f1b78d | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-10-17T14:07:55.000Z | 2020-10-17T14:07:55.000Z | objectModel/Python/tests/cdm/resolution_guidance/common_test.py | CBA-Consult/CDM | 892bceac7a15167c85342cc1c61d7ecdf5f1b78d | [
"CC-BY-4.0",
"MIT"
] | 5 | 2021-07-05T15:32:15.000Z | 2022-01-04T16:51:11.000Z | objectModel/Python/tests/cdm/resolution_guidance/common_test.py | lukeenterprise/CDM | 96c1da8b4bafe132eaee7243d9b7c6e42e87fc18 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-09-24T16:51:04.000Z | 2021-09-24T16:51:04.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
import os
import unittest
from typing import TYPE_CHECKING
from cdm.enums import CdmStatusLevel
from cdm.objectmodel import CdmCorpusDefinition
from cdm.storage im... | 66.661871 | 205 | 0.745521 | 969 | 9,266 | 6.660475 | 0.136223 | 0.055779 | 0.056399 | 0.059498 | 0.60753 | 0.545708 | 0.458475 | 0.353889 | 0.353889 | 0.336226 | 0 | 0 | 0.186272 | 9,266 | 139 | 206 | 66.661871 | 0.855968 | 0.036693 | 0 | 0.216216 | 0 | 0 | 0.122584 | 0.073118 | 0 | 0 | 0 | 0 | 0.009009 | 1 | 0.009009 | false | 0 | 0.099099 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3fe9cadd102e32ca06c472d5c44ec2934c88eb6 | 4,592 | py | Python | research/cv/PGAN/src/optimizer.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/PGAN/src/optimizer.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/PGAN/src/optimizer.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | 31.027027 | 90 | 0.647213 | 509 | 4,592 | 5.644401 | 0.275049 | 0.045249 | 0.058824 | 0.027845 | 0.115211 | 0.10268 | 0.0811 | 0.0811 | 0.042464 | 0.042464 | 0 | 0.009989 | 0.236934 | 4,592 | 147 | 91 | 31.238095 | 0.809932 | 0.204486 | 0 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148649 | false | 0 | 0.067568 | 0 | 0.364865 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3fec431861c0ae27a970571bbb718d20a7f68e6 | 5,774 | py | Python | lda-training.py | Bekyilma/Personalized-Visual-Art-Recommendation | 60049ffe20302c6f510dff1dc297848e2208ec94 | [
"MIT"
] | 6 | 2020-11-30T13:34:53.000Z | 2022-01-30T16:45:34.000Z | lda-training.py | Bekyilma/Personalized-Visual-Art-Recommendation | 60049ffe20302c6f510dff1dc297848e2208ec94 | [
"MIT"
] | null | null | null | lda-training.py | Bekyilma/Personalized-Visual-Art-Recommendation | 60049ffe20302c6f510dff1dc297848e2208ec94 | [
"MIT"
] | 2 | 2020-11-30T05:38:15.000Z | 2021-08-30T20:38:57.000Z | import pandas as pd
import numpy as np
from gensim.models.wrappers import LdaMallet
from sklearn.metrics.pairwise import cosine_similarity
from gensim.corpora import Dictionary
from gensim import corpora
import pickle
import os
"""This class trains the Latent Dirichlet Allocation (LDA) Model on
painting descripti... | 41.84058 | 145 | 0.59283 | 711 | 5,774 | 4.566807 | 0.220816 | 0.02587 | 0.032338 | 0.02587 | 0.253157 | 0.209424 | 0.142901 | 0.10656 | 0.061595 | 0.061595 | 0 | 0.015175 | 0.315206 | 5,774 | 137 | 146 | 42.145985 | 0.806019 | 0.177347 | 0 | 0 | 0 | 0 | 0.106061 | 0.0662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152778 | false | 0 | 0.111111 | 0 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3fff2b8f3f509e2dc362a994e0cf8b4578c863c | 2,130 | py | Python | scripts/convert_logos.py | TechLoaf/ServerMappings | bf3a00533514c3d684a039e797debaa4432bff8f | [
"MIT"
] | 37 | 2021-11-10T22:34:26.000Z | 2022-03-28T21:21:06.000Z | scripts/convert_logos.py | TechLoaf/ServerMappings | bf3a00533514c3d684a039e797debaa4432bff8f | [
"MIT"
] | 55 | 2021-11-15T05:54:09.000Z | 2022-03-30T15:19:21.000Z | scripts/convert_logos.py | TechLoaf/ServerMappings | bf3a00533514c3d684a039e797debaa4432bff8f | [
"MIT"
] | 301 | 2021-11-12T04:22:34.000Z | 2022-03-31T09:46:04.000Z | import os
import argparse
import json
import webptools
# Grant permissions to Webptools
webptools.grant_permission()
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--servers', required=True, type=str)
parser.add_argument('--servers_logos_source', required=True, type=str)
parser.ad... | 28.4 | 74 | 0.63615 | 251 | 2,130 | 5.203187 | 0.354582 | 0.05513 | 0.065084 | 0.05513 | 0.24732 | 0.204441 | 0.185299 | 0.157734 | 0.157734 | 0.084227 | 0 | 0.005601 | 0.24554 | 2,130 | 75 | 75 | 28.4 | 0.807094 | 0.080751 | 0 | 0.076923 | 0 | 0 | 0.228996 | 0.093238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d019390c83aab6ce4e1c381cc60c695d75c0f7c | 5,396 | py | Python | __init__.py | raulbarbosa1996/CreateService | 61a5419819274d4c1c461b2e93ddbc34d5398112 | [
"Apache-2.0"
] | null | null | null | __init__.py | raulbarbosa1996/CreateService | 61a5419819274d4c1c461b2e93ddbc34d5398112 | [
"Apache-2.0"
] | null | null | null | __init__.py | raulbarbosa1996/CreateService | 61a5419819274d4c1c461b2e93ddbc34d5398112 | [
"Apache-2.0"
] | null | null | null | from mycroft import MycroftSkill, intent_file_handler
from mycroft.skills.context import adds_context, removes_context
from mycroft import intent_handler
from adapt.intent import IntentBuilder
import json
import requests
import base64
class Createservice(MycroftSkill):
def __init__(self):
MycroftSkill._... | 40.878788 | 271 | 0.662528 | 599 | 5,396 | 5.831386 | 0.248748 | 0.02004 | 0.031492 | 0.052963 | 0.569997 | 0.551388 | 0.506155 | 0.492413 | 0.476954 | 0.476954 | 0 | 0.006743 | 0.202928 | 5,396 | 131 | 272 | 41.19084 | 0.805394 | 0 | 0 | 0.363636 | 0 | 0 | 0.265987 | 0.031881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.070707 | 0.010101 | 0.20202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0269097886931199b82c35d6059adcc53136ef | 2,076 | py | Python | Public/utils.py | zouning68/ner-demo | ffdbf95fd0354766bd2f882ecb02d55a9b14b74d | [
"Apache-2.0"
] | 2 | 2020-12-27T06:17:28.000Z | 2020-12-27T06:17:33.000Z | Public/utils.py | zouning68/ner-demo | ffdbf95fd0354766bd2f882ecb02d55a9b14b74d | [
"Apache-2.0"
] | null | null | null | Public/utils.py | zouning68/ner-demo | ffdbf95fd0354766bd2f882ecb02d55a9b14b74d | [
"Apache-2.0"
] | null | null | null | import logging
import keras
import os
from Public.path import path_log_dir
def create_log(path, stream=False):
"""
获取日志对象
:param path: 日志文件路径
:param stream: 是否输出控制台
False: 不输出到控制台
True: 输出控制台,默认为输出到控制台
:return:日志对象
"""
logger = logging.getLogger()
logger... | 30.529412 | 165 | 0.601638 | 260 | 2,076 | 4.634615 | 0.303846 | 0.052282 | 0.074689 | 0.044813 | 0.301245 | 0.217427 | 0.172614 | 0.119502 | 0 | 0 | 0 | 0.001944 | 0.256744 | 2,076 | 67 | 166 | 30.985075 | 0.779002 | 0.067437 | 0 | 0.06383 | 0 | 0.042553 | 0.23393 | 0.084826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.085106 | 0 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d060b5da617547297f6d4722b0d799b84785cb9 | 9,726 | py | Python | appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 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 copy
import logging
import time
from common.pipeline_wrapper import BasePipeline
from gae_libs.http.http_client_appengine import HttpClientAppengine
... | 40.024691 | 80 | 0.709336 | 1,293 | 9,726 | 5.153906 | 0.264501 | 0.070228 | 0.013505 | 0.02521 | 0.230642 | 0.191627 | 0.125 | 0.109694 | 0.088385 | 0.066026 | 0 | 0.004816 | 0.210056 | 9,726 | 242 | 81 | 40.190083 | 0.862554 | 0.369217 | 0 | 0.104 | 0 | 0 | 0.139694 | 0.038129 | 0 | 0 | 0 | 0.004132 | 0.008 | 1 | 0.088 | false | 0.008 | 0.08 | 0.008 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0a6c7c39afb1420e793306938adb7daf4564ab | 3,253 | py | Python | pipeline.py | AngelFA04/newspapers_pipeline_scraping | 283cf7fdea283ad17a5db419bdd271ab1504feae | [
"MIT"
] | null | null | null | pipeline.py | AngelFA04/newspapers_pipeline_scraping | 283cf7fdea283ad17a5db419bdd271ab1504feae | [
"MIT"
] | null | null | null | pipeline.py | AngelFA04/newspapers_pipeline_scraping | 283cf7fdea283ad17a5db419bdd271ab1504feae | [
"MIT"
] | null | null | null | import logging
logging.basicConfig(level=logging.INFO)
import subprocess
import os
import shutil
import re
from extract.common import config_dict as config
logger = logging.getLogger(__name__)
#List of all the news websites stored in extract/config.yaml
news_sites_uids = [site for site in config()['new... | 36.144444 | 111 | 0.609284 | 431 | 3,253 | 4.392111 | 0.229698 | 0.088748 | 0.122029 | 0.05177 | 0.464871 | 0.39197 | 0.352879 | 0.329107 | 0.313788 | 0.19757 | 0 | 0.002463 | 0.251153 | 3,253 | 89 | 112 | 36.550562 | 0.774631 | 0.197049 | 0 | 0.211538 | 0 | 0 | 0.341054 | 0.114217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.019231 | 0.115385 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0b6747f2e0ed70b58670bd13ac67dc8b1e6354 | 1,149 | py | Python | setup.py | newnativeabq/mendeley-python-sdk | bbdcb3520ac23d56566407bbe3f976a097dcfa45 | [
"Apache-2.0"
] | 103 | 2015-01-12T00:40:51.000Z | 2022-03-29T07:02:06.000Z | setup.py | mnpopcenter/mendeley-python-sdk | bffd2ed5945a47f67be54049b1bac812a4bc7dfc | [
"Apache-2.0"
] | 26 | 2015-01-10T04:08:41.000Z | 2021-02-05T16:31:37.000Z | setup.py | mnpopcenter/mendeley-python-sdk | bffd2ed5945a47f67be54049b1bac812a4bc7dfc | [
"Apache-2.0"
] | 43 | 2015-03-04T18:11:06.000Z | 2022-03-13T02:33:34.000Z | from setuptools import setup
__version__ = None
with open('mendeley/version.py') as f:
exec(f.read())
setup(
name='mendeley',
version=__version__,
packages=['mendeley', 'mendeley.models', 'mendeley.resources'],
url='http://dev.mendeley.com',
license='Apache',
author='Mendeley',
author_... | 26.72093 | 70 | 0.582245 | 124 | 1,149 | 5.306452 | 0.596774 | 0.086626 | 0.113982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.256745 | 1,149 | 42 | 71 | 27.357143 | 0.737705 | 0 | 0 | 0.054054 | 0 | 0 | 0.536989 | 0.060923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0bebe5d9c8a55be30fdd8295e43dbdffe078b9 | 14,002 | py | Python | Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py | PacktPublishing/Ansible-for-Real-life-Automation | 35c0d92ea08a5dbf3bea749e1971cffabd5e6de4 | [
"MIT"
] | 7 | 2021-11-16T04:05:42.000Z | 2022-02-19T21:14:29.000Z | Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py | PacktPublishing/Ansible-for-Real-life-Automation | 35c0d92ea08a5dbf3bea749e1971cffabd5e6de4 | [
"MIT"
] | 1 | 2022-03-12T02:25:26.000Z | 2022-03-12T02:25:26.000Z | Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py | PacktPublishing/Ansible-for-Real-life-Automation | 35c0d92ea08a5dbf3bea749e1971cffabd5e6de4 | [
"MIT"
] | 1 | 2022-03-01T05:43:07.000Z | 2022-03-01T05:43:07.000Z | # Copyright [2021] [Red Hat, Inc.]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 34.318627 | 100 | 0.536638 | 1,515 | 14,002 | 4.782178 | 0.188119 | 0.028986 | 0.023188 | 0.023464 | 0.349758 | 0.244168 | 0.213803 | 0.196411 | 0.190752 | 0.184955 | 0 | 0.006787 | 0.368662 | 14,002 | 407 | 101 | 34.402948 | 0.812783 | 0.074418 | 0 | 0.384164 | 0 | 0 | 0.07414 | 0.00163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041056 | false | 0.008798 | 0.038123 | 0 | 0.096774 | 0.002933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0d8400dda85593833348d99b940ce42c8b67f1 | 10,002 | py | Python | src/mist/api/networks/models.py | cc-daveloper/mist.io_mist.api | d3f9b8d478f23bf811c0bc6d3078e512aa975f86 | [
"Apache-2.0"
] | 1 | 2019-04-10T11:37:25.000Z | 2019-04-10T11:37:25.000Z | src/mist/api/networks/models.py | d-mo/mist.api | d3f9b8d478f23bf811c0bc6d3078e512aa975f86 | [
"Apache-2.0"
] | 3 | 2021-04-07T23:15:17.000Z | 2021-09-23T23:21:45.000Z | src/mist/api/networks/models.py | cc-daveloper/mist.io_mist.api | d3f9b8d478f23bf811c0bc6d3078e512aa975f86 | [
"Apache-2.0"
] | null | null | null | import re
import uuid
import netaddr
import mongoengine as me
from mist.api.exceptions import RequiredParameterMissingError
from mist.api.clouds.models import Cloud
from mist.api.clouds.models import CLOUDS
from mist.api.networks.controllers import SubnetController
from mist.api.networks.controllers import NetworkCo... | 34.371134 | 79 | 0.59778 | 1,164 | 10,002 | 5.043814 | 0.212199 | 0.033214 | 0.009198 | 0.017033 | 0.519843 | 0.510986 | 0.449668 | 0.44047 | 0.420712 | 0.407086 | 0 | 0.004692 | 0.296841 | 10,002 | 290 | 80 | 34.489655 | 0.830087 | 0.264747 | 0 | 0.370588 | 0 | 0.011765 | 0.085225 | 0.011135 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.082353 | false | 0 | 0.052941 | 0.011765 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0e0a77100ddff32d6eea302bdb6b7fa790b104 | 2,518 | py | Python | test/std/database_test.py | cybergarage/uecho-py | 6b0dc72b9c3770d79b812bad75ea201c820b089a | [
"Apache-2.0"
] | null | null | null | test/std/database_test.py | cybergarage/uecho-py | 6b0dc72b9c3770d79b812bad75ea201c820b089a | [
"Apache-2.0"
] | null | null | null | test/std/database_test.py | cybergarage/uecho-py | 6b0dc72b9c3770d79b812bad75ea201c820b089a | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2021 Satoshi Konno. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 32.701299 | 76 | 0.67355 | 311 | 2,518 | 5.389068 | 0.363344 | 0.047733 | 0.085919 | 0.078759 | 0.429594 | 0.429594 | 0.429594 | 0.374702 | 0.257757 | 0.257757 | 0 | 0.048558 | 0.214853 | 2,518 | 76 | 77 | 33.131579 | 0.799191 | 0.227562 | 0 | 0.479167 | 0 | 0 | 0.021762 | 0 | 0 | 0 | 0.058031 | 0 | 0.291667 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d1132aa2e29241cd896c2e57d8bd511396c582a | 1,207 | py | Python | ml-agents/mlagents/trainers/tests/torch/test_layers.py | J-Travnik/ml-agents | c392380ab32bd762536a83501483dd5e7d1898c8 | [
"Apache-2.0"
] | null | null | null | ml-agents/mlagents/trainers/tests/torch/test_layers.py | J-Travnik/ml-agents | c392380ab32bd762536a83501483dd5e7d1898c8 | [
"Apache-2.0"
] | null | null | null | ml-agents/mlagents/trainers/tests/torch/test_layers.py | J-Travnik/ml-agents | c392380ab32bd762536a83501483dd5e7d1898c8 | [
"Apache-2.0"
] | null | null | null | import torch
from mlagents.trainers.torch.layers import (
Swish,
linear_layer,
lstm_layer,
Initialization,
)
def test_swish():
layer = Swish()
input_tensor = torch.Tensor([[1, 2, 3], [4, 5, 6]])
target_tensor = torch.mul(input_tensor, torch.sigmoid(input_tensor))
assert torch.all(torc... | 29.439024 | 86 | 0.664457 | 168 | 1,207 | 4.619048 | 0.285714 | 0.070876 | 0.090206 | 0.122423 | 0.469072 | 0.409794 | 0.309278 | 0.234536 | 0.234536 | 0 | 0 | 0.016807 | 0.211268 | 1,207 | 40 | 87 | 30.175 | 0.798319 | 0.023198 | 0 | 0.064516 | 0 | 0 | 0.008503 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d12b9597693069db63e21ca3c42a4f99c2c9aa0 | 11,562 | py | Python | discordbot.py | ootomo2680/discordpy-startup | 4df5f728a2b2338ac2a4a146b22787c87b4b9aae | [
"MIT"
] | null | null | null | discordbot.py | ootomo2680/discordpy-startup | 4df5f728a2b2338ac2a4a146b22787c87b4b9aae | [
"MIT"
] | null | null | null | discordbot.py | ootomo2680/discordpy-startup | 4df5f728a2b2338ac2a4a146b22787c87b4b9aae | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import os
import random
import cv2
import numpy as np
import re
import pandas as pd
import codecs as cd
token = "Njg1MTgxMTU3NTc0MzExOTc0.XmE6rg.5Gyfl0WZSsVa8UEw14qmLinQpyg"
prefix = '$'
client = discord.Client()
'''
df0 = pd.read_csv('0.csv')
df0 = pd.read_csv('0.csv')
... | 38.798658 | 180 | 0.527504 | 1,410 | 11,562 | 4.293617 | 0.243972 | 0.025438 | 0.047076 | 0.056987 | 0.366535 | 0.330525 | 0.31665 | 0.277998 | 0.260159 | 0.252725 | 0 | 0.029081 | 0.30704 | 11,562 | 297 | 181 | 38.929293 | 0.722791 | 0.034077 | 0 | 0.304878 | 0 | 0.01626 | 0.245956 | 0.15154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056911 | false | 0 | 0.036585 | 0 | 0.154472 | 0.028455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d16d0a9149a82836ebda93b94a662f0aa549423 | 1,488 | py | Python | process_msg.py | oudoubleyang/Dragalia | 01e327aed55bdf585b573862c63d013860b32444 | [
"MIT"
] | 1 | 2019-07-04T06:40:56.000Z | 2019-07-04T06:40:56.000Z | process_msg.py | oudoubleyang/Dragalia | 01e327aed55bdf585b573862c63d013860b32444 | [
"MIT"
] | 1 | 2020-01-01T19:04:56.000Z | 2020-01-01T19:04:58.000Z | process_msg.py | oudoubleyang/Dragalia | 01e327aed55bdf585b573862c63d013860b32444 | [
"MIT"
] | null | null | null | from session import dra
from info import self_id
special_ids = [
100, 1000, 10000, 100000, 1000000
]
for i in special_ids.copy():
for j in range(1, 10):
special_ids.append(i*j)
special_ids.extend([114514, 1919, 810, 1919810])
done = ['好了', '可以']
thanks = ['\u8C22', '\u5C04']
extension = {
'image... | 24 | 90 | 0.611559 | 213 | 1,488 | 4.117371 | 0.394366 | 0.047891 | 0.074116 | 0.068415 | 0.286203 | 0.236032 | 0.236032 | 0.236032 | 0.100342 | 0 | 0 | 0.049774 | 0.257392 | 1,488 | 61 | 91 | 24.393443 | 0.742986 | 0.00336 | 0 | 0.163265 | 0 | 0 | 0.095881 | 0.018231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.22449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d1aa146a37c0c8ebc3fe202336c4bbf48972e99 | 8,086 | py | Python | vframe/vframe/settings/vframe_cfg.py | kant/vframe | 28e49ca62d9036a78a25b26eb0fb7e3cf8c79031 | [
"MIT"
] | 1 | 2021-04-18T10:42:10.000Z | 2021-04-18T10:42:10.000Z | vframe/vframe/settings/vframe_cfg.py | vframeio/_vframe_v0_archived | 28e49ca62d9036a78a25b26eb0fb7e3cf8c79031 | [
"MIT"
] | null | null | null | vframe/vframe/settings/vframe_cfg.py | vframeio/_vframe_v0_archived | 28e49ca62d9036a78a25b26eb0fb7e3cf8c79031 | [
"MIT"
] | null | null | null | import os
from os.path import join
import logging
import collections
import cv2 as cv
from vframe.settings import types
from vframe.models.video_item import VideoQuality
from vframe.utils import click_utils
# -----------------------------------------------------------------------------
# Enun lists used for custom ... | 41.045685 | 137 | 0.621692 | 881 | 8,086 | 5.447219 | 0.324631 | 0.052511 | 0.071265 | 0.091061 | 0.107314 | 0.08085 | 0.027089 | 0 | 0 | 0 | 0 | 0.014253 | 0.080262 | 8,086 | 196 | 138 | 41.255102 | 0.631034 | 0.338734 | 0 | 0 | 0 | 0.009174 | 0.089314 | 0.039274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073395 | 0 | 0.073395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d1f4b2c6fa4351760dc466834cf6bd3fbffaa60 | 10,040 | py | Python | project/firewall/mainFirewall.py | flyflyinit/GUI-admin-tool | 1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6 | [
"MIT"
] | 3 | 2020-06-15T18:57:41.000Z | 2020-09-28T14:30:36.000Z | project/firewall/mainFirewall.py | flyflyinit/GUI-admin-tool | 1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6 | [
"MIT"
] | null | null | null | project/firewall/mainFirewall.py | flyflyinit/GUI-admin-tool | 1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6 | [
"MIT"
] | 1 | 2020-06-06T23:34:16.000Z | 2020-06-06T23:34:16.000Z | import qtmodern.styles
import qtmodern.windows
from project.firewall.configFirewall import CreateFwWindow, EditFwWindow, DeleteFwWindow
from project.firewall.firewallScripts import firewallGlobalInfo, setDefaultZone, defaultZone
from project.firewall.tableFirewall import *
from PyQt5 import QtCore
from PyQt5.QtWidgets... | 36.245487 | 114 | 0.668327 | 1,091 | 10,040 | 6.078827 | 0.183318 | 0.037394 | 0.004524 | 0.022618 | 0.45763 | 0.40576 | 0.398824 | 0.358866 | 0.335344 | 0.322678 | 0 | 0.018971 | 0.217729 | 10,040 | 276 | 115 | 36.376812 | 0.825439 | 0 | 0 | 0.452174 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073913 | false | 0 | 0.034783 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d20163867ce78900f3085c931841cc9a71d2294 | 20,397 | py | Python | piCamMovecpu.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | 1 | 2019-05-04T10:34:23.000Z | 2019-05-04T10:34:23.000Z | piCamMovecpu.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | 1 | 2019-04-01T08:16:05.000Z | 2019-04-01T08:16:05.000Z | piCamMovecpu.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import threading, queue, time
import picamera.array as picamarray, numpy, pathlib
import numpy.ma as nma
import png, io
from pootlestuff import watchables as wv
class piCamCPU(wv.watchablesmart):
"""
a base class for things that want to analyse images in detail for movement detection, expos... | 49.149398 | 186 | 0.566897 | 2,272 | 20,397 | 5.06118 | 0.24956 | 0.015827 | 0.017741 | 0.011131 | 0.115053 | 0.066441 | 0.04957 | 0.0447 | 0.036525 | 0.028002 | 0 | 0.017405 | 0.335245 | 20,397 | 414 | 187 | 49.268116 | 0.830666 | 0.22974 | 0 | 0.247557 | 0 | 0 | 0.070595 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 1 | 0.04886 | false | 0.009772 | 0.016287 | 0 | 0.110749 | 0.016287 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d220e80a6442156d54665ed445cceb1c31a96d2 | 6,950 | py | Python | IslanderDataPreprocessing/datacorrelation.py | Islanderrobotics/IslanderDataPreprocessing | a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2 | [
"MIT"
] | null | null | null | IslanderDataPreprocessing/datacorrelation.py | Islanderrobotics/IslanderDataPreprocessing | a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2 | [
"MIT"
] | null | null | null | IslanderDataPreprocessing/datacorrelation.py | Islanderrobotics/IslanderDataPreprocessing | a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2 | [
"MIT"
] | null | null | null | from pandas.plotting import scatter_matrix
import matplotlib.pyplot as plt
from PyQt5 import QtWidgets
import sys
from .DataVisulization import DataVisulization
class DataCorrelation:
'''this module allows you to be able to view the correlation values of your dataset
allowing you the ability to prevent simple ... | 44.551282 | 139 | 0.543453 | 832 | 6,950 | 4.497596 | 0.207933 | 0.04062 | 0.035275 | 0.037413 | 0.415019 | 0.361304 | 0.343666 | 0.343666 | 0.343666 | 0.306788 | 0 | 0.003887 | 0.370647 | 6,950 | 155 | 140 | 44.83871 | 0.851623 | 0.146906 | 0 | 0.344 | 0 | 0 | 0.215979 | 0.005326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056 | false | 0.008 | 0.04 | 0 | 0.136 | 0.104 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d235624dd54cd2de5b4269e1d88562233f30c47 | 3,460 | py | Python | data/process_data.py | Lydiafz/Udacity_DisasterPipeline | 5673530e187c679c87569e826c131c256d0b6ed3 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | data/process_data.py | Lydiafz/Udacity_DisasterPipeline | 5673530e187c679c87569e826c131c256d0b6ed3 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | data/process_data.py | Lydiafz/Udacity_DisasterPipeline | 5673530e187c679c87569e826c131c256d0b6ed3 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | import sys
import pandas as pd
import numpy as np
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
'''
Load the message and category .csv data files
Input: the filepath of the two .csv files
Output: return the two data frames
'''
messages = ... | 38.444444 | 87 | 0.656936 | 442 | 3,460 | 5.049774 | 0.357466 | 0.013441 | 0.058244 | 0.060932 | 0.037634 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0.007737 | 0.25289 | 3,460 | 90 | 88 | 38.444444 | 0.855706 | 0.292197 | 0 | 0 | 0 | 0 | 0.243539 | 0.019273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.088889 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d26941eb40fda35e6cbb0aab9a6f55f70706908 | 2,438 | py | Python | dgp/cli.py | weihaosky/dgp | b221534ea5515d03dce5c29dc6e60c1eee129785 | [
"MIT"
] | 1 | 2021-05-14T09:16:58.000Z | 2021-05-14T09:16:58.000Z | dgp/cli.py | weihaosky/dgp | b221534ea5515d03dce5c29dc6e60c1eee129785 | [
"MIT"
] | null | null | null | dgp/cli.py | weihaosky/dgp | b221534ea5515d03dce5c29dc6e60c1eee129785 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright 2019-2020 Toyota Research Institute. All rights reserved.
"""DGP command line interface
"""
import glob
import itertools
import os
import sys
from multiprocessing import Pool, cpu_count
import click
from dgp.proto.dataset_pb2 import SceneDataset
from dgp.utils.aws import (convert_ur... | 32.945946 | 108 | 0.720263 | 356 | 2,438 | 4.691011 | 0.384831 | 0.064671 | 0.076647 | 0.021557 | 0.082635 | 0.034731 | 0 | 0 | 0 | 0 | 0 | 0.011426 | 0.174323 | 2,438 | 73 | 109 | 33.39726 | 0.818182 | 0.132075 | 0 | 0.04 | 0 | 0.02 | 0.132409 | 0.013384 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.06 | false | 0.02 | 0.2 | 0 | 0.28 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d28289012166b79e101e010e38b5f25d78c2a26 | 2,124 | py | Python | app/game.py | d4glushko/task_puzzle_15 | ca308e2f07dfbe8aac50dbf3110443a274199018 | [
"MIT"
] | null | null | null | app/game.py | d4glushko/task_puzzle_15 | ca308e2f07dfbe8aac50dbf3110443a274199018 | [
"MIT"
] | null | null | null | app/game.py | d4glushko/task_puzzle_15 | ca308e2f07dfbe8aac50dbf3110443a274199018 | [
"MIT"
] | null | null | null | import curses
from app.environment import PuzzleEnvironment, PuzzleEnvironmentSettings, PuzzleAction
from app.views import TerminalView, AbstractView
from app.inputs import TerminalInput, AbstractInput
class CursesKeysWrapper:
Q = 113
ESC = 27
R = 114
W = 119
KEY_UP = curses.KEY_UP
D = 100
... | 32.181818 | 92 | 0.618644 | 231 | 2,124 | 5.484848 | 0.333333 | 0.173639 | 0.051302 | 0.078927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014976 | 0.30838 | 2,124 | 65 | 93 | 32.676923 | 0.847515 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2b6494460f181733e9edcda853c431b0c53cb5 | 443 | py | Python | template_mathing_6methods.py | dmeseguerw/ImageDetection | fd18fa81514a9745a5e3138c360b0d878f2a6606 | [
"MIT",
"Unlicense"
] | null | null | null | template_mathing_6methods.py | dmeseguerw/ImageDetection | fd18fa81514a9745a5e3138c360b0d878f2a6606 | [
"MIT",
"Unlicense"
] | null | null | null | template_mathing_6methods.py | dmeseguerw/ImageDetection | fd18fa81514a9745a5e3138c360b0d878f2a6606 | [
"MIT",
"Unlicense"
] | null | null | null | import cv2
import numpy as np
img_rgb = cv2.imread('mainimage.jpg')
img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY)
template = cv2.imread('template.jpg',0)
w, h = template.shape[::-1]
res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED)
threshold = 0.8
loc = np.where( res >= threshold)
for pt in zip(*... | 27.6875 | 70 | 0.693002 | 78 | 443 | 3.820513 | 0.487179 | 0.080537 | 0.090604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066838 | 0.121896 | 443 | 16 | 71 | 27.6875 | 0.699229 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2befe5ea7c58a4f8bc6f563a72998b31c89000 | 7,607 | py | Python | line_class.py | jackiele07/CarND-Advanced-Lane-Lines | 0ee629fbaff6db42b6cf12c90c06e0b5fabbde40 | [
"MIT"
] | null | null | null | line_class.py | jackiele07/CarND-Advanced-Lane-Lines | 0ee629fbaff6db42b6cf12c90c06e0b5fabbde40 | [
"MIT"
] | null | null | null | line_class.py | jackiele07/CarND-Advanced-Lane-Lines | 0ee629fbaff6db42b6cf12c90c06e0b5fabbde40 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from matplotlib import pyplot as plt
class window():
def __init__(self, nwindow, margin, mpixel, centroid):
self.nwindow = nwindow
self.margin = margin
self.mpixel = mpixel
self.centroid = centroid
# Function to return the point within boundarys of ... | 45.825301 | 190 | 0.593269 | 988 | 7,607 | 4.37247 | 0.20749 | 0.043981 | 0.048611 | 0.02963 | 0.271065 | 0.204398 | 0.121296 | 0.080556 | 0.052315 | 0.052315 | 0 | 0.018192 | 0.306297 | 7,607 | 165 | 191 | 46.10303 | 0.800455 | 0.180492 | 0 | 0.115044 | 0 | 0 | 0.0192 | 0 | 0 | 0 | 0 | 0.006061 | 0 | 1 | 0.053097 | false | 0.00885 | 0.026549 | 0 | 0.115044 | 0.061947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2dc51a6684f0eee600755a8aa65da621a005ab | 550 | py | Python | Learning/8.2-recursion.py | DishantIsrani/Python-Learning | f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6 | [
"MIT"
] | null | null | null | Learning/8.2-recursion.py | DishantIsrani/Python-Learning | f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6 | [
"MIT"
] | null | null | null | Learning/8.2-recursion.py | DishantIsrani/Python-Learning | f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6 | [
"MIT"
] | null | null | null | # ITERATIVE FUNCTION FOR FACTORIAL
# def factorial_iterative(n):
# fact=1
# for b in range(1, n+1):
# fact=fact*b
# return fact
# a = int(input("enter the number you want the factorial of: "))
# print(f"the factorial of {a} is {factorial_iterative(a)}")
# RECURSIVE FUNCTION FOR FACTORIAL
def ... | 20.37037 | 64 | 0.652727 | 86 | 550 | 4.116279 | 0.325581 | 0.135593 | 0.158192 | 0.129944 | 0.610169 | 0.429379 | 0.429379 | 0.429379 | 0.429379 | 0.429379 | 0 | 0.016393 | 0.223636 | 550 | 26 | 65 | 21.153846 | 0.812646 | 0.529091 | 0 | 0 | 0 | 0 | 0.378601 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2e03e276bae7527bce92f21abff29448cd794b | 5,943 | py | Python | futaba/cogs/welcome/role_reapplication.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 23 | 2018-09-17T09:06:27.000Z | 2021-05-27T15:21:37.000Z | futaba/cogs/welcome/role_reapplication.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 257 | 2018-08-18T21:27:54.000Z | 2020-12-29T23:27:10.000Z | futaba/cogs/welcome/role_reapplication.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 22 | 2018-09-09T09:03:13.000Z | 2021-11-09T03:34:34.000Z | #
# cogs/welcome/role_reapplication.py
#
# futaba - A Discord Mod bot for the Programming server
# Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5
#
# futaba is available free of charge under the terms of the MIT
# License. You are free to redistribute and/or modify it under those
# terms. It is distrib... | 33.576271 | 99 | 0.621235 | 751 | 5,943 | 4.793609 | 0.283622 | 0.025278 | 0.025 | 0.016667 | 0.183889 | 0.157222 | 0.137778 | 0.137778 | 0.092778 | 0 | 0 | 0.003969 | 0.27932 | 5,943 | 176 | 100 | 33.767045 | 0.836563 | 0.079085 | 0 | 0.184874 | 0 | 0.008403 | 0.132913 | 0.014001 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0 | 0.067227 | 0 | 0.184874 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2e1a90ddfac3c804d234d5ca9b2888a866f064 | 9,292 | py | Python | app/common/util.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 18 | 2020-01-31T11:19:28.000Z | 2022-01-05T08:58:51.000Z | app/common/util.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 103 | 2019-12-11T11:35:01.000Z | 2022-03-01T21:10:50.000Z | app/common/util.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 6 | 2020-12-06T14:53:43.000Z | 2021-04-18T18:09:29.000Z | import logging
from dataclasses import dataclass
from typing import List, Union, Dict, Any, Tuple
from lxml import etree
@dataclass
class Feature:
id: str
tags: Dict[str, Any]
geojson_geometry: Dict[str, Any]
def to_geojson_dict(features: List[Feature]) -> Dict[str, Any]:
results = {
'type':... | 34.287823 | 133 | 0.62344 | 1,136 | 9,292 | 4.898768 | 0.138204 | 0.033423 | 0.021563 | 0.022642 | 0.35867 | 0.296316 | 0.256963 | 0.23522 | 0.17628 | 0.156873 | 0 | 0.002768 | 0.2613 | 9,292 | 270 | 134 | 34.414815 | 0.807984 | 0.015497 | 0 | 0.2891 | 0 | 0 | 0.0787 | 0.002627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066351 | false | 0 | 0.018957 | 0.014218 | 0.322275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d30e5200b0df52892d77fbbb3bc4df9f13ca5c1 | 477 | py | Python | Infra/Library/Uteis.py | buenex/Desafio-Nilo | 64a4452e847020d54eb4b0d5ab7bbc86c1afa546 | [
"MIT"
] | null | null | null | Infra/Library/Uteis.py | buenex/Desafio-Nilo | 64a4452e847020d54eb4b0d5ab7bbc86c1afa546 | [
"MIT"
] | null | null | null | Infra/Library/Uteis.py | buenex/Desafio-Nilo | 64a4452e847020d54eb4b0d5ab7bbc86c1afa546 | [
"MIT"
] | null | null | null | import random
class Uteis():
def gerar_nome(self,length):
letters ="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
result = ""
for n in range(int(length)):
result += letters[random.randint(0,len(letters)-1)]
return result
def gerar_email(self):
... | 31.8 | 87 | 0.616352 | 52 | 477 | 5.596154 | 0.576923 | 0.054983 | 0.09622 | 0.116838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013812 | 0.24109 | 477 | 15 | 88 | 31.8 | 0.790055 | 0 | 0 | 0.166667 | 0 | 0 | 0.16318 | 0.108787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d3a6948bd5e57b6f976e39bbd2a75b6e3d5c0bc | 25,302 | py | Python | src/olympia/blocklist/tests/test_views.py | jpetto/olympia | f4e9badac9634657068dfbd4733ab5d17798e3f6 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/blocklist/tests/test_views.py | jpetto/olympia | f4e9badac9634657068dfbd4733ab5d17798e3f6 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/blocklist/tests/test_views.py | jpetto/olympia | f4e9badac9634657068dfbd4733ab5d17798e3f6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import base64
from datetime import datetime
from xml.dom import minidom
from django.conf import settings
from django.core.cache import cache
from nose.tools import eq_, ok_
from olympia import amo
from olympia.amo.tests import TestCase
from olympia.amo.urlresolvers import reverse
from olympia... | 40.41853 | 79 | 0.624891 | 2,968 | 25,302 | 5.198787 | 0.109501 | 0.023137 | 0.036293 | 0.016332 | 0.551977 | 0.490149 | 0.421646 | 0.378483 | 0.324498 | 0.302981 | 0 | 0.016569 | 0.229547 | 25,302 | 625 | 80 | 40.4832 | 0.774341 | 0.034266 | 0 | 0.326489 | 0 | 0 | 0.111298 | 0.00295 | 0 | 0 | 0 | 0 | 0.098563 | 1 | 0.143737 | false | 0 | 0.020534 | 0.00616 | 0.195072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d3cd024737891057712136d2e705890110f9afe | 4,896 | py | Python | tools/generate_pseudo_label.py | Jmq14/FCOS | 5b9b7c2757584b323545988838d020f5b2b9f002 | [
"BSD-2-Clause"
] | null | null | null | tools/generate_pseudo_label.py | Jmq14/FCOS | 5b9b7c2757584b323545988838d020f5b2b9f002 | [
"BSD-2-Clause"
] | null | null | null | tools/generate_pseudo_label.py | Jmq14/FCOS | 5b9b7c2757584b323545988838d020f5b2b9f002 | [
"BSD-2-Clause"
] | 1 | 2020-04-14T07:19:16.000Z | 2020-04-14T07:19:16.000Z | import os
import numpy as np
from pycocotools.coco import COCO
import cv2
from tqdm import tqdm
import argparse
import json
import torch
from fcos_core.structures.bounding_box import BoxList
from fcos_core.structures.boxlist_ops import boxlist_iou
def generate_pseudo_label_with_confidence_score(boxes, image_id, sco... | 35.478261 | 201 | 0.646446 | 621 | 4,896 | 4.872786 | 0.268921 | 0.047588 | 0.013219 | 0.014871 | 0.130205 | 0.093853 | 0.048249 | 0 | 0 | 0 | 0 | 0.04852 | 0.233864 | 4,896 | 138 | 202 | 35.478261 | 0.758198 | 0.102328 | 0 | 0 | 0 | 0 | 0.118358 | 0.037628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.010204 | 0.102041 | 0 | 0.163265 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d3d92d541909aa34760d1f3e45a73e1d7ed39b8 | 6,562 | py | Python | Learn_matplotlib.py | maufia/MyPyCourse | 5818182992f93745bee4904768442e99837e6d61 | [
"MIT"
] | null | null | null | Learn_matplotlib.py | maufia/MyPyCourse | 5818182992f93745bee4904768442e99837e6d61 | [
"MIT"
] | null | null | null | Learn_matplotlib.py | maufia/MyPyCourse | 5818182992f93745bee4904768442e99837e6d61 | [
"MIT"
] | null | null | null | """Learn matplotlib"""
import os
import easygui as eg
import csv
import matplotlib.pyplot as plt
TITLE = """Learn - Matplotlib """
def select_file() -> str:
"""Use EasyGUI to select a function"""
current_directory = os.path.join(os.getcwd(), 'Data')
selected_file = eg.fileopenbox(title=f'{TITLE}: Open... | 31.247619 | 86 | 0.585949 | 853 | 6,562 | 4.390387 | 0.28136 | 0.053405 | 0.021362 | 0.024032 | 0.136716 | 0.086782 | 0.086782 | 0.063551 | 0.063551 | 0.063551 | 0 | 0.012454 | 0.253581 | 6,562 | 209 | 87 | 31.397129 | 0.752144 | 0.161384 | 0 | 0.106061 | 0 | 0 | 0.18857 | 0.0121 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.090909 | false | 0.015152 | 0.045455 | 0 | 0.19697 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d3f8a189f427be39fe163edc538d242e89521a0 | 2,970 | py | Python | docker/dstat/plugins/dstat_nfsstat4.py | hzy9819/GreenPlum_WooKongDB | 9dca9b3bcd15f29b2a0136acc818064222220059 | [
"PostgreSQL",
"Apache-2.0"
] | 34 | 2021-01-18T14:25:24.000Z | 2021-06-05T03:21:10.000Z | docker/dstat/plugins/dstat_nfsstat4.py | hzy9819/GreenPlum_WooKongDB | 9dca9b3bcd15f29b2a0136acc818064222220059 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | docker/dstat/plugins/dstat_nfsstat4.py | hzy9819/GreenPlum_WooKongDB | 9dca9b3bcd15f29b2a0136acc818064222220059 | [
"PostgreSQL",
"Apache-2.0"
] | 2 | 2021-04-20T20:11:08.000Z | 2021-06-02T02:56:16.000Z | ### Author: Adam Michel <elfurbe@furbism.com>
### Based on work by: Dag Wieers <dag@wieers.com>
class dstat_plugin(dstat):
def __init__(self):
self.name = 'nfs4 client'
# this vars/nick pair is the ones I considered relevant. Any set of the full list would work.
self.vars = ('read', 'write'... | 56.037736 | 162 | 0.545455 | 359 | 2,970 | 4.451253 | 0.554318 | 0.020025 | 0.015019 | 0.021277 | 0.330413 | 0.330413 | 0.305382 | 0.305382 | 0.305382 | 0.305382 | 0 | 0.011374 | 0.259933 | 2,970 | 52 | 163 | 57.115385 | 0.715651 | 0.412458 | 0 | 0 | 0 | 0 | 0.277003 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4017e7261ae361b154fa97a6f870b3295280f2 | 1,873 | py | Python | astropyp/instruments/decam/pipeline.py | fred3m/astropyp | 414c9e6d84da2604c6466b2046827d8b1988edab | [
"BSD-3-Clause"
] | 8 | 2016-04-28T22:19:22.000Z | 2022-03-14T04:22:00.000Z | astropyp/instruments/decam/pipeline.py | fred3m/astropyp | 414c9e6d84da2604c6466b2046827d8b1988edab | [
"BSD-3-Clause"
] | null | null | null | astropyp/instruments/decam/pipeline.py | fred3m/astropyp | 414c9e6d84da2604c6466b2046827d8b1988edab | [
"BSD-3-Clause"
] | null | null | null | import datapyp
import warnings
import os
class DecamPipeError(Exception):
pass
class Pipeline(datapyp.core.Pipeline):
def __init__(self, **kwargs):
from datapyp.utils import get_bool
# Make sure that the user included a dictionary of paths to initialize the pipeline
if 'paths' not in k... | 49.289474 | 102 | 0.555259 | 216 | 1,873 | 4.731481 | 0.412037 | 0.054795 | 0.064579 | 0.062622 | 0.142857 | 0.09002 | 0.09002 | 0.09002 | 0 | 0 | 0 | 0.004105 | 0.349706 | 1,873 | 38 | 103 | 49.289474 | 0.834975 | 0.059797 | 0 | 0.117647 | 0 | 0 | 0.283115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.029412 | 0.147059 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d409d33559b4a6519981780018a2f54e1281d04 | 3,487 | py | Python | powerlaw.py | AlexanderDavid/Powerlaw-Highway-Env | e3e3b6277e0a75e4dcbc7988a9cb144137328d22 | [
"MIT"
] | null | null | null | powerlaw.py | AlexanderDavid/Powerlaw-Highway-Env | e3e3b6277e0a75e4dcbc7988a9cb144137328d22 | [
"MIT"
] | null | null | null | powerlaw.py | AlexanderDavid/Powerlaw-Highway-Env | e3e3b6277e0a75e4dcbc7988a9cb144137328d22 | [
"MIT"
] | null | null | null | import gym
import highway_env
from agent import Agent
import pandas as pd
import numpy as np
env = gym.make("highway-v0")
done = False
# Notes
# Action space between 0 and 4 inclusive
# 0 is merge left
# 1 is do nothing
# 2 is merge right
# 3 is speed up
# 4 is slow down
#
## Obs space is a 5x5 matrix with values be... | 28.120968 | 167 | 0.53341 | 517 | 3,487 | 3.462282 | 0.237911 | 0.046927 | 0.026816 | 0.01676 | 0.297765 | 0.184916 | 0.140782 | 0.140782 | 0.140782 | 0.140782 | 0 | 0.045056 | 0.31259 | 3,487 | 123 | 168 | 28.349594 | 0.70171 | 0.241468 | 0 | 0.296296 | 0 | 0.024691 | 0.116788 | 0.049174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012346 | false | 0 | 0.061728 | 0.012346 | 0.08642 | 0.08642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d41975bab1b82a3f84cbeb994a57f4874792563 | 849 | py | Python | terraform/module/lambda/src/timestream_data_writer.py | Jimon-s/terraform-example-timestream | f24b3d5feb1d497374c52bff64308a296a01d158 | [
"MIT"
] | 1 | 2021-09-12T08:54:48.000Z | 2021-09-12T08:54:48.000Z | terraform/module/lambda/src/timestream_data_writer.py | Jimon-s/terraform-example-timestream | f24b3d5feb1d497374c52bff64308a296a01d158 | [
"MIT"
] | null | null | null | terraform/module/lambda/src/timestream_data_writer.py | Jimon-s/terraform-example-timestream | f24b3d5feb1d497374c52bff64308a296a01d158 | [
"MIT"
] | null | null | null | from typing import List
class TimeStreamDataWriter:
def __init__(self, client) -> None:
self.client = client
def write_records(self, database_name: str, table_name: str, records: List[dict], common_attributes: List[dict] = None,):
if self.client is None:
raise Exception('client i... | 30.321429 | 125 | 0.580683 | 82 | 849 | 5.817073 | 0.390244 | 0.104822 | 0.075472 | 0.096436 | 0.301887 | 0.301887 | 0.301887 | 0.301887 | 0.301887 | 0.301887 | 0 | 0 | 0.353357 | 849 | 27 | 126 | 31.444444 | 0.868852 | 0 | 0 | 0.454545 | 0 | 0 | 0.020024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d43fd7c79d6110719d20a77a2cbf996accb638e | 4,015 | py | Python | zodiacy/cli.py | greenify/zodiacy | faf46a10b9b70869cb4caca02027921f1418cfcf | [
"MIT"
] | 1 | 2015-10-16T10:24:53.000Z | 2015-10-16T10:24:53.000Z | zodiacy/cli.py | greenify/zodiacy | faf46a10b9b70869cb4caca02027921f1418cfcf | [
"MIT"
] | null | null | null | zodiacy/cli.py | greenify/zodiacy | faf46a10b9b70869cb4caca02027921f1418cfcf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# encoding: utf-8
import argparse
import sqlite3
from os import path
from .wrapper import wrap_calls, wrap_corpus
import signal
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
"""generate_horoscope.py: Generates horoscopes based provided corpuses"""
__author__ = "Project Zodiacy"
__copyright__ =... | 46.149425 | 104 | 0.644583 | 499 | 4,015 | 4.985972 | 0.330661 | 0.065113 | 0.12299 | 0.030547 | 0.198955 | 0.148714 | 0.089228 | 0.063505 | 0.063505 | 0.063505 | 0 | 0.01198 | 0.209963 | 4,015 | 86 | 105 | 46.686047 | 0.772383 | 0.009215 | 0 | 0.030769 | 0 | 0 | 0.358955 | 0.022291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.076923 | 0 | 0.123077 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4642e8f398da24a0527a67fb597113262e14dc | 732 | py | Python | ioloop-futures/future_done_callback.py | psuresh39/async-design-patterns | f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9 | [
"Apache-2.0"
] | 3 | 2021-02-25T22:20:07.000Z | 2021-07-02T09:43:07.000Z | ioloop-futures/future_done_callback.py | psuresh39/async-design-patterns | f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9 | [
"Apache-2.0"
] | null | null | null | ioloop-futures/future_done_callback.py | psuresh39/async-design-patterns | f514edaf2b11ecf34b5b8dc2f237b869aa4ff1b9 | [
"Apache-2.0"
] | 2 | 2021-01-27T08:44:31.000Z | 2021-05-31T16:36:34.000Z | __author__ = 'psuresh'
import asyncio
@asyncio.coroutine
def slow_operation(future):
print("inside task")
yield from asyncio.sleep(1)
print("task done")
future.set_result('Future is done!')
def got_result(future):
print("inside callback")
print(future.result())
loop.stop()
loop = async... | 18.3 | 45 | 0.695355 | 91 | 732 | 5.406593 | 0.417582 | 0.067073 | 0.077236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001608 | 0.150273 | 732 | 39 | 46 | 18.769231 | 0.789389 | 0.213115 | 0 | 0 | 0 | 0 | 0.157244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.136364 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4a0bcb9c1a2d9b83eb8672bd2a88bd3b493c65 | 6,555 | py | Python | resources.py | cozhiv/tokenauthentication | c6fec21134d55177b99b23dfe21a89d23eda8394 | [
"MIT"
] | null | null | null | resources.py | cozhiv/tokenauthentication | c6fec21134d55177b99b23dfe21a89d23eda8394 | [
"MIT"
] | null | null | null | resources.py | cozhiv/tokenauthentication | c6fec21134d55177b99b23dfe21a89d23eda8394 | [
"MIT"
] | null | null | null | from flask_restful import Resource, reqparse
from models import UserModel, RevokedTokenModel, PortfolioModel
from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt, get_jwt_claims)
import json
from flask import request
parser = ... | 35.625 | 163 | 0.633562 | 736 | 6,555 | 5.400815 | 0.179348 | 0.088553 | 0.048302 | 0.033459 | 0.613836 | 0.604277 | 0.528553 | 0.471698 | 0.444025 | 0.416855 | 0 | 0.003309 | 0.262243 | 6,555 | 183 | 164 | 35.819672 | 0.818652 | 0.049428 | 0 | 0.517241 | 0 | 0 | 0.133901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.027586 | 0.034483 | 0.02069 | 0.358621 | 0.02069 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4a1b0bb0e6cd8b58de78b8042c2fe98a20bb35 | 1,164 | py | Python | src/data/get_raw_data.py | oscarv17/titanic-disaster-project | b3663c6e02ca2796dd982e0b6fe624968a935963 | [
"MIT"
] | null | null | null | src/data/get_raw_data.py | oscarv17/titanic-disaster-project | b3663c6e02ca2796dd982e0b6fe624968a935963 | [
"MIT"
] | null | null | null | src/data/get_raw_data.py | oscarv17/titanic-disaster-project | b3663c6e02ca2796dd982e0b6fe624968a935963 | [
"MIT"
] | null | null | null | import os
import kaggle
from dotenv import find_dotenv, load_dotenv
import logging
# setting credentials
os.system('set KAGGLE_USERNAME =' + os.environ.get('kaggle_username'))
os.system('set KAGGLE_KEY =' + os.environ.get('kaggle_key'))
# function to extract the data
def extractData(path):
os.syste... | 29.846154 | 87 | 0.671821 | 155 | 1,164 | 4.832258 | 0.380645 | 0.042724 | 0.056075 | 0.053405 | 0.186916 | 0.144192 | 0.144192 | 0.144192 | 0.144192 | 0 | 0 | 0 | 0.207904 | 1,164 | 38 | 88 | 30.631579 | 0.812364 | 0.093643 | 0 | 0 | 0 | 0 | 0.284158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4b25fdee1ba1da4de6a0ee18903a26769fc38d | 4,031 | py | Python | 4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py | moni2096/Data-Engineering-Nanodegree---Udacity | 6202a535ebc5ff95921ce56d37f8116e3e961a3b | [
"MIT"
] | 4 | 2021-07-02T06:17:53.000Z | 2022-01-31T19:54:20.000Z | 4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py | moni2096/Data-Engineering-Nanodegree-Udacity | 6202a535ebc5ff95921ce56d37f8116e3e961a3b | [
"MIT"
] | null | null | null | 4. Data Pipelines with Airflow/dags/sparkify_dend_dag.py | moni2096/Data-Engineering-Nanodegree-Udacity | 6202a535ebc5ff95921ce56d37f8116e3e961a3b | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import os
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators import (StageToRedshiftOperator, LoadFactOperator,
LoadDimensionOperator, DataQualityOperator)
from helpers import SqlQueries
def... | 30.537879 | 110 | 0.73034 | 500 | 4,031 | 5.492 | 0.206 | 0.066278 | 0.040787 | 0.064093 | 0.50874 | 0.44756 | 0.231245 | 0.152221 | 0.110706 | 0.110706 | 0 | 0.005711 | 0.174646 | 4,031 | 132 | 111 | 30.537879 | 0.819657 | 0.028281 | 0 | 0.224299 | 0 | 0 | 0.242331 | 0.02684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056075 | 0 | 0.056075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4cf8e51d0fbaf6857ed11d10bfb09f5a4b1db4 | 3,151 | py | Python | Mnist_conv.py | yashchandak/TensorFlow-fun | d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d | [
"MIT"
] | null | null | null | Mnist_conv.py | yashchandak/TensorFlow-fun | d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d | [
"MIT"
] | null | null | null | Mnist_conv.py | yashchandak/TensorFlow-fun | d2ec9c6eb52c5d92f417c62f99bc3e9385d43f0d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 6 15:11:12 2016
@author: yash
"""
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot = True)
sess = tf.InteractiveSession()
"""
Convolutional Neural Net
"""
def weight_variable(... | 31.828283 | 89 | 0.698508 | 516 | 3,151 | 4.079457 | 0.348837 | 0.013302 | 0.014252 | 0.031354 | 0.070309 | 0.029454 | 0 | 0 | 0 | 0 | 0 | 0.062074 | 0.161536 | 3,151 | 99 | 90 | 31.828283 | 0.734671 | 0.161853 | 0 | 0.036364 | 0 | 0 | 0.023589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.036364 | 0.036364 | 0.218182 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d4de2f63adc59698f65d7e1665d7fdff8be3785 | 5,036 | py | Python | models.py | AnselCmy/MetaR | 47897ef0268b2c6c00e211be26a983d201e54565 | [
"Apache-2.0"
] | 84 | 2019-09-17T03:21:30.000Z | 2022-03-18T12:28:59.000Z | models.py | zjukg/MetaR | 47897ef0268b2c6c00e211be26a983d201e54565 | [
"Apache-2.0"
] | 4 | 2019-09-16T06:30:04.000Z | 2022-01-02T12:26:03.000Z | models.py | zjukg/MetaR | 47897ef0268b2c6c00e211be26a983d201e54565 | [
"Apache-2.0"
] | 10 | 2019-09-24T01:23:18.000Z | 2021-08-09T03:00:00.000Z | from embedding import *
from collections import OrderedDict
import torch
class RelationMetaLearner(nn.Module):
def __init__(self, few, embed_size=100, num_hidden1=500, num_hidden2=200, out_size=100, dropout_p=0.5):
super(RelationMetaLearner, self).__init__()
self.embed_size = embed_size
se... | 39.653543 | 112 | 0.578832 | 657 | 5,036 | 4.193303 | 0.217656 | 0.033031 | 0.026134 | 0.021779 | 0.339746 | 0.262069 | 0.201815 | 0.15245 | 0.128494 | 0.08784 | 0 | 0.029121 | 0.297657 | 5,036 | 126 | 113 | 39.968254 | 0.749788 | 0.060763 | 0 | 0.14433 | 0 | 0 | 0.022467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072165 | false | 0 | 0.030928 | 0 | 0.175258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d5363097e402538bc42aa0b70cfd1c02f3ca6fb | 2,526 | py | Python | tests/apps/courses/test_models_subject.py | sampaccoud/richie | 3d222aedab0636a84011dced568c5dcd48fc5b15 | [
"MIT"
] | null | null | null | tests/apps/courses/test_models_subject.py | sampaccoud/richie | 3d222aedab0636a84011dced568c5dcd48fc5b15 | [
"MIT"
] | null | null | null | tests/apps/courses/test_models_subject.py | sampaccoud/richie | 3d222aedab0636a84011dced568c5dcd48fc5b15 | [
"MIT"
] | null | null | null | """
Unit tests for the Subject model
"""
from django.test import TestCase
from cms.api import create_page
from richie.apps.courses.factories import CourseFactory, SubjectFactory
from richie.apps.courses.models import Subject
class SubjectTestCase(TestCase):
"""
Unit test suite to validate the behavior of th... | 38.272727 | 95 | 0.684481 | 307 | 2,526 | 5.521173 | 0.335505 | 0.056637 | 0.053097 | 0.056637 | 0.183481 | 0.183481 | 0.098525 | 0.098525 | 0.068437 | 0 | 0 | 0.010881 | 0.235946 | 2,526 | 65 | 96 | 38.861538 | 0.867358 | 0.332542 | 0 | 0.137931 | 0 | 0 | 0.034221 | 0.019645 | 0 | 0 | 0 | 0 | 0.241379 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d53e547415669e075a1146807e89c0b079587f0 | 2,935 | py | Python | Scripts/main.py | MainDuelo/Python-Tkinter-and-SQLite | 7f69780ce9c1c8ebe807197448030aed94c3a082 | [
"MIT"
] | null | null | null | Scripts/main.py | MainDuelo/Python-Tkinter-and-SQLite | 7f69780ce9c1c8ebe807197448030aed94c3a082 | [
"MIT"
] | null | null | null | Scripts/main.py | MainDuelo/Python-Tkinter-and-SQLite | 7f69780ce9c1c8ebe807197448030aed94c3a082 | [
"MIT"
] | null | null | null | from Scripts.bank.bankController import BankController
from tkinter import ttk, Tk, Button, Label, END
from tkinter.scrolledtext import ScrolledText
from Scripts.support.textManipulation import TextManipulation
MAROON = "#800000"
WHITE = "#FFFFFF"
VALUES = "values"
class Main:
def __init__(self):
BankCon... | 40.763889 | 183 | 0.696763 | 339 | 2,935 | 5.955752 | 0.283186 | 0.026746 | 0.0421 | 0.047053 | 0.309559 | 0.161466 | 0.099059 | 0 | 0 | 0 | 0 | 0.05124 | 0.175468 | 2,935 | 72 | 184 | 40.763889 | 0.783058 | 0 | 0 | 0.057692 | 0 | 0 | 0.055858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d55e3cd7ef5d22859ae8f2c2273a0f46b67eba4 | 1,651 | py | Python | python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py | vhnatyk/vlsistuff | 0981097bd19a0c482728dcc5048a3615ac9a9a90 | [
"MIT"
] | 26 | 2018-03-17T18:14:22.000Z | 2022-03-14T07:23:13.000Z | python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py | psumesh/vlsistuff | 1fe64b093d0581d99c7d826b74c31b8655fa0b31 | [
"MIT"
] | 1 | 2019-10-16T10:31:11.000Z | 2019-10-17T04:14:53.000Z | python-verilog/examples_py3/faulted_sqrt/learn_sql/create_table.py | psumesh/vlsistuff | 1fe64b093d0581d99c7d826b74c31b8655fa0b31 | [
"MIT"
] | 7 | 2018-07-16T07:51:25.000Z | 2022-02-15T14:22:54.000Z | #! /usr/bin/env python3
import os,sys,string
import sqlite3
from sqlite3 import Error
def create_connection(path):
connection = None
try:
connection = sqlite3.connect(path)
print("Connection to SQLite DB successful")
except Error as e:
print(f"The error '{e}' occurred")
ret... | 22.930556 | 158 | 0.615385 | 198 | 1,651 | 5.035354 | 0.409091 | 0.060181 | 0.039117 | 0.042126 | 0.195587 | 0.195587 | 0.111334 | 0.111334 | 0.111334 | 0.111334 | 0 | 0.009106 | 0.268322 | 1,651 | 71 | 159 | 23.253521 | 0.816225 | 0.013325 | 0 | 0.240741 | 0 | 0.018519 | 0.275184 | 0.028256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.018519 | 0.055556 | 0 | 0.166667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d568baa19ca1079cc5a15acbd9559b0d736935c | 1,836 | py | Python | cq_editor/icons.py | possibilities/CQ-editor | dc950180b365ae39840f6787c8f5a061492734ed | [
"Apache-2.0"
] | 351 | 2018-06-08T14:36:35.000Z | 2022-03-29T22:03:04.000Z | cq_editor/icons.py | possibilities/CQ-editor | dc950180b365ae39840f6787c8f5a061492734ed | [
"Apache-2.0"
] | 315 | 2018-06-08T14:35:08.000Z | 2022-03-31T15:45:27.000Z | cq_editor/icons.py | possibilities/CQ-editor | dc950180b365ae39840f6787c8f5a061492734ed | [
"Apache-2.0"
] | 71 | 2018-06-19T02:00:24.000Z | 2022-03-25T08:55:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 25 14:47:10 2018
@author: adam
"""
from PyQt5.QtGui import QIcon
from . import icons_res
_icons = {
'app' : QIcon(":/images/icons/cadquery_logo_dark.svg")
}
import qtawesome as qta
_icons_specs = {
'new' : (('fa.file-o',),{}),
'... | 31.118644 | 158 | 0.421024 | 196 | 1,836 | 3.841837 | 0.433673 | 0.131474 | 0.12749 | 0.103586 | 0.158035 | 0.106242 | 0.106242 | 0.061089 | 0.061089 | 0 | 0 | 0.044971 | 0.333878 | 1,836 | 59 | 159 | 31.118644 | 0.570728 | 0.064815 | 0 | 0.162791 | 0 | 0 | 0.294496 | 0.021663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d5780d158839c24f720b62513828f2502747533 | 493 | py | Python | Exercicios/ex100.py | mauriciozago/CursoPython3 | cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5 | [
"MIT"
] | null | null | null | Exercicios/ex100.py | mauriciozago/CursoPython3 | cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5 | [
"MIT"
] | null | null | null | Exercicios/ex100.py | mauriciozago/CursoPython3 | cbcff9ebfd4d5f5e3a32a369dac8521c6758bfe5 | [
"MIT"
] | null | null | null | from random import randint
from time import sleep
def sorteia(lista):
print('Sorteando 5 valores da lista:', end=' ')
for num in range(0, 5):
lista.append(randint(1, 10))
sleep(0.5)
print(lista[num], end=' ')
print('PRONTO!')
def somaPar(lista):
soma = 0
for valor in list... | 19.72 | 63 | 0.596349 | 69 | 493 | 4.26087 | 0.536232 | 0.013605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030641 | 0.271805 | 493 | 24 | 64 | 20.541667 | 0.788301 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d5878f65e5314a4e23460be695252643785c2ed | 4,728 | py | Python | python/fate_client/flow_client/flow_cli/utils/cli_args.py | kakasu/FATE | cfc61ef268154e08a9e7125c047c318c5e5eb42a | [
"Apache-2.0"
] | 2 | 2020-11-21T11:25:08.000Z | 2020-11-21T11:25:11.000Z | python/fate_client/flow_client/flow_cli/utils/cli_args.py | TroubleMaker1994/FATE | 23ad848bcc7ae7f304a376d3f46f4af26872c8a2 | [
"Apache-2.0"
] | null | null | null | python/fate_client/flow_client/flow_cli/utils/cli_args.py | TroubleMaker1994/FATE | 23ad848bcc7ae7f304a376d3f46f4af26872c8a2 | [
"Apache-2.0"
] | 1 | 2021-02-03T08:23:42.000Z | 2021-02-03T08:23:42.000Z | #
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 51.956044 | 124 | 0.572758 | 555 | 4,728 | 4.803604 | 0.302703 | 0.086647 | 0.073143 | 0.049887 | 0.436984 | 0.391973 | 0.334959 | 0.28132 | 0.165041 | 0.135784 | 0 | 0.00536 | 0.289763 | 4,728 | 90 | 125 | 52.533333 | 0.788565 | 0.123519 | 0 | 0.313725 | 0 | 0 | 0.292949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.019608 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d595897f47c1cc37b47f1c81df0318c37ce2e88 | 5,210 | py | Python | lightning_transformers/task/nlp/masked_language_modeling/data.py | maksym-taranukhin/lightning-transformers | aa7202657973b5b65c3c36eb745621043859ebc4 | [
"Apache-2.0"
] | null | null | null | lightning_transformers/task/nlp/masked_language_modeling/data.py | maksym-taranukhin/lightning-transformers | aa7202657973b5b65c3c36eb745621043859ebc4 | [
"Apache-2.0"
] | null | null | null | lightning_transformers/task/nlp/masked_language_modeling/data.py | maksym-taranukhin/lightning-transformers | aa7202657973b5b65c3c36eb745621043859ebc4 | [
"Apache-2.0"
] | null | null | null | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 41.68 | 119 | 0.668906 | 592 | 5,210 | 5.684122 | 0.342905 | 0.024963 | 0.033284 | 0.020208 | 0.230906 | 0.184844 | 0.164636 | 0.164636 | 0.112927 | 0.084398 | 0 | 0.002844 | 0.257582 | 5,210 | 124 | 120 | 42.016129 | 0.867115 | 0.278311 | 0 | 0.15 | 0 | 0 | 0.009722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.075 | 0 | 0.2375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d5b404b1dc5e6d856457623444459cb2d318391 | 297 | py | Python | lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | lc/1461_CheckIfAStringContainsAllBinaryCodesOfSizeK.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | class Solution:
def hasAllCodes(self, s: str, k: int) -> bool:
seen = set()
i = 0
n = len(s)
while i <= n-k:
if s[i:i+k] not in seen:
seen.add(s[i:i+k])
i += 1
return len(seen)==2 ** k
| 21.214286 | 50 | 0.363636 | 42 | 297 | 2.571429 | 0.571429 | 0.037037 | 0.055556 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.498317 | 297 | 14 | 51 | 21.214286 | 0.704698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d5ee2879ab66f8685eefe4e79bc72d5182956c0 | 8,313 | py | Python | pythonFiles/arcgis_Script.py | huangysh/ASCA_Cluster | 3f7ff5df514cbe48730ba0634abe7f9726d3b98e | [
"MIT"
] | null | null | null | pythonFiles/arcgis_Script.py | huangysh/ASCA_Cluster | 3f7ff5df514cbe48730ba0634abe7f9726d3b98e | [
"MIT"
] | null | null | null | pythonFiles/arcgis_Script.py | huangysh/ASCA_Cluster | 3f7ff5df514cbe48730ba0634abe7f9726d3b98e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# **********************************************************************************************************************
# MIT License
# Copyright (c) 2020 School of Environmental Science and Engineering, Shanghai Jiao Tong University
# Permission is hereby granted, free of charge, to any per... | 41.358209 | 120 | 0.634428 | 775 | 8,313 | 6.778065 | 0.396129 | 0.079954 | 0.036551 | 0.014278 | 0.285741 | 0.276604 | 0.241196 | 0.194936 | 0.170569 | 0.170569 | 0 | 0.006156 | 0.15975 | 8,313 | 200 | 121 | 41.565 | 0.745884 | 0.337303 | 0 | 0.389381 | 0 | 0 | 0.169389 | 0.032483 | 0 | 0 | 0 | 0.005 | 0 | 1 | 0 | false | 0 | 0.035398 | 0 | 0.035398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d5f3bebf3edb62a00a49fe6236b8ebde098e6fa | 19,903 | py | Python | examples/example_topop_tb_v4_analysis_roi.py | qiancao/BoneBox | 0d10dac7c93f16f0643bebc62c63be2f4bd099f6 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T20:49:19.000Z | 2022-03-11T20:49:19.000Z | examples/example_topop_tb_v4_analysis_roi.py | qiancao/BoneBox | 0d10dac7c93f16f0643bebc62c63be2f4bd099f6 | [
"BSD-3-Clause"
] | null | null | null | examples/example_topop_tb_v4_analysis_roi.py | qiancao/BoneBox | 0d10dac7c93f16f0643bebc62c63be2f4bd099f6 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 20 21:29:32 2021
@author: qcao
Analysis code for example_topop_tb_v3.py
Parses and cleans load-driven phantoms. Computes Radiomic signatures. Compares with BvTv.
Compare with ROIs
"""
# FEA and BoneBox Imports
import os
import sys
sys.path.appe... | 33.848639 | 127 | 0.631061 | 2,392 | 19,903 | 5.146739 | 0.231605 | 0.021444 | 0.015352 | 0.020713 | 0.354967 | 0.309967 | 0.26456 | 0.2328 | 0.190155 | 0.190155 | 0 | 0.026779 | 0.240115 | 19,903 | 588 | 128 | 33.848639 | 0.787226 | 0.395418 | 0 | 0.204348 | 0 | 0 | 0.065108 | 0.01309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.095652 | 0 | 0.182609 | 0.026087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d61966b535b9419b168bfc49be236b95f338598 | 1,711 | py | Python | getKeypoints.py | franzqueissner/mimic-detection | 9dc49cf57baaa7da8bb1d8eee0efe00b57384fca | [
"MIT"
] | null | null | null | getKeypoints.py | franzqueissner/mimic-detection | 9dc49cf57baaa7da8bb1d8eee0efe00b57384fca | [
"MIT"
] | null | null | null | getKeypoints.py | franzqueissner/mimic-detection | 9dc49cf57baaa7da8bb1d8eee0efe00b57384fca | [
"MIT"
] | null | null | null | import os
import threading
import json
from classes import Keypoint
def wait_for_frames():
while not os.path.isdir('keypoints/run0'):
print("waiting for frame dir, pls start openpose")
print("dir detected!")
while len(os.listdir("keypoints/run0")) == 0:
print("dir empty, waiting for frames"... | 29 | 104 | 0.675044 | 219 | 1,711 | 5.082192 | 0.374429 | 0.151842 | 0.086253 | 0.039533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023704 | 0.210988 | 1,711 | 58 | 105 | 29.5 | 0.800741 | 0.073641 | 0 | 0.04878 | 0 | 0 | 0.172808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.097561 | 0.02439 | 0.292683 | 0.170732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d635c6db89e149bfd386a8f61c701f4329339cc | 6,311 | py | Python | locations/spiders/dickeys_barbecue_pit.py | davidchiles/alltheplaces | 6f35f6cd652e7462107ead0a77f322caff198653 | [
"MIT"
] | 297 | 2017-12-07T01:29:14.000Z | 2022-03-29T06:58:01.000Z | locations/spiders/dickeys_barbecue_pit.py | davidchiles/alltheplaces | 6f35f6cd652e7462107ead0a77f322caff198653 | [
"MIT"
] | 2,770 | 2017-11-28T04:20:21.000Z | 2022-03-31T11:29:16.000Z | locations/spiders/dickeys_barbecue_pit.py | davidchiles/alltheplaces | 6f35f6cd652e7462107ead0a77f322caff198653 | [
"MIT"
] | 111 | 2017-11-27T21:40:02.000Z | 2022-01-22T01:21:52.000Z | import scrapy
import re
from urllib.parse import urlparse
from locations.hours import OpeningHours
from locations.items import GeojsonPointItem
ALL_DAYS = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su']
class DickeysBarbecuePitSpider(scrapy.Spider):
name = "dickeys_barbecue_pit"
item_attributes = { '... | 41.519737 | 121 | 0.534464 | 717 | 6,311 | 4.566248 | 0.320781 | 0.047648 | 0.034209 | 0.047037 | 0.06292 | 0.06292 | 0.039401 | 0.031155 | 0.031155 | 0.025657 | 0 | 0.015463 | 0.344161 | 6,311 | 151 | 122 | 41.794702 | 0.77555 | 0.18238 | 0 | 0.049505 | 0 | 0.009901 | 0.149448 | 0.074423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039604 | false | 0 | 0.049505 | 0 | 0.287129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed8cc5798db544fbe8ee797bd37f85e2f59ad788 | 8,156 | py | Python | facePose.py | cyndi088/head-pose-estimation-face-landmark | f4ef5b977800cc8c0c54dae8b86d21f616ecb38b | [
"MIT"
] | null | null | null | facePose.py | cyndi088/head-pose-estimation-face-landmark | f4ef5b977800cc8c0c54dae8b86d21f616ecb38b | [
"MIT"
] | null | null | null | facePose.py | cyndi088/head-pose-estimation-face-landmark | f4ef5b977800cc8c0c54dae8b86d21f616ecb38b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=C0103
# pylint: disable=E1101
import os
import numpy as np
import cv2
import caffe
def retifyxxyy(img, xxyy):
"""
let xxyy within image size
img: image
xxyy: left, right, top, bottom
return modified xxyy
"""
img_height, img_width... | 29.128571 | 161 | 0.608877 | 1,037 | 8,156 | 4.678881 | 0.2054 | 0.021641 | 0.032152 | 0.044518 | 0.237634 | 0.186727 | 0.165087 | 0.149423 | 0.096661 | 0.096661 | 0 | 0.031469 | 0.26361 | 8,156 | 279 | 162 | 29.232975 | 0.77639 | 0.166135 | 0 | 0.169118 | 0 | 0 | 0.026627 | 0.016973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed9343bfb5b3ee8263500da7447ed1563a0c1cf8 | 10,469 | py | Python | tutorials/05-dcr/plot_fwd_2_dcr2d.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | 1 | 2022-02-18T16:31:27.000Z | 2022-02-18T16:31:27.000Z | tutorials/05-dcr/plot_fwd_2_dcr2d.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | null | null | null | tutorials/05-dcr/plot_fwd_2_dcr2d.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
DC Resistivity Forward Simulation in 2.5D
=========================================
Here we use the module *SimPEG.electromagnetics.static.resistivity* to predict
DC resistivity data and plot using a pseudosection. In this tutorial, we focus
on the following:
- How to define the survey... | 31.250746 | 88 | 0.66845 | 1,468 | 10,469 | 4.628747 | 0.270436 | 0.02752 | 0.010007 | 0.006475 | 0.230022 | 0.189845 | 0.15482 | 0.117145 | 0.1039 | 0.1039 | 0 | 0.028097 | 0.153501 | 10,469 | 334 | 89 | 31.344311 | 0.738659 | 0.385042 | 0 | 0.192771 | 0 | 0 | 0.039455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090361 | 0 | 0.090361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed936cafecf6046c66b2300745cd962b854537e7 | 23,944 | py | Python | Feature_Selection.py | ksegaba/ML-Pipeline | cd3914563ccd2e2eb863a55e7fe774108280ed47 | [
"MIT"
] | 12 | 2019-09-30T21:17:40.000Z | 2022-02-11T00:22:52.000Z | Feature_Selection.py | DanyelleJhang/ML-Pipeline | 78073fd1004f831c4efdd05e0f1eb78c8bae4fcb | [
"MIT"
] | 6 | 2021-08-03T14:29:16.000Z | 2021-11-17T22:39:13.000Z | Feature_Selection.py | DanyelleJhang/ML-Pipeline | 78073fd1004f831c4efdd05e0f1eb78c8bae4fcb | [
"MIT"
] | 17 | 2017-05-22T21:03:42.000Z | 2022-03-01T15:06:29.000Z | """
PURPOSE:
Run feature selection mettestd available from sci-kit learn on a given dataframe
Must set path to Miniconda in HPC: export PATH=/mnt/testme/azodichr/miniconda3/bin:$PATH
INPUT:
-df Feature file for ML. If class/Y values are in a separate file use -df for features and -df2 for class/Y
-alg ... | 36.169184 | 144 | 0.636527 | 3,667 | 23,944 | 4.029452 | 0.145623 | 0.027612 | 0.020574 | 0.012859 | 0.458311 | 0.398078 | 0.366337 | 0.342921 | 0.308541 | 0.253181 | 0 | 0.012953 | 0.213248 | 23,944 | 661 | 145 | 36.223903 | 0.771419 | 0.247244 | 0 | 0.356808 | 0 | 0.025822 | 0.231826 | 0.023897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025822 | false | 0.007042 | 0.049296 | 0 | 0.075117 | 0.08216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed95341fd58164725063ce6ee238cb6800234854 | 6,815 | py | Python | analyses/seasonality_paper_st/comparisons/specific.py | akuhnregnier/wildfire-analysis | a04deada145cec864051d2fb15aec1a53a0246b9 | [
"MIT"
] | null | null | null | analyses/seasonality_paper_st/comparisons/specific.py | akuhnregnier/wildfire-analysis | a04deada145cec864051d2fb15aec1a53a0246b9 | [
"MIT"
] | null | null | null | analyses/seasonality_paper_st/comparisons/specific.py | akuhnregnier/wildfire-analysis | a04deada145cec864051d2fb15aec1a53a0246b9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import warnings
from pathlib import Path
PROJECT_DIR = Path(__file__).resolve().parent
if sys.path[0] != str(PROJECT_DIR.parent):
sys.path.insert(0, str(PROJECT_DIR.parent))
warnings.filterwarnings(
"ignore", category=FutureWarning, module="sklearn.utils.deprecation"
)
from ... | 29.375 | 96 | 0.612619 | 840 | 6,815 | 4.738095 | 0.282143 | 0.033166 | 0.040201 | 0.015075 | 0.195477 | 0.101005 | 0.058291 | 0.019095 | 0.019095 | 0 | 0 | 0.01263 | 0.279677 | 6,815 | 231 | 97 | 29.502165 | 0.798126 | 0.055613 | 0 | 0.10989 | 0 | 0 | 0.071417 | 0.029563 | 0 | 0 | 0 | 0 | 0.005495 | 1 | 0.016484 | false | 0.005495 | 0.027473 | 0 | 0.06044 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed96aca008acbd291e61b7b834d23df210a0de3f | 722 | py | Python | scripts/bbann_script/rewrite.py | PwzXxm/BBAnn | 2dafce027599b3cdf84070248467294dca2a1042 | [
"MIT"
] | 11 | 2021-11-01T06:49:30.000Z | 2022-02-25T08:09:21.000Z | scripts/bbann_script/rewrite.py | PwzXxm/BBAnn | 2dafce027599b3cdf84070248467294dca2a1042 | [
"MIT"
] | null | null | null | scripts/bbann_script/rewrite.py | PwzXxm/BBAnn | 2dafce027599b3cdf84070248467294dca2a1042 | [
"MIT"
] | 5 | 2021-11-04T02:18:41.000Z | 2022-03-17T04:13:07.000Z | #!/usr/bin/python3
import sys
column_num=eval(sys.argv[1])
print("ARGUMENT column_num: ", column_num)
file_name = "tana_res.txt"
records = {}
with open(file_name) as f:
while True:
line = f.readline() # Line 1: log file name
if not line:
break
print(line.strip())
key = f.readline().strip() # Line 2: the k... | 22.5625 | 71 | 0.65097 | 119 | 722 | 3.840336 | 0.462185 | 0.078775 | 0.061269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013445 | 0.1759 | 722 | 31 | 72 | 23.290323 | 0.754622 | 0.123269 | 0 | 0 | 0 | 0 | 0.08744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed96b143353b2e72a3e901bf774af07ab594b2aa | 2,743 | py | Python | kloppy/tests/test_datafactory.py | ThomasSeidl/kloppy | ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded | [
"BSD-3-Clause"
] | 176 | 2020-04-24T09:12:05.000Z | 2022-03-27T07:03:44.000Z | kloppy/tests/test_datafactory.py | ThomasSeidl/kloppy | ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded | [
"BSD-3-Clause"
] | 95 | 2020-04-24T18:37:36.000Z | 2022-03-23T21:59:10.000Z | kloppy/tests/test_datafactory.py | ThomasSeidl/kloppy | ca59bb2aa3b54b08a50d35e2ed2dd3c2f56cdded | [
"BSD-3-Clause"
] | 39 | 2020-05-08T21:45:26.000Z | 2022-03-19T09:29:41.000Z | import os
from kloppy import DatafactorySerializer
from kloppy.domain import (
AttackingDirection,
Ground,
Orientation,
Period,
Point,
Provider,
SetPieceType,
)
from kloppy.domain.models.common import DatasetType
class TestDatafactory:
def test_correct_deserialization(self):
b... | 33.864198 | 79 | 0.638717 | 297 | 2,743 | 5.750842 | 0.343434 | 0.114169 | 0.098361 | 0.04918 | 0.357143 | 0.293911 | 0.254098 | 0.210773 | 0.210773 | 0.210773 | 0 | 0.030617 | 0.261757 | 2,743 | 80 | 80 | 34.2875 | 0.81284 | 0.010208 | 0 | 0.215385 | 0 | 0 | 0.054204 | 0.029499 | 0 | 0 | 0 | 0 | 0.338462 | 1 | 0.030769 | false | 0 | 0.061538 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed96c2f783024bd964e139219b7d2d0bf6f1f219 | 2,308 | py | Python | models/BiLSTM_MHATT.py | shiqiuwang/shiqiuwang-N2NCause | a6cdb702b000b62b29ccdbd74bfbb666420124f1 | [
"MIT"
] | null | null | null | models/BiLSTM_MHATT.py | shiqiuwang/shiqiuwang-N2NCause | a6cdb702b000b62b29ccdbd74bfbb666420124f1 | [
"MIT"
] | null | null | null | models/BiLSTM_MHATT.py | shiqiuwang/shiqiuwang-N2NCause | a6cdb702b000b62b29ccdbd74bfbb666420124f1 | [
"MIT"
] | null | null | null | import tensorflow as tf
from layers.attention import stacked_multihead_attention
from layers.recurrent import rnn_layer
from layers.similarity import manhattan_similarity
from models.base_model import BaseSiameseNet
class LSTMATTBasedSiameseNet(BaseSiameseNet):
def __init__(
self,
ma... | 30.368421 | 81 | 0.596187 | 246 | 2,308 | 5.195122 | 0.288618 | 0.062598 | 0.065728 | 0.046948 | 0.405321 | 0.369327 | 0.323944 | 0.323944 | 0.323944 | 0.323944 | 0 | 0.012862 | 0.326257 | 2,308 | 75 | 82 | 30.773333 | 0.809003 | 0.006932 | 0 | 0.5 | 0 | 0 | 0.054561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.078125 | 0 | 0.140625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed992d81dea8a5144be3f93a447f968a5f7b383d | 2,923 | py | Python | ddesigner/conditional.py | Ball-Man/python-ddesigner | 2e1522e28389fe6e2d7b40f8877732563d3dd368 | [
"MIT"
] | 1 | 2021-08-17T10:40:48.000Z | 2021-08-17T10:40:48.000Z | ddesigner/conditional.py | Ball-Man/python-ddesigner | 2e1522e28389fe6e2d7b40f8877732563d3dd368 | [
"MIT"
] | null | null | null | ddesigner/conditional.py | Ball-Man/python-ddesigner | 2e1522e28389fe6e2d7b40f8877732563d3dd368 | [
"MIT"
] | null | null | null | """Module containing the logic for an arithmetic parser.
Lark is used as a parser generator.
"""
from typing import Mapping
import operator
import lark
# Default syntax for arithmetic expressions
ARITHM_EXPRESSIONS_SYNTAX = """
?start: or
?or: and
| or "||" and -> or_
| or "or" and -> or_
?and: comparison
... | 23.384 | 70 | 0.609648 | 331 | 2,923 | 5.299094 | 0.305136 | 0.051881 | 0.011973 | 0.010262 | 0.152794 | 0.103763 | 0.103763 | 0.103763 | 0.103763 | 0.103763 | 0 | 0 | 0.280192 | 2,923 | 124 | 71 | 23.572581 | 0.83365 | 0.205953 | 0 | 0 | 0 | 0 | 0.441256 | 0.009417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.090909 | 0.051948 | 0.480519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed9cb27df1647e3b076c465c218bb03a9d9b60ef | 20,065 | py | Python | source.py | Shailendram1990/COVID19_mobility | 70dc3d05313b233229ea5f8d1c4c1b0dffe44e33 | [
"MIT"
] | 1 | 2020-07-21T16:11:51.000Z | 2020-07-21T16:11:51.000Z | source.py | Shailendram1990/COVID19_mobility | 70dc3d05313b233229ea5f8d1c4c1b0dffe44e33 | [
"MIT"
] | null | null | null | source.py | Shailendram1990/COVID19_mobility | 70dc3d05313b233229ea5f8d1c4c1b0dffe44e33 | [
"MIT"
] | null | null | null | """
This script loads Google and Apple Mobility reports, builds cleaned reports in different formats and builds merged files from both sources.
Original data:
- Google Community Mobility reports: https://www.google.com/covid19/mobility/
- Apple Mobility Trends reports: https://www.apple.com/covid19/mobili... | 42.782516 | 140 | 0.579018 | 2,303 | 20,065 | 4.854103 | 0.111594 | 0.023616 | 0.02952 | 0.011629 | 0.607747 | 0.541014 | 0.488147 | 0.41086 | 0.380267 | 0.312819 | 0 | 0.002805 | 0.306952 | 20,065 | 468 | 141 | 42.873932 | 0.801093 | 0.170596 | 0 | 0.384858 | 0 | 0.003155 | 0.228871 | 0.048013 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031546 | false | 0 | 0.028391 | 0 | 0.088328 | 0.025237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eda08d58045fdf93c52e02e54d88ae92b393de36 | 2,130 | py | Python | cogs/lyrics.py | minihut/leafy-bot | b9c12b18f8a6ba8409ced5fe352421623bbffcee | [
"MIT"
] | 12 | 2021-01-19T05:47:03.000Z | 2022-01-14T12:51:33.000Z | cogs/lyrics.py | minihut/leafy-bot | b9c12b18f8a6ba8409ced5fe352421623bbffcee | [
"MIT"
] | 1 | 2021-02-22T12:08:10.000Z | 2021-02-22T12:08:10.000Z | cogs/lyrics.py | minihut/leafy-bot | b9c12b18f8a6ba8409ced5fe352421623bbffcee | [
"MIT"
] | 12 | 2021-01-17T07:31:34.000Z | 2021-05-17T14:01:07.000Z | import discord
import requests
from discord.ext import commands
from discord.ext.commands import BucketType, cooldown
class Lyrics(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_ready(self):
print("Lyrics cog loaded successfully")
... | 31.323529 | 88 | 0.528638 | 239 | 2,130 | 4.619247 | 0.456067 | 0.021739 | 0.035326 | 0.046196 | 0.048913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01685 | 0.359155 | 2,130 | 67 | 89 | 31.791045 | 0.791941 | 0.02723 | 0 | 0.04 | 0 | 0 | 0.139614 | 0.011111 | 0 | 0 | 0.003865 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eda1be23822efe6556205accc545c9d894a8431d | 2,761 | py | Python | model_train.py | Sanatramesh/PCamNet | 7238a87584ffec26336ae2034ec5723d8a035dca | [
"BSD-3-Clause"
] | null | null | null | model_train.py | Sanatramesh/PCamNet | 7238a87584ffec26336ae2034ec5723d8a035dca | [
"BSD-3-Clause"
] | null | null | null | model_train.py | Sanatramesh/PCamNet | 7238a87584ffec26336ae2034ec5723d8a035dca | [
"BSD-3-Clause"
] | null | null | null | import time
import pickle
import numpy as np
from copy import deepcopy
class ModelTraining:
def __init__(self, model, data_loader, batch_size = 10, epochs = 20, model_ckpt_file = 'model/PCamNet'):
self.model = model
self.data_loader = data_loader # List of tuple: (left_cam, right_cam, disp_map) fi... | 37.821918 | 108 | 0.561391 | 321 | 2,761 | 4.582555 | 0.277259 | 0.079538 | 0.053025 | 0.046227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019189 | 0.33937 | 2,761 | 72 | 109 | 38.347222 | 0.787281 | 0.094893 | 0 | 0.039216 | 0 | 0 | 0.080994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.078431 | 0.019608 | 0.215686 | 0.156863 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eda47ef3a198b2afd2d1ca2fa747773c857b5cf8 | 3,745 | py | Python | aiohttp_pydantic/oas/docstring_parser.py | HerrMuellerluedenscheid/aiohttp-pydantic | 87b4487cc46213a3248807825e2e3e71413fa543 | [
"MIT"
] | 42 | 2020-11-18T16:14:45.000Z | 2022-03-21T09:18:48.000Z | aiohttp_pydantic/oas/docstring_parser.py | HerrMuellerluedenscheid/aiohttp-pydantic | 87b4487cc46213a3248807825e2e3e71413fa543 | [
"MIT"
] | 26 | 2020-11-15T08:27:09.000Z | 2022-03-04T15:26:20.000Z | aiohttp_pydantic/oas/docstring_parser.py | HerrMuellerluedenscheid/aiohttp-pydantic | 87b4487cc46213a3248807825e2e3e71413fa543 | [
"MIT"
] | 11 | 2020-11-24T22:13:35.000Z | 2021-10-02T19:56:26.000Z | """
Utility to extract extra OAS description from docstring.
"""
import re
import textwrap
from typing import Dict, List
class LinesIterator:
def __init__(self, lines: str):
self._lines = lines.splitlines()
self._i = -1
def next_line(self) -> str:
if self._i == len(self._lines) - 1:
... | 27.335766 | 87 | 0.558344 | 442 | 3,745 | 4.58371 | 0.223982 | 0.017275 | 0.011846 | 0.031589 | 0.333169 | 0.307009 | 0.2769 | 0.217177 | 0.172754 | 0.172754 | 0 | 0.004673 | 0.314286 | 3,745 | 136 | 88 | 27.536765 | 0.784268 | 0.125234 | 0 | 0.387097 | 0 | 0 | 0.053605 | 0.036677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107527 | false | 0.010753 | 0.032258 | 0.021505 | 0.311828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eda80428d8aaafe609a0be6935df873454da8b92 | 10,224 | py | Python | tests/test_objects.py | kipyin/phanpy | f66fb1b181aeec6183bb03bd748e6ed535496a54 | [
"MIT"
] | null | null | null | tests/test_objects.py | kipyin/phanpy | f66fb1b181aeec6183bb03bd748e6ed535496a54 | [
"MIT"
] | null | null | null | tests/test_objects.py | kipyin/phanpy | f66fb1b181aeec6183bb03bd748e6ed535496a54 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest
import os, sys
file_path = os.path.dirname(os.path.abspath(__file__))
root_path = file_path.replace('/phanpy/tests', '')
sys.path.append(root_path) if root_path not in sys.path else None
import numpy as np
from phanpy.core.objects import Status, Item, Move... | 33.742574 | 83 | 0.624902 | 1,306 | 10,224 | 4.698315 | 0.196784 | 0.049055 | 0.047099 | 0.080346 | 0.416069 | 0.297099 | 0.204368 | 0.169492 | 0.135593 | 0.123207 | 0 | 0.033847 | 0.257336 | 10,224 | 302 | 84 | 33.854305 | 0.774266 | 0.032179 | 0 | 0.253219 | 0 | 0 | 0.041257 | 0 | 0 | 0 | 0 | 0 | 0.334764 | 1 | 0.193133 | false | 0 | 0.017167 | 0 | 0.23176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eda9ec61c9c268e74679c06d29ce37757b47bb1d | 5,743 | py | Python | Modules/Dependency/Metadata_Interpreter.py | dobedobedo/Parrot_Sequoia_Image_Handler | e8d44d88006cf1f4e597aac1523c6f4458534e5b | [
"MIT"
] | 6 | 2018-06-27T10:13:29.000Z | 2020-05-11T03:00:10.000Z | Modules/Dependency/Metadata_Interpreter.py | dobedobedo/Parrot_Sequoia_Image_Handler | e8d44d88006cf1f4e597aac1523c6f4458534e5b | [
"MIT"
] | null | null | null | Modules/Dependency/Metadata_Interpreter.py | dobedobedo/Parrot_Sequoia_Image_Handler | e8d44d88006cf1f4e597aac1523c6f4458534e5b | [
"MIT"
] | 3 | 2017-09-25T12:46:38.000Z | 2021-06-15T15:57:50.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 23 16:08:19 2017
@author: uqytu1
"""
import math
import numpy as np
import urllib.request
import json
import base64
import struct
import datetime
import pytz
def GetLonLat(Metadata):
Position = Metadata['GPSPosition'].split(',')
Latitude = ... | 34.596386 | 97 | 0.632596 | 661 | 5,743 | 5.449319 | 0.323752 | 0.029983 | 0.016657 | 0.02332 | 0.114381 | 0.078845 | 0.042199 | 0.042199 | 0.042199 | 0.042199 | 0 | 0.024803 | 0.227756 | 5,743 | 166 | 98 | 34.596386 | 0.787373 | 0.072262 | 0 | 0.046875 | 0 | 0 | 0.081686 | 0.019763 | 0 | 0 | 0 | 0 | 0.007813 | 1 | 0.132813 | false | 0 | 0.0625 | 0.03125 | 0.328125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edabc77fd3da28138cd10a06ef81ba6b153764ea | 453 | py | Python | lectures/5_Image_Analysis/combine_color_image.py | jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing | e4b831460bddd34e7ad1d8888327c8d85b80e35e | [
"BSD-3-Clause"
] | 1 | 2021-11-10T15:34:37.000Z | 2021-11-10T15:34:37.000Z | lectures/5_Image_Analysis/combine_color_image.py | jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing | e4b831460bddd34e7ad1d8888327c8d85b80e35e | [
"BSD-3-Clause"
] | null | null | null | lectures/5_Image_Analysis/combine_color_image.py | jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing | e4b831460bddd34e7ad1d8888327c8d85b80e35e | [
"BSD-3-Clause"
] | 3 | 2020-08-06T15:11:50.000Z | 2022-01-05T20:21:09.000Z |
from skimage import draw
red = np.zeros((300, 300))
green = np.zeros((300, 300))
blue = np.zeros((300, 300))
r, c = draw.circle(100, 100, 100)
red[r, c] = 1
r, c = draw.circle(100, 200, 100)
green[r, c] = 1
r, c = draw.circle(200, 150, 100)
blue[r, c] = 1
f, axes = plt.subplots(1, 3)
for (ax, channel) in zip(axes... | 19.695652 | 51 | 0.600442 | 84 | 453 | 3.238095 | 0.404762 | 0.044118 | 0.110294 | 0.143382 | 0.176471 | 0.110294 | 0.110294 | 0 | 0 | 0 | 0 | 0.138587 | 0.187638 | 453 | 22 | 52 | 20.590909 | 0.600543 | 0 | 0 | 0 | 0 | 0 | 0.015487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb02ecbb069aa18674ef4e8555933c211f6074c | 1,398 | py | Python | chapters/chapter_3/NN_yelp/main.py | Penguin-Run/PyTorchBook | a310246ffed33d53a70cd7f2fd971f1626dcbebf | [
"Apache-2.0"
] | null | null | null | chapters/chapter_3/NN_yelp/main.py | Penguin-Run/PyTorchBook | a310246ffed33d53a70cd7f2fd971f1626dcbebf | [
"Apache-2.0"
] | null | null | null | chapters/chapter_3/NN_yelp/main.py | Penguin-Run/PyTorchBook | a310246ffed33d53a70cd7f2fd971f1626dcbebf | [
"Apache-2.0"
] | null | null | null | from .training.ReviewClassifier import ReviewClassifier
from .data_managing.Dataset import ReviewDataset
from .training.hyperparameters import args
from .testing import compute_loss_acc as loss_acc
from .testing import predict_rating as predict
from .testing import analizing as analyze
if __name__ == '__main__':
... | 41.117647 | 100 | 0.724607 | 158 | 1,398 | 6.170886 | 0.424051 | 0.051282 | 0.052308 | 0.045128 | 0.110769 | 0.110769 | 0.110769 | 0.110769 | 0 | 0 | 0 | 0.001803 | 0.206724 | 1,398 | 33 | 101 | 42.363636 | 0.877367 | 0.098712 | 0 | 0 | 0 | 0 | 0.083732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.26087 | 0 | 0.26087 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb0ab27e8375216bb7fe46df1fbcdeb336314c4 | 6,573 | py | Python | setup.py | hpleva/ai4materials | 5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2 | [
"Apache-2.0"
] | null | null | null | setup.py | hpleva/ai4materials | 5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2 | [
"Apache-2.0"
] | null | null | null | setup.py | hpleva/ai4materials | 5b5548f4fbfd4751cd1f9d57cedaa1e1d7ca04b2 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages, Extension
# To use a consistent encoding
from codecs import open
# Other stuff
import sys, os, fileinput
import versioneer
here = os.path.dirname(os.path.realpath(__file__))
def main():
# Start package setup
# Get the long description from the README file
wit... | 42.681818 | 126 | 0.597596 | 764 | 6,573 | 5.068063 | 0.434555 | 0.015496 | 0.014463 | 0.020145 | 0.043388 | 0.035641 | 0.035641 | 0.018079 | 0 | 0 | 0 | 0.026536 | 0.27187 | 6,573 | 153 | 127 | 42.960784 | 0.782491 | 0.499772 | 0 | 0 | 0 | 0 | 0.387539 | 0.097508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.081633 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb1c338921c46604a227fc5ad3a3537657d82d7 | 1,074 | py | Python | zeekofile/_controllers/blog/permapage.py | cdarlint/zeekofile | e5c999f0adfa1837c255b856eb030fb6838b0ea1 | [
"MIT"
] | 1 | 2022-02-20T08:02:00.000Z | 2022-02-20T08:02:00.000Z | zeekofile/_controllers/blog/permapage.py | cdarlint/zeekofile | e5c999f0adfa1837c255b856eb030fb6838b0ea1 | [
"MIT"
] | 1 | 2021-07-23T19:45:58.000Z | 2021-07-23T19:45:58.000Z | zeekofile/_controllers/blog/permapage.py | cdarlint/zeekofile | e5c999f0adfa1837c255b856eb030fb6838b0ea1 | [
"MIT"
] | null | null | null | from zeekofile.cache import zf
import re
blog = zf.config.controllers.blog
def run():
write_permapages()
def write_permapages():
"Write blog posts to their permalink locations"
site_re = re.compile(zf.config.site.url, re.IGNORECASE)
num_posts = len(blog.posts)
for i, post in enumerate(blog.pos... | 28.263158 | 83 | 0.587523 | 138 | 1,074 | 4.5 | 0.471014 | 0.086957 | 0.045089 | 0.045089 | 0.048309 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007916 | 0.294227 | 1,074 | 37 | 84 | 29.027027 | 0.811346 | 0.13594 | 0 | 0 | 0 | 0 | 0.16358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb2a9429239ad3822ac8af03b000d236f86beda | 31,643 | py | Python | python/nsc/nsc_instcal_sexdaophot.py | dnidever/noaosourcecatalog | bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb | [
"MIT"
] | 4 | 2017-05-23T20:57:33.000Z | 2018-01-30T22:51:42.000Z | python/nsc/nsc_instcal_sexdaophot.py | dnidever/noaosourcecatalog | bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb | [
"MIT"
] | null | null | null | python/nsc/nsc_instcal_sexdaophot.py | dnidever/noaosourcecatalog | bdd22e53da3ebb6e6c79d8cbe9e375562b09cfeb | [
"MIT"
] | 1 | 2021-07-15T03:06:22.000Z | 2021-07-15T03:06:22.000Z | #!/usr/bin/env python
#
# NSC_INSTCAL_SEXDAOPHOT.PY -- Run SExtractor and DAOPHOT on an exposure
#
from __future__ import print_function
__authors__ = 'David Nidever <dnidever@noao.edu>'
__version__ = '20180819' # yyyymmdd
import os
import sys
import numpy as np
import warnings
from astropy.io import fits
from astr... | 38.078219 | 152 | 0.591821 | 3,815 | 31,643 | 4.872608 | 0.155701 | 0.027436 | 0.0241 | 0.025176 | 0.32729 | 0.24337 | 0.213029 | 0.171661 | 0.153801 | 0.137447 | 0 | 0.009331 | 0.278608 | 31,643 | 830 | 153 | 38.124096 | 0.805012 | 0.170211 | 0 | 0.253076 | 0 | 0 | 0.099095 | 0.009361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065026 | false | 0 | 0.036907 | 0.001757 | 0.195079 | 0.024605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb8c9e216e31864005a5218bc360deec4e30ce5 | 270 | py | Python | update-readme.py | jutge-org/j3-logos | f47dfc84e8a2a9f987fdb22c432b6a52893fe294 | [
"Apache-2.0"
] | 1 | 2020-12-29T12:19:23.000Z | 2020-12-29T12:19:23.000Z | update-readme.py | jutge-org/j3-logos | f47dfc84e8a2a9f987fdb22c432b6a52893fe294 | [
"Apache-2.0"
] | null | null | null | update-readme.py | jutge-org/j3-logos | f47dfc84e8a2a9f987fdb22c432b6a52893fe294 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import glob
text = '''
# Logos for Jutge.org
'''
for png in sorted(glob.glob('*.png')):
text += '''- %s\n\n <a href='%s'><img src='%s' height='200'></a>\n\n''' % (png, png, png)
with open('README.md', 'w') as file:
file.write(text)
| 16.875 | 94 | 0.548148 | 46 | 270 | 3.217391 | 0.652174 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0181 | 0.181481 | 270 | 15 | 95 | 18 | 0.651584 | 0.077778 | 0 | 0 | 0 | 0.125 | 0.391129 | 0.084677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb9060cb2e91122e01e0d89597323dc92dbbaa6 | 14,950 | py | Python | adpkd_segmentation/datasets/datasets.py | kurtteichman/adpkd-segmentation-pytorch | 20faedfd77aaa26cadfbe636092db3da0f257940 | [
"MIT"
] | 5 | 2021-07-09T16:10:56.000Z | 2022-03-23T10:22:16.000Z | adpkd_segmentation/datasets/datasets.py | kurtteichman/adpkd-segmentation-pytorch | 20faedfd77aaa26cadfbe636092db3da0f257940 | [
"MIT"
] | 3 | 2021-06-23T02:47:42.000Z | 2022-02-04T22:43:27.000Z | adpkd_segmentation/datasets/datasets.py | aksg87/adpkd-segmentation-pytorch | 9a22e06ab905bca456c978f3b40ea427499ccf7d | [
"MIT"
] | 2 | 2021-06-05T22:19:29.000Z | 2022-03-13T20:50:13.000Z | import json
import numpy as np
import torch
from pathlib import Path
import pandas as pd
import pydicom
from ast import literal_eval
from adpkd_segmentation.data.data_utils import (
get_labeled,
get_y_Path,
int16_to_uint8,
make_dcmdicts,
path_2dcm_int16,
path_2label,
TKV_update,
)
from adp... | 30.572597 | 79 | 0.596321 | 1,649 | 14,950 | 5.189206 | 0.149788 | 0.050485 | 0.030852 | 0.014725 | 0.660395 | 0.636087 | 0.592264 | 0.572397 | 0.563282 | 0.555218 | 0 | 0.014673 | 0.316187 | 14,950 | 488 | 80 | 30.635246 | 0.822361 | 0.083679 | 0 | 0.563889 | 0 | 0 | 0.02375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.027778 | 0.016667 | 0.127778 | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb94af127b7b6cb84e9109091abb7f212cbe179 | 947 | py | Python | main.py | Arcxdd/Kali-Docker | a59bfdc24dde3e8105762c6e44bd5a6115afd44d | [
"Unlicense"
] | null | null | null | main.py | Arcxdd/Kali-Docker | a59bfdc24dde3e8105762c6e44bd5a6115afd44d | [
"Unlicense"
] | null | null | null | main.py | Arcxdd/Kali-Docker | a59bfdc24dde3e8105762c6e44bd5a6115afd44d | [
"Unlicense"
] | null | null | null | import os
import sys
from halo import Halo
spinner = Halo(text='Please wait...', spinner='dots')
def main():
"""Main program"""
portsToExpose = str(input('Ports to expose [Default: 22 for SSH]: '))
print("Installing...\n")
spinner.start()
os.system("docker pull kalilinux/kali-ro... | 22.547619 | 107 | 0.549102 | 110 | 947 | 4.645455 | 0.5 | 0.062622 | 0.082192 | 0.058708 | 0.086106 | 0.086106 | 0.086106 | 0 | 0 | 0 | 0 | 0.012195 | 0.307286 | 947 | 41 | 108 | 23.097561 | 0.766768 | 0.033791 | 0 | 0.142857 | 0 | 0.071429 | 0.359212 | 0.112399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.178571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edb9a342dd84b94be341c6a7b6d981951da4877d | 1,098 | py | Python | .vscode/compilers/pycompile.py | croghostrider/Loxone-Recovery | cb47a6fd8a685e5995f11e61f3a6e0126fb19828 | [
"MIT"
] | 1 | 2022-03-20T22:27:45.000Z | 2022-03-20T22:27:45.000Z | .vscode/compilers/pycompile.py | croghostrider/Loxone-Recovery | cb47a6fd8a685e5995f11e61f3a6e0126fb19828 | [
"MIT"
] | null | null | null | .vscode/compilers/pycompile.py | croghostrider/Loxone-Recovery | cb47a6fd8a685e5995f11e61f3a6e0126fb19828 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import shutil
import subprocess
import sys
# ARGS
fileDirname = sys.argv[1]
fileBasename = sys.argv[2]
workspaceFolder = sys.argv[3]
# TRANSFORMATION
relativeFileDirname = fileDirname[len(workspaceFolder)+1:]
fileBasenameNoExtension = "".join(fileBasename.rsplit(".py", 1))
distpath =... | 23.361702 | 71 | 0.652095 | 114 | 1,098 | 6.166667 | 0.482456 | 0.034139 | 0.056899 | 0.089616 | 0.071124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006936 | 0.212204 | 1,098 | 46 | 72 | 23.869565 | 0.80578 | 0.06102 | 0 | 0.057143 | 0 | 0 | 0.088694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edba4dad99f149168f42524be29efbe1763f78a1 | 1,430 | py | Python | white-head-mountain/pcdn/mainpcdn.py | jiangwenfan/pythonScripts | c9004944f162af575e111522f98d4de4f59885e6 | [
"Apache-2.0"
] | null | null | null | white-head-mountain/pcdn/mainpcdn.py | jiangwenfan/pythonScripts | c9004944f162af575e111522f98d4de4f59885e6 | [
"Apache-2.0"
] | null | null | null | white-head-mountain/pcdn/mainpcdn.py | jiangwenfan/pythonScripts | c9004944f162af575e111522f98d4de4f59885e6 | [
"Apache-2.0"
] | null | null | null | from hostNameHandle import hostNameHandle
from gethostList import get_ips
from getwechat import getProxyInfo
from gethostNameIp import getIps
from getFrequency import getFrequency
from getDownloadAccount import getInfo
from sendMessage import sendMessage
hostName=input("主机名:")
type = str(input("1 \"频繁掉线\" or ... | 25.087719 | 53 | 0.723776 | 168 | 1,430 | 6.125 | 0.440476 | 0.043732 | 0.075802 | 0.052478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003276 | 0.146154 | 1,430 | 56 | 54 | 25.535714 | 0.839476 | 0.083916 | 0 | 0.052632 | 0 | 0 | 0.133655 | 0.020129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.184211 | 0 | 0.263158 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edbce3d11b39d90338cc61b5efce850628014657 | 2,041 | py | Python | automol/reac/_instab.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 2 | 2021-03-01T14:23:25.000Z | 2021-11-28T19:17:08.000Z | automol/reac/_instab.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 1 | 2021-02-12T21:02:22.000Z | 2021-02-12T21:35:33.000Z | automol/reac/_instab.py | snelliott/automol | d1f7d51c1bbe06ba7569ea7c75304618cebee198 | [
"Apache-2.0"
] | 6 | 2020-12-12T18:41:13.000Z | 2021-11-11T20:12:14.000Z | """
Build unstable products
"""
from phydat import instab_fgrps
import automol.graph
from automol.reac._util import rxn_objs_from_zmatrix
import automol.geom
import automol.inchi
import automol.zmat
from automol.graph import radical_dissociation_prods
from automol.graph import radical_group_dct
def instability_prod... | 30.462687 | 79 | 0.654581 | 257 | 2,041 | 4.984436 | 0.307393 | 0.046838 | 0.017174 | 0.028103 | 0.188915 | 0.143638 | 0.143638 | 0.143638 | 0.143638 | 0.143638 | 0 | 0.000676 | 0.275355 | 2,041 | 66 | 80 | 30.924242 | 0.86545 | 0.211171 | 0 | 0 | 0 | 0 | 0.001929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.2 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edbecc8726126a9bb26d9234cf7d31303aa4e928 | 6,012 | py | Python | tests/test_select.py | vail130/norm | 01a16d6c73c2c6fff92430ca2ca745b295de9a3a | [
"MIT"
] | null | null | null | tests/test_select.py | vail130/norm | 01a16d6c73c2c6fff92430ca2ca745b295de9a3a | [
"MIT"
] | 1 | 2016-02-10T00:43:15.000Z | 2016-02-10T01:14:37.000Z | tests/test_select.py | vail130/norm | 01a16d6c73c2c6fff92430ca2ca745b295de9a3a | [
"MIT"
] | 1 | 2021-03-12T23:21:02.000Z | 2021-03-12T23:21:02.000Z | from __future__ import absolute_import, unicode_literals
import unittest
from mason import Param, ANY, SELECT, COUNT, SUM, AND, OR, Table, NUMERIC, DATE, COALESCE, CASE
class TheSelectClass(unittest.TestCase):
def test_returns_string_for_select_query(self):
purchases = Table('purchases')
users =... | 39.552632 | 116 | 0.585329 | 605 | 6,012 | 5.583471 | 0.147107 | 0.085554 | 0.061575 | 0.023683 | 0.657194 | 0.605684 | 0.483422 | 0.434873 | 0.434873 | 0.434873 | 0 | 0.007438 | 0.30672 | 6,012 | 151 | 117 | 39.81457 | 0.803023 | 0 | 0 | 0.276923 | 0 | 0.007692 | 0.268796 | 0.07851 | 0 | 0 | 0 | 0 | 0.030769 | 1 | 0.030769 | false | 0 | 0.023077 | 0 | 0.061538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edc2a9f255a5bcdbe6de9a345b01330bea716cf9 | 37,250 | py | Python | gridwxcomp/calc_bias_ratios.py | DRI-WSWUP/grid-et-bias | 91998b5827a8069563394b797b253e33c546765f | [
"Apache-2.0"
] | 13 | 2019-04-02T20:21:34.000Z | 2022-01-26T22:45:04.000Z | gridwxcomp/calc_bias_ratios.py | DRI-WSWUP/grid-et-bias | 91998b5827a8069563394b797b253e33c546765f | [
"Apache-2.0"
] | 20 | 2019-02-27T22:40:13.000Z | 2021-05-28T03:06:48.000Z | gridwxcomp/calc_bias_ratios.py | DRI-WSWUP/gridwxcomp | 91998b5827a8069563394b797b253e33c546765f | [
"Apache-2.0"
] | 6 | 2019-04-02T17:28:31.000Z | 2022-01-29T14:07:25.000Z | # -*- coding: utf-8 -*-
"""
Calculate monthly bias ratios of variables from climate station
to overlapping gridMET (or other gridded dataset) cells.
Input file for this module must first be created by running
:mod:`gridwxcomp.prep_input` followed by :mod:`gridwxcomp.download_gridmet_opendap`.
Attributes:
GRID... | 46.330846 | 96 | 0.61694 | 4,961 | 37,250 | 4.456964 | 0.123161 | 0.032563 | 0.012663 | 0.01203 | 0.451088 | 0.40066 | 0.36362 | 0.333318 | 0.32061 | 0.29474 | 0 | 0.008443 | 0.287785 | 37,250 | 803 | 97 | 46.388543 | 0.824991 | 0.423624 | 0 | 0.225058 | 0 | 0 | 0.164078 | 0.010111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011601 | false | 0 | 0.018561 | 0 | 0.032483 | 0.023202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edc4f04d08129c6528ed7f0c20d812230e0c3895 | 1,843 | py | Python | wiiload/upload.py | fossabot/async-wiiload | a511ffe5646c2bd101a9e0ae064f6b3d35497fd3 | [
"Apache-2.0"
] | null | null | null | wiiload/upload.py | fossabot/async-wiiload | a511ffe5646c2bd101a9e0ae064f6b3d35497fd3 | [
"Apache-2.0"
] | 1 | 2020-11-18T18:38:49.000Z | 2020-11-18T18:38:49.000Z | wiiload/upload.py | fossabot/async-wiiload | a511ffe5646c2bd101a9e0ae064f6b3d35497fd3 | [
"Apache-2.0"
] | 1 | 2020-11-18T18:38:03.000Z | 2020-11-18T18:38:03.000Z | import asyncio
import os
import struct
import zlib
from os import PathLike
from typing import List
WIILOAD_VERSION_MAJOR = 0
WIILOAD_VERSION_MINOR = 5
async def upload_bytes(dol: bytes, argv: List[str], host: str, port: int = 4299):
"""
Uploads a file it to a Wii.
:param dol: The bytes of a file to uploa... | 31.237288 | 91 | 0.669018 | 287 | 1,843 | 4.240418 | 0.351916 | 0.072309 | 0.069844 | 0.086278 | 0.459326 | 0.405094 | 0.36894 | 0.267872 | 0.157765 | 0.157765 | 0 | 0.013122 | 0.214324 | 1,843 | 58 | 92 | 31.775862 | 0.827348 | 0.067282 | 0 | 0 | 0 | 0 | 0.024501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edc7c2097af55e9aaf7fe9d4a5593d76f55f2e37 | 899 | py | Python | WDCData/StockPankouDay.py | wangdecheng/QAStrategy | d970242ea61cff2f1a6f69545dc7f65e8efd1672 | [
"MIT"
] | null | null | null | WDCData/StockPankouDay.py | wangdecheng/QAStrategy | d970242ea61cff2f1a6f69545dc7f65e8efd1672 | [
"MIT"
] | null | null | null | WDCData/StockPankouDay.py | wangdecheng/QAStrategy | d970242ea61cff2f1a6f69545dc7f65e8efd1672 | [
"MIT"
] | null | null | null | import pandas as pd
from QUANTAXIS.QAUtil import (
DATABASE
)
_table = DATABASE.stock_pankou_day
date = '2021-11-30' # 选最后一天,因为是批量插入,有值就证明存在
def exists(code, field='turn'):
data = _table.find_one({'code':code,'date':date})
if data is None:
return False
if data.get(field) is None:
retu... | 24.972222 | 70 | 0.648498 | 117 | 899 | 4.735043 | 0.512821 | 0.032491 | 0.043321 | 0.061372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058239 | 0.216908 | 899 | 36 | 71 | 24.972222 | 0.728693 | 0.082314 | 0 | 0.071429 | 0 | 0 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0.035714 | 0.357143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edc957ed816ee1c41b0420f5364024791ce07016 | 576 | py | Python | Registradora/Caixa registradora.py | gabrielsoaresg/Projetos-Python | 7f05a000c30a03fb9fbdb0f493e0a996ef7258f1 | [
"MIT"
] | null | null | null | Registradora/Caixa registradora.py | gabrielsoaresg/Projetos-Python | 7f05a000c30a03fb9fbdb0f493e0a996ef7258f1 | [
"MIT"
] | null | null | null | Registradora/Caixa registradora.py | gabrielsoaresg/Projetos-Python | 7f05a000c30a03fb9fbdb0f493e0a996ef7258f1 | [
"MIT"
] | null | null | null | print("\033[1m=-=" * 15)
print("\033[1;32mLojas Tabajara\033[m". center(51))
print("=-=\033[m" * 15)
cont = 1
somaP = 0
while True:
p = float(input(f"Produto {cont}: R$ "))
cont += 1
somaP += p
if p == 0:
break
print(f"\033[1;32mTotal: R${somaP:.2f}\033[m")
pagamento = float(input("\033[1mDinhei... | 27.428571 | 58 | 0.597222 | 92 | 576 | 3.73913 | 0.358696 | 0.069767 | 0.052326 | 0.05814 | 0.215116 | 0.215116 | 0.215116 | 0.215116 | 0 | 0 | 0 | 0.142251 | 0.182292 | 576 | 20 | 59 | 28.8 | 0.58811 | 0 | 0 | 0.1 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edcad0e725dcaee58a1b72be7bb3b88e8f32af90 | 3,196 | py | Python | webserver.py | Ductapemaster/raspi_datalogger | 7c5b54a6a7617fef816aa1410069fb755f167d13 | [
"MIT"
] | null | null | null | webserver.py | Ductapemaster/raspi_datalogger | 7c5b54a6a7617fef816aa1410069fb755f167d13 | [
"MIT"
] | null | null | null | webserver.py | Ductapemaster/raspi_datalogger | 7c5b54a6a7617fef816aa1410069fb755f167d13 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
from flask_bootstrap import Bootstrap
import json
from datetime import datetime
from influxdb import InfluxDBClient
import secrets
import settings
influx_client = InfluxDBClient(secrets.influx_database_server,
secrets.influx_database_port... | 31.333333 | 122 | 0.431164 | 261 | 3,196 | 5.099617 | 0.425287 | 0.030053 | 0.031555 | 0.040571 | 0.061608 | 0.061608 | 0.061608 | 0 | 0 | 0 | 0 | 0.01464 | 0.444305 | 3,196 | 101 | 123 | 31.643564 | 0.734797 | 0.003442 | 0 | 0 | 0 | 0 | 0.130735 | 0.008171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.011628 | 0.081395 | 0.011628 | 0.127907 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edcce2b8aaea1ebf0e1d0a125ecc6f07e55bf3eb | 3,284 | py | Python | db_wrapper/tests/sqlalchemy_test.py | Alecyrus/Ares | 228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b | [
"MIT"
] | 2 | 2017-04-01T07:05:23.000Z | 2017-09-09T02:19:50.000Z | db_wrapper/tests/sqlalchemy_test.py | Alecyrus/Ares | 228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b | [
"MIT"
] | null | null | null | db_wrapper/tests/sqlalchemy_test.py | Alecyrus/Ares | 228c602f41d9ad1cfdc9f9bc25964b6bcc9d746b | [
"MIT"
] | null | null | null |
import sys, os.path
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
# from brett_sqlalchemy import *
# Can not perform relative when it's parent module is not loaded, so I have to change the system's import path.
from main import *
import unittest
from sqlalchemy.ext.declarative import declarative_base
imp... | 30.691589 | 184 | 0.636419 | 389 | 3,284 | 5.1491 | 0.303342 | 0.053919 | 0.041937 | 0.037943 | 0.400399 | 0.363455 | 0.291563 | 0.218672 | 0.18672 | 0.18672 | 0 | 0.001606 | 0.241474 | 3,284 | 106 | 185 | 30.981132 | 0.802489 | 0.221985 | 0 | 0.133333 | 0 | 0 | 0.066561 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.083333 | false | 0.016667 | 0.1 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edce3a2737d93538f5eca2f4d5c2a1e9ad86dba9 | 31,641 | py | Python | web/indexData/demandSrc.py | BennyJane/career-planning-info | 406b41dc2913fce8623609efe4885abd9474cb6d | [
"MIT"
] | 1 | 2021-01-11T01:37:18.000Z | 2021-01-11T01:37:18.000Z | web/indexData/demandSrc.py | BennyJane/career-planning-info | 406b41dc2913fce8623609efe4885abd9474cb6d | [
"MIT"
] | null | null | null | web/indexData/demandSrc.py | BennyJane/career-planning-info | 406b41dc2913fce8623609efe4885abd9474cb6d | [
"MIT"
] | null | null | null | # 整理各个阶段的技能要求
"""
分大类:
Python(语言类):
数据库:
服务器:
其他:
"""
fourth_chart = {'first': [
{'demands': ['精通Python语言',
'熟悉Python多进程应用开发',
'熟练掌握至少一门PythonWeb开发框架(Tornado、Django、Flask等)',
'熟练使用mysql,redis,mongodb',
'熟悉Linux、分布式、微服务、高性能Web服务开发、有一定的系统架构设计能力者优先... | 43.703039 | 104 | 0.483708 | 1,870 | 31,641 | 8.197326 | 0.687701 | 0.014874 | 0.031378 | 0.003914 | 0.043773 | 0.030465 | 0.003653 | 0.003653 | 0 | 0 | 0 | 0.019421 | 0.389747 | 31,641 | 723 | 105 | 43.763485 | 0.773163 | 0.001391 | 0 | 0.150281 | 0 | 0.001404 | 0.51507 | 0.352751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edce4f4141a5bb74893123cda4abba91dc993dbf | 2,861 | py | Python | Heap.py | 13472889991/DataStructures-Algorithms | 3eb219460f0f8108bb3c07c4de5544df412e189e | [
"MIT"
] | null | null | null | Heap.py | 13472889991/DataStructures-Algorithms | 3eb219460f0f8108bb3c07c4de5544df412e189e | [
"MIT"
] | null | null | null | Heap.py | 13472889991/DataStructures-Algorithms | 3eb219460f0f8108bb3c07c4de5544df412e189e | [
"MIT"
] | null | null | null | class Heap():
def __init__(self, lst):
self.lst = lst
def __str__(self):
return str(self.lst)
# Returns left child index of node, runs in 0(1) time.Returns none if D.N.E
def left(self, index):
index += 1
if 2 * index >= len(self.lst) + 1:
return None
... | 31.43956 | 133 | 0.527787 | 409 | 2,861 | 3.638142 | 0.183374 | 0.159946 | 0.047043 | 0.037634 | 0.403898 | 0.335349 | 0.303091 | 0.290323 | 0.261425 | 0.261425 | 0 | 0.013646 | 0.359664 | 2,861 | 90 | 134 | 31.788889 | 0.798581 | 0.184201 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19403 | false | 0 | 0 | 0.014925 | 0.358209 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd3649e914776cccbee89a84d07e5264b3936d4 | 3,062 | py | Python | locust_exporter.py | nobusugi246/locust-exporter | 3d7511f61ee46da857eef1b9f305a92f820ab615 | [
"MIT"
] | null | null | null | locust_exporter.py | nobusugi246/locust-exporter | 3d7511f61ee46da857eef1b9f305a92f820ab615 | [
"MIT"
] | null | null | null | locust_exporter.py | nobusugi246/locust-exporter | 3d7511f61ee46da857eef1b9f305a92f820ab615 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from prometheus_client import start_http_server, Metric, REGISTRY
from prometheus_client.core import GaugeMetricFamily, CounterMetricFamily
import json
import requests
import sys
import time
class LocustCollector(object):
def __init__(self, ep):
self._ep = ep
def collect(self):
# Fetch t... | 42.527778 | 174 | 0.693991 | 379 | 3,062 | 5.366755 | 0.30343 | 0.058997 | 0.056047 | 0.085546 | 0.342183 | 0.320551 | 0.240905 | 0.184857 | 0.146509 | 0.146509 | 0 | 0.008709 | 0.175049 | 3,062 | 71 | 175 | 43.126761 | 0.796516 | 0.031025 | 0 | 0.214286 | 0 | 0 | 0.307355 | 0.075574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.160714 | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd3a35df965b681fd71b0b10561268de5b79d93 | 2,213 | py | Python | checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 39 | 2015-02-09T13:24:12.000Z | 2019-05-16T17:51:19.000Z | checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 1 | 2019-10-21T16:18:14.000Z | 2019-10-21T16:18:14.000Z | checkio/Hermit/Hexagon Spiral/test_hexagon_spiral.py | KenMercusLai/checkio | c7702221e1bc0b0b30425859ffa6c09722949d65 | [
"MIT"
] | 22 | 2015-01-30T18:00:05.000Z | 2021-05-22T02:57:23.000Z | import unittest
from hexagon_spiral import hex_spiral
class Tests(unittest.TestCase):
TESTS = {
"Basics": [
{"input": [2, 9], "answer": 1, "explanation": 2},
{"input": [9, 2], "answer": 1, "explanation": 2},
{"input": [6, 19], "answer": 2, "explanation": 7},
... | 45.163265 | 65 | 0.456846 | 245 | 2,213 | 4.102041 | 0.261224 | 0.095522 | 0.118408 | 0.056716 | 0.310448 | 0.143284 | 0.055721 | 0 | 0 | 0 | 0 | 0.110323 | 0.299593 | 2,213 | 48 | 66 | 46.104167 | 0.538065 | 0 | 0 | 0.093023 | 0 | 0 | 0.298238 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 1 | 0.046512 | false | 0 | 0.046512 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd44fd69a54eee9f7ca6b87c411e44a3378064a | 6,995 | py | Python | examples/py/tencent_road_map.py | KarcyLee/folium | c0fa6c217842f973037dc7ea8e871855069057f7 | [
"MIT"
] | null | null | null | examples/py/tencent_road_map.py | KarcyLee/folium | c0fa6c217842f973037dc7ea8e871855069057f7 | [
"MIT"
] | null | null | null | examples/py/tencent_road_map.py | KarcyLee/folium | c0fa6c217842f973037dc7ea8e871855069057f7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 腾讯地图示意图
from __future__ import print_function
import random
import folium
from folium.features import DivIcon
from folium.plugins import MarkerCluster, RotatedMarker, PolyLineTextPath, DirectedLine
def tencent_marker(out_dir="../../out"):
"""
腾讯地图,打点
:param... | 30.814978 | 109 | 0.567262 | 883 | 6,995 | 4.288788 | 0.175538 | 0.055453 | 0.0338 | 0.046475 | 0.667283 | 0.639556 | 0.625825 | 0.599155 | 0.583311 | 0.555849 | 0 | 0.173725 | 0.274196 | 6,995 | 226 | 110 | 30.951327 | 0.571991 | 0.116798 | 0 | 0.522727 | 0 | 0 | 0.079927 | 0.037245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.037879 | 0 | 0.113636 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd4a7a68b6a7e9dfa514b2b3b2ebe8065ec98d0 | 19,804 | py | Python | explainaboard/tasks/cws/eval_spec.py | Shadowlized/ExplainaBoard | 45f1c27468e528f8f88df4b01e10253ba96d3a9b | [
"MIT"
] | 255 | 2021-04-14T11:21:35.000Z | 2022-03-27T01:59:05.000Z | explainaboard/tasks/cws/eval_spec.py | ROGERDJQ/ExplainaBoard | 4a2a5aeb9cce33198aa748252f9206c6391a695c | [
"MIT"
] | 128 | 2021-04-15T14:30:13.000Z | 2022-03-31T18:22:40.000Z | explainaboard/tasks/cws/eval_spec.py | ROGERDJQ/ExplainaBoard | 4a2a5aeb9cce33198aa748252f9206c6391a695c | [
"MIT"
] | 27 | 2021-04-14T15:20:22.000Z | 2022-03-28T07:21:54.000Z | from random import choices
import explainaboard.error_analysis as ea
import numpy
import pickle
import codecs
import os
def read_data(corpus_type, fn, column_no=-1, delimiter=' '):
print('corpus_type', corpus_type)
word_sequences = list()
tag_sequences = list()
total_word_sequences = list()
total... | 42.13617 | 175 | 0.588063 | 2,317 | 19,804 | 4.640052 | 0.106603 | 0.013952 | 0.020556 | 0.014231 | 0.386383 | 0.311413 | 0.261929 | 0.183704 | 0.144545 | 0.135057 | 0 | 0.017886 | 0.305494 | 19,804 | 470 | 176 | 42.13617 | 0.763778 | 0.097657 | 0 | 0.179811 | 0 | 0 | 0.047501 | 0.002751 | 0.003155 | 0 | 0 | 0 | 0 | 1 | 0.022082 | false | 0 | 0.018927 | 0 | 0.059937 | 0.094637 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd644d6be6dcd949445336e892644d72635cc12 | 476 | py | Python | ci/kubetest/test_posthog_hpa_enabled.py | momentumdash/charts-clickhouse | 9f8ef82f11db186810fcf98dd789ff4b0c1eed95 | [
"MIT"
] | null | null | null | ci/kubetest/test_posthog_hpa_enabled.py | momentumdash/charts-clickhouse | 9f8ef82f11db186810fcf98dd789ff4b0c1eed95 | [
"MIT"
] | null | null | null | ci/kubetest/test_posthog_hpa_enabled.py | momentumdash/charts-clickhouse | 9f8ef82f11db186810fcf98dd789ff4b0c1eed95 | [
"MIT"
] | null | null | null | import pytest
from helpers.utils import cleanup_k8s, helm_install, wait_for_pods_to_be_ready
HELM_INSTALL_CMD = """
helm upgrade \
--install \
-f ../../ci/values/kubetest/test_posthog_hpa_enabled.yaml \
--timeout 30m \
--create-namespace \
--namespace posthog \
posthog ../../charts/posthog \
... | 21.636364 | 78 | 0.691176 | 63 | 476 | 4.857143 | 0.539683 | 0.179739 | 0.091503 | 0.137255 | 0.130719 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0.010283 | 0.182773 | 476 | 21 | 79 | 22.666667 | 0.77635 | 0 | 0 | 0 | 0 | 0 | 0.493697 | 0.113445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd7c9fc4d4c13cce5799a53fe7796fa6ce013ec | 1,379 | py | Python | python/biograph/variants/add_ref_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | python/biograph/variants/add_ref_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | python/biograph/variants/add_ref_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | # pylint: disable=missing-docstring
from __future__ import print_function
import unittest
import biograph
import biograph.variants as bgexvar
class ReadCovTestCases(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.bg = biograph.BioGraph("datasets/lambdaToyData/benchmark/father_lambda.bg")
... | 33.634146 | 97 | 0.636693 | 175 | 1,379 | 4.8 | 0.354286 | 0.089286 | 0.085714 | 0.040476 | 0.307143 | 0.264286 | 0.145238 | 0.145238 | 0.145238 | 0.145238 | 0 | 0.014409 | 0.245105 | 1,379 | 40 | 98 | 34.475 | 0.792507 | 0.02393 | 0 | 0 | 0 | 0 | 0.087798 | 0.068452 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.225806 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
edd7dcbe7e77249b8bc05cc82a6e9d24f74df2a3 | 924 | py | Python | tools/trading/quotes.py | renoneto/swing_trading | 1d176d7e42bca6028efcb1869ec648824c535fe1 | [
"MIT"
] | 8 | 2020-06-19T11:23:44.000Z | 2022-02-11T00:52:29.000Z | tools/trading/quotes.py | renoneto/swing_trading | 1d176d7e42bca6028efcb1869ec648824c535fe1 | [
"MIT"
] | 5 | 2020-05-16T18:14:24.000Z | 2021-12-13T20:40:25.000Z | tools/trading/quotes.py | renoneto/swing_trading | 1d176d7e42bca6028efcb1869ec648824c535fe1 | [
"MIT"
] | 2 | 2020-05-16T23:31:04.000Z | 2021-06-06T18:40:01.000Z | import requests
def get_quotes(access_token,
my_client,
symbols):
"""
Function to get quotes of a list of stocks
"""
# Convert list to string
str_symbols = ','.join(symbols)
# define our headers
header = {'Authorization':"Bearer {}".format(access_token),
... | 28 | 76 | 0.643939 | 111 | 924 | 5.252252 | 0.603604 | 0.082333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001458 | 0.257576 | 924 | 32 | 77 | 28.875 | 0.848397 | 0.28355 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |