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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab004fc32da2c054a27da448be678a4c97fe4366 | 1,306 | py | Python | lib/utils/fp16_utils.py | transcendentsky/ssd_pytorch | f1e20318d37b11f99c207d5e19f49ec662bf80f9 | [
"MIT"
] | 10 | 2018-06-26T04:08:12.000Z | 2021-08-02T03:57:56.000Z | lib/utils/fp16_utils.py | AtriSaxena/ssd-detection-app | 2662d93c8daf0ed2226c4d956037ce14e092d94f | [
"MIT"
] | 1 | 2019-02-25T08:55:25.000Z | 2019-02-25T08:55:25.000Z | lib/utils/fp16_utils.py | AtriSaxena/ssd-detection-app | 2662d93c8daf0ed2226c4d956037ce14e092d94f | [
"MIT"
] | 8 | 2018-07-29T02:08:18.000Z | 2021-08-02T03:57:55.000Z | import torch
import torch.nn as nn
class tofp16(nn.Module):
def __init__(self):
super(tofp16, self).__init__()
def forward(self, input):
return input.half()
def copy_in_params(net, params):
net_params = list(net.parameters())
for i in range(len(params)):
net_p... | 29.681818 | 90 | 0.667688 | 188 | 1,306 | 4.462766 | 0.430851 | 0.02503 | 0.053635 | 0.047676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.232772 | 1,306 | 43 | 91 | 30.372093 | 0.831337 | 0.227412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab016a212a9ffef638ff8fac1ceb90b8400825ce | 2,186 | py | Python | irc/unimatrix/unimatrix/unimatrix/views/confs.py | Xe/code | d970038329f7c4e4f0ee9dcd1b345741dd0fcc51 | [
"Zlib"
] | 7 | 2015-03-26T07:35:06.000Z | 2021-12-09T00:03:33.000Z | irc/unimatrix/unimatrix/unimatrix/views/confs.py | Xe/code | d970038329f7c4e4f0ee9dcd1b345741dd0fcc51 | [
"Zlib"
] | null | null | null | irc/unimatrix/unimatrix/unimatrix/views/confs.py | Xe/code | d970038329f7c4e4f0ee9dcd1b345741dd0fcc51 | [
"Zlib"
] | 1 | 2020-11-03T22:59:31.000Z | 2020-11-03T22:59:31.000Z | # Copyright (C) 2014 Christine Dodrill <xena@yolo-swag.com> All rights reserved.
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to use this software... | 28.025641 | 80 | 0.655078 | 289 | 2,186 | 4.878893 | 0.50173 | 0.042553 | 0.019858 | 0.032624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.250686 | 2,186 | 77 | 81 | 28.38961 | 0.852259 | 0.410339 | 0 | 0.051282 | 0 | 0 | 0.076619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.051282 | 0.051282 | 0 | 0.179487 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab0233e49f8fac7d86efb0827bdbe82ee4d7dca6 | 9,664 | py | Python | importance_features.py | khoaiha12/multidoc_summarization | 5cb3e978a14cf85ffab281e35e264be99b4726e1 | [
"BSD-3-Clause"
] | null | null | null | importance_features.py | khoaiha12/multidoc_summarization | 5cb3e978a14cf85ffab281e35e264be99b4726e1 | [
"BSD-3-Clause"
] | null | null | null | importance_features.py | khoaiha12/multidoc_summarization | 5cb3e978a14cf85ffab281e35e264be99b4726e1 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import itertools
import util, data
from sklearn.metrics.pairwise import cosine_similarity
import batcher
from absl import flags
from sklearn import svm
import glob
from tqdm import tqdm
import cPickle
FLAGS = flags.FLAGS
class SentRep:
def __init__(self, abs_sent_indices, rel_sent_indices_0_to_... | 39.933884 | 167 | 0.684499 | 1,347 | 9,664 | 4.584261 | 0.172235 | 0.067692 | 0.048097 | 0.032065 | 0.263158 | 0.226073 | 0.157247 | 0.113198 | 0.103482 | 0.103482 | 0 | 0.008462 | 0.229615 | 9,664 | 242 | 168 | 39.933884 | 0.820954 | 0.045944 | 0 | 0.102804 | 0 | 0.004673 | 0.045759 | 0.008559 | 0 | 0 | 0 | 0 | 0.014019 | 0 | null | null | 0 | 0.074766 | null | null | 0.023364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab0574da499364a6746bc1b1be1199e54ce2920c | 989 | py | Python | code/partial_rank_markov_chain/carname2id.py | aburnap/DS2016_DesignFreedom_and_BrandRecognition | a2cdf9d39d795d3f0a4361210d0249cb35f0350a | [
"Apache-1.1"
] | null | null | null | code/partial_rank_markov_chain/carname2id.py | aburnap/DS2016_DesignFreedom_and_BrandRecognition | a2cdf9d39d795d3f0a4361210d0249cb35f0350a | [
"Apache-1.1"
] | null | null | null | code/partial_rank_markov_chain/carname2id.py | aburnap/DS2016_DesignFreedom_and_BrandRecognition | a2cdf9d39d795d3f0a4361210d0249cb35f0350a | [
"Apache-1.1"
] | null | null | null | import numpy as np
attr_list = ['Active', 'Aggressive','Distinctive','Expressive','Innovative','Luxurious','Powerful','Sporty','Well Proportioned','Youthful']
DESIGNS = [elm+str(num) for elm in ['a','b','c','l'] for num in range(0,5)]
morphed_DESIGNS = [elm+str(num) for elm in ['A','B','C','L'] for num in range(0,8)]... | 44.954545 | 139 | 0.714863 | 153 | 989 | 4.30719 | 0.392157 | 0.121396 | 0.075873 | 0.048558 | 0.264036 | 0.264036 | 0.264036 | 0.264036 | 0.127466 | 0.127466 | 0 | 0.004667 | 0.133468 | 989 | 22 | 140 | 44.954545 | 0.764294 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 0.153535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab0c32392ac74f9ace3cc285d78c2894f230265c | 535 | py | Python | Python/Mundo 2/ex43 - indice de massa corporal.py | Breno-Andrade/Curso-em-Video | ccaf4d7cbdebfcdaed7f9b4421c40911ba935139 | [
"MIT"
] | null | null | null | Python/Mundo 2/ex43 - indice de massa corporal.py | Breno-Andrade/Curso-em-Video | ccaf4d7cbdebfcdaed7f9b4421c40911ba935139 | [
"MIT"
] | null | null | null | Python/Mundo 2/ex43 - indice de massa corporal.py | Breno-Andrade/Curso-em-Video | ccaf4d7cbdebfcdaed7f9b4421c40911ba935139 | [
"MIT"
] | null | null | null | # Calcula o IMC.
print(' ====== Exercicio 43 ====== ')
peso = float(input('Digite seu peso em quilos: '))
altura = float(input('digite sua altura em metros: '))
# Calculo do IMC.
imc = peso / (altura ** 2)
# verificando o IMC e exibindo o indice do usuário.
print('\nSeu IMC: {:.1f}'.format(imc))
print('Voce está em ... | 23.26087 | 54 | 0.611215 | 77 | 535 | 4.246753 | 0.558442 | 0.06422 | 0.097859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030023 | 0.190654 | 535 | 22 | 55 | 24.318182 | 0.725173 | 0.149533 | 0 | 0 | 0 | 0 | 0.383592 | 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 |
ab0f43abf8fc9f949a0f54dcac620f53805fc615 | 258 | py | Python | my-python-lab/appstatement.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | my-python-lab/appstatement.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | my-python-lab/appstatement.py | baizoukou/my-python-lab | 510fa2c23a272cb5b9e9a2dca2967797b2a1195b | [
"MIT"
] | null | null | null | ## using the return statement in python
## execute fct and give the respond back
def cube(num): ## expectin one num
return num*num*num ## allows to return value to the caller
print(cube(3)) ## return none
result = cube(4)
print(result)
| 19.846154 | 63 | 0.670543 | 40 | 258 | 4.325 | 0.65 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.236434 | 258 | 12 | 64 | 21.5 | 0.86802 | 0.542636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ab0f9701efc596bb4cb92d1420133e361d4127e1 | 7,066 | py | Python | imagepy/menus/Image/Color/splitandmerge_plgs.py | BioinfoTongLI/imagepy | b86f33f20e872ee8b86471a9ddfbd5ad064fd64d | [
"BSD-4-Clause"
] | 2 | 2019-08-15T06:19:18.000Z | 2021-10-09T15:51:57.000Z | imagepy/menus/Image/Color/splitandmerge_plgs.py | BioinfoTongLI/imagepy | b86f33f20e872ee8b86471a9ddfbd5ad064fd64d | [
"BSD-4-Clause"
] | null | null | null | imagepy/menus/Image/Color/splitandmerge_plgs.py | BioinfoTongLI/imagepy | b86f33f20e872ee8b86471a9ddfbd5ad064fd64d | [
"BSD-4-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 17 10:49:15 2016
@author: yxl
"""
from imagepy import IPy
import numpy as np
from imagepy.ui.canvasframe import CanvasFrame
from imagepy.core.manager import ImageManager, WindowsManager
from imagepy.core.engine import Simple
from skimage import color
class SplitRGB(Simple... | 29.198347 | 157 | 0.518823 | 947 | 7,066 | 3.862724 | 0.19113 | 0.029524 | 0.042646 | 0.062329 | 0.42947 | 0.395571 | 0.298797 | 0.17988 | 0.173866 | 0.156643 | 0 | 0.040157 | 0.281064 | 7,066 | 242 | 157 | 29.198347 | 0.679921 | 0.060572 | 0 | 0.32948 | 0 | 0 | 0.101633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16763 | false | 0 | 0.034682 | 0.080925 | 0.554913 | 0.028902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab0fc222921c40fb0d44ad1d0f0584c5f0ae079e | 1,939 | py | Python | interlagos/utils/base.py | intellihr/interlagos | f09651b460f7f6030fcb9299be45eb83d199f136 | [
"MIT"
] | null | null | null | interlagos/utils/base.py | intellihr/interlagos | f09651b460f7f6030fcb9299be45eb83d199f136 | [
"MIT"
] | null | null | null | interlagos/utils/base.py | intellihr/interlagos | f09651b460f7f6030fcb9299be45eb83d199f136 | [
"MIT"
] | null | null | null | def flatten(x):
"""Flatten a two-dimensional list into one-dimension.
Todo:
* Support flattening n-dimension list into one-dimension.
Args:
x (list of list of any): A two-dimension list.
Returns:
list of any: An one-dimension list.
"""
return [a for i in x for a in i... | 26.202703 | 68 | 0.58329 | 226 | 1,939 | 4.977876 | 0.30531 | 0.08 | 0.048 | 0.053333 | 0.206222 | 0.151111 | 0.151111 | 0.140444 | 0.094222 | 0.094222 | 0 | 0.003037 | 0.320784 | 1,939 | 73 | 69 | 26.561644 | 0.851177 | 0.497679 | 0 | 0 | 0 | 0 | 0.002381 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab10b22631b9685f62c4ee7a472bb88381cf695f | 12,820 | py | Python | lib/pymodules/cmd_admin.py | LimpingNinja/ngenmud | b9005f92ae9e3b12e8db7381264826865c918e3d | [
"MIT"
] | 4 | 2020-04-30T00:26:57.000Z | 2021-12-30T19:15:25.000Z | lib/pymodules/cmd_admin.py | LimpingNinja/ngenmud | b9005f92ae9e3b12e8db7381264826865c918e3d | [
"MIT"
] | null | null | null | lib/pymodules/cmd_admin.py | LimpingNinja/ngenmud | b9005f92ae9e3b12e8db7381264826865c918e3d | [
"MIT"
] | 1 | 2020-08-30T07:05:27.000Z | 2020-08-30T07:05:27.000Z | '''
cmd_admin.py
commands available only to admins.
'''
import mudsys, inform, string, mudsock, mud, hooks, display
import room as mudroom
import char as mudchar
import obj as mudobj
################################################################################
# local variables
#################################... | 34.005305 | 115 | 0.568097 | 1,680 | 12,820 | 4.266071 | 0.204167 | 0.025952 | 0.018976 | 0.037952 | 0.210269 | 0.133529 | 0.105902 | 0.105902 | 0.083159 | 0.074508 | 0 | 0.003563 | 0.277457 | 12,820 | 376 | 116 | 34.095745 | 0.770161 | 0.044852 | 0 | 0.240175 | 0 | 0 | 0.196924 | 0.005162 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017467 | 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 |
ab11b8f1a65b18cae1c528b6a93d26f52d36c6d8 | 1,308 | py | Python | Behavioural/ChainOfResponsibility.py | kgrewal2/design-patterns-python | 4f03e8ee76eba7af0b3773d43a12aa583e2b3060 | [
"MIT"
] | null | null | null | Behavioural/ChainOfResponsibility.py | kgrewal2/design-patterns-python | 4f03e8ee76eba7af0b3773d43a12aa583e2b3060 | [
"MIT"
] | null | null | null | Behavioural/ChainOfResponsibility.py | kgrewal2/design-patterns-python | 4f03e8ee76eba7af0b3773d43a12aa583e2b3060 | [
"MIT"
] | null | null | null | # Used when we want to process an array of requests through a chain of handlers. Respective handler processes the request depending on the value, and send the request to the successor handler if not handled at that handler.
class Handler:
def __init__(self, successor):
self.successor = successor
def ... | 26.16 | 223 | 0.64526 | 159 | 1,308 | 5.226415 | 0.402516 | 0.054152 | 0.078219 | 0.120337 | 0.102286 | 0.069795 | 0 | 0 | 0 | 0 | 0 | 0.012487 | 0.265291 | 1,308 | 49 | 224 | 26.693878 | 0.852237 | 0.16896 | 0 | 0.212121 | 0 | 0 | 0.081106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0 | 0 | 0.484848 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab15de3844fc79b171a2ed4d31c6efc5cade326e | 1,324 | py | Python | unet/model.py | sdll/protodune-unet | a3d8be349c1a0ae83eac0cfd1ef0817de1a4b2d3 | [
"MIT"
] | null | null | null | unet/model.py | sdll/protodune-unet | a3d8be349c1a0ae83eac0cfd1ef0817de1a4b2d3 | [
"MIT"
] | null | null | null | unet/model.py | sdll/protodune-unet | a3d8be349c1a0ae83eac0cfd1ef0817de1a4b2d3 | [
"MIT"
] | null | null | null | """ Full assembly of the parts to form the complete network """
import torch.nn as nn
from .fragments import DoubleConv, Up, Down, OutConv
class UNet(nn.Module):
def __init__(self, n_channels, n_classes, feature_dim=64, is_bilinear=False):
super().__init__()
self.n_channels = n_channels
s... | 35.783784 | 81 | 0.612538 | 196 | 1,324 | 3.928571 | 0.295918 | 0.246753 | 0.090909 | 0.103896 | 0.345455 | 0.153247 | 0.088312 | 0 | 0 | 0 | 0 | 0.047867 | 0.274169 | 1,324 | 36 | 82 | 36.777778 | 0.753382 | 0.041541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
ab1a55b8db8dc8c41cc60675c09ab99f7e0fec4b | 396 | py | Python | tpmp_db/dbms/migrations/0021_location_description.py | tpmp-inra/tpmp_bd | e50e9afe9e338d62e527082db2579fa0c63d7c28 | [
"MIT"
] | null | null | null | tpmp_db/dbms/migrations/0021_location_description.py | tpmp-inra/tpmp_bd | e50e9afe9e338d62e527082db2579fa0c63d7c28 | [
"MIT"
] | null | null | null | tpmp_db/dbms/migrations/0021_location_description.py | tpmp-inra/tpmp_bd | e50e9afe9e338d62e527082db2579fa0c63d7c28 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-14 08:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dbms', '0020_auto_20210914_1011'),
]
operations = [
migrations.AddField(
model_name='location',
name='description',
... | 20.842105 | 58 | 0.60101 | 43 | 396 | 5.44186 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109155 | 0.282828 | 396 | 18 | 59 | 22 | 0.714789 | 0.113636 | 0 | 0 | 1 | 0 | 0.131805 | 0.065903 | 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 |
ab1a89efa4104521b2733a531177c2749813e361 | 2,779 | py | Python | fruitsales/views.py | khajime/fruit-sales-management-console | 4f802578cd9ddcdbbc3259263d0d19df11432a0c | [
"MIT"
] | null | null | null | fruitsales/views.py | khajime/fruit-sales-management-console | 4f802578cd9ddcdbbc3259263d0d19df11432a0c | [
"MIT"
] | 16 | 2019-02-21T14:12:01.000Z | 2019-03-11T08:00:15.000Z | fruitsales/views.py | khajime/fruit-sales-management-console | 4f802578cd9ddcdbbc3259263d0d19df11432a0c | [
"MIT"
] | null | null | null | import logging
from django.shortcuts import render
from django.views.generic import ListView, CreateView, DetailView, UpdateView, DeleteView
from django.urls import reverse_lazy
from django.core.exceptions import ValidationError
from django.http import Http404
from django.contrib.auth.mixins import LoginRequiredMixin... | 28.947917 | 110 | 0.690896 | 294 | 2,779 | 6.360544 | 0.380952 | 0.037433 | 0.040107 | 0.082888 | 0.202139 | 0.202139 | 0.202139 | 0.054545 | 0.054545 | 0.054545 | 0 | 0.004117 | 0.213386 | 2,779 | 95 | 111 | 29.252632 | 0.851327 | 0.118028 | 0 | 0.181818 | 0 | 0 | 0.142976 | 0.086286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.218182 | 0.018182 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab1d65f11b2a0c1d1af1e58d5b6b6b266c6970c0 | 3,430 | py | Python | plaso/parsers/winreg_plugins/outlook.py | nflexfo/plaso | 5da7aa51c39b593773687fdf20a93ba35fc492b4 | [
"Apache-2.0"
] | 1 | 2020-12-04T10:26:34.000Z | 2020-12-04T10:26:34.000Z | plaso/parsers/winreg_plugins/outlook.py | nflexfo/plaso | 5da7aa51c39b593773687fdf20a93ba35fc492b4 | [
"Apache-2.0"
] | null | null | null | plaso/parsers/winreg_plugins/outlook.py | nflexfo/plaso | 5da7aa51c39b593773687fdf20a93ba35fc492b4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""This file contains an Outlook search MRU Registry parser."""
from __future__ import unicode_literals
from plaso.containers import events
from plaso.containers import time_events
from plaso.lib import definitions
from plaso.parsers import winreg
from plaso.parsers.winreg_plugins import inter... | 36.105263 | 77 | 0.723615 | 405 | 3,430 | 5.97284 | 0.387654 | 0.048367 | 0.033072 | 0.04754 | 0.151716 | 0.151716 | 0.151716 | 0.151716 | 0.089293 | 0.089293 | 0 | 0.01787 | 0.184257 | 3,430 | 94 | 78 | 36.489362 | 0.846676 | 0.420117 | 0 | 0.1 | 0 | 0 | 0.132115 | 0.095039 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ab21a161e33d78d9206e6841eae5ad158414b0e9 | 499 | py | Python | aiosfstream/_metadata.py | hakidehari/aiosfstream | 6d0ab3a0bfece3270cfd7ba23ad350290de2e6b1 | [
"MIT"
] | 42 | 2018-10-31T20:08:09.000Z | 2022-03-24T11:41:01.000Z | aiosfstream/_metadata.py | hakidehari/aiosfstream | 6d0ab3a0bfece3270cfd7ba23ad350290de2e6b1 | [
"MIT"
] | 18 | 2018-09-18T15:10:05.000Z | 2022-03-10T19:09:41.000Z | aiosfstream/_metadata.py | hakidehari/aiosfstream | 6d0ab3a0bfece3270cfd7ba23ad350290de2e6b1 | [
"MIT"
] | 18 | 2019-02-01T02:46:01.000Z | 2022-03-16T19:09:31.000Z | """Package metadata"""
TITLE = "aiosfstream"
DESCRIPTION = "Salesforce Streaming API client for asyncio"
KEYWORDS = "salesforce asyncio aiohttp comet cometd bayeux push streaming"
URL = "https://github.com/robertmrk/aiosfstream"
PROJECT_URLS = {
"CI": "https://travis-ci.org/robertmrk/aiosfstream",
"Coverage": "... | 35.642857 | 74 | 0.729459 | 59 | 499 | 6.135593 | 0.711864 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.116232 | 499 | 13 | 75 | 38.384615 | 0.814059 | 0.032064 | 0 | 0 | 0 | 0 | 0.687631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab2274935497dc55e0e9964a31aeefb1cc208773 | 1,312 | py | Python | iris-predictor/views.py | s18k/iris-predictor | 44ff07175d05dcaba2110b11238e6a9a06c15f07 | [
"MIT"
] | null | null | null | iris-predictor/views.py | s18k/iris-predictor | 44ff07175d05dcaba2110b11238e6a9a06c15f07 | [
"MIT"
] | null | null | null | iris-predictor/views.py | s18k/iris-predictor | 44ff07175d05dcaba2110b11238e6a9a06c15f07 | [
"MIT"
] | null | null | null | from iris-predictor import app
from flask import Flask,render_template,request
from sklearn.datasets import load_iris
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import train_test_split
import pickle
import numpy as np
@app.route("/")
def home():
iris = load_iris()
model = KN... | 35.459459 | 80 | 0.706555 | 176 | 1,312 | 5.090909 | 0.352273 | 0.049107 | 0.03125 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.167683 | 1,312 | 36 | 81 | 36.444444 | 0.81685 | 0 | 0 | 0 | 0 | 0 | 0.147866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.205882 | 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 |
ab2626cd2c6b2fe17afde44bec0e814d50da61b7 | 2,862 | py | Python | resources/file-level/buildscripts/comp_test_NET-525.py | d-fact/CSlicer | 809a2799fa0979bedec9c575609c0d5ec270fbac | [
"Apache-2.0"
] | 2 | 2021-06-03T14:27:27.000Z | 2021-06-03T20:15:02.000Z | resources/file-level/buildscripts/comp_test_NET-525.py | d-fact/CSlicer | 809a2799fa0979bedec9c575609c0d5ec270fbac | [
"Apache-2.0"
] | null | null | null | resources/file-level/buildscripts/comp_test_NET-525.py | d-fact/CSlicer | 809a2799fa0979bedec9c575609c0d5ec270fbac | [
"Apache-2.0"
] | 3 | 2021-06-03T20:14:29.000Z | 2021-11-23T07:51:19.000Z | import os
import os.path
import sys
import csv
import shutil
import subprocess as sub
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) # Dir of this script
CONFIG_FILE = SCRIPT_DIR + '/../definer-configs/NET-525.properties'
TEST_CLASSES_BACKUP_DIR = SCRIPT_DIR + '/../_test_classes_backup'
def isexec (fpath):
... | 35.333333 | 126 | 0.588749 | 366 | 2,862 | 4.483607 | 0.300546 | 0.036563 | 0.048751 | 0.039001 | 0.271786 | 0.244973 | 0.244973 | 0.244973 | 0.244973 | 0.177331 | 0 | 0.013731 | 0.262055 | 2,862 | 80 | 127 | 35.775 | 0.763258 | 0.021314 | 0 | 0.219178 | 0 | 0 | 0.177984 | 0.093638 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082192 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab27fa1da5e8215b686ba725c3f440a5082b58bb | 2,824 | py | Python | train_pytorch.py | olavosamp/kaggle-real-or-not | fffd0716301362af8da403e86cae6b0d54cf5955 | [
"MIT"
] | null | null | null | train_pytorch.py | olavosamp/kaggle-real-or-not | fffd0716301362af8da403e86cae6b0d54cf5955 | [
"MIT"
] | 13 | 2020-10-25T23:00:23.000Z | 2021-02-26T21:42:45.000Z | train_pytorch.py | olavosamp/kaggle-real-or-not | fffd0716301362af8da403e86cae6b0d54cf5955 | [
"MIT"
] | null | null | null | from pathlib import Path
import nltk
import torch
import libs.models as models
import libs.train as train
import libs.commons as commons
from libs.dataset import TextDataset
if __name__ == "__main__":
nltk.download('stopwords')
train_processed_path = Path(commons.dataset_path) / "train_processed.csv"
... | 41.529412 | 115 | 0.672096 | 329 | 2,824 | 5.510638 | 0.355623 | 0.030336 | 0.019857 | 0.026475 | 0.212907 | 0.180916 | 0.142306 | 0.142306 | 0.142306 | 0.08053 | 0 | 0.020267 | 0.231232 | 2,824 | 67 | 116 | 42.149254 | 0.814832 | 0.221317 | 0 | 0 | 0 | 0 | 0.139918 | 0.056699 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0 | false | 0 | 0.155556 | 0 | 0.155556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab2a8a587b0adb269394761ae4bb665d169ebb43 | 8,144 | py | Python | lth_reproduction/src/pruning.py | grantgasser/reproduce-lottery-ticket | d30af02827428307ba12af4cbc396eb1d72c51bb | [
"MIT"
] | 1 | 2020-05-07T08:59:03.000Z | 2020-05-07T08:59:03.000Z | lth_reproduction/src/pruning.py | grantgasser/reproduce-lottery-ticket-hypothesis | d30af02827428307ba12af4cbc396eb1d72c51bb | [
"MIT"
] | 3 | 2020-04-29T23:18:55.000Z | 2022-03-12T00:26:24.000Z | lth_reproduction/src/pruning.py | grantgasser/reproduce-lottery-ticket-hypothesis | d30af02827428307ba12af4cbc396eb1d72c51bb | [
"MIT"
] | null | null | null | import torch
import torch.nn.utils.prune as prune
import numpy as np
from copy import deepcopy
import sys
sys.path.append('../src')
from train import train
from evaluate import test
class PruneModel:
def __init__(self, network, batch_size, train_loader, val_loader, test_loader, optimizer, epochs, scheduler, devi... | 40.72 | 139 | 0.597127 | 950 | 8,144 | 4.927368 | 0.231579 | 0.039949 | 0.035249 | 0.046144 | 0.278146 | 0.185217 | 0.133091 | 0.059389 | 0.059389 | 0.059389 | 0 | 0.010589 | 0.315815 | 8,144 | 199 | 140 | 40.924623 | 0.829505 | 0.309553 | 0 | 0.145631 | 0 | 0 | 0.015339 | 0 | 0 | 0 | 0 | 0.01005 | 0.019417 | 1 | 0.067961 | false | 0 | 0.067961 | 0 | 0.174757 | 0.07767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ab2bc6a388f0a9dae058aa5fe31b66c9c195223d | 7,035 | py | Python | Code/binaryheap.py | MondaleFelix/CS-2.1-Trees-Sorting | ad6da0898a171ec90d65f02864f0e865cd52a712 | [
"MIT"
] | 7 | 2019-01-25T18:48:31.000Z | 2019-09-11T00:43:01.000Z | Code/binaryheap.py | MondaleFelix/CS-2.1-Trees-Sorting | ad6da0898a171ec90d65f02864f0e865cd52a712 | [
"MIT"
] | 2 | 2019-11-11T01:21:55.000Z | 2019-12-17T00:41:48.000Z | Code/binaryheap.py | MondaleFelix/CS-2.1-Trees-Sorting | ad6da0898a171ec90d65f02864f0e865cd52a712 | [
"MIT"
] | 19 | 2019-10-24T22:56:51.000Z | 2022-02-16T18:01:19.000Z | #!python
class BinaryMinHeap(object):
"""BinaryMinHeap: a partially ordered collection with efficient methods to
insert new items in partial order and to access and remove its minimum item.
Items are stored in a dynamic array that implicitly represents a complete
binary tree with root node at index 0 ... | 40.901163 | 80 | 0.611514 | 1,003 | 7,035 | 4.200399 | 0.174477 | 0.036316 | 0.039164 | 0.028483 | 0.478756 | 0.444814 | 0.419179 | 0.377166 | 0.355566 | 0.300024 | 0 | 0.010034 | 0.291684 | 7,035 | 171 | 81 | 41.140351 | 0.835441 | 0.44307 | 0 | 0.32967 | 0 | 0 | 0.088901 | 0 | 0 | 0 | 0 | 0.052632 | 0.032967 | 1 | 0.164835 | false | 0 | 0 | 0 | 0.307692 | 0.10989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ab2bdb370ded1209a0d8481356739507da439170 | 1,784 | py | Python | text_normalizer/library/punctuation.py | Yoctol/text-normalizer | 3609c10cd229c08b4623531e82d2292fc370734c | [
"MIT"
] | 16 | 2018-04-16T08:59:34.000Z | 2021-01-21T06:05:45.000Z | text_normalizer/library/punctuation.py | Yoctol/text-normalizer | 3609c10cd229c08b4623531e82d2292fc370734c | [
"MIT"
] | 12 | 2018-04-16T06:54:07.000Z | 2020-04-03T19:36:07.000Z | text_normalizer/library/punctuation.py | Yoctol/text-normalizer | 3609c10cd229c08b4623531e82d2292fc370734c | [
"MIT"
] | 3 | 2019-06-03T02:21:46.000Z | 2021-09-16T11:57:03.000Z | from ..factory import ReplacePatternWithToken
CHINESE_PUNCTUATIONS = r"。「」﹁﹂『 』、‧( )《》〈〉 ﹏﹏﹏……—~,?;:[]【 】!"
ENGLISH_PUNCTUATIONS = \
r"\!\#\$\%\&\(\)\*\+\,\-\.\/\:\;\?\@\[\]\{\}\|\~\`\_\^\<\>\=\'\"\\"
ENGLISH_PUNCTUATIONS_WITHOUT_ENDPOINT = ENGLISH_PUNCTUATIONS.replace("\.", "")
ENGLISH_PUNCTUATIONS_WITHOUT_UNDERS... | 31.298246 | 80 | 0.710762 | 163 | 1,784 | 7.472393 | 0.196319 | 0.090312 | 0.151888 | 0.168309 | 0.752874 | 0.667488 | 0.631363 | 0.488506 | 0.456486 | 0.299672 | 0 | 0 | 0.13565 | 1,784 | 56 | 81 | 31.857143 | 0.778859 | 0 | 0 | 0.48 | 0 | 0 | 0.139574 | 0.071188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 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 |
ab3f7931c9b6cb5d460628f39cd67963d4772e6b | 345 | py | Python | onlinecourse/migrations/0008_remove_instructor_total_learners.py | Trivikram-Sharma/django_assessment1 | 3d7788ef3ad3de6e7f8a906feaec719491f027ed | [
"Apache-2.0"
] | null | null | null | onlinecourse/migrations/0008_remove_instructor_total_learners.py | Trivikram-Sharma/django_assessment1 | 3d7788ef3ad3de6e7f8a906feaec719491f027ed | [
"Apache-2.0"
] | null | null | null | onlinecourse/migrations/0008_remove_instructor_total_learners.py | Trivikram-Sharma/django_assessment1 | 3d7788ef3ad3de6e7f8a906feaec719491f027ed | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.3 on 2022-04-04 10:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('onlinecourse', '0007_auto_20220216_1913'),
]
operations = [
migrations.RemoveField(
model_name='instructor',
name='total_lea... | 19.166667 | 52 | 0.611594 | 36 | 345 | 5.722222 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.281159 | 345 | 17 | 53 | 20.294118 | 0.705645 | 0.130435 | 0 | 0 | 1 | 0 | 0.197987 | 0.077181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab40d905a1c77cd98adcba1e64210cee6f95d8e2 | 572 | py | Python | lfs/supplier/models.py | naro/django-lfs | 312404370e497d00aa0f7221dc55a70a20490fb5 | [
"BSD-3-Clause"
] | null | null | null | lfs/supplier/models.py | naro/django-lfs | 312404370e497d00aa0f7221dc55a70a20490fb5 | [
"BSD-3-Clause"
] | null | null | null | lfs/supplier/models.py | naro/django-lfs | 312404370e497d00aa0f7221dc55a70a20490fb5 | [
"BSD-3-Clause"
] | null | null | null | # django imports
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Supplier(models.Model):
"""
* A supplier holds all shop supplier related information
* A Supplier is only created by the system administrator
"""
... | 30.105263 | 67 | 0.716783 | 75 | 572 | 5.346667 | 0.666667 | 0.074813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.187063 | 572 | 18 | 68 | 31.777778 | 0.851613 | 0.225524 | 0 | 0 | 0 | 0 | 0.014184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ab41279e52d1c7490b8a00addbab8e7f44970e0f | 471 | py | Python | leetcode/jumpGame.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | leetcode/jumpGame.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | leetcode/jumpGame.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/jump-game/
class Solution:
def canJump(self, nums: list[int]) -> bool:
last = 0
for index in range(len(nums)):
if index > last:
return False
last = max(last, index + nums[index])
if last >= len(nums) - 1:
... | 23.55 | 49 | 0.526539 | 63 | 471 | 3.936508 | 0.507937 | 0.056452 | 0.112903 | 0.169355 | 0.201613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.329087 | 471 | 20 | 50 | 23.55 | 0.746835 | 0.084926 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.357143 | 0.142857 | 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 |
ab427ac1c0707eb99bb629131a70f51d5a890793 | 5,029 | py | Python | pds_pipelines/RedisLock.py | eabovre/PDS-Pipelines | 4a7a82fa3c309485154e632946c7c95008def228 | [
"Unlicense"
] | null | null | null | pds_pipelines/RedisLock.py | eabovre/PDS-Pipelines | 4a7a82fa3c309485154e632946c7c95008def228 | [
"Unlicense"
] | null | null | null | pds_pipelines/RedisLock.py | eabovre/PDS-Pipelines | 4a7a82fa3c309485154e632946c7c95008def228 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import redis
from pds_pipelines.config import redis_info as ri
class RedisLock(object):
"""A single-point of access 'lock' for Redis Queues
"""
def __init__(self, name):
"""
Parameters
----------
name : str
The name of the RedisLock object
... | 21.309322 | 83 | 0.460131 | 541 | 5,029 | 4.229205 | 0.236599 | 0.036713 | 0.048077 | 0.058129 | 0.403409 | 0.29764 | 0.198864 | 0.176136 | 0.176136 | 0.176136 | 0 | 0.002058 | 0.420362 | 5,029 | 235 | 84 | 21.4 | 0.782847 | 0.444422 | 0 | 0.155556 | 0 | 0 | 0.016374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.044444 | 0 | 0.511111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab42f258a8dafe09033ae23809b6f917452e832b | 1,305 | py | Python | dfs/datanode.py | largescale-dfss/distributed-file-system | 5e985bf80debb6057fbd5ea457c8f91613591e69 | [
"MIT"
] | 1 | 2015-12-19T01:58:12.000Z | 2015-12-19T01:58:12.000Z | datanode.py | largescale-dfss/manager | cd360a7d201160781e7a154dddb5a27fa20252ca | [
"MIT"
] | null | null | null | datanode.py | largescale-dfss/manager | cd360a7d201160781e7a154dddb5a27fa20252ca | [
"MIT"
] | null | null | null | import os
class Datanode:
root = "/var/dfs_dn"
def __init__(self, datanode_id):
self.root = self.root + datanode_id
if not (os.path.isdir(self.root) and os.path.exists(self.root)):
try:
os.makedirs(self.root)
except OSError as exception:
... | 33.461538 | 76 | 0.609962 | 177 | 1,305 | 4.293785 | 0.265537 | 0.105263 | 0.111842 | 0.055263 | 0.357895 | 0.315789 | 0.315789 | 0.242105 | 0.242105 | 0.242105 | 0 | 0.002139 | 0.283525 | 1,305 | 38 | 77 | 34.342105 | 0.810695 | 0 | 0 | 0.193548 | 0 | 0 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab48cff309f9e54eadb23cc98268c2f8c9a29aac | 706 | py | Python | mmseg/models/losses/__init__.py | SeHwanJoo/mmsegmentation_body | 31c4bf27c3dc0a84bfbb06a0c017c5908c17f0ac | [
"Apache-2.0"
] | null | null | null | mmseg/models/losses/__init__.py | SeHwanJoo/mmsegmentation_body | 31c4bf27c3dc0a84bfbb06a0c017c5908c17f0ac | [
"Apache-2.0"
] | null | null | null | mmseg/models/losses/__init__.py | SeHwanJoo/mmsegmentation_body | 31c4bf27c3dc0a84bfbb06a0c017c5908c17f0ac | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
from .accuracy import Accuracy, accuracy
from .cross_entropy_loss import (CrossEntropyLoss, binary_cross_entropy,
cross_entropy, mask_cross_entropy)
from .dice_loss import DiceLoss
from .lovasz_loss import LovaszLoss
from .utils import red... | 41.529412 | 72 | 0.749292 | 79 | 706 | 6.35443 | 0.35443 | 0.167331 | 0.071713 | 0.083665 | 0.262948 | 0.151394 | 0.151394 | 0 | 0 | 0 | 0 | 0 | 0.155807 | 706 | 16 | 73 | 44.125 | 0.842282 | 0.063739 | 0 | 0 | 0 | 0 | 0.267071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
ab4df2cba4d5cfd9a770749488e2fbe636249c03 | 320 | py | Python | 2019/1.py | bucsi/aoc | 01c342486370d27f5a16d8944e043710502ae1e6 | [
"Unlicense"
] | 2 | 2019-12-02T15:37:09.000Z | 2019-12-04T12:01:29.000Z | 2019/1.py | bucsi/aoc | 01c342486370d27f5a16d8944e043710502ae1e6 | [
"Unlicense"
] | null | null | null | 2019/1.py | bucsi/aoc | 01c342486370d27f5a16d8944e043710502ae1e6 | [
"Unlicense"
] | 1 | 2019-12-05T19:37:12.000Z | 2019-12-05T19:37:12.000Z | def calculate(mass):
if mass < 6:
return 0
return int(mass/3-2) + calculate(int(mass/3-2))
with open("1.txt", "r") as infile:
print("First part solution: ", sum([int(int(x)/3)-2 for x in infile.readlines()]))
print("Second part solution: ", sum([calculate(int(x)) for x in infile.readlines()]))
| 35.555556 | 89 | 0.621875 | 53 | 320 | 3.754717 | 0.509434 | 0.030151 | 0.080402 | 0.090452 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034615 | 0.1875 | 320 | 8 | 90 | 40 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.153125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
ab5150fb1c36863e54cbfd177db88d8a4bfe1261 | 24,755 | py | Python | libs/cocos/cocosnode.py | HieuLsw/blobjob.editor | c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | libs/cocos/cocosnode.py | HieuLsw/blobjob.editor | c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | libs/cocos/cocosnode.py | HieuLsw/blobjob.editor | c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # ----------------------------------------------------------------------------
# cocos2d
# Copyright (c) 2008 Daniel Moisset, Ricardo Quesada, Rayentray Tappa, Lucio Torre
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follow... | 31.65601 | 110 | 0.590628 | 3,031 | 24,755 | 4.718905 | 0.168261 | 0.010487 | 0.014612 | 0.011186 | 0.337342 | 0.291407 | 0.248409 | 0.204433 | 0.150947 | 0.128015 | 0 | 0.004667 | 0.324823 | 24,755 | 781 | 111 | 31.696543 | 0.851083 | 0.177015 | 0 | 0.282353 | 0 | 0 | 0.03994 | 0.001645 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002941 | 0.023529 | 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 |
ab54eb2ff4d0bad7493cde6b117ddc915b58f573 | 7,101 | py | Python | tests/test_wsgi_spec.py | skrytebane/meinheld | 87a05b1fdd3e359454dc907343d63592590d07e5 | [
"BSD-3-Clause"
] | 1,186 | 2015-01-05T05:52:40.000Z | 2022-03-31T09:44:46.000Z | tests/test_wsgi_spec.py | skrytebane/meinheld | 87a05b1fdd3e359454dc907343d63592590d07e5 | [
"BSD-3-Clause"
] | 65 | 2015-03-22T07:30:43.000Z | 2021-12-31T06:45:26.000Z | tests/test_wsgi_spec.py | skrytebane/meinheld | 87a05b1fdd3e359454dc907343d63592590d07e5 | [
"BSD-3-Clause"
] | 84 | 2015-06-02T06:26:49.000Z | 2022-02-01T09:58:23.000Z | # -*- coding: utf-8 -*-
from collections import OrderedDict
import os
import sys
from base import *
import requests
ASSERT_RESPONSE = b"Hello world!"
RESPONSE = [b"Hello ", b"world!"]
class App(BaseApp):
environ = None
def __call__(self, environ, start_response):
status = '200 OK'
response_... | 28.983673 | 75 | 0.63484 | 877 | 7,101 | 4.989738 | 0.1813 | 0.04319 | 0.052102 | 0.047989 | 0.640082 | 0.577468 | 0.547303 | 0.508912 | 0.443556 | 0.430759 | 0 | 0.029338 | 0.212787 | 7,101 | 244 | 76 | 29.102459 | 0.753488 | 0.059569 | 0 | 0.540698 | 0 | 0 | 0.168823 | 0.010382 | 0 | 0 | 0 | 0 | 0.273256 | 1 | 0.203488 | false | 0 | 0.02907 | 0.063953 | 0.389535 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab567413c7ffab37af4913c9434718eeb4a28119 | 435 | py | Python | lfd/utils/reproduction.py | Syhen/learn-from-datasets | 18b5104f1ea9f6b4e950e03958f27d7a12fdadbd | [
"MIT"
] | null | null | null | lfd/utils/reproduction.py | Syhen/learn-from-datasets | 18b5104f1ea9f6b4e950e03958f27d7a12fdadbd | [
"MIT"
] | null | null | null | lfd/utils/reproduction.py | Syhen/learn-from-datasets | 18b5104f1ea9f6b4e950e03958f27d7a12fdadbd | [
"MIT"
] | null | null | null | """
@created by: heyao
@created at: 2021-12-09 13:30:09
"""
import random
import os
import numpy as np
import torch
def seed_everything(seed=42):
random.seed(seed)
os.environ['PYTHONASSEED'] = str(seed)
np.random.seed(seed)
torch.manual_seed(seed)
if torch.cuda.is_available():
torch.cuda.... | 20.714286 | 49 | 0.687356 | 62 | 435 | 4.758065 | 0.548387 | 0.108475 | 0.094915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.190805 | 435 | 20 | 50 | 21.75 | 0.792614 | 0.117241 | 0 | 0 | 0 | 0 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ab5bb38dd9081444bd7c5c12e04e0fec2f2f913c | 2,646 | py | Python | reports/speedup.py | Lessica/StatusHub | 2771f74a51a71316a435a352ef8675d3d7f16a97 | [
"MIT"
] | null | null | null | reports/speedup.py | Lessica/StatusHub | 2771f74a51a71316a435a352ef8675d3d7f16a97 | [
"MIT"
] | null | null | null | reports/speedup.py | Lessica/StatusHub | 2771f74a51a71316a435a352ef8675d3d7f16a97 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import requests
import platform
if platform.system() != 'Windows':
from termcolor import colored
else:
def colored(string, color):
return string
import json
print colored('Jiangsu Telecom Service Speed Up Script 1.0', 'yellow')
print colored('Author: i_82 <i.82@me.com>', 'yellow'... | 35.28 | 141 | 0.639456 | 386 | 2,646 | 4.326425 | 0.352332 | 0.129341 | 0.032335 | 0.046707 | 0.430539 | 0.346707 | 0.346707 | 0.346707 | 0.346707 | 0.317365 | 0 | 0.044631 | 0.144747 | 2,646 | 74 | 142 | 35.756757 | 0.693327 | 0.111111 | 0 | 0.234375 | 0 | 0.015625 | 0.410836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab5bc636f5e94fa1e520e672cae77296b0045842 | 2,636 | py | Python | src/generate.py | averasko/gtfs-metropoliten-by | 6466f9340572a25a77a3e94d187e9c0ec506c160 | [
"MIT"
] | null | null | null | src/generate.py | averasko/gtfs-metropoliten-by | 6466f9340572a25a77a3e94d187e9c0ec506c160 | [
"MIT"
] | null | null | null | src/generate.py | averasko/gtfs-metropoliten-by | 6466f9340572a25a77a3e94d187e9c0ec506c160 | [
"MIT"
] | null | null | null | # - *- coding: utf- 8 - *-
import urllib
import re
TEST_URL = "file:input/schedule.html"
URL = "http://metropoliten.by/information/schedule/"
# loading STOPS data
with open('./data/stops.txt', 'r') as file_stops:
STOP_HEADERS = file_stops.readline().split(',')
STOPS = map(lambda l: l.rstrip('\r\n').split(','), f... | 27.747368 | 87 | 0.654021 | 433 | 2,636 | 3.755196 | 0.26097 | 0.02091 | 0.071956 | 0.01968 | 0.299508 | 0.223247 | 0.156212 | 0.082411 | 0.082411 | 0 | 0 | 0.032389 | 0.156677 | 2,636 | 94 | 88 | 28.042553 | 0.699055 | 0.137329 | 0 | 0.047619 | 0 | 0 | 0.106938 | 0.064074 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.142857 | false | 0 | 0.031746 | 0.063492 | 0.333333 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ab5d967805da6ee543e7f7add65c8c639e2fe238 | 412 | py | Python | app/jobs/migrations/0003_listing_currency.py | LeanidHreska/artistify-backend | 4b3b4c5072dc9c676d2e98fe4c569b66c32bff0b | [
"MIT"
] | null | null | null | app/jobs/migrations/0003_listing_currency.py | LeanidHreska/artistify-backend | 4b3b4c5072dc9c676d2e98fe4c569b66c32bff0b | [
"MIT"
] | null | null | null | app/jobs/migrations/0003_listing_currency.py | LeanidHreska/artistify-backend | 4b3b4c5072dc9c676d2e98fe4c569b66c32bff0b | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-25 13:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("jobs", "0002_auto_20210425_1615"),
]
operations = [
migrations.AddField(
model_name="listing",
name="cur... | 21.684211 | 63 | 0.567961 | 42 | 412 | 5.452381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109929 | 0.315534 | 412 | 18 | 64 | 22.888889 | 0.702128 | 0.104369 | 0 | 0 | 1 | 0 | 0.123209 | 0.065903 | 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 |
ab63f8fddfb06968157546c25dbdd0dbc4dee8d2 | 213 | py | Python | languages/python/problem-xn.py | sergev/vak-opensource | e1912b83dabdbfab2baee5e7a9a40c3077349381 | [
"Apache-2.0"
] | 34 | 2016-10-29T19:50:34.000Z | 2022-02-12T21:27:43.000Z | languages/python/problem-xn.py | sergev/vak-opensource | e1912b83dabdbfab2baee5e7a9a40c3077349381 | [
"Apache-2.0"
] | null | null | null | languages/python/problem-xn.py | sergev/vak-opensource | e1912b83dabdbfab2baee5e7a9a40c3077349381 | [
"Apache-2.0"
] | 19 | 2017-06-19T23:04:00.000Z | 2021-11-13T15:00:41.000Z | #!/usr/bin/python
# -*- encoding: utf-8 -*-
for n in range(2,10):
for k in range(1,100):
x = n * (10**k - n)
if x % (10*n - 1) == 0:
v = 10 * x / (10*n - 1) + n
print "Для", n, "решение =", v
break
| 19.363636 | 33 | 0.460094 | 42 | 213 | 2.333333 | 0.547619 | 0.142857 | 0.081633 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125828 | 0.29108 | 213 | 10 | 34 | 21.3 | 0.523179 | 0.187793 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db3c050ccc2504b2af020fc11c4627e742becdee | 1,323 | py | Python | src/cbutils/cbutils.py | snarasim123/cbutils | 5c00c83ccd5e731dc53bd4b4dde401bcefec7df7 | [
"MIT"
] | null | null | null | src/cbutils/cbutils.py | snarasim123/cbutils | 5c00c83ccd5e731dc53bd4b4dde401bcefec7df7 | [
"MIT"
] | null | null | null | src/cbutils/cbutils.py | snarasim123/cbutils | 5c00c83ccd5e731dc53bd4b4dde401bcefec7df7 | [
"MIT"
] | null | null | null | import glob
import shutil
import os
from pdf2image import convert_from_path, convert_from_bytes
# main entry
def run_help():
print("Hello !")
pass
def run_compress():
print("Hello !")
pass
def run_folder_pdfs_2_cbz(dir_name):
full_name = dir_name + "/" + "*.pdf"
full_list = glob.glob(full_... | 23.625 | 88 | 0.657596 | 194 | 1,323 | 4.128866 | 0.345361 | 0.069913 | 0.049938 | 0.042447 | 0.088639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013474 | 0.214664 | 1,323 | 55 | 89 | 24.054545 | 0.757459 | 0.007559 | 0 | 0.219512 | 0 | 0 | 0.080092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.146341 | 0.097561 | 0 | 0.219512 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db4126c7940239d91a775f8e4fb48aca638a6b0b | 1,279 | py | Python | courseware/tasks_test.py | mitodl/mit-xpro | 981d6c87d963837f0b9ccdd996067fe81394dba4 | [
"BSD-3-Clause"
] | 10 | 2019-02-20T18:41:32.000Z | 2021-07-26T10:39:58.000Z | courseware/tasks_test.py | mitodl/mit-xpro | 981d6c87d963837f0b9ccdd996067fe81394dba4 | [
"BSD-3-Clause"
] | 2,226 | 2019-02-20T20:03:57.000Z | 2022-03-31T11:18:56.000Z | courseware/tasks_test.py | mitodl/mit-xpro | 981d6c87d963837f0b9ccdd996067fe81394dba4 | [
"BSD-3-Clause"
] | 4 | 2020-08-26T19:26:02.000Z | 2021-03-09T17:46:47.000Z | """Courseware tasks"""
import pytest
from users.factories import UserFactory
from courseware import tasks
@pytest.mark.django_db
def test_create_edx_user_from_id(mocker):
"""Test that create_edx_user_from_id loads a user and calls the API method to create an edX user"""
patch_create_user = mocker.patch("cour... | 38.757576 | 111 | 0.791243 | 204 | 1,279 | 4.617647 | 0.191176 | 0.104034 | 0.058386 | 0.072187 | 0.769639 | 0.701699 | 0.640127 | 0.557325 | 0.557325 | 0.523355 | 0 | 0 | 0.12588 | 1,279 | 32 | 112 | 39.96875 | 0.842576 | 0.239249 | 0 | 0.380952 | 0 | 0 | 0.120798 | 0.120798 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
db414c81a5d51f604e4d2fb5cc8c7382fec2bf71 | 1,964 | py | Python | stage/7/D.py | srirambandi/CODE_IIT | c2d6ba7acfdf776df4ab2026af6cd74480a055b4 | [
"MIT"
] | null | null | null | stage/7/D.py | srirambandi/CODE_IIT | c2d6ba7acfdf776df4ab2026af6cd74480a055b4 | [
"MIT"
] | null | null | null | stage/7/D.py | srirambandi/CODE_IIT | c2d6ba7acfdf776df4ab2026af6cd74480a055b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2.5
import math, sys, os, re
DEBUG = False
deltas = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]
def getline(file, types):
parts = file.readline().strip().split()
got = []
for i in xrange(len(parts)):
got.append(types[i](parts[i]))
return got
def... | 28.057143 | 79 | 0.534114 | 281 | 1,964 | 3.686833 | 0.295374 | 0.013514 | 0.011583 | 0.011583 | 0.092664 | 0.011583 | 0 | 0 | 0 | 0 | 0 | 0.023038 | 0.29277 | 1,964 | 69 | 80 | 28.463768 | 0.722822 | 0.026477 | 0 | 0.036364 | 0 | 0 | 0.023037 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0 | null | null | 0 | 0.036364 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db42a08843cd16c251f604bd3906d89799b78cb0 | 1,221 | py | Python | dijkstra.py | sekharkaredla/cnlab | 8e1ef9a904dea5260f6b6cf968508a2847f9f15c | [
"MIT"
] | null | null | null | dijkstra.py | sekharkaredla/cnlab | 8e1ef9a904dea5260f6b6cf968508a2847f9f15c | [
"MIT"
] | null | null | null | dijkstra.py | sekharkaredla/cnlab | 8e1ef9a904dea5260f6b6cf968508a2847f9f15c | [
"MIT"
] | 2 | 2018-04-16T13:25:12.000Z | 2018-04-16T14:49:38.000Z | print 'shortest path algorithm using djikstras algorithm \n--------------------------------------------'
inf=99999
n=input("enter number of nodes : ")
def djikstra(cost,source,target):
global n
global inf
dist=[]
prev=[]
selected=[]
for k in range(0,n):
selected.append(0)
path=[]
for k in range(0,n):
dist.... | 18.784615 | 104 | 0.624079 | 209 | 1,221 | 3.645933 | 0.239234 | 0.064304 | 0.031496 | 0.057743 | 0.145669 | 0.098425 | 0 | 0 | 0 | 0 | 0 | 0.027641 | 0.170352 | 1,221 | 64 | 105 | 19.078125 | 0.72458 | 0 | 0 | 0.127273 | 0 | 0 | 0.182637 | 0.037674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db4687c80e88e096829898c05624fbd4ede8a5b1 | 2,862 | py | Python | dashboard/views.py | joshuaspring9/iot-web-platform | 658ef42001dbb918c91e4d3332f43fad4f4a4aa4 | [
"MIT"
] | null | null | null | dashboard/views.py | joshuaspring9/iot-web-platform | 658ef42001dbb918c91e4d3332f43fad4f4a4aa4 | [
"MIT"
] | null | null | null | dashboard/views.py | joshuaspring9/iot-web-platform | 658ef42001dbb918c91e4d3332f43fad4f4a4aa4 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.urls import reverse_lazy
from django.views import generic
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contr... | 32.157303 | 76 | 0.695318 | 333 | 2,862 | 5.825826 | 0.342342 | 0.037113 | 0.035052 | 0.025773 | 0.07732 | 0.07732 | 0.07732 | 0.07732 | 0.07732 | 0.07732 | 0 | 0.002658 | 0.211391 | 2,862 | 89 | 77 | 32.157303 | 0.85689 | 0.067435 | 0 | 0.095238 | 0 | 0 | 0.083871 | 0.037571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.174603 | 0.031746 | 0.587302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db4f62bee70baa6dc9418422d536aa23f5d2c71f | 1,662 | py | Python | data_collection/gazette/spiders/pb_joao_pessoa.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 1 | 2020-11-22T23:46:35.000Z | 2020-11-22T23:46:35.000Z | data_collection/gazette/spiders/pb_joao_pessoa.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-03-31T20:28:25.000Z | 2022-03-02T14:57:15.000Z | data_collection/gazette/spiders/pb_joao_pessoa.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | import dateparser
from gazette.items import Gazette
from gazette.spiders.base import BaseGazetteSpider
class PbJoaoPessoaSpider(BaseGazetteSpider):
TERRITORY_ID = "2507507"
EXTRA_EDITION_CSS = "td:first-child"
GAZETTE_ROW_CSS = ".table-semanarios table tbody tr"
GAZETTE_URL_CSS = "td:last-child a::a... | 36.130435 | 88 | 0.643201 | 226 | 1,662 | 4.588496 | 0.495575 | 0.033751 | 0.040501 | 0.007715 | 0.007715 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032643 | 0.244284 | 1,662 | 45 | 89 | 36.933333 | 0.792994 | 0.202768 | 0 | 0 | 0 | 0 | 0.203937 | 0.05748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db5385f1ffb6f77546f15e9c5192932b42f8a55d | 2,374 | py | Python | tornadmin/utils/template.py | bhch/tornadmin | 63793ebe2a084dd307ef3c8e62ccd8bda583c629 | [
"BSD-3-Clause"
] | null | null | null | tornadmin/utils/template.py | bhch/tornadmin | 63793ebe2a084dd307ef3c8e62ccd8bda583c629 | [
"BSD-3-Clause"
] | 24 | 2021-09-27T11:20:44.000Z | 2022-01-09T18:19:34.000Z | tornadmin/utils/template.py | bhch/tornadmin | 63793ebe2a084dd307ef3c8e62ccd8bda583c629 | [
"BSD-3-Clause"
] | null | null | null | """Useful functions for using in templates"""
from functools import reduce
def get_value(variable):
"""If the variable is a callable, it will be called.
:TODO: If the variable is a date or datetime object, it will
return formatted result.
This is useful in templates to avoid having to check
w... | 30.435897 | 82 | 0.629739 | 314 | 2,374 | 4.652866 | 0.350318 | 0.071184 | 0.04449 | 0.01232 | 0.167009 | 0.102669 | 0.058864 | 0.058864 | 0.058864 | 0 | 0 | 0 | 0.296546 | 2,374 | 77 | 83 | 30.831169 | 0.87485 | 0.426706 | 0 | 0.147059 | 0 | 0 | 0.119679 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.088235 | false | 0.029412 | 0.029412 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db5ad6c28db4dd65e975f3628b60b24bd58c2cff | 356 | py | Python | smart_imports/constants.py | Tiendil/smart-imports | c0d4b17394d3250520f0554c1f0164487a0a7971 | [
"BSD-3-Clause"
] | 32 | 2019-07-15T19:50:38.000Z | 2021-09-04T07:56:19.000Z | smart_imports/constants.py | Tiendil/smart-imports | c0d4b17394d3250520f0554c1f0164487a0a7971 | [
"BSD-3-Clause"
] | 18 | 2018-06-12T17:41:08.000Z | 2021-11-08T21:42:48.000Z | smart_imports/constants.py | Tiendil/smart-imports | c0d4b17394d3250520f0554c1f0164487a0a7971 | [
"BSD-3-Clause"
] | 8 | 2019-03-18T16:51:24.000Z | 2021-02-24T00:44:04.000Z |
import enum
class SCOPE_TYPE(enum.Enum):
NORMAL = 0
CLASS = 1
COMPREHENSION = 2
class VARIABLE_STATE(enum.Enum):
INITIALIZED = 0
UNINITIALIZED = 1
class VARIABLE_USAGE_TYPE(enum.Enum):
FULLY_DEFINED = 0
PARTIALY_DEFINED = 1
FULLY_UNDEFINED = 2
CONFIG_FILE_NAME = 'smart_imports.j... | 13.692308 | 39 | 0.696629 | 47 | 356 | 5.021277 | 0.595745 | 0.101695 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032727 | 0.227528 | 356 | 25 | 40 | 14.24 | 0.825455 | 0 | 0 | 0 | 0 | 0 | 0.053521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db5d612493a251d87e38251426e08865c57a85c3 | 1,200 | py | Python | tutorials/2_tensorflow_old/theanoTUT/theano11_classification_nn/for_you_to_practice.py | wull566/tensorflow_demo | c2c45050867cb056b8193eb53466d26b80b0ec13 | [
"MIT"
] | 2 | 2019-03-24T12:58:17.000Z | 2021-05-18T06:21:21.000Z | tutorials/2_tensorflow_old/theanoTUT/theano11_classification_nn/for_you_to_practice.py | wull566/tensorflow_demo | c2c45050867cb056b8193eb53466d26b80b0ec13 | [
"MIT"
] | null | null | null | tutorials/2_tensorflow_old/theanoTUT/theano11_classification_nn/for_you_to_practice.py | wull566/tensorflow_demo | c2c45050867cb056b8193eb53466d26b80b0ec13 | [
"MIT"
] | null | null | null | # View more 3_python 2_tensorflow_old on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
# 11 - classification example
"""
Please note, this code is only for 3_python 3+. If you are using 3_pyt... | 23.529412 | 113 | 0.694167 | 168 | 1,200 | 4.839286 | 0.595238 | 0.02583 | 0.01968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026511 | 0.214167 | 1,200 | 50 | 114 | 24 | 0.835631 | 0.474167 | 0 | 0.2 | 0 | 0 | 0.05892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.2 | 0 | 0.3 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db5e6f7c9705243c6b73c88bca63bba6b8c2a448 | 3,847 | py | Python | Src/StdLib/Lib/test/test_setcomps.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 2,209 | 2016-11-20T10:32:58.000Z | 2022-03-31T20:51:27.000Z | Src/StdLib/Lib/test/test_setcomps.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 1,074 | 2016-12-07T05:02:48.000Z | 2022-03-22T02:09:11.000Z | Src/StdLib/Lib/test/test_setcomps.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | doctests = """
########### Tests mostly copied from test_listcomps.py ############
Test simple loop with conditional
>>> sum({i*i for i in range(100) if i&1 == 1})
166650
Test simple case
>>> {2*y + x + 1 for x in (0,) for y in (1,)}
set([3])
Test simple nesting
>>> list(sorted({(i,j) for i in... | 25.309211 | 100 | 0.54536 | 594 | 3,847 | 3.473064 | 0.249158 | 0.064469 | 0.049443 | 0.090645 | 0.405235 | 0.402811 | 0.383907 | 0.336888 | 0.268541 | 0.254484 | 0 | 0.047481 | 0.282818 | 3,847 | 151 | 101 | 25.476821 | 0.700254 | 0.006499 | 0 | 0.358491 | 0 | 0.066038 | 0.857853 | 0.031152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.037736 | 0 | 0.04717 | 0.009434 | 0 | 0 | 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 |
db6113efe3d557d3f81fdba3f8e2f5337067ee4a | 430 | py | Python | docker/site/wsgi.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 102 | 2015-04-30T12:27:14.000Z | 2021-10-31T18:21:16.000Z | docker/site/wsgi.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 158 | 2015-04-30T22:42:34.000Z | 2019-09-07T15:37:22.000Z | docker/site/wsgi.py | timgates42/django-leonardo | c155f97fee9e2be1e0f508d47a1c205028253ecc | [
"BSD-3-Clause"
] | 64 | 2015-05-10T12:00:39.000Z | 2021-07-29T19:47:27.000Z | #!/usr/bin/env python
import os
import sys
from os.path import abspath, dirname, join, normpath
import django
import django.core.handlers.wsgi
from django.core.management import execute_from_command_line
sys.path.append('/app/site')
sys.path.append('/app/module')
sys.path.append('/app/settings')
os.environ['DJANGO_... | 22.631579 | 60 | 0.783721 | 62 | 430 | 5.354839 | 0.5 | 0.090361 | 0.11747 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083721 | 430 | 18 | 61 | 23.888889 | 0.84264 | 0.046512 | 0 | 0 | 0 | 0 | 0.176039 | 0.05379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
db62750dd56bfe140eb4972da0c859893b8d3084 | 9,645 | py | Python | lib-other/deterministiclib/svd.py | endolith/Truthcoin | 448b35fb94f27e61f5989ead7ef87e03da2e9237 | [
"MIT"
] | 161 | 2015-01-11T20:52:37.000Z | 2022-02-14T04:44:13.000Z | lib-other/deterministiclib/svd.py | endolith/Truthcoin | 448b35fb94f27e61f5989ead7ef87e03da2e9237 | [
"MIT"
] | 3 | 2016-04-21T10:17:06.000Z | 2022-01-09T14:38:06.000Z | lib-other/deterministiclib/svd.py | endolith/Truthcoin | 448b35fb94f27e61f5989ead7ef87e03da2e9237 | [
"MIT"
] | 40 | 2015-01-19T16:44:14.000Z | 2022-01-09T14:09:49.000Z |
# Almost exact translation of the ALGOL SVD algorithm published in
# Numer. Math. 14, 403-420 (1970) by G. H. Golub and C. Reinsch
#
# by Thomas R. Metcalf, helicity314-stitch <at> yahoo <dot> com
#
# Pure Python SVD algorithm.
# Input: 2-D list (m by n) with m >= n
# Output: U,W V so that A = U*W*VT
# Note this pr... | 30.330189 | 100 | 0.410368 | 1,510 | 9,645 | 2.601325 | 0.159603 | 0.071283 | 0.027495 | 0.050407 | 0.30499 | 0.264002 | 0.235234 | 0.200102 | 0.180754 | 0.162169 | 0 | 0.068739 | 0.432867 | 9,645 | 317 | 101 | 30.425868 | 0.64936 | 0.228616 | 0 | 0.310345 | 0 | 0 | 0.018821 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0 | null | null | 0 | 0.008621 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db655e24bc75ac2c2fa1e645c2498e1da09d1947 | 709 | py | Python | src/passthrough/extensions/pt/context.py | ExoMars-PanCam/passthrough | 7ff9f82e4c85c40a4f2dab20bbee1c46d79d61a5 | [
"MIT"
] | 2 | 2021-05-04T04:30:37.000Z | 2021-05-04T12:17:22.000Z | src/passthrough/extensions/pt/context.py | ExoMars-PanCam/passthrough | 7ff9f82e4c85c40a4f2dab20bbee1c46d79d61a5 | [
"MIT"
] | 4 | 2021-05-04T16:56:49.000Z | 2021-05-12T17:00:07.000Z | src/passthrough/extensions/pt/context.py | ExoMars-PanCam/passthrough | 7ff9f82e4c85c40a4f2dab20bbee1c46d79d61a5 | [
"MIT"
] | null | null | null | from typing import Union
from lxml import etree
from ...exc import PTEvalError
_context_map: dict = {}
def set_context_map(map_: dict):
global _context_map
_context_map = map_
def context_get(ctx, key):
global _context_map
key = _unpack(key)
try:
return _context_map[key]
except Ke... | 20.257143 | 87 | 0.684062 | 96 | 709 | 4.770833 | 0.447917 | 0.174672 | 0.113537 | 0.082969 | 0.122271 | 0.122271 | 0 | 0 | 0 | 0 | 0 | 0.001815 | 0.222849 | 709 | 34 | 88 | 20.852941 | 0.829401 | 0.205924 | 0 | 0.111111 | 0 | 0 | 0.08079 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db71089e2c331b4fc4d01c56cbb6ee06c6825cfa | 8,141 | py | Python | avi/heat/resources/clustering.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 2 | 2016-08-09T21:06:52.000Z | 2016-08-18T21:34:11.000Z | avi/heat/resources/clustering.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 10 | 2016-08-03T00:07:51.000Z | 2018-10-30T19:00:38.000Z | avi/heat/resources/clustering.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 10 | 2016-06-13T20:17:19.000Z | 2020-12-21T11:46:59.000Z | # GENERATED FILE - DO NOT EDIT THIS FILE UNLESS YOU ARE A WIZZARD
#pylint: skip-file
from heat.engine import properties
from heat.engine import constraints
from heat.engine import attributes
from heat.common.i18n import _
from avi.heat.avi_resource import AviResource
from avi.heat.avi_resource import AviNestedResource... | 29.711679 | 167 | 0.640462 | 896 | 8,141 | 5.574777 | 0.162946 | 0.156957 | 0.176176 | 0.128128 | 0.645045 | 0.58959 | 0.49009 | 0.43003 | 0.36997 | 0.314715 | 0 | 0.007664 | 0.262744 | 8,141 | 273 | 168 | 29.820513 | 0.824558 | 0.067436 | 0 | 0.464286 | 1 | 0.03125 | 0.260565 | 0.027073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004464 | false | 0 | 0.040179 | 0.004464 | 0.232143 | 0 | 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 |
db77642eb1e40edb27b05085ebaa7bafbc750134 | 1,841 | py | Python | cajas/movement/migrations/0005_auto_20190424_2055.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | cajas/movement/migrations/0005_auto_20190424_2055.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | cajas/movement/migrations/0005_auto_20190424_2055.py | dmontoya1/cajas | 5eb3d5835250d5dafae398082200b79c1ca8063b | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2019-04-24 20:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('movement', '0004_auto_20190423_1633'),
]
operations = [
migrations.AlterField(
model_name='move... | 46.025 | 199 | 0.68604 | 190 | 1,841 | 6.510526 | 0.289474 | 0.045271 | 0.067906 | 0.10671 | 0.696847 | 0.651576 | 0.651576 | 0.603072 | 0.485044 | 0.485044 | 0 | 0.021132 | 0.20315 | 1,841 | 39 | 200 | 47.205128 | 0.822086 | 0.024443 | 0 | 0.454545 | 1 | 0 | 0.27592 | 0.09476 | 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 |
db7cb1debad0df6da00a2f761e20361ce78bcb2a | 2,210 | py | Python | tests/test_accessors.py | lpilz/xwrf | 03dd271b6e591d7f601258a25ab5d6810abc6af3 | [
"Apache-2.0"
] | 18 | 2021-10-17T01:28:39.000Z | 2022-01-03T16:56:37.000Z | tests/test_accessors.py | lpilz/xwrf | 03dd271b6e591d7f601258a25ab5d6810abc6af3 | [
"Apache-2.0"
] | 33 | 2022-01-24T16:15:13.000Z | 2022-03-18T16:36:32.000Z | tests/test_accessors.py | lpilz/xwrf | 03dd271b6e591d7f601258a25ab5d6810abc6af3 | [
"Apache-2.0"
] | 4 | 2021-10-20T13:56:50.000Z | 2022-01-17T13:26:12.000Z | import pandas as pd
import pytest
import xwrf
from . import importorskip
@importorskip('cf_xarray')
@pytest.mark.parametrize(
'name, cf_grid_mapping_name', [('lambert_conformal', 'lambert_conformal_conic')]
)
def test_postprocess(name, cf_grid_mapping_name):
# Verify initial/raw state
raw_ds = xwrf.tut... | 35.645161 | 84 | 0.714932 | 320 | 2,210 | 4.7125 | 0.309375 | 0.026525 | 0.047745 | 0.071618 | 0.262599 | 0.135279 | 0.039788 | 0 | 0 | 0 | 0 | 0.010881 | 0.168326 | 2,210 | 61 | 85 | 36.229508 | 0.809576 | 0.117195 | 0 | 0 | 0 | 0 | 0.19516 | 0.081359 | 0 | 0 | 0 | 0 | 0.682927 | 1 | 0.02439 | false | 0 | 0.121951 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db80827a007d777942f1b71b43dc9819ea563bfa | 3,048 | py | Python | firebirdsql/__init__.py | mariuz/pyfirebirdsql | d9e6ce84d8a4ba98858cf5513448b3a681ee624b | [
"BSD-2-Clause"
] | null | null | null | firebirdsql/__init__.py | mariuz/pyfirebirdsql | d9e6ce84d8a4ba98858cf5513448b3a681ee624b | [
"BSD-2-Clause"
] | null | null | null | firebirdsql/__init__.py | mariuz/pyfirebirdsql | d9e6ce84d8a4ba98858cf5513448b3a681ee624b | [
"BSD-2-Clause"
] | 1 | 2017-06-24T11:52:34.000Z | 2017-06-24T11:52:34.000Z | ##############################################################################
# Copyright (c) 2009-2016, Hajime Nakagami<nakagami@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * ... | 30.787879 | 80 | 0.720801 | 357 | 3,048 | 5.994398 | 0.490196 | 0.029439 | 0.041122 | 0.036449 | 0.128037 | 0.105607 | 0.105607 | 0.063551 | 0.063551 | 0.063551 | 0 | 0.004314 | 0.163386 | 3,048 | 98 | 81 | 31.102041 | 0.834902 | 0.444554 | 0 | 0.25 | 0 | 0 | 0.026473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.159091 | 0.068182 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db8429368c5427a34cd1395e10af9e6932cdf02a | 394 | py | Python | jobs/migrations/0004_alter_job_video.py | bharatchanddandamudi/Bharatchand_Portfolio_V1.1-deploy- | 21205ec9d3263463b43422b4679b9736142f7308 | [
"MIT"
] | null | null | null | jobs/migrations/0004_alter_job_video.py | bharatchanddandamudi/Bharatchand_Portfolio_V1.1-deploy- | 21205ec9d3263463b43422b4679b9736142f7308 | [
"MIT"
] | null | null | null | jobs/migrations/0004_alter_job_video.py | bharatchanddandamudi/Bharatchand_Portfolio_V1.1-deploy- | 21205ec9d3263463b43422b4679b9736142f7308 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-15 18:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0003_alter_job_summary'),
]
operations = [
migrations.AlterField(
model_name='job',
name='video',
... | 20.736842 | 68 | 0.591371 | 44 | 394 | 5.181818 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.284264 | 394 | 18 | 69 | 21.888889 | 0.744681 | 0.109137 | 0 | 0 | 1 | 0 | 0.120344 | 0.063037 | 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 |
db851c15a57ad2bcdd87a103587639b28af1b9e5 | 387 | py | Python | src/hca/hcat/mysite/hcat/urls.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 171 | 2015-04-22T15:16:02.000Z | 2022-03-18T20:21:53.000Z | src/hca/hcat/mysite/hcat/urls.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 60 | 2016-10-03T15:15:06.000Z | 2022-03-30T15:21:52.000Z | src/hca/hcat/mysite/hcat/urls.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 80 | 2015-04-16T10:39:48.000Z | 2022-03-29T16:36:30.000Z | from django.urls import path
from . import views
from . import api
app_name = 'hcat'
urlpatterns = [
path('', views.index, name='index'),
path('project/<int:pk>/', views.ProjectDetailView.as_view(), name='project_detail'),
path('project', views.ProjectListView.as_view(), name='project_list'),
path('pr... | 27.642857 | 88 | 0.69509 | 49 | 387 | 5.346939 | 0.428571 | 0.125954 | 0.114504 | 0.194656 | 0.396947 | 0.396947 | 0.396947 | 0.396947 | 0.396947 | 0 | 0 | 0 | 0.129199 | 387 | 13 | 89 | 29.769231 | 0.777448 | 0 | 0 | 0 | 0 | 0 | 0.204663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
db874b6d3972d1c63639e9ec3df8cfe443489951 | 1,178 | py | Python | notes/notes5.py | sec-js/onlysnarf | c8c32abb5d6b22c08fc7e29b41211530fb583b85 | [
"MIT"
] | 41 | 2019-06-08T05:50:48.000Z | 2022-03-03T11:50:04.000Z | notes/notes5.py | sec-js/onlysnarf | c8c32abb5d6b22c08fc7e29b41211530fb583b85 | [
"MIT"
] | 5 | 2020-06-28T10:57:04.000Z | 2021-05-25T23:24:50.000Z | notes/notes5.py | sec-js/onlysnarf | c8c32abb5d6b22c08fc7e29b41211530fb583b85 | [
"MIT"
] | 9 | 2019-10-28T15:57:43.000Z | 2022-03-21T22:06:57.000Z | pip install pytest-selenium
pip install pytest-variables
JSON config file (capabilities.json)
{ "capabilities": {
"video": "True",
"gridlasticUser": USERNAME,
"gridlasticKey": ACCESS_KEY
}
}
#file test_pytest_selenium.py
import pytest
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.co... | 25.608696 | 78 | 0.758913 | 157 | 1,178 | 5.547771 | 0.452229 | 0.036739 | 0.055109 | 0.061998 | 0.282434 | 0.231917 | 0.096441 | 0.096441 | 0.096441 | 0.096441 | 0 | 0.001936 | 0.12309 | 1,178 | 46 | 79 | 25.608696 | 0.841239 | 0.023769 | 0 | 0.216216 | 0 | 0 | 0.153043 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | null | null | 0 | 0.108108 | 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 |
db8c3080330614a99827ca7f3df4327c63e5203a | 4,813 | py | Python | 3way_junction.py | georgejopling/piglow | 75a1891985c125d55861c34646f925137ebc1e8a | [
"MIT"
] | null | null | null | 3way_junction.py | georgejopling/piglow | 75a1891985c125d55861c34646f925137ebc1e8a | [
"MIT"
] | null | null | null | 3way_junction.py | georgejopling/piglow | 75a1891985c125d55861c34646f925137ebc1e8a | [
"MIT"
] | null | null | null | #
# 3way_junction.py
# A Python program to simulate a 3 way traffic light
# controlled road junction using Pimoroni's PiGlow.
#
# The PiGlow is a small add on board for the Raspberry Pi that
# provides 18 individually controllable LEDs.
#
# For full details including setup, documentation and examples see:
# https://g... | 34.378571 | 80 | 0.670476 | 728 | 4,813 | 4.423077 | 0.293956 | 0.100621 | 0.060559 | 0.020497 | 0.377019 | 0.343789 | 0.327019 | 0.309938 | 0.309938 | 0.251242 | 0 | 0.049363 | 0.23395 | 4,813 | 139 | 81 | 34.625899 | 0.823976 | 0.611053 | 0 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046875 | 0 | 0.046875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db8d182546bd4a14274d159f93c7d92110598234 | 3,831 | py | Python | tests/stories_test.py | bpepple/marvelous | 8fb18fb0c353b0e7f2adb57720b2b7cf6688d262 | [
"MIT"
] | null | null | null | tests/stories_test.py | bpepple/marvelous | 8fb18fb0c353b0e7f2adb57720b2b7cf6688d262 | [
"MIT"
] | 5 | 2021-11-01T04:03:50.000Z | 2021-11-14T22:08:28.000Z | tests/stories_test.py | bpepple/esak | 018f10bb15abcd467b5851dbaf7cd274e0e6d0b6 | [
"MIT"
] | null | null | null | """
Test Stories module.
This module contains tests for Stories objects.
"""
import pytest
from esak import exceptions
def test_known_story(talker):
sm = talker.story(35505)
assert sm.title == "Spider-Man!"
assert sm.type == "story"
assert sm.thumbnail is None
assert sm.creators[0].name == "Ste... | 29.697674 | 95 | 0.65492 | 542 | 3,831 | 4.546125 | 0.188192 | 0.084416 | 0.048701 | 0.071429 | 0.381088 | 0.326299 | 0.288961 | 0.245942 | 0.245942 | 0.169237 | 0 | 0.078965 | 0.203341 | 3,831 | 128 | 96 | 29.929688 | 0.728375 | 0.018011 | 0 | 0.142857 | 0 | 0 | 0.193127 | 0 | 0 | 0 | 0 | 0 | 0.642857 | 1 | 0.081633 | false | 0 | 0.020408 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db8f94389d347612a463b40850d595b85755fd0d | 1,058 | py | Python | basiclive/core/lims/migrations/0027_fix_cassette_coords.py | znarthur/basic-live | 79c194311de05af2e1bb21d1bc8c6c14dda356d0 | [
"BSD-3-Clause"
] | null | null | null | basiclive/core/lims/migrations/0027_fix_cassette_coords.py | znarthur/basic-live | 79c194311de05af2e1bb21d1bc8c6c14dda356d0 | [
"BSD-3-Clause"
] | 1 | 2020-12-03T15:27:09.000Z | 2020-12-03T15:27:09.000Z | basiclive/core/lims/migrations/0027_fix_cassette_coords.py | znarthur/basic-live | 79c194311de05af2e1bb21d1bc8c6c14dda356d0 | [
"BSD-3-Clause"
] | 1 | 2021-09-28T21:06:09.000Z | 2021-09-28T21:06:09.000Z | # Generated by Django 2.2.5 on 2019-11-10 18:29
from django.db import migrations, models
def fix_cassette_coords(apps, schema_editor):
"""
Update Cassette location coordinates to be more centered since labels
are now shown entirely within each sample location
"""
ContainerType = apps.get_model('l... | 34.129032 | 88 | 0.678639 | 135 | 1,058 | 5.207407 | 0.555556 | 0.099573 | 0.048364 | 0.076814 | 0.091038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043124 | 0.189036 | 1,058 | 30 | 89 | 35.266667 | 0.776224 | 0.157845 | 0 | 0 | 1 | 0 | 0.073479 | 0.026406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.277778 | 0 | 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 |
db9381ec6343608654d098fd9769d293774e943f | 268 | py | Python | panelapp/panels/migrations/0072_merge_20190522_1553.py | genomicsengland/panelapp | f72537ae1e5ddf13eda74dd91d8018aba1890d32 | [
"Apache-2.0"
] | 7 | 2019-04-03T12:57:17.000Z | 2021-11-16T12:53:14.000Z | panelapp/panels/migrations/0072_merge_20190522_1553.py | genomicsengland/panelapp | f72537ae1e5ddf13eda74dd91d8018aba1890d32 | [
"Apache-2.0"
] | 6 | 2019-04-11T01:55:22.000Z | 2019-08-19T10:50:11.000Z | panelapp/panels/migrations/0072_merge_20190522_1553.py | genomicsengland/panelapp | f72537ae1e5ddf13eda74dd91d8018aba1890d32 | [
"Apache-2.0"
] | 5 | 2019-04-11T00:28:26.000Z | 2019-05-15T13:03:07.000Z | # Generated by Django 2.1.3 on 2019-05-22 15:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('panels', '0071_auto_20190424_1526'),
('panels', '0071_comment_version'),
]
operations = [
]
| 17.866667 | 47 | 0.641791 | 32 | 268 | 5.21875 | 0.84375 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0.235075 | 268 | 14 | 48 | 19.142857 | 0.643902 | 0.16791 | 0 | 0 | 1 | 0 | 0.248869 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dba483fdb186b0e902dd337acbc97ab93c3bfc6e | 352 | py | Python | traitements_images/random_image.py | Saphielle-Akiyama/python-prepa | 4f566df9a690520afc487f90caba0340703f00d0 | [
"Unlicense"
] | null | null | null | traitements_images/random_image.py | Saphielle-Akiyama/python-prepa | 4f566df9a690520afc487f90caba0340703f00d0 | [
"Unlicense"
] | null | null | null | traitements_images/random_image.py | Saphielle-Akiyama/python-prepa | 4f566df9a690520afc487f90caba0340703f00d0 | [
"Unlicense"
] | null | null | null | from random import randint
import numpy as np
from matplotlib import pyplot as plt
img = np.zeros((256, 256, 3), dtype=np.uint8)
a, b, _ = img.shape
x, y = a / 2, b / 2
for i in range(a):
for j in range(b):
img[i, j] = np.array([randint(0, 255), randint(0, 255), randint(0, 255)])
fig, ax = plt.subplo... | 17.6 | 81 | 0.619318 | 66 | 352 | 3.287879 | 0.530303 | 0.110599 | 0.152074 | 0.165899 | 0.152074 | 0.152074 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.21875 | 352 | 19 | 82 | 18.526316 | 0.709091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
dba7d5e6964cdeabe94ee7ce71b3b71561b57105 | 1,131 | py | Python | Algorithms/Conditioning_Stability/plots.py | lcbendall/numerical_computing | 565cde92525ea44c55abe933c6419c1543f9800b | [
"CC-BY-3.0"
] | null | null | null | Algorithms/Conditioning_Stability/plots.py | lcbendall/numerical_computing | 565cde92525ea44c55abe933c6419c1543f9800b | [
"CC-BY-3.0"
] | null | null | null | Algorithms/Conditioning_Stability/plots.py | lcbendall/numerical_computing | 565cde92525ea44c55abe933c6419c1543f9800b | [
"CC-BY-3.0"
] | 1 | 2020-12-08T01:19:23.000Z | 2020-12-08T01:19:23.000Z | import matplotlib
matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc')
import numpy as np
from matplotlib import pyplot as plt
def wilkinson_poly():
""" Reproduce the Wilkinson Polynomial example shown in the lab. """
roots = np.arange(1, 21)
cfs = np.array([1, -210, 20615, -1256850,... | 43.5 | 78 | 0.664014 | 109 | 1,131 | 6.743119 | 0.669725 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338691 | 0.229885 | 1,131 | 26 | 79 | 43.5 | 0.505166 | 0.05305 | 0 | 0 | 0 | 0 | 0.050752 | 0.021617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.181818 | 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 |
dba7f7cde085daefb93b32e43d5cd48f75c9a2a2 | 309 | py | Python | gen.py | bioinfohk/dna_puller | 545f676bc9cd71b2ade130e8848f887baef72708 | [
"MIT"
] | null | null | null | gen.py | bioinfohk/dna_puller | 545f676bc9cd71b2ade130e8848f887baef72708 | [
"MIT"
] | null | null | null | gen.py | bioinfohk/dna_puller | 545f676bc9cd71b2ade130e8848f887baef72708 | [
"MIT"
] | null | null | null | class Gen:
def __init__(self, type, sequence, data_object):
self.type = type
self.sequence = sequence
self.data_object = data_object
class GenType:
CDNA = 'cdna'
DNA = 'dna'
CDS = 'cds'
class DnaType:
dna = '.dna.'
dna_sm = '.dna_sm.'
dna_rm = '.dna_rm.'
| 19.3125 | 52 | 0.576052 | 40 | 309 | 4.175 | 0.4 | 0.179641 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297735 | 309 | 15 | 53 | 20.6 | 0.769585 | 0 | 0 | 0 | 0 | 0 | 0.100324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbac17d6446e3ded53661a527d0b415f16e90012 | 1,926 | py | Python | snewpdag/plugins/gen/TimeSeries.py | WiktorJasniak/snewpdag | 56d8cbf679ccacbd08c98c4edccf152a0783f441 | [
"BSD-3-Clause"
] | null | null | null | snewpdag/plugins/gen/TimeSeries.py | WiktorJasniak/snewpdag | 56d8cbf679ccacbd08c98c4edccf152a0783f441 | [
"BSD-3-Clause"
] | null | null | null | snewpdag/plugins/gen/TimeSeries.py | WiktorJasniak/snewpdag | 56d8cbf679ccacbd08c98c4edccf152a0783f441 | [
"BSD-3-Clause"
] | null | null | null | """
TimeSeries: generates a time series on each alert, based on a histogram
(Should we use a kernel density estimator instead?)
configuration:
sig_mean: mean number of events to be generated for each alert.
output added to data:
'times': times of individual events based on histogram.
Use uniform dis... | 30.571429 | 89 | 0.649013 | 286 | 1,926 | 4.304196 | 0.454545 | 0.02437 | 0.029245 | 0.021121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.225857 | 1,926 | 62 | 90 | 31.064516 | 0.820926 | 0.478712 | 0 | 0 | 1 | 0 | 0.048008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbb46b3d9a76e04adfe3482df244ad1377fd36fc | 10,731 | py | Python | src/design.py | mrhheffernan/js-sims-bayes | 7c32dcbbfaf00abce5bd6f6ce2937a85284de7a2 | [
"MIT"
] | null | null | null | src/design.py | mrhheffernan/js-sims-bayes | 7c32dcbbfaf00abce5bd6f6ce2937a85284de7a2 | [
"MIT"
] | null | null | null | src/design.py | mrhheffernan/js-sims-bayes | 7c32dcbbfaf00abce5bd6f6ce2937a85284de7a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Generates Latin-hypercube parameter designs.
Writes input files for use with the JETSCAPE framework
Run ``python design.py --help`` for usage information.
.. warning::
This module uses the R `lhs package
<https://cran.r-project.org/package=lhs>`_ to generate maximin
Latin-hyper... | 39.597786 | 110 | 0.563135 | 1,392 | 10,731 | 4.152299 | 0.25431 | 0.020761 | 0.016609 | 0.011419 | 0.17872 | 0.162457 | 0.114706 | 0.070415 | 0.041176 | 0.016609 | 0 | 0.040623 | 0.300345 | 10,731 | 270 | 111 | 39.744444 | 0.729222 | 0.278073 | 0 | 0.040268 | 1 | 0 | 0.184402 | 0.06649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033557 | false | 0 | 0.060403 | 0.006711 | 0.114094 | 0.026846 | 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 |
dbb55898dd8aa35483f79451273e66a64649d3e7 | 1,263 | py | Python | zeromq/test/send_new_files.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | zeromq/test/send_new_files.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | zeromq/test/send_new_files.py | brettin/liquidhandling | 7a96e2881ffaa0326514cf5d97ba49d65ad42a14 | [
"MIT"
] | null | null | null | # Monitors a directory and if it sees a file or files newer that some time,
# create a manifest and send a message to the message queue.
from dirmon import checkDir
from manifest import generateFileManifest
import argparse
import json
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("... | 25.26 | 75 | 0.65479 | 172 | 1,263 | 4.75 | 0.47093 | 0.079559 | 0.041616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006079 | 0.218527 | 1,263 | 49 | 76 | 25.77551 | 0.821682 | 0.2019 | 0 | 0.0625 | 1 | 0 | 0.118236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.15625 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbb5991400ae7517ca5c223e91541744f0352635 | 3,014 | py | Python | tests/providers/apache/spark/operators/test_spark_sql.py | mebelousov/airflow | d99833c9b5be9eafc0c7851343ee86b6c20aed40 | [
"Apache-2.0"
] | 3 | 2019-12-11T15:54:13.000Z | 2021-05-24T20:21:08.000Z | tests/providers/apache/spark/operators/test_spark_sql.py | mebelousov/airflow | d99833c9b5be9eafc0c7851343ee86b6c20aed40 | [
"Apache-2.0"
] | 8 | 2021-02-08T20:40:47.000Z | 2022-03-29T22:27:53.000Z | tests/providers/apache/spark/operators/test_spark_sql.py | mebelousov/airflow | d99833c9b5be9eafc0c7851343ee86b6c20aed40 | [
"Apache-2.0"
] | 2 | 2021-01-11T13:53:03.000Z | 2021-10-02T05:06:34.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 38.151899 | 94 | 0.689449 | 359 | 3,014 | 5.571031 | 0.373259 | 0.08 | 0.1425 | 0.1875 | 0.199 | 0.199 | 0.199 | 0.1695 | 0.1695 | 0.1695 | 0 | 0.007042 | 0.199071 | 3,014 | 78 | 95 | 38.641026 | 0.821458 | 0.253816 | 0 | 0.122449 | 0 | 0 | 0.196052 | 0.039928 | 0 | 0 | 0 | 0 | 0.306122 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.163265 | 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 |
dbb9d20c1fbe45885d785b3d24514239b1912f00 | 2,080 | py | Python | ankify_roam/default_models.py | jacrify/ankify_roam | 52e9de2170bf36e243da080fa38c4e4b6b219f98 | [
"MIT"
] | null | null | null | ankify_roam/default_models.py | jacrify/ankify_roam | 52e9de2170bf36e243da080fa38c4e4b6b219f98 | [
"MIT"
] | null | null | null | ankify_roam/default_models.py | jacrify/ankify_roam | 52e9de2170bf36e243da080fa38c4e4b6b219f98 | [
"MIT"
] | null | null | null | _css_basic = """
.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
"""
_css_cloze = """
.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
.cloze {
font-weight: bold;
color: blue;
}
.nightMode .c... | 18.086957 | 74 | 0.569231 | 240 | 2,080 | 4.866667 | 0.379167 | 0.030822 | 0.05137 | 0.032534 | 0.284247 | 0.284247 | 0.284247 | 0.224315 | 0.224315 | 0.224315 | 0 | 0.040488 | 0.251923 | 2,080 | 115 | 75 | 18.086957 | 0.710154 | 0 | 0 | 0.284314 | 0 | 0 | 0.795771 | 0.096108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbba913471ec4d94ded815f76e0698a37e0bbe9b | 514 | py | Python | provider/api/views.py | Unous1996/Pikachu-Housing | acd1f06ddc3b0e5b300ccd5b500e0c2bad5cd1af | [
"Apache-2.0"
] | 1 | 2019-03-23T18:49:31.000Z | 2019-03-23T18:49:31.000Z | provider/api/views.py | DeepinSC/Pikachu-Housing | 453201e19812e356106c071bbf9a306931d14fa7 | [
"Apache-2.0"
] | null | null | null | provider/api/views.py | DeepinSC/Pikachu-Housing | 453201e19812e356106c071bbf9a306931d14fa7 | [
"Apache-2.0"
] | 1 | 2019-04-24T06:40:49.000Z | 2019-04-24T06:40:49.000Z | from rest_framework import viewsets
from provider.models import Provider
from provider.api.paginations import ProviderPagination
from serializers import ProviderSerializer
from rest_framework.decorators import permission_classes
from rest_framework.permissions import IsAuthenticatedOrReadOnly
@permission_classes((IsA... | 36.714286 | 64 | 0.859922 | 50 | 514 | 8.7 | 0.5 | 0.055172 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097276 | 514 | 13 | 65 | 39.538462 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbbfb83457c960a4d36570701d8e7e42063efb17 | 2,979 | py | Python | labm8/py/decorators_test.py | ChrisCummins/labm8 | 913d67f4f454cedc61220a210113bbf0460bb4d5 | [
"Apache-2.0"
] | 3 | 2015-05-10T16:48:22.000Z | 2021-06-03T16:50:31.000Z | labm8/py/decorators_test.py | ChrisCummins/labm8 | 913d67f4f454cedc61220a210113bbf0460bb4d5 | [
"Apache-2.0"
] | 21 | 2015-05-12T12:42:47.000Z | 2020-08-16T12:31:08.000Z | labm8/py/decorators_test.py | ChrisCummins/labm8 | 913d67f4f454cedc61220a210113bbf0460bb4d5 | [
"Apache-2.0"
] | 2 | 2017-11-22T04:41:59.000Z | 2020-05-31T23:13:25.000Z | # Copyright 2014-2020 Chris Cummins <chrisc.101@gmail.com>.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 22.740458 | 80 | 0.699228 | 421 | 2,979 | 4.788599 | 0.337292 | 0.095238 | 0.042163 | 0.062004 | 0.430556 | 0.393849 | 0.298611 | 0.273313 | 0.273313 | 0.251488 | 0 | 0.018977 | 0.186304 | 2,979 | 130 | 81 | 22.915385 | 0.812706 | 0.402148 | 0 | 0.46875 | 0 | 0 | 0.007643 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 1 | 0.25 | false | 0 | 0.078125 | 0.015625 | 0.453125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbc2316e158225ff27138f7f0fdb167a2596b067 | 524 | py | Python | lazy_load/__init__.py | kutoga/lazy-load | 0545c983c662d26c0783af462cfe3bdd7bfb1d0c | [
"MIT"
] | 6 | 2019-05-17T08:18:05.000Z | 2019-10-08T10:39:48.000Z | lazy_load/__init__.py | kutoga/lazy-load | 0545c983c662d26c0783af462cfe3bdd7bfb1d0c | [
"MIT"
] | null | null | null | lazy_load/__init__.py | kutoga/lazy-load | 0545c983c662d26c0783af462cfe3bdd7bfb1d0c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ℒazy-ℒoad - A minimalistic interface that allows the lazy evaluation of expressions.
Additional functions and wrappers allow it to easily use the lazy evaluation for functions
and classes.
"""
from ._lazy_load import lazy, lz, lazy_func, lf, ℒ, lazy_class, lc, force_eval, fe
__version__ = ... | 34.933333 | 90 | 0.746183 | 80 | 524 | 4.6625 | 0.7625 | 0.037534 | 0.091153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013544 | 0.15458 | 524 | 14 | 91 | 37.428571 | 0.828442 | 0.64313 | 0 | 0 | 0 | 0 | 0.305085 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dbc58a6333712d36875d55ec7da658e8c88b6b27 | 1,250 | py | Python | tests/test_utils.py | hille721/simple-photo-gallery-bulkcreation | 0f7ff702669fee5deaca386e2e68f1c6edc68f5a | [
"MIT"
] | null | null | null | tests/test_utils.py | hille721/simple-photo-gallery-bulkcreation | 0f7ff702669fee5deaca386e2e68f1c6edc68f5a | [
"MIT"
] | 4 | 2021-03-06T09:48:01.000Z | 2021-10-09T00:23:09.000Z | tests/test_utils.py | hille721/simple-photo-gallery-bulkcreation | 0f7ff702669fee5deaca386e2e68f1c6edc68f5a | [
"MIT"
] | null | null | null | from pathlib import Path
import platform
import shutil
from simplegallery_bulkcreation.utils import copytree, pltostr
def test_pltostr():
if platform.system() != "Windows":
assert (
str(Path("/just/an/example").absolute())
== pltostr(Path("/just/an/example"))
== pltost... | 30.487805 | 93 | 0.624 | 148 | 1,250 | 5.22973 | 0.405405 | 0.062016 | 0.134367 | 0.087855 | 0.529716 | 0.529716 | 0.44832 | 0.44832 | 0.44832 | 0.44832 | 0 | 0 | 0.2448 | 1,250 | 40 | 94 | 31.25 | 0.819915 | 0.1768 | 0 | 0.322581 | 0 | 0 | 0.3125 | 0.145508 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.064516 | true | 0 | 0.129032 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbca6267131d7fc9e7586478f6185aaf3733f947 | 277 | py | Python | jetson/tests/saytest.py | lonerlin/SelfDrivingCVCar | 8757e5eff62391e28d2fc530100b27fafafdc788 | [
"Apache-2.0"
] | 2 | 2021-07-03T02:37:58.000Z | 2021-07-10T07:33:19.000Z | jetson/tests/saytest.py | lurending711/SelfDrivingCVCar | 18aa6b120e05e478ac51e0311a2ebe8638129a04 | [
"Apache-2.0"
] | null | null | null | jetson/tests/saytest.py | lurending711/SelfDrivingCVCar | 18aa6b120e05e478ac51e0311a2ebe8638129a04 | [
"Apache-2.0"
] | 1 | 2021-07-10T07:33:21.000Z | 2021-07-10T07:33:21.000Z | # _*_coding:utf-8 _*_
# @Time :2020/8/28 0028 下午 11:07
# @Author : Loner Lin
# @File :saytest.py
# @Software :PyCharm
import sys
import time
sys.path.append('..')
from audio.say import Say
s = Say()
s.say(" 这里是中华人民共和国领土,请快速离开。")
# time.sleep(2)
s.say("佛山市南海区罗村高级中学欢迎您") | 21.307692 | 35 | 0.66426 | 43 | 277 | 4.186047 | 0.72093 | 0.066667 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072961 | 0.158845 | 277 | 13 | 36 | 21.307692 | 0.699571 | 0.465704 | 0 | 0 | 0 | 0 | 0.260563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dbcd56095c3008f94677efac1badb19687de67ac | 288 | py | Python | 06. Python-Fundamentals-Files-and-Errors/02 Line numbers.py | Bugzey/Softuni-Python-Fundamentals | 6f66e143809988398896cfc771cce1db9220df27 | [
"MIT"
] | 1 | 2021-01-31T00:14:08.000Z | 2021-01-31T00:14:08.000Z | 06. Python-Fundamentals-Files-and-Errors/02 Line numbers.py | Bugzey/Softuni-Python-Fundamentals | 6f66e143809988398896cfc771cce1db9220df27 | [
"MIT"
] | null | null | null | 06. Python-Fundamentals-Files-and-Errors/02 Line numbers.py | Bugzey/Softuni-Python-Fundamentals | 6f66e143809988398896cfc771cce1db9220df27 | [
"MIT"
] | null | null | null | # Insert line numbers
in_file = open('Resources/02. Line Numbers/Input.txt', 'r').read().split('\n')
result = [str(number + 1) + '. ' + item for number, item in enumerate(in_file)][:-1]
print(*result, sep = '\n')
out_str = '\n'.join(result)
open('output/02.txt', 'w').write(out_str)
| 28.8 | 84 | 0.631944 | 46 | 288 | 3.869565 | 0.608696 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.135417 | 288 | 9 | 85 | 32 | 0.690763 | 0.065972 | 0 | 0 | 0 | 0 | 0.223485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
dbd781c4e49b976114458433160e622316423e66 | 854 | py | Python | src/onegov/town6/views/payment.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/town6/views/payment.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/town6/views/payment.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from onegov.core.security import Private
from onegov.form import merge_forms
from onegov.org.views.payment import view_payments, export_payments
from onegov.town6 import TownApp
from onegov.org.forms import DateRangeForm, ExportForm
from onegov.pay import PaymentCollection
from onegov.town6.layout import PaymentCollec... | 30.5 | 79 | 0.784543 | 100 | 854 | 6.6 | 0.34 | 0.106061 | 0.115152 | 0.069697 | 0.087879 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002699 | 0.132319 | 854 | 27 | 80 | 31.62963 | 0.887989 | 0 | 0 | 0.090909 | 0 | 0 | 0.028103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0.090909 | 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 |
dbd9f8c0ab0a6f84e8668ea9ffc03e758beffe04 | 1,252 | py | Python | pycaption/__init__.py | vpaul-dev/pycaption-github-release-notes | d265389807f76330196093e5231d2bf5c699619d | [
"Apache-2.0"
] | 183 | 2015-01-26T00:28:48.000Z | 2022-03-29T19:51:55.000Z | pycaption/__init__.py | vpaul-dev/pycaption-github-release-notes | d265389807f76330196093e5231d2bf5c699619d | [
"Apache-2.0"
] | 132 | 2015-01-06T08:11:11.000Z | 2022-03-31T19:30:57.000Z | pycaption/__init__.py | vpaul-dev/pycaption-github-release-notes | d265389807f76330196093e5231d2bf5c699619d | [
"Apache-2.0"
] | 150 | 2015-01-16T18:03:59.000Z | 2022-03-16T01:11:10.000Z | from .base import (
CaptionConverter, CaptionNode, Caption, CaptionList, CaptionSet,
)
from .dfxp import DFXPWriter, DFXPReader
from .microdvd import MicroDVDReader, MicroDVDWriter
from .sami import SAMIReader, SAMIWriter
from .srt import SRTReader, SRTWriter
from .scc import SCCReader, SCCWriter
from .scc.translat... | 31.3 | 79 | 0.739617 | 116 | 1,252 | 7.896552 | 0.448276 | 0.039301 | 0.063319 | 0.085153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160543 | 1,252 | 39 | 80 | 32.102564 | 0.871551 | 0.08147 | 0 | 0 | 0 | 0 | 0.237168 | 0.038053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.321429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dbddba900443c74037c8991082aa6a82df0e876d | 1,329 | py | Python | cloudmesh_cmd3/plugins/cm_shell_debug.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | cloudmesh_cmd3/plugins/cm_shell_debug.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | 4 | 2021-06-08T20:20:08.000Z | 2022-03-11T23:30:22.000Z | cloudmesh_cmd3/plugins/cm_shell_debug.py | JulienPalard/cloudmesh | 1759b88daef3a13917492d028fdabe08f03ca996 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from cmd3.shell import command
from cloudmesh.config.cm_config import cm_config_server
from cloudmesh_base.logger import LOGGER
log = LOGGER(__file__)
class cm_shell_debug:
def activate_cm_shell_debug(self):
self.register_command_topic('cloud', 'debug')
@command... | 27.122449 | 55 | 0.58766 | 153 | 1,329 | 4.836601 | 0.313725 | 0.108108 | 0.17027 | 0.17027 | 0.464865 | 0.381081 | 0.381081 | 0.381081 | 0.381081 | 0.381081 | 0 | 0.001109 | 0.321294 | 1,329 | 48 | 56 | 27.6875 | 0.81929 | 0.06471 | 0 | 0.344828 | 0 | 0 | 0.137405 | 0.079729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.241379 | 0.103448 | 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 |
915686d5bdd661a3267da1bfd198871bb037c5d9 | 11,458 | py | Python | h2o-py/h2o/backend/cluster.py | gkirok/h2o-3 | b128be6644c685cb6059444a1dbd5106f76f2672 | [
"Apache-2.0"
] | 2 | 2018-09-20T03:28:46.000Z | 2018-12-06T21:39:29.000Z | h2o-py/h2o/backend/cluster.py | gkirok/h2o-3 | b128be6644c685cb6059444a1dbd5106f76f2672 | [
"Apache-2.0"
] | 2 | 2021-06-02T02:24:03.000Z | 2021-11-15T17:51:49.000Z | h2o-py/h2o/backend/cluster.py | gkirok/h2o-3 | b128be6644c685cb6059444a1dbd5106f76f2672 | [
"Apache-2.0"
] | 1 | 2019-04-15T10:08:42.000Z | 2019-04-15T10:08:42.000Z | # -*- encoding: utf-8 -*-
"""Information about the backend H2O cluster."""
from __future__ import division, print_function, absolute_import, unicode_literals
import sys
import time
import h2o
from h2o.exceptions import H2OConnectionError, H2OServerError
from h2o.display import H2ODisplay
from h2o.utils.compatibility ... | 35.583851 | 170 | 0.607523 | 1,393 | 11,458 | 4.818378 | 0.256281 | 0.034267 | 0.042461 | 0.048123 | 0.110697 | 0.047229 | 0.036502 | 0.027265 | 0.027265 | 0.027265 | 0 | 0.011018 | 0.271252 | 11,458 | 321 | 171 | 35.694704 | 0.792814 | 0.286525 | 0 | 0.132184 | 0 | 0 | 0.184352 | 0.018841 | 0 | 0 | 0 | 0.003115 | 0.017241 | 1 | 0.195402 | false | 0 | 0.057471 | 0.109195 | 0.431034 | 0.005747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
915c415cd6e851966d9008411577896308c6267b | 6,150 | py | Python | tests/test_rules.py | OpenNewsLabs/open-project-linter | f91934775b524d994f3da091235e2a54c6827abe | [
"Apache-2.0"
] | 10 | 2017-03-07T17:51:28.000Z | 2021-02-28T12:23:29.000Z | tests/test_rules.py | OpenNewsLabs/open-project-linter | f91934775b524d994f3da091235e2a54c6827abe | [
"Apache-2.0"
] | 32 | 2017-02-01T20:15:55.000Z | 2018-01-08T20:16:23.000Z | tests/test_rules.py | OpenNewsLabs/open-project-linter | f91934775b524d994f3da091235e2a54c6827abe | [
"Apache-2.0"
] | 4 | 2017-02-10T21:17:16.000Z | 2020-05-10T05:44:51.000Z | #!/usr/bin/env python3
""" Automated tests for openlinter.rules using pytest. Run from the
openlinter root directory with
$ pytest tests/test_rules.py
"""
import pytest
import git
from openlinter.rules import *
# Test fixtures
@pytest.fixture()
def setup_empty_repo(tmpdir):
# tmpdir is a LocalPath, git chokes... | 33.977901 | 95 | 0.773496 | 887 | 6,150 | 4.993236 | 0.130778 | 0.061413 | 0.062317 | 0.050802 | 0.694513 | 0.575751 | 0.457214 | 0.337322 | 0.287198 | 0.159178 | 0 | 0.00056 | 0.129268 | 6,150 | 180 | 96 | 34.166667 | 0.826517 | 0.136098 | 0 | 0.333333 | 0 | 0 | 0.12949 | 0.056333 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.304762 | false | 0 | 0.028571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91641db7bc9e5c42bb376cf870acf52357d1a86c | 461 | py | Python | Curso_Python/Secao2-Python-Basico-Logica-Programacao/22_operadores_logicos/22_operadores_logicos.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | Curso_Python/Secao2-Python-Basico-Logica-Programacao/22_operadores_logicos/22_operadores_logicos.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | Curso_Python/Secao2-Python-Basico-Logica-Programacao/22_operadores_logicos/22_operadores_logicos.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | """
Operadores logicos - aula 4
and, or not
in e not in
"""
# (verdadeiro e False) = Falso
#comparação1 and comparação
#verdadeiro OU Verdadeiro
#comp1 or comp2
#Not inverter uma expressão
#Comando in muito utilllll
nome = 'Pedro'
if 'Ped' in nome: #todo: Muito util
print('Existe o texto.')
else:
print('N... | 16.464286 | 43 | 0.672451 | 68 | 461 | 4.558824 | 0.573529 | 0.048387 | 0.116129 | 0.109677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016438 | 0.208243 | 461 | 27 | 44 | 17.074074 | 0.832877 | 0.498915 | 0 | 0.4 | 0 | 0 | 0.344186 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9165330ca5d4dd372f2d6114c45d9b55a150d3c6 | 7,418 | py | Python | ML_venv/Lib/site-packages/jupyter_client/tests/utils.py | ashokjohn/ML_RealWorld | 8508c8cd6a9fd0467ee68954850179ab2506bc04 | [
"MIT"
] | null | null | null | ML_venv/Lib/site-packages/jupyter_client/tests/utils.py | ashokjohn/ML_RealWorld | 8508c8cd6a9fd0467ee68954850179ab2506bc04 | [
"MIT"
] | null | null | null | ML_venv/Lib/site-packages/jupyter_client/tests/utils.py | ashokjohn/ML_RealWorld | 8508c8cd6a9fd0467ee68954850179ab2506bc04 | [
"MIT"
] | null | null | null | """Testing utils for jupyter_client tests
"""
import os
import sys
from tempfile import TemporaryDirectory
from typing import Dict
from unittest.mock import patch
import pytest
from jupyter_client import AsyncKernelManager
from jupyter_client import AsyncMultiKernelManager
from jupyter_client import KernelManager
fr... | 30.154472 | 97 | 0.681316 | 877 | 7,418 | 5.563284 | 0.220068 | 0.072146 | 0.081779 | 0.070096 | 0.477762 | 0.454601 | 0.420783 | 0.414224 | 0.393318 | 0.365854 | 0 | 0.001911 | 0.224184 | 7,418 | 245 | 98 | 30.277551 | 0.845873 | 0.21677 | 0 | 0.26087 | 0 | 0 | 0.06586 | 0.022072 | 0 | 0 | 0 | 0 | 0.014493 | 1 | 0.26087 | false | 0 | 0.07971 | 0.021739 | 0.507246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
916b8466c5f7ef12de0fed0c35ccde5fce32037e | 1,596 | py | Python | train.py | wpwei/attention_to_route | 022020cd44f4ae3c84b95c680a3c3b0cffffa1f5 | [
"MIT"
] | 5 | 2020-04-19T03:56:30.000Z | 2021-09-10T11:52:27.000Z | train.py | wpwei/attention_to_route | 022020cd44f4ae3c84b95c680a3c3b0cffffa1f5 | [
"MIT"
] | null | null | null | train.py | wpwei/attention_to_route | 022020cd44f4ae3c84b95c680a3c3b0cffffa1f5 | [
"MIT"
] | 1 | 2020-06-07T07:31:43.000Z | 2020-06-07T07:31:43.000Z | from pytorch_lightning import Trainer
from models import TSPAgent
from argparse import ArgumentParser
def main(args):
model = TSPAgent(args)
trainer = Trainer.from_argparse_args(args)
trainer.fit(model)
trainer.save_checkpoint(f'tsp{args.n_node}_ep{trainer.current_epoch}.ckpt')
if __name__ == '__mai... | 32.571429 | 79 | 0.702381 | 222 | 1,596 | 4.810811 | 0.355856 | 0.143258 | 0.270599 | 0.079588 | 0.132959 | 0.132959 | 0.132959 | 0.132959 | 0 | 0 | 0 | 0.025811 | 0.150376 | 1,596 | 48 | 80 | 33.25 | 0.761799 | 0.062657 | 0 | 0 | 0 | 0 | 0.159946 | 0.031586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 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 |
916d83a92b20ad7bf3725df8573c9b58dee7f035 | 1,139 | py | Python | extract_features.py | KiLJ4EdeN/DeepCOVID | 3df626f09658c4c0d8f91a00886d9ab04106154b | [
"MIT"
] | 8 | 2020-06-24T13:48:27.000Z | 2020-12-15T06:29:37.000Z | extract_features.py | KiLJ4EdeN/DeepCOVID | 3df626f09658c4c0d8f91a00886d9ab04106154b | [
"MIT"
] | null | null | null | extract_features.py | KiLJ4EdeN/DeepCOVID | 3df626f09658c4c0d8f91a00886d9ab04106154b | [
"MIT"
] | 2 | 2020-06-24T13:49:07.000Z | 2020-09-29T10:15:34.000Z | # this code performes a dimension reduction on the dataset,
# using a DenseNet121 pretrained model.
import tensorflow as tf
from scipy.io import loadmat, savemat
import numpy as np
FV = loadmat('images.mat')
data = FV['data']
labels = FV['labels']
print(data.shape)
labels = labels.transpose()
labels = labels.ravel()... | 29.973684 | 80 | 0.699737 | 160 | 1,139 | 4.94375 | 0.5125 | 0.035398 | 0.03287 | 0.040455 | 0.042984 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030884 | 0.175593 | 1,139 | 37 | 81 | 30.783784 | 0.811502 | 0.236172 | 0 | 0 | 0 | 0 | 0.060325 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
916ee6d1ee86736f733c6a2f7e6680abb5cf4cae | 3,271 | py | Python | build/go/gen_library_metadata.py | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | build/go/gen_library_metadata.py | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | build/go/gen_library_metadata.py | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | #!/usr/bin/env python3.8
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import json
import os
import sys
class Source(object):
def __init__(self, name, path, file):
self.name... | 32.71 | 79 | 0.634668 | 438 | 3,271 | 4.568493 | 0.308219 | 0.038481 | 0.031984 | 0.028486 | 0.113943 | 0.047976 | 0.047976 | 0.047976 | 0 | 0 | 0 | 0.004896 | 0.250688 | 3,271 | 99 | 80 | 33.040404 | 0.811506 | 0.094161 | 0 | 0.065789 | 0 | 0 | 0.135656 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.078947 | false | 0 | 0.052632 | 0.039474 | 0.197368 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9174b78ea12e7b8ca4b0bd879ec4680ea401d334 | 2,899 | py | Python | pytest_splunk_addon/helmut/manager/indexes/__init__.py | monishshah18/pytest-splunk-addon | 1600f2c7d30ec304e9855642e63511780556b406 | [
"Apache-2.0"
] | null | null | null | pytest_splunk_addon/helmut/manager/indexes/__init__.py | monishshah18/pytest-splunk-addon | 1600f2c7d30ec304e9855642e63511780556b406 | [
"Apache-2.0"
] | null | null | null | pytest_splunk_addon/helmut/manager/indexes/__init__.py | monishshah18/pytest-splunk-addon | 1600f2c7d30ec304e9855642e63511780556b406 | [
"Apache-2.0"
] | null | null | null | """
@author: Nicklas Ansman-Giertz
@contact: U{ngiertz@splunk.com<mailto:ngiertz@splunk.com>}
@since: 2011-11-23
"""
from abc import abstractmethod
from pytest_splunk_addon.helmut.manager import Manager
from pytest_splunk_addon.helmut.misc.collection import Collection
from pytest_splunk_addon.helmut.misc.manager_utils... | 28.99 | 79 | 0.706451 | 347 | 2,899 | 5.674352 | 0.380403 | 0.050279 | 0.056882 | 0.074657 | 0.257999 | 0.203149 | 0.117826 | 0.076181 | 0.076181 | 0.076181 | 0 | 0.004373 | 0.211107 | 2,899 | 99 | 80 | 29.282828 | 0.856581 | 0.303898 | 0 | 0.113636 | 0 | 0 | 0.106312 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.068182 | 0.181818 | 0 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
917bfa64c071b3f1fc1180ce9f2ae1a496b82977 | 1,020 | py | Python | 205 Isomorphic Strings.py | ChiFire/legend_LeetCode | 93fe97fef7e929fdbdc25fbb53955d44e14ecff8 | [
"MIT"
] | 872 | 2015-06-15T12:02:41.000Z | 2022-03-30T08:44:35.000Z | 205 Isomorphic Strings.py | ChiFire/legend_LeetCode | 93fe97fef7e929fdbdc25fbb53955d44e14ecff8 | [
"MIT"
] | 8 | 2015-06-21T15:11:59.000Z | 2022-02-01T11:22:34.000Z | 205 Isomorphic Strings.py | ChiFire/legend_LeetCode | 93fe97fef7e929fdbdc25fbb53955d44e14ecff8 | [
"MIT"
] | 328 | 2015-06-28T03:10:35.000Z | 2022-03-29T11:05:28.000Z | """
Given two strings s and t, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a character must be replaced with another character while preserving the order of characters. No two
characters may map to the same character but a character ... | 24.285714 | 119 | 0.570588 | 153 | 1,020 | 3.777778 | 0.496732 | 0.013841 | 0.017301 | 0.013841 | 0.017301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329412 | 1,020 | 41 | 120 | 24.878049 | 0.845029 | 0.55 | 0 | 0 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
917c8d27319a4a607db2d92171864b4d93ac86c0 | 2,726 | py | Python | engine/config.py | ainterr/scoring_engine | d986eef08dcb819add20ed87d91239f887f62daa | [
"MIT"
] | null | null | null | engine/config.py | ainterr/scoring_engine | d986eef08dcb819add20ed87d91239f887f62daa | [
"MIT"
] | 7 | 2016-02-24T21:01:22.000Z | 2017-01-04T03:22:44.000Z | engine/config.py | ainterr/scoring_engine | d986eef08dcb819add20ed87d91239f887f62daa | [
"MIT"
] | 2 | 2016-03-04T17:04:48.000Z | 2020-01-30T21:03:49.000Z | # Searvice Check Config
#### Global
DOMAIN = 'TEAM'
### HTTP
HTTP_PAGES = [
{ 'url':'', 'expected':'index.html', 'tolerance': 0.05 },
]
### HTTPS
HTTPS_PAGES = [
{ 'url':'', 'expected':'index.html', 'tolerance': 0.05 },
]
### DNS
DNS_QUERIES = [
{ 'type':'A', 'query':'team.local', 'expected':'216.239.32... | 31.697674 | 197 | 0.556126 | 305 | 2,726 | 4.891803 | 0.37377 | 0.080429 | 0.087131 | 0.113941 | 0.128686 | 0.128686 | 0.104558 | 0.104558 | 0.05496 | 0 | 0 | 0.082011 | 0.168012 | 2,726 | 85 | 198 | 32.070588 | 0.575838 | 0.046955 | 0 | 0.068966 | 0 | 0 | 0.50039 | 0.055035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
917cd30fb15106752a4b664cbe7c55d1119fa197 | 730 | py | Python | quotes/migrations/0003_auto_20190730_2054.py | quattad/django-web-app | 410e70140f912fd139ed75ad626615f977da0dba | [
"MIT"
] | null | null | null | quotes/migrations/0003_auto_20190730_2054.py | quattad/django-web-app | 410e70140f912fd139ed75ad626615f977da0dba | [
"MIT"
] | 26 | 2019-09-09T14:11:35.000Z | 2022-03-21T22:17:27.000Z | quotes/migrations/0003_auto_20190730_2054.py | quattad/quote-buddy | 410e70140f912fd139ed75ad626615f977da0dba | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-30 12:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quotes', '0002_auto_20190722_2143'),
]
operations = [
migrations.AddField(
model_name='quote',
name='no_user_favouri... | 25.172414 | 58 | 0.582192 | 72 | 730 | 5.722222 | 0.611111 | 0.065534 | 0.101942 | 0.131068 | 0.417476 | 0.417476 | 0.203884 | 0.203884 | 0 | 0 | 0 | 0.065347 | 0.308219 | 730 | 28 | 59 | 26.071429 | 0.750495 | 0.061644 | 0 | 0.454545 | 1 | 0 | 0.125915 | 0.033675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
917d11732b626aa6f72349d47aa165b6317a2bf0 | 19,433 | py | Python | Scripts/simulation/situations/bouncer/bouncer_request.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/situations/bouncer/bouncer_request.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/situations/bouncer/bouncer_request.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\bouncer\bouncer_request.py
# Compiled at: 2020-05-05 20:26:12
# Size of source mod 2**32:... | 38.253937 | 459 | 0.720681 | 2,260 | 19,433 | 5.778761 | 0.125664 | 0.039587 | 0.036447 | 0.027871 | 0.570444 | 0.457274 | 0.350383 | 0.299005 | 0.267688 | 0.238974 | 0 | 0.005993 | 0.210107 | 19,433 | 508 | 460 | 38.253937 | 0.844821 | 0.016467 | 0 | 0.482673 | 0 | 0 | 0.031245 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0 | null | null | 0.009901 | 0.037129 | 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 |
9182fcdb7c7529f0c6f6bc821ab2888cb71375a6 | 8,800 | py | Python | DANE/handlers/base_handler.py | CLARIAH/DANE | c27b11d6fe6dc1da5097d90b32bcee64fdc27837 | [
"Apache-2.0"
] | 2 | 2020-11-24T11:03:14.000Z | 2021-03-25T13:25:35.000Z | DANE/handlers/base_handler.py | CLARIAH/DANE | c27b11d6fe6dc1da5097d90b32bcee64fdc27837 | [
"Apache-2.0"
] | null | null | null | DANE/handlers/base_handler.py | CLARIAH/DANE | c27b11d6fe6dc1da5097d90b32bcee64fdc27837 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020-present, Netherlands Institute for Sound and Vision (Nanne van Noord)
#
# 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
#
#... | 30.24055 | 86 | 0.608977 | 1,116 | 8,800 | 4.732079 | 0.210573 | 0.039765 | 0.082749 | 0.023859 | 0.323992 | 0.240485 | 0.224768 | 0.194092 | 0.194092 | 0.194092 | 0 | 0.005748 | 0.308068 | 8,800 | 290 | 87 | 30.344828 | 0.861554 | 0.605795 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342857 | false | 0 | 0.014286 | 0 | 0.671429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9183331e0000e2a39e408f9f1e987c7ff2b44727 | 20,397 | py | Python | causalnlp/core/causalinference.py | vishalbelsare/causalnlp | c21406f3ca40fd951e52e777d923c4331b2d46d1 | [
"Apache-2.0"
] | 66 | 2021-05-30T08:15:39.000Z | 2022-02-03T11:29:50.000Z | causalnlp/core/causalinference.py | vishalbelsare/causalnlp | c21406f3ca40fd951e52e777d923c4331b2d46d1 | [
"Apache-2.0"
] | 1 | 2021-10-20T04:51:27.000Z | 2021-10-20T04:51:27.000Z | causalnlp/core/causalinference.py | vishalbelsare/causalnlp | c21406f3ca40fd951e52e777d923c4331b2d46d1 | [
"Apache-2.0"
] | 4 | 2021-08-24T14:24:03.000Z | 2022-01-23T03:41:40.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00a_core.causalinference.ipynb (unless otherwise specified).
__all__ = ['CausalInferenceModel', 'metalearner_cls_dict', 'metalearner_reg_dict']
# Cell
import pandas as pd
pd.set_option('display.max_columns', 500)
import time
from ..meta.tlearner import BaseTClassifier,... | 45.226164 | 130 | 0.580527 | 2,271 | 20,397 | 5.036548 | 0.211801 | 0.010491 | 0.006819 | 0.007869 | 0.165588 | 0.11759 | 0.091187 | 0.075975 | 0.060762 | 0.043189 | 0 | 0.010291 | 0.328284 | 20,397 | 451 | 131 | 45.226164 | 0.824538 | 0.244693 | 0 | 0.086957 | 1 | 0 | 0.105024 | 0.006297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050725 | false | 0 | 0.108696 | 0.003623 | 0.210145 | 0.039855 | 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 |
918ca588d7488638d559d194870cb7e79f747e0b | 5,195 | py | Python | dog-agent-game/ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_proto_pb2.py | antopraju/FiRescue | a67c8fa3ee3422f6c6979ed242d6d68309b4230f | [
"MIT"
] | 58 | 2019-06-13T16:35:40.000Z | 2021-12-30T03:16:45.000Z | dog-agent-game/ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_proto_pb2.py | antopraju/FiRescue | a67c8fa3ee3422f6c6979ed242d6d68309b4230f | [
"MIT"
] | 7 | 2020-01-28T23:08:10.000Z | 2022-03-12T00:06:11.000Z | dog-agent-game/ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_proto_pb2.py | antopraju/FiRescue | a67c8fa3ee3422f6c6979ed242d6d68309b4230f | [
"MIT"
] | 23 | 2019-06-25T17:09:32.000Z | 2021-03-18T06:44:17.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mlagents/envs/communicator_objects/demonstration_meta_proto.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.p... | 33.301282 | 445 | 0.637536 | 521 | 5,195 | 6.069098 | 0.274472 | 0.040481 | 0.090765 | 0.051233 | 0.460468 | 0.398482 | 0.363694 | 0.33112 | 0.270398 | 0.270398 | 0 | 0.037985 | 0.27026 | 5,195 | 155 | 446 | 33.516129 | 0.796096 | 0.059095 | 0 | 0.518248 | 1 | 0.007299 | 0.227208 | 0.203647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036496 | 0 | 0.036496 | 0 | 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 |
91931a11e2dae6d3326e9b6dea96d321fbd54c7f | 15,934 | py | Python | front-end/testsuite-python-lib/Python-2.2/Lib/email/Message.py | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2020-11-26T18:53:46.000Z | 2020-11-26T18:53:46.000Z | front-end/testsuite-python-lib/Python-2.2/Lib/email/Message.py | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | null | null | null | front-end/testsuite-python-lib/Python-2.2/Lib/email/Message.py | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | # Copyright (C) 2001 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)
"""Basic message object for the email package object model.
"""
from __future__ import generators
import re
import base64
import quopri
from cStringIO import StringIO
from types import ListType
# Intrapackage imports
import Erro... | 35.252212 | 79 | 0.603615 | 2,038 | 15,934 | 4.655054 | 0.179097 | 0.030147 | 0.023295 | 0.007379 | 0.291135 | 0.220196 | 0.189733 | 0.135765 | 0.127332 | 0.127332 | 0 | 0.002936 | 0.315928 | 15,934 | 451 | 80 | 35.330377 | 0.867431 | 0.047069 | 0 | 0.277512 | 0 | 0 | 0.039256 | 0.003207 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043062 | null | null | 0.004785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
919bffc665ca163bc5714a607940265a62d30f8a | 1,368 | py | Python | setup.py | thruflo/pyramid_torque_engine | 3797c11d4fcc85cdad126b4a11d505279a7345a1 | [
"Unlicense"
] | 1 | 2015-06-23T12:51:43.000Z | 2015-06-23T12:51:43.000Z | setup.py | thruflo/pyramid_torque_engine | 3797c11d4fcc85cdad126b4a11d505279a7345a1 | [
"Unlicense"
] | 3 | 2019-12-26T16:36:59.000Z | 2022-03-21T22:16:06.000Z | setup.py | thruflo/pyramid_torque_engine | 3797c11d4fcc85cdad126b4a11d505279a7345a1 | [
"Unlicense"
] | 3 | 2015-06-24T10:25:35.000Z | 2015-12-19T18:28:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = 'pyramid_torque_engine',
version = '0.5.4',
description = 'Pyramid and nTorque based dual queue work engine system.',
author = 'James Arthur',
author_email = 'username: thruflo, domain: gmail.co... | 28.5 | 89 | 0.581871 | 129 | 1,368 | 6 | 0.75969 | 0.050388 | 0.073643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.283626 | 1,368 | 47 | 90 | 29.106383 | 0.782653 | 0.038743 | 0 | 0.071429 | 0 | 0 | 0.498476 | 0.056402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.02381 | 0 | 0.02381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
919e9269259427651822c2dfbe68fdc72f560327 | 697 | py | Python | offregister_redis/ubuntu.py | offscale/offregister-redis | 6f2b84586c78ab7e96baa0064b7a1bbd28e086b5 | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | offregister_redis/ubuntu.py | offscale/offregister-redis | 6f2b84586c78ab7e96baa0064b7a1bbd28e086b5 | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | offregister_redis/ubuntu.py | offscale/offregister-redis | 6f2b84586c78ab7e96baa0064b7a1bbd28e086b5 | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | from offregister_fab_utils.apt import apt_depends
from offregister_fab_utils.ubuntu.systemd import restart_systemd
from offregister_redis.base import dl_install_redis_server
def dl_install0(*args, **kwargs):
apt_depends("build-essential", "pkg-config", "libsystemd-dev")
return dl_install_redis_server(
... | 36.684211 | 85 | 0.756098 | 96 | 697 | 5.145833 | 0.447917 | 0.101215 | 0.072874 | 0.093117 | 0.129555 | 0.129555 | 0.129555 | 0 | 0 | 0 | 0 | 0.016474 | 0.129125 | 697 | 18 | 86 | 38.722222 | 0.797364 | 0 | 0 | 0 | 0 | 0 | 0.167862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91a0ff0ad22a436ee289e2f2845b888c081b99d8 | 1,632 | py | Python | uid3/_nbdev.py | AnetaKaczynska/uid3 | 3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a | [
"Apache-2.0"
] | null | null | null | uid3/_nbdev.py | AnetaKaczynska/uid3 | 3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a | [
"Apache-2.0"
] | null | null | null | uid3/_nbdev.py | AnetaKaczynska/uid3 | 3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"AttStats": "att_stats.ipynb",
"Attribute": "attribute.ipynb",
"Data": "data.ipynb",
"DataScrambler": "data_scrambler.ipynb",
"configuration": "data_scrambler.ipynb",
... | 33.306122 | 74 | 0.575368 | 160 | 1,632 | 5.6375 | 0.36875 | 0.093126 | 0.079823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004181 | 0.267157 | 1,632 | 48 | 75 | 34 | 0.75 | 0.022059 | 0 | 0 | 1 | 0 | 0.562735 | 0.082811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0.02439 | 0.02439 | 0 | 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 |
91a4c317e095ce2f04e1ca4f03cde4fa9eb17617 | 803 | py | Python | spark_auto_mapper_fhir/value_sets/v2_0023.py | imranq2/SparkAutoMapper.FHIR | dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2 | [
"Apache-2.0"
] | 1 | 2020-10-31T23:25:07.000Z | 2020-10-31T23:25:07.000Z | spark_auto_mapper_fhir/value_sets/v2_0023.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | spark_auto_mapper_fhir/value_sets/v2_0023.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from spark_auto_mapper_fhir.fhir_types.uri import FhirUri
from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode
from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType
# This file is auto-generated by generate_classes so do not edi... | 32.12 | 84 | 0.759651 | 106 | 803 | 5.5 | 0.537736 | 0.051458 | 0.066895 | 0.09777 | 0.259005 | 0.180103 | 0.180103 | 0 | 0 | 0 | 0 | 0.052941 | 0.153176 | 803 | 24 | 85 | 33.458333 | 0.804412 | 0.315068 | 0 | 0 | 0 | 0 | 0.092275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91aa4ff55c1fc512f12f0fa40d06e9bb15c64346 | 6,845 | py | Python | _build/jupyter_execute/ipynb/conteudo.py | gcpeixoto/FMECD | 9bca72574c6630d1594396fffef31cfb8d58dec2 | [
"CC0-1.0"
] | null | null | null | _build/jupyter_execute/ipynb/conteudo.py | gcpeixoto/FMECD | 9bca72574c6630d1594396fffef31cfb8d58dec2 | [
"CC0-1.0"
] | null | null | null | _build/jupyter_execute/ipynb/conteudo.py | gcpeixoto/FMECD | 9bca72574c6630d1594396fffef31cfb8d58dec2 | [
"CC0-1.0"
] | null | null | null | # FMECD - Fundamentos Matemáticos e Estatísticos para Ciência de Dados: Uma Abordagem Computacional com Python
## Conteúdo
- [Apresentação do curso](ipynb/00-apresentacao.ipynb)
### Semana 1
- [1A - Introdução](ipynb/01a-introducao.ipynb)
- [1B - Fundamentos de Python](ipynb/01b-fundamentos-python.ipynb)
- [1C -... | 46.25 | 370 | 0.73718 | 807 | 6,845 | 6.25031 | 0.467162 | 0.057098 | 0.045995 | 0.027756 | 0.299564 | 0.282316 | 0.282316 | 0.282316 | 0.190722 | 0.190722 | 0 | 0.01985 | 0.160993 | 6,845 | 148 | 371 | 46.25 | 0.858436 | 0.031556 | 0 | 0 | 0 | 0 | 0.001971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0125 | null | null | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91ac4800fd723cec58f2c59d9019823a2797757c | 4,527 | py | Python | venv/Lib/site-packages/tensorboard_plugin_wit/_vendor/tensorflow_serving/config/logging_config_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 1 | 2021-12-01T15:21:54.000Z | 2021-12-01T15:21:54.000Z | venv/Lib/site-packages/tensorboard_plugin_wit/_vendor/tensorflow_serving/config/logging_config_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tensorboard_plugin_wit/_vendor/tensorflow_serving/config/logging_config_pb2.py | masterrey/SmartMachines | e48aff314b1171a13a39c3a41230d900bf090a1f | [
"Apache-2.0"
] | 1 | 2020-06-28T11:47:47.000Z | 2020-06-28T11:47:47.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow_serving/config/logging_config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | 37.413223 | 461 | 0.789044 | 539 | 4,527 | 6.25974 | 0.248609 | 0.095732 | 0.042679 | 0.044458 | 0.513041 | 0.454357 | 0.366924 | 0.366924 | 0.355661 | 0.340842 | 0 | 0.028557 | 0.102717 | 4,527 | 120 | 462 | 37.725 | 0.802068 | 0.072233 | 0 | 0.525773 | 1 | 0.020619 | 0.207966 | 0.152158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061856 | 0 | 0.061856 | 0 | 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 |
91aed68e9d6296921ca488a2ecece11207be53b4 | 754 | py | Python | copy_memory/model.py | dnbaker/pytorch-dilated-rnn | 4d7e04bf00d2f144c4435cb7ad78ecee7de81dd1 | [
"MIT"
] | 123 | 2018-03-02T14:52:56.000Z | 2018-07-02T16:58:00.000Z | copy_memory/model.py | dnbaker/pytorch-dilated-rnn | 4d7e04bf00d2f144c4435cb7ad78ecee7de81dd1 | [
"MIT"
] | 4 | 2018-03-02T14:36:31.000Z | 2018-03-09T20:40:47.000Z | copy_memory/model.py | dnbaker/pytorch-dilated-rnn | 4d7e04bf00d2f144c4435cb7ad78ecee7de81dd1 | [
"MIT"
] | 25 | 2018-08-29T19:11:47.000Z | 2021-11-17T08:04:33.000Z | from torch import nn
from drnn import DRNN
class DRNN_Copy(nn.Module):
def __init__(self, input_size, hidden_size, num_layers, dropout, output_size):
super(DRNN_Copy, self).__init__()
self.drnn = DRNN(cell_type='GRU', dropout=dropout, n_hidden=hidden_size,
n_input=input_s... | 35.904762 | 83 | 0.651194 | 107 | 754 | 4.28972 | 0.383178 | 0.087146 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012069 | 0.230769 | 754 | 21 | 84 | 35.904762 | 0.77931 | 0.151194 | 0 | 0 | 0 | 0 | 0.004724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91b2ac3e2e20861856a96f98995081ea8d4ed8dd | 15,525 | py | Python | examples/emptyServer.py | chanke/afspy | 525e7b3b53e58be515f11b83cc59ddb0765ef8e5 | [
"BSD-2-Clause"
] | null | null | null | examples/emptyServer.py | chanke/afspy | 525e7b3b53e58be515f11b83cc59ddb0765ef8e5 | [
"BSD-2-Clause"
] | null | null | null | examples/emptyServer.py | chanke/afspy | 525e7b3b53e58be515f11b83cc59ddb0765ef8e5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import re
import time,logging
import argparse, string,datetime,sys
import afs
from afs.util.AfsConfig import parseDefaultConfig
from afs.util.afsutil import parseHumanWriteableSize
from afs.service.OSDVolService import OSDVolService
from afs.service.OSDCellService import OSDCellService
from afs.servi... | 48.065015 | 153 | 0.576876 | 1,750 | 15,525 | 5.088571 | 0.169714 | 0.095227 | 0.018866 | 0.018866 | 0.553509 | 0.519933 | 0.50219 | 0.443459 | 0.435373 | 0.406401 | 0 | 0.004659 | 0.322512 | 15,525 | 322 | 154 | 48.214286 | 0.841985 | 0.066667 | 0 | 0.587591 | 0 | 0 | 0.163128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047445 | null | null | 0.054745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.