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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a909774bf8b8ead0a6b26b707982f6f0737bb165 | 1,479 | py | Python | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | 21 | 2015-05-30T16:17:02.000Z | 2015-07-29T17:30:12.000Z | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
import time
from animations.abstractanimation import AbstractAnimation
from animations.noanimation.noanimation import MultiLineNoAnimation
class VerticalAnimation(AbstractAnimation):
def __init__(self, driver):
# Call super class constructor.
super().__init__(driver)
... | 36.073171 | 70 | 0.676133 | 166 | 1,479 | 5.831325 | 0.343373 | 0.072314 | 0.049587 | 0.041322 | 0.454545 | 0.36157 | 0.36157 | 0.36157 | 0.36157 | 0.36157 | 0 | 0.0035 | 0.227181 | 1,479 | 40 | 71 | 36.975 | 0.843395 | 0.0595 | 0 | 0.322581 | 0 | 0 | 0.001441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.096774 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a90997632623c70526b57f88d63354bc898f0759 | 5,056 | py | Python | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | 1 | 2020-10-05T21:44:18.000Z | 2020-10-05T21:44:18.000Z | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | null | null | null | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | null | null | null | """Viewsets for the 'healthchecks' app"""
# Built-in
import logging
from enum import Enum
from functools import wraps
from secrets import token_urlsafe
# Django
from django.core.cache import cache
from django.core.exceptions import FieldError, ImproperlyConfigured, ObjectDoesNotExist
from django.db import connection
... | 36.114286 | 87 | 0.625791 | 546 | 5,056 | 5.679487 | 0.302198 | 0.035472 | 0.014511 | 0.038697 | 0.208965 | 0.158659 | 0.158659 | 0.148017 | 0.133183 | 0.103515 | 0 | 0.008779 | 0.233979 | 5,056 | 139 | 88 | 36.374101 | 0.791893 | 0.187896 | 0 | 0.088889 | 0 | 0 | 0.134161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.155556 | 0 | 0.411111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a90a3b893c4a5282243641ddfdb4b678a42dfab0 | 595 | py | Python | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | def send_message_to_slack(text):
from urllib import request, parse
import json
post = {"text": "{0}".format(text)}
try:
json_data = json.dumps(post)
req = request.Request("https://hooks.slack.com/services/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",
... | 31.315789 | 114 | 0.608403 | 65 | 595 | 5.446154 | 0.676923 | 0.062147 | 0.073446 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025114 | 0.263866 | 595 | 18 | 115 | 33.055556 | 0.783105 | 0 | 0 | 0 | 0 | 0 | 0.278992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9110b5c0117f2af8467c6b63060a19e830d3f66 | 3,381 | py | Python | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | """A modified image folder class
We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py)
so that this class can load images from both current directory and its subdirectories.
"""
import torch.utils.data as data
from PIL import Image
import nibabel a... | 31.305556 | 122 | 0.631174 | 463 | 3,381 | 4.393089 | 0.332613 | 0.043265 | 0.017699 | 0.023599 | 0.108161 | 0.092429 | 0.048181 | 0.048181 | 0.048181 | 0.048181 | 0 | 0.014182 | 0.228335 | 3,381 | 107 | 123 | 31.598131 | 0.765427 | 0.070985 | 0 | 0 | 0 | 0 | 0.062221 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.116883 | false | 0 | 0.090909 | 0.038961 | 0.311688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a91339cbacf313c26ddda2e22c112331ab363a81 | 448 | py | Python | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | 1 | 2021-01-03T01:54:23.000Z | 2021-01-03T01:54:23.000Z | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | null | null | null | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from powrap import powrap
FIXTURE_DIR = Path(__file__).resolve().parent
@pytest.mark.parametrize("po_file", (FIXTURE_DIR / "bad").glob("*.po"))
def test_fail_on_bad_wrapping(po_file):
assert powrap.check_style([po_file]) == [po_file]
@pytest.mark.parametrize("po_file", ... | 24.888889 | 72 | 0.734375 | 66 | 448 | 4.621212 | 0.393939 | 0.137705 | 0.137705 | 0.15082 | 0.518033 | 0.518033 | 0.518033 | 0.27541 | 0.27541 | 0 | 0 | 0 | 0.107143 | 448 | 17 | 73 | 26.352941 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.064732 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | 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 |
a91c4d71080e49a5432f9894381a21354fd82539 | 6,450 | py | Python | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | import json
import faiss
import pickle
import os
import tqdm
import numpy as np
import argparse
import time
from functools import wraps
parser = argparse.ArgumentParser()
parser.add_argument('--d', type=int, default=768, help='dimension size')
parser.add_argument('--buffer_size', type=int, default=50000)
parser.add_ar... | 36.647727 | 106 | 0.666667 | 912 | 6,450 | 4.52193 | 0.218202 | 0.050921 | 0.025218 | 0.038797 | 0.394762 | 0.365179 | 0.343113 | 0.294374 | 0.275461 | 0.189622 | 0 | 0.009256 | 0.179225 | 6,450 | 175 | 107 | 36.857143 | 0.769739 | 0.052713 | 0 | 0.243056 | 0 | 0 | 0.118381 | 0.027487 | 0 | 0 | 0 | 0 | 0.034722 | 1 | 0.069444 | false | 0 | 0.0625 | 0 | 0.201389 | 0.048611 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9243210b5050d1609507b8edecbe58a2ea18c39 | 2,243 | py | Python | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 126 | 2015-03-24T17:37:33.000Z | 2022-03-29T18:37:39.000Z | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 1,815 | 2015-03-16T21:01:30.000Z | 2019-09-09T18:47:29.000Z | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 69 | 2015-03-27T23:44:26.000Z | 2021-02-14T09:45:28.000Z | import djclick as click
from django.contrib.auth.models import User, Group
from django.db import transaction
from django.core.management.base import CommandError
class DryRunFinished(Exception):
pass
def get_or_create_users(email_addresses):
users = []
for email in email_addresses:
if not email... | 31.591549 | 78 | 0.623718 | 276 | 2,243 | 4.98913 | 0.398551 | 0.050835 | 0.026144 | 0.023239 | 0.079884 | 0.079884 | 0 | 0 | 0 | 0 | 0 | 0.000616 | 0.27597 | 2,243 | 70 | 79 | 32.042857 | 0.847291 | 0.11547 | 0 | 0.096154 | 0 | 0 | 0.153374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.019231 | 0.076923 | 0 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a92832dc73ab475a159970bd2c9e45e28feec5c7 | 544 | py | Python | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | import configargparse
def parse(commands = None):
p = configargparse.ArgParser()
p.add('-c', '--config', is_config_file = True)
p.add('--mode', default='test', type=str)
p.add('--num_cosines', type = int)
p.add('--dim_subspace', type = int)
p.add('--dim_diffspace', type = int)
p.add('--meth... | 27.2 | 50 | 0.582721 | 76 | 544 | 4.078947 | 0.460526 | 0.116129 | 0.077419 | 0.106452 | 0.090323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220588 | 544 | 20 | 51 | 27.2 | 0.731132 | 0 | 0 | 0 | 0 | 0 | 0.172477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 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 |
a92ab375e3c0927ad6ddd2ae99cba78e73a59cc7 | 3,767 | py | Python | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 472 | 2021-12-03T03:12:55.000Z | 2022-03-31T01:33:13.000Z | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 127 | 2021-12-03T05:00:14.000Z | 2022-03-31T13:47:33.000Z | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 37 | 2021-12-03T03:23:22.000Z | 2022-03-31T08:41:58.000Z | from typing import List
import numpy as np
from mmhuman3d.utils.path_utils import (
Existence,
check_path_existence,
check_path_suffix,
)
from .human_data import HumanData
class HumanDataCacheReader():
def __init__(self, npz_path: str):
self.npz_path = npz_path
npz_file = np.load(np... | 35.205607 | 78 | 0.609238 | 482 | 3,767 | 4.423237 | 0.20332 | 0.075985 | 0.085366 | 0.055816 | 0.116792 | 0.090994 | 0.036585 | 0.036585 | 0.036585 | 0.036585 | 0 | 0.000383 | 0.307406 | 3,767 | 106 | 79 | 35.537736 | 0.816788 | 0.114415 | 0 | 0.052632 | 0 | 0 | 0.044245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.052632 | 0 | 0.197368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a92aefa88c9e1677341b516fd325e4f5ca942f90 | 10,174 | py | Python | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | from typing import List
import math
import configargparse
import numpy as np
import sqlalchemy
import yaml
import sys
import tqdm
from IPython import embed
from celery import group
from angular_solver import solve, bulk_solve
from database import Config, ConfigHolder, Graph, Task, TaskJobs, get_session
from solver im... | 47.32093 | 169 | 0.650285 | 1,323 | 10,174 | 4.842026 | 0.187453 | 0.023884 | 0.045114 | 0.021542 | 0.245551 | 0.214955 | 0.194661 | 0.172651 | 0.167031 | 0.151421 | 0 | 0.001959 | 0.247395 | 10,174 | 215 | 170 | 47.32093 | 0.834661 | 0.005013 | 0 | 0.158163 | 0 | 0 | 0.15659 | 0 | 0 | 0 | 0 | 0.004651 | 0.015306 | 1 | 0.045918 | false | 0.005102 | 0.071429 | 0 | 0.153061 | 0.015306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a92f10539fc879fc6144252e415f0ed5e662c25e | 7,679 | py | Python | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 8 | 2019-11-13T22:26:45.000Z | 2022-03-23T15:30:37.000Z | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | null | null | null | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-08-10T18:22:04.000Z | 2021-08-30T23:16:27.000Z | """Generic room model"""
import argparse
import os
from frads import radgeom
from frads import radutil, util
class Room(object):
"""Make a shoebox."""
def __init__(self, width, depth, height, origin=radgeom.Vector()):
self.width = width
self.depth = depth
self.height = height
... | 42.192308 | 90 | 0.594218 | 963 | 7,679 | 4.601246 | 0.208723 | 0.032498 | 0.018957 | 0.017603 | 0.168585 | 0.158429 | 0.130896 | 0.098172 | 0.069059 | 0.069059 | 0 | 0.012357 | 0.272822 | 7,679 | 181 | 91 | 42.425414 | 0.78116 | 0.0405 | 0 | 0.065789 | 0 | 0 | 0.101582 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 1 | 0.059211 | false | 0 | 0.026316 | 0 | 0.111842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a931b982d8994d2cd901db4713baba148c9468eb | 10,825 | py | Python | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 9 | 2019-11-03T10:15:06.000Z | 2022-02-26T06:16:10.000Z | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 2 | 2020-07-08T18:23:02.000Z | 2022-01-17T17:31:18.000Z | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 5 | 2020-07-06T16:28:15.000Z | 2022-02-22T00:51:48.000Z | import os
import requests
from requests.auth import HTTPBasicAuth
from ..integration.os.process import Command
from ..integration.os.utils import chdir
class RepoClient:
""" The class handles the GIT processes """
def __init__(self, root_dir, token, owner, repo, repo_dir):
""" Git class constructor... | 33.410494 | 119 | 0.584388 | 1,267 | 10,825 | 4.828729 | 0.166535 | 0.040536 | 0.023374 | 0.020922 | 0.456522 | 0.393756 | 0.363354 | 0.320039 | 0.291435 | 0.22965 | 0 | 0.005449 | 0.304942 | 10,825 | 323 | 120 | 33.513932 | 0.807682 | 0.140416 | 0 | 0.382353 | 0 | 0 | 0.193952 | 0.010225 | 0 | 0 | 0 | 0.003096 | 0 | 1 | 0.058824 | false | 0 | 0.02451 | 0 | 0.210784 | 0.205882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a93610cab32e285ce4c6a541e3cc023ff8fe9e1f | 25,186 | py | Python | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | 1 | 2021-10-04T19:56:25.000Z | 2021-10-04T19:56:25.000Z | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter.ttk import *
from frontend.gui.widgets import ToggleFrame
from frontend.mod.automaton import *
from frontend.mod.constants import *
from frontend.mod.hyir import *
from frontend.mod.session import Session
class PopupEntry(Toplevel):
def __init__(self, parent):
Toplevel.... | 31.017241 | 92 | 0.581077 | 2,959 | 25,186 | 4.800608 | 0.095978 | 0.025343 | 0.020275 | 0.010841 | 0.590356 | 0.514185 | 0.501443 | 0.441042 | 0.418515 | 0.379585 | 0 | 0.006863 | 0.311522 | 25,186 | 812 | 93 | 31.017241 | 0.812341 | 0.165449 | 0 | 0.50533 | 0 | 0 | 0.04145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078891 | false | 0 | 0.014925 | 0 | 0.17484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9363e554d610fb201aa75a84231ad4a9b284d4a | 749 | py | Python | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | 1 | 2021-10-01T09:59:22.000Z | 2021-10-01T09:59:22.000Z | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | """In this code we wanna plot real-time data."""
# import random
from itertools import count
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
plt.style.use('fivethirtyeight')
x_vals = []
y_vals = []
index = count()
def animate(i):
"""Plot the gr... | 20.805556 | 59 | 0.635514 | 111 | 749 | 4.189189 | 0.558559 | 0.034409 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02906 | 0.218959 | 749 | 35 | 60 | 21.4 | 0.765812 | 0.125501 | 0 | 0.095238 | 0 | 0 | 0.129721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a937efbd3e11f0b5981cad6ed7badf54a6c3173d | 10,688 | py | Python | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | 1 | 2020-03-12T04:27:26.000Z | 2020-03-12T04:27:26.000Z | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | null | null | null | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import os, sys, re
import logging as L
import shutil
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from pprint import pformat, pprint
DRY_RUN = []
TALLIES = dict( runs = 0,
fastqdirs = 0 )
# Could import this from hesiod/__init__.py but I don't want the deps... | 37.900709 | 96 | 0.625561 | 1,507 | 10,688 | 4.288653 | 0.202389 | 0.054154 | 0.025994 | 0.013616 | 0.420084 | 0.337769 | 0.289339 | 0.273867 | 0.264892 | 0.219712 | 0 | 0.006104 | 0.264222 | 10,688 | 281 | 97 | 38.035587 | 0.815743 | 0.239989 | 0 | 0.224138 | 0 | 0 | 0.157237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.011494 | 0.034483 | 0 | 0.132184 | 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 |
a9386e5cb5a9cdff5dcde3ebc831677dfecb0b4f | 1,478 | py | Python | run.py | pacyu/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | 5 | 2020-03-01T09:24:57.000Z | 2020-10-14T07:52:22.000Z | run.py | yomikochan/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | null | null | null | run.py | yomikochan/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | 5 | 2020-02-28T14:57:25.000Z | 2020-10-14T07:59:34.000Z | import audio_visual
import argparse
import sys
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog='Audio visualization', conflict_handler='resolve')
parser.add_argument('-e', '--effect',
help='visualization effect: 1d or 2d or 3d')
parser.add_argument('-f', '--filenam... | 38.894737 | 101 | 0.56157 | 178 | 1,478 | 4.494382 | 0.337079 | 0.10125 | 0.0825 | 0.06 | 0.2275 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0.022417 | 0.305819 | 1,478 | 37 | 102 | 39.945946 | 0.75731 | 0 | 0 | 0.242424 | 0 | 0 | 0.163957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9396c4b2a5db6f805687ea1be44d44fa3d0fd9d | 1,091 | py | Python | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | null | null | null | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | 5 | 2020-06-06T01:01:48.000Z | 2021-09-22T18:16:22.000Z | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | null | null | null | import logging
from celery import shared_task
from .models import Feed
@shared_task(name='fetch-entries')
def fetch_entries():
"""Fetches and saves all new entries for each RSS feed in the db.
Returns:
int: count of all RSS entries successfully saved
"""
logging.info('Fetching... | 28.710526 | 94 | 0.590284 | 133 | 1,091 | 4.721805 | 0.421053 | 0.133758 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001379 | 0.335472 | 1,091 | 37 | 95 | 29.486486 | 0.864828 | 0.114574 | 0 | 0.083333 | 0 | 0 | 0.26044 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a93f9ae56030b3bb1d933321fd043f4b7c020edb | 2,473 | py | Python | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | lvancrayelynghe/dotfiles | 6cbf95368f18d26adc3520b4223157a0ed6acebc | [
"MIT"
] | 17 | 2019-03-25T23:43:40.000Z | 2022-03-08T17:56:06.000Z | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | pection/dotfiles | b93759598a601833b14d87fc38ff034f027faea0 | [
"MIT"
] | null | null | null | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | pection/dotfiles | b93759598a601833b14d87fc38ff034f027faea0 | [
"MIT"
] | 6 | 2019-03-20T18:17:22.000Z | 2020-12-11T04:38:22.000Z | import sublime
import sublime_plugin
import subprocess
import re
import time
import threading
class CommandOnSave(sublime_plugin.EventListener):
def __init__(self):
self.timeout = 2
self.timer = None
def cancel_timer(self):
if self.timer != None:
self.timer.cancel()
de... | 34.830986 | 109 | 0.608573 | 285 | 2,473 | 5.133333 | 0.249123 | 0.073821 | 0.071087 | 0.051948 | 0.467532 | 0.420369 | 0.382092 | 0.270677 | 0.270677 | 0.270677 | 0 | 0.00225 | 0.281035 | 2,473 | 70 | 110 | 35.328571 | 0.820585 | 0.02224 | 0 | 0.368421 | 0 | 0 | 0.113411 | 0.037252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0 | 0.105263 | 0 | 0.315789 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9413ba0562d76a3686a4648b8027621dd78c41b | 2,736 | py | Python | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : EXP
# -----------------------------------------------
import os
import re
import numbers
def _parse_dict(conf_dict) :
'''
递归解析字典值中的表达式
:param conf_dict: 原始配置字典
:return: 解析表达式后的配置字典
'''
result_dict = {}
for key, val in conf_dict.it... | 23.186441 | 83 | 0.50402 | 308 | 2,736 | 4.340909 | 0.275974 | 0.035901 | 0.040389 | 0.038145 | 0.094989 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008782 | 0.334064 | 2,736 | 117 | 84 | 23.384615 | 0.725027 | 0.142544 | 0 | 0.134328 | 0 | 0 | 0.045373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.044776 | 0 | 0.208955 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a946ab769d869df40935f6c4d6219757e390f7ee | 1,750 | py | Python | auto/lookup.py | ggicci/fuck-leetcode | 45b488530b9dbcc8b7c0b90160ea45b1ab4f8475 | [
"MIT"
] | null | null | null | auto/lookup.py | ggicci/fuck-leetcode | 45b488530b9dbcc8b7c0b90160ea45b1ab4f8475 | [
"MIT"
] | null | null | null | auto/lookup.py | ggicci/fuck-leetcode | 45b488530b9dbcc8b7c0b90160ea45b1ab4f8475 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import json
from argparse import ArgumentParser
ROOT = os.path.dirname(os.path.abspath(__file__))
DB_FILE = os.path.join(ROOT, 'problems.json')
def parse_args():
"""Parse CLI tool options.
"""
parser = ArgumentParser()
parser.add_argument('problem_id', type... | 25 | 74 | 0.582286 | 219 | 1,750 | 4.534247 | 0.383562 | 0.054381 | 0.068479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00159 | 0.281143 | 1,750 | 69 | 75 | 25.362319 | 0.787758 | 0.070857 | 0 | 0.044444 | 0 | 0 | 0.166976 | 0.022882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.266667 | 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 |
a9470a504b0eced5d1fe21002e68de978c63f971 | 6,789 | py | Python | src/application/dungeon.py | meteoric-minks/code-jam | b094350176e54d873a04a483dc37d70533013c37 | [
"MIT"
] | 1 | 2021-07-09T14:41:12.000Z | 2021-07-09T14:41:12.000Z | src/application/dungeon.py | meteoric-minks/code-jam | b094350176e54d873a04a483dc37d70533013c37 | [
"MIT"
] | null | null | null | src/application/dungeon.py | meteoric-minks/code-jam | b094350176e54d873a04a483dc37d70533013c37 | [
"MIT"
] | null | null | null | from __future__ import annotations # Fixes an issue with some annotations
from .ascii_box import Light, LineChar
from .ascii_drawing import DrawingChar
class Item:
"""Represents an item within a Room."""
def __init__(self, x: int, y: int, c: DrawingChar, interact: bool = False):
self.x, self.y = x,... | 32.328571 | 112 | 0.531153 | 956 | 6,789 | 3.718619 | 0.210251 | 0.019691 | 0.020253 | 0.016878 | 0.149086 | 0.081013 | 0.057947 | 0.007876 | 0.007876 | 0 | 0 | 0.018963 | 0.355281 | 6,789 | 209 | 113 | 32.483254 | 0.793237 | 0.261158 | 0 | 0.157025 | 0 | 0 | 0.016974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132231 | false | 0.008264 | 0.024793 | 0.016529 | 0.264463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a94809d2a1b0b2d4efef4518fceb1a00c7233013 | 3,836 | py | Python | math2/graph/graphs.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | 2 | 2021-03-29T03:15:57.000Z | 2021-03-29T03:23:21.000Z | math2/graph/graphs.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | 1 | 2021-04-07T11:07:17.000Z | 2021-04-07T11:07:17.000Z | math2/graph/graphs.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from collections import defaultdict
from functools import partial
from auxiliary import default
class Edge:
def __init__(self, u, v, *, weight=None, capacity=None):
self.u = u
self.v = v
self.weight = weight
self.capacity = capacity
se... | 25.573333 | 79 | 0.574035 | 503 | 3,836 | 4.202783 | 0.133201 | 0.033113 | 0.026017 | 0.035951 | 0.53264 | 0.464995 | 0.441343 | 0.373699 | 0.31315 | 0.280038 | 0 | 0.000381 | 0.316476 | 3,836 | 149 | 80 | 25.744966 | 0.805873 | 0 | 0 | 0.481481 | 0 | 0 | 0.029718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.009259 | 0.037037 | 0.046296 | 0.398148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a948b58d4adf86897d648d15d474fef3166794ec | 5,734 | py | Python | src/models/test_ensemble.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | null | null | null | src/models/test_ensemble.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | 8 | 2020-09-25T22:32:00.000Z | 2022-02-10T01:17:17.000Z | src/models/test_ensemble.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | 1 | 2021-08-12T12:48:51.000Z | 2021-08-12T12:48:51.000Z | import os
import sys
import time
import numpy as np
from sklearn.metrics import accuracy_score
from utils.config import TRANSFORMATION
from utils.ensemble import load_models, prediction, ensemble_defenses_util
def testOneData(
datasetFilePath,
models,
nClasses,
transformationList,
... | 33.144509 | 142 | 0.671085 | 638 | 5,734 | 5.87931 | 0.296238 | 0.012797 | 0.017595 | 0.018129 | 0.279126 | 0.252466 | 0.227939 | 0.18635 | 0.154625 | 0.115702 | 0 | 0.04044 | 0.206488 | 5,734 | 172 | 143 | 33.337209 | 0.783956 | 0.070108 | 0 | 0.294118 | 0 | 0 | 0.190145 | 0.103254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007353 | false | 0 | 0.051471 | 0 | 0.066176 | 0.036765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a949db919cd36868c22671e2839695a92034044f | 3,117 | py | Python | config.py | eicc27/Pixcrawl-Full | dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb | [
"MIT"
] | null | null | null | config.py | eicc27/Pixcrawl-Full | dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb | [
"MIT"
] | null | null | null | config.py | eicc27/Pixcrawl-Full | dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb | [
"MIT"
] | null | null | null | from msedge.selenium_tools import Edge, EdgeOptions
from lxml import html
import time
import curses
stdscr = curses.initscr()
max_y = stdscr.getmaxyx()[0] - 1
if max_y < 16:
raise Exception("Terminal row size must be more then 17, but now it is %d." % (max_y + 1))
# changelog: more OOP.
# class: illust,ill... | 39.961538 | 120 | 0.600898 | 410 | 3,117 | 4.468293 | 0.37561 | 0.085153 | 0.056769 | 0.051856 | 0.283843 | 0.225437 | 0.130459 | 0.112445 | 0.112445 | 0.112445 | 0 | 0.03392 | 0.252807 | 3,117 | 77 | 121 | 40.480519 | 0.752684 | 0.041065 | 0 | 0.176471 | 0 | 0.029412 | 0.290678 | 0.029584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.058824 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a94bba226fe399a457f809ece3327258a884ffc0 | 1,181 | py | Python | dev/tools/roadnet_convert/geo/formats/osm.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/tools/roadnet_convert/geo/formats/osm.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/tools/roadnet_convert/geo/formats/osm.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | from geo.position import Location
import geo.helper
class RoadNetwork:
'''The primary container class for OSM road networks. (See: simmob.py)
Note that key/value properties are reduced to lowercase for both keys
and values.
'''
def __init__(self):
self.bounds = [] #[Location,Location], min. poin... | 31.078947 | 92 | 0.675699 | 172 | 1,181 | 4.523256 | 0.5 | 0.057841 | 0.071979 | 0.043702 | 0.203085 | 0.156812 | 0.087404 | 0.087404 | 0 | 0 | 0 | 0.002134 | 0.206605 | 1,181 | 37 | 93 | 31.918919 | 0.828175 | 0.298899 | 0 | 0.095238 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a94dde590f87aeb3b20de4c6b4b586cab3f571b5 | 1,441 | py | Python | Sorts/bubble_sort_recursive.py | Neiva07/Algorithms | cc2b22d1f69f0af7b91a8326550e759abfba79c8 | [
"MIT"
] | 199 | 2019-12-01T01:23:34.000Z | 2022-02-28T10:30:40.000Z | Sorts/bubble_sort_recursive.py | Neiva07/Algorithms | cc2b22d1f69f0af7b91a8326550e759abfba79c8 | [
"MIT"
] | 35 | 2020-06-08T17:59:22.000Z | 2021-11-11T04:00:29.000Z | Sorts/bubble_sort_recursive.py | Neiva07/Algorithms | cc2b22d1f69f0af7b91a8326550e759abfba79c8 | [
"MIT"
] | 106 | 2020-02-05T01:28:19.000Z | 2022-03-11T05:38:54.000Z | # Script: bubble_sort_recursive.py
# Author: Joseph L. Crandal
# Purpose: Demonstrate bubble sort with recursion
# data will be the list to be sorted
data = [ 0, 5, 2, 3, 10, 123, -53, 23, 9, 2 ]
dataOrig = [ 0, 5, 2, 3, 10, 123, -53, 23, 9, 2 ]
# In a bubble sort you will work your way through the dataset
# and move... | 35.146341 | 118 | 0.668286 | 241 | 1,441 | 3.987552 | 0.53112 | 0.024974 | 0.01873 | 0.034339 | 0.098855 | 0.07076 | 0.031217 | 0.031217 | 0.031217 | 0.031217 | 0 | 0.03154 | 0.251908 | 1,441 | 40 | 119 | 36.025 | 0.859926 | 0.575989 | 0 | 0 | 0 | 0 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 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 |
a94f07dd94305ef8cca149684b5c8e4ef5b6072f | 19,260 | py | Python | mcv_consoler/plugins/tempest/runner.py | vladryk/mcv | ee74beafc65053ce200e03da423784cee0724e23 | [
"Apache-2.0"
] | null | null | null | mcv_consoler/plugins/tempest/runner.py | vladryk/mcv | ee74beafc65053ce200e03da423784cee0724e23 | [
"Apache-2.0"
] | null | null | null | mcv_consoler/plugins/tempest/runner.py | vladryk/mcv | ee74beafc65053ce200e03da423784cee0724e23 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015-2016 Mirantis, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 40.125 | 79 | 0.546625 | 2,182 | 19,260 | 4.662236 | 0.20165 | 0.017301 | 0.025066 | 0.020643 | 0.237983 | 0.167502 | 0.14106 | 0.12602 | 0.098889 | 0.079524 | 0 | 0.004958 | 0.340291 | 19,260 | 479 | 80 | 40.208768 | 0.795687 | 0.077362 | 0 | 0.204787 | 0 | 0 | 0.207173 | 0.030619 | 0 | 0 | 0 | 0.002088 | 0 | 1 | 0.037234 | false | 0.005319 | 0.037234 | 0 | 0.117021 | 0.00266 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9525cb4b63e18ce45a9ca957c592c3c20ea53fe | 1,385 | py | Python | docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py | EricHughesABC/pygamma_gallery | 64565d364e68a185aeee25b904813d795ecbe87c | [
"MIT"
] | null | null | null | docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py | EricHughesABC/pygamma_gallery | 64565d364e68a185aeee25b904813d795ecbe87c | [
"MIT"
] | null | null | null | docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py | EricHughesABC/pygamma_gallery | 64565d364e68a185aeee25b904813d795ecbe87c | [
"MIT"
] | null | null | null | """
#################
Hammersley Sphere
#################
"""
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def return_point(m, n, p):
"""
m is the index number of the Hammersley point to calculate
n is the maximun number of points
p is the order of the... | 22.704918 | 76 | 0.519856 | 252 | 1,385 | 2.769841 | 0.365079 | 0.028653 | 0.025788 | 0.017192 | 0.113181 | 0.06447 | 0.06447 | 0.06447 | 0.06447 | 0.06447 | 0 | 0.081527 | 0.300361 | 1,385 | 61 | 77 | 22.704918 | 0.638803 | 0.231769 | 0 | 0 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 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 |
a953cb0fff14bcb71d5e717da31296569a25a401 | 11,261 | py | Python | org/heather/setup/__init__.py | PandaLunatiquePrivate/Heather | a50ce59a7a61ac103003434fc0defc0e3bb4860c | [
"Apache-2.0"
] | 2 | 2021-03-06T20:15:14.000Z | 2021-03-28T16:58:13.000Z | org/heather/setup/__init__.py | PandaLunatiquePrivate/Heather | a50ce59a7a61ac103003434fc0defc0e3bb4860c | [
"Apache-2.0"
] | null | null | null | org/heather/setup/__init__.py | PandaLunatiquePrivate/Heather | a50ce59a7a61ac103003434fc0defc0e3bb4860c | [
"Apache-2.0"
] | null | null | null | import enum
import json
import os
import requests
import yaml
import socket
import sqlite3
import traceback
from org.heather.api.tools import Tools
from org.heather.api.log import Log, LogLevel
@enum.unique
class VerifyResult(enum.Enum):
OK = 0
NEED_SETUP = 1
NEED_REPAIR = 2
class Setup():
@stati... | 42.334586 | 534 | 0.610958 | 1,350 | 11,261 | 5.008889 | 0.186667 | 0.033126 | 0.055753 | 0.035492 | 0.560337 | 0.489352 | 0.404022 | 0.360101 | 0.316474 | 0.280982 | 0 | 0.023833 | 0.273422 | 11,261 | 265 | 535 | 42.49434 | 0.802616 | 0.007282 | 0 | 0.20904 | 0 | 0.079096 | 0.431218 | 0.022107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.00565 | 0.056497 | 0 | 0.124294 | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a955fd4758fdef6a817f379d021c4f3cc6b7730c | 5,421 | py | Python | utils/belief_prop.py | atitus5/ocr-869 | 1d714dd28e933fb320b099a4631d25e93bb01678 | [
"MIT"
] | null | null | null | utils/belief_prop.py | atitus5/ocr-869 | 1d714dd28e933fb320b099a4631d25e93bb01678 | [
"MIT"
] | null | null | null | utils/belief_prop.py | atitus5/ocr-869 | 1d714dd28e933fb320b099a4631d25e93bb01678 | [
"MIT"
] | null | null | null | import math
import sys
import time
from nltk import word_tokenize
import numpy as np
def bp_error_correction(kjv, all_predictions):
start_t = time.time()
# Run belief propagation to correct any words not found in dictionary
print("Setting up word set and tokenizing predictions...")
word_set = set(wor... | 46.333333 | 120 | 0.643239 | 725 | 5,421 | 4.571034 | 0.257931 | 0.031382 | 0.038624 | 0.015691 | 0.235063 | 0.085697 | 0.068196 | 0.028968 | 0.028968 | 0.028968 | 0 | 0.016447 | 0.259731 | 5,421 | 116 | 121 | 46.732759 | 0.80937 | 0.182808 | 0 | 0.025641 | 0 | 0 | 0.066485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.064103 | 0 | 0.115385 | 0.089744 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a956dee6345202cc212985e79e8f74cb1e26aa99 | 1,065 | py | Python | botx/clients/methods/errors/unauthorized_bot.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 13 | 2021-01-21T12:43:10.000Z | 2022-03-23T11:11:59.000Z | botx/clients/methods/errors/unauthorized_bot.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 259 | 2020-02-26T08:51:03.000Z | 2022-03-23T11:08:36.000Z | botx/clients/methods/errors/unauthorized_bot.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 5 | 2019-12-02T16:19:22.000Z | 2021-11-22T20:33:34.000Z | """Definition for "invalid bot credentials" error."""
from typing import NoReturn
from botx.clients.methods.base import APIErrorResponse, BotXMethod
from botx.clients.types.http import HTTPResponse
from botx.exceptions import BotXAPIError
class InvalidBotCredentials(BotXAPIError):
"""Error for raising when got i... | 30.428571 | 80 | 0.71831 | 122 | 1,065 | 6.172131 | 0.508197 | 0.074369 | 0.083665 | 0.069057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200939 | 1,065 | 34 | 81 | 31.323529 | 0.884841 | 0.296714 | 0 | 0 | 0 | 0 | 0.09887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9578f51cee02781b1cf946c958d1259116e97c7 | 16,515 | py | Python | ld38/game_scene.py | irskep/rogue_basement | f92637d7870662a401ca7bb745e3855364b5ac9c | [
"MIT"
] | 16 | 2017-04-24T02:29:43.000Z | 2021-07-31T15:53:15.000Z | ld38/game_scene.py | irskep/rogue_basement | f92637d7870662a401ca7bb745e3855364b5ac9c | [
"MIT"
] | 4 | 2017-04-24T20:13:45.000Z | 2017-05-07T16:22:52.000Z | ld38/game_scene.py | irskep/rogue_basement | f92637d7870662a401ca7bb745e3855364b5ac9c | [
"MIT"
] | 2 | 2017-05-14T20:57:38.000Z | 2017-05-19T22:08:37.000Z | # This file has a lot going on in it because really ties the game together,
# just like The Dude's rug. You can probably read it start to finish, but
# by all means start jumping around from here.
# Dependencies for rendering the UI
from clubsandwich.ui import (
LabelView,
LayoutOptions,
UIScene,
)
# including s... | 37.44898 | 102 | 0.711051 | 2,462 | 16,515 | 4.657595 | 0.25264 | 0.032267 | 0.019273 | 0.014128 | 0.186274 | 0.158629 | 0.134211 | 0.113718 | 0.095404 | 0.084765 | 0 | 0.002673 | 0.207206 | 16,515 | 440 | 103 | 37.534091 | 0.873138 | 0.482652 | 0 | 0.246377 | 0 | 0 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10628 | false | 0 | 0.048309 | 0 | 0.207729 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a958227f8764279c1268ab44258acb82a4b5a6c0 | 4,882 | py | Python | main.py | yanxurui/portfolio | 032cf47ccac1c5815fd4827bf0d5f3cf43cec990 | [
"MIT"
] | null | null | null | main.py | yanxurui/portfolio | 032cf47ccac1c5815fd4827bf0d5f3cf43cec990 | [
"MIT"
] | null | null | null | main.py | yanxurui/portfolio | 032cf47ccac1c5815fd4827bf0d5f3cf43cec990 | [
"MIT"
] | null | null | null | import os
import shutil
import argparse
from pathlib import Path
from time import time
from collections import defaultdict
import torch
import numpy as np
import pandas as pd
torch.manual_seed(0)
def allocate(a):
a[a<0] = 0
if a.sum() <= 1:
return a
else:
return a/a.sum()
def ret(output,... | 33.438356 | 88 | 0.621262 | 661 | 4,882 | 4.416036 | 0.258699 | 0.024666 | 0.033573 | 0.020555 | 0.169236 | 0.055498 | 0 | 0 | 0 | 0 | 0 | 0.007505 | 0.235764 | 4,882 | 145 | 89 | 33.668966 | 0.774859 | 0.07374 | 0 | 0.1 | 0 | 0 | 0.123087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0 | 0.083333 | 0 | 0.191667 | 0.058333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a95cdc019a431df0ac19c35d5980e2ea22fe3fdc | 2,508 | py | Python | toolkit/retry.py | blackmatrix7/iphone_hunter | 1df7bee48f4d67397fae821f8a675115525f4ef8 | [
"Apache-2.0"
] | 2 | 2017-09-27T14:11:59.000Z | 2022-02-28T06:38:30.000Z | toolkit/retry.py | blackmatrix7/iphone_hunter | 1df7bee48f4d67397fae821f8a675115525f4ef8 | [
"Apache-2.0"
] | 1 | 2021-06-01T21:38:59.000Z | 2021-06-01T21:38:59.000Z | toolkit/retry.py | blackmatrix7/iphone_hunter | 1df7bee48f4d67397fae821f8a675115525f4ef8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/8/18 上午9:50
# @Author : Matrix
# @Github : https://github.com/blackmatrix7/
# @Blog : http://www.cnblogs.com/blackmatrix/
# @File : retry.py
# @Software: PyCharm
import time
from functools import wraps
__author__ = 'blackmatrix'
"""
在函数执行出现异常时自动重试的简单装饰器
""... | 30.585366 | 77 | 0.598086 | 237 | 2,508 | 6.219409 | 0.594937 | 0.033921 | 0.012212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01092 | 0.30622 | 2,508 | 81 | 78 | 30.962963 | 0.836207 | 0.415072 | 0 | 0.055556 | 0 | 0 | 0.021674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.027778 | 0.055556 | 0.027778 | 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 |
a968e5c87a6a2fba1534a27a1696dd6c0f7117a1 | 1,568 | py | Python | apetools/proletarians/setuprun.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/proletarians/setuprun.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/proletarians/setuprun.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null |
# apetools Libraries
from apetools.baseclass import BaseClass
from apetools.builders import builder
from apetools.lexicographers.lexicographer import Lexicographer
class SetUp(BaseClass):
"""
The SetUp sets up the infrastructure
"""
def __init__(self, arguments, *args, **kwargs):
"""
... | 28 | 80 | 0.588648 | 154 | 1,568 | 5.863636 | 0.363636 | 0.094131 | 0.049834 | 0.048726 | 0.057586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00186 | 0.314413 | 1,568 | 55 | 81 | 28.509091 | 0.83814 | 0.153061 | 0 | 0.2 | 0 | 0 | 0.087603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 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 |
a969c4d30c2cfa4664e0f50b541bf7d5cc4223f3 | 11,423 | py | Python | bleu.py | divyang02/English_to_Hindi_Machine_language_translator | 0502b7bb1f86f45d452868a8701009d421765b64 | [
"MIT"
] | 1 | 2022-02-22T04:10:34.000Z | 2022-02-22T04:10:34.000Z | bleu.py | divyang02/English_to_Hindi_Machine_language_translator | 0502b7bb1f86f45d452868a8701009d421765b64 | [
"MIT"
] | null | null | null | bleu.py | divyang02/English_to_Hindi_Machine_language_translator | 0502b7bb1f86f45d452868a8701009d421765b64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Sentence level and Corpus level BLEU score calculation tool
"""
from __future__ import division, print_function
import io
import os
import math
import sys
import argparse
from fractions import Fraction
from collections import Counter
from functools import reduce
from... | 45.692 | 109 | 0.604044 | 1,578 | 11,423 | 4.227503 | 0.190748 | 0.012292 | 0.005396 | 0.008095 | 0.286914 | 0.239694 | 0.192475 | 0.162344 | 0.15335 | 0.105531 | 0 | 0.022946 | 0.290379 | 11,423 | 249 | 110 | 45.875502 | 0.799531 | 0.247133 | 0 | 0.188571 | 0 | 0 | 0.076743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.062857 | 0 | 0.154286 | 0.034286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a972d95469a20ffc4d590103acea6ae8f6b2b426 | 1,746 | py | Python | src/elm_doc/tasks/html.py | brilliantorg/elm-doc | 69ddbcd57aee3da6283c2497d735951d95b85426 | [
"BSD-3-Clause"
] | 29 | 2017-02-01T11:58:44.000Z | 2021-05-21T15:18:33.000Z | src/elm_doc/tasks/html.py | brilliantorg/elm-doc | 69ddbcd57aee3da6283c2497d735951d95b85426 | [
"BSD-3-Clause"
] | 143 | 2017-07-26T17:34:44.000Z | 2022-03-01T18:01:43.000Z | src/elm_doc/tasks/html.py | brilliantorg/elm-doc | 69ddbcd57aee3da6283c2497d735951d95b85426 | [
"BSD-3-Clause"
] | 7 | 2018-03-09T10:04:45.000Z | 2021-10-19T19:17:40.000Z | import json
import html
from pathlib import Path
from elm_doc.utils import Namespace
# Note: title tag is omitted, as the Elm app sets the title after
# it's initialized.
PAGE_TEMPLATE = '''
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" size="16x16, 32x32, 48x48, 64x64, 128... | 30.103448 | 142 | 0.643757 | 225 | 1,746 | 4.862222 | 0.506667 | 0.155393 | 0.073126 | 0.073126 | 0.067642 | 0.067642 | 0.067642 | 0 | 0 | 0 | 0 | 0.025054 | 0.199885 | 1,746 | 57 | 143 | 30.631579 | 0.758053 | 0.052692 | 0 | 0 | 0 | 0.042553 | 0.595152 | 0.246061 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9767449042e9e6827a47f70074761e36edb412a | 2,666 | py | Python | nb.py | corytaitchison/online-reviews | 10de9218137658269ba36849dfa7e8f643335d01 | [
"MIT"
] | null | null | null | nb.py | corytaitchison/online-reviews | 10de9218137658269ba36849dfa7e8f643335d01 | [
"MIT"
] | null | null | null | nb.py | corytaitchison/online-reviews | 10de9218137658269ba36849dfa7e8f643335d01 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
###
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
# from nltk.stem import WordNetLemmatizer
from nltk.stem import PorterStemmer
###
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import con... | 33.746835 | 122 | 0.686422 | 340 | 2,666 | 5.267647 | 0.447059 | 0.053601 | 0.0134 | 0.020101 | 0.026801 | 0.026801 | 0 | 0 | 0 | 0 | 0 | 0.012664 | 0.2003 | 2,666 | 78 | 123 | 34.179487 | 0.827392 | 0.140285 | 0 | 0 | 0 | 0 | 0.102948 | 0.029037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.24 | 0 | 0.28 | 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 |
a976a9884a077db66cbb3f3d300b2d865662f9c4 | 4,346 | py | Python | docker-images/slack-prs/main.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 17 | 2022-01-10T11:01:50.000Z | 2022-03-25T03:21:08.000Z | docker-images/slack-prs/main.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 1 | 2022-01-13T14:28:47.000Z | 2022-01-13T14:28:47.000Z | docker-images/slack-prs/main.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 7 | 2022-01-07T03:58:10.000Z | 2022-03-24T07:38:20.000Z | import time
import json
import argparse
import websocket
import requests
import github
MY_NAME = 'kit' # should be able to avoid this in the future
TOKEN = 'XXXXXXX'
GITHUB_USERNAME_BY_SLACK_USERNAME = {
"adam": "adamsmith",
# XXXXXXX ...
}
channel_ids_by_name = {}
channel_names_by_id = {}
next_id = 0
def send... | 24.834286 | 102 | 0.685228 | 645 | 4,346 | 4.396899 | 0.237209 | 0.074048 | 0.035966 | 0.028209 | 0.422426 | 0.375882 | 0.299013 | 0.27433 | 0.27433 | 0.27433 | 0 | 0.001118 | 0.176484 | 4,346 | 174 | 103 | 24.977011 | 0.791282 | 0.049701 | 0 | 0.25 | 0 | 0 | 0.108764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039063 | false | 0.015625 | 0.046875 | 0 | 0.125 | 0.054688 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9775f738c3044fcff42b57c7ed49ac310db7479 | 656 | py | Python | commands/meme.py | EFFLUX110/efflux-discord-bot | fe382fc822f852efab8d4742daa756045a17bff3 | [
"MIT"
] | null | null | null | commands/meme.py | EFFLUX110/efflux-discord-bot | fe382fc822f852efab8d4742daa756045a17bff3 | [
"MIT"
] | 4 | 2022-02-03T18:24:32.000Z | 2022-02-03T19:24:51.000Z | commands/meme.py | EFFLUX110/efflux-discord-bot | fe382fc822f852efab8d4742daa756045a17bff3 | [
"MIT"
] | 1 | 2022-02-03T18:12:44.000Z | 2022-02-03T18:12:44.000Z | import discord
import requests
from discord.ext import commands
class Meme(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def meme(self,ctx):
r=requests.get("https://memes.blademaker.tv/api?lang=en")
res=r.json()
title=res['title']
... | 28.521739 | 87 | 0.617378 | 94 | 656 | 4.212766 | 0.531915 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22561 | 656 | 23 | 88 | 28.521739 | 0.779528 | 0 | 0 | 0 | 0 | 0 | 0.17656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a977697bb7ffe10b5b5f5a391df5f58451adfd57 | 717 | py | Python | 45.py | brianfl/project-euler | 9f83a3c2da04fd0801a4a575081add665edccd5f | [
"MIT"
] | null | null | null | 45.py | brianfl/project-euler | 9f83a3c2da04fd0801a4a575081add665edccd5f | [
"MIT"
] | null | null | null | 45.py | brianfl/project-euler | 9f83a3c2da04fd0801a4a575081add665edccd5f | [
"MIT"
] | null | null | null | target_num = 0
j = 0
while target_num == 0:
pent_ind = float((1 + ( 1 + 24*j*(2*j-1))**.5)/6)
tri_ind = float((-1 + (1+8*j*(2*j-1)))/2)
if pent_ind.is_integer() and tri_ind.is_integer():
num = j*(2*j-1)
if num != 1 and num != 40755:
target_num = num
j += 1
print(target_num)... | 29.875 | 71 | 0.661088 | 133 | 717 | 3.473684 | 0.481203 | 0.077922 | 0.019481 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065455 | 0.232915 | 717 | 24 | 72 | 29.875 | 0.774545 | 0.013947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a97827ef5e7685a79286da4ad9d58d63d84d97d6 | 801 | py | Python | client.py | hani9/smartlockers | bd7a996be58769341367d58d5c80c70ad7bd1cb6 | [
"MIT"
] | null | null | null | client.py | hani9/smartlockers | bd7a996be58769341367d58d5c80c70ad7bd1cb6 | [
"MIT"
] | null | null | null | client.py | hani9/smartlockers | bd7a996be58769341367d58d5c80c70ad7bd1cb6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Importo les llibreries
import socket
import RPi.GPIO as GPIO
import time
# Faig la configuració bàsica del GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT) # Només utilitzo el 18. Es podria fer un bucle per activar-ne diversos alhora.
# Indico ... | 26.7 | 103 | 0.705368 | 134 | 801 | 4.186567 | 0.641791 | 0.024955 | 0.046346 | 0.060606 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026275 | 0.19226 | 801 | 29 | 104 | 27.62069 | 0.840804 | 0.50437 | 0 | 0 | 0 | 0 | 0.065274 | 0.065274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a978a3e063f71ae417a8f86e87e70e36b033503d | 16,820 | py | Python | src/mlpro/rl/pool/envmodels/mlp_robotinhtm.py | fhswf/MLPro | e944b69bed9c2d5548677711270e4a4fe868aea9 | [
"Apache-2.0"
] | 5 | 2022-01-31T15:52:19.000Z | 2022-03-21T18:34:27.000Z | src/mlpro/rl/pool/envmodels/mlp_robotinhtm.py | fhswf/MLPro | e944b69bed9c2d5548677711270e4a4fe868aea9 | [
"Apache-2.0"
] | 61 | 2021-12-17T13:03:59.000Z | 2022-03-31T10:24:37.000Z | src/mlpro/rl/pool/envmodels/mlp_robotinhtm.py | fhswf/MLPro | e944b69bed9c2d5548677711270e4a4fe868aea9 | [
"Apache-2.0"
] | null | null | null | ## -------------------------------------------------------------------------------------------------
## -- Project : MLPro - A Synoptic Framework for Standardized Machine Learning Tasks
## -- Package : mlpro.rl.envmodels
## -- Module : mlp_robotinhtm
## -----------------------------------------------------------------... | 39.299065 | 146 | 0.542866 | 2,052 | 16,820 | 4.26462 | 0.15692 | 0.007542 | 0.006514 | 0.006399 | 0.46429 | 0.426237 | 0.397555 | 0.378928 | 0.365558 | 0.348989 | 0 | 0.03303 | 0.289001 | 16,820 | 427 | 147 | 39.391101 | 0.698721 | 0.102259 | 0 | 0.341615 | 0 | 0 | 0.028382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059006 | false | 0 | 0.024845 | 0.009317 | 0.145963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a97a18817825892c952ac7174c04fcf55fabab56 | 6,441 | py | Python | MTL/features.py | usc-sail/mica-riskybehavior-identification | dd8d1bb795ca1b8273625713887c6c4b747fd542 | [
"MIT"
] | 2 | 2020-11-19T21:22:53.000Z | 2021-02-25T00:29:38.000Z | MTL/features.py | usc-sail/mica-riskybehavior-identification | dd8d1bb795ca1b8273625713887c6c4b747fd542 | [
"MIT"
] | null | null | null | MTL/features.py | usc-sail/mica-riskybehavior-identification | dd8d1bb795ca1b8273625713887c6c4b747fd542 | [
"MIT"
] | 1 | 2021-02-05T22:45:51.000Z | 2021-02-05T22:45:51.000Z | import os
import numpy as np
import torch
from transformers import BertTokenizer
from tensorflow.keras.utils import to_categorical
from NewDataLoader import *
from config import *
import warnings
class Features:
def __init__(self, **kwargs):
self.max_len = kwargs.get('max_len', 250)
self.categor... | 38.568862 | 127 | 0.621798 | 816 | 6,441 | 4.639706 | 0.186275 | 0.059165 | 0.029054 | 0.029583 | 0.542261 | 0.523772 | 0.465399 | 0.403592 | 0.379292 | 0.352351 | 0 | 0.007336 | 0.238162 | 6,441 | 166 | 128 | 38.801205 | 0.764214 | 0.070796 | 0 | 0.3 | 0 | 0 | 0.059701 | 0.003818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.08 | 0.03 | 0.3 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a97af6a55423ad89ce397dfb867db2824473473b | 1,233 | py | Python | project_4_data_pipelines/airflow/plugins/helpers/sparkify_dim_subdag.py | jpuris/udacity-data-engineering-submissions | e71e2569241c76b5e6c3cd074667b19bde4d7b9e | [
"MIT"
] | null | null | null | project_4_data_pipelines/airflow/plugins/helpers/sparkify_dim_subdag.py | jpuris/udacity-data-engineering-submissions | e71e2569241c76b5e6c3cd074667b19bde4d7b9e | [
"MIT"
] | null | null | null | project_4_data_pipelines/airflow/plugins/helpers/sparkify_dim_subdag.py | jpuris/udacity-data-engineering-submissions | e71e2569241c76b5e6c3cd074667b19bde4d7b9e | [
"MIT"
] | null | null | null | from airflow import DAG
from operators import LoadDimensionOperator
def load_dim_subdag(
parent_dag_name: str,
task_id: str,
redshift_conn_id: str,
sql_statement: str,
do_truncate: bool,
table_name: str,
**kwargs,
):
"""
Airflow's subdag wrapper. Implements LoadDimensionOperator op... | 26.804348 | 75 | 0.673155 | 155 | 1,233 | 5.096774 | 0.329032 | 0.053165 | 0.082278 | 0.064557 | 0.074684 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262774 | 1,233 | 45 | 76 | 27.4 | 0.869087 | 0.47283 | 0 | 0 | 0 | 0 | 0.045763 | 0.045763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | 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 |
a97e81a89bda65fad9ab35f52160822fa9349f8c | 11,572 | py | Python | geetools/collection/modis.py | carderne/gee_tools | 4003e75ffb0ffefc9f41b1a34d849eebdb486161 | [
"MIT"
] | null | null | null | geetools/collection/modis.py | carderne/gee_tools | 4003e75ffb0ffefc9f41b1a34d849eebdb486161 | [
"MIT"
] | null | null | null | geetools/collection/modis.py | carderne/gee_tools | 4003e75ffb0ffefc9f41b1a34d849eebdb486161 | [
"MIT"
] | null | null | null | # coding=utf-8
""" Google Earth Engine MODIS Collections """
from . import Collection, TODAY, Band
from functools import partial
IDS = [
'MODIS/006/MOD09GQ', 'MODIS/006/MYD09GQ',
'MODIS/006/MOD09GA', 'MODIS/006/MYD09GA',
'MODIS/006/MOD13Q1', 'MODIS/006/MYD13Q1'
]
START = {
'MODIS/006/MOD09GQ': '2000-... | 38.317881 | 89 | 0.497753 | 1,224 | 11,572 | 4.529412 | 0.191176 | 0.044733 | 0.023449 | 0.020202 | 0.306818 | 0.202561 | 0.109848 | 0.078824 | 0.045996 | 0.045996 | 0 | 0.123437 | 0.364328 | 11,572 | 301 | 90 | 38.445183 | 0.630234 | 0.015555 | 0 | 0.190678 | 0 | 0 | 0.213022 | 0.007743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059322 | false | 0 | 0.008475 | 0.038136 | 0.127119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a980ed05ffe9a9c97a1b948b9c9b922dc89fb870 | 847 | py | Python | sympy/printing/printer.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T17:54:57.000Z | 2016-05-08T17:54:57.000Z | sympy/printing/printer.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null | sympy/printing/printer.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null |
class Printer(object):
"""
"""
def __init__(self):
self._depth = -1
self._str = str
self.emptyPrinter = str
def doprint(self, expr):
"""Returns the pretty representation for expr (as a string)"""
return self._str(self._print(expr))
def _print(self, expr):
... | 27.322581 | 70 | 0.565525 | 105 | 847 | 4.266667 | 0.447619 | 0.060268 | 0.066964 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005367 | 0.340024 | 847 | 30 | 71 | 28.233333 | 0.796064 | 0.251476 | 0 | 0 | 0 | 0 | 0.022801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a981fd9db88834f380bdfbae5402c0c579a7fa58 | 272 | py | Python | pleiades/transforms.py | jcwright77/pleiades | e3e208e94feee299589a094f361b301131d1bd15 | [
"MIT"
] | 3 | 2020-03-27T19:27:01.000Z | 2021-07-15T16:28:54.000Z | pleiades/transforms.py | jcwright77/pleiades | e3e208e94feee299589a094f361b301131d1bd15 | [
"MIT"
] | 6 | 2020-03-30T17:12:42.000Z | 2020-07-14T03:07:02.000Z | pleiades/transforms.py | jcwright77/pleiades | e3e208e94feee299589a094f361b301131d1bd15 | [
"MIT"
] | 6 | 2020-03-30T17:05:58.000Z | 2021-08-18T19:21:00.000Z | import math
import numpy as np
def rotate(pts, angle, pivot=(0., 0.)):
pivot = np.asarray(pivot)
angle = math.pi*angle/180
c, s = np.cos(angle), np.sin(angle)
rotation = np.array([[c, -s], [s, c]])
return (np.asarray(pts) - pivot) @ rotation + pivot
| 24.727273 | 55 | 0.602941 | 44 | 272 | 3.727273 | 0.477273 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023364 | 0.213235 | 272 | 10 | 56 | 27.2 | 0.742991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a98465a5dbaaa69b7d18d16711f08102c5a830eb | 3,414 | py | Python | wholeslidedata/annotation/write_mask2.py | kaczmarj/pathology-whole-slide-data | 3adb86af716ca89f336b6c935f90bd13183572b7 | [
"Apache-2.0"
] | 1 | 2022-02-17T19:47:14.000Z | 2022-02-17T19:47:14.000Z | wholeslidedata/annotation/write_mask2.py | kaczmarj/pathology-whole-slide-data | 3adb86af716ca89f336b6c935f90bd13183572b7 | [
"Apache-2.0"
] | null | null | null | wholeslidedata/annotation/write_mask2.py | kaczmarj/pathology-whole-slide-data | 3adb86af716ca89f336b6c935f90bd13183572b7 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from typing import List
import cv2
import numpy as np
from shapely import geometry
from shapely.strtree import STRtree
from wholeslidedata.annotation.structures import Annotation, Point, Polygon
from wholeslidedata.image.wholeslideimage import WholeSlideImage
from wholeslidedata.image.wholesli... | 32.207547 | 86 | 0.621558 | 395 | 3,414 | 5.21519 | 0.263291 | 0.034951 | 0.025243 | 0.027184 | 0.158738 | 0.095146 | 0.095146 | 0.026214 | 0 | 0 | 0 | 0.015416 | 0.277973 | 3,414 | 105 | 87 | 32.514286 | 0.820284 | 0.022847 | 0 | 0.047059 | 0 | 0 | 0.004202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035294 | false | 0 | 0.117647 | 0 | 0.176471 | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a984e763170541feb20e89e4a6245f1b8e706963 | 578 | py | Python | tuples_05/tests/test_slicing_tuples.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | null | null | null | tuples_05/tests/test_slicing_tuples.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 2 | 2019-04-15T06:29:55.000Z | 2019-04-19T17:34:32.000Z | tuples_05/tests/test_slicing_tuples.py | njoroge33/py_learn | 6ad55f37789045bc5c03f3dd668cf1ea497f4e84 | [
"MIT"
] | 1 | 2019-11-19T04:51:18.000Z | 2019-11-19T04:51:18.000Z | import pytest
from ..slicing_tuples import tuple_slice
@pytest.mark.parametrize('names, ages, cities, expected', [
(('Gitau', 'Kanyoi', 'Ndegwa'), (13, 24, 5), ('Njogu-ini', 'Limuru', 'Kamae'), (
('Gitau', 13, 'Njogu-ini'), ('Kanyoi', 24, 'Limuru'), ('Ndegwa', 5, 'Kamae')
)),
(('Totua', 'Suhi'... | 36.125 | 88 | 0.570934 | 67 | 578 | 4.850746 | 0.537313 | 0.092308 | 0.138462 | 0.141538 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047312 | 0.195502 | 578 | 15 | 89 | 38.533333 | 0.651613 | 0 | 0 | 0.153846 | 0 | 0 | 0.266436 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9856cedef8243944a78d8985c56e556db9faae0 | 28,653 | py | Python | dftimewolf/lib/state.py | hkhalifa/dftimewolf | 0a6d62fdb362c8618bd373c18a7f446b959f1a0f | [
"Apache-2.0"
] | null | null | null | dftimewolf/lib/state.py | hkhalifa/dftimewolf | 0a6d62fdb362c8618bd373c18a7f446b959f1a0f | [
"Apache-2.0"
] | null | null | null | dftimewolf/lib/state.py | hkhalifa/dftimewolf | 0a6d62fdb362c8618bd373c18a7f446b959f1a0f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""This class maintains the internal dfTimewolf state.
Use it to track errors, abort on global failures, clean up after modules, etc.
"""
from dataclasses import dataclass
from concurrent.futures import ThreadPoolExecutor, Future
import importlib
import logging
import threading
import tracebac... | 36.640665 | 144 | 0.682965 | 3,432 | 28,653 | 5.60373 | 0.147436 | 0.020799 | 0.007436 | 0.010867 | 0.478317 | 0.424657 | 0.382955 | 0.33673 | 0.30522 | 0.289933 | 0 | 0.001165 | 0.221094 | 28,653 | 781 | 145 | 36.68758 | 0.860561 | 0.356926 | 0 | 0.441558 | 0 | 0 | 0.084794 | 0.01249 | 0 | 0 | 0 | 0.00128 | 0 | 1 | 0.111688 | false | 0 | 0.057143 | 0 | 0.205195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a98a17680f92454408a66d8e581e032e851f1d31 | 1,089 | py | Python | tests/test_molecular_signatures_db.py | krassowski/gsea-api | deb562ea55871b799eb501a798dd49a881ff9523 | [
"MIT"
] | 8 | 2020-03-06T02:03:40.000Z | 2022-01-22T15:57:17.000Z | tests/test_molecular_signatures_db.py | krassowski/gsea-api | deb562ea55871b799eb501a798dd49a881ff9523 | [
"MIT"
] | 3 | 2020-03-06T01:48:53.000Z | 2021-10-06T04:15:55.000Z | tests/test_molecular_signatures_db.py | krassowski/gsea-api | deb562ea55871b799eb501a798dd49a881ff9523 | [
"MIT"
] | 2 | 2019-12-01T18:41:07.000Z | 2020-07-15T14:52:17.000Z | from pytest import raises
from gsea_api.molecular_signatures_db import MolecularSignaturesDatabase
def test_load():
msigdb_7_1 = MolecularSignaturesDatabase('tests/test_msigdb', version=7.1)
assert msigdb_7_1.version == '7.1'
assert msigdb_7_1.gene_sets == [
{
'name': 'c2.cp.reactome'... | 38.892857 | 90 | 0.747475 | 155 | 1,089 | 4.858065 | 0.309677 | 0.02656 | 0.042497 | 0.074369 | 0.568393 | 0.568393 | 0.446215 | 0.385126 | 0.162019 | 0.162019 | 0 | 0.038293 | 0.160698 | 1,089 | 27 | 91 | 40.333333 | 0.785558 | 0 | 0 | 0 | 0 | 0 | 0.278237 | 0.115702 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a98a271a4efe485ccb8f3daffb76dc91992cf6a3 | 11,387 | py | Python | froide_govplan/admin.py | okfde/froide-govplan | 1ae085c39c25af7c7a74d90ce39580119942a328 | [
"MIT"
] | 2 | 2022-03-13T14:49:46.000Z | 2022-03-14T18:39:04.000Z | froide_govplan/admin.py | okfde/froide-govplan | 1ae085c39c25af7c7a74d90ce39580119942a328 | [
"MIT"
] | 3 | 2022-03-18T11:52:46.000Z | 2022-03-18T14:13:43.000Z | froide_govplan/admin.py | okfde/froide-govplan | 1ae085c39c25af7c7a74d90ce39580119942a328 | [
"MIT"
] | 1 | 2022-03-18T09:36:20.000Z | 2022-03-18T09:36:20.000Z | from django.contrib import admin, auth
from django.contrib.auth.models import Group
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import path, reverse, reverse_lazy
from django.utils.translation import gettext_lazy as _
from adminsortable2.admin import SortableAdminMixin
from froid... | 30.859079 | 88 | 0.596557 | 1,113 | 11,387 | 5.876909 | 0.185984 | 0.023544 | 0.022015 | 0.02813 | 0.238649 | 0.17612 | 0.158997 | 0.13209 | 0.110075 | 0.110075 | 0 | 0.002283 | 0.307632 | 11,387 | 368 | 89 | 30.942935 | 0.827372 | 0.027136 | 0 | 0.316832 | 0 | 0 | 0.101729 | 0.02154 | 0 | 0 | 0 | 0.005435 | 0 | 1 | 0.069307 | false | 0 | 0.049505 | 0.009901 | 0.313531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a98a8630e0f08cab9b6667bd3db9422e0508306a | 2,995 | py | Python | tests/test_xmltompd.py | thiblahute/python-mpegdash | e7702dec59fe61668888ba5c9e1cb2f495b72c17 | [
"MIT"
] | 1 | 2021-06-08T04:25:04.000Z | 2021-06-08T04:25:04.000Z | tests/test_xmltompd.py | thiblahute/python-mpegdash | e7702dec59fe61668888ba5c9e1cb2f495b72c17 | [
"MIT"
] | null | null | null | tests/test_xmltompd.py | thiblahute/python-mpegdash | e7702dec59fe61668888ba5c9e1cb2f495b72c17 | [
"MIT"
] | 1 | 2021-09-27T12:57:51.000Z | 2021-09-27T12:57:51.000Z | try:
import unittest2 as unittest
except:
import unittest
from mpegdash.parser import MPEGDASHParser
class XML2MPDTestCase(unittest.TestCase):
def test_xml2mpd_from_string(self):
mpd_string = '''
<MPD xmlns="urn:mpeg:DASH:schema:MPD:2011" mediaPresentationDuration="PT0H1M52.43S" minBuffer... | 50.762712 | 126 | 0.686477 | 381 | 2,995 | 5.251969 | 0.32021 | 0.069965 | 0.054973 | 0.08096 | 0.517741 | 0.504248 | 0.449275 | 0.37981 | 0.301349 | 0.226387 | 0 | 0.055556 | 0.176628 | 2,995 | 58 | 127 | 51.637931 | 0.75588 | 0 | 0 | 0 | 0 | 0.08 | 0.395659 | 0.173623 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.12 | false | 0 | 0.06 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a98cc0ed5054e6dba3e35b5238cafe5ac890c96b | 513 | py | Python | algorithm_toolbox/week_4/03_divide_and_conquer_1_search_array/iterativeBinSearch.py | dibyanshushekhardey/data_struct_and_algo_coursera | ce579ba0be19d0415dc5a9526fd04bcdb803dbc0 | [
"MIT"
] | null | null | null | algorithm_toolbox/week_4/03_divide_and_conquer_1_search_array/iterativeBinSearch.py | dibyanshushekhardey/data_struct_and_algo_coursera | ce579ba0be19d0415dc5a9526fd04bcdb803dbc0 | [
"MIT"
] | null | null | null | algorithm_toolbox/week_4/03_divide_and_conquer_1_search_array/iterativeBinSearch.py | dibyanshushekhardey/data_struct_and_algo_coursera | ce579ba0be19d0415dc5a9526fd04bcdb803dbc0 | [
"MIT"
] | null | null | null | def BinarySearchIt(A, low, high, key):
while low <= high:
mid = low + ((high - low)//2)
if key == A[mid]:
return mid
elif key < A[mid]:
high = mid - 1
else:
low = mid + 1
return low - 1
arr = [3, 5, 8, 10, 12, 15, 18, 20, 20, 50, 60]
low = 1
... | 23.318182 | 60 | 0.502924 | 78 | 513 | 3.307692 | 0.435897 | 0.108527 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085799 | 0.341131 | 513 | 22 | 61 | 23.318182 | 0.677515 | 0 | 0 | 0.105263 | 0 | 0 | 0.105058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a98fe624f9604a44b5865d4659413307a64a58db | 2,133 | py | Python | 2016/day-02.py | mharty3/advent_of_code | f86e67eb772f4c328e30744610606fc154930aef | [
"MIT"
] | null | null | null | 2016/day-02.py | mharty3/advent_of_code | f86e67eb772f4c328e30744610606fc154930aef | [
"MIT"
] | null | null | null | 2016/day-02.py | mharty3/advent_of_code | f86e67eb772f4c328e30744610606fc154930aef | [
"MIT"
] | null | null | null | #--- Day 2: Bathroom Security ---
from typing import List
def parse(input_data: str) -> List[List[str]]:
lines = input_data.strip().split()
directions = [list(line) for line in lines]
return directions
def move1(x, y, direction):
if direction == 'U':
y -= 1
elif direction == 'D':
... | 21.118812 | 50 | 0.449602 | 270 | 2,133 | 3.440741 | 0.251852 | 0.019376 | 0.09042 | 0.064586 | 0.378902 | 0.331539 | 0.277718 | 0.277718 | 0.277718 | 0.277718 | 0 | 0.046132 | 0.339428 | 2,133 | 100 | 51 | 21.33 | 0.613201 | 0.015002 | 0 | 0.368421 | 0 | 0 | 0.045238 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.065789 | false | 0 | 0.026316 | 0 | 0.171053 | 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 |
a99348b5bc6c6ccf0bf508d81eb41b18d8e6cf18 | 2,875 | py | Python | compose.py | gicmo/koji-osbuild | d8107f23478ca12cd376098a79c7465cc5dd12d1 | [
"Apache-2.0"
] | null | null | null | compose.py | gicmo/koji-osbuild | d8107f23478ca12cd376098a79c7465cc5dd12d1 | [
"Apache-2.0"
] | null | null | null | compose.py | gicmo/koji-osbuild | d8107f23478ca12cd376098a79c7465cc5dd12d1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import argparse
import koji
import os
from pprint import pprint
def main():
parser = argparse.ArgumentParser(description="osbuild koji client")
parser.add_argument("--url", metavar="URL", type=str,
default="https://localhost/kojihub",
help="T... | 39.930556 | 88 | 0.631652 | 332 | 2,875 | 5.373494 | 0.268072 | 0.075673 | 0.142937 | 0.0213 | 0.066144 | 0.036996 | 0 | 0 | 0 | 0 | 0 | 0.001324 | 0.211826 | 2,875 | 71 | 89 | 40.492958 | 0.785966 | 0.005913 | 0 | 0.035088 | 0 | 0 | 0.254113 | 0.030452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0.035088 | 0.070175 | 0 | 0.087719 | 0.140351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9971d06d9c16341c965038e22004beaf49e0586 | 2,182 | py | Python | profile_python/profile.py | heroesofcode/profile-python | e4e6ee2f3739ea6edad30999b74b3d42f754a86c | [
"MIT"
] | null | null | null | profile_python/profile.py | heroesofcode/profile-python | e4e6ee2f3739ea6edad30999b74b3d42f754a86c | [
"MIT"
] | 1 | 2021-10-09T01:26:29.000Z | 2021-10-09T01:26:29.000Z | profile_python/profile.py | heroesofcode/profile-python | e4e6ee2f3739ea6edad30999b74b3d42f754a86c | [
"MIT"
] | null | null | null | from rich.console import Console
from rich.table import Table
from rich.progress import track
from time import sleep
import sys
class Profile(object):
def get_datas(self, datas):
try:
print(datas['login'])
print(datas['name'])
print(datas['bio'])
print(data... | 29.486486 | 76 | 0.47846 | 219 | 2,182 | 4.648402 | 0.39726 | 0.058939 | 0.05501 | 0.037328 | 0.11002 | 0.066798 | 0.066798 | 0.066798 | 0 | 0 | 0 | 0.008778 | 0.373511 | 2,182 | 73 | 77 | 29.890411 | 0.735918 | 0 | 0 | 0.169492 | 0 | 0 | 0.186984 | 0.04308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.084746 | 0 | 0.186441 | 0.254237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a99744e768b04af0c0bed6111d20060a12e0cfeb | 2,459 | py | Python | app/view/admin/notification_manage.py | G1NTOKI0522/WeChatterBot | 1a5377713fd3d6c7a6bca1c20e8fdcf70e8215f5 | [
"BSD-3-Clause"
] | 1 | 2020-04-03T02:54:18.000Z | 2020-04-03T02:54:18.000Z | app/view/admin/notification_manage.py | G1NTOKI0522/WeChatterBot | 1a5377713fd3d6c7a6bca1c20e8fdcf70e8215f5 | [
"BSD-3-Clause"
] | 7 | 2020-04-11T13:22:50.000Z | 2020-05-14T00:19:37.000Z | app/view/admin/notification_manage.py | G1NTOKI0522/WeChatterBot | 1a5377713fd3d6c7a6bca1c20e8fdcf70e8215f5 | [
"BSD-3-Clause"
] | 3 | 2020-04-11T12:09:56.000Z | 2020-12-16T13:26:20.000Z | # coding: utf-8
import datetime
from flask_login import login_required, current_user
from flask import Blueprint, request
from app.libs.http import jsonify, error_jsonify
from app.libs.db import session
from app.serializer.notice import NoticeParaSchema
from app.model.notice import Notice
bp_admin_notification = B... | 28.264368 | 99 | 0.699471 | 313 | 2,459 | 5.28754 | 0.268371 | 0.072508 | 0.097885 | 0.072508 | 0.489426 | 0.395166 | 0.395166 | 0.341994 | 0.304532 | 0.239275 | 0 | 0.039382 | 0.184221 | 2,459 | 86 | 100 | 28.593023 | 0.785643 | 0.045547 | 0 | 0.4375 | 0 | 0 | 0.046312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.109375 | 0 | 0.375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a99aa91e73c38055d1f2d643a8c77c56216293f4 | 6,498 | py | Python | colossalai/engine/_base_engine.py | rahulgupta9202/ColossalAI | 993088d45eaa032e39cf5959df2a506f0663bc2e | [
"Apache-2.0"
] | 1 | 2022-03-12T04:49:19.000Z | 2022-03-12T04:49:19.000Z | colossalai/engine/_base_engine.py | rahulgupta9202/ColossalAI | 993088d45eaa032e39cf5959df2a506f0663bc2e | [
"Apache-2.0"
] | null | null | null | colossalai/engine/_base_engine.py | rahulgupta9202/ColossalAI | 993088d45eaa032e39cf5959df2a506f0663bc2e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from torch.nn import Module
from torch.nn.modules.loss import _Loss
from torch.optim import Optimizer
from colossalai.builder import build_gradient_handler
from colossalai.context import ParallelMode
from colossalai.core import global_context as gpc
from colossalai.logg... | 36.711864 | 99 | 0.622499 | 706 | 6,498 | 5.529745 | 0.271955 | 0.045082 | 0.023309 | 0.021773 | 0.123975 | 0.114754 | 0.085041 | 0.085041 | 0.085041 | 0.085041 | 0 | 0.003579 | 0.311942 | 6,498 | 176 | 100 | 36.920455 | 0.869604 | 0.231302 | 0 | 0.216216 | 0 | 0 | 0.113777 | 0.016343 | 0 | 0 | 0 | 0 | 0.018018 | 1 | 0.09009 | false | 0 | 0.081081 | 0.045045 | 0.234234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a99b36048f5d32ab6c9b6ad9baf0b5a681590fdd | 718 | py | Python | 11. Optical Flow/optical_flow.py | farhan0syakir/OpenCv-tutorial | b3d78f3567f4ea61b8955190f51097b6ceb4b318 | [
"MIT"
] | 15 | 2021-05-04T15:03:14.000Z | 2022-03-20T11:57:55.000Z | 11. Optical Flow/optical_flow.py | farhan0syakir/OpenCv-tutorial | b3d78f3567f4ea61b8955190f51097b6ceb4b318 | [
"MIT"
] | 12 | 2020-09-24T16:57:45.000Z | 2020-10-23T15:13:06.000Z | 11. Optical Flow/optical_flow.py | farhan0syakir/OpenCv-tutorial | b3d78f3567f4ea61b8955190f51097b6ceb4b318 | [
"MIT"
] | 18 | 2020-09-21T13:01:37.000Z | 2020-10-15T19:42:28.000Z | import numpy as np
import cv2
cap = cv2.VideoCapture('motion.avi')
ret, frame = cap.read()
gs_im0 = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
points_prev = cv2.goodFeaturesToTrack(gs_im0, 100, 0.03, 9.0, False)
while(cap.isOpened()):
ret, frame = cap.read()
gs_im1 = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)... | 25.642857 | 88 | 0.650418 | 110 | 718 | 4.136364 | 0.5 | 0.043956 | 0.048352 | 0.065934 | 0.215385 | 0.140659 | 0 | 0 | 0 | 0 | 0 | 0.076257 | 0.196379 | 718 | 28 | 89 | 25.642857 | 0.712305 | 0.018106 | 0 | 0.1 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0.005682 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9a00c334939540391cc64f13f7f530cabcf615a | 7,546 | py | Python | unfold/transactions/views.py | wesny/unfold | 6594054f7408ac142fc6e902093b6fc8cbfda94e | [
"MIT"
] | null | null | null | unfold/transactions/views.py | wesny/unfold | 6594054f7408ac142fc6e902093b6fc8cbfda94e | [
"MIT"
] | null | null | null | unfold/transactions/views.py | wesny/unfold | 6594054f7408ac142fc6e902093b6fc8cbfda94e | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.views import View
from django.views.generic import ListView
from django.utils.http import is_safe_url
from django.contrib import messages
from rest_framework import status
from django.core.exceptions import ObjectDoesNotExist
from django.shortcuts im... | 39.507853 | 111 | 0.658362 | 847 | 7,546 | 5.710744 | 0.198347 | 0.040934 | 0.022328 | 0.021708 | 0.307215 | 0.273723 | 0.219764 | 0.206533 | 0.206533 | 0.206533 | 0 | 0.000528 | 0.247283 | 7,546 | 190 | 112 | 39.715789 | 0.851056 | 0.008216 | 0 | 0.311377 | 0 | 0 | 0.080615 | 0.014037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065868 | false | 0 | 0.137725 | 0.023952 | 0.419162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9a1965586fb4160c10932687996645bcd809a1c | 1,843 | py | Python | interviewbit/Programming/Arrays/Rotate Matrix/solution.py | pablotrinidad/competitive-programming | de16d007ca276330cd0a92bd5b75ce4e9e75fb59 | [
"MIT"
] | null | null | null | interviewbit/Programming/Arrays/Rotate Matrix/solution.py | pablotrinidad/competitive-programming | de16d007ca276330cd0a92bd5b75ce4e9e75fb59 | [
"MIT"
] | null | null | null | interviewbit/Programming/Arrays/Rotate Matrix/solution.py | pablotrinidad/competitive-programming | de16d007ca276330cd0a92bd5b75ce4e9e75fb59 | [
"MIT"
] | null | null | null | """InterviewBit.
Programming > Arrays > Rotate Matrix.
"""
class Solution:
"""Solution."""
def rotate(self, A):
"""Rotate matrix."""
n = len(A)
for l in range(0, n // 2): # l = level
for o in range(0, n - (l * 2) - 1): # o = offset
tlr, tlc = l, l + o #... | 26.328571 | 119 | 0.429192 | 284 | 1,843 | 2.785211 | 0.271127 | 0.115044 | 0.125158 | 0.139064 | 0.39823 | 0.347661 | 0.347661 | 0.347661 | 0.108723 | 0 | 0 | 0.062447 | 0.365708 | 1,843 | 69 | 120 | 26.710145 | 0.6142 | 0.112859 | 0 | 0.127273 | 0 | 0 | 0.041563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0 | 0 | 0.054545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9a3856b6e71069b01f3d5066c6f323c68f21ce5 | 1,283 | py | Python | tests/dao_tests/test_stored_sample_dao.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 39 | 2017-10-13T19:16:27.000Z | 2021-09-24T16:58:21.000Z | tests/test_stored_sample_dao.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | tests/test_stored_sample_dao.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 19 | 2017-09-15T13:58:00.000Z | 2022-02-07T18:33:20.000Z | from rdr_service import clock
from rdr_service.dao.biobank_stored_sample_dao import BiobankStoredSampleDao
from rdr_service.dao.participant_dao import ParticipantDao
from rdr_service.model.biobank_stored_sample import BiobankStoredSample
from rdr_service.model.participant import Participant
from tests.helpers.unittest_... | 37.735294 | 92 | 0.694466 | 136 | 1,283 | 6.382353 | 0.411765 | 0.040323 | 0.080645 | 0.039171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016211 | 0.230709 | 1,283 | 33 | 93 | 38.878788 | 0.863222 | 0.063913 | 0 | 0 | 0 | 0 | 0.014226 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a9a3934109af932f3d04644fe8eb5b82a3bf255d | 2,769 | py | Python | server/pantryflask/__init__.py | jernaumorat/IntelligentPantry | 33d1ee867a5b6e0169fb44918069fbec5bfde259 | [
"MIT"
] | null | null | null | server/pantryflask/__init__.py | jernaumorat/IntelligentPantry | 33d1ee867a5b6e0169fb44918069fbec5bfde259 | [
"MIT"
] | null | null | null | server/pantryflask/__init__.py | jernaumorat/IntelligentPantry | 33d1ee867a5b6e0169fb44918069fbec5bfde259 | [
"MIT"
] | 1 | 2021-11-11T09:25:34.000Z | 2021-11-11T09:25:34.000Z | import socket, os, atexit
from flask import Flask, jsonify, request
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask.helpers import send_from_directory, url_for
from zeroconf import ServiceInfo, Zeroconf
from pantryflask.config import FlaskConfig
from pantryflask.auth import token_a... | 29.457447 | 91 | 0.669195 | 349 | 2,769 | 5.120344 | 0.332378 | 0.058758 | 0.031897 | 0.031897 | 0.118635 | 0.118635 | 0.078344 | 0.04141 | 0 | 0 | 0 | 0.007266 | 0.204767 | 2,769 | 94 | 92 | 29.457447 | 0.804269 | 0 | 0 | 0.082192 | 0 | 0 | 0.07509 | 0.019856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09589 | false | 0 | 0.178082 | 0.013699 | 0.383562 | 0.068493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d10162b60dc80362847021a74c900fd613e0ff7 | 39,370 | py | Python | lingua_franca/lang/parse_eu.py | OpenVoiceOS/ovos-lingua-franca | 392cc37cbfde3b8d6f11258c1e148e63ba2fb951 | [
"Apache-2.0"
] | null | null | null | lingua_franca/lang/parse_eu.py | OpenVoiceOS/ovos-lingua-franca | 392cc37cbfde3b8d6f11258c1e148e63ba2fb951 | [
"Apache-2.0"
] | 13 | 2022-01-26T03:43:46.000Z | 2022-03-25T17:00:18.000Z | lingua_franca/lang/parse_eu.py | OpenVoiceOS/ovos-lingua-franca | 392cc37cbfde3b8d6f11258c1e148e63ba2fb951 | [
"Apache-2.0"
] | 1 | 2022-01-18T21:11:44.000Z | 2022-01-18T21:11:44.000Z | #
# Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 36.218951 | 132 | 0.436297 | 3,755 | 39,370 | 4.526232 | 0.170173 | 0.015004 | 0.010591 | 0.011003 | 0.286303 | 0.232819 | 0.191045 | 0.14374 | 0.130854 | 0.119793 | 0 | 0.030273 | 0.46637 | 39,370 | 1,086 | 133 | 36.252302 | 0.778714 | 0.120726 | 0 | 0.446026 | 0 | 0 | 0.054884 | 0 | 0 | 0 | 0 | 0.003683 | 0 | 1 | 0.016607 | false | 0 | 0.007117 | 0.001186 | 0.065243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d1378b3e67d5a0964ccf48994e4da6105c0ae60 | 472 | py | Python | move_py_files.py | rune-l/coco-annotator | a7ae8004c5e1ca74e5bbc41d09edc5cfab117a14 | [
"MIT"
] | null | null | null | move_py_files.py | rune-l/coco-annotator | a7ae8004c5e1ca74e5bbc41d09edc5cfab117a14 | [
"MIT"
] | null | null | null | move_py_files.py | rune-l/coco-annotator | a7ae8004c5e1ca74e5bbc41d09edc5cfab117a14 | [
"MIT"
] | null | null | null | import os
import subprocess
test_set_path = '/Users/runelangergaard/Documents/SmartAnnotation/data/test_set'
test_imgs = os.listdir(test_set_path)
test_imgs
cwd_path = '/Users/runelangergaard'
os.chdir(cwd_path)
for img in test_imgs:
full_path = os.path.join(test_set_path, img)
subprocess.run([
"scp",... | 23.6 | 83 | 0.684322 | 69 | 472 | 4.478261 | 0.57971 | 0.090615 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036269 | 0.182203 | 472 | 19 | 84 | 24.842105 | 0.764249 | 0 | 0 | 0 | 0 | 0.0625 | 0.37155 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d13e8253f51474a77c77b964813f16a0d1c345f | 304 | py | Python | examples/apply.py | PictElm/grom | 52e28efad1edae447347dd396e80a665c283b05d | [
"Apache-2.0"
] | 1 | 2019-06-29T18:53:31.000Z | 2019-06-29T18:53:31.000Z | examples/apply.py | PictElm/grom | 52e28efad1edae447347dd396e80a665c283b05d | [
"Apache-2.0"
] | null | null | null | examples/apply.py | PictElm/grom | 52e28efad1edae447347dd396e80a665c283b05d | [
"Apache-2.0"
] | null | null | null | import random
import grom
grom.debug(False)
dirName = "dump\\"
inputName = "example.bmp"
outputName = "output.bmp"
g = grom.Genome(dirName + inputName, partition=[
('head', 0x76),
('raw')
])
print(g)
print(g.partition)
g.apply(lambda x: 255 - x, ['raw'])
g(dirName + outputName, pause=False)
| 16 | 48 | 0.661184 | 41 | 304 | 4.902439 | 0.585366 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.157895 | 304 | 18 | 49 | 16.888889 | 0.761719 | 0 | 0 | 0 | 0 | 0 | 0.121711 | 0 | 0 | 0 | 0.013158 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d14a69daed26d53510912624929725162594aec | 3,351 | py | Python | statefun-sdk-python/statefun/statefun_builder.py | MartijnVisser/flink-statefun | 66b2fc5a178d916756428f65a197095fbb43f57d | [
"Apache-2.0"
] | null | null | null | statefun-sdk-python/statefun/statefun_builder.py | MartijnVisser/flink-statefun | 66b2fc5a178d916756428f65a197095fbb43f57d | [
"Apache-2.0"
] | 7 | 2022-02-24T17:20:28.000Z | 2022-03-25T13:18:44.000Z | statefun-sdk-python/statefun/statefun_builder.py | MartijnVisser/flink-statefun | 66b2fc5a178d916756428f65a197095fbb43f57d | [
"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... | 39.423529 | 118 | 0.640107 | 393 | 3,351 | 5.361323 | 0.394402 | 0.036545 | 0.01851 | 0.0299 | 0.050309 | 0.032273 | 0.032273 | 0 | 0 | 0 | 0 | 0.001959 | 0.238436 | 3,351 | 84 | 119 | 39.892857 | 0.823668 | 0.349448 | 0 | 0.047619 | 0 | 0.02381 | 0.129455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.02381 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d17091c2b65264aa06f866332b484a8ae11e68d | 2,195 | py | Python | Solutions/236.py | ruppysuppy/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 70 | 2021-03-18T05:22:40.000Z | 2022-03-30T05:36:50.000Z | Solutions/236.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | null | null | null | Solutions/236.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 30 | 2021-03-18T05:22:43.000Z | 2022-03-17T10:25:18.000Z | """
Problem:
You are given a list of N points (x1, y1), (x2, y2), ..., (xN, yN) representing a
polygon. You can assume these points are given in order; that is, you can construct the
polygon by connecting point 1 to point 2, point 2 to point 3, and so on, finally
looping around to connect point N to point 1.
Determin... | 29.662162 | 87 | 0.596811 | 348 | 2,195 | 3.706897 | 0.333333 | 0.069767 | 0.027907 | 0.046512 | 0.271318 | 0.271318 | 0.271318 | 0.24186 | 0.24186 | 0.24186 | 0 | 0.042335 | 0.289749 | 2,195 | 73 | 88 | 30.068493 | 0.785119 | 0.384055 | 0 | 0.5 | 0 | 0 | 0.00626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.138889 | 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 |
8d19a458c0aeddafe12f42faf41b63a52a85ae7f | 2,546 | py | Python | Oblig3/test_benchmark.py | fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing | 4d3b2ed56b56e016413ae1544e19ad2a2c0ef047 | [
"MIT"
] | null | null | null | Oblig3/test_benchmark.py | fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing | 4d3b2ed56b56e016413ae1544e19ad2a2c0ef047 | [
"MIT"
] | null | null | null | Oblig3/test_benchmark.py | fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing | 4d3b2ed56b56e016413ae1544e19ad2a2c0ef047 | [
"MIT"
] | null | null | null | # Author: Fabio Rodrigues Pereira
# E-mail: fabior@uio.no
# Author: Per Morten Halvorsen
# E-mail: pmhalvor@uio.no
# Author: Eivind Grønlie Guren
# E-mail: eivindgg@ifi.uio.no
try:
from Oblig3.packages.preprocess import load_raw_data, filter_raw_data, pad
from Oblig3.packages.preprocess import OurCONLLUData... | 24.480769 | 78 | 0.749411 | 350 | 2,546 | 5.254286 | 0.391429 | 0.052202 | 0.052202 | 0.039152 | 0.23056 | 0.174008 | 0.112017 | 0.112017 | 0.112017 | 0.112017 | 0 | 0.025593 | 0.155931 | 2,546 | 103 | 79 | 24.718447 | 0.830154 | 0.180283 | 0 | 0.115942 | 0 | 0 | 0.051232 | 0.033349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.144928 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d1acd1c8212f19c55510b4dd8c3544bf2548519 | 11,176 | py | Python | test/test_box/test_box_storage.py | cmc333333/parsons | 50804a3627117797570f1e9233c9bbad583f7831 | [
"Apache-2.0"
] | null | null | null | test/test_box/test_box_storage.py | cmc333333/parsons | 50804a3627117797570f1e9233c9bbad583f7831 | [
"Apache-2.0"
] | 2 | 2021-11-24T19:39:57.000Z | 2022-01-03T23:03:35.000Z | test/test_box/test_box_storage.py | cmc333333/parsons | 50804a3627117797570f1e9233c9bbad583f7831 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import random
import string
import unittest
import warnings
from boxsdk.exception import BoxAPIException, BoxOAuthException
from parsons.box import Box
from parsons.etl import Table
"""Prior to running, you should ensure that the relevant environment
variables have been set, e.g. via
# Note... | 42.656489 | 97 | 0.642895 | 1,399 | 11,176 | 4.8599 | 0.154396 | 0.041183 | 0.049419 | 0.042359 | 0.621121 | 0.569348 | 0.548022 | 0.490955 | 0.460656 | 0.434917 | 0 | 0.022583 | 0.2551 | 11,176 | 261 | 98 | 42.819923 | 0.794114 | 0.113636 | 0 | 0.411043 | 0 | 0 | 0.182209 | 0.06863 | 0 | 0 | 0 | 0 | 0.184049 | 1 | 0.055215 | false | 0 | 0.055215 | 0 | 0.122699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d1b66ad840bf7a208b29ea852c07fe8f18d11de | 3,961 | py | Python | Task2.py | sahil7pathak/Image_Segmentation_and_Point_Detection | 7cf00f1c0a10ee0384eba7cbbb17f0779642cfa3 | [
"MIT"
] | null | null | null | Task2.py | sahil7pathak/Image_Segmentation_and_Point_Detection | 7cf00f1c0a10ee0384eba7cbbb17f0779642cfa3 | [
"MIT"
] | null | null | null | Task2.py | sahil7pathak/Image_Segmentation_and_Point_Detection | 7cf00f1c0a10ee0384eba7cbbb17f0779642cfa3 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import cv2
'''Erosion Method'''
def erosion(image, kernel):
img_height = image.shape[0]
img_width = image.shape[1]
kernel_height = kernel.shape[0]
kernel_width = kernel.shape[1]
h = kernel_height//2
w = kernel_width//2
... | 30.705426 | 85 | 0.578642 | 621 | 3,961 | 3.613527 | 0.227053 | 0.040553 | 0.026738 | 0.022282 | 0.341355 | 0.335562 | 0.335562 | 0.285205 | 0.285205 | 0.285205 | 0 | 0.092246 | 0.244635 | 3,961 | 128 | 86 | 30.945313 | 0.657754 | 0 | 0 | 0.326923 | 0 | 0 | 0.127811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028846 | false | 0 | 0.028846 | 0 | 0.086538 | 0.201923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d213f69d083136ed499e8028606ef1e8d49f01e | 2,495 | py | Python | covid_phylo/src/analysis.py | mrubio-chavarria/covidMonitor | 8d59b17dbff46a781527de181f22b115565e5c2d | [
"MIT"
] | 1 | 2021-03-22T17:05:52.000Z | 2021-03-22T17:05:52.000Z | covid_phylo/src/analysis.py | mrubio-chavarria/covidMonitor | 8d59b17dbff46a781527de181f22b115565e5c2d | [
"MIT"
] | 6 | 2020-06-06T01:51:21.000Z | 2022-01-13T02:39:02.000Z | covid_phylo/src/analysis.py | mrubio-chavarria/covidMonitor | 8d59b17dbff46a781527de181f22b115565e5c2d | [
"MIT"
] | null | null | null | import align_tools as at
import matplotlib.pyplot as plt
import numpy as np
from collections import Counter
def h(x):
if x>0:
return 1
else:
return 0
def get_counter(arr, lower_sat=None, upper_sat=None):
result = {}
for val in arr:
if (upper_sat is None or val < upper_sat) and ... | 34.178082 | 161 | 0.658116 | 428 | 2,495 | 3.600467 | 0.266355 | 0.049968 | 0.05451 | 0.038936 | 0.26087 | 0.193381 | 0.089552 | 0.044127 | 0 | 0 | 0 | 0.029515 | 0.198798 | 2,495 | 73 | 162 | 34.178082 | 0.741371 | 0 | 0 | 0.105263 | 0 | 0.035088 | 0.159856 | 0.035256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.070175 | 0 | 0.210526 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d21d5ac301b7c2c83e332f0f0cea5a96ae6d81d | 1,266 | py | Python | pygears_vivado/vivmod.py | Anari-AI/pygears-vivado | a9d928d9914b479739ff8fc1e208813292c4b711 | [
"MIT"
] | 1 | 2022-03-19T02:11:12.000Z | 2022-03-19T02:11:12.000Z | pygears_vivado/vivmod.py | Anari-AI/pygears-vivado | a9d928d9914b479739ff8fc1e208813292c4b711 | [
"MIT"
] | null | null | null | pygears_vivado/vivmod.py | Anari-AI/pygears-vivado | a9d928d9914b479739ff8fc1e208813292c4b711 | [
"MIT"
] | 1 | 2021-06-01T13:21:12.000Z | 2021-06-01T13:21:12.000Z | import os
from pygears.hdl.sv import SVModuleInst
from .ip_resolver import IPResolver
class SVVivModuleInst(SVModuleInst):
def __init__(self, node, lang=None):
resolver = IPResolver(node)
super().__init__(node, resolver.lang, resolver)
@property
def is_generated(self):
return True... | 30.878049 | 59 | 0.553712 | 162 | 1,266 | 4.080247 | 0.351852 | 0.090772 | 0.06354 | 0.099849 | 0.239032 | 0.239032 | 0.239032 | 0.239032 | 0.239032 | 0.239032 | 0 | 0 | 0.316746 | 1,266 | 40 | 60 | 31.65 | 0.764162 | 0 | 0 | 0.121212 | 0 | 0 | 0.127172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.090909 | 0.060606 | 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 |
8d24383aba0b77760774f695ed82a4ade6ace738 | 1,841 | py | Python | commodore/inventory/render.py | projectsyn/commodore | afd924a2aa8abb79cd6a8970ff225756469dd2b3 | [
"BSD-3-Clause"
] | 39 | 2019-12-17T13:40:19.000Z | 2021-12-31T08:22:52.000Z | commodore/inventory/render.py | projectsyn/commodore | afd924a2aa8abb79cd6a8970ff225756469dd2b3 | [
"BSD-3-Clause"
] | 161 | 2020-02-14T18:32:49.000Z | 2022-03-25T09:23:35.000Z | commodore/inventory/render.py | projectsyn/commodore | afd924a2aa8abb79cd6a8970ff225756469dd2b3 | [
"BSD-3-Clause"
] | 12 | 2019-12-18T15:43:09.000Z | 2021-06-28T11:51:59.000Z | import shutil
import tempfile
from pathlib import Path
from typing import Dict
import click
from commodore.config import Config
from .parameters import ClassNotFound, InventoryFactory, InventoryFacts
def _cleanup_work_dir(cfg: Config, work_dir: Path):
if not cfg.debug:
# Clean up work dir if we're not... | 30.683333 | 86 | 0.674633 | 227 | 1,841 | 5.273128 | 0.356828 | 0.070175 | 0.046784 | 0.056809 | 0.070175 | 0.070175 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0.233569 | 1,841 | 59 | 87 | 31.20339 | 0.848335 | 0.0239 | 0 | 0.068182 | 0 | 0 | 0.22507 | 0.110306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.159091 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d29d50d0c950b859290e95b7cb057e02fb60ee8 | 4,045 | py | Python | profit/models/torch/vae.py | ayushkarnawat/profit | f3c4d601078b52513af6832c3faf75ddafc59ac5 | [
"MIT"
] | null | null | null | profit/models/torch/vae.py | ayushkarnawat/profit | f3c4d601078b52513af6832c3faf75ddafc59ac5 | [
"MIT"
] | 1 | 2021-09-15T13:13:12.000Z | 2021-09-15T13:13:12.000Z | profit/models/torch/vae.py | ayushkarnawat/profit | f3c4d601078b52513af6832c3faf75ddafc59ac5 | [
"MIT"
] | null | null | null | """Variational autoencoder model."""
from typing import Tuple
import torch
from torch import nn
from torch.nn import functional as F
class BaseVAE(nn.Module):
"""Base class for creating variational autoencoders (VAEs).
The module is designed to connect user-specified encoder/decoder
layers to form a la... | 36.116071 | 90 | 0.634611 | 536 | 4,045 | 4.701493 | 0.365672 | 0.074206 | 0.044444 | 0.061111 | 0.109127 | 0.109127 | 0.086905 | 0.086905 | 0.058333 | 0.04127 | 0 | 0.01994 | 0.256119 | 4,045 | 111 | 91 | 36.441441 | 0.817547 | 0.433622 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.088889 | 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 |
8d2ae38a47c725cb399a9f327008d51a718980eb | 2,037 | py | Python | backend/export/views.py | dmryutov/otus-python-0319-final | de07f36ee4bbd57dbfb16defaf762b08ec41fb0e | [
"Apache-2.0"
] | null | null | null | backend/export/views.py | dmryutov/otus-python-0319-final | de07f36ee4bbd57dbfb16defaf762b08ec41fb0e | [
"Apache-2.0"
] | 6 | 2020-06-05T23:05:14.000Z | 2022-02-10T10:42:31.000Z | backend/export/views.py | dmryutov/otus-python-0319-final | de07f36ee4bbd57dbfb16defaf762b08ec41fb0e | [
"Apache-2.0"
] | null | null | null | from django.http.response import HttpResponse
from rest_framework import serializers, viewsets
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from .excel import Excel
XLSX_MIME = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
class ExportVie... | 32.333333 | 92 | 0.650957 | 220 | 2,037 | 5.9 | 0.359091 | 0.067797 | 0.064715 | 0.041602 | 0.297381 | 0.234206 | 0.143297 | 0.143297 | 0.143297 | 0.143297 | 0 | 0.005175 | 0.241041 | 2,037 | 62 | 93 | 32.854839 | 0.834411 | 0.174276 | 0 | 0.266667 | 0 | 0 | 0.134961 | 0.041774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.166667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d2bec83c642f547afb331d447ae8ff19041fd5a | 1,111 | py | Python | src/tests/tests_get_formatted_items.py | kazqvaizer/checklistbot | f715280fbe7035bc2ce4f69cbf95595d9fe3a225 | [
"MIT"
] | 5 | 2020-10-06T13:42:45.000Z | 2021-12-21T07:35:08.000Z | src/tests/tests_get_formatted_items.py | kazqvaizer/checklistbot | f715280fbe7035bc2ce4f69cbf95595d9fe3a225 | [
"MIT"
] | null | null | null | src/tests/tests_get_formatted_items.py | kazqvaizer/checklistbot | f715280fbe7035bc2ce4f69cbf95595d9fe3a225 | [
"MIT"
] | null | null | null | import pytest
from models import TodoItem
pytestmark = [
pytest.mark.usefixtures("use_db"),
]
@pytest.fixture
def chat(factory):
return factory.chat()
@pytest.fixture
def items(factory, chat):
return [
factory.item(chat=chat, text="Hello"),
factory.item(chat=chat, text="Nice!"),
]
... | 20.574074 | 74 | 0.640864 | 157 | 1,111 | 4.382166 | 0.318471 | 0.040698 | 0.093023 | 0.122093 | 0.388081 | 0.321221 | 0.321221 | 0.321221 | 0.321221 | 0.234012 | 0 | 0.026786 | 0.193519 | 1,111 | 53 | 75 | 20.962264 | 0.741071 | 0 | 0 | 0.294118 | 0 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.176471 | false | 0 | 0.058824 | 0.058824 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d2fec927240532eb03988da6b6277edf3bec73d | 2,859 | py | Python | cart/tests/test_views.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | cart/tests/test_views.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | cart/tests/test_views.py | mohsenamoon1160417237/ECommerce-app | 4cca492214b04b56f625aef2a2979956a8256710 | [
"MIT"
] | null | null | null | from django.test import TestCase
from shop.models import Product
from django.contrib.auth.models import User
from coupons.forms import CouponForm
class CartAddViewTest(TestCase):
def setUp(self):
self.data = {"quantity" : 2,
"update" : False}
self.product = Pro... | 28.878788 | 77 | 0.550892 | 288 | 2,859 | 5.333333 | 0.256944 | 0.041016 | 0.070313 | 0.113281 | 0.712891 | 0.690755 | 0.608073 | 0.608073 | 0.5625 | 0.5625 | 0 | 0.02139 | 0.345925 | 2,859 | 98 | 78 | 29.173469 | 0.8 | 0 | 0 | 0.5 | 0 | 0 | 0.070627 | 0.007606 | 0 | 0 | 0 | 0 | 0.160714 | 1 | 0.160714 | false | 0.017857 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d341997147380f82b39848b173c8f836285f331 | 2,134 | py | Python | tests/conftest.py | gpontesss/botus_receptus | bf29f5f70a2e7ae3548a44287c636515f78e7e77 | [
"BSD-3-Clause"
] | 3 | 2019-04-15T01:45:46.000Z | 2020-04-07T13:31:19.000Z | tests/conftest.py | gpontesss/botus_receptus | bf29f5f70a2e7ae3548a44287c636515f78e7e77 | [
"BSD-3-Clause"
] | 244 | 2020-04-20T22:10:23.000Z | 2022-03-31T23:03:48.000Z | tests/conftest.py | gpontesss/botus_receptus | bf29f5f70a2e7ae3548a44287c636515f78e7e77 | [
"BSD-3-Clause"
] | 1 | 2021-11-08T08:52:32.000Z | 2021-11-08T08:52:32.000Z | from __future__ import annotations
import asyncio
from typing import Any
import asynctest.mock # type: ignore
import pytest # type: ignore
import pytest_mock._util # type: ignore
pytest_mock._util._mock_module = asynctest.mock
class EventLoopClockAdvancer:
"""
A helper object that when called will advan... | 28.837838 | 79 | 0.680412 | 281 | 2,134 | 5.014235 | 0.395018 | 0.038325 | 0.034067 | 0.040454 | 0.082328 | 0.048261 | 0 | 0 | 0 | 0 | 0 | 0.003102 | 0.244611 | 2,134 | 73 | 80 | 29.232877 | 0.870968 | 0.266167 | 0 | 0.147059 | 0 | 0 | 0.060305 | 0.034351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.029412 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d352ba96be56207cce46e2dc458765a09de6f97 | 1,247 | py | Python | Shark_Training/pyimagesearch/preprocessing/meanpreprocessor.py | crpurcell/MQ_DPI_Release | 97444513e8b8d48ec91ff8a43b9dfaed0da029f9 | [
"MIT"
] | null | null | null | Shark_Training/pyimagesearch/preprocessing/meanpreprocessor.py | crpurcell/MQ_DPI_Release | 97444513e8b8d48ec91ff8a43b9dfaed0da029f9 | [
"MIT"
] | null | null | null | Shark_Training/pyimagesearch/preprocessing/meanpreprocessor.py | crpurcell/MQ_DPI_Release | 97444513e8b8d48ec91ff8a43b9dfaed0da029f9 | [
"MIT"
] | null | null | null | #=============================================================================#
# #
# MODIFIED: 15-Jan-2019 by C. Purcell #
# #
... | 35.628571 | 79 | 0.36648 | 103 | 1,247 | 4.398058 | 0.436893 | 0.059603 | 0.06181 | 0.083885 | 0.11479 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019157 | 0.372093 | 1,247 | 34 | 80 | 36.676471 | 0.559387 | 0.481957 | 0 | 0.210526 | 0 | 0 | 0.022187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 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 |
8d36012ec39c8b5de0335c08778adaf22f20af3c | 985 | py | Python | aiida_quantumespresso/parsers/constants.py | unkcpz/aiida-quantumespresso | fbac0993bb8b6cdeba85717453debcf0ab062b5a | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/constants.py | unkcpz/aiida-quantumespresso | fbac0993bb8b6cdeba85717453debcf0ab062b5a | [
"MIT"
] | null | null | null | aiida_quantumespresso/parsers/constants.py | unkcpz/aiida-quantumespresso | fbac0993bb8b6cdeba85717453debcf0ab062b5a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Physical or mathematical constants.
Since every code has its own conversion units, this module defines what
QE understands as for an eV or other quantities.
Whenever possible, we try to use the constants defined in
:py:mod:aiida.common.constants:, but if some constants are slightly differen... | 31.774194 | 77 | 0.700508 | 149 | 985 | 4.463087 | 0.597315 | 0.03609 | 0.090226 | 0.081203 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050129 | 0.210152 | 985 | 30 | 78 | 32.833333 | 0.804627 | 0.783756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d3f8941dd6434ce1537415533cd51f289916f52 | 5,554 | py | Python | configstruct/config_struct.py | bradrf/configstruct | aeea8fbba1e2daa0a0c38eeb9622d1716c0bb3e8 | [
"MIT"
] | null | null | null | configstruct/config_struct.py | bradrf/configstruct | aeea8fbba1e2daa0a0c38eeb9622d1716c0bb3e8 | [
"MIT"
] | 16 | 2016-10-13T09:53:46.000Z | 2022-03-24T15:04:51.000Z | configstruct/config_struct.py | bradrf/configstruct | aeea8fbba1e2daa0a0c38eeb9622d1716c0bb3e8 | [
"MIT"
] | null | null | null | import os
import sys
import logging
from configparser import ConfigParser
from .open_struct import OpenStruct
from .section_struct import SectionStruct
# TODO: use file lock when read/write
def choose_theirs(section, option, mine, theirs):
'''Always prefer values for keys from file.'''
return theirs
def c... | 40.540146 | 100 | 0.659705 | 707 | 5,554 | 4.975955 | 0.292786 | 0.039795 | 0.050028 | 0.017055 | 0.088403 | 0.027288 | 0.027288 | 0.027288 | 0.027288 | 0 | 0 | 0.001192 | 0.245049 | 5,554 | 136 | 101 | 40.838235 | 0.837825 | 0.308786 | 0 | 0 | 0 | 0.012658 | 0.062931 | 0 | 0 | 0 | 0 | 0.007353 | 0 | 1 | 0.126582 | false | 0 | 0.075949 | 0 | 0.303797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d4042ed9b0586457ce903d2cc6db6a880c03485 | 10,327 | py | Python | test_apps/python_app/tests/compiler_test.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | null | null | null | test_apps/python_app/tests/compiler_test.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | 127 | 2019-11-23T17:09:35.000Z | 2021-09-02T11:06:20.000Z | test_apps/python_app/tests/compiler_test.py | Origen-SDK/o2 | 5b0f9a6d113ddebc73c7ee224931e8b2d0301794 | [
"MIT"
] | null | null | null | import origen # pylint: disable=import-error
import pytest, pathlib, os, stat, abc
from os import access, W_OK, X_OK, R_OK
from tests.shared import clean_falcon, clean_compiler, tmp_dir
def user_compiler():
''' End users should access the compiler via ``origen.app.compiler``. '''
return origen.app.co... | 39.117424 | 97 | 0.637165 | 1,151 | 10,327 | 5.454387 | 0.150304 | 0.09366 | 0.06021 | 0.03345 | 0.554317 | 0.438038 | 0.340714 | 0.255336 | 0.190188 | 0.17187 | 0 | 0.003042 | 0.267745 | 10,327 | 263 | 98 | 39.26616 | 0.827162 | 0.078629 | 0 | 0.31746 | 0 | 0 | 0.056672 | 0.008786 | 0 | 0 | 0 | 0 | 0.275132 | 1 | 0.174603 | false | 0 | 0.021164 | 0.063492 | 0.306878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d42c2702dd5a391e27f8a389f8a934778ba0c95 | 999 | py | Python | api/api.py | devSessions/crvi | 1ecc68d6c968294bcc5ceea747604ee237f6080c | [
"MIT"
] | 25 | 2017-12-31T06:51:54.000Z | 2021-11-17T11:29:30.000Z | api/api.py | amittomar-1/crvi | 1ecc68d6c968294bcc5ceea747604ee237f6080c | [
"MIT"
] | 23 | 2020-01-28T21:34:12.000Z | 2022-03-11T23:11:54.000Z | api/api.py | amittomar-1/crvi | 1ecc68d6c968294bcc5ceea747604ee237f6080c | [
"MIT"
] | 11 | 2018-01-04T12:30:33.000Z | 2020-12-01T18:08:59.000Z | from flask import Flask, jsonify, request
import predict
import socket
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def home():
"""Renders the home page."""
return (
"Welcome Guest!!!"
)
#to spedicy route after url
@app.route('/api', methods=['POST'])
def get_tasks():
#get url fro... | 19.211538 | 51 | 0.58959 | 120 | 999 | 4.791667 | 0.508333 | 0.041739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014845 | 0.258258 | 999 | 52 | 52 | 19.211538 | 0.761134 | 0.383383 | 0 | 0 | 0 | 0 | 0.076142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d4492744de35276bcea0bf1ccb409c9aa59295e | 418 | py | Python | Special_Viewer.py | Akivamelka/unsupervised_mid_semester | 5393185d7b0327bbb7cd4b3700d4d00704a5623f | [
"MIT"
] | null | null | null | Special_Viewer.py | Akivamelka/unsupervised_mid_semester | 5393185d7b0327bbb7cd4b3700d4d00704a5623f | [
"MIT"
] | null | null | null | Special_Viewer.py | Akivamelka/unsupervised_mid_semester | 5393185d7b0327bbb7cd4b3700d4d00704a5623f | [
"MIT"
] | null | null | null | from Dimension_Reduction import Viewer
import pandas as pd
view_tool = Viewer()
reduc = 'pca'
suffix = '5'
data_plot = pd.read_csv(f"{reduc}_dim2_{suffix}.csv", delimiter=",")
models = ['km', 'fuzz', 'gmm', 'dbsc', 'hier', 'spec' ]
for model in models:
print(model)
labels = pd.read_csv(f"labels_{mo... | 32.153846 | 72 | 0.669856 | 60 | 418 | 4.45 | 0.583333 | 0.059925 | 0.067416 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.162679 | 418 | 13 | 73 | 32.153846 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.194103 | 0.127764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d4a0164b56629bd4e65dd24b9c1a1fba70a5ea1 | 810 | py | Python | mac/redRMacUpdater.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | 1 | 2019-04-15T13:50:30.000Z | 2019-04-15T13:50:30.000Z | mac/redRMacUpdater.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | null | null | null | mac/redRMacUpdater.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | 1 | 2016-01-21T23:00:21.000Z | 2016-01-21T23:00:21.000Z | import tarfile, sys,os
from PyQt4.QtCore import *
from PyQt4.QtGui import *
app = QApplication(sys.argv)
try:
zfile = tarfile.open(sys.argv[1], "r:gz" )
zfile.extractall(sys.argv[2])
zfile.close()
mb = QMessageBox('Red-R Updated', "Red-R has been updated'",
QMessageBox.Informa... | 30 | 105 | 0.646914 | 104 | 810 | 5.009615 | 0.461538 | 0.053743 | 0.03071 | 0.065259 | 0.441459 | 0.349328 | 0.349328 | 0.349328 | 0.349328 | 0.349328 | 0 | 0.011024 | 0.216049 | 810 | 27 | 106 | 30 | 0.809449 | 0.012346 | 0 | 0.190476 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d4be9a3c0385e4ebdfd3712a699e128c38acafc | 9,346 | py | Python | darknet_websocket_demo.py | wutianze/darknet-superb-service | fdee5a932c8a3898701c1e302e4642fbff853630 | [
"MIT"
] | null | null | null | darknet_websocket_demo.py | wutianze/darknet-superb-service | fdee5a932c8a3898701c1e302e4642fbff853630 | [
"MIT"
] | null | null | null | darknet_websocket_demo.py | wutianze/darknet-superb-service | fdee5a932c8a3898701c1e302e4642fbff853630 | [
"MIT"
] | null | null | null | from ctypes import *
#from multiprocessing import Process, Queue
import queue
import time
from threading import Lock,Thread
from fastapi import FastAPI
from fastapi import Request
from fastapi import WebSocket, WebSocketDisconnect
import uvicorn
#from yolo_service import *
import socket
import random
from typing import... | 35.003745 | 180 | 0.652044 | 1,201 | 9,346 | 4.860117 | 0.227311 | 0.023128 | 0.027411 | 0.029981 | 0.25287 | 0.201302 | 0.136029 | 0.136029 | 0.112387 | 0.112387 | 0 | 0.017161 | 0.24556 | 9,346 | 266 | 181 | 35.135338 | 0.810665 | 0.067516 | 0 | 0.172249 | 0 | 0 | 0.050847 | 0.005765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057416 | false | 0.004785 | 0.114833 | 0 | 0.220096 | 0.023923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d4d42f7498f1a4af52daeaede069016fb2ef667 | 2,389 | py | Python | tests/unit/test_sherman_morrison.py | willwheelera/pyqmc | 0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb | [
"MIT"
] | 44 | 2019-06-04T13:53:26.000Z | 2022-03-31T08:36:30.000Z | tests/unit/test_sherman_morrison.py | willwheelera/pyqmc | 0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb | [
"MIT"
] | 121 | 2019-05-13T14:05:20.000Z | 2022-02-16T19:24:37.000Z | tests/unit/test_sherman_morrison.py | willwheelera/pyqmc | 0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb | [
"MIT"
] | 35 | 2019-04-26T21:57:50.000Z | 2022-02-14T07:56:34.000Z | import numpy as np
from pyqmc.slater import sherman_morrison_row
from pyqmc.slater import sherman_morrison_ms
def test_sherman_morrison():
ratio_err, inv_err = run_sherman_morrison()
assert ratio_err < 1e-13, f"ratios don't match {ratio_err}"
assert inv_err < 1e-13, f"inverses don't match {inv_err}"
... | 30.628205 | 78 | 0.631226 | 385 | 2,389 | 3.774026 | 0.283117 | 0.045423 | 0.0468 | 0.022023 | 0.326222 | 0.246387 | 0.196834 | 0.11287 | 0.11287 | 0.11287 | 0 | 0.019282 | 0.218501 | 2,389 | 77 | 79 | 31.025974 | 0.758972 | 0.055672 | 0 | 0.181818 | 0 | 0 | 0.079929 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.072727 | false | 0 | 0.054545 | 0 | 0.181818 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d4df1f93edc3b8bb4e583e03cb8610d1cc0439f | 1,543 | py | Python | script/licel-plotter.py | FedeVerstraeten/smn-lidar-controller | 7850fd48702d5f2e00d07b499812b3b2fb2b7676 | [
"MIT"
] | null | null | null | script/licel-plotter.py | FedeVerstraeten/smn-lidar-controller | 7850fd48702d5f2e00d07b499812b3b2fb2b7676 | [
"MIT"
] | 1 | 2021-10-05T03:53:55.000Z | 2021-10-05T03:53:55.000Z | script/licel-plotter.py | FedeVerstraeten/smnar-lidar-controller | 7850fd48702d5f2e00d07b499812b3b2fb2b7676 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import socket
import time
import numpy as np
import matplotlib.pyplot as plt
HOST = '10.49.234.234'
PORT = 2055
def command_to_licel(licelcommand):
data=None
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
s.sendall(bytes(licelcommand+... | 24.109375 | 70 | 0.644848 | 226 | 1,543 | 4.225664 | 0.460177 | 0.056545 | 0.087958 | 0.109948 | 0.117277 | 0.117277 | 0 | 0 | 0 | 0 | 0 | 0.032125 | 0.213221 | 1,543 | 63 | 71 | 24.492063 | 0.75453 | 0.121841 | 0 | 0.093023 | 0 | 0 | 0.112435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.116279 | 0 | 0.162791 | 0.116279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d500786de7e53c7c13f50132e8ecbc760d095db | 13,860 | py | Python | horizon/openstack_dashboard/dashboards/identity/account/tables.py | yianjiajia/openstack_horizon | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | [
"Apache-2.0"
] | null | null | null | horizon/openstack_dashboard/dashboards/identity/account/tables.py | yianjiajia/openstack_horizon | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | [
"Apache-2.0"
] | null | null | null | horizon/openstack_dashboard/dashboards/identity/account/tables.py | yianjiajia/openstack_horizon | 9e36a4c3648ef29d0df6912d990465f51d6124a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 37.258065 | 165 | 0.581818 | 1,427 | 13,860 | 5.466713 | 0.189909 | 0.032432 | 0.023074 | 0.03115 | 0.530573 | 0.477118 | 0.449942 | 0.429689 | 0.424048 | 0.407896 | 0 | 0.000845 | 0.3171 | 13,860 | 371 | 166 | 37.358491 | 0.823349 | 0.090837 | 0 | 0.501754 | 0 | 0.003509 | 0.153008 | 0.030474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.021053 | 0.035088 | 0.021053 | 0.435088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5291b6a1ce7e03aab2c5b10e8c178dc0212bb3 | 2,278 | py | Python | 3Sum.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | 3Sum.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | 3Sum.py | Muthu2093/Algorithms-practice | 999434103a9098a4361104fd39cba5913860fa9d | [
"MIT"
] | null | null | null | ## Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
## Note:
## The solution set must not contain duplicate triplets.
## Example:
## Given array nums = [-1, 0, 1, 2, -1, -4],
## A solution set is:
## [
## ... | 27.780488 | 164 | 0.368306 | 293 | 2,278 | 2.863481 | 0.242321 | 0.047676 | 0.053635 | 0.035757 | 0.125149 | 0.060787 | 0.042908 | 0.042908 | 0 | 0 | 0 | 0.037133 | 0.491659 | 2,278 | 81 | 165 | 28.123457 | 0.687392 | 0.178666 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5338ad6760bdfbd08440494b1ea9d0eab1dc53 | 1,809 | py | Python | developers_chamber/scripts/gitlab.py | dstlmrk/developers-chamber | 93f928048f57c049f1c85446d18078b73376462a | [
"MIT"
] | 8 | 2019-08-23T15:46:30.000Z | 2021-03-23T20:12:21.000Z | developers_chamber/scripts/gitlab.py | dstlmrk/developers-chamber | 93f928048f57c049f1c85446d18078b73376462a | [
"MIT"
] | 14 | 2019-09-17T20:24:18.000Z | 2021-05-18T21:10:12.000Z | developers_chamber/scripts/gitlab.py | dstlmrk/developers-chamber | 93f928048f57c049f1c85446d18078b73376462a | [
"MIT"
] | 6 | 2019-08-23T15:46:21.000Z | 2022-02-18T11:01:18.000Z | import os
import click
from developers_chamber.git_utils import get_current_branch_name
from developers_chamber.gitlab_utils import \
create_merge_request as create_merge_request_func
from developers_chamber.scripts import cli
DEFAULT_API_URL = os.environ.get('GITLAB_API_URL', 'https://gitlab.com/api/v4')
DEFAUL... | 38.489362 | 116 | 0.726368 | 244 | 1,809 | 5.147541 | 0.266393 | 0.038217 | 0.038217 | 0.057325 | 0.121815 | 0.078822 | 0 | 0 | 0 | 0 | 0 | 0.000657 | 0.159204 | 1,809 | 46 | 117 | 39.326087 | 0.825115 | 0.040907 | 0 | 0 | 0 | 0 | 0.266821 | 0.012181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5577a30127caeb2ef24f4e9b841abc050103d0 | 15,790 | py | Python | tests_pytest/state_machines/autoinstall/test_autoinstall_smbase.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | 5 | 2020-06-04T10:20:33.000Z | 2020-10-26T15:09:19.000Z | tests_pytest/state_machines/autoinstall/test_autoinstall_smbase.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | null | null | null | tests_pytest/state_machines/autoinstall/test_autoinstall_smbase.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 34.326087 | 82 | 0.664155 | 1,836 | 15,790 | 5.528322 | 0.198802 | 0.021675 | 0.024828 | 0.017734 | 0.573695 | 0.546207 | 0.512808 | 0.492414 | 0.46601 | 0.424039 | 0 | 0.013665 | 0.235275 | 15,790 | 459 | 83 | 34.400871 | 0.826915 | 0.228689 | 0 | 0.338645 | 0 | 0 | 0.103389 | 0.012816 | 0 | 0 | 0 | 0 | 0.199203 | 1 | 0.079681 | false | 0.015936 | 0.047809 | 0 | 0.159363 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5852ea5b1463bc9be5da885619fc756c5bd1fc | 4,329 | py | Python | personal/Ervin/Word2Vec_recommender.py | edervishaj/spotify-recsys-challenge | 4077201ac7e4ed9da433bd10a92c183614182437 | [
"Apache-2.0"
] | 3 | 2018-10-12T20:19:57.000Z | 2019-12-11T01:11:38.000Z | personal/Ervin/Word2Vec_recommender.py | kiminh/spotify-recsys-challenge | 5e7844a77ce3c26658400f161d2d74d682f30e69 | [
"Apache-2.0"
] | null | null | null | personal/Ervin/Word2Vec_recommender.py | kiminh/spotify-recsys-challenge | 5e7844a77ce3c26658400f161d2d74d682f30e69 | [
"Apache-2.0"
] | 4 | 2018-10-27T20:30:18.000Z | 2020-10-14T07:43:27.000Z | import time
import numpy as np
import scipy.sparse as sps
from gensim.models import Word2Vec
from tqdm import tqdm
from recommenders.recommender import Recommender
from utils.datareader import Datareader
from utils.evaluator import Evaluator
from utils.post_processing import eurm_to_recommendation_list
from recommender... | 37.973684 | 116 | 0.613075 | 570 | 4,329 | 4.52807 | 0.254386 | 0.05153 | 0.03797 | 0.037195 | 0.443627 | 0.430453 | 0.430453 | 0.376986 | 0.376986 | 0.376986 | 0 | 0.023053 | 0.258489 | 4,329 | 114 | 117 | 37.973684 | 0.780997 | 0.270501 | 0 | 0.129032 | 0 | 0 | 0.046228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.16129 | 0 | 0.241935 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5933b202fa0260d94c68bc7edbd14a32abb844 | 2,930 | py | Python | visualize.py | jcamstan3370/MachineLearningPerovskites | d7bc433bac349bf53473dc6d636954cae996b8d2 | [
"MIT"
] | 6 | 2020-05-09T17:18:00.000Z | 2021-09-22T09:37:40.000Z | visualize.py | jstanai/ml_perovskites | d7bc433bac349bf53473dc6d636954cae996b8d2 | [
"MIT"
] | null | null | null | visualize.py | jstanai/ml_perovskites | d7bc433bac349bf53473dc6d636954cae996b8d2 | [
"MIT"
] | 1 | 2021-03-24T04:21:31.000Z | 2021-03-24T04:21:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Jared
"""
import numpy as np
import pandas as pd
import myConfig
import matplotlib.pyplot as plt
from ast import literal_eval
from plotter import getTrendPlot1
from matplotlib.pyplot import figure
df = pd.read_csv(myConfig.extOutput)
dffExt = pd.read_csv(my... | 23.821138 | 72 | 0.531058 | 387 | 2,930 | 3.930233 | 0.364341 | 0.027613 | 0.03616 | 0.019724 | 0.359632 | 0.333333 | 0.333333 | 0.333333 | 0.333333 | 0.264957 | 0 | 0.019849 | 0.277816 | 2,930 | 123 | 73 | 23.821138 | 0.69896 | 0.10785 | 0 | 0.114754 | 0 | 0 | 0.126332 | 0.015728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114754 | 0 | 0.114754 | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d595677f62dbebf986ab917f4b41f5f89af2fea | 13,409 | py | Python | InstagramCrawler.py | Bagas8015/Instagram-Posts-Crawler-Users-v1 | 82d5da12f7f6caf8c085085135134f58affb1ec7 | [
"MIT"
] | null | null | null | InstagramCrawler.py | Bagas8015/Instagram-Posts-Crawler-Users-v1 | 82d5da12f7f6caf8c085085135134f58affb1ec7 | [
"MIT"
] | null | null | null | InstagramCrawler.py | Bagas8015/Instagram-Posts-Crawler-Users-v1 | 82d5da12f7f6caf8c085085135134f58affb1ec7 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import emoji
import string
import csv
import os
def getFileSize(nameFile):
return os.stat(nameFile).st_size
browser = webdriver.Chrome()
def loginInstagram(url, username, password):
browser.get(url) #Masu... | 50.220974 | 205 | 0.548736 | 1,541 | 13,409 | 4.680727 | 0.188189 | 0.02745 | 0.047276 | 0.064467 | 0.382504 | 0.351865 | 0.347428 | 0.33398 | 0.33398 | 0.32788 | 0 | 0.018929 | 0.330226 | 13,409 | 266 | 206 | 50.409774 | 0.784211 | 0.122604 | 0 | 0.369369 | 0 | 0.103604 | 0.185719 | 0.15714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031532 | false | 0.031532 | 0.031532 | 0.004505 | 0.094595 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5b40af3f077c2c14c5035c4efe391b9a38cc70 | 527 | py | Python | DesignPatterns/MVC/server/controllers/index.py | TigranGit/CodeBase | d58e30b1d83fab4b388ec2cdcb868fa751c62188 | [
"Apache-2.0"
] | 1 | 2020-08-13T19:09:27.000Z | 2020-08-13T19:09:27.000Z | DesignPatterns/MVC/server/controllers/index.py | TigranGit/CodeBase | d58e30b1d83fab4b388ec2cdcb868fa751c62188 | [
"Apache-2.0"
] | null | null | null | DesignPatterns/MVC/server/controllers/index.py | TigranGit/CodeBase | d58e30b1d83fab4b388ec2cdcb868fa751c62188 | [
"Apache-2.0"
] | null | null | null | from .base_controller import BaseController
from ..helper.utils import render_template
from ..helper.constants import STATUS_OK
class IndexController(BaseController):
def __init__(self, client_address):
self.user_ip = client_address[0]
self.user_port = str(client_address[1])
self.title = "... | 27.736842 | 47 | 0.654649 | 64 | 527 | 5.109375 | 0.484375 | 0.097859 | 0.061162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.256167 | 527 | 18 | 48 | 29.277778 | 0.829082 | 0 | 0 | 0 | 0 | 0 | 0.026565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.066667 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8d5f94f57caf92571a35ef22a1aa7566e2df0d65 | 1,582 | py | Python | tasks/tests/ui/conftest.py | MisterLenivec/django_simple_todo_app | 8e694a67df43de7feaae785c0b3205534c701923 | [
"MIT"
] | null | null | null | tasks/tests/ui/conftest.py | MisterLenivec/django_simple_todo_app | 8e694a67df43de7feaae785c0b3205534c701923 | [
"MIT"
] | 4 | 2020-06-07T01:25:14.000Z | 2021-06-10T18:34:10.000Z | tasks/tests/ui/conftest.py | MisterLenivec/django_simple_todo_app | 8e694a67df43de7feaae785c0b3205534c701923 | [
"MIT"
] | null | null | null | from django.conf import settings
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import pytest
import os
@pytest.fixture(scope='session')
def django_db_setup():
settings.DATABASES['default'] = {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.environ.get(... | 27.275862 | 77 | 0.653603 | 180 | 1,582 | 5.605556 | 0.411111 | 0.065411 | 0.035679 | 0.053518 | 0.186323 | 0.071358 | 0 | 0 | 0 | 0 | 0 | 0.014551 | 0.218078 | 1,582 | 57 | 78 | 27.754386 | 0.801132 | 0.009482 | 0 | 0 | 0 | 0 | 0.252396 | 0.047923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.022222 | 0.111111 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |