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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
429ce61086d20c4c1d15d20e5249184bf0cc61e3 | 4,714 | py | Python | janus.py | caxmd/januus | 79208e2450b4c5b1c81346b99814462f6d083b66 | [
"MIT"
] | 83 | 2017-12-11T03:33:10.000Z | 2022-02-17T15:13:54.000Z | janus.py | caxmd/januus | 79208e2450b4c5b1c81346b99814462f6d083b66 | [
"MIT"
] | 3 | 2017-12-25T16:15:44.000Z | 2018-06-17T11:06:08.000Z | janus.py | caxmd/januus | 79208e2450b4c5b1c81346b99814462f6d083b66 | [
"MIT"
] | 25 | 2017-12-11T03:51:12.000Z | 2022-02-17T15:13:57.000Z | # Includes some code derived from the cpython project.
# Source: https://github.com/python/cpython/blob/master/Lib/zipfile.py
# Excuse the mess.
import argparse
from hashlib import sha1
import os
import struct
from zipfile import _EndRecData, ZipFile
from zlib import adler32
_ECD_SIGNATURE = 0
_ECD_DISK_NUMBER = 1
_... | 31.218543 | 152 | 0.655282 | 622 | 4,714 | 4.649518 | 0.27492 | 0.020747 | 0.020747 | 0.01971 | 0.078147 | 0.017981 | 0.017981 | 0 | 0 | 0 | 0 | 0.023863 | 0.244378 | 4,714 | 151 | 153 | 31.218543 | 0.78804 | 0.029275 | 0 | 0.016393 | 0 | 0 | 0.050514 | 0 | 0 | 0 | 0.003499 | 0 | 0 | 1 | 0.057377 | false | 0 | 0.04918 | 0.02459 | 0.172131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
429eedb68c601680755c430f3d242a23508963a5 | 3,352 | py | Python | test/gst-msdk/transcode/mpeg2.py | haribommi/vaapi-fits | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | [
"BSD-3-Clause"
] | null | null | null | test/gst-msdk/transcode/mpeg2.py | haribommi/vaapi-fits | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | [
"BSD-3-Clause"
] | null | null | null | test/gst-msdk/transcode/mpeg2.py | haribommi/vaapi-fits | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | [
"BSD-3-Clause"
] | null | null | null | ##
### Copyright (C) 2018-2019 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from ....lib import *
from ..util import *
from .transcoder import TranscoderTest
spec = load_test_spec("mpeg2", "transcode")
class to_avc(TranscoderTest):
@slash.requires(*have_gst_element("msdkh264enc"))
@slash.re... | 38.976744 | 107 | 0.683174 | 357 | 3,352 | 6.176471 | 0.218487 | 0.064853 | 0.084807 | 0.099773 | 0.592744 | 0.523356 | 0.44898 | 0.44898 | 0.314739 | 0.314739 | 0 | 0.045521 | 0.180788 | 3,352 | 85 | 108 | 39.435294 | 0.757465 | 0.023568 | 0 | 0.426667 | 0 | 0 | 0.232965 | 0.015347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0 | 0.04 | 0 | 0.146667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42a05049df648190833a6dde333b459a1ed6a363 | 10,220 | py | Python | rusel/base/context.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | rusel/base/context.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | rusel/base/context.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | import os, time, mimetypes, glob
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from task.const import *
from task.models import Task, detect_group
from rusel.base.config import Config
from rusel.base.forms import CreateGroupForm
from rusel.context import get_base_context
from ru... | 40.078431 | 196 | 0.531409 | 1,222 | 10,220 | 4.238953 | 0.141571 | 0.084942 | 0.037645 | 0.029537 | 0.275097 | 0.220656 | 0.140347 | 0.087259 | 0.062548 | 0.04556 | 0 | 0.003879 | 0.344227 | 10,220 | 254 | 197 | 40.23622 | 0.769024 | 0.00636 | 0 | 0.120172 | 0 | 0 | 0.062648 | 0.007191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04721 | false | 0 | 0.038627 | 0 | 0.154506 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42a1c00f35b59908451cfee2563f53a899db2598 | 901 | py | Python | pygama/dsp/_processors/trap_filter.py | sweigart/pygama | 3c5fe4c69230814933b2de879b9a305ff0d4ad5e | [
"Apache-2.0"
] | 1 | 2022-01-19T14:31:56.000Z | 2022-01-19T14:31:56.000Z | pygama/dsp/_processors/trap_filter.py | sweigart/pygama | 3c5fe4c69230814933b2de879b9a305ff0d4ad5e | [
"Apache-2.0"
] | 1 | 2020-12-08T20:07:24.000Z | 2020-12-08T20:07:24.000Z | pygama/dsp/_processors/trap_filter.py | sweigart/pygama | 3c5fe4c69230814933b2de879b9a305ff0d4ad5e | [
"Apache-2.0"
] | null | null | null | import numpy as np
from numba import guvectorize
@guvectorize(["void(float32[:], int32, int32, float32[:])",
"void(float64[:], int32, int32, float64[:])",
"void(int32[:], int32, int32, int32[:])",
"void(int64[:], int32, int32, int64[:])"],
"(n),(),()->(n)", nopyt... | 37.541667 | 102 | 0.558269 | 153 | 901 | 3.130719 | 0.215686 | 0.10856 | 0.104384 | 0.093946 | 0.356994 | 0.294363 | 0.294363 | 0.294363 | 0.294363 | 0.294363 | 0 | 0.061135 | 0.237514 | 901 | 23 | 103 | 39.173913 | 0.636099 | 0.031077 | 0 | 0 | 0 | 0 | 0.203271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42a67cbf934d63272df061aa18d737365bf0fa29 | 5,109 | py | Python | pilferer/engine.py | Sebastian-dm/pilferer | 5126377154c7ba08fbea1a9dfad752bf8b1c72a9 | [
"MIT"
] | null | null | null | pilferer/engine.py | Sebastian-dm/pilferer | 5126377154c7ba08fbea1a9dfad752bf8b1c72a9 | [
"MIT"
] | null | null | null | pilferer/engine.py | Sebastian-dm/pilferer | 5126377154c7ba08fbea1a9dfad752bf8b1c72a9 | [
"MIT"
] | null | null | null | import tcod
from input_handlers import handle_keys
from game_states import GameStates
from render_functions import clear_all, render_all, RenderOrder
from map_objects.game_map import GameMap
from fov_functions import initialize_fov, recompute_fov
from entity import Entity, get_blocking_entity_at_location
from compon... | 32.335443 | 112 | 0.603249 | 592 | 5,109 | 4.898649 | 0.253378 | 0.034138 | 0.052414 | 0.035862 | 0.226897 | 0.147586 | 0.126897 | 0.102069 | 0.102069 | 0.102069 | 0 | 0.016773 | 0.323155 | 5,109 | 158 | 113 | 32.335443 | 0.821862 | 0.041691 | 0 | 0.247706 | 0 | 0 | 0.027071 | 0.004307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009174 | false | 0 | 0.082569 | 0 | 0.100917 | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42a6cbc1a232b14997c3952e709da0eebe84cd51 | 2,337 | py | Python | galaxy/api/v2/urls.py | SamyCoenen/galaxy | 7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e | [
"Apache-2.0"
] | null | null | null | galaxy/api/v2/urls.py | SamyCoenen/galaxy | 7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e | [
"Apache-2.0"
] | null | null | null | galaxy/api/v2/urls.py | SamyCoenen/galaxy | 7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e | [
"Apache-2.0"
] | null | null | null | # (c) 2012-2019, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
... | 35.953846 | 75 | 0.682071 | 282 | 2,337 | 5.606383 | 0.375887 | 0.037951 | 0.063251 | 0.064516 | 0.365591 | 0.328906 | 0.3074 | 0.137887 | 0 | 0 | 0 | 0.005297 | 0.192127 | 2,337 | 64 | 76 | 36.515625 | 0.832097 | 0.367137 | 0 | 0.457143 | 0 | 0 | 0.366758 | 0.26511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
42a99e600220ea6f0c20b482db83263664318f69 | 1,305 | py | Python | resources/nuice_simulations/src/layers_sim/layers_sim_node.py | SpyGuyIan/NUice | 47991a848dac244b4c476b4a92f7a27a1f9e5dcc | [
"MIT"
] | 1 | 2021-08-17T00:40:42.000Z | 2021-08-17T00:40:42.000Z | resources/nuice_simulations/src/layers_sim/layers_sim_node.py | SpyGuyIan/NUice | 47991a848dac244b4c476b4a92f7a27a1f9e5dcc | [
"MIT"
] | 1 | 2021-01-31T17:15:40.000Z | 2021-01-31T17:15:40.000Z | resources/nuice_simulations/src/layers_sim/layers_sim_node.py | NUMarsIce/NUice | 47991a848dac244b4c476b4a92f7a27a1f9e5dcc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float64
import random
possibleLayers = [140, 50, 80, 200, 100]
cur_position = 0.0
def position_callback(msg):
global cur_position
cur_position = msg.data
#Build the layers simulation, then publish material strengths. Lasts 100 seconds.
def runLayers... | 29 | 81 | 0.691954 | 172 | 1,305 | 5.116279 | 0.476744 | 0.075 | 0.054545 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.200766 | 1,305 | 44 | 82 | 29.659091 | 0.79674 | 0.165517 | 0 | 0 | 0 | 0 | 0.056221 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 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 |
42a9d7f0de1fb5aee832bc5e97c48ecbdecd3930 | 10,460 | py | Python | scripts/pos_eval.py | ProKil/sparse-text-prototype | e7369dc981fb2c2a94ccb4edca4a7e7c7d7543cd | [
"MIT"
] | 19 | 2020-11-05T12:17:45.000Z | 2021-11-17T08:43:50.000Z | scripts/pos_eval.py | ProKil/sparse-text-prototype | e7369dc981fb2c2a94ccb4edca4a7e7c7d7543cd | [
"MIT"
] | 1 | 2021-07-08T13:30:15.000Z | 2021-07-08T13:30:15.000Z | scripts/pos_eval.py | ProKil/sparse-text-prototype | e7369dc981fb2c2a94ccb4edca4a7e7c7d7543cd | [
"MIT"
] | 2 | 2020-12-20T13:19:14.000Z | 2021-06-25T20:18:00.000Z | import os
import argparse
import subprocess
import random
import edlib
from typing import List
from collections import Counter
import stanza
class ExtractMetric(object):
"""used for precision recall"""
def __init__(self, nume=0, denom_p=0, denom_r=0, precision=0, recall=0, f1=0):
super(ExtractMetric, ... | 33.41853 | 122 | 0.603537 | 1,476 | 10,460 | 4.077236 | 0.136179 | 0.032901 | 0.01994 | 0.018611 | 0.458624 | 0.432868 | 0.389166 | 0.349618 | 0.322699 | 0.278996 | 0 | 0.011456 | 0.248948 | 10,460 | 312 | 123 | 33.525641 | 0.754582 | 0.066061 | 0 | 0.274336 | 0 | 0 | 0.109697 | 0.023704 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.039823 | false | 0 | 0.035398 | 0 | 0.110619 | 0.030973 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42ab9f264f4ecd8a53e0ce06b3bb77538b433100 | 4,681 | py | Python | src/wa_kat/templates/static/js/Lib/site-packages/components/keyword_handler.py | WebArchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 3 | 2017-03-23T12:59:21.000Z | 2017-11-22T08:23:14.000Z | src/wa_kat/templates/static/js/Lib/site-packages/components/keyword_handler.py | WebArchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 89 | 2015-06-28T22:10:28.000Z | 2017-01-30T16:06:05.000Z | src/wa_kat/templates/static/js/Lib/site-packages/components/keyword_handler.py | WebarchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 1 | 2015-12-17T02:56:59.000Z | 2015-12-17T02:56:59.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: brython (http://brython.info) (like python3)
#
# Imports =====================================================================
from os.path import join
from browser import window
from browser import document
# virtual filesystem / modules provide... | 29.25625 | 79 | 0.580432 | 540 | 4,681 | 4.883333 | 0.340741 | 0.031854 | 0.018203 | 0.021236 | 0.103148 | 0.065984 | 0.027304 | 0 | 0 | 0 | 0 | 0.001222 | 0.300577 | 4,681 | 159 | 80 | 29.440252 | 0.803604 | 0.333689 | 0 | 0.109589 | 0 | 0 | 0.136268 | 0.015141 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0 | 0.054795 | 0 | 0.246575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42b0f3205382f72fca408d985411165330e27a01 | 7,453 | py | Python | datahub/search/investment/models.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | null | null | null | datahub/search/investment/models.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | 16 | 2020-04-01T15:25:35.000Z | 2020-04-14T14:07:30.000Z | datahub/search/investment/models.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | null | null | null | from elasticsearch_dsl import Boolean, Date, Double, Integer, Keyword, Long, Object, Text
from datahub.search import dict_utils
from datahub.search import fields
from datahub.search.models import BaseESModel
DOC_TYPE = 'investment_project'
def _related_investment_project_field():
"""Field for a related investm... | 38.417526 | 99 | 0.70106 | 906 | 7,453 | 5.320088 | 0.189845 | 0.054772 | 0.054772 | 0.068465 | 0.353527 | 0.28527 | 0.185062 | 0.121784 | 0.099793 | 0.055602 | 0 | 0.000337 | 0.203945 | 7,453 | 193 | 100 | 38.61658 | 0.812068 | 0.015833 | 0 | 0.107955 | 0 | 0 | 0.109988 | 0.045088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005682 | false | 0 | 0.022727 | 0 | 0.551136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42b106aaf54e3b2c19e17572d5a63e648baf43b4 | 1,670 | py | Python | robust_sleep_net/models/modulo_net/features_encoder/fully_connected.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | 16 | 2021-04-06T14:04:45.000Z | 2022-03-11T14:37:08.000Z | robust_sleep_net/models/modulo_net/features_encoder/fully_connected.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | null | null | null | robust_sleep_net/models/modulo_net/features_encoder/fully_connected.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | 4 | 2021-06-10T06:48:33.000Z | 2022-03-26T22:29:07.000Z | from collections import OrderedDict
import torch
from torch import nn
class FullyConnected(nn.Module):
def __init__(self, features, layers=None, dropout=0.0):
super(FullyConnected, self).__init__()
print("Layers:", layers)
input_channels = 0
for feature in features:
in... | 32.115385 | 96 | 0.426946 | 140 | 1,670 | 4.95 | 0.342857 | 0.075036 | 0.090909 | 0.066378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009324 | 0.486228 | 1,670 | 51 | 97 | 32.745098 | 0.798368 | 0 | 0 | 0.045455 | 0 | 0 | 0.016766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.068182 | 0 | 0.159091 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35e91cbc49c53f3ff38da3a05748e14783d919ce | 2,968 | py | Python | data/rawdata_dataset.py | weiyw16/pytorch-CycleGAN-and-pix2pix | 432a91ee6ca8dc606ba0116b27b0948abc48f295 | [
"BSD-3-Clause"
] | null | null | null | data/rawdata_dataset.py | weiyw16/pytorch-CycleGAN-and-pix2pix | 432a91ee6ca8dc606ba0116b27b0948abc48f295 | [
"BSD-3-Clause"
] | null | null | null | data/rawdata_dataset.py | weiyw16/pytorch-CycleGAN-and-pix2pix | 432a91ee6ca8dc606ba0116b27b0948abc48f295 | [
"BSD-3-Clause"
] | null | null | null | #import
import os
#import torch
#import torch.nn as nn
import torch.utils.data as Data
#import torchvision
import matplotlib.pyplot as plt
import h5py
#from torch.autograd import Variable
import numpy as np
import torch
class rawdataDataset(Data.Dataset):
def __init__(self):
super(rawdataDataset, self)... | 38.545455 | 97 | 0.597035 | 426 | 2,968 | 3.992958 | 0.244131 | 0.078189 | 0.017637 | 0.023516 | 0.359788 | 0.269253 | 0.269253 | 0.226925 | 0.226925 | 0.226925 | 0 | 0.020197 | 0.249326 | 2,968 | 76 | 98 | 39.052632 | 0.743268 | 0.490903 | 0 | 0 | 0 | 0 | 0.032454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.088235 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f24e93301e26ad076b53b869df2630d390d615 | 965 | py | Python | lang/Python/compare-sorting-algorithms-performance-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | lang/Python/compare-sorting-algorithms-performance-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/compare-sorting-algorithms-performance-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | sort_functions = [
builtinsort, # see implementation above
insertion_sort, # see [[Insertion sort]]
insertion_sort_lowb, # ''insertion_sort'', where sequential search is replaced
# by lower_bound() function
qsort, # see [[Quicksort]]
qsortranlc... | 50.789474 | 85 | 0.598964 | 93 | 965 | 6 | 0.688172 | 0.116487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.307772 | 965 | 18 | 86 | 53.611111 | 0.811377 | 0.443523 | 0 | 0 | 0 | 0 | 0.015238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f445a5ba07dee2c2143db897f87a8a3259db16 | 6,300 | py | Python | server/organization/tests.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 3 | 2020-09-09T23:26:29.000Z | 2020-10-17T22:58:34.000Z | server/organization/tests.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 294 | 2020-09-27T17:20:50.000Z | 2021-06-23T01:44:09.000Z | server/organization/tests.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 10 | 2020-10-07T05:25:30.000Z | 2021-05-01T05:32:59.000Z | from rest_framework import status
from rest_framework.test import APITestCase
from rest_framework.test import APIClient
from django.db.models import signals
import factory
from user_account.models import CustomUser
from .models import Organization
class OrganizationTestCase(APITestCase):
def setUp(self):
... | 45.985401 | 161 | 0.686667 | 739 | 6,300 | 5.622463 | 0.20433 | 0.064982 | 0.05006 | 0.062575 | 0.691937 | 0.603851 | 0.579783 | 0.559085 | 0.531649 | 0.458243 | 0 | 0.014266 | 0.198889 | 6,300 | 136 | 162 | 46.323529 | 0.808995 | 0.087778 | 0 | 0.43 | 0 | 0 | 0.134748 | 0.031477 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0.13 | false | 0.03 | 0.07 | 0 | 0.23 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f52784cb920f6695ea0214e66ce046c4ba0969 | 961 | py | Python | flaskapp/routes.py | vijay0707/Send-Email-Flask | 3e8f981c5ef4c4051f61b5229eb3e56a35142bc7 | [
"MIT"
] | null | null | null | flaskapp/routes.py | vijay0707/Send-Email-Flask | 3e8f981c5ef4c4051f61b5229eb3e56a35142bc7 | [
"MIT"
] | null | null | null | flaskapp/routes.py | vijay0707/Send-Email-Flask | 3e8f981c5ef4c4051f61b5229eb3e56a35142bc7 | [
"MIT"
] | null | null | null | from flaskapp import app, db, mail
from flask import render_template, url_for
from flask import request, flash, redirect
# from flaskapp.model import User
from flaskapp.form import SurveyForm
from flask_mail import Message
@app.route('/', methods = ['POST', 'GET'])
def form():
form = SurveyForm()
if ... | 32.033333 | 97 | 0.632674 | 121 | 961 | 4.966942 | 0.454545 | 0.0599 | 0.049917 | 0.083195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233091 | 961 | 29 | 98 | 33.137931 | 0.814111 | 0.133195 | 0 | 0 | 0 | 0 | 0.187735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0.05 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f678cde08c5ff864121819c46adfa1fdba45f0 | 887 | py | Python | app/coordinates.py | krasch/simply_landmarks | 8a5c3f2ff476377e44646a00e61b8287a53260e3 | [
"MIT"
] | 14 | 2020-02-03T22:30:48.000Z | 2021-11-01T09:41:34.000Z | app/coordinates.py | krasch/simply_landmarks | 8a5c3f2ff476377e44646a00e61b8287a53260e3 | [
"MIT"
] | 3 | 2020-11-28T17:24:28.000Z | 2022-01-26T19:56:35.000Z | app/coordinates.py | krasch/simply_landmarks | 8a5c3f2ff476377e44646a00e61b8287a53260e3 | [
"MIT"
] | 4 | 2020-10-11T21:26:53.000Z | 2021-09-14T03:59:20.000Z | from pathlib import Path
from PIL import Image
# coordinates are sent as slightly weird URL parameters (e.g. 0.png?214,243)
# parse them, will crash server if they are coming in unexpected format
def parse_coordinates(args):
keys = list(args.keys())
assert len(keys) == 1
coordinates = keys[0]
assert... | 27.71875 | 77 | 0.67982 | 131 | 887 | 4.496183 | 0.480916 | 0.054329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01443 | 0.218715 | 887 | 31 | 78 | 28.612903 | 0.835498 | 0.248027 | 0 | 0 | 0 | 0 | 0.003017 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f6bdfd466ccfcc3ec731821bd0d70b92cb5b92 | 2,851 | py | Python | lib/tool_images.py | KTingLee/image-training | c02c7caa81a55b61e935d07ead27bcaed468eb0a | [
"MIT"
] | null | null | null | lib/tool_images.py | KTingLee/image-training | c02c7caa81a55b61e935d07ead27bcaed468eb0a | [
"MIT"
] | 2 | 2021-01-22T09:10:33.000Z | 2021-01-22T14:22:09.000Z | lib/tool_images.py | KTingLee/image-training | c02c7caa81a55b61e935d07ead27bcaed468eb0a | [
"MIT"
] | 1 | 2021-01-22T08:56:34.000Z | 2021-01-22T08:56:34.000Z | import matplotlib.pyplot as plt
import numpy as np
import math
import cv2
kernel = np.ones((3, 3), np.int8)
# 去除雜訊
def eraseImage (image):
return cv2.erode(image, kernel, iterations = 1)
# 模糊圖片
def blurImage (image):
return cv2.GaussianBlur(image, (5, 5), 0)
# 銳利化圖片
# threshold1,2,較小的值為作為偵測邊界的最小值
def edgedImage... | 25.684685 | 88 | 0.62785 | 411 | 2,851 | 4.326034 | 0.350365 | 0.008999 | 0.006749 | 0.008999 | 0.074803 | 0.068616 | 0.058493 | 0.058493 | 0.058493 | 0.058493 | 0 | 0.046637 | 0.217818 | 2,851 | 111 | 89 | 25.684685 | 0.750673 | 0.115047 | 0 | 0.064935 | 0 | 0 | 0.020351 | 0.009178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.051948 | 0.038961 | 0.311688 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f6e6f91f9e05d76fd7957364cd9c3157a56978 | 2,965 | py | Python | Code/geneset_testing.py | dylkot/EbolaSC | d363f9d2c10911f01c7b1d22fec2b192df2569b1 | [
"MIT"
] | 2 | 2020-09-28T09:27:33.000Z | 2021-01-04T09:16:42.000Z | Code/geneset_testing.py | dylkot/SC-Ebola | d363f9d2c10911f01c7b1d22fec2b192df2569b1 | [
"MIT"
] | null | null | null | Code/geneset_testing.py | dylkot/SC-Ebola | d363f9d2c10911f01c7b1d22fec2b192df2569b1 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from scipy.stats import mannwhitneyu, fisher_exact, ranksums
def load_geneset(gmtfn, genes=None, minsize=0):
'''
Load genesets stored in gmt format (e.g. as provided by msigdb)
gmtfn : str
path to gmt file
genes : list, optional
only include gene... | 29.949495 | 89 | 0.57774 | 374 | 2,965 | 4.534759 | 0.331551 | 0.025943 | 0.018868 | 0.042453 | 0.313679 | 0.235849 | 0.235849 | 0.201651 | 0.176887 | 0.176887 | 0 | 0.007659 | 0.295447 | 2,965 | 98 | 90 | 30.255102 | 0.804213 | 0.129174 | 0 | 0.31746 | 0 | 0 | 0.013189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.047619 | 0 | 0.111111 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35f901a5b14d9bb965c94938ad6cacba20eb8f77 | 2,167 | py | Python | nn_wtf/parameter_optimizers/brute_force_optimizer.py | lene/nn-wtf | 4696f143d936e0c0c127847e3bb1e93a6e756d35 | [
"Apache-2.0"
] | null | null | null | nn_wtf/parameter_optimizers/brute_force_optimizer.py | lene/nn-wtf | 4696f143d936e0c0c127847e3bb1e93a6e756d35 | [
"Apache-2.0"
] | 20 | 2016-02-20T12:43:04.000Z | 2016-12-23T13:57:25.000Z | nn_wtf/parameter_optimizers/brute_force_optimizer.py | lene/nn-wtf | 4696f143d936e0c0c127847e3bb1e93a6e756d35 | [
"Apache-2.0"
] | null | null | null | import pprint
from nn_wtf.parameter_optimizers.neural_network_optimizer import NeuralNetworkOptimizer
__author__ = 'Lene Preuss <lene.preuss@gmail.com>'
class BruteForceOptimizer(NeuralNetworkOptimizer):
DEFAULT_LAYER_SIZES = (
(32, 48, 64), # (32, 48, 64, 80, 96, 128),
(32, 48, 64, 80, 96, 12... | 38.696429 | 119 | 0.677434 | 273 | 2,167 | 5.043956 | 0.326007 | 0.065359 | 0.039942 | 0.058097 | 0.22077 | 0.185911 | 0.127814 | 0.127814 | 0.127814 | 0.087146 | 0 | 0.035954 | 0.242732 | 2,167 | 55 | 120 | 39.4 | 0.803169 | 0.051684 | 0 | 0 | 0 | 0 | 0.017065 | 0.011214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.047619 | 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 |
35fac5891884a7fafbd906447065470f94dbe9cf | 9,158 | py | Python | tensorflow/dgm/exp.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | tensorflow/dgm/exp.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | tensorflow/dgm/exp.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import tensorflow as tf
import sys, os
sys.path.extend(['alg/', 'models/'])
from visualisation import plot_images
from encoder_no_shared import encoder, recon
from utils import init_variables, save_params, load_params, load_data
from eval_test_ll import construct_eval_func
dimZ = 50
dimH = 500
n_cha... | 40.166667 | 102 | 0.597183 | 1,228 | 9,158 | 4.177524 | 0.170195 | 0.035867 | 0.019298 | 0.021053 | 0.307992 | 0.229435 | 0.17232 | 0.164522 | 0.138596 | 0.113645 | 0 | 0.010062 | 0.294606 | 9,158 | 227 | 103 | 40.343612 | 0.784056 | 0.05689 | 0 | 0.197802 | 0 | 0 | 0.068958 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 1 | 0.005495 | false | 0 | 0.104396 | 0 | 0.10989 | 0.065934 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35fb641cc4c232d5e95579ae3bf4fec4904fbdf7 | 1,663 | py | Python | src/cltl/combot/infra/config/k8config.py | leolani/cltl-combot | 7008742ba9db782166f79322658a8cb49890d61b | [
"MIT"
] | 1 | 2020-11-21T18:53:22.000Z | 2020-11-21T18:53:22.000Z | src/cltl/combot/infra/config/k8config.py | leolani/cltl-combot | 7008742ba9db782166f79322658a8cb49890d61b | [
"MIT"
] | null | null | null | src/cltl/combot/infra/config/k8config.py | leolani/cltl-combot | 7008742ba9db782166f79322658a8cb49890d61b | [
"MIT"
] | null | null | null | import logging
import os
import cltl.combot.infra.config.local as local_config
logger = logging.getLogger(__name__)
K8_CONFIG_DIR = "/cltl_k8_config"
K8_CONFIG = "config/k8.config"
class K8LocalConfigurationContainer(local_config.LocalConfigurationContainer):
@staticmethod
def load_configuration(config_fi... | 36.955556 | 116 | 0.710764 | 227 | 1,663 | 4.867841 | 0.281938 | 0.130317 | 0.059729 | 0.061538 | 0.113122 | 0.073303 | 0.045249 | 0 | 0 | 0 | 0 | 0.026237 | 0.197835 | 1,663 | 45 | 117 | 36.955556 | 0.802099 | 0 | 0 | 0 | 0 | 0 | 0.097957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 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 |
35fb6a7aec8441ab62bd7a834d5a31a1a31bbbcf | 17,640 | py | Python | act_map/scripts/exp_compare_diff_maps.py | debugCVML/rpg_information_field | 56f9ffba83aaee796502116e1cf651c5bc405bf6 | [
"MIT"
] | 149 | 2020-06-23T12:08:47.000Z | 2022-03-31T08:18:52.000Z | act_map/scripts/exp_compare_diff_maps.py | debugCVML/rpg_information_field | 56f9ffba83aaee796502116e1cf651c5bc405bf6 | [
"MIT"
] | 4 | 2020-08-28T07:51:15.000Z | 2021-04-09T13:18:49.000Z | act_map/scripts/exp_compare_diff_maps.py | debugCVML/rpg_information_field | 56f9ffba83aaee796502116e1cf651c5bc405bf6 | [
"MIT"
] | 34 | 2020-06-26T14:50:34.000Z | 2022-03-04T06:45:55.000Z | #!/usr/bin/env python
import os
import argparse
import yaml
import numpy as np
from colorama import init, Fore, Style
from matplotlib import rc
import matplotlib.pyplot as plt
import plot_utils as pu
init(autoreset=True)
rc('font', **{'serif': ['Cardo'], 'size': 20})
rc('text', usetex=True)
kMetrics = ['det', 'mi... | 41.505882 | 129 | 0.626361 | 2,690 | 17,640 | 3.77658 | 0.111524 | 0.025199 | 0.020671 | 0.017718 | 0.469338 | 0.355153 | 0.305443 | 0.251895 | 0.182695 | 0.125701 | 0 | 0.007779 | 0.227494 | 17,640 | 424 | 130 | 41.603774 | 0.737727 | 0.006519 | 0 | 0.138028 | 0 | 0 | 0.156648 | 0.024947 | 0 | 0 | 0 | 0 | 0.04507 | 1 | 0.025352 | false | 0 | 0.022535 | 0 | 0.061972 | 0.11831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35fc69cf4551ec557452a3db41e67d9efead2ebf | 1,318 | py | Python | Files/SpeechRecognition/speechDandR.py | JahnaviDoneria/HomeAutomationSystem | 0419ba4a0fefd16b9a5c7a19fef7897d76850dc2 | [
"MIT"
] | null | null | null | Files/SpeechRecognition/speechDandR.py | JahnaviDoneria/HomeAutomationSystem | 0419ba4a0fefd16b9a5c7a19fef7897d76850dc2 | [
"MIT"
] | null | null | null | Files/SpeechRecognition/speechDandR.py | JahnaviDoneria/HomeAutomationSystem | 0419ba4a0fefd16b9a5c7a19fef7897d76850dc2 | [
"MIT"
] | 1 | 2020-01-20T13:04:55.000Z | 2020-01-20T13:04:55.000Z | import json
import apiai
import speech_recognition as sr
def speechRecognition():
recog = sr.Recognizer()
with sr.Microphone() as source:
print("It's your cue")
audio = recog.listen(source)
i = True
while i is True:
try:
text = recog.recognize_google(audio)
... | 23.122807 | 63 | 0.651745 | 139 | 1,318 | 6.079137 | 0.467626 | 0.059172 | 0.040237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031187 | 0.245827 | 1,318 | 56 | 64 | 23.535714 | 0.818913 | 0.014416 | 0 | 0.047619 | 0 | 0 | 0.122496 | 0.049307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.190476 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35fcbb05f8e3b57b8ab5311822807b3114647a9f | 4,667 | py | Python | mylib/dataset/coco.py | duducheng/deeplabv3p_gluon | fd8e3e8d834838a9a221785b825499c62cee578f | [
"Apache-2.0"
] | 66 | 2018-07-20T04:01:41.000Z | 2021-11-08T10:40:49.000Z | mylib/dataset/coco.py | duducheng/deeplabv3p_gluon | fd8e3e8d834838a9a221785b825499c62cee578f | [
"Apache-2.0"
] | 6 | 2018-08-16T08:06:39.000Z | 2020-11-28T13:07:21.000Z | mylib/dataset/coco.py | duducheng/deeplabv3p_gluon | fd8e3e8d834838a9a221785b825499c62cee578f | [
"Apache-2.0"
] | 11 | 2018-07-20T18:00:29.000Z | 2020-04-28T15:21:58.000Z | # raise NotImplementedError("Did not check!")
"""MSCOCO Semantic Segmentation pretraining for VOC."""
import os
from tqdm import trange
from PIL import Image, ImageOps, ImageFilter
import numpy as np
import pickle
from gluoncv.data.segbase import SegmentationDataset
class COCOSegmentation(SegmentationDataset):
... | 40.582609 | 92 | 0.555817 | 570 | 4,667 | 4.410526 | 0.35614 | 0.026253 | 0.0358 | 0.044551 | 0.190931 | 0.14638 | 0.14638 | 0.130469 | 0.08035 | 0.045346 | 0 | 0.023096 | 0.313478 | 4,667 | 114 | 93 | 40.938596 | 0.761548 | 0.063424 | 0 | 0.052083 | 0 | 0 | 0.123536 | 0.031688 | 0 | 0 | 0 | 0 | 0.010417 | 1 | 0.0625 | false | 0 | 0.083333 | 0.010417 | 0.229167 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35fd4da34b0954ed2f821de46d87379191733efa | 1,045 | py | Python | find_other_news_sources.py | sr33/OtherNewsSources | 17857381a5690d5e89d4a034f1fc60f61c2377dc | [
"MIT"
] | 10 | 2015-07-17T09:57:38.000Z | 2020-05-24T20:09:20.000Z | find_other_news_sources.py | sr33/OtherNewsSources | 17857381a5690d5e89d4a034f1fc60f61c2377dc | [
"MIT"
] | null | null | null | find_other_news_sources.py | sr33/OtherNewsSources | 17857381a5690d5e89d4a034f1fc60f61c2377dc | [
"MIT"
] | null | null | null | # __author__ = 'sree'
import urllib2
from lxml import html
import requests
def get_page_tree(url=None):
page = requests.get(url=url, verify=False)
return html.fromstring(page.text)
def get_title(url=None):
tree = get_page_tree(url=url)
return tree.xpath('//title//text()')[0].strip().split(' -')[0]
d... | 40.192308 | 119 | 0.702392 | 153 | 1,045 | 4.503268 | 0.398693 | 0.058055 | 0.092888 | 0.060958 | 0.111756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005754 | 0.168421 | 1,045 | 25 | 120 | 41.8 | 0.787112 | 0.109091 | 0 | 0 | 0 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35fda7f9b73a414c879824f59fa81da72f267f5a | 35,235 | py | Python | code/client/munkilib/adobeutils/adobeinfo.py | Rippling/munki | 115832687d4411ca825202ec82d9a27053fef7c8 | [
"Apache-2.0"
] | 1 | 2021-10-06T12:56:14.000Z | 2021-10-06T12:56:14.000Z | code/client/munkilib/adobeutils/adobeinfo.py | Rippling/munki | 115832687d4411ca825202ec82d9a27053fef7c8 | [
"Apache-2.0"
] | null | null | null | code/client/munkilib/adobeutils/adobeinfo.py | Rippling/munki | 115832687d4411ca825202ec82d9a27053fef7c8 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# Copyright 2009-2020 Greg Neagle.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 44.657795 | 80 | 0.565319 | 3,529 | 35,235 | 5.51771 | 0.176254 | 0.01325 | 0.012325 | 0.010066 | 0.267461 | 0.21667 | 0.175534 | 0.151551 | 0.141896 | 0.128903 | 0 | 0.007393 | 0.351213 | 35,235 | 788 | 81 | 44.714467 | 0.844401 | 0.222903 | 0 | 0.279693 | 0 | 0 | 0.125817 | 0.012375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030651 | false | 0 | 0.015326 | 0 | 0.103448 | 0.003831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
35ff5a9fe6f25456cafae5f86dcd151f7638267e | 35,016 | py | Python | poshc2/server/Tasks.py | slackr/PoshC2 | d4804f1f534dac53b95dd6dd6578431beaf79360 | [
"BSD-3-Clause"
] | 1,504 | 2016-07-12T04:14:00.000Z | 2022-03-31T02:59:30.000Z | poshc2/server/Tasks.py | PhilKeeble/PoshC2 | 498b30097e12e46b5aa454feaeaa4bbae3c04c0d | [
"BSD-3-Clause"
] | 139 | 2016-10-13T10:41:18.000Z | 2022-03-31T13:22:47.000Z | poshc2/server/Tasks.py | PhilKeeble/PoshC2 | 498b30097e12e46b5aa454feaeaa4bbae3c04c0d | [
"BSD-3-Clause"
] | 377 | 2016-07-12T03:10:03.000Z | 2022-03-31T10:04:13.000Z | import datetime, hashlib, base64, traceback, os, re
import poshc2.server.database.DB as DB
from poshc2.Colours import Colours
from poshc2.server.Config import ModulesDirectory, DownloadsDirectory, ReportsDirectory
from poshc2.server.Implant import Implant
from poshc2.server.Core import decrypt, encrypt, default_respon... | 64.486188 | 474 | 0.499714 | 3,292 | 35,016 | 5.232989 | 0.111179 | 0.019156 | 0.022639 | 0.019504 | 0.614965 | 0.565275 | 0.521565 | 0.468393 | 0.430951 | 0.406977 | 0 | 0.015383 | 0.394791 | 35,016 | 542 | 475 | 64.605166 | 0.797518 | 0.010681 | 0 | 0.458414 | 0 | 0.007737 | 0.183167 | 0.010856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003868 | false | 0.005803 | 0.019342 | 0 | 0.03675 | 0.166344 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4005a008048988474573247edb485bd20d1bb6d | 1,029 | py | Python | Leetcode/89.grayCode.py | Song2017/Leetcode_python | 99d9f3cec0e47ddab6ec107392a6b33bf6c1d046 | [
"MIT"
] | 1 | 2019-05-14T00:55:30.000Z | 2019-05-14T00:55:30.000Z | LeetcodeView/89.grayCode.md | Song2017/Leetcode_python | 99d9f3cec0e47ddab6ec107392a6b33bf6c1d046 | [
"MIT"
] | null | null | null | LeetcodeView/89.grayCode.md | Song2017/Leetcode_python | 99d9f3cec0e47ddab6ec107392a6b33bf6c1d046 | [
"MIT"
] | null | null | null | class Solution:
'''
格雷编码是一个二进制数字系统,在该系统中,两个连续的数值仅有一个位数的差异。
给定一个代表编码总位数的非负整数 n,打印其格雷编码序列。格雷编码序列必须以 0 开头。
输入: 2
输出: [0,1,3,2]
解释: 00 - 0, 01 - 1, 11 - 3, 10 - 2
'''
def grayCode(self, n: int):
# 观察连续数值对应的格雷编码序列对应的关系
# 追加二进制位到首位, 0: 数值仍为前一个数组的值, 1: 前一个数组的每个元素 + 2的(n-1)次幂
... | 25.725 | 62 | 0.433431 | 150 | 1,029 | 2.973333 | 0.426667 | 0.013453 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19637 | 0.411079 | 1,029 | 39 | 63 | 26.384615 | 0.539604 | 0.473275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.357143 | 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 |
c400620022eebd6f0df3a706d1f575d077a9ad78 | 6,781 | py | Python | object/test.py | SkinLesionsResearch/NCPL | 562e9664f77e14ed9b2655b82e8498b8a8ce5d2d | [
"MIT"
] | null | null | null | object/test.py | SkinLesionsResearch/NCPL | 562e9664f77e14ed9b2655b82e8498b8a8ce5d2d | [
"MIT"
] | null | null | null | object/test.py | SkinLesionsResearch/NCPL | 562e9664f77e14ed9b2655b82e8498b8a8ce5d2d | [
"MIT"
] | null | null | null | import argparse
import os, sys
os.chdir("/home/jackie/ResearchArea/SkinCancerResearch/semi_skin_cancer")
sys.path.append("/home/jackie/ResearchArea/SkinCancerResearch/semi_skin_cancer")
print(os.getcwd())
import os.path as osp
import torchvision
import numpy as np
import torch
# import torch.nn as nn
# impo... | 38.971264 | 113 | 0.626309 | 890 | 6,781 | 4.557303 | 0.264045 | 0.054241 | 0.070513 | 0.031065 | 0.350345 | 0.321499 | 0.31213 | 0.245562 | 0.190828 | 0.17357 | 0 | 0.016384 | 0.234921 | 6,781 | 173 | 114 | 39.196532 | 0.76542 | 0.036278 | 0 | 0.212121 | 0 | 0 | 0.126142 | 0.040787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037879 | false | 0 | 0.113636 | 0 | 0.181818 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4038c43fba700001a9ef9e5ce94db202c34c7bb | 2,247 | py | Python | allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py | urigoren/allennlp | 236e1fd01ca30409cd736625901292609009f5c4 | [
"Apache-2.0"
] | 1 | 2020-03-30T14:07:02.000Z | 2020-03-30T14:07:02.000Z | allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py | urigoren/allennlp | 236e1fd01ca30409cd736625901292609009f5c4 | [
"Apache-2.0"
] | 123 | 2020-04-26T02:41:30.000Z | 2021-08-02T21:18:00.000Z | allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py | urigoren/allennlp | 236e1fd01ca30409cd736625901292609009f5c4 | [
"Apache-2.0"
] | 2 | 2019-12-21T05:58:44.000Z | 2021-08-16T07:41:21.000Z | import numpy as np
import pytest
import torch
from numpy.testing import assert_almost_equal
from allennlp.common.checks import ConfigurationError
from allennlp.common.testing import AllenNlpTestCase
from allennlp.data import Vocabulary
from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder
class T... | 44.94 | 93 | 0.696484 | 296 | 2,247 | 5.047297 | 0.236486 | 0.029451 | 0.032129 | 0.032129 | 0.485944 | 0.394913 | 0.319946 | 0.319946 | 0.317269 | 0.309237 | 0 | 0.034426 | 0.185581 | 2,247 | 49 | 94 | 45.857143 | 0.781967 | 0 | 0 | 0.238095 | 0 | 0 | 0.00445 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.119048 | false | 0 | 0.190476 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c404204e3c66a1ac63a04d196c9f1142497f7ef7 | 1,020 | py | Python | dqn/ops.py | khurshedmemon/DQN-UN-TL | 1a981feff66825b6c35aafd08aba29d3c08ed745 | [
"Apache-2.0"
] | 1 | 2021-12-01T15:08:44.000Z | 2021-12-01T15:08:44.000Z | dqn/ops.py | khurshedmemon/DQN-UN-TL | 1a981feff66825b6c35aafd08aba29d3c08ed745 | [
"Apache-2.0"
] | 1 | 2021-12-02T06:09:05.000Z | 2021-12-02T06:09:05.000Z | dqn/ops.py | khurshedmemon/DQN-UN-TL | 1a981feff66825b6c35aafd08aba29d3c08ed745 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import numpy as np
def clipped_error(x):
# Huber loss
try:
return tf.select(tf.abs(x) < 1.0, 0.5 * tf.square(x), tf.abs(x) - 0.5 )
except:
return tf.where(tf.abs(x) < 1.0, 0.5 * tf.square(x), tf.abs(x) - 0.5 )
def linear(input_, output_size, stddev=0.02, bias_star... | 32.903226 | 107 | 0.582353 | 158 | 1,020 | 3.626582 | 0.386076 | 0.034904 | 0.041885 | 0.024433 | 0.094241 | 0.094241 | 0.094241 | 0.094241 | 0.094241 | 0.094241 | 0 | 0.035135 | 0.27451 | 1,020 | 30 | 108 | 34 | 0.739189 | 0.096078 | 0 | 0 | 0 | 0 | 0.017429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c40422c343f9bc25ecff00b38032cd67afe03520 | 4,081 | py | Python | cellsium/model/initialization.py | modsim/CellSium | 8c3f4f5ccf84fa5555206d01cc3359c89071dcba | [
"BSD-2-Clause"
] | null | null | null | cellsium/model/initialization.py | modsim/CellSium | 8c3f4f5ccf84fa5555206d01cc3359c89071dcba | [
"BSD-2-Clause"
] | null | null | null | cellsium/model/initialization.py | modsim/CellSium | 8c3f4f5ccf84fa5555206d01cc3359c89071dcba | [
"BSD-2-Clause"
] | 1 | 2021-12-29T23:19:17.000Z | 2021-12-29T23:19:17.000Z | """Cell parameter random initializations."""
from typing import Any, Dict
import numpy as np
from ..parameters import (
Height,
NewCellBendLowerLower,
NewCellBendLowerUpper,
NewCellBendOverallLower,
NewCellBendOverallUpper,
NewCellBendUpperLower,
NewCellBendUpperUpper,
NewCellLength1Me... | 32.133858 | 81 | 0.589561 | 310 | 4,081 | 7.667742 | 0.3 | 0.044173 | 0.050484 | 0.063105 | 0.262095 | 0.21077 | 0.179638 | 0.154817 | 0.154817 | 0.038704 | 0 | 0.012853 | 0.332762 | 4,081 | 126 | 82 | 32.388889 | 0.860081 | 0.06224 | 0 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 1 | 0.060606 | false | 0 | 0.040404 | 0.040404 | 0.20202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4049f3019aff074a372d03e83e2c871a888286d | 7,540 | py | Python | QAOA_MaxClique.py | bernovie/QAOA-MaxClique | 59b795480e019ae19d25ace274bdb86714ed49e2 | [
"MIT"
] | 2 | 2020-06-19T06:58:11.000Z | 2021-05-18T07:17:22.000Z | QAOA_MaxClique.py | bernovie/QAOA-MaxClique | 59b795480e019ae19d25ace274bdb86714ed49e2 | [
"MIT"
] | 1 | 2020-09-21T20:26:46.000Z | 2020-09-21T20:26:46.000Z | QAOA_MaxClique.py | bernovie/QAOA-MaxClique | 59b795480e019ae19d25ace274bdb86714ed49e2 | [
"MIT"
] | 1 | 2020-09-20T12:42:02.000Z | 2020-09-20T12:42:02.000Z | import qiskit
import numpy as np
import matplotlib.pyplot as plt
import json
from graph import *
# Random comment
P =1
def makeCircuit(inbits, outbits):
q = qiskit.QuantumRegister(inbits+outbits)
c = qiskit.ClassicalRegister(inbits+outbits)
qc = qiskit.QuantumCircuit(q, c)
q_input = [q[i] for i in ran... | 31.157025 | 116 | 0.589125 | 1,014 | 7,540 | 4.357002 | 0.254438 | 0.023087 | 0.024445 | 0.022635 | 0.318244 | 0.267542 | 0.224536 | 0.177456 | 0.147125 | 0.118153 | 0 | 0.031101 | 0.275066 | 7,540 | 241 | 117 | 31.286307 | 0.777168 | 0.230769 | 0 | 0.161972 | 0 | 0 | 0.042557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.035211 | 0 | 0.105634 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c407355017835f143ce6a0c84504a53fa41a83ee | 15,959 | py | Python | src/learn_mtfixbmodel.py | ornithos/pytorch-mtds-mocap | 3ec10387d3d897e9a20d789bd4a3782a047519f7 | [
"MIT"
] | 2 | 2022-02-09T17:53:31.000Z | 2022-03-02T11:25:35.000Z | src/learn_mtfixbmodel.py | ornithos/pytorch-mtds-mocap | 3ec10387d3d897e9a20d789bd4a3782a047519f7 | [
"MIT"
] | null | null | null | src/learn_mtfixbmodel.py | ornithos/pytorch-mtds-mocap | 3ec10387d3d897e9a20d789bd4a3782a047519f7 | [
"MIT"
] | null | null | null | """Simple code for training an RNN for motion prediction."""
import os
import sys
import time
import numpy as np
import torch
import torch.optim as optim
from torch.autograd import Variable
import mtfixb_model
import mtfixb_model2
import parseopts
def create_model(args, total_num_batches):
"""Create MT model a... | 33.739958 | 119 | 0.59208 | 2,163 | 15,959 | 4.153028 | 0.178918 | 0.019593 | 0.025047 | 0.021151 | 0.469776 | 0.416565 | 0.381164 | 0.342202 | 0.315596 | 0.291773 | 0 | 0.020548 | 0.286421 | 15,959 | 472 | 120 | 33.811441 | 0.768265 | 0.2195 | 0 | 0.364912 | 0 | 0 | 0.056948 | 0.00179 | 0 | 0 | 0 | 0 | 0.007018 | 1 | 0.042105 | false | 0 | 0.035088 | 0.003509 | 0.136842 | 0.038596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c408095eb7ab9da191765321215bacfdbf223067 | 11,260 | py | Python | python/tvm/topi/nn/conv2d_transpose.py | ccjoechou/tvm | 779dc51e1332f417fa4c304b595ce76891dfc33a | [
"Apache-2.0"
] | 4 | 2020-04-14T12:31:45.000Z | 2020-11-02T14:20:59.000Z | python/tvm/topi/nn/conv2d_transpose.py | ccjoechou/tvm | 779dc51e1332f417fa4c304b595ce76891dfc33a | [
"Apache-2.0"
] | null | null | null | python/tvm/topi/nn/conv2d_transpose.py | ccjoechou/tvm | 779dc51e1332f417fa4c304b595ce76891dfc33a | [
"Apache-2.0"
] | 1 | 2020-11-02T14:21:45.000Z | 2020-11-02T14:21:45.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 34.329268 | 99 | 0.653819 | 1,624 | 11,260 | 4.320197 | 0.163793 | 0.017959 | 0.011403 | 0.015964 | 0.494441 | 0.47748 | 0.465222 | 0.448546 | 0.401368 | 0.384835 | 0 | 0.010917 | 0.243428 | 11,260 | 327 | 100 | 34.434251 | 0.812654 | 0.3627 | 0 | 0.333333 | 0 | 0.006667 | 0.061913 | 0.007042 | 0 | 0 | 0 | 0 | 0.026667 | 1 | 0.053333 | false | 0 | 0.046667 | 0 | 0.186667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c40810867a32dd051fe382d63b22b8bac17db49f | 91,964 | py | Python | econml/solutions/causal_analysis/_causal_analysis.py | huigangchen/EconML | 9a56d651e2964ebd05144de52f577f9044a22a0b | [
"BSD-3-Clause"
] | 1,846 | 2019-05-06T21:14:19.000Z | 2022-03-31T11:52:21.000Z | econml/solutions/causal_analysis/_causal_analysis.py | cleeway/EconML | fb2d1139f6c271d4b9a24d9c6d122d4d0891afb0 | [
"BSD-3-Clause"
] | 393 | 2019-05-08T00:55:32.000Z | 2022-03-31T14:26:16.000Z | econml/solutions/causal_analysis/_causal_analysis.py | cleeway/EconML | fb2d1139f6c271d4b9a24d9c6d122d4d0891afb0 | [
"BSD-3-Clause"
] | 414 | 2019-05-14T03:51:08.000Z | 2022-03-31T09:32:17.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Module for assessing causal feature importance."""
import warnings
from collections import OrderedDict, namedtuple
import joblib
import lightgbm as lgb
from numba.core.utils import erase_traceback
import numpy as np
from... | 51.319196 | 119 | 0.603562 | 10,916 | 91,964 | 4.922041 | 0.098296 | 0.005025 | 0.005732 | 0.00737 | 0.42398 | 0.369093 | 0.340282 | 0.314635 | 0.299094 | 0.276331 | 0 | 0.007465 | 0.327063 | 91,964 | 1,791 | 120 | 51.34785 | 0.860728 | 0.351018 | 0 | 0.222689 | 0 | 0.003151 | 0.107 | 0.012947 | 0 | 0 | 0 | 0.006142 | 0.02416 | 1 | 0.063025 | false | 0.007353 | 0.02521 | 0.011555 | 0.183824 | 0.005252 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c40cb374c8f69dbfb3dd6a423d469c3fd1845232 | 2,639 | py | Python | examples/gan.py | maxferrari/Torchelie | d133f227bebc3c4cbbb6167bd1fae815d2b5fa81 | [
"MIT"
] | 117 | 2019-07-14T20:39:48.000Z | 2021-10-17T19:16:48.000Z | examples/gan.py | maxferrari/Torchelie | d133f227bebc3c4cbbb6167bd1fae815d2b5fa81 | [
"MIT"
] | 41 | 2019-12-06T23:56:44.000Z | 2021-08-02T09:13:30.000Z | examples/gan.py | maxferrari/Torchelie | d133f227bebc3c4cbbb6167bd1fae815d2b5fa81 | [
"MIT"
] | 13 | 2019-09-22T00:46:54.000Z | 2021-04-09T15:53:15.000Z | import argparse
import copy
import torch
from torchvision.datasets import MNIST, CIFAR10
import torchvision.transforms as TF
import torchelie as tch
import torchelie.loss.gan.hinge as gan_loss
from torchelie.recipes.gan import GANRecipe
import torchelie.callbacks as tcb
from torchelie.recipes import Recipe
parser =... | 29.322222 | 84 | 0.61349 | 362 | 2,639 | 4.337017 | 0.328729 | 0.035669 | 0.017197 | 0.026752 | 0.211465 | 0.149682 | 0.079618 | 0.079618 | 0.079618 | 0.079618 | 0 | 0.028443 | 0.240621 | 2,639 | 89 | 85 | 29.651685 | 0.75499 | 0 | 0 | 0.111111 | 0 | 0 | 0.053429 | 0.008336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.138889 | 0 | 0.236111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c40e9360b8918f73e4cf97eef85c363173d03ce0 | 21,719 | py | Python | hs_geo_raster_resource/serialization.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | 1 | 2018-09-17T13:07:29.000Z | 2018-09-17T13:07:29.000Z | hs_geo_raster_resource/serialization.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | 100 | 2017-08-01T23:48:04.000Z | 2018-04-03T13:17:27.000Z | hs_geo_raster_resource/serialization.py | tommac7/hydroshare | 87c4543a55f98103d2614bf4c47f7904c3f9c029 | [
"BSD-3-Clause"
] | 2 | 2017-07-27T20:41:33.000Z | 2017-07-27T22:40:57.000Z | import xml.sax
import rdflib
from django.db import transaction
from hs_core.serialization import GenericResourceMeta
class RasterResourceMeta(GenericResourceMeta):
"""
Lightweight class for representing metadata of RasterResource instances.
"""
def __init__(self):
super(RasterResourceMeta, s... | 47.215217 | 97 | 0.55776 | 2,111 | 21,719 | 5.529607 | 0.089531 | 0.031183 | 0.066821 | 0.029127 | 0.541335 | 0.504669 | 0.466547 | 0.391416 | 0.336417 | 0.314829 | 0 | 0.002314 | 0.36323 | 21,719 | 459 | 98 | 47.318083 | 0.841721 | 0.029605 | 0 | 0.403694 | 0 | 0 | 0.159874 | 0.018044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044855 | false | 0 | 0.010554 | 0.007916 | 0.084433 | 0.010554 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c410261f2af66c058c52c7122ed945e7bc1bf8e8 | 857 | py | Python | setup.py | mrocklin/pygdf | 2de9407427da9497ebdf8951a12857be0fab31bb | [
"Apache-2.0"
] | 5 | 2019-01-15T12:31:49.000Z | 2021-03-05T21:17:13.000Z | setup.py | mrocklin/pygdf | 2de9407427da9497ebdf8951a12857be0fab31bb | [
"Apache-2.0"
] | 1 | 2019-06-18T20:58:21.000Z | 2019-06-18T20:58:21.000Z | setup.py | mrocklin/pygdf | 2de9407427da9497ebdf8951a12857be0fab31bb | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
import versioneer
packages = ['pygdf',
'pygdf.tests',
]
install_requires = [
'numba',
]
setup(name='pygdf',
description="GPU Dataframe",
version=versioneer.get_version(),
classifiers=[
# "Development Status :: 4 - Beta",
"In... | 24.485714 | 54 | 0.588098 | 76 | 857 | 6.552632 | 0.684211 | 0.090361 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008117 | 0.281214 | 857 | 34 | 55 | 25.205882 | 0.800325 | 0.185531 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c415cf0f1a05df7a1ed0253bc2693cc05cb80cc0 | 4,938 | py | Python | gumtree_watchdog/db.py | undeadparrot/gumtree-telegram-watchdog | 48db6b37876c520bd5d2e0f9a97e19b04d70e12f | [
"MIT"
] | 1 | 2019-03-04T15:38:01.000Z | 2019-03-04T15:38:01.000Z | gumtree_watchdog/db.py | undeadparrot/gumtree-telegram-watchdog | 48db6b37876c520bd5d2e0f9a97e19b04d70e12f | [
"MIT"
] | null | null | null | gumtree_watchdog/db.py | undeadparrot/gumtree-telegram-watchdog | 48db6b37876c520bd5d2e0f9a97e19b04d70e12f | [
"MIT"
] | null | null | null | import os
import os.path
import sqlite3
import logging
from typing import List
from gumtree_watchdog.types import Listing, Contract, ListingWithChatId
TConn = sqlite3.Connection
DB_PATH = os.environ.get('GUMTREE_DB')
def get_connection() -> TConn:
if not DB_PATH:
raise Exception("Please specify Sqlite3 db... | 28.37931 | 92 | 0.584447 | 566 | 4,938 | 4.876325 | 0.183746 | 0.101449 | 0.023188 | 0.050725 | 0.401812 | 0.297464 | 0.223551 | 0.173551 | 0.144565 | 0.144565 | 0 | 0.005093 | 0.324018 | 4,938 | 173 | 93 | 28.543353 | 0.82175 | 0 | 0 | 0.375 | 0 | 0 | 0.515188 | 0.004455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080882 | false | 0 | 0.044118 | 0.007353 | 0.191176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c418d7e5abef02bb7493320d6cd67da6e01f6114 | 1,142 | py | Python | async-functions.py | cheezyy/python_scripts | 9db713ca085c6f1fd5ec63d79762a470093e028a | [
"MIT"
] | null | null | null | async-functions.py | cheezyy/python_scripts | 9db713ca085c6f1fd5ec63d79762a470093e028a | [
"MIT"
] | null | null | null | async-functions.py | cheezyy/python_scripts | 9db713ca085c6f1fd5ec63d79762a470093e028a | [
"MIT"
] | null | null | null | '''
Chad Meadowcroft
Credit to Sentdex (https://pythonprogramming.net/)
'''
import asyncio
async def find_divisibles(inrange, div_by):
# Define division function with async functionality
print("finding nums in range {} divisible by {}".format(inrange, div_by))
located = []
for i in range(inrange):
... | 29.282051 | 77 | 0.645359 | 148 | 1,142 | 4.817568 | 0.554054 | 0.078541 | 0.050491 | 0.075736 | 0.230014 | 0.112202 | 0.112202 | 0.112202 | 0.112202 | 0 | 0 | 0.058824 | 0.240806 | 1,142 | 39 | 78 | 29.282051 | 0.763552 | 0.158494 | 0 | 0 | 0 | 0 | 0.092437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.037037 | 0 | 0.111111 | 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 |
c41996b81d3533341a720d569e52c1e49f5c467b | 1,114 | py | Python | setup.py | jackaraz/ma5_expert | 4d359b5110874c2f44f81e10307bd1ea3f9e20d0 | [
"MIT"
] | 2 | 2021-04-06T08:37:41.000Z | 2022-01-07T09:15:25.000Z | setup.py | jackaraz/ma5_expert | 4d359b5110874c2f44f81e10307bd1ea3f9e20d0 | [
"MIT"
] | null | null | null | setup.py | jackaraz/ma5_expert | 4d359b5110874c2f44f81e10307bd1ea3f9e20d0 | [
"MIT"
] | null | null | null | from setuptools import setup
import os
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
requirements = []
if os.path.isfile("./requirements.txt"):
with open("requirements.txt", "r") as f:
requirements = f.read()
requirements = [x for x in requirements.split("\n") if ... | 29.315789 | 67 | 0.630162 | 130 | 1,114 | 5.292308 | 0.623077 | 0.065407 | 0.049419 | 0.087209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014874 | 0.21544 | 1,114 | 37 | 68 | 30.108108 | 0.772311 | 0 | 0 | 0.058824 | 0 | 0 | 0.386894 | 0.039497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c41a92320c98d0d79eebb92f7c12dfc1830b9325 | 4,977 | py | Python | apitest/api_test/common/auth.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | null | null | null | apitest/api_test/common/auth.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | 3 | 2020-06-06T01:57:41.000Z | 2021-06-10T22:57:58.000Z | apitest/api_test/common/auth.py | willhuang1206/apitest | 4b41855710ba8f21788027da83a830f631e11f26 | [
"Apache-2.0"
] | null | null | null | from rest_framework.authentication import BaseAuthentication
from rest_framework import exceptions
from rest_framework.parsers import JSONParser
from django.conf import settings
import requests
from api_test.common import MD5
from api_test.models import ProjectMember
from django.contrib.auth.models import User,Group
fr... | 42.905172 | 166 | 0.569821 | 494 | 4,977 | 5.603239 | 0.267206 | 0.023844 | 0.027095 | 0.032514 | 0.277818 | 0.260477 | 0.240246 | 0.240246 | 0.240246 | 0.180275 | 0 | 0.007841 | 0.333735 | 4,977 | 116 | 167 | 42.905172 | 0.8269 | 0.006229 | 0 | 0.339623 | 0 | 0 | 0.061791 | 0.011953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.009434 | 0.084906 | 0 | 0.254717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c41c9ed8f0eeeb7bc96538ff09de8ee1da20fa88 | 4,113 | py | Python | tests/localyaml/test_localyaml.py | sbussetti/jenkins-job-builder | fc63f1439816d9022a2d538614b0b7592f96b454 | [
"Apache-2.0"
] | 1 | 2021-07-30T04:03:53.000Z | 2021-07-30T04:03:53.000Z | tests/localyaml/test_localyaml.py | sbussetti/jenkins-job-builder | fc63f1439816d9022a2d538614b0b7592f96b454 | [
"Apache-2.0"
] | 12 | 2020-05-29T05:33:48.000Z | 2020-09-29T13:02:29.000Z | tests/localyaml/test_localyaml.py | sbussetti/jenkins-job-builder | fc63f1439816d9022a2d538614b0b7592f96b454 | [
"Apache-2.0"
] | 2 | 2020-05-15T08:29:33.000Z | 2020-06-04T07:27:31.000Z | #!/usr/bin/env python
#
# Copyright 2013 Darragh Bailey
#
# 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... | 33.991736 | 87 | 0.699733 | 513 | 4,113 | 5.42885 | 0.356725 | 0.045242 | 0.025135 | 0.025853 | 0.324955 | 0.30772 | 0.258887 | 0.245601 | 0.245601 | 0.245601 | 0 | 0.006761 | 0.20885 | 4,113 | 120 | 88 | 34.275 | 0.849109 | 0.290542 | 0 | 0.37037 | 0 | 0 | 0.138256 | 0.06949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0.018519 | 0.12963 | 0.018519 | 0.425926 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c41dbd4f1116c76a73c6b7f3a90d3a40a1fa6018 | 24,625 | py | Python | seijibot.py | seiji56/bot-tac | b16b8a8a79d6ac2deb0476ab3a9a0e0b136b1d54 | [
"MIT"
] | null | null | null | seijibot.py | seiji56/bot-tac | b16b8a8a79d6ac2deb0476ab3a9a0e0b136b1d54 | [
"MIT"
] | null | null | null | seijibot.py | seiji56/bot-tac | b16b8a8a79d6ac2deb0476ab3a9a0e0b136b1d54 | [
"MIT"
] | null | null | null | from bot_interface import *
import math
class SeijiBot(BotBase):
def __init__(self):
self.initialized = False
def initialize(self, gamestate):
gamestate.log("Initializing...")
#Getting UID
self.uid = gamestate.bot.uid
gamestate.log("This ship has uid " + str(self.ui... | 37.884615 | 608 | 0.496853 | 3,137 | 24,625 | 3.83583 | 0.091807 | 0.018699 | 0.012715 | 0.015125 | 0.55273 | 0.517577 | 0.476523 | 0.428405 | 0.423585 | 0.419929 | 0 | 0.035947 | 0.383188 | 24,625 | 649 | 609 | 37.942989 | 0.756271 | 0.04597 | 0 | 0.410569 | 0 | 0 | 0.02089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042683 | false | 0 | 0.004065 | 0.006098 | 0.115854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c41fd9dec58d9f797e213eba1e8064f8aba14576 | 682 | py | Python | days/01-03-datetimes/code/100day_calc.py | rhelmstedter/100daysofcode-with-python-course | 076c99939b5641be541023f61c10ff30a7f05524 | [
"MIT"
] | null | null | null | days/01-03-datetimes/code/100day_calc.py | rhelmstedter/100daysofcode-with-python-course | 076c99939b5641be541023f61c10ff30a7f05524 | [
"MIT"
] | null | null | null | days/01-03-datetimes/code/100day_calc.py | rhelmstedter/100daysofcode-with-python-course | 076c99939b5641be541023f61c10ff30a7f05524 | [
"MIT"
] | null | null | null | from datetime import date, datetime, timedelta
import time
START_DATE = date(2021, 5, 25)
duration = timedelta(days=100)
def countdown():
event_delta = LAST_DAY_OF_SCHOOL - datetime.now()
print()
print("\tTime until school is out for summer 2021:", end="\n\n")
while event_delta.seconds > 0:
h... | 32.47619 | 104 | 0.668622 | 98 | 682 | 4.510204 | 0.510204 | 0.113122 | 0.063348 | 0.076923 | 0.18552 | 0.18552 | 0.18552 | 0.18552 | 0.18552 | 0 | 0 | 0.055453 | 0.206745 | 682 | 20 | 105 | 34.1 | 0.761553 | 0 | 0 | 0.125 | 0 | 0.0625 | 0.231672 | 0.035191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c42012e1044d2e28166a8361142bd8a07f4789f3 | 6,071 | py | Python | aggregathor/ea_datasource.py | big-data-lab-umbc/autodist | c8514b27cf5608f35254b63c4ac8093c7295a8e7 | [
"Apache-2.0"
] | null | null | null | aggregathor/ea_datasource.py | big-data-lab-umbc/autodist | c8514b27cf5608f35254b63c4ac8093c7295a8e7 | [
"Apache-2.0"
] | null | null | null | aggregathor/ea_datasource.py | big-data-lab-umbc/autodist | c8514b27cf5608f35254b63c4ac8093c7295a8e7 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import keras
import random
from keras.datasets import mnist
from keras import backend as K
K.set_floatx('float64')
class DataSource(object):
def __init__(self):
raise NotImplementedError()
def partitioned_by_rows(self, num_workers, test_reserve=.3):
raise NotImplementedError(... | 43.056738 | 135 | 0.653434 | 887 | 6,071 | 4.126268 | 0.155581 | 0.041803 | 0.053552 | 0.027869 | 0.351093 | 0.269945 | 0.215301 | 0.198361 | 0.164481 | 0.143169 | 0 | 0.023102 | 0.229946 | 6,071 | 140 | 136 | 43.364286 | 0.759786 | 0.114314 | 0 | 0.070707 | 0 | 0 | 0.021837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.050505 | 0.010101 | 0.252525 | 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 |
c4231b8d3eab02f60fcc36025477bf600813aa38 | 1,519 | py | Python | py_at/OrderItem.py | kanghua309/at_py | 8fa7943a9de52cd81d235f06b57a25aa07fb715b | [
"Apache-2.0"
] | null | null | null | py_at/OrderItem.py | kanghua309/at_py | 8fa7943a9de52cd81d235f06b57a25aa07fb715b | [
"Apache-2.0"
] | null | null | null | py_at/OrderItem.py | kanghua309/at_py | 8fa7943a9de52cd81d235f06b57a25aa07fb715b | [
"Apache-2.0"
] | 2 | 2018-09-19T16:07:26.000Z | 2019-11-09T15:46:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'HaiFeng'
__mtime__ = '2016/8/16'
"""
import time
from py_at.EnumDefine import *
########################################################################
class OrderItem(object):
"""策略信号"""
#----------------------------------------------... | 26.649123 | 142 | 0.578012 | 154 | 1,519 | 5.564935 | 0.474026 | 0.070012 | 0.063011 | 0.060677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026902 | 0.143515 | 1,519 | 57 | 142 | 26.649123 | 0.631822 | 0.174457 | 0 | 0 | 0 | 0.027778 | 0.109957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4253c3edd906a40552637d516df1601047e0dd5 | 669 | py | Python | app/model/compare_users.py | dwdraugr/YADS | c8036d8196a3158636aaa4f1910033e70ec8ecb4 | [
"Apache-2.0"
] | 3 | 2019-09-02T11:26:58.000Z | 2019-12-06T15:54:38.000Z | app/model/compare_users.py | dwdraugr/YADS | c8036d8196a3158636aaa4f1910033e70ec8ecb4 | [
"Apache-2.0"
] | null | null | null | app/model/compare_users.py | dwdraugr/YADS | c8036d8196a3158636aaa4f1910033e70ec8ecb4 | [
"Apache-2.0"
] | null | null | null | from app.model.model import Model
class CompareUsers(Model):
def get_compare_users(self, uid):
cursor = self.matchadb.cursor()
cursor.execute('SELECT whomid FROM likes WHERE whoid = %s', (uid,))
whomids = [item[0] for item in cursor.fetchall()]
if len(whomids) == 0:
rai... | 35.210526 | 75 | 0.560538 | 79 | 669 | 4.721519 | 0.518987 | 0.069705 | 0.101877 | 0.134048 | 0.241287 | 0.241287 | 0.241287 | 0.241287 | 0.241287 | 0 | 0 | 0.008929 | 0.330344 | 669 | 18 | 76 | 37.166667 | 0.823661 | 0 | 0 | 0 | 0 | 0 | 0.168909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 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 |
c425a0389a78978ea2d9dbb437a26224ad54fcc9 | 9,004 | py | Python | venv/Lib/site-packages/sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py | mokshagna517/recommendation_sys | bc8ced225dff3c93d619ff5da363f42d0aa0676c | [
"MIT"
] | 25 | 2019-03-08T01:03:03.000Z | 2022-02-14T17:38:32.000Z | venv/Lib/site-packages/sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py | mokshagna517/recommendation_sys | bc8ced225dff3c93d619ff5da363f42d0aa0676c | [
"MIT"
] | 9 | 2020-09-25T22:32:02.000Z | 2022-02-09T23:45:10.000Z | venv/Lib/site-packages/sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py | mokshagna517/recommendation_sys | bc8ced225dff3c93d619ff5da363f42d0aa0676c | [
"MIT"
] | 31 | 2019-01-15T20:16:50.000Z | 2022-03-01T05:47:38.000Z | import numpy as np
import pytest
from numpy.testing import assert_allclose
from numpy.testing import assert_array_equal
from sklearn.ensemble._hist_gradient_boosting.histogram import (
_build_histogram_naive,
_build_histogram,
_build_histogram_no_hessian,
_build_histogram_root_no_hessian,
_build_h... | 44.35468 | 79 | 0.691804 | 1,220 | 9,004 | 4.718852 | 0.102459 | 0.058711 | 0.059059 | 0.085635 | 0.71235 | 0.592322 | 0.557408 | 0.532048 | 0.483585 | 0.38388 | 0 | 0.020296 | 0.212017 | 9,004 | 202 | 80 | 44.574257 | 0.791121 | 0.040204 | 0 | 0.359756 | 0 | 0 | 0.03475 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4263856e2d9e9e21750aa2037ab8e37b21086eb | 2,407 | py | Python | apps/user/models.py | mrf-foundation/ckios_v1 | 3556a99ba5e01f00e137fd124903ace77d2cba28 | [
"Apache-2.0"
] | null | null | null | apps/user/models.py | mrf-foundation/ckios_v1 | 3556a99ba5e01f00e137fd124903ace77d2cba28 | [
"Apache-2.0"
] | null | null | null | apps/user/models.py | mrf-foundation/ckios_v1 | 3556a99ba5e01f00e137fd124903ace77d2cba28 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django import forms
from django.contrib.auth.models import User
from PIL import Image
from django.utils.timezone import now
class Profile(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
image = models.ImageField(upload_to="up... | 44.574074 | 103 | 0.658912 | 294 | 2,407 | 5.319728 | 0.309524 | 0.077366 | 0.098465 | 0.147698 | 0.414322 | 0.398338 | 0.398338 | 0.398338 | 0.398338 | 0.330563 | 0 | 0.011831 | 0.192356 | 2,407 | 54 | 104 | 44.574074 | 0.792695 | 0.057333 | 0 | 0.25641 | 0 | 0 | 0.16313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0.025641 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c429c3cef7b7daf43f4b36c099ac1e6ca683a4ff | 19,880 | py | Python | slt/chmm/train.py | paper-submit-account/Sparse-CHMM | 8a33dfe375a012cc0cc3324907135b74606a7b5d | [
"Apache-2.0"
] | null | null | null | slt/chmm/train.py | paper-submit-account/Sparse-CHMM | 8a33dfe375a012cc0cc3324907135b74606a7b5d | [
"Apache-2.0"
] | null | null | null | slt/chmm/train.py | paper-submit-account/Sparse-CHMM | 8a33dfe375a012cc0cc3324907135b74606a7b5d | [
"Apache-2.0"
] | null | null | null | import os
import logging
import numpy as np
from typing import Optional
import torch
from torch.utils.data import DataLoader
from ..eval import Metric
from .dataset import CHMMBaseDataset
from .dataset import collate_fn as default_collate_fn
logger = logging.getLogger(__name__)
OUT_RECALL = 0.9
OUT_PRECISION = 0.8
... | 38.452611 | 118 | 0.604326 | 2,392 | 19,880 | 4.805602 | 0.128763 | 0.022619 | 0.010439 | 0.009743 | 0.374076 | 0.310309 | 0.255328 | 0.225402 | 0.195041 | 0.167203 | 0 | 0.008679 | 0.304527 | 19,880 | 516 | 119 | 38.527132 | 0.822725 | 0.174648 | 0 | 0.242991 | 0 | 0 | 0.088644 | 0.014457 | 0 | 0 | 0 | 0.001938 | 0.003115 | 1 | 0.077882 | false | 0 | 0.028037 | 0.006231 | 0.152648 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c42c480ac786f98d925a893f66e8658af5b8de1c | 6,881 | py | Python | flask_obfuscateids/lib.py | mlenzen/flask-obfuscateids | 22319633b2685f2969bd67eae3fd09d2db6567f1 | [
"BSD-3-Clause"
] | null | null | null | flask_obfuscateids/lib.py | mlenzen/flask-obfuscateids | 22319633b2685f2969bd67eae3fd09d2db6567f1 | [
"BSD-3-Clause"
] | 1 | 2015-01-26T06:23:12.000Z | 2015-01-26T06:23:12.000Z | flask_obfuscateids/lib.py | mlenzen/flask-obfuscateids | 22319633b2685f2969bd67eae3fd09d2db6567f1 | [
"BSD-3-Clause"
] | null | null | null |
from random import Random
from collections_extended import setlist
# The version of seeding to use for random
SEED_VERSION = 2
# Common alphabets to use
ALPHANUM = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def shuffle(key... | 30.312775 | 98 | 0.748874 | 1,083 | 6,881 | 4.582641 | 0.171745 | 0.046746 | 0.075962 | 0.027403 | 0.215595 | 0.163812 | 0.137618 | 0.122507 | 0.10135 | 0.059641 | 0 | 0.008431 | 0.172649 | 6,881 | 226 | 99 | 30.446903 | 0.863341 | 0.420869 | 0 | 0.263158 | 0 | 0 | 0.045747 | 0.029674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0 | 0.017544 | 0 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c42d617d9e6dd57810d5d84da656ddd4e8d82bf1 | 5,891 | py | Python | b2sdk/v1/account_info.py | ehossack/b2-sdk-python | 034bec38671c0862b6956915993061359dbd51f6 | [
"MIT"
] | null | null | null | b2sdk/v1/account_info.py | ehossack/b2-sdk-python | 034bec38671c0862b6956915993061359dbd51f6 | [
"MIT"
] | null | null | null | b2sdk/v1/account_info.py | ehossack/b2-sdk-python | 034bec38671c0862b6956915993061359dbd51f6 | [
"MIT"
] | null | null | null | ######################################################################
#
# File: b2sdk/v1/account_info.py
#
# Copyright 2021 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from abc import abstractmeth... | 30.523316 | 186 | 0.636904 | 689 | 5,891 | 5.120464 | 0.243832 | 0.035714 | 0.063776 | 0.028912 | 0.401644 | 0.364512 | 0.335034 | 0.30839 | 0.287415 | 0.287415 | 0 | 0.010468 | 0.270243 | 5,891 | 192 | 187 | 30.682292 | 0.810188 | 0.251231 | 0 | 0.5 | 0 | 0 | 0.028457 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0.090909 | false | 0.018182 | 0.072727 | 0.009091 | 0.263636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c42ddcb403bc1b33c57898bd141f1f505a69b04f | 9,539 | py | Python | src/pyrin/security/hashing/handlers/pbkdf2.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/hashing/handlers/pbkdf2.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/hashing/handlers/pbkdf2.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
pbkdf2 hashing handler module.
"""
import hashlib
import re
import pyrin.configuration.services as config_services
import pyrin.security.utils.services as security_utils_services
from pyrin.security.hashing.decorators import hashing
from pyrin.security.hashing.handlers.base import Hashing... | 39.094262 | 93 | 0.588636 | 1,000 | 9,539 | 5.423 | 0.156 | 0.097179 | 0.033192 | 0.044809 | 0.398857 | 0.332657 | 0.266089 | 0.230684 | 0.216854 | 0.201365 | 0 | 0.003025 | 0.341545 | 9,539 | 243 | 94 | 39.255144 | 0.860373 | 0.417444 | 0 | 0.026316 | 0 | 0 | 0.070121 | 0.012901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.092105 | 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 |
c42e18634a20b6733cded46ea5994450f7ae4da0 | 8,652 | py | Python | src/steps/prepare_ner_data.py | allanwright/media-classifier | a0da0799cc0bd6ef7360012c362f9fab273286c6 | [
"MIT"
] | 2 | 2019-08-16T00:49:27.000Z | 2021-08-15T16:37:45.000Z | src/steps/prepare_ner_data.py | allanwright/media-classifier | a0da0799cc0bd6ef7360012c362f9fab273286c6 | [
"MIT"
] | 1 | 2020-02-19T10:17:56.000Z | 2020-07-26T09:42:49.000Z | src/steps/prepare_ner_data.py | allanwright/media-classifier | a0da0799cc0bd6ef7360012c362f9fab273286c6 | [
"MIT"
] | 1 | 2019-06-27T10:57:07.000Z | 2019-06-27T10:57:07.000Z | '''Defines a pipeline step which prepares training and test data for
named entity recognition.
'''
import ast
import json
import pickle
from mccore import EntityRecognizer
from mccore import ner
from mccore import persistence
import pandas as pd
from sklearn.utils import resample
from src.step import Step
class Pr... | 36.05 | 98 | 0.496417 | 903 | 8,652 | 4.604651 | 0.242525 | 0.034632 | 0.031265 | 0.025253 | 0.189033 | 0.118326 | 0.108706 | 0.072631 | 0.054353 | 0.054353 | 0 | 0.004928 | 0.390199 | 8,652 | 239 | 99 | 36.200837 | 0.783169 | 0.093967 | 0 | 0.129213 | 0 | 0 | 0.120959 | 0.024756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050562 | false | 0 | 0.050562 | 0.005618 | 0.146067 | 0.02809 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c42e88219fc65a0c84a4b46fac98f1c167ea84ef | 9,859 | py | Python | YoLo2Net.py | zhouyc2002/yolo2-cntk | 549cb46365d1750031eee90044b6262f9b94ff49 | [
"Apache-2.0"
] | 3 | 2017-07-27T00:05:39.000Z | 2021-02-25T08:56:10.000Z | YoLo2Net.py | zhouyc2002/yolo2-cntk | 549cb46365d1750031eee90044b6262f9b94ff49 | [
"Apache-2.0"
] | 1 | 2019-08-05T12:55:06.000Z | 2019-08-06T00:43:58.000Z | YoLo2Net.py | zhouyc2002/yolo2-cntk | 549cb46365d1750031eee90044b6262f9b94ff49 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 28 13:03:05 2017
@author: ZHOU Yuncheng
"""
import cntk as C
import _cntk_py
import cntk.layers
import cntk.initializer
import cntk.losses
import cntk.metrics
import cntk.logging
import cntk.io.transforms as xforms
import cntk.io
import cntk.train
import os
import numpy ... | 39.436 | 171 | 0.647733 | 1,226 | 9,859 | 4.96248 | 0.267537 | 0.010848 | 0.018738 | 0.013149 | 0.241453 | 0.180309 | 0.180309 | 0.154997 | 0.126726 | 0.126726 | 0 | 0.024735 | 0.253677 | 9,859 | 250 | 172 | 39.436 | 0.80212 | 0.104372 | 0 | 0.055249 | 0 | 0 | 0.051614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038674 | false | 0 | 0.077348 | 0 | 0.143646 | 0.033149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c431a581714f033cba2ab3f52062e3fdddf8f0b8 | 5,767 | py | Python | train_ema.py | qym7/WTALFakeLabels | 139738025ab69f287c4fe3c97389a637f1a0b376 | [
"MIT"
] | 3 | 2021-12-24T09:27:42.000Z | 2022-01-03T10:59:47.000Z | train_ema.py | qym7/WTALFakeLabels | 139738025ab69f287c4fe3c97389a637f1a0b376 | [
"MIT"
] | 1 | 2021-12-26T02:40:40.000Z | 2021-12-26T02:50:26.000Z | train_ema.py | qym7/WTALFakeLabels | 139738025ab69f287c4fe3c97389a637f1a0b376 | [
"MIT"
] | null | null | null | '''
Author: your name
Date: 2021-12-25 17:33:51
LastEditTime: 2021-12-29 10:10:14
LastEditors: Please set LastEditors
Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
FilePath: /yimingqin/code/WTAL-Uncertainty-Modeling/train.py
'''
import torch
import torch.nn a... | 38.704698 | 106 | 0.602393 | 791 | 5,767 | 4.14665 | 0.22756 | 0.027439 | 0.02378 | 0.021951 | 0.183537 | 0.089634 | 0.07622 | 0.067683 | 0.058537 | 0.058537 | 0 | 0.023504 | 0.269638 | 5,767 | 148 | 107 | 38.966216 | 0.755223 | 0.242934 | 0 | 0 | 0 | 0 | 0.021669 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.044944 | false | 0 | 0.05618 | 0 | 0.134831 | 0.067416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c43395c47fe6f6295740535434326b1a38c6e0c8 | 3,597 | py | Python | scan/fetchers/cli/cli_fetch_oteps_lxb.py | korenlev/calipso-cvim | 39278a5cf09c40b26a8a143ccc0c8d437961abc2 | [
"Apache-2.0"
] | null | null | null | scan/fetchers/cli/cli_fetch_oteps_lxb.py | korenlev/calipso-cvim | 39278a5cf09c40b26a8a143ccc0c8d437961abc2 | [
"Apache-2.0"
] | null | null | null | scan/fetchers/cli/cli_fetch_oteps_lxb.py | korenlev/calipso-cvim | 39278a5cf09c40b26a8a143ccc0c8d437961abc2 | [
"Apache-2.0"
] | null | null | null | ###############################################################################
# Copyright (c) 2017-2020 Koren Lev (Cisco Systems), #
# Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others #
# #
... | 43.865854 | 79 | 0.512093 | 398 | 3,597 | 4.459799 | 0.38191 | 0.027606 | 0.025352 | 0.012394 | 0.047324 | 0.047324 | 0.047324 | 0.047324 | 0.047324 | 0.047324 | 0 | 0.007809 | 0.323603 | 3,597 | 81 | 80 | 44.407407 | 0.721743 | 0.164304 | 0 | 0.083333 | 0 | 0 | 0.149529 | 0.008663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.033333 | 0 | 0.183333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c433cd175dc051909207a6a2031e2dac3b9eff92 | 612 | py | Python | appengine_config.py | ioriwitte/datavocab | 5f99c679a23a164ab93ac1bcaf9a30a01728ee37 | [
"Apache-2.0"
] | 13 | 2019-12-03T15:25:55.000Z | 2021-10-16T00:18:47.000Z | appengine_config.py | jesman/schemaorg | 6649c41e56a9724eaeed25dedf67736258f922bf | [
"Apache-2.0"
] | 11 | 2019-10-16T12:34:11.000Z | 2021-02-04T11:23:03.000Z | appengine_config.py | jesman/schemaorg | 6649c41e56a9724eaeed25dedf67736258f922bf | [
"Apache-2.0"
] | 9 | 2017-12-13T08:07:48.000Z | 2019-06-18T14:30:12.000Z | """`appengine_config` gets loaded when starting a new application instance."""
import vendor
# insert `lib` as a site directory so our `main` module can load
# third-party libraries, and override built-ins with newer
# versions.
vendor.add('lib')
import os
# Called only if the current namespace is not set.
def namespa... | 38.25 | 78 | 0.756536 | 85 | 612 | 5.329412 | 0.764706 | 0.06181 | 0.07064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001938 | 0.156863 | 612 | 15 | 79 | 40.8 | 0.875969 | 0.509804 | 0 | 0 | 0 | 0 | 0.162069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c433ed35cefab756913c6887caed7bdb03a9f9e5 | 270 | py | Python | 10_KNN_3D/main.py | ManMohan291/PyProgram | edcaa927bd70676bd14355acad7262ae2d32b8e5 | [
"MIT"
] | 2 | 2018-09-07T17:44:54.000Z | 2018-09-07T17:44:57.000Z | 10_KNN_3D/main.py | ManMohan291/PyProgram | edcaa927bd70676bd14355acad7262ae2d32b8e5 | [
"MIT"
] | null | null | null | 10_KNN_3D/main.py | ManMohan291/PyProgram | edcaa927bd70676bd14355acad7262ae2d32b8e5 | [
"MIT"
] | null | null | null |
import KNN as K
K.clearScreen()
dataTraining= K.loadData("dataTraining.txt")
X=dataTraining[:,0:3]
initial_centroids=K.listToArray([[3, 3,3],[6, 2,4],[8,5,7]])
idx=K.KMean_Run(X,initial_centroids,5)
K.SaveData(K.concatenateVectors(X,idx))
K.plotKNN2(X,idx)
| 12.272727 | 60 | 0.703704 | 46 | 270 | 4.065217 | 0.565217 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053498 | 0.1 | 270 | 21 | 61 | 12.857143 | 0.716049 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
c434ee7e49ec7f84e8ed989b7259f62a6d292fde | 3,793 | py | Python | hummingbird/graphics/state_plotbox.py | don4get/hummingbird | ec9da37b74f17702201f475d79b842f41694c095 | [
"MIT"
] | null | null | null | hummingbird/graphics/state_plotbox.py | don4get/hummingbird | ec9da37b74f17702201f475d79b842f41694c095 | [
"MIT"
] | null | null | null | hummingbird/graphics/state_plotbox.py | don4get/hummingbird | ec9da37b74f17702201f475d79b842f41694c095 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pyqtgraph as pg
from pyqtgraph import ViewBox
from hummingbird.graphics.plotter_args import PlotBoxArgs
from hummingbird.graphics.state_plot import StatePlot
class StatePlotBox:
def __init__(self, window, args):
""" Create a new plotbox wrapper object
Arguments:
... | 35.12037 | 108 | 0.627472 | 494 | 3,793 | 4.661943 | 0.289474 | 0.076422 | 0.019106 | 0.016934 | 0.117238 | 0.076422 | 0.028658 | 0 | 0 | 0 | 0 | 0.004751 | 0.278671 | 3,793 | 107 | 109 | 35.448598 | 0.836988 | 0.171896 | 0 | 0.104478 | 0 | 0 | 0.020449 | 0 | 0 | 0 | 0 | 0.009346 | 0 | 1 | 0.149254 | false | 0 | 0.059701 | 0.029851 | 0.283582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c43704aafbacbc4c468d75623400e2f129cb8ef2 | 6,544 | py | Python | panku/lambdaCollect.py | mccartney/panku-gdzie-jestes | 50a677170162c5255a24eacdbf8062ad876bee3f | [
"MIT"
] | null | null | null | panku/lambdaCollect.py | mccartney/panku-gdzie-jestes | 50a677170162c5255a24eacdbf8062ad876bee3f | [
"MIT"
] | null | null | null | panku/lambdaCollect.py | mccartney/panku-gdzie-jestes | 50a677170162c5255a24eacdbf8062ad876bee3f | [
"MIT"
] | null | null | null | #!/usr/bin/python
import requests
import boto3
import time
import geopy.distance
import xml.etree.ElementTree as ET
import itertools
import sys
import pickle
S3_BUCKET = "panku-gdzie-jestes-latest-storage"
class LatestPositionStorage(object):
def __init__(self, service):
self.objectName = "%s.latest" % service... | 38.046512 | 137 | 0.636461 | 765 | 6,544 | 5.4 | 0.304575 | 0.00581 | 0.030985 | 0.042605 | 0.32244 | 0.291697 | 0.22658 | 0.22658 | 0.213023 | 0.197531 | 0 | 0.027445 | 0.209352 | 6,544 | 171 | 138 | 38.269006 | 0.77097 | 0.034994 | 0 | 0.30597 | 0 | 0.074627 | 0.222117 | 0.059411 | 0 | 0 | 0 | 0.005848 | 0.022388 | 1 | 0.141791 | false | 0.029851 | 0.059701 | 0.052239 | 0.343284 | 0.037313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c43e6b9c823f200efcc9e2b9380194f0c4a67a27 | 9,604 | py | Python | terrain_relative_navigation/peak_extractor_algorithm.py | rschwa6308/Landmark-Based-TRN | 5d712221138ec6250ed5bd19caed49810f17014e | [
"Apache-2.0"
] | null | null | null | terrain_relative_navigation/peak_extractor_algorithm.py | rschwa6308/Landmark-Based-TRN | 5d712221138ec6250ed5bd19caed49810f17014e | [
"Apache-2.0"
] | null | null | null | terrain_relative_navigation/peak_extractor_algorithm.py | rschwa6308/Landmark-Based-TRN | 5d712221138ec6250ed5bd19caed49810f17014e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
PeakExtractor
A QGIS plugin
This plugin procedurally extracts morphological peaks from a given DEM.
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
... | 32.890411 | 138 | 0.570596 | 930 | 9,604 | 5.754839 | 0.323656 | 0.020179 | 0.025411 | 0.024664 | 0.2642 | 0.247758 | 0.208894 | 0.208894 | 0.208894 | 0.197309 | 0 | 0.009481 | 0.330071 | 9,604 | 291 | 139 | 33.003436 | 0.82235 | 0.239692 | 0 | 0.187135 | 0 | 0.005848 | 0.153111 | 0.024258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.023392 | 0.011696 | 0.152047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c43f47ff2e792fe2c4acc6424f3c4c0fdde3ecb2 | 3,657 | py | Python | manila/tests/api/views/test_quota_class_sets.py | openstack/manila | 1ebae738c235c6f1874ac7b11307e0d5fb567dba | [
"Apache-2.0"
] | 159 | 2015-01-02T09:35:15.000Z | 2022-01-04T11:51:34.000Z | manila/tests/api/views/test_quota_class_sets.py | openstack/manila | 1ebae738c235c6f1874ac7b11307e0d5fb567dba | [
"Apache-2.0"
] | 5 | 2015-07-24T09:28:21.000Z | 2020-11-20T04:33:51.000Z | manila/tests/api/views/test_quota_class_sets.py | openstack/manila | 1ebae738c235c6f1874ac7b11307e0d5fb567dba | [
"Apache-2.0"
] | 128 | 2015-01-05T22:52:28.000Z | 2021-12-29T14:00:58.000Z | # Copyright (c) 2017 Mirantis, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 41.089888 | 79 | 0.654908 | 430 | 3,657 | 5.269767 | 0.313953 | 0.105914 | 0.074581 | 0.088261 | 0.251103 | 0.192851 | 0.07767 | 0.044131 | 0.044131 | 0 | 0 | 0.022375 | 0.242275 | 3,657 | 88 | 80 | 41.556818 | 0.795381 | 0.165163 | 0 | 0.063492 | 0 | 0 | 0.165569 | 0.020737 | 0 | 0 | 0 | 0 | 0.031746 | 1 | 0.047619 | false | 0 | 0.079365 | 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 |
c442b7615909101f05f7c648d2d237c13e312b98 | 1,630 | py | Python | Modules/Biophotonics/python/iMC/msi/test/test_nrrdwriter.py | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | 5 | 2015-02-05T10:58:41.000Z | 2019-04-17T15:04:07.000Z | Modules/Biophotonics/python/iMC/msi/test/test_nrrdwriter.py | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Modules/Biophotonics/python/iMC/msi/test/test_nrrdwriter.py | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 13 09:52:47 2015
@author: wirkert
"""
import unittest
import os
import numpy as np
import msi.msimanipulations as msimani
from msi.io.nrrdreader import NrrdReader
from msi.io.nrrdwriter import NrrdWriter
from msi.test import helpers
class TestNrrdWriter(unittest.TestC... | 29.636364 | 76 | 0.633129 | 185 | 1,630 | 5.513514 | 0.437838 | 0.141176 | 0.058824 | 0.070588 | 0.318627 | 0.237255 | 0.237255 | 0.237255 | 0.237255 | 0.162745 | 0 | 0.016129 | 0.277301 | 1,630 | 54 | 77 | 30.185185 | 0.849745 | 0.1 | 0 | 0.294118 | 0 | 0 | 0.07138 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.147059 | false | 0 | 0.205882 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4438dbc98a70b3fe8296d0282cdfe5e4623856b | 3,369 | py | Python | crossplatformshell/__init__.py | ryanpdwyer/crossplatformshell | d6239ae362cff42faffc85714f7a5e1b56dc6463 | [
"MIT"
] | null | null | null | crossplatformshell/__init__.py | ryanpdwyer/crossplatformshell | d6239ae362cff42faffc85714f7a5e1b56dc6463 | [
"MIT"
] | null | null | null | crossplatformshell/__init__.py | ryanpdwyer/crossplatformshell | d6239ae362cff42faffc85714f7a5e1b56dc6463 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
============================
crossplatformshell
============================
"""
from __future__ import (print_function, division, absolute_import,
unicode_literals)
import pathlib
import io
import os
import shutil
import distutils.dir_util
import platform
# Use subp... | 23.234483 | 74 | 0.62808 | 435 | 3,369 | 4.712644 | 0.331034 | 0.032195 | 0.020488 | 0.020488 | 0.154146 | 0.154146 | 0.107317 | 0.032195 | 0 | 0 | 0 | 0.003559 | 0.249332 | 3,369 | 144 | 75 | 23.395833 | 0.807038 | 0.211932 | 0 | 0.238095 | 0 | 0 | 0.04784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.02381 | 0.119048 | 0 | 0.309524 | 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 |
c446129e206d55ad3a8c2ed465762b2ddf662a3e | 12,208 | py | Python | h2o-py/h2o/automl/_base.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | null | null | null | h2o-py/h2o/automl/_base.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 58 | 2021-10-01T12:43:37.000Z | 2021-12-08T22:58:43.000Z | h2o-py/h2o/automl/_base.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | null | null | null | import h2o
from h2o.base import Keyed
from h2o.exceptions import H2OValueError
from h2o.job import H2OJob
from h2o.model import ModelBase
from h2o.utils.typechecks import assert_is_type, is_type
class H2OAutoMLBaseMixin:
def predict(self, test_data):
"""
Predict on a dataset.
:param ... | 42.096552 | 173 | 0.63442 | 1,507 | 12,208 | 4.969476 | 0.199735 | 0.02497 | 0.01589 | 0.014688 | 0.302844 | 0.249566 | 0.241955 | 0.224329 | 0.200961 | 0.200961 | 0 | 0.008924 | 0.265645 | 12,208 | 289 | 174 | 42.242215 | 0.826436 | 0.474771 | 0 | 0.11215 | 0 | 0 | 0.087661 | 0.008287 | 0 | 0 | 0 | 0 | 0.046729 | 1 | 0.130841 | false | 0.046729 | 0.065421 | 0.009346 | 0.308411 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c448522cb4d655aac706a30087c1d285bd8f1d0f | 3,133 | py | Python | src/mongo_model.py | zxteloiv/curated-geokb-subsearcher | 8f42dca4cb293ccf3baf25bb31ba9b6cd6a76c8d | [
"MIT"
] | null | null | null | src/mongo_model.py | zxteloiv/curated-geokb-subsearcher | 8f42dca4cb293ccf3baf25bb31ba9b6cd6a76c8d | [
"MIT"
] | null | null | null | src/mongo_model.py | zxteloiv/curated-geokb-subsearcher | 8f42dca4cb293ccf3baf25bb31ba9b6cd6a76c8d | [
"MIT"
] | null | null | null | # coding: utf-8
from pymongo import MongoClient
import conf
class MongoQuery(object):
def __init__(self):
self._conn = MongoClient(conf.mongodb_conn_str)
self._db = self._conn.geokb
def query(self, grounded, limit=15, sort_keys=None):
col = self._db[grounded['from']]
docs = co... | 34.054348 | 99 | 0.452601 | 365 | 3,133 | 3.767123 | 0.249315 | 0.008727 | 0.046545 | 0.034909 | 0.498182 | 0.418909 | 0.418909 | 0.375273 | 0.375273 | 0.375273 | 0 | 0.013631 | 0.414619 | 3,133 | 91 | 100 | 34.428571 | 0.736096 | 0.079157 | 0 | 0.402778 | 0 | 0 | 0.056309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.013889 | 0.027778 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c448639417746f765b5ac2d5c6459142e8c6a83b | 8,809 | py | Python | src/dcm/agent/plugins/builtin/configure_server.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | null | null | null | src/dcm/agent/plugins/builtin/configure_server.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | 22 | 2015-09-15T20:52:34.000Z | 2016-03-11T22:44:24.000Z | src/dcm/agent/plugins/builtin/configure_server.py | JPWKU/unix-agent | 8f1278fc8c2768a8d4d54af642a881bace43652f | [
"Apache-2.0"
] | 3 | 2015-09-11T20:21:33.000Z | 2016-09-30T08:30:19.000Z | #
# Copyright (C) 2014 Dell, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 38.635965 | 79 | 0.595187 | 938 | 8,809 | 5.372068 | 0.245203 | 0.030165 | 0.021433 | 0.041278 | 0.304425 | 0.217503 | 0.139512 | 0.058742 | 0.012701 | 0 | 0 | 0.004132 | 0.313089 | 8,809 | 227 | 80 | 38.806167 | 0.828623 | 0.075832 | 0 | 0.197802 | 0 | 0 | 0.100222 | 0.00788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0 | 0.06044 | 0.005495 | 0.131868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c44957a976ba959e51bd70f903dcac90438fe807 | 17,184 | py | Python | phy/plot/interact.py | ycanerol/phy | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | [
"BSD-3-Clause"
] | 118 | 2019-06-03T06:19:43.000Z | 2022-03-25T00:05:26.000Z | phy/plot/interact.py | ycanerol/phy | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | [
"BSD-3-Clause"
] | 761 | 2015-01-08T11:17:41.000Z | 2019-05-27T16:12:08.000Z | phy/plot/interact.py | ycanerol/phy | 7a247f926dd5bf5d8ab95fe138e8f4a0db11b068 | [
"BSD-3-Clause"
] | 70 | 2019-05-30T11:05:26.000Z | 2022-03-30T11:51:23.000Z | # -*- coding: utf-8 -*-
"""Common layouts."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
from phylib.utils import emit
from phylib.utils.geometry import g... | 33.694118 | 97 | 0.557437 | 2,180 | 17,184 | 4.191743 | 0.140826 | 0.023638 | 0.009192 | 0.011381 | 0.353469 | 0.302145 | 0.255636 | 0.223681 | 0.193916 | 0.13329 | 0 | 0.011075 | 0.285382 | 17,184 | 509 | 98 | 33.760314 | 0.733062 | 0.246741 | 0 | 0.262626 | 0 | 0.006734 | 0.129774 | 0 | 0 | 0 | 0 | 0 | 0.013468 | 1 | 0.161616 | false | 0 | 0.026936 | 0.037037 | 0.326599 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c44cda7d547bb9bf0fd8879defc0c14046119449 | 623 | py | Python | AutocompleteHandler.py | codeforamerica/sheltraustin | a07ffd4b328a9d961347a85b49c95d8bf5ec1046 | [
"BSD-3-Clause"
] | null | null | null | AutocompleteHandler.py | codeforamerica/sheltraustin | a07ffd4b328a9d961347a85b49c95d8bf5ec1046 | [
"BSD-3-Clause"
] | 1 | 2015-08-03T21:27:36.000Z | 2015-08-03T21:27:36.000Z | AutocompleteHandler.py | codeforamerica/sheltraustin | a07ffd4b328a9d961347a85b49c95d8bf5ec1046 | [
"BSD-3-Clause"
] | 1 | 2021-04-17T10:13:29.000Z | 2021-04-17T10:13:29.000Z |
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import simplejson
from QueryHandler import QueryHandler
class AutocompleteHandler(tornado.web.RequestHandler):
@tornado.web.asynchronous
def get(self):
if not self.request.arguments or self.request.arguments=={}:
self.re... | 23.074074 | 62 | 0.746388 | 77 | 623 | 6.025974 | 0.454545 | 0.112069 | 0.172414 | 0.081897 | 0.107759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001862 | 0.138042 | 623 | 27 | 63 | 23.074074 | 0.862197 | 0 | 0 | 0.173913 | 0 | 0 | 0.065916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.26087 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c44d2937a78223f5c0f6b30adbd02a5949d5f2e6 | 3,339 | py | Python | svl/compiler/plot_validators.py | timothyrenner/svl | a74c09c49f2e14046acd4b0eeb861f8fef6bca96 | [
"MIT"
] | 8 | 2019-03-27T12:49:21.000Z | 2020-10-10T11:16:25.000Z | svl/compiler/plot_validators.py | timothyrenner/svl | a74c09c49f2e14046acd4b0eeb861f8fef6bca96 | [
"MIT"
] | 65 | 2018-08-26T14:48:45.000Z | 2020-03-17T12:24:42.000Z | svl/compiler/plot_validators.py | timothyrenner/svl | a74c09c49f2e14046acd4b0eeb861f8fef6bca96 | [
"MIT"
] | 1 | 2019-09-13T19:39:07.000Z | 2019-09-13T19:39:07.000Z | from toolz import get
PLOT_VALIDATORS = [
(
{"line", "scatter", "bar"},
lambda x: ("x" not in x) or ("y" not in x),
"XY plot does not have X and Y.",
),
(
{"histogram"},
lambda x: ("step" in x) and ("bins" in x),
"Histogram cannot have STEP and BINS.",
),... | 29.289474 | 77 | 0.481881 | 442 | 3,339 | 3.604072 | 0.237557 | 0.043315 | 0.026365 | 0.05022 | 0.290019 | 0.163842 | 0.087257 | 0.052731 | 0.052731 | 0.052731 | 0 | 0.004613 | 0.350704 | 3,339 | 113 | 78 | 29.548673 | 0.730166 | 0.111111 | 0 | 0.282609 | 0 | 0 | 0.327418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.01087 | 0 | 0.032609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c44dbf415c5fb9329410760b9f9c0e517b6fdb6f | 7,421 | py | Python | decision_tree.py | cjbayron/ml-models | b3171c9a82fe5ecdcdc5abcdc20af7c18f9f8ec4 | [
"MIT"
] | 1 | 2018-12-15T16:36:41.000Z | 2018-12-15T16:36:41.000Z | decision_tree.py | cjbayron/ml-models | b3171c9a82fe5ecdcdc5abcdc20af7c18f9f8ec4 | [
"MIT"
] | null | null | null | decision_tree.py | cjbayron/ml-models | b3171c9a82fe5ecdcdc5abcdc20af7c18f9f8ec4 | [
"MIT"
] | null | null | null | '''
Building a Decision Tree using CART (from scratch)
Note: Code was tested only on dataset with numerical features.
Categorical features are not yet fully supported.
'''
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.metrics im... | 31.849785 | 87 | 0.597898 | 917 | 7,421 | 4.634678 | 0.249727 | 0.020706 | 0.014118 | 0.017882 | 0.158118 | 0.100706 | 0.089882 | 0.089882 | 0.089882 | 0.061647 | 0 | 0.007946 | 0.304676 | 7,421 | 232 | 88 | 31.987069 | 0.815698 | 0.122086 | 0 | 0.116129 | 0 | 0 | 0.057138 | 0.008052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045161 | false | 0 | 0.045161 | 0 | 0.135484 | 0.051613 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c451451a751c9fd2575b893cf89c5f54e2fd8166 | 840 | py | Python | test_hoyolab.py | c3kay/hoyolab-json-feed | 43839194a253271c9c2fcbb564eb4b3e6179c01e | [
"Unlicense"
] | 1 | 2021-09-17T12:40:40.000Z | 2021-09-17T12:40:40.000Z | test_hoyolab.py | c3kay/hoyolab-json-feed | 43839194a253271c9c2fcbb564eb4b3e6179c01e | [
"Unlicense"
] | null | null | null | test_hoyolab.py | c3kay/hoyolab-json-feed | 43839194a253271c9c2fcbb564eb4b3e6179c01e | [
"Unlicense"
] | null | null | null | from hoyolab import main
from os import environ
from os.path import exists
import atoma
def init_environ(d):
environ['HOYOLAB_JSON_PATH'] = '{}/hoyolab.json'.format(d)
environ['HOYOLAB_ATOM_PATH'] = '{}/hoyolab.xml'.format(d)
environ['HOYOLAB_JSON_URL'] = 'hoyolab.json'
environ['HOYOLAB_ATOM_URL'] = '... | 24.705882 | 62 | 0.713095 | 117 | 840 | 4.820513 | 0.264957 | 0.198582 | 0.079787 | 0.067376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002853 | 0.165476 | 840 | 33 | 63 | 25.454545 | 0.801712 | 0 | 0 | 0 | 0 | 0 | 0.217857 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.181818 | 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 |
c45419a203ad566f8ae9d52cc297219542ecf9f1 | 237 | py | Python | sausage_grinder/urls.py | jesseerdmann/audiobonsai | ec1edcdbadc6b2aff3b743b5c42515f4d5638830 | [
"Apache-2.0"
] | null | null | null | sausage_grinder/urls.py | jesseerdmann/audiobonsai | ec1edcdbadc6b2aff3b743b5c42515f4d5638830 | [
"Apache-2.0"
] | null | null | null | sausage_grinder/urls.py | jesseerdmann/audiobonsai | ec1edcdbadc6b2aff3b743b5c42515f4d5638830 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views as sg
urlpatterns = [
path('artist', sg.artist),
path('genre', sg.genre),
path('release', sg.release),
path('track', sg.track),
path('', sg.sausage_grinder_index),
]
| 19.75 | 39 | 0.637131 | 32 | 237 | 4.65625 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194093 | 237 | 11 | 40 | 21.545455 | 0.780105 | 0 | 0 | 0 | 0 | 0 | 0.097046 | 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 |
c45577ce768212873fbaadfacdbe638ce864abf9 | 1,194 | py | Python | sails/ui/mmck/parameters/string.py | metrasynth/solar-sails | 3a10774dad29d85834d3acb38171741b3a11ef91 | [
"MIT"
] | 6 | 2016-11-22T14:32:55.000Z | 2021-08-15T01:35:33.000Z | sails/ui/mmck/parameters/string.py | metrasynth/solar-sails | 3a10774dad29d85834d3acb38171741b3a11ef91 | [
"MIT"
] | 2 | 2022-03-18T16:47:43.000Z | 2022-03-18T16:47:44.000Z | sails/ui/mmck/parameters/string.py | metrasynth/solar-sails | 3a10774dad29d85834d3acb38171741b3a11ef91 | [
"MIT"
] | 2 | 2019-07-09T23:44:08.000Z | 2021-08-15T01:35:37.000Z | from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QComboBox
from PyQt5.QtWidgets import QLineEdit
from sf.mmck.parameters import String
from .manager import widget_class_for
from .widget import ParameterWidget
@widget_class_for(String)
class StringParameterWidget(ParameterWidget):
def setUp(self, ui)... | 35.117647 | 89 | 0.707705 | 133 | 1,194 | 6.263158 | 0.345865 | 0.086435 | 0.062425 | 0.057623 | 0.177671 | 0.10084 | 0.10084 | 0.10084 | 0 | 0 | 0 | 0.004219 | 0.20603 | 1,194 | 33 | 90 | 36.181818 | 0.874473 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c455ef3791cf634263613f0736425fbda6d62c4c | 550 | py | Python | plot_top_performers.py | jmphil09/mario_rl | 6e93c1318e9957d679a5ec8d29687756ac7fc4b1 | [
"MIT"
] | null | null | null | plot_top_performers.py | jmphil09/mario_rl | 6e93c1318e9957d679a5ec8d29687756ac7fc4b1 | [
"MIT"
] | null | null | null | plot_top_performers.py | jmphil09/mario_rl | 6e93c1318e9957d679a5ec8d29687756ac7fc4b1 | [
"MIT"
] | null | null | null | from FitnessPlot import FitnessPlot
'''
for n in range(1,6):
plot = FitnessPlot(folder_prefix='data_top{}'.format(n))
plot.plot_all_workers()
plot.plot_workers_as_average()
'''
plot = FitnessPlot(folder_prefix='data_top1', num_workers=16)
worker_dict = plot.create_worker_dict()
#plot.plot_all_workers()
#... | 23.913043 | 61 | 0.703636 | 81 | 550 | 4.493827 | 0.395062 | 0.087912 | 0.115385 | 0.148352 | 0.401099 | 0.230769 | 0.230769 | 0.230769 | 0.230769 | 0 | 0 | 0.019438 | 0.158182 | 550 | 22 | 62 | 25 | 0.766739 | 0.221818 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c45760cde68ead756aaeedf9a4958bde55f0fdc2 | 458 | py | Python | benchmark/src/benchmark/bench_logging.py | lwanfuturewei/QFlock | 90d6875d9adc8fe2968694904f8421d41e30e189 | [
"Apache-2.0"
] | null | null | null | benchmark/src/benchmark/bench_logging.py | lwanfuturewei/QFlock | 90d6875d9adc8fe2968694904f8421d41e30e189 | [
"Apache-2.0"
] | null | null | null | benchmark/src/benchmark/bench_logging.py | lwanfuturewei/QFlock | 90d6875d9adc8fe2968694904f8421d41e30e189 | [
"Apache-2.0"
] | 2 | 2022-03-03T15:28:23.000Z | 2022-03-04T15:33:19.000Z |
import logging
def setup_logger():
formatter = logging.Formatter('%(asctime)s.%(msecs)03d %(levelname)s %(message)s',
'%Y-%m-%d %H:%M:%S')
logging.basicConfig(level=logging.INFO,
format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',
... | 26.941176 | 86 | 0.530568 | 53 | 458 | 4.566038 | 0.528302 | 0.066116 | 0.107438 | 0.132231 | 0.256198 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.28821 | 458 | 16 | 87 | 28.625 | 0.723926 | 0 | 0 | 0 | 0 | 0 | 0.295154 | 0.101322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | 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 |
c45814f676d4f4897bba48b176daa7d8a452554e | 6,921 | py | Python | tools/configure-gateway/threescale/proxies.py | jparsai/f8a-3scale-connect-api | a782753d662eee5d450da3c20e9ae9eb13b8b560 | [
"Apache-2.0"
] | 1 | 2018-09-14T05:18:52.000Z | 2018-09-14T05:18:52.000Z | tools/configure-gateway/threescale/proxies.py | jparsai/f8a-3scale-connect-api | a782753d662eee5d450da3c20e9ae9eb13b8b560 | [
"Apache-2.0"
] | 48 | 2017-12-05T12:05:56.000Z | 2021-03-25T22:09:29.000Z | tools/configure-gateway/threescale/proxies.py | jparsai/f8a-3scale-connect-api | a782753d662eee5d450da3c20e9ae9eb13b8b560 | [
"Apache-2.0"
] | 5 | 2018-01-29T04:53:13.000Z | 2020-04-16T13:59:42.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""ThreeScale Proxies Rule interface for APIs."""
from .base import ThreeScale
import logging
import requests
import xmltodict
import json
logger = logging.getLogger(__name__)
class Proxies(ThreeScale):
"""ThreeScale Proxies create, update."""
response = None... | 38.237569 | 91 | 0.566681 | 708 | 6,921 | 5.179379 | 0.183616 | 0.063812 | 0.039269 | 0.044178 | 0.476684 | 0.440142 | 0.399236 | 0.27652 | 0.185165 | 0.160076 | 0 | 0.000867 | 0.333189 | 6,921 | 180 | 92 | 38.45 | 0.793716 | 0.039879 | 0 | 0.264901 | 0 | 0 | 0.158413 | 0.021657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046358 | false | 0 | 0.033113 | 0 | 0.13245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c45c0b6aabc6d08c2689d66882739d5b4c1b5f06 | 19,075 | py | Python | dumpcode/cpiter.py | gkfthddk/keras | 46d96c65d69c39df298800336bbb4d867a2561fb | [
"MIT"
] | null | null | null | dumpcode/cpiter.py | gkfthddk/keras | 46d96c65d69c39df298800336bbb4d867a2561fb | [
"MIT"
] | null | null | null | dumpcode/cpiter.py | gkfthddk/keras | 46d96c65d69c39df298800336bbb4d867a2561fb | [
"MIT"
] | null | null | null | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import subprocess
import numpy as np
import datetime
import random
import warnings
import ROOT as rt
import math
from keras.preprocessing.sequence import pad_sequences
from keras.callbacks import Callback
from array import array
from sklearn.metrics import roc_auc_sco... | 39.739583 | 841 | 0.654522 | 2,919 | 19,075 | 4.142857 | 0.096266 | 0.027785 | 0.023154 | 0.043992 | 0.529811 | 0.478541 | 0.45208 | 0.431655 | 0.376003 | 0.376003 | 0 | 0.030315 | 0.187208 | 19,075 | 479 | 842 | 39.822547 | 0.749678 | 0.048126 | 0 | 0.32767 | 0 | 0 | 0.006797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033981 | false | 0 | 0.029126 | 0.01699 | 0.084951 | 0.007282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c45f0b40e801dd329eac9e771b4dd170e217817c | 6,600 | py | Python | vitrage/tests/unit/datasources/kubernetes/test_kubernetes_transformer.py | openstack/vitrage | 95b33dbf39b040e23915882a2879c87aec239ca9 | [
"Apache-2.0"
] | 89 | 2015-09-30T21:42:17.000Z | 2022-03-28T16:31:19.000Z | vitrage/tests/unit/datasources/kubernetes/test_kubernetes_transformer.py | openstack/vitrage | 95b33dbf39b040e23915882a2879c87aec239ca9 | [
"Apache-2.0"
] | 4 | 2015-12-13T13:06:53.000Z | 2016-01-03T19:51:28.000Z | vitrage/tests/unit/datasources/kubernetes/test_kubernetes_transformer.py | openstack/vitrage | 95b33dbf39b040e23915882a2879c87aec239ca9 | [
"Apache-2.0"
] | 43 | 2015-11-04T15:54:27.000Z | 2021-12-10T14:24:03.000Z | # Copyright 2018 - Nokia
#
# 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, sof... | 39.759036 | 79 | 0.700455 | 712 | 6,600 | 6.26264 | 0.276685 | 0.041938 | 0.026688 | 0.040816 | 0.229648 | 0.108545 | 0.070419 | 0.047544 | 0.047544 | 0.047544 | 0 | 0.005943 | 0.235152 | 6,600 | 165 | 80 | 40 | 0.877377 | 0.111515 | 0 | 0.099099 | 0 | 0 | 0.04161 | 0.010959 | 0 | 0 | 0 | 0 | 0.099099 | 1 | 0.054054 | false | 0 | 0.18018 | 0 | 0.252252 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4611f97e3d7c75a5d43b772cd3ffe6b29e5f96b | 1,044 | py | Python | ggshield/scan/scannable_errors.py | rgajason/gg-shield | 45c3534bdd174880710b97aedac068f6ddd52eaf | [
"MIT"
] | null | null | null | ggshield/scan/scannable_errors.py | rgajason/gg-shield | 45c3534bdd174880710b97aedac068f6ddd52eaf | [
"MIT"
] | 1 | 2021-06-02T04:28:09.000Z | 2021-06-02T04:28:09.000Z | ggshield/scan/scannable_errors.py | rgajason/gg-shield | 45c3534bdd174880710b97aedac068f6ddd52eaf | [
"MIT"
] | null | null | null | from ast import literal_eval
from typing import Dict, List
import click
from pygitguardian.models import Detail
from ggshield.text_utils import STYLE, display_error, format_text, pluralize
def handle_scan_error(detail: Detail, chunk: List[Dict[str, str]]) -> None:
if detail.status_code == 401:
raise cli... | 32.625 | 80 | 0.598659 | 121 | 1,044 | 5.049587 | 0.520661 | 0.05892 | 0.032733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.298851 | 1,044 | 31 | 81 | 33.677419 | 0.830601 | 0 | 0 | 0 | 0 | 0 | 0.202107 | 0.032567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c461b7cff1ea76d96382e29fc4f6db6ef1e4b933 | 18,049 | py | Python | Packs/Base/Scripts/DBotPreprocessTextData/DBotPreprocessTextData.py | matan-xmcyber/content | 7f02301c140b35956af3cd20cb8dfc64f34afb3e | [
"MIT"
] | 1 | 2021-08-07T00:21:58.000Z | 2021-08-07T00:21:58.000Z | Packs/Base/Scripts/DBotPreprocessTextData/DBotPreprocessTextData.py | matan-xmcyber/content | 7f02301c140b35956af3cd20cb8dfc64f34afb3e | [
"MIT"
] | 48 | 2022-03-08T13:45:00.000Z | 2022-03-31T14:32:05.000Z | Packs/Base/Scripts/DBotPreprocessTextData/DBotPreprocessTextData.py | matan-xmcyber/content | 7f02301c140b35956af3cd20cb8dfc64f34afb3e | [
"MIT"
] | 2 | 2020-12-10T12:02:45.000Z | 2020-12-15T09:20:01.000Z | # pylint: disable=no-member
from CommonServerUserPython import *
from CommonServerPython import *
from sklearn.feature_extraction.text import TfidfVectorizer
import pickle
import uuid
import spacy
import string
from html.parser import HTMLParser
from html import unescape
from re import compile as _Re
import pandas as p... | 40.559551 | 120 | 0.633165 | 2,238 | 18,049 | 4.802949 | 0.151921 | 0.024188 | 0.02791 | 0.039073 | 0.255466 | 0.192576 | 0.148758 | 0.123081 | 0.08959 | 0.073867 | 0 | 0.003329 | 0.267605 | 18,049 | 444 | 121 | 40.650901 | 0.809819 | 0.016566 | 0 | 0.164021 | 0 | 0 | 0.085829 | 0.013703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.002646 | 0.029101 | 0.013228 | 0.179894 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c464ae6c792d78df3c469e563d6a59248c7a5e64 | 2,799 | py | Python | punc_recover/tester/punc_tester.py | Z-yq/audioSamples.github.io | 53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3 | [
"Apache-2.0"
] | 1 | 2022-03-03T02:51:55.000Z | 2022-03-03T02:51:55.000Z | punc_recover/tester/punc_tester.py | RapidAI/TensorflowASR | 084519b5a0464f465e1d72c24cba07c1ec55cd26 | [
"Apache-2.0"
] | null | null | null | punc_recover/tester/punc_tester.py | RapidAI/TensorflowASR | 084519b5a0464f465e1d72c24cba07c1ec55cd26 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import tensorflow as tf
from punc_recover.models.punc_transformer import PuncTransformer
from punc_recover.tester.base_tester import BaseTester
from utils.text_featurizers import TextFeaturizer
class PuncTester(BaseTester):
""" Trainer for CTC Models """
def __init__(self,
... | 36.350649 | 94 | 0.599857 | 332 | 2,799 | 4.810241 | 0.346386 | 0.073262 | 0.075141 | 0.04258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006972 | 0.282601 | 2,799 | 76 | 95 | 36.828947 | 0.788347 | 0.024652 | 0 | 0 | 0 | 0 | 0.062914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.109091 | 0 | 0.290909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4667c374455b11e101ec3e8d25bd29cd21c3a81 | 3,965 | py | Python | tests/downloader_test.py | jkawamoto/roadie-gcp | 96394a47d375bd01e167f351fc86a03905e98395 | [
"MIT"
] | 1 | 2018-09-20T01:51:23.000Z | 2018-09-20T01:51:23.000Z | tests/downloader_test.py | jkawamoto/roadie-gcp | 96394a47d375bd01e167f351fc86a03905e98395 | [
"MIT"
] | 9 | 2016-01-31T11:28:12.000Z | 2021-04-30T20:43:39.000Z | tests/downloader_test.py | jkawamoto/roadie-gcp | 96394a47d375bd01e167f351fc86a03905e98395 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# downloader_test.py
#
# Copyright (c) 2015-2016 Junpei Kawamoto
#
# This software is released under the MIT License.
#
# http://opensource.org/licenses/mit-license.php
#
""" Test for downloader module.
"""
import logging
import shutil
import sys
import unittest
import os
from os import path
im... | 30.037879 | 95 | 0.642371 | 476 | 3,965 | 5.182773 | 0.256303 | 0.052696 | 0.061613 | 0.064856 | 0.477098 | 0.467369 | 0.408188 | 0.330361 | 0.330361 | 0.288204 | 0 | 0.010688 | 0.244893 | 3,965 | 131 | 96 | 30.267176 | 0.813293 | 0.241362 | 0 | 0.298507 | 0 | 0.014925 | 0.111189 | 0.007389 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.149254 | false | 0 | 0.104478 | 0 | 0.283582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c466ca50010615bb02d62529ff22d41f7530666b | 1,800 | py | Python | ticle/plotters/plot_phase.py | muma7490/TICLE | bffa64ee488abac17809d02dfc176fe80128541a | [
"MIT"
] | null | null | null | ticle/plotters/plot_phase.py | muma7490/TICLE | bffa64ee488abac17809d02dfc176fe80128541a | [
"MIT"
] | null | null | null | ticle/plotters/plot_phase.py | muma7490/TICLE | bffa64ee488abac17809d02dfc176fe80128541a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as pl
import os
import numpy as np
from ticle.data.dataHandler import normalizeData,load_file
from ticle.analysis.analysis import get_phases,normalize_phase
pl.rc('xtick', labelsize='x-small')
pl.rc('ytick', labelsize='x-small')
pl.rc('font', family='serif')
pl.rcParams.update({'font.size': 2... | 27.692308 | 82 | 0.648889 | 273 | 1,800 | 4.087912 | 0.326007 | 0.050179 | 0.026882 | 0.030466 | 0.198925 | 0.130824 | 0.130824 | 0.084229 | 0.051971 | 0 | 0 | 0.014453 | 0.192778 | 1,800 | 65 | 83 | 27.692308 | 0.753613 | 0 | 0 | 0.208333 | 0 | 0 | 0.218212 | 0.095503 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.104167 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c467d3e82cd1949de48c0e1eac654f4ecca276b3 | 7,267 | py | Python | src/putil/rabbitmq/rabbit_util.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 2 | 2015-10-05T20:36:35.000Z | 2018-11-21T11:45:24.000Z | src/putil/rabbitmq/rabbit_util.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 21 | 2015-03-18T14:39:32.000Z | 2016-07-01T17:16:29.000Z | src/putil/rabbitmq/rabbit_util.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 12 | 2015-03-18T10:53:49.000Z | 2018-06-21T11:19:57.000Z | #!/usr/bin/python
import shlex
import simplejson
from putil.rabbitmq.rabbitmqadmin import Management, make_parser, LISTABLE, DELETABLE
class RabbitManagementUtil(object):
def __init__(self, config, options=None, sysname=None):
"""
Given a config object (system CFG or rabbit mgmt config), extra... | 42.00578 | 126 | 0.610706 | 907 | 7,267 | 4.687982 | 0.196251 | 0.07079 | 0.020696 | 0.034572 | 0.349012 | 0.261994 | 0.221778 | 0.213311 | 0.203904 | 0.184619 | 0 | 0.004616 | 0.254713 | 7,267 | 172 | 127 | 42.25 | 0.780465 | 0.128939 | 0 | 0.294118 | 0 | 0.008403 | 0.151685 | 0.013162 | 0 | 0 | 0 | 0.005814 | 0 | 1 | 0.10084 | false | 0.02521 | 0.02521 | 0.008403 | 0.201681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4692b2cd0fdba89e13d15c53467b6b2f916be48 | 5,362 | py | Python | gaternet/main.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | gaternet/main.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | gaternet/main.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 35.276316 | 79 | 0.693398 | 760 | 5,362 | 4.761842 | 0.313158 | 0.034816 | 0.017684 | 0.014921 | 0.172976 | 0.081238 | 0.043658 | 0.043658 | 0.043658 | 0.028185 | 0 | 0.015465 | 0.17997 | 5,362 | 151 | 80 | 35.509934 | 0.807596 | 0.150317 | 0 | 0 | 0 | 0 | 0.191277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04717 | false | 0 | 0.09434 | 0 | 0.169811 | 0.179245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c46b9bf38daa8aa62af17faaff944dc07ddd1de9 | 5,776 | py | Python | fixEngine/fixEngine.py | HNGlez/ExchangeConnector | 5176437963a3e9e671bb059c599c79f39439f4d4 | [
"MIT"
] | null | null | null | fixEngine/fixEngine.py | HNGlez/ExchangeConnector | 5176437963a3e9e671bb059c599c79f39439f4d4 | [
"MIT"
] | null | null | null | fixEngine/fixEngine.py | HNGlez/ExchangeConnector | 5176437963a3e9e671bb059c599c79f39439f4d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ExchangeConnector fixEngine
Copyright (c) 2020 Hugo Nistal Gonzalez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includi... | 46.208 | 179 | 0.691136 | 618 | 5,776 | 6.33657 | 0.378641 | 0.033197 | 0.071502 | 0.02809 | 0.197651 | 0.159346 | 0.123085 | 0.094484 | 0.068948 | 0.068948 | 0 | 0.001572 | 0.229224 | 5,776 | 125 | 180 | 46.208 | 0.878032 | 0.22126 | 0 | 0.240964 | 0 | 0 | 0.118783 | 0.037474 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.060241 | false | 0.012048 | 0.108434 | 0.024096 | 0.313253 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c46dc4849d73685f3bf2bf7edc6ed45dee20d695 | 307 | py | Python | Python/Day8 DictionariesAndMaps.py | codePerfectPlus/30-DaysOfCode-With-Python-And-JavaScript | 570fa12ed30659fa394d86e12583b69f35a2e7a7 | [
"MIT"
] | 8 | 2020-08-03T01:53:13.000Z | 2022-01-09T14:47:58.000Z | Python/Day8 DictionariesAndMaps.py | codePerfectPlus/30-DaysOfCode-With-Python-And-JavaScript | 570fa12ed30659fa394d86e12583b69f35a2e7a7 | [
"MIT"
] | null | null | null | Python/Day8 DictionariesAndMaps.py | codePerfectPlus/30-DaysOfCode-With-Python-And-JavaScript | 570fa12ed30659fa394d86e12583b69f35a2e7a7 | [
"MIT"
] | 4 | 2020-09-29T11:28:53.000Z | 2021-06-02T15:34:55.000Z | N = int(input())
entry = [input().split() for _ in range(N)]
phoneBook = {name: number for name, number in entry}
while True:
try:
name = input()
if name in phoneBook:
print(f"{name}={phoneBook[name]}")
else:
print("Not found")
except:
break
| 21.928571 | 52 | 0.534202 | 38 | 307 | 4.289474 | 0.578947 | 0.159509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325733 | 307 | 13 | 53 | 23.615385 | 0.78744 | 0 | 0 | 0 | 0 | 0 | 0.107492 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c46f3c278fa8309cddd52d6eeccf2dae6ea924e2 | 1,850 | py | Python | 10. Recurrent Neural Network/10-1) Recurrent Neural Network, RNN.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 10. Recurrent Neural Network/10-1) Recurrent Neural Network, RNN.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 10. Recurrent Neural Network/10-1) Recurrent Neural Network, RNN.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | #Sequence model. != Recursive Neural Network
#memory cell or RNN cell
#hidden state
#one-to-many_image captioning, many-to-one_sentiment classfication || spam detection, many-to-many_chat bot
#2) create RNN in python
import numpy as np
timesteps=10#시점의 수 _문장의 길이
input_size=4#입력의 차원_단어벡터의 차원
hidden_size=8#메모리 셀의 용량(은닉... | 30.327869 | 107 | 0.778378 | 330 | 1,850 | 4.193939 | 0.369697 | 0.072254 | 0.073699 | 0.043353 | 0.220376 | 0.155347 | 0.140173 | 0.140173 | 0.140173 | 0.140173 | 0 | 0.023395 | 0.098919 | 1,850 | 60 | 108 | 30.833333 | 0.806839 | 0.317297 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 0.289474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c46f42400056a3b7b9402bc800d3e92633345822 | 720 | py | Python | WeLearn/M3-Python/L3-Python_Object/pet.py | munoz196/moonyosCSSIrep | cdfcd2ae061293471ecdf2d370a27f163efeba97 | [
"Apache-2.0"
] | null | null | null | WeLearn/M3-Python/L3-Python_Object/pet.py | munoz196/moonyosCSSIrep | cdfcd2ae061293471ecdf2d370a27f163efeba97 | [
"Apache-2.0"
] | null | null | null | WeLearn/M3-Python/L3-Python_Object/pet.py | munoz196/moonyosCSSIrep | cdfcd2ae061293471ecdf2d370a27f163efeba97 | [
"Apache-2.0"
] | null | null | null | pet = {
"name":"Doggo",
"animal":"dog",
"species":"labrador",
"age":"5"
}
class Pet(object):
def __init__(self, name, age, animal):
self.name = name
self.age = age
self.animal = animal
self.hungry = False
self.mood= "happy"
def eat(self):
print("> %s is eating.... | 22.5 | 62 | 0.566667 | 105 | 720 | 3.742857 | 0.371429 | 0.101781 | 0.071247 | 0.099237 | 0.071247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.272222 | 720 | 31 | 63 | 23.225806 | 0.746183 | 0 | 0 | 0 | 0 | 0 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.115385 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c470769346abfe53705868b77ccb1792faae0816 | 1,260 | py | Python | src/repositories/example_repo.py | pybokeh/dagster-examples | 459cfbe00585f1d123e49058685c74149efb867d | [
"MIT"
] | null | null | null | src/repositories/example_repo.py | pybokeh/dagster-examples | 459cfbe00585f1d123e49058685c74149efb867d | [
"MIT"
] | null | null | null | src/repositories/example_repo.py | pybokeh/dagster-examples | 459cfbe00585f1d123e49058685c74149efb867d | [
"MIT"
] | null | null | null | from dagster import job, repository
from ops.sklearn_ops import (
fetch_freehand_text_to_generic_data,
separate_features_from_target_label,
label_encode_target,
count_tfid_transform_train,
count_tfid_transform_test,
create_sgd_classifier_model,
predict
)
@ job(
description... | 33.157895 | 141 | 0.768254 | 167 | 1,260 | 5.269461 | 0.317365 | 0.051136 | 0.102273 | 0.064773 | 0.195455 | 0.125 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0 | 0.163492 | 1,260 | 37 | 142 | 34.054054 | 0.834915 | 0 | 0 | 0 | 0 | 0 | 0.19215 | 0.049877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.035714 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4721b4a3c1999fdb50a16efbe7e2d5c42d79e86 | 551 | py | Python | exercicios/Maior_e_Menor_Valores.py | jeversonneves/Python | c31779d8db64b22711fe612cc943da8c5e51788b | [
"MIT"
] | null | null | null | exercicios/Maior_e_Menor_Valores.py | jeversonneves/Python | c31779d8db64b22711fe612cc943da8c5e51788b | [
"MIT"
] | null | null | null | exercicios/Maior_e_Menor_Valores.py | jeversonneves/Python | c31779d8db64b22711fe612cc943da8c5e51788b | [
"MIT"
] | null | null | null | resposta = 'S'
soma = quant = media = maior = menor = 0
while resposta in 'Ss':
n = int(input('Digite um número: '))
soma += n
quant += 1
if quant == 1:
maior = menor = n
else:
if n > maior:
maior = n
elif n < menor:
menor = n
resposta = str(input(... | 30.611111 | 93 | 0.548094 | 79 | 551 | 3.822785 | 0.455696 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.295826 | 551 | 17 | 94 | 32.411765 | 0.768041 | 0 | 0 | 0 | 0 | 0 | 0.252269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c47376723d72b33e6ef5ded0c99f0808db10a51e | 4,252 | py | Python | AI/Housing Prices Prediction/HousePricesNN.py | n0rel/self | f9f44af42aa652f9a72279e44ffd8d4387a4bdae | [
"MIT"
] | null | null | null | AI/Housing Prices Prediction/HousePricesNN.py | n0rel/self | f9f44af42aa652f9a72279e44ffd8d4387a4bdae | [
"MIT"
] | null | null | null | AI/Housing Prices Prediction/HousePricesNN.py | n0rel/self | f9f44af42aa652f9a72279e44ffd8d4387a4bdae | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.preprocessing import LabelEncoder, MinMaxScaler
from numpy.random import uniform
import matplotlib.pyplot as plt
def relu(x):
return x * (x > 0)
def relu_deriv(x):
return 1 * (x > 0)
class NeuralNetwork:
"""
Our NN will predict a housing price gi... | 33.480315 | 149 | 0.63476 | 598 | 4,252 | 4.30602 | 0.240803 | 0.045437 | 0.039612 | 0.065243 | 0.280777 | 0.193398 | 0.159223 | 0.131262 | 0.098641 | 0.098641 | 0 | 0.0281 | 0.230009 | 4,252 | 126 | 150 | 33.746032 | 0.7584 | 0.142756 | 0 | 0 | 0 | 0.016949 | 0.062668 | 0.037399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.084746 | 0.033898 | 0.237288 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c4737a166e262dfedd58077027d802632dac9651 | 7,829 | py | Python | tests/test_export_keyword_template_catalina_10_15_4.py | PabloKohan/osxphotos | 2cf3b6bb674c312240c4b12c5d7b558f15be7c85 | [
"MIT"
] | null | null | null | tests/test_export_keyword_template_catalina_10_15_4.py | PabloKohan/osxphotos | 2cf3b6bb674c312240c4b12c5d7b558f15be7c85 | [
"MIT"
] | null | null | null | tests/test_export_keyword_template_catalina_10_15_4.py | PabloKohan/osxphotos | 2cf3b6bb674c312240c4b12c5d7b558f15be7c85 | [
"MIT"
] | null | null | null | import pytest
from osxphotos._constants import _UNKNOWN_PERSON
PHOTOS_DB = "./tests/Test-10.15.4.photoslibrary/database/photos.db"
TOP_LEVEL_FOLDERS = ["Folder1"]
TOP_LEVEL_CHILDREN = ["SubFolder1", "SubFolder2"]
FOLDER_ALBUM_DICT = {"Folder1": [], "SubFolder1": [], "SubFolder2": ["AlbumInFolder"]}
ALBUM_NAMES = ... | 35.107623 | 107 | 0.606463 | 955 | 7,829 | 4.845026 | 0.211518 | 0.028744 | 0.01729 | 0.012103 | 0.586773 | 0.538794 | 0.520424 | 0.447158 | 0.447158 | 0.416685 | 0 | 0.06488 | 0.242049 | 7,829 | 222 | 108 | 35.265766 | 0.714864 | 0.027845 | 0 | 0.515528 | 0 | 0.018634 | 0.451684 | 0.136257 | 0 | 0 | 0 | 0 | 0.111801 | 1 | 0.018634 | false | 0 | 0.049689 | 0 | 0.068323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c474a170eb0e1f1c4fbbb4250190b02bde10d265 | 4,537 | py | Python | tests/test_refinement.py | qfardet/Pandora2D | 9b36d29a199f2acc67499d22b796c7dd6867bc5f | [
"Apache-2.0"
] | 4 | 2022-02-09T10:07:03.000Z | 2022-03-08T05:16:30.000Z | tests/test_refinement.py | qfardet/Pandora2D | 9b36d29a199f2acc67499d22b796c7dd6867bc5f | [
"Apache-2.0"
] | null | null | null | tests/test_refinement.py | qfardet/Pandora2D | 9b36d29a199f2acc67499d22b796c7dd6867bc5f | [
"Apache-2.0"
] | 4 | 2022-02-03T09:21:28.000Z | 2022-03-25T07:32:13.000Z | #!/usr/bin/env python
# coding: utf8
#
# Copyright (c) 2021 Centre National d'Etudes Spatiales (CNES).
#
# This file is part of PANDORA2D
#
# https://github.com/CNES/Pandora2D
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | 32.407143 | 120 | 0.60745 | 618 | 4,537 | 4.278317 | 0.255663 | 0.015129 | 0.015885 | 0.018154 | 0.644478 | 0.608926 | 0.585855 | 0.560514 | 0.560514 | 0.532526 | 0 | 0.054754 | 0.251267 | 4,537 | 139 | 121 | 32.640288 | 0.72358 | 0.23121 | 0 | 0.514286 | 0 | 0 | 0.087834 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.042857 | false | 0 | 0.071429 | 0 | 0.128571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c476f31483a0cfb0e93a77ded50e7c656f3f727f | 16,628 | py | Python | src/players.py | deacona/the-ball-is-round | 8e91a72084d13d754deb82e4852fa37a86a77084 | [
"MIT"
] | null | null | null | src/players.py | deacona/the-ball-is-round | 8e91a72084d13d754deb82e4852fa37a86a77084 | [
"MIT"
] | null | null | null | src/players.py | deacona/the-ball-is-round | 8e91a72084d13d754deb82e4852fa37a86a77084 | [
"MIT"
] | null | null | null | """players module.
Used for players data processes
"""
import numpy as np
import pandas as pd
import src.config as config
import src.utilities as utilities
from src.utilities import logging
pd.set_option("display.max_columns", 500)
pd.set_option("display.expand_frame_repr", False)
# master_file = config.MASTER_FILE... | 31.793499 | 580 | 0.53446 | 1,693 | 16,628 | 5.147667 | 0.249262 | 0.008262 | 0.007229 | 0.018589 | 0.24475 | 0.228916 | 0.182444 | 0.168445 | 0.136087 | 0.119564 | 0 | 0.013849 | 0.313868 | 16,628 | 522 | 581 | 31.854406 | 0.749934 | 0.509442 | 0 | 0.460526 | 0 | 0 | 0.209783 | 0.00321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.02193 | 0 | 0.04386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c47739874e06f42c7eb96ea82d6382fed8af2e9d | 2,035 | py | Python | Z_ALL_FILE/Py/code_qry.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | null | null | null | Z_ALL_FILE/Py/code_qry.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | null | null | null | Z_ALL_FILE/Py/code_qry.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | 1 | 2021-04-29T21:46:02.000Z | 2021-04-29T21:46:02.000Z | import pandas as pd
import os
#opt = itertools.islice(ls, len(ls))
#st = map(lambda x : )
def parsecode(txt):
df = pd.read_csv(os.getcwd() + '\\OMDB.csv')
ls = df['Code'].to_list()
code = []
q = 0
for i in range(len(ls)):
text = txt
if ls[i] in text:
n = text.find(ls[... | 28.263889 | 200 | 0.456511 | 274 | 2,035 | 3.277372 | 0.39781 | 0.038976 | 0.044543 | 0.070156 | 0.112472 | 0.060134 | 0.060134 | 0 | 0 | 0 | 0 | 0.031356 | 0.420147 | 2,035 | 71 | 201 | 28.661972 | 0.729661 | 0.027518 | 0 | 0.135593 | 0 | 0 | 0.185635 | 0.092059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.033898 | 0 | 0.186441 | 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 |