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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17a347bd5164cd6a7614cc6077d50a8c68cb0c7e | 1,109 | py | Python | test_lib.py | DrakenWan/deeplearninglibrary | 0fb7d76f9220d1479c6ddadc2e6165590ab000eb | [
"Apache-2.0"
] | null | null | null | test_lib.py | DrakenWan/deeplearninglibrary | 0fb7d76f9220d1479c6ddadc2e6165590ab000eb | [
"Apache-2.0"
] | null | null | null | test_lib.py | DrakenWan/deeplearninglibrary | 0fb7d76f9220d1479c6ddadc2e6165590ab000eb | [
"Apache-2.0"
] | null | null | null | """
Tutorial reference: https://www.kdnuggets.com/2020/09/implementing-deep-learning-library-scratch-python.html
Original Library: https://github.com/parmeet/dll_numpy
Author: DrakenWan 2020
"""
import core as DL
import utilities
import numpy as np
if __name__ == "__main__":
batch_size ... | 39.607143 | 113 | 0.67899 | 142 | 1,109 | 5.105634 | 0.556338 | 0.041379 | 0.041379 | 0.044138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036322 | 0.205591 | 1,109 | 28 | 114 | 39.607143 | 0.786606 | 0.167719 | 0 | 0 | 0 | 0 | 0.030787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd587bc3d2baa172c3072e8e32527093a3a9f149 | 2,547 | py | Python | src/routes/dataNetwork.py | spaezsuarez/view-data-app | 6482b73eb39048e5dbdf133d4ccf29cc357dcb6f | [
"MIT"
] | 1 | 2021-05-28T17:01:17.000Z | 2021-05-28T17:01:17.000Z | src/routes/dataNetwork.py | spaezsuarez/view-data-app | 6482b73eb39048e5dbdf133d4ccf29cc357dcb6f | [
"MIT"
] | null | null | null | src/routes/dataNetwork.py | spaezsuarez/view-data-app | 6482b73eb39048e5dbdf133d4ccf29cc357dcb6f | [
"MIT"
] | null | null | null | from . import dataRoute
from flask import render_template, request
from utils import dataManagment
import dateutil
import datetime
@dataRoute.route('/head', methods=['POST'])
def create_head():
number = request.form['number']
df = dataManagment.data_frame_head(number)
return render_template('data.html', t... | 39.796875 | 82 | 0.725167 | 316 | 2,547 | 5.693038 | 0.199367 | 0.061145 | 0.070039 | 0.106726 | 0.480267 | 0.45025 | 0.413563 | 0.372429 | 0.372429 | 0.314619 | 0 | 0 | 0.122104 | 2,547 | 64 | 83 | 39.796875 | 0.804562 | 0.003141 | 0 | 0.230769 | 0 | 0 | 0.126872 | 0.008274 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.096154 | 0 | 0.403846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd5a208ee269d3bfedf85a940f895d881be68074 | 1,151 | py | Python | Chapter 4/05 - Real-life example - lazily evaluated attributes/lazy_class_attribute.py | moseskim/Expert-Python-Programming-Fourth-Edition | 5160f974deb2365597b7be9cc032f24bfa13471a | [
"MIT"
] | null | null | null | Chapter 4/05 - Real-life example - lazily evaluated attributes/lazy_class_attribute.py | moseskim/Expert-Python-Programming-Fourth-Edition | 5160f974deb2365597b7be9cc032f24bfa13471a | [
"MIT"
] | null | null | null | Chapter 4/05 - Real-life example - lazily evaluated attributes/lazy_class_attribute.py | moseskim/Expert-Python-Programming-Fourth-Edition | 5160f974deb2365597b7be9cc032f24bfa13471a | [
"MIT"
] | null | null | null | import OpenGL.GL as gl
from OpenGL.GL import shaders
class lazy_class_attribute(object):
def __init__(self, function):
self.fget = function
def __get__(self, obj, cls):
value = self.fget(obj or cls)
# note: 인스턴스가 아닌 클래스 객체에 저장한다.
# 클래스-레벨 또는 인스턴스-레벨 접근과 관계없다.
set... | 26.767442 | 77 | 0.592528 | 135 | 1,151 | 4.844444 | 0.518519 | 0.036697 | 0.055046 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017789 | 0.316247 | 1,151 | 42 | 78 | 27.404762 | 0.813215 | 0.112945 | 0 | 0.193548 | 0 | 0 | 0.312315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.354839 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd5a5f01afeebbef48ab0545bb48413999a63520 | 6,134 | py | Python | main.py | Lulzx/gittools | b4a1a4d7169a10af10079a3903b9108843e97385 | [
"MIT"
] | 4 | 2020-10-22T03:58:56.000Z | 2021-10-29T20:45:49.000Z | main.py | Lulzx/gittools | b4a1a4d7169a10af10079a3903b9108843e97385 | [
"MIT"
] | null | null | null | main.py | Lulzx/gittools | b4a1a4d7169a10af10079a3903b9108843e97385 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import os
import sys
import time
from itertools import islice
from uuid import uuid4
import emojis
from github import Github
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram import InlineQueryResultArticle, ParseMode
from teleg... | 31.45641 | 104 | 0.630747 | 745 | 6,134 | 5.044295 | 0.237584 | 0.022352 | 0.020756 | 0.034593 | 0.37041 | 0.32677 | 0.251464 | 0.234433 | 0.234433 | 0.204896 | 0 | 0.005352 | 0.238507 | 6,134 | 194 | 105 | 31.618557 | 0.795761 | 0.053962 | 0 | 0.293333 | 0 | 0 | 0.12364 | 0.013642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073333 | false | 0 | 0.08 | 0 | 0.186667 | 0.006667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd5b5440ec10bb3d894d2f6fb7dcd6426ce92c37 | 4,132 | py | Python | SnakeGame.py | captainpolar/snakegame | 018638875309f0b17a6dbbd5c3ff4f536058b844 | [
"MIT"
] | 1 | 2021-03-29T17:15:09.000Z | 2021-03-29T17:15:09.000Z | SnakeGame.py | captainpolar/snakegame | 018638875309f0b17a6dbbd5c3ff4f536058b844 | [
"MIT"
] | null | null | null | SnakeGame.py | captainpolar/snakegame | 018638875309f0b17a6dbbd5c3ff4f536058b844 | [
"MIT"
] | null | null | null | import pygame
import random
pygame.init()
white = (255, 255, 255)
black = (0, 0, 0)
yellow = (255, 255, 102)
red = (250, 0, 0) # Other nice red color: 213, 50, 80
green = (152, 251, 152)
blue = (30, 144, 255) # other nice combo: 50, 151, 213
dis_width = 800
dis_height = 600
dis = pygame.display.set... | 29.304965 | 104 | 0.526864 | 519 | 4,132 | 4.021195 | 0.235067 | 0.071874 | 0.053666 | 0.057499 | 0.444178 | 0.390513 | 0.336847 | 0.276473 | 0.276473 | 0.276473 | 0 | 0.056967 | 0.371249 | 4,132 | 140 | 105 | 29.514286 | 0.746343 | 0.090997 | 0 | 0.276596 | 0 | 0 | 0.02418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd5c8afbbd833cee9c288bc0007055dc079f69d8 | 3,335 | py | Python | MpSA-TRIP/BarcodeGenomeLibMain.py | wiw/pyMPFA | a72aa196859031b2194fb51f204a1ab938193aaa | [
"Unlicense"
] | null | null | null | MpSA-TRIP/BarcodeGenomeLibMain.py | wiw/pyMPFA | a72aa196859031b2194fb51f204a1ab938193aaa | [
"Unlicense"
] | null | null | null | MpSA-TRIP/BarcodeGenomeLibMain.py | wiw/pyMPFA | a72aa196859031b2194fb51f204a1ab938193aaa | [
"Unlicense"
] | null | null | null | #C:\Python27\python.exe
#!/usr/bin/env python
# encoding: utf-8
import os
# import subprocess
import SupportFunc as supp
import ReadIndexesFunc as rind
import CollectBcMutFunc as colb
import WriteFunc as wrt
import param
import picks
from TripMain_0_2 import Pdump
def main():
supp.setup_logging()
for name in ... | 60.636364 | 261 | 0.661469 | 401 | 3,335 | 5.418953 | 0.366584 | 0.044179 | 0.041417 | 0.055223 | 0.198343 | 0.146802 | 0.059365 | 0.043258 | 0.043258 | 0.043258 | 0 | 0.004459 | 0.193103 | 3,335 | 55 | 262 | 60.636364 | 0.803047 | 0.297151 | 0 | 0 | 0 | 0 | 0.166309 | 0.031801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.235294 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd5d9ea17d4a9ae541c6e6916ed6741c75882ac1 | 12,036 | py | Python | polyart/_input.py | IsaacTFM/pygrr-polyart | 7a8219cd93b5691ddca89b4fb46a4af7bc1e3456 | [
"Apache-2.0"
] | 4 | 2021-11-21T18:35:54.000Z | 2021-12-14T02:02:37.000Z | polyart/_input.py | IsaacTFM/pygrr-polyart | 7a8219cd93b5691ddca89b4fb46a4af7bc1e3456 | [
"Apache-2.0"
] | 3 | 2021-11-21T18:37:56.000Z | 2021-11-21T19:15:21.000Z | polyart/_input.py | IsaacTFM/pygrr-polyart | 7a8219cd93b5691ddca89b4fb46a4af7bc1e3456 | [
"Apache-2.0"
] | 1 | 2021-11-21T18:39:52.000Z | 2021-11-21T18:39:52.000Z | """
This file handles the input of PolyArt.
"""
# if this is the origin file (not imported)
if __name__ == "__main__":
# print the documentation
print(__doc__)
# add sysmessages module location to path
from sys import path
path.append('..')
# run sysmessages
import common.sysmessages
# im... | 27.990698 | 149 | 0.534064 | 1,456 | 12,036 | 4.337912 | 0.141484 | 0.056998 | 0.078531 | 0.040374 | 0.59943 | 0.522324 | 0.456935 | 0.456935 | 0.447435 | 0.433819 | 0 | 0.015282 | 0.325856 | 12,036 | 429 | 150 | 28.055944 | 0.763125 | 0.359172 | 0 | 0.522843 | 0 | 0 | 0.021991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060914 | false | 0.045685 | 0.020305 | 0 | 0.126904 | 0.005076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd5f550b799363cf152de68256f97f876bf2f1f2 | 1,486 | py | Python | biodada/alphabets.py | simomarsili/biodada | 642fb440d8a66a0413deb69c8623ea3b61d41678 | [
"BSD-3-Clause"
] | null | null | null | biodada/alphabets.py | simomarsili/biodada | 642fb440d8a66a0413deb69c8623ea3b61d41678 | [
"BSD-3-Clause"
] | null | null | null | biodada/alphabets.py | simomarsili/biodada | 642fb440d8a66a0413deb69c8623ea3b61d41678 | [
"BSD-3-Clause"
] | null | null | null | """Alphabet-related methods."""
import logging
import numpy
ALPHABETS = {
'protein': '-ACDEFGHIKLMNPQRSTVWY',
'dna': '-ACGT',
'rna': '-ACGU',
'protein_u': '-ACDEFGHIKLMNPQRSTVWYBZX',
'dna_u': '-ACGTRYMKWSBDHVN',
'rna_u': '-ACGURYMKWSBDHVN',
}
logger = logging.getLogger(__name__)
def check_al... | 28.576923 | 78 | 0.647376 | 179 | 1,486 | 5.273743 | 0.413408 | 0.067797 | 0.033898 | 0.057203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003445 | 0.218708 | 1,486 | 51 | 79 | 29.137255 | 0.809647 | 0.126514 | 0 | 0 | 0 | 0 | 0.129209 | 0.035239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0.027778 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd62a6bcee335bdbb5aaa3e5bf955b75d241b748 | 1,813 | py | Python | server/app.py | osteele/tidal-memories | afcd3c8900814577374bfd847ba05c12ca88f397 | [
"MIT"
] | 1 | 2018-07-24T20:19:52.000Z | 2018-07-24T20:19:52.000Z | server/app.py | osteele/tidal-memories | afcd3c8900814577374bfd847ba05c12ca88f397 | [
"MIT"
] | 2 | 2021-03-09T09:59:44.000Z | 2021-05-09T17:29:22.000Z | server/app.py | osteele/tidal-memories | afcd3c8900814577374bfd847ba05c12ca88f397 | [
"MIT"
] | null | null | null | import os
import gevent
import redis
from flask import Flask, render_template, send_from_directory
from flask_cors import CORS
from flask_restplus import Api
from flask_sockets import Sockets
from geventwebsocket.exceptions import WebSocketError
from .image_resource import api as images_api
from .thumbnails import SM... | 26.661765 | 77 | 0.629344 | 219 | 1,813 | 5.013699 | 0.342466 | 0.03643 | 0.043716 | 0.034608 | 0.045537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001499 | 0.264203 | 1,813 | 67 | 78 | 27.059701 | 0.821589 | 0.040816 | 0 | 0.042553 | 0 | 0 | 0.106567 | 0.022465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.212766 | 0.042553 | 0.382979 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd63313f347912b5d918aa4c501b628907905f8a | 3,045 | py | Python | batch_rl/multi_head/atari_helpers.py | alhamzah/batch_rl | 7f8d9ea0ba330cc0642515dcc44c2ad687c3a927 | [
"Apache-2.0"
] | null | null | null | batch_rl/multi_head/atari_helpers.py | alhamzah/batch_rl | 7f8d9ea0ba330cc0642515dcc44c2ad687c3a927 | [
"Apache-2.0"
] | null | null | null | batch_rl/multi_head/atari_helpers.py | alhamzah/batch_rl | 7f8d9ea0ba330cc0642515dcc44c2ad687c3a927 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 40.6 | 80 | 0.674877 | 435 | 3,045 | 4.597701 | 0.413793 | 0.0385 | 0.039 | 0.052 | 0.1095 | 0.0675 | 0.0675 | 0.0675 | 0 | 0 | 0 | 0.019815 | 0.221018 | 3,045 | 74 | 81 | 41.148649 | 0.823356 | 0.430213 | 0 | 0.085714 | 0 | 0 | 0.037304 | 0.013839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd63927a981ce679de4270308c480c8f49ea21fc | 2,358 | py | Python | data/gary/heart.py | isabellewei/deephealth | a226788561996e698b5f52b4b83683dcb3563ea5 | [
"MIT"
] | null | null | null | data/gary/heart.py | isabellewei/deephealth | a226788561996e698b5f52b4b83683dcb3563ea5 | [
"MIT"
] | null | null | null | data/gary/heart.py | isabellewei/deephealth | a226788561996e698b5f52b4b83683dcb3563ea5 | [
"MIT"
] | null | null | null | from time import time
from sklearn.preprocessing import StandardScaler
from sklearn import model_selection
from sklearn.model_selection import train_test_split, KFold, cross_val_score
from sklearn.metrics import classification_report,confusion_matrix,accuracy_score
from sklearn.tree import DecisionTreeClassifier
... | 34.173913 | 109 | 0.787956 | 339 | 2,358 | 5.250737 | 0.315634 | 0.036517 | 0.076404 | 0.02809 | 0.329213 | 0.307865 | 0.247191 | 0.223596 | 0.2 | 0.2 | 0 | 0.027936 | 0.104326 | 2,358 | 68 | 110 | 34.676471 | 0.814867 | 0 | 0 | 0.150943 | 0 | 0 | 0.017935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.245283 | 0 | 0.245283 | 0.226415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd664ca13e3a2c2338580dff837587436ec24e4f | 3,925 | py | Python | fitsmap/utils.py | ryanhausen/fitsmap | 07c1fcd44e2d2efed24607f3e866611a1be395d8 | [
"MIT"
] | 19 | 2021-06-24T13:57:59.000Z | 2022-02-02T04:45:23.000Z | fitsmap/utils.py | ryanhausen/fitsmap | 07c1fcd44e2d2efed24607f3e866611a1be395d8 | [
"MIT"
] | 38 | 2019-12-17T18:21:43.000Z | 2022-03-12T00:16:38.000Z | fitsmap/utils.py | ryanhausen/fitsmap | 07c1fcd44e2d2efed24607f3e866611a1be395d8 | [
"MIT"
] | 1 | 2021-06-24T10:53:15.000Z | 2021-06-24T10:53:15.000Z | # MIT License
# Copyright 2021 Ryan Hausen and contributers
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modif... | 28.035714 | 87 | 0.654777 | 569 | 3,925 | 4.400703 | 0.376098 | 0.032348 | 0.026358 | 0.028754 | 0.119808 | 0.104633 | 0.104633 | 0.104633 | 0.079073 | 0.079073 | 0 | 0.009447 | 0.244841 | 3,925 | 139 | 88 | 28.23741 | 0.835358 | 0.423185 | 0 | 0.028986 | 0 | 0 | 0.052315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0 | 0.130435 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd66ac3284bd0acf65bf00b9b9956f03b31e1d35 | 5,819 | py | Python | bibterm2dict/tresemo.py | madskinner/bibterm2dict | 93039125fb4eaf5640bf4c91d676607dd98bb974 | [
"MIT"
] | null | null | null | bibterm2dict/tresemo.py | madskinner/bibterm2dict | 93039125fb4eaf5640bf4c91d676607dd98bb974 | [
"MIT"
] | null | null | null | bibterm2dict/tresemo.py | madskinner/bibterm2dict | 93039125fb4eaf5640bf4c91d676607dd98bb974 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 29 10:49:22 2017
@author: marks
"""
# File: tree.py
# References:
# http://hg.python.org/cpython/file/4e32c450f438/Lib/tkinter/ttk.py
# http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_treeview.htm#M79
# http://svn.python.org/projects/python/branches/pep-0384/Demo/tkinter... | 39.053691 | 98 | 0.554906 | 698 | 5,819 | 4.545845 | 0.34957 | 0.050425 | 0.017649 | 0.009455 | 0.054207 | 0.054207 | 0.043492 | 0.027104 | 0.027104 | 0 | 0 | 0.013748 | 0.337515 | 5,819 | 149 | 99 | 39.053691 | 0.809339 | 0.218938 | 0 | 0 | 0 | 0 | 0.139432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096386 | false | 0 | 0.048193 | 0 | 0.204819 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd68af29a64b3d9ad5ee5bf60f1893c99d3b0c76 | 5,803 | py | Python | test/cnnl/op_test/test_multiline_views_graph.py | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | 20 | 2022-03-01T11:40:51.000Z | 2022-03-30T08:17:47.000Z | test/cnnl/op_test/test_multiline_views_graph.py | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | test/cnnl/op_test/test_multiline_views_graph.py | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | from __future__ import print_function
import sys
import os
import copy
import unittest
import logging
import random
# from unittest.main import main
import torch
from torch import nn
import torch_mlu.core.mlu_model as ct
cur_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(cur_dir + "/../../")
from ... | 33.350575 | 75 | 0.507496 | 806 | 5,803 | 3.465261 | 0.157568 | 0.029359 | 0.012889 | 0.046545 | 0.552095 | 0.465807 | 0.427855 | 0.420695 | 0.308271 | 0.270319 | 0 | 0.070468 | 0.359297 | 5,803 | 173 | 76 | 33.543353 | 0.680742 | 0.055489 | 0 | 0.323944 | 0 | 0 | 0.002752 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.028169 | false | 0 | 0.077465 | 0 | 0.126761 | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd6c528a553f5578be66448336398952d4309fa6 | 645 | py | Python | easy/53.Maximum_Subarray.py | Leesoar/leetcode | e566513fc0e7055155157798f06089299bd44fd2 | [
"Apache-2.0"
] | 2 | 2018-03-04T23:29:49.000Z | 2019-04-23T01:13:12.000Z | easy/53.Maximum_Subarray.py | Leesoar/leetcode | e566513fc0e7055155157798f06089299bd44fd2 | [
"Apache-2.0"
] | null | null | null | easy/53.Maximum_Subarray.py | Leesoar/leetcode | e566513fc0e7055155157798f06089299bd44fd2 | [
"Apache-2.0"
] | 1 | 2018-03-05T09:58:59.000Z | 2018-03-05T09:58:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Question:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
Example:
given the array [-2,1,-3,4,-1,2,1,-5,4],
the contiguous subarray [4,-1,2,1] has the largest sum = 6.
'''
class Solution:
def maxSubArra... | 23.035714 | 105 | 0.56124 | 96 | 645 | 3.6875 | 0.541667 | 0.067797 | 0.076271 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040359 | 0.308527 | 645 | 28 | 106 | 23.035714 | 0.753363 | 0.516279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd6d10559ed324300c492ea76a3b5dca3a2078f7 | 3,153 | py | Python | tests/test_docstring.py | cbillingham/docconvert | 2843f7446546ae90ba3f38e1246e69d208e0f053 | [
"BSD-3-Clause"
] | 8 | 2019-10-07T22:49:20.000Z | 2021-12-30T22:31:28.000Z | tests/test_docstring.py | cbillingham/docconvert | 2843f7446546ae90ba3f38e1246e69d208e0f053 | [
"BSD-3-Clause"
] | 5 | 2019-09-17T21:03:38.000Z | 2020-07-23T04:47:21.000Z | tests/test_docstring.py | cbillingham/docconvert | 2843f7446546ae90ba3f38e1246e69d208e0f053 | [
"BSD-3-Clause"
] | null | null | null | """Unit tests for Docstring."""
import docconvert
class TestDocstring(object):
def test_element_ordering(self):
docstring = docconvert.parser.Docstring()
docstring.add_element(("raw", "Docstring."))
docstring.add_return(kind="int")
docstring.add_raises(kind="ValueError")
d... | 43.791667 | 75 | 0.631779 | 329 | 3,153 | 5.890578 | 0.161094 | 0.162539 | 0.065015 | 0.074819 | 0.468524 | 0.163055 | 0.128999 | 0 | 0 | 0 | 0 | 0.010914 | 0.21535 | 3,153 | 71 | 76 | 44.408451 | 0.772433 | 0.007929 | 0 | 0.079365 | 0 | 0 | 0.136451 | 0 | 0 | 0 | 0 | 0 | 0.396825 | 1 | 0.079365 | false | 0 | 0.015873 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd6de39ebf958030d5c9ef03e542a73527be7547 | 4,890 | py | Python | preprocess.py | EMBEDDIA/morphological-comment-filtering | 450ecbdaf2672ea09a39476db91c210657ff9c6f | [
"MIT"
] | 1 | 2020-12-01T17:56:11.000Z | 2020-12-01T17:56:11.000Z | preprocess.py | matejklemen/morphological-comment-filtering | 450ecbdaf2672ea09a39476db91c210657ff9c6f | [
"MIT"
] | null | null | null | preprocess.py | matejklemen/morphological-comment-filtering | 450ecbdaf2672ea09a39476db91c210657ff9c6f | [
"MIT"
] | null | null | null | """ The following script is used to preprocess text once and cache it to a csv file. Currently, this means obtaining
the UPOS tags and universal features + renaming columns to a common format.
This is done because it's quite a long process and we do not want to do it every time we make a change. """
import pa... | 41.092437 | 160 | 0.660941 | 657 | 4,890 | 4.765601 | 0.347032 | 0.022996 | 0.032577 | 0.013414 | 0.069626 | 0.069626 | 0.035771 | 0.019802 | 0 | 0 | 0 | 0.002163 | 0.243558 | 4,890 | 118 | 161 | 41.440678 | 0.844282 | 0.218405 | 0 | 0 | 0 | 0.012346 | 0.169536 | 0.02755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.111111 | 0 | 0.160494 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd6ded5eb81a42427f646f06cfec5c9cfc641f63 | 4,685 | py | Python | util/callbacks.py | TobiasKoopmann/cobert | 279fc6ce938a81afa2b8f14e4cb20b13f842ff48 | [
"Apache-2.0"
] | null | null | null | util/callbacks.py | TobiasKoopmann/cobert | 279fc6ce938a81afa2b8f14e4cb20b13f842ff48 | [
"Apache-2.0"
] | null | null | null | util/callbacks.py | TobiasKoopmann/cobert | 279fc6ce938a81afa2b8f14e4cb20b13f842ff48 | [
"Apache-2.0"
] | null | null | null | import os
import abc
import json
import numpy as np
class Callback(abc.ABC):
def __init__(self):
pass
@abc.abstractmethod
def __call__(self, predictions, labels):
pass
class Evaluation(Callback):
def __init__(self, ks=(1, 5, 10), ignore_index: int = -100, n_samples_file: str = None)... | 40.387931 | 144 | 0.526147 | 558 | 4,685 | 4.259857 | 0.207885 | 0.082457 | 0.020194 | 0.033656 | 0.397139 | 0.288599 | 0.266723 | 0.266723 | 0.178376 | 0.152293 | 0 | 0.01542 | 0.349413 | 4,685 | 115 | 145 | 40.73913 | 0.764436 | 0.029669 | 0 | 0.313131 | 0 | 0.010101 | 0.044053 | 0.012996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10101 | false | 0.020202 | 0.040404 | 0.010101 | 0.191919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd6e02dadbfb92bc2040067fe4f4629a0b88329a | 4,436 | py | Python | titanic.py | techwizAJ/Titanic-comepetition-kaggle | 39a3d8d97a4401b0e12eefd7fbb07dde92147328 | [
"Apache-2.0"
] | null | null | null | titanic.py | techwizAJ/Titanic-comepetition-kaggle | 39a3d8d97a4401b0e12eefd7fbb07dde92147328 | [
"Apache-2.0"
] | null | null | null | titanic.py | techwizAJ/Titanic-comepetition-kaggle | 39a3d8d97a4401b0e12eefd7fbb07dde92147328 | [
"Apache-2.0"
] | null | null | null | """
# -*- coding: utf-8 -*-
@author: techwiz
Created on Sun May 27 14:47:20 2018
"""
import pandas as pd
train_set = pd.read_csv("train.csv")
test_set = pd.read_csv("test.csv")
""" Exploratory Data Analysis """
train_set['Sex'].value_counts()
train_set['Age'].value_counts()
train_set['Embarked'].value_counts()
trai... | 31.685714 | 119 | 0.772543 | 682 | 4,436 | 4.812317 | 0.234604 | 0.085314 | 0.040219 | 0.034126 | 0.557892 | 0.478976 | 0.379951 | 0.305911 | 0.288239 | 0.288239 | 0 | 0.017751 | 0.085663 | 4,436 | 140 | 120 | 31.685714 | 0.79142 | 0.085437 | 0 | 0.042553 | 0 | 0 | 0.125638 | 0.010725 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.042553 | 0.085106 | 0 | 0.085106 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd70054eb143582225de2963fca43fb0a5b2f887 | 1,301 | py | Python | scripts/sort-files/sort_files.py | toddnguyen47/saved-games | ca30e369c72f819b2bd87f2ade450bd6aa058f41 | [
"MIT"
] | null | null | null | scripts/sort-files/sort_files.py | toddnguyen47/saved-games | ca30e369c72f819b2bd87f2ade450bd6aa058f41 | [
"MIT"
] | null | null | null | scripts/sort-files/sort_files.py | toddnguyen47/saved-games | ca30e369c72f819b2bd87f2ade450bd6aa058f41 | [
"MIT"
] | null | null | null | import os
import heapq
import json
class SortFiles:
def __init__(self):
self._spell_dir = self._read_json()
self._heap = []
def execute(self):
self._heap = []
with os.scandir(self._spell_dir) as iter:
for entry in iter:
if entry.is_dir():
... | 27.680851 | 79 | 0.487317 | 138 | 1,301 | 4.297101 | 0.384058 | 0.067454 | 0.040472 | 0.043845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009847 | 0.297463 | 1,301 | 46 | 80 | 28.282609 | 0.63895 | 0.013067 | 0 | 0.060606 | 0 | 0 | 0.039753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0 | 0.333333 | 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 |
bd7412e497e9ca995fe87668255ac1e986b4ec36 | 4,585 | py | Python | rlo/src/ray_main.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 31 | 2021-09-09T16:09:55.000Z | 2022-02-20T02:15:19.000Z | rlo/src/ray_main.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 40 | 2021-08-06T14:30:08.000Z | 2022-01-19T08:49:52.000Z | rlo/src/ray_main.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 5 | 2021-08-06T11:20:31.000Z | 2022-01-07T19:39:40.000Z | # fmt: off
import cProfile
import os
import ray
from rlo import analytics
from rlo.config_utils import config_for_repetition, kwargs_from_config
from rlo.factory import seed_from_config, simul_search_curriculum_from_config, get_train_and_eval_exprs
from rlo.flags import make_config_for_scenario, make_parser, check_sav... | 59.545455 | 143 | 0.721047 | 672 | 4,585 | 4.669643 | 0.364583 | 0.022307 | 0.02167 | 0.020395 | 0.210644 | 0.119822 | 0.090504 | 0.0529 | 0.03123 | 0.03123 | 0 | 0.002428 | 0.191494 | 4,585 | 76 | 144 | 60.328947 | 0.844079 | 0.325409 | 0 | 0 | 0 | 0 | 0.135047 | 0.024081 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.022222 | false | 0.022222 | 0.2 | 0 | 0.222222 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd776a6674d87758862d2b05706f184ab21ca00d | 3,490 | py | Python | monero/wordlists/wordlist.py | massanchik/monero-python | 5699c26f6ba0a64f50ac065ebe0419daf01fd993 | [
"BSD-3-Clause"
] | 130 | 2019-03-22T01:50:38.000Z | 2022-03-30T11:34:12.000Z | monero/wordlists/wordlist.py | massanchik/monero-python | 5699c26f6ba0a64f50ac065ebe0419daf01fd993 | [
"BSD-3-Clause"
] | 64 | 2019-03-12T10:32:36.000Z | 2022-03-31T12:38:20.000Z | monero/wordlists/wordlist.py | massanchik/monero-python | 5699c26f6ba0a64f50ac065ebe0419daf01fd993 | [
"BSD-3-Clause"
] | 55 | 2019-03-22T01:50:50.000Z | 2022-03-28T02:38:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
from binascii import crc32
from six import with_metaclass
WORDLISTS = {}
_log = logging.getLogger(__name__)
class WordlistType(type):
def __new__(cls, name, bases, attrs):
if bases:
if 'language_name' not in attrs:
... | 31.160714 | 103 | 0.565616 | 446 | 3,490 | 4.29148 | 0.269058 | 0.027168 | 0.034483 | 0.029258 | 0.150993 | 0.094566 | 0.028213 | 0 | 0 | 0 | 0 | 0.030528 | 0.305444 | 3,490 | 111 | 104 | 31.441441 | 0.759076 | 0.105158 | 0 | 0.068493 | 0 | 0 | 0.107062 | 0.028311 | 0 | 0 | 0.009762 | 0 | 0 | 1 | 0.09589 | false | 0 | 0.041096 | 0.013699 | 0.273973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd78a71bbe18cc4f93cb82249b13ad78a464f21f | 3,165 | py | Python | BlenderScripts/process_mesh.py | razluta-unity/BlenderProcessUnity | d1d20f8b1910132c63cd73570c783a55c05fafe2 | [
"MIT"
] | 2 | 2020-11-24T06:10:44.000Z | 2021-09-13T11:57:22.000Z | BlenderScripts/process_mesh.py | razluta-unity/BlenderProcessUnity | d1d20f8b1910132c63cd73570c783a55c05fafe2 | [
"MIT"
] | null | null | null | BlenderScripts/process_mesh.py | razluta-unity/BlenderProcessUnity | d1d20f8b1910132c63cd73570c783a55c05fafe2 | [
"MIT"
] | 2 | 2020-12-03T07:48:48.000Z | 2021-06-09T20:18:26.000Z | import os
import argparse
import bpy
# Constants
FBX_EXTENSION = ".fbx"
BLENDER_ACTION_SELECT = "SELECT"
BLENDER_TYPE_MESH = "MESH"
BLENDER_MODIFIER_BEVEL = "BEVEL"
def get_args():
"""
A method to obtain the arguments that came with the triggered Python file - from the .bat file.
:rtype: object
:return: An objec... | 29.579439 | 101 | 0.766193 | 469 | 3,165 | 4.921109 | 0.294243 | 0.062392 | 0.019497 | 0.023397 | 0.063258 | 0.044194 | 0.044194 | 0.044194 | 0.044194 | 0.044194 | 0 | 0.000748 | 0.155134 | 3,165 | 106 | 102 | 29.858491 | 0.862378 | 0.278041 | 0 | 0.177419 | 0 | 0 | 0.09942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.112903 | 0 | 0.193548 | 0.145161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd7ba5bd647118022f742f767d54083d1e57c29a | 12,562 | py | Python | experiment_launcher.py | alekdimi/arms | f83a32caa8283789c61b59f53832149410be765b | [
"MIT"
] | 2 | 2021-06-15T09:41:45.000Z | 2021-09-08T18:30:44.000Z | experiment_launcher.py | alekdimi/arms | f83a32caa8283789c61b59f53832149410be765b | [
"MIT"
] | null | null | null | experiment_launcher.py | alekdimi/arms | f83a32caa8283789c61b59f53832149410be765b | [
"MIT"
] | null | null | null | import os
from absl import app, flags
import dataset
import networks
import tensorflow as tf
import tensorflow_probability as tfp
tfd = tfp.distributions
layers = tf.keras.layers
flags.DEFINE_enum('dataset', 'static_mnist', ['static_mnist', 'dynamic_mnist', 'fashion_mnist', 'omniglot'], 'Dataset to use.')
flags.DEF... | 38.891641 | 134 | 0.729979 | 1,751 | 12,562 | 4.915477 | 0.16562 | 0.036598 | 0.017892 | 0.013942 | 0.373766 | 0.314744 | 0.302428 | 0.282793 | 0.244685 | 0.225514 | 0 | 0.012976 | 0.165658 | 12,562 | 322 | 135 | 39.012422 | 0.808224 | 0.007881 | 0 | 0.266917 | 0 | 0 | 0.123354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022556 | false | 0 | 0.022556 | 0.003759 | 0.06391 | 0.007519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd7bd354d1693ae42a8a899d55fa9d11d8bad927 | 1,916 | py | Python | tests/test_wikipron/test_languagecodes.py | Alireza-Sampour/wikipron | ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d | [
"Apache-2.0"
] | null | null | null | tests/test_wikipron/test_languagecodes.py | Alireza-Sampour/wikipron | ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d | [
"Apache-2.0"
] | null | null | null | tests/test_wikipron/test_languagecodes.py | Alireza-Sampour/wikipron | ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d | [
"Apache-2.0"
] | null | null | null | import warnings
import iso639
import pytest
import wikipron
from data.src.codes import _get_language_categories, _get_language_sizes
from wikipron.languagecodes import LANGUAGE_CODES
from . import can_connect_to_wiktionary
# We handle languages with at least this number of pronunciation entries.
_MIN_LANGUAGE_SIZE ... | 35.481481 | 76 | 0.674322 | 230 | 1,916 | 5.421739 | 0.408696 | 0.044106 | 0.033681 | 0.035285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017458 | 0.25261 | 1,916 | 53 | 77 | 36.150943 | 0.853352 | 0.252088 | 0 | 0.2 | 0 | 0 | 0.123755 | 0.015647 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.057143 | false | 0 | 0.2 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd7e89a9c152d6c5a11c4d9af7357acb6500801c | 2,947 | py | Python | libs/DegradationModels.py | prasunroy/cnn-on-degraded-images | 85bb4c62a024e3766da3c4d2556e01c6e12e416a | [
"MIT"
] | 15 | 2018-10-01T20:54:13.000Z | 2021-10-09T10:40:21.000Z | libs/DegradationModels.py | prasunroy/cnn-on-degraded-images | 85bb4c62a024e3766da3c4d2556e01c6e12e416a | [
"MIT"
] | 1 | 2020-04-13T23:58:23.000Z | 2020-05-15T11:54:16.000Z | libs/DegradationModels.py | prasunroy/cnn-on-degraded-images | 85bb4c62a024e3766da3c4d2556e01c6e12e416a | [
"MIT"
] | 4 | 2018-11-22T09:44:29.000Z | 2019-09-17T23:37:40.000Z | # -*- coding: utf-8 -*-
"""
Degradation models.
Created on Thu May 24 11:00:00 2018
Author: Prasun Roy | CVPRU-ISICAL (http://www.isical.ac.in/~cvpr)
GitHub: https://github.com/prasunroy/cnn-on-degraded-images
"""
# imports
import cv2
import numpy
import random
# apply a degradation model on an image
def imdegrade... | 30.697917 | 74 | 0.554462 | 387 | 2,947 | 4.178295 | 0.343669 | 0.037106 | 0.032158 | 0.034632 | 0.284477 | 0.284477 | 0.239951 | 0.223871 | 0.223871 | 0.223871 | 0 | 0.044888 | 0.319647 | 2,947 | 95 | 75 | 31.021053 | 0.761596 | 0.214455 | 0 | 0.169492 | 0 | 0 | 0.044464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.050847 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd7f5d02897acbff32966f7928ccfc825cfa419a | 3,548 | py | Python | apartmentbot/services/listing_service.py | sgarfield/ApartmentBot | 327a47e879998fbb40bd26f84510467f4757d330 | [
"MIT"
] | null | null | null | apartmentbot/services/listing_service.py | sgarfield/ApartmentBot | 327a47e879998fbb40bd26f84510467f4757d330 | [
"MIT"
] | null | null | null | apartmentbot/services/listing_service.py | sgarfield/ApartmentBot | 327a47e879998fbb40bd26f84510467f4757d330 | [
"MIT"
] | null | null | null | """
apartmentbot.services.listing_service
"""
import logging
from dataclasses import dataclass
from typing import List
from dataclasses_json import dataclass_json
from apartmentbot.geolocation.geolocation import distance_finder, neighborhood_locator, place_locator
from apartmentbot.models import Listing, Place, Prefe... | 45.487179 | 101 | 0.698985 | 384 | 3,548 | 6.328125 | 0.255208 | 0.018519 | 0.021399 | 0.020576 | 0.054321 | 0.035391 | 0.035391 | 0.035391 | 0.035391 | 0 | 0 | 0 | 0.217587 | 3,548 | 77 | 102 | 46.077922 | 0.87536 | 0.152198 | 0 | 0.211538 | 0 | 0 | 0.070427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd7f8e09909844b7662e6b08100c7c6fbbff9197 | 6,016 | py | Python | stocky.py | Naphtha/stocky | 04e51b4270b28a1aa23597c07d67a2a99e4710cf | [
"MIT"
] | null | null | null | stocky.py | Naphtha/stocky | 04e51b4270b28a1aa23597c07d67a2a99e4710cf | [
"MIT"
] | null | null | null | stocky.py | Naphtha/stocky | 04e51b4270b28a1aa23597c07d67a2a99e4710cf | [
"MIT"
] | null | null | null | import requests
import json
BASE_URL = "https://api.stockfighter.io/ob/api/"
class StockMinion(object):
'''Handles all API related requests for stock/order functionality'''
def __init__(self, api_key, account, venue, stock):
# use sessions to persist the HTTP connection
# this will preve... | 30.231156 | 126 | 0.617686 | 765 | 6,016 | 4.658824 | 0.245752 | 0.032828 | 0.050505 | 0.058642 | 0.297419 | 0.228676 | 0.191077 | 0.156846 | 0.156846 | 0.15376 | 0 | 0.008874 | 0.269448 | 6,016 | 198 | 127 | 30.383838 | 0.802048 | 0.134641 | 0 | 0.258333 | 0 | 0 | 0.132112 | 0.045902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.016667 | 0.025 | 0 | 0.258333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd80d005cadf2946180d02a5ee8eb0ce0d0f3e91 | 6,481 | py | Python | crawlers/ucsc_old/ucsc/spiders/registrar_courses.py | coursegraph/CourseGraph | 9f05cd912b393ba14721411fe77f3856812c000f | [
"MIT"
] | 5 | 2018-07-01T15:48:11.000Z | 2020-07-31T17:06:10.000Z | crawlers/ucsc_old/ucsc/spiders/registrar_courses.py | coursegraph/CourseGraph | 9f05cd912b393ba14721411fe77f3856812c000f | [
"MIT"
] | 7 | 2018-07-09T21:17:19.000Z | 2018-07-25T17:05:33.000Z | crawlers/ucsc_old/ucsc/spiders/registrar_courses.py | coursegraph/CourseGraph | 9f05cd912b393ba14721411fe77f3856812c000f | [
"MIT"
] | 4 | 2018-07-01T19:45:23.000Z | 2019-03-17T21:12:03.000Z | # -*- coding: utf-8 -*-
import scrapy
import os
from ucsc.items import FacultyItem, ProgramStatementItem, CourseDescriptionItem
def path_components (path):
if '://' in path:
path = path.split('://')[1]
parts = path.split('/')
while parts and parts[0] == '':
parts = parts[1:]
while part... | 39.760736 | 117 | 0.583552 | 773 | 6,481 | 4.767141 | 0.182406 | 0.024695 | 0.052103 | 0.062687 | 0.43772 | 0.409498 | 0.354138 | 0.330258 | 0.263501 | 0.257531 | 0 | 0.003558 | 0.262768 | 6,481 | 162 | 118 | 40.006173 | 0.767685 | 0.067428 | 0 | 0.314961 | 0 | 0.015748 | 0.217305 | 0.054036 | 0 | 0 | 0 | 0 | 0.062992 | 1 | 0.094488 | false | 0.015748 | 0.023622 | 0 | 0.212598 | 0.062992 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd82c29e5bee15a3671a883151076960c6a72038 | 1,937 | py | Python | gradient_free_optimizers/optimizers/exp_opt/local_bayes_opt.py | Wollala/Gradient-Free-Optimizers | 8fb1608c264431b87f66fd2d233b76a0fa75316c | [
"MIT"
] | 1 | 2022-02-25T03:14:48.000Z | 2022-02-25T03:14:48.000Z | gradient_free_optimizers/optimizers/exp_opt/local_bayes_opt.py | Wollala/Gradient-Free-Optimizers | 8fb1608c264431b87f66fd2d233b76a0fa75316c | [
"MIT"
] | null | null | null | gradient_free_optimizers/optimizers/exp_opt/local_bayes_opt.py | Wollala/Gradient-Free-Optimizers | 8fb1608c264431b87f66fd2d233b76a0fa75316c | [
"MIT"
] | null | null | null | # Author: Simon Blanke
# Email: simon.blanke@yahoo.com
# License: MIT License
import time
import random
import numpy as np
from ..base_optimizer import BaseOptimizer
from ...search import Search
from ._sub_search_spaces import SubSearchSpaces
from ..smb_opt import BayesianOptimizer
class LocalBayesianOptimizer(Base... | 27.671429 | 82 | 0.665978 | 246 | 1,937 | 4.926829 | 0.341463 | 0.041254 | 0.049505 | 0.04703 | 0.107261 | 0.107261 | 0.054455 | 0 | 0 | 0 | 0 | 0.011636 | 0.245741 | 1,937 | 69 | 83 | 28.072464 | 0.817933 | 0.036655 | 0 | 0.044444 | 0 | 0 | 0.012889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.155556 | 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 |
bd83ed580ee241d7bccf7170f916c7c26cd0e7da | 2,235 | py | Python | storage.py | computer-micro-mangangement/cmm_hub | 1ec4ed8c86edcbbd5624396a4be1d6aa7e6132fb | [
"MIT"
] | null | null | null | storage.py | computer-micro-mangangement/cmm_hub | 1ec4ed8c86edcbbd5624396a4be1d6aa7e6132fb | [
"MIT"
] | null | null | null | storage.py | computer-micro-mangangement/cmm_hub | 1ec4ed8c86edcbbd5624396a4be1d6aa7e6132fb | [
"MIT"
] | null | null | null | import psutil
from appJar import gui
import config
import requests as req
import json
import platform
import sysInfo
app = gui(title="CMM Hub", showIcon=False)
navBarElements = []
navBarElementsCallName = []
currentContainer = ""
def get_size(bytes, suffix="B"):
"""
Scale bytes to its proper format
e.g:
... | 28.653846 | 88 | 0.630425 | 239 | 2,235 | 5.861925 | 0.464435 | 0.03212 | 0.045682 | 0.040685 | 0.189864 | 0.189864 | 0.135617 | 0.104211 | 0.104211 | 0.104211 | 0 | 0.025287 | 0.221477 | 2,235 | 77 | 89 | 29.025974 | 0.779885 | 0.039374 | 0 | 0.155172 | 0 | 0 | 0.100047 | 0.021606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.12069 | 0 | 0.327586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd884de362569f988f5fe329cd6525259b1ae410 | 1,840 | py | Python | lawliet/mono/resample.py | Ryuk17/lawliet | ba4734557260b255896707210fca3e2fff311e87 | [
"Apache-2.0"
] | 2 | 2021-04-20T03:51:32.000Z | 2021-06-16T11:48:06.000Z | lawliet/mono/resample.py | Ryuk17/lawliet | ba4734557260b255896707210fca3e2fff311e87 | [
"Apache-2.0"
] | null | null | null | lawliet/mono/resample.py | Ryuk17/lawliet | ba4734557260b255896707210fca3e2fff311e87 | [
"Apache-2.0"
] | null | null | null | """
@FileName: resample.py
@Description: Implement resample
@Author: Ryuk
@CreateDate: 2021/06/27
@LastEditTime: 2021/06/27
@LastEditors: Please set LastEditors
@Version: v0.1
"""
import numpy as np
import math
__all__ = [
"direct_interpolation",
"lagrange_interpolation",
"sine_interpolation",
]
def dir... | 23.589744 | 54 | 0.490761 | 264 | 1,840 | 3.382576 | 0.246212 | 0.015677 | 0.016797 | 0.020157 | 0.402016 | 0.402016 | 0.388578 | 0.320269 | 0.320269 | 0.320269 | 0 | 0.028621 | 0.37337 | 1,840 | 77 | 55 | 23.896104 | 0.74588 | 0.17337 | 0 | 0.54717 | 0 | 0 | 0.040486 | 0.014845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd8b0ea4d67316a57577ad9cd394adb4172f74c1 | 2,130 | py | Python | src/demo.py | lhcezx/Graph-FPN | 55eb9283a7df83e003c84eede65a2700bb9fa45c | [
"MIT"
] | 19 | 2021-11-16T05:32:45.000Z | 2022-01-27T09:29:50.000Z | src/demo.py | lhcezx/Graph-FPN | 55eb9283a7df83e003c84eede65a2700bb9fa45c | [
"MIT"
] | 1 | 2021-11-15T15:44:45.000Z | 2021-12-13T04:26:26.000Z | src/demo.py | lhcezx/Graph-FPN | 55eb9283a7df83e003c84eede65a2700bb9fa45c | [
"MIT"
] | 1 | 2022-01-04T14:10:58.000Z | 2022-01-04T14:10:58.000Z | import os
import zipfile
import tensorflow as tf
import tensorflow_datasets as tfds
import init_path
from configs.configs import parse_configs
from detection.utils.Label import *
from detection.utils.preprocess import *
from model.network import DecodePredictions
from model.get_model import backbone, models
config = p... | 39.444444 | 99 | 0.656338 | 258 | 2,130 | 5.193798 | 0.426357 | 0.023881 | 0.022388 | 0.035821 | 0.075373 | 0.075373 | 0.075373 | 0.075373 | 0.052239 | 0 | 0 | 0.011714 | 0.238498 | 2,130 | 54 | 100 | 39.444444 | 0.814427 | 0.02723 | 0 | 0 | 0 | 0.023256 | 0.080232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.232558 | 0 | 0.27907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd91ba13b85667cd92a61109fae15aca6df3f93b | 3,561 | py | Python | LoveDA/uda/baseline_train.py | edornd/ProDA | ffb092afbbde95e4ca29cb1ec199f9685f6601fb | [
"MIT"
] | null | null | null | LoveDA/uda/baseline_train.py | edornd/ProDA | ffb092afbbde95e4ca29cb1ec199f9685f6601fb | [
"MIT"
] | null | null | null | LoveDA/uda/baseline_train.py | edornd/ProDA | ffb092afbbde95e4ca29cb1ec199f9685f6601fb | [
"MIT"
] | null | null | null | import argparse
import os
import os.path as osp
import torch
import torch.nn as nn
import torch.optim as optim
from eval import evaluate
from ever.core.iterator import Iterator
from module.deeplabv2 import Deeplab
from torch.nn import functional as fn
from tqdm import tqdm
from data.loveda import LoveDALoader
from uti... | 33.914286 | 114 | 0.627352 | 450 | 3,561 | 4.744444 | 0.366667 | 0.018735 | 0.039344 | 0.028103 | 0.123653 | 0.104918 | 0.104918 | 0.104918 | 0.104918 | 0.104918 | 0 | 0.012126 | 0.258916 | 3,561 | 104 | 115 | 34.240385 | 0.796893 | 0.184499 | 0 | 0.117647 | 0 | 0 | 0.058435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.220588 | 0 | 0.235294 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd9906411d0902be3e6498e5a1a56da473448736 | 2,161 | py | Python | tests/tensorflow/pruning/test_flops_pruning.py | sarthakpati/nncf | 29ad62c664c1dd53b3c8c50fc001a1b36bd1e8ac | [
"Apache-2.0"
] | 1 | 2021-12-30T05:49:10.000Z | 2021-12-30T05:49:10.000Z | tests/tensorflow/pruning/test_flops_pruning.py | sarthakpati/nncf | 29ad62c664c1dd53b3c8c50fc001a1b36bd1e8ac | [
"Apache-2.0"
] | 1 | 2021-07-23T07:46:52.000Z | 2021-07-23T07:46:52.000Z | tests/tensorflow/pruning/test_flops_pruning.py | sarthakpati/nncf | 29ad62c664c1dd53b3c8c50fc001a1b36bd1e8ac | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2021 Intel Corporation
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... | 44.102041 | 96 | 0.745951 | 289 | 2,161 | 5.283737 | 0.415225 | 0.039293 | 0.060249 | 0.035363 | 0.310413 | 0.193844 | 0.193844 | 0.092993 | 0.092993 | 0.092993 | 0 | 0.045907 | 0.16335 | 2,161 | 48 | 97 | 45.020833 | 0.798673 | 0.258677 | 0 | 0 | 0 | 0 | 0.168561 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd99e09ac29cee3774d16f59b6db9c324075e704 | 9,812 | py | Python | HCI/emotions.py | shinkansan/2019-UGRP-DPoom | eedee93b47e068f22bf420140d869a43f7551876 | [
"Apache-2.0"
] | 33 | 2020-07-16T06:31:38.000Z | 2022-03-23T18:34:58.000Z | HCI/emotions.py | shinkansan/2019-UGRP-DPoom | eedee93b47e068f22bf420140d869a43f7551876 | [
"Apache-2.0"
] | 5 | 2020-08-27T08:06:21.000Z | 2022-02-23T12:34:09.000Z | HCI/emotions.py | shinkansan/2019-UGRP-DPoom | eedee93b47e068f22bf420140d869a43f7551876 | [
"Apache-2.0"
] | 10 | 2020-08-05T15:05:58.000Z | 2021-11-19T10:20:44.000Z | """
Dpoom Face Expression Windows 2019
"""
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtPrintSupport import *
import fall_body_1013 as fall_body
import os
import sys
import numpy as np
import argparse
import imutils
import time
i... | 30.190769 | 112 | 0.614248 | 1,078 | 9,812 | 5.457328 | 0.288497 | 0.043005 | 0.033996 | 0.015298 | 0.174061 | 0.128336 | 0.113038 | 0.096209 | 0.047935 | 0.031617 | 0 | 0.009662 | 0.261618 | 9,812 | 324 | 113 | 30.283951 | 0.802346 | 0.094884 | 0 | 0.134259 | 0 | 0 | 0.143987 | 0.04193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101852 | false | 0.018519 | 0.087963 | 0 | 0.217593 | 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 |
bd9a2a22106cfdf6f802047a7e11b687baf754c4 | 4,522 | py | Python | datasets/pasval_voc_writer.py | jiabaocui/SEGS | c03d3bcb6fdcc4e6e6e13767bed8eae754beb726 | [
"MIT"
] | null | null | null | datasets/pasval_voc_writer.py | jiabaocui/SEGS | c03d3bcb6fdcc4e6e6e13767bed8eae754beb726 | [
"MIT"
] | null | null | null | datasets/pasval_voc_writer.py | jiabaocui/SEGS | c03d3bcb6fdcc4e6e6e13767bed8eae754beb726 | [
"MIT"
] | null | null | null | import os
import random
import xml.etree.ElementTree as ET
import tensorflow as tf
def int64_feature(value):
"""Wrapper for inserting int64 features into Example proto.
"""
if not isinstance(value, list):
value = [value]
return tf.train.Feature(int64_list=tf.train.Int64List(value=value))
de... | 34.784615 | 103 | 0.623176 | 558 | 4,522 | 4.842294 | 0.268817 | 0.035529 | 0.044041 | 0.062176 | 0.280163 | 0.225759 | 0.225759 | 0.225759 | 0.225759 | 0.225759 | 0 | 0.021981 | 0.245467 | 4,522 | 129 | 104 | 35.054264 | 0.76993 | 0.102609 | 0 | 0.119048 | 0 | 0 | 0.158537 | 0.089597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.047619 | 0 | 0.214286 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd9ca71b402899675dbdc36257c37a8b3b2984d6 | 861 | py | Python | pelican/plugins/issues/__init__.py | GlowstoneMC/glowstonemc.github.io | 1d1a453251816ef90fb8aaa63a689c81aaad4848 | [
"Artistic-2.0"
] | 6 | 2016-07-30T00:44:10.000Z | 2021-07-09T02:24:36.000Z | pelican/plugins/issues/__init__.py | GlowstoneMC/glowstonemc.github.io | 1d1a453251816ef90fb8aaa63a689c81aaad4848 | [
"Artistic-2.0"
] | 16 | 2016-07-30T01:01:30.000Z | 2021-07-09T21:33:51.000Z | pelican/plugins/issues/__init__.py | GlowstoneMC/glowstonemc.github.io | 1d1a453251816ef90fb8aaa63a689c81aaad4848 | [
"Artistic-2.0"
] | 10 | 2015-01-21T19:57:43.000Z | 2017-09-01T22:15:21.000Z | import itertools
import re
from pelican import signals
ISSUE_REGEX = re.compile(r"([\s(])(#[\d]+)([\s),.])")
ISSUE_URL = "https://github.com/GlowstoneMC/Glowstone/issues/{}"
ISSUE_HTML = """{}<a href="{}">{}</a>{}"""
def process_content(article):
done_tags = set()
for start, tag, end in ISSUE_REGEX.findal... | 24.6 | 70 | 0.637631 | 107 | 861 | 4.943925 | 0.485981 | 0.079395 | 0.079395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001464 | 0.206736 | 861 | 34 | 71 | 25.323529 | 0.77306 | 0 | 0 | 0 | 0 | 0 | 0.119628 | 0.027875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd9d44c68b6bd8ea2a3e03df9da24659e42178bb | 17,295 | py | Python | athena/layers/commons.py | iou2much/athena | 156dfceb0267e8c105e5d040aac017e2d8b9ad9d | [
"Apache-2.0"
] | null | null | null | athena/layers/commons.py | iou2much/athena | 156dfceb0267e8c105e5d040aac017e2d8b9ad9d | [
"Apache-2.0"
] | null | null | null | athena/layers/commons.py | iou2much/athena | 156dfceb0267e8c105e5d040aac017e2d8b9ad9d | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright (C) 2019 ATHENA AUTHORS; Xiangang Li
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 34.179842 | 123 | 0.6244 | 2,131 | 17,295 | 4.855936 | 0.169404 | 0.030441 | 0.037688 | 0.020874 | 0.38017 | 0.310881 | 0.242076 | 0.22845 | 0.200812 | 0.179938 | 0 | 0.015778 | 0.263429 | 17,295 | 505 | 124 | 34.247525 | 0.79653 | 0.122637 | 0 | 0.256484 | 0 | 0 | 0.041311 | 0.001869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123919 | false | 0 | 0.011527 | 0.008646 | 0.242075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bd9d807e7a31d0445e4cb5f019e63d43a7bf4018 | 12,879 | py | Python | oscar/data/mars.py | IntelLabs/OSCAR | 25d1dea35727379117e11b7238b5a0d1ed19acad | [
"BSD-3-Clause"
] | 13 | 2021-02-12T18:41:53.000Z | 2022-01-14T07:17:15.000Z | oscar/data/mars.py | IntelLabs/OSCAR | 25d1dea35727379117e11b7238b5a0d1ed19acad | [
"BSD-3-Clause"
] | null | null | null | oscar/data/mars.py | IntelLabs/OSCAR | 25d1dea35727379117e11b7238b5a0d1ed19acad | [
"BSD-3-Clause"
] | 2 | 2021-03-05T18:27:23.000Z | 2021-03-05T23:16:09.000Z | #
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: BSD-3-Clause
#
import logging
from collections import Counter
import torch
from torch.utils.data import DataLoader
from torchvision.transforms import transforms as T
from torchvision.transforms import functional as TF
import pytorch_lightning as p... | 45.508834 | 202 | 0.601444 | 1,412 | 12,879 | 5.255666 | 0.20255 | 0.029646 | 0.040965 | 0.031263 | 0.415577 | 0.348875 | 0.322733 | 0.291066 | 0.252796 | 0.251853 | 0 | 0.025222 | 0.310428 | 12,879 | 282 | 203 | 45.670213 | 0.810382 | 0.074618 | 0 | 0.25 | 0 | 0 | 0.079855 | 0.005217 | 0 | 0 | 0 | 0.003546 | 0.004545 | 1 | 0.031818 | false | 0 | 0.095455 | 0.013636 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bda0ee2b60b3089f82bfd69b9afe911afcc77e80 | 4,454 | py | Python | dolfyn/tests/test_vs_nortek.py | jklymak/dolfyn | eea98fe0021886cf654e25293c385c5c3707ff8d | [
"BSD-3-Clause"
] | null | null | null | dolfyn/tests/test_vs_nortek.py | jklymak/dolfyn | eea98fe0021886cf654e25293c385c5c3707ff8d | [
"BSD-3-Clause"
] | null | null | null | dolfyn/tests/test_vs_nortek.py | jklymak/dolfyn | eea98fe0021886cf654e25293c385c5c3707ff8d | [
"BSD-3-Clause"
] | null | null | null | from dolfyn.tests import test_read_adp as tr
from dolfyn.tests import base
from dolfyn.rotate.api import rotate2
from numpy.testing import assert_allclose
import numpy as np
import scipy.io as sio
"""
Testing against velocity and bottom-track velocity data in Nortek mat files
exported from SignatureDeployment.
inst2... | 35.632 | 79 | 0.606646 | 642 | 4,454 | 3.990654 | 0.26324 | 0.052693 | 0.062451 | 0.074161 | 0.300156 | 0.233802 | 0.12178 | 0.088993 | 0.077283 | 0.056206 | 0 | 0.031147 | 0.250337 | 4,454 | 124 | 80 | 35.919355 | 0.736149 | 0.085317 | 0 | 0.051282 | 0 | 0 | 0.080245 | 0.006687 | 0 | 0 | 0 | 0 | 0.141026 | 1 | 0.064103 | false | 0 | 0.076923 | 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 |
bda33f238048fa796ed848c9125688fdcab82f49 | 1,331 | py | Python | backend/flaskr/formula.py | jyyang42/RobinOptionCalculator | be3f06f6ae54c7e2dd4badc258a9888e3e240a4a | [
"MIT"
] | 1 | 2020-11-19T19:47:48.000Z | 2020-11-19T19:47:48.000Z | backend/flaskr/formula.py | jyyang42/RobinOptionCalculater | be3f06f6ae54c7e2dd4badc258a9888e3e240a4a | [
"MIT"
] | 7 | 2020-06-23T07:07:10.000Z | 2020-08-24T23:43:53.000Z | backend/flaskr/formula.py | jyyang42/RobinOptionCalculater | be3f06f6ae54c7e2dd4badc258a9888e3e240a4a | [
"MIT"
] | 2 | 2020-08-25T02:45:10.000Z | 2020-11-19T19:47:38.000Z | import math
def get_d1(p0, X, t, sigma, Rho):
# P0 stock price 62
# X exercise Price 60
# t time to expiration days/365 40
# sigma Volatility 0.32
# Rho Risk-Free Rate 0.04
# d1 = {ln(62/60) + [0.04 + 0.5 * 0.32 ^ 2] * (40/365)} / 0.32 * sqrt(40/365)
a = math.log(p0/X) + (Rho + 0.5 * ... | 25.596154 | 81 | 0.552968 | 235 | 1,331 | 3.012766 | 0.251064 | 0.042373 | 0.088983 | 0.114407 | 0.34322 | 0.10452 | 0.10452 | 0.056497 | 0 | 0 | 0 | 0.123958 | 0.278738 | 1,331 | 52 | 82 | 25.596154 | 0.613542 | 0.180316 | 0 | 0 | 0 | 0 | 0.025854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0.090909 | 0.333333 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bda34ec056c93e4918c1bc75e8154a348bc2e5e2 | 932 | py | Python | bot/modules/magnet.py | AliAryanTech/Nyaa-Telegram-Bot | d1614ed218fd9f413d046eec61978df269b325b6 | [
"MIT"
] | 12 | 2020-12-01T04:40:37.000Z | 2022-01-22T14:19:04.000Z | bot/modules/magnet.py | AliAryanTech/Nyaa-Telegram-Bot | d1614ed218fd9f413d046eec61978df269b325b6 | [
"MIT"
] | null | null | null | bot/modules/magnet.py | AliAryanTech/Nyaa-Telegram-Bot | d1614ed218fd9f413d046eec61978df269b325b6 | [
"MIT"
] | 19 | 2021-02-09T19:20:59.000Z | 2022-03-18T12:05:08.000Z | from .get_response import nyaa_id, sukebei_id
from bot import NYAA, botname
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery
INVALID_TEXT = """
No ID found!
"""
@NYAA.on_message(filters.command(["magnet", f"magnet@{botname}"], prefixes ... | 40.521739 | 137 | 0.637339 | 107 | 932 | 5.439252 | 0.457944 | 0.075601 | 0.089347 | 0.068729 | 0.147766 | 0.147766 | 0.147766 | 0.147766 | 0.147766 | 0.147766 | 0 | 0.007102 | 0.244635 | 932 | 23 | 137 | 40.521739 | 0.819602 | 0 | 0 | 0 | 0 | 0 | 0.119649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
bda4133fe40f05627ed065666e33a64ba888ab8f | 18,060 | py | Python | fhir/resources/DSTU2/implementationguide.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 144 | 2019-05-08T14:24:43.000Z | 2022-03-30T02:37:11.000Z | fhir/resources/DSTU2/implementationguide.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 82 | 2019-05-13T17:43:13.000Z | 2022-03-30T16:45:17.000Z | fhir/resources/DSTU2/implementationguide.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 48 | 2019-04-04T14:14:53.000Z | 2022-03-30T06:07:31.000Z | # -*- coding: utf-8 -*-
"""
Profile: https://www.hl7.org/fhir/DSTU2/implementationguide.html
Release: DSTU2
Version: 1.0.2
Revision: 7202
"""
from typing import Any, Dict
from typing import List as ListType
from pydantic import Field, root_validator
from . import backboneelement, domainresource, fhirtypes
class Imp... | 34.334601 | 92 | 0.612901 | 1,916 | 18,060 | 5.748956 | 0.216597 | 0.060372 | 0.031775 | 0.025057 | 0.326464 | 0.271448 | 0.240309 | 0.208352 | 0.180209 | 0.180209 | 0 | 0.001418 | 0.297176 | 18,060 | 525 | 93 | 34.4 | 0.866383 | 0.155371 | 0 | 0.347044 | 0 | 0.002571 | 0.416461 | 0.023859 | 0 | 0 | 0 | 0 | 0.002571 | 1 | 0.002571 | false | 0 | 0.010283 | 0 | 0.154242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bda5691ceabca9d9b32498222c4155793f52475a | 2,325 | py | Python | src/mnkgame.py | isihya/minimax_algorithm_MNKgame | 9876c12d065422334d87bf24c6d82171c7ace89e | [
"MIT"
] | null | null | null | src/mnkgame.py | isihya/minimax_algorithm_MNKgame | 9876c12d065422334d87bf24c6d82171c7ace89e | [
"MIT"
] | null | null | null | src/mnkgame.py | isihya/minimax_algorithm_MNKgame | 9876c12d065422334d87bf24c6d82171c7ace89e | [
"MIT"
] | null | null | null | import numpy as np
from game import Game
class MNKgame(Game):
"""
https://en.wikipedia.org/wiki/M,n,k-game
If m=3, n=3, k=3. This is TicTakToe and default
"""
def __init__(self, n=3, m=3, k=3, field=None):
self.n = n
self.m = m
self.k = k
self.field = field
... | 28.012048 | 59 | 0.44129 | 324 | 2,325 | 3.114198 | 0.20679 | 0.048563 | 0.065411 | 0.107037 | 0.424182 | 0.420218 | 0.349851 | 0.328048 | 0.328048 | 0.296333 | 0 | 0.040335 | 0.434839 | 2,325 | 82 | 60 | 28.353659 | 0.727549 | 0.051613 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.030303 | 0 | 0.348485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bda5f88b1ed70dd6d4320c4922009e7031b24847 | 2,721 | py | Python | memoit/main/forms.py | Szymon-I/Memo-IT-App | f435331c4fbd68d34a5fb1d1f6b54117bab6b864 | [
"MIT"
] | null | null | null | memoit/main/forms.py | Szymon-I/Memo-IT-App | f435331c4fbd68d34a5fb1d1f6b54117bab6b864 | [
"MIT"
] | 14 | 2019-08-06T02:06:17.000Z | 2022-03-11T23:49:01.000Z | memoit/main/forms.py | Szymon-I/Memo-IT-App | f435331c4fbd68d34a5fb1d1f6b54117bab6b864 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .choices import *
from django.contrib.auth.forms import AuthenticationForm
from django.core.exceptions import ObjectDoesNotExist
from django.forms import ValidationError
# override basic au... | 37.791667 | 117 | 0.669974 | 307 | 2,721 | 5.905537 | 0.345277 | 0.061776 | 0.030888 | 0.041919 | 0.408163 | 0.408163 | 0.372863 | 0.372863 | 0.372863 | 0.372863 | 0 | 0.020456 | 0.209482 | 2,721 | 71 | 118 | 38.323944 | 0.822408 | 0.105108 | 0 | 0.215686 | 0 | 0 | 0.091433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.019608 | 0.137255 | 0 | 0.607843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bda7487b706cb9a94241cf9262532248e9f7dfec | 4,617 | py | Python | tests/export_traces_test.py | galizia-lab/pyview | 07bef637b0c60fae8830c1b3947e4a7bcd14bb2c | [
"BSD-3-Clause"
] | 2 | 2021-11-07T10:17:16.000Z | 2021-11-07T10:17:19.000Z | tests/export_traces_test.py | galizia-lab/pyview | 07bef637b0c60fae8830c1b3947e4a7bcd14bb2c | [
"BSD-3-Clause"
] | 5 | 2021-11-03T12:43:03.000Z | 2021-12-16T10:34:52.000Z | tests/export_traces_test.py | galizia-lab/pyview | 07bef637b0c60fae8830c1b3947e4a7bcd14bb2c | [
"BSD-3-Clause"
] | 1 | 2021-09-23T15:46:26.000Z | 2021-09-23T15:46:26.000Z | from common import initialize_test_yml_list_measurement
from view import VIEW
import pathlib as pl
import shutil
from view.python_core.ctvs import get_all_available_ctvs
from view.python_core.gdm_generation.gdm_data_classes import GDMFile
class TraceExporter(object):
def __init__(self):
super().__init__... | 27.981818 | 98 | 0.65627 | 566 | 4,617 | 4.922261 | 0.236749 | 0.031587 | 0.051687 | 0.045226 | 0.335607 | 0.208543 | 0.208543 | 0.208543 | 0.179828 | 0.179828 | 0 | 0.004638 | 0.252762 | 4,617 | 165 | 99 | 27.981818 | 0.802899 | 0.126922 | 0 | 0.225806 | 0 | 0 | 0.131118 | 0.029419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075269 | false | 0 | 0.064516 | 0 | 0.150538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bda7fb3776a5d1e908f28700d29753c520db4037 | 2,551 | py | Python | app/entries/forms.py | singh-prashant/blog | 7c4d2e2d6890d3f0b48741b1090e41a990cad1de | [
"MIT"
] | null | null | null | app/entries/forms.py | singh-prashant/blog | 7c4d2e2d6890d3f0b48741b1090e41a990cad1de | [
"MIT"
] | null | null | null | app/entries/forms.py | singh-prashant/blog | 7c4d2e2d6890d3f0b48741b1090e41a990cad1de | [
"MIT"
] | null | null | null | from wtforms import Form, StringField, TextAreaField,SelectField, FileField,HiddenField
from wtforms.validators import DataRequired, Optional, Email, URL, Length
from models import Entry, Tag
class TagField(StringField):
def _value(self):
if self.data:
#Display tags as a comma-separated list.
... | 31.109756 | 89 | 0.633477 | 301 | 2,551 | 5.265781 | 0.355482 | 0.083281 | 0.012618 | 0.016404 | 0.018927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003686 | 0.255586 | 2,551 | 82 | 90 | 31.109756 | 0.830964 | 0.104273 | 0 | 0.035714 | 0 | 0 | 0.044737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.053571 | 0 | 0.517857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdab079e812edf7ae50cfd1cbee57eb0f820a648 | 5,978 | py | Python | oidc/endpoints/authorize.py | didx-xyz/yoma-oidc-bridge | 7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb | [
"Apache-2.0"
] | null | null | null | oidc/endpoints/authorize.py | didx-xyz/yoma-oidc-bridge | 7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb | [
"Apache-2.0"
] | null | null | null | oidc/endpoints/authorize.py | didx-xyz/yoma-oidc-bridge | 7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb | [
"Apache-2.0"
] | null | null | null | from aca.client import ACAClient
from aries_cloudcontroller.aries_controller import AriesAgentController
from asgiref.sync import sync_to_async, async_to_sync
from django.utils import timezone
from datetime import timedelta
from aca.models import PresentationFactory
from oidc.utils.shortener import create_short_url
fr... | 42.7 | 146 | 0.761124 | 732 | 5,978 | 5.915301 | 0.202186 | 0.118476 | 0.053349 | 0.030023 | 0.564896 | 0.5 | 0.481986 | 0.469053 | 0.40485 | 0.381293 | 0 | 0.006485 | 0.148712 | 5,978 | 139 | 147 | 43.007194 | 0.84437 | 0.119438 | 0 | 0.423077 | 0 | 0 | 0.085366 | 0.009146 | 0 | 0 | 0 | 0.007194 | 0 | 1 | 0.028846 | false | 0 | 0.105769 | 0.009615 | 0.173077 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdae540df0f84f457e5404b4e6682360e4f75f83 | 5,163 | py | Python | psana/psana/graphqt/IVSpectrum.py | ZLLentz/lcls2 | 3edbea556779f619944ee9b97fb33cd815a19a37 | [
"BSD-3-Clause-LBNL"
] | null | null | null | psana/psana/graphqt/IVSpectrum.py | ZLLentz/lcls2 | 3edbea556779f619944ee9b97fb33cd815a19a37 | [
"BSD-3-Clause-LBNL"
] | null | null | null | psana/psana/graphqt/IVSpectrum.py | ZLLentz/lcls2 | 3edbea556779f619944ee9b97fb33cd815a19a37 | [
"BSD-3-Clause-LBNL"
] | null | null | null |
"""Class :py:class:`IVSpectrum` is a QWidget with histogram, two axes, and color bar
====================================================================================
Usage ::
# Run test: python lcls2/psana/psana/graphqt/IVSpectrum.py
from psana.graphqt.IVSpectrum import IVSpectrum
w = IVSpectrum()
... | 32.88535 | 114 | 0.650978 | 723 | 5,163 | 4.432918 | 0.26556 | 0.05897 | 0.104836 | 0.062403 | 0.313885 | 0.263027 | 0.206864 | 0.127925 | 0.042434 | 0.042434 | 0 | 0.026195 | 0.201433 | 5,163 | 156 | 115 | 33.096154 | 0.751152 | 0.131125 | 0 | 0.065217 | 0 | 0 | 0.042405 | 0.004712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141304 | false | 0 | 0.119565 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdb6b56e79718d96881ce563456b6ed24e5bfc35 | 2,912 | py | Python | saige/load_results.py | Nealelab/ukb_common | ee063971d48e15ea4c525d26cf6745930d7106dc | [
"MIT"
] | 8 | 2020-03-06T12:32:44.000Z | 2021-11-17T18:00:13.000Z | saige/load_results.py | Nealelab/ukb_common | ee063971d48e15ea4c525d26cf6745930d7106dc | [
"MIT"
] | 1 | 2021-11-02T20:09:05.000Z | 2021-11-03T13:10:05.000Z | saige/load_results.py | Nealelab/ukb_common | ee063971d48e15ea4c525d26cf6745930d7106dc | [
"MIT"
] | 3 | 2020-07-27T04:14:52.000Z | 2021-09-15T13:43:23.000Z | #!/usr/bin/env python3
__author__ = 'konradk'
from ukb_common import *
import argparse
import tempfile
PHENO_KEY_FIELDS = ('trait_type', 'phenocode', 'pheno_sex', 'coding', 'modifier')
def main(args):
hl.init(master=f'local[{args.n_threads}]',
log=hl.utils.timestamp_path(os.path.join(tempfile.gette... | 56 | 164 | 0.736607 | 404 | 2,912 | 5.007426 | 0.309406 | 0.066733 | 0.12605 | 0.044488 | 0.286209 | 0.176965 | 0.131488 | 0.131488 | 0.099852 | 0.037568 | 0 | 0.002368 | 0.129808 | 2,912 | 52 | 165 | 56 | 0.795975 | 0.007212 | 0 | 0 | 0 | 0 | 0.260809 | 0.023175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.076923 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdb72defd6c6f62fdddbb438cb6348c91bc60611 | 4,981 | py | Python | app/db/crud/recipeBewertung.py | baldur132/essensfindung | e1a8106d8a1de857340229a5fe36ca6910c55b35 | [
"MIT"
] | 1 | 2022-01-29T20:33:30.000Z | 2022-01-29T20:33:30.000Z | app/db/crud/recipeBewertung.py | baldur132/essensfindung | e1a8106d8a1de857340229a5fe36ca6910c55b35 | [
"MIT"
] | 2 | 2022-03-08T06:41:22.000Z | 2022-03-09T11:52:06.000Z | app/db/crud/recipeBewertung.py | baldur132/essensfindung | e1a8106d8a1de857340229a5fe36ca6910c55b35 | [
"MIT"
] | 6 | 2022-01-06T15:02:59.000Z | 2022-02-02T08:08:56.000Z | """All DB functions for the Bewertung table"""
from typing import List
from typing import Union
import sqlalchemy
from sqlalchemy.orm import Session
from db.base import BewertungRecipe
from db.base import Person
from db.crud.user import get_user_by_mail
from schemes import scheme_recipe
from schemes import scheme_use... | 34.116438 | 119 | 0.700863 | 598 | 4,981 | 5.704013 | 0.202341 | 0.041923 | 0.024626 | 0.032249 | 0.278804 | 0.164761 | 0.147464 | 0.122545 | 0.075344 | 0.075344 | 0 | 0.000257 | 0.218229 | 4,981 | 145 | 120 | 34.351724 | 0.875706 | 0.299739 | 0 | 0.131579 | 0 | 0.013158 | 0.076271 | 0.019068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.171053 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdb903aa24f6b049c642dc46fbe0678bd7b992ac | 35,706 | py | Python | modules/tbc_mage.py | ClawDoctor/TBC_GUI_sim | ebdb40ef348f5b00b10f6323f07260f47e8aab74 | [
"MIT"
] | null | null | null | modules/tbc_mage.py | ClawDoctor/TBC_GUI_sim | ebdb40ef348f5b00b10f6323f07260f47e8aab74 | [
"MIT"
] | null | null | null | modules/tbc_mage.py | ClawDoctor/TBC_GUI_sim | ebdb40ef348f5b00b10f6323f07260f47e8aab74 | [
"MIT"
] | null | null | null | import fns
import numpy as np
import sys
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
from .libs import tbc_mage_backend as bck
import importlib
importlib.reload(bck)
def read_stat_file(location, file, stats):
loc = '/'.join(location.split('/')[:-1])+'/'+file
with open(loc) as f:
#print('st... | 42.406176 | 183 | 0.651711 | 5,561 | 35,706 | 3.936342 | 0.073548 | 0.025582 | 0.019598 | 0.035496 | 0.721243 | 0.65651 | 0.639242 | 0.588305 | 0.555642 | 0.509137 | 0 | 0.028567 | 0.154904 | 35,706 | 841 | 184 | 42.456599 | 0.696868 | 0.074245 | 0 | 0.413649 | 0 | 0 | 0.239812 | 0.055903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019499 | false | 0 | 0.011142 | 0 | 0.041783 | 0.008357 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdb9e345a7126b6fc13fd0106c741d7ab14d3f93 | 36,682 | py | Python | PyPixel/SkyBlockStats.py | M4axim/PyPixel | 8f77773a6e4c1541a41c98fd8edb86b4bb2aba67 | [
"MIT"
] | 2 | 2021-03-25T16:52:22.000Z | 2021-09-22T16:42:57.000Z | PyPixel/SkyBlockStats.py | M4axim/PyPixel | 8f77773a6e4c1541a41c98fd8edb86b4bb2aba67 | [
"MIT"
] | null | null | null | PyPixel/SkyBlockStats.py | M4axim/PyPixel | 8f77773a6e4c1541a41c98fd8edb86b4bb2aba67 | [
"MIT"
] | 2 | 2021-03-23T18:40:19.000Z | 2022-01-03T18:17:08.000Z | # -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2021 plun1331
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mod... | 73.955645 | 120 | 0.733684 | 5,198 | 36,682 | 4.825702 | 0.076953 | 0.084835 | 0.11621 | 0.158468 | 0.638056 | 0.462805 | 0.320722 | 0.147385 | 0.102256 | 0.063028 | 0 | 0.000735 | 0.184287 | 36,682 | 495 | 121 | 74.105051 | 0.837578 | 0.052832 | 0 | 0.004728 | 0 | 0 | 0.321464 | 0.185294 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014184 | false | 0 | 0.004728 | 0 | 0.033097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdba7af199ee6c2c990e85c3f998b299c41d4413 | 604 | py | Python | nicos_virt_mlz/reseda/setups/guidehall.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_virt_mlz/reseda/setups/guidehall.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_virt_mlz/reseda/setups/guidehall.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'FRM II Neutron guide hall west infrastructure devices'
group = 'lowlevel'
devices = dict(
Sixfold = device('nicos.devices.generic.ManualSwitch',
description = 'Sixfold shutter status',
states = ('closed', 'open'),
pollinterval = 60,
maxage = 120,
),
Crane = d... | 27.454545 | 69 | 0.584437 | 63 | 604 | 5.603175 | 0.698413 | 0.050992 | 0.073654 | 0.141643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.298013 | 604 | 21 | 70 | 28.761905 | 0.804245 | 0 | 0 | 0.105263 | 0 | 0 | 0.395695 | 0.109272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdbb658871214d92211c98f23c493a5bef0ef8d6 | 2,366 | py | Python | papermerge/core/management/commands/checkaccess.py | MinchinWeb/papermerge | 8a5f73207413a3ea8989d277e140d448baa35ca4 | [
"Apache-2.0"
] | null | null | null | papermerge/core/management/commands/checkaccess.py | MinchinWeb/papermerge | 8a5f73207413a3ea8989d277e140d448baa35ca4 | [
"Apache-2.0"
] | null | null | null | papermerge/core/management/commands/checkaccess.py | MinchinWeb/papermerge | 8a5f73207413a3ea8989d277e140d448baa35ca4 | [
"Apache-2.0"
] | null | null | null | import logging
from django.core.management.base import BaseCommand
try:
from django_tenants.utils import get_tenant_model
except:
get_tenant_model = None
from django.db import connection
from papermerge.core.models import (
BaseTreeNode,
Access
)
from papermerge.core.auth import (
create_access_p... | 24.645833 | 73 | 0.554522 | 235 | 2,366 | 5.395745 | 0.353191 | 0.039432 | 0.033123 | 0.029968 | 0.070978 | 0.070978 | 0.070978 | 0 | 0 | 0 | 0 | 0.000653 | 0.352494 | 2,366 | 95 | 74 | 24.905263 | 0.827024 | 0 | 0 | 0.113924 | 0 | 0 | 0.136517 | 0.015638 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.075949 | 0 | 0.151899 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdbe3e3e964d3de239112acfd757c2553c93386b | 678 | py | Python | 11.dumbo-octopus/py/part1.py | rolandbernard/adventofcode-2021 | 9249815af62d0fcf79b71357330a1456ea3be1ed | [
"BSD-2-Clause"
] | null | null | null | 11.dumbo-octopus/py/part1.py | rolandbernard/adventofcode-2021 | 9249815af62d0fcf79b71357330a1456ea3be1ed | [
"BSD-2-Clause"
] | null | null | null | 11.dumbo-octopus/py/part1.py | rolandbernard/adventofcode-2021 | 9249815af62d0fcf79b71357330a1456ea3be1ed | [
"BSD-2-Clause"
] | null | null | null |
import sys
import numpy as np
raw = sys.stdin.read()
map = np.array([[c for c in l] for l in raw.split('\n') if len(l) != 0], dtype=int)
def energize(map, i, j):
if i >= 0 and j >= 0 and i < map.shape[0] and j < map.shape[1] and map[i, j] < 10:
map[i, j] += 1
if map[i, j] >= 10:
for d... | 26.076923 | 105 | 0.513274 | 130 | 678 | 2.669231 | 0.3 | 0.069164 | 0.072046 | 0.074928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057325 | 0.30531 | 678 | 25 | 106 | 27.12 | 0.679406 | 0 | 0 | 0 | 0 | 0 | 0.013314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 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 |
bdbe6b219cb1418af34e685a56c258fed902050b | 10,853 | py | Python | rlb/utils.py | jaekyeom/drop-bottleneck | 85b64ce72ac22af56e167da2817c295b79a03eb7 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-03-16T05:37:41.000Z | 2021-06-18T05:15:15.000Z | rlb/utils.py | jaekyeom/drop-bottleneck | 85b64ce72ac22af56e167da2817c295b79a03eb7 | [
"Apache-2.0",
"MIT"
] | null | null | null | rlb/utils.py | jaekyeom/drop-bottleneck | 85b64ce72ac22af56e167da2817c295b79a03eb7 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-06-23T08:15:16.000Z | 2021-08-30T14:13:58.000Z | from __future__ import print_function
from collections import OrderedDict, defaultdict
import numpy as np
import random
import copy
#from mpi_util import mpi_moments
#def fc(x, scope, nh, *, init_scale=1.0, init_bias=0.0):
# with tf.variable_scope(scope):
# nin = x.get_shape()[1].value
# w = tf.get_... | 36.789831 | 155 | 0.609417 | 1,501 | 10,853 | 4.223185 | 0.207195 | 0.017353 | 0.017984 | 0.014198 | 0.265184 | 0.189778 | 0.13693 | 0.118946 | 0.097492 | 0.097492 | 0 | 0.024378 | 0.262969 | 10,853 | 294 | 156 | 36.914966 | 0.768096 | 0.400719 | 0 | 0.04698 | 0 | 0 | 0.032415 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 1 | 0.127517 | false | 0.013423 | 0.053691 | 0.006711 | 0.281879 | 0.033557 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdc046b158b884fea2bcbaf2bb1204d34d3b4b00 | 4,565 | py | Python | pydtnsim/routing/cgr_utils.py | ducktec/pydtnsim | 916b0ebfa2b65b7a80af293dd4c39f862eadeae3 | [
"MIT"
] | 8 | 2018-12-11T17:39:44.000Z | 2021-05-07T10:24:03.000Z | pydtnsim/routing/cgr_utils.py | Elianelin/pydtnsim | 916b0ebfa2b65b7a80af293dd4c39f862eadeae3 | [
"MIT"
] | 13 | 2019-01-14T14:08:15.000Z | 2021-06-12T17:03:43.000Z | pydtnsim/routing/cgr_utils.py | Elianelin/pydtnsim | 916b0ebfa2b65b7a80af293dd4c39f862eadeae3 | [
"MIT"
] | 4 | 2019-03-20T15:12:40.000Z | 2022-02-22T06:16:24.000Z | """Module of commonly shared functions of various flavours of CGR."""
import math
def cgr_neighbor_function(contact_graph, node, destination, current_distance,
set_visited, suppressed_contacts, lookahead_time):
"""Neighbor function of CGR used by the Dijkstra algorithm.
Used to det... | 42.268519 | 79 | 0.660241 | 611 | 4,565 | 4.847791 | 0.289689 | 0.020257 | 0.016205 | 0.011479 | 0.01688 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001225 | 0.284556 | 4,565 | 107 | 80 | 42.663551 | 0.905695 | 0.645126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdc04f43fced1ed2108de24776b9c054870c3a6d | 785 | py | Python | rxbp/multicast/multicastobservers/mapmulticastobserver.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 24 | 2018-11-22T21:04:49.000Z | 2021-11-08T11:18:09.000Z | rxbp/multicast/multicastobservers/mapmulticastobserver.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2019-02-06T15:58:46.000Z | 2019-02-12T20:31:50.000Z | rxbp/multicast/multicastobservers/mapmulticastobserver.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:41:37.000Z | 2021-01-26T12:41:37.000Z | from dataclasses import dataclass
from typing import Callable
from rxbp.multicast.multicastobserver import MultiCastObserver
from rxbp.multicast.typing import MultiCastItem
@dataclass
class MapMultiCastObserver(MultiCastObserver):
source: MultiCastObserver
func: Callable[[MultiCastItem], MultiCastItem]
... | 27.068966 | 62 | 0.650955 | 88 | 785 | 5.704545 | 0.386364 | 0.079681 | 0.095618 | 0.067729 | 0.079681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26879 | 785 | 29 | 63 | 27.068966 | 0.874564 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 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 |
bdc402ae42475915911f7485b03af5085a350424 | 2,413 | py | Python | clean-up-pdf.py | spider-walker/reading-pdf-files-mongo | 3a7b5346bd8e5bedfba388ea9a0053cd8330d332 | [
"Apache-2.0"
] | null | null | null | clean-up-pdf.py | spider-walker/reading-pdf-files-mongo | 3a7b5346bd8e5bedfba388ea9a0053cd8330d332 | [
"Apache-2.0"
] | null | null | null | clean-up-pdf.py | spider-walker/reading-pdf-files-mongo | 3a7b5346bd8e5bedfba388ea9a0053cd8330d332 | [
"Apache-2.0"
] | null | null | null | with open('./data/data2017.txt') as f:
lines = f.readlines()
for ln in lines:
ln = ln.replace(',', '').replace(':', '').replace('int64', '') \
.replace('Name', '').replace('dtype', '').replace('/', ' ') \
.replace('object', '').replace('float64', ' ') \
.replace('NaN'... | 30.544304 | 98 | 0.426855 | 312 | 2,413 | 3.298077 | 0.166667 | 0.145773 | 0.09621 | 0.048591 | 0.637512 | 0.613217 | 0.613217 | 0.571429 | 0.501458 | 0.501458 | 0 | 0.064267 | 0.35516 | 2,413 | 78 | 99 | 30.935897 | 0.597044 | 0 | 0 | 0.66129 | 0 | 0 | 0.11811 | 0.012847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdc63bfed4044eff802e2301570d6c7de4fbc7e5 | 1,423 | py | Python | cv_workshops/7-day/9-clazz.py | afterloe/opencv-practice | 83d76132d004ebbc96d99d34a0fd3fc37a044f9f | [
"MIT"
] | 5 | 2020-03-13T07:34:30.000Z | 2021-10-01T03:03:05.000Z | cv_workshops/7-day/9-clazz.py | afterloe/Opencv-practice | 83d76132d004ebbc96d99d34a0fd3fc37a044f9f | [
"MIT"
] | null | null | null | cv_workshops/7-day/9-clazz.py | afterloe/Opencv-practice | 83d76132d004ebbc96d99d34a0fd3fc37a044f9f | [
"MIT"
] | 1 | 2020-03-01T12:35:02.000Z | 2020-03-01T12:35:02.000Z | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import cv2 as cv
"""
形态学分析应用 - 使用基本梯度对轮廓进行分析处理
使用形态学的二值化处理,对是别内容进行轮廓分析,在OCR上是其处理的手段之一,相比于threshold的二值化而言,对图像会有更好的分割效
果,技术路线如下:
1 图像形态学梯度
2 灰度
3 全局阈值二值化
4 轮廓分析
"""
def main():
src = cv.imread("../../pic... | 31.622222 | 121 | 0.598032 | 182 | 1,423 | 4.56044 | 0.516484 | 0.048193 | 0.060241 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036294 | 0.264231 | 1,423 | 44 | 122 | 32.340909 | 0.756447 | 0.120871 | 0 | 0 | 0 | 0 | 0.045635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.115385 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdc6adac6ca6afd61c4934fbf7cff6d47b19bb9a | 1,118 | py | Python | vaccibot/__main__.py | fsoubelet/vaccibot | f0956ddbf9f0ac712d3e6e10d9fb5f3edb3dda11 | [
"MIT"
] | null | null | null | vaccibot/__main__.py | fsoubelet/vaccibot | f0956ddbf9f0ac712d3e6e10d9fb5f3edb3dda11 | [
"MIT"
] | null | null | null | vaccibot/__main__.py | fsoubelet/vaccibot | f0956ddbf9f0ac712d3e6e10d9fb5f3edb3dda11 | [
"MIT"
] | null | null | null | import sys
from loguru import logger
from rich.console import Console, RenderGroup
from rich.panel import Panel
from vaccibot.constants import LOGURU_FORMAT
from vaccibot.parsing import ARGS
from vaccibot.process import retrieve_all_suitable_appointments
from vaccibot.render import make_department_table
logger.remov... | 30.216216 | 93 | 0.674419 | 127 | 1,118 | 5.755906 | 0.503937 | 0.065663 | 0.051984 | 0.084815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246869 | 1,118 | 36 | 94 | 31.055556 | 0.868171 | 0.124329 | 0 | 0 | 0 | 0 | 0.040082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.285714 | 0 | 0.321429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdc856fc9ff913efd9003763250b43ae605b0ec6 | 1,277 | py | Python | pi4home/components/text_sensor/custom.py | khzd/pi4home | 937bcdcf77bab111cca10af1fe45c63a55c29aae | [
"MIT"
] | 1 | 2019-05-16T02:52:12.000Z | 2019-05-16T02:52:12.000Z | pi4home/components/text_sensor/custom.py | khzd/pi4home | 937bcdcf77bab111cca10af1fe45c63a55c29aae | [
"MIT"
] | null | null | null | pi4home/components/text_sensor/custom.py | khzd/pi4home | 937bcdcf77bab111cca10af1fe45c63a55c29aae | [
"MIT"
] | null | null | null | import voluptuous as vol
from pi4home.components import text_sensor
import pi4home.config_validation as cv
from pi4home.const import CONF_ID, CONF_LAMBDA, CONF_NAME, CONF_TEXT_SENSORS
from pi4home.cpp_generator import add, process_lambda, variable
from pi4home.cpp_types import std_vector
CustomTextSensorConstructor =... | 36.485714 | 96 | 0.750196 | 161 | 1,277 | 5.621118 | 0.360248 | 0.132597 | 0.049724 | 0.044199 | 0.095028 | 0.095028 | 0.095028 | 0.095028 | 0 | 0 | 0 | 0.004673 | 0.162099 | 1,277 | 34 | 97 | 37.558824 | 0.841122 | 0 | 0 | 0 | 0 | 0 | 0.039937 | 0.039937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.230769 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdcc6e536cb58033fe61c7df47d8e2e7c55ae4c2 | 1,902 | py | Python | awsume/autoawsume/process.py | ignatenkobrain/awsume | 8191c35e8d60495e608c77801698c0a1a332d76f | [
"MIT"
] | 654 | 2016-04-05T16:51:22.000Z | 2022-03-28T21:07:30.000Z | awsume/autoawsume/process.py | ignatenkobrain/awsume | 8191c35e8d60495e608c77801698c0a1a332d76f | [
"MIT"
] | 149 | 2016-12-01T17:30:58.000Z | 2022-03-29T23:49:50.000Z | awsume/autoawsume/process.py | ignatenkobrain/awsume | 8191c35e8d60495e608c77801698c0a1a332d76f | [
"MIT"
] | 90 | 2016-04-12T00:50:04.000Z | 2022-03-30T20:44:45.000Z | import argparse
import psutil
from ..awsumepy.lib.aws_files import delete_section, get_aws_files, read_aws_file
from ..awsumepy.lib.logger import logger
def kill_autoawsume():
logger.debug('Killing autoawsume')
for proc in psutil.process_iter():
try:
for command_string in proc.cmdline():
... | 41.347826 | 101 | 0.664038 | 215 | 1,902 | 5.688372 | 0.293023 | 0.130826 | 0.163532 | 0.106296 | 0.235487 | 0.130826 | 0.075225 | 0 | 0 | 0 | 0 | 0 | 0.239222 | 1,902 | 45 | 102 | 42.266667 | 0.845197 | 0 | 0 | 0.2 | 0 | 0 | 0.146162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.025 | 0.1 | 0 | 0.175 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdcd63c3f87c9cdba74f8e75512a7d40eef94fd9 | 8,787 | py | Python | engine/sprite.py | amirgeva/retroupy | 1ee19b36a72c5f592cce150d1d0382a00ccdc4a0 | [
"BSD-3-Clause"
] | null | null | null | engine/sprite.py | amirgeva/retroupy | 1ee19b36a72c5f592cce150d1d0382a00ccdc4a0 | [
"BSD-3-Clause"
] | null | null | null | engine/sprite.py | amirgeva/retroupy | 1ee19b36a72c5f592cce150d1d0382a00ccdc4a0 | [
"BSD-3-Clause"
] | null | null | null | import json
import os
import gc
from .app import get_screen
from .utils import Rect
from .bitmatrix import BitMatrix
class SpritesManager:
def __init__(self):
self.free_indices = []
self.last_used = -1
self.limit = 160
def clear(self):
self.free_indices = []
self.last... | 27.719243 | 100 | 0.561739 | 1,102 | 8,787 | 4.315789 | 0.137931 | 0.052986 | 0.05677 | 0.027754 | 0.178091 | 0.105341 | 0.08831 | 0.082422 | 0.059294 | 0.059294 | 0 | 0.017315 | 0.329578 | 8,787 | 316 | 101 | 27.806962 | 0.790019 | 0.018095 | 0 | 0.228571 | 0 | 0 | 0.01474 | 0 | 0 | 0 | 0.000464 | 0 | 0 | 1 | 0.167347 | false | 0 | 0.02449 | 0.032653 | 0.363265 | 0.012245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdcfa69692cd0e84e62228bc835f2c497955444e | 10,882 | py | Python | natcap/versioner/versioning.py | natcap/versioner | 65e4c1cf38115dcfec260f0d186cedca192b0b2e | [
"BSD-3-Clause"
] | null | null | null | natcap/versioner/versioning.py | natcap/versioner | 65e4c1cf38115dcfec260f0d186cedca192b0b2e | [
"BSD-3-Clause"
] | null | null | null | natcap/versioner/versioning.py | natcap/versioner | 65e4c1cf38115dcfec260f0d186cedca192b0b2e | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import logging
import os
import re
import subprocess
import six
LOGGER = logging.getLogger('natcap.versioner.versioning')
LOGGER.setLevel(logging.ERROR)
class VCSQuerier(object):
name = 'VCS'
is_archive = False
repo_data_location = ''
def __init__(self, repo_pa... | 32.195266 | 86 | 0.609355 | 1,360 | 10,882 | 4.675735 | 0.188971 | 0.039786 | 0.020758 | 0.028306 | 0.301462 | 0.19437 | 0.142947 | 0.126435 | 0.089322 | 0.077685 | 0 | 0.002355 | 0.297647 | 10,882 | 337 | 87 | 32.290801 | 0.829648 | 0.231299 | 0 | 0.37156 | 0 | 0 | 0.09464 | 0.019593 | 0 | 0 | 0 | 0 | 0.009174 | 1 | 0.16055 | false | 0.004587 | 0.027523 | 0.027523 | 0.417431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd18a04d17e95c0953ca2e0c3d8db5c195b7e67 | 1,054 | py | Python | src/two_level_aspect_entity_embedding_generation/clusterd_knowledge_graph_statistics.py | mainuliitkgp/AR-BERT | d6d5e8542a3a1c76edac49cec9e99ebda6395725 | [
"MIT"
] | 4 | 2022-03-06T17:41:57.000Z | 2022-03-22T08:42:58.000Z | src/two_level_aspect_entity_embedding_generation/clusterd_knowledge_graph_statistics.py | mainuliitkgp/AR-BERT | d6d5e8542a3a1c76edac49cec9e99ebda6395725 | [
"MIT"
] | null | null | null | src/two_level_aspect_entity_embedding_generation/clusterd_knowledge_graph_statistics.py | mainuliitkgp/AR-BERT | d6d5e8542a3a1c76edac49cec9e99ebda6395725 | [
"MIT"
] | 1 | 2022-03-19T14:04:42.000Z | 2022-03-19T14:04:42.000Z | from __future__ import print_function
import numpy as np
import random
import json
import sys
import os
import networkx as nx
from networkx.readwrite import json_graph
version_info = list(map(int, nx.__version__.split('.')))
major = version_info[0]
minor = version_info[1]
assert (major <= 1) and (minor <= 11), "netwo... | 28.486486 | 84 | 0.651803 | 164 | 1,054 | 3.926829 | 0.365854 | 0.093168 | 0.080745 | 0.02795 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01599 | 0.228653 | 1,054 | 36 | 85 | 29.277778 | 0.776138 | 0.033207 | 0 | 0 | 0 | 0 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd1f5712640c660f6739b854770d7e695f1c4d4 | 8,167 | py | Python | src/aioros/tcpros/topic.py | mgrrx/aioros | 9bd750020d0d5fb466891346f61b6f083cbb8f05 | [
"Apache-2.0"
] | 8 | 2020-08-27T17:16:59.000Z | 2022-02-02T13:39:41.000Z | src/aioros/tcpros/topic.py | mgrrx/aioros | 9bd750020d0d5fb466891346f61b6f083cbb8f05 | [
"Apache-2.0"
] | 3 | 2022-02-09T19:18:12.000Z | 2022-03-08T21:12:00.000Z | src/aioros/tcpros/topic.py | mgrrx/aioros | 9bd750020d0d5fb466891346f61b6f083cbb8f05 | [
"Apache-2.0"
] | null | null | null | from asyncio import AbstractEventLoop
from asyncio import iscoroutinefunction
from asyncio import Event
from asyncio import IncompleteReadError
from asyncio import Queue
from asyncio import open_connection
from asyncio import open_unix_connection
from typing import Dict
from typing import List
from typing import Set
fr... | 32.40873 | 75 | 0.628872 | 869 | 8,167 | 5.628308 | 0.156502 | 0.045185 | 0.047025 | 0.022081 | 0.212635 | 0.116132 | 0.041709 | 0.041709 | 0.023308 | 0.023308 | 0 | 0.002609 | 0.29607 | 8,167 | 251 | 76 | 32.537849 | 0.848148 | 0 | 0 | 0.260465 | 0 | 0 | 0.010775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074419 | false | 0.009302 | 0.093023 | 0.046512 | 0.24186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd325e14189de11da8187eeb203eba8b96feec5 | 1,911 | py | Python | tests/core/test_local.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | 595 | 2021-05-21T22:30:48.000Z | 2022-03-31T15:40:25.000Z | tests/core/test_local.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | 463 | 2021-05-24T21:32:59.000Z | 2022-03-31T17:12:33.000Z | tests/core/test_local.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | 29 | 2021-05-21T22:27:52.000Z | 2022-03-28T16:43:45.000Z | import json
import os
import unittest
from opta.core.local import Local
from opta.layer import Layer
class LocalTests(unittest.TestCase):
def setUp(self) -> None:
self.layer = Layer(
name="testname",
org_name="testorg",
providers={"local": {"path": "/tmp"}},
... | 30.333333 | 65 | 0.529042 | 214 | 1,911 | 4.574766 | 0.341122 | 0.091931 | 0.036772 | 0.045965 | 0.233912 | 0.175689 | 0.120531 | 0.120531 | 0.120531 | 0.120531 | 0 | 0.031177 | 0.328624 | 1,911 | 62 | 66 | 30.822581 | 0.731878 | 0 | 0 | 0.150943 | 0 | 0 | 0.165358 | 0.027211 | 0 | 0 | 0 | 0 | 0.056604 | 1 | 0.09434 | false | 0 | 0.09434 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd62727280cef056fc775786f12ebffe8812748 | 28,253 | py | Python | tiknib/feature/asm_const.py | SoftSec-KAIST/tiknib | 5f1e25df0ff652cf35574dae3e6a3cfb3b163e63 | [
"MIT"
] | null | null | null | tiknib/feature/asm_const.py | SoftSec-KAIST/tiknib | 5f1e25df0ff652cf35574dae3e6a3cfb3b163e63 | [
"MIT"
] | null | null | null | tiknib/feature/asm_const.py | SoftSec-KAIST/tiknib | 5f1e25df0ff652cf35574dae3e6a3cfb3b163e63 | [
"MIT"
] | null | null | null | from tiknib.feature.asm_ppc import PPC_GRP_MAP
# ==================== x86 32 =============================================
# data transfer
X86_GRP_DTRANSFER = [
# general purpose instructions
"CMOV",
"CMOVA",
"CMOVAE",
"CMOVB",
"CMOVBE",
"CMOVC",
"CMOVE",
"CMOVG",
"CMOVGE",
"... | 14.753525 | 88 | 0.455952 | 2,666 | 28,253 | 4.683421 | 0.587772 | 0.020663 | 0.016338 | 0.006407 | 0.106279 | 0.077607 | 0.045971 | 0.016979 | 0.016979 | 0.016979 | 0 | 0.024486 | 0.343751 | 28,253 | 1,914 | 89 | 14.761233 | 0.64894 | 0.108201 | 0 | 0.174723 | 0 | 0 | 0.297529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00233 | false | 0 | 0.001747 | 0 | 0.007571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd85f75dbf5d4102a25ebc2445a8a860dd88729 | 4,920 | py | Python | networkunit/scores/score_kl_divergence.py | morales-gregorio/NetworkUnit | b858c3b2698fe3c0a7324ae8b8b388b74fd13c4d | [
"BSD-3-Clause"
] | 8 | 2017-11-16T08:45:48.000Z | 2021-11-29T16:51:45.000Z | networkunit/scores/score_kl_divergence.py | morales-gregorio/NetworkUnit | b858c3b2698fe3c0a7324ae8b8b388b74fd13c4d | [
"BSD-3-Clause"
] | 17 | 2017-11-16T07:53:26.000Z | 2021-05-07T10:27:34.000Z | networkunit/scores/score_kl_divergence.py | russelljjarvis/NetworkUnit | 32179371d3a0ba354e6637cf4f97ba70522d4054 | [
"BSD-3-Clause"
] | 5 | 2019-03-23T00:55:33.000Z | 2020-01-24T10:12:11.000Z | import numpy as np
from scipy.stats import entropy
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import seaborn as sns
import sciunit
class kl_divergence(sciunit.Score):
"""
Kullback-Leibner Divergence D_KL(P||Q)
Calculates the difference of two sampled distributions P and Q in form ... | 35.912409 | 80 | 0.570732 | 706 | 4,920 | 3.815864 | 0.24221 | 0.044543 | 0.024499 | 0.025241 | 0.344469 | 0.312546 | 0.301411 | 0.282108 | 0.282108 | 0.282108 | 0 | 0.032184 | 0.292683 | 4,920 | 137 | 81 | 35.912409 | 0.741954 | 0.172764 | 0 | 0.263736 | 0 | 0 | 0.047595 | 0.011273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054945 | false | 0 | 0.065934 | 0.021978 | 0.197802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd862ba88395be8cb418cfab8ce408473323919 | 635 | py | Python | kikyo/config.py | jadbin/kikyo | 98d875e85a28b4141cbd6616bba3d397a4219dc9 | [
"MIT"
] | null | null | null | kikyo/config.py | jadbin/kikyo | 98d875e85a28b4141cbd6616bba3d397a4219dc9 | [
"MIT"
] | null | null | null | kikyo/config.py | jadbin/kikyo | 98d875e85a28b4141cbd6616bba3d397a4219dc9 | [
"MIT"
] | null | null | null | import base64
import io
import requests
import yaml
from kikyo import Kikyo, Settings
def configure_by_consul(config_url: str, **kwargs) -> Kikyo:
"""从Consul拉取YAML格式的配置文件
:param config_url: 获取配置项的URL地址
"""
resp = requests.get(config_url)
resp.raise_for_status()
settings = Settings()
f... | 19.84375 | 60 | 0.617323 | 77 | 635 | 4.987013 | 0.545455 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013129 | 0.280315 | 635 | 31 | 61 | 20.483871 | 0.827133 | 0.08189 | 0 | 0 | 0 | 0 | 0.026408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd932ec045f92a204fc0462b20bc5fe9de822e1 | 5,077 | py | Python | tests/ep_canvas_test.py | PytLab/catplot | 63ad46218b17d5cdffdd026dad7d775cf4caa50b | [
"MIT"
] | 35 | 2015-12-23T08:01:15.000Z | 2021-11-03T01:34:20.000Z | tests/ep_canvas_test.py | PytLab/catplot | 63ad46218b17d5cdffdd026dad7d775cf4caa50b | [
"MIT"
] | 1 | 2015-11-25T05:52:43.000Z | 2017-04-11T14:06:00.000Z | tests/ep_canvas_test.py | PytLab/catplot | 63ad46218b17d5cdffdd026dad7d775cf4caa50b | [
"MIT"
] | 10 | 2015-11-06T20:23:32.000Z | 2020-05-16T19:18:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Test case for Energy Profle Canvas.
"""
import unittest
import matplotlib.pyplot as plt
from catplot.ep_components.ep_canvas import EPCanvas
from catplot.ep_components.ep_lines import ElementaryLine
from catplot.ep_components.ep_chain import EPChain
class EPCanvas... | 30.769697 | 84 | 0.623203 | 631 | 5,077 | 4.885895 | 0.187005 | 0.011677 | 0.072657 | 0.077198 | 0.508271 | 0.378852 | 0.334415 | 0.314953 | 0.272138 | 0.242945 | 0 | 0.031957 | 0.26039 | 5,077 | 164 | 85 | 30.957317 | 0.789081 | 0.157179 | 0 | 0.425743 | 0 | 0 | 0.010921 | 0 | 0 | 0 | 0 | 0 | 0.217822 | 1 | 0.118812 | false | 0 | 0.049505 | 0 | 0.178218 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdd9723808bf563a488aa0b07c42aceeac435545 | 458 | py | Python | Leetcode/medium/bitwise-and-of-numbers-range.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 6 | 2021-07-29T03:26:20.000Z | 2022-01-28T15:11:45.000Z | Leetcode/medium/bitwise-and-of-numbers-range.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 2 | 2021-09-30T09:47:23.000Z | 2022-01-31T03:08:24.000Z | Leetcode/medium/bitwise-and-of-numbers-range.py | jen-sjen/data-structures-basics-leetcode | addac32974b16e0a37aa60c210ab7820b349b279 | [
"MIT"
] | 5 | 2021-08-10T06:41:11.000Z | 2022-01-29T17:50:20.000Z | """
# BITWISE AND OF NUMBERS RANGE
Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.
Example 1:
Input: [5,7]
Output: 4
Example 2:
Input: [0,1]
Output: 0
"""
class Solution:
def rangeBitwiseAnd(self, m: int, n: int) -> int:
... | 17.615385 | 117 | 0.508734 | 66 | 458 | 3.530303 | 0.515152 | 0.025751 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080139 | 0.373362 | 458 | 26 | 118 | 17.615385 | 0.731707 | 0.482533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdde05efcf874ead71f10d44b9b94987c03fce5e | 995 | py | Python | tests/test_git.py | graycarl/hbk | d4c90807b2558a2b61fb1253d9804fbaf373443f | [
"MIT"
] | 1 | 2021-07-22T05:25:35.000Z | 2021-07-22T05:25:35.000Z | tests/test_git.py | graycarl/hbk | d4c90807b2558a2b61fb1253d9804fbaf373443f | [
"MIT"
] | 37 | 2017-07-27T06:07:25.000Z | 2020-12-11T12:57:31.000Z | tests/test_git.py | graycarl/hbk | d4c90807b2558a2b61fb1253d9804fbaf373443f | [
"MIT"
] | 1 | 2019-04-02T08:36:32.000Z | 2019-04-02T08:36:32.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from builtins import * # noqa
import pytest
from hbkit import libs
@pytest.fixture
def git_config():
content = \
"""
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
... | 23.690476 | 69 | 0.706533 | 127 | 995 | 5.393701 | 0.417323 | 0.065693 | 0.093431 | 0.110949 | 0.405839 | 0.265693 | 0.145985 | 0.145985 | 0.145985 | 0.145985 | 0 | 0.002398 | 0.161809 | 995 | 41 | 70 | 24.268293 | 0.818945 | 0.026131 | 0 | 0 | 0 | 0 | 0.15914 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0.266667 | 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 |
bddf54c37693012c2ebee8e890c2bc5f10dfd58d | 5,510 | py | Python | responsible_ai/gan_data_debiased/main.py | AaratiAkkapeddi/nnabla-examples | db9e5ad850303c158773aeb275e5c3821b4a3935 | [
"Apache-2.0"
] | null | null | null | responsible_ai/gan_data_debiased/main.py | AaratiAkkapeddi/nnabla-examples | db9e5ad850303c158773aeb275e5c3821b4a3935 | [
"Apache-2.0"
] | null | null | null | responsible_ai/gan_data_debiased/main.py | AaratiAkkapeddi/nnabla-examples | db9e5ad850303c158773aeb275e5c3821b4a3935 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Sony Group Corporation.
#
# 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 ... | 38.531469 | 91 | 0.580581 | 622 | 5,510 | 4.853698 | 0.287781 | 0.047367 | 0.041736 | 0.027824 | 0.398145 | 0.262007 | 0.262007 | 0.245446 | 0.245446 | 0.229215 | 0 | 0.013089 | 0.306715 | 5,510 | 142 | 92 | 38.802817 | 0.777225 | 0.147913 | 0 | 0.294118 | 0 | 0 | 0.229275 | 0.004534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.078431 | 0 | 0.107843 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bde0ad9f17012d7ebc6ee66313fe41b54189ab35 | 5,109 | py | Python | hstools/utilities.py | saisiddu/pub_bandaragoda_etal_ems | d06e23c7c5dfa772d5dfe55c33bcf7abbd5e2060 | [
"MIT"
] | 1 | 2019-09-24T15:22:05.000Z | 2019-09-24T15:22:05.000Z | hstools/utilities.py | saisiddu/pub_bandaragoda_etal_ems | d06e23c7c5dfa772d5dfe55c33bcf7abbd5e2060 | [
"MIT"
] | null | null | null | hstools/utilities.py | saisiddu/pub_bandaragoda_etal_ems | d06e23c7c5dfa772d5dfe55c33bcf7abbd5e2060 | [
"MIT"
] | null | null | null | from __future__ import print_function
import os
from IPython.core.display import display, HTML
import glob
from .compat import *
def sizeof_fmt(num, suffix='B'):
for unit in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']:
if abs(num) < 1024.0:
return "%3.1f%s%s" % (num, unit, suffix)
... | 30.963636 | 247 | 0.607164 | 702 | 5,109 | 4.323362 | 0.294872 | 0.0257 | 0.034596 | 0.015815 | 0.135091 | 0.098188 | 0.070511 | 0.04547 | 0 | 0 | 0 | 0.006094 | 0.261304 | 5,109 | 164 | 248 | 31.152439 | 0.798092 | 0.106087 | 0 | 0 | 0 | 0.019417 | 0.204873 | 0.020819 | 0 | 0 | 0 | 0.006098 | 0 | 1 | 0.116505 | false | 0.009709 | 0.048544 | 0 | 0.281553 | 0.087379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bde5bd2cb3f7fdf8cc6f96a4c93e07d27f29156e | 16,286 | py | Python | activity/activity_IngestDigestToEndpoint.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | activity/activity_IngestDigestToEndpoint.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | activity/activity_IngestDigestToEndpoint.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | import os
import time
import json
from collections import OrderedDict
from digestparser import json_output
from provider.execution_context import get_session
from provider.article_processing import download_jats
from provider import digest_provider, email_provider, lax_provider, utils
from activity.objects import Activ... | 36.191111 | 88 | 0.608805 | 1,860 | 16,286 | 5.109677 | 0.12043 | 0.063447 | 0.035354 | 0.021991 | 0.384785 | 0.306923 | 0.246107 | 0.202757 | 0.140257 | 0.126368 | 0 | 0.001973 | 0.315179 | 16,286 | 449 | 89 | 36.271715 | 0.850175 | 0.09106 | 0 | 0.277473 | 0 | 0 | 0.148821 | 0.001437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.024725 | 0 | 0.156593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bde6c2d4e221af5daf9ceb3a165e32e65089ccfe | 249 | py | Python | utils/forgiveness_of_the_offender.py | bbt-t/simple-bot_discord | 46fa629e8278e8e453b3c272b2e838d0762aaaf8 | [
"MIT"
] | null | null | null | utils/forgiveness_of_the_offender.py | bbt-t/simple-bot_discord | 46fa629e8278e8e453b3c272b2e838d0762aaaf8 | [
"MIT"
] | null | null | null | utils/forgiveness_of_the_offender.py | bbt-t/simple-bot_discord | 46fa629e8278e8e453b3c272b2e838d0762aaaf8 | [
"MIT"
] | null | null | null | from discord import Member, utils
async def unmute_user(member: Member):
role = utils.get(member.guild.roles, id=809817869914341396)
await member.edit(roles=())
await member.add_roles(role)
await member.send('Ты размучен! :)')
| 19.153846 | 63 | 0.706827 | 33 | 249 | 5.272727 | 0.636364 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087379 | 0.172691 | 249 | 12 | 64 | 20.75 | 0.757282 | 0 | 0 | 0 | 0 | 0 | 0.060484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
bde798fb51621c003debde76678c82dcde2604d3 | 443 | py | Python | mailing/urls.py | Aladom/django-mailing | aa18963b1902e4b7f066b0064a832e26e725f643 | [
"MIT"
] | null | null | null | mailing/urls.py | Aladom/django-mailing | aa18963b1902e4b7f066b0064a832e26e725f643 | [
"MIT"
] | 13 | 2016-02-04T14:56:11.000Z | 2021-06-10T20:39:51.000Z | mailing/urls.py | Aladom/django-mailing | aa18963b1902e4b7f066b0064a832e26e725f643 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import url
from .views import MirrorView, SubscriptionsManagementView
__all__ = [
'app_name', 'urlpatterns',
]
app_name = 'mailing'
urlpatterns = [
url(r'^mirror/(?P<signed_pk>[0-9]+:[a-zA-Z0-9_-]+)/$',
MirrorView.as_view(), name='mirror'),
url(r'^sub... | 26.058824 | 69 | 0.643341 | 54 | 443 | 5.055556 | 0.574074 | 0.051282 | 0.03663 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01847 | 0.14447 | 443 | 16 | 70 | 27.6875 | 0.701847 | 0.047404 | 0 | 0 | 0 | 0 | 0.340476 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
bdeb63bd228672aa0d61f1e5f7d0335e8f073585 | 12,597 | py | Python | pykit/codegen/llvm/llvm_codegen.py | ContinuumIO/pyk | 1730d7b831e0cf12a641ac23b5cf03e17e0dc550 | [
"BSD-3-Clause"
] | 9 | 2015-06-23T00:13:49.000Z | 2022-02-23T02:46:43.000Z | pykit/codegen/llvm/llvm_codegen.py | ContinuumIO/pyk | 1730d7b831e0cf12a641ac23b5cf03e17e0dc550 | [
"BSD-3-Clause"
] | 1 | 2017-08-30T08:13:12.000Z | 2017-08-31T06:36:32.000Z | pykit/codegen/llvm/llvm_codegen.py | ContinuumIO/pyk | 1730d7b831e0cf12a641ac23b5cf03e17e0dc550 | [
"BSD-3-Clause"
] | 7 | 2015-05-08T10:17:47.000Z | 2021-04-01T15:00:57.000Z | from functools import partial
from pykit.ir import vvisit, ArgLoader, verify_lowlevel
from pykit.ir import defs, opgrouper
from pykit.types import Boolean, Integral, Real, Pointer, Function, Int64
from pykit.codegen.llvm.llvm_types import llvm_type
import llvm.core as lc
from llvm.core import Type, Constant
#===----... | 32.135204 | 82 | 0.618322 | 1,515 | 12,597 | 4.479208 | 0.179538 | 0.055113 | 0.024315 | 0.02682 | 0.220159 | 0.107722 | 0.062334 | 0.046124 | 0.037135 | 0.037135 | 0 | 0.004887 | 0.220291 | 12,597 | 392 | 83 | 32.135204 | 0.686011 | 0.166945 | 0 | 0.091954 | 0 | 0 | 0.016368 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 1 | 0.168582 | false | 0 | 0.030651 | 0.061303 | 0.356322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdeef5ecb135e522f7c40abc5e24bd958b8ff052 | 1,859 | py | Python | DatabaseHandler/sqlite_operations.py | utkarsh7236/SCILLA | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | [
"Apache-2.0"
] | 17 | 2019-12-09T19:09:07.000Z | 2021-08-29T01:11:13.000Z | DatabaseHandler/sqlite_operations.py | utkarsh7236/SCILLA | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | [
"Apache-2.0"
] | 1 | 2021-04-14T15:08:18.000Z | 2021-04-14T15:08:18.000Z | DatabaseHandler/sqlite_operations.py | utkarsh7236/SCILLA | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | [
"Apache-2.0"
] | 2 | 2020-06-05T03:01:06.000Z | 2020-07-09T07:13:12.000Z | #!/usr/bin/env python
__author__ = 'Florian Hase'
#========================================================================
import time
import sqlalchemy as sql
#========================================================================
class AddEntry(object):
def __init__(self, database, table, entry):
self.... | 23.833333 | 73 | 0.550834 | 201 | 1,859 | 4.995025 | 0.293532 | 0.041833 | 0.039841 | 0.067729 | 0.39741 | 0.35757 | 0.195219 | 0.099602 | 0.099602 | 0.099602 | 0 | 0.000669 | 0.196342 | 1,859 | 77 | 74 | 24.142857 | 0.671352 | 0.166218 | 0 | 0.418182 | 0 | 0 | 0.010356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0.018182 | 0.036364 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdf105752f21bbc068ce977d28dde3f6db125f50 | 8,818 | py | Python | main.py | omegaBionic/pysparkPower | 1354247e4ec085a65f288a1f31a05875f003da72 | [
"Apache-2.0"
] | null | null | null | main.py | omegaBionic/pysparkPower | 1354247e4ec085a65f288a1f31a05875f003da72 | [
"Apache-2.0"
] | null | null | null | main.py | omegaBionic/pysparkPower | 1354247e4ec085a65f288a1f31a05875f003da72 | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import pylab as pl
import pandas as pd
from pyspark import SQLContext
from pyspark.ml.clustering import KMeans
from pyspark.ml.feature import VectorAssembler
from pyspark.sql import SparkSession
from pyspark.sql.types import StructType, StructField, IntegerType
from d... | 29.790541 | 109 | 0.713087 | 1,203 | 8,818 | 5.075644 | 0.202826 | 0.035375 | 0.041271 | 0.0321 | 0.590894 | 0.587455 | 0.556666 | 0.556666 | 0.543727 | 0.522764 | 0 | 0.017317 | 0.142096 | 8,818 | 295 | 110 | 29.891525 | 0.789822 | 0.150488 | 0 | 0.536313 | 0 | 0 | 0.160409 | 0.031355 | 0 | 0 | 0 | 0.00339 | 0 | 1 | 0.005587 | false | 0 | 0.055866 | 0 | 0.061453 | 0.072626 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdf5bfe6b045a2bc243a77cfba2030c81bcde42d | 3,781 | py | Python | src/open3DTool/visualizer.py | MobileRoboticsSkoltech/plane-segmentation-research | 0627512c4cb53326de1aabf815e755d9e4484c9c | [
"Apache-2.0"
] | 1 | 2021-10-15T08:18:55.000Z | 2021-10-15T08:18:55.000Z | src/open3DTool/visualizer.py | MobileRoboticsSkoltech/plane-segmentation-research | 0627512c4cb53326de1aabf815e755d9e4484c9c | [
"Apache-2.0"
] | 1 | 2021-11-18T16:37:28.000Z | 2021-11-18T16:37:28.000Z | src/open3DTool/visualizer.py | MobileRoboticsSkoltech/plane-segmentation-research | 0627512c4cb53326de1aabf815e755d9e4484c9c | [
"Apache-2.0"
] | null | null | null | from src.open3DTool.planeUtils import (
segment_points_on_plane_by_picked_points,
pick_points_utils,
)
from src.algorithmsForPointCloud.fileUtils import (
get_point_cloud_from_bin_file,
generate_labels_and_object_files,
)
from src.open3DTool.fileUtils import update_label_files
import numpy as np
import ... | 34.372727 | 87 | 0.691351 | 497 | 3,781 | 4.802817 | 0.197183 | 0.079598 | 0.076246 | 0.027231 | 0.455802 | 0.274822 | 0.150398 | 0.12191 | 0.12191 | 0.103058 | 0 | 0.012081 | 0.233801 | 3,781 | 109 | 88 | 34.688073 | 0.811874 | 0.003967 | 0 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 1 | 0.086022 | false | 0 | 0.053763 | 0 | 0.247312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfa7f51aa6bca9797c581b745c48d3a51fc0b8d | 8,868 | py | Python | submission_utils.py | ameyagodbole/multihop_inference_explanation_regeneration | ab742433034b251a819b6eb898686530bd055cd0 | [
"MIT"
] | 7 | 2019-08-31T22:58:41.000Z | 2021-02-06T17:41:38.000Z | submission_utils.py | ameyagodbole/multihop_inference_explanation_regeneration | ab742433034b251a819b6eb898686530bd055cd0 | [
"MIT"
] | 2 | 2020-02-19T13:32:03.000Z | 2020-07-29T09:24:53.000Z | submission_utils.py | ameyagodbole/multihop_inference_explanation_regeneration | ab742433034b251a819b6eb898686530bd055cd0 | [
"MIT"
] | 1 | 2020-10-01T09:48:07.000Z | 2020-10-01T09:48:07.000Z | import argparse
import logging
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_distances
import torch
def create_predictions_file(questions_file, facts_file, examples_file, logits_file, pred_output_file,
... | 45.948187 | 119 | 0.579725 | 1,130 | 8,868 | 4.309735 | 0.158407 | 0.029569 | 0.062834 | 0.036961 | 0.558111 | 0.482752 | 0.424641 | 0.424641 | 0.424641 | 0.424641 | 0 | 0.012739 | 0.256428 | 8,868 | 193 | 120 | 45.948187 | 0.725811 | 0.010149 | 0 | 0.491124 | 0 | 0 | 0.124501 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 1 | 0.011834 | false | 0 | 0.04142 | 0 | 0.065089 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfb7f7d975d38d147cc79c67eb8466db9daf8e8 | 1,884 | py | Python | pysm/semantic_modeling/assembling/autolabel/auto_label.py | binh-vu/semantic-modeling | b387584502ba1daa6abd6b7573828416f6426b49 | [
"MIT"
] | 3 | 2019-10-31T15:26:20.000Z | 2022-03-03T06:04:03.000Z | pysm/semantic_modeling/assembling/autolabel/auto_label.py | binh-vu/semantic-modeling | b387584502ba1daa6abd6b7573828416f6426b49 | [
"MIT"
] | 1 | 2021-10-05T14:57:29.000Z | 2022-03-27T01:58:41.000Z | pysm/semantic_modeling/assembling/autolabel/auto_label.py | binh-vu/semantic-modeling | b387584502ba1daa6abd6b7573828416f6426b49 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from typing import Dict, Tuple, List, Set, Union, Optional
from data_structure import Graph
from semantic_modeling.assembling.autolabel.heuristic import preserved_structure_with_heuristic, get_gold_semantic_types
from semantic_modeling.assembling.autolabel.maxf1 import get_go... | 49.578947 | 120 | 0.728769 | 255 | 1,884 | 4.992157 | 0.196078 | 0.112333 | 0.094266 | 0.080126 | 0.699921 | 0.608013 | 0.536528 | 0.536528 | 0.480754 | 0.480754 | 0 | 0.005225 | 0.187367 | 1,884 | 37 | 121 | 50.918919 | 0.826257 | 0.02017 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfb8afb236fa2a59d4614b476d34a5d38aae988 | 694 | py | Python | landscapes/scripts/convert_fitness_to_s.py | Peyara/Evolution-Counterdiabatic-Driving | e695fad703b2d339bed0013e5b4254ba2365c105 | [
"MIT"
] | 3 | 2020-08-24T20:24:41.000Z | 2020-08-26T02:16:16.000Z | landscapes/scripts/convert_fitness_to_s.py | hincz-lab/Evolution-Counterdiabatic-Driving | e695fad703b2d339bed0013e5b4254ba2365c105 | [
"MIT"
] | null | null | null | landscapes/scripts/convert_fitness_to_s.py | hincz-lab/Evolution-Counterdiabatic-Driving | e695fad703b2d339bed0013e5b4254ba2365c105 | [
"MIT"
] | null | null | null | import sys
import numpy as np
# This script takes in a file with fitness values separated by commas
# and converts the values to be s values (relative fitness as used in
# the model) instead.
# WARNING: Overwrites given file!
if len(sys.argv) < 2:
print("Usage: python convert_fitness_to_s.py [name of file to co... | 30.173913 | 95 | 0.695965 | 119 | 694 | 4.016807 | 0.546218 | 0.043933 | 0.037657 | 0.07113 | 0.09205 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 0.035149 | 0.180115 | 694 | 23 | 96 | 30.173913 | 0.804921 | 0.353026 | 0 | 0 | 0 | 0 | 0.149321 | 0.052036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfcac80e4077fb1f2378b55cba1401431e2ffec | 1,099 | py | Python | eats/behave/driver_steps.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | eats/behave/driver_steps.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | 5 | 2021-03-18T21:34:44.000Z | 2022-03-11T23:35:23.000Z | eats/behave/driver_steps.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | from behave import *
from hamcrest import *
from selenium.common.exceptions import RemoteDriverServerException
from eats.pyhamcrest import array_equal_to_by_key
from eats.utils.mapping import table_mapping
from ..users import Users
@when(u'I press "{key}" key')
@when(u'{user_name:Username} presses "{key}" key')
def s... | 40.703704 | 115 | 0.767971 | 147 | 1,099 | 5.52381 | 0.408163 | 0.059113 | 0.029557 | 0.034483 | 0.189655 | 0.147783 | 0.147783 | 0.147783 | 0.147783 | 0.147783 | 0 | 0 | 0.128298 | 1,099 | 27 | 115 | 40.703704 | 0.847599 | 0 | 0 | 0.173913 | 0 | 0 | 0.148182 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfcb80abeeba8ef801afb6b8c9b9a48834e2016 | 5,526 | py | Python | homebytwo/routes/utils.py | drixselecta/homebytwo | 29d26ce9f5586943e3b64c95aa4ce9ea7263bd10 | [
"MIT"
] | 7 | 2018-03-10T20:58:59.000Z | 2021-08-22T17:18:09.000Z | homebytwo/routes/utils.py | HomebyTwo/homebytwo | 29d26ce9f5586943e3b64c95aa4ce9ea7263bd10 | [
"MIT"
] | 69 | 2017-02-01T21:15:43.000Z | 2022-02-26T09:33:27.000Z | homebytwo/routes/utils.py | drixselecta/homebytwo | 29d26ce9f5586943e3b64c95aa4ce9ea7263bd10 | [
"MIT"
] | null | null | null | from collections import namedtuple
from itertools import accumulate, chain, islice, tee
from pathlib import Path
from django.contrib.gis.db.models.functions import Distance, LineLocatePoint
from django.contrib.gis.measure import D
from .fields import LineSubstring
from .models import ActivityType, Place
# named tupl... | 31.758621 | 92 | 0.707926 | 711 | 5,526 | 5.35865 | 0.298172 | 0.040945 | 0.025197 | 0.016535 | 0.096588 | 0.056693 | 0.04147 | 0.04147 | 0 | 0 | 0 | 0.00755 | 0.209012 | 5,526 | 173 | 93 | 31.942197 | 0.864104 | 0.344734 | 0 | 0.061728 | 0 | 0 | 0.097864 | 0.0306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098765 | false | 0 | 0.08642 | 0 | 0.271605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfe275d909128740904498e8c3a21dcaa2bafb4 | 263 | py | Python | aureaSym.py | osmartormena/introMATLAB | 6e505a17d6666d92b4502eff746f4b4dcdcd3c1c | [
"CC0-1.0"
] | null | null | null | aureaSym.py | osmartormena/introMATLAB | 6e505a17d6666d92b4502eff746f4b4dcdcd3c1c | [
"CC0-1.0"
] | null | null | null | aureaSym.py | osmartormena/introMATLAB | 6e505a17d6666d92b4502eff746f4b4dcdcd3c1c | [
"CC0-1.0"
] | null | null | null | # Cálculo da razão áurea (phi)
import sympy
d = 20
phi = sympy.symbols('phi', nonnegative=True)
eqn = sympy.Eq(1/phi, phi - 1)
sol = sympy.solve(eqn)
sympy.pprint(sol)
phiAprox = sympy.N(sol[0], d)
print('Para ', d, ' dígitos significativos, ϕ = ', phiAprox)
| 18.785714 | 60 | 0.669202 | 42 | 263 | 4.190476 | 0.619048 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.163498 | 263 | 13 | 61 | 20.230769 | 0.777273 | 0.106464 | 0 | 0 | 0 | 0 | 0.158798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdfe32d084754eda156889373513889dc3a4c1f0 | 15,732 | py | Python | core/src/structs_classes/extract_structs.py | azurlane-doujin/AzurLanePaintingExtract-v1.0 | ef4f25e70b3ca1b9df4304132cc7612c8f5efebb | [
"MIT"
] | 144 | 2019-06-13T06:43:43.000Z | 2022-03-29T15:07:57.000Z | core/src/structs_classes/extract_structs.py | Shabi1213/AzurLanePaintingExtract-v1.0 | ef4f25e70b3ca1b9df4304132cc7612c8f5efebb | [
"MIT"
] | 2 | 2020-08-02T15:08:58.000Z | 2021-11-29T02:34:18.000Z | core/src/structs_classes/extract_structs.py | Shabi1213/AzurLanePaintingExtract-v1.0 | ef4f25e70b3ca1b9df4304132cc7612c8f5efebb | [
"MIT"
] | 19 | 2020-03-01T10:06:52.000Z | 2022-02-06T13:49:26.000Z | import collections
import os
import re
import time
from itertools import filterfalse
import wx
from core.src.static_classes.static_data import GlobalData
from core.src.structs_classes.basic_class import BasicInfo, BasicInfoList
class PerInfo(BasicInfo):
def __init__(self, name, val, has_cn):
... | 33.189873 | 117 | 0.557335 | 1,992 | 15,732 | 4.165161 | 0.11496 | 0.022177 | 0.016874 | 0.010124 | 0.42883 | 0.343136 | 0.252139 | 0.191877 | 0.164156 | 0.164156 | 0 | 0.009229 | 0.3388 | 15,732 | 473 | 118 | 33.260042 | 0.788406 | 0.054475 | 0 | 0.267913 | 0 | 0 | 0.037146 | 0.014171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140187 | false | 0 | 0.024922 | 0.021807 | 0.28972 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdff65087e9d7a27500aa847fc385ea3b6c07441 | 3,950 | py | Python | scbw_mq/tournament/benchmark/storage.py | Games-and-Simulations/sc-mq | f9ae798948add7fd84b77d75ca26ade94620f84e | [
"MIT"
] | 2 | 2018-05-10T18:10:28.000Z | 2018-05-13T18:14:33.000Z | scbw_mq/tournament/benchmark/storage.py | Games-and-Simulations/sc-mq | f9ae798948add7fd84b77d75ca26ade94620f84e | [
"MIT"
] | 1 | 2019-09-20T14:14:49.000Z | 2019-09-20T14:14:49.000Z | scbw_mq/tournament/benchmark/storage.py | Games-and-Simulations/sc-mq | f9ae798948add7fd84b77d75ca26ade94620f84e | [
"MIT"
] | null | null | null | import logging
import os
import shutil
from os.path import exists
from typing import Optional
from scbw.map import check_map_exists
from scbw.player import check_bot_exists
from scbw.utils import download_extract_zip
from ...utils import read_lines
logger = logging.getLogger(__name__)
class BenchmarkException(Exce... | 31.854839 | 88 | 0.678481 | 517 | 3,950 | 4.969052 | 0.197292 | 0.093422 | 0.052939 | 0.049046 | 0.317633 | 0.234332 | 0.111327 | 0.111327 | 0.0942 | 0.059167 | 0 | 0.000328 | 0.227848 | 3,950 | 123 | 89 | 32.113821 | 0.841967 | 0.025063 | 0 | 0.137931 | 0 | 0 | 0.189709 | 0.082121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.022989 | 0.103448 | 0.022989 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bdff857464c359af0d0606a7da2091b6840dd15a | 21,855 | py | Python | dev-server/scripts/docker-entrypoint.py | circlenaut/docker-images | 1768222b496288b6d08a51f979ade97554648817 | [
"MIT"
] | null | null | null | dev-server/scripts/docker-entrypoint.py | circlenaut/docker-images | 1768222b496288b6d08a51f979ade97554648817 | [
"MIT"
] | null | null | null | dev-server/scripts/docker-entrypoint.py | circlenaut/docker-images | 1768222b496288b6d08a51f979ade97554648817 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Main Workspace Run Script
"""
import os
import sys
import logging
import coloredlogs
import json
import math
import glob
import yaml
import yamale
import scripts.functions as func
from copy import copy
from subprocess import run, call
### Enable logging
logging.basicConfig(
format="%(asct... | 39.307554 | 221 | 0.625212 | 2,729 | 21,855 | 4.775009 | 0.163796 | 0.05909 | 0.061239 | 0.070601 | 0.421687 | 0.37288 | 0.311872 | 0.256005 | 0.233136 | 0.150027 | 0 | 0.005598 | 0.223564 | 21,855 | 555 | 222 | 39.378378 | 0.762331 | 0.103363 | 0 | 0.164835 | 0 | 0.004396 | 0.39213 | 0.102611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002198 | false | 0.026374 | 0.030769 | 0 | 0.032967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da0211204f7b106ec6a65423c21ac69cd0c6c658 | 11,524 | py | Python | py/host.py | black-parrot-hdk/arty-parrot | d5d1c5859cbe6a7acad9147b0d815fe478f92ec9 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T07:45:12.000Z | 2022-01-09T07:45:12.000Z | py/host.py | black-parrot-hdk/arty-parrot | d5d1c5859cbe6a7acad9147b0d815fe478f92ec9 | [
"BSD-3-Clause"
] | 2 | 2021-05-26T02:27:26.000Z | 2021-05-28T07:02:48.000Z | py/host.py | black-parrot-hdk/arty-parrot | d5d1c5859cbe6a7acad9147b0d815fe478f92ec9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import sys
import argparse
from enum import Enum
from typing import Optional
import serial
from tqdm import tqdm
from nbf import NBF_COMMAND_LENGTH_BYTES, NbfCommand, NbfFile, OPCODE_FINISH, OPCODE_PUTCH, OPCODE_READ_8, OPCODE_WRITE_8, ADDRESS_CSR_FREEZE
DRAM_REGION_START = 0x00_8000_0000
DR... | 41.602888 | 173 | 0.674505 | 1,421 | 11,524 | 5.209008 | 0.204082 | 0.02756 | 0.030802 | 0.021616 | 0.215212 | 0.141043 | 0.106188 | 0.075925 | 0.058363 | 0.058363 | 0 | 0.008165 | 0.234814 | 11,524 | 276 | 174 | 41.753623 | 0.831254 | 0.083391 | 0 | 0.09596 | 0 | 0.005051 | 0.155509 | 0.019998 | 0 | 0 | 0 | 0.007246 | 0 | 1 | 0.09596 | false | 0 | 0.035354 | 0 | 0.222222 | 0.035354 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da02379e9f1f2797e8f3d2fe77571451d25da847 | 618 | py | Python | mistex/plugins/citation.py | martinosorb/mistex | 27db70a95ae4bb8bc84c17c9d59c1bef5b5e92f4 | [
"BSD-3-Clause"
] | null | null | null | mistex/plugins/citation.py | martinosorb/mistex | 27db70a95ae4bb8bc84c17c9d59c1bef5b5e92f4 | [
"BSD-3-Clause"
] | null | null | null | mistex/plugins/citation.py | martinosorb/mistex | 27db70a95ae4bb8bc84c17c9d59c1bef5b5e92f4 | [
"BSD-3-Clause"
] | null | null | null | from mistune.inline_parser import LINK_LABEL
CITATION_PATTERN = r'\[\^@(' + LINK_LABEL + r')\]'
def render_citation(text):
return '\\cite{' + text + '}'
def parse_citation(self, m, state):
text = m.group(1)
self._ensure_bib()
return 'citation', self.render(text, state)
def plugin_citation(md):
... | 22.888889 | 73 | 0.666667 | 80 | 618 | 4.975 | 0.4375 | 0.080402 | 0.09799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003945 | 0.179612 | 618 | 26 | 74 | 23.769231 | 0.781065 | 0 | 0 | 0 | 0 | 0 | 0.105178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.0625 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da03370dc8f2f31bcdc7fd9d8a5697527015558e | 2,881 | py | Python | 2020_August_Leetcode_30_days_challenge/Week_3_Non-overlapping Intervals/by_sorting.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 32 | 2020-01-05T13:37:16.000Z | 2022-03-26T07:27:09.000Z | 2020_August_Leetcode_30_days_challenge/Week_3_Non-overlapping Intervals/by_sorting.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | null | null | null | 2020_August_Leetcode_30_days_challenge/Week_3_Non-overlapping Intervals/by_sorting.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 8 | 2020-06-18T16:17:27.000Z | 2022-03-15T23:58:18.000Z | '''
Description:
Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.
Example 1:
Input: [[1,2],[2,3],[3,4],[1,3]]
Output: 1
Explanation: [1,3] can be removed and the rest of intervals are non-overlapping.
Example 2:
Input: [... | 25.052174 | 139 | 0.588684 | 386 | 2,881 | 4.297927 | 0.339378 | 0.014467 | 0.036166 | 0.009644 | 0.191682 | 0.141049 | 0.10006 | 0.069922 | 0.062688 | 0 | 0 | 0.032209 | 0.321069 | 2,881 | 115 | 140 | 25.052174 | 0.815951 | 0.449844 | 0 | 0.129032 | 0 | 0 | 0.005122 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.129032 | false | 0.032258 | 0.064516 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da0469fe0ec53d36c9f4e75701bb9541ada5eeed | 1,220 | py | Python | hive_plug_play/engine/processor.py | seakintruth/hive-plug-play | 032caed7a0690a58410b3d4e93a1fdecf2009d58 | [
"MIT"
] | 3 | 2021-05-11T07:12:05.000Z | 2021-10-04T04:01:38.000Z | hive_plug_play/engine/processor.py | seakintruth/hive-plug-play | 032caed7a0690a58410b3d4e93a1fdecf2009d58 | [
"MIT"
] | 9 | 2021-06-02T03:43:01.000Z | 2021-07-23T14:52:03.000Z | hive_plug_play/engine/processor.py | seakintruth/hive-plug-play | 032caed7a0690a58410b3d4e93a1fdecf2009d58 | [
"MIT"
] | 1 | 2021-05-24T15:57:20.000Z | 2021-05-24T15:57:20.000Z | from os import truncate
from hive_plug_play.database.handlers import PlugPlayDb
class BlockProcessor:
@classmethod
def init(cls, config):
cls.config = config
cls.db = PlugPlayDb(config)
cls.head_block = {}
cls.block_num = 0
cls.block_time = ''
@classmethod
... | 32.105263 | 90 | 0.584426 | 149 | 1,220 | 4.557047 | 0.355705 | 0.070692 | 0.076583 | 0.047128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001183 | 0.307377 | 1,220 | 38 | 91 | 32.105263 | 0.802367 | 0 | 0 | 0.090909 | 0 | 0 | 0.085995 | 0.017199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da058a79bcff3d1633c9de586676094982ec1208 | 24,030 | py | Python | scripts/populate_conferences.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | null | null | null | scripts/populate_conferences.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | 13 | 2020-03-24T15:29:41.000Z | 2022-03-11T23:15:28.000Z | scripts/populate_conferences.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import os
from modularodm import Q
from modularodm.exceptions import ModularOdmException
from framework.auth.core import User
from website import settings
from website.app import init_app
from website.conferences.model import Conference
def main():
init_app(set_backends... | 32.693878 | 156 | 0.544112 | 2,335 | 24,030 | 5.475803 | 0.241113 | 0.034491 | 0.085875 | 0.1145 | 0.489989 | 0.430705 | 0.373221 | 0.347411 | 0.328641 | 0.308619 | 0 | 0.044415 | 0.297295 | 24,030 | 734 | 157 | 32.73842 | 0.71278 | 0.002206 | 0 | 0.534819 | 0 | 0.013928 | 0.497414 | 0.009594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002786 | false | 0 | 0.009749 | 0 | 0.012535 | 0.002786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
da0602f1e855ed3a2c59e5d54ad317e3bc77bd87 | 3,563 | py | Python | clinicadl/clinicadl/subject_level/train_autoencoder.py | 921974496/AD-DL | 9a0303579a665800633024bdab1ac44f794a0c38 | [
"MIT"
] | 1 | 2020-11-30T01:39:12.000Z | 2020-11-30T01:39:12.000Z | clinicadl/clinicadl/subject_level/train_autoencoder.py | 921974496/AD-DL | 9a0303579a665800633024bdab1ac44f794a0c38 | [
"MIT"
] | null | null | null | clinicadl/clinicadl/subject_level/train_autoencoder.py | 921974496/AD-DL | 9a0303579a665800633024bdab1ac44f794a0c38 | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
from os import path
from time import time
import sys
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from .utils import ae_finetuning
from ..tools.deep_learning.iotools import Parameters
from ..tools.deep_learning.data import MinMaxNormal... | 39.153846 | 168 | 0.63991 | 383 | 3,563 | 5.704961 | 0.342037 | 0.020595 | 0.017849 | 0.028833 | 0.118993 | 0.071396 | 0.031121 | 0 | 0 | 0 | 0 | 0.002716 | 0.276733 | 3,563 | 90 | 169 | 39.588889 | 0.845169 | 0.158855 | 0 | 0.105263 | 0 | 0 | 0.053908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.210526 | 0 | 0.22807 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |