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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07e2d1b8a7c46e378298b64b296fe93ed48acbf5 | 1,828 | py | Python | tests/integration/api/test_target_groups.py | lanz/Tenable.io-SDK-for-Python | e81a61c369ac103d1524b0898153a569536a131e | [
"MIT"
] | 90 | 2017-02-02T18:36:17.000Z | 2022-02-05T17:58:50.000Z | tests/integration/api/test_target_groups.py | lanz/Tenable.io-SDK-for-Python | e81a61c369ac103d1524b0898153a569536a131e | [
"MIT"
] | 64 | 2017-02-03T00:54:00.000Z | 2020-08-06T14:06:50.000Z | tests/integration/api/test_target_groups.py | lanz/Tenable.io-SDK-for-Python | e81a61c369ac103d1524b0898153a569536a131e | [
"MIT"
] | 49 | 2017-02-03T01:01:00.000Z | 2022-02-25T13:25:28.000Z | import pytest
from tenable_io.api.target_groups import TargetListEditRequest
from tenable_io.api.models import TargetGroup, TargetGroupList
@pytest.mark.vcr()
def test_target_groups_create(new_target_group):
assert isinstance(new_target_group, TargetGroup), u'The `create` method did not return type `TargetGroup`... | 44.585366 | 119 | 0.784464 | 260 | 1,828 | 5.276923 | 0.188462 | 0.152332 | 0.081633 | 0.058309 | 0.439504 | 0.39723 | 0.340379 | 0.198251 | 0.198251 | 0 | 0 | 0 | 0.126368 | 1,828 | 40 | 120 | 45.7 | 0.859111 | 0 | 0 | 0.241379 | 0 | 0 | 0.261488 | 0.012035 | 0 | 0 | 0 | 0 | 0.310345 | 1 | 0.172414 | false | 0 | 0.103448 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07e4a4e5e49ff1a01f2886f954c1382ba8822f86 | 9,352 | py | Python | train.py | hui-won/KoBART_Project | 105608997473abc669d777c588d56382efb524c6 | [
"MIT"
] | 13 | 2020-12-30T15:09:08.000Z | 2022-01-02T08:11:18.000Z | train.py | hui-won/KoBART_Project | 105608997473abc669d777c588d56382efb524c6 | [
"MIT"
] | 2 | 2021-11-21T11:49:31.000Z | 2022-03-18T05:09:13.000Z | train.py | hui-won/KoBART_Project | 105608997473abc669d777c588d56382efb524c6 | [
"MIT"
] | 1 | 2021-06-15T01:24:18.000Z | 2021-06-15T01:24:18.000Z | import argparse
import logging
import os
import numpy as np
import pandas as pd
import pytorch_lightning as pl
import torch
from pytorch_lightning import loggers as pl_loggers
from torch.utils.data import DataLoader, Dataset
from dataset import KoBARTSummaryDataset
from transformers import BartForConditionalGeneration,... | 39.627119 | 153 | 0.559773 | 971 | 9,352 | 5.124614 | 0.223481 | 0.02713 | 0.034164 | 0.028135 | 0.270498 | 0.226889 | 0.196342 | 0.186294 | 0.152532 | 0.140474 | 0 | 0.005295 | 0.353828 | 9,352 | 235 | 154 | 39.795745 | 0.818137 | 0.013794 | 0 | 0.183673 | 0 | 0 | 0.079201 | 0.003906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076531 | false | 0 | 0.066327 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07e4f4a4fe370f9d6aeaae97b9bd2ee2d9364898 | 11,945 | py | Python | homeassistant/components/shelly/sensor.py | RavensburgOP/core | 0ea76e848b182ca0ebb0fdb54558f7f733898ad7 | [
"Apache-2.0"
] | 1 | 2019-08-28T00:54:28.000Z | 2019-08-28T00:54:28.000Z | homeassistant/components/shelly/sensor.py | RavensburgOP/core | 0ea76e848b182ca0ebb0fdb54558f7f733898ad7 | [
"Apache-2.0"
] | 71 | 2020-07-14T09:08:56.000Z | 2022-03-31T06:01:47.000Z | homeassistant/components/shelly/sensor.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | null | null | null | """Sensor for Shelly."""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import Final, cast
import aioshelly
from homeassistant.components import sensor
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from home... | 34.226361 | 84 | 0.669904 | 1,244 | 11,945 | 6.157556 | 0.152733 | 0.071802 | 0.048042 | 0.063055 | 0.566449 | 0.517102 | 0.487728 | 0.45248 | 0.45248 | 0.437728 | 0 | 0.008376 | 0.230389 | 11,945 | 348 | 85 | 34.324713 | 0.824867 | 0.028631 | 0 | 0.508251 | 0 | 0 | 0.060957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033003 | false | 0 | 0.056106 | 0 | 0.132013 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07e700a1cf3d3463190722de4956e44165a923c7 | 1,969 | py | Python | InvenTree/InvenTree/management/commands/rebuild_thumbnails.py | rocheparadox/InvenTree | 76c1e936db78424e0d6953c4062eb32863e302c6 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/InvenTree/management/commands/rebuild_thumbnails.py | rocheparadox/InvenTree | 76c1e936db78424e0d6953c4062eb32863e302c6 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/InvenTree/management/commands/rebuild_thumbnails.py | fablabbcn/InvenTree | 1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | """
Custom management command to rebuild thumbnail images
- May be required after importing a new dataset, for example
"""
import os
import logging
from PIL import UnidentifiedImageError
from django.core.management.base import BaseCommand
from django.conf import settings
from django.db.utils import OperationalError... | 27.732394 | 82 | 0.630269 | 214 | 1,969 | 5.775701 | 0.429907 | 0.05178 | 0.019417 | 0.027508 | 0.211974 | 0.211974 | 0.124595 | 0.124595 | 0 | 0 | 0 | 0 | 0.285932 | 1,969 | 70 | 83 | 28.128571 | 0.87909 | 0.111224 | 0 | 0.175 | 0 | 0 | 0.144366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 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 |
07e994b02286199ddba77a78c4751e4388520310 | 267 | py | Python | examples/show_artist.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | examples/show_artist.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | examples/show_artist.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | # shows artist info for a URN or URL
import spotipy_twisted
import sys
import pprint
if len(sys.argv) > 1:
urn = sys.argv[1]
else:
urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu'
sp = spotipy_twisted.Spotify()
artist = sp.artist(urn)
pprint.pprint(artist)
| 15.705882 | 49 | 0.726592 | 40 | 267 | 4.8 | 0.525 | 0.145833 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.172285 | 267 | 16 | 50 | 16.6875 | 0.846154 | 0.127341 | 0 | 0 | 0 | 0 | 0.160173 | 0.160173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07ebcae81863c1e60bd65e743d7f7961451a23cf | 2,895 | py | Python | code_doc/views/author_views.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | code_doc/views/author_views.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | code_doc/views/author_views.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from django.http import Http404
from django.views.generic.edit import UpdateView
from django.views.generic import ListView, View
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.utils.decorators import method_decorator... | 28.382353 | 88 | 0.680484 | 332 | 2,895 | 5.756024 | 0.337349 | 0.03663 | 0.021978 | 0.031397 | 0.126635 | 0.03349 | 0 | 0 | 0 | 0 | 0 | 0.004966 | 0.234888 | 2,895 | 101 | 89 | 28.663366 | 0.857788 | 0.109154 | 0 | 0.220588 | 0 | 0 | 0.122986 | 0.06169 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.058824 | false | 0.014706 | 0.176471 | 0 | 0.485294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07eea84b8f7990a608b685c1a60f3250095ce8a2 | 1,271 | py | Python | mingpt/lr_decay.py | asigalov61/minGPT | b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b | [
"MIT"
] | 18 | 2020-09-10T02:29:38.000Z | 2022-03-16T03:17:35.000Z | mingpt/lr_decay.py | asigalov61/minGPT | b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b | [
"MIT"
] | null | null | null | mingpt/lr_decay.py | asigalov61/minGPT | b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b | [
"MIT"
] | 7 | 2020-08-20T16:35:38.000Z | 2022-01-10T21:57:49.000Z | import math
import pytorch_lightning as pl
class LearningRateDecayCallback(pl.Callback):
def __init__(self, learning_rate, warmup_tokens=375e6, final_tokens=260e9, lr_decay=True):
super().__init__()
self.learning_rate = learning_rate
self.tokens = 0
self.final_tokens = final_token... | 41 | 106 | 0.609756 | 162 | 1,271 | 4.530864 | 0.395062 | 0.114441 | 0.108992 | 0.089918 | 0.114441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024581 | 0.29583 | 1,271 | 31 | 107 | 41 | 0.795531 | 0.080252 | 0 | 0 | 0 | 0 | 0.001715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 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 |
07ef68929a367d76f0cb572e51ac36b254e815b0 | 40,518 | py | Python | apprise/config/ConfigBase.py | calvinbui/apprise | a5510790baf5aa1d74afabab25ff57d6b2304d56 | [
"MIT"
] | null | null | null | apprise/config/ConfigBase.py | calvinbui/apprise | a5510790baf5aa1d74afabab25ff57d6b2304d56 | [
"MIT"
] | null | null | null | apprise/config/ConfigBase.py | calvinbui/apprise | a5510790baf5aa1d74afabab25ff57d6b2304d56 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Chris Caron <lead2gold@gmail.com>
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in th... | 38.116651 | 79 | 0.550768 | 4,575 | 40,518 | 4.820109 | 0.157158 | 0.023218 | 0.01696 | 0.007618 | 0.33294 | 0.288455 | 0.267504 | 0.239162 | 0.225648 | 0.206421 | 0 | 0.002547 | 0.37993 | 40,518 | 1,062 | 80 | 38.152542 | 0.875179 | 0.376944 | 0 | 0.371739 | 0 | 0.002174 | 0.090078 | 0.010273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034783 | false | 0 | 0.034783 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07f0b2b68417d129704d340d100e569555824ebc | 977 | py | Python | ffmpeg_util.py | manuel-fischer/ScrollRec | ec5662d3f61630f939613481290a166133d23a20 | [
"MIT"
] | null | null | null | ffmpeg_util.py | manuel-fischer/ScrollRec | ec5662d3f61630f939613481290a166133d23a20 | [
"MIT"
] | null | null | null | ffmpeg_util.py | manuel-fischer/ScrollRec | ec5662d3f61630f939613481290a166133d23a20 | [
"MIT"
] | null | null | null | import sys
import subprocess
from subprocess import Popen, PIPE
AV_LOG_QUIET = "quiet"
AV_LOG_PANIC = "panic"
AV_LOG_FATAL = "fatal"
AV_LOG_ERROR = "error"
AV_LOG_WARNING = "warning"
AV_LOG_INFO = "info"
AV_LOG_VERBOSE = "verbose"
AV_LOG_DEBUG = "debug"
ffmpeg_loglevel = AV_LOG_ERROR
IS_WIN32 = 'win32' ... | 24.425 | 89 | 0.698055 | 118 | 977 | 5.5 | 0.423729 | 0.069337 | 0.030817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007624 | 0.194473 | 977 | 40 | 90 | 24.425 | 0.817027 | 0.007165 | 0 | 0 | 0 | 0 | 0.088751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.166667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07f1195aa55500ccfbdb1eb16ce8a5e553bfeb5d | 11,381 | py | Python | analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | """ Represent a triangulated surface using a 3D boolean grid"""
import logging
import numpy as np
from rpl.tools.ray_tracing.bsp_tree_poly import BSP_Element
from rpl.tools.geometry import geom_utils
import data_io
class BSP_Grid(object):
def __init__(self, node_array, tris, allocate_step=100000):
... | 42.30855 | 99 | 0.567613 | 1,601 | 11,381 | 3.757027 | 0.202998 | 0.061347 | 0.042394 | 0.01995 | 0.299584 | 0.21596 | 0.200831 | 0.16143 | 0.147963 | 0.135661 | 0 | 0.014721 | 0.313593 | 11,381 | 269 | 100 | 42.30855 | 0.755248 | 0.199719 | 0 | 0.186335 | 0 | 0 | 0.085564 | 0.023027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049689 | false | 0 | 0.043478 | 0 | 0.136646 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07f1ea6de606abc50abb899228cdc43831fa522e | 876 | py | Python | pyfire/errors.py | RavidLevi98/pyfire | 404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5 | [
"BSD-3-Clause"
] | null | null | null | pyfire/errors.py | RavidLevi98/pyfire | 404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T21:34:44.000Z | 2021-05-22T21:34:44.000Z | pyfire/errors.py | RavidLevi98/pyfire | 404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T21:21:11.000Z | 2021-05-22T21:21:11.000Z | # -*- coding: utf-8 -*-
"""
pyfire.errors
~~~~~~~~~~~~~~~~~~~~~~
Holds the global used base errors
:copyright: 2011 by the pyfire Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import xml.etree.ElementTree as ET
class XMPPProtocolError(Exception):
"""Ba... | 28.258065 | 72 | 0.651826 | 112 | 876 | 4.946429 | 0.5625 | 0.081227 | 0.070397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007452 | 0.234018 | 876 | 30 | 73 | 29.2 | 0.818182 | 0.359589 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07f6a33d952a989c19f3efa056df22e95ace1f20 | 4,526 | py | Python | tests/unit/commands/local/start_lambda/test_cli.py | ourobouros/aws-sam-cli | 3fba861f5106d604fde6d023923a9b83377a35d9 | [
"Apache-2.0"
] | 2 | 2018-11-09T04:43:41.000Z | 2018-11-20T06:39:45.000Z | tests/unit/commands/local/start_lambda/test_cli.py | ourobouros/aws-sam-cli | 3fba861f5106d604fde6d023923a9b83377a35d9 | [
"Apache-2.0"
] | null | null | null | tests/unit/commands/local/start_lambda/test_cli.py | ourobouros/aws-sam-cli | 3fba861f5106d604fde6d023923a9b83377a35d9 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from mock import patch, Mock
from samcli.commands.local.start_lambda.cli import do_cli as start_lambda_cli
from samcli.commands.local.cli_common.user_exceptions import UserException
from samcli.commands.validate.lib.exceptions import InvalidSamDocumentException
from samcli.commands.local.... | 45.26 | 96 | 0.579319 | 451 | 4,526 | 5.48337 | 0.203991 | 0.04448 | 0.053781 | 0.048524 | 0.430247 | 0.430247 | 0.416903 | 0.401537 | 0.335625 | 0.296806 | 0 | 0.002057 | 0.355502 | 4,526 | 99 | 97 | 45.717172 | 0.845732 | 0.015245 | 0 | 0.375 | 0 | 0 | 0.07385 | 0.047811 | 0 | 0 | 0 | 0 | 0.0875 | 1 | 0.0625 | false | 0 | 0.075 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07f928cd0ad75195469f95ed414958ac002210c7 | 3,376 | py | Python | pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | 2 | 2021-01-07T05:09:17.000Z | 2021-10-15T05:13:46.000Z | pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | 9 | 2021-09-08T03:12:59.000Z | 2022-03-12T00:57:19.000Z | pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 34.44898 | 101 | 0.627073 | 426 | 3,376 | 4.774648 | 0.373239 | 0.070796 | 0.038348 | 0.031465 | 0.205015 | 0.181908 | 0.096362 | 0.096362 | 0.026549 | 0 | 0 | 0.006457 | 0.265995 | 3,376 | 97 | 102 | 34.804124 | 0.814366 | 0.166469 | 0 | 0.142857 | 0 | 0 | 0.183119 | 0.067597 | 0.015873 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0 | 0.111111 | 0.015873 | 0.31746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07fabd24f913f0cde7669692291156d001f2e833 | 1,979 | py | Python | svn-go-stats/transform.py | BT-OpenSource/bt-betalab | af5a1b0d778c1746312149f62da0c4159f387293 | [
"MIT"
] | 1 | 2021-03-02T10:44:07.000Z | 2021-03-02T10:44:07.000Z | svn-go-stats/transform.py | BT-OpenSource/bt-betalab | af5a1b0d778c1746312149f62da0c4159f387293 | [
"MIT"
] | null | null | null | svn-go-stats/transform.py | BT-OpenSource/bt-betalab | af5a1b0d778c1746312149f62da0c4159f387293 | [
"MIT"
] | null | null | null | import sys
import json
import subprocess
import re
import statistics
def get_complexity():
# Load the cyclomatic complexity info
cyclostats = subprocess.check_output(['./gocyclo', 'repo']).decode("utf-8")
results = re.findall('([0-9]+)\s([^\s]+)\s([^\s]+)\s([^:]+):([0-9]+):([0-9]+)', cyclostats)
# S... | 29.102941 | 106 | 0.623042 | 250 | 1,979 | 4.824 | 0.376 | 0.054726 | 0.104478 | 0.048093 | 0.157546 | 0.099502 | 0.099502 | 0 | 0 | 0 | 0 | 0.013953 | 0.239515 | 1,979 | 68 | 107 | 29.102941 | 0.787375 | 0.19808 | 0 | 0.195122 | 0 | 0.02439 | 0.139505 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.121951 | 0 | 0.219512 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07fb5058c7a297096cbf1ff7f21aedcf66b7d3ad | 985 | py | Python | shogitk/usikif.py | koji-hirono/pytk-shogi-replayer | a10819a797faecbee5c7b0654beb3694eb522840 | [
"MIT"
] | null | null | null | shogitk/usikif.py | koji-hirono/pytk-shogi-replayer | a10819a797faecbee5c7b0654beb3694eb522840 | [
"MIT"
] | null | null | null | shogitk/usikif.py | koji-hirono/pytk-shogi-replayer | a10819a797faecbee5c7b0654beb3694eb522840 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from shogitk.shogi import Coords, Move, BLACK, WHITE, DROP, PROMOTE
RANKNUM = {
'a': 1,
'b': 2,
'c': 3,
'd': 4,
'e': 5,
'f': 6,
'g': 7,
'h': 8,
'i': 9
}
def decoder(f):
color = ... | 25.921053 | 74 | 0.450761 | 121 | 985 | 3.628099 | 0.454545 | 0.056948 | 0.088838 | 0.072893 | 0.232346 | 0.232346 | 0.132118 | 0.132118 | 0 | 0 | 0 | 0.043046 | 0.386802 | 985 | 37 | 75 | 26.621622 | 0.683775 | 0.02132 | 0 | 0.121212 | 0 | 0 | 0.011435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.060606 | 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 |
07fca3ec2f3896a49c6703b50dabc9ec79e258a9 | 2,160 | py | Python | etherbank_cli/oracles.py | ideal-money/etherbank-cli | d957daa13aa951331cadc35c246c1ce8459ca8df | [
"BSD-2-Clause"
] | 1 | 2018-12-29T02:12:25.000Z | 2018-12-29T02:12:25.000Z | etherbank_cli/oracles.py | ideal-money/etherbank-cli | d957daa13aa951331cadc35c246c1ce8459ca8df | [
"BSD-2-Clause"
] | 5 | 2018-12-20T12:45:39.000Z | 2019-01-08T06:16:01.000Z | etherbank_cli/oracles.py | ideal-money/etherbank-cli | d957daa13aa951331cadc35c246c1ce8459ca8df | [
"BSD-2-Clause"
] | null | null | null | import click
from . import utils
@click.group()
def main():
"Simple CLI for oracles to work with Ether dollar"
pass
@main.command()
@click.option('--ether-price', type=float, help="The ether price in ether dollar")
@click.option('--collateral-ratio', type=float, help="The collateral ratio")
@click.option(
... | 30 | 82 | 0.697222 | 286 | 2,160 | 5.111888 | 0.304196 | 0.06156 | 0.032832 | 0.045144 | 0.471272 | 0.401505 | 0.305746 | 0.305746 | 0.305746 | 0.305746 | 0 | 0.009637 | 0.183333 | 2,160 | 71 | 83 | 30.422535 | 0.819161 | 0.065741 | 0 | 0.37931 | 0 | 0 | 0.254167 | 0.010185 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.068966 | false | 0.017241 | 0.034483 | 0 | 0.155172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
580077f8f713a612aa61ab64e08f6fd83f19a081 | 1,454 | py | Python | tests/effects/test_cheerlights.py | RatJuggler/led-shim-effects | 3c63f5f2ce3f35f52e784489deb9212757c18cd2 | [
"MIT"
] | 1 | 2021-04-17T16:18:14.000Z | 2021-04-17T16:18:14.000Z | tests/effects/test_cheerlights.py | RatJuggler/led-shim-effects | 3c63f5f2ce3f35f52e784489deb9212757c18cd2 | [
"MIT"
] | 12 | 2019-07-26T18:01:56.000Z | 2019-08-31T15:35:17.000Z | tests/effects/test_cheerlights.py | RatJuggler/led-shim-demo | 3c63f5f2ce3f35f52e784489deb9212757c18cd2 | [
"MIT"
] | null | null | null | from unittest import TestCase
from unittest.mock import Mock, patch
import sys
sys.modules['smbus'] = Mock() # Mock the hardware layer to avoid errors.
from ledshimdemo.canvas import Canvas
from ledshimdemo.effects.cheerlights import CheerLightsEffect
class TestCheerLights(TestCase):
TEST_CANVAS_SIZE = 3 # t... | 39.297297 | 106 | 0.72696 | 175 | 1,454 | 5.834286 | 0.405714 | 0.039177 | 0.054848 | 0.078355 | 0.27522 | 0.249755 | 0.249755 | 0.181195 | 0.181195 | 0.123408 | 0 | 0.00251 | 0.178129 | 1,454 | 36 | 107 | 40.388889 | 0.851883 | 0.078404 | 0 | 0.296296 | 0 | 0 | 0.113024 | 0.080838 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.111111 | false | 0 | 0.185185 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5800997c4a49cdfc01a368bf3ebf423b84d98d2c | 7,074 | py | Python | figures/Figure_7/02_generate_images.py | Jhsmit/ColiCoords-Paper | 7b92e67600930f64859d14867113b6de3edf1379 | [
"MIT"
] | 2 | 2019-05-12T12:06:50.000Z | 2020-11-11T16:44:49.000Z | figures/Figure_7/02_generate_images.py | Jhsmit/ColiCoords-Paper | 7b92e67600930f64859d14867113b6de3edf1379 | [
"MIT"
] | null | null | null | figures/Figure_7/02_generate_images.py | Jhsmit/ColiCoords-Paper | 7b92e67600930f64859d14867113b6de3edf1379 | [
"MIT"
] | 2 | 2019-06-17T16:00:56.000Z | 2020-02-07T22:17:47.000Z | from colicoords.synthetic_data import add_readout_noise, draw_poisson
from colicoords import load
import numpy as np
import mahotas as mh
from tqdm import tqdm
import os
import tifffile
def chunk_list(l, sizes):
prev = 0
for s in sizes:
result = l[prev:prev+s]
prev += s
yield result
... | 40.890173 | 126 | 0.602771 | 1,062 | 7,074 | 3.822034 | 0.186441 | 0.055186 | 0.049273 | 0.068983 | 0.293915 | 0.232816 | 0.226657 | 0.196354 | 0.126632 | 0.034491 | 0 | 0.023374 | 0.250071 | 7,074 | 172 | 127 | 41.127907 | 0.741753 | 0.045095 | 0 | 0.128788 | 0 | 0 | 0.091516 | 0.010531 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.045455 | false | 0 | 0.05303 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5804951a8f92330526763d3f11395d318d54d180 | 10,444 | py | Python | flink-ai-flow/ai_flow/metric/utils.py | MarvinMiao/flink-ai-extended | e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-12T15:21:05.000Z | 2020-12-12T15:21:05.000Z | flink-ai-flow/ai_flow/metric/utils.py | MarvinMiao/flink-ai-extended | e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2021-01-30T11:28:37.000Z | 2021-01-30T11:28:37.000Z | flink-ai-flow/ai_flow/metric/utils.py | MarvinMiao/flink-ai-extended | e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 49.032864 | 122 | 0.627633 | 1,094 | 10,444 | 5.66819 | 0.142596 | 0.10966 | 0.041122 | 0.033382 | 0.362038 | 0.254959 | 0.153524 | 0.140945 | 0.115465 | 0.115465 | 0 | 0.003742 | 0.309077 | 10,444 | 212 | 123 | 49.264151 | 0.855599 | 0.072003 | 0 | 0.208333 | 0 | 0 | 0.010028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.053571 | 0.017857 | 0.22619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
58055aabc65a23b166d03e3a5c7b5b2ffaa06173 | 3,154 | py | Python | src/moduels/gui/Tab_Help.py | HaujetZhao/Caps_Writer | f2b2038a2c0984a1d356f024cbac421fe594601a | [
"MIT"
] | 234 | 2020-07-10T11:23:09.000Z | 2022-03-31T09:41:40.000Z | src/moduels/gui/Tab_Help.py | HaujetZhao/Caps_Writer | f2b2038a2c0984a1d356f024cbac421fe594601a | [
"MIT"
] | 9 | 2020-07-11T08:31:11.000Z | 2022-03-01T04:30:08.000Z | src/moduels/gui/Tab_Help.py | HaujetZhao/Caps_Writer | f2b2038a2c0984a1d356f024cbac421fe594601a | [
"MIT"
] | 23 | 2020-07-14T08:58:44.000Z | 2022-03-17T06:38:10.000Z | # -*- coding: UTF-8 -*-
from PySide2.QtWidgets import QWidget, QPushButton, QVBoxLayout
from PySide2.QtCore import Signal
from moduels.component.NormalValue import 常量
from moduels.component.SponsorDialog import SponsorDialog
import os, webbrowser
class Tab_Help(QWidget):
状态栏消息 = Signal(str, int)
def __init... | 45.057143 | 132 | 0.69499 | 337 | 3,154 | 6.468843 | 0.338279 | 0.038532 | 0.054587 | 0.093119 | 0.157798 | 0.157798 | 0.157798 | 0.133945 | 0.133945 | 0 | 0 | 0.017836 | 0.182308 | 3,154 | 69 | 133 | 45.710145 | 0.827453 | 0.049778 | 0 | 0 | 0 | 0.018182 | 0.146203 | 0.017397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.109091 | 0 | 0.254545 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5805ce50d417618b337a1e60276ff06de0f997f8 | 1,425 | py | Python | utils/visual.py | xizaoqu/Panoptic-PolarNet | 8ce05f437f54e030eac7de150f43caab2810cfbb | [
"BSD-3-Clause"
] | 90 | 2021-03-30T08:02:15.000Z | 2022-03-30T03:29:56.000Z | utils/visual.py | xizaoqu/Panoptic-PolarNet | 8ce05f437f54e030eac7de150f43caab2810cfbb | [
"BSD-3-Clause"
] | 11 | 2021-04-01T02:29:08.000Z | 2022-03-04T07:30:50.000Z | utils/visual.py | xizaoqu/Panoptic-PolarNet | 8ce05f437f54e030eac7de150f43caab2810cfbb | [
"BSD-3-Clause"
] | 21 | 2021-04-01T09:29:38.000Z | 2022-03-28T01:36:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import numpy as np
def flow_to_img(flow, normalize=True):
"""Convert flow to viewable image, using color hue to encode flow vector orientation, and color saturation to
encode vector length. This is similar to the OpenCV tutorial on dense optical flow, e... | 39.583333 | 116 | 0.665263 | 207 | 1,425 | 4.52657 | 0.497585 | 0.06937 | 0.034152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057502 | 0.218947 | 1,425 | 36 | 117 | 39.583333 | 0.784367 | 0.486316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5806fd8ba37feb4c4d823dfb9c4c105ed07bdd0c | 624 | py | Python | DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py | zhkmxx9302013/SoftwarePilot | 826098465b800085774946c20a7a283f369f1d21 | [
"MIT"
] | 4 | 2019-03-20T17:46:01.000Z | 2019-03-31T17:32:44.000Z | DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py | zhkmxx9302013/SoftwarePilot | 826098465b800085774946c20a7a283f369f1d21 | [
"MIT"
] | null | null | null | DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py | zhkmxx9302013/SoftwarePilot | 826098465b800085774946c20a7a283f369f1d21 | [
"MIT"
] | null | null | null | import argparse
from PIL import Image, ImageStat
import math
parser = argparse.ArgumentParser()
parser.add_argument('fname')
parser.add_argument('pref', default="", nargs="?")
args = parser.parse_args()
im = Image.open(args.fname)
RGB = im.convert('RGB')
imWidth, imHeight = im.size
ratg = 1.2
ratgb = 1.66
ming = 10... | 20.8 | 50 | 0.684295 | 104 | 624 | 4.076923 | 0.509615 | 0.042453 | 0.080189 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.158654 | 624 | 29 | 51 | 21.517241 | 0.779048 | 0 | 0 | 0 | 0 | 0 | 0.027244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
58077bea9c4435d13d9ff119348291eadd3323f7 | 4,561 | py | Python | reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""cluster storage stats for python"""
# import pyhesity wrapper module
from pyhesity import *
from datetime import datetime
import codecs
# command line arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--vip', type=str, default='helios.cohesity.com') # cl... | 49.043011 | 293 | 0.726814 | 501 | 4,561 | 6.60479 | 0.315369 | 0.026594 | 0.006346 | 0.007253 | 0.229979 | 0.221517 | 0.159263 | 0.125416 | 0.122696 | 0.070716 | 0 | 0.019425 | 0.10831 | 4,561 | 92 | 294 | 49.576087 | 0.794197 | 0.056128 | 0 | 0 | 0 | 0.09375 | 0.375146 | 0.234554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.046875 | 0.0625 | 0.015625 | 0.109375 | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af1bee4f8dfc29969377047eaf5953641fb77f7 | 4,823 | py | Python | tests/test_find_forks/test_find_forks.py | ivan2kh/find_forks | 409251282a85da48445afc03c5a1797df393ca95 | [
"MIT"
] | 41 | 2015-05-15T14:37:42.000Z | 2022-02-05T01:52:00.000Z | tests/test_find_forks/test_find_forks.py | ivan2kh/find_forks | 409251282a85da48445afc03c5a1797df393ca95 | [
"MIT"
] | 12 | 2015-05-15T22:10:36.000Z | 2021-12-05T14:21:58.000Z | tests/test_find_forks/test_find_forks.py | ivan2kh/find_forks | 409251282a85da48445afc03c5a1797df393ca95 | [
"MIT"
] | 16 | 2015-05-15T14:44:33.000Z | 2020-11-18T00:54:18.000Z | # coding: utf-8
"""test_find_fork."""
# pylint: disable=no-self-use
from __future__ import absolute_import, division, print_function, unicode_literals
from os import path
import unittest
from six import PY3
from find_forks.__init__ import CONFIG
from find_forks.find_forks import add_forks, determine_names, find_fork... | 41.577586 | 146 | 0.644412 | 602 | 4,823 | 4.918605 | 0.237542 | 0.091185 | 0.037825 | 0.051334 | 0.387707 | 0.312732 | 0.206349 | 0.184059 | 0.151638 | 0.151638 | 0 | 0.011999 | 0.239685 | 4,823 | 115 | 147 | 41.93913 | 0.795473 | 0.096828 | 0 | 0.097561 | 0 | 0.073171 | 0.224238 | 0.060479 | 0 | 0 | 0 | 0 | 0.207317 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.231707 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af1e67adc2134fb57f91c04b0e1763048fc52e2 | 15,853 | py | Python | neutron/agent/l3/dvr_router.py | insequent/neutron | 2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5 | [
"Apache-2.0"
] | null | null | null | neutron/agent/l3/dvr_router.py | insequent/neutron | 2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5 | [
"Apache-2.0"
] | null | null | null | neutron/agent/l3/dvr_router.py | insequent/neutron | 2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015 Openstack Foundation
#
# 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 ... | 43.196185 | 79 | 0.6272 | 2,172 | 15,853 | 4.28453 | 0.177256 | 0.012895 | 0.01354 | 0.018375 | 0.356437 | 0.290673 | 0.229422 | 0.190415 | 0.157748 | 0.1268 | 0 | 0.008087 | 0.290229 | 15,853 | 366 | 80 | 43.314208 | 0.818966 | 0.200151 | 0 | 0.204819 | 0 | 0 | 0.055867 | 0 | 0 | 0 | 0.001603 | 0.005464 | 0 | 1 | 0.092369 | false | 0 | 0.044177 | 0.004016 | 0.216867 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af335ed4a4087ef091d5830d5a795b074596342 | 1,032 | py | Python | sandbox/test/testChainop.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T19:22:17.000Z | 2021-05-26T19:22:17.000Z | sandbox/test/testChainop.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | sandbox/test/testChainop.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import operator
import sandbox.chainop as chainop
class BasicChainTest (unittest.TestCase):
def testBasicChain(self):
double = lambda x: x * 2
self.assertEqual(62, chainop.basic_chain((operator.add, double), 2, 31))
square = lambda x: x ** 2
self.assertEqual(2**31, ... | 31.272727 | 98 | 0.650194 | 132 | 1,032 | 4.969697 | 0.371212 | 0.042683 | 0.04878 | 0.054878 | 0.216463 | 0.216463 | 0.216463 | 0.216463 | 0.216463 | 0.106707 | 0 | 0.04059 | 0.212209 | 1,032 | 32 | 99 | 32.25 | 0.766298 | 0 | 0 | 0.16 | 0 | 0 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af3beecef5460df43fd5570a5ba8ce1f6a0d13d | 1,131 | py | Python | labs_final/lab5/experiments/run_trpo_pendulum.py | mrmotallebi/berkeley-deeprl-bootcamp | 9257c693724c38edfa4571e3510667ca168b7ca1 | [
"MIT"
] | 3 | 2018-03-26T14:13:11.000Z | 2020-07-23T22:26:28.000Z | labs_final/lab5/experiments/run_trpo_pendulum.py | mrmotallebi/berkeley-deeprl-bootcamp | 9257c693724c38edfa4571e3510667ca168b7ca1 | [
"MIT"
] | null | null | null | labs_final/lab5/experiments/run_trpo_pendulum.py | mrmotallebi/berkeley-deeprl-bootcamp | 9257c693724c38edfa4571e3510667ca168b7ca1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import chainer
from algs import trpo
from env_makers import EnvMaker
from models import GaussianMLPPolicy, MLPBaseline
from utils import SnapshotSaver
import numpy as np
import os
import logger
log_dir = "data/local/trpo-pendulum"
np.random.seed(42)
# Clean up existing logs
os.system("rm -rf {... | 24.586957 | 51 | 0.678161 | 142 | 1,131 | 5.211268 | 0.450704 | 0.064865 | 0.075676 | 0.081081 | 0.343243 | 0.343243 | 0.343243 | 0.343243 | 0.343243 | 0.343243 | 0 | 0.02411 | 0.229885 | 1,131 | 45 | 52 | 25.133333 | 0.825488 | 0.038019 | 0 | 0.263158 | 0 | 0 | 0.040516 | 0.022099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af3f2a17f291a65e5f9b17cbe9f19d00752f642 | 2,098 | py | Python | jtyoui/regular/regexengine.py | yy1244/Jtyoui | d3c212ed9d6ffa6b37a8ca49098ab59c89216f09 | [
"MIT"
] | 1 | 2019-12-05T09:46:51.000Z | 2019-12-05T09:46:51.000Z | jtyoui/regular/regexengine.py | yy1244/Jtyoui | d3c212ed9d6ffa6b37a8ca49098ab59c89216f09 | [
"MIT"
] | null | null | null | jtyoui/regular/regexengine.py | yy1244/Jtyoui | d3c212ed9d6ffa6b37a8ca49098ab59c89216f09 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2019/12/2 10:17
# @Author: Jtyoui@qq.com
"""
正则解析器
"""
try:
import xml.etree.cElementTree as et
except ModuleNotFoundError:
import xml.etree.ElementTree as et
import re
class RegexEngine:
def __init__(self, xml, str_):
"""加载正则表。正则表为xml
... | 27.246753 | 87 | 0.479981 | 234 | 2,098 | 4.175214 | 0.34188 | 0.067554 | 0.071648 | 0.0348 | 0.155578 | 0.143296 | 0.108495 | 0 | 0 | 0 | 0 | 0.011407 | 0.373213 | 2,098 | 76 | 88 | 27.605263 | 0.731559 | 0.109152 | 0 | 0.254902 | 0 | 0 | 0.027964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0.019608 | 0.27451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af4d5fe8b77a49f0cbdce7b5f8e3248894cc3b5 | 5,117 | py | Python | proglearn/transformers.py | rflperry/ProgLearn | 9f799b4a8cf2157ba40b04842dc88eaf646e6420 | [
"MIT"
] | null | null | null | proglearn/transformers.py | rflperry/ProgLearn | 9f799b4a8cf2157ba40b04842dc88eaf646e6420 | [
"MIT"
] | 1 | 2020-11-25T19:21:54.000Z | 2020-11-25T19:21:54.000Z | proglearn/transformers.py | rflperry/ProgLearn | 9f799b4a8cf2157ba40b04842dc88eaf646e6420 | [
"MIT"
] | null | null | null | """
Main Author: Will LeVine
Corresponding Email: levinewill@icloud.com
"""
import keras
import numpy as np
from sklearn.tree import DecisionTreeClassifier
from sklearn.utils.validation import check_array, check_is_fitted, check_X_y
from .base import BaseTransformer
class NeuralClassificationTransformer(BaseTransfor... | 26.931579 | 94 | 0.587063 | 526 | 5,117 | 5.60076 | 0.277567 | 0.00611 | 0.023082 | 0.031229 | 0.39647 | 0.376103 | 0.3537 | 0.3537 | 0.3537 | 0.3537 | 0 | 0.004018 | 0.319132 | 5,117 | 189 | 95 | 27.074074 | 0.841561 | 0.492671 | 0 | 0.148148 | 0 | 0 | 0.039939 | 0.012133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.092593 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af5766ae43b84c8b76547fb51e5b56cfdb7f3af | 9,900 | py | Python | morphelia/external/saphire.py | marx-alex/Morphelia | 809278b07f1a535789455d54df3cbddc850d609c | [
"MIT"
] | null | null | null | morphelia/external/saphire.py | marx-alex/Morphelia | 809278b07f1a535789455d54df3cbddc850d609c | [
"MIT"
] | null | null | null | morphelia/external/saphire.py | marx-alex/Morphelia | 809278b07f1a535789455d54df3cbddc850d609c | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.collections as mcoll
from matplotlib.ticker import MaxNLocator
plt.style.use('seaborn-darkgrid')
class BaseTraj:
def __init__(self, model, X):
self.model = model
assert len(X.shape) == 2, f"X should be 2... | 34.256055 | 114 | 0.58101 | 1,353 | 9,900 | 4.10643 | 0.219512 | 0.015839 | 0.011699 | 0.012599 | 0.330094 | 0.287077 | 0.232901 | 0.227322 | 0.215443 | 0.215443 | 0 | 0.02578 | 0.290808 | 9,900 | 288 | 115 | 34.375 | 0.76556 | 0.153939 | 0 | 0.248485 | 0 | 0 | 0.053348 | 0.003279 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.09697 | false | 0 | 0.030303 | 0 | 0.224242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af5ea523e6e4b25159d80c12448780bfd106c8c | 4,824 | py | Python | account/views.py | Stfuncode/food-beverage-investigator | 0fea4943a5c2634068dc04118f83742327937c25 | [
"MIT"
] | null | null | null | account/views.py | Stfuncode/food-beverage-investigator | 0fea4943a5c2634068dc04118f83742327937c25 | [
"MIT"
] | null | null | null | account/views.py | Stfuncode/food-beverage-investigator | 0fea4943a5c2634068dc04118f83742327937c25 | [
"MIT"
] | null | null | null | import imp
from venv import create
from django.shortcuts import render, redirect
from django.views import View
from django.views.generic import (
ListView,
)
from account.models import *
from account.forms import *
from data.models import *
from django.contrib.auth import login as auth_login
from django.contrib.a... | 33.5 | 87 | 0.645522 | 521 | 4,824 | 5.873321 | 0.241843 | 0.029412 | 0.037255 | 0.027778 | 0.355882 | 0.287582 | 0.250654 | 0.222549 | 0.196405 | 0.196405 | 0 | 0.001926 | 0.246476 | 4,824 | 144 | 88 | 33.5 | 0.83989 | 0.004768 | 0 | 0.385246 | 0 | 0 | 0.115 | 0.023958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.098361 | 0 | 0.401639 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af67173be2103fc04ef7a7c51b006d1f866e003 | 2,697 | py | Python | fpds/client.py | mgradowski/aiproject | 855332bd982bef2530ad935a209ae8be35963165 | [
"MIT"
] | null | null | null | fpds/client.py | mgradowski/aiproject | 855332bd982bef2530ad935a209ae8be35963165 | [
"MIT"
] | null | null | null | fpds/client.py | mgradowski/aiproject | 855332bd982bef2530ad935a209ae8be35963165 | [
"MIT"
] | null | null | null | import cv2
import aiohttp
import asyncio
import concurrent.futures
import argparse
import numpy as np
async def camera_source(ws: aiohttp.ClientWebSocketResponse, threadpool: concurrent.futures.ThreadPoolExecutor, src_id: int=0):
loop = asyncio.get_running_loop()
try:
src = await loop.run_in_executor(... | 35.025974 | 127 | 0.668891 | 330 | 2,697 | 5.275758 | 0.354545 | 0.024124 | 0.080414 | 0.032165 | 0.276852 | 0.213096 | 0.180931 | 0.072947 | 0.049397 | 0 | 0 | 0.012943 | 0.226548 | 2,697 | 76 | 128 | 35.486842 | 0.821668 | 0.000742 | 0 | 0.25 | 0 | 0 | 0.042703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0.029412 | 0.088235 | 0 | 0.102941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af759aad1d331394cb7f013c9559f17569541f2 | 3,619 | py | Python | Giveme5W1H/extractor/tools/key_value_cache.py | bkrrr/Giveme5W | 657738781fe387d76e6e0da35ed009ccf81f4290 | [
"Apache-2.0"
] | 410 | 2018-05-02T12:53:02.000Z | 2022-03-28T16:11:34.000Z | Giveme5W1H/extractor/tools/key_value_cache.py | bkrrr/Giveme5W | 657738781fe387d76e6e0da35ed009ccf81f4290 | [
"Apache-2.0"
] | 51 | 2018-05-02T13:53:19.000Z | 2022-03-22T00:16:39.000Z | Giveme5W1H/extractor/tools/key_value_cache.py | TU-Berlin/Giveme5W1H | b1586328393a50acde86015d22f78a4c15bf2f34 | [
"Apache-2.0"
] | 81 | 2018-05-29T14:03:27.000Z | 2022-02-08T08:59:38.000Z | import logging
import os
import pickle
import sys
import threading
import time
from typing import List
from Giveme5W1H.extractor.root import path
from Giveme5W1H.extractor.tools.util import bytes_2_human_readable
class KeyValueCache(object):
def __init__(self, cache_path):
"""
:param cache_path: ... | 30.931624 | 115 | 0.585797 | 449 | 3,619 | 4.538976 | 0.325167 | 0.092738 | 0.076546 | 0.020608 | 0.136899 | 0.098626 | 0.027478 | 0 | 0 | 0 | 0 | 0.004 | 0.309201 | 3,619 | 116 | 116 | 31.198276 | 0.8112 | 0.235424 | 0 | 0.137931 | 0 | 0 | 0.033953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.155172 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6af7f07129b756fc33dfdd705556d009ef89fe63 | 3,121 | py | Python | nsst_translate_corpus.py | AlexanderJenke/nsst | 75f6afa39568c72c9c513ac0313db33b80bb67d5 | [
"Apache-2.0"
] | null | null | null | nsst_translate_corpus.py | AlexanderJenke/nsst | 75f6afa39568c72c9c513ac0313db33b80bb67d5 | [
"Apache-2.0"
] | null | null | null | nsst_translate_corpus.py | AlexanderJenke/nsst | 75f6afa39568c72c9c513ac0313db33b80bb67d5 | [
"Apache-2.0"
] | null | null | null | from argparse import ArgumentParser
from tqdm import tqdm
import NSST
from nsst_translate import best_transition_sequence
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument("--nsst_file", default="output/nsst_tss20_th4_nSt100_Q0.pkl", help="nsst file")
parser.add_argument("--src_lan... | 32.852632 | 104 | 0.544056 | 404 | 3,121 | 3.977723 | 0.279703 | 0.034848 | 0.052894 | 0.022402 | 0.18046 | 0.100809 | 0.065961 | 0 | 0 | 0 | 0 | 0.017476 | 0.339955 | 3,121 | 94 | 105 | 33.202128 | 0.762621 | 0.065043 | 0 | 0.03125 | 0 | 0 | 0.135237 | 0.096008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015625 | 0.0625 | 0 | 0.0625 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afa2508436ad02c7fe767127789a72b5fa053d8 | 382 | py | Python | 10 Days of Statistics/Day 1/Standard Deviation.py | dhyanpatel110/HACKERRANK | 949b1ff468ff3487663bf063a8fe6cdfb9dea26b | [
"Apache-2.0"
] | null | null | null | 10 Days of Statistics/Day 1/Standard Deviation.py | dhyanpatel110/HACKERRANK | 949b1ff468ff3487663bf063a8fe6cdfb9dea26b | [
"Apache-2.0"
] | null | null | null | 10 Days of Statistics/Day 1/Standard Deviation.py | dhyanpatel110/HACKERRANK | 949b1ff468ff3487663bf063a8fe6cdfb9dea26b | [
"Apache-2.0"
] | null | null | null | # Import library
import math
# Define functionts
def mean(data):
return sum(data) / len(data)
def stddev(data, size):
sum = 0
for i in range(size):
sum = sum + (data[i] - mean(data)) ** 2
return math.sqrt(sum / size)
# Set data
size = int(input())
numbers = list(map(int, input().split()))
# ... | 19.1 | 47 | 0.63089 | 57 | 382 | 4.22807 | 0.578947 | 0.06639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.21466 | 382 | 19 | 48 | 20.105263 | 0.793333 | 0.167539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 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 |
6afb588f82055ac18339fc17c00162ed0a0496d8 | 314 | py | Python | Homework/Hw4/Solution/problem5a.py | jmsevillam/Herramientas-Computacionales-UniAndes | 957338873bd6a17201dfd4629c7edd5760e2271d | [
"MIT"
] | null | null | null | Homework/Hw4/Solution/problem5a.py | jmsevillam/Herramientas-Computacionales-UniAndes | 957338873bd6a17201dfd4629c7edd5760e2271d | [
"MIT"
] | null | null | null | Homework/Hw4/Solution/problem5a.py | jmsevillam/Herramientas-Computacionales-UniAndes | 957338873bd6a17201dfd4629c7edd5760e2271d | [
"MIT"
] | 5 | 2019-05-27T13:35:51.000Z | 2020-09-30T15:19:39.000Z | def decode(word1,word2,code):
if len(word1)==1:
code+=word1+word2
return code
else:
code+=word1[0]+word2[0]
return decode(word1[1:],word2[1:],code)
Alice='Ti rga eoe esg o h ore"ermetsCmuainls'
Bob='hspormdcdsamsaefrtecus Hraina optcoae"'
print(decode(Alice,Bob,''))
| 24.153846 | 47 | 0.630573 | 44 | 314 | 4.5 | 0.568182 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.219745 | 314 | 12 | 48 | 26.166667 | 0.75102 | 0 | 0 | 0 | 0 | 0 | 0.242038 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afbbfc0a8b4d96b676b80363b2e541af846b662 | 7,415 | py | Python | pychron/lasers/power/composite_calibration_manager.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | pychron/lasers/power/composite_calibration_manager.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | pychron/lasers/power/composite_calibration_manager.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | # ===============================================================================
# Copyright 2012 Jake Ross
#
# 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/licens... | 30.142276 | 88 | 0.552124 | 774 | 7,415 | 5.127907 | 0.31137 | 0.018141 | 0.028219 | 0.013605 | 0.11741 | 0.081633 | 0.058453 | 0 | 0 | 0 | 0 | 0.006265 | 0.311126 | 7,415 | 245 | 89 | 30.265306 | 0.770752 | 0.157249 | 0 | 0.130682 | 0 | 0 | 0.062086 | 0.003395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085227 | false | 0 | 0.068182 | 0.005682 | 0.289773 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afbd0d610e5a63b6a074ba49e684ae0359ba35a | 3,957 | py | Python | ttt_package/libs/best_move.py | Ipgnosis/tic_tac_toe | e1519b702531965cc647ff37c1c46d72f4b3b24e | [
"BSD-3-Clause"
] | null | null | null | ttt_package/libs/best_move.py | Ipgnosis/tic_tac_toe | e1519b702531965cc647ff37c1c46d72f4b3b24e | [
"BSD-3-Clause"
] | 4 | 2021-03-25T19:52:40.000Z | 2021-12-12T17:57:11.000Z | ttt_package/libs/best_move.py | Ipgnosis/tic_tac_toe | e1519b702531965cc647ff37c1c46d72f4b3b24e | [
"BSD-3-Clause"
] | null | null | null | # refactored from make_play to simplify
# by Russell on 3/5/21
#from ttt_package.libs.move_utils import get_open_cells
from ttt_package.libs.compare import get_transposed_games, reorient_games
from ttt_package.libs.calc_game_bound import calc_game_bound
from ttt_package.libs.maxi_min import maximin
# find the best mo... | 42.548387 | 100 | 0.703058 | 561 | 3,957 | 4.761141 | 0.286988 | 0.035942 | 0.048671 | 0.026956 | 0.132535 | 0.058405 | 0.058405 | 0 | 0 | 0 | 0 | 0.002632 | 0.231994 | 3,957 | 92 | 101 | 43.01087 | 0.876275 | 0.570382 | 0 | 0 | 0 | 0 | 0.01748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afc188b33bb84dbd980d2429af99225dafac393 | 805 | py | Python | yard/skills/66-python/cookbook/yvhai/demo/mt/raw_thread.py | paser4se/bbxyard | d09bc6efb75618b2cef047bad9c8b835043446cb | [
"Apache-2.0"
] | 1 | 2016-03-29T02:01:58.000Z | 2016-03-29T02:01:58.000Z | yard/skills/66-python/cookbook/yvhai/demo/mt/raw_thread.py | paser4se/bbxyard | d09bc6efb75618b2cef047bad9c8b835043446cb | [
"Apache-2.0"
] | 18 | 2019-02-13T09:15:25.000Z | 2021-12-09T21:32:13.000Z | yard/skills/66-python/cookbook/yvhai/demo/mt/raw_thread.py | paser4se/bbxyard | d09bc6efb75618b2cef047bad9c8b835043446cb | [
"Apache-2.0"
] | 2 | 2020-07-05T01:01:30.000Z | 2020-07-08T22:33:06.000Z | #!/usr/bin/env python3
# python 线程测试
import _thread
import time
from yvhai.demo.base import YHDemo
def print_time(thread_name, interval, times):
for cnt in range(times):
time.sleep(interval)
print(" -- %s: %s" % (thread_name, time.ctime(time.time())))
class RawThreadDemo(YHDemo):
def __in... | 20.125 | 70 | 0.601242 | 94 | 805 | 4.840426 | 0.531915 | 0.059341 | 0.098901 | 0.087912 | 0.153846 | 0.153846 | 0.153846 | 0 | 0 | 0 | 0 | 0.018676 | 0.268323 | 805 | 39 | 71 | 20.641026 | 0.75382 | 0.050932 | 0 | 0.083333 | 0 | 0 | 0.073587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.041667 | 0.125 | 0 | 0.333333 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afc7c91ed45303d7c201609e1cc6104aa29ad90 | 3,108 | py | Python | rasa/utils/tensorflow/constants.py | praneethgb/rasa | 5bf227f165d0b041a367d2c0bbf712ebb6a54792 | [
"Apache-2.0"
] | 8 | 2020-09-16T17:22:13.000Z | 2022-02-01T00:11:30.000Z | rasa/utils/tensorflow/constants.py | praneethgb/rasa | 5bf227f165d0b041a367d2c0bbf712ebb6a54792 | [
"Apache-2.0"
] | 216 | 2020-09-20T13:05:58.000Z | 2022-03-28T12:10:24.000Z | rasa/utils/tensorflow/constants.py | praneethgb/rasa | 5bf227f165d0b041a367d2c0bbf712ebb6a54792 | [
"Apache-2.0"
] | 1 | 2022-02-01T18:23:23.000Z | 2022-02-01T18:23:23.000Z | # constants for configuration parameters of our tensorflow models
LABEL = "label"
IDS = "ids"
# LABEL_PAD_ID is used to pad multi-label training examples.
# It should be < 0 to avoid index out of bounds errors by tf.one_hot.
LABEL_PAD_ID = -1
HIDDEN_LAYERS_SIZES = "hidden_layers_sizes"
SHARE_HIDDEN_LAYERS = "share_hid... | 27.75 | 87 | 0.818855 | 392 | 3,108 | 6 | 0.369898 | 0.027211 | 0.008503 | 0.013605 | 0.031463 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000715 | 0.099743 | 3,108 | 111 | 88 | 28 | 0.839886 | 0.076898 | 0 | 0 | 0 | 0 | 0.428422 | 0.184358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afcd2c6547b58f11a5de71fbf337c71913e7438 | 32,025 | py | Python | client/canyons-of-mars/maze.py | GamesCreatorsClub/GCC-Rover | 25a69f62a1bb01fc421924ec39f180f50d6a640b | [
"MIT"
] | 3 | 2018-02-13T21:39:55.000Z | 2018-04-26T18:17:39.000Z | client/canyons-of-mars/maze.py | GamesCreatorsClub/GCC-Rover | 25a69f62a1bb01fc421924ec39f180f50d6a640b | [
"MIT"
] | null | null | null | client/canyons-of-mars/maze.py | GamesCreatorsClub/GCC-Rover | 25a69f62a1bb01fc421924ec39f180f50d6a640b | [
"MIT"
] | null | null | null |
#
# Copyright 2016-2019 Games Creators Club
#
# MIT License
#
import math
import pyroslib
import pyroslib.logging
import time
from pyroslib.logging import log, LOG_LEVEL_ALWAYS, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG
from rover import WheelOdos, WHEEL_NAMES
from rover import normaiseAngle, angleDiference
from challenge_uti... | 43.75 | 238 | 0.600031 | 4,001 | 32,025 | 4.6001 | 0.07873 | 0.02934 | 0.022005 | 0.015648 | 0.627058 | 0.537517 | 0.488943 | 0.467264 | 0.42733 | 0.422766 | 0 | 0.051095 | 0.294145 | 32,025 | 731 | 239 | 43.80985 | 0.763106 | 0.040031 | 0 | 0.464991 | 0 | 0.016158 | 0.060876 | 0.001889 | 0 | 0 | 0 | 0.001368 | 0 | 1 | 0.08079 | false | 0.003591 | 0.016158 | 0.008977 | 0.195691 | 0.023339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6afe91d71e827ccc78b53873ca9a15887ff25298 | 5,550 | py | Python | All_Program.py | TheoSaify/Yolo-Detector | f1ac387370982de323a4fc09109c57736b8ce8d6 | [
"Apache-2.0"
] | null | null | null | All_Program.py | TheoSaify/Yolo-Detector | f1ac387370982de323a4fc09109c57736b8ce8d6 | [
"Apache-2.0"
] | null | null | null | All_Program.py | TheoSaify/Yolo-Detector | f1ac387370982de323a4fc09109c57736b8ce8d6 | [
"Apache-2.0"
] | null | null | null | import cv2
from cv2 import *
import numpy as np
from matplotlib import pyplot as plt
###############################SIFT MATCH Function#################################
def SIFTMATCH(img1,img2):
# Initiate SIFT detector
sift = cv2.xfeatures2d.SIFT_create()
# find the keypoints and descri... | 29.83871 | 127 | 0.571171 | 701 | 5,550 | 4.455064 | 0.39087 | 0.01537 | 0.012488 | 0.009606 | 0.03202 | 0.014089 | 0.014089 | 0.014089 | 0.014089 | 0 | 0 | 0.057466 | 0.250631 | 5,550 | 185 | 128 | 30 | 0.693436 | 0.248468 | 0 | 0.073171 | 0 | 0 | 0.060522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.085366 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6aff4d7639431aa38a4d3a68b963afee4300b218 | 3,479 | py | Python | pyxon/utils.py | k-j-m/Pyxon | a7f9b3ce524f2441e952c47acd199dd4024d2322 | [
"MIT"
] | null | null | null | pyxon/utils.py | k-j-m/Pyxon | a7f9b3ce524f2441e952c47acd199dd4024d2322 | [
"MIT"
] | null | null | null | pyxon/utils.py | k-j-m/Pyxon | a7f9b3ce524f2441e952c47acd199dd4024d2322 | [
"MIT"
] | null | null | null | import pyxon.decode as pd
def unobjectify(obj):
"""
Turns a python object (must be a class instance)
into the corresponding JSON data.
Example:
>>> @sprop.a # sprop annotations are needed to tell the
>>> @sprop.b # unobjectify function what parameter need
>>> @sprop.c # to be written out.... | 28.284553 | 72 | 0.627479 | 493 | 3,479 | 4.342799 | 0.348884 | 0.011677 | 0.033629 | 0.033629 | 0.088744 | 0.078468 | 0.060719 | 0.048575 | 0.048575 | 0 | 0 | 0.005892 | 0.268181 | 3,479 | 122 | 73 | 28.516393 | 0.835035 | 0.50733 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0.02439 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6affc41b95b69a262ac3e3eb689401cbbc182548 | 19,112 | py | Python | AxonDeepSeg/segment.py | sophie685/newfileplzworklord | fbbb03c44dc9e4b0409364b49265f453ac80d3c0 | [
"MIT"
] | null | null | null | AxonDeepSeg/segment.py | sophie685/newfileplzworklord | fbbb03c44dc9e4b0409364b49265f453ac80d3c0 | [
"MIT"
] | 8 | 2020-09-26T00:42:19.000Z | 2022-02-10T00:41:55.000Z | AxonDeepSeg/segment.py | sophie685/newfileplzworklord | fbbb03c44dc9e4b0409364b49265f453ac80d3c0 | [
"MIT"
] | null | null | null | # Segmentation script
# -------------------
# This script lets the user segment automatically one or many images based on the default segmentation models: SEM or
# TEM.
#
# Maxime Wabartha - 2017-08-30
# Imports
import sys
from pathlib import Path
import json
import argparse
from argparse import RawTextHelpFormatter... | 45.075472 | 202 | 0.604071 | 2,238 | 19,112 | 4.950402 | 0.162198 | 0.024822 | 0.023017 | 0.03114 | 0.489936 | 0.465927 | 0.428739 | 0.399404 | 0.395884 | 0.394801 | 0 | 0.006514 | 0.317235 | 19,112 | 423 | 203 | 45.182033 | 0.842517 | 0.203118 | 0 | 0.341667 | 0 | 0.029167 | 0.21826 | 0.023843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.045833 | 0 | 0.091667 | 0.045833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed0176bb36b001f6300ef33bd058b934c1c2ff34 | 2,022 | py | Python | spacy_transformers/tests/regression/test_spacy_issue6401.py | KennethEnevoldsen/spacy-transformers | fa39a94ba276ae3681d14a4b376ea50fadd574b3 | [
"MIT"
] | null | null | null | spacy_transformers/tests/regression/test_spacy_issue6401.py | KennethEnevoldsen/spacy-transformers | fa39a94ba276ae3681d14a4b376ea50fadd574b3 | [
"MIT"
] | null | null | null | spacy_transformers/tests/regression/test_spacy_issue6401.py | KennethEnevoldsen/spacy-transformers | fa39a94ba276ae3681d14a4b376ea50fadd574b3 | [
"MIT"
] | null | null | null | import pytest
from spacy.training.example import Example
from spacy.util import make_tempdir
from spacy import util
from thinc.api import Config
TRAIN_DATA = [
("I'm so happy.", {"cats": {"POSITIVE": 1.0, "NEGATIVE": 0.0}}),
("I'm so angry", {"cats": {"POSITIVE": 0.0, "NEGATIVE": 1.0}}),
]
cfg_string = """
... | 29.304348 | 85 | 0.678536 | 263 | 2,022 | 5.087452 | 0.498099 | 0.050822 | 0.049327 | 0.043348 | 0.058296 | 0.058296 | 0.058296 | 0 | 0 | 0 | 0 | 0.017359 | 0.202275 | 2,022 | 68 | 86 | 29.735294 | 0.812151 | 0.124629 | 0 | 0 | 0 | 0 | 0.381766 | 0.125356 | 0 | 0 | 0 | 0 | 0.042553 | 1 | 0.021277 | false | 0 | 0.106383 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed0376f91f0c41a8fa993fc5f6223d8bbb5eb7cb | 712 | py | Python | hydra/client/repl.py | rpacholek/hydra | 60e3c2eec5ab1fd1dde8e510baa5175173c66a6a | [
"MIT"
] | null | null | null | hydra/client/repl.py | rpacholek/hydra | 60e3c2eec5ab1fd1dde8e510baa5175173c66a6a | [
"MIT"
] | null | null | null | hydra/client/repl.py | rpacholek/hydra | 60e3c2eec5ab1fd1dde8e510baa5175173c66a6a | [
"MIT"
] | null | null | null | import asyncio
from ..core.common.io import input
from .action_creator import ActionCreator
class REPL:
def __init__(self, action_queue, config, *args, **kwargs):
self.action_queue = action_queue
self.config = config
async def run(self):
await asyncio.sleep(1)
print("Insert c... | 28.48 | 62 | 0.58427 | 79 | 712 | 5.063291 | 0.531646 | 0.11 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.327247 | 712 | 24 | 63 | 29.666667 | 0.832985 | 0 | 0 | 0 | 0 | 0 | 0.026685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed037d47b7c87bc348767b05b7307204b77059ed | 35,606 | py | Python | train_dv3.py | drat/Neural-Voice-Cloning-With-Few-Samples | 4febde43ccc143fc88d74d5fa0c5a117636778b4 | [
"MIT"
] | 361 | 2018-08-17T14:37:29.000Z | 2022-03-15T13:04:16.000Z | train_dv3.py | drat/Neural-Voice-Cloning-With-Few-Samples | 4febde43ccc143fc88d74d5fa0c5a117636778b4 | [
"MIT"
] | 22 | 2018-11-25T13:42:26.000Z | 2020-04-29T05:16:25.000Z | train_dv3.py | drat/Neural-Voice-Cloning-With-Few-Samples | 4febde43ccc143fc88d74d5fa0c5a117636778b4 | [
"MIT"
] | 121 | 2018-08-30T03:53:09.000Z | 2022-03-25T09:03:17.000Z | """Trainining script for seq2seq text-to-speech synthesis model.
usage: train.py [options]
options:
--data-root=<dir> Directory contains preprocessed features.
--checkpoint-dir=<dir> Directory where to save model checkpoints [default: checkpoints].
--hparams=<parmas> Hyper param... | 37.559072 | 102 | 0.63068 | 4,493 | 35,606 | 4.747162 | 0.123303 | 0.022036 | 0.008861 | 0.006329 | 0.29992 | 0.235313 | 0.180459 | 0.162736 | 0.140935 | 0.112664 | 0 | 0.011365 | 0.26855 | 35,606 | 947 | 103 | 37.598733 | 0.807595 | 0.074173 | 0 | 0.201175 | 0 | 0 | 0.061081 | 0.007974 | 0 | 0 | 0 | 0 | 0.017621 | 1 | 0.054332 | false | 0.002937 | 0.045521 | 0.008811 | 0.148311 | 0.023495 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed04e3a19994480a40ef35eabbb8a7e09343ee2c | 8,898 | py | Python | audio_som64_u_grupo1.py | andremsouza/swine_sound_analysis | 5583bf91b18e8ad2dcaccb30a94c134e2eab34a5 | [
"MIT"
] | null | null | null | audio_som64_u_grupo1.py | andremsouza/swine_sound_analysis | 5583bf91b18e8ad2dcaccb30a94c134e2eab34a5 | [
"MIT"
] | 1 | 2021-01-20T01:56:42.000Z | 2021-01-20T01:56:42.000Z | audio_som64_u_grupo1.py | andremsouza/swine_sound_analysis | 5583bf91b18e8ad2dcaccb30a94c134e2eab34a5 | [
"MIT"
] | null | null | null | # %% [markdown]
# # Testing python-som with audio dataset
# %% [markdown]
# # Imports
# %%
import matplotlib.pyplot as plt
# import librosa as lr
# import librosa.display as lrdisp
import numpy as np
import pandas as pd
import pickle
import seaborn as sns
import sklearn.preprocessing
from python_som import SOM
FILE... | 30.682759 | 80 | 0.615532 | 1,250 | 8,898 | 4.2336 | 0.22 | 0.020786 | 0.030234 | 0.031746 | 0.552154 | 0.522676 | 0.494709 | 0.479592 | 0.444444 | 0.427438 | 0 | 0.02194 | 0.211171 | 8,898 | 289 | 81 | 30.788927 | 0.732013 | 0.13947 | 0 | 0.512438 | 0 | 0 | 0.142462 | 0.053374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034826 | 0 | 0.034826 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed06ae9dc5fa12b66e8b0650821700fcf43fb094 | 2,286 | py | Python | bindings/pydeck/docs/scripts/embed_examples.py | marsupialmarcos/deck.gl | c9867c1db87e492253865353f68c985019c7c613 | [
"MIT"
] | 2 | 2021-08-11T08:05:51.000Z | 2021-08-11T08:05:54.000Z | bindings/pydeck/docs/scripts/embed_examples.py | marsupialmarcos/deck.gl | c9867c1db87e492253865353f68c985019c7c613 | [
"MIT"
] | null | null | null | bindings/pydeck/docs/scripts/embed_examples.py | marsupialmarcos/deck.gl | c9867c1db87e492253865353f68c985019c7c613 | [
"MIT"
] | null | null | null | """Script to embed pydeck examples into .rst pages with code
These populate the files you see once you click into a grid cell
on the pydeck gallery page
"""
from multiprocessing import Pool
import os
import subprocess
import sys
from const import DECKGL_URL_BASE, EXAMPLE_GLOB, GALLERY_DIR, HTML_DIR, HOSTED_STATIC_PAT... | 35.169231 | 106 | 0.71916 | 343 | 2,286 | 4.48688 | 0.399417 | 0.059129 | 0.066277 | 0.081871 | 0.02729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000542 | 0.192476 | 2,286 | 64 | 107 | 35.71875 | 0.833153 | 0.185477 | 0 | 0 | 0 | 0 | 0.089141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.159091 | 0 | 0.204545 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed0721912431ef604f57495e6aa85dbb0102f18a | 45,482 | py | Python | symbolicR/python/forward_kin.py | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | symbolicR/python/forward_kin.py | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | symbolicR/python/forward_kin.py | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | import numpy as np
import sympy as sp
import re
import os
######################
# #
# 17 16 21 #
# 18 15 22 #
# 19 14 23 #
# 20 01 24 #
# 02 08 #
# 03 09 #
# 04 10 #
# 05 11 #
# 06 12 #
# 07... | 32.348506 | 189 | 0.633767 | 8,305 | 45,482 | 3.231788 | 0.047562 | 0.083458 | 0.123398 | 0.068294 | 0.722392 | 0.664791 | 0.587928 | 0.553279 | 0.52038 | 0.481371 | 0 | 0.03719 | 0.178224 | 45,482 | 1,405 | 190 | 32.37153 | 0.680918 | 0.093641 | 0 | 0.433637 | 0 | 0.002026 | 0.215947 | 0.026066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032421 | false | 0 | 0.004053 | 0.001013 | 0.067882 | 0.092199 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed07be5c12830ff2ea484a69a77d31923d6aa5cb | 1,223 | py | Python | examples/last.py | 0xiso/PyMISP | 20a340414422714dcf31389957343c663550ed1a | [
"BSD-2-Clause"
] | 5 | 2019-08-12T15:21:00.000Z | 2021-10-01T01:50:52.000Z | examples/last.py | DragonDev1906/PyMISP | 5c72dc9c33b4ae850d40ff06dfb05c27f3e80e5d | [
"BSD-2-Clause"
] | null | null | null | examples/last.py | DragonDev1906/PyMISP | 5c72dc9c33b4ae850d40ff06dfb05c27f3e80e5d | [
"BSD-2-Clause"
] | 3 | 2018-11-22T15:33:16.000Z | 2019-09-02T14:23:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pymisp import PyMISP
from keys import misp_url, misp_key, misp_verifycert
import argparse
import os
import json
# Usage for pipe masters: ./last.py -l 5h | jq .
def init(url, key):
return PyMISP(url, key, misp_verifycert, 'json')
def download_last(m, last, o... | 27.795455 | 133 | 0.644317 | 175 | 1,223 | 4.388571 | 0.52 | 0.046875 | 0.028646 | 0.036458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009484 | 0.224039 | 1,223 | 43 | 134 | 28.44186 | 0.799789 | 0.072772 | 0 | 0.142857 | 0 | 0 | 0.216622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0.035714 | 0.285714 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed0cbfaf8410cb124a4ef21f7ca9796ba91008fc | 1,146 | py | Python | experiments/CUB_fewshot_raw/FRN/ResNet-12/train.py | Jf-Chen/FRN-main | 5b57b9e0d7368058a8e3ba41a53c460b54ab9b91 | [
"MIT"
] | 43 | 2021-04-27T23:42:35.000Z | 2022-03-30T02:41:19.000Z | experiments/CUB_fewshot_raw/FRN/ResNet-12/train.py | Jf-Chen/FRN-main | 5b57b9e0d7368058a8e3ba41a53c460b54ab9b91 | [
"MIT"
] | 7 | 2021-05-31T10:38:17.000Z | 2022-01-06T05:20:08.000Z | experiments/CUB_fewshot_raw/FRN/ResNet-12/train.py | Jf-Chen/FRN-main | 5b57b9e0d7368058a8e3ba41a53c460b54ab9b91 | [
"MIT"
] | 7 | 2021-05-18T00:37:46.000Z | 2022-01-23T07:09:51.000Z | import os
import sys
import torch
import yaml
from functools import partial
sys.path.append('../../../../')
from trainers import trainer, frn_train
from datasets import dataloaders
from models.FRN import FRN
args = trainer.train_parser()
with open('../../../../config.yml', 'r') as f:
temp = yaml.safe_load(f)
data... | 30.157895 | 89 | 0.666667 | 153 | 1,146 | 4.745098 | 0.339869 | 0.086777 | 0.053719 | 0.046832 | 0.121212 | 0.121212 | 0.121212 | 0.121212 | 0.121212 | 0.121212 | 0 | 0 | 0.22164 | 1,146 | 38 | 90 | 30.157895 | 0.813901 | 0 | 0 | 0 | 0 | 0 | 0.051439 | 0.01918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
ed0d0fb11e355951942a4b93a958119ead61c53e | 6,037 | py | Python | exp/DFRdatasets/simulate.py | zzzace2000/dropout-feature-rankin | 7769ce822f3c0a6d23167d11f1569f59e56b1266 | [
"CC-BY-4.0"
] | 6 | 2019-02-24T07:31:38.000Z | 2021-12-27T08:57:38.000Z | exp/DFRdatasets/simulate.py | zzzace2000/dropout-feature-rankin | 7769ce822f3c0a6d23167d11f1569f59e56b1266 | [
"CC-BY-4.0"
] | 2 | 2019-01-13T11:49:35.000Z | 2020-05-18T01:59:15.000Z | exp/DFRdatasets/simulate.py | zzzace2000/dropout-feature-rankin | 7769ce822f3c0a6d23167d11f1569f59e56b1266 | [
"CC-BY-4.0"
] | 6 | 2018-11-06T14:17:07.000Z | 2021-11-06T14:30:10.000Z | import argparse
import argparse
import os
import numpy as np
import torch
from dataloaders.LoaderBase import LoaderBase
import exp.feature.feature_utils as feature_utils
def run_with_identifier(unit, corr_val, datasize, rank_names, loader, show_ols=True):
loader.clear_cache()
# Ex: 'nn_rank:0.01'. Then ext... | 41.068027 | 98 | 0.629617 | 766 | 6,037 | 4.723238 | 0.244125 | 0.059701 | 0.112769 | 0.024876 | 0.247651 | 0.204533 | 0.204533 | 0.16639 | 0.077944 | 0.050857 | 0 | 0.019533 | 0.219811 | 6,037 | 146 | 99 | 41.349315 | 0.74862 | 0.186848 | 0 | 0.059406 | 0 | 0 | 0.155956 | 0.014327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029703 | false | 0 | 0.069307 | 0 | 0.118812 | 0.049505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed0ede6f5172ebc43a6bba82ff98dc80379f3c8f | 10,696 | py | Python | ucsmsdk/mometa/adaptor/AdaptorMenloQStats.py | thinkitdata/ucsmsdk | da6599e1dbc1207a30eabe548a7e5791af5f476b | [
"Apache-2.0"
] | null | null | null | ucsmsdk/mometa/adaptor/AdaptorMenloQStats.py | thinkitdata/ucsmsdk | da6599e1dbc1207a30eabe548a7e5791af5f476b | [
"Apache-2.0"
] | null | null | null | ucsmsdk/mometa/adaptor/AdaptorMenloQStats.py | thinkitdata/ucsmsdk | da6599e1dbc1207a30eabe548a7e5791af5f476b | [
"Apache-2.0"
] | null | null | null | """This module contains the general information for AdaptorMenloQStats ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class AdaptorMenloQStatsConsts:
MENLO_QUEUE_COMPONENT_N = "N"
MENLO_QUEUE_COMPONENT_CPU = "cpu"
... | 76.94964 | 277 | 0.708022 | 1,159 | 10,696 | 6.181191 | 0.120794 | 0.094919 | 0.092127 | 0.156337 | 0.551787 | 0.393774 | 0.299693 | 0.294668 | 0.293132 | 0.266611 | 0 | 0.031715 | 0.150991 | 10,696 | 138 | 278 | 77.507246 | 0.757185 | 0.010845 | 0 | 0 | 0 | 0.032 | 0.345066 | 0.223768 | 0 | 0 | 0.001135 | 0 | 0 | 1 | 0.008 | false | 0 | 0.024 | 0 | 0.216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed10c3db0c256d5bebae34542a471bf7c8fc94ae | 6,829 | py | Python | src/RS_model/train_mlp.py | CindyChen1995/MKR | f9ae37903dcf43b6d101dfc08644ce4a29ecbf9d | [
"MIT"
] | null | null | null | src/RS_model/train_mlp.py | CindyChen1995/MKR | f9ae37903dcf43b6d101dfc08644ce4a29ecbf9d | [
"MIT"
] | null | null | null | src/RS_model/train_mlp.py | CindyChen1995/MKR | f9ae37903dcf43b6d101dfc08644ce4a29ecbf9d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
Description :
Author : cmy
date: 2020/1/2
-------------------------------------------------
"""
import datetime
import heapq
import numpy as np
import tensorflow as tf
import time
from metrics import ndcg_at_k
from tr... | 41.387879 | 130 | 0.516767 | 912 | 6,829 | 3.623904 | 0.174342 | 0.02118 | 0.030257 | 0.019062 | 0.273828 | 0.24115 | 0.214826 | 0.209985 | 0.16944 | 0.137368 | 0 | 0.020215 | 0.333577 | 6,829 | 165 | 131 | 41.387879 | 0.705999 | 0.086689 | 0 | 0.117188 | 0 | 0.007813 | 0.055779 | 0.005465 | 0.03125 | 0 | 0 | 0 | 0 | 1 | 0.023438 | false | 0 | 0.070313 | 0 | 0.109375 | 0.132813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed12384bdaa43735e81fa807c26ed334db11e7a1 | 84,211 | py | Python | pylipid.py | glass-w/PyLipID | ee29f92ba6187cd22b9554a599177152ebed9c4c | [
"MIT"
] | null | null | null | pylipid.py | glass-w/PyLipID | ee29f92ba6187cd22b9554a599177152ebed9c4c | [
"MIT"
] | null | null | null | pylipid.py | glass-w/PyLipID | ee29f92ba6187cd22b9554a599177152ebed9c4c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 28 19:28:17 2019
@author: Wanling Song
"""
import mdtraj as md
import numpy as np
import pandas as pd
import argparse
import sys
from collections import defaultdict
import pickle
import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.p... | 62.332346 | 227 | 0.574723 | 10,588 | 84,211 | 4.346713 | 0.090008 | 0.01408 | 0.013558 | 0.007648 | 0.494405 | 0.426287 | 0.361102 | 0.310171 | 0.283467 | 0.253851 | 0 | 0.020265 | 0.274537 | 84,211 | 1,350 | 228 | 62.378519 | 0.733075 | 0.018941 | 0 | 0.20678 | 0 | 0.033898 | 0.129863 | 0.026538 | 0 | 0 | 0 | 0 | 0.000847 | 1 | 0.014407 | false | 0 | 0.026271 | 0.000847 | 0.058475 | 0.004237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed123b848cc69e55c673d2f62ec3999397f7c2b8 | 547 | py | Python | main.py | yaakiyu/rt-bot | f68bca95c516e08c31ecc846524dcea4c8ba1503 | [
"BSD-4-Clause"
] | null | null | null | main.py | yaakiyu/rt-bot | f68bca95c516e08c31ecc846524dcea4c8ba1503 | [
"BSD-4-Clause"
] | null | null | null | main.py | yaakiyu/rt-bot | f68bca95c516e08c31ecc846524dcea4c8ba1503 | [
"BSD-4-Clause"
] | null | null | null | # RT by Rext
from asyncio import run
from discord import Intents, Status, Game, AllowedMentions
from core.bot import RT
from data import SECRET
try: from uvloop import install
except ModuleNotFoundError: ...
else: install()
intents = Intents.default()
intents.message_content = True
intents.members = True
bot = RT... | 21.038462 | 70 | 0.753199 | 72 | 547 | 5.694444 | 0.569444 | 0.063415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131627 | 547 | 26 | 71 | 21.038462 | 0.863158 | 0.018282 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.294118 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed1329b2789d579e2ef82e7b330a86a58150d0b6 | 13,014 | py | Python | hiplot/fetchers_demo.py | dmitryvinn/hiplot | 52fe8b195a4e254240eb1a0847953fa3c1957a43 | [
"MIT"
] | 1 | 2022-03-21T15:46:17.000Z | 2022-03-21T15:46:17.000Z | hiplot/fetchers_demo.py | ai2ys/hiplot | 148f7c4eba11c6393957a819169f3cf07c469bec | [
"MIT"
] | null | null | null | hiplot/fetchers_demo.py | ai2ys/hiplot | 148f7c4eba11c6393957a819169f3cf07c469bec | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import uuid
import random
import math
import time
import typing as t
from . import experiment as hip
# Demos from the README. If one of those ... | 34.247368 | 140 | 0.593592 | 1,749 | 13,014 | 4.242424 | 0.171527 | 0.070081 | 0.029784 | 0.043801 | 0.336388 | 0.189084 | 0.14434 | 0.1031 | 0.081536 | 0.058625 | 0 | 0.03507 | 0.250653 | 13,014 | 379 | 141 | 34.337731 | 0.7258 | 0.08245 | 0 | 0.216949 | 0 | 0 | 0.159039 | 0.025863 | 0 | 0 | 0 | 0 | 0.00339 | 1 | 0.084746 | false | 0 | 0.020339 | 0.020339 | 0.189831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed14a6749afbe24501971f360abe8e3e8754902d | 423 | py | Python | barcode.py | kallangerard/grocery-barcode-scanner | 0a866c5b20c43355b642c0b78ba09d5cf4b0383c | [
"MIT"
] | null | null | null | barcode.py | kallangerard/grocery-barcode-scanner | 0a866c5b20c43355b642c0b78ba09d5cf4b0383c | [
"MIT"
] | null | null | null | barcode.py | kallangerard/grocery-barcode-scanner | 0a866c5b20c43355b642c0b78ba09d5cf4b0383c | [
"MIT"
] | null | null | null | import logging
import groceries.api as groceries
import barcodescanner.scan as barcode
def main():
grocy = groceries.GrocyAPIClient()
while True:
scanner = barcode.Scan()
line = scanner.PollScanner()
if line != None:
response = grocy.consume_barcode(line)
loggin... | 22.263158 | 50 | 0.65721 | 45 | 423 | 5.977778 | 0.555556 | 0.089219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248227 | 423 | 18 | 51 | 23.5 | 0.845912 | 0 | 0 | 0 | 0 | 0 | 0.018913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 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 |
ed152979dba20d65fa46d571939edbfd7eb69a09 | 790 | py | Python | setup.py | mr-sk/easy-icm-runner | 01cf9d7d8e4ef13afc18dbdda2862035121f3624 | [
"MIT"
] | null | null | null | setup.py | mr-sk/easy-icm-runner | 01cf9d7d8e4ef13afc18dbdda2862035121f3624 | [
"MIT"
] | null | null | null | setup.py | mr-sk/easy-icm-runner | 01cf9d7d8e4ef13afc18dbdda2862035121f3624 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="easy-icm-runner",
version="1.0.6",
author="Bachir El Koussa",
author_email="bgkoussa@gmail.com",
description="A wrapper for IBM ICMs Scheduler API Calls",
long_description=long_descrip... | 30.384615 | 93 | 0.641772 | 89 | 790 | 5.573034 | 0.752809 | 0.120968 | 0.052419 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006319 | 0.198734 | 790 | 25 | 94 | 31.6 | 0.777251 | 0.111392 | 0 | 0.090909 | 0 | 0 | 0.419401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed17f5890d6b8f37c6b6d897dfdeee0fd244dace | 544 | py | Python | config.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | config.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | config.py | lyth031/ptb_lm | 71f687fdf41c6b981a306269c1341ea8a8347bb6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class Config(object):
def __init__(self):
self.init_scale = 0.1
self.learning_rate = 1.0
self.max_grad_norm = 5
self.num_layers = 2
self.slice_size = 30
self.hidden_size = 200
self.max_epoch = 13
self.keep_prob = 0.8
se... | 24.727273 | 44 | 0.549632 | 77 | 544 | 3.61039 | 0.597403 | 0.05036 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071625 | 0.332721 | 544 | 21 | 45 | 25.904762 | 0.694215 | 0.038603 | 0 | 0 | 0 | 0 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed1909657faffd879b4424a3c02025a1afc7ff54 | 1,272 | py | Python | pymel/__init__.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | pymel/__init__.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null | pymel/__init__.py | GlenWalker/pymel | 8b69b72e1bb726a66792707af39626a987bf5c21 | [
"BSD-3-Clause"
] | null | null | null |
# copyright Chad Dombrova chadd@luma-pictures.com
# created at luma pictures www.luma-pictures.com
"""
*******************************
PyMEL
*******************************
PyMEL makes python scripting in Maya work the way it should. Maya's command module is a direct
translation of MEL commands into p... | 37.411765 | 116 | 0.676887 | 166 | 1,272 | 5 | 0.668675 | 0.057831 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011132 | 0.152516 | 1,272 | 33 | 117 | 38.545455 | 0.758813 | 0.71305 | 0 | 0 | 0 | 0 | 0.342776 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed1aeb45638b0f4e22adf71d2445a7c3b1908ff3 | 3,121 | py | Python | Fusion/deltat.py | coylen/pySG | 6af1b8387c256f8898e2198c635c8e4b72ec3942 | [
"MIT"
] | 264 | 2015-10-07T19:31:15.000Z | 2022-03-31T23:34:59.000Z | deltat.py | CharlesAO/micropython-fusion | fe72a6870357c8f9b1cae78b98564412382943d9 | [
"MIT"
] | 14 | 2015-11-13T02:40:30.000Z | 2022-01-22T10:44:48.000Z | deltat.py | CharlesAO/micropython-fusion | fe72a6870357c8f9b1cae78b98564412382943d9 | [
"MIT"
] | 75 | 2015-12-12T00:26:28.000Z | 2022-03-23T13:32:30.000Z | # deltat.py time difference calculation for sensor fusion
# Released under the MIT License (MIT)
# Copyright (c) 2018 Peter Hinch
# Provides TimeDiff function and DeltaT class.
# The following notes cover special cases. Where the device performing fusion
# is linked to the IMU and is running MicroPython no special tre... | 41.065789 | 97 | 0.707786 | 451 | 3,121 | 4.831486 | 0.379157 | 0.024782 | 0.035796 | 0.018357 | 0.079853 | 0.029371 | 0.029371 | 0 | 0 | 0 | 0 | 0.012236 | 0.240628 | 3,121 | 75 | 98 | 41.613333 | 0.907173 | 0.621275 | 0 | 0.25 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed1b14ee7367d8cae14cb322f5cd81df68be3c15 | 11,336 | py | Python | colour/models/rgb/datasets/sony.py | wenh06/colour | 445fdad2711ae39c95b4375166905568d24a95f4 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T01:53:40.000Z | 2021-09-09T01:53:40.000Z | colour/models/rgb/datasets/sony.py | wenh06/colour | 445fdad2711ae39c95b4375166905568d24a95f4 | [
"BSD-3-Clause"
] | null | null | null | colour/models/rgb/datasets/sony.py | wenh06/colour | 445fdad2711ae39c95b4375166905568d24a95f4 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Sony Colourspaces
=================
Defines the *Sony* colourspaces:
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3_CINE`.
- :attr:`colour.models.RGB_COLOURSPACE_VENICE_S_GAMUT3`.
- ... | 28.918367 | 81 | 0.763585 | 1,548 | 11,336 | 5.144703 | 0.152455 | 0.123933 | 0.117529 | 0.076846 | 0.728152 | 0.681065 | 0.549724 | 0.464591 | 0.34003 | 0.257785 | 0 | 0.097827 | 0.119001 | 11,336 | 391 | 82 | 28.992327 | 0.699609 | 0.188691 | 0 | 0.176136 | 0 | 0 | 0.272826 | 0.169164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.022727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed1b3de2cf4ee0d6a94657c3843653ea66d9ad27 | 723 | py | Python | network.py | QiaoZhongzheng/EWC-sample-PMNIST | cd5e10b401582ab7f0dcd7a1e38aed6552192484 | [
"MIT"
] | null | null | null | network.py | QiaoZhongzheng/EWC-sample-PMNIST | cd5e10b401582ab7f0dcd7a1e38aed6552192484 | [
"MIT"
] | null | null | null | network.py | QiaoZhongzheng/EWC-sample-PMNIST | cd5e10b401582ab7f0dcd7a1e38aed6552192484 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
'''=================================================
@Project -> File :EWC -> network
@IDE :PyCharm
@Author :Qiao Zhongzheng
@Date :2021/6/23 20:28
@Desc :
=================================================='''
from tensorflow.keras import Model
from tensorflow.keras.layers import Dense,... | 36.15 | 83 | 0.562932 | 85 | 723 | 4.788235 | 0.576471 | 0.07371 | 0.081081 | 0.09828 | 0.275184 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05475 | 0.141079 | 723 | 20 | 84 | 36.15 | 0.600644 | 0.477178 | 0 | 0 | 0 | 0 | 0.072973 | 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 |
ed1ce2b7ae05d6c1c0bdabe48547eeeb53fe25e1 | 1,949 | py | Python | src/deep_dialog/usersims/usersim.py | CommissarSilver/TC-Bot | 4579706a18028b5da9b8a7807fb2e2d4043dcaf8 | [
"MIT"
] | 1 | 2021-05-29T01:32:49.000Z | 2021-05-29T01:32:49.000Z | D3Q/src/deep_dialog/usersims/usersim.py | Yuqing2018/D3Q_Python3 | 2a9918494e3f0ed18f9b7560b1e6f13119fbee91 | [
"MIT"
] | null | null | null | D3Q/src/deep_dialog/usersims/usersim.py | Yuqing2018/D3Q_Python3 | 2a9918494e3f0ed18f9b7560b1e6f13119fbee91 | [
"MIT"
] | null | null | null |
"""
Created on June 7, 2016
a rule-based user simulator
@author: xiul, t-zalipt
"""
import random
class UserSimulator:
""" Parent class for all user sims to inherit from """
def __init__(self, movie_dict=None, act_set=None, slot_set=None, start_set=None, params=None):
""" Construc... | 30.453125 | 99 | 0.606978 | 248 | 1,949 | 4.443548 | 0.358871 | 0.072595 | 0.036298 | 0.027223 | 0.058076 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005109 | 0.297075 | 1,949 | 64 | 100 | 30.453125 | 0.79927 | 0.146742 | 0 | 0 | 0 | 0 | 0.09834 | 0.014049 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.193548 | false | 0.032258 | 0.032258 | 0 | 0.290323 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2176e9a9c0aa2fe888859654d1422302e6cce3 | 325 | py | Python | hackerrank/Algorithms/Correctness and the Loop Invariant/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Correctness and the Loop Invariant/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Correctness and the Loop Invariant/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | def insertion_sort(l):
for i in range(1, len(l)):
j = i - 1
key = l[i]
while (j >= 0) and (l[j] > key):
l[j + 1] = l[j]
j -= 1
l[j + 1] = key
m = int(input().strip())
ar = [int(i) for i in input().strip().split()]
insertion_sort(ar)
print(" ".join(map(str, a... | 21.666667 | 46 | 0.443077 | 56 | 325 | 2.535714 | 0.446429 | 0.070423 | 0.084507 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.344615 | 325 | 14 | 47 | 23.214286 | 0.638498 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2393de8d1d80d0e5b9c6610dd11fbf42e62a83 | 18,305 | py | Python | tests/scripts/thread-cert/thread_cert.py | lmaciejonczyk/openthread | 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c | [
"BSD-3-Clause"
] | null | null | null | tests/scripts/thread-cert/thread_cert.py | lmaciejonczyk/openthread | 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c | [
"BSD-3-Clause"
] | null | null | null | tests/scripts/thread-cert/thread_cert.py | lmaciejonczyk/openthread | 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2019, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# ... | 36.536926 | 170 | 0.607648 | 2,163 | 18,305 | 4.90846 | 0.218215 | 0.030517 | 0.021663 | 0.023265 | 0.233776 | 0.178864 | 0.144862 | 0.107469 | 0.076575 | 0.076575 | 0 | 0.005246 | 0.291887 | 18,305 | 500 | 171 | 36.61 | 0.81384 | 0.138978 | 0 | 0.164671 | 0 | 0.008982 | 0.13348 | 0.024599 | 0 | 0 | 0.001554 | 0 | 0.011976 | 1 | 0.092814 | false | 0.005988 | 0.047904 | 0.002994 | 0.203593 | 0.011976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed242bad81da2f05250a803d492c40b86c9b59d3 | 1,770 | py | Python | FaceMaskDetection with webcam.py | Anurag-Varma/facemask-detection | 9ac681261e246e6ab1837c576d933dc7324e3a92 | [
"MIT"
] | 1 | 2021-07-13T09:16:12.000Z | 2021-07-13T09:16:12.000Z | FaceMaskDetection with webcam.py | Anurag-Varma/facemask-detection | 9ac681261e246e6ab1837c576d933dc7324e3a92 | [
"MIT"
] | null | null | null | FaceMaskDetection with webcam.py | Anurag-Varma/facemask-detection | 9ac681261e246e6ab1837c576d933dc7324e3a92 | [
"MIT"
] | null | null | null |
import cv2
import numpy as np
from keras.models import model_from_json
from keras.preprocessing.image import img_to_array
#load model
model = model_from_json(open("fer.json", "r").read()) #change the path accoring to files
#load weights
model.load_weights('fer.h5') #change the path accor... | 28.095238 | 124 | 0.641243 | 275 | 1,770 | 4.043636 | 0.454545 | 0.024281 | 0.035072 | 0.056655 | 0.091727 | 0.07554 | 0 | 0 | 0 | 0 | 0 | 0.055914 | 0.211864 | 1,770 | 63 | 125 | 28.095238 | 0.741219 | 0.092655 | 0 | 0 | 0 | 0 | 0.088806 | 0.036273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed24c0adb8cc7ebd6871903b985fa571a276f939 | 5,391 | py | Python | toggl.py | ulrikpedersen/toggl-gnome-applet | ae48358414d14d44ef5731c59f1813bac97e3257 | [
"Unlicense"
] | null | null | null | toggl.py | ulrikpedersen/toggl-gnome-applet | ae48358414d14d44ef5731c59f1813bac97e3257 | [
"Unlicense"
] | 1 | 2017-11-21T09:36:06.000Z | 2017-11-21T09:36:06.000Z | toggl.py | ulrikpedersen/toggl-gnome-applet | ae48358414d14d44ef5731c59f1813bac97e3257 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import logging
from datetime import datetime
logging.basicConfig(level=logging.WARNING)
import os
import urllib2, base64, json
import dateutil.parser
def from_ISO8601( str_iso8601 ):
return dateutil.parser.parse(str_iso8601)
def to_ISO8601( timestamp ):
return timestamp.isoformat()
de... | 38.234043 | 116 | 0.586533 | 682 | 5,391 | 4.472141 | 0.280059 | 0.034426 | 0.047213 | 0.034426 | 0.218689 | 0.179016 | 0.179016 | 0.127541 | 0.105246 | 0.069836 | 0 | 0.01632 | 0.295307 | 5,391 | 141 | 117 | 38.234043 | 0.786523 | 0.148024 | 0 | 0.07619 | 0 | 0 | 0.12829 | 0.032073 | 0 | 0 | 0 | 0.007092 | 0 | 1 | 0.114286 | false | 0.019048 | 0.047619 | 0.019048 | 0.27619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2565f6739ecf83e80e8445b8eb480489832a2d | 432 | py | Python | gs_divergence/symmetrized_geodesical_skew_divergence.py | ISMHinoLab/geodesical_skew_divergence | 293648a30e86bdd14749af5b107f1d3687d67700 | [
"MIT"
] | 7 | 2021-04-01T09:21:49.000Z | 2022-03-24T05:28:22.000Z | gs_divergence/symmetrized_geodesical_skew_divergence.py | ISMHinoLab/geodesical_skew_divergence | 293648a30e86bdd14749af5b107f1d3687d67700 | [
"MIT"
] | 21 | 2021-04-01T02:56:54.000Z | 2021-05-07T01:02:09.000Z | gs_divergence/symmetrized_geodesical_skew_divergence.py | ISMHinoLab/geodesical_skew_divergence | 293648a30e86bdd14749af5b107f1d3687d67700 | [
"MIT"
] | 2 | 2021-04-12T15:00:17.000Z | 2021-04-26T03:10:26.000Z | from typing import Optional
import torch
from gs_divergence import gs_div
def symmetrized_gs_div(
input: torch.Tensor,
target: torch.Tensor,
alpha: float = -1,
lmd: float = 0.5,
reduction: Optional[str] = 'sum',
) -> torch.Tensor:
lhs = gs_div(input, target, alpha=alpha, lmd=lmd, reduction=re... | 24 | 74 | 0.680556 | 61 | 432 | 4.721311 | 0.42623 | 0.069444 | 0.069444 | 0.111111 | 0.236111 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0.011594 | 0.201389 | 432 | 17 | 75 | 25.411765 | 0.823188 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed25675ecd1960dc8b520c3cb84ff43fb7cab0a0 | 1,946 | py | Python | train.py | kushaliitm/deep-learning | ab8e23d1414d3b79bbe4a3acd57a475f6def7277 | [
"MIT"
] | null | null | null | train.py | kushaliitm/deep-learning | ab8e23d1414d3b79bbe4a3acd57a475f6def7277 | [
"MIT"
] | null | null | null | train.py | kushaliitm/deep-learning | ab8e23d1414d3b79bbe4a3acd57a475f6def7277 | [
"MIT"
] | null | null | null | import argparse
import helper as hp
import torch
import os
import json
parser = argparse.ArgumentParser(description = 'train.py')
parser.add_argument('--data-dir', nargs = '*', action = "store", default = "./flowers/", help = "folder path for data")
parser.add_argument('--save-dir', action = "store", required=True, h... | 37.423077 | 155 | 0.731757 | 274 | 1,946 | 5.058394 | 0.364964 | 0.045455 | 0.085859 | 0.054834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009913 | 0.118705 | 1,946 | 51 | 156 | 38.156863 | 0.798251 | 0.052929 | 0 | 0 | 0 | 0 | 0.335874 | 0.064235 | 0 | 0 | 0 | 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 |
ed261100e8ba320319dd45fa75984055274a92f9 | 11,020 | py | Python | models/blip.py | lmathia2/BLIP | 8ca42256e83654858856d40886509be8fbca51a7 | [
"BSD-3-Clause"
] | null | null | null | models/blip.py | lmathia2/BLIP | 8ca42256e83654858856d40886509be8fbca51a7 | [
"BSD-3-Clause"
] | null | null | null | models/blip.py | lmathia2/BLIP | 8ca42256e83654858856d40886509be8fbca51a7 | [
"BSD-3-Clause"
] | null | null | null | '''
* Copyright (c) 2022, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
* By Junnan Li
'''
import warnings
warnings.filterwarnings("ignore")
from models.vit import V... | 45.916667 | 128 | 0.551996 | 1,169 | 11,020 | 4.905902 | 0.205304 | 0.023714 | 0.018134 | 0.014647 | 0.506016 | 0.465911 | 0.447428 | 0.433304 | 0.425981 | 0.398256 | 0 | 0.010323 | 0.36706 | 11,020 | 239 | 129 | 46.108787 | 0.8119 | 0.062886 | 0 | 0.356725 | 0 | 0 | 0.052467 | 0.023493 | 0 | 0 | 0 | 0 | 0.023392 | 1 | 0.064327 | false | 0 | 0.05848 | 0 | 0.19883 | 0.005848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed26aa5f1dfa9b893282f08b252dba7679012685 | 28,524 | py | Python | venv/Lib/site-packages/pandas/tests/reshape/merge/test_multi.py | OliviaNabbosa89/Disaster_Responses | 1e66d77c303cec685dfc2ca94f4fca4cc9400570 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tests/reshape/merge/test_multi.py | OliviaNabbosa89/Disaster_Responses | 1e66d77c303cec685dfc2ca94f4fca4cc9400570 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pandas/tests/reshape/merge/test_multi.py | OliviaNabbosa89/Disaster_Responses | 1e66d77c303cec685dfc2ca94f4fca4cc9400570 | [
"MIT"
] | null | null | null | import numpy as np
from numpy.random import randn
import pytest
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series
import pandas._testing as tm
from pandas.core.reshape.concat import concat
from pandas.core.reshape.merge import merge
@pytest.fixture
def left():
"""left dataf... | 33.876485 | 89 | 0.425186 | 3,037 | 28,524 | 3.872242 | 0.128416 | 0.021769 | 0.033163 | 0.045918 | 0.603401 | 0.551616 | 0.504337 | 0.464456 | 0.406378 | 0.375 | 0 | 0.088753 | 0.408673 | 28,524 | 841 | 90 | 33.916766 | 0.608466 | 0.021526 | 0 | 0.454412 | 0 | 0 | 0.099826 | 0 | 0 | 0 | 0 | 0 | 0.057353 | 1 | 0.039706 | false | 0 | 0.011765 | 0.005882 | 0.064706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed26d3056f6a5641259d87e73533b42ec4832318 | 11,894 | py | Python | test/api/test_histories.py | mmiladi/galaxy | 7857b152cd10d9490ac2433ff2905ca1a47ee32c | [
"CC-BY-3.0"
] | 1 | 2021-04-26T08:46:21.000Z | 2021-04-26T08:46:21.000Z | test/api/test_histories.py | mmiladi/galaxy | 7857b152cd10d9490ac2433ff2905ca1a47ee32c | [
"CC-BY-3.0"
] | null | null | null | test/api/test_histories.py | mmiladi/galaxy | 7857b152cd10d9490ac2433ff2905ca1a47ee32c | [
"CC-BY-3.0"
] | 1 | 2018-12-09T13:50:28.000Z | 2018-12-09T13:50:28.000Z | # -*- coding: utf-8 -*-
from requests import (
get,
post,
put
)
from base import api # noqa: I100
from base.populators import ( # noqa: I100
DatasetCollectionPopulator,
DatasetPopulator,
wait_on
)
class HistoriesApiTestCase(api.ApiTestCase):
def setUp(self):
super(HistoriesApiT... | 41.442509 | 105 | 0.673701 | 1,443 | 11,894 | 5.202356 | 0.142065 | 0.098308 | 0.034634 | 0.039963 | 0.465299 | 0.362195 | 0.261622 | 0.234714 | 0.22126 | 0.214999 | 0 | 0.010303 | 0.21658 | 11,894 | 286 | 106 | 41.587413 | 0.795342 | 0.040609 | 0 | 0.197183 | 0 | 0 | 0.129092 | 0.028697 | 0 | 0 | 0 | 0.003497 | 0.244131 | 1 | 0.112676 | false | 0 | 0.122066 | 0.004695 | 0.28169 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed275088d36ba770ab503299abfac84060ea0475 | 2,136 | py | Python | AllProjects/Projects/Spider/DownloadImage.py | CoderXAndZ/PycharmProjects | 94b3cc68d39614a4291bd63d4811dab61eb2e64a | [
"MIT"
] | 3 | 2018-08-30T03:53:25.000Z | 2020-07-02T09:27:39.000Z | Spider/DownloadImage.py | CoderXAndZ/Python_demo | b1b1067f3ee2de82b4b2678ac9d09a5a0bf7d698 | [
"MIT"
] | null | null | null | Spider/DownloadImage.py | CoderXAndZ/Python_demo | b1b1067f3ee2de82b4b2678ac9d09a5a0bf7d698 | [
"MIT"
] | 4 | 2020-07-01T02:29:33.000Z | 2021-06-07T09:32:30.000Z | #! /usr/local/bin/python3
# -*- coding: UTF-8 -*-
# 抓取 妹子图 并存储
import urllib.request
import os
import random
def open_url(url):
request = urllib.request.Request(url)
request.add_header('User-Agent',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0')
... | 24.837209 | 108 | 0.586142 | 303 | 2,136 | 4 | 0.452145 | 0.066832 | 0.024752 | 0.023102 | 0.107261 | 0.044554 | 0.044554 | 0.044554 | 0 | 0 | 0 | 0.050346 | 0.256086 | 2,136 | 86 | 109 | 24.837209 | 0.712398 | 0.059457 | 0 | 0.035088 | 0 | 0.017544 | 0.154732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.052632 | 0 | 0.192982 | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2762c6cacc123594407c4391a955c0922acc79 | 7,324 | py | Python | utility/extractor_batch.py | BA-HanseML/NF_Prj_MIMII_Dataset | c9dd130a48c5ee28491a3f9369ace8f7217753d6 | [
"MIT"
] | 10 | 2020-08-25T21:12:32.000Z | 2021-11-04T22:14:37.000Z | utility/extractor_batch.py | BA-HanseML/NF_Prj_MIMII_Dataset | c9dd130a48c5ee28491a3f9369ace8f7217753d6 | [
"MIT"
] | 44 | 2020-05-04T11:37:55.000Z | 2021-09-26T04:12:23.000Z | utility/extractor_batch.py | ArneSch/NF_Prj_MIMII_Dataset | c9dd130a48c5ee28491a3f9369ace8f7217753d6 | [
"MIT"
] | 4 | 2020-11-24T02:14:13.000Z | 2021-07-01T08:52:59.000Z | print('load extractor_batch')
# Utility to run multiple feature extraction
# diagrams over many files with multiple threats
import pandas as pd
import os
import sys
import glob
from tqdm.auto import tqdm
from queue import Queue
from threading import Thread
from datetime import datetime
import time
im... | 38.34555 | 120 | 0.497679 | 780 | 7,324 | 4.542308 | 0.297436 | 0.031047 | 0.023709 | 0.031047 | 0.151284 | 0.127576 | 0.099915 | 0.059272 | 0.059272 | 0.035563 | 0 | 0.005068 | 0.407291 | 7,324 | 191 | 121 | 38.34555 | 0.811103 | 0.087111 | 0 | 0.066225 | 0 | 0 | 0.075973 | 0.014515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066225 | false | 0 | 0.066225 | 0 | 0.172185 | 0.019868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed27ebcd5adfdfd408f83681c96698af5592ab3f | 393 | py | Python | multitenancy/context_processors.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | multitenancy/context_processors.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | multitenancy/context_processors.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | from .models import Tenant
def tenant(request):
"""
Return context variables required by apps that use django-site-multitenancy.
If there is no 'tenant' attribute in the request, extract one from the request.
"""
if hasattr(request, 'tenant'):
tenant = request.tenant
else:
ten... | 24.5625 | 83 | 0.6743 | 49 | 393 | 5.387755 | 0.632653 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234097 | 393 | 15 | 84 | 26.2 | 0.877076 | 0.399491 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2903bbc29759d94352b5e8a5d0370e20ce8b16 | 361 | py | Python | pset_classes/class_basics/solutions/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_classes/class_basics/solutions/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_classes/class_basics/solutions/p1.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
Person class
"""
# Create a Person class with the following properties
# 1. name
# 2. age
# 3. social security number
class Person:
def __init__(self, name, age, social_number):
self.name = name
self.age = age
self.social = social_number
p1 = Person("John", 36, "111-11-1111")
print... | 15.695652 | 53 | 0.645429 | 53 | 361 | 4.283019 | 0.490566 | 0.092511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.227147 | 361 | 22 | 54 | 16.409091 | 0.749104 | 0.293629 | 0 | 0 | 0 | 0 | 0.061475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed29375d22bb9febc1771fb6ca4eaac661a4c75a | 19,452 | py | Python | python/paddle/fluid/contrib/slim/tests/test_imperative_out_scale.py | huangxu96/Paddle | 372ac08a171d76c745deaab0feed2d587798f734 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/contrib/slim/tests/test_imperative_out_scale.py | huangxu96/Paddle | 372ac08a171d76c745deaab0feed2d587798f734 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/contrib/slim/tests/test_imperative_out_scale.py | huangxu96/Paddle | 372ac08a171d76c745deaab0feed2d587798f734 | [
"Apache-2.0"
] | null | null | null | # copyright (c) 2018 paddlepaddle authors. all rights reserved.
#
# licensed under the apache license, version 2.0 (the "license");
# you may not use this file except in compliance with the license.
# you may obtain a copy of the license at
#
# http://www.apache.org/licenses/license-2.0
#
# unless required by app... | 38.826347 | 127 | 0.585955 | 2,232 | 19,452 | 4.814964 | 0.177419 | 0.015074 | 0.030148 | 0.036847 | 0.476226 | 0.425793 | 0.381781 | 0.3494 | 0.3427 | 0.311715 | 0 | 0.021148 | 0.316934 | 19,452 | 500 | 128 | 38.904 | 0.787687 | 0.034649 | 0 | 0.369412 | 0 | 0 | 0.07128 | 0.030389 | 0 | 0 | 0 | 0 | 0.018824 | 1 | 0.018824 | false | 0.018824 | 0.051765 | 0 | 0.089412 | 0.002353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed297c05f15fda89099111b92e19812bf53e5838 | 4,289 | py | Python | grr/server/hunts/results.py | nickamon/grr | ad1936c74728de00db90f6fafa47892b54cfc92d | [
"Apache-2.0"
] | null | null | null | grr/server/hunts/results.py | nickamon/grr | ad1936c74728de00db90f6fafa47892b54cfc92d | [
"Apache-2.0"
] | 1 | 2018-05-08T21:15:51.000Z | 2018-05-08T21:15:51.000Z | grr/server/hunts/results.py | nickamon/grr | ad1936c74728de00db90f6fafa47892b54cfc92d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Classes to store and manage hunt results.
"""
from grr.lib import rdfvalue
from grr.lib import registry
from grr.lib.rdfvalues import structs as rdf_structs
from grr_response_proto import jobs_pb2
from grr.server import access_control
from grr.server import aff4
from grr.server import data_sto... | 30.41844 | 80 | 0.669853 | 458 | 4,289 | 6.131004 | 0.362445 | 0.022436 | 0.023148 | 0.027066 | 0.055556 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.010117 | 0.262532 | 4,289 | 140 | 81 | 30.635714 | 0.877648 | 0.22616 | 0 | 0.129032 | 0 | 0 | 0.009895 | 0.007421 | 0 | 0 | 0 | 0.007143 | 0 | 1 | 0.075269 | false | 0.021505 | 0.096774 | 0.010753 | 0.311828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed298e1020b52cd93721c03300f989d51ef1134b | 4,748 | py | Python | src/simple_sharepoint/site.py | NodeJSmith/py-simple-rest-sharepoint | 77ee5f76364e7b6096228945ed7e3bd637214a66 | [
"MIT"
] | null | null | null | src/simple_sharepoint/site.py | NodeJSmith/py-simple-rest-sharepoint | 77ee5f76364e7b6096228945ed7e3bd637214a66 | [
"MIT"
] | null | null | null | src/simple_sharepoint/site.py | NodeJSmith/py-simple-rest-sharepoint | 77ee5f76364e7b6096228945ed7e3bd637214a66 | [
"MIT"
] | null | null | null | """
Module for higher level SharePoint REST api actions - utilize methods in the api.py module
"""
class Site():
def __init__(self, sp):
self.sp = sp
@property
def info(self):
endpoint = "_api/site"
value = self.sp.get(endpoint).json()
return value
@property
def w... | 31.03268 | 116 | 0.619208 | 607 | 4,748 | 4.680395 | 0.220758 | 0.031679 | 0.034847 | 0.049278 | 0.286167 | 0.248152 | 0.231257 | 0.231257 | 0.217881 | 0.18761 | 0 | 0.001732 | 0.270219 | 4,748 | 152 | 117 | 31.236842 | 0.818182 | 0.488627 | 0 | 0.476923 | 0 | 0 | 0.106481 | 0.02862 | 0 | 0 | 0 | 0.006579 | 0 | 1 | 0.2 | false | 0 | 0 | 0.015385 | 0.430769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2abc9ecde219ec6fc0610ffdc2709ba8c49de3 | 6,317 | py | Python | pypeit/tests/test_metadata.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | pypeit/tests/test_metadata.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | pypeit/tests/test_metadata.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | import os
import glob
import shutil
import yaml
from IPython import embed
import pytest
import numpy as np
from pypeit.par.util import parse_pypeit_file
from pypeit.pypeitsetup import PypeItSetup
from pypeit.tests.tstutils import dev_suite_required, data_path
from pypeit.metadata import PypeItMetaData
from pypeit.s... | 38.054217 | 97 | 0.653158 | 840 | 6,317 | 4.671429 | 0.233333 | 0.036697 | 0.030836 | 0.018349 | 0.436035 | 0.407238 | 0.366972 | 0.334353 | 0.298675 | 0.298675 | 0 | 0.017991 | 0.199303 | 6,317 | 165 | 98 | 38.284848 | 0.757809 | 0.088175 | 0 | 0.386555 | 0 | 0 | 0.20993 | 0.013415 | 0 | 0 | 0 | 0 | 0.109244 | 1 | 0.05042 | false | 0 | 0.109244 | 0 | 0.159664 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2b4e055e79bf5051229abe9c3b6aceb972d7aa | 15,930 | py | Python | tortoise/query_utils.py | DDevine/tortoise-orm | 414737a78e98ffd247174590720f5c90aeac4dde | [
"Apache-2.0"
] | 1 | 2020-05-15T19:50:12.000Z | 2020-05-15T19:50:12.000Z | tortoise/query_utils.py | Tomes111/tortoise-orm | 8b55499a228e44f33fec9099f4d559c77c73beb7 | [
"Apache-2.0"
] | null | null | null | tortoise/query_utils.py | Tomes111/tortoise-orm | 8b55499a228e44f33fec9099f4d559c77c73beb7 | [
"Apache-2.0"
] | null | null | null | from copy import copy
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, cast
from pypika import Table
from pypika.terms import Criterion
from tortoise.exceptions import FieldError, OperationalError
from tortoise.fields.relational import BackwardFKRelation, ManyToManyFieldInstance, RelationalFi... | 37.748815 | 101 | 0.629881 | 1,825 | 15,930 | 5.235068 | 0.127671 | 0.035169 | 0.020724 | 0.013188 | 0.388738 | 0.312539 | 0.259996 | 0.181285 | 0.153548 | 0.149571 | 0 | 0.000868 | 0.277087 | 15,930 | 421 | 102 | 37.83848 | 0.82876 | 0.107972 | 0 | 0.225806 | 0 | 0 | 0.058002 | 0.008851 | 0 | 0 | 0 | 0.002375 | 0 | 1 | 0.083871 | false | 0 | 0.025806 | 0.012903 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2c2633a7cab56346726bab1085f5ed14b0a1bf | 1,372 | py | Python | L3_numpy_pandas_2D/B_NumPy_Axis.py | angelmtenor/IDAFC | 9d23746fd02e4eda2569d75b3c7a1383277e6e78 | [
"MIT"
] | null | null | null | L3_numpy_pandas_2D/B_NumPy_Axis.py | angelmtenor/IDAFC | 9d23746fd02e4eda2569d75b3c7a1383277e6e78 | [
"MIT"
] | null | null | null | L3_numpy_pandas_2D/B_NumPy_Axis.py | angelmtenor/IDAFC | 9d23746fd02e4eda2569d75b3c7a1383277e6e78 | [
"MIT"
] | null | null | null | import numpy as np
# Change False to True for this block of code to see what it does
# NumPy axis argument
if True:
a = np.array([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
])
print(a.sum())
print(a.sum(axis=0))
print(a.sum(axis=1))
# Subway ridership for 5 stations on 10 different... | 28.583333 | 85 | 0.652332 | 217 | 1,372 | 4 | 0.525346 | 0.0553 | 0.110599 | 0.131336 | 0.198157 | 0.145161 | 0.069124 | 0 | 0 | 0 | 0 | 0.170616 | 0.23105 | 1,372 | 47 | 86 | 29.191489 | 0.652133 | 0.35277 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.107143 | 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 |
ed2e075475e31924b346949bce0058c5690b9443 | 7,930 | py | Python | trainval.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | trainval.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | trainval.py | JanAlexanderPersonal/covid19_weak_supervision | 5599e48c9945f1e08a2731740bc8f6e44a031703 | [
"Apache-2.0"
] | null | null | null | from haven import haven_chk as hc
from haven import haven_results as hr
from haven import haven_utils as hu
import torch
import torchvision
import tqdm
import pandas as pd
import pprint
import itertools
import os
import pylab as plt
import exp_configs
import time
import numpy as np
from src import models
from src impo... | 33.459916 | 82 | 0.577427 | 945 | 7,930 | 4.586243 | 0.212698 | 0.048454 | 0.027688 | 0.043147 | 0.27665 | 0.231426 | 0.209045 | 0.180434 | 0.180434 | 0.164282 | 0 | 0.00367 | 0.312863 | 7,930 | 236 | 83 | 33.601695 | 0.791705 | 0.100883 | 0 | 0.192308 | 0 | 0 | 0.081653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0 | 0.160256 | 0 | 0.173077 | 0.070513 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed2e9fbfce1e8173a04660813facfdf161e513ee | 598 | py | Python | pyxq/app/__init__.py | goodchinas/pyxq | c7f6ea63084c18178049451f30f32f04080a511c | [
"MIT"
] | 4 | 2019-12-17T11:05:53.000Z | 2020-06-01T05:41:02.000Z | pyxq/app/__init__.py | goodchinas/pyxq | c7f6ea63084c18178049451f30f32f04080a511c | [
"MIT"
] | null | null | null | pyxq/app/__init__.py | goodchinas/pyxq | c7f6ea63084c18178049451f30f32f04080a511c | [
"MIT"
] | 2 | 2019-11-13T01:11:53.000Z | 2019-12-17T10:55:44.000Z | from .. import ba, cb, actor
from ..service import account
class A0(ba.App):
center: cb.CallBackManager
a: account.Account
def __init__(self, stg: actor.GateWay):
a = account.Account()
center = cb.CallBackManager()
stg.init(a=a, center=center, broker=cb.CallBackManager())
... | 27.181818 | 87 | 0.610368 | 75 | 598 | 4.813333 | 0.306667 | 0.188366 | 0.127424 | 0.077562 | 0.193906 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.264214 | 598 | 21 | 88 | 28.47619 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 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 |
ed2f62da1eeae65673f61b0ca0f66640810c94b0 | 7,802 | py | Python | gva/data/validator/__init__.py | gva-jhabte/gva-data | 7a605ff01faa3fd38e91a324341d6166f17544a7 | [
"Apache-2.0"
] | null | null | null | gva/data/validator/__init__.py | gva-jhabte/gva-data | 7a605ff01faa3fd38e91a324341d6166f17544a7 | [
"Apache-2.0"
] | null | null | null | gva/data/validator/__init__.py | gva-jhabte/gva-data | 7a605ff01faa3fd38e91a324341d6166f17544a7 | [
"Apache-2.0"
] | null | null | null | """
Schema Validation
Tests a dictionary against a schema to test for conformity.
Schema definition is similar to - but not the same as - avro schemas
Supported Types:
- string - a character sequence
- format
- numeric - a number
- min:
- max
- date - a datetime.date or... | 32.781513 | 137 | 0.57575 | 914 | 7,802 | 4.729759 | 0.218818 | 0.018506 | 0.022207 | 0.020819 | 0.161925 | 0.118436 | 0.09808 | 0.06477 | 0.049965 | 0.044876 | 0 | 0.009444 | 0.30787 | 7,802 | 238 | 138 | 32.781513 | 0.791111 | 0.238529 | 0 | 0.2 | 0 | 0.007407 | 0.106748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.007407 | 0.037037 | 0.051852 | 0.414815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3077484491f3ce68c431839bde2db924a8e7be | 2,350 | py | Python | fuzzers/ECP5/050-pio_routing/fuzzer.py | umarcor/prjtrellis | 9b3db7ba9a02e7d2f49c52ce062d5b22e320004c | [
"MIT"
] | 256 | 2018-03-05T00:28:46.000Z | 2022-03-04T22:33:29.000Z | fuzzers/ECP5/050-pio_routing/fuzzer.py | umarcor/prjtrellis | 9b3db7ba9a02e7d2f49c52ce062d5b22e320004c | [
"MIT"
] | 70 | 2018-03-12T21:55:02.000Z | 2020-06-22T12:06:08.000Z | fuzzers/ECP5/050-pio_routing/fuzzer.py | umarcor/prjtrellis | 9b3db7ba9a02e7d2f49c52ce062d5b22e320004c | [
"MIT"
] | 68 | 2018-03-12T21:05:01.000Z | 2021-03-14T21:08:33.000Z | from fuzzconfig import FuzzConfig
import interconnect
import nets
import pytrellis
import re
jobs = [
{
"pos": [(47, 0), (48, 0), (49, 0)],
"cfg": FuzzConfig(job="PIOROUTEL", family="ECP5", device="LFE5U-45F", ncl="pioroute.ncl",
tiles=["MIB_R47C0:PICL0", "MIB_R48C0:PICL1"... | 36.71875 | 109 | 0.50383 | 264 | 2,350 | 4.32197 | 0.397727 | 0.056968 | 0.070114 | 0.092025 | 0.235758 | 0.235758 | 0.235758 | 0.205083 | 0.205083 | 0.205083 | 0 | 0.087877 | 0.336596 | 2,350 | 63 | 110 | 37.301587 | 0.644003 | 0.021277 | 0 | 0.035714 | 0 | 0 | 0.194082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.089286 | 0.017857 | 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 |
ed32adc4f5470b9099ab1976e987f8994269a9b8 | 6,841 | py | Python | convnet3d/backend/tensorflow_backend.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | 6 | 2020-03-12T10:28:41.000Z | 2021-11-18T16:17:20.000Z | convnet3d/backend/tensorflow_backend.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | null | null | null | convnet3d/backend/tensorflow_backend.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | 1 | 2019-08-01T02:50:05.000Z | 2019-08-01T02:50:05.000Z | import tensorflow as tf
def _is_tensor(x):
"""Returns `True` if `x` is a symbolic tensor-like object.
From http://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/image_ops_impl.py
Args:
x: A python object to check.
Returns:
`True` if `x` is a `tf.Tensor` or `tf.Va... | 35.630208 | 217 | 0.627686 | 958 | 6,841 | 4.325679 | 0.215031 | 0.043436 | 0.034749 | 0.039093 | 0.25555 | 0.215251 | 0.159266 | 0.132963 | 0.080116 | 0.063224 | 0 | 0.013954 | 0.256249 | 6,841 | 191 | 218 | 35.816754 | 0.800511 | 0.317205 | 0 | 0.1 | 0 | 0 | 0.085962 | 0.005109 | 0 | 0 | 0 | 0 | 0.07 | 1 | 0.14 | false | 0 | 0.01 | 0.09 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed333974ac7fc15e4814ac031f495886accd5008 | 1,169 | py | Python | extensions/everywhere.py | cobrab11/black1-bot | 47c1a80029d6183fc990960b422bb3155360702d | [
"Apache-2.0"
] | 3 | 2015-10-15T15:40:17.000Z | 2021-06-08T05:39:21.000Z | extensions/everywhere.py | cobrab11/black1-bot | 47c1a80029d6183fc990960b422bb3155360702d | [
"Apache-2.0"
] | 1 | 2019-04-06T11:54:56.000Z | 2019-04-07T00:57:49.000Z | extensions/everywhere.py | cobrab11/black1-bot | 47c1a80029d6183fc990960b422bb3155360702d | [
"Apache-2.0"
] | 3 | 2015-10-26T14:49:57.000Z | 2018-03-04T15:34:11.000Z | # BS mark.1-55
# /* coding: utf-8 */
# BlackSmith plugin
# everywhere_plugin.py
# Coded by: WitcherGeralt (WitcherGeralt@jabber.ru)
# http://witcher-team.ucoz.ru/
def handler_everywhere(type, source, body):
if body:
args = body.split()
if len(args) >= 2:
mtype = args[0].strip().lower()
if mtype == u'чат... | 27.186047 | 97 | 0.637297 | 154 | 1,169 | 4.792208 | 0.493506 | 0.081301 | 0.088076 | 0.128726 | 0.135501 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01726 | 0.207015 | 1,169 | 42 | 98 | 27.833333 | 0.778857 | 0.130026 | 0 | 0.21875 | 0 | 0 | 0.134653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed38d1c43b9d70e3ac1c1d8a3bb7c7068b2ec679 | 6,946 | py | Python | tests/test_azure.py | The-Academic-Observatory/mag-archiver | 76988020047b4ab9eb2d125f5141dfa7297a6fb3 | [
"Apache-2.0"
] | null | null | null | tests/test_azure.py | The-Academic-Observatory/mag-archiver | 76988020047b4ab9eb2d125f5141dfa7297a6fb3 | [
"Apache-2.0"
] | 5 | 2020-07-22T03:51:17.000Z | 2021-08-08T21:56:00.000Z | tests/test_azure.py | The-Academic-Observatory/mag-archiver | 76988020047b4ab9eb2d125f5141dfa7297a6fb3 | [
"Apache-2.0"
] | 1 | 2020-07-19T22:39:20.000Z | 2020-07-19T22:39:20.000Z | # Copyright 2020 Curtin University
#
# 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 writi... | 39.022472 | 119 | 0.662971 | 829 | 6,946 | 5.294331 | 0.171291 | 0.145363 | 0.099111 | 0.145363 | 0.536797 | 0.532695 | 0.518569 | 0.467305 | 0.406471 | 0.289132 | 0 | 0.002527 | 0.259286 | 6,946 | 177 | 120 | 39.242938 | 0.850535 | 0.145263 | 0 | 0.394495 | 0 | 0 | 0.065615 | 0.031027 | 0 | 0 | 0 | 0 | 0.091743 | 1 | 0.100917 | false | 0 | 0.045872 | 0.009174 | 0.192661 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3a7989a6ca1353a9b8069ec10dfdff872950bd | 16,283 | py | Python | tensorflow/contrib/framework/python/framework/tensor_util_test.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/framework/python/framework/tensor_util_test.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/framework/python/framework/tensor_util_test.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 41.966495 | 81 | 0.63772 | 1,752 | 16,283 | 5.591895 | 0.128425 | 0.031234 | 0.036746 | 0.03103 | 0.682556 | 0.568439 | 0.534653 | 0.511075 | 0.480147 | 0.451159 | 0 | 0.021612 | 0.278204 | 16,283 | 387 | 82 | 42.074935 | 0.811963 | 0.048824 | 0 | 0.468553 | 0 | 0 | 0.023145 | 0 | 0 | 0 | 0 | 0.002584 | 0.141509 | 1 | 0.081761 | false | 0 | 0.050314 | 0 | 0.147799 | 0.003145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3b7de286ac4f4bebceec94867062df2dc32542 | 8,194 | py | Python | libs/linux/wpa_cli.py | hpagseddy/ZPUI | b82819e523987639c2dfab417f9895d7cd7ce049 | [
"Apache-2.0",
"MIT"
] | null | null | null | libs/linux/wpa_cli.py | hpagseddy/ZPUI | b82819e523987639c2dfab417f9895d7cd7ce049 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-01-17T00:44:53.000Z | 2020-01-19T21:10:48.000Z | libs/linux/wpa_cli.py | hpagseddy/ZPUI | b82819e523987639c2dfab417f9895d7cd7ce049 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-01-14T22:44:27.000Z | 2020-01-14T22:44:27.000Z | from subprocess import check_output, CalledProcessError
from ast import literal_eval
from time import sleep
from helpers import setup_logger
logger = setup_logger(__name__, "warning")
current_interface = None
#wpa_cli related functions and objects
def wpa_cli_command(*command):
run = ["wpa_cli"]
if current_... | 35.167382 | 128 | 0.691726 | 1,112 | 8,194 | 4.880396 | 0.234712 | 0.031509 | 0.02635 | 0.031509 | 0.264603 | 0.199558 | 0.144831 | 0.051594 | 0.036116 | 0.036116 | 0 | 0.003538 | 0.206615 | 8,194 | 232 | 129 | 35.318966 | 0.831257 | 0.228948 | 0 | 0.156627 | 0 | 0 | 0.059975 | 0 | 0 | 0 | 0 | 0.00431 | 0 | 1 | 0.180723 | false | 0 | 0.024096 | 0.066265 | 0.391566 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3d3135e9d1178c7b64b4da6cccbf9abc64c76d | 1,727 | py | Python | system/lib/update_musl.py | RyanCargan/emscripten | 6d3859f88e1d6394395760153c0a8cfa6a876ac7 | [
"MIT"
] | 6,541 | 2019-01-17T22:13:18.000Z | 2022-03-31T07:20:21.000Z | system/lib/update_musl.py | RyanCargan/emscripten | 6d3859f88e1d6394395760153c0a8cfa6a876ac7 | [
"MIT"
] | 7,584 | 2019-01-17T22:58:27.000Z | 2022-03-31T23:10:22.000Z | system/lib/update_musl.py | RyanCargan/emscripten | 6d3859f88e1d6394395760153c0a8cfa6a876ac7 | [
"MIT"
] | 1,275 | 2019-01-19T16:18:04.000Z | 2022-03-30T19:32:35.000Z | #!/usr/bin/env python3
# Copyright 2021 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
"""Simple script for updating musl from extern... | 28.311475 | 78 | 0.72264 | 265 | 1,727 | 4.611321 | 0.596226 | 0.02455 | 0.01473 | 0.026187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022207 | 0.165605 | 1,727 | 60 | 79 | 28.783333 | 0.825815 | 0.525188 | 0 | 0 | 0 | 0 | 0.176617 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.130435 | false | 0 | 0.173913 | 0.086957 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3dd47b74e1445e656b23816bec9c93f6315a3e | 3,358 | py | Python | src/scout_apm/instruments/pymongo.py | xiamx/scout_apm_python | d03dab45f65cf7d1030e11fabf6da4cf6e72ee59 | [
"MIT"
] | null | null | null | src/scout_apm/instruments/pymongo.py | xiamx/scout_apm_python | d03dab45f65cf7d1030e11fabf6da4cf6e72ee59 | [
"MIT"
] | null | null | null | src/scout_apm/instruments/pymongo.py | xiamx/scout_apm_python | d03dab45f65cf7d1030e11fabf6da4cf6e72ee59 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import logging
# Used in the exec() call below.
from scout_apm.core.monkey import monkeypatch_method, unpatch_method # noqa: F401
from scout_apm.core.tracked_request import TrackedRequest # noqa: F401
logger = logging.getLogger(__na... | 28.700855 | 87 | 0.579512 | 349 | 3,358 | 5.352436 | 0.361032 | 0.043362 | 0.01606 | 0.043362 | 0.255353 | 0.175589 | 0.139186 | 0.139186 | 0 | 0 | 0 | 0.005307 | 0.326683 | 3,358 | 116 | 88 | 28.948276 | 0.820876 | 0.047647 | 0 | 0.21875 | 0 | 0 | 0.317241 | 0.040125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.114583 | 0 | 0.270833 | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3e5d031590d8e6dff347577131d013386c5855 | 3,235 | py | Python | measures/tests/factories.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | measures/tests/factories.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | measures/tests/factories.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | import random
from typing import Optional
import factory
from common.tests import factories
from measures.sheet_importers import MeasureSheetRow
class MeasureSheetRowFactory(factory.Factory):
"""
A factory that produces a row that might be read from a sheet of measures as
recognised by the :class:`measu... | 37.616279 | 98 | 0.681607 | 379 | 3,235 | 5.672823 | 0.364116 | 0.037209 | 0.062791 | 0.062791 | 0.190233 | 0.152093 | 0.063256 | 0.063256 | 0.063256 | 0 | 0 | 0.000799 | 0.226584 | 3,235 | 85 | 99 | 38.058824 | 0.858513 | 0.162597 | 0 | 0.065574 | 0 | 0 | 0.112745 | 0.089367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.081967 | 0 | 0.393443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed3f22bc9cd6901491dd74a1964aa19636812550 | 581 | py | Python | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | 18 | 2021-04-20T17:03:20.000Z | 2022-03-12T05:56:24.000Z | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | null | null | null | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | 1 | 2021-07-08T17:44:15.000Z | 2021-07-08T17:44:15.000Z | import sys
import logging
from seglossbias.utils import mkdir, setup_logging
from seglossbias.engine import default_argument_parser, load_config, DefaultTester
logger = logging.getLogger(__name__)
def setup(args):
cfg = load_config(args)
mkdir(cfg.OUTPUT_DIR)
setup_logging(output_dir=cfg.OUTPUT_DIR)
... | 20.75 | 82 | 0.717728 | 74 | 581 | 5.310811 | 0.459459 | 0.068702 | 0.111959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175559 | 581 | 27 | 83 | 21.518519 | 0.820459 | 0 | 0 | 0 | 0 | 0 | 0.04475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 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 |
ed402a46ff5fc00fad7e1376b1ab297b4013340b | 7,808 | py | Python | jp_doodle/quantity_forest.py | lingruiluo/jp_doodle | b3935208821898f22ab504c2b26dd4d37f08f0e4 | [
"BSD-2-Clause"
] | 43 | 2018-10-10T08:38:07.000Z | 2022-03-19T22:44:42.000Z | jp_doodle/quantity_forest.py | firmfrol19/jp_doodle | cb34938edaedbe15590ebe8024060dd97bb69fa9 | [
"BSD-2-Clause"
] | 8 | 2018-09-17T19:49:45.000Z | 2020-08-24T15:51:16.000Z | jp_doodle/quantity_forest.py | firmfrol19/jp_doodle | cb34938edaedbe15590ebe8024060dd97bb69fa9 | [
"BSD-2-Clause"
] | 5 | 2019-06-13T15:53:55.000Z | 2020-11-13T01:22:56.000Z | from jp_doodle import doodle_files
qf_js = doodle_files.vendor_path("js/quantity_forest.js")
from jp_doodle import dual_canvas
import jp_proxy_widget
import os
from subprocess import check_output
import pprint
if bytes != str:
unicode = str
def directory_usage(directory, epsilon=0.02):
if not os.path.isdir(di... | 34.702222 | 115 | 0.523309 | 858 | 7,808 | 4.648019 | 0.22028 | 0.042628 | 0.063942 | 0.040371 | 0.199097 | 0.17653 | 0.161484 | 0.161484 | 0.161484 | 0.111836 | 0 | 0.014018 | 0.351306 | 7,808 | 224 | 116 | 34.857143 | 0.773347 | 0.032531 | 0 | 0.149254 | 0 | 0.004975 | 0.201511 | 0.0232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0.004975 | 0.029851 | 0 | 0.139303 | 0.00995 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ed40391b29c9dd84fbde6dce8cec5a7ba2c96f0b | 3,139 | py | Python | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0035-Search-Insert-Position.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-01-01
============================... | 28.798165 | 107 | 0.572794 | 416 | 3,139 | 4.225962 | 0.346154 | 0.025597 | 0.027304 | 0.027873 | 0.20876 | 0.197383 | 0.151877 | 0.09215 | 0.047782 | 0 | 0 | 0.046256 | 0.27684 | 3,139 | 108 | 108 | 29.064815 | 0.728194 | 0.292768 | 0 | 0 | 0 | 0 | 0.026444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0 | 0.324324 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |