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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02696d42dfe2832400fa6bb7a000178b629ffe23
| 4,857
|
py
|
Python
|
boto3_type_annotations/boto3_type_annotations/appsync/client.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 119
|
2018-12-01T18:20:57.000Z
|
2022-02-02T10:31:29.000Z
|
boto3_type_annotations/boto3_type_annotations/appsync/client.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 15
|
2018-11-16T00:16:44.000Z
|
2021-11-13T03:44:18.000Z
|
boto3_type_annotations/boto3_type_annotations/appsync/client.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 11
|
2019-05-06T05:26:51.000Z
|
2021-09-28T15:27:59.000Z
|
from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from typing import Union
from botocore.paginate import Paginator
from botocore.waiter import Waiter
class Client(BaseClient):
def can_paginate(self, operation_name: str = None):
pass
def create_api_key(self, apiId: str, description: str = None, expires: int = None) -> Dict:
pass
def create_data_source(self, apiId: str, name: str, type: str, description: str = None, serviceRoleArn: str = None, dynamodbConfig: Dict = None, lambdaConfig: Dict = None, elasticsearchConfig: Dict = None, httpConfig: Dict = None, relationalDatabaseConfig: Dict = None) -> Dict:
pass
def create_function(self, apiId: str, name: str, dataSourceName: str, requestMappingTemplate: str, functionVersion: str, description: str = None, responseMappingTemplate: str = None) -> Dict:
pass
def create_graphql_api(self, name: str, authenticationType: str, logConfig: Dict = None, userPoolConfig: Dict = None, openIDConnectConfig: Dict = None) -> Dict:
pass
def create_resolver(self, apiId: str, typeName: str, fieldName: str, requestMappingTemplate: str, dataSourceName: str = None, responseMappingTemplate: str = None, kind: str = None, pipelineConfig: Dict = None) -> Dict:
pass
def create_type(self, apiId: str, definition: str, format: str) -> Dict:
pass
def delete_api_key(self, apiId: str, id: str) -> Dict:
pass
def delete_data_source(self, apiId: str, name: str) -> Dict:
pass
def delete_function(self, apiId: str, functionId: str) -> Dict:
pass
def delete_graphql_api(self, apiId: str) -> Dict:
pass
def delete_resolver(self, apiId: str, typeName: str, fieldName: str) -> Dict:
pass
def delete_type(self, apiId: str, typeName: str) -> Dict:
pass
def generate_presigned_url(self, ClientMethod: str = None, Params: Dict = None, ExpiresIn: int = None, HttpMethod: str = None):
pass
def get_data_source(self, apiId: str, name: str) -> Dict:
pass
def get_function(self, apiId: str, functionId: str) -> Dict:
pass
def get_graphql_api(self, apiId: str) -> Dict:
pass
def get_introspection_schema(self, apiId: str, format: str) -> Dict:
pass
def get_paginator(self, operation_name: str = None) -> Paginator:
pass
def get_resolver(self, apiId: str, typeName: str, fieldName: str) -> Dict:
pass
def get_schema_creation_status(self, apiId: str) -> Dict:
pass
def get_type(self, apiId: str, typeName: str, format: str) -> Dict:
pass
def get_waiter(self, waiter_name: str = None) -> Waiter:
pass
def list_api_keys(self, apiId: str, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def list_data_sources(self, apiId: str, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def list_functions(self, apiId: str, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def list_graphql_apis(self, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def list_resolvers(self, apiId: str, typeName: str, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def list_resolvers_by_function(self, apiId: str, functionId: str, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def list_types(self, apiId: str, format: str, nextToken: str = None, maxResults: int = None) -> Dict:
pass
def start_schema_creation(self, apiId: str, definition: bytes) -> Dict:
pass
def update_api_key(self, apiId: str, id: str, description: str = None, expires: int = None) -> Dict:
pass
def update_data_source(self, apiId: str, name: str, type: str, description: str = None, serviceRoleArn: str = None, dynamodbConfig: Dict = None, lambdaConfig: Dict = None, elasticsearchConfig: Dict = None, httpConfig: Dict = None, relationalDatabaseConfig: Dict = None) -> Dict:
pass
def update_function(self, apiId: str, name: str, functionId: str, dataSourceName: str, requestMappingTemplate: str, functionVersion: str, description: str = None, responseMappingTemplate: str = None) -> Dict:
pass
def update_graphql_api(self, apiId: str, name: str, logConfig: Dict = None, authenticationType: str = None, userPoolConfig: Dict = None, openIDConnectConfig: Dict = None) -> Dict:
pass
def update_resolver(self, apiId: str, typeName: str, fieldName: str, requestMappingTemplate: str, dataSourceName: str = None, responseMappingTemplate: str = None, kind: str = None, pipelineConfig: Dict = None) -> Dict:
pass
def update_type(self, apiId: str, typeName: str, format: str, definition: str = None) -> Dict:
pass
| 40.475
| 282
| 0.672843
| 601
| 4,857
| 5.336106
| 0.136439
| 0.078578
| 0.10976
| 0.079514
| 0.781727
| 0.713439
| 0.661366
| 0.626442
| 0.583411
| 0.555971
| 0
| 0
| 0.22133
| 4,857
| 119
| 283
| 40.815126
| 0.847964
| 0
| 0
| 0.45679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.45679
| false
| 0.45679
| 0.074074
| 0
| 0.54321
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
026ca953c70825d7f5555f0333b1751b4eac1da5
| 207
|
py
|
Python
|
modules/dbnd-airflow-monitor/src/airflow_monitor/_plugin.py
|
kalebinn/dbnd
|
89b6ac3537f861784be73ffe8989bf63fca7401c
|
[
"Apache-2.0"
] | null | null | null |
modules/dbnd-airflow-monitor/src/airflow_monitor/_plugin.py
|
kalebinn/dbnd
|
89b6ac3537f861784be73ffe8989bf63fca7401c
|
[
"Apache-2.0"
] | null | null | null |
modules/dbnd-airflow-monitor/src/airflow_monitor/_plugin.py
|
kalebinn/dbnd
|
89b6ac3537f861784be73ffe8989bf63fca7401c
|
[
"Apache-2.0"
] | null | null | null |
import logging
import dbnd
logger = logging.getLogger(__name__)
@dbnd.hookimpl
def dbnd_get_commands():
from airflow_monitor.cmd_airflow_monitor import airflow_monitor
return [airflow_monitor]
| 14.785714
| 67
| 0.797101
| 26
| 207
| 5.923077
| 0.576923
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144928
| 207
| 13
| 68
| 15.923077
| 0.870057
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.428571
| 0
| 0.714286
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
027b07b598ee83d59cb7a8c63833d7a9cd3bef7c
| 36
|
py
|
Python
|
code/abc039_b_04.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | 3
|
2019-08-16T16:55:48.000Z
|
2021-04-11T10:21:40.000Z
|
code/abc039_b_04.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
code/abc039_b_04.py
|
KoyanagiHitoshi/AtCoder
|
731892543769b5df15254e1f32b756190378d292
|
[
"MIT"
] | null | null | null |
X = int(input())
print(int(X**0.25))
| 18
| 19
| 0.583333
| 8
| 36
| 2.625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0.083333
| 36
| 2
| 19
| 18
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
5a1f79dce9412f2d6f2cc01e2f202a8c723bc6b7
| 145
|
py
|
Python
|
pypdflite/pdfobjects/__init__.py
|
tjoneslo/pypdflite
|
ac2501f30d6619eae9dea5644717575ca9263d0a
|
[
"MIT"
] | null | null | null |
pypdflite/pdfobjects/__init__.py
|
tjoneslo/pypdflite
|
ac2501f30d6619eae9dea5644717575ca9263d0a
|
[
"MIT"
] | null | null | null |
pypdflite/pdfobjects/__init__.py
|
tjoneslo/pypdflite
|
ac2501f30d6619eae9dea5644717575ca9263d0a
|
[
"MIT"
] | null | null | null |
from pdfcolor import PDFColor
from pdfmargin import PDFMargin
from pdfcursor import PDFCursor
__all__ = ['PDFColor', 'PDFMargin', 'PDFCursor']
| 20.714286
| 48
| 0.793103
| 16
| 145
| 6.9375
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131034
| 145
| 6
| 49
| 24.166667
| 0.880952
| 0
| 0
| 0
| 0
| 0
| 0.17931
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5a5286edfbc97f09a64bb15cced2eca8e78772ed
| 190
|
py
|
Python
|
tests/__init__.py
|
TUNE-Archive/freight_forwarder
|
6ea4a49f474ec04abb8bb81b175c774a16b5312f
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
TUNE-Archive/freight_forwarder
|
6ea4a49f474ec04abb8bb81b175c774a16b5312f
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
TUNE-Archive/freight_forwarder
|
6ea4a49f474ec04abb8bb81b175c774a16b5312f
|
[
"MIT"
] | null | null | null |
# flake8: noqa"
import sys
if sys.version_info >= (2, 7):
import unittest
else:
import unittest2 as unittest
try:
from unittest import mock
except ImportError:
import mock
| 14.615385
| 32
| 0.7
| 26
| 190
| 5.076923
| 0.692308
| 0.151515
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.027397
| 0.231579
| 190
| 12
| 33
| 15.833333
| 0.876712
| 0.068421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ce478a418c721d850023a3acb9dac5bab53a065f
| 96
|
py
|
Python
|
web/crawler_api/apps.py
|
lilerjee/ecproduct
|
98f3768d8b63626966ffeae0701d9e5725da1c1e
|
[
"MIT"
] | null | null | null |
web/crawler_api/apps.py
|
lilerjee/ecproduct
|
98f3768d8b63626966ffeae0701d9e5725da1c1e
|
[
"MIT"
] | 1
|
2020-07-30T04:12:13.000Z
|
2020-07-30T04:12:13.000Z
|
web/crawler_api/apps.py
|
lilerjee/ecproduct
|
98f3768d8b63626966ffeae0701d9e5725da1c1e
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class CrawlerApiConfig(AppConfig):
name = 'crawler_api'
| 16
| 34
| 0.770833
| 11
| 96
| 6.636364
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 96
| 5
| 35
| 19.2
| 0.901235
| 0
| 0
| 0
| 0
| 0
| 0.114583
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ce68ac842931a31bad91f39d2d54de01b28c0062
| 240
|
py
|
Python
|
Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/func1.py
|
tegamax/ProjectCode
|
0ed86e227fba50b453c5c4a2596afbadc39a167e
|
[
"MIT"
] | null | null | null |
Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/func1.py
|
tegamax/ProjectCode
|
0ed86e227fba50b453c5c4a2596afbadc39a167e
|
[
"MIT"
] | null | null | null |
Common_Questions/TextBookQuestions/PythonCrashCourse/Chapter_8/func1.py
|
tegamax/ProjectCode
|
0ed86e227fba50b453c5c4a2596afbadc39a167e
|
[
"MIT"
] | null | null | null |
def make_car(car_manufacturer,car_model,**Other_attributes):
Other_attributes['car_model']=car_model
Other_attributes['car_manufacturer']=car_manufacturer
return Other_attributes
print(make_car('Toyota','Rav 4',color='blue'))
| 30
| 60
| 0.783333
| 32
| 240
| 5.5
| 0.4375
| 0.340909
| 0.204545
| 0.261364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004587
| 0.091667
| 240
| 8
| 61
| 30
| 0.802752
| 0
| 0
| 0
| 0
| 0
| 0.165975
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.4
| 0.2
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ceb446ea593734f372b37b2dce2e403e86c975a8
| 300
|
py
|
Python
|
tests/test_okteto_nb2.py
|
ffreemt/okteto-nb2
|
f8022c8478abc57f9f2fa9b5d90ff6e2f497644f
|
[
"MIT"
] | null | null | null |
tests/test_okteto_nb2.py
|
ffreemt/okteto-nb2
|
f8022c8478abc57f9f2fa9b5d90ff6e2f497644f
|
[
"MIT"
] | null | null | null |
tests/test_okteto_nb2.py
|
ffreemt/okteto-nb2
|
f8022c8478abc57f9f2fa9b5d90ff6e2f497644f
|
[
"MIT"
] | null | null | null |
"""Test okteto_nb2."""
from okteto_nb2 import __version__
from okteto_nb2 import okteto_nb2
def test_version():
"""Test version."""
assert __version__ == "0.1.0"
def test_sanity():
"""Sanity check."""
try:
assert not okteto_nb2()
except Exception:
assert True
| 17.647059
| 34
| 0.643333
| 38
| 300
| 4.684211
| 0.447368
| 0.252809
| 0.146067
| 0.213483
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034783
| 0.233333
| 300
| 16
| 35
| 18.75
| 0.73913
| 0.146667
| 0
| 0
| 0
| 0
| 0.020833
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.222222
| true
| 0
| 0.222222
| 0
| 0.444444
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ceb5f8e0e6188fcb88d72f483f38b0064bdcfd81
| 473
|
py
|
Python
|
dopplerr/api/v1/__init__.py
|
Stibbons/sonarr-sub-downloader-docker
|
6a2124e1b8b41d0b2ec4845a42b3db9aa10b5702
|
[
"MIT"
] | 9
|
2018-04-27T18:49:31.000Z
|
2020-01-29T08:23:26.000Z
|
dopplerr/api/v1/__init__.py
|
Stibbons/sonarr-sub-downloader-docker
|
6a2124e1b8b41d0b2ec4845a42b3db9aa10b5702
|
[
"MIT"
] | 7
|
2017-05-31T16:38:40.000Z
|
2017-06-05T12:06:48.000Z
|
dopplerr/api/v1/__init__.py
|
Stibbons/subdlsrv
|
6a2124e1b8b41d0b2ec4845a42b3db9aa10b5702
|
[
"MIT"
] | 3
|
2018-04-22T08:40:29.000Z
|
2018-08-19T00:41:25.000Z
|
# coding: utf-8
# Dopplerr
import dopplerr.api.v1.config
import dopplerr.api.v1.events
import dopplerr.api.v1.medias
import dopplerr.api.v1.notify
import dopplerr.api.v1.series
import dopplerr.api.v1.status
def add_api_blueprints(app):
for modu in [
'config',
'events',
'medias',
'notify',
'series',
'status',
]:
modu = getattr(dopplerr.api.v1, modu)
app.blueprint(modu.bp)
| 20.565217
| 45
| 0.598309
| 58
| 473
| 4.844828
| 0.396552
| 0.274021
| 0.323843
| 0.405694
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023599
| 0.283298
| 473
| 22
| 46
| 21.5
| 0.80531
| 0.046512
| 0
| 0
| 0
| 0
| 0.080357
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0
| 0.352941
| 0
| 0.411765
| 0.117647
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ced362ae9b428997cb4a0c92e8baa7b533dc9997
| 80
|
py
|
Python
|
backend/mono-back/Deploy.py
|
sotapmc/Monologue
|
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
|
[
"Apache-2.0"
] | 5
|
2020-04-18T17:23:18.000Z
|
2021-04-05T04:50:03.000Z
|
backend/mono-back/Deploy.py
|
sotapmc/Monologue
|
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
|
[
"Apache-2.0"
] | 11
|
2020-04-22T03:40:25.000Z
|
2021-05-01T02:45:12.000Z
|
backend/mono-back/Deploy.py
|
Subilan/Monologue
|
7f81a933fb123f4d87acc07fa10b845ef13ec56c
|
[
"Apache-2.0"
] | 1
|
2020-04-22T13:08:21.000Z
|
2020-04-22T13:08:21.000Z
|
from User import UserManager
u = UserManager("admin")
u.createUser("password")
| 16
| 28
| 0.7625
| 10
| 80
| 6.1
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1125
| 80
| 5
| 29
| 16
| 0.859155
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
0c87d78ca15ecdbe6dabe9bf9e6340858c28f774
| 273
|
py
|
Python
|
Task/Strip-comments-from-a-string/Python/strip-comments-from-a-string-1.py
|
LaudateCorpus1/RosettaCodeData
|
9ad63ea473a958506c041077f1d810c0c7c8c18d
|
[
"Info-ZIP"
] | 1
|
2021-05-05T13:42:20.000Z
|
2021-05-05T13:42:20.000Z
|
Task/Strip-comments-from-a-string/Python/strip-comments-from-a-string-1.py
|
seanwallawalla-forks/RosettaCodeData
|
9ad63ea473a958506c041077f1d810c0c7c8c18d
|
[
"Info-ZIP"
] | null | null | null |
Task/Strip-comments-from-a-string/Python/strip-comments-from-a-string-1.py
|
seanwallawalla-forks/RosettaCodeData
|
9ad63ea473a958506c041077f1d810c0c7c8c18d
|
[
"Info-ZIP"
] | null | null | null |
def remove_comments(line, sep):
for s in sep:
i = line.find(s)
if i >= 0:
line = line[:i]
return line.strip()
# test
print remove_comments('apples ; pears # and bananas', ';#')
print remove_comments('apples ; pears # and bananas', '!')
| 24.818182
| 59
| 0.578755
| 37
| 273
| 4.189189
| 0.540541
| 0.270968
| 0.245161
| 0.322581
| 0.516129
| 0.516129
| 0.516129
| 0
| 0
| 0
| 0
| 0.005025
| 0.271062
| 273
| 10
| 60
| 27.3
| 0.773869
| 0.014652
| 0
| 0
| 0
| 0
| 0.220974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.25
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0cb02794ee7a674bbe1d08d6a762f0ef0989f2a4
| 578
|
py
|
Python
|
web/controllers/food/index.py
|
Dewuel/catetime
|
7a19ecd006366dc8113b8c43f76c2097083fbde6
|
[
"MIT"
] | 1
|
2019-03-22T19:27:16.000Z
|
2019-03-22T19:27:16.000Z
|
web/controllers/food/index.py
|
Dewuel/catetime
|
7a19ecd006366dc8113b8c43f76c2097083fbde6
|
[
"MIT"
] | null | null | null |
web/controllers/food/index.py
|
Dewuel/catetime
|
7a19ecd006366dc8113b8c43f76c2097083fbde6
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
from common.libs.Helper import ops_render
route_food = Blueprint('food_page', __name__)
@route_food.route('/index')
def index():
return ops_render('food/index.html')
@route_food.route('/set')
def food_set():
return ops_render('food/set.html')
@route_food.route('/cat')
def food_cate():
return ops_render('food/cat.html')
@route_food.route('/cat-set')
def food_setting():
return ops_render('food/cat_set.html')
@route_food.route('/info')
def food_info():
return ops_render('food/info.html')
| 19.266667
| 46
| 0.678201
| 83
| 578
| 4.457831
| 0.26506
| 0.145946
| 0.189189
| 0.256757
| 0.297297
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16782
| 578
| 29
| 47
| 19.931034
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0.196721
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.277778
| false
| 0
| 0.111111
| 0.277778
| 0.666667
| 0.111111
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
0cd13fe3f052fbad97c51ea1c291839a7dbeacd8
| 780
|
py
|
Python
|
periscope_pilot.py
|
xyla-io/bot_periscope
|
2e8791dd8b54200ae0eebc7e6b0a4fa3506f4afb
|
[
"MIT"
] | null | null | null |
periscope_pilot.py
|
xyla-io/bot_periscope
|
2e8791dd8b54200ae0eebc7e6b0a4fa3506f4afb
|
[
"MIT"
] | null | null | null |
periscope_pilot.py
|
xyla-io/bot_periscope
|
2e8791dd8b54200ae0eebc7e6b0a4fa3506f4afb
|
[
"MIT"
] | null | null | null |
from raspador import Pilot, UserInteractor, BrowserInteractor
from typing import Dict, List
class PeriscopePilot(Pilot):
config: Dict[str, any]
sign_in_wait = 3.0
def __init__(self, config: Dict[str, any], user: UserInteractor, browser: BrowserInteractor):
self.config = config
super().__init__(user=user, browser=browser)
@property
def email(self) -> str:
return self.config['email']
@property
def password(self) -> str:
return self.config['password']
@property
def base_url(self) -> str:
return self.config['base_url']
@property
def dashboard_ids(self) -> List[str]:
return self.config['dashboard_ids']
@property
def urls(self) -> List[str]:
return [f'{self.base_url}/{dash_id}' for dash_id in self.dashboard_ids]
| 26
| 95
| 0.698718
| 104
| 780
| 5.067308
| 0.365385
| 0.113852
| 0.098672
| 0.144213
| 0.13093
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003106
| 0.174359
| 780
| 30
| 96
| 26
| 0.815217
| 0
| 0
| 0.217391
| 0
| 0
| 0.075544
| 0.03201
| 0
| 0
| 0
| 0
| 0
| 1
| 0.26087
| false
| 0.086957
| 0.086957
| 0.217391
| 0.695652
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
0ce49055e4f748a6a74a776a3692f74f3f21911b
| 402
|
py
|
Python
|
pydexcom/errors.py
|
jeppesens/pydexcom
|
4b88c9fa88d9155c430ba1cb23e723039d66f0f4
|
[
"MIT"
] | 49
|
2020-05-06T19:15:34.000Z
|
2022-03-22T18:08:38.000Z
|
pydexcom/errors.py
|
jeppesens/pydexcom
|
4b88c9fa88d9155c430ba1cb23e723039d66f0f4
|
[
"MIT"
] | 18
|
2020-05-27T17:27:21.000Z
|
2022-02-28T21:07:31.000Z
|
pydexcom/errors.py
|
jeppesens/pydexcom
|
4b88c9fa88d9155c430ba1cb23e723039d66f0f4
|
[
"MIT"
] | 15
|
2020-05-20T21:07:27.000Z
|
2022-01-31T20:58:10.000Z
|
"""Errors used in pydexcom."""
class DexcomError(Exception):
"""Base class for all Dexcom errors."""
pass
class AccountError(DexcomError):
"""Errors involving Dexcom Share API credentials."""
pass
class SessionError(DexcomError):
"""Errors involving Dexcom Share API session."""
pass
class ArguementError(DexcomError):
"""Error involving arguements."""
pass
| 15.461538
| 56
| 0.681592
| 41
| 402
| 6.682927
| 0.536585
| 0.09854
| 0.189781
| 0.233577
| 0.291971
| 0.291971
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201493
| 402
| 25
| 57
| 16.08
| 0.853583
| 0.437811
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
0cea93d248ffe7d9aa0e863beb2ad8e78c0f4c95
| 109
|
py
|
Python
|
unbind/__init__.py
|
umd-mith/unbind
|
1a1c486798be201ec398d4ec9255334edb7e0b20
|
[
"MIT"
] | 3
|
2016-01-13T14:49:23.000Z
|
2016-05-28T20:25:09.000Z
|
unbind/__init__.py
|
umd-mith/unbind
|
1a1c486798be201ec398d4ec9255334edb7e0b20
|
[
"MIT"
] | 2
|
2015-06-10T21:34:27.000Z
|
2015-08-06T14:54:15.000Z
|
unbind/__init__.py
|
umd-mith/unbind
|
1a1c486798be201ec398d4ec9255334edb7e0b20
|
[
"MIT"
] | null | null | null |
from .shared_canvas import Manifest
def jsonld(tei_file):
m = Manifest(tei_file)
return m.jsonld()
| 15.571429
| 35
| 0.715596
| 16
| 109
| 4.6875
| 0.6875
| 0.186667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192661
| 109
| 6
| 36
| 18.166667
| 0.852273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0cf88663224a03558a03fc746ee7e47d94447bc4
| 46
|
py
|
Python
|
src/ciftostr/__init__.py
|
rowlesmr/ciftostr
|
36c36b9ef2b131db23b950c4af5e0134e9376ce2
|
[
"Apache-2.0"
] | null | null | null |
src/ciftostr/__init__.py
|
rowlesmr/ciftostr
|
36c36b9ef2b131db23b950c4af5e0134e9376ce2
|
[
"Apache-2.0"
] | 1
|
2021-11-10T17:26:17.000Z
|
2021-11-10T17:26:17.000Z
|
src/ciftostr/__init__.py
|
rowlesmr/ciftostr
|
36c36b9ef2b131db23b950c4af5e0134e9376ce2
|
[
"Apache-2.0"
] | null | null | null |
__version__ = '0.1.2'
from .ciftostr import *
| 15.333333
| 23
| 0.695652
| 7
| 46
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.152174
| 46
| 3
| 23
| 15.333333
| 0.641026
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0cf9bd80f90419aa6edcbccc07c0f3f31a6e96d5
| 194
|
py
|
Python
|
proxylists/proxies/__init__.py
|
jelitox/proxylist
|
be4d3d595b8eb7ec48ca132d49a65dca20b6eee7
|
[
"Apache-2.0"
] | null | null | null |
proxylists/proxies/__init__.py
|
jelitox/proxylist
|
be4d3d595b8eb7ec48ca132d49a65dca20b6eee7
|
[
"Apache-2.0"
] | null | null | null |
proxylists/proxies/__init__.py
|
jelitox/proxylist
|
be4d3d595b8eb7ec48ca132d49a65dca20b6eee7
|
[
"Apache-2.0"
] | 2
|
2021-05-17T23:01:43.000Z
|
2021-10-20T22:32:16.000Z
|
import asyncio
from .freeproxy import FreeProxy
from .proxydb import ProxyDB
from .hidemy import Hidemy
__all__ = ["FreeProxy", "Hidemy", "ProxyDB"]
PROXY_LIST = [ProxyDB, Hidemy, FreeProxy]
| 19.4
| 44
| 0.762887
| 23
| 194
| 6.217391
| 0.391304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139175
| 194
| 9
| 45
| 21.555556
| 0.856287
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0b4ff93dd3e26d3523c90f5b31b766ae44c72284
| 918
|
py
|
Python
|
models/locators.py
|
sernote/workspace
|
1f57493de7108a3d65b1a7b3134ffe725af33eed
|
[
"Apache-2.0"
] | null | null | null |
models/locators.py
|
sernote/workspace
|
1f57493de7108a3d65b1a7b3134ffe725af33eed
|
[
"Apache-2.0"
] | null | null | null |
models/locators.py
|
sernote/workspace
|
1f57493de7108a3d65b1a7b3134ffe725af33eed
|
[
"Apache-2.0"
] | null | null | null |
from selenium.webdriver.common.by import By
class BaseLocator:
"""Implement locator for page element"""
def __init__(self, locator_value: str, locator_type=By.XPATH, parent=None):
self.locator_type = locator_type
self.locator_value = locator_value
self.parent = parent
def __repr__(self):
return "%s:%s:%s" % (self.__class__, self.locator_type, self.locator_value)
def generate_xpath(self):
raise NotImplementedError
class WebLocator(BaseLocator):
def __init__(self, locator_value, locator_type, parent=None):
BaseLocator.__init__(self, locator_value, locator_type, parent)
def generate_xpath(self):
if self.locator_type is By.XPATH:
return self.locator_value
elif self.locator_type is By.ID:
return f'//*[contains(@id, "{self.locator_value}")]'
else:
raise NotImplementedError
| 31.655172
| 83
| 0.676471
| 112
| 918
| 5.205357
| 0.321429
| 0.207547
| 0.19211
| 0.102916
| 0.329331
| 0.12693
| 0.12693
| 0
| 0
| 0
| 0
| 0
| 0.22549
| 918
| 28
| 84
| 32.785714
| 0.819972
| 0.037037
| 0
| 0.2
| 0
| 0
| 0.056948
| 0.027335
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.05
| 0.05
| 0.55
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0b6cf9c37ca504d6a59eb246c34cca31a91a4366
| 2,306
|
py
|
Python
|
pddl/pddl_types.py
|
dosydon/translator-es
|
9e70473dc4a943e5247451c64275bd46c496d042
|
[
"Linux-OpenIB"
] | 4
|
2019-04-23T10:41:35.000Z
|
2019-10-27T05:14:42.000Z
|
pddl/pddl_types.py
|
dosydon/translator-es
|
9e70473dc4a943e5247451c64275bd46c496d042
|
[
"Linux-OpenIB"
] | null | null | null |
pddl/pddl_types.py
|
dosydon/translator-es
|
9e70473dc4a943e5247451c64275bd46c496d042
|
[
"Linux-OpenIB"
] | 4
|
2018-01-16T00:00:22.000Z
|
2019-11-01T23:35:01.000Z
|
# Renamed from types.py to avoid clash with stdlib module.
# In the future, use explicitly relative imports or absolute
# imports as a better solution.
import itertools
def _get_type_predicate_name(type_name):
# PDDL allows mixing types and predicates, but some PDDL files
# have name collisions between types and predicates. We want to
# support both the case where such name collisions occur and the
# case where types are used as predicates.
#
# We internally give types predicate names that cannot be confused
# with non-type predicates. When the input uses a PDDL type as a
# predicate, we automatically map it to this internal name.
return "type@%s" % type_name
class Type(object):
def __init__(self, name, basetype_name=None):
self.name = name
self.basetype_name = basetype_name
def __str__(self):
return self.name
def __repr__(self):
return "Type(%s, %s)" % (self.name, self.basetype_name)
def get_predicate_name(self):
return _get_type_predicate_name(self.name)
class TypedObject(object):
def __init__(self, name, type_name):
self.name = name
self.type_name = type_name
def __hash__(self):
return hash((self.name, self.type_name))
def __eq__(self, other):
return self.name == other.name and self.type_name == other.type_name
def __ne__(self, other):
return not self == other
def __str__(self):
return "%s: %s" % (self.name, self.type_name)
def __repr__(self):
return "<TypedObject %s: %s>" % (self.name, self.type_name)
def uniquify_name(self, type_map, renamings):
if self.name not in type_map:
type_map[self.name] = self.type_name
return self
for counter in itertools.count(1):
new_name = self.name + str(counter)
if new_name not in type_map:
renamings[self.name] = new_name
type_map[new_name] = self.type_name
return TypedObject(new_name, self.type_name)
def get_atom(self):
# TODO: Resolve cyclic import differently.
from . import conditions
predicate_name = _get_type_predicate_name(self.type_name)
return conditions.Atom(predicate_name, [self.name])
| 32.478873
| 76
| 0.662186
| 319
| 2,306
| 4.529781
| 0.304075
| 0.088581
| 0.07474
| 0.088581
| 0.229066
| 0.050519
| 0.034602
| 0.034602
| 0
| 0
| 0
| 0.000582
| 0.254987
| 2,306
| 70
| 77
| 32.942857
| 0.840512
| 0.259757
| 0
| 0.146341
| 0
| 0
| 0.026564
| 0
| 0
| 0
| 0
| 0.014286
| 0
| 1
| 0.317073
| false
| 0
| 0.04878
| 0.219512
| 0.707317
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0b9bb90164d75624f0c7bd7d04602acaa5f03ec4
| 49
|
py
|
Python
|
easyTCP/CLIENT/backend/__init__.py
|
dsal3389/easyTCP
|
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
|
[
"MIT"
] | 4
|
2018-12-09T13:57:59.000Z
|
2019-10-19T19:34:28.000Z
|
easyTCP/CLIENT/backend/__init__.py
|
dsal3389/easyTCP
|
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
|
[
"MIT"
] | null | null | null |
easyTCP/CLIENT/backend/__init__.py
|
dsal3389/easyTCP
|
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
|
[
"MIT"
] | null | null | null |
from .Client import CLIENT
__all__=('CLIENT',)
| 16.333333
| 27
| 0.714286
| 6
| 49
| 5.166667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 49
| 3
| 28
| 16.333333
| 0.738095
| 0
| 0
| 0
| 0
| 0
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0ba9736acbf37067f7defd80d7c3b5ccfc54c0dd
| 88
|
py
|
Python
|
deepctr/models/sequence/__init__.py
|
dzzxjl/DeepCTR
|
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
|
[
"Apache-2.0"
] | 6,192
|
2017-12-05T03:02:35.000Z
|
2022-03-31T20:59:30.000Z
|
deepctr/models/sequence/__init__.py
|
dzzxjl/DeepCTR
|
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
|
[
"Apache-2.0"
] | 362
|
2018-04-15T06:53:20.000Z
|
2022-03-21T15:03:02.000Z
|
deepctr/models/sequence/__init__.py
|
dzzxjl/DeepCTR
|
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
|
[
"Apache-2.0"
] | 1,960
|
2017-12-05T03:16:04.000Z
|
2022-03-31T06:37:00.000Z
|
from .bst import BST
from .dien import DIEN
from .din import DIN
from .dsin import DSIN
| 17.6
| 22
| 0.772727
| 16
| 88
| 4.25
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 88
| 4
| 23
| 22
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0bbe9b7f1329e31dccd2487a0513c3be4141624b
| 251
|
py
|
Python
|
POO/2022-03-03/ex3/funcionario.py
|
ppedraum/2022
|
ad2ae59331f0c1981430acaaea2bd644b819b4c0
|
[
"MIT"
] | null | null | null |
POO/2022-03-03/ex3/funcionario.py
|
ppedraum/2022
|
ad2ae59331f0c1981430acaaea2bd644b819b4c0
|
[
"MIT"
] | null | null | null |
POO/2022-03-03/ex3/funcionario.py
|
ppedraum/2022
|
ad2ae59331f0c1981430acaaea2bd644b819b4c0
|
[
"MIT"
] | null | null | null |
class Funcionario:
def __init__(self, nome, salario):
self.nome=nome
self.salario=float(salario)
def aum_salario(self, pct):
self.salario += (self.salario*pct/100)
def get_salario(self):
return self.salario
| 27.888889
| 46
| 0.641434
| 32
| 251
| 4.84375
| 0.40625
| 0.283871
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015873
| 0.247012
| 251
| 9
| 47
| 27.888889
| 0.804233
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0
| 0.125
| 0.625
| 0
| 0
| 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
| 0
| 1
| 0
| 0
|
0
| 4
|
e7f506bb6eeb572adff0aa40b15c98095277ca97
| 46
|
py
|
Python
|
Code/nebulae/doc.py
|
DaveSeidel/QB_Nebulae_V2
|
4a0218bb6a05e835e74b126729a1c3cd221fc9b5
|
[
"MIT"
] | 40
|
2019-12-30T03:44:36.000Z
|
2022-02-07T23:09:42.000Z
|
Code/nebulae/doc.py
|
alex-thibodeau/QB_Nebulae_V2
|
34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54
|
[
"MIT"
] | 11
|
2020-03-08T10:22:57.000Z
|
2022-03-22T21:18:32.000Z
|
Code/nebulae/doc.py
|
alex-thibodeau/QB_Nebulae_V2
|
34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54
|
[
"MIT"
] | 23
|
2020-01-20T11:12:20.000Z
|
2022-03-02T20:39:09.000Z
|
import ctcsound
c = ctcsound.Csound()
help(c)
| 11.5
| 21
| 0.73913
| 7
| 46
| 4.857143
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 46
| 3
| 22
| 15.333333
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f00561fa116ba307bbb62f747a45ec1a428f7c8a
| 120
|
py
|
Python
|
skabase/SKATestDevice/__main__.py
|
adityadangeska/lmc-base-classes
|
a3dada19b27fcc889546d754ef94986c55da5acc
|
[
"BSD-3-Clause"
] | 1
|
2019-05-31T09:47:31.000Z
|
2019-05-31T09:47:31.000Z
|
skabase/SKATestDevice/__main__.py
|
adityadangeska/lmc-base-classes
|
a3dada19b27fcc889546d754ef94986c55da5acc
|
[
"BSD-3-Clause"
] | null | null | null |
skabase/SKATestDevice/__main__.py
|
adityadangeska/lmc-base-classes
|
a3dada19b27fcc889546d754ef94986c55da5acc
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
#
# This file is part of the SKATestDevice project
#
#
#
from SKATestDevice import main
main()
| 12
| 48
| 0.666667
| 16
| 120
| 5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010417
| 0.2
| 120
| 9
| 49
| 13.333333
| 0.822917
| 0.566667
| 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 | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f00bf09a2919d63df72c1def55dde64cf8e5cb44
| 88
|
py
|
Python
|
htmap/__main__.py
|
elin1231/htmap
|
b9c43ec1d86e90730210c3317409b75595061d91
|
[
"Apache-2.0"
] | null | null | null |
htmap/__main__.py
|
elin1231/htmap
|
b9c43ec1d86e90730210c3317409b75595061d91
|
[
"Apache-2.0"
] | null | null | null |
htmap/__main__.py
|
elin1231/htmap
|
b9c43ec1d86e90730210c3317409b75595061d91
|
[
"Apache-2.0"
] | null | null | null |
from .cli import cli
if __name__ == "__main__":
exit(cli.main(prog_name="htmap"))
| 14.666667
| 37
| 0.670455
| 13
| 88
| 3.846154
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170455
| 88
| 5
| 38
| 17.6
| 0.684932
| 0
| 0
| 0
| 0
| 0
| 0.147727
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f018a66d765f21eb7a25e295045372155c50c929
| 89
|
py
|
Python
|
backend/design_pattern/models.py
|
vuhaininh/iok
|
694ede913f41532dab2816616923474db752d6a1
|
[
"MIT"
] | 1
|
2020-05-21T08:24:25.000Z
|
2020-05-21T08:24:25.000Z
|
backend/design_pattern/models.py
|
vuhaininh/iok
|
694ede913f41532dab2816616923474db752d6a1
|
[
"MIT"
] | 4
|
2021-03-19T03:44:01.000Z
|
2021-09-22T19:04:17.000Z
|
backend/design_pattern/models.py
|
vuhaininh/iok
|
694ede913f41532dab2816616923474db752d6a1
|
[
"MIT"
] | null | null | null |
from .patterns.creational.factory_method import \
ConcreteProduct1, ConcreteProduct2
| 29.666667
| 49
| 0.831461
| 8
| 89
| 9.125
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025316
| 0.11236
| 89
| 2
| 50
| 44.5
| 0.898734
| 0
| 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 | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f02c9cb883d2d53823b39c3518ae3d1fe8e78ef6
| 6,440
|
py
|
Python
|
lowfat/migrations/0039_auto_20160720_1002.py
|
elena-kolomeets/lowfat
|
f7647f5cd12519f722e41808157a96cc3e37b6ce
|
[
"BSD-3-Clause"
] | 6
|
2017-02-23T16:44:36.000Z
|
2019-03-18T11:39:03.000Z
|
lowfat/migrations/0039_auto_20160720_1002.py
|
elena-kolomeets/lowfat
|
f7647f5cd12519f722e41808157a96cc3e37b6ce
|
[
"BSD-3-Clause"
] | 286
|
2017-02-07T15:00:41.000Z
|
2022-03-08T12:56:09.000Z
|
lowfat/migrations/0039_auto_20160720_1002.py
|
elena-kolomeets/lowfat
|
f7647f5cd12519f722e41808157a96cc3e37b6ce
|
[
"BSD-3-Clause"
] | 2
|
2018-06-19T12:38:08.000Z
|
2020-11-23T12:15:08.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-07-20 10:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lowfat', '0038_auto_20160717_2144'),
]
operations = [
migrations.AlterField(
model_name='fellow',
name='research_area_code',
field=models.CharField(choices=[('A100', 'Pre-clinical medicine'), ('A200', 'Pre-clinical dentistry'), ('A300', 'Clinical medicine'), ('A400', 'Clinical dentistry'), ('A900', 'Others in medicine & dentistry'), ('A000', 'Medicine & dentistry'), ('B100', 'Anatomy, physiology & pathology'), ('B200', 'Pharmacology, toxicology & pharmacy'), ('B300', 'Complementary medicines, therapies & well-being'), ('B400', 'Nutrition'), ('B500', 'Ophthalmics'), ('B600', 'Aural & oral sciences'), ('B700', 'Nursing'), ('B800', 'Medical technology'), ('B900', 'Others in subjects allied to medicine'), ('B000', 'Subjects allied to medicine'), ('C100', 'Biology'), ('C200', 'Botany'), ('C300', 'Zoology'), ('C400', 'Genetics'), ('C500', 'Microbiology'), ('C600', 'Sport & exercise science'), ('C700', 'Molecular biology, biophysics & biochemistry'), ('C800', 'Psychology'), ('C900', 'Others in Biological Sciences'), ('C000', 'Biological sciences'), ('D100', 'Pre-clinical veterinary medicine'), ('D200', 'Clinical veterinary medicine & dentistry'), ('D300', 'Animal science'), ('D400', 'Agriculture'), ('D500', 'Forestry & arboriculture'), ('D600', 'Food & beverage studies'), ('D700', 'Agricultural sciences'), ('D900', 'Others in veterinary sciences, agriculture & related subjects'), ('D000', 'Veterinary sciences, agriculture & related subjects'), ('F100', 'Chemistry'), ('F200', 'Materials science'), ('F300', 'Physics'), ('F400', 'Forensic & archaeological sciences'), ('F500', 'Astronomy'), ('F600', 'Geology'), ('F700', 'Science of aquatic & terrestrial environments'), ('F800', 'Physical geographical sciences'), ('F900', 'Others in physical sciences'), ('F000', 'Physical sciences'), ('G100', 'Mathematics'), ('G200', 'Operational research'), ('G300', 'Statistics'), ('G900', 'Others in mathematical sciences'), ('H100', 'General engineering'), ('H200', 'Civil engineering'), ('H300', 'Mechanical engineering'), ('H400', 'Aerospace engineering'), ('H500', 'Naval architecture'), ('H600', 'Electronic & electrical engineering'), ('H700', 'Production & manufacturing engineering'), ('H800', 'Chemical, process & energy engineering'), ('H900', 'Others in engineering'), ('H000', 'Engineering'), ('I100', 'Computer science'), ('I200', 'Information systems'), ('I300', 'Software engineering'), ('I400', 'Artificial intelligence'), ('I500', 'Health informatics'), ('I600', 'Games'), ('I700', 'Computer generated visual & audio effects'), ('I900', 'Others in Computer sciences'), ('J100', 'Minerals technology'), ('J200', 'Metallurgy'), ('J300', 'Ceramics & glass'), ('J400', 'Polymers & textiles'), ('J500', 'Materials technology not otherwise specified'), ('J600', 'Maritime technology'), ('J700', 'Biotechnology'), ('J900', 'Others in technology'), ('J000', 'Technologies'), ('K100', 'Architecture'), ('K200', 'Building'), ('K300', 'Landscape & garden design'), ('K400', 'Planning (urban, rural & regional)'), ('K900', 'Others in architecture, building & planning'), ('K000', 'Architecture, building & planning'), ('L100', 'Economics'), ('L200', 'Politics'), ('L300', 'Sociology'), ('L391', 'Sociology of science & technology'), ('L400', 'Social policy'), ('L500', 'Social work'), ('L600', 'Anthropology'), ('L700', 'Human & social geography'), ('L800', 'Development studies'), ('L900', 'Others in social studies'), ('L000', 'Social studies'), ('M000', 'Law'), ('N100', 'Business studies'), ('N200', 'Management studies'), ('N300', 'Finance'), ('N400', 'Accounting'), ('N500', 'Marketing'), ('N600', 'Human resource management'), ('N700', 'Office skills'), ('N800', 'Hospitality, leisure, sport, tourism & transport'), ('N900', 'Others in business & administrative studies'), ('N000', 'Business & administrative studies'), ('P100', 'Information services'), ('P200', 'Publicity studies'), ('P300', 'Media studies'), ('P400', 'Publishing'), ('P500', 'Journalism'), ('P900', 'Others in mass communications & documentation'), ('Q100', 'Linguistics'), ('Q200', 'Comparative literary studies'), ('Q300', 'English studies'), ('Q400', 'Ancient language studies'), ('Q500', 'Celtic studies'), ('Q600', 'Latin studies'), ('Q700', 'Classical Greek studies'), ('Q800', 'Classical studies'), ('Q900', 'Others in linguistics, classics & related subjects'), ('Q000', 'Linguistics, classics & related subjects'), ('R100', 'French studies'), ('R200', 'German studies'), ('R300', 'Italian studies'), ('R400', 'Spanish studies'), ('R500', 'Portuguese studies'), ('R600', 'Scandinavian studies'), ('R700', 'Russian & East European studies'), ('R800', 'European studies'), ('R900', 'Others in European languages, literature & related subjects'), ('R000', 'European languages, literature & related subjects'), ('T100', 'Chinese studies'), ('T200', 'Japanese studies'), ('T300', 'South Asian studies'), ('T400', 'Other Asian studies'), ('T500', 'African studies'), ('T600', 'Modern Middle Eastern studies'), ('T700', 'American studies'), ('T800', 'Australasian studies'), ('T900', 'Others in Eastern, Asiatic, African, American & Australasian languages, literature & related subjects'), ('T000', 'Eastern, Asiatic, African, American & Australasian languages, literature & related subjects'), ('V100', 'History by period'), ('V200', 'History by area'), ('V300', 'History by topic'), ('V400', 'Archaeology'), ('V500', 'Philosophy'), ('V600', 'Theology & religious studies'), ('V700', 'Heritage studies'), ('V900', 'Others in historical & philosophical studies'), ('V000', 'Historical & philosophical studies'), ('W100', 'Fine art'), ('W200', 'Design studies'), ('W300', 'Music'), ('W400', 'Drama'), ('W500', 'Dance'), ('W600', 'Cinematics & photography'), ('W700', 'Crafts'), ('W800', 'Imaginative writing'), ('W900', 'Others in creative arts & design'), ('W000', 'Creative arts & design'), ('X100', 'Training teachers'), ('X200', 'Research & study skills in education'), ('X300', 'Academic studies in education'), ('X900', 'Others in education'), ('X000', 'Education'), ('Y000', 'Combined/general subject unspecified')], default='Y000', max_length=4),
),
]
| 306.666667
| 6,029
| 0.656056
| 648
| 6,440
| 6.501543
| 0.649691
| 0.036079
| 0.024686
| 0.032281
| 0.07643
| 0.035604
| 0.035604
| 0.035604
| 0.035604
| 0
| 0
| 0.09342
| 0.117391
| 6,440
| 20
| 6,030
| 322
| 0.647783
| 0.010404
| 0
| 0
| 1
| 0
| 0.684615
| 0.003611
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.153846
| 0
| 0.384615
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f0354e14c4b61f401cabe3f28a4b06306e011966
| 89
|
py
|
Python
|
pytictactoe/game_state.py
|
hixi/pytictactoe
|
e48e32d36a1f4b9c0e47dbb572d05d5848d76bef
|
[
"MIT"
] | null | null | null |
pytictactoe/game_state.py
|
hixi/pytictactoe
|
e48e32d36a1f4b9c0e47dbb572d05d5848d76bef
|
[
"MIT"
] | 6
|
2018-03-14T22:54:25.000Z
|
2022-02-09T23:35:33.000Z
|
pytictactoe/game_state.py
|
hixi/pytictactoe
|
e48e32d36a1f4b9c0e47dbb572d05d5848d76bef
|
[
"MIT"
] | 2
|
2018-03-14T17:09:56.000Z
|
2020-05-01T05:04:17.000Z
|
from enum import Enum
GameState = Enum('GameState', ['WON', 'LOST', 'REMI', 'ONGOING'])
| 22.25
| 65
| 0.651685
| 11
| 89
| 5.272727
| 0.727273
| 0.448276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134831
| 89
| 3
| 66
| 29.666667
| 0.753247
| 0
| 0
| 0
| 0
| 0
| 0.303371
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f071fa0ed9ed6878d5ad8de681c6cb3203eb641c
| 258
|
py
|
Python
|
pixivmanager/exceptions.py
|
WOo0W/pixivmanager-python
|
327034eb83a696b710be25c55c89a5c5112955b1
|
[
"MIT"
] | null | null | null |
pixivmanager/exceptions.py
|
WOo0W/pixivmanager-python
|
327034eb83a696b710be25c55c89a5c5112955b1
|
[
"MIT"
] | null | null | null |
pixivmanager/exceptions.py
|
WOo0W/pixivmanager-python
|
327034eb83a696b710be25c55c89a5c5112955b1
|
[
"MIT"
] | null | null | null |
class PixivException(Exception):
pass
class DownloadException(PixivException):
pass
class APIException(PixivException):
pass
class LoginPasswordError(APIException):
pass
class LoginTokenError(APIException):
pass
| 13.578947
| 41
| 0.705426
| 20
| 258
| 9.1
| 0.4
| 0.197802
| 0.252747
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236434
| 258
| 18
| 42
| 14.333333
| 0.923858
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.6
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
b2bf19c160bcf64821f8527dee224cfbae5c5a70
| 226
|
py
|
Python
|
graphdot/dataset/__init__.py
|
yhtang/GraphDot
|
3d5ed4fbb2f6912052baa42780b436da76979691
|
[
"BSD-3-Clause-LBNL"
] | 9
|
2020-02-14T18:07:39.000Z
|
2021-12-15T12:07:31.000Z
|
graphdot/dataset/__init__.py
|
yhtang/graphdot
|
3d5ed4fbb2f6912052baa42780b436da76979691
|
[
"BSD-3-Clause-LBNL"
] | 3
|
2020-03-19T19:07:26.000Z
|
2021-02-24T06:08:51.000Z
|
graphdot/dataset/__init__.py
|
yhtang/graphdot
|
3d5ed4fbb2f6912052baa42780b436da76979691
|
[
"BSD-3-Clause-LBNL"
] | 3
|
2019-10-17T06:11:18.000Z
|
2021-05-07T11:56:33.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ._get import get
from .qm7 import QM7
from .qm9 import QM9
from .metlin_smrt import METLIN_SMRT
from .ames import AMES
__all__ = ['get', 'QM7', 'QM9', 'METLIN_SMRT', 'AMES']
| 22.6
| 54
| 0.685841
| 36
| 226
| 4.083333
| 0.444444
| 0.204082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036649
| 0.154867
| 226
| 9
| 55
| 25.111111
| 0.732984
| 0.185841
| 0
| 0
| 0
| 0
| 0.131868
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 0
| 0
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b2d0a991be0060b4991e2064994aa545e6e467a5
| 153
|
py
|
Python
|
countdown.py
|
ec404-cool/countdown
|
672498222e695fc395f991756e0b046edb8453be
|
[
"Apache-2.0"
] | null | null | null |
countdown.py
|
ec404-cool/countdown
|
672498222e695fc395f991756e0b046edb8453be
|
[
"Apache-2.0"
] | null | null | null |
countdown.py
|
ec404-cool/countdown
|
672498222e695fc395f991756e0b046edb8453be
|
[
"Apache-2.0"
] | null | null | null |
import time
import random
for x in range(0,23):
for y in range(0,59):
for z in range(0,59):
time.sleep(0.5)
print(x,y,z)
| 19.125
| 28
| 0.542484
| 30
| 153
| 2.766667
| 0.5
| 0.253012
| 0.289157
| 0.240964
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106796
| 0.326797
| 153
| 7
| 29
| 21.857143
| 0.699029
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.285714
| 0
| 0.285714
| 0.142857
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b2d3af649d02013cd4c5b333de97bc3909e05a86
| 16
|
py
|
Python
|
lang/py/cookbook/v2/source/cb2_1_0_exm_12.py
|
ch1huizong/learning
|
632267634a9fd84a5f5116de09ff1e2681a6cc85
|
[
"MIT"
] | null | null | null |
lang/py/cookbook/v2/source/cb2_1_0_exm_12.py
|
ch1huizong/learning
|
632267634a9fd84a5f5116de09ff1e2681a6cc85
|
[
"MIT"
] | null | null | null |
lang/py/cookbook/v2/source/cb2_1_0_exm_12.py
|
ch1huizong/learning
|
632267634a9fd84a5f5116de09ff1e2681a6cc85
|
[
"MIT"
] | null | null | null |
for c in mystr:
| 8
| 15
| 0.6875
| 4
| 16
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 16
| 1
| 16
| 16
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6506127debc075f781155502c207c1560524645d
| 48
|
py
|
Python
|
designer/ops.py
|
joeedh/game.js
|
9271efd2cbbc52ff3ceca7745a0fda114ab613d6
|
[
"MIT"
] | null | null | null |
designer/ops.py
|
joeedh/game.js
|
9271efd2cbbc52ff3ceca7745a0fda114ab613d6
|
[
"MIT"
] | null | null | null |
designer/ops.py
|
joeedh/game.js
|
9271efd2cbbc52ff3ceca7745a0fda114ab613d6
|
[
"MIT"
] | null | null | null |
from . import utils
reg = utils.Registrar([
])
| 9.6
| 23
| 0.666667
| 6
| 48
| 5.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 48
| 4
| 24
| 12
| 0.820513
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6547509d541c618c1a9f333442e2d089307f2bf0
| 156
|
py
|
Python
|
arbitrage/public_markets/eth/huobiprousdt.py
|
aviatorBeijing/bitcoin-arbitrage
|
a82edf28383466a05b954e3983d204f2046e5c31
|
[
"MIT"
] | null | null | null |
arbitrage/public_markets/eth/huobiprousdt.py
|
aviatorBeijing/bitcoin-arbitrage
|
a82edf28383466a05b954e3983d204f2046e5c31
|
[
"MIT"
] | null | null | null |
arbitrage/public_markets/eth/huobiprousdt.py
|
aviatorBeijing/bitcoin-arbitrage
|
a82edf28383466a05b954e3983d204f2046e5c31
|
[
"MIT"
] | null | null | null |
from arbitrage.public_markets._huobipro import Huobipro
class HuobiproUSDT(Huobipro):
def __init__(self):
super().__init__("USD", "eth_usdt")
| 22.285714
| 55
| 0.730769
| 18
| 156
| 5.722222
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 156
| 6
| 56
| 26
| 0.780303
| 0
| 0
| 0
| 0
| 0
| 0.070513
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
e8f09278daf308e52eeb2006d4990ac6f03a59ea
| 39,355
|
py
|
Python
|
data/Garrison.py
|
mkumatag/openbmc-automation
|
4800237bcf6f516387b5510699396154b05a5b34
|
[
"Apache-2.0"
] | 7
|
2015-12-21T06:58:29.000Z
|
2016-08-09T09:21:01.000Z
|
data/Garrison.py
|
rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291
|
08540c0f083a25b5b4e7a4c839080fe54383038c
|
[
"Apache-2.0"
] | 55
|
2015-11-05T05:54:22.000Z
|
2016-06-15T10:04:01.000Z
|
data/Garrison.py
|
rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291
|
08540c0f083a25b5b4e7a4c839080fe54383038c
|
[
"Apache-2.0"
] | 16
|
2015-11-03T20:01:55.000Z
|
2020-11-12T16:26:46.000Z
|
#! /usr/bin/python
HOME_PATH = './'
CACHE_PATH = '/var/cache/obmc/'
FLASH_DOWNLOAD_PATH = "/tmp"
GPIO_BASE = 320
SYSTEM_NAME = "Garrison"
## System states
## state can change to next state in 2 ways:
## - a process emits a GotoSystemState signal with state name to goto
## - objects specified in EXIT_STATE_DEPEND have started
SYSTEM_STATES = [
'BASE_APPS',
'BMC_STARTING',
'BMC_READY',
'HOST_POWERING_ON',
'HOST_POWERED_ON',
'HOST_BOOTING',
'HOST_BOOTED',
'HOST_POWERED_OFF',
]
EXIT_STATE_DEPEND = {
'BASE_APPS' : {
'/org/openbmc/sensors': 0,
},
'BMC_STARTING' : {
'/org/openbmc/control/chassis0': 0,
'/org/openbmc/control/power0' : 0,
'/org/openbmc/control/host0' : 0,
'/org/openbmc/control/flash/bios' : 0,
},
}
## method will be called when state is entered
ENTER_STATE_CALLBACK = {
'HOST_POWERED_ON' : {
'boot' : {
'bus_name' : 'org.openbmc.control.Host',
'obj_name' : '/org/openbmc/control/host0',
'interface_name' : 'org.openbmc.control.Host',
},
},
'HOST_POWERED_OFF' : {
'setOff' : {
'bus_name' : 'org.openbmc.control.led',
'obj_name' : '/org/openbmc/control/led/identify',
'interface_name' : 'org.openbmc.Led',
}
},
'BMC_READY' : {
'setOn' : {
'bus_name' : 'org.openbmc.control.led',
'obj_name' : '/org/openbmc/control/led/beep',
'interface_name' : 'org.openbmc.Led',
},
'init' : {
'bus_name' : 'org.openbmc.control.Flash',
'obj_name' : '/org/openbmc/control/flash/bios',
'interface_name' : 'org.openbmc.Flash',
}
}
}
APPS = {
'startup_hacks' : {
'system_state' : 'BASE_APPS',
'start_process' : True,
'monitor_process' : False,
'process_name' : 'startup_hacks.sh',
},
'inventory' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'inventory_items.py',
'args' : [ SYSTEM_NAME ]
},
'hwmon' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'hwmon.py',
'args' : [ SYSTEM_NAME ]
},
'sensor_manager' : {
'system_state' : 'BASE_APPS',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'sensor_manager2.py',
'args' : [ SYSTEM_NAME ]
},
'host_watchdog' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'host_watchdog.exe',
},
'power_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'power_control.exe',
'args' : [ '3000', '10' ]
},
'power_button' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'button_power.exe',
},
'reset_button' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'button_reset.exe',
},
'led_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'led_controller.exe',
},
'flash_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'flash_bios.exe',
},
'bmc_flash_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'bmc_update.py',
},
'download_manager' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'download_manager.py',
'args' : [ SYSTEM_NAME ]
},
'host_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'control_host.exe',
},
'chassis_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'chassis_control.py',
},
'restore' : {
'system_state' : 'BMC_READY',
'start_process' : True,
'monitor_process' : False,
'process_name' : 'discover_system_state.py',
},
'bmc_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
'monitor_process' : True,
'process_name' : 'control_bmc.exe',
},
}
CACHED_INTERFACES = {
"org.openbmc.InventoryItem" : True,
"org.openbmc.control.Chassis" : True,
}
INVENTORY_ROOT = '/org/openbmc/inventory'
FRU_INSTANCES = {
'<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
'<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
'<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
'<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
'<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
'<inventory_root>/system/systemevent' : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/apss' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
'<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
'<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
'<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
'<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
'<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
'<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
'<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
'<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
'<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
'<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
}
ID_LOOKUP = {
'FRU' : {
0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
0x03 : '<inventory_root>/system/chassis/motherboard',
0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
},
'FRU_STR' : {
'PRODUCT_0' : '<inventory_root>/system/bios',
'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
'BOARD_2' : '<inventory_root>/system/chassis/motherboard/cpu1',
'CHASSIS_3' : '<inventory_root>/system/chassis/motherboard',
'BOARD_3' : '<inventory_root>/system/misc',
'BOARD_4' : '<inventory_root>/system/chassis/motherboard/membuf0',
'BOARD_5' : '<inventory_root>/system/chassis/motherboard/membuf1',
'BOARD_6' : '<inventory_root>/system/chassis/motherboard/membuf2',
'BOARD_7' : '<inventory_root>/system/chassis/motherboard/membuf3',
'BOARD_8' : '<inventory_root>/system/chassis/motherboard/membuf4',
'BOARD_9' : '<inventory_root>/system/chassis/motherboard/membuf5',
'BOARD_10' : '<inventory_root>/system/chassis/motherboard/membuf6',
'BOARD_11' : '<inventory_root>/system/chassis/motherboard/membuf7',
'PRODUCT_12' : '<inventory_root>/system/chassis/motherboard/dimm0',
'PRODUCT_13' : '<inventory_root>/system/chassis/motherboard/dimm1',
'PRODUCT_14' : '<inventory_root>/system/chassis/motherboard/dimm2',
'PRODUCT_15' : '<inventory_root>/system/chassis/motherboard/dimm3',
'PRODUCT_16' : '<inventory_root>/system/chassis/motherboard/dimm4',
'PRODUCT_17' : '<inventory_root>/system/chassis/motherboard/dimm5',
'PRODUCT_18' : '<inventory_root>/system/chassis/motherboard/dimm6',
'PRODUCT_19' : '<inventory_root>/system/chassis/motherboard/dimm7',
'PRODUCT_20' : '<inventory_root>/system/chassis/motherboard/dimm8',
'PRODUCT_21' : '<inventory_root>/system/chassis/motherboard/dimm9',
'PRODUCT_22' : '<inventory_root>/system/chassis/motherboard/dimm10',
'PRODUCT_23' : '<inventory_root>/system/chassis/motherboard/dimm11',
'PRODUCT_24' : '<inventory_root>/system/chassis/motherboard/dimm12',
'PRODUCT_25' : '<inventory_root>/system/chassis/motherboard/dimm13',
'PRODUCT_26' : '<inventory_root>/system/chassis/motherboard/dimm14',
'PRODUCT_27' : '<inventory_root>/system/chassis/motherboard/dimm15',
'PRODUCT_28' : '<inventory_root>/system/chassis/motherboard/dimm16',
'PRODUCT_29' : '<inventory_root>/system/chassis/motherboard/dimm17',
'PRODUCT_30' : '<inventory_root>/system/chassis/motherboard/dimm18',
'PRODUCT_31' : '<inventory_root>/system/chassis/motherboard/dimm19',
'PRODUCT_32' : '<inventory_root>/system/chassis/motherboard/dimm20',
'PRODUCT_33' : '<inventory_root>/system/chassis/motherboard/dimm21',
'PRODUCT_34' : '<inventory_root>/system/chassis/motherboard/dimm22',
'PRODUCT_35' : '<inventory_root>/system/chassis/motherboard/dimm23',
'PRODUCT_36' : '<inventory_root>/system/chassis/motherboard/dimm24',
'PRODUCT_37' : '<inventory_root>/system/chassis/motherboard/dimm25',
'PRODUCT_38' : '<inventory_root>/system/chassis/motherboard/dimm26',
'PRODUCT_39' : '<inventory_root>/system/chassis/motherboard/dimm27',
'PRODUCT_40' : '<inventory_root>/system/chassis/motherboard/dimm28',
'PRODUCT_41' : '<inventory_root>/system/chassis/motherboard/dimm29',
'PRODUCT_42' : '<inventory_root>/system/chassis/motherboard/dimm30',
'PRODUCT_43' : '<inventory_root>/system/chassis/motherboard/dimm31',
'PRODUCT_47' : '<inventory_root>/system/misc',
},
'SENSOR' : {
0x04 : '/org/openbmc/sensors/host/HostStatus',
0x05 : '/org/openbmc/sensors/host/BootProgress',
0x08 : '/org/openbmc/sensors/host/cpu0/OccStatus',
0x09 : '/org/openbmc/sensors/host/cpu1/OccStatus',
0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
0x2e : '<inventory_root>/system/chassis/motherboard/dimm19',
0x2f : '<inventory_root>/system/chassis/motherboard/dimm18',
0x30 : '<inventory_root>/system/chassis/motherboard/dimm17',
0x31 : '<inventory_root>/system/chassis/motherboard/dimm16',
0x32 : '<inventory_root>/system/chassis/motherboard/dimm23',
0x33 : '<inventory_root>/system/chassis/motherboard/dimm22',
0x34 : '<inventory_root>/system/chassis/motherboard/dimm21',
0x35 : '<inventory_root>/system/chassis/motherboard/dimm20',
0x36 : '<inventory_root>/system/chassis/motherboard/dimm27',
0x37 : '<inventory_root>/system/chassis/motherboard/dimm26',
0x38 : '<inventory_root>/system/chassis/motherboard/dimm25',
0x39 : '<inventory_root>/system/chassis/motherboard/dimm24',
0x3a : '<inventory_root>/system/chassis/motherboard/dimm31',
0x3b : '<inventory_root>/system/chassis/motherboard/dimm30',
0x3c : '<inventory_root>/system/chassis/motherboard/dimm29',
0x3d : '<inventory_root>/system/chassis/motherboard/dimm28',
0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
0x56 : '<inventory_root>/system/chassis/motherboard/membuf0',
0x57 : '<inventory_root>/system/chassis/motherboard/membuf1',
0x58 : '<inventory_root>/system/chassis/motherboard/membuf2',
0x59 : '<inventory_root>/system/chassis/motherboard/membuf3',
0x5a : '<inventory_root>/system/chassis/motherboard/membuf4',
0x5b : '<inventory_root>/system/chassis/motherboard/membuf5',
0x5c : '<inventory_root>/system/chassis/motherboard/membuf6',
0x5d : '<inventory_root>/system/chassis/motherboard/membuf7',
0x5f : '/org/openbmc/sensors/host/BootCount',
0x60 : '<inventory_root>/system/chassis/motherboard',
0x61 : '<inventory_root>/system/systemevent',
0x62 : '<inventory_root>/system/powerlimit',
0x63 : '<inventory_root>/system/chassis/motherboard/refclock',
0x64 : '<inventory_root>/system/chassis/motherboard/pcieclock',
0xb1 : '<inventory_root>/system/chassis/motherboard/todclock',
0xb2 : '<inventory_root>/system/chassis/motherboard/apss',
0xb3 : '/org/openbmc/sensors/host/powercap',
0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus',
0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
},
'GPIO_PRESENT' : {}
}
GPIO_CONFIG = {}
GPIO_CONFIG['BMC_POWER_UP'] = \
{'gpio_pin': 'D1', 'direction': 'out'}
GPIO_CONFIG['SYS_PWROK_BUFF'] = \
{'gpio_pin': 'D2', 'direction': 'in'}
GPIO_CONFIG['BMC_WD_CLEAR_PULSE_N'] = \
{'gpio_pin': 'N4', 'direction': 'out'}
GPIO_CONFIG['CM1_OE_R_N'] = \
{'gpio_pin': 'Q6', 'direction': 'out'}
GPIO_CONFIG['BMC_CP0_RESET_N'] = \
{'gpio_pin': 'O2', 'direction': 'out'}
GPIO_CONFIG['BMC_CFAM_RESET_N_R'] = \
{'gpio_pin': 'J2', 'direction': 'out'}
GPIO_CONFIG['PEX8718_DEVICES_RESET_N'] = \
{'gpio_pin': 'B6', 'direction': 'out'}
GPIO_CONFIG['CP0_DEVICES_RESET_N'] = \
{'gpio_pin': 'N3', 'direction': 'out'}
GPIO_CONFIG['CP1_DEVICES_RESET_N'] = \
{'gpio_pin': 'N5', 'direction': 'out'}
GPIO_CONFIG['FSI_DATA'] = \
{'gpio_pin': 'A5', 'direction': 'out'}
GPIO_CONFIG['FSI_CLK'] = \
{'gpio_pin': 'A4', 'direction': 'out'}
GPIO_CONFIG['FSI_ENABLE'] = \
{'gpio_pin': 'D0', 'direction': 'out'}
GPIO_CONFIG['CRONUS_SEL'] = \
{'gpio_pin': 'A6', 'direction': 'out'}
GPIO_CONFIG['BMC_THROTTLE'] = \
{'gpio_pin': 'J3', 'direction': 'out'}
GPIO_CONFIG['IDBTN'] = \
{ 'gpio_pin': 'Q7', 'direction': 'out' }
GPIO_CONFIG['POWER_BUTTON'] = \
{'gpio_pin': 'E0', 'direction': 'both'}
GPIO_CONFIG['RESET_BUTTON'] = \
{'gpio_pin': 'E4', 'direction': 'both'}
GPIO_CONFIG['PS0_PRES_N'] = \
{'gpio_pin': 'P7', 'direction': 'in'}
GPIO_CONFIG['PS1_PRES_N'] = \
{'gpio_pin': 'N0', 'direction': 'in'}
GPIO_CONFIG['CARD_PRES_N'] = \
{'gpio_pin': 'J0', 'direction': 'in'}
def convertGpio(name):
name = name.upper()
c = name[0:1]
offset = int(name[1:])
a = ord(c)-65
base = a*8+GPIO_BASE
return base+offset
HWMON_CONFIG = {
'4-0050' : {
'names' : {
'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
},
'labels' : {
'176' : { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'177' : { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'178' : { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'179' : { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'180' : { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'181' : { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'182' : { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'183' : { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'184' : { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'185' : { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'186' : { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'187' : { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'102' : { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'103' : { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'104' : { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'105' : { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'106' : { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'107' : { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'108' : { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'109' : { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'110' : { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'111' : { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'112' : { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'113' : { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'114' : { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'115' : { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'116' : { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'117' : { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'94' : { 'object_path' : 'temperature/membuf0','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'95' : { 'object_path' : 'temperature/membuf1','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'96' : { 'object_path' : 'temperature/membuf2','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'97' : { 'object_path' : 'temperature/membuf3','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
}
},
'5-0050' : {
'labels' : {
'188' : { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'189' : { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'190' : { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'191' : { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'192' : { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'193' : { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'194' : { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'195' : { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'196' : { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'197' : { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'198' : { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'199' : { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : 1000,'units' : 'C',
'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
'118' : { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'119' : { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'120' : { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'121' : { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'122' : { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'123' : { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'124' : { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'125' : { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'126' : { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'127' : { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'128' : { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'129' : { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'130' : { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'131' : { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'132' : { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'133' : { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'98' : { 'object_path' : 'temperature/membuf4','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'99' : { 'object_path' : 'temperature/membuf5','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'100' : { 'object_path' : 'temperature/membuf6','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
'101' : { 'object_path' : 'temperature/membuf7','poll_interval' : 5000,'scale' : 1000,'units' : 'C' },
}
},
}
# Miscellaneous non-poll sensor with system specific properties.
# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
MISC_SENSORS = {
0x5f : { 'class' : 'BootCountSensor' },
0x05 : { 'class' : 'BootProgressSensor' },
0x08 : { 'class' : 'OccStatusSensor',
'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
0x09 : { 'class' : 'OccStatusSensor',
'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
0xb3 : { 'class' : 'PowerCap',
'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
}
| 62.767145
| 135
| 0.622564
| 4,290
| 39,355
| 5.479487
| 0.120979
| 0.134386
| 0.195601
| 0.25771
| 0.767048
| 0.740333
| 0.486791
| 0.382865
| 0.374357
| 0.364062
| 0
| 0.061417
| 0.191996
| 39,355
| 626
| 136
| 62.867412
| 0.67782
| 0.009503
| 0
| 0.13799
| 0
| 0
| 0.602109
| 0.345463
| 0
| 0
| 0.013139
| 0
| 0
| 1
| 0.001704
| false
| 0
| 0
| 0
| 0.003407
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e8fcd78db60d1dde3190c88be2f829218b6fa773
| 147
|
py
|
Python
|
scripts/translate-test.py
|
MasatoKubotera/translate
|
c8420e7f7336ad69e35180dea539c816aa3db33a
|
[
"BSD-3-Clause"
] | null | null | null |
scripts/translate-test.py
|
MasatoKubotera/translate
|
c8420e7f7336ad69e35180dea539c816aa3db33a
|
[
"BSD-3-Clause"
] | null | null | null |
scripts/translate-test.py
|
MasatoKubotera/translate
|
c8420e7f7336ad69e35180dea539c816aa3db33a
|
[
"BSD-3-Clause"
] | 2
|
2021-01-09T13:49:26.000Z
|
2022-01-08T16:43:14.000Z
|
#!/usr/bin/env python3
from googletrans import Translator
translator = Translator()
print(translator.translate('Hello', src='en', dest='ja').text)
| 29.4
| 62
| 0.755102
| 19
| 147
| 5.842105
| 0.842105
| 0.36036
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007407
| 0.081633
| 147
| 5
| 62
| 29.4
| 0.814815
| 0.142857
| 0
| 0
| 0
| 0
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
3301ff114a710e98f01ab21239c1a7abaa20818f
| 158
|
py
|
Python
|
ex111/utilidadesCeV/dado.py
|
felipesch92/PythonExercicios
|
73edcbde6beaabcfc86af3dd6e58473f1eecabd3
|
[
"MIT"
] | null | null | null |
ex111/utilidadesCeV/dado.py
|
felipesch92/PythonExercicios
|
73edcbde6beaabcfc86af3dd6e58473f1eecabd3
|
[
"MIT"
] | null | null | null |
ex111/utilidadesCeV/dado.py
|
felipesch92/PythonExercicios
|
73edcbde6beaabcfc86af3dd6e58473f1eecabd3
|
[
"MIT"
] | null | null | null |
def moeda(v):
"""
-> Função para formatar o valor
:param v: Valor
:return: Valor formatado
"""
return f'R$ {v:.2f}'.replace('.', ',')
| 19.75
| 42
| 0.518987
| 20
| 158
| 4.1
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008772
| 0.278481
| 158
| 7
| 43
| 22.571429
| 0.710526
| 0.455696
| 0
| 0
| 0
| 0
| 0.193548
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
33125e5f0937898fc4c7b0ccf96845318f8b3ed7
| 122
|
py
|
Python
|
src/ahbicht/__init__.py
|
Hochfrequenz/ahbicht
|
90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11
|
[
"MIT"
] | null | null | null |
src/ahbicht/__init__.py
|
Hochfrequenz/ahbicht
|
90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11
|
[
"MIT"
] | 48
|
2021-08-31T15:00:47.000Z
|
2022-03-25T18:32:51.000Z
|
src/ahbicht/__init__.py
|
Hochfrequenz/ahbicht
|
90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11
|
[
"MIT"
] | null | null | null |
"""
AHBicht is a lark based parser and evaluation framework for conditions that occur in Anwendungshandbüchern (AHB).
"""
| 30.5
| 113
| 0.778689
| 16
| 122
| 5.9375
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147541
| 122
| 3
| 114
| 40.666667
| 0.913462
| 0.92623
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
332b2b35620e893a0cd210d2f57ec2cdabf544f0
| 180
|
py
|
Python
|
articles/forms.py
|
urosjevremovic/News-app
|
8fbeee3f8a7c0ca0fd1b29a2219dcbb3dff62a05
|
[
"MIT"
] | null | null | null |
articles/forms.py
|
urosjevremovic/News-app
|
8fbeee3f8a7c0ca0fd1b29a2219dcbb3dff62a05
|
[
"MIT"
] | null | null | null |
articles/forms.py
|
urosjevremovic/News-app
|
8fbeee3f8a7c0ca0fd1b29a2219dcbb3dff62a05
|
[
"MIT"
] | null | null | null |
from django.forms import ModelForm
from articles.models import Comment
class CommentCreateForm(ModelForm):
class Meta:
model = Comment
fields = ['comment', ]
| 20
| 35
| 0.7
| 19
| 180
| 6.631579
| 0.684211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.227778
| 180
| 9
| 36
| 20
| 0.906475
| 0
| 0
| 0
| 0
| 0
| 0.038674
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
33332274ede5551c6fe6542468618c62c627f919
| 96
|
py
|
Python
|
workshop/minion/app/__init__.py
|
joaofilis/workshop_gru
|
66bad189a36a1ac3d3e8a23f5bf26df23487afac
|
[
"Apache-2.0"
] | null | null | null |
workshop/minion/app/__init__.py
|
joaofilis/workshop_gru
|
66bad189a36a1ac3d3e8a23f5bf26df23487afac
|
[
"Apache-2.0"
] | null | null | null |
workshop/minion/app/__init__.py
|
joaofilis/workshop_gru
|
66bad189a36a1ac3d3e8a23f5bf26df23487afac
|
[
"Apache-2.0"
] | null | null | null |
from app.config import Config
import os, logging
global config
global misc
config = Config()
| 10.666667
| 29
| 0.770833
| 14
| 96
| 5.285714
| 0.571429
| 0.324324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177083
| 96
| 8
| 30
| 12
| 0.936709
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
333764fc9351d51ca183393143d47cd9a6d617ff
| 622
|
py
|
Python
|
litebot/core/minecraft/protocol/__init__.py
|
rybot666/LiteBot
|
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
|
[
"MIT"
] | 22
|
2020-10-18T22:36:51.000Z
|
2022-03-27T07:49:25.000Z
|
litebot/core/minecraft/protocol/__init__.py
|
rybot666/LiteBot
|
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
|
[
"MIT"
] | 8
|
2021-07-14T06:46:47.000Z
|
2021-08-17T06:09:52.000Z
|
litebot/core/minecraft/protocol/__init__.py
|
rybot666/LiteBot
|
9598c021a59ee7983a1515c54a6cbc43bfcb5eb9
|
[
"MIT"
] | 7
|
2021-05-04T16:56:19.000Z
|
2021-10-12T05:44:31.000Z
|
"""
A good amount of this code is sourced from mcstatus by dinnerbone.
I decided to use his code as it basically handles socket connections,
and simple usage of minecraft's query protocol and his code implements
it quite well. Some bits of it have of course been modified in order
to better suit my needs. I did not simply install and use his library
as I only required a small portion of its features. I also did modify
parts of it, which I wouldn't have been able to do otheriwse.
His code can be found here: https://github.com/Dinnerbone/mcstatus
"""
from .connection import *
from .rcon import *
from .query import *
| 41.466667
| 70
| 0.776527
| 111
| 622
| 4.351351
| 0.675676
| 0.043478
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178457
| 622
| 15
| 71
| 41.466667
| 0.945205
| 0.877814
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
333e17ad345f61965456174585cb5df0afccc134
| 26
|
py
|
Python
|
proglove_streams/models/__init__.py
|
workaroundgmbh/proglove_streams_api_reference
|
9da71c01d1717085cd2e7a1865f6183723aa73a3
|
[
"Fair",
"Unlicense"
] | null | null | null |
proglove_streams/models/__init__.py
|
workaroundgmbh/proglove_streams_api_reference
|
9da71c01d1717085cd2e7a1865f6183723aa73a3
|
[
"Fair",
"Unlicense"
] | null | null | null |
proglove_streams/models/__init__.py
|
workaroundgmbh/proglove_streams_api_reference
|
9da71c01d1717085cd2e7a1865f6183723aa73a3
|
[
"Fair",
"Unlicense"
] | 3
|
2021-06-28T08:19:53.000Z
|
2022-01-31T15:34:56.000Z
|
"""Streams API models."""
| 13
| 25
| 0.615385
| 3
| 26
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 26
| 1
| 26
| 26
| 0.695652
| 0.730769
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
68218c08d240422ae4871c3383d2f1bb0996f1d5
| 23
|
py
|
Python
|
tests/test_underdevelopment.py
|
jazellesclutter/aiohttp-jwtplus
|
bf6e9d5fba4fd6b48ec256ffe6b3641f85e580cd
|
[
"MIT"
] | 5
|
2020-03-10T17:30:57.000Z
|
2021-05-05T22:59:37.000Z
|
tests/test_underdevelopment.py
|
jazellesclutter/aiohttp-jwtplus
|
bf6e9d5fba4fd6b48ec256ffe6b3641f85e580cd
|
[
"MIT"
] | null | null | null |
tests/test_underdevelopment.py
|
jazellesclutter/aiohttp-jwtplus
|
bf6e9d5fba4fd6b48ec256ffe6b3641f85e580cd
|
[
"MIT"
] | 3
|
2020-03-10T17:32:06.000Z
|
2021-05-05T22:59:47.000Z
|
'''
test commit
'''
| 5.75
| 12
| 0.434783
| 2
| 23
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.304348
| 23
| 3
| 13
| 7.666667
| 0.625
| 0.478261
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
68282a27e2d492b62ab1b9038a04a5ca81d6448f
| 466
|
py
|
Python
|
measure/views.py
|
alekslt/powerusageanalysis
|
a0eaab9c5a895eb9fc4693dab892476f97435fd7
|
[
"MIT"
] | 1
|
2017-06-06T16:53:00.000Z
|
2017-06-06T16:53:00.000Z
|
measure/views.py
|
alekslt/powerusageanalysis
|
a0eaab9c5a895eb9fc4693dab892476f97435fd7
|
[
"MIT"
] | null | null | null |
measure/views.py
|
alekslt/powerusageanalysis
|
a0eaab9c5a895eb9fc4693dab892476f97435fd7
|
[
"MIT"
] | null | null | null |
from pyramid.view import view_config
from .models import (
Measurements,
)
mes = Measurements(0)
@view_config(route_name='measuredata', renderer='json')
def measuredata(request):
return Measurements(0)
@view_config(route_name='measure', renderer='templates/measure.pt')
def measure(request):
return mes.__json__(request)
@view_config(route_name='home', renderer='templates/mytemplate.pt')
def my_view(request):
return {'project': 'measure'}
| 23.3
| 67
| 0.742489
| 58
| 466
| 5.758621
| 0.413793
| 0.11976
| 0.134731
| 0.170659
| 0.191617
| 0.191617
| 0
| 0
| 0
| 0
| 0
| 0.00489
| 0.122318
| 466
| 19
| 68
| 24.526316
| 0.811736
| 0
| 0
| 0
| 0
| 0
| 0.178112
| 0.049356
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0
| 0.142857
| 0.214286
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
6841668cf05ea97af114b2d3523c2ef3ec70220a
| 88
|
py
|
Python
|
python/run_add_callbacks.py
|
ljn917/celery_worker_cpp
|
f756ae10448c6fd0e6d721763d60601db721e811
|
[
"MIT"
] | null | null | null |
python/run_add_callbacks.py
|
ljn917/celery_worker_cpp
|
f756ae10448c6fd0e6d721763d60601db721e811
|
[
"MIT"
] | null | null | null |
python/run_add_callbacks.py
|
ljn917/celery_worker_cpp
|
f756ae10448c6fd0e6d721763d60601db721e811
|
[
"MIT"
] | null | null | null |
import tasks
res = tasks.add.apply_async((4, 4), link=tasks.add.s(10))
print(res.get())
| 22
| 57
| 0.693182
| 17
| 88
| 3.529412
| 0.705882
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.090909
| 88
| 3
| 58
| 29.333333
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6846b85c9c745be5e4f886e5d2623bc9e134445e
| 107
|
py
|
Python
|
sktime/contrib/vector_classifiers/__init__.py
|
marcio55afr/sktime
|
25ba2f470f037366ca6b0e529137d3d0a6191e2e
|
[
"BSD-3-Clause"
] | 5,349
|
2019-03-21T14:56:50.000Z
|
2022-03-31T11:25:30.000Z
|
sktime/contrib/vector_classifiers/__init__.py
|
marcio55afr/sktime
|
25ba2f470f037366ca6b0e529137d3d0a6191e2e
|
[
"BSD-3-Clause"
] | 1,803
|
2019-03-26T13:33:53.000Z
|
2022-03-31T23:58:10.000Z
|
sktime/contrib/vector_classifiers/__init__.py
|
marcio55afr/sktime
|
25ba2f470f037366ca6b0e529137d3d0a6191e2e
|
[
"BSD-3-Clause"
] | 911
|
2019-03-25T01:21:30.000Z
|
2022-03-31T04:45:51.000Z
|
# -*- coding: utf-8 -*-
"""Vector classification algorithms, not designed specifically for time series."""
| 35.666667
| 82
| 0.71028
| 12
| 107
| 6.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010753
| 0.130841
| 107
| 2
| 83
| 53.5
| 0.806452
| 0.925234
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
684780a28c8474730cce73c381ef7c308bc40794
| 355
|
py
|
Python
|
apps/accounts/serializers.py
|
seanlefevre/openduty
|
34ab21117f114ccc808d8b0aa2cb801c819bdb86
|
[
"MIT"
] | 145
|
2016-04-11T06:53:13.000Z
|
2022-03-22T05:15:49.000Z
|
apps/accounts/serializers.py
|
seanlefevre/openduty
|
34ab21117f114ccc808d8b0aa2cb801c819bdb86
|
[
"MIT"
] | 78
|
2017-09-24T10:59:49.000Z
|
2022-02-12T07:36:27.000Z
|
apps/accounts/serializers.py
|
seanlefevre/openduty
|
34ab21117f114ccc808d8b0aa2cb801c819bdb86
|
[
"MIT"
] | 30
|
2016-04-11T06:53:16.000Z
|
2021-12-29T11:39:26.000Z
|
from rest_framework import serializers
from django.contrib.auth.models import User, Group
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email', 'groups')
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Group
fields = ('name',)
| 22.1875
| 54
| 0.68169
| 36
| 355
| 6.694444
| 0.638889
| 0.215768
| 0.257261
| 0.290456
| 0.33195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.216901
| 355
| 15
| 55
| 23.666667
| 0.866906
| 0
| 0
| 0.2
| 0
| 0
| 0.070423
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.6
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
685fb165658e2a5aea4c6b5cce74ec76869a7946
| 91
|
py
|
Python
|
backend/paranoia/apps.py
|
SpacePrius/ParanoiaBot
|
a0260a2e4a0d3d32e6dfe654bc6b6f6841a13aa4
|
[
"MIT"
] | 1
|
2021-12-20T00:02:42.000Z
|
2021-12-20T00:02:42.000Z
|
backend/paranoia/apps.py
|
SpacePrius/ParanoiaBot
|
a0260a2e4a0d3d32e6dfe654bc6b6f6841a13aa4
|
[
"MIT"
] | null | null | null |
backend/paranoia/apps.py
|
SpacePrius/ParanoiaBot
|
a0260a2e4a0d3d32e6dfe654bc6b6f6841a13aa4
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ParanoiaConfig(AppConfig):
name = 'paranoia'
| 15.166667
| 33
| 0.758242
| 10
| 91
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 91
| 5
| 34
| 18.2
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
687e78c39954a734100caf5f670a7a429a45ab41
| 206
|
py
|
Python
|
api/google_search_console/errors.py
|
jmelm93/MLTS
|
5004995c6355ba066abaeb3fc45cf48474a8463c
|
[
"Apache-2.0"
] | 117
|
2018-11-25T02:30:31.000Z
|
2022-03-24T08:05:21.000Z
|
api/google_search_console/errors.py
|
jmelm93/MLTS
|
5004995c6355ba066abaeb3fc45cf48474a8463c
|
[
"Apache-2.0"
] | 4
|
2019-03-01T04:12:54.000Z
|
2019-12-10T21:09:30.000Z
|
api/google_search_console/errors.py
|
jmelm93/MLTS
|
5004995c6355ba066abaeb3fc45cf48474a8463c
|
[
"Apache-2.0"
] | 43
|
2019-01-28T22:07:55.000Z
|
2022-03-18T21:48:00.000Z
|
from __future__ import absolute_import, print_function, unicode_literals
class BaseGscError(Exception):
pass
class GscConfigError(BaseGscError):
pass
class GscApiError(BaseGscError):
pass
| 14.714286
| 72
| 0.786408
| 21
| 206
| 7.380952
| 0.666667
| 0.116129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160194
| 206
| 13
| 73
| 15.846154
| 0.895954
| 0
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.428571
| 0.142857
| 0
| 0.571429
| 0.142857
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
688b2abb34d98d372483698acbf4879093d7bbc4
| 151
|
py
|
Python
|
scripts/run_tests.py
|
rooster1979/mlfin
|
cc7efe071713ae522fc21519dc344e39b718c6f6
|
[
"MIT"
] | 4
|
2020-03-07T09:49:06.000Z
|
2020-12-06T11:50:26.000Z
|
scripts/run_tests.py
|
anirbanghoshsbi/mlfinlab
|
3a6381d47fb50d86ce657f184490f012adf6fb37
|
[
"BSD-3-Clause"
] | null | null | null |
scripts/run_tests.py
|
anirbanghoshsbi/mlfinlab
|
3a6381d47fb50d86ce657f184490f012adf6fb37
|
[
"BSD-3-Clause"
] | 1
|
2020-09-10T17:56:25.000Z
|
2020-09-10T17:56:25.000Z
|
import unittest
import xmlrunner
if __name__ == '__main__':
unittest.main(testRunner=xmlrunner.XMLTestRunner(output='test_reports'), module=None)
| 25.166667
| 89
| 0.788079
| 17
| 151
| 6.470588
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.099338
| 151
| 5
| 90
| 30.2
| 0.808824
| 0
| 0
| 0
| 0
| 0
| 0.13245
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
689863e332eb8975cad946b68f50823a29e66695
| 110
|
py
|
Python
|
rapidapi/livescore/__init__.py
|
z33kz33k/gsheets-tennis
|
0cf661d0aa3e64fc3c802ba284895d92f2e40a28
|
[
"MIT"
] | 1
|
2022-01-14T09:07:13.000Z
|
2022-01-14T09:07:13.000Z
|
rapidapi/livescore/__init__.py
|
z33kz33k/gsheets-tennis
|
0cf661d0aa3e64fc3c802ba284895d92f2e40a28
|
[
"MIT"
] | null | null | null |
rapidapi/livescore/__init__.py
|
z33kz33k/gsheets-tennis
|
0cf661d0aa3e64fc3c802ba284895d92f2e40a28
|
[
"MIT"
] | null | null | null |
"""
rapidapi.livescore
~~~~~~~~~~~~~~~~~~
RapidAPI LiveScore API modules.
@author: z33k
"""
| 12.222222
| 35
| 0.490909
| 8
| 110
| 6.75
| 0.75
| 0.62963
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.254545
| 110
| 9
| 36
| 12.222222
| 0.634146
| 0.763636
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
68a7b9f5302040e4ee6e31b4f038b9b02cbf4cc4
| 94
|
py
|
Python
|
examples/src/main/scala/example/logging/aggregator/python/tmt_formatter.py
|
scala-steward/csw
|
e3f1970b1c374693be0c4bbec068183e3395010f
|
[
"Apache-2.0"
] | 28
|
2016-02-03T17:00:26.000Z
|
2022-03-28T10:40:39.000Z
|
examples/src/main/scala/example/logging/aggregator/python/tmt_formatter.py
|
scala-steward/csw
|
e3f1970b1c374693be0c4bbec068183e3395010f
|
[
"Apache-2.0"
] | 21
|
2016-01-06T20:44:49.000Z
|
2022-02-21T09:25:35.000Z
|
examples/src/main/scala/example/logging/aggregator/python/tmt_formatter.py
|
scala-steward/csw
|
e3f1970b1c374693be0c4bbec068183e3395010f
|
[
"Apache-2.0"
] | 20
|
2015-09-30T18:43:03.000Z
|
2022-03-14T07:10:53.000Z
|
import logging
import time
class UTCFormatter(logging.Formatter):
converter = time.gmtime
| 18.8
| 38
| 0.797872
| 11
| 94
| 6.818182
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138298
| 94
| 5
| 39
| 18.8
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d7ac2a6d7a044b4c8617948a5da5cecaefdaf399
| 22
|
py
|
Python
|
generator/v3io_generator/__init__.py
|
v3io/data-science
|
a878d2e0cc20ecc536ce825de380728cf2e107ca
|
[
"Apache-2.0"
] | null | null | null |
generator/v3io_generator/__init__.py
|
v3io/data-science
|
a878d2e0cc20ecc536ce825de380728cf2e107ca
|
[
"Apache-2.0"
] | null | null | null |
generator/v3io_generator/__init__.py
|
v3io/data-science
|
a878d2e0cc20ecc536ce825de380728cf2e107ca
|
[
"Apache-2.0"
] | null | null | null |
name="v3io_generator"
| 11
| 21
| 0.818182
| 3
| 22
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.045455
| 22
| 1
| 22
| 22
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d7c5924357aef40802dbf91d82c011e05b1233e5
| 202
|
py
|
Python
|
Experiments/Nate/DjangoRewrite/DjangoRewrite/selectunesauth/forms.py
|
ntuckertriplet/CS309
|
fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5
|
[
"Apache-2.0"
] | 2
|
2020-04-27T20:20:53.000Z
|
2020-04-27T22:18:53.000Z
|
Experiments/Nate/DjangoRewrite/DjangoRewrite/selectunesauth/forms.py
|
ntuckertriplet/CS309
|
fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5
|
[
"Apache-2.0"
] | 7
|
2021-03-19T02:32:03.000Z
|
2021-09-22T18:56:37.000Z
|
Experiments/Nate/DjangoRewrite/DjangoRewrite/selectunesauth/forms.py
|
ntuckertriplet/CS309
|
fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5
|
[
"Apache-2.0"
] | 1
|
2020-04-27T20:21:59.000Z
|
2020-04-27T20:21:59.000Z
|
from django import forms
from djangorewrite.party.models import RewriteUser
class AddRewriteUser(forms.ModelForm):
class Meta:
model = RewriteUser
fields = ['email', 'password']
| 18.363636
| 50
| 0.707921
| 21
| 202
| 6.809524
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212871
| 202
| 10
| 51
| 20.2
| 0.899371
| 0
| 0
| 0
| 0
| 0
| 0.064356
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
d7d88f7056c080f12036fae5ffa7bbec29185e6f
| 799
|
py
|
Python
|
tests/test_snarf.py
|
kazmierczakk90/onlysnarf
|
b6cf3158aabf9b3bef3e2749a065ac1c65590788
|
[
"MIT"
] | 41
|
2019-06-08T05:50:48.000Z
|
2022-03-03T11:50:04.000Z
|
tests/test_snarf.py
|
kazmierczakk90/onlysnarf
|
b6cf3158aabf9b3bef3e2749a065ac1c65590788
|
[
"MIT"
] | 5
|
2020-06-28T10:57:04.000Z
|
2021-05-25T23:24:50.000Z
|
tests/test_snarf.py
|
kazmierczakk90/onlysnarf
|
b6cf3158aabf9b3bef3e2749a065ac1c65590788
|
[
"MIT"
] | 9
|
2019-10-28T15:57:43.000Z
|
2022-03-21T22:06:57.000Z
|
import unittest
import os
from decimal import Decimal
os.environ['ENV'] = "test"
# from lib.config import config
from lib.snarf import Snarf
# import warnings
class TestSnarf(unittest.TestCase):
def setUp(self):
self.test_snarf = Snarf()
# @classmethod
# def setUpClass(cls):
# ...
# @classmethod
# def tearDownClass(cls):
# ...
def tearDown(self):
pass
def test_discount(self):
pass
def test_message(self):
pass
def test_post(self):
pass
def test_profile(self):
pass
def test_promotion(self):
pass
############################################################################################
if __name__ == '__main__':
unittest.main()
| 16.645833
| 92
| 0.508135
| 77
| 799
| 5.090909
| 0.415584
| 0.122449
| 0.140306
| 0.191327
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.290363
| 799
| 48
| 93
| 16.645833
| 0.691358
| 0.165207
| 0
| 0.272727
| 0
| 0
| 0.026455
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.318182
| false
| 0.272727
| 0.181818
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
d7f484993d24ece22cd542bbe38096b8359e1fe6
| 212
|
py
|
Python
|
mods/mcpython/Item/barrier.py
|
uuk0/mcpython-a-minecraft-clone-in-python
|
c16cd66f319efdeec4130e1a43f5a857caf1ea13
|
[
"MIT"
] | 2
|
2020-04-23T16:25:51.000Z
|
2020-08-27T17:56:16.000Z
|
mods/mcpython/Item/barrier.py
|
uuk0/mcpython-a-minecraft-clone-in-python
|
c16cd66f319efdeec4130e1a43f5a857caf1ea13
|
[
"MIT"
] | null | null | null |
mods/mcpython/Item/barrier.py
|
uuk0/mcpython-a-minecraft-clone-in-python
|
c16cd66f319efdeec4130e1a43f5a857caf1ea13
|
[
"MIT"
] | null | null | null |
from .Item import *
class Barrier(Item):
def getName(self):
return "minecraft:barrier"
def getTexturFile(self):
return "./assets/textures/items/barrier.png"
handler.register(Barrier)
| 16.307692
| 52
| 0.674528
| 24
| 212
| 5.958333
| 0.708333
| 0.13986
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.207547
| 212
| 12
| 53
| 17.666667
| 0.85119
| 0
| 0
| 0
| 0
| 0
| 0.245283
| 0.165094
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0.285714
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
cc133d4a876b9c2771110042dfe2f43661057658
| 56,034
|
py
|
Python
|
src/desktopvirtualization/azext_desktopvirtualization/vendored_sdks/desktopvirtualization/models/_models_py3.py
|
Mannan2812/azure-cli-extensions
|
e2b34efe23795f6db9c59100534a40f0813c3d95
|
[
"MIT"
] | 207
|
2017-11-29T06:59:41.000Z
|
2022-03-31T10:00:53.000Z
|
src/desktopvirtualization/azext_desktopvirtualization/vendored_sdks/desktopvirtualization/models/_models_py3.py
|
Mannan2812/azure-cli-extensions
|
e2b34efe23795f6db9c59100534a40f0813c3d95
|
[
"MIT"
] | 4,061
|
2017-10-27T23:19:56.000Z
|
2022-03-31T23:18:30.000Z
|
src/desktopvirtualization/azext_desktopvirtualization/vendored_sdks/desktopvirtualization/models/_models_py3.py
|
Mannan2812/azure-cli-extensions
|
e2b34efe23795f6db9c59100534a40f0813c3d95
|
[
"MIT"
] | 802
|
2017-10-11T17:36:26.000Z
|
2022-03-31T22:24:32.000Z
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import datetime
from typing import Dict, List, Optional, Union
import msrest.serialization
from ._desktop_virtualization_api_client_enums import *
class Resource(msrest.serialization.Model):
"""Resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}
def __init__(
self,
**kwargs
):
super(Resource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
class Application(Resource):
"""Schema for Application properties.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param description: Description of Application.
:type description: str
:param friendly_name: Friendly name of Application.
:type friendly_name: str
:param file_path: Specifies a path for the executable file for the application.
:type file_path: str
:param command_line_setting: Required. Specifies whether this published application can be
launched with command line arguments provided by the client, command line arguments specified
at publish time, or no command line arguments at all. Possible values include: "DoNotAllow",
"Allow", "Require".
:type command_line_setting: str or ~desktop_virtualization_api_client.models.CommandLineSetting
:param command_line_arguments: Command Line Arguments for Application.
:type command_line_arguments: str
:param show_in_portal: Specifies whether to show the RemoteApp program in the RD Web Access
server.
:type show_in_portal: bool
:param icon_path: Path to icon.
:type icon_path: str
:param icon_index: Index of the icon.
:type icon_index: int
:ivar icon_hash: Hash of the icon.
:vartype icon_hash: str
:ivar icon_content: the icon a 64 bit string as a byte array.
:vartype icon_content: bytearray
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'command_line_setting': {'required': True},
'icon_hash': {'readonly': True},
'icon_content': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'file_path': {'key': 'properties.filePath', 'type': 'str'},
'command_line_setting': {'key': 'properties.commandLineSetting', 'type': 'str'},
'command_line_arguments': {'key': 'properties.commandLineArguments', 'type': 'str'},
'show_in_portal': {'key': 'properties.showInPortal', 'type': 'bool'},
'icon_path': {'key': 'properties.iconPath', 'type': 'str'},
'icon_index': {'key': 'properties.iconIndex', 'type': 'int'},
'icon_hash': {'key': 'properties.iconHash', 'type': 'str'},
'icon_content': {'key': 'properties.iconContent', 'type': 'bytearray'},
}
def __init__(
self,
*,
command_line_setting: Union[str, "CommandLineSetting"],
description: Optional[str] = None,
friendly_name: Optional[str] = None,
file_path: Optional[str] = None,
command_line_arguments: Optional[str] = None,
show_in_portal: Optional[bool] = None,
icon_path: Optional[str] = None,
icon_index: Optional[int] = None,
**kwargs
):
super(Application, self).__init__(**kwargs)
self.description = description
self.friendly_name = friendly_name
self.file_path = file_path
self.command_line_setting = command_line_setting
self.command_line_arguments = command_line_arguments
self.show_in_portal = show_in_portal
self.icon_path = icon_path
self.icon_index = icon_index
self.icon_hash = None
self.icon_content = None
class TrackedResource(Resource):
"""The resource model definition for a ARM tracked top level resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives.
:type location: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
}
def __init__(
self,
*,
location: str,
tags: Optional[Dict[str, str]] = None,
**kwargs
):
super(TrackedResource, self).__init__(**kwargs)
self.tags = tags
self.location = location
class ApplicationGroup(TrackedResource):
"""Represents a ApplicationGroup definition.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives.
:type location: str
:param description: Description of ApplicationGroup.
:type description: str
:param friendly_name: Friendly name of ApplicationGroup.
:type friendly_name: str
:param host_pool_arm_path: Required. HostPool arm path of ApplicationGroup.
:type host_pool_arm_path: str
:ivar workspace_arm_path: Workspace arm path of ApplicationGroup.
:vartype workspace_arm_path: str
:param application_group_type: Required. Resource Type of ApplicationGroup. Possible values
include: "RemoteApp", "Desktop".
:type application_group_type: str or
~desktop_virtualization_api_client.models.ApplicationGroupType
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'host_pool_arm_path': {'required': True},
'workspace_arm_path': {'readonly': True},
'application_group_type': {'required': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'host_pool_arm_path': {'key': 'properties.hostPoolArmPath', 'type': 'str'},
'workspace_arm_path': {'key': 'properties.workspaceArmPath', 'type': 'str'},
'application_group_type': {'key': 'properties.applicationGroupType', 'type': 'str'},
}
def __init__(
self,
*,
location: str,
host_pool_arm_path: str,
application_group_type: Union[str, "ApplicationGroupType"],
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
**kwargs
):
super(ApplicationGroup, self).__init__(tags=tags, location=location, **kwargs)
self.description = description
self.friendly_name = friendly_name
self.host_pool_arm_path = host_pool_arm_path
self.workspace_arm_path = None
self.application_group_type = application_group_type
class ApplicationGroupList(msrest.serialization.Model):
"""List of ApplicationGroup definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of ApplicationGroup definitions.
:type value: list[~desktop_virtualization_api_client.models.ApplicationGroup]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[ApplicationGroup]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["ApplicationGroup"]] = None,
**kwargs
):
super(ApplicationGroupList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class ApplicationGroupPatch(Resource):
"""ApplicationGroup properties that can be patched.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: A set of tags. tags to be updated.
:type tags: dict[str, str]
:param description: Description of ApplicationGroup.
:type description: str
:param friendly_name: Friendly name of ApplicationGroup.
:type friendly_name: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
}
def __init__(
self,
*,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
**kwargs
):
super(ApplicationGroupPatch, self).__init__(**kwargs)
self.tags = tags
self.description = description
self.friendly_name = friendly_name
class ApplicationList(msrest.serialization.Model):
"""List of Application definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of Application definitions.
:type value: list[~desktop_virtualization_api_client.models.Application]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[Application]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["Application"]] = None,
**kwargs
):
super(ApplicationList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class ApplicationPatch(msrest.serialization.Model):
"""Application properties that can be patched.
:param tags: A set of tags. tags to be updated.
:type tags: dict[str, str]
:param description: Description of Application.
:type description: str
:param friendly_name: Friendly name of Application.
:type friendly_name: str
:param file_path: Specifies a path for the executable file for the application.
:type file_path: str
:param command_line_setting: Specifies whether this published application can be launched with
command line arguments provided by the client, command line arguments specified at publish
time, or no command line arguments at all. Possible values include: "DoNotAllow", "Allow",
"Require".
:type command_line_setting: str or ~desktop_virtualization_api_client.models.CommandLineSetting
:param command_line_arguments: Command Line Arguments for Application.
:type command_line_arguments: str
:param show_in_portal: Specifies whether to show the RemoteApp program in the RD Web Access
server.
:type show_in_portal: bool
:param icon_path: Path to icon.
:type icon_path: str
:param icon_index: Index of the icon.
:type icon_index: int
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'file_path': {'key': 'properties.filePath', 'type': 'str'},
'command_line_setting': {'key': 'properties.commandLineSetting', 'type': 'str'},
'command_line_arguments': {'key': 'properties.commandLineArguments', 'type': 'str'},
'show_in_portal': {'key': 'properties.showInPortal', 'type': 'bool'},
'icon_path': {'key': 'properties.iconPath', 'type': 'str'},
'icon_index': {'key': 'properties.iconIndex', 'type': 'int'},
}
def __init__(
self,
*,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
file_path: Optional[str] = None,
command_line_setting: Optional[Union[str, "CommandLineSetting"]] = None,
command_line_arguments: Optional[str] = None,
show_in_portal: Optional[bool] = None,
icon_path: Optional[str] = None,
icon_index: Optional[int] = None,
**kwargs
):
super(ApplicationPatch, self).__init__(**kwargs)
self.tags = tags
self.description = description
self.friendly_name = friendly_name
self.file_path = file_path
self.command_line_setting = command_line_setting
self.command_line_arguments = command_line_arguments
self.show_in_portal = show_in_portal
self.icon_path = icon_path
self.icon_index = icon_index
class Desktop(Resource):
"""Schema for Desktop properties.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param description: Description of Desktop.
:type description: str
:param friendly_name: Friendly name of Desktop.
:type friendly_name: str
:ivar icon_hash: Hash of the icon.
:vartype icon_hash: str
:ivar icon_content: The icon a 64 bit string as a byte array.
:vartype icon_content: bytearray
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'icon_hash': {'readonly': True},
'icon_content': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'icon_hash': {'key': 'properties.iconHash', 'type': 'str'},
'icon_content': {'key': 'properties.iconContent', 'type': 'bytearray'},
}
def __init__(
self,
*,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
**kwargs
):
super(Desktop, self).__init__(**kwargs)
self.description = description
self.friendly_name = friendly_name
self.icon_hash = None
self.icon_content = None
class DesktopList(msrest.serialization.Model):
"""List of Desktop definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of Desktop definitions.
:type value: list[~desktop_virtualization_api_client.models.Desktop]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[Desktop]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["Desktop"]] = None,
**kwargs
):
super(DesktopList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class DesktopPatch(msrest.serialization.Model):
"""Desktop properties that can be patched.
:param tags: A set of tags. tags to be updated.
:type tags: dict[str, str]
:param description: Description of Desktop.
:type description: str
:param friendly_name: Friendly name of Desktop.
:type friendly_name: str
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
}
def __init__(
self,
*,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
**kwargs
):
super(DesktopPatch, self).__init__(**kwargs)
self.tags = tags
self.description = description
self.friendly_name = friendly_name
class HostPool(TrackedResource):
"""Represents a HostPool definition.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives.
:type location: str
:param friendly_name: Friendly name of HostPool.
:type friendly_name: str
:param description: Description of HostPool.
:type description: str
:param host_pool_type: Required. HostPool type for desktop. Possible values include:
"Personal", "Pooled".
:type host_pool_type: str or ~desktop_virtualization_api_client.models.HostPoolType
:param personal_desktop_assignment_type: Required. PersonalDesktopAssignment type for HostPool.
Possible values include: "Automatic", "Direct".
:type personal_desktop_assignment_type: str or
~desktop_virtualization_api_client.models.PersonalDesktopAssignmentType
:param custom_rdp_property: Custom rdp property of HostPool.
:type custom_rdp_property: str
:param max_session_limit: The max session limit of HostPool.
:type max_session_limit: int
:param load_balancer_type: Required. The type of the load balancer. Possible values include:
"BreadthFirst", "DepthFirst", "Persistent".
:type load_balancer_type: str or ~desktop_virtualization_api_client.models.LoadBalancerType
:param ring: The ring number of HostPool.
:type ring: int
:param validation_environment: Is validation environment.
:type validation_environment: bool
:param registration_info: The registration info of HostPool.
:type registration_info: ~desktop_virtualization_api_client.models.RegistrationInfo
:param vm_template: VM template for sessionhosts configuration within hostpool.
:type vm_template: str
:ivar application_group_references: List of applicationGroup links.
:vartype application_group_references: list[str]
:param sso_context: Path to keyvault containing ssoContext secret.
:type sso_context: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'host_pool_type': {'required': True},
'personal_desktop_assignment_type': {'required': True},
'load_balancer_type': {'required': True},
'application_group_references': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'host_pool_type': {'key': 'properties.hostPoolType', 'type': 'str'},
'personal_desktop_assignment_type': {'key': 'properties.personalDesktopAssignmentType', 'type': 'str'},
'custom_rdp_property': {'key': 'properties.customRdpProperty', 'type': 'str'},
'max_session_limit': {'key': 'properties.maxSessionLimit', 'type': 'int'},
'load_balancer_type': {'key': 'properties.loadBalancerType', 'type': 'str'},
'ring': {'key': 'properties.ring', 'type': 'int'},
'validation_environment': {'key': 'properties.validationEnvironment', 'type': 'bool'},
'registration_info': {'key': 'properties.registrationInfo', 'type': 'RegistrationInfo'},
'vm_template': {'key': 'properties.vmTemplate', 'type': 'str'},
'application_group_references': {'key': 'properties.applicationGroupReferences', 'type': '[str]'},
'sso_context': {'key': 'properties.ssoContext', 'type': 'str'},
}
def __init__(
self,
*,
location: str,
host_pool_type: Union[str, "HostPoolType"],
personal_desktop_assignment_type: Union[str, "PersonalDesktopAssignmentType"],
load_balancer_type: Union[str, "LoadBalancerType"],
tags: Optional[Dict[str, str]] = None,
friendly_name: Optional[str] = None,
description: Optional[str] = None,
custom_rdp_property: Optional[str] = None,
max_session_limit: Optional[int] = None,
ring: Optional[int] = None,
validation_environment: Optional[bool] = None,
registration_info: Optional["RegistrationInfo"] = None,
vm_template: Optional[str] = None,
sso_context: Optional[str] = None,
**kwargs
):
super(HostPool, self).__init__(tags=tags, location=location, **kwargs)
self.friendly_name = friendly_name
self.description = description
self.host_pool_type = host_pool_type
self.personal_desktop_assignment_type = personal_desktop_assignment_type
self.custom_rdp_property = custom_rdp_property
self.max_session_limit = max_session_limit
self.load_balancer_type = load_balancer_type
self.ring = ring
self.validation_environment = validation_environment
self.registration_info = registration_info
self.vm_template = vm_template
self.application_group_references = None
self.sso_context = sso_context
class HostPoolList(msrest.serialization.Model):
"""List of HostPool definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of HostPool definitions.
:type value: list[~desktop_virtualization_api_client.models.HostPool]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[HostPool]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["HostPool"]] = None,
**kwargs
):
super(HostPoolList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class HostPoolPatch(Resource):
"""HostPool properties that can be patched.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: A set of tags. tags to be updated.
:type tags: dict[str, str]
:param friendly_name: Friendly name of HostPool.
:type friendly_name: str
:param description: Description of HostPool.
:type description: str
:param custom_rdp_property: Custom rdp property of HostPool.
:type custom_rdp_property: str
:param max_session_limit: The max session limit of HostPool.
:type max_session_limit: int
:param personal_desktop_assignment_type: PersonalDesktopAssignment type for HostPool. Possible
values include: "Automatic", "Direct".
:type personal_desktop_assignment_type: str or
~desktop_virtualization_api_client.models.PersonalDesktopAssignmentType
:param load_balancer_type: The type of the load balancer. Possible values include:
"BreadthFirst", "DepthFirst", "Persistent".
:type load_balancer_type: str or ~desktop_virtualization_api_client.models.LoadBalancerType
:param ring: The ring number of HostPool.
:type ring: int
:param validation_environment: Is validation environment.
:type validation_environment: bool
:param registration_info: The registration info of HostPool.
:type registration_info: ~desktop_virtualization_api_client.models.RegistrationInfoPatch
:param sso_context: Path to keyvault containing ssoContext secret.
:type sso_context: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'custom_rdp_property': {'key': 'properties.customRdpProperty', 'type': 'str'},
'max_session_limit': {'key': 'properties.maxSessionLimit', 'type': 'int'},
'personal_desktop_assignment_type': {'key': 'properties.personalDesktopAssignmentType', 'type': 'str'},
'load_balancer_type': {'key': 'properties.loadBalancerType', 'type': 'str'},
'ring': {'key': 'properties.ring', 'type': 'int'},
'validation_environment': {'key': 'properties.validationEnvironment', 'type': 'bool'},
'registration_info': {'key': 'properties.registrationInfo', 'type': 'RegistrationInfoPatch'},
'sso_context': {'key': 'properties.ssoContext', 'type': 'str'},
}
def __init__(
self,
*,
tags: Optional[Dict[str, str]] = None,
friendly_name: Optional[str] = None,
description: Optional[str] = None,
custom_rdp_property: Optional[str] = None,
max_session_limit: Optional[int] = None,
personal_desktop_assignment_type: Optional[Union[str, "PersonalDesktopAssignmentType"]] = None,
load_balancer_type: Optional[Union[str, "LoadBalancerType"]] = None,
ring: Optional[int] = None,
validation_environment: Optional[bool] = None,
registration_info: Optional["RegistrationInfoPatch"] = None,
sso_context: Optional[str] = None,
**kwargs
):
super(HostPoolPatch, self).__init__(**kwargs)
self.tags = tags
self.friendly_name = friendly_name
self.description = description
self.custom_rdp_property = custom_rdp_property
self.max_session_limit = max_session_limit
self.personal_desktop_assignment_type = personal_desktop_assignment_type
self.load_balancer_type = load_balancer_type
self.ring = ring
self.validation_environment = validation_environment
self.registration_info = registration_info
self.sso_context = sso_context
class RegistrationInfo(msrest.serialization.Model):
"""Represents a RegistrationInfo definition.
:param expiration_time: Expiration time of registration token.
:type expiration_time: ~datetime.datetime
:param token: The registration token base64 encoded string.
:type token: str
:param registration_token_operation: The type of resetting the token. Possible values include:
"Delete", "None", "Update".
:type registration_token_operation: str or
~desktop_virtualization_api_client.models.RegistrationTokenOperation
"""
_attribute_map = {
'expiration_time': {'key': 'expirationTime', 'type': 'iso-8601'},
'token': {'key': 'token', 'type': 'str'},
'registration_token_operation': {'key': 'registrationTokenOperation', 'type': 'str'},
}
def __init__(
self,
*,
expiration_time: Optional[datetime.datetime] = None,
token: Optional[str] = None,
registration_token_operation: Optional[Union[str, "RegistrationTokenOperation"]] = None,
**kwargs
):
super(RegistrationInfo, self).__init__(**kwargs)
self.expiration_time = expiration_time
self.token = token
self.registration_token_operation = registration_token_operation
class RegistrationInfoPatch(msrest.serialization.Model):
"""Represents a RegistrationInfo definition.
:param expiration_time: Expiration time of registration token.
:type expiration_time: ~datetime.datetime
:param registration_token_operation: The type of resetting the token. Possible values include:
"Delete", "None", "Update".
:type registration_token_operation: str or
~desktop_virtualization_api_client.models.RegistrationTokenOperation
"""
_attribute_map = {
'expiration_time': {'key': 'expirationTime', 'type': 'iso-8601'},
'registration_token_operation': {'key': 'registrationTokenOperation', 'type': 'str'},
}
def __init__(
self,
*,
expiration_time: Optional[datetime.datetime] = None,
registration_token_operation: Optional[Union[str, "RegistrationTokenOperation"]] = None,
**kwargs
):
super(RegistrationInfoPatch, self).__init__(**kwargs)
self.expiration_time = expiration_time
self.registration_token_operation = registration_token_operation
class ResourceProviderOperation(msrest.serialization.Model):
"""Supported operation of this resource provider.
:param name: Operation name, in format of {provider}/{resource}/{operation}.
:type name: str
:param display: Display metadata associated with the operation.
:type display: ~desktop_virtualization_api_client.models.ResourceProviderOperationDisplay
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'ResourceProviderOperationDisplay'},
}
def __init__(
self,
*,
name: Optional[str] = None,
display: Optional["ResourceProviderOperationDisplay"] = None,
**kwargs
):
super(ResourceProviderOperation, self).__init__(**kwargs)
self.name = name
self.display = display
class ResourceProviderOperationDisplay(msrest.serialization.Model):
"""Display metadata associated with the operation.
:param provider: Resource provider: Microsoft Desktop Virtualization.
:type provider: str
:param resource: Resource on which the operation is performed.
:type resource: str
:param operation: Type of operation: get, read, delete, etc.
:type operation: str
:param description: Description of this operation.
:type description: str
"""
_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}
def __init__(
self,
*,
provider: Optional[str] = None,
resource: Optional[str] = None,
operation: Optional[str] = None,
description: Optional[str] = None,
**kwargs
):
super(ResourceProviderOperationDisplay, self).__init__(**kwargs)
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
class ResourceProviderOperationList(msrest.serialization.Model):
"""Result of the request to list operations.
:param value: List of operations supported by this resource provider.
:type value: list[~desktop_virtualization_api_client.models.ResourceProviderOperation]
"""
_attribute_map = {
'value': {'key': 'value', 'type': '[ResourceProviderOperation]'},
}
def __init__(
self,
*,
value: Optional[List["ResourceProviderOperation"]] = None,
**kwargs
):
super(ResourceProviderOperationList, self).__init__(**kwargs)
self.value = value
class SendMessage(msrest.serialization.Model):
"""Represents message sent to a UserSession.
:param message_title: Title of message.
:type message_title: str
:param message_body: Body of message.
:type message_body: str
"""
_attribute_map = {
'message_title': {'key': 'messageTitle', 'type': 'str'},
'message_body': {'key': 'messageBody', 'type': 'str'},
}
def __init__(
self,
*,
message_title: Optional[str] = None,
message_body: Optional[str] = None,
**kwargs
):
super(SendMessage, self).__init__(**kwargs)
self.message_title = message_title
self.message_body = message_body
class SessionHost(Resource):
"""Represents a SessionHost definition.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param last_heart_beat: Last heart beat from SessionHost.
:type last_heart_beat: ~datetime.datetime
:param sessions: Number of sessions on SessionHost.
:type sessions: int
:param agent_version: Version of agent on SessionHost.
:type agent_version: str
:param allow_new_session: Allow a new session.
:type allow_new_session: bool
:param assigned_user: User assigned to SessionHost.
:type assigned_user: str
:param status: Status for a SessionHost. Possible values include: "Available", "Unavailable",
"Shutdown", "Disconnected", "Upgrading", "UpgradeFailed".
:type status: str or ~desktop_virtualization_api_client.models.Status
:ivar status_timestamp: The timestamp of the status.
:vartype status_timestamp: ~datetime.datetime
:param os_version: The version of the OS on the session host.
:type os_version: str
:param sx_s_stack_version: The version of the side by side stack on the session host.
:type sx_s_stack_version: str
:param update_state: Update state of a SessionHost. Possible values include: "Initial",
"Pending", "Started", "Succeeded", "Failed".
:type update_state: str or ~desktop_virtualization_api_client.models.UpdateState
:ivar last_update_time: The timestamp of the last update.
:vartype last_update_time: ~datetime.datetime
:param update_error_message: The error message.
:type update_error_message: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'status_timestamp': {'readonly': True},
'last_update_time': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'last_heart_beat': {'key': 'properties.lastHeartBeat', 'type': 'iso-8601'},
'sessions': {'key': 'properties.sessions', 'type': 'int'},
'agent_version': {'key': 'properties.agentVersion', 'type': 'str'},
'allow_new_session': {'key': 'properties.allowNewSession', 'type': 'bool'},
'assigned_user': {'key': 'properties.assignedUser', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'status_timestamp': {'key': 'properties.statusTimestamp', 'type': 'iso-8601'},
'os_version': {'key': 'properties.osVersion', 'type': 'str'},
'sx_s_stack_version': {'key': 'properties.sxSStackVersion', 'type': 'str'},
'update_state': {'key': 'properties.updateState', 'type': 'str'},
'last_update_time': {'key': 'properties.lastUpdateTime', 'type': 'iso-8601'},
'update_error_message': {'key': 'properties.updateErrorMessage', 'type': 'str'},
}
def __init__(
self,
*,
last_heart_beat: Optional[datetime.datetime] = None,
sessions: Optional[int] = None,
agent_version: Optional[str] = None,
allow_new_session: Optional[bool] = None,
assigned_user: Optional[str] = None,
status: Optional[Union[str, "Status"]] = None,
os_version: Optional[str] = None,
sx_s_stack_version: Optional[str] = None,
update_state: Optional[Union[str, "UpdateState"]] = None,
update_error_message: Optional[str] = None,
**kwargs
):
super(SessionHost, self).__init__(**kwargs)
self.last_heart_beat = last_heart_beat
self.sessions = sessions
self.agent_version = agent_version
self.allow_new_session = allow_new_session
self.assigned_user = assigned_user
self.status = status
self.status_timestamp = None
self.os_version = os_version
self.sx_s_stack_version = sx_s_stack_version
self.update_state = update_state
self.last_update_time = None
self.update_error_message = update_error_message
class SessionHostList(msrest.serialization.Model):
"""List of SessionHost definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of SessionHost definitions.
:type value: list[~desktop_virtualization_api_client.models.SessionHost]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[SessionHost]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["SessionHost"]] = None,
**kwargs
):
super(SessionHostList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class SessionHostPatch(Resource):
"""SessionHost properties that can be patched.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param allow_new_session: Allow a new session.
:type allow_new_session: bool
:param assigned_user: User assigned to SessionHost.
:type assigned_user: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'allow_new_session': {'key': 'properties.allowNewSession', 'type': 'bool'},
'assigned_user': {'key': 'properties.assignedUser', 'type': 'str'},
}
def __init__(
self,
*,
allow_new_session: Optional[bool] = None,
assigned_user: Optional[str] = None,
**kwargs
):
super(SessionHostPatch, self).__init__(**kwargs)
self.allow_new_session = allow_new_session
self.assigned_user = assigned_user
class StartMenuItem(Resource):
"""Represents a StartMenuItem definition.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param app_alias: Alias of StartMenuItem.
:type app_alias: str
:param friendly_name: Friendly name of StartMenuItem.
:type friendly_name: str
:param file_path: Path to the file of StartMenuItem.
:type file_path: str
:param command_line_arguments: Command line arguments for StartMenuItem.
:type command_line_arguments: str
:param icon_path: Path to the icon.
:type icon_path: str
:param icon_index: Index of the icon.
:type icon_index: int
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'app_alias': {'key': 'properties.appAlias', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'file_path': {'key': 'properties.filePath', 'type': 'str'},
'command_line_arguments': {'key': 'properties.commandLineArguments', 'type': 'str'},
'icon_path': {'key': 'properties.iconPath', 'type': 'str'},
'icon_index': {'key': 'properties.iconIndex', 'type': 'int'},
}
def __init__(
self,
*,
app_alias: Optional[str] = None,
friendly_name: Optional[str] = None,
file_path: Optional[str] = None,
command_line_arguments: Optional[str] = None,
icon_path: Optional[str] = None,
icon_index: Optional[int] = None,
**kwargs
):
super(StartMenuItem, self).__init__(**kwargs)
self.app_alias = app_alias
self.friendly_name = friendly_name
self.file_path = file_path
self.command_line_arguments = command_line_arguments
self.icon_path = icon_path
self.icon_index = icon_index
class StartMenuItemList(msrest.serialization.Model):
"""List of StartMenuItem definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of StartMenuItem definitions.
:type value: list[~desktop_virtualization_api_client.models.StartMenuItem]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[StartMenuItem]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["StartMenuItem"]] = None,
**kwargs
):
super(StartMenuItemList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class UserSession(Resource):
"""Represents a UserSession definition.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param user_principal_name: The user principal name.
:type user_principal_name: str
:param application_type: Application type of application. Possible values include: "RemoteApp",
"Desktop".
:type application_type: str or ~desktop_virtualization_api_client.models.ApplicationType
:param session_state: State of user session. Possible values include: "Unknown", "Active",
"Disconnected", "Pending", "LogOff", "UserProfileDiskMounted".
:type session_state: str or ~desktop_virtualization_api_client.models.SessionState
:param active_directory_user_name: The active directory user name.
:type active_directory_user_name: str
:param create_time: The timestamp of the user session create.
:type create_time: ~datetime.datetime
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'user_principal_name': {'key': 'properties.userPrincipalName', 'type': 'str'},
'application_type': {'key': 'properties.applicationType', 'type': 'str'},
'session_state': {'key': 'properties.sessionState', 'type': 'str'},
'active_directory_user_name': {'key': 'properties.activeDirectoryUserName', 'type': 'str'},
'create_time': {'key': 'properties.createTime', 'type': 'iso-8601'},
}
def __init__(
self,
*,
user_principal_name: Optional[str] = None,
application_type: Optional[Union[str, "ApplicationType"]] = None,
session_state: Optional[Union[str, "SessionState"]] = None,
active_directory_user_name: Optional[str] = None,
create_time: Optional[datetime.datetime] = None,
**kwargs
):
super(UserSession, self).__init__(**kwargs)
self.user_principal_name = user_principal_name
self.application_type = application_type
self.session_state = session_state
self.active_directory_user_name = active_directory_user_name
self.create_time = create_time
class UserSessionList(msrest.serialization.Model):
"""List of UserSession definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of UserSession definitions.
:type value: list[~desktop_virtualization_api_client.models.UserSession]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[UserSession]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["UserSession"]] = None,
**kwargs
):
super(UserSessionList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class Workspace(TrackedResource):
"""Represents a Workspace definition.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives.
:type location: str
:param description: Description of Workspace.
:type description: str
:param friendly_name: Friendly name of Workspace.
:type friendly_name: str
:param application_group_references: List of applicationGroup resource Ids.
:type application_group_references: list[str]
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'application_group_references': {'key': 'properties.applicationGroupReferences', 'type': '[str]'},
}
def __init__(
self,
*,
location: str,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
application_group_references: Optional[List[str]] = None,
**kwargs
):
super(Workspace, self).__init__(tags=tags, location=location, **kwargs)
self.description = description
self.friendly_name = friendly_name
self.application_group_references = application_group_references
class WorkspaceList(msrest.serialization.Model):
"""List of Workspace definitions.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: List of Workspace definitions.
:type value: list[~desktop_virtualization_api_client.models.Workspace]
:ivar next_link: Link to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[Workspace]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(
self,
*,
value: Optional[List["Workspace"]] = None,
**kwargs
):
super(WorkspaceList, self).__init__(**kwargs)
self.value = value
self.next_link = None
class WorkspacePatch(msrest.serialization.Model):
"""Workspace properties that can be patched.
:param tags: A set of tags. tags to be updated.
:type tags: dict[str, str]
:param description: Description of Workspace.
:type description: str
:param friendly_name: Friendly name of Workspace.
:type friendly_name: str
:param application_group_references: List of applicationGroup links.
:type application_group_references: list[str]
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'description': {'key': 'properties.description', 'type': 'str'},
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
'application_group_references': {'key': 'properties.applicationGroupReferences', 'type': '[str]'},
}
def __init__(
self,
*,
tags: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
application_group_references: Optional[List[str]] = None,
**kwargs
):
super(WorkspacePatch, self).__init__(**kwargs)
self.tags = tags
self.description = description
self.friendly_name = friendly_name
self.application_group_references = application_group_references
| 38.300752
| 140
| 0.649088
| 6,085
| 56,034
| 5.79129
| 0.058669
| 0.030392
| 0.022134
| 0.022985
| 0.763848
| 0.73618
| 0.725596
| 0.714784
| 0.69807
| 0.67046
| 0
| 0.000712
| 0.222633
| 56,034
| 1,462
| 141
| 38.326949
| 0.808306
| 0.403541
| 0
| 0.691327
| 0
| 0
| 0.241524
| 0.080201
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038265
| false
| 0.005102
| 0.005102
| 0
| 0.146684
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 4
|
cc20c7f6d7ed88b61f5335db4689e9316f51d789
| 224
|
py
|
Python
|
tests/mockmodules/connectors/connector_bare.py
|
jakesen/opsdroid
|
8bd640685ee1b8c8965dfdeb8f1ab06a45a2b85b
|
[
"Apache-2.0"
] | null | null | null |
tests/mockmodules/connectors/connector_bare.py
|
jakesen/opsdroid
|
8bd640685ee1b8c8965dfdeb8f1ab06a45a2b85b
|
[
"Apache-2.0"
] | 1
|
2018-10-02T13:16:19.000Z
|
2018-10-02T13:16:19.000Z
|
tests/mockmodules/connectors/connector_bare.py
|
jakesen/opsdroid
|
8bd640685ee1b8c8965dfdeb8f1ab06a45a2b85b
|
[
"Apache-2.0"
] | null | null | null |
"""A mocked connector module."""
from opsdroid.connector import Connector
class ConnectorTest(Connector):
"""The mocked connector class."""
def __init__(self, config):
"""Start the class."""
pass
| 18.666667
| 40
| 0.651786
| 24
| 224
| 5.916667
| 0.666667
| 0.211268
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.21875
| 224
| 11
| 41
| 20.363636
| 0.811429
| 0.316964
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
cc2db28cf352cf5737035edd38a425fdd7db7ec8
| 2,515
|
py
|
Python
|
tests/test_servo.py
|
MultipedRobotics/quadruped
|
17c2023e577cb6593b3f5a5fcbd5a9a57a5da46a
|
[
"MIT"
] | 14
|
2018-12-13T01:40:35.000Z
|
2021-12-23T12:57:42.000Z
|
tests/test_servo.py
|
MomsFriendlyRobotCompany/quadruped
|
17c2023e577cb6593b3f5a5fcbd5a9a57a5da46a
|
[
"MIT"
] | null | null | null |
tests/test_servo.py
|
MomsFriendlyRobotCompany/quadruped
|
17c2023e577cb6593b3f5a5fcbd5a9a57a5da46a
|
[
"MIT"
] | 4
|
2019-12-31T12:48:31.000Z
|
2020-11-21T14:12:11.000Z
|
# #!/usr/bin/env python
# ##############################################
# # The MIT License (MIT)
# # Copyright (c) 2016 Kevin Walchko
# # see LICENSE for full details
# ##############################################
# # run this with "nosetests -v test_servo.py"
#
# from __future__ import print_function
# from __future__ import division
# from nose.tools import raises
# from quadruped.Servo import Servo
# from pyxl320 import ServoSerial
#
#
# def test_limits():
# ser = ServoSerial('test_port', fake=True)
# Servo.ser = ser
# s = Servo(15)
# s.setServoLimits(0, 0, 180)
# s.angle = 0; assert (s.angle == 0)
# s.angle = 45; assert (s.angle == 45)
# s.angle = 90; assert (s.angle == 90)
# s.angle = 180; assert (s.angle == 180)
# s.angle = 270; assert (s.angle == 180), "angle is: {}".format(s.angle)
# s.angle = -45; assert (s.angle == 0)
# s.angle = -90; assert (s.angle == 0)
# s.angle = -270; assert (s.angle == 0)
#
# s.setServoLimits(150, -90, 90)
# s.angle = 0; assert (s.angle == 0)
# s.angle = 45; assert (s.angle == 45)
# s.angle = 90; assert (s.angle == 90)
# s.angle = 180; assert (s.angle == 90)
# s.angle = 270; assert (s.angle == 90)
# s.angle = -45; assert (s.angle == -45)
# s.angle = -90; assert (s.angle == -90)
# s.angle = -270; assert (s.angle == -90)
#
#
# @raises(Exception)
# def test_fail2():
# ser = ServoSerial('test_port', fake=True)
# Servo.ser = ser
# s = Servo(15)
# s.setServoLimits(0, 180, 0) # min > max ... error
#
# # def checks():
# # check = lambda x, a, b: max(min(b, x), a)
# # print('0 in [0,180]:', check(0, 0, 180))
# # print('90 in [0,180]:', check(90, 0, 180))
# # print('180 in [0,180]:', check(180, 0, 180))
# # print('-90 in [0,180]:', check(-90, 0, 180))
# # print('-180 in [0,180]:', check(-180, 0, 180))
# # print('--------------------')
# # print('these are wrong! Cannot reverse order')
# # print('0 in [180,0]:', check(0, 180, 0))
# # print('45 in [180,0]:', check(45, 180, 0))
# # print('90 in [180,0]:', check(90, 180, 0))
# # print('180 in [180,0]:', check(180, 180, 0))
# # print('-90 in [180,0]:', check(-90, 180, 0))
# # print('-180 in [180,0]:', check(-180, 180, 0))
# # print('--------------------')
# # print('0 in [-180,0]:', check(0, -180, 0))
# # print('90 in [-180,0]:', check(90, -180, 0))
# # print('180 in [-180,0]:', check(180, -180, 0))
# # print('-90 in [-180,0]:', check(-90, -180, 0))
# # print('-45 in [-180,0]:', check(-45, -180, 0))
# # print('-180 in [-180,0]:', check(-180, -180, 0))
| 35.928571
| 73
| 0.53161
| 390
| 2,515
| 3.392308
| 0.187179
| 0.14966
| 0.145125
| 0.099773
| 0.668178
| 0.666667
| 0.603175
| 0.603175
| 0.603175
| 0.603175
| 0
| 0.148076
| 0.183698
| 2,515
| 69
| 74
| 36.449275
| 0.496347
| 0.897018
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0bd6c63f2047aa460ab7b948ce8eaab81492b19a
| 151
|
py
|
Python
|
open/utilities/date_and_time.py
|
awesome-archive/open
|
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
|
[
"MIT"
] | null | null | null |
open/utilities/date_and_time.py
|
awesome-archive/open
|
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
|
[
"MIT"
] | null | null | null |
open/utilities/date_and_time.py
|
awesome-archive/open
|
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
|
[
"MIT"
] | null | null | null |
from datetime import datetime
def print_current_time():
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print(current_time)
| 18.875
| 43
| 0.688742
| 21
| 151
| 4.761905
| 0.571429
| 0.33
| 0.32
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178808
| 151
| 7
| 44
| 21.571429
| 0.806452
| 0
| 0
| 0
| 0
| 0
| 0.05298
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.4
| 0.4
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0bea4a1d80824e60babd88585cddba0a56d8bcf0
| 284
|
py
|
Python
|
Front-end/antlr/jamon.py
|
cor14095/probases1
|
0e99fde61108379a22339603f94238aa81808968
|
[
"MIT"
] | 1
|
2017-04-02T01:52:57.000Z
|
2017-04-02T01:52:57.000Z
|
Front-end/antlr/jamon.py
|
cor14095/probases1
|
0e99fde61108379a22339603f94238aa81808968
|
[
"MIT"
] | null | null | null |
Front-end/antlr/jamon.py
|
cor14095/probases1
|
0e99fde61108379a22339603f94238aa81808968
|
[
"MIT"
] | null | null | null |
import sys
import logging
from antlr4 import *
from SQLGramaticaLexer import SQLGramaticaLexer
from SQLGramaticaParser import SQLGramaticaParser
from ParserErrorListener import ParserErrorListener
from SQLGramaticaListener import SQLGramaticaListener
def test(path):
return path
| 25.818182
| 53
| 0.869718
| 28
| 284
| 8.821429
| 0.464286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003984
| 0.116197
| 284
| 11
| 54
| 25.818182
| 0.98008
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.777778
| 0.111111
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
0bf5027cde828b911c5b13cef360b75c33b3e9f6
| 132
|
py
|
Python
|
fire/models/__init__.py
|
mzntaka0/pytorch_framework
|
1cd79567f86249aad9b7fa039c05f6bcc1c2941a
|
[
"Apache-2.0"
] | 2
|
2020-07-02T01:18:48.000Z
|
2021-03-27T12:32:41.000Z
|
fire/models/__init__.py
|
mzntaka0/fire
|
1cd79567f86249aad9b7fa039c05f6bcc1c2941a
|
[
"Apache-2.0"
] | null | null | null |
fire/models/__init__.py
|
mzntaka0/fire
|
1cd79567f86249aad9b7fa039c05f6bcc1c2941a
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
""" Train models module. """
#from modules.models.pytorch.alex_net import AlexNet
#__all__ = ['AlexNet']
| 16.5
| 52
| 0.651515
| 16
| 132
| 5.0625
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008929
| 0.151515
| 132
| 7
| 53
| 18.857143
| 0.714286
| 0.878788
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
040e486a5aeac8f129d0caf54b01d5c0914e00fe
| 183
|
py
|
Python
|
demo_stubs_lib.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
demo_stubs_lib.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
demo_stubs_lib.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
import math
def f(s):
if s == "MyPy":
return math.e
elif s == "PizzaPY":
return math.e
else:
return len(s)
version = "Module version: 0.2882a"
| 13.071429
| 35
| 0.52459
| 26
| 183
| 3.692308
| 0.653846
| 0.208333
| 0.229167
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042017
| 0.349727
| 183
| 13
| 36
| 14.076923
| 0.764706
| 0
| 0
| 0.222222
| 0
| 0
| 0.185792
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.111111
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0424b484b395a3471378f2a09dcc2c5cde62b1c9
| 152
|
py
|
Python
|
sendinblue/apps.py
|
apihackers/wagtail-sendinblue
|
c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc
|
[
"MIT"
] | 1
|
2018-02-01T16:39:08.000Z
|
2018-02-01T16:39:08.000Z
|
sendinblue/apps.py
|
apihackers/wagtail-sendinblue
|
c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc
|
[
"MIT"
] | null | null | null |
sendinblue/apps.py
|
apihackers/wagtail-sendinblue
|
c52a3ab22c1cb6a919326b9b20bb8bb69e95f7bc
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class SendInBlueConfig(AppConfig):
name = 'sendinblue'
label = 'sendinblue'
verbose_name = 'SendInBlue'
| 19
| 34
| 0.723684
| 15
| 152
| 7.266667
| 0.733333
| 0.256881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190789
| 152
| 7
| 35
| 21.714286
| 0.886179
| 0
| 0
| 0
| 0
| 0
| 0.197368
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
04258977b5eaec7dbebb41f3cc085ebb675b2037
| 105,721
|
py
|
Python
|
docs/tutorials/11 - PV ICE Journal.py
|
NREL/PV-DEMICE
|
6e2938950ff10c37f176f46aeb76c78de609f535
|
[
"BSD-3-Clause"
] | 3
|
2020-05-11T15:19:47.000Z
|
2020-09-10T16:53:10.000Z
|
docs/tutorials/11 - PV ICE Journal.py
|
NREL/PV_DEMICE
|
6e2938950ff10c37f176f46aeb76c78de609f535
|
[
"BSD-3-Clause"
] | 2
|
2020-04-09T17:41:54.000Z
|
2020-07-20T17:25:26.000Z
|
docs/tutorials/11 - PV ICE Journal.py
|
NREL/PV_DEMICE
|
6e2938950ff10c37f176f46aeb76c78de609f535
|
[
"BSD-3-Clause"
] | 1
|
2020-04-09T17:36:28.000Z
|
2020-04-09T17:36:28.000Z
|
#!/usr/bin/env python
# coding: utf-8
# # 11 - PV ICE Journal: PV in the Circular Economy, A Dynamic Framework Analyzing Technology Evolution and Reliability Impacts
# In[1]:
import PV_ICE
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import seaborn as sns
import pandas as pd
import numpy as np
import os
from pathlib import Path
testfolder = str(Path().resolve().parent.parent / 'PV_ICE' / 'TEMP' / 'ElectricFutures')
print ("Your simulation will be stored in %s" % testfolder)
# In[2]:
PV_ICE.__version__
# In[3]:
plt.rcParams.update({'font.size': 22})
plt.rcParams['figure.figsize'] = (12, 5)
# In[4]:
MATERIALS = ['glass','silver','silicon', 'copper','aluminium_frames', 'backsheet', 'encapsulant']
MATERIAL = MATERIALS[0]
MODULEBASELINE = r'..\..\baselines\ElectrificationFutures_2021\baseline_modules_US_NREL_Electrification_Futures_2021_basecase.csv'
MODULEBASELINE_High = r'..\..\baselines\ElectrificationFutures_2021\baseline_modules_US_NREL_Electrification_Futures_2021_LowREHighElec.csv'
# In[5]:
r1 = PV_ICE.Simulation(name='PV_ICE', path=testfolder)
r1.createScenario(name='base', file=MODULEBASELINE)
r1.createScenario(name='high', file=MODULEBASELINE_High)
r1.scenario['base'].addMaterials(MATERIALS, r'..\..\baselines')
r1.scenario['high'].addMaterials(MATERIALS, r'..\..\baselines')
# In[6]:
r2 = PV_ICE.Simulation(name='bifacialTrend', path=testfolder)
r2.createScenario(name='base', file=MODULEBASELINE)
r2.scenario['base'].addMaterials(MATERIALS, r'..\..\baselines')
r2.createScenario(name='high', file=MODULEBASELINE_High)
r2.scenario['high'].addMaterials(MATERIALS, r'..\..\baselines')
# Rewriting with bifacial ones
MATERIALBASELINE = r'..\..\baselines\PVSC_2021\baseline_material_glass_bifacialTrend.csv'
r2.scenario['base'].addMaterial('glass', file=MATERIALBASELINE)
MATERIALBASELINE = r'..\..\baselines\PVSC_2021\baseline_material_aluminium_frames_bifacialTrend.csv'
r2.scenario['base'].addMaterial('aluminium_frames', file=MATERIALBASELINE)
MATERIALBASELINE = r'..\..\baselines\PVSC_2021\baseline_material_glass_bifacialTrend.csv'
r2.scenario['high'].addMaterial('glass', file=MATERIALBASELINE)
MATERIALBASELINE = r'..\..\baselines\PVSC_2021\baseline_material_aluminium_frames_bifacialTrend.csv'
r2.scenario['high'].addMaterial('aluminium_frames', file=MATERIALBASELINE)
# In[7]:
r3 = PV_ICE.Simulation(name='Irena_EL', path=testfolder)
r3.createScenario(name='base', file=MODULEBASELINE)
r3.createScenario(name='high', file=MODULEBASELINE_High)
r3.scenario['base'].addMaterials(MATERIALS, r'..\..\baselines')
r3.scenario['high'].addMaterials(MATERIALS, r'..\..\baselines')
r3.scenMod_IRENIFY(scenarios=['base', 'high'], ELorRL = 'EL' )
# In[8]:
r4 = PV_ICE.Simulation(name='Irena_RL', path=testfolder)
r4.createScenario(name='base', file=MODULEBASELINE)
r4.createScenario(name='high', file=MODULEBASELINE_High)
r4.scenario['base'].addMaterials(MATERIALS, r'..\..\baselines')
r4.scenario['high'].addMaterials(MATERIALS, r'..\..\baselines')
r4.scenMod_IRENIFY(scenarios=['base', 'high'], ELorRL = 'RL' )
# In[9]:
r1.calculateMassFlow()
r2.calculateMassFlow()
r3.calculateMassFlow()
r4.calculateMassFlow()
# # Compile Results
# In[10]:
objects = [r1, r2, r3, r4]
scenarios = ['base', 'high']
# In[11]:
pvice_Usyearly1, pvice_Uscum1 = r1.aggregateResults()
pvice_Usyearly2, pvice_Uscum2 = r2.aggregateResults()
pvice_Usyearly3, pvice_Uscum3 = r3.aggregateResults()
pvice_Usyearly4, pvice_Uscum4 = r4.aggregateResults()
UScum = pd.concat([pvice_Uscum1, pvice_Uscum2, pvice_Uscum3, pvice_Uscum4], axis=1)
USyearly = pd.concat([pvice_Usyearly1, pvice_Usyearly2, pvice_Usyearly3, pvice_Usyearly4], axis=1)
UScum.to_csv('pvice_USCum.csv')
USyearly.to_csv('pvice_USYearly.csv')
# # Fig 10 - Virgin Needs, Eol Waste and MFG Waste
# In[12]:
materials = ['glass', 'aluminium_frames', 'silicon', 'copper', 'silver', 'encapsulant', 'backsheet']
modulemat = 'Module'
mytitlefont = 18
mylegendfont = 14
plt.rcParams.update({'font.size': 18})
plt.rcParams['figure.figsize'] = (15, 20.2)
f, a0 = plt.subplots(3, 2, gridspec_kw={'width_ratios': [3.5,1.5], 'wspace':0.15, 'hspace':0.3})
########################
# SUBPLOT 1
########################
#######################
# Loop over CASES
name4 = 'Irena_RL_high_[Tonnes]'
name3 = 'Irena_EL_high_[Tonnes]'
name2 = 'PV_ICE_high_[Tonnes]'
name1 = 'PV_ICE_base_[Tonnes]'
# SCENARIO 1 ***************
keyw='VirginStock_'
a0[0,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name1]/1000000, 'k', linestyle='dotted', linewidth=4, label='S1: PV ICE, ref')
a0[0,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name2]/1000000, 'c', linewidth=3, label='S2: PV ICE, h.e.')
a0[0,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name3]/1000000, 'g', linestyle='dashdot', linewidth=3, label='S3: IRENA, Early Loss, h.e.')
a0[0,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name4]/1000000, 'b--', linewidth=3, label='S4: IRENA, Regular Loss, h.e.')
a0[0,0].legend(prop={'size': mylegendfont})
a0[0,0].set_title('Yearly Virgin Material Needs by Scenario', fontsize=mytitlefont, weight='roman')
a0[0,0].set_ylabel('Module Mass [Million Tonnes]')
a0[0,0].set_xlim([2020, 2050])
a0[0,0].set_xlabel('Years')
a0[0,0].minorticks_on()
a0[0,0].text(-0.1, 1.05, 'a', transform=a0[0,0].transAxes, size=20, weight='bold')
########################
# SUBPLOT 2
########################
#######################
# Calculate
cumulations2050 = {}
for ii in range(0, len(materials)):
matcum = []
matcum.append(UScum[keyw+materials[ii]+'_'+name1].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name2].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name3].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name4].loc[2050])
cumulations2050[materials[ii]] = matcum
dfcumulations2050 = pd.DataFrame.from_dict(cumulations2050)
dfcumulations2050 = dfcumulations2050/1000000 # in Million Tonnes
dfcumulations2050['bottom1'] = dfcumulations2050['glass']
dfcumulations2050['bottom2'] = dfcumulations2050['bottom1']+dfcumulations2050['aluminium_frames']
dfcumulations2050['bottom3'] = dfcumulations2050['bottom2']+dfcumulations2050['silicon']
dfcumulations2050['bottom4'] = dfcumulations2050['bottom3']+dfcumulations2050['copper']
dfcumulations2050['bottom5'] = dfcumulations2050['bottom4']+dfcumulations2050['silver']
dfcumulations2050['bottom6'] = dfcumulations2050['bottom5']+dfcumulations2050['encapsulant']
## Plot BARS Stuff
ind=np.arange(4)
width=0.35 # width of the bars.
p0 = a0[0,1].bar(ind, dfcumulations2050['glass'], width, color='c')
p1 = a0[0,1].bar(ind, dfcumulations2050['aluminium_frames'], width,
bottom=dfcumulations2050['bottom1'])
p2 = a0[0,1].bar(ind, dfcumulations2050['silicon'], width,
bottom=dfcumulations2050['bottom2'])
p3 = a0[0,1].bar(ind, dfcumulations2050['copper'], width,
bottom=dfcumulations2050['bottom3'])
p4 = a0[0,1].bar(ind, dfcumulations2050['silver'], width,
bottom=dfcumulations2050['bottom4'])
p5 = a0[0,1].bar(ind, dfcumulations2050['encapsulant'], width,
bottom=dfcumulations2050['bottom5'])
p6 = a0[0,1].bar(ind, dfcumulations2050['backsheet'], width,
bottom=dfcumulations2050['bottom6'])
a0[0,1].yaxis.set_label_position("right")
a0[0,1].yaxis.tick_right()
a0[0,1].set_ylabel('Cumulative Virgin Material Needs\n2020-2050 [Million Tonnes]')
a0[0,1].set_xlabel('Scenario')
print("Cumulative Virgin Needs by 2050 Million Tones by Scenario")
print(dfcumulations2050[materials].sum(axis=1))
plt.sca(a0[0,1])
plt.xticks(range(4), ['S1', 'S2', 'S3', 'S4'], color='black', rotation=0)
plt.tick_params(axis='y', which='minor', bottom=False)
#plt.yticks(minor=True)
a0[0,1].legend((p6[0], p5[0], p4[0], p3[0], p2[0], p1[0], p0[0] ), ('Backsheet', 'Encapsulant', 'Silver', 'Copper',
'Silicon','Aluminum','Glass'), loc='lower right', prop={'size': mylegendfont})
a0[0,1].minorticks_on()
#################################
# ROW 2
################################
# SCENARIO 1 ***************
keyw='WasteEOL_'
a0[1,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name1]/1000000, 'k', linestyle='dotted', linewidth=4, label='S1: PV ICE, ref')
a0[1,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name2]/1000000, 'c', linewidth=3, label='S2: PV ICE, h.e.')
a0[1,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name3]/1000000, 'g', linestyle='dashdot', linewidth=3, label='S3: IRENA, Early Loss, h.e.')
a0[1,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name4]/1000000, 'b--', linewidth=3, label='S4: IRENA, Regular Loss, h.e.')
a0[1,0].legend(prop={'size': mylegendfont})
a0[1,0].set_title('Yearly EoL Material by Scenario', fontsize=mytitlefont, weight='roman')
a0[1,0].set_ylabel('Module Mass [Million Tonnes]')
a0[1,0].set_xlim([2020, 2050])
a0[1,0].set_xlabel('Years')
a0[1,0].minorticks_on()
a0[0,0].text(-0.1, 1.05, 'b', transform=a0[1,0].transAxes, size=20, weight='bold')
########################
# SUBPLOT 2
########################
#######################
# Calculate
cumulations2050 = {}
for ii in range(0, len(materials)):
matcum = []
matcum.append(UScum[keyw+materials[ii]+'_'+name1].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name2].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name3].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name4].loc[2050])
cumulations2050[materials[ii]] = matcum
dfcumulations2050 = pd.DataFrame.from_dict(cumulations2050)
dfcumulations2050 = dfcumulations2050/1000000 # in Million Tonnes
dfcumulations2050['bottom1'] = dfcumulations2050['glass']
dfcumulations2050['bottom2'] = dfcumulations2050['bottom1']+dfcumulations2050['aluminium_frames']
dfcumulations2050['bottom3'] = dfcumulations2050['bottom2']+dfcumulations2050['silicon']
dfcumulations2050['bottom4'] = dfcumulations2050['bottom3']+dfcumulations2050['copper']
dfcumulations2050['bottom5'] = dfcumulations2050['bottom4']+dfcumulations2050['silver']
dfcumulations2050['bottom6'] = dfcumulations2050['bottom5']+dfcumulations2050['encapsulant']
## Plot BARS Stuff
ind=np.arange(4)
width=0.35 # width of the bars.
p0 = a0[1,1].bar(ind, dfcumulations2050['glass'], width, color='c')
p1 = a0[1,1].bar(ind, dfcumulations2050['aluminium_frames'], width,
bottom=dfcumulations2050['bottom1'])
p2 = a0[1,1].bar(ind, dfcumulations2050['silicon'], width,
bottom=dfcumulations2050['bottom2'])
p3 = a0[1,1].bar(ind, dfcumulations2050['copper'], width,
bottom=dfcumulations2050['bottom3'])
p4 = a0[1,1].bar(ind, dfcumulations2050['silver'], width,
bottom=dfcumulations2050['bottom4'])
p5 = a0[1,1].bar(ind, dfcumulations2050['encapsulant'], width,
bottom=dfcumulations2050['bottom5'])
p6 = a0[1,1].bar(ind, dfcumulations2050['backsheet'], width,
bottom=dfcumulations2050['bottom6'])
a0[1,1].yaxis.set_label_position("right")
a0[1,1].yaxis.tick_right()
a0[1,1].set_ylabel('Cumulative EoL Material\n2020-2050 [Million Tonnes]')
a0[1,1].set_xlabel('Scenario')
print("Cumulative Virgin Needs by 2050 Million Tones by Scenario")
print(dfcumulations2050[materials].sum(axis=1))
plt.sca(a0[1,1])
plt.xticks(range(4), ['S1', 'S2', 'S3', 'S4'], color='black', rotation=0)
plt.tick_params(axis='y', which='minor', bottom=False)
#plt.yticks(minor=True)
a0[1,1].legend((p6[0], p5[0], p4[0], p3[0], p2[0], p1[0], p0[0] ), ('Backsheet', 'Encapsulant', 'Silver', 'Copper',
'Silicon','Aluminum','Glass'), loc='upper left', prop={'size': mylegendfont})
a0[1,1].minorticks_on()
#################################
# ROW 3
################################
# SCENARIO 1 ***************
keyw='WasteMFG_'
a0[2,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name1]/1000000, 'k.', linestyle='dotted', linewidth=4, label='S1: PV ICE, ref')
a0[2,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name2]/1000000, 'c', linewidth=3, label='S2: PV ICE, h.e.')
a0[2,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name3]/1000000, 'g', linestyle='dashdot', linewidth=3, label='S3: IRENA, Early Loss, h.e.')
a0[2,0].plot(USyearly.index, USyearly[keyw+modulemat+'_'+name4]/1000000, 'b--', linewidth=3, label='S4: IRENA, Regular Loss, h.e.')
a0[2,0].legend(prop={'size': mylegendfont})
a0[2,0].set_title('Yearly Manufacturing Scrap by Scenario', fontsize=mytitlefont, weight='roman')
a0[2,0].set_ylabel('Module Mass [Million Tonnes]')
a0[2,0].set_xlim([2020, 2050])
a0[2,0].set_xlabel('Years')
a0[2,0].minorticks_on()
a0[0,0].text(-0.1, 1.05, 'c', transform=a0[2,0].transAxes, size=20, weight='bold')
########################
# SUBPLOT 2
########################
#######################
# Calculate
cumulations2050 = {}
for ii in range(0, len(materials)):
matcum = []
matcum.append(UScum[keyw+materials[ii]+'_'+name1].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name2].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name3].loc[2050])
matcum.append(UScum[keyw+materials[ii]+'_'+name4].loc[2050])
cumulations2050[materials[ii]] = matcum
dfcumulations2050 = pd.DataFrame.from_dict(cumulations2050)
dfcumulations2050 = dfcumulations2050/1000000 # in Million Tonnes
dfcumulations2050['bottom1'] = dfcumulations2050['glass']
dfcumulations2050['bottom2'] = dfcumulations2050['bottom1']+dfcumulations2050['aluminium_frames']
dfcumulations2050['bottom3'] = dfcumulations2050['bottom2']+dfcumulations2050['silicon']
dfcumulations2050['bottom4'] = dfcumulations2050['bottom3']+dfcumulations2050['copper']
dfcumulations2050['bottom5'] = dfcumulations2050['bottom4']+dfcumulations2050['silver']
dfcumulations2050['bottom6'] = dfcumulations2050['bottom5']+dfcumulations2050['encapsulant']
## Plot BARS Stuff
ind=np.arange(4)
width=0.35 # width of the bars.
p0 = a0[2,1].bar(ind, dfcumulations2050['glass'], width, color='c')
p1 = a0[2,1].bar(ind, dfcumulations2050['aluminium_frames'], width,
bottom=dfcumulations2050['bottom1'])
p2 = a0[2,1].bar(ind, dfcumulations2050['silicon'], width,
bottom=dfcumulations2050['bottom2'])
p3 = a0[2,1].bar(ind, dfcumulations2050['copper'], width,
bottom=dfcumulations2050['bottom3'])
p4 = a0[2,1].bar(ind, dfcumulations2050['silver'], width,
bottom=dfcumulations2050['bottom4'])
p5 = a0[2,1].bar(ind, dfcumulations2050['encapsulant'], width,
bottom=dfcumulations2050['bottom5'])
p6 = a0[2,1].bar(ind, dfcumulations2050['backsheet'], width,
bottom=dfcumulations2050['bottom6'])
a0[2,1].yaxis.set_label_position("right")
a0[2,1].yaxis.tick_right()
a0[2,1].set_ylabel('Cumulative Manufacturing Scrap\n2020-2050 [Million Tonnes]')
a0[2,1].set_xlabel('Scenario')
plt.sca(a0[2,1])
plt.xticks(range(4), ['S1', 'S2', 'S3', 'S4'], color='black', rotation=0)
plt.tick_params(axis='y', which='minor', bottom=False)
#plt.yticks(minor=True)
a0[2,1].legend((p6[0], p5[0], p4[0], p3[0], p2[0], p1[0], p0[0] ),
('Backsheet', 'Encapsulant', 'Silver', 'Copper', 'Silicon','Aluminum','Glass'), loc='lower right',
prop={'size': mylegendfont})
a0[2,1].minorticks_on()
f.tight_layout()
f.savefig(os.path.join(testfolder,'Fig 10 - Three-panels of Virgin Needs, EoL Material and MFG Waste.png'), dpi=600)
f.savefig(os.path.join(testfolder,'Fig 10 - Three-panels of Virgin Needs, EoL Material and MFG Waste.pdf'), dpi=600)
print("Cumulative Virgin Needs by 2050 Million Tones by Scenario")
print(dfcumulations2050[materials].sum(axis=1))
# # Abstract Values
# In[13]:
print("Percentage of Waste represented by Manufacturing")
print("Reference: ", UScum['WasteMFG_Module_PV_ICE_base_[Tonnes]'].loc[2050]*100/UScum['WasteAll_Module_PV_ICE_base_[Tonnes]'].loc[2050])
print("H.E.: ", UScum['WasteMFG_Module_PV_ICE_high_[Tonnes]'].loc[2050]*100/UScum['WasteAll_Module_PV_ICE_high_[Tonnes]'].loc[2050])
print("Waste in 2050 ref ",UScum['WasteAll_Module_PV_ICE_base_[Tonnes]'].loc[2050]/1e6, "h.e. : ",UScum['WasteAll_Module_PV_ICE_high_[Tonnes]'].loc[2050]/1e6 )
print("")
print("Installed Capacity 2050", round(USyearly['Capacity_PV_ICE_base_[MW]'].loc[2050]/1e6,1), 'h.e.', round(USyearly['Capacity_PV_ICE_high_[MW]'].loc[2050]/1e6,1))
# # TABLE 7: METRIC TONNES IN FIELD IN 2030
# In[14]:
names = ['PV_ICE_base', 'PV_ICE_high', 'Irena_EL_base', 'Irena_EL_high', 'Irena_RL_base', 'Irena_RL_high']
materials = ['Module', 'glass', 'encapsulant', 'backsheet', 'aluminium_frames', 'copper', 'silicon', 'silver']
# In[15]:
print("TABLE 7 - METRIC TONNES IN FIELD IN 2030")
tableapp=[]
for name in names:
colapp=[]
for mat in materials:
colapp.append(round((UScum.filter(regex='VirginStock_'+mat+'_'+name).loc[2030][0]-
UScum.filter(regex='WasteAll_'+mat+'_'+name).loc[2030][0])/1000,0)*1000)
tableapp.append(colapp)
df= pd.DataFrame(tableapp, columns = materials, index=names)
df = df.T
df
# In[16]:
print("Table 7 Effective Capacity PV ICE, Reference", round(USyearly['Capacity_PV_ICE_base_[MW]'].loc[2030]/1000,1))
print("Table 7 Effective Capacity PV ICE, Reference", round(USyearly['Capacity_PV_ICE_high_[MW]'].loc[2030]/1000,1))
# # Figure 12 Cumulative EOL MAterial, 2016, 2020, 2030, 2040, 2050
# In[17]:
names = ['Irena_EL_base', 'Irena_RL_base', 'PV_ICE_base']
# In[18]:
pd.options.display.float_format = '{:20,.2f}'.format
# In[19]:
print("Figure 12 - Cumulative EOL Material 2016, 2020, 2030, 240, 2050")
years = [2016, 2020, 2030, 2040, 2050]
tableapp=[]
for name in names:
colapp=[]
for year in years:
colapp.append(round(UScum.filter(regex='WasteEOL_Module_'+name).loc[year][0]/1000,0)*1000)
tableapp.append(colapp)
df= pd.DataFrame(tableapp, columns = years, index=names)
df = df.T
df
# In[20]:
df.insert(loc=0, column='Irena 2016 Early Loss', value=[24000, 85000, 1000000, 4000000, 10000000])
df.insert(loc=1, column='Irena 2016 Regular Loss', value=[6500, 13000, 170000, 1700000, 7500000])
df.insert(loc=2, column='CSA 2020 Early Loss', value=[0, 0, 1200000, 0, 0])
df.insert(loc=3, column='CSA 2020 Regular Loss', value=[0, 0, 214900, 0, 0])
# In[21]:
plt.rcParams.update({'font.size': 15})
plt.rcParams['figure.figsize'] = (10, 6)
my_colors=[(0.74609375, 0.5625, 0),
(0.99609375, 0.75, 0),
(0.09375, 0.9375, 0.91796875),
(0.71875, 0.9765625, 0.96875),
(0.0390625, 0.6015625, 0.58984375),
(0.35546875, 0.60546875, 0.83203125),
(0.61328125, 0.76171875, 0.8984375)]
my_colors=[(0.74609375, 0.5625, 0),
(0.99609375, 0.75, 0),
(0.796875, 0.97265625, 0),
(0, 0.7265625, 0),
(0, 0.640625, 0.73046875),
(0.02734375, 0.02734375, 0.73046875),
(0, 0, 0)]
ax = df.plot(kind='bar', edgecolor='white', linewidth=1, width=0.65, color=my_colors)# width=0.5)
# Some optiosn that Silvana liked: vlag_r, viridis, tab20b, tab10_r, rainbow_r, plasma, nipy_spectral_r
#ax = df.plot(kind='bar', edgecolor='white', linewidth=1, width=0.65, colormap='nipy_spectral_r') #color=my_colors)# width=0.5)
ax.set_yscale('log')
ax.grid(axis='y')
ax.set_axisbelow(b=True) # Set grid behind plots
ax.yaxis.set_major_formatter(ticker.FuncFormatter(lambda y,pos: ('{{:.{:1d}f}}'.format(int(np.maximum(-np.log10(y),0)))).format(y)))
ax.set_xticklabels(df.index, rotation = 0)
ax.set_ylabel('Cumulative EoL Materials [metric tons]')
# Shrink current axis's height by 10% on the bottom
box = ax.get_position()
ax.set_position([box.x0, box.y0 + box.height * 0.1,
box.width, box.height * 0.95])
ax.legend(['Irena 2016 Early Loss', 'Irena 2016 Regular Loss', 'CSA 2020 Early Loss', 'CSA 2020 Regular Loss',
'PV ICE + EF (ref), Early loss', 'PV ICE + EF (ref), Regular loss', 'PV ICE + EF (ref), PV ICE loss'],
loc='upper center', bbox_to_anchor=(0.5, 1.38), fancybox=True, shadow=True, ncol=2)
plt.show()
fig = ax.figure
fig.savefig(os.path.join(testfolder,'Fig 12 - Lit_and_PVICE_CumEOL_Comparison_PLOT.png'), dpi=600, bbox_inches='tight')
fig.savefig(os.path.join(testfolder,'Fig 12 - Lit_and_PVICE_CumEOL_Comparison_PLOT.pdf'), dpi=600, bbox_inches='tight')
# # Figure 11 Installed Capacity for all Scenarios
# In[22]:
names = ['PV_ICE_base', 'PV_ICE_high', 'Irena_EL_base', 'Irena_EL_high', 'Irena_RL_base', 'Irena_RL_high']
# In[23]:
print("Figure 11 Installed CApacity for all Scenarios")
years = [2030, 2050]
tableapp=[]
for name in names:
colapp=[]
for year in years:
colapp.append(USyearly['Capacity_'+name+'_[MW]'].loc[year])
tableapp.append(colapp)
df= pd.DataFrame(tableapp, columns = years, index=names)
df = df.T
df
# In[24]:
print("Improvement for PV ICE over Irena RL, ", round(df['PV_ICE_high'].loc[2050]*100/df['Irena_RL_high'].loc[2050]-100,1))
print("Improvement for PV ICE over Irena EL, ", round(df['PV_ICE_high'].loc[2050]*100/df['Irena_EL_high'].loc[2050]-100,1))
# In[25]:
df['PV_ICE_increase_high'] = df['PV_ICE_high']-df['PV_ICE_base']
df['Irena_EL_increase_high'] = df['Irena_EL_high']-df['Irena_EL_base']
df['Irena_RL_increase_high'] = df['Irena_RL_high']-df['Irena_RL_base']
df['Irena 2016'] = [240000, 512000]
df['CSA 2000'] = [437000, 0]
df['inc0'] = [0, 0]
# In[26]:
df
# In[27]:
plt.rcParams.update({'font.size': 15})
plt.rcParams['figure.figsize'] = (8, 7)
def plot_clustered_stacked(dfall, labels=None, title="multiple stacked bar plot", H="/", **kwargs):
"""Given a list of dataframes, with identical columns and index, create a clustered stacked bar plot.
labels is a list of the names of the dataframe, used for the legend
title is a string for the title of the plot
H is the hatch used for identification of the different dataframe"""
n_df = len(dfall)
n_col = len(dfall[0].columns)
n_ind = len(dfall[0].index)
axe = plt.subplot(111)
for df in dfall : # for each data frame
axe = df.plot(kind="bar",
linewidth=0,
stacked=True,
ax=axe,
legend=False,
grid=False,
colormap='Pastel2_r',
**kwargs) # make bar plots
h,l = axe.get_legend_handles_labels() # get the handles we want to modify
for i in range(0, n_df * n_col, n_col): # len(h) = n_col * n_df
for j, pa in enumerate(h[i:i+n_col]):
for rect in pa.patches: # for each index
rect.set_x(rect.get_x() + 1 / float(n_df + 1) * i / float(n_col))
rect.set_hatch(H * int(i / n_col)) #edited part
rect.set_width(1 / float(n_df + 1)-0.01)
axe.set_xticks((np.arange(0, 2 * n_ind, 2) + 1 / float(n_df + 1)) / 2.)
axe.set_xticklabels(df.index, rotation = 0)
axe.set_title(title)
# Add invisible data to add another legend
n=[]
for i in range(n_df):
n.append(axe.bar(0, 0, color="gray", hatch=H * i))
# l1 = axe.legend(h[:n_col], l[:n_col], loc=[1.01, 0.5])
l1 = axe.legend(h[:n_col], ['Reference', 'High Electrification'], loc='center left')
print(l[:n_col])
if labels is not None:
# print(labels)
# l2 = plt.legend(n, labels, loc=[1.01, 0.1])
l2 = plt.legend(n, labels, loc='upper left')#[1.01, 0.1])
axe.add_artist(l1)
axe.set_ylabel('Installed Capacity [GW]')
axe.grid(axis='y')
axe.set_axisbelow(b=True) # Set grid behind plots
fig = axe.figure
fig.savefig(os.path.join(testfolder,'Fig 11 - ClusterStack of Literature and Calculated Installed Capacity.png'), dpi=600)
fig.savefig(os.path.join(testfolder,'Fig 11 - ClusterStack of Literature and Calculated Installed Capacity.pdf'), dpi=600)
return axe
# create fake dataframes
df1 = df[['Irena_EL_base', 'Irena_EL_increase_high']]/1000
df2 = df[['Irena_RL_base', 'Irena_EL_increase_high']]/1000
df3 = df[['PV_ICE_base', 'PV_ICE_increase_high']]/1000
df4 = df[['Irena 2016', 'inc0']]/1000
df5 = df[['CSA 2000', 'inc0']]/1000
df6 = df[['inc0', 'inc0']]/1000
# Then, just call :
plot_clustered_stacked([df1, df2, df3, df4, df5, df6],["PV ICE, Early Loss", "PV ICE, Regular Loss", "PV ICE, PV ICE loss", "Irena 2016, Regular Loss", "CSA 2020"], title='')
# # Sensitivity Analysis
# In[28]:
MATERIAL = 'glass'
MODULEBASELINE = r'..\..\baselines\baseline_modules_US.csv'
MATERIALBASELINE = r'..\..\baselines\baseline_material_'+MATERIAL+'.csv'
# In[29]:
s1 = PV_ICE.Simulation(name='Simulation1', path=testfolder)
s1.createScenario(name='baseline', file=MODULEBASELINE)
s1.scenario['baseline'].addMaterial(MATERIAL, file=MATERIALBASELINE)
# #### Load Scenarios and Parameters
# In[30]:
ss = pd.read_excel(r'..\..\..\tests\sensitivity_test.xlsx')
# #### Create Scenarios
# In[31]:
for i in range (0, len(ss)):
stage = ss['stage'][i]
stage_highname = stage+'_high'
stage_lowname = stage+'_low'
if ss['Database'][i] == 'material':
if ss['Modification'][i] == 'single':
# Create Scenarios
s1.createScenario(name=stage_highname, file=MODULEBASELINE)
s1.scenario[stage_highname].addMaterial(MATERIAL, file=MATERIALBASELINE)
s1.createScenario(name=stage_lowname, file=MODULEBASELINE)
s1.scenario[stage_lowname].addMaterial(MATERIAL, file=MATERIALBASELINE)
# Modify Values Absolute
if ss['AbsRel'][i] == 'abs':
# Modify Values High
s1.scenario[stage_highname].material[MATERIAL].materialdata[ss['variables'][i]] = s1.scenario[stage_highname].material[MATERIAL].materialdata[ss['variables'][i]] + ss['High'][i]
s1.scenario[stage_highname].material[MATERIAL].materialdata[ss['variables'][i]][s1.scenario[stage_highname].material[MATERIAL].materialdata[ss['variables'][i]]>100.0] =100.0
# Modify Values Low
s1.scenario[stage_lowname].material[MATERIAL].materialdata[ss['variables'][i]] = s1.scenario[stage_lowname].material[MATERIAL].materialdata[ss['variables'][i]] + ss['Low'][i]
s1.scenario[stage_lowname].material[MATERIAL].materialdata[ss['variables'][i]][s1.scenario[stage_lowname].material[MATERIAL].materialdata[ss['variables'][i]]<0.0] = 0.0
# Modify Values Relative
if ss['AbsRel'][i] == 'rel':
# Modify Values High
high_change = 1+ss['High'][i]/100.0
low_change = 1+ss['Low'][i]/100.0
s1.scenario[stage_highname].material[MATERIAL].materialdata = PV_ICE.sens_StageImprovement(s1.scenario[stage_highname].material[MATERIAL].materialdata,
stage=ss['variables'][i], improvement=high_change, start_year=0)
# Modify Values Low
s1.scenario[stage_lowname].material[MATERIAL].materialdata = PV_ICE.sens_StageImprovement(s1.scenario[stage_lowname].material[MATERIAL].materialdata,
stage=ss['variables'][i], improvement=low_change, start_year=0)
# If multiple, assumed all modifications are ABSOLUTE
if ss['Modification'][i] == 'multiple':
varmods = [x.strip() for x in ss['variables'][i].split(',')]
# Create Scenarios
s1.createScenario(name=stage_highname, file=MODULEBASELINE)
s1.scenario[stage_highname].addMaterial(MATERIAL, file=MATERIALBASELINE)
s1.createScenario(name=stage_lowname, file=MODULEBASELINE)
s1.scenario[stage_lowname].addMaterial(MATERIAL, file=MATERIALBASELINE)
for j in range(0, len(varmods)):
# Modify Values High
s1.scenario[stage_highname].material[MATERIAL].materialdata[varmods[j]] = s1.scenario[stage_highname].material[MATERIAL].materialdata[varmods[j]] + ss['High'][i]
s1.scenario[stage_highname].material[MATERIAL].materialdata[varmods[j]][s1.scenario[stage_highname].material[MATERIAL].materialdata[varmods[j]]>100.0] =100.0
# Modify Values Low
s1.scenario[stage_lowname].material[MATERIAL].materialdata[varmods[j]] = s1.scenario[stage_lowname].material[MATERIAL].materialdata[varmods[j]] + ss['Low'][i]
s1.scenario[stage_lowname].material[MATERIAL].materialdata[varmods[j]][s1.scenario[stage_lowname].material[MATERIAL].materialdata[varmods[j]]<0.0] = 0.0
if ss['Database'][i] == 'module':
if ss['Modification'][i] == 'single':
# Create Scenarios
s1.createScenario(name=stage_highname, file=MODULEBASELINE)
s1.scenario[stage_highname].addMaterial(MATERIAL, file=MATERIALBASELINE)
s1.createScenario(name=stage_lowname, file=MODULEBASELINE)
s1.scenario[stage_lowname].addMaterial(MATERIAL, file=MATERIALBASELINE)
# Modify Values Absolute
if ss['AbsRel'][i] == 'abs':
s1.scenario[stage_highname].data[ss['variables'][i]] = s1.scenario[stage_highname].data[ss['variables'][i]] + ss['High'][i]
s1.scenario[stage_highname].data[ss['variables'][i]][s1.scenario[stage_highname].data[ss['variables'][i]]>100.0] =100.0
s1.scenario[stage_lowname].data[ss['variables'][i]] = s1.scenario[stage_lowname].data[ss['variables'][i]] + ss['Low'][i]
s1.scenario[stage_lowname].data[ss['variables'][i]][s1.scenario[stage_lowname].data[ss['variables'][i]]<0.0] = 0.0
# Modify Values Relative
if ss['AbsRel'][i] == 'rel':
high_change = 1+ss['High'][i]/100.0
low_change = 1+ss['Low'][i]/100.0
s1.scenario[stage_highname].data = PV_ICE.sens_StageImprovement(s1.scenario[stage_highname].data,
stage=ss['variables'][i], improvement=high_change, start_year=0)
s1.scenario[stage_lowname].data = PV_ICE.sens_StageImprovement(s1.scenario[stage_lowname].data,
stage=ss['variables'][i], improvement=low_change, start_year=0)
# If multiple, assumed all modifications are ABSOLUTE
if ss['Modification'][i] == 'multiple':
varmods = [x.strip() for x in ss['variables'][i].split(',')]
s1.createScenario(name=stage_highname, file=MODULEBASELINE)
s1.scenario[stage_highname].addMaterial(MATERIAL, file=MATERIALBASELINE)
s1.createScenario(name=stage_lowname, file=MODULEBASELINE)
s1.scenario[stage_lowname].addMaterial(MATERIAL, file=MATERIALBASELINE)
for j in range(0, len(varmods)):
s1.scenario[stage_highname].data[varmods[j]] = s1.scenario[stage_highname].data[varmods[j]] + ss['High'][i]
s1.scenario[stage_highname].data[varmods[j]][s1.scenario[stage_highname].data[varmods[j]]>100.0] =100.0
s1.scenario[stage_lowname].data[varmods[j]] = s1.scenario[stage_lowname].data[varmods[j]] + ss['Low'][i]
s1.scenario[stage_lowname].data[varmods[j]][s1.scenario[stage_lowname].data[varmods[j]]<0.0] = 0.0
# # MASS FLOWS
# In[32]:
s1.calculateMassFlow()
# #### Compile Changes
# In[33]:
s1.scenario
# In[34]:
scenarios = list(s1.scenario.keys())
# In[35]:
virginStock_Changes = []
waste_Changes = []
installedCapacity_Changes = []
virginStockRAW_Changes = []
virgin_keyword = 'mat_Virgin_Stock'
waste_keyword = 'mat_Total_Landfilled'
installs_keyword = 'Installed_Capacity_[W]'
viring_raw_keyword = 'mat_Virgin_Stock_Raw'
virginStock_baseline_cum2050 = s1.scenario['baseline'].material[MATERIAL].materialdata[virgin_keyword].sum()
virginStockRAW_baseline_cum2050 = s1.scenario['baseline'].material[MATERIAL].materialdata[viring_raw_keyword].sum()
# Installed Capacity is already cumulative so no need to sum or cumsum.
waste_baseline_cum2050 = s1.scenario['baseline'].material[MATERIAL].materialdata[waste_keyword].sum()
installedCapacity_baselined_2050 = s1.scenario['baseline'].data[installs_keyword].iloc[-1]
for i in range (1, len(scenarios)):
stage_name = scenarios[i]
virginStock_Changes.append(round(100*s1.scenario[stage_name].material[MATERIAL].materialdata[virgin_keyword].sum()/virginStock_baseline_cum2050,5)-100)
virginStockRAW_Changes.append(round(100*s1.scenario[stage_name].material[MATERIAL].materialdata[viring_raw_keyword].sum()/virginStockRAW_baseline_cum2050,5)-100)
waste_Changes.append(round(100*s1.scenario[stage_name].material[MATERIAL].materialdata[waste_keyword].sum()/waste_baseline_cum2050,5)-100)
installedCapacity_Changes.append(round(100*s1.scenario[stage_name].data[installs_keyword].iloc[-1]/installedCapacity_baselined_2050,5)-100)
# In[36]:
stages = scenarios[1::] # removing baseline as we want a dataframe with only changes
# In[37]:
df2 = pd.DataFrame(list(zip(virginStock_Changes, virginStockRAW_Changes, waste_Changes, installedCapacity_Changes)),
columns=['Virgin Needs Change', 'Virgin Stock Raw Change', 'Waste Change', 'InstalledCapacity Change'],index=stages)
# In[38]:
variables_description = {'mat_virgin_eff': "Material Virgin Efficiency",
'mat_massperm2': "Mass per m2",
'mat_MFG_eff': "Efficiency of Material Use during Module Manufacturing",
'mat_MFG_scrap_Recycled': "% of Material Scrap from Manufacturing that undergoes Recycling",
'mat_MFG_scrap_Recycling_eff': "Recycling Efficiency of the Material Scrap",
'mat_MFG_scrap_Recycling_eff': "% of Recycled Material Scrap that is high quality",
'mat_MFG_scrap_Recycled_into_HQ_Reused4MFG': "% of high quality Recycled Material Scrap reused for manufacturing",
'new_Installed_Capacity_[MW]': "New Installed Capacity",
'mod_eff': "Module Efficiency",
'mod_EOL_collection_eff': "Collection Efficiency of EoL Modules",
'mod_EOL_collected_recycled': "% of collected modules that are recycled",
'mod_Repowering': "% of EOL modules that are repowered",
'mod_Repairing' : "% of failed modules that undergo repair",
'mat_EOL_collected_Recycled': "% of times material is chosen to be recycled",
'mat_EOL_Recycling_eff': "Efficiency of material recycling",
'mat_EOL_Recycled_into_HQ': "Fraction of recycled material that is high quality",
'mat_EOL_RecycledHQ_Reused4MFG': "Fraction of high quality recycled material that is reused for manufacturing",
'EOL_CE_Pathways': "Overall improvement on EoL Circularity Pathways",
'Reliability_and_CE_Pathways': "Overall improvement on Eol Circularity Pathways + Reliability and Lifetime",
'mat_EOL_Recycling_Overall_Improvement': "Overall Improvement on EoL Recycling Loop"}
# In[39]:
df2_Pos = df2[['high' in s for s in df2.index]].copy()
df2_Pos.index = df2_Pos.index.str.replace("_high", "")
col_verbose = []
for i in range (0, len(df2_Pos)):
if df2_Pos.index[i] in variables_description:
col_verbose.append(variables_description[df2_Pos.index[i]])
else:
col_verbose.append("")
df2_Pos['Description'] = col_verbose
df2_Pos = df2_Pos.reset_index()
df2_Pos = df2_Pos.rename(columns={'index':'variable'})
df2_Pos
# In[40]:
df2_Neg = df2[['low' in s for s in df2.index]].copy()
df2_Neg.index = df2_Neg.index.str.replace("_low", "")
col_verbose = []
for i in range (0, len(df2_Neg)):
if df2_Neg.index[i] in variables_description:
col_verbose.append(variables_description[df2_Neg.index[i]])
else:
col_verbose.append("")
df2_Neg['Description'] = col_verbose
df2_Neg = df2_Neg.reset_index()
df2_Neg = df2_Neg.rename(columns={'index':'variable'})
df2_Neg
# #### Fancy Plot
# ## Figure 14 - The percent improvement (i.e., decrease) in lifecycle waste from varying the most impactful parameters affecting waste in the PV ICE tool. A decrease (larger bars to the left) in lifecycle waste is considered beneficial. The columns 10% indicate in what direction and magnitude the parameter, listed at the left, was varied
# In[41]:
posvals = [0,
df2_Pos.loc[df2_Pos['variable'] == 'Reliability_and_CE_Pathways']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'reliability']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_MFG_eff']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'new_Installed_Capacity_[MW]']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_massperm2']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_MFG_eff']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_eff']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'EOL_CE_Pathways']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_MFG_Scrap_Overall_Improvement']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_Repair']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_MFG_scrap_Recycling_eff']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_Reuse']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_MFG_scrap_Recycled']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_EOL_collection_eff']['Waste Change'].values[0]]
negvals = [0,
df2_Neg.loc[df2_Neg['variable'] == 'Reliability_and_CE_Pathways']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'reliability']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_MFG_eff']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'new_Installed_Capacity_[MW]']['Waste Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_massperm2']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_MFG_eff']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_eff']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'EOL_CE_Pathways']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_MFG_Scrap_Overall_Improvement']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_Repair']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_MFG_scrap_Recycling_eff']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_Reuse']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_MFG_scrap_Recycled']['Waste Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_EOL_collection_eff']['Waste Change'].values[0]]
desc=['Overall improvement in EoL Circularity Pathways\n+Reliability and Lifetime',
'Module Lifetime and Reliability',
'Module Manufacutring Efficiency/Yield',
'New Installed Capacity [MW]',
'Mass per $m^{2}$',
'Efficiency of Material Use\nduring Module Manufacturing',
'Module Efficiency',
'Overall improvement in EoL Circularity Pathways',
'Overall improvement in\nManufacturing Scrap Recycling Loop',
'Module Repair',
'Yield of the Material\nManufacturing Scrap Recycling Process',
'Module Reuse',
'Fraction of Material scrap from\nManufacturing that undergoes Recycling',
'Collection Efficiency of EoL Modules']
desc.reverse()
negvals.reverse()
posvals.reverse()
# In[43]:
sns.set(rc={'figure.figsize':(13.5,10)})
sns.set(font_scale=1.5) # crazy big
sns.set_style("ticks",{'axes.grid' : True})
sns.set_style("white")
## DATAFRAME DATA
df = pd.DataFrame()
df['input'] = ['I','II','III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'blank'] # Mock Placeholders for Ticks
df['+']=posvals
df['-']=negvals
#now stacking it
df2 = pd.melt(df, id_vars ='input', var_name='type of change', value_name='change in the output' )
fig, (ax1, ax, ax3) = plt.subplots(1,3, gridspec_kw={'width_ratios':[0.001,3.4, 0.001], 'wspace':0.4})
## Grid and Background Colors
ax.axvspan(-100, 0, facecolor=(0.8203125, 0.984375, 0.98046875), alpha=0.5)
ax.axvspan(0, 120, facecolor=(0.90234375, 0.89453125, 0.8984375), alpha=0.5)
ax.grid(axis=1)
for typ, df in zip(df2['type of change'].unique(),df2.groupby('type of change')):
ax.barh(df[1]['input'], df[1]['change in the output'], height=0.5, label=typ)
ax.set_xlim([-60, 100])
ax2 = ax.twinx()
## REPLOT to Add 2nd axis plot
for typ, df in zip(df2['type of change'].unique(),df2.groupby('type of change')):
ax2.barh(df[1]['input'], df[1]['change in the output'], height=0.8, label=typ)
## REAL TICK VALUES
ax.set_yticklabels( ['+10%','+10%','+10%', '-10%', '-10% rel', '+10%', '+10% rel', '+10%', '+10%', '+10%', '+10%', '+10%', '+10%', '+10%', ''])
ax2.set_yticklabels( ['-10%','-10%','-10%', '+10%', '+10% rel', '-10%', '-10% rel', '-10%', '-10%', '-10%', '-10%', '-10%', '-10%', '-10%', ''])
## FAKE EMPTY PLOT, same ticks
for typ, df in zip(df2['type of change'].unique(),df2.groupby('type of change')):
ax1.barh(df[1]['input'], df[1]['change in the output'], height=0.5, label=typ)
#ax1.yaxis.set_label_position("right")
#ax1.yaxis.tick_right()
## Verbose Tick Labels
ax1.set_yticklabels(desc);
## REMOVE Ticks from 'Helper Plots'
ax1.tick_params(axis='x', which='both', bottom=False, top=False, labelbottom=False)
ax.tick_params(axis='y', which='both', left=False, right=False)
ax2.tick_params(axis='y', which='both', left=False, right=False)
ax3.tick_params(axis='x', which='both', bottom=False, top=False, labelbottom=False)
ax3.tick_params(axis='y', which='both', left=False, right=False, labelleft=False)
ax.set_xlabel('% Change in Lifecycle Waste')
# ANNOTATE
ax.annotate('Decrease Waste', xy =(-40.2, 14.0), weight='bold', fontsize=17);
ax.annotate('Increase Waste', xy =(6, 14.0), weight='bold', fontsize=17);
ax.xaxis.grid()
#plt.tight_layout()
fig.savefig(os.path.join(testfolder,'Fig 14 - Sensitivity Analysis WASTE.png'), dpi=600, bbox_inches='tight')
fig.savefig(os.path.join(testfolder,'Fig 14 - Sensitivity Analysis WASTE.pdf'), dpi=600, bbox_inches='tight')
plt.show()
# # Figure 13
# In[45]:
posvals = [0,
df2_Neg.loc[df2_Neg['variable'] == 'new_Installed_Capacity_[MW]']['Virgin Needs Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_massperm2']['Virgin Needs Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_eff']['Virgin Needs Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_MFG_eff']['Virgin Needs Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mod_MFG_eff']['Virgin Needs Change'].values[0]]
negvals = [0,
df2_Pos.loc[df2_Pos['variable'] == 'new_Installed_Capacity_[MW]']['Virgin Needs Change'].values[0],
df2_Pos.loc[df2_Pos['variable'] == 'mat_massperm2']['Virgin Needs Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_eff']['Virgin Needs Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mat_MFG_eff']['Virgin Needs Change'].values[0],
df2_Neg.loc[df2_Neg['variable'] == 'mod_MFG_eff']['Virgin Needs Change'].values[0]]
desc=['New Installed Capacity [MW]',
'Mass per $m^{2}$',
'Module Efficiency',
'Efficiency of Material Use\nduring Module Manufacturing',
'Module Manufacutring Efficiency/Yield']
desc.reverse()
negvals.reverse()
posvals.reverse()
# In[46]:
#sns.set(rc={'figure.figsize':(13.5,10)})
sns.set(rc={'figure.figsize':(13.5,5)})
sns.set(font_scale=1.5) # crazy big
sns.set_style("ticks",{'axes.grid' : True})
sns.set_style("white")
## DATAFRAME DATA
df = pd.DataFrame()
df['input'] = ['I','II','III', 'IV', 'V', 'blank'] # Mock Placeholders for Ticks
df['+']=posvals
df['-']=negvals
#now stacking it
df2 = pd.melt(df, id_vars ='input', var_name='type of change', value_name='change in the output' )
#fig, (ax1, ax, ax3) = plt.subplots(1,3, gridspec_kw={'width_ratios':[0.001,3.4, 0.001], 'wspace':0.4})
fig, (ax1, ax, ax3) = plt.subplots(1,3, gridspec_kw={'width_ratios':[0.001,3, 0.001], 'wspace':0.4})
## Grid and Background Colors
ax.axvspan(-100, 0, facecolor=(0.8203125, 0.984375, 0.98046875), alpha=0.5)
ax.axvspan(0, 120, facecolor=(0.90234375, 0.89453125, 0.8984375), alpha=0.5)
ax.grid(axis=1)
for typ, df in zip(df2['type of change'].unique(),df2.groupby('type of change')):
ax.barh(df[1]['input'], df[1]['change in the output'], height=0.5, label=typ)
ax.set_xlim([-12, 12])
ax2 = ax.twinx()
## REPLOT to Add 2nd axis plot
for typ, df in zip(df2['type of change'].unique(),df2.groupby('type of change')):
ax2.barh(df[1]['input'], df[1]['change in the output'], height=0.8, label=typ)
## REAL TICK VALUES
ax.set_yticklabels( ['-10%','-10% rel','+10% rel', '+10%', '+10%',''])
ax2.set_yticklabels(['+10%','+10% rel','-10% rel', '-10%', '-10%',''])
## FAKE EMPTY PLOT, same ticks
for typ, df in zip(df2['type of change'].unique(),df2.groupby('type of change')):
ax1.barh(df[1]['input'], df[1]['change in the output'], height=0.5, label=typ)
#ax1.yaxis.set_label_position("right")
#ax1.yaxis.tick_right()
## Verbose Tick Labels
ax1.set_yticklabels(desc);
## REMOVE Ticks from 'Helper Plots'
ax1.tick_params(axis='x', which='both', bottom=False, top=False, labelbottom=False)
ax.tick_params(axis='y', which='both', left=False, right=False)
ax2.tick_params(axis='y', which='both', left=False, right=False)
ax3.tick_params(axis='x', which='both', bottom=False, top=False, labelbottom=False)
ax3.tick_params(axis='y', which='both', left=False, right=False, labelleft=False)
ax.set_xlabel('% Change in Lifecycle Waste')
# ANNOTATE
ax.annotate('Decrease Material Demand', xy =(-9.9, 4.7), weight='bold', fontsize=17);
ax.annotate('Increase Material Demand', xy =(1.1, 4.7), weight='bold', fontsize=17);
ax.xaxis.grid()
#plt.tight_layout()
fig.savefig(os.path.join(testfolder,'Fig 13 - Sensitivity Analysis VIRGIN NEEDS.png'), dpi=600, bbox_inches='tight')
fig.savefig(os.path.join(testfolder,'Fig 13 - Sensitivity Analysis VIRGIN NEEDS.pdf'), dpi=600, bbox_inches='tight')
plt.show()
# # Modifing the installed capacity to stay fixed at BASELINE
# Needs to run each year becuase it needs to calculate the acumulated installs and deads.
# In[ ]:
Diff_Installment = []
for i in range (0, len(s1.scenario['baseline'].data)):
for jj in range (1, len(list(s1.scenario.keys()))):
scen = list(s1.scenario.keys())[jj]
Diff_Installment = ( (s1.scenario['baseline'].data['Installed_Capacity_[W]'][i] -
s1.scenario[scen].data['Installed_Capacity_[W]'][i])/1000000 ) # MWATTS
s1.scenario[scen].data['new_Installed_Capacity_[MW]'][i] += Diff_Installment
s1.calculateMassFlow()data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzYAAAFSCAYAAAAgtUokAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzs3Xd8Tnf/x/FXJCKRIFKzVI22V5EgyCCRRJIaxa0pv7ZuYo/at621qxp7JdRoi6JuUavUKqqxCYrWXW3FitoxIlbG9ftDc+pqgtAQF+/n4+HxSM75nu/5fM8Vyfmc7zg2ZrPZjIiIiIiIiBXLkd0BiIiIiIiI/FNKbERERERExOopsREREREREaunxEZERERERKyeEhsREREREbF6SmxERERERMTqKbERERERERGrp8RGRERERESsnhIbERERERGxekpsRERERETE6imxERERERERq2eX3QGIiNzLzZs32b9/PwAVK1bEwcEhmyN6vly+fJmVK1dSpkwZcubMmd3hiMgzLCkpiSNHjlC/fn1cXFyyO5znxrP2d1aJjYg8tX766SeaN28OwPz586latWo2R/R8WblyJcOHD8/uMETkOdOsWbPsDuG58az9nVViIyJPrYIFC2b4tTwZpUuXBqD7wIGUMZmyvP6LFy/ywgsvZHm9T6Pnqa0AjrdvQ0pKdofxRDxPn+3jbOtvv/3G6DFjjN878mQ8a39nldiIyFPL1tY2w6/lybC3twegjMlExSpVsrz+06dPU7Ro0Syv92n0PLUVwOnmzecmsXmePtsn0da03zvyZDxrf2e1eICIiIiIiFg9JTYiIiIiImL1lNiIiIiIiIjVU2IjIiIiIiJWT4mN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S8AA/P398fX1JSIignfeeYcFCxYwYcIEZsyYYbT9pZdeMuafPIwqVarw1Vdfcf78eQICArC1tTXmOcGdBQ3ujiWzxowZQ0REBKmpqSQkJHDz5k3gzpyXtHfYlChR4oHtSbsej6pKlSr8/vvvbN68GW9vb27dumW8V+hR6m7ZsiVLly7lwoULNG3a1JjHVahQIWOo5P2ox0ZERETEStSqVYuJEyZQsWJFbG1tsbW1xcPDg/Hjx2dq6eQWzZszcOBAXnvtNcxmM46OjgQEBDBzxgyKFSsGQPdu3WjQoIEx9K1s2bJ8MmIEtra2JCYmcuDAAZydnZkxfTrvvfsuxYoV4/r16+TNm5dqPj5MnzbNePJeokQJPv/sMwICAnB2diYpKYnXXn2VoUOG8N577z1U29OSGRsbG6P+v6tcuTIjRoygZMmS2Nra4urqSseOHQkKCgIwejWqVKlC48aNcXFxwWw2GxP4Bw0aRJ8+fShTpgxJSUm4uLjQsGFD5s2bZzEHJbPq169Pr169ePHFF7GxsaFo0aJ8+OGHlC9f3iKeh3XlyhXOnj3LhQsXyJEjB25ubgwePJjJkydb9CRldXv+rm/fvrz99tvGnK/y5cszYcIE7OzsSExMzHBltPspUKAA8+fPp0aNGuTKlQtnZ2d69OhBiz+HMT6IjTkr+sBERB6DuLg4goODAdiwYQPFixfP5oieLzExMTRt2pTJc+dSsUqVLK8/M6shPSuep7YCFLG1JeEfPgm2Fs/TZ/s427pv3z7atW/P/PnzjVWz5PF71v7OqsdGRERERESsnhIbERERERGxekpsRERERETE6imxERERERERq6fERkRERERErJ4SGxERERERsXpKbERERERExOopsREREREREaunxEZERERERKyeEhsREREREbF6SmxERERERMTqKbERERERERGrp8RGRERERESsnhIbERERERGxekpsRERERETE6imxERERERERq6fERkRERERErJ4SGxERERERsXpKbERERERExOopsREREREREaunxEZERERERKyeEhsRERHJUskpKdkdgog8h5TYiIiISJa6cfNmdocgIs8hJTYiIiIiImL1lNiIiIiIiIjVU2IjIiIiIiJWT4mNiIiIiIhYPSU2IiIiIiJi9ZT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tkx/zR48GDo6uqiS5cuMDU1FbW9//77UCgUSEpKwqFDh9ClSxc4OTlhypQp8PLywvHjxzFixAgMHToUGzZswKZNm7B+/XqUl5fjX//6F1atWiV6UO3777+PTz/9FF9++SUCAwPRt29fLF68GL1790ZsbCyWLVuGdu3awc7ODrNnzxatxkbU3GkJjy7hQkRERE1CoVDg3r17Na6eNnr0aLRv3x7btm1TQ2aazdPTE1KpFF9//bW6UyGiJsQ5NkRERGqiUCgwbNgw0cpdAHDhwgVcvHgRNjY2aspMc6WlpSEnJ6dOQ8SIqGXhUDQiIiI10dPTg4eHB3bs2AEtLS1YWVnh9u3biImJQadOneo9B+h5lpCQgEOHDuF///sf+vXrh5dfflndKRFRE2NhQ0REpEahoaGwsLDAjz/+iPj4eLRr1w4vvvgi5syZgy5duqg7PY2ho6ODlJQUWFhYYMWKFfWeP0VEmo9zbIiIiIiISONxjg0REREREWk8FjZERERERKTxWNgQEREREZHGY2FDREREREQaj4UNERERERFpvP8D7Gy7blUPkLcAAAAASUVORK5CYII=
# #### Compile Changes
# In[ ]:
virginStock_Changes = []
waste_Changes = []
installedCapacity_Changes = []
virginStockRAW_Changes = []
virgin_keyword = 'mat_Virgin_Stock'
waste_keyword = 'mat_Total_Landfilled'
installs_keyword = 'Installed_Capacity_[W]'
viring_raw_keyword = 'mat_Virgin_Stock_Raw'
virginStock_baseline_cum2050 = s1.scenario['baseline'].material[MATERIAL].materialdata[virgin_keyword].sum()
virginStockRAW_baseline_cum2050 = s1.scenario['baseline'].material[MATERIAL].materialdata[viring_raw_keyword].sum()
# Installed Capacity is already cumulative so no need to sum or cumsum.
waste_baseline_cum2050 = s1.scenario['baseline'].material[MATERIAL].materialdata[waste_keyword].sum()
installedCapacity_baselined_2050 = s1.scenario['baseline'].data[installs_keyword].iloc[-1]
for i in range (1, len(scenarios)):
stage_name = scenarios[i]
virginStock_Changes.append(round(100*s1.scenario[stage_name].material[MATERIAL].materialdata[virgin_keyword].sum()/virginStock_baseline_cum2050,5)-100)
virginStockRAW_Changes.append(round(100*s1.scenario[stage_name].material[MATERIAL].materialdata[viring_raw_keyword].sum()/virginStockRAW_baseline_cum2050,5)-100)
waste_Changes.append(round(100*s1.scenario[stage_name].material[MATERIAL].materialdata[waste_keyword].sum()/waste_baseline_cum2050,5)-100)
installedCapacity_Changes.append(round(100*s1.scenario[stage_name].data[installs_keyword].iloc[-1]/installedCapacity_baselined_2050,5)-100)
# In[ ]:
stages = scenarios[1::] # removing baseline as we want a dataframe with only changes
# In[ ]:
df = pd.DataFrame(list(zip(virginStock_Changes, virginStockRAW_Changes, waste_Changes, installedCapacity_Changes)),
columns=['Virgin Needs Change', 'Virgin Stock Raw Change', 'Waste Change', 'InstalledCapacity Change'],index=stages)
# #### Present Results
# In[ ]:
df_Pos = df[['high' in s for s in df.index]].copy()
df_Pos.index = df_Pos.index.str.replace("_high", "")
col_verbose = []
for i in range (0, len(df_Pos)):
if df_Pos.index[i] in variables_description:
col_verbose.append(variables_description[df_Pos.index[i]])
else:
col_verbose.append("")
df_Pos['Description'] = col_verbose
df_Pos = df_Pos.reset_index()
df_Pos = df_Pos.rename(columns={'index':'variable'})
# In[ ]:
df_Neg = df[['low' in s for s in df.index]].copy()
df_Neg.index = df_Neg.index.str.replace("_low", "")
col_verbose = []
for i in range (0, len(df_Neg)):
if df_Neg.index[i] in variables_description:
col_verbose.append(variables_description[df_Neg.index[i]])
else:
col_verbose.append("")
df_Neg['Description'] = col_verbose
df_Neg = df_Neg.reset_index()
df_Neg = df_Neg.rename(columns={'index':'variable'})
# In[ ]:
print("Keeping Installs, the modifications to Virgin Needs, Virgin STock and Waste")
df_Pos
# In[ ]:
print("Keeping Installs, the modifications to Virgin Needs, Virgin STock and Waste")
df_Neg
# In[ ]:
fooPosDemand=df_Pos[['Virgin Needs Change']]
fooPosDemand.set_index(df_Pos['variable'], inplace=True)
fooPosDemand=fooPosDemand.loc[['new_Installed_Capacity_[MW]', 'mat_massperm2', 'mod_eff',
'mod_MFG_eff', 'mat_MFG_Scrap_Overall_Improvement']]
fooNegDemand=df_Neg[['Virgin Needs Change']]
fooNegDemand.set_index(df_Neg['variable'], inplace=True)
fooNegDemand=fooNegDemand.loc[['new_Installed_Capacity_[MW]', 'mat_massperm2', 'mod_eff',
'mod_MFG_eff', 'mat_MFG_Scrap_Overall_Improvement']]
# In[ ]:
# In[ ]:
| 79.789434
| 55,556
| 0.830119
| 8,518
| 105,721
| 10.191829
| 0.267199
| 0.008409
| 0.009676
| 0.006266
| 0.290299
| 0.277444
| 0.262181
| 0.252747
| 0.242346
| 0.236367
| 0
| 0.123864
| 0.066061
| 105,721
| 1,324
| 55,557
| 79.849698
| 0.75538
| 0.037514
| 0
| 0.388889
| 0
| 0
| 0.115515
| 0.021403
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0.011111
| null | null | 0.031944
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
043606c713aab96541fd076e75cf260341e0434a
| 22
|
py
|
Python
|
vidstab/version.py
|
LS11111/video
|
8334d27d6409c8b2a35bdcff8aa2aa336034f102
|
[
"MIT"
] | 676
|
2015-01-01T03:56:14.000Z
|
2022-03-31T18:20:47.000Z
|
vidstab/version.py
|
LS11111/video
|
8334d27d6409c8b2a35bdcff8aa2aa336034f102
|
[
"MIT"
] | 331
|
2015-01-02T19:31:30.000Z
|
2022-03-19T03:24:29.000Z
|
vidstab/version.py
|
LS11111/video
|
8334d27d6409c8b2a35bdcff8aa2aa336034f102
|
[
"MIT"
] | 196
|
2015-01-02T20:48:12.000Z
|
2022-03-13T06:48:19.000Z
|
__version__ = '1.7.4'
| 11
| 21
| 0.636364
| 4
| 22
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.136364
| 22
| 1
| 22
| 22
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
04414dfca273b24c69f6cd376383e131fafe5e4e
| 8,025
|
py
|
Python
|
pyds8k/client/ds8k/v1/sc_client.py
|
Bhaskers-Blu-Org1/pyds8k
|
cef516f40a662efd85aa5a8a5b52ab94bb4780af
|
[
"Apache-2.0"
] | 7
|
2020-04-16T11:20:02.000Z
|
2021-04-21T13:39:14.000Z
|
pyds8k/client/ds8k/v1/sc_client.py
|
Bhaskers-Blu-Org1/pyds8k
|
cef516f40a662efd85aa5a8a5b52ab94bb4780af
|
[
"Apache-2.0"
] | 1
|
2020-07-15T02:56:56.000Z
|
2020-08-03T17:16:53.000Z
|
pyds8k/client/ds8k/v1/sc_client.py
|
IBM/pyds8k
|
fb58f270e1ca8377ae0877a1f351cc222a937b49
|
[
"Apache-2.0"
] | 6
|
2020-01-03T05:54:26.000Z
|
2022-03-31T09:42:27.000Z
|
##############################################################################
# Copyright 2019 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################
from .client import Client
from pyds8k.utils import dictionarize
from pyds8k.exceptions import NotFound
from logging import getLogger
from pyds8k import PYDS8K_DEFAULT_LOGGER
logger = getLogger(PYDS8K_DEFAULT_LOGGER)
class SCClient(object):
"""
SC side client. Used to interaction with current side client.
!--important: the id field of all resources are case insensitive--!
"""
def __init__(self, service_address, user, password,
port=None,
hostname='',
):
self.client = Client(service_address, user, password,
port=port,
hostname=hostname,
)
@dictionarize
def get_system(self):
return self.client.get_system()
@dictionarize
def get_volume(self, volume_id):
return self.client.get_volumes(volume_id)
@dictionarize
def get_host(self, host_name):
return self.client.get_hosts(host_name)
@dictionarize
def get_extentpool(self, pool_id):
pool = self.client.get_pools(pool_id)
try:
# lazy-loading
eserep = pool.eserep[0]
pool.representation['eserep'] = eserep.representation
except AttributeError:
pass
return pool
@dictionarize
def list_extentpools(self):
"""
return extent pool list without ese capacity info.
"""
return self.client.get_pools()
@dictionarize
def list_hosts(self):
return self.client.get_hosts()
@dictionarize
def list_extentpool_volumes(self, pool_id):
# two requests
# pool = self.client.get_pools(pool_id)
# return pool.volumes
# one request
return self.client.get_volumes_by_pool(pool_id)
@dictionarize
def list_extentpool_virtualpool(self, pool_id):
return self.client.get_eserep_by_pool(pool_id)
@dictionarize
def list_flashcopies(self):
return self.client.get_flashcopies()
@dictionarize
def list_cs_flashcopies(self):
return self.client.get_cs_flashcopies()
@dictionarize
def list_volume_flashcopies(self, volume_id):
# two requests
# volume = self.client.get_volumes(volume_id)
# return volume.flashcopy
# one request
return self.client.get_flashcopies_by_volume(volume_id)
@dictionarize
def list_remotecopies(self):
return self.client.get_cs_pprcs()
@dictionarize
def list_volume_remotecopies(self, volume_id):
return self.client.get_pprc_by_volume(volume_id)
@dictionarize
def get_remotecopy(self, rc_id):
return self.client.get_cs_pprcs(rc_id)
@dictionarize
def list_logical_subsystems(self):
return self.client.get_lss()
@dictionarize
def list_lss_volumes(self, lss_number):
return self.client.get_volumes_by_lss(lss_number)
@dictionarize
def list_fcports(self):
return self.client.get_ioports()
def list_ioenclosures(self):
pass
def get_client_descriptor(self):
pass
def list_known_wwpns(self):
pass
def get_used_lun_numbers_by_host(self, host_name):
mappings = self.client.get_mappings_by_host(host_name)
return [mapping.id for mapping in mappings]
def create_volumes(self, pool_id, capacity_in_GiB, sam,
volume_names_list):
return self.client.create_volumes(name_col=volume_names_list,
cap=capacity_in_GiB,
pool=pool_id,
tp=sam)
def rename_volume(self, volume_id, new_name):
return self.client.update_volume_rename(volume_id=volume_id,
new_name=new_name)
def extend_volume(self, volume_id, new_size_in_GiB):
return self.client.update_volume_extend(volume_id=volume_id,
new_size=new_size_in_GiB,
captype='gib')
def delete_volume(self, volume_id):
# remember to unmap all hosts before delete.
return self.client.delete_volume(volume_id=volume_id)
def relocate_volume(self, volume_id, new_pool_id):
return self.client.update_volume_move(volume_id=volume_id,
new_pool=new_pool_id)
def create_extentpool_virtualpool(self):
pass
def remove_extentpool_virtualpool(self):
pass
def crate_host(self, host_name, wwpn, host_type='VMware'):
hosts = self.client.create_host(host_name=host_name,
hosttype=host_type
)
self.attach_hostport_to_host(host_name=hosts[0].id, wwpn=wwpn)
return hosts[0].id
def delete_host(self, host_name):
# delete a host will delete all the attached host ports.
return self.client.delete_host(host_name=host_name)
def attach_hostport_to_host(self, host_name, wwpn):
return self._get_attach_or_create_host_port(host_name=host_name,
wwpn=wwpn
)
def detach_hostport_from_host(self, wwpn):
return self.client.delete_host_port(port_id=wwpn)
def map_volume_to_host(self, host_name, volume_id, lunid):
return self.client.map_volume_to_host(host_name=host_name,
volume_id=volume_id,
lunid=lunid
)
def unmap_volume_from_host(self, host_name, lunid):
return self.client.unmap_volume_from_host(host_name=host_name,
lunid=lunid
)
def _get_attach_or_create_host_port(self, host_name, wwpn):
try:
host_port = self.client.get_host_port(port_id=wwpn)
return self.client.update_host_port_change_host(
port_id=host_port.id,
host_name=host_name
)
except NotFound:
logger.debug(
'host port {} is not found, creating new...'.format(wwpn)
)
return self.client.create_host_port(port_id=wwpn,
host_name=host_name
)
# APIs below are deprecated.
# def list_cached_systems(self):
# pass
def list_volume_groups(self):
pass
def get_volume_group(self):
pass
def attach_volume_group(self):
pass
def detach_volume_group(self):
pass
def add_volumes_to_volgrp(self):
pass
def remove_volume_from_volgrp(self):
pass
def create_volume_group(self):
pass
def remove_volume_group(self):
pass
def list_scsi_host_ports(self):
pass
def get_scsi_host_port(self):
pass
def remove_scsi_host_port(self):
pass
def create_scsi_host_port(self):
pass
| 31.104651
| 78
| 0.592897
| 930
| 8,025
| 4.829032
| 0.215054
| 0.075707
| 0.096192
| 0.067691
| 0.3389
| 0.133601
| 0.04008
| 0
| 0
| 0
| 0
| 0.002933
| 0.320125
| 8,025
| 257
| 79
| 31.225681
| 0.820198
| 0.13433
| 0
| 0.25
| 0
| 0
| 0.00848
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.292683
| false
| 0.121951
| 0.030488
| 0.152439
| 0.518293
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
044af30927aecb4f321234c8b5ced381fe26d1fd
| 592
|
py
|
Python
|
alpyro_msgs/std_msgs/int8multiarray.py
|
rho2/alpyro_msgs
|
b5a680976c40c83df70d61bb2db1de32a1cde8d3
|
[
"MIT"
] | 1
|
2020-12-13T13:07:10.000Z
|
2020-12-13T13:07:10.000Z
|
alpyro_msgs/std_msgs/int8multiarray.py
|
rho2/alpyro_msgs
|
b5a680976c40c83df70d61bb2db1de32a1cde8d3
|
[
"MIT"
] | null | null | null |
alpyro_msgs/std_msgs/int8multiarray.py
|
rho2/alpyro_msgs
|
b5a680976c40c83df70d61bb2db1de32a1cde8d3
|
[
"MIT"
] | null | null | null |
from typing import List
from typing_extensions import Annotated
from alpyro_msgs import RosMessage, int8
from alpyro_msgs.std_msgs.multiarraylayout import MultiArrayLayout
class Int8MultiArray(RosMessage):
__msg_typ__ = "std_msgs/Int8MultiArray"
__msg_def__ = "c3RkX21zZ3MvTXVsdGlBcnJheUxheW91dCBsYXlvdXQKICBzdGRfbXNncy9NdWx0aUFycmF5RGltZW5zaW9uW10gZGltCiAgICBzdHJpbmcgbGFiZWwKICAgIHVpbnQzMiBzaXplCiAgICB1aW50MzIgc3RyaWRlCiAgdWludDMyIGRhdGFfb2Zmc2V0CmludDhbXSBkYXRhCgo="
__md5_sum__ = "d7c1af35a1b4781bbe79e03dd94b7c13"
layout: MultiArrayLayout
data: Annotated[List[int8], 0, 0]
| 42.285714
| 226
| 0.878378
| 45
| 592
| 11.111111
| 0.533333
| 0.04
| 0.056
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082569
| 0.079392
| 592
| 13
| 227
| 45.538462
| 0.834862
| 0
| 0
| 0
| 0
| 0
| 0.444257
| 0.444257
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f08acd2d80528bedda51692fec7165d0c88c39f5
| 68
|
py
|
Python
|
orchestra/contrib/webapps/__init__.py
|
RubenPX/django-orchestra
|
5ab4779e1ae12ec99569d682601b7810587ed381
|
[
"Unlicense"
] | 68
|
2015-02-09T10:28:44.000Z
|
2022-03-12T11:08:36.000Z
|
orchestra/contrib/webapps/__init__.py
|
RubenPX/django-orchestra
|
5ab4779e1ae12ec99569d682601b7810587ed381
|
[
"Unlicense"
] | 17
|
2015-05-01T18:10:03.000Z
|
2021-03-19T21:52:55.000Z
|
orchestra/contrib/webapps/__init__.py
|
RubenPX/django-orchestra
|
5ab4779e1ae12ec99569d682601b7810587ed381
|
[
"Unlicense"
] | 29
|
2015-03-31T04:51:03.000Z
|
2022-02-17T02:58:50.000Z
|
default_app_config = 'orchestra.contrib.webapps.apps.WebAppsConfig'
| 34
| 67
| 0.852941
| 8
| 68
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044118
| 68
| 1
| 68
| 68
| 0.861538
| 0
| 0
| 0
| 0
| 0
| 0.647059
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f091b8cb4430a83eb60522503a29c50f685c9fa6
| 770
|
py
|
Python
|
rental/models.py
|
talhaibnmahmud/Sysrem-Development-Dackend
|
fdbd231d6f4dd78518a2d100277a0d642139ccf2
|
[
"MIT"
] | null | null | null |
rental/models.py
|
talhaibnmahmud/Sysrem-Development-Dackend
|
fdbd231d6f4dd78518a2d100277a0d642139ccf2
|
[
"MIT"
] | 3
|
2022-01-13T03:39:01.000Z
|
2022-03-12T00:54:51.000Z
|
rental/models.py
|
talhaibnmahmud/System-Development-Backend
|
fdbd231d6f4dd78518a2d100277a0d642139ccf2
|
[
"MIT"
] | null | null | null |
from django.db import models
# Create your models here.
class Division(models.Model):
name = models.CharField(null=False, blank=False, max_length=10)
latitude = models.FloatField(null=True, blank=True)
longitude = models.FloatField(null=True, blank=True)
def __str__(self):
return self.name
def get_districts(self):
return self.district_set.all()
class District(models.Model):
name = models.CharField(null=False, blank=False, max_length=15)
division = models.ForeignKey(Division, on_delete=models.SET_NULL, null=True, editable=False)
latitude = models.FloatField(null=True, blank=True)
longitude = models.FloatField(null=True, blank=True)
def __str__(self):
return self.name
| 30.8
| 97
| 0.694805
| 99
| 770
| 5.262626
| 0.373737
| 0.076775
| 0.153551
| 0.184261
| 0.633397
| 0.633397
| 0.633397
| 0.633397
| 0.633397
| 0.633397
| 0
| 0.006472
| 0.197403
| 770
| 24
| 98
| 32.083333
| 0.83657
| 0.031169
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1875
| false
| 0
| 0.0625
| 0.1875
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
f0cc7787ffb816b287b459c43b137a3b671f2fcb
| 276
|
py
|
Python
|
controller/window/dummy_window.py
|
ssshooter/gbf-autopilot
|
ec4d21539813309f4391e4275bcd91a7d4faf87f
|
[
"MIT"
] | null | null | null |
controller/window/dummy_window.py
|
ssshooter/gbf-autopilot
|
ec4d21539813309f4391e4275bcd91a7d4faf87f
|
[
"MIT"
] | null | null | null |
controller/window/dummy_window.py
|
ssshooter/gbf-autopilot
|
ec4d21539813309f4391e4275bcd91a7d4faf87f
|
[
"MIT"
] | null | null | null |
from .abstract_window import AbstractWindow
class DummyWindow(AbstractWindow):
def get_outer_window_rect(self):
return (0, 0, 800, 600)
def key_press(self, key):
return True
def escape_listener(self, callback):
# do nothing
pass
| 21.230769
| 43
| 0.663043
| 34
| 276
| 5.205882
| 0.735294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039216
| 0.26087
| 276
| 12
| 44
| 23
| 0.828431
| 0.036232
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0.125
| 0.125
| 0.25
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
f0e2d6281e530b9de9d743eacfb0d719dae5191d
| 81
|
py
|
Python
|
path/images_path.py
|
Hupengyu/Paddle_learning
|
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
|
[
"Apache-2.0"
] | 1
|
2021-08-02T01:51:35.000Z
|
2021-08-02T01:51:35.000Z
|
path/images_path.py
|
Hupengyu/Paddle_learning
|
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
|
[
"Apache-2.0"
] | 1
|
2021-11-03T08:58:30.000Z
|
2021-11-03T08:58:30.000Z
|
path/images_path.py
|
Hupengyu/Paddle_learning
|
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
|
[
"Apache-2.0"
] | null | null | null |
import os
img_base_path = 'imgs'
files = os.listdir(img_base_path)
print(files)
| 13.5
| 33
| 0.765432
| 14
| 81
| 4.142857
| 0.642857
| 0.241379
| 0.37931
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123457
| 81
| 6
| 34
| 13.5
| 0.816901
| 0
| 0
| 0
| 0
| 0
| 0.04878
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.25
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9bc532f63cbfeaa528e124c76cd1f038dff05cca
| 13,978
|
py
|
Python
|
SUAVE/SUAVE-2.5.0/regression/scripts/multifidelity/optimize_mf.py
|
Vinicius-Tanigawa/Undergraduate-Research-Project
|
e92372f07882484b127d7affe305eeec2238b8a9
|
[
"MIT"
] | null | null | null |
SUAVE/SUAVE-2.5.0/regression/scripts/multifidelity/optimize_mf.py
|
Vinicius-Tanigawa/Undergraduate-Research-Project
|
e92372f07882484b127d7affe305eeec2238b8a9
|
[
"MIT"
] | null | null | null |
SUAVE/SUAVE-2.5.0/regression/scripts/multifidelity/optimize_mf.py
|
Vinicius-Tanigawa/Undergraduate-Research-Project
|
e92372f07882484b127d7affe305eeec2238b8a9
|
[
"MIT"
] | null | null | null |
# Optimize.py
# Created: Feb 2016, M. Vegh
# Modified: Nov 2016, T. MacDonald
# Oct 2019, T. MacDonald
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import SUAVE
from SUAVE.Core import Units, Data
import numpy as np
import vehicle_mf
import procedure_mf
import matplotlib.pyplot as plt
from SUAVE.Optimization import Nexus, carpet_plot
from SUAVE.Optimization.Package_Setups.additive_setup import Additive_Solver
import SUAVE.Optimization.Package_Setups.TRMM.Trust_Region_Optimization as tro
from SUAVE.Optimization.Package_Setups.TRMM.Trust_Region import Trust_Region
import os
# ----------------------------------------------------------------------
# Run the whole thing
# ----------------------------------------------------------------------
def main():
np.random.seed(0)
problem = setup()
tol = 1e-8
def set_add_solver():
solver = Additive_Solver()
solver.local_optimizer = 'SLSQP'
solver.global_optimizer = 'SHGO'
return solver
################### Basic Additive ##################################################
# ------------------------------------------------------------------
# Inactive constraints
# ------------------------------------------------------------------
solver = set_add_solver()
problem.optimization_problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', -50., 1., 1*Units.less],
],dtype=object)
print('Checking basic additive with no active constraints...')
outputs = solver.Additive_Solve(problem,max_iterations=10,num_samples=20,tolerance=1e-8,print_output=False)
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj, 0, atol=1e-6) )
assert( np.isclose(x1 ,-.1, atol=1e-2) )
assert( np.isclose(x2 , 0, atol=1e-2) )
# ------------------------------------------------------------------
# Active constraint
# ------------------------------------------------------------------
solver = set_add_solver()
problem.optimization_problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', 1., 1., 1*Units.less],
],dtype=object)
print('Checking basic additive with one active constraint...')
outputs = solver.Additive_Solve(problem,max_iterations=1000,num_samples=20,tolerance=1e-8,print_output=False)
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj, 1, atol=1e-6) )
assert( np.isclose(x1 ,-.1, atol=1e-2) )
assert( np.isclose(x2 , 1, atol=1e-2) )
# ------------------------------------------------------------------
# Other active constraints
# ------------------------------------------------------------------
solver = set_add_solver()
problem.optimization_problem.constraints = np.array([
[ 'x1' , '=', 2., 1., 1*Units.less],
[ 'x2' , '<', -1., 1., 1*Units.less],
],dtype=object)
print('Checking basic additive with two active constraints...')
outputs = solver.Additive_Solve(problem,max_iterations=1000,num_samples=20,tolerance=1e-8,print_output=False)
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj,5.41, atol=1e-6) )
assert( np.isclose(x1 , 2, atol=1e-2) )
assert( np.isclose(x2 , -1, atol=1e-2) )
################# Additive MEI ##################################################
# ------------------------------------------------------------------
# Inactive constraints
# ------------------------------------------------------------------
solver = set_add_solver()
problem.optimization_problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', -50., 1., 1*Units.less],
],dtype=object)
print('Checking MEI additive with no active constraint...')
outputs = solver.Additive_Solve(problem,max_iterations=10,num_samples=20,tolerance=tol,print_output=False,opt_type='MEI')
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj, 0, atol=1e-6) )
assert( np.isclose(x1 ,-.1, atol=1e-2) )
assert( np.isclose(x2 , 0, atol=1e-2) )
# ------------------------------------------------------------------
# Active constraint
# ------------------------------------------------------------------
solver = set_add_solver()
problem.optimization_problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', 1., 1., 1*Units.less],
],dtype=object)
print('Checking MEI additive with one active constraint...')
outputs = solver.Additive_Solve(problem,max_iterations=10,num_samples=20,tolerance=tol,print_output=False,opt_type='MEI')
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj, 1, atol=1e-4) ) # optimizer does not reach exactly optimum here
assert( np.isclose(x1 ,-.1, atol=1e-2) )
assert( np.isclose(x2 , 1, atol=1e-2) )
#------------------------------------------------------------------
# Other active constraints
#------------------------------------------------------------------
solver = set_add_solver()
problem.optimization_problem.constraints = np.array([
[ 'x1' , '=', 2., 1., 1*Units.less],
[ 'x2' , '<', -1., 1., 1*Units.less],
],dtype=object)
print('Checking MEI additive with two active constraints...')
outputs = solver.Additive_Solve(problem,max_iterations=10,num_samples=20,tolerance=tol,print_output=False,opt_type='MEI')
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj,5.41, atol=1e-6) )
assert( np.isclose(x1 , 2, atol=1e-6) )
assert( np.isclose(x2 , -1, atol=1e-6) )
################# TRMM ##################################################
tr_optimizer = 'SLSQP'
# ------------------------------------------------------------------
# Inactive constraints
# ------------------------------------------------------------------
problem.optimization_problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', -50., 1., 1*Units.less],
],dtype=object)
tr = Trust_Region()
problem.trust_region = tr
TRM_opt = tro.Trust_Region_Optimization()
TRM_opt.trust_region_max_iterations = 20
TRM_opt.optimizer = tr_optimizer
print('Checking TRMM with no active constraints...')
outputs = TRM_opt.optimize(problem,print_output=False)
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj, 0, atol=1e-6) )
assert( np.isclose(x1 ,-.1, atol=1e-2) )
assert( np.isclose(x2 , 0, atol=1e-2) )
# ------------------------------------------------------------------
# Active constraint
# ------------------------------------------------------------------
problem.optimization_problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', 1., 1., 1*Units.less],
],dtype=object)
tr = Trust_Region()
problem.trust_region = tr
TRM_opt = tro.Trust_Region_Optimization()
TRM_opt.trust_region_max_iterations = 20
TRM_opt.optimizer = tr_optimizer
print('Checking TRMM with one active constraint...')
outputs = TRM_opt.optimize(problem,print_output=False)
print(outputs)
obj,x1,x2 = get_results(outputs)
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj, 1, atol=1e-6) )
assert( np.isclose(x1 ,-.1, atol=1e-2) )
assert( np.isclose(x2 , 1, atol=1e-2) )
# ------------------------------------------------------------------
# Other constraints
# ------------------------------------------------------------------
problem.optimization_problem.constraints = np.array([
[ 'x1' , '=', 2., 1., 1*Units.less],
[ 'x2' , '<', -1., 1., 1*Units.less],
],dtype=object)
tr = Trust_Region()
problem.trust_region = tr
TRM_opt = tro.Trust_Region_Optimization()
TRM_opt.trust_region_max_iterations = 20
TRM_opt.optimizer = tr_optimizer
print('Checking TRMM with active constraints...')
outputs = TRM_opt.optimize(problem,print_output=False)
print(outputs)
obj,x1,x2 = get_results(outputs)
# removes files from folder after regression is completed
os.remove("add_hist.txt")
os.remove("TRM_hist.txt")
# ------------------------------------------------------------------
# Check Results
# ------------------------------------------------------------------
assert( np.isclose(obj,5.41, atol=1e-6) )
assert( np.isclose(x1 , 2, atol=1e-2) )
assert( np.isclose(x2 , -1, atol=1e-2) )
return
# ----------------------------------------------------------------------
# Inputs, Objective, & Constraints
# ----------------------------------------------------------------------
def setup():
nexus = Nexus()
problem = Data()
nexus.optimization_problem = problem
# -------------------------------------------------------------------
# Inputs
# -------------------------------------------------------------------
# [ tag , initial, (lb,ub) , scaling , units ]
problem.inputs = np.array([
[ 'x1' , 1. , ( -2. , 2. ) , 1. , 1*Units.less],
[ 'x2' , 1. , ( -2. , 2. ) , 1. , 1*Units.less],
],dtype=object)
# -------------------------------------------------------------------
# Objective
# -------------------------------------------------------------------
# throw an error if the user isn't specific about wildcards
# [ tag, scaling, units ]
problem.objective = np.array([
['y',1.,1*Units.less]
],dtype=object)
# -------------------------------------------------------------------
# Constraints
# -------------------------------------------------------------------
# [ tag, sense, edge, scaling, units ]
problem.constraints = np.array([
[ 'x1' , '>', -10., 1., 1*Units.less],
[ 'x2' , '>', -50., 1., 1*Units.less],
],dtype=object)
# -------------------------------------------------------------------
# Aliases
# -------------------------------------------------------------------
# [ 'alias' , ['data.path1.name','data.path2.name'] ]
# don't set wing_area for initial configuration so that values can be used later
problem.aliases = [
[ 'x1' , 'vehicle_configurations.base.x1' ],
[ 'x2' , 'vehicle_configurations.base.x2' ],
[ 'y' , 'obj' ],
]
# -------------------------------------------------------------------
# Vehicles
# -------------------------------------------------------------------
nexus.vehicle_configurations = vehicle_mf.setup()
# -------------------------------------------------------------------
# Analyses
# -------------------------------------------------------------------
nexus.analyses = None
# -------------------------------------------------------------------
# Missions
# -------------------------------------------------------------------
nexus.missions = None
# -------------------------------------------------------------------
# Procedure
# -------------------------------------------------------------------
nexus.procedure = procedure_mf.setup()
# -------------------------------------------------------------------
# Summary
# -------------------------------------------------------------------
nexus.summary = Data()
nexus.total_number_of_iterations = 0
return nexus
def get_results(outputs):
obj = outputs[0]
x1 = outputs[1][0]
x2 = outputs[1][1]
return obj, x1, x2
if __name__ == '__main__':
main()
| 37.778378
| 125
| 0.384819
| 1,140
| 13,978
| 4.6
| 0.153509
| 0.011442
| 0.077231
| 0.048246
| 0.737223
| 0.725591
| 0.719108
| 0.691648
| 0.687452
| 0.687452
| 0
| 0.027363
| 0.218272
| 13,978
| 369
| 126
| 37.880759
| 0.452549
| 0.376234
| 0
| 0.629213
| 0
| 0
| 0.074563
| 0.007135
| 0
| 0
| 0
| 0
| 0.151685
| 1
| 0.022472
| false
| 0
| 0.061798
| 0
| 0.106742
| 0.151685
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 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
| 4
|
9bc62862698bc5369f2f74d30f44752e3ac89b7e
| 1,054
|
py
|
Python
|
src/sylenium/element/locators.py
|
symonk/browzer
|
4d9ee5adba6819d787357247da69b5429af9cde1
|
[
"MIT"
] | 6
|
2018-07-25T09:14:08.000Z
|
2020-12-18T21:25:28.000Z
|
src/sylenium/element/locators.py
|
symonk/sylenium
|
4d9ee5adba6819d787357247da69b5429af9cde1
|
[
"MIT"
] | 32
|
2018-07-23T19:34:27.000Z
|
2020-11-18T01:38:42.000Z
|
src/sylenium/element/locators.py
|
symonk/browzer
|
4d9ee5adba6819d787357247da69b5429af9cde1
|
[
"MIT"
] | 3
|
2018-10-10T07:43:55.000Z
|
2020-01-10T21:50:24.000Z
|
from selenium.webdriver.common.by import By
from sylenium.element.locatable import Locatable
class ById(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.ID, value)
class ByXpath(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.XPATH, value)
class ByLinkText(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.LINK_TEXT, value)
class ByPartialLinkText(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.PARTIAL_LINK_TEXT, value)
class ByName(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.NAME, value)
class ByTagName(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.TAG_NAME, value)
class ByClassName(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.CLASS_NAME, value)
class ByCssSelector(Locatable):
def __init__(self, value: str) -> None:
super().__init__(By.CSS_SELECTOR, value)
| 23.954545
| 53
| 0.675522
| 131
| 1,054
| 4.900763
| 0.259542
| 0.149533
| 0.199377
| 0.249221
| 0.535826
| 0.535826
| 0.535826
| 0.535826
| 0.535826
| 0.535826
| 0
| 0
| 0.190702
| 1,054
| 43
| 54
| 24.511628
| 0.752638
| 0
| 0
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.307692
| false
| 0
| 0.076923
| 0
| 0.692308
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
9bd2606d6c612c5eb7c4bdb8b43456af113fa05e
| 158
|
py
|
Python
|
vizdoomaze/envs/vizdoomazetwo7.py
|
fanyuzeng/Vizdoomaze
|
5b444f2d861c908c4d96ae374bcce660d364f22e
|
[
"MIT"
] | 3
|
2020-09-25T16:00:49.000Z
|
2020-10-29T10:32:30.000Z
|
vizdoomaze/envs/vizdoomazetwo7.py
|
fanyuzeng/Vizdoomaze
|
5b444f2d861c908c4d96ae374bcce660d364f22e
|
[
"MIT"
] | null | null | null |
vizdoomaze/envs/vizdoomazetwo7.py
|
fanyuzeng/Vizdoomaze
|
5b444f2d861c908c4d96ae374bcce660d364f22e
|
[
"MIT"
] | 1
|
2021-12-17T07:50:47.000Z
|
2021-12-17T07:50:47.000Z
|
from vizdoomaze.envs.vizdoomenv import VizdoomEnv
class vizdoomazeTwo7(VizdoomEnv):
def __init__(self):
super(vizdoomazeTwo7, self).__init__(40)
| 26.333333
| 49
| 0.765823
| 17
| 158
| 6.647059
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02963
| 0.14557
| 158
| 6
| 50
| 26.333333
| 0.807407
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
504335cb4ae9d35694340e19aeda744fc2f20b55
| 999
|
py
|
Python
|
dp_tornado/helper/numeric/cast/__init__.py
|
donghak-shin/dp-tornado
|
095bb293661af35cce5f917d8a2228d273489496
|
[
"MIT"
] | 18
|
2015-04-07T14:28:39.000Z
|
2020-02-08T14:03:38.000Z
|
dp_tornado/helper/numeric/cast/__init__.py
|
donghak-shin/dp-tornado
|
095bb293661af35cce5f917d8a2228d273489496
|
[
"MIT"
] | 7
|
2016-10-05T05:14:06.000Z
|
2021-05-20T02:07:22.000Z
|
dp_tornado/helper/numeric/cast/__init__.py
|
donghak-shin/dp-tornado
|
095bb293661af35cce5f917d8a2228d273489496
|
[
"MIT"
] | 11
|
2015-12-15T09:49:39.000Z
|
2021-09-06T18:38:21.000Z
|
# -*- coding: utf-8 -*-
from dp_tornado.engine.helper import Helper as dpHelper
class CastHelper(dpHelper):
def int(self, a, raise_exception=False):
try:
if self.helper.misc.system.py_version <= 2:
return int(a) if a else 0
else:
return int(a) if a else 0
except ValueError as e:
if raise_exception:
raise e
return False
def long(self, a, raise_exception=False):
try:
if self.helper.misc.system.py_version <= 2:
return long(a) if a else long(0)
else:
return int(a) if a else 0
except ValueError as e:
if raise_exception:
raise e
return False
def float(self, a, raise_exception=False):
try:
return float(a) if a else 0
except ValueError as e:
if raise_exception:
raise e
return False
| 23.232558
| 55
| 0.516517
| 126
| 999
| 4.02381
| 0.277778
| 0.16568
| 0.039448
| 0.078895
| 0.759369
| 0.759369
| 0.706114
| 0.684418
| 0.684418
| 0.684418
| 0
| 0.013675
| 0.414414
| 999
| 42
| 56
| 23.785714
| 0.852991
| 0.021021
| 0
| 0.758621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.103448
| false
| 0
| 0.034483
| 0
| 0.448276
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 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
| 4
|
ac90154dcb29cb7c20f72fb0339d8b77e0d459bc
| 161
|
py
|
Python
|
autode/reactions/__init__.py
|
Crossfoot/autodE
|
2c452c954a5268e6c9a80cd4efbbfe855e61f6bb
|
[
"MIT"
] | 90
|
2020-03-13T15:03:35.000Z
|
2022-03-14T13:41:04.000Z
|
autode/reactions/__init__.py
|
skphy/autodE
|
fd80995206ac601299d2f78105d0fe4deee8c2cf
|
[
"MIT"
] | 117
|
2020-06-13T00:11:06.000Z
|
2022-03-24T08:54:16.000Z
|
autode/reactions/__init__.py
|
t-young31/autodE
|
4f4e5792e6edf446ff939552a14d82965aaff8e0
|
[
"MIT"
] | 26
|
2020-08-14T04:52:53.000Z
|
2022-03-06T13:04:17.000Z
|
from autode.reactions.reaction import Reaction
from autode.reactions.multistep import MultiStepReaction
__all__ = ['Reaction',
'MultiStepReaction']
| 23
| 56
| 0.770186
| 15
| 161
| 8
| 0.533333
| 0.166667
| 0.316667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15528
| 161
| 6
| 57
| 26.833333
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0.15528
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ac9afeafd4e8f4c7794e583036f36d9541e7812a
| 47
|
py
|
Python
|
cms/__init__.py
|
fossabot/gophr
|
3ff69cdb352e871aa61c23cb277d721459de6f41
|
[
"MIT"
] | null | null | null |
cms/__init__.py
|
fossabot/gophr
|
3ff69cdb352e871aa61c23cb277d721459de6f41
|
[
"MIT"
] | null | null | null |
cms/__init__.py
|
fossabot/gophr
|
3ff69cdb352e871aa61c23cb277d721459de6f41
|
[
"MIT"
] | null | null | null |
default_app_config = 'cms.apps.GophrCmsConfig'
| 23.5
| 46
| 0.829787
| 6
| 47
| 6.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.06383
| 47
| 1
| 47
| 47
| 0.840909
| 0
| 0
| 0
| 0
| 0
| 0.489362
| 0.489362
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
aca3511cbd567d88148bd95f9dcc21565074b659
| 1,513
|
py
|
Python
|
Dynamic Programming/847. Shortest Path Visiting All Nodes.py
|
beckswu/Leetcode
|
480e8dc276b1f65961166d66efa5497d7ff0bdfd
|
[
"MIT"
] | 138
|
2020-02-08T05:25:26.000Z
|
2021-11-04T11:59:28.000Z
|
Dynamic Programming/847. Shortest Path Visiting All Nodes.py
|
beckswu/Leetcode
|
480e8dc276b1f65961166d66efa5497d7ff0bdfd
|
[
"MIT"
] | null | null | null |
Dynamic Programming/847. Shortest Path Visiting All Nodes.py
|
beckswu/Leetcode
|
480e8dc276b1f65961166d66efa5497d7ff0bdfd
|
[
"MIT"
] | 24
|
2021-01-02T07:18:43.000Z
|
2022-03-20T08:17:54.000Z
|
# Heap
class Solution:
def shortestPathLength(self, graph):
memo, final, q = set(), (1 << len(graph)) - 1, [(0, i, 1 << i) for i in range(len(graph))]
while q:
steps, node, state = heapq.heappop(q)
if state == final: return steps
for v in graph[node]:
if (state | 1 << v, v) not in memo:
heapq.heappush(q, (steps + 1, v, state | 1 << v))
memo.add((state | 1 << v, v))
# BFS
class Solution:
def shortestPathLength(self, graph):
memo, final, q, steps = set(), (1 << len(graph)) - 1, [(i, 1 << i) for i in range(len(graph))], 0
while True:
new = []
for node, state in q:
if state == final: return steps
for v in graph[node]:
if (state | 1 << v, v) not in memo:
new.append((v, state | 1 << v))
memo.add((state | 1 << v, v))
q = new
steps += 1
# Deque
class Solution:
def shortestPathLength(self, graph):
memo, final, q = set(), (1 << len(graph)) - 1, collections.deque([(i, 0, 1 << i) for i in range(len(graph))])
while q:
node, steps, state = q.popleft()
if state == final: return steps
for v in graph[node]:
if (state | 1 << v, v) not in memo:
q.append((v, steps + 1, state | 1 << v))
memo.add((state | 1 << v, v))
| 33.622222
| 117
| 0.449438
| 200
| 1,513
| 3.4
| 0.185
| 0.029412
| 0.092647
| 0.070588
| 0.758824
| 0.739706
| 0.739706
| 0.739706
| 0.739706
| 0.595588
| 0
| 0.026637
| 0.404494
| 1,513
| 44
| 118
| 34.386364
| 0.72808
| 0.009253
| 0
| 0.606061
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0
| 0
| 0.181818
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
acdb2f8e391a4a50a0bb8afa4b4996b645aff3bf
| 233
|
py
|
Python
|
src/yellowdog_client/model/best_compute_source_report_preference.py
|
yellowdog/yellowdog-sdk-python-public
|
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
|
[
"Apache-2.0"
] | null | null | null |
src/yellowdog_client/model/best_compute_source_report_preference.py
|
yellowdog/yellowdog-sdk-python-public
|
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
|
[
"Apache-2.0"
] | null | null | null |
src/yellowdog_client/model/best_compute_source_report_preference.py
|
yellowdog/yellowdog-sdk-python-public
|
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
|
[
"Apache-2.0"
] | null | null | null |
from dataclasses import dataclass
from typing import Any, Optional
@dataclass
class BestComputeSourceReportPreference:
weight: Optional[float] = None
lowestValue: Optional[Any] = None
highestValue: Optional[Any] = None
| 23.3
| 40
| 0.772532
| 24
| 233
| 7.5
| 0.583333
| 0.122222
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16309
| 233
| 9
| 41
| 25.888889
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.285714
| 0
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
acf2447145ba38ad374cae2ac6db30beb2470067
| 617
|
py
|
Python
|
back/main/views.py
|
aninstein/sex_code_blog
|
483fcb566f2873204e545db2e4688dba3bee9db9
|
[
"BSD-2-Clause"
] | 116
|
2019-09-19T01:00:48.000Z
|
2022-03-16T08:52:15.000Z
|
back/main/views.py
|
aninstein/sex_code_blog
|
483fcb566f2873204e545db2e4688dba3bee9db9
|
[
"BSD-2-Clause"
] | 13
|
2019-08-13T14:39:21.000Z
|
2022-03-22T02:36:46.000Z
|
back/main/views.py
|
aninstein/sex_code_blog
|
483fcb566f2873204e545db2e4688dba3bee9db9
|
[
"BSD-2-Clause"
] | 30
|
2019-08-13T10:13:07.000Z
|
2022-01-19T09:50:31.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import abort, current_app, render_template, jsonify
from jinja2 import TemplateNotFound
from . import main_bp
@main_bp.route('/hello')
def hello_world():
return 'Hello World!'
@main_bp.route('/favicon.ico')
def favicon():
return current_app.send_static_file('favicon.ico')
@main_bp.route('/')
@main_bp.route('/index/')
def index():
try:
return 'This is Index Page.'
# return render_template('index.html')
except TemplateNotFound:
abort(404)
@main_bp.route('/ping')
def ping_pong():
return jsonify('pong!')
| 18.69697
| 62
| 0.672609
| 83
| 617
| 4.831325
| 0.481928
| 0.089776
| 0.137157
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009823
| 0.175041
| 617
| 32
| 63
| 19.28125
| 0.777996
| 0.128039
| 0
| 0
| 0
| 0
| 0.145794
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.210526
| true
| 0
| 0.157895
| 0.157895
| 0.578947
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
acf3bb14a90d358bd06a4aeaf84395cbe98bf174
| 47
|
py
|
Python
|
Parte1/Cap4/numbers.py
|
fabianoflorentino/python-CursoIntensivoDePython
|
822288cc4b382936dde1bc647e3f8c2b925ced70
|
[
"Apache-2.0"
] | null | null | null |
Parte1/Cap4/numbers.py
|
fabianoflorentino/python-CursoIntensivoDePython
|
822288cc4b382936dde1bc647e3f8c2b925ced70
|
[
"Apache-2.0"
] | null | null | null |
Parte1/Cap4/numbers.py
|
fabianoflorentino/python-CursoIntensivoDePython
|
822288cc4b382936dde1bc647e3f8c2b925ced70
|
[
"Apache-2.0"
] | 1
|
2020-02-05T13:07:08.000Z
|
2020-02-05T13:07:08.000Z
|
for value in range(1,11):
print(str(value))
| 23.5
| 25
| 0.659574
| 9
| 47
| 3.444444
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.170213
| 47
| 2
| 26
| 23.5
| 0.717949
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
4a10d494acf3644366a1c341e0c6f706046f7c05
| 166
|
py
|
Python
|
hlso/__init__.py
|
holtgrewe/clsify
|
ad5efecd1d0114898e10498434bded32840d9a4b
|
[
"MIT"
] | 19
|
2019-07-25T17:36:16.000Z
|
2021-12-24T06:52:40.000Z
|
hlso/__init__.py
|
holtgrewe/clsify
|
ad5efecd1d0114898e10498434bded32840d9a4b
|
[
"MIT"
] | 31
|
2019-05-13T11:21:50.000Z
|
2020-06-19T09:33:16.000Z
|
hlso/__init__.py
|
holtgrewe/clsify
|
ad5efecd1d0114898e10498434bded32840d9a4b
|
[
"MIT"
] | 2
|
2020-03-05T15:36:30.000Z
|
2021-12-22T04:48:36.000Z
|
from ._version import get_versions as _get_versions
#: The application's version from versioneer.
__version__ = _get_versions()["version"]
del _get_versions # noqa
| 27.666667
| 51
| 0.795181
| 22
| 166
| 5.454545
| 0.545455
| 0.366667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126506
| 166
| 5
| 52
| 33.2
| 0.827586
| 0.295181
| 0
| 0
| 0
| 0
| 0.06087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c57f60b725a051377acf92944d3af034c888fd41
| 452
|
py
|
Python
|
__init__.py
|
Wanderingss/PG-GrHDP
|
45b098d2cb7961e10542abf10f533ea2bebdad6d
|
[
"MIT"
] | null | null | null |
__init__.py
|
Wanderingss/PG-GrHDP
|
45b098d2cb7961e10542abf10f533ea2bebdad6d
|
[
"MIT"
] | null | null | null |
__init__.py
|
Wanderingss/PG-GrHDP
|
45b098d2cb7961e10542abf10f533ea2bebdad6d
|
[
"MIT"
] | null | null | null |
import torch
class CustomDataset(torch.utils.data.Dataset):#需要继承data.Dataset
def __init__(self, state, loss):
super(CustomDataset, self).__init__()
self.data = state
self.target = loss
self.length = self.data.shape[0]
pass
def __getitem__(self, index):
# 取一个数据
return self.data[index], self.target[index]
def __len__(self):
# 返回一个数据集的长度
return self.length
| 32.285714
| 64
| 0.610619
| 51
| 452
| 5.098039
| 0.490196
| 0.092308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003106
| 0.287611
| 452
| 14
| 65
| 32.285714
| 0.804348
| 0.073009
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.083333
| 0.083333
| 0.166667
| 0.583333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
c581e7f935552f66346525069e162d980514eb5c
| 39
|
py
|
Python
|
test.py
|
kethad/Test
|
c6bd3236f28bc54d5c64148716d447926e578ffd
|
[
"Apache-2.0"
] | null | null | null |
test.py
|
kethad/Test
|
c6bd3236f28bc54d5c64148716d447926e578ffd
|
[
"Apache-2.0"
] | null | null | null |
test.py
|
kethad/Test
|
c6bd3236f28bc54d5c64148716d447926e578ffd
|
[
"Apache-2.0"
] | null | null | null |
a = "Dev"
b = "Great Work!"
print a, b
| 9.75
| 17
| 0.538462
| 8
| 39
| 2.625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25641
| 39
| 3
| 18
| 13
| 0.724138
| 0
| 0
| 0
| 0
| 0
| 0.358974
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.333333
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c586ed4a57e03afe3a8d49194a2a15896cef706e
| 87
|
py
|
Python
|
pygalgen/generator/common/source_file_parsing/__init__.py
|
Kulivox/PyGalGen
|
816004bce50703737384e2fbdcfe43b61ce2f4dd
|
[
"MIT"
] | null | null | null |
pygalgen/generator/common/source_file_parsing/__init__.py
|
Kulivox/PyGalGen
|
816004bce50703737384e2fbdcfe43b61ce2f4dd
|
[
"MIT"
] | null | null | null |
pygalgen/generator/common/source_file_parsing/__init__.py
|
Kulivox/PyGalGen
|
816004bce50703737384e2fbdcfe43b61ce2f4dd
|
[
"MIT"
] | null | null | null |
"""
Subpackage containing functions used for parameter extraction from source files
"""
| 29
| 79
| 0.804598
| 10
| 87
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126437
| 87
| 3
| 80
| 29
| 0.921053
| 0.908046
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c5a2c92909134a11a27b29bfe532f45073dc020b
| 2,432
|
py
|
Python
|
chapter8/8_15Delegating Attribute Access/8_15.py
|
atigerboy/PythonCookBook
|
e9238c7676063b5077a7645707ecc51052063d8d
|
[
"MIT"
] | null | null | null |
chapter8/8_15Delegating Attribute Access/8_15.py
|
atigerboy/PythonCookBook
|
e9238c7676063b5077a7645707ecc51052063d8d
|
[
"MIT"
] | null | null | null |
chapter8/8_15Delegating Attribute Access/8_15.py
|
atigerboy/PythonCookBook
|
e9238c7676063b5077a7645707ecc51052063d8d
|
[
"MIT"
] | null | null | null |
''' Base Class method Proxy'''
#method 1, not recommand!
class A:
def spam(self, x):
pass
def foo(self):
pass
class B:
def __init__(self):
self._a = A()
def spam(self, x):
# Delegate to the internal self._a instance
return self._a.spam(x)
def foo(self):
# Delegate to the internal self._a instance
return self._a.foo()
def bar(self):
pass
#method 2, better
class A:
def spam(self, x):
pass
def foo(self):
pass
class B:
def __init__(self):
self._a = A()
def bar(self):
pass
#Expose all of the methods defined on Class A,like virtual method fields filled
def __getattr__(self, item):
return getattr( self._a, item )
#method 3, common Proxy
# A proxy class that wraps around another object, but
# exposes its public attributes
class Proxy:
def __init__(self, obj):
self._obj = obj
# Delegate attribute lookup to internal obj
def __getattr__(self, name):
print('getattr:', name)
return getattr(self._obj, name)
# Delegate attribute assignment
def __setattr__(self, name, value):
if name.startswith('_'):
super().__setattr__(name, value)
else:
print('setattr:', name, value)
setattr(self._obj, name, value)
# Delegate attribute deletion
def __delattr__(self, name):
if name.startswith('_'):
super().__delattr__(name)
else:
print('delattr:', name)
delattr(self._obj, name)
class Spam:
def __init__(self, x):
self.x = x
def bar(self, y):
print('Spam.bar:', self.x, y)
# Create an instance
s = Spam(2)
# Create a proxy around it
p = Proxy(s)
# Access the proxy
print(p.x) # Outputs 2
p.bar(3) # Outputs "Spam.bar: 2 3"
p.x = 37 # Changes s.x to 37
#Example for ListLike
'''TODO:: All functions starts with __ must defined by hand~~'''
class ListLike:
def __init__(self):
self._items = []
def __getattr__(self, name):
return getattr(self._items, name)
# Added special methods to support certain list operations
def __len__(self):
return len(self._items)
def __getitem__(self, index):
return self._items[index]
def __setitem__(self, index, value):
self._items[index] = value
def __delitem__(self, index):
del self._items[index]
| 26.434783
| 83
| 0.606497
| 325
| 2,432
| 4.276923
| 0.295385
| 0.02518
| 0.039568
| 0.025899
| 0.160432
| 0.153957
| 0.153957
| 0.153957
| 0.153957
| 0.153957
| 0
| 0.006897
| 0.284539
| 2,432
| 92
| 84
| 26.434783
| 0.791954
| 0.254934
| 0
| 0.432836
| 0
| 0
| 0.020302
| 0
| 0
| 0
| 0
| 0.01087
| 0
| 1
| 0.343284
| false
| 0.089552
| 0
| 0.089552
| 0.552239
| 0.074627
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
c5e572d945b4387ca1c5fe88dedb43130438b164
| 254
|
py
|
Python
|
network_insight_sdk_generic_datasources/parsers/text/pre_post_processor.py
|
lukaswinn/network-insight-sdk-generic-datasources
|
094479acdc19cf83ab613556746cd980c1741347
|
[
"BSD-2-Clause"
] | 11
|
2019-08-02T12:10:34.000Z
|
2022-01-17T17:25:19.000Z
|
network_insight_sdk_generic_datasources/parsers/text/pre_post_processor.py
|
lukaswinn/network-insight-sdk-generic-datasources
|
094479acdc19cf83ab613556746cd980c1741347
|
[
"BSD-2-Clause"
] | 35
|
2019-07-19T07:28:58.000Z
|
2022-03-21T06:07:20.000Z
|
network_insight_sdk_generic_datasources/parsers/text/pre_post_processor.py
|
lukaswinn/network-insight-sdk-generic-datasources
|
094479acdc19cf83ab613556746cd980c1741347
|
[
"BSD-2-Clause"
] | 9
|
2019-08-09T07:28:04.000Z
|
2022-03-21T20:24:00.000Z
|
# Copyright 2019 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause
class PrePostProcessor(object):
def pre_process(self, data):
type(self)
return data
def post_process(self, data):
type(self)
return data
| 14.941176
| 39
| 0.633858
| 31
| 254
| 5.129032
| 0.677419
| 0.138365
| 0.188679
| 0.238994
| 0.415094
| 0.415094
| 0.415094
| 0
| 0
| 0
| 0
| 0.027027
| 0.271654
| 254
| 16
| 40
| 15.875
| 0.832432
| 0.255906
| 0
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
c5f4df8e1277afc2e0f6558dd02ba2d6505f1dce
| 2,375
|
py
|
Python
|
tests/test_debug.py
|
quantum-experiments/qbob
|
6b33ea48a03e1e194dc87878b1d88395e560dff0
|
[
"MIT"
] | null | null | null |
tests/test_debug.py
|
quantum-experiments/qbob
|
6b33ea48a03e1e194dc87878b1d88395e560dff0
|
[
"MIT"
] | null | null | null |
tests/test_debug.py
|
quantum-experiments/qbob
|
6b33ea48a03e1e194dc87878b1d88395e560dff0
|
[
"MIT"
] | null | null | null |
from qbob import qbob
from qbob.intrinsics import Message, H, M, X
from qbob.diagnostics import DumpMachine, DumpRegister
def test_debug(tmp_path):
def file_location(n):
return tmp_path / f"test{n}.txt"
my_qbob = qbob.OperationBuilder("TestDumpMachine")
my_qbob += Message("Hi from QBOB!")
with my_qbob.allocate_qubits("q", 1) as q:
my_qbob += H(q)
my_qbob += DumpRegister(file_location(1), [q])
my_qbob += H(q)
my_qbob += DumpRegister(file_location(2), [q])
my_qbob += X(q)
my_qbob += DumpRegister(file_location(3), [q])
my_qbob.returns(M(q))
code = my_qbob.build()
print(code)
test = my_qbob.compile()
test()
with open(file_location(1), encoding="utf8") as f:
print(f.read())
with open(file_location(2), encoding="utf8") as f:
print(f.read())
with open(file_location(3), encoding="utf8") as f:
print(f.read())
def test_debug_register(tmp_path):
def file_location(n):
return tmp_path / f"test{n}.txt"
my_qbob = qbob.OperationBuilder("TestDumpMachine")
my_qbob += Message("Hi from QBOB!")
with my_qbob.allocate_qubits("q", 5) as q:
my_qbob += H(q[0])
my_qbob += DumpRegister(file_location(1), [q[0]])
my_qbob += H(q[0])
my_qbob += DumpRegister(file_location(2), [q[0]])
my_qbob += X(q[1])
my_qbob += DumpRegister(file_location(3), [q[1]])
my_qbob.returns(M(q[0]))
code = my_qbob.build()
print(code)
test = my_qbob.compile()
test()
with open(file_location(1), encoding="utf8") as f:
print(f.read())
with open(file_location(2), encoding="utf8") as f:
print(f.read())
with open(file_location(3), encoding="utf8") as f:
print(f.read())
def test_debug_new(tmp_path):
my_qbob = qbob.OperationBuilder("TestDumpMachine", debug=True)
my_qbob += Message("Hi from QBOB!")
with my_qbob.allocate_qubits("q", 3) as q:
my_qbob += H(q[0])
my_qbob.log_state(q[0])
my_qbob += H(q[1])
my_qbob.log_state(q[1])
my_qbob += X(q[2])
my_qbob.log_state(q[2])
my_qbob.returns([M(q[0]), M(q[1]), M(q[2])])
code = my_qbob.build() # code contains the state at each line
print(code)
test = my_qbob.compile()
test()
| 28.27381
| 66
| 0.594947
| 359
| 2,375
| 3.752089
| 0.153203
| 0.160356
| 0.046771
| 0.035635
| 0.834447
| 0.764662
| 0.730512
| 0.655531
| 0.655531
| 0.639941
| 0
| 0.020752
| 0.249263
| 2,375
| 83
| 67
| 28.614458
| 0.734717
| 0.015158
| 0
| 0.59375
| 0
| 0
| 0.056911
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.078125
| false
| 0
| 0.046875
| 0.03125
| 0.15625
| 0.140625
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6809cff1dad502c4f0f95cd504c95b1e1d667e54
| 1,370
|
py
|
Python
|
Python3Test/TensorBoardTest.py
|
qianhk/FeiPython
|
c87578d3c04b7345a99fef7390c8ea12c6f2c716
|
[
"Apache-2.0"
] | null | null | null |
Python3Test/TensorBoardTest.py
|
qianhk/FeiPython
|
c87578d3c04b7345a99fef7390c8ea12c6f2c716
|
[
"Apache-2.0"
] | 15
|
2019-11-18T06:09:50.000Z
|
2022-03-02T02:55:54.000Z
|
Python3Test/TensorBoardTest.py
|
qianhk/FeiPython
|
c87578d3c04b7345a99fef7390c8ea12c6f2c716
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python3
# coding=utf-8
import tensorflow as tf
# with tf.name_scope('S_input1'):
# input1 = tf.constant([1.0, 2.0, 3.0], name = 'N_input1')
#
# with tf.name_scope("S_input2"):
# input2 = tf.Variable(tf.random_uniform([3]), name = 'N_input2')
#
# output = tf.add_n([input1, input2], name = 'Nadd')
#
# writer = tf.summary.FileWriter("./logs/boardTest", tf.get_default_graph())
# writer.close()
# a = tf.constant(5, name="input_a")
# b = tf.constant(3, name="input_b")
# c = tf.multiply(a, b, name="mul_c")
# d = tf.add(a, b, name="add_d")
# e = tf.add(c, d, name="add_e")
#
# sess = tf.Session()
# print(sess.run(e))
# output = sess.run(e)
#
# writer = tf.summary.FileWriter('./logs/boardTest', graph=sess.graph)
# writer.close()
# print(sess.run(e))
# with tf.variable_scope("foo"):
# a = tf.get_variable("bar", [1])
# print(a.name)
#
# with tf.variable_scope("bar"):
# b = tf.get_variable("bar", [1])
# print(b.name)
#
# with tf.name_scope('a'):
# a = tf.Variable([1])
# print(a.name)
#
# a = tf.get_variable("b", [1])
# print(a.name)
#
# with tf.name_scope('b'):
# try:
# b = tf.get_variable("b", [1])
# print('again: ' + b.name)
# except ValueError as err: # ValueError: Variable b already exists
# print('found exception: ')
# else:
# print('no exception')
| 23.220339
| 76
| 0.588321
| 210
| 1,370
| 3.728571
| 0.304762
| 0.045977
| 0.051086
| 0.076628
| 0.309068
| 0.232439
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.194161
| 1,370
| 58
| 77
| 23.62069
| 0.6875
| 0.905109
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a84febfab8ab6070ac9116d4e98c66e133423d02
| 1,697
|
py
|
Python
|
challenges/towers_of_hanoi/test_towers_of_hanoi.py
|
asakatida/data-structures-and-algorithms.py
|
587d1a66a6c15a3c7d7786275608f065687e1810
|
[
"MIT"
] | null | null | null |
challenges/towers_of_hanoi/test_towers_of_hanoi.py
|
asakatida/data-structures-and-algorithms.py
|
587d1a66a6c15a3c7d7786275608f065687e1810
|
[
"MIT"
] | 2
|
2020-09-24T13:13:49.000Z
|
2021-06-25T15:15:35.000Z
|
challenges/towers_of_hanoi/test_towers_of_hanoi.py
|
grandquista/data-structures-and-algorithms.py
|
587d1a66a6c15a3c7d7786275608f065687e1810
|
[
"MIT"
] | null | null | null |
from .towers_of_hanoi import towers_of_hanoi, towers_of_hanoi_list
from data_structures.stack.stack import Stack
from re import match
def test_towers_of_hanoi_1():
assert len(list(towers_of_hanoi(1))) == 1
def test_towers_of_hanoi_2():
assert len(list(towers_of_hanoi(2))) == 3
def test_towers_of_hanoi_3():
assert len(list(towers_of_hanoi(3))) == 7
def test_towers_of_hanoi_4():
assert len(list(towers_of_hanoi(4))) == 15
def test_towers_of_hanoi_7_solution():
towers = {"A": Stack(range(7, 0, -1)), "B": Stack(), "C": Stack()}
for move in towers_of_hanoi(7):
move = match(r"Disk (\d+) moved from (\w+) to (\w+)", move)
disk = int(move.group(1))
start = move.group(2)
end = move.group(3)
assert towers[start].pop() == disk
if towers[end]:
assert towers[end].peek() > disk
towers[end].push(disk)
assert len(towers["A"]) == 0
assert len(towers["B"]) == 0
end = towers["C"]
assert len(end) == 7
for i in range(1, 8):
assert end.pop() == i
def test_towers_of_hanoi_list_7_solution():
towers = {"A": Stack(range(7, 0, -1)), "B": Stack(), "C": Stack()}
for move in towers_of_hanoi_list(7):
move = match(r"Disk (\d+) moved from (\w+) to (\w+)", move)
disk = int(move.group(1))
start = move.group(2)
end = move.group(3)
assert towers[start].pop() == disk
if towers[end]:
assert towers[end].peek() > disk
towers[end].push(disk)
assert len(towers["A"]) == 0
assert len(towers["B"]) == 0
end = towers["C"]
assert len(end) == 7
for i in range(1, 8):
assert end.pop() == i
| 29.258621
| 70
| 0.589275
| 267
| 1,697
| 3.565543
| 0.172285
| 0.12605
| 0.204832
| 0.094538
| 0.871849
| 0.737395
| 0.628151
| 0.628151
| 0.628151
| 0.628151
| 0
| 0.030374
| 0.243371
| 1,697
| 57
| 71
| 29.77193
| 0.711059
| 0
| 0
| 0.666667
| 0
| 0
| 0.049499
| 0
| 0
| 0
| 0
| 0
| 0.355556
| 1
| 0.133333
| false
| 0
| 0.066667
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a854f44522ae1f8fd7a8e4a68d88c7f8a87115cf
| 236
|
py
|
Python
|
dataPipelines/gc_ingest/pipelines/cli.py
|
Wildertrek/gamechanger-data
|
d087044594c722bd373cce1a48293d1a6da5d24e
|
[
"MIT"
] | 18
|
2021-04-20T20:34:01.000Z
|
2021-11-08T10:28:17.000Z
|
dataPipelines/gc_ingest/pipelines/cli.py
|
Wildertrek/gamechanger-data
|
d087044594c722bd373cce1a48293d1a6da5d24e
|
[
"MIT"
] | 15
|
2021-04-20T20:31:33.000Z
|
2022-03-18T16:00:44.000Z
|
dataPipelines/gc_ingest/pipelines/cli.py
|
dod-advana/gamechanger-data
|
1cdba2a3dbc1072f5991dcfe1daea6310c8ae42b
|
[
"MIT"
] | 8
|
2021-04-23T11:38:26.000Z
|
2021-11-17T22:42:38.000Z
|
import click
from .core.cli import core_cli
from .clone.cli import clone_cli
@click.group(name='pipelines')
def pipelines_cli():
"""Pipeline CLI"""
pass
pipelines_cli.add_command(core_cli)
pipelines_cli.add_command(clone_cli)
| 19.666667
| 36
| 0.771186
| 36
| 236
| 4.805556
| 0.388889
| 0.121387
| 0.17341
| 0.254335
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118644
| 236
| 12
| 36
| 19.666667
| 0.831731
| 0.050847
| 0
| 0
| 0
| 0
| 0.041096
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| true
| 0.125
| 0.375
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
a8744feff4d937ef6927bdf13b07ba82544e3edd
| 181
|
py
|
Python
|
testcases/tests/test_case_000.py
|
JamieCzuy/sharedanexperience.com
|
7a66edbcaf2a4809bc59ab3f4615c0c259eb3ef7
|
[
"MIT"
] | null | null | null |
testcases/tests/test_case_000.py
|
JamieCzuy/sharedanexperience.com
|
7a66edbcaf2a4809bc59ab3f4615c0c259eb3ef7
|
[
"MIT"
] | 10
|
2018-02-21T16:01:28.000Z
|
2021-06-10T19:27:00.000Z
|
testcases/tests/test_case_000.py
|
JamieCzuy/sharedanexperience.com
|
7a66edbcaf2a4809bc59ab3f4615c0c259eb3ef7
|
[
"MIT"
] | null | null | null |
def test_000_a_test_can_pass():
print("This test should always pass!")
assert True
def test_001_can_see_the_internet(selenium):
selenium.get('http://www.example.com')
| 22.625
| 44
| 0.740331
| 29
| 181
| 4.275862
| 0.758621
| 0.112903
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03871
| 0.143646
| 181
| 7
| 45
| 25.857143
| 0.76129
| 0
| 0
| 0
| 0
| 0
| 0.281768
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.4
| false
| 0.4
| 0
| 0
| 0.4
| 0.2
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
a87b30550ef0ee2932df6db80f5d2a7d281c3157
| 247
|
py
|
Python
|
siteflags/tests/testapp/models.py
|
idlesign/django-siteflags
|
d031a4fc5a061b07ebd628eab2751345a197a93c
|
[
"BSD-3-Clause"
] | 14
|
2015-04-28T08:35:58.000Z
|
2022-02-16T06:20:40.000Z
|
siteflags/tests/testapp/models.py
|
idlesign/django-siteflags
|
d031a4fc5a061b07ebd628eab2751345a197a93c
|
[
"BSD-3-Clause"
] | 11
|
2018-05-23T10:33:31.000Z
|
2022-01-28T07:27:16.000Z
|
siteflags/tests/testapp/models.py
|
idlesign/django-siteflags
|
d031a4fc5a061b07ebd628eab2751345a197a93c
|
[
"BSD-3-Clause"
] | 4
|
2016-03-31T10:47:44.000Z
|
2019-12-01T05:13:48.000Z
|
from django.db import models
from siteflags.models import ModelWithFlag
class Comment(ModelWithFlag):
title = models.CharField('title', max_length=255)
class Article(ModelWithFlag):
title = models.CharField('title', max_length=255)
| 17.642857
| 53
| 0.761134
| 30
| 247
| 6.2
| 0.5
| 0.193548
| 0.258065
| 0.354839
| 0.537634
| 0.537634
| 0.537634
| 0.537634
| 0
| 0
| 0
| 0.028302
| 0.1417
| 247
| 13
| 54
| 19
| 0.849057
| 0
| 0
| 0.333333
| 0
| 0
| 0.040486
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a8962f7172a3291774bfd504d004705e9abfd93f
| 56
|
py
|
Python
|
goodcat/__init__.py
|
haruyuki/GoodCat
|
853a47d062f89b0ea8471dc34e51289880bde04b
|
[
"MIT"
] | null | null | null |
goodcat/__init__.py
|
haruyuki/GoodCat
|
853a47d062f89b0ea8471dc34e51289880bde04b
|
[
"MIT"
] | null | null | null |
goodcat/__init__.py
|
haruyuki/GoodCat
|
853a47d062f89b0ea8471dc34e51289880bde04b
|
[
"MIT"
] | null | null | null |
__version__ = "0.1.0"
GUILD_ID = 358248587026497537
| 14
| 30
| 0.714286
| 7
| 56
| 5
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.456522
| 0.178571
| 56
| 3
| 31
| 18.666667
| 0.304348
| 0
| 0
| 0
| 0
| 0
| 0.09434
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 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
| 4
|
a8a72dd3738c69480889218e316e849eceb208fc
| 142
|
py
|
Python
|
leapyear.py
|
Prashant269/python
|
facf2683c20ace046e8c2adcd7fe96aad609331d
|
[
"bzip2-1.0.6"
] | null | null | null |
leapyear.py
|
Prashant269/python
|
facf2683c20ace046e8c2adcd7fe96aad609331d
|
[
"bzip2-1.0.6"
] | null | null | null |
leapyear.py
|
Prashant269/python
|
facf2683c20ace046e8c2adcd7fe96aad609331d
|
[
"bzip2-1.0.6"
] | null | null | null |
# leapyear
y=input("enter any year")
if y%4==0:
print("{} is:leap year".format(y))
else:
print("{} is not a leap year".format(y))
| 20.285714
| 46
| 0.584507
| 25
| 142
| 3.32
| 0.64
| 0.168675
| 0.337349
| 0.361446
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017699
| 0.204225
| 142
| 6
| 47
| 23.666667
| 0.716814
| 0.056338
| 0
| 0
| 0
| 0
| 0.396825
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.4
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a8b3069d4dc6c31e881f6e91c22b8a4760ccbc69
| 289
|
py
|
Python
|
LMS/librarian/admin.py
|
Hamnafaisal/Library-Management-System-Django-Project-
|
0bfc31f77ea23ccdc677a374b2a27e50f884b005
|
[
"MIT"
] | null | null | null |
LMS/librarian/admin.py
|
Hamnafaisal/Library-Management-System-Django-Project-
|
0bfc31f77ea23ccdc677a374b2a27e50f884b005
|
[
"MIT"
] | null | null | null |
LMS/librarian/admin.py
|
Hamnafaisal/Library-Management-System-Django-Project-
|
0bfc31f77ea23ccdc677a374b2a27e50f884b005
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import Book
from .models import Student
from .models import Borrower
from .models import Reviews
admin.site.register(Book)
admin.site.register(Student)
admin.site.register(Borrower)
admin.site.register(Reviews)
| 20.642857
| 32
| 0.809689
| 41
| 289
| 5.707317
| 0.341463
| 0.17094
| 0.273504
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110727
| 289
| 13
| 33
| 22.230769
| 0.910506
| 0.089965
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.555556
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a8b319429c17083239641841e5ab68b3368cc685
| 14,445
|
py
|
Python
|
test/old_tests/_test_scan_apply.py
|
syaiful6/aerospike-client-python
|
59fa0d36aa899a164282643fe49b27d12aaf323f
|
[
"Apache-2.0"
] | 105
|
2015-01-07T09:51:13.000Z
|
2022-03-24T04:23:54.000Z
|
test/old_tests/_test_scan_apply.py
|
syaiful6/aerospike-client-python
|
59fa0d36aa899a164282643fe49b27d12aaf323f
|
[
"Apache-2.0"
] | 180
|
2015-01-01T19:29:50.000Z
|
2022-03-19T14:14:06.000Z
|
test/old_tests/_test_scan_apply.py
|
syaiful6/aerospike-client-python
|
59fa0d36aa899a164282643fe49b27d12aaf323f
|
[
"Apache-2.0"
] | 94
|
2015-01-21T19:17:48.000Z
|
2022-01-31T07:17:47.000Z
|
# -*- coding: utf-8 -*-
import pytest
import time
import sys
from .test_base_class import TestBaseClass
from aerospike import exception as e
aerospike = pytest.importorskip("aerospike")
try:
import aerospike
except:
print("Please install aerospike python client.")
sys.exit(1)
class TestScanApply(object):
def setup_method(self, method):
"""
Setup method.
"""
hostlist, user, password = TestBaseClass.get_hosts()
config = {'hosts': hostlist}
if user is None and password is None:
self.client = aerospike.client(config).connect()
else:
self.client = aerospike.client(config).connect(user, password)
for i in range(5):
key = ('test', 'demo', i)
rec = {'name': 'name%s' % (str(i)), 'age': i}
self.client.put(key, rec)
policy = {}
self.client.udf_put(u"bin_lua.lua", 0, policy)
def teardown_method(self, method):
"""
Teardoen method.
"""
for i in range(5):
key = ('test', 'demo', i)
try:
self.client.remove(key)
except e.TimeoutError:
pass
self.client.close()
def test_scan_apply_with_no_parameters(self):
"""
Invoke scan_apply() without any mandatory parameters.
"""
with pytest.raises(TypeError) as typeError:
self.client.scan_apply()
assert "Required argument 'ns' (pos 1) not found" in str(
typeError.value)
def test_scan_apply_with_correct_parameters(self):
"""
Invoke scan_apply() with correct parameters
"""
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransform", ['age', 2])
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_with_correct_policy(self):
"""
Invoke scan_apply() with correct policy
"""
policy = {'timeout': 1000}
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransform", ['age', 2], policy)
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_with_none_set(self):
"""
Invoke scan_apply() with correct policy
"""
policy = {'timeout': 1000}
scan_id = self.client.scan_apply("test", None, "bin_lua",
"mytransform", ['age', 2], policy)
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_with_incorrect_policy(self):
"""
Invoke scan_apply() with incorrect policy
"""
policy = {
'timeout': 0.5
}
try:
self.client.scan_apply(
"test", "demo", "bin_lua", "mytransform", ['age', 2], policy)
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "timeout is invalid"
def test_scan_apply_with_incorrect_ns_set(self):
"""
Invoke scan_apply() with incorrect ns and set
"""
try:
self.client.scan_apply(
"test1", "demo1", "bin_lua", "mytransform", ['age', 2])
except e.NamespaceNotFound as exception:
assert exception.code == 20
except e.ServerError as exception:
assert exception.code == 1
def test_scan_apply_with_incorrect_module_name(self):
"""
Invoke scan_apply() with incorrect module name
"""
scan_id = self.client.scan_apply("test", "demo", "bin_lua_incorrect",
"mytransform", ['age', 2])
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i:
assert True is False
else:
assert True is True
def test_scan_apply_with_incorrect_function_name(self):
"""
Invoke scan_apply() with incorrect function name
"""
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransform_incorrect", ['age', 2])
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i:
assert True is False
else:
assert True is True
def test_scan_apply_with_ns_set_none(self):
"""
Invoke scan_apply() with ns and set as None
"""
with pytest.raises(TypeError) as typeError:
self.client.scan_apply(None, None, "bin_lua",
"mytransform", ['age', 2])
assert "scan_apply() argument 1 must be str" in str(typeError.value)
def test_scan_apply_with_module_function_none(self):
"""
Invoke scan_apply() with None module function
"""
try:
self.client.scan_apply("test", "demo", None, None, ['age', 2])
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "Module name should be string"
def test_scan_apply_with_percent_string(self):
"""
Invoke scan_apply() with percent string
"""
policy = {'timeout': 1000}
options = {
"concurrent": False
}
try:
self.client.scan_apply("test", "demo", "bin_lua",
"mytransform_incorrect",
['age', 2], policy, options)
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "Invalid value(type) for percent"
def test_scan_apply_with_priority_string(self):
"""
Invoke scan_apply() with priority string
"""
policy = {'timeout': 1000}
options = {
"concurrent": False
}
try:
self.client.scan_apply("test", "demo", "bin_lua",
"mytransform_incorrect",
['age', 2], policy, options)
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "Invalid value(type) for priority"
def test_scan_apply_with_concurrent_int(self):
"""
Invoke scan_apply() with concurrent int
"""
policy = {'timeout': 1000}
options = {
"concurrent": 5
}
try:
self.client.scan_apply("test", "demo", "bin_lua",
"mytransform_incorrect",
['age', 2], policy, options)
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "Invalid value(type) for concurrent"
def test_scan_apply_with_extra_argument(self):
"""
Invoke scan_apply() with extra argument
"""
policy = {'timeout': 1000}
options = {
"concurrent": False
}
with pytest.raises(TypeError) as typeError:
self.client.scan_apply("test", "demo", "bin_lua",
"mytransform_incorrect",
['age', 2], policy, options, "")
assert "scan_apply() takes at most 7 arguments (8 given)" in str(
typeError.value)
def test_scan_apply_with_argument_is_string(self):
"""
Invoke scan_apply() with arguments as string
"""
try:
self.client.scan_apply(
"test", "demo", "bin_lua", "mytransform", "")
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "Arguments should be a list"
def test_scan_apply_with_argument_is_none(self):
"""
Invoke scan_apply() with arguments as None
"""
try:
self.client.scan_apply(
"test", "demo", "bin_lua", "mytransform", None)
except e.ParamError as exception:
assert exception.code == -2
assert exception.msg == "Arguments should be a list"
def test_scan_apply_with_extra_call_to_lua(self):
"""
Invoke scan_apply() with extra call to lua
"""
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransform", ['age', 2, 3])
# time.sleep(2)
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_with_extra_parameter_in_lua(self):
"""
Invoke scan_apply() with extra parameter in lua
"""
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransformextra", ['age', 2])
# time.sleep(2)
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_with_less_parameter_in_lua(self):
"""
Invoke scan_apply() with less parameter in lua
"""
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransformless", ['age', 2])
# time.sleep(2)
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i:
assert True is False
else:
assert True is True
def test_scan_apply_with_options_positive(self):
"""
Invoke scan_apply() with options positive
"""
policy = {'timeout': 1000}
options = {
"concurrent": False
}
scan_id = self.client.scan_apply("test", "demo", "bin_lua",
"mytransform", ['age',
2], policy, options)
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_unicode_input(self):
"""
Invoke scan_apply() with unicode udf
"""
scan_id = self.client.scan_apply("test", "demo", u"bin_lua",
u"mytransform", ['age', 2])
time.sleep(0.1)
while True:
response = self.client.job_info(scan_id, aerospike.JOB_SCAN)
if response['status'] != aerospike.JOB_STATUS_INPROGRESS:
break
time.sleep(0.1)
for i in range(5):
key = ('test', 'demo', i)
(key, _, bins) = self.client.get(key)
if bins['age'] != i + 2:
assert True is False
assert True is True
def test_scan_apply_with_correct_parameters_without_connection(self):
"""
Invoke scan_apply() with correct parameters without connection
"""
config = {'hosts': [('127.0.0.1', 3000)]}
client1 = aerospike.client(config)
try:
client1.scan_apply(
"test", "demo", "bin_lua", "mytransform", ['age', 2])
except e.ClusterError as exception:
assert exception.code == 11
assert exception.msg == 'No connection to aerospike cluster'
| 32.533784
| 77
| 0.517065
| 1,591
| 14,445
| 4.522942
| 0.096794
| 0.085047
| 0.075875
| 0.048916
| 0.844775
| 0.784186
| 0.711089
| 0.651056
| 0.636187
| 0.607977
| 0
| 0.016032
| 0.36954
| 14,445
| 443
| 78
| 32.607223
| 0.77413
| 0.074489
| 0
| 0.683502
| 0
| 0
| 0.107625
| 0.008195
| 0
| 0
| 0
| 0
| 0.138047
| 1
| 0.080808
| false
| 0.013468
| 0.023569
| 0
| 0.107744
| 0.003367
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a8cc2e72cc8f814b1e8b373475688d24cc289e2d
| 5,833
|
py
|
Python
|
tests/unit/test_checks.py
|
pponnuvel/hotsos
|
b02f40bc8f125a717aa46d18497465cecccb8dca
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_checks.py
|
pponnuvel/hotsos
|
b02f40bc8f125a717aa46d18497465cecccb8dca
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_checks.py
|
pponnuvel/hotsos
|
b02f40bc8f125a717aa46d18497465cecccb8dca
|
[
"Apache-2.0"
] | null | null | null |
import os
import yaml
import mock
import utils
from core import checks
YAML_DEF1 = """
pluginX:
groupA:
input:
type: filesystem
value: foo/bar1
sectionA:
artifactX:
settingA: True
"""
YAML_DEF2 = """
pluginX:
groupA:
input:
type: filesystem
value: foo/bar1
sectionA:
input:
type: filesystem
value: foo/bar2
artifactX:
settingA: True
"""
YAML_DEF3 = """
pluginX:
groupA:
input:
type: filesystem
value: foo/bar1
sectionA:
input:
type: filesystem
value: foo/bar2
artifactX:
input:
type: filesystem
value: foo/bar3
settingA: True
"""
class TestChecks(utils.BaseTestCase):
def setUp(self):
# NOTE: remember that data_root is configured so helpers will always
# use fake_data_root if possible. If you write a test that wants to
# test scenario where no data root is set (i.e. no sosreport) you need
# to unset it as part of the test.
super().setUp()
def tearDown(self):
super().tearDown()
def test_APTPackageChecksBase_core_only(self):
expected = {'systemd': '245.4-4ubuntu3.11',
'systemd-container': '245.4-4ubuntu3.11',
'systemd-sysv': '245.4-4ubuntu3.11',
'systemd-timesyncd': '245.4-4ubuntu3.11'}
obj = checks.APTPackageChecksBase(["systemd"])
self.assertEqual(obj.all, expected)
# lookup package already loaded
self.assertEqual(obj.get_version("systemd"), "245.4-4ubuntu3.11")
# lookup package not already loaded
self.assertEqual(obj.get_version("apt"), "2.0.6")
def test_APTPackageChecksBase_all(self):
expected = {'python3-systemd': '234-3build2',
'systemd': '245.4-4ubuntu3.11',
'systemd-container': '245.4-4ubuntu3.11',
'systemd-sysv': '245.4-4ubuntu3.11',
'systemd-timesyncd': '245.4-4ubuntu3.11'}
obj = checks.APTPackageChecksBase(["systemd"], ["python3?-systemd"])
self.assertEqual(obj.all, expected)
def test_APTPackageChecksBase_formatted(self):
expected = ['systemd 245.4-4ubuntu3.11',
'systemd-container 245.4-4ubuntu3.11',
'systemd-sysv 245.4-4ubuntu3.11',
'systemd-timesyncd 245.4-4ubuntu3.11']
obj = checks.APTPackageChecksBase(["systemd"])
self.assertEqual(obj.all_formatted, expected)
def test_SnapPackageChecksBase(self):
expected = {'core': '16-2.48.2'}
obj = checks.SnapPackageChecksBase(["core"])
self.assertEqual(obj.all, expected)
# lookup package already loaded
self.assertEqual(obj.get_version("core"), "16-2.48.2")
# lookup package not already loaded
self.assertEqual(obj.get_version("juju"), "2.7.8")
def test_SnapPackageChecksBase_formatted(self):
expected = ['core 16-2.48.2']
obj = checks.SnapPackageChecksBase(["core"])
self.assertEqual(obj.all_formatted, expected)
def test_PackageBugChecksBase(self):
os.environ['PLUGIN_NAME'] = 'openstack'
with mock.patch.object(checks, 'add_known_bug') as mock_add_known_bug:
pkg_info = {'neutron-common': '2:16.4.0-0ubuntu4~cloud0'}
obj = checks.PackageBugChecksBase('ussuri', pkg_info)
obj()
self.assertFalse(mock_add_known_bug.called)
mock_add_known_bug.reset_mock()
pkg_info = {'neutron-common': '2:16.4.0-0ubuntu2~cloud0'}
obj = checks.PackageBugChecksBase('ussuri', pkg_info)
obj()
self.assertTrue(mock_add_known_bug.called)
mock_add_known_bug.reset_mock()
pkg_info = {'neutron-common': '2:16.2.0-0ubuntu4~cloud0'}
obj = checks.PackageBugChecksBase('ussuri', pkg_info)
obj()
self.assertFalse(mock_add_known_bug.called)
def test_yaml_def_group_input(self):
plugin_checks = yaml.safe_load(YAML_DEF1).get('pluginX')
for name, group in plugin_checks.items():
group = checks.YAMLDefGroup(name, group, event_check_obj=None)
for section in group.sections:
for entry in section.entries:
self.assertEquals(entry.input.type, 'filesystem')
self.assertEquals(entry.input.path,
os.path.join(checks.constants.DATA_ROOT,
'foo/bar1'))
def test_yaml_def_section_input_override(self):
plugin_checks = yaml.safe_load(YAML_DEF2).get('pluginX')
for name, group in plugin_checks.items():
group = checks.YAMLDefGroup(name, group, event_check_obj=None)
for section in group.sections:
for entry in section.entries:
self.assertEquals(entry.input.type, 'filesystem')
self.assertEquals(entry.input.path,
os.path.join(checks.constants.DATA_ROOT,
'foo/bar2'))
def test_yaml_def_entry_input_override(self):
plugin_checks = yaml.safe_load(YAML_DEF3).get('pluginX')
for name, group in plugin_checks.items():
group = checks.YAMLDefGroup(name, group, event_check_obj=None)
for section in group.sections:
for entry in section.entries:
self.assertEquals(entry.input.type, 'filesystem')
self.assertEquals(entry.input.path,
os.path.join(checks.constants.DATA_ROOT,
'foo/bar3'))
| 36.229814
| 78
| 0.585805
| 645
| 5,833
| 5.162791
| 0.224806
| 0.015616
| 0.046847
| 0.054655
| 0.752853
| 0.735435
| 0.724625
| 0.715015
| 0.692793
| 0.633634
| 0
| 0.042931
| 0.30516
| 5,833
| 160
| 79
| 36.45625
| 0.778682
| 0.062061
| 0
| 0.623077
| 0
| 0
| 0.246247
| 0.013182
| 0
| 0
| 0
| 0
| 0.138462
| 1
| 0.084615
| false
| 0
| 0.038462
| 0
| 0.130769
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 4
|
a8d00d8a29d9e6b83fbbd8711326265fdbc0bc3f
| 114
|
py
|
Python
|
appconf/__init__.py
|
vongochung/buiquocviet
|
d37abf6734ee5f51cfcbeaa4d16817decbf19d2f
|
[
"BSD-3-Clause"
] | 1
|
2015-12-31T10:24:25.000Z
|
2015-12-31T10:24:25.000Z
|
appconf/__init__.py
|
vongochung/buiquocviet
|
d37abf6734ee5f51cfcbeaa4d16817decbf19d2f
|
[
"BSD-3-Clause"
] | null | null | null |
appconf/__init__.py
|
vongochung/buiquocviet
|
d37abf6734ee5f51cfcbeaa4d16817decbf19d2f
|
[
"BSD-3-Clause"
] | null | null | null |
from __future__ import absolute_import
from .base import AppConf # noqa
# following PEP 386
__version__ = "0.6"
| 19
| 38
| 0.77193
| 16
| 114
| 4.9375
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 0.166667
| 114
| 5
| 39
| 22.8
| 0.778947
| 0.192982
| 0
| 0
| 0
| 0
| 0.033708
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.