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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2765c7c3e9e989737c9e28cfcc8a7675bc22b1e5 | 907 | py | Python | main.py | denissearenas/face_recognition_image | 63f43ae188cc12ba443d2aeff84959eba95c9049 | [
"MIT"
] | null | null | null | main.py | denissearenas/face_recognition_image | 63f43ae188cc12ba443d2aeff84959eba95c9049 | [
"MIT"
] | null | null | null | main.py | denissearenas/face_recognition_image | 63f43ae188cc12ba443d2aeff84959eba95c9049 | [
"MIT"
] | null | null | null | import logging
from logging.config import fileConfig
import os, os.path
import imageRecognition
#Test Folder
TestFolder = 'WorkingFolder/TestImages/'
# Create the Working folders
working_folders = ['logs','.metadata','WorkingFolder','./Workingfolder/OutputImages']
[os.makedirs(folder) for folder in working_folders... | 24.513514 | 114 | 0.680265 | 100 | 907 | 6.03 | 0.48 | 0.029851 | 0.063018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.203969 | 907 | 36 | 115 | 25.194444 | 0.82687 | 0.059537 | 0 | 0 | 0 | 0 | 0.133255 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2768921c04ac38d6998b1d53e7d2b264cb24e683 | 755 | py | Python | Medio 3/ex056.py | Gustavsantos/python1 | 5520f2d2ee591157942008fdcd6bd42eb521f1a6 | [
"MIT"
] | null | null | null | Medio 3/ex056.py | Gustavsantos/python1 | 5520f2d2ee591157942008fdcd6bd42eb521f1a6 | [
"MIT"
] | null | null | null | Medio 3/ex056.py | Gustavsantos/python1 | 5520f2d2ee591157942008fdcd6bd42eb521f1a6 | [
"MIT"
] | null | null | null | total = 0
media = 0
hmais = 0
no = ''
contm = 0
from datetime import date
atual = date.today().year
for p in range(1,5):
print('{}° Pessoa'.format(p))
nome = str(input('Nome: ')).strip().capitalize()
ns = int(input('O ano em que nasceu: '))
sexo = str(input('Sexo: ')).strip().upper()
idade = atual ... | 26.964286 | 67 | 0.564238 | 116 | 755 | 3.681034 | 0.508621 | 0.04918 | 0.037471 | 0.06089 | 0.145199 | 0.145199 | 0.145199 | 0.145199 | 0.145199 | 0 | 0 | 0.023551 | 0.268874 | 755 | 27 | 68 | 27.962963 | 0.748188 | 0 | 0 | 0.153846 | 0 | 0 | 0.209272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2768edd67418ad70fbc7628b2d0db9a2e7e067b6 | 9,575 | py | Python | modules/cdp.py | experiencedft/defisaver-sim | 1d1f05078efb634286df450b125677a1685a066e | [
"MIT"
] | 13 | 2021-02-01T11:08:21.000Z | 2022-01-13T05:29:11.000Z | modules/cdp.py | experiencedft/defisaver-sim | 1d1f05078efb634286df450b125677a1685a066e | [
"MIT"
] | null | null | null | modules/cdp.py | experiencedft/defisaver-sim | 1d1f05078efb634286df450b125677a1685a066e | [
"MIT"
] | 5 | 2021-01-27T22:01:55.000Z | 2022-02-20T22:14:16.000Z | '''
The CDP module contains all the tools required to simulate a collateralized debt position, such as increasing or decreasing
its leverage (boost and repay), closing the vault to calculate its lifetime profit, adding collateral or drawing more debt.
The position is represented as an object whose methods provide a... | 43.522727 | 129 | 0.593211 | 1,195 | 9,575 | 4.680335 | 0.184937 | 0.024316 | 0.019667 | 0.027534 | 0.328983 | 0.302879 | 0.272126 | 0.264616 | 0.211336 | 0.188807 | 0 | 0.018687 | 0.334935 | 9,575 | 220 | 130 | 43.522727 | 0.859611 | 0.497963 | 0 | 0.428571 | 0 | 0 | 0.016893 | 0 | 0 | 0 | 0 | 0.004545 | 0.071429 | 1 | 0.107143 | false | 0 | 0.011905 | 0 | 0.22619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
276b88f7bc15b02ea6b733a96f259241381fe73b | 5,683 | py | Python | clustertools/test/test_experiment.py | jm-begon/clustertools | 264198d0ffbd60b883b7b6a2af79341425c7729b | [
"BSD-3-Clause"
] | 7 | 2017-05-31T15:28:28.000Z | 2021-03-25T12:36:48.000Z | clustertools/test/test_experiment.py | jm-begon/clustertools | 264198d0ffbd60b883b7b6a2af79341425c7729b | [
"BSD-3-Clause"
] | 42 | 2017-06-09T07:35:50.000Z | 2019-08-29T15:23:29.000Z | clustertools/test/test_experiment.py | jm-begon/clustertools | 264198d0ffbd60b883b7b6a2af79341425c7729b | [
"BSD-3-Clause"
] | 3 | 2017-05-29T13:39:18.000Z | 2019-06-24T09:43:01.000Z | # -*- coding: utf-8 -*-
from functools import partial
from nose.tools import assert_equal, assert_in, assert_less, assert_raises, \
with_setup, assert_true
from nose.tools import assert_false
from clustertools import ParameterSet, Result, Experiment
from clustertools.state import RunningState, CompletedState, Abo... | 36.664516 | 84 | 0.688193 | 689 | 5,683 | 5.429608 | 0.216255 | 0.061748 | 0.052392 | 0.04865 | 0.418872 | 0.336006 | 0.285485 | 0.181502 | 0.160118 | 0.160118 | 0 | 0.024005 | 0.16435 | 5,683 | 154 | 85 | 36.902597 | 0.76374 | 0.118599 | 0 | 0.194444 | 0 | 0 | 0.019856 | 0 | 0 | 0 | 0 | 0 | 0.37037 | 1 | 0.074074 | false | 0 | 0.064815 | 0 | 0.138889 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
276c363a6f57e3c85d7f037af185d706c5abdf10 | 1,657 | py | Python | ed.py | zzx288/words | 477516211cc43701ec4592a686f0bc06cbb9c141 | [
"MIT"
] | null | null | null | ed.py | zzx288/words | 477516211cc43701ec4592a686f0bc06cbb9c141 | [
"MIT"
] | null | null | null | ed.py | zzx288/words | 477516211cc43701ec4592a686f0bc06cbb9c141 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import codecs
def find_words(words):
split_words={}
count_all = 0
unused_words = u" \t\r\n,。:;、“‘”【】『』|=+-——()*&……%¥#@!~·《》?/?<>,.;:'\"[]{}_)(^$!`"
unused_english = u"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
for i in u... | 29.589286 | 92 | 0.556427 | 241 | 1,657 | 3.73029 | 0.290456 | 0.066741 | 0.038932 | 0.044494 | 0.322581 | 0.278087 | 0.231368 | 0.077864 | 0.077864 | 0 | 0 | 0.029506 | 0.243211 | 1,657 | 55 | 93 | 30.127273 | 0.677831 | 0.025951 | 0 | 0.090909 | 0 | 0.068182 | 0.12 | 0.074667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
276e00dcc9820a61c4d4ebff8a3b8b4d2a199a5f | 467 | py | Python | HackerRank/MinimumSwaps2.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | HackerRank/MinimumSwaps2.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | HackerRank/MinimumSwaps2.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/minimum-swaps-2
# Complete the minimumSwaps function below.
def minimumSwaps(arr):
steps = 0
# for i, a in enumerate(arr):
for i in range(len(arr)):
while arr[i] != i+1:
#arr = [a if x == i+1 else x for x in arr]
#print(arr)
... | 25.944444 | 55 | 0.51606 | 67 | 467 | 3.597015 | 0.492537 | 0.049793 | 0.074689 | 0.099585 | 0.141079 | 0.141079 | 0 | 0 | 0 | 0 | 0 | 0.023411 | 0.359743 | 467 | 17 | 56 | 27.470588 | 0.782609 | 0.372591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 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 |
277311deb8c817997aeecabf48fe1ce321691cbf | 3,081 | py | Python | source/conf.py | Kinovea/kinovea-docs | a2c4c9561bd4f8cc663efcaaed017c9c018b6b20 | [
"CC0-1.0"
] | 4 | 2020-11-17T18:09:42.000Z | 2021-12-29T07:34:29.000Z | source/conf.py | Kinovea/kinovea-docs | a2c4c9561bd4f8cc663efcaaed017c9c018b6b20 | [
"CC0-1.0"
] | 4 | 2021-07-12T09:41:06.000Z | 2021-11-01T19:22:05.000Z | source/conf.py | Kinovea/kinovea-docs | a2c4c9561bd4f8cc663efcaaed017c9c018b6b20 | [
"CC0-1.0"
] | 1 | 2021-07-12T05:17:47.000Z | 2021-07-12T05:17:47.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 30.205882 | 91 | 0.683544 | 402 | 3,081 | 5.09204 | 0.457711 | 0.00977 | 0.027357 | 0.018564 | 0.020518 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006823 | 0.143784 | 3,081 | 101 | 92 | 30.504951 | 0.769143 | 0.605972 | 0 | 0 | 0 | 0 | 0.344123 | 0.042589 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
277599814e255a220a50444d8861eabc112abdd1 | 4,931 | py | Python | financial_fundamentals/xbrl.py | Mahesh-Salunke/financial_fundamentals | 421e7550e2c4b2cc9cc0ee8cb15ce2ad0d89234f | [
"Apache-2.0"
] | 122 | 2015-01-28T17:57:08.000Z | 2022-02-12T12:24:55.000Z | financial_fundamentals/xbrl.py | Mahesh-Salunke/financial_fundamentals | 421e7550e2c4b2cc9cc0ee8cb15ce2ad0d89234f | [
"Apache-2.0"
] | 1 | 2016-11-07T17:02:02.000Z | 2016-11-09T20:51:50.000Z | financial_fundamentals/xbrl.py | Mahesh-Salunke/financial_fundamentals | 421e7550e2c4b2cc9cc0ee8cb15ce2ad0d89234f | [
"Apache-2.0"
] | 49 | 2015-01-01T03:12:27.000Z | 2021-07-06T10:19:31.000Z | '''
Created on Oct 8, 2013
@author: akittredge
'''
import dateutil.parser
import xmltodict
from financial_fundamentals.exceptions import ValueNotInFilingDocument
class XBRLMetricParams(object):
'''Bundle the parameters sufficient to extract a metric from an xbrl document.
'''
def __init__(self, poss... | 34.482517 | 88 | 0.602515 | 549 | 4,931 | 5.087432 | 0.216758 | 0.027569 | 0.031507 | 0.042965 | 0.155747 | 0.110634 | 0.065879 | 0.042965 | 0 | 0 | 0 | 0.001761 | 0.309065 | 4,931 | 143 | 89 | 34.482517 | 0.818022 | 0.061651 | 0 | 0.222222 | 0 | 0 | 0.036779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.009259 | 0.037037 | 0.046296 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
277624309012d3684e6506d164e645ba545c1547 | 6,235 | py | Python | geospacelab/datahub/sources/wdc/dst/downloader.py | JouleCai/GeoSpaceLab | 6cc498d3c32501e946931de596a840c73e83edb3 | [
"BSD-3-Clause"
] | 19 | 2021-08-07T08:49:22.000Z | 2022-03-02T18:26:30.000Z | geospacelab/datahub/sources/wdc/dst/downloader.py | JouleCai/GeoSpaceLab | 6cc498d3c32501e946931de596a840c73e83edb3 | [
"BSD-3-Clause"
] | 4 | 2021-11-09T05:53:42.000Z | 2022-03-25T11:49:37.000Z | geospacelab/datahub/sources/wdc/dst/downloader.py | JouleCai/GeoSpaceLab | 6cc498d3c32501e946931de596a840c73e83edb3 | [
"BSD-3-Clause"
] | 3 | 2021-11-07T11:41:20.000Z | 2022-02-14T13:43:11.000Z | # Licensed under the BSD 3-Clause License
# Copyright (C) 2021 GeospaceLab (geospacelab)
# Author: Lei Cai, Space Physics and Astronomy, University of Oulu
__author__ = "Lei Cai"
__copyright__ = "Copyright 2021, GeospaceLab"
__license__ = "BSD-3-Clause License"
__email__ = "lei.cai@oulu.fi"
__docformat__ = "reStructur... | 38.018293 | 277 | 0.577225 | 845 | 6,235 | 4.062722 | 0.276923 | 0.018643 | 0.016312 | 0.026216 | 0.284882 | 0.170987 | 0.168948 | 0.154967 | 0.152054 | 0.124672 | 0 | 0.038935 | 0.27089 | 6,235 | 164 | 277 | 38.018293 | 0.716234 | 0.152847 | 0 | 0.037037 | 0 | 0.009259 | 0.155087 | 0.007213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.111111 | 0 | 0.157407 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
277b82514a7515e164e8b41c060b3213bef8d2d0 | 473 | py | Python | multi_domain/utils.py | newbieyd/multi-domain_NER | 78443f79cebf7c2fe1058bc6ba2dc793d0907574 | [
"Apache-2.0"
] | 3 | 2020-10-26T02:23:57.000Z | 2021-01-28T09:29:35.000Z | multi_domain/utils.py | newbieyd/multi-domain_NER | 78443f79cebf7c2fe1058bc6ba2dc793d0907574 | [
"Apache-2.0"
] | null | null | null | multi_domain/utils.py | newbieyd/multi-domain_NER | 78443f79cebf7c2fe1058bc6ba2dc793d0907574 | [
"Apache-2.0"
] | 1 | 2021-01-28T09:29:39.000Z | 2021-01-28T09:29:39.000Z | import random
import torch
import numpy as np
# 设置随机种子,一旦固定种子,后面依次生成的随机数其实都是固定的
def set_seed(seed):
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
# 计算评价指标:准确率,召回率,F1值
def calculate(data):
p = -1
r = -1
f1 = -1
if data[0] > 0:
p = data[2] / data[0]... | 19.708333 | 43 | 0.5074 | 77 | 473 | 3.090909 | 0.363636 | 0.134454 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061688 | 0.348837 | 473 | 23 | 44 | 20.565217 | 0.711039 | 0.105708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 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 |
277dc18fc44eab6c4ec0aeec52c4030e30b5d869 | 967 | py | Python | pysimplegui/DemoPrograms/Demo_Design_Pattern_Multiple_Windows2.py | konsan1101/py-etc | bcca13119b0d2453866988404fd1c4976f55d4d5 | [
"MIT"
] | null | null | null | pysimplegui/DemoPrograms/Demo_Design_Pattern_Multiple_Windows2.py | konsan1101/py-etc | bcca13119b0d2453866988404fd1c4976f55d4d5 | [
"MIT"
] | 2 | 2020-06-06T00:30:56.000Z | 2021-06-10T22:30:37.000Z | pysimplegui/DemoPrograms/Demo_Design_Pattern_Multiple_Windows2.py | konsan1101/py-etc | bcca13119b0d2453866988404fd1c4976f55d4d5 | [
"MIT"
] | null | null | null | import PySimpleGUI as sg
"""
PySimpleGUI The Complete Course
Lesson 7
Multiple Independent Windows
"""
# Design pattern 2 - First window remains active
layout = [[ sg.Text('Window 1'),],
[sg.Input()],
[sg.Text('', size=(20,1), key='-OUTPUT-')],
[sg.Button('Launch 2'), sg.Butt... | 24.794872 | 53 | 0.584281 | 119 | 967 | 4.705882 | 0.445378 | 0.116071 | 0.042857 | 0.046429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059659 | 0.271975 | 967 | 38 | 54 | 25.447368 | 0.735795 | 0.04757 | 0 | 0.086957 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27824e9b0a8bb25e5664e1e7337a726628d28d71 | 2,000 | py | Python | src/d007/index.py | Yangfan2016/learn-python | 84a375cda9d51349ae0a0faf1dc6444ac83ed948 | [
"MIT"
] | null | null | null | src/d007/index.py | Yangfan2016/learn-python | 84a375cda9d51349ae0a0faf1dc6444ac83ed948 | [
"MIT"
] | null | null | null | src/d007/index.py | Yangfan2016/learn-python | 84a375cda9d51349ae0a0faf1dc6444ac83ed948 | [
"MIT"
] | null | null | null | # 练习1:在屏幕上显示跑马灯文字
from random import randint
import os
import time
def marquee():
content = "我很开心。。。"
while True:
os.system("clear")
print(content)
time.sleep(.2)
content = content[1:]+content[0]
# marquee()
# 练习2:设计一个函数产生指定长度的验证码,验证码由大小写字母和数字构成
def genrentae_code(l=4):... | 15.151515 | 74 | 0.515 | 290 | 2,000 | 3.496552 | 0.341379 | 0.034517 | 0.023669 | 0.032544 | 0.023669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093939 | 0.34 | 2,000 | 131 | 75 | 15.267176 | 0.674242 | 0.184 | 0 | 0.029412 | 0 | 0 | 0.047708 | 0.038414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102941 | false | 0 | 0.044118 | 0.014706 | 0.264706 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2786bc277b70a50e0d89afd7f11a15c26b25b2fa | 1,825 | py | Python | tests/test_platform.py | rennerocha/bottery | a082cfa1c21f9aa32ea1526ea3004b581f9e0cd4 | [
"MIT"
] | null | null | null | tests/test_platform.py | rennerocha/bottery | a082cfa1c21f9aa32ea1526ea3004b581f9e0cd4 | [
"MIT"
] | null | null | null | tests/test_platform.py | rennerocha/bottery | a082cfa1c21f9aa32ea1526ea3004b581f9e0cd4 | [
"MIT"
] | null | null | null | import inspect
import pytest
from bottery.platform import BaseEngine
def test_baseengine_platform_name_not_implemented():
"""Check if attributes from the public API raise NotImplementedError"""
engine = BaseEngine()
with pytest.raises(NotImplementedError):
getattr(engine, 'platform')
@pytest.m... | 27.651515 | 88 | 0.706301 | 214 | 1,825 | 5.827103 | 0.313084 | 0.028067 | 0.054531 | 0.052927 | 0.439455 | 0.439455 | 0.378508 | 0.378508 | 0.311147 | 0.311147 | 0 | 0 | 0.18411 | 1,825 | 65 | 89 | 28.076923 | 0.837475 | 0.038904 | 0 | 0.414634 | 0 | 0 | 0.072819 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0.097561 | false | 0 | 0.073171 | 0.02439 | 0.219512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27871567eec68506ebdf03b82d43a00ac9173647 | 26,071 | py | Python | sarkas/potentials/core.py | lucianogsilvestri/sarkas | f4ab00014d09976561fbd4349b9d0610e47a61e1 | [
"MIT"
] | null | null | null | sarkas/potentials/core.py | lucianogsilvestri/sarkas | f4ab00014d09976561fbd4349b9d0610e47a61e1 | [
"MIT"
] | null | null | null | sarkas/potentials/core.py | lucianogsilvestri/sarkas | f4ab00014d09976561fbd4349b9d0610e47a61e1 | [
"MIT"
] | null | null | null | """
Module handling the potential class.
"""
from copy import deepcopy
from fmm3dpy import hfmm3d, lfmm3d
from numpy import array, ndarray, pi, sqrt, tanh
from warnings import warn
from ..utilities.exceptions import AlgorithmWarning
from ..utilities.fdints import fdm1h, invfd1h
from .force_pm import force_optimized_gr... | 36.260083 | 121 | 0.603199 | 3,204 | 26,071 | 4.720974 | 0.150125 | 0.035965 | 0.018842 | 0.022213 | 0.372736 | 0.290824 | 0.255322 | 0.221671 | 0.193045 | 0.16032 | 0 | 0.018169 | 0.296997 | 26,071 | 718 | 122 | 36.310585 | 0.807126 | 0.21825 | 0 | 0.21466 | 0 | 0.013089 | 0.108622 | 0.020964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049738 | false | 0.010471 | 0.044503 | 0 | 0.191099 | 0.081152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
278e170fcb4a1f505f51883094b18a872922bd6e | 2,459 | py | Python | scripts/create_grids.py | edwardoughton/taddle | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | 9 | 2020-08-18T04:25:00.000Z | 2022-03-18T16:42:33.000Z | scripts/create_grids.py | edwardoughton/arpu_predictor | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | null | null | null | scripts/create_grids.py | edwardoughton/arpu_predictor | f76ca6067e6fca6b699675ab038c31c9444e0a79 | [
"MIT"
] | 4 | 2020-01-27T01:48:30.000Z | 2021-12-01T16:48:17.000Z | """
Create 10km x 10km grid using the country shapefile.
Written by Ed Oughton.
Winter 2020
"""
import argparse
import os
import configparser
import geopandas as gpd
from shapely.geometry import Polygon, mapping
import pandas as pd
import numpy as np
import rasterio
from rasterstats import zonal_stats
BASE_DIR = '.... | 26.44086 | 94 | 0.699471 | 341 | 2,459 | 4.876833 | 0.384164 | 0.043295 | 0.036079 | 0.023452 | 0.093806 | 0.044498 | 0.044498 | 0.044498 | 0 | 0 | 0 | 0.018701 | 0.173648 | 2,459 | 92 | 95 | 26.728261 | 0.799705 | 0.124034 | 0 | 0 | 0 | 0 | 0.100476 | 0.010952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.215686 | 0 | 0.294118 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27907e0aff23ef4fbe2d4a38e27570505c4caa34 | 366 | py | Python | test/test_all.py | beremaran/spdown | 59e5ea6996be51ad015f9da6758e2ce556b9fb94 | [
"MIT"
] | 2 | 2019-08-13T15:13:58.000Z | 2019-10-04T09:09:24.000Z | test/test_all.py | beremaran/spdown | 59e5ea6996be51ad015f9da6758e2ce556b9fb94 | [
"MIT"
] | 4 | 2021-02-08T20:23:42.000Z | 2022-03-11T23:27:07.000Z | test/test_all.py | beremaran/spdown | 59e5ea6996be51ad015f9da6758e2ce556b9fb94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import unittest
test_modules = [
'test.test_config',
'test.test_secrets',
'test.test_spotify',
'test.test_youtube'
]
if __name__ == "__main__":
suite = unittest.TestSuite()
for tm in test_modules:
suite.addTest(unittest.defaultTestLoader.loadTestsFromName(tm))
... | 19.263158 | 71 | 0.691257 | 42 | 366 | 5.690476 | 0.595238 | 0.133891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 366 | 18 | 72 | 20.333333 | 0.796667 | 0.054645 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2790d75b4b157f35c41640a672fd75216eb8137c | 1,281 | py | Python | tests/rec_util.py | pablohawz/tfg-Scan-Paint-clone | 056cd50d9e4274620cf085a41ed9d326e16dd47b | [
"MIT"
] | null | null | null | tests/rec_util.py | pablohawz/tfg-Scan-Paint-clone | 056cd50d9e4274620cf085a41ed9d326e16dd47b | [
"MIT"
] | null | null | null | tests/rec_util.py | pablohawz/tfg-Scan-Paint-clone | 056cd50d9e4274620cf085a41ed9d326e16dd47b | [
"MIT"
] | null | null | null | import os
import tempfile
from time import time
import numpy as np
import sounddevice as sd
from PySide2.QtWidgets import QApplication, QFileDialog
from scipy.io.wavfile import write
# Config
t = 3 # s
fs = 44100
def save(x, fs):
# You have to create a QApp in order to use a
# Widget (QFileDialg)
app =... | 20.66129 | 67 | 0.565964 | 175 | 1,281 | 4.068571 | 0.542857 | 0.050562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023385 | 0.298985 | 1,281 | 61 | 68 | 21 | 0.769488 | 0.078845 | 0 | 0 | 0 | 0 | 0.103242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.184211 | 0 | 0.263158 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2792236e3960ae778ac604767d58c8cfaef78404 | 10,977 | py | Python | test/comptests/TestHybridQuasiGaussian.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-08-18T18:34:41.000Z | 2021-12-24T07:05:19.000Z | test/comptests/TestHybridQuasiGaussian.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | null | null | null | test/comptests/TestHybridQuasiGaussian.py | sschlenkrich/HybridMonteCarlo | 72f54aa4bcd742430462b27b72d70369c01f9ac4 | [
"MIT"
] | 3 | 2021-01-31T11:41:19.000Z | 2022-03-25T19:51:20.000Z | #!/usr/bin/python
import sys
sys.path.append('./')
import unittest
import copy
import numpy as np
from hybmc.mathutils.Helpers import BlackImpliedVol, BlackVega
from hybmc.termstructures.YieldCurve import YieldCurve
from hybmc.models.AssetModel import AssetModel
from hybmc.models.HybridModel import HybridModel
from... | 41.579545 | 125 | 0.484376 | 1,402 | 10,977 | 3.710414 | 0.142653 | 0.032295 | 0.029412 | 0.027682 | 0.642637 | 0.589965 | 0.511726 | 0.463476 | 0.380431 | 0.365436 | 0 | 0.086606 | 0.366767 | 10,977 | 263 | 126 | 41.737643 | 0.661775 | 0.05548 | 0 | 0.490476 | 0 | 0.02381 | 0.059376 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 1 | 0.028571 | false | 0 | 0.061905 | 0 | 0.104762 | 0.038095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
279582d504d9da0d858f00c0d357db9ba41aecb7 | 3,387 | py | Python | champ_bringup/scripts/joint_calibrator_relay.py | lubitz99/champ | 2e4c8606db9a365866726ea84e8107c14ee9446d | [
"BSD-3-Clause"
] | 923 | 2020-04-06T15:09:24.000Z | 2022-03-30T15:34:08.000Z | champ_bringup/scripts/joint_calibrator_relay.py | lubitz99/champ | 2e4c8606db9a365866726ea84e8107c14ee9446d | [
"BSD-3-Clause"
] | 73 | 2020-05-12T09:23:12.000Z | 2022-03-28T06:22:16.000Z | champ_bringup/scripts/joint_calibrator_relay.py | lubitz99/champ | 2e4c8606db9a365866726ea84e8107c14ee9446d | [
"BSD-3-Clause"
] | 229 | 2020-04-26T06:32:28.000Z | 2022-03-29T08:07:28.000Z | #!/usr/bin/env python
'''
Copyright (c) 2019-2020, Juan Miguel Jimeno
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, thi... | 45.16 | 110 | 0.749631 | 457 | 3,387 | 5.376368 | 0.426696 | 0.03663 | 0.026455 | 0.030932 | 0.11803 | 0.098494 | 0.055352 | 0.055352 | 0.055352 | 0.055352 | 0 | 0.009058 | 0.18512 | 3,387 | 75 | 111 | 45.16 | 0.881159 | 0.455861 | 0 | 0 | 0 | 0 | 0.100763 | 0.081699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.162162 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
279641443118aebc70b220bf9dae1dc53a9d2fc4 | 3,909 | py | Python | touchdown/aws/vpc/vpc.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 14 | 2015-01-05T18:18:04.000Z | 2022-02-07T19:35:12.000Z | touchdown/aws/vpc/vpc.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 106 | 2015-01-06T00:17:13.000Z | 2019-09-07T00:35:32.000Z | touchdown/aws/vpc/vpc.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 5 | 2015-01-30T10:18:24.000Z | 2022-02-07T19:35:13.000Z | # Copyright 2014 Isotoma 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
#
# Unless required by applicable law or agreed to in writing... | 32.575 | 84 | 0.660783 | 414 | 3,909 | 6.113527 | 0.369565 | 0.023706 | 0.02015 | 0.012643 | 0.27499 | 0.250494 | 0.219676 | 0.19439 | 0.149348 | 0.149348 | 0 | 0.005703 | 0.237401 | 3,909 | 119 | 85 | 32.84874 | 0.843341 | 0.147352 | 0 | 0.283951 | 0 | 0 | 0.155817 | 0.026522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.061728 | 0.012346 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2797b6dfc818a3de2bc52aaf5906014401475627 | 793 | py | Python | estructuras de control secuenciales/ejercicio10.py | svcuellar/algoritmos_programacion | 0813ee6a2ccb605557a7920bf82440b7388b49e8 | [
"MIT"
] | null | null | null | estructuras de control secuenciales/ejercicio10.py | svcuellar/algoritmos_programacion | 0813ee6a2ccb605557a7920bf82440b7388b49e8 | [
"MIT"
] | null | null | null | estructuras de control secuenciales/ejercicio10.py | svcuellar/algoritmos_programacion | 0813ee6a2ccb605557a7920bf82440b7388b49e8 | [
"MIT"
] | null | null | null | """
entradas
cantidadchelinesaustriacos-->c-->float
cantidaddragmasgriegos-->dg-->float
cantidadpesetas-->p-->float
salidas
chelines_a_pesetas-->c_p-->float
dragmas_a_francosfrancese-->dg_ff-->float
pesetas_a_dolares-->p_d-->float
pesetas_a_lirasitalianas-->p_li-->float
"""
#entradas
c=float(input("Ingrese la cantida... | 28.321429 | 78 | 0.726356 | 126 | 793 | 4.412698 | 0.365079 | 0.032374 | 0.091727 | 0.102518 | 0.156475 | 0.156475 | 0 | 0 | 0 | 0 | 0 | 0.040559 | 0.098361 | 793 | 28 | 78 | 28.321429 | 0.737063 | 0.369483 | 0 | 0 | 0 | 0 | 0.478615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27981338330ee315b120f4f29b8d0163c165b34b | 4,453 | py | Python | st_model.py | saras108/Sentiment_Analysis | 7e4e84637161cd005ebbcd303f68417726b5f098 | [
"MIT"
] | null | null | null | st_model.py | saras108/Sentiment_Analysis | 7e4e84637161cd005ebbcd303f68417726b5f098 | [
"MIT"
] | null | null | null | st_model.py | saras108/Sentiment_Analysis | 7e4e84637161cd005ebbcd303f68417726b5f098 | [
"MIT"
] | null | null | null | #importing necessary libraries
import numpy as np
import pandas as pd
import string
import streamlit as st
header = st.container()
dataset = st.container()
fearure = st.container()
model_training = st.container()
def get_data(file_name):
df = pd.read_csv(file_name , header = None)
return df
with header:
... | 29.885906 | 302 | 0.688974 | 624 | 4,453 | 4.804487 | 0.342949 | 0.03002 | 0.018679 | 0.021348 | 0.183456 | 0.113409 | 0.078052 | 0.05537 | 0 | 0 | 0 | 0.007042 | 0.202785 | 4,453 | 148 | 303 | 30.087838 | 0.837465 | 0.034359 | 0 | 0.042553 | 0 | 0.010638 | 0.277467 | 0.021648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053191 | false | 0 | 0.138298 | 0 | 0.244681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
279b776bfdce89147881347913d489e839a74293 | 3,989 | py | Python | PyPrometheus.py | RusDavies/PyPrometheus | 8c0bb9489f42423942982829024d7359a374d7b1 | [
"MIT"
] | null | null | null | PyPrometheus.py | RusDavies/PyPrometheus | 8c0bb9489f42423942982829024d7359a374d7b1 | [
"MIT"
] | null | null | null | PyPrometheus.py | RusDavies/PyPrometheus | 8c0bb9489f42423942982829024d7359a374d7b1 | [
"MIT"
] | null | null | null | from PyPrometheusQueryClient import PrometheusQueryClient
import json
from pathlib import Path
from datetime import datetime
class Prometheus:
def __init__(self, url, metrics_config_file=None, cache_path=None, cache_ttl=3600, ssl_verify=True, starttime=None, endtime=None):
self._metrics_config_file = met... | 37.990476 | 134 | 0.613688 | 476 | 3,989 | 4.991597 | 0.283613 | 0.093013 | 0.078704 | 0.05303 | 0.155303 | 0.111111 | 0.074074 | 0.042088 | 0.042088 | 0.042088 | 0 | 0.002457 | 0.285786 | 3,989 | 105 | 135 | 37.990476 | 0.83152 | 0.174731 | 0 | 0.067797 | 0 | 0 | 0.086081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.067797 | 0 | 0.186441 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
279d9301e8e9b967d31f0c36c000b8b79e8eab38 | 5,557 | py | Python | tests/validate_schema_guide.py | dieghernan/citation-file-format | cfad34b82aa882d8169a0bcb6a21ad19cb4ff401 | [
"CC-BY-4.0"
] | 257 | 2017-12-18T14:09:32.000Z | 2022-03-28T17:58:19.000Z | tests/validate_schema_guide.py | Seanpm2001-DIGITAL-Command-Language/citation-file-format | 52647a247e9b1a5b04154934f39615b5ee8c4d65 | [
"CC-BY-4.0"
] | 307 | 2017-10-16T12:17:40.000Z | 2022-03-18T11:18:49.000Z | tests/validate_schema_guide.py | Seanpm2001-DIGITAL-Command-Language/citation-file-format | 52647a247e9b1a5b04154934f39615b5ee8c4d65 | [
"CC-BY-4.0"
] | 344 | 2018-09-19T03:00:26.000Z | 2022-03-31T01:39:11.000Z | import pytest
import os
import json
import jsonschema
from ruamel.yaml import YAML
def test():
def extract_snippets():
start = 0
end = len(markdown)
while start < end:
snippet_start = markdown.find("```yaml\n", start, end)
if snippet_start == -1:
br... | 57.28866 | 171 | 0.479935 | 512 | 5,557 | 5.150391 | 0.242188 | 0.057641 | 0.095563 | 0.079257 | 0.459234 | 0.427759 | 0.427759 | 0.361775 | 0.361775 | 0.326887 | 0 | 0.010131 | 0.396077 | 5,557 | 96 | 172 | 57.885417 | 0.775626 | 0 | 0 | 0.208791 | 0 | 0.010989 | 0.196329 | 0.013137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0.032967 | 0.054945 | 0 | 0.087912 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27a5750fd3834a5dd24fb63cbde3fd11a0fdfdd0 | 4,613 | py | Python | flaskprediction/routes.py | killswitchh/flask-prediction-app | a8bdff96fa2dc05544991a705970d1550ac9a034 | [
"MIT"
] | null | null | null | flaskprediction/routes.py | killswitchh/flask-prediction-app | a8bdff96fa2dc05544991a705970d1550ac9a034 | [
"MIT"
] | 1 | 2020-08-29T18:39:05.000Z | 2020-08-30T09:43:47.000Z | flaskprediction/routes.py | killswitchh/flask-prediction-app | a8bdff96fa2dc05544991a705970d1550ac9a034 | [
"MIT"
] | null | null | null | import secrets
from flask import Flask , render_template , url_for , send_from_directory
from flaskprediction import app
from flaskprediction.utils.predict import Predictor
from flaskprediction.forms import CarDetailsForm , TitanicDetailsForm , BostonDetailsForm , HeightDetailsForm, CatImageForm
from PIL import Imag... | 39.767241 | 182 | 0.681986 | 556 | 4,613 | 5.517986 | 0.22482 | 0.057366 | 0.084746 | 0.071708 | 0.454368 | 0.434811 | 0.363755 | 0.321056 | 0.28292 | 0.267927 | 0 | 0.00133 | 0.185346 | 4,613 | 116 | 183 | 39.767241 | 0.815061 | 0 | 0 | 0.28866 | 0 | 0 | 0.133073 | 0.005202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103093 | false | 0.010309 | 0.072165 | 0.041237 | 0.329897 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27a6c1cdc477a10a4c9b691137650bb8e9980229 | 11,859 | py | Python | examples/cadre_dymos.py | johnjasa/CADRE | a4ffd61582b8474953fc309aa540838a14f29dcf | [
"Apache-2.0"
] | null | null | null | examples/cadre_dymos.py | johnjasa/CADRE | a4ffd61582b8474953fc309aa540838a14f29dcf | [
"Apache-2.0"
] | null | null | null | examples/cadre_dymos.py | johnjasa/CADRE | a4ffd61582b8474953fc309aa540838a14f29dcf | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import unittest
import numpy as np
from openmdao.api import Problem, Group, pyOptSparseDriver, DirectSolver, SqliteRecorder
from dymos import Phase
from dymos.utils.indexing import get_src_indices_by_row
from dymos.phases.components import ControlInterpComp
from CADRE.odes_dym... | 42.812274 | 143 | 0.70436 | 1,872 | 11,859 | 4.162927 | 0.151175 | 0.09547 | 0.01604 | 0.036571 | 0.570384 | 0.473374 | 0.4232 | 0.371744 | 0.346336 | 0.328372 | 0 | 0.039112 | 0.141918 | 11,859 | 276 | 144 | 42.967391 | 0.72671 | 0.267645 | 0 | 0.178082 | 0 | 0 | 0.208895 | 0.128774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075342 | 0 | 0.075342 | 0.006849 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27a730a5c6d3019f232b6aef55d357908663ff70 | 959 | py | Python | deso/Media.py | AdityaChaudhary0005/DeSo.py | 5cb3c757fb21bad472da921c0148675c8957eb17 | [
"MIT"
] | 11 | 2021-11-12T18:20:22.000Z | 2022-03-16T02:12:06.000Z | deso/Media.py | AdityaChaudhary0005/DeSo.py | 5cb3c757fb21bad472da921c0148675c8957eb17 | [
"MIT"
] | 6 | 2021-11-25T04:30:44.000Z | 2021-12-15T12:33:24.000Z | deso/Media.py | AdityaChaudhary0005/DeSo.py | 5cb3c757fb21bad472da921c0148675c8957eb17 | [
"MIT"
] | 8 | 2021-11-19T19:14:50.000Z | 2022-01-31T21:27:32.000Z | from deso.utils import getUserJWT
import requests
class Media:
def __init__(self, publicKey=None, seedHex=None, nodeURL="https://node.deso.org/api/v0/"):
self.SEED_HEX = seedHex
self.PUBLIC_KEY = publicKey
self.NODE_URL = nodeURL
def uploadImage(self, fileList):
#uploads imag... | 31.966667 | 95 | 0.554745 | 98 | 959 | 5.295918 | 0.571429 | 0.026975 | 0.042389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004769 | 0.344108 | 959 | 29 | 96 | 33.068966 | 0.82035 | 0.05318 | 0 | 0 | 0 | 0 | 0.094923 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27a8cc8eee02c003f65618c441f8c80b6ada0052 | 1,790 | py | Python | s3-scan-tar/tests/test_models.py | omBratteng/mottak | b7d2e1d063b31c2ad89c66e5414297612f91ebe9 | [
"Apache-2.0"
] | 4 | 2021-03-05T15:39:24.000Z | 2021-09-15T06:11:45.000Z | s3-scan-tar/tests/test_models.py | omBratteng/mottak | b7d2e1d063b31c2ad89c66e5414297612f91ebe9 | [
"Apache-2.0"
] | 631 | 2020-04-27T10:39:18.000Z | 2022-03-31T14:51:38.000Z | s3-scan-tar/tests/test_models.py | omBratteng/mottak | b7d2e1d063b31c2ad89c66e5414297612f91ebe9 | [
"Apache-2.0"
] | 3 | 2020-02-20T15:48:03.000Z | 2021-12-16T22:50:40.000Z | import pytest
from app.models import AVScanResult
@pytest.fixture
def _scan_result() -> AVScanResult:
clean = 10
virus = 0
skipped = 0
return AVScanResult(clean, virus, skipped)
def test_avscanresult_init(_scan_result):
result = AVScanResult(10, 0, 0)
assert result == _scan_result
def test... | 29.833333 | 62 | 0.655307 | 232 | 1,790 | 4.818966 | 0.219828 | 0.048301 | 0.037567 | 0.056351 | 0.54025 | 0.478533 | 0.321109 | 0.28712 | 0.28712 | 0.28712 | 0 | 0.031947 | 0.248045 | 1,790 | 59 | 63 | 30.338983 | 0.798663 | 0.029609 | 0 | 0.333333 | 0 | 0 | 0.303746 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.044444 | 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 |
27a97aed4e6639ade2261db847e3a6e16989a40c | 1,424 | py | Python | autoload/activate_this.py | BonaBeavis/vim-venom | a4ed892bd844de51c92e7b59dbc975db02c939b9 | [
"Vim"
] | 24 | 2020-04-26T11:50:40.000Z | 2022-02-22T08:05:36.000Z | autoload/activate_this.py | BonaBeavis/vim-venom | a4ed892bd844de51c92e7b59dbc975db02c939b9 | [
"Vim"
] | 5 | 2021-01-26T12:41:12.000Z | 2022-01-11T15:40:43.000Z | autoload/activate_this.py | BonaBeavis/vim-venom | a4ed892bd844de51c92e7b59dbc975db02c939b9 | [
"Vim"
] | 4 | 2020-05-02T21:45:36.000Z | 2022-03-25T13:51:00.000Z | # -*- coding: utf-8 -*-
"""Activate virtualenv for current interpreter:
Source: https://github.com/pypa/virtualenv
Use exec(open(this_file).read(), {'__file__': this_file}).
"""
import os
import site
import sys
try:
abs_file = os.path.abspath(__file__)
except NameError:
raise AssertionError(
"You must... | 30.297872 | 78 | 0.714185 | 218 | 1,424 | 4.477064 | 0.422018 | 0.098361 | 0.02459 | 0.055328 | 0.157787 | 0.157787 | 0.131148 | 0.071721 | 0.071721 | 0 | 0 | 0.006509 | 0.136938 | 1,424 | 46 | 79 | 30.956522 | 0.787632 | 0.287921 | 0 | 0 | 0 | 0 | 0.167665 | 0.027944 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27abc06bb50512111945d911b3687183e05cd80c | 2,731 | py | Python | tattrdb/models.py | gmjosack/tattrdb | 88d46eb049d05a1f0531531c49c2209c2bbbf562 | [
"MIT"
] | 1 | 2018-11-24T02:33:15.000Z | 2018-11-24T02:33:15.000Z | tattrdb/models.py | gmjosack/tattrdb | 88d46eb049d05a1f0531531c49c2209c2bbbf562 | [
"MIT"
] | null | null | null | tattrdb/models.py | gmjosack/tattrdb | 88d46eb049d05a1f0531531c49c2209c2bbbf562 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy import (
Table, Column, Integer, String, Text, Boolean,
ForeignKey, Enum, DateTime
)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref, sessionmaker
Session = sessionmaker()
Model = declarative_base()
... | 28.154639 | 103 | 0.656902 | 314 | 2,731 | 5.557325 | 0.251592 | 0.040115 | 0.05616 | 0.036676 | 0.2 | 0.2 | 0.146705 | 0.103152 | 0 | 0 | 0 | 0.005618 | 0.217869 | 2,731 | 96 | 104 | 28.447917 | 0.81133 | 0.022702 | 0 | 0.184615 | 0 | 0 | 0.093985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.061538 | 0.030769 | 0.523077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27ae7ed160d61ff6977fb0ea0dc61ee80279d33b | 152,955 | py | Python | modules/cockatoo/_knitnetwork.py | fstwn/Cockatoo | 0c5f9c515053bfc31e62d20fddc4ae9bece09d88 | [
"MIT"
] | 9 | 2020-09-26T03:41:21.000Z | 2021-11-29T06:52:35.000Z | modules/cockatoo/_knitnetwork.py | fstwn/Cockatoo | 0c5f9c515053bfc31e62d20fddc4ae9bece09d88 | [
"MIT"
] | 9 | 2020-08-10T19:38:03.000Z | 2022-02-24T08:41:32.000Z | modules/cockatoo/_knitnetwork.py | fstwn/Cockatoo | 0c5f9c515053bfc31e62d20fddc4ae9bece09d88 | [
"MIT"
] | 3 | 2020-12-26T08:43:56.000Z | 2021-10-17T19:37:52.000Z | # PYTHON STANDARD LIBRARY IMPORTS ---------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import deque
from collections import OrderedDict
from math import radians
from math import pi
from operator import... | 45.454681 | 79 | 0.495106 | 15,195 | 152,955 | 4.844817 | 0.063244 | 0.013448 | 0.00777 | 0.008802 | 0.641129 | 0.600418 | 0.571335 | 0.543883 | 0.523629 | 0.509611 | 0 | 0.009948 | 0.428904 | 152,955 | 3,364 | 80 | 45.468193 | 0.832814 | 0.279599 | 0 | 0.587319 | 0 | 0 | 0.040063 | 0.001593 | 0 | 0 | 0 | 0.000595 | 0 | 1 | 0.015573 | false | 0.004449 | 0.022247 | 0 | 0.05228 | 0.040044 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27af82c734c9c172d86f1e925df82c41889d2af8 | 5,388 | py | Python | main.py | GuruOfPython/Python-Tkinter-GUI | de17e819cc6008274077d8347d722e779cb9166b | [
"MIT"
] | null | null | null | main.py | GuruOfPython/Python-Tkinter-GUI | de17e819cc6008274077d8347d722e779cb9166b | [
"MIT"
] | null | null | null | main.py | GuruOfPython/Python-Tkinter-GUI | de17e819cc6008274077d8347d722e779cb9166b | [
"MIT"
] | null | null | null | # from binary_tree import *
#
# root = Node(8)
#
# root.insert(3)
# root.insert(10)
# root.insert(1)
# root.insert(6)
# root.insert(4)
# root.insert(7)
# root.insert(14)
# root.insert(13)
# node, parent = root.lookup(6)
# print(node, parent)
# root.print_tree()
#
# root.delete(10)
#
# root.print_tree()
import tkinter... | 32.853659 | 103 | 0.615256 | 742 | 5,388 | 4.362534 | 0.190027 | 0.042014 | 0.064257 | 0.033982 | 0.540624 | 0.518072 | 0.420142 | 0.34878 | 0.335187 | 0.335187 | 0 | 0.023355 | 0.26095 | 5,388 | 163 | 104 | 33.055215 | 0.789553 | 0.138641 | 0 | 0.307692 | 0 | 0 | 0.137527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.096154 | 0 | 0.269231 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27b12ffdc16386ed1ffaa3ad7820397e93894fcc | 4,634 | py | Python | cbagent/collectors/sgimport_latency.py | sharujayaram/perfrunner | 8fe8ff42a5c74c274b569ba2c45cd43b320f48eb | [
"Apache-2.0"
] | null | null | null | cbagent/collectors/sgimport_latency.py | sharujayaram/perfrunner | 8fe8ff42a5c74c274b569ba2c45cd43b320f48eb | [
"Apache-2.0"
] | null | null | null | cbagent/collectors/sgimport_latency.py | sharujayaram/perfrunner | 8fe8ff42a5c74c274b569ba2c45cd43b320f48eb | [
"Apache-2.0"
] | 1 | 2019-05-20T13:44:29.000Z | 2019-05-20T13:44:29.000Z | import requests
import json
from concurrent.futures import ProcessPoolExecutor as Executor
from concurrent.futures import ThreadPoolExecutor
from time import sleep, time
from couchbase.bucket import Bucket
from cbagent.collectors import Latency, Collector
from logger import logger
from perfrunner.helpers.misc impor... | 30.486842 | 95 | 0.594087 | 500 | 4,634 | 5.326 | 0.294 | 0.049568 | 0.016898 | 0.020278 | 0.137439 | 0.114157 | 0.088622 | 0.063087 | 0.063087 | 0.030792 | 0 | 0.023024 | 0.306431 | 4,634 | 151 | 96 | 30.688742 | 0.805538 | 0.00669 | 0 | 0.093458 | 0 | 0 | 0.071335 | 0.015876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074766 | false | 0.037383 | 0.17757 | 0 | 0.35514 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27b4b4442e8234ce781c98d6ea27cb6fba57c3a9 | 5,000 | py | Python | Tools/renew-navi-npc.py | vakhet/ragnarok-navigation | df7d3ff95a9bd1c0497744113ad664a31d248de6 | [
"MIT"
] | 3 | 2017-12-02T16:40:32.000Z | 2020-02-11T17:44:02.000Z | Tools/renew-navi-npc.py | vakhet/ragnarok-navigation | df7d3ff95a9bd1c0497744113ad664a31d248de6 | [
"MIT"
] | null | null | null | Tools/renew-navi-npc.py | vakhet/ragnarok-navigation | df7d3ff95a9bd1c0497744113ad664a31d248de6 | [
"MIT"
] | null | null | null | """
Author : vakhet at gmail.com
This script gets all your NPC names from the original rAthena folder
and updates their lines in navi_npc_krpri.lub
wherever matches the map_name and coords
"""
import re
import os
import random
import sqlite3
NPC_match = r'^[\w\d_]+,\d+,\d+,\d+\tscript\t[\w\d_ -]+#*[... | 28.571429 | 82 | 0.523 | 671 | 5,000 | 3.825633 | 0.28465 | 0.029996 | 0.046747 | 0.03506 | 0.133229 | 0.133229 | 0.089599 | 0.051422 | 0 | 0 | 0 | 0.021555 | 0.3134 | 5,000 | 174 | 83 | 28.735632 | 0.726187 | 0.0726 | 0 | 0.185714 | 0 | 0.014286 | 0.297346 | 0.008322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0.014286 | 0.028571 | 0 | 0.085714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27b801a71ed41ab9ae80dc219943a39cdead01b2 | 712 | py | Python | tests/components/rtsp_to_webrtc/test_diagnostics.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/rtsp_to_webrtc/test_diagnostics.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | tests/components/rtsp_to_webrtc/test_diagnostics.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Test nest diagnostics."""
from typing import Any
from .conftest import ComponentSetup
from tests.common import MockConfigEntry
from tests.components.diagnostics import get_diagnostics_for_config_entry
THERMOSTAT_TYPE = "sdm.devices.types.THERMOSTAT"
async def test_entry_diagnostics(
hass,
hass_client,
... | 25.428571 | 87 | 0.716292 | 81 | 712 | 6.049383 | 0.481481 | 0.112245 | 0.069388 | 0.093878 | 0.216327 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005119 | 0.176966 | 712 | 27 | 88 | 26.37037 | 0.831058 | 0.030899 | 0 | 0 | 0 | 0 | 0.12037 | 0.04321 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27b8f98dbc5944c52c7fdf99ecb0474a2db0ffed | 3,477 | py | Python | reachweb/models.py | kamauvick/ReachOutDash | ceb7da731982bc9d1b1bb4185f34822b4dcf6526 | [
"MIT"
] | null | null | null | reachweb/models.py | kamauvick/ReachOutDash | ceb7da731982bc9d1b1bb4185f34822b4dcf6526 | [
"MIT"
] | 9 | 2020-02-12T02:44:31.000Z | 2022-03-12T00:03:57.000Z | reachweb/models.py | kamauvick/ReachOutDash | ceb7da731982bc9d1b1bb4185f34822b4dcf6526 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.db import models
class Chv(models.Model):
name = models.OneToOneField(User, on_delete=models.PROTECT, related_name='profile')
age = models.IntegerField()
phonenumber = models.CharField(max_length=255)
profile_picture = models.ImageField(upload_to... | 30.5 | 98 | 0.632442 | 384 | 3,477 | 5.578125 | 0.335938 | 0.070028 | 0.07563 | 0.10084 | 0.287115 | 0.20775 | 0.118114 | 0.118114 | 0.118114 | 0.053221 | 0 | 0.011223 | 0.231234 | 3,477 | 113 | 99 | 30.769912 | 0.790123 | 0.071326 | 0 | 0.211765 | 0 | 0 | 0.178882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0.035294 | 0.023529 | 0.035294 | 0.564706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27bb547681e27f63805f0e3f2bcfba62a6d181f3 | 4,876 | py | Python | distances/symmetric_amd_distance.py | npielawski/py_alpha_amd_release | 6fb5b3cdef65ba8902daea050785dd73970002c2 | [
"MIT"
] | 14 | 2019-02-12T20:30:23.000Z | 2021-11-04T01:10:34.000Z | distances/symmetric_amd_distance.py | npielawski/py_alpha_amd_release | 6fb5b3cdef65ba8902daea050785dd73970002c2 | [
"MIT"
] | 2 | 2021-05-12T05:02:59.000Z | 2021-10-11T14:40:10.000Z | distances/symmetric_amd_distance.py | npielawski/py_alpha_amd_release | 6fb5b3cdef65ba8902daea050785dd73970002c2 | [
"MIT"
] | 7 | 2019-02-20T12:19:28.000Z | 2021-02-09T10:12:06.000Z |
#
# Py-Alpha-AMD Registration Framework
# Author: Johan Ofverstedt
# Reference: Fast and Robust Symmetric Image Registration Based on Distances Combining Intensity and Spatial Information
#
# Copyright 2019 Johan Ofverstedt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa... | 41.322034 | 179 | 0.689295 | 671 | 4,876 | 4.724292 | 0.274218 | 0.04164 | 0.030284 | 0.028391 | 0.208833 | 0.078864 | 0.0347 | 0.0347 | 0.0347 | 0 | 0 | 0.009376 | 0.234413 | 4,876 | 117 | 180 | 41.675214 | 0.839807 | 0.295529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.015152 | 0 | 0.19697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27be070f86ae724315deda03de85e57e9b0b008d | 5,645 | py | Python | misc/util.py | winder/indexer | 18f48f026f022cdeef92dcac558d3900d6ea798d | [
"MIT"
] | 87 | 2020-08-20T19:14:02.000Z | 2022-03-30T21:31:59.000Z | misc/util.py | hassoon1986/indexer | 0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b | [
"MIT"
] | 615 | 2020-06-03T14:13:29.000Z | 2022-03-31T12:08:38.000Z | misc/util.py | hassoon1986/indexer | 0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b | [
"MIT"
] | 58 | 2020-06-03T21:33:48.000Z | 2022-03-26T15:39:50.000Z | #!/usr/bin/env python3
import atexit
import logging
import os
import random
import subprocess
import sys
import time
import msgpack
logger = logging.getLogger(__name__)
def maybedecode(x):
if hasattr(x, 'decode'):
return x.decode()
return x
def mloads(x):
return msgpack.loads(x, strict_map_key... | 34.845679 | 107 | 0.589725 | 719 | 5,645 | 4.536857 | 0.255911 | 0.04905 | 0.044145 | 0.055181 | 0.274065 | 0.244329 | 0.207541 | 0.168302 | 0.168302 | 0.168302 | 0 | 0.006158 | 0.280779 | 5,645 | 161 | 108 | 35.062112 | 0.797291 | 0.058813 | 0 | 0.255319 | 0 | 0 | 0.130063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.014184 | 0.056738 | 0.007092 | 0.212766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27c0f66f70a59c9a16bcacfd772c973fa3bad2e9 | 11,093 | py | Python | coconut/_pyparsing.py | evhub/coconut | 27a4af9dc06667870f736f20c862930001b8cbb2 | [
"Apache-2.0"
] | 3,624 | 2015-02-22T07:06:18.000Z | 2022-03-31T03:38:00.000Z | coconut/_pyparsing.py | evhub/coconut | 27a4af9dc06667870f736f20c862930001b8cbb2 | [
"Apache-2.0"
] | 627 | 2015-03-31T01:18:53.000Z | 2022-03-28T07:48:31.000Z | coconut/_pyparsing.py | evhub/coconut | 27a4af9dc06667870f736f20c862930001b8cbb2 | [
"Apache-2.0"
] | 162 | 2016-03-02T05:22:55.000Z | 2022-03-31T23:42:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------
"""
Author: Evan Hub... | 35.554487 | 180 | 0.554945 | 1,099 | 11,093 | 5.187443 | 0.259327 | 0.026311 | 0.018242 | 0.00842 | 0.167164 | 0.106297 | 0.081038 | 0.066304 | 0.066304 | 0.047711 | 0 | 0.001516 | 0.22672 | 11,093 | 311 | 181 | 35.66881 | 0.663092 | 0.22077 | 0 | 0.093458 | 0 | 0.004673 | 0.163846 | 0.041652 | 0 | 0 | 0 | 0 | 0.014019 | 1 | 0.028037 | false | 0.009346 | 0.11215 | 0 | 0.158879 | 0.023364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27c1c2dd0bdd326bf942be3440f758392e7db45f | 4,948 | py | Python | tests/test_explicit_hll.py | aholyoke/python-hll | 30793aeb18103600fce0f3ad0b0c9e99e8b756fe | [
"MIT"
] | 13 | 2019-11-19T07:38:46.000Z | 2022-02-11T13:23:25.000Z | tests/test_explicit_hll.py | aholyoke/python-hll | 30793aeb18103600fce0f3ad0b0c9e99e8b756fe | [
"MIT"
] | 4 | 2019-12-12T04:19:34.000Z | 2021-06-09T17:52:52.000Z | tests/test_explicit_hll.py | aholyoke/python-hll | 30793aeb18103600fce0f3ad0b0c9e99e8b756fe | [
"MIT"
] | 6 | 2019-11-06T21:33:25.000Z | 2022-02-21T14:43:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
from python_hll.hlltype import HLLType
from python_hll.hll import HLL
from python_hll.serialization import SerializationUtil
"""Unit tests for BitVector."""
def test_add_basic():
"""
Tests basic set semantics of ``HLL.add_raw()``.
"""
# Ad... | 27.337017 | 89 | 0.653597 | 703 | 4,948 | 4.391181 | 0.206259 | 0.036929 | 0.034985 | 0.058309 | 0.444121 | 0.389375 | 0.358925 | 0.330742 | 0.323291 | 0.269841 | 0 | 0.031904 | 0.227162 | 4,948 | 180 | 90 | 27.488889 | 0.775366 | 0.295069 | 0 | 0.463158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.084211 | false | 0 | 0.042105 | 0 | 0.136842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27c9faa515cbfcb516d2a78da11f8590793a0cac | 6,912 | py | Python | src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py | Yulv-git/Model_Inference_Deployment | 623f9955dfb60fe7af9d17415bfec58fc4c86c1b | [
"MIT"
] | 4 | 2022-02-05T14:16:05.000Z | 2022-03-27T13:35:06.000Z | src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py | Yulv-git/Model_Inference_Deployment | 623f9955dfb60fe7af9d17415bfec58fc4c86c1b | [
"MIT"
] | null | null | null | src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py | Yulv-git/Model_Inference_Deployment | 623f9955dfb60fe7af9d17415bfec58fc4c86c1b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
'''
Author: Shuangchi He / Yulv
Email: yulvchi@qq.com
Date: 2022-01-28 14:21:09
Motto: Entities should not be multiplied unnecessarily.
LastEditors: Shuangchi He
LastEditTime: 2022-04-06 11:40:23
FilePath: /Model_Inference_Deployment/src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME... | 41.638554 | 124 | 0.684172 | 973 | 6,912 | 4.623844 | 0.280576 | 0.026673 | 0.021338 | 0.030229 | 0.273172 | 0.237386 | 0.221383 | 0.172705 | 0.0978 | 0.057791 | 0 | 0.026552 | 0.209925 | 6,912 | 165 | 125 | 41.890909 | 0.79729 | 0.252894 | 0 | 0.04 | 0 | 0 | 0.074154 | 0.016435 | 0 | 0 | 0 | 0 | 0.01 | 1 | 0.08 | false | 0 | 0.12 | 0.01 | 0.22 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27cc788dc3d49e45198c96fa1cec36fea676e304 | 2,085 | py | Python | scripts/dataset.py | MarcGroef/deeplearning | d1ef095fbe0f7e9b56017808d976efe7502e6b81 | [
"MIT"
] | null | null | null | scripts/dataset.py | MarcGroef/deeplearning | d1ef095fbe0f7e9b56017808d976efe7502e6b81 | [
"MIT"
] | null | null | null | scripts/dataset.py | MarcGroef/deeplearning | d1ef095fbe0f7e9b56017808d976efe7502e6b81 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from sklearn.model_selection import StratifiedKFold
# Set dataset seed
np.random.seed(seed=842102)
class SingletonDecorator:
def __init__(self,klass):
self.klass = klass
self.instance = None
def __call__(self,*args,**kwds):
if self.instance ==... | 35.948276 | 130 | 0.659472 | 250 | 2,085 | 5.224 | 0.364 | 0.053599 | 0.042879 | 0.045942 | 0.140888 | 0.140888 | 0 | 0 | 0 | 0 | 0 | 0.010107 | 0.240767 | 2,085 | 57 | 131 | 36.578947 | 0.814908 | 0.056595 | 0 | 0 | 0 | 0 | 0.051988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.075 | 0 | 0.325 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27cf1141da0cf1cbeff01d7fcd33d6536ff17b4d | 1,962 | py | Python | src/python/utils/image.py | Lamzigit/manifold_learning | f699fe4f25dbabdbc2dc9635c4e654b59806e17d | [
"MIT"
] | 10 | 2017-06-14T08:04:44.000Z | 2021-07-06T07:13:16.000Z | src/python/utils/image.py | Lamzigit/manifold_learning | f699fe4f25dbabdbc2dc9635c4e654b59806e17d | [
"MIT"
] | 1 | 2020-11-18T13:08:43.000Z | 2020-11-18T13:12:39.000Z | src/python/utils/image.py | Lamzigit/manifold_learning | f699fe4f25dbabdbc2dc9635c4e654b59806e17d | [
"MIT"
] | 3 | 2017-06-14T08:04:53.000Z | 2019-11-18T13:21:15.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 15 14:03:52 2015
@author: jemanjohnson
"""
import numpy as np
import matplotlib.pyplot as plt
import os
import scipy.io
from sklearn import preprocessing
from time import time
from sklearn.preprocessing import MinMaxScaler
# Image Reshape Function
def img_as_array(img... | 25.480519 | 73 | 0.618756 | 270 | 1,962 | 4.433333 | 0.418519 | 0.037594 | 0.02005 | 0.030075 | 0.07853 | 0.06015 | 0.06015 | 0.06015 | 0.06015 | 0.06015 | 0 | 0.016961 | 0.278797 | 1,962 | 77 | 74 | 25.480519 | 0.828975 | 0.357798 | 0 | 0.066667 | 0 | 0 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.233333 | 0 | 0.433333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27d2e55ac297493daba610855afc860802f2e6c9 | 2,074 | py | Python | tests/test_visualize_poll.py | UBC-MDS/tweepypoll | 62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6 | [
"MIT"
] | null | null | null | tests/test_visualize_poll.py | UBC-MDS/tweepypoll | 62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6 | [
"MIT"
] | 30 | 2022-01-14T17:10:08.000Z | 2022-02-02T21:17:05.000Z | tests/test_visualize_poll.py | UBC-MDS/tweepypoll | 62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6 | [
"MIT"
] | 1 | 2022-01-14T16:10:11.000Z | 2022-01-14T16:10:11.000Z | from tweepypoll.tweepypoll import visualize_poll
import pandas as pd
import altair as alt
def test_visualize_poll():
"""Test visualize_poll on a dictionary input"""
sample_poll_obj = [
{
"text": "Important research!!!",
"duration": 1440,
"date": "2022-01-22T04:01:0... | 35.152542 | 87 | 0.590646 | 276 | 2,074 | 4.336957 | 0.373188 | 0.05848 | 0.076023 | 0.05848 | 0.211362 | 0.086884 | 0.048454 | 0 | 0 | 0 | 0 | 0.041557 | 0.269045 | 2,074 | 58 | 88 | 35.758621 | 0.748021 | 0.144166 | 0 | 0.116279 | 0 | 0 | 0.334278 | 0.013598 | 0 | 0 | 0 | 0 | 0.209302 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27d78b89ba7b997214a4c7166893ac8b3158ac3f | 38,343 | py | Python | sgan/models.py | peaceminusones/Group-GAN-GCN | ff0abf90bb830729d082d1fa46e41c749c738895 | [
"MIT"
] | 2 | 2021-05-25T09:10:15.000Z | 2021-09-25T07:53:35.000Z | sgan/models.py | peaceminusones/Group-GAN-GCN | ff0abf90bb830729d082d1fa46e41c749c738895 | [
"MIT"
] | null | null | null | sgan/models.py | peaceminusones/Group-GAN-GCN | ff0abf90bb830729d082d1fa46e41c749c738895 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def make_mlp(dim_list, activation='relu', batch_norm=True, dropout=0):
# make_mlp主要是构造多层的全连接网络,并且根据需求决定激活函数的类型,其参数dim_list是全连接网络各层维度的列表
layers = []
for dim_in, dim_out in zip(dim_list[:-1], dim_list[1:]):
layers.... | 38.652218 | 126 | 0.586235 | 5,098 | 38,343 | 4.096116 | 0.082581 | 0.012068 | 0.01475 | 0.013696 | 0.552916 | 0.466622 | 0.410066 | 0.366153 | 0.345896 | 0.314146 | 0 | 0.023116 | 0.300498 | 38,343 | 991 | 127 | 38.691221 | 0.755453 | 0.335002 | 0 | 0.39 | 0 | 0 | 0.006423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.008 | 0.002 | 0.138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27da1fb06b835a7c7c1c2845d17975f0ff1c9b74 | 2,940 | py | Python | pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py | culturesofknowledge/emlo-server | 8a88ca98a5211086195793e4bed5960550638936 | [
"MIT"
] | null | null | null | pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py | culturesofknowledge/emlo-server | 8a88ca98a5211086195793e4bed5960550638936 | [
"MIT"
] | null | null | null | pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py | culturesofknowledge/emlo-server | 8a88ca98a5211086195793e4bed5960550638936 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 24 Aug 2010
@author: Matthew Wilcoxson
functions convert from one value to another in the form:
def conversion(value):
#do something
return new_value
'''
import time
def convert_to_rdf_date(value):
date_check = value
# rdf uses format '1651-12-31T00:00:00... | 30 | 119 | 0.611905 | 430 | 2,940 | 4.053488 | 0.348837 | 0.041308 | 0.060241 | 0.039013 | 0.405622 | 0.316122 | 0.244406 | 0.209983 | 0.181297 | 0.139989 | 0 | 0.03181 | 0.240816 | 2,940 | 98 | 120 | 30 | 0.749104 | 0.182313 | 0 | 0.12963 | 0 | 0.055556 | 0.231896 | 0.028464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.018519 | 0.037037 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27dfaf52615924607a73e76ca9bec8a17c8c3880 | 11,305 | py | Python | estimate.py | DS3Lab/feebee | eb210d07a7f9956ca2d0681ccf446330c8427a8b | [
"Apache-2.0"
] | 1 | 2022-03-24T06:15:37.000Z | 2022-03-24T06:15:37.000Z | estimate.py | DS3Lab/feebee | eb210d07a7f9956ca2d0681ccf446330c8427a8b | [
"Apache-2.0"
] | null | null | null | estimate.py | DS3Lab/feebee | eb210d07a7f9956ca2d0681ccf446330c8427a8b | [
"Apache-2.0"
] | 1 | 2021-12-20T12:11:55.000Z | 2021-12-20T12:11:55.000Z | from absl import app
from absl import flags
from absl import logging
import csv
import importlib
import numpy as np
import os.path as path
import random
from sklearn.model_selection import train_test_split
import time
from transformations.reader.matrix import test_argument_and_file, load_and_log
import transformations... | 51.153846 | 215 | 0.665369 | 1,563 | 11,305 | 4.59501 | 0.111964 | 0.043163 | 0.047341 | 0.049011 | 0.720134 | 0.690198 | 0.652743 | 0.637845 | 0.607909 | 0.586048 | 0 | 0.00693 | 0.221406 | 11,305 | 220 | 216 | 51.386364 | 0.809021 | 0.005838 | 0 | 0.494318 | 0 | 0 | 0.211234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028409 | false | 0 | 0.102273 | 0.005682 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27dfb13b1540ca2ae940981337f040231ef6dd46 | 2,610 | py | Python | allmodels_image.py | GustavZ/Tensorflow-Object-Detection | 3aab434b20e510d3953b4265dd73a1c7c315067d | [
"MIT"
] | 187 | 2017-12-26T17:41:09.000Z | 2019-03-06T04:44:25.000Z | allmodels_image.py | a554142589/realtime_object_detection | d2bd7e58df9af1848e473fa7627aa2433192903d | [
"MIT"
] | 38 | 2018-02-01T17:05:01.000Z | 2019-02-15T21:58:25.000Z | allmodels_image.py | a554142589/realtime_object_detection | d2bd7e58df9af1848e473fa7627aa2433192903d | [
"MIT"
] | 65 | 2018-01-19T06:03:44.000Z | 2019-03-06T04:58:31.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 10 09:45:23 2018
@author: www.github.com/GustavZ
"""
import os
import sys
import numpy as np
from rod.config import Config
from rod.helper import get_model_list, check_if_optimized_model
from rod.model import ObjectDetectionModel, DeepLabModel
RO... | 32.222222 | 79 | 0.668966 | 331 | 2,610 | 4.996979 | 0.323263 | 0.097944 | 0.065296 | 0.053204 | 0.342201 | 0.305925 | 0.273277 | 0.273277 | 0.273277 | 0.273277 | 0 | 0.009572 | 0.239464 | 2,610 | 80 | 80 | 32.625 | 0.823678 | 0.123755 | 0 | 0.298246 | 0 | 0 | 0.055482 | 0.023338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.105263 | 0 | 0.315789 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27e04f3e71ee9ae2490b13c55437303fba48ca2d | 5,953 | py | Python | train.py | Jing-lun/GPR_3D_Model_Reconstruction | 24259bdbdf5e993e286e556ee1bae720892a16b9 | [
"Unlicense"
] | 1 | 2021-09-30T10:22:54.000Z | 2021-09-30T10:22:54.000Z | train.py | Jing-lun/GPR_3D_Model_Reconstruction | 24259bdbdf5e993e286e556ee1bae720892a16b9 | [
"Unlicense"
] | 1 | 2021-07-23T13:10:58.000Z | 2021-07-23T13:10:58.000Z | train.py | Jing-lun/GPR_3D_Model_Reconstruction | 24259bdbdf5e993e286e556ee1bae720892a16b9 | [
"Unlicense"
] | null | null | null | # Copyright 2021, Robotics Lab, City College of New York
# 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 ... | 36.975155 | 111 | 0.607425 | 759 | 5,953 | 4.635046 | 0.346509 | 0.025583 | 0.033826 | 0.01535 | 0.088687 | 0.062536 | 0.031268 | 0.023309 | 0.023309 | 0.023309 | 0 | 0.014059 | 0.271124 | 5,953 | 160 | 112 | 37.20625 | 0.796727 | 0.106501 | 0 | 0.016667 | 0 | 0 | 0.171849 | 0.006972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.141667 | 0 | 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 |
27e33b028e6c906a2e346f640e4d67536b199914 | 23,817 | py | Python | dxtbx/tests/model/experiment/test_experiment_list.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | dxtbx/tests/model/experiment/test_experiment_list.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | dxtbx/tests/model/experiment/test_experiment_list.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import absolute_import, division, print_function
import six.moves.cPickle as pickle
from glob import glob
import os
import pytest
from dxtbx.model import Experiment, ExperimentList
from dxtbx.model.experiment_list import ExperimentListFactory, \
ExperimentListDumper, ExperimentListDict
def test_ex... | 32.715659 | 89 | 0.719528 | 3,395 | 23,817 | 4.919293 | 0.073932 | 0.082151 | 0.023711 | 0.028741 | 0.671996 | 0.630441 | 0.582241 | 0.564996 | 0.519131 | 0.503802 | 0 | 0.028018 | 0.168283 | 23,817 | 727 | 90 | 32.76066 | 0.815084 | 0.127052 | 0 | 0.474645 | 0 | 0 | 0.045916 | 0.0029 | 0 | 0 | 0 | 0.001376 | 0.356998 | 1 | 0.046653 | false | 0 | 0.073022 | 0 | 0.121704 | 0.002028 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27e7f431903fe9377416892525c526c246e0ed24 | 21,183 | py | Python | _states/novav21.py | NDPF/salt-formula-nova | 265d9e6c2cbd41d564ee389b210441d9f7378433 | [
"Apache-2.0"
] | 4 | 2017-04-27T14:27:04.000Z | 2017-11-04T18:23:09.000Z | _states/novav21.py | NDPF/salt-formula-nova | 265d9e6c2cbd41d564ee389b210441d9f7378433 | [
"Apache-2.0"
] | 22 | 2017-02-01T09:04:52.000Z | 2019-05-10T09:04:01.000Z | _states/novav21.py | NDPF/salt-formula-nova | 265d9e6c2cbd41d564ee389b210441d9f7378433 | [
"Apache-2.0"
] | 35 | 2017-02-05T23:11:16.000Z | 2019-04-04T17:21:36.000Z | # 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
# d... | 39.155268 | 84 | 0.626729 | 2,623 | 21,183 | 4.762867 | 0.120092 | 0.052589 | 0.057232 | 0.043224 | 0.525895 | 0.435524 | 0.361963 | 0.340591 | 0.299608 | 0.278156 | 0 | 0.005187 | 0.262805 | 21,183 | 540 | 85 | 39.227778 | 0.794826 | 0.089789 | 0 | 0.367542 | 0 | 0 | 0.200345 | 0.027389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078759 | false | 0.00716 | 0.01432 | 0.023866 | 0.217184 | 0.004773 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27ed7774eba9356593529c7a047bb6eafaebca6b | 6,891 | py | Python | src/pyff/fetch.py | rhoerbe/pyFF | 85933ed9cc9f720c9432d5e4c3114895cefd3579 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/pyff/fetch.py | rhoerbe/pyFF | 85933ed9cc9f720c9432d5e4c3114895cefd3579 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/pyff/fetch.py | rhoerbe/pyFF | 85933ed9cc9f720c9432d5e4c3114895cefd3579 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | """
An abstraction layer for metadata fetchers. Supports both syncronous and asyncronous fetchers with cache.
"""
from .logs import get_log
import os
import requests
from .constants import config
from datetime import datetime
from collections import deque
import six
from concurrent import futures
import traceback
fr... | 29.702586 | 108 | 0.565085 | 831 | 6,891 | 4.563177 | 0.231047 | 0.042458 | 0.021361 | 0.009494 | 0.078059 | 0.060127 | 0.036392 | 0.025844 | 0.025844 | 0 | 0 | 0.000863 | 0.327674 | 6,891 | 231 | 109 | 29.831169 | 0.817613 | 0.020461 | 0 | 0.094972 | 0 | 0 | 0.06276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145251 | false | 0 | 0.089385 | 0.061453 | 0.357542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27f693df0e7ea237223f8c2bc9de9a57a4f98dac | 838 | py | Python | tests/test_report.py | whalebot-helmsman/pykt-64 | ee5e0413cd850876d3abc438480fffea4f7b7517 | [
"BSD-3-Clause"
] | null | null | null | tests/test_report.py | whalebot-helmsman/pykt-64 | ee5e0413cd850876d3abc438480fffea4f7b7517 | [
"BSD-3-Clause"
] | null | null | null | tests/test_report.py | whalebot-helmsman/pykt-64 | ee5e0413cd850876d3abc438480fffea4f7b7517 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from setup_teardown import start_db, stop_db
from nose.tools import *
from pykt import KyotoTycoon, KTException
@raises(IOError)
def test_err_report():
db = KyotoTycoon()
db.report()
@with_setup(setup=start_db,teardown=stop_db)
def test_report():
db = KyotoTycoon()
db = db.open... | 21.487179 | 44 | 0.643198 | 120 | 838 | 4.275 | 0.283333 | 0.054581 | 0.087719 | 0.111111 | 0.623782 | 0.557505 | 0.557505 | 0.557505 | 0.557505 | 0.557505 | 0 | 0.00607 | 0.213604 | 838 | 38 | 45 | 22.052632 | 0.772382 | 0.02506 | 0 | 0.65625 | 0 | 0 | 0.004914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 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 |
27f931503927cf87b2047c06d44bfc6dbb23b7c2 | 5,416 | py | Python | manga_db/extractor/toonily.py | nilfoer/mangadb | 860d7de310002735631ea26810b4df5b6bc08d7b | [
"MIT"
] | 3 | 2021-01-14T16:22:41.000Z | 2022-02-21T03:31:22.000Z | manga_db/extractor/toonily.py | nilfoer/mangadb | 860d7de310002735631ea26810b4df5b6bc08d7b | [
"MIT"
] | 13 | 2021-01-14T10:34:19.000Z | 2021-05-20T08:47:54.000Z | manga_db/extractor/toonily.py | nilfoer/mangadb | 860d7de310002735631ea26810b4df5b6bc08d7b | [
"MIT"
] | 1 | 2022-02-24T03:10:04.000Z | 2022-02-24T03:10:04.000Z | import re
import datetime
import bs4
from typing import Dict, Tuple, Optional, TYPE_CHECKING, ClassVar, Pattern, cast, Match, Any
from .base import BaseMangaExtractor, MangaExtractorData
from ..constants import STATUS_IDS, CENSOR_IDS
if TYPE_CHECKING:
from ..ext_info import ExternalInfo
class ToonilyExtractor... | 37.351724 | 111 | 0.605613 | 694 | 5,416 | 4.534582 | 0.282421 | 0.028599 | 0.022243 | 0.02701 | 0.125834 | 0.074357 | 0.045758 | 0.045758 | 0.045758 | 0.020972 | 0 | 0.007035 | 0.26514 | 5,416 | 144 | 112 | 37.611111 | 0.783668 | 0.081979 | 0 | 0.090909 | 0 | 0 | 0.137938 | 0.023496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080808 | false | 0 | 0.080808 | 0.020202 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27fb6ab9dc39790c3dcbcf43be391bd869cc5d49 | 10,965 | py | Python | blindbackup/providers/blindfs.py | nagylzs/blindbackup | fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9 | [
"Apache-2.0"
] | 1 | 2020-01-26T05:46:14.000Z | 2020-01-26T05:46:14.000Z | blindbackup/providers/blindfs.py | nagylzs/blindbackup | fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9 | [
"Apache-2.0"
] | null | null | null | blindbackup/providers/blindfs.py | nagylzs/blindbackup | fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os.path
import threading
from .. import cryptfile
from ..util import *
from ..client import create_client
from ..syncdir import FsProvider, FsListener
class BlindFsListener(threading.Thread, FsListener):
def is_stopping(self):
return self.stop_requested.isSet()
def __in... | 38.882979 | 121 | 0.529503 | 1,124 | 10,965 | 5.08274 | 0.241993 | 0.026256 | 0.015754 | 0.013303 | 0.19797 | 0.149659 | 0.142657 | 0.136181 | 0.123578 | 0.095221 | 0 | 0.003533 | 0.380483 | 10,965 | 281 | 122 | 39.021352 | 0.83748 | 0.167077 | 0 | 0.238095 | 0 | 0 | 0.023728 | 0 | 0 | 0 | 0 | 0.003559 | 0.02381 | 1 | 0.085714 | false | 0.004762 | 0.028571 | 0.019048 | 0.17619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
27fd6c6f828a7e94f81f249d959e7e48fffdae85 | 3,587 | py | Python | examples/computer_vision/harris.py | parag-hub/arrayfire-python | 65040c10833506f212f13e5bcc0e49cb20645e6e | [
"BSD-3-Clause"
] | 420 | 2015-07-30T00:02:21.000Z | 2022-03-28T16:52:28.000Z | examples/computer_vision/harris.py | parag-hub/arrayfire-python | 65040c10833506f212f13e5bcc0e49cb20645e6e | [
"BSD-3-Clause"
] | 198 | 2015-07-29T17:17:36.000Z | 2022-01-20T18:31:28.000Z | examples/computer_vision/harris.py | parag-hub/arrayfire-python | 65040c10833506f212f13e5bcc0e49cb20645e6e | [
"BSD-3-Clause"
] | 75 | 2015-07-29T15:17:54.000Z | 2022-02-24T06:50:23.000Z | #!/usr/bin/env python
#######################################################
# Copyright (c) 2018, ArrayFire
# All rights reserved.
#
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
# http://arrayfire.com/licenses/BSD-3-Clause
###############################... | 28.927419 | 85 | 0.606078 | 525 | 3,587 | 4.028571 | 0.352381 | 0.029787 | 0.01513 | 0.017021 | 0.194799 | 0.08227 | 0.08227 | 0.08227 | 0.08227 | 0.08227 | 0 | 0.028253 | 0.25007 | 3,587 | 123 | 86 | 29.162602 | 0.757993 | 0.272372 | 0 | 0.029412 | 0 | 0 | 0.069091 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.058824 | 0 | 0.102941 | 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 |
7e0022ad51ef52a75fd8fa97ecb5ea7bdfaf493d | 4,376 | py | Python | tests/generate_data.py | ngounou92/py-glm | 83081444e2cbba4d94f9e6b85b6be23e0ff600b8 | [
"BSD-3-Clause"
] | 127 | 2017-09-01T13:54:43.000Z | 2022-03-12T11:43:32.000Z | tests/generate_data.py | cscherrer/py-glm | d719d29fb5cc71c2cb5e728db36c6230a69292d8 | [
"BSD-3-Clause"
] | 8 | 2017-09-01T14:00:55.000Z | 2020-11-09T14:42:50.000Z | tests/generate_data.py | cscherrer/py-glm | d719d29fb5cc71c2cb5e728db36c6230a69292d8 | [
"BSD-3-Clause"
] | 35 | 2017-09-01T19:23:04.000Z | 2022-03-22T13:45:10.000Z | import numpy as np
from scipy.linalg import sqrtm
from sklearn.preprocessing import StandardScaler
def make_linear_regression(n_samples=10000,
n_uncorr_features=10, n_corr_features=10,
n_drop_features=4,
include_intercept=True,
... | 41.67619 | 81 | 0.658364 | 597 | 4,376 | 4.475712 | 0.139028 | 0.028069 | 0.072979 | 0.065868 | 0.689371 | 0.651572 | 0.575225 | 0.551272 | 0.523578 | 0.523578 | 0 | 0.026837 | 0.250686 | 4,376 | 104 | 82 | 42.076923 | 0.788045 | 0 | 0 | 0.472527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131868 | false | 0 | 0.032967 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7e0285965f79d7e3cf86a7275a5d19452f38b750 | 1,735 | py | Python | scripts/http-server.py | jrbenito/SonoffDIY-tasmotizer | 1fe9eb9b3b5630102feaf941bd02173d916e81a5 | [
"MIT"
] | null | null | null | scripts/http-server.py | jrbenito/SonoffDIY-tasmotizer | 1fe9eb9b3b5630102feaf941bd02173d916e81a5 | [
"MIT"
] | 3 | 2020-03-30T14:07:54.000Z | 2020-03-30T22:59:29.000Z | scripts/http-server.py | jrbenito/SonoffDIY-tasmotizer | 1fe9eb9b3b5630102feaf941bd02173d916e81a5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# encoding: utf-8
"""
fake-registration-server.py
Created by nano on 2018-11-22.
Copyright (c) 2018 VTRUST. All rights reserved.
"""
import tornado.web
import tornado.locks
from tornado.options import define, options, parse_command_line
define("port", default=80, help="run on the given port", t... | 25.144928 | 101 | 0.702594 | 246 | 1,735 | 4.865854 | 0.50813 | 0.040936 | 0.026734 | 0.02005 | 0.028404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022207 | 0.143516 | 1,735 | 68 | 102 | 25.514706 | 0.783311 | 0.089337 | 0 | 0 | 0 | 0 | 0.189809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.354167 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7e0480f047709048b68affbe1e229fbea8aaa94b | 4,122 | py | Python | Set_ADT/linearset.py | jaeheeLee17/DS_and_Algorithms_summary | 917500dd768eae8cfbb02cf2838d494cb720f1c0 | [
"MIT"
] | null | null | null | Set_ADT/linearset.py | jaeheeLee17/DS_and_Algorithms_summary | 917500dd768eae8cfbb02cf2838d494cb720f1c0 | [
"MIT"
] | null | null | null | Set_ADT/linearset.py | jaeheeLee17/DS_and_Algorithms_summary | 917500dd768eae8cfbb02cf2838d494cb720f1c0 | [
"MIT"
] | null | null | null | # Implementation of the Set ADT container using a Python list.
class Set:
# Creates an empty set instance.
def __init__(self):
self._theElements = list()
# Returns the number of items in the set
def __len__(self):
return len(self._theElements)
# Determines if an element is in the s... | 31.707692 | 71 | 0.563561 | 491 | 4,122 | 4.596741 | 0.217923 | 0.086398 | 0.071334 | 0.018609 | 0.280461 | 0.235268 | 0.198494 | 0.198494 | 0.135135 | 0.102348 | 0 | 0.005701 | 0.361718 | 4,122 | 129 | 72 | 31.953488 | 0.852147 | 0.253518 | 0 | 0.325843 | 0 | 0 | 0.010351 | 0 | 0 | 0 | 0 | 0.007752 | 0.011236 | 1 | 0.168539 | false | 0 | 0 | 0.044944 | 0.359551 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7e0a3148033e56abb61f66e7e257ace62456c980 | 2,932 | py | Python | app/billing/views.py | flaviogf/finance | 86a74e1eea6b19d7fe8c311eb77394a267e26432 | [
"MIT"
] | null | null | null | app/billing/views.py | flaviogf/finance | 86a74e1eea6b19d7fe8c311eb77394a267e26432 | [
"MIT"
] | null | null | null | app/billing/views.py | flaviogf/finance | 86a74e1eea6b19d7fe8c311eb77394a267e26432 | [
"MIT"
] | null | null | null | from flask import (Blueprint, abort, flash, redirect, render_template, request,
url_for)
from flask_login import current_user, login_required
from app import db
from app.billing.forms import CreateBillingForm
from app.models import Billing
from sqlalchemy import desc
billing = Blueprint('billing', ... | 27.660377 | 96 | 0.664734 | 365 | 2,932 | 5.178082 | 0.205479 | 0.040741 | 0.050265 | 0.033862 | 0.522222 | 0.457143 | 0.321164 | 0.27672 | 0.191534 | 0.191534 | 0 | 0.008204 | 0.210096 | 2,932 | 105 | 97 | 27.92381 | 0.807858 | 0 | 0 | 0.357143 | 0 | 0 | 0.118008 | 0.030014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.085714 | 0 | 0.257143 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7e0b8779363fd91f6026918cffc7f561df56bcf8 | 9,120 | py | Python | flickipedia/mashup.py | rfaulkner/Flickipedia | 1b53f30be4027901748a09c411d568c7148f4e4b | [
"BSD-2-Clause"
] | 1 | 2016-03-11T09:40:19.000Z | 2016-03-11T09:40:19.000Z | flickipedia/mashup.py | rfaulkner/Flickipedia | 1b53f30be4027901748a09c411d568c7148f4e4b | [
"BSD-2-Clause"
] | 1 | 2015-02-27T02:23:19.000Z | 2015-02-27T02:23:19.000Z | flickipedia/mashup.py | rfaulkner/Flickipedia | 1b53f30be4027901748a09c411d568c7148f4e4b | [
"BSD-2-Clause"
] | null | null | null | """
Author: Ryan Faulkner
Date: October 19th, 2014
Container for mashup logic.
"""
import json
import random
from sqlalchemy.orm.exc import UnmappedInstanceError
from flickipedia.redisio import DataIORedis
from flickipedia.model.articles import ArticleModel, ArticleContentModel
from flickipedia.config ... | 35.076923 | 78 | 0.607346 | 1,086 | 9,120 | 4.89779 | 0.20442 | 0.072758 | 0.018049 | 0.023689 | 0.257191 | 0.196089 | 0.144952 | 0.079714 | 0.053394 | 0.020681 | 0 | 0.002191 | 0.299232 | 9,120 | 260 | 79 | 35.076923 | 0.830074 | 0.239474 | 0 | 0.178808 | 0 | 0 | 0.075888 | 0 | 0 | 0 | 0 | 0.003846 | 0 | 1 | 0.07947 | false | 0.013245 | 0.066225 | 0 | 0.205298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7e0be21835c15a9296a6ae0c119d0388d9169b45 | 240 | py | Python | docs/examples/slider_dimmer.py | SatoshiIwasada/BlueDot | e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a | [
"MIT"
] | 112 | 2017-03-27T17:23:17.000Z | 2022-03-13T09:51:43.000Z | docs/examples/slider_dimmer.py | SatoshiIwasada/BlueDot | e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a | [
"MIT"
] | 109 | 2017-03-29T11:19:54.000Z | 2022-02-03T14:18:15.000Z | docs/examples/slider_dimmer.py | SatoshiIwasada/BlueDot | e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a | [
"MIT"
] | 40 | 2017-03-30T23:23:27.000Z | 2022-01-21T17:09:11.000Z | from bluedot import BlueDot
from gpiozero import PWMLED
from signal import pause
def set_brightness(pos):
brightness = (pos.y + 1) / 2
led.value = brightness
led = PWMLED(27)
bd = BlueDot()
bd.when_moved = set_brightness
pause()
| 17.142857 | 32 | 0.725 | 35 | 240 | 4.885714 | 0.571429 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0.1875 | 240 | 13 | 33 | 18.461538 | 0.85641 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fd665b1231aab43a664a3eab839a54a833e10f79 | 3,144 | py | Python | web/env/lib/python3.6/site-packages/test/file/test_includer.py | Conbrown100/webfortune | 779026d064498d36ddeba07e06cc744fb335ceb6 | [
"Apache-2.0"
] | 8 | 2015-07-30T16:19:18.000Z | 2021-08-10T21:00:47.000Z | web/env/lib/python3.6/site-packages/test/file/test_includer.py | Conbrown100/webfortune | 779026d064498d36ddeba07e06cc744fb335ceb6 | [
"Apache-2.0"
] | 3 | 2015-01-09T13:53:55.000Z | 2017-06-05T17:39:46.000Z | web/env/lib/python3.6/site-packages/test/file/test_includer.py | Conbrown100/webfortune | 779026d064498d36ddeba07e06cc744fb335ceb6 | [
"Apache-2.0"
] | 6 | 2015-01-09T13:47:15.000Z | 2020-12-25T14:09:41.000Z | import os
from tempfile import TemporaryDirectory
import codecs
import logging
from grizzled.file.includer import *
from grizzled.os import working_directory
from grizzled.text import strip_margin
import pytest
@pytest.fixture
def log():
return logging.getLogger('test')
def test_simple(log):
outer = '''|Firs... | 29.383178 | 70 | 0.515585 | 366 | 3,144 | 4.363388 | 0.215847 | 0.050094 | 0.075141 | 0.048842 | 0.582968 | 0.579837 | 0.534126 | 0.534126 | 0.507201 | 0.507201 | 0 | 0.016451 | 0.361959 | 3,144 | 106 | 71 | 29.660377 | 0.779661 | 0 | 0 | 0.5 | 0 | 0 | 0.294287 | 0.009702 | 0 | 0 | 0 | 0 | 0.036585 | 1 | 0.060976 | false | 0 | 0.097561 | 0.012195 | 0.170732 | 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 |
fd6a627b6084b5a56d9fe3161a2d00c62052ed2a | 8,850 | py | Python | tbconnect/tests/test_views.py | praekeltfoundation/healthcheck | 3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba | [
"BSD-3-Clause"
] | null | null | null | tbconnect/tests/test_views.py | praekeltfoundation/healthcheck | 3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba | [
"BSD-3-Clause"
] | 23 | 2020-07-16T15:40:35.000Z | 2021-12-13T13:59:30.000Z | tbconnect/tests/test_views.py | praekeltfoundation/healthcheck | 3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba | [
"BSD-3-Clause"
] | 1 | 2021-02-24T04:58:40.000Z | 2021-02-24T04:58:40.000Z | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Permission
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from tbconnect.models import TBCheck, TBTest
from userprofile.models import Hea... | 37.184874 | 84 | 0.568701 | 862 | 8,850 | 5.697216 | 0.171694 | 0.085522 | 0.044797 | 0.022806 | 0.598452 | 0.571981 | 0.545917 | 0.537161 | 0.519039 | 0.486663 | 0 | 0.035163 | 0.312316 | 8,850 | 237 | 85 | 37.341772 | 0.771771 | 0.048249 | 0 | 0.548223 | 0 | 0 | 0.129886 | 0 | 0 | 0 | 0 | 0 | 0.177665 | 1 | 0.040609 | false | 0 | 0.050761 | 0 | 0.116751 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd6abf4d61e22150256649650adbe262b09e0720 | 1,350 | py | Python | code/runibm1.py | jrod2699/CS159-NLP-Final-Project- | 76eea6149ab01d5e72232874398458ec9f35227f | [
"MIT"
] | null | null | null | code/runibm1.py | jrod2699/CS159-NLP-Final-Project- | 76eea6149ab01d5e72232874398458ec9f35227f | [
"MIT"
] | null | null | null | code/runibm1.py | jrod2699/CS159-NLP-Final-Project- | 76eea6149ab01d5e72232874398458ec9f35227f | [
"MIT"
] | null | null | null | import nltk
import random
from preprocess import compile_corpus
from nltk.translate import IBMModel1, AlignedSent, Alignment
def run(filename, iterations):
# global variables utilized in the assessment of the IBM Model
global ibm1
global corpus
# construct and modify corpus by adding the system alignm... | 31.395349 | 115 | 0.665926 | 178 | 1,350 | 4.97191 | 0.578652 | 0.037288 | 0.024859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009921 | 0.253333 | 1,350 | 42 | 116 | 32.142857 | 0.868056 | 0.442222 | 0 | 0 | 0 | 0 | 0.055633 | 0.036161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.173913 | 0 | 0.304348 | 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 |
fd6ea7420f474f3252a16e6bcdeebb2e566cf6e9 | 3,619 | py | Python | tests/test_models.py | DynamicGravitySystems/DGP | 5c0b566b846eb25f1e5ede64b2caaaa6a3352a29 | [
"Apache-2.0"
] | 7 | 2017-08-15T21:51:40.000Z | 2020-10-28T00:40:23.000Z | tests/test_models.py | DynamicGravitySystems/DGP | 5c0b566b846eb25f1e5ede64b2caaaa6a3352a29 | [
"Apache-2.0"
] | 63 | 2017-08-11T15:12:03.000Z | 2020-05-23T19:03:46.000Z | tests/test_models.py | cbertinato/DGP | 5bb8a30895365eccdd452970c45e248903fca8af | [
"Apache-2.0"
] | 4 | 2018-03-29T21:30:26.000Z | 2020-10-27T20:15:23.000Z | # -*- coding: utf-8 -*-
"""
Unit tests for new Project/Flight data classes, including JSON
serialization/de-serialization
"""
import time
from datetime import datetime
from typing import Tuple
from uuid import uuid4
from pathlib import Path
import pytest
import pandas as pd
from dgp.core import DataType
from dgp.cor... | 27.210526 | 80 | 0.698812 | 519 | 3,619 | 4.714836 | 0.219653 | 0.04904 | 0.031467 | 0.034736 | 0.200245 | 0.142215 | 0.107887 | 0.071925 | 0.071925 | 0.071925 | 0 | 0.0243 | 0.181266 | 3,619 | 132 | 81 | 27.416667 | 0.801552 | 0.066869 | 0 | 0.137931 | 0 | 0 | 0.051442 | 0.007136 | 0 | 0 | 0 | 0.007576 | 0.287356 | 1 | 0.103448 | false | 0 | 0.16092 | 0 | 0.287356 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd6f1c1a3069baecfcb5b723cf12a8c76710a022 | 1,312 | py | Python | tests/contract/test_concept.py | Informasjonsforvaltning/fdk-harvester-bff | 21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742 | [
"Apache-2.0"
] | null | null | null | tests/contract/test_concept.py | Informasjonsforvaltning/fdk-harvester-bff | 21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742 | [
"Apache-2.0"
] | 20 | 2020-09-23T10:04:48.000Z | 2022-03-14T07:47:45.000Z | tests/contract/test_concept.py | Informasjonsforvaltning/fdk-harvester-bff | 21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742 | [
"Apache-2.0"
] | null | null | null | """Test cases for concepts."""
from typing import Any
import pytest
import requests
@pytest.mark.contract
def test_get_concept_with_id(http_service: Any) -> None:
test_id = "a683bc63-2961-46af-9956-8a4a3f991cc6"
url = f"{http_service}/concepts/{test_id}"
result = requests.get(url=url, headers={"accept": ... | 42.322581 | 289 | 0.70503 | 169 | 1,312 | 5.384615 | 0.585799 | 0.092308 | 0.118681 | 0.03956 | 0.074725 | 0.074725 | 0 | 0 | 0 | 0 | 0 | 0.068266 | 0.17378 | 1,312 | 30 | 290 | 43.733333 | 0.771218 | 0.018293 | 0 | 0 | 0 | 0.043478 | 0.540562 | 0.081903 | 0 | 0 | 0 | 0 | 0.304348 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd71a2a6d5b1e71ced9722bf68301238887fd3c8 | 95,557 | py | Python | DexParse.py | liumengdeqq/DexParse | 769899e26f01700c690ed82c48790d1000efb5f1 | [
"Apache-2.0"
] | 16 | 2015-11-19T01:51:52.000Z | 2020-03-10T06:24:28.000Z | DexParse.py | CvvT/DexParse | 80c3f4a27e7163536f98584c5e7f7ec35a9451b8 | [
"Apache-2.0"
] | null | null | null | DexParse.py | CvvT/DexParse | 80c3f4a27e7163536f98584c5e7f7ec35a9451b8 | [
"Apache-2.0"
] | 22 | 2015-09-15T02:20:48.000Z | 2021-06-24T02:55:09.000Z | #! /usr/bin/python
# coding=utf-8
import struct
import os
import hashlib
import Instruction
Access_Flag = {'public': 1, 'private': 2, 'protected': 4, 'static': 8, 'final': 0x10,
'synchronized': 0x20, 'volatile': 0x40, 'bridge': 0x40, 'transient': 0x80,
'varargs': 0x80, 'native': ... | 40.958851 | 124 | 0.551744 | 11,335 | 95,557 | 4.548655 | 0.04914 | 0.019298 | 0.039566 | 0.050117 | 0.612347 | 0.546985 | 0.494424 | 0.455827 | 0.402335 | 0.355728 | 0 | 0.034288 | 0.329154 | 95,557 | 2,332 | 125 | 40.976415 | 0.770014 | 0.050891 | 0 | 0.509554 | 0 | 0 | 0.041912 | 0.001973 | 0 | 0 | 0.010353 | 0 | 0 | 1 | 0.099951 | false | 0.00049 | 0.00196 | 0.00245 | 0.154826 | 0.092602 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd7312c0409e17edc8a594caad14c3eebd8edb1f | 5,344 | py | Python | cookie.py | cppchriscpp/fortune-cookie | 46e433e1ae06a8ad742b252d642f8620bde9e38b | [
"MIT"
] | null | null | null | cookie.py | cppchriscpp/fortune-cookie | 46e433e1ae06a8ad742b252d642f8620bde9e38b | [
"MIT"
] | null | null | null | cookie.py | cppchriscpp/fortune-cookie | 46e433e1ae06a8ad742b252d642f8620bde9e38b | [
"MIT"
] | null | null | null | import markovify
import re
import nltk
import os
import urllib.request
from shutil import copyfile
# We need a temporary(ish) place to store the data we retrieve.
# If you are running this in a docker container you may want to mount a volume and use it.
# Also be sure to make a symlink between it and the assets direc... | 36.60274 | 165 | 0.698915 | 804 | 5,344 | 4.539801 | 0.309701 | 0.044384 | 0.011507 | 0.021096 | 0.340822 | 0.291233 | 0.256164 | 0.216712 | 0.165205 | 0.124658 | 0 | 0.014218 | 0.170846 | 5,344 | 145 | 166 | 36.855172 | 0.809524 | 0.281811 | 0 | 0.202247 | 0 | 0.011236 | 0.272727 | 0.10427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.067416 | 0 | 0.213483 | 0.089888 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd78ccdbc7f44ee790bb4e0e5bb66afdadb94039 | 3,329 | py | Python | 2021/05_2/solution.py | budavariam/advent_of_code | 0903bcbb0df46371b6a340ca2be007dce6470c66 | [
"MIT"
] | null | null | null | 2021/05_2/solution.py | budavariam/advent_of_code | 0903bcbb0df46371b6a340ca2be007dce6470c66 | [
"MIT"
] | null | null | null | 2021/05_2/solution.py | budavariam/advent_of_code | 0903bcbb0df46371b6a340ca2be007dce6470c66 | [
"MIT"
] | 1 | 2022-02-11T13:14:50.000Z | 2022-02-11T13:14:50.000Z | """ Advent of code 2021 day 05 / 2 """
import math
from os import path
import re
from collections import Counter
class Code(object):
def __init__(self, lines):
self.lines = lines
def printmap(self, dim, minx, miny, maxx, maxy):
for i in range(miny, maxy + 1):
ln = ""
... | 31.40566 | 82 | 0.393812 | 407 | 3,329 | 3.164619 | 0.243243 | 0.037267 | 0.043478 | 0.051242 | 0.307453 | 0.285714 | 0.236025 | 0.220497 | 0.169255 | 0.169255 | 0 | 0.043231 | 0.471913 | 3,329 | 105 | 83 | 31.704762 | 0.68942 | 0.080204 | 0 | 0.26506 | 0 | 0 | 0.036137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.048193 | 0 | 0.156627 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd7b422625225dcfe35545919a8429eaaa584545 | 378 | py | Python | Qualification/1-ForegoneSolution/Solution.py | n1try/codejam-2019 | 3cedc74915eca7384adaf8f6a68eeb21ada1beaf | [
"MIT"
] | null | null | null | Qualification/1-ForegoneSolution/Solution.py | n1try/codejam-2019 | 3cedc74915eca7384adaf8f6a68eeb21ada1beaf | [
"MIT"
] | null | null | null | Qualification/1-ForegoneSolution/Solution.py | n1try/codejam-2019 | 3cedc74915eca7384adaf8f6a68eeb21ada1beaf | [
"MIT"
] | null | null | null | import re
t = int(input())
for i in range(0, t):
chars = input()
m1, m2 = [None] * len(chars), [None] * len(chars)
for j in range(0, len(chars)):
m1[j] = "3" if chars[j] == "4" else chars[j]
m2[j] = "1" if chars[j] == "4" else "0"
s1 = ''.join(m1)
s2 = ''.join(m2)
print("C... | 29.076923 | 70 | 0.457672 | 64 | 378 | 2.703125 | 0.453125 | 0.138728 | 0.092486 | 0.104046 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070111 | 0.283069 | 378 | 13 | 70 | 29.076923 | 0.568266 | 0 | 0 | 0 | 0 | 0 | 0.060686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
fd7bd590362f7ad441cb4aaacc481be5a9c4d64c | 1,645 | py | Python | 1.imdbData.py | batucimenn/imdbScraperOnWaybackMachine2 | e6d92b5c794a2603a05e986b587a796d2a80fd8d | [
"MIT"
] | null | null | null | 1.imdbData.py | batucimenn/imdbScraperOnWaybackMachine2 | e6d92b5c794a2603a05e986b587a796d2a80fd8d | [
"MIT"
] | null | null | null | 1.imdbData.py | batucimenn/imdbScraperOnWaybackMachine2 | e6d92b5c794a2603a05e986b587a796d2a80fd8d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# Scraper movies data from Imdb
# In[ ]:
import csv
import pandas as pd
# Year range to collect data.
# In[ ]:
startYear=int(input("startYear: "))
finishYear=int(input("finishYear: "))
# File path to save. Ex: C:\Users\User\Desktop\newFile
# In[ ]:
filePath = input("F... | 26.532258 | 117 | 0.570821 | 201 | 1,645 | 4.60199 | 0.482587 | 0.058378 | 0.021622 | 0.041081 | 0.328649 | 0.328649 | 0.328649 | 0.328649 | 0.328649 | 0.224865 | 0 | 0.01279 | 0.239514 | 1,645 | 61 | 118 | 26.967213 | 0.726619 | 0.189666 | 0 | 0.166667 | 0 | 0 | 0.07803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.083333 | 0 | 0.083333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd7c26cf48ae51b52e75c459ca5537852b6f4936 | 2,680 | py | Python | effective_python/metaclass_property/descriptor_demo.py | ftconan/python3 | eb63ba33960072f792ecce6db809866b38c402f8 | [
"MIT"
] | 1 | 2018-12-19T22:07:56.000Z | 2018-12-19T22:07:56.000Z | effective_python/metaclass_property/descriptor_demo.py | ftconan/python3 | eb63ba33960072f792ecce6db809866b38c402f8 | [
"MIT"
] | 12 | 2020-03-14T05:32:26.000Z | 2022-03-12T00:08:49.000Z | effective_python/metaclass_property/descriptor_demo.py | ftconan/python3 | eb63ba33960072f792ecce6db809866b38c402f8 | [
"MIT"
] | 1 | 2018-12-19T22:08:00.000Z | 2018-12-19T22:08:00.000Z | """
@author: magician
@file: descriptor_demo.py
@date: 2020/1/14
"""
from weakref import WeakKeyDictionary
class Homework(object):
"""
Homework
"""
def __init__(self):
self._grade = 0
@property
def grade(self):
return self._grade
@grade.setter
def grade(self, valu... | 23.304348 | 65 | 0.596642 | 313 | 2,680 | 4.805112 | 0.210863 | 0.12766 | 0.095745 | 0.069814 | 0.422872 | 0.363697 | 0.360372 | 0.316489 | 0.115691 | 0.115691 | 0 | 0.026069 | 0.284328 | 2,680 | 114 | 66 | 23.508772 | 0.758081 | 0.462313 | 0 | 0.111111 | 0 | 0 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.027778 | 0.027778 | 0.444444 | 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 |
fd7c5d171d30796fbb3b1df9d4223d6476d4d998 | 3,584 | py | Python | afk-q-babyai/babyai/layers/aggrerator.py | IouJenLiu/AFK | db2b47bb3a5614b61766114b87f143e4a61a4a8d | [
"MIT"
] | 1 | 2022-03-12T03:10:29.000Z | 2022-03-12T03:10:29.000Z | afk-q-babyai/babyai/layers/aggrerator.py | IouJenLiu/AFK | db2b47bb3a5614b61766114b87f143e4a61a4a8d | [
"MIT"
] | null | null | null | afk-q-babyai/babyai/layers/aggrerator.py | IouJenLiu/AFK | db2b47bb3a5614b61766114b87f143e4a61a4a8d | [
"MIT"
] | null | null | null | import torch
import numpy as np
import torch.nn.functional as F
def masked_softmax(x, m=None, axis=-1):
'''
x: batch x time x hid
m: batch x time (optional)
'''
x = torch.clamp(x, min=-15.0, max=15.0)
if m is not None:
m = m.float()
x = x * m
e_x = torch.exp(x - torch.max(x... | 41.195402 | 103 | 0.624163 | 609 | 3,584 | 3.466338 | 0.180624 | 0.104216 | 0.132639 | 0.076741 | 0.409758 | 0.333965 | 0.2937 | 0.180957 | 0.147797 | 0.106585 | 0 | 0.023827 | 0.238839 | 3,584 | 87 | 104 | 41.195402 | 0.75 | 0.114676 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.083333 | false | 0 | 0.05 | 0 | 0.216667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd8175ceff7997ec372ad498a63c3ba3b5e8e259 | 1,066 | py | Python | tests/test_oas_cache.py | maykinmedia/zgw-consumers | 9b0759d9b7c3590b245004afd4c5e5474785bf91 | [
"MIT"
] | 2 | 2021-04-25T11:29:33.000Z | 2022-03-08T14:06:58.000Z | tests/test_oas_cache.py | maykinmedia/zgw-consumers | 9b0759d9b7c3590b245004afd4c5e5474785bf91 | [
"MIT"
] | 27 | 2020-04-01T07:33:02.000Z | 2022-03-14T09:11:05.000Z | tests/test_oas_cache.py | maykinmedia/zgw-consumers | 9b0759d9b7c3590b245004afd4c5e5474785bf91 | [
"MIT"
] | 2 | 2020-07-30T15:40:47.000Z | 2020-11-30T10:56:29.000Z | import threading
from zds_client.oas import schema_fetcher
def test_schema_fetch_twice(oas):
schema = oas.fetch()
assert isinstance(schema, dict)
assert oas.mocker.call_count == 1
oas.fetch()
# check that the cache is used
assert oas.mocker.call_count == 1
def test_clear_caches_in_betwee... | 21.755102 | 82 | 0.684803 | 148 | 1,066 | 4.77027 | 0.351351 | 0.076487 | 0.106232 | 0.134561 | 0.29745 | 0.263456 | 0.192635 | 0.192635 | 0.192635 | 0.192635 | 0 | 0.015777 | 0.227017 | 1,066 | 48 | 83 | 22.208333 | 0.841019 | 0.197936 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd81f57132ba4b8e36862c9d9eb8179dcba9623a | 4,165 | py | Python | src/uproot_browser/tree.py | amangoel185/uproot-browser | 8181913ac04d0318b05256923d8980d6d3acaa7f | [
"BSD-3-Clause"
] | 12 | 2022-03-18T11:47:26.000Z | 2022-03-25T13:57:08.000Z | src/uproot_browser/tree.py | amangoel185/uproot-browser | 8181913ac04d0318b05256923d8980d6d3acaa7f | [
"BSD-3-Clause"
] | 7 | 2022-03-18T11:40:36.000Z | 2022-03-29T22:15:01.000Z | src/uproot_browser/tree.py | amangoel185/uproot-browser | 8181913ac04d0318b05256923d8980d6d3acaa7f | [
"BSD-3-Clause"
] | 1 | 2022-03-21T14:37:07.000Z | 2022-03-21T14:37:07.000Z | """
Display tools for TTrees.
"""
from __future__ import annotations
import dataclasses
import functools
from pathlib import Path
from typing import Any, Dict
import uproot
from rich.console import Console
from rich.markup import escape
from rich.text import Text
from rich.tree import Tree
console = Console()
__al... | 25.090361 | 90 | 0.623049 | 514 | 4,165 | 4.910506 | 0.27821 | 0.085578 | 0.023772 | 0.030903 | 0.251585 | 0.173138 | 0.110539 | 0.110539 | 0.043582 | 0.043582 | 0 | 0.00063 | 0.237215 | 4,165 | 165 | 91 | 25.242424 | 0.791627 | 0.135414 | 0 | 0.221154 | 0 | 0 | 0.129199 | 0.032443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.096154 | 0.038462 | 0.355769 | 0.028846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd8681cae85c92327aba29d9f6d3628698abb698 | 1,811 | py | Python | frootspi_examples/launch/conductor.launch.py | SSL-Roots/FrootsPi | 3aff59342a9d3254d8b089b66aeeed59bcb66c7b | [
"Apache-2.0"
] | 2 | 2021-11-27T10:57:01.000Z | 2021-11-27T11:25:52.000Z | frootspi_examples/launch/conductor.launch.py | SSL-Roots/FrootsPi | 3aff59342a9d3254d8b089b66aeeed59bcb66c7b | [
"Apache-2.0"
] | 1 | 2018-07-31T13:29:57.000Z | 2018-07-31T13:36:50.000Z | frootspi_examples/launch/conductor.launch.py | SSL-Roots/FrootsPi | 3aff59342a9d3254d8b089b66aeeed59bcb66c7b | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Roots
#
# 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, softwa... | 34.826923 | 81 | 0.703479 | 197 | 1,811 | 6.314721 | 0.568528 | 0.048232 | 0.03135 | 0.025723 | 0.041801 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.219768 | 1,811 | 51 | 82 | 35.509804 | 0.874027 | 0.343457 | 0 | 0 | 0 | 0 | 0.144075 | 0.044331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd876869a60981b01094fa1c90ddae1cb851c885 | 1,639 | py | Python | src/vnf/l23filter/controllers/InitializeDbController.py | shield-h2020/vnsfs | 864bdd418d3910b86783044be94d2bdb07e95aec | [
"Apache-2.0"
] | 2 | 2018-11-06T17:55:56.000Z | 2021-02-09T07:40:17.000Z | src/vnf/l23filter/controllers/InitializeDbController.py | shield-h2020/vnsfs | 864bdd418d3910b86783044be94d2bdb07e95aec | [
"Apache-2.0"
] | null | null | null | src/vnf/l23filter/controllers/InitializeDbController.py | shield-h2020/vnsfs | 864bdd418d3910b86783044be94d2bdb07e95aec | [
"Apache-2.0"
] | 4 | 2018-03-28T18:06:26.000Z | 2021-07-17T00:33:55.000Z | import logging
from sqlalchemy import create_engine, event
from configuration import config as cnf
from helpers.DbHelper import on_connect, db_session, assert_database_type
from models import Base, Flow
# from models.depreciated import Metric
logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logg... | 26.015873 | 73 | 0.649786 | 185 | 1,639 | 5.594595 | 0.427027 | 0.123672 | 0.052174 | 0.054106 | 0.239614 | 0.185507 | 0.185507 | 0.185507 | 0.185507 | 0.185507 | 0 | 0.00081 | 0.246492 | 1,639 | 62 | 74 | 26.435484 | 0.837247 | 0.254423 | 0 | 0.133333 | 0 | 0 | 0.053719 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.166667 | 0 | 0.333333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd8a5381cdea04589d3919c507d39969d9014954 | 3,533 | py | Python | cdist/plugin.py | acerv/pytest-cdist | 24a3f0987c3bc2821b91374c93d6b1303a7aca81 | [
"MIT"
] | null | null | null | cdist/plugin.py | acerv/pytest-cdist | 24a3f0987c3bc2821b91374c93d6b1303a7aca81 | [
"MIT"
] | null | null | null | cdist/plugin.py | acerv/pytest-cdist | 24a3f0987c3bc2821b91374c93d6b1303a7aca81 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
cdist-plugin implementation.
Author:
Andrea Cervesato <andrea.cervesato@mailbox.org>
"""
import pytest
from cdist import __version__
from cdist.redis import RedisResource
from cdist.resource import ResourceError
def pytest_addoption(parser):
"""
Plugin configurations.
"""
... | 26.765152 | 85 | 0.601472 | 353 | 3,533 | 5.866856 | 0.31728 | 0.048286 | 0.041043 | 0.033317 | 0.184935 | 0.156929 | 0.133269 | 0.133269 | 0.090777 | 0.090777 | 0 | 0.003654 | 0.302859 | 3,533 | 131 | 86 | 26.969466 | 0.83719 | 0.16728 | 0 | 0.226667 | 0 | 0 | 0.139427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.053333 | 0 | 0.226667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd8a85c0cecb1f0067a9c558a9299006820a9bf0 | 2,851 | py | Python | superironic/utils.py | jimrollenhagen/superironic | 45f8c50a881a0728c3d86e0783f9ee6baa47559d | [
"Apache-2.0"
] | null | null | null | superironic/utils.py | jimrollenhagen/superironic | 45f8c50a881a0728c3d86e0783f9ee6baa47559d | [
"Apache-2.0"
] | null | null | null | superironic/utils.py | jimrollenhagen/superironic | 45f8c50a881a0728c3d86e0783f9ee6baa47559d | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 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 writin... | 30.98913 | 79 | 0.681866 | 366 | 2,851 | 5.177596 | 0.409836 | 0.044327 | 0.062797 | 0.039578 | 0.149868 | 0.138259 | 0.138259 | 0.092876 | 0.092876 | 0.092876 | 0 | 0.005477 | 0.231498 | 2,851 | 91 | 80 | 31.32967 | 0.859425 | 0.327955 | 0 | 0.083333 | 0 | 0 | 0.26049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.020833 | 0.041667 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd8bcd859196def3cab1defab94ee20606249351 | 22,340 | py | Python | torchreid/engine/image/classmemoryloss_QA.py | Arindam-1991/deep_reid | ab68d95c2229ef5b832a6a6b614a9b91e4984bd5 | [
"MIT"
] | 1 | 2021-03-27T17:27:47.000Z | 2021-03-27T17:27:47.000Z | torchreid/engine/image/classmemoryloss_QA.py | Arindam-1991/deep_reid | ab68d95c2229ef5b832a6a6b614a9b91e4984bd5 | [
"MIT"
] | null | null | null | torchreid/engine/image/classmemoryloss_QA.py | Arindam-1991/deep_reid | ab68d95c2229ef5b832a6a6b614a9b91e4984bd5 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
import numpy as np
import torch, sys
import os.path as osp
from torchreid import metrics
from torchreid.losses import TripletLoss, CrossEntropyLoss
from torchreid.losses import ClassMemoryLoss
from ..engine import Engine
from ..pretrainer impo... | 40.32491 | 159 | 0.555237 | 2,520 | 22,340 | 4.70119 | 0.169841 | 0.012408 | 0.013928 | 0.006077 | 0.287077 | 0.214147 | 0.186376 | 0.14299 | 0.112602 | 0.105512 | 0 | 0.016002 | 0.35103 | 22,340 | 553 | 160 | 40.39783 | 0.801145 | 0.191092 | 0 | 0.199495 | 0 | 0.007576 | 0.092797 | 0.002757 | 0 | 0 | 0 | 0 | 0.007576 | 1 | 0.020202 | false | 0 | 0.035354 | 0 | 0.070707 | 0.085859 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd8d82fd51795634599d592a12414f82293ec386 | 2,623 | py | Python | api/app/tests/weather_models/endpoints/test_models_endpoints.py | bcgov/wps | 71df0de72de9cd656dc9ebf8461ffe47cfb155f6 | [
"Apache-2.0"
] | 19 | 2020-01-31T21:51:31.000Z | 2022-01-07T14:40:03.000Z | api/app/tests/weather_models/endpoints/test_models_endpoints.py | bcgov/wps | 71df0de72de9cd656dc9ebf8461ffe47cfb155f6 | [
"Apache-2.0"
] | 1,680 | 2020-01-24T23:25:08.000Z | 2022-03-31T23:50:27.000Z | api/app/tests/weather_models/endpoints/test_models_endpoints.py | bcgov/wps | 71df0de72de9cd656dc9ebf8461ffe47cfb155f6 | [
"Apache-2.0"
] | 6 | 2020-04-28T22:41:08.000Z | 2021-05-05T18:16:06.000Z | """ Functional testing for /models/* endpoints.
"""
import os
import json
import importlib
import logging
import pytest
from pytest_bdd import scenario, given, then, when
from fastapi.testclient import TestClient
import app.main
from app.tests import load_sqlalchemy_response_from_json
from app.tests import load_json_fi... | 34.973333 | 110 | 0.733511 | 335 | 2,623 | 5.474627 | 0.325373 | 0.054526 | 0.039258 | 0.019629 | 0.081788 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001351 | 0.153641 | 2,623 | 74 | 111 | 35.445946 | 0.824775 | 0.139916 | 0 | 0 | 0 | 0 | 0.145966 | 0.023119 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.177778 | false | 0 | 0.244444 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd944074d8e83c269f766de8fed07825db678f3d | 8,123 | py | Python | COT/helpers/tests/test_fatdisk.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 81 | 2015-01-18T22:31:42.000Z | 2022-03-14T12:34:33.000Z | COT/helpers/tests/test_fatdisk.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 67 | 2015-01-05T15:24:39.000Z | 2021-08-16T12:44:58.000Z | COT/helpers/tests/test_fatdisk.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 20 | 2015-07-09T14:20:25.000Z | 2021-09-18T17:59:57.000Z | #!/usr/bin/env python
#
# fatdisk.py - Unit test cases for COT.helpers.fatdisk submodule.
#
# March 2015, Glenn F. Matthews
# Copyright (c) 2014-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIG... | 40.014778 | 79 | 0.596331 | 928 | 8,123 | 5.038793 | 0.227371 | 0.050043 | 0.023952 | 0.02438 | 0.55154 | 0.476048 | 0.442686 | 0.390077 | 0.334902 | 0.279299 | 0 | 0.006539 | 0.265789 | 8,123 | 202 | 80 | 40.212871 | 0.777498 | 0.172596 | 0 | 0.493243 | 0 | 0 | 0.169931 | 0.070804 | 0 | 0 | 0 | 0 | 0.121622 | 1 | 0.074324 | false | 0 | 0.047297 | 0 | 0.141892 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd97704e53ec2a3a2b53ad0c5d0eef703c39868d | 4,414 | py | Python | python/SessionCallbackPLSQL.py | synetcom/oracle-db-examples | e995ca265b93c0d6b7da9ad617994288b3a19a2c | [
"Apache-2.0"
] | 4 | 2019-10-26T06:21:32.000Z | 2021-02-15T15:28:02.000Z | python/SessionCallbackPLSQL.py | synetcom/oracle-db-examples | e995ca265b93c0d6b7da9ad617994288b3a19a2c | [
"Apache-2.0"
] | null | null | null | python/SessionCallbackPLSQL.py | synetcom/oracle-db-examples | e995ca265b93c0d6b7da9ad617994288b3a19a2c | [
"Apache-2.0"
] | 5 | 2019-10-26T06:21:31.000Z | 2022-03-10T12:47:13.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Sess... | 41.641509 | 79 | 0.705709 | 614 | 4,414 | 5.026059 | 0.267101 | 0.025275 | 0.034025 | 0.049903 | 0.501296 | 0.493195 | 0.480557 | 0.470188 | 0.434543 | 0.41348 | 0 | 0.003948 | 0.139329 | 4,414 | 105 | 80 | 42.038095 | 0.808371 | 0.516312 | 0 | 0.6 | 0 | 0 | 0.382634 | 0.138359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.018182 | 0.054545 | 0 | 0.054545 | 0.236364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd9b3eca720cfbb505d3feb4ca4a2f19b87529e1 | 536 | py | Python | mbrl/env/wrappers/gym_jump_wrapper.py | MaxSobolMark/mbrl-lib | bc8ccfe8a56b58d3ce5bae2c4ccdadd82ecdb594 | [
"MIT"
] | null | null | null | mbrl/env/wrappers/gym_jump_wrapper.py | MaxSobolMark/mbrl-lib | bc8ccfe8a56b58d3ce5bae2c4ccdadd82ecdb594 | [
"MIT"
] | null | null | null | mbrl/env/wrappers/gym_jump_wrapper.py | MaxSobolMark/mbrl-lib | bc8ccfe8a56b58d3ce5bae2c4ccdadd82ecdb594 | [
"MIT"
] | null | null | null | """Reward wrapper that gives rewards for positive change in z axis.
Based on MOPO: https://arxiv.org/abs/2005.13239"""
from gym import Wrapper
class JumpWrapper(Wrapper):
def __init__(self, env):
super(JumpWrapper, self).__init__(env)
self._z_init = self.env.sim.data.qpos[1]
def step(self... | 31.529412 | 67 | 0.654851 | 78 | 536 | 4.346154 | 0.551282 | 0.082596 | 0.064897 | 0.082596 | 0.112094 | 0.112094 | 0 | 0 | 0 | 0 | 0 | 0.033573 | 0.222015 | 536 | 16 | 68 | 33.5 | 0.779377 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd9b964182281e0d8725c664433f2162b4f057ea | 2,102 | py | Python | img.py | svh2811/Advanced-Lane-Finding | f451f26ef126efcbef711e8c4a14d28d24b08262 | [
"MIT"
] | null | null | null | img.py | svh2811/Advanced-Lane-Finding | f451f26ef126efcbef711e8c4a14d28d24b08262 | [
"MIT"
] | null | null | null | img.py | svh2811/Advanced-Lane-Finding | f451f26ef126efcbef711e8c4a14d28d24b08262 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import cv2
from thresholding import *
# list of lists
def plot_images_along_row(images):
fig = plt.figure()
rows = len(images)
cols = len(images[0])
i = 0
for row in range(rows):
for col in range(cols):
a = fig.add_subplot(row... | 22.602151 | 84 | 0.597526 | 281 | 2,102 | 4.309609 | 0.366548 | 0.039637 | 0.069364 | 0.084228 | 0.229562 | 0.047894 | 0.047894 | 0 | 0 | 0 | 0 | 0.054054 | 0.207897 | 2,102 | 92 | 85 | 22.847826 | 0.673273 | 0.040913 | 0 | 0 | 0 | 0 | 0.041278 | 0.019308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.090909 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd9c7ab39a034416b3b55dc333af7b177eebd1ee | 5,602 | py | Python | disease_predictor_backend/disease_prediction.py | waizshahid/Disease-Predictor | 2bf2e69631ddbf7ffce0b6c39adcb6816d4208b2 | [
"MIT"
] | null | null | null | disease_predictor_backend/disease_prediction.py | waizshahid/Disease-Predictor | 2bf2e69631ddbf7ffce0b6c39adcb6816d4208b2 | [
"MIT"
] | 7 | 2020-09-07T21:31:50.000Z | 2022-02-26T22:28:30.000Z | disease_predictor_backend/disease_prediction.py | waizshahid/Disease-Predictor | 2bf2e69631ddbf7ffce0b6c39adcb6816d4208b2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import flask
from flask import request, jsonify
import time
import sqlite3
import random
# import the necessary packages
from keras.preprocessing.image import img_to_array
from keras.models import load_model
from keras import backend
from imutils import build_montages
... | 30.950276 | 141 | 0.632453 | 734 | 5,602 | 4.762943 | 0.290191 | 0.040046 | 0.032037 | 0.040046 | 0.3627 | 0.320938 | 0.298055 | 0.197368 | 0.183352 | 0.15246 | 0 | 0.017665 | 0.252231 | 5,602 | 180 | 142 | 31.122222 | 0.816901 | 0.172974 | 0 | 0.233645 | 0 | 0.009346 | 0.263741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009346 | false | 0 | 0.121495 | 0 | 0.140187 | 0.084112 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd9eda7f958b9bb9b2b7af7adc0477c17f9fb5fc | 19,230 | py | Python | web/app.py | Luzkan/MessengerNotifier | 462c6b1a9aa0a29a0dd6b5fc77d0677c61962d5d | [
"Linux-OpenIB"
] | 4 | 2020-06-01T09:01:47.000Z | 2021-04-16T20:07:29.000Z | web/app.py | Luzkan/NotifAyy | 462c6b1a9aa0a29a0dd6b5fc77d0677c61962d5d | [
"Linux-OpenIB"
] | 20 | 2020-06-05T16:54:36.000Z | 2020-06-09T13:25:59.000Z | web/app.py | Luzkan/MessengerNotifier | 462c6b1a9aa0a29a0dd6b5fc77d0677c61962d5d | [
"Linux-OpenIB"
] | 2 | 2020-05-07T04:51:00.000Z | 2020-05-08T17:52:55.000Z | import logging
from flask import Flask, render_template, request, redirect, flash, session, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_login import UserMixin, LoginManager, login_user, logout_user
from datetime import datetime
from passlib.hash import sha256_crypt
import msnotifier.bot.siteMonitor as s... | 36.768642 | 168 | 0.5974 | 2,402 | 19,230 | 4.643214 | 0.166528 | 0.014525 | 0.019726 | 0.015063 | 0.358379 | 0.24944 | 0.194298 | 0.127141 | 0.083834 | 0.061777 | 0 | 0.008439 | 0.223557 | 19,230 | 523 | 169 | 36.768642 | 0.738531 | 0.249246 | 0 | 0.257764 | 0 | 0.006211 | 0.156078 | 0.020782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102484 | false | 0.034161 | 0.02795 | 0.021739 | 0.341615 | 0.006211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd9f2efde7a1d0ab6cab653c4c31ffe2c9cae398 | 5,741 | py | Python | odmlui/helpers.py | mpsonntag/odml-ui | bd1ba1b5a04e4409d1f5b05fc491411963ded1fd | [
"BSD-3-Clause"
] | 3 | 2017-03-06T17:00:45.000Z | 2020-05-05T20:59:28.000Z | odmlui/helpers.py | mpsonntag/odml-ui | bd1ba1b5a04e4409d1f5b05fc491411963ded1fd | [
"BSD-3-Clause"
] | 138 | 2017-02-27T17:08:32.000Z | 2021-02-10T14:06:45.000Z | odmlui/helpers.py | mpsonntag/odml-ui | bd1ba1b5a04e4409d1f5b05fc491411963ded1fd | [
"BSD-3-Clause"
] | 7 | 2017-03-07T06:39:18.000Z | 2020-04-19T12:54:51.000Z | """
The 'helpers' module provides various helper functions.
"""
import getpass
import json
import os
import subprocess
import sys
from odml import fileio
from odml.dtypes import default_values
from odml.tools.parser_utils import SUPPORTED_PARSERS
from .treemodel import value_model
try: # Python 3
from urllib.p... | 27.338095 | 82 | 0.659815 | 764 | 5,741 | 4.83377 | 0.315445 | 0.01733 | 0.009748 | 0.006499 | 0.058489 | 0.058489 | 0.058489 | 0.058489 | 0.058489 | 0.058489 | 0 | 0.003042 | 0.25553 | 5,741 | 209 | 83 | 27.4689 | 0.86102 | 0.351507 | 0 | 0.171717 | 0 | 0 | 0.053592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.030303 | 0.20202 | 0 | 0.414141 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fd9fb12d6a255983397f47fb91d956bce471d4bb | 3,511 | py | Python | mindspore/dataset/transforms/c_transforms.py | Xylonwang/mindspore | ea37dc76f0a8f0b10edd85c2ad545af44552af1e | [
"Apache-2.0"
] | 1 | 2020-06-17T07:05:45.000Z | 2020-06-17T07:05:45.000Z | mindspore/dataset/transforms/c_transforms.py | Xylonwang/mindspore | ea37dc76f0a8f0b10edd85c2ad545af44552af1e | [
"Apache-2.0"
] | null | null | null | mindspore/dataset/transforms/c_transforms.py | Xylonwang/mindspore | ea37dc76f0a8f0b10edd85c2ad545af44552af1e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 31.630631 | 111 | 0.621191 | 457 | 3,511 | 4.617068 | 0.407002 | 0.030332 | 0.020853 | 0.015166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014128 | 0.254059 | 3,511 | 110 | 112 | 31.918182 | 0.791523 | 0.608659 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.121212 | 0 | 0.363636 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fda32d9ef88615859faf1c308e9468dde8a656a0 | 2,264 | py | Python | cgatpipelines/tools/pipeline_docs/pipeline_rrbs/trackers/rrbsReport.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 49 | 2015-04-13T16:49:25.000Z | 2022-03-29T10:29:14.000Z | cgatpipelines/tools/pipeline_docs/pipeline_rrbs/trackers/rrbsReport.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 252 | 2015-04-08T13:23:34.000Z | 2019-03-18T21:51:29.000Z | cgatpipelines/tools/pipeline_docs/pipeline_rrbs/trackers/rrbsReport.py | kevinrue/cgat-flow | 02b5a1867253c2f6fd6b4f3763e0299115378913 | [
"MIT"
] | 22 | 2015-05-21T00:37:52.000Z | 2019-09-25T05:04:27.000Z | import re
from CGATReport.Tracker import *
from CGATReport.Utils import PARAMS as P
# get from config file
UCSC_DATABASE = "hg19"
EXPORTDIR = "export"
###################################################################
###################################################################
##############################... | 31.444444 | 149 | 0.518993 | 233 | 2,264 | 4.858369 | 0.416309 | 0.024735 | 0.063604 | 0.079505 | 0.198763 | 0.180212 | 0.150177 | 0.150177 | 0.150177 | 0.074205 | 0 | 0.008368 | 0.155477 | 2,264 | 71 | 150 | 31.887324 | 0.583682 | 0.069346 | 0 | 0.078947 | 0 | 0.026316 | 0.239234 | 0.017943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.078947 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fda439b250b37d77743740f40f14e6a0ae152586 | 512 | py | Python | leetcode/python/985_sum_of_even_number_after_queries.py | VVKot/leetcode-solutions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | 4 | 2019-04-22T11:57:36.000Z | 2019-10-29T09:12:56.000Z | leetcode/python/985_sum_of_even_number_after_queries.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | leetcode/python/985_sum_of_even_number_after_queries.py | VVKot/coding-competitions | 7d6e599b223d89a7861929190be715d3b3604fa4 | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def sumEvenAfterQueries(self,
A: List[int],
queries: List[List[int]]) -> List[int]:
even_sum = sum(num for num in A if not num & 1)
result = []
for val, idx in queries:
if not A[idx... | 26.947368 | 67 | 0.451172 | 63 | 512 | 3.603175 | 0.396825 | 0.088106 | 0.052863 | 0.079295 | 0.185022 | 0.185022 | 0.185022 | 0.185022 | 0.185022 | 0 | 0 | 0.010676 | 0.451172 | 512 | 18 | 68 | 28.444444 | 0.797153 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fda704c8c3598728280ac25d245978289f33459f | 1,540 | py | Python | camera/start.py | IbrahimAhmad65/pythonApp | 76c6e2a6de48d34b034bfc0e045cc345b90bf45c | [
"MIT"
] | null | null | null | camera/start.py | IbrahimAhmad65/pythonApp | 76c6e2a6de48d34b034bfc0e045cc345b90bf45c | [
"MIT"
] | null | null | null | camera/start.py | IbrahimAhmad65/pythonApp | 76c6e2a6de48d34b034bfc0e045cc345b90bf45c | [
"MIT"
] | null | null | null | #/bin/python3
import numpy as np
from PIL import Image
def processbad(array):
#arr = np.zeros([array.size(),array[0].size(),array[0][0].size])
arr = np.zeros([int(np.size(array)/8),
int(np.size(array[0])/8),3],
dtype=np.byte)
# print (arr)
counter = 0
count = 0
for i in array:
... | 26.101695 | 193 | 0.555844 | 231 | 1,540 | 3.666667 | 0.251082 | 0.011806 | 0.100354 | 0.070838 | 0.219599 | 0.199528 | 0.199528 | 0.167651 | 0.167651 | 0.167651 | 0 | 0.051121 | 0.275974 | 1,540 | 58 | 194 | 26.551724 | 0.70852 | 0.153896 | 0 | 0.384615 | 0 | 0 | 0.01932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fda7b7ab5e740804c9088eb3b79d539461e5afae | 1,290 | py | Python | esque/cli/commands/edit/topic.py | real-digital/esque | 0b779fc308ce8bce45c1903f36c33664b2e832e7 | [
"MIT"
] | 29 | 2019-05-10T21:12:38.000Z | 2021-08-24T08:09:49.000Z | esque/cli/commands/edit/topic.py | real-digital/esque | 0b779fc308ce8bce45c1903f36c33664b2e832e7 | [
"MIT"
] | 103 | 2019-05-17T07:21:41.000Z | 2021-12-02T08:29:00.000Z | esque/cli/commands/edit/topic.py | real-digital/esque | 0b779fc308ce8bce45c1903f36c33664b2e832e7 | [
"MIT"
] | 2 | 2019-05-28T06:45:14.000Z | 2019-11-21T00:33:15.000Z | import click
from esque import validation
from esque.cli.autocomplete import list_topics
from esque.cli.helpers import edit_yaml, ensure_approval
from esque.cli.options import State, default_options
from esque.cli.output import pretty_topic_diffs
from esque.resources.topic import copy_to_local
@click.command("topic"... | 34.864865 | 115 | 0.762016 | 182 | 1,290 | 5.17033 | 0.428571 | 0.057386 | 0.05101 | 0.057386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151938 | 1,290 | 36 | 116 | 35.833333 | 0.860146 | 0.126357 | 0 | 0 | 0 | 0 | 0.047834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.28 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fda8d40081b9fb4ec44129fb7abfaa7410ce0508 | 9,535 | py | Python | robocorp-python-ls-core/src/robocorp_ls_core/pluginmanager.py | anton264/robotframework-lsp | 6f8f89b88ec56b767f6d5e9cf0d3fb58847e5844 | [
"ECL-2.0",
"Apache-2.0"
] | 92 | 2020-01-22T22:15:29.000Z | 2022-03-31T05:19:16.000Z | robocorp-python-ls-core/src/robocorp_ls_core/pluginmanager.py | anton264/robotframework-lsp | 6f8f89b88ec56b767f6d5e9cf0d3fb58847e5844 | [
"ECL-2.0",
"Apache-2.0"
] | 604 | 2020-01-25T17:13:27.000Z | 2022-03-31T18:58:24.000Z | robocorp-python-ls-core/src/robocorp_ls_core/pluginmanager.py | anton264/robotframework-lsp | 6f8f89b88ec56b767f6d5e9cf0d3fb58847e5844 | [
"ECL-2.0",
"Apache-2.0"
] | 39 | 2020-02-06T00:38:06.000Z | 2022-03-15T06:14:19.000Z | # Original work Copyright 2018 Brainwy Software Ltda (Dual Licensed: LGPL / Apache 2.0)
# From https://github.com/fabioz/pyvmmonitor-core
# See ThirdPartyNotices.txt in the project root for license information.
# All modifications Copyright (c) Robocorp Technologies Inc.
# All rights reserved.
#
# Licensed under the Ap... | 35.446097 | 100 | 0.607971 | 1,184 | 9,535 | 4.734797 | 0.236486 | 0.026757 | 0.02426 | 0.021406 | 0.219765 | 0.169105 | 0.150375 | 0.130753 | 0.102212 | 0.102212 | 0 | 0.003644 | 0.309177 | 9,535 | 268 | 101 | 35.578358 | 0.847427 | 0.338332 | 0 | 0.288591 | 0 | 0 | 0.048852 | 0 | 0 | 0 | 0 | 0 | 0.033557 | 1 | 0.087248 | false | 0.040268 | 0.026846 | 0 | 0.221477 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdac411261e3837a075f2bf9d23c9a72e80c187a | 459 | py | Python | code/data_owner_1/get_connection.py | ClarkYan/msc-thesis | c4fbd901c2664aa7140e5e82fb322ed0f578761a | [
"Apache-2.0"
] | 7 | 2017-11-05T08:22:51.000Z | 2021-09-14T19:34:30.000Z | code/data_owner_1/get_connection.py | ClarkYan/msc-thesis | c4fbd901c2664aa7140e5e82fb322ed0f578761a | [
"Apache-2.0"
] | 1 | 2021-02-27T07:24:50.000Z | 2021-04-24T03:29:12.000Z | code/data_owner_1/get_connection.py | ClarkYan/msc-thesis | c4fbd901c2664aa7140e5e82fb322ed0f578761a | [
"Apache-2.0"
] | 3 | 2019-04-15T03:22:22.000Z | 2022-03-12T11:27:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Author: ClarkYAN -*-
import requests
def set_up_connection(url, sender):
# files = {'dataset': open(filename, 'rb')}
user_info = {'name': sender}
r = requests.post(url, data=user_info, headers={'Connection': 'close'})
if r.text == "success":
... | 27 | 75 | 0.625272 | 59 | 459 | 4.745763 | 0.711864 | 0.107143 | 0.114286 | 0.121429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00277 | 0.213508 | 459 | 16 | 76 | 28.6875 | 0.772853 | 0.237473 | 0 | 0 | 0 | 0 | 0.210983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
fdb047a38cb8eadeccbc08314dec72d4acb12c4f | 1,820 | py | Python | tools/malloc-exp/plot-histogram.py | scottviteri/verified-betrfs | 7af56c8acd943880cb19ba16d146c6a206101d9b | [
"BSD-2-Clause"
] | 15 | 2021-05-11T09:19:12.000Z | 2022-03-14T10:39:05.000Z | tools/malloc-exp/plot-histogram.py | scottviteri/verified-betrfs | 7af56c8acd943880cb19ba16d146c6a206101d9b | [
"BSD-2-Clause"
] | 3 | 2021-06-07T21:45:13.000Z | 2021-11-29T23:19:59.000Z | tools/malloc-exp/plot-histogram.py | scottviteri/verified-betrfs | 7af56c8acd943880cb19ba16d146c6a206101d9b | [
"BSD-2-Clause"
] | 7 | 2021-05-11T17:08:04.000Z | 2022-02-23T07:19:36.000Z | #!/usr/bin/env python3
# Copyright 2018-2021 VMware, Inc., Microsoft Inc., Carnegie Mellon University, ETH Zurich, and University of Washington
# SPDX-License-Identifier: BSD-2-Clause
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import re
#import json
def parse_one_histogram(line):
#retur... | 24.594595 | 120 | 0.581868 | 251 | 1,820 | 4.131474 | 0.398406 | 0.054002 | 0.026037 | 0.040501 | 0.04243 | 0.04243 | 0 | 0 | 0 | 0 | 0 | 0.017424 | 0.274725 | 1,820 | 73 | 121 | 24.931507 | 0.768182 | 0.153846 | 0 | 0 | 0 | 0 | 0.058824 | 0.028758 | 0 | 0 | 0 | 0 | 0.037736 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.169811 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdb2d4c9f5001e0fbebe90b3cb11e75763d20dd3 | 1,735 | py | Python | tests/extensions/aria_extension_tosca/conftest.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/extensions/aria_extension_tosca/conftest.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/extensions/aria_extension_tosca/conftest.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | 1 | 2020-06-16T15:13:06.000Z | 2020-06-16T15:13:06.000Z | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 35.408163 | 91 | 0.736023 | 239 | 1,735 | 5.297071 | 0.506276 | 0.104265 | 0.020537 | 0.025276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004828 | 0.164265 | 1,735 | 48 | 92 | 36.145833 | 0.868276 | 0.565994 | 0 | 0 | 0 | 0 | 0.191257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdb6180fad4a97a9bd7fd4c10c96bb8a853e03d5 | 5,487 | py | Python | tests/test_project.py | eruber/py_project_template | f0b12ab603e1277943f0323cbd0d8fb86fd04861 | [
"MIT"
] | null | null | null | tests/test_project.py | eruber/py_project_template | f0b12ab603e1277943f0323cbd0d8fb86fd04861 | [
"MIT"
] | null | null | null | tests/test_project.py | eruber/py_project_template | f0b12ab603e1277943f0323cbd0d8fb86fd04861 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test Project Template
The code below is derived from several locations:
REFERENCES:
REF1: https://docs.pytest.org/en/latest/contents.html
REF2: https://github.com/hackebrot/pytest-cookies
LOCATIONS
LOC1: https://github.com/audreyr/cook... | 32.467456 | 101 | 0.546382 | 587 | 5,487 | 4.971039 | 0.361158 | 0.031186 | 0.019191 | 0.017478 | 0.170665 | 0.131597 | 0.115147 | 0.087046 | 0.087046 | 0.087046 | 0 | 0.006821 | 0.171679 | 5,487 | 168 | 102 | 32.660714 | 0.635204 | 0.50483 | 0 | 0.171429 | 0 | 0 | 0.161688 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.114286 | false | 0.014286 | 0.142857 | 0 | 0.3 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdbd3757fbcb05b2b219ad506437967a7305ef32 | 3,583 | py | Python | event_handlers/voyager_event_handler.py | bigpizza/VoyagerTelegramBot | 8b1e3cbebe9041b0ca341ce4d5d9835f5e12b4d9 | [
"MIT"
] | null | null | null | event_handlers/voyager_event_handler.py | bigpizza/VoyagerTelegramBot | 8b1e3cbebe9041b0ca341ce4d5d9835f5e12b4d9 | [
"MIT"
] | null | null | null | event_handlers/voyager_event_handler.py | bigpizza/VoyagerTelegramBot | 8b1e3cbebe9041b0ca341ce4d5d9835f5e12b4d9 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from typing import Dict, Tuple
from curse_manager import CursesManager
from telegram import TelegramBot
class VoyagerEventHandler:
"""
A base class for all event handlers to inherit from.
To handle an incoming event from voyager application server, Most important method is... | 36.191919 | 116 | 0.597823 | 436 | 3,583 | 4.75 | 0.277523 | 0.047803 | 0.036214 | 0.023177 | 0.259778 | 0.259778 | 0.245292 | 0.210526 | 0.210526 | 0.167069 | 0 | 0.003248 | 0.312587 | 3,583 | 98 | 117 | 36.561224 | 0.837596 | 0.322076 | 0 | 0.333333 | 0 | 0 | 0.15821 | 0.050738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.395833 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |