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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
075601d812e7788a83abdb5d69e6437c29517e9c | 7,993 | py | Python | src/sultan/result.py | bquantump/sultan | a46e8dc9b09385a7226f6151134ae2417166f25d | [
"MIT"
] | null | null | null | src/sultan/result.py | bquantump/sultan | a46e8dc9b09385a7226f6151134ae2417166f25d | [
"MIT"
] | null | null | null | src/sultan/result.py | bquantump/sultan | a46e8dc9b09385a7226f6151134ae2417166f25d | [
"MIT"
] | null | null | null | import subprocess
import sys
import time
import traceback
from queue import Queue
from sultan.core import Base
from sultan.echo import Echo
from threading import Thread
class Result(Base):
"""
Class that encompasses the result of a POpen command.
"""
def __init__(self, process, commands, context, st... | 31.222656 | 110 | 0.555236 | 899 | 7,993 | 4.675195 | 0.176863 | 0.03331 | 0.03093 | 0.016179 | 0.326909 | 0.263145 | 0.206281 | 0.192957 | 0.149655 | 0.135855 | 0 | 0.004933 | 0.340548 | 7,993 | 255 | 111 | 31.345098 | 0.792449 | 0.128362 | 0 | 0.233533 | 0 | 0 | 0.047177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125749 | false | 0.017964 | 0.047904 | 0.011976 | 0.233533 | 0.05988 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07565d1f240205eff7e6a9514e645e53e8414dbd | 10,991 | py | Python | great_expectations/cli/datasource.py | orenovadia/great_expectations | 76ef0c4e066227f8b589a1ee6ac885618f65906e | [
"Apache-2.0"
] | null | null | null | great_expectations/cli/datasource.py | orenovadia/great_expectations | 76ef0c4e066227f8b589a1ee6ac885618f65906e | [
"Apache-2.0"
] | null | null | null | great_expectations/cli/datasource.py | orenovadia/great_expectations | 76ef0c4e066227f8b589a1ee6ac885618f65906e | [
"Apache-2.0"
] | null | null | null | import os
import click
from .util import cli_message
from great_expectations.render import DefaultJinjaPageView
from great_expectations.version import __version__ as __version__
def add_datasource(context):
cli_message(
"""
========== Datasources ==========
See <blue>https://docs.greatexpectations.io/en... | 38.837456 | 180 | 0.655263 | 1,299 | 10,991 | 5.307929 | 0.211701 | 0.04641 | 0.032487 | 0.020305 | 0.515446 | 0.427556 | 0.396664 | 0.380711 | 0.337056 | 0.306889 | 0 | 0.005357 | 0.252752 | 10,991 | 282 | 181 | 38.975177 | 0.834165 | 0.06387 | 0 | 0.443299 | 0 | 0 | 0.348215 | 0.064023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005155 | false | 0.010309 | 0.025773 | 0 | 0.036082 | 0.015464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0756766e6e04859ce22940229b15353362178faa | 4,105 | py | Python | python/crawler/downloader.py | rgb-24bit/code-library | 8da8336e241e1428b2b46c6939bd5e9eadcf3e68 | [
"MIT"
] | null | null | null | python/crawler/downloader.py | rgb-24bit/code-library | 8da8336e241e1428b2b46c6939bd5e9eadcf3e68 | [
"MIT"
] | null | null | null | python/crawler/downloader.py | rgb-24bit/code-library | 8da8336e241e1428b2b46c6939bd5e9eadcf3e68 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Provide download function by request
"""
from datetime import datetime
import logging
import time
import urllib.parse
import requests
from bs4 import BeautifulSoup
class Throttle(object):
"""Throttle downloading by sleeping between requests to same domain."""
de... | 37.66055 | 81 | 0.599026 | 474 | 4,105 | 5.092827 | 0.257384 | 0.041425 | 0.023198 | 0.021127 | 0.180613 | 0.166529 | 0.166529 | 0.166529 | 0.166529 | 0.166529 | 0 | 0.008079 | 0.306456 | 4,105 | 108 | 82 | 38.009259 | 0.839831 | 0.160536 | 0 | 0.226667 | 0 | 0 | 0.02934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0 | 0.08 | 0 | 0.293333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07573778dc31fb4c60d28d2030387a7be8144f36 | 7,327 | py | Python | src/keycloak/connection.py | ecederstrand/python-keycloak | 77686a2764a3fcba092d78e02f42a58c7214c30e | [
"MIT"
] | null | null | null | src/keycloak/connection.py | ecederstrand/python-keycloak | 77686a2764a3fcba092d78e02f42a58c7214c30e | [
"MIT"
] | null | null | null | src/keycloak/connection.py | ecederstrand/python-keycloak | 77686a2764a3fcba092d78e02f42a58c7214c30e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (C) 2017 Marcos Pereira <marcospereira.mpj@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, in... | 32.564444 | 88 | 0.608162 | 883 | 7,327 | 4.975085 | 0.254813 | 0.022308 | 0.020032 | 0.023674 | 0.397223 | 0.350558 | 0.332802 | 0.325063 | 0.314136 | 0.297746 | 0 | 0.001949 | 0.299577 | 7,327 | 224 | 89 | 32.709821 | 0.854053 | 0.418452 | 0 | 0.377358 | 0 | 0 | 0.034026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179245 | false | 0 | 0.056604 | 0 | 0.339623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07577b638bc8a39bd8fcb86c2ed5cc924e43d86a | 700 | py | Python | 2020/23.py | Valokoodari/advent-of-code | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-27T18:59:11.000Z | 2022-01-10T02:31:36.000Z | 2020/23.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | null | null | null | 2020/23.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-23T17:29:10.000Z | 2021-12-24T03:21:49.000Z | #!venv/bin/python3
cs = [int(c) for c in open("inputs/23.in", "r").readline().strip()]
def f(cs, ts):
p,cc = {n: cs[(i+1)%len(cs)] for i,n in enumerate(cs)},cs[-1]
for _ in range(ts):
cc,dc = p[cc],p[cc]-1 if p[cc]-1 > 0 else max(p.keys())
hc,p[cc] = [p[cc], p[p[cc]], p[p[p[cc]]]],p[p[p[p[cc]]... | 29.166667 | 77 | 0.452857 | 140 | 700 | 2.25 | 0.335714 | 0.085714 | 0.063492 | 0.047619 | 0.038095 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0.079681 | 0.282857 | 700 | 24 | 77 | 29.166667 | 0.547809 | 0.024286 | 0 | 0 | 0 | 0 | 0.039531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 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 |
075a46f6df538e13d87e3247bc8ca4b6d54f0b7b | 659 | py | Python | demos/nn_classification_demo.py | fire-breathing-rubber-lemons/cs207-FinalProject | 92d1d7d70637e2478effb01c9ce56199e0f873c9 | [
"MIT"
] | null | null | null | demos/nn_classification_demo.py | fire-breathing-rubber-lemons/cs207-FinalProject | 92d1d7d70637e2478effb01c9ce56199e0f873c9 | [
"MIT"
] | 31 | 2019-10-18T16:14:07.000Z | 2019-12-10T16:38:34.000Z | demos/nn_classification_demo.py | fire-breathing-rubber-lemons/cs207-FinalProject | 92d1d7d70637e2478effb01c9ce56199e0f873c9 | [
"MIT"
] | null | null | null | import numpy as np
from pyad.nn import NeuralNet
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
np.random.seed(0)
data = load_breast_cancer()
X_train, X_test, y_train, y_test = train_test_split(
data.data, data.target, train_size=0.8, random_state=0
)
nn = Ne... | 26.36 | 59 | 0.76176 | 113 | 659 | 4.185841 | 0.451327 | 0.038055 | 0.063425 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039316 | 0.112291 | 659 | 24 | 60 | 27.458333 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.068285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
075c40bff74b1c9ad80e482ccef0c574552a2c97 | 226 | py | Python | mgatemp.py | zobclub/chapter8 | fbd9e8711747b7446f75b472bae1465fe0ab495c | [
"MIT"
] | 1 | 2021-12-02T10:56:49.000Z | 2021-12-02T10:56:49.000Z | mgatemp.py | zobclub/chapter8 | fbd9e8711747b7446f75b472bae1465fe0ab495c | [
"MIT"
] | null | null | null | mgatemp.py | zobclub/chapter8 | fbd9e8711747b7446f75b472bae1465fe0ab495c | [
"MIT"
] | null | null | null | from microbit import *
I2CADR = 0x0E
DIE_TEMP = 0x0F
while True:
i2c.write(I2CADR, bytearray([DIE_TEMP]))
d = i2c.read(I2CADR, 1)
x = d[0]
if x >=128:
x -= 256
x += 10
print(x)
sleep(500) | 16.142857 | 44 | 0.553097 | 35 | 226 | 3.514286 | 0.714286 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 0.309735 | 226 | 14 | 45 | 16.142857 | 0.647436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035242 | 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 |
075fafdab69c5858ee27f6483fe78f36b26b216c | 11,121 | py | Python | src/scalar_net/visualisations.py | scheeloong/lindaedynamics_icml2018 | d03b450e254d33b019161a3cd015e44aafe407cb | [
"MIT"
] | 1 | 2018-08-04T17:04:13.000Z | 2018-08-04T17:04:13.000Z | src/scalar_net/visualisations.py | scheeloong/lindaedynamics_icml2018 | d03b450e254d33b019161a3cd015e44aafe407cb | [
"MIT"
] | null | null | null | src/scalar_net/visualisations.py | scheeloong/lindaedynamics_icml2018 | d03b450e254d33b019161a3cd015e44aafe407cb | [
"MIT"
] | null | null | null | # required modules
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from matplotlib import cm
from matplotlib.colors import Normalize
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.animation import FuncAnimation
# two-dimesional version
def plot_mse_loss_surface_2d(fi... | 35.193038 | 103 | 0.608488 | 1,873 | 11,121 | 3.409503 | 0.132942 | 0.008456 | 0.007516 | 0.007047 | 0.634043 | 0.553868 | 0.488256 | 0.429847 | 0.407454 | 0.382086 | 0 | 0.061091 | 0.230195 | 11,121 | 315 | 104 | 35.304762 | 0.68485 | 0.118065 | 0 | 0.493151 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.031963 | 0 | 0.136986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
075fc7c73e1c7b1fe3355a9a233cd8869299a19e | 7,435 | py | Python | tests/qconvolutional_test.py | kshithijiyer/qkeras | 78ac608c6dcd84151792a986d03fe7afb17929cf | [
"Apache-2.0"
] | null | null | null | tests/qconvolutional_test.py | kshithijiyer/qkeras | 78ac608c6dcd84151792a986d03fe7afb17929cf | [
"Apache-2.0"
] | null | null | null | tests/qconvolutional_test.py | kshithijiyer/qkeras | 78ac608c6dcd84151792a986d03fe7afb17929cf | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 33.490991 | 80 | 0.646537 | 1,258 | 7,435 | 3.699523 | 0.201908 | 0.063171 | 0.075634 | 0.093468 | 0.429093 | 0.386979 | 0.367426 | 0.355393 | 0.347443 | 0.324667 | 0 | 0.094044 | 0.200538 | 7,435 | 221 | 81 | 33.642534 | 0.68893 | 0.195293 | 0 | 0.375796 | 0 | 0 | 0.033664 | 0.00707 | 0 | 0 | 0 | 0.004525 | 0.050955 | 1 | 0.012739 | false | 0 | 0.178344 | 0 | 0.191083 | 0.019108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
076073f7df321e46ea5bd065cc9331746695ec1f | 2,356 | py | Python | discord/ext/ui/select.py | Lapis256/discord-ext-ui | 593de0a1107d2a0c26023587a2937f00ecec3ed1 | [
"MIT"
] | null | null | null | discord/ext/ui/select.py | Lapis256/discord-ext-ui | 593de0a1107d2a0c26023587a2937f00ecec3ed1 | [
"MIT"
] | null | null | null | discord/ext/ui/select.py | Lapis256/discord-ext-ui | 593de0a1107d2a0c26023587a2937f00ecec3ed1 | [
"MIT"
] | null | null | null | from typing import Optional, List, TypeVar, Generic, Callable
import discord.ui
from .item import Item
from .select_option import SelectOption
from .custom import CustomSelect
def _default_check(_: discord.Interaction) -> bool:
return True
C = TypeVar("C", bound=discord.ui.Select)
class Select(Item, Generic... | 28.731707 | 79 | 0.61163 | 282 | 2,356 | 4.882979 | 0.177305 | 0.058824 | 0.075527 | 0.041394 | 0.190995 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001193 | 0.288625 | 2,356 | 81 | 80 | 29.08642 | 0.820406 | 0 | 0 | 0.129032 | 0 | 0 | 0.020798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177419 | false | 0 | 0.080645 | 0.032258 | 0.435484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
07629f29c3ccce164edffac5aaf1f19ce3ce8456 | 6,934 | py | Python | userbot/helper_funcs/misc.py | Abucuyy/Uciha | 726e9cd61eabf056064e40f7b322d8993161e52a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/helper_funcs/misc.py | Abucuyy/Uciha | 726e9cd61eabf056064e40f7b322d8993161e52a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2021-02-08T20:43:56.000Z | 2021-02-08T20:43:56.000Z | userbot/helper_funcs/misc.py | Abucuyy/Uciha | 726e9cd61eabf056064e40f7b322d8993161e52a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2020-09-05T12:45:31.000Z | 2020-09-25T09:04:29.000Z | # TG-UserBot - A modular Telegram UserBot script for Python.
# Copyright (C) 2019 Kandarp <https://github.com/kandnub>
#
# TG-UserBot 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 3 of t... | 37.27957 | 80 | 0.608595 | 830 | 6,934 | 4.927711 | 0.219277 | 0.064548 | 0.020538 | 0.029095 | 0.393888 | 0.293888 | 0.225428 | 0.214181 | 0.198533 | 0.174083 | 0 | 0.002192 | 0.27632 | 6,934 | 185 | 81 | 37.481081 | 0.812874 | 0.103836 | 0 | 0.326667 | 0 | 0 | 0.188591 | 0.011475 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026667 | 0 | 0.073333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0763811316d721bd61d00c534d919a140fb4b71a | 1,421 | py | Python | gym-multilayerthinfilm/utils.py | HarryTheBird/gym-multilayerthinfilm | 22eda96e71e95e9ea1b491fae633c4a32fadb023 | [
"MIT"
] | 10 | 2021-05-20T19:46:36.000Z | 2022-02-24T03:06:46.000Z | gym-multilayerthinfilm/utils.py | HarryTheBird/gym-multilayerthinfilm | 22eda96e71e95e9ea1b491fae633c4a32fadb023 | [
"MIT"
] | null | null | null | gym-multilayerthinfilm/utils.py | HarryTheBird/gym-multilayerthinfilm | 22eda96e71e95e9ea1b491fae633c4a32fadb023 | [
"MIT"
] | 2 | 2021-12-11T21:49:35.000Z | 2022-03-04T06:28:57.000Z | import numpy as np
def get_n_from_txt(filepath, points=None, lambda_min=400, lambda_max=700, complex_n=True):
ntxt = np.loadtxt(filepath)
if np.min(np.abs(ntxt[:, 0] - lambda_min)) > 25 or np.min(np.abs(ntxt[:, 0] - lambda_max)) > 25:
print('No measurement data for refractive indicies are available wit... | 43.060606 | 113 | 0.626319 | 214 | 1,421 | 4.004673 | 0.280374 | 0.094516 | 0.087515 | 0.046674 | 0.291715 | 0.221704 | 0.207701 | 0.102684 | 0.102684 | 0.102684 | 0 | 0.021257 | 0.238564 | 1,421 | 32 | 114 | 44.40625 | 0.770795 | 0 | 0 | 0.166667 | 0 | 0 | 0.053483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.166667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
076ab2cb67c5bd176123d8332c42ca379bbe81d8 | 992 | py | Python | service.py | Kleist/MusicPlayer | 95f634d1e4d47e7b430e32ad9224d94ad0453c82 | [
"MIT"
] | 1 | 2020-08-14T21:14:09.000Z | 2020-08-14T21:14:09.000Z | service.py | Kleist/MusicPlayer | 95f634d1e4d47e7b430e32ad9224d94ad0453c82 | [
"MIT"
] | null | null | null | service.py | Kleist/MusicPlayer | 95f634d1e4d47e7b430e32ad9224d94ad0453c82 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
import play
import time
class TagPlayer(object):
def __init__(self):
self._current = None
self.reader = SimpleMFRC522()
self._failed = 0
def step(self):
id, text = self.reader.read_no_block()
... | 22.545455 | 64 | 0.521169 | 107 | 992 | 4.588785 | 0.448598 | 0.112016 | 0.0611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025765 | 0.373992 | 992 | 43 | 65 | 23.069767 | 0.764895 | 0.021169 | 0 | 0.114286 | 0 | 0 | 0.028866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.114286 | 0 | 0.228571 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
076b099ed1e8933339bc07b3aea99e064efdee24 | 1,118 | py | Python | mypy/defaults.py | ckanesan/mypy | ffb3ce925e8bb3376e19f942c7d3a3806c9bba97 | [
"PSF-2.0"
] | null | null | null | mypy/defaults.py | ckanesan/mypy | ffb3ce925e8bb3376e19f942c7d3a3806c9bba97 | [
"PSF-2.0"
] | 8 | 2021-03-18T22:27:44.000Z | 2022-02-10T09:18:50.000Z | mypy/defaults.py | ckanesan/mypy | ffb3ce925e8bb3376e19f942c7d3a3806c9bba97 | [
"PSF-2.0"
] | 1 | 2021-09-20T06:37:41.000Z | 2021-09-20T06:37:41.000Z | import os
MYPY = False
if MYPY:
from typing_extensions import Final
PYTHON2_VERSION = (2, 7) # type: Final
PYTHON3_VERSION = (3, 6) # type: Final
PYTHON3_VERSION_MIN = (3, 4) # type: Final
CACHE_DIR = '.mypy_cache' # type: Final
CONFIG_FILE = 'mypy.ini' # type: Final
SHARED_CONFIG_FILES = ['setup.cfg', ] # ... | 34.9375 | 91 | 0.604651 | 138 | 1,118 | 4.717391 | 0.485507 | 0.124424 | 0.069124 | 0.070661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01224 | 0.269231 | 1,118 | 31 | 92 | 36.064516 | 0.784578 | 0.245081 | 0 | 0 | 0 | 0 | 0.21781 | 0.025271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4acbd0cbd7b35addaf03f24e1fa4d33805db8c3a | 4,819 | py | Python | tools/corpora.py | EleutherAI/megatron-3d | be3014d47a127f08871d0ba6d6389363f2484397 | [
"MIT"
] | 3 | 2021-02-13T21:51:45.000Z | 2021-02-14T23:15:02.000Z | tools/corpora.py | EleutherAI/megatron-3d | be3014d47a127f08871d0ba6d6389363f2484397 | [
"MIT"
] | 13 | 2021-02-08T11:22:38.000Z | 2021-02-18T20:13:10.000Z | tools/corpora.py | EleutherAI/megatron-3d | be3014d47a127f08871d0ba6d6389363f2484397 | [
"MIT"
] | 2 | 2021-02-13T22:13:21.000Z | 2021-10-12T06:39:33.000Z | import os
import tarfile
from abc import ABC, abstractmethod
from glob import glob
import shutil
import random
import zstandard
"""
This registry is for automatically downloading and extracting datasets.
To register a class you need to inherit the DataDownloader class, provide name, filetype and url attributes, and
(... | 35.175182 | 136 | 0.661756 | 650 | 4,819 | 4.753846 | 0.253846 | 0.040777 | 0.035599 | 0.045307 | 0.290615 | 0.249191 | 0.190615 | 0.167314 | 0.148544 | 0.148544 | 0 | 0.005831 | 0.217057 | 4,819 | 136 | 137 | 35.433824 | 0.813146 | 0.056651 | 0 | 0.171717 | 0 | 0.030303 | 0.130033 | 0.033758 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.151515 | false | 0.030303 | 0.070707 | 0 | 0.323232 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4acced6bfbc482f9d38f37f561868a587991d47b | 1,575 | py | Python | othello_rl/qlearning/qlearning.py | aka256/othello-rl | ef5e78c6cf6b276e16b50086b53138ab968d728c | [
"MIT"
] | null | null | null | othello_rl/qlearning/qlearning.py | aka256/othello-rl | ef5e78c6cf6b276e16b50086b53138ab968d728c | [
"MIT"
] | null | null | null | othello_rl/qlearning/qlearning.py | aka256/othello-rl | ef5e78c6cf6b276e16b50086b53138ab968d728c | [
"MIT"
] | null | null | null | from logging import getLogger
logger = getLogger(__name__)
class QLearning:
"""
Q-Learning用のクラス
Attributes
----------
alpha : float
学習率α
gamma : float
割引率γ
data : dict
Q-Learningでの学習結果の保存用辞書
init_value : float
dataの初期値
"""
def __init__(self, alpha: float, gamma: float, data: dict ... | 17.119565 | 98 | 0.507937 | 214 | 1,575 | 3.593458 | 0.252336 | 0.046814 | 0.031209 | 0.035111 | 0.13264 | 0.085826 | 0.085826 | 0 | 0 | 0 | 0 | 0.00473 | 0.328889 | 1,575 | 91 | 99 | 17.307692 | 0.7228 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4acdb07fa21e6d09ec1006ea9fc4f7c0e59b102d | 6,748 | py | Python | SearchService/test/unit/test_solr_interface.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | SearchService/test/unit/test_solr_interface.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | SearchService/test/unit/test_solr_interface.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | #!/usr/bin/env python
import os
import json
import sys
import unittest
import urllib2
from flexmock import flexmock
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))
import solr_interface
import search_exceptions
class FakeSolrDoc():
def __init__(self):
self.fields = []
class FakeDocument():... | 33.405941 | 80 | 0.678275 | 790 | 6,748 | 5.497468 | 0.187342 | 0.0898 | 0.039143 | 0.066314 | 0.604881 | 0.571955 | 0.559982 | 0.527055 | 0.503108 | 0.472945 | 0 | 0.015228 | 0.182573 | 6,748 | 201 | 81 | 33.572139 | 0.772117 | 0.02134 | 0 | 0.447853 | 0 | 0 | 0.135687 | 0 | 0 | 0 | 0 | 0 | 0.08589 | 1 | 0.104294 | false | 0.006135 | 0.04908 | 0.018405 | 0.233129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4acea4b00d95238388dfdf1bfda34fd153268c2f | 5,858 | py | Python | WDJN/eval/eval.py | silverriver/Stylized_Dialog | 559dd97c4ec9c91e94deb048f789684ef3f1f9fa | [
"MIT"
] | 21 | 2020-12-16T08:53:38.000Z | 2022-01-21T09:08:55.000Z | WDJN/eval/eval.py | silverriver/Stylized_Dialog | 559dd97c4ec9c91e94deb048f789684ef3f1f9fa | [
"MIT"
] | 1 | 2020-12-27T07:56:01.000Z | 2020-12-30T05:13:11.000Z | WDJN/eval/eval.py | silverriver/Stylized_Dialog | 559dd97c4ec9c91e94deb048f789684ef3f1f9fa | [
"MIT"
] | 1 | 2022-02-28T12:19:19.000Z | 2022-02-28T12:19:19.000Z | import os
from nltk.translate.bleu_score import corpus_bleu
from nltk.translate.bleu_score import SmoothingFunction
import json
from tqdm import tqdm, trange
from random import sample
import numpy as np
import pickle
import argparse
import bert_eval_acc
import svm_eval_acc
smooth = SmoothingFunction()
def eval_bleu... | 32.726257 | 118 | 0.602083 | 912 | 5,858 | 3.700658 | 0.160088 | 0.047407 | 0.031111 | 0.021333 | 0.504 | 0.399407 | 0.343704 | 0.302815 | 0.302815 | 0.291556 | 0 | 0.036898 | 0.273643 | 5,858 | 178 | 119 | 32.910112 | 0.756287 | 0.146808 | 0 | 0.16 | 0 | 0 | 0.076671 | 0 | 0 | 0 | 0 | 0 | 0.024 | 1 | 0.048 | false | 0 | 0.088 | 0 | 0.208 | 0.064 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4acf75fbdd9f5684eaa634c30e9274299d052baa | 804 | py | Python | homeassistant/components/unifi/const.py | olbjan/home-assistant-1 | 1adb45f74e96fc5eff137a3727647a7e428e123c | [
"Apache-2.0"
] | 7 | 2019-02-07T14:14:12.000Z | 2019-07-28T06:56:10.000Z | homeassistant/components/unifi/const.py | olbjan/home-assistant-1 | 1adb45f74e96fc5eff137a3727647a7e428e123c | [
"Apache-2.0"
] | 6 | 2021-02-08T20:54:31.000Z | 2022-03-12T00:50:43.000Z | homeassistant/components/unifi/const.py | olbjan/home-assistant-1 | 1adb45f74e96fc5eff137a3727647a7e428e123c | [
"Apache-2.0"
] | 1 | 2020-09-23T16:41:16.000Z | 2020-09-23T16:41:16.000Z | """Constants for the UniFi component."""
import logging
LOGGER = logging.getLogger(__package__)
DOMAIN = "unifi"
CONTROLLER_ID = "{host}-{site}"
CONF_CONTROLLER = "controller"
CONF_SITE_ID = "site"
UNIFI_WIRELESS_CLIENTS = "unifi_wireless_clients"
CONF_ALLOW_BANDWIDTH_SENSORS = "allow_bandwidth_sensors"
CONF_BLOCK... | 25.935484 | 56 | 0.823383 | 104 | 804 | 5.836538 | 0.375 | 0.072488 | 0.103789 | 0.075783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.097015 | 804 | 30 | 57 | 26.8 | 0.831956 | 0.042289 | 0 | 0 | 0 | 0 | 0.244764 | 0.058901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4acfa6e08c91d6cf965af047f2b0bfd2e83e88a1 | 503 | py | Python | coding_intereview/1656. Design an Ordered Stream.py | Jahidul007/Python-Bootcamp | 3c870587465ff66c2c1871c8d3c4eea72463abda | [
"MIT"
] | 2 | 2020-12-07T16:07:07.000Z | 2020-12-07T16:08:53.000Z | coding_intereview/1656. Design an Ordered Stream.py | Jahidul007/Python-Bootcamp | 3c870587465ff66c2c1871c8d3c4eea72463abda | [
"MIT"
] | null | null | null | coding_intereview/1656. Design an Ordered Stream.py | Jahidul007/Python-Bootcamp | 3c870587465ff66c2c1871c8d3c4eea72463abda | [
"MIT"
] | 1 | 2020-10-03T16:38:02.000Z | 2020-10-03T16:38:02.000Z | class OrderedStream:
def __init__(self, n: int):
self.data = [None]*n
self.ptr = 0
def insert(self, id: int, value: str) -> List[str]:
id -= 1
self.data[id] = value
if id > self.ptr: return []
while self.ptr < len(self.data) and self.data[self.ptr]: ... | 26.473684 | 80 | 0.584493 | 73 | 503 | 3.958904 | 0.438356 | 0.145329 | 0.069204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011142 | 0.286282 | 503 | 18 | 81 | 27.944444 | 0.793872 | 0.238569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad0334044a6b76510a6250d8488d1fea4817857 | 326 | py | Python | lista01/rpc/ex01_cl.py | SD-CC-UFG/leonardo.fleury | 0a8dfc5752c739f5ff98890477355df8960ad730 | [
"MIT"
] | null | null | null | lista01/rpc/ex01_cl.py | SD-CC-UFG/leonardo.fleury | 0a8dfc5752c739f5ff98890477355df8960ad730 | [
"MIT"
] | null | null | null | lista01/rpc/ex01_cl.py | SD-CC-UFG/leonardo.fleury | 0a8dfc5752c739f5ff98890477355df8960ad730 | [
"MIT"
] | null | null | null | import xmlrpc.client
def main():
s = xmlrpc.client.ServerProxy('http://localhost:9991')
nome = input("Nome: ")
cargo = input("Cargo (programador, operador): ")
salario = float(input("Salário: "))
print("\n\n{}".format(s.atualiza_salario(nome, cargo, salario)))
if __name__ == '__main__':
m... | 20.375 | 68 | 0.628834 | 38 | 326 | 5.157895 | 0.631579 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.184049 | 326 | 15 | 69 | 21.733333 | 0.721805 | 0 | 0 | 0 | 0 | 0 | 0.248466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
4ad2b9e71e54721776c8640bd3dfe9980a8f4ea4 | 654 | py | Python | src/graph_transpiler/webdnn/backend/webgl/optimize_rules/simplify_channel_mode_conversion/simplify_channel_mode_conversion.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | src/graph_transpiler/webdnn/backend/webgl/optimize_rules/simplify_channel_mode_conversion/simplify_channel_mode_conversion.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/backend/webgl/optimize_rules/simplify_channel_mode_conversion/simplify_channel_mode_conversion.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | from webdnn.backend.webgl.optimize_rules.simplify_channel_mode_conversion.simplify_nonsense_channel_mode_conversion import \
SimplifyNonsenseChannelModeConversion
from webdnn.backend.webgl.optimize_rules.simplify_channel_mode_conversion.simplify_redundant_channel_mode_conversion import \
SimplifyRedundantChanne... | 46.714286 | 125 | 0.831804 | 53 | 654 | 9.792453 | 0.45283 | 0.084778 | 0.16185 | 0.084778 | 0.277457 | 0.277457 | 0.277457 | 0.277457 | 0.277457 | 0.277457 | 0 | 0 | 0.117737 | 654 | 13 | 126 | 50.307692 | 0.89948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad2c65a15fe6f6a8837baee7e607c55330b95b9 | 3,998 | py | Python | script.video.F4mProxy/lib/flvlib/constants.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 105 | 2015-11-28T00:03:11.000Z | 2021-05-05T20:47:42.000Z | script.video.F4mProxy/lib/flvlib/constants.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 918 | 2015-11-28T14:12:40.000Z | 2022-03-23T20:24:49.000Z | script.video.F4mProxy/lib/flvlib/constants.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 111 | 2015-12-01T14:06:10.000Z | 2020-08-01T10:44:39.000Z | """
The constants used in FLV files and their meanings.
"""
# Tag type
(TAG_TYPE_AUDIO, TAG_TYPE_VIDEO, TAG_TYPE_SCRIPT) = (8, 9, 18)
# Sound format
(SOUND_FORMAT_PCM_PLATFORM_ENDIAN,
SOUND_FORMAT_ADPCM,
SOUND_FORMAT_MP3,
SOUND_FORMAT_PCM_LITTLE_ENDIAN,
SOUND_FORMAT_NELLYMOSER_16KHZ,
SOUND_FORMAT_NELLYMOSER_8KH... | 24.679012 | 68 | 0.765883 | 591 | 3,998 | 4.654822 | 0.191201 | 0.111959 | 0.035623 | 0.034896 | 0.452199 | 0.279171 | 0.043621 | 0 | 0 | 0 | 0 | 0.043466 | 0.142571 | 3,998 | 161 | 69 | 24.832298 | 0.759043 | 0.043022 | 0 | 0 | 0 | 0 | 0.151746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad2ef7203bc120919170c5085d9fe1547885b6b | 8,318 | py | Python | gnn_model.py | thoang3/graph_neural_network_benchmark | 72dc031ed23c6684c43d6f2ace03425f9b69cee6 | [
"MIT"
] | null | null | null | gnn_model.py | thoang3/graph_neural_network_benchmark | 72dc031ed23c6684c43d6f2ace03425f9b69cee6 | [
"MIT"
] | null | null | null | gnn_model.py | thoang3/graph_neural_network_benchmark | 72dc031ed23c6684c43d6f2ace03425f9b69cee6 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from load_cora import load_cora
from baseline_model import create_ffn
from utils import run_experiment
from utils import display_learning_curves
# Graph convolution layer
class GraphConvLayer(layers.Layer):
def __init__(
... | 33.007937 | 103 | 0.709425 | 1,043 | 8,318 | 5.347076 | 0.197507 | 0.037475 | 0.02582 | 0.031558 | 0.242424 | 0.196701 | 0.13215 | 0.10633 | 0.069571 | 0.055227 | 0 | 0.009237 | 0.206059 | 8,318 | 251 | 104 | 33.139442 | 0.835251 | 0.213513 | 0 | 0.240964 | 0 | 0 | 0.053469 | 0.007727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042169 | false | 0 | 0.042169 | 0 | 0.126506 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad45250872794a6a29b08c6da2bcb27a740d5f5 | 5,098 | py | Python | src/sim/basicExample/main.py | andremtsilva/dissertacao | 7c039ffe871468be0215c482adb42830fff586aa | [
"MIT"
] | null | null | null | src/sim/basicExample/main.py | andremtsilva/dissertacao | 7c039ffe871468be0215c482adb42830fff586aa | [
"MIT"
] | null | null | null | src/sim/basicExample/main.py | andremtsilva/dissertacao | 7c039ffe871468be0215c482adb42830fff586aa | [
"MIT"
] | null | null | null | """
This is the most simple scenario with a basic topology, some users and a set of apps with only one service.
@author: Isaac Lera
"""
import os
import time
import json
import random
import logging.config
import networkx as nx
import numpy as np
from pathlib import Path
from yafs.core import Sim
from yafs.a... | 27.857923 | 156 | 0.652217 | 681 | 5,098 | 4.74743 | 0.35536 | 0.007423 | 0.014847 | 0.014847 | 0.070523 | 0.03588 | 0.03588 | 0.020414 | 0 | 0 | 0 | 0.0094 | 0.227933 | 5,098 | 183 | 157 | 27.857924 | 0.811992 | 0.198117 | 0 | 0.079545 | 0 | 0 | 0.16887 | 0.062315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011364 | false | 0 | 0.170455 | 0 | 0.181818 | 0.204545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad523fc14942dd490ad41c526c6171f60967ac3 | 476 | py | Python | Backend/models/risklayerPrognosis.py | dbvis-ukon/coronavis | f00374ac655c9d68541183d28ede6fe5536581dc | [
"Apache-2.0"
] | 15 | 2020-04-24T20:18:11.000Z | 2022-01-31T21:05:05.000Z | Backend/models/risklayerPrognosis.py | dbvis-ukon/coronavis | f00374ac655c9d68541183d28ede6fe5536581dc | [
"Apache-2.0"
] | 2 | 2021-05-19T07:15:09.000Z | 2022-03-07T08:29:34.000Z | Backend/models/risklayerPrognosis.py | dbvis-ukon/coronavis | f00374ac655c9d68541183d28ede6fe5536581dc | [
"Apache-2.0"
] | 4 | 2020-04-27T16:20:13.000Z | 2021-02-23T10:39:42.000Z | from db import db
class RisklayerPrognosis(db.Model):
__tablename__ = 'risklayer_prognosis'
datenbestand = db.Column(db.TIMESTAMP, primary_key=True, nullable=False)
prognosis = db.Column(db.Float, nullable=False)
# class RisklayerPrognosisSchema(SQLAlchemyAutoSchema):
# class Meta:
# strict ... | 28 | 76 | 0.72479 | 49 | 476 | 6.877551 | 0.510204 | 0.047478 | 0.059347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170168 | 476 | 16 | 77 | 29.75 | 0.853165 | 0.487395 | 0 | 0 | 0 | 0 | 0.080508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad5abaadbbca74176e6ec4d71b60fea9789204e | 2,520 | py | Python | tests.py | smartfile/django-secureform | 3b7a8b90550327f370ea02c6886220b2db0517b5 | [
"MIT"
] | 12 | 2015-02-23T19:45:45.000Z | 2021-05-05T20:35:26.000Z | tests.py | smartfile/django-secureform | 3b7a8b90550327f370ea02c6886220b2db0517b5 | [
"MIT"
] | 3 | 2015-08-09T18:14:16.000Z | 2018-10-23T03:16:38.000Z | tests.py | smartfile/django-secureform | 3b7a8b90550327f370ea02c6886220b2db0517b5 | [
"MIT"
] | 6 | 2015-05-09T07:46:00.000Z | 2019-11-27T09:54:57.000Z | import os
import unittest
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django
if django.VERSION >= (1, 7):
django.setup()
from django import forms
from django.db import models
from django.forms.forms import NON_FIELD_ERRORS
from django_secureform.forms import SecureForm
def get_form_sname(form, name... | 28.965517 | 94 | 0.660714 | 335 | 2,520 | 4.767164 | 0.271642 | 0.035066 | 0.043832 | 0.031935 | 0.347527 | 0.288666 | 0.204133 | 0.180338 | 0.139011 | 0.139011 | 0 | 0.002046 | 0.224206 | 2,520 | 86 | 95 | 29.302326 | 0.814834 | 0.014286 | 0 | 0.222222 | 0 | 0 | 0.076551 | 0.008864 | 0 | 0 | 0 | 0 | 0.174603 | 1 | 0.15873 | false | 0 | 0.111111 | 0.015873 | 0.412698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad6cfb56509f081f06c889b6fbe45a5dd8ec0f3 | 24,265 | py | Python | tools/gen_usb_descriptor.py | BrianPugh/circuitpython | f0bb9635bf311013e7b1ff69d1a0542575cf9d0a | [
"MIT",
"Unlicense",
"MIT-0",
"BSD-3-Clause"
] | 1 | 2020-08-29T12:06:14.000Z | 2020-08-29T12:06:14.000Z | tools/gen_usb_descriptor.py | BrianPugh/circuitpython | f0bb9635bf311013e7b1ff69d1a0542575cf9d0a | [
"MIT",
"Unlicense",
"MIT-0",
"BSD-3-Clause"
] | null | null | null | tools/gen_usb_descriptor.py | BrianPugh/circuitpython | f0bb9635bf311013e7b1ff69d1a0542575cf9d0a | [
"MIT",
"Unlicense",
"MIT-0",
"BSD-3-Clause"
] | 1 | 2021-01-18T00:52:39.000Z | 2021-01-18T00:52:39.000Z | # SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
#
# SPDX-License-Identifier: MIT
import argparse
import os
import sys
sys.path.append("../../tools/usb_descriptor")
from adafruit_usb_descriptor import audio, audio10, cdc, hid, mi... | 37.330769 | 135 | 0.697465 | 3,007 | 24,265 | 5.368806 | 0.142667 | 0.01053 | 0.019202 | 0.017096 | 0.499876 | 0.411174 | 0.318632 | 0.254274 | 0.207012 | 0.1569 | 0 | 0.010072 | 0.198063 | 24,265 | 649 | 136 | 37.38829 | 0.819569 | 0.101834 | 0 | 0.311024 | 0 | 0 | 0.199384 | 0.036565 | 0 | 0 | 0.001794 | 0 | 0.001969 | 1 | 0.003937 | false | 0 | 0.009843 | 0.001969 | 0.027559 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ad7684b6c380ab5df46b6e04110892e72e1a9ab | 7,500 | py | Python | bclstm/train_meld.py | Columbine21/THUIAR-ERC | 90e928e1ce777152e459dbc487acf04c32cbc645 | [
"MIT"
] | 1 | 2021-01-28T13:43:32.000Z | 2021-01-28T13:43:32.000Z | bclstm/train_meld.py | Columbine21/THUIAR-ERC | 90e928e1ce777152e459dbc487acf04c32cbc645 | [
"MIT"
] | null | null | null | bclstm/train_meld.py | Columbine21/THUIAR-ERC | 90e928e1ce777152e459dbc487acf04c32cbc645 | [
"MIT"
] | null | null | null | from tqdm import tqdm
import pandas as pd
import numpy as np, argparse, time, pickle, random, os, datetime
import torch
import torch.optim as optim
from model import MaskedNLLLoss, BC_LSTM
from dataloader import MELDDataLoader
from sklearn.metrics import f1_score, confusion_matrix, accuracy_score, classification_re... | 41.666667 | 305 | 0.625867 | 969 | 7,500 | 4.633643 | 0.244582 | 0.034076 | 0.064365 | 0.005345 | 0.196437 | 0.141648 | 0.074388 | 0.061915 | 0.035857 | 0.003118 | 0 | 0.021155 | 0.231067 | 7,500 | 179 | 306 | 41.899441 | 0.757413 | 0.0284 | 0 | 0.062016 | 0 | 0.007752 | 0.12225 | 0.018564 | 0 | 0 | 0 | 0 | 0.007752 | 1 | 0.023256 | false | 0 | 0.062016 | 0 | 0.108527 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4add579fe7516845335bc7bc7e7d3e61d0a5f88e | 27,214 | py | Python | rlbench/task_environment.py | robfiras/RLBench | 97ab9526b6efb718f2b5aae40897ccd75aeff11e | [
"BSD-3-Clause"
] | null | null | null | rlbench/task_environment.py | robfiras/RLBench | 97ab9526b6efb718f2b5aae40897ccd75aeff11e | [
"BSD-3-Clause"
] | null | null | null | rlbench/task_environment.py | robfiras/RLBench | 97ab9526b6efb718f2b5aae40897ccd75aeff11e | [
"BSD-3-Clause"
] | null | null | null | import logging
from typing import List, Callable
import numpy as np
from pyquaternion import Quaternion
from pyrep import PyRep
from pyrep.errors import IKError
from pyrep.objects import Dummy, Object
from rlbench import utils
from rlbench.action_modes import ArmActionMode, ActionMode
from rlbench.backend.exceptions ... | 44.833608 | 124 | 0.596017 | 3,931 | 27,214 | 3.830323 | 0.111422 | 0.029754 | 0.025503 | 0.010759 | 0.460384 | 0.406588 | 0.370924 | 0.326426 | 0.319918 | 0.314538 | 0 | 0.023105 | 0.295473 | 27,214 | 606 | 125 | 44.907591 | 0.762061 | 0.128831 | 0 | 0.237327 | 0 | 0 | 0.045825 | 0.003564 | 0 | 0 | 0 | 0 | 0.034562 | 1 | 0.059908 | false | 0.004608 | 0.036866 | 0.013825 | 0.147465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4add672a5d82fff4c573be986ee4381ccf2640c3 | 11,795 | py | Python | tests/generic_relations/test_forms.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/generic_relations/test_forms.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/generic_relations/test_forms.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django import forms
from django.contrib.contenttypes.forms import generic_inlineformset_factory
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.test import TestCase
from django.test.utils import isolate_apps
from .models import (
Animal, ForProxyMode... | 49.145833 | 115 | 0.667147 | 1,406 | 11,795 | 5.393314 | 0.130868 | 0.055123 | 0.116577 | 0.147963 | 0.655545 | 0.626533 | 0.583278 | 0.531452 | 0.513649 | 0.476197 | 0 | 0.009789 | 0.203222 | 11,795 | 239 | 116 | 49.351464 | 0.797084 | 0.025858 | 0 | 0.319767 | 0 | 0.005814 | 0.110581 | 0.020673 | 0 | 0 | 0 | 0 | 0.180233 | 1 | 0.069767 | false | 0.005814 | 0.040698 | 0 | 0.151163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4add77a89d96d39ac35506a52c38ceda993b7f43 | 3,192 | py | Python | src/sage/rings/polynomial/pbori/fglm.py | tamnguyen135/sage | 2c87dc16f26604033bb1b2d1dc6796d279c88b16 | [
"BSL-1.0"
] | 1 | 2020-11-12T04:06:19.000Z | 2020-11-12T04:06:19.000Z | src/sage/rings/polynomial/pbori/fglm.py | tamnguyen135/sage | 2c87dc16f26604033bb1b2d1dc6796d279c88b16 | [
"BSL-1.0"
] | null | null | null | src/sage/rings/polynomial/pbori/fglm.py | tamnguyen135/sage | 2c87dc16f26604033bb1b2d1dc6796d279c88b16 | [
"BSL-1.0"
] | null | null | null | from .PyPolyBoRi import (BooleSet, Polynomial, BoolePolynomialVector,
FGLMStrategy)
def _fglm(I, from_ring, to_ring):
r"""
Unchecked variant of fglm
"""
vec = BoolePolynomialVector(I)
return FGLMStrategy(from_ring, to_ring, vec).main()
def fglm(I, from_ring, to_ring):
... | 37.116279 | 95 | 0.643797 | 464 | 3,192 | 4.30819 | 0.24569 | 0.048024 | 0.072036 | 0.102051 | 0.452226 | 0.415208 | 0.382691 | 0.366683 | 0.258629 | 0.258629 | 0 | 0.014421 | 0.239662 | 3,192 | 85 | 96 | 37.552941 | 0.80923 | 0.671679 | 0 | 0 | 0 | 0 | 0.055416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4add8cc9f3e45d7c32a6f558ec3d3dca3bae287a | 797 | py | Python | ferry/embed/umap_reduce.py | coursetable/ferry | f369b9588557c359af8589f2575a03493d6b08b6 | [
"MIT"
] | 4 | 2020-11-12T19:37:06.000Z | 2021-12-14T01:38:39.000Z | ferry/embed/umap_reduce.py | coursetable/ferry | f369b9588557c359af8589f2575a03493d6b08b6 | [
"MIT"
] | 96 | 2020-09-08T05:17:17.000Z | 2022-03-31T23:12:51.000Z | ferry/embed/umap_reduce.py | coursetable/ferry | f369b9588557c359af8589f2575a03493d6b08b6 | [
"MIT"
] | 2 | 2021-03-03T23:02:40.000Z | 2021-06-17T23:33:05.000Z | """
Uses UMAP (https://umap-learn.readthedocs.io/en/latest/index.html) to reduce course
embeddings to two dimensions for visualization.
"""
import pandas as pd
import umap
from sklearn.preprocessing import StandardScaler
from ferry import config
courses = pd.read_csv(
config.DATA_DIR / "course_embeddings/courses_... | 25.709677 | 83 | 0.771644 | 103 | 797 | 5.786408 | 0.475728 | 0.107383 | 0.065436 | 0.095638 | 0.219799 | 0.171141 | 0.171141 | 0.171141 | 0 | 0 | 0 | 0.008487 | 0.112923 | 797 | 30 | 84 | 26.566667 | 0.834512 | 0.190715 | 0 | 0 | 0 | 0 | 0.233909 | 0.202512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ade3cbddad00f03add91a88139ed29e5accd6ee | 1,359 | py | Python | flora_fauna.py | zhumakova/ClassProject | b869258706dae7c8e8ab723c61a45fd78e26494f | [
"MIT"
] | null | null | null | flora_fauna.py | zhumakova/ClassProject | b869258706dae7c8e8ab723c61a45fd78e26494f | [
"MIT"
] | null | null | null | flora_fauna.py | zhumakova/ClassProject | b869258706dae7c8e8ab723c61a45fd78e26494f | [
"MIT"
] | null | null | null | import inheritance
class Flora:
def __init__(self, name, lifespan, habitat, plant_type):
self.name = name
self.lifespan = lifespan
self.habitat = habitat
self.plant_type = plant_type
self.plant_size = 0
class Fauna:
def __init__(self, name):
self.name = name... | 23.033898 | 81 | 0.659308 | 167 | 1,359 | 5.065868 | 0.269461 | 0.056738 | 0.052009 | 0.070922 | 0.248227 | 0.177305 | 0.104019 | 0.104019 | 0 | 0 | 0 | 0.007648 | 0.230316 | 1,359 | 58 | 82 | 23.431034 | 0.801147 | 0.101545 | 0 | 0.21875 | 0 | 0 | 0.030503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.03125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ae1184aa79f99e44e7d8332e7ab1d618e3d5b6f | 16,307 | py | Python | search/controllers/simple/tests.py | ID2797370/arxiv-search | 889402e8eef9a2faaa8e900978cd27ff2784ce33 | [
"MIT"
] | 35 | 2018-12-18T02:51:09.000Z | 2022-03-30T04:43:20.000Z | search/controllers/simple/tests.py | ID2797370/arxiv-search | 889402e8eef9a2faaa8e900978cd27ff2784ce33 | [
"MIT"
] | 172 | 2018-02-02T14:35:11.000Z | 2018-12-04T15:35:30.000Z | search/controllers/simple/tests.py | ID2797370/arxiv-search | 889402e8eef9a2faaa8e900978cd27ff2784ce33 | [
"MIT"
] | 13 | 2019-01-10T22:01:48.000Z | 2021-11-05T12:25:08.000Z | """Tests for simple search controller, :mod:`search.controllers.simple`."""
from http import HTTPStatus
from unittest import TestCase, mock
from werkzeug.datastructures import MultiDict
from werkzeug.exceptions import InternalServerError, NotFound, BadRequest
from search.domain import SimpleQuery
from search.control... | 37.145786 | 79 | 0.612682 | 1,745 | 16,307 | 5.580516 | 0.150143 | 0.032348 | 0.042514 | 0.042719 | 0.711645 | 0.682789 | 0.658862 | 0.621586 | 0.565517 | 0.546005 | 0 | 0.004333 | 0.278224 | 16,307 | 438 | 80 | 37.230594 | 0.823025 | 0.125345 | 0 | 0.57764 | 0 | 0 | 0.228464 | 0.043144 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.086957 | false | 0.009317 | 0.024845 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ae16756e558b0122e3a75646fd26aece7eef166 | 19,270 | py | Python | kuri_wandering_robot/scripts/kuri_wandering_robot_executive_node.py | hcrlab/kuri_wandering_robot | 9c747bfe27e3c3450fd4717e26b866af2ef70149 | [
"BSD-3-Clause"
] | null | null | null | kuri_wandering_robot/scripts/kuri_wandering_robot_executive_node.py | hcrlab/kuri_wandering_robot | 9c747bfe27e3c3450fd4717e26b866af2ef70149 | [
"BSD-3-Clause"
] | null | null | null | kuri_wandering_robot/scripts/kuri_wandering_robot_executive_node.py | hcrlab/kuri_wandering_robot | 9c747bfe27e3c3450fd4717e26b866af2ef70149 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# ROS Libraries
import actionlib
from actionlib_msgs.msg import GoalStatus
from control_msgs.msg import JointTrajectoryControllerState, FollowJointTrajectoryAction, FollowJointTrajectoryGoal
from kuri_wandering_robot.msg import Power
from wandering_behavior.msg import WanderAction, WanderGoal
impo... | 47.69802 | 195 | 0.631915 | 2,263 | 19,270 | 5.150243 | 0.173663 | 0.019562 | 0.024453 | 0.010296 | 0.396654 | 0.318147 | 0.250965 | 0.221965 | 0.216474 | 0.206178 | 0 | 0.006861 | 0.296627 | 19,270 | 403 | 196 | 47.816377 | 0.853032 | 0.203788 | 0 | 0.30888 | 0 | 0 | 0.082435 | 0.027298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042471 | false | 0 | 0.069498 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ae27b557f549eb57426e50a39da725dc0fc0caa | 2,353 | py | Python | Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/test/test_rpmodel.py | Candida18/Job-Portal-with-Automated-Resume-Screening | 19d19464ad3d1714da856656753a4afdfe257b31 | [
"MIT"
] | 3 | 2021-03-29T19:21:08.000Z | 2021-12-31T09:30:11.000Z | Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/test/test_rpmodel.py | Candida18/Job-Portal-with-Automated-Resume-Screening | 19d19464ad3d1714da856656753a4afdfe257b31 | [
"MIT"
] | 1 | 2021-08-30T08:53:09.000Z | 2021-08-30T08:53:09.000Z | venv/Lib/site-packages/gensim/test/test_rpmodel.py | saritmaitra/nlp_ner_topic_modeling | 70914b4ae4cd7d3b9cb10776161132216394883c | [
"MIT"
] | 2 | 2022-01-15T05:36:58.000Z | 2022-02-08T15:25:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Automated tests for checking transformation algorithms (the models package).
"""
import logging
import unittest
import numpy as n... | 36.2 | 118 | 0.694008 | 299 | 2,353 | 5.381271 | 0.458194 | 0.039155 | 0.04972 | 0.07458 | 0.389683 | 0.389683 | 0.389683 | 0.347421 | 0.323182 | 0.323182 | 0 | 0.021693 | 0.19677 | 2,353 | 64 | 119 | 36.765625 | 0.82963 | 0.243094 | 0 | 0.333333 | 0 | 0 | 0.056186 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.102564 | false | 0 | 0.179487 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ae2c9c85b28962ffc9f80c3635fc6bd15adc317 | 3,306 | py | Python | playground/tianhaoz95/gan_getting_started/cgan_model.py | tianhaoz95/mangekyo | fd2b151538d0c15cca60e05a844baffcbe08e68c | [
"MIT"
] | null | null | null | playground/tianhaoz95/gan_getting_started/cgan_model.py | tianhaoz95/mangekyo | fd2b151538d0c15cca60e05a844baffcbe08e68c | [
"MIT"
] | 5 | 2020-09-25T00:43:18.000Z | 2020-10-10T03:59:39.000Z | playground/tianhaoz95/gan_getting_started/cgan_model.py | tianhaoz95/mangekyo | fd2b151538d0c15cca60e05a844baffcbe08e68c | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow import keras
class CondGeneratorModel(keras.Model):
def __init__(self):
super(CondGeneratorModel, self).__init__()
# Expand 7*7*128 features into a (7,7,128) tensor
self.dense_1 = keras.layers.Dense(7*7*256)
self.reshape_1 = keras.layers.Resh... | 38.44186 | 75 | 0.594374 | 492 | 3,306 | 3.827236 | 0.160569 | 0.128518 | 0.041423 | 0.018587 | 0.391397 | 0.300053 | 0.168879 | 0.155603 | 0.03505 | 0 | 0 | 0.079035 | 0.272837 | 3,306 | 85 | 76 | 38.894118 | 0.704243 | 0.111313 | 0 | 0.088235 | 0 | 0 | 0.006835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ae3be8ccc9773f8672701a5f6e37ff13253c5e3 | 13,115 | py | Python | ahd2fhir/utils/resource_handler.py | miracum/ahd2fhir | 0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f | [
"Apache-2.0"
] | 3 | 2021-11-23T16:24:21.000Z | 2022-03-30T07:59:03.000Z | ahd2fhir/utils/resource_handler.py | miracum/ahd2fhir | 0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f | [
"Apache-2.0"
] | 40 | 2021-05-27T14:26:33.000Z | 2022-03-29T14:29:33.000Z | ahd2fhir/utils/resource_handler.py | miracum/ahd2fhir | 0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f | [
"Apache-2.0"
] | 1 | 2021-06-30T11:11:01.000Z | 2021-06-30T11:11:01.000Z | import base64
import datetime
import logging
import os
import time
from typing import List, Tuple
import structlog
import tenacity
from averbis import Pipeline
from fhir.resources.bundle import Bundle
from fhir.resources.codeableconcept import CodeableConcept
from fhir.resources.composition import Composition, Composi... | 34.24282 | 88 | 0.619596 | 1,295 | 13,115 | 6.029344 | 0.200772 | 0.050077 | 0.017418 | 0.010374 | 0.08248 | 0.037654 | 0.030738 | 0.030738 | 0.011014 | 0 | 0 | 0.00781 | 0.306824 | 13,115 | 382 | 89 | 34.332461 | 0.851061 | 0.039192 | 0 | 0.091503 | 0 | 0 | 0.107274 | 0.022462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026144 | false | 0.003268 | 0.078431 | 0 | 0.137255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4ae60da63587ab2aea48c92c16464b071dd138fd | 828 | py | Python | julynter/oldcmd.py | dew-uff/julynter | f4657aba4fa3e17af2cd241f0c3170b76df7c57c | [
"BSD-3-Clause"
] | 9 | 2020-07-13T23:56:04.000Z | 2021-11-02T18:42:07.000Z | julynter/oldcmd.py | dew-uff/julynter | f4657aba4fa3e17af2cd241f0c3170b76df7c57c | [
"BSD-3-Clause"
] | 8 | 2021-07-14T15:33:57.000Z | 2022-02-27T06:45:57.000Z | julynter/oldcmd.py | dew-uff/julynter | f4657aba4fa3e17af2cd241f0c3170b76df7c57c | [
"BSD-3-Clause"
] | null | null | null | """Define commands for Python 2.7"""
import argparse
import traceback
from . import util
from .cmd import run
from .cmd import extractpipenv
def main():
"""Main function"""
print("This version is not supported! It has limitted analysis features")
parser = argparse.ArgumentParser(description='Analyze Jupyt... | 28.551724 | 77 | 0.657005 | 100 | 828 | 5.35 | 0.58 | 0.028037 | 0.048598 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.246377 | 828 | 28 | 78 | 29.571429 | 0.850962 | 0.088164 | 0 | 0.086957 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.26087 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aea193e4b6512fd0f264e141522245728635ebf | 1,273 | py | Python | test/linux/gyptest-ldflags-from-environment.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 77 | 2018-07-01T15:55:34.000Z | 2022-03-30T09:16:54.000Z | test/linux/gyptest-ldflags-from-environment.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | test/linux/gyptest-ldflags-from-environment.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 53 | 2018-04-13T12:06:06.000Z | 2022-03-25T13:54:38.000Z | #!/usr/bin/env python
# Copyright (c) 2017 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies the use of linker flags in environment variables.
In this test, gyp and build both run in same local environment.
"""
import ... | 27.673913 | 73 | 0.660644 | 170 | 1,273 | 4.894118 | 0.570588 | 0.02524 | 0.036058 | 0.040865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007737 | 0.187745 | 1,273 | 45 | 74 | 28.288889 | 0.796905 | 0.230951 | 0 | 0.08 | 0 | 0 | 0.240702 | 0.080579 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.04 | false | 0.04 | 0.16 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aeb6ef2b04d214ccf1780ce3742b6d40d27fe53 | 2,572 | py | Python | binary_tree/m_post_order_traversal.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | binary_tree/m_post_order_traversal.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | binary_tree/m_post_order_traversal.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | ######################################################################
# LeetCode Problem Number : 145
# Difficulty Level : Medium
# URL : https://leetcode.com/problems/binary-tree-postorder-traversal/
######################################################################
from binary_search_tree.tree_node import TreeNo... | 28.898876 | 70 | 0.47395 | 274 | 2,572 | 4.437956 | 0.368613 | 0.029605 | 0.039474 | 0.046875 | 0.129934 | 0.129934 | 0.129934 | 0.088816 | 0.060855 | 0 | 0 | 0.017024 | 0.383359 | 2,572 | 88 | 71 | 29.227273 | 0.749685 | 0.077372 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.027778 | 0 | 0.305556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aecb09acc6ad3252011c93a09793cb698638ff1 | 18,290 | py | Python | dokuwiki.py | luminisward/python-dokuwiki | 329862e6c91a79b2ad9f0b7616f7591459f2d4fd | [
"MIT"
] | null | null | null | dokuwiki.py | luminisward/python-dokuwiki | 329862e6c91a79b2ad9f0b7616f7591459f2d4fd | [
"MIT"
] | null | null | null | dokuwiki.py | luminisward/python-dokuwiki | 329862e6c91a79b2ad9f0b7616f7591459f2d4fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""This python module aims to manage
`DokuWiki <https://www.dokuwiki.org/dokuwiki>`_ wikis by using the
provided `XML-RPC API <https://www.dokuwiki.org/devel:xmlrpc>`_. It is
compatible with python2.7 and python3+.
Installation
------------
It is on `PyPi <https://pypi.python.org/pypi/dokuwik... | 37.326531 | 89 | 0.601203 | 2,132 | 18,290 | 5.10272 | 0.211069 | 0.030885 | 0.035297 | 0.03493 | 0.37145 | 0.305819 | 0.270981 | 0.232926 | 0.218954 | 0.200202 | 0 | 0.008495 | 0.279169 | 18,290 | 489 | 90 | 37.402863 | 0.816672 | 0.346419 | 0 | 0.292683 | 0 | 0 | 0.098791 | 0.027156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182927 | false | 0.028455 | 0.04878 | 0 | 0.406504 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aed13aa20c6ab391e3ffb7e313d6df343ae7084 | 1,449 | py | Python | setup.py | lvgig/test-aide | 60a9420062dd778ce9dad43993dd8ab4f300ac4e | [
"BSD-3-Clause"
] | 2 | 2021-11-08T08:41:08.000Z | 2021-11-08T09:11:24.000Z | setup.py | lvgig/test-aide | 60a9420062dd778ce9dad43993dd8ab4f300ac4e | [
"BSD-3-Clause"
] | null | null | null | setup.py | lvgig/test-aide | 60a9420062dd778ce9dad43993dd8ab4f300ac4e | [
"BSD-3-Clause"
] | null | null | null | import setuptools
import re
with open("README.md", "r") as fh:
long_description = fh.read()
# get version from _version.py file, from below
# https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
VERSION_FILE = "test_aide/_version.py"
version_file_str = open(VERSION_FILE, "r... | 32.2 | 94 | 0.673568 | 183 | 1,449 | 5.169399 | 0.546448 | 0.05814 | 0.132135 | 0.109937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013502 | 0.182195 | 1,449 | 44 | 95 | 32.931818 | 0.78481 | 0.095238 | 0 | 0 | 0 | 0 | 0.376147 | 0.038226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | 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 |
4aed5c4d1497088a992494a4109f38cb6b27e78e | 510 | py | Python | examples/pylab_examples/matshow.py | jbbrokaw/matplotlib | 86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427 | [
"MIT",
"BSD-3-Clause"
] | 16 | 2016-06-14T19:45:35.000Z | 2020-11-30T19:02:58.000Z | lib/mpl_examples/pylab_examples/matshow.py | yingkailiang/matplotlib | 255a79b106c98c1904489afe6a754e4d943179d6 | [
"MIT",
"BSD-3-Clause"
] | 7 | 2015-05-08T19:36:25.000Z | 2015-06-30T15:32:17.000Z | lib/mpl_examples/pylab_examples/matshow.py | yingkailiang/matplotlib | 255a79b106c98c1904489afe6a754e4d943179d6 | [
"MIT",
"BSD-3-Clause"
] | 14 | 2015-10-05T04:15:46.000Z | 2020-06-11T18:06:02.000Z | """Simple matshow() example."""
from matplotlib.pylab import *
def samplemat(dims):
"""Make a matrix with all zeros and increasing elements on the diagonal"""
aa = zeros(dims)
for i in range(min(dims)):
aa[i, i] = i
return aa
# Display 2 matrices of different sizes
dimlist = [(12, 12), (15, ... | 22.173913 | 78 | 0.670588 | 78 | 510 | 4.384615 | 0.692308 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.207843 | 510 | 22 | 79 | 23.181818 | 0.806931 | 0.417647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aee10083d95f61f20711f9c9064a70b35ea7926 | 4,445 | py | Python | setup.py | HeyLifeHD/rp-bp | 9c59b1bc0267400747477467c45f96364d5528e1 | [
"MIT"
] | 6 | 2016-05-16T18:52:41.000Z | 2021-12-31T06:27:29.000Z | setup.py | HeyLifeHD/rp-bp | 9c59b1bc0267400747477467c45f96364d5528e1 | [
"MIT"
] | 110 | 2016-06-22T13:24:39.000Z | 2022-02-07T09:29:14.000Z | setup.py | HeyLifeHD/rp-bp | 9c59b1bc0267400747477467c45f96364d5528e1 | [
"MIT"
] | 5 | 2017-05-22T12:21:51.000Z | 2022-02-06T10:32:56.000Z | #! /usr/bin/env python3
import importlib
import logging
import os
import subprocess
from setuptools import setup
from setuptools.command.install import install as install
from setuptools.command.develop import develop as develop
logger = logging.getLogger(__name__)
stan_model_files = [
os.path.join("nonperiod... | 29.633333 | 80 | 0.64027 | 532 | 4,445 | 5.201128 | 0.240602 | 0.036863 | 0.050596 | 0.045537 | 0.559812 | 0.549331 | 0.549331 | 0.438742 | 0.361402 | 0.361402 | 0 | 0.002965 | 0.24117 | 4,445 | 149 | 81 | 29.832215 | 0.817373 | 0.031271 | 0 | 0.294118 | 0 | 0 | 0.17892 | 0.057469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aee208ed627e09e244d2f3b0703567eec906294 | 9,909 | py | Python | utils/data_utils.py | BorisMansencal/quickNAT_pytorch | 1853afbe409f2fec6db298c70a3dd0ae088091f0 | [
"MIT"
] | null | null | null | utils/data_utils.py | BorisMansencal/quickNAT_pytorch | 1853afbe409f2fec6db298c70a3dd0ae088091f0 | [
"MIT"
] | null | null | null | utils/data_utils.py | BorisMansencal/quickNAT_pytorch | 1853afbe409f2fec6db298c70a3dd0ae088091f0 | [
"MIT"
] | null | null | null | import os
import h5py
import nibabel as nb
import numpy as np
import torch
import torch.utils.data as data
from torchvision import transforms
import utils.preprocessor as preprocessor
# transform_train = transforms.Compose([
# transforms.RandomCrop(200, padding=56),
# transforms.ToTensor(),
# ])
class Imdb... | 41.460251 | 138 | 0.631749 | 1,304 | 9,909 | 4.566718 | 0.148006 | 0.029387 | 0.038623 | 0.039966 | 0.645676 | 0.595466 | 0.536188 | 0.515701 | 0.475063 | 0.45827 | 0 | 0.006042 | 0.265113 | 9,909 | 238 | 139 | 41.634454 | 0.811728 | 0.221617 | 0 | 0.305195 | 0 | 0 | 0.073052 | 0.006175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.051948 | 0.006494 | 0.207792 | 0.019481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af2582d62d2fd8906d1b6bfaa4cb05ec6512096 | 1,245 | py | Python | playground/check_equal.py | INK-USC/hypter | 732551e1e717b66ad26ba538593ed184957ecdea | [
"MIT"
] | 11 | 2021-07-16T15:49:39.000Z | 2021-12-17T14:46:25.000Z | playground/check_equal.py | INK-USC/hypter | 732551e1e717b66ad26ba538593ed184957ecdea | [
"MIT"
] | null | null | null | playground/check_equal.py | INK-USC/hypter | 732551e1e717b66ad26ba538593ed184957ecdea | [
"MIT"
] | 1 | 2021-08-04T07:21:02.000Z | 2021-08-04T07:21:02.000Z | import json
d1 = {}
with open("/home/qinyuan/zs/out/bart-large-with-description-grouped-1e-5-outerbsz4-innerbsz32-adapterdim4-unfreeze-dec29/test_predictions.jsonl") as fin:
for line in fin:
d = json.loads(line)
d1[d["id"]] = d["output"][0]["answer"]
d2 = {}
dq = {}
with open("/home/qinyuan/zs/out... | 27.065217 | 153 | 0.553414 | 192 | 1,245 | 3.567708 | 0.302083 | 0.043796 | 0.040876 | 0.083212 | 0.471533 | 0.364964 | 0.315328 | 0.254015 | 0.157664 | 0.157664 | 0 | 0.056156 | 0.256225 | 1,245 | 45 | 154 | 27.666667 | 0.683585 | 0 | 0 | 0.277778 | 0 | 0.055556 | 0.287208 | 0.233307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 |
4af386aea4c2e177a4c714ca6af54611fc4df7d6 | 673 | py | Python | exercicios-Python/ex083.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex083.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex083.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | # Forma sem bugs
expressao = (str(input('Digite a expressão: ')))
pilhaParenteses = []
for v in expressao:
if v == '(':
pilhaParenteses.append('(')
elif v == ')':
if len(pilhaParenteses) > 0:
pilhaParenteses.pop()
else:
pilhaParenteses.append(')')
bre... | 28.041667 | 52 | 0.601783 | 74 | 673 | 5.472973 | 0.391892 | 0.098765 | 0.079012 | 0.103704 | 0.325926 | 0.325926 | 0.182716 | 0 | 0 | 0 | 0 | 0.003891 | 0.236256 | 673 | 23 | 53 | 29.26087 | 0.784047 | 0.313522 | 0 | 0.133333 | 0 | 0 | 0.216336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af4341b8d96ec6fde46ee878b92d71af06be79a | 1,607 | py | Python | src/inspectortodo/todo.py | code-acrobat/InspectorTodo | 342bd0840d4f087cf2914f906ebc69bf2b21d9ce | [
"Apache-2.0"
] | 8 | 2018-05-28T08:41:01.000Z | 2022-03-02T08:54:54.000Z | src/inspectortodo/todo.py | code-acrobat/InspectorTodo | 342bd0840d4f087cf2914f906ebc69bf2b21d9ce | [
"Apache-2.0"
] | 9 | 2018-08-04T20:16:46.000Z | 2022-03-08T14:29:47.000Z | src/inspectortodo/todo.py | code-acrobat/InspectorTodo | 342bd0840d4f087cf2914f906ebc69bf2b21d9ce | [
"Apache-2.0"
] | 3 | 2018-05-29T08:00:29.000Z | 2022-02-23T11:02:58.000Z | # Copyright 2018 TNG Technology Consulting GmbH, Unterföhring, Germany
# Licensed under the Apache License, Version 2.0 - see LICENSE.md in project root directory
import logging
from xml.sax.saxutils import escape
log = logging.getLogger()
class Todo:
def __init__(self, file_path, line_number, content):
... | 34.934783 | 118 | 0.632856 | 217 | 1,607 | 4.474654 | 0.317972 | 0.090628 | 0.07415 | 0.053553 | 0.266735 | 0.222451 | 0.222451 | 0.222451 | 0.222451 | 0.146241 | 0 | 0.00489 | 0.236465 | 1,607 | 45 | 119 | 35.711111 | 0.786471 | 0.09832 | 0 | 0.125 | 0 | 0 | 0.148686 | 0.018672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.03125 | 0.34375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af5891fa135d7fd02c534a37ddba2e1d64a9e74 | 9,595 | py | Python | generators.py | FabLabUTFSM/fusm_usage_report | 92b18ad81f97482d6e8428b6c7cbdfc23d0ca440 | [
"MIT"
] | null | null | null | generators.py | FabLabUTFSM/fusm_usage_report | 92b18ad81f97482d6e8428b6c7cbdfc23d0ca440 | [
"MIT"
] | null | null | null | generators.py | FabLabUTFSM/fusm_usage_report | 92b18ad81f97482d6e8428b6c7cbdfc23d0ca440 | [
"MIT"
] | null | null | null | import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
import plotly.express as px
from plotly.subplots import make_subplots
import pandas as pd
import math
from datetime import datetime, time
from utils import MONTH_NAMES, month_range
def section(title, content, gray=Fa... | 41.004274 | 163 | 0.619906 | 1,256 | 9,595 | 4.623408 | 0.234873 | 0.03513 | 0.035819 | 0.045462 | 0.433615 | 0.382125 | 0.293095 | 0.256242 | 0.242122 | 0.193215 | 0 | 0.009962 | 0.236269 | 9,595 | 234 | 164 | 41.004274 | 0.782478 | 0.010005 | 0 | 0.359116 | 0 | 0.005525 | 0.16219 | 0.010144 | 0 | 0 | 0 | 0.004274 | 0 | 1 | 0.104972 | false | 0.005525 | 0.049724 | 0.044199 | 0.254144 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af6882f3b0de2bc194a5844807fd94589dcf8e9 | 119,159 | py | Python | Lib/fontTools/designspaceLib/__init__.py | guorenxi/fonttools | cefb41e6c261eeff0062a7b4017061982ed87aa7 | [
"Apache-2.0",
"MIT"
] | null | null | null | Lib/fontTools/designspaceLib/__init__.py | guorenxi/fonttools | cefb41e6c261eeff0062a7b4017061982ed87aa7 | [
"Apache-2.0",
"MIT"
] | null | null | null | Lib/fontTools/designspaceLib/__init__.py | guorenxi/fonttools | cefb41e6c261eeff0062a7b4017061982ed87aa7 | [
"Apache-2.0",
"MIT"
] | null | null | null | from __future__ import annotations
import collections
import copy
import itertools
import math
import os
import posixpath
from io import BytesIO, StringIO
from textwrap import indent
from typing import Any, Dict, List, MutableMapping, Optional, Tuple, Union
from fontTools.misc import etree as ET
from fontTools.misc i... | 40.406579 | 147 | 0.612266 | 11,854 | 119,159 | 6.130251 | 0.096676 | 0.006949 | 0.01189 | 0.006743 | 0.295729 | 0.237092 | 0.203845 | 0.177066 | 0.155213 | 0.139897 | 0 | 0.005225 | 0.294934 | 119,159 | 2,948 | 148 | 40.420285 | 0.859561 | 0.168514 | 0 | 0.272568 | 0 | 0 | 0.073511 | 0.004484 | 0 | 0 | 0 | 0 | 0.001747 | 1 | 0.075131 | false | 0 | 0.009901 | 0.006407 | 0.175306 | 0.001165 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af82655248e89ae648896a2197ee327a71bd7a6 | 3,230 | py | Python | ax/models/torch/posterior_mean.py | dme65/Ax | c460eab90d464df87e6478b5765fd02fb5126adb | [
"MIT"
] | 1 | 2021-01-11T18:16:28.000Z | 2021-01-11T18:16:28.000Z | ax/models/torch/posterior_mean.py | dme65/Ax | c460eab90d464df87e6478b5765fd02fb5126adb | [
"MIT"
] | null | null | null | ax/models/torch/posterior_mean.py | dme65/Ax | c460eab90d464df87e6478b5765fd02fb5126adb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, Optional, Tuple
import torch
from botorch.acquisition.acquisition import AcquisitionFunction
... | 41.948052 | 84 | 0.728793 | 410 | 3,230 | 5.604878 | 0.37561 | 0.038294 | 0.038294 | 0.024369 | 0.069626 | 0.069626 | 0.069626 | 0.069626 | 0.069626 | 0.069626 | 0 | 0.001566 | 0.208978 | 3,230 | 76 | 85 | 42.5 | 0.897847 | 0.419195 | 0 | 0.047619 | 0 | 0 | 0.035255 | 0.012871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.261905 | 0 | 0.309524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af8cc653e14393ff950e095171d139b4a633baf | 2,240 | py | Python | src/drivers/velodyne_nodes/test/velodyne_node.test.py | fanyu2021/fyAutowareAuto | 073661c0634de671ff01bda8a316a5ce10c96ca9 | [
"Apache-2.0"
] | null | null | null | src/drivers/velodyne_nodes/test/velodyne_node.test.py | fanyu2021/fyAutowareAuto | 073661c0634de671ff01bda8a316a5ce10c96ca9 | [
"Apache-2.0"
] | null | null | null | src/drivers/velodyne_nodes/test/velodyne_node.test.py | fanyu2021/fyAutowareAuto | 073661c0634de671ff01bda8a316a5ce10c96ca9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 the Autoware Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 32 | 89 | 0.692857 | 284 | 2,240 | 5.235915 | 0.535211 | 0.075319 | 0.034297 | 0.02152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015571 | 0.225893 | 2,240 | 69 | 90 | 32.463768 | 0.841984 | 0.350446 | 0 | 0.047619 | 0 | 0 | 0.130919 | 0.073816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.119048 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4af90b86c50a3ccef625f31f883eb2072c6ed40c | 1,425 | py | Python | example.py | manhcuogntin4/Color-transfer | 14b139efa86bb49a07a118c905d9d82cd7ad10d3 | [
"MIT"
] | null | null | null | example.py | manhcuogntin4/Color-transfer | 14b139efa86bb49a07a118c905d9d82cd7ad10d3 | [
"MIT"
] | null | null | null | example.py | manhcuogntin4/Color-transfer | 14b139efa86bb49a07a118c905d9d82cd7ad10d3 | [
"MIT"
] | 1 | 2020-04-13T13:17:58.000Z | 2020-04-13T13:17:58.000Z | # USAGE
# python example.py --source images/ocean_sunset.jpg --target images/ocean_day.jpg
# import the necessary packages
from color_transfer import color_transfer
import numpy as np
import argparse
import cv2
def show_image(title, image, width = 300):
# resize the image to have a constant width, just to
# make di... | 30.978261 | 82 | 0.733333 | 218 | 1,425 | 4.729358 | 0.426606 | 0.034918 | 0.037827 | 0.037827 | 0.048497 | 0.048497 | 0 | 0 | 0 | 0 | 0 | 0.011523 | 0.147368 | 1,425 | 46 | 83 | 30.978261 | 0.837037 | 0.338947 | 0 | 0 | 0 | 0 | 0.168999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4afa3809e5300d1250cfab7d62f27391e130c231 | 9,060 | py | Python | scripts/registration_pipeline.py | heethesh/Argoverse-HDMap-Update | 61e9bf965a1fa7a0c74a2671457a2778d849bfe5 | [
"Apache-2.0"
] | null | null | null | scripts/registration_pipeline.py | heethesh/Argoverse-HDMap-Update | 61e9bf965a1fa7a0c74a2671457a2778d849bfe5 | [
"Apache-2.0"
] | null | null | null | scripts/registration_pipeline.py | heethesh/Argoverse-HDMap-Update | 61e9bf965a1fa7a0c74a2671457a2778d849bfe5 | [
"Apache-2.0"
] | 1 | 2020-09-08T04:32:21.000Z | 2020-09-08T04:32:21.000Z | import copy
import numpy as np
import open3d as o3d
from tqdm import tqdm
from scipy import stats
import utils_o3d as utils
def remove_ground_plane(pcd, z_thresh=-2.7):
cropped = copy.deepcopy(pcd)
cropped_points = np.array(cropped.points)
cropped_points = cropped_points[cropped_points[:, -1] > z_thresh... | 37.90795 | 119 | 0.703422 | 1,213 | 9,060 | 5.009068 | 0.177247 | 0.021725 | 0.01975 | 0.025675 | 0.276498 | 0.231402 | 0.193384 | 0.176103 | 0.142857 | 0.142857 | 0 | 0.037027 | 0.177263 | 9,060 | 238 | 120 | 38.067227 | 0.778106 | 0.042715 | 0 | 0.096386 | 0 | 0.006024 | 0.113253 | 0.006119 | 0 | 0 | 0 | 0 | 0.006024 | 1 | 0.066265 | false | 0 | 0.036145 | 0 | 0.162651 | 0.168675 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4afb20e82e1f9cc5d13cde9492b76ec1886669d1 | 36,825 | py | Python | neo4j/aio/__init__.py | michaelcraige/neo4j-python-driver | 27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a | [
"Apache-2.0"
] | 1 | 2021-05-18T14:11:39.000Z | 2021-05-18T14:11:39.000Z | neo4j/aio/__init__.py | michaelcraige/neo4j-python-driver | 27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a | [
"Apache-2.0"
] | null | null | null | neo4j/aio/__init__.py | michaelcraige/neo4j-python-driver | 27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright (c) 2002-2019 "Neo4j,"
# Neo4j Sweden AB [http://neo4j.com]
#
# This file is part of Neo4j.
#
# 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 L... | 37.34787 | 107 | 0.609993 | 4,289 | 36,825 | 5.098624 | 0.155514 | 0.032376 | 0.015365 | 0.00535 | 0.258643 | 0.204957 | 0.154289 | 0.14272 | 0.11135 | 0.088668 | 0 | 0.006414 | 0.314134 | 36,825 | 985 | 108 | 37.385787 | 0.859405 | 0.182675 | 0 | 0.299213 | 0 | 0 | 0.059288 | 0.000937 | 0 | 0 | 0 | 0.003046 | 0.011811 | 1 | 0.055118 | false | 0.007874 | 0.03937 | 0.011811 | 0.198819 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4afb4cc5b7dcd90ef9395d1a97095b2b0c885c49 | 1,831 | py | Python | python/setup.py | bubriks/feature-store-api | fa286f257b87a09c081e86811b853b3e564ce197 | [
"Apache-2.0"
] | 49 | 2020-09-07T17:43:11.000Z | 2021-12-28T10:41:03.000Z | python/setup.py | bubriks/feature-store-api | fa286f257b87a09c081e86811b853b3e564ce197 | [
"Apache-2.0"
] | 132 | 2020-08-06T12:12:09.000Z | 2022-03-29T16:28:25.000Z | python/setup.py | bubriks/feature-store-api | fa286f257b87a09c081e86811b853b3e564ce197 | [
"Apache-2.0"
] | 35 | 2020-08-06T12:09:02.000Z | 2022-01-10T08:50:45.000Z | import os
import imp
from setuptools import setup, find_packages
__version__ = imp.load_source(
"hsfs.version", os.path.join("hsfs", "version.py")
).__version__
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="hsfs",
version=__version__,
install_... | 28.609375 | 107 | 0.589842 | 193 | 1,831 | 5.430052 | 0.647668 | 0.031489 | 0.019084 | 0.032443 | 0.085878 | 0.085878 | 0.085878 | 0.085878 | 0 | 0 | 0 | 0.018355 | 0.256144 | 1,831 | 63 | 108 | 29.063492 | 0.751101 | 0 | 0 | 0.035088 | 0 | 0.017544 | 0.462043 | 0.025123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.052632 | 0.017544 | 0.087719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aff2d34953f2e2be532801520dad5c0dc9065e8 | 15,609 | py | Python | autotest/ogr/ogr_gpx.py | HongqiangWei/gdal | f7c427926438cc39d31e4459fa6401321f8e62f0 | [
"MIT"
] | 3 | 2016-07-25T16:30:13.000Z | 2022-02-11T11:09:08.000Z | autotest/ogr/ogr_gpx.py | HongqiangWei/gdal | f7c427926438cc39d31e4459fa6401321f8e62f0 | [
"MIT"
] | null | null | null | autotest/ogr/ogr_gpx.py | HongqiangWei/gdal | f7c427926438cc39d31e4459fa6401321f8e62f0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Test GPX driver functionality.
# Author: Even Rouault <even dot rouault at mines dash paris dot org>
#
###########################################################... | 27.19338 | 120 | 0.599206 | 1,870 | 15,609 | 4.826203 | 0.163636 | 0.049972 | 0.059058 | 0.034127 | 0.71036 | 0.677452 | 0.659058 | 0.635125 | 0.606427 | 0.544155 | 0 | 0.016851 | 0.235825 | 15,609 | 573 | 121 | 27.240838 | 0.739772 | 0.112627 | 0 | 0.661111 | 0 | 0 | 0.118118 | 0.003421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.011111 | 0.022222 | 0 | 0.194444 | 0.002778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4aff7e3e13035260de4953a62861c9d0ec4fffb5 | 22,377 | py | Python | mwp_solver/models/sausolver.py | max-stack/MWP-SS-Metrics | 01268f2d6da716596216b04de4197e345b96c219 | [
"MIT"
] | null | null | null | mwp_solver/models/sausolver.py | max-stack/MWP-SS-Metrics | 01268f2d6da716596216b04de4197e345b96c219 | [
"MIT"
] | null | null | null | mwp_solver/models/sausolver.py | max-stack/MWP-SS-Metrics | 01268f2d6da716596216b04de4197e345b96c219 | [
"MIT"
] | null | null | null | # Code Taken from https://github.com/LYH-YF/MWPToolkit
# -*- encoding: utf-8 -*-
# @Author: Yihuai Lan
# @Time: 2021/08/21 04:59:55
# @File: sausolver.py
import random
import torch
from torch import nn
import copy
from module.Encoder.rnn_encoder import BasicRNNEncoder
from module.Embedder.basic_embedder import BasicE... | 48.751634 | 154 | 0.591634 | 2,696 | 22,377 | 4.614614 | 0.122033 | 0.024114 | 0.022506 | 0.013021 | 0.44924 | 0.404469 | 0.328109 | 0.286151 | 0.246443 | 0.233583 | 0 | 0.011242 | 0.316262 | 22,377 | 458 | 155 | 48.858079 | 0.801895 | 0.126693 | 0 | 0.235474 | 0 | 0 | 0.011105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027523 | false | 0.003058 | 0.042813 | 0 | 0.100917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4affd0e7b393c14db6c40989539fbd205424aa8e | 8,128 | py | Python | rosetta/tests/test_parallel.py | rafacarrascosa/rosetta | d5a964756b4f51e1032df40ee24f18398e3193b7 | [
"BSD-3-Clause"
] | 1 | 2015-01-21T06:00:46.000Z | 2015-01-21T06:00:46.000Z | rosetta/tests/test_parallel.py | rafacarrascosa/rosetta | d5a964756b4f51e1032df40ee24f18398e3193b7 | [
"BSD-3-Clause"
] | null | null | null | rosetta/tests/test_parallel.py | rafacarrascosa/rosetta | d5a964756b4f51e1032df40ee24f18398e3193b7 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from functools import partial
import pandas as pd
from pandas.util.testing import assert_frame_equal, assert_series_equal
import numpy as np
import threading
from StringIO import StringIO
from rosetta.parallel import parallel_easy, pandas_easy
from rosetta.parallel.threading_easy import threading_easy... | 33.866667 | 79 | 0.637549 | 1,071 | 8,128 | 4.631186 | 0.146592 | 0.075403 | 0.094355 | 0.079839 | 0.672177 | 0.626815 | 0.575605 | 0.546774 | 0.534274 | 0.436492 | 0 | 0.032963 | 0.246063 | 8,128 | 239 | 80 | 34.008368 | 0.776436 | 0.061024 | 0 | 0.422619 | 0 | 0 | 0.017021 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.172619 | false | 0.005952 | 0.053571 | 0.017857 | 0.279762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0084518a26b1bf65b7efbbe0be36485aedb9e2 | 1,165 | py | Python | thecsvparser.py | rbago/CEBD1160_Class4_hwk | 1012c81663dc60ea9d139d96f368f8289d4b363e | [
"MIT"
] | null | null | null | thecsvparser.py | rbago/CEBD1160_Class4_hwk | 1012c81663dc60ea9d139d96f368f8289d4b363e | [
"MIT"
] | null | null | null | thecsvparser.py | rbago/CEBD1160_Class4_hwk | 1012c81663dc60ea9d139d96f368f8289d4b363e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import numpy as np
import pandas as pd
os.getcwd()
# Request for the filename
# Current version of this script works only with TSV type files
mainFilename = input('Input your file name (diabetes.tab.txt or housing.data.txt): ')
print()
# To create proper dataframe, transforming it wi... | 25.326087 | 85 | 0.758798 | 163 | 1,165 | 5.411043 | 0.546012 | 0.013605 | 0.052154 | 0.079365 | 0.108844 | 0.108844 | 0.108844 | 0.108844 | 0.108844 | 0.108844 | 0 | 0.002006 | 0.144206 | 1,165 | 45 | 86 | 25.888889 | 0.882648 | 0.337339 | 0 | 0.166667 | 0 | 0 | 0.159895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.291667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0219367d5f8fd8173529e4b59eaffa00517b4a | 3,057 | py | Python | donkeycar/tests/test_web_socket.py | wenxichen/donkeycar | d70ee60d35d7e0e004b885e6f6062fb51916dad1 | [
"MIT"
] | 12 | 2019-06-28T21:58:01.000Z | 2021-01-08T14:25:12.000Z | donkeycar/tests/test_web_socket.py | wenxichen/donkeycar | d70ee60d35d7e0e004b885e6f6062fb51916dad1 | [
"MIT"
] | 6 | 2020-11-07T19:27:10.000Z | 2021-01-23T22:47:37.000Z | donkeycar/tests/test_web_socket.py | Heavy02011/donkeycar | 5a23b0fee170596e29c80826c3db0d3a4c4c5392 | [
"MIT"
] | 9 | 2019-07-13T10:12:31.000Z | 2020-07-27T10:27:03.000Z |
from donkeycar.parts.web_controller.web import WebSocketCalibrateAPI
from functools import partial
from tornado import testing
import tornado.websocket
import tornado.web
import tornado.ioloop
import json
from unittest.mock import Mock
from donkeycar.parts.actuator import PWMSteering, PWMThrottle
class WebSocketCal... | 34.348315 | 80 | 0.682368 | 406 | 3,057 | 4.91133 | 0.214286 | 0.070211 | 0.108325 | 0.15346 | 0.695587 | 0.683551 | 0.654463 | 0.599298 | 0.599298 | 0.553661 | 0 | 0.013234 | 0.209028 | 3,057 | 88 | 81 | 34.738636 | 0.811414 | 0.077854 | 0 | 0.413793 | 0 | 0 | 0.076565 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 1 | 0.103448 | false | 0 | 0.155172 | 0.017241 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab02c90f464edb9291e3105cd07e5c1bd2aaec14 | 12,497 | py | Python | packages/google/cloud/logging/client.py | rjcuevas/Email-Frontend-AngularJS- | 753dbd190582ed953058c9e15c2be920716c7985 | [
"MIT"
] | null | null | null | packages/google/cloud/logging/client.py | rjcuevas/Email-Frontend-AngularJS- | 753dbd190582ed953058c9e15c2be920716c7985 | [
"MIT"
] | null | null | null | packages/google/cloud/logging/client.py | rjcuevas/Email-Frontend-AngularJS- | 753dbd190582ed953058c9e15c2be920716c7985 | [
"MIT"
] | null | null | null | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 41.244224 | 96 | 0.634632 | 1,512 | 12,497 | 5.143519 | 0.164683 | 0.041018 | 0.055548 | 0.036775 | 0.489263 | 0.45956 | 0.359907 | 0.336891 | 0.307059 | 0.307059 | 0 | 0.005532 | 0.29127 | 12,497 | 302 | 97 | 41.380795 | 0.87253 | 0.545251 | 0 | 0.151515 | 0 | 0 | 0.013931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10101 | false | 0 | 0.20202 | 0 | 0.474747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab046a08c26c0e97b20f9dd2cde86b39dde408b7 | 1,468 | py | Python | tests/test_core/test_graph_objs/test_instantiate_hierarchy.py | wwwidonja/changed_plotly | 1bda35a438539a97c84a3ab3952e95e8848467bd | [
"MIT"
] | null | null | null | tests/test_core/test_graph_objs/test_instantiate_hierarchy.py | wwwidonja/changed_plotly | 1bda35a438539a97c84a3ab3952e95e8848467bd | [
"MIT"
] | null | null | null | tests/test_core/test_graph_objs/test_instantiate_hierarchy.py | wwwidonja/changed_plotly | 1bda35a438539a97c84a3ab3952e95e8848467bd | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from unittest import TestCase
import os
import importlib
import inspect
from plotly.basedatatypes import BasePlotlyType, BaseFigure
datatypes_root = "new_plotly/graph_objs"
datatype_modules = [
dirpath.replace("/", ".")
for dirpath, _, _ in os.walk(datatypes_root)
if... | 34.952381 | 87 | 0.557221 | 136 | 1,468 | 5.757353 | 0.470588 | 0.057471 | 0.03576 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001063 | 0.358992 | 1,468 | 41 | 88 | 35.804878 | 0.831031 | 0 | 0 | 0 | 0 | 0 | 0.102861 | 0.038147 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.027778 | false | 0 | 0.194444 | 0 | 0.25 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab04f30d858425d5d5583ebc3b9cb9eb5ad46681 | 4,184 | py | Python | mycli/packages/special/main.py | lyrl/mycli | d62eefdc819a11ecdb97d93dd7ad1922d28a3795 | [
"BSD-3-Clause"
] | 10,997 | 2015-07-27T06:59:04.000Z | 2022-03-31T07:49:26.000Z | mycli/packages/special/main.py | lyrl/mycli | d62eefdc819a11ecdb97d93dd7ad1922d28a3795 | [
"BSD-3-Clause"
] | 937 | 2015-07-29T09:25:30.000Z | 2022-03-30T23:54:03.000Z | mycli/packages/special/main.py | lyrl/mycli | d62eefdc819a11ecdb97d93dd7ad1922d28a3795 | [
"BSD-3-Clause"
] | 799 | 2015-07-27T13:13:49.000Z | 2022-03-29T21:24:39.000Z | import logging
from collections import namedtuple
from . import export
log = logging.getLogger(__name__)
NO_QUERY = 0
PARSED_QUERY = 1
RAW_QUERY = 2
SpecialCommand = namedtuple('SpecialCommand',
['handler', 'command', 'shortcut', 'description', 'arg_type', 'hidden',
'case_sensitive'])
COMMANDS ... | 34.578512 | 91 | 0.649618 | 507 | 4,184 | 5.207101 | 0.242604 | 0.039773 | 0.068939 | 0.037121 | 0.301515 | 0.259091 | 0.235985 | 0.198485 | 0.178788 | 0.115909 | 0 | 0.002159 | 0.225143 | 4,184 | 120 | 92 | 34.866667 | 0.812153 | 0.085086 | 0 | 0.113636 | 0 | 0 | 0.09408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0.011364 | 0.034091 | 0 | 0.261364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab073bf68fc63959db0a0aa37e1caf26b750286a | 466 | py | Python | Mon_08_06/convert2.py | TungTNg/itc110_python | 589ca1398f26d39b05a0b798100df0b05e556e3c | [
"Apache-2.0"
] | null | null | null | Mon_08_06/convert2.py | TungTNg/itc110_python | 589ca1398f26d39b05a0b798100df0b05e556e3c | [
"Apache-2.0"
] | null | null | null | Mon_08_06/convert2.py | TungTNg/itc110_python | 589ca1398f26d39b05a0b798100df0b05e556e3c | [
"Apache-2.0"
] | null | null | null | # convert2.py
# A program to convert Celsius temps to Fahrenheit.
# This version issues heat and cold warnings.
def main():
celsius = float(input("What is the Celsius temperature? "))
fahrenheit = 9 / 5 * celsius + 32
print("The temperature is", fahrenheit, "degrees fahrenheit.")
if fahrenhei... | 33.285714 | 66 | 0.650215 | 62 | 466 | 4.887097 | 0.709677 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025496 | 0.242489 | 466 | 14 | 67 | 33.285714 | 0.832861 | 0.246781 | 0 | 0 | 0 | 0 | 0.399425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab078e438c6b69f3703aa8808d1800eb956179af | 5,082 | py | Python | homeassistant/components/wolflink/__init__.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 11 | 2018-02-16T15:35:47.000Z | 2020-01-14T15:20:00.000Z | homeassistant/components/wolflink/__init__.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 77 | 2020-07-16T16:43:09.000Z | 2022-03-31T06:14:37.000Z | homeassistant/components/wolflink/__init__.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 11 | 2020-12-16T13:48:14.000Z | 2022-02-01T00:28:05.000Z | """The Wolf SmartSet Service integration."""
from datetime import timedelta
import logging
from httpx import ConnectError, ConnectTimeout
from wolf_smartset.token_auth import InvalidAuth
from wolf_smartset.wolf_client import FetchFailed, ParameterReadError, WolfClient
from homeassistant.config_entries import ConfigEn... | 36.042553 | 128 | 0.674538 | 559 | 5,082 | 5.944544 | 0.236136 | 0.033704 | 0.021065 | 0.025579 | 0.241649 | 0.194704 | 0.144448 | 0.144448 | 0.115558 | 0.052362 | 0 | 0.000265 | 0.256985 | 5,082 | 140 | 129 | 36.3 | 0.879767 | 0.007477 | 0 | 0.166667 | 0 | 0 | 0.08158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027778 | 0.101852 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab088360fae7f84bdf36c27b8f0ab99458367940 | 932 | py | Python | src/levenshtein_distance.py | chunribu/python-algorithms | 0483df09b5b4f93bd96712d78e3ad34bcb7e57cc | [
"MIT"
] | null | null | null | src/levenshtein_distance.py | chunribu/python-algorithms | 0483df09b5b4f93bd96712d78e3ad34bcb7e57cc | [
"MIT"
] | null | null | null | src/levenshtein_distance.py | chunribu/python-algorithms | 0483df09b5b4f93bd96712d78e3ad34bcb7e57cc | [
"MIT"
] | null | null | null | class LevenshteinDistance:
def solve(self, str_a, str_b):
a, b = str_a, str_b
dist = {(x,y):0 for x in range(len(a)) for y in range(len(b))}
for x in range(len(a)): dist[(x,-1)] = x+1
for y in range(len(b)): dist[(-1,y)] = y+1
dist[(-1,-1)] = 0
for i in range(len(a)):... | 35.846154 | 79 | 0.47103 | 147 | 932 | 2.931973 | 0.251701 | 0.12993 | 0.139211 | 0.076566 | 0.171694 | 0.139211 | 0 | 0 | 0 | 0 | 0 | 0.023064 | 0.348712 | 932 | 26 | 80 | 35.846154 | 0.686985 | 0.004292 | 0 | 0 | 0 | 0 | 0.022654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 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 |
ab09f37cf048afa31bbd4f9b957124d830dcd972 | 24,156 | py | Python | pyapprox/benchmarks/test_spectral_diffusion.py | ConnectedSystems/pyapprox | 4f405654c707cba83d211f327c0f0fdbc95efa29 | [
"MIT"
] | 26 | 2019-12-16T02:21:15.000Z | 2022-03-17T09:59:18.000Z | pyapprox/benchmarks/test_spectral_diffusion.py | ConnectedSystems/pyapprox | 4f405654c707cba83d211f327c0f0fdbc95efa29 | [
"MIT"
] | 9 | 2020-03-03T03:04:55.000Z | 2021-08-19T22:50:42.000Z | pyapprox/benchmarks/test_spectral_diffusion.py | ConnectedSystems/pyapprox | 4f405654c707cba83d211f327c0f0fdbc95efa29 | [
"MIT"
] | 7 | 2020-03-02T03:49:17.000Z | 2021-02-17T02:07:53.000Z | import numpy as np
import unittest
from pyapprox.benchmarks.spectral_diffusion import (
kronecker_product_2d, chebyshev_derivative_matrix,
SteadyStateDiffusionEquation2D, SteadyStateDiffusionEquation1D
)
from pyapprox.univariate_polynomials.quadrature import gauss_jacobi_pts_wts_1D
import pyapprox as pya
cla... | 43.368043 | 140 | 0.573729 | 3,533 | 24,156 | 3.774696 | 0.100481 | 0.034643 | 0.005849 | 0.014847 | 0.705009 | 0.674565 | 0.636848 | 0.618701 | 0.603329 | 0.580609 | 0 | 0.056033 | 0.278192 | 24,156 | 556 | 141 | 43.446043 | 0.708821 | 0.218455 | 0 | 0.514745 | 0 | 0 | 0.010066 | 0 | 0 | 0 | 0 | 0 | 0.058981 | 1 | 0.08311 | false | 0 | 0.013405 | 0.037534 | 0.101877 | 0.010724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0b27f4e0cbd65087dec9065d3e682653bf37df | 2,145 | py | Python | torchdrug/layers/flow.py | wconnell/torchdrug | a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8 | [
"Apache-2.0"
] | 772 | 2021-08-10T05:03:46.000Z | 2022-03-31T12:48:31.000Z | torchdrug/layers/flow.py | wconnell/torchdrug | a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8 | [
"Apache-2.0"
] | 77 | 2021-08-12T16:19:15.000Z | 2022-03-30T14:32:14.000Z | torchdrug/layers/flow.py | wconnell/torchdrug | a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8 | [
"Apache-2.0"
] | 90 | 2021-08-11T16:27:13.000Z | 2022-03-28T11:41:53.000Z | import torch
from torch import nn
from torch.nn import functional as F
from torchdrug import layers
class ConditionalFlow(nn.Module):
"""
Conditional flow transformation from `Masked Autoregressive Flow for Density Estimation`_.
.. _Masked Autoregressive Flow for Density Estimation:
https://arxi... | 33.515625 | 94 | 0.640559 | 236 | 2,145 | 5.699153 | 0.322034 | 0.035688 | 0.035688 | 0.040149 | 0.389591 | 0.389591 | 0.324164 | 0.281041 | 0.169517 | 0.169517 | 0 | 0.00956 | 0.268531 | 2,145 | 64 | 95 | 33.515625 | 0.847674 | 0.420979 | 0 | 0.32 | 0 | 0 | 0.003728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.16 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0b550c21847a65b30237096b5b109cb3b79405 | 1,531 | py | Python | olctools/accessoryFunctions/metadataprinter.py | lowandrew/OLCTools | c74e9d18e2ebe0159aa824e095091045ed227e95 | [
"MIT"
] | 1 | 2020-02-29T19:12:48.000Z | 2020-02-29T19:12:48.000Z | olctools/accessoryFunctions/metadataprinter.py | lowandrew/OLCTools | c74e9d18e2ebe0159aa824e095091045ed227e95 | [
"MIT"
] | 3 | 2017-09-11T18:33:00.000Z | 2019-02-01T18:03:29.000Z | olctools/accessoryFunctions/metadataprinter.py | lowandrew/OLCTools | c74e9d18e2ebe0159aa824e095091045ed227e95 | [
"MIT"
] | 1 | 2017-07-25T15:40:36.000Z | 2017-07-25T15:40:36.000Z | #!/usr/bin/env python3
import logging
import json
import os
__author__ = 'adamkoziol'
class MetadataPrinter(object):
def printmetadata(self):
# Iterate through each sample in the analysis
for sample in self.metadata:
# Set the name of the json file
jsonfile = os.path.join(... | 39.25641 | 112 | 0.595689 | 159 | 1,531 | 5.672956 | 0.465409 | 0.066519 | 0.101996 | 0.086475 | 0.135255 | 0.135255 | 0.135255 | 0.135255 | 0 | 0 | 0 | 0.001944 | 0.32789 | 1,531 | 38 | 113 | 40.289474 | 0.874636 | 0.151535 | 0 | 0.25 | 0 | 0 | 0.112916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0be1bc504d57d2eb757539f99f93b6066eb5bb | 6,424 | py | Python | mindware/estimators.py | aman-gupta-1995/Machine-Learning-Mindware | 8b3050720711730520683c89949e3dbdfb168961 | [
"MIT"
] | 27 | 2021-07-19T09:03:34.000Z | 2022-03-31T06:19:23.000Z | mindware/estimators.py | aman-gupta-1995/Machine-Learning-Mindware | 8b3050720711730520683c89949e3dbdfb168961 | [
"MIT"
] | 4 | 2021-07-15T12:17:10.000Z | 2022-01-26T17:16:58.000Z | mindware/estimators.py | aman-gupta-1995/Machine-Learning-Mindware | 8b3050720711730520683c89949e3dbdfb168961 | [
"MIT"
] | 17 | 2020-05-12T20:24:50.000Z | 2021-07-11T03:31:38.000Z | import numpy as np
from sklearn.utils.multiclass import type_of_target
from mindware.base_estimator import BaseEstimator
from mindware.components.utils.constants import type_dict, MULTILABEL_CLS, IMG_CLS, TEXT_CLS, OBJECT_DET
from mindware.components.feature_engineering.transformation_graph import DataNode
class Clas... | 35.103825 | 104 | 0.60523 | 815 | 6,424 | 4.604908 | 0.190184 | 0.029843 | 0.034106 | 0.026645 | 0.645883 | 0.614975 | 0.600053 | 0.57927 | 0.57927 | 0.561418 | 0 | 0.005275 | 0.291719 | 6,424 | 182 | 105 | 35.296703 | 0.81956 | 0.144614 | 0 | 0.605042 | 0 | 0 | 0.084947 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 1 | 0.109244 | false | 0 | 0.226891 | 0.008403 | 0.453782 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0e2a7ca0afb7293dad4730992d135dc62fe897 | 2,271 | py | Python | examples/industrial_quality_inspection/train_yolov3.py | petr-kalinin/PaddleX | e4f08b50dab01f3720570702a071188d1efd4042 | [
"Apache-2.0"
] | 1 | 2021-09-26T16:00:54.000Z | 2021-09-26T16:00:54.000Z | examples/industrial_quality_inspection/train_yolov3.py | gq5227246/PaddleX | 80b97ae4c9d7a290f9e7908d5cd54b7b053c2072 | [
"Apache-2.0"
] | null | null | null | examples/industrial_quality_inspection/train_yolov3.py | gq5227246/PaddleX | 80b97ae4c9d7a290f9e7908d5cd54b7b053c2072 | [
"Apache-2.0"
] | 1 | 2021-06-04T19:57:53.000Z | 2021-06-04T19:57:53.000Z | # 环境变量配置,用于控制是否使用GPU
# 说明文档:https://paddlex.readthedocs.io/zh_CN/develop/appendix/parameters.html#gpu
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
from paddlex.det import transforms
import paddlex as pdx
# 下载和解压铝材缺陷检测数据集
aluminum_dataset = 'https://bj.bcebos.com/paddlex/examples/industrial_quality_inspection/da... | 37.85 | 125 | 0.784236 | 282 | 2,271 | 6.106383 | 0.397163 | 0.073171 | 0.081301 | 0.089431 | 0.408246 | 0.408246 | 0.349594 | 0.349594 | 0.349594 | 0.235772 | 0 | 0.017476 | 0.092911 | 2,271 | 59 | 126 | 38.491525 | 0.818447 | 0.303831 | 0 | 0.153846 | 0 | 0.025641 | 0.219949 | 0.096547 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab0fb9e929f14279551c419b287e78a48d3a92f4 | 1,882 | py | Python | wooey/migrations/0009_script_versioning.py | macdaliot/Wooey | 3a0f40e3b3ab4d905f9acc72f5cd5d6453e14834 | [
"BSD-3-Clause"
] | 1 | 2020-11-05T15:04:33.000Z | 2020-11-05T15:04:33.000Z | wooey/migrations/0009_script_versioning.py | macdaliot/Wooey | 3a0f40e3b3ab4d905f9acc72f5cd5d6453e14834 | [
"BSD-3-Clause"
] | null | null | null | wooey/migrations/0009_script_versioning.py | macdaliot/Wooey | 3a0f40e3b3ab4d905f9acc72f5cd5d6453e14834 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import wooey.models.mixins
class Migration(migrations.Migration):
dependencies = [
('wooey', '0008_short_param_admin'),
]
operations = [
migrations.CreateModel(
name='Scr... | 39.208333 | 126 | 0.609989 | 177 | 1,882 | 6.288136 | 0.423729 | 0.070081 | 0.061096 | 0.072776 | 0.334232 | 0.280323 | 0.280323 | 0.280323 | 0.280323 | 0.280323 | 0 | 0.00721 | 0.263018 | 1,882 | 47 | 127 | 40.042553 | 0.795242 | 0.011158 | 0 | 0.390244 | 0 | 0 | 0.173749 | 0.011834 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab10a7d42774f492876454acc8afc34598c448bf | 15,849 | py | Python | bicycleparameters/period.py | sandertyu/Simple-Geometry-Plot | 6fa4dfb50aebc4215818f75ff56f916fc32f8cfa | [
"BSD-2-Clause-FreeBSD"
] | 20 | 2015-07-06T06:25:07.000Z | 2021-12-10T19:36:33.000Z | bicycleparameters/period.py | sandertyu/Simple-Geometry-Plot | 6fa4dfb50aebc4215818f75ff56f916fc32f8cfa | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-11-10T16:21:02.000Z | 2022-03-03T11:46:52.000Z | bicycleparameters/period.py | sandertyu/Simple-Geometry-Plot | 6fa4dfb50aebc4215818f75ff56f916fc32f8cfa | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2015-07-13T23:32:58.000Z | 2021-12-09T18:42:16.000Z | #!/usr/bin/env/ python
import os
from math import pi
import numpy as np
from numpy import ma
from scipy.optimize import leastsq
import matplotlib.pyplot as plt
from uncertainties import ufloat
# local modules
from .io import load_pendulum_mat_file
def average_rectified_sections(data):
'''Returns a slice of an o... | 30.188571 | 205 | 0.588618 | 2,185 | 15,849 | 4.248055 | 0.232037 | 0.010235 | 0.007757 | 0.002155 | 0.108274 | 0.080694 | 0.075738 | 0.067981 | 0.067981 | 0.063241 | 0 | 0.020828 | 0.294151 | 15,849 | 524 | 206 | 30.246183 | 0.808885 | 0.409994 | 0 | 0.072034 | 0 | 0.004237 | 0.061606 | 0.017305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059322 | false | 0.004237 | 0.033898 | 0 | 0.152542 | 0.008475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab11420721f9d57dfd242653355836e981c854b9 | 11,597 | py | Python | tectosaur2/analyze.py | tbenthompson/BIE_tutorials | 02cd56ab7e63e36afc4a10db17072076541aab77 | [
"MIT"
] | 1 | 2021-06-18T18:02:55.000Z | 2021-06-18T18:02:55.000Z | tectosaur2/analyze.py | tbenthompson/BIE_tutorials | 02cd56ab7e63e36afc4a10db17072076541aab77 | [
"MIT"
] | null | null | null | tectosaur2/analyze.py | tbenthompson/BIE_tutorials | 02cd56ab7e63e36afc4a10db17072076541aab77 | [
"MIT"
] | 1 | 2021-07-14T19:47:00.000Z | 2021-07-14T19:47:00.000Z | import time
import warnings
import matplotlib.pyplot as plt
import numpy as np
import sympy as sp
from .global_qbx import global_qbx_self
from .mesh import apply_interp_mat, gauss_rule, panelize_symbolic_surface, upsample
def find_dcutoff_refine(kernel, src, tol, plot=False):
# prep step 1: find d_cutoff and d_... | 40.407666 | 117 | 0.553419 | 1,538 | 11,597 | 3.992198 | 0.216515 | 0.015961 | 0.014658 | 0.013029 | 0.287622 | 0.207492 | 0.186482 | 0.119218 | 0.088599 | 0.06645 | 0 | 0.024303 | 0.347159 | 11,597 | 286 | 118 | 40.548951 | 0.786686 | 0.241528 | 0 | 0.280952 | 0 | 0 | 0.024937 | 0.010295 | 0 | 0 | 0 | 0.003497 | 0.004762 | 1 | 0.019048 | false | 0 | 0.033333 | 0 | 0.071429 | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab132bee6e66bf3b92342ce521bb86ee76d01876 | 7,308 | py | Python | people/losses-bkp.py | dluvizon/3d-pose-consensus | 7a829d5713d2c45c6b265c9886add0b69e0050a8 | [
"MIT"
] | 5 | 2020-05-11T14:18:12.000Z | 2022-03-10T12:10:17.000Z | people/losses-bkp.py | dluvizon/3d-pose-consensus | 7a829d5713d2c45c6b265c9886add0b69e0050a8 | [
"MIT"
] | null | null | null | people/losses-bkp.py | dluvizon/3d-pose-consensus | 7a829d5713d2c45c6b265c9886add0b69e0050a8 | [
"MIT"
] | null | null | null |
def structural_loss_dst68j3d(p_pred, v_pred):
v_pred = K.stop_gradient(v_pred)
def getlength(v):
return K.sqrt(K.sum(K.square(v), axis=-1))
"""Arms segments"""
joints_arms = p_pred[:, :, 16:37+1, :]
conf_arms = v_pred[:, :, 16:37+1]
diff_arms_r = joints_arms[:, :, 2:-1:2, :] - joint... | 44.024096 | 80 | 0.545293 | 1,218 | 7,308 | 2.993432 | 0.091954 | 0.056226 | 0.103401 | 0.135217 | 0.468733 | 0.376577 | 0.266868 | 0.236972 | 0.103127 | 0.075151 | 0 | 0.102684 | 0.240421 | 7,308 | 165 | 81 | 44.290909 | 0.554134 | 0.002463 | 0 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0 | 0.008197 | 0.032787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1a1e11ddf7bd7dae943e8668ed1a5ba0c14a72 | 3,848 | py | Python | applications/cli/commands/model/tests/test_export.py | nparkstar/nauta | 1bda575a01f782d1dc2cd5221122651f184f7167 | [
"Apache-2.0"
] | 390 | 2019-01-23T09:07:00.000Z | 2022-02-20T04:03:34.000Z | applications/cli/commands/model/tests/test_export.py | nparkstar/nauta | 1bda575a01f782d1dc2cd5221122651f184f7167 | [
"Apache-2.0"
] | 52 | 2019-01-31T12:17:30.000Z | 2022-02-10T00:01:39.000Z | applications/cli/commands/model/tests/test_export.py | nparkstar/nauta | 1bda575a01f782d1dc2cd5221122651f184f7167 | [
"Apache-2.0"
] | 66 | 2019-01-23T18:59:39.000Z | 2020-10-18T15:24:00.000Z | #
# Copyright (c) 2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 35.62963 | 109 | 0.747401 | 505 | 3,848 | 5.504951 | 0.312871 | 0.03741 | 0.065468 | 0.05036 | 0.414748 | 0.33741 | 0.253597 | 0.193525 | 0.193525 | 0.171583 | 0 | 0.007075 | 0.155146 | 3,848 | 107 | 110 | 35.962617 | 0.848047 | 0.14527 | 0 | 0.193548 | 0 | 0 | 0.213566 | 0.107852 | 0 | 0 | 0 | 0 | 0.258065 | 1 | 0.112903 | false | 0 | 0.080645 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1a9a9be99684f3bafd7d5cd35569aa18f68f49 | 786 | py | Python | lesley-byte/graphpressure.py | lesley-byte/enviroplus-python | df08c238c8b550c9041ff06a0b6bef6b330af611 | [
"MIT"
] | null | null | null | lesley-byte/graphpressure.py | lesley-byte/enviroplus-python | df08c238c8b550c9041ff06a0b6bef6b330af611 | [
"MIT"
] | null | null | null | lesley-byte/graphpressure.py | lesley-byte/enviroplus-python | df08c238c8b550c9041ff06a0b6bef6b330af611 | [
"MIT"
] | null | null | null | from requests import get
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import datetime as dt
from bme280 import BME280
try:
from smbus2 import SMBus
except ImportError:
from smbus import SMBus
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
xs = []
ys =[]
bus = SMBus(1)
bme280 = ... | 20.153846 | 75 | 0.670483 | 118 | 786 | 4.432203 | 0.516949 | 0.030593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054859 | 0.188295 | 786 | 38 | 76 | 20.684211 | 0.76489 | 0 | 0 | 0 | 0 | 0 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.275862 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1ab02c6fe0df3ffafd8d3c0b4bb24aea453027 | 5,912 | py | Python | bootstrapvz/plugins/ova/tasks.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/plugins/ova/tasks.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/plugins/ova/tasks.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | from bootstrapvz.base import Task
from bootstrapvz.common import phases
from bootstrapvz.common.tasks import workspace
import os
import shutil
assets = os.path.normpath(os.path.join(os.path.dirname(__file__), 'assets'))
class CheckOVAPath(Task):
description = 'Checking if the OVA file already exists'
phase = phase... | 39.152318 | 113 | 0.692321 | 761 | 5,912 | 5.243101 | 0.310118 | 0.031579 | 0.025063 | 0.027068 | 0.115789 | 0.075188 | 0.063659 | 0.044612 | 0.020551 | 0.020551 | 0 | 0.009158 | 0.150372 | 5,912 | 150 | 114 | 39.413333 | 0.785188 | 0.107409 | 0 | 0.097345 | 0 | 0.017699 | 0.22881 | 0.049981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053097 | false | 0 | 0.106195 | 0 | 0.292035 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1ab3780950be34d6065669fa02273afffb05ab | 3,498 | py | Python | docs/conf.py | PhilippJunk/homelette | d6e585a215d7eef75ef6c837d1faf2d0ad8025c1 | [
"MIT"
] | null | null | null | docs/conf.py | PhilippJunk/homelette | d6e585a215d7eef75ef6c837d1faf2d0ad8025c1 | [
"MIT"
] | null | null | null | docs/conf.py | PhilippJunk/homelette | d6e585a215d7eef75ef6c837d1faf2d0ad8025c1 | [
"MIT"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 33.314286 | 79 | 0.616638 | 384 | 3,498 | 5.513021 | 0.481771 | 0.042985 | 0.015588 | 0.022674 | 0.046292 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007797 | 0.156661 | 3,498 | 104 | 80 | 33.634615 | 0.709831 | 0.543168 | 0 | 0 | 0 | 0 | 0.46901 | 0.268371 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1c5aded9a853b37a00d0b031cb2cff207d2b22 | 15,055 | py | Python | netbox/extras/forms.py | orphanedgamboa/netbox | 5cdc38ec3adb5278480b267a6c8e674e9d3fca39 | [
"Apache-2.0"
] | 1 | 2021-05-01T18:16:37.000Z | 2021-05-01T18:16:37.000Z | netbox/extras/forms.py | orphanedgamboa/netbox | 5cdc38ec3adb5278480b267a6c8e674e9d3fca39 | [
"Apache-2.0"
] | null | null | null | netbox/extras/forms.py | orphanedgamboa/netbox | 5cdc38ec3adb5278480b267a6c8e674e9d3fca39 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.utils.safestring import mark_safe
from django.utils.translation import gettext as _
from dcim.models import DeviceRole, DeviceType, Platform, Region, Site, SiteGroup
from tenancy.... | 28.40566 | 117 | 0.643374 | 1,438 | 15,055 | 6.550765 | 0.17872 | 0.069002 | 0.051592 | 0.065924 | 0.51518 | 0.464544 | 0.433652 | 0.250849 | 0.220382 | 0.164331 | 0 | 0.001607 | 0.256128 | 15,055 | 529 | 118 | 28.459357 | 0.839539 | 0.064032 | 0 | 0.419192 | 0 | 0 | 0.06639 | 0.00372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025253 | false | 0 | 0.032828 | 0 | 0.280303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1c9d3f78e7e9ff6cc93d1c78aab266fbaf43fb | 3,122 | py | Python | unwarp_models.py | zgjslc/Film-Recovery-master1 | 4497a9930398c9e826ac364056a79e5bcbf6c953 | [
"Apache-2.0"
] | null | null | null | unwarp_models.py | zgjslc/Film-Recovery-master1 | 4497a9930398c9e826ac364056a79e5bcbf6c953 | [
"Apache-2.0"
] | null | null | null | unwarp_models.py | zgjslc/Film-Recovery-master1 | 4497a9930398c9e826ac364056a79e5bcbf6c953 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from models.misc import modules
constrain_path = {
('threeD', 'normal'): (True, True, ''),
('threeD', 'depth'): (True, True, ''),
('normal', 'depth'): (True, True, ''),
('depth', 'normal'): (True, True, ''),
}
class UnwarpNet(nn.Modu... | 51.180328 | 105 | 0.686739 | 432 | 3,122 | 4.675926 | 0.189815 | 0.069307 | 0.055446 | 0.087129 | 0.323267 | 0.311881 | 0.30297 | 0.261386 | 0.261386 | 0.261386 | 0 | 0.013189 | 0.198591 | 3,122 | 60 | 106 | 52.033333 | 0.794165 | 0.047406 | 0 | 0 | 0 | 0 | 0.015146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab1d101c4bcfc97cfc157f818f4f8698285ba31c | 12,768 | py | Python | endpoint/test_endpoint/update.py | pansila/Auto-Test-System | bfe51a277466939a32daa08f27a89cf3c1900def | [
"MIT"
] | 14 | 2019-02-19T01:31:08.000Z | 2021-12-12T12:56:08.000Z | endpoint/test_endpoint/update.py | pansila/Auto-Test-System | bfe51a277466939a32daa08f27a89cf3c1900def | [
"MIT"
] | 2 | 2020-03-10T12:12:10.000Z | 2020-03-10T12:12:10.000Z | endpoint/test_endpoint/update.py | pansila/Auto-Test-System | bfe51a277466939a32daa08f27a89cf3c1900def | [
"MIT"
] | 4 | 2019-07-09T02:00:13.000Z | 2020-08-18T14:04:24.000Z | import configparser
import os
import hashlib
import json
import shutil
import sys
import tempfile
import subprocess
import tarfile
import re
import stat
from functools import cmp_to_key
from contextlib import closing
from gzip import GzipFile
from pathlib import Path
from urllib.error import HTTPError
from urllib.reque... | 31.60396 | 98 | 0.56344 | 1,459 | 12,768 | 4.796436 | 0.21316 | 0.014004 | 0.020577 | 0.030866 | 0.364961 | 0.313947 | 0.302515 | 0.25493 | 0.238925 | 0.226065 | 0 | 0.00854 | 0.312187 | 12,768 | 403 | 99 | 31.682382 | 0.788317 | 0.034226 | 0 | 0.316993 | 0 | 0.01634 | 0.247517 | 0.042338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068627 | false | 0 | 0.084967 | 0.01634 | 0.235294 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab202528012b6880e43938d0db79af54bf805f9b | 1,145 | py | Python | 2021/day-12/solve.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | 1 | 2019-12-27T22:36:30.000Z | 2019-12-27T22:36:30.000Z | 2021/day-12/solve.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | null | null | null | 2021/day-12/solve.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from typing import List
import aoc
from collections import defaultdict
@aoc.timing
def solve(inp: str, part2=False):
def find_path(current: str, path: List[str] = []):
if current == 'end':
yield path
return
for nxt in caves[current]:
if n... | 23.367347 | 73 | 0.541485 | 156 | 1,145 | 3.955128 | 0.378205 | 0.06483 | 0.038898 | 0.02269 | 0.178282 | 0.178282 | 0.178282 | 0.178282 | 0.178282 | 0.178282 | 0 | 0.016582 | 0.315284 | 1,145 | 48 | 74 | 23.854167 | 0.770408 | 0.017467 | 0 | 0.314286 | 0 | 0 | 0.05516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.085714 | 0.028571 | 0.257143 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab207da0020d38ce47419c0053bab12a37bcf81b | 11,387 | py | Python | PaddleCV/tracking/ltr/data/processing.py | suytingwan/models | ccdbfe77d071cc19b55fb9f4b738912e35d982ef | [
"Apache-2.0"
] | 5 | 2021-09-28T13:28:01.000Z | 2021-12-21T07:25:44.000Z | PaddleCV/tracking/ltr/data/processing.py | suytingwan/models | ccdbfe77d071cc19b55fb9f4b738912e35d982ef | [
"Apache-2.0"
] | 1 | 2020-07-02T03:05:00.000Z | 2020-07-02T03:05:00.000Z | PaddleCV/tracking/ltr/data/processing.py | suytingwan/models | ccdbfe77d071cc19b55fb9f4b738912e35d982ef | [
"Apache-2.0"
] | 3 | 2021-09-28T15:33:45.000Z | 2021-09-29T01:44:32.000Z | import numpy as np
from ltr.data import transforms
import ltr.data.processing_utils as prutils
from pytracking.libs import TensorDict
class BaseProcessing:
""" Base class for Processing. Processing class is used to process the data returned by a dataset, before passing it
through the network. For e... | 43.296578 | 121 | 0.558971 | 1,323 | 11,387 | 4.608466 | 0.17158 | 0.035427 | 0.026242 | 0.019682 | 0.56946 | 0.563228 | 0.544202 | 0.526652 | 0.509431 | 0.49467 | 0 | 0.006462 | 0.361289 | 11,387 | 262 | 122 | 43.461832 | 0.831844 | 0.321244 | 0 | 0.650685 | 0 | 0 | 0.071787 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.061644 | false | 0 | 0.027397 | 0 | 0.143836 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab21105c56263980d75d2b1bb1e9d7beba919be5 | 884 | py | Python | tqcli/config/config.py | Tranquant/tqcli | 0cc12e0d80129a14cec8117cd73e2ca69fb25214 | [
"Apache-2.0"
] | null | null | null | tqcli/config/config.py | Tranquant/tqcli | 0cc12e0d80129a14cec8117cd73e2ca69fb25214 | [
"Apache-2.0"
] | null | null | null | tqcli/config/config.py | Tranquant/tqcli | 0cc12e0d80129a14cec8117cd73e2ca69fb25214 | [
"Apache-2.0"
] | 1 | 2016-08-16T03:43:36.000Z | 2016-08-16T03:43:36.000Z | import logging
from os.path import expanduser
#TQ_API_ROOT_URL = 'http://127.0.1.1:8090/dataset'
TQ_API_ROOT_URL = 'http://elb-tranquant-ecs-cluster-tqapi-1919110681.us-west-2.elb.amazonaws.com/dataset'
LOG_PATH = expanduser('~/tqcli.log')
# the chunk size must be at least 5MB for multipart upload
DEFAULT_CHUNK_SIZE ... | 30.482759 | 105 | 0.745475 | 133 | 884 | 4.879699 | 0.616541 | 0.015408 | 0.027735 | 0.03698 | 0.049307 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041775 | 0.133484 | 884 | 28 | 106 | 31.571429 | 0.805483 | 0.338235 | 0 | 0 | 0 | 0.0625 | 0.277778 | 0 | 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 |
ab21d266138fcacadbe38aeb0f70a2986ce949b2 | 8,564 | py | Python | fqf_iqn_qrdqn/agent/base_agent.py | rainwangphy/fqf-iqn-qrdqn.pytorch | 351e9c4722c8b1ed411cd8c1bbf46c93c07f0893 | [
"MIT"
] | null | null | null | fqf_iqn_qrdqn/agent/base_agent.py | rainwangphy/fqf-iqn-qrdqn.pytorch | 351e9c4722c8b1ed411cd8c1bbf46c93c07f0893 | [
"MIT"
] | null | null | null | fqf_iqn_qrdqn/agent/base_agent.py | rainwangphy/fqf-iqn-qrdqn.pytorch | 351e9c4722c8b1ed411cd8c1bbf46c93c07f0893 | [
"MIT"
] | 1 | 2022-02-14T02:55:01.000Z | 2022-02-14T02:55:01.000Z | from abc import ABC, abstractmethod
import os
import numpy as np
import torch
from torch.utils.tensorboard import SummaryWriter
from fqf_iqn_qrdqn.memory import LazyMultiStepMemory, \
LazyPrioritizedMultiStepMemory
from fqf_iqn_qrdqn.utils import RunningMeanStats, LinearAnneaer
class BaseAgent(ABC):
def __i... | 34.119522 | 79 | 0.599603 | 1,062 | 8,564 | 4.607345 | 0.191149 | 0.02943 | 0.023912 | 0.012262 | 0.241774 | 0.208257 | 0.167995 | 0.167995 | 0.154711 | 0.13039 | 0 | 0.018038 | 0.307333 | 8,564 | 250 | 80 | 34.256 | 0.806811 | 0.074498 | 0 | 0.185185 | 0 | 0 | 0.032617 | 0.002781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.005291 | 0.037037 | 0.005291 | 0.153439 | 0.021164 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab2324a100ecb32532716cd76301eba78659a0c1 | 3,012 | py | Python | quartet_condor.py | BotanyHunter/QuartetAnalysis | c9b21aac267718be5ea8a8a76632fc0a3feb8403 | [
"MIT"
] | null | null | null | quartet_condor.py | BotanyHunter/QuartetAnalysis | c9b21aac267718be5ea8a8a76632fc0a3feb8403 | [
"MIT"
] | null | null | null | quartet_condor.py | BotanyHunter/QuartetAnalysis | c9b21aac267718be5ea8a8a76632fc0a3feb8403 | [
"MIT"
] | null | null | null | #quartet_condor.py
#version 2.0.2
import random, sys
def addToDict(d):
'''
Ensures each quartet has three concordance factors (CFs)
a dictionary d has less than three CFs, add CFs with the value 0 until there are three
Input: a dictionary containing CFs, a counter of how many CFs are in the dictionar... | 33.466667 | 98 | 0.537849 | 399 | 3,012 | 4.02005 | 0.310777 | 0.0399 | 0.011222 | 0.013092 | 0.078554 | 0.066085 | 0 | 0 | 0 | 0 | 0 | 0.029366 | 0.355578 | 3,012 | 89 | 99 | 33.842697 | 0.797012 | 0.338645 | 0 | 0.081633 | 0 | 0 | 0.040773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.020408 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab2601bcecd2c5b5f36345a106f14a3b9c2ff88d | 5,668 | py | Python | main.py | scottjr632/trump-twitter-bot | 484b1324d752395338b0a9e5850acf294089b26f | [
"MIT"
] | null | null | null | main.py | scottjr632/trump-twitter-bot | 484b1324d752395338b0a9e5850acf294089b26f | [
"MIT"
] | null | null | null | main.py | scottjr632/trump-twitter-bot | 484b1324d752395338b0a9e5850acf294089b26f | [
"MIT"
] | null | null | null | import os
import logging
import argparse
import sys
import signal
import subprocess
from functools import wraps
from dotenv import load_dotenv
load_dotenv(verbose=True)
from app.config import configure_app
from app.bot import TrumpBotScheduler
from app.sentimentbot import SentimentBot
parser = argparse.ArgumentParse... | 27.64878 | 106 | 0.657728 | 733 | 5,668 | 4.792633 | 0.255116 | 0.045545 | 0.036436 | 0.018218 | 0.249929 | 0.2078 | 0.16567 | 0.16567 | 0.16567 | 0.154284 | 0 | 0.003433 | 0.229181 | 5,668 | 204 | 107 | 27.784314 | 0.800641 | 0.055575 | 0 | 0.102941 | 0 | 0 | 0.110716 | 0.003927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.088235 | 0.022059 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab27a7af29a41d40eec1afd58d05fca20bfc3c8b | 691 | py | Python | 010-summation-of-primes.py | dendi239/euler | 71fcdca4a80f9e586aab05eb8acadf1a296dda90 | [
"MIT"
] | null | null | null | 010-summation-of-primes.py | dendi239/euler | 71fcdca4a80f9e586aab05eb8acadf1a296dda90 | [
"MIT"
] | null | null | null | 010-summation-of-primes.py | dendi239/euler | 71fcdca4a80f9e586aab05eb8acadf1a296dda90 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import itertools
import typing as tp
def primes() -> tp.Generator[int, None, None]:
primes_ = []
d = 2
while True:
is_prime = True
for p in primes_:
if p * p > d:
break
if d % p == 0:
is_prime = False
... | 16.452381 | 62 | 0.51809 | 92 | 691 | 3.641304 | 0.5 | 0.062687 | 0.125373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.370478 | 691 | 41 | 63 | 16.853659 | 0.735632 | 0.031838 | 0 | 0.08 | 0 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.16 | false | 0 | 0.08 | 0.04 | 0.28 | 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 |
ab27ed4a158779f6beba16216ad31870fa98bf95 | 11,368 | py | Python | setup.py | letmaik/lensfunpy | ddadb6bfd5f3acde5640210aa9f575501e5c0914 | [
"MIT"
] | 94 | 2016-08-24T21:52:40.000Z | 2022-03-05T07:17:21.000Z | setup.py | letmaik/lensfunpy | ddadb6bfd5f3acde5640210aa9f575501e5c0914 | [
"MIT"
] | 22 | 2016-10-21T07:15:21.000Z | 2021-09-20T13:41:02.000Z | setup.py | letmaik/lensfunpy | ddadb6bfd5f3acde5640210aa9f575501e5c0914 | [
"MIT"
] | 11 | 2016-12-12T03:14:07.000Z | 2021-05-06T17:47:30.000Z | from setuptools import setup, Extension, find_packages
import subprocess
import errno
import re
import os
import shutil
import sys
import zipfile
from urllib.request import urlretrieve
import numpy
from Cython.Build import cythonize
isWindows = os.name == 'nt'
isMac = sys.platform == 'darwin'
is64Bit = sys.maxsize... | 37.518152 | 125 | 0.616555 | 1,407 | 11,368 | 4.832978 | 0.292111 | 0.023824 | 0.019118 | 0.012941 | 0.161765 | 0.123529 | 0.081765 | 0.065588 | 0.065588 | 0.065588 | 0 | 0.009507 | 0.259764 | 11,368 | 302 | 126 | 37.642384 | 0.798574 | 0.155084 | 0 | 0.159292 | 0 | 0.004425 | 0.235835 | 0.047773 | 0 | 0 | 0 | 0 | 0.004425 | 1 | 0.026549 | false | 0 | 0.053097 | 0 | 0.079646 | 0.035398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab2c89bde44269f1533806cfa45910e25d77ed66 | 2,771 | py | Python | services/postprocess/src/postprocess.py | hadarohana/myCosmos | 6e4682a2af822eb828180658aaa6d3e304cc85bf | [
"Apache-2.0"
] | null | null | null | services/postprocess/src/postprocess.py | hadarohana/myCosmos | 6e4682a2af822eb828180658aaa6d3e304cc85bf | [
"Apache-2.0"
] | 5 | 2020-01-28T23:13:10.000Z | 2022-02-10T00:28:15.000Z | services/postprocess/src/postprocess.py | hadarohana/myCosmos | 6e4682a2af822eb828180658aaa6d3e304cc85bf | [
"Apache-2.0"
] | 1 | 2021-03-10T19:25:44.000Z | 2021-03-10T19:25:44.000Z | """
Post processing on detected objects
"""
import pymongo
from pymongo import MongoClient
import time
import logging
logging.basicConfig(format='%(levelname)s :: %(asctime)s :: %(message)s', level=logging.DEBUG)
from joblib import Parallel, delayed
import click
from xgboost_model.inference import run_inference, Postpr... | 37.445946 | 111 | 0.616745 | 325 | 2,771 | 5.049231 | 0.381538 | 0.040219 | 0.025594 | 0.032907 | 0.092626 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002473 | 0.2703 | 2,771 | 73 | 112 | 37.958904 | 0.8091 | 0.012631 | 0 | 0.15 | 0 | 0 | 0.198381 | 0.008097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab2d00e90fa00656e5b245ed372443c5a0686b39 | 2,619 | py | Python | model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py | calvinfeng/openvino | 11f591c16852637506b1b40d083b450e56d0c8ac | [
"Apache-2.0"
] | null | null | null | model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py | calvinfeng/openvino | 11f591c16852637506b1b40d083b450e56d0c8ac | [
"Apache-2.0"
] | 19 | 2021-03-26T08:11:00.000Z | 2022-02-21T13:06:26.000Z | model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py | calvinfeng/openvino | 11f591c16852637506b1b40d083b450e56d0c8ac | [
"Apache-2.0"
] | 1 | 2021-07-28T17:30:46.000Z | 2021-07-28T17:30:46.000Z | """
Copyright (C) 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 44.389831 | 112 | 0.583047 | 355 | 2,619 | 4.095775 | 0.352113 | 0.055021 | 0.089409 | 0.081843 | 0.289546 | 0.220083 | 0.094911 | 0.044017 | 0.044017 | 0.044017 | 0 | 0.066738 | 0.284842 | 2,619 | 58 | 113 | 45.155172 | 0.709557 | 0.216495 | 0 | 0 | 0 | 0 | 0.126844 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.029412 | false | 0 | 0.147059 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab2dd4e23245d0ab9d1e255dfa3fc732936ba5f1 | 4,557 | py | Python | cmake/utils/gen-ninja-deps.py | stamhe/bitcoin-abc | a1ba303c6b4f164ae94612e83b824e564405a96e | [
"MIT"
] | 1,266 | 2017-05-02T07:02:29.000Z | 2022-03-31T17:15:44.000Z | cmake/utils/gen-ninja-deps.py | EGYVOICE/bitcoin-abc-avalanche | e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c | [
"MIT"
] | 426 | 2017-05-07T12:40:52.000Z | 2022-03-29T18:12:01.000Z | cmake/utils/gen-ninja-deps.py | EGYVOICE/bitcoin-abc-avalanche | e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c | [
"MIT"
] | 721 | 2017-05-07T10:36:11.000Z | 2022-03-15T09:07:48.000Z | #!/usr/bin/env python3
import argparse
import os
import subprocess
parser = argparse.ArgumentParser(description='Produce a dep file from ninja.')
parser.add_argument(
'--build-dir',
help='The build directory.',
required=True)
parser.add_argument(
'--base-dir',
help='The directory for which depende... | 25.038462 | 79 | 0.577354 | 605 | 4,557 | 4.256198 | 0.261157 | 0.031068 | 0.039612 | 0.030291 | 0.112233 | 0.024078 | 0.024078 | 0.024078 | 0.024078 | 0.024078 | 0 | 0.009031 | 0.29537 | 4,557 | 181 | 80 | 25.176796 | 0.792899 | 0.062541 | 0 | 0.214876 | 0 | 0 | 0.104796 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 1 | 0.041322 | false | 0 | 0.024793 | 0 | 0.115702 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab30b98300e549b0e8401f690d6ee36c03180fdb | 2,493 | py | Python | sysinv/sysinv/sysinv/sysinv/helm/garbd.py | Wind-River/starlingx-config | 96b92e5179d54dde10cb84c943eb239adf26b958 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/helm/garbd.py | Wind-River/starlingx-config | 96b92e5179d54dde10cb84c943eb239adf26b958 | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/helm/garbd.py | Wind-River/starlingx-config | 96b92e5179d54dde10cb84c943eb239adf26b958 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2018-2019 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.common import constants
from sysinv.common import exception
from sysinv.common import utils
from sysinv.helm import common
from sysinv.helm import base
class GarbdHelm(base.BaseHelm):
"""Class to encapsulat... | 37.208955 | 80 | 0.649017 | 298 | 2,493 | 5.258389 | 0.416107 | 0.03829 | 0.030632 | 0.053606 | 0.098277 | 0.066369 | 0.066369 | 0.066369 | 0 | 0 | 0 | 0.006749 | 0.286803 | 2,493 | 66 | 81 | 37.772727 | 0.874578 | 0.257521 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.390244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab33de96dbc34b33ac4aed99648c2c63749addef | 8,913 | py | Python | armi/physics/fuelCycle/settings.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | 1 | 2021-05-29T16:02:31.000Z | 2021-05-29T16:02:31.000Z | armi/physics/fuelCycle/settings.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | armi/physics/fuelCycle/settings.py | celikten/armi | 4e100dd514a59caa9c502bd5a0967fd77fdaf00e | [
"Apache-2.0"
] | null | null | null | """Settings for generic fuel cycle code."""
import re
import os
from armi.settings import setting
from armi.operators import settingsValidation
CONF_ASSEMBLY_ROTATION_ALG = "assemblyRotationAlgorithm"
CONF_ASSEM_ROTATION_STATIONARY = "assemblyRotationStationary"
CONF_CIRCULAR_RING_MODE = "circularRingMode"
CONF_CIRCU... | 39.092105 | 106 | 0.574554 | 903 | 8,913 | 5.575858 | 0.349945 | 0.028401 | 0.054816 | 0.004965 | 0.178749 | 0.079245 | 0.060377 | 0.055214 | 0.027011 | 0 | 0 | 0.007961 | 0.309436 | 8,913 | 227 | 107 | 39.264317 | 0.810073 | 0.099181 | 0 | 0.299492 | 0 | 0.020305 | 0.3502 | 0.079835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025381 | false | 0 | 0.045685 | 0 | 0.086294 | 0.005076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab38ae2d8c17a7a5df07314f47034bda8a636085 | 3,845 | py | Python | tests/test_color_background.py | erykoff/redmapper | 23fb66c7369de784c67ce6c41ada2f1f51a84acb | [
"Apache-2.0"
] | 17 | 2016-03-06T07:51:02.000Z | 2022-02-03T15:17:26.000Z | tests/test_color_background.py | erykoff/redmapper | 23fb66c7369de784c67ce6c41ada2f1f51a84acb | [
"Apache-2.0"
] | 42 | 2016-07-27T20:48:20.000Z | 2022-01-31T20:47:51.000Z | tests/test_color_background.py | erykoff/redmapper | 23fb66c7369de784c67ce6c41ada2f1f51a84acb | [
"Apache-2.0"
] | 8 | 2017-01-26T01:38:41.000Z | 2020-11-14T07:41:53.000Z | import unittest
import numpy.testing as testing
import numpy as np
import fitsio
import tempfile
import os
from redmapper import ColorBackground
from redmapper import ColorBackgroundGenerator
from redmapper import Configuration
class ColorBackgroundTestCase(unittest.TestCase):
"""
Tests for the redmapper.Colo... | 34.954545 | 98 | 0.635371 | 512 | 3,845 | 4.572266 | 0.333984 | 0.041862 | 0.073046 | 0.092268 | 0.337035 | 0.268689 | 0.251602 | 0.16446 | 0.16446 | 0.140111 | 0 | 0.086942 | 0.237191 | 3,845 | 109 | 99 | 35.275229 | 0.711217 | 0.277503 | 0 | 0 | 0 | 0 | 0.025545 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.018519 | false | 0 | 0.166667 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ab392fd8e80c256d42ff5f34b47b1e8775e1c4cb | 33,538 | py | Python | src/metpy/calc/basic.py | Exi666/MetPy | c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c | [
"BSD-3-Clause"
] | null | null | null | src/metpy/calc/basic.py | Exi666/MetPy | c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c | [
"BSD-3-Clause"
] | null | null | null | src/metpy/calc/basic.py | Exi666/MetPy | c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Contains a collection of basic calculations.
These include:
* wind components
* heat index
* windchill
"""
import warnings
import numpy as np
from scip... | 33.945344 | 94 | 0.653706 | 4,568 | 33,538 | 4.720884 | 0.168783 | 0.028379 | 0.022258 | 0.025041 | 0.40793 | 0.363552 | 0.334338 | 0.27744 | 0.255646 | 0.217065 | 0 | 0.037713 | 0.245751 | 33,538 | 987 | 95 | 33.979737 | 0.814793 | 0.638649 | 0 | 0.254902 | 0 | 0 | 0.058806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07451 | false | 0.011765 | 0.027451 | 0 | 0.180392 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |