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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b363d071b7b96e4d83f123f29e5e591eea11591 | 2,977 | py | Python | tests/features/test_pipeline_loading.py | albact7/MLBlocks | e555e2740f8f316b438983f15b620bcfb54fb838 | [
"MIT"
] | 78 | 2018-06-06T02:34:18.000Z | 2020-09-16T15:27:21.000Z | tests/features/test_pipeline_loading.py | albact7/MLBlocks | e555e2740f8f316b438983f15b620bcfb54fb838 | [
"MIT"
] | 92 | 2018-05-17T16:27:18.000Z | 2020-09-16T13:50:04.000Z | tests/features/test_pipeline_loading.py | albact7/MLBlocks | e555e2740f8f316b438983f15b620bcfb54fb838 | [
"MIT"
] | 32 | 2018-06-15T01:59:55.000Z | 2020-08-06T16:04:35.000Z | from unittest import TestCase
from mlblocks import MLPipeline
class TestMLPipeline(TestCase):
def test_dict(self):
pipeline_dict = {
'primitives': [
'sklearn.ensemble.RandomForestClassifier'
],
'init_params': {
'sklearn.ensemble.RandomF... | 28.084906 | 82 | 0.507894 | 215 | 2,977 | 6.883721 | 0.162791 | 0.202703 | 0.218919 | 0.227027 | 0.836486 | 0.800676 | 0.800676 | 0.800676 | 0.688514 | 0.653378 | 0 | 0.023678 | 0.38999 | 2,977 | 105 | 83 | 28.352381 | 0.7913 | 0 | 0 | 0.466667 | 0 | 0 | 0.28082 | 0.229762 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.044444 | false | 0 | 0.022222 | 0 | 0.077778 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
4b51baad578d8a20ad0d8f5c7db7a9e21e526f69 | 9,887 | py | Python | assertpy/base.py | rascaler/assertpy | 668719d3f034475d95de0f0a0cb680c7cfa8b43c | [
"Apache-2.0"
] | null | null | null | assertpy/base.py | rascaler/assertpy | 668719d3f034475d95de0f0a0cb680c7cfa8b43c | [
"Apache-2.0"
] | null | null | null | assertpy/base.py | rascaler/assertpy | 668719d3f034475d95de0f0a0cb680c7cfa8b43c | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
from abc import ABCMeta, abstractmethod, ABC
class ExceptionConvertor(metaclass=ABCMeta):
@abstractmethod
def get_exception(self, obj):
pass
class Comparator(metaclass=ABCMeta):
@abstractmethod
def compare(self, left, right) -> int:
pas... | 28.741279 | 137 | 0.654395 | 1,199 | 9,887 | 5.146789 | 0.075897 | 0.092368 | 0.070005 | 0.087506 | 0.82515 | 0.784638 | 0.747043 | 0.732134 | 0.693081 | 0.666991 | 0 | 0.003745 | 0.27076 | 9,887 | 343 | 138 | 28.825073 | 0.85215 | 0.004248 | 0 | 0.721805 | 0 | 0 | 0.003659 | 0 | 0 | 0 | 0 | 0 | 0.041353 | 1 | 0.236842 | false | 0.323308 | 0.003759 | 0.007519 | 0.492481 | 0.007519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
2998c362fe6a57b38f89b7b6efc9675a169faf72 | 3,066 | py | Python | PLC/PlcValidator.py | dangxuanvuong98/pineapples_harvester | e53f5a681a2f128383215b4b1fd85a5f728bb676 | [
"MIT"
] | null | null | null | PLC/PlcValidator.py | dangxuanvuong98/pineapples_harvester | e53f5a681a2f128383215b4b1fd85a5f728bb676 | [
"MIT"
] | 7 | 2020-09-25T22:35:33.000Z | 2022-03-12T00:20:31.000Z | PLC/PlcValidator.py | dangxuanvuong98/pineapples_harvester | e53f5a681a2f128383215b4b1fd85a5f728bb676 | [
"MIT"
] | null | null | null | '''
File này gồm 2 hàm kiểm tra tọa độ trước khi gửi qua serial
'''
# kiểm tra tọa độ có hợp lệ không
def plc1CoordinateValidator(raw_x, raw_y, raw_z):
#y = int(raw_y)-59-21, -59 (mép ngoài) là khoảng cách từ camera đến khung, 21 từ khung đến trục thân xilanh trục y
#231 khoảng cách hai mép trong, 59 từ cam đến... | 41.432432 | 118 | 0.563601 | 606 | 3,066 | 2.818482 | 0.191419 | 0.04918 | 0.058548 | 0.031616 | 0.943794 | 0.943794 | 0.943794 | 0.943794 | 0.943794 | 0.912178 | 0 | 0.111723 | 0.348989 | 3,066 | 74 | 119 | 41.432432 | 0.743988 | 0.516634 | 0 | 0.892857 | 0 | 0 | 0.004172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
29b1c2c2bf2d0ade833b546149dfe658e968ef84 | 3,217 | py | Python | src/genie/libs/parser/iosxe/tests/ShowClnsIsNeighborsDetail/cli/equal/golden_output_3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowClnsIsNeighborsDetail/cli/equal/golden_output_3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowClnsIsNeighborsDetail/cli/equal/golden_output_3_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"tag": {
"test": {
"system_id": {
"R2_xr": {
"type": {
"L1L2": {
"area_address": ["49.0001"],
"circuit_id": "R1_xe.01",
"format": "P... | 39.716049 | 74 | 0.254896 | 183 | 3,217 | 4.344262 | 0.333333 | 0.040252 | 0.060377 | 0.095597 | 0.881761 | 0.881761 | 0.783648 | 0.783648 | 0.740881 | 0.740881 | 0 | 0.148499 | 0.606466 | 3,217 | 80 | 75 | 40.2125 | 0.479463 | 0 | 0 | 0.6 | 0 | 0 | 0.264843 | 0.015542 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
29f0323a54f8e96513e1c1019c896d7518a8c1da | 194 | py | Python | ailabtools/keras/__init__.py | RyanDam/ailabtools | 5693a7e59b3c6ff94d99b9aba7bde7239c665a45 | [
"MIT"
] | null | null | null | ailabtools/keras/__init__.py | RyanDam/ailabtools | 5693a7e59b3c6ff94d99b9aba7bde7239c665a45 | [
"MIT"
] | null | null | null | ailabtools/keras/__init__.py | RyanDam/ailabtools | 5693a7e59b3c6ff94d99b9aba7bde7239c665a45 | [
"MIT"
] | null | null | null | from .pairgenerator import load_img_func
from .pairgenerator import PairDataGenerator
from .classify_trainer import train_classifier, train_zaco_classifier
from .tflite_model import TFLiteModel
| 38.8 | 69 | 0.886598 | 24 | 194 | 6.875 | 0.625 | 0.206061 | 0.278788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087629 | 194 | 4 | 70 | 48.5 | 0.932203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4b17affa6d45e50ea3fc084a30dd5de20288ed2d | 117,314 | py | Python | swagger_client/apis/booking_api.py | scubawhere/scubawhere-api-python-client | 9f8578e251492c7667f785df7b7c9d66e71f5c8e | [
"Apache-2.0"
] | null | null | null | swagger_client/apis/booking_api.py | scubawhere/scubawhere-api-python-client | 9f8578e251492c7667f785df7b7c9d66e71f5c8e | [
"Apache-2.0"
] | null | null | null | swagger_client/apis/booking_api.py | scubawhere/scubawhere-api-python-client | 9f8578e251492c7667f785df7b7c9d66e71f5c8e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Scubawhere API Documentation
This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API
OpenAPI spec version: 1.0.0
... | 40.411299 | 227 | 0.564843 | 11,832 | 117,314 | 5.371704 | 0.024172 | 0.065452 | 0.029422 | 0.029453 | 0.948252 | 0.93856 | 0.933006 | 0.929088 | 0.913591 | 0.902089 | 0 | 0.004445 | 0.353786 | 117,314 | 2,902 | 228 | 40.425224 | 0.83394 | 0.321309 | 0 | 0.782577 | 0 | 0 | 0.175755 | 0.030992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038799 | false | 0 | 0.005124 | 0 | 0.101757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4b26ae191e082e55133e2d52c73c69a2e1e6de65 | 2,757 | py | Python | ckanext/metadata/logic/auth/get.py | SAEONData/ckanext-metadata | af1a137e5d924f05ea1835b81f36f808700d3aa7 | [
"MIT"
] | null | null | null | ckanext/metadata/logic/auth/get.py | SAEONData/ckanext-metadata | af1a137e5d924f05ea1835b81f36f808700d3aa7 | [
"MIT"
] | 76 | 2018-04-10T12:51:56.000Z | 2021-02-22T11:41:03.000Z | ckanext/metadata/logic/auth/get.py | SAEONData/ckanext-metadata | af1a137e5d924f05ea1835b81f36f808700d3aa7 | [
"MIT"
] | null | null | null | # encoding: utf-8
import logging
log = logging.getLogger(__name__)
def metadata_standard_show(context, data_dict):
return {'success': True}
def metadata_schema_show(context, data_dict):
return {'success': True}
def infrastructure_show(context, data_dict):
return {'success': True}
def metadata_coll... | 20.574627 | 65 | 0.750091 | 353 | 2,757 | 5.507082 | 0.116147 | 0.18107 | 0.246914 | 0.345679 | 0.942387 | 0.942387 | 0.942387 | 0.942387 | 0.884259 | 0.584362 | 0 | 0.000423 | 0.142909 | 2,757 | 133 | 66 | 20.729323 | 0.82226 | 0.005441 | 0 | 0.484848 | 0 | 0 | 0.081752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.484848 | false | 0 | 0.015152 | 0.484848 | 0.984848 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 10 |
d99b7e985d79df0e3fc06e77403ea7bff3febbf6 | 20,611 | py | Python | src/old/processFeatureFile.py | shashankpr/sleep-classification | 302a0eb50ddf64ab51006a93a58a2a2fe9732a8c | [
"MIT"
] | 3 | 2019-03-31T04:20:58.000Z | 2021-12-30T19:26:59.000Z | src/old/processFeatureFile.py | shashankpr/sleep-classification | 302a0eb50ddf64ab51006a93a58a2a2fe9732a8c | [
"MIT"
] | 1 | 2021-02-03T16:52:54.000Z | 2021-02-03T16:52:54.000Z | src/old/processFeatureFile.py | shashankpr/sleep-classification | 302a0eb50ddf64ab51006a93a58a2a2fe9732a8c | [
"MIT"
] | 1 | 2017-12-06T13:07:22.000Z | 2017-12-06T13:07:22.000Z | from sklearn import preprocessing
import matplotlib as plt
from sklearn.externals import joblib
from sklearn.pipeline import Pipeline
import pickle
# from sknn.mlp import Classifier, Layer
import pandas as pd
import numpy as np
import csv
import datetime as dt
def set_classifier(feature_files, label_f... | 37.680073 | 98 | 0.527485 | 2,290 | 20,611 | 4.48821 | 0.056332 | 0.046702 | 0.044269 | 0.04135 | 0.882759 | 0.868457 | 0.8561 | 0.850068 | 0.846663 | 0.842284 | 0 | 0.009178 | 0.318034 | 20,611 | 546 | 99 | 37.749084 | 0.72204 | 0.060744 | 0 | 0.881007 | 0 | 0 | 0.155691 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020595 | null | null | 0.318078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
d9d57dff5e811dfa8e1ffe6772ae4db88911c982 | 58,212 | py | Python | PointNetGPD/model/dataset.py | MrRen-sdhm/PointNetGPD | b846164814e4fa586eefc7e23a562dcda419fe9b | [
"MIT"
] | null | null | null | PointNetGPD/model/dataset.py | MrRen-sdhm/PointNetGPD | b846164814e4fa586eefc7e23a562dcda419fe9b | [
"MIT"
] | null | null | null | PointNetGPD/model/dataset.py | MrRen-sdhm/PointNetGPD | b846164814e4fa586eefc7e23a562dcda419fe9b | [
"MIT"
] | null | null | null | import os
import glob
import pickle
import pcl
import torch
import torch.utils.data
import torch.nn as nn
import numpy as np
# global configurations:
from autolab_core import YamlConfig
from dexnet.grasping import GpgGraspSampler
from dexnet.grasping import RobotGripper
home_dir = os.environ['HOME']
yaml_config = Ya... | 42.929204 | 126 | 0.573473 | 8,324 | 58,212 | 3.757208 | 0.060788 | 0.009592 | 0.01295 | 0.015476 | 0.873829 | 0.862062 | 0.850456 | 0.842654 | 0.836611 | 0.829289 | 0 | 0.03867 | 0.294991 | 58,212 | 1,356 | 127 | 42.929204 | 0.723392 | 0.098158 | 0 | 0.895794 | 0 | 0 | 0.024647 | 0.005936 | 0 | 0 | 0 | 0.000737 | 0.007648 | 1 | 0.030593 | false | 0 | 0.013384 | 0.003824 | 0.096558 | 0.008604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d9e3ad219bf1e4e92d5f3a19c1cec08bb2907d28 | 578 | py | Python | CursoEmVideo/pythonProject/ex109/moeda.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/ex109/moeda.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/ex109/moeda.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null |
def metade(valor = 0, format = False):
resp = valor/2
return resp if format is False else money(resp)
def dobro(valor = 0, format = False):
resp = valor*2
return resp if format is False else money(resp)
def dez_porcento(valor = 0, format = False):
resp = valor + (valor*10)/100
return resp i... | 25.130435 | 51 | 0.647059 | 90 | 578 | 4.133333 | 0.277778 | 0.080645 | 0.129032 | 0.182796 | 0.811828 | 0.811828 | 0.811828 | 0.811828 | 0.602151 | 0.602151 | 0 | 0.040089 | 0.223183 | 578 | 23 | 52 | 25.130435 | 0.788419 | 0 | 0 | 0.285714 | 0 | 0 | 0.038062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 8 |
8a2a0966045872701795e9a52e9bbf7e3f271178 | 1,431 | py | Python | jackpot/models.py | clonetech/jackpot | 5033d795cdd40f738330a01de7b197ec1d521e6c | [
"BSD-3-Clause"
] | null | null | null | jackpot/models.py | clonetech/jackpot | 5033d795cdd40f738330a01de7b197ec1d521e6c | [
"BSD-3-Clause"
] | null | null | null | jackpot/models.py | clonetech/jackpot | 5033d795cdd40f738330a01de7b197ec1d521e6c | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
import datetime
from django.conf import settings
from django.urls import reverse
class Freetips(models.Model):
published_date = models.DateTimeField('Date Published')
country = models.CharField(max_... | 34.902439 | 110 | 0.715584 | 179 | 1,431 | 5.541899 | 0.256983 | 0.181452 | 0.217742 | 0.290323 | 0.8125 | 0.8125 | 0.8125 | 0.8125 | 0.8125 | 0.8125 | 0 | 0.033306 | 0.160727 | 1,431 | 40 | 111 | 35.775 | 0.792673 | 0 | 0 | 0.733333 | 0 | 0 | 0.0587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0.066667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 10 |
8a754853523411880c3e98f4a848bcc44a1a2c2e | 143,226 | py | Python | tests/unit/pypyr/dsl_test.py | Reskov/pypyr | 67bc1795493c19e648e12f776a644f92e3bd2fc8 | [
"Apache-2.0"
] | null | null | null | tests/unit/pypyr/dsl_test.py | Reskov/pypyr | 67bc1795493c19e648e12f776a644f92e3bd2fc8 | [
"Apache-2.0"
] | null | null | null | tests/unit/pypyr/dsl_test.py | Reskov/pypyr | 67bc1795493c19e648e12f776a644f92e3bd2fc8 | [
"Apache-2.0"
] | null | null | null | """dsl.py unit tests."""
from copy import deepcopy
from io import StringIO
import logging
import pytest
from unittest.mock import call, patch, MagicMock
from tests.common.utils import DeepCopyMagicMock, patch_logger
import ruamel.yaml as yamler
from ruamel.yaml.comments import CommentedMap, CommentedSeq, TaggedScalar
... | 33.510997 | 79 | 0.606922 | 17,448 | 143,226 | 4.770117 | 0.032611 | 0.022588 | 0.021411 | 0.022829 | 0.863461 | 0.837857 | 0.808144 | 0.779067 | 0.752875 | 0.740235 | 0 | 0.019826 | 0.270656 | 143,226 | 4,273 | 80 | 33.518839 | 0.776922 | 0.123392 | 0 | 0.738621 | 0 | 0.001004 | 0.198205 | 0.025924 | 0 | 0 | 0 | 0 | 0.247657 | 1 | 0.059906 | false | 0.000335 | 0.00502 | 0 | 0.0666 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8a90e94ee26a9d59439387104b0f656edef77023 | 17,254 | py | Python | cinder/tests/unit/scheduler/test_capacity_weigher.py | helenwalsh/cinder | 307fccea4cc9c6496334b0fe137206cb48499bd5 | [
"Apache-2.0"
] | 571 | 2015-01-01T17:47:26.000Z | 2022-03-23T07:46:36.000Z | cinder/tests/unit/scheduler/test_capacity_weigher.py | BelieveInFuture/cinder | fff95fa6a68a054488ee087b6e31f4f5e28209dc | [
"Apache-2.0"
] | 37 | 2015-01-22T23:27:04.000Z | 2021-02-05T16:38:48.000Z | cinder/tests/unit/scheduler/test_capacity_weigher.py | BelieveInFuture/cinder | fff95fa6a68a054488ee087b6e31f4f5e28209dc | [
"Apache-2.0"
] | 841 | 2015-01-04T17:17:11.000Z | 2022-03-31T12:06:51.000Z | # Copyright 2011-2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 41.080952 | 78 | 0.591805 | 1,986 | 17,254 | 4.877644 | 0.111279 | 0.057809 | 0.062145 | 0.055745 | 0.801487 | 0.788583 | 0.778053 | 0.77444 | 0.769588 | 0.750077 | 0 | 0.098519 | 0.295815 | 17,254 | 419 | 79 | 41.178998 | 0.698765 | 0.364611 | 0 | 0.71831 | 0 | 0 | 0.13985 | 0.051192 | 0 | 0 | 0 | 0 | 0.126761 | 1 | 0.051643 | false | 0 | 0.042254 | 0 | 0.107981 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8ab2a3bb0b0c259dbbd1fc7999241244a9e4e859 | 115 | py | Python | cryptoapi/base/__init__.py | edwinschrubb/cryptoapi | 0b4351560c4d55a3f38847f94f82c0a34afe87bc | [
"MIT"
] | 9 | 2020-08-07T04:12:45.000Z | 2022-03-15T03:28:43.000Z | cryptoapi/base/__init__.py | edwinschrubb/cryptoapi | 0b4351560c4d55a3f38847f94f82c0a34afe87bc | [
"MIT"
] | null | null | null | cryptoapi/base/__init__.py | edwinschrubb/cryptoapi | 0b4351560c4d55a3f38847f94f82c0a34afe87bc | [
"MIT"
] | 4 | 2020-08-07T08:48:22.000Z | 2021-12-23T05:18:24.000Z | from cryptoapi.base import errors
from cryptoapi.base import exchange
__all__ = exchange.__all__ + errors.__all__
| 23 | 43 | 0.826087 | 15 | 115 | 5.533333 | 0.466667 | 0.313253 | 0.409639 | 0.554217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 115 | 4 | 44 | 28.75 | 0.821782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 7 |
8ac8e5ffd478d31fd150c66546b4818f12f3630d | 95 | py | Python | lp3thw/ex3c.py | Herne/pythonplayground | c321ebbfe0480b36df077425ba2756adac480ac9 | [
"MIT"
] | 1 | 2017-05-01T10:13:02.000Z | 2017-05-01T10:13:02.000Z | lp3thw/ex3c.py | Herne/pythonplayground | c321ebbfe0480b36df077425ba2756adac480ac9 | [
"MIT"
] | null | null | null | lp3thw/ex3c.py | Herne/pythonplayground | c321ebbfe0480b36df077425ba2756adac480ac9 | [
"MIT"
] | null | null | null | # Calculate credit card bill
print ("April 28 Credit Card Bill")
print (100 + 200 + 300 + 400) | 31.666667 | 35 | 0.694737 | 15 | 95 | 4.4 | 0.733333 | 0.30303 | 0.424242 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0.2 | 95 | 3 | 36 | 31.666667 | 0.684211 | 0.273684 | 0 | 0 | 0 | 0 | 0.373134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
8acff3701fc0760dc146879d59281c6b197d0e26 | 8,391 | py | Python | isi_sdk_8_2_2/isi_sdk_8_2_2/api/remotesupport_api.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 24 | 2018-06-22T14:13:23.000Z | 2022-03-23T01:21:26.000Z | isi_sdk_8_2_2/isi_sdk_8_2_2/api/remotesupport_api.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 46 | 2018-04-30T13:28:22.000Z | 2022-03-21T21:11:07.000Z | isi_sdk_8_2_2/isi_sdk_8_2_2/api/remotesupport_api.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 29 | 2018-06-19T00:14:04.000Z | 2022-02-08T17:51:19.000Z | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 9
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and pyth... | 37.293333 | 150 | 0.634847 | 910 | 8,391 | 5.578022 | 0.171429 | 0.163121 | 0.057132 | 0.028369 | 0.85067 | 0.826438 | 0.800236 | 0.785264 | 0.7829 | 0.762017 | 0 | 0.016918 | 0.281492 | 8,391 | 224 | 151 | 37.459821 | 0.825012 | 0.333929 | 0 | 0.714286 | 1 | 0 | 0.182418 | 0.090239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
76d1585b196750f45acd09d572152a68b84dc932 | 50,825 | py | Python | ocbind/interfaces/interface/ethernet/switched_vlan/state/__init__.py | SeanCondon/onos-config-demo | 0789d397b46fd5cda512ae7fffe35e1a4bfdfdbe | [
"Apache-2.0"
] | 1 | 2019-08-01T17:42:57.000Z | 2019-08-01T17:42:57.000Z | ocbind/interfaces/interface/ethernet/switched_vlan/state/__init__.py | SeanCondon/onos-config-demo | 0789d397b46fd5cda512ae7fffe35e1a4bfdfdbe | [
"Apache-2.0"
] | 1 | 2021-05-26T16:38:04.000Z | 2021-05-26T16:38:04.000Z | ocbind/interfaces/interface/ethernet/switched_vlan/state/__init__.py | SeanCondon/onos-config-demo | 0789d397b46fd5cda512ae7fffe35e1a4bfdfdbe | [
"Apache-2.0"
] | 4 | 2019-07-24T16:52:39.000Z | 2021-12-03T02:08:13.000Z | # -*- coding: utf-8 -*-
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBoo... | 69.718793 | 713 | 0.716006 | 7,123 | 50,825 | 4.893865 | 0.032571 | 0.033564 | 0.043375 | 0.030982 | 0.988095 | 0.98187 | 0.98187 | 0.98187 | 0.98187 | 0.98187 | 0 | 0.024406 | 0.139813 | 50,825 | 728 | 714 | 69.81456 | 0.772936 | 0.232976 | 0 | 0.950649 | 0 | 0.054545 | 0.351202 | 0.169508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.041558 | 0 | 0.267532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
76d45ea7c536b046d061963ad67ac03aa0a01be2 | 1,622 | py | Python | REST/rest-api-sections-master/section2/8_static_class_methods.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | 2 | 2019-10-03T17:26:17.000Z | 2021-05-09T01:00:55.000Z | REST/rest-api-sections-master/section2/8_static_class_methods.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | REST/rest-api-sections-master/section2/8_static_class_methods.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null |
class Student:
def __init__(self, name, school):
self.name = name
self.school = school
self.marks = []
def average(self):
return sum(self.marks) / len(self.marks)
def go_to_school(self):
return "I'm going to {}".format(self.school)
anna = Student("Anna", "Oxford")... | 20.024691 | 52 | 0.614057 | 214 | 1,622 | 4.485981 | 0.121495 | 0.1125 | 0.09375 | 0.079167 | 0.86875 | 0.86875 | 0.832292 | 0.832292 | 0.832292 | 0.832292 | 0 | 0 | 0.240444 | 1,622 | 80 | 53 | 20.275 | 0.779221 | 0 | 0 | 0.849057 | 0 | 0 | 0.080695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0 | 0 | 0.150943 | 0.45283 | 0.150943 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 9 |
76d9d4438546f141b676d06ec608310735aab11f | 55,307 | py | Python | Rules.py | ShadoMagi/OoT-Randomizer | f9abb00a299e2f50f52fee4962047f8ab7f84975 | [
"MIT"
] | null | null | null | Rules.py | ShadoMagi/OoT-Randomizer | f9abb00a299e2f50f52fee4962047f8ab7f84975 | [
"MIT"
] | null | null | null | Rules.py | ShadoMagi/OoT-Randomizer | f9abb00a299e2f50f52fee4962047f8ab7f84975 | [
"MIT"
] | null | null | null | import collections
import logging
def set_rules(world):
global_rules(world)
if world.bridge == 'medallions':
# require all medallions to form the bridge
set_rule(world.get_entrance('Rainbow Bridge'), lambda state: state.has('Forest Medallion') and state.has('Fire Medallion') and state.has('Wa... | 131.683333 | 540 | 0.738388 | 8,433 | 55,307 | 4.728804 | 0.063323 | 0.143437 | 0.107127 | 0.133908 | 0.898566 | 0.882341 | 0.849792 | 0.787477 | 0.755028 | 0.70174 | 0 | 0.005994 | 0.116188 | 55,307 | 419 | 541 | 131.997613 | 0.809824 | 0.018063 | 0 | 0 | 0 | 0 | 0.335488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020305 | false | 0.015228 | 0.005076 | 0 | 0.035533 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
76fbe9a992b337f707ea9b87cbc7a483ace7f569 | 22,095 | py | Python | dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/test/test_update_hooks.py | kostenickj/lumberyard | e881f3023cc1840650eb7b133e605881d1d4330d | [
"AML"
] | 1 | 2019-02-12T06:44:50.000Z | 2019-02-12T06:44:50.000Z | dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/test/test_update_hooks.py | santosh90n/lumberyard-1 | 9608bcf905bb60e9f326bd3fe8297381c22d83a6 | [
"AML"
] | null | null | null | dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/test/test_update_hooks.py | santosh90n/lumberyard-1 | 9608bcf905bb60e9f326bd3fe8297381c22d83a6 | [
"AML"
] | null | null | null | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the 'License'). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 59.555256 | 240 | 0.749491 | 3,028 | 22,095 | 4.918758 | 0.070013 | 0.198133 | 0.154089 | 0.121257 | 0.870418 | 0.830804 | 0.801329 | 0.781657 | 0.770847 | 0.753256 | 0 | 0.007159 | 0.152885 | 22,095 | 370 | 241 | 59.716216 | 0.788588 | 0.051369 | 0 | 0.478431 | 0 | 0.047059 | 0.351072 | 0.212631 | 0 | 0 | 0 | 0.002703 | 0.082353 | 0 | null | null | 0 | 0.027451 | null | null | 0.043137 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
6a60d30a37a7de5af94bcb9ce6ea6d34494fdc9a | 156 | py | Python | tests/__init__.py | 0xOmarA/RadixLib | 85d75a47d4c4df4c1a319b74857ae2c513933623 | [
"MIT"
] | 32 | 2022-01-12T16:52:28.000Z | 2022-03-24T18:05:47.000Z | tests/__init__.py | 0xOmarA/RadixLib | 85d75a47d4c4df4c1a319b74857ae2c513933623 | [
"MIT"
] | 3 | 2022-01-12T17:01:55.000Z | 2022-02-12T15:14:16.000Z | tests/__init__.py | 0xOmarA/RadixLib | 85d75a47d4c4df4c1a319b74857ae2c513933623 | [
"MIT"
] | 1 | 2022-01-21T04:28:07.000Z | 2022-01-21T04:28:07.000Z | # type: ignore
from tests.api_types import *
from tests.actions import *
from tests.test_derive import TestDerive
from tests.test_signer import TestSigner | 22.285714 | 40 | 0.820513 | 23 | 156 | 5.434783 | 0.565217 | 0.288 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 156 | 7 | 41 | 22.285714 | 0.919118 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6a8e338bc517cff15941cb84ef594bbb6a62e0a3 | 303 | py | Python | rastervision/v2/core/runner/__init__.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 1 | 2019-11-07T10:02:23.000Z | 2019-11-07T10:02:23.000Z | rastervision/v2/core/runner/__init__.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | rastervision/v2/core/runner/__init__.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
from rastervision.v2.core.runner.aws_batch_runner import (AWSBatchRunner,
AWS_BATCH)
from rastervision.v2.core.runner.inprocess_runner import (InProcessRunner,
INPROCESS)
| 43.285714 | 74 | 0.518152 | 24 | 303 | 6.375 | 0.541667 | 0.20915 | 0.235294 | 0.287582 | 0.366013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.429043 | 303 | 6 | 75 | 50.5 | 0.867052 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
6a8f37da262a5847c49109314f8e97f655a4d252 | 28,934 | py | Python | src/FTR_trainer.py | DQiaole/ZITS | 5f7a060167790789d5e29a3d14d3c2ef8a34e765 | [
"Apache-2.0"
] | 40 | 2022-03-02T06:12:43.000Z | 2022-03-30T02:17:02.000Z | src/FTR_trainer.py | DQiaole/ZITS | 5f7a060167790789d5e29a3d14d3c2ef8a34e765 | [
"Apache-2.0"
] | 6 | 2022-03-06T03:53:14.000Z | 2022-03-31T06:36:34.000Z | src/FTR_trainer.py | DQiaole/ZITS | 5f7a060167790789d5e29a3d14d3c2ef8a34e765 | [
"Apache-2.0"
] | 5 | 2022-03-04T06:39:44.000Z | 2022-03-28T04:58:32.000Z | import time
import torch
from torch.utils.data import DataLoader, RandomSampler
from torch.utils.data.distributed import DistributedSampler
from tqdm import tqdm
from datasets.dataset_FTR import *
from src.models.FTR_model import *
from .inpainting_metrics import get_inpainting_metrics
from .utils import Progbar, cre... | 51.301418 | 140 | 0.515414 | 3,214 | 28,934 | 4.446795 | 0.082763 | 0.047579 | 0.071648 | 0.02204 | 0.884411 | 0.868668 | 0.838931 | 0.821858 | 0.800938 | 0.7959 | 0 | 0.015251 | 0.367733 | 28,934 | 563 | 141 | 51.39254 | 0.765989 | 0.020529 | 0 | 0.731441 | 0 | 0.004367 | 0.055738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034935 | false | 0.004367 | 0.019651 | 0.004367 | 0.080786 | 0.043668 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ac8aca6173687d77e4664fadd51d6ffc82b2493 | 6,067 | py | Python | trpg/parsing/functions/stats.py | jacobcheatley/trpg | 59645f3362faad7aabf839999974b4d0c2e316c7 | [
"MIT"
] | null | null | null | trpg/parsing/functions/stats.py | jacobcheatley/trpg | 59645f3362faad7aabf839999974b4d0c2e316c7 | [
"MIT"
] | null | null | null | trpg/parsing/functions/stats.py | jacobcheatley/trpg | 59645f3362faad7aabf839999974b4d0c2e316c7 | [
"MIT"
] | null | null | null | from .base_function import Function
# OTHER/NORMAL STATS
# CURRENT VALUE SETTERS
class IncStatFunction(Function):
def __init__(self, args):
self.name = args[0]
self.value = args[1]
def _do_function(self, campaign):
campaign.player.stats.other[self.name].current += self.value
class D... | 24.171315 | 71 | 0.670183 | 744 | 6,067 | 5.237903 | 0.075269 | 0.096998 | 0.107775 | 0.136515 | 0.854503 | 0.822684 | 0.822684 | 0.793687 | 0.793687 | 0.793687 | 0 | 0.007785 | 0.216582 | 6,067 | 250 | 72 | 24.268 | 0.812119 | 0.034284 | 0 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.366013 | false | 0.019608 | 0.006536 | 0.045752 | 0.601307 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
6aee3e1ef3c2c463f859840bbf53e6cc313cc24b | 17,159 | py | Python | sdk/python/pulumi_datadog/azure/integration.py | pulumi/pulumi-datadog | dbc3e51b438de20aca4207bf894dbaa5a2db4bca | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-09-17T20:41:19.000Z | 2022-01-07T15:42:07.000Z | sdk/python/pulumi_datadog/azure/integration.py | pulumi/pulumi-datadog | dbc3e51b438de20aca4207bf894dbaa5a2db4bca | [
"ECL-2.0",
"Apache-2.0"
] | 86 | 2019-07-08T11:47:05.000Z | 2022-03-28T21:02:19.000Z | sdk/python/pulumi_datadog/azure/integration.py | pulumi/pulumi-datadog | dbc3e51b438de20aca4207bf894dbaa5a2db4bca | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2019-10-05T10:34:15.000Z | 2021-08-08T04:14:19.000Z | # 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 warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 44.801567 | 364 | 0.653476 | 2,078 | 17,159 | 5.193936 | 0.091434 | 0.070323 | 0.070045 | 0.055036 | 0.844344 | 0.825164 | 0.805615 | 0.778468 | 0.76179 | 0.746224 | 0 | 0.000078 | 0.248383 | 17,159 | 382 | 365 | 44.918848 | 0.836784 | 0.387377 | 0 | 0.653659 | 1 | 0 | 0.099163 | 0.00387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156098 | false | 0.004878 | 0.02439 | 0 | 0.273171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
0ac8fb13ed3e01d6cb3a8b2e50f9d8e1175d66d9 | 786 | py | Python | env2config/tests/test_conversions.py | dacjames/env2config | dd900754daa112362be78e54a3bb410772c4aff9 | [
"MIT"
] | null | null | null | env2config/tests/test_conversions.py | dacjames/env2config | dd900754daa112362be78e54a3bb410772c4aff9 | [
"MIT"
] | null | null | null | env2config/tests/test_conversions.py | dacjames/env2config | dd900754daa112362be78e54a3bb410772c4aff9 | [
"MIT"
] | null | null | null |
def test_dotted_lower():
from env2config.conversions import dotted_lower
given = 'FOO_BAR'
expected = 'foo.bar'
result = dotted_lower(given)
assert result == expected
def test_dotted_lower_trailing():
from env2config.conversions import dotted_lower
given = 'FOO_BAR_'
expected = 'fo... | 19.170732 | 51 | 0.697201 | 94 | 786 | 5.574468 | 0.170213 | 0.152672 | 0.19084 | 0.236641 | 0.96374 | 0.954198 | 0.914122 | 0.914122 | 0.914122 | 0.858779 | 0 | 0.006515 | 0.21883 | 786 | 40 | 52 | 19.65 | 0.846906 | 0 | 0 | 0.666667 | 0 | 0 | 0.076531 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
0af5e6fda8dd9371cb529dfe249093e587c5c376 | 3,660 | py | Python | tests/proc/test_command_basic.py | spookey/git-sh-sync | 372cbc8168557e0e99d7963da63717242a9491e9 | [
"MIT"
] | 1 | 2020-11-15T20:37:08.000Z | 2020-11-15T20:37:08.000Z | tests/proc/test_command_basic.py | spookey/git-sh-sync | 372cbc8168557e0e99d7963da63717242a9491e9 | [
"MIT"
] | null | null | null | tests/proc/test_command_basic.py | spookey/git-sh-sync | 372cbc8168557e0e99d7963da63717242a9491e9 | [
"MIT"
] | null | null | null | from os import path
from pprint import pformat
from git_sh_sync.proc import CHAR_NEWLINE
def test_cmd_init_empty(helpcmd):
res = helpcmd.init('test-command')
assert res.cmd == ['test-command']
assert res.cwd is None
assert res.cin is None
assert res.exc is None
assert res.code is None
ass... | 27.313433 | 72 | 0.611475 | 497 | 3,660 | 4.432596 | 0.10664 | 0.192011 | 0.070813 | 0.07626 | 0.860191 | 0.788924 | 0.788924 | 0.779392 | 0.736269 | 0.736269 | 0 | 0.002134 | 0.231694 | 3,660 | 133 | 73 | 27.518797 | 0.781294 | 0 | 0 | 0.723214 | 0 | 0 | 0.161202 | 0 | 0 | 0 | 0 | 0 | 0.446429 | 1 | 0.089286 | false | 0 | 0.026786 | 0 | 0.116071 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7c4dc5a340cb2e6586344f417025706316c7123f | 32,474 | py | Python | src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/storage_accounts_operations.py | fhoering/autorest | b36c77ebb6a5c92aca72eea0894a683506af5817 | [
"MIT"
] | null | null | null | src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/storage_accounts_operations.py | fhoering/autorest | b36c77ebb6a5c92aca72eea0894a683506af5817 | [
"MIT"
] | null | null | null | src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/storage_accounts_operations.py | fhoering/autorest | b36c77ebb6a5c92aca72eea0894a683506af5817 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 47.476608 | 154 | 0.673554 | 3,441 | 32,474 | 6.17553 | 0.079628 | 0.034824 | 0.028 | 0.030494 | 0.836424 | 0.830541 | 0.8256 | 0.819247 | 0.814259 | 0.811435 | 0 | 0.003761 | 0.23856 | 32,474 | 683 | 155 | 47.54612 | 0.855623 | 0.328725 | 0 | 0.804878 | 0 | 0 | 0.177493 | 0.104876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045732 | false | 0 | 0.015244 | 0 | 0.134146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7c637563ac4017f735dfd3553f7ff1922af3f994 | 131 | py | Python | lectures/lecture00/code/helloWorldBroke.py | mateusza/Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist | a27144cc8742e67af215e8de781bd208cc1f7436 | [
"MIT"
] | 101 | 2017-11-28T15:08:25.000Z | 2022-03-26T13:59:49.000Z | lectures/lecture00/code/helloWorldBroke.py | mateusza/Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist | a27144cc8742e67af215e8de781bd208cc1f7436 | [
"MIT"
] | 1 | 2017-12-16T19:41:39.000Z | 2017-12-16T19:41:39.000Z | lectures/lecture00/code/helloWorldBroke.py | mateusza/Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist | a27144cc8742e67af215e8de781bd208cc1f7436 | [
"MIT"
] | 54 | 2017-12-15T19:19:53.000Z | 2022-03-01T23:36:55.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
print 'hello world' | 32.75 | 39 | 0.854962 | 17 | 131 | 5.764706 | 0.529412 | 0.306122 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129771 | 131 | 4 | 40 | 32.75 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.75 | null | null | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
7cb31e5f01517f10f04b6300e96bddae8d14076e | 22,870 | py | Python | pvrpm/core/modules/failure.py | FSEC-Photovoltaics/pvrpm-lcoe | dbe0bb30ffa1041ec004f84c57aac44f47bdf6d2 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T16:03:26.000Z | 2022-03-29T16:03:26.000Z | pvrpm/core/modules/failure.py | FSEC-Photovoltaics/pvrpm-lcoe | dbe0bb30ffa1041ec004f84c57aac44f47bdf6d2 | [
"BSD-3-Clause"
] | 29 | 2022-02-05T17:27:07.000Z | 2022-03-06T23:53:50.000Z | pvrpm/core/modules/failure.py | FSEC-Photovoltaics/pvrpm-lcoe | dbe0bb30ffa1041ec004f84c57aac44f47bdf6d2 | [
"BSD-3-Clause"
] | 2 | 2022-01-13T23:35:19.000Z | 2022-03-21T15:46:05.000Z | from abc import ABC, abstractmethod
import numpy as np
import pandas as pd
from pvrpm.core.enums import ConfigKeys as ck
from pvrpm.core.case import SamCase
from pvrpm.core.utils import sample, get_higher_components
from pvrpm.core.modules.monitor import IndepMonitor
class Failure(ABC):
"""
This abstract cl... | 47.349896 | 191 | 0.608264 | 2,911 | 22,870 | 4.642047 | 0.106493 | 0.018649 | 0.035521 | 0.016577 | 0.842818 | 0.806483 | 0.794716 | 0.776512 | 0.750685 | 0.716273 | 0 | 0.004239 | 0.30892 | 22,870 | 482 | 192 | 47.448133 | 0.850743 | 0.323874 | 0 | 0.73741 | 0 | 0 | 0.053411 | 0.025045 | 0 | 0 | 0 | 0.004149 | 0 | 1 | 0.039568 | false | 0.017986 | 0.02518 | 0 | 0.086331 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7cb6e43fb530eaa5b3c694820f5942182fb655c4 | 32,823 | py | Python | octavia/tests/unit/api/drivers/amphora_driver/v1/test_amphora_driver.py | johnsom/octavia | 41c628a084002017d2003926cf0e25ba3ffeee0c | [
"Apache-2.0"
] | null | null | null | octavia/tests/unit/api/drivers/amphora_driver/v1/test_amphora_driver.py | johnsom/octavia | 41c628a084002017d2003926cf0e25ba3ffeee0c | [
"Apache-2.0"
] | null | null | null | octavia/tests/unit/api/drivers/amphora_driver/v1/test_amphora_driver.py | johnsom/octavia | 41c628a084002017d2003926cf0e25ba3ffeee0c | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Rackspace, US Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 47.363636 | 79 | 0.666362 | 3,997 | 32,823 | 5.100826 | 0.059044 | 0.063273 | 0.087208 | 0.083186 | 0.901462 | 0.882578 | 0.868992 | 0.853002 | 0.843241 | 0.820777 | 0 | 0.017563 | 0.236724 | 32,823 | 692 | 80 | 47.432081 | 0.796232 | 0.029035 | 0 | 0.722414 | 0 | 0 | 0.128758 | 0.074038 | 0 | 0 | 0 | 0 | 0.089655 | 1 | 0.07931 | false | 0 | 0.015517 | 0 | 0.096552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7cd05f2e63c93f4caf445b368e9eaf6372595673 | 75,027 | py | Python | post_optimization_studies/mad_analyses/ma100MeV_L2TeV_deta2_1/Output/Histos/MadAnalysis5job_0/selection_9.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L2TeV_deta2_1/Output/Histos/MadAnalysis5job_0/selection_9.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L2TeV_deta2_1/Output/Histos/MadAnalysis5job_0/selection_9.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_9():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | 386.737113 | 6,216 | 0.764152 | 16,359 | 75,027 | 3.45993 | 0.178434 | 0.288935 | 0.41183 | 0.522252 | 0.318899 | 0.292009 | 0.285225 | 0.264819 | 0.263087 | 0.256232 | 0 | 0.684462 | 0.022085 | 75,027 | 193 | 6,217 | 388.740933 | 0.086984 | 0.017101 | 0 | 0.185841 | 0 | 0.00885 | 0.01415 | 0.002713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00885 | false | 0 | 0.035398 | 0 | 0.044248 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7cfd046ff7971d5fc250d3dc53e8ccd27fd4a202 | 126,002 | py | Python | dlcv/object_detection/tensorflow_detect/core/preprocessor_test.py | Loonride/deeplens-cv | 9e5b31c1a269d364e4912ba8266415fa04277e11 | [
"MIT"
] | 11 | 2019-10-07T22:06:30.000Z | 2020-08-26T22:10:53.000Z | dlcv/object_detection/tensorflow_detect/core/preprocessor_test.py | Loonride/deeplens-cv | 9e5b31c1a269d364e4912ba8266415fa04277e11 | [
"MIT"
] | 16 | 2019-11-02T00:32:00.000Z | 2022-02-10T00:23:32.000Z | dlcv/object_detection/tensorflow_detect/core/preprocessor_test.py | Loonride/deeplens-cv | 9e5b31c1a269d364e4912ba8266415fa04277e11 | [
"MIT"
] | 9 | 2019-10-07T13:33:13.000Z | 2020-09-27T09:50:58.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 43.949076 | 80 | 0.670331 | 13,990 | 126,002 | 5.705647 | 0.036383 | 0.032948 | 0.032071 | 0.062138 | 0.863697 | 0.847097 | 0.820626 | 0.791361 | 0.766355 | 0.744995 | 0 | 0.037772 | 0.228893 | 126,002 | 2,866 | 81 | 43.96441 | 0.783771 | 0.011651 | 0 | 0.730678 | 0 | 0 | 0.018724 | 0.002772 | 0 | 0 | 0 | 0 | 0.073344 | 1 | 0.055205 | false | 0 | 0.002366 | 0.004338 | 0.071767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6b39024d151db2f0f1396703f2c340fd15b9b1f6 | 19,627 | py | Python | test/commands/extended/get_bundles_test.py | Cornode/cornode.lib.py | 866230123a62acc235ca8f46e7b59fe08655049b | [
"MIT"
] | null | null | null | test/commands/extended/get_bundles_test.py | Cornode/cornode.lib.py | 866230123a62acc235ca8f46e7b59fe08655049b | [
"MIT"
] | null | null | null | test/commands/extended/get_bundles_test.py | Cornode/cornode.lib.py | 866230123a62acc235ca8f46e7b59fe08655049b | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import absolute_import, division, print_function, \
unicode_literals
from unittest import TestCase
import filters as f
from filters.test import BaseFilterTestCase
from cornode import Address, BadApiResponse, Bundle, BundleHash, Fragment, Hash, \
cornode, Tag, Transaction, Transactio... | 44.913043 | 82 | 0.778061 | 890 | 19,627 | 17.053933 | 0.261798 | 0.437014 | 0.443537 | 0.847543 | 0.699038 | 0.693504 | 0.68204 | 0.675583 | 0.66715 | 0.66715 | 0 | 0.57222 | 0.172467 | 19,627 | 436 | 83 | 45.016055 | 0.362271 | 0.051511 | 0 | 0.593023 | 0 | 0 | 0.633301 | 0.619629 | 0 | 1 | 0 | 0 | 0.040698 | 1 | 0.037791 | false | 0.011628 | 0.026163 | 0 | 0.075581 | 0.002907 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
8626a8d826cba371b33c9abd050faaa6598d82cb | 1,120 | py | Python | triple_walk/rw.py | udel-cbcb/triple_walk | 8d0ea465784e34d1fce2cc83b99b3cbb1d60ab24 | [
"MIT"
] | null | null | null | triple_walk/rw.py | udel-cbcb/triple_walk | 8d0ea465784e34d1fce2cc83b99b3cbb1d60ab24 | [
"MIT"
] | null | null | null | triple_walk/rw.py | udel-cbcb/triple_walk | 8d0ea465784e34d1fce2cc83b99b3cbb1d60ab24 | [
"MIT"
] | null | null | null | import triple_walk_native
def walk_triples(triples_indexed, relation_tail_index,target_nodes, walk_length,padding_idx,seed,restart=True):
return triple_walk_native.walk_triples(triples_indexed,
relation_tail_index,
target_nodes,
... | 50.909091 | 111 | 0.60625 | 124 | 1,120 | 5.032258 | 0.217742 | 0.096154 | 0.144231 | 0.173077 | 0.875 | 0.839744 | 0.839744 | 0.804487 | 0.804487 | 0.605769 | 0 | 0 | 0.3375 | 1,120 | 21 | 112 | 53.333333 | 0.84097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.25 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 10 |
862c8717b0399b8bb6d61e3c1e39804fb752267a | 1,573 | py | Python | training/kickoff/kickoff_exercises.py | NoMoor/83Plus | 5cb72871ed33c9484c5699496db106f24338564e | [
"MIT"
] | null | null | null | training/kickoff/kickoff_exercises.py | NoMoor/83Plus | 5cb72871ed33c9484c5699496db106f24338564e | [
"MIT"
] | 5 | 2019-12-27T15:04:48.000Z | 2020-03-06T17:36:41.000Z | training/kickoff/kickoff_exercises.py | NoMoor/83Plus | 5cb72871ed33c9484c5699496db106f24338564e | [
"MIT"
] | null | null | null | from kickoff.kickoff_training import KickOff, KickOff1v1, KickOffOrange
from math import pi
kickoff_exercises = [
# KickOff('Center Kickoff', car_start_x=0, car_start_y=-4608, car_yaw=(.5 * pi)),
# KickOff('Left Center Kickoff', car_start_x=256, car_start_y=-3840, car_yaw=(.5 * pi)),
# KickOff('Right Cente... | 58.259259 | 100 | 0.696122 | 251 | 1,573 | 4.039841 | 0.111554 | 0.236686 | 0.221893 | 0.236686 | 0.821499 | 0.821499 | 0.791913 | 0.791913 | 0.791913 | 0.791913 | 0 | 0.102564 | 0.132231 | 1,573 | 26 | 101 | 60.5 | 0.640293 | 0.66815 | 0 | 0 | 0 | 0 | 0.074656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
8646230ef5207bae6126a4c65a3d70d471b04e34 | 16,100 | py | Python | viewer/command/command.py | Lukasz1928/DICOM-viewer | 778541d85c6e6a96e90c9d1050f3dec2b8387b5d | [
"MIT"
] | null | null | null | viewer/command/command.py | Lukasz1928/DICOM-viewer | 778541d85c6e6a96e90c9d1050f3dec2b8387b5d | [
"MIT"
] | null | null | null | viewer/command/command.py | Lukasz1928/DICOM-viewer | 778541d85c6e6a96e90c9d1050f3dec2b8387b5d | [
"MIT"
] | null | null | null | import math
from abc import ABC
from viewer.command.status import CommandStatus
from viewer.math.utils import vectors_differ, radians_to_degrees, points_to_vector, normalize_vector, sum_vectors, \
vector_length, vectors_angle
class Command(ABC):
def execute(self):
pass
def undo(self):
pa... | 38.424821 | 116 | 0.589814 | 2,016 | 16,100 | 4.541667 | 0.068452 | 0.117955 | 0.039755 | 0.026212 | 0.815094 | 0.77927 | 0.749235 | 0.74159 | 0.717562 | 0.705876 | 0 | 0.023352 | 0.292484 | 16,100 | 418 | 117 | 38.516746 | 0.780441 | 0 | 0 | 0.738764 | 0 | 0 | 0.004161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143258 | false | 0.005618 | 0.011236 | 0.011236 | 0.275281 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
864ecc5e4644faf5114c365ecd8fc3c9a8bbb8b8 | 228,837 | py | Python | LeetCode/daily/2021-05-12.py | Muzque/Leetcode | d06365792c9ef48e0a290da00ba5e71f212554d5 | [
"MIT"
] | 1 | 2021-05-11T09:52:38.000Z | 2021-05-11T09:52:38.000Z | LeetCode/daily/2021-05-12.py | Muzque/Leetcode | d06365792c9ef48e0a290da00ba5e71f212554d5 | [
"MIT"
] | null | null | null | LeetCode/daily/2021-05-12.py | Muzque/Leetcode | d06365792c9ef48e0a290da00ba5e71f212554d5 | [
"MIT"
] | 1 | 2021-05-05T04:13:17.000Z | 2021-05-05T04:13:17.000Z | """
Range Sum Query 2D - Immutable
https://leetcode.com/explore/challenge/card/may-leetcoding-challenge-2021/599/week-2-may-8th-may-14th/3740/
"""
# Your NumMatrix object will be instantiated and called as such:
# obj = NumMatrix(matrix)
# param_1 = obj.sumRegion(row1,col1,row2,col2)
testcases = {
'1': (
[... | 1,191.859375 | 146,847 | 0.550846 | 59,890 | 228,837 | 2.104525 | 0.017332 | 0.625944 | 0.938059 | 1.249603 | 0.528094 | 0.365535 | 0.323627 | 0.31659 | 0.315828 | 0.315828 | 0 | 0.383684 | 0.029056 | 228,837 | 191 | 146,848 | 1,198.099476 | 0.183583 | 0.001368 | 0 | 0.222973 | 0 | 0 | 0.173227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047297 | false | 0 | 0.006757 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8651d337582f987848a8b356298e8fd8167b03fe | 85,696 | py | Python | core_utilities/plotting.py | Jon-Webb-79/Core-Utilities | c2d5987418e543360bf844fb3c23f31e7482e71f | [
"BSD-2-Clause"
] | null | null | null | core_utilities/plotting.py | Jon-Webb-79/Core-Utilities | c2d5987418e543360bf844fb3c23f31e7482e71f | [
"BSD-2-Clause"
] | null | null | null | core_utilities/plotting.py | Jon-Webb-79/Core-Utilities | c2d5987418e543360bf844fb3c23f31e7482e71f | [
"BSD-2-Clause"
] | null | null | null | # Import necessary packages here
from typing import List
import warnings
from datetime import datetime
import pandas as pd
import numpy as np
import matplotlib.dates as mdates
from matplotlib import rc, pyplot as plt
# ============================================================================
# ======================... | 51.469069 | 128 | 0.561298 | 11,193 | 85,696 | 4.159117 | 0.042259 | 0.031276 | 0.015982 | 0.010053 | 0.925246 | 0.918824 | 0.913411 | 0.907632 | 0.902155 | 0.900543 | 0 | 0.012841 | 0.327518 | 85,696 | 1,664 | 129 | 51.5 | 0.794964 | 0.528624 | 0 | 0.802083 | 0 | 0 | 0.118483 | 0 | 0 | 0 | 0 | 0.000601 | 0 | 1 | 0.020833 | false | 0 | 0.010417 | 0 | 0.047619 | 0.014881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
86679303b4786d18723b25ff8a6bfe30c222b930 | 389 | py | Python | src/sage/manifolds/all.py | hsm207/sage | 020bd59ec28717bfab9af44d2231c53da1ff99f1 | [
"BSL-1.0"
] | 1 | 2021-10-18T01:24:04.000Z | 2021-10-18T01:24:04.000Z | src/sage/manifolds/all.py | hsm207/sage | 020bd59ec28717bfab9af44d2231c53da1ff99f1 | [
"BSL-1.0"
] | null | null | null | src/sage/manifolds/all.py | hsm207/sage | 020bd59ec28717bfab9af44d2231c53da1ff99f1 | [
"BSL-1.0"
] | null | null | null | from sage.misc.lazy_import import lazy_import
lazy_import('sage.manifolds.manifold', 'Manifold')
lazy_import('sage.manifolds.differentiable.examples.real_line', 'OpenInterval')
lazy_import('sage.manifolds.differentiable.examples.real_line', 'RealLine')
lazy_import('sage.manifolds.differentiable.examples.euclidean', 'Eu... | 55.571429 | 81 | 0.820051 | 46 | 389 | 6.73913 | 0.347826 | 0.225806 | 0.225806 | 0.370968 | 0.487097 | 0.487097 | 0.341935 | 0.341935 | 0 | 0 | 0 | 0 | 0.03856 | 389 | 6 | 82 | 64.833333 | 0.828877 | 0 | 0 | 0 | 0 | 0 | 0.614396 | 0.429306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
866b45019541e0bc4354b8dbdf17d04c3ec02365 | 200 | py | Python | aiflearn/explainers/__init__.py | gusrabbit/aif360-learn | b14a9b98e96dd2756faf312047e9a50ccc1559fa | [
"Apache-2.0"
] | null | null | null | aiflearn/explainers/__init__.py | gusrabbit/aif360-learn | b14a9b98e96dd2756faf312047e9a50ccc1559fa | [
"Apache-2.0"
] | null | null | null | aiflearn/explainers/__init__.py | gusrabbit/aif360-learn | b14a9b98e96dd2756faf312047e9a50ccc1559fa | [
"Apache-2.0"
] | null | null | null | from aiflearn.explainers.explainer import Explainer
from aiflearn.explainers.metric_text_explainer import MetricTextExplainer
from aiflearn.explainers.metric_json_explainer import MetricJSONExplainer
| 50 | 73 | 0.91 | 22 | 200 | 8.090909 | 0.454545 | 0.202247 | 0.370787 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 200 | 3 | 74 | 66.666667 | 0.946809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
810df8d57b3177e4e0b257704133cdde592bd50d | 15,744 | py | Python | tests/main/views/test_supplier_questions.py | uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend | 2325f01b1bdb13fb5b0afe7fe110c0be0c031da6 | [
"MIT"
] | 1 | 2021-05-06T22:37:05.000Z | 2021-05-06T22:37:05.000Z | tests/main/views/test_supplier_questions.py | uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend | 2325f01b1bdb13fb5b0afe7fe110c0be0c031da6 | [
"MIT"
] | 108 | 2017-06-14T10:48:10.000Z | 2021-06-11T08:55:25.000Z | tests/main/views/test_supplier_questions.py | uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend | 2325f01b1bdb13fb5b0afe7fe110c0be0c031da6 | [
"MIT"
] | 5 | 2017-06-27T15:13:11.000Z | 2021-04-10T18:06:29.000Z | # coding: utf-8
from __future__ import unicode_literals
from ...helpers import BaseApplicationTest
from dmapiclient import HTTPError
from dmtestutils.api_model_stubs import BriefStub, FrameworkStub, LotStub
import mock
from lxml import html
import pytest
class TestClarificationQuestionsPage(BaseApplicationTest):
... | 43.134247 | 136 | 0.629192 | 1,653 | 15,744 | 5.733212 | 0.109498 | 0.028807 | 0.053498 | 0.066371 | 0.881081 | 0.873483 | 0.863775 | 0.859555 | 0.841406 | 0.835285 | 0 | 0.021953 | 0.265117 | 15,744 | 364 | 137 | 43.252747 | 0.797148 | 0.00686 | 0 | 0.766026 | 0 | 0.016026 | 0.258975 | 0.18788 | 0 | 0 | 0 | 0 | 0.086538 | 1 | 0.054487 | false | 0 | 0.022436 | 0 | 0.096154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8121bfa7a1f593c8b37e670b8054bbed322ae0bf | 22,955 | py | Python | ververica_api_sdk/api/secret_value_resource_api.py | justlikemikezz/ververica-api-sdk | 0eee284b4433f74b35fd2f41d149e619624aaed3 | [
"RSA-MD"
] | null | null | null | ververica_api_sdk/api/secret_value_resource_api.py | justlikemikezz/ververica-api-sdk | 0eee284b4433f74b35fd2f41d149e619624aaed3 | [
"RSA-MD"
] | null | null | null | ververica_api_sdk/api/secret_value_resource_api.py | justlikemikezz/ververica-api-sdk | 0eee284b4433f74b35fd2f41d149e619624aaed3 | [
"RSA-MD"
] | null | null | null | # coding: utf-8
"""
Application Manager API
Application Manager APIs to control Apache Flink jobs # noqa: E501
OpenAPI spec version: 2.0.1
Contact: platform@ververica.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # n... | 40.991071 | 137 | 0.622392 | 2,609 | 22,955 | 5.220391 | 0.063626 | 0.046402 | 0.043465 | 0.026432 | 0.954552 | 0.939427 | 0.927827 | 0.922247 | 0.903084 | 0.883113 | 0 | 0.015444 | 0.286343 | 22,955 | 559 | 138 | 41.064401 | 0.815957 | 0.30538 | 0 | 0.782895 | 0 | 0 | 0.219389 | 0.071044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036184 | false | 0 | 0.013158 | 0 | 0.101974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
8142aabe95c7abbe5d41840421797be452f485aa | 608 | py | Python | Test/test.py | induraj2020/DeepEnsemble | e0a459cc5741f376cb26c43538cde74a8c6d3b22 | [
"MIT"
] | 1 | 2021-08-02T12:22:25.000Z | 2021-08-02T12:22:25.000Z | Test/test.py | induraj2020/DeepEnsemble | e0a459cc5741f376cb26c43538cde74a8c6d3b22 | [
"MIT"
] | null | null | null | Test/test.py | induraj2020/DeepEnsemble | e0a459cc5741f376cb26c43538cde74a8c6d3b22 | [
"MIT"
] | null | null | null | import numpy as np
if __name__ =="__main__":
xx = np.array([[0.1, 0.2, 0.3, 0.4],
[0.5, 0.6, 0.7, 0.8],
[0.8, 0.6, 0.3, 0.4],
[0.8, 0.6, 0.7, 0.8],
[0.8, 0.8, 0.8, 0.4],
[0.1, 0.6, 0.7, 0.8],
[0.1, 0.2, 0.... | 32 | 50 | 0.271382 | 122 | 608 | 1.278689 | 0.163934 | 0.205128 | 0.288462 | 0.205128 | 0.692308 | 0.692308 | 0.615385 | 0.615385 | 0.615385 | 0.615385 | 0 | 0.346154 | 0.486842 | 608 | 18 | 51 | 33.777778 | 0.153846 | 0 | 0 | 0.5 | 0 | 0 | 0.013201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d4ad6d874e599704d15645ad66d6a46ceed91670 | 8,379 | py | Python | resources/tasks.py | axonepro/sdk-ooti | 146ba758f571352d02daa56349e8b3affd8ca5a9 | [
"Unlicense"
] | 1 | 2021-03-13T16:04:54.000Z | 2021-03-13T16:04:54.000Z | resources/tasks.py | axonepro/sdk-ooti | 146ba758f571352d02daa56349e8b3affd8ca5a9 | [
"Unlicense"
] | 7 | 2021-07-21T12:42:39.000Z | 2022-01-06T10:34:04.000Z | resources/tasks.py | axonepro/sdk-ooti | 146ba758f571352d02daa56349e8b3affd8ca5a9 | [
"Unlicense"
] | 2 | 2021-06-22T08:10:48.000Z | 2021-09-01T09:16:41.000Z | import requests
import json
from .helper import Helper
class Tasks(Helper):
def __init__(self, base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination):
super().__init__(base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination)
def empty_tasks_trash(self, project... | 34.060976 | 118 | 0.583602 | 1,004 | 8,379 | 4.706175 | 0.085657 | 0.08381 | 0.044233 | 0.099048 | 0.861587 | 0.829841 | 0.771429 | 0.740741 | 0.72381 | 0.709418 | 0 | 0.007761 | 0.292636 | 8,379 | 246 | 119 | 34.060976 | 0.789438 | 0.269483 | 0 | 0.576923 | 0 | 0 | 0.09564 | 0.048588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24359 | false | 0 | 0.038462 | 0 | 0.525641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 8 |
be06134ed57654f8f44cb50c8e9bd5388a95f7bf | 50,374 | py | Python | sdks/python/http_client/v1/polyaxon_sdk/api/tags_v1_api.py | polyaxon/polyaxon | a835f2872a63f6cf5c27d2dd1125ad7c18eb849a | [
"Apache-2.0"
] | 3,200 | 2017-05-09T11:35:31.000Z | 2022-03-28T05:43:22.000Z | sdks/python/http_client/v1/polyaxon_sdk/api/tags_v1_api.py | polyaxon/polyaxon | a835f2872a63f6cf5c27d2dd1125ad7c18eb849a | [
"Apache-2.0"
] | 1,324 | 2017-06-29T07:21:27.000Z | 2022-03-27T12:41:10.000Z | sdks/python/http_client/v1/polyaxon_sdk/api/tags_v1_api.py | polyaxon/polyaxon | a835f2872a63f6cf5c27d2dd1125ad7c18eb849a | [
"Apache-2.0"
] | 341 | 2017-01-10T23:06:53.000Z | 2022-03-10T08:15:18.000Z | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 45.016979 | 116 | 0.583019 | 5,720 | 50,374 | 4.908392 | 0.044406 | 0.054709 | 0.087762 | 0.027354 | 0.957686 | 0.956333 | 0.951133 | 0.949993 | 0.949993 | 0.941979 | 0 | 0.017831 | 0.337595 | 50,374 | 1,118 | 117 | 45.057245 | 0.823573 | 0.423234 | 0 | 0.797814 | 0 | 0 | 0.166718 | 0.029753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030965 | false | 0 | 0.009107 | 0 | 0.071038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
be2bebae866fad9fcb8324bc2c8872385bb37012 | 17,903 | py | Python | mesh_tensorflow/transformer/vocab_embeddings_test.py | bmaier96/mesh | c2142a3b4b5f5eaf37a926d30525d2cf8334c65b | [
"Apache-2.0"
] | null | null | null | mesh_tensorflow/transformer/vocab_embeddings_test.py | bmaier96/mesh | c2142a3b4b5f5eaf37a926d30525d2cf8334c65b | [
"Apache-2.0"
] | 1 | 2021-02-24T00:49:53.000Z | 2021-02-24T00:49:53.000Z | mesh_tensorflow/transformer/vocab_embeddings_test.py | isabella232/mesh-1 | 3e8c165ef229f20a6c5a28561857c0129ab85368 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2020 The Mesh TensorFlow Authors.
#
# 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 applicab... | 33.153704 | 80 | 0.649724 | 2,298 | 17,903 | 4.813751 | 0.096171 | 0.007051 | 0.035256 | 0.004339 | 0.836377 | 0.815133 | 0.812873 | 0.798409 | 0.790363 | 0.782679 | 0 | 0.031964 | 0.220633 | 17,903 | 539 | 81 | 33.215213 | 0.76084 | 0.057141 | 0 | 0.7675 | 0 | 0 | 0.032666 | 0.005939 | 0 | 0 | 0 | 0 | 0.0225 | 1 | 0.0425 | false | 0 | 0.0425 | 0.005 | 0.105 | 0.0025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
077f076797479d732d8e2ee7dd1132370a47b6bd | 131 | py | Python | 0/actor.py | JacobFV/Computatrum | 6b9c324f4e0e73e8d7af79bb7785d0e86d26bc31 | [
"MIT"
] | null | null | null | 0/actor.py | JacobFV/Computatrum | 6b9c324f4e0e73e8d7af79bb7785d0e86d26bc31 | [
"MIT"
] | null | null | null | 0/actor.py | JacobFV/Computatrum | 6b9c324f4e0e73e8d7af79bb7785d0e86d26bc31 | [
"MIT"
] | null | null | null | class actor:
def action_vector_length():pass
def perform_action(self, action):pass
def log_action(self, action):pass | 32.75 | 42 | 0.725191 | 19 | 131 | 4.789474 | 0.526316 | 0.153846 | 0.351648 | 0.43956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183206 | 131 | 4 | 43 | 32.75 | 0.850467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.75 | false | 0.75 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
078895e228a18403fab71d0a6710b77c6b746ff1 | 1,555 | py | Python | test_pocket.py | JackMaguire/RobotsEnv | 9e43a9d4e202798e9104e681a7d0d6e41c75d163 | [
"MIT"
] | null | null | null | test_pocket.py | JackMaguire/RobotsEnv | 9e43a9d4e202798e9104e681a7d0d6e41c75d163 | [
"MIT"
] | null | null | null | test_pocket.py | JackMaguire/RobotsEnv | 9e43a9d4e202798e9104e681a7d0d6e41c75d163 | [
"MIT"
] | null | null | null | import robots_core
from robots_core.pocket import *
sr = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000... | 129.583333 | 1,357 | 0.96463 | 31 | 1,555 | 48.129032 | 0.645161 | 0.020107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.886991 | 0.021222 | 1,555 | 11 | 1,358 | 141.363636 | 0.093298 | 0.020579 | 0 | 0 | 0 | 0 | 0.886991 | 0.886991 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 9 |
078f211489fbd36f8b9da27995af2d970efb2139 | 11,285 | py | Python | tests/checks/mock/test_kubernetes.py | kevinmckinley/dd-agent | bbc376da5b2a7b0419125a9da002eab3e80dc539 | [
"BSD-3-Clause"
] | null | null | null | tests/checks/mock/test_kubernetes.py | kevinmckinley/dd-agent | bbc376da5b2a7b0419125a9da002eab3e80dc539 | [
"BSD-3-Clause"
] | null | null | null | tests/checks/mock/test_kubernetes.py | kevinmckinley/dd-agent | bbc376da5b2a7b0419125a9da002eab3e80dc539 | [
"BSD-3-Clause"
] | null | null | null | # stdlib
import mock
# 3p
import simplejson as json
# project
from tests.checks.common import AgentCheckTest, Fixtures
from checks import AgentCheck
CPU = "CPU"
MEM = "MEM"
FS = "fs"
NET = "net"
NET_ERRORS = "net_errors"
DISK = "disk"
DISK_USAGE = "disk_usage"
PODS = "pods"
METRICS = [
('kubernetes.memory.usage... | 75.233333 | 375 | 0.694284 | 1,405 | 11,285 | 5.333808 | 0.147331 | 0.046704 | 0.103416 | 0.036696 | 0.848012 | 0.847078 | 0.842941 | 0.831999 | 0.802642 | 0.755404 | 0 | 0.072664 | 0.164643 | 11,285 | 149 | 376 | 75.738255 | 0.722287 | 0.045281 | 0 | 0.308333 | 0 | 0.066667 | 0.542464 | 0.499814 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.025 | false | 0 | 0.033333 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
07bfc2d2478041b0b5fe34c7b615c41201bf65dc | 7,524 | py | Python | webcam/recognition.py | newTypeGeek/face-recognition | 235cf4aaf60ba3504b0e73dbab5f9dc4c7cc3dbd | [
"Apache-2.0"
] | 5 | 2020-02-10T04:38:40.000Z | 2021-09-01T18:50:18.000Z | webcam/recognition.py | newTypeGeek/face-recognition | 235cf4aaf60ba3504b0e73dbab5f9dc4c7cc3dbd | [
"Apache-2.0"
] | 1 | 2020-06-11T18:26:38.000Z | 2020-06-11T18:26:38.000Z | webcam/recognition.py | newTypeGeek/face-recognition | 235cf4aaf60ba3504b0e73dbab5f9dc4c7cc3dbd | [
"Apache-2.0"
] | 3 | 2019-06-24T12:30:12.000Z | 2020-02-10T04:39:59.000Z | #!/usr/bin/env python3
##################
# recognition.py #
##################
# Method to perform face recognition from 128-d vectors
# These functions are used in recognize_video.py
import numpy as np
import pickle
import time
import sys
def svm(vector, recognizer, le, max_elapsed):
'''
Face recognition... | 21.808696 | 98 | 0.593966 | 1,003 | 7,524 | 4.380857 | 0.12662 | 0.095585 | 0.054165 | 0.02731 | 0.840237 | 0.825671 | 0.81543 | 0.81543 | 0.744197 | 0.715521 | 0 | 0.029337 | 0.315922 | 7,524 | 344 | 99 | 21.872093 | 0.824364 | 0.475279 | 0 | 0.775701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065421 | false | 0 | 0.037383 | 0 | 0.168224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
07e25bf120b6d8b1d614cb3bd1ff9a21d37baed9 | 259 | py | Python | ponyexpress/models/__init__.py | TelekomCloud/pony-express | a825b518687719be5dfe95692008c2129db115cd | [
"Apache-2.0"
] | null | null | null | ponyexpress/models/__init__.py | TelekomCloud/pony-express | a825b518687719be5dfe95692008c2129db115cd | [
"Apache-2.0"
] | null | null | null | ponyexpress/models/__init__.py | TelekomCloud/pony-express | a825b518687719be5dfe95692008c2129db115cd | [
"Apache-2.0"
] | null | null | null | from ponyexpress.models.repository import Repository
from ponyexpress.models.repo_history import RepoHistory
from ponyexpress.models.package import Package
from ponyexpress.models.package_history import PackageHistory
from ponyexpress.models.node import Node
| 43.166667 | 61 | 0.88417 | 32 | 259 | 7.09375 | 0.34375 | 0.330396 | 0.462555 | 0.246696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07722 | 259 | 5 | 62 | 51.8 | 0.949791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
5807231447c50ebfd72b368fc6b5dcb01b692273 | 8,699 | py | Python | tools/test_apps/system/panic/app_test.py | lovyan03/esp-idf | cd5d30b56a13b8f0933e8879be1f97724a88004a | [
"Apache-2.0"
] | 8,747 | 2016-08-18T14:58:24.000Z | 2022-03-31T20:58:55.000Z | tools/test_apps/system/panic/app_test.py | lovyan03/esp-idf | cd5d30b56a13b8f0933e8879be1f97724a88004a | [
"Apache-2.0"
] | 8,603 | 2016-08-20T08:55:56.000Z | 2022-03-31T23:04:01.000Z | tools/test_apps/system/panic/app_test.py | lovyan03/esp-idf | cd5d30b56a13b8f0933e8879be1f97724a88004a | [
"Apache-2.0"
] | 6,380 | 2016-08-18T18:17:00.000Z | 2022-03-31T22:25:57.000Z | #!/usr/bin/env python
import sys
import panic_tests as test
from test_panic_util.test_panic_util import panic_test, run_all
# test_task_wdt
@panic_test(target=['ESP32', 'ESP32S2'])
def test_panic_task_wdt(env, _extra_data):
test.task_wdt_inner(env, 'panic')
@panic_test()
def test_coredump_task_wdt_uart_elf_crc... | 25.141618 | 73 | 0.800437 | 1,339 | 8,699 | 4.612397 | 0.038835 | 0.094722 | 0.122409 | 0.163212 | 0.946567 | 0.926975 | 0.917584 | 0.872085 | 0.723122 | 0.674223 | 0 | 0.005077 | 0.094379 | 8,699 | 345 | 74 | 25.214493 | 0.778878 | 0.024945 | 0 | 0.324742 | 0 | 0 | 0.129516 | 0.101535 | 0 | 0 | 0 | 0 | 0.020619 | 1 | 0.324742 | false | 0 | 0.015464 | 0 | 0.340206 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
6af2ddb647a5335ec8ffd49dbac7d773181d7135 | 570 | py | Python | train_medseg_timm-regnetx_002_grid_distortion.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | train_medseg_timm-regnetx_002_grid_distortion.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | train_medseg_timm-regnetx_002_grid_distortion.py | BrunoKrinski/segtool | cb604b5f38104c43a76450136e37c3d1c4b6d275 | [
"MIT"
] | null | null | null | import os
ls=["python main.py --configs configs/train_medseg_unetplusplus_timm-regnetx_002_fold0_grid_distortion.yml",
"python main.py --configs configs/train_medseg_unetplusplus_timm-regnetx_002_fold1_grid_distortion.yml",
"python main.py --configs configs/train_medseg_unetplusplus_timm-regnetx_002_fold2_grid_distort... | 51.818182 | 108 | 0.854386 | 85 | 570 | 5.317647 | 0.294118 | 0.110619 | 0.132743 | 0.210177 | 0.847345 | 0.847345 | 0.847345 | 0.847345 | 0.847345 | 0.847345 | 0 | 0.037106 | 0.054386 | 570 | 11 | 109 | 51.818182 | 0.801484 | 0 | 0 | 0 | 0 | 0 | 0.884413 | 0.665499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
6afc8265a1b3e6021d3984d49f559c16ccaf15d8 | 113,310 | py | Python | container/google/cloud/container_v1/gapic/cluster_manager_client.py | di/google-cloud-python | a0bd8d0565e2a682760a113c59ce12b872bce9ab | [
"Apache-2.0"
] | 1 | 2019-05-23T11:25:32.000Z | 2019-05-23T11:25:32.000Z | container/google/cloud/container_v1/gapic/cluster_manager_client.py | di/google-cloud-python | a0bd8d0565e2a682760a113c59ce12b872bce9ab | [
"Apache-2.0"
] | null | null | null | container/google/cloud/container_v1/gapic/cluster_manager_client.py | di/google-cloud-python | a0bd8d0565e2a682760a113c59ce12b872bce9ab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 45.089534 | 162 | 0.566137 | 11,786 | 113,310 | 5.260903 | 0.046411 | 0.034836 | 0.039207 | 0.027869 | 0.839368 | 0.827111 | 0.786711 | 0.760648 | 0.749988 | 0.729264 | 0 | 0.005642 | 0.350887 | 113,310 | 2,512 | 163 | 45.107484 | 0.837378 | 0.558071 | 0 | 0.512852 | 0 | 0 | 0.06923 | 0.016454 | 0 | 0 | 0 | 0.044984 | 0 | 1 | 0.039168 | false | 0 | 0.017136 | 0 | 0.097919 | 0.002448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ed17f452a3de05f25a4e6ed6cf668d1b6bcea5cb | 649 | py | Python | lng/VeroptBRV320AOC/pythonpath/lightproof_opts_pt_BR.py | alexandre-archive/editor | dfb2223b0d390b5118ccf5bb8a523c1a61974615 | [
"MIT"
] | 1 | 2016-07-15T01:21:35.000Z | 2016-07-15T01:21:35.000Z | lng/VeroptBRV320AOC/pythonpath/lightproof_opts_pt_BR.py | alexandre-archive/editor | dfb2223b0d390b5118ccf5bb8a523c1a61974615 | [
"MIT"
] | null | null | null | lng/VeroptBRV320AOC/pythonpath/lightproof_opts_pt_BR.py | alexandre-archive/editor | dfb2223b0d390b5118ccf5bb8a523c1a61974615 | [
"MIT"
] | null | null | null | lopts = {}
lopts_default = {}
lopts['pt_BR'] = [u'grammar', u'cap', u'dup', u'pair', u'spaces', u'mdash', u'quotation', u'times', u'spaces2', u'ndash', u'apostrophe', u'ellipsis', u'spaces3', u'minus', u'metric', u'numsep', u'nonmetric', u'paronimo', u'composto', u'mmalmau', u'aha', u'meiameio', u'verbo', u'pronominal... | 129.8 | 314 | 0.647149 | 111 | 649 | 3.756757 | 0.288288 | 0.057554 | 0.023981 | 0.057554 | 0.892086 | 0.892086 | 0.892086 | 0.892086 | 0.892086 | 0.892086 | 0 | 0.006791 | 0.09245 | 649 | 4 | 315 | 162.25 | 0.699491 | 0 | 0 | 0 | 0 | 0 | 0.515432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
ed5a3d74d808ff201669d5f351d74751e6647cd7 | 131 | py | Python | grobber/index_scraper/__init__.py | MyAnimeStream/grobber | ced4cd2632f70dacd61d3355cb184d3e19b50996 | [
"MIT"
] | 2 | 2021-05-16T03:56:27.000Z | 2021-12-17T05:45:51.000Z | grobber/index_scraper/__init__.py | myanimestream/grobber | ced4cd2632f70dacd61d3355cb184d3e19b50996 | [
"MIT"
] | 2 | 2021-06-01T23:32:54.000Z | 2021-12-13T19:58:31.000Z | grobber/index_scraper/__init__.py | myanimestream/grobber | ced4cd2632f70dacd61d3355cb184d3e19b50996 | [
"MIT"
] | 1 | 2018-12-29T14:11:32.000Z | 2018-12-29T14:11:32.000Z | from .common import *
from .index_scrapers import *
from .medium import *
from .medium_access import *
from .medium_group import *
| 21.833333 | 29 | 0.770992 | 18 | 131 | 5.444444 | 0.444444 | 0.408163 | 0.489796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152672 | 131 | 5 | 30 | 26.2 | 0.882883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ed686ecdda838bf6a7901337445688737d54bc39 | 153 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/crm/tests/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/crm/tests/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/crm/tests/__init__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import test_crm_lead
import test_new_lead_notification
import test_lead2opportunity
import test_crm_activity
import test_crm_ui
| 19.125 | 33 | 0.836601 | 23 | 153 | 5.130435 | 0.521739 | 0.423729 | 0.330508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.104575 | 153 | 7 | 34 | 21.857143 | 0.846715 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ed83c0511fa1be33a7e30ce1fa57749105ae1936 | 6,743 | py | Python | projects/migrations/0001_initial.py | zachsnyder1/zachsite | 2a6d750d8aef7786d1f3c647be62aea7cbdd29c5 | [
"MIT"
] | null | null | null | projects/migrations/0001_initial.py | zachsnyder1/zachsite | 2a6d750d8aef7786d1f3c647be62aea7cbdd29c5 | [
"MIT"
] | null | null | null | projects/migrations/0001_initial.py | zachsnyder1/zachsite | 2a6d750d8aef7786d1f3c647be62aea7cbdd29c5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='CodeExample',
fields=[
('id', models.AutoField(... | 44.953333 | 104 | 0.493697 | 503 | 6,743 | 6.469185 | 0.151093 | 0.052243 | 0.073141 | 0.109711 | 0.825753 | 0.769514 | 0.754149 | 0.754149 | 0.720344 | 0.687154 | 0 | 0.004162 | 0.394187 | 6,743 | 149 | 105 | 45.255034 | 0.792411 | 0.003114 | 0 | 0.741259 | 0 | 0 | 0.14256 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013986 | 0 | 0.034965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ed865758cfe794c4f7208d2ed5d8aeffced2ab18 | 37,691 | py | Python | A_source_code/generalcode/test_allocation.py | vanHoek-dgnm/CARBON-DISC | 3ecd5f4efba5e032d43679ee977064d6b25154a9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | A_source_code/generalcode/test_allocation.py | vanHoek-dgnm/CARBON-DISC | 3ecd5f4efba5e032d43679ee977064d6b25154a9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | A_source_code/generalcode/test_allocation.py | vanHoek-dgnm/CARBON-DISC | 3ecd5f4efba5e032d43679ee977064d6b25154a9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # ******************************************************
## Revision "$LastChangedDate: 2018-06-01 15:05:44 +0200 (Fri, 01 Jun 2018) $"
## Date "$LastChangedRevision: 1 $"
## Author "$LastChangedBy: arthurbeusen $"
## URL "$HeadURL: https://pbl.sliksvn.com/generalcode/test_allocation.py $"
# ***************************... | 33.864331 | 147 | 0.675201 | 5,898 | 37,691 | 4.236351 | 0.036962 | 0.088369 | 0.058833 | 0.042024 | 0.966741 | 0.961979 | 0.959938 | 0.956656 | 0.955455 | 0.949332 | 0 | 0.050118 | 0.189515 | 37,691 | 1,112 | 148 | 33.894784 | 0.767808 | 0.165345 | 0 | 0.940547 | 0 | 0 | 0.193991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.053508 | 0.004756 | 0 | 0.004756 | 0.267539 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
9c090de9560b5ee09cf70cc743cc5efe66d2e8dd | 114,284 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_router_bgp.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_router_bgp.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 32 | 2018-10-09T04:13:42.000Z | 2020-05-11T07:20:28.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_router_bgp.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 11 | 2018-10-09T00:14:53.000Z | 2021-11-03T10:54:09.000Z | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | 48.610804 | 122 | 0.400669 | 7,984 | 114,284 | 5.568136 | 0.075777 | 0.059992 | 0.094835 | 0.087277 | 0.784843 | 0.757558 | 0.72926 | 0.714099 | 0.690233 | 0.675904 | 0 | 0.010374 | 0.518375 | 114,284 | 2,350 | 123 | 48.631489 | 0.7973 | 0.006256 | 0 | 0.793464 | 0 | 0.000871 | 0.755163 | 0.066418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00305 | false | 0.007843 | 0.004793 | 0.000436 | 0.010022 | 0.000436 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9c2547bea58b43dc4107d2e1e712d9238550f0f4 | 8,340 | py | Python | app/request.py | Nasseh123/news-api | 8ba44fdc8ba92982eb496055ca326de502165f87 | [
"Unlicense"
] | null | null | null | app/request.py | Nasseh123/news-api | 8ba44fdc8ba92982eb496055ca326de502165f87 | [
"Unlicense"
] | null | null | null | app/request.py | Nasseh123/news-api | 8ba44fdc8ba92982eb496055ca326de502165f87 | [
"Unlicense"
] | null | null | null | import urllib.request,json#will help us create a connection to our API URL and send a request and json modules that will format the JSON response to a Python dictionary.
from .models import Newssource,Newsarticle
# Getting API Key and the urls
api_key = None
Newssource_url = None
Newsarticle_url = None
NewsarticleSe... | 36.26087 | 169 | 0.727098 | 963 | 8,340 | 6.007269 | 0.09242 | 0.038721 | 0.056007 | 0.016595 | 0.86949 | 0.861538 | 0.85255 | 0.841141 | 0.841141 | 0.841141 | 0 | 0 | 0.192566 | 8,340 | 229 | 170 | 36.419214 | 0.859073 | 0.174221 | 0 | 0.779412 | 0 | 0 | 0.058762 | 0.00729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080882 | false | 0 | 0.014706 | 0 | 0.169118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9c6ffa1e21bb3d8d180997f0832ee01b88046419 | 10,791 | py | Python | day09/day09.py | dancergraham/advent_of_code_2021 | 931e56d90fdaccd9ad14c3eb0e4826a87eb9ddc4 | [
"MIT"
] | 5 | 2021-12-02T12:12:28.000Z | 2022-01-08T23:19:53.000Z | day09/day09.py | dancergraham/advent_of_code_2021 | 931e56d90fdaccd9ad14c3eb0e4826a87eb9ddc4 | [
"MIT"
] | null | null | null | day09/day09.py | dancergraham/advent_of_code_2021 | 931e56d90fdaccd9ad14c3eb0e4826a87eb9ddc4 | [
"MIT"
] | null | null | null | # File for execution in IronPython 2.7 inside Rhino version 7
import rhinoscriptsyntax as rs
rs.EnableRedraw(False)
srf = rs.AddSrfPt([[0, 0],
[1, 0],
[1, 1],
[0, 1]])
s = """765459895432109541012579875457899989432345678934987890129874323476789789998765423456789... | 513.857143 | 10,208 | 0.969697 | 180 | 10,791 | 58.133333 | 0.833333 | 0.000573 | 0.000573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.941 | 0.013622 | 10,791 | 20 | 10,209 | 539.55 | 0.042089 | 0.012047 | 0 | 0 | 0 | 0.066667 | 0.956934 | 0.95684 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
92ff83bf64309733d47184550ec5cbe5024c7847 | 130 | py | Python | emission/net/usercache/formatters/android/mode_confirm.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | emission/net/usercache/formatters/android/mode_confirm.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | 1 | 2017-08-31T19:54:16.000Z | 2017-08-31T19:54:16.000Z | emission/net/usercache/formatters/ios/purpose_confirm.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | import logging
import emission.net.usercache.formatters.generic.userlabel as fgl
def format(entry):
return fgl.format(entry)
| 21.666667 | 65 | 0.8 | 18 | 130 | 5.777778 | 0.777778 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 130 | 5 | 66 | 26 | 0.904348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
13769a1470b344343e6028fda1a9aa7c060b8fc0 | 219 | py | Python | Spotkanie 3/tr_01.py | abixadamj/lekcja-enter-przyklady | 4f23ee32a139e955f992b727ad86c6effb87a6d6 | [
"MIT"
] | null | null | null | Spotkanie 3/tr_01.py | abixadamj/lekcja-enter-przyklady | 4f23ee32a139e955f992b727ad86c6effb87a6d6 | [
"MIT"
] | null | null | null | Spotkanie 3/tr_01.py | abixadamj/lekcja-enter-przyklady | 4f23ee32a139e955f992b727ad86c6effb87a6d6 | [
"MIT"
] | null | null | null | width = 5.3
height = 3.67
triangle_area = (width * height) / 2
print("Pole trójkąta wynosi {triangle_area} cm^2")
print(f"Pole trójkąta wynosi {triangle_area} cm^2")
print("Pole trójkąta wynosi", triangle_area, "cm^2")
| 31.285714 | 52 | 0.726027 | 36 | 219 | 4.305556 | 0.388889 | 0.309677 | 0.348387 | 0.503226 | 0.741935 | 0.741935 | 0.741935 | 0.741935 | 0.503226 | 0 | 0 | 0.04712 | 0.127854 | 219 | 6 | 53 | 36.5 | 0.764398 | 0 | 0 | 0 | 0 | 0 | 0.484018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 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 | 1 | 0 | 8 |
13a635a9855b35d4adbb2053b7666709abea95f8 | 15,900 | py | Python | ssd1306py/myfont24.py | ch686/ssd1306py-micropython | 90a99f97b7b9da63d92716633cab046b18092ffb | [
"MIT"
] | null | null | null | ssd1306py/myfont24.py | ch686/ssd1306py-micropython | 90a99f97b7b9da63d92716633cab046b18092ffb | [
"MIT"
] | null | null | null | ssd1306py/myfont24.py | ch686/ssd1306py-micropython | 90a99f97b7b9da63d92716633cab046b18092ffb | [
"MIT"
] | null | null | null |
font24 = {
0xe6b094:
[0x00,0x00,0x00,0x00,0x80,0x70,0x3C,0x2C,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0xA0,0x20,0x30,0x20,0x00,0x00,0x00,0x00,0x08,0x04,0x03,0x01,0x08,0x08,0x09,
0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xFD,0x09,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00... | 51.125402 | 83 | 0.74 | 2,987 | 15,900 | 3.939739 | 0.066622 | 0.598912 | 0.676071 | 0.689327 | 0.731815 | 0.655337 | 0.582257 | 0.505778 | 0.431679 | 0.381883 | 0 | 0.53313 | 0.053648 | 15,900 | 310 | 84 | 51.290323 | 0.24882 | 0.013585 | 0 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.749055 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
13ccc6cad11fffc26408777c1272f6491a2d9ce5 | 16,485 | py | Python | google/cloud/servicedirectory/v1beta1/servicedirectory-v1beta1-py/google/cloud/servicedirectory_v1beta1/services/registration_service/pagers.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/servicedirectory/v1beta1/servicedirectory-v1beta1-py/google/cloud/servicedirectory_v1beta1/services/registration_service/pagers.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/servicedirectory/v1beta1/servicedirectory-v1beta1-py/google/cloud/servicedirectory_v1beta1/services/registration_service/pagers.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 42.487113 | 95 | 0.682924 | 1,757 | 16,485 | 6.189528 | 0.103017 | 0.052966 | 0.069517 | 0.08754 | 0.922115 | 0.922115 | 0.922115 | 0.904092 | 0.89554 | 0.89554 | 0 | 0.006119 | 0.236639 | 16,485 | 387 | 96 | 42.596899 | 0.858074 | 0.460237 | 0 | 0.786585 | 0 | 0 | 0.00746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164634 | false | 0 | 0.030488 | 0.073171 | 0.323171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b939ab11c953c2f8f929148816ae9e1a26464d52 | 25,959 | py | Python | layers/ModConv2d.py | Egor-kokhan/StyleGANv2-genart-keras | 64db59a8df7b61331a1c19aadc8a61219df97813 | [
"MIT"
] | 1 | 2022-02-27T10:18:04.000Z | 2022-02-27T10:18:04.000Z | layers/ModConv2d.py | Egor-kokhan/StyleGANv2-genart-keras | 64db59a8df7b61331a1c19aadc8a61219df97813 | [
"MIT"
] | 2 | 2021-04-11T12:44:59.000Z | 2021-04-21T11:39:33.000Z | layers/ModConv2d.py | Egor-kokhan/StyleGANv2-genart-keras | 64db59a8df7b61331a1c19aadc8a61219df97813 | [
"MIT"
] | 1 | 2021-04-08T16:33:51.000Z | 2021-04-08T16:33:51.000Z | import numpy as np
import tensorflow as tf
from tensorflow.python.eager import context
from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras import activations
from tensorflow.python.keras import backend
from tensorflow.python.keras import constraints
from tensorflow.python.keras import ini... | 42.625616 | 157 | 0.659656 | 3,287 | 25,959 | 5.048068 | 0.099483 | 0.024107 | 0.025312 | 0.0226 | 0.91177 | 0.885614 | 0.86657 | 0.847526 | 0.847526 | 0.83716 | 0 | 0.011661 | 0.233599 | 25,959 | 608 | 158 | 42.695724 | 0.822367 | 0.261797 | 0 | 0.834483 | 0 | 0 | 0.051752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043678 | false | 0.004598 | 0.057471 | 0 | 0.149425 | 0.002299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b9702a06b9ed7fc4d9a817c2f64d9dd97f558e62 | 2,572 | py | Python | weblogic/datadog_checks/weblogic/config_models/defaults.py | kjmadscience/integrations-core | 663bdf44730dd6c9f3565c121318b320bfcb4988 | [
"BSD-3-Clause"
] | null | null | null | weblogic/datadog_checks/weblogic/config_models/defaults.py | kjmadscience/integrations-core | 663bdf44730dd6c9f3565c121318b320bfcb4988 | [
"BSD-3-Clause"
] | null | null | null | weblogic/datadog_checks/weblogic/config_models/defaults.py | kjmadscience/integrations-core | 663bdf44730dd6c9f3565c121318b320bfcb4988 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x va... | 22.365217 | 105 | 0.783437 | 368 | 2,572 | 5.152174 | 0.269022 | 0.32173 | 0.219409 | 0.189873 | 0.640295 | 0.640295 | 0.589662 | 0.550633 | 0.550633 | 0.526371 | 0 | 0.00772 | 0.143857 | 2,572 | 114 | 106 | 22.561404 | 0.853315 | 0.132193 | 0 | 0.415094 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.490566 | false | 0.056604 | 0.018868 | 0.490566 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 8 |
b9768f71ceac6b148aebf8ed5448843fbff65b92 | 5,670 | py | Python | smart_purchase/smart_purchase/doctype/smart_purchase/smart_purchase.py | hrgadeha/sp | 374902a7fba3c0a26fbaf79592fd15b70f7d7187 | [
"MIT"
] | null | null | null | smart_purchase/smart_purchase/doctype/smart_purchase/smart_purchase.py | hrgadeha/sp | 374902a7fba3c0a26fbaf79592fd15b70f7d7187 | [
"MIT"
] | null | null | null | smart_purchase/smart_purchase/doctype/smart_purchase/smart_purchase.py | hrgadeha/sp | 374902a7fba3c0a26fbaf79592fd15b70f7d7187 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import frappe
from datetime import date
from datetime import datetime, timedelta
from frappe import msgprint
from frappe.model.document import Document
class SmartPurchase(Document):
def on_submit(self):
if self.order_for == "All Items From Table":
items = []
for i in s... | 53.490566 | 190 | 0.667196 | 843 | 5,670 | 4.29656 | 0.103203 | 0.046383 | 0.033131 | 0.046383 | 0.905025 | 0.905025 | 0.891496 | 0.889012 | 0.889012 | 0.870514 | 0 | 0.004216 | 0.205115 | 5,670 | 105 | 191 | 54 | 0.799423 | 0 | 0 | 0.608696 | 0 | 0.23913 | 0.585714 | 0.075309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.065217 | 0 | 0.217391 | 0.032609 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b9f8728e6d7557630d0e645684f34330c3d10fda | 6,098 | py | Python | Tensile/Tests/extended/convolution_config/test_conv_vs_contraction.py | micmelesse/Tensile | 62fb9a16909ddef08010915cfefe4c0341f48daa | [
"MIT"
] | 1 | 2021-12-03T09:42:10.000Z | 2021-12-03T09:42:10.000Z | Tensile/Tests/extended/convolution_config/test_conv_vs_contraction.py | micmelesse/Tensile | 62fb9a16909ddef08010915cfefe4c0341f48daa | [
"MIT"
] | 1 | 2020-06-22T19:28:26.000Z | 2020-06-22T19:28:26.000Z | Tensile/Tests/extended/convolution_config/test_conv_vs_contraction.py | micmelesse/Tensile | 62fb9a16909ddef08010915cfefe4c0341f48daa | [
"MIT"
] | null | null | null | import logging,pytest
from Tensile.SolutionStructs import Convolution
log =logging.getLogger("testlog")
"""
These tests run the convolution-vs-contraction mode always
"""
def test_simple(run_convolution_vs_contraction):
z={} # problemType definition
conv = Convolution(z, 'ConvolutionForward',
co... | 36.73494 | 66 | 0.528862 | 513 | 6,098 | 6.111111 | 0.146199 | 0.103668 | 0.191388 | 0.206699 | 0.841467 | 0.841467 | 0.841467 | 0.841467 | 0.841467 | 0.841467 | 0 | 0.038327 | 0.345359 | 6,098 | 165 | 67 | 36.957576 | 0.746994 | 0.045097 | 0 | 0.787671 | 0 | 0 | 0.205432 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 1 | 0.082192 | false | 0 | 0.013699 | 0 | 0.09589 | 0.082192 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
6a08234512c4c7c6273ac2fef240da01b52d7d59 | 17,635 | bzl | Python | dotnet/private/deps/nunit.bzl | Saqoosha/rules_dotnet | 4311b84a47e7850293aba9207534ad49056e9a2d | [
"Apache-2.0"
] | 1 | 2021-12-24T14:21:43.000Z | 2021-12-24T14:21:43.000Z | dotnet/private/deps/nunit.bzl | Saqoosha/rules_dotnet | 4311b84a47e7850293aba9207534ad49056e9a2d | [
"Apache-2.0"
] | null | null | null | dotnet/private/deps/nunit.bzl | Saqoosha/rules_dotnet | 4311b84a47e7850293aba9207534ad49056e9a2d | [
"Apache-2.0"
] | 1 | 2020-01-29T15:22:44.000Z | 2020-01-29T15:22:44.000Z | load("@io_bazel_rules_dotnet//dotnet/private:rules/nuget.bzl", "nuget_package")
def dotnet_repositories_nunit():
### Generated by the tool
nuget_package(
name = "nunit",
package = "nunit",
version = "3.12.0",
sha256 = "62b67516a08951a20b12b02e5d20b5045edbb687c3aabe9170286ec5bb90... | 40.54023 | 84 | 0.490388 | 1,736 | 17,635 | 4.968318 | 0.038018 | 0.185507 | 0.13913 | 0.146087 | 0.905043 | 0.837913 | 0.760928 | 0.760928 | 0.723362 | 0.723362 | 0 | 0.049996 | 0.356904 | 17,635 | 434 | 85 | 40.633641 | 0.710519 | 0.002835 | 0 | 0.802784 | 1 | 0 | 0.547275 | 0.450222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00232 | true | 0 | 0 | 0 | 0.00464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
e007e4df5a59ad3bbc1ac232a6f3a3f61908e80f | 1,775 | py | Python | catkin_ws/build/fetch_gazebo/fetchit_challenge/cmake/fetchit_challenge-genmsg-context.py | RHolmewood/FetchRobot_Project2 | c096dd4bf88691d893010e95074f5c53baac37bc | [
"MIT"
] | null | null | null | catkin_ws/build/fetch_gazebo/fetchit_challenge/cmake/fetchit_challenge-genmsg-context.py | RHolmewood/FetchRobot_Project2 | c096dd4bf88691d893010e95074f5c53baac37bc | [
"MIT"
] | null | null | null | catkin_ws/build/fetch_gazebo/fetchit_challenge/cmake/fetchit_challenge-genmsg-context.py | RHolmewood/FetchRobot_Project2 | c096dd4bf88691d893010e95074f5c53baac37bc | [
"MIT"
] | null | null | null | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionResult... | 147.916667 | 1,179 | 0.849014 | 241 | 1,775 | 6.033195 | 0.26971 | 0.18707 | 0.175378 | 0.196011 | 0.55227 | 0.522008 | 0.522008 | 0.522008 | 0.522008 | 0.455983 | 0 | 0.000574 | 0.019155 | 1,775 | 11 | 1,180 | 161.363636 | 0.834578 | 0.027606 | 0 | 0 | 1 | 0.222222 | 0.882251 | 0.852668 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e01c0416c89d7be58a231c8f0806e95636663854 | 16,164 | py | Python | ambari-server/src/test/python/stacks/2.2/SPARK/test_job_history_server.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | 3 | 2016-12-01T15:55:11.000Z | 2016-12-01T15:56:38.000Z | ambari-server/src/test/python/stacks/2.2/SPARK/test_job_history_server.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-server/src/test/python/stacks/2.2/SPARK/test_job_history_server.py | willwill1101/ambari | 3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 48.39521 | 653 | 0.664996 | 1,835 | 16,164 | 5.686104 | 0.159128 | 0.062105 | 0.032394 | 0.024152 | 0.844451 | 0.828445 | 0.827008 | 0.820587 | 0.820587 | 0.812728 | 0 | 0.015448 | 0.203044 | 16,164 | 333 | 654 | 48.540541 | 0.794519 | 0.001237 | 0 | 0.761745 | 0 | 0.02349 | 0.36515 | 0.247659 | 0 | 0 | 0 | 0 | 0.151007 | 0 | null | null | 0 | 0.010067 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e054a5745344cc75e7903418581ff63d795cec92 | 52,772 | py | Python | tensorflow/python/distribute/vars_test.py | jessecantu/tensorflow | b9c6bd0008933f640d2c8f3a372de1f75f7208da | [
"Apache-2.0"
] | 1 | 2021-10-02T14:03:09.000Z | 2021-10-02T14:03:09.000Z | tensorflow/python/distribute/vars_test.py | jessecantu/tensorflow | b9c6bd0008933f640d2c8f3a372de1f75f7208da | [
"Apache-2.0"
] | null | null | null | tensorflow/python/distribute/vars_test.py | jessecantu/tensorflow | b9c6bd0008933f640d2c8f3a372de1f75f7208da | [
"Apache-2.0"
] | 1 | 2021-10-03T18:47:35.000Z | 2021-10-03T18:47:35.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 40.130798 | 84 | 0.688206 | 5,878 | 52,772 | 5.935182 | 0.063287 | 0.057787 | 0.079084 | 0.040932 | 0.870926 | 0.839052 | 0.802993 | 0.783415 | 0.760255 | 0.730645 | 0 | 0.012502 | 0.213333 | 52,772 | 1,314 | 85 | 40.161339 | 0.827865 | 0.057587 | 0 | 0.719816 | 0 | 0 | 0.018282 | 0.003181 | 0 | 0 | 0 | 0.000761 | 0.065438 | 1 | 0.068203 | false | 0.000922 | 0.023041 | 0.004608 | 0.126267 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e0791bd317c669f8efc4e286c195114e56c5cdce | 150 | py | Python | opennmt/optimizers/__init__.py | abumafrim/OpenNMT-tf | f14c05a7cb8b1b8f3a692d6fea3c12067bc3eb2c | [
"MIT"
] | 1 | 2020-10-15T11:13:45.000Z | 2020-10-15T11:13:45.000Z | opennmt/optimizers/__init__.py | abumafrim/OpenNMT-tf | f14c05a7cb8b1b8f3a692d6fea3c12067bc3eb2c | [
"MIT"
] | null | null | null | opennmt/optimizers/__init__.py | abumafrim/OpenNMT-tf | f14c05a7cb8b1b8f3a692d6fea3c12067bc3eb2c | [
"MIT"
] | 1 | 2021-04-14T14:12:24.000Z | 2021-04-14T14:12:24.000Z | """Module defining custom optimizers."""
from opennmt.optimizers.utils import make_optimizer
from opennmt.optimizers.utils import register_optimizer
| 30 | 55 | 0.84 | 18 | 150 | 6.888889 | 0.611111 | 0.177419 | 0.33871 | 0.419355 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086667 | 150 | 4 | 56 | 37.5 | 0.905109 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
0edcd3e86ee7e6552759bab47d5c32c0d5d9fac9 | 178 | py | Python | core/ai/behaviors/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | core/ai/behaviors/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | core/ai/behaviors/__init__.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from core.ai.behaviors.base import Behavior
from core.ai.behaviors.meleeattack import MeleeAttack
from core.ai.behaviors.move import Move
from core.ai.behaviors.wait import Wait
| 35.6 | 53 | 0.842697 | 28 | 178 | 5.357143 | 0.357143 | 0.213333 | 0.266667 | 0.506667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 178 | 4 | 54 | 44.5 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
0ee5be5dc35e9b2d7772eb891f62eae8572b1a6e | 10,335 | py | Python | unittests/tools/test_acunetix_parser.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 249 | 2016-09-06T21:04:40.000Z | 2018-01-19T15:59:44.000Z | unittests/tools/test_acunetix_parser.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 255 | 2016-09-06T21:36:37.000Z | 2018-01-19T19:57:57.000Z | unittests/tools/test_acunetix_parser.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 152 | 2016-09-06T21:04:54.000Z | 2018-01-18T08:52:24.000Z | import datetime
from ..dojo_test_case import DojoTestCase
from dojo.models import Test
from dojo.tools.acunetix.parser import AcunetixParser
class TestAcunetixParser(DojoTestCase):
def test_parse_file_with_one_finding(self):
testfile = open("unittests/scans/acunetix/one_finding.xml")
parser = Ac... | 50.661765 | 180 | 0.630963 | 1,149 | 10,335 | 5.583116 | 0.154917 | 0.128605 | 0.060951 | 0.03258 | 0.819174 | 0.807638 | 0.792985 | 0.744661 | 0.744661 | 0.70491 | 0 | 0.014563 | 0.262506 | 10,335 | 203 | 181 | 50.91133 | 0.82708 | 0.037155 | 0 | 0.706215 | 0 | 0.028249 | 0.112755 | 0.031209 | 0 | 0 | 0 | 0 | 0.717514 | 1 | 0.016949 | false | 0 | 0.022599 | 0 | 0.045198 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0eff1eb6388bdf042052833b36087da1f0c83ad4 | 32,102 | py | Python | Exam_Exercises/Sase.py | Konstantin-Bogdanoski/VI | fbf934504b00271e1a8d405a2995fc7ed662f37a | [
"MIT"
] | 2 | 2020-03-27T20:36:27.000Z | 2020-09-20T13:34:46.000Z | Exam_Exercises/Sase.py | Konstantin-Bogdanoski/VI | fbf934504b00271e1a8d405a2995fc7ed662f37a | [
"MIT"
] | null | null | null | Exam_Exercises/Sase.py | Konstantin-Bogdanoski/VI | fbf934504b00271e1a8d405a2995fc7ed662f37a | [
"MIT"
] | null | null | null | from Python_neinformirano_prebaruvanje_final import *
# Check if the white Rook is in a valid position (not in the line of fire of all the black Rooks)
def validityOfWhite(gun, A):
#print("TESTING WHITE VALIDITY")
# print(gun)
location = gun
#print(location[0] != A[4][0] and location[0] != A[5][0] and... | 55.158076 | 135 | 0.633169 | 3,028 | 32,102 | 6.709049 | 0.032695 | 0.071868 | 0.090081 | 0.09648 | 0.900172 | 0.899828 | 0.88506 | 0.88506 | 0.883928 | 0.877824 | 0 | 0.076346 | 0.252103 | 32,102 | 582 | 136 | 55.158076 | 0.769795 | 0.071584 | 0 | 0.784689 | 0 | 0 | 0.020214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021531 | false | 0 | 0.002392 | 0.009569 | 0.045455 | 0.002392 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1693904e6b58d878c966f5703b0562b8b9d4775d | 119 | py | Python | python/testData/inspections/AddCallSuperOptionalAndRequiredParamsNameCollision_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/AddCallSuperOptionalAndRequiredParamsNameCollision_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/AddCallSuperOptionalAndRequiredParamsNameCollision_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class A:
def __init__(self, a):
pass
class B(A):
def __init__(self, a=1):
A.__init__(self, a) | 14.875 | 28 | 0.537815 | 19 | 119 | 2.736842 | 0.421053 | 0.461538 | 0.519231 | 0.461538 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.319328 | 119 | 8 | 29 | 14.875 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 8 |
16a6de77129242943514b33a5973c458ebe638dc | 19,810 | py | Python | src/undefined/Calculator.py | cs107-undefined/cs107-FinalProject | d950346a7c677ca5a0e12d103be60f18a29a6d96 | [
"MIT"
] | 4 | 2021-12-11T22:21:22.000Z | 2021-12-19T22:01:24.000Z | src/undefined/Calculator.py | cs107-undefined/cs107-FinalProject | d950346a7c677ca5a0e12d103be60f18a29a6d96 | [
"MIT"
] | 27 | 2021-11-07T17:50:15.000Z | 2021-12-11T20:43:14.000Z | src/undefined/Calculator.py | cs107-undefined/cs107-FinalProject | d950346a7c677ca5a0e12d103be60f18a29a6d96 | [
"MIT"
] | 2 | 2021-12-11T21:14:33.000Z | 2021-12-15T04:32:36.000Z | import numpy as np
import sys
# # temp solution for directory.
sys.path.append("./src/")
import math
from undefined.UDFunction import UDFunction
from undefined.GraphGenerator import UDGraph
from undefined.Utils import UDPrimitive, check_division_by_zero, check_log, check_pow, check_arc
def cos(udobject):
"""calc... | 36.348624 | 107 | 0.660676 | 2,437 | 19,810 | 5.258925 | 0.049241 | 0.087547 | 0.077247 | 0.048455 | 0.887016 | 0.876248 | 0.854947 | 0.846442 | 0.821239 | 0.81211 | 0 | 0.003232 | 0.250328 | 19,810 | 544 | 108 | 36.415441 | 0.85974 | 0.30101 | 0 | 0.740741 | 0 | 0 | 0.110575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053872 | false | 0 | 0.020202 | 0 | 0.218855 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
16c902d89e8420dbef8117fb4d5b99c470f340cb | 45 | py | Python | droput_message/droput_msg/__init__.py | hosein-yousefii/DROPUT | 99a714f03a92b14228a3691ca6568ece0f0ea48c | [
"Apache-2.0"
] | 2 | 2022-03-17T08:08:07.000Z | 2022-03-17T21:38:54.000Z | droput_message/droput_msg/__init__.py | hosein-yousefii/DROPUT | 99a714f03a92b14228a3691ca6568ece0f0ea48c | [
"Apache-2.0"
] | null | null | null | droput_message/droput_msg/__init__.py | hosein-yousefii/DROPUT | 99a714f03a92b14228a3691ca6568ece0f0ea48c | [
"Apache-2.0"
] | null | null | null | from droput_msg.droput_msg import create_app
| 22.5 | 44 | 0.888889 | 8 | 45 | 4.625 | 0.75 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 45 | 1 | 45 | 45 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
16ce40272b45ec1dc6e62dbf84336360c1038014 | 311 | py | Python | infcommon/docker_compose/factory.py | aleasoluciones/infcommon | cdd64dacba6b1219e511b3410168434080c668da | [
"MIT"
] | null | null | null | infcommon/docker_compose/factory.py | aleasoluciones/infcommon | cdd64dacba6b1219e511b3410168434080c668da | [
"MIT"
] | 1 | 2021-03-26T09:16:07.000Z | 2021-03-26T09:16:07.000Z | infcommon/docker_compose/factory.py | aleasoluciones/infcommon3 | 5be559b741ec447ad54ec232efa013f2fb3af18a | [
"MIT"
] | null | null | null | from infcommon.factory import Factory
from infcommon.docker_compose.docker_compose import DockerComposeService
def docker_compose_service(base_dir=None, docker_compose_file_name=None):
return Factory.instance('docker_compose_service', lambda: DockerComposeService(base_dir, docker_compose_file_name))
| 44.428571 | 123 | 0.855305 | 39 | 311 | 6.461538 | 0.435897 | 0.309524 | 0.15873 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083601 | 311 | 6 | 124 | 51.833333 | 0.884211 | 0 | 0 | 0 | 0 | 0 | 0.07074 | 0.07074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
bc5e90e9733f74102bf0de3613807a3bca55980c | 34 | py | Python | gunicorn_config.py | bbc/connected-data-mistletoe | 6c6a5e4137d1965261b18e7ea42bca0e313c49a6 | [
"MIT"
] | null | null | null | gunicorn_config.py | bbc/connected-data-mistletoe | 6c6a5e4137d1965261b18e7ea42bca0e313c49a6 | [
"MIT"
] | null | null | null | gunicorn_config.py | bbc/connected-data-mistletoe | 6c6a5e4137d1965261b18e7ea42bca0e313c49a6 | [
"MIT"
] | null | null | null | bind = "0.0.0.0:5004"
workers = 2
| 11.333333 | 21 | 0.588235 | 8 | 34 | 2.5 | 0.625 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 0.176471 | 34 | 2 | 22 | 17 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bc71acb6f4e50529ee5875ae8ef8acc591f077c2 | 6,545 | py | Python | Utils/Data/Features/Generated/EngagerFeature/EngagerKnowTweetLanguage.py | MaurizioFD/recsys-challenge-2020-twitter | 95dc024fb4f8777aa62e1304536daece640428de | [
"Apache-2.0"
] | 44 | 2020-07-09T11:31:17.000Z | 2022-03-04T05:50:48.000Z | Utils/Data/Features/Generated/EngagerFeature/EngagerKnowTweetLanguage.py | kiminh/recsys-challenge-2020-twitter | 567f0db40be7db3d21c360f2ca6cdf2addc7c698 | [
"Apache-2.0"
] | 3 | 2020-10-02T18:55:21.000Z | 2020-10-13T22:13:58.000Z | Utils/Data/Features/Generated/EngagerFeature/EngagerKnowTweetLanguage.py | kiminh/recsys-challenge-2020-twitter | 567f0db40be7db3d21c360f2ca6cdf2addc7c698 | [
"Apache-2.0"
] | 9 | 2020-08-08T14:55:59.000Z | 2021-09-06T09:17:03.000Z | from Utils.Data.DatasetUtils import is_test_or_val_set, get_train_set_id_from_test_or_val_set
from Utils.Data.Features.Generated.TweetFeature.IsEngagementType import *
from Utils.Data.Features.MappedFeatures import *
class EngagerFeatureKnowTweetLanguage(GeneratedFeaturePickle):
def __init__(self, dataset_id: st... | 42.777778 | 104 | 0.645531 | 707 | 6,545 | 5.561528 | 0.128713 | 0.077823 | 0.119023 | 0.101729 | 0.879451 | 0.81765 | 0.772126 | 0.736521 | 0.704985 | 0.666328 | 0 | 0.001922 | 0.284645 | 6,545 | 152 | 105 | 43.059211 | 0.83789 | 0.097937 | 0 | 0.66 | 1 | 0 | 0.042658 | 0.03586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.03 | 0 | 0.06 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
bc878241629133623a92adcd68bc5a4b335aa562 | 24,925 | py | Python | unisender/south_migrations/0001_initial.py | ITCase-django/django-unisender | d9d269cb5074967c22a756bff01db48c94b044bc | [
"MIT"
] | 2 | 2015-04-09T13:16:41.000Z | 2017-12-06T10:07:09.000Z | unisender/south_migrations/0001_initial.py | ITCase-django/django-unisender | d9d269cb5074967c22a756bff01db48c94b044bc | [
"MIT"
] | 2 | 2015-01-20T12:02:50.000Z | 2017-04-07T07:16:48.000Z | unisender/south_migrations/0001_initial.py | ITCase-django/django-unisender | d9d269cb5074967c22a756bff01db48c94b044bc | [
"MIT"
] | 1 | 2022-02-22T13:34:40.000Z | 2022-02-22T13:34:40.000Z | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Tag'
db.create_table(u'unisender_tag', (
(u'i... | 76.457055 | 207 | 0.619699 | 2,786 | 24,925 | 5.409189 | 0.059943 | 0.097678 | 0.170007 | 0.242867 | 0.880358 | 0.834041 | 0.82349 | 0.79509 | 0.758593 | 0.688985 | 0 | 0.014124 | 0.1734 | 24,925 | 326 | 208 | 76.457055 | 0.717323 | 0.030211 | 0 | 0.301818 | 0 | 0 | 0.512485 | 0.325562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007273 | false | 0 | 0.014545 | 0 | 0.032727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
bcb3440d2bbb687c791235134ad1d156c938355d | 148 | py | Python | delft3d/__init__.py | Carlisle345748/Delft3D-Toolbox | 47267205c7a5b442daf35f3a5d2aaf8d3fc76ff0 | [
"MIT"
] | 10 | 2020-05-12T13:38:23.000Z | 2022-02-24T09:49:10.000Z | delft3d/__init__.py | Carlisle345748/Delft3D-Toolbox | 47267205c7a5b442daf35f3a5d2aaf8d3fc76ff0 | [
"MIT"
] | 1 | 2021-05-27T15:42:41.000Z | 2021-06-04T13:27:48.000Z | delft3d/__init__.py | Carlisle345748/Delft3D-Toolbox | 47267205c7a5b442daf35f3a5d2aaf8d3fc76ff0 | [
"MIT"
] | 2 | 2021-08-31T16:54:08.000Z | 2022-02-15T22:50:26.000Z | from .GrdFile import *
from .MdfFile import *
from .TimeSeriesFile import *
from .GrdFile import *
from .DepFile import *
from .Simulation import *
| 21.142857 | 29 | 0.756757 | 18 | 148 | 6.222222 | 0.388889 | 0.446429 | 0.303571 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 148 | 6 | 30 | 24.666667 | 0.903226 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
4c211025471acb13f56994d9a1db3420c72f7fd9 | 12,383 | py | Python | CodeIA/venv/Lib/site-packages/coremltools/converters/mil/mil/passes/test_noop_elimination.py | Finasty-lab/IA-Python | 286113504906fec11a5aa5fd1d12e38536b1c859 | [
"Apache-2.0"
] | 3 | 2018-10-02T17:23:01.000Z | 2020-08-15T04:47:07.000Z | coremltools/converters/mil/mil/passes/test_noop_elimination.py | holzschu/coremltools | 5ece9069a1487d5083f00f56afe07832d88e3dfa | [
"BSD-3-Clause"
] | null | null | null | coremltools/converters/mil/mil/passes/test_noop_elimination.py | holzschu/coremltools | 5ece9069a1487d5083f00f56afe07832d88e3dfa | [
"BSD-3-Clause"
] | 1 | 2021-05-07T15:38:20.000Z | 2021-05-07T15:38:20.000Z | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools.converters.mil.mil import Builder as mb
from coremltools.converters.mil.testing_util... | 32.41623 | 167 | 0.616652 | 1,809 | 12,383 | 3.928137 | 0.085683 | 0.01351 | 0.052069 | 0.062482 | 0.8179 | 0.798902 | 0.787644 | 0.780045 | 0.760062 | 0.754433 | 0 | 0.028523 | 0.229912 | 12,383 | 381 | 168 | 32.501312 | 0.716653 | 0.016797 | 0 | 0.585443 | 0 | 0 | 0.07356 | 0.037561 | 0 | 0 | 0 | 0 | 0.174051 | 1 | 0.113924 | false | 0.063291 | 0.022152 | 0 | 0.199367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
d5e9e8d1f0c3dea7916a54d1d4cb4c82992a8ba7 | 188 | py | Python | tacotron2_model/__init__.py | BenAAndrew/tacotron2-model | cd2aaf605f94e97225319fbf876e4213ae517b40 | [
"BSD-3-Clause"
] | 4 | 2021-01-24T22:55:13.000Z | 2021-08-11T12:36:53.000Z | tacotron2_model/__init__.py | BenAAndrew/tacotron2-model | cd2aaf605f94e97225319fbf876e4213ae517b40 | [
"BSD-3-Clause"
] | null | null | null | tacotron2_model/__init__.py | BenAAndrew/tacotron2-model | cd2aaf605f94e97225319fbf876e4213ae517b40 | [
"BSD-3-Clause"
] | null | null | null | from tacotron2_model.model import Tacotron2
from tacotron2_model.loss import Tacotron2Loss
from tacotron2_model.collate import TextMelCollate
from tacotron2_model.stft import TacotronSTFT
| 37.6 | 50 | 0.893617 | 24 | 188 | 6.833333 | 0.416667 | 0.317073 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.085106 | 188 | 4 | 51 | 47 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
d5f15b339269de91803c06694887b8a3333ed84a | 359,776 | py | Python | packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py | pragyagarg642/plotly.py | 141aa6dcb3f838b2102db6ecc9ae1bdb70daf20b | [
"MIT"
] | 2 | 2020-04-11T19:28:30.000Z | 2020-05-04T03:16:20.000Z | packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py | pragyagarg642/plotly.py | 141aa6dcb3f838b2102db6ecc9ae1bdb70daf20b | [
"MIT"
] | null | null | null | packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py | pragyagarg642/plotly.py | 141aa6dcb3f838b2102db6ecc9ae1bdb70daf20b | [
"MIT"
] | null | null | null | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class ZAxis(_BaseLayoutHierarchyType):
# autorange
# ---------
@property
def autorange(self):
"""
Determines whether or not the range of this axis is computed in
relation ... | 37.759866 | 95 | 0.578087 | 40,391 | 359,776 | 5.119111 | 0.025476 | 0.012018 | 0.009402 | 0.013392 | 0.951365 | 0.915634 | 0.913642 | 0.910348 | 0.905013 | 0.904143 | 0 | 0.011624 | 0.333574 | 359,776 | 9,527 | 96 | 37.763829 | 0.850749 | 0.506165 | 0 | 0.77099 | 0 | 0.003611 | 0.421801 | 0.01258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134517 | false | 0.000301 | 0.007824 | 0.004213 | 0.213662 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
913930e470d9550e54bd835c7d0d63345f6e5966 | 3,935 | py | Python | tests/test_hand.py | alisol911/hot-hands | 648f32b3b11b768dbced407fabc963694a97dbfe | [
"MIT"
] | null | null | null | tests/test_hand.py | alisol911/hot-hands | 648f32b3b11b768dbced407fabc963694a97dbfe | [
"MIT"
] | null | null | null | tests/test_hand.py | alisol911/hot-hands | 648f32b3b11b768dbced407fabc963694a97dbfe | [
"MIT"
] | null | null | null | import unittest
from server.models import (Hand, HandType, WinnerType, MinHand, MaxHand)
class HandTests(unittest.TestCase):
def test_hand(self):
h = Hand()
t = h.Throw()
self.assertTrue(t >= MinHand and t <= MaxHand)
t = h.Throw()
self.assertTrue(t >= MinHand and t <= MaxH... | 59.621212 | 91 | 0.695044 | 457 | 3,935 | 5.980306 | 0.067834 | 0.220271 | 0.197585 | 0.263447 | 0.929748 | 0.929748 | 0.929748 | 0.822905 | 0.822905 | 0.102452 | 0 | 0.009183 | 0.169759 | 3,935 | 65 | 92 | 60.538462 | 0.827365 | 0 | 0 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.754386 | 1 | 0.035088 | false | 0 | 0.035088 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
e66f8db0ef1ce94a0a49fdcadb251832caa7c689 | 132 | py | Python | grayscale/math/min.py | KennethanCeyer/grayscale | 646a11ea47f2120f317e554c736d8054aa55c4c4 | [
"MIT"
] | null | null | null | grayscale/math/min.py | KennethanCeyer/grayscale | 646a11ea47f2120f317e554c736d8054aa55c4c4 | [
"MIT"
] | null | null | null | grayscale/math/min.py | KennethanCeyer/grayscale | 646a11ea47f2120f317e554c736d8054aa55c4c4 | [
"MIT"
] | null | null | null | from builtins import min as builtin_min
from typing import List
def min(nums: List[float]) -> float:
return builtin_min(nums)
| 18.857143 | 39 | 0.75 | 21 | 132 | 4.619048 | 0.571429 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174242 | 132 | 6 | 40 | 22 | 0.889908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
e68a17764189ab251520c2eae0c6cd849d71a5ed | 420 | py | Python | sap2012/SAP_tables/__init__.py | building-energy/sap2012 | 4cb3a362be4662b0e96c56a3765771f0cba91422 | [
"MIT"
] | 7 | 2021-04-17T21:55:37.000Z | 2021-08-19T13:06:16.000Z | sap2012/SAP_tables/__init__.py | building-energy/sap2012 | 4cb3a362be4662b0e96c56a3765771f0cba91422 | [
"MIT"
] | null | null | null | sap2012/SAP_tables/__init__.py | building-energy/sap2012 | 4cb3a362be4662b0e96c56a3765771f0cba91422 | [
"MIT"
] | 2 | 2021-03-21T16:14:50.000Z | 2021-04-20T08:54:41.000Z | # -*- coding: utf-8 -*-
from .temperature_reduction_when_heating_is_off_table_9b import temperature_reduction_when_heating_is_off_table_9b
from .utilisation_factor_for_heating_table_9a import utilisation_factor_for_heating_table_9a
from .heating_requirement_table_9c import heating_requirement_table_9c
from .utilisatio... | 70 | 116 | 0.919048 | 63 | 420 | 5.428571 | 0.333333 | 0.19883 | 0.233918 | 0.315789 | 0.766082 | 0.74269 | 0.643275 | 0.508772 | 0 | 0 | 0 | 0.022556 | 0.05 | 420 | 6 | 116 | 70 | 0.834586 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e6b80e26be44b41285b0a62e8ed11cca2b8a67d8 | 6,665 | py | Python | test/programytest/config/brain/test_security.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 2 | 2018-06-16T09:32:22.000Z | 2019-07-21T13:16:00.000Z | test/programytest/config/brain/test_security.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 3 | 2020-07-16T04:00:42.000Z | 2021-03-31T18:52:22.000Z | test/programytest/config/brain/test_security.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 4 | 2018-06-29T23:50:44.000Z | 2020-11-05T08:13:47.000Z | import unittest
from programy.config.file.yaml_file import YamlConfigurationFile
from programy.config.brain.security import BrainSecurityConfiguration
from programy.clients.events.console.config import ConsoleConfiguration
class BrainSecurityConfigurationTests(unittest.TestCase):
def test_authorisation_with_data... | 46.284722 | 129 | 0.71868 | 577 | 6,665 | 8.008666 | 0.081456 | 0.084397 | 0.033759 | 0.051937 | 0.942437 | 0.939623 | 0.929453 | 0.929453 | 0.929453 | 0.929453 | 0 | 0 | 0.1997 | 6,665 | 143 | 130 | 46.608392 | 0.866329 | 0 | 0 | 0.837607 | 0 | 0 | 0.300675 | 0.137734 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.051282 | false | 0.102564 | 0.034188 | 0 | 0.094017 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
fc23a887e9cd9279b4d723567c74ec2009de49e3 | 63,209 | py | Python | transmitter.py | wrycu/srs_recorder | c2af1b2a28bf56a8574eb6fb3b356990ba8f78dc | [
"MIT"
] | 3 | 2021-07-06T23:22:25.000Z | 2022-02-11T21:26:25.000Z | transmitter.py | wrycu/srs_recorder | c2af1b2a28bf56a8574eb6fb3b356990ba8f78dc | [
"MIT"
] | 17 | 2020-11-15T05:25:55.000Z | 2021-12-07T22:09:04.000Z | transmitter.py | wrycu/srs_recorder | c2af1b2a28bf56a8574eb6fb3b356990ba8f78dc | [
"MIT"
] | null | null | null | import socket
import time
import arrow
data = {
'thanksgiving': [
b'X\x00\x0f\x00\n\x00P\x03q\xbc\xe4f\xe3<<\xb5\x08\x8ak!@\x00\x00\x00@\xee-\xb2A\x00\x00\x02\n\x00\x01N\x00\x00\x00\x00\x00\x00\x00\x00titJbdwfPEidr2nlJ47e4AtitJbdwfPEidr2nlJ47e4A',
b'X\x00\x0f\x00\n\x00P\x03q\xbc\xe4f\xe3<<\xb5\x08\... | 308.336585 | 499 | 0.741398 | 12,758 | 63,209 | 3.668365 | 0.170325 | 0.190765 | 0.185765 | 0.165125 | 0.412021 | 0.409906 | 0.409906 | 0.409243 | 0.404543 | 0.386851 | 0 | 0.267222 | 0.026278 | 63,209 | 204 | 500 | 309.848039 | 0.493176 | 0 | 0 | 0.072539 | 0 | 0.704663 | 0.901169 | 0.898037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020725 | false | 0 | 0.015544 | 0.005181 | 0.041451 | 0.020725 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5df4da8e4aa7a570cc1b6a8bacfefa6622a02095 | 8,902 | py | Python | stonesoup/metricgenerator/tests/test_tracktotruthmetrics.py | io8ex/Stone-Soup | 071abc8f6004296ab35094db04c7ec410103c419 | [
"MIT"
] | 1 | 2021-12-02T00:17:21.000Z | 2021-12-02T00:17:21.000Z | stonesoup/metricgenerator/tests/test_tracktotruthmetrics.py | io8ex/Stone-Soup | 071abc8f6004296ab35094db04c7ec410103c419 | [
"MIT"
] | null | null | null | stonesoup/metricgenerator/tests/test_tracktotruthmetrics.py | io8ex/Stone-Soup | 071abc8f6004296ab35094db04c7ec410103c419 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
from ..tracktotruthmetrics import SIAPMetrics, IDSIAPMetrics
from ...measures import Euclidean
from ...types.groundtruth import GroundTruthPath
from ...types.metric import SingleTimeMetric, TimeRangeMetric
from ...types.track import Track
def test_siap(trial_manager, trial... | 47.100529 | 98 | 0.694226 | 1,149 | 8,902 | 5.092254 | 0.093995 | 0.104427 | 0.097419 | 0.047171 | 0.801231 | 0.752008 | 0.746197 | 0.746197 | 0.720902 | 0.706204 | 0 | 0.018925 | 0.216468 | 8,902 | 188 | 99 | 47.351064 | 0.819928 | 0.047068 | 0 | 0.452555 | 0 | 0 | 0.091553 | 0 | 0 | 0 | 0 | 0 | 0.510949 | 1 | 0.014599 | false | 0 | 0.043796 | 0 | 0.058394 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
5d5877db5892996888d521ce7a03879213017f75 | 21,141 | py | Python | p2ptracker/tests/test_transfers.py | TMG-nl/p2ptracker | 0e6e77eac77de3fa4f15443920bc6f6886b129b4 | [
"MIT"
] | 5 | 2015-04-29T04:55:21.000Z | 2017-10-27T08:51:56.000Z | p2ptracker/tests/test_transfers.py | TMG-nl/p2ptracker | 0e6e77eac77de3fa4f15443920bc6f6886b129b4 | [
"MIT"
] | null | null | null | p2ptracker/tests/test_transfers.py | TMG-nl/p2ptracker | 0e6e77eac77de3fa4f15443920bc6f6886b129b4 | [
"MIT"
] | null | null | null | __author__ = 'ramon'
from flaskext.testing import TestCase
import redis
from p2ptracker import create_app
from p2ptracker.tests.helpers import utils
import os
import logging
from mocker import Mocker
log = logging.getLogger('hyves.p2ptracker.test.test_transfers')
REMOVE_LOG = False
SCRIPTDIR = os.path.dirname(__file... | 48.488532 | 118 | 0.628636 | 2,647 | 21,141 | 4.93351 | 0.068757 | 0.066774 | 0.069684 | 0.084539 | 0.894402 | 0.887817 | 0.881461 | 0.872885 | 0.856574 | 0.841872 | 0 | 0.059682 | 0.221702 | 21,141 | 435 | 119 | 48.6 | 0.733986 | 0.000899 | 0 | 0.794416 | 0 | 0 | 0.151383 | 0.010607 | 0 | 0 | 0 | 0 | 0.309645 | 0 | null | null | 0 | 0.017767 | null | null | 0.048223 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5d6c386ec52721522ec18c767b356c1fb0bc903e | 5,928 | py | Python | test/utils/test_pivoted_cholesky.py | Balandat/linear_operator | 34c1bc6a0bf4010d54243a4503fb24b9c3201b95 | [
"MIT"
] | 18 | 2020-11-13T14:21:38.000Z | 2022-03-01T22:14:07.000Z | test/utils/test_pivoted_cholesky.py | Balandat/linear_operator | 34c1bc6a0bf4010d54243a4503fb24b9c3201b95 | [
"MIT"
] | 7 | 2020-11-16T00:53:27.000Z | 2021-01-15T06:10:14.000Z | test/utils/test_pivoted_cholesky.py | Balandat/linear_operator | 34c1bc6a0bf4010d54243a4503fb24b9c3201b95 | [
"MIT"
] | 2 | 2020-11-13T02:31:11.000Z | 2021-06-04T12:43:05.000Z | #!/usr/bin/env python3
from __future__ import annotations
import math
import os
import random
import unittest
import torch
import linear_operator
from linear_operator import settings
from linear_operator.test.utils import approx_equal
from linear_operator.utils import pivoted_cholesky
def rbf_kernel(x1, x2=None):... | 35.927273 | 108 | 0.619096 | 824 | 5,928 | 4.234223 | 0.145631 | 0.034394 | 0.060189 | 0.065348 | 0.83233 | 0.811981 | 0.785612 | 0.785612 | 0.785612 | 0.785612 | 0 | 0.038462 | 0.25 | 5,928 | 164 | 109 | 36.146341 | 0.746289 | 0.003543 | 0 | 0.700787 | 0 | 0 | 0.019641 | 0 | 0 | 0 | 0 | 0 | 0.055118 | 1 | 0.110236 | false | 0 | 0.07874 | 0 | 0.220472 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5d6ca86e153282330e979044dd3aa11cead54bd8 | 18,577 | py | Python | PROPOSAL/tests/gen_testfiles_scripts/photonuclear.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | PROPOSAL/tests/gen_testfiles_scripts/photonuclear.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | PROPOSAL/tests/gen_testfiles_scripts/photonuclear.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | import pyPROPOSAL as pp
import numpy as np
photo_real = [
pp.parametrization.photonuclear.Zeus,
pp.parametrization.photonuclear.BezrukovBugaev,
pp.parametrization.photonuclear.Rhode,
pp.parametrization.photonuclear.Kokoulin
]
particle_defs = [
pp.particle.MuMinusDef.get(),
pp.particle.TauMinus... | 37.681542 | 110 | 0.425149 | 1,446 | 18,577 | 5.320194 | 0.080221 | 0.100611 | 0.077993 | 0.031197 | 0.834655 | 0.825426 | 0.804108 | 0.77837 | 0.77252 | 0.763421 | 0 | 0.01126 | 0.502826 | 18,577 | 492 | 111 | 37.75813 | 0.821676 | 0.002745 | 0 | 0.777188 | 0 | 0 | 0.018303 | 0.004859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023873 | false | 0 | 0.007958 | 0 | 0.03183 | 0.005305 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
53c9452719a80fa80781cf22dc927621583f63bc | 12,322 | py | Python | unittest/scripts/py_devapi/validation/mysqlx_collection_remove_prepared.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | unittest/scripts/py_devapi/validation/mysqlx_collection_remove_prepared.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | unittest/scripts/py_devapi/validation/mysqlx_collection_remove_prepared.py | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | #@<PROTOCOL> First execution is normal
>>>> SEND Mysqlx.Crud.Delete {
collection {
name: "test_collection"
schema: "prepared_stmt"
}
data_model: DOCUMENT
criteria {
type: OPERATOR
operator {
name: "=="
param {
type: IDENT
identifier {
document_path {
... | 17.428571 | 79 | 0.481902 | 1,240 | 12,322 | 4.681452 | 0.075 | 0.032558 | 0.035831 | 0.053747 | 0.96882 | 0.96503 | 0.941602 | 0.913695 | 0.909388 | 0.857537 | 0 | 0.030925 | 0.383298 | 12,322 | 706 | 80 | 17.453258 | 0.732991 | 0.129687 | 0 | 0.669811 | 0 | 0 | 0.073679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.