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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab96854c1866bd5e47a94c07ec902062dcaae69a | 220 | py | Python | widget_row/config.py | chr0nu5/core | aa80ccb3ae30dd12a5c848079d1184a830fcb83b | [
"MIT"
] | null | null | null | widget_row/config.py | chr0nu5/core | aa80ccb3ae30dd12a5c848079d1184a830fcb83b | [
"MIT"
] | null | null | null | widget_row/config.py | chr0nu5/core | aa80ccb3ae30dd12a5c848079d1184a830fcb83b | [
"MIT"
] | null | null | null | class Config:
def data(self):
config = {
'name':'Row',
'icon': 'fa fa-square-o',
'tags': 'row, bootstrap',
'preview': False
}
return config | 22 | 37 | 0.409091 | 20 | 220 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.45 | 220 | 10 | 38 | 22 | 0.743802 | 0 | 0 | 0 | 0 | 0 | 0.226244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 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 |
ab96cabae04c2fdbb26632ef608828a8523a99f9 | 6,249 | py | Python | pysnmp/ChrComPmOpticsOMS-SNK-Day-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ChrComPmOpticsOMS-SNK-Day-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ChrComPmOpticsOMS-SNK-Day-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ChrComPmOpticsOMS-SNK-Day-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ChrComPmOpticsOMS-SNK-Day-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:20:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ve... | 130.1875 | 806 | 0.792607 | 645 | 6,249 | 7.654264 | 0.203101 | 0.006482 | 0.009115 | 0.012153 | 0.434677 | 0.346769 | 0.346769 | 0.330363 | 0.330363 | 0.330363 | 0 | 0.079387 | 0.070731 | 6,249 | 47 | 807 | 132.957447 | 0.770794 | 0.056329 | 0 | 0 | 0 | 0 | 0.154042 | 0.03142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.225 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab974b70c53fde49fe7affd9077359be349ce7b9 | 883 | py | Python | mipengine/controller/algorithm_execution_DTOs.py | ThanKarab/MIP-Engine | 41ae237f4e5c35c0d3ad94bf741ade08b695dd8e | [
"MIT"
] | 4 | 2021-01-19T18:45:38.000Z | 2022-01-31T13:25:45.000Z | mipengine/controller/algorithm_execution_DTOs.py | madgik/MIP-Engine | d707a4189457cecd977ddac8c213f308c8282b37 | [
"MIT"
] | 136 | 2020-12-31T11:10:00.000Z | 2022-03-31T22:21:55.000Z | mipengine/controller/algorithm_execution_DTOs.py | ThanKarab/MIP-Engine | 41ae237f4e5c35c0d3ad94bf741ade08b695dd8e | [
"MIT"
] | 9 | 2021-05-21T06:05:14.000Z | 2021-12-02T09:09:01.000Z | from pydantic import BaseModel
from typing import Dict, List
from mipengine.controller.api.algorithm_request_dto import AlgorithmRequestDTO
from mipengine.controller.node_tasks_handler_interface import INodeTasksHandler
# One of the two expected data object for the AlgorithmExecutor layer.
class AlgorithmExecutionDT... | 32.703704 | 79 | 0.815402 | 103 | 883 | 6.805825 | 0.533981 | 0.085592 | 0.065621 | 0.059914 | 0.233952 | 0.233952 | 0.131241 | 0 | 0 | 0 | 0 | 0 | 0.14949 | 883 | 26 | 80 | 33.961538 | 0.933422 | 0.291053 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aba08058311cd4d692286fb7895865801dcfa42e | 2,225 | py | Python | hero1/command_pb2.py | danielhwkim/Hero1 | 7dcd4dea241535a45fd8322f4c6f00667a19d17a | [
"MIT"
] | null | null | null | hero1/command_pb2.py | danielhwkim/Hero1 | 7dcd4dea241535a45fd8322f4c6f00667a19d17a | [
"MIT"
] | null | null | null | hero1/command_pb2.py | danielhwkim/Hero1 | 7dcd4dea241535a45fd8322f4c6f00667a19d17a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: command.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
fr... | 39.035088 | 842 | 0.779326 | 355 | 2,225 | 4.707042 | 0.422535 | 0.035907 | 0.041891 | 0.047876 | 0.040694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146078 | 0.083146 | 2,225 | 56 | 843 | 39.732143 | 0.673039 | 0.115955 | 0 | 0 | 1 | 0.025641 | 0.421268 | 0.396728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aba79e167631d45cb68688c4e69660baef0e7461 | 22,135 | py | Python | hoki/load.py | HeloiseS/hoki | 31cecc4c4ee2bbb617e1451df1cab896f485d801 | [
"BSD-3-Clause"
] | 40 | 2019-09-18T13:04:09.000Z | 2022-03-08T12:45:35.000Z | hoki/load.py | HeloiseS/hoki | 31cecc4c4ee2bbb617e1451df1cab896f485d801 | [
"BSD-3-Clause"
] | 60 | 2019-10-26T01:11:52.000Z | 2022-02-10T06:52:08.000Z | hoki/load.py | HeloiseS/hoki | 31cecc4c4ee2bbb617e1451df1cab896f485d801 | [
"BSD-3-Clause"
] | 8 | 2020-03-04T23:35:01.000Z | 2021-05-23T16:32:54.000Z | """
This module implements the tools to easily load BPASS data.
"""
import pandas as pd
import hoki.hrdiagrams as hr
from hoki.constants import *
import os
import yaml
import io
import pickle
import pkg_resources
import hoki.data_compilers
import warnings
from hoki.utils.exceptions import HokiDeprecationWarning, HokiK... | 33.639818 | 115 | 0.554281 | 2,885 | 22,135 | 4.137955 | 0.193068 | 0.014073 | 0.007539 | 0.011308 | 0.372173 | 0.337159 | 0.313872 | 0.306584 | 0.286648 | 0.247613 | 0 | 0.047896 | 0.309555 | 22,135 | 657 | 116 | 33.69102 | 0.733233 | 0.336164 | 0 | 0.189189 | 0 | 0 | 0.235373 | 0.01591 | 0 | 0 | 0 | 0.001522 | 0.034749 | 1 | 0.084942 | false | 0.050193 | 0.046332 | 0 | 0.247104 | 0.030888 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
abafa7ed4a6a61dcc120dc506ae6f091dc00758d | 490 | py | Python | ml/scratch.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-08-04T08:15:22.000Z | 2022-02-02T11:15:56.000Z | ml/scratch.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 14 | 2021-08-02T06:28:00.000Z | 2022-03-25T10:44:15.000Z | ml/scratch.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-07-16T04:56:41.000Z | 2022-02-16T04:40:06.000Z | import numpy
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.metrics import r2_score
x = [1,2,3,4]
x=numpy.array(x)
print(x.shape)
x=x.reshape(2,-1)
print(x.shape)
print(x)
x=x.reshape(-1)
print(x.shape)
print(x)
y = [2,4,6,8]
#x*2=[2,4,6,8]
#x*x=[1,4,9,16]
#sum(x) = 10
pf=numpy.polyfit(x,y,3)
print... | 15.3125 | 36 | 0.679592 | 107 | 490 | 3.093458 | 0.345794 | 0.090634 | 0.099698 | 0.024169 | 0.138973 | 0.108761 | 0 | 0 | 0 | 0 | 0 | 0.070455 | 0.102041 | 490 | 31 | 37 | 15.806452 | 0.681818 | 0.077551 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.16 | 0.48 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
abb69ead30845932c377c76838d59087d654a4c3 | 1,456 | py | Python | tests/test_cli_config.py | Dallinger/Dallinger | c3acf1375391ef8cb702641638bf5a5008aa9be3 | [
"MIT"
] | 100 | 2016-09-07T03:55:36.000Z | 2022-02-28T02:20:10.000Z | tests/test_cli_config.py | Dallinger/Dallinger | c3acf1375391ef8cb702641638bf5a5008aa9be3 | [
"MIT"
] | 3,457 | 2016-09-05T23:21:31.000Z | 2022-03-31T19:11:31.000Z | tests/test_cli_config.py | Dallinger/Dallinger | c3acf1375391ef8cb702641638bf5a5008aa9be3 | [
"MIT"
] | 53 | 2016-10-03T07:24:34.000Z | 2021-10-20T20:42:38.000Z | from pathlib import Path
import json
import mock
import pytest
import shutil
import tempfile
def test_list_hosts_empty():
from dallinger.command_line.config import get_configured_hosts
assert get_configured_hosts() == {}
def test_list_hosts_results(tmp_appdir):
from dallinger.command_line.config impor... | 32.355556 | 81 | 0.736264 | 215 | 1,456 | 4.655814 | 0.255814 | 0.07992 | 0.107892 | 0.12987 | 0.503497 | 0.503497 | 0.415584 | 0.415584 | 0.415584 | 0.253746 | 0 | 0.020968 | 0.148352 | 1,456 | 44 | 82 | 33.090909 | 0.78629 | 0.043956 | 0 | 0.290323 | 0 | 0 | 0.148629 | 0.026696 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.129032 | false | 0 | 0.322581 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
abbb38eb2d73bf645abefcae5228129f19c7428f | 337 | py | Python | wisdem/orbit/phases/install/cable_install/__init__.py | ptrbortolotti/WISDEM | 2b7e44716d022e2f62140073dd078c5deeb8bf0a | [
"Apache-2.0"
] | 81 | 2015-01-19T18:17:31.000Z | 2022-03-17T07:14:43.000Z | wisdem/orbit/phases/install/cable_install/__init__.py | ptrbortolotti/WISDEM | 2b7e44716d022e2f62140073dd078c5deeb8bf0a | [
"Apache-2.0"
] | 159 | 2015-02-05T01:54:52.000Z | 2022-03-30T22:44:39.000Z | wisdem/orbit/phases/install/cable_install/__init__.py | ptrbortolotti/WISDEM | 2b7e44716d022e2f62140073dd078c5deeb8bf0a | [
"Apache-2.0"
] | 70 | 2015-01-02T15:22:39.000Z | 2022-02-11T00:33:07.000Z | """Initialize cable installation functionality"""
__author__ = "Rob Hammond"
__copyright__ = "Copyright 2020, National Renewable Energy Laboratory"
__maintainer__ = "Rob Hammond"
__email__ = "robert.hammond@nrel.gov"
from .array import ArrayCableInstallation
from .common import SimpleCable
from .export import ExportC... | 30.636364 | 70 | 0.816024 | 34 | 337 | 7.617647 | 0.764706 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.109792 | 337 | 10 | 71 | 33.7 | 0.85 | 0.127596 | 0 | 0 | 0 | 0 | 0.336806 | 0.079861 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
abbe1dc5ca5df092a471911beb02aaa26c8e8d1e | 9,817 | py | Python | tool_sdk/api/basic/list_tool_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | tool_sdk/api/basic/list_tool_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | tool_sdk/api/basic/list_tool_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: list_tool.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | 41.421941 | 841 | 0.746766 | 1,243 | 9,817 | 5.621078 | 0.140788 | 0.054959 | 0.057106 | 0.042937 | 0.594819 | 0.562187 | 0.545012 | 0.545012 | 0.540289 | 0.535709 | 0 | 0.040533 | 0.127941 | 9,817 | 236 | 842 | 41.597458 | 0.77561 | 0.037079 | 0 | 0.639423 | 1 | 0.004808 | 0.192397 | 0.150254 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028846 | 0 | 0.028846 | 0 | 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 |
abbec169b1c02a3259c2778fd8a5d8ac0f6aa208 | 572 | py | Python | hrdf-tools/hrdf_db_reporter_cli.py | vasile/OJP-Showcase | 07805bac5d5ec6e6b7c805f315732697ea90e32e | [
"Apache-2.0"
] | null | null | null | hrdf-tools/hrdf_db_reporter_cli.py | vasile/OJP-Showcase | 07805bac5d5ec6e6b7c805f315732697ea90e32e | [
"Apache-2.0"
] | null | null | null | hrdf-tools/hrdf_db_reporter_cli.py | vasile/OJP-Showcase | 07805bac5d5ec6e6b7c805f315732697ea90e32e | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import re
import sys
from inc.HRDF.Stops_Reporter.stops_reporter import HRDF_Stops_Reporter
from inc.HRDF.HRDF_Parser.hrdf_helpers import compute_formatted_date_from_hrdf_db_path
from inc.HRDF.db_helpers import compute_db_tables_report
parser = argparse.ArgumentParser(description = 'Generate... | 28.6 | 86 | 0.800699 | 93 | 572 | 4.655914 | 0.408602 | 0.069284 | 0.076212 | 0.096998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001969 | 0.111888 | 572 | 20 | 87 | 28.6 | 0.850394 | 0 | 0 | 0 | 0 | 0 | 0.137871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
abbf46fa25fd086b8bca65ff18881e78ac0f5cd4 | 3,325 | py | Python | AnnotationTools/ui_mainwindow.py | upzheng/Electrocardio-Panorama | 258e545b22e910bd75047f9011970ff16c50766f | [
"MIT"
] | 33 | 2021-05-06T06:44:11.000Z | 2022-03-25T06:20:26.000Z | AnnotationTools/ui_mainwindow.py | upzheng/Electrocardio-Panorama | 258e545b22e910bd75047f9011970ff16c50766f | [
"MIT"
] | 3 | 2021-10-08T09:15:42.000Z | 2022-03-29T02:47:02.000Z | AnnotationTools/ui_mainwindow.py | upzheng/Electrocardio-Panorama | 258e545b22e910bd75047f9011970ff16c50766f | [
"MIT"
] | 5 | 2021-06-09T11:01:46.000Z | 2022-02-25T13:46:01.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow)... | 41.049383 | 74 | 0.68782 | 335 | 3,325 | 6.767164 | 0.259701 | 0.077636 | 0.09925 | 0.11513 | 0.176886 | 0.086458 | 0.086458 | 0 | 0 | 0 | 0 | 0.021986 | 0.206617 | 3,325 | 80 | 75 | 41.5625 | 0.837377 | 0.055338 | 0 | 0 | 1 | 0 | 0.055992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.018182 | 0 | 0.072727 | 0 | 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 |
abbf6d3d426b6d7d16a5f17e1a9a7c7b90ee3a81 | 1,972 | py | Python | typeidea/blog/admin.py | IchLiebeDeutsch/typeidea | d693b33be62fa1b5ded8679c30474379e6b68289 | [
"MIT"
] | null | null | null | typeidea/blog/admin.py | IchLiebeDeutsch/typeidea | d693b33be62fa1b5ded8679c30474379e6b68289 | [
"MIT"
] | null | null | null | typeidea/blog/admin.py | IchLiebeDeutsch/typeidea | d693b33be62fa1b5ded8679c30474379e6b68289 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Post, Category, Tag
from typeidea.custom_site import custom_site
from django.utils.html import format_html
from django.core.urlresolvers import reverse
from .adminforms import PostAdminForm
from typeide... | 28.57971 | 87 | 0.625761 | 209 | 1,972 | 5.679426 | 0.473684 | 0.042123 | 0.035383 | 0.04802 | 0.058972 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001325 | 0.234787 | 1,972 | 68 | 88 | 29 | 0.785288 | 0.038032 | 0 | 0.038462 | 0 | 0 | 0.17099 | 0.013235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.153846 | 0.019231 | 0.634615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
abc1c692c3929b565a7b1a5ed1ebd101636a7dfc | 917 | py | Python | src/optimizer.py | Chizuchizu/riadd | c3f55aebc0f582d9fa55dc517b1489963cf0506f | [
"MIT"
] | 1 | 2021-09-24T09:10:19.000Z | 2021-09-24T09:10:19.000Z | src/optimizer.py | Chizuchizu/riadd | c3f55aebc0f582d9fa55dc517b1489963cf0506f | [
"MIT"
] | null | null | null | src/optimizer.py | Chizuchizu/riadd | c3f55aebc0f582d9fa55dc517b1489963cf0506f | [
"MIT"
] | null | null | null | from adabelief_pytorch import AdaBelief
import torch_optimizer
from torch import optim
from src.sam import SAM
__OPTIMIZERS__ = {
"AdaBelief": AdaBelief,
"RAdam": torch_optimizer.RAdam,
"SAM": SAM
}
def get_optimizer(cfg, model):
optimizer_name = cfg.optimizer.name
if optimizer_name == "SAM":
... | 32.75 | 96 | 0.718648 | 106 | 917 | 5.764151 | 0.245283 | 0.212766 | 0.111293 | 0.081833 | 0.219313 | 0.1473 | 0.1473 | 0 | 0 | 0 | 0 | 0 | 0.189749 | 917 | 27 | 97 | 33.962963 | 0.822342 | 0 | 0 | 0.090909 | 0 | 0 | 0.02181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
abd1a0d1c530a3a87844121f2c357a62db35cdcc | 222 | py | Python | eeyore/linalg/is_pos_def.py | papamarkou/eeyore | 4cd9b5a619cd095035aa93f348d1c937629aa8a3 | [
"MIT"
] | 6 | 2020-04-22T18:56:46.000Z | 2021-09-09T15:57:48.000Z | eeyore/linalg/is_pos_def.py | papamarkou/eeyore | 4cd9b5a619cd095035aa93f348d1c937629aa8a3 | [
"MIT"
] | 19 | 2019-11-14T21:22:21.000Z | 2020-10-31T16:18:36.000Z | eeyore/linalg/is_pos_def.py | scidom/eeyore | 4cd9b5a619cd095035aa93f348d1c937629aa8a3 | [
"MIT"
] | null | null | null | import torch
def is_pos_def(x):
if torch.equal(x, x.t()):
try:
torch.linalg.cholesky(x)
return True
except RuntimeError:
return False
else:
return False
| 18.5 | 36 | 0.527027 | 27 | 222 | 4.259259 | 0.666667 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.391892 | 222 | 11 | 37 | 20.181818 | 0.851852 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.5 | 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 |
abd420f2267347251a694b1bfd547610c516f3ad | 312 | py | Python | barbeque/shortcuts.py | moccu/barbeque | 6f18ef67162763bb9c33f73ad6af7f20e2d08b86 | [
"BSD-3-Clause"
] | 5 | 2015-04-15T08:56:14.000Z | 2020-04-10T00:02:41.000Z | barbeque/shortcuts.py | moccu/barbeque | 6f18ef67162763bb9c33f73ad6af7f20e2d08b86 | [
"BSD-3-Clause"
] | 22 | 2015-03-11T13:38:44.000Z | 2018-12-04T17:01:23.000Z | barbeque/shortcuts.py | moccu/barbeque | 6f18ef67162763bb9c33f73ad6af7f20e2d08b86 | [
"BSD-3-Clause"
] | 3 | 2015-10-01T13:20:08.000Z | 2018-04-18T09:04:14.000Z | from django.shortcuts import _get_queryset
def get_object_or_none(klass, *args, **kwargs):
"""Return an object or ``None`` if the object doesn't exist."""
queryset = _get_queryset(klass)
try:
return queryset.get(*args, **kwargs)
except queryset.model.DoesNotExist:
return None
| 26 | 67 | 0.682692 | 41 | 312 | 5.02439 | 0.585366 | 0.106796 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 312 | 11 | 68 | 28.363636 | 0.830645 | 0.182692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
abe9d3c10346062d383e0aa68c937ccb03572841 | 3,690 | py | Python | client/configuration_monitor.py | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | 1 | 2020-08-12T14:33:46.000Z | 2020-08-12T14:33:46.000Z | client/configuration_monitor.py | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | null | null | null | client/configuration_monitor.py | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | null | null | null | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
import logging
import os
from logging import Logger
from typing import Any, Dict, List
from .analysis_directory import AnalysisDirec... | 36.9 | 88 | 0.617615 | 380 | 3,690 | 5.873684 | 0.328947 | 0.053315 | 0.034946 | 0.045699 | 0.238351 | 0.169355 | 0.169355 | 0.169355 | 0.169355 | 0.129032 | 0 | 0.004598 | 0.292683 | 3,690 | 99 | 89 | 37.272727 | 0.850575 | 0.191057 | 0 | 0.115942 | 0 | 0 | 0.147069 | 0.015427 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.057971 | false | 0 | 0.130435 | 0.014493 | 0.231884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
abf407fd28a28e2338df8c38ec21029eda6cd5ab | 280 | py | Python | setup.py | magamba/dreamerv2 | ad7d54e256a03378bfd483e8a4c389ab2b444078 | [
"MIT"
] | 97 | 2021-07-08T07:05:22.000Z | 2022-03-29T11:47:49.000Z | setup.py | magamba/dreamerv2 | ad7d54e256a03378bfd483e8a4c389ab2b444078 | [
"MIT"
] | 2 | 2021-09-01T09:37:07.000Z | 2022-01-28T15:59:54.000Z | setup.py | magamba/dreamerv2 | ad7d54e256a03378bfd483e8a4c389ab2b444078 | [
"MIT"
] | 14 | 2021-07-08T07:51:47.000Z | 2022-03-30T14:58:54.000Z | import setuptools
setuptools.setup(
name="dreamerv2",
version="1.0.0",
description=(
"Mastering Atari with Discrete World Models"
),
license="MIT License",
url="https://github.com/RajGhugare19/dreamerv2",
packages=setuptools.find_packages(),
) | 23.333333 | 52 | 0.671429 | 30 | 280 | 6.233333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030973 | 0.192857 | 280 | 12 | 53 | 23.333333 | 0.79646 | 0 | 0 | 0 | 0 | 0 | 0.384342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
abfe8ce577403fbf8e0c6407b25deeee74959716 | 746 | py | Python | backend/app/models/episode.py | flsworld/comment-rick-n-morty | fdab96ca5d14fedd2428fbdad7e49ec8e31b4ddd | [
"MIT"
] | null | null | null | backend/app/models/episode.py | flsworld/comment-rick-n-morty | fdab96ca5d14fedd2428fbdad7e49ec8e31b4ddd | [
"MIT"
] | null | null | null | backend/app/models/episode.py | flsworld/comment-rick-n-morty | fdab96ca5d14fedd2428fbdad7e49ec8e31b4ddd | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Date
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm import relationship
from app.db.session import Base
from app.models import CharacterEpisode
class Episode(Base):
__tablename__ = "episode"
id = Column(Integer, primary_key=T... | 29.84 | 75 | 0.738606 | 83 | 746 | 6.481928 | 0.493976 | 0.078067 | 0.066915 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170241 | 746 | 24 | 76 | 31.083333 | 0.869144 | 0 | 0 | 0 | 0 | 0 | 0.088472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f9eec801abfb9ea3e25280ad549ebfcdede5e14b | 6,599 | py | Python | HSPpipe/callall.py | fedhere/getlucky | 1dec967fc6f771060435842b01580bd05fcfcd08 | [
"MIT"
] | null | null | null | HSPpipe/callall.py | fedhere/getlucky | 1dec967fc6f771060435842b01580bd05fcfcd08 | [
"MIT"
] | null | null | null | HSPpipe/callall.py | fedhere/getlucky | 1dec967fc6f771060435842b01580bd05fcfcd08 | [
"MIT"
] | null | null | null | import sys,os,time
import pyfits as PF
sys.path.append("../LIHSPcommon")
from myutils import mygetenv,readconfig, mymkdir, mjd
speedyout=mygetenv('SPEEDYOUT')
def readconfig(configfile):
f = open(configfile, 'r')
config_string = f.read()
parameters = eval(config_string)
return parameters
#unspool
de... | 30.693023 | 151 | 0.553872 | 811 | 6,599 | 4.499383 | 0.162762 | 0.016443 | 0.009866 | 0.042203 | 0.57687 | 0.545081 | 0.484242 | 0.484242 | 0.411072 | 0.327761 | 0 | 0.008858 | 0.230186 | 6,599 | 214 | 152 | 30.836449 | 0.709449 | 0.016366 | 0 | 0.480519 | 0 | 0.038961 | 0.26008 | 0.074422 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058442 | null | null | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e605721db54560e70eed0abd35394d5616cbc50e | 732 | py | Python | tests/setup.py | rdmolony/berpublicsearch | 0daaeec8f5644b7495fbae6c88878815ac50f8b1 | [
"MIT"
] | null | null | null | tests/setup.py | rdmolony/berpublicsearch | 0daaeec8f5644b7495fbae6c88878815ac50f8b1 | [
"MIT"
] | null | null | null | tests/setup.py | rdmolony/berpublicsearch | 0daaeec8f5644b7495fbae6c88878815ac50f8b1 | [
"MIT"
] | 1 | 2020-12-09T14:38:44.000Z | 2020-12-09T14:38:44.000Z | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="geopandas",
version=versioneer.get_version(),
description="Geographic pandas extensions",
license="BSD",
author="GeoPandas contributors",
author_email="kjordahl@alum.mit.ed... | 25.241379 | 47 | 0.661202 | 74 | 732 | 6.405405 | 0.621622 | 0.046414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.213115 | 732 | 29 | 48 | 25.241379 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.282401 | 0.057299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.148148 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e608b7ddf24cdec8414c43810f41da2fe38a2222 | 254 | py | Python | Misc/Join Function.py | Jigyanshu17/Python-Ka-Saara-Gyaan | d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b | [
"Apache-2.0"
] | null | null | null | Misc/Join Function.py | Jigyanshu17/Python-Ka-Saara-Gyaan | d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b | [
"Apache-2.0"
] | null | null | null | Misc/Join Function.py | Jigyanshu17/Python-Ka-Saara-Gyaan | d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b | [
"Apache-2.0"
] | null | null | null | # list = ["John","Cena","Randy","Orton","Sheamus","Khali","Jinder mahal"]
# # for item in list:
# # print(item,"and",end=" ")
#
#
# a = " , ".join(list)
# print(a , " other are wwe superstars")
a = 123
def fun():
a = []
print(type(a)) | 21.166667 | 74 | 0.511811 | 34 | 254 | 3.823529 | 0.735294 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.232283 | 254 | 12 | 75 | 21.166667 | 0.651282 | 0.712598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e60a34b1b14cdfa647f05ce1f310932d2ec2990f | 727 | py | Python | linuxmachinebeta/view/api/serializers.py | linux-machine/linuxmachinebeta | 78225eb8fdf4f0850f0c091c102e9da7876cfeed | [
"MIT"
] | null | null | null | linuxmachinebeta/view/api/serializers.py | linux-machine/linuxmachinebeta | 78225eb8fdf4f0850f0c091c102e9da7876cfeed | [
"MIT"
] | null | null | null | linuxmachinebeta/view/api/serializers.py | linux-machine/linuxmachinebeta | 78225eb8fdf4f0850f0c091c102e9da7876cfeed | [
"MIT"
] | null | null | null | from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
from linuxmachinebeta.view.models import ServiceView
from linuxmachinebeta.services.models import Service
class ServiceViewSerializer(serializers.ModelSerializer):
service = serializers.PrimaryKeyRelatedField(queryset=... | 31.608696 | 94 | 0.723521 | 74 | 727 | 7.027027 | 0.635135 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196699 | 727 | 22 | 95 | 33.045455 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.07978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e60ec58b2ce1711a3ae48aa879c364c8f5bbd8ed | 1,819 | py | Python | flexget/plugins/operate/disable_builtins.py | Crupuk/Flexget | 0ede246fd4b90e3cd75120ba13746187e11968d2 | [
"MIT"
] | null | null | null | flexget/plugins/operate/disable_builtins.py | Crupuk/Flexget | 0ede246fd4b90e3cd75120ba13746187e11968d2 | [
"MIT"
] | null | null | null | flexget/plugins/operate/disable_builtins.py | Crupuk/Flexget | 0ede246fd4b90e3cd75120ba13746187e11968d2 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
import logging
from flexget import plugin
from flexget.plugin import priority, register_plugin, plugins
log = logging.getLogger('builtins')
def all_builtins():
"""Helper function to return an iterator over all builtin plugins."""
return (plug... | 31.912281 | 114 | 0.635514 | 227 | 1,819 | 4.969163 | 0.400881 | 0.085106 | 0.029255 | 0.024823 | 0.129433 | 0.054965 | 0.054965 | 0 | 0 | 0 | 0 | 0.005155 | 0.253436 | 1,819 | 56 | 115 | 32.482143 | 0.825479 | 0.157229 | 0 | 0.131579 | 0 | 0 | 0.099934 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.131579 | false | 0 | 0.105263 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e6110fb5aebe6c4e30a08320d8f4db8ec2cd0675 | 5,585 | py | Python | warehouse/legacy/pypi.py | hickford/warehouse | 87d3403b3e09d1213177133744f20430fca030ca | [
"Apache-2.0"
] | 1 | 2019-01-31T02:44:40.000Z | 2019-01-31T02:44:40.000Z | warehouse/legacy/pypi.py | hickford/warehouse | 87d3403b3e09d1213177133744f20430fca030ca | [
"Apache-2.0"
] | 1 | 2016-09-14T00:57:23.000Z | 2016-09-14T00:57:23.000Z | warehouse/legacy/pypi.py | hickford/warehouse | 87d3403b3e09d1213177133744f20430fca030ca | [
"Apache-2.0"
] | 1 | 2020-11-05T09:46:12.000Z | 2020-11-05T09:46:12.000Z | # Copyright 2013 Donald Stufft
#
# 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, so... | 32.47093 | 79 | 0.678782 | 752 | 5,585 | 4.949468 | 0.31117 | 0.03842 | 0.024181 | 0.022837 | 0.328049 | 0.288823 | 0.27727 | 0.27727 | 0.261687 | 0.221924 | 0 | 0.006865 | 0.217547 | 5,585 | 171 | 80 | 32.660819 | 0.844851 | 0.259803 | 0 | 0.266667 | 0 | 0 | 0.135739 | 0.024791 | 0 | 0 | 0 | 0.011696 | 0 | 1 | 0.066667 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e6114261144a12a41fb4efcc5ddbea6d64092b0e | 235 | py | Python | CCF/CSP/2013/13123.py | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 1 | 2019-05-04T10:28:32.000Z | 2019-05-04T10:28:32.000Z | CCF/CSP/2013/13123.py | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | null | null | null | CCF/CSP/2013/13123.py | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 3 | 2020-12-31T04:36:38.000Z | 2021-07-25T07:39:31.000Z | n = int(input())
h = list(map(int, input().split()))
ans = 0
for i in range(n):
min_height = h[i]
for j in range(i, n):
min_height = min(min_height, h[j])
ans = max(ans, (j - i + 1) * min_height)
print(ans)
| 16.785714 | 48 | 0.53617 | 43 | 235 | 2.837209 | 0.44186 | 0.295082 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.276596 | 235 | 13 | 49 | 18.076923 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
e6178cef72653b4d31903cbc689fc6ee9f5c564b | 791 | py | Python | config.py | Anonymous78/Registration-System | 967c8a1c28f5c344663c5b27e0087a70c6e9f193 | [
"MIT"
] | null | null | null | config.py | Anonymous78/Registration-System | 967c8a1c28f5c344663c5b27e0087a70c6e9f193 | [
"MIT"
] | null | null | null | config.py | Anonymous78/Registration-System | 967c8a1c28f5c344663c5b27e0087a70c6e9f193 | [
"MIT"
] | null | null | null | # config.py
"""
Module containing the configurations for different environments
"""
class Config(object):
"""Common configurations"""
# Put any configurations common across all environments
SESSION_COOKIE_NAME = "session"
TESTING = False
class DevelopmentConfig(Config):
"""Develo... | 24.71875 | 94 | 0.700379 | 75 | 791 | 7.28 | 0.56 | 0.062271 | 0.07326 | 0.080586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221239 | 791 | 31 | 95 | 25.516129 | 0.886364 | 0.394437 | 0 | 0 | 0 | 0 | 0.144893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e61fbc67916c9bc820ff372853f90c353dd34114 | 2,074 | py | Python | SIS/forms.py | toHarsh/Management-System | 3ae86ca234c9d97c50d32c5378c24a6e189dfbb1 | [
"MIT"
] | 2 | 2021-01-03T00:36:50.000Z | 2021-03-20T19:35:04.000Z | SIS/forms.py | toHarsh/sRecords | 3ae86ca234c9d97c50d32c5378c24a6e189dfbb1 | [
"MIT"
] | null | null | null | SIS/forms.py | toHarsh/sRecords | 3ae86ca234c9d97c50d32c5378c24a6e189dfbb1 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, PasswordField
from wtforms.validators import Email,DataRequired,Length, ValidationError
from SIS.models import Info
import email_validator
class sisForm(FlaskForm):
rollNo = StringField('Roll No',
validators=[Data... | 42.326531 | 89 | 0.622469 | 225 | 2,074 | 5.693333 | 0.248889 | 0.154567 | 0.131148 | 0.145199 | 0.624512 | 0.516784 | 0.393443 | 0.271663 | 0.12178 | 0 | 0 | 0.011726 | 0.259884 | 2,074 | 49 | 90 | 42.326531 | 0.822801 | 0 | 0 | 0.348837 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.046512 | 0.116279 | 0 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6226a09eae7248b3b9e0795077bea2c3c4bee0b | 326 | py | Python | tests/viewmixins/forms.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | tests/viewmixins/forms.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | tests/viewmixins/forms.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from django import forms
class JsonMixinForm(forms.Form):
boolean = forms.BooleanField()
char = forms.CharField(
min_length=3,
max_length=6)
integer = forms.IntegerField(
min_value=3,
max_valu... | 18.111111 | 39 | 0.619632 | 37 | 326 | 5.216216 | 0.675676 | 0.041451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021459 | 0.285276 | 326 | 17 | 40 | 19.176471 | 0.806867 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e63ee003e51163f7d4d5d1b329954e65012acb13 | 4,307 | py | Python | tests/test_remote_pdb.py | MatthewWilkes/python-remote-pdb | ce1477a565b1b3cb42a018900c36eb17891b8a53 | [
"BSD-2-Clause"
] | null | null | null | tests/test_remote_pdb.py | MatthewWilkes/python-remote-pdb | ce1477a565b1b3cb42a018900c36eb17891b8a53 | [
"BSD-2-Clause"
] | null | null | null | tests/test_remote_pdb.py | MatthewWilkes/python-remote-pdb | ce1477a565b1b3cb42a018900c36eb17891b8a53 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import print_function
import logging
import os
import re
import socket
import sys
import time
from process_tests import TestProcess
from process_tests import TestSocket
from process_tests import dump_on_error
from process_tests import wait_for_strings
from remote_pdb import set_trace
TIMEOUT = int(o... | 39.87963 | 100 | 0.572556 | 505 | 4,307 | 4.659406 | 0.211881 | 0.050574 | 0.101147 | 0.068848 | 0.684233 | 0.662983 | 0.662983 | 0.645134 | 0.645134 | 0.630259 | 0 | 0.008221 | 0.29394 | 4,307 | 107 | 101 | 40.252336 | 0.765538 | 0 | 0 | 0.5 | 0 | 0.011111 | 0.175064 | 0.01068 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.055556 | false | 0 | 0.133333 | 0 | 0.188889 | 0.122222 | 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 |
e6403507bcfc481de12d6b5767c625786a5075b8 | 6,341 | py | Python | test/gends.py | jlinoff/cmpds | 3a462ee95eee902e6135f6289da88c3b8dd69cc7 | [
"MIT"
] | null | null | null | test/gends.py | jlinoff/cmpds | 3a462ee95eee902e6135f6289da88c3b8dd69cc7 | [
"MIT"
] | 1 | 2016-12-22T06:02:15.000Z | 2017-01-11T02:22:05.000Z | test/gends.py | jlinoff/cmpds | 3a462ee95eee902e6135f6289da88c3b8dd69cc7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Generate random floating point numbers in a range for testing.
It is used to create datasets to test cmpds.
You can decorate the datasets with a header and record counts to
make them easier to read. That works because cmpds allows you
to specify which column to read in the dataset file.
Typ... | 27.450216 | 85 | 0.528466 | 792 | 6,341 | 4.195707 | 0.320707 | 0.031297 | 0.035811 | 0.025278 | 0.269034 | 0.226602 | 0.210954 | 0.198917 | 0.179055 | 0.13211 | 0 | 0.071794 | 0.351995 | 6,341 | 230 | 86 | 27.569565 | 0.736919 | 0.15313 | 0 | 0.179487 | 1 | 0 | 0.420952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044872 | false | 0 | 0.038462 | 0 | 0.096154 | 0.057692 | 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 |
e640dab957af2824b2c0cc85fcfa9c0baf31dd9c | 1,140 | py | Python | prep_and_learning/python/arrays/arrayops.py | adityaka/misc_scripts | b28f71eb9b7eb429b44aeb9cb34f12355023125e | [
"BSD-3-Clause"
] | 1 | 2018-01-16T18:21:07.000Z | 2018-01-16T18:21:07.000Z | prep_and_learning/python/arrays/arrayops.py | adityaka/misc_scripts | b28f71eb9b7eb429b44aeb9cb34f12355023125e | [
"BSD-3-Clause"
] | 1 | 2017-05-09T07:13:52.000Z | 2017-06-12T05:24:08.000Z | prep_and_learning/python/arrays/arrayops.py | adityaka/misc_scripts | b28f71eb9b7eb429b44aeb9cb34f12355023125e | [
"BSD-3-Clause"
] | 1 | 2021-09-03T14:17:00.000Z | 2021-09-03T14:17:00.000Z | from typing import List
class ArrayOps(object):
def __init__(self, input_array:List[int] ):
self._input = input_array
def _validate_index(self, index):
assert (index > len(self._input), "Index can't be greater than length")
def remove_at(self, index):
self._validate_index(index)
... | 29.230769 | 79 | 0.557018 | 155 | 1,140 | 3.83871 | 0.283871 | 0.257143 | 0.134454 | 0.055462 | 0.322689 | 0.322689 | 0.22521 | 0.22521 | 0.22521 | 0.22521 | 0 | 0.007813 | 0.326316 | 1,140 | 38 | 80 | 30 | 0.766927 | 0 | 0 | 0.25 | 0 | 0 | 0.029825 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.1875 | false | 0 | 0.03125 | 0 | 0.28125 | 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 |
e64178aa2d94b6c99045ca469186cc7ddc86d0ed | 2,365 | py | Python | pastebin.py | Optixal/pastebin-wrapper | fdd1019abe0af778c0e1b12ca21747a02efa01b6 | [
"MIT"
] | 1 | 2017-12-23T22:19:05.000Z | 2017-12-23T22:19:05.000Z | pastebin.py | Optixal/pastebin-wrapper | fdd1019abe0af778c0e1b12ca21747a02efa01b6 | [
"MIT"
] | 1 | 2021-06-01T22:03:48.000Z | 2021-06-01T22:03:48.000Z | pastebin.py | Optixal/pastebin-wrapper | fdd1019abe0af778c0e1b12ca21747a02efa01b6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Light Pastebin Wrapper
# By Optixal
# Pastebin Documentation: https://pastebin.com/api
import requests, os
# Precedence of Confidential Information:
# Environment Variable > Function Argument > Constant Defined Here
# Recommended: Set confidential information as environment variables with "expo... | 37.539683 | 201 | 0.690063 | 321 | 2,365 | 4.803738 | 0.314642 | 0.046693 | 0.054475 | 0.036965 | 0.332036 | 0.332036 | 0.268482 | 0.268482 | 0.268482 | 0.268482 | 0 | 0.005848 | 0.204651 | 2,365 | 62 | 202 | 38.145161 | 0.813929 | 0.261311 | 0 | 0.410256 | 0 | 0 | 0.183756 | 0.02477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.025641 | 0.051282 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6498be95355b97bca66d4c31560f2605ddeea12 | 2,902 | py | Python | lenet5/mnist_predict.py | fubiye/machine-learning | 162076bb8dcb534a97f4516794d86032af07c029 | [
"MIT"
] | null | null | null | lenet5/mnist_predict.py | fubiye/machine-learning | 162076bb8dcb534a97f4516794d86032af07c029 | [
"MIT"
] | null | null | null | lenet5/mnist_predict.py | fubiye/machine-learning | 162076bb8dcb534a97f4516794d86032af07c029 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 7 21:27:18 2019
@author: biyef
"""
from PIL import Image, ImageFilter
import tensorflow as tf
import matplotlib.pyplot as plt
import mnist_lenet5_backward
import mnist_lenet5_forward
import numpy as np
def imageprepare():
im = Image.open('D:/workspace/machine-learn... | 37.205128 | 90 | 0.669883 | 393 | 2,902 | 4.712468 | 0.307888 | 0.13067 | 0.184665 | 0.099352 | 0.400108 | 0.37527 | 0.37527 | 0.281857 | 0.281857 | 0.281857 | 0 | 0.032383 | 0.20193 | 2,902 | 78 | 91 | 37.205128 | 0.767271 | 0.512405 | 0 | 0.114286 | 0 | 0 | 0.050182 | 0.037818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.171429 | 0 | 0.228571 | 0.057143 | 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 |
e64d73af6d1d72f5188f23aade3a7a240507e467 | 11,624 | py | Python | master.py | MobileRoboticsSkoltech/bandeja-wrapper | 3e296efbce2b80be596596a9827977aad430e3e6 | [
"Apache-2.0"
] | null | null | null | master.py | MobileRoboticsSkoltech/bandeja-wrapper | 3e296efbce2b80be596596a9827977aad430e3e6 | [
"Apache-2.0"
] | null | null | null | master.py | MobileRoboticsSkoltech/bandeja-wrapper | 3e296efbce2b80be596596a9827977aad430e3e6 | [
"Apache-2.0"
] | null | null | null | import time
from src.RemoteControl import RemoteControl
from concurrent.futures import ThreadPoolExecutor
import subprocess
import rospy
from sensor_msgs.msg import Imu, CameraInfo, TimeReference
import numpy as np
import pandas as pd
from io import StringIO
from src.TimeSync import TimeSync2
import matplotlib as mpl
... | 34.906907 | 182 | 0.663025 | 1,634 | 11,624 | 4.413709 | 0.208078 | 0.033278 | 0.022185 | 0.024404 | 0.309623 | 0.227815 | 0.143234 | 0.097754 | 0.071547 | 0.061841 | 0 | 0.02164 | 0.224794 | 11,624 | 332 | 183 | 35.012048 | 0.778715 | 0.142292 | 0 | 0.133028 | 0 | 0 | 0.118263 | 0.014879 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004587 | 0.073395 | null | null | 0.09633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e64ddbd9053a357deda37d89225bd8de38546e6a | 6,679 | py | Python | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_conn.py | alialnu/trex-core | ae4ab05a6215fd0a859adde40dac6afa8bf0f950 | [
"Apache-2.0"
] | null | null | null | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_conn.py | alialnu/trex-core | ae4ab05a6215fd0a859adde40dac6afa8bf0f950 | [
"Apache-2.0"
] | null | null | null | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_conn.py | alialnu/trex-core | ae4ab05a6215fd0a859adde40dac6afa8bf0f950 | [
"Apache-2.0"
] | null | null | null |
from .trex_stl_types import *
from .trex_stl_jsonrpc_client import JsonRpcClient, BatchMessage, ErrNo as JsonRpcErrNo
from .trex_stl_async_client import CTRexAsyncClient
import time
import signal
import os
############################ RPC layer #############################
############################ ... | 27.599174 | 135 | 0.538554 | 759 | 6,679 | 4.586298 | 0.249012 | 0.032175 | 0.041367 | 0.027578 | 0.230968 | 0.190463 | 0.131571 | 0.111462 | 0.096524 | 0.026429 | 0 | 0.006028 | 0.354245 | 6,679 | 241 | 136 | 27.713693 | 0.801067 | 0.085342 | 0 | 0.262626 | 0 | 0 | 0.049957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | 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 |
e65302f3635d43b8dbd0eb1ec9c6421dcfbb40cf | 2,655 | py | Python | botbot/apps/bots/admin.py | Reception123/IRCLogBot | c2c02968f17a3c765a3b7cb0f7c0da6bcc4361ff | [
"MIT"
] | 5 | 2018-01-01T02:47:19.000Z | 2021-08-30T01:46:18.000Z | botbot/apps/bots/admin.py | Reception123/IRCLogBot | c2c02968f17a3c765a3b7cb0f7c0da6bcc4361ff | [
"MIT"
] | 3 | 2016-01-13T20:41:06.000Z | 2017-03-13T18:21:38.000Z | botbot/apps/bots/admin.py | Reception123/IRCLogBot | c2c02968f17a3c765a3b7cb0f7c0da6bcc4361ff | [
"MIT"
] | 4 | 2017-12-03T17:43:50.000Z | 2018-01-05T16:40:43.000Z | """Django admin configuration for the bot objects.
"""
import redis
from django import forms
from django.conf import settings
from django.contrib import admin
from django.forms.models import BaseInlineFormSet
from . import models
class PluginFormset(BaseInlineFormSet):
def __init__(self, *args, **kwargs):
... | 28.858696 | 107 | 0.701695 | 296 | 2,655 | 6.114865 | 0.408784 | 0.035912 | 0.037569 | 0.038122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001837 | 0.180038 | 2,655 | 91 | 108 | 29.175824 | 0.829582 | 0.057627 | 0 | 0.033333 | 0 | 0 | 0.123387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0 | 0.1 | 0.066667 | 0.733333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e654c90fb4e33ce7e8aa223e5611a86058ff93b8 | 1,086 | py | Python | Algorithms/Divide-and-Conquer/Python/main.py | KumarjitDas/Algorithms | aec0b7b853bb4a2f4d81a6a04236402baf2af7f7 | [
"MIT"
] | null | null | null | Algorithms/Divide-and-Conquer/Python/main.py | KumarjitDas/Algorithms | aec0b7b853bb4a2f4d81a6a04236402baf2af7f7 | [
"MIT"
] | null | null | null | Algorithms/Divide-and-Conquer/Python/main.py | KumarjitDas/Algorithms | aec0b7b853bb4a2f4d81a6a04236402baf2af7f7 | [
"MIT"
] | null | null | null | from typing import List
def arraysum(array: List[int]) -> int:
""" Get the sum of all the elements in the array.
arraysum
========
The `arraysum` function takes an array and returns the sum of all of its
elements using divide and concuer method.
Parameters
----------
array: List[int]
... | 31.941176 | 118 | 0.441989 | 117 | 1,086 | 4.034188 | 0.495727 | 0.057203 | 0.050847 | 0.04661 | 0.122881 | 0.122881 | 0.122881 | 0.122881 | 0 | 0 | 0 | 0.017606 | 0.47698 | 1,086 | 33 | 119 | 32.909091 | 0.81338 | 0.443831 | 0 | 0 | 0 | 0 | 0.079566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e655c2f64a294c936d531ba4a970f5a05245c736 | 2,341 | py | Python | detokenizefrag.py | aycock/mh | 72cc39619a6978a923a30c47652b06444239b884 | [
"MIT"
] | null | null | null | detokenizefrag.py | aycock/mh | 72cc39619a6978a923a30c47652b06444239b884 | [
"MIT"
] | null | null | null | detokenizefrag.py | aycock/mh | 72cc39619a6978a923a30c47652b06444239b884 | [
"MIT"
] | null | null | null | # Python < 3
# see LICENSE file for licensing information
# Partial detokenization of LISA assembler fragments found in a binary file.
import sys
TOKENS = {
# reversed by comparing assembly fragments to Mystery House disasm
# later verified against LISA decoder at
# https://github.com/fadden/ciderpress/blob/maste... | 23.178218 | 76 | 0.609996 | 353 | 2,341 | 4.022663 | 0.538244 | 0.035211 | 0.014789 | 0.025352 | 0.11831 | 0.094366 | 0.094366 | 0.094366 | 0.094366 | 0.094366 | 0 | 0.047324 | 0.241777 | 2,341 | 100 | 77 | 23.41 | 0.752676 | 0.415634 | 0 | 0.171875 | 0 | 0 | 0.087444 | 0 | 0 | 0 | 0.071749 | 0 | 0 | 0 | null | null | 0 | 0.015625 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6593c652414c9ba6c3dbf49023153f9a6a6b1e9 | 621 | py | Python | scripts/print_trace.py | master-coro/gantt-trampoline | 987304ffb73628896219c8b7b5b9e981960cafff | [
"MIT"
] | 4 | 2020-05-04T11:28:44.000Z | 2022-03-30T08:43:49.000Z | scripts/print_trace.py | master-coro/gantt-trampoline | 987304ffb73628896219c8b7b5b9e981960cafff | [
"MIT"
] | 12 | 2020-04-27T11:40:29.000Z | 2020-05-08T15:45:51.000Z | scripts/print_trace.py | master-coro/gantt-trampoline | 987304ffb73628896219c8b7b5b9e981960cafff | [
"MIT"
] | 1 | 2020-05-05T15:40:37.000Z | 2020-05-05T15:40:37.000Z | import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
from lib.Tasks import TraceGenerator
import argparse
parser = argparse.ArgumentParser(description="Print trace from a Trampoline application.")
parser.add_argument('--trace_path', type=str, default='data/trace.json... | 47.769231 | 139 | 0.785829 | 91 | 621 | 5.21978 | 0.428571 | 0.046316 | 0.063158 | 0.075789 | 0.210526 | 0.117895 | 0.117895 | 0 | 0 | 0 | 0 | 0 | 0.096618 | 621 | 13 | 140 | 47.769231 | 0.846702 | 0 | 0 | 0 | 0 | 0 | 0.311897 | 0.040193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e65e6d08d10db78b1eacf73032444c9742855761 | 3,839 | py | Python | sdk/python/pulumi_aws/route53/zone_association.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/route53/zone_association.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/route53/zone_association.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables
class ZoneAssociation(pulumi.CustomRe... | 50.513158 | 714 | 0.701485 | 507 | 3,839 | 5.08284 | 0.315582 | 0.018626 | 0.024835 | 0.031044 | 0.308498 | 0.241754 | 0.189367 | 0.189367 | 0.128056 | 0.096236 | 0 | 0.005005 | 0.219328 | 3,839 | 75 | 715 | 51.186667 | 0.854855 | 0.437353 | 0 | 0 | 1 | 0 | 0.201939 | 0.023156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.128205 | 0.051282 | 0.358974 | 0 | 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 |
e6616a8a396b2a13721e78e3609271806bb14c70 | 837 | py | Python | project/migrations/0004_auto_20191027_2049.py | Belie06Loryn/Project_Post | 68997d6608c7c3f24b3985497da5b53c8c58785c | [
"Unlicense"
] | null | null | null | project/migrations/0004_auto_20191027_2049.py | Belie06Loryn/Project_Post | 68997d6608c7c3f24b3985497da5b53c8c58785c | [
"Unlicense"
] | 2 | 2021-06-08T20:31:59.000Z | 2021-09-08T01:22:46.000Z | project/migrations/0004_auto_20191027_2049.py | Belie06Loryn/Project_Post | 68997d6608c7c3f24b3985497da5b53c8c58785c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-27 18:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project', '0003_voting'),
]
operations = [
m... | 24.617647 | 114 | 0.572282 | 82 | 837 | 5.707317 | 0.573171 | 0.076923 | 0.111111 | 0.145299 | 0.24359 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0.034423 | 0.305854 | 837 | 33 | 115 | 25.363636 | 0.771084 | 0.078853 | 0 | 0.423077 | 1 | 0 | 0.10026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e662d5bf7720275ca8f1a076c478ec82a4ea5ad2 | 1,647 | py | Python | tests/test_vembrane.py | FelixMoelder/vembrane | 42ce7aa709864e00b60968e5a95f060cfa8b6c65 | [
"MIT"
] | null | null | null | tests/test_vembrane.py | FelixMoelder/vembrane | 42ce7aa709864e00b60968e5a95f060cfa8b6c65 | [
"MIT"
] | null | null | null | tests/test_vembrane.py | FelixMoelder/vembrane | 42ce7aa709864e00b60968e5a95f060cfa8b6c65 | [
"MIT"
] | null | null | null | from pathlib import Path
import os
from pysam import VariantFile
import pytest
import yaml
from vembrane import errors
from vembrane import __version__, filter_vcf
CASES = Path(__file__).parent.joinpath("testcases")
def test_version():
assert __version__ == "0.1.0"
@pytest.mark.parametrize(
"testcase", [d... | 29.410714 | 74 | 0.595628 | 180 | 1,647 | 5.277778 | 0.388889 | 0.066316 | 0.056842 | 0.078947 | 0.181053 | 0.181053 | 0.181053 | 0.181053 | 0.181053 | 0.181053 | 0 | 0.002618 | 0.304189 | 1,647 | 55 | 75 | 29.945455 | 0.826353 | 0.081967 | 0 | 0.238095 | 0 | 0 | 0.109416 | 0 | 0 | 0 | 0 | 0.018182 | 0.047619 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e663d98d6ae4c8e628e107a91b6ddc764d8f0a9c | 3,988 | py | Python | tests/test_authLdap.py | kakwa/dnscherry | 22beb77e66b14450441121bc646ae9f9bbedf561 | [
"MIT"
] | 9 | 2015-08-11T14:15:32.000Z | 2021-03-04T16:17:45.000Z | tests/test_authLdap.py | kakwa/dnscherry | 22beb77e66b14450441121bc646ae9f9bbedf561 | [
"MIT"
] | 1 | 2017-03-25T10:34:02.000Z | 2017-03-26T07:54:48.000Z | tests/test_authLdap.py | kakwa/dnscherry | 22beb77e66b14450441121bc646ae9f9bbedf561 | [
"MIT"
] | 3 | 2015-02-05T19:56:06.000Z | 2018-08-07T12:52:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement
from __future__ import unicode_literals
import pytest
import sys
from sets import Set
from dnscherry.auth.modLdap import Auth, CaFileDontExist
import cherrypy
import logging
import ldap
cfg = {
'auth.ldap.module': 'dnscherry.backend.... | 30.914729 | 116 | 0.607823 | 486 | 3,988 | 4.901235 | 0.288066 | 0.047019 | 0.032326 | 0.055835 | 0.461797 | 0.43199 | 0.345928 | 0.334593 | 0.302267 | 0.285474 | 0 | 0.017763 | 0.237713 | 3,988 | 128 | 117 | 31.15625 | 0.765789 | 0.010532 | 0 | 0.485981 | 0 | 0 | 0.251268 | 0.120943 | 0 | 0 | 0 | 0 | 0.028037 | 1 | 0.11215 | false | 0.102804 | 0.084112 | 0 | 0.261682 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05017398a0c59c96e9b21318b0c24d4c8fa1f712 | 221 | py | Python | python/problem6.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | 1 | 2016-05-14T15:58:03.000Z | 2016-05-14T15:58:03.000Z | python/problem6.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | null | null | null | python/problem6.py | shubhamoy/project-euler-solutions | 9af99c4371ff565d5d8b13fe2fbaaafa5a29da51 | [
"MIT"
] | null | null | null | #!/usr/bin/python
sosq = 0
sqos = 0
for i in range(1, 101):
sosq += i*i
sqos += i
diff = (sqos * sqos) - sosq
print "Sum of Squares: ", str(sosq)
print "Squares of Sum: ", str(sqos*sqos)
print "Difference: ", str(diff)
| 20.090909 | 40 | 0.624434 | 39 | 221 | 3.538462 | 0.487179 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.19457 | 221 | 10 | 41 | 22.1 | 0.741573 | 0.072398 | 0 | 0 | 0 | 0 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0501d3d1de8e2cc2be8c008390642f57530559f7 | 221 | py | Python | euler-29.py | TFabijo/euler | 58dc07b9adb236890556ccd5d75ca9dbd2b50df9 | [
"MIT"
] | null | null | null | euler-29.py | TFabijo/euler | 58dc07b9adb236890556ccd5d75ca9dbd2b50df9 | [
"MIT"
] | null | null | null | euler-29.py | TFabijo/euler | 58dc07b9adb236890556ccd5d75ca9dbd2b50df9 | [
"MIT"
] | null | null | null | def različne_potence(a_max,b_max):
stevila = set()
for a in range(2,a_max+1):
for b in range(2,b_max+1):
stevila.add(a**b)
return len(stevila)
različne_potence(100,100)
| 22.1 | 35 | 0.565611 | 36 | 221 | 3.305556 | 0.472222 | 0.252101 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.312217 | 221 | 10 | 36 | 22.1 | 0.717105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
0504926b7c5675ee9164bb0281d2d5e274e5a755 | 4,029 | py | Python | pyPack/html.py | slozano54/projetDNB | 6a7c1373b5c56e7df0c9af3b6d320343fe4955e2 | [
"FTL",
"Linux-OpenIB",
"CECILL-B"
] | 1 | 2021-03-06T09:53:57.000Z | 2021-03-06T09:53:57.000Z | pyPack/html.py | slozano54/projetDNB | 6a7c1373b5c56e7df0c9af3b6d320343fe4955e2 | [
"FTL",
"Linux-OpenIB",
"CECILL-B"
] | null | null | null | pyPack/html.py | slozano54/projetDNB | 6a7c1373b5c56e7df0c9af3b6d320343fe4955e2 | [
"FTL",
"Linux-OpenIB",
"CECILL-B"
] | null | null | null | #!/usr/bin/python3
#-*- coding: utf8 -*-
# @author : Sébastien LOZANO
"""
Génère une page HTML.
"""
pass
# On fait les imports nécessaires selon le contexte
# Pour pouvoir créer un répertoire, ici pour y mettre les fichiers HTML
import os
# On fait les imports nécessaires selon le contexte
# Pour générer les fic... | 39.116505 | 257 | 0.602879 | 524 | 4,029 | 4.543893 | 0.396947 | 0.036959 | 0.031499 | 0.039899 | 0.243595 | 0.233935 | 0.151617 | 0.104998 | 0.068039 | 0 | 0 | 0.01089 | 0.225118 | 4,029 | 103 | 258 | 39.116505 | 0.751762 | 0.185406 | 0 | 0.434783 | 0 | 0 | 0.096591 | 0.02983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.130435 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0508e7f17da3ffa2d75a4e205c2e0a7b3ece2e26 | 177 | py | Python | tests/tests_custom_indicator.py | JustalK/Indicators | 7d90c0c24062b53c3a5b426b5ad77d53f86e107b | [
"MIT"
] | null | null | null | tests/tests_custom_indicator.py | JustalK/Indicators | 7d90c0c24062b53c3a5b426b5ad77d53f86e107b | [
"MIT"
] | null | null | null | tests/tests_custom_indicator.py | JustalK/Indicators | 7d90c0c24062b53c3a5b426b5ad77d53f86e107b | [
"MIT"
] | null | null | null | from src.init import Init
import pytest
def test_file1_method1():
x=5
y=6
assert x+1 == y,"test success"
def test_file1_method2():
x=5
y=6
assert x+1 == y,"test success"
| 14.75 | 31 | 0.694915 | 35 | 177 | 3.4 | 0.485714 | 0.168067 | 0.201681 | 0.067227 | 0.403361 | 0.403361 | 0.403361 | 0.403361 | 0.403361 | 0.403361 | 0 | 0.068493 | 0.175141 | 177 | 11 | 32 | 16.090909 | 0.746575 | 0 | 0 | 0.6 | 0 | 0 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
050fb9d4c9d18e8aca824215c338f186404444e4 | 2,277 | py | Python | chapter_8/produce_permutations.py | prabal1997/uva_judge | 21b26218f308dc6d73c07476b93622d6c0ccbc2d | [
"Unlicense"
] | 1 | 2017-11-02T14:59:01.000Z | 2017-11-02T14:59:01.000Z | chapter_8/produce_permutations.py | prabal1997/uva_judge | 21b26218f308dc6d73c07476b93622d6c0ccbc2d | [
"Unlicense"
] | null | null | null | chapter_8/produce_permutations.py | prabal1997/uva_judge | 21b26218f308dc6d73c07476b93622d6c0ccbc2d | [
"Unlicense"
] | null | null | null | import sys
import math
#NOTE: this program individually generates permutations iteratively
#string to be permuted
input_string = "pineapple";
not_unique = (len(input_string) > len(set(input_string)));
#number of nested loops we need, their starting and ending ranges, and their state
loop_count = len(input_string);
l... | 36.142857 | 113 | 0.678524 | 320 | 2,277 | 4.621875 | 0.315625 | 0.096687 | 0.094659 | 0.064233 | 0.200135 | 0.200135 | 0.16092 | 0.124408 | 0.079784 | 0.079784 | 0 | 0.009643 | 0.225736 | 2,277 | 63 | 114 | 36.142857 | 0.829268 | 0.290294 | 0 | 0 | 1 | 0 | 0.005621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.171429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
051310efe2fcde36ddd8ce67f83ce51feb156886 | 721 | py | Python | generate_password.py | smlerman/generate_password | d19aeecb0f6386f24d917a5ae7033348b0b16798 | [
"MIT"
] | null | null | null | generate_password.py | smlerman/generate_password | d19aeecb0f6386f24d917a5ae7033348b0b16798 | [
"MIT"
] | null | null | null | generate_password.py | smlerman/generate_password | d19aeecb0f6386f24d917a5ae7033348b0b16798 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import argparse
import random
import string
import sys
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument("-l", "--length", dest="length", type=int, required=True)
arg_parser.add_argument("-s", "--symbols", dest="symbols", required=False, action="store_true")
arg_parser.add_argument("--... | 24.033333 | 97 | 0.714286 | 98 | 721 | 5.091837 | 0.438776 | 0.09018 | 0.072144 | 0.12024 | 0.228457 | 0.140281 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.108183 | 721 | 29 | 98 | 24.862069 | 0.772939 | 0.023578 | 0 | 0 | 0 | 0 | 0.125178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.210526 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
051469b9f83648b1f729af3cb70b0ae67bdb6ef7 | 243 | py | Python | tests/_jobs/hmmsearch/steps/test_hmm.py | agonopol/pyspark-hmm-search | 8f01d34f4903a63e31a59ab396c832fd7263a35a | [
"MIT"
] | null | null | null | tests/_jobs/hmmsearch/steps/test_hmm.py | agonopol/pyspark-hmm-search | 8f01d34f4903a63e31a59ab396c832fd7263a35a | [
"MIT"
] | null | null | null | tests/_jobs/hmmsearch/steps/test_hmm.py | agonopol/pyspark-hmm-search | 8f01d34f4903a63e31a59ab396c832fd7263a35a | [
"MIT"
] | null | null | null | from jobs.hmmsearch.steps.hmm import parse
def test_parse_hmm():
stream = parse(open("/data/src/tara-ocean-analysis/data/Pfam-A.hmm"))
hmms = [hmm for hmm in stream]
assert len(hmms) > 0
assert hmms[0]['EFFN'] == '19.774048'
| 27 | 73 | 0.666667 | 39 | 243 | 4.102564 | 0.692308 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049751 | 0.17284 | 243 | 8 | 74 | 30.375 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0.238683 | 0.185185 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0515f2e79f55ed810a3fd7186bd3bf4abc274355 | 1,067 | py | Python | characters/forms.py | Sult/evehub | 61872390d25dd089958f6b4bbc7677f8dd137297 | [
"MIT"
] | null | null | null | characters/forms.py | Sult/evehub | 61872390d25dd089958f6b4bbc7677f8dd137297 | [
"MIT"
] | null | null | null | characters/forms.py | Sult/evehub | 61872390d25dd089958f6b4bbc7677f8dd137297 | [
"MIT"
] | null | null | null | from django import forms
from .models import CharacterJournal, RefType
class FilterJournalForm(forms.Form):
def __init__(self, *args, **kwargs):
self.characterapi = kwargs.pop("characterapi")
super(FilterJournalForm, self).__init__(*args, **kwargs)
self.fields['filter'] = forms.ChoiceFie... | 32.333333 | 75 | 0.615745 | 104 | 1,067 | 6.201923 | 0.576923 | 0.031008 | 0.043411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002601 | 0.279288 | 1,067 | 32 | 76 | 33.34375 | 0.836151 | 0.027179 | 0 | 0 | 0 | 0 | 0.04243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0518b1cc9692b2e563d4d56d86916167bde93c57 | 4,440 | py | Python | app.py | manisha-jaiswal/Artificial-Intelligence-and-COVID-19-Deep-Learning-Approaches-for-Diagnosis-and-Treatment | 1c1c696fa030bb9927c40497b3cbbc9c1c43b678 | [
"MIT"
] | null | null | null | app.py | manisha-jaiswal/Artificial-Intelligence-and-COVID-19-Deep-Learning-Approaches-for-Diagnosis-and-Treatment | 1c1c696fa030bb9927c40497b3cbbc9c1c43b678 | [
"MIT"
] | null | null | null | app.py | manisha-jaiswal/Artificial-Intelligence-and-COVID-19-Deep-Learning-Approaches-for-Diagnosis-and-Treatment | 1c1c696fa030bb9927c40497b3cbbc9c1c43b678 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
from flask import Flask, request, jsonify, send_file, render_template
from io import BytesIO #used to help file-related input and output operations
from import Image, ImageOps #PILLOW is usd for data processing
import base64 #used to encode binary file such as image with scr... | 28.101266 | 105 | 0.703829 | 658 | 4,440 | 4.630699 | 0.322188 | 0.055136 | 0.065638 | 0.013128 | 0.145717 | 0.110929 | 0.082704 | 0.056449 | 0.056449 | 0.032819 | 0 | 0.014208 | 0.175676 | 4,440 | 157 | 106 | 28.280255 | 0.818306 | 0.194144 | 0 | 0.072727 | 0 | 0 | 0.12419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190909 | 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 |
051f42b6d1eeac931d4f2d66da5b2cbb05af6a39 | 17,542 | py | Python | wildlifelicensing/apps/applications/tests/test_conditions.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | null | null | null | wildlifelicensing/apps/applications/tests/test_conditions.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 11 | 2019-03-19T02:03:11.000Z | 2019-05-31T07:20:59.000Z | wildlifelicensing/apps/applications/tests/test_conditions.py | jawaidm/wildlifelicensing | 87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82 | [
"Apache-2.0"
] | 2 | 2020-08-10T10:17:10.000Z | 2021-10-31T23:20:53.000Z | from datetime import date
from django.test import TestCase
from django.shortcuts import reverse
from django_dynamic_fixture import G
from wildlifelicensing.apps.main.tests.helpers import get_or_create_default_customer, is_login_page, \
get_or_create_default_assessor, add_assessor_to_assessor_group, SocialClient, ... | 43.31358 | 114 | 0.613214 | 1,877 | 17,542 | 5.525306 | 0.114012 | 0.028927 | 0.048597 | 0.037026 | 0.714878 | 0.696654 | 0.665413 | 0.659821 | 0.620962 | 0.617491 | 0 | 0.013233 | 0.289192 | 17,542 | 404 | 115 | 43.420792 | 0.81851 | 0.083685 | 0 | 0.589905 | 0 | 0 | 0.120262 | 0.068929 | 0 | 0 | 0 | 0 | 0.157729 | 1 | 0.0347 | false | 0 | 0.031546 | 0 | 0.082019 | 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 |
05209eca07f96ebb94e98c9e148c71ade7056cc0 | 496 | py | Python | pruebas.py | hafid4827/bot-binomo-redesigned | bfa4a6eed246300f1d89583c163aa9049d98cbce | [
"MIT"
] | 5 | 2021-08-17T22:00:27.000Z | 2022-03-17T05:39:32.000Z | pruebas.py | hafid4827/bot-binomo-redesigned | bfa4a6eed246300f1d89583c163aa9049d98cbce | [
"MIT"
] | 1 | 2021-11-08T22:09:12.000Z | 2022-02-15T09:24:30.000Z | pruebas.py | hafid4827/bot-binomo-redesigned | bfa4a6eed246300f1d89583c163aa9049d98cbce | [
"MIT"
] | 2 | 2021-07-29T09:46:41.000Z | 2021-09-22T16:57:17.000Z | from binomo import apiAlfaBinomo
if __name__ == '__main__':
aApiAlfa = apiAlfaBinomo('','', timeBotWait = 120, loginError = True) # timeBotWait 120seg (tiempo de espera hasta resolver el capcha), loginError True
aApiAlfa.actionDV('EURUSD') # par
aApiAlfa.buy("CALL") # compra o venta (PUT)
aApiAlfa.listO... | 62 | 155 | 0.72379 | 66 | 496 | 5.318182 | 0.787879 | 0.079772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143885 | 0.159274 | 496 | 8 | 156 | 62 | 0.697842 | 0.443548 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05243937530a99ef5a2accc5008ffea866b88703 | 970 | py | Python | src/icemac/addressbook/browser/person/export.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 1 | 2020-03-26T20:16:44.000Z | 2020-03-26T20:16:44.000Z | src/icemac/addressbook/browser/person/export.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 2 | 2020-02-21T13:04:23.000Z | 2020-02-21T13:06:10.000Z | src/icemac/addressbook/browser/person/export.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | null | null | null | from icemac.addressbook.i18n import _
from .interfaces import IBirthDate
import icemac.addressbook.browser.base
import zope.component
class ExportList(icemac.addressbook.browser.base.BaseView):
"""List available export formats."""
title = _('Export person data')
def exporters(self):
"""Iterable ... | 38.8 | 77 | 0.681443 | 119 | 970 | 5.495798 | 0.563025 | 0.042813 | 0.073395 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 0.235052 | 970 | 24 | 78 | 40.416667 | 0.878706 | 0.294845 | 0 | 0 | 0 | 0 | 0.102832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
053016d6419cb9f208b395c538931c971a55af30 | 1,006 | py | Python | TeamX/TeamXapp/migrations/0043_auto_20190712_1449.py | rootfinlay/SageTeamX | cf4cde3360c8cccb8a727ba64d66345805d7a0ed | [
"Unlicense"
] | null | null | null | TeamX/TeamXapp/migrations/0043_auto_20190712_1449.py | rootfinlay/SageTeamX | cf4cde3360c8cccb8a727ba64d66345805d7a0ed | [
"Unlicense"
] | null | null | null | TeamX/TeamXapp/migrations/0043_auto_20190712_1449.py | rootfinlay/SageTeamX | cf4cde3360c8cccb8a727ba64d66345805d7a0ed | [
"Unlicense"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-12 13:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('TeamXapp', '0042_auto_20190712_1444'),
]
operations = [
migrations.AlterModelOptions(
name='job... | 34.689655 | 168 | 0.644135 | 111 | 1,006 | 5.693694 | 0.468468 | 0.050633 | 0.082278 | 0.10443 | 0.433544 | 0.433544 | 0.433544 | 0.433544 | 0.268987 | 0.268987 | 0 | 0.040155 | 0.232604 | 1,006 | 28 | 169 | 35.928571 | 0.778497 | 0.044732 | 0 | 0.318182 | 1 | 0 | 0.233577 | 0.046924 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05316edbc383e64964420cec4c4084f89d75b3f3 | 942 | py | Python | server/User/serialize.py | adamA113/servize | 89933c3864d997188ec79ad690b37f51bca54aa3 | [
"MIT"
] | null | null | null | server/User/serialize.py | adamA113/servize | 89933c3864d997188ec79ad690b37f51bca54aa3 | [
"MIT"
] | null | null | null | server/User/serialize.py | adamA113/servize | 89933c3864d997188ec79ad690b37f51bca54aa3 | [
"MIT"
] | 2 | 2020-12-26T09:50:17.000Z | 2020-12-26T09:52:45.000Z | from rest_framework import serializers
from User.models import User,ProviderUser
class ProviderUserSerializer(serializers.ModelSerializer):
providerName = serializers.CharField(source='providerId.provider.name', read_only=True)
# providerName = serializers.CharField(source='providerId.provider.id', read_only=... | 32.482759 | 91 | 0.734607 | 103 | 942 | 6.640777 | 0.330097 | 0.081871 | 0.122807 | 0.093567 | 0.380117 | 0.380117 | 0.216374 | 0.216374 | 0.146199 | 0 | 0 | 0 | 0.136943 | 942 | 28 | 92 | 33.642857 | 0.841328 | 0.158174 | 0 | 0.133333 | 0 | 0 | 0.143583 | 0.030496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0532c6bf12a3838aa94514c6f9c1b18e85e579a2 | 925 | py | Python | plugins/python/container/test/testdata.py | proglang/servercodetest | f0acd5940a22be9a72a95494afb308bb3017ea64 | [
"MIT"
] | null | null | null | plugins/python/container/test/testdata.py | proglang/servercodetest | f0acd5940a22be9a72a95494afb308bb3017ea64 | [
"MIT"
] | 2 | 2020-06-05T16:24:37.000Z | 2020-11-15T09:02:48.000Z | plugins/python/container/test/testdata.py | proglang/servercodetest | f0acd5940a22be9a72a95494afb308bb3017ea64 | [
"MIT"
] | 1 | 2020-10-22T05:46:52.000Z | 2020-10-22T05:46:52.000Z | user = """
#import os
def sort(lst):
for i in range(len(lst)):
for j in range(i+1, len(lst)):
if lst[i]>lst[j]:
tmp = lst[j]
lst[j] = lst[i]
lst[i] = tmp
return lst
def test_t1():
assert sort([])==[]
assert sort([1])==[1]
assert s... | 18.5 | 38 | 0.544865 | 148 | 925 | 3.364865 | 0.310811 | 0.160643 | 0.088353 | 0.048193 | 0.124498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048175 | 0.259459 | 925 | 50 | 39 | 18.5 | 0.678832 | 0 | 0 | 0.243902 | 0 | 0 | 0.965443 | 0.103672 | 0 | 0 | 0 | 0 | 0.243902 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.146341 | 0.02439 | 0 | 0 | 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 |
0532de945a420994aeb937caec5c212fd0f30efa | 33,511 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/mysql/plugins/module_utils/user.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/mysql/plugins/module_utils/user.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/mysql/plugins/module_utils/user.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still ... | 38.037457 | 155 | 0.593298 | 4,121 | 33,511 | 4.681873 | 0.142441 | 0.021561 | 0.015964 | 0.009122 | 0.326112 | 0.277236 | 0.230383 | 0.192495 | 0.169949 | 0.148544 | 0 | 0.007436 | 0.289726 | 33,511 | 880 | 156 | 38.080682 | 0.803168 | 0.223091 | 0 | 0.27027 | 0 | 0.007207 | 0.194124 | 0.030553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052252 | false | 0.07027 | 0.014414 | 0.001802 | 0.14955 | 0.001802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05338e3597266b3e7048c0644ed1ddc214ed93dc | 3,714 | py | Python | engine.py | VETURISRIRAM/smart-search | 0352f265f2f7cd557559e22d9573fbc581ad22da | [
"MIT"
] | 4 | 2021-10-01T06:35:27.000Z | 2022-02-27T17:34:24.000Z | engine.py | VETURISRIRAM/smart-search | 0352f265f2f7cd557559e22d9573fbc581ad22da | [
"MIT"
] | null | null | null | engine.py | VETURISRIRAM/smart-search | 0352f265f2f7cd557559e22d9573fbc581ad22da | [
"MIT"
] | 4 | 2021-09-14T14:10:44.000Z | 2021-12-05T16:24:29.000Z | """
@author: Sriram Veturi
@title: SmartSearch - An Intelligent Search Engine.
@date: 05/06/2019
"""
import time
import argparse
from crawl_all_sites import crawl_for_sites
from generate_data import create_documents
from generate_data import create_data_directory
from clean_documents import remove_extra_l... | 32.295652 | 142 | 0.540926 | 395 | 3,714 | 4.870886 | 0.344304 | 0.037422 | 0.031185 | 0.022869 | 0.121622 | 0.030146 | 0.030146 | 0.030146 | 0 | 0 | 0 | 0.003776 | 0.144319 | 3,714 | 114 | 143 | 32.578947 | 0.601636 | 0.119278 | 0 | 0.241935 | 1 | 0.016129 | 0.509735 | 0.277051 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.096774 | 0 | 0.112903 | 0.33871 | 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 |
05342f0f733aff0c17f542004f0fac92fe792524 | 302 | py | Python | test/quadrant.py | icyfankai/python | 46c97794343ac09fc4c91fe6ce5c51be1ceda74a | [
"Apache-2.0"
] | null | null | null | test/quadrant.py | icyfankai/python | 46c97794343ac09fc4c91fe6ce5c51be1ceda74a | [
"Apache-2.0"
] | null | null | null | test/quadrant.py | icyfankai/python | 46c97794343ac09fc4c91fe6ce5c51be1ceda74a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
def Quadrant(x,y):
if x>=0:
if y >=0:
print "1"
else:
print "2"
else:
if y >=0:
print "3"
else:
print "4"
x=input('what first num you input:')
y=input('what senced num you input:')
Quadrant(x,y)
| 17.764706 | 37 | 0.450331 | 44 | 302 | 3.090909 | 0.477273 | 0.132353 | 0.147059 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038889 | 0.403974 | 302 | 16 | 38 | 18.875 | 0.716667 | 0.05298 | 0 | 0.357143 | 0 | 0 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
053cb6f6f3a3672636ad5264fd9c7732cc5d588a | 3,616 | py | Python | src/data/generate_n_steps.py | jeammimi/rnn_seg | bc11109bec2865d5cf5c617ab559bf1894a260ba | [
"MIT"
] | null | null | null | src/data/generate_n_steps.py | jeammimi/rnn_seg | bc11109bec2865d5cf5c617ab559bf1894a260ba | [
"MIT"
] | null | null | null | src/data/generate_n_steps.py | jeammimi/rnn_seg | bc11109bec2865d5cf5c617ab559bf1894a260ba | [
"MIT"
] | null | null | null | from .generator_traj import generate_traj, EmptyError
from .motion_type import random_rot
from ..features.prePostTools import traj_to_dist
import numpy as np
def generate_n_steps(N, nstep, ndim, sub=False, noise_level=0.25):
add = 0
if ndim == 3:
add = 1
size = nstep
X_train = np.zeros((N, ... | 37.278351 | 121 | 0.448285 | 416 | 3,616 | 3.704327 | 0.28125 | 0.077872 | 0.025957 | 0.023361 | 0.267359 | 0.23621 | 0.154445 | 0.114212 | 0.114212 | 0.063595 | 0 | 0.047264 | 0.444137 | 3,616 | 96 | 122 | 37.666667 | 0.719403 | 0.029591 | 0 | 0.065574 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.065574 | 0 | 0.098361 | 0 | 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 |
053e81fad31fe1249f19559df91990a221218a42 | 399 | py | Python | src/slack_events/migrations/0014_slackevent_has_files.py | stefdworschak/slack-to-xapi | c8ca1f435cc653c84bca7d50c96e9fe5a9fd3c5c | [
"MIT"
] | 2 | 2020-10-16T22:44:08.000Z | 2021-02-04T20:43:48.000Z | src/slack_events/migrations/0014_slackevent_has_files.py | stefdworschak/slack-to-xapi | c8ca1f435cc653c84bca7d50c96e9fe5a9fd3c5c | [
"MIT"
] | 8 | 2020-09-23T00:02:24.000Z | 2020-10-11T23:35:36.000Z | src/slack_events/migrations/0014_slackevent_has_files.py | stefdworschak/slack-to-xapi | c8ca1f435cc653c84bca7d50c96e9fe5a9fd3c5c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-04 22:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('slack_events', '0013_auto_20201004_1326'),
]
operations = [
migrations.AddField(
model_name='slackevent',
name='has_... | 21 | 53 | 0.611529 | 43 | 399 | 5.534884 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107639 | 0.278195 | 399 | 18 | 54 | 22.166667 | 0.71875 | 0.112782 | 0 | 0 | 1 | 0 | 0.153409 | 0.065341 | 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 |
053f2a860f6ba29c7f70dd0479e3725f6c4a600d | 4,595 | py | Python | packages/PIPS/pips/src/Passes/pyps/pipsmakerc2python.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 51 | 2015-01-31T01:51:39.000Z | 2022-02-18T02:01:50.000Z | packages/PIPS/pips/src/Passes/pyps/pipsmakerc2python.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 7 | 2017-05-29T09:29:00.000Z | 2019-03-11T16:01:39.000Z | packages/PIPS/pips/src/Passes/pyps/pipsmakerc2python.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 12 | 2015-03-26T08:05:38.000Z | 2022-02-18T02:01:51.000Z | #/usr/bin/env python
import sys
import re
usage= "usage: pipsmakerc2python.py rc-file.tex properties.rc pipsdep.rc [-loop|-module|-modules]"
if len(sys.argv) < 5:
print usage
exit(1)
texfile = sys.argv[1]
generator = sys.argv[4]
#Read propdep file and convert it into a map.
input = open(sys.argv[3],"r")
lines = i... | 34.810606 | 145 | 0.641567 | 651 | 4,595 | 4.474654 | 0.248848 | 0.04909 | 0.014418 | 0.020597 | 0.23378 | 0.218675 | 0.183659 | 0.163062 | 0.145211 | 0.10127 | 0 | 0.006085 | 0.141676 | 4,595 | 131 | 146 | 35.076336 | 0.732505 | 0.15234 | 0 | 0.10101 | 0 | 0.030303 | 0.317067 | 0.167829 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010101 | 0.020202 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
054187a6d57d97126b1a15fab60e728d32501cad | 218 | py | Python | test/test_basic.py | plotlyst/qt-handy | d8e27796d99ac4cb60a66ed82c28843f90a9ec25 | [
"MIT"
] | null | null | null | test/test_basic.py | plotlyst/qt-handy | d8e27796d99ac4cb60a66ed82c28843f90a9ec25 | [
"MIT"
] | 15 | 2022-02-07T08:28:49.000Z | 2022-03-01T15:53:03.000Z | test/test_basic.py | plotlyst/qt-handy | d8e27796d99ac4cb60a66ed82c28843f90a9ec25 | [
"MIT"
] | null | null | null | from qtpy.QtWidgets import QLabel
from qthandy import opaque
def test_opaque(qtbot):
widget = QLabel('Test')
qtbot.addWidget(widget)
widget.show()
opaque(widget)
assert widget.graphicsEffect()
| 15.571429 | 34 | 0.711009 | 26 | 218 | 5.923077 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197248 | 218 | 13 | 35 | 16.769231 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
05436e8b93229e4bc29c71722194462178defd46 | 2,618 | py | Python | src/hedera_proto/schedule_delete_pb2.py | HbarStudio/hedera-protobufs-python | f8a503d2c4c5b7c441ddf48607f7ee563b3f931a | [
"Apache-2.0"
] | null | null | null | src/hedera_proto/schedule_delete_pb2.py | HbarStudio/hedera-protobufs-python | f8a503d2c4c5b7c441ddf48607f7ee563b3f931a | [
"Apache-2.0"
] | null | null | null | src/hedera_proto/schedule_delete_pb2.py | HbarStudio/hedera-protobufs-python | f8a503d2c4c5b7c441ddf48607f7ee563b3f931a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: schedule_delete.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google... | 34.906667 | 249 | 0.797173 | 288 | 2,618 | 6.899306 | 0.385417 | 0.027177 | 0.036236 | 0.048314 | 0.086563 | 0.086563 | 0 | 0 | 0 | 0 | 0 | 0.024153 | 0.098549 | 2,618 | 74 | 250 | 35.378378 | 0.817797 | 0.110008 | 0 | 0.148148 | 1 | 0.018519 | 0.231997 | 0.198793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092593 | 0 | 0.092593 | 0 | 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 |
0546573acf6d8d50c48d31fc1b2af4925936ee67 | 5,483 | py | Python | Howie-master/howie/core.py | Srinath-tr/Goferbot | 0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9 | [
"Apache-2.0",
"bzip2-1.0.6"
] | 1 | 2019-04-23T21:50:08.000Z | 2019-04-23T21:50:08.000Z | Howie-master/howie/core.py | Srinath-tr/Goferbot | 0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9 | [
"Apache-2.0",
"bzip2-1.0.6"
] | null | null | null | Howie-master/howie/core.py | Srinath-tr/Goferbot | 0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9 | [
"Apache-2.0",
"bzip2-1.0.6"
] | 2 | 2019-02-14T08:13:33.000Z | 2019-04-23T21:47:48.000Z | import marshal
import os.path
import sys
import threading
import time
import traceback
# Howie-specific
import aiml
import configFile
import frontends
from frontends import *
class ActiveFrontEnd:
def __init__(self, inst, thread):
self._inst = inst
self._thread = thread
_frontends = {}
kernel = None
def _addFro... | 33.432927 | 89 | 0.694146 | 736 | 5,483 | 5.142663 | 0.307065 | 0.030911 | 0.009511 | 0.015852 | 0.111493 | 0.08111 | 0.036988 | 0.022721 | 0 | 0 | 0 | 0.000888 | 0.178187 | 5,483 | 163 | 90 | 33.638037 | 0.839103 | 0.229436 | 0 | 0.189655 | 0 | 0 | 0.242844 | 0.023139 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.086207 | null | null | 0.094828 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0554668fc53a66dd4cd76772ac217bbaf246ca33 | 2,840 | py | Python | users/tests.py | GilbertTan19/Empire_of_Movies-deploy | e9e05530a25e76523e624591c966dccf84898ace | [
"MIT"
] | null | null | null | users/tests.py | GilbertTan19/Empire_of_Movies-deploy | e9e05530a25e76523e624591c966dccf84898ace | [
"MIT"
] | 2 | 2021-03-30T14:31:18.000Z | 2021-04-08T21:22:09.000Z | users/tests.py | GilbertTan19/Empire_of_Movies-deploy | e9e05530a25e76523e624591c966dccf84898ace | [
"MIT"
] | 5 | 2020-07-13T03:17:07.000Z | 2020-07-22T03:15:57.000Z | from django.test import Client, TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse, resolve
from .views import ProfileUpdateView
from .forms import CustomUserCreationForm
# Create your tests here.
class CustomUserTests(TestCase):
def test_create_user(self):
User = get... | 37.866667 | 77 | 0.65 | 318 | 2,840 | 5.669811 | 0.242138 | 0.066556 | 0.053245 | 0.05269 | 0.574598 | 0.489739 | 0.489739 | 0.432612 | 0.39046 | 0.344981 | 0 | 0.020833 | 0.239437 | 2,840 | 75 | 78 | 37.866667 | 0.813889 | 0.008099 | 0 | 0.369231 | 0 | 0 | 0.131037 | 0.009588 | 0 | 0 | 0 | 0 | 0.323077 | 1 | 0.107692 | false | 0.061538 | 0.076923 | 0 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05587eccfe81a5eeb1eee855f90a0698209f909d | 8,027 | py | Python | tests/unittests/test_exc.py | Cottonwood-Technology/ValidX | 8ade8377e2bf6c5a7835d33a1e74552744ccdcdf | [
"BSD-2-Clause"
] | 19 | 2019-11-08T20:22:15.000Z | 2022-03-21T10:42:45.000Z | tests/unittests/test_exc.py | Cottonwood-Technology/ValidX | 8ade8377e2bf6c5a7835d33a1e74552744ccdcdf | [
"BSD-2-Clause"
] | 7 | 2020-04-30T09:51:34.000Z | 2021-10-05T13:11:28.000Z | tests/unittests/test_exc.py | Cottonwood-Technology/ValidX | 8ade8377e2bf6c5a7835d33a1e74552744ccdcdf | [
"BSD-2-Clause"
] | 3 | 2019-09-25T03:44:21.000Z | 2020-08-20T14:21:50.000Z | import pickle
from collections import deque
from datetime import datetime
from textwrap import dedent
import pytest
from dateutil.parser import isoparse
from pytz import UTC
from validx import exc
def test_validation_error():
te = exc.InvalidTypeError(expected=int, actual=str)
assert te.context == deque([])... | 36.157658 | 99 | 0.604211 | 1,018 | 8,027 | 4.685658 | 0.139489 | 0.05283 | 0.078616 | 0.104822 | 0.623899 | 0.480084 | 0.38218 | 0.281551 | 0.236688 | 0.160587 | 0 | 0.031394 | 0.218263 | 8,027 | 221 | 100 | 36.321267 | 0.727809 | 0.00162 | 0 | 0.139785 | 0 | 0.010753 | 0.178515 | 0.036464 | 0 | 0 | 0 | 0 | 0.462366 | 1 | 0.032258 | false | 0 | 0.043011 | 0 | 0.075269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
056714b06b3fc2b592f540b1bcfcc86a85412c2f | 988 | py | Python | tests/linkedin_login.py | fdjlss/linkedin_hunting | 8febf58d2813313243770232b311507fce03d0ba | [
"MIT"
] | null | null | null | tests/linkedin_login.py | fdjlss/linkedin_hunting | 8febf58d2813313243770232b311507fce03d0ba | [
"MIT"
] | null | null | null | tests/linkedin_login.py | fdjlss/linkedin_hunting | 8febf58d2813313243770232b311507fce03d0ba | [
"MIT"
] | 1 | 2021-08-06T05:23:41.000Z | 2021-08-06T05:23:41.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# linkedin_login.py
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import parameters
# install webdrive when needed
driver = webdriver.Chrome(ChromeDriverManager().install())
# driver.get method() will navigate to a page given by... | 28.228571 | 72 | 0.782389 | 144 | 988 | 5.131944 | 0.458333 | 0.060893 | 0.092016 | 0.102842 | 0.213802 | 0.156969 | 0.081191 | 0 | 0 | 0 | 0 | 0.002268 | 0.107287 | 988 | 34 | 73 | 29.058824 | 0.835601 | 0.401822 | 0 | 0 | 0 | 0 | 0.214162 | 0.043178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
056b7e7188ee12317339079b46ed64bfc6ca5b62 | 1,728 | py | Python | urizen/generators/locations/lfd_worm_simple.py | misagai/urizen | ad756749ae7b0bb6db7024c6128998e56236ee6d | [
"Apache-2.0"
] | null | null | null | urizen/generators/locations/lfd_worm_simple.py | misagai/urizen | ad756749ae7b0bb6db7024c6128998e56236ee6d | [
"Apache-2.0"
] | null | null | null | urizen/generators/locations/lfd_worm_simple.py | misagai/urizen | ad756749ae7b0bb6db7024c6128998e56236ee6d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import random
from urizen.core.map import Map
NORTH = 'N'
SOUTH = 'S'
EAST = 'E'
WEST = 'W'
class LFD_WormSimpleFactory(object):
def generate(self, w, h, length=None, turn_chance=0.4):
if not length:
length = int(w*h/2)
return self._gen_main(w, h, length, turn_ch... | 27.428571 | 88 | 0.534722 | 245 | 1,728 | 3.62449 | 0.289796 | 0.067568 | 0.040541 | 0.027027 | 0.175676 | 0.119369 | 0.119369 | 0 | 0 | 0 | 0 | 0.019197 | 0.336806 | 1,728 | 63 | 89 | 27.428571 | 0.755672 | 0.009838 | 0 | 0.041667 | 1 | 0 | 0.003507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.020833 | 0.041667 | 0 | 0.208333 | 0 | 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 |
057deb4c2c769f2d6790e8477af350491504ab92 | 1,005 | py | Python | kader/migrations/0004_auto_20180210_2104.py | hanbei/kdmanager | 16f17326f8d2140a742d5b56e9e3ae20d612d121 | [
"MIT"
] | null | null | null | kader/migrations/0004_auto_20180210_2104.py | hanbei/kdmanager | 16f17326f8d2140a742d5b56e9e3ae20d612d121 | [
"MIT"
] | 6 | 2018-02-21T21:35:50.000Z | 2021-08-18T17:25:56.000Z | kader/migrations/0004_auto_20180210_2104.py | hanbei/kdmanager | 16f17326f8d2140a742d5b56e9e3ae20d612d121 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-10 21:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kader', '0003_fight_tournament'),
]
operations = [
migrations.CreateModel(
name='Training',
fields=[
... | 27.162162 | 114 | 0.535323 | 84 | 1,005 | 6.321429 | 0.595238 | 0.079096 | 0.086629 | 0.105461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028401 | 0.334328 | 1,005 | 36 | 115 | 27.916667 | 0.765321 | 0.044776 | 0 | 0.3 | 1 | 0 | 0.138831 | 0.021921 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.133333 | 0 | 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 |
058209e6105c65bbcec6ab5ac2fbf039f0c33718 | 785 | py | Python | tests/base_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | tests/base_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | tests/base_test.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | """Parent class for each non-unit test. Creates and removes a new test table for each test."""
# TODO: integrate creating/removing a database
from unittest import TestCase
from flask_server_files.flask_app import app
from flask_server_files.sqla_instance import fsa
# from flask.ext.testing import TestCase
class ... | 27.068966 | 105 | 0.680255 | 105 | 785 | 4.933333 | 0.514286 | 0.067568 | 0.081081 | 0.07722 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008237 | 0.226752 | 785 | 28 | 106 | 28.035714 | 0.84514 | 0.220382 | 0 | 0.125 | 0 | 0 | 0.128926 | 0.128926 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058739f7b1227cd68796f9575acb4c4628a762e2 | 258 | py | Python | command/httlemon.py | dev-lemon/httlemon | 104dddd753a56efc7fe249976c35acfafe0ffa94 | [
"MIT"
] | 1 | 2019-07-21T04:28:06.000Z | 2019-07-21T04:28:06.000Z | command/httlemon.py | dev-lemon/httlemon | 104dddd753a56efc7fe249976c35acfafe0ffa94 | [
"MIT"
] | 2 | 2019-07-02T01:57:19.000Z | 2019-07-23T02:16:32.000Z | command/httlemon.py | dev-lemon/httlemon | 104dddd753a56efc7fe249976c35acfafe0ffa94 | [
"MIT"
] | null | null | null | import click
from client.client_request import client_request
@click.command()
@click.argument('http_verb')
@click.argument('url')
def httlemon(http_verb, url):
beautified_response = client_request(http_verb, url)
click.echo(beautified_response)
| 19.846154 | 56 | 0.77907 | 34 | 258 | 5.676471 | 0.441176 | 0.202073 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112403 | 258 | 12 | 57 | 21.5 | 0.842795 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
058da9b5adc6593b3a6f5b4dc30bf900b788e5fc | 1,789 | py | Python | pixel/tests.py | trevor-ngugi/pixel-collab | a8e757a8fc52519e8baa2b2d20631b4ff1feec07 | [
"Unlicense"
] | null | null | null | pixel/tests.py | trevor-ngugi/pixel-collab | a8e757a8fc52519e8baa2b2d20631b4ff1feec07 | [
"Unlicense"
] | 3 | 2021-06-08T20:52:59.000Z | 2022-03-12T00:14:18.000Z | pixel/tests.py | trevor-ngugi/pixel-collab | a8e757a8fc52519e8baa2b2d20631b4ff1feec07 | [
"Unlicense"
] | null | null | null | from django.test import TestCase
from .models import Place,Category,Image
# Create your tests here.
class PlaceTestClass(TestCase):
def setUp(self):
self.nairobi=Place(location='nairobi')
def test_instance(self):
self.assertTrue(isinstance(self.nairobi,Place))
def test_save_method(s... | 25.927536 | 128 | 0.665176 | 223 | 1,789 | 5.224215 | 0.215247 | 0.06867 | 0.048069 | 0.082403 | 0.494421 | 0.362232 | 0.297854 | 0.297854 | 0.176824 | 0.08927 | 0 | 0.002831 | 0.210173 | 1,789 | 68 | 129 | 26.308824 | 0.821656 | 0.012856 | 0 | 0.377778 | 0 | 0 | 0.039138 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.266667 | false | 0 | 0.044444 | 0 | 0.377778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
058f277ac000c8ba9025ece3a55adcff498f061a | 3,939 | py | Python | apps/cli/diana-cli.py | derekmerck/DIANA | 5553265b8fc822b35848d0966b25b93b99d503fb | [
"MIT"
] | 9 | 2018-03-15T19:10:27.000Z | 2021-03-15T21:01:24.000Z | apps/cli/diana-cli.py | derekmerck/DIANA | 5553265b8fc822b35848d0966b25b93b99d503fb | [
"MIT"
] | null | null | null | apps/cli/diana-cli.py | derekmerck/DIANA | 5553265b8fc822b35848d0966b25b93b99d503fb | [
"MIT"
] | 2 | 2018-03-15T19:13:22.000Z | 2018-04-18T16:33:33.000Z | import logging
import click_log
import click
from diana.apis import *
from utils.merge_yaml_sources import merge_yaml_sources
from commands.orthanc import ofind, pull
from commands.splunk import sfind
from commands.watch import watch
from commands.mock import mock
from commands.hello import hello
@click.group()
@click... | 30.534884 | 101 | 0.691292 | 491 | 3,939 | 5.429735 | 0.258656 | 0.048762 | 0.048762 | 0.035634 | 0.306827 | 0.209677 | 0.169917 | 0.137659 | 0.116279 | 0.116279 | 0 | 0.00244 | 0.167555 | 3,939 | 129 | 102 | 30.534884 | 0.810613 | 0.324448 | 0 | 0.234568 | 0 | 0 | 0.101604 | 0.008021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0.061728 | 0.123457 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05952e571c7bada7ad1e8f3d42c891971f8de90e | 399 | py | Python | app/migrations/0003_photo_pic.py | taojy123/Babylon | f882bf3a707125efe79f54a2098210b852e370ff | [
"MIT"
] | null | null | null | app/migrations/0003_photo_pic.py | taojy123/Babylon | f882bf3a707125efe79f54a2098210b852e370ff | [
"MIT"
] | null | null | null | app/migrations/0003_photo_pic.py | taojy123/Babylon | f882bf3a707125efe79f54a2098210b852e370ff | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-04 03:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0002_photo_hidden'),
]
operations = [
migrations.AddField(
model_name='photo',
name='pic',
field=... | 21 | 79 | 0.591479 | 45 | 399 | 5.155556 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066434 | 0.283208 | 399 | 18 | 80 | 22.166667 | 0.744755 | 0.112782 | 0 | 0 | 1 | 0 | 0.099432 | 0 | 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 |
552a5c1ee782d367b12311c04d748a144f1abaa9 | 2,875 | py | Python | class9/exercise4.py | papri-entropy/pyplus | 9791fa6ee0b5414912594e20db0390f8a65c91fc | [
"MIT"
] | null | null | null | class9/exercise4.py | papri-entropy/pyplus | 9791fa6ee0b5414912594e20db0390f8a65c91fc | [
"MIT"
] | null | null | null | class9/exercise4.py | papri-entropy/pyplus | 9791fa6ee0b5414912594e20db0390f8a65c91fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
4a. Add nxos1 to your my_devices.py file.
Ensure that you include the necessary information to set the NX-API port to 8443.
This is done using 'optional_args' in NAPALM so you should have the following key-value pair defined:
"optional_args": {"port": 8443}
4b. Create a new function named... | 33.045977 | 106 | 0.762783 | 400 | 2,875 | 5.35 | 0.3825 | 0.037383 | 0.033645 | 0.018224 | 0.127103 | 0.116822 | 0.116822 | 0.100935 | 0.100935 | 0.058879 | 0 | 0.015966 | 0.172174 | 2,875 | 86 | 107 | 33.430233 | 0.883193 | 0.574609 | 0 | 0.285714 | 0 | 0 | 0.231788 | 0.041391 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0.464286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
55361251fcba1a1a653c484b9c41b4b5233f310e | 2,123 | py | Python | storage/storage_item.py | DiPaolo/watchdog-yt-uploader | c2f5c5d0f34d44c3d3c1d4cfd7d6762e9f59f2df | [
"MIT"
] | null | null | null | storage/storage_item.py | DiPaolo/watchdog-yt-uploader | c2f5c5d0f34d44c3d3c1d4cfd7d6762e9f59f2df | [
"MIT"
] | null | null | null | storage/storage_item.py | DiPaolo/watchdog-yt-uploader | c2f5c5d0f34d44c3d3c1d4cfd7d6762e9f59f2df | [
"MIT"
] | null | null | null | # represents items that used by Storage;
# can be either a directory or media file, or non-media file
import abc
import hashlib
import os
import uuid
from enum import Enum
class StorageItemStatus(Enum):
UNKNOWN = 'Unknown'
ON_TARGET = 'On Target'
UPLOADING = 'Uploading'
UPLOAD_FAILED = 'Upload Failed'... | 24.402299 | 64 | 0.594442 | 273 | 2,123 | 4.384615 | 0.296703 | 0.066834 | 0.036759 | 0.050125 | 0.183793 | 0.121972 | 0.088555 | 0.088555 | 0.088555 | 0.061821 | 0 | 0.010074 | 0.298634 | 2,123 | 86 | 65 | 24.686047 | 0.793821 | 0.117758 | 0 | 0.12069 | 0 | 0 | 0.029506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189655 | false | 0.017241 | 0.086207 | 0.086207 | 0.534483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
55411463237f52ad5c2bb700029a1a502234f770 | 979 | py | Python | extra-packages/pyperl-1.0.1d/t/wantarray.py | UfSoft/ISPManCCP | a415cae3a6860a86591e932606d31dab844703df | [
"BSD-3-Clause"
] | null | null | null | extra-packages/pyperl-1.0.1d/t/wantarray.py | UfSoft/ISPManCCP | a415cae3a6860a86591e932606d31dab844703df | [
"BSD-3-Clause"
] | null | null | null | extra-packages/pyperl-1.0.1d/t/wantarray.py | UfSoft/ISPManCCP | a415cae3a6860a86591e932606d31dab844703df | [
"BSD-3-Clause"
] | null | null | null | import perl
#if perl.MULTI_PERL:
# print "1..0"
# raise SystemExit
print "1..11"
perl.eval("""
sub foo {
if (wantarray) {
return "array";
}
elsif (defined wantarray) {
return "scalar";
}
else {
return;
}
}
""")
foo = perl.eval("\&foo")
testno = 1
def expect(res, expect):... | 16.59322 | 57 | 0.633299 | 126 | 979 | 4.642857 | 0.269841 | 0.164103 | 0.123077 | 0.082051 | 0.266667 | 0.129915 | 0.129915 | 0 | 0 | 0 | 0 | 0.015267 | 0.19714 | 979 | 58 | 58 | 16.87931 | 0.729008 | 0.050051 | 0 | 0.05 | 0 | 0 | 0.220065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5542270bfe13bfa26e43fa0f26daa768c9b7884b | 220 | py | Python | PythonExercicios/Mundo 2/8_estrutura_de_repeticao_for/ex050.py | GuilhermoCampos/Curso-Python3-curso-em-video | 723767bc6069e9c1fa9e28fe412e694f9eb8d05e | [
"MIT"
] | null | null | null | PythonExercicios/Mundo 2/8_estrutura_de_repeticao_for/ex050.py | GuilhermoCampos/Curso-Python3-curso-em-video | 723767bc6069e9c1fa9e28fe412e694f9eb8d05e | [
"MIT"
] | null | null | null | PythonExercicios/Mundo 2/8_estrutura_de_repeticao_for/ex050.py | GuilhermoCampos/Curso-Python3-curso-em-video | 723767bc6069e9c1fa9e28fe412e694f9eb8d05e | [
"MIT"
] | null | null | null | d = 0
co = 0
for c in range(1, 7):
valor = int(input('Digite o {}º Valor: '.format(c)))
if valor % 2 == 0:
d += valor
co += 1
print('Você informou {} números PARES e a soma foi {}'.format(co, d))
| 24.444444 | 69 | 0.527273 | 39 | 220 | 2.974359 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0.295455 | 220 | 8 | 70 | 27.5 | 0.703226 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
55468390ba004abaefc43e37f9117d305c881713 | 2,821 | py | Python | src/KnotTheory/HFK-Zurich/simplify/fastUnknot2.py | craigfreilly/masters-project-submission | 902911917acec3fc26c7d3bfd5db1ae1f182890f | [
"MIT"
] | null | null | null | src/KnotTheory/HFK-Zurich/simplify/fastUnknot2.py | craigfreilly/masters-project-submission | 902911917acec3fc26c7d3bfd5db1ae1f182890f | [
"MIT"
] | null | null | null | src/KnotTheory/HFK-Zurich/simplify/fastUnknot2.py | craigfreilly/masters-project-submission | 902911917acec3fc26c7d3bfd5db1ae1f182890f | [
"MIT"
] | null | null | null | import RectDia
import FastRectDiag
from RectDia import RectDia
from FastRectDiag import FastRectDiag
import profile
def printHistory(diag):
tmp=diag
while(1):
## if tmp.isdestabilisable()!=0 :print tmp.isdestabilisable()
## print tmp.xSorted
## print tmp.ySorted
print tmp... | 35.708861 | 362 | 0.502659 | 382 | 2,821 | 3.685864 | 0.230366 | 0.038352 | 0.034091 | 0.044744 | 0.096591 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0.296703 | 2,821 | 78 | 363 | 36.166667 | 0.600302 | 0.241404 | 0 | 0.175439 | 0 | 0 | 0.041294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
554744be861a58ce95e1071542f6fae5d423487a | 6,787 | py | Python | src/compiler/build.py | glgomes/clonebuilder | ab8cd12536d201cc3f228877307705f8e20ceb8f | [
"MIT"
] | 1 | 2020-06-23T17:02:55.000Z | 2020-06-23T17:02:55.000Z | src/compiler/build.py | glgomes/clonebuilder | ab8cd12536d201cc3f228877307705f8e20ceb8f | [
"MIT"
] | null | null | null | src/compiler/build.py | glgomes/clonebuilder | ab8cd12536d201cc3f228877307705f8e20ceb8f | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
@author rpereira
Apr 10, 2012
Controle do build, extract feito de funções do legado.
"""
import legacy.makefile as mkfile
from legacy.compiler_builder import CompilerBuilder
import legacy.futil as futil
import wx
import string
import re
from controller.front import FrontCo... | 29.767544 | 93 | 0.51466 | 701 | 6,787 | 4.810271 | 0.28388 | 0.023725 | 0.02847 | 0.020166 | 0.144128 | 0.071768 | 0.071768 | 0.071768 | 0.071768 | 0.071768 | 0 | 0.009241 | 0.394136 | 6,787 | 227 | 94 | 29.898678 | 0.810798 | 0.027111 | 0 | 0.216216 | 0 | 0 | 0.045368 | 0 | 0 | 0 | 0 | 0.004405 | 0 | 0 | null | null | 0 | 0.087838 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5559baf2ec3df209266183db082ce6c70a82aa61 | 5,244 | py | Python | DBP/models/user.py | Pusnow/DB-Project | 2a9a485bacb4e513c6fbc159faf9855c919c657c | [
"MIT"
] | null | null | null | DBP/models/user.py | Pusnow/DB-Project | 2a9a485bacb4e513c6fbc159faf9855c919c657c | [
"MIT"
] | null | null | null | DBP/models/user.py | Pusnow/DB-Project | 2a9a485bacb4e513c6fbc159faf9855c919c657c | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from DBP.models import Base,session
from sqlalchemy import Column, Integer, Unicode, Enum, Date, String
from sqlalchemy import Table, ForeignKey, PrimaryKeyConstraint
from sqlalchemy.sql.expression import label
from sqlalchemy.orm import relationship
from sqlalchemy.sql import func
from datetim... | 24.619718 | 135 | 0.689931 | 689 | 5,244 | 5.201742 | 0.226415 | 0.021763 | 0.033482 | 0.030134 | 0.21317 | 0.187779 | 0.165458 | 0.165458 | 0.12221 | 0.103237 | 0 | 0.005233 | 0.161899 | 5,244 | 212 | 136 | 24.735849 | 0.810239 | 0.004005 | 0 | 0.180556 | 0 | 0 | 0.07303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0.090278 | 0.0625 | 0.020833 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
555e85fff069c33d2c0dbcedf7e370ab8d453c70 | 4,233 | py | Python | pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/errors.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/errors.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/errors.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | """
Numba-specific errors and warnings.
"""
from __future__ import print_function, division, absolute_import
import contextlib
from collections import defaultdict
import warnings
# Filled at the end
__all__ = []
class NumbaWarning(Warning):
"""
Base category for all Numba compiler warnings.
"""
class... | 25.654545 | 85 | 0.606426 | 455 | 4,233 | 5.496703 | 0.349451 | 0.019592 | 0.021991 | 0.029988 | 0.103958 | 0.036785 | 0.020792 | 0.020792 | 0 | 0 | 0 | 0 | 0.291519 | 4,233 | 164 | 86 | 25.810976 | 0.833945 | 0.21356 | 0 | 0.150685 | 0 | 0 | 0.030695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0.054795 | 0.054795 | 0 | 0.410959 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
555f174f0e1994472ae24561b83ed0e30a07adff | 1,127 | py | Python | pyroscope/__init__.py | pyroscope-io/pyroscope-python | 11e524cf8fc9f50278ce57a104b50083e7874973 | [
"Apache-2.0"
] | 9 | 2021-08-10T21:43:40.000Z | 2022-03-03T08:05:24.000Z | pyroscope/__init__.py | pyroscope-io/pyroscope-python | 11e524cf8fc9f50278ce57a104b50083e7874973 | [
"Apache-2.0"
] | 5 | 2021-07-09T10:18:44.000Z | 2022-03-31T07:55:25.000Z | pyroscope/__init__.py | pyroscope-io/pyroscope-python | 11e524cf8fc9f50278ce57a104b50083e7874973 | [
"Apache-2.0"
] | 1 | 2022-02-24T12:16:00.000Z | 2022-02-24T12:16:00.000Z | from collections import namedtuple
from contextlib import contextmanager
from pyroscope import agent
Config = namedtuple('Config', ('app_name', 'server_address',
'auth_token', 'sample_rate', 'with_subprocesses', 'log_level'))
class PyroscopeError(Exception):
pass
def configure(app_name, se... | 20.490909 | 123 | 0.66992 | 151 | 1,127 | 4.801325 | 0.377483 | 0.033103 | 0.06069 | 0.077241 | 0.343448 | 0.343448 | 0.285517 | 0.285517 | 0.124138 | 0.124138 | 0 | 0.004515 | 0.213842 | 1,127 | 54 | 124 | 20.87037 | 0.81377 | 0 | 0 | 0.176471 | 0 | 0 | 0.070985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.029412 | 0.088235 | 0.029412 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5563b03cae48943514ade1b2e264fcf1d9680051 | 497 | py | Python | utils/nms_wrapper.py | songheony/MOTDT | 923c5714e8097ed5a7e396881d857db361918e40 | [
"MIT"
] | null | null | null | utils/nms_wrapper.py | songheony/MOTDT | 923c5714e8097ed5a7e396881d857db361918e40 | [
"MIT"
] | null | null | null | utils/nms_wrapper.py | songheony/MOTDT | 923c5714e8097ed5a7e396881d857db361918e40 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import torch
from torchvision.ops import nms
def nms_detections(pred_... | 29.235294 | 58 | 0.575453 | 54 | 497 | 5.166667 | 0.62963 | 0.129032 | 0.16129 | 0.129032 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.138833 | 497 | 16 | 59 | 31.0625 | 0.642523 | 0.472837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5569cb462790645b6df1116ee4599cd641dfca72 | 1,922 | py | Python | oracle/modules/reddit.py | Toofifty/Oracle2 | aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d | [
"MIT"
] | 1 | 2015-07-15T15:24:54.000Z | 2015-07-15T15:24:54.000Z | oracle/modules/reddit.py | Toofifty/Oracle2 | aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d | [
"MIT"
] | null | null | null | oracle/modules/reddit.py | Toofifty/Oracle2 | aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d | [
"MIT"
] | null | null | null | """
Oracle 2.0 IRC Bot
reddit.py plugin module
http://toofifty.me/oracle
"""
import urllib, json
from format import BOLD, RESET
def _init(bot):
print '\t%s loaded' % __name__
def parsereddit(l, b, i):
"""
!d Parse a Reddit link into it's information
!a <link>
!r user
"""
def parselink(li... | 24.961039 | 75 | 0.531738 | 254 | 1,922 | 3.929134 | 0.370079 | 0.01002 | 0.009018 | 0.039078 | 0.034068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00687 | 0.318418 | 1,922 | 76 | 76 | 25.289474 | 0.754962 | 0.024454 | 0 | 0.043478 | 0 | 0 | 0.156516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5572b8ee99455a2c8a94810c616f943f3413029f | 413 | py | Python | 04_test_automation/nose/bisiesto.py | twiindan/api_lessons | d99691f27b4842113dea4c6414c5e4dacae14541 | [
"Apache-2.0"
] | null | null | null | 04_test_automation/nose/bisiesto.py | twiindan/api_lessons | d99691f27b4842113dea4c6414c5e4dacae14541 | [
"Apache-2.0"
] | null | null | null | 04_test_automation/nose/bisiesto.py | twiindan/api_lessons | d99691f27b4842113dea4c6414c5e4dacae14541 | [
"Apache-2.0"
] | 1 | 2020-07-16T09:49:47.000Z | 2020-07-16T09:49:47.000Z |
def es_bisiesto(year):
if not isinstance(year, int):
return "Error: Should be a integer"
if year < 0:
return "Error: Should be a positive number"
if year % 100 == 0:
if year % 400 == 0:
return 'Is leap year'
else:
return 'Is not leap year'
eli... | 18.772727 | 51 | 0.523002 | 57 | 413 | 3.77193 | 0.421053 | 0.148837 | 0.15814 | 0.176744 | 0.55814 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0 | 0.043478 | 0.387409 | 413 | 21 | 52 | 19.666667 | 0.806324 | 0 | 0 | 0.428571 | 0 | 0 | 0.282927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.5 | 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 |
55774c225b860c34ca81185f582f5fd3d64e2f4c | 75,477 | py | Python | release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/provision/__init__.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2019-01-13T09:19:10.000Z | 2019-02-15T01:21:02.000Z | release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/provision/__init__.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | null | null | null | release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/provision/__init__.py | zaion520/ATtomato | 4d48bb79f8d147f89a568cf18da9e0edc41f93fb | [
"FSFAP"
] | 2 | 2020-03-08T01:58:25.000Z | 2020-12-20T10:34:54.000Z |
# Unix SMB/CIFS implementation.
# backend code for provisioning a Samba4 server
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007-2010
# Copyright (C) Andrew Bartlett <abartlet@samba.org> 2008-2009
# Copyright (C) Oliver Liebel <oliver@itc.li> 2008-2009
#
# Based on the original in EJS:
# Copyright (C) Andrew T... | 39.107254 | 230 | 0.641719 | 9,256 | 75,477 | 5.096154 | 0.119706 | 0.008141 | 0.00848 | 0.008014 | 0.43587 | 0.370575 | 0.311172 | 0.269239 | 0.226161 | 0.197265 | 0 | 0.035161 | 0.252024 | 75,477 | 1,929 | 231 | 39.127527 | 0.800372 | 0.0661 | 0 | 0.278802 | 0 | 0.022273 | 0.202441 | 0.088144 | 0 | 0 | 0.001453 | 0 | 0.013057 | 0 | null | null | 0.034562 | 0.020737 | 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 |
557c65e73c2ac689b148e72d0650698c429018b4 | 661 | py | Python | kostalpiko/const.py | rcasula/KostalPyko | 6be06cd702c24d32795f39c9eaf36aaba746001b | [
"MIT"
] | null | null | null | kostalpiko/const.py | rcasula/KostalPyko | 6be06cd702c24d32795f39c9eaf36aaba746001b | [
"MIT"
] | null | null | null | kostalpiko/const.py | rcasula/KostalPyko | 6be06cd702c24d32795f39c9eaf36aaba746001b | [
"MIT"
] | 1 | 2022-02-01T15:04:09.000Z | 2022-02-01T15:04:09.000Z | BASE_INDICES = {
"current_power": 0,
"total_energy": 1,
"daily_energy": 2,
"string1_voltage": 3,
"l1_voltage": 4,
"string1_current": 5,
"l1_power": 6,
}
SINGLE_STRING_INDICES = {
**BASE_INDICES,
"status": 7
}
DOUBLE_STRING_INDICES = {
**BASE_INDICES,
"string2_voltage": 7,
... | 18.361111 | 26 | 0.586989 | 80 | 661 | 4.4875 | 0.4375 | 0.122563 | 0.142061 | 0.200557 | 0.406685 | 0.406685 | 0.406685 | 0.406685 | 0.406685 | 0.406685 | 0 | 0.093117 | 0.252648 | 661 | 36 | 27 | 18.361111 | 0.633603 | 0 | 0 | 0.333333 | 0 | 0 | 0.373112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
557f991d4c7d1acc85789cdd5089bab439efc730 | 460 | py | Python | Server/app/docs/v2/admin/excel/__init__.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 27 | 2018-01-14T08:07:18.000Z | 2020-01-20T14:21:17.000Z | Server/app/docs/v2/admin/excel/__init__.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 50 | 2018-02-12T12:51:33.000Z | 2018-08-28T00:48:31.000Z | Server/app/docs/v2/admin/excel/__init__.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 10 | 2018-03-31T16:30:32.000Z | 2021-03-02T10:30:31.000Z | from app.docs.v2 import jwt_header
def generate_excel_doc(type):
return {
'tags': ['[Admin] 신청 정보'],
'description': '{}신청 정보를 다운로드합니다.'.format(type),
'parameters': [jwt_header],
'responses': {
'200': {
'description': '{}신청 정보가 담긴 엑셀 파일과 Cache-Control: no... | 25.555556 | 102 | 0.473913 | 47 | 460 | 4.553191 | 0.787234 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024306 | 0.373913 | 460 | 17 | 103 | 27.058824 | 0.71875 | 0 | 0 | 0 | 1 | 0 | 0.332609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0.066667 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5582ef62b3bcd0a7b02639c69dae07c34738b407 | 8,845 | py | Python | Dalitz_simplified/optimisation/miranda/miranda_eval.py | weissercn/MLTools | 75dc566947437249ad077939941839126eb20016 | [
"MIT"
] | null | null | null | Dalitz_simplified/optimisation/miranda/miranda_eval.py | weissercn/MLTools | 75dc566947437249ad077939941839126eb20016 | [
"MIT"
] | null | null | null | Dalitz_simplified/optimisation/miranda/miranda_eval.py | weissercn/MLTools | 75dc566947437249ad077939941839126eb20016 | [
"MIT"
] | null | null | null |
"""
This script can be used to get the p value for the Miranda method (=chi squared). It takes input files with column vectors corresponding to
features and lables.
"""
print(__doc__)
import sys
sys.path.insert(0,'../..')
import os
from scipy import stats
import p_value_scoring_object
import numpy as np
import ma... | 40.949074 | 503 | 0.760995 | 1,532 | 8,845 | 3.894256 | 0.172977 | 0.013409 | 0.057325 | 0.075427 | 0.516929 | 0.474019 | 0.434127 | 0.410996 | 0.386188 | 0.372779 | 0 | 0.064588 | 0.086263 | 8,845 | 215 | 504 | 41.139535 | 0.673596 | 0.449633 | 0 | 0.054054 | 0 | 0 | 0.171569 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0.153153 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
558c225b5cf43b203ec3aa607a8bd5205e881fd2 | 3,607 | py | Python | rplugin/python3/tmuxdir/test_dirmngr.py | viniarck/tmuxdir.nvim | 9cc890c5c62f51363ae49060a40d041d84b28f6a | [
"Apache-2.0"
] | 23 | 2019-01-04T20:42:57.000Z | 2021-11-15T18:36:19.000Z | rplugin/python3/tmuxdir/test_dirmngr.py | viniarck/tmuxdir.nvim | 9cc890c5c62f51363ae49060a40d041d84b28f6a | [
"Apache-2.0"
] | 14 | 2018-11-03T20:28:52.000Z | 2021-04-16T12:53:48.000Z | rplugin/python3/tmuxdir/test_dirmngr.py | viniarck/tmuxdir.nvim | 9cc890c5c62f51363ae49060a40d041d84b28f6a | [
"Apache-2.0"
] | 1 | 2020-03-25T19:37:54.000Z | 2020-03-25T19:37:54.000Z | import os
from tmuxdir.dirmngr import ConfigHandler, DirMngr
import pytest
@pytest.fixture
def dir_mngr() -> DirMngr:
folder_name = "/tmp/tmuxdirtest/"
os.makedirs(folder_name, exist_ok=True)
cfg_handler = ConfigHandler(folder_name=folder_name)
yield DirMngr([], [".git"], cfg_handler=cfg_handler)
... | 37.185567 | 85 | 0.681175 | 509 | 3,607 | 4.500982 | 0.163065 | 0.10694 | 0.130947 | 0.078568 | 0.763422 | 0.708424 | 0.684854 | 0.625928 | 0.580096 | 0.546923 | 0 | 0.003444 | 0.194899 | 3,607 | 96 | 86 | 37.572917 | 0.785468 | 0 | 0 | 0.425 | 0 | 0 | 0.061824 | 0 | 0 | 0 | 0 | 0 | 0.2875 | 1 | 0.15 | false | 0.025 | 0.0375 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
558e45cbddf9dc334e408048addcb9f070e13c09 | 1,852 | py | Python | test/test_ude/communication/test_grpc_auth.py | aws-deepracer/ude | c9fbaa37a68aca6239ec9b132ff06be8ed883e5a | [
"Apache-2.0"
] | null | null | null | test/test_ude/communication/test_grpc_auth.py | aws-deepracer/ude | c9fbaa37a68aca6239ec9b132ff06be8ed883e5a | [
"Apache-2.0"
] | null | null | null | test/test_ude/communication/test_grpc_auth.py | aws-deepracer/ude | c9fbaa37a68aca6239ec9b132ff06be8ed883e5a | [
"Apache-2.0"
] | null | null | null | #################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). ... | 47.487179 | 81 | 0.468683 | 169 | 1,852 | 5.071006 | 0.579882 | 0.070012 | 0.030338 | 0.03734 | 0.070012 | 0.070012 | 0.070012 | 0 | 0 | 0 | 0 | 0.00349 | 0.38121 | 1,852 | 38 | 82 | 48.736842 | 0.744328 | 0.528078 | 0 | 0.222222 | 0 | 0 | 0.039246 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
559d762ef8682b8f3d8778f61a418e67681d0ac0 | 1,580 | py | Python | typish/classes/_subscriptable_type.py | georgeharker/typish | 1c043beb74d89e62b10339a2a964f60ec175adfa | [
"MIT"
] | 16 | 2019-08-03T13:57:17.000Z | 2021-11-08T11:51:52.000Z | typish/classes/_subscriptable_type.py | georgeharker/typish | 1c043beb74d89e62b10339a2a964f60ec175adfa | [
"MIT"
] | 27 | 2019-09-11T13:24:38.000Z | 2022-02-11T07:04:12.000Z | typish/classes/_subscriptable_type.py | georgeharker/typish | 1c043beb74d89e62b10339a2a964f60ec175adfa | [
"MIT"
] | 7 | 2019-11-18T16:50:09.000Z | 2021-11-01T14:34:39.000Z | class _SubscribedType(type):
"""
This class is a placeholder to let the IDE know the attributes of the
returned type after a __getitem__.
"""
__origin__ = None
__args__ = None
class SubscriptableType(type):
"""
This metaclass will allow a type to become subscriptable.
>>> class So... | 30.980392 | 76 | 0.613924 | 167 | 1,580 | 5.131737 | 0.335329 | 0.046674 | 0.044341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279114 | 1,580 | 50 | 77 | 31.6 | 0.752414 | 0.249367 | 0 | 0 | 0 | 0 | 0.073019 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.137931 | false | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
55a485799ea46705ec9d6940b70840c7c4bdfba7 | 938 | py | Python | eulerproject.py | xiangyuwu/euler | 0afb36c53642aeac3244b12ae80eda1f545bb9e3 | [
"MIT"
] | null | null | null | eulerproject.py | xiangyuwu/euler | 0afb36c53642aeac3244b12ae80eda1f545bb9e3 | [
"MIT"
] | null | null | null | eulerproject.py | xiangyuwu/euler | 0afb36c53642aeac3244b12ae80eda1f545bb9e3 | [
"MIT"
] | null | null | null | import math
class PrimeNumbers(object):
def __init__(self):
pass
def determinePrime(self, testnumber):
primestate = True
list1 = range(3, int(math.sqrt(testnumber)) + 1)
divisor_list = [element for element in list1 if element % 2 != 0]
divisor_list.insert(0, 2)
... | 29.3125 | 73 | 0.560768 | 98 | 938 | 5.204082 | 0.44898 | 0.086275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022034 | 0.371002 | 938 | 31 | 74 | 30.258065 | 0.842373 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.071429 | 0.035714 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
55a8baea1c7c5fa789f5a3f0bb9803998f893382 | 660 | py | Python | DQN/AtariBreakoutEnv.py | viv92/wildML_RLimplementations | 06681b1e680f43634fae209341de1d2dffc87d48 | [
"MIT"
] | 1 | 2019-12-10T07:02:15.000Z | 2019-12-10T07:02:15.000Z | DQN/AtariBreakoutEnv.py | viv92/rl-implementations | 06681b1e680f43634fae209341de1d2dffc87d48 | [
"MIT"
] | null | null | null | DQN/AtariBreakoutEnv.py | viv92/rl-implementations | 06681b1e680f43634fae209341de1d2dffc87d48 | [
"MIT"
] | null | null | null | import gym
import numpy as np
from matplotlib import pyplot as plt
env = gym.envs.make("Breakout-v0")
print("Action space size: {}".format(env.action_space.n))
#print(env.get_action_meanings())
observation = env.reset()
print("Observation space shape: {}".format(observation.shape))
plt.figure()
plt.imshow(env.render... | 24.444444 | 64 | 0.657576 | 94 | 660 | 4.521277 | 0.5 | 0.077647 | 0.065882 | 0.070588 | 0.183529 | 0.183529 | 0.183529 | 0.183529 | 0.183529 | 0 | 0 | 0.007491 | 0.190909 | 660 | 26 | 65 | 25.384615 | 0.78839 | 0.066667 | 0 | 0.105263 | 0 | 0 | 0.131922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
55b2ba07e03156409ca7c6de66b8ef0f38eca90d | 638 | py | Python | scripts/task_space_force_control.py | MatthiasDR96/industrial_robotics_simulator | 9039e7a581ce97c583c73294e9937664de90530b | [
"MIT"
] | 1 | 2020-10-21T15:32:41.000Z | 2020-10-21T15:32:41.000Z | scripts/task_space_force_control.py | MatthiasDR96/industrial_robotics_simulator | 9039e7a581ce97c583c73294e9937664de90530b | [
"MIT"
] | null | null | null | scripts/task_space_force_control.py | MatthiasDR96/industrial_robotics_simulator | 9039e7a581ce97c583c73294e9937664de90530b | [
"MIT"
] | null | null | null | import math
from src.Simulator import *
from src.arms import *
from src.controllers.task_space_force_controller import *
""" This script uses force control and simulates contact with a wall at x=1.1m."""
# Create robot
q_init = np.array([[math.pi / 2], [-math.pi / 2]])
robot = TwoDofArm()
robot.set_q_init(q_init)
#... | 25.52 | 82 | 0.724138 | 106 | 638 | 4.216981 | 0.490566 | 0.044743 | 0.060403 | 0.071588 | 0.024609 | 0.024609 | 0.024609 | 0.024609 | 0.024609 | 0.024609 | 0 | 0.032668 | 0.136364 | 638 | 24 | 83 | 26.583333 | 0.778584 | 0.169279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55bc03f7a7a347f77f4cf0826a29add005b006d6 | 2,224 | py | Python | lpjguesstools/__init__.py | lukasbaumbach/lpjguesstools | f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3 | [
"BSD-3-Clause"
] | 2 | 2020-08-03T11:33:00.000Z | 2021-07-05T21:00:46.000Z | lpjguesstools/__init__.py | lukasbaumbach/lpjguesstools | f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3 | [
"BSD-3-Clause"
] | 8 | 2020-08-03T12:45:31.000Z | 2021-02-23T19:51:32.000Z | lpjguesstools/__init__.py | lukasbaumbach/lpjguesstools | f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3 | [
"BSD-3-Clause"
] | 2 | 2020-08-03T12:11:43.000Z | 2022-01-29T10:59:00.000Z | import logging
from logging.handlers import RotatingFileHandler
import numpy as np
import sys
try: # python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
logging.getLogger(__name__).addHandler(NullHandler())
# TO... | 32.231884 | 93 | 0.701439 | 262 | 2,224 | 5.870229 | 0.442748 | 0.03251 | 0.041612 | 0.024707 | 0.208062 | 0.156047 | 0.156047 | 0.156047 | 0.131339 | 0.131339 | 0 | 0.010776 | 0.165468 | 2,224 | 68 | 94 | 32.705882 | 0.817888 | 0.084083 | 0 | 0.285714 | 0 | 0.040816 | 0.180069 | 0.062654 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.061224 | false | 0.020408 | 0.163265 | 0 | 0.326531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.