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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
674360020cb5da4309eabb4a613e0a3430ff57d6 | 3,299 | py | Python | ztag/annotations/FtpSharp.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 107 | 2015-10-13T16:03:21.000Z | 2021-11-08T10:53:07.000Z | ztag/annotations/FtpSharp.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 73 | 2015-10-14T17:27:10.000Z | 2018-10-01T14:32:44.000Z | ztag/annotations/FtpSharp.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 36 | 2015-10-14T17:13:20.000Z | 2021-10-05T19:41:10.000Z | import re
from ztag.annotation import Annotation
from ztag.annotation import OperatingSystem
from ztag.annotation import Type
from ztag.annotation import Manufacturer
from ztag import protocols
import ztag.test
class FtpSharp(Annotation):
protocol = protocols.FTP
subprotocol = protocols.FTP.BANNER
port = ... | 37.91954 | 76 | 0.614125 | 577 | 3,299 | 3.481802 | 0.181976 | 0.127427 | 0.154306 | 0.169736 | 0.525137 | 0.508213 | 0.508213 | 0.414136 | 0.414136 | 0.401692 | 0 | 0.187825 | 0.243104 | 3,299 | 86 | 77 | 38.360465 | 0.61674 | 0 | 0 | 0.047619 | 0 | 0.02381 | 0.143147 | 0.028359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.166667 | 0 | 0.404762 | 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 |
67467d8c801af825d7440652ce7238a9789fd1b8 | 940 | py | Python | mundo2/exercicio039.py | beatriznaimaite/Exercicios-Python-Curso-Em-Video | e4213c2054a67d7948aa9023f2f0f33ab7e8eb96 | [
"MIT"
] | null | null | null | mundo2/exercicio039.py | beatriznaimaite/Exercicios-Python-Curso-Em-Video | e4213c2054a67d7948aa9023f2f0f33ab7e8eb96 | [
"MIT"
] | null | null | null | mundo2/exercicio039.py | beatriznaimaite/Exercicios-Python-Curso-Em-Video | e4213c2054a67d7948aa9023f2f0f33ab7e8eb96 | [
"MIT"
] | null | null | null | """
Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com sua idade,
se ele ainda vai se alistar ao serviço militar, se é a hora de se alistar, ou se já passou
do tempo do alistamento. Seu programa também deverá mostrar o tempo que falta ou que passou do prazo.
"""
from datetime import dat... | 36.153846 | 101 | 0.7 | 158 | 940 | 4.101266 | 0.449367 | 0.049383 | 0.018519 | 0.049383 | 0.169753 | 0.089506 | 0.089506 | 0 | 0 | 0 | 0 | 0.010899 | 0.219149 | 940 | 25 | 102 | 37.6 | 0.871935 | 0.304255 | 0 | 0 | 0 | 0 | 0.478328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.0625 | 0 | 0.0625 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
674cefe4e95b29b613e52156948691d117ae8141 | 1,748 | py | Python | tests/conftest.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 29 | 2020-05-05T13:25:33.000Z | 2022-01-03T14:12:29.000Z | tests/conftest.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 215 | 2019-11-26T12:59:39.000Z | 2022-02-01T12:38:31.000Z | tests/conftest.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 7 | 2020-06-12T01:42:02.000Z | 2021-05-27T03:40:42.000Z | import os
import pytest
from .mock_env import MockEnv
# Test setup from:
# https://docs.pytest.org/en/latest/example/simple.html#control-skipping-of-tests-according-to-command-line-option
def pytest_addoption(parser):
parser.addoption(
"--skipslow", action="store_true", default=False, help="skip slow te... | 24.277778 | 114 | 0.704233 | 231 | 1,748 | 5.190476 | 0.463203 | 0.054212 | 0.083403 | 0.100083 | 0.17598 | 0.17598 | 0.17598 | 0.078399 | 0 | 0 | 0 | 0 | 0.176773 | 1,748 | 71 | 115 | 24.619718 | 0.833218 | 0.156178 | 0 | 0.166667 | 0 | 0 | 0.126022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.02381 | 0.214286 | 0.02381 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6750707b2724c39f371d6132298fb12acb428b51 | 789 | py | Python | testing/test_sct_dmri_concat_b0_and_dwi.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | 1 | 2021-09-07T08:52:21.000Z | 2021-09-07T08:52:21.000Z | testing/test_sct_dmri_concat_b0_and_dwi.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | testing/test_sct_dmri_concat_b0_and_dwi.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Test function for sct_dmri_concat_b0_and_dwi
#
# Copyright (c) 2019 Polytechnique Montreal <www.neuro.polymtl.ca>
# Author: Julien Cohen-Adad
#
# About the license: see the file LICENSE.TXT
def init(param_test):
"""
Initialize class: param_test
"""
# initialization
defaul... | 27.206897 | 107 | 0.685678 | 112 | 789 | 4.642857 | 0.553571 | 0.138462 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017657 | 0.210393 | 789 | 29 | 108 | 27.206897 | 0.817014 | 0.371356 | 0 | 0.222222 | 0 | 0.111111 | 0.404814 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67545cb3b86aa68e9032317827842947834735c0 | 12,911 | py | Python | dbaas/drivers/base.py | panwalas/database-as-a-service | d91126e2dc45eac2a32a0ed20a6d89f7dd85cf8c | [
"BSD-3-Clause"
] | null | null | null | dbaas/drivers/base.py | panwalas/database-as-a-service | d91126e2dc45eac2a32a0ed20a6d89f7dd85cf8c | [
"BSD-3-Clause"
] | null | null | null | dbaas/drivers/base.py | panwalas/database-as-a-service | d91126e2dc45eac2a32a0ed20a6d89f7dd85cf8c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import logging
from collections import Iterable
from django.utils.translation import ugettext_lazy as _
from .errors import ConnectionError
LOG = logging.getLogger(__name__)
__all__ = ['BaseDriver', 'DatabaseStatus', 'DatabaseInfraStatu... | 31.490244 | 104 | 0.656494 | 1,399 | 12,911 | 5.80629 | 0.173696 | 0.121138 | 0.129632 | 0.044319 | 0.417334 | 0.286224 | 0.219008 | 0.204481 | 0.16521 | 0.16521 | 0 | 0.002425 | 0.265433 | 12,911 | 409 | 105 | 31.567237 | 0.85407 | 0.097359 | 0 | 0.311787 | 0 | 0 | 0.039453 | 0.002118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30038 | false | 0.026616 | 0.038023 | 0.064639 | 0.486692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
675818b22f4db483153c5d551b63a7a3844ef439 | 6,862 | py | Python | data/scraper/scraper.py | untra/cufcq | 85e6ec638ea6408e2f6f28595fc511ff9cedfb20 | [
"MIT"
] | 3 | 2015-06-01T02:03:52.000Z | 2021-02-07T21:19:04.000Z | data/scraper/scraper.py | antsankov/cufcq | 59b01a2e54bdc0a6ba92992291ac415a625b2932 | [
"MIT"
] | 1 | 2015-03-16T23:05:20.000Z | 2015-03-17T02:09:08.000Z | data/scraper/scraper.py | untra/cufcq | 85e6ec638ea6408e2f6f28595fc511ff9cedfb20 | [
"MIT"
] | 1 | 2018-07-02T17:20:31.000Z | 2018-07-02T17:20:31.000Z | # This scraper accesses the fcq website, fills out the forms, downloads FCQ data, and then optionally converts them to CSVs for the DB
import mechanize
import requests
import os
import argparse
import csv
# Sample for getting Spring Semester of 2015:
# python scraper.py -c true -ft 1 -fy 2015 -lt 1 -ly 2015
# 1 is... | 44.849673 | 571 | 0.666861 | 973 | 6,862 | 4.606372 | 0.325797 | 0.063811 | 0.037706 | 0.015618 | 0.281571 | 0.271754 | 0.261044 | 0.244087 | 0.198572 | 0.187416 | 0 | 0.030961 | 0.195133 | 6,862 | 152 | 572 | 45.144737 | 0.780554 | 0.338823 | 0 | 0.023256 | 0 | 0.011628 | 0.296601 | 0.135081 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011628 | 0.05814 | null | null | 0.151163 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
675ac1a4bfba565fe03628ebbb4830741a187df0 | 15,254 | py | Python | sleepypuppy/collector/views.py | soffensive/sleepy-puppy | ab8ff46d624d30458740676b6930184e97a742a6 | [
"Apache-2.0"
] | 952 | 2015-08-31T16:50:22.000Z | 2018-08-22T08:48:27.000Z | sleepypuppy/collector/views.py | soffensive/sleepy-puppy | ab8ff46d624d30458740676b6930184e97a742a6 | [
"Apache-2.0"
] | 18 | 2015-09-03T19:23:23.000Z | 2018-06-24T17:36:40.000Z | sleepypuppy/collector/views.py | rjw1/sleepy-puppy | 2ef1eddff60045c8dd3799d9a57974fa3a7c5eb7 | [
"Apache-2.0"
] | 135 | 2015-09-01T09:22:48.000Z | 2018-08-26T02:10:16.000Z | # Copyright 2015 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 39.416021 | 134 | 0.561164 | 1,648 | 15,254 | 5.101335 | 0.179612 | 0.032473 | 0.029975 | 0.023314 | 0.528964 | 0.483526 | 0.433805 | 0.392649 | 0.357678 | 0.335554 | 0 | 0.005531 | 0.324374 | 15,254 | 386 | 135 | 39.518135 | 0.810208 | 0.089091 | 0 | 0.48951 | 0 | 0 | 0.141671 | 0.014509 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.062937 | null | null | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
675e852c9c07e0577cdc5009607d6d4e16019fbe | 4,941 | py | Python | inner_scripts/model_desc.py | qibo-cn/tool_ui | ebcad2cec500304f09acb11e55fec12c35b03cd8 | [
"CC0-1.0"
] | null | null | null | inner_scripts/model_desc.py | qibo-cn/tool_ui | ebcad2cec500304f09acb11e55fec12c35b03cd8 | [
"CC0-1.0"
] | 129 | 2021-01-13T13:10:03.000Z | 2022-03-09T13:06:08.000Z | inner_scripts/model_desc.py | qibo-cn/tool_ui | ebcad2cec500304f09acb11e55fec12c35b03cd8 | [
"CC0-1.0"
] | 1 | 2021-02-04T05:55:14.000Z | 2021-02-04T05:55:14.000Z | # -*- coding:utf-8 -*-
"""
This file generates description of model and
intermediate images of extracted features
"""
import keras
import sys
import json
import numpy as np
from PIL import Image
import os
base_path = os.path.dirname(os.path.abspath(__file__))
x_norm_file = sys.argv[1]
x_test_file = sys.argv[2]
y_tes... | 38.601563 | 145 | 0.69237 | 732 | 4,941 | 4.278689 | 0.180328 | 0.077267 | 0.07152 | 0.065134 | 0.440932 | 0.402937 | 0.35696 | 0.313538 | 0.249681 | 0.221584 | 0 | 0.013212 | 0.157458 | 4,941 | 127 | 146 | 38.905512 | 0.73913 | 0.063752 | 0 | 0.144444 | 1 | 0 | 0.160373 | 0.009766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.077778 | 0 | 0.077778 | 0.077778 | 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 |
676085c44f42c50fce424df3feb78abb0df82b09 | 1,426 | py | Python | marklogic/models/connection.py | paul-hoehne/MarkLogic_Python | 3d00c3e7bb9459de879a4a08b3c7e1b3530d59f9 | [
"Apache-2.0"
] | 7 | 2015-02-24T00:09:12.000Z | 2021-04-01T18:05:16.000Z | marklogic/models/connection.py | paul-hoehne/MarkLogic_Python | 3d00c3e7bb9459de879a4a08b3c7e1b3530d59f9 | [
"Apache-2.0"
] | 19 | 2015-02-28T15:40:58.000Z | 2015-05-13T15:38:12.000Z | marklogic/models/connection.py | paul-hoehne/MarkLogic_Python | 3d00c3e7bb9459de879a4a08b3c7e1b3530d59f9 | [
"Apache-2.0"
] | 12 | 2015-02-27T15:25:12.000Z | 2021-04-01T18:05:31.000Z | #
# Copyright 2015 MarkLogic Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 33.162791 | 74 | 0.720898 | 194 | 1,426 | 5.257732 | 0.56701 | 0.058824 | 0.02549 | 0.031373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.203366 | 1,426 | 43 | 75 | 33.162791 | 0.869718 | 0.623422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.1 | 0.1 | 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 |
6761251f672f45a8ccaeabece423e7e33f481657 | 401 | py | Python | examples/nl80211_interfaces.py | li-ma/pyroute2 | 48b85e39d675c18c05eb209229db082316aa760a | [
"Apache-2.0"
] | null | null | null | examples/nl80211_interfaces.py | li-ma/pyroute2 | 48b85e39d675c18c05eb209229db082316aa760a | [
"Apache-2.0"
] | null | null | null | examples/nl80211_interfaces.py | li-ma/pyroute2 | 48b85e39d675c18c05eb209229db082316aa760a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from pyroute2.iwutil import IW
iw = IW()
for q in iw.get_interfaces_dump():
phyname = 'phy%i' % int(q.get_attr('NL80211_ATTR_WIPHY'))
print('%s\t%s\t%s\t%s' % (q.get_attr('NL80211_ATTR_IFINDEX'), phyname,
q.get_attr('NL80211_ATTR_IFN... | 30.846154 | 74 | 0.57606 | 60 | 401 | 3.616667 | 0.533333 | 0.073733 | 0.147465 | 0.276498 | 0.382488 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07309 | 0.249377 | 401 | 12 | 75 | 33.416667 | 0.647841 | 0.104738 | 0 | 0 | 0 | 0 | 0.258427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
67622e74513026a0935952df1e2249e1bb92ead8 | 434 | py | Python | arm_prosthesis/external_communication/models/command_type.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 2 | 2021-11-08T01:52:36.000Z | 2021-11-08T01:52:38.000Z | arm_prosthesis/external_communication/models/command_type.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | null | null | null | arm_prosthesis/external_communication/models/command_type.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 1 | 2020-11-08T16:45:23.000Z | 2020-11-08T16:45:23.000Z | from enum import Enum
class CommandType(Enum):
Ok = 1
Error = 2
Telemetry = 3
GetSettings = 4
SetSettings = 5
GetGestures = 6
SaveGesture = 7
DeleteGesture = 8
PerformGestureId = 9
PerformGestureRaw = 10
SetPositions = 11
UpdateLastTimeSync = 12
GetT... | 19.727273 | 28 | 0.612903 | 41 | 434 | 6.487805 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087413 | 0.341014 | 434 | 21 | 29 | 20.666667 | 0.842657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
67625a8852ffcffb0cab0f81ec07576cf0675eb2 | 5,043 | py | Python | ssplanner/coresetup/models.py | AravinthKannan/Bharathi | 244e87d0bb2eb6ff3ef52fa0a2bcc0d6d88da160 | [
"Apache-2.0"
] | null | null | null | ssplanner/coresetup/models.py | AravinthKannan/Bharathi | 244e87d0bb2eb6ff3ef52fa0a2bcc0d6d88da160 | [
"Apache-2.0"
] | 4 | 2020-02-12T02:56:33.000Z | 2021-06-10T21:38:46.000Z | ssplanner/coresetup/models.py | AravinthKannan/Bharathi | 244e87d0bb2eb6ff3ef52fa0a2bcc0d6d88da160 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# python manage.py make migrations your_app_label
# python manage.py migrate --fake-initial your_app_label
from __future__ import unicode_literals
from django.db import models
#from django.contrib.auth.models import User
from django.contrib.auth.models import (
AbstractUser,
BaseUserMa... | 29.840237 | 81 | 0.586952 | 496 | 5,043 | 5.768145 | 0.235887 | 0.115344 | 0.02971 | 0.0367 | 0.601538 | 0.601538 | 0.590004 | 0.590004 | 0.550507 | 0.484796 | 0 | 0.000302 | 0.342851 | 5,043 | 168 | 82 | 30.017857 | 0.863005 | 0.286734 | 0 | 0.45679 | 0 | 0 | 0.039502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.135802 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
67625f4fba8a31d232030649ba58d723f46d5a9c | 6,628 | py | Python | Occ2.py | vincseize/MG | bceae7d11f6e93426f14b6f6596078a3f6104472 | [
"MIT"
] | null | null | null | Occ2.py | vincseize/MG | bceae7d11f6e93426f14b6f6596078a3f6104472 | [
"MIT"
] | null | null | null | Occ2.py | vincseize/MG | bceae7d11f6e93426f14b6f6596078a3f6104472 | [
"MIT"
] | null | null | null |
def AK00_FOR_OCC_VON_KROUMCH(save_after='False'):
'''
Creer la branche de rendu Occ2 pour l oeil droit.
Selectionner l'a7 Occ_2_Render.
'''
def save_graph(protoGraphResult,myfilm,myseq,myshot):
''' '''
assetList = []
graphPath='/u/'+projectLower+'/Users/COM... | 40.414634 | 143 | 0.537719 | 581 | 6,628 | 6.017212 | 0.327022 | 0.009153 | 0.022883 | 0.018593 | 0.300343 | 0.17849 | 0.109268 | 0.051487 | 0.025172 | 0.025172 | 0 | 0.009917 | 0.239288 | 6,628 | 163 | 144 | 40.662577 | 0.683459 | 0.162945 | 0 | 0.086957 | 0 | 0 | 0.092627 | 0.01093 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01087 | 0 | null | null | 0.054348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67663dfe2c2b3a2523d866201af0c8840c31bc82 | 8,822 | py | Python | mothman/depictions.py | ongyx/cidercellar | c8b859838b049c540c85d90cbac09bd5ad8c1ec2 | [
"Apache-2.0"
] | 1 | 2022-02-17T21:04:55.000Z | 2022-02-17T21:04:55.000Z | mothman/depictions.py | ongyx/mothman | c8b859838b049c540c85d90cbac09bd5ad8c1ec2 | [
"Apache-2.0"
] | null | null | null | mothman/depictions.py | ongyx/mothman | c8b859838b049c540c85d90cbac09bd5ad8c1ec2 | [
"Apache-2.0"
] | null | null | null | # coding: utf8
"""Generate Cydia/Sileo depictions (from deb packages) for Debian repos.
"""
import json
import re
from datetime import datetime
from xml.etree import ElementTree as etree
# regexes
RE_DEPENDS = re.compile(r"^([a-z0-9+\-\.]+)(?: *\(([<>=]{1,2}) *(.*)?\))?$")
def dict_to_xml(data: dict, rootname: str ... | 29.804054 | 89 | 0.529358 | 875 | 8,822 | 5.245714 | 0.302857 | 0.019826 | 0.021569 | 0.028758 | 0.100654 | 0.057952 | 0.04793 | 0.033551 | 0.033551 | 0 | 0 | 0.008131 | 0.34482 | 8,822 | 295 | 90 | 29.905085 | 0.785986 | 0.256745 | 0 | 0.186335 | 1 | 0 | 0.198439 | 0.02803 | 0 | 0 | 0 | 0.00339 | 0 | 1 | 0.055901 | false | 0 | 0.024845 | 0 | 0.136646 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
676cb9ff8e6ce71477fed7c40070fe40bf98e7c1 | 6,263 | py | Python | python/dsbox/template/template_files/loaded/CMUacledProblemTemplate.py | usc-isi-i2/dsbox-ta2 | 85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2 | [
"MIT"
] | 7 | 2018-05-10T22:19:44.000Z | 2020-07-21T07:28:39.000Z | python/dsbox/template/template_files/loaded/CMUacledProblemTemplate.py | usc-isi-i2/dsbox-ta2 | 85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2 | [
"MIT"
] | 187 | 2018-04-13T17:19:24.000Z | 2020-04-21T00:41:15.000Z | python/dsbox/template/template_files/loaded/CMUacledProblemTemplate.py | usc-isi-i2/dsbox-ta2 | 85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2 | [
"MIT"
] | 7 | 2018-07-10T00:14:07.000Z | 2019-07-25T17:59:44.000Z | from dsbox.template.template import DSBoxTemplate
from d3m.metadata.problem import TaskKeyword
from dsbox.template.template_steps import TemplateSteps
from dsbox.schema import SpecializedProblem
import typing
import numpy as np # type: ignore
class CMUacledProblemTemplate(DSBoxTemplate):
# From primitives/v2... | 44.735714 | 171 | 0.35574 | 360 | 6,263 | 5.997222 | 0.366667 | 0.066234 | 0.091709 | 0.103752 | 0.371931 | 0.305697 | 0.23622 | 0.23622 | 0.189903 | 0.189903 | 0 | 0.048554 | 0.536324 | 6,263 | 139 | 172 | 45.057554 | 0.694904 | 0.045505 | 0 | 0.234848 | 0 | 0 | 0.27157 | 0.10253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007576 | false | 0 | 0.045455 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
676edb7d6f03cf4d79f2b38c225a37320bc6c0a5 | 2,244 | py | Python | tests/main_test.py | sinel/quaint | 5848213bbfc9f78d56981c20214e7d078c22a167 | [
"MIT"
] | null | null | null | tests/main_test.py | sinel/quaint | 5848213bbfc9f78d56981c20214e7d078c22a167 | [
"MIT"
] | null | null | null | tests/main_test.py | sinel/quaint | 5848213bbfc9f78d56981c20214e7d078c22a167 | [
"MIT"
] | null | null | null | # ****************************************************************************************
# _ __
# ____ ___ ______ _(_)___ / /_
# / __ `/ / / / __ `/ / __ \/ __/ A Multi-Agent Framework
# / /_/ / /_/ / /_/ / / / / / /_ for Analysis and Control
# \__, /\__,_/\__,_/_/_/ /_... | 43.153846 | 91 | 0.63369 | 273 | 2,244 | 5.007326 | 0.498169 | 0.064375 | 0.01902 | 0.021946 | 0.172641 | 0.172641 | 0.172641 | 0.172641 | 0.172641 | 0.172641 | 0 | 0.005587 | 0.202317 | 2,244 | 51 | 92 | 44 | 0.758101 | 0.725936 | 0 | 0.142857 | 0 | 0 | 0.111693 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
676ef27ca4d31b489f2b993ed2f4361227703d17 | 692 | py | Python | tests/timetest.py | Ibuprofen/zooplankton | 8c16613495c2619bbeca25fa7ce5e8673cca0fd1 | [
"MIT"
] | null | null | null | tests/timetest.py | Ibuprofen/zooplankton | 8c16613495c2619bbeca25fa7ce5e8673cca0fd1 | [
"MIT"
] | null | null | null | tests/timetest.py | Ibuprofen/zooplankton | 8c16613495c2619bbeca25fa7ce5e8673cca0fd1 | [
"MIT"
] | 1 | 2016-05-15T05:38:06.000Z | 2016-05-15T05:38:06.000Z | import time
import random
from itertools import count
fps = 24
loop_delta = 1./fps
current_time = target_time = time.time()
for i in count():
#### loop frequency evaluation
previous_time = current_time
current_time = time.time()
time_delta = current_time - previous_time
print 'loop #%d frequency: ... | 25.62963 | 78 | 0.669075 | 97 | 692 | 4.587629 | 0.402062 | 0.125843 | 0.107865 | 0.080899 | 0.098876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016886 | 0.229769 | 692 | 26 | 79 | 26.615385 | 0.818011 | 0.182081 | 0 | 0 | 0 | 0 | 0.063406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
677480a2864089b04af8cc02677a0b19365d8cb4 | 2,559 | py | Python | pandaproxy/proxy/panda.py | PanDAWMS/panda-proxy | 731bf01d6684f52798a750bf049078c6eb11ed59 | [
"Apache-2.0"
] | null | null | null | pandaproxy/proxy/panda.py | PanDAWMS/panda-proxy | 731bf01d6684f52798a750bf049078c6eb11ed59 | [
"Apache-2.0"
] | null | null | null | pandaproxy/proxy/panda.py | PanDAWMS/panda-proxy | 731bf01d6684f52798a750bf049078c6eb11ed59 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""
entry point
"""
import sys
import cgi
from proxycore.ProxyUtils import DummyReq
# import web I/F
allowedMethods = []
from proxyinterface.HttpInterface import \
insertSecretKeyForPandaID,getEventRanges,updateEventRange,getKeyPair,\
testIF,updateEventRanges
allowedMethods += ['insertSe... | 32.392405 | 96 | 0.561157 | 228 | 2,559 | 6.258772 | 0.464912 | 0.02733 | 0.077085 | 0.0911 | 0.159776 | 0.123336 | 0 | 0 | 0 | 0 | 0 | 0.007051 | 0.334896 | 2,559 | 78 | 97 | 32.807692 | 0.831375 | 0.093787 | 0 | 0.142857 | 0 | 0 | 0.13272 | 0.010951 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.102041 | 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 |
6780e9909d0752e3c8eb22d234dce2807b249402 | 1,735 | py | Python | setup.py | amdevine/genetic_collections | 5b1ae35bc1db30837398594fb459928ac16abd01 | [
"MIT"
] | 6 | 2017-10-09T15:04:21.000Z | 2021-08-23T18:22:57.000Z | setup.py | amdevine/genetic_collections | 5b1ae35bc1db30837398594fb459928ac16abd01 | [
"MIT"
] | 9 | 2017-11-06T21:20:30.000Z | 2021-11-15T17:47:44.000Z | setup.py | amdevine/genetic_collections | 5b1ae35bc1db30837398594fb459928ac16abd01 | [
"MIT"
] | 3 | 2017-11-20T20:32:47.000Z | 2019-10-31T20:45:02.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'requests',
'pandas',
'l... | 27.109375 | 86 | 0.657061 | 190 | 1,735 | 5.826316 | 0.547368 | 0.097561 | 0.067751 | 0.070461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007315 | 0.212104 | 1,735 | 63 | 87 | 27.539683 | 0.802487 | 0.101441 | 0 | 0 | 0 | 0 | 0.417419 | 0.078065 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
678176b21a59bc5eaba82f4618530c615cca5771 | 855 | py | Python | 76-Minimum-Window-Substring/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 76-Minimum-Window-Substring/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 76-Minimum-Window-Substring/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | class Solution:
def minWindow(self, s: str, t: str) -> str:
target, window = defaultdict(int), defaultdict(int)
left, right, match = 0, 0, 0
d = float("inf")
for c in t:
target[c] += 1
while right < len(s):
c = s[right]
if c in target:
... | 28.5 | 59 | 0.373099 | 96 | 855 | 3.322917 | 0.302083 | 0.087774 | 0.056426 | 0.068966 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0 | 0.023981 | 0.512281 | 855 | 29 | 60 | 29.482759 | 0.741007 | 0 | 0 | 0.16 | 0 | 0 | 0.007018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
678299b3097d14a6a8cb07745168710c14706ebf | 2,533 | py | Python | case_study_toolbox/parse_grid.py | mbonto/fewshot_generalization | 3001bc62587c6c2e58e393778a804a649b8e513b | [
"MIT"
] | null | null | null | case_study_toolbox/parse_grid.py | mbonto/fewshot_generalization | 3001bc62587c6c2e58e393778a804a649b8e513b | [
"MIT"
] | null | null | null | case_study_toolbox/parse_grid.py | mbonto/fewshot_generalization | 3001bc62587c6c2e58e393778a804a649b8e513b | [
"MIT"
] | null | null | null | import argparse
from .utils import GridSearch
def get_grid_search_params(mode, classifier, n_way, n_val, n_shot, dataset, dot_name, arena):
grid = GridSearch()
grid.add_range('dataset', [dataset])
grid.add_range('mode', [mode])
grid.add_range('n_way', [n_way])
grid.add_range('n_val', [n_val])
g... | 50.66 | 110 | 0.664824 | 324 | 2,533 | 4.944444 | 0.33642 | 0.122347 | 0.209738 | 0.089888 | 0.194132 | 0.033708 | 0.033708 | 0 | 0 | 0 | 0 | 0.011804 | 0.163837 | 2,533 | 49 | 111 | 51.693878 | 0.74457 | 0.113699 | 0 | 0 | 0 | 0 | 0.282901 | 0.025067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.046512 | 0 | 0.139535 | 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 |
67856bf845a51c457506c9e9b5c05ab30822e777 | 1,439 | py | Python | backend/iot/iot/urls.py | hjp7310/easy-pia | f7e258b038964dc02d6270c1ff1602657ecbbb85 | [
"MIT"
] | null | null | null | backend/iot/iot/urls.py | hjp7310/easy-pia | f7e258b038964dc02d6270c1ff1602657ecbbb85 | [
"MIT"
] | 5 | 2022-02-10T10:57:32.000Z | 2022-03-02T06:03:17.000Z | backend/iot/iot/urls.py | hjp7310/easy-pia | f7e258b038964dc02d6270c1ff1602657ecbbb85 | [
"MIT"
] | null | null | null | """iot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | 37.868421 | 82 | 0.748436 | 201 | 1,439 | 5.293532 | 0.39801 | 0.046992 | 0.070489 | 0.022556 | 0.109962 | 0.109962 | 0.070489 | 0 | 0 | 0 | 0 | 0.00638 | 0.128562 | 1,439 | 37 | 83 | 38.891892 | 0.842105 | 0.43016 | 0 | 0 | 0 | 0 | 0.151292 | 0 | 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 |
67897833762a42acc8d5bc8ecb9e2b09f08feb69 | 18,841 | py | Python | controllers/pr.py | ptressel/sahana-eden-madpub | b16418b36d0fb781fd045f7e7edd1a30259a1f35 | [
"MIT"
] | 1 | 2016-01-01T12:22:48.000Z | 2016-01-01T12:22:48.000Z | controllers/pr.py | ptressel/sahana-eden-madpub | b16418b36d0fb781fd045f7e7edd1a30259a1f35 | [
"MIT"
] | null | null | null | controllers/pr.py | ptressel/sahana-eden-madpub | b16418b36d0fb781fd045f7e7edd1a30259a1f35 | [
"MIT"
] | 1 | 2020-04-29T13:58:31.000Z | 2020-04-29T13:58:31.000Z | # -*- coding: utf-8 -*-
""" VITA Person Registry, Controllers
@author: nursix
@see: U{http://eden.sahanafoundation.org/wiki/BluePrintVITA}
"""
prefix = request.controller
resourcename = request.function
# -----------------------------------------------------------------------------
# Options Menu (availabl... | 40.087234 | 169 | 0.478955 | 1,795 | 18,841 | 4.903621 | 0.211699 | 0.02454 | 0.017496 | 0.017723 | 0.238809 | 0.189162 | 0.127244 | 0.067939 | 0.067939 | 0.052261 | 0 | 0.009671 | 0.35237 | 18,841 | 469 | 170 | 40.172708 | 0.711687 | 0.180192 | 0 | 0.183007 | 0 | 0 | 0.067986 | 0 | 0 | 0 | 0 | 0.027719 | 0 | 1 | 0.04902 | false | 0 | 0 | 0 | 0.094771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
678b54f54d397725065bdf91be9e8d74b9ef7cb5 | 3,679 | py | Python | runNode.py | aliteke/Tango | ea74145fabf3b9e9561f715760ba2bf7f2af7ecf | [
"MIT"
] | 2 | 2021-03-12T19:23:20.000Z | 2021-12-10T10:41:11.000Z | runNode.py | aliteke/Tango | ea74145fabf3b9e9561f715760ba2bf7f2af7ecf | [
"MIT"
] | null | null | null | runNode.py | aliteke/Tango | ea74145fabf3b9e9561f715760ba2bf7f2af7ecf | [
"MIT"
] | null | null | null | # import requests
# from uuid import uuid4
from flask import Flask, jsonify, request
from flask import send_file
import networkx as nx
import matplotlib.pyplot as plt
import os
import sys
# custom classes
from lib.node import Node
from lib.util import Util
app = Flask(__name__)
@app.route('/node/register_neighbours'... | 29.198413 | 113 | 0.705083 | 534 | 3,679 | 4.745318 | 0.372659 | 0.022099 | 0.022099 | 0.018942 | 0.104183 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0.008957 | 0.150313 | 3,679 | 125 | 114 | 29.432 | 0.801663 | 0.222887 | 0 | 0.081081 | 0 | 0 | 0.242157 | 0.008812 | 0 | 0 | 0 | 0.008 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.094595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
678d4496cfb65fd72903fc7933ebd6d4b474b8d0 | 1,307 | py | Python | extstats/utils/elastic.py | bakl/chrome-extensions-archive | e940c40368f04b97f52c03b045569768ead6760f | [
"MIT"
] | 408 | 2016-04-27T03:20:20.000Z | 2022-02-25T06:48:16.000Z | extstats/utils/elastic.py | bakl/chrome-extensions-archive | e940c40368f04b97f52c03b045569768ead6760f | [
"MIT"
] | 37 | 2016-04-27T07:55:57.000Z | 2022-02-13T09:25:56.000Z | extstats/utils/elastic.py | bakl/chrome-extensions-archive | e940c40368f04b97f52c03b045569768ead6760f | [
"MIT"
] | 79 | 2016-05-18T09:51:53.000Z | 2022-03-25T13:43:31.000Z | from datetime import datetime
from elasticsearch_dsl import DocType, String, Date, Integer, Float
from elasticsearch_dsl.connections import connections
# Define a default Elasticsearch client
connections.create_connection(hosts=['localhost'])
class Extension(DocType):
name = String()
url = String()
descri... | 29.044444 | 83 | 0.703902 | 161 | 1,307 | 5.627329 | 0.484472 | 0.029801 | 0.04415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177506 | 1,307 | 45 | 84 | 29.044444 | 0.842791 | 0.228003 | 0 | 0 | 0 | 0 | 0.150699 | 0.075848 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.413793 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
67967857fd674273854e510303bde06296a728dd | 1,980 | py | Python | update.py | spascou/ps2.liquidwarp.net | ef74d8793e63a8d52770cd2e5cd9ae60f4c4ae10 | [
"MIT"
] | 4 | 2020-06-25T17:19:07.000Z | 2020-11-13T05:53:52.000Z | update.py | spascou/ps2.liquidwarp.net | ef74d8793e63a8d52770cd2e5cd9ae60f4c4ae10 | [
"MIT"
] | 2 | 2020-11-22T02:43:47.000Z | 2020-12-19T09:45:21.000Z | update.py | spascou/ps2.liquidwarp.net | ef74d8793e63a8d52770cd2e5cd9ae60f4c4ae10 | [
"MIT"
] | null | null | null | import os
from typing import Optional
from generate import (
clean_bucket,
clean_site,
copy_misc,
copy_statics,
generate_css,
generate_pages,
update_all_data_files,
upload_to_bucket,
)
BUCKET_NAME = "ps2.liquidwarp.net"
CENSUS_SERVICE_ID: Optional[str] = os.environ.get("CENSUS_SERVICE... | 25.714286 | 76 | 0.715152 | 263 | 1,980 | 5.053232 | 0.231939 | 0.082769 | 0.10158 | 0.108352 | 0.428141 | 0.318284 | 0.298721 | 0.27088 | 0.054176 | 0 | 0 | 0.000612 | 0.174747 | 1,980 | 76 | 77 | 26.052632 | 0.81273 | 0.010101 | 0 | 0 | 1 | 0 | 0.147826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 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 |
6798b7b5d83a83413911c4c9584bdc8ad7a326d2 | 725 | py | Python | dai14shou/code14-5.py | naoshige314/workshop01 | 5c7be08f99eb164b7901628de26cecfd04fa926f | [
"MIT"
] | null | null | null | dai14shou/code14-5.py | naoshige314/workshop01 | 5c7be08f99eb164b7901628de26cecfd04fa926f | [
"MIT"
] | null | null | null | dai14shou/code14-5.py | naoshige314/workshop01 | 5c7be08f99eb164b7901628de26cecfd04fa926f | [
"MIT"
] | 2 | 2021-06-10T11:53:02.000Z | 2021-06-20T15:43:39.000Z | #フロイドワーシャル法
INF=1<<60
N,M=6,9
dp=[[INF]*N for _ in range(N)]#N×Nの2次元リスト
#初期化
#dp[a][b]=w
dp[0][1]=3
dp[0][2]=5
dp[1][2]=4
dp[1][3]=12
dp[2][3]=9
dp[2][4]=4
dp[4][3]=7
dp[3][5]=2
dp[4][5]=8
for v in range(N):
dp[v][v]=0
#更新
for k in range(N):
for i in range(N):
for j in range(N):
dp[i][j]... | 16.860465 | 57 | 0.497931 | 150 | 725 | 2.366667 | 0.28 | 0.157746 | 0.180282 | 0.092958 | 0.225352 | 0.135211 | 0.135211 | 0.135211 | 0.135211 | 0.135211 | 0 | 0.070611 | 0.277241 | 725 | 43 | 58 | 16.860465 | 0.604962 | 0.05931 | 0 | 0.25 | 0 | 0 | 0.031019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
679a05ec21ee81698b28e337b4f40dca17ac4f84 | 1,389 | py | Python | snake.py | mrmphys/snake_game | add0887adbc3ccf2edb5d19c6828c32ad0328d74 | [
"MIT"
] | null | null | null | snake.py | mrmphys/snake_game | add0887adbc3ccf2edb5d19c6828c32ad0328d74 | [
"MIT"
] | null | null | null | snake.py | mrmphys/snake_game | add0887adbc3ccf2edb5d19c6828c32ad0328d74 | [
"MIT"
] | null | null | null | from turtle import Turtle
STARTING_POSITIONS = [(0, 0), (-20, 0), (-40, 0)]
MOVE_DISTANCE = 20
UP = 90
DOWN = 270
RIGHT = 0
LEFT = 180
class Snake:
def __init__(self):
self.segment_list = []
self.create_snake()
self.head = self.segment_list[0]
self.segment_list_length = len(self.s... | 25.722222 | 61 | 0.597552 | 182 | 1,389 | 4.401099 | 0.269231 | 0.099875 | 0.168539 | 0.069913 | 0.15231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025819 | 0.275018 | 1,389 | 53 | 62 | 26.207547 | 0.769613 | 0 | 0 | 0 | 0 | 0 | 0.007919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
679afe5355334e31b1a631a88daccdb4baac1248 | 1,439 | py | Python | tests/conftest.py | DawnOfHell/FastApi-RESTful | c2f7d4f3a40c173cd103c73a7f38bd2a14a76e6e | [
"MIT"
] | 48 | 2020-08-30T00:21:26.000Z | 2022-03-25T12:11:59.000Z | tests/conftest.py | DawnOfHell/FastApi-RESTful | c2f7d4f3a40c173cd103c73a7f38bd2a14a76e6e | [
"MIT"
] | 74 | 2020-11-18T04:48:37.000Z | 2022-03-28T21:06:43.000Z | tests/conftest.py | DawnOfHell/FastApi-RESTful | c2f7d4f3a40c173cd103c73a7f38bd2a14a76e6e | [
"MIT"
] | 12 | 2020-11-18T04:46:23.000Z | 2022-03-09T18:41:16.000Z | from pathlib import Path
from typing import Iterator
from uuid import UUID
import pytest
import sqlalchemy as sa
from fastapi import Depends, FastAPI
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
from fastapi_restful.guid_type import GUID, GUID_DEFAULT_SQLITE
fr... | 25.696429 | 75 | 0.706741 | 195 | 1,439 | 4.974359 | 0.338462 | 0.043299 | 0.061856 | 0.028866 | 0.070103 | 0.070103 | 0.070103 | 0.070103 | 0.070103 | 0 | 0 | 0 | 0.192495 | 1,439 | 55 | 76 | 26.163636 | 0.834768 | 0 | 0 | 0.105263 | 0 | 0 | 0.055636 | 0.034682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
679eb7fe5db3dd4fa6ec5d49e965a0b18c8c305d | 285 | py | Python | palettecleanser/cli/main.py | mmuldo/palette-cleanser | 0da9744b72e338efdda24065a31e9336b45f51a3 | [
"MIT"
] | 1 | 2021-09-28T08:45:16.000Z | 2021-09-28T08:45:16.000Z | palettecleanser/cli/main.py | mmuldo/palette-cleanser | 0da9744b72e338efdda24065a31e9336b45f51a3 | [
"MIT"
] | null | null | null | palettecleanser/cli/main.py | mmuldo/palette-cleanser | 0da9744b72e338efdda24065a31e9336b45f51a3 | [
"MIT"
] | null | null | null | import typer
from . import palette
from . import theme
from . import template
app = typer.Typer(help='abstracts color scheming from desktop configuration')
app.add_typer(palette.app, name='palette')
app.add_typer(theme.app, name='theme')
app.add_typer(template.app, name='template')
| 25.909091 | 77 | 0.775439 | 42 | 285 | 5.190476 | 0.357143 | 0.137615 | 0.151376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 285 | 10 | 78 | 28.5 | 0.854902 | 0 | 0 | 0 | 0 | 0 | 0.249123 | 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 |
679f34c6adc4524078b2180aecffd16972d3c965 | 1,507 | py | Python | exportplan/migrations/0028_auto_20210204_1009.py | uktrade/directory-api | 45a9024a7ecc2842895201cbb51420ba9e57a168 | [
"MIT"
] | 2 | 2017-06-02T09:09:08.000Z | 2021-01-18T10:26:53.000Z | exportplan/migrations/0028_auto_20210204_1009.py | uktrade/directory-api | 45a9024a7ecc2842895201cbb51420ba9e57a168 | [
"MIT"
] | 629 | 2016-10-10T09:35:52.000Z | 2022-03-25T15:04:04.000Z | exportplan/migrations/0028_auto_20210204_1009.py | uktrade/directory-api | 45a9024a7ecc2842895201cbb51420ba9e57a168 | [
"MIT"
] | 5 | 2017-06-22T10:02:22.000Z | 2022-03-14T17:55:21.000Z | # Generated by Django 2.2.13 on 2021-02-04 10:09
import directory_validators.string
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('exportpla... | 41.861111 | 168 | 0.664897 | 154 | 1,507 | 6.344156 | 0.487013 | 0.045036 | 0.055271 | 0.073695 | 0.11259 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016906 | 0.214997 | 1,507 | 35 | 169 | 43.057143 | 0.80896 | 0.030524 | 0 | 0.068966 | 1 | 0 | 0.156957 | 0.05963 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
679fc6f45137cbad6c5f217b9327d392c694b4e7 | 3,459 | py | Python | metapub/findit/journals/wolterskluwer.py | cariaso/metapub | bfa361dd6e5de8ee0859e596d490fb478f7dcfba | [
"Apache-2.0"
] | 28 | 2019-09-09T08:12:31.000Z | 2021-12-17T00:09:14.000Z | metapub/findit/journals/wolterskluwer.py | cariaso/metapub | bfa361dd6e5de8ee0859e596d490fb478f7dcfba | [
"Apache-2.0"
] | 33 | 2019-11-07T05:36:04.000Z | 2022-01-29T01:14:57.000Z | metapub/findit/journals/wolterskluwer.py | cariaso/metapub | bfa361dd6e5de8ee0859e596d490fb478f7dcfba | [
"Apache-2.0"
] | 10 | 2019-09-09T10:04:05.000Z | 2021-06-08T16:00:14.000Z | from __future__ import absolute_import, unicode_literals
# Wolters Kluwer
#
# Some of this stuff is Free and/or Open Access.
#
# http://journals.lww.com/pain/Fulltext/2015/07000/Social_communication_model_of_pain.7.aspx
wolterskluwer_journals = [
'Acad Med',
'Adv Anat Pathol',
'AIDS',
'Alzheimer Dis ... | 24.707143 | 92 | 0.611159 | 426 | 3,459 | 4.93662 | 0.523474 | 0.053257 | 0.010461 | 0.017118 | 0.021874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003957 | 0.269442 | 3,459 | 139 | 93 | 24.884892 | 0.828255 | 0.044232 | 0 | 0 | 0 | 0 | 0.661716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007634 | 0 | 0.007634 | 0 | 0 | 0 | 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 |
67a230123eed03be3b28714cfcc88482054196f4 | 463 | py | Python | python/rnm.py | skylarkgit/just-examples | d9f1e5ac96798ba89b960e1a98d028f577925ad6 | [
"MIT"
] | null | null | null | python/rnm.py | skylarkgit/just-examples | d9f1e5ac96798ba89b960e1a98d028f577925ad6 | [
"MIT"
] | null | null | null | python/rnm.py | skylarkgit/just-examples | d9f1e5ac96798ba89b960e1a98d028f577925ad6 | [
"MIT"
] | null | null | null | #
# Reads file from current directory
# Filters the images
# Renames the files
#
from os import listdir
from os.path import isfile, join
import magic
import os
onlyfiles = [f for f in listdir('.') if isfile(join('.', f)) and magic.from_file(f, mime=True).startswith('image')]
print(onlyfiles)
i = 0
for f in onlyfile... | 24.368421 | 115 | 0.62635 | 72 | 463 | 4.013889 | 0.486111 | 0.041522 | 0.041522 | 0.096886 | 0.145329 | 0.145329 | 0.145329 | 0 | 0 | 0 | 0 | 0.010554 | 0.181425 | 463 | 18 | 116 | 25.722222 | 0.751979 | 0.155508 | 0 | 0 | 0 | 0 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67a5004e1eec5b3826abeac5899931e9ddb3b31f | 1,364 | py | Python | test_sentry/test_sentry.py | yuxifu/sentry | c4fa7c07c757d21e8724934fd096ff3145b4c225 | [
"MIT"
] | null | null | null | test_sentry/test_sentry.py | yuxifu/sentry | c4fa7c07c757d21e8724934fd096ff3145b4c225 | [
"MIT"
] | null | null | null | test_sentry/test_sentry.py | yuxifu/sentry | c4fa7c07c757d21e8724934fd096ff3145b4c225 | [
"MIT"
] | null | null | null | '''
This is NOT an unit test. Has to perform manually
'''
import threading
import datetime
import time
from raven import Client
# create Sentry client
CLIENT = Client(
'http://95298c03b81841698587dfbaa1b3cba4:c4f5e7b76c264bbd858a721cfecc68fd@sentry-dev-2.mia.ucloud.int:9000/2'
)
def do_every(interval_sec, itera... | 30.311111 | 113 | 0.725073 | 182 | 1,364 | 5.291209 | 0.450549 | 0.074766 | 0.083074 | 0.056075 | 0.200415 | 0.15784 | 0.076843 | 0 | 0 | 0 | 0 | 0.046679 | 0.183284 | 1,364 | 44 | 114 | 31 | 0.817774 | 0.194282 | 0 | 0 | 0 | 0.035714 | 0.16035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67a5cc50abdd53afd6d7a4c483f179b12de87102 | 466 | py | Python | joblist/api/urls.py | UMERSHUJA/MyEraApi | 9d3eda399dcab94cb14005ec7439e473bbaa416a | [
"MIT"
] | null | null | null | joblist/api/urls.py | UMERSHUJA/MyEraApi | 9d3eda399dcab94cb14005ec7439e473bbaa416a | [
"MIT"
] | null | null | null | joblist/api/urls.py | UMERSHUJA/MyEraApi | 9d3eda399dcab94cb14005ec7439e473bbaa416a | [
"MIT"
] | null | null | null | from django.urls import path
from joblist.api.views import(
api_detail_job_view,
api_update_job_view,
api_delete_job_view,
api_create_job_view,
)
app_name='joblist'
urlpatterns = [
path('<slug>/', api_detail_job_view, name='job_detail'),
path('<slug>/update', api_update_job_view, name='j... | 25.888889 | 66 | 0.706009 | 68 | 466 | 4.411765 | 0.264706 | 0.186667 | 0.146667 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156652 | 466 | 18 | 67 | 25.888889 | 0.763359 | 0 | 0 | 0 | 0 | 0 | 0.184154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67a81f89151b554d49dbc6193732a61236c26358 | 476 | py | Python | manage.py | chadwalt/aquaculture | 2914dd44ae78614069b76a95b6737e1fbfc5c547 | [
"MIT"
] | null | null | null | manage.py | chadwalt/aquaculture | 2914dd44ae78614069b76a95b6737e1fbfc5c547 | [
"MIT"
] | null | null | null | manage.py | chadwalt/aquaculture | 2914dd44ae78614069b76a95b6737e1fbfc5c547 | [
"MIT"
] | null | null | null | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from __init__ import db, app
from models import Fish, Supplier, Feed
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def create_db():
"""Creates database wit... | 18.307692 | 49 | 0.726891 | 63 | 476 | 5.190476 | 0.47619 | 0.055046 | 0.103976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 476 | 26 | 50 | 18.307692 | 0.819549 | 0.094538 | 0 | 0.125 | 0 | 0 | 0.023753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67aa48d6b9680f051a756f4f8a683dd853f8f01a | 19,369 | py | Python | scripts/gmin1.py | NREL/streamm-tools | 663ceff5e9a1145b74ee8c1857988dc94d6535a2 | [
"Apache-2.0"
] | 4 | 2017-01-04T02:20:52.000Z | 2022-01-23T21:14:32.000Z | scripts/gmin1.py | NREL/streamm-tools | 663ceff5e9a1145b74ee8c1857988dc94d6535a2 | [
"Apache-2.0"
] | null | null | null | scripts/gmin1.py | NREL/streamm-tools | 663ceff5e9a1145b74ee8c1857988dc94d6535a2 | [
"Apache-2.0"
] | 4 | 2017-04-25T06:23:08.000Z | 2021-04-14T07:10:24.000Z | #! /usr/bin/env python
"""
Analysis of time series properties
"""
__author__ = "Travis W. Kemper"
__version__ = "0.3"
__email__ = "travis.kemper.w@gmail.com"
__status__ = "Beta"
import os, os.path, sys , copy ,shutil, logging, math, json, csv
import numpy as np
from datetime import datetime
from optparse impor... | 34.100352 | 144 | 0.586762 | 2,653 | 19,369 | 4.055409 | 0.139842 | 0.03439 | 0.014964 | 0.026489 | 0.327447 | 0.233665 | 0.151129 | 0.118134 | 0.098522 | 0.073148 | 0 | 0.00579 | 0.26878 | 19,369 | 567 | 145 | 34.160494 | 0.753866 | 0.069389 | 0 | 0.217172 | 0 | 0 | 0.162466 | 0.002632 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012626 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67abd3857de887ab810816a7f3fb7942312a29de | 827 | py | Python | django/todoapi/migrations/0001_initial.py | mdallrabbi/drf-angular-docker-tutorial | dd46ee358d5fd1824ef39dfa5b83ef9ffb507102 | [
"MIT"
] | 51 | 2018-12-12T20:18:31.000Z | 2022-03-11T20:23:35.000Z | django/todoapi/migrations/0001_initial.py | mdallrabbi/drf-angular-docker-tutorial | dd46ee358d5fd1824ef39dfa5b83ef9ffb507102 | [
"MIT"
] | 11 | 2018-12-17T08:48:07.000Z | 2022-03-02T02:54:38.000Z | django/todoapi/migrations/0001_initial.py | mdallrabbi/drf-angular-docker-tutorial | dd46ee358d5fd1824ef39dfa5b83ef9ffb507102 | [
"MIT"
] | 29 | 2018-12-12T20:19:00.000Z | 2022-01-18T12:33:21.000Z | # Generated by Django 2.1.4 on 2018-12-06 09:12
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', mode... | 27.566667 | 114 | 0.544135 | 81 | 827 | 5.45679 | 0.617284 | 0.067873 | 0.081448 | 0.108597 | 0.294118 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0.033868 | 0.321645 | 827 | 29 | 115 | 28.517241 | 0.754011 | 0.054414 | 0 | 0 | 1 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67aea5af02694605339e1cb53ad25b02ef8ced55 | 1,689 | py | Python | woodstock/models/salutation.py | allink/woodstock | afafecb7c4454f96e51c051044ed8ed74853c048 | [
"BSD-3-Clause"
] | null | null | null | woodstock/models/salutation.py | allink/woodstock | afafecb7c4454f96e51c051044ed8ed74853c048 | [
"BSD-3-Clause"
] | null | null | null | woodstock/models/salutation.py | allink/woodstock | afafecb7c4454f96e51c051044ed8ed74853c048 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from django.db import models
from django.utils import translation
from django.utils.translation import ugettext_lazy as _
from woodstock import settings
#-----------------------------------------------------------------------------
# Salutation
#--------------------------------------... | 30.709091 | 105 | 0.597395 | 169 | 1,689 | 5.792899 | 0.449704 | 0.051073 | 0.055158 | 0.053115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005323 | 0.221433 | 1,689 | 54 | 106 | 31.277778 | 0.739164 | 0.14032 | 0 | 0.27027 | 0 | 0 | 0.04979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.054054 | 0.135135 | 0.027027 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67b345e74a315a544838a2981f655a3c98086f09 | 454 | py | Python | hello.py | joshthecoder/baconfile-python | f8c15f3e378269f56ab889eb1f448dda86f615a7 | [
"MIT"
] | 2 | 2016-03-01T22:18:49.000Z | 2016-07-17T17:58:11.000Z | hello.py | joshthecoder/baconfile-python | f8c15f3e378269f56ab889eb1f448dda86f615a7 | [
"MIT"
] | null | null | null | hello.py | joshthecoder/baconfile-python | f8c15f3e378269f56ab889eb1f448dda86f615a7 | [
"MIT"
] | null | null | null | import baconfile
# Let's fetch a folder
folder_items = baconfile.fetch_folder('someuser', 'somefolder')
# Iterate over the folder and print the name and size
for i in folder_items:
print 'name: %s size: %i' % (i.name, i.size)
# Let's download a file
fetched_file = baconfile.fetch_file('someuser', 'somefolder/some... | 28.375 | 74 | 0.748899 | 74 | 454 | 4.459459 | 0.459459 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140969 | 454 | 15 | 75 | 30.266667 | 0.846154 | 0.306167 | 0 | 0 | 0 | 0 | 0.254839 | 0.074194 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
67c69f947f425a33790ac299e8e6b54258e8e431 | 7,494 | py | Python | tests/test_configuration.py | mazhead/cachet-url-monitor | d0f7140cf26f6f8d101037044b70a1d3139f8ac7 | [
"MIT"
] | null | null | null | tests/test_configuration.py | mazhead/cachet-url-monitor | d0f7140cf26f6f8d101037044b70a1d3139f8ac7 | [
"MIT"
] | null | null | null | tests/test_configuration.py | mazhead/cachet-url-monitor | d0f7140cf26f6f8d101037044b70a1d3139f8ac7 | [
"MIT"
] | 1 | 2019-10-20T13:03:44.000Z | 2019-10-20T13:03:44.000Z | #!/usr/bin/env python
import sys
import unittest
import mock
from requests import ConnectionError, HTTPError, Timeout
import cachet_url_monitor.status
sys.modules['requests'] = mock.Mock()
sys.modules['logging'] = mock.Mock()
from cachet_url_monitor.configuration import Configuration
import os
class ConfigurationT... | 42.579545 | 120 | 0.65479 | 811 | 7,494 | 5.924784 | 0.168927 | 0.077836 | 0.048699 | 0.041207 | 0.686368 | 0.681165 | 0.681165 | 0.674922 | 0.670135 | 0.670135 | 0 | 0.012324 | 0.24206 | 7,494 | 175 | 121 | 42.822857 | 0.833627 | 0.011743 | 0 | 0.62406 | 0 | 0 | 0.186521 | 0 | 0 | 0 | 0 | 0 | 0.233083 | 1 | 0.172932 | false | 0 | 0.052632 | 0.022556 | 0.308271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67cc8c96491854baec07c9a354dc476173f12d2f | 9,354 | py | Python | sdk/lusid/models/side_configuration_data_request.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | sdk/lusid/models/side_configuration_data_request.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | sdk/lusid/models/side_configuration_data_request.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.11.3725
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getf... | 30.469055 | 145 | 0.593222 | 1,016 | 9,354 | 5.372047 | 0.140748 | 0.065958 | 0.149505 | 0.125321 | 0.462074 | 0.414987 | 0.389337 | 0.208868 | 0.195676 | 0.081348 | 0 | 0.023245 | 0.314732 | 9,354 | 306 | 146 | 30.568627 | 0.828237 | 0.349904 | 0 | 0.094891 | 1 | 0 | 0.09725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138686 | false | 0 | 0.051095 | 0 | 0.335766 | 0.014599 | 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 |
67ce11a53e696c7a9d7fe9fd107d29f05449b6bd | 1,116 | py | Python | SimpleFactory.py | xuwei0455/design_patterns | 685aaf8308fe477b3a18b831f01877c6107843a0 | [
"MIT"
] | null | null | null | SimpleFactory.py | xuwei0455/design_patterns | 685aaf8308fe477b3a18b831f01877c6107843a0 | [
"MIT"
] | null | null | null | SimpleFactory.py | xuwei0455/design_patterns | 685aaf8308fe477b3a18b831f01877c6107843a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Simple Factory pattern
The most major problem of Simple Factory pattern is,
work mission is too heavy for Factory, every new Product
added need to modify your code.
"""
class AbstractDecoder(object):
"""
Abstract Product
"""
pass
class UTF8Decoder(AbstractDecoder):
... | 19.241379 | 66 | 0.644265 | 123 | 1,116 | 5.715447 | 0.439024 | 0.034139 | 0.056899 | 0.119488 | 0.230441 | 0.230441 | 0.230441 | 0.230441 | 0.230441 | 0.230441 | 0 | 0.011547 | 0.224014 | 1,116 | 58 | 66 | 19.241379 | 0.800231 | 0.018817 | 0 | 0.190476 | 0 | 0 | 0.066751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.047619 | 0 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67d07532930bff050b33f025c217b107b9d79344 | 1,300 | py | Python | core/basic.py | myron0330/caching-research | adb61e6d7246af13d4428254d456618cd6ccf0dc | [
"MIT"
] | null | null | null | core/basic.py | myron0330/caching-research | adb61e6d7246af13d4428254d456618cd6ccf0dc | [
"MIT"
] | null | null | null | core/basic.py | myron0330/caching-research | adb61e6d7246af13d4428254d456618cd6ccf0dc | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
# **********************************************************************************#
# File: Basic class file
# **********************************************************************************#
from utils.dict_utils import DefaultDict
class BaseStation(object):
"""
object of bas... | 27.083333 | 85 | 0.491538 | 123 | 1,300 | 5.073171 | 0.406504 | 0.141026 | 0.072115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005423 | 0.290769 | 1,300 | 47 | 86 | 27.659574 | 0.671367 | 0.378462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 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 |
67d0fb95aa01952c2c846b1ceac24dddd12754f5 | 373 | py | Python | saleor/checkout/migrations/0021_auto_20190719_2123.py | saurabh1e/saleor | adf8f17cb7629f177af9f941dd3090376d986f13 | [
"BSD-3-Clause"
] | 1 | 2022-02-28T02:24:34.000Z | 2022-02-28T02:24:34.000Z | saleor/checkout/migrations/0021_auto_20190719_2123.py | saurabh1e/saleor | adf8f17cb7629f177af9f941dd3090376d986f13 | [
"BSD-3-Clause"
] | null | null | null | saleor/checkout/migrations/0021_auto_20190719_2123.py | saurabh1e/saleor | adf8f17cb7629f177af9f941dd3090376d986f13 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-19 15:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checkout', '0020_checkoutshipping'),
]
operations = [
migrations.RenameField(
model_name='checkoutshipping',
old_name='order... | 19.631579 | 47 | 0.595174 | 37 | 373 | 5.891892 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072243 | 0.294906 | 373 | 18 | 48 | 20.722222 | 0.756654 | 0.120643 | 0 | 0 | 1 | 0 | 0.177914 | 0.064417 | 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 |
67dee9c1cea25c2b861143cdd715ef706761e481 | 406 | py | Python | Hackathon/mapthing/migrations/0003_alter_event_start_date.py | Rain981012/Cmput401-Hackathon | 3be5ddc7a0f12002b5413b6e2a81485a21410be4 | [
"Apache-2.0"
] | null | null | null | Hackathon/mapthing/migrations/0003_alter_event_start_date.py | Rain981012/Cmput401-Hackathon | 3be5ddc7a0f12002b5413b6e2a81485a21410be4 | [
"Apache-2.0"
] | 1 | 2021-09-11T19:22:37.000Z | 2021-09-11T19:22:37.000Z | Hackathon/mapthing/migrations/0003_alter_event_start_date.py | Rain981012/Cmput401-Hackathon | 3be5ddc7a0f12002b5413b6e2a81485a21410be4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-11 18:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mapthing', '0002_auto_20210911_1251'),
]
operations = [
migrations.AlterField(
model_name='event',
name='start_date'... | 21.368421 | 66 | 0.610837 | 44 | 406 | 5.5 | 0.795455 | 0.07438 | 0.107438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105442 | 0.275862 | 406 | 18 | 67 | 22.555556 | 0.717687 | 0.110837 | 0 | 0 | 1 | 0 | 0.155989 | 0.064067 | 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 |
67ef31396c4c30c4bc56d3d38b3f5f4d18a7e33e | 253 | py | Python | lang/py/pylib/code/exceptions/exceptions_SystemExit.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/exceptions/exceptions_SystemExit.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/exceptions/exceptions_SystemExit.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
__version__ = "$Id$"
#end_pymotw_header
import sys
try:
sys.exit(1)
except SystemExit, err:
print 'Tried to exit with code', err.code
| 14.055556 | 55 | 0.671937 | 37 | 253 | 4.432432 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.185771 | 253 | 17 | 56 | 14.882353 | 0.76699 | 0.422925 | 0 | 0 | 0 | 0 | 0.203008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67fef0751cdb53ba1b455d51497bd0ae76a731aa | 582 | py | Python | images/get_images.py | ashishchopra778/Matching-Geotagged-Images | efa7f5d7e5856ef632c967e4091eb66613aabcd3 | [
"MIT"
] | null | null | null | images/get_images.py | ashishchopra778/Matching-Geotagged-Images | efa7f5d7e5856ef632c967e4091eb66613aabcd3 | [
"MIT"
] | 1 | 2016-08-21T15:57:20.000Z | 2016-08-24T14:17:58.000Z | images/get_images.py | ashishchopra778/Matching-Geotagged-Images | efa7f5d7e5856ef632c967e4091eb66613aabcd3 | [
"MIT"
] | null | null | null | import os
import urllib, urlparse
import simplejson as json
# query for images
url = 'http://www.panoramio.com/map/get_panoramas.php?order=popularity&\
set=public&from=0&to=20&minx=-77.037564&miny=38.896662&\
maxx=-17.035564&maxy=18.898662&size=medium'
c = urllib.urlopen(url)
# get the urls of individual images from JS... | 29.1 | 72 | 0.742268 | 94 | 582 | 4.56383 | 0.691489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0.106529 | 582 | 19 | 73 | 30.631579 | 0.757692 | 0.130584 | 0 | 0 | 0 | 0.066667 | 0.063745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
db010445986b549c0babbfc53080b9265c3a9bfa | 1,361 | py | Python | api/message_control/serializers.py | richeshgupta/SecureBit | 89a95e7e4df2276294f76803a7bc5b8d7f99d436 | [
"MIT"
] | 1 | 2021-07-03T04:51:55.000Z | 2021-07-03T04:51:55.000Z | api/message_control/serializers.py | richeshgupta/SecureBit | 89a95e7e4df2276294f76803a7bc5b8d7f99d436 | [
"MIT"
] | 6 | 2021-03-24T11:23:41.000Z | 2022-02-27T12:24:37.000Z | api/message_control/serializers.py | richeshgupta/SecureBit | 89a95e7e4df2276294f76803a7bc5b8d7f99d436 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import GenericFileUpload, Message, MessageAttachment
class GenericFileUploadSerializer(serializers.ModelSerializer):
class Meta:
model = GenericFileUpload
fields = "__all__"
class MessageAttachmentSerializer(serializers.ModelSerializer):
a... | 30.931818 | 69 | 0.727406 | 127 | 1,361 | 7.551181 | 0.330709 | 0.081335 | 0.043796 | 0.062565 | 0.264859 | 0.264859 | 0.18561 | 0.18561 | 0.18561 | 0.18561 | 0 | 0 | 0.201323 | 1,361 | 43 | 70 | 31.651163 | 0.882245 | 0.038942 | 0 | 0.344828 | 0 | 0 | 0.040613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db0562081887197d0d78e471f4f5d88b2f8a0fe5 | 2,306 | py | Python | dataset/imagenet_dataset.py | isabella232/ml-data-parameters | c2931c12d2c6100105c4dcc14df2797e39772098 | [
"AML"
] | 73 | 2019-11-18T15:56:04.000Z | 2022-01-13T02:36:01.000Z | dataset/imagenet_dataset.py | isabella232/ml-data-parameters | c2931c12d2c6100105c4dcc14df2797e39772098 | [
"AML"
] | null | null | null | dataset/imagenet_dataset.py | isabella232/ml-data-parameters | c2931c12d2c6100105c4dcc14df2797e39772098 | [
"AML"
] | 22 | 2019-11-04T20:23:23.000Z | 2022-03-26T11:50:46.000Z | #
# For licensing see accompanying LICENSE file.
# Copyright (C) 2019 Apple Inc. All Rights Reserved.
#
import torchvision.datasets as datasets
from PIL import Image
def pil_loader(path):
# open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835)
with open(path, 'rb') as... | 32.942857 | 107 | 0.611015 | 263 | 2,306 | 5.220532 | 0.425856 | 0.0437 | 0.028405 | 0.054625 | 0.07866 | 0.07866 | 0.07866 | 0.07866 | 0.07866 | 0 | 0 | 0.004414 | 0.312229 | 2,306 | 69 | 108 | 33.42029 | 0.861286 | 0.446227 | 0 | 0.064516 | 0 | 0 | 0.011159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.129032 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db0b633621d4595538652e86285e625d3ac0b41e | 4,291 | py | Python | ansys/mapdl/core/_commands/post26_/listing.py | JourneyG/pymapdl | 23fdc008c151c0546504e4ef8257a64f5f169100 | [
"MIT"
] | 1 | 2021-07-28T00:42:53.000Z | 2021-07-28T00:42:53.000Z | ansys/mapdl/core/_commands/post26_/listing.py | JourneyG/pymapdl | 23fdc008c151c0546504e4ef8257a64f5f169100 | [
"MIT"
] | null | null | null | ansys/mapdl/core/_commands/post26_/listing.py | JourneyG/pymapdl | 23fdc008c151c0546504e4ef8257a64f5f169100 | [
"MIT"
] | null | null | null | class Listing:
def extrem(self, nvar1="", nvar2="", ninc="", **kwargs):
"""Lists the extreme values for variables.
APDL Command: EXTREM
Parameters
----------
nvar1, nvar2, ninc
List extremes for variables NVAR1 through NVAR2 in steps of NINC.
Variab... | 32.263158 | 91 | 0.575157 | 506 | 4,291 | 4.87747 | 0.318182 | 0.024311 | 0.031605 | 0.048622 | 0.22812 | 0.212723 | 0.102107 | 0 | 0 | 0 | 0 | 0.011084 | 0.327196 | 4,291 | 132 | 92 | 32.507576 | 0.843782 | 0.629457 | 0 | 0.3 | 0 | 0 | 0.143165 | 0.088267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.65 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db0dd2a02f482c8fac56f7f08c09dea1b1048a47 | 978 | py | Python | 0000.py | ZTH-NEU/imagenet | eb3e121a930a71343f81017aa515a47d7f669ab1 | [
"BSD-3-Clause"
] | null | null | null | 0000.py | ZTH-NEU/imagenet | eb3e121a930a71343f81017aa515a47d7f669ab1 | [
"BSD-3-Clause"
] | null | null | null | 0000.py | ZTH-NEU/imagenet | eb3e121a930a71343f81017aa515a47d7f669ab1 | [
"BSD-3-Clause"
] | null | null | null | import os
import shutil
a = os.walk('E:\\data\\test_1')
file_name_1 = 'E:\\data\\input\\val\\benign'
file_name_2 = 'E:\\data\\input\\val\\malignant'
print(a)
list_file1 = []
list_file2 = []
count_a = 0
count_b = 0
count_c = 0
for maindir, subdir, file_name_list in a:
print(len(file_name_list))
for f in file_na... | 24.45 | 64 | 0.55726 | 156 | 978 | 3.262821 | 0.314103 | 0.235756 | 0.094303 | 0.125737 | 0.316306 | 0.282908 | 0.117878 | 0.117878 | 0.117878 | 0 | 0 | 0.040055 | 0.259714 | 978 | 39 | 65 | 25.076923 | 0.662983 | 0.188139 | 0 | 0 | 0 | 0 | 0.100894 | 0.075351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.192308 | 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 |
db11681ee5f4a22e3691893d2f6ce87323825c25 | 2,461 | py | Python | linux/lib/python2.7/dist-packages/blueman/ods/OdsServerSession.py | nmercier/linux-cross-gcc | a5b0028fd2b72ec036a4725e93ba29d73cb753a6 | [
"BSD-3-Clause"
] | 3 | 2015-10-31T10:39:25.000Z | 2019-04-27T20:19:33.000Z | linux/lib/python2.7/dist-packages/blueman/ods/OdsServerSession.py | nmercier/linux-cross-gcc | a5b0028fd2b72ec036a4725e93ba29d73cb753a6 | [
"BSD-3-Clause"
] | null | null | null | linux/lib/python2.7/dist-packages/blueman/ods/OdsServerSession.py | nmercier/linux-cross-gcc | a5b0028fd2b72ec036a4725e93ba29d73cb753a6 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2008 Valmantas Paliksa <walmis at balticum-tv dot lt>
# Copyright (C) 2008 Tadas Dailyda <tadas at dailyda dot com>
#
# Licensed under the GNU General Public License Version 3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | 37.287879 | 132 | 0.74807 | 332 | 2,461 | 5.400602 | 0.391566 | 0.060234 | 0.066927 | 0.083659 | 0.220859 | 0.143335 | 0.101506 | 0.101506 | 0.074735 | 0.074735 | 0 | 0.004704 | 0.136124 | 2,461 | 65 | 133 | 37.861538 | 0.838664 | 0.347013 | 0 | 0 | 0 | 0 | 0.186751 | 0.016404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.060606 | 0 | 0.363636 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db148f7e7afd4aedf0381cb254eca4533c9e8a22 | 1,356 | py | Python | gammapy/scripts/background_cube.py | joleroi/gammapy | c4e0c4bd74c79d30e0837559d18b7a1a269f70d9 | [
"BSD-3-Clause"
] | null | null | null | gammapy/scripts/background_cube.py | joleroi/gammapy | c4e0c4bd74c79d30e0837559d18b7a1a269f70d9 | [
"BSD-3-Clause"
] | null | null | null | gammapy/scripts/background_cube.py | joleroi/gammapy | c4e0c4bd74c79d30e0837559d18b7a1a269f70d9 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from ..utils.scripts import get_parser
__all__ = ['background_cube']
def main(args=None):
parser = get_parser(background_cube)
parser.ad... | 34.769231 | 82 | 0.617994 | 153 | 1,356 | 5.267974 | 0.464052 | 0.055831 | 0.105459 | 0.084367 | 0.193548 | 0.143921 | 0 | 0 | 0 | 0 | 0 | 0.001035 | 0.287611 | 1,356 | 38 | 83 | 35.684211 | 0.833333 | 0.106195 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.192308 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
db161ce1d701b923ab0c3501257b6786a8b73835 | 2,020 | py | Python | accounts/views.py | mirokrastev/cloud | b53d3c5f1698efaa8b98ed384338c2066a744fad | [
"MIT"
] | 1 | 2021-12-17T22:42:25.000Z | 2021-12-17T22:42:25.000Z | accounts/views.py | mirokrastev/cloud | b53d3c5f1698efaa8b98ed384338c2066a744fad | [
"MIT"
] | null | null | null | accounts/views.py | mirokrastev/cloud | b53d3c5f1698efaa8b98ed384338c2066a744fad | [
"MIT"
] | null | null | null | from math import inf
from rest_framework.authtoken.models import Token
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.viewsets import GenericViewSet, ViewSet
from rest_framework.viewsets import mixins
from rest_fram... | 32.063492 | 97 | 0.724752 | 237 | 2,020 | 6.016878 | 0.333333 | 0.044881 | 0.095372 | 0.058906 | 0.092567 | 0.049088 | 0 | 0 | 0 | 0 | 0 | 0.004857 | 0.184653 | 2,020 | 62 | 98 | 32.580645 | 0.860959 | 0 | 0 | 0.044444 | 0 | 0 | 0.026733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.022222 | 0.244444 | 0.022222 | 0.644444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db26728c0fff75ff1ff5687bca3720296b11cb45 | 10,343 | py | Python | huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py | wuchen-huawei/huaweicloud-sdk-python-v3 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | [
"Apache-2.0"
] | 1 | 2021-11-03T07:54:50.000Z | 2021-11-03T07:54:50.000Z | huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py | wuchen-huawei/huaweicloud-sdk-python-v3 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py | wuchen-huawei/huaweicloud-sdk-python-v3 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | [
"Apache-2.0"
] | 1 | 2022-01-17T02:24:18.000Z | 2022-01-17T02:24:18.000Z | # coding: utf-8
import pprint
import re
import six
class OptionalDiscountRatingResult:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and... | 31.629969 | 209 | 0.64285 | 1,099 | 10,343 | 5.801638 | 0.117379 | 0.033877 | 0.19197 | 0.107277 | 0.608218 | 0.505646 | 0.453419 | 0.315558 | 0.257215 | 0.257215 | 0 | 0.003727 | 0.273712 | 10,343 | 326 | 210 | 31.726994 | 0.845048 | 0.396113 | 0 | 0.090909 | 0 | 0 | 0.082727 | 0.030182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167832 | false | 0 | 0.020979 | 0 | 0.321678 | 0.013986 | 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 |
db35ea8859355006b448611a41e00b0ae30504bb | 4,457 | py | Python | sqlite-u3s2m1/rpg_queries.py | skhabiri/SQL-Databases-u3s2 | 814a6a25a7f1b8e755e3871beac4a1b929f4b653 | [
"MIT"
] | null | null | null | sqlite-u3s2m1/rpg_queries.py | skhabiri/SQL-Databases-u3s2 | 814a6a25a7f1b8e755e3871beac4a1b929f4b653 | [
"MIT"
] | null | null | null | sqlite-u3s2m1/rpg_queries.py | skhabiri/SQL-Databases-u3s2 | 814a6a25a7f1b8e755e3871beac4a1b929f4b653 | [
"MIT"
] | null | null | null | import sqlite3
conn = sqlite3.connect("rpg_db.sqlite3")
curs = conn.cursor()
def execute_query(cursor, query):
cursor.execute(query)
return cursor.fetchall()
if __name__ == '__main__':
Total_char = """
SELECT COUNT(character_id)
FROM charactercreator_character
"""
result = execute_quer... | 30.527397 | 80 | 0.666368 | 599 | 4,457 | 4.741235 | 0.178631 | 0.048592 | 0.078873 | 0.088732 | 0.620775 | 0.586268 | 0.512676 | 0.418662 | 0.298239 | 0.246127 | 0 | 0.006257 | 0.247027 | 4,457 | 146 | 81 | 30.527397 | 0.839988 | 0.142248 | 0 | 0.396396 | 0 | 0 | 0.618898 | 0.082415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0 | 0.009009 | 0 | 0.027027 | 0.216216 | 0 | 0 | 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 |
db37102838e956db0801c98eed5af8dd3c913bdb | 12,339 | py | Python | tests/integration_tests/python/test_reports.py | scitran/nimsapi | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 13 | 2016-05-31T14:32:58.000Z | 2021-09-17T07:18:11.000Z | tests/integration_tests/python/test_reports.py | scitran/core | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 911 | 2016-02-16T18:40:27.000Z | 2018-08-07T17:50:29.000Z | tests/integration_tests/python/test_reports.py | scitran/nimsapi | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 16 | 2016-02-17T15:54:34.000Z | 2021-04-07T05:30:34.000Z | import calendar
import copy
import datetime
from api.web.request import AccessTypeList
# create timestamps for report filtering
today = datetime.datetime.today()
ts_format = '{:%Y-%m-%dT%H:%M:%S+00:00}'
yesterday_ts = ts_format.format(today - datetime.timedelta(days=1))
tomorrow_ts = ts_format.format(today + datetime.... | 36.943114 | 121 | 0.641948 | 1,724 | 12,339 | 4.434455 | 0.12065 | 0.045782 | 0.036625 | 0.041727 | 0.644081 | 0.575409 | 0.500196 | 0.456246 | 0.382341 | 0.342315 | 0 | 0.022267 | 0.202934 | 12,339 | 333 | 122 | 37.054054 | 0.755058 | 0.131777 | 0 | 0.502075 | 0 | 0 | 0.205866 | 0.015648 | 0 | 0 | 0 | 0.003003 | 0.360996 | 0 | null | null | 0 | 0.016598 | null | null | 0.004149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db387d2aa1070b2699f5c4b3784670408506dbd4 | 11,687 | py | Python | sktime/transformations/series/compose.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 5,349 | 2019-03-21T14:56:50.000Z | 2022-03-31T11:25:30.000Z | sktime/transformations/series/compose.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 1,803 | 2019-03-26T13:33:53.000Z | 2022-03-31T23:58:10.000Z | sktime/transformations/series/compose.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 911 | 2019-03-25T01:21:30.000Z | 2022-03-31T04:45:51.000Z | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Meta-transformers for building composite transformers."""
import pandas as pd
from sktime.transformations.base import _SeriesToSeriesTransformer
from sktime.utils.validation.series import check_... | 32.463889 | 86 | 0.626337 | 1,311 | 11,687 | 5.449275 | 0.189169 | 0.027716 | 0.017637 | 0.009798 | 0.457307 | 0.430571 | 0.381859 | 0.354283 | 0.354283 | 0.332027 | 0 | 0.001542 | 0.278429 | 11,687 | 359 | 87 | 32.554318 | 0.845607 | 0.517584 | 0 | 0.527273 | 0 | 0 | 0.0481 | 0.004509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.072727 | 0.045455 | 0 | 0.263636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db38d3b17a9e7b05182521db4c218e18a522985d | 11,912 | py | Python | v2020.0/Actuator.py | beepbeeptechnologies/CafeBeepV2020.0 | 61b3b5299c06ff9a94692b424c032a47675d9e4d | [
"CC-BY-3.0",
"MIT"
] | 1 | 2020-07-03T13:40:37.000Z | 2020-07-03T13:40:37.000Z | v2020.0/Actuator.py | beepbeeptechnologies/CafeBeepV2020.0 | 61b3b5299c06ff9a94692b424c032a47675d9e4d | [
"CC-BY-3.0",
"MIT"
] | null | null | null | v2020.0/Actuator.py | beepbeeptechnologies/CafeBeepV2020.0 | 61b3b5299c06ff9a94692b424c032a47675d9e4d | [
"CC-BY-3.0",
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Blaze Sanders"
__email__ = "blaze.d.a.sanders@gmail.mvp"
__company__ = "Robotic Beverage Technologies Inc"
__status__ = "Development"
__date__ = "Late Updated: 2020-05-11"
__doc__ = "Class to operate at least 64 servos, 16 relays, and 32 motors at once with latency less t... | 44.282528 | 184 | 0.686283 | 1,640 | 11,912 | 4.914024 | 0.306098 | 0.013649 | 0.005956 | 0.008934 | 0.236134 | 0.201514 | 0.158829 | 0.122844 | 0.122844 | 0.109939 | 0 | 0.028463 | 0.224312 | 11,912 | 268 | 185 | 44.447761 | 0.843723 | 0.50999 | 0 | 0.150794 | 0 | 0.047619 | 0.19215 | 0.009456 | 0 | 0 | 0 | 0.018657 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.373016 | 0.103175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e1d530369ca08b902495da51d6d96ad9486c7970 | 3,404 | py | Python | python/src/neural_networks/feed_forward.py | DomenicD/dom_ml_playground | 1c9e2096bc6882fdcc96a3c39db6210b53224639 | [
"MIT"
] | null | null | null | python/src/neural_networks/feed_forward.py | DomenicD/dom_ml_playground | 1c9e2096bc6882fdcc96a3c39db6210b53224639 | [
"MIT"
] | 7 | 2015-09-25T15:30:10.000Z | 2015-10-14T15:36:22.000Z | python/src/neural_networks/feed_forward.py | DomenicD/dom_ml_playground | 1c9e2096bc6882fdcc96a3c39db6210b53224639 | [
"MIT"
] | null | null | null | import sys
import numpy
from python.src.data_processing.normalizer import Normalizer
from python.src.neural_networks.neural_network import NeuralNetwork
from python.src.neurons.receive_all_neuron import ReceiveAllNeuron
from python.src.neurons.output_only_neuron import OutputOnlyNeuron
from python.src.neurons.activati... | 32.419048 | 86 | 0.638073 | 401 | 3,404 | 5.167082 | 0.289277 | 0.067568 | 0.040541 | 0.030888 | 0.070463 | 0.032819 | 0.032819 | 0 | 0 | 0 | 0 | 0.00537 | 0.288778 | 3,404 | 105 | 87 | 32.419048 | 0.850062 | 0.104877 | 0 | 0.032787 | 0 | 0 | 0.01158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114754 | 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 |
e1d8e81fc0bc1f002f8364be2166b3478ee4bd94 | 290 | py | Python | src/decaylanguage/utils/__init__.py | vvsagar/decaylanguage | 5f386b1d1c79a5b294d1710c1ec3ac6146704562 | [
"BSD-3-Clause"
] | 27 | 2018-08-10T22:15:26.000Z | 2021-12-12T12:09:03.000Z | src/decaylanguage/utils/__init__.py | vvsagar/decaylanguage | 5f386b1d1c79a5b294d1710c1ec3ac6146704562 | [
"BSD-3-Clause"
] | 117 | 2018-08-01T12:52:54.000Z | 2022-02-03T19:54:12.000Z | src/decaylanguage/utils/__init__.py | vvsagar/decaylanguage | 5f386b1d1c79a5b294d1710c1ec3ac6146704562 | [
"BSD-3-Clause"
] | 13 | 2018-07-30T07:46:53.000Z | 2022-02-02T16:20:36.000Z | from .errors import LineFailure
from .particleutils import charge_conjugate_name
from .utilities import filter_lines, iter_flatten, split
__all__ = (
"LineFailure",
"iter_flatten",
"split",
"filter_lines",
"charge_conjugate_name",
)
def __dir__():
return __all__
| 18.125 | 56 | 0.724138 | 32 | 290 | 5.9375 | 0.5625 | 0.157895 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186207 | 290 | 15 | 57 | 19.333333 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.210345 | 0.072414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 0.416667 | 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 |
e1e2585691650cad583c939c257e9a981668a866 | 2,574 | py | Python | asusrouter/dataclass.py | Vaskivskyi/asusrouter | de45d3e40fefc4851a15613b4789184a40ca0da4 | [
"Apache-2.0"
] | null | null | null | asusrouter/dataclass.py | Vaskivskyi/asusrouter | de45d3e40fefc4851a15613b4789184a40ca0da4 | [
"Apache-2.0"
] | null | null | null | asusrouter/dataclass.py | Vaskivskyi/asusrouter | de45d3e40fefc4851a15613b4789184a40ca0da4 | [
"Apache-2.0"
] | null | null | null | """Dataclass module for AsusRouter"""
from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
from asusrouter.util.converters import none_or_str
@dataclass
class ConnectedDevice:
"""Connected device class"""
name : str | None = None
mac : str | None = None
... | 18.652174 | 77 | 0.583139 | 318 | 2,574 | 4.613208 | 0.327044 | 0.109066 | 0.08998 | 0.019087 | 0.067485 | 0.067485 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0.307304 | 2,574 | 137 | 78 | 18.788321 | 0.822771 | 0.256022 | 0 | 0.145455 | 0 | 0 | 0.008537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.072727 | 0.018182 | 0.836364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e1e3afdb99cc8e1ea3c4a3f278019a4b1b9c80e1 | 1,462 | py | Python | country_names.py | ycaglar/Global-Covid-Tracker | b97c5915f7dca62283b75ea4566b15cb597211b6 | [
"Apache-2.0"
] | null | null | null | country_names.py | ycaglar/Global-Covid-Tracker | b97c5915f7dca62283b75ea4566b15cb597211b6 | [
"Apache-2.0"
] | null | null | null | country_names.py | ycaglar/Global-Covid-Tracker | b97c5915f7dca62283b75ea4566b15cb597211b6 | [
"Apache-2.0"
] | null | null | null | """
This is the 'country_names' module.
The country_names module consists of one dictionary which provides corrected or
shortened versions of country names.
"""
names = {'Bolivia (Plurinational State of)':'Bolivia',
'Democratic People\'s Republic of Korea':'North Korea',
'Dem. People\'s Republic of ... | 45.6875 | 85 | 0.638851 | 160 | 1,462 | 5.825 | 0.46875 | 0.085837 | 0.048283 | 0.045064 | 0.06867 | 0.06867 | 0.06867 | 0 | 0 | 0 | 0 | 0.000891 | 0.232558 | 1,462 | 31 | 86 | 47.16129 | 0.829768 | 0.104651 | 0 | 0 | 0 | 0 | 0.624135 | 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 |
e1eabf9203d7cd35f92f2bcd6693e40610eda395 | 7,515 | py | Python | pirates/piratesgui/OptionItemGui.py | ksmit799/POTCO-PS | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 8 | 2017-01-24T04:33:29.000Z | 2020-11-01T08:36:24.000Z | pirates/piratesgui/OptionItemGui.py | ksmit799/Pirates-Online-Remake | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 1 | 2017-03-02T18:05:17.000Z | 2017-03-14T06:47:10.000Z | pirates/piratesgui/OptionItemGui.py | ksmit799/Pirates-Online-Remake | 520d38935ae8df4b452c733a82c94dddac01e275 | [
"Apache-2.0"
] | 11 | 2017-03-02T18:46:07.000Z | 2020-11-01T08:36:26.000Z | # File: O (Python 2.4)
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from pirates.piratesgui import PiratesGuiGlobals
from pirates.piratesgui.ListFrame import ListFrame
from pirates.world import GameTypeGlobals
from pirates.piratesgui.ButtonListItem import ButtonListItem
from pirates.piratesgui.... | 45 | 1,041 | 0.664005 | 744 | 7,515 | 6.604839 | 0.252688 | 0.01221 | 0.008547 | 0.018519 | 0.140212 | 0.129223 | 0.073057 | 0.043956 | 0.043956 | 0 | 0 | 0.089857 | 0.22994 | 7,515 | 166 | 1,042 | 45.271084 | 0.759288 | 0.002661 | 0 | 0.083333 | 0 | 0 | 0.038446 | 0.018422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.075 | 0.008333 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1f143cc3f457fb9e99b042d341796c86fe5bb2e | 7,024 | py | Python | 01_downloadCatalogs.py | jmontgom10/APASS-transformations | 1d682f2f5a3206ed506a2d3019b504e89c50d1d6 | [
"MIT"
] | null | null | null | 01_downloadCatalogs.py | jmontgom10/APASS-transformations | 1d682f2f5a3206ed506a2d3019b504e89c50d1d6 | [
"MIT"
] | null | null | null | 01_downloadCatalogs.py | jmontgom10/APASS-transformations | 1d682f2f5a3206ed506a2d3019b504e89c50d1d6 | [
"MIT"
] | null | null | null | # This script will retrieve the Landolt (1992) stars and corresponding APASS
# data from Vizier (or some other online service).
import numpy as np
import warnings
from astroquery.vizier import Vizier
import astropy.units as u
from astropy.table import Table
# Define the name of the output Landolt/APASS catalog
outpu... | 35.12 | 82 | 0.509681 | 857 | 7,024 | 4.017503 | 0.252042 | 0.026721 | 0.038339 | 0.048795 | 0.097008 | 0.070578 | 0.031368 | 0.013941 | 0.013941 | 0.013941 | 0 | 0.024431 | 0.318195 | 7,024 | 199 | 83 | 35.296482 | 0.694508 | 0.219533 | 0 | 0.172932 | 0 | 0 | 0.159229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.37594 | 0.037594 | 0 | 0.037594 | 0.022556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e1f4d2f2a2a0ad8b41a565b7c670ea2b57c759c0 | 5,200 | py | Python | kolga/libs/services/mysql.py | Hi-Fi/kolga | 821169fc24eb7e3883e6b4993ac75117a0c59766 | [
"MIT"
] | 7 | 2020-04-24T13:47:21.000Z | 2022-03-09T05:17:59.000Z | kolga/libs/services/mysql.py | Hi-Fi/kolga | 821169fc24eb7e3883e6b4993ac75117a0c59766 | [
"MIT"
] | 16 | 2021-01-19T13:18:27.000Z | 2022-02-01T13:50:14.000Z | kolga/libs/services/mysql.py | Hi-Fi/kolga | 821169fc24eb7e3883e6b4993ac75117a0c59766 | [
"MIT"
] | 6 | 2020-08-17T08:56:56.000Z | 2021-05-29T07:34:47.000Z | import tempfile
from pathlib import Path
from typing import Any, Dict, Mapping, TypedDict
from uuid import uuid4
from kolga.libs.database import Database
from kolga.libs.service import Service
from kolga.settings import settings
from kolga.utils.general import (
DATABASE_DEFAULT_PORT_MAPPING,
MYSQL,
get_de... | 34.666667 | 88 | 0.631731 | 577 | 5,200 | 5.42461 | 0.233969 | 0.045687 | 0.035783 | 0.042492 | 0.171885 | 0.103514 | 0.103514 | 0.103514 | 0.103514 | 0.103514 | 0 | 0.002139 | 0.280769 | 5,200 | 149 | 89 | 34.899329 | 0.834759 | 0.076923 | 0 | 0.042373 | 0 | 0 | 0.062937 | 0.0089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.076271 | 0.084746 | 0 | 0.254237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e1f4f44fed35849cb467281972e5f6d5e847230f | 4,232 | py | Python | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Visualisation/PhysicsGraph/ParticleDragger.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2017-03-28T06:41:51.000Z | 2017-03-28T06:41:51.000Z | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Visualisation/PhysicsGraph/ParticleDragger.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | null | null | null | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Visualisation/PhysicsGraph/ParticleDragger.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2016-12-13T21:08:58.000Z | 2016-12-13T21:08:58.000Z | #!/usr/bin/env python
# Copyright (C) 2006 British Broadcasting Corporation and Kamaelia Contributors(1)
# All Rights Reserved.
#
# You may only modify and redistribute this under the terms of any of the
# following licenses(2): Mozilla Public License, V1.1, GNU General
# Public License, V2.0, GNU Lesser Ge... | 35.563025 | 102 | 0.612949 | 533 | 4,232 | 4.866792 | 0.41651 | 0.019275 | 0.013878 | 0.016962 | 0.102544 | 0.083269 | 0.063994 | 0.037008 | 0 | 0 | 0 | 0.006856 | 0.276229 | 4,232 | 118 | 103 | 35.864407 | 0.840026 | 0.266541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | 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 |
e1f639af65e4fdcc2584abc18804e7ae4e1cd940 | 352 | py | Python | qml/Lib/site-packages/interface_meta/__init__.py | SammyOngaya/qml | d4ede647a0ea79c9c4f07d4219e6576a55a3c343 | [
"Apache-2.0"
] | 1 | 2021-04-04T09:14:03.000Z | 2021-04-04T09:14:03.000Z | qml/Lib/site-packages/interface_meta/__init__.py | SammyOngaya/qml | d4ede647a0ea79c9c4f07d4219e6576a55a3c343 | [
"Apache-2.0"
] | null | null | null | qml/Lib/site-packages/interface_meta/__init__.py | SammyOngaya/qml | d4ede647a0ea79c9c4f07d4219e6576a55a3c343 | [
"Apache-2.0"
] | null | null | null | from ._version import __author__, __author_email__, __version__ # noqa: F401
from .interface import InterfaceMeta
from .decorators import inherit_docs, override, quirk_docs
__all__ = [
# Interface
"InterfaceMeta",
# Standalone decorators
"inherit_docs",
"override",
# Deprecated (will be rem... | 20.705882 | 77 | 0.713068 | 37 | 352 | 6.189189 | 0.594595 | 0.09607 | 0.165939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.204545 | 352 | 16 | 78 | 22 | 0.803571 | 0.21875 | 0 | 0 | 0 | 0 | 0.159259 | 0 | 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 |
e1ff0692f61c4fedf7905e30ebd776746c0d9652 | 801 | py | Python | geotrek/altimetry/tests/test_models.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 50 | 2016-10-19T23:01:21.000Z | 2022-03-28T08:28:34.000Z | geotrek/altimetry/tests/test_models.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 1,422 | 2016-10-27T10:39:40.000Z | 2022-03-31T13:37:10.000Z | geotrek/altimetry/tests/test_models.py | pierreloicq/Geotrek-admin | 00cd29f29843f2cc25e5a3c7372fcccf14956887 | [
"BSD-2-Clause"
] | 46 | 2016-10-27T10:59:10.000Z | 2022-03-22T15:55:56.000Z | import os
from django.test import TestCase
from django.conf import settings
from django.utils.translation import get_language
from geotrek.trekking.factories import TrekFactory
from geotrek.trekking.models import Trek
class AltimetryMixinTest(TestCase):
def test_get_elevation_chart_none(self):
trek = Tr... | 36.409091 | 104 | 0.725343 | 103 | 801 | 5.514563 | 0.514563 | 0.052817 | 0.066901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004498 | 0.167291 | 801 | 21 | 105 | 38.142857 | 0.847076 | 0.007491 | 0 | 0 | 0 | 0 | 0.059269 | 0.034048 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.0625 | false | 0 | 0.375 | 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 |
e1ff678e8867d4144c72218c9167656737540cff | 561 | py | Python | mappers/map1.py | obr214/BD_FinalProject | ee645df881580dc878b981d8b066e71b7cf5cd2d | [
"MTLL"
] | null | null | null | mappers/map1.py | obr214/BD_FinalProject | ee645df881580dc878b981d8b066e71b7cf5cd2d | [
"MTLL"
] | null | null | null | mappers/map1.py | obr214/BD_FinalProject | ee645df881580dc878b981d8b066e71b7cf5cd2d | [
"MTLL"
] | null | null | null | #!/usr/bin/python
import sys
# input comes from STDIN (stream data that goes to the program)
for line in sys.stdin:
l = line.strip().split(',')
if len(l)>30:
if l[16] == '2':
gender = 'f'
if l[16] == '1':
gender = 'm'
if l[16] == '0':
gende... | 16.5 | 63 | 0.385027 | 77 | 561 | 2.805195 | 0.558442 | 0.083333 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 0.440285 | 561 | 33 | 64 | 17 | 0.611465 | 0.139037 | 0 | 0 | 0 | 0 | 0.064449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c000c6a9b52ef643008194cd77fb200bb82cb63f | 692 | py | Python | src/stories/cvt.py | unb-cic-esw/instagram-data-monitor | cbf452a825d616a4ef8d9e8abfca5220fb14962f | [
"MIT"
] | 4 | 2018-03-30T14:46:32.000Z | 2018-06-18T20:45:16.000Z | data/stories/cvt.py | unb-cic-esw/instagram-data-monitor | cbf452a825d616a4ef8d9e8abfca5220fb14962f | [
"MIT"
] | 7 | 2018-05-21T18:50:31.000Z | 2018-06-21T06:14:04.000Z | src/stories/cvt.py | unb-cic-esw/instagram-data-monitor | cbf452a825d616a4ef8d9e8abfca5220fb14962f | [
"MIT"
] | 3 | 2018-03-31T15:11:03.000Z | 2018-05-17T12:15:44.000Z | import csv
import json
import glob
import re
import os
try:
os.makedirs('json')
except:
pass
to_cvt = []
for file in glob.glob("*.csv"):
to_cvt.append(file)
for f in to_cvt:
csvfile = open( f , 'r')
jsonfile = open('./json/' +f[:-4] +'.json', 'w', encoding='utf8')
fieldnames = ''
for i in open(f,'r'):
fi... | 19.222222 | 80 | 0.619942 | 108 | 692 | 3.935185 | 0.5 | 0.035294 | 0.028235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014733 | 0.215318 | 692 | 35 | 81 | 19.771429 | 0.767956 | 0.054913 | 0 | 0.125 | 0 | 0 | 0.084356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.15625 | 0 | 0.15625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c002217ba5ab4b489778fc13fa073e6fede1a545 | 861 | py | Python | YT_data_crawler.py | inishchith/Python | d694f292a9885ba9cdc045ca8803155177f13fb1 | [
"MIT"
] | 3 | 2018-06-07T02:18:55.000Z | 2020-01-02T13:42:35.000Z | YT_data_crawler.py | inishchith/Python-Scripts-Projects | d694f292a9885ba9cdc045ca8803155177f13fb1 | [
"MIT"
] | null | null | null | YT_data_crawler.py | inishchith/Python-Scripts-Projects | d694f292a9885ba9cdc045ca8803155177f13fb1 | [
"MIT"
] | 5 | 2018-09-14T18:46:12.000Z | 2021-02-17T08:02:30.000Z | import pafy
#This is the documentation for Pafy - a Python library to download YouTube content and retrieve metadata
#Pafy object , argument as url
object = pafy.new("https://www.youtube.com/watch?v=nRW90GASSXE&list=PL6gx4Cwl9DGA8Vys-f48mAH9OKSUyav0q")
#Print title
print("Title : " + object.title)
#print viewcount
p... | 24.6 | 104 | 0.730546 | 114 | 861 | 5.517544 | 0.508772 | 0.071542 | 0.047695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013369 | 0.131243 | 861 | 34 | 105 | 25.323529 | 0.82754 | 0.358885 | 0 | 0 | 0 | 0 | 0.346939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.818182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c006dbbe74c8a000d9054bcf341039b62212b186 | 2,007 | py | Python | paiza-larning/paiza_06-1.py | y-uchiida/python-training | 7e08fc7c049cb9330e17a024b9089865415a6acd | [
"MIT"
] | null | null | null | paiza-larning/paiza_06-1.py | y-uchiida/python-training | 7e08fc7c049cb9330e17a024b9089865415a6acd | [
"MIT"
] | null | null | null | paiza-larning/paiza_06-1.py | y-uchiida/python-training | 7e08fc7c049cb9330e17a024b9089865415a6acd | [
"MIT"
] | null | null | null | # for xxx in で2次元リストを作る
# 0 で初期化したリストを作成する
# for ... in の末尾に:を置かない場合、 forの前に書かれた処理を実行する
# range(i) は、0からi未満の整数を持つリストを返すので、forの前に書かれた処理をi回繰り返すことができる
# このような記法を、Pythonではリスト内方表記と呼ぶ
# 参考URL: https://note.nkmk.me/python-list-comprehension/
numbers = [0 for i in range(10)]
print(numbers)
print()
# 2n+1の等比数列をのリストを作成する
geome... | 27.121622 | 67 | 0.630294 | 335 | 2,007 | 3.785075 | 0.271642 | 0.069401 | 0.073344 | 0.069401 | 0.165615 | 0.128549 | 0.087539 | 0.087539 | 0.087539 | 0.087539 | 0 | 0.08799 | 0.161933 | 2,007 | 74 | 68 | 27.121622 | 0.660523 | 0.402591 | 0 | 0.210526 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c00b33e0090f651345b2854bbcade23f7b6e9ac0 | 804 | py | Python | web_crawler/crawler.py | RYU-BB/web_crawling | 0cd7745aba1f97f7c3c924e4ea1b602d7e0a0453 | [
"Apache-2.0"
] | null | null | null | web_crawler/crawler.py | RYU-BB/web_crawling | 0cd7745aba1f97f7c3c924e4ea1b602d7e0a0453 | [
"Apache-2.0"
] | null | null | null | web_crawler/crawler.py | RYU-BB/web_crawling | 0cd7745aba1f97f7c3c924e4ea1b602d7e0a0453 | [
"Apache-2.0"
] | null | null | null | import chromedriver_autoinstaller
from web_crawler.utils.crawler_base import CrawlerBase
from web_crawler.tasks import NaverBlogCrawler, DaumBlogCrawler
TASKS = {
"naver_blog": NaverBlogCrawler,
"daum_blog": DaumBlogCrawler
}
CHROME_VER = chromedriver_autoinstaller.get_chrome_version().split('.')[0]
BASE_DRI... | 26.8 | 88 | 0.675373 | 93 | 804 | 5.505376 | 0.569892 | 0.078125 | 0.054688 | 0.070313 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001642 | 0.242537 | 804 | 29 | 89 | 27.724138 | 0.83908 | 0 | 0 | 0 | 0 | 0 | 0.084577 | 0.038557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.090909 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c00c87e47fcb9a84f4a3e3a6c2ac3a2f31db8ed3 | 1,767 | py | Python | setup.py | respeaker/googleassistant_respeakerd | c497674216cdd51645d5ee499afdc28a15cef16d | [
"Apache-2.0"
] | 6 | 2018-07-13T17:21:55.000Z | 2019-11-01T03:51:54.000Z | setup.py | respeaker/googleassistant_respeakerd | c497674216cdd51645d5ee499afdc28a15cef16d | [
"Apache-2.0"
] | 1 | 2019-06-03T09:06:40.000Z | 2019-07-18T23:14:58.000Z | setup.py | respeaker/googleassistant_respeakerd | c497674216cdd51645d5ee499afdc28a15cef16d | [
"Apache-2.0"
] | 2 | 2018-04-18T14:08:34.000Z | 2019-07-16T23:51:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
import io
import os.path
README = \
'''
Adapt google assistant's gRPC sample app for working with respeakerd
'''
def samples_requirements():
with io.open('requirements.txt') as f:
for p in f... | 27.609375 | 103 | 0.663837 | 190 | 1,767 | 6.042105 | 0.610526 | 0.082753 | 0.108885 | 0.067944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012204 | 0.211658 | 1,767 | 63 | 104 | 28.047619 | 0.811917 | 0.06961 | 0 | 0.041667 | 0 | 0 | 0.426923 | 0.104487 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c00dd4930071b7328c0347a53fd4859bf4912f50 | 459 | py | Python | esp/4_digit_7_segment.py | steve9164/micropython_quokka | ec6255f5c79e5be486c9e790def1a22130dbfbe0 | [
"Apache-2.0"
] | 3 | 2019-02-25T02:15:02.000Z | 2019-11-26T14:31:45.000Z | esp/4_digit_7_segment.py | steve9164/micropython-projects | ec6255f5c79e5be486c9e790def1a22130dbfbe0 | [
"Apache-2.0"
] | null | null | null | esp/4_digit_7_segment.py | steve9164/micropython-projects | ec6255f5c79e5be486c9e790def1a22130dbfbe0 | [
"Apache-2.0"
] | null | null | null | import machine
spi = machine.SPI(1)
spi.init(baudrate=1000000)
rclk = machine.Pin(15, machine.Pin.OUT)
rclk.off()
ZERO = 0b00111111
ONE = 0b00000110
TWO = 0b01011011
THREE = 0b01001111
FOUR = 0b01100110
FIVE = 0b01101101
SIX = 0b01111101
SEVEN = 0b00000111
EIGHT = 0b01111111
NINE = 0b01101111
digits = [ZER... | 18.36 | 69 | 0.712418 | 61 | 459 | 5.360656 | 0.639344 | 0.061162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262467 | 0.169935 | 459 | 24 | 70 | 19.125 | 0.595801 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 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 |
c0104759b32c7b71225580c54ec9056722d5e222 | 730 | py | Python | Activities Week 10 (SQLAlchemy)/SQLAlchemy-Day3/activity5/app.py | lraynes/ClassActivities | 920df2331f39c8a89477ab73e4393675a299d02d | [
"MIT"
] | null | null | null | Activities Week 10 (SQLAlchemy)/SQLAlchemy-Day3/activity5/app.py | lraynes/ClassActivities | 920df2331f39c8a89477ab73e4393675a299d02d | [
"MIT"
] | null | null | null | Activities Week 10 (SQLAlchemy)/SQLAlchemy-Day3/activity5/app.py | lraynes/ClassActivities | 920df2331f39c8a89477ab73e4393675a299d02d | [
"MIT"
] | null | null | null | # 1. import Flask
from flask import Flask, render_template, redirect
# 2. Create an app, being sure to pass __name__
app = Flask(__name__)
# 3. Define what to do when a user hits the index route
@app.route("/")
def home():
print("Server received request for 'Home' page...")
return render_template("index.html... | 26.071429 | 58 | 0.684932 | 114 | 730 | 4.22807 | 0.552632 | 0.049793 | 0.118257 | 0.161826 | 0.304979 | 0.124481 | 0.124481 | 0.124481 | 0.124481 | 0 | 0 | 0.006745 | 0.187671 | 730 | 28 | 59 | 26.071429 | 0.806071 | 0.232877 | 0 | 0 | 0 | 0 | 0.435252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.4375 | 0.1875 | 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 |
c012d2844449e453f574c44a759b117364fb51fd | 27,196 | py | Python | webapp.py | lwhsu/nerf-herder | 8206e665f4363a928d3cae32647777c560add712 | [
"BSD-2-Clause"
] | 1 | 2018-06-07T20:48:13.000Z | 2018-06-07T20:48:13.000Z | webapp.py | lwhsu/nerf-herder | 8206e665f4363a928d3cae32647777c560add712 | [
"BSD-2-Clause"
] | 9 | 2017-07-19T01:05:59.000Z | 2017-07-31T22:37:48.000Z | webapp.py | lwhsu/nerf-herder | 8206e665f4363a928d3cae32647777c560add712 | [
"BSD-2-Clause"
] | 1 | 2018-06-21T02:52:03.000Z | 2018-06-21T02:52:03.000Z | # Copyright 2017 Jonathan Anderson
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
... | 31.367935 | 80 | 0.570488 | 3,116 | 27,196 | 4.894095 | 0.133184 | 0.020918 | 0.020984 | 0.02623 | 0.473902 | 0.431344 | 0.36859 | 0.323148 | 0.271344 | 0.256393 | 0 | 0.003126 | 0.305964 | 27,196 | 866 | 81 | 31.404157 | 0.804821 | 0.055707 | 0 | 0.391629 | 0 | 0 | 0.122373 | 0.018908 | 0 | 0 | 0 | 0 | 0.001495 | 0 | null | null | 0.007474 | 0.019432 | null | null | 0.00299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c0184eec82a3aeb424ea97239a578d5eeffa7722 | 1,552 | py | Python | tests/metrics_test/confusion_matrix_test.py | alisoltanirad/Reason | 9062dc8e365efa424706a309de5cfb90ab497e9a | [
"MIT"
] | 1 | 2020-12-21T21:26:27.000Z | 2020-12-21T21:26:27.000Z | tests/metrics_test/confusion_matrix_test.py | alisoltanirad/Reason | 9062dc8e365efa424706a309de5cfb90ab497e9a | [
"MIT"
] | 10 | 2020-12-26T18:55:43.000Z | 2021-01-10T09:15:32.000Z | tests/metrics_test/confusion_matrix_test.py | alisoltanirad/reason | 9062dc8e365efa424706a309de5cfb90ab497e9a | [
"MIT"
] | null | null | null | import pytest
from reason.metrics import ConfusionMatrix, BinaryConfusionMatrix
def test_bad_input():
with pytest.raises(TypeError):
ConfusionMatrix(True, [True])
def test_cm_getitem():
y_true = ['red', 'blue', 'red', 'red', 'blue', 'green', 'red']
y_pred = ['blue', 'blue', 'red', 'red', 'green'... | 33.73913 | 67 | 0.603737 | 208 | 1,552 | 4.302885 | 0.1875 | 0.116201 | 0.130726 | 0.055866 | 0.614525 | 0.560894 | 0.560894 | 0.560894 | 0.560894 | 0.560894 | 0 | 0.023678 | 0.183634 | 1,552 | 45 | 68 | 34.488889 | 0.682715 | 0 | 0 | 0.428571 | 0 | 0 | 0.176546 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.228571 | false | 0 | 0.057143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c01fbce31444e7c8cf72fcd436946b2942ccedbe | 548 | py | Python | tests/basic/raise_exceptions.py | nanobowers/py2cr | b7deb8c227cf43ce0e1bf7d638d5b4c00b7e9bdb | [
"MIT"
] | 61 | 2021-10-06T03:29:45.000Z | 2022-02-11T20:42:16.000Z | tests/basic/raise_exceptions.py | nanobowers/py2cr | b7deb8c227cf43ce0e1bf7d638d5b4c00b7e9bdb | [
"MIT"
] | 2 | 2021-12-27T03:05:30.000Z | 2021-12-27T18:10:33.000Z | tests/basic/raise_exceptions.py | nanobowers/py2cr | b7deb8c227cf43ce0e1bf7d638d5b4c00b7e9bdb | [
"MIT"
] | 2 | 2021-12-27T16:35:46.000Z | 2021-12-28T10:41:49.000Z | try:
raise
except:
pass
try:
raise NotImplementedError('User Defined Error Message.')
except NotImplementedError as err:
print('NotImplementedError')
except:
print('Error :')
try:
raise KeyError('missing key')
except KeyError as ex:
print('KeyError')
except:
print('Error :')
try:
... | 16.606061 | 60 | 0.666058 | 60 | 548 | 6.083333 | 0.35 | 0.087671 | 0.175342 | 0.156164 | 0.131507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004619 | 0.209854 | 548 | 32 | 61 | 17.125 | 0.838337 | 0 | 0 | 0.5 | 0 | 0 | 0.240876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.035714 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c0209b92b1b50703b5a9c8066689b314262ab2de | 40,647 | py | Python | selenium/src/py/lib/epydoc/cli.py | epall/selenium | 273260522efb84116979da2a499f64510250249b | [
"Apache-2.0"
] | 4 | 2015-10-26T01:43:04.000Z | 2018-05-12T17:39:32.000Z | selenium/src/py/lib/epydoc/cli.py | hugs/selenium | 9fa09c04294bd43099aa8461b027148ba81be7b7 | [
"Apache-2.0"
] | 1 | 2021-06-18T00:45:52.000Z | 2021-06-18T00:45:52.000Z | selenium/src/py/lib/epydoc/cli.py | hugs/selenium | 9fa09c04294bd43099aa8461b027148ba81be7b7 | [
"Apache-2.0"
] | 2 | 2016-07-11T20:19:31.000Z | 2018-11-17T22:36:54.000Z | # epydoc -- Command line interface
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: cli.py 1196 2006-04-09 18:15:55Z edloper $
"""
Command-line interface for epydoc. Abbreviated Usage::
epydoc [options] NAMES...
NAMES... Th... | 42.340625 | 79 | 0.55763 | 4,606 | 40,647 | 4.809162 | 0.154147 | 0.024559 | 0.022121 | 0.026545 | 0.20753 | 0.152679 | 0.102072 | 0.071103 | 0.052774 | 0.044242 | 0 | 0.008181 | 0.314365 | 40,647 | 959 | 80 | 42.384776 | 0.786645 | 0.088887 | 0 | 0.203652 | 0 | 0 | 0.172699 | 0.004074 | 0.001404 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008427 | 0.035112 | null | null | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c0237cb00fecf009b6c36bbd807c6dc0c7dbc374 | 1,636 | py | Python | Python-Cloud-Integration/authentication_api.py | firemondev/terraform | d4cb08548a08b364959c23951460231525775874 | [
"MIT"
] | null | null | null | Python-Cloud-Integration/authentication_api.py | firemondev/terraform | d4cb08548a08b364959c23951460231525775874 | [
"MIT"
] | null | null | null | Python-Cloud-Integration/authentication_api.py | firemondev/terraform | d4cb08548a08b364959c23951460231525775874 | [
"MIT"
] | null | null | null | """ This module does user authentication """
import requests
headers = {
'Accept': 'applicationjson',
'Content-Type': 'application/json'
}
class Authentication:
def __init__(self, host, username, password, verify_ssl):
self.host = host
self.username = username
self.password = pas... | 33.387755 | 107 | 0.621638 | 189 | 1,636 | 5.248677 | 0.402116 | 0.045363 | 0.039315 | 0.030242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282396 | 1,636 | 48 | 108 | 34.083333 | 0.844974 | 0.227995 | 0 | 0.0625 | 0 | 0 | 0.146789 | 0.035863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.09375 | 0.03125 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c02489f36b54a5b0007e8c5bf68f58bf48c6a2c5 | 14,388 | py | Python | python/kserve/test/test_server.py | adriangonz/kserve | a400bd7f6a3b4d40cc0257e55fb20bb4c8967c9f | [
"Apache-2.0"
] | null | null | null | python/kserve/test/test_server.py | adriangonz/kserve | a400bd7f6a3b4d40cc0257e55fb20bb4c8967c9f | [
"Apache-2.0"
] | 1 | 2020-04-21T18:29:50.000Z | 2020-04-21T18:29:50.000Z | python/kserve/test/test_server.py | adriangonz/kserve | a400bd7f6a3b4d40cc0257e55fb20bb4c8967c9f | [
"Apache-2.0"
] | 1 | 2021-11-22T03:06:48.000Z | 2021-11-22T03:06:48.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 40.991453 | 110 | 0.603211 | 1,581 | 14,388 | 5.349779 | 0.160025 | 0.052022 | 0.060534 | 0.040435 | 0.727122 | 0.699574 | 0.682313 | 0.652873 | 0.635611 | 0.614566 | 0 | 0.031613 | 0.276689 | 14,388 | 350 | 111 | 41.108571 | 0.781109 | 0.056088 | 0 | 0.553506 | 0 | 0 | 0.212684 | 0.078466 | 0 | 0 | 0.000295 | 0 | 0.191882 | 1 | 0.059041 | false | 0 | 0.03321 | 0 | 0.191882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0254fa3c7992e0a863e55aebc446dc45ec05bf9 | 3,627 | py | Python | examples/legacy/cb-dns-exfil.py | jessecarbon/cbapi-python | d1082d6e7650b6c8d9d92735543e53d5748c4885 | [
"MIT"
] | 17 | 2016-07-21T14:58:49.000Z | 2020-10-26T15:51:38.000Z | examples/legacy/cb-dns-exfil.py | jessecarbon/cbapi-python | d1082d6e7650b6c8d9d92735543e53d5748c4885 | [
"MIT"
] | 5 | 2017-06-07T02:42:09.000Z | 2019-10-23T12:26:29.000Z | examples/legacy/cb-dns-exfil.py | jjfallete/cbapi-python | 8b92584edca5605cd94afa7656fd04c282b875b8 | [
"MIT"
] | 9 | 2016-10-03T02:18:23.000Z | 2021-03-08T22:44:33.000Z | #!/usr/bin/env python
#
#The MIT License (MIT)
#
# Copyright (c) 2015 Bit9 + Carbon Black
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | 39.423913 | 172 | 0.701958 | 551 | 3,627 | 4.6098 | 0.486388 | 0.034646 | 0.011811 | 0.014173 | 0.016535 | 0.016535 | 0.016535 | 0.016535 | 0.016535 | 0.016535 | 0 | 0.040599 | 0.171492 | 3,627 | 91 | 173 | 39.857143 | 0.804659 | 0.711332 | 0 | 0 | 0 | 0.045455 | 0.304162 | 0.178228 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0296820b87c9dcf7e14cd6e66971c79ef8f52a2 | 394 | py | Python | WebMirror/management/rss_parser_funcs/feed_parse_extractBersekerTranslations.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 193 | 2016-08-02T22:04:35.000Z | 2022-03-09T20:45:41.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractBersekerTranslations.py | fake-name/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 533 | 2016-08-23T20:48:23.000Z | 2022-03-28T15:55:13.000Z | WebMirror/management/rss_parser_funcs/feed_parse_extractBersekerTranslations.py | rrosajp/ReadableWebProxy | ed5c7abe38706acc2684a1e6cd80242a03c5f010 | [
"BSD-3-Clause"
] | 19 | 2015-08-13T18:01:08.000Z | 2021-07-12T17:13:09.000Z | def extractBersekerTranslations(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if 'Because the world has changed into a death game is funny' in item['tags'] and (chp or vol or 'Prologue' in postfix):
return buildReleaseMessageWithType(item, 'Sekai ga death game ni natta ... | 43.777778 | 132 | 0.748731 | 54 | 394 | 5.462963 | 0.685185 | 0.040678 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147208 | 394 | 8 | 133 | 49.25 | 0.877976 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 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 |
c03c49372a764abac15b29dc799b5c225e51760c | 21,585 | py | Python | uditransfer/monitor.py | xudesheng/uditransfer | 63d84741ac70434de19b5f19fab884b1e71aa81d | [
"Apache-2.0"
] | null | null | null | uditransfer/monitor.py | xudesheng/uditransfer | 63d84741ac70434de19b5f19fab884b1e71aa81d | [
"Apache-2.0"
] | null | null | null | uditransfer/monitor.py | xudesheng/uditransfer | 63d84741ac70434de19b5f19fab884b1e71aa81d | [
"Apache-2.0"
] | null | null | null | import sys
import logging
import time
import argparse
import os
import shutil
import tarfile
import subprocess
sys.path.append(".")
try:
from . import util
from . import configuration
except:
import util
import configuration
def process_hl7_shell_commands(my_config, target_file):
process_shell_c... | 41.669884 | 116 | 0.664767 | 2,894 | 21,585 | 4.728058 | 0.095024 | 0.049697 | 0.029672 | 0.019294 | 0.667251 | 0.618066 | 0.572681 | 0.502594 | 0.468684 | 0.427538 | 0 | 0.016025 | 0.236785 | 21,585 | 518 | 117 | 41.669884 | 0.814556 | 0.026315 | 0 | 0.345679 | 0 | 0 | 0.208613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02963 | null | null | 0.002469 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c03da066c7a9367ffb7aaaaff02b5e301dc36ed3 | 8,876 | py | Python | collections/ansible_collections/redhat/satellite/plugins/modules/subnet.py | hindman-redhat/automated-smart-management-2 | 5450ccd71f2a4ba568a7f11b03466e1554ae0087 | [
"MIT"
] | null | null | null | collections/ansible_collections/redhat/satellite/plugins/modules/subnet.py | hindman-redhat/automated-smart-management-2 | 5450ccd71f2a4ba568a7f11b03466e1554ae0087 | [
"MIT"
] | null | null | null | collections/ansible_collections/redhat/satellite/plugins/modules/subnet.py | hindman-redhat/automated-smart-management-2 | 5450ccd71f2a4ba568a7f11b03466e1554ae0087 | [
"MIT"
] | 2 | 2021-03-30T14:26:02.000Z | 2021-04-01T18:17:29.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2018 Baptiste AGASSE (baptiste.agasse@gmail.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your ... | 31.034965 | 120 | 0.671136 | 1,103 | 8,876 | 5.267452 | 0.252947 | 0.025301 | 0.049742 | 0.04475 | 0.307229 | 0.250947 | 0.177797 | 0.171773 | 0.158176 | 0.080895 | 0 | 0.012745 | 0.23096 | 8,876 | 285 | 121 | 31.14386 | 0.838412 | 0.078977 | 0 | 0.268775 | 0 | 0.011858 | 0.640642 | 0.044123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003953 | false | 0.007905 | 0.019763 | 0 | 0.027668 | 0.003953 | 0 | 0 | 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 |
c03ff385ec468c263c913fda13aed60a74dd1e08 | 450 | py | Python | tests/integration/reqs/test_account_info.py | florent-uzio/xrpl-py | ce396a15a6fc39ca20e035636463b58b231ffeac | [
"0BSD"
] | 1 | 2021-04-07T16:59:01.000Z | 2021-04-07T16:59:01.000Z | tests/integration/reqs/test_account_info.py | florent-uzio/xrpl-py | ce396a15a6fc39ca20e035636463b58b231ffeac | [
"0BSD"
] | null | null | null | tests/integration/reqs/test_account_info.py | florent-uzio/xrpl-py | ce396a15a6fc39ca20e035636463b58b231ffeac | [
"0BSD"
] | null | null | null | from unittest import TestCase
from tests.integration.it_utils import JSON_RPC_CLIENT
from tests.integration.reusable_values import WALLET
from xrpl.models.requests import AccountInfo
class TestAccountInfo(TestCase):
def test_basic_functionality(self):
response = JSON_RPC_CLIENT.request(
Accou... | 28.125 | 54 | 0.72 | 49 | 450 | 6.408163 | 0.673469 | 0.057325 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22 | 450 | 15 | 55 | 30 | 0.894587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c04500ceaf824c77e9b46e3077633f2b1ba1d806 | 4,266 | py | Python | pypillometry/tests/test_pdata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 13 | 2020-07-01T02:00:23.000Z | 2021-11-18T22:49:54.000Z | pypillometry/tests/test_pdata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 17 | 2020-06-24T10:26:09.000Z | 2022-01-27T13:36:10.000Z | pypillometry/tests/test_pdata.py | wsojka00/pypillometry | 6c2258f1df2a435e6474ce33ebc46ce595d3d25e | [
"MIT"
] | 5 | 2020-06-30T20:03:36.000Z | 2022-01-27T13:22:34.000Z | import unittest
import sys
import numpy as np
#sys.path.insert(0,"..")
#import pypillometry as pp
from .. import *
class TestPupilData(unittest.TestCase):
def setUp(self):
self.dfake=create_fake_pupildata(ntrials=100, fs=500)
self.d=PupilData.from_file("data/test.pd")
def test_from_file(self):
... | 36.775862 | 70 | 0.640413 | 607 | 4,266 | 4.30313 | 0.200988 | 0.061256 | 0.044793 | 0.048239 | 0.308193 | 0.185299 | 0.176876 | 0.164625 | 0.140123 | 0.058959 | 0 | 0.03472 | 0.216831 | 4,266 | 116 | 71 | 36.775862 | 0.747082 | 0.011252 | 0 | 0.07619 | 0 | 0 | 0.016125 | 0 | 0 | 0 | 0 | 0 | 0.304762 | 1 | 0.238095 | false | 0.019048 | 0.038095 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c046003617459f850632a1761ef5c4c76e1a1450 | 998 | py | Python | cracking_the_coding_interview_qs/17.20/get_continous_median.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/17.20/get_continous_median.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/17.20/get_continous_median.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | import heapq
class Get_Continous_Median():
def __init__(self):
self.min_heap = []
self.max_heap = []
def get_median(self):
if len(self.max_heap) != len(self.min_heap):
return -1*self.max_heap[0]
else:
return (-1*self.max_heap[0] + self.min_heap[0]) / 2
... | 31.1875 | 78 | 0.536072 | 133 | 998 | 3.81203 | 0.18797 | 0.151874 | 0.238659 | 0.157791 | 0.64497 | 0.631164 | 0.410256 | 0.410256 | 0.410256 | 0.291913 | 0 | 0.015244 | 0.342685 | 998 | 31 | 79 | 32.193548 | 0.757622 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.296296 | 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 |
c046b8f9f8edd52592952832f6b4e6be3730468c | 703 | py | Python | setup.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 8 | 2020-03-19T10:59:25.000Z | 2022-01-22T22:33:07.000Z | setup.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 1 | 2022-01-22T11:24:45.000Z | 2022-01-22T11:24:45.000Z | setup.py | joebentley/simba | dd1b7bc6d22ad96566898dd1851cfa210462cb00 | [
"MIT"
] | 1 | 2020-03-19T13:27:41.000Z | 2020-03-19T13:27:41.000Z | import setuptools
setuptools.setup(
name='quantum-simba',
version='0.9.6dev',
packages=['simba'],
license='MIT',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
author="Joe Bentley",
author_email="joebentley10@gmail.com",
description="System... | 31.954545 | 93 | 0.657183 | 78 | 703 | 5.833333 | 0.794872 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019164 | 0.183499 | 703 | 21 | 94 | 33.47619 | 0.773519 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0.031294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c047c9a43f6d4247925817ca5e12dd1f81ef32df | 635 | py | Python | closure_measurements/bin/closure_measurement_coords.py | VibroSim/closure_measurements | 3c5560db85e0e9e276aaccc06c49c63224dbddca | [
"MIT"
] | null | null | null | closure_measurements/bin/closure_measurement_coords.py | VibroSim/closure_measurements | 3c5560db85e0e9e276aaccc06c49c63224dbddca | [
"MIT"
] | null | null | null | closure_measurements/bin/closure_measurement_coords.py | VibroSim/closure_measurements | 3c5560db85e0e9e276aaccc06c49c63224dbddca | [
"MIT"
] | null | null | null | import sys
import os
import numpy as np
from matplotlib import pyplot as pl
from ..perform_dic import dic_raw_plots as dic_raw_plots
#processpool=None
def main(args=None):
if args is None:
args=sys.argv
pass
dic_scalefactor=5
dic_radius=20 # measured (I think) in the unscaled original ... | 18.676471 | 88 | 0.658268 | 91 | 635 | 4.461538 | 0.626374 | 0.044335 | 0.081281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.275591 | 635 | 33 | 89 | 19.242424 | 0.869565 | 0.105512 | 0 | 0.15 | 0 | 0 | 0.20318 | 0.045936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.25 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c04a3d09fe0d2fdea3200b765ba203507a753d41 | 762 | py | Python | src/Python/tests/test_neo4j_access.py | PathwayAnalysisPlatform/ProteoformNetworks | 3d31e5b3cb4abc45e6419fa982c08b3dc5c2624e | [
"Apache-2.0"
] | 1 | 2019-08-16T12:40:14.000Z | 2019-08-16T12:40:14.000Z | src/Python/tests/test_neo4j_access.py | LuisFranciscoHS/ProteoformNetworks | a6baa87fe6f76905f6d58a2f7cb66aad5d8d56c5 | [
"Apache-2.0"
] | 9 | 2019-08-16T07:33:33.000Z | 2022-03-04T22:20:02.000Z | src/Python/tests/test_neo4j_access.py | LuisFranciscoHS/ProteoformNetworks | a6baa87fe6f76905f6d58a2f7cb66aad5d8d56c5 | [
"Apache-2.0"
] | 1 | 2022-02-21T17:42:48.000Z | 2022-02-21T17:42:48.000Z | import pytest
import pandas as pd
from lib.graph_database_access import get_query_result
def test_get_query_result():
query = "MATCH (p:Pathway{stId:\"R-HSA-9634600\"}) RETURN p.displayName as Name"
result = get_query_result(query)
assert len(result) == 1
assert type(result) == pd.DataFrame
asser... | 34.636364 | 103 | 0.721785 | 110 | 762 | 4.845455 | 0.427273 | 0.075047 | 0.131332 | 0.106942 | 0.551595 | 0.484053 | 0.378987 | 0.24015 | 0.24015 | 0.24015 | 0 | 0.020472 | 0.166667 | 762 | 22 | 104 | 34.636364 | 0.818898 | 0 | 0 | 0.235294 | 0 | 0 | 0.241153 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
c04ca327414f6dc7b5491bb47bb206feb0737cc4 | 240 | py | Python | zinnia/urls/shortlink.py | emencia/django-blog-xinnia | ab19b55477ce7003b6f0712f8bd12af3501c4829 | [
"BSD-3-Clause"
] | null | null | null | zinnia/urls/shortlink.py | emencia/django-blog-xinnia | ab19b55477ce7003b6f0712f8bd12af3501c4829 | [
"BSD-3-Clause"
] | null | null | null | zinnia/urls/shortlink.py | emencia/django-blog-xinnia | ab19b55477ce7003b6f0712f8bd12af3501c4829 | [
"BSD-3-Clause"
] | 1 | 2021-06-17T14:02:21.000Z | 2021-06-17T14:02:21.000Z | """Urls for the Zinnia entries short link"""
from django.urls import path
from zinnia.views.shortlink import EntryShortLink
urlpatterns = [
path('<token:token>',
EntryShortLink.as_view(),
name='entry_shortlink'),
]
| 20 | 49 | 0.6875 | 28 | 240 | 5.821429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195833 | 240 | 11 | 50 | 21.818182 | 0.84456 | 0.158333 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c04d1bb8023215a640b6d44a9b6c5af1501c0765 | 10,683 | py | Python | corpus2graph/applications/graph_builder.py | zzcoolj/corpus2graph | 0d39f5f845b70a0f42000e3afc507eb7b4b5679c | [
"MIT"
] | 27 | 2018-06-06T16:30:45.000Z | 2022-02-10T15:28:47.000Z | corpus2graph/applications/graph_builder.py | yinruiqing/corpus2graph | 0f050dbf88b5eb9ba8fd8f4b42f08ab2456c910b | [
"MIT"
] | 2 | 2019-05-01T15:24:12.000Z | 2019-08-20T20:17:19.000Z | corpus2graph/applications/graph_builder.py | yinruiqing/corpus2graph | 0f050dbf88b5eb9ba8fd8f4b42f08ab2456c910b | [
"MIT"
] | 3 | 2019-11-10T15:39:11.000Z | 2020-10-16T12:40:06.000Z | __author__ = 'Zheng ZHANG'
"""
graph_builder is used by negative_samples_generator.py to get what is needed to build the negative samples.
"""
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
import corpus2graph.util as util
import corpus2graph.multi_processing
class NoGraph:
def __init_... | 52.367647 | 126 | 0.668445 | 1,402 | 10,683 | 4.847361 | 0.212554 | 0.025162 | 0.030901 | 0.02472 | 0.366833 | 0.315627 | 0.302237 | 0.302237 | 0.283108 | 0.249853 | 0 | 0.011812 | 0.239259 | 10,683 | 203 | 127 | 52.625616 | 0.824412 | 0.346157 | 0 | 0.362069 | 0 | 0 | 0.059142 | 0.023025 | 0 | 0 | 0 | 0.014778 | 0 | 1 | 0.103448 | false | 0 | 0.060345 | 0 | 0.232759 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c04d6291df45d478e4a868026695295d6624a113 | 3,949 | py | Python | byceps/services/authentication/password/service.py | GyBraLAN/byceps | b53087849c10a531b66d08999116fa1bef312a7f | [
"BSD-3-Clause"
] | null | null | null | byceps/services/authentication/password/service.py | GyBraLAN/byceps | b53087849c10a531b66d08999116fa1bef312a7f | [
"BSD-3-Clause"
] | null | null | null | byceps/services/authentication/password/service.py | GyBraLAN/byceps | b53087849c10a531b66d08999116fa1bef312a7f | [
"BSD-3-Clause"
] | null | null | null | """
byceps.services.authentication.password.service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from datetime import datetime
from typing import Optional
from werkzeug.security import (
check_password_hash a... | 29.470149 | 79 | 0.720942 | 508 | 3,949 | 5.344488 | 0.214567 | 0.163536 | 0.066298 | 0.038306 | 0.309024 | 0.25709 | 0.206262 | 0.101657 | 0.101657 | 0.101657 | 0 | 0.005547 | 0.178273 | 3,949 | 133 | 80 | 29.691729 | 0.831125 | 0.233477 | 0 | 0.208955 | 0 | 0 | 0.030003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149254 | false | 0.358209 | 0.119403 | 0 | 0.38806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c0564cfe8f84344a745a191555fc7936543e704c | 1,951 | py | Python | password_generator/api/views.py | zaferdurkut/password-generator-django-api | 6d3f1044a97ecf2c74a133c965ee5cba1e96f37c | [
"MIT"
] | 2 | 2019-11-11T07:19:24.000Z | 2019-11-11T13:09:40.000Z | password_generator/api/views.py | zaferdurkut/password-generator-django-api | 6d3f1044a97ecf2c74a133c965ee5cba1e96f37c | [
"MIT"
] | 5 | 2021-03-19T03:07:11.000Z | 2022-02-10T08:41:29.000Z | password_generator/api/views.py | zaferdurkut/password-generator-django-api | 6d3f1044a97ecf2c74a133c965ee5cba1e96f37c | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Password
from rest_framework.response import Response
from api.serializer import PasswordSerializer
from django.http import FileResponse
from rest_framework.response import Response
from rest_framework.decorators import api_view, permission_classes
from rest_fram... | 31.983607 | 74 | 0.675551 | 224 | 1,951 | 5.700893 | 0.366071 | 0.054816 | 0.076742 | 0.098669 | 0.184025 | 0.101801 | 0.067345 | 0 | 0 | 0 | 0 | 0.000664 | 0.227576 | 1,951 | 60 | 75 | 32.516667 | 0.846715 | 0.009739 | 0 | 0.088889 | 0 | 0 | 0.100889 | 0.024569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.244444 | 0.288889 | 0 | 0.444444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c056da35cdca7dbd9e51260aa600d7d9aebd8338 | 28,343 | py | Python | scripts/train_gan_dnn.py | wangkenpu/rsrgan | 0efafbdb4008becd3a81650ca0237c660e976d4a | [
"MIT"
] | 66 | 2018-07-06T07:07:56.000Z | 2021-07-30T07:59:54.000Z | scripts/train_gan_dnn.py | wangkenpu/rsrgan | 0efafbdb4008becd3a81650ca0237c660e976d4a | [
"MIT"
] | 7 | 2018-09-01T03:03:14.000Z | 2019-11-04T10:51:04.000Z | scripts/train_gan_dnn.py | wangkenpu/rsrgan | 0efafbdb4008becd3a81650ca0237c660e976d4a | [
"MIT"
] | 15 | 2018-07-03T13:47:26.000Z | 2021-10-17T04:26:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 Ke Wang
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import datetime
import os
import sys
import numpy as np
import tensorflow as tf
sys.path.append(os.path.dirname(sys.... | 38.249663 | 82 | 0.503652 | 3,382 | 28,343 | 3.878179 | 0.11709 | 0.010064 | 0.017688 | 0.012809 | 0.610095 | 0.529277 | 0.462794 | 0.425358 | 0.395395 | 0.376792 | 0 | 0.014696 | 0.399817 | 28,343 | 740 | 83 | 38.301351 | 0.756334 | 0.038951 | 0 | 0.443586 | 0 | 0 | 0.12334 | 0.008913 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021638 | null | null | 0.046368 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c05dea15415979e61070a72f10aa20d768d7421d | 807 | py | Python | bibtex.py | rai-prashanna/software-testing | 85e4df76a4852f36a0d149686ed0994cd535ce21 | [
"MIT"
] | null | null | null | bibtex.py | rai-prashanna/software-testing | 85e4df76a4852f36a0d149686ed0994cd535ce21 | [
"MIT"
] | null | null | null | bibtex.py | rai-prashanna/software-testing | 85e4df76a4852f36a0d149686ed0994cd535ce21 | [
"MIT"
] | null | null | null | def extract_author(simple_author_1):
list_tokenize_name=simple_author_1.split("and")
if len(list_tokenize_name)>1:
authors_list = []
for tokenize_name in list_tokenize_name:
splitted=tokenize_name.split(",")
authors_list.append((splitted[0].strip(),splitted[1].strip()))
... | 35.086957 | 74 | 0.681537 | 108 | 807 | 4.731481 | 0.222222 | 0.446184 | 0.152642 | 0.1409 | 0.293542 | 0.293542 | 0.133072 | 0 | 0 | 0 | 0 | 0.027692 | 0.194548 | 807 | 22 | 75 | 36.681818 | 0.758462 | 0 | 0 | 0 | 0 | 0 | 0.008706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.315789 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.