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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9dde6bfc80676d7c23483dae2cdebeb48e518e09 | 6,801 | py | Python | spinel_wisun_utils.py | LaudateCorpus1/ti-wisunfan-pyspinel | 5b911ef8319115fb2ef20a57358dd44733bed30a | [
"Apache-2.0"
] | 2 | 2021-03-22T21:42:03.000Z | 2021-09-01T09:12:43.000Z | spinel_wisun_utils.py | LaudateCorpus1/ti-wisunfan-pyspinel | 5b911ef8319115fb2ef20a57358dd44733bed30a | [
"Apache-2.0"
] | 1 | 2021-11-11T16:18:51.000Z | 2021-11-11T16:18:51.000Z | spinel_wisun_utils.py | LaudateCorpus1/ti-wisunfan-pyspinel | 5b911ef8319115fb2ef20a57358dd44733bed30a | [
"Apache-2.0"
] | 5 | 2021-08-18T03:15:32.000Z | 2022-01-20T05:19:41.000Z | #!/usr/bin/env python
#
#
# 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, soft... | 32.54067 | 94 | 0.642847 | 897 | 6,801 | 4.654404 | 0.285396 | 0.039521 | 0.028743 | 0.019162 | 0.068982 | 0.035928 | 0.022036 | 0.022036 | 0 | 0 | 0 | 0.031445 | 0.270548 | 6,801 | 208 | 95 | 32.697115 | 0.810119 | 0.241435 | 0 | 0.140625 | 0 | 0 | 0.023463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0.007813 | 0.007813 | 0 | 0.09375 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9ddef4eb6e5502bd565a0db158fed8bdc6d939f1 | 1,383 | py | Python | src/ModularChess/movements/EnPassant.py | ferranSanchezLlado/ModularChess | 896fa192fd49f86062ea79dd0d3cbe7e5cdc9d6b | [
"MIT"
] | null | null | null | src/ModularChess/movements/EnPassant.py | ferranSanchezLlado/ModularChess | 896fa192fd49f86062ea79dd0d3cbe7e5cdc9d6b | [
"MIT"
] | null | null | null | src/ModularChess/movements/EnPassant.py | ferranSanchezLlado/ModularChess | 896fa192fd49f86062ea79dd0d3cbe7e5cdc9d6b | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING, Optional
from ModularChess.movements.Movement import Movement, MovementData
if TYPE_CHECKING:
from ModularChess.pieces.Piece import Piece
from ModularChess.utils.Position import Position
class EnPassant(Movement):
def __init__(self, piece: "Piece", new_position: "Positi... | 44.612903 | 103 | 0.642805 | 160 | 1,383 | 5.30625 | 0.30625 | 0.053004 | 0.06596 | 0.088339 | 0.149588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.250904 | 1,383 | 30 | 104 | 46.1 | 0.812741 | 0.005061 | 0 | 0 | 0 | 0 | 0.014556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.041667 | 0.166667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9ddfecdb8db0a77645be766083a1ef5b0e142f16 | 2,387 | py | Python | pytemperaturectrl/julabo.py | jenrei/pytemperaturectrl | eabfbf8a6d732cda72c5cd8397a85b0d8960da78 | [
"MIT"
] | null | null | null | pytemperaturectrl/julabo.py | jenrei/pytemperaturectrl | eabfbf8a6d732cda72c5cd8397a85b0d8960da78 | [
"MIT"
] | null | null | null | pytemperaturectrl/julabo.py | jenrei/pytemperaturectrl | eabfbf8a6d732cda72c5cd8397a85b0d8960da78 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
julabo.py
Contains Julabo temperature control
see documentation http://www.julabo.com/sites/default/files/downloads/manuals/french/19524837-V2.pdf at section 10.2.
:copyright: (c) 2015 by Maxime DAUPHIN
:license: MIT, see LICENSE for details
"""
import serial
import time
from .pytempera... | 26.820225 | 118 | 0.714286 | 321 | 2,387 | 5.193146 | 0.386293 | 0.089982 | 0.062987 | 0.086383 | 0.323335 | 0.323335 | 0.308938 | 0.274145 | 0.208758 | 0.208758 | 0 | 0.017813 | 0.153331 | 2,387 | 88 | 119 | 27.125 | 0.807026 | 0.233347 | 0 | 0.314815 | 0 | 0 | 0.091063 | 0.015837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.055556 | 0 | 0.351852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de15ad674c58a2528581460d79721fcb5a0883c | 1,143 | py | Python | algorithms/matrix.py | rkistner/contest-algorithms | 8133f8ddce4f257386c7bcf55589d559854c1955 | [
"Apache-2.0"
] | 4 | 2015-03-08T15:38:45.000Z | 2018-04-08T02:13:54.000Z | algorithms/matrix.py | rkistner/contest-algorithms | 8133f8ddce4f257386c7bcf55589d559854c1955 | [
"Apache-2.0"
] | 1 | 2017-11-29T01:15:55.000Z | 2017-11-29T01:17:40.000Z | algorithms/matrix.py | rkistner/contest-algorithms | 8133f8ddce4f257386c7bcf55589d559854c1955 | [
"Apache-2.0"
] | 4 | 2015-11-08T03:39:54.000Z | 2020-11-06T10:42:53.000Z | """
Some basic matrix-related functionality.
"""
def cumulative2d(grid):
"""
>>> cumulative2d([[2, 5, 4], [3, 8, 1]])
[[0, 0, 0, 0], [0, 2, 7, 11], [0, 5, 18, 23]]
"""
rows = []
for row in grid:
rrr = [0]
last = 0
for col in row:
last += col
rrr.a... | 21.166667 | 65 | 0.464567 | 165 | 1,143 | 3.2 | 0.315152 | 0.015152 | 0.017045 | 0.015152 | 0.094697 | 0.094697 | 0.094697 | 0.094697 | 0.094697 | 0.094697 | 0 | 0.089239 | 0.333333 | 1,143 | 54 | 66 | 21.166667 | 0.603675 | 0.276465 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de39c8afb68ea723afe9738f2762762838a1e06 | 5,361 | py | Python | douyu_spider/douyu_spider_v2.py | DH-JQ/WebSpider-DH | 71603c85cc5327ce7a0a864db145f3c650fa13a5 | [
"MIT"
] | null | null | null | douyu_spider/douyu_spider_v2.py | DH-JQ/WebSpider-DH | 71603c85cc5327ce7a0a864db145f3c650fa13a5 | [
"MIT"
] | null | null | null | douyu_spider/douyu_spider_v2.py | DH-JQ/WebSpider-DH | 71603c85cc5327ce7a0a864db145f3c650fa13a5 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from lxml import etree
import json
class DouyuSpider:
def __init__(self):
""" 初始化
"""
start_u... | 43.233871 | 112 | 0.564447 | 761 | 5,361 | 3.823916 | 0.172142 | 0.052234 | 0.074227 | 0.080412 | 0.681787 | 0.668729 | 0.58488 | 0.571134 | 0.571134 | 0.552234 | 0 | 0.02616 | 0.244171 | 5,361 | 123 | 113 | 43.585366 | 0.692004 | 0.078157 | 0 | 0.354839 | 0 | 0.086022 | 0.251218 | 0.201907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.172043 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de3f58e34c1bda2a31dcb16e2481f3de5ab6ad2 | 960 | py | Python | setup.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | 1 | 2017-10-25T17:11:44.000Z | 2017-10-25T17:11:44.000Z | setup.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | 3 | 2017-03-10T05:27:29.000Z | 2017-04-07T16:06:28.000Z | setup.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Read version in... | 28.235294 | 64 | 0.726042 | 122 | 960 | 5.54918 | 0.52459 | 0.088626 | 0.064993 | 0.070901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001217 | 0.14375 | 960 | 33 | 65 | 29.090909 | 0.822384 | 0.11875 | 0 | 0 | 0 | 0 | 0.29656 | 0.02847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de4af217717d87a01fd3c8f160faa869464539b | 29,850 | py | Python | discretize/tree_mesh.py | ngodber/discretize | 2329c9e9552b5c05f40ebf62f0bb207267bd2f92 | [
"MIT"
] | 123 | 2017-01-09T04:59:25.000Z | 2022-03-29T08:06:43.000Z | discretize/tree_mesh.py | ngodber/discretize | 2329c9e9552b5c05f40ebf62f0bb207267bd2f92 | [
"MIT"
] | 246 | 2017-01-09T17:20:12.000Z | 2022-03-01T22:05:20.000Z | discretize/tree_mesh.py | ngodber/discretize | 2329c9e9552b5c05f40ebf62f0bb207267bd2f92 | [
"MIT"
] | 26 | 2018-03-27T19:24:46.000Z | 2021-11-11T20:28:09.000Z | # ___ ___ ___ ___ ___ ___
# /\ \ /\ \ /\ \ /\ \ /\ \ /\ \
# /::\ \ /::\ \ \:\ \ /::\ \ /::\ \ /::\ \
# /:/\:\ \ /:/\:\ \ \:\ \ /:/\:\ \ /:/\:\ \ /:/\:\ \
# /:/ \:\ \ /:/ \... | 38.665803 | 115 | 0.514807 | 3,410 | 29,850 | 4.243695 | 0.158944 | 0.007187 | 0.007878 | 0.037592 | 0.437565 | 0.388017 | 0.320434 | 0.279179 | 0.180914 | 0.158455 | 0 | 0.017913 | 0.337956 | 29,850 | 771 | 116 | 38.715953 | 0.714351 | 0.313936 | 0 | 0.293706 | 0 | 0.009324 | 0.171697 | 0.018119 | 0 | 0 | 0 | 0.003891 | 0 | 1 | 0.055944 | false | 0.002331 | 0.020979 | 0.004662 | 0.219114 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de60149d3083eff4951fd6c5511316e856edce5 | 4,053 | py | Python | BLOX/Examples/DayTrader/data_downloader.py | linearlabstech/blox | 6a5c8a28fcfcb17731be89939284e7ac13a047d7 | [
"Apache-2.0"
] | 17 | 2019-03-31T18:37:35.000Z | 2020-08-17T18:14:40.000Z | BLOX/Examples/DayTrader/data_downloader.py | linearlabstech/blox | 6a5c8a28fcfcb17731be89939284e7ac13a047d7 | [
"Apache-2.0"
] | null | null | null | BLOX/Examples/DayTrader/data_downloader.py | linearlabstech/blox | 6a5c8a28fcfcb17731be89939284e7ac13a047d7 | [
"Apache-2.0"
] | 1 | 2019-04-02T07:02:08.000Z | 2019-04-02T07:02:08.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Copyright (c) 2019, Linear Labs Technology
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 ... | 40.939394 | 203 | 0.606464 | 566 | 4,053 | 4.293286 | 0.411661 | 0.024691 | 0.034979 | 0.01358 | 0.032099 | 0.016461 | 0.016461 | 0 | 0 | 0 | 0 | 0.042838 | 0.280039 | 4,053 | 99 | 204 | 40.939394 | 0.789925 | 0.555885 | 0 | 0 | 0 | 0 | 0.229826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.206897 | 0.034483 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de667e4365b4429b64b9267a959ad26b53a85c3 | 790 | py | Python | services/db-api/project/config.py | JoshPrim/EVA-Projekt | 94e4f594519eda676e0f5f2787f8643831f346df | [
"Apache-2.0"
] | 2 | 2018-05-30T08:40:26.000Z | 2018-09-06T15:37:25.000Z | services/db-api/project/config.py | JoshPrim/EVA-Projekt | 94e4f594519eda676e0f5f2787f8643831f346df | [
"Apache-2.0"
] | 1 | 2021-06-01T22:37:55.000Z | 2021-06-01T22:37:55.000Z | services/db-api/project/config.py | JoshPrim/EVA-Projekt | 94e4f594519eda676e0f5f2787f8643831f346df | [
"Apache-2.0"
] | 2 | 2018-05-31T14:55:04.000Z | 2018-08-29T09:38:31.000Z | import os
from project import app, db
class BaseConfig:
"""Base configuration"""
TESTING = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
print('Running through config')
class DevelopmentConfig(BaseConfig):
"""Development configuration"""
SQLALCHEMY_DATABASE_URI = os.environ.get('POSTGRES_URL')... | 27.241379 | 65 | 0.734177 | 88 | 790 | 6.363636 | 0.443182 | 0.096429 | 0.128571 | 0.107143 | 0.251786 | 0.251786 | 0.251786 | 0 | 0 | 0 | 0 | 0 | 0.155696 | 790 | 29 | 66 | 27.241379 | 0.83958 | 0.11519 | 0 | 0 | 0 | 0 | 0.159057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.941176 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9de9e23fa22dfbdc836f630d94dbe82b7f2350bd | 1,259 | py | Python | src/sample.py | xiajing10/akec | 239fdda923c8a0743f56dbf0a009fa2235b85451 | [
"MIT"
] | 14 | 2021-01-28T07:13:25.000Z | 2022-02-10T06:41:32.000Z | src/sample.py | xiajing10/akec | 239fdda923c8a0743f56dbf0a009fa2235b85451 | [
"MIT"
] | 2 | 2021-04-14T15:24:30.000Z | 2021-05-06T07:02:08.000Z | src/sample.py | xiajing10/akec | 239fdda923c8a0743f56dbf0a009fa2235b85451 | [
"MIT"
] | 1 | 2021-07-09T02:52:59.000Z | 2021-07-09T02:52:59.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 11:17:21 2020
@author: eilxaix
"""
import pandas as pd
import re
def remove_hashtag(t):
t=re.sub('-',' ', t)
t=' '.join(t.split())
return t
def read_csv_data(df):
title = [remove_hashtag(i) for i in df['Document Title']]
abstract = [remove_hashta... | 38.151515 | 155 | 0.576648 | 163 | 1,259 | 4.306748 | 0.306748 | 0.039886 | 0.059829 | 0.049858 | 0.273504 | 0.253561 | 0.196581 | 0.079772 | 0 | 0 | 0 | 0.01223 | 0.155679 | 1,259 | 32 | 156 | 39.34375 | 0.648166 | 0.242256 | 0 | 0 | 0 | 0 | 0.145281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9deccc7336bb4388cafa2a33d6c4aebd562a78e9 | 936 | py | Python | tests/test_estimators/test_probweight_regression.py | janvdvegt/scikit-lego | 774e557c4d19f67ef54f3f0d1622c64ef9903b63 | [
"MIT"
] | null | null | null | tests/test_estimators/test_probweight_regression.py | janvdvegt/scikit-lego | 774e557c4d19f67ef54f3f0d1622c64ef9903b63 | [
"MIT"
] | null | null | null | tests/test_estimators/test_probweight_regression.py | janvdvegt/scikit-lego | 774e557c4d19f67ef54f3f0d1622c64ef9903b63 | [
"MIT"
] | null | null | null | import numpy as np
import pytest
from sklego.common import flatten
from sklego.linear_model import ProbWeightRegression
from tests.conftest import nonmeta_checks, regressor_checks, general_checks
@pytest.mark.parametrize("test_fn", flatten([
nonmeta_checks,
general_checks,
regressor_checks
]))
def test_e... | 36 | 95 | 0.794872 | 130 | 936 | 5.269231 | 0.415385 | 0.061314 | 0.061314 | 0.087591 | 0.30073 | 0.189781 | 0.189781 | 0 | 0 | 0 | 0 | 0.004843 | 0.117521 | 936 | 25 | 96 | 37.44 | 0.824455 | 0 | 0 | 0 | 0 | 0 | 0.043803 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9df0774506aa365c6756ee8a870b647ac6699146 | 8,284 | py | Python | GEM/plt_resukts_GEM.py | Webbah/sec-for-reinforcement-learning | 19db622dce4963d25cb1b6e4ae12ddf98b6d27d2 | [
"MIT"
] | 2 | 2021-12-16T12:49:26.000Z | 2022-01-28T19:18:43.000Z | GEM/plt_resukts_GEM.py | Webbah/sec-for-reinforcement-learning | 19db622dce4963d25cb1b6e4ae12ddf98b6d27d2 | [
"MIT"
] | null | null | null | GEM/plt_resukts_GEM.py | Webbah/sec-for-reinforcement-learning | 19db622dce4963d25cb1b6e4ae12ddf98b6d27d2 | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
save_results = False
def plot_stored_GEM_reults(interval_x=None, interval_y=None):
if interval_x is None:
#interval_list_x = [0.499, 0.506] # 1
interval_list_x = [0, 1]
#interval_list_x = [0.299, 0.30... | 49.017751 | 185 | 0.543457 | 1,342 | 8,284 | 3.131893 | 0.129657 | 0.105639 | 0.108256 | 0.056626 | 0.656674 | 0.57911 | 0.544611 | 0.526053 | 0.519867 | 0.490126 | 0 | 0.065848 | 0.233704 | 8,284 | 169 | 186 | 49.017751 | 0.596251 | 0.154515 | 0 | 0.166667 | 0 | 0.027778 | 0.268337 | 0.143418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009259 | false | 0 | 0.037037 | 0 | 0.046296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9df19b2f9979610a8ed9bef79a44747496f8dd2a | 3,725 | py | Python | Adhesion/Interactions/PowerLaw.py | ContactEngineering/Adhesion | acc46ad9bfe49fec667cb9a116ebde426faa38c4 | [
"MIT"
] | null | null | null | Adhesion/Interactions/PowerLaw.py | ContactEngineering/Adhesion | acc46ad9bfe49fec667cb9a116ebde426faa38c4 | [
"MIT"
] | 4 | 2021-08-18T07:30:57.000Z | 2022-03-05T11:05:09.000Z | Adhesion/Interactions/PowerLaw.py | ContactEngineering/Adhesion | acc46ad9bfe49fec667cb9a116ebde426faa38c4 | [
"MIT"
] | null | null | null | #
# Copyright 2020 Antoine Sanner
# 2020 Lars Pastewka
#
# ### MIT license
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ri... | 32.391304 | 79 | 0.628725 | 497 | 3,725 | 4.577465 | 0.374245 | 0.031648 | 0.073846 | 0.063297 | 0.086154 | 0.032527 | 0.032527 | 0.032527 | 0 | 0 | 0 | 0.012304 | 0.28 | 3,725 | 114 | 80 | 32.675439 | 0.835943 | 0.395168 | 0 | 0.105263 | 0 | 0 | 0.059925 | 0.009831 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.087719 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9df5471ca3ddddaa94bd6982c624b686b6a66f95 | 677 | py | Python | Python3/Books/Douson/chapter09/simple_game.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Books/Douson/chapter09/simple_game.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Books/Douson/chapter09/simple_game.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | 2 | 2018-07-31T23:25:43.000Z | 2019-07-03T14:26:18.000Z | # Simple Game
# Demonstrates importing modules
import games, random
print("Welcome to the world's simplest game!\n")
again = None
while again != "n":
players = []
num = games.ask_number(question = "How many players? (2 - 5): ",
low = 2, high = 5)
for i in range(num):
na... | 26.038462 | 68 | 0.589365 | 92 | 677 | 4.304348 | 0.608696 | 0.040404 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.285081 | 677 | 25 | 69 | 27.08 | 0.801653 | 0.062038 | 0 | 0 | 0 | 0 | 0.278481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9df5c3a1c0529a4f203b0c8d4d096dd4cd43ed68 | 10,873 | py | Python | izzoLambertSolver.py | tylera277/voyagerTrajectoryCalculator | fded6356e670fbc2b182cac2bfcc98e7223e2b80 | [
"MIT"
] | null | null | null | izzoLambertSolver.py | tylera277/voyagerTrajectoryCalculator | fded6356e670fbc2b182cac2bfcc98e7223e2b80 | [
"MIT"
] | null | null | null | izzoLambertSolver.py | tylera277/voyagerTrajectoryCalculator | fded6356e670fbc2b182cac2bfcc98e7223e2b80 | [
"MIT"
] | null | null | null | """ A module hosting all algorithms devised by Izzo """
import time
import numpy as np
from numpy import cross, pi
from numpy.linalg import norm
from scipy.special import hyp2f1
def izzo2015(
mu,
r1,
r2,
tof,
M=0,
prograde=True,
low_path=True,
maxiter=35,
a... | 32.360119 | 89 | 0.54925 | 1,660 | 10,873 | 3.464458 | 0.216867 | 0.030603 | 0.003652 | 0.005216 | 0.239611 | 0.196835 | 0.166927 | 0.116501 | 0.100504 | 0.067119 | 0 | 0.049364 | 0.334866 | 10,873 | 336 | 90 | 32.360119 | 0.745852 | 0.363469 | 0 | 0.132075 | 0 | 0 | 0.014306 | 0 | 0 | 0 | 0 | 0.002976 | 0.006289 | 1 | 0.08805 | false | 0 | 0.031447 | 0.018868 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9df6b818788dd513c66a7c66d4ffd98206ba31ae | 2,688 | py | Python | integrationtest/vm/virtualrouter/regression/delete_sg_with_2_attached_nics.py | sherry546/zstack-woodpecker | 54a37459f2d72ce6820974feaa6eb55772c3d2ce | [
"Apache-2.0"
] | 2 | 2016-03-23T08:45:44.000Z | 2017-06-26T02:40:46.000Z | integrationtest/vm/virtualrouter/regression/delete_sg_with_2_attached_nics.py | KevinDavidMitnick/zstack-woodpecker | 96257faaf3c362168d008bdb47002025ad669b24 | [
"Apache-2.0"
] | null | null | null | integrationtest/vm/virtualrouter/regression/delete_sg_with_2_attached_nics.py | KevinDavidMitnick/zstack-woodpecker | 96257faaf3c362168d008bdb47002025ad669b24 | [
"Apache-2.0"
] | 2 | 2020-03-12T03:11:28.000Z | 2021-07-26T01:57:58.000Z | '''
Test deleting SG with 2 attached NICs.
@author: Youyk
'''
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.zstack_test.zstack_test_security_group as test_sg_header
import zstackwoodpecker.... | 33.6 | 97 | 0.696801 | 430 | 2,688 | 4.039535 | 0.248837 | 0.032239 | 0.040299 | 0.034542 | 0.302821 | 0.24928 | 0.17559 | 0.070236 | 0.039148 | 0.039148 | 0 | 0.034644 | 0.205357 | 2,688 | 79 | 98 | 34.025316 | 0.778558 | 0.175223 | 0 | 0.0625 | 0 | 0 | 0.087753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.020833 | 0.125 | 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 |
9df90abf6f95f0cc5563b0534b8331a0e2b2223e | 15,365 | py | Python | examples/deep_architect.py | negrinho/sane_tikz | fd6f291d9815613594d724678cb91ac9d412fbb7 | [
"MIT"
] | 274 | 2020-02-13T20:24:50.000Z | 2022-03-23T01:51:20.000Z | examples/deep_architect.py | negrinho/sane_tikz | fd6f291d9815613594d724678cb91ac9d412fbb7 | [
"MIT"
] | null | null | null | examples/deep_architect.py | negrinho/sane_tikz | fd6f291d9815613594d724678cb91ac9d412fbb7 | [
"MIT"
] | 19 | 2020-02-14T01:07:42.000Z | 2022-02-28T11:42:36.000Z | # Figure 5 in https://arxiv.org/pdf/1909.13404.pdf (towards modular and programmable architecture search)
import sane_tikz.core as stz
import sane_tikz.formatting as fmt
frame_height = 9.5
frame_width = 10.0
frame_spacing = 0.2
frame_roundness = 0.6
frame_line_width = 4.5 * fmt.standard_line_width
module_height = 1.6... | 33.918322 | 105 | 0.615164 | 2,300 | 15,365 | 3.778696 | 0.091304 | 0.009895 | 0.01841 | 0.025429 | 0.606489 | 0.483604 | 0.418134 | 0.378783 | 0.283512 | 0.204695 | 0 | 0.05074 | 0.252197 | 15,365 | 452 | 106 | 33.993363 | 0.705657 | 0.01562 | 0 | 0.268156 | 0 | 0 | 0.045779 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 1 | 0.055866 | false | 0 | 0.005587 | 0.02514 | 0.117318 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9dfa3001c3ff293c70ee1d697f313a0584e7ea7e | 25,801 | py | Python | pytests/epengine/basic_ops.py | pavithra-mahamani/TAF | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | [
"Apache-2.0"
] | null | null | null | pytests/epengine/basic_ops.py | pavithra-mahamani/TAF | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | [
"Apache-2.0"
] | null | null | null | pytests/epengine/basic_ops.py | pavithra-mahamani/TAF | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | [
"Apache-2.0"
] | null | null | null | import time
import json
from basetestcase import BaseTestCase
from couchbase_helper.documentgenerator import doc_generator
from couchbase_helper.durability_helper import DurabilityHelper, \
DurableExceptions
from couchbase_helper.tuq_generators import JsonGenerator
from ... | 46.155635 | 138 | 0.609744 | 3,137 | 25,801 | 4.745298 | 0.141218 | 0.028819 | 0.023512 | 0.016929 | 0.63993 | 0.5833 | 0.5395 | 0.515384 | 0.491603 | 0.478772 | 0 | 0.016267 | 0.294756 | 25,801 | 558 | 139 | 46.238351 | 0.801825 | 0.07178 | 0 | 0.509302 | 0 | 0 | 0.122727 | 0.01985 | 0 | 0 | 0.001793 | 0 | 0.02093 | 1 | 0.030233 | false | 0.02093 | 0.023256 | 0 | 0.05814 | 0.004651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9dfb7758cdce3c78cd800cea3cdddc3f4635fbfc | 1,025 | py | Python | plot/different_optimal_classifier_scale_for_different_classes.py | ZGCTroy/guided-diffusion | af987bb2b65db2875148a5466df79736ea5ae6a1 | [
"MIT"
] | null | null | null | plot/different_optimal_classifier_scale_for_different_classes.py | ZGCTroy/guided-diffusion | af987bb2b65db2875148a5466df79736ea5ae6a1 | [
"MIT"
] | null | null | null | plot/different_optimal_classifier_scale_for_different_classes.py | ZGCTroy/guided-diffusion | af987bb2b65db2875148a5466df79736ea5ae6a1 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import yaml
import os
workspace = "/workspace/mnt/storage/guangcongzheng/zju_zgc/guided-diffusion"
num_samples = 192
log = os.path.join(workspace, 'log/imagenet1000_classifier256x256_channel128_upperbound/predict/model500000_imagenet1000_stepsddim25_sample{}_selectedClass'.format(num_... | 25 | 177 | 0.68878 | 132 | 1,025 | 5.136364 | 0.492424 | 0.058997 | 0.029499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0.194146 | 1,025 | 40 | 178 | 25.625 | 0.77845 | 0 | 0 | 0 | 0 | 0 | 0.267191 | 0.231827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9dfef6c55764a02f7c38cb42e6e52c30df77aaec | 2,882 | py | Python | main.py | swapmali/WalliScrapper | b7853f7d25da594045039847ad76eddd8d1204d8 | [
"MIT"
] | null | null | null | main.py | swapmali/WalliScrapper | b7853f7d25da594045039847ad76eddd8d1204d8 | [
"MIT"
] | null | null | null | main.py | swapmali/WalliScrapper | b7853f7d25da594045039847ad76eddd8d1204d8 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests
import urllib.request
from datetime import datetime
import time
from PIL import Image, ImageDraw, ImageFont
import ctypes
import os
import shutil
import socket
import sys
def is_connected(hostname):
try:
# see if we can resolve the host name -- tells us if the... | 34.722892 | 165 | 0.597155 | 348 | 2,882 | 4.896552 | 0.514368 | 0.04108 | 0.02993 | 0.025822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014995 | 0.259542 | 2,882 | 82 | 166 | 35.146341 | 0.783037 | 0.148508 | 0 | 0.109091 | 0 | 0.036364 | 0.273585 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0.036364 | 0.2 | 0 | 0.254545 | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9dff88c39b7da4ce4056ad2977600b1620da0183 | 9,401 | py | Python | model_rnn_attention.py | zhzhx2008/keras_text_classification | e10565fb82ffbfa8b1d685be8b162c26f1429784 | [
"MIT"
] | 2 | 2019-07-11T17:01:17.000Z | 2019-07-11T17:01:19.000Z | model_rnn_attention.py | zhzhx2008/keras_text_classification | e10565fb82ffbfa8b1d685be8b162c26f1429784 | [
"MIT"
] | null | null | null | model_rnn_attention.py | zhzhx2008/keras_text_classification | e10565fb82ffbfa8b1d685be8b162c26f1429784 | [
"MIT"
] | 1 | 2019-12-24T01:03:47.000Z | 2019-12-24T01:03:47.000Z | # coding=utf-8
# @Author : zhzhx2008
# @Time : 18-10-9
import os
import warnings
import jieba
import numpy as np
from keras import Input
from keras import Model
from keras import backend as K
from keras import initializers, regularizers, constraints
from keras.callbacks import EarlyStopping, ModelCheckpoint
from... | 37.454183 | 189 | 0.688118 | 1,286 | 9,401 | 4.787714 | 0.233281 | 0.021926 | 0.031671 | 0.035732 | 0.264739 | 0.229657 | 0.199123 | 0.169888 | 0.148936 | 0.136268 | 0 | 0.032802 | 0.20551 | 9,401 | 251 | 190 | 37.454183 | 0.791538 | 0.271886 | 0 | 0.014184 | 0 | 0 | 0.026655 | 0.011231 | 0 | 0 | 0 | 0 | 0.007092 | 1 | 0.049645 | false | 0 | 0.120567 | 0.014184 | 0.212766 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3b00d75cd611416080f44811a3c1f126a3ad61da | 6,731 | py | Python | fastfold/model/fastnn/ops.py | hpcaitech/FastFold | a65d5009279ef84c1518081344db5c02213c387a | [
"Apache-2.0"
] | 303 | 2022-03-03T01:59:47.000Z | 2022-03-31T07:46:42.000Z | fastfold/model/fastnn/ops.py | hpcaitech/FastFold | a65d5009279ef84c1518081344db5c02213c387a | [
"Apache-2.0"
] | 6 | 2022-03-03T22:17:03.000Z | 2022-03-17T06:09:11.000Z | fastfold/model/fastnn/ops.py | hpcaitech/FastFold | a65d5009279ef84c1518081344db5c02213c387a | [
"Apache-2.0"
] | 35 | 2022-03-03T01:58:56.000Z | 2022-03-29T21:21:06.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from einops import rearrange
from fastfold.model.fastnn.kernel import scale_mask_softmax, scale_mask_bias_softmax
from fastfold.model.fastnn.kernel import LayerNorm
from .initializer import glorot_uniform_af
from fastfold.model.fastnn.kernel ... | 34.875648 | 106 | 0.592334 | 930 | 6,731 | 4.022581 | 0.182796 | 0.018712 | 0.020583 | 0.022721 | 0.311147 | 0.233627 | 0.182572 | 0.148623 | 0.148623 | 0.148623 | 0 | 0.013108 | 0.297281 | 6,731 | 192 | 107 | 35.057292 | 0.777801 | 0.154658 | 0 | 0.117647 | 0 | 0 | 0.032754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092437 | false | 0 | 0.084034 | 0 | 0.268908 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3b031f123e10590a23278a8471646c084f1f967a | 1,093 | py | Python | src/input/__init__.py | huyingjun/PyAgent | ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4 | [
"MIT"
] | 1 | 2021-12-23T11:56:19.000Z | 2021-12-23T11:56:19.000Z | src/input/__init__.py | huyingjun/PyAgent | ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4 | [
"MIT"
] | null | null | null | src/input/__init__.py | huyingjun/PyAgent | ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
__init__.py
~~~~~~~~
数据收集插件 input
:author: Fufu, 2021/6/7
"""
from abc import abstractmethod
from asyncio import create_task, sleep
from typing import Any
from loguru import logger
from ..libs.plugin import BasePlugin
class InputPlugin(BasePlugin):
"""数据采集插件基类"""
... | 22.770833 | 76 | 0.610247 | 134 | 1,093 | 4.843284 | 0.552239 | 0.061633 | 0.046225 | 0.049307 | 0.098613 | 0.098613 | 0.098613 | 0.098613 | 0 | 0 | 0 | 0.011057 | 0.255261 | 1,093 | 47 | 77 | 23.255319 | 0.786241 | 0.123513 | 0 | 0 | 0 | 0 | 0.133185 | 0.055494 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.217391 | 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 |
3b03f07ac42f24043a890f0020944e25aecce786 | 1,933 | py | Python | repositorybots/bots/Librarian.py | conda/conda-bots | a68cff7b0318093328e355e18871518c050f5493 | [
"BSD-3-Clause"
] | 2 | 2021-09-27T02:29:26.000Z | 2021-10-20T19:10:39.000Z | repositorybots/bots/Librarian.py | conda/conda-bots | a68cff7b0318093328e355e18871518c050f5493 | [
"BSD-3-Clause"
] | 14 | 2021-09-09T21:16:05.000Z | 2022-03-28T09:31:09.000Z | repositorybots/bots/Librarian.py | conda/conda-bots | a68cff7b0318093328e355e18871518c050f5493 | [
"BSD-3-Clause"
] | 2 | 2021-09-09T12:11:48.000Z | 2022-01-28T20:25:26.000Z | import yaml
import re
from .SummonableBot import SummonableBot
class Librarian(SummonableBot):
def __init__(self, bot_name, event):
self.help_command = 'help'
self.help_preamble = "Here are my available responses"
self.event = event
with open('./responses.yml') as file:
... | 42.021739 | 114 | 0.621314 | 232 | 1,933 | 4.892241 | 0.331897 | 0.035242 | 0.039648 | 0.063436 | 0.206167 | 0.156828 | 0.156828 | 0.156828 | 0.123348 | 0.123348 | 0 | 0.000689 | 0.249353 | 1,933 | 45 | 115 | 42.955556 | 0.78153 | 0 | 0 | 0.162162 | 0 | 0 | 0.105018 | 0.024315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.081081 | 0.027027 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3b04c0970a5c74618f4b5ea5a958ded0e0f252eb | 8,201 | py | Python | word_game_helper.py | avendesora/wordle-helper | 651c1eddca14f56be798e0fe242c1f2cf98ae7ba | [
"MIT"
] | null | null | null | word_game_helper.py | avendesora/wordle-helper | 651c1eddca14f56be798e0fe242c1f2cf98ae7ba | [
"MIT"
] | null | null | null | word_game_helper.py | avendesora/wordle-helper | 651c1eddca14f56be798e0fe242c1f2cf98ae7ba | [
"MIT"
] | null | null | null | import pprint
import statistics
from contextlib import suppress
from dataclasses import dataclass
from enum import Enum
from typing import Optional
@dataclass
class ValidCharacter:
definite_locations: set[int]
definite_not_locations: set[int]
class CharacterStatus(Enum):
GRAY = "gray"
GREEN = "green... | 34.603376 | 90 | 0.573954 | 818 | 8,201 | 5.46577 | 0.156479 | 0.087676 | 0.093491 | 0.056587 | 0.33885 | 0.261463 | 0.139566 | 0.129278 | 0.070678 | 0.070678 | 0 | 0.00545 | 0.351177 | 8,201 | 236 | 91 | 34.75 | 0.834805 | 0.036703 | 0 | 0.210227 | 0 | 0 | 0.089216 | 0.039159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0.034091 | 0 | 0.210227 | 0.056818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d178683893b91fd9a85c22e3c3785427e4b51812 | 2,249 | py | Python | 876.middle-of-the-linked-list.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | 876.middle-of-the-linked-list.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | 876.middle-of-the-linked-list.py | windard/leeeeee | 0107a5f95746592ca4fe78d2b5875cf65b1910e7 | [
"MIT"
] | null | null | null | # coding=utf-8
#
# @lc app=leetcode id=876 lang=python
#
# [876] Middle of the Linked List
#
# https://leetcode.com/problems/middle-of-the-linked-list/description/
#
# algorithms
# Easy (64.97%)
# Likes: 593
# Dislikes: 42
# Total Accepted: 76.4K
# Total Submissions: 117.5K
# Testcase Example: '[1,2,3,4,5]'
#
# ... | 21.834951 | 79 | 0.595376 | 329 | 2,249 | 4.021277 | 0.337386 | 0.066516 | 0.072562 | 0.075586 | 0.150416 | 0.11489 | 0.078609 | 0.054422 | 0 | 0 | 0 | 0.040954 | 0.272566 | 2,249 | 102 | 80 | 22.04902 | 0.767726 | 0.656292 | 0 | 0 | 0 | 0 | 0.028316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d17e6c29b97301453dbf67266605a0471b95c7b0 | 3,442 | py | Python | ava_asd/vis.py | tuanchien/asd | 190c1c6d155b16a27717596d6350598e5cd4ffac | [
"Apache-2.0",
"MIT"
] | 18 | 2020-06-19T01:18:13.000Z | 2022-03-21T10:42:13.000Z | ava_asd/vis.py | tuanchien/asd | 190c1c6d155b16a27717596d6350598e5cd4ffac | [
"Apache-2.0",
"MIT"
] | 8 | 2020-12-17T06:09:59.000Z | 2021-07-10T02:07:41.000Z | ava_asd/vis.py | tuanchien/asd | 190c1c6d155b16a27717596d6350598e5cd4ffac | [
"Apache-2.0",
"MIT"
] | 4 | 2020-06-20T01:05:01.000Z | 2021-08-05T13:45:48.000Z | # New BSD License
#
# Copyright (c) 2007-2019 The scikit-learn developers.
# All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# a. Redistributions of source code must retain the above copyright... | 40.494118 | 107 | 0.691458 | 481 | 3,442 | 4.914761 | 0.498961 | 0.044416 | 0.007614 | 0.01269 | 0.098985 | 0.07868 | 0.05753 | 0.05753 | 0.05753 | 0.05753 | 0 | 0.007496 | 0.224869 | 3,442 | 84 | 108 | 40.97619 | 0.878561 | 0.570017 | 0 | 0.058824 | 0 | 0 | 0.098384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.147059 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1802643daf10062a7ef847447ff5fef65abb757 | 1,757 | py | Python | tests/state_tests.py | Alasdair-Macindoe/TuringMachineEmulator | 4c2639876bd94209b170232b2f33ea1409a61a45 | [
"MIT"
] | null | null | null | tests/state_tests.py | Alasdair-Macindoe/TuringMachineEmulator | 4c2639876bd94209b170232b2f33ea1409a61a45 | [
"MIT"
] | null | null | null | tests/state_tests.py | Alasdair-Macindoe/TuringMachineEmulator | 4c2639876bd94209b170232b2f33ea1409a61a45 | [
"MIT"
] | null | null | null | import pytest
import sys
sys.path.append('.')
from turingmachine import Transition, Direction, State
def test_create_transition():
q0 = State()
q1 = State()
#In q0 upon reading a move to q1, output b, and move the tape 1 right
q0.create_transition('a', q1, 'b', Direction.RIGHT)
assert q0.transiti... | 31.375 | 94 | 0.650541 | 243 | 1,757 | 4.588477 | 0.201646 | 0.093274 | 0.119283 | 0.125561 | 0.416144 | 0.335426 | 0.172197 | 0.172197 | 0 | 0 | 0 | 0.036466 | 0.188389 | 1,757 | 55 | 95 | 31.945455 | 0.745442 | 0.038702 | 0 | 0.244444 | 0 | 0 | 0.020735 | 0 | 0 | 0 | 0 | 0 | 0.288889 | 1 | 0.111111 | false | 0 | 0.066667 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1813862bfc10545d923154e8ce565b2682d6c7b | 558 | py | Python | Python3/0041-First-Missing-Positive/soln-1.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0041-First-Missing-Positive/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0041-First-Missing-Positive/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def firstMissingPositive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# constant space
# [1, len(nums) + 1]
n = len(nums)
for i, num in enumerate(nums):
if num < 0 or num > n:
nums[i] = 0
n ... | 26.571429 | 41 | 0.405018 | 68 | 558 | 3.323529 | 0.367647 | 0.053097 | 0.09292 | 0.119469 | 0.292035 | 0.292035 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.483871 | 558 | 21 | 42 | 26.571429 | 0.756944 | 0.121864 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d18168c2e3ac9ceaadcf572633e69461bbc92841 | 294 | py | Python | default/modules/cwd.py | AshlynnInWonderland/zsh-powerline | e6f3326b3e15d8a89a0ea959314ea0ea5768ea86 | [
"MIT"
] | null | null | null | default/modules/cwd.py | AshlynnInWonderland/zsh-powerline | e6f3326b3e15d8a89a0ea959314ea0ea5768ea86 | [
"MIT"
] | null | null | null | default/modules/cwd.py | AshlynnInWonderland/zsh-powerline | e6f3326b3e15d8a89a0ea959314ea0ea5768ea86 | [
"MIT"
] | null | null | null | import os
def returnText():
cwd = os.getcwd().replace(os.environ['HOME'],'~')
lstCwd = str.split(cwd, '/')
if len(lstCwd) > 3:
lstCwd.reverse()
lstCwd = lstCwd[0:3]
lstCwd.append('+')
lstCwd.reverse()
strCwd = '/'.join(lstCwd)
return strCwd
| 22.615385 | 53 | 0.547619 | 34 | 294 | 4.735294 | 0.617647 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.268707 | 294 | 12 | 54 | 24.5 | 0.734884 | 0 | 0 | 0.181818 | 0 | 0 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 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 |
d185040fe764c47e88800452a2deca88a3ec3079 | 13,255 | py | Python | edna2/tasks/Is4aTasks.py | gsantoni/edna2 | 0aad63a3ea8091ce62118f0b2c8ac78a2286da9e | [
"CC0-1.0",
"MIT"
] | null | null | null | edna2/tasks/Is4aTasks.py | gsantoni/edna2 | 0aad63a3ea8091ce62118f0b2c8ac78a2286da9e | [
"CC0-1.0",
"MIT"
] | 2 | 2020-04-06T10:39:50.000Z | 2021-04-14T19:24:37.000Z | edna2/tasks/Is4aTasks.py | gsantoni/edna2 | 0aad63a3ea8091ce62118f0b2c8ac78a2286da9e | [
"CC0-1.0",
"MIT"
] | 5 | 2019-06-14T07:28:38.000Z | 2021-04-28T13:10:39.000Z | #
# Copyright (c) European Synchrotron Radiation Facility (ESRF)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy,... | 40.045317 | 106 | 0.485704 | 908 | 13,255 | 7.048458 | 0.276432 | 0.015625 | 0.00875 | 0.0125 | 0.592813 | 0.592813 | 0.564375 | 0.5375 | 0.493125 | 0.493125 | 0 | 0.005282 | 0.428668 | 13,255 | 330 | 107 | 40.166667 | 0.839826 | 0.167107 | 0 | 0.649194 | 0 | 0 | 0.137212 | 0.013264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020161 | false | 0 | 0.020161 | 0.008065 | 0.072581 | 0.004032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d187fe47d5524b63a0f74b45076d6dc9c23a3d02 | 1,556 | py | Python | predict.py | SuperbTUM/RAW-image-denoising | 9f81be8da6a576f641022707d98b8c37f5c599ab | [
"MIT"
] | 4 | 2021-10-18T04:13:52.000Z | 2022-03-10T14:10:46.000Z | predict.py | SuperbTUM/computational-photography | 9f81be8da6a576f641022707d98b8c37f5c599ab | [
"MIT"
] | 2 | 2021-12-10T02:59:30.000Z | 2022-03-10T03:32:09.000Z | predict.py | SuperbTUM/computational-photography | 9f81be8da6a576f641022707d98b8c37f5c599ab | [
"MIT"
] | 1 | 2021-12-10T02:57:34.000Z | 2021-12-10T02:57:34.000Z | import numpy as np
from tqdm import *
from utils import DataLoaderX
from dataset import collate
from math import *
def prediction(data, model, batch_size, cuda):
data_loader = DataLoaderX(data, batch_size=batch_size, collate_fn=collate, num_workers=0)
model.training = False
iterator = tqdm(data_loader)
... | 32.416667 | 93 | 0.561697 | 237 | 1,556 | 3.540084 | 0.28692 | 0.095352 | 0.042908 | 0.035757 | 0.066746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039648 | 0.270566 | 1,556 | 47 | 94 | 33.106383 | 0.699559 | 0.006427 | 0 | 0 | 0 | 0 | 0.015544 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.25641 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d188ece94a0b8fbdf8e8a6257addd7cf8fc804b8 | 3,318 | py | Python | token_shift_gpt/autoregressive_wrapper.py | fwcwmc/token-shift-gpt | 58c946a8a59976681a90424be5db85ed9a034a59 | [
"MIT"
] | null | null | null | token_shift_gpt/autoregressive_wrapper.py | fwcwmc/token-shift-gpt | 58c946a8a59976681a90424be5db85ed9a034a59 | [
"MIT"
] | null | null | null | token_shift_gpt/autoregressive_wrapper.py | fwcwmc/token-shift-gpt | 58c946a8a59976681a90424be5db85ed9a034a59 | [
"MIT"
] | null | null | null | import torch
from torch import nn
from tqdm import tqdm
from entmax import entmax_bisect
import torch.nn.functional as F
# helper function
def eval_decorator(fn):
def inner(model, *args, **kwargs):
was_training = model.training
model.eval()
out = fn(model, *args, **kwargs)
model.tr... | 30.440367 | 171 | 0.622664 | 472 | 3,318 | 4.125 | 0.252119 | 0.020544 | 0.043143 | 0.053929 | 0.174114 | 0.13662 | 0.085259 | 0.085259 | 0.085259 | 0.085259 | 0 | 0.019894 | 0.257685 | 3,318 | 108 | 172 | 30.722222 | 0.770605 | 0.012658 | 0 | 0.08 | 0 | 0 | 0.003363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0 | 0.066667 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d18def4fbac29199069d5db3991e15a8d8b23343 | 2,225 | py | Python | rl_multi_agent/experiments/furnmove_grid_marginal_nocl_rot_config.py | allenai/cordial-sync | 4005fdc4816c86f6489e5f4b9252fa66b79602be | [
"MIT"
] | 28 | 2020-07-07T16:21:10.000Z | 2021-11-15T11:15:20.000Z | rl_multi_agent/experiments/furnmove_grid_marginal_nocl_rot_config.py | allenai/cordial-sync | 4005fdc4816c86f6489e5f4b9252fa66b79602be | [
"MIT"
] | 5 | 2020-09-29T07:54:43.000Z | 2022-01-04T22:33:02.000Z | rl_multi_agent/experiments/furnmove_grid_marginal_nocl_rot_config.py | allenai/cordial-sync | 4005fdc4816c86f6489e5f4b9252fa66b79602be | [
"MIT"
] | 2 | 2022-02-01T19:50:27.000Z | 2022-03-21T12:23:16.000Z | from typing import Optional
from torch import nn
from rl_multi_agent.experiments.furnmove_grid_marginal_nocl_base_config import (
FurnMoveExperimentConfig,
)
from rl_multi_agent.models import A3CLSTMNStepComCoordinatedActionsEgoGridsEmbedCNN
class FurnMoveGridExperimentConfig(FurnMoveExperimentConfig):
# In... | 38.362069 | 86 | 0.621573 | 214 | 2,225 | 6.03271 | 0.420561 | 0.059644 | 0.058095 | 0.024787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.323596 | 2,225 | 57 | 87 | 39.035088 | 0.851163 | 0.022472 | 0 | 0.086957 | 0 | 0 | 0.018408 | 0.011045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.086957 | 0.065217 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d191008bf7777b6c542e5bf7e0d000e40eac38e6 | 3,101 | py | Python | apps/roster/views.py | dulrich15/spot | 5fa57dbb9c0c9a010b4dc153f832b2d130bc8f73 | [
"MIT"
] | null | null | null | apps/roster/views.py | dulrich15/spot | 5fa57dbb9c0c9a010b4dc153f832b2d130bc8f73 | [
"MIT"
] | null | null | null | apps/roster/views.py | dulrich15/spot | 5fa57dbb9c0c9a010b4dc153f832b2d130bc8f73 | [
"MIT"
] | null | null | null | from __future__ import division
from __future__ import unicode_literals
import re
from django.http import HttpResponse
from django.shortcuts import redirect
from django.template import RequestContext
from django.template import loader
from models import *
from apps.core.views import get_bg_color
def list_students(... | 28.449541 | 84 | 0.653015 | 361 | 3,101 | 5.368421 | 0.221607 | 0.068111 | 0.03612 | 0.034056 | 0.516512 | 0.516512 | 0.516512 | 0.516512 | 0.447368 | 0.447368 | 0 | 0.000863 | 0.252822 | 3,101 | 108 | 85 | 28.712963 | 0.835563 | 0.014834 | 0 | 0.538462 | 0 | 0 | 0.067519 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.025641 | 0.115385 | 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 |
d191a9aab35b5cf9693c2d15e10ff5f31d5411f3 | 6,635 | py | Python | mac-changer.py | Hiiirad/Mac-Changer | df23de01dde3f55b45a8f0bacb065cf2170feb06 | [
"MIT"
] | 1 | 2020-08-06T13:39:50.000Z | 2020-08-06T13:39:50.000Z | mac-changer.py | Hiiirad/Mac-Changer | df23de01dde3f55b45a8f0bacb065cf2170feb06 | [
"MIT"
] | null | null | null | mac-changer.py | Hiiirad/Mac-Changer | df23de01dde3f55b45a8f0bacb065cf2170feb06 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from subprocess import call
from re import search
from random import sample, choice
from csv import reader
from os import popen
from prompt_toolkit import prompt
from prompt_toolkit.completion import WordCompleter
'''
The strings, input and output of this program is in lowercase... | 46.398601 | 289 | 0.64009 | 980 | 6,635 | 4.239796 | 0.232653 | 0.038508 | 0.050542 | 0.015644 | 0.51432 | 0.454874 | 0.408905 | 0.304452 | 0.304452 | 0.280626 | 0 | 0.018692 | 0.209797 | 6,635 | 142 | 290 | 46.725352 | 0.773794 | 0.091937 | 0 | 0.342593 | 0 | 0.055556 | 0.273963 | 0.016004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.009259 | 0.074074 | 0 | 0.111111 | 0.101852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d194460e4175a7a303de85ee742fccf7806780cb | 3,029 | py | Python | scripts/check_status.py | frangiz/walter-server | 0c9ab88a9cc6cf446ba86b1b06bcf9f8c64cf639 | [
"MIT"
] | null | null | null | scripts/check_status.py | frangiz/walter-server | 0c9ab88a9cc6cf446ba86b1b06bcf9f8c64cf639 | [
"MIT"
] | 21 | 2019-09-16T08:08:17.000Z | 2020-05-27T06:49:34.000Z | scripts/check_status.py | frangiz/walter-server | 0c9ab88a9cc6cf446ba86b1b06bcf9f8c64cf639 | [
"MIT"
] | 1 | 2019-10-16T11:23:38.000Z | 2019-10-16T11:23:38.000Z | import datetime
import json
import os
import requests
import smtplib
import ssl
def check_status(config):
new_state = get_current_state()
last_known_state = get_last_known_state()
activated = get_activated(new_state, last_known_state)
deactivated = get_deactivated(new_state, last_known_state)
save... | 30.908163 | 85 | 0.665896 | 415 | 3,029 | 4.66506 | 0.286747 | 0.046488 | 0.036157 | 0.029442 | 0.294421 | 0.25 | 0.195248 | 0.158058 | 0.158058 | 0.158058 | 0 | 0.003775 | 0.212942 | 3,029 | 97 | 86 | 31.226804 | 0.808305 | 0 | 0 | 0.226667 | 0 | 0 | 0.167382 | 0.02311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.013333 | 0.08 | 0.026667 | 0.32 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d19579492873b16f25e4b138c45496b98a9c1bd3 | 5,340 | py | Python | mngSettings.py | guidanoli/fibonaccibot | fead3a151835648f7140945b94afdd0f32aa55ce | [
"MIT"
] | null | null | null | mngSettings.py | guidanoli/fibonaccibot | fead3a151835648f7140945b94afdd0f32aa55ce | [
"MIT"
] | null | null | null | mngSettings.py | guidanoli/fibonaccibot | fead3a151835648f7140945b94afdd0f32aa55ce | [
"MIT"
] | null | null | null | # Settings Manager
# guidanoli
DEFAULT_STGS = {
"commas": "true",
"comments": "true",
"tknlistpath": "tknlist.tk",
"tokenpath": "token.tk"
}
SETTINGS_PATH = "fibonacci.cfg"
TYPE_STR = type("")
TYPE_LIST = type([])
def _validateFilename( filename , extension = "" ):
from re import match
return... | 31.597633 | 78 | 0.618914 | 649 | 5,340 | 4.949153 | 0.237288 | 0.047323 | 0.024284 | 0.027397 | 0.257783 | 0.160648 | 0.11208 | 0.079701 | 0.032379 | 0.032379 | 0 | 0.003797 | 0.260112 | 5,340 | 168 | 79 | 31.785714 | 0.809162 | 0.073408 | 0 | 0.335766 | 0 | 0 | 0.162173 | 0 | 0 | 0 | 0 | 0 | 0.087591 | 1 | 0.109489 | false | 0 | 0.007299 | 0.014599 | 0.343066 | 0.182482 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d19832a8ebc406b607f9daf11bbd5483f8a533f1 | 632 | py | Python | core/commands/public/staff.py | Smashulica/nebula8 | 010df165e3cc61e0154d20310fa972482ec0e7be | [
"Apache-2.0"
] | null | null | null | core/commands/public/staff.py | Smashulica/nebula8 | 010df165e3cc61e0154d20310fa972482ec0e7be | [
"Apache-2.0"
] | null | null | null | core/commands/public/staff.py | Smashulica/nebula8 | 010df165e3cc61e0154d20310fa972482ec0e7be | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright SquirrelNetwork
from core import decorators
from telegram.utils.helpers import mention_markdown
@decorators.public.init
@decorators.delete.init
def init(update,context):
bot = context.bot
administrators = update.effective_chat.get_administrators()
... | 31.6 | 85 | 0.705696 | 80 | 632 | 5.4625 | 0.6125 | 0.061785 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005792 | 0.18038 | 632 | 20 | 86 | 31.6 | 0.835907 | 0.107595 | 0 | 0 | 0 | 0 | 0.053381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d19cf55d1eed29f5e017627cc562825403fd7101 | 2,937 | py | Python | 方法二/無LM算capacity.py | jell0213/MUNIT_DataHiding | 75cb80a7ee5175c0a2235336e230ce3759f5b296 | [
"Unlicense"
] | null | null | null | 方法二/無LM算capacity.py | jell0213/MUNIT_DataHiding | 75cb80a7ee5175c0a2235336e230ce3759f5b296 | [
"Unlicense"
] | null | null | null | 方法二/無LM算capacity.py | jell0213/MUNIT_DataHiding | 75cb80a7ee5175c0a2235336e230ce3759f5b296 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
#######################################################
'''
input
路徑
圖片數量
MOD值
嵌密率
處理內容
輸入一張圖片的資料,包含:
1.資料夾名稱
2.檔案名稱(圖片),單純用來記錄在xlsx檔案中
3.輸出路徑-xlsx
4.嵌密mod值
5.嵌密率
output
產生輸入圖片的xlsx檔(依序將所有圖片的資料寫入xlsx檔中)
包含執行時間
'''
####... | 40.232877 | 138 | 0.405856 | 301 | 2,937 | 3.82392 | 0.355482 | 0.041703 | 0.041703 | 0.028671 | 0.27715 | 0.249348 | 0.226759 | 0.226759 | 0.226759 | 0.226759 | 0 | 0.033762 | 0.364658 | 2,937 | 72 | 139 | 40.791667 | 0.583065 | 0.172625 | 0 | 0.12 | 0 | 0 | 0.128696 | 0.073913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.12 | 0 | 0.14 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d19f00e9b0507a59fe36f2031d52bc840d7e8792 | 2,592 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/test_hashi_vault_option_group_base.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/test_hashi_vault_option_group_base.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/test_hashi_vault_option_group_base.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021 Brian Scholer (@briantist)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import pytest
from ansible_collections.community.hashi... | 31.609756 | 129 | 0.669367 | 321 | 2,592 | 5.099688 | 0.411215 | 0.085522 | 0.062309 | 0.037874 | 0.10507 | 0.074527 | 0 | 0 | 0 | 0 | 0 | 0.03604 | 0.154321 | 2,592 | 81 | 130 | 32 | 0.710766 | 0.121914 | 0 | 0.057692 | 0 | 0 | 0.21438 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.096154 | false | 0 | 0.096154 | 0.057692 | 0.269231 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d19f23d69e8c497f2703e0ce9519ea14add2903f | 2,695 | py | Python | app/client.py | akakou/privacy-enhanced-antivirus | 4cd32b27374016dd489eb13ac196c2c044912933 | [
"MIT"
] | null | null | null | app/client.py | akakou/privacy-enhanced-antivirus | 4cd32b27374016dd489eb13ac196c2c044912933 | [
"MIT"
] | null | null | null | app/client.py | akakou/privacy-enhanced-antivirus | 4cd32b27374016dd489eb13ac196c2c044912933 | [
"MIT"
] | null | null | null | from kivy.lang import Builder
import array
import scipy
import os
import syft as sy
import tensorflow as tf
import numpy
import time
import scipy
import sys
from dataset import get_dataset
from cluster import get_cluster
from PIL import Image
import leargist
from skimage import transform
from imageio import imsave
f... | 21.910569 | 72 | 0.638219 | 373 | 2,695 | 4.474531 | 0.345845 | 0.04314 | 0.026363 | 0.02876 | 0.112642 | 0.038945 | 0.038945 | 0.038945 | 0.038945 | 0 | 0 | 0.017604 | 0.241187 | 2,695 | 122 | 73 | 22.090164 | 0.798533 | 0.046011 | 0 | 0.025 | 0 | 0 | 0.047953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0125 | 0.2625 | 0 | 0.4 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1a1b2cdca7fb838822d102ce1eb3031bc813ef4 | 5,910 | py | Python | network/vgg16.py | CamilaAlvarez/tensorflow-demo | 57f576bafe97054046610ded7a9ce39caa7e84b4 | [
"MIT"
] | null | null | null | network/vgg16.py | CamilaAlvarez/tensorflow-demo | 57f576bafe97054046610ded7a9ce39caa7e84b4 | [
"MIT"
] | null | null | null | network/vgg16.py | CamilaAlvarez/tensorflow-demo | 57f576bafe97054046610ded7a9ce39caa7e84b4 | [
"MIT"
] | null | null | null | from network.network import Network
import tensorflow as tf
import numpy as np
class VGG16(Network):
def __init__(self, input_shape, class_number, x, y, train=False, learning_rate=0.001):
super().__init__()
self.loss = None
self.accuracy = None
self._build_network(input_shape, cla... | 57.941176 | 111 | 0.644501 | 885 | 5,910 | 4.030508 | 0.136723 | 0.07289 | 0.102047 | 0.080179 | 0.454163 | 0.335015 | 0.295206 | 0.099243 | 0.087468 | 0.087468 | 0 | 0.073856 | 0.22335 | 5,910 | 101 | 112 | 58.514851 | 0.703268 | 0 | 0 | 0.119048 | 0 | 0 | 0.05011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.035714 | 0 | 0.107143 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1a66059d6aa2f43be85ef5e0f0969dc1f348e3f | 4,299 | py | Python | preprocessing/gen_clustering.py | HaowenWeiJohn/CV_Project | 8e2414796f60a8c3fe452f3721e4a6ef7edfdb11 | [
"MIT"
] | null | null | null | preprocessing/gen_clustering.py | HaowenWeiJohn/CV_Project | 8e2414796f60a8c3fe452f3721e4a6ef7edfdb11 | [
"MIT"
] | null | null | null | preprocessing/gen_clustering.py | HaowenWeiJohn/CV_Project | 8e2414796f60a8c3fe452f3721e4a6ef7edfdb11 | [
"MIT"
] | null | null | null | import yaml
import os
import sys
import yaml
import numpy as np
from tqdm import tqdm
import matplotlib.pyplot as plt
from utils import load_poses, load_calib, load_files, load_vertex
from preprocessing.utils import *
from example.laserscan import *
from PC_cluster.ScanLineRun_cluster.build import ScanLineRun_Cluster
... | 34.119048 | 125 | 0.623168 | 545 | 4,299 | 4.631193 | 0.282569 | 0.036054 | 0.04794 | 0.033281 | 0.172345 | 0.14065 | 0.049525 | 0.049525 | 0.039223 | 0.039223 | 0 | 0.017666 | 0.262619 | 4,299 | 125 | 126 | 34.392 | 0.778549 | 0.296813 | 0 | 0.035088 | 0 | 0 | 0.082969 | 0.020826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192982 | 0 | 0.192982 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1ac4c4b62c7a69033fe73553cd10cf79ee11495 | 638 | py | Python | MyThread.py | hectorpadin1/Computer-Vision-Algorithms | 4ef66353f2453ec1be764787e23260f6ef402e0f | [
"MIT"
] | null | null | null | MyThread.py | hectorpadin1/Computer-Vision-Algorithms | 4ef66353f2453ec1be764787e23260f6ef402e0f | [
"MIT"
] | null | null | null | MyThread.py | hectorpadin1/Computer-Vision-Algorithms | 4ef66353f2453ec1be764787e23260f6ef402e0f | [
"MIT"
] | null | null | null | import threading
import sys
class ReturnValueThread(threading.Thread):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.result = None
def run(self):
if self._target is None:
return # could alternatively raise an exception, depends on the use cas... | 31.9 | 99 | 0.617555 | 77 | 638 | 4.909091 | 0.545455 | 0.10582 | 0.074074 | 0.100529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261755 | 638 | 20 | 100 | 31.9 | 0.802548 | 0.145768 | 0 | 0 | 0 | 0 | 0.049724 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.5 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1ae965b8719af361c251c7b3021070130bbaa7e | 5,653 | py | Python | LDA/lda.py | wimpykid26/Evolutionary-Classification | 0a78cbebc252c0a13703aee20dac9fa234f07b08 | [
"Apache-2.0"
] | 3 | 2019-11-10T08:51:11.000Z | 2020-08-05T14:23:27.000Z | LDA/lda.py | wimpykid26/Evolutionary-Classification | 0a78cbebc252c0a13703aee20dac9fa234f07b08 | [
"Apache-2.0"
] | null | null | null | LDA/lda.py | wimpykid26/Evolutionary-Classification | 0a78cbebc252c0a13703aee20dac9fa234f07b08 | [
"Apache-2.0"
] | 2 | 2017-12-12T13:35:41.000Z | 2017-12-28T10:00:56.000Z | import pandas as pd
from matplotlib import pyplot as plt
import numpy as np
import math
from matplotlib import pyplot as plt
from sklearn.preprocessing import LabelEncoder
feature_dict = {i:label for i,label in zip(
range(4),
('sepal length in cm',
'sepal width in c... | 30.722826 | 101 | 0.613833 | 894 | 5,653 | 3.763982 | 0.288591 | 0.00951 | 0.035661 | 0.030312 | 0.305201 | 0.261218 | 0.199406 | 0.168202 | 0.157504 | 0.157504 | 0 | 0.0217 | 0.217407 | 5,653 | 183 | 102 | 30.89071 | 0.738924 | 0.081196 | 0 | 0.144 | 0 | 0.008 | 0.145837 | 0 | 0 | 0 | 0 | 0 | 0.016 | 1 | 0.008 | false | 0 | 0.048 | 0 | 0.056 | 0.104 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1b01bba827b8c38a0f0739fb791912ffc9c1b74 | 29,968 | py | Python | gentex/texmeas.py | NPann/GenTex | 8a2c7cc746abefd252613f4ddf0d7f70d7ff26f8 | [
"BSD-3-Clause"
] | 3 | 2019-04-26T00:48:01.000Z | 2020-07-06T19:10:17.000Z | gentex/texmeas.py | NPann/GenTex | 8a2c7cc746abefd252613f4ddf0d7f70d7ff26f8 | [
"BSD-3-Clause"
] | null | null | null | gentex/texmeas.py | NPann/GenTex | 8a2c7cc746abefd252613f4ddf0d7f70d7ff26f8 | [
"BSD-3-Clause"
] | 2 | 2019-01-10T18:38:05.000Z | 2021-05-19T16:54:01.000Z | """ gentex.texmeas package
"""
import numpy as np
class Texmeas:
"""Class texmeas for generating texture measures from co-occurrence matrix
Parameters
----------
comat: ndarray
Non-normalized co-occurrence matrix - chi-squared conditional distribution
comparisons require the actua... | 45.613394 | 154 | 0.525894 | 3,572 | 29,968 | 4.399216 | 0.152296 | 0.038946 | 0.022273 | 0.0126 | 0.465763 | 0.418799 | 0.392453 | 0.381698 | 0.36337 | 0.357134 | 0 | 0.017308 | 0.375334 | 29,968 | 656 | 155 | 45.682927 | 0.822115 | 0.341464 | 0 | 0.436464 | 0 | 0.002762 | 0.069908 | 0 | 0 | 0 | 0 | 0.001524 | 0 | 1 | 0.01105 | false | 0 | 0.016575 | 0 | 0.030387 | 0.024862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1b22c20857895713f38d86719437c73c6f5f5b7 | 3,373 | py | Python | AutoSketcher/utils/dataio.py | D1anaGreen/essaykiller | 75311a23dc1f5dc8b5040114fdeda67248700f7a | [
"Apache-2.0"
] | 4,551 | 2020-09-29T14:50:03.000Z | 2022-03-31T00:40:45.000Z | AutoSketcher/utils/dataio.py | D1anaGreen/essaykiller | 75311a23dc1f5dc8b5040114fdeda67248700f7a | [
"Apache-2.0"
] | 28 | 2020-10-01T08:03:23.000Z | 2022-03-30T15:40:40.000Z | AutoSketcher/utils/dataio.py | D1anaGreen/essaykiller | 75311a23dc1f5dc8b5040114fdeda67248700f7a | [
"Apache-2.0"
] | 809 | 2020-10-01T05:34:58.000Z | 2022-03-31T00:40:48.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zk
@contact: kun.zhang@nuance.com
@file: dataio.py
@time: 8/27/2019 4:31 PM
@desc:
"""
import os
def load_txt_data(path, mode='utf-8-sig', origin=False):
"""
This func is used to reading txt file
:param origin:
:param path: path where file stored
... | 20.319277 | 76 | 0.590276 | 472 | 3,373 | 4.116525 | 0.286017 | 0.04632 | 0.056613 | 0.052496 | 0.227998 | 0.206897 | 0.071024 | 0 | 0 | 0 | 0 | 0.005824 | 0.287281 | 3,373 | 165 | 77 | 20.442424 | 0.802413 | 0.341536 | 0 | 0.192982 | 0 | 0 | 0.022129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0.017544 | 0.070175 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1b6e00f1b7c8a15539c5d29a89c356e88a3f73c | 20,511 | py | Python | music_maker.py | kenanbit/loopsichord | d02e021a68333c52adff38cc869bf217deebfc5c | [
"MIT"
] | null | null | null | music_maker.py | kenanbit/loopsichord | d02e021a68333c52adff38cc869bf217deebfc5c | [
"MIT"
] | null | null | null | music_maker.py | kenanbit/loopsichord | d02e021a68333c52adff38cc869bf217deebfc5c | [
"MIT"
] | null | null | null | from constants import *
import pygame as pg
from time import sleep
from metronome import *
import math
import numpy as np
from copy import deepcopy
from audio import *
from instructions_panel import *
from loop import *
class MusicMaker:
def __init__(self, screen):
self.pitch = 0
self.screen = scr... | 49.305288 | 211 | 0.610502 | 2,927 | 20,511 | 4.058763 | 0.11411 | 0.07803 | 0.130051 | 0.079545 | 0.54697 | 0.469949 | 0.386027 | 0.349158 | 0.298485 | 0.283333 | 0 | 0.013119 | 0.290186 | 20,511 | 415 | 212 | 49.424096 | 0.802871 | 0.106236 | 0 | 0.211604 | 0 | 0 | 0.000891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030717 | false | 0 | 0.03413 | 0 | 0.088737 | 0.003413 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1b7d1521d980a52988abbf6e1742ba50379f867 | 10,084 | py | Python | danmu/danmaku/egame.py | simplecelery/zhibo | f1b69dabfde6cd2fc8a8a7fc4112da99feaf778f | [
"Apache-2.0"
] | 4 | 2021-11-21T15:30:32.000Z | 2022-03-11T02:49:30.000Z | danmu/danmaku/egame.py | simplecelery/zhibo | f1b69dabfde6cd2fc8a8a7fc4112da99feaf778f | [
"Apache-2.0"
] | 1 | 2021-11-11T15:44:44.000Z | 2021-11-11T15:44:44.000Z | danmu/danmaku/egame.py | simplecelery/zhibo | f1b69dabfde6cd2fc8a8a7fc4112da99feaf778f | [
"Apache-2.0"
] | 9 | 2021-09-24T03:26:21.000Z | 2022-03-23T01:32:15.000Z | import aiohttp
import struct
import json
import re
class eGame:
heartbeat = b'\x00\x00\x00\x12\x00\x12\x00\x01\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00'
heartbeatInterval = 60
@staticmethod
async def get_ws_info(url):
rid = url.split('/')[-1]
page_id = aid = rid
headers = {
... | 28.485876 | 380 | 0.416501 | 1,231 | 10,084 | 3.340374 | 0.192526 | 0.015078 | 0.024805 | 0.030642 | 0.218872 | 0.126459 | 0.101167 | 0.069796 | 0.062986 | 0.037451 | 0 | 0.040636 | 0.426517 | 10,084 | 353 | 381 | 28.566572 | 0.670413 | 0.011503 | 0 | 0.207921 | 0 | 0.006601 | 0.128122 | 0.018433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079208 | false | 0 | 0.013201 | 0.009901 | 0.19802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1bd46a35b1176540180e5d836f7a6d20314a7dc | 3,703 | py | Python | lib/cogs/reactionpolls.py | pille1842/gerfroniabot | 291dc8f3cf9fb00f3f5e89e36b066660a410026f | [
"MIT"
] | null | null | null | lib/cogs/reactionpolls.py | pille1842/gerfroniabot | 291dc8f3cf9fb00f3f5e89e36b066660a410026f | [
"MIT"
] | null | null | null | lib/cogs/reactionpolls.py | pille1842/gerfroniabot | 291dc8f3cf9fb00f3f5e89e36b066660a410026f | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from discord import Embed
from discord.ext.commands import Cog
from discord.ext.commands import command
import logging
class Reactionpolls(Cog):
NUMBERS = [
"1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "🔟"
]
def __init__(self, bot):
... | 44.614458 | 163 | 0.654604 | 475 | 3,703 | 5.04 | 0.412632 | 0.020468 | 0.021721 | 0.030075 | 0.108605 | 0.04929 | 0.025063 | 0 | 0 | 0 | 0 | 0.007788 | 0.237105 | 3,703 | 82 | 164 | 45.158537 | 0.83292 | 0 | 0 | 0.068966 | 0 | 0.017241 | 0.215311 | 0.054864 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.086207 | 0 | 0.189655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1be71acaff6d8c302bc2e4dd7fae486925372c6 | 5,975 | py | Python | scripts/visualize_image_dataset.py | Sergio5714/pybf | bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc | [
"Apache-2.0"
] | 1 | 2021-11-02T09:54:41.000Z | 2021-11-02T09:54:41.000Z | scripts/visualize_image_dataset.py | Sergio5714/pybf | bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc | [
"Apache-2.0"
] | null | null | null | scripts/visualize_image_dataset.py | Sergio5714/pybf | bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc | [
"Apache-2.0"
] | 2 | 2020-04-17T10:50:06.000Z | 2021-11-02T09:54:47.000Z | """
Copyright (C) 2020 ETH Zurich. All rights reserved.
Author: Sergei Vostrikov, ETH Zurich
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/LI... | 33.757062 | 75 | 0.59364 | 748 | 5,975 | 4.433155 | 0.26738 | 0.036188 | 0.036188 | 0.029855 | 0.308504 | 0.264777 | 0.241255 | 0.229192 | 0.229192 | 0.229192 | 0 | 0.008441 | 0.325858 | 5,975 | 177 | 76 | 33.757062 | 0.814796 | 0.186611 | 0 | 0.347826 | 0 | 0 | 0.06414 | 0.013744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017391 | false | 0 | 0.052174 | 0 | 0.104348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1bef0f9641ed3b8503a1d2834c347e28d936599 | 4,725 | py | Python | tests/ut/python/dataset/test_datasets_get_dataset_size.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | 7 | 2020-05-24T03:19:26.000Z | 2020-05-24T03:20:00.000Z | tests/ut/python/dataset/test_datasets_get_dataset_size.py | liyong126/mindspore | 930a1fb0a8fa9432025442c4f4732058bb7af592 | [
"Apache-2.0"
] | 7 | 2020-03-30T08:31:56.000Z | 2020-04-01T09:54:39.000Z | tests/ut/python/dataset/test_datasets_get_dataset_size.py | liyong126/mindspore | 930a1fb0a8fa9432025442c4f4732058bb7af592 | [
"Apache-2.0"
] | 1 | 2020-03-30T17:07:43.000Z | 2020-03-30T17:07:43.000Z | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 41.447368 | 90 | 0.748995 | 754 | 4,725 | 4.278515 | 0.155172 | 0.082455 | 0.108493 | 0.082455 | 0.735276 | 0.641971 | 0.614073 | 0.590515 | 0.424675 | 0.424675 | 0 | 0.073147 | 0.137778 | 4,725 | 113 | 91 | 41.814159 | 0.718704 | 0.13545 | 0 | 0.212121 | 0 | 0 | 0.104423 | 0.104423 | 0 | 0 | 0 | 0 | 0.378788 | 1 | 0.090909 | false | 0 | 0.015152 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1bfe6581b046ee9479ce7089c84c5e5bea00961 | 4,651 | py | Python | tobiko/shell/iperf/_interface.py | FedericoRessi/tobiko | 188825386dc30197a37b7fe8be03318c73abbc48 | [
"Apache-2.0"
] | 1 | 2022-01-11T20:50:06.000Z | 2022-01-11T20:50:06.000Z | tobiko/shell/iperf/_interface.py | FedericoRessi/tobiko | 188825386dc30197a37b7fe8be03318c73abbc48 | [
"Apache-2.0"
] | null | null | null | tobiko/shell/iperf/_interface.py | FedericoRessi/tobiko | 188825386dc30197a37b7fe8be03318c73abbc48 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 Red Hat, 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 requi... | 31.425676 | 78 | 0.641797 | 522 | 4,651 | 5.538314 | 0.289272 | 0.024905 | 0.033898 | 0.031823 | 0.141128 | 0.098236 | 0.075406 | 0 | 0 | 0 | 0 | 0.002656 | 0.27134 | 4,651 | 147 | 79 | 31.639456 | 0.850398 | 0.14212 | 0 | 0.128713 | 0 | 0 | 0.090383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138614 | false | 0.009901 | 0.039604 | 0.029703 | 0.356436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1c1735ef2cb4649ea44c8972cfcfb01cf792d82 | 512 | py | Python | Tensorflow_official/cnn/.ipynb_checkpoints/test.py | starkidstory/OmegaTensor | 2a80d38236a7ce6d6460be59528b33227d98b93b | [
"MIT"
] | 2 | 2020-04-07T03:01:03.000Z | 2020-04-16T14:33:21.000Z | Tensorflow_official/cnn/.ipynb_checkpoints/test.py | starkidstory/OmegaTensor | 2a80d38236a7ce6d6460be59528b33227d98b93b | [
"MIT"
] | null | null | null | Tensorflow_official/cnn/.ipynb_checkpoints/test.py | starkidstory/OmegaTensor | 2a80d38236a7ce6d6460be59528b33227d98b93b | [
"MIT"
] | null | null | null | import tensorflow as tf
import pathlib
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
#print(np.version.version)
#np.set_printoptions(precision=4)
dataset=tf.data.Dataset.from_tensor_slices([8,3,0,8,2,1])
num=np.arange(5)
numT=tf.convert_to_tensor(num)
numF=tf.cast(numT,dtype=tf.float32)
print(... | 24.380952 | 57 | 0.785156 | 96 | 512 | 4.072917 | 0.46875 | 0.069054 | 0.084399 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039666 | 0.064453 | 512 | 21 | 58 | 24.380952 | 0.776618 | 0.111328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1c51e9ef39f4d3feeb1e7c57ea1abdeb37eef20 | 18,815 | py | Python | src/data/SatelitteSolarPowerSystemV4.py | j1996/EPM_UCC | cf2218c7681966963a179aea043328a2343f92fb | [
"MIT"
] | null | null | null | src/data/SatelitteSolarPowerSystemV4.py | j1996/EPM_UCC | cf2218c7681966963a179aea043328a2343f92fb | [
"MIT"
] | null | null | null | src/data/SatelitteSolarPowerSystemV4.py | j1996/EPM_UCC | cf2218c7681966963a179aea043328a2343f92fb | [
"MIT"
] | null | null | null | import numpy as np
import trimesh
try:
from Satellite_Panel_Solar import Panel_Solar
from SatelitteActitud import SatelitteActitud
except:
from src.data.Satellite_Panel_Solar import Panel_Solar
from src.data.SatelitteActitud import SatelitteActitud
# noinspection SpellCheckingInspection
"""Sa... | 39.116424 | 160 | 0.557906 | 2,171 | 18,815 | 4.690926 | 0.199908 | 0.030636 | 0.031618 | 0.019639 | 0.38698 | 0.318637 | 0.26522 | 0.228594 | 0.204635 | 0.178515 | 0 | 0.016862 | 0.360138 | 18,815 | 480 | 161 | 39.197917 | 0.829056 | 0.254531 | 0 | 0.281385 | 0 | 0 | 0.006685 | 0 | 0 | 0 | 0 | 0.00625 | 0 | 1 | 0.060606 | false | 0.017316 | 0.025974 | 0 | 0.142857 | 0.004329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1c5cfefd7363489dfaa63b0a0dd5fcfd287ee0f | 5,037 | py | Python | Corrfunc/bases.py | dfm/suave | 51c192f450821d9ebb0f3e7eef7461dfb1b2af5f | [
"MIT"
] | 7 | 2021-03-03T15:44:35.000Z | 2021-03-21T09:01:12.000Z | Corrfunc/bases.py | dfm/suave | 51c192f450821d9ebb0f3e7eef7461dfb1b2af5f | [
"MIT"
] | 3 | 2020-07-17T01:06:48.000Z | 2021-01-20T02:59:26.000Z | Corrfunc/bases.py | dfm/suave | 51c192f450821d9ebb0f3e7eef7461dfb1b2af5f | [
"MIT"
] | 2 | 2021-03-20T00:47:51.000Z | 2021-03-21T09:01:03.000Z | import numpy as np
from scipy.interpolate import BSpline
from colossus.cosmology import cosmology
"""
Helper routines for basis functions for the continuous-function estimator.
"""
################
# Spline basis #
################
def spline_bases(rmin, rmax, projfn, ncomponents, ncont=2000, order=3):
'''
Co... | 29.115607 | 120 | 0.638674 | 724 | 5,037 | 4.392265 | 0.243094 | 0.03522 | 0.02673 | 0.01761 | 0.309434 | 0.274214 | 0.248428 | 0.224528 | 0.224528 | 0.2 | 0 | 0.03839 | 0.250149 | 5,037 | 172 | 121 | 29.284884 | 0.803548 | 0.419893 | 0 | 0.133333 | 0 | 0 | 0.049271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0.016667 | 0.25 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1c635399d92b3e1526049c9830b5922d5577a91 | 17,587 | py | Python | src/data/tree_matches.py | behavioral-data/multiverse | 82b7265de0aa3e9d229ce9f3f86b8b48435ca365 | [
"MIT"
] | null | null | null | src/data/tree_matches.py | behavioral-data/multiverse | 82b7265de0aa3e9d229ce9f3f86b8b48435ca365 | [
"MIT"
] | null | null | null | src/data/tree_matches.py | behavioral-data/multiverse | 82b7265de0aa3e9d229ce9f3f86b8b48435ca365 | [
"MIT"
] | 1 | 2021-08-19T15:21:50.000Z | 2021-08-19T15:21:50.000Z | import glob
import os
import pandas as pd
import json
import ast
from tqdm import tqdm
import click
import pickle
from multiprocessing import Pool, cpu_count, Queue
from functools import partial
import itertools
import sys
sys.setrecursionlimit(15000)
import logging
logpath = "./tree_matches.log"
logger = loggin... | 36.112936 | 189 | 0.591289 | 2,139 | 17,587 | 4.635344 | 0.122955 | 0.043772 | 0.05769 | 0.047201 | 0.52708 | 0.443873 | 0.408573 | 0.393343 | 0.386082 | 0.371457 | 0 | 0.003745 | 0.301643 | 17,587 | 487 | 190 | 36.112936 | 0.803534 | 0.14778 | 0 | 0.321839 | 0 | 0 | 0.039917 | 0.004889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077586 | false | 0 | 0.04023 | 0.005747 | 0.20977 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1c81880771dc78be0ce9b1719c11a105c654a6c | 663 | py | Python | examples/accessibility/test_sa11y.py | echo2477/demo-python | adc55aa8075dbd46f94d1ae68f2acfd8f20720d5 | [
"MIT"
] | 42 | 2019-02-27T03:28:52.000Z | 2022-01-25T21:18:45.000Z | examples/accessibility/test_sa11y.py | echo2477/demo-python | adc55aa8075dbd46f94d1ae68f2acfd8f20720d5 | [
"MIT"
] | 12 | 2019-05-10T23:43:55.000Z | 2021-11-05T21:20:02.000Z | examples/accessibility/test_sa11y.py | echo2477/demo-python | adc55aa8075dbd46f94d1ae68f2acfd8f20720d5 | [
"MIT"
] | 38 | 2019-02-27T03:28:52.000Z | 2022-02-17T07:27:08.000Z | import os
from selenium import webdriver
from sa11y.analyze import Analyze
import urllib3
urllib3.disable_warnings()
class TestAccessibilitySa11y(object):
def test_analysis(self):
capabilities = {
'browserName': 'chrome',
'sauce:options': {
'username': os.enviro... | 22.862069 | 69 | 0.612368 | 67 | 663 | 5.955224 | 0.656716 | 0.065163 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014403 | 0.266968 | 663 | 28 | 70 | 23.678571 | 0.806584 | 0 | 0 | 0 | 0 | 0 | 0.226244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1ca40f0376f7b0e97f60f4e474395644c035a44 | 653 | py | Python | 275_hindex_ii.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 275_hindex_ii.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 275_hindex_ii.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | # 275. H-Index II
# Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm?
class Solution(object):
# http://blog.csdn.net/titan0427/article/details/50650006
def hIndex(self, citations):
"""
:type citations: List[int]
:rtype: i... | 29.681818 | 117 | 0.509954 | 86 | 653 | 3.872093 | 0.604651 | 0.024024 | 0.066066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056931 | 0.381317 | 653 | 21 | 118 | 31.095238 | 0.767327 | 0.347626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1cad5eb72fd592bce4b7879f6c49c197729b99c | 6,172 | py | Python | base/site-packages/news/templatetags/news_tags.py | edisonlz/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | 285 | 2019-12-23T09:50:21.000Z | 2021-12-08T09:08:49.000Z | base/site-packages/news/templatetags/news_tags.py | jeckun/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | null | null | null | base/site-packages/news/templatetags/news_tags.py | jeckun/fastor | 342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3 | [
"Apache-2.0"
] | 9 | 2019-12-23T12:59:25.000Z | 2022-03-15T05:12:11.000Z | from django.conf import settings
from django import template
from news.models import NewsItem, NewsAuthor, NewsCategory
register = template.Library()
@register.tag
def get_news(parser, token):
"""
{% get_news 5 as news_items %}
"""
bits = token.split_contents()
if len(bits) == 3:
limit = None
elif len(bits)... | 30.107317 | 137 | 0.70431 | 856 | 6,172 | 4.950935 | 0.191589 | 0.020765 | 0.025956 | 0.024068 | 0.495517 | 0.391222 | 0.321378 | 0.29967 | 0.29967 | 0.259556 | 0 | 0.006426 | 0.168017 | 6,172 | 205 | 138 | 30.107317 | 0.81889 | 0.222132 | 0 | 0.461538 | 0 | 0.007692 | 0.151554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.023077 | 0 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1d19c31d7a08cd05475c969fbf2328d027248cd | 15,337 | py | Python | zed-align.py | zyndagj/zed-align | 143b0043b0bfc88f553dc141f4873715bfabc379 | [
"BSD-3-Clause"
] | 1 | 2017-03-17T15:57:04.000Z | 2017-03-17T15:57:04.000Z | zed-align.py | zyndagj/ZED-bsmap-align | 143b0043b0bfc88f553dc141f4873715bfabc379 | [
"BSD-3-Clause"
] | null | null | null | zed-align.py | zyndagj/ZED-bsmap-align | 143b0043b0bfc88f553dc141f4873715bfabc379 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from math import ceil
import os
import sys
import argparse
import multiprocessing
import subprocess as sp
import re
#from pprint import pprint
from array import array
from yaml import load, dump
contexts = ('CG','CHG','CHH')
def main():
fCheck = fileCheck() #class for checking parameters
pars... | 43.447592 | 207 | 0.57671 | 1,893 | 15,337 | 4.645536 | 0.209192 | 0.027519 | 0.025131 | 0.01501 | 0.194678 | 0.117808 | 0.098817 | 0.086081 | 0.086081 | 0.066295 | 0 | 0.00885 | 0.123297 | 15,337 | 352 | 208 | 43.571023 | 0.645173 | 0.172328 | 0 | 0.128514 | 0 | 0.008032 | 0.309755 | 0.004358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064257 | false | 0 | 0.036145 | 0.004016 | 0.15261 | 0.004016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1d212dc12933a4a0f21c68d34b67d74f7e46ad2 | 4,316 | py | Python | tests/test_metadata_model.py | statisticsnorway/microdata-validator | c6b6788ab3ba7a3dad889db9120ad2decc598e76 | [
"Apache-2.0"
] | 1 | 2022-03-23T09:15:51.000Z | 2022-03-23T09:15:51.000Z | tests/test_metadata_model.py | statisticsnorway/microdata-validator | c6b6788ab3ba7a3dad889db9120ad2decc598e76 | [
"Apache-2.0"
] | 4 | 2022-02-17T08:41:30.000Z | 2022-02-28T14:08:47.000Z | tests/test_metadata_model.py | statisticsnorway/microdata-validator | c6b6788ab3ba7a3dad889db9120ad2decc598e76 | [
"Apache-2.0"
] | null | null | null | import json
import pytest
from microdata_validator import Metadata, PatchingError
RESOURCE_DIR = 'tests/resources/metadata_model'
with open(f'{RESOURCE_DIR}/KREFTREG_DS_described.json') as f:
TRANSFORMED_METADATA = json.load(f)
with open(f'{RESOURCE_DIR}/KREFTREG_DS_described_update.json') as f:
UPDATED_METAD... | 37.530435 | 96 | 0.765524 | 553 | 4,316 | 5.652803 | 0.168174 | 0.145873 | 0.06142 | 0.043506 | 0.664107 | 0.595969 | 0.574216 | 0.557262 | 0.492962 | 0.419706 | 0 | 0.001086 | 0.146432 | 4,316 | 114 | 97 | 37.859649 | 0.847448 | 0.032901 | 0 | 0.292683 | 0 | 0 | 0.266298 | 0.21121 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.121951 | false | 0 | 0.036585 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1d273fedbebba3a9ba1430c685e07560c2562dd | 680 | py | Python | tests/platforms/macOS/dmg/test_mixin.py | chuckyQ/briefcase | 06e84e7b1c3af016c828a5a640d277809de6644b | [
"BSD-3-Clause"
] | 3 | 2020-09-29T15:32:35.000Z | 2021-11-08T09:41:04.000Z | tests/platforms/macOS/dmg/test_mixin.py | CuPidev/briefcase | 35619cbe4b512c8521ad3733341e6bc3422efb58 | [
"BSD-3-Clause"
] | null | null | null | tests/platforms/macOS/dmg/test_mixin.py | CuPidev/briefcase | 35619cbe4b512c8521ad3733341e6bc3422efb58 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T11:52:02.000Z | 2021-03-26T11:52:02.000Z | import sys
import pytest
from briefcase.platforms.macOS.dmg import macOSDmgCreateCommand
if sys.platform != 'darwin':
pytest.skip("requires macOS", allow_module_level=True)
def test_binary_path(first_app_config, tmp_path):
command = macOSDmgCreateCommand(base_path=tmp_path)
binary_path = command.binary... | 29.565217 | 76 | 0.772059 | 92 | 680 | 5.402174 | 0.347826 | 0.112676 | 0.096579 | 0.144869 | 0.539235 | 0.370221 | 0.273642 | 0.273642 | 0.273642 | 0.273642 | 0 | 0.005093 | 0.133824 | 680 | 22 | 77 | 30.909091 | 0.83871 | 0 | 0 | 0.153846 | 0 | 0 | 0.104412 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1d4630b4a1d77b92aebe2079bfb6cc0bd824f76 | 674 | py | Python | meutils/clis/conf.py | Jie-Yuan/MeUtils | 2bb191b0d35b809af037c0f65b37570b8828bea3 | [
"Apache-2.0"
] | 3 | 2020-12-03T07:30:02.000Z | 2021-02-07T13:37:33.000Z | meutils/clis/conf.py | Jie-Yuan/MeUtils | 2bb191b0d35b809af037c0f65b37570b8828bea3 | [
"Apache-2.0"
] | null | null | null | meutils/clis/conf.py | Jie-Yuan/MeUtils | 2bb191b0d35b809af037c0f65b37570b8828bea3 | [
"Apache-2.0"
] | 1 | 2021-02-07T13:37:38.000Z | 2021-02-07T13:37:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : MeUtils.
# @File : conf
# @Time : 2021/1/31 10:20 下午
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
from meutils.pipe import *
# 定义参数
class TrainConf(BaseConfig):
epoch = ... | 18.216216 | 75 | 0.587537 | 89 | 674 | 4.393258 | 0.674157 | 0.092072 | 0.122762 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04501 | 0.24184 | 674 | 36 | 76 | 18.722222 | 0.720157 | 0.440653 | 0 | 0 | 0 | 0 | 0.093664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1d82814692baf55384c0af692ceedac9c370b19 | 4,517 | py | Python | edualgo/circular-linked-list.py | VaishnaviNandakumar/eduAlgo | 5eb24058d969ab6dae2cbd19f9048ea1a353b48e | [
"MIT"
] | 22 | 2021-02-25T04:35:57.000Z | 2022-02-14T13:33:19.000Z | edualgo/circular-linked-list.py | VaishnaviNandakumar/eduAlgo | 5eb24058d969ab6dae2cbd19f9048ea1a353b48e | [
"MIT"
] | 40 | 2021-02-26T06:59:41.000Z | 2021-11-10T07:40:29.000Z | edualgo/circular-linked-list.py | VaishnaviNandakumar/eduAlgo | 5eb24058d969ab6dae2cbd19f9048ea1a353b48e | [
"MIT"
] | 17 | 2021-02-25T00:58:57.000Z | 2021-11-08T23:46:06.000Z | from __init__ import print_msg_box
class Node:
def __init__(self, dataValue=None):
self.dataValue = dataValue
self.next = None
class singleLinkedList:
def __init__(self):
self.headValue = None
self.temp = None
def insertLast(self, *elements):
for data in elements... | 23.404145 | 75 | 0.579367 | 572 | 4,517 | 4.517483 | 0.208042 | 0.095588 | 0.04644 | 0.037152 | 0.53483 | 0.458978 | 0.436533 | 0.400929 | 0.373065 | 0.345975 | 0 | 0.025856 | 0.340713 | 4,517 | 192 | 76 | 23.526042 | 0.84184 | 0.072172 | 0 | 0.427083 | 0 | 0 | 0.378244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.020833 | 0.010417 | 0 | 0.125 | 0.072917 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1e1bcedb2edbb2d5f4a7e0929b4350832d56cb6 | 1,280 | py | Python | keypoints_SIFT_Descriptor.py | praxitelisk/OpenCV_Image_Mining | 8fb6af58a677e9acd9711164080910e4f62f7de8 | [
"MIT"
] | null | null | null | keypoints_SIFT_Descriptor.py | praxitelisk/OpenCV_Image_Mining | 8fb6af58a677e9acd9711164080910e4f62f7de8 | [
"MIT"
] | null | null | null | keypoints_SIFT_Descriptor.py | praxitelisk/OpenCV_Image_Mining | 8fb6af58a677e9acd9711164080910e4f62f7de8 | [
"MIT"
] | null | null | null | #import Libraries
import cv2
import sys
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.image as mpimg
##################################################
'''
This example illustrates how to extract interesting key points
as features from an image
Usage:
keypointsSIFTDescriptor.py [<image... | 28.444444 | 92 | 0.603906 | 153 | 1,280 | 4.993464 | 0.522876 | 0.02356 | 0.034031 | 0.039267 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013135 | 0.107813 | 1,280 | 45 | 93 | 28.444444 | 0.655867 | 0.110938 | 0 | 0 | 0 | 0 | 0.081042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
d1e232b6f4bcb98d057d8080fd878bcc9a488c24 | 1,103 | py | Python | lib/getHostInfoResponse.py | jacksitlab/esxi-client | 0d9c815a2638fb9ed2c559a6ec9bdeb6ff9f033e | [
"MIT"
] | null | null | null | lib/getHostInfoResponse.py | jacksitlab/esxi-client | 0d9c815a2638fb9ed2c559a6ec9bdeb6ff9f033e | [
"MIT"
] | null | null | null | lib/getHostInfoResponse.py | jacksitlab/esxi-client | 0d9c815a2638fb9ed2c559a6ec9bdeb6ff9f033e | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
from .baseVmWareXmlResponse import BaseVmWareXmlResponse
class GetHostInfoResponse(BaseVmWareXmlResponse):
def __str__(self):
return ('GetHostInfoResponse[vendor={} model={} vCPUs={} memory={}]').format(
self.vendor, self.model, self.vCPUs, self.memory)
... | 40.851852 | 95 | 0.676337 | 114 | 1,103 | 6.473684 | 0.438596 | 0.075881 | 0.113821 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201269 | 1,103 | 26 | 96 | 42.423077 | 0.837684 | 0 | 0 | 0 | 0 | 0 | 0.166062 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.1 | 0.4 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1e50fb8283a579fbdd6f28ea13ffe7026e7416d | 1,651 | py | Python | pyefriend_api/app/v1/setting/router.py | softyoungha/pyefriend | 43a9db224be50308458f0b939ac0181b3bd63d0b | [
"MIT"
] | 8 | 2021-11-26T14:22:21.000Z | 2022-03-26T03:32:51.000Z | pyefriend_api/app/v1/setting/router.py | softyoungha/pyefriend | 43a9db224be50308458f0b939ac0181b3bd63d0b | [
"MIT"
] | 1 | 2021-12-19T13:08:26.000Z | 2021-12-19T13:22:28.000Z | pyefriend_api/app/v1/setting/router.py | softyoungha/pyefriend | 43a9db224be50308458f0b939ac0181b3bd63d0b | [
"MIT"
] | 5 | 2022-01-12T17:54:40.000Z | 2022-03-25T10:22:36.000Z | import os
from typing import Optional, List
from fastapi import APIRouter, Request, Response, status, Depends
from pyefriend_api.models.setting import Setting as SettingModel
from pyefriend_api.app.auth import login_required
from .schema import SettingOrm, SettingUpdate
r = APIRouter(prefix='/setting',
... | 30.018182 | 78 | 0.65536 | 207 | 1,651 | 5.091787 | 0.342995 | 0.056926 | 0.060721 | 0.091082 | 0.393738 | 0.235294 | 0.235294 | 0.235294 | 0.172676 | 0.085389 | 0 | 0.009375 | 0.224712 | 1,651 | 54 | 79 | 30.574074 | 0.814063 | 0 | 0 | 0.074074 | 0 | 0 | 0.045785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1e88bdba0945c9b9cc4455b24e5747284f786b4 | 368 | py | Python | circular_rings.py | irahorecka/Diffraction-Simulations--Angular-Spectrum-Method | c2eb1de944685018f887c7861301f7098354e9f5 | [
"MIT"
] | 1 | 2021-01-04T17:04:55.000Z | 2021-01-04T17:04:55.000Z | circular_rings.py | irahorecka/Diffraction-Simulations--Angular-Spectrum-Method | c2eb1de944685018f887c7861301f7098354e9f5 | [
"MIT"
] | null | null | null | circular_rings.py | irahorecka/Diffraction-Simulations--Angular-Spectrum-Method | c2eb1de944685018f887c7861301f7098354e9f5 | [
"MIT"
] | null | null | null | from simulator import PolychromaticField, cf, mm
F = PolychromaticField(
spectrum=1.5 * cf.illuminant_d65,
extent_x=12.0 * mm,
extent_y=12.0 * mm,
Nx=1200,
Ny=1200,
)
F.add_aperture_from_image(
"./apertures/circular_rings.jpg", pad=(9 * mm, 9 * mm), Nx=1500, Ny=1500
)
rgb = F.compute_colors_at... | 23 | 76 | 0.649457 | 63 | 368 | 3.650794 | 0.619048 | 0.017391 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 0.179348 | 368 | 15 | 77 | 24.533333 | 0.649007 | 0 | 0 | 0 | 0 | 0 | 0.081522 | 0.081522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1efcc031c8bf6f3a8fed9857aad8b4235615828 | 897 | py | Python | merge-sort.py | bauluk/algorithms | 9020d2a6150e58ad26d18b8fede32ded966f8a8b | [
"MIT"
] | null | null | null | merge-sort.py | bauluk/algorithms | 9020d2a6150e58ad26d18b8fede32ded966f8a8b | [
"MIT"
] | null | null | null | merge-sort.py | bauluk/algorithms | 9020d2a6150e58ad26d18b8fede32ded966f8a8b | [
"MIT"
] | null | null | null | import random
def mergeSort(numbers):
if len(numbers) <= 1:
return numbers
left = numbers[:len(numbers)//2]
right = numbers[len(numbers)//2:]
left = mergeSort(left)
right = mergeSort(right)
numbers = merge(left, right, numbers)
return numbers
def merge(left, right, numbers):
... | 19.933333 | 43 | 0.518395 | 120 | 897 | 3.875 | 0.25 | 0.129032 | 0.019355 | 0.077419 | 0.141935 | 0.141935 | 0.077419 | 0.077419 | 0 | 0 | 0 | 0.035897 | 0.347826 | 897 | 44 | 44 | 20.386364 | 0.758974 | 0.023411 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0 | 0.166667 | 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 |
d1f02ab69517e03a599a2beb69e3009f8624f7cc | 1,586 | py | Python | W2/task4.py | mcv-m6-video/mcv-m6-2021-team6 | 701fc1420930342f3b3733e8f8fc4675c21d8f3f | [
"Unlicense"
] | null | null | null | W2/task4.py | mcv-m6-video/mcv-m6-2021-team6 | 701fc1420930342f3b3733e8f8fc4675c21d8f3f | [
"Unlicense"
] | 2 | 2021-03-23T10:34:33.000Z | 2021-03-23T18:54:28.000Z | W2/task4.py | mcv-m6-video/mcv-m6-2021-team6 | 701fc1420930342f3b3733e8f8fc4675c21d8f3f | [
"Unlicense"
] | 1 | 2021-03-08T21:13:15.000Z | 2021-03-08T21:13:15.000Z | from utilsw2 import *
from Reader import *
from Adapted_voc_evaluation import *
import glob
path_to_video = 'datasets/AICity_data/train/S03/c010/vdo.avi'
path_to_frames = 'datasets/frames/'
results_path = 'Results/Task1_1'
def task4(color_space=cv2.COLOR_BGR2GRAY, mu_file = f"W2/task1_1/mu.pkl",sigma_file= f"W2/task... | 38.682927 | 167 | 0.655107 | 225 | 1,586 | 4.315556 | 0.386667 | 0.049434 | 0.098867 | 0.092688 | 0.144181 | 0.117405 | 0 | 0 | 0 | 0 | 0 | 0.039152 | 0.226986 | 1,586 | 40 | 168 | 39.65 | 0.752855 | 0.014502 | 0 | 0 | 0 | 0 | 0.144138 | 0.090327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f0cff2e554ccf456ca71299fa80fb9f25a8ffe | 3,207 | py | Python | src/dictstore/file_handler.py | sampathbalivada/dictstore | d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6 | [
"Apache-2.0"
] | 1 | 2021-12-21T14:23:50.000Z | 2021-12-21T14:23:50.000Z | src/dictstore/file_handler.py | sampathbalivada/dictstore | d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6 | [
"Apache-2.0"
] | null | null | null | src/dictstore/file_handler.py | sampathbalivada/dictstore | d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Sai Sampath Kumar Balivada
# 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 ... | 33.061856 | 74 | 0.640474 | 426 | 3,207 | 4.687793 | 0.35446 | 0.068102 | 0.06009 | 0.04006 | 0.164747 | 0.164747 | 0.164747 | 0.164747 | 0.140711 | 0.123185 | 0 | 0.00557 | 0.272217 | 3,207 | 96 | 75 | 33.40625 | 0.850043 | 0.394138 | 0 | 0.205128 | 0 | 0 | 0.047222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.102564 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f1be9cfd0e8788923ad96d397bd4e298d8a339 | 2,432 | py | Python | tests/mappers/test_action_mapper.py | mik-laj/oozie-to-airflow | c04952ddc8354bcafa340703b30f7ff33f844f4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/mappers/test_action_mapper.py | mik-laj/oozie-to-airflow | c04952ddc8354bcafa340703b30f7ff33f844f4e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-01T21:57:45.000Z | 2019-07-01T21:57:45.000Z | tests/mappers/test_action_mapper.py | mik-laj/oozie-to-airflow | c04952ddc8354bcafa340703b30f7ff33f844f4e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 41.931034 | 106 | 0.702303 | 348 | 2,432 | 4.600575 | 0.29023 | 0.099938 | 0.059963 | 0.07995 | 0.517177 | 0.480949 | 0.434728 | 0.434728 | 0.434728 | 0.405996 | 0 | 0.021839 | 0.190378 | 2,432 | 57 | 107 | 42.666667 | 0.791265 | 0.240954 | 0 | 0.147059 | 0 | 0 | 0.09688 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.088235 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f1e91e085496f9d5527679e19a038eaba7f62a | 1,265 | py | Python | euclidean_gcd/Python/euclidean_gcd.py | parammittal16/Algorithms | b9c3b6086ebf9f96bacaa55c2c29961be42676f6 | [
"MIT"
] | 1 | 2018-10-04T13:10:23.000Z | 2018-10-04T13:10:23.000Z | euclidean_gcd/Python/euclidean_gcd.py | Rajeev00021/Algorithms | 2aeeff13b63f17bae2145ffc9583dacbe2070994 | [
"MIT"
] | 2 | 2019-10-15T06:31:33.000Z | 2019-10-15T06:32:19.000Z | euclidean_gcd/Python/euclidean_gcd.py | Rajeev00021/Algorithms | 2aeeff13b63f17bae2145ffc9583dacbe2070994 | [
"MIT"
] | 1 | 2019-10-05T18:24:04.000Z | 2019-10-05T18:24:04.000Z | def euclidean_gcd(first, second):
"""
Calculates GCD of two numbers using the division-based Euclidean Algorithm
:param first: First number
:param second: Second number
"""
while(second):
first, second = second, first % second
return first
def euclidean_gcd_recursive(first, seco... | 34.189189 | 79 | 0.480632 | 112 | 1,265 | 5.285714 | 0.303571 | 0.185811 | 0.086149 | 0.077703 | 0.559122 | 0.489865 | 0.489865 | 0.489865 | 0.489865 | 0.209459 | 0 | 0.001403 | 0.436364 | 1,265 | 36 | 80 | 35.138889 | 0.828892 | 0.207115 | 0 | 0.3 | 0 | 0 | 0.103556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f402dc0bcbd7349f6046e391a89f06ba005aeb | 1,627 | py | Python | util/metrics/covariance.py | jamesoneill12/LayerFusion | 99cba1030ed8c012a453bc7715830fc99fb980dc | [
"Apache-2.0"
] | null | null | null | util/metrics/covariance.py | jamesoneill12/LayerFusion | 99cba1030ed8c012a453bc7715830fc99fb980dc | [
"Apache-2.0"
] | null | null | null | util/metrics/covariance.py | jamesoneill12/LayerFusion | 99cba1030ed8c012a453bc7715830fc99fb980dc | [
"Apache-2.0"
] | null | null | null | """ Distances metrics based on the covariance matrix (mostly in the context of merging and compress)"""
import torch
import numpy as np
import torch.nn.functional as F
np.random.seed(0)
def cov(m, y=None):
"""computes covariance of m"""
if y is not None:
m = torch.cat((m, y), dim=0)
m_exp = torch.... | 23.926471 | 103 | 0.562999 | 303 | 1,627 | 2.940594 | 0.244224 | 0.022447 | 0.089787 | 0.094276 | 0.3367 | 0.320988 | 0.320988 | 0.320988 | 0.274972 | 0.274972 | 0 | 0.037829 | 0.252612 | 1,627 | 67 | 104 | 24.283582 | 0.694901 | 0.212661 | 0 | 0.214286 | 0 | 0 | 0.006421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f4b4fbb3b683f57ba6d1034a8a600f1e9bf050 | 3,415 | py | Python | tfhub_context.py | thingumajig/simple_flask_tfhub | 75daae03299b43310b674664d41c273b6e3994c0 | [
"Apache-2.0"
] | null | null | null | tfhub_context.py | thingumajig/simple_flask_tfhub | 75daae03299b43310b674664d41c273b6e3994c0 | [
"Apache-2.0"
] | 6 | 2020-01-28T22:42:39.000Z | 2022-02-10T00:10:23.000Z | tfhub_context.py | thingumajig/simple_flask_tfhub | 75daae03299b43310b674664d41c273b6e3994c0 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import tensorflow_hub as hub
import numpy as np
class TFHubContext:
def __init__(self, url="https://tfhub.dev/google/universal-sentence-encoder-large/3") -> None:
super().__init__()
print('Initialize graph:')
# Create graph and finalize (finalizing optional but recommended).
... | 36.72043 | 103 | 0.685505 | 444 | 3,415 | 5.065315 | 0.245496 | 0.106714 | 0.061361 | 0.025345 | 0.698088 | 0.698088 | 0.698088 | 0.656292 | 0.656292 | 0.581147 | 0 | 0.002467 | 0.16896 | 3,415 | 93 | 104 | 36.72043 | 0.789993 | 0.286384 | 0 | 0.22 | 0 | 0 | 0.127431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.06 | 0.04 | 0.36 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f8ab1e5dcd509c7bb1c75102e032a178319bb7 | 1,020 | py | Python | src/genemap/main/map_ids.py | jrderuiter/genemap | 0413474294cae9e17252d88c8b9ff1382e4a2f0f | [
"MIT"
] | null | null | null | src/genemap/main/map_ids.py | jrderuiter/genemap | 0413474294cae9e17252d88c8b9ff1382e4a2f0f | [
"MIT"
] | 2 | 2018-05-25T17:28:21.000Z | 2019-01-07T19:14:01.000Z | src/genemap/main/map_ids.py | jrderuiter/genemap | 0413474294cae9e17252d88c8b9ff1382e4a2f0f | [
"MIT"
] | 3 | 2018-05-25T16:49:13.000Z | 2018-05-25T16:51:45.000Z | # -*- coding: utf-8 -*-
# pylint: disable=wildcard-import,redefined-builtin,unused-wildcard-import
from __future__ import absolute_import, division, print_function
from builtins import *
# pylint: enable=wildcard-import,redefined-builtin,unused-wildcard-import
from genemap.mappers import get_mappers
def main(args):... | 28.333333 | 74 | 0.732353 | 125 | 1,020 | 5.728 | 0.408 | 0.078212 | 0.064246 | 0.083799 | 0.150838 | 0.150838 | 0.150838 | 0.150838 | 0 | 0 | 0 | 0.001157 | 0.152941 | 1,020 | 35 | 75 | 29.142857 | 0.827546 | 0.214706 | 0 | 0 | 0 | 0 | 0.022843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.277778 | 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 |
d1f8f6e84f58dfa799a34b9718329b0459fc7d49 | 3,463 | py | Python | project_gendl/splice42.py | KorfLab/datacore | f6eb04650d8257a8e2eecd44928a60368d374d38 | [
"MIT"
] | null | null | null | project_gendl/splice42.py | KorfLab/datacore | f6eb04650d8257a8e2eecd44928a60368d374d38 | [
"MIT"
] | null | null | null | project_gendl/splice42.py | KorfLab/datacore | f6eb04650d8257a8e2eecd44928a60368d374d38 | [
"MIT"
] | null | null | null | import gzip
import random
import subprocess
import sys
def get_acceptors(filename):
accs = []
with gzip.open(filename, 'rt') as fp:
for line in fp.readlines():
(exon1, intron, exon2, expression, gene) = line.split()
s1 = intron[-22:-2]
s2 = intron[-2:]
s3 = exon2[0:20]
accs.append((s1, s2, s3, expre... | 24.913669 | 70 | 0.634421 | 562 | 3,463 | 3.862989 | 0.231317 | 0.050668 | 0.050668 | 0.040534 | 0.446799 | 0.357439 | 0.295716 | 0.273607 | 0.228006 | 0.228006 | 0 | 0.061922 | 0.188565 | 3,463 | 138 | 71 | 25.094203 | 0.710676 | 0.110598 | 0 | 0.279279 | 0 | 0 | 0.119079 | 0.073026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072072 | false | 0.009009 | 0.036036 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1f924e262151141ecf3892ae5654b295df1f760 | 1,300 | py | Python | old-stuff/crimes/atividade.py | paulopieczarka/DataScience-Uni | 4013fe97f2a40da8923f11a8ce5907423ed8addd | [
"MIT"
] | null | null | null | old-stuff/crimes/atividade.py | paulopieczarka/DataScience-Uni | 4013fe97f2a40da8923f11a8ce5907423ed8addd | [
"MIT"
] | null | null | null | old-stuff/crimes/atividade.py | paulopieczarka/DataScience-Uni | 4013fe97f2a40da8923f11a8ce5907423ed8addd | [
"MIT"
] | null | null | null | from sklearn.cluster import KMeans
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
def get_columns(db, col1, col2):
inputs = db[[col1, col2]]
coords = inputs.as_matrix(columns=None)
return np.array(coords)
def plot_colored_graph(inputs, kmeans_result):
x = inputs.t... | 23.636364 | 81 | 0.707692 | 198 | 1,300 | 4.479798 | 0.464646 | 0.040586 | 0.022548 | 0.049605 | 0.10823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012927 | 0.166923 | 1,300 | 54 | 82 | 24.074074 | 0.806094 | 0.027692 | 0 | 0 | 0 | 0 | 0.09127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.131579 | 0 | 0.263158 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1fb7ac3548bddd8881f407edfa6134b66678d18 | 19,216 | py | Python | search_sampler/__init__.py | gserapio/search_sampler | 38c8a5c7414edb21126e767ea70e7cd355223f2a | [
"MIT"
] | 1 | 2021-02-09T19:50:17.000Z | 2021-02-09T19:50:17.000Z | search_sampler/__init__.py | gserapio/search_sampler | 38c8a5c7414edb21126e767ea70e7cd355223f2a | [
"MIT"
] | null | null | null | search_sampler/__init__.py | gserapio/search_sampler | 38c8a5c7414edb21126e767ea70e7cd355223f2a | [
"MIT"
] | null | null | null | import os
import pandas
import time
from datetime import datetime, timedelta
from collections import defaultdict
from copy import deepcopy
from googleapiclient.discovery import build
"""
All functions that are used for querying, processing, and saving
the data are located here.
"""
VALID_PERIOD_LENGTHS = ["day", "w... | 40.454737 | 119 | 0.585762 | 2,308 | 19,216 | 4.728336 | 0.214905 | 0.020893 | 0.014661 | 0.005498 | 0.170805 | 0.141299 | 0.124072 | 0.10263 | 0.090351 | 0.076239 | 0 | 0.007116 | 0.327175 | 19,216 | 474 | 120 | 40.540084 | 0.836956 | 0.344921 | 0 | 0.177686 | 0 | 0 | 0.116843 | 0.00411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03719 | false | 0 | 0.028926 | 0 | 0.107438 | 0.033058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1fdd3005698252bde84e97c3ad5be6bf947e18b | 3,620 | py | Python | google-cloud-sdk/lib/surface/compute/users/delete.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/compute/users/delete.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/compute/users/delete.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | # Copyright 2015 Google 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 required by applicable law or ag... | 33.518519 | 80 | 0.690331 | 448 | 3,620 | 5.520089 | 0.386161 | 0.05095 | 0.042459 | 0.048524 | 0.193692 | 0.152042 | 0.092196 | 0.092196 | 0.092196 | 0.092196 | 0 | 0.004231 | 0.216575 | 3,620 | 107 | 81 | 33.831776 | 0.867772 | 0.286464 | 0 | 0.212121 | 0 | 0 | 0.130966 | 0.009073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.106061 | 0 | 0.19697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d1fff7908412416073cac969804d096355f1b2f7 | 3,195 | py | Python | hexomino-core/gen_hexos/gen.py | chmnchiang/hexomino | 483a86c11bc0ccf9cdaae4ad6e102168be3cf320 | [
"Apache-2.0",
"MIT"
] | null | null | null | hexomino-core/gen_hexos/gen.py | chmnchiang/hexomino | 483a86c11bc0ccf9cdaae4ad6e102168be3cf320 | [
"Apache-2.0",
"MIT"
] | null | null | null | hexomino-core/gen_hexos/gen.py | chmnchiang/hexomino | 483a86c11bc0ccf9cdaae4ad6e102168be3cf320 | [
"Apache-2.0",
"MIT"
] | null | null | null | from dataclasses import dataclass
from functools import total_ordering
from collections import Counter
import typing
import textwrap
@dataclass(frozen=True)
@total_ordering
class Point:
x: int
y: int
def __add__(self, they):
return Point(self.x + they.x, self.y + they.y)
def __sub__(self, the... | 27.782609 | 75 | 0.553678 | 466 | 3,195 | 3.66309 | 0.203863 | 0.056239 | 0.017575 | 0.023433 | 0.146456 | 0.096075 | 0.049209 | 0.049209 | 0.049209 | 0.049209 | 0 | 0.021768 | 0.295462 | 3,195 | 114 | 76 | 28.026316 | 0.736562 | 0 | 0 | 0.023529 | 0 | 0.011765 | 0.068 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.164706 | false | 0 | 0.058824 | 0.082353 | 0.411765 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0603e6bbd9ecddad191163178ca4161b1b3decfd | 1,064 | py | Python | digsby/src/oscar/snac/family_x0a.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/oscar/snac/family_x0a.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/oscar/snac/family_x0a.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | import logging
import oscar
x0a_name="User lookup"
log = logging.getLogger('oscar.snac.x0a')
subcodes = {}
def x0a_init(o, sock, cb):
log.info('initializing')
cb()
log.info('finished initializing')
def x0a_x01(o, sock, data):
'''
SNAC (xa, x1): User lookup Family Error
refere... | 25.95122 | 75 | 0.62594 | 147 | 1,064 | 4.435374 | 0.469388 | 0.082822 | 0.064417 | 0.101227 | 0.230061 | 0.184049 | 0.184049 | 0.184049 | 0.184049 | 0 | 0 | 0.037713 | 0.227444 | 1,064 | 40 | 76 | 26.6 | 0.755474 | 0.269737 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0.017673 | 0 | 0.05 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
060485709baa0b9492d85e40f90068c48154acf0 | 2,928 | py | Python | setup.py | rochacon/punch | 7f6fb81221049ab74ef561fb40a4174bdb3e77ef | [
"MIT"
] | null | null | null | setup.py | rochacon/punch | 7f6fb81221049ab74ef561fb40a4174bdb3e77ef | [
"MIT"
] | null | null | null | setup.py | rochacon/punch | 7f6fb81221049ab74ef561fb40a4174bdb3e77ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""setup.py
Defines the setup instructions for the punch framework
Copyright (C) 2016 Rodrigo Chacon
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, in... | 39.04 | 112 | 0.663934 | 353 | 2,928 | 5.475921 | 0.541076 | 0.045525 | 0.0776 | 0.067253 | 0.027936 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008119 | 0.242828 | 2,928 | 74 | 113 | 39.567568 | 0.86378 | 0.39071 | 0 | 0 | 0 | 0 | 0.373874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0607341543b37f814977e95ae2726476134dd618 | 2,745 | py | Python | manage.py | Zauberer2/touchresume | c558f6383722f289cf8087a15f6e049b4213c010 | [
"MIT"
] | 3 | 2020-02-25T04:18:22.000Z | 2021-12-25T17:03:50.000Z | manage.py | Zauberer2/touchresume | c558f6383722f289cf8087a15f6e049b4213c010 | [
"MIT"
] | 3 | 2019-09-02T07:49:35.000Z | 2021-12-19T17:46:31.000Z | manage.py | Zauberer2/touchresume | c558f6383722f289cf8087a15f6e049b4213c010 | [
"MIT"
] | 1 | 2021-12-23T18:11:07.000Z | 2021-12-23T18:11:07.000Z | #!/usr/bin/env python
import os
import re
import unittest
from git import Repo
from semver import match
from click import option, argument, echo, ClickException
from touchresume.cli import cli
from touchresume import __version__
@cli.command(with_appcontext=False)
@option('-d', '--dir', default='tests', help='Dire... | 32.294118 | 78 | 0.668488 | 378 | 2,745 | 4.690476 | 0.298942 | 0.022561 | 0.042301 | 0.045121 | 0.283136 | 0.239143 | 0.15454 | 0.025945 | 0.025945 | 0 | 0 | 0.000882 | 0.17377 | 2,745 | 84 | 79 | 32.678571 | 0.780864 | 0.024408 | 0 | 0.064516 | 0 | 0 | 0.236595 | 0.016873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06076fc2131eb37f5f2f55c95d8358153da24655 | 485 | py | Python | reb/scrape.py | vibya/Economic-Downturn | 03df854f4c314d5a944cd99474b980a95f088f39 | [
"MIT"
] | 1 | 2018-09-18T01:07:53.000Z | 2018-09-18T01:07:53.000Z | reb/scrape.py | aidinhass/reb | 33fc9d9781e2c0fce8faa6240ec2d56899ee2c07 | [
"MIT"
] | null | null | null | reb/scrape.py | aidinhass/reb | 33fc9d9781e2c0fce8faa6240ec2d56899ee2c07 | [
"MIT"
] | 3 | 2018-09-18T01:08:01.000Z | 2019-03-10T10:06:41.000Z |
from reb.src import pynyt
from reb.conf import APIKEY_NYT_ARTICLE
nyt = pynyt.ArticleSearch(APIKEY_NYT_ARTICLE)
nytArchive = pynyt.ArchiveApi(APIKEY_NYT_ARTICLE)
# # get 1000 news articles from the Foreign newsdesk from 1987
# results_obama = nyt.query(
# q='obama',
# begin_date="20170101",
# end_date="... | 23.095238 | 62 | 0.692784 | 64 | 485 | 5.046875 | 0.671875 | 0.083591 | 0.148607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073232 | 0.183505 | 485 | 21 | 63 | 23.095238 | 0.742424 | 0.494845 | 0 | 0 | 0 | 0 | 0.021645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
060a86f44e032bdb0deaf25d27674c930c7491c8 | 3,385 | py | Python | hooks/relations.py | projectcalico/charm-bird | 3224e887329c527f6bed2520346e66fb4e795fe8 | [
"Apache-2.0"
] | null | null | null | hooks/relations.py | projectcalico/charm-bird | 3224e887329c527f6bed2520346e66fb4e795fe8 | [
"Apache-2.0"
] | null | null | null | hooks/relations.py | projectcalico/charm-bird | 3224e887329c527f6bed2520346e66fb4e795fe8 | [
"Apache-2.0"
] | 1 | 2022-03-16T16:12:32.000Z | 2022-03-16T16:12:32.000Z | # -*- coding: utf-8 -*-
'''
Relations for BIRD.
'''
import socket
import netaddr
import netifaces
from charmhelpers.core import hookenv
from charmhelpers.core.services.helpers import RelationContext
def router_id():
'''
Determine the router ID that should be used.
This function uses the common logic of... | 27.298387 | 74 | 0.578139 | 399 | 3,385 | 4.802005 | 0.370927 | 0.016701 | 0.020355 | 0.006263 | 0.024008 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017113 | 0.326736 | 3,385 | 123 | 75 | 27.520325 | 0.823607 | 0.191137 | 0 | 0.104478 | 0 | 0 | 0.048466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119403 | false | 0 | 0.074627 | 0.044776 | 0.358209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
060b2a571442e70a179db487667f330e3647e19a | 1,136 | py | Python | common/cache.py | govtrack/django-lorien-common | 27241ff72536b442dfd64fad8589398b8a6e9f4d | [
"BSD-3-Clause"
] | 1 | 2020-08-17T06:24:56.000Z | 2020-08-17T06:24:56.000Z | common/cache.py | govtrack/django-lorien-common | 27241ff72536b442dfd64fad8589398b8a6e9f4d | [
"BSD-3-Clause"
] | null | null | null | common/cache.py | govtrack/django-lorien-common | 27241ff72536b442dfd64fad8589398b8a6e9f4d | [
"BSD-3-Clause"
] | null | null | null | from hashlib import sha1
from django.core.cache import cache
from django.utils.encoding import smart_str
def cached(key=None, timeout=300):
"""
Cache the result of function call.
Args:
key: the key with which value will be saved. If key is None
then it is calculated automatically
... | 32.457143 | 80 | 0.564261 | 136 | 1,136 | 4.588235 | 0.477941 | 0.038462 | 0.022436 | 0.035256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006935 | 0.365317 | 1,136 | 34 | 81 | 33.411765 | 0.85853 | 0.285211 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
060d03c63bb8152f4e45ecb98502c75a5900990a | 1,417 | py | Python | dtecsv.py | varnav/dte-usage-plotter | cfeca2db8ccb4c4f0564d9f0b493edd26f68e1ca | [
"MIT"
] | null | null | null | dtecsv.py | varnav/dte-usage-plotter | cfeca2db8ccb4c4f0564d9f0b493edd26f68e1ca | [
"MIT"
] | null | null | null | dtecsv.py | varnav/dte-usage-plotter | cfeca2db8ccb4c4f0564d9f0b493edd26f68e1ca | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
1. Go to:
https://usage.dteenergy.com/?interval=hour
2. Download CSV
3. Run:
python dtecsv.py .\electric_usage_report_05-31-2021_to_06-05-2021.csv
"""
import csv
import datetime
import click
import matplotlib.pyplot as plt
x = []
y = []
@click.command()
@click.argument('file', type=c... | 23.616667 | 104 | 0.614679 | 221 | 1,417 | 3.882353 | 0.565611 | 0.006993 | 0.04662 | 0.065268 | 0.11655 | 0.11655 | 0.11655 | 0.11655 | 0.11655 | 0.11655 | 0 | 0.045539 | 0.240649 | 1,417 | 59 | 105 | 24.016949 | 0.751859 | 0.460127 | 0 | 0 | 0 | 0 | 0.068587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
060ddb65bbe8989145f472ee9db47a8d7aff5843 | 12,598 | py | Python | model_navigator/model_analyzer/profiler.py | triton-inference-server/model_navigator | ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7 | [
"ECL-2.0",
"Apache-2.0"
] | 49 | 2021-04-09T18:32:07.000Z | 2022-03-29T07:32:24.000Z | model_navigator/model_analyzer/profiler.py | triton-inference-server/model_navigator | ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2021-07-13T09:00:12.000Z | 2021-11-15T17:16:35.000Z | model_navigator/model_analyzer/profiler.py | triton-inference-server/model_navigator | ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2021-04-09T18:31:56.000Z | 2022-03-01T08:08:04.000Z | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 44.992857 | 115 | 0.710192 | 1,420 | 12,598 | 5.88169 | 0.183803 | 0.0716 | 0.04478 | 0.041307 | 0.380747 | 0.288673 | 0.230723 | 0.204382 | 0.139488 | 0.117098 | 0 | 0.002736 | 0.216542 | 12,598 | 279 | 116 | 45.154122 | 0.843465 | 0.052945 | 0 | 0.218182 | 0 | 0 | 0.101544 | 0.029708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.095455 | 0.004545 | 0.177273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
061117f2066d00451f5045f7338796a6dddd1a21 | 906 | py | Python | IOPool/Input/test/PrePool2FileInputTest_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | IOPool/Input/test/PrePool2FileInputTest_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | IOPool/Input/test/PrePool2FileInputTest_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # The following comments couldn't be translated into the new config version:
# Test storing OtherThing as well
# Configuration file for PrePoolInputTest
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST2ND")
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
#process.maxEvents = cms.un... | 28.3125 | 91 | 0.733996 | 100 | 906 | 6.61 | 0.59 | 0.090772 | 0.057489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007742 | 0.144592 | 906 | 31 | 92 | 29.225806 | 0.845161 | 0.296909 | 0 | 0 | 0 | 0 | 0.261563 | 0.145136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0611b8f8b1f08d15f75771f8b58463a12ef35fc0 | 24,165 | py | Python | scripts/old_scripts/compare_svo_multiple.py | noambuckman/mpc-multiple-vehicles | a20949c335f1af97962569eed112e6cef46174d9 | [
"MIT"
] | 1 | 2021-11-02T15:16:17.000Z | 2021-11-02T15:16:17.000Z | scripts/old_scripts/compare_svo_multiple.py | noambuckman/mpc-multiple-vehicles | a20949c335f1af97962569eed112e6cef46174d9 | [
"MIT"
] | 5 | 2021-04-14T17:08:59.000Z | 2021-05-27T21:41:02.000Z | scripts/old_scripts/compare_svo_multiple.py | noambuckman/mpc-multiple-vehicles | a20949c335f1af97962569eed112e6cef46174d9 | [
"MIT"
] | 2 | 2022-02-07T08:16:05.000Z | 2022-03-09T23:30:17.000Z | import datetime
import os, sys
import numpy as np
import matplotlib.pyplot as plt
import casadi as cas
##### For viewing the videos in Jupyter Notebook
import io
import base64
from IPython.display import HTML
# from ..</src> import car_plotting
# from .import src.car_plotting
PROJECT_PATH = '/home/nbuckman/Dropbox (... | 39.679803 | 192 | 0.665798 | 3,690 | 24,165 | 3.989431 | 0.11084 | 0.009374 | 0.025678 | 0.012227 | 0.595408 | 0.515114 | 0.458529 | 0.433734 | 0.416752 | 0.38727 | 0 | 0.109347 | 0.165901 | 24,165 | 608 | 193 | 39.745066 | 0.621006 | 0.228595 | 0 | 0.210526 | 0 | 0.002392 | 0.197289 | 0.12214 | 0.002392 | 0 | 0 | 0 | 0 | 1 | 0.002392 | false | 0.002392 | 0.0311 | 0 | 0.035885 | 0.088517 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0613ddb7599b3120261ade10d3011d5c27649921 | 2,082 | py | Python | AI_maker/celule_leucemie.py | pamintandrei/Tiroidaptinfoed | 2671f219de2ef8ecf68ae7a932ed82462365d889 | [
"MIT"
] | 5 | 2019-06-10T10:42:22.000Z | 2019-07-10T14:05:13.000Z | AI_maker/celule_leucemie.py | pamintandrei/Tiroidaptinfoed | 2671f219de2ef8ecf68ae7a932ed82462365d889 | [
"MIT"
] | null | null | null | AI_maker/celule_leucemie.py | pamintandrei/Tiroidaptinfoed | 2671f219de2ef8ecf68ae7a932ed82462365d889 | [
"MIT"
] | 2 | 2018-08-30T14:36:20.000Z | 2019-06-17T13:07:18.000Z | import numpy as np
from tensorflow.keras.callbacks import TensorBoard
import cv2
import sys
import threading
import keras
from keras.layers import Conv2D,Dense,MaxPooling2D,Flatten,BatchNormalization,Dropout
from IPython.display import display
from PIL import Image
import tensorflow as tf
np.random.seed(1)
with tf.dev... | 50.780488 | 146 | 0.739193 | 280 | 2,082 | 5.371429 | 0.378571 | 0.086436 | 0.053191 | 0.076463 | 0.384973 | 0.350399 | 0.269282 | 0.269282 | 0.269282 | 0.269282 | 0 | 0.042941 | 0.105187 | 2,082 | 41 | 147 | 50.780488 | 0.764359 | 0 | 0 | 0.216216 | 0 | 0 | 0.108497 | 0.033125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.27027 | 0 | 0.27027 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
06155bb97d79c4a708e108ac4d37d0955dc2bd9c | 3,002 | py | Python | test.py | mricaldone/Gramatica | a7e2ff933fe875f5b8a95338c2c312f403ba5679 | [
"MIT"
] | null | null | null | test.py | mricaldone/Gramatica | a7e2ff933fe875f5b8a95338c2c312f403ba5679 | [
"MIT"
] | null | null | null | test.py | mricaldone/Gramatica | a7e2ff933fe875f5b8a95338c2c312f403ba5679 | [
"MIT"
] | null | null | null | import Gramatica
def testSeparadorDeSilabas(entrada, esperado):
try:
salida = Gramatica.separarEnSilabas(entrada)
except Gramatica.NoHayVocal:
print("[ERROR]","Salida esperada:", "\"" + esperado + "\"", "|", "Salida obtenida:", "Excepcion: No hay vocal")
return
if esperado != salid... | 50.033333 | 134 | 0.72052 | 320 | 3,002 | 6.759375 | 0.54375 | 0.005548 | 0.012483 | 0.022191 | 0.264448 | 0.17938 | 0.084142 | 0.041609 | 0.041609 | 0 | 0 | 0.002956 | 0.098601 | 3,002 | 60 | 135 | 50.033333 | 0.796378 | 0.118255 | 0 | 0.087719 | 0 | 0 | 0.324621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.017544 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
061561270f389e6138b7861cea448dfbc7f9b7ae | 1,201 | py | Python | web/scripts/minify_json.py | albertomh/SqueezeCompass | 30365fd6f1bf8ceca2c2fa7e4c8e15d4d9a85f1f | [
"MIT"
] | null | null | null | web/scripts/minify_json.py | albertomh/SqueezeCompass | 30365fd6f1bf8ceca2c2fa7e4c8e15d4d9a85f1f | [
"MIT"
] | null | null | null | web/scripts/minify_json.py | albertomh/SqueezeCompass | 30365fd6f1bf8ceca2c2fa7e4c8e15d4d9a85f1f | [
"MIT"
] | null | null | null | #
# Minify JSON data files in the `/dist` directory.
# Script invoked by the npm postbuild script after building the project with `npm run build`.
#
from os import (
path,
listdir,
fsdecode
)
import json
from datetime import datetime
class JSONMinifier:
DIST_CONSTITUENT_DATA_DIRECTORY = path.abspath(... | 34.314286 | 117 | 0.623647 | 141 | 1,201 | 5.092199 | 0.460993 | 0.05571 | 0.052925 | 0.077994 | 0.253482 | 0.169916 | 0.169916 | 0.169916 | 0.169916 | 0.169916 | 0 | 0.001094 | 0.238968 | 1,201 | 34 | 118 | 35.323529 | 0.784464 | 0.11657 | 0 | 0 | 0 | 0.041667 | 0.110795 | 0.032197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.291667 | 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 |
ae044bb52fdc9d56a4ae83f40e90c43b75adb5a4 | 13,751 | py | Python | CPU-Name.py | acidburn0zzz/CPU-Name | 2322da712a9ac47f38f22a43bf9bcbc0240e062b | [
"MIT"
] | 1 | 2021-11-30T18:35:46.000Z | 2021-11-30T18:35:46.000Z | CPU-Name.py | acidburn0zzz/CPU-Name | 2322da712a9ac47f38f22a43bf9bcbc0240e062b | [
"MIT"
] | null | null | null | CPU-Name.py | acidburn0zzz/CPU-Name | 2322da712a9ac47f38f22a43bf9bcbc0240e062b | [
"MIT"
] | null | null | null | import subprocess
import platform
from Scripts import plist, utils
class CPUName:
def __init__(self, **kwargs):
self.u = utils.Utils("CPU-Name")
self.plist_path = None
self.plist_data = {}
self.clear_empty = True
self.detected = self.detect_cores()
self.cpu_model = s... | 49.464029 | 172 | 0.563304 | 1,784 | 13,751 | 4.190022 | 0.142377 | 0.084281 | 0.046957 | 0.026756 | 0.504883 | 0.405485 | 0.342074 | 0.296187 | 0.265953 | 0.125753 | 0 | 0.046117 | 0.296706 | 13,751 | 277 | 173 | 49.642599 | 0.726812 | 0.042251 | 0 | 0.270161 | 0 | 0 | 0.201125 | 0.049483 | 0 | 0 | 0.003953 | 0 | 0 | 1 | 0.068548 | false | 0.008065 | 0.012097 | 0.012097 | 0.169355 | 0.165323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae046c38a2e79a1620b18d8e95f3afd8af8e8031 | 3,853 | py | Python | solvcon/parcel/gasplus/probe.py | j8xixo12/solvcon | a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a | [
"BSD-3-Clause"
] | 16 | 2015-12-09T02:54:42.000Z | 2021-04-20T11:26:39.000Z | solvcon/parcel/gasplus/probe.py | j8xixo12/solvcon | a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a | [
"BSD-3-Clause"
] | 95 | 2015-12-09T00:49:40.000Z | 2022-02-14T13:34:55.000Z | solvcon/parcel/gasplus/probe.py | j8xixo12/solvcon | a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a | [
"BSD-3-Clause"
] | 13 | 2015-05-08T04:16:42.000Z | 2021-01-15T09:28:06.000Z | # -*- coding: UTF-8 -*-
#
# Copyright (c) 2016, Yung-Yu Chen <yyc@solvcon.net>
# BSD 3-Clause License, see COPYING
import os
import numpy as np
import solvcon as sc
class Probe(object):
"""
Represent a point in the mesh.
"""
def __init__(self, *args, **kw):
self.speclst = kw.pop('speclst'... | 30.101563 | 79 | 0.534908 | 497 | 3,853 | 4.062374 | 0.336016 | 0.031204 | 0.019812 | 0.027737 | 0.10847 | 0.070827 | 0.05894 | 0.042595 | 0.042595 | 0.042595 | 0 | 0.01165 | 0.33169 | 3,853 | 127 | 80 | 30.338583 | 0.772427 | 0.066701 | 0 | 0.022222 | 0 | 0 | 0.033004 | 0 | 0 | 0 | 0 | 0.007874 | 0 | 1 | 0.133333 | false | 0 | 0.033333 | 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 |
ae059eac36d79675fbab914a2bbf4174d3306bb6 | 8,600 | py | Python | data/dataset.py | 1chimaruGin/EfficientDet | 8adf636db1f7c5c64b65c1e897a0d18f682e6251 | [
"Apache-2.0"
] | 9 | 2020-09-02T09:53:04.000Z | 2022-01-16T11:16:57.000Z | data/dataset.py | 1chimaruGin/EfficientDet | 8adf636db1f7c5c64b65c1e897a0d18f682e6251 | [
"Apache-2.0"
] | null | null | null | data/dataset.py | 1chimaruGin/EfficientDet | 8adf636db1f7c5c64b65c1e897a0d18f682e6251 | [
"Apache-2.0"
] | 1 | 2021-06-15T15:55:46.000Z | 2021-06-15T15:55:46.000Z | """ COCO dataset (quick and dirty)
Hacked together by Ross Wightman
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch.utils.data as data
import os
import cv2
import random
import torch
import numpy as np
from PIL import Image
from pycocotool... | 37.391304 | 136 | 0.546395 | 1,136 | 8,600 | 3.964789 | 0.206866 | 0.036634 | 0.013321 | 0.020426 | 0.160524 | 0.108348 | 0.062167 | 0.031528 | 0.008881 | 0 | 0 | 0.034287 | 0.325116 | 8,600 | 230 | 137 | 37.391304 | 0.74173 | 0.087209 | 0 | 0.132184 | 0 | 0 | 0.029385 | 0.003351 | 0 | 0 | 0 | 0 | 0.005747 | 1 | 0.057471 | false | 0 | 0.063218 | 0.011494 | 0.172414 | 0.005747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae0b04625ca9a862eb715fd13d3b553a6fb19211 | 12,715 | py | Python | test/abstract_lut_test.py | sgtm/ColorPipe-tools | 971b546f77b0d1a6e5ee3aa7e4077a9d41c6e59b | [
"BSD-3-Clause"
] | 1 | 2021-06-21T13:35:20.000Z | 2021-06-21T13:35:20.000Z | test/abstract_lut_test.py | sgtm/ColorPipe-tools | 971b546f77b0d1a6e5ee3aa7e4077a9d41c6e59b | [
"BSD-3-Clause"
] | null | null | null | test/abstract_lut_test.py | sgtm/ColorPipe-tools | 971b546f77b0d1a6e5ee3aa7e4077a9d41c6e59b | [
"BSD-3-Clause"
] | null | null | null | """ Testing Abstract LUT model
"""
import unittest
import os
import shutil
import tempfile
from PyOpenColorIO.Constants import INTERP_LINEAR, INTERP_TETRAHEDRAL
from utils import lut_presets as presets
from utils.lut_presets import PresetException, OUT_BITDEPTH
import utils.abstract_lut_helper as alh
from utils.colors... | 42.811448 | 83 | 0.533464 | 1,273 | 12,715 | 5.05813 | 0.146897 | 0.05125 | 0.047212 | 0.035875 | 0.462649 | 0.397733 | 0.382979 | 0.342289 | 0.307346 | 0.259823 | 0 | 0.020316 | 0.392214 | 12,715 | 296 | 84 | 42.956081 | 0.812888 | 0.073614 | 0 | 0.320175 | 0 | 0 | 0.034209 | 0.001796 | 0 | 0 | 0 | 0 | 0.070175 | 1 | 0.039474 | false | 0 | 0.087719 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |