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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e026df5666a9c260f8a2d313e1edc3eee3cad4f7 | 9,053 | py | Python | code/counterfactual_generative_networks-main/imagenet/train_cgn.py | dummyxyz1/re_counterfactual_generative | 4dda8e17a1123a564d60be82c17e9589155fb2e2 | [
"MIT"
] | null | null | null | code/counterfactual_generative_networks-main/imagenet/train_cgn.py | dummyxyz1/re_counterfactual_generative | 4dda8e17a1123a564d60be82c17e9589155fb2e2 | [
"MIT"
] | null | null | null | code/counterfactual_generative_networks-main/imagenet/train_cgn.py | dummyxyz1/re_counterfactual_generative | 4dda8e17a1123a564d60be82c17e9589155fb2e2 | [
"MIT"
] | null | null | null | import os
from datetime import datetime
from os.path import join
import pathlib
from tqdm import tqdm
import argparse
import torch
from torch import nn, optim
from torch.autograd import Variable
import torchvision
from torchvision.transforms import Pad
from torchvision.utils import make_grid
import repackage
repackage... | 37.720833 | 98 | 0.629515 | 1,262 | 9,053 | 4.290808 | 0.209984 | 0.016621 | 0.031394 | 0.019945 | 0.294552 | 0.24229 | 0.195568 | 0.117452 | 0.117452 | 0.075716 | 0 | 0.016157 | 0.247984 | 9,053 | 239 | 99 | 37.878661 | 0.77923 | 0.036121 | 0 | 0.132597 | 0 | 0 | 0.10672 | 0.008501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027624 | false | 0 | 0.099448 | 0 | 0.132597 | 0.016575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e02908fac191deeaa9eb04515ee51d7d466320c5 | 1,695 | py | Python | url.py | matthieucan/shorturl | a7f7fab61e8b23b352590797ca4959ed166c865e | [
"WTFPL"
] | 1 | 2018-10-19T01:57:29.000Z | 2018-10-19T01:57:29.000Z | url.py | matthieucan/shorturl | a7f7fab61e8b23b352590797ca4959ed166c865e | [
"WTFPL"
] | null | null | null | url.py | matthieucan/shorturl | a7f7fab61e8b23b352590797ca4959ed166c865e | [
"WTFPL"
] | null | null | null | def base_conv(n, input_base=10, output_base=10):
"""
Converts a number n from base input_base to base output_base.
The following symbols are used to represent numbers:
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
n can be an int if input_base <= 10, and a string otherwise.
... | 36.06383 | 78 | 0.640708 | 224 | 1,695 | 4.638393 | 0.321429 | 0.084697 | 0.134745 | 0.049086 | 0.097209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119507 | 0.234808 | 1,695 | 46 | 79 | 36.847826 | 0.681573 | 0.215339 | 0 | 0 | 0 | 0 | 0.125581 | 0.048062 | 0 | 0 | 0 | 0 | 0.344828 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e02960393a5a94bda69769c1a73c609b148e700d | 13,612 | py | Python | src/qtt/qiskit/passes.py | codecrap/qtt | 39a8bf21f7bcab94940a66f4d553a14bf34f82b0 | [
"MIT"
] | null | null | null | src/qtt/qiskit/passes.py | codecrap/qtt | 39a8bf21f7bcab94940a66f4d553a14bf34f82b0 | [
"MIT"
] | null | null | null | src/qtt/qiskit/passes.py | codecrap/qtt | 39a8bf21f7bcab94940a66f4d553a14bf34f82b0 | [
"MIT"
] | null | null | null | import logging
from typing import Dict, List, Optional
import numpy as np
import qiskit
from qiskit.circuit import Barrier, Delay, Reset
from qiskit.circuit.library import (CRXGate, CRYGate, CRZGate, CZGate,
PhaseGate, RXGate, RYGate, RZGate, U1Gate,
... | 36.591398 | 115 | 0.563914 | 1,622 | 13,612 | 4.580148 | 0.176326 | 0.028268 | 0.033921 | 0.036748 | 0.399515 | 0.351595 | 0.312559 | 0.28833 | 0.265042 | 0.249832 | 0 | 0.011152 | 0.341243 | 13,612 | 371 | 116 | 36.690027 | 0.81733 | 0.149868 | 0 | 0.4125 | 0 | 0.004167 | 0.035193 | 0.001881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.05 | 0.045833 | 0 | 0.195833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e029ad3e92c68df36a0c0c69723e696b156c5364 | 5,616 | py | Python | IAFNNESTA.py | JonathanAlis/IAFNNESTA | 6845bed7e41a162a60e65d709f37cf975c8c8a4e | [
"MIT"
] | 3 | 2021-05-13T05:51:42.000Z | 2022-02-06T13:36:52.000Z | IAFNNESTA.py | JonathanAlis/IAFNNESTA | 6845bed7e41a162a60e65d709f37cf975c8c8a4e | [
"MIT"
] | null | null | null | IAFNNESTA.py | JonathanAlis/IAFNNESTA | 6845bed7e41a162a60e65d709f37cf975c8c8a4e | [
"MIT"
] | 1 | 2022-02-06T13:36:39.000Z | 2022-02-06T13:36:39.000Z | def help():
return '''
Isotropic-Anisotropic Filtering Norm Nesterov Algorithm
Solves the filtering norm minimization + quadratic term problem
Nesterov algorithm, with continuation:
argmin_x || iaFN(x) ||_1/2 subjected to ||b - Ax||_2^2 < delta
If no filter is provided, solves the L1.
Continuation is perf... | 35.770701 | 215 | 0.51834 | 710 | 5,616 | 4.060563 | 0.322535 | 0.016996 | 0.009365 | 0.015609 | 0.04093 | 0.027749 | 0.015956 | 0.015956 | 0.015956 | 0 | 0 | 0.03298 | 0.379095 | 5,616 | 156 | 216 | 36 | 0.793806 | 0.016026 | 0 | 0.10084 | 0 | 0.033613 | 0.518029 | 0.01214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02521 | false | 0 | 0.033613 | 0.016807 | 0.092437 | 0.033613 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e029f3704209eae0d9983e10eec83eadf0c6a288 | 6,952 | py | Python | hypatia/util/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/util/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/util/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | import itertools
import BTrees
from persistent import Persistent
from ZODB.broken import Broken
from zope.interface import implementer
_marker = object()
from .. import exc
from ..interfaces import (
IResultSet,
STABLE,
)
@implementer(IResultSet)
class ResultSet(object):
"""Implements :class:`hypatia.i... | 31.174888 | 85 | 0.60889 | 829 | 6,952 | 4.926417 | 0.254524 | 0.032566 | 0.014691 | 0.01763 | 0.199804 | 0.158668 | 0.158668 | 0.148384 | 0.108717 | 0.108717 | 0 | 0.002061 | 0.302215 | 6,952 | 222 | 86 | 31.315315 | 0.839827 | 0.205121 | 0 | 0.131944 | 0 | 0 | 0.028666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180556 | false | 0.006944 | 0.048611 | 0.048611 | 0.451389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e02ae313e5c6ccbda99f1c423609cc20c6a48485 | 483 | py | Python | examples/example_without_CommandSet/my_listeners.py | LeConstellationniste/DiscordFramework | 24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af | [
"CC0-1.0"
] | 1 | 2021-01-27T14:55:03.000Z | 2021-01-27T14:55:03.000Z | examples/example_without_CommandSet/my_listeners.py | LeConstellationniste/DiscordFramework | 24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af | [
"CC0-1.0"
] | null | null | null | examples/example_without_CommandSet/my_listeners.py | LeConstellationniste/DiscordFramework | 24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af | [
"CC0-1.0"
] | null | null | null | import asyncio
import discord
# Just with a function to add to the bot.
async def on_message(message):
if not message.author.bot:
await message.channel.send(f"{message.author.mention} a envoyé un message!")
# A Listener already created with the function
from discordEasy.objects import Listener
async def on_messa... | 28.411765 | 78 | 0.784679 | 75 | 483 | 4.986667 | 0.413333 | 0.096257 | 0.053476 | 0.090909 | 0.561497 | 0.561497 | 0.561497 | 0.561497 | 0.561497 | 0.561497 | 0 | 0 | 0.130435 | 483 | 17 | 79 | 28.411765 | 0.890476 | 0.173913 | 0 | 0.6 | 0 | 0 | 0.2267 | 0.120907 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
e02beca3eabc9ebe9a2e1d16196b54fbf1a8bc1b | 4,024 | py | Python | pianonet/serving/app.py | robgon-art/pianonet | 8d8a827bc8d310b8ce3f66259bbdf72648e9ca32 | [
"MIT"
] | 14 | 2020-09-01T11:16:28.000Z | 2021-05-02T18:04:21.000Z | pianonet/serving/app.py | robgon-art/pianonet | 8d8a827bc8d310b8ce3f66259bbdf72648e9ca32 | [
"MIT"
] | 5 | 2020-11-13T18:46:05.000Z | 2022-02-10T01:16:13.000Z | pianonet/serving/app.py | robgon-art/pianonet | 8d8a827bc8d310b8ce3f66259bbdf72648e9ca32 | [
"MIT"
] | 3 | 2020-09-02T15:05:00.000Z | 2021-05-02T18:04:24.000Z | import os
import random
from flask import Flask, request, send_from_directory
from werkzeug.utils import secure_filename
from pianonet.core.pianoroll import Pianoroll
from pianonet.model_inspection.performance_from_pianoroll import get_performance_from_pianoroll
app = Flask(__name__)
base_path = "/app/"
# base_pat... | 31.685039 | 115 | 0.706511 | 551 | 4,024 | 4.794918 | 0.266788 | 0.13626 | 0.095382 | 0.069644 | 0.273656 | 0.133989 | 0.067373 | 0.047691 | 0 | 0 | 0 | 0.018037 | 0.187127 | 4,024 | 126 | 116 | 31.936508 | 0.789667 | 0.146123 | 0 | 0.043478 | 0 | 0 | 0.155403 | 0.011313 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.086957 | 0.014493 | 0.289855 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e02cef0666c1161f8f7f1e91555b80b350dae71e | 4,965 | py | Python | app.py | rafalbigaj/epidemic-model-visualization | 35829180b5a53697b336e8615d854a21b3395f59 | [
"Apache-2.0"
] | null | null | null | app.py | rafalbigaj/epidemic-model-visualization | 35829180b5a53697b336e8615d854a21b3395f59 | [
"Apache-2.0"
] | null | null | null | app.py | rafalbigaj/epidemic-model-visualization | 35829180b5a53697b336e8615d854a21b3395f59 | [
"Apache-2.0"
] | null | null | null | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import logging
import json
import os
import pandas as pd
from datetime import datetime
from datetime import timedelta
fro... | 34.006849 | 132 | 0.67291 | 663 | 4,965 | 4.828054 | 0.321267 | 0.06373 | 0.011246 | 0.016245 | 0.207748 | 0.130272 | 0.099344 | 0.099344 | 0.099344 | 0.099344 | 0 | 0.02381 | 0.179456 | 4,965 | 145 | 133 | 34.241379 | 0.761905 | 0.110574 | 0 | 0.080808 | 0 | 0 | 0.186364 | 0.021364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.141414 | 0 | 0.20202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e02e814aa08f31a0fd4f302fa151aca0b7af7756 | 984 | py | Python | setup.py | Commonists/pageview-api | 39e8b3c3c82f64a500e3dd4f306451c81c7e31b7 | [
"MIT"
] | 21 | 2015-12-02T12:06:38.000Z | 2022-02-11T16:16:06.000Z | setup.py | Commonists/pageview-api | 39e8b3c3c82f64a500e3dd4f306451c81c7e31b7 | [
"MIT"
] | 3 | 2016-04-19T19:56:25.000Z | 2020-08-27T09:52:42.000Z | setup.py | Commonists/pageview-api | 39e8b3c3c82f64a500e3dd4f306451c81c7e31b7 | [
"MIT"
] | 6 | 2017-10-27T15:39:51.000Z | 2020-12-17T02:11:52.000Z | #!/usr/bin/python
# -*- coding: latin-1 -*-
"""Setup script."""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
import pageviewapi
version = pageviewapi.__version__
except ImportError:
version = 'Undefined'
classifiers = [
'Development Status :: 4... | 22.883721 | 52 | 0.670732 | 99 | 984 | 6.59596 | 0.676768 | 0.082695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002509 | 0.190041 | 984 | 42 | 53 | 23.428571 | 0.816813 | 0.054878 | 0 | 0.121212 | 0 | 0 | 0.390033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e030b341c624d43cef697abc742e82664391c682 | 416 | py | Python | task1b.py | juby-gif/assignment1 | 3d39478fdc371e80a546caac545561145afbb080 | [
"BSD-3-Clause"
] | null | null | null | task1b.py | juby-gif/assignment1 | 3d39478fdc371e80a546caac545561145afbb080 | [
"BSD-3-Clause"
] | null | null | null | task1b.py | juby-gif/assignment1 | 3d39478fdc371e80a546caac545561145afbb080 | [
"BSD-3-Clause"
] | null | null | null | #a2_t1b.py
#This program is to convert Celsius to Kelvin
def c_to_k(c):
k = c + 273.15 #Formula to convert Celsius to Kelvin
return k
def f_to_c(f):
fa = (f-32) * 5/9 #Formula to convert Fareheit to Celsius
return fa
c = 25.0
f = 100.0
k = c_to_k(c)
fa = f_to_c(f)
print("Celsius of " + str(c) + " is... | 24.470588 | 67 | 0.605769 | 82 | 416 | 2.963415 | 0.378049 | 0.032922 | 0.131687 | 0.148148 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057325 | 0.245192 | 416 | 16 | 68 | 26 | 0.716561 | 0.305288 | 0 | 0 | 0 | 0 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e032bc66a6f5b0a211c59ba883502067921d3427 | 2,961 | py | Python | tests/test_dsl.py | goodreferences/ElasticQuery | 579e387c5a7c1cbbeab999050c0d2faa80ded821 | [
"MIT"
] | null | null | null | tests/test_dsl.py | goodreferences/ElasticQuery | 579e387c5a7c1cbbeab999050c0d2faa80ded821 | [
"MIT"
] | null | null | null | tests/test_dsl.py | goodreferences/ElasticQuery | 579e387c5a7c1cbbeab999050c0d2faa80ded821 | [
"MIT"
] | null | null | null | # ElasticQuery
# File: tests/test_dsl.py
# Desc: tests for ElasticQuery DSL objects (Filter, Query, Aggregate)
from os import path
from unittest import TestCase
from jsontest import JsonTest
from elasticquery import Query, Aggregate, Suggester
from elasticquery.exceptions import (
NoQueryError, NoAggregateError,... | 26.675676 | 72 | 0.646066 | 339 | 2,961 | 5.448378 | 0.277286 | 0.043313 | 0.086627 | 0.060639 | 0.371955 | 0.323768 | 0.323768 | 0.323768 | 0.185707 | 0.185707 | 0 | 0 | 0.251266 | 2,961 | 110 | 73 | 26.918182 | 0.833108 | 0.078352 | 0 | 0.136986 | 0 | 0 | 0.030515 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 1 | 0.09589 | false | 0 | 0.082192 | 0 | 0.383562 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e036c8bce2480207e7560bdb8a009054bcbca43d | 1,333 | py | Python | Task/Parallel-calculations/Python/parallel-calculations-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Parallel-calculations/Python/parallel-calculations-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Parallel-calculations/Python/parallel-calculations-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | import multiprocessing
# ========== #Python3 - concurrent
from math import floor, sqrt
numbers = [
112272537195293,
112582718962171,
112272537095293,
115280098190773,
115797840077099,
1099726829285419]
# numbers = [33, 44, 55, 275]
def lowest_factor(n, _start=3):
if n % 2 == 0:
re... | 28.361702 | 84 | 0.650413 | 177 | 1,333 | 4.689266 | 0.39548 | 0.072289 | 0.031325 | 0.048193 | 0.115663 | 0.115663 | 0.115663 | 0.115663 | 0.115663 | 0 | 0 | 0.108738 | 0.227307 | 1,333 | 46 | 85 | 28.978261 | 0.697087 | 0.068267 | 0 | 0 | 0 | 0 | 0.105178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.055556 | 0 | 0.277778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e037f80102198e6c3f910c89e80dfa13f614bfb4 | 1,109 | py | Python | BigData/sparkTask/test.py | Rainstyd/rainsty | 9a0d5f46c20faf909c4194f315fb9960652cffc6 | [
"Apache-2.0"
] | 1 | 2020-03-25T01:13:35.000Z | 2020-03-25T01:13:35.000Z | BigData/sparkTask/test.py | Rainstyed/rainsty | f74e0ccaf16d1871c9d1870bd8a7c8a63243fcf5 | [
"Apache-2.0"
] | 1 | 2022-01-06T23:49:21.000Z | 2022-01-06T23:49:21.000Z | BigData/sparkTask/test.py | rainstyd/rainsty | 9a0d5f46c20faf909c4194f315fb9960652cffc6 | [
"Apache-2.0"
] | 1 | 2020-03-20T08:48:36.000Z | 2020-03-20T08:48:36.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@author: rainsty
@file: test.py
@time: 2020-01-04 18:36:57
@description:
"""
import os
from pyspark.sql import SparkSession
os.environ['JAVA_HOME'] = '/root/jdk'
os.environ['SPARK_HOME'] = '/root/spark'
os.environ['PYTHON_HOME'] = "/root/python"
os.environ['PYSPARK_P... | 24.108696 | 60 | 0.640216 | 142 | 1,109 | 4.929577 | 0.507042 | 0.064286 | 0.081429 | 0.071429 | 0.094286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030011 | 0.158702 | 1,109 | 45 | 61 | 24.644444 | 0.720257 | 0.103697 | 0 | 0 | 0 | 0 | 0.314721 | 0.04264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.16 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e039092d052960d2f6c3a01770cd6d300e7b630a | 8,810 | py | Python | json_codegen/generators/python3_marshmallow/object_generator.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 21 | 2018-06-15T16:08:57.000Z | 2022-02-11T16:16:11.000Z | json_codegen/generators/python3_marshmallow/object_generator.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 14 | 2018-08-09T18:02:19.000Z | 2022-01-24T18:04:17.000Z | json_codegen/generators/python3_marshmallow/object_generator.py | expobrain/json-schema-codegen | e22b386333c6230e5d6f5984fd947fdd7b947e82 | [
"MIT"
] | 4 | 2018-11-30T18:19:10.000Z | 2021-11-18T04:04:36.000Z | import ast
from json_codegen.generators.python3_marshmallow.utils import Annotations, class_name
class ObjectGenerator(object):
@staticmethod
def _get_property_name(node_assign):
name = node_assign.targets[0]
return name.id
@staticmethod
def _nesting_class(node_assign):
for n... | 34.414063 | 108 | 0.484222 | 827 | 8,810 | 4.975816 | 0.169287 | 0.055893 | 0.032807 | 0.023815 | 0.409964 | 0.37497 | 0.323451 | 0.293074 | 0.263183 | 0.196598 | 0 | 0.001743 | 0.413848 | 8,810 | 255 | 109 | 34.54902 | 0.79512 | 0.075596 | 0 | 0.402913 | 0 | 0 | 0.029182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058252 | false | 0.004854 | 0.009709 | 0.004854 | 0.145631 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e03c2a58883f30a7a78a6973c7fd5ce571d96bba | 1,746 | py | Python | result2gaofentype/pkl2txt_ggm.py | G-Naughty/Fine-grained-OBB-Detection | 8c82c4c178f0b6bba077ff9d906a81bf8e04789c | [
"Apache-2.0"
] | 2 | 2022-02-06T07:45:03.000Z | 2022-03-11T14:18:32.000Z | result2gaofentype/pkl2txt_ggm.py | G-Naughty/Fine-grained-OBB-Detection | 8c82c4c178f0b6bba077ff9d906a81bf8e04789c | [
"Apache-2.0"
] | null | null | null | result2gaofentype/pkl2txt_ggm.py | G-Naughty/Fine-grained-OBB-Detection | 8c82c4c178f0b6bba077ff9d906a81bf8e04789c | [
"Apache-2.0"
] | null | null | null | import BboxToolkit as bt
import pickle
import copy
import numpy as np
path1="/home/hnu1/GGM/OBBDetection/work_dir/oriented_obb_contrast_catbalance/dets.pkl"
path2="/home/hnu1/GGM/OBBDetection/data/FaIR1M/test/annfiles/ori_annfile.pkl"#
with open(path2,'rb') as f: #/home/disk/FAIR1M_1000_split/val/annfiles/ori_... | 40.604651 | 95 | 0.512027 | 248 | 1,746 | 3.552419 | 0.298387 | 0.029512 | 0.044268 | 0.14983 | 0.38252 | 0.287174 | 0.133939 | 0.133939 | 0.133939 | 0.133939 | 0 | 0.037873 | 0.289233 | 1,746 | 43 | 96 | 40.604651 | 0.672039 | 0.032646 | 0 | 0.04878 | 0 | 0 | 0.148697 | 0.135071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e03e3fafddd8bfe7f29e435a8b1b27b522698dbd | 938 | py | Python | initializer_3d.py | HarperCallahan/taichi_ferrofluid | 6113f6c7d9d9d612b6dadc500cf91b576c2d05ea | [
"MIT"
] | null | null | null | initializer_3d.py | HarperCallahan/taichi_ferrofluid | 6113f6c7d9d9d612b6dadc500cf91b576c2d05ea | [
"MIT"
] | null | null | null | initializer_3d.py | HarperCallahan/taichi_ferrofluid | 6113f6c7d9d9d612b6dadc500cf91b576c2d05ea | [
"MIT"
] | null | null | null | import taichi as ti
import utils
from apic_extension import *
@ti.data_oriented
class Initializer3D: # tmp initializer
def __init__(self, res, x0, y0, z0, x1, y1, z1):
self.res = res
self.x0 = int(res * x0)
self.y0 = int(res * y0)
self.z0 = int(res * z0)
self.x1 = int(res * ... | 31.266667 | 136 | 0.557569 | 146 | 938 | 3.472603 | 0.308219 | 0.071006 | 0.011834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048062 | 0.312367 | 938 | 29 | 137 | 32.344828 | 0.737985 | 0.015991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e03ebf0129e76590fab9b3f72a3301cc3f5c22ca | 1,265 | py | Python | copy_block_example.py | MilesCranmer/bifrost_paper | 654408cd7e34e7845cee58100fe459e1422e4859 | [
"MIT"
] | null | null | null | copy_block_example.py | MilesCranmer/bifrost_paper | 654408cd7e34e7845cee58100fe459e1422e4859 | [
"MIT"
] | null | null | null | copy_block_example.py | MilesCranmer/bifrost_paper | 654408cd7e34e7845cee58100fe459e1422e4859 | [
"MIT"
] | null | null | null | from copy import deepcopy
import bifrost as bf
from bifrost.pipeline import TransformBlock
from bifrost.ndarray import copy_array
class CopyBlock(TransformBlock):# $\tikzmark{block-start}$
"""Copy the input ring to output ring"""
def __init__(self, iring, space):
... | 30.853659 | 98 | 0.674308 | 166 | 1,265 | 4.975904 | 0.463855 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007678 | 0.176285 | 1,265 | 40 | 99 | 31.625 | 0.785029 | 0.196838 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.148148 | 0.074074 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e041875337916a4d8560bbab0e0b68edca74373b | 13,929 | py | Python | src/solutions/common/integrations/cirklo/api.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/integrations/cirklo/api.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/integrations/cirklo/api.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 42.858462 | 120 | 0.710604 | 1,715 | 13,929 | 5.510204 | 0.172012 | 0.031429 | 0.022011 | 0.010053 | 0.367725 | 0.314921 | 0.280529 | 0.248571 | 0.225291 | 0.188677 | 0 | 0.0037 | 0.204537 | 13,929 | 324 | 121 | 42.990741 | 0.849188 | 0.051619 | 0 | 0.301115 | 0 | 0 | 0.047395 | 0.016531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026022 | false | 0 | 0.115242 | 0.003717 | 0.174721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e042a55525baf01a1dd738c8dd3863fa44f09d50 | 1,624 | py | Python | aplpy/tests/test_grid.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | null | null | null | aplpy/tests/test_grid.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | null | null | null | aplpy/tests/test_grid.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | 1 | 2018-02-26T03:04:19.000Z | 2018-02-26T03:04:19.000Z | import matplotlib
matplotlib.use('Agg')
import numpy as np
from astropy.tests.helper import pytest
from .. import FITSFigure
def test_grid_addremove():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_grid()
f.remove_grid()
f.add_grid()
f.close()
def test_grid_showhide():
data = np... | 20.049383 | 39 | 0.618842 | 255 | 1,624 | 3.780392 | 0.2 | 0.103734 | 0.149378 | 0.074689 | 0.529046 | 0.40249 | 0.40249 | 0.40249 | 0.323651 | 0.323651 | 0 | 0.040094 | 0.216749 | 1,624 | 80 | 40 | 20.3 | 0.717767 | 0 | 0 | 0.484375 | 0 | 0 | 0.029557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.0625 | 0 | 0.171875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0435a8bdb5ad3ee4a83d670d6af34fbe9094657 | 12,910 | py | Python | vz.py | ponyatov/vz | f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1 | [
"MIT"
] | null | null | null | vz.py | ponyatov/vz | f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1 | [
"MIT"
] | null | null | null | vz.py | ponyatov/vz | f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1 | [
"MIT"
] | null | null | null | import os, sys
class Object:
## @name constructor
def __init__(self, V):
self.value = V
self.nest = []
def box(self, that):
if isinstance(that, Object): return that
if isinstance(that, str): return S(that)
raise TypeError(['box', type(that), that])
## @name d... | 32.849873 | 96 | 0.449109 | 1,494 | 12,910 | 3.792503 | 0.182731 | 0.059301 | 0.022944 | 0.025415 | 0.174373 | 0.106601 | 0.090364 | 0.077833 | 0.077833 | 0.072361 | 0 | 0.012408 | 0.35701 | 12,910 | 392 | 97 | 32.933673 | 0.67016 | 0.005035 | 0 | 0.178462 | 0 | 0.006154 | 0.226868 | 0.0401 | 0 | 0 | 0.000312 | 0 | 0.009231 | 1 | 0.126154 | false | 0.012308 | 0.012308 | 0.024615 | 0.209231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0448da70febec0759bc638d5a460760c3964480 | 402 | py | Python | tcpserver.py | justforbalance/CSnet | c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6 | [
"MIT"
] | null | null | null | tcpserver.py | justforbalance/CSnet | c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6 | [
"MIT"
] | null | null | null | tcpserver.py | justforbalance/CSnet | c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6 | [
"MIT"
] | null | null | null | from socket import *
serverPort = 12001
serverSocket = socket(AF_INET, SOCK_STREAM)
serverSocket.bind(('', serverPort))
serverSocket.listen(1)
print("the server is ready to receive")
while True:
connectionSocket,addr = serverSocket.accept()
sentence = connectionSocket.recv(1024).decode()
sentence = sentence... | 33.5 | 51 | 0.753731 | 44 | 402 | 6.840909 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.129353 | 402 | 12 | 52 | 33.5 | 0.831429 | 0 | 0 | 0 | 0 | 0 | 0.074442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
e045d172e3aa9769db37dd0c8977af6b2b83dca1 | 10,889 | py | Python | armi/reactor/tests/test_zones.py | youngmit/armi | 67688e4e67d2a217dfc7b1ccfa64028c20b57a5b | [
"Apache-2.0"
] | null | null | null | armi/reactor/tests/test_zones.py | youngmit/armi | 67688e4e67d2a217dfc7b1ccfa64028c20b57a5b | [
"Apache-2.0"
] | null | null | null | armi/reactor/tests/test_zones.py | youngmit/armi | 67688e4e67d2a217dfc7b1ccfa64028c20b57a5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 39.740876 | 113 | 0.629718 | 1,332 | 10,889 | 5.119369 | 0.246246 | 0.016131 | 0.026397 | 0.018478 | 0.237865 | 0.189471 | 0.162047 | 0.162047 | 0.104414 | 0.087696 | 0 | 0.017314 | 0.27863 | 10,889 | 273 | 114 | 39.886447 | 0.850796 | 0.24162 | 0 | 0.239796 | 0 | 0 | 0.04813 | 0.008529 | 0 | 0 | 0 | 0 | 0.153061 | 1 | 0.05102 | false | 0 | 0.071429 | 0 | 0.137755 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e046ccaf1594be44b4bc74501cfe08b79d45a1d7 | 490 | py | Python | Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 5 | 2019-01-28T05:17:12.000Z | 2020-04-14T14:31:34.000Z | Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 1 | 2019-01-28T16:07:26.000Z | 2021-11-25T10:59:52.000Z | Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 6 | 2018-07-16T14:57:34.000Z | 2020-08-30T05:59:52.000Z | import aspose.email.mapi.msg as msg
from aspose.email.mapi import MapiNote, NoteSaveFormat, NoteColor
def run():
dataDir = "Data/"
#ExStart: CreateAndSaveOutlookNote
note3 = MapiNote()
note3.subject = "Blue color note"
note3.body = "This is a blue color note";
note3.color = NoteColor.YELLOW
note3.height = 500
... | 25.789474 | 77 | 0.746939 | 60 | 490 | 5.95 | 0.583333 | 0.061625 | 0.084034 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031026 | 0.144898 | 490 | 18 | 78 | 27.222222 | 0.821002 | 0.130612 | 0 | 0 | 0 | 0 | 0.200472 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e04830a8bb6dffa22a3b7aa461ea3221561a26cd | 6,114 | py | Python | nonebot/internal/adapter/template.py | mobyw/nonebot2 | 36663f1a8a51bd89f4a60110047e73719adcc73d | [
"MIT"
] | null | null | null | nonebot/internal/adapter/template.py | mobyw/nonebot2 | 36663f1a8a51bd89f4a60110047e73719adcc73d | [
"MIT"
] | null | null | null | nonebot/internal/adapter/template.py | mobyw/nonebot2 | 36663f1a8a51bd89f4a60110047e73719adcc73d | [
"MIT"
] | null | null | null | import functools
from string import Formatter
from typing import (
TYPE_CHECKING,
Any,
Set,
Dict,
List,
Type,
Tuple,
Union,
Generic,
Mapping,
TypeVar,
Callable,
Optional,
Sequence,
cast,
overload,
)
if TYPE_CHECKING:
from .message import Message, Mess... | 33.048649 | 85 | 0.56248 | 666 | 6,114 | 4.995496 | 0.244745 | 0.033063 | 0.032462 | 0.013526 | 0.151488 | 0.113616 | 0.097385 | 0.097385 | 0.085963 | 0.085963 | 0 | 0.001257 | 0.349199 | 6,114 | 184 | 86 | 33.228261 | 0.834883 | 0.095846 | 0 | 0.102941 | 0 | 0 | 0.067664 | 0.004195 | 0 | 0 | 0 | 0 | 0.007353 | 1 | 0.080882 | false | 0 | 0.029412 | 0 | 0.183824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e048b527992db2f1543fe57b684fc1f640173519 | 328 | py | Python | python_Project/Day_16-20/test_2.py | Zzz-ww/Python-prac | c97f2c16b74a2c1df117f377a072811cc596f98b | [
"MIT"
] | null | null | null | python_Project/Day_16-20/test_2.py | Zzz-ww/Python-prac | c97f2c16b74a2c1df117f377a072811cc596f98b | [
"MIT"
] | null | null | null | python_Project/Day_16-20/test_2.py | Zzz-ww/Python-prac | c97f2c16b74a2c1df117f377a072811cc596f98b | [
"MIT"
] | null | null | null | """
嵌套的列表的坑
"""
names = ['关羽', '张飞', '赵云', '马超', '黄忠']
courses = ['语文', '数学', '英语']
# 录入五个学生三门课程的成绩
scores = [[None] * len(courses) for _ in range(len(names))]
for row, name in enumerate(names):
for col, course in enumerate(courses):
scores[row][col] = float(input(f'请输入{name}的{course}的成绩:'))
print... | 25.230769 | 66 | 0.591463 | 46 | 328 | 4.195652 | 0.652174 | 0.082902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185976 | 328 | 13 | 67 | 25.230769 | 0.722846 | 0.067073 | 0 | 0 | 0 | 0 | 0.12709 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
e04ce14b43e2b6f0784e3b17efec18f6e25f76d2 | 1,897 | py | Python | lib/core/parse/cmdline.py | vikas-kundu/phonedict | 6795cab0024e792340c43d95552162a985b891f6 | [
"MIT"
] | null | null | null | lib/core/parse/cmdline.py | vikas-kundu/phonedict | 6795cab0024e792340c43d95552162a985b891f6 | [
"MIT"
] | null | null | null | lib/core/parse/cmdline.py | vikas-kundu/phonedict | 6795cab0024e792340c43d95552162a985b891f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# coded by Vikas Kundu https://github.com/vikas-kundu
# -------------------------------------------
import sys
import getopt
import time
import config
from lib.core.parse import banner
from lib.core import util
from lib.core import installer
def options():
... | 28.313433 | 129 | 0.461255 | 216 | 1,897 | 4.018519 | 0.421296 | 0.02765 | 0.056452 | 0.082949 | 0.12212 | 0.064516 | 0.064516 | 0 | 0 | 0 | 0 | 0.006552 | 0.356352 | 1,897 | 66 | 130 | 28.742424 | 0.704341 | 0.072746 | 0 | 0.265306 | 0 | 0 | 0.150977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.020408 | 0.142857 | 0 | 0.163265 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e04da5eb604fc61099ea52110ba3398380247444 | 2,660 | py | Python | shoutcast_api/shoutcast_request.py | scls19fr/shoutcast_api | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | [
"MIT"
] | 6 | 2020-03-03T06:07:31.000Z | 2021-11-24T19:20:12.000Z | shoutcast_api/shoutcast_request.py | scls19fr/shoutcast_api | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | [
"MIT"
] | 6 | 2020-11-17T20:30:30.000Z | 2020-11-22T04:09:36.000Z | shoutcast_api/shoutcast_request.py | scls19fr/shoutcast_api | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | [
"MIT"
] | 1 | 2020-11-17T20:11:38.000Z | 2020-11-17T20:11:38.000Z | import xmltodict
import json
from .models import Tunein
from .utils import _init_session
from .Exceptions import APIException
base_url = 'http://api.shoutcast.com'
tunein_url = 'http://yp.shoutcast.com/{base}?id={id}'
tuneins = [Tunein('/sbin/tunein-station.pls'), Tunein('/sbin/tunein-station.m3u'), Tunein('/sbin/tun... | 38.550725 | 119 | 0.697368 | 327 | 2,660 | 5.455657 | 0.17737 | 0.07287 | 0.080717 | 0.049327 | 0.68722 | 0.645179 | 0.645179 | 0.627242 | 0.597534 | 0.543722 | 0 | 0.009166 | 0.179699 | 2,660 | 68 | 120 | 39.117647 | 0.808433 | 0 | 0 | 0.433962 | 0 | 0 | 0.122556 | 0.027444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.09434 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0530a4b979886c9eec477ba716b7cb1d54f44a5 | 12,101 | py | Python | xdl/utils/prop_limits.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | xdl/utils/prop_limits.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | xdl/utils/prop_limits.py | mcrav/xdl | c120a1cf50a9b668a79b118700930eb3d60a9298 | [
"MIT"
] | null | null | null | """Prop limits are used to validate the input given to xdl elements. For
example, a volume property should be a positive number, optionally followed by
volume units. The prop limit is used to check that input supplied is valid for
that property.
"""
import re
from typing import List, Optional
class PropLimit(object):... | 35.591176 | 277 | 0.650029 | 1,661 | 12,101 | 4.627333 | 0.198073 | 0.055035 | 0.046838 | 0.031616 | 0.288967 | 0.175904 | 0.136482 | 0.10994 | 0.080926 | 0.080926 | 0 | 0.015435 | 0.218329 | 12,101 | 339 | 278 | 35.696165 | 0.796807 | 0.441203 | 0 | 0.109195 | 0 | 0.028736 | 0.288471 | 0.090353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028736 | false | 0 | 0.011494 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0531fdc3eeb8a1247c13837ac5c2a532816fd2e | 3,884 | py | Python | dit/utils/bindargs.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | 1 | 2021-03-15T08:51:42.000Z | 2021-03-15T08:51:42.000Z | dit/utils/bindargs.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | null | null | null | dit/utils/bindargs.py | leoalfonso/dit | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | [
"BSD-3-Clause"
] | null | null | null | """
Provides usable args and kwargs from inspect.getcallargs.
For Python 3.3 and above, this module is unnecessary and can be achieved using
features from PEP 362:
http://www.python.org/dev/peps/pep-0362/
For example, to override a parameter of some function:
>>> import inspect
>>> def func(a, b=1, c=2,... | 31.072 | 79 | 0.65036 | 512 | 3,884 | 4.894531 | 0.339844 | 0.035914 | 0.020351 | 0.028731 | 0.106145 | 0.090982 | 0.090982 | 0.05826 | 0.05826 | 0 | 0 | 0.022004 | 0.239444 | 3,884 | 124 | 80 | 31.322581 | 0.826337 | 0.514933 | 0 | 0 | 0 | 0 | 0.054372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.162791 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0543e59c4fcb122d63759114f58b779ede6cdce | 540 | py | Python | graph/articulation_points.py | fujihiraryo/library | cdb01e710219d7111f890d09f89531916dd03533 | [
"MIT"
] | null | null | null | graph/articulation_points.py | fujihiraryo/library | cdb01e710219d7111f890d09f89531916dd03533 | [
"MIT"
] | 4 | 2020-12-16T10:00:00.000Z | 2021-02-12T12:51:50.000Z | graph/articulation_points.py | fujihiraryo/python-kyopro-library | cdb01e710219d7111f890d09f89531916dd03533 | [
"MIT"
] | null | null | null | from depth_first_search import DFS
def articulation_points(graph):
n = len(graph)
dfs = DFS(graph)
order = [None] * n
for i, x in enumerate(dfs.preorder):
order[x] = i
lower = order[:]
for x in dfs.preorder[::-1]:
for y in graph[x]:
if y == dfs.parent[x]:
... | 25.714286 | 62 | 0.522222 | 83 | 540 | 3.361446 | 0.385542 | 0.032258 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014045 | 0.340741 | 540 | 20 | 63 | 27 | 0.769663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e055245acd2ad8d01c1ab4aacd02a9a0e3b9e3b6 | 1,558 | py | Python | database.py | AndreAngelucci/popcorn_time_bot | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | [
"MIT"
] | null | null | null | database.py | AndreAngelucci/popcorn_time_bot | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | [
"MIT"
] | 1 | 2021-06-02T00:39:42.000Z | 2021-06-02T00:39:42.000Z | database.py | AndreAngelucci/popcorn_time_bot | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | [
"MIT"
] | null | null | null | import pymongo
from conf import Configuracoes
class Mongo_Database:
""" Singleton com a conexao com o MongoDB """
_instancia = None
def __new__(cls, *args, **kwargs):
if not(cls._instancia):
cls._instancia = super(Mongo_Database, cls).__new__(cls, *args, **kwargs)
return cls._in... | 39.948718 | 88 | 0.617458 | 179 | 1,558 | 5.122905 | 0.47486 | 0.076336 | 0.049073 | 0.034896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000903 | 0.288832 | 1,558 | 38 | 89 | 41 | 0.826715 | 0.129012 | 0 | 0.068966 | 0 | 0 | 0.104677 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.137931 | false | 0 | 0.068966 | 0 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0573523b4d451bef7e8afb67ef1d49c8d3db2d3 | 1,051 | py | Python | Other_Python/Kernel_Methods/matrix_operations.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | null | null | null | Other_Python/Kernel_Methods/matrix_operations.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | null | null | null | Other_Python/Kernel_Methods/matrix_operations.py | Romit-Maulik/Tutorials-Demos-Practice | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 22 14:36:48 2020
@author: matth
"""
import autograd.numpy as np
#%% Kernel operations
# Returns the norm of the pairwise difference
def norm_matrix(matrix_1, matrix_2):
norm_square_1 = np.sum(np.square(matrix_1), axis = 1)
norm_square_1 = np.reshape(norm_square_... | 25.02381 | 79 | 0.676499 | 172 | 1,051 | 3.854651 | 0.296512 | 0.116139 | 0.090498 | 0.108597 | 0.440422 | 0.28356 | 0.28356 | 0.28356 | 0.184012 | 0.184012 | 0 | 0.068884 | 0.198858 | 1,051 | 42 | 80 | 25.02381 | 0.718527 | 0.164605 | 0 | 0.380952 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.238095 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0576a003dfb918c45d8ae2afa80c98a64287387 | 2,371 | py | Python | cors/resources/cors-makeheader.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | cors/resources/cors-makeheader.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | cors/resources/cors-makeheader.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | import json
from wptserve.utils import isomorphic_decode
def main(request, response):
origin = request.GET.first(b"origin", request.headers.get(b'origin') or b'none')
if b"check" in request.GET:
token = request.GET.first(b"token")
value = request.server.stash.take(token)
if value is n... | 33.871429 | 100 | 0.619148 | 329 | 2,371 | 4.43465 | 0.261398 | 0.13708 | 0.113091 | 0.120631 | 0.191912 | 0.126114 | 0.126114 | 0.100754 | 0.100754 | 0.100754 | 0 | 0.008451 | 0.251371 | 2,371 | 69 | 101 | 34.362319 | 0.813521 | 0.065795 | 0 | 0.078431 | 0 | 0 | 0.162822 | 0.064224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.039216 | 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 |
e057de6d96dbc248f4a0c02caf3e3c52ad4ff136 | 1,053 | py | Python | device_osc_grid.py | wlfyit/PiLightsLib | 98e39af45f05d0ee44e2f166de5b654d58df33ae | [
"MIT"
] | null | null | null | device_osc_grid.py | wlfyit/PiLightsLib | 98e39af45f05d0ee44e2f166de5b654d58df33ae | [
"MIT"
] | null | null | null | device_osc_grid.py | wlfyit/PiLightsLib | 98e39af45f05d0ee44e2f166de5b654d58df33ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from pythonosc import osc_bundle_builder
from pythonosc import osc_message_builder
from pythonosc import udp_client
from .device import DeviceObj
# OSC Grid Object
class OSCGrid(DeviceObj):
def __init__(self, name, width, height, ip, port, bri=1):
DeviceObj.__init__(self, name, "os... | 24.488372 | 100 | 0.636277 | 142 | 1,053 | 4.556338 | 0.415493 | 0.061824 | 0.088099 | 0.068006 | 0.034003 | 0.034003 | 0 | 0 | 0 | 0 | 0 | 0.008838 | 0.247863 | 1,053 | 42 | 101 | 25.071429 | 0.808081 | 0.058879 | 0 | 0 | 0 | 0 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e05894d94e1647d1250203e64a76b21248195718 | 1,274 | py | Python | test.py | iron-io/iron_cache_python | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | [
"BSD-2-Clause"
] | 3 | 2015-08-01T13:30:16.000Z | 2021-03-22T10:25:57.000Z | test.py | iron-io/iron_cache_python | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | [
"BSD-2-Clause"
] | 1 | 2015-06-02T08:53:44.000Z | 2015-06-02T09:59:17.000Z | test.py | iron-io/iron_cache_python | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | [
"BSD-2-Clause"
] | 3 | 2015-05-12T18:13:52.000Z | 2016-09-08T20:43:40.000Z | from iron_cache import *
import unittest
import requests
class TestIronCache(unittest.TestCase):
def setUp(self):
self.cache = IronCache("test_cache")
def test_get(self):
self.cache.put("test_item", "testing")
item = self.cache.get("test_item")
self.assertEqual(item.value, "te... | 31.073171 | 56 | 0.631868 | 161 | 1,274 | 4.819876 | 0.254658 | 0.185567 | 0.092784 | 0.123711 | 0.592784 | 0.453608 | 0.329897 | 0.329897 | 0.329897 | 0.329897 | 0 | 0.014315 | 0.232339 | 1,274 | 40 | 57 | 31.85 | 0.779141 | 0 | 0 | 0.151515 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.151515 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e05b4851d3707561c8c65e7a4b20ce903889be85 | 1,550 | py | Python | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | leipzig/gatk-sv | 96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a | [
"BSD-3-Clause"
] | 76 | 2020-06-18T21:31:43.000Z | 2022-03-02T18:42:58.000Z | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | iamh2o/gatk-sv | bf3704bd1d705339577530e267cd4d1b2f77a17f | [
"BSD-3-Clause"
] | 195 | 2020-06-22T15:12:28.000Z | 2022-03-28T18:06:46.000Z | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | iamh2o/gatk-sv | bf3704bd1d705339577530e267cd4d1b2f77a17f | [
"BSD-3-Clause"
] | 39 | 2020-07-03T06:47:18.000Z | 2022-03-03T03:47:25.000Z | #!/usr/bin/env python
import argparse
DELIMITER = "\t"
def merge(genotypes_filename, gq_filename, merged_filename):
with open(genotypes_filename, "r") as genotypes, open(gq_filename, "r") as gq, open(merged_filename, "w") as merged:
# Integrity check: do the files have same columns?
genotypes_... | 36.046512 | 120 | 0.627742 | 210 | 1,550 | 4.466667 | 0.361905 | 0.010661 | 0.085288 | 0.059701 | 0.03838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009483 | 0.251613 | 1,550 | 42 | 121 | 36.904762 | 0.799138 | 0.079355 | 0 | 0 | 0 | 0.037037 | 0.132022 | 0.018258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e05cac875b2516b4ba7c777d72d8ac768173cf38 | 3,091 | py | Python | crawling/sns/main.py | CSID-DGU/2021-2-OSSP2-TwoRolless-2 | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | [
"MIT"
] | null | null | null | crawling/sns/main.py | CSID-DGU/2021-2-OSSP2-TwoRolless-2 | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | [
"MIT"
] | null | null | null | crawling/sns/main.py | CSID-DGU/2021-2-OSSP2-TwoRolless-2 | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | [
"MIT"
] | 1 | 2021-10-15T05:19:20.000Z | 2021-10-15T05:19:20.000Z | import tweepy
import traceback
import time
import pymongo
from tweepy import OAuthHandler
from pymongo import MongoClient
from pymongo.cursor import CursorType
twitter_consumer_key = ""
twitter_consumer_secret = ""
twitter_access_token = ""
twitter_access_secret = ""
auth = OAuthHandler(twitter_consumer_key, twitter_... | 29.438095 | 126 | 0.547072 | 325 | 3,091 | 5.061538 | 0.44 | 0.029179 | 0.032827 | 0.043769 | 0.175684 | 0.133739 | 0.041337 | 0 | 0 | 0 | 0 | 0.014085 | 0.310903 | 3,091 | 104 | 127 | 29.721154 | 0.756808 | 0 | 0 | 0.075269 | 0 | 0 | 0.155613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010753 | false | 0 | 0.075269 | 0 | 0.086022 | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e05cbd467aaeb3118a784785e85a274a27c23842 | 698 | py | Python | demos/interactive-classifier/config.py | jepabe/Demo_earth2 | ab20c3a9114904219688b16f8a1273e68927e6f9 | [
"Apache-2.0"
] | 1,909 | 2015-04-22T20:18:22.000Z | 2022-03-31T13:42:03.000Z | demos/interactive-classifier/config.py | jepabe/Demo_earth2 | ab20c3a9114904219688b16f8a1273e68927e6f9 | [
"Apache-2.0"
] | 171 | 2015-09-24T05:49:49.000Z | 2022-03-14T00:54:50.000Z | demos/interactive-classifier/config.py | jepabe/Demo_earth2 | ab20c3a9114904219688b16f8a1273e68927e6f9 | [
"Apache-2.0"
] | 924 | 2015-04-23T05:43:18.000Z | 2022-03-28T12:11:31.000Z | #!/usr/bin/env python
"""Handles Earth Engine service account configuration."""
import ee
# The service account email address authorized by your Google contact.
# Set up a service account as described in the README.
EE_ACCOUNT = 'your-service-account-id@developer.gserviceaccount.com'
# The private key associated wit... | 41.058824 | 79 | 0.787966 | 101 | 698 | 5.356436 | 0.574257 | 0.12939 | 0.066543 | 0.05915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009917 | 0.133238 | 698 | 16 | 80 | 43.625 | 0.884298 | 0.683381 | 0 | 0 | 0 | 0 | 0.320574 | 0.253589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e061aa108e5ec8060888f9dff1215ff5763d024a | 2,847 | py | Python | projects/scocen/cmd_components_simple.py | mikeireland/chronostar | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | [
"MIT"
] | 4 | 2018-05-28T11:05:42.000Z | 2021-05-14T01:13:11.000Z | projects/scocen/cmd_components_simple.py | mikeireland/chronostar | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | [
"MIT"
] | 13 | 2019-08-14T07:30:24.000Z | 2021-11-08T23:44:29.000Z | projects/scocen/cmd_components_simple.py | mikeireland/chronostar | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | [
"MIT"
] | 4 | 2016-04-21T08:25:26.000Z | 2021-02-25T06:53:52.000Z | """
Plot CMDs for each component.
"""
import numpy as np
from astropy.table import Table
import matplotlib.pyplot as plt
import matplotlib.cm as cm
plt.ion()
# Pretty plots
from fig_settings import *
############################################
# Some things are the same for all the plotting scripts and we put
# thi... | 26.858491 | 122 | 0.601686 | 444 | 2,847 | 3.774775 | 0.38964 | 0.008353 | 0.023866 | 0.038186 | 0.182578 | 0.127685 | 0.127685 | 0.127685 | 0.082339 | 0.026253 | 0 | 0.062366 | 0.183351 | 2,847 | 105 | 123 | 27.114286 | 0.658495 | 0.162979 | 0 | 0.065574 | 0 | 0 | 0.113199 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 1 | 0.016393 | false | 0 | 0.098361 | 0 | 0.131148 | 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 |
e06418cb46f2f01ccc35fc22e565190b30c821ed | 16,478 | py | Python | curlypiv/synthetics/microsig.py | sean-mackenzie/curlypiv | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | [
"MIT"
] | null | null | null | curlypiv/synthetics/microsig.py | sean-mackenzie/curlypiv | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | [
"MIT"
] | 1 | 2021-06-14T17:24:43.000Z | 2021-06-14T17:24:43.000Z | curlypiv/synthetics/microsig.py | sean-mackenzie/curlypiv | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | [
"MIT"
] | null | null | null | # microsig
"""
Author: Maximilliano Rossi
More detail about the MicroSIG can be found at:
Website:
https://gitlab.com/defocustracking/microsig-python
Publication:
Rossi M, Synthetic image generator for defocusing and astigmatic PIV/PTV, Meas. Sci. Technol., 31, 017003 (2020)
DOI:10.1088/1361-6501/ab42bb.
"... | 32.956 | 119 | 0.506615 | 2,403 | 16,478 | 3.384519 | 0.158136 | 0.009591 | 0.028403 | 0.01623 | 0.486045 | 0.458502 | 0.434526 | 0.430714 | 0.391369 | 0.363089 | 0 | 0.04022 | 0.327042 | 16,478 | 499 | 120 | 33.022044 | 0.693209 | 0.139641 | 0 | 0.397015 | 0 | 0 | 0.094134 | 0.001915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026866 | false | 0 | 0.026866 | 0 | 0.074627 | 0.01194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e06b5b33923a9795875422db89edadd2030423bd | 292 | py | Python | working/tkinter_widget/test.py | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | working/tkinter_widget/test.py | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | working/tkinter_widget/test.py | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import threading
def test():
while 1:
img1=cv2.imread('captured car1.jpg')
print("{}".format(img1.shape))
print("{}".format(img1))
cv2.imshow('asd',img1)
cv2.waitKey(1)
t1 = threading.Thread(target=test)
t1.start()
| 18.25 | 44 | 0.60274 | 39 | 292 | 4.512821 | 0.641026 | 0.119318 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058296 | 0.236301 | 292 | 15 | 45 | 19.466667 | 0.730942 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e06beb7e97ea00b98e3ff8423b4c33335a68172e | 7,856 | py | Python | ceilometer/compute/virt/hyperv/utilsv2.py | aristanetworks/ceilometer | 8776b137f82f71eef1241bcb1600de10c1f77394 | [
"Apache-2.0"
] | 2 | 2015-09-07T09:15:26.000Z | 2015-09-30T02:13:23.000Z | ceilometer/compute/virt/hyperv/utilsv2.py | aristanetworks/ceilometer | 8776b137f82f71eef1241bcb1600de10c1f77394 | [
"Apache-2.0"
] | null | null | null | ceilometer/compute/virt/hyperv/utilsv2.py | aristanetworks/ceilometer | 8776b137f82f71eef1241bcb1600de10c1f77394 | [
"Apache-2.0"
] | 1 | 2019-09-16T02:11:41.000Z | 2019-09-16T02:11:41.000Z | # Copyright 2013 Cloudbase Solutions Srl
#
# Author: Claudiu Belu <cbelu@cloudbasesolutions.com>
# Alessandro Pilotti <apilotti@cloudbasesolutions.com>
#
# 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 o... | 37.056604 | 78 | 0.66777 | 995 | 7,856 | 4.901508 | 0.257286 | 0.042444 | 0.018659 | 0.019684 | 0.157064 | 0.11421 | 0.046135 | 0.046135 | 0.046135 | 0.02276 | 0 | 0.008355 | 0.253437 | 7,856 | 211 | 79 | 37.232227 | 0.823188 | 0.126782 | 0 | 0.062069 | 0 | 0 | 0.088261 | 0.03791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124138 | false | 0.006897 | 0.041379 | 0.013793 | 0.365517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e06fed7cfa54e3e815b314104d5c76b1f273336e | 1,126 | py | Python | src/cli.py | cajones314/avocd2019 | 268e03c5d1bb5b3e14459b831916bb7846f40def | [
"MIT"
] | null | null | null | src/cli.py | cajones314/avocd2019 | 268e03c5d1bb5b3e14459b831916bb7846f40def | [
"MIT"
] | null | null | null | src/cli.py | cajones314/avocd2019 | 268e03c5d1bb5b3e14459b831916bb7846f40def | [
"MIT"
] | null | null | null | # system
from io import IOBase, StringIO
import os
# 3rd party
import click
# internal
from days import DayFactory
# import logging
# logger = logging.getLogger(__name__)
# logger.setLevel(logging.DEBUG)
# ch = logging.StreamHandler()
# logger.addHandler(ch)
@click.group(invoke_without_command=True)
@click.option... | 28.15 | 122 | 0.69627 | 159 | 1,126 | 4.811321 | 0.490566 | 0.043137 | 0.062745 | 0.082353 | 0.078431 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.134103 | 1,126 | 39 | 123 | 28.871795 | 0.771282 | 0.175844 | 0 | 0 | 0 | 0 | 0.203704 | 0.030501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0709fa966341538c2d49529de984d39878ed846 | 3,885 | py | Python | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | Aditya239233/MDP | 87491e1d67e547c11f4bdd5d784d120473429eae | [
"MIT"
] | 4 | 2022-01-14T15:06:43.000Z | 2022-01-18T14:45:04.000Z | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | Aditya239233/MDP | 87491e1d67e547c11f4bdd5d784d120473429eae | [
"MIT"
] | null | null | null | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | Aditya239233/MDP | 87491e1d67e547c11f4bdd5d784d120473429eae | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import math
from algorithm.planner.utils.car_utils import Car_C
PI = np.pi
class Arrow:
def __init__(self, x, y, theta, L, c):
angle = np.deg2rad(30)
d = 0.3 * L
w = 2
x_start = x
y_start = y
x_end = x + L * np.co... | 33.491379 | 148 | 0.53565 | 687 | 3,885 | 2.79476 | 0.117904 | 0.095833 | 0.036458 | 0.04375 | 0.38125 | 0.307813 | 0.247396 | 0.231771 | 0.183854 | 0.163021 | 0 | 0.022521 | 0.291377 | 3,885 | 115 | 149 | 33.782609 | 0.6749 | 0.019305 | 0 | 0 | 0 | 0 | 0.003943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035294 | false | 0 | 0.047059 | 0 | 0.105882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e072653c74adbd64f985b81e9b674ad50e5a700a | 27,779 | py | Python | aws_deploy/ecs/helper.py | jmsantorum/aws-deploy | f117cff3a5440ee42470feaa2a83263c3212cf10 | [
"BSD-3-Clause"
] | null | null | null | aws_deploy/ecs/helper.py | jmsantorum/aws-deploy | f117cff3a5440ee42470feaa2a83263c3212cf10 | [
"BSD-3-Clause"
] | null | null | null | aws_deploy/ecs/helper.py | jmsantorum/aws-deploy | f117cff3a5440ee42470feaa2a83263c3212cf10 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T12:07:11.000Z | 2021-08-05T12:07:11.000Z | import json
import re
from datetime import datetime
from json.decoder import JSONDecodeError
import click
from boto3.session import Session
from boto3_type_annotations.ecs import Client
from botocore.exceptions import ClientError, NoCredentialsError
from dateutil.tz.tz import tzlocal
from dictdiffer import diff
JSON_... | 34.767209 | 119 | 0.585586 | 2,825 | 27,779 | 5.536991 | 0.105841 | 0.059967 | 0.017389 | 0.010357 | 0.341772 | 0.266206 | 0.222478 | 0.187572 | 0.141926 | 0.093211 | 0 | 0.001385 | 0.32431 | 27,779 | 798 | 120 | 34.810777 | 0.831966 | 0.006984 | 0 | 0.26015 | 0 | 0.004511 | 0.077991 | 0.003843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103759 | false | 0.009023 | 0.015038 | 0.031579 | 0.231579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e07447362c2cd948e8959b2a92a8309441af1ece | 3,715 | py | Python | sbm.py | emmaling27/networks-research | be209e2b653a1fe9eec480a94538d59104e4aa23 | [
"MIT"
] | null | null | null | sbm.py | emmaling27/networks-research | be209e2b653a1fe9eec480a94538d59104e4aa23 | [
"MIT"
] | null | null | null | sbm.py | emmaling27/networks-research | be209e2b653a1fe9eec480a94538d59104e4aa23 | [
"MIT"
] | null | null | null | import networkx as nx
from scipy.special import comb
import attr
@attr.s
class Count(object):
"""Count class with monochromatic and bichromatic counts"""
n = attr.ib()
monochromatic = attr.ib(default=0)
bichromatic = attr.ib(default=0)
def count_edge(self, u, v):
if (u < self.n / 2) != (v... | 35.04717 | 125 | 0.54105 | 528 | 3,715 | 3.698864 | 0.143939 | 0.084485 | 0.064516 | 0.035842 | 0.395801 | 0.366615 | 0.317972 | 0.260625 | 0.181772 | 0.169483 | 0 | 0.02902 | 0.313594 | 3,715 | 106 | 126 | 35.04717 | 0.736863 | 0.035532 | 0 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16092 | false | 0 | 0.034483 | 0.091954 | 0.390805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0745cd9bd4ca77f2c09e9dd6bb425b9d75991b3 | 4,516 | py | Python | src/data/graph/ops/anagram_transform_op.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | 2 | 2020-08-18T18:43:09.000Z | 2020-08-18T20:05:59.000Z | src/data/graph/ops/anagram_transform_op.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | src/data/graph/ops/anagram_transform_op.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | from typing import Callable, Collection, Iterable, List, Union
from data.anagram import anagram_iter
from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer
Transformer = Callable[['bloom_node.BloomNode'], 'bloom_node.BloomNode']
_SPACE_MASK = bloom_mask.for_alpha(' ')
def merge_fn(
host: 'b... | 35.84127 | 79 | 0.717449 | 579 | 4,516 | 5.267703 | 0.24525 | 0.039344 | 0.059016 | 0.014426 | 0.066885 | 0.015738 | 0.015738 | 0.015738 | 0 | 0 | 0 | 0.003005 | 0.189548 | 4,516 | 125 | 80 | 36.128 | 0.830328 | 0.104739 | 0 | 0.098039 | 0 | 0 | 0.051117 | 0 | 0 | 0 | 0 | 0.008 | 0.019608 | 1 | 0.078431 | false | 0 | 0.029412 | 0.009804 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0756c223fe0a2644bdda0e4b367139a612e5089 | 943 | py | Python | setup.py | gibsonMatt/stacks-pairwise | 8f3cde603c2bfed255f6c399557e9332072886fb | [
"MIT"
] | null | null | null | setup.py | gibsonMatt/stacks-pairwise | 8f3cde603c2bfed255f6c399557e9332072886fb | [
"MIT"
] | null | null | null | setup.py | gibsonMatt/stacks-pairwise | 8f3cde603c2bfed255f6c399557e9332072886fb | [
"MIT"
] | null | null | null | import pathlib
import os
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# specify requirements of your package here
REQUIREMENTS = ['biopython', 'numpy', 'pandas']
setup(name='stacksPairwi... | 29.46875 | 100 | 0.694592 | 103 | 943 | 6.194175 | 0.669903 | 0.00627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.191941 | 943 | 31 | 101 | 30.419355 | 0.833333 | 0.110286 | 0 | 0 | 0 | 0 | 0.398802 | 0.081437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e0774173b092651de83171acaf096405634f72ae | 2,536 | py | Python | projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py | klemenkotar/dcrl | 457be7af1389db37ec12e165dfad646e17359162 | [
"MIT"
] | 18 | 2021-06-09T04:50:47.000Z | 2022-02-04T22:56:56.000Z | projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py | klemenkotar/dcrl | 457be7af1389db37ec12e165dfad646e17359162 | [
"MIT"
] | null | null | null | projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py | klemenkotar/dcrl | 457be7af1389db37ec12e165dfad646e17359162 | [
"MIT"
] | 4 | 2021-06-09T06:20:25.000Z | 2022-03-13T03:11:17.000Z | import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losses.imitation import Imitation
from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig
from allenact.utils.experiment_util... | 34.27027 | 88 | 0.635252 | 273 | 2,536 | 5.619048 | 0.413919 | 0.031291 | 0.043025 | 0.05867 | 0.078227 | 0.078227 | 0 | 0 | 0 | 0 | 0 | 0.018364 | 0.291404 | 2,536 | 73 | 89 | 34.739726 | 0.835281 | 0.054811 | 0 | 0.079365 | 0 | 0 | 0.033179 | 0.01092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.126984 | 0.015873 | 0.206349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e077592087a48a19c044b7ca66417c720c7d2548 | 12,328 | py | Python | BioCAT/src/Calculating_scores.py | DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool | d58d330e3e11380c0c917a0ad9c12a51447f1624 | [
"MIT"
] | 4 | 2021-04-16T14:42:47.000Z | 2021-06-11T14:29:35.000Z | BioCAT/src/Calculating_scores.py | DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool | d58d330e3e11380c0c917a0ad9c12a51447f1624 | [
"MIT"
] | 3 | 2021-07-23T09:30:59.000Z | 2021-11-07T17:40:59.000Z | BioCAT/src/Calculating_scores.py | DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool | d58d330e3e11380c0c917a0ad9c12a51447f1624 | [
"MIT"
] | 1 | 2022-02-27T17:19:50.000Z | 2022-02-27T17:19:50.000Z | from numpy import array
from pickle import load
from pandas import read_csv
import os
from BioCAT.src.Combinatorics import multi_thread_shuffling, multi_thread_calculating_scores, make_combine, get_score, get_max_aminochain, skipper
# Importing random forest model
modelpath = os.path.dirname(os.path.abspath(__file__)... | 42.510345 | 236 | 0.649903 | 1,487 | 12,328 | 5.149294 | 0.169469 | 0.054329 | 0.030168 | 0.033956 | 0.539637 | 0.474468 | 0.438684 | 0.372731 | 0.325454 | 0.319054 | 0 | 0.002117 | 0.271901 | 12,328 | 289 | 237 | 42.657439 | 0.850936 | 0.332414 | 0 | 0.127119 | 0 | 0 | 0.039943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042373 | false | 0 | 0.042373 | 0 | 0.127119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e07835355388fff9c6902a335662f753bb73c86c | 14,599 | py | Python | Template.py | rainshen49/citadel-trading-comp | 3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5 | [
"MIT"
] | 2 | 2018-12-11T03:33:06.000Z | 2021-09-21T01:12:58.000Z | Template.py | rainshen49/citadel-trading-comp | 3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5 | [
"MIT"
] | null | null | null | Template.py | rainshen49/citadel-trading-comp | 3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5 | [
"MIT"
] | null | null | null | import signal
import requests
import time
from math import floor
shutdown = False
MAIN_TAKER = 0.0065
MAIN_MAKER = 0.002
ALT_TAKER = 0.005
ALT_MAKER = 0.0035
TAKER = (MAIN_TAKER + ALT_TAKER)*2
MAKER = MAIN_MAKER + ALT_MAKER
TAKEMAIN = MAIN_TAKER - ALT_MAKER
TAKEALT = ALT_TAKER - MAIN_MAKER
BUFFER = 0.0... | 33.407323 | 116 | 0.558052 | 1,713 | 14,599 | 4.66725 | 0.166375 | 0.011382 | 0.018762 | 0.018011 | 0.353096 | 0.316573 | 0.306316 | 0.295184 | 0.219262 | 0.174359 | 0 | 0.014465 | 0.32283 | 14,599 | 436 | 117 | 33.483945 | 0.794255 | 0.046784 | 0 | 0.298295 | 0 | 0 | 0.075723 | 0.001635 | 0 | 0 | 0 | 0.002294 | 0 | 1 | 0.090909 | false | 0.002841 | 0.011364 | 0.008523 | 0.196023 | 0.039773 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e079004173a435849592703f1baaf8e8d87ed079 | 9,131 | py | Python | workflows/workflow.py | sunnyfloyd/panderyx | 82f03625159833930ff044a43a6619ab710ff159 | [
"MIT"
] | null | null | null | workflows/workflow.py | sunnyfloyd/panderyx | 82f03625159833930ff044a43a6619ab710ff159 | [
"MIT"
] | null | null | null | workflows/workflow.py | sunnyfloyd/panderyx | 82f03625159833930ff044a43a6619ab710ff159 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Optional, Union
from tools import tools
from exceptions import workflow_exceptions
class Workflow:
"""A class to represent a workflow.
Workflow class provides set of methods to manage state of the workflow.
It allows for tool insertions, removals and... | 33.818519 | 87 | 0.61461 | 1,221 | 9,131 | 4.411957 | 0.15561 | 0.05569 | 0.022276 | 0.019491 | 0.430295 | 0.317616 | 0.278819 | 0.247633 | 0.194728 | 0.164841 | 0 | 0.001273 | 0.311685 | 9,131 | 269 | 88 | 33.944238 | 0.855847 | 0.432045 | 0 | 0.257143 | 0 | 0 | 0.005623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.038095 | 0.019048 | 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 |
0eb2fde0bae97bffa51893b405703a8d74ef6c29 | 14,826 | py | Python | PLM/options.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | 7 | 2017-12-22T02:49:58.000Z | 2018-05-09T05:29:06.000Z | PLM/options.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | null | null | null | PLM/options.py | vtta2008/pipelineTool | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | [
"Apache-2.0"
] | 3 | 2019-03-11T21:54:52.000Z | 2019-11-25T11:23:17.000Z | # -*- coding: utf-8 -*-
"""
Script Name:
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
""" Import """
import os
from PySide2.QtWidgets import (QFrame, QStyle, QAbstractItemView, QSizePolicy... | 43.994065 | 114 | 0.475651 | 1,091 | 14,826 | 6.351971 | 0.511457 | 0.019625 | 0.008081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058014 | 0.391947 | 14,826 | 337 | 115 | 43.994065 | 0.710593 | 0.096587 | 0 | 0.008547 | 0 | 0 | 0.006299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004274 | 0.017094 | 0 | 0.017094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eb3ad476194898d48e135372f34d1ee69bc79d8 | 2,509 | py | Python | Crawling/ssafyCrawling.py | Nyapy/FMTG | dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e | [
"MIT"
] | null | null | null | Crawling/ssafyCrawling.py | Nyapy/FMTG | dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e | [
"MIT"
] | null | null | null | Crawling/ssafyCrawling.py | Nyapy/FMTG | dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import sys
import time
import urllib.request
import os
sys.stdin = open('idpwd.txt')
site = input()
id = input()
pwd = input()
# selenium에서 사용할 웹 드라이버 절대 경로 정보
chromedriver = 'C:\Webdriver\chromedriver.exe'
# selenum의 webdriver에 앞서 설치... | 32.166667 | 109 | 0.719012 | 369 | 2,509 | 4.661247 | 0.341463 | 0.110465 | 0.098837 | 0.110465 | 0.437209 | 0.337209 | 0.32093 | 0.247674 | 0.223837 | 0.2 | 0 | 0.012362 | 0.09725 | 2,509 | 77 | 110 | 32.584416 | 0.74702 | 0.461538 | 0 | 0 | 0 | 0 | 0.230886 | 0.092354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eb4432b0091105498b6cde85c1c9de8fc2676cc | 1,433 | py | Python | 100days/day95/StringIO_demo.py | chainren/python-learn | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | [
"Apache-2.0"
] | null | null | null | 100days/day95/StringIO_demo.py | chainren/python-learn | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | [
"Apache-2.0"
] | 16 | 2020-02-12T03:09:30.000Z | 2022-03-12T00:08:59.000Z | 100days/day95/StringIO_demo.py | chainren/python-learn | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | [
"Apache-2.0"
] | null | null | null |
from io import StringIO
# 定义一个 StringIO 对象,写入并读取其在内存中的内容
f = StringIO()
f.write('Python-100')
str = f.getvalue() # 读取写入的内容
print('写入内存中的字符串为:%s' %str)
f.write('\n') # 追加内容
f.write('坚持100天')
f.close() # 关闭
f1 = StringIO('Python-100' + '\n' + '坚持100天')
# 读取内容
print(f1.read())
f1.close()
# 假设的爬虫数据输出函数 outputDa... | 18.61039 | 47 | 0.673412 | 187 | 1,433 | 5.160428 | 0.358289 | 0.02487 | 0.027979 | 0.046632 | 0.58342 | 0.58342 | 0.58342 | 0.58342 | 0.58342 | 0.58342 | 0 | 0.035533 | 0.175157 | 1,433 | 77 | 48 | 18.61039 | 0.78088 | 0.251221 | 0 | 0.589744 | 0 | 0 | 0.20038 | 0.021842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.128205 | 0.25641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eb4f1bf9aa917694ffc04ea836799d3bd9b4710 | 2,751 | py | Python | tests/test_cli.py | Nate1729/FinPack | d76fd5e6538298d5596d5b0f7d3be2bc6520c431 | [
"Apache-2.0"
] | 1 | 2022-01-28T20:05:22.000Z | 2022-01-28T20:05:22.000Z | tests/test_cli.py | Nate1729/FinPack | d76fd5e6538298d5596d5b0f7d3be2bc6520c431 | [
"Apache-2.0"
] | 30 | 2021-11-22T19:07:54.000Z | 2021-12-18T03:00:47.000Z | tests/test_cli.py | Nate1729/FinPack | d76fd5e6538298d5596d5b0f7d3be2bc6520c431 | [
"Apache-2.0"
] | 2 | 2021-12-13T20:27:52.000Z | 2021-12-17T18:39:40.000Z | """Contains tests for finpack/core/cli.py
"""
__copyright__ = "Copyright (C) 2021 Matt Ferreira"
import os
import unittest
from importlib import metadata
from docopt import docopt
from finpack.core import cli
class TestCli(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.DATA_DIR = "temp"
... | 25.238532 | 62 | 0.623773 | 324 | 2,751 | 5.012346 | 0.185185 | 0.112069 | 0.144089 | 0.108374 | 0.576355 | 0.461207 | 0.461207 | 0.461207 | 0.461207 | 0.435345 | 0 | 0.011748 | 0.226463 | 2,751 | 108 | 63 | 25.472222 | 0.75141 | 0.013813 | 0 | 0.393939 | 0 | 0 | 0.149298 | 0.018108 | 0 | 0 | 0 | 0 | 0.287879 | 1 | 0.19697 | false | 0 | 0.075758 | 0 | 0.287879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eb8ddc2c0219670903c4425de4ca4b63a33f316 | 10,124 | py | Python | recipe_engine/internal/commands/__init__.py | Acidburn0zzz/luci | d8993f4684839b58f5f966dd6273d1d8fd001eae | [
"Apache-2.0"
] | 1 | 2021-04-24T04:03:01.000Z | 2021-04-24T04:03:01.000Z | recipe_engine/internal/commands/__init__.py | Acidburn0zzz/luci | d8993f4684839b58f5f966dd6273d1d8fd001eae | [
"Apache-2.0"
] | null | null | null | recipe_engine/internal/commands/__init__.py | Acidburn0zzz/luci | d8993f4684839b58f5f966dd6273d1d8fd001eae | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""This package houses all subcommands for the recipe engine.
See implementation_details.md for the expectations of the modules in this
directory... | 35.152778 | 80 | 0.697452 | 1,424 | 10,124 | 4.785112 | 0.308287 | 0.022014 | 0.014382 | 0.010566 | 0.072791 | 0.046962 | 0.037276 | 0.037276 | 0.037276 | 0.037276 | 0 | 0.002132 | 0.212465 | 10,124 | 287 | 81 | 35.275261 | 0.852502 | 0.367641 | 0 | 0.145455 | 0 | 0 | 0.13239 | 0 | 0 | 0 | 0 | 0.003484 | 0 | 1 | 0.054545 | false | 0 | 0.066667 | 0 | 0.145455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eb8efd29824103fb230c6103a6e3a8b1b30a534 | 7,295 | py | Python | openfl/pipelines/stc_pipeline.py | sarthakpati/openfl | 8edebfd565d94f709a7d7f06d9ee38a7975c066e | [
"Apache-2.0"
] | null | null | null | openfl/pipelines/stc_pipeline.py | sarthakpati/openfl | 8edebfd565d94f709a7d7f06d9ee38a7975c066e | [
"Apache-2.0"
] | null | null | null | openfl/pipelines/stc_pipeline.py | sarthakpati/openfl | 8edebfd565d94f709a7d7f06d9ee38a7975c066e | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""STCPipelinemodule."""
import numpy as np
import gzip as gz
from .pipeline import TransformationPipeline, Transformer
class SparsityTransformer(Transformer):
"""A transformer class to sparsify input data."""
def __init__(s... | 33.159091 | 99 | 0.622207 | 878 | 7,295 | 4.995444 | 0.223235 | 0.02508 | 0.02736 | 0.029184 | 0.312814 | 0.21637 | 0.206794 | 0.181943 | 0.170999 | 0.149567 | 0 | 0.012004 | 0.291981 | 7,295 | 219 | 100 | 33.310502 | 0.837173 | 0.376422 | 0 | 0.183908 | 0 | 0 | 0.014595 | 0 | 0 | 0 | 0 | 0.004566 | 0 | 1 | 0.137931 | false | 0 | 0.045977 | 0 | 0.321839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ebe32fa6550f0c6be308f3edf45681f0583afc5 | 730 | py | Python | scripts/compare.py | SnoozeTime/nes | 4d60562c59e175485eb3dff043c0c78473034cdb | [
"Unlicense"
] | 1 | 2022-01-07T02:00:36.000Z | 2022-01-07T02:00:36.000Z | scripts/compare.py | SnoozeTime/nes | 4d60562c59e175485eb3dff043c0c78473034cdb | [
"Unlicense"
] | 6 | 2020-12-12T03:21:55.000Z | 2022-02-18T11:22:28.000Z | scripts/compare.py | SnoozeTime/nes | 4d60562c59e175485eb3dff043c0c78473034cdb | [
"Unlicense"
] | 1 | 2018-12-02T20:42:10.000Z | 2018-12-02T20:42:10.000Z | import sys
def load_log_sp(filename):
data = []
with open(filename) as f:
for line in f.readlines():
tokens = line.split(" ")
spidx = line.find("SP:")
endidx = line.find(' ', spidx)
data.append((line[0:4], line[spidx+3:endidx]))
return data
if __nam... | 30.416667 | 85 | 0.545205 | 98 | 730 | 3.877551 | 0.5 | 0.055263 | 0.071053 | 0.057895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040153 | 0.283562 | 730 | 23 | 86 | 31.73913 | 0.686424 | 0 | 0 | 0 | 0 | 0 | 0.039726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 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 |
0ebf6e6f4a1667f2d0b5238c117fa44dfca6f7c4 | 10,203 | py | Python | tercer_modelo.py | nahuelalmeira/deepLearning | f1fcd06f5735c8be9272b0c8392b1ae467c08582 | [
"MIT"
] | null | null | null | tercer_modelo.py | nahuelalmeira/deepLearning | f1fcd06f5735c8be9272b0c8392b1ae467c08582 | [
"MIT"
] | null | null | null | tercer_modelo.py | nahuelalmeira/deepLearning | f1fcd06f5735c8be9272b0c8392b1ae467c08582 | [
"MIT"
] | null | null | null | """Exercise 1
Usage:
$ CUDA_VISIBLE_DEVICES=2 python practico_1_train_petfinder.py --dataset_dir ../ --epochs 30 --dropout 0.1 0.1 --hidden_layer_sizes 200 100
To know which GPU to use, you can check it with the command
$ nvidia-smi
"""
import argparse
import os
import mlflow
import pickle
import numpy as np
impo... | 45.346667 | 138 | 0.51181 | 968 | 10,203 | 5.161157 | 0.269628 | 0.033026 | 0.035228 | 0.01201 | 0.1245 | 0.074059 | 0.074059 | 0.042234 | 0 | 0 | 0 | 0.005103 | 0.174066 | 10,203 | 224 | 139 | 45.549107 | 0.587754 | 0.095462 | 0 | 0.038168 | 0 | 0 | 0.161946 | 0.027039 | 0 | 0 | 0 | 0.004464 | 0.007634 | 1 | 0.022901 | false | 0 | 0.083969 | 0 | 0.114504 | 0.145038 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ebfda6d11cf85e7a67d60d7c46e294592497198 | 7,576 | py | Python | catpy/applications/export.py | catmaid/catpy | 481d87591a6dfaedef2767dcddcbed7185ecc8b8 | [
"MIT"
] | 5 | 2018-04-24T15:45:31.000Z | 2021-06-18T17:38:07.000Z | catpy/applications/export.py | catmaid/catpy | 481d87591a6dfaedef2767dcddcbed7185ecc8b8 | [
"MIT"
] | 35 | 2017-05-12T21:49:54.000Z | 2022-03-12T00:47:09.000Z | catpy/applications/export.py | catmaid/catpy | 481d87591a6dfaedef2767dcddcbed7185ecc8b8 | [
"MIT"
] | 4 | 2017-08-24T12:15:41.000Z | 2019-10-13T01:05:34.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from pkg_resources import parse_version
from warnings import warn
from copy import deepcopy
import networkx as nx
from networkx.readwrite import json_graph
from catpy.applications.base import CatmaidClientApplication
NX_VERSION_INFO = parse_version(nx.... | 31.566667 | 126 | 0.551082 | 827 | 7,576 | 4.912938 | 0.290206 | 0.037903 | 0.007876 | 0.017721 | 0.179424 | 0.137091 | 0.103126 | 0.086389 | 0.086389 | 0.086389 | 0 | 0.013274 | 0.343717 | 7,576 | 239 | 127 | 31.698745 | 0.803902 | 0.347413 | 0 | 0.054348 | 0 | 0.021739 | 0.205586 | 0.006102 | 0 | 0 | 0 | 0.004184 | 0 | 1 | 0.086957 | false | 0 | 0.076087 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec3a322173dd7c7c650f060b94c615e6cceb769 | 19,118 | py | Python | release/scripts/modules/bl_i18n_utils/utils_spell_check.py | dvgd/blender | 4eb2807db1c1bd2514847d182fbb7a3f7773da96 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | release/scripts/modules/bl_i18n_utils/utils_spell_check.py | dvgd/blender | 4eb2807db1c1bd2514847d182fbb7a3f7773da96 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | release/scripts/modules/bl_i18n_utils/utils_spell_check.py | dvgd/blender | 4eb2807db1c1bd2514847d182fbb7a3f7773da96 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2020-12-02T20:05:42.000Z | 2020-12-02T20:05:42.000Z | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 23.145278 | 103 | 0.437703 | 1,348 | 19,118 | 6.181751 | 0.807122 | 0.00864 | 0.00468 | 0.00684 | 0.029281 | 0.023761 | 0.016081 | 0.016081 | 0.016081 | 0.016081 | 0 | 0.001216 | 0.397583 | 19,118 | 825 | 104 | 23.173333 | 0.722324 | 0.080605 | 0 | 0.010485 | 0 | 0.001311 | 0.367117 | 0.002632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005242 | false | 0.002621 | 0.005242 | 0.001311 | 0.02228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec3b7be918911b5b776d40be78266905df319e1 | 7,175 | py | Python | naslib/predictors/mlp.py | gmeyerlee/NASLib | 21dbceda04cc1faf3d8b6dd391412a459218ef2b | [
"Apache-2.0"
] | null | null | null | naslib/predictors/mlp.py | gmeyerlee/NASLib | 21dbceda04cc1faf3d8b6dd391412a459218ef2b | [
"Apache-2.0"
] | null | null | null | naslib/predictors/mlp.py | gmeyerlee/NASLib | 21dbceda04cc1faf3d8b6dd391412a459218ef2b | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
import json
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import DataLoader, TensorDataset
from naslib.utils.utils import AverageMeterGroup
from naslib.predictors.utils.encodings import encode
from naslib.predictors imp... | 32.466063 | 88 | 0.564739 | 845 | 7,175 | 4.620118 | 0.246154 | 0.027664 | 0.030738 | 0.029201 | 0.152152 | 0.089139 | 0.089139 | 0.0625 | 0.0625 | 0.0625 | 0 | 0.01762 | 0.327666 | 7,175 | 220 | 89 | 32.613636 | 0.791667 | 0.012125 | 0 | 0.110497 | 0 | 0 | 0.038255 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 1 | 0.049724 | false | 0 | 0.060773 | 0 | 0.160221 | 0.016575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec3f2a1fe20def9bc91ffbd4b3742d74abb33b3 | 1,301 | py | Python | pythonforandroid/recipes/libx264/__init__.py | Joreshic/python-for-android | c60e02d2e32e31a3a754838c51e9242cbadcd9e8 | [
"MIT"
] | 1 | 2019-09-03T13:44:06.000Z | 2019-09-03T13:44:06.000Z | pythonforandroid/recipes/libx264/__init__.py | Joreshic/python-for-android | c60e02d2e32e31a3a754838c51e9242cbadcd9e8 | [
"MIT"
] | null | null | null | pythonforandroid/recipes/libx264/__init__.py | Joreshic/python-for-android | c60e02d2e32e31a3a754838c51e9242cbadcd9e8 | [
"MIT"
] | 1 | 2018-11-15T07:58:30.000Z | 2018-11-15T07:58:30.000Z | from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM
from os.path import exists, join, realpath
from os import uname
import glob
import sh
class LibX264Recipe(Recipe):
version = 'x264-snapshot-20170608-2245-stable' # using mirror url since can't use ftp
url = 'http://mirror.yand... | 37.171429 | 93 | 0.583397 | 142 | 1,301 | 5.239437 | 0.542254 | 0.043011 | 0.032258 | 0.040323 | 0.112903 | 0.061828 | 0 | 0 | 0 | 0 | 0 | 0.052688 | 0.285165 | 1,301 | 34 | 94 | 38.264706 | 0.747312 | 0.027671 | 0 | 0 | 0 | 0.034483 | 0.248614 | 0.081552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 0 | 0.413793 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec517fad6215e10cf8fdc40288d6f1a4376050d | 17,499 | py | Python | apps/notifications/tests/test_views.py | SCiO-systems/qcat | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | [
"Apache-2.0"
] | null | null | null | apps/notifications/tests/test_views.py | SCiO-systems/qcat | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | [
"Apache-2.0"
] | null | null | null | apps/notifications/tests/test_views.py | SCiO-systems/qcat | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | [
"Apache-2.0"
] | null | null | null | import logging
from unittest import mock
from unittest.mock import call
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.signing import Signer
from django.urls import reverse
from django.http import Http404
from django.test import RequestFactory
from braces.views import... | 37.958785 | 91 | 0.66821 | 2,067 | 17,499 | 5.375907 | 0.106434 | 0.047516 | 0.021598 | 0.021598 | 0.553456 | 0.454824 | 0.37374 | 0.339093 | 0.313265 | 0.293647 | 0 | 0.006123 | 0.225327 | 17,499 | 460 | 92 | 38.041304 | 0.813588 | 0.016401 | 0 | 0.274151 | 0 | 0 | 0.082127 | 0.043824 | 0 | 0 | 0 | 0.002174 | 0.117493 | 1 | 0.138381 | false | 0 | 0.039164 | 0 | 0.201044 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec667f34cc8524a0bd9453e82114220e88aef5a | 813 | py | Python | photos/urls.py | charlesmugambi/Instagram | 3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7 | [
"MIT"
] | null | null | null | photos/urls.py | charlesmugambi/Instagram | 3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7 | [
"MIT"
] | null | null | null | photos/urls.py | charlesmugambi/Instagram | 3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^image/$', views.add_image, name='upload_image'),
url(r'^profile/$', views.profile_info, name='profile'),
url(r'... | 42.789474 | 80 | 0.675277 | 117 | 813 | 4.581197 | 0.307692 | 0.067164 | 0.078358 | 0.067164 | 0.048507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120541 | 813 | 18 | 81 | 45.166667 | 0.74965 | 0 | 0 | 0 | 0 | 0 | 0.242312 | 0.093481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 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 |
0ec7068e816bc6b2d31f51831d9d75f6ffc1151c | 11,247 | py | Python | bread.py | vgfang/breadbot | e58807431945e6d4de8dfc6c4dc4c90caebf88ca | [
"MIT"
] | null | null | null | bread.py | vgfang/breadbot | e58807431945e6d4de8dfc6c4dc4c90caebf88ca | [
"MIT"
] | null | null | null | bread.py | vgfang/breadbot | e58807431945e6d4de8dfc6c4dc4c90caebf88ca | [
"MIT"
] | null | null | null | import random
import math
from fractions import Fraction
from datetime import datetime
from jinja2 import Template
# empty class for passing to template engine
class Recipe:
def __init__(self):
return
# returns flour percent using flour type
def get_special_flour_percent(flourType: str, breadFlourPercent:int) -> ... | 36.996711 | 103 | 0.727927 | 1,465 | 11,247 | 5.541297 | 0.251877 | 0.028086 | 0.027223 | 0.025745 | 0.166297 | 0.126386 | 0.100148 | 0.087337 | 0.066396 | 0.066396 | 0 | 0.021022 | 0.145639 | 11,247 | 304 | 104 | 36.996711 | 0.823707 | 0.156664 | 0 | 0.087719 | 0 | 0 | 0.126762 | 0.009539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061404 | false | 0 | 0.02193 | 0.008772 | 0.219298 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec7d9e291a15b37ad7f7b106420f6f50a25a3a0 | 1,248 | py | Python | tutorial/test input.py | nataliapryakhina/FA_group3 | 3200464bc20d38a85af9ad3583a360db4ffb7f8d | [
"MIT"
] | null | null | null | tutorial/test input.py | nataliapryakhina/FA_group3 | 3200464bc20d38a85af9ad3583a360db4ffb7f8d | [
"MIT"
] | null | null | null | tutorial/test input.py | nataliapryakhina/FA_group3 | 3200464bc20d38a85af9ad3583a360db4ffb7f8d | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
from os import listdir
from tensorflow.keras.callbacks import ModelCheckpoint
dataDir = "./data/trainSmallFA/"
files = listdir(dataDir)
files.sort()
totalLength = len(files)
inputs = np.empty((len(files), 3, 64, 64)... | 30.439024 | 80 | 0.600962 | 177 | 1,248 | 4.237288 | 0.457627 | 0.042667 | 0.026667 | 0.04 | 0.109333 | 0.053333 | 0.053333 | 0 | 0 | 0 | 0 | 0.042786 | 0.194712 | 1,248 | 41 | 81 | 30.439024 | 0.703483 | 0.091346 | 0 | 0.058824 | 0 | 0 | 0.034544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ec8d0b22163c94b04ce1660f7662d06d776efe5 | 2,781 | py | Python | pepper/responder/brain.py | cltl/pepper | 5d34fc5074473163aa9273016d89e5e2b8edffa9 | [
"MIT"
] | 29 | 2018-01-20T08:51:42.000Z | 2022-01-25T11:59:28.000Z | pepper/responder/brain.py | cltl/pepper | 5d34fc5074473163aa9273016d89e5e2b8edffa9 | [
"MIT"
] | 32 | 2018-09-20T13:09:34.000Z | 2021-06-04T15:23:45.000Z | pepper/responder/brain.py | cltl/pepper | 5d34fc5074473163aa9273016d89e5e2b8edffa9 | [
"MIT"
] | 10 | 2018-10-25T02:45:21.000Z | 2020-10-03T12:59:10.000Z | from pepper.framework import *
from pepper import logger
from pepper.language import Utterance
from pepper.language.generation.thoughts_phrasing import phrase_thoughts
from pepper.language.generation.reply import reply_to_question
from .responder import Responder, ResponderType
from pepper.language import UtteranceTy... | 41.507463 | 126 | 0.612729 | 287 | 2,781 | 5.780488 | 0.369338 | 0.062688 | 0.0434 | 0.025316 | 0.072333 | 0.050633 | 0.038577 | 0.038577 | 0 | 0 | 0 | 0.003086 | 0.300971 | 2,781 | 66 | 127 | 42.136364 | 0.850309 | 0.108234 | 0 | 0.044444 | 0 | 0 | 0.028306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.244444 | 0.044444 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ecb2c7a8dccded4280171cf1a9314223cfca421 | 3,611 | py | Python | tests/components/airthings/test_config_flow.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/airthings/test_config_flow.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | tests/components/airthings/test_config_flow.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Test the Airthings config flow."""
from unittest.mock import patch
import airthings
from homeassistant import config_entries
from homeassistant.components.airthings.const import CONF_ID, CONF_SECRET, DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_EN... | 30.601695 | 84 | 0.675159 | 426 | 3,611 | 5.462441 | 0.197183 | 0.083799 | 0.058015 | 0.085088 | 0.529437 | 0.495917 | 0.453373 | 0.421573 | 0.421573 | 0.421573 | 0 | 0.004931 | 0.213791 | 3,611 | 117 | 85 | 30.863248 | 0.814723 | 0.008585 | 0 | 0.388235 | 0 | 0 | 0.11371 | 0.015398 | 0 | 0 | 0 | 0 | 0.164706 | 1 | 0 | false | 0 | 0.082353 | 0 | 0.082353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ecc375d6cf3b58f62ba3d07d23244af90a9b759 | 1,036 | py | Python | worker/main.py | Devalent/facial-recognition-service | 342e31fa7d016992d938b0121b03f0e8fe776ea8 | [
"MIT"
] | null | null | null | worker/main.py | Devalent/facial-recognition-service | 342e31fa7d016992d938b0121b03f0e8fe776ea8 | [
"MIT"
] | null | null | null | worker/main.py | Devalent/facial-recognition-service | 342e31fa7d016992d938b0121b03f0e8fe776ea8 | [
"MIT"
] | null | null | null | from aiohttp import web
import base64
import io
import face_recognition
async def encode(request):
request_data = await request.json()
# Read base64 encoded image
url = request_data['image'].split(',')[1]
image = io.BytesIO(base64.b64decode(url))
# Load image data
np_array = face_recognition.... | 22.521739 | 68 | 0.625483 | 127 | 1,036 | 4.976378 | 0.480315 | 0.094937 | 0.060127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022021 | 0.254826 | 1,036 | 45 | 69 | 23.022222 | 0.796632 | 0.080116 | 0 | 0 | 0 | 0 | 0.048523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ece61d6db781e687c9a0cc4ff7c881e2a9a0b06 | 346 | py | Python | project4/test/test_arm.py | XDZhelheim/CS205_C_CPP_Lab | f585fd685a51e19fddc9c582846547d34442c6ef | [
"MIT"
] | 3 | 2022-01-11T08:12:40.000Z | 2022-03-27T08:15:45.000Z | project4/test/test_arm.py | XDZhelheim/CS205_C_CPP_Lab | f585fd685a51e19fddc9c582846547d34442c6ef | [
"MIT"
] | null | null | null | project4/test/test_arm.py | XDZhelheim/CS205_C_CPP_Lab | f585fd685a51e19fddc9c582846547d34442c6ef | [
"MIT"
] | 2 | 2022-03-03T03:01:20.000Z | 2022-03-27T08:16:02.000Z | import os
if __name__ == "__main__":
dims = ["32", "64", "128", "256", "512", "1024", "2048"]
for dim in dims:
os.system(
f"perf stat -e r11 -x, -r 10 ../matmul.out ../data/mat-A-{dim}.txt ../data/mat-B-{dim}.txt ./out/out-{dim}.txt 2>>res_arm.csv"
)
print(f"Finished {dim}... | 26.615385 | 138 | 0.514451 | 53 | 346 | 3.188679 | 0.716981 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100386 | 0.251445 | 346 | 13 | 139 | 26.615385 | 0.552124 | 0 | 0 | 0 | 0 | 0.111111 | 0.504323 | 0.132565 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ecf9572bf4b2d6c4df42c5a6542407de0db8c29 | 6,920 | py | Python | jaxformer/hf/sample.py | salesforce/CodeGen | 2ca076874ca2d26c2437df2968f6c43df92748bc | [
"BSD-3-Clause"
] | 105 | 2022-03-29T23:45:55.000Z | 2022-03-31T23:57:14.000Z | jaxformer/hf/sample.py | salesforce/CodeGen | 2ca076874ca2d26c2437df2968f6c43df92748bc | [
"BSD-3-Clause"
] | 2 | 2022-03-31T04:18:49.000Z | 2022-03-31T17:58:09.000Z | jaxformer/hf/sample.py | salesforce/CodeGen | 2ca076874ca2d26c2437df2968f6c43df92748bc | [
"BSD-3-Clause"
] | 6 | 2022-03-30T06:05:39.000Z | 2022-03-31T21:01:27.000Z | # Copyright (c) 2022, salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
import os
import re
import time
import random
import argparse
import torch
from transformers import ... | 27.244094 | 224 | 0.619509 | 884 | 6,920 | 4.645928 | 0.253394 | 0.024105 | 0.045532 | 0.005844 | 0.1215 | 0.073533 | 0.073533 | 0.068176 | 0.068176 | 0.068176 | 0 | 0.024032 | 0.212283 | 6,920 | 253 | 225 | 27.351779 | 0.729407 | 0.048988 | 0 | 0.0875 | 0 | 0.00625 | 0.112138 | 0.011787 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.225 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ed02b6b55177c4481e9ea0e870de71a75e2629f | 12,734 | py | Python | retrain_with_rotnet.py | ericdaat/self-label | 7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51 | [
"MIT"
] | 440 | 2020-02-17T06:54:38.000Z | 2022-03-24T09:32:13.000Z | retrain_with_rotnet.py | ericdaat/self-label | 7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51 | [
"MIT"
] | 21 | 2020-02-28T06:40:20.000Z | 2022-03-11T10:59:09.000Z | retrain_with_rotnet.py | ericdaat/self-label | 7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51 | [
"MIT"
] | 53 | 2020-02-27T13:05:49.000Z | 2022-03-07T02:33:01.000Z | import argparse
import warnings
warnings.simplefilter("ignore", UserWarning)
import files
from tensorboardX import SummaryWriter
import os
import numpy as np
import time
import torch
import torch.optim
import torch.nn as nn
import torch.utils.data
import torchvision
import torchvision.transforms as tfs
from data impo... | 44.369338 | 154 | 0.569185 | 1,531 | 12,734 | 4.615284 | 0.214892 | 0.0242 | 0.045712 | 0.018823 | 0.219643 | 0.201953 | 0.145344 | 0.093122 | 0.082649 | 0.082649 | 0 | 0.020361 | 0.286477 | 12,734 | 286 | 155 | 44.524476 | 0.757319 | 0.023166 | 0 | 0.151515 | 0 | 0.008658 | 0.109091 | 0.014414 | 0.004329 | 0 | 0 | 0 | 0 | 1 | 0.021645 | false | 0 | 0.064935 | 0 | 0.108225 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ed057bb216be080ba95c6d1f2a7ce1ab1dfd4f5 | 1,341 | py | Python | tests/vie.py | Jinwithyoo/han | 931a271e56134dcc35029bf75260513b60884f6c | [
"BSD-3-Clause"
] | null | null | null | tests/vie.py | Jinwithyoo/han | 931a271e56134dcc35029bf75260513b60884f6c | [
"BSD-3-Clause"
] | null | null | null | tests/vie.py | Jinwithyoo/han | 931a271e56134dcc35029bf75260513b60884f6c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from tests import HangulizeTestCase
from hangulize.langs.vie import Vietnamese
class VietnameseTestCase(HangulizeTestCase):
""" http://korean.go.kr/09_new/dic/rule/rule_foreign_0218.jsp """
lang = Vietnamese()
def test_1st(self):
"""제1항
nh는 이어지는 모음과 합쳐서 한 음절로 적는다.... | 24.833333 | 69 | 0.463833 | 176 | 1,341 | 3.471591 | 0.698864 | 0.045827 | 0.11784 | 0.10311 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0.389262 | 1,341 | 54 | 70 | 24.833333 | 0.727717 | 0.38777 | 0 | 0.363636 | 0 | 0 | 0.060432 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ed195167a4ca32696adae9b1a096d1817a006fd | 639 | py | Python | src/smallestLetter/target.py | rajitbanerjee/leetcode | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | [
"CC0-1.0"
] | null | null | null | src/smallestLetter/target.py | rajitbanerjee/leetcode | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | [
"CC0-1.0"
] | null | null | null | src/smallestLetter/target.py | rajitbanerjee/leetcode | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | [
"CC0-1.0"
] | 1 | 2021-04-28T18:17:55.000Z | 2021-04-28T18:17:55.000Z | class Solution:
def nextGreatestLetter(self, letters: list, target: str) -> str:
if target < letters[0] or target >= letters[-1]:
return letters[0]
left, right = 0, len(letters) - 1
while left < right:
mid = left + (right - left) // 2
if letters[mid] > tar... | 31.95 | 70 | 0.528951 | 71 | 639 | 4.647887 | 0.422535 | 0.081818 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016355 | 0.330203 | 639 | 19 | 71 | 33.631579 | 0.754673 | 0 | 0 | 0 | 0 | 0 | 0.176839 | 0.061033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.235294 | 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 |
0ed367645577a295c7ca8d2261bca85d6a1facb8 | 978 | py | Python | matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | """
============
Dollar Ticks
============
Use a `~.ticker.FormatStrFormatter` to prepend dollar signs on y axis labels.
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
# Fixing random state for reproducibility
np.random.seed(19680801)
fig, ax = plt.subplots()
ax.plot(100*np... | 22.227273 | 77 | 0.673824 | 122 | 978 | 5.311475 | 0.52459 | 0.111111 | 0.052469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020666 | 0.109407 | 978 | 43 | 78 | 22.744186 | 0.723307 | 0.290389 | 0 | 0 | 0 | 0 | 0.018303 | 0 | 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 |
0ed3c5718d5548ba82fc7cde7bd8e347ef468e10 | 6,746 | py | Python | Chibrary/utils.py | chiro2001/chibrary | da31ef80df394cfb260fbe2c1e675f28717fea3e | [
"MIT"
] | null | null | null | Chibrary/utils.py | chiro2001/chibrary | da31ef80df394cfb260fbe2c1e675f28717fea3e | [
"MIT"
] | null | null | null | Chibrary/utils.py | chiro2001/chibrary | da31ef80df394cfb260fbe2c1e675f28717fea3e | [
"MIT"
] | 1 | 2021-09-21T16:40:58.000Z | 2021-09-21T16:40:58.000Z | import json
import re
from flask import request, abort, jsonify
from Chibrary import config
from Chibrary.config import logger
from Chibrary.exceptions import *
from functools import wraps
from urllib import parse
from Chibrary.server import db
def parse_url_query(url: str) -> dict:
if not url.lower().startswith(... | 28.82906 | 116 | 0.554996 | 891 | 6,746 | 4.096521 | 0.189675 | 0.041096 | 0.033151 | 0.048219 | 0.430137 | 0.4 | 0.373699 | 0.372603 | 0.353973 | 0.353973 | 0 | 0.035582 | 0.279277 | 6,746 | 233 | 117 | 28.95279 | 0.715138 | 0.243848 | 0 | 0.456376 | 0 | 0.006711 | 0.065274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100671 | false | 0.013423 | 0.060403 | 0.020134 | 0.328859 | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ed4e33e928545ea0125662f34b75db4ebefd622 | 897 | py | Python | tests/mappers/fields/test_float_field.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 12 | 2021-10-15T11:48:12.000Z | 2022-03-24T07:31:43.000Z | tests/mappers/fields/test_float_field.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 2 | 2021-12-29T16:31:05.000Z | 2021-12-30T00:50:40.000Z | tests/mappers/fields/test_float_field.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | null | null | null | from aiohttp_admin2.mappers import Mapper
from aiohttp_admin2.mappers import fields
class FloatMapper(Mapper):
field = fields.FloatField()
def test_correct_float_type():
"""
In this test we check success convert to float type.
"""
mapper = FloatMapper({"field": 1})
mapper.is_valid()
ass... | 21.878049 | 66 | 0.645485 | 117 | 897 | 4.82906 | 0.316239 | 0.169912 | 0.155752 | 0.134513 | 0.438938 | 0.332743 | 0.332743 | 0 | 0 | 0 | 0 | 0.019718 | 0.208473 | 897 | 40 | 67 | 22.425 | 0.776056 | 0.128205 | 0 | 0.2 | 0 | 0 | 0.074567 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.1 | 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 |
0ed5587a827c8b8f54d7f90abf4042432f650675 | 1,163 | py | Python | autotest/t038_test.py | jdlarsen-UA/flopy | bf2c59aaa689de186bd4c80685532802ac7149cd | [
"CC0-1.0",
"BSD-3-Clause"
] | 2 | 2021-09-06T01:08:58.000Z | 2021-09-06T06:02:15.000Z | autotest/t038_test.py | jdlarsen-UA/flopy | bf2c59aaa689de186bd4c80685532802ac7149cd | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | autotest/t038_test.py | jdlarsen-UA/flopy | bf2c59aaa689de186bd4c80685532802ac7149cd | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | """
Try to load all of the MODFLOW-USG examples in ../examples/data/mfusg_test.
These are the examples that are distributed with MODFLOW-USG.
"""
import os
import flopy
# make the working directory
tpth = os.path.join("temp", "t038")
if not os.path.isdir(tpth):
os.makedirs(tpth)
# build list of name files to try... | 25.844444 | 78 | 0.663801 | 186 | 1,163 | 4.010753 | 0.408602 | 0.048257 | 0.040214 | 0.0563 | 0.091153 | 0.091153 | 0.091153 | 0.091153 | 0.091153 | 0.091153 | 0 | 0.003289 | 0.215821 | 1,163 | 44 | 79 | 26.431818 | 0.814693 | 0.232158 | 0 | 0.142857 | 0 | 0 | 0.092971 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ed9a8ae3cb2f6c51bd79bc87c61d261f1d3fcce | 3,488 | py | Python | pyhanko_certvalidator/asn1_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 4 | 2020-11-11T13:59:05.000Z | 2022-03-13T14:06:10.000Z | pyhanko_certvalidator/asn1_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 1 | 2020-11-11T11:29:37.000Z | 2020-11-11T11:29:37.000Z | pyhanko_certvalidator/asn1_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 2 | 2020-11-11T10:33:32.000Z | 2022-03-13T14:06:11.000Z | from typing import Optional
from asn1crypto import core, x509, cms
__all__ = [
'Target', 'TargetCert', 'Targets', 'SequenceOfTargets',
'AttrSpec', 'AAControls'
]
class TargetCert(core.Sequence):
_fields = [
('target_certificate', cms.IssuerSerial),
('target_name', x509.GeneralName, {'opt... | 30.068966 | 73 | 0.663417 | 430 | 3,488 | 5.155814 | 0.351163 | 0.031574 | 0.016238 | 0.031123 | 0.144339 | 0.078484 | 0.058638 | 0.058638 | 0.01263 | 0.01263 | 0 | 0.026997 | 0.214163 | 3,488 | 115 | 74 | 30.330435 | 0.781831 | 0.097764 | 0 | 0.075 | 0 | 0 | 0.199617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.025 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eda0495743701a807a727479d2ba40e2e1b5552 | 910 | py | Python | python/csv/csv_dict_writer.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/csv/csv_dict_writer.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/csv/csv_dict_writer.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | import csv
def csv_dict_writer(path, headers, data):
with open(path, 'w', newline='') as csvfile:
writer = csv.DictWriter(csvfile, delimiter=',',
fieldnames=headers)
writer.writeheader()
for record in data:
writer.writerow(record)
if __name__ =... | 31.37931 | 74 | 0.650549 | 114 | 910 | 4.991228 | 0.578947 | 0.084359 | 0.057996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072857 | 0.230769 | 910 | 28 | 75 | 32.5 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.289011 | 0.143956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 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 |
0edaae48c98ecfaf21b42f1bc713fce970f11754 | 1,687 | py | Python | models/cnn_layer.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | null | null | null | models/cnn_layer.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | null | null | null | models/cnn_layer.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | 1 | 2021-11-24T18:48:47.000Z | 2021-11-24T18:48:47.000Z | import torch
import torch.nn as nn
from torch.nn.functional import max_pool1d
from utility.model_parameter import Configuration, ModelParameter
class CNNLayer(nn.Module):
def __init__(self, config: Configuration, vocab_size=30000, use_embeddings=True, embed_dim=-1, **kwargs):
super(CNNLayer, self).__init... | 37.488889 | 109 | 0.670421 | 226 | 1,687 | 4.792035 | 0.336283 | 0.072022 | 0.044321 | 0.09603 | 0.088643 | 0.088643 | 0.088643 | 0.088643 | 0.088643 | 0 | 0 | 0.014559 | 0.226437 | 1,687 | 44 | 110 | 38.340909 | 0.815326 | 0.025489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0.029412 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0edcbb01b3b82f3bf4be9564d133e3829ce06411 | 4,429 | py | Python | NLP programmes in Python/9.Text Clustering/kmeans.py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | NLP programmes in Python/9.Text Clustering/kmeans.py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | NLP programmes in Python/9.Text Clustering/kmeans.py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | import nltk
import re
import csv
import string
import collections
import numpy as np
from nltk.corpus import wordnet
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import WordPunctTokenizer
from sklearn.metrics import classification_report
from sklearn.metric... | 34.069231 | 141 | 0.685482 | 609 | 4,429 | 4.866995 | 0.316913 | 0.018893 | 0.012146 | 0.020243 | 0.197368 | 0.163968 | 0.163968 | 0.11471 | 0.064103 | 0.045884 | 0 | 0.013976 | 0.208399 | 4,429 | 129 | 142 | 34.333333 | 0.831432 | 0.172499 | 0 | 0.076923 | 0 | 0 | 0.062768 | 0.00643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.179487 | 0 | 0.269231 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0edd17d0b784bbe0102b923ddf6f8c3e0cea3855 | 7,304 | py | Python | common/utils.py | paTRICK-swk/P-STMO | def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75 | [
"MIT"
] | 8 | 2022-03-16T02:55:45.000Z | 2022-03-31T08:29:05.000Z | common/utils.py | paTRICK-swk/P-STMO | def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75 | [
"MIT"
] | 2 | 2022-03-24T23:29:23.000Z | 2022-03-31T02:59:39.000Z | common/utils.py | paTRICK-swk/P-STMO | def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import hashlib
from torch.autograd import Variable
import os
def deterministic_random(min_value, max_value, data):
digest = hashlib.sha256(data.encode()).digest()
raw_value = int.from_bytes(digest[:4], byteorder='little', signed=False)
return int(raw_value / (2 ** 32 - 1... | 32.035088 | 118 | 0.607065 | 1,036 | 7,304 | 4.084942 | 0.177606 | 0.043478 | 0.056238 | 0.028355 | 0.502599 | 0.453686 | 0.408554 | 0.331758 | 0.305293 | 0.278828 | 0 | 0.030025 | 0.238499 | 7,304 | 227 | 119 | 32.176211 | 0.730852 | 0.032859 | 0 | 0.298701 | 0 | 0 | 0.055043 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.097403 | false | 0 | 0.032468 | 0 | 0.220779 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eddc7235cfdc03253ec66ce28f34006def0e26e | 301 | py | Python | warg_client/client/apis/controller/attack_controller.py | neel4os/warg-client | 4d97904977a6f6865610afd04ca00ddfbad38ff9 | [
"MIT"
] | null | null | null | warg_client/client/apis/controller/attack_controller.py | neel4os/warg-client | 4d97904977a6f6865610afd04ca00ddfbad38ff9 | [
"MIT"
] | null | null | null | warg_client/client/apis/controller/attack_controller.py | neel4os/warg-client | 4d97904977a6f6865610afd04ca00ddfbad38ff9 | [
"MIT"
] | null | null | null | from subprocess import run
def perform_shutdown(body):
arg = ""
if body["reboot"]:
_is_reboot = arg + "-r"
else:
_is_reboot = arg + "-h"
time_to_shutdown = str(body['timeToShutdown'])
result = run(["/sbin/shutdown", _is_reboot, time_to_shutdown])
return body
| 23.153846 | 66 | 0.621262 | 38 | 301 | 4.631579 | 0.578947 | 0.136364 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245847 | 301 | 12 | 67 | 25.083333 | 0.77533 | 0 | 0 | 0 | 0 | 0 | 0.126246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 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 |
0ee18d6b7b8309b3efbe99ae9ad5cbadde515b83 | 1,136 | py | Python | questions/serializers.py | aneumeier/questions | fe5451b70d85cd5203b4cb624103c1eb154587d9 | [
"BSD-3-Clause"
] | null | null | null | questions/serializers.py | aneumeier/questions | fe5451b70d85cd5203b4cb624103c1eb154587d9 | [
"BSD-3-Clause"
] | null | null | null | questions/serializers.py | aneumeier/questions | fe5451b70d85cd5203b4cb624103c1eb154587d9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8
"""
:mod:`question.serializers` -- serializers
"""
from rest_framework import serializers
from .models import Question, PossibleAnswer
from category.models import Category
class PossibleAnswerSerializer(serializers.ModelSerializer):
class Meta:
model = PossibleA... | 21.846154 | 63 | 0.588028 | 93 | 1,136 | 7.053763 | 0.430108 | 0.118902 | 0.064024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001277 | 0.310739 | 1,136 | 51 | 64 | 22.27451 | 0.836526 | 0.101232 | 0 | 0.333333 | 0 | 0 | 0.110212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee1c1606231abe837f3edc4544d4485e01f3d4a | 6,484 | py | Python | mixcoatl/admin/api_key.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | mixcoatl/admin/api_key.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | mixcoatl/admin/api_key.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | """
mixcoatl.admin.api_key
----------------------
Implements access to the DCM ApiKey API
"""
from mixcoatl.resource import Resource
from mixcoatl.decorators.lazy import lazy_property
from mixcoatl.decorators.validations import required_attrs
from mixcoatl.utils import uncamel, camelize, camel_keys, uncamel_keys
impor... | 31.173077 | 105 | 0.610734 | 772 | 6,484 | 4.968912 | 0.226684 | 0.023462 | 0.043014 | 0.01877 | 0.081856 | 0.037539 | 0.01512 | 0.01512 | 0 | 0 | 0 | 0.000431 | 0.284547 | 6,484 | 207 | 106 | 31.323672 | 0.826471 | 0.329272 | 0 | 0.236842 | 0 | 0 | 0.051231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0.026316 | 0.04386 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee3d5ffc425ea5928ae83711b91532c1603b60f | 7,589 | py | Python | psdaq/psdaq/control_gui/QWTable.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psdaq/psdaq/control_gui/QWTable.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psdaq/psdaq/control_gui/QWTable.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z |
"""Class :py:class:`QWTable` is a QTableView->QWidget for tree model
======================================================================
Usage ::
# Run test: python lcls2/psdaq/psdaq/control_gui/QWTable.py
from psdaq.control_gui.QWTable import QWTable
w = QWTable()
Created on 2019-03-28 by Mikhail D... | 32.431624 | 122 | 0.644617 | 893 | 7,589 | 5.235162 | 0.263158 | 0.029519 | 0.054118 | 0.04107 | 0.174759 | 0.133904 | 0.046631 | 0.046631 | 0.046631 | 0.046631 | 0 | 0.009221 | 0.228357 | 7,589 | 233 | 123 | 32.570815 | 0.789105 | 0.156542 | 0 | 0.103704 | 0 | 0 | 0.077382 | 0.007691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17037 | false | 0 | 0.051852 | 0.007407 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee3f4cb54a20c54630494d1b68aa8ef7ce66afa | 1,948 | py | Python | src/grailbase/mtloader.py | vadmium/grailbrowser | ca94e6db2359bcb16c0da256771550d1327c6d33 | [
"CNRI-Python",
"CNRI-Jython"
] | 9 | 2015-03-23T23:21:42.000Z | 2021-08-01T01:47:22.000Z | src/grailbase/mtloader.py | vadmium/grailbrowser | ca94e6db2359bcb16c0da256771550d1327c6d33 | [
"CNRI-Python",
"CNRI-Jython"
] | null | null | null | src/grailbase/mtloader.py | vadmium/grailbrowser | ca94e6db2359bcb16c0da256771550d1327c6d33 | [
"CNRI-Python",
"CNRI-Jython"
] | 11 | 2015-03-23T23:22:22.000Z | 2020-06-08T14:24:17.000Z | """Extension loader for filetype handlers.
The extension objects provided by MIMEExtensionLoader objects have four
attributes: parse, embed, add_options, and update_options. The first two
are used as handlers for supporting the MIME type as primary and embeded
resources. The last two are (currently) only used for pr... | 31.934426 | 77 | 0.602669 | 230 | 1,948 | 4.852174 | 0.378261 | 0.035842 | 0.043011 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001449 | 0.291581 | 1,948 | 60 | 78 | 32.466667 | 0.807246 | 0.181212 | 0 | 0.068182 | 0 | 0 | 0.089421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee482f843ff11fa45eb748eba4af3c343f6b618 | 38,737 | py | Python | eventstreams_sdk/adminrest_v1.py | IBM/eventstreams-python-sdk | cc898e6901c35d1b43e2be7d152c6d770d967b23 | [
"Apache-2.0"
] | 2 | 2021-05-06T10:18:21.000Z | 2021-09-17T05:19:57.000Z | eventstreams_sdk/eventstreams_sdk/adminrest_v1.py | IBM/eventstreams-python-sdk | cc898e6901c35d1b43e2be7d152c6d770d967b23 | [
"Apache-2.0"
] | 1 | 2021-03-16T17:08:20.000Z | 2021-03-18T18:13:49.000Z | eventstreams_sdk/eventstreams_sdk/adminrest_v1.py | IBM/eventstreams-python-sdk | cc898e6901c35d1b43e2be7d152c6d770d967b23 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# (C) Copyright IBM Corp. 2021.
#
# 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 a... | 37.755361 | 115 | 0.596226 | 4,282 | 38,737 | 5.205044 | 0.074731 | 0.021716 | 0.021536 | 0.013999 | 0.689295 | 0.658471 | 0.631281 | 0.587536 | 0.559494 | 0.549847 | 0 | 0.002026 | 0.299249 | 38,737 | 1,025 | 116 | 37.792195 | 0.819046 | 0.324677 | 0 | 0.637343 | 0 | 0 | 0.115538 | 0.021401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132855 | false | 0 | 0.012567 | 0 | 0.29623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee595b8e0ae941415e84128e8515b5e48db04fe | 2,013 | py | Python | ml-scripts/dump-data-to-learn.py | thejoeejoee/SUI-MIT-VUT-2020-2021 | aee307aa772c5a0e97578da5ebedd3e2cd39ab91 | [
"MIT"
] | null | null | null | ml-scripts/dump-data-to-learn.py | thejoeejoee/SUI-MIT-VUT-2020-2021 | aee307aa772c5a0e97578da5ebedd3e2cd39ab91 | [
"MIT"
] | null | null | null | ml-scripts/dump-data-to-learn.py | thejoeejoee/SUI-MIT-VUT-2020-2021 | aee307aa772c5a0e97578da5ebedd3e2cd39ab91 | [
"MIT"
] | 1 | 2021-01-15T19:01:45.000Z | 2021-01-15T19:01:45.000Z | #!/usr/bin/env python3
# Project: VUT FIT SUI Project - Dice Wars
# Authors:
# - Josef Kolář <xkolar71@stud.fit.vutbr.cz>
# - Dominik Harmim <xharmi00@stud.fit.vutbr.cz>
# - Petr Kapoun <xkapou04@stud.fit.vutbr.cz>
# - Jindřich Šesták <xsesta05@stud.fit.vutbr.cz>
# Year: 2020
# Description: Genera... | 25.807692 | 116 | 0.623448 | 249 | 2,013 | 4.903614 | 0.493976 | 0.053235 | 0.05733 | 0.06552 | 0.07371 | 0.044226 | 0.044226 | 0.044226 | 0.044226 | 0.044226 | 0 | 0.040505 | 0.251863 | 2,013 | 77 | 117 | 26.142857 | 0.770252 | 0.193741 | 0 | 0.125 | 0 | 0 | 0.11505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.020833 | 0.125 | 0 | 0.1875 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee5bd4b8f792f655e11610a4d7c25b151f76873 | 4,041 | py | Python | testing/conftest.py | davidszotten/pdbpp | 3d90d83902e1d19840d0419362a41c654f93251e | [
"BSD-3-Clause"
] | null | null | null | testing/conftest.py | davidszotten/pdbpp | 3d90d83902e1d19840d0419362a41c654f93251e | [
"BSD-3-Clause"
] | null | null | null | testing/conftest.py | davidszotten/pdbpp | 3d90d83902e1d19840d0419362a41c654f93251e | [
"BSD-3-Clause"
] | null | null | null | import functools
import sys
from contextlib import contextmanager
import pytest
_orig_trace = None
def pytest_configure():
global _orig_trace
_orig_trace = sys.gettrace()
@pytest.fixture(scope="session", autouse=True)
def term():
"""Configure TERM for predictable output from Pygments."""
from _pyt... | 28.0625 | 80 | 0.659985 | 473 | 4,041 | 5.477801 | 0.336152 | 0.027789 | 0.018526 | 0.031262 | 0.074875 | 0.074875 | 0.038595 | 0 | 0 | 0 | 0 | 0.006752 | 0.230389 | 4,041 | 143 | 81 | 28.258741 | 0.826367 | 0.156892 | 0 | 0.152174 | 0 | 0 | 0.118927 | 0.031595 | 0 | 0 | 0 | 0 | 0.032609 | 1 | 0.152174 | false | 0 | 0.184783 | 0.01087 | 0.391304 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee60185bcf81d5e6fbf52b5b69fb40616c44fa1 | 1,279 | py | Python | thing_gym_ros/envs/utils.py | utiasSTARS/thing-gym-ros | 6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4 | [
"MIT"
] | 1 | 2021-12-25T01:10:32.000Z | 2021-12-25T01:10:32.000Z | thing_gym_ros/envs/utils.py | utiasSTARS/thing-gym-ros | 6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4 | [
"MIT"
] | null | null | null | thing_gym_ros/envs/utils.py | utiasSTARS/thing-gym-ros | 6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4 | [
"MIT"
] | null | null | null | """ Various generic env utilties. """
def center_crop_img(img, crop_zoom):
""" crop_zoom is amount to "zoom" into the image. E.g. 2.0 would cut out half of the width,
half of the height, and only give the center. """
raw_height, raw_width = img.shape[:2]
center = raw_height // 2, raw_width // 2
cro... | 53.291667 | 97 | 0.6638 | 233 | 1,279 | 3.390558 | 0.253219 | 0.068354 | 0.037975 | 0.043038 | 0.202532 | 0.167089 | 0.167089 | 0 | 0 | 0 | 0 | 0.04023 | 0.183737 | 1,279 | 24 | 98 | 53.291667 | 0.716475 | 0.326818 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee83db3e5e99371f123bcdb50f3fcc2018ce29b | 4,947 | py | Python | auto_nag/tests/test_round_robin.py | Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd | 28d999fcba9ad47d1dd0b2222880b71726ddd47c | [
"BSD-3-Clause"
] | null | null | null | auto_nag/tests/test_round_robin.py | Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd | 28d999fcba9ad47d1dd0b2222880b71726ddd47c | [
"BSD-3-Clause"
] | null | null | null | auto_nag/tests/test_round_robin.py | Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd | 28d999fcba9ad47d1dd0b2222880b71726ddd47c | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import unittest
from mock import patch
from auto_nag.people import People
from auto_nag.round_robin im... | 31.711538 | 86 | 0.439256 | 573 | 4,947 | 3.699825 | 0.230366 | 0.122642 | 0.108962 | 0.113208 | 0.54434 | 0.54434 | 0.54434 | 0.535377 | 0.516981 | 0.486792 | 0 | 0.086928 | 0.381443 | 4,947 | 155 | 87 | 31.916129 | 0.605882 | 0.041641 | 0 | 0.290076 | 0 | 0 | 0.241554 | 0 | 0 | 0 | 0 | 0 | 0.167939 | 1 | 0.030534 | false | 0 | 0.030534 | 0.007634 | 0.099237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee87adc70e779b9ff0da63b63fc29dd8e09baec | 21,473 | py | Python | scipy/weave/inline_tools.py | tacaswell/scipy | 4d7e924a319299e39c9a9514e021fbfdfceb854e | [
"BSD-3-Clause"
] | 1 | 2017-01-18T20:32:35.000Z | 2017-01-18T20:32:35.000Z | scipy/weave/inline_tools.py | tacaswell/scipy | 4d7e924a319299e39c9a9514e021fbfdfceb854e | [
"BSD-3-Clause"
] | null | null | null | scipy/weave/inline_tools.py | tacaswell/scipy | 4d7e924a319299e39c9a9514e021fbfdfceb854e | [
"BSD-3-Clause"
] | null | null | null | # should re-write compiled functions to take a local and global dict
# as input.
from __future__ import absolute_import, print_function
import sys
import os
from . import ext_tools
from . import catalog
from . import common_info
from numpy.core.multiarray import _get_ndarray_c_version
ndarray_api_version = '/* NDARRA... | 42.7749 | 93 | 0.593862 | 2,616 | 21,473 | 4.719037 | 0.196865 | 0.019684 | 0.015796 | 0.020008 | 0.304415 | 0.280761 | 0.268449 | 0.246983 | 0.24358 | 0.233293 | 0 | 0.003695 | 0.331998 | 21,473 | 501 | 94 | 42.860279 | 0.856944 | 0.42621 | 0 | 0.496212 | 0 | 0 | 0.150172 | 0.016552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049242 | false | 0.034091 | 0.037879 | 0 | 0.151515 | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee8c1be25a8a7813888c36156d1084e0932af6f | 22,062 | py | Python | trove/guestagent/common/configuration.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 1 | 2020-04-08T07:42:19.000Z | 2020-04-08T07:42:19.000Z | trove/guestagent/common/configuration.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | trove/guestagent/common/configuration.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Copyright 2015 Tesora Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 40.629834 | 79 | 0.631629 | 2,555 | 22,062 | 5.192172 | 0.131115 | 0.03558 | 0.033921 | 0.038444 | 0.487035 | 0.428916 | 0.368988 | 0.346073 | 0.284185 | 0.241972 | 0 | 0.001503 | 0.306228 | 22,062 | 542 | 80 | 40.704797 | 0.865216 | 0.385912 | 0 | 0.32636 | 0 | 0 | 0.006627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16318 | false | 0 | 0.079498 | 0.016736 | 0.359833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0ee8cb45529200e0a449b9203826ebdcb7530c60 | 18,018 | py | Python | API-Reference-Code-Generator.py | sawyercade/Documentation | 257b68c8ca2928e8a730ea44196297a400587437 | [
"Apache-2.0"
] | 116 | 2017-09-13T17:11:07.000Z | 2022-03-13T00:33:03.000Z | API-Reference-Code-Generator.py | sawyercade/Documentation | 257b68c8ca2928e8a730ea44196297a400587437 | [
"Apache-2.0"
] | 148 | 2017-09-14T01:07:09.000Z | 2022-03-28T21:47:55.000Z | API-Reference-Code-Generator.py | sawyercade/Documentation | 257b68c8ca2928e8a730ea44196297a400587437 | [
"Apache-2.0"
] | 124 | 2017-09-07T22:05:43.000Z | 2022-03-26T05:44:32.000Z | import pathlib
import yaml
documentations = {"Our Platform": "QuantConnect-Platform-2.0.0.yaml",
"Alpha Streams": "QuantConnect-Alpha-0.8.yaml"}
def RequestTable(api_call, params):
writeUp = '<table class="table qc-table">\n<thead>\n<tr>\n'
writeUp += f'<th colspan="2"><code>{api_call}</code... | 41.04328 | 195 | 0.466811 | 1,816 | 18,018 | 4.457599 | 0.105727 | 0.112415 | 0.009883 | 0.038542 | 0.478196 | 0.422483 | 0.372329 | 0.323039 | 0.300556 | 0.274243 | 0 | 0.013493 | 0.39122 | 18,018 | 439 | 196 | 41.04328 | 0.724496 | 0.007104 | 0 | 0.327974 | 0 | 0.057878 | 0.247638 | 0.108471 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009646 | false | 0 | 0.006431 | 0 | 0.032154 | 0.003215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eea2bc9a6e4ca781595beca55133b3f45fb4b7b | 551 | py | Python | forge_api_client/hubs.py | dmh126/forge-python-data-management-api | 9c33f220021251a0340346065e3dd1998fc49a12 | [
"MIT"
] | 1 | 2019-07-02T08:32:22.000Z | 2019-07-02T08:32:22.000Z | forge_api_client/hubs.py | dmh126/forge-python-data-management-api | 9c33f220021251a0340346065e3dd1998fc49a12 | [
"MIT"
] | null | null | null | forge_api_client/hubs.py | dmh126/forge-python-data-management-api | 9c33f220021251a0340346065e3dd1998fc49a12 | [
"MIT"
] | 2 | 2019-07-04T05:13:42.000Z | 2020-05-09T22:15:05.000Z | from .utils import get_request, authorized
class Hubs:
@authorized
def getHubs(self):
url = self.api_url + '/project/v1/hubs'
headers = {
'Authorization': '%s %s' % (self.token_type, self.access_token)
}
return get_request(url, headers)
@authorized
def g... | 21.192308 | 75 | 0.575318 | 65 | 551 | 4.707692 | 0.384615 | 0.098039 | 0.065359 | 0.084967 | 0.666667 | 0.666667 | 0.666667 | 0.496732 | 0.496732 | 0.496732 | 0 | 0.005181 | 0.299456 | 551 | 25 | 76 | 22.04 | 0.787565 | 0 | 0 | 0.5 | 0 | 0 | 0.128857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0eebd18c0a711ceedaa9842ae51084a3bb575a36 | 8,841 | py | Python | pactman/verifier/pytest_plugin.py | piotrantosz/pactman | 2838e273d79831721da9c1b658b8f9d249efc789 | [
"MIT"
] | 67 | 2018-08-26T03:39:16.000Z | 2022-02-24T10:05:18.000Z | pactman/verifier/pytest_plugin.py | piotrantosz/pactman | 2838e273d79831721da9c1b658b8f9d249efc789 | [
"MIT"
] | 82 | 2018-08-29T00:09:32.000Z | 2022-02-08T02:46:15.000Z | pactman/verifier/pytest_plugin.py | piotrantosz/pactman | 2838e273d79831721da9c1b658b8f9d249efc789 | [
"MIT"
] | 37 | 2018-08-22T04:40:31.000Z | 2022-02-08T13:31:31.000Z | import glob
import logging
import os
import warnings
import pytest
from _pytest.outcomes import Failed
from _pytest.reports import TestReport
from .broker_pact import BrokerPact, BrokerPacts, PactBrokerConfig
from .result import PytestResult, log
def pytest_addoption(parser):
group = parser.getgroup("pact speci... | 38.776316 | 109 | 0.658862 | 1,043 | 8,841 | 5.448706 | 0.239693 | 0.034489 | 0.044343 | 0.023755 | 0.173148 | 0.131445 | 0.062643 | 0.0183 | 0.0183 | 0.0183 | 0 | 0.001052 | 0.247144 | 8,841 | 227 | 110 | 38.947137 | 0.852764 | 0.153376 | 0 | 0.133721 | 0 | 0 | 0.205448 | 0.021471 | 0 | 0 | 0 | 0 | 0.005814 | 1 | 0.098837 | false | 0.005814 | 0.052326 | 0.011628 | 0.22093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |