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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b7e39de3f444fe8cb279979f19de1ae9ea72a25e | 10,135 | py | Python | paramak/parametric_components/blanket_fp.py | zmarkan/paramak | ecf9a46394adb4d6bb5744000ec6e2f74c30f2ba | [
"MIT"
] | null | null | null | paramak/parametric_components/blanket_fp.py | zmarkan/paramak | ecf9a46394adb4d6bb5744000ec6e2f74c30f2ba | [
"MIT"
] | null | null | null | paramak/parametric_components/blanket_fp.py | zmarkan/paramak | ecf9a46394adb4d6bb5744000ec6e2f74c30f2ba | [
"MIT"
] | null | null | null |
import warnings
from typing import Callable, List, Optional, Union
import mpmath
import numpy as np
import paramak
import sympy as sp
from paramak import RotateMixedShape, diff_between_angles
from paramak.parametric_components.tokamak_plasma_plasmaboundaries import \
PlasmaBoundaries
from scipy.interpolate import... | 36.456835 | 79 | 0.597139 | 1,172 | 10,135 | 5.007679 | 0.174061 | 0.029988 | 0.017891 | 0.012268 | 0.180269 | 0.082297 | 0.069518 | 0.057932 | 0.045323 | 0.013972 | 0 | 0.007229 | 0.331228 | 10,135 | 277 | 80 | 36.588448 | 0.85866 | 0.285249 | 0 | 0.116279 | 0 | 0 | 0.015154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110465 | false | 0 | 0.052326 | 0.02907 | 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 |
b7e4fae61f0aabd32e88f180183fcddc115ab0ca | 4,352 | py | Python | airbyte-integrations/connectors/source-plaid/source_plaid/source.py | OTRI-Unipd/OTRI-airbyte | 50eeeb773f75246e86c6e167b0cd7d2dda6efe0d | [
"MIT"
] | 2 | 2022-03-02T13:46:05.000Z | 2022-03-05T12:31:28.000Z | airbyte-integrations/connectors/source-plaid/source_plaid/source.py | OTRI-Unipd/OTRI-airbyte | 50eeeb773f75246e86c6e167b0cd7d2dda6efe0d | [
"MIT"
] | 29 | 2021-10-07T17:20:29.000Z | 2021-12-27T13:07:09.000Z | airbyte-integrations/connectors/source-plaid/source_plaid/source.py | OTRI-Unipd/OTRI-airbyte | 50eeeb773f75246e86c6e167b0cd7d2dda6efe0d | [
"MIT"
] | 1 | 2021-07-30T07:24:51.000Z | 2021-07-30T07:24:51.000Z | #
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
import datetime
import json
from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Union
import plaid
from airbyte_cdk.logger import AirbyteLogger
from airbyte_cdk.models import SyncMode
from airbyte_cdk.sources import AbstractSou... | 35.966942 | 135 | 0.667509 | 497 | 4,352 | 5.649899 | 0.253521 | 0.023504 | 0.046296 | 0.024217 | 0.365741 | 0.26567 | 0.24359 | 0.24359 | 0.24359 | 0.24359 | 0 | 0.001483 | 0.225414 | 4,352 | 120 | 136 | 36.266667 | 0.831504 | 0.012408 | 0 | 0.333333 | 0 | 0 | 0.055892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.114583 | 0.083333 | 0.40625 | 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 |
b7e5547eb715244c2608406503ff045d83d45b75 | 17,939 | py | Python | demo/demo.py | taewhankim/DeepHRnet | c316b4a9f5f3002f6fcc0398c12d80de82195ef0 | [
"MIT"
] | null | null | null | demo/demo.py | taewhankim/DeepHRnet | c316b4a9f5f3002f6fcc0398c12d80de82195ef0 | [
"MIT"
] | null | null | null | demo/demo.py | taewhankim/DeepHRnet | c316b4a9f5f3002f6fcc0398c12d80de82195ef0 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import csv
import os
import shutil
from PIL import Image
import torch
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
import torch.utils... | 36.911523 | 118 | 0.572997 | 2,437 | 17,939 | 4.009438 | 0.201888 | 0.013509 | 0.012895 | 0.012179 | 0.414185 | 0.380616 | 0.359738 | 0.349197 | 0.340804 | 0.332412 | 0 | 0.0407 | 0.286415 | 17,939 | 486 | 119 | 36.911523 | 0.7226 | 0.1048 | 0 | 0.281065 | 0 | 0 | 0.093974 | 0.006152 | 0.002959 | 0 | 0 | 0 | 0 | 1 | 0.023669 | false | 0 | 0.076923 | 0 | 0.130178 | 0.023669 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7e6129db622711592b894cfa7f14f8bbe198a09 | 2,749 | py | Python | feemodeldata/plotting/plotwaits.py | bitcoinfees/bitcoin-feemodel-data | 3eb09cf2a64b1aa23d328484bbcd7e4d55291898 | [
"MIT"
] | 2 | 2015-07-10T20:14:54.000Z | 2017-06-08T11:01:03.000Z | feemodeldata/plotting/plotwaits.py | bitcoinfees/bitcoin-feemodel-data | 3eb09cf2a64b1aa23d328484bbcd7e4d55291898 | [
"MIT"
] | null | null | null | feemodeldata/plotting/plotwaits.py | bitcoinfees/bitcoin-feemodel-data | 3eb09cf2a64b1aa23d328484bbcd7e4d55291898 | [
"MIT"
] | null | null | null | from __future__ import division
import sqlite3
from bisect import bisect_left
import plotly.plotly as py
from plotly.graph_objs import Scatter, Figure, Layout, Data, YAxis, XAxis
from feemodel.util import DataSample
from feemodel.app.predict import PVALS_DBFILE
from feemodeldata.plotting.plotrrd import BASEDIR
de... | 28.936842 | 75 | 0.628592 | 324 | 2,749 | 5.271605 | 0.376543 | 0.042155 | 0.014052 | 0.031616 | 0.055035 | 0.055035 | 0 | 0 | 0 | 0 | 0 | 0.019043 | 0.255002 | 2,749 | 94 | 76 | 29.244681 | 0.814941 | 0.00873 | 0 | 0.026667 | 0 | 0 | 0.082015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.106667 | 0 | 0.226667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7e7c6200dfbf2600bb1a1bc581331cb427697e7 | 5,181 | py | Python | utils/pytorch_utils.py | shoegazerstella/BTC-ISMIR19 | fc4c8ef792711460d98b502ddc2e5befc800d2e5 | [
"MIT"
] | 1 | 2020-07-23T23:46:24.000Z | 2020-07-23T23:46:24.000Z | utils/pytorch_utils.py | shoegazerstella/BTC-ISMIR19 | fc4c8ef792711460d98b502ddc2e5befc800d2e5 | [
"MIT"
] | null | null | null | utils/pytorch_utils.py | shoegazerstella/BTC-ISMIR19 | fc4c8ef792711460d98b502ddc2e5befc800d2e5 | [
"MIT"
] | null | null | null |
import torch
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
import os
import math
from utils import logger
use_cuda = torch.cuda.is_available()
# utility
def to_var(x, dtype=None):
if type(x) is np.ndarray:
x = torch.from_numpy(x)
elif type(x) is list:
... | 35.244898 | 107 | 0.640803 | 761 | 5,181 | 4.149803 | 0.235217 | 0.015833 | 0.017733 | 0.023749 | 0.272324 | 0.227042 | 0.216276 | 0.186827 | 0.186827 | 0.122546 | 0 | 0.017021 | 0.228913 | 5,181 | 146 | 108 | 35.486301 | 0.773467 | 0.24474 | 0 | 0.176471 | 0 | 0 | 0.066753 | 0.010825 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.105882 | false | 0 | 0.082353 | 0 | 0.258824 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7ea33cae6c817255b7381a86f5b2cf3631857b7 | 933 | py | Python | Course 01 - Getting Started with Python/Extra Studies/Basics/ex022.py | marcoshsq/python_practical_exercises | 77136cd4bc0f34acde3380ffdc5af74f7a960670 | [
"MIT"
] | 9 | 2022-03-22T16:45:17.000Z | 2022-03-25T20:22:35.000Z | Course 01 - Getting Started with Python/Extra Studies/Basics/ex022.py | marcoshsq/python_practical_exercises | 77136cd4bc0f34acde3380ffdc5af74f7a960670 | [
"MIT"
] | null | null | null | Course 01 - Getting Started with Python/Extra Studies/Basics/ex022.py | marcoshsq/python_practical_exercises | 77136cd4bc0f34acde3380ffdc5af74f7a960670 | [
"MIT"
] | 3 | 2022-03-22T17:03:38.000Z | 2022-03-29T17:20:55.000Z | import math
# Exercise 017: Right Triangle
"""Write a program that reads the length of the opposite side and the adjacent side of a right triangle.
Calculate and display the length of the hypotenuse."""
# To do this we will use the Pythagorean theorem: a^2 = b^2 + c^2
# Method 01, without the module Math:
# First we... | 38.875 | 104 | 0.710611 | 172 | 933 | 3.796512 | 0.372093 | 0.036753 | 0.022971 | 0.078101 | 0.277182 | 0.277182 | 0.085758 | 0 | 0 | 0 | 0 | 0.029525 | 0.165059 | 933 | 23 | 105 | 40.565217 | 0.808729 | 0.352626 | 0 | 0 | 0 | 0 | 0.455378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7eda2093d6d54b12bba13592c13c99ac642ca74 | 15,883 | py | Python | eventsourcing/application/actors.py | vladimirnani/eventsourcing | f49d2b9aaa585073aca4dc20c59d46db5a14eb57 | [
"BSD-3-Clause"
] | 1 | 2020-02-10T08:12:31.000Z | 2020-02-10T08:12:31.000Z | eventsourcing/application/actors.py | vladimirnani/eventsourcing | f49d2b9aaa585073aca4dc20c59d46db5a14eb57 | [
"BSD-3-Clause"
] | null | null | null | eventsourcing/application/actors.py | vladimirnani/eventsourcing | f49d2b9aaa585073aca4dc20c59d46db5a14eb57 | [
"BSD-3-Clause"
] | null | null | null | import logging
from thespian.actors import *
from eventsourcing.application.process import ProcessApplication, Prompt
from eventsourcing.application.system import System, SystemRunner
from eventsourcing.domain.model.events import subscribe, unsubscribe
from eventsourcing.interface.notificationlog import RecordManager... | 37.637441 | 116 | 0.661336 | 1,719 | 15,883 | 5.847004 | 0.145433 | 0.035021 | 0.010944 | 0.019103 | 0.336981 | 0.265347 | 0.206447 | 0.145657 | 0.111133 | 0.088548 | 0 | 0.00034 | 0.259019 | 15,883 | 421 | 117 | 37.726841 | 0.853683 | 0.177863 | 0 | 0.239437 | 0 | 0 | 0.011573 | 0 | 0 | 0 | 0 | 0.004751 | 0.010563 | 1 | 0.123239 | false | 0.003521 | 0.021127 | 0.010563 | 0.193662 | 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 |
b7edb2af66a1ef0492b215ff19713cb25d91778e | 4,517 | py | Python | sudoku/board.py | DariaMinieieva/sudoku_project | acfe6b6ff4e0343ad0dae597e783f9da40a7faee | [
"MIT"
] | 5 | 2021-05-27T09:26:30.000Z | 2021-05-28T10:33:46.000Z | sudoku/board.py | DariaMinieieva/sudoku_project | acfe6b6ff4e0343ad0dae597e783f9da40a7faee | [
"MIT"
] | null | null | null | sudoku/board.py | DariaMinieieva/sudoku_project | acfe6b6ff4e0343ad0dae597e783f9da40a7faee | [
"MIT"
] | 1 | 2021-05-28T08:43:05.000Z | 2021-05-28T08:43:05.000Z | """This module implements backtracking algorithm to solve sudoku."""
class Board:
"""
Class for sudoku board representation.
"""
NUMBERS = [1, 2, 3, 4, 5, 6, 7, 8, 9]
def __init__(self, board):
"""
Create a new board.
"""
self.board = board
def __str__(self) ... | 30.938356 | 92 | 0.556121 | 595 | 4,517 | 4.132773 | 0.184874 | 0.080521 | 0.044734 | 0.017893 | 0.316795 | 0.200895 | 0.165108 | 0.110207 | 0.110207 | 0.094347 | 0 | 0.016043 | 0.337613 | 4,517 | 145 | 93 | 31.151724 | 0.805816 | 0.218951 | 0 | 0.098592 | 0 | 0 | 0.000624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183099 | false | 0 | 0 | 0 | 0.408451 | 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 |
b7f62fa1d5695f548ee6f73816a2ab82ef2fbcfd | 1,318 | py | Python | apps/transmissions/views/transmissions.py | felipebarraza6/amamaule | 1da7cd542a7e610bc8fa230684770732a41520c9 | [
"MIT"
] | null | null | null | apps/transmissions/views/transmissions.py | felipebarraza6/amamaule | 1da7cd542a7e610bc8fa230684770732a41520c9 | [
"MIT"
] | null | null | null | apps/transmissions/views/transmissions.py | felipebarraza6/amamaule | 1da7cd542a7e610bc8fa230684770732a41520c9 | [
"MIT"
] | null | null | null | from rest_framework import mixins, viewsets, status
from rest_framework.permissions import (
AllowAny,
IsAuthenticated
)
from apps.transmissions.models import Transmission
from apps.transmissions.serializers import TransmissionModelSerializer, CommentModelserializer
from django_filters import rest_framework a... | 30.651163 | 94 | 0.636571 | 109 | 1,318 | 7.559633 | 0.605505 | 0.04733 | 0.041262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282246 | 1,318 | 42 | 95 | 31.380952 | 0.871036 | 0 | 0 | 0 | 0 | 0 | 0.074355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.46875 | 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 |
b7f67bcee29d8224470eff2f3efe74022a5ab08f | 4,751 | py | Python | amstramdam/events/game.py | felix-martel/multigeo | 2a1af9abae1fcef399744f6d88c4b1c25e8a25ab | [
"CC-BY-4.0",
"CC0-1.0"
] | 3 | 2020-11-28T15:00:56.000Z | 2021-04-06T14:10:47.000Z | amstramdam/events/game.py | felix-martel/amstramdam | 7142c34bda5aecfb5f7059a576a0ea7015a1edbc | [
"CC0-1.0",
"CC-BY-4.0"
] | 9 | 2021-04-11T17:28:57.000Z | 2022-02-19T13:53:35.000Z | amstramdam/events/game.py | felix-martel/multigeo | 2a1af9abae1fcef399744f6d88c4b1c25e8a25ab | [
"CC-BY-4.0",
"CC0-1.0"
] | 2 | 2020-11-17T09:34:50.000Z | 2020-11-28T14:57:58.000Z | from amstramdam import app, socketio, timers, manager
from flask import session
from flask_socketio import emit
from .types import GameEndNotification, GameEndPayload
from .utils import safe_cancel, wait_and_run
from ..game.types import GameName, Coordinates
def terminate_game(game_name: GameName) -> None:
game ... | 30.261146 | 88 | 0.603662 | 598 | 4,751 | 4.617057 | 0.205686 | 0.08113 | 0.056501 | 0.047084 | 0.436436 | 0.364361 | 0.324882 | 0.302427 | 0.202463 | 0.176385 | 0 | 0.002053 | 0.282467 | 4,751 | 156 | 89 | 30.455128 | 0.807862 | 0.070511 | 0 | 0.403101 | 0 | 0 | 0.085851 | 0.009766 | 0 | 0 | 0 | 0.00641 | 0 | 1 | 0.03876 | false | 0.007752 | 0.046512 | 0 | 0.131783 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7f6d5055a8a870cf0186a412e583a2dc0833fd5 | 1,515 | py | Python | src/glod/unittests/in_out/test_statement_csv.py | gordon-elliott/glod | a381e21455d05d9c005942a3dee4ac67e10f366a | [
"MIT"
] | null | null | null | src/glod/unittests/in_out/test_statement_csv.py | gordon-elliott/glod | a381e21455d05d9c005942a3dee4ac67e10f366a | [
"MIT"
] | 1 | 2021-03-10T16:48:34.000Z | 2021-03-10T16:48:34.000Z | src/glod/unittests/in_out/test_statement_csv.py | gordon-elliott/glod | a381e21455d05d9c005942a3dee4ac67e10f366a | [
"MIT"
] | null | null | null |
__copyright__ = 'Copyright(c) Gordon Elliott 2017'
"""
"""
from datetime import date
from decimal import Decimal
from io import StringIO
from unittest import TestCase
from glod.model.statement_item import StatementItem
from glod.model.account import Account
from glod.in_out.statement_item import statement_item_csv... | 25.677966 | 75 | 0.570957 | 172 | 1,515 | 4.906977 | 0.383721 | 0.082938 | 0.014218 | 0.047393 | 0.091232 | 0.07109 | 0.07109 | 0.07109 | 0 | 0 | 0 | 0.04878 | 0.323432 | 1,515 | 58 | 76 | 26.12069 | 0.774634 | 0 | 0 | 0.088889 | 0 | 0 | 0.201859 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.022222 | false | 0 | 0.155556 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b7f7145927c059a2c43b18ff8ea2eb1911103a21 | 1,072 | py | Python | ExifExtractor.py | MalwareJunkie/PythonScripts | ad827a8aafaae4a50970c9df11b674f4472eb371 | [
"MIT"
] | null | null | null | ExifExtractor.py | MalwareJunkie/PythonScripts | ad827a8aafaae4a50970c9df11b674f4472eb371 | [
"MIT"
] | null | null | null | ExifExtractor.py | MalwareJunkie/PythonScripts | ad827a8aafaae4a50970c9df11b674f4472eb371 | [
"MIT"
] | null | null | null | # Tested with Python 3.6
# Install Pillow: pip install pillow
""" This script extracts exif data from JPEG images """
from PIL import Image
from PIL.ExifTags import TAGS
import sys
def getExif(img):
res = {}
exif = img._getexif()
if exif == None:
print("No exif data found!!")
... | 23.304348 | 62 | 0.527052 | 136 | 1,072 | 4.147059 | 0.507353 | 0.049645 | 0.056738 | 0.024823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010043 | 0.349813 | 1,072 | 45 | 63 | 23.822222 | 0.799139 | 0.099813 | 0 | 0.176471 | 0 | 0 | 0.188596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.029412 | 0.088235 | 0 | 0.176471 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7f7e17dac70dc7137a4fbc2c1596760a4b65113 | 9,537 | py | Python | testFiles/test_script.py | Janga-Lab/Penguin-1 | f6162be3549c470416da0fab590ae7d04c74bfa5 | [
"MIT"
] | null | null | null | testFiles/test_script.py | Janga-Lab/Penguin-1 | f6162be3549c470416da0fab590ae7d04c74bfa5 | [
"MIT"
] | null | null | null | testFiles/test_script.py | Janga-Lab/Penguin-1 | f6162be3549c470416da0fab590ae7d04c74bfa5 | [
"MIT"
] | null | null | null | import h5py
from ont_fast5_api.conversion_tools import multi_to_single_fast5
from ont_fast5_api import fast5_interface
import SequenceGenerator.align as align
import SignalExtractor.Nanopolish as events
from testFiles.test_commands import *
import os, sys
import subprocess
#todo get basecall data
def bas... | 37.695652 | 165 | 0.567998 | 1,077 | 9,537 | 4.905292 | 0.21727 | 0.0212 | 0.018739 | 0.027825 | 0.278251 | 0.189286 | 0.124929 | 0.07155 | 0.07155 | 0.061707 | 0 | 0.014717 | 0.308902 | 9,537 | 252 | 166 | 37.845238 | 0.786831 | 0.207612 | 0 | 0.23871 | 0 | 0.006452 | 0.272564 | 0.06573 | 0 | 0 | 0 | 0.003968 | 0 | 1 | 0.058065 | false | 0.032258 | 0.051613 | 0 | 0.174194 | 0.154839 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7f8f59fb0fb637edfdf3e834168a1ea050cd659 | 3,912 | py | Python | eda_rf.py | lel23/Student-Performance-Prediction | 93f850d299f6e6ad88a90e606f494fcd931e56b6 | [
"MIT"
] | 1 | 2021-11-27T01:55:44.000Z | 2021-11-27T01:55:44.000Z | eda_rf.py | lel23/Student-Performance-Prediction | 93f850d299f6e6ad88a90e606f494fcd931e56b6 | [
"MIT"
] | null | null | null | eda_rf.py | lel23/Student-Performance-Prediction | 93f850d299f6e6ad88a90e606f494fcd931e56b6 | [
"MIT"
] | 1 | 2021-12-13T15:46:43.000Z | 2021-12-13T15:46:43.000Z | """
Final Project
EDA
"""
import pandas as pd
import matplotlib.pyplot as plt
from mlxtend.plotting import scatterplotmatrix
import numpy as np
import seaborn as sns
from imblearn.over_sampling import SMOTE
from sklearn.utils import resample
from mlxtend.plotting import heatmap
from sklearn.ensemble import RandomFore... | 35.563636 | 238 | 0.707311 | 600 | 3,912 | 4.518333 | 0.376667 | 0.056068 | 0.025821 | 0.035411 | 0.14644 | 0.120989 | 0.104021 | 0.092955 | 0.092955 | 0.036887 | 0 | 0.025161 | 0.126278 | 3,912 | 109 | 239 | 35.889908 | 0.767993 | 0.191718 | 0 | 0.028986 | 0 | 0 | 0.125676 | 0.007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.289855 | 0 | 0.289855 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7f97933fc0d2a4db780092adb873088bd108cdc | 3,771 | py | Python | feastruct/fea/utils.py | geosharma/feastruct | 67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1 | [
"MIT"
] | 37 | 2018-11-08T12:51:53.000Z | 2022-02-01T19:40:48.000Z | feastruct/fea/utils.py | geosharma/feastruct | 67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1 | [
"MIT"
] | 2 | 2018-11-01T12:39:24.000Z | 2022-01-23T01:26:47.000Z | feastruct/fea/utils.py | geosharma/feastruct | 67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1 | [
"MIT"
] | 12 | 2019-04-09T04:14:02.000Z | 2022-01-08T14:04:32.000Z | import numpy as np
def gauss_points(el_type, n):
"""Returns the Gaussian weights and locations for *n* point Gaussian integration of a finite
element. Refer to xxx for a list of the element types.
:param string el_type: String describing the element type
:param int n: Number of Gauss points
:retu... | 35.914286 | 99 | 0.515248 | 572 | 3,771 | 3.370629 | 0.216783 | 0.018672 | 0.009336 | 0.012448 | 0.298237 | 0.255705 | 0.229772 | 0.192427 | 0.192427 | 0.137448 | 0 | 0.084593 | 0.351101 | 3,771 | 104 | 100 | 36.259615 | 0.70331 | 0.421904 | 0 | 0.150943 | 0 | 0 | 0.00385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.018868 | 0 | 0.09434 | 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 |
b7f9ec5f1030d590ec1e3d249bcbd427149dded0 | 1,447 | py | Python | webscrap.py | ircykk/webscrap | b43d2a1075dbe6c6644391c3b79785375b207559 | [
"MIT"
] | null | null | null | webscrap.py | ircykk/webscrap | b43d2a1075dbe6c6644391c3b79785375b207559 | [
"MIT"
] | 2 | 2021-03-31T19:16:56.000Z | 2021-12-13T20:19:00.000Z | webscrap.py | ircykk/webscrap | b43d2a1075dbe6c6644391c3b79785375b207559 | [
"MIT"
] | null | null | null | import requests
import time
import argparse
import sys
import os
from bs4 import BeautifulSoup
from urllib.parse import urlparse
def is_url(url):
try:
result = urlparse(url)
return all([result.scheme, result.netloc])
except ValueError:
return False
def fetch_urls(page):
r = requests.get(page)
soup =... | 22.968254 | 83 | 0.691776 | 223 | 1,447 | 4.412556 | 0.394619 | 0.02439 | 0.051829 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007329 | 0.151348 | 1,447 | 62 | 84 | 23.33871 | 0.793974 | 0.052522 | 0 | 0.043478 | 0 | 0 | 0.108266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.152174 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7fa464b97651a98f542160b4536fc5d2f36512c | 3,035 | py | Python | lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py | shift-left-test/meta-shift | effce9bea894f990703cc047157e3f30d53d9365 | [
"MIT"
] | 2 | 2022-01-19T02:39:43.000Z | 2022-02-07T01:58:17.000Z | lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py | shift-left-test/meta-shift | effce9bea894f990703cc047157e3f30d53d9365 | [
"MIT"
] | null | null | null | lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py | shift-left-test/meta-shift | effce9bea894f990703cc047157e3f30d53d9365 | [
"MIT"
] | null | null | null | from shift_oelint_parser.cls_item import Variable
from shift_oelint_adv.cls_rule import Rule
from shift_oelint_parser.helper_files import get_scr_components
from shift_oelint_parser.parser import INLINE_BLOCK
class VarSRCUriOptions(Rule):
def __init__(self):
super(VarSRCUriOptions, self).__init__(id="oeli... | 41.013514 | 93 | 0.45832 | 298 | 3,035 | 4.493289 | 0.332215 | 0.040329 | 0.04481 | 0.048544 | 0.187453 | 0.187453 | 0.116505 | 0.116505 | 0.070202 | 0.070202 | 0 | 0.027501 | 0.436903 | 3,035 | 73 | 94 | 41.575342 | 0.755998 | 0 | 0 | 0.208955 | 0 | 0 | 0.093575 | 0.015486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.059701 | 0 | 0.119403 | 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 |
b7fab4376dcf24e3dbd079130cdac6cf32133a5b | 1,084 | py | Python | verba/apps/auth/backends.py | nhsuk/verba | c0354ae2012a046e7f7cc7482e293737de9d28bc | [
"MIT"
] | null | null | null | verba/apps/auth/backends.py | nhsuk/verba | c0354ae2012a046e7f7cc7482e293737de9d28bc | [
"MIT"
] | 2 | 2016-08-11T09:30:41.000Z | 2016-08-11T15:04:08.000Z | verba/apps/auth/backends.py | nhsuk/verba | c0354ae2012a046e7f7cc7482e293737de9d28bc | [
"MIT"
] | 1 | 2021-04-11T07:41:27.000Z | 2021-04-11T07:41:27.000Z | from github import User as GitHubUser
from github.auth import get_token
from github.exceptions import AuthValidationError
from . import get_user_model
class VerbaBackend(object):
"""
Django authentication backend which authenticates against the GitHub API.
"""
def authenticate(self, code=None):
... | 28.526316 | 77 | 0.612546 | 120 | 1,084 | 5.35 | 0.425 | 0.077882 | 0.056075 | 0.065421 | 0.130841 | 0.130841 | 0.130841 | 0.130841 | 0 | 0 | 0 | 0 | 0.311808 | 1,084 | 37 | 78 | 29.297297 | 0.86059 | 0.166974 | 0 | 0.083333 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
b7fb6f9d3e04e66224e9cdb811584decc5862d2f | 798 | py | Python | examples/apds9960_color_simpletest.py | tannewt/Adafruit_CircuitPython_APDS9960 | becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab | [
"MIT"
] | null | null | null | examples/apds9960_color_simpletest.py | tannewt/Adafruit_CircuitPython_APDS9960 | becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab | [
"MIT"
] | null | null | null | examples/apds9960_color_simpletest.py | tannewt/Adafruit_CircuitPython_APDS9960 | becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab | [
"MIT"
] | null | null | null | import time
import board
import busio
import digitalio
from adafruit_apds9960.apds9960 import APDS9960
from adafruit_apds9960 import colorutility
i2c = busio.I2C(board.SCL, board.SDA)
int_pin = digitalio.DigitalInOut(board.A2)
apds = APDS9960(i2c)
apds.enable_color = True
while True:
#create some variables to st... | 24.9375 | 84 | 0.699248 | 119 | 798 | 4.605042 | 0.478992 | 0.065693 | 0.016423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046368 | 0.189223 | 798 | 31 | 85 | 25.741935 | 0.800618 | 0.155388 | 0 | 0 | 0 | 0 | 0.074516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7fcfd8dcf5ce827a8535f6ece099e74d61fb49d | 15,109 | py | Python | Analysis/CardioVascularLab/ExVivo/exvivo.py | sassystacks/TissueMechanicsLab | 0f881a57ebf7cbadfeb2041daabd4e4b79b25b91 | [
"MIT"
] | null | null | null | Analysis/CardioVascularLab/ExVivo/exvivo.py | sassystacks/TissueMechanicsLab | 0f881a57ebf7cbadfeb2041daabd4e4b79b25b91 | [
"MIT"
] | null | null | null | Analysis/CardioVascularLab/ExVivo/exvivo.py | sassystacks/TissueMechanicsLab | 0f881a57ebf7cbadfeb2041daabd4e4b79b25b91 | [
"MIT"
] | null | null | null | import sys
sys.path.append('..')
from Analyzer.TransitionProperties import ProcessTransitionProperties
from tkinter import *
from tkinter import messagebox, ttk, filedialog
# from tkFileDialog import *
import uniaxanalysis.getproperties as getprops
from uniaxanalysis.plotdata import DataPlotter
from uniaxanalysis.sav... | 38.347716 | 170 | 0.581243 | 1,627 | 15,109 | 5.352797 | 0.258144 | 0.034103 | 0.015501 | 0.014468 | 0.236767 | 0.199219 | 0.142152 | 0.110231 | 0.073487 | 0.073487 | 0 | 0.018566 | 0.283473 | 15,109 | 393 | 171 | 38.445293 | 0.785886 | 0.127606 | 0 | 0.090452 | 0 | 0.01005 | 0.086576 | 0.015122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060302 | false | 0 | 0.065327 | 0 | 0.130653 | 0.015075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b7fdfc063cfae7dcf94caa90899dd03c0a4da68d | 8,028 | py | Python | cats/cats.py | BrandtH22/CAT-admin-tool | f58f76e5b3af5484089652616c17c669c4adebb7 | [
"Apache-2.0"
] | 1 | 2022-03-22T21:59:15.000Z | 2022-03-22T21:59:15.000Z | cats/cats.py | BrandtH22/CAT-admin-tool | f58f76e5b3af5484089652616c17c669c4adebb7 | [
"Apache-2.0"
] | null | null | null | cats/cats.py | BrandtH22/CAT-admin-tool | f58f76e5b3af5484089652616c17c669c4adebb7 | [
"Apache-2.0"
] | null | null | null | import click
import aiohttp
import asyncio
import re
import json
from typing import Optional, Tuple, Iterable, Union, List
from blspy import G2Element, AugSchemeMPL
from chia.cmds.wallet_funcs import get_wallet
from chia.rpc.wallet_rpc_client import WalletRpcClient
from chia.util.default_root import DEFAULT_ROOT_PATH... | 29.733333 | 114 | 0.646736 | 1,019 | 8,028 | 4.896958 | 0.263003 | 0.024249 | 0.007014 | 0.013627 | 0.124249 | 0.077756 | 0.055311 | 0.014028 | 0.014028 | 0.014028 | 0 | 0.004654 | 0.250623 | 8,028 | 269 | 115 | 29.843866 | 0.824801 | 0.080219 | 0 | 0.160173 | 0 | 0 | 0.131822 | 0.006924 | 0 | 0 | 0 | 0.003717 | 0 | 1 | 0.017316 | false | 0.004329 | 0.082251 | 0 | 0.134199 | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b7ff6526e37679ba17f2e315aceade4303222790 | 1,997 | py | Python | tagging/tag_net.py | zhuzhutingru123/Semantics-AssistedVideoCaptioning | 28c7b3fa57964f734f0fb38ecb89c9e8e21e5aaf | [
"MIT"
] | 55 | 2019-09-23T12:21:47.000Z | 2022-03-29T19:50:57.000Z | tagging/tag_net.py | zhuzhutingru123/Semantics-AssistedVideoCaptioning | 28c7b3fa57964f734f0fb38ecb89c9e8e21e5aaf | [
"MIT"
] | 13 | 2019-10-02T05:10:03.000Z | 2021-11-03T11:33:32.000Z | tagging/tag_net.py | WingsBrokenAngel/Semantics-AssistedVideoCaptioning | 409ca8b5be336d8957f3345825c8815a3070af19 | [
"MIT"
] | 15 | 2019-09-20T07:10:47.000Z | 2022-03-11T09:05:18.000Z | # -*- coding: utf-8 -*-
# Author: Haoran Chen
# Date: 2019-4-28
import tensorflow as tf
from tensorflow import placeholder, glorot_normal_initializer, zeros_initializer
from tensorflow.nn import dropout
import numpy as np
n_z = 3584
n_y = 300
MSVD_PATH = None
MSRVTT_PATH = None
MSVD_GT_PATH = None
MSRVTT_GT_PATH = No... | 33.847458 | 101 | 0.613921 | 301 | 1,997 | 3.903654 | 0.27907 | 0.076596 | 0.066383 | 0.053617 | 0.268936 | 0.226383 | 0.115745 | 0.049362 | 0.049362 | 0 | 0 | 0.065963 | 0.240861 | 1,997 | 58 | 102 | 34.431034 | 0.709103 | 0.028543 | 0 | 0.05 | 0 | 0 | 0.009326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 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 |
b7ffe90a656352b24d635be78e2f3b9924c3cd33 | 1,625 | py | Python | example/keraslogistic/cloudmesh_ai/logistic_regression.py | cloudmesh-community/fa19-516-174 | 1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72 | [
"Apache-2.0"
] | null | null | null | example/keraslogistic/cloudmesh_ai/logistic_regression.py | cloudmesh-community/fa19-516-174 | 1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72 | [
"Apache-2.0"
] | null | null | null | example/keraslogistic/cloudmesh_ai/logistic_regression.py | cloudmesh-community/fa19-516-174 | 1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from cloudmesh import mongo
from flask import request
from flask_pymongo import PyMongo
from sklearn.feature_selection import SelectKBest, chi2
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from .file import upload
def fit(body):
# Put input file... | 36.931818 | 87 | 0.647385 | 220 | 1,625 | 4.572727 | 0.4 | 0.032803 | 0.017893 | 0.029821 | 0.204771 | 0.204771 | 0.204771 | 0.204771 | 0.204771 | 0.204771 | 0 | 0.075472 | 0.217231 | 1,625 | 43 | 88 | 37.790698 | 0.715409 | 0.124308 | 0 | 0.137931 | 0 | 0 | 0.222301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.275862 | 0 | 0.413793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d009e96e973b11eba741f0ee1dbc7d7ed84b7ed | 2,629 | py | Python | rescan-script.py | fivepiece/electrum-personal-server | dae6eb3954f3916e13aa88969a5b6ac65a488a13 | [
"MIT"
] | null | null | null | rescan-script.py | fivepiece/electrum-personal-server | dae6eb3954f3916e13aa88969a5b6ac65a488a13 | [
"MIT"
] | null | null | null | rescan-script.py | fivepiece/electrum-personal-server | dae6eb3954f3916e13aa88969a5b6ac65a488a13 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
from configparser import ConfigParser, NoSectionError, NoOptionError
from electrumpersonalserver.jsonrpc import JsonRpc, JsonRpcError
from datetime import datetime
import server
def search_for_block_height_of_date(datestr, rpc):
target_time = datetime.strptime(datestr, "%d/%m/%Y")
bestbloc... | 36.013699 | 79 | 0.63218 | 325 | 2,629 | 4.935385 | 0.350769 | 0.030549 | 0.05985 | 0.071072 | 0.168329 | 0.082294 | 0 | 0 | 0 | 0 | 0 | 0.010045 | 0.242678 | 2,629 | 72 | 80 | 36.513889 | 0.79558 | 0.02016 | 0 | 0.140625 | 0 | 0 | 0.1979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.046875 | 0.0625 | 0 | 0.21875 | 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 |
4d014fe4ec193e53774cf70e289d81ecdf7c7e43 | 1,205 | py | Python | setup.py | OriHoch/ckan-cloud-operator | 125c3eb10f843ac62fc85659e756bd1d9620eae7 | [
"MIT"
] | null | null | null | setup.py | OriHoch/ckan-cloud-operator | 125c3eb10f843ac62fc85659e756bd1d9620eae7 | [
"MIT"
] | null | null | null | setup.py | OriHoch/ckan-cloud-operator | 125c3eb10f843ac62fc85659e756bd1d9620eae7 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from os import path
from time import time
here = path.abspath(path.dirname(__file__))
if path.exists("VERSION.txt"):
# this file can be written by CI tools (e.g. Travis)
with open("VERSION.txt") as version_file:
version = version_file.read().strip().strip("v... | 25.638298 | 66 | 0.575104 | 137 | 1,205 | 4.948905 | 0.656934 | 0.066372 | 0.100295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027902 | 0.256432 | 1,205 | 46 | 67 | 26.195652 | 0.728795 | 0.13029 | 0 | 0 | 0 | 0 | 0.306436 | 0.026897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 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 |
4d01db8b99d5d581962d295f65f32a07a2a32b59 | 652 | py | Python | extension/magic/activate.py | ianpreston/oh-my-py | 17e37974c203cb28aa2de340c6ac66143c16bd4e | [
"Unlicense",
"MIT"
] | 3 | 2016-04-10T20:08:57.000Z | 2021-12-05T19:03:37.000Z | extension/magic/activate.py | ianpreston/oh-my-py | 17e37974c203cb28aa2de340c6ac66143c16bd4e | [
"Unlicense",
"MIT"
] | null | null | null | extension/magic/activate.py | ianpreston/oh-my-py | 17e37974c203cb28aa2de340c6ac66143c16bd4e | [
"Unlicense",
"MIT"
] | null | null | null | import os
import os.path
def activate(ipython, venv):
"""
Shortcut to run execfile() on `venv`/bin/activate_this.py
"""
venv = os.path.abspath(venv)
venv_activate = os.path.join(venv, 'bin', 'activate_this.py')
if not os.path.exists(venv_activate):
print('Not a virtualenv: {}'.format(... | 25.076923 | 70 | 0.662577 | 90 | 652 | 4.633333 | 0.466667 | 0.057554 | 0.100719 | 0.091127 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194785 | 652 | 25 | 71 | 26.08 | 0.794286 | 0.18865 | 0 | 0 | 0 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d03f7e180eeb633a961138f2a85fdbfb2a84df1 | 1,786 | py | Python | tempest/api/queuing/test_queues.py | NetApp/tempest | dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc | [
"Apache-2.0"
] | null | null | null | tempest/api/queuing/test_queues.py | NetApp/tempest | dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc | [
"Apache-2.0"
] | null | null | null | tempest/api/queuing/test_queues.py | NetApp/tempest | dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Rackspace, 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 wr... | 29.278689 | 69 | 0.702688 | 233 | 1,786 | 5.274678 | 0.459227 | 0.051261 | 0.034174 | 0.026037 | 0.160293 | 0.081367 | 0 | 0 | 0 | 0 | 0 | 0.00977 | 0.197648 | 1,786 | 60 | 70 | 29.766667 | 0.847872 | 0.332587 | 0 | 0.206897 | 0 | 0 | 0.040886 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.137931 | false | 0 | 0.137931 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d04bfd380e253ed326e19219946bfffe57dc0dc | 10,757 | py | Python | tests/gdata_tests/live_client_test.py | lqc/google-data-api | b720582a472d627a0853d02e51e13dbce4cfe6ae | [
"Apache-2.0"
] | null | null | null | tests/gdata_tests/live_client_test.py | lqc/google-data-api | b720582a472d627a0853d02e51e13dbce4cfe6ae | [
"Apache-2.0"
] | null | null | null | tests/gdata_tests/live_client_test.py | lqc/google-data-api | b720582a472d627a0853d02e51e13dbce4cfe6ae | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (C) 2009 Google 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 ... | 35.50165 | 78 | 0.685972 | 1,454 | 10,757 | 4.910591 | 0.178817 | 0.044818 | 0.017647 | 0.02395 | 0.529552 | 0.484874 | 0.417087 | 0.397199 | 0.337535 | 0.337535 | 0 | 0.00788 | 0.186018 | 10,757 | 302 | 79 | 35.619205 | 0.807561 | 0.145859 | 0 | 0.421569 | 0 | 0 | 0.145824 | 0.010603 | 0 | 0 | 0 | 0.003311 | 0.112745 | 1 | 0.073529 | false | 0 | 0.04902 | 0.014706 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d098b2bde7f0fef38c7be3632c1ac962fd07aad | 125,107 | py | Python | spaghetti/network.py | gegen07/spaghetti | f10f9d016deeb8d4cdd63377304fc8e3b8492a0f | [
"BSD-3-Clause"
] | 182 | 2018-07-23T20:17:32.000Z | 2022-03-28T07:08:43.000Z | spaghetti/network.py | gegen07/spaghetti | f10f9d016deeb8d4cdd63377304fc8e3b8492a0f | [
"BSD-3-Clause"
] | 563 | 2017-04-14T23:39:21.000Z | 2022-02-12T20:34:21.000Z | spaghetti/network.py | gegen07/spaghetti | f10f9d016deeb8d4cdd63377304fc8e3b8492a0f | [
"BSD-3-Clause"
] | 51 | 2017-04-14T23:40:31.000Z | 2022-03-31T01:41:56.000Z | from collections import defaultdict, OrderedDict
from itertools import islice
import copy, os, pickle, warnings
import esda
import numpy
from .analysis import GlobalAutoK
from . import util
from libpysal import cg, examples, weights
from libpysal.common import requires
try:
from libpysal import open
except Impor... | 35.714245 | 146 | 0.588632 | 14,734 | 125,107 | 4.895751 | 0.090946 | 0.013309 | 0.00603 | 0.005767 | 0.285164 | 0.23412 | 0.204037 | 0.181704 | 0.16034 | 0.150137 | 0 | 0.014902 | 0.327392 | 125,107 | 3,502 | 147 | 35.724443 | 0.842325 | 0.522649 | 0 | 0.181051 | 0 | 0 | 0.057956 | 0.006708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032833 | false | 0.000938 | 0.013133 | 0 | 0.077861 | 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 |
4d09ec45c4e1965510df15bcf08b297cda5ab9d9 | 1,097 | py | Python | ac_loss_plot.py | atul799/CarND-Semantic-Segmentation | dbec928d3ba9cc68f3de9bbb7707df85131c1d5c | [
"MIT"
] | null | null | null | ac_loss_plot.py | atul799/CarND-Semantic-Segmentation | dbec928d3ba9cc68f3de9bbb7707df85131c1d5c | [
"MIT"
] | null | null | null | ac_loss_plot.py | atul799/CarND-Semantic-Segmentation | dbec928d3ba9cc68f3de9bbb7707df85131c1d5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
plot acc loss
@author: atpandey
"""
#%%
import matplotlib.pyplot as plt
#%%
ff='./to_laptop/trg_file.txt'
with open(ff,'r') as trgf:
listidx=[]
listloss=[]
listacc=[]
ctr=0
for line in trgf:
if(ctr>0):
ll=line.split(',')
listidx.append... | 18.913793 | 82 | 0.606199 | 165 | 1,097 | 3.957576 | 0.490909 | 0.036753 | 0.039816 | 0.042879 | 0.045942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039728 | 0.196901 | 1,097 | 58 | 83 | 18.913793 | 0.701476 | 0.196901 | 0 | 0 | 0 | 0 | 0.157044 | 0.058891 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 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 |
4d0a6ad7788dddfb228aeaaea80d6d51b9e09fa7 | 8,611 | py | Python | VA_multiples/src/main.py | brown9804/Modelos_Probabilisticos- | 8ddc6afbe4da5975af9eb5dc946ff19daa1171bc | [
"Apache-2.0"
] | null | null | null | VA_multiples/src/main.py | brown9804/Modelos_Probabilisticos- | 8ddc6afbe4da5975af9eb5dc946ff19daa1171bc | [
"Apache-2.0"
] | null | null | null | VA_multiples/src/main.py | brown9804/Modelos_Probabilisticos- | 8ddc6afbe4da5975af9eb5dc946ff19daa1171bc | [
"Apache-2.0"
] | null | null | null | ##--------------------------------Main file------------------------------------
##
## Copyright (C) 2020 by Belinda Brown Ramírez (belindabrownr04@gmail.com)
## June, 2020
## timna.brown@ucr.ac.cr
##-----------------------------------------------------------------------------
# Variables aleatorias mú... | 46.048128 | 164 | 0.652537 | 1,201 | 8,611 | 4.507077 | 0.273938 | 0.006096 | 0.026603 | 0.02882 | 0.206725 | 0.157214 | 0.099575 | 0.077406 | 0.0678 | 0.053021 | 0 | 0.025617 | 0.143189 | 8,611 | 186 | 165 | 46.295699 | 0.708051 | 0.439322 | 0 | 0.079545 | 0 | 0.011364 | 0.180064 | 0.06596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0 | 0.25 | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d0a9eaef2e9a5554500cb97127b08aa78c0807c | 7,527 | py | Python | official/mnist/mnist.py | TuKJet/models | 984fbc754943c849c55a57923f4223099a1ff88c | [
"Apache-2.0"
] | 3,326 | 2018-01-26T22:42:25.000Z | 2022-02-16T13:16:39.000Z | official/mnist/mnist.py | lianlengyunyu/models | 984fbc754943c849c55a57923f4223099a1ff88c | [
"Apache-2.0"
] | 150 | 2017-08-28T14:59:36.000Z | 2022-03-11T23:21:35.000Z | official/mnist/mnist.py | lianlengyunyu/models | 984fbc754943c849c55a57923f4223099a1ff88c | [
"Apache-2.0"
] | 1,474 | 2018-02-01T04:33:18.000Z | 2022-03-08T07:02:20.000Z | # Copyright 2017 The TensorFlow 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 appl... | 36.1875 | 82 | 0.689385 | 1,024 | 7,527 | 4.90625 | 0.314453 | 0.039809 | 0.017914 | 0.027468 | 0.201831 | 0.14371 | 0.117237 | 0.11047 | 0.09992 | 0.077627 | 0 | 0.01436 | 0.204331 | 7,527 | 207 | 83 | 36.362319 | 0.824512 | 0.234755 | 0 | 0.174825 | 0 | 0 | 0.146669 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 1 | 0.041958 | false | 0 | 0.055944 | 0.006993 | 0.146853 | 0.020979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d0b5e5a16eda393441922d1c3ec56983303e265 | 523 | py | Python | pep_92.py | sayantan3/project-euler | 9b856c84a0b174754819ed15f86eb0f30181e94e | [
"MIT"
] | null | null | null | pep_92.py | sayantan3/project-euler | 9b856c84a0b174754819ed15f86eb0f30181e94e | [
"MIT"
] | null | null | null | pep_92.py | sayantan3/project-euler | 9b856c84a0b174754819ed15f86eb0f30181e94e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def calculate():
ans = sum(1
for i in range(1, 10000000)
if get_terminal(i) == 89)
return str(ans)
TERMINALS = (1, 89)
def get_terminal(n):
while n not in TERMINALS:
n = square_digit_sum(n)
return n
def square_digit_sum(n):
result = 0
... | 18.678571 | 62 | 0.565966 | 82 | 523 | 3.414634 | 0.439024 | 0.042857 | 0.042857 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085399 | 0.305927 | 523 | 27 | 63 | 19.37037 | 0.68595 | 0.040153 | 0 | 0 | 0 | 0 | 0.016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.315789 | 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 |
4d0e95505acc0778edf0c0cfa6593332a693d19f | 7,813 | py | Python | Common/EDACommon.py | MlGroupsWJ/Customer-Satisfication | bae0d3691613f078c88f926fee8d1d0684cb6f88 | [
"Apache-2.0"
] | null | null | null | Common/EDACommon.py | MlGroupsWJ/Customer-Satisfication | bae0d3691613f078c88f926fee8d1d0684cb6f88 | [
"Apache-2.0"
] | null | null | null | Common/EDACommon.py | MlGroupsWJ/Customer-Satisfication | bae0d3691613f078c88f926fee8d1d0684cb6f88 | [
"Apache-2.0"
] | null | null | null | # -*- coding:UTF-8 -*-
import pandas as pd
from minepy import MINE
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.ensemble import ExtraTreesClassifier
import xgboost as xgb
import operator
from sklearn.utils import shuffle
from Common.ModelCommon import ModelCV
from sklearn import svm
import numpy a... | 32.419087 | 114 | 0.64879 | 1,002 | 7,813 | 4.9501 | 0.282435 | 0.043548 | 0.018145 | 0.015726 | 0.144153 | 0.128831 | 0.084073 | 0.073589 | 0.062097 | 0.042339 | 0 | 0.015919 | 0.212082 | 7,813 | 241 | 115 | 32.419087 | 0.789799 | 0.054269 | 0 | 0.11236 | 0 | 0 | 0.061831 | 0.00339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146067 | false | 0.005618 | 0.129213 | 0.022472 | 0.382022 | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d188e480cc959a97285226a6ee540747e54cbfc | 3,661 | py | Python | aioruuvitag/scanner_windows.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | 7 | 2019-11-08T07:30:05.000Z | 2022-02-20T21:58:44.000Z | aioruuvitag/scanner_windows.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | null | null | null | aioruuvitag/scanner_windows.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | 1 | 2021-06-19T16:52:55.000Z | 2021-06-19T16:52:55.000Z | # -*- coding: utf-8 -*-
"""
Perform Bluetooth LE Scan.
Based on https://github.com/hbldh/bleak/blob/master/bleak/backends/dotnet/discovery.py by
Created by hbldh <henrik.blidh@nedomkull.com>
"""
import logging
logger = logging.getLogger('bleak_scanner')
import asyncio
import queue
from bleak.backends.device import ... | 34.537736 | 99 | 0.571429 | 373 | 3,661 | 5.474531 | 0.407507 | 0.01714 | 0.016161 | 0.03526 | 0.128306 | 0.109696 | 0.082272 | 0.082272 | 0 | 0 | 0 | 0.004404 | 0.255668 | 3,661 | 105 | 100 | 34.866667 | 0.744954 | 0.175362 | 0 | 0.125 | 0 | 0 | 0.0748 | 0.008351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.111111 | 0.013889 | 0.166667 | 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 |
4d1921977ff8cb85df1411e9a16a739fa19af1b7 | 2,354 | py | Python | GUI/app.py | YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles | dbdfb1157c6448720bcf18135789c91c0940bdb4 | [
"MIT"
] | 1 | 2020-09-09T13:59:34.000Z | 2020-09-09T13:59:34.000Z | GUI/app.py | YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles | dbdfb1157c6448720bcf18135789c91c0940bdb4 | [
"MIT"
] | 1 | 2020-09-10T05:28:02.000Z | 2020-09-10T05:28:02.000Z | GUI/app.py | YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles | dbdfb1157c6448720bcf18135789c91c0940bdb4 | [
"MIT"
] | 1 | 2020-09-09T13:59:37.000Z | 2020-09-09T13:59:37.000Z | import tkinter as tk
from PIL import Image, ImageTk
import numpy as np
import os
import time
class MyAPP():
def __init__(self):
self.window = tk.Tk()
self.window.title('Classification Results')
self.window.geometry('1000x800')
self.window.attributes('-topmost',1)
#self.windo... | 35.134328 | 98 | 0.621071 | 296 | 2,354 | 4.891892 | 0.324324 | 0.117403 | 0.030387 | 0.046961 | 0.223066 | 0.140884 | 0.140884 | 0 | 0 | 0 | 0 | 0.036324 | 0.228122 | 2,354 | 66 | 99 | 35.666667 | 0.760594 | 0.018267 | 0 | 0.038462 | 0 | 0 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d19e5d928407169ece619db02a32249f6803443 | 1,350 | py | Python | 028_dict.py | MikePolyakov/python_book | 497681e8a167918a19ae737960c9c86ebffa9e91 | [
"MIT"
] | null | null | null | 028_dict.py | MikePolyakov/python_book | 497681e8a167918a19ae737960c9c86ebffa9e91 | [
"MIT"
] | null | null | null | 028_dict.py | MikePolyakov/python_book | 497681e8a167918a19ae737960c9c86ebffa9e91 | [
"MIT"
] | null | null | null | countries = {'Russia' : 'Europe', 'Germany' : 'Europe', 'Australia' : 'Australia'}
sqrs = {}
sqrs[1] = 1
sqrs[2] = 4
sqrs[10] = 100
print(sqrs)
myDict = dict([['key1', 'value1'], ('key2', 'value2')])
print(myDict)
phones = {'police' : 102, 'ambulance' : 103, 'firefighters' : 101}
print(phones['police'])
phones = {'... | 28.723404 | 82 | 0.625185 | 166 | 1,350 | 5.084337 | 0.36747 | 0.085308 | 0.07109 | 0.113744 | 0.222749 | 0.222749 | 0.222749 | 0.123223 | 0.123223 | 0 | 0 | 0.046974 | 0.18 | 1,350 | 47 | 83 | 28.723404 | 0.715447 | 0 | 0 | 0.102564 | 0 | 0 | 0.142117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d1a042ce335839faa6fa2c218bbf1f71877225d | 1,203 | py | Python | solutions/10. Regular Expression Matching.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | solutions/10. Regular Expression Matching.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | solutions/10. Regular Expression Matching.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | """
Runtime: 47 ms, faster than 89.57% of Python3 online submissions for Regular Expression Matching.
Memory Usage: 15.2 MB, less than 6.45% of Python3 online submissions for Regular Expression Matching.
"""
from typing import List
from typing import Optional
class Solution:
cache = {}
def isMatch(self, s: s... | 29.341463 | 101 | 0.502078 | 163 | 1,203 | 3.656442 | 0.349693 | 0.02349 | 0.083893 | 0.092282 | 0.404362 | 0.404362 | 0.347315 | 0.305369 | 0.124161 | 0.124161 | 0 | 0.035088 | 0.336658 | 1,203 | 40 | 102 | 30.075 | 0.711779 | 0.16542 | 0 | 0.290323 | 0 | 0 | 0.031125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.419355 | 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 |
4d1b446c03d9bd0f9bcfdda12df328d24d3b6854 | 3,807 | py | Python | jdll-tutorial/ansible/library/book.py | Spredzy/jdll-ansible | 767ab383c9efb676c3d9923159172f42d221fd2f | [
"Apache-2.0"
] | null | null | null | jdll-tutorial/ansible/library/book.py | Spredzy/jdll-ansible | 767ab383c9efb676c3d9923159172f42d221fd2f | [
"Apache-2.0"
] | null | null | null | jdll-tutorial/ansible/library/book.py | Spredzy/jdll-ansible | 767ab383c9efb676c3d9923159172f42d221fd2f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from ansible.module_utils.basic import *
from jdll import API
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'version': '1.0'}
DOCUMENTATION = '''
---
module: book
author: "Yanis Guenane (@Spredzy)"
version_added: "2.3"
short_descript... | 25.38 | 127 | 0.561334 | 432 | 3,807 | 4.898148 | 0.356481 | 0.090737 | 0.020794 | 0.034026 | 0.17344 | 0.140359 | 0.06758 | 0.06758 | 0.06758 | 0.045369 | 0 | 0.001572 | 0.331495 | 3,807 | 149 | 128 | 25.550336 | 0.829862 | 0.09824 | 0 | 0.307692 | 0 | 0 | 0.496199 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 1 | 0.008547 | false | 0 | 0.017094 | 0 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d1d08adbb5e362ba1318dc99aee5c3a36e6c489 | 2,679 | py | Python | main.py | CyberPunk-Josh/Lab-app | aa3a5cf77a176bde3156d0f69a1f4018a503ca6f | [
"MIT"
] | null | null | null | main.py | CyberPunk-Josh/Lab-app | aa3a5cf77a176bde3156d0f69a1f4018a503ca6f | [
"MIT"
] | null | null | null | main.py | CyberPunk-Josh/Lab-app | aa3a5cf77a176bde3156d0f69a1f4018a503ca6f | [
"MIT"
] | null | null | null | from menu_design import *
from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtCore import Qt, QEasingCurve
# Local files
from reologicalOne.reological import RModel
from reologicalTwo.reologicalDB import RModelDB
from density.density import Density
import sys
# class for menu
class MiApp(QMainWi... | 30.793103 | 95 | 0.655842 | 287 | 2,679 | 5.947735 | 0.393728 | 0.057411 | 0.046866 | 0.056239 | 0.181019 | 0.107206 | 0.107206 | 0.107206 | 0 | 0 | 0 | 0.005958 | 0.248227 | 2,679 | 86 | 96 | 31.151163 | 0.841609 | 0.079507 | 0 | 0.178571 | 0 | 0 | 0.00815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
4d1e4f9713b73667b272d5c41483d8a89a98e904 | 1,024 | py | Python | web/detector/dog_detector.py | PaulNWms/dog-project | 4d70bcd39aa3ea0a8744efc42c53f031fbf63b64 | [
"MIT"
] | null | null | null | web/detector/dog_detector.py | PaulNWms/dog-project | 4d70bcd39aa3ea0a8744efc42c53f031fbf63b64 | [
"MIT"
] | 13 | 2020-01-28T22:15:35.000Z | 2022-03-11T23:57:35.000Z | web_app/detector/dog_detector.py | Brijesh-Chandra/Dog-Breed-Identifier | b3c918ad148b072d49b358629cba146079bf3dc3 | [
"MIT"
] | null | null | null | from keras.preprocessing import image
import keras.applications.resnet50 as resnet50
import numpy as np
app = None
def initialize_dog_detector(the_app):
global app
app = the_app
app.config['RESNET_50_MODEL'] = resnet50.ResNet50(weights='imagenet')
def path_to_tensor(img_path):
# loads RGB image as ... | 29.257143 | 85 | 0.723633 | 157 | 1,024 | 4.541401 | 0.407643 | 0.068724 | 0.042076 | 0.047686 | 0.115007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054958 | 0.182617 | 1,024 | 34 | 86 | 30.117647 | 0.796894 | 0.236328 | 0 | 0.142857 | 0 | 0 | 0.048906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.47619 | 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 |
4d1e62b7359e72d9ef996cfa45b2930243bf6b7d | 1,124 | py | Python | camp_real_engine/plugins/regexp.py | vassik/camp-realize | be65af18dd6deb800695988700730d2c3fb279cf | [
"MIT"
] | null | null | null | camp_real_engine/plugins/regexp.py | vassik/camp-realize | be65af18dd6deb800695988700730d2c3fb279cf | [
"MIT"
] | null | null | null | camp_real_engine/plugins/regexp.py | vassik/camp-realize | be65af18dd6deb800695988700730d2c3fb279cf | [
"MIT"
] | null | null | null | import re
from camp_real_engine.abstract.abc_subst_realizer import ABC_subst_realizer
from camp_real_engine.model.realization import RegExpFileSubstNode
from camp_real_engine.dao.daos import FileContentCommiter
from camp_real_engine.abstract.abc_real_data_model import ABCSubstitutionNode
class RegExp(ABC_subst_real... | 34.060606 | 97 | 0.825623 | 143 | 1,124 | 6.118881 | 0.34965 | 0.137143 | 0.130286 | 0.082286 | 0.196571 | 0.066286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100534 | 1,124 | 33 | 98 | 34.060606 | 0.86548 | 0 | 0 | 0.090909 | 0 | 0 | 0.005333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d220c47f8915f484fcada1de144cddca671bb25 | 25,729 | py | Python | google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- 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 or... | 41.700162 | 171 | 0.653309 | 2,660 | 25,729 | 6.185338 | 0.145113 | 0.025284 | 0.012642 | 0.029782 | 0.633684 | 0.567252 | 0.542758 | 0.514617 | 0.483742 | 0.477056 | 0 | 0.003592 | 0.285864 | 25,729 | 616 | 172 | 41.767857 | 0.891858 | 0.215671 | 0 | 0.48659 | 0 | 0 | 0.009436 | 0.005194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015326 | false | 0 | 0.08046 | 0 | 0.203065 | 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 |
4d283228992f8ac0459bba73af7effe988be2fc1 | 1,525 | py | Python | get_board_array.py | SuperStormer/minesweeper-bot | b503752ef4f4c1650ea48609dcebf0757d5ad209 | [
"MIT"
] | null | null | null | get_board_array.py | SuperStormer/minesweeper-bot | b503752ef4f4c1650ea48609dcebf0757d5ad209 | [
"MIT"
] | 2 | 2022-01-13T00:50:34.000Z | 2022-03-11T23:26:44.000Z | get_board_array.py | SuperStormer/minesweeper-bot | b503752ef4f4c1650ea48609dcebf0757d5ad209 | [
"MIT"
] | null | null | null | import mss
import numpy as np
from PIL import Image
from config import BOARD_HEIGHT, BOARD_WIDTH
CELL_SIZE = 22
BOARD_X = 14
BOARD_Y = 111
COLOR_CODES = {
(0, 0, 255): 1,
(0, 123, 0): 2,
(255, 0, 0): 3,
(0, 0, 123): 4,
(123, 0, 0): 5,
(0, 123, 123): 6,
(0, 0, 0): 7,
(123, 123, 123): 8,
(189, 189, 189): 0 #uno... | 32.446809 | 123 | 0.662951 | 272 | 1,525 | 3.573529 | 0.345588 | 0.057613 | 0.033951 | 0.04321 | 0.123457 | 0.123457 | 0.061728 | 0.061728 | 0.061728 | 0.061728 | 0 | 0.097233 | 0.170492 | 1,525 | 46 | 124 | 33.152174 | 0.671146 | 0.141639 | 0 | 0 | 0 | 0 | 0.00768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.097561 | 0 | 0.195122 | 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 |
4d32026c6758449b672d084b5b5fc4c71016f623 | 3,380 | py | Python | redbot/resource/active_check/base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | null | null | null | redbot/resource/active_check/base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | null | null | null | redbot/resource/active_check/base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Subrequests to do things like range requests, content negotiation checks,
and validation.
This is the base class for all subrequests.
"""
from abc import ABCMeta, abstractmethod
from configparser import SectionProxy
from typing import List, Tuple, Type, Union, TYPE_CHECKING
from redbot.res... | 32.190476 | 97 | 0.657988 | 409 | 3,380 | 5.305623 | 0.359413 | 0.050691 | 0.034562 | 0.020277 | 0.065438 | 0.037788 | 0.037788 | 0.037788 | 0 | 0 | 0 | 0.003539 | 0.247633 | 3,380 | 104 | 98 | 32.5 | 0.849784 | 0.165976 | 0 | 0.028986 | 0 | 0 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0 | 0.101449 | 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 |
4d36ab2ecf64dbe104d9ad83b84b202b59495ecf | 13,674 | py | Python | page_api.py | tomkludy/md_to_conf | 3b03f1c68eea1f8a6d788afab0add63f6d4dcf46 | [
"MIT"
] | null | null | null | page_api.py | tomkludy/md_to_conf | 3b03f1c68eea1f8a6d788afab0add63f6d4dcf46 | [
"MIT"
] | null | null | null | page_api.py | tomkludy/md_to_conf | 3b03f1c68eea1f8a6d788afab0add63f6d4dcf46 | [
"MIT"
] | null | null | null | """
# --------------------------------------------------------------------------------------------------
# Page APIs
# --------------------------------------------------------------------------------------------------
"""
import os
import tempfile
import re
import json
import collections
import mimetypes
import urllib... | 36.270557 | 114 | 0.546365 | 1,576 | 13,674 | 4.567259 | 0.164975 | 0.032509 | 0.024451 | 0.010697 | 0.36788 | 0.318561 | 0.231036 | 0.161156 | 0.124757 | 0.087663 | 0 | 0.003382 | 0.329604 | 13,674 | 376 | 115 | 36.367021 | 0.781826 | 0.147945 | 0 | 0.226891 | 0 | 0.004202 | 0.140109 | 0.03064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0 | 0.071429 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d37f40cf39b5e290df6e5f9680f28b3b0ec78f5 | 5,918 | py | Python | testing/tests/data_handling/test_predict.py | JSKenyon/QuartiCal | 2113855b080cfecc4a1c77cc9dad346ef3619716 | [
"MIT"
] | null | null | null | testing/tests/data_handling/test_predict.py | JSKenyon/QuartiCal | 2113855b080cfecc4a1c77cc9dad346ef3619716 | [
"MIT"
] | null | null | null | testing/tests/data_handling/test_predict.py | JSKenyon/QuartiCal | 2113855b080cfecc4a1c77cc9dad346ef3619716 | [
"MIT"
] | 1 | 2022-03-18T14:30:04.000Z | 2022-03-18T14:30:04.000Z | from copy import deepcopy
import pytest
from quartical.data_handling.predict import (parse_sky_models,
daskify_sky_model_dict,
get_support_tables)
import dask.array as da
import numpy as np
from numpy.testing import assert_array_a... | 32.163043 | 79 | 0.622339 | 739 | 5,918 | 4.744249 | 0.247632 | 0.029663 | 0.034227 | 0.032801 | 0.393896 | 0.285511 | 0.244438 | 0.187678 | 0.157444 | 0.157444 | 0 | 0.010323 | 0.214262 | 5,918 | 183 | 80 | 32.338798 | 0.743656 | 0.191112 | 0 | 0.288462 | 0 | 0 | 0.097755 | 0.007552 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.125 | false | 0 | 0.057692 | 0.038462 | 0.240385 | 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 |
4d3c620a15280505542a7dd73460b5056d95dccf | 1,269 | py | Python | hw1/feature_summary.py | doochi/gct634-ai613-2021 | af12a1ea9c622fca17928f8431cc0983470f97db | [
"MIT"
] | 9 | 2021-09-04T04:11:47.000Z | 2022-01-06T13:00:32.000Z | hw1/feature_summary.py | doochi/gct634-ai613-2021 | af12a1ea9c622fca17928f8431cc0983470f97db | [
"MIT"
] | null | null | null | hw1/feature_summary.py | doochi/gct634-ai613-2021 | af12a1ea9c622fca17928f8431cc0983470f97db | [
"MIT"
] | 19 | 2021-09-12T10:13:09.000Z | 2022-01-28T01:37:42.000Z | # GCT634 (2018) HW1
#
# Mar-18-2018: initial version
#
# Juhan Nam
#
import sys
import os
import numpy as np
import matplotlib.pyplot as plt
data_path = './dataset/'
mfcc_path = './mfcc/'
MFCC_DIM = 20
def mean_mfcc(dataset='train'):
f = open(data_path + dataset + '_list.txt','r')
if dataset == 'tra... | 18.940299 | 82 | 0.597321 | 183 | 1,269 | 3.95082 | 0.404372 | 0.06639 | 0.041494 | 0.038728 | 0.307054 | 0.26556 | 0.26556 | 0.193638 | 0.193638 | 0.193638 | 0 | 0.04 | 0.251379 | 1,269 | 66 | 83 | 19.227273 | 0.721053 | 0.06777 | 0 | 0.057143 | 0 | 0 | 0.098628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.171429 | 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 |
4d3c97fcf24ccce0fd906a45948aebe7fed32f87 | 6,685 | py | Python | package/kedro_viz/services/layers.py | pascalwhoop/kedro-viz | 5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d | [
"BSD-3-Clause-Clear",
"Apache-2.0"
] | 246 | 2019-07-08T15:27:34.000Z | 2022-01-09T18:47:11.000Z | package/kedro_viz/services/layers.py | pascalwhoop/kedro-viz | 5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d | [
"BSD-3-Clause-Clear",
"Apache-2.0"
] | 222 | 2019-07-08T14:07:13.000Z | 2022-01-06T19:19:27.000Z | package/kedro_viz/services/layers.py | pascalwhoop/kedro-viz | 5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d | [
"BSD-3-Clause-Clear",
"Apache-2.0"
] | 53 | 2019-07-14T14:06:47.000Z | 2021-12-06T22:21:46.000Z | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | 48.093525 | 100 | 0.698579 | 963 | 6,685 | 4.770509 | 0.319834 | 0.032651 | 0.020897 | 0.020897 | 0.105137 | 0.052242 | 0.030039 | 0.030039 | 0.014367 | 0 | 0 | 0.004338 | 0.241436 | 6,685 | 138 | 101 | 48.442029 | 0.901597 | 0.696784 | 0 | 0.153846 | 0 | 0 | 0.051667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 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 |
4d3cec7b76ef0e1f26a6a2ea0b4008e98f8e6357 | 6,941 | py | Python | fixed_width_gen.py | pradnyaalc/fixed_width_file_generation | 989eb34f57a6061f89c4889ec1c3db3a45b86723 | [
"Apache-2.0"
] | null | null | null | fixed_width_gen.py | pradnyaalc/fixed_width_file_generation | 989eb34f57a6061f89c4889ec1c3db3a45b86723 | [
"Apache-2.0"
] | null | null | null | fixed_width_gen.py | pradnyaalc/fixed_width_file_generation | 989eb34f57a6061f89c4889ec1c3db3a45b86723 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# importing libraries
import json
from copy import deepcopy
from decimal import Decimal
import time
class FixedWidth:
def get_config(self, config_file):
"""
reads the json specification file and returns a dictionary
:param config_file: json
:retur... | 33.370192 | 121 | 0.53998 | 816 | 6,941 | 4.487745 | 0.25 | 0.03823 | 0.019115 | 0.018023 | 0.107591 | 0.039323 | 0.039323 | 0.016931 | 0 | 0 | 0 | 0.018763 | 0.354992 | 6,941 | 207 | 122 | 33.531401 | 0.799196 | 0.174326 | 0 | 0.15 | 0 | 0 | 0.141156 | 0.004535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.033333 | 0 | 0.166667 | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d3cfc02ebd8ee1182122794d381b0a0a452d148 | 855 | py | Python | 52digest.py | Ferdandez/homework | 07df8e0c63e93773e7fc354bfb4e6ae301d49124 | [
"MIT"
] | null | null | null | 52digest.py | Ferdandez/homework | 07df8e0c63e93773e7fc354bfb4e6ae301d49124 | [
"MIT"
] | null | null | null | 52digest.py | Ferdandez/homework | 07df8e0c63e93773e7fc354bfb4e6ae301d49124 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# 52digest.py
import re
import sys
# Write a program that performs an EcoRI digest on the SARS-COV2 genome
# The program should have 2 arguments
# 1. The genome file
# 2. The restriction pattern
# The output should be the sizes of the restriction fragments
originseen = False
seq = ''
dige... | 19 | 71 | 0.679532 | 140 | 855 | 4.15 | 0.55 | 0.036145 | 0.05852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079251 | 0.188304 | 855 | 44 | 72 | 19.431818 | 0.757925 | 0.311111 | 0 | 0 | 0 | 0 | 0.037422 | 0 | 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 |
4d3d62f955634f9c834d309435153be67f95acc0 | 2,394 | py | Python | yt_dlp/extractor/willow.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 80 | 2021-05-25T11:33:49.000Z | 2022-03-29T20:36:53.000Z | yt_dlp/extractor/willow.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 53 | 2017-04-12T19:53:18.000Z | 2022-02-22T10:33:13.000Z | yt_dlp/extractor/willow.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 22 | 2021-05-07T05:01:27.000Z | 2022-03-26T19:10:54.000Z | # coding: utf-8
from ..utils import ExtractorError
from .common import InfoExtractor
class WillowIE(InfoExtractor):
_VALID_URL = r'https?://(www\.)?willow\.tv/videos/(?P<id>[0-9a-z-_]+)'
_GEO_COUNTRIES = ['US']
_TESTS = [{
'url': 'http://willow.tv/videos/d5winning-moment-eng-vs-ind-streaming-onli... | 40.576271 | 125 | 0.581036 | 280 | 2,394 | 4.778571 | 0.464286 | 0.047833 | 0.03139 | 0.040359 | 0.188341 | 0.140508 | 0.100149 | 0.100149 | 0.100149 | 0.100149 | 0 | 0.03662 | 0.258563 | 2,394 | 58 | 126 | 41.275862 | 0.717183 | 0.013367 | 0 | 0 | 0 | 0.08 | 0.384485 | 0.071217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.04 | 0 | 0.16 | 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 |
4d3e1930813427009e7819522279ea71f06fd637 | 4,044 | py | Python | src/dissregarded/NetArivalsDeparturesHoures.py | sebastian-konicz/WRM | e60aafada7bb85df955a7e1357f33fe5846f4e6c | [
"MIT"
] | 1 | 2019-11-02T18:24:19.000Z | 2019-11-02T18:24:19.000Z | src/dissregarded/NetArivalsDeparturesHoures.py | sebastian-konicz/WRM | e60aafada7bb85df955a7e1357f33fe5846f4e6c | [
"MIT"
] | 7 | 2020-03-24T17:48:28.000Z | 2022-03-12T00:05:13.000Z | src/dissregarded/NetArivalsDeparturesHoures.py | sebastian-konicz/WRM | e60aafada7bb85df955a7e1357f33fe5846f4e6c | [
"MIT"
] | null | null | null | import folium
from folium.plugins import MarkerCluster
import pandas as pd
import datetime
from pathlib import Path
# pd.options.display.max_columns = 50
def main(dir):
# Loading Data Set
print("Loading dataset")
RentalData = pd.read_csv(dir + r'\data\processed\RentalData2015.csv')
# Changind the Sta... | 42.568421 | 121 | 0.638477 | 456 | 4,044 | 5.493421 | 0.381579 | 0.043912 | 0.037924 | 0.008782 | 0.182036 | 0.069461 | 0.069461 | 0.042315 | 0.042315 | 0 | 0 | 0.021611 | 0.244807 | 4,044 | 95 | 122 | 42.568421 | 0.798625 | 0.202275 | 0 | 0 | 0 | 0 | 0.163169 | 0.023802 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.092593 | 0 | 0.185185 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d3ef71c75b3b75d2218b109a8f46905d02e164e | 10,038 | py | Python | rdr_service/offline/metrics_export.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 39 | 2017-10-13T19:16:27.000Z | 2021-09-24T16:58:21.000Z | rdr_service/offline/metrics_export.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | rdr_service/offline/metrics_export.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 19 | 2017-09-15T13:58:00.000Z | 2022-02-07T18:33:20.000Z | from rdr_service import clock, config
from rdr_service.code_constants import EHR_CONSENT_QUESTION_CODE, PPI_SYSTEM, RACE_QUESTION_CODE, UNMAPPED
from rdr_service.dao.code_dao import CodeDao
from rdr_service.dao.database_utils import get_sql_and_params_for_array, replace_isodate
from rdr_service.dao.hpo_dao import HPODa... | 41.139344 | 117 | 0.724846 | 1,349 | 10,038 | 5.021497 | 0.175686 | 0.045173 | 0.053735 | 0.076764 | 0.408031 | 0.362563 | 0.289194 | 0.219959 | 0.214644 | 0.186005 | 0 | 0.001868 | 0.19994 | 10,038 | 243 | 118 | 41.308642 | 0.841614 | 0.118151 | 0 | 0.275132 | 0 | 0.005291 | 0.363605 | 0.070156 | 0 | 0 | 0 | 0.00823 | 0 | 1 | 0.063492 | false | 0 | 0.058201 | 0.005291 | 0.148148 | 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 |
4d3f64220d8ff34f2c9e4737de791b02b5323b50 | 701 | py | Python | fundata/dota2/player/player_detail.py | mengyuanhumy/fundata | e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32 | [
"MIT"
] | null | null | null | fundata/dota2/player/player_detail.py | mengyuanhumy/fundata | e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32 | [
"MIT"
] | null | null | null | fundata/dota2/player/player_detail.py | mengyuanhumy/fundata | e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ...client import get_api_client
def get_player_detail_stats(player_id):
"""玩家常规统计数据
参数player_id,玩家ID, int
返回dict格式
"""
if get_player_data_status(player_id)==2:
client=get_api_client()
uri="/fundata-dota2-free/v2/player/"+str(player_id)+"/detail_stats"
return client.api(uri,{})... | 22.612903 | 69 | 0.71184 | 110 | 701 | 4.3 | 0.4 | 0.118393 | 0.07611 | 0.071882 | 0.45666 | 0.350951 | 0.236786 | 0.236786 | 0.236786 | 0.236786 | 0 | 0.024272 | 0.118402 | 701 | 31 | 70 | 22.612903 | 0.7411 | 0.18117 | 0 | 0.235294 | 0 | 0 | 0.226619 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d42f4da01153d9efccca4d19cc6efc9b683c41b | 8,039 | py | Python | gui/trimGui.py | lhalb/gfmanager | 449f071b3239faa672b7f06122dfc9bc23e68d79 | [
"MIT"
] | 1 | 2022-01-18T12:53:17.000Z | 2022-01-18T12:53:17.000Z | gui/trimGui.py | lhalb/gfmanager | 449f071b3239faa672b7f06122dfc9bc23e68d79 | [
"MIT"
] | null | null | null | gui/trimGui.py | lhalb/gfmanager | 449f071b3239faa672b7f06122dfc9bc23e68d79 | [
"MIT"
] | null | null | null | from PyQt5 import QtGui, QtWidgets
import seaborn as sns
from gui import trimming as tri
from gui import boxes as BOX
import matplotlib.image as mpimg
from math import floor, ceil
class TrimDialog(QtWidgets.QDialog, tri.Ui_Dialog):
def __init__(self, data=None):
super(TrimDialog, self).__init__()
... | 32.812245 | 105 | 0.619729 | 1,110 | 8,039 | 4.211712 | 0.17027 | 0.025668 | 0.030802 | 0.023957 | 0.366631 | 0.238075 | 0.144599 | 0.133476 | 0.12107 | 0.091123 | 0 | 0.00528 | 0.269685 | 8,039 | 244 | 106 | 32.946721 | 0.791007 | 0.031596 | 0 | 0.225806 | 0 | 0 | 0.023148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.032258 | 0 | 0.155914 | 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 |
4d47790f7b2c6a08485b7da418683620a521d5cf | 1,178 | py | Python | __init__.py | hankangkangjim/djlog | cfdac281be811adc3fc1b91672c0230cc575722f | [
"MIT"
] | null | null | null | __init__.py | hankangkangjim/djlog | cfdac281be811adc3fc1b91672c0230cc575722f | [
"MIT"
] | null | null | null | __init__.py | hankangkangjim/djlog | cfdac281be811adc3fc1b91672c0230cc575722f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
def _defaultdict(_dict, key):
if key not in _dict:
_dict[key] = {}
return _dict[key]
def update_logging(log_config):
if not isinstance(log_config, dict):
raise TypeError('set... | 29.45 | 78 | 0.618846 | 121 | 1,178 | 5.760331 | 0.421488 | 0.077475 | 0.086083 | 0.068867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001121 | 0.242784 | 1,178 | 39 | 79 | 30.205128 | 0.780269 | 0.017827 | 0 | 0 | 0 | 0 | 0.271505 | 0.061828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d48c769d2260ad0c3c0d32734d1d092109092b3 | 6,697 | py | Python | manilaclient/tests/unit/common/test_httpclient.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | manilaclient/tests/unit/common/test_httpclient.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | manilaclient/tests/unit/common/test_httpclient.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 32.043062 | 78 | 0.626101 | 808 | 6,697 | 4.941832 | 0.20297 | 0.049587 | 0.042074 | 0.0571 | 0.660907 | 0.512647 | 0.454295 | 0.398698 | 0.368645 | 0.368645 | 0 | 0.022989 | 0.246528 | 6,697 | 208 | 79 | 32.197115 | 0.768331 | 0.080633 | 0 | 0.532895 | 0 | 0 | 0.111654 | 0.004883 | 0 | 0 | 0 | 0 | 0.065789 | 1 | 0.131579 | false | 0 | 0.039474 | 0 | 0.210526 | 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 |
4d4909137a8281abf00add12e7109af6453220fd | 1,421 | py | Python | intro_to_algos_2020_mit/ps3/tests.py | venu-gopal-myneni/assignments | 871148ccaa6291539623fc7d3f9704cb497fbcb6 | [
"MIT"
] | 1 | 2022-02-26T13:52:31.000Z | 2022-02-26T13:52:31.000Z | assignments/ps3-template/tests.py | tallamjr/mit-6006 | c2aa6bb48edef5800c0779ba2eebd697d44249b5 | [
"MIT"
] | null | null | null | assignments/ps3-template/tests.py | tallamjr/mit-6006 | c2aa6bb48edef5800c0779ba2eebd697d44249b5 | [
"MIT"
] | null | null | null | import unittest
from count_anagram_substrings import count_anagram_substrings
tests = (
(
(
'esleastealaslatet',
('tesla',),
),
(3,),
),
(
(
'lrldrrrllddrrlllrddd',
('ldl', 'rld'),
),
(1, 3),
),
(
... | 25.375 | 115 | 0.553835 | 121 | 1,421 | 6.31405 | 0.487603 | 0.045812 | 0.117801 | 0.150524 | 0.183246 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031313 | 0.303308 | 1,421 | 55 | 116 | 25.836364 | 0.740404 | 0 | 0 | 0.196078 | 0 | 0 | 0.233638 | 0.154821 | 0 | 0 | 0 | 0 | 0.098039 | 1 | 0.117647 | false | 0 | 0.039216 | 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 |
4d49fb464c7f3d5acfcbeab36ee17a5c9322cb65 | 9,387 | py | Python | sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py | eugval/sim2real_dynamics_simulation | 2ed175803faa38792f6becc2dc91f44ae71ed9c2 | [
"MIT"
] | 16 | 2020-07-28T14:35:44.000Z | 2021-11-28T01:50:51.000Z | sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py | eugval/sim2real_dynamics_simulation | 2ed175803faa38792f6becc2dc91f44ae71ed9c2 | [
"MIT"
] | 1 | 2020-11-26T07:58:30.000Z | 2020-12-01T04:40:28.000Z | sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py | eugval/sim2real_dynamics_simulation | 2ed175803faa38792f6becc2dc91f44ae71ed9c2 | [
"MIT"
] | 2 | 2020-10-18T01:38:49.000Z | 2021-12-31T10:56:41.000Z | """
System Identification (SI)
https://arxiv.org/abs/1702.02453
Examples of two types:
1. Off-line SI: in sim2real_policies.sys_id.common.utils
2. On-line SI
"""
from sim2real_policies.sys_id.common.operations import *
from sim2real_policies.sys_id.common.utils import *
from sim2real_policies.utils.rl_utils import lo... | 45.567961 | 155 | 0.629914 | 1,198 | 9,387 | 4.732053 | 0.217863 | 0.023285 | 0.016934 | 0.011289 | 0.221732 | 0.162815 | 0.122244 | 0.074793 | 0.06315 | 0.050097 | 0 | 0.014641 | 0.250559 | 9,387 | 206 | 156 | 45.567961 | 0.791187 | 0.161287 | 0 | 0.07483 | 0 | 0 | 0.090921 | 0.038174 | 0 | 0 | 0 | 0 | 0.013605 | 1 | 0.068027 | false | 0.006803 | 0.027211 | 0 | 0.14966 | 0.088435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d4c6f6195152d60976c1000937ec76667e66f99 | 2,099 | py | Python | rasp_camera.py | BrianDau/doorbell_dash | 940877c5019b39639e7de0081a616d20c8b5a0fc | [
"MIT"
] | 11 | 2017-04-12T13:27:39.000Z | 2021-05-16T16:27:15.000Z | rasp_camera.py | BrianDau/doorbell_dash | 940877c5019b39639e7de0081a616d20c8b5a0fc | [
"MIT"
] | null | null | null | rasp_camera.py | BrianDau/doorbell_dash | 940877c5019b39639e7de0081a616d20c8b5a0fc | [
"MIT"
] | 1 | 2019-01-10T18:33:42.000Z | 2019-01-10T18:33:42.000Z | import picamera
from time import sleep
IMG_WIDTH = 800
IMG_HEIGHT = 600
IMAGE_DIR = "/home/pi/Desktop/"
IMG = "snap.jpg"
def vid():
camera = picamera.PiCamera()
camera.vflip = True
camera.hflip = True
camera.brightness = 60
#camera.resolution = (IMG_WIDTH, IMG_HEIGHT)
camera.start_prev... | 26.910256 | 66 | 0.549786 | 219 | 2,099 | 5.136986 | 0.383562 | 0.062222 | 0.08 | 0.049778 | 0.236444 | 0.236444 | 0.236444 | 0.236444 | 0.236444 | 0.236444 | 0 | 0.021655 | 0.141972 | 2,099 | 77 | 67 | 27.25974 | 0.602998 | 0.545021 | 0 | 0 | 0 | 0 | 0.087318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d4daf56e54bd88f232ffc4ff205ca0bd68de320 | 1,823 | py | Python | userbot/core/vcbot/controls.py | Rewtio/Mikoo-Userbot | 418f0017241fa65bdf7f99c84381317cb4dbeb55 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2022-03-03T01:31:48.000Z | 2022-03-26T00:15:41.000Z | userbot/core/vcbot/controls.py | Rewtio/Mikoo-Userbot | 418f0017241fa65bdf7f99c84381317cb4dbeb55 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2022-03-16T02:54:27.000Z | 2022-03-17T09:17:12.000Z | userbot/core/vcbot/controls.py | Rewtio/Mikoo-Userbot | 418f0017241fa65bdf7f99c84381317cb4dbeb55 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2022-03-16T02:41:38.000Z | 2022-03-16T02:41:38.000Z | # Mikoo - UserBot
# Copyright (c) 2022 Mikoo-Userbot
# Credits: @divarvian || https://github.com/divarvian
#
# This file is a part of < https://github.com/divarvian/Mikoo-Userbot/ >
# t.me/MikooUserbot & t.me/MikooUserbot
from pytgcalls.types.input_stream import AudioPiped, AudioVideoPiped
from pytgcalls.types.input_... | 27.208955 | 80 | 0.623149 | 232 | 1,823 | 4.711207 | 0.37069 | 0.060384 | 0.054895 | 0.042086 | 0.199451 | 0.146386 | 0.146386 | 0.093321 | 0.093321 | 0.093321 | 0 | 0.022104 | 0.280307 | 1,823 | 66 | 81 | 27.621212 | 0.810976 | 0.114646 | 0 | 0.169811 | 0 | 0 | 0.006223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075472 | 0 | 0.188679 | 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 |
4d4ffc6370941aaa5377e63ac70bab0e9216c2d5 | 5,614 | py | Python | src/jaeger/jaeger.py | Novartis/JAEGER | 9f9441d97bb956d88b73e2d24edb65322420c251 | [
"Apache-2.0"
] | 9 | 2021-12-27T15:49:43.000Z | 2022-03-29T10:17:55.000Z | src/jaeger/jaeger.py | Novartis/JAEGER | 9f9441d97bb956d88b73e2d24edb65322420c251 | [
"Apache-2.0"
] | null | null | null | src/jaeger/jaeger.py | Novartis/JAEGER | 9f9441d97bb956d88b73e2d24edb65322420c251 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Novartis Institutes for BioMedical Research 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... | 31.539326 | 110 | 0.685073 | 747 | 5,614 | 4.919679 | 0.362784 | 0.019048 | 0.020408 | 0.027211 | 0.190476 | 0.157279 | 0.115918 | 0.084898 | 0.084898 | 0.058231 | 0 | 0.008882 | 0.217848 | 5,614 | 177 | 111 | 31.717514 | 0.828057 | 0.184539 | 0 | 0.146552 | 0 | 0 | 0.058526 | 0.005281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077586 | false | 0 | 0.163793 | 0 | 0.336207 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d52174dea07f449946604a9e3b3a0ae9531e302 | 436 | py | Python | build/lib/more/scikit_helper/common.py | ngupta23/more | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | [
"MIT"
] | 6 | 2019-07-18T20:26:30.000Z | 2021-06-10T17:20:19.000Z | more/scikit_helper/common.py | ngupta23/more | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | [
"MIT"
] | null | null | null | more/scikit_helper/common.py | ngupta23/more | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | [
"MIT"
] | null | null | null | # For Time Logging
import time
from contextlib import contextmanager
import logging
@contextmanager
# Timing Function
def time_usage(name=""):
"""
log the time usage in a code block
"""
# print ("In time_usage runID = {}".format(runID))
start = time.time()
yield
end = time.time()
elaps... | 22.947368 | 71 | 0.651376 | 56 | 436 | 5 | 0.553571 | 0.096429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.215596 | 436 | 18 | 72 | 24.222222 | 0.812866 | 0.268349 | 0 | 0 | 0 | 0 | 0.109635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 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 |
4d54d76c9267e5c02660af45e6cfbf3a771acab1 | 970 | py | Python | FALL/core/port_scanner.py | DevanshRaghav75/FALL | 643c19db18d76b850e427c026ff54dae547e69a5 | [
"MIT"
] | 1 | 2021-06-22T10:43:12.000Z | 2021-06-22T10:43:12.000Z | FALL/core/port_scanner.py | DevanshRaghav75/FALL | 643c19db18d76b850e427c026ff54dae547e69a5 | [
"MIT"
] | 2 | 2021-06-23T01:47:59.000Z | 2021-06-25T12:07:02.000Z | FALL/core/port_scanner.py | DevanshRaghav75/FALL | 643c19db18d76b850e427c026ff54dae547e69a5 | [
"MIT"
] | null | null | null | import socket
import threading
import concurrent.futures
from colorama import Fore, Style
def port_scanner():
print_lock = threading.Lock()
print('')
ip = input(Fore.CYAN + "[PORT_SCANNER]" + Style.RESET_ALL + "[>] Target: ")
port_range = input(Fore.CYAN + "[PORT_SCANNER]" + Style.RESET_ALL + "[>] Sca... | 31.290323 | 159 | 0.609278 | 122 | 970 | 4.721311 | 0.467213 | 0.095486 | 0.112847 | 0.059028 | 0.128472 | 0.128472 | 0.128472 | 0.128472 | 0 | 0 | 0 | 0.012535 | 0.259794 | 970 | 31 | 160 | 31.290323 | 0.789694 | 0 | 0 | 0.086957 | 0 | 0 | 0.129763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.043478 | 0.173913 | 0 | 0.26087 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d551b7eecd229efc3cad0fcf4d4e3f7b53e292a | 2,056 | py | Python | pyecharts/charts/scatter.py | chfw/pyecharts | 51de9d6f17946a356ff8b94c62a70404e4f55266 | [
"MIT"
] | 16 | 2018-01-24T00:56:15.000Z | 2022-03-18T09:00:42.000Z | pyecharts/charts/scatter.py | chfw/bryecharts | 51de9d6f17946a356ff8b94c62a70404e4f55266 | [
"MIT"
] | null | null | null | pyecharts/charts/scatter.py | chfw/bryecharts | 51de9d6f17946a356ff8b94c62a70404e4f55266 | [
"MIT"
] | 4 | 2018-01-21T17:49:49.000Z | 2021-03-13T22:08:49.000Z | #!/usr/bin/env python
# coding=utf-8
from pyecharts.chart import Chart
from pyecharts.option import get_all_options
class Scatter(Chart):
"""
<<< 散点图 >>>
直角坐标系上的散点图可以用来展现数据的 x,y 之间的关系,如果数据项有多个维度,
可以用颜色来表现,利用 geo 组件。
"""
def __init__(self, title="", subtitle="", **kwargs):
super(Scatt... | 27.413333 | 70 | 0.543288 | 238 | 2,056 | 4.491597 | 0.441176 | 0.032741 | 0.016838 | 0.028064 | 0.078578 | 0.078578 | 0.052385 | 0.052385 | 0.052385 | 0.052385 | 0 | 0.01083 | 0.326362 | 2,056 | 74 | 71 | 27.783784 | 0.761011 | 0.249027 | 0 | 0 | 0 | 0 | 0.084581 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.21875 | 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 |
4d5681b659a285c56598406e0b757f35ff94c449 | 869 | py | Python | pythonSEC/Utils/useapi.py | hpcc-systems/EDGAR-SEC-Filings | 1727820ffa2216ed2447bb6a265a54ef6503f001 | [
"Apache-2.0"
] | 1 | 2020-08-02T13:08:14.000Z | 2020-08-02T13:08:14.000Z | pythonSEC/Utils/useapi.py | hpcc-systems/EDGAR-SEC-Filings | 1727820ffa2216ed2447bb6a265a54ef6503f001 | [
"Apache-2.0"
] | null | null | null | pythonSEC/Utils/useapi.py | hpcc-systems/EDGAR-SEC-Filings | 1727820ffa2216ed2447bb6a265a54ef6503f001 | [
"Apache-2.0"
] | null | null | null | import yfinance as yf
import pandas as pd
import Utils
from Utils import scrape_utils
def qtrlabels(tick,date,comp='plain'):
stock = yf.Ticker(tick.upper())
hist = stock.history(interval="1d",start=scrape_utils.dashdate(scrape_utils.fixdate(date)),end=scrape_utils.qenddate(date))
stkchg = hist.iloc[-1].Close/hi... | 36.208333 | 134 | 0.698504 | 127 | 869 | 4.724409 | 0.456693 | 0.128333 | 0.056667 | 0.073333 | 0.296667 | 0.296667 | 0.296667 | 0.296667 | 0.296667 | 0.296667 | 0 | 0.012312 | 0.158803 | 869 | 23 | 135 | 37.782609 | 0.808482 | 0.078251 | 0 | 0 | 0 | 0 | 0.065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.421053 | 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 |
4d56ddb615e06e9e1805753500a2cd6d9b81e048 | 8,014 | py | Python | src/pymor/reductors/parabolic.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/reductors/parabolic.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/reductors/parabolic.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2016 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
from pymor.core.interfaces import ImmutableInterface
from pymor.core.logger im... | 48.569697 | 114 | 0.671949 | 1,000 | 8,014 | 5.221 | 0.269 | 0.074698 | 0.058609 | 0.036775 | 0.218157 | 0.154568 | 0.128711 | 0.064355 | 0.024516 | 0.024516 | 0 | 0.014613 | 0.23147 | 8,014 | 164 | 115 | 48.865854 | 0.83309 | 0.410656 | 0 | 0.059701 | 0 | 0 | 0.042115 | 0.009409 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.059701 | false | 0 | 0.104478 | 0 | 0.238806 | 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 |
4d572a2dac2905d58624d731de31416194c06588 | 3,050 | py | Python | frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py | ektai/erp2Dodock | 5ad64b01cba9b07437f9a27751101258679379e8 | [
"MIT"
] | null | null | null | frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py | ektai/erp2Dodock | 5ad64b01cba9b07437f9a27751101258679379e8 | [
"MIT"
] | null | null | null | frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py | ektai/erp2Dodock | 5ad64b01cba9b07437f9a27751101258679379e8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
from frappe.utils import get_datetime
from frappe.core.doctype.scheduled_job_type.scheduled_job_type import sync_jobs
class TestScheduledJobType(u... | 45.522388 | 138 | 0.754754 | 492 | 3,050 | 4.45935 | 0.211382 | 0.041021 | 0.054695 | 0.071103 | 0.599362 | 0.581586 | 0.581586 | 0.539198 | 0.539198 | 0.539198 | 0 | 0.085507 | 0.095082 | 3,050 | 67 | 139 | 45.522388 | 0.70942 | 0.062295 | 0 | 0.08 | 0 | 0 | 0.321654 | 0.119131 | 0 | 0 | 0 | 0 | 0.34 | 1 | 0.12 | false | 0 | 0.1 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d57caac42b99c0bec97612a491e63a139339081 | 1,750 | py | Python | projects/2_bike_share_data/menu_text.py | ssi112/programming-data-science-python | 6f70743a89f286f5eb4c13765098f18cf050d7a7 | [
"MIT"
] | 1 | 2020-10-20T20:34:53.000Z | 2020-10-20T20:34:53.000Z | projects/2_bike_share_data/menu_text.py | ssi112/programming-data-science-python | 6f70743a89f286f5eb4c13765098f18cf050d7a7 | [
"MIT"
] | null | null | null | projects/2_bike_share_data/menu_text.py | ssi112/programming-data-science-python | 6f70743a89f286f5eb4c13765098f18cf050d7a7 | [
"MIT"
] | null | null | null | # menu_text.py
#
# simple python menu
# https://stackoverflow.com/questions/19964603/creating-a-menu-in-python
#
city_menu = { '1': 'Chicago',
'2': 'New York',
'3': 'Washington',
'x': 'Exit'}
month_menu = {'0': 'All',
'1': 'January',
'2': 'February... | 26.515152 | 72 | 0.489714 | 178 | 1,750 | 4.629213 | 0.421348 | 0.033981 | 0.053398 | 0.069175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022827 | 0.349143 | 1,750 | 65 | 73 | 26.923077 | 0.700615 | 0.086286 | 0 | 0.104167 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.0625 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d5d0cd3a4c4b3b0b3187dfacf67f623810fd0f8 | 776 | py | Python | tablo/migrations/0006_alter_geom_col_type.py | consbio/tablo | 8d70bd3fe3449c3298ad69cc7c85bb2d8e83fad8 | [
"BSD-3-Clause"
] | 4 | 2017-04-26T10:30:56.000Z | 2019-06-13T03:20:44.000Z | tablo/migrations/0006_alter_geom_col_type.py | nrdsdata/tablo | 628bcde8071229485438def01ff3b0da0ef9e502 | [
"BSD-3-Clause"
] | 23 | 2016-07-18T21:40:29.000Z | 2019-06-04T20:08:57.000Z | tablo/migrations/0006_alter_geom_col_type.py | nrdsdata/tablo | 628bcde8071229485438def01ff3b0da0ef9e502 | [
"BSD-3-Clause"
] | 3 | 2016-11-21T18:47:33.000Z | 2019-05-15T23:29:56.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from tablo import GEOM_FIELD_NAME, WEB_MERCATOR_SRID
forward_sql = """
DO
$$
DECLARE
table_name name;
BEGIN
FOR table_name IN
SELECT tablo_featureservicelayer.table FROM tablo_... | 23.515152 | 118 | 0.657216 | 86 | 776 | 5.651163 | 0.55814 | 0.055556 | 0.053498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008576 | 0.248711 | 776 | 32 | 119 | 24.25 | 0.825043 | 0.027062 | 0 | 0.08 | 0 | 0.04 | 0.52324 | 0.139442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d5d0e78c95a6644e5c54d7d327b95b2ebfd2692 | 23,755 | py | Python | tests/test_atise.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | tests/test_atise.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | tests/test_atise.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.functional as F
from torch.nn.init import xavier_normal_
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
import numpy as np
from numpy.random import RandomState
f... | 39.52579 | 144 | 0.540097 | 3,217 | 23,755 | 3.77277 | 0.102269 | 0.0248 | 0.03823 | 0.023811 | 0.548159 | 0.497899 | 0.438 | 0.39911 | 0.348686 | 0.343495 | 0 | 0.030257 | 0.328015 | 23,755 | 600 | 145 | 39.591667 | 0.730063 | 0.067775 | 0 | 0.370787 | 0 | 0.006742 | 0.047826 | 0.024162 | 0 | 0 | 0 | 0.001667 | 0 | 1 | 0.044944 | false | 0 | 0.035955 | 0 | 0.119101 | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d5dd414ac863f8b7e031913598446b42eb6a1d4 | 1,265 | py | Python | tests/security_test.py | smarkets/bravado-core | 5d9c7eff417118462893c08accc40e27b066e2f6 | [
"BSD-3-Clause"
] | null | null | null | tests/security_test.py | smarkets/bravado-core | 5d9c7eff417118462893c08accc40e27b066e2f6 | [
"BSD-3-Clause"
] | null | null | null | tests/security_test.py | smarkets/bravado-core | 5d9c7eff417118462893c08accc40e27b066e2f6 | [
"BSD-3-Clause"
] | 1 | 2022-03-26T12:14:35.000Z | 2022-03-26T12:14:35.000Z | # -*- coding: utf-8 -*-
import pytest
from six import iteritems
def test_security_definition_property_extraction(security_dict, security_spec):
security_definitions = security_dict['securityDefinitions']
for security_name, security_spec_dict in iteritems(security_definitions):
security_object = securi... | 39.53125 | 88 | 0.679842 | 127 | 1,265 | 6.464567 | 0.401575 | 0.087698 | 0.09866 | 0.075518 | 0.095006 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.174704 | 1,265 | 31 | 89 | 40.806452 | 0.769157 | 0.016601 | 0 | 0 | 0 | 0 | 0.18277 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.12 | false | 0 | 0.08 | 0.04 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d6009ffc4ef0b627d157000658c61a9b68d4726 | 3,555 | py | Python | training/data_splits.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | training/data_splits.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | training/data_splits.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | import json
from typing import Union, Optional, Tuple, List
import numpy as np
from sklearn.feature_extraction import DictVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer, TfidfTransformer
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import Stan... | 41.337209 | 211 | 0.663854 | 442 | 3,555 | 5.160633 | 0.219457 | 0.06313 | 0.047348 | 0.047348 | 0.378343 | 0.231477 | 0.133275 | 0.133275 | 0.106094 | 0.106094 | 0 | 0.004405 | 0.233755 | 3,555 | 85 | 212 | 41.823529 | 0.832966 | 0 | 0 | 0.234375 | 0 | 0 | 0.006188 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 1 | 0.09375 | false | 0 | 0.125 | 0 | 0.328125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d6063eae63c8ba714bea0a997b134856f495196 | 31,868 | py | Python | GAPP.py | timhartley/GAPP | ddd3b3c29b50bc5a9eb3d7f84403e425072145bb | [
"Apache-2.0"
] | null | null | null | GAPP.py | timhartley/GAPP | ddd3b3c29b50bc5a9eb3d7f84403e425072145bb | [
"Apache-2.0"
] | null | null | null | GAPP.py | timhartley/GAPP | ddd3b3c29b50bc5a9eb3d7f84403e425072145bb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#Sorts based on top 50 CMetric, all callPaths - CMetric
#, all call paths - call path count and all samples
from __future__ import print_function
from bcc import BPF, PerfType, PerfSWConfig
from bcc import BPF
import sys
import ctypes as ct # For mapping the 'C' structure to Python
import argparse #... | 34.414687 | 197 | 0.614096 | 4,015 | 31,868 | 4.710585 | 0.131756 | 0.014276 | 0.014593 | 0.007614 | 0.272088 | 0.207053 | 0.162534 | 0.137207 | 0.115635 | 0.092899 | 0 | 0.019931 | 0.258472 | 31,868 | 925 | 198 | 34.451892 | 0.780416 | 0.082214 | 0 | 0.256374 | 0 | 0.011331 | 0.485692 | 0.124901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011331 | false | 0.001416 | 0.015581 | 0 | 0.073654 | 0.041076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d610d4a0f33ed82366186a1ab547fe19c1f9cea | 4,484 | py | Python | data/activitynet_feature_cuhk/data_process.py | NEUdeep/BSN | e987cc159976ebe54027b562d833a92a5aadf864 | [
"MIT"
] | 1 | 2021-04-21T08:09:59.000Z | 2021-04-21T08:09:59.000Z | data/activitynet_feature_cuhk/data_process.py | NEUdeep/BSN | e987cc159976ebe54027b562d833a92a5aadf864 | [
"MIT"
] | null | null | null | data/activitynet_feature_cuhk/data_process.py | NEUdeep/BSN | e987cc159976ebe54027b562d833a92a5aadf864 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
import numpy as np
import scipy
import pandas as pd
import pandas
import numpy
import json
def resizeFeature(inputData,newSize):
# inputX: (temporal_length,feature_dimension) #
originalSize=len(inputData)
#print originalSize
if originalSize==1:
inputData=... | 32.970588 | 103 | 0.674398 | 665 | 4,484 | 4.306767 | 0.198496 | 0.023743 | 0.019553 | 0.019204 | 0.12919 | 0.083799 | 0.058659 | 0.058659 | 0.058659 | 0.043994 | 0 | 0.018868 | 0.196253 | 4,484 | 136 | 104 | 32.970588 | 0.775805 | 0.02364 | 0 | 0.070796 | 0 | 0 | 0.07022 | 0.02699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044248 | false | 0 | 0.061947 | 0 | 0.168142 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d616609d3a6fbee45f8cfdcce708b41d046091c | 1,622 | py | Python | examples/cloud-test.py | Ferris-Labs/ferris-cli | 6a34706ab9163471bf2e03f31ba4018143f26d51 | [
"Apache-2.0"
] | null | null | null | examples/cloud-test.py | Ferris-Labs/ferris-cli | 6a34706ab9163471bf2e03f31ba4018143f26d51 | [
"Apache-2.0"
] | 1 | 2020-12-15T13:18:40.000Z | 2020-12-15T13:18:40.000Z | examples/cloud-test.py | Integration-Alpha/ferris-cli | 6a34706ab9163471bf2e03f31ba4018143f26d51 | [
"Apache-2.0"
] | null | null | null | from cloudevents.sdk.event import v03
import json
from ferris_cli.ferris_cli import CloudEventsAPI
import uuid
import os
import consul
from ferris_cli.ferris_cli import ApplicationConfigurator
from datetime import datetime
def send_direct_loading_event(hdfs_path):
data = {"file_location": hdfs_path }
event =... | 28.45614 | 106 | 0.7127 | 186 | 1,622 | 6.010753 | 0.354839 | 0.084973 | 0.085868 | 0.033989 | 0.627907 | 0.576029 | 0.525939 | 0.525939 | 0.452594 | 0.332737 | 0 | 0.00438 | 0.155364 | 1,622 | 56 | 107 | 28.964286 | 0.811679 | 0 | 0 | 0.465116 | 0 | 0 | 0.252158 | 0.165228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.186047 | 0 | 0.232558 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d65330a040ed957f51a1f95089f84709aa653c7 | 2,355 | py | Python | REL_dashboarSERVIDORES.py | tiagotouso/TALENTOS_HUMANOS | c391f7d7a331d5f8b186b27af6a9b61448620cc6 | [
"MIT"
] | null | null | null | REL_dashboarSERVIDORES.py | tiagotouso/TALENTOS_HUMANOS | c391f7d7a331d5f8b186b27af6a9b61448620cc6 | [
"MIT"
] | null | null | null | REL_dashboarSERVIDORES.py | tiagotouso/TALENTOS_HUMANOS | c391f7d7a331d5f8b186b27af6a9b61448620cc6 | [
"MIT"
] | null | null | null | '''
GERADOR DE RELATÓRIO DOS SERVIDORES (DASHBOARD SERVIDORES)
'''
from SQL import sqlpandas
from MENSAGEM import mensagemInformacao, mensagemErro
from AUXILIAR import salvarPandas
def dashboardServidores():
'''
FUNÇÃO PARA CRIAR OS DASHDOARD
ENTRA
ENTRA NULL
SAI
PLANILHA COM OS DADOS... | 32.260274 | 120 | 0.525265 | 242 | 2,355 | 5 | 0.487603 | 0.029752 | 0.013223 | 0.021488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040718 | 0.384713 | 2,355 | 72 | 121 | 32.708333 | 0.794341 | 0.065817 | 0 | 0.078431 | 0 | 0 | 0.475463 | 0.033796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.058824 | 0 | 0.117647 | 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 |
4d66d1254740f9bb3086a9048334ac1404d1dea1 | 2,189 | py | Python | torchkit/head/localfc/curricularface.py | sarvex/TFace | b3d8a1392816e0d941425c30ad843d185e286431 | [
"PSF-2.0"
] | 764 | 2021-05-26T15:40:25.000Z | 2022-03-30T03:26:31.000Z | torchkit/head/localfc/curricularface.py | Charlee-du/TFace | 490cf90a1f042b86d7d03042f26d0a7cf6b1f0c0 | [
"PSF-2.0"
] | 45 | 2021-06-07T12:57:19.000Z | 2022-03-25T16:04:54.000Z | torchkit/head/localfc/curricularface.py | Charlee-du/TFace | 490cf90a1f042b86d7d03042f26d0a7cf6b1f0c0 | [
"PSF-2.0"
] | 139 | 2021-06-04T09:25:21.000Z | 2022-03-31T22:49:23.000Z | from __future__ import print_function
from __future__ import division
import torch
import torch.nn as nn
from torch.nn import Parameter
import math
from torchkit.util.utils import l2_norm
from torchkit.head.localfc.common import calc_logits
class CurricularFace(nn.Module):
""" Implement of CurricularFace (https:/... | 37.741379 | 108 | 0.634536 | 293 | 2,189 | 4.508532 | 0.31058 | 0.06056 | 0.057532 | 0.027252 | 0.036336 | 0.036336 | 0 | 0 | 0 | 0 | 0 | 0.019839 | 0.263134 | 2,189 | 57 | 109 | 38.403509 | 0.799132 | 0.100959 | 0 | 0 | 0 | 0 | 0.000527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.285714 | 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 |
4d6a8be82f4b05e6fd5305e91364bc1db446eb68 | 3,730 | py | Python | front_end/migration_scripts/1_to_2.py | zacheliason/CodeBuddy | 18694771ccbb74e6966e08f1247aadda2d5d06f7 | [
"MIT"
] | null | null | null | front_end/migration_scripts/1_to_2.py | zacheliason/CodeBuddy | 18694771ccbb74e6966e08f1247aadda2d5d06f7 | [
"MIT"
] | 11 | 2020-06-12T19:13:12.000Z | 2021-08-28T23:47:57.000Z | front_end/migration_scripts/1_to_2.py | zacheliason/CodeBuddy | 18694771ccbb74e6966e08f1247aadda2d5d06f7 | [
"MIT"
] | 3 | 2020-05-12T16:54:16.000Z | 2021-04-30T16:19:46.000Z | import atexit
import sqlite3
import traceback
#################
import sys
sys.path.append('/app')
from helper import *
settings_dict = load_yaml_dict(read_file("/Settings.yaml"))
conn = sqlite3.connect(f"/database/{settings_dict['db_name']}", isolation_level=None, detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_C... | 41.910112 | 146 | 0.571314 | 392 | 3,730 | 5.229592 | 0.308673 | 0.040976 | 0.032195 | 0.033171 | 0.240488 | 0.223902 | 0.18439 | 0.115122 | 0.115122 | 0.115122 | 0 | 0.003734 | 0.353887 | 3,730 | 88 | 147 | 42.386364 | 0.846888 | 0.015282 | 0 | 0 | 0 | 0 | 0.344907 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d6aba53be016dfafeb618c7972f5e2504c99521 | 809 | py | Python | examples/example_tbl.py | alexmaragko/pyPAHdb | 54cbf11748185d800e06cde603e93275bdd059f4 | [
"BSD-3-Clause"
] | 4 | 2018-03-13T23:44:48.000Z | 2022-01-28T15:27:24.000Z | examples/example_tbl.py | alexmaragko/pyPAHdb | 54cbf11748185d800e06cde603e93275bdd059f4 | [
"BSD-3-Clause"
] | 35 | 2018-03-14T22:47:03.000Z | 2021-10-21T12:08:38.000Z | examples/example_tbl.py | alexmaragko/pyPAHdb | 54cbf11748185d800e06cde603e93275bdd059f4 | [
"BSD-3-Clause"
] | 6 | 2018-03-13T17:50:17.000Z | 2021-07-16T02:42:50.000Z | #!/usr/bin/env python3
"""
example.py
Example of using pypahdb to decompose an astronomical PAH spectrum.
"""
import pkg_resources
from pypahdb.decomposer import Decomposer
from pypahdb.observation import Observation
if __name__ == '__main__':
# The sample data (IPAC table).
file_path = 'resources/sample_... | 27.896552 | 78 | 0.754017 | 112 | 809 | 5.196429 | 0.491071 | 0.041237 | 0.041237 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019146 | 0.160692 | 809 | 28 | 79 | 28.892857 | 0.837997 | 0.353523 | 0 | 0 | 0 | 0 | 0.217221 | 0.187867 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d6b1faba00fbb5e279ded48969722c18dfa7079 | 10,448 | py | Python | homeassistant/components/zha/core/registries.py | headcode/home-assistant | ef338fa8803c9691c545cb335503723d271c652c | [
"Apache-2.0"
] | null | null | null | homeassistant/components/zha/core/registries.py | headcode/home-assistant | ef338fa8803c9691c545cb335503723d271c652c | [
"Apache-2.0"
] | null | null | null | homeassistant/components/zha/core/registries.py | headcode/home-assistant | ef338fa8803c9691c545cb335503723d271c652c | [
"Apache-2.0"
] | null | null | null | """
Mapping registries for Zigbee Home Automation.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/zha/
"""
from .const import (
DEVICE_CLASS, SINGLE_INPUT_CLUSTER_DEVICE_CLASS,
SINGLE_OUTPUT_CLUSTER_DEVICE_CLASS, COMPONENT_CLUSTERS, HUMIDITY,
... | 38.411765 | 77 | 0.656011 | 1,066 | 10,448 | 6.153846 | 0.188555 | 0.090549 | 0.068598 | 0.042683 | 0.540091 | 0.373171 | 0.183384 | 0.141006 | 0.071189 | 0.05625 | 0 | 0.002532 | 0.244066 | 10,448 | 271 | 78 | 38.553506 | 0.828058 | 0.046325 | 0 | 0.280851 | 0 | 0 | 0.077295 | 0.002818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017021 | false | 0 | 0.038298 | 0 | 0.068085 | 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 |
4d6b39d23d412e44e53a7dcf8c8b360f9c624422 | 3,292 | py | Python | contrib/EISeg/eiseg/data/base.py | haoyuying/PaddleSeg | 6607d88df39500330a7b6ed160b4626d9f38df66 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-08-04T02:47:33.000Z | 2021-08-04T02:47:33.000Z | contrib/EISeg/eiseg/data/base.py | isshf/PaddleSeg | 6607d88df39500330a7b6ed160b4626d9f38df66 | [
"Apache-2.0"
] | null | null | null | contrib/EISeg/eiseg/data/base.py | isshf/PaddleSeg | 6607d88df39500330a7b6ed160b4626d9f38df66 | [
"Apache-2.0"
] | 2 | 2021-08-04T02:48:50.000Z | 2021-11-16T08:13:41.000Z | import random
import pickle
import cv2
import numpy as np
import paddle
import paddleseg.transforms as T
from .points_sampler import MultiPointSampler
def get_unique_labels(x, exclude_zero=False):
obj_sizes = np.bincount(x.flatten())
labels = np.nonzero(obj_sizes)[0].tolist()
if exclude_zero:
la... | 33.591837 | 110 | 0.630316 | 405 | 3,292 | 4.82963 | 0.271605 | 0.093047 | 0.046012 | 0.033742 | 0.102249 | 0.0818 | 0.0818 | 0.05317 | 0.05317 | 0 | 0 | 0.013623 | 0.286452 | 3,292 | 98 | 111 | 33.591837 | 0.819072 | 0 | 0 | 0.02439 | 0 | 0 | 0.027027 | 0.008503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109756 | false | 0 | 0.085366 | 0.012195 | 0.329268 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d6be0364dfeb7a10616e3c99f46ad7c4e3cb501 | 1,008 | py | Python | handler/createThumbnail.py | brainlife/ezbids | 886c69942d19d59dc48d5049f226bd7bb98a8cb8 | [
"MIT"
] | 7 | 2020-08-07T20:46:27.000Z | 2022-03-21T12:08:20.000Z | handler/createThumbnail.py | brainlife/ezbids | 886c69942d19d59dc48d5049f226bd7bb98a8cb8 | [
"MIT"
] | 36 | 2020-10-18T15:17:17.000Z | 2022-03-31T14:41:26.000Z | handler/createThumbnail.py | brainlife/ezbids | 886c69942d19d59dc48d5049f226bd7bb98a8cb8 | [
"MIT"
] | 4 | 2020-07-29T16:48:55.000Z | 2021-11-17T22:13:19.000Z | #!/usr/bin/env python3
"""
Created on Wed Feb 17 08:32:55 2021
Deface anatomical image(s)
@author: dlevitas
"""
import os, sys
import nibabel as nib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.style.use('dark_background')
from math import floor
os.environ[ 'MPLCONFIGDIR' ] = '/tmp... | 24.585366 | 71 | 0.717262 | 164 | 1,008 | 4.256098 | 0.536585 | 0.090258 | 0.140401 | 0.081662 | 0.163324 | 0.163324 | 0.163324 | 0.163324 | 0 | 0 | 0 | 0.031461 | 0.117063 | 1,008 | 40 | 72 | 25.2 | 0.752809 | 0.103175 | 0 | 0 | 0 | 0 | 0.121788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.227273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d6eb4361eb99ba59182cf00398ec7253f4ded06 | 4,602 | py | Python | test/functional/feature_uaclient.py | syedrizwanmy/bitcoin-abc | 1241ef50e90d183421504fd783b9fd4dd6c1386a | [
"MIT"
] | 1,266 | 2017-05-02T07:02:29.000Z | 2022-03-31T17:15:44.000Z | test/functional/feature_uaclient.py | EGYVOICE/bitcoin-abc-avalanche | e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c | [
"MIT"
] | 426 | 2017-05-07T12:40:52.000Z | 2022-03-29T18:12:01.000Z | test/functional/feature_uaclient.py | EGYVOICE/bitcoin-abc-avalanche | e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c | [
"MIT"
] | 721 | 2017-05-07T10:36:11.000Z | 2022-03-15T09:07:48.000Z | #!/usr/bin/env python3
# Copyright (c) 2021 The Bitcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the -uaclientname and -uaclientversion option."""
import re
from test_framework.test_framework import Bitc... | 48.442105 | 156 | 0.63342 | 521 | 4,602 | 5.433781 | 0.24952 | 0.03497 | 0.038856 | 0.031791 | 0.625574 | 0.575768 | 0.575768 | 0.544331 | 0.446485 | 0.435888 | 0 | 0.01904 | 0.235332 | 4,602 | 94 | 157 | 48.957447 | 0.784882 | 0.063451 | 0 | 0.352113 | 0 | 0.042254 | 0.313169 | 0.021405 | 0.014085 | 0 | 0 | 0 | 0.183099 | 1 | 0.028169 | false | 0 | 0.056338 | 0 | 0.098592 | 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 |
4d6f1a664c1307c758152f80bcc30999ef1ce302 | 5,619 | py | Python | tests/test_dispersion_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 1 | 2021-08-04T05:09:16.000Z | 2021-08-04T05:09:16.000Z | tests/test_dispersion_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 4 | 2021-08-16T07:15:10.000Z | 2021-09-04T08:47:47.000Z | tests/test_dispersion_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 1 | 2021-08-04T05:09:13.000Z | 2021-08-04T05:09:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import annotations
import unittest
import numpy as np
import numpy.testing as npt
import pandas as pd
from riip.material import RiiMaterial
class KnownValues(unittest.TestCase):
known_values = [
(1, [0.0 for _ in range(17)], 1.0, 1.0),
... | 36.487013 | 88 | 0.433707 | 828 | 5,619 | 2.817633 | 0.125604 | 0.032576 | 0.111444 | 0.099014 | 0.650236 | 0.618517 | 0.52036 | 0.4012 | 0.252036 | 0.192027 | 0 | 0.124136 | 0.382096 | 5,619 | 153 | 89 | 36.72549 | 0.547811 | 0.02278 | 0 | 0.304348 | 0 | 0 | 0.038693 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.021739 | false | 0 | 0.043478 | 0 | 0.086957 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d71a5d711522e37eda93e8de3bbe07019f81e95 | 3,832 | py | Python | neutron/tests/unit/services/logapi/rpc/test_server.py | mcadariu/neutron | 35494af5a25efb8b314941ab85b44923654f6acc | [
"Apache-2.0"
] | 1 | 2018-07-04T07:59:31.000Z | 2018-07-04T07:59:31.000Z | neutron/tests/unit/services/logapi/rpc/test_server.py | ljzjohnson/neutron | d78664321482c15981a09642985a540195e754e3 | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/services/logapi/rpc/test_server.py | ljzjohnson/neutron | d78664321482c15981a09642985a540195e754e3 | [
"Apache-2.0"
] | 1 | 2018-08-28T17:13:16.000Z | 2018-08-28T17:13:16.000Z | # Copyright (c) 2017 Fujitsu Limited
# 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... | 40.765957 | 79 | 0.686587 | 490 | 3,832 | 5.055102 | 0.277551 | 0.048446 | 0.043601 | 0.029067 | 0.451756 | 0.43803 | 0.433185 | 0.354057 | 0.354057 | 0.354057 | 0 | 0.003734 | 0.231211 | 3,832 | 93 | 80 | 41.204301 | 0.837067 | 0.157881 | 0 | 0.338462 | 0 | 0 | 0.110212 | 0.105542 | 0 | 0 | 0 | 0 | 0.107692 | 1 | 0.123077 | false | 0 | 0.123077 | 0 | 0.276923 | 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 |
4d72a1c0cc4948586f7b3056d01b428148d2c15b | 942 | py | Python | src/ipyradiant/tests/test_servicepatch_rdflib.py | sanbales/ipyradiant | e798f3575cb08b539c04129b0c7ee74771246101 | [
"BSD-3-Clause"
] | null | null | null | src/ipyradiant/tests/test_servicepatch_rdflib.py | sanbales/ipyradiant | e798f3575cb08b539c04129b0c7ee74771246101 | [
"BSD-3-Clause"
] | null | null | null | src/ipyradiant/tests/test_servicepatch_rdflib.py | sanbales/ipyradiant | e798f3575cb08b539c04129b0c7ee74771246101 | [
"BSD-3-Clause"
] | null | null | null | """ Unit Tests for Service Patch
"""
# Copyright (c) 2021 ipyradiant contributors.
# Distributed under the terms of the Modified BSD License.
import ipyradiant
import rdflib
LINKEDDATA_QUERY = """
SELECT DISTINCT ?s ?p ?o
WHERE {
SERVICE <http://linkeddata.uriburner.com/sparql>
{
... | 22.97561 | 65 | 0.569002 | 106 | 942 | 4.867925 | 0.433962 | 0.023256 | 0.034884 | 0.062016 | 0.360465 | 0.360465 | 0.360465 | 0.360465 | 0.360465 | 0.360465 | 0 | 0.010938 | 0.320594 | 942 | 40 | 66 | 23.55 | 0.795313 | 0.138004 | 0 | 0.344828 | 0 | 0 | 0.524284 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.137931 | 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 |
4d72f8b8e24cd048f0649233ff63ab5878c4cdbc | 6,552 | py | Python | tests/plugins/project/test_git.py | cloudblue/connect-cli | 4b0b460782a27e5d96a106579f082cbccfe10c67 | [
"Apache-2.0"
] | 12 | 2020-10-10T10:53:16.000Z | 2022-02-16T10:15:56.000Z | tests/plugins/project/test_git.py | cloudblue/connect-cli | 4b0b460782a27e5d96a106579f082cbccfe10c67 | [
"Apache-2.0"
] | 37 | 2020-09-28T12:00:52.000Z | 2021-12-20T12:38:25.000Z | tests/plugins/project/test_git.py | cloudblue/connect-cli | 4b0b460782a27e5d96a106579f082cbccfe10c67 | [
"Apache-2.0"
] | 11 | 2020-11-04T18:17:01.000Z | 2022-02-23T08:18:07.000Z | import subprocess
from collections import OrderedDict
import pytest
from connect.cli.plugins.project import git
@pytest.mark.parametrize(
('str', 'result'),
(
('0.0.0', True),
('0.0.4', True),
('1.0.0', True),
('1.2.0', True),
('1.2.3', True),
('0.0', True),
... | 32.117647 | 108 | 0.498626 | 747 | 6,552 | 4.248996 | 0.148594 | 0.063012 | 0.05041 | 0.07656 | 0.538437 | 0.479521 | 0.440139 | 0.421865 | 0.421865 | 0.373346 | 0 | 0.126266 | 0.321886 | 6,552 | 203 | 109 | 32.275862 | 0.588116 | 0 | 0 | 0.305882 | 0 | 0 | 0.260267 | 0.076417 | 0 | 0 | 0 | 0 | 0.041176 | 1 | 0.041176 | false | 0 | 0.023529 | 0 | 0.064706 | 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 |
4d7317541546d8bbcf5ef1e2b7e13eb1d36a67cc | 737 | py | Python | src/dao/user.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | 2 | 2022-03-05T18:54:15.000Z | 2022-03-24T12:19:22.000Z | src/dao/user.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | null | null | null | src/dao/user.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | null | null | null | # Created by Kelvin_Clark on 3/5/2022, 6:37 PM
from typing import Optional
from src.models.entities.user import User
from src import database as db
class UserDao:
@staticmethod
def get_user_by_email(email: str) -> Optional[User]:
return User.query.filter_by(email=email).first()
@staticmethod
... | 24.566667 | 56 | 0.640434 | 101 | 737 | 4.564356 | 0.485149 | 0.086768 | 0.078091 | 0.060738 | 0.08243 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.2673 | 737 | 29 | 57 | 25.413793 | 0.837037 | 0.157395 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d735b8b416b377c0ccb95d07dcbca87d8a4365f | 839 | py | Python | dmoj/dmpg18g1.py | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | dmoj/dmpg18g1.py | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | dmoj/dmpg18g1.py | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | 1 | 2020-10-25T05:46:57.000Z | 2020-10-25T05:46:57.000Z | # Problem ID: dmpg18g1
# By Alexander Cai 2019-12-09
# Solved
import sys
FILLED = -1
EMPTY = 0
data = sys.stdin.read().split('\n')
n, k = map(int, data[0].split())
chairs = [FILLED for _ in range(n)]
for j in map(int, data[1].split()):
chairs[j-1] = EMPTY
for i, j in enumerate(map(int, data[2].split())):
i... | 20.975 | 62 | 0.555423 | 132 | 839 | 3.522727 | 0.416667 | 0.075269 | 0.068817 | 0.055914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045226 | 0.288439 | 839 | 39 | 63 | 21.512821 | 0.733668 | 0.168057 | 0 | 0.137931 | 0 | 0 | 0.002894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.034483 | 0 | 0.034483 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d735bc291be770b9f45354d1d88f6bbaa19cdc6 | 25,884 | py | Python | tests/test_base.py | tailhook/trafaret | 1968a0561e42d98094a5b90adbd6b0de49e7a4d9 | [
"BSD-2-Clause"
] | null | null | null | tests/test_base.py | tailhook/trafaret | 1968a0561e42d98094a5b90adbd6b0de49e7a4d9 | [
"BSD-2-Clause"
] | null | null | null | tests/test_base.py | tailhook/trafaret | 1968a0561e42d98094a5b90adbd6b0de49e7a4d9 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import trafaret as t
from collections import Mapping as AbcMapping
from trafaret import extract_error, ignore, DataError
from trafaret.extras import KeysSubset
class TestAnyTrafaret(unittest.TestCase):
def test_any(self):
self.assertEqual(
(t.Any() >> ig... | 37.731778 | 112 | 0.564789 | 3,469 | 25,884 | 4.130873 | 0.087345 | 0.181089 | 0.168318 | 0.043336 | 0.545708 | 0.465666 | 0.370342 | 0.29351 | 0.198604 | 0.176483 | 0 | 0.020712 | 0.242698 | 25,884 | 685 | 113 | 37.786861 | 0.710336 | 0.138734 | 0 | 0.196581 | 0 | 0 | 0.151437 | 0.003109 | 0 | 0 | 0 | 0.00146 | 0.326923 | 1 | 0.104701 | false | 0.004274 | 0.010684 | 0.004274 | 0.188034 | 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 |
4d73ae8092a1ed93a90f98b70314fba1d7c65aff | 6,107 | py | Python | libdesktop/desktopfile.py | bharadwaj-raju/libdesktop | 4d6b815755c76660b6ef4d2db6f54beff38c0db7 | [
"MIT"
] | 12 | 2016-07-08T12:59:24.000Z | 2021-03-29T01:01:56.000Z | libdesktop/desktopfile.py | bharadwaj-raju/libdesktop | 4d6b815755c76660b6ef4d2db6f54beff38c0db7 | [
"MIT"
] | 4 | 2016-10-12T10:28:19.000Z | 2016-11-08T10:04:30.000Z | libdesktop/desktopfile.py | bharadwaj-raju/libdesktop | 4d6b815755c76660b6ef4d2db6f54beff38c0db7 | [
"MIT"
] | 1 | 2016-10-02T00:15:21.000Z | 2016-10-02T00:15:21.000Z | # coding: utf-8
# This file is part of libdesktop
# The MIT License (MIT)
#
# Copyright (c) 2016 Bharadwaj Raju
#
# 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, includ... | 31 | 136 | 0.713935 | 888 | 6,107 | 4.77027 | 0.271396 | 0.132436 | 0.049575 | 0.034703 | 0.119924 | 0.086638 | 0.055949 | 0.018414 | 0.018414 | 0 | 0 | 0.001594 | 0.177992 | 6,107 | 196 | 137 | 31.158163 | 0.842231 | 0.51269 | 0 | 0.065934 | 0 | 0 | 0.132618 | 0.067256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043956 | false | 0.010989 | 0.054945 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4d74aef73934a96f618c4d0192a7d28c451a6713 | 2,887 | py | Python | losses.py | abhinav-2912/Polyp-Segmentation | 82f2a309bafb073dc7c12ec85d196c9367b4c702 | [
"MIT"
] | null | null | null | losses.py | abhinav-2912/Polyp-Segmentation | 82f2a309bafb073dc7c12ec85d196c9367b4c702 | [
"MIT"
] | null | null | null | losses.py | abhinav-2912/Polyp-Segmentation | 82f2a309bafb073dc7c12ec85d196c9367b4c702 | [
"MIT"
] | null | null | null | import os
import cv2
import keras
import numpy as np
import albumentations as A
import tensorflow as tf
from keras import backend as K
def jaccard_distance(y_true, y_pred, smooth=100):
intersection = K.sum(K.abs(y_true * y_pred), axis=-1)
sum_ = K.sum(K.abs(y_true) + K.abs(y_pred), axis=-1)
jac = (intersec... | 37.012821 | 108 | 0.66124 | 491 | 2,887 | 3.743381 | 0.205703 | 0.068009 | 0.042437 | 0.070729 | 0.407508 | 0.307943 | 0.220348 | 0.177911 | 0.177911 | 0.177911 | 0 | 0.013845 | 0.224454 | 2,887 | 78 | 109 | 37.012821 | 0.807057 | 0.366817 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.184211 | 0.026316 | 0.552632 | 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 |
4d756cbf6b405451463d1b3c51d20e4b11805c50 | 5,045 | py | Python | tests/sources/doctest/load_test.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 30 | 2018-07-10T17:32:49.000Z | 2022-01-03T16:50:56.000Z | tests/sources/doctest/load_test.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 62 | 2018-08-07T18:43:33.000Z | 2022-02-17T20:53:03.000Z | tests/sources/doctest/load_test.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 26 | 2018-11-13T22:12:47.000Z | 2022-03-20T00:42:26.000Z | from client import exceptions as ex
from client.sources import doctest
from client.sources.doctest import models
import mock
import unittest
import os.path
class LoadTest(unittest.TestCase):
VALID_FILE = 'valid.py'
VALID_MODULE = os.path.splitext(VALID_FILE)[0]
INVALID_FILE = 'invalid.ext'
FUNCTION = ... | 34.087838 | 90 | 0.643409 | 545 | 5,045 | 5.757798 | 0.185321 | 0.060548 | 0.082855 | 0.034417 | 0.416826 | 0.35341 | 0.318356 | 0.303697 | 0.272467 | 0.272467 | 0 | 0.006321 | 0.247374 | 5,045 | 147 | 91 | 34.319728 | 0.820121 | 0 | 0 | 0.288136 | 0 | 0 | 0.053518 | 0.008523 | 0 | 0 | 0 | 0 | 0.20339 | 1 | 0.118644 | false | 0 | 0.067797 | 0.008475 | 0.245763 | 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 |
4d781dcbcf008c3f1865cdc43e7018be27ebf9f4 | 382 | py | Python | process.py | seiferteric/readon | f4926b8c382bb3dfd6076c50ac0250aaabfab248 | [
"MIT"
] | null | null | null | process.py | seiferteric/readon | f4926b8c382bb3dfd6076c50ac0250aaabfab248 | [
"MIT"
] | null | null | null | process.py | seiferteric/readon | f4926b8c382bb3dfd6076c50ac0250aaabfab248 | [
"MIT"
] | null | null | null |
from rdflib import Graph
import json
import glob
books = {}
rdf_files = glob.glob("gutindex/cache/epub/*/*.rdf")
i = 1
for rdf_file in rdf_files:
g = Graph()
g.parse(rdf_file)
for s,p,o in g:
if 'title' in p:
books[str(o)] = str(s)
print(i, str(o))
i+=1
with open("g... | 17.363636 | 52 | 0.565445 | 64 | 382 | 3.296875 | 0.515625 | 0.075829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.28534 | 382 | 21 | 53 | 18.190476 | 0.765568 | 0 | 0 | 0 | 0 | 0 | 0.139108 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
4d793706457e29ac7c89f01a4a25bd52a787ecca | 3,959 | py | Python | Stream/TransportStream.py | SeuSQ/SimpleShark | a7da2aa26b3e6f67f160008c0a19078ccfd3ab98 | [
"MIT"
] | 1 | 2019-10-18T15:44:58.000Z | 2019-10-18T15:44:58.000Z | Stream/TransportStream.py | SeuSQ/SimpleShark | a7da2aa26b3e6f67f160008c0a19078ccfd3ab98 | [
"MIT"
] | null | null | null | Stream/TransportStream.py | SeuSQ/SimpleShark | a7da2aa26b3e6f67f160008c0a19078ccfd3ab98 | [
"MIT"
] | null | null | null | from Stream.Stream import Stream
class TransportStream(Stream):
"""
传输层流对象
代表一个传输层流,包含这个流中的所有数据包以及流的基本信息
protocol: 传输层的具体协议,UDP或TCP
side_a: A端IP地址(流的第一条报文的src)
side_b: B端IP地址(流的第一条报文的dst)
port_a: A端端口号
port_b: B端端口号
packets:流的报文列表
stream_id: wireshark内的stream index
direct: ... | 36.657407 | 96 | 0.417782 | 377 | 3,959 | 4.167109 | 0.230769 | 0.026735 | 0.056015 | 0.061108 | 0.437301 | 0.417568 | 0.380649 | 0.380649 | 0.361553 | 0.361553 | 0 | 0.001469 | 0.484213 | 3,959 | 107 | 97 | 37 | 0.767875 | 0.151301 | 0 | 0.5 | 0 | 0 | 0.03036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.015152 | 0 | 0.212121 | 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 |
4d79c1863feabc09d18bc9b268afe13bc22098ed | 9,775 | py | Python | cea_calibration/validation.py | cooling-singapore/CalibCEA | 63013d46ec92faf8c28c3e937944ae803a3a9088 | [
"MIT"
] | 1 | 2020-10-08T08:24:47.000Z | 2020-10-08T08:24:47.000Z | cea_calibration/validation.py | cooling-singapore/CalibCEA | 63013d46ec92faf8c28c3e937944ae803a3a9088 | [
"MIT"
] | 2 | 2020-11-04T15:59:54.000Z | 2021-11-16T02:22:30.000Z | cea_calibration/validation.py | cooling-singapore/CalibCEA | 63013d46ec92faf8c28c3e937944ae803a3a9088 | [
"MIT"
] | 1 | 2020-11-04T15:48:13.000Z | 2020-11-04T15:48:13.000Z | """
This tool compares measured data (observed) with model outputs (predicted), used in procedures of calibration and validation
"""
from __future__ import division
from __future__ import print_function
import os
from math import sqrt
import pandas as pd
from sklearn.metrics import mean_squared_error as calc_mean_squar... | 47.916667 | 190 | 0.69289 | 1,166 | 9,775 | 5.487993 | 0.237564 | 0.029223 | 0.037506 | 0.031255 | 0.335209 | 0.265198 | 0.241288 | 0.182372 | 0.158306 | 0.115643 | 0 | 0.006555 | 0.219642 | 9,775 | 203 | 191 | 48.152709 | 0.832328 | 0.321228 | 0 | 0.092593 | 0 | 0 | 0.104535 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 1 | 0.046296 | false | 0 | 0.083333 | 0 | 0.166667 | 0.064815 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4d7ab81b22aae5458f8deb86c17e6d6e000d4ad5 | 1,337 | py | Python | apps/jobs/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 349 | 2020-08-04T10:21:01.000Z | 2022-03-23T08:31:29.000Z | apps/jobs/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 2 | 2021-01-07T06:17:05.000Z | 2021-04-01T06:01:30.000Z | apps/jobs/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 70 | 2020-08-24T06:46:14.000Z | 2022-03-25T13:23:27.000Z | try:
from public_config import *
except ImportError:
pass
HOST = '0.0.0.0'
PORT = 9038
SERVICE_NAME = 'jobs'
SERVER_ENV = 'prod'
SQLALCHEMY_POOL_SIZE = 10
SQLALCHEMY_POOL_RECYCLE = 3600
JOBS = [
{ # 任务 信用积分每日检查, 每周一到每周五 早上 10:30 分运行
# 检查每个设备的借用日期是否超时 :发送提醒邮件,扣除信用分 1分
'id': 'credit-check... | 27.285714 | 89 | 0.535527 | 158 | 1,337 | 4.392405 | 0.525316 | 0.008646 | 0.025937 | 0.043228 | 0.345821 | 0.257925 | 0.257925 | 0.201729 | 0.089337 | 0.089337 | 0 | 0.043764 | 0.31638 | 1,337 | 48 | 90 | 27.854167 | 0.715536 | 0.234854 | 0 | 0.194444 | 0 | 0 | 0.364185 | 0.192153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027778 | 0.055556 | 0 | 0.055556 | 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 |
4d7ad64476a0364d8dddccf7527a5fab1bf906d6 | 918 | py | Python | exercieses/openInventory/mouseTrial.py | SimSam115/orsr_bbb | 6b81f0637fedc00258114d4660ceadb9dd286909 | [
"MIT"
] | null | null | null | exercieses/openInventory/mouseTrial.py | SimSam115/orsr_bbb | 6b81f0637fedc00258114d4660ceadb9dd286909 | [
"MIT"
] | null | null | null | exercieses/openInventory/mouseTrial.py | SimSam115/orsr_bbb | 6b81f0637fedc00258114d4660ceadb9dd286909 | [
"MIT"
] | null | null | null | import pyautogui, pygetwindow, time
screen = pygetwindow.getWindowsWithTitle('Old School RuneScape')[0]
centerRatio = (2.8,2.8)
def move(direction,spaces):
vel = [0,0]
if direction == "up": vel[1] = 0.32;
if direction == "down": vel[1] = -0.32;
if direction == "left": vel[0] = 0.3;
if direct... | 28.6875 | 100 | 0.603486 | 119 | 918 | 4.655462 | 0.403361 | 0.028881 | 0.027076 | 0.025271 | 0.064982 | 0.064982 | 0 | 0 | 0 | 0 | 0 | 0.046089 | 0.220044 | 918 | 31 | 101 | 29.612903 | 0.727654 | 0.101307 | 0 | 0 | 0 | 0 | 0.062119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 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 |