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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0775eae440b3ed8a8de73f26dfbbc57343a6323d | 6,670 | py | Python | text_selection/analyse_zenon_scrape.py | dainst/chronoi-corpus-processing | 7f508a7572e1022c4c88d1477db029e6619a1f0c | [
"MIT"
] | null | null | null | text_selection/analyse_zenon_scrape.py | dainst/chronoi-corpus-processing | 7f508a7572e1022c4c88d1477db029e6619a1f0c | [
"MIT"
] | null | null | null | text_selection/analyse_zenon_scrape.py | dainst/chronoi-corpus-processing | 7f508a7572e1022c4c88d1477db029e6619a1f0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import csv
import furl
import json
import re
import sys
from collections import defaultdict
def filter_records_without_url(records: []) -> []:
return [r for r in records if any(r.get("urls"))]
def build_furl(url: str) -> furl.furl:
try:
... | 40.670732 | 192 | 0.669715 | 990 | 6,670 | 4.346465 | 0.218182 | 0.019521 | 0.030676 | 0.030676 | 0.254706 | 0.188706 | 0.142226 | 0.078085 | 0.044155 | 0.027888 | 0 | 0.005669 | 0.206597 | 6,670 | 163 | 193 | 40.920245 | 0.807445 | 0.092354 | 0 | 0.137931 | 0 | 0.025862 | 0.189475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.060345 | 0.017241 | 0.232759 | 0.275862 | 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 |
07773d417997f41786d66f2eb9103478a102aad8 | 2,578 | py | Python | src/python/twitter/pants/targets/java_antlr_library.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:27.000Z | 2019-12-20T14:13:27.000Z | src/python/twitter/pants/targets/java_antlr_library.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | null | null | null | src/python/twitter/pants/targets/java_antlr_library.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:29.000Z | 2019-12-20T14:13:29.000Z | # ==================================================================================================
# Copyright 2012 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | 44.448276 | 100 | 0.588053 | 276 | 2,578 | 5.413043 | 0.518116 | 0.046854 | 0.024096 | 0.021419 | 0.07095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00666 | 0.242824 | 2,578 | 57 | 101 | 45.22807 | 0.758709 | 0.61443 | 0 | 0.181818 | 0 | 0 | 0.073955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0.045455 | 0.227273 | 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 |
0777dbaeb86425a933c2accd81e0d8dadd226bab | 3,092 | py | Python | bigml/tests/create_pca_steps_bck.py | devs-cloud/python_ml | 05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c | [
"Apache-2.0"
] | null | null | null | bigml/tests/create_pca_steps_bck.py | devs-cloud/python_ml | 05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c | [
"Apache-2.0"
] | null | null | null | bigml/tests/create_pca_steps_bck.py | devs-cloud/python_ml | 05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2018-2020 BigML
#
# 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 requi... | 32.893617 | 83 | 0.698254 | 465 | 3,092 | 4.48172 | 0.275269 | 0.023033 | 0.023033 | 0.03167 | 0.408829 | 0.37428 | 0.37428 | 0.307582 | 0.263916 | 0.263916 | 0 | 0.007495 | 0.180142 | 3,092 | 93 | 84 | 33.247312 | 0.814596 | 0.284605 | 0 | 0.339286 | 0 | 0 | 0.060758 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.125 | false | 0 | 0.214286 | 0 | 0.339286 | 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 |
0778705078ff1aa67fe1ad3d2a88bc9581c13e09 | 2,331 | py | Python | Chapter 8/sandwich-maker.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | 4 | 2021-06-14T10:37:58.000Z | 2021-12-30T17:49:17.000Z | Chapter 8/sandwich-maker.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | null | null | null | Chapter 8/sandwich-maker.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | 1 | 2021-07-29T15:26:54.000Z | 2021-07-29T15:26:54.000Z | '''
Austin Richards 2/20/21
sandwich-maker.py uses pyinputplus to validate user input for sandwich preferences
'''
import pyinputplus as ip
def get_cost(food_name):
'''gets the cost of items in sandwich_builder'''
food_dict = {
'sourdough':1.75,
'rye':2.0,
'wheat':1.50,
'whi... | 33.3 | 96 | 0.62248 | 316 | 2,331 | 4.487342 | 0.316456 | 0.044429 | 0.067701 | 0.06488 | 0.232722 | 0.232722 | 0.148096 | 0.148096 | 0.148096 | 0.084626 | 0 | 0.026166 | 0.245817 | 2,331 | 70 | 97 | 33.3 | 0.780432 | 0.112398 | 0 | 0.170213 | 0 | 0 | 0.275778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.085106 | 0.042553 | 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 |
0778aa1b06b2fda0447a13db0a273ce1b3e6b40f | 2,021 | py | Python | tests/core/test_headerupdater.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | 1 | 2020-06-18T01:38:55.000Z | 2020-06-18T01:38:55.000Z | tests/core/test_headerupdater.py | My-Novel-Management/storybuilder | 1f36e56a74dbb55a25d60fce3ce81f3c650f521a | [
"MIT"
] | 143 | 2019-11-13T00:21:11.000Z | 2020-08-15T05:47:41.000Z | tests/core/test_headerupdater.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
HeaderUpdater class test
========================
'''
import unittest
from tests.testutils import print_testtitle, validate_with_fail
from builder.commands.scode import SCode, SCmd
from builder.containers.chapter import Chapter
from builder.containers.episode import Episode
from builder.con... | 33.131148 | 66 | 0.597724 | 219 | 2,021 | 5.351598 | 0.269406 | 0.056314 | 0.076792 | 0.033276 | 0.244881 | 0.143345 | 0.104096 | 0.104096 | 0.104096 | 0.104096 | 0 | 0.001375 | 0.280059 | 2,021 | 60 | 67 | 33.683333 | 0.804124 | 0.060861 | 0 | 0.159091 | 0 | 0 | 0.036566 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 1 | 0.159091 | false | 0 | 0.181818 | 0 | 0.363636 | 0.045455 | 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 |
0778ae783c1f5257a96e5e0972a23c96938e6782 | 682 | py | Python | dotsDB/test_vlen_datasets.py | aernesto/Lab_DotsDB_Utilities | d8458b4126d80daeb5084234889fc6674158ea0f | [
"MIT"
] | 1 | 2019-03-11T19:12:12.000Z | 2019-03-11T19:12:12.000Z | dotsDB/test_vlen_datasets.py | aernesto/Lab_DotsDB_Utilities | d8458b4126d80daeb5084234889fc6674158ea0f | [
"MIT"
] | null | null | null | dotsDB/test_vlen_datasets.py | aernesto/Lab_DotsDB_Utilities | d8458b4126d80daeb5084234889fc6674158ea0f | [
"MIT"
] | 1 | 2019-10-31T20:10:12.000Z | 2019-10-31T20:10:12.000Z | import numpy as np
import h5py
filename = "test_vlen_datasets_np_bool.h5"
rows = [np.array([np.True_, np.False_]),
np.array([np.True_, np.True_, np.False_])]
f = h5py.File(filename, 'x') # create file, fails if exists
vlen_data_type = h5py.special_dtype(vlen=np.bool_)
dset = f.create_dataset("vlen_matrix",... | 22.733333 | 60 | 0.590909 | 98 | 682 | 3.918367 | 0.469388 | 0.046875 | 0.0625 | 0.067708 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01992 | 0.26393 | 682 | 29 | 61 | 23.517241 | 0.74502 | 0.041056 | 0 | 0 | 0 | 0 | 0.087423 | 0.044479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
077a977fb0ed578109f21b4a8ba0c330e1e23efb | 1,441 | py | Python | weasyl/emailer.py | akash143143/weasyl | be42a2313e657e97c4a48432379e37b6a3d4a4af | [
"Apache-2.0"
] | null | null | null | weasyl/emailer.py | akash143143/weasyl | be42a2313e657e97c4a48432379e37b6a3d4a4af | [
"Apache-2.0"
] | null | null | null | weasyl/emailer.py | akash143143/weasyl | be42a2313e657e97c4a48432379e37b6a3d4a4af | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import re
from email.mime.text import MIMEText
from smtplib import SMTP
from weasyl import define, macro
EMAIL_ADDRESS = re.compile(r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+\Z")
def normalize_address(address):
"""
Converts an e-mail address to a consistent re... | 26.685185 | 134 | 0.646079 | 203 | 1,441 | 4.487685 | 0.477833 | 0.052689 | 0.055982 | 0.019759 | 0.019759 | 0.019759 | 0.019759 | 0.019759 | 0 | 0 | 0 | 0.008021 | 0.221374 | 1,441 | 53 | 135 | 27.188679 | 0.803922 | 0.266482 | 0 | 0 | 0 | 0.035714 | 0.112856 | 0.048086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0 | 0.321429 | 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 |
077afe0d8f015a761ad56ef674705600c184e8fe | 1,721 | py | Python | analysis_functionarcademix.py | thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis | e56e0e853aca4367ebf99ae18e920b80f39bd133 | [
"MIT"
] | null | null | null | analysis_functionarcademix.py | thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis | e56e0e853aca4367ebf99ae18e920b80f39bd133 | [
"MIT"
] | null | null | null | analysis_functionarcademix.py | thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis | e56e0e853aca4367ebf99ae18e920b80f39bd133 | [
"MIT"
] | null | null | null | #analysis function for three level game
def stat_analysis(c1,c2,c3):
#ask question for viewing analysis of game
analysis=input('\nDo you want to see your game analysis? (Yes/No) ')
if analysis=='Yes':
levels=['Level 1','Level 2','Level 3']
#calculating the score of levels
l... | 30.732143 | 72 | 0.613016 | 224 | 1,721 | 4.602679 | 0.477679 | 0.067895 | 0.040737 | 0.031038 | 0.081474 | 0.046557 | 0 | 0 | 0 | 0 | 0 | 0.020651 | 0.268449 | 1,721 | 55 | 73 | 31.290909 | 0.798253 | 0.210343 | 0 | 0.071429 | 0 | 0 | 0.209978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.035714 | 0.321429 | 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 |
077b64f9f341be6f03c89ac88afd5ce1383da321 | 2,246 | py | Python | Hello_Cone.py | TechnoTanuki/Python_BMP | d6f7e7a4b74f7d6e8761d618c156d37c97726038 | [
"MIT"
] | 3 | 2022-02-24T15:46:43.000Z | 2022-03-30T13:17:03.000Z | Hello_Cone.py | TechnoTanuki/Python_BMP | d6f7e7a4b74f7d6e8761d618c156d37c97726038 | [
"MIT"
] | null | null | null | Hello_Cone.py | TechnoTanuki/Python_BMP | d6f7e7a4b74f7d6e8761d618c156d37c97726038 | [
"MIT"
] | null | null | null | notice = """
Cone Demo
-----------------------------------
| Copyright 2022 by Joel C. Alcarez |
| [joelalcarez1975@gmail.com] |
|-----------------------------------|
| We make absolutely no warranty |
| of any kind, expressed or implied |
|-----------------------------------|
| This g... | 38.724138 | 109 | 0.548531 | 250 | 2,246 | 4.876 | 0.592 | 0.004922 | 0.032814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02785 | 0.312556 | 2,246 | 57 | 110 | 39.403509 | 0.761658 | 0.227516 | 0 | 0.111111 | 0 | 0 | 0.294508 | 0.103199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.055556 | 0 | 0.074074 | 0.037037 | 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 |
077c2964f05f1e340c5f354633e006236a1d9021 | 2,001 | py | Python | analysis/training_curve_6D.py | AndrewKirby2/data_synthesis | 656858137a348fd5dcb57bcd04bdfece2b9eac1b | [
"MIT"
] | null | null | null | analysis/training_curve_6D.py | AndrewKirby2/data_synthesis | 656858137a348fd5dcb57bcd04bdfece2b9eac1b | [
"MIT"
] | null | null | null | analysis/training_curve_6D.py | AndrewKirby2/data_synthesis | 656858137a348fd5dcb57bcd04bdfece2b9eac1b | [
"MIT"
] | null | null | null | """ Plot a training curve for the 6D data simulator of CT*
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import RBF, WhiteKernel, Matern
from sklearn.metrics imp... | 34.5 | 92 | 0.733633 | 297 | 2,001 | 4.73064 | 0.40404 | 0.039146 | 0.008541 | 0.008541 | 0.00427 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034503 | 0.15992 | 2,001 | 57 | 93 | 35.105263 | 0.801309 | 0.141929 | 0 | 0 | 0 | 0 | 0.089254 | 0.02525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.238095 | 0 | 0.238095 | 0.02381 | 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 |
077cc03c99f16d778bcf96bc07a8e66081bca025 | 5,210 | py | Python | website/raspac.py | tpudlik/RaspAC | e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677 | [
"MIT"
] | 28 | 2015-04-03T05:01:14.000Z | 2021-12-31T00:29:40.000Z | website/raspac.py | tpudlik/RaspAC | e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677 | [
"MIT"
] | 3 | 2017-03-20T15:47:24.000Z | 2017-05-21T16:07:22.000Z | website/raspac.py | tpudlik/RaspAC | e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677 | [
"MIT"
] | 8 | 2015-08-27T07:33:08.000Z | 2018-09-27T21:54:49.000Z | import sqlite3
import subprocess, datetime
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash
from contextlib import closing
from tquery import get_latest_record
from config import *
app = Flask(__name__)
app.config.from_object(__name__)... | 37.482014 | 87 | 0.616507 | 640 | 5,210 | 4.857813 | 0.296875 | 0.023159 | 0.018012 | 0.019299 | 0.108717 | 0.098424 | 0.098424 | 0.072692 | 0.043744 | 0.043744 | 0 | 0.006928 | 0.252015 | 5,210 | 138 | 88 | 37.753623 | 0.790865 | 0.123033 | 0 | 0.125 | 0 | 0 | 0.167147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0.017857 | 0.053571 | 0.008929 | 0.223214 | 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 |
077e6b7b62074f7defc4bfc023b3cef03e6c40c9 | 1,046 | py | Python | solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py | leetcode-notebook/wonz | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | [
"MIT"
] | 12 | 2020-04-21T01:09:14.000Z | 2022-01-13T08:42:03.000Z | solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py | leetcode-notebook/wonz | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | [
"MIT"
] | null | null | null | solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py | leetcode-notebook/wonz | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | [
"MIT"
] | 4 | 2020-03-31T03:06:16.000Z | 2021-07-06T07:27:44.000Z | from typing import List
class Solution:
def findRepeatNumber(self, nums: List[int]) -> int:
# solution one: 哈希表
n = len(nums)
flag = [False for i in range(n)]
for i in range(n):
if flag[nums[i]] == False:
flag[nums[i]] = True
else:
... | 26.15 | 63 | 0.43499 | 129 | 1,046 | 3.465116 | 0.333333 | 0.1566 | 0.123043 | 0.098434 | 0.322148 | 0.06264 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.441683 | 1,046 | 40 | 64 | 26.15 | 0.744863 | 0.062141 | 0 | 0.419355 | 0 | 0 | 0.008197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.290323 | 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 |
07800b91cf15e2b3fdf48ab87571db57cf0566dc | 1,702 | py | Python | examples/test_network.py | Charles-Peeke/gwu_nn | 3f5e9937abf2bfb81a74a2d6f3653a661e705f67 | [
"MIT"
] | 4 | 2020-11-17T00:31:40.000Z | 2021-11-11T01:56:27.000Z | examples/test_network.py | Charles-Peeke/gwu_nn | 3f5e9937abf2bfb81a74a2d6f3653a661e705f67 | [
"MIT"
] | 1 | 2020-10-12T17:41:40.000Z | 2020-10-12T17:41:40.000Z | examples/test_network.py | jdk514/gwu_nn | 3f5e9937abf2bfb81a74a2d6f3653a661e705f67 | [
"MIT"
] | 5 | 2020-11-12T21:13:35.000Z | 2021-11-30T22:15:28.000Z | import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from gwu_nn.gwu_network import GWUNetwork
from gwu_nn.layers import Dense
from gwu_nn.activation_layers import Sigmoid
np.random.seed(8)
num_obs = 8000
# Create our features to draw from two distinct 2D... | 30.392857 | 91 | 0.675676 | 290 | 1,702 | 3.824138 | 0.393103 | 0.048693 | 0.024346 | 0.046889 | 0.174932 | 0.174932 | 0.174932 | 0.174932 | 0.129847 | 0.129847 | 0 | 0.052558 | 0.161575 | 1,702 | 56 | 92 | 30.392857 | 0.724597 | 0.221504 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.225806 | 0 | 0.225806 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07806fd3652fda3f2cbc32b699b1c68679d17f6c | 6,227 | py | Python | scattering/van_hove.py | XiaoboLinlin/scattering | 0173b63f3243bdbcccfa562dbf5e3714920cded2 | [
"MIT"
] | null | null | null | scattering/van_hove.py | XiaoboLinlin/scattering | 0173b63f3243bdbcccfa562dbf5e3714920cded2 | [
"MIT"
] | null | null | null | scattering/van_hove.py | XiaoboLinlin/scattering | 0173b63f3243bdbcccfa562dbf5e3714920cded2 | [
"MIT"
] | null | null | null | import itertools as it
import numpy as np
import mdtraj as md
from progressbar import ProgressBar
from scattering.utils.utils import get_dt
from scattering.utils.constants import get_form_factor
def compute_van_hove(trj, chunk_length, water=False,
r_range=(0, 1.0), bin_width=0.005, n_bins=None,... | 36.629412 | 117 | 0.604464 | 831 | 6,227 | 4.34296 | 0.223827 | 0.012746 | 0.018288 | 0.009975 | 0.569964 | 0.520089 | 0.50568 | 0.481574 | 0.432253 | 0.432253 | 0 | 0.018648 | 0.311065 | 6,227 | 169 | 118 | 36.846154 | 0.822611 | 0.310904 | 0 | 0.168675 | 0 | 0 | 0.041452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.072289 | 0 | 0.13253 | 0.012048 | 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 |
078077ca30c799c1dd1930850adac76494c46916 | 820 | py | Python | Section1_Basics/contours.py | NeeharikaDva/opencv_course | 234515ab59a1228c8dfd3c69f310dbc1d86c6089 | [
"MIT"
] | null | null | null | Section1_Basics/contours.py | NeeharikaDva/opencv_course | 234515ab59a1228c8dfd3c69f310dbc1d86c6089 | [
"MIT"
] | null | null | null | Section1_Basics/contours.py | NeeharikaDva/opencv_course | 234515ab59a1228c8dfd3c69f310dbc1d86c6089 | [
"MIT"
] | null | null | null | #pylint:disable=no-member
import cv2 as cv
import numpy as np
img = cv.imread('/Users/webileapp/Desktop/niharika_files/projects/opencv_course_master/Resources/Photos/cats.jpg')
cv.imshow('Cats', img)
#
blank = np.zeros(img.shape[:2], dtype='uint8')
cv.imshow('Blank', blank)
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)... | 27.333333 | 114 | 0.729268 | 129 | 820 | 4.565891 | 0.55814 | 0.095076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040377 | 0.093902 | 820 | 30 | 115 | 27.333333 | 0.752355 | 0.029268 | 0 | 0 | 0 | 0 | 0.228824 | 0.120101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.052632 | 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 |
07827562174365b2eae2774f05f5a4b7e0a35d24 | 1,617 | py | Python | install-hooks.py | JustasGau/DonjinKrawler | faff50dcfcebf82028c9af10434359f975247d33 | [
"MIT"
] | null | null | null | install-hooks.py | JustasGau/DonjinKrawler | faff50dcfcebf82028c9af10434359f975247d33 | [
"MIT"
] | 9 | 2020-10-11T13:55:12.000Z | 2020-12-09T16:28:06.000Z | install-hooks.py | JustasGau/DonjinKrawler | faff50dcfcebf82028c9af10434359f975247d33 | [
"MIT"
] | null | null | null | import sys
from os import path
import urllib; from urllib.request import urlretrieve
from subprocess import call
def install_hooks(directory):
checkstyleUrl = 'https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.36.1/checkstyle-8.36.1-all.jar'
preCommitUrl = 'https://gist.githubusercontent.... | 52.16129 | 150 | 0.678417 | 188 | 1,617 | 5.776596 | 0.425532 | 0.070902 | 0.088398 | 0.082873 | 0.089319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043801 | 0.166976 | 1,617 | 30 | 151 | 53.9 | 0.762435 | 0 | 0 | 0 | 0 | 0.037037 | 0.406308 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.148148 | 0 | 0.185185 | 0.185185 | 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 |
078375b28d8a3c360255f33574ef015988b175c4 | 3,962 | py | Python | 09_MicroServer_Cookies/micro_server.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | 09_MicroServer_Cookies/micro_server.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | 09_MicroServer_Cookies/micro_server.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | """
Micro webapp based on WebOb, Jinja2, WSGI with a simple router
"""
import os
import hmac
import hashlib
import mimetypes
from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
from webob import Request
from webob import Response
from jinja2 import Environment, FileSystemLoader
class MicroServer(obje... | 33.576271 | 100 | 0.649419 | 530 | 3,962 | 4.756604 | 0.324528 | 0.03332 | 0.022213 | 0.01666 | 0.06664 | 0.06664 | 0.06664 | 0.06664 | 0.06664 | 0.06664 | 0 | 0.006203 | 0.267542 | 3,962 | 117 | 101 | 33.863248 | 0.862509 | 0.336194 | 0 | 0.035714 | 0 | 0 | 0.025049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.035714 | 0.142857 | 0 | 0.303571 | 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 |
07851008cd92498c823e9a48b615278bda99bf7d | 49,605 | py | Python | astroplan/constraints.py | edose/astroplan | b3cf55340c50ccf69ec363889c1fe8ff2f93cada | [
"BSD-3-Clause"
] | 160 | 2015-09-09T00:07:34.000Z | 2022-03-15T22:22:49.000Z | astroplan/constraints.py | edose/astroplan | b3cf55340c50ccf69ec363889c1fe8ff2f93cada | [
"BSD-3-Clause"
] | 414 | 2015-08-25T20:22:09.000Z | 2022-03-31T13:01:10.000Z | astroplan/constraints.py | edose/astroplan | b3cf55340c50ccf69ec363889c1fe8ff2f93cada | [
"BSD-3-Clause"
] | 90 | 2015-08-27T20:53:48.000Z | 2022-01-25T06:11:16.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Specify and constraints to determine which targets are observable for
an observer.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
# Standard library
from abc import ABCMeta, abstractme... | 37.353163 | 100 | 0.617579 | 5,884 | 49,605 | 5.090245 | 0.10826 | 0.01449 | 0.010217 | 0.014691 | 0.590865 | 0.544723 | 0.503222 | 0.470702 | 0.447898 | 0.432807 | 0 | 0.010835 | 0.292954 | 49,605 | 1,327 | 101 | 37.381311 | 0.843127 | 0.463885 | 0 | 0.458774 | 0 | 0 | 0.063508 | 0.011715 | 0 | 0 | 0 | 0.001507 | 0 | 1 | 0.093023 | false | 0 | 0.029598 | 0 | 0.221987 | 0.002114 | 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 |
078516b1582562801fbf63851c5ac10efbd5d833 | 6,191 | py | Python | backend/views.py | Raulios/django-blog | ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2 | [
"MIT"
] | null | null | null | backend/views.py | Raulios/django-blog | ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2 | [
"MIT"
] | null | null | null | backend/views.py | Raulios/django-blog | ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2 | [
"MIT"
] | null | null | null | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.core.urlresolvers import reverse
from django.shortcuts import render
from django.http import HttpResponseRedirect
from core.models import Po... | 25.166667 | 75 | 0.663059 | 693 | 6,191 | 5.79798 | 0.106782 | 0.045296 | 0.051767 | 0.074415 | 0.744151 | 0.673221 | 0.478845 | 0.478845 | 0.456446 | 0.456446 | 0 | 0.00184 | 0.210144 | 6,191 | 246 | 76 | 25.166667 | 0.819836 | 0.003715 | 0 | 0.572289 | 0 | 0 | 0.129885 | 0.036322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078313 | false | 0 | 0.048193 | 0 | 0.240964 | 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 |
078596cc2ee665e19eee2250f95d62feca0bd3b2 | 1,816 | py | Python | openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | from openpype.modules.ftrack.lib import BaseEvent
from openpype.modules.ftrack.lib.avalon_sync import CUST_ATTR_ID_KEY
from openpype.modules.ftrack.event_handlers_server.event_sync_to_avalon import (
SyncToAvalonEvent
)
class DelAvalonIdFromNew(BaseEvent):
'''
This event removes AvalonId from custom attri... | 33.018182 | 80 | 0.562225 | 192 | 1,816 | 5.135417 | 0.447917 | 0.032454 | 0.040568 | 0.052738 | 0.10142 | 0.044625 | 0 | 0 | 0 | 0 | 0 | 0.000851 | 0.352974 | 1,816 | 54 | 81 | 33.62963 | 0.838298 | 0.138216 | 0 | 0 | 0 | 0 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.083333 | 0 | 0.222222 | 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 |
078638d293ec315b963165f9210a9060b0e09180 | 2,436 | py | Python | go/token/views.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/token/views.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/token/views.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | from urllib import urlencode
import urlparse
from django.shortcuts import Http404, redirect
from django.contrib.auth.views import logout
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from vumi.utils import load_class_by_strin... | 35.304348 | 79 | 0.70197 | 348 | 2,436 | 4.747126 | 0.321839 | 0.043584 | 0.030872 | 0.025424 | 0.095642 | 0.041162 | 0.041162 | 0.041162 | 0 | 0 | 0 | 0.00463 | 0.20197 | 2,436 | 68 | 80 | 35.823529 | 0.845165 | 0.206486 | 0 | 0.086957 | 0 | 0 | 0.100364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.195652 | 0 | 0.304348 | 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 |
0789092717eaaad8fa74b92820df7d2a61d9ba9b | 18,065 | py | Python | bvbabel/vmr.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 7 | 2021-08-02T09:58:08.000Z | 2022-03-17T21:13:34.000Z | bvbabel/vmr.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 2 | 2021-08-09T14:57:38.000Z | 2022-03-28T13:25:19.000Z | bvbabel/vmr.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 4 | 2021-08-09T07:45:59.000Z | 2022-03-22T23:02:15.000Z | """Read, write, create Brainvoyager VMR file format."""
import struct
import numpy as np
from bvbabel.utils import (read_variable_length_string,
write_variable_length_string)
# =============================================================================
def read_vmr(filename):
"""Read... | 45.049875 | 79 | 0.546305 | 2,052 | 18,065 | 4.787524 | 0.16423 | 0.052932 | 0.052524 | 0.070033 | 0.53634 | 0.498371 | 0.444727 | 0.434141 | 0.321967 | 0.236055 | 0 | 0.012127 | 0.278771 | 18,065 | 400 | 80 | 45.1625 | 0.741883 | 0.397509 | 0 | 0.476415 | 0 | 0 | 0.152053 | 0.025374 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.014151 | 0 | 0.033019 | 0.004717 | 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 |
0789c9270fff78d0b163f2215a2a6a958e9cdb11 | 2,279 | py | Python | example/image-classification/test_score.py | Vikas-kum/incubator-mxnet | ba02bf2fe2da423caa59ddb3fd5e433b90b730bf | [
"Apache-2.0"
] | 399 | 2017-05-30T05:12:48.000Z | 2022-01-29T05:53:08.000Z | example/image-classification/test_score.py | Vikas-kum/incubator-mxnet | ba02bf2fe2da423caa59ddb3fd5e433b90b730bf | [
"Apache-2.0"
] | 187 | 2018-03-16T23:44:43.000Z | 2021-12-14T21:19:54.000Z | example/image-classification/test_score.py | Vikas-kum/incubator-mxnet | ba02bf2fe2da423caa59ddb3fd5e433b90b730bf | [
"Apache-2.0"
] | 107 | 2017-05-30T05:53:22.000Z | 2021-06-24T02:43:31.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 36.174603 | 78 | 0.662571 | 342 | 2,279 | 4.292398 | 0.435673 | 0.040872 | 0.042916 | 0.021798 | 0.239782 | 0.149864 | 0.149864 | 0.149864 | 0.149864 | 0.149864 | 0 | 0.03404 | 0.21369 | 2,279 | 62 | 79 | 36.758065 | 0.785156 | 0.3405 | 0 | 0.162162 | 0 | 0 | 0.183784 | 0.044595 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.081081 | false | 0 | 0.108108 | 0.027027 | 0.216216 | 0.081081 | 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 |
078a7ff149f5f6902b3df48444c9f900c3b57349 | 139,271 | py | Python | verticapy/vcolumn.py | vertica/vertica_ml_python | 9e82dba94afe8447bfa2492f343af6669128e2fb | [
"Apache-2.0"
] | 7 | 2018-05-10T08:16:31.000Z | 2018-05-15T00:59:26.000Z | verticapy/vcolumn.py | vertica/vertica_ml_python | 9e82dba94afe8447bfa2492f343af6669128e2fb | [
"Apache-2.0"
] | 1 | 2018-05-15T00:15:35.000Z | 2018-05-15T13:40:19.000Z | verticapy/vcolumn.py | vertica/vertica_ml_python | 9e82dba94afe8447bfa2492f343af6669128e2fb | [
"Apache-2.0"
] | null | null | null | # (c) Copyright [2018-2022] Micro Focus or one of its affiliates.
# 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 applicabl... | 34.261009 | 378 | 0.486139 | 13,770 | 139,271 | 4.813217 | 0.07618 | 0.03093 | 0.018981 | 0.012629 | 0.528214 | 0.465705 | 0.423579 | 0.384698 | 0.346676 | 0.330079 | 0 | 0.007071 | 0.356248 | 139,271 | 4,064 | 379 | 34.269439 | 0.732176 | 0.386283 | 0 | 0.36368 | 0 | 0.010169 | 0.162804 | 0.006469 | 0.000484 | 0 | 0 | 0 | 0.011138 | 1 | 0.040678 | false | 0.002421 | 0.010654 | 0.001937 | 0.104116 | 0.004843 | 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 |
078a84b6d5f9b27e924368e0c1490273227caf78 | 6,918 | py | Python | booktags/flaskapp/book/views.py | MagicSword/Booktags | 44142e19aec5ce75266233964d7ab21503bbe57c | [
"Apache-1.1"
] | null | null | null | booktags/flaskapp/book/views.py | MagicSword/Booktags | 44142e19aec5ce75266233964d7ab21503bbe57c | [
"Apache-1.1"
] | 9 | 2019-12-20T15:24:38.000Z | 2021-12-13T20:28:48.000Z | booktags/flaskapp/book/views.py | MagicSword/BookTags | 44142e19aec5ce75266233964d7ab21503bbe57c | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
example.py
~~~~~~~~~
A simple command line application to run flask apps.
:copyright: 2019 Miller
:license: BSD-3-Clause
"""
# Known bugs that can't be fixed here:
# - synopsis() cannot be prevented from clobbering existing
# loaded modules.
... | 30.746667 | 88 | 0.645273 | 902 | 6,918 | 4.827051 | 0.257206 | 0.067983 | 0.025723 | 0.031236 | 0.341755 | 0.286633 | 0.262058 | 0.245521 | 0.245521 | 0.245521 | 0 | 0.002966 | 0.220295 | 6,918 | 224 | 89 | 30.883929 | 0.804227 | 0.238653 | 0 | 0.296 | 0 | 0.008 | 0.094969 | 0.013456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072 | false | 0.008 | 0.088 | 0.016 | 0.248 | 0.032 | 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 |
078df566472a507b372dad23be527536aa2fa29f | 4,082 | py | Python | storelet.py | markembling/storelet | 9951368e2f143855d2c14509bdb8cf796d6e54b8 | [
"BSD-3-Clause"
] | 1 | 2015-09-07T17:19:40.000Z | 2015-09-07T17:19:40.000Z | storelet.py | markembling/storelet | 9951368e2f143855d2c14509bdb8cf796d6e54b8 | [
"BSD-3-Clause"
] | 1 | 2016-01-05T13:18:16.000Z | 2016-01-05T14:16:57.000Z | storelet.py | markembling/storelet | 9951368e2f143855d2c14509bdb8cf796d6e54b8 | [
"BSD-3-Clause"
] | 1 | 2019-02-21T09:20:48.000Z | 2019-02-21T09:20:48.000Z | import os
import logging
from tempfile import mkstemp, mkdtemp
from shutil import rmtree
from zipfile import ZipFile, ZIP_DEFLATED
from datetime import datetime
from boto.s3.connection import S3Connection
from boto.s3.key import Key
__version__ = "0.1.8"
__author__ = "Mark Embling"
__email__ = "mark@markembling.info"
... | 36.123894 | 82 | 0.607055 | 487 | 4,082 | 4.909651 | 0.342916 | 0.043496 | 0.015056 | 0.015056 | 0.205353 | 0.132999 | 0.091175 | 0.091175 | 0.052698 | 0.052698 | 0 | 0.004509 | 0.293729 | 4,082 | 112 | 83 | 36.446429 | 0.824835 | 0.130818 | 0 | 0.101266 | 0 | 0 | 0.103695 | 0.006015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164557 | false | 0 | 0.101266 | 0.037975 | 0.35443 | 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 |
078f93641653dd1d0323ab98d96a9fc89761a30c | 721 | py | Python | elementary/date-and-time-convertor.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | 1 | 2018-02-24T10:51:07.000Z | 2018-02-24T10:51:07.000Z | elementary/date-and-time-convertor.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | null | null | null | elementary/date-and-time-convertor.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | 1 | 2019-02-13T21:41:07.000Z | 2019-02-13T21:41:07.000Z | #!/usr/bin/env python3
def date_time(time):
months = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"]
hour, minute = int(time[11:13]), int(time[14:16])
return f"{int(time[0:2])} {months[int(time[3:5])-1]} {time[6:10]} year {h... | 51.5 | 153 | 0.62552 | 120 | 721 | 3.65 | 0.508333 | 0.091324 | 0.09589 | 0.054795 | 0.091324 | 0.091324 | 0.091324 | 0 | 0 | 0 | 0 | 0.151414 | 0.166436 | 721 | 13 | 154 | 55.461538 | 0.577371 | 0.029126 | 0 | 0 | 0 | 0.1 | 0.570815 | 0.037196 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
078fda9e491f07fc6685fbdf4be7377dd5f3e4a3 | 10,361 | py | Python | lbry/wallet/server/peer.py | snapperVibes/lbry-sdk | 77a51d1ad43404e5dc52af715a7bebfaeb3fee16 | [
"MIT"
] | 2 | 2021-04-14T07:37:37.000Z | 2021-05-18T13:20:11.000Z | lbry/wallet/server/peer.py | lucianolb76/lbry-sdk | 0c09f24cbf5bd0959dedca63363ff7ffadd45d66 | [
"MIT"
] | null | null | null | lbry/wallet/server/peer.py | lucianolb76/lbry-sdk | 0c09f24cbf5bd0959dedca63363ff7ffadd45d66 | [
"MIT"
] | null | null | null | # Copyright (c) 2017, Neil Booth
#
# All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the r... | 34.194719 | 78 | 0.599266 | 1,320 | 10,361 | 4.596212 | 0.223485 | 0.018461 | 0.012856 | 0.017801 | 0.108456 | 0.08505 | 0.059502 | 0.047305 | 0.028845 | 0.028845 | 0 | 0.00499 | 0.303639 | 10,361 | 302 | 79 | 34.307947 | 0.835897 | 0.269858 | 0 | 0.192708 | 0 | 0 | 0.044196 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 1 | 0.161458 | false | 0.010417 | 0.020833 | 0.010417 | 0.385417 | 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 |
078fed475eb9a6e7954859be5858da011d4c522e | 1,787 | py | Python | tests/components/deconz/test_diagnostics.py | aomann/core | 5e71e7b775461cd4849c36075c6a1459a7d0ad22 | [
"Apache-2.0"
] | null | null | null | tests/components/deconz/test_diagnostics.py | aomann/core | 5e71e7b775461cd4849c36075c6a1459a7d0ad22 | [
"Apache-2.0"
] | 24 | 2021-11-03T06:20:16.000Z | 2022-03-31T06:23:17.000Z | tests/components/deconz/test_diagnostics.py | aomann/core | 5e71e7b775461cd4849c36075c6a1459a7d0ad22 | [
"Apache-2.0"
] | null | null | null | """Test deCONZ diagnostics."""
from unittest.mock import patch
from pydeconz.websocket import STATE_RUNNING
from homeassistant.const import Platform
from .test_gateway import DECONZ_CONFIG, setup_deconz_integration
from tests.components.diagnostics import get_diagnostics_for_config_entry
async def test_entry_dia... | 32.490909 | 73 | 0.582541 | 173 | 1,787 | 5.716763 | 0.387283 | 0.122346 | 0.039434 | 0.046512 | 0.09909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297706 | 1,787 | 54 | 74 | 33.092593 | 0.788048 | 0.01343 | 0 | 0.046512 | 0 | 0 | 0.127252 | 0.031958 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0 | false | 0 | 0.116279 | 0 | 0.116279 | 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 |
079020088d5707b9fc6c67fde0c7358e446490f2 | 32,821 | py | Python | jax_md/partition.py | l1zp/jax-md | 2440794aebb1c77116459e2ec2051d537a94ecf4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | jax_md/partition.py | l1zp/jax-md | 2440794aebb1c77116459e2ec2051d537a94ecf4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | jax_md/partition.py | l1zp/jax-md | 2440794aebb1c77116459e2ec2051d537a94ecf4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 38.34229 | 85 | 0.681728 | 4,736 | 32,821 | 4.559755 | 0.140203 | 0.036119 | 0.023339 | 0.005186 | 0.181848 | 0.11762 | 0.083862 | 0.058115 | 0.047696 | 0.040472 | 0 | 0.010211 | 0.227141 | 32,821 | 855 | 86 | 38.387135 | 0.841126 | 0.363334 | 0 | 0.133891 | 0 | 0 | 0.052335 | 0.005581 | 0 | 0 | 0 | 0.00117 | 0.002092 | 1 | 0.060669 | false | 0 | 0.033473 | 0.008368 | 0.205021 | 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 |
0790c876aeebfd734072b2709676f53a6053af06 | 964 | py | Python | rhucrl_experiments/evaluate/launch_evaluate_mass.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-19T11:46:48.000Z | 2021-11-19T11:46:48.000Z | rhucrl_experiments/evaluate/launch_evaluate_mass.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-22T07:48:03.000Z | 2021-11-22T07:48:03.000Z | rhucrl_experiments/evaluate/launch_evaluate_mass.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2022-03-26T10:18:01.000Z | 2022-03-26T10:18:01.000Z | """Run from rhucrl_experiments.evaluate folder."""
import socket
from lsf_runner import init_runner, make_commands
from rhucrl_experiments.evaluate.utilities import ENVIRONMENTS
RARL_DIR = "../../runs/RARLAgent"
ZERO_SUM_DIR = "../../runs/ZeroSumAgent"
SCRIPT = "evaluate_mass_change.py"
EXPERIMENTS = {
"supermod... | 37.076923 | 84 | 0.693983 | 121 | 964 | 5.297521 | 0.446281 | 0.054602 | 0.046802 | 0.065523 | 0.099844 | 0.099844 | 0.099844 | 0 | 0 | 0 | 0 | 0.009569 | 0.13278 | 964 | 25 | 85 | 38.56 | 0.757177 | 0.045643 | 0 | 0 | 0 | 0 | 0.276805 | 0.050328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 |
07915aac7804509d8daa27f0a06836f1ec42314d | 739 | py | Python | src/sentry/api/endpoints/project_tags.py | seukjung/sentry-custom | c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963 | [
"BSD-3-Clause"
] | 1 | 2021-08-10T06:07:13.000Z | 2021-08-10T06:07:13.000Z | src/sentry/api/endpoints/project_tags.py | fotinakis/sentry | c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c | [
"BSD-3-Clause"
] | 8 | 2019-12-28T23:49:55.000Z | 2022-03-02T04:34:18.000Z | src/sentry/api/endpoints/project_tags.py | fotinakis/sentry | c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c | [
"BSD-3-Clause"
] | 1 | 2017-04-08T04:09:18.000Z | 2017-04-08T04:09:18.000Z | from __future__ import absolute_import
import six
from rest_framework.response import Response
from sentry.api.bases.project import ProjectEndpoint
from sentry.models import TagKey, TagKeyStatus
class ProjectTagsEndpoint(ProjectEndpoint):
def get(self, request, project):
tag_keys = TagKey.objects.filte... | 26.392857 | 64 | 0.626522 | 81 | 739 | 5.493827 | 0.530864 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288227 | 739 | 27 | 65 | 27.37037 | 0.846008 | 0 | 0 | 0 | 0 | 0 | 0.028417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07919b5c6e89a71c84a3a15315c4e1b2767495ce | 871 | py | Python | examples/02 - callbacks/callbacks.py | TensorTom/async-Eel | d6484b6c5c9f89b64f5119d908fcdf29b173bd57 | [
"MIT"
] | 9 | 2019-06-17T22:11:01.000Z | 2021-08-30T17:36:13.000Z | examples/02 - callbacks/callbacks.py | TensorTom/async-Eel | d6484b6c5c9f89b64f5119d908fcdf29b173bd57 | [
"MIT"
] | 4 | 2020-08-17T18:39:21.000Z | 2021-08-29T02:54:23.000Z | examples/02 - callbacks/callbacks.py | TensorTom/async-Eel | d6484b6c5c9f89b64f5119d908fcdf29b173bd57 | [
"MIT"
] | 3 | 2020-02-27T03:40:05.000Z | 2021-03-09T11:52:32.000Z | from __future__ import print_function # For Py2/3 compatibility
import async_eel
import random
import asyncio
loop = asyncio.get_event_loop()
@async_eel.expose
async def py_random():
return random.random()
async def print_num(n):
"""callback of js_random"""
print('Got this from Javascript:', n)
asyn... | 22.921053 | 85 | 0.686567 | 117 | 871 | 4.846154 | 0.521368 | 0.084656 | 0.068783 | 0.067019 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013139 | 0.213548 | 871 | 37 | 86 | 23.540541 | 0.814599 | 0.138921 | 0 | 0 | 0 | 0 | 0.105702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.272727 | 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 |
079304ab36eaaab974694a2714de62dfde9010a0 | 1,578 | py | Python | datacube/index/_api.py | AMA-AC/datacube-core | 0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d | [
"Apache-2.0"
] | 2 | 2019-10-24T15:29:54.000Z | 2019-10-24T15:29:58.000Z | datacube/index/_api.py | AMA-AC/datacube-core | 0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d | [
"Apache-2.0"
] | 2 | 2021-03-26T00:37:36.000Z | 2021-03-31T20:05:01.000Z | datacube/index/_api.py | PhilipeRLeal/datacube-core | 81bed714f2e5cb30a2492f1b0cf3397b79141c3a | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
"""
Access methods for indexing datasets & products.
"""
import logging
from datacube.config import LocalConfig
from datacube.drivers import index_driver_by_name, index_drivers
from .index import Index
_LOG = logging.getLogger(__name__)
def index_connect(local_config=None, application_name=None, val... | 35.863636 | 86 | 0.697085 | 186 | 1,578 | 5.704301 | 0.462366 | 0.072573 | 0.024505 | 0.032045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00082 | 0.227503 | 1,578 | 43 | 87 | 36.697674 | 0.869565 | 0.393536 | 0 | 0 | 0 | 0 | 0.074033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 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 |
079480b6c82dd74c78bc4155e46e5d2906c6b673 | 6,560 | py | Python | pgarchives/loader/load_message.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgarchives/loader/load_message.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgarchives/loader/load_message.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | #!/usr/bin/env python3
#
# load_message.py - takes a single email or mbox formatted
# file on stdin or in a file and reads it into the database.
#
import os
import sys
from optparse import OptionParser
from configparser import ConfigParser
import psycopg2
from lib.storage import ArchivesParserStorage
from lib.mbox ... | 35.846995 | 150 | 0.594817 | 820 | 6,560 | 4.687805 | 0.290244 | 0.01821 | 0.020812 | 0.028616 | 0.226587 | 0.19589 | 0.179501 | 0.162851 | 0.137877 | 0.127732 | 0 | 0.007889 | 0.285061 | 6,560 | 182 | 151 | 36.043956 | 0.811727 | 0.079878 | 0 | 0.37931 | 0 | 0.013793 | 0.213183 | 0.015773 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006897 | false | 0 | 0.068966 | 0 | 0.075862 | 0.117241 | 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 |
079607c3763787747e103898caecb5035367fd71 | 1,351 | py | Python | lib/dataset/iNaturalist.py | jrcai/ACE | 1e2b04d1cf4bb517f107664ac489a1a96e95a4c1 | [
"MIT"
] | 18 | 2021-08-06T01:15:32.000Z | 2022-03-14T07:09:39.000Z | lib/dataset/iNaturalist.py | jrcai/BagofTricks-LT | d75b195367e3d535d316d134ec4bbef4bb7fcbdd | [
"MIT"
] | 2 | 2021-09-24T03:29:17.000Z | 2021-11-22T19:18:58.000Z | lib/dataset/iNaturalist.py | jrcai/BagofTricks-LT | d75b195367e3d535d316d134ec4bbef4bb7fcbdd | [
"MIT"
] | 2 | 2021-10-17T18:09:20.000Z | 2021-11-08T04:19:19.000Z | from dataset.baseset import BaseSet
import random, cv2
import numpy as np
class iNaturalist(BaseSet):
def __init__(self, mode='train', cfg=None, transform=None):
super(iNaturalist, self).__init__(mode, cfg, transform)
random.seed(0)
self.class_dict = self._get_class_dict()
... | 32.95122 | 104 | 0.623982 | 167 | 1,351 | 4.814371 | 0.347305 | 0.034826 | 0.059701 | 0.094527 | 0.299751 | 0.271144 | 0.271144 | 0.129353 | 0.129353 | 0.129353 | 0 | 0.00504 | 0.265729 | 1,351 | 40 | 105 | 33.775 | 0.805444 | 0.005181 | 0 | 0 | 0 | 0 | 0.057364 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.28 | 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 |
079659eddea08dcb5566544e99167b54c9eb8c33 | 27,964 | py | Python | tests/test_conferences.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | tests/test_conferences.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | 80 | 2015-02-25T15:12:15.000Z | 2015-06-11T18:44:55.000Z | tests/test_conferences.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import mock
from nose.tools import * # noqa (PEP8 asserts)
import hmac
import hashlib
from StringIO import StringIO
from django.core.exceptions import ValidationError
from django.db import IntegrityError
import furl
from framework.auth import get_or_create_user
from framework.auth.core impo... | 36.506527 | 114 | 0.611357 | 3,099 | 27,964 | 5.294934 | 0.116489 | 0.032848 | 0.021939 | 0.016211 | 0.679079 | 0.637211 | 0.61192 | 0.583643 | 0.548967 | 0.526601 | 0 | 0.008919 | 0.278322 | 27,964 | 765 | 115 | 36.554248 | 0.803974 | 0.022028 | 0 | 0.550614 | 0 | 0 | 0.11915 | 0.025725 | 0 | 0 | 0 | 0 | 0.161043 | 1 | 0.084356 | false | 0.009202 | 0.029141 | 0 | 0.133436 | 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 |
079711a016ea4fa9510f792cc6a93c56f3a684e5 | 4,060 | py | Python | socket_tentacles/__init__.py | innovationgarage/socket-tentacles | 1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6 | [
"MIT"
] | null | null | null | socket_tentacles/__init__.py | innovationgarage/socket-tentacles | 1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6 | [
"MIT"
] | null | null | null | socket_tentacles/__init__.py | innovationgarage/socket-tentacles | 1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6 | [
"MIT"
] | 1 | 2019-11-01T12:38:20.000Z | 2019-11-01T12:38:20.000Z | import socketserver
import socket
import sys
import threading
import json
import queue
import time
import datetime
import traceback
class TCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
def server_bind(self):
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.soc... | 31.472868 | 107 | 0.580049 | 438 | 4,060 | 5.262557 | 0.276256 | 0.043384 | 0.014317 | 0.017354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005622 | 0.299015 | 4,060 | 128 | 108 | 31.71875 | 0.804287 | 0.017241 | 0 | 0.09434 | 0 | 0 | 0.062123 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 1 | 0.150943 | false | 0 | 0.084906 | 0.018868 | 0.396226 | 0.056604 | 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 |
0797927e3d7bde5eb907276662251361ce156da5 | 475 | py | Python | leehao/learn63.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | 1 | 2020-02-26T14:52:17.000Z | 2020-02-26T14:52:17.000Z | leehao/learn63.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | null | null | null | leehao/learn63.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | null | null | null | # 随机6位密码 a-zA-Z0-9下划线
import random
source = ''
lower_char = [chr(x) for x in range(ord('a'), ord('z') + 1)]
upper_char = [chr(x) for x in range(ord('A'), ord('Z') + 1)]
number_char = [chr(x) for x in range(ord('0'), ord('9') + 1)]
source += "".join(lower_char)
source += "".join(upper_char)
source += "".join(number_ch... | 23.75 | 61 | 0.591579 | 78 | 475 | 3.5 | 0.423077 | 0.076923 | 0.087912 | 0.120879 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0.205128 | 0.205128 | 0 | 0.03125 | 0.191579 | 475 | 19 | 62 | 25 | 0.679688 | 0.075789 | 0 | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.133333 | 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 |
0799d6264b46d419f66659960f9e80e3239bdd1c | 1,237 | py | Python | gbic/tests.py | fga-eps-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 6 | 2017-08-24T13:18:21.000Z | 2017-10-03T18:06:13.000Z | gbic/tests.py | fga-gpp-mds/2017.2-Grupo9 | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 173 | 2017-08-31T15:29:01.000Z | 2017-12-14T13:40:13.000Z | gbic/tests.py | fga-gpp-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 2 | 2018-11-19T10:33:00.000Z | 2019-06-19T22:35:43.000Z | from django.test import TestCase
from rest_framework.test import APIRequestFactory
from .models import GBIC, GBICType
from .views import GBICListViewSet
# Create your tests here.
class GBICTest(TestCase):
def test_gbic_view_set(self):
request = APIRequestFactory().get("")
gbic_detail = GBICListVi... | 35.342857 | 74 | 0.672595 | 140 | 1,237 | 5.7 | 0.364286 | 0.06015 | 0.06015 | 0.037594 | 0.641604 | 0.591479 | 0.513784 | 0.513784 | 0.513784 | 0.513784 | 0 | 0.012539 | 0.226354 | 1,237 | 34 | 75 | 36.382353 | 0.821317 | 0.018593 | 0 | 0.357143 | 0 | 0 | 0.056106 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.25 | 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 |
079a7acf6ad24d3b711dca5d0ee7ae05fdfe00c0 | 23,239 | py | Python | fruits/core/fruit.py | alienkrieg/fruits | b3b4b6afd7f97d2d4060909689f9811dc97981ed | [
"MIT"
] | 4 | 2021-10-08T11:14:54.000Z | 2021-12-30T13:56:32.000Z | fruits/core/fruit.py | alienkrieg/fruits | b3b4b6afd7f97d2d4060909689f9811dc97981ed | [
"MIT"
] | null | null | null | fruits/core/fruit.py | alienkrieg/fruits | b3b4b6afd7f97d2d4060909689f9811dc97981ed | [
"MIT"
] | null | null | null | import inspect
from typing import List, Union, Set, Any
import numpy as np
from fruits.cache import Cache, CoquantileCache
from fruits.scope import force_input_shape, FitTransform
from fruits.core.callback import AbstractCallback
from fruits.signature.iss import SignatureCalculator, CachePlan
from fruits.words.word i... | 35.752308 | 77 | 0.588235 | 2,713 | 23,239 | 4.926281 | 0.134537 | 0.011223 | 0.010475 | 0.010774 | 0.414964 | 0.364834 | 0.296296 | 0.287168 | 0.246988 | 0.215563 | 0 | 0.003836 | 0.315676 | 23,239 | 649 | 78 | 35.807396 | 0.836572 | 0.3711 | 0 | 0.324759 | 0 | 0 | 0.055921 | 0.008709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128617 | false | 0 | 0.032154 | 0 | 0.241158 | 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 |
079c6865019ab91124c781c2644155172081ba8b | 9,863 | py | Python | workoutizer/__main__.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | workoutizer/__main__.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | workoutizer/__main__.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | import os
import argparse
import subprocess
import socket
import sys
import click
from django.core.management import execute_from_command_line
from workoutizer.settings import WORKOUTIZER_DIR, WORKOUTIZER_DB_PATH, TRACKS_DIR
from workoutizer import __version__
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SE... | 38.678431 | 120 | 0.667343 | 1,301 | 9,863 | 4.864719 | 0.250576 | 0.022752 | 0.0237 | 0.031285 | 0.244746 | 0.206668 | 0.187075 | 0.164955 | 0.12419 | 0.100174 | 0 | 0.008329 | 0.220927 | 9,863 | 254 | 121 | 38.830709 | 0.815331 | 0.00436 | 0 | 0.173077 | 0 | 0.004808 | 0.323589 | 0.020778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086538 | false | 0.043269 | 0.081731 | 0 | 0.206731 | 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 |
079ca32a831e991e4272d56b55460b5a2a9b338e | 8,807 | py | Python | bcbio/bam/trim.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | 1 | 2015-04-08T17:43:39.000Z | 2015-04-08T17:43:39.000Z | bcbio/bam/trim.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | bcbio/bam/trim.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | """Provide trimming of input reads from Fastq or BAM files.
"""
import os
import sys
import tempfile
from bcbio.utils import (file_exists, safe_makedir,
replace_suffix, append_stem, is_pair,
replace_directory, map_wrap)
from bcbio.log import logger
from bcbio.bam impor... | 40.962791 | 92 | 0.65641 | 1,132 | 8,807 | 4.834806 | 0.235866 | 0.038005 | 0.017906 | 0.020099 | 0.274438 | 0.157135 | 0.073634 | 0.059382 | 0.051526 | 0.051526 | 0 | 0.010923 | 0.241172 | 8,807 | 214 | 93 | 41.154206 | 0.80802 | 0.131941 | 0 | 0.149068 | 0 | 0 | 0.127795 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 1 | 0.055901 | false | 0 | 0.068323 | 0 | 0.21118 | 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 |
079cc8e3750a72f04c77d4be145f9892cc269784 | 13,419 | py | Python | FEniCSUI/AnalysesHub/views.py | nasserarbabi/FEniCSUI-dev | f8f161e1b49932843e01301212e7d031fff4f6c8 | [
"MIT"
] | null | null | null | FEniCSUI/AnalysesHub/views.py | nasserarbabi/FEniCSUI-dev | f8f161e1b49932843e01301212e7d031fff4f6c8 | [
"MIT"
] | 8 | 2021-03-10T21:59:52.000Z | 2021-09-22T19:12:57.000Z | FEniCSUI/AnalysesHub/views.py | nasserarbabi/FEniCSUI | f8f161e1b49932843e01301212e7d031fff4f6c8 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.views import APIView
from django.shortcuts import get_object_or_404
from dashboard.models import projects
from .models import AnalysisConfig, SolverResults, SolverProgress, DockerLogs
from rest_framework.parsers import FormParser, JSONParser, MultiPartPar... | 42.735669 | 158 | 0.634474 | 1,515 | 13,419 | 5.522772 | 0.186139 | 0.043504 | 0.053783 | 0.030118 | 0.534242 | 0.507589 | 0.460978 | 0.448667 | 0.398709 | 0.398709 | 0 | 0.013829 | 0.256353 | 13,419 | 313 | 159 | 42.872204 | 0.824632 | 0.073851 | 0 | 0.439252 | 0 | 0.009346 | 0.1237 | 0.005364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065421 | false | 0 | 0.070093 | 0 | 0.317757 | 0.004673 | 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 |
079d837b78456fbc7dc57dde76430c107de0f8b2 | 1,627 | py | Python | fs/opener/appfs.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/opener/appfs.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/opener/appfs.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # coding: utf-8
"""``AppFS`` opener definition.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from .base import Opener
from .errors import OpenerError
from ..subfs import ClosingSubFS
from .. import appfs
class AppFSOpener(Opener):
"""``... | 24.283582 | 68 | 0.566687 | 154 | 1,627 | 5.785714 | 0.454545 | 0.072952 | 0.053872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.328826 | 1,627 | 66 | 69 | 24.651515 | 0.812271 | 0.040565 | 0 | 0 | 0 | 0 | 0.107811 | 0.018076 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.14 | 0 | 0.24 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
079e4e7b1369d32d29e2b328e164f3c7bb362e85 | 23,180 | py | Python | scripts/modeling_toolbox/evaluation.py | cyberj0g/verification-classifier | efb19a3864e27a7f149a1c27ee8e13eaa19f96eb | [
"MIT"
] | 8 | 2019-06-06T08:16:45.000Z | 2021-06-26T11:53:48.000Z | scripts/modeling_toolbox/evaluation.py | cyberj0g/verification-classifier | efb19a3864e27a7f149a1c27ee8e13eaa19f96eb | [
"MIT"
] | 95 | 2019-03-27T08:36:01.000Z | 2022-02-10T00:15:20.000Z | scripts/modeling_toolbox/evaluation.py | cyberj0g/verification-classifier | efb19a3864e27a7f149a1c27ee8e13eaa19f96eb | [
"MIT"
] | 8 | 2019-02-28T11:21:46.000Z | 2022-03-21T07:34:20.000Z | import numpy as np
from sklearn.metrics import fbeta_score, roc_curve, auc, confusion_matrix
from sklearn.decomposition import PCA
from sklearn import random_projection
from sklearn import svm
from sklearn.ensemble import IsolationForest
import matplotlib.pyplot as plt
from keras.layers import Dense, Input, Dropout
fro... | 44.83559 | 122 | 0.519586 | 2,497 | 23,180 | 4.56628 | 0.098919 | 0.018856 | 0.017541 | 0.017892 | 0.733117 | 0.695492 | 0.661989 | 0.651903 | 0.635327 | 0.594983 | 0 | 0.016543 | 0.379336 | 23,180 | 516 | 123 | 44.922481 | 0.775978 | 0.009922 | 0 | 0.611399 | 0 | 0 | 0.07528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03886 | false | 0 | 0.041451 | 0 | 0.11399 | 0.012953 | 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 |
07a0528abcb6666cfcae1ee1c6cb300b86de98df | 1,896 | py | Python | tests/test_notifo_message.py | mrtazz/notifo.py | 26079db3b40c26661155af20a9f16a0eca06dbde | [
"MIT"
] | 3 | 2015-11-05T11:49:34.000Z | 2016-07-17T18:06:15.000Z | tests/test_notifo_message.py | mrtazz/notifo.py | 26079db3b40c26661155af20a9f16a0eca06dbde | [
"MIT"
] | null | null | null | tests/test_notifo_message.py | mrtazz/notifo.py | 26079db3b40c26661155af20a9f16a0eca06dbde | [
"MIT"
] | null | null | null | # encoding: utf-8
import unittest
import os
import sys
sys.path.append(os.getcwd())
from notifo import Notifo, send_message
class TestNotifyUser(unittest.TestCase):
def setUp(self):
self.provider = "test_provider"
self.provider_banned = "test_provider_msg_banned"
self.user = "test_user"
... | 38.693878 | 79 | 0.655591 | 206 | 1,896 | 5.781553 | 0.223301 | 0.080605 | 0.058774 | 0.054576 | 0.444165 | 0.391268 | 0.312343 | 0.287154 | 0.287154 | 0.287154 | 0 | 0.098532 | 0.245253 | 1,896 | 48 | 80 | 39.5 | 0.733753 | 0.007911 | 0 | 0.25641 | 0 | 0 | 0.206493 | 0.120809 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.153846 | false | 0 | 0.102564 | 0 | 0.282051 | 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 |
07a14721d51acde99d2ac0e4f6c8f439015ceb27 | 2,759 | py | Python | hebsafeharbor/identifier/signals/lexicon_based_recognizer.py | dkarmon/HebSafeHarbor | fdad7481c74feb78f8c3265c327eae7712cf16ce | [
"MIT"
] | 3 | 2022-03-10T14:41:54.000Z | 2022-03-28T11:18:56.000Z | hebsafeharbor/identifier/signals/lexicon_based_recognizer.py | 8400TheHealthNetwork/HebSafeHarbor | f618ca76d995e6fb74c0cb2f01478c7efd2d8836 | [
"MIT"
] | 2 | 2022-03-06T10:39:27.000Z | 2022-03-07T12:42:13.000Z | hebsafeharbor/identifier/signals/lexicon_based_recognizer.py | dkarmon/HebSafeHarbor | fdad7481c74feb78f8c3265c327eae7712cf16ce | [
"MIT"
] | 3 | 2022-02-15T09:50:08.000Z | 2022-02-22T08:43:26.000Z | from typing import List
from presidio_analyzer import EntityRecognizer, RecognizerResult, AnalysisExplanation
from presidio_analyzer.nlp_engine import NlpArtifacts
from hebsafeharbor.common.terms_recognizer import TermsRecognizer
class LexiconBasedRecognizer(EntityRecognizer):
"""
A class which extends the E... | 43.793651 | 117 | 0.697717 | 303 | 2,759 | 6.188119 | 0.356436 | 0.0608 | 0.0352 | 0.0256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001432 | 0.240667 | 2,759 | 62 | 118 | 44.5 | 0.893556 | 0.357738 | 0 | 0 | 0 | 0 | 0.001238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.034483 | 0.137931 | 0 | 0.344828 | 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 |
07a42ef8c15bd224503fc4a06fa31dab2756c605 | 35,966 | py | Python | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py | cyx233/vim_config | f09c9206344c17df20a05dd2c08a02f098a7e873 | [
"MIT"
] | null | null | null | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py | cyx233/vim_config | f09c9206344c17df20a05dd2c08a02f098a7e873 | [
"MIT"
] | null | null | null | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py | cyx233/vim_config | f09c9206344c17df20a05dd2c08a02f098a7e873 | [
"MIT"
] | null | null | null | # encoding: utf-8
#
# Copyright (C) 2018 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | 34.783366 | 79 | 0.508564 | 3,639 | 35,966 | 4.819181 | 0.12366 | 0.07584 | 0.041512 | 0.050408 | 0.560358 | 0.484575 | 0.41267 | 0.356446 | 0.30467 | 0.27211 | 0 | 0.041237 | 0.331813 | 35,966 | 1,033 | 80 | 34.817038 | 0.688499 | 0.113858 | 0 | 0.488372 | 0 | 0 | 0.20837 | 0.015273 | 0 | 0 | 0 | 0.000968 | 0.023256 | 1 | 0.040392 | false | 0 | 0.014688 | 0 | 0.05508 | 0.011016 | 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 |
07a4651e3c80a36d3030fc52e231138dba1e43c1 | 1,032 | py | Python | sentiment/config.py | TheRensselaerIDEA/covid19_tweet_ids | fee7d951b11cf2650e48668614c30672179ab3af | [
"MIT"
] | null | null | null | sentiment/config.py | TheRensselaerIDEA/covid19_tweet_ids | fee7d951b11cf2650e48668614c30672179ab3af | [
"MIT"
] | null | null | null | sentiment/config.py | TheRensselaerIDEA/covid19_tweet_ids | fee7d951b11cf2650e48668614c30672179ab3af | [
"MIT"
] | null | null | null | """
Config class containing all the settings for running sentiment scoring tool
"""
import jsonpickle
class Config(object):
"""Container for sentiment scoring tool settings.
"""
def __init__(self):
"""Initializes the Config instance.
"""
#Elasticsearch settings
self.elasti... | 27.157895 | 75 | 0.622093 | 113 | 1,032 | 5.477876 | 0.584071 | 0.137318 | 0.06462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016506 | 0.295543 | 1,032 | 38 | 76 | 27.157895 | 0.834938 | 0.281977 | 0 | 0 | 0 | 0 | 0.008658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
07a4d5bc6f7dc36e1d1fd72f273d7cc3af846e4b | 9,184 | py | Python | tests/ut/python/dataset/test_invert.py | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | 4 | 2021-01-26T09:14:01.000Z | 2021-01-26T09:17:24.000Z | tests/ut/python/dataset/test_invert.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/dataset/test_invert.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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... | 35.875 | 111 | 0.579377 | 1,095 | 9,184 | 4.641096 | 0.153425 | 0.047226 | 0.023613 | 0.047226 | 0.749311 | 0.689886 | 0.615899 | 0.550767 | 0.512003 | 0.484652 | 0 | 0.019874 | 0.309669 | 9,184 | 255 | 112 | 36.015686 | 0.781703 | 0.117051 | 0 | 0.530201 | 0 | 0 | 0.048209 | 0.010518 | 0 | 0 | 0 | 0 | 0.006711 | 1 | 0.040268 | false | 0 | 0.04698 | 0 | 0.087248 | 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 |
07a4fdcadf45ca16af301e1936af3cd96dd967fd | 748 | py | Python | puzzle/tests/test_candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | null | null | null | puzzle/tests/test_candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | 9 | 2017-10-25T10:03:36.000Z | 2018-06-12T22:49:22.000Z | puzzle/tests/test_candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | null | null | null | from parameterized import parameterized
from numpy.testing import TestCase
from .. import candy
class TestCollectCandies(TestCase):
@parameterized.expand(
[(5, 5, 12,
[[2, 1, 1, 1, 1], [2, 2, 1, 1, 1], [1, 2, 1, 1, 1],
[2, 2, 1, 1, 3], [2, 2, 2, 2, 2]])]
)
def test_candy(self... | 35.619048 | 73 | 0.481283 | 102 | 748 | 3.480392 | 0.372549 | 0.061972 | 0.042254 | 0.033803 | 0.08169 | 0.053521 | 0.039437 | 0 | 0 | 0 | 0 | 0.105368 | 0.32754 | 748 | 20 | 74 | 37.4 | 0.600398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 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 |
07a74f63c4315c5c81ce34abcbe9eb4483cc9b1f | 4,783 | py | Python | tests/test_dynamodbHandler.py | unfoldingWord-dev/python-aws-tools | 8e856697ab07c5c33e60cde2d82ac805dec3ddf3 | [
"MIT"
] | 1 | 2017-08-23T22:31:23.000Z | 2017-08-23T22:31:23.000Z | tests/test_dynamodbHandler.py | unfoldingWord-dev/python-aws-tools | 8e856697ab07c5c33e60cde2d82ac805dec3ddf3 | [
"MIT"
] | null | null | null | tests/test_dynamodbHandler.py | unfoldingWord-dev/python-aws-tools | 8e856697ab07c5c33e60cde2d82ac805dec3ddf3 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals, print_function
import mock
import unittest
import d43_aws_tools as aws_tools
from boto3.dynamodb.conditions import Attr
class DynamoDBHandlerTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
with mock.patch("d43_aws_tools.dynamodb_han... | 40.533898 | 104 | 0.59147 | 548 | 4,783 | 4.979927 | 0.25 | 0.096739 | 0.093807 | 0.051301 | 0.439355 | 0.364969 | 0.335654 | 0.250641 | 0.219861 | 0.187615 | 0 | 0.009283 | 0.279323 | 4,783 | 117 | 105 | 40.880342 | 0.78242 | 0.10391 | 0 | 0.23913 | 0 | 0 | 0.135314 | 0.031589 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.108696 | false | 0 | 0.054348 | 0 | 0.173913 | 0.01087 | 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 |
07a75032397b40d87190a129b70b4805e05f8c42 | 799 | py | Python | app.py | sbustamante/heroku_app | 6c8ff0b570750f3fe53ec67e24b71641167d53ce | [
"MIT"
] | null | null | null | app.py | sbustamante/heroku_app | 6c8ff0b570750f3fe53ec67e24b71641167d53ce | [
"MIT"
] | null | null | null | app.py | sbustamante/heroku_app | 6c8ff0b570750f3fe53ec67e24b71641167d53ce | [
"MIT"
] | null | null | null | from dash import Dash, html, dcc
import plotly.express as px
import pandas as pd
app = Dash(__name__)
server = app.server
# assume you have a "long-form" data frame
# see https://plotly.com/python/px-arguments/ for more options
df = pd.DataFrame({
"Fruit": ["Apples", "Oranges", "Bananas", "Apples", "Oranges", "Ba... | 24.96875 | 78 | 0.617021 | 111 | 799 | 4.324324 | 0.621622 | 0.033333 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010903 | 0.196496 | 799 | 32 | 79 | 24.96875 | 0.73676 | 0.126408 | 0 | 0 | 0 | 0 | 0.284483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 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 |
07a86aa8bb5513e6175425568029999ed308c9e2 | 23,759 | py | Python | peter_sslers/web/lib/form_utils.py | aptise/peter_sslers | 1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0 | [
"MIT"
] | 35 | 2016-04-21T18:55:31.000Z | 2022-03-30T08:22:43.000Z | peter_sslers/web/lib/form_utils.py | aptise/peter_sslers | 1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0 | [
"MIT"
] | 8 | 2018-05-23T13:38:49.000Z | 2021-03-19T21:05:44.000Z | peter_sslers/web/lib/form_utils.py | aptise/peter_sslers | 1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0 | [
"MIT"
] | 2 | 2016-08-18T21:07:11.000Z | 2017-01-11T09:47:40.000Z | # pypi
import six
# local
from ...lib import db as lib_db
from ...lib import utils
from ...model import objects as model_objects
from ...model import utils as model_utils
from . import formhandling
# ==============================================================================
def decode_args(getcreate_args):
... | 39.271074 | 151 | 0.638032 | 2,444 | 23,759 | 5.864566 | 0.115385 | 0.062094 | 0.053024 | 0.035164 | 0.610898 | 0.572385 | 0.518384 | 0.497384 | 0.471848 | 0.442964 | 0 | 0.003051 | 0.282672 | 23,759 | 604 | 152 | 39.336093 | 0.837939 | 0.182373 | 0 | 0.424242 | 0 | 0 | 0.148851 | 0.045716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027972 | false | 0.006993 | 0.018648 | 0.002331 | 0.130536 | 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 |
07a919ed87f13258649cbf2c9c6e2971a4de419e | 5,568 | py | Python | AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py | jlamperez/Vitis-Tutorials | 9a5b611caabb5656bbb2879116e032227b164bfd | [
"Apache-2.0"
] | 1 | 2022-03-09T06:15:43.000Z | 2022-03-09T06:15:43.000Z | AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py | jlamperez/Vitis-Tutorials | 9a5b611caabb5656bbb2879116e032227b164bfd | [
"Apache-2.0"
] | null | null | null | AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py | jlamperez/Vitis-Tutorials | 9a5b611caabb5656bbb2879116e032227b164bfd | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020–2021 Xilinx, 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 w... | 33.341317 | 119 | 0.541667 | 703 | 5,568 | 4.261735 | 0.28165 | 0.030374 | 0.038051 | 0.025367 | 0.281709 | 0.267023 | 0.267023 | 0.224967 | 0.194927 | 0.14219 | 0 | 0.038182 | 0.332076 | 5,568 | 166 | 120 | 33.542169 | 0.767142 | 0.231861 | 0 | 0.188119 | 0 | 0 | 0.051452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0 | 0.029703 | 0 | 0.049505 | 0.089109 | 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 |
07ad506b318b0e47d29c2d5e943847cb809ea5ef | 721 | py | Python | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 7 | 2021-02-19T20:00:08.000Z | 2022-01-14T10:51:12.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 14 | 2021-02-20T17:40:56.000Z | 2022-01-01T19:53:38.000Z | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
import busio
from adafruit_icm20x import ICM20948
cycles = 200
i2c = busio.I2C(board.SCL, board.SDA)
icm = ICM20948(i2c)
# Cycle between two data rates
# Best viewed in the Mu serial plotter where y... | 25.75 | 62 | 0.718447 | 112 | 721 | 4.526786 | 0.508929 | 0.110454 | 0.086785 | 0.118343 | 0.351085 | 0.2643 | 0.2643 | 0.2643 | 0.2643 | 0.2643 | 0 | 0.048443 | 0.198336 | 721 | 27 | 63 | 26.703704 | 0.82872 | 0.335645 | 0 | 0.444444 | 0 | 0 | 0.042463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 |
07afdc77d12fe88ab48cead7329435544528b522 | 8,032 | py | Python | utils/common.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/common.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/common.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | import datetime
import json
import os
from pathlib import Path
from types import SimpleNamespace
from typing import List
from typing import NamedTuple, Union, Optional, Callable
from uuid import uuid3, NAMESPACE_DNS
from dateutil.parser import parse
_VIDEO_SUFFIXES = [".mkv", ".mp4"]
_IMAGE_SUFFIXES = [".jpg"]
_PERMI... | 33.606695 | 140 | 0.671564 | 1,137 | 8,032 | 4.41073 | 0.135444 | 0.107478 | 0.095713 | 0.033898 | 0.44985 | 0.343968 | 0.302293 | 0.257228 | 0.218943 | 0.139182 | 0 | 0.00471 | 0.233441 | 8,032 | 238 | 141 | 33.747899 | 0.80981 | 0.022908 | 0 | 0.054645 | 0 | 0 | 0.169472 | 0.037108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.04918 | 0.016393 | 0.224044 | 0.065574 | 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 |
07b3b408f0f9c7313a3971b858fbe6beb4247623 | 1,733 | py | Python | taattack/_datasets/dataset.py | linerxliner/ValCAT | e62985c6c64f6415bb2bb4716bd02d9686badd47 | [
"MIT"
] | null | null | null | taattack/_datasets/dataset.py | linerxliner/ValCAT | e62985c6c64f6415bb2bb4716bd02d9686badd47 | [
"MIT"
] | null | null | null | taattack/_datasets/dataset.py | linerxliner/ValCAT | e62985c6c64f6415bb2bb4716bd02d9686badd47 | [
"MIT"
] | null | null | null | class Dataset:
_data = None
_first_text_col = 'text'
_second_text_col = None
_label_col = 'label'
def __init__(self):
self._idx = 0
if self._data is None:
raise Exception('Dataset is not loaded')
def __iter__(self):
return self
def __next__(self):
... | 34.66 | 142 | 0.589729 | 227 | 1,733 | 4.105727 | 0.189427 | 0.145923 | 0.090129 | 0.109442 | 0.482833 | 0.482833 | 0.482833 | 0.482833 | 0.482833 | 0.482833 | 0 | 0.003336 | 0.308136 | 1,733 | 50 | 143 | 34.66 | 0.773978 | 0 | 0 | 0.292683 | 0 | 0 | 0.017301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0 | 0.04878 | 0.439024 | 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 |
07b47bbb8eb7acb013788dd5e04ca55c384f4c1f | 7,732 | py | Python | scripts/extract_gs_citations.py | akhilpandey95/scholarlyimpact | 215ae832c90f0564fa0301e4c3f1c99525617625 | [
"MIT"
] | null | null | null | scripts/extract_gs_citations.py | akhilpandey95/scholarlyimpact | 215ae832c90f0564fa0301e4c3f1c99525617625 | [
"MIT"
] | 18 | 2020-02-20T23:40:26.000Z | 2020-10-20T04:05:43.000Z | scripts/extract_gs_citations.py | akhilpandey95/scholarlyimpact | 215ae832c90f0564fa0301e4c3f1c99525617625 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# This Source Code Form is subject to the terms of the MIT
# License. If a copy of the same was not distributed with this
# file, You can obtain one at
# https://github.com/akhilpandey95/scholarlyimpact/blob/master/LICENSE.
import os
import csv
import glob
import json
import requests
import sub... | 26.847222 | 91 | 0.602431 | 940 | 7,732 | 4.856383 | 0.269149 | 0.009858 | 0.015772 | 0.014896 | 0.24644 | 0.169332 | 0.146988 | 0.146988 | 0.126835 | 0.126835 | 0 | 0.004897 | 0.313373 | 7,732 | 287 | 92 | 26.940767 | 0.854963 | 0.390843 | 0 | 0.265487 | 0 | 0 | 0.072748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070796 | false | 0.017699 | 0.132743 | 0 | 0.318584 | 0.044248 | 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 |
07b56e4319a20d96b921852eb21d1c92a5f276de | 4,672 | py | Python | dist-packages/reportlab/pdfgen/pathobject.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | 51 | 2015-01-20T19:50:34.000Z | 2022-03-05T21:23:32.000Z | dist-packages/reportlab/pdfgen/pathobject.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | 16 | 2015-11-15T04:23:43.000Z | 2021-09-27T14:14:20.000Z | src/reportlab/pdfgen/pathobject.py | guildenstern70/pyfab | 34d786fec17192591ac3c5f73913a9b04311695a | [
"MIT"
] | 46 | 2015-03-28T10:18:14.000Z | 2021-12-16T15:57:47.000Z | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/pathobject.py
__version__=''' $Id$ '''
__doc__="""
PDFPathObject is an efficient way to draw paths on a Canvas. Do not
instantiate directly, obt... | 36.5 | 109 | 0.627354 | 710 | 4,672 | 4.053521 | 0.35493 | 0.048645 | 0.038916 | 0.019458 | 0.12196 | 0.091035 | 0.068103 | 0.053509 | 0.053509 | 0.033357 | 0 | 0.041036 | 0.264555 | 4,672 | 127 | 110 | 36.787402 | 0.796566 | 0.376498 | 0 | 0 | 0 | 0 | 0.12196 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 1 | 0.194444 | false | 0 | 0.027778 | 0 | 0.25 | 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 |
07b68a248a019f47e10cdf7898c67384df56c25f | 1,447 | py | Python | Madlibs/madlibs.py | nikhil-amin/python-mini-project | cd70a6a43408ce74cff501ce4d4658ab82260c2d | [
"MIT"
] | 2 | 2021-08-20T08:59:28.000Z | 2021-11-23T00:17:15.000Z | Madlibs/madlibs.py | nikhil-amin/python-mini-project | cd70a6a43408ce74cff501ce4d4658ab82260c2d | [
"MIT"
] | null | null | null | Madlibs/madlibs.py | nikhil-amin/python-mini-project | cd70a6a43408ce74cff501ce4d4658ab82260c2d | [
"MIT"
] | 1 | 2022-01-06T16:35:43.000Z | 2022-01-06T16:35:43.000Z | import random
print("Title : Eat, Drink, And Be Sick")
noun = []
for i in range(4):
n = input("Enter noun : ")
noun.append(n)
plural = []
for i in range(6):
pn = input("Enter plural noun : ")
plural.append(pn)
adjective = []
for i in range(2):
a = input("Enter adjective : ")
adjective.append(a)
... | 60.291667 | 270 | 0.676572 | 209 | 1,447 | 4.674641 | 0.430622 | 0.14739 | 0.110542 | 0.033777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002536 | 0.182446 | 1,447 | 23 | 271 | 62.913043 | 0.823331 | 0 | 0 | 0 | 0 | 0 | 0.483068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.304348 | 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 |
07b6a4b93bbebd4e00153c0e368d7d75f4691489 | 7,337 | py | Python | tests/zone_api_test/core/zone_manager_test.py | yfaway/zone-apis | 4aa4120cb4a66812dac1d32e86e825bbafe652b8 | [
"MIT"
] | 1 | 2021-11-22T11:51:17.000Z | 2021-11-22T11:51:17.000Z | tests/zone_api_test/core/zone_manager_test.py | yfaway/zone-apis | 4aa4120cb4a66812dac1d32e86e825bbafe652b8 | [
"MIT"
] | 20 | 2021-01-31T00:20:34.000Z | 2022-01-09T18:02:31.000Z | tests/zone_api_test/core/zone_manager_test.py | yfaway/zone-apis | 4aa4120cb4a66812dac1d32e86e825bbafe652b8 | [
"MIT"
] | null | null | null | from zone_api.core.zone_manager import ZoneManager
from zone_api import platform_encapsulator as pe
from zone_api.core.zone import Zone
from zone_api.core.zone_event import ZoneEvent
from zone_api.core.devices.dimmer import Dimmer
from zone_api.core.devices.switch import Fan, Light, Switch
from zone_api.core.devices.i... | 40.535912 | 118 | 0.694698 | 892 | 7,337 | 5.445067 | 0.147982 | 0.05559 | 0.044472 | 0.045501 | 0.617048 | 0.584311 | 0.578546 | 0.541487 | 0.514721 | 0.495162 | 0 | 0.00932 | 0.19572 | 7,337 | 180 | 119 | 40.761111 | 0.81376 | 0.004225 | 0 | 0.409091 | 0 | 0 | 0.022883 | 0.002878 | 0 | 0 | 0 | 0 | 0.189394 | 1 | 0.136364 | false | 0 | 0.075758 | 0 | 0.219697 | 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 |
07b88bc36babff3a11858ef34a69a78ca7bd4caf | 37,841 | py | Python | src/streamlink_cli/main.py | melmorabity/streamlink | 24c59a23103922977991acc28741a323d8efa7a1 | [
"BSD-2-Clause"
] | null | null | null | src/streamlink_cli/main.py | melmorabity/streamlink | 24c59a23103922977991acc28741a323d8efa7a1 | [
"BSD-2-Clause"
] | null | null | null | src/streamlink_cli/main.py | melmorabity/streamlink | 24c59a23103922977991acc28741a323d8efa7a1 | [
"BSD-2-Clause"
] | null | null | null | import argparse
import errno
import logging
import os
import platform
import signal
import sys
from collections import OrderedDict
from contextlib import closing
from distutils.version import StrictVersion
from functools import partial
from gettext import gettext
from itertools import chain
from pathlib import Path
fro... | 33.999102 | 122 | 0.640258 | 4,624 | 37,841 | 5.084343 | 0.132137 | 0.01812 | 0.043641 | 0.012165 | 0.292812 | 0.197618 | 0.141557 | 0.115781 | 0.098681 | 0.094088 | 0 | 0.002896 | 0.269866 | 37,841 | 1,112 | 123 | 34.029676 | 0.848022 | 0.09273 | 0 | 0.264743 | 0 | 0.001255 | 0.13367 | 0.015871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043915 | false | 0.006274 | 0.040151 | 0.002509 | 0.110414 | 0.007528 | 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 |
07b8d02790ae07e8540167a649afc0cab32e02e9 | 16,807 | py | Python | dbaccesslibUserMailInfo.py | Koushik-ks/FlaskAPP | 6f1bd98450bc8f33c3896aa7ec690c51dc414d19 | [
"MIT"
] | null | null | null | dbaccesslibUserMailInfo.py | Koushik-ks/FlaskAPP | 6f1bd98450bc8f33c3896aa7ec690c51dc414d19 | [
"MIT"
] | null | null | null | dbaccesslibUserMailInfo.py | Koushik-ks/FlaskAPP | 6f1bd98450bc8f33c3896aa7ec690c51dc414d19 | [
"MIT"
] | 1 | 2019-11-08T06:49:57.000Z | 2019-11-08T06:49:57.000Z | from io import BytesIO
from io import StringIO
import json
from bson.dbref import DBRef
import datetime
from bson import json_util
import logging
import base64
jsonCode ={
"building":{
"Essae Vaishnavi Solitaire": {
"id": "B1",
"division": {
"SS"... | 42.335013 | 242 | 0.404712 | 1,484 | 16,807 | 4.46159 | 0.161725 | 0.044404 | 0.034738 | 0.015708 | 0.497659 | 0.4599 | 0.450989 | 0.421991 | 0.421991 | 0.406434 | 0 | 0.033891 | 0.448742 | 16,807 | 396 | 243 | 42.441919 | 0.680734 | 0.025287 | 0 | 0.534031 | 0 | 0.002618 | 0.120151 | 0.013744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02356 | false | 0 | 0.028796 | 0 | 0.086387 | 0.015707 | 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 |
07b8f248ebba127a7ba553594c485e647090e69f | 3,489 | py | Python | src/test/dags/bq_to_cm_dag_test.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | null | null | null | src/test/dags/bq_to_cm_dag_test.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | null | null | null | src/test/dags/bq_to_cm_dag_test.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | null | null | null | # python3
# coding=utf-8
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 35.602041 | 74 | 0.755804 | 484 | 3,489 | 5.097107 | 0.359504 | 0.036887 | 0.025942 | 0.014593 | 0.126064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004711 | 0.14818 | 3,489 | 97 | 75 | 35.969072 | 0.82537 | 0.219834 | 0 | 0 | 0 | 0 | 0.201855 | 0.08757 | 0 | 0 | 0 | 0 | 0.065574 | 1 | 0.04918 | false | 0 | 0.147541 | 0 | 0.213115 | 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 |
07b971c0c6fde3e7ed6901642724f170bca1dffb | 10,781 | py | Python | talentmap_api/common/management/commands/load_xml.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 5 | 2018-08-09T18:51:12.000Z | 2021-11-08T10:28:17.000Z | talentmap_api/common/management/commands/load_xml.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 232 | 2017-06-16T02:09:54.000Z | 2018-05-10T16:15:48.000Z | talentmap_api/common/management/commands/load_xml.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 4 | 2018-06-13T14:49:27.000Z | 2021-06-30T22:29:15.000Z | from django.core.management.base import BaseCommand
import logging
import re
from talentmap_api.common.xml_helpers import XMLloader, strip_extra_spaces, parse_boolean, parse_date, get_nested_tag
from talentmap_api.language.models import Language, Proficiency
from talentmap_api.position.models import Grade, Skill, Pos... | 36.422297 | 142 | 0.66914 | 1,288 | 10,781 | 5.18323 | 0.190217 | 0.053925 | 0.047933 | 0.039844 | 0.281156 | 0.226932 | 0.211803 | 0.19263 | 0.172558 | 0.140803 | 0 | 0.007509 | 0.221779 | 10,781 | 295 | 143 | 36.545763 | 0.7882 | 0.027548 | 0 | 0.185345 | 0 | 0.00431 | 0.318633 | 0.16638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.030172 | 0 | 0.181034 | 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 |
07b9b8864e1cb2b18a6326e38faad88d4012991a | 2,581 | py | Python | gluon/tests/test_recfile.py | oscarfonts/web2py | a18e0e489fe7a770c62fca510a4299886b0a9bb7 | [
"BSD-3-Clause"
] | null | null | null | gluon/tests/test_recfile.py | oscarfonts/web2py | a18e0e489fe7a770c62fca510a4299886b0a9bb7 | [
"BSD-3-Clause"
] | null | null | null | gluon/tests/test_recfile.py | oscarfonts/web2py | a18e0e489fe7a770c62fca510a4299886b0a9bb7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for gluon.recfile
"""
import unittest
import os
import shutil
import uuid
from .fix_path import fix_sys_path
fix_sys_path(__file__)
from gluon import recfile
class TestRecfile(unittest.TestCase):
def setUp(self):
os.mkdir('tests')
d... | 34.413333 | 92 | 0.593181 | 300 | 2,581 | 5 | 0.22 | 0.056 | 0.084 | 0.08 | 0.739333 | 0.613333 | 0.613333 | 0.564 | 0.512 | 0.485333 | 0 | 0.006386 | 0.271988 | 2,581 | 74 | 93 | 34.878378 | 0.791911 | 0.027509 | 0 | 0.534483 | 0 | 0 | 0.052062 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.189655 | 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 |
07ba0eee7b3f5dcbd7cf03e65b5f80e0ede665d0 | 1,022 | py | Python | configLambdas.py | cfrome77/liquid-stats | 7a4d751dea215c94b650beb154a90abce7e1592d | [
"MIT"
] | 4 | 2020-06-21T14:43:40.000Z | 2021-12-29T17:02:18.000Z | configLambdas.py | cfrome77/liquid-stats | 7a4d751dea215c94b650beb154a90abce7e1592d | [
"MIT"
] | 21 | 2018-09-18T18:42:53.000Z | 2022-01-04T05:55:12.000Z | configLambdas.py | cfrome77/liquid-stats | 7a4d751dea215c94b650beb154a90abce7e1592d | [
"MIT"
] | null | null | null | import json
import os
import subprocess
from dotenv import load_dotenv
from subprocess import check_output, Popen, PIPE
load_dotenv()
# Accessing variables.
CLIENT_ID = os.environ.get('CLIENT_ID')
CLIENT_SECRET = os.environ.get('CLIENT_SECRET')
USERNAME = os.environ.get('USERNAME')
BUCKET_NAME = os.environ.get('BUCK... | 26.894737 | 122 | 0.714286 | 123 | 1,022 | 5.707317 | 0.341463 | 0.045584 | 0.068376 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001153 | 0.151663 | 1,022 | 37 | 123 | 27.621622 | 0.808535 | 0.019569 | 0 | 0 | 0 | 0 | 0.277 | 0.14 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07bb317b5c0941f28a4da7f31413b20f4a8bda28 | 7,838 | py | Python | yolo3/utils.py | gaxu/keras-yolo3 | 7f6be0fb9a8583401246bfe65d2df2ee40777d72 | [
"MIT"
] | null | null | null | yolo3/utils.py | gaxu/keras-yolo3 | 7f6be0fb9a8583401246bfe65d2df2ee40777d72 | [
"MIT"
] | null | null | null | yolo3/utils.py | gaxu/keras-yolo3 | 7f6be0fb9a8583401246bfe65d2df2ee40777d72 | [
"MIT"
] | 4 | 2021-02-25T08:21:15.000Z | 2021-02-25T08:56:39.000Z | """Miscellaneous utility functions."""
from functools import reduce
from PIL import Image
import numpy as np
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
def compose(*funcs):
"""Compose arbitrarily many functions, evaluated left to right.
Reference: https://mathieularose.com/function-composition-in-... | 32.522822 | 130 | 0.578719 | 1,309 | 7,838 | 3.296409 | 0.148969 | 0.016686 | 0.025492 | 0.032445 | 0.473233 | 0.448204 | 0.422711 | 0.390267 | 0.390267 | 0.377984 | 0 | 0.048054 | 0.245981 | 7,838 | 240 | 131 | 32.658333 | 0.682064 | 0.128477 | 0 | 0.379518 | 0 | 0 | 0.009168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.024096 | 0.006024 | 0.10241 | 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 |
07bd8ff47d8f5245f9a21b92c33b949fce1127a8 | 8,482 | py | Python | sportsreference/ncaaf/rankings.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | null | null | null | sportsreference/ncaaf/rankings.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | null | null | null | sportsreference/ncaaf/rankings.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | 1 | 2020-07-08T16:05:25.000Z | 2020-07-08T16:05:25.000Z | import re
from pyquery import PyQuery as pq
from .. import utils
from .constants import RANKINGS_SCHEME, RANKINGS_URL
from six.moves.urllib.error import HTTPError
class Rankings:
"""
Get all Associated Press (AP) rankings on a week-by-week basis.
Grab a list of the rankings published by the Associated Pr... | 39.821596 | 79 | 0.549399 | 992 | 8,482 | 4.627016 | 0.225806 | 0.015251 | 0.0122 | 0.025054 | 0.359477 | 0.3122 | 0.232462 | 0.226797 | 0.226797 | 0.226797 | 0 | 0.005807 | 0.370667 | 8,482 | 212 | 80 | 40.009434 | 0.854065 | 0.534072 | 0 | 0.142857 | 0 | 0 | 0.092076 | 0.017324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.064935 | 0 | 0.246753 | 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 |
07bd958d061b56e11538171ee991b3269000d33d | 5,937 | py | Python | ding/hpc_rl/wrapper.py | davide97l/DI-engine | d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423 | [
"Apache-2.0"
] | 1 | 2022-03-21T16:15:39.000Z | 2022-03-21T16:15:39.000Z | ding/hpc_rl/wrapper.py | jiaruonan/DI-engine | 268d77db3cb54401b2cfc83e2bc3ec87c31e7b83 | [
"Apache-2.0"
] | null | null | null | ding/hpc_rl/wrapper.py | jiaruonan/DI-engine | 268d77db3cb54401b2cfc83e2bc3ec87c31e7b83 | [
"Apache-2.0"
] | null | null | null | import importlib
from ditk import logging
from collections import OrderedDict
from functools import wraps
import ding
'''
Overview:
`hpc_wrapper` is the wrapper for functions which are supported by hpc. If a function is wrapped by it, we will
search for its hpc type and return the function implemented by hpc.
... | 44.30597 | 120 | 0.578912 | 818 | 5,937 | 3.96088 | 0.224939 | 0.037037 | 0.022222 | 0.02963 | 0.259259 | 0.163889 | 0.131173 | 0.119444 | 0.062346 | 0.062346 | 0 | 0.005862 | 0.310426 | 5,937 | 133 | 121 | 44.639098 | 0.78554 | 0.006401 | 0 | 0.082192 | 0 | 0 | 0.159641 | 0.044843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0 | 0.082192 | 0 | 0.219178 | 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 |
07bf6145f03382a8bd2f1aee40dd398c31e7d6c2 | 10,343 | py | Python | telethon_generator/parsers/tlobject.py | islam-200555/Telethon | 85103bcf6de8024c902ede98f0b9bf0f7f47a0aa | [
"MIT"
] | 2 | 2021-01-06T12:49:49.000Z | 2021-04-23T16:32:13.000Z | telethon_generator/parsers/tlobject.py | islam-200555/Telethon | 85103bcf6de8024c902ede98f0b9bf0f7f47a0aa | [
"MIT"
] | null | null | null | telethon_generator/parsers/tlobject.py | islam-200555/Telethon | 85103bcf6de8024c902ede98f0b9bf0f7f47a0aa | [
"MIT"
] | null | null | null | import re
from zlib import crc32
from ..utils import snake_to_camel_case
CORE_TYPES = (
0xbc799737, # boolFalse#bc799737 = Bool;
0x997275b5, # boolTrue#997275b5 = Bool;
0x3fedd339, # true#3fedd339 = True;
0x1cb5c415, # vector#1cb5c415 {t:Type} # [ t ] = Vector t;
)
# https://github.com/telegramde... | 35.788927 | 153 | 0.541332 | 1,258 | 10,343 | 4.321145 | 0.227345 | 0.022075 | 0.00883 | 0.00883 | 0.094555 | 0.066961 | 0.022443 | 0.012509 | 0.012509 | 0 | 0 | 0.019301 | 0.33878 | 10,343 | 288 | 154 | 35.913194 | 0.775552 | 0.252441 | 0 | 0.098958 | 0 | 0 | 0.088208 | 0.009594 | 0.005208 | 0 | 0.00533 | 0 | 0.005208 | 1 | 0.057292 | false | 0 | 0.015625 | 0.005208 | 0.130208 | 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 |
07c02ac3abe7a10db3f40c2457c57bca98b41742 | 2,469 | bzl | Python | dotnet/private/actions/resx_core.bzl | purkhusid/rules_dotnet | 934e62d65ed3657be20b2ae3a63e032a2de9ff84 | [
"Apache-2.0"
] | 143 | 2016-03-15T20:37:54.000Z | 2022-02-25T12:30:08.000Z | dotnet/private/actions/resx_core.bzl | purkhusid/rules_dotnet | 934e62d65ed3657be20b2ae3a63e032a2de9ff84 | [
"Apache-2.0"
] | 176 | 2016-03-17T13:28:50.000Z | 2022-03-30T21:19:24.000Z | dotnet/private/actions/resx_core.bzl | purkhusid/rules_dotnet | 934e62d65ed3657be20b2ae3a63e032a2de9ff84 | [
"Apache-2.0"
] | 79 | 2016-03-16T11:34:56.000Z | 2022-02-04T10:54:00.000Z | "Actions for compiling resx files"
load(
"@io_bazel_rules_dotnet//dotnet/private:providers.bzl",
"DotnetResourceInfo",
)
def _make_runner_arglist(dotnet, source, output, resgen):
args = dotnet.actions.args()
if type(source) == "Target":
args.add_all(source.files)
else:
args.add(so... | 32.92 | 159 | 0.651681 | 291 | 2,469 | 5.426117 | 0.388316 | 0.032932 | 0.036099 | 0.041799 | 0.037999 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00108 | 0.249899 | 2,469 | 74 | 160 | 33.364865 | 0.851512 | 0.332928 | 0 | 0.042553 | 0 | 0 | 0.130141 | 0.045427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0 | 0 | 0.085106 | 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 |
07c0bb5052572bdefa7514e11ef8a10e0bb0427e | 1,035 | py | Python | test/jit/test_modules.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 183 | 2018-04-06T21:10:36.000Z | 2022-03-30T15:05:24.000Z | test/jit/test_modules.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 818 | 2020-02-07T02:36:44.000Z | 2022-03-31T23:49:44.000Z | test/jit/test_modules.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 58 | 2018-06-05T16:40:18.000Z | 2022-03-16T15:37:29.000Z | # Owner(s): ["oncall: jit"]
import torch
import os
import sys
from torch.testing._internal.jit_utils import JitTestCase
# Make the helper files in test/ importable
pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(pytorch_test_dir)
if __name__ == '__main__':
raise Ru... | 30.441176 | 81 | 0.630918 | 139 | 1,035 | 4.410072 | 0.568345 | 0.029364 | 0.045677 | 0.04894 | 0.052202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006596 | 0.267633 | 1,035 | 33 | 82 | 31.363636 | 0.802111 | 0.233816 | 0 | 0 | 0 | 0 | 0.145119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07c22c6dbb3092192d2a4fddcabee0db528c9e22 | 4,720 | py | Python | frontends/PyCDE/test/polynomial.py | fyquah/circt | cee685bf12dbf27a3f2274e08cd1af6874f70baa | [
"Apache-2.0"
] | null | null | null | frontends/PyCDE/test/polynomial.py | fyquah/circt | cee685bf12dbf27a3f2274e08cd1af6874f70baa | [
"Apache-2.0"
] | null | null | null | frontends/PyCDE/test/polynomial.py | fyquah/circt | cee685bf12dbf27a3f2274e08cd1af6874f70baa | [
"Apache-2.0"
] | null | null | null | # RUN: %PYTHON% %s 2>&1 | FileCheck %s
from __future__ import annotations
import mlir
import pycde
from pycde import (Input, Output, Parameter, module, externmodule, generator,
types, dim)
from circt.dialects import comb, hw
@module
def PolynomialCompute(coefficients: Coefficients):
class Pol... | 35.223881 | 272 | 0.63411 | 574 | 4,720 | 5.095819 | 0.219512 | 0.030085 | 0.017094 | 0.049231 | 0.305299 | 0.248889 | 0.191111 | 0.137094 | 0.122735 | 0.122735 | 0 | 0.055673 | 0.200847 | 4,720 | 133 | 273 | 35.488722 | 0.719777 | 0.513771 | 0 | 0.090909 | 0 | 0 | 0.036032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.075758 | 0.015152 | 0.409091 | 0.060606 | 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 |
07c24587d23b16e92b579d57a83d8cb4e84073ef | 3,430 | py | Python | python/examples/service_discovery.py | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | python/examples/service_discovery.py | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | python/examples/service_discovery.py | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
import arc
import sys
import os
def retrieve(uc, endpoints):
# The ComputingServiceRetriever needs the UserConfig to know which credentials
# to use in case of HTTPS connections
retriever = arc.ComputingServiceRetriever(uc, endpoints)
# the constructor of the ComputingServiceRetr... | 40.352941 | 129 | 0.717201 | 449 | 3,430 | 5.469933 | 0.365256 | 0.053746 | 0.051303 | 0.017101 | 0.257736 | 0.205212 | 0.205212 | 0.165309 | 0.165309 | 0.165309 | 0 | 0.007785 | 0.176093 | 3,430 | 84 | 130 | 40.833333 | 0.861288 | 0.369679 | 0 | 0 | 0 | 0.045455 | 0.270561 | 0.12757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07c2fc0684398b705e83193b8a4ddd1551624694 | 46,071 | py | Python | core/domain/rights_manager.py | netajik/oppia | d3780352d615db7438e010c5aa5eb60588bb7de6 | [
"Apache-2.0"
] | null | null | null | core/domain/rights_manager.py | netajik/oppia | d3780352d615db7438e010c5aa5eb60588bb7de6 | [
"Apache-2.0"
] | null | null | null | core/domain/rights_manager.py | netajik/oppia | d3780352d615db7438e010c5aa5eb60588bb7de6 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | 35.303448 | 80 | 0.692323 | 5,531 | 46,071 | 5.502802 | 0.062376 | 0.074977 | 0.028289 | 0.009758 | 0.693258 | 0.619135 | 0.562492 | 0.493823 | 0.454429 | 0.404685 | 0 | 0.00026 | 0.248421 | 46,071 | 1,304 | 81 | 35.330521 | 0.878733 | 0.356081 | 0 | 0.365188 | 0 | 0.001706 | 0.084694 | 0.008021 | 0 | 0 | 0 | 0.000767 | 0 | 1 | 0.083618 | false | 0 | 0.022184 | 0 | 0.209898 | 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 |
07c4707b6186eda818ca02fcf8c20fba9ffa25c7 | 7,024 | py | Python | selfdrive/car/toyota/carcontroller.py | aolin480/openpilot | 9ac00c3e5e111a05a0bb10018ccd190571dfff4d | [
"MIT"
] | 70 | 2021-06-18T13:04:10.000Z | 2022-03-31T13:58:09.000Z | selfdrive/car/toyota/carcontroller.py | aolin480/openpilot | 9ac00c3e5e111a05a0bb10018ccd190571dfff4d | [
"MIT"
] | 50 | 2021-06-16T23:52:55.000Z | 2022-03-30T14:05:33.000Z | selfdrive/car/toyota/carcontroller.py | aolin480/openpilot | 9ac00c3e5e111a05a0bb10018ccd190571dfff4d | [
"MIT"
] | 88 | 2021-06-23T21:33:19.000Z | 2022-03-31T07:27:08.000Z | from cereal import car
from common.numpy_fast import clip, interp
from selfdrive.car import apply_toyota_steer_torque_limits, create_gas_interceptor_command, make_can_msg
from selfdrive.car.toyota.toyotacan import create_steer_command, create_ui_command, \
create_accel_command... | 48.777778 | 152 | 0.716259 | 1,041 | 7,024 | 4.598463 | 0.246878 | 0.010863 | 0.03217 | 0.04178 | 0.204512 | 0.140798 | 0.115521 | 0.097974 | 0.059536 | 0.040735 | 0 | 0.018499 | 0.199601 | 7,024 | 143 | 153 | 49.118881 | 0.832978 | 0.221669 | 0 | 0.087912 | 0 | 0 | 0.002758 | 0 | 0 | 0 | 0 | 0.006993 | 0 | 1 | 0.021978 | false | 0 | 0.076923 | 0 | 0.120879 | 0.065934 | 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 |
07c6e4237d951b4abd908ba105b7d327ebecef98 | 484 | py | Python | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n, q = map(int, sys.stdin.readline().split())
s = '$' + sys.stdin.readline().rstrip()
lr = zip(*[map(int, sys.stdin.read().split())] * 2)
def main():
res = [None] * (n + 1); res[0] = 0
prev = '$'
for i in range(1, n+1):
res[i] = res[i-1]
res[i] += (prev == 'A' and s[i... | 23.047619 | 52 | 0.452479 | 77 | 484 | 2.74026 | 0.480519 | 0.113744 | 0.085308 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.31405 | 484 | 20 | 53 | 24.2 | 0.611446 | 0 | 0 | 0 | 0 | 0 | 0.030108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0.0625 | 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 |
07c71ca4f5171ffec7ba2da60f8676b83050c69c | 2,262 | py | Python | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | 1 | 2022-02-19T03:51:38.000Z | 2022-02-19T03:51:38.000Z | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | null | null | null | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from DecoderLayer import DecoderLayer
import math
class Decoder(nn.Module):
def __init__(self, output_dim, embed_dim, num_layers, num_heads, expand_dim, dropout, device, max_length = 30):
super().__init__()
self.tok_embedding = nn.Embedding(output_dim, emb... | 42.679245 | 122 | 0.597259 | 304 | 2,262 | 4.213816 | 0.233553 | 0.087432 | 0.056206 | 0.058548 | 0.232631 | 0.145199 | 0.145199 | 0.064012 | 0.064012 | 0.064012 | 0 | 0.015 | 0.292661 | 2,262 | 53 | 123 | 42.679245 | 0.785625 | 0.155615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07c821ec1109c1e7667cac57580d2ee557fe694c | 901 | py | Python | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | """
Grains for Cisco NX-OS minions
.. versionadded:: 2016.11.0
For documentation on setting up the nxos proxy minion look in the documentation
for :mod:`salt.proxy.nxos<salt.proxy.nxos>`.
"""
import logging
import salt.utils.nxos
import salt.utils.platform
from salt.exceptions import NxosClientError
log = logging.... | 21.97561 | 79 | 0.675916 | 113 | 901 | 5.168142 | 0.460177 | 0.092466 | 0.089041 | 0.068493 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009887 | 0.214206 | 901 | 40 | 80 | 22.525 | 0.814972 | 0.205327 | 0 | 0.086957 | 0 | 0 | 0.055085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.521739 | 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 |
07c8e1478041c57a7ff67d2397fd305a48517875 | 3,356 | py | Python | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | from typing import List, Optional, Tuple
from tmsproviderapisdk.tms_extended_model import TmsExtendedModel
class TmsDevice(TmsExtendedModel):
_path_url = "/devices/"
def __init__(self, unique_id: str, account: int, device_id: int = None, ipaddr: str = None, mac: str = None,
remote_custom_fie... | 40.926829 | 120 | 0.598033 | 386 | 3,356 | 4.867876 | 0.165803 | 0.085152 | 0.090474 | 0.021288 | 0.30016 | 0.081426 | 0 | 0 | 0 | 0 | 0 | 0.001269 | 0.29559 | 3,356 | 81 | 121 | 41.432099 | 0.79357 | 0 | 0 | 0 | 0 | 0 | 0.116508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.028169 | 0.014085 | 0.15493 | 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 |
07ca1045f3d1ae1412959e210adfbad3cf54eff0 | 7,676 | py | Python | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | """
A class hierarchy relating to fields of all kinds.
"""
from __future__ import print_function, division
import numpy as np
from ciabatta.meta import make_repr_str
from fealty import lattice, field_numerics, walled_field_numerics
class Space(object):
def __init__(self, L, dim):
self.L = L
self.... | 29.186312 | 74 | 0.60839 | 1,174 | 7,676 | 3.777683 | 0.099659 | 0.076212 | 0.032469 | 0.032469 | 0.695829 | 0.632694 | 0.570688 | 0.450282 | 0.416235 | 0.369335 | 0 | 0.01823 | 0.256774 | 7,676 | 262 | 75 | 29.29771 | 0.759159 | 0.028661 | 0 | 0.432161 | 0 | 0 | 0.058421 | 0 | 0 | 0 | 0 | 0 | 0.075377 | 1 | 0.180905 | false | 0.005025 | 0.020101 | 0.070352 | 0.371859 | 0.005025 | 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 |
07cb2143ea47874c58c2e1ce2165dfb24f78e2e2 | 583 | py | Python | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 19 | 2021-04-13T14:01:06.000Z | 2022-02-19T00:45:05.000Z | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 65 | 2021-04-14T09:02:24.000Z | 2022-03-29T07:56:03.000Z | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 9 | 2021-06-01T23:03:28.000Z | 2022-02-17T20:24:57.000Z | """
ASGI config for example_django project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANG... | 26.5 | 78 | 0.766724 | 85 | 583 | 5.152941 | 0.647059 | 0.047945 | 0.082192 | 0.091324 | 0.164384 | 0.164384 | 0.164384 | 0.164384 | 0.164384 | 0 | 0 | 0.007692 | 0.108062 | 583 | 21 | 79 | 27.761905 | 0.834615 | 0.377358 | 0 | 0 | 0 | 0 | 0.507042 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07cebbfa2f7886d8fbfa5e82f77ae6da2ef52744 | 703 | py | Python | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 857 | 2017-05-03T00:59:10.000Z | 2022-03-29T06:45:23.000Z | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 142 | 2017-05-03T02:00:58.000Z | 2022-03-25T20:58:11.000Z | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 218 | 2017-05-03T02:04:56.000Z | 2022-03-25T18:28:04.000Z | import pymsteams
import logging
from oncall.constants import TEAMS_SUPPORT
class teams_messenger(object):
supports = frozenset([TEAMS_SUPPORT])
def __init__(self, config):
self.webhook = config['webhook']
def send(self, message):
heading = message.get("subject")
final_message = "... | 30.565217 | 91 | 0.651494 | 73 | 703 | 6.150685 | 0.547945 | 0.066815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 703 | 22 | 92 | 31.954545 | 0.843985 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 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 |
07cf43823d8f9a2b976bcf3456b4ba03ebef67d9 | 11,632 | py | Python | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | Laniakea94/BigDL | 4d01734086dda893a7f08ba53251dc3c5c8ecfd1 | [
"Apache-2.0"
] | 3 | 2021-07-14T01:28:47.000Z | 2022-03-02T01:16:32.000Z | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | liangs6212/BigDL | 3c89ff7e8bbdc713110536c18099506811cd2b3a | [
"Apache-2.0"
] | null | null | null | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | liangs6212/BigDL | 3c89ff7e8bbdc713110536c18099506811cd2b3a | [
"Apache-2.0"
] | null | null | null | # +
#
# Copyright 2016 The BigDL Authors.
#
# 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... | 48.066116 | 121 | 0.616145 | 1,432 | 11,632 | 4.869413 | 0.242318 | 0.024523 | 0.022372 | 0.012907 | 0.215402 | 0.18672 | 0.165209 | 0.150294 | 0.150294 | 0.125341 | 0 | 0.010662 | 0.314649 | 11,632 | 241 | 122 | 48.26556 | 0.864024 | 0.454178 | 0 | 0.069565 | 0 | 0.008696 | 0.10633 | 0.012091 | 0 | 0 | 0 | 0 | 0.017391 | 1 | 0.06087 | false | 0 | 0.06087 | 0 | 0.156522 | 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 |
07cfa7c073692f7ff81f78defb2e3541ec3803be | 13,313 | py | Python | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | 1 | 2019-11-11T05:40:30.000Z | 2019-11-11T05:40:30.000Z | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | null | null | null | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | null | null | null | import math
import numpy as np
import scipy as sp
import scipy.linalg
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
from nf.utils import unconstrained_RQS
# supported non-linearities: note that the function must be invertible
functional_derivatives = {
torch.tanh: ... | 35.312997 | 80 | 0.533539 | 1,962 | 13,313 | 3.504587 | 0.103976 | 0.031414 | 0.027196 | 0.020942 | 0.718877 | 0.663031 | 0.620419 | 0.612711 | 0.551338 | 0.522251 | 0 | 0.027957 | 0.312176 | 13,313 | 376 | 81 | 35.406915 | 0.722835 | 0.053857 | 0 | 0.542857 | 0 | 0 | 0.005503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103571 | false | 0 | 0.032143 | 0.003571 | 0.221429 | 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 |
07d1d3b232129762c8438710d6931bc551a36122 | 5,286 | py | Python | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | null | null | null | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | null | null | null | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | 1 | 2021-01-20T23:20:06.000Z | 2021-01-20T23:20:06.000Z | # module pyparsing.py
#
# Copyright (c) 2003-2019 Paul T. McGuire
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, cop... | 31.278107 | 112 | 0.600643 | 682 | 5,286 | 4.615836 | 0.379765 | 0.027954 | 0.022236 | 0.030178 | 0.031766 | 0.022236 | 0.022236 | 0.022236 | 0 | 0 | 0 | 0.014545 | 0.258608 | 5,286 | 168 | 113 | 31.464286 | 0.788722 | 0.439274 | 0 | 0.019608 | 0 | 0 | 0.052833 | 0.012165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0 | 0.029412 | 0 | 0.196078 | 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 |
07d2a6693b06381833978cbf344d430f2c2b518b | 4,539 | py | Python | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | 1 | 2021-07-26T17:30:16.000Z | 2021-07-26T17:30:16.000Z | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | null | null | null | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | 2 | 2020-06-29T15:43:22.000Z | 2021-05-12T08:25:03.000Z | from itertools import combinations
import copy
def get_reverse(n):
if n == 1:
return 0
else:
return 1
def get_edge_info(e):
v = [0 for i in range(2)]
n = [0 for i in range(2)]
t = 0
for x in e:
v[t], n[t] = x
t += 1
return v, n
def sort_e_by_domain(val)... | 22.695 | 89 | 0.516193 | 638 | 4,539 | 3.589342 | 0.181818 | 0.019214 | 0.028821 | 0.028821 | 0.199127 | 0.168122 | 0.116594 | 0.091703 | 0.091703 | 0.091703 | 0 | 0.0524 | 0.348315 | 4,539 | 199 | 90 | 22.809045 | 0.721771 | 0.041199 | 0 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129771 | false | 0 | 0.015267 | 0.022901 | 0.305344 | 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 |
07d6951331a7c029a2698e9098ae813a023bef49 | 10,729 | py | Python | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 2 | 2019-06-17T21:37:53.000Z | 2020-07-11T03:58:39.000Z | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 6 | 2019-06-13T12:49:33.000Z | 2021-04-17T16:33:19.000Z | # Copyright 2018 Hewlett Packard Enterprise Development LP
#
# 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 applicabl... | 45.461864 | 79 | 0.609004 | 1,203 | 10,729 | 5.143807 | 0.184539 | 0.106335 | 0.098901 | 0.049774 | 0.535068 | 0.476891 | 0.456529 | 0.421623 | 0.405785 | 0.392534 | 0 | 0.002322 | 0.317737 | 10,729 | 235 | 80 | 45.655319 | 0.843033 | 0.164321 | 0 | 0.47093 | 0 | 0 | 0.188168 | 0.060751 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.075581 | 0 | 0.145349 | 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 |
07d9159827c315605286d46a4f7de494b7d7489e | 3,251 | py | Python | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | 7 | 2020-11-23T09:26:17.000Z | 2021-01-26T08:23:30.000Z | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | null | null | null | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | 1 | 2020-12-14T05:12:10.000Z | 2020-12-14T05:12:10.000Z | import pyopencl as cl
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-s", "--short", action="store_true",
help="don't print all device properties")
(options, args) = parser.parse_args()
def print_info(obj, info_cls):
for info_name in sorted(dir(info_cls)):
... | 38.702381 | 83 | 0.450015 | 311 | 3,251 | 4.488746 | 0.318328 | 0.045845 | 0.068052 | 0.036533 | 0.057307 | 0.041547 | 0.041547 | 0 | 0 | 0 | 0 | 0.006135 | 0.448477 | 3,251 | 83 | 84 | 39.168675 | 0.772448 | 0.014457 | 0 | 0.239437 | 0 | 0 | 0.091818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.028169 | 0 | 0.070423 | 0.197183 | 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 |
07da573d0a32afbfa2ea160efcad1a4e21eef4c3 | 42,106 | py | Python | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | 1 | 2020-07-30T10:54:35.000Z | 2020-07-30T10:54:35.000Z | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | null | null | null | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: future_fstrings -*-
#
# Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren,
# Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor,
# Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan,
# Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Di... | 40.525505 | 175 | 0.644682 | 5,968 | 42,106 | 4.255027 | 0.096682 | 0.020083 | 0.013468 | 0.056509 | 0.648618 | 0.556313 | 0.499606 | 0.439395 | 0.398126 | 0.370363 | 0 | 0.006798 | 0.245428 | 42,106 | 1,038 | 176 | 40.564547 | 0.792459 | 0.1244 | 0 | 0.27208 | 0 | 0.007123 | 0.162951 | 0.028801 | 0 | 0 | 0 | 0.000963 | 0 | 1 | 0.022792 | false | 0 | 0.022792 | 0 | 0.061254 | 0.017094 | 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 |
07da9e40651ed6fdc8a2ae109d81653125f5c378 | 5,128 | py | Python | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | 3 | 2021-12-10T14:52:23.000Z | 2022-03-22T08:48:08.000Z | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | null | null | null | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | 2 | 2021-12-13T08:12:52.000Z | 2022-01-17T14:00:48.000Z | import numpy as np
import cv2
import sys
import os
import glob
def im2patch(im, pch_size, stride=1):
'''
Transform image to patches.
Input:
im: 3 x H x W or 1 X H x W image, numpy format
pch_size: (int, int) tuple or integer
stride: (int, int) tuple or integer
'''
if isinsta... | 34.884354 | 136 | 0.576248 | 738 | 5,128 | 3.855014 | 0.247967 | 0.029525 | 0.004218 | 0.011248 | 0.15536 | 0.105448 | 0.067487 | 0.056942 | 0.039367 | 0 | 0 | 0.01911 | 0.316303 | 5,128 | 147 | 137 | 34.884354 | 0.792356 | 0.284126 | 0 | 0.033708 | 0 | 0 | 0.031939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.05618 | 0 | 0.134831 | 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 |
07db7794b6d98e1a7fc4b7e5727cce2c98e1474f | 8,162 | py | Python | python/paddle/tensor/attribute.py | douch/Paddle | 81c40722869935d6e897f4b1aeb6e6f67606188a | [
"Apache-2.0"
] | 1 | 2021-12-27T02:40:41.000Z | 2021-12-27T02:40:41.000Z | python/paddle/tensor/attribute.py | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | python/paddle/tensor/attribute.py | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 33.178862 | 115 | 0.590787 | 1,068 | 8,162 | 4.39794 | 0.195693 | 0.044496 | 0.072812 | 0.073451 | 0.690228 | 0.589099 | 0.5693 | 0.554396 | 0.499255 | 0.466042 | 0 | 0.037664 | 0.29086 | 8,162 | 245 | 116 | 33.314286 | 0.773842 | 0.549253 | 0 | 0.342105 | 0 | 0 | 0.062075 | 0 | 0 | 0 | 0 | 0.004082 | 0 | 1 | 0.092105 | false | 0 | 0.131579 | 0 | 0.421053 | 0.013158 | 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 |
07dedb4b0df0aef6400f3a4ca8f79f22e2a6cabd | 2,990 | py | Python | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | import evdev
import time
import struct
class appcodec():
def __init__(self):
self.device = evdev.InputDevice("/dev/input/event2")
self.capabilities = self.device.capabilities(verbose=True)
self.capaRAW = self.device.capabilities(absinfo=False)
self.config = {}
self.state = {... | 37.375 | 262 | 0.585619 | 374 | 2,990 | 4.548128 | 0.286096 | 0.100529 | 0.074074 | 0.089947 | 0.349794 | 0.289242 | 0.201058 | 0 | 0 | 0 | 0 | 0.036968 | 0.285284 | 2,990 | 79 | 263 | 37.848101 | 0.759008 | 0.038462 | 0 | 0.068966 | 0 | 0 | 0.06311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.017241 | 0.051724 | 0 | 0.172414 | 0.017241 | 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 |
07e01a30113159cdf23415b99ef5107294e27bab | 606 | py | Python | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | 1 | 2021-08-04T13:21:22.000Z | 2021-08-04T13:21:22.000Z | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | import time
# O * é para desempacotar o paramêtro. Permite atribuir inumeros parametros.
def maior(* num):
contador = maior = 0
print('Analisando os valores passados...')
for v in num:
contador = contador + 1
print(f'{v} ', end='', flush=True)
time.sleep(0.3)
if contador == 1... | 23.307692 | 76 | 0.544554 | 89 | 606 | 3.707865 | 0.539326 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05314 | 0.316832 | 606 | 25 | 77 | 24.24 | 0.743961 | 0.122112 | 0 | 0.1 | 0 | 0 | 0.214015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.05 | 0 | 0.1 | 0.25 | 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 |
07e0ba1b41406f219565825c5f80d1ee0cfaded5 | 8,638 | py | Python | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | 12 | 2021-01-25T07:11:52.000Z | 2022-02-14T11:57:03.000Z | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | null | null | null | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | null | null | null | import pyproj
import pytest
import numpy as np
from easyric.io import geotiff, shp
from skimage.io import imread
from skimage.color import rgb2gray
import matplotlib.pyplot as plt
def test_prase_header_string_width():
out_dict = geotiff._prase_header_string("* 256 image_width (1H) 13503")
assert out_dict['widt... | 37.232759 | 117 | 0.683376 | 1,266 | 8,638 | 4.406003 | 0.262243 | 0.025099 | 0.048763 | 0.038724 | 0.459842 | 0.406597 | 0.293654 | 0.239333 | 0.207601 | 0.195411 | 0 | 0.174127 | 0.177587 | 8,638 | 232 | 118 | 37.232759 | 0.611064 | 0.04758 | 0 | 0.158228 | 0 | 0.037975 | 0.27078 | 0.064744 | 0 | 0 | 0 | 0.00431 | 0.183544 | 1 | 0.126582 | false | 0.025316 | 0.044304 | 0 | 0.170886 | 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 |
07e0cae8b52445fc39f360d69691eeb8e3e8f35e | 9,833 | py | Python | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | matecsaj/ebay_rest | dd23236f39e05636eff222f99df1e3699ce47d4a | [
"MIT"
] | 3 | 2021-12-12T04:28:03.000Z | 2022-03-10T03:29:18.000Z | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 33 | 2021-06-16T20:44:36.000Z | 2022-03-30T14:55:06.000Z | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 7 | 2021-06-03T09:30:23.000Z | 2022-03-08T19:51:33.000Z | # coding: utf-8
"""
Marketplace Insights API
<a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(Limited Release)</a> The Marketpl... | 34.992883 | 442 | 0.616699 | 1,256 | 9,833 | 4.700637 | 0.16879 | 0.051491 | 0.085366 | 0.078252 | 0.571477 | 0.508977 | 0.492547 | 0.445122 | 0.365346 | 0.280318 | 0 | 0.027718 | 0.288213 | 9,833 | 280 | 443 | 35.117857 | 0.815831 | 0.485203 | 0 | 0.075 | 0 | 0 | 0.059952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.025 | 0 | 0.325 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07e1c7308c17fb9509fe646f19b12d537b946ccf | 502 | py | Python | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | 6 | 2017-11-12T05:13:27.000Z | 2022-03-13T07:58:31.000Z | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | null | null | null | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | null | null | null | # Fractional Knapsack
wt = [40,50,30,10,10,40,30]
pro = [30,20,20,25,5,35,15]
n = len(wt)
data = [ (i,pro[i],wt[i]) for i in range(n) ]
bag = 100
data.sort(key=lambda x: x[1]/x[2], reverse=True)
profit=0
ans=[]
i=0
while i<n:
if data[i][2]<=bag:
bag-=data[i][2]
ans.append(data[i... | 17.310345 | 49 | 0.498008 | 94 | 502 | 2.659574 | 0.414894 | 0.16 | 0.072 | 0.112 | 0.168 | 0.168 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0.282869 | 502 | 28 | 50 | 17.928571 | 0.577778 | 0.037849 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |